avr: Fix bugs in org/align tracking.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
5b639dea
JB
12015-10-09 Joel Brobecker <brobecker@adacore.com>
2
3 * ada-lang.c (ada_unpack_from_contents): Add guard that unpacked
4 is large enough for BIT_SIZE. Update function comment.
5
0cafa88c
JB
62015-10-09 Joel Brobecker <brobecker@adacore.com>
7
8 * ada-lang.c (ada_value_primitive_packed_val): Move
9 src_len variable to local block where used. Override
10 BIT_SIZE if bigger than size of resolved type.
11
220475ed
JB
122015-10-09 Joel Brobecker <brobecker@adacore.com>
13
14 * gdbtypes.h (is_scalar_type): Add extern declaration.
15 * gdbtypes.c (is_scalar_type): Make non-static.
16 * ada-lang.c (ada_value_primitive_packed_val): Use is_scalar_type
17 to compute IS_SCALAR instead of doing it ourselves.
18
d0a9e810
JB
192015-10-09 Joel Brobecker <brobecker@adacore.com>
20
21 * ada-lang.c (ada_value_primitive_packed_val): Rework handling
22 of case where TYPE is dynamic.
23
f93fca70
JB
242015-10-09 Joel Brobecker <brobecker@adacore.com>
25
26 * ada-lang.c (ada_unpack_from_contents): New function,
27 extracted from ada_value_primitive_packed_val.
28 (ada_value_primitive_packed_val): Replace extracted out code
29 by call to ada_unpack_from_contents.
30
a1c95e6b
JB
312015-10-09 Joel Brobecker <brobecker@adacore.com>
32
33 * ada-lang.c (ada_value_primitive_packed_val): Reorder local
34 variable declarations.
35
fbd000da
JB
362015-10-09 Joel Brobecker <brobecker@adacore.com>
37
38 * ada-lang.c (ada_value_primitive_packed_val): Change the type
39 of local variables src and unpacked to "gdb_type *" instead of
40 "unsigned char *".
41
086ca51f
JB
422015-10-09 Joel Brobecker <brobecker@adacore.com>
43
44 * ada-lang.c (ada_value_primitive_packed_val): Make the name
45 of various local variables more explicit and consistent.
46 No real code change otherwise.
47
c5bcd278
SM
482015-10-09 Simon Marchi <simon.marchi@ericsson.com>
49
50 * i386-tdep.h (struct gdbarch_tdep): Change type of
51 register_reggroup_p to gdbarch_register_reggroup_p_ftype.
52
78c5b882
SM
532015-10-09 Simon Marchi <simon.marchi@ericsson.com>
54
55 * cris-tdep.c (struct instruction_environment): Change type of
56 byte_order to enum bfd_endian.
57
f9fa37b3
SM
582015-10-09 Simon Marchi <simon.marchi@ericsson.com>
59
60 * arm-linux-tdep.c (arm_canonicalize_syscall): Add
61 enum gdb_syscall casts.
62
7c543f7b
SM
632015-10-09 Simon Marchi <simon.marchi@ericsson.com>
64
65 * aarch64-tdep.c (stack_item_t): Change type of data to gdb_byte*.
66 * arm-tdep.c (struct stack_item): Likewise.
67 (push_stack_item): Add gdb_byte* cast.
68 * avr-tdep.c (struct stack_item): Change type of data to gdb_byte*.
69 (push_stack_item): Add gdb_byte* cast.
70 * cli/cli-dump.c (dump_memory_to_file): Change type of buf to gdb_byte*
71 and add cast.
72 * cris-tdep.c (struct stack_item): Change type of data to gdb_byte*.
73 (push_stack_item): Add gdb_byte* cast.
74 * gcore.c (gcore_copy_callback): Change type of memhunk to gdb_byte* and
75 add cast.
76 * gdbtypes.h (print_scalar_formatted): Change type of first parameter to
77 gdb_byte*.
78 * h8300-tdep.c (h8300_extract_return_value): Change type of valbuf to
79 gdb_byte* and remove unnecessary cast.
80 (h8300h_extract_return_value): Likewise.
81 (h8300_store_return_value): Change type of valbuf to gdb_byte*.
82 (h8300h_store_return_value): Likewise.
83 * iq2000-tdep.c (iq2000_extract_return_value): Change type of valbuf to
84 gdb_byte* and remove unnecessary cast.
85 * jit.c (jit_reader_try_read_symtab): Change type of gdb_mem to gdb_byte*
86 and add cast.
87 * m32r-tdep.c (m32r_store_return_value): Change type of valbuf to
88 gdb_byte* and remove unnecessary cast.
89 (m32r_extract_return_value): Change type of dst to gdb_byte* and remove
90 valbuf.
91 * mep-tdep.c (mep_pseudo_cr32_read): Change type of buf to gdb_byte*.
92 (mep_pseudo_cr64_read): Likewise.
93 (mep_pseudo_csr_write): Likewise.
94 (mep_pseudo_cr32_write): Likewise.
95 (mep_pseudo_cr64_write): Likewise.
96 * mi/mi-main.c (mi_cmd_data_write_memory): Change type of buffer to
97 gdb_byte* and add cast.
98 * moxie-tdep.c (moxie_store_return_value): Change type of valbuf to
99 gdb_byte* and remove unnecessary cast.
100 (moxie_extract_return_value): Change type of dst to gdb_byte* and remove
101 valbuf.
102 * p-valprint.c (print_scalar_formatted): Change type of valaddr to
103 gdb_byte*.
104 * printcmd.c (void): Likewise.
105 * python/py-inferior.c (infpy_read_memory): Change type of buffer to
106 gdb_byte* and add cast.
107 (infpy_write_memory): Likewise.
108 (infpy_search_memory): Likewise.
109 * regcache.c (regcache_raw_write_signed): Change type of buf to gdb_byte*
110 and add cast.
111 (regcache_raw_write_unsigned): Likewise.
112 (regcache_cooked_write_signed): Likewise.
113 (regcache_cooked_write_unsigned): Likewise.
114 * sh64-tdep.c (h64_extract_return_value): Change type of valbuf to
115 gdb_byte*.
116
7567e115
SM
1172015-10-09 Simon Marchi <simon.marchi@ericsson.com>
118
119 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Add cast.
120 * linux-tdep.c (linux_collect_regset_section_cb_data): Likewise.
121
f9acce4a
EZ
1222015-10-09 Eli Zaretskii <eliz@gnu.org>
123
124 * stack.c (print_stack_frame):
125 * utils.c (printchar): Fix typos in commentary.
126
d5d8c4e1
IB
1272015-10-08 Iain Buclaw <ibuclaw@gdcproject.org>
128
129 * d-exp.y: (UnaryExpression): Support `type.sizeof' expressions.
130 (PostfixExpression): Support `expr.sizeof' expressions.
131 (PrimaryExpression): Support `typeof(expr)' expressions.
132
4e7de155
MR
1332015-10-08 Maciej W. Rozycki <macro@imgtec.com>
134
135 * MAINTAINERS: Update my email address.
136
04c4fe8c
MM
1372015-10-08 Markus Metzger <markus.t.metzger@intel.com>
138
139 * record-btrace.c (record_btrace_resume): Fix void return.
140
f77ee802
YQ
1412015-10-07 Yao Qi <yao.qi@linaro.org>
142
143 * aarch64-tdep.c: Include opcode/aarch64.h.
144 (submask): Move it above.
145 (bit): Likewise.
146 (bits): Likewise.
147 (aarch64_software_single_step): Call aarch64_decode_insn.
148 Decode instruction by aarch64_inst instead of using
149 aarch64_decode_bcond and decode_masked_match.
150
cbd641ed
PS
1512015-10-06 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
152
153 * cli/cli-dump.c (restore_command): Parse load_offset (bias) as address
154 only when the file is binary.
155
ae4e2501 1562015-10-02 James Bowman <james.bowman@ftdichip.com>
157
158 * ft32-tdep.c (ft32_analyze_prologue): Add function prolog
159 subroutine handling.
160
dd0a637a
SM
1612015-10-01 Simon Marchi <simon.marchi@ericsson.com>
162
163 * common/vec.h (VEC_OP (T,cleanup)): Add pointer cast.
164
1fd60fc0
DE
1652015-09-30 Doug Evans <dje@google.com>
166
167 * dwarf2read.c (setup_type_unit_groups): Add comment.
168
398e0813
PA
1692015-09-30 Pedro Alves <palves@redhat.com>
170
171 * linux-nat.c (linux_nat_always_non_stop_p): Always return 1.
172 * x86-linux-nat.c (x86_linux_always_non_stop_p): Delete.
173 (x86_linux_create_target): Don't install
174 x86_linux_always_non_stop_p.
175
6ab24463
DB
1762015-09-30 Don Breazeal <donb@codesourcery.com>
177
178 * remote.c (remote_parse_stop_reply): Call strprefix instead
179 of strncmp.
180
ede5f151
SM
1812015-09-30 Simon Marchi <simon.marchi@ericsson.com>
182
183 * gdbarch.sh (struct gdbarch_info): Change tdep_info's type to void *.
184 * gdbarch.h: Regenerate.
185 * i386-tdep.c (i386_gdbarch_init): Remove cast to
186 struct gdbarch_tdep_info *.
187 * mips-tdep.c (mips_gdbarch_init): Likewise.
188 * ppc-linux-tdep (ppu2spu_sniffer): Likewise.
189 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
190 * spu-multiarch.c (spu_gdbarch): Likewise.
191
51c935fa 1922015-09-30 Kevin Buettner <kevinb@redhat.com>
aca20ec4
KB
193
194 * infcmd.c (finish_command_fsm_should_stop): Don't attempt to
195 record a NULL value.
196
3b1ad7d5
KB
1972015-09-29 Kevin Buettner <kevinb@redhat.com>
198
199 * msp430-tdep.c (msp430_push_dummy_call): Treat reference, struct,
200 and union arguments the same as pointer arguments when determining
201 size of argument.
202
86feccb9 2032015-09-29 James Bowman <james.bowman@ftdichip.com>
204
205 * ft32-tdep.c: #include "opcode/ft32.h".
206 Delete local macros IS_PUSH, PUSH_REG, IS_LINK, LINK_SIZE.
207 (ft32_analyze_prologue): Use FT32_* macros.
208
2181a6c6
SM
2092015-09-28 Simon Marchi <simon.marchi@ericsson.com>
210
84d73afc 211 * cli/cli-script.c (read_next_line): Fix stdout -> stdin in
2181a6c6
SM
212 comment.
213
245af596
DE
2142015-09-28 Doug Evans <dje@google.com>
215
216 * MAINTAINERS: Add Iain Buclaw as D language maintainer.
217
c402ef90
DE
2182015-09-28 Doug Evans <dje@google.com>
219
220 * common/filestuff.c (make_cleanup_close): Update comment.
221
bc84451b
SM
2222015-09-26 Simon Marchi <simark@nova.polymtl.ca>
223
224 * btrace.c (parse_xml_btrace_block): Fix cast of
225 xml_find_attribute's return value.
226 * memory-map.c (memory_map_start_memory): Likewise.
227 * solib-svr4.c (library_list_start_library): Likewise.
228 * solib-target.c (library_list_start_segment): Likewise.
229 (library_list_start_section): Likewise.
230 * tracepoint.c (traceframe_info_start_memory): Likewise.
231
ba587d55
IB
2322015-09-26 Iain Buclaw <ibuclaw@gdcproject.org>
233
234 * d-namespace.c (d_lookup_symbol): New arg langdef.
235 All callers updated. Support looking up symbol as a primitive type.
236 (lookup_module_scope): New arg langdef. All callers updated.
237 Call d_lookup_symbol directly for simple bare symbols.
238
19ba03f4
SM
2392015-09-25 Simon Marchi <simon.marchi@ericsson.com>
240
241 * macrocmd.c (print_macro_callback): Add cast(s).
242 * macrotab.c (macro_bcache_str): Likewise.
243 (new_macro_definition): Likewise.
244 * main.c (captured_main): Likewise.
245 * maint.c (print_bfd_section_info): Likewise.
246 * mdebugread.c (mdebug_build_psymtabs): Likewise.
247 (basic_type): Likewise.
248 * memattr.c (mem_region_cmp): Likewise.
249 * memory-map.c (memory_map_start_memory): Likewise.
250 (memory_map_end_memory): Likewise.
251 (memory_map_start_property): Likewise.
252 (memory_map_end_property): Likewise.
253 (clear_result): Likewise.
254 * memrange.c (compare_mem_ranges): Likewise.
255 * mep-tdep.c (mep_analyze_frame_prologue): Likewise.
256 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Likewise.
257 * mi/mi-console.c (mi_console_file_delete): Likewise.
258 (mi_console_file_fputs): Likewise.
259 (mi_console_raw_packet): Likewise.
260 (mi_console_file_flush): Likewise.
261 (mi_console_set_raw): Likewise.
262 * mi/mi-interp.c (mi_interpreter_resume): Likewise.
263 (mi_new_thread): Likewise.
264 (mi_thread_exit): Likewise.
265 (mi_record_changed): Likewise.
266 (mi_inferior_added): Likewise.
267 (mi_inferior_appeared): Likewise.
268 (mi_inferior_exit): Likewise.
269 (mi_inferior_removed): Likewise.
270 (mi_interp_data): Likewise.
271 (mi_on_normal_stop): Likewise.
272 (mi_traceframe_changed): Likewise.
273 (mi_tsv_created): Likewise.
274 (mi_tsv_deleted): Likewise.
275 (mi_tsv_modified): Likewise.
276 (mi_breakpoint_created): Likewise.
277 (mi_breakpoint_deleted): Likewise.
278 (mi_breakpoint_modified): Likewise.
279 (mi_output_running_pid): Likewise.
280 (mi_inferior_count): Likewise.
281 (mi_solib_loaded): Likewise.
282 (mi_solib_unloaded): Likewise.
283 (mi_command_param_changed): Likewise.
284 (mi_memory_changed): Likewise.
285 (report_initial_inferior): Likewise.
286 (mi_ui_out): Likewise.
287 (mi_set_logging): Likewise.
288 * mi/mi-main.c (collect_cores): Likewise.
289 (print_one_inferior): Likewise.
290 (free_vector_of_ints): Likewise.
291 (free_splay_tree): Likewise.
292 (mi_execute_command): Likewise.
293 * mi/mi-out.c (mi_table_body): Likewise.
294 (mi_table_end): Likewise.
295 (mi_table_header): Likewise.
296 (mi_begin): Likewise.
297 (mi_end): Likewise.
298 (mi_field_int): Likewise.
299 (mi_field_string): Likewise.
300 (mi_field_fmt): Likewise.
301 (mi_flush): Likewise.
302 (mi_redirect): Likewise.
303 (field_separator): Likewise.
304 (mi_open): Likewise.
305 (mi_close): Likewise.
306 (mi_out_buffered): Likewise.
307 (mi_out_rewind): Likewise.
308 (mi_out_put): Likewise.
309 (mi_version): Likewise.
310 (mi_out_data_dtor): Likewise.
311 * mi/mi-parse.c (mi_parse_cleanup): Likewise.
312 * microblaze-tdep.c (microblaze_frame_cache): Likewise.
313 * minidebug.c (lzma_open): Likewise.
314 (lzma_pread): Likewise.
315 (lzma_close): Likewise.
316 (lzma_stat): Likewise.
317 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
318 * mips-sde-tdep.c (mips_sde_frame_cache): Likewise.
319 (mips_sde_elf_osabi_sniff_abi_tag_sections): Likewise.
320 * mips-tdep.c (mips_insn16_frame_cache): Likewise.
321 (mips_micro_frame_cache): Likewise.
322 (mips_insn32_frame_cache): Likewise.
323 (mips_stub_frame_cache): Likewise.
324 (gdb_print_insn_mips): Likewise.
325 (value_of_mips_user_reg): Likewise.
326 (mips_gdbarch_init): Likewise.
327 * mips64obsd-tdep.c (mips64obsd_supply_gregset): Likewise.
328 * mipsnbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
329 (mipsnbsd_supply_gregset): Likewise.
330 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Likewise.
331 (am33_collect_gregset_method): Likewise.
332 (am33_collect_fpregset_method): Likewise.
333 * mn10300-tdep.c (mn10300_analyze_frame_prologue): Likewise.
334 * moxie-tdep.c (moxie_frame_cache): Likewise.
335 * msp430-tdep.c (msp430_get_opcode_byte): Likewise.
336 (msp430_analyze_frame_prologue): Likewise.
337 * mt-tdep.c (mt_frame_unwind_cache): Likewise.
338 * nios2-linux-tdep.c (nios2_supply_gregset): Likewise.
339 (nios2_collect_gregset): Likewise.
340 * nios2-tdep.c (nios2_frame_unwind_cache): Likewise.
341 (nios2_stub_frame_cache): Likewise.
342 * objc-lang.c (find_methods): Likewise.
343 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
344 (get_objfile_pspace_data): Likewise.
345 (get_objfile_bfd_data): Likewise.
346 (objfile_bfd_data_free): Likewise.
347 (add_to_objfile_sections): Likewise.
348 (do_free_objfile_cleanup): Likewise.
349 (resume_section_map_updates_cleanup): Likewise.
350 * opencl-lang.c (builtin_opencl_type): Likewise.
351 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
352 * osdata.c (osdata_start_osdata): Likewise.
353 (osdata_start_item): Likewise.
354 (osdata_start_column): Likewise.
355 (osdata_end_column): Likewise.
356 (clear_parsing_data): Likewise.
357 (osdata_free_cleanup): Likewise.
358 * parse.c (type_stack_cleanup): Likewise.
359 (exp_uses_objfile_iter): Likewise.
360 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
361 (ppc_linux_collect_gregset): Likewise.
362 (ppu2spu_prev_arch): Likewise.
363 (ppu2spu_this_id): Likewise.
364 (ppu2spu_prev_register): Likewise.
365 (ppu2spu_unwind_register): Likewise.
366 (ppu2spu_sniffer): Likewise.
367 (ppu2spu_dealloc_cache): Likewise.
368 (ppc_linux_init_abi): Likewise.
369 * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
370 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
371 * progspace.c (restore_program_space): Likewise.
372 * psymtab.c (find_pc_sect_psymtab): Likewise.
373 (compare_psymbols): Likewise.
374 (psymbol_bcache_full): Likewise.
375 (allocate_psymtab): Likewise.
376 (discard_psymtabs_upto): Likewise.
377 * python/py-block.c (set_block): Likewise.
378 (del_objfile_blocks): Likewise.
379 * python/py-breakpoint.c (build_bp_list): Likewise.
380 * python/py-inferior.c (inferior_to_inferior_object): Likewise.
381 (build_inferior_list): Likewise.
382 (py_free_inferior): Likewise.
383 * python/py-objfile.c (py_free_objfile): Likewise.
384 (objfile_to_objfile_object): Likewise.
385 * python/py-prettyprint.c (py_restore_tstate): Likewise.
386 * python/py-progspace.c (py_free_pspace): Likewise.
387 (pspace_to_pspace_object): Likewise.
388 * python/py-symbol.c (set_symbol): Likewise.
389 (del_objfile_symbols): Likewise.
390 * python/py-symtab.c (set_sal): Likewise.
391 (set_symtab): Likewise.
392 (del_objfile_symtab): Likewise.
393 (del_objfile_sal): Likewise.
394 * python/py-type.c (save_objfile_types): Likewise.
395 (set_type): Likewise.
396 * python/py-unwind.c (pyuw_prev_register): Likewise.
397 (pyuw_on_new_gdbarch): Likewise.
398 * python/py-utils.c (py_decref): Likewise.
399 (py_xdecref): Likewise.
400 (gdb_py_generic_dict): Likewise.
401 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data): Likewise.
402 (gdbpy_clone_xmethod_worker_data): Likewise.
403 (gdbpy_get_xmethod_arg_types): Likewise.
404 (gdbpy_get_xmethod_result_type): Likewise.
405 (gdbpy_invoke_xmethod): Likewise.
406 * python/python.c (gdbpy_apply_type_printers): Likewise.
407 (gdbpy_free_type_printers): Likewise.
408 * record-btrace.c (record_btrace_disable_callback): Likewise.
409 (bfcache_hash): Likewise.
410 (bfcache_eq): Likewise.
411 (btrace_get_frame_function): Likewise.
412 (record_btrace_frame_unwind_stop_reason): Likewise.
413 (record_btrace_frame_this_id): Likewise.
414 (record_btrace_frame_prev_register): Likewise.
415 (record_btrace_frame_dealloc_cache): Likewise.
416 * record-full.c (record_full_message_wrapper): Likewise.
417 (record_full_save_cleanups): Likewise.
418 * regcache.c (regcache_descr): Likewise.
419 (do_regcache_xfree): Likewise.
420 (do_regcache_invalidate): Likewise.
421 (do_cooked_read): Likewise.
422 (regcache_transfer_regset): Likewise.
423 * reggroups.c (reggroup_add): Likewise.
424 (reggroup_next): Likewise.
425 (reggroup_prev): Likewise.
426 * remote-fileio.c (do_remote_fileio_request): Likewise.
427 * remote-notif.c (remote_async_get_pending_events_handler): Likewise.
428 (do_notif_event_xfree): Likewise.
429 * remote.c (get_remote_arch_state): Likewise.
430 (remote_pspace_data_cleanup): Likewise.
431 (get_remote_exec_file): Likewise.
432 (set_pspace_remote_exec_file): Likewise.
433 (compare_pnums): Likewise.
434 (clear_threads_listing_context): Likewise.
435 (remote_newthread_step): Likewise.
436 (start_thread): Likewise.
437 (end_thread): Likewise.
438 (remove_child_of_pending_fork): Likewise.
439 (remove_stop_reply_for_inferior): Likewise.
440 (remove_stop_reply_of_remote_state): Likewise.
441 (remote_notif_remove_once_on_match): Likewise.
442 (stop_reply_match_ptid_and_ws): Likewise.
443 (kill_child_of_pending_fork): Likewise.
444 (register_remote_g_packet_guess): Likewise.
445 (remote_read_description_p): Likewise.
446 (remote_read_description): Likewise.
447 (free_actions_list_cleanup_wrapper): Likewise.
448 (remote_async_serial_handler): Likewise.
449 * rl78-tdep.c (rl78_get_opcode_byte): Likewise.
450 (rl78_analyze_frame_prologue): Likewise.
451 * rs6000-tdep.c (ppc_supply_gregset): Likewise.
452 (ppc_supply_fpregset): Likewise.
453 (ppc_supply_vsxregset): Likewise.
454 (ppc_supply_vrregset): Likewise.
455 (ppc_collect_gregset): Likewise.
456 (ppc_collect_fpregset): Likewise.
457 (ppc_collect_vsxregset): Likewise.
458 (ppc_collect_vrregset): Likewise.
459 (e500_move_ev_register): Likewise.
460 (do_regcache_raw_write): Likewise.
461 (rs6000_frame_cache): Likewise.
462 (rs6000_epilogue_frame_cache): Likewise.
463 (rs6000_gdbarch_init): Likewise.
464 * rx-tdep.c (rx_get_opcode_byte): Likewise.
465 (rx_analyze_frame_prologue): Likewise.
466 (rx_frame_type): Likewise.
467 (rx_frame_sniffer_common): Likewise.
468 * s390-linux-tdep.c (s390_check_for_saved): Likewise.
469 (s390_frame_unwind_cache): Likewise.
470 (s390_stub_frame_unwind_cache): Likewise.
471 (s390_sigtramp_frame_unwind_cache): Likewise.
472 * score-tdep.c (score_make_prologue_cache): Likewise.
473 * sentinel-frame.c (sentinel_frame_prev_register): Likewise.
474 (sentinel_frame_prev_arch): Likewise.
475 * ser-base.c (fd_event): Likewise.
476 (push_event): Likewise.
477 (ser_base_write): Likewise.
478 * ser-pipe.c (pipe_close): Likewise.
479 * serial.c (serial_write): Likewise.
480 * sh-tdep.c (sh_frame_cache): Likewise.
481 (sh_stub_this_id): Likewise.
482 * sh64-tdep.c (sh64_frame_cache): Likewise.
483 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
484 (library_list_start_library): Likewise.
485 (library_list_start_list): Likewise.
486 (solib_aix_free_library_list): Likewise.
487 * solib-darwin.c (get_darwin_info): Likewise.
488 * solib-dsbt.c (get_dsbt_info): Likewise.
489 * solib-spu.c (append_ocl_sos): Likewise.
490 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
491 (get_svr4_info): Likewise.
492 (library_list_start_library): Likewise.
493 (svr4_library_list_start_list): Likewise.
494 (hash_probe_and_action): Likewise.
495 (equal_probe_and_action): Likewise.
496 (svr4_update_solib_event_breakpoint): Likewise.
497 (set_solib_svr4_fetch_link_map_offsets): Likewise.
498 (svr4_fetch_link_map_offsets): Likewise.
499 (svr4_have_link_map_offsets): Likewise.
500 * solib-target.c (library_list_start_segment): Likewise.
501 (library_list_start_section): Likewise.
502 (library_list_start_library): Likewise.
503 (library_list_end_library): Likewise.
504 (library_list_start_list): Likewise.
505 (solib_target_free_library_list): Likewise.
506 * solib.c (solib_ops): Likewise.
507 (set_solib_ops): Likewise.
508 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
509 * sparc-tdep.c (sparc_frame_cache): Likewise.
510 (sparc32_frame_cache): Likewise.
511 (sparc32_supply_gregset): Likewise.
512 (sparc32_collect_gregset): Likewise.
513 (sparc32_supply_fpregset): Likewise.
514 (sparc32_collect_fpregset): Likewise.
515 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
516 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
517 (sparc64_collect_gregset): Likewise.
518 (sparc64_supply_fpregset): Likewise.
519 (sparc64_collect_fpregset): Likewise.
520 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_cache): Likewise.
521 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
522 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
523 (sparc64obsd_trapframe_cache): Likewise.
524 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Likewise.
525 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
526 * spu-multiarch.c (spu_gdbarch): Likewise.
527 * spu-tdep.c (spu_frame_unwind_cache): Likewise.
528 (spu2ppu_prev_arch): Likewise.
529 (spu2ppu_this_id): Likewise.
530 (spu2ppu_prev_register): Likewise.
531 (spu2ppu_dealloc_cache): Likewise.
532 (spu_dis_asm_print_address): Likewise.
533 (gdb_print_insn_spu): Likewise.
534 (spu_get_overlay_table): Likewise.
535 * stabsread.c (rs6000_builtin_type): Likewise.
536 * stack.c (do_print_variable_and_value): Likewise.
537 * stap-probe.c (get_stap_base_address_1): Likewise.
538 * symfile-debug.c (debug_qf_has_symbols): Likewise.
539 (debug_qf_find_last_source_symtab): Likewise.
540 (debug_qf_forget_cached_source_info): Likewise.
541 (debug_qf_map_symtabs_matching_filename): Likewise.
542 (debug_qf_lookup_symbol): Likewise.
543 (debug_qf_print_stats): Likewise.
544 (debug_qf_dump): Likewise.
545 (debug_qf_relocate): Likewise.
546 (debug_qf_expand_symtabs_for_function): Likewise.
547 (debug_qf_expand_all_symtabs): Likewise.
548 (debug_qf_expand_symtabs_with_fullname): Likewise.
549 (debug_qf_map_matching_symbols): Likewise.
550 (debug_qf_expand_symtabs_matching): Likewise.
551 (debug_qf_find_pc_sect_compunit_symtab): Likewise.
552 (debug_qf_map_symbol_filenames): Likewise.
553 (debug_sym_get_probes): Likewise.
554 (debug_sym_new_init): Likewise.
555 (debug_sym_init): Likewise.
556 (debug_sym_read): Likewise.
557 (debug_sym_read_psymbols): Likewise.
558 (debug_sym_finish): Likewise.
559 (debug_sym_offsets): Likewise.
560 (debug_sym_read_linetable): Likewise.
561 (debug_sym_relocate): Likewise.
562 (uninstall_symfile_debug_logging): Likewise.
563 * symfile-mem.c (symbol_file_add_from_memory_wrapper): Likewise.
564 * symfile.c (place_section): Likewise.
565 (add_section_size_callback): Likewise.
566 (load_progress): Likewise.
567 (load_section_callback): Likewise.
568 (clear_memory_write_data): Likewise.
569 (allocate_symtab): Likewise.
570 * symmisc.c (maintenance_expand_file_matcher): Likewise.
571 * symtab.c (lookup_symtab_callback): Likewise.
572 (hash_demangled_name_entry): Likewise.
573 (eq_demangled_name_entry): Likewise.
574 (get_symbol_cache): Likewise.
575 (symbol_cache_cleanup): Likewise.
576 (set_symbol_cache_size): Likewise.
577 (symbol_cache_flush): Likewise.
578 (maintenance_print_symbol_cache): Likewise.
579 (maintenance_print_symbol_cache_statistics): Likewise.
580 (delete_filename_seen_cache): Likewise.
581 (output_partial_symbol_filename): Likewise.
582 (search_symbols_file_matches): Likewise.
583 (search_symbols_name_matches): Likewise.
584 (do_free_completion_list): Likewise.
585 (maybe_add_partial_symtab_filename): Likewise.
586 (get_main_info): Likewise.
587 (main_info_cleanup): Likewise.
588 * target-dcache.c (target_dcache_cleanup): Likewise.
589 (target_dcache_init_p): Likewise.
590 (target_dcache_invalidate): Likewise.
591 (target_dcache_get): Likewise.
592 (target_dcache_get_or_init): Likewise.
593 * target-descriptions.c (target_find_description): Likewise.
594 (tdesc_find_type): Likewise.
595 (tdesc_data_cleanup): Likewise.
596 (tdesc_find_arch_register): Likewise.
597 (tdesc_register_name): Likewise.
598 (tdesc_register_type): Likewise.
599 (tdesc_register_reggroup_p): Likewise.
600 (set_tdesc_pseudo_register_name): Likewise.
601 (set_tdesc_pseudo_register_type): Likewise.
602 (set_tdesc_pseudo_register_reggroup_p): Likewise.
603 (tdesc_use_registers): Likewise.
604 (free_target_description): Likewise.
605 * target-memory.c (compare_block_starting_address): Likewise.
606 (cleanup_request_data): Likewise.
607 (cleanup_write_requests_vector): Likewise.
608 * target.c (open_target): Likewise.
609 (cleanup_restore_target_terminal): Likewise.
610 (free_memory_read_result_vector): Likewise.
611 * thread.c (disable_thread_stack_temporaries): Likewise.
612 (finish_thread_state_cleanup): Likewise.
613 (do_restore_current_thread_cleanup): Likewise.
614 (restore_current_thread_cleanup_dtor): Likewise.
615 (set_thread_refcount): Likewise.
616 (tp_array_compar): Likewise.
617 (do_captured_thread_select): Likewise.
618 * tic6x-tdep.c (tic6x_frame_unwind_cache): Likewise.
619 (tic6x_stub_this_id): Likewise.
620 * tilegx-tdep.c (tilegx_frame_cache): Likewise.
621 * top.c (do_restore_instream_cleanup): Likewise.
622 (gdb_readline_wrapper_cleanup): Likewise.
623 (kill_or_detach): Likewise.
624 (print_inferior_quit_action): Likewise.
625 * tracefile-tfile.c (match_blocktype): Likewise.
626 (build_traceframe_info): Likewise.
627 * tracefile.c (trace_file_writer_xfree): Likewise.
628 * tracepoint.c (memrange_cmp): Likewise.
629 (do_collect_symbol): Likewise.
630 (do_clear_collection_list): Likewise.
631 (do_restore_current_traceframe_cleanup): Likewise.
632 (restore_current_traceframe_cleanup_dtor): Likewise.
633 (free_current_marker): Likewise.
634 (traceframe_info_start_memory): Likewise.
635 (traceframe_info_start_tvar): Likewise.
636 (free_result): Likewise.
637 * tramp-frame.c (tramp_frame_cache): Likewise.
638 * tui/tui-file.c (tui_file_delete): Likewise.
639 (tui_fileopen): Likewise.
640 (tui_sfileopen): Likewise.
641 (tui_file_isatty): Likewise.
642 (tui_file_rewind): Likewise.
643 (tui_file_put): Likewise.
644 (tui_file_fputs): Likewise.
645 (tui_file_get_strbuf): Likewise.
646 (tui_file_adjust_strbuf): Likewise.
647 (tui_file_flush): Likewise.
648 * tui/tui-layout.c (make_command_window): Likewise.
649 (make_data_window): Likewise.
650 (show_source_disasm_command): Likewise.
651 (show_data): Likewise.
652 (make_source_or_disasm_window): Likewise.
653 (show_source_or_disasm_and_command): Likewise.
654 * tui/tui-out.c (tui_field_int): Likewise.
655 (tui_field_string): Likewise.
656 (tui_field_fmt): Likewise.
657 (tui_text): Likewise.
658 * typeprint.c (hash_typedef_field): Likewise.
659 (eq_typedef_field): Likewise.
660 (do_free_typedef_hash): Likewise.
661 (copy_typedef_hash_element): Likewise.
662 (do_free_global_table): Likewise.
663 (find_global_typedef): Likewise.
664 (find_typedef_in_hash): Likewise.
665 * ui-file.c (ui_file_write_for_put): Likewise.
666 (do_ui_file_xstrdup): Likewise.
667 (mem_file_delete): Likewise.
668 (mem_file_rewind): Likewise.
669 (mem_file_put): Likewise.
670 (mem_file_write): Likewise.
671 (stdio_file_delete): Likewise.
672 (stdio_file_flush): Likewise.
673 (stdio_file_read): Likewise.
674 (stdio_file_write): Likewise.
675 (stdio_file_write_async_safe): Likewise.
676 (stdio_file_fputs): Likewise.
677 (stdio_file_isatty): Likewise.
678 (stdio_file_fseek): Likewise.
679 (tee_file_delete): Likewise.
680 (tee_file_flush): Likewise.
681 (tee_file_write): Likewise.
682 (tee_file_fputs): Likewise.
683 (tee_file_isatty): Likewise.
684 * ui-out.c (do_cleanup_table_end): Likewise.
685 (do_cleanup_end): Likewise.
686 * user-regs.c (user_reg_add): Likewise.
687 (user_reg_map_name_to_regnum): Likewise.
688 (usernum_to_user_reg): Likewise.
689 (maintenance_print_user_registers): Likewise.
690 * utils.c (do_bfd_close_cleanup): Likewise.
691 (do_fclose_cleanup): Likewise.
692 (do_obstack_free): Likewise.
693 (do_ui_file_delete): Likewise.
694 (do_ui_out_redirect_pop): Likewise.
695 (do_free_section_addr_info): Likewise.
696 (restore_integer): Likewise.
697 (do_unpush_target): Likewise.
698 (do_htab_delete_cleanup): Likewise.
699 (do_restore_ui_file): Likewise.
700 (do_value_free): Likewise.
701 (do_free_so): Likewise.
702 (free_current_contents): Likewise.
703 (do_regfree_cleanup): Likewise.
704 (core_addr_hash): Likewise.
705 (core_addr_eq): Likewise.
706 (do_free_char_ptr_vec): Likewise.
707 * v850-tdep.c (v850_frame_cache): Likewise.
708 * varobj.c (do_free_variable_cleanup): Likewise.
709 * vax-tdep.c (vax_supply_gregset): Likewise.
710 (vax_frame_cache): Likewise.
711 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_cache): Likewise.
712 * xml-support.c (gdb_xml_body_text): Likewise.
713 (gdb_xml_values_cleanup): Likewise.
714 (gdb_xml_start_element): Likewise.
715 (gdb_xml_start_element_wrapper): Likewise.
716 (gdb_xml_end_element): Likewise.
717 (gdb_xml_end_element_wrapper): Likewise.
718 (gdb_xml_cleanup): Likewise.
719 (gdb_xml_fetch_external_entity): Likewise.
720 (gdb_xml_parse_attr_enum): Likewise.
721 (xinclude_start_include): Likewise.
722 (xinclude_end_include): Likewise.
723 (xml_xinclude_default): Likewise.
724 (xml_xinclude_start_doctype): Likewise.
725 (xml_xinclude_end_doctype): Likewise.
726 (xml_xinclude_cleanup): Likewise.
727 (xml_fetch_content_from_file): Likewise.
728 * xml-syscall.c (free_syscalls_info): Likewise.
729 (syscall_start_syscall): Likewise.
730 * xml-tdesc.c (tdesc_end_arch): Likewise.
731 (tdesc_end_osabi): Likewise.
732 (tdesc_end_compatible): Likewise.
733 (tdesc_start_target): Likewise.
734 (tdesc_start_feature): Likewise.
735 (tdesc_start_reg): Likewise.
736 (tdesc_start_union): Likewise.
737 (tdesc_start_struct): Likewise.
738 (tdesc_start_flags): Likewise.
739 (tdesc_start_field): Likewise.
740 (tdesc_start_vector): Likewise.
741 (fetch_available_features_from_target): Likewise.
742 * xstormy16-tdep.c (xstormy16_frame_cache): Likewise.
743 * xtensa-tdep.c (xtensa_supply_gregset): Likewise.
744 (xtensa_frame_cache): Likewise.
745 (xtensa_frame_prev_register): Likewise.
746 (xtensa_extract_return_value): Likewise.
747
9a3c8263
SM
7482015-09-25 Simon Marchi <simon.marchi@ericsson.com>
749
750 * aarch64-tdep.c (aarch64_make_prologue_cache): Add cast(s).
751 (aarch64_make_stub_cache): Likewise.
752 (value_of_aarch64_user_reg): Likewise.
753 * ada-lang.c (ada_inferior_data_cleanup): Likewise.
754 (get_ada_inferior_data): Likewise.
755 (get_ada_pspace_data): Likewise.
756 (ada_pspace_data_cleanup): Likewise.
757 (ada_complete_symbol_matcher): Likewise.
758 (ada_exc_search_name_matches): Likewise.
759 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
760 (get_ada_tasks_inferior_data): Likewise.
761 * addrmap.c (addrmap_mutable_foreach_worker): Likewise.
762 (splay_obstack_alloc): Likewise.
763 (splay_obstack_free): Likewise.
764 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Likewise.
765 (alpha_linux_collect_gregset): Likewise.
766 (alpha_linux_supply_fpregset): Likewise.
767 (alpha_linux_collect_fpregset): Likewise.
768 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
769 * alpha-tdep.c (alpha_lds): Likewise.
770 (alpha_sts): Likewise.
771 (alpha_sigtramp_frame_unwind_cache): Likewise.
772 (alpha_heuristic_frame_unwind_cache): Likewise.
773 (alpha_supply_int_regs): Likewise.
774 (alpha_fill_int_regs): Likewise.
775 (alpha_supply_fp_regs): Likewise.
776 (alpha_fill_fp_regs): Likewise.
777 * alphanbsd-tdep.c (alphanbsd_supply_fpregset): Likewise.
778 (alphanbsd_aout_supply_gregset): Likewise.
779 (alphanbsd_supply_gregset): Likewise.
780 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
781 (amd64_x32_linux_init_abi): Likewise.
782 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
783 (amd64_collect_native_gregset): Likewise.
784 * amd64-tdep.c (amd64_frame_cache): Likewise.
785 (amd64_sigtramp_frame_cache): Likewise.
786 (amd64_epilogue_frame_cache): Likewise.
787 (amd64_supply_fxsave): Likewise.
788 (amd64_supply_xsave): Likewise.
789 (amd64_collect_fxsave): Likewise.
790 (amd64_collect_xsave): Likewise.
791 * amd64-windows-tdep.c (amd64_windows_frame_cache): Likewise.
792 * amd64obsd-tdep.c (amd64obsd_trapframe_cache): Likewise.
793 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
794 (arm_linux_collect_gregset): Likewise.
795 (arm_linux_supply_nwfpe): Likewise.
796 (arm_linux_collect_nwfpe): Likewise.
797 (arm_linux_supply_vfp): Likewise.
798 (arm_linux_collect_vfp): Likewise.
799 * arm-tdep.c (arm_find_mapping_symbol): Likewise.
800 (arm_prologue_unwind_stop_reason): Likewise.
801 (arm_prologue_this_id): Likewise.
802 (arm_prologue_prev_register): Likewise.
803 (arm_exidx_data_free): Likewise.
804 (arm_find_exidx_entry): Likewise.
805 (arm_stub_this_id): Likewise.
806 (arm_m_exception_this_id): Likewise.
807 (arm_m_exception_prev_register): Likewise.
808 (arm_normal_frame_base): Likewise.
809 (gdb_print_insn_arm): Likewise.
810 (arm_objfile_data_free): Likewise.
811 (arm_record_special_symbol): Likewise.
812 (value_of_arm_user_reg): Likewise.
813 * armbsd-tdep.c (armbsd_supply_fpregset): Likewise.
814 (armbsd_supply_gregset): Likewise.
815 * auto-load.c (auto_load_pspace_data_cleanup): Likewise.
816 (get_auto_load_pspace_data): Likewise.
817 (hash_loaded_script_entry): Likewise.
818 (eq_loaded_script_entry): Likewise.
819 (clear_section_scripts): Likewise.
820 (collect_matching_scripts): Likewise.
821 * auxv.c (auxv_inferior_data_cleanup): Likewise.
822 (get_auxv_inferior_data): Likewise.
823 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
824 * ax-general.c (do_free_agent_expr_cleanup): Likewise.
825 * bfd-target.c (target_bfd_xfer_partial): Likewise.
826 (target_bfd_xclose): Likewise.
827 (target_bfd_get_section_table): Likewise.
828 * bfin-tdep.c (bfin_frame_cache): Likewise.
829 * block.c (find_block_in_blockvector): Likewise.
830 (call_site_for_pc): Likewise.
831 (block_find_non_opaque_type_preferred): Likewise.
832 * break-catch-sig.c (signal_catchpoint_insert_location): Likewise.
833 (signal_catchpoint_remove_location): Likewise.
834 (signal_catchpoint_breakpoint_hit): Likewise.
835 (signal_catchpoint_print_one): Likewise.
836 (signal_catchpoint_print_mention): Likewise.
837 (signal_catchpoint_print_recreate): Likewise.
838 * break-catch-syscall.c (get_catch_syscall_inferior_data): Likewise.
839 * breakpoint.c (do_cleanup_counted_command_line): Likewise.
840 (bp_location_compare_addrs): Likewise.
841 (get_first_locp_gte_addr): Likewise.
842 (check_tracepoint_command): Likewise.
843 (do_map_commands_command): Likewise.
844 (get_breakpoint_objfile_data): Likewise.
845 (free_breakpoint_probes): Likewise.
846 (do_captured_breakpoint_query): Likewise.
847 (compare_breakpoints): Likewise.
848 (bp_location_compare): Likewise.
849 (bpstat_remove_breakpoint_callback): Likewise.
850 (do_delete_breakpoint_cleanup): Likewise.
851 * bsd-uthread.c (bsd_uthread_set_supply_uthread): Likewise.
852 (bsd_uthread_set_collect_uthread): Likewise.
853 (bsd_uthread_activate): Likewise.
854 (bsd_uthread_fetch_registers): Likewise.
855 (bsd_uthread_store_registers): Likewise.
856 * btrace.c (check_xml_btrace_version): Likewise.
857 (parse_xml_btrace_block): Likewise.
858 (parse_xml_btrace_pt_config_cpu): Likewise.
859 (parse_xml_btrace_pt_raw): Likewise.
860 (parse_xml_btrace_pt): Likewise.
861 (parse_xml_btrace_conf_bts): Likewise.
862 (parse_xml_btrace_conf_pt): Likewise.
863 (do_btrace_data_cleanup): Likewise.
864 * c-typeprint.c (find_typedef_for_canonicalize): Likewise.
865 * charset.c (cleanup_iconv): Likewise.
866 (do_cleanup_iterator): Likewise.
867 * cli-out.c (cli_uiout_dtor): Likewise.
868 (cli_table_begin): Likewise.
869 (cli_table_body): Likewise.
870 (cli_table_end): Likewise.
871 (cli_table_header): Likewise.
872 (cli_begin): Likewise.
873 (cli_end): Likewise.
874 (cli_field_int): Likewise.
875 (cli_field_skip): Likewise.
876 (cli_field_string): Likewise.
877 (cli_field_fmt): Likewise.
878 (cli_spaces): Likewise.
879 (cli_text): Likewise.
880 (cli_message): Likewise.
881 (cli_wrap_hint): Likewise.
882 (cli_flush): Likewise.
883 (cli_redirect): Likewise.
884 (out_field_fmt): Likewise.
885 (field_separator): Likewise.
886 (cli_out_set_stream): Likewise.
887 * cli/cli-cmds.c (compare_symtabs): Likewise.
888 * cli/cli-dump.c (call_dump_func): Likewise.
889 (restore_section_callback): Likewise.
890 * cli/cli-script.c (clear_hook_in_cleanup): Likewise.
891 (do_restore_user_call_depth): Likewise.
892 (do_free_command_lines_cleanup): Likewise.
893 * coff-pe-read.c (get_section_vmas): Likewise.
894 (pe_as16): Likewise.
895 (pe_as32): Likewise.
896 * coffread.c (coff_symfile_read): Likewise.
897 * common/agent.c (agent_look_up_symbols): Likewise.
898 * common/filestuff.c (do_close_cleanup): Likewise.
899 * common/format.c (free_format_pieces_cleanup): Likewise.
900 * common/vec.c (vec_o_reserve): Likewise.
901 * compile/compile-c-support.c (print_one_macro): Likewise.
902 * compile/compile-c-symbols.c (hash_symbol_error): Likewise.
903 (eq_symbol_error): Likewise.
904 (del_symbol_error): Likewise.
905 (error_symbol_once): Likewise.
906 (gcc_convert_symbol): Likewise.
907 (gcc_symbol_address): Likewise.
908 (hash_symname): Likewise.
909 (eq_symname): Likewise.
910 * compile/compile-c-types.c (hash_type_map_instance): Likewise.
911 (eq_type_map_instance): Likewise.
912 (insert_type): Likewise.
913 (convert_type): Likewise.
914 * compile/compile-object-load.c (munmap_listp_free_cleanup): Likewise.
915 (setup_sections): Likewise.
916 (link_hash_table_free): Likewise.
917 (copy_sections): Likewise.
918 * compile/compile-object-run.c (do_module_cleanup): Likewise.
919 * compile/compile.c (compile_print_value): Likewise.
920 (do_rmdir): Likewise.
921 (cleanup_compile_instance): Likewise.
922 (cleanup_unlink_file): Likewise.
923 * completer.c (free_completion_tracker): Likewise.
924 * corelow.c (add_to_spuid_list): Likewise.
925 * cp-namespace.c (reset_directive_searched): Likewise.
926 * cp-support.c (reset_directive_searched): Likewise.
927 * cris-tdep.c (cris_sigtramp_frame_unwind_cache): Likewise.
928 (cris_frame_unwind_cache): Likewise.
929 * d-lang.c (builtin_d_type): Likewise.
930 * d-namespace.c (reset_directive_searched): Likewise.
931 * dbxread.c (dbx_free_symfile_info): Likewise.
932 (do_free_bincl_list_cleanup): Likewise.
933 * disasm.c (hash_dis_line_entry): Likewise.
934 (eq_dis_line_entry): Likewise.
935 (dis_asm_print_address): Likewise.
936 (fprintf_disasm): Likewise.
937 (do_ui_file_delete): Likewise.
938 * doublest.c (convert_floatformat_to_doublest): Likewise.
939 * dummy-frame.c (pop_dummy_frame_bpt): Likewise.
940 (dummy_frame_prev_register): Likewise.
941 (dummy_frame_this_id): Likewise.
942 * dwarf2-frame-tailcall.c (cache_hash): Likewise.
943 (cache_eq): Likewise.
944 (cache_find): Likewise.
945 (tailcall_frame_this_id): Likewise.
946 (dwarf2_tailcall_prev_register_first): Likewise.
947 (tailcall_frame_prev_register): Likewise.
948 (tailcall_frame_dealloc_cache): Likewise.
949 (tailcall_frame_prev_arch): Likewise.
950 * dwarf2-frame.c (dwarf2_frame_state_free): Likewise.
951 (dwarf2_frame_set_init_reg): Likewise.
952 (dwarf2_frame_init_reg): Likewise.
953 (dwarf2_frame_set_signal_frame_p): Likewise.
954 (dwarf2_frame_signal_frame_p): Likewise.
955 (dwarf2_frame_set_adjust_regnum): Likewise.
956 (dwarf2_frame_adjust_regnum): Likewise.
957 (clear_pointer_cleanup): Likewise.
958 (dwarf2_frame_cache): Likewise.
959 (find_cie): Likewise.
960 (dwarf2_frame_find_fde): Likewise.
961 * dwarf2expr.c (dwarf_expr_address_type): Likewise.
962 (free_dwarf_expr_context_cleanup): Likewise.
963 * dwarf2loc.c (locexpr_find_frame_base_location): Likewise.
964 (locexpr_get_frame_base): Likewise.
965 (loclist_find_frame_base_location): Likewise.
966 (loclist_get_frame_base): Likewise.
967 (dwarf_expr_dwarf_call): Likewise.
968 (dwarf_expr_get_base_type): Likewise.
969 (dwarf_expr_push_dwarf_reg_entry_value): Likewise.
970 (dwarf_expr_get_obj_addr): Likewise.
971 (entry_data_value_coerce_ref): Likewise.
972 (entry_data_value_copy_closure): Likewise.
973 (entry_data_value_free_closure): Likewise.
974 (get_frame_address_in_block_wrapper): Likewise.
975 (dwarf2_evaluate_property): Likewise.
976 (dwarf2_compile_property_to_c): Likewise.
977 (needs_frame_read_addr_from_reg): Likewise.
978 (needs_frame_get_reg_value): Likewise.
979 (needs_frame_frame_base): Likewise.
980 (needs_frame_frame_cfa): Likewise.
981 (needs_frame_tls_address): Likewise.
982 (needs_frame_dwarf_call): Likewise.
983 (needs_dwarf_reg_entry_value): Likewise.
984 (get_ax_pc): Likewise.
985 (locexpr_read_variable): Likewise.
986 (locexpr_read_variable_at_entry): Likewise.
987 (locexpr_read_needs_frame): Likewise.
988 (locexpr_describe_location): Likewise.
989 (locexpr_tracepoint_var_ref): Likewise.
990 (locexpr_generate_c_location): Likewise.
991 (loclist_read_variable): Likewise.
992 (loclist_read_variable_at_entry): Likewise.
993 (loclist_describe_location): Likewise.
994 (loclist_tracepoint_var_ref): Likewise.
995 (loclist_generate_c_location): Likewise.
996 * dwarf2read.c (line_header_hash_voidp): Likewise.
997 (line_header_eq_voidp): Likewise.
998 (dwarf2_has_info): Likewise.
999 (dwarf2_get_section_info): Likewise.
1000 (locate_dwz_sections): Likewise.
1001 (hash_file_name_entry): Likewise.
1002 (eq_file_name_entry): Likewise.
1003 (delete_file_name_entry): Likewise.
1004 (dw2_setup): Likewise.
1005 (dw2_get_file_names_reader): Likewise.
1006 (dw2_find_pc_sect_compunit_symtab): Likewise.
1007 (hash_signatured_type): Likewise.
1008 (eq_signatured_type): Likewise.
1009 (add_signatured_type_cu_to_table): Likewise.
1010 (create_debug_types_hash_table): Likewise.
1011 (lookup_dwo_signatured_type): Likewise.
1012 (lookup_dwp_signatured_type): Likewise.
1013 (lookup_signatured_type): Likewise.
1014 (hash_type_unit_group): Likewise.
1015 (eq_type_unit_group): Likewise.
1016 (get_type_unit_group): Likewise.
1017 (process_psymtab_comp_unit_reader): Likewise.
1018 (sort_tu_by_abbrev_offset): Likewise.
1019 (process_skeletonless_type_unit): Likewise.
1020 (psymtabs_addrmap_cleanup): Likewise.
1021 (dwarf2_read_symtab): Likewise.
1022 (psymtab_to_symtab_1): Likewise.
1023 (die_hash): Likewise.
1024 (die_eq): Likewise.
1025 (load_full_comp_unit_reader): Likewise.
1026 (reset_die_in_process): Likewise.
1027 (free_cu_line_header): Likewise.
1028 (handle_DW_AT_stmt_list): Likewise.
1029 (hash_dwo_file): Likewise.
1030 (eq_dwo_file): Likewise.
1031 (hash_dwo_unit): Likewise.
1032 (eq_dwo_unit): Likewise.
1033 (create_dwo_cu_reader): Likewise.
1034 (create_dwo_unit_in_dwp_v1): Likewise.
1035 (create_dwo_unit_in_dwp_v2): Likewise.
1036 (lookup_dwo_unit_in_dwp): Likewise.
1037 (dwarf2_locate_dwo_sections): Likewise.
1038 (dwarf2_locate_common_dwp_sections): Likewise.
1039 (dwarf2_locate_v2_dwp_sections): Likewise.
1040 (hash_dwp_loaded_cutus): Likewise.
1041 (eq_dwp_loaded_cutus): Likewise.
1042 (lookup_dwo_cutu): Likewise.
1043 (abbrev_table_free_cleanup): Likewise.
1044 (dwarf2_free_abbrev_table): Likewise.
1045 (find_partial_die_in_comp_unit): Likewise.
1046 (free_line_header_voidp): Likewise.
1047 (follow_die_offset): Likewise.
1048 (follow_die_sig_1): Likewise.
1049 (free_heap_comp_unit): Likewise.
1050 (free_stack_comp_unit): Likewise.
1051 (dwarf2_free_objfile): Likewise.
1052 (per_cu_offset_and_type_hash): Likewise.
1053 (per_cu_offset_and_type_eq): Likewise.
1054 (get_die_type_at_offset): Likewise.
1055 (partial_die_hash): Likewise.
1056 (partial_die_eq): Likewise.
1057 (dwarf2_per_objfile_free): Likewise.
1058 (hash_strtab_entry): Likewise.
1059 (eq_strtab_entry): Likewise.
1060 (add_string): Likewise.
1061 (hash_symtab_entry): Likewise.
1062 (eq_symtab_entry): Likewise.
1063 (delete_symtab_entry): Likewise.
1064 (cleanup_mapped_symtab): Likewise.
1065 (add_indices_to_cpool): Likewise.
1066 (hash_psymtab_cu_index): Likewise.
1067 (eq_psymtab_cu_index): Likewise.
1068 (add_address_entry_worker): Likewise.
1069 (unlink_if_set): Likewise.
1070 (write_one_signatured_type): Likewise.
1071 (save_gdb_index_command): Likewise.
1072 * elfread.c (elf_symtab_read): Likewise.
1073 (elf_gnu_ifunc_cache_hash): Likewise.
1074 (elf_gnu_ifunc_cache_eq): Likewise.
1075 (elf_gnu_ifunc_record_cache): Likewise.
1076 (elf_gnu_ifunc_resolve_by_cache): Likewise.
1077 (elf_get_probes): Likewise.
1078 (probe_key_free): Likewise.
1079 * f-lang.c (builtin_f_type): Likewise.
1080 * frame-base.c (frame_base_append_sniffer): Likewise.
1081 (frame_base_set_default): Likewise.
1082 (frame_base_find_by_frame): Likewise.
1083 * frame-unwind.c (frame_unwind_prepend_unwinder): Likewise.
1084 (frame_unwind_append_unwinder): Likewise.
1085 (frame_unwind_find_by_frame): Likewise.
1086 * frame.c (frame_addr_hash): Likewise.
1087 (frame_addr_hash_eq): Likewise.
1088 (frame_stash_find): Likewise.
1089 (do_frame_register_read): Likewise.
1090 (unwind_to_current_frame): Likewise.
1091 (frame_cleanup_after_sniffer): Likewise.
1092 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
1093 * frv-tdep.c (frv_frame_unwind_cache): Likewise.
1094 * ft32-tdep.c (ft32_frame_cache): Likewise.
1095 * gcore.c (do_bfd_delete_cleanup): Likewise.
1096 (gcore_create_callback): Likewise.
1097 * gdb_bfd.c (hash_bfd): Likewise.
1098 (eq_bfd): Likewise.
1099 (gdb_bfd_open): Likewise.
1100 (free_one_bfd_section): Likewise.
1101 (gdb_bfd_ref): Likewise.
1102 (gdb_bfd_unref): Likewise.
1103 (get_section_descriptor): Likewise.
1104 (gdb_bfd_map_section): Likewise.
1105 (gdb_bfd_crc): Likewise.
1106 (gdb_bfd_mark_parent): Likewise.
1107 (gdb_bfd_record_inclusion): Likewise.
1108 (gdb_bfd_requires_relocations): Likewise.
1109 (print_one_bfd): Likewise.
1110 * gdbtypes.c (type_pair_hash): Likewise.
1111 (type_pair_eq): Likewise.
1112 (builtin_type): Likewise.
1113 (objfile_type): Likewise.
1114 * gnu-v3-abi.c (vtable_ptrdiff_type): Likewise.
1115 (vtable_address_point_offset): Likewise.
1116 (gnuv3_get_vtable): Likewise.
1117 (hash_value_and_voffset): Likewise.
1118 (eq_value_and_voffset): Likewise.
1119 (compare_value_and_voffset): Likewise.
1120 (compute_vtable_size): Likewise.
1121 (gnuv3_get_typeid_type): Likewise.
1122 * go-lang.c (builtin_go_type): Likewise.
1123 * guile/scm-block.c (bkscm_hash_block_smob): Likewise.
1124 (bkscm_eq_block_smob): Likewise.
1125 (bkscm_objfile_block_map): Likewise.
1126 (bkscm_del_objfile_blocks): Likewise.
1127 * guile/scm-breakpoint.c (bpscm_build_bp_list): Likewise.
1128 * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker): Likewise.
1129 (gdbscm_disasm_print_address): Likewise.
1130 * guile/scm-frame.c (frscm_hash_frame_smob): Likewise.
1131 (frscm_eq_frame_smob): Likewise.
1132 (frscm_inferior_frame_map): Likewise.
1133 (frscm_del_inferior_frames): Likewise.
1134 * guile/scm-gsmob.c (gdbscm_add_objfile_ref): Likewise.
1135 * guile/scm-objfile.c (ofscm_handle_objfile_deleted): Likewise.
1136 (ofscm_objfile_smob_from_objfile): Likewise.
1137 * guile/scm-ports.c (ioscm_write): Likewise.
1138 (ioscm_file_port_delete): Likewise.
1139 (ioscm_file_port_rewind): Likewise.
1140 (ioscm_file_port_put): Likewise.
1141 (ioscm_file_port_write): Likewise.
1142 * guile/scm-progspace.c (psscm_handle_pspace_deleted): Likewise.
1143 (psscm_pspace_smob_from_pspace): Likewise.
1144 * guile/scm-safe-call.c (scscm_recording_pre_unwind_handler): Likewise.
1145 (scscm_recording_unwind_handler): Likewise.
1146 (gdbscm_with_catch): Likewise.
1147 (scscm_call_0_body): Likewise.
1148 (scscm_call_1_body): Likewise.
1149 (scscm_call_2_body): Likewise.
1150 (scscm_call_3_body): Likewise.
1151 (scscm_call_4_body): Likewise.
1152 (scscm_apply_1_body): Likewise.
1153 (scscm_eval_scheme_string): Likewise.
1154 (gdbscm_safe_eval_string): Likewise.
1155 (scscm_source_scheme_script): Likewise.
1156 (gdbscm_safe_source_script): Likewise.
1157 * guile/scm-string.c (gdbscm_call_scm_to_stringn): Likewise.
1158 (gdbscm_call_scm_from_stringn): Likewise.
1159 * guile/scm-symbol.c (syscm_hash_symbol_smob): Likewise.
1160 (syscm_eq_symbol_smob): Likewise.
1161 (syscm_get_symbol_map): Likewise.
1162 (syscm_del_objfile_symbols): Likewise.
1163 * guile/scm-symtab.c (stscm_hash_symtab_smob): Likewise.
1164 (stscm_eq_symtab_smob): Likewise.
1165 (stscm_objfile_symtab_map): Likewise.
1166 (stscm_del_objfile_symtabs): Likewise.
1167 * guile/scm-type.c (tyscm_hash_type_smob): Likewise.
1168 (tyscm_eq_type_smob): Likewise.
1169 (tyscm_type_map): Likewise.
1170 (tyscm_copy_type_recursive): Likewise.
1171 (save_objfile_types): Likewise.
1172 * guile/scm-utils.c (extract_arg): Likewise.
1173 * h8300-tdep.c (h8300_frame_cache): Likewise.
1174 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Likewise.
1175 * hppa-tdep.c (compare_unwind_entries): Likewise.
1176 (find_unwind_entry): Likewise.
1177 (hppa_frame_cache): Likewise.
1178 (hppa_stub_frame_unwind_cache): Likewise.
1179 * hppanbsd-tdep.c (hppanbsd_supply_gregset): Likewise.
1180 * hppaobsd-tdep.c (hppaobsd_supply_gregset): Likewise.
1181 (hppaobsd_supply_fpregset): Likewise.
1182 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1183 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
1184 * i386-tdep.c (i386_frame_cache): Likewise.
1185 (i386_epilogue_frame_cache): Likewise.
1186 (i386_sigtramp_frame_cache): Likewise.
1187 (i386_supply_gregset): Likewise.
1188 (i386_collect_gregset): Likewise.
1189 (i386_gdbarch_init): Likewise.
1190 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Likewise.
1191 (i386obsd_trapframe_cache): Likewise.
1192 * i387-tdep.c (i387_supply_fsave): Likewise.
1193 (i387_collect_fsave): Likewise.
1194 (i387_supply_fxsave): Likewise.
1195 (i387_collect_fxsave): Likewise.
1196 (i387_supply_xsave): Likewise.
1197 (i387_collect_xsave): Likewise.
1198 * ia64-tdep.c (ia64_frame_cache): Likewise.
1199 (ia64_sigtramp_frame_cache): Likewise.
1200 * infcmd.c (attach_command_continuation): Likewise.
1201 (attach_command_continuation_free_args): Likewise.
1202 * inferior.c (restore_inferior): Likewise.
1203 (delete_thread_of_inferior): Likewise.
1204 * inflow.c (inflow_inferior_data_cleanup): Likewise.
1205 (get_inflow_inferior_data): Likewise.
1206 (inflow_inferior_exit): Likewise.
1207 * infrun.c (displaced_step_clear_cleanup): Likewise.
1208 (restore_current_uiout_cleanup): Likewise.
1209 (release_stop_context_cleanup): Likewise.
1210 (do_restore_infcall_suspend_state_cleanup): Likewise.
1211 (do_restore_infcall_control_state_cleanup): Likewise.
1212 (restore_inferior_ptid): Likewise.
1213 * inline-frame.c (block_starting_point_at): Likewise.
1214 * iq2000-tdep.c (iq2000_frame_cache): Likewise.
1215 * jit.c (get_jit_objfile_data): Likewise.
1216 (get_jit_program_space_data): Likewise.
1217 (jit_object_close_impl): Likewise.
1218 (jit_find_objf_with_entry_addr): Likewise.
1219 (jit_breakpoint_deleted): Likewise.
1220 (jit_unwind_reg_set_impl): Likewise.
1221 (jit_unwind_reg_get_impl): Likewise.
1222 (jit_dealloc_cache): Likewise.
1223 (jit_frame_sniffer): Likewise.
1224 (jit_frame_prev_register): Likewise.
1225 (jit_prepend_unwinder): Likewise.
1226 (jit_inferior_exit_hook): Likewise.
1227 (free_objfile_data): Likewise.
1228 * jv-lang.c (jv_per_objfile_free): Likewise.
1229 (get_dynamics_objfile): Likewise.
1230 (get_java_class_symtab): Likewise.
1231 (builtin_java_type): Likewise.
1232 * language.c (language_string_char_type): Likewise.
1233 (language_bool_type): Likewise.
1234 (language_lookup_primitive_type): Likewise.
1235 (language_lookup_primitive_type_as_symbol): Likewise.
1236 * linespec.c (hash_address_entry): Likewise.
1237 (eq_address_entry): Likewise.
1238 (iterate_inline_only): Likewise.
1239 (iterate_name_matcher): Likewise.
1240 (decode_line_2_compare_items): Likewise.
1241 (collect_one_symbol): Likewise.
1242 (compare_symbols): Likewise.
1243 (compare_msymbols): Likewise.
1244 (add_symtabs_to_list): Likewise.
1245 (collect_symbols): Likewise.
1246 (compare_msyms): Likewise.
1247 (add_minsym): Likewise.
1248 (cleanup_linespec_result): Likewise.
1249 * linux-fork.c (inferior_call_waitpid_cleanup): Likewise.
1250 * linux-nat.c (delete_lwp_cleanup): Likewise.
1251 (count_events_callback): Likewise.
1252 (select_event_lwp_callback): Likewise.
1253 (resume_stopped_resumed_lwps): Likewise.
1254 * linux-tdep.c (get_linux_gdbarch_data): Likewise.
1255 (invalidate_linux_cache_inf): Likewise.
1256 (get_linux_inferior_data): Likewise.
1257 (linux_find_memory_regions_thunk): Likewise.
1258 (linux_make_mappings_callback): Likewise.
1259 (linux_corefile_thread_callback): Likewise.
1260 (find_mapping_size): Likewise.
1261 * linux-thread-db.c (find_new_threads_callback): Likewise.
1262 * lm32-tdep.c (lm32_frame_cache): Likewise.
1263 * m2-lang.c (builtin_m2_type): Likewise.
1264 * m32c-tdep.c (m32c_analyze_frame_prologue): Likewise.
1265 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_cache): Likewise.
1266 (m32r_linux_supply_gregset): Likewise.
1267 (m32r_linux_collect_gregset): Likewise.
1268 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
1269 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1270 * m68k-tdep.c (m68k_frame_cache): Likewise.
1271 * m68kbsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
1272 (m68kbsd_supply_gregset): Likewise.
1273 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
1274 * m88k-tdep.c (m88k_frame_cache): Likewise.
1275 (m88k_supply_gregset): Likewise.
1276
224c3ddb
SM
12772015-09-25 Simon Marchi <simon.marchi@ericsson.com>
1278
1279 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Add cast
1280 to allocation result assignment.
1281 * ada-exp.y (write_object_renaming): Likewise.
1282 (write_ambiguous_var): Likewise.
1283 (ada_nget_field_index): Likewise.
1284 (write_var_or_type): Likewise.
1285 * ada-lang.c (ada_decode_symbol): Likewise.
1286 (ada_value_assign): Likewise.
1287 (value_pointer): Likewise.
1288 (cache_symbol): Likewise.
1289 (add_nonlocal_symbols): Likewise.
1290 (ada_name_for_lookup): Likewise.
1291 (symbol_completion_add): Likewise.
1292 (ada_to_fixed_type_1): Likewise.
1293 (ada_get_next_arg): Likewise.
1294 (defns_collected): Likewise.
1295 * ada-lex.l (processId): Likewise.
1296 (processString): Likewise.
1297 * ada-tasks.c (read_known_tasks_array): Likewise.
1298 (read_known_tasks_list): Likewise.
1299 * ada-typeprint.c (decoded_type_name): Likewise.
1300 * addrmap.c (addrmap_mutable_create_fixed): Likewise.
1301 * amd64-tdep.c (amd64_push_arguments): Likewise.
1302 (amd64_displaced_step_copy_insn): Likewise.
1303 (amd64_classify_insn_at): Likewise.
1304 (amd64_relocate_instruction): Likewise.
1305 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
1306 * arch-utils.c (simple_displaced_step_copy_insn): Likewise.
1307 (initialize_current_architecture): Likewise.
1308 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
1309 * arm-symbian-tdep.c (arm_symbian_osabi_sniffer): Likewise.
1310 * arm-tdep.c (arm_exidx_new_objfile): Likewise.
1311 (arm_push_dummy_call): Likewise.
1312 (extend_buffer_earlier): Likewise.
1313 (arm_adjust_breakpoint_address): Likewise.
1314 (arm_skip_stub): Likewise.
1315 * auto-load.c (filename_is_in_pattern): Likewise.
1316 (maybe_add_script_file): Likewise.
1317 (maybe_add_script_text): Likewise.
1318 (auto_load_objfile_script_1): Likewise.
1319 * auxv.c (ld_so_xfer_auxv): Likewise.
1320 * ax-general.c (new_agent_expr): Likewise.
1321 (grow_expr): Likewise.
1322 (ax_reg_mask): Likewise.
1323 * bcache.c (bcache_full): Likewise.
1324 * breakpoint.c (program_breakpoint_here_p): Likewise.
1325 * btrace.c (parse_xml_raw): Likewise.
1326 * build-id.c (build_id_to_debug_bfd): Likewise.
1327 * buildsym.c (end_symtab_with_blockvector): Likewise.
1328 * c-exp.y (string_exp): Likewise.
1329 (qualified_name): Likewise.
1330 (write_destructor_name): Likewise.
1331 (operator_stoken): Likewise.
1332 (parse_number): Likewise.
1333 (scan_macro_expansion): Likewise.
1334 (yylex): Likewise.
1335 (c_print_token): Likewise.
1336 * c-lang.c (c_get_string): Likewise.
1337 (emit_numeric_character): Likewise.
1338 * charset.c (wchar_iterate): Likewise.
1339 * cli/cli-cmds.c (complete_command): Likewise.
1340 (make_command): Likewise.
1341 * cli/cli-dump.c (restore_section_callback): Likewise.
1342 (restore_binary_file): Likewise.
1343 * cli/cli-interp.c (cli_interpreter_exec): Likewise.
1344 * cli/cli-script.c (execute_control_command): Likewise.
1345 * cli/cli-setshow.c (do_set_command): Likewise.
1346 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
1347 (read_pe_exported_syms): Likewise.
1348 * coffread.c (coff_read_struct_type): Likewise.
1349 (coff_read_enum_type): Likewise.
1350 * common/btrace-common.c (btrace_data_append): Likewise.
1351 * common/buffer.c (buffer_grow): Likewise.
1352 * common/filestuff.c (gdb_fopen_cloexec): Likewise.
1353 * common/format.c (parse_format_string): Likewise.
1354 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
1355 * common/xml-utils.c (xml_escape_text): Likewise.
1356 * compile/compile-object-load.c (copy_sections): Likewise.
1357 (compile_object_load): Likewise.
1358 * compile/compile-object-run.c (compile_object_run): Likewise.
1359 * completer.c (filename_completer): Likewise.
1360 * corefile.c (read_memory_typed_address): Likewise.
1361 (write_memory_unsigned_integer): Likewise.
1362 (write_memory_signed_integer): Likewise.
1363 (complete_set_gnutarget): Likewise.
1364 * corelow.c (get_core_register_section): Likewise.
1365 * cp-name-parser.y (d_grab): Likewise.
1366 (allocate_info): Likewise.
1367 (cp_new_demangle_parse_info): Likewise.
1368 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Likewise.
1369 (cp_lookup_symbol_in_namespace): Likewise.
1370 (lookup_namespace_scope): Likewise.
1371 (find_symbol_in_baseclass): Likewise.
1372 (cp_lookup_nested_symbol): Likewise.
1373 (cp_lookup_transparent_type_loop): Likewise.
1374 * cp-support.c (copy_string_to_obstack): Likewise.
1375 (make_symbol_overload_list): Likewise.
1376 (make_symbol_overload_list_namespace): Likewise.
1377 (make_symbol_overload_list_adl_namespace): Likewise.
1378 (first_component_command): Likewise.
1379 * cp-valprint.c (cp_print_value): Likewise.
1380 * ctf.c (ctf_xfer_partial): Likewise.
1381 * d-exp.y (StringExp): Likewise.
1382 * d-namespace.c (d_lookup_symbol_in_module): Likewise.
1383 (lookup_module_scope): Likewise.
1384 (find_symbol_in_baseclass): Likewise.
1385 (d_lookup_nested_symbol): Likewise.
1386 * dbxread.c (find_stab_function_addr): Likewise.
1387 (read_dbx_symtab): Likewise.
1388 (dbx_end_psymtab): Likewise.
1389 (cp_set_block_scope): Likewise.
1390 * dcache.c (dcache_alloc): Likewise.
1391 * demangle.c (_initialize_demangler): Likewise.
1392 * dicos-tdep.c (dicos_load_module_p): Likewise.
1393 * dictionary.c (dict_create_hashed_expandable): Likewise.
1394 (dict_create_linear_expandable): Likewise.
1395 (expand_hashtable): Likewise.
1396 (add_symbol_linear_expandable): Likewise.
1397 * dwarf2-frame.c (add_cie): Likewise.
1398 (add_fde): Likewise.
1399 (dwarf2_build_frame_info): Likewise.
1400 * dwarf2expr.c (dwarf_expr_grow_stack): Likewise.
1401 (dwarf_expr_fetch_address): Likewise.
1402 (add_piece): Likewise.
1403 (execute_stack_op): Likewise.
1404 * dwarf2loc.c (chain_candidate): Likewise.
1405 (dwarf_entry_parameter_to_value): Likewise.
1406 (read_pieced_value): Likewise.
1407 (write_pieced_value): Likewise.
1408 * dwarf2read.c (dwarf2_read_section): Likewise.
1409 (add_type_unit): Likewise.
1410 (read_comp_units_from_section): Likewise.
1411 (fixup_go_packaging): Likewise.
1412 (dwarf2_compute_name): Likewise.
1413 (dwarf2_physname): Likewise.
1414 (create_dwo_unit_in_dwp_v1): Likewise.
1415 (create_dwo_unit_in_dwp_v2): Likewise.
1416 (read_func_scope): Likewise.
1417 (read_call_site_scope): Likewise.
1418 (dwarf2_attach_fields_to_type): Likewise.
1419 (process_structure_scope): Likewise.
1420 (mark_common_block_symbol_computed): Likewise.
1421 (read_common_block): Likewise.
1422 (abbrev_table_read_table): Likewise.
1423 (guess_partial_die_structure_name): Likewise.
1424 (fixup_partial_die): Likewise.
1425 (add_file_name): Likewise.
1426 (dwarf2_const_value_data): Likewise.
1427 (dwarf2_const_value_attr): Likewise.
1428 (build_error_marker_type): Likewise.
1429 (guess_full_die_structure_name): Likewise.
1430 (anonymous_struct_prefix): Likewise.
1431 (typename_concat): Likewise.
1432 (dwarf2_canonicalize_name): Likewise.
1433 (dwarf2_name): Likewise.
1434 (write_constant_as_bytes): Likewise.
1435 (dwarf2_fetch_constant_bytes): Likewise.
1436 (copy_string): Likewise.
1437 (parse_macro_definition): Likewise.
1438 * elfread.c (elf_symfile_segments): Likewise.
1439 (elf_rel_plt_read): Likewise.
1440 (elf_gnu_ifunc_resolve_by_cache): Likewise.
1441 (elf_gnu_ifunc_resolve_by_got): Likewise.
1442 (elf_read_minimal_symbols): Likewise.
1443 (elf_gnu_ifunc_record_cache): Likewise.
1444 * event-top.c (top_level_prompt): Likewise.
1445 (command_line_handler): Likewise.
1446 * exec.c (resize_section_table): Likewise.
1447 * expprint.c (print_subexp_standard): Likewise.
1448 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
1449 * findcmd.c (parse_find_args): Likewise.
1450 * findvar.c (address_from_register): Likewise.
1451 * frame.c (get_prev_frame_always): Likewise.
1452 * gdb_bfd.c (gdb_bfd_ref): Likewise.
1453 (get_section_descriptor): Likewise.
1454 * gdb_obstack.c (obconcat): Likewise.
1455 (obstack_strdup): Likewise.
1456 * gdbtypes.c (lookup_function_type_with_arguments): Likewise.
1457 (create_set_type): Likewise.
1458 (lookup_unsigned_typename): Likewise.
1459 (lookup_signed_typename): Likewise.
1460 (resolve_dynamic_union): Likewise.
1461 (resolve_dynamic_struct): Likewise.
1462 (add_dyn_prop): Likewise.
1463 (copy_dynamic_prop_list): Likewise.
1464 (arch_flags_type): Likewise.
1465 (append_composite_type_field_raw): Likewise.
1466 * gdbtypes.h (INIT_FUNC_SPECIFIC): Likewise.
1467 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
1468 * go-exp.y (string_exp): Likewise.
1469 * go-lang.c (go_demangle): Likewise.
1470 * guile/guile.c (compute_scheme_string): Likewise.
1471 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1472 (gdbscm_canonicalize_command_name): Likewise.
1473 * guile/scm-ports.c (ioscm_init_stdio_buffers): Likewise.
1474 (ioscm_init_memory_port): Likewise.
1475 (ioscm_reinit_memory_port): Likewise.
1476 * guile/scm-utils.c (gdbscm_gc_xstrdup): Likewise.
1477 (gdbscm_gc_dup_argv): Likewise.
1478 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
1479 * hppa-tdep.c (internalize_unwinds): Likewise.
1480 (read_unwind_info): Likewise.
1481 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1482 (windows_core_xfer_shared_libraries): Likewise.
1483 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
1484 (i386_stap_parse_special_token_triplet): Likewise.
1485 (i386_stap_parse_special_token_three_arg_disp): Likewise.
1486 * i386obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
1487 * inf-child.c (inf_child_fileio_readlink): Likewise.
1488 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
1489 (inf_ptrace_store_register): Likewise.
1490 * infrun.c (follow_exec): Likewise.
1491 (displaced_step_prepare_throw): Likewise.
1492 (save_stop_context): Likewise.
1493 (save_infcall_suspend_state): Likewise.
1494 * jit.c (jit_read_descriptor): Likewise.
1495 (jit_read_code_entry): Likewise.
1496 (jit_symtab_line_mapping_add_impl): Likewise.
1497 (finalize_symtab): Likewise.
1498 (jit_unwind_reg_get_impl): Likewise.
1499 * jv-exp.y (QualifiedName): Likewise.
1500 * jv-lang.c (get_java_utf8_name): Likewise.
1501 (type_from_class): Likewise.
1502 (java_demangle_type_signature): Likewise.
1503 (java_class_name_from_physname): Likewise.
1504 * jv-typeprint.c (java_type_print_base): Likewise.
1505 * jv-valprint.c (java_value_print): Likewise.
1506 * language.c (add_language): Likewise.
1507 * linespec.c (add_sal_to_sals_basic): Likewise.
1508 (add_sal_to_sals): Likewise.
1509 (decode_objc): Likewise.
1510 (find_linespec_symbols): Likewise.
1511 * linux-fork.c (fork_save_infrun_state): Likewise.
1512 * linux-nat.c (linux_nat_detach): Likewise.
1513 (linux_nat_fileio_readlink): Likewise.
1514 * linux-record.c (record_linux_sockaddr): Likewise.
1515 (record_linux_msghdr): Likewise.
1516 (Do): Likewise.
1517 * linux-tdep.c (linux_core_info_proc_mappings): Likewise.
1518 (linux_collect_regset_section_cb): Likewise.
1519 (linux_get_siginfo_data): Likewise.
1520 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Likewise.
1521 (try_thread_db_load_from_dir): Likewise.
1522 (thread_db_load_search): Likewise.
1523 (info_auto_load_libthread_db): Likewise.
1524 * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
1525 (m32c_m16c_pointer_to_address): Likewise.
1526 * m68hc11-tdep.c (m68hc11_pseudo_register_write): Likewise.
1527 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
1528 * machoread.c (macho_check_dsym): Likewise.
1529 * macroexp.c (resize_buffer): Likewise.
1530 (gather_arguments): Likewise.
1531 (maybe_expand): Likewise.
1532 * macrotab.c (new_macro_key): Likewise.
1533 (new_source_file): Likewise.
1534 (new_macro_definition): Likewise.
1535 * mdebugread.c (parse_symbol): Likewise.
1536 (parse_type): Likewise.
1537 (parse_partial_symbols): Likewise.
1538 (psymtab_to_symtab_1): Likewise.
1539 * mem-break.c (default_memory_insert_breakpoint): Likewise.
1540 * mi/mi-cmd-break.c (mi_argv_to_format): Likewise.
1541 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
1542 (mi_cmd_data_read_memory_bytes): Likewise.
1543 (mi_cmd_data_write_memory_bytes): Likewise.
1544 (mi_cmd_trace_frame_collected): Likewise.
1545 * mi/mi-parse.c (mi_parse_argv): Likewise.
1546 (mi_parse): Likewise.
1547 * minidebug.c (lzma_open): Likewise.
1548 (lzma_pread): Likewise.
1549 * mips-tdep.c (mips_read_fp_register_single): Likewise.
1550 (mips_print_fp_register): Likewise.
1551 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
1552 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
1553 * mt-tdep.c (mt_register_name): Likewise.
1554 (mt_registers_info): Likewise.
1555 (mt_push_dummy_call): Likewise.
1556 * namespace.c (add_using_directive): Likewise.
1557 * nat/linux-btrace.c (perf_event_read): Likewise.
1558 (linux_enable_bts): Likewise.
1559 * nat/linux-osdata.c (linux_common_core_of_thread): Likewise.
1560 * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Likewise.
1561 * nto-tdep.c (nto_find_and_open_solib): Likewise.
1562 (nto_parse_redirection): Likewise.
1563 * objc-lang.c (objc_demangle): Likewise.
1564 (find_methods): Likewise.
1565 * objfiles.c (get_objfile_bfd_data): Likewise.
1566 (set_objfile_main_name): Likewise.
1567 (allocate_objfile): Likewise.
1568 (objfile_relocate): Likewise.
1569 (update_section_map): Likewise.
1570 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
1571 * p-exp.y (exp): Likewise.
1572 (yylex): Likewise.
1573 * p-valprint.c (pascal_object_print_value): Likewise.
1574 * parse.c (initialize_expout): Likewise.
1575 (mark_completion_tag): Likewise.
1576 (copy_name): Likewise.
1577 (parse_float): Likewise.
1578 (type_stack_reserve): Likewise.
1579 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
1580 (ppu2spu_prev_register): Likewise.
1581 * ppc-ravenscar-thread.c (supply_register_at_address): Likewise.
1582 * printcmd.c (printf_wide_c_string): Likewise.
1583 (printf_pointer): Likewise.
1584 * probe.c (parse_probes): Likewise.
1585 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1586 (cmdpy_init): Likewise.
1587 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Likewise.
1588 * python/py-symtab.c (set_sal): Likewise.
1589 * python/py-unwind.c (pyuw_sniffer): Likewise.
1590 * python/python.c (python_interactive_command): Likewise.
1591 (compute_python_string): Likewise.
1592 * ravenscar-thread.c (get_running_thread_id): Likewise.
1593 * record-full.c (record_full_exec_insn): Likewise.
1594 (record_full_core_open_1): Likewise.
1595 * regcache.c (regcache_raw_read_signed): Likewise.
1596 (regcache_raw_read_unsigned): Likewise.
1597 (regcache_cooked_read_signed): Likewise.
1598 (regcache_cooked_read_unsigned): Likewise.
1599 * remote-fileio.c (remote_fileio_func_open): Likewise.
1600 (remote_fileio_func_rename): Likewise.
1601 (remote_fileio_func_unlink): Likewise.
1602 (remote_fileio_func_stat): Likewise.
1603 (remote_fileio_func_system): Likewise.
1604 * remote-mips.c (mips_xfer_memory): Likewise.
1605 (mips_load_srec): Likewise.
1606 (pmon_end_download): Likewise.
1607 * remote.c (new_remote_state): Likewise.
1608 (map_regcache_remote_table): Likewise.
1609 (remote_register_number_and_offset): Likewise.
1610 (init_remote_state): Likewise.
1611 (get_memory_packet_size): Likewise.
1612 (remote_pass_signals): Likewise.
1613 (remote_program_signals): Likewise.
1614 (remote_start_remote): Likewise.
1615 (remote_check_symbols): Likewise.
1616 (remote_query_supported): Likewise.
1617 (extended_remote_attach): Likewise.
1618 (process_g_packet): Likewise.
1619 (store_registers_using_G): Likewise.
1620 (putpkt_binary): Likewise.
1621 (read_frame): Likewise.
1622 (compare_sections_command): Likewise.
1623 (remote_hostio_pread): Likewise.
1624 (remote_hostio_readlink): Likewise.
1625 (remote_file_put): Likewise.
1626 (remote_file_get): Likewise.
1627 (remote_pid_to_exec_file): Likewise.
1628 (_initialize_remote): Likewise.
1629 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
1630 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
1631 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
1632 (bfd_uses_spe_extensions): Likewise.
1633 * s390-linux-tdep.c (s390_displaced_step_copy_insn): Likewise.
1634 * score-tdep.c (score7_malloc_and_get_memblock): Likewise.
1635 * solib-dsbt.c (decode_loadmap): Likewise.
1636 (fetch_loadmap): Likewise.
1637 (scan_dyntag): Likewise.
1638 (enable_break): Likewise.
1639 (dsbt_relocate_main_executable): Likewise.
1640 * solib-frv.c (fetch_loadmap): Likewise.
1641 (enable_break2): Likewise.
1642 (frv_relocate_main_executable): Likewise.
1643 * solib-spu.c (spu_relocate_main_executable): Likewise.
1644 (spu_bfd_open): Likewise.
1645 * solib-svr4.c (lm_info_read): Likewise.
1646 (read_program_header): Likewise.
1647 (find_program_interpreter): Likewise.
1648 (scan_dyntag): Likewise.
1649 (elf_locate_base): Likewise.
1650 (open_symbol_file_object): Likewise.
1651 (read_program_headers_from_bfd): Likewise.
1652 (svr4_relocate_main_executable): Likewise.
1653 * solib-target.c (solib_target_relocate_section_addresses): Likewise.
1654 * solib.c (solib_find_1): Likewise.
1655 (exec_file_find): Likewise.
1656 (solib_find): Likewise.
1657 * source.c (openp): Likewise.
1658 (print_source_lines_base): Likewise.
1659 (forward_search_command): Likewise.
1660 * sparc-ravenscar-thread.c (supply_register_at_address): Likewise.
1661 * spu-tdep.c (spu2ppu_prev_register): Likewise.
1662 (spu_get_overlay_table): Likewise.
1663 * stabsread.c (patch_block_stabs): Likewise.
1664 (define_symbol): Likewise.
1665 (again:): Likewise.
1666 (read_member_functions): Likewise.
1667 (read_one_struct_field): Likewise.
1668 (read_enum_type): Likewise.
1669 (common_block_start): Likewise.
1670 * stack.c (read_frame_arg): Likewise.
1671 (backtrace_command): Likewise.
1672 * stap-probe.c (stap_parse_register_operand): Likewise.
1673 * symfile.c (syms_from_objfile_1): Likewise.
1674 (find_separate_debug_file): Likewise.
1675 (load_command): Likewise.
1676 (load_progress): Likewise.
1677 (load_section_callback): Likewise.
1678 (reread_symbols): Likewise.
1679 (add_filename_language): Likewise.
1680 (allocate_compunit_symtab): Likewise.
1681 (read_target_long_array): Likewise.
1682 (simple_read_overlay_table): Likewise.
1683 * symtab.c (symbol_set_names): Likewise.
1684 (resize_symbol_cache): Likewise.
1685 (rbreak_command): Likewise.
1686 (completion_list_add_name): Likewise.
1687 (completion_list_objc_symbol): Likewise.
1688 (add_filename_to_list): Likewise.
1689 * target-descriptions.c (maint_print_c_tdesc_cmd): Likewise.
1690 * target-memory.c (target_write_memory_blocks): Likewise.
1691 * target.c (target_read_string): Likewise.
1692 (read_whatever_is_readable): Likewise.
1693 (target_read_alloc_1): Likewise.
1694 (simple_search_memory): Likewise.
1695 (target_fileio_read_alloc_1): Likewise.
1696 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1697 * top.c (command_line_input): Likewise.
1698 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
1699 * tracefile.c (tracefile_fetch_registers): Likewise.
1700 * tracepoint.c (add_memrange): Likewise.
1701 (init_collection_list): Likewise.
1702 (add_aexpr): Likewise.
1703 (trace_dump_actions): Likewise.
1704 (parse_trace_status): Likewise.
1705 (parse_tracepoint_definition): Likewise.
1706 (parse_tsv_definition): Likewise.
1707 (parse_static_tracepoint_marker_definition): Likewise.
1708 * tui/tui-file.c (tui_sfileopen): Likewise.
1709 (tui_file_adjust_strbuf): Likewise.
1710 * tui/tui-io.c (tui_expand_tabs): Likewise.
1711 * tui/tui-source.c (tui_set_source_content): Likewise.
1712 * typeprint.c (find_global_typedef): Likewise.
1713 * ui-file.c (do_ui_file_xstrdup): Likewise.
1714 (ui_file_obsavestring): Likewise.
1715 (mem_file_write): Likewise.
1716 * utils.c (make_hex_string): Likewise.
1717 (get_regcomp_error): Likewise.
1718 (puts_filtered_tabular): Likewise.
1719 (gdb_realpath_keepfile): Likewise.
1720 (ldirname): Likewise.
1721 (gdb_bfd_errmsg): Likewise.
1722 (substitute_path_component): Likewise.
1723 * valops.c (search_struct_method): Likewise.
1724 (find_oload_champ_namespace_loop): Likewise.
1725 * valprint.c (print_decimal_chars): Likewise.
1726 (read_string): Likewise.
1727 (generic_emit_char): Likewise.
1728 * varobj.c (varobj_delete): Likewise.
1729 (varobj_value_get_print_value): Likewise.
1730 * vaxobsd-tdep.c (vaxobsd_sigtramp_sniffer): Likewise.
1731 * windows-tdep.c (display_one_tib): Likewise.
1732 * xcoffread.c (read_xcoff_symtab): Likewise.
1733 (process_xcoff_symbol): Likewise.
1734 (swap_sym): Likewise.
1735 (scan_xcoff_symtab): Likewise.
1736 (xcoff_initial_scan): Likewise.
1737 * xml-support.c (gdb_xml_end_element): Likewise.
1738 (xml_process_xincludes): Likewise.
1739 (xml_fetch_content_from_file): Likewise.
1740 * xml-syscall.c (xml_list_of_syscalls): Likewise.
1741 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1742
623fb775 17432015-09-23 James Bowman <james.bowman@ftdichip.com>
1744
1745 * ft32-tdep.c (ft32_register_type): Return gdbarch_tdep (gdbarch)->pc_type
1746 instead of builtin_func_ptr.
1747 (ft32_pointer_to_address): New function.
1748 (ft32_address_class_type_flags): New function.
1749 (ft32_address_class_type_flags_to_name): New function.
1750 (ft32_address_class_name_to_type_flags): New function.
1751 (ft32_gdbarch_init): Set tdep->pc_type. Call
1752 set_gdbarch_pointer_to_address,
1753 set_gdbarch_address_class_type_flags
1754 set_gdbarch_address_class_name_to_type_flags,
1755 and set_gdbarch_address_class_type_flags_to_name.
1756 * ft32-tdep.h (struct gdbarch_tdep) <pc_type>: New field.
1757
e6c2c623
PMR
17582015-09-23 Pierre-Marie de Rodat <derodat@adacore.com>
1759
1760 * ada-lang.c (ada_evaluate_subexp) <OP_FUNCALL>: When the input
1761 value is a reference, actually dereference it in order to get
1762 the underlying value.
1763
bc1f8cda
SM
17642015-09-22 Simon Marchi <simon.marchi@ericsson.com>
1765
1766 * stap-probe.c (handle_stap_probe): Remove unnecessary cast.
1767
acaa662f
SM
17682015-09-21 Simon Marchi <simon.marchi@ericsson.com>
1769
1770 * cli/cli-setshow.c (cmd_show_list): Constify a variable.
1771 * linespec.c (linespec_lexer_lex_string): Same.
1772
4d9d419e
PL
17732015-09-21 Pierre Langlois <pierre.langlois@arm.com>
1774
1775 * NEWS: Mention support for fast tracepoints on aarch64-linux.
1776
6ec5f4be
PL
17772015-09-21 Pierre Langlois <pierre.langlois@arm.com>
1778
1779 * aarch64-tdep.c (aarch64_analyze_prologue): New is_adrp
1780 variable. Call aarch64_decode_adr instead of
1781 aarch64_decode_adrp.
1782 * arch/aarch64-insn.h (aarch64_decode_adrp): Delete.
1783 (aarch64_decode_adr): New function declaration.
1784 * arch/aarch64-insn.c (aarch64_decode_adrp): Delete.
1785 (aarch64_decode_adr): New function, factored out from
1786 aarch64_decode_adrp to decode both adr and adrp instructions.
1787
787749ea
PL
17882015-09-21 Pierre Langlois <pierre.langlois@arm.com>
1789
1790 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-insn.o.
1791 (HFILES_NO_SRCDIR): Add arch/aarch64-insn.h.
1792 (aarch64-insn.o): New rule.
1793 * configure.tgt (aarch64*-*-elf): Add aarch64-insn.o.
1794 (aarch64*-*-linux*): Likewise.
1795 * arch/aarch64-insn.c: New file.
1796 * arch/aarch64-insn.h: New file.
1797 * aarch64-tdep.c: Include arch/aarch64-insn.h.
1798 (aarch64_debug): Move to arch/aarch64-insn.c. Declare in
1799 arch/aarch64-insn.h.
1800 (decode_add_sub_imm): Rename to ...
1801 (aarch64_decode_add_sub_imm): ... this.
1802 (decode_adrp): Rename to ...
1803 (aarch64_decode_adrp): ... this. Move to arch/aarch64-insn.c.
1804 Declare in arch/aarch64-insn.h.
1805 (decode_b): Rename to ...
1806 (aarch64_decode_b): ... this. Move to arch/aarch64-insn.c.
1807 Declare in arch/aarch64-insn.h.
1808 (decode_bcond): Rename to ...
1809 (aarch64_decode_bcond): ... this. Move to arch/aarch64-insn.c.
1810 Declare in arch/aarch64-insn.h.
1811 (decode_br): Rename to ...
1812 (aarch64_decode_br): ... this.
1813 (decode_cb): Rename to ...
1814 (aarch64_decode_cb): ... this. Move to arch/aarch64-insn.c.
1815 Declare in arch/aarch64-insn.h.
1816 (decode_eret): Rename to ...
1817 (aarch64_decode_eret): ... this.
1818 (decode_movz): Rename to ...
1819 (aarch64_decode_movz): ... this.
1820 (decode_orr_shifted_register_x): Rename to ...
1821 (aarch64_decode_orr_shifted_register_x): ... this.
1822 (decode_ret): Rename to ...
1823 (aarch64_decode_ret): ... this.
1824 (decode_stp_offset): Rename to ...
1825 (aarch64_decode_stp_offset): ... this.
1826 (decode_stp_offset_wb): Rename to ...
1827 (aarch64_decode_stp_offset_wb): ... this.
1828 (decode_stur): Rename to ...
1829 (aarch64_decode_stur): ... this.
1830 (decode_tb): Rename to ...
1831 (aarch64_decode_tb): ... this. Move to arch/aarch64-insn.c.
1832 Declare in arch/aarch64-insn.h.
1833 (aarch64_analyze_prologue): Adjust calls to renamed functions.
1834
183dc7ec
DE
18352015-09-20 Doug Evans <xdje42@gmail.com>
1836
1837 * dwarf2read.c (add_partial_symbol): Remove outdated comments.
1838
2ee7123e
DE
18392015-09-20 Doug Evans <xdje42@gmail.com>
1840
1841 * dwarf2read.c (dwarf2_compute_name): Add FIXME. Don't use a local
1842 variable name that collides with a parameter.
1843
7d1c9c9b
JB
18442015-09-20 Joel Brobecker <brobecker@adacore.com>
1845
1846 * dwarf2loc.c (locexpr_get_frame_base): Renames
1847 block_op_get_frame_base.
1848 (dwarf2_block_frame_base_locexpr_funcs): Replace reference to
1849 block_op_get_frame_base by reference to locexpr_get_frame_base.
1850 (loclist_get_frame_base): New function, near identical copy of
1851 locexpr_get_frame_base.
1852 (dwarf2_block_frame_base_loclist_funcs): Replace reference to
1853 block_op_get_frame_base by reference to loclist_get_frame_base.
1854
7dc7c195
DE
18552015-09-19 Doug Evans <xdje42@gmail.com>
1856
1857 * ravenscar-thread.c (ravenscar_inferior_created): Replace
1858 current_inferior ()->gdbarch with its wrapper target_gdbarch.
1859
be550b6e
DE
18602015-09-18 Doug Evans <xdje42@gmail.com>
1861
1862 * linux-thread-db.c (record_thread): Return the created thread.
1863 (thread_from_lwp): Likewise.
1864 (thread_db_get_thread_local_address): Update.
1865
615b3f62
DE
18662015-09-18 Doug Evans <xdje42@gmail.com>
1867
1868 * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
1869 move only member demangled_name up. All uses updated.
1870
015d2e7e
DE
18712015-09-18 Doug Evans <xdje42@gmail.com>
1872
1873 * findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
1874 kind of minimal symbol in the error message.
1875 * objfiles.c (objfile_flavour_name): New function.
1876 * objfiles.h (objfile_flavour_name): Declare.
1877
a0cc84cd
YQ
18782015-09-18 Yao Qi <yao.qi@linaro.org>
1879
1880 * nat/aarch64-linux.c: Include elf/common.h,
1881 nat/gdb_ptrace.h, asm/ptrace.h and sys/uio.h.
1882 (aarch64_ps_get_thread_area): New function.
1883 * nat/aarch64-linux.h: Include gdb_proc_service.h.
1884 (aarch64_ps_get_thread_area): Declare.
1885 * aarch64-linux-nat.c (ps_get_thread_area): Call
1886 aarch64_ps_get_thread_area.
1887
d2939ba2
MM
18882015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1889
1890 * record-btrace.c (record_btrace_resume): Honour scheduler-locking.
1891
f2665db5
MM
18922015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1893
1894 * NEWS: Announce new scheduler-locking mode.
1895 * infrun.c (schedlock_replay): New.
1896 (scheduler_enums): Add schedlock_replay.
1897 (scheduler_mode): Change default to schedlock_replay.
1898 (user_visible_resume_ptid): Handle schedlock_replay.
1899 (clear_proceed_status_thread): Stop replaying if resumed thread is
1900 not replaying.
1901 (schedlock_applies): Handle schedlock_replay.
1902 (_initialize_infrun): Document new scheduler-locking mode.
1903 * record-btrace.c (record_btrace_resume): Remove code to stop other
1904 threads when not replaying the resumed thread.
1905
7ff27e9b
MM
19062015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1907
1908 * record-btrace.c ((record_btrace_will_replay): New.
1909 (init_record_btrace_ops): Initialize to_record_will_replay.
1910 * record-full.c ((record_full_will_replay): New.
1911 (init_record_full_ops): Initialize to_record_will_replay.
1912 * target-delegates.c: Regenerated.
1913 * target.c (target_record_will_replay): New.
1914 * target.h (struct target_ops) <to_record_will_replay>: New.
1915 (target_record_will_replay): New.
1916
797094dd
MM
19172015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1918
1919 * record-btrace.c (record_btrace_resume): Call
1920 target_record_stop_replaying.
1921 (record_btrace_stop_replaying_all): New.
1922 (init_record_btrace_ops): Initialize to_record_stop_replaying.
1923 * record-full.c (record_full_stop_replaying): New.
1924 (init_record_full_ops ): Initialize to_record_stop_replaying.
1925 * target-delegates.c: Regenerated.
1926 * target.c (target_record_stop_replaying): New.
1927 * target.h (struct target_ops) <to_record_stop_replaying>: New.
1928 (target_record_stop_replaying): New.
1929
4d10e986
MM
19302015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1931
1932 * record-btrace.c (record_btrace_xfer_partial)
1933 (record_btrace_store_registers, record_btrace_prepare_to_store):
1934 Call record_btrace_is_replaying with inferior_ptid instead of
1935 minus_one_ptid.
1936 (record_btrace_store_registers): Change error message.
1937
a52eab48
MM
19382015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1939
1940 * record-btrace.c (record_btrace_is_replaying): Add ptid argument.
1941 Update users to pass minus_one_ptid.
1942 * record-full.c (record_full_is_replaying): Add ptid argument (ignored).
1943 * record.c (cmd_record_delete): Pass inferior_ptid to
1944 target_record_is_replaying.
1945 * target-delegates.c: Regenerated.
1946 * target.c (target_record_is_replaying): Add ptid argument.
1947 * target.h (struct target_ops) <to_record_is_replaying>: Add ptid
1948 argument.
1949 (target_record_is_replaying): Add ptid argument.
1950
cbb55fa7
MM
19512015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1952
1953 * record-btrace.c (record_btrace_open): Remove non_stop check.
1954 * NEWS: Announce that record btrace supports non-stop mode.
1955
d1988021
MM
19562015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1957
1958 * infrun.c (handle_inferior_event_1): Switch to the eventing thread
1959 in the TARKET_WAITKIND_NO_HISTORY case.
1960
a6b5be76
MM
19612015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1962
1963 * record-btrace.c (record_btrace_maybe_mark_async_event): New.
1964 (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
1965
ec71cc2f
MM
19662015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1967
1968 * record-btrace.c (get_thread_current_frame): New.
1969 (record_btrace_start_replaying): Call get_thread_current_frame.
1970
0ca912df
MM
19712015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1972
1973 * record-btrace.c (record_btrace_resume_thread): A move request
1974 overwrites a previous move request.
1975 (record_btrace_find_resume_thread): Removed.
1976 (record_btrace_resume): Resume all requested threads.
1977
e3cfc1c7
MM
19782015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1979
1980 * record-btrace.c: Include vec.h.
1981 (record_btrace_find_thread_to_move): Removed.
1982 (btrace_step_no_resumed, btrace_step_again)
1983 (record_btrace_stop_replaying_at_end): New.
1984 (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
1985 (record_btrace_single_step_forward): Remove calls to
1986 record_btrace_stop_replaying.
1987 (record_btrace_step_thread): Do only one step for BTHR_CONT and
1988 BTHR_RCONT. Keep threads at the end of their history moving.
1989 (record_btrace_wait): Call record_btrace_step_thread for all threads
1990 until one reports an event. Call record_btrace_stop_replaying_at_end
1991 for the eventing thread.
1992
cf8f8f0c
MM
19932015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1994
1995 * record-btrace.c (record_btrace_single_step_forward): Return
1996 NO_HISTORY if a step brings us to the end of the execution history.
1997
011c71b6
MM
19982015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1999
2000 * record-btrace.c (record_btrace_step_thread): Move breakpoint check
2001 to ...
2002 (record_btrace_single_step_forward): ... here and
2003 (record_btrace_single_step_backward): ... here.
2004
d825d248
MM
20052015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2006
2007 * record-btrace.c (btrace_step_spurious)
2008 (record_btrace_single_step_forward)
2009 (record_btrace_single_step_backward): New.
2010 (record_btrace_step_thread): Call record_btrace_single_step_forward
2011 and record_btrace_single_step_backward.
2012
3c615f99
MM
20132015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2014
2015 * record-btrace.c (record_btrace_replay_at_breakpoint): New.
2016 (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
2017
987e68b1
MM
20182015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2019
2020 * record-btrace.c (btrace_thread_flag_to_str)
2021 (record_btrace_cancel_resume): New.
2022 (record_btrace_step_thread): Call btrace_thread_flag_to_str.
2023 (record_btrace_resume): Print execution direction.
2024 (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
2025 (record_btrace_wait): Call record_btrace_cancel_resume.
2026
6e4879f0
MM
20272015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2028
2029 * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
2030 * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
2031 (record_btrace_find_thread_to_move): Also accept threads that have
2032 BTHR_STOP set.
2033 (btrace_step_stopped_on_request, record_btrace_stop): New.
2034 (record_btrace_step_thread): Support BTHR_STOP.
2035 (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
2036 (init_record_btrace_ops): Initialize to_stop.
2037
5953356c
MM
20382015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2039
2040 * record-btrace.c (record_btrace_wait): Replace non_stop check with
2041 target_is_non_stop_p ().
2042
bfca584f
PMR
20432015-09-15 Pierre-Marie de Rodat <derodat@adacore.com>
2044
2045 * ada-typeprint.c (print_array_type): Do not describe arrays as
2046 packed when they embed dynamic elements.
2047
5382cfab
PW
20482015-09-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2049
2050 * symtab.h (address_class): Document that TLS variables
2051 are handled by LOC_UNRESOLVED.
2052 * findvar.c (default_read_var_value): Don't relocate TLS variables.
2053 * printcmd.c (address_info): Don't relocate TLS variables.
2054
b277c936
PL
20552015-09-15 Pierre Langlois <pierre.langlois@arm.com>
2056
2057 * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
2058 (decode_adrp): Likewise.
2059 (decode_b): Likewise.
2060 (decode_bcond): Likewise.
2061 (decode_br): Likewise.
2062 (decode_cb): Likewise.
2063 (decode_eret): Likewise.
2064 (decode_movz): Likewise.
2065 (decode_orr_shifted_register_x): Likewise.
2066 (decode_ret): Likewise.
2067 (decode_stp_offset): Likewise.
2068 (decode_stp_offset_wb): Likewise.
2069 (decode_stur): Likewise.
2070 (decode_tb): Likewise.
2071 (aarch64_analyze_prologue): Likewise.
2072 (pass_in_x): Likewise.
2073 (pass_in_v): Likewise.
2074 (pass_on_stack): Likewise.
2075 (aarch64_push_dummy_call): Likewise.
2076 (aarch64_extract_return_value): Likewise.
2077 (aarch64_store_return_value): Likewise.
2078 (aarch64_return_value): Likewise.
2079 (aarch64_record_asimd_load_store): Likewise.
2080 (aarch64_record_load_store): Likewise.
2081 (aarch64_record_data_proc_simd_fp): Likewise.
2082
141c5cc4
JK
20832015-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2084
2085 * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
2086 * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
2087 (ppc64_skip_trampoline_code_1): ... here.
2088 (ppc64_skip_trampoline_code): New wrapper function.
2089 * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
2090
750ce8d1
YQ
20912015-09-15 Yao Qi <yao.qi@linaro.org>
2092
2093 * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
2094 function.
2095 (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
2096 * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
2097 if target_can_do_single_step returns 1.
2098 * remote.c (struct vCont_action_support) <s, S>: New fields.
2099 (PACKET_vContSupported): New enum.
2100 (remote_protocol_features): New element for vContSupported.
2101 (remote_query_supported): Append "vContSupported+".
2102 (remote_vcont_probe): Remove support_s and support_S, use
2103 rs->supports_vCont.s and rs->supports_vCont.S instead. Disable
2104 vCont packet if c and C actions are not supported.
2105 (remote_can_do_single_step): New function.
2106 (init_remote_ops): Install it to to_can_do_single_step.
2107 (_initialize_remote): Call add_packet_config_cmd.
2108 * target.h (struct target_ops) <to_can_do_single_step>: New field.
2109 (target_can_do_single_step): New macro.
2110 * target-delegates.c: Re-generated.
2111
ade90bde
YQ
21122015-09-15 Yao Qi <yao.qi@linaro.org>
2113
2114 * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
2115 (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
2116 * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
2117 New function.
2118 (aarch64_siginfo_from_compat_siginfo): New function.
2119 * nat/aarch64-linux.h: Include signal.h.
2120 (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
2121 (compat_timer_t, compat_clock_t): Likewise.
2122 (struct compat_timeval): New.
2123 (union compat_sigval): New.
2124 (struct compat_siginfo): New.
2125 (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
2126 (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
2127 (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
2128 (cpt_si_band, cpt_si_fd): Likewise.
2129
4c2f2a79
PA
21302015-09-14 Pedro Alves <palves@redhat.com>
2131
2132 * infrun.c (current_stop_id): New global.
2133 (get_stop_id, new_stop_id): New functions.
2134 (fetch_inferior_event): Handle normal_stop proceeding the target.
2135 (struct stop_context): New.
2136 (save_stop_context, release_stop_context_cleanup)
2137 (stop_context_changed): New functions.
2138 (normal_stop): Return true if the hook-stop changes the stop
2139 context.
2140 * infrun.h (get_stop_id): Declare.
2141 (normal_stop): Now returns int. Add documentation.
2142
919e6dbe
PMR
21432015-09-14 Pierre-Marie de Rodat <derodat@adacore.com>
2144
2145 * ada-lang.c (ada_value_ptr_subscript): Update the heading
2146 comment. Handle packed arrays.
2147
b027a8fa
PA
21482015-09-14 Pedro Alves <palves@redhat.com>
2149
2150 * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
2151 mention of maint set/show target-non-stop.
2152
b459a59b
DB
21532015-09-11 Don Breazeal <donb@codesourcery.com>
2154
2155 * NEWS: Announce new remote packets for the exec-events
2156 feature and the exec-events feature and associated commands.
2157
d46addbb
DB
21582015-09-11 Don Breazeal <donb@codesourcery.com>
2159
2160 * remote.c (remote_exec_event_p): New function.
2161 (remote_insert_exec_catchpoint): New function.
2162 (remote_remove_exec_catchpoint): New function.
2163 (init_extended_remote_ops): Initialize extended_remote_ops
2164 members to_insert_exec_catchpoint and
2165 to_remove_exec_catchpoint.
2166
94585166
DB
21672015-09-11 Don Breazeal <donb@codesourcery.com>
2168 Luis Machado <lgustavo@codesourcery.com>
2169
2170 * infrun.c (follow_exec): Use process-style ptid for
2171 exec message. Call add_inferior_with_spaces and
2172 target_follow_exec.
2173 * nat/linux-ptrace.c (linux_supports_traceexec): New function.
2174 * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
2175 * remote.c (remote_pspace_data): New static variable.
2176 (remote_pspace_data_cleanup): New function.
2177 (get_remote_exec_file): New function.
2178 (set_remote_exec_file_1): New function.
2179 (set_remote_exec_file): New function.
2180 (show_remote_exec_file): New function.
2181 (remote_exec_file): Delete static variable.
2182 (anonymous enum) <PACKET_exec_event_feature>: New
2183 enumeration constant.
2184 (remote_protocol_features): Add entry for exec-events feature.
2185 (remote_query_supported): Add client side of qSupported query
2186 for exec-events feature.
2187 (remote_follow_exec): New function.
2188 (remote_parse_stop_reply): Handle 'exec' stop reason.
2189 (extended_remote_run, extended_remote_create_inferior): Call
2190 get_remote_exec_file and set_remote_exec_file_1.
2191 (init_extended_remote_ops) <to_follow_exec>: Initialize new
2192 member.
2193 (_initialize_remote): Call
2194 register_program_space_data_with_cleanup. Call
2195 add_packet_config_cmd for remote exec-events feature.
2196 Modify call to add_setshow_string_noescape_cmd for exec-file
2197 to use new functions set_remote_exec_file and
2198 show_remote_exec_file.
2199 * target-debug.h, target-delegates.c: Regenerated.
2200 * target.c (target_follow_exec): New function.
2201 * target.h (struct target_ops) <to_follow_exec>: New member.
2202 (target_follow_exec): Declare new function.
2203
669e74e8
PL
22042015-09-11 Pierre Langlois <pierre.langlois@arm.com>
2205
2206 * aarch64-tdep.c (decode_cb): Move up comment describing the
2207 encoding.
2208 (decode_tb): Fix a typo in comment above the function. Move up
2209 comment describing the encoding.
2210
4d50586d
PL
22112015-09-11 Pierre Langlois <pierre.langlois@arm.com>
2212
2213 * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
2214
6dcaef99
MMN
22152015-09-11 Mihail-Marian Nistor <mihail.nistor@freescale.com>
2216
2217 PR gdb/18947
2218 * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
2219 glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
2220
5da1a4d3
SM
22212015-09-10 Simon Marchi <simon.marchi@ericsson.com>
2222
2223 * ada-lang.c (scan_discrim_bound): Factor out arithmetic
2224 operations.
2225
108d56a4
SM
22262015-09-10 Simon Marchi <simon.marchi@ericsson.com>
2227
2228 * ada-lang.c (ada_search_struct_field): Constify parameters
2229 and/or variables..
2230 (xget_renaming_scope): Likewise.
2231 (ada_is_redundant_range_encoding): Likewise.
2232 (scan_discrim_bound): Likewise.
2233 (to_fixed_range_type): Likewise.
2234
dd2e65cc
YQ
22352015-09-10 Yao Qi <yao.qi@linaro.org>
2236
2237 * breakpoint.c (download_tracepoint_locations): New local
2238 can_download_tracepoint. Check the result of
2239 target_can_download_tracepoint and save it in
2240 can_download_tracepoint if there are tracepoints to download.
2241 * linux-nat.h (enum tribool): Move it to ...
2242 * common/common-types.h: ... here.
2243
cfe75703
PA
22442015-09-09 Pedro Alves <palves@redhat.com>
2245
2246 * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
2247 * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
2248
a85a3079
PA
22492015-09-09 Pedro Alves <palves@redhat.com>
2250
2251 * continuations.c (add_continuation, restore_thread_cleanup)
2252 (do_all_continuations_ptid, do_all_continuations_thread_callback)
2253 (do_all_continuations_thread, do_all_continuations)
2254 (discard_all_continuations_thread_callback)
2255 (discard_all_continuations_thread, discard_all_continuations)
2256 (add_intermediate_continuation)
2257 (do_all_intermediate_continuations_thread_callback)
2258 (do_all_intermediate_continuations_thread)
2259 (do_all_intermediate_continuations)
2260 (discard_all_intermediate_continuations_thread_callback)
2261 (discard_all_intermediate_continuations_thread)
2262 (discard_all_intermediate_continuations): Delete.
2263 * continuations.h (add_continuation, do_all_continuations)
2264 (do_all_continuations_thread, discard_all_continuations)
2265 (discard_all_continuations_thread, add_intermediate_continuation)
2266 (do_all_intermediate_continuations)
2267 (do_all_intermediate_continuations_thread)
2268 (discard_all_intermediate_continuations)
2269 (discard_all_intermediate_continuations_thread): Delete
2270 declarations.
2271 * event-top.c (stdin_event_handler): Delete references to
2272 continuations.
2273 * gdbthread.h (struct thread_info): Delete continuations and
2274 intermediate_continuations fields.
2275 * inf-loop.c (inferior_event_handler): Remove references to
2276 continuations.
2277 * infrun.c (infrun_thread_stop_requested_callback): Remove
2278 references to continuations.
2279 * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
2280 * thread.c: Don't include "continuations.h".
2281 (clear_thread_inferior_resources): Remove references to
2282 continuations.
2283
0700e23e
PA
22842015-09-09 Pedro Alves <palves@redhat.com>
2285
2286 * infcall.c (struct dummy_frame_context_saver): Delete.
2287 (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
2288 (dummy_frame_context_saver_drop)
2289 (dummy_frame_context_saver_cleanup)
2290 (dummy_frame_context_saver_get_regs)
2291 (dummy_frame_context_saver_setup): Delete.
2292 * infcall.h (dummy_frame_context_saver_drop)
2293 (dummy_frame_context_saver_cleanup)
2294 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
2295 Delete.
2296 (get_return_value): Remove 'ctx_saver' paremeter. Adjust.
2297 * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
2298 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
2299
cfc31633
PA
23002015-09-09 Pedro Alves <palves@redhat.com>
2301
2302 * breakpoint.c: Include "thread-fsm.h".
2303 (struct until_break_command_continuation_args): Delete.
2304 (struct until_break_fsm): New.
2305 (until_break_fsm_ops): New global.
2306 (new_until_break_fsm, until_break_fsm_should_stop): New functions.
2307 (until_break_command_continuation): Delete.
2308 (until_break_fsm_clean_up): New function.
2309 (until_break_fsm_async_reply_reason): New function.
2310 (until_break_command): Adjust to create an until_break_fsm instead
2311 of a continuation.
2312 (momentary_bkpt_print_it): No longer print MI's async-stop-reason
2313 here.
2314 * infcmd.c (struct until_next_fsm): New.
2315 (until_next_fsm_ops): New global.
2316 (new_until_next_fsm, until_next_fsm_should_stop): New function.
2317 (until_next_continuation): Delete.
2318 (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
2319 functions.
2320 (until_next_command): Adjust to create a new until_next_fsm
2321 instead of a continuation.
2322
388a7084
PA
23232015-09-09 Pedro Alves <palves@redhat.com>
2324
2325 * infcall.c: Include thread_fsm.h.
2326 (struct call_return_meta_info): New.
2327 (get_call_return_value): New function, factored out from
2328 call_function_by_hand_dummy.
2329 (struct call_thread_fsm): New.
2330 (call_thread_fsm_ops): New global.
2331 (new_call_thread_fsm, call_thread_fsm_should_stop)
2332 (call_thread_fsm_should_notify_stop): New functions.
2333 (run_inferior_call): Add 'sm' parameter. Associate the FSM with
2334 the thread.
2335 (call_function_by_hand_dummy): Create a new call_thread_fsm
2336 instance, associate it with the thread, and wait for the FSM to
2337 finish. If finished successfully, fetch the function's result
2338 value out of the FSM.
2339 * infrun.c (fetch_inferior_event): If the FSM says the stop
2340 shouldn't be notified, don't call normal_stop.
2341 (maybe_remove_breakpoints): New function, factored out from ...
2342 (normal_stop): ... here. Simplify.
2343 * infrun.h (maybe_remove_breakpoints): Declare.
2344 * thread-fsm.c (thread_fsm_should_notify_stop): New function.
2345 (thread-fsm.h) <struct thread_fsm_ops>: New field.
2346 (thread_fsm_should_notify_stop): Declare.
2347
243a9253
PA
23482015-09-09 Pedro Alves <palves@redhat.com>
2349
2350 * Makefile.in (COMMON_OBS): Add thread-fsm.o.
2351 * breakpoint.c (handle_jit_event): Print debug output.
2352 (bpstat_what): Split event callback handling to ...
2353 (bpstat_run_callbacks): ... this new function.
2354 (momentary_bkpt_print_it): No longer handle bp_finish here.
2355 * breakpoint.h (bpstat_run_callbacks): Declare.
2356 * gdbthread.h (struct thread_info) <step_multi>: Delete field.
2357 <thread_fsm>: New field.
2358 (thread_cancel_execution_command): Declare.
2359 * infcmd.c: Include thread-fsm.h.
2360 (struct step_command_fsm): New.
2361 (step_command_fsm_ops): New global.
2362 (new_step_command_fsm, step_command_fsm_prepare): New functions.
2363 (step_1): Adjust to use step_command_fsm_prepare and
2364 prepare_one_step.
2365 (struct step_1_continuation_args): Delete.
2366 (step_1_continuation): Delete.
2367 (step_command_fsm_should_stop): New function.
2368 (step_once): Delete.
2369 (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
2370 (prepare_one_step): New function, based on step_once.
2371 (until_next_command): Remove step_multi reference.
2372 (struct return_value_info): New.
2373 (print_return_value): Rename to ...
2374 (print_return_value_1): ... this. New struct return_value_info
2375 parameter. Adjust.
2376 (print_return_value): Reimplement as wrapper around
2377 print_return_value_1.
2378 (struct finish_command_fsm): New.
2379 (finish_command_continuation): Delete.
2380 (finish_command_fsm_ops): New global.
2381 (new_finish_command_fsm, finish_command_fsm_should_stop): New
2382 functions.
2383 (finish_command_fsm_clean_up, finish_command_fsm_return_value):
2384 New.
2385 (finish_command_continuation_free_arg): Delete.
2386 (finish_command_fsm_async_reply_reason): New.
2387 (finish_backward, finish_forward): Change symbol parameter to a
2388 finish_command_fsm. Adjust.
2389 (finish_command): Create a finish_command_fsm. Adjust.
2390 * infrun.c: Include "thread-fsm.h".
2391 (clear_proceed_status_thread): Delete the thread's FSM.
2392 (infrun_thread_stop_requested_callback): Cancel the thread's
2393 execution command.
2394 (clean_up_just_stopped_threads_fsms): New function.
2395 (fetch_inferior_event): Handle the event_thread's should_stop
2396 method saying the command isn't done yet.
2397 (process_event_stop_test): Run breakpoint callbacks here.
2398 (print_stop_event): Rename to ...
2399 (print_stop_location): ... this.
2400 (restore_current_uiout_cleanup): New function.
2401 (print_stop_event): Reimplement.
2402 (normal_stop): No longer notify the end_stepping_range observers
2403 here handle "step N" nor "finish" here. No longer call
2404 print_stop_event here.
2405 * infrun.h (struct return_value_info): Forward declare.
2406 (print_return_value): Declare.
2407 (print_stop_event): Change prototype.
2408 * thread-fsm.c: New file.
2409 * thread-fsm.h: New file.
2410 * thread.c: Include "thread-fsm.h".
2411 (thread_cancel_execution_command): New function.
2412 (clear_thread_inferior_resources): Call it.
2413 * cli/cli-interp.c (cli_on_normal_stop): New function.
2414 (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
2415 observer.
2416 * mi/mi-interp.c: Include "thread-fsm.h".
2417 (restore_current_uiout_cleanup): Delete.
2418 (mi_on_normal_stop): If the thread has an FSM associated, and it
2419 finished, ask it for the async-reply-reason to print. Always call
2420 print_stop_event here, regardless of the top-level interpreter.
2421 Check bpstat_what to tell whether an asynchronous breakpoint hit
2422 triggered.
2423 * tui/tui-interp.c (tui_on_normal_stop): New function.
2424 (tui_init): Install tui_on_normal_stop as normal_stop observer.
2425
0b333c5e
PA
24262015-09-09 Pedro Alves <palves@redhat.com>
2427
2428 * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
2429 check whether the target can async.
2430 * inf-loop.c (inferior_event_handler): Only call target_async if
2431 the target can async.
2432 * infcall.c: Include top.h and interps.h.
2433 (run_inferior_call): For the interpreter to sync mode while
2434 running the infcall. Call wait_sync_command_done instead of
2435 wait_for_inferior plus normal_stop.
2436 * infcmd.c (prepare_execution_command): Don't check whether the
2437 target can async when running in the foreground.
2438 (step_1): Delete synchronous case handling.
2439 (step_once): Always install a continuation, even in sync mode.
2440 (until_next_command, finish_forward): Don't check whether the
2441 target can async.
2442 (attach_command_post_wait, notice_new_inferior): Always install a
2443 continuation, even in sync mode.
2444 * infrun.c (mark_infrun_async_event_handler): New function.
2445 (proceed): In sync mode, mark infrun's event source instead of
2446 waiting for events here.
2447 (fetch_inferior_event): If the target can't async, do a blocking
2448 wait.
2449 (prepare_to_wait): In sync mode, mark infrun's event source.
2450 (infrun_async_inferior_event_handler): No longer bail out if the
2451 target can't async.
2452 * infrun.h (mark_infrun_async_event_handler): New declaration.
2453 * linux-nat.c (linux_nat_wait_1): Remove calls to
2454 set_sigint_trap/clear_sigint_trap.
2455 (linux_nat_terminal_inferior): No longer check whether the target
2456 can async.
2457 * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
2458 comment.
2459 (mi_execute_command_input_handler): No longer check whether the
2460 target is async. Update and simplify comment.
2461 * target.c (default_target_wait): New function.
2462 * target.h (struct target_ops) <to_wait>: Now defaults to
2463 default_target_wait.
2464 (default_target_wait): Declare.
2465 * top.c (wait_sync_command_done): New function, factored out from
2466 ...
2467 (maybe_wait_sync_command_done): ... this.
2468 * top.h (wait_sync_command_done): Declare.
2469 * target-delegates.c: Regenerate.
2470
0568462b
MM
24712015-09-09 Markus Metzger <markus.t.metzger@intel.com>
2472
2473 * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
2474 * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
2475 Remove include of sys/utsname.h.
2476 (linux_determine_kernel_ptr_bits): Remove.
2477 (linux_determine_kernel_start): New.
2478 (perf_event_is_kernel_addr): Remove tinfo argument. Update users.
2479 Update check.
2480 (perf_event_skip_bts_record): Remove tinfo argument. Update users.
2481 (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
2482 initialization.
2483 * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
2484 assignment.
2485
72e02483
PA
24862015-09-07 Pedro Alves <palves@redhat.com>
2487
2488 * guile/guile-internal.h (as_a_scm_t_subr): New.
2489 * guile/guile.c (misc_guile_functions): Use it.
2490 * guile/scm-arch.c (arch_functions): Use it.
2491 * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
2492 Use it.
2493 * guile/scm-breakpoint.c (breakpoint_functions): Use it.
2494 * guile/scm-cmd.c (command_functions): Use it.
2495 * guile/scm-disasm.c (disasm_functions): Use it.
2496 * guile/scm-exception.c (exception_functions)
2497 (private_exception_functions): Use it.
2498 * guile/scm-frame.c (frame_functions)
2499 * guile/scm-gsmob.c (gsmob_functions): Use it.
2500 * guile/scm-iterator.c (iterator_functions): Use it.
2501 * guile/scm-lazy-string.c (lazy_string_functions): Use it.
2502 * guile/scm-math.c (math_functions): Use it.
2503 * guile/scm-objfile.c (objfile_functions): Use it.
2504 * guile/scm-param.c (parameter_functions): Use it.
2505 * guile/scm-ports.c (port_functions, private_port_functions): Use
2506 it.
2507 * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
2508 * guile/scm-progspace.c (pspace_functions): Use it.
2509 * guile/scm-string.c (string_functions): Use it.
2510 * guile/scm-symbol.c (symbol_functions): Use it.
2511 * guile/scm-symtab.c (symtab_functions): Use it.
2512 * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
2513 it.
2514 * guile/scm-value.c (value_functions): Use it.
2515
e65b5245
AB
25162015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2517
2518 * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
2519 (tui_next_win): Likewise.
2520 (tui_prev_win): Likewise.
2521 (tui_partial_win_by_name): Likewise.
2522 (tui_init_generic_part): Likewise.
2523 (init_content_element): Likewise.
2524 (tui_del_window): Likewise.
2525 (tui_free_window): Likewise.
2526 (tui_del_data_windows): Likewise.
2527 (tui_free_data_content): Likewise.
2528 * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
2529 * tui/tui-regs.c (tui_show_register_group): Likewise.
2530 * tui/tui-win.c (tui_resize_all): Likewise.
2531 (tui_set_focus): Likewise.
2532 (tui_set_win_height): Likewise.
2533 (make_invisible_and_set_new_height): Likewise.
2534 * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
2535 * tui/tui-wingeneral.c (make_visible): Likewise.
2536
b03e6ad9
AB
25372015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2538
2539 * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
2540
be903358
AB
25412015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2542
2543 * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
2544 pointer.
2545 * dbxread.c (dbx_end_psymtab): Likewise.
2546 * gnu-nat.c (gnu_write_inferior): Likewise.
2547 * mdebugread.c (cross_ref): Likewise.
2548 * p-valprint.c (pascal_val_print): Likewise.
2549 * xcoffread.c (xcoff_end_psymtab): Likewise.
2550
02f024f9
YQ
25512015-09-04 Yao Qi <yao.qi@linaro.org>
2552
2553 * NEWS: Mention the aarch64 multi-arch debugging support.
2554
cd7c1778
PMR
25552015-09-03 Pierre-Marie de Rodat <derodat@adacore.com>
2556
2557 * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
2558 type instead of a TYPE_CODE_INT one for the string_char_type
2559 and the ada_primitive_type_char types.
2560
39edd165
YQ
25612015-09-03 Yao Qi <yao.qi@linaro.org>
2562
2563 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
2564 Move code to aarch64_linux_region_ok_for_watchpoint. Call
2565 aarch64_linux_region_ok_for_watchpoint.
2566 * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
2567 New function.
2568 * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
2569 Declare it.
2570
6c214e7c
PP
25712015-09-02 Patrick Palka <patrick@parcs.ath.cx>
2572
2573 * gdb_obstack.h (obstack_strdup): Declare.
2574 * gdb_obstack.c (obstack_strdup): Define.
2575 * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
2576 * gdbarch.c: Regenerate.
2577 * gdbarch.h: Regenerate.
2578 * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
2579
eed8b28a
PP
25802015-09-02 Patrick Palka <patrick@parcs.ath.cx>
2581
2582 * gdbtypes.c (copy_type_recursive): Update documentation.
2583
73c6b475
SDJ
25842015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2585
2586 * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
2587 as zero.
2588
ad1c917a
SDJ
25892015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2590
2591 * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
2592
3bd7e5b7
SDJ
25932015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2594
2595 * solib-svr4.c (solib_event_probe_action): Call
2596 get_probe_argument_count using TRY...CATCH.
2597 (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
2598
f469e8ce
SDJ
25992015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2600
2601 * probe.h (struct probe_ops) <get_probe_argument_count,
2602 evaluate_probe_argument, enable_probe, disable_probe>: Mention in
2603 the comment that the function can throw an exception.
2604 (get_probe_argument_count): Likewise.
2605 (evaluate_probe_argument): Likewise.
2606 * stap-probe.c (stap_get_opcode): Call error instead of
2607 internal_error.
2608 (stap_get_expected_argument_type): Likewise. Add argument
2609 'probe'. Improve error message by mentioning the probe's name.
2610 (stap_parse_probe_arguments): Adjust call to
2611 stap_get_expected_argument_type.
2612 (stap_get_arg): Add comment. Assert that 'probe->args_parsed' is
2613 not zero. Call internal_error if GDB requests an argument but the
2614 probe has no arguments.
2615
dc5c8746
PMR
26162015-09-01 Pierre-Marie de Rodat <derodat@adacore.com>
2617
2618 * ada-lang.c (ada_resolve_function): Do not ask the user what
2619 match to use when in completion mode.
2620
136765ea
AB
26212015-08-31 Andrew Burgess <andrew.burgess@embecosm.com>
2622
2623 * tui/tui-data.c (tui_win_name): Make local variable const, remove
2624 cast of NULL.
2625
90b81c5f
MF
26262015-08-31 Max Filippov <jcmvbkbc@gmail.com>
2627
2628 * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
2629 call_abi using XSHAL_ABI macro.
2630
1cd36e54
DE
26312015-08-29 Doug Evans <xdje42@gmail.com>
2632
2633 * symtab.h (struct symbol): Tweak comment.
2634
8f57eec2
PP
26352015-08-29 Patrick Palka <patrick@parcs.ath.cx>
2636
2637 * gdbtypes.c (alloc_type_arch): Allocate the type on the given
2638 gdbarch obstack instead of on the heap. Update commentary
2639 accordingly.
2640
38eebd71
JB
26412015-08-28 Joel Brobecker <brobecker@adacore.com>
2642
2643 GDB 7.10 released.
2644
d63dd61e
SM
26452015-08-28 Simon Marchi <simon.marchi@ericsson.com>
2646
2647 * NEWS: Update entry about non-8-bits addressable memory.
2648
6f059256
UW
26492015-08-28 Ulrich Weigand <uweigand@de.ibm.com>
2650
2651 Revert:
2652 2014-11-06 Doug Evans <xdje42@gmail.com>
2653 * solib.c (solib_global_lookup): Fetch arch from objfile,
2654 not target_gdbarch.
2655
70987a92 26562015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
ef36892e
UW
2657
2658 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
2659 attempt to relocate a TLS variable offset.
2660
70987a92 26612015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
791bb1f4
UW
2662
2663 * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
2664 registered yet. Set inferior_ptid while calling target_read_memory.
2665
70987a92 26662015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
1db33b5a
UW
2667
2668 * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
2669 (GDB_ARCH_IS_TRAP_BRKPT): ... this. Add __powerpc__ case.
2670 * linux-nat.c (check_stopped_by_breakpoint): Use
2671 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
2672
70987a92 26732015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
e0fd7c47
UW
2674
2675 * linux-thread-db.c (thread_db_get_thread_local_address): If the
2676 thread was not yet discovered, use thread_from_lwp instead of
2677 calling thread_db_find_new_threads_1.
2678
f5cdf498
SM
26792015-08-27 Simon Marchi <simon.marchi@ericsson.com>
2680
2681 * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
2682 statements.
2683
fd2ae5d6
SM
26842015-08-27 Simon Marchi <simon.marchi@ericsson.com>
2685
2686 * NEWS: Document support for non-8-bits addressable memory.
2687
14d88147
PA
26882015-08-27 Pedro Alves <palves@redhat.com>
2689
2690 * configure.ac: Remove AC_TYPE_SIGNAL call.
2691 * configure, config.in: Regenerate.
2692
a40805d4
PA
26932015-08-27 Pedro Alves <palves@redhat.com>
2694
2695 * cp-support.c (gdb_demangle): Use sighandler_t. Remove cast.
2696 * extension-priv.h: Include signal.h.
2697 (struct signal_handler) <handler>: Change type to sighandler_t.
2698 * extension.c (install_gdb_sigint_handler): Use sighandler_t.
2699 * inflow.c (sigint_ours, sigquit_ours): Change type to
2700 sighandler_t.
2701 (child_terminal_inferior): Remove casts.
2702 (child_terminal_ours_1, new_tty): Use sighandler_t. Remove casts.
2703 (osig): Change type to sighandler_t.
2704 * nto-procfs.c (ofunc): Change type to sighandler_t.
2705 (procfs_wait): Remove casts.
2706 * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
2707 * remote-sim.c (gdbsim_wait): Use sighandler_t.
2708 * utils.c (wait_to_die_with_timeout): Use sighandler_t.
2709
0750520d
PA
27102015-08-27 Pedro Alves <palves@redhat.com>
2711
2712 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
2713 * gnulib/aclocal.m4: Renegerate.
2714 * gnulib/config.in: Renegerate.
2715 * gnulib/configure: Renegerate.
2716 * gnulib/import/Makefile.am: Update.
2717 * gnulib/import/Makefile.in: Regenerate.
2718 * gnulib/import/m4/gnulib-cache.m4: Update.
2719 * gnulib/import/m4/gnulib-comp.m4: Update.
2720 * gnulib/import/m4/signal_h.m4: New file.
2721 * gnulib/import/signal.in.h: New file.
2722
a5c0808e
PA
27232015-08-27 Pedro Alves <palves@redhat.com>
2724
2725 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
2726 (MIN_MEMORY_PACKET_SIZE): New.
2727 (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
2728 (get_memory_packet_size): Adjust. No longer limit the max packet
2729 size.
2730 (set_memory_packet_size): Adjust, and remove dead code.
2731 (remote_check_symbols): Use xmalloc and a cleanup instead of
2732 alloca.
2733 (remote_packet_size): No longer cap the packet size.
2734 (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
2735
cdaec3f3
LM
27362015-08-26 Luis Machado <lgustavo@codesourcery.com>
2737
2738 * compile/compile.c (compile_to_object): Mention language in
2739 error message.
2740
e9756d52
PP
27412015-08-26 Patrick Palka <patrick@parcs.ath.cx>
2742
2743 * target.c (target_pre_inferior): Unset attach_flag.
2744
1dc7a623
SM
27452015-08-26 Simon Marchi <simon.marchi@ericsson.com>
2746
2747 * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
2748 * gdbarch.c: Re-generate.
2749
8d749320
SM
27502015-08-26 Simon Marchi <simon.marchi@ericsson.com>
2751
6711b7f8
SM
2752 * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
2753 function with the XNEW-family equivalent.
8d749320
SM
2754 * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
2755 * ada-exp.y (write_ambiguous_var): Likewise.
2756 * ada-lang.c (resolve_subexp): Likewise.
2757 (user_select_syms): Likewise.
2758 (assign_aggregate): Likewise.
2759 (ada_evaluate_subexp): Likewise.
2760 (cache_symbol): Likewise.
2761 * addrmap.c (allocate_key): Likewise.
2762 (addrmap_create_mutable): Likewise.
2763 * aix-thread.c (sync_threadlists): Likewise.
2764 * alpha-tdep.c (alpha_push_dummy_call): Likewise.
2765 (alpha_gdbarch_init): Likewise.
2766 * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
2767 * arm-linux-nat.c (arm_linux_add_process): Likewise.
2768 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
2769 * arm-tdep.c (push_stack_item): Likewise.
2770 (arm_displaced_step_copy_insn): Likewise.
2771 (arm_gdbarch_init): Likewise.
2772 (_initialize_arm_tdep): Likewise.
2773 * avr-tdep.c (push_stack_item): Likewise.
2774 * ax-general.c (new_agent_expr): Likewise.
2775 * block.c (block_initialize_namespace): Likewise.
2776 * breakpoint.c (alloc_counted_command_line): Likewise.
2777 (update_dprintf_command_list): Likewise.
2778 (parse_breakpoint_sals): Likewise.
2779 (decode_static_tracepoint_spec): Likewise.
2780 (until_break_command): Likewise.
2781 (clear_command): Likewise.
2782 (update_global_location_list): Likewise.
2783 (get_breakpoint_objfile_data) Likewise.
2784 * btrace.c (ftrace_new_function): Likewise.
2785 (btrace_set_insn_history): Likewise.
2786 (btrace_set_call_history): Likewise.
2787 * buildsym.c (add_symbol_to_list): Likewise.
2788 (record_pending_block): Likewise.
2789 (start_subfile): Likewise.
2790 (start_buildsym_compunit): Likewise.
2791 (push_subfile): Likewise.
2792 (end_symtab_get_static_block): Likewise.
2793 (buildsym_init): Likewise.
2794 * cli/cli-cmds.c (source_command): Likewise.
2795 * cli/cli-decode.c (add_cmd): Likewise.
2796 * cli/cli-script.c (build_command_line): Likewise.
2797 (setup_user_args): Likewise.
2798 (realloc_body_list): Likewise.
2799 (process_next_line): Likewise.
2800 (copy_command_lines): Likewise.
2801 * cli/cli-setshow.c (do_set_command): Likewise.
2802 * coff-pe-read.c (read_pe_exported_syms): Likewise.
2803 * coffread.c (coff_locate_sections): Likewise.
2804 (coff_symtab_read): Likewise.
2805 (coff_read_struct_type): Likewise.
2806 * common/cleanups.c (make_my_cleanup2): Likewise.
2807 * common/common-exceptions.c (throw_it): Likewise.
2808 * common/filestuff.c (make_cleanup_close): Likewise.
2809 * common/format.c (parse_format_string): Likewise.
2810 * common/queue.h (DEFINE_QUEUE_P): Likewise.
2811 * compile/compile-object-load.c (munmap_list_add): Likewise.
2812 (compile_object_load): Likewise.
2813 * compile/compile-object-run.c (compile_object_run): Likewise.
2814 * compile/compile.c (append_args): Likewise.
2815 * corefile.c (specify_exec_file_hook): Likewise.
2816 * cp-support.c (make_symbol_overload_list): Likewise.
2817 * cris-tdep.c (push_stack_item): Likewise.
2818 (cris_gdbarch_init): Likewise.
2819 * ctf.c (ctf_trace_file_writer_new): Likewise.
2820 * dbxread.c (init_header_files): Likewise.
2821 (add_new_header_file): Likewise.
2822 (init_bincl_list): Likewise.
2823 (dbx_end_psymtab): Likewise.
2824 (start_psymtab): Likewise.
2825 (dbx_end_psymtab): Likewise.
2826 * dcache.c (dcache_init): Likewise.
2827 * dictionary.c (dict_create_hashed): Likewise.
2828 (dict_create_hashed_expandable): Likewise.
2829 (dict_create_linear): Likewise.
2830 (dict_create_linear_expandable): Likewise.
2831 * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
2832 * dummy-frame.c (register_dummy_frame_dtor): Likewise.
2833 * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
2834 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2835 (decode_frame_entry_1): Likewise.
2836 * dwarf2expr.c (new_dwarf_expr_context): Likewise.
2837 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
2838 * dwarf2read.c (dwarf2_has_info): Likewise.
2839 (create_signatured_type_table_from_index): Likewise.
2840 (dwarf2_read_index): Likewise.
2841 (dw2_get_file_names_reader): Likewise.
2842 (create_all_type_units): Likewise.
2843 (read_cutu_die_from_dwo): Likewise.
2844 (init_tu_and_read_dwo_dies): Likewise.
2845 (init_cutu_and_read_dies): Likewise.
2846 (create_all_comp_units): Likewise.
2847 (queue_comp_unit): Likewise.
2848 (inherit_abstract_dies): Likewise.
2849 (read_call_site_scope): Likewise.
2850 (dwarf2_add_field): Likewise.
2851 (dwarf2_add_typedef): Likewise.
2852 (dwarf2_add_member_fn): Likewise.
2853 (attr_to_dynamic_prop): Likewise.
2854 (abbrev_table_alloc_abbrev): Likewise.
2855 (abbrev_table_read_table): Likewise.
2856 (add_include_dir): Likewise.
2857 (add_file_name): Likewise.
2858 (dwarf_decode_line_header): Likewise.
2859 (dwarf2_const_value_attr): Likewise.
2860 (dwarf_alloc_block): Likewise.
2861 (parse_macro_definition): Likewise.
2862 (set_die_type): Likewise.
2863 (write_psymtabs_to_index): Likewise.
2864 (create_cus_from_index): Likewise.
2865 (dwarf2_create_include_psymtab): Likewise.
2866 (process_psymtab_comp_unit_reader): Likewise.
2867 (build_type_psymtab_dependencies): Likewise.
2868 (read_comp_units_from_section): Likewise.
2869 (compute_compunit_symtab_includes): Likewise.
2870 (create_dwo_unit_in_dwp_v1): Likewise.
2871 (create_dwo_unit_in_dwp_v2): Likewise.
2872 (read_func_scope): Likewise.
2873 (process_structure_scope): Likewise.
2874 (mark_common_block_symbol_computed): Likewise.
2875 (load_partial_dies): Likewise.
2876 (dwarf2_symbol_mark_computed): Likewise.
2877 * elfread.c (elf_symfile_segments): Likewise.
2878 (elf_read_minimal_symbols): Likewise.
2879 * environ.c (make_environ): Likewise.
2880 * eval.c (evaluate_subexp_standard): Likewise.
2881 * event-loop.c (create_file_handler): Likewise.
2882 (create_async_signal_handler): Likewise.
2883 (create_async_event_handler): Likewise.
2884 (create_timer): Likewise.
2885 * exec.c (build_section_table): Likewise.
2886 * fbsd-nat.c (fbsd_remember_child): Likewise.
2887 * fork-child.c (fork_inferior): Likewise.
2888 * frv-tdep.c (new_variant): Likewise.
2889 * gdbarch.sh (gdbarch_alloc): Likewise.
2890 (append_name): Likewise.
2891 * gdbtypes.c (rank_function): Likewise.
2892 (copy_type_recursive): Likewise.
2893 (add_dyn_prop): Likewise.
2894 * gnu-nat.c (make_proc): Likewise.
2895 (make_inf): Likewise.
2896 (gnu_write_inferior): Likewise.
2897 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
2898 (build_std_type_info_type): Likewise.
2899 * guile/scm-param.c (compute_enum_list): Likewise.
2900 * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
2901 * guile/scm-value.c (gdbscm_value_call): Likewise.
2902 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
2903 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
2904 (read_unwind_info): Likewise.
2905 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
2906 * infcall.c (dummy_frame_context_saver_setup): Likewise.
2907 (call_function_by_hand_dummy): Likewise.
2908 * infcmd.c (step_once): Likewise.
2909 (finish_forward): Likewise.
2910 (attach_command): Likewise.
2911 (notice_new_inferior): Likewise.
2912 * inferior.c (add_inferior_silent): Likewise.
2913 * infrun.c (add_displaced_stepping_state): Likewise.
2914 (save_infcall_control_state): Likewise.
2915 (save_inferior_ptid): Likewise.
2916 (_initialize_infrun): Likewise.
2917 * jit.c (bfd_open_from_target_memory): Likewise.
2918 (jit_gdbarch_data_init): Likewise.
2919 * language.c (add_language): Likewise.
2920 * linespec.c (decode_line_2): Likewise.
2921 * linux-nat.c (add_to_pid_list): Likewise.
2922 (add_initial_lwp): Likewise.
2923 * linux-thread-db.c (add_thread_db_info): Likewise.
2924 (record_thread): Likewise.
2925 (info_auto_load_libthread_db): Likewise.
2926 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
2927 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
2928 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
2929 * m88k-tdep.c (m88k_analyze_prologue): Likewise.
2930 * macrocmd.c (macro_define_command): Likewise.
2931 * macroexp.c (gather_arguments): Likewise.
2932 * macroscope.c (sal_macro_scope): Likewise.
2933 * macrotab.c (new_macro_table): Likewise.
2934 * mdebugread.c (push_parse_stack): Likewise.
2935 (parse_partial_symbols): Likewise.
2936 (parse_symbol): Likewise.
2937 (psymtab_to_symtab_1): Likewise.
2938 (new_block): Likewise.
2939 (new_psymtab): Likewise.
2940 (mdebug_build_psymtabs): Likewise.
2941 (add_pending): Likewise.
2942 (elfmdebug_build_psymtabs): Likewise.
2943 * mep-tdep.c (mep_gdbarch_init): Likewise.
2944 * mi/mi-main.c (mi_execute_command): Likewise.
2945 * mi/mi-parse.c (mi_parse_argv): Likewise.
2946 * minidebug.c (lzma_open): Likewise.
2947 * minsyms.c (terminate_minimal_symbol_table): Likewise.
2948 * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
2949 * mips-tdep.c (mips_gdbarch_init): Likewise.
2950 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
2951 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
2952 * mt-tdep.c (mt_registers_info): Likewise.
2953 * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
2954 * nat/linux-btrace.c (linux_enable_bts): Likewise.
2955 (linux_enable_pt): Likewise.
2956 * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
2957 (linux_xfer_osdata_processgroups): Likewise.
2958 * nios2-tdep.c (nios2_gdbarch_init): Likewise.
2959 * nto-procfs.c (procfs_meminfo): Likewise.
2960 * objc-lang.c (start_msglist): Likewise.
2961 (selectors_info): Likewise.
2962 (classes_info): Likewise.
2963 (find_methods): Likewise.
2964 * objfiles.c (allocate_objfile): Likewise.
2965 (update_section_map): Likewise.
2966 * osabi.c (gdbarch_register_osabi): Likewise.
2967 (gdbarch_register_osabi_sniffer): Likewise.
2968 * parse.c (start_arglist): Likewise.
2969 * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
2970 (hwdebug_insert_point): Likewise.
2971 * printcmd.c (display_command): Likewise.
2972 (ui_printf): Likewise.
2973 * procfs.c (create_procinfo): Likewise.
2974 (load_syscalls): Likewise.
2975 (proc_get_LDT_entry): Likewise.
2976 (proc_update_threads): Likewise.
2977 * prologue-value.c (make_pv_area): Likewise.
2978 (pv_area_store): Likewise.
2979 * psymtab.c (extend_psymbol_list): Likewise.
2980 (init_psymbol_list): Likewise.
2981 (allocate_psymtab): Likewise.
2982 * python/py-inferior.c (add_thread_object): Likewise.
2983 * python/py-param.c (compute_enum_values): Likewise.
2984 * python/py-value.c (valpy_call): Likewise.
2985 * python/py-varobj.c (py_varobj_iter_next): Likewise.
2986 * python/python.c (ensure_python_env): Likewise.
2987 * record-btrace.c (record_btrace_start_replaying): Likewise.
2988 * record-full.c (record_full_reg_alloc): Likewise.
2989 (record_full_mem_alloc): Likewise.
2990 (record_full_end_alloc): Likewise.
2991 (record_full_core_xfer_partial): Likewise.
2992 * regcache.c (get_thread_arch_aspace_regcache): Likewise.
2993 * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
2994 * remote-notif.c (remote_notif_state_allocate): Likewise.
2995 * remote.c (demand_private_info): Likewise.
2996 (remote_notif_stop_alloc_reply): Likewise.
2997 (remote_enable_btrace): Likewise.
2998 * reverse.c (save_bookmark_command): Likewise.
2999 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
3000 * rx-tdep.c (rx_gdbarch_init): Likewise.
3001 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
3002 * ser-go32.c (dos_get_tty_state): Likewise.
3003 (dos_copy_tty_state): Likewise.
3004 * ser-mingw.c (ser_windows_open): Likewise.
3005 (ser_console_wait_handle): Likewise.
3006 (ser_console_get_tty_state): Likewise.
3007 (make_pipe_state): Likewise.
3008 (net_windows_open): Likewise.
3009 * ser-unix.c (hardwire_get_tty_state): Likewise.
3010 (hardwire_copy_tty_state): Likewise.
3011 * solib-aix.c (solib_aix_new_lm_info): Likewise.
3012 * solib-dsbt.c (dsbt_current_sos): Likewise.
3013 (dsbt_relocate_main_executable): Likewise.
3014 * solib-frv.c (frv_current_sos): Likewise.
3015 (frv_relocate_main_executable): Likewise.
3016 * solib-spu.c (spu_bfd_fopen): Likewise.
3017 * solib-svr4.c (lm_info_read): Likewise.
3018 (svr4_copy_library_list): Likewise.
3019 (svr4_default_sos): Likewise.
3020 * source.c (find_source_lines): Likewise.
3021 (line_info): Likewise.
3022 (add_substitute_path_rule): Likewise.
3023 * spu-linux-nat.c (spu_bfd_open): Likewise.
3024 * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
3025 * stabsread.c (dbx_lookup_type): Likewise.
3026 (read_type): Likewise.
3027 (read_member_functions): Likewise.
3028 (read_struct_fields): Likewise.
3029 (read_baseclasses): Likewise.
3030 (read_args): Likewise.
3031 (_initialize_stabsread): Likewise.
3032 * stack.c (func_command): Likewise.
3033 * stap-probe.c (handle_stap_probe): Likewise.
3034 * symfile.c (addrs_section_sort): Likewise.
3035 (addr_info_make_relative): Likewise.
3036 (load_section_callback): Likewise.
3037 (add_symbol_file_command): Likewise.
3038 (init_filename_language_table): Likewise.
3039 * symtab.c (create_filename_seen_cache): Likewise.
3040 (sort_search_symbols_remove_dups): Likewise.
3041 (search_symbols): Likewise.
3042 * target.c (make_cleanup_restore_target_terminal): Likewise.
3043 * thread.c (new_thread): Likewise.
3044 (enable_thread_stack_temporaries): Likewise.
3045 (make_cleanup_restore_current_thread): Likewise.
3046 (thread_apply_all_command): Likewise.
3047 * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
3048 * top.c (gdb_readline_wrapper): Likewise.
3049 * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
3050 * tracepoint.c (trace_find_line_command): Likewise.
3051 (all_tracepoint_actions_and_cleanup): Likewise.
3052 (make_cleanup_restore_current_traceframe): Likewise.
3053 (get_uploaded_tp): Likewise.
3054 (get_uploaded_tsv): Likewise.
3055 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
3056 (tui_alloc_win_info): Likewise.
3057 (tui_alloc_content): Likewise.
3058 (tui_add_content_elements): Likewise.
3059 * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
3060 (tui_set_disassem_content): Likewise.
3061 * ui-file.c (ui_file_new): Likewise.
3062 (stdio_file_new): Likewise.
3063 (tee_file_new): Likewise.
3064 * utils.c (make_cleanup_restore_integer): Likewise.
3065 (add_internal_problem_command): Likewise.
3066 * v850-tdep.c (v850_gdbarch_init): Likewise.
3067 * valops.c (find_oload_champ): Likewise.
3068 * value.c (allocate_value_lazy): Likewise.
3069 (record_latest_value): Likewise.
3070 (create_internalvar): Likewise.
3071 * varobj.c (install_variable): Likewise.
3072 (new_variable): Likewise.
3073 (new_root_variable): Likewise.
3074 (cppush): Likewise.
3075 (_initialize_varobj): Likewise.
3076 * windows-nat.c (windows_make_so): Likewise.
3077 * x86-nat.c (x86_add_process): Likewise.
3078 * xcoffread.c (arrange_linetable): Likewise.
3079 (allocate_include_entry): Likewise.
3080 (process_linenos): Likewise.
3081 (SYMBOL_DUP): Likewise.
3082 (xcoff_start_psymtab): Likewise.
3083 (xcoff_end_psymtab): Likewise.
3084 * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
3085 * xtensa-tdep.c (xtensa_register_type): Likewise.
3086 * gdbarch.c: Regenerate.
3087 * gdbarch.h: Regenerate.
3088
17d8546e
DB
30892015-08-25 Don Breazeal <donb@codesourcery.com>
3090
3091 * infrun.c (follow_exec): Re-order operations for
3092 handling follow-exec-mode "new".
3093 (handle_inferior_event_1): Assign ecs->event_thread
3094 to the current thread.
3095 * remote.c (get_remote_arch_state): Add an assertion.
3096
ba49e44b
PA
30972015-08-26 Pedro Alves <palves@redhat.com>
3098
3099 * MAINTAINERS: Add Markus Metzger as btrace maintainer.
3100
7541ab03 31012015-08-25 Pedro Alves <palves@redhat.com>
abc56d60 3102
7541ab03 3103 PR gdb/18804
abc56d60
PA
3104 * defs.h (maybe_quit): Declare.
3105 (QUIT): Now calls maybe_quit.
3106 * event-loop.c (clear_async_signal_handler)
3107 (async_signal_handler_is_marked): New functions.
3108 * event-loop.h (async_signal_handler_is_marked)
3109 (clear_async_signal_handler): New declarations.
3110 * remote.c (remote_check_pending_interrupt): New function.
3111 (interrupt_query): Use make_cleanup_restore_target_terminal. No
3112 longer check whether the target is async. If waiting for a stop
3113 reply, and a Ctrl-C as been sent to the target, offer to
3114 disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
3115 Otherwise do not disconnect and throw a quit.
3116 (_initialize_remote): Install remote_check_pending_interrupt as
3117 to_check_pending_interrupt.
3118 * target.c (target_check_pending_interrupt): New function.
3119 * target.h (struct target_ops) <to_check_pending_interrupt>: New
3120 field.
3121 (target_check_pending_interrupt): New declaration.
3122 * utils.c (maybe_quit): New function.
3123 * target-delegates.c: Regenerate.
3124
dfe7f77c
YQ
31252015-08-25 Yao Qi <yao.qi@linaro.org>
3126
3127 * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
3128 Rename local variable pid to tid, and get lwpid of lwp. Update
3129 debug output.
3130
63e43d3a
PMR
31312015-08-25 Pierre-Marie de Rodat <derodat@adacore.com>
3132
3133 * ada-lang.c (ada_read_var_value): Add a var_block argument
3134 and pass it to default_read_var_value.
3135 * block.c (block_static_link): New accessor.
3136 * block.h (block_static_link): Declare it.
3137 * buildsym.c (finish_block_internal): Add a static_link
3138 argument. If there is a static link, associate it to the new
3139 block.
3140 (finish_block): Add a static link argument and pass it to
3141 finish_block_internal.
3142 (end_symtab_get_static_block): Update calls to finish_block and
3143 to finish_block_internal.
3144 (end_symtab_with_blockvector): Update call to
3145 finish_block_internal.
3146 * buildsym.h: Forward-declare struct dynamic_prop.
3147 (struct context_stack): Add a static_link field.
3148 (finish_block): Add a static link argument.
3149 * c-exp.y: Remove an obsolete comment (evaluation of variables
3150 already start from the selected frame, and now they climb *up*
3151 the call stack) and propagate the block information to the
3152 produced expression.
3153 * d-exp.y: Likewise.
3154 * f-exp.y: Likewise.
3155 * go-exp.y: Likewise.
3156 * jv-exp.y: Likewise.
3157 * m2-exp.y: Likewise.
3158 * p-exp.y: Likewise.
3159 * coffread.c (coff_symtab_read): Update calls to finish_block.
3160 * dbxread.c (process_one_symbol): Likewise.
3161 * xcoffread.c (read_xcoff_symtab): Likewise.
3162 * compile/compile-c-symbols.c (convert_one_symbol): Promote the
3163 "sym" parameter to struct block_symbol, update its uses and pass
3164 its block to calls to read_var_value.
3165 (convert_symbol_sym): Update the calls to convert_one_symbol.
3166 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
3167 call to read_var_value.
3168 * dwarf2loc.c (block_op_get_frame_base): New.
3169 (dwarf2_block_frame_base_locexpr_funcs): Implement the
3170 get_frame_base method.
3171 (dwarf2_block_frame_base_loclist_funcs): Likewise.
3172 (dwarf2locexpr_baton_eval): Add a frame argument and use it
3173 instead of the selected frame in order to evaluate the
3174 expression.
3175 (dwarf2_evaluate_property): Add a frame argument. Update call
3176 to dwarf2_locexpr_baton_eval to provide a frame in available and
3177 to handle the absence of address stack.
3178 * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
3179 * dwarf2read.c (attr_to_dynamic_prop): Add a forward
3180 declaration.
3181 (read_func_scope): Record any available static link description.
3182 Update call to finish_block.
3183 (read_lexical_block_scope): Update call to finish_block.
3184 * findvar.c (follow_static_link): New.
3185 (get_hosting_frame): New.
3186 (default_read_var_value): Add a var_block argument. Use
3187 get_hosting_frame to handle non-local references.
3188 (read_var_value): Add a var_block argument and pass it to the
3189 LA_READ_VAR_VALUE method.
3190 * gdbtypes.c (resolve_dynamic_range): Update calls to
3191 dwarf2_evaluate_property.
3192 (resolve_dynamic_type_internal): Likewise.
3193 * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
3194 read_var_value, passing it the block coming from symbol lookup.
3195 * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
3196 read_var_value (TODO).
3197 * infcmd.c (finish_command_continuation): Update call to
3198 read_var_value, passing it the block coming from symbol lookup.
3199 * infrun.c (insert_exception_resume_breakpoint): Likewise.
3200 * language.h (struct language_defn): Add a var_block argument to
3201 the LA_READ_VAR_VALUE method.
3202 * objfiles.c (struct static_link_htab_entry): New.
3203 (static_link_htab_entry_hash): New.
3204 (static_link_htab_entry_eq): New.
3205 (objfile_register_static_link): New.
3206 (objfile_lookup_static_link): New.
3207 (free_objfile): Free the STATIC_LINKS hashed map if needed.
3208 * objfiles.h: Include hashtab.h.
3209 (struct objfile): Add a static_links field.
3210 (objfile_register_static_link): New.
3211 (objfile_lookup_static_link): New.
3212 * printcmd.c (print_variable_and_value): Update call to
3213 read_var_value.
3214 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
3215 * python/py-frame.c (frapy_read_var): Update call to
3216 read_var_value, passing it the block coming from symbol lookup.
3217 * python/py-framefilter.c (extract_sym): Add a sym_block
3218 parameter and set the pointed value to NULL (TODO).
3219 (enumerate_args): Update call to extract_sym.
3220 (enumerate_locals): Update calls to extract_sym and to
3221 read_var_value.
3222 * python/py-symbol.c (sympy_value): Update call to
3223 read_var_value (TODO).
3224 * stack.c (read_frame_local): Update call to read_var_value.
3225 (read_frame_arg): Likewise.
3226 (return_command): Likewise.
3227 * symtab.h (struct symbol_block_ops): Add a get_frame_base
3228 method.
3229 (struct symbol): Add a block field.
3230 (SYMBOL_BLOCK): New accessor.
3231 * valops.c (value_of_variable): Remove frame/block handling and
3232 pass the block argument to read_var_value, which does this job
3233 now.
3234 (value_struct_elt_for_reference): Update calls to
3235 read_var_value.
3236 (value_of_this): Pass the block found to read_var_value.
3237 * value.h (read_var_value): Add a var_block argument.
3238 (default_read_var_value): Likewise.
3239
ed8b7b42
YQ
32402015-08-25 Yao Qi <yao.qi@linaro.org>
3241
3242 * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
3243 * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
3244 * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
3245
db3cb7cb
YQ
32462015-08-25 Yao Qi <yao.qi@linaro.org>
3247
3248 * Makefile.in (aarch64-liunx.o): New rule.
3249 (HFILES_NO_SRCDIR): Add aarch64-linux.h.
3250 * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
3251 * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
3252 * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
3253 extern.
3254 (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
3255 * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
3256 * nat/aarch64-linux.c: New file.
3257 * nat/aarch64-linux.h: New file.
3258
f6011a1c
YQ
32592015-08-25 Yao Qi <yao.qi@linaro.org>
3260
3261 * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
3262 lwp_arch_private_info and ptid_of_lwp.
3263
5e35436e
YQ
32642015-08-25 Yao Qi <yao.qi@linaro.org>
3265
3266 * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
3267 Move it to nat/aarch64-linux-hw-point.c.
3268 (debug_reg_change_callback): Likewise.
3269 (aarch64_notify_debug_reg_change): :Likewise.
3270 * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
3271 (aarch64_dr_update_callback_param): New.
3272 (debug_reg_change_callback): New function.
3273 (aarch64_notify_debug_reg_change): Likewise.
3274 * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
3275 Remove the declaration.
3276
4a8a7965
YQ
32772015-08-25 Yao Qi <yao.qi@linaro.org>
3278
3279 * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
3280 Call current_lwp_ptid.
3281
32a271ee
YQ
32822015-08-25 Yao Qi <yao.qi@linaro.org>
3283
3284 * aarch64-linux-nat.c (debug_reg_change_callback): Use
3285 debug_printf.
3286
5e137137
YQ
32872015-08-25 Yao Qi <yao.qi@linaro.org>
3288
3289 * aarch64-linux-nat.c (debug_reg_change_callback): Call
3290 ptid_get_pid rather than ptid_get_lwp.
3291
73b8c1fd
PA
32922015-08-24 Pedro Alves <palves@redhat.com>
3293
3294 * NEWS (New commands): Mention set/show remote
3295 multiprocess-extensions-packet.
3296 * remote.c (remote_query_supported): Only tell the server to use
3297 the multiprocess extensions if the user hasn't force-disabled them
3298 with "set remote multiprocess-extensions-packet off".
3299
4a626d0a
PA
33002015-08-24 Pedro Alves <palves@redhat.com>
3301
3302 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
3303 1029a8112290f6eee9d7878a391c49db42c999bd.
3304 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
3305 Regenerate.
3306 * gnulib/import/Makefile.am: Update.
3307 * gnulib/import/Makefile.in: Update.
3308 * gnulib/import/alloca.in.h: Update.
3309 * gnulib/import/basename-lgpl.c: Update.
3310 * gnulib/import/canonicalize-lgpl.c: Update.
3311 * gnulib/import/config.charset: Update.
3312 * gnulib/import/dirent.in.h: Update.
3313 * gnulib/import/dirfd.c: Update.
3314 * gnulib/import/dirname-lgpl.c: Update.
3315 * gnulib/import/dirname.h: Update.
3316 * gnulib/import/dosname.h: Update.
3317 * gnulib/import/errno.in.h: Update.
3318 * gnulib/import/extra/snippet/arg-nonnull.h: Update.
3319 * gnulib/import/extra/snippet/c++defs.h: Update.
3320 * gnulib/import/extra/snippet/warn-on-use.h: Update.
3321 * gnulib/import/extra/update-copyright: Update.
3322 * gnulib/import/float+.h: Update.
3323 * gnulib/import/float.c: Update.
3324 * gnulib/import/float.in.h: Update.
3325 * gnulib/import/fnmatch.c: Update.
3326 * gnulib/import/fnmatch.in.h: Update.
3327 * gnulib/import/fnmatch_loop.c: Update.
3328 * gnulib/import/fpucw.h: Update.
3329 * gnulib/import/frexp.c: Update.
3330 * gnulib/import/frexpl.c: Update.
3331 * gnulib/import/gettimeofday.c: Update.
3332 * gnulib/import/inttypes.in.h: Update.
3333 * gnulib/import/isnan.c: Update.
3334 * gnulib/import/isnand-nolibm.h: Update.
3335 * gnulib/import/isnand.c: Update.
3336 * gnulib/import/isnanl-nolibm.h: Update.
3337 * gnulib/import/isnanl.c: Update.
3338 * gnulib/import/itold.c: Update.
3339 * gnulib/import/localcharset.c: Update.
3340 * gnulib/import/localcharset.h: Update.
3341 * gnulib/import/lstat.c: Update.
3342 * gnulib/import/m4/00gnulib.m4: Update.
3343 * gnulib/import/m4/absolute-header.m4: Update.
3344 * gnulib/import/m4/alloca.m4: Update.
3345 * gnulib/import/m4/canonicalize.m4: Update.
3346 * gnulib/import/m4/codeset.m4: Update.
3347 * gnulib/import/m4/configmake.m4: Update.
3348 * gnulib/import/m4/dirent_h.m4: Update.
3349 * gnulib/import/m4/dirfd.m4: Update.
3350 * gnulib/import/m4/dirname.m4: Update.
3351 * gnulib/import/m4/double-slash-root.m4: Update.
3352 * gnulib/import/m4/eealloc.m4: Update.
3353 * gnulib/import/m4/errno_h.m4: Update.
3354 * gnulib/import/m4/exponentd.m4: Update.
3355 * gnulib/import/m4/exponentl.m4: Update.
3356 * gnulib/import/m4/extensions.m4: Update.
3357 * gnulib/import/m4/extern-inline.m4: Update.
3358 * gnulib/import/m4/fcntl-o.m4: Update.
3359 * gnulib/import/m4/float_h.m4: Update.
3360 * gnulib/import/m4/fnmatch.m4: Update.
3361 * gnulib/import/m4/fpieee.m4: Update.
3362 * gnulib/import/m4/frexp.m4: Update.
3363 * gnulib/import/m4/frexpl.m4: Update.
3364 * gnulib/import/m4/gettimeofday.m4: Update.
3365 * gnulib/import/m4/glibc21.m4: Update.
3366 * gnulib/import/m4/gnulib-cache.m4: Update.
3367 * gnulib/import/m4/gnulib-common.m4: Update.
3368 * gnulib/import/m4/gnulib-comp.m4: Update.
3369 * gnulib/import/m4/gnulib-tool.m4: Update.
3370 * gnulib/import/m4/include_next.m4: Update.
3371 * gnulib/import/m4/inttypes-pri.m4: Update.
3372 * gnulib/import/m4/inttypes.m4: Update.
3373 * gnulib/import/m4/isnand.m4: Update.
3374 * gnulib/import/m4/isnanl.m4: Update.
3375 * gnulib/import/m4/largefile.m4: Update.
3376 * gnulib/import/m4/localcharset.m4: Update.
3377 * gnulib/import/m4/locale-fr.m4: Update.
3378 * gnulib/import/m4/locale-ja.m4: Update.
3379 * gnulib/import/m4/locale-zh.m4: Update.
3380 * gnulib/import/m4/longlong.m4: Update.
3381 * gnulib/import/m4/lstat.m4: Update.
3382 * gnulib/import/m4/malloc.m4: Update.
3383 * gnulib/import/m4/malloca.m4: Update.
3384 * gnulib/import/m4/math_h.m4: Update.
3385 * gnulib/import/m4/mbrtowc.m4: Update.
3386 * gnulib/import/m4/mbsinit.m4: Update.
3387 * gnulib/import/m4/mbsrtowcs.m4: Update.
3388 * gnulib/import/m4/mbstate_t.m4: Update.
3389 * gnulib/import/m4/memchr.m4: Update.
3390 * gnulib/import/m4/memmem.m4: Update.
3391 * gnulib/import/m4/mmap-anon.m4: Update.
3392 * gnulib/import/m4/multiarch.m4: Update.
3393 * gnulib/import/m4/nocrash.m4: Update.
3394 * gnulib/import/m4/off_t.m4: Update.
3395 * gnulib/import/m4/pathmax.m4: Update.
3396 * gnulib/import/m4/readlink.m4: Update.
3397 * gnulib/import/m4/rename.m4: Update.
3398 * gnulib/import/m4/rmdir.m4: Update.
3399 * gnulib/import/m4/ssize_t.m4: Update.
3400 * gnulib/import/m4/stat.m4: Update.
3401 * gnulib/import/m4/stdbool.m4: Update.
3402 * gnulib/import/m4/stddef_h.m4: Update.
3403 * gnulib/import/m4/stdint.m4: Update.
3404 * gnulib/import/m4/stdio_h.m4: Update.
3405 * gnulib/import/m4/stdlib_h.m4: Update.
3406 * gnulib/import/m4/string_h.m4: Update.
3407 * gnulib/import/m4/strstr.m4: Update.
3408 * gnulib/import/m4/strtok_r.m4: Update.
3409 * gnulib/import/m4/sys_socket_h.m4: Update.
3410 * gnulib/import/m4/sys_stat_h.m4: Update.
3411 * gnulib/import/m4/sys_time_h.m4: Update.
3412 * gnulib/import/m4/sys_types_h.m4: Update.
3413 * gnulib/import/m4/time_h.m4: Update.
3414 * gnulib/import/m4/unistd_h.m4: Update.
3415 * gnulib/import/m4/warn-on-use.m4: Update.
3416 * gnulib/import/m4/wchar_h.m4: Update.
3417 * gnulib/import/m4/wchar_t.m4: Update.
3418 * gnulib/import/m4/wctype_h.m4: Update.
3419 * gnulib/import/m4/wint_t.m4: Update.
3420 * gnulib/import/malloc.c: Update.
3421 * gnulib/import/malloca.c: Update.
3422 * gnulib/import/malloca.h: Update.
3423 * gnulib/import/math.in.h: Update.
3424 * gnulib/import/mbrtowc.c: Update.
3425 * gnulib/import/mbsinit.c: Update.
3426 * gnulib/import/mbsrtowcs-impl.h: Update.
3427 * gnulib/import/mbsrtowcs-state.c: Update.
3428 * gnulib/import/mbsrtowcs.c: Update.
3429 * gnulib/import/memchr.c: Update.
3430 * gnulib/import/memmem.c: Update.
3431 * gnulib/import/pathmax.h: Update.
3432 * gnulib/import/readlink.c: Update.
3433 * gnulib/import/ref-add.sin: Update.
3434 * gnulib/import/ref-del.sin: Update.
3435 * gnulib/import/rename.c: Update.
3436 * gnulib/import/rmdir.c: Update.
3437 * gnulib/import/same-inode.h: Update.
3438 * gnulib/import/stat.c: Update.
3439 * gnulib/import/stdbool.in.h: Update.
3440 * gnulib/import/stddef.in.h: Update.
3441 * gnulib/import/stdint.in.h: Update.
3442 * gnulib/import/stdio.c: Update.
3443 * gnulib/import/stdio.in.h: Update.
3444 * gnulib/import/stdlib.in.h: Update.
3445 * gnulib/import/str-two-way.h: Update.
3446 * gnulib/import/streq.h: Update.
3447 * gnulib/import/string.in.h: Update.
3448 * gnulib/import/stripslash.c: Update.
3449 * gnulib/import/strnlen1.c: Update.
3450 * gnulib/import/strnlen1.h: Update.
3451 * gnulib/import/strstr.c: Update.
3452 * gnulib/import/strtok_r.c: Update.
3453 * gnulib/import/sys_stat.in.h: Update.
3454 * gnulib/import/sys_time.in.h: Update.
3455 * gnulib/import/sys_types.in.h: Update.
3456 * gnulib/import/time.in.h: Update.
3457 * gnulib/import/unistd.in.h: Update.
3458 * gnulib/import/verify.h: Update.
3459 * gnulib/import/wchar.in.h: Update.
3460 * gnulib/import/wctype.in.h: Update.
3461 * gnulib/import/gettimeofday.c: New file.
3462 * gnulib/import/m4/absolute-header.m4: New file.
3463 * gnulib/import/m4/gettimeofday.m4: New file.
3464 * gnulib/import/m4/sys_socket_h.m4: New file.
3465 * gnulib/import/m4/sys_time_h.m4: New file.
3466 * gnulib/import/stdio.c: Delete file.
3467 * gnulib/import/sys_time.in.h: New file.
3468
438e1e42
PA
34692015-08-24 Pedro Alves <palves@redhat.com>
3470
3471 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
3472 * common/gdb_sys_time.h: New file.
3473 * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
3474 * gdb_select.h: Likewise.
3475 * gdb_usleep.c: Likewise.
3476 * maint.c: Likewise.
3477 * mi/mi-main.c: Likewise.
3478 * mi/mi-parse.h: Likewise.
3479 * remote-fileio.c: Likewise.
3480 * remote-m32r-sdi.c: Likewise.
3481 * remote.c: Likewise.
3482 * ser-base.c: Likewise.
3483 * ser-pipe.c: Likewise.
3484 * ser-tcp.c: Likewise.
3485 * ser-unix.c: Likewise.
3486 * symfile.c: Likewise.
3487 * symfile.c: Likewise. Rename OSIZE to SIZE throughout.
3488 * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
3489 * utils.c: Likewise.
3490
40e0b271
PA
34912015-08-24 Pedro Alves <palves@redhat.com>
3492
3493 * NEWS: Mention removed support for the various ROM monitors.
3494 * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
3495 ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
3496 * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
3497 gdb_target_obs.
3498 (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
3499 gdb_target_obs.
3500 (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
3501 dsrec.o from gdb_target_obs.
3502 (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
3503 from gdb_target_obs.
3504 (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
3505 gdb_target_obs.
3506 (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
3507 dink32-rom.o from gdb_target_obs.
3508 (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
3509 (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
3510 * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
3511 monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
3512
f8904751
PA
35132015-08-21 Pedro Alves <palves@redhat.com>
3514
3515 * frame.c (null_frame_id): Explicitly zero-initialize.
3516
049412e3
TT
35172015-08-21 Tom Tromey <tromey@redhat.com>
3518
3519 * dwarf2read.c (struct dwarf2_section_info): Rename field
3520 'asection' to 'section'.
3521 (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
3522 (dwarf2_locate_sections, dwarf2_locate_sections)
3523 (locate_dwz_sections, locate_v1_virtual_dwo_sections)
3524 (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
3525 (dwarf2_locate_v2_dwp_sections): Adjust.
3526
948578a9
PP
35272015-08-21 Patrick Palka <patrick@parcs.ath.cx>
3528
3529 * top.h (gdb_in_secondary_prompt_p): Declare.
3530 * top.c (gdb_secondary_prompt_depth): Define.
3531 (gdb_in_secondary_prompt_p): Define.
3532 (gdb_readline_wrapper_cleanup): Decrement
3533 gdb_secondary_prompt_depth.
3534 (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
3535 * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
3536 are in a secondary prompt.
3537
7a8bcb88
PP
35382015-08-21 Patrick Palka <patrick@parcs.ath.cx>
3539
3540 * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
3541 emit the newline.
3542
2d7711a3
GB
35432015-08-21 Gary Benson <gbenson@redhat.com>
3544
3545 * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
3546
4313b8c0
GB
35472015-08-21 Gary Benson <gbenson@redhat.com>
3548
3549 * target.h (struct target_ops) <to_fileio_open>: New argument
3550 warn_if_slow. Update comment. All implementations updated.
3551 (target_fileio_open_warn_if_slow): New declaration.
3552 * target.c (target_fileio_open): Renamed as...
3553 (target_fileio_open_1): ...this. New argument warn_if_slow.
3554 Pass warn_if_slow to implementation. Update debug printing.
3555 (target_fileio_open): New function.
3556 (target_fileio_open_warn_if_slow): Likewise.
3557 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
3558 target_fileio_open_warn_if_slow.
3559
f36b8719
GB
35602015-08-21 Gary Benson <gbenson@redhat.com>
3561
3562 * nat/linux-namespaces.c (linux_mntns_access_fs):
3563 Do not overwrite old_chain.
3564
40045d91
MF
35652015-08-20 Max Filippov <jcmvbkbc@gmail.com>
3566
3567 * arch/xtensa.h: New file.
3568 * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
3569 (ps_get_thread_area): New function.
3570 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
3571 set_gdbarch_fetch_tls_load_module_address to enable TLS support.
3572 * xtensa-tdep.c (osabi.h): New #include.
3573 (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
3574 xtensa-specific hooks.
3575 * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
3576 member and move the structure to arch/xtensa.h.
3577
80152258
PA
35782015-08-21 Pedro Alves <palves@redhat.com>
3579
3580 * remote.c (struct readahead_cache): New.
3581 (struct remote_state) <readahead_cache>: New field.
3582 (remote_open_1): Invalidate the cache.
3583 (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
3584 functions.
3585 (remote_hostio_pwrite): Invalidate the readahead cache.
3586 (remote_hostio_pread): Rename to ...
3587 (remote_hostio_pread_vFile): ... this.
3588 (remote_hostio_pread_from_cache): New function.
3589 (remote_hostio_pread): Reimplement.
3590 (remote_hostio_close): Invalidate the readahead cache.
3591
88fc5eb7
MC
35922015-08-21 Marcin Cieślak <saper@saper.info> (tiny patch)
3593
3594 PR build/18843
3595 * procfs.c: Include "filestuff.h".
3596
6f1cb6ea
PP
35972015-08-21 Patrick Palka <patrick@parcs.ath.cx>
3598
3599 * tui/tui-data.h (tui_command_info): Remove fields cur_line and
3600 curch.
3601 * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
3602 cur_line or curch, instead call wmove().
3603 (init_win_info) [CMD_WIN]: Likewise.
3604 * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
3605 instead call getcury().
3606 (tui_redisplay_readline): Don't set cur_line or curch.
3607 (tui_mld_erase_entire_line): Don't read cur_line, instead call
3608 getcury().
3609 (tui_cont_sig): Remove call to wmove.
3610 (tui_getc): Don't read cur_line or curch, instead call getcury()
3611 or getyx(). Don't set curch.
3612 * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
3613 set cur_line or curch. Always move cursor to (0,0).
3614
221e1a37
PA
36152015-08-20 Pedro Alves <palves@redhat.com>
3616
3617 * infrun.c (print_target_wait_results): Make extern.
3618 * infrun.h (print_target_wait_results): Declare.
3619 * remote.c (set_stop_requested_callback): Delete.
3620 (process_initial_stop_replies): New function.
3621 (remote_start_remote): Use it.
3622 (stop_reply_queue_length): New function.
3623
40e3ad0e
PA
36242015-08-20 Pedro Alves <palves@redhat.com>
3625
3626 * dwarf2read.c (process_full_comp_unit): To tell whether
3627 start_subfile managed to deduce a language, test for
3628 language_unknown instead of language_c.
3629
af39b327
PMR
36302015-08-20 Pierre-Marie de Rodat <derodat@adacore.com>
3631
3632 * ada-lex.l: Reset the start condition to INITIAL in the rule that
3633 matches attributes.
3634
7d45c7c3
KB
36352015-08-19 Kevin Buettner <kevinb@redhat.com>
3636
3637 * dwarf2read.c (dwarf2_string_attr): New function.
3638 (lookup_dwo_unit, process_psymtab_comp_unit_reader)
3639 (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
3640 (read_call_site_scope, namespace_name, guess_full_die_structure_name)
3641 (anonymous_struct_prefix, prepare_one_comp_unit): Use
3642 dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
3643
4d6cceb4
DE
36442015-08-18 Doug Evans <dje@google.com>
3645 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3646
3647 PR mi/18833
3648 * cli/cli-logging.c (pop_output_files): Don't restore redirection
3649 if MI-like.
3650 * mi/mi-out.c: #include "vec.h".
3651 (ui_filep): New type.
3652 (DEV_VEC_P (ui_filep)): New type.
3653 (struct ui_out_data) <buffer, original_buffer>: Delete.
3654 (struct ui_out_data) <streams>: New member.
3655 (mi_ui_out_impl): Add data_destroy field.
3656 (mi_field_string, mi_field_fmt): Update.
3657 (mi_flush, mi_redirect, field_separator): Update.
3658 (mi_open, mi_close): Update.
3659 (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
3660 (mi_out_data_ctor, mi_out_data_dtor): New functions.
3661 (mi_out_new): Call mi_out_data_ctor.
3662
26d56a93
SL
36632015-08-18 Sandra Loosemore <sandra@codesourcery.com>
3664
3665 * remote.c (strprefix): New.
3666 (remote_parse_stop_reply): Use strprefix instead of strncmp
3667 to ensure exact match of keyword.
3668
566f5e3b
AB
36692015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
3670
3671 * gdb_bfd.c (debug_bfd_cache): New variable.
3672 (show_bfd_cache_debug): New function.
3673 (gdb_bfd_open): Add debug logging.
3674 (gdb_bfd_ref): Likewise.
3675 (gdb_bfd_unref): Likewise.
3676 (_initialize_gdb_bfd): Add new set/show command.
3677 * NEWS: Mention new command.
3678
18989b3c
AB
36792015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
3680
3681 * gdb_bfd.c (bfd_sharing): New variable.
3682 (show_bfd_sharing): New function.
3683 (gdb_bfd_open): Check bfd_sharing variable.
3684 (_initialize_gdb_bfd): Add new set/show command.
3685 * NEWS: Mention new command.
3686
c04fe68f
AB
36872015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
3688
3689 * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
3690 field.
3691 (struct gdb_bfd_cache_search): Likewise.
3692 (eq_bfd): Compare the size, inode, and device id fields.
3693 (gdb_bfd_open): Initialise the size, inode, and device id fields.
3694 (gdb_bfd_ref): Likewise.
3695 (gdb_bfd_unref): Likewise.
3696
b2a33439
PA
36972015-08-18 Pedro Alves <palves@redhat.com>
3698
3699 * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
3700 target implements to_always_non_stop_p, call it.
3701 * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
3702 (x86_linux_create_target): Install it as to_always_non_stop_p
3703 method.
3704
71b57e37
DE
37052015-08-17 Doug Evans <dje@google.com>
3706
3707 * ui-out.c (default_ui_out_impl): Add comment.
3708
7f3706eb
IB
37092015-08-17 Iain Buclaw <ibuclaw@gdcproject.org>
3710
3711 * d-exp.y (type_aggregate_p): New function.
3712 (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
3713 (classify_inner_name): Likewise.
3714 * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
3715
1762568f
DE
37162015-08-15 Doug Evans <xdje42@gmail.com>
3717
3718 * psymtab.c (add_psymbol_to_bcache): Remove "val" arg. All callers
3719 updated.
3720 (add_psymbol_to_list): Ditto.
3721
8763cede
DE
37222015-08-15 Doug Evans <xdje42@gmail.com>
3723
3724 * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab. All callers
3725 updated. Call end_psymtab_common.
3726 * dwarf2read.c (process_psymtab_comp_unit_reader): Call
3727 end_psymtab_common.
3728 (build_type_psymtabs_reader): Ditto.
3729 * psympriv.h (sort_pst_symbols): Delete.
3730 (end_psymtab_common): Declare.
3731 * psymtab.c (sort_pst_symbols): Make static.
3732 (end_psymtab_common): New function.
3733 * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
3734
51cdc993
DE
37352015-08-15 Doug Evans <xdje42@gmail.com>
3736
3737 * defs.h (LANGUAGE_BITS): Define.
3738 * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
3739 (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
3740 * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
3741 (minimal_symbol_type): Add nr_minsym_types.
3742 (MINSYM_TYPE_BITS): Define.
3743 (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
3744 (domain_enum_tag): Add NR_DOMAINS.
3745 (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
3746 (SYMBOL_ACLASS_BITS): Define from 6 to 5.
3747
95cf5869
DE
37482015-08-15 Doug Evans <xdje42@gmail.com>
3749
3750 * objfiles.h: Whitespace cleanup.
3751 * psympriv.h: Whitespace cleanup.
3752 * psymtab.c: Whitespace/coding convention cleanup.
3753
e3ae3c43
PP
37542015-08-15 Patrick Palka <patrick@parcs.ath.cx>
3755
3756 * inferior.c (detach_inferior_command): Don't call
3757 any_thread_of_process when pid is 0.
3758 (kill_inferior_command): Likewise.
3759
6ff0ba5f
DE
37602015-08-14 Doug Evans <xdje42@gmail.com>
3761
3762 PR gdb/11833
3763 * NEWS: Document new /s modifier for the disassemble command.
3764 * cli/cli-cmds.c (disassemble_command): Add support for /s.
3765 (_initialize_cli_cmds): Update online docs of disassemble command.
3766 * disasm.c: #include "source.h".
3767 (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
3768 All uses updated.
3769 (dis_line_entry): New struct.
3770 (hash_dis_line_entry, eq_dis_line_entry): New functions.
3771 (allocate_dis_line_table): New functions.
3772 (maybe_add_dis_line_entry, line_has_code_p): New functions.
3773 (dump_insns): New arg end_pc. All callers updated.
3774 (do_mixed_source_and_assembly_deprecated): Renamed from
3775 do_mixed_source_and_assembly. All callers updated.
3776 (do_mixed_source_and_assembly): New function.
3777 (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
3778 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
3779 DISASSEMBLY_SOURCE. All uses updated.
3780 (DISASSEMBLY_SOURCE): New macro.
3781 * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
3782
b56ccc20
KS
37832015-08-14 Keith Seitz <keiths@redhat.com>
3784
3785 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
3786 `typename' to `type_name' to avoid C++ reserved word.
3787
ebdad8fc
KS
37882015-08-14 Keith Seitz <keiths@redhat.com>
3789
3790 * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
3791 (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
3792 silence ARI errors.
3793
c0fe2ae7
IB
37942015-08-14 Iain Buclaw <ibuclaw@gdcproject.org>
3795
3796 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
3797 xstrprintf instead of malloc and sprintf.
3798 (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
3799 (lex_one_token): Likewise.
3800
a738da3a
MF
38012015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
3802
3803 * solib-svr4.c (read_program_header): Add base_addr argument to
3804 report the runtime address of the segment.
3805 (find_program_interpreter): Update read_program_header call to pass
3806 a NULL pointer for the new argument.
3807 (scan_dyntag): Add ptr_addr argument to report the runtime address
3808 of the tag payload.
3809 (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
3810 read_program_header to get the base address of the dynamic segment.
3811 (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
3812 read_program_header.
3813 (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
3814
f8edc4ff
MF
38152015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
3816
3817 * MAINTAINERS (Write After Approval): Add Matthew Fortune.
3818
444c1ed8
IB
38192015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
3820
3821 * d-exp.y (%union): Add voidval.
3822 (%token): Add UNKNOWN_NAME as a token to represent an unclassified
3823 name in the lexing stage.
3824 (PostfixExpression): Move symbol completion handling in grammar here
3825 from PrimaryExpression.
3826 (PrimaryExpression): Move routines to handle resolving identifier
3827 tokens in the grammar here from push_expression_name.
3828 (IdentifierExp): Remove the handling of alternating '.' and identifier
3829 tokens.
3830 (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
3831 (BasicType): Remove C-style typename rules.
3832 (d_type_from_name, d_module_from_name, push_variable)
3833 (push_fieldnames, push_type_name, push_module_name)
3834 (push_expression_name): Remove.
3835 (lex_one_token): Rename from yylex. Replace pstate with par_state.
3836 (token_and_value): New type.
3837 (token_fifo, popping, name_obstack): New globals.
3838 (classify_name): New function.
3839 (classify_inner_name): Likewise.
3840 (yylex): Likewise.
3841 (d_parse): Initialize token_fifo, popping and name_obstack.
3842
bc7c9fab
IB
38432015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
3844
3845 * Makefile.in (SFILES): Add d-namespace.c.
3846 (COMMON_OBS): Add d-namespace.o.
3847 * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
3848 la_lookup_symbol_nonlocal callback function pointer.
3849 * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
3850 (d_lookup_nested_symbol): New declaration.
3851 * d-namespace.c: New file.
3852
3207396b
PA
38532015-08-13 Pedro Alves <palves@redhat.com>
3854
3855 * python/py-unwind.c (pyuw_sniffer): Install the invalidate
3856 cleanup after the decref cleanup, not before.
3857
5d8c3ed3
PMR
38582015-08-13 Pierre-Marie de Rodat <derodat@adacore.com>
3859
3860 * ada-lang.c: Include namespace.h
3861 (aux_add_nonlocal_symbols): Fix a function name in comment.
3862 (ada_add_block_renamings): New.
3863 (add_nonlocal_symbols): Add global renamings handling.
3864 (ada_lookup_symbol_list_worker): Move the symbol lookup part
3865 to...
3866 (ada_add_all_symbols): ... this new function.
3867 (ada_add_block_symbols): Try to match the input name against the
3868 "using directives list", perform a recursive symbol lookup on
3869 the matched declarations.
3870 * block.h (struct block): Move the_namespace to top-level as
3871 namespace_info. Remove the language_specific field.
3872 (BLOCK_NAMESPACE): Update access to the namespace_info field.
3873 * buildsym.h (using_directives): Rename into...
3874 (local_using_directives): ... this.
3875 (global_using_directives): New.
3876 (struct context_stack): Rename the using_directives field into
3877 local_using_directives.
3878 * buildsym.c (finish_block_internal): Deal with the proper
3879 using directives repository (local or global).
3880 (prepare_for_building): Reset local_using_directives. Assert
3881 that there is no pending global using directive.
3882 (reset_symtab_globals): Reset global_using_directives and
3883 local_using_directives.
3884 (end_symtab_get_static_block): Don't ignore symtabs that have
3885 only using directives.
3886 (push_context): Update references to local_using_directives.
3887 (buildsym_init): Do not reset using_directives.
3888 * cp-support.c: Include namespace.h.
3889 * cp-support.h (struct using_direct): Move to namespace.h.
3890 (cp_add_using_directives): Move to namespace.h.
3891 * cp-namespace.c: Include namespace.h
3892 (cp_add_using_directive): Move to namespace.c, rename it to
3893 add_using_directive, add a "using_directives" argument and use
3894 it as the pending using directives repository. All callers
3895 updated.
3896 * dwarf2read.c (using_directives): New.
3897 (read_import_statement): Call using_directives.
3898 (read_func_scope): Update references to local_using_directives.
3899 (read_lexical_block_scope): Likewise.
3900 (read_namespace): Update the heading comment, call
3901 using_directives.
3902 * namespace.h: New file.
3903 * namespace.c: New file.
3904 * Makefile.in (SFILES): Add namespace.c.
3905 (COMMON_OBS): Add namespace.o
3906
4dafcdeb
JB
39072015-08-12 Joel Brobecker <brobecker@adacore.com>
3908
3909 * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
3910 compute RETADDR.
3911
67994074
KS
39122015-08-12 Keith Seitz <keiths@redhat.com>
3913
3914 * break-catch-throw.c (re_set_exception_catchpoint) Rename
3915 reserved C++ keyword "explicit" to "explicit_loc".
3916 * breakpoint.c (create_overlay_event_breakpoint)
3917 (create_longjmp_master_breakpoint)
3918 (create_std_terminate_master_breakpoint)
3919 (create_exception_master_breakpoint, update_static_tracepoint):
3920 Rename reserved C++ keyword "explicit" to "explicit_loc".
3921 * completer.c (collect_explicit_location_matches)
3922 (explicit_location_completer): Rename reserved C++ keyword
3923 "explicit" to "explicit_loc".
3924 * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
3925 (canonicalize_linespec, create_sals_line_offset)
3926 (convert_linespec_to_sals, convert_explicit_location_to_sals)
3927 (event_location_to_sals, decode_objc): Rename reserved C++ keyword
3928 "explicit" to "explicit_loc".
3929 * location.c (struct event_location) <explicit>: Rename to
3930 "explicit_loc".
3931 (initialize_explicit_location, new_explicit_location)
3932 (explicit_location_to_string_internal, explicit_location_to_linespec):
3933 Rename reserved C++ keyword "explicit" to "explicit_loc".
3934 * location.h (explicit_location_to_string)
3935 (explicit_location_to_linespec, initialize_explicit_location)
3936 (new_explicit_location): Rename reserved C++ keyword "explicit"
3937 to "explicit_loc".
3938 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
3939 keyword "explicit" to "explicit_loc".
3940
59ecaff3
KS
39412015-08-12 Keith Seitz <keiths@redhat.com>
3942
3943 * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
3944 and only call decode_line_1 when it is non-NULL.
3945
244558af
LM
39462015-08-12 Luis Machado <lgustavo@codesourcery.com>
3947
3948 * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
3949 location address is not meaningful.
3950 (breakpoint_address_is_meaningful): Update comment.
3951
629500fa
KS
39522015-08-11 Keith Seitz <keiths@redhat.com>
3953
3954 * NEWS: Mention explicit locations.
3955 * breakpoint.c [LOCATION_HELP_STRING]: New macro.
3956 [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
3957 (_initialize_breakpoint): Update documentation for
3958 "clear", "break", "trace", "strace", "ftrace", and "dprintf".
3959
eb8c4e2e
KS
39602015-08-11 Keith Seitz <keiths@redhat.com>
3961
3962 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
3963 explicit locations, options "--source", "--function",
3964 "--label", and "--line".
3965
87f0e720
KS
39662015-08-11 Keith Seitz <keiths@redhat.com>
3967
3968 * completer.c: Include location.h.
3969 (enum match_type): New enum.
3970 (location_completer): Rename to ...
3971 (linespec_completer): ... this.
3972 (collect_explicit_location_matches, backup_text_ptr)
3973 (explicit_location_completer): New functions.
3974 (location_completer): "New" function; handle linespec
3975 and explicit location completions.
3976 (complete_line_internal): Remove all location completer-specific
3977 handling.
3978 * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
3979 (find_toplevel_char): Export.
3980 (linespec_parse_line_offset): Export.
3981 Issue error if STRING is not numerical.
3982 (gdb_get_linespec_parser_quote_characters): New function.
3983 * linespec.h (linespec_parse_line_offset): Declare.
3984 (get_gdb_linespec_parser_quote_characters): Declare.
3985 (is_ada_operator): Declare.
3986 (find_toplevel_char): Declare.
3987 (linespec_lexer_lex_keyword): Declare.
3988 * location.c (explicit_to_event_location): New function.
3989 (explicit_location_lex_one): New function.
3990 (string_to_explicit_location): New function.
3991 (string_to_event_location): Handle explicit locations.
3992 * location.h (explicit_to_event_location): Declare.
3993 (string_to_explicit_location): Declare.
3994
00e52e53
KS
39952015-08-11 Keith Seitz <keiths@redhat.com>
3996
3997 * break-catch-throw.c (re_set_exception_catchpoint): Convert
3998 linespec into explicit location.
3999 * breakpoint.c (create_overlay_breakpoint)
4000 (create_longjmp_master_breakpoint)
4001 (create_std_terminate_master_breakpoint)
4002 (create_exception_master_breakpoint): Convert linespec into explicit
4003 location.
4004 (update_static_tracepoint): Convert linespec into explicit location.
4005 * linespec.c (enum offset_relative_sign, struct line_offset): Move
4006 location.h.
4007 (struct linespec) <expression, expr_pc, source_filename>
4008 <function_name, label_name, line_offset>: Replace with ...
4009 <explicit>: ... this.
4010 <is_linespec>: New member.
4011 (PARSER_EXPLICIT): New accessor macro.
4012 (undefined_label_error): New function.
4013 (source_file_not_found_error): New function.
4014 (linespec_parse_basic): The parser result is now an explicit location.
4015 Use PARSER_EXPLICIT to access it.
4016 Use undefined_label_error.
4017 (canonicalize_linespec): Convert canonical linespec into explicit
4018 location.
4019 Move string representation of location to explicit_location_to_linespec
4020 and use it and explicit_location_to_string to save string
4021 representations of the canonical location.
4022 (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
4023 explicit location. Update all references.
4024 (convert_explicit_location_to_sals): New function.
4025 (parse_linespec): Use PARSER_EXPLICIT to access the parser
4026 result's explicit location.
4027 (linespec_state_constructor): Initialize is_linespec.
4028 Use PARSER_EXPLICIT.
4029 (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
4030 result.
4031 (event_location_to_sals): For linespec locations, set is_linespec.
4032 Handle explicit locations.
4033 (decode_objc): 'ls' contains an explicit location now. Update all
4034 references.
4035 (symtabs_from_filename): Use source_file_not_found_error.
4036 * location.c (struct event_location.u) <explicit>: New member.
4037 (initialize_explicit_location): New function.
4038 (initialize_event_location): Initialize explicit locations.
4039 (new_explicit_location, get_explicit_location)
4040 (get_explicit_location_const): New functions.
4041 (explicit_to_string_internal): New function; most of contents moved
4042 from canonicalize_linespec.
4043 (explicit_location_to_string): New function.
4044 (explicit_location_to_linespec): New function.
4045 (copy_event_location, delete_event_location)
4046 (event_location_to_string_const, event_location_empty_p): Handle
4047 explicit locations.
4048 * location.h (enum offset_relative_sign, struct line_offset): Move
4049 here from linespec.h.
4050 (enum event_location_type): Add EXPLICIT_LOCATION.
4051 (struct explicit_location): New structure.
4052 (explicit_location_to_string): Declare.
4053 (explicit_location_to_linespec): Declare.
4054 (new_explicit_location, get_explicit_locationp
4055 (get_explicit_location_const, initialize_explicit_location): Declare.
4056
5b56227b
KS
40572015-08-11 Keith Seitz <keiths@redhat.com>
4058
4059 * break-catch-throw.c (re_set_exception_catchpoint): Convert
4060 linespec for stap probe to probe location.
4061 * breakpoint.c (create_longjmp_master_breakpoint)
4062 (create_exception_master_breakpoint): Likewise.
4063 (break_command_1): Remove local variable `arg_cp'.
4064 Check location type to set appropriate breakpoint ops methods.
4065 (trace_command): Likewise.
4066 * linespec.c (event_location_to_sals): Assert on probe locations.
4067 * location.c (EL_PROBE): Add macro definition.
4068 (new_probe_location, get_probe_location): New functions.
4069 (copy_event_location, delete_event_location, event_location_to_string)
4070 (string_to_event_location, event_location_empty_p): Handle probe
4071 locations.
4072 * location.h (enum event_location_type): Add PROBE_LOCATION.
4073 (new_probe_location, get_probe_location): Declare.
4074 * probe.c (parse_probes): Assert that LOCATION is a probe location.
4075 Convert linespec into probe location.
4076
a06efdd6
KS
40772015-08-11 Keith Seitz <keiths@redhat.com>
4078
4079 * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
4080 Convert linespec to address location.
4081 * linespec.c (canonicalize_linespec): Do not handle address
4082 locations here.
4083 (convert_address_location_to_sals): New function; contents moved
4084 from ...
4085 (convert_linespc_to_sals): ... here.
4086 (parse_linespec): Remove address locations from linespec grammar.
4087 Remove handling of address locations.
4088 (linespec_lex_to_end): Remove handling of address linespecs.
4089 (event_location_to_sals): Handle ADDRESS_LOCATION.
4090 (linespec_expression_to_pc): Export.
4091 * linespec.h (linespec_expression_to_pc): Add declaration.
4092 * location.c (struct event_location.u) <address>: New member.
4093 (new_address_location, get_address_location): New functions.
4094 (copy_event_location, delete_event_location, event_location_to_string)
4095 (string_to_event_location, event_location_empty_p): Handle address
4096 locations.
4097 * location.h (enum event_location_type): Add ADDRESS_LOCATION.
4098 (new_address_location, get_address_location): Declare.
4099 * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
4100 to address location.
4101 * spu-tdep.c (spu_catch_start): Likewise.
4102
f00aae0f
KS
41032015-08-11 Keith Seitz <keiths@redhat.com>
4104
4105 * ax-gdb.c: Include location.h.
4106 (agent_command_1) Use linespec location instead of address
4107 string.
4108 * break-catch-throw.c: Include location.h.
4109 (re_set_exception_catchpoint): Use linespec locations instead
4110 of address strings.
4111 * breakpoint.c: Include location.h.
4112 (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
4113 (create_std_terminate_master_breakpoint)
4114 (create_exception_master_breakpoint, update_breakpoints_after_exec):
4115 Use linespec location instead of address string.
4116 (print_breakpoint_location): Use locations and
4117 event_location_to_string.
4118 Print extra_string for pending locations for non-MI streams.
4119 (print_one_breakpoint_location): Use locations and
4120 event_location_to_string.
4121 (init_raw_breakpoint_without_location): Initialize b->location.
4122 (create_thread_event_breakpoint): Use linespec location instead of
4123 address string.
4124 (init_breakpoint_sal): Likewise.
4125 Only save extra_string if it is non-NULL and not the empty string.
4126 Use event_location_to_string instead of `addr_string'.
4127 Constify `p' and `endp'.
4128 Use skip_spaces_const/skip_space_const instead of non-const versions.
4129 Copy the location into the breakpoint.
4130 If LOCATION is NULL, save the breakpoint address as a linespec location
4131 instead of an address string.
4132 (create_breakpoint_sal): Change `addr_string' parameter to a struct
4133 event_location. All uses updated.
4134 (create_breakpoints_sal): Likewise for local variable `addr_string'.
4135 (parse_breakpoint_sals): Use locations instead of address strings.
4136 Remove check for empty linespec with conditional.
4137 Refactor.
4138 (decode_static_tracepoint_spec): Make argument const and update
4139 function.
4140 (create_breakpoint): Change `arg' to a struct event_location and
4141 rename.
4142 Remove `copy_arg' and `addr_start'.
4143 If EXTRA_STRING is empty, set it to NULL.
4144 Don't populate `canonical' for pending breakpoints.
4145 Pass `extra_string' to find_condition_and_thread.
4146 Clear `extra_string' if `rest' was NULL.
4147 Do not error with "garbage after location" if setting a dprintf
4148 breakpoint.
4149 Copy the location into the breakpoint instead of an address string.
4150 (break_command_1): Use string_to_event_location and pass this to
4151 create_breakpoint instead of an address string.
4152 Check against `arg_cp' for a probe linespec.
4153 (dprintf_command): Use string_to_event_location and pass this to
4154 create_breakpoint instead of an address string.
4155 Throw an exception if no format string was specified.
4156 (print_recreate_ranged_breakpoint): Use event_location_to_string
4157 instead of address strings.
4158 (break_range_command, until_break_command)
4159 (init_ada_exception_breakpoint): Use locations instead
4160 of address strings.
4161 (say_where): Print out extra_string for pending locations.
4162 (base_breakpoint_dtor): Delete `location' and `location_range_end' of
4163 the breakpoint.
4164 (base_breakpoint_create_sals_from_location): Use struct event_location
4165 instead of address string.
4166 Remove `addr_start' and `copy_arg' parameters.
4167 (base_breakpoint_decode_location): Use struct event_location instead of
4168 address string.
4169 (bkpt_re_set): Use locations instead of address strings.
4170 Use event_location_empty_p to check for unset location.
4171 (bkpt_print_recreate): Use event_location_to_string instead of
4172 an address string.
4173 Print out extra_string for pending locations.
4174 (bkpt_create_sals_from_location, bkpt_decode_location)
4175 (bkpt_probe_create_sals_from_location): Use struct event_location
4176 instead of address string.
4177 (bkpt_probe_decode_location): Use struct event_location instead of
4178 address string.
4179 (tracepoint_print_recreate): Use event_location_to_string to
4180 recreate the tracepoint.
4181 (tracepoint_create_sals_from_location, tracepoint_decode_location)
4182 (tracepoint_probe_create_sals_from_location)
4183 (tracepoint_probe_decode_location): Use struct event_location
4184 instead of address string.
4185 (dprintf_print_recreate): Use event_location_to_string to recreate
4186 the dprintf.
4187 (dprintf_re_set): Remove check for valid/missing format string.
4188 (strace_marker_create_sals_from_location)
4189 (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
4190 (update_static_tracepoint): Use struct event_location instead of
4191 address string.
4192 (location_to_sals): Likewise.
4193 Pass `extra_string' to find_condition_and_thread.
4194 For newly resolved pending breakpoint locations, clear the location's
4195 string representation.
4196 Assert that the breakpoint's condition string is NULL when
4197 condition_not_parsed.
4198 (breakpoint_re_set_default, create_sals_from_location_default)
4199 (decode_location_default, trace_command, ftrace_command)
4200 (strace_command, create_tracepoint_from_upload): Use locations
4201 instead of address strings.
4202 * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
4203 Use struct event_location instead of address string.
4204 Update all uses.
4205 <decode_location>: Likewise.
4206 (struct breakpoint) <addr_string>: Change to struct event_location
4207 and rename `location'.
4208 <addr_string_range_end>: Change to struct event_location and rename
4209 `location_range_end'.
4210 (create_breakpoint): Use struct event_location instead of address
4211 string.
4212 * cli/cli-cmds.c: Include location.h.
4213 (edit_command, list_command): Use locations instead of address strings.
4214 * elfread.c: Include location.h.
4215 (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
4216 * guile/scm-breakpoint.c: Include location.h.
4217 (bpscm_print_breakpoint_smob): Use event_location_to_string.
4218 (gdbscm_register_breakpoint): Use locations instead of address
4219 strings.
4220 * linespec.c: Include location.h.
4221 (struct ls_parser) <stream>: Change to const char *.
4222 (PARSER_STREAM): Update.
4223 (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
4224 keywords must be followed by whitespace.
4225 (canonicalize_linespec): Save a linespec location into `canonical'.
4226 Save a canonical linespec into `canonical'.
4227 (parse_linespec): Change `argptr' to const char * and rename `arg'.
4228 All uses updated.
4229 Update function description.
4230 (linespec_parser_new): Initialize `parser'.
4231 Update initialization of parsing stream.
4232 (event_location_to_sals): New function.
4233 (decode_line_full): Change `argptr' to a struct event_location and
4234 rename it `location'.
4235 Use locations instead of address strings.
4236 Call event_location_to_sals instead of parse_linespec.
4237 (decode_line_1): Likewise.
4238 (decode_line_with_current_source, decode_line_with_last_displayed)
4239 Use locations instead of address strings.
4240 (decode_objc): Likewise.
4241 Change `argptr' to const char * and rename `arg'.
4242 (destroy_linespec_result): Delete the linespec result's location
4243 instead of freeing the address string.
4244 * linespec.h (struct linespec_result) <addr_string>: Change to
4245 struct event_location and rename to ...
4246 <location>: ... this.
4247 (decode_line_1, decode_line_full): Change `argptr' to struct
4248 event_location. All callers updated.
4249 * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
4250 (mi_cmd_break_insert_1): Use locations instead of address strings.
4251 Throw an error if there was "garbage" at the end of the specified
4252 linespec.
4253 * probe.c: Include location.h.
4254 (parse_probes): Change `argptr' to struct event_location.
4255 Use event locations instead of address strings.
4256 * probe.h (parse_probes): Change `argptr' to struct event_location.
4257 * python/py-breakpoint.c: Include location.h.
4258 (bppy_get_location): Constify local variable `str'.
4259 Use event_location_to_string.
4260 (bppy_init): Use locations instead of address strings.
4261 * python/py-finishbreakpoint.c: Include location.h.
4262 (bpfinishpy_init): Remove local variable `addr_str'.
4263 Use locations instead of address strings.
4264 * python/python.c: Include location.h.
4265 (gdbpy_decode_line): Use locations instead of address strings.
4266 * remote.c: Include location.h.
4267 (remote_download_tracepoint): Use locations instead of address
4268 strings.
4269 * spu-tdep.c: Include location.h.
4270 (spu_catch_start): Remove local variable `buf'.
4271 Use locations instead of address strings.
4272 * tracepoint.c: Include location.h.
4273 (scope_info): Use locations instead of address strings.
4274 (encode_source_string): Constify parameter `src'.
4275 * tracepoint.h (encode_source_string): Likewise.
4276
c7c1b3e9
KS
42772015-08-11 Keith Seitz <keiths@redhat.com>
4278
4279 * Makefile.in (SFILES): Add location.c.
4280 (HFILES_NO_SRCDIR): Add location.h.
4281 (COMMON_OBS): Add location.o.
4282 * linespec.c (linespec_lex_to_end): New function.
4283 * linespec.h (linespec_lex_to_end): Declare.
4284 * location.c: New file.
4285 * location.h: New file.
4286
5f700d83
KS
42872015-08-11 Keith Seitz <keiths@redhat.com>
4288
4289 * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
4290 Renamed to create_sals_from_location.
4291 <decode_linespec>: Renamed to decode_location.
4292 Update all callers.
4293 * breakpoint.c (create_sals_from_address_default): Renamed to ...
4294 (create_sals_from_location_default): ... this.
4295 (addr_string_to_sals): Renamed to ...
4296 (location_to_sals): ... this.
4297 (decode_linespec_default): Renamed to ...
4298 (decode_location_default): ... this.
4299 (base_breakpoint_create_sals_from_address): Renamed to ...
4300 (base_breakpoint_create_sals_from_location): ... this.
4301 (bkpt_create_sals_from_address): Renamed to ...
4302 (bkpt_create_sals_from_location): ... this.
4303 (bkpt_decode_linespec): Renamed to ...
4304 (bkpt_decode_location): ... this.
4305 (bkpt_probe_create_sals_from_address): Renamed to ...
4306 (bkpt_probe_create_sals_from_location): ... this.
4307 (tracepoint_create_sals_from_address): Renamed to ...
4308 (tracepoint_create_sals_from_location): ... this.
4309 (tracepoint_decode_linespec): Renamed to ...
4310 (tracepoint_decode_location): ... this.
4311 (tracepoint_probe_create_sals_from_address): Renamed to ...
4312 (tracepoint_probe_create_sals_from_location): ... this.
4313 (tracepoint_probe_decode_linespec): Renamed to ...
4314 (tracepoint_probe_decode_location): ... this.
4315 (strace_marker_create_sals_from_address): Renamed to ...
4316 (strace_marker_create_sals_from_location): ... this.
4317 (decode_linespec_default): Renamed to ...
4318 (decode_location_default): ... this.
4319
e27852be
DE
43202015-08-10 Doug Evans <dje@google.com>
4321 Keith Seitz <keiths@redhat.com>
4322
4323 PR gdb/17960
4324 * symtab.c (make_file_symbol_completion_list_1): Renamed from
4325 make_file_symbol_completion_list and made static.
4326 (make_file_symbol_completion_list): New function.
80af41e0 4327
fd7dcb94
JB
43282015-08-10 Joel Brobecker <brobecker@adacore.com>
4329
4330 * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
4331 trailing new-line at end of warning message.
4332 (proceed): Add i18n marker to error messages.
4333
f12899e9
PA
43342015-08-07 Pedro Alves <palves@redhat.com>
4335
4336 * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
4337
5ac21343
PA
43382015-08-07 Pedro Alves <palves@redhat.com>
4339
4340 * s390-linux-tdep.c (is_non_branch_ril)
4341 (s390_displaced_step_copy_insn): New functions.
4342 (s390_displaced_step_fixup): Update comment.
4343 (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
4344 gdbarch_displaced_step_copy_insn hook.
4345
7f03bd92
PA
43462015-08-07 Pedro Alves <palves@redhat.com>
4347
4348 * infrun.c (displaced_step_prepare_throw): Return -1 if
4349 gdbarch_displaced_step_copy_insn returns NULL. Update intro
4350 comment.
4351 * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
4352 (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
4353 in file.
4354 (ppc_displaced_step_copy_insn): New function.
4355 (ppc_displaced_step_fixup): Update comment.
4356 (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
4357 gdbarch_displaced_step_copy_insn hook.
4358 * gdbarch.sh (displaced_step_copy_insn): Document what happens on
4359 NULL return.
4360 * gdbarch.h: Regenerate.
4361
3fc8eb30
PA
43622015-08-07 Pedro Alves <palves@redhat.com>
4363
4364 * inferior.h (struct inferior) <displaced_stepping_failed>: New
4365 field.
4366 * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
4367 Return false if dispaced stepping failed before.
4368 (resume): Pass the current inferior to
4369 use_displaced_stepping_now_p. Wrap displaced_step_prepare in
4370 TRY/CATCH. If we get a MEMORY_ERROR, set the inferior's
4371 displaced_stepping_failed flag, and fall back to an in-line
4372 step-over.
4373
bfedc46a
PA
43742015-08-07 Pedro Alves <palves@redhat.com>
4375
4376 * darwin-nat.c (darwin_stop): Rename to ...
4377 (darwin_interrupt): ... this.
4378 (_initialize_darwin_inferior): Adjust.
4379 * gnu-nat.c (gnu_stop): Delete.
4380 (gnu_target): Don't install gnu_stop.
4381 * inf-ptrace.c (inf_ptrace_stop): Rename to ...
4382 (inf_ptrace_interrupt): ... this.
4383 (inf_ptrace_target): Adjust.
4384 * infcmd.c (interrupt_target_1): Use target_interrupt instead of
4385 target_stop.
4386 * linux-nat (linux_nat_stop): Rename to ...
4387 (linux_nat_interrupt): ... this.
4388 (linux_nat_stop): Reimplement.
4389 (linux_nat_add_target): Install linux_nat_interrupt.
4390 * nto-procfs.c (nto_interrupt_twice): Rename to ...
4391 (nto_handle_sigint_twice): ... this.
4392 (nto_interrupt): Rename to ...
4393 (nto_handle_sigint): ... this. Call target_interrupt instead of
4394 target_stop.
4395 (procfs_wait): Adjust.
4396 (procfs_stop): Rename to ...
4397 (procfs_interrupt): ... this.
4398 (init_procfs_targets): Adjust.
4399 * procfs.c (procfs_stop): Rename to ...
4400 (procfs_interrupt): ... this.
4401 (procfs_target): Adjust.
4402 * remote-m32r-sdi.c (m32r_stop): Rename to ...
4403 (m32r_interrupt): ... this.
4404 (init_m32r_ops): Adjust.
4405 * remote-sim.c (gdbsim_stop_inferior): Rename to ...
4406 (gdbsim_interrupt_inferior): ... this.
4407 (gdbsim_stop): Rename to ...
4408 (gdbsim_interrupt): ... this.
4409 (gdbsim_cntrl_c): Adjust.
4410 (init_gdbsim_ops): Adjust.
4411 * remote.c (sync_remote_interrupt): Adjust comments.
4412 (remote_stop_as): Rename to ...
4413 (remote_interrupt_as): ... this.
4414 (remote_stop): Adjust comment.
4415 (remote_interrupt): New function.
4416 (init_remote_ops): Install remote_interrupt.
4417 * target.c (target_interrupt): New function.
4418 * target.h (struct target_ops) <to_interrupt>: New field.
4419 (target_interrupt): New declaration.
4420 * windows-nat.c (windows_stop): Rename to ...
4421 (windows_interrupt): ... this.
4422 * target-delegates.c: Regenerate.
4423
d55007b5
PA
44242015-08-07 Pedro Alves <palves@redhat.com>
4425
4426 * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
4427 threads" as alternative to "switching back to stepped thread".
4428
fbea99ea
PA
44292015-08-07 Pedro Alves <palves@redhat.com>
4430
4431 * NEWS: Mention "maint set/show target-non-stop".
4432 * breakpoint.c (update_global_location_list): Check
4433 target_is_non_stop_p instead of non_stop.
4434 * infcmd.c (attach_command_post_wait, attach_command): Likewise.
4435 * infrun.c (show_can_use_displaced_stepping)
4436 (can_use_displaced_stepping_p, start_step_over_inferior):
4437 Likewise.
4438 (internal_resume_ptid): New function.
4439 (resume): Use it.
4440 (proceed): Check target_is_non_stop_p instead of non_stop. If in
4441 all-stop mode but the target is always in non-stop mode, start all
4442 the other threads that are implicitly resumed too.
4443 (for_each_just_stopped_thread, fetch_inferior_event)
4444 (adjust_pc_after_break, stop_all_threads): Check
4445 target_is_non_stop_p instead of non_stop.
4446 (handle_inferior_event): Likewise. Handle detach-fork in all-stop
4447 with the target always in non-stop mode.
4448 (handle_signal_stop) <random signal>: Check target_is_non_stop_p
4449 instead of non_stop.
4450 (switch_back_to_stepped_thread): Check target_is_non_stop_p
4451 instead of non_stop.
4452 (keep_going_stepped_thread): Use internal_resume_ptid.
4453 (stop_waiting): If in all-stop mode, and the target is in non-stop
4454 mode, stop all threads.
4455 (keep_going_pass): Likewise, when starting a new in-line step-over
4456 sequence.
4457 * linux-nat.c (get_pending_status, select_event_lwp)
4458 (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
4459 target_is_non_stop_p instead of non_stop.
4460 (linux_nat_always_non_stop_p): New function.
4461 (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
4462 (linux_nat_add_target): Install linux_nat_always_non_stop_p.
4463 * target-delegates.c: Regenerate.
4464 * target.c (target_is_non_stop_p): New function.
4465 (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
4466 (maint_set_target_non_stop_command)
4467 (maint_show_target_non_stop_command): New functions.
4468 (_initilize_target): Install "maint set/show target-non-stop"
4469 commands.
4470 * target.h (struct target_ops) <to_always_non_stop_p>: New field.
4471 (target_non_stop_enabled): New declaration.
4472 (target_is_non_stop_p): New declaration.
4473
372316f1
PA
44742015-08-07 Pedro Alves <pedro@codesourcery.com>
4475
4476 * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
4477 has a pending status, return true.
4478 * gdbthread.h: Include target/waitstatus.h.
4479 (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
4480 stop_pc>: New fields.
4481 (struct thread_info) <resumed>: New field.
4482 (set_resumed): Declare.
4483 * infrun.c: Include "event-loop.h".
4484 (infrun_async_inferior_event_token, infrun_is_async): New globals.
4485 (infrun_async): New function.
4486 (clear_step_over_info): Add debug output.
4487 (displaced_step_in_progress_any_inferior): New function.
4488 (displaced_step_fixup): New returns int.
4489 (start_step_over): Handle in-line step-overs too. Assert the
4490 thread is marked resumed.
4491 (resume_cleanups): Clear the thread's resumed flag.
4492 (resume): Set the thread's resumed flag. Return early if the
4493 thread has a pending status. Allow stepping a breakpoint with no
4494 signal.
4495 (proceed): Adjust to check 'resumed' instead of 'executing'.
4496 (clear_proceed_status_thread): If the thread has a pending status,
4497 and that status is a finished step, discard the pending status.
4498 (clear_proceed_status): Don't clear step_over_info here.
4499 (random_pending_event_thread, do_target_wait): New functions.
4500 (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
4501 do_target_wait.
4502 (wait_one): New function.
4503 (THREAD_STOPPED_BY): New macro.
4504 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4505 (thread_stopped_by_hw_breakpoint): New functions.
4506 (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
4507 functions.
4508 (handle_inferior_event): Also call set_resumed(false) on all
4509 threads implicitly stopped by the event.
4510 (restart_threads, resumed_thread_with_pending_status): New
4511 functions.
4512 (finish_step_over): If we were doing an in-line step-over before,
4513 and no longer are after trying to start a new step-over, restart
4514 all threads. If we have multiple threads with pending events,
4515 save the current event and go through the event loop again.
4516 (handle_signal_stop): Return early if finish_step_over returns
4517 false.
4518 <random signal>: If we get a signal while stepping over a
4519 breakpoint in-line in non-stop mode, restart all threads. Clear
4520 step_over_info before delivering the signal.
4521 (keep_going_stepped_thread): Use internal_error instead of
4522 gdb_assert. Mark the thread as resumed.
4523 (keep_going_pass_signal): Assert the thread isn't already resumed.
4524 If some other thread is doing an in-line step-over, defer the
4525 resume. If we just started a new in-line step-over, stop all
4526 threads. Don't clear step_over_info.
4527 (infrun_async_inferior_event_handler): New function.
4528 (_initialize_infrun): Create async event handler with
4529 infrun_async_inferior_event_handler as callback.
4530 (infrun_async): New declaration.
4531 * target.c (target_async): New function.
4532 * target.h (target_async): Declare macro and readd as function
4533 declaration.
4534 * target/waitstatus.h (enum target_stop_reason)
4535 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
4536 * thread.c (new_thread): Clear the new waitstatus field.
4537 (set_resumed): New function.
4538
2ac7589c
PA
45392015-08-07 Pedro Alves <palves@redhat.com>
4540
4541 * infrun.c (keep_going_stepped_thread): New function, factored out
4542 from ...
4543 (switch_back_to_stepped_thread): ... here.
4544
8b061563
PA
45452015-08-07 Pedro Alves <palves@redhat.com>
4546
4547 * infrun.c (currently_stepping): Extend intro comment.
4548 * target.h (target_resume): Extend intro comment.
4549
1afd5965
PA
45502015-08-07 Pedro Alves <palves@redhat.com>
4551
4552 * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
4553 of inferior_ptid. If the stepped thread vanished, return 0
4554 instead of resuming here. Use reset_ecs. Print the prev_pc and
4555 the current stop_pc in log message. Clear trap_expected if the
4556 thread advanced. Don't pass currently_stepping to
4557 do_target_resume.
4558
4d9d9d04
PA
45592015-08-07 Pedro Alves <palves@redhat.com>
4560
4561 * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
4562 * infrun.c (struct execution_control_state): Move higher up in the
4563 file.
4564 (reset_ecs): New function.
4565 (start_step_over): Now returns int. Rewrite to use
4566 keep_going_pass_signal instead of manually starting a displaced step.
4567 (resume): Don't call set_running here. If displaced stepping
4568 can't start now, clear trap_expected.
4569 (find_thread_needs_step_over): Delete function.
4570 (proceed): Set up finish_thread_state_cleanup. Call set_running.
4571 If the current thread needs a step over, push it in the step-over
4572 chain. Don't set insert breakpoints nor call resume directly
4573 here. Instead rewrite to use start_step_over and
4574 keep_going_pass_signal.
4575 (finish_step_over): New function.
4576 (handle_signal_stop): Call finish_step_over instead of
4577 start_step_over.
4578 (switch_back_to_stepped_thread): If the event thread needs another
4579 step-over do that first. Use start_step_over.
4580 (keep_going_pass_signal): New function, factored out from ...
4581 (keep_going): ... here.
4582 (_initialize_infrun): Comment moved here.
4583 * thread.c (set_running_thread): New function.
4584 (set_running, finish_thread_state): Use set_running_thread.
4585
c2829269
PA
45862015-08-07 Pedro Alves <palves@redhat.com>
4587
4588 * gdbthread.h (struct thread_info) <step_over_prev,
4589 step_over_next>: New fields.
4590 (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
4591 (thread_step_over_chain_next, thread_is_in_step_over_chain): New
4592 declarations.
4593 * infrun.c (struct displaced_step_request): Delete.
4594 (struct displaced_step_inferior_state) <step_request_queue>:
4595 Delete field.
4596 (displaced_step_prepare): Assert that trap_expected is set. Use
4597 thread_step_over_chain_enqueue. Split starting a new displaced
4598 step to ...
4599 (start_step_over): ... this new function.
4600 (resume): Assert the thread isn't waiting for a step over already.
4601 (proceed): Assert the thread isn't waiting for a step over
4602 already.
4603 (infrun_thread_stop_requested): Adjust to remove threads from the
4604 embedded step-over chain.
4605 (handle_inferior_event) <fork/vfork>: Call start_step_over after
4606 displaced_step_fixup.
4607 (handle_signal_stop): Call start_step_over after
4608 displaced_step_fixup.
4609 * infrun.h (step_over_queue_head): New declaration.
4610 * thread.c (step_over_chain_enqueue, step_over_chain_remove)
4611 (thread_step_over_chain_next, thread_is_in_step_over_chain)
4612 (thread_step_over_chain_enqueue)
4613 (thread_step_over_chain_remove): New functions.
4614 (delete_thread_1): Remove thread from the step-over chain.
4615
6c4cfb24
PA
46162015-08-07 Pedro Alves <palves@redhat.com>
4617
4618 * infrun.c (thread_still_needs_step_over): Rename to ...
4619 (thread_still_needs_step_over_bp): ... this.
4620 (enum step_over_what): New.
4621 (thread_still_needs_step_over): Reimplement.
4622
567420d1
PA
46232015-08-07 Pedro Alves <palves@redhat.com>
4624
4625 * remote.c (remote_wait_as): If not waiting for a stop reply,
4626 return TARGET_WAITKIND_NO_RESUMED. If TARGET_WNOHANG is
4627 requested, don't block waiting forever.
4628
d8dd4d5f
PA
46292015-08-07 Pedro Alves <pedro@codesourcery.com>
4630
4631 * infrun.c (adjust_pc_after_break): Now takes thread_info and
4632 waitstatus pointers instead of an ecs. Adjust.
4633 (handle_inferior_event): Adjust caller.
4634
e1316e60
PA
46352015-08-07 Pedro Alves <palves@redhat.com>
4636
4637 * infrun.c (handle_inferior_event): If we get
4638 TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
4639 mode, mark all threads of the exiting process as not-executing.
4640 (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
4641 TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
4642 exiting process, if inferior_ptid still points at a process.
4643 * thread.c (struct current_thread_cleanup) <next>: New field.
4644 (current_thread_cleanup_chain): New global.
4645 (restore_current_thread_ptid_changed): New function.
4646 (restore_current_thread_cleanup_dtor): Remove the cleanup from the
4647 current_thread_cleanup_chain list.
4648 (make_cleanup_restore_current_thread): Add the cleanup data to the
4649 current_thread_cleanup_chain list.
4650 (_initialize_thread): Install restore_current_thread_ptid_changed
4651 as thread_ptid_changed observer.
4652
47e9c225
JB
46532015-08-07 Joel Brobecker <brobecker@adacore.com>
4654
4655 * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
4656 data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
4657 smaller than expected.
4658
06096720
AB
46592015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
4660
4661 * stack.c (get_frame_language): Moved ...
4662 * frame.c (get_frame_language): ... to here.
4663 * language.h (get_frame_language): Declaration moved to frame.h.
4664 * frame.h: Add language.h include, for language enum.
4665 (get_frame_language): Declaration moved from language.h.
4666 * language.c: Add frame.h include.
4667 * top.c: Add frame.h include.
4668 * symtab.h (struct obj_section): Declare.
4669 (struct cmd_list_element): Declare.
4670
7ff38b1c
AB
46712015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
4672
4673 * language.c (show_language_command): Find selected frame before
4674 asking for the language of that frame.
4675 (set_language_command): Likewise.
4676 * language.h (get_frame_language): Add frame parameter.
4677 * stack.c (get_frame_language): Add frame parameter, assert
4678 parameter is not NULL, update comment and reindent.
4679 * top.c (check_frame_language_change): Pass the selected frame
4680 into get_frame_language.
4681
da8c46d2
MM
46822015-08-07 Markus Metzger <markus.t.metzger@intel.com>
4683
4684 * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
4685 (pt_btrace_insn_flags): New.
4686 (ftrace_add_pt): Call pt_btrace_insn_flags.
4687 * btrace.h (btrace_insn_flag): New.
4688 (btrace_insn) <flags>: New.
4689 * record-btrace.c (btrace_insn_history): Print insn prefix.
4690 * NEWS: Announce it.
4691
5599c404
MM
46922015-08-07 Markus Metzger <markus.t.metzger@intel.com>
4693
4694 * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
4695 * configure: Regenerate.
4696
016a3251
DD
46972015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
4698
4699 * Makefile.in (LIBICONV): Define.
4700 (CLIBS): Add LIBICONV.
4701 * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
4702 * configure: Regenerate.
4703
aead7601
SM
47042015-08-06 Simon Marchi <simon.marchi@ericsson.com>
4705 Pedro Alves <palves@redhat.com>
4706
4707 * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
4708 (arm_set_abi): Likewise.
4709 * ax-general.c (ax_print): Likewise.
4710 * c-exp.y (exp : string_exp): Likewise.
4711 * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
4712 (do_compile_dwarf_expr_to_c): Likewise.
4713 * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
4714 Likewise.
4715 * dwarf2expr.c (execute_stack_op): Likewise.
4716 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
4717 (disassemble_dwarf_expression): Likewise.
4718 * dwarf2read.c (dwarf2_add_member_fn): Likewise.
4719 (read_array_order): Likewise.
4720 (abbrev_table_read_table): Likewise.
4721 (read_attribute_value): Likewise.
4722 (skip_unknown_opcode): Likewise.
4723 (dwarf_decode_macro_bytes): Likewise.
4724 (dwarf_decode_macros): Likewise.
4725 * eval.c (value_f90_subarray): Likewise.
4726 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
4727 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
4728 * infrun.c (handle_command): Likewise.
4729 * memory-map.c (memory_map_start_memory): Likewise.
4730 * osabi.c (set_osabi): Likewise.
4731 * parse.c (operator_length_standard): Likewise.
4732 * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
4733 single return point.
4734 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4735 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
4736 (gdbpy_lookup_global_symbol): Likewise.
4737 * record-full.c (record_full_restore): Likewise.
4738 * regcache.c (regcache_register_status): Likewise.
4739 (regcache_raw_read): Likewise.
4740 (regcache_cooked_read): Likewise.
4741 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
4742 * symtab.c (initialize_ordinary_address_classes): Likewise.
4743 * target-debug.h (target_debug_print_signals): Likewise.
4744 * utils.c (do_restore_current_language): Likewise.
4745
ca0a5f0b
CD
47462015-08-06 Clem Dickey <clemd@acm.org>
4747
4748 PR python/17136
4749 * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
4750
05d999b0
SM
47512015-08-06 Simon Marchi <simon.marchi@ericsson.com>
4752
4753 * complaints.c (enum complaint_series): Add newlines and remove
4754 out of date comment.
4755 (struct complaints) <series>: Change type to enum
4756 complaint_series and remove out of date comment.
4757 (symfile_complaint_hook): Use equivalent enum value
4758 ISOLATED_MESSAGE instead of 0.
4759
bf47e248
PA
47602015-08-06 Pedro Alves <palves@redhat.com>
4761
4762 * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
4763 returned > 0.
4764
b6b9ffcc
PL
47652015-08-06 Pierre Langlois <pierre.langlois@arm.com>
4766
4767 * common/agent.c (symbol_list) <required>: Remove.
4768
863d01bd
PA
47692015-08-06 Pedro Alves <palves@redhat.com>
4770
4771 * target/waitstatus.h (enum target_stop_reason)
4772 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
4773
0a39bb32
PA
47742015-08-05 Pedro Alves <palves@redhat.com>
4775 Joel Brobecker <brobecker@adacore.com>
4776
9d996aba 4777 * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
0a39bb32
PA
4778 <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
4779 case where BS->STOP is not set.
4780
260439cb
UW
47812015-08-05 Ulrich Weigand <uweigand@de.ibm.com>
4782
4783 * nat/gdb_thread_db.h: Add copyright header.
4784 Protect against multiple inclusion.
4785
d89fa914
YQ
47862015-08-05 Yao Qi <yao.qi@linaro.org>
4787
4788 * aarch64-linux-nat.c (get_thread_id): Remove.
4789 (debug_reg_change_callback): Call ptid_get_lwp instead of
4790 get_thread_id.
4791 (fetch_gregs_from_thread): Likewise.
4792 (store_gregs_to_thread): Likewise.
4793 (fetch_fpregs_from_thread): Likewise.
4794 (store_fpregs_to_thread): Likewise.
4795 (aarch64_linux_get_debug_reg_capacity): Likewise.
4796 * arm-linux-nat.c (get_thread_id): Remove.
4797 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
4798 * xtensa-linux-nat.c (get_thread_id): Remove.
4799 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
4800 * arm-linux-nat.c (get_thread_id): Remove.
4801 (GET_THREAD_ID): Remove.
4802 (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
4803 (store_fpregs, fetch_regs, store_regs): Likewise.
4804 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
4805 (fetch_vfp_regs, store_vfp_regs): Likewise.
4806 (arm_linux_read_description): Likewise.
4807 (arm_linux_get_hwbp_cap): Likewise.
4808 * xtensa-linux-nat.c (get_thread_id): Remove.
4809 (GET_THREAD_ID): Remove.
4810 (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
4811 GET_THREAD_ID.
4812
4efd80aa
CS
48132015-08-04 Ciro Santilli <ciro.santilli@gmail.com> (obvious patch)
4814
4815 * python/py-linetable.c: Fix case of Linetable to LineTable
4816 in docstrings and code comments.
4817 * python/py-symtab.c: Same.
4818
c6343a91
JK
48192015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4820
4821 * infcmd.c (signal_command): Call do_cleanups for args_chain.
4822
978b9495
JK
48232015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4824
4825 PR gdb/18767
4826 * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
4827 use.
4828
96e9210f
PA
48292015-08-04 Pedro Alves <palves@redhat.com>
4830
4831 * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
4832 (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
4833 (td_ta_event_addr_ftype, td_ta_set_event_ftype)
4834 (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
4835 (td_thr_validate_ftype, td_thr_get_info_ftype)
4836 (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
4837 (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
4838 New typedefs.
4839 * linux-thread-db.c (struct thread_db_info): Use new typedefs.
4840 (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
4841 local macros and use them instead of verbose_dlsym and dlsym
4842 calls.
4843
af60a1ef
SL
48442015-08-03 Sandra Loosemore <sandra@codesourcery.com>
4845
4846 * nios2-tdep.h: Include opcode/nios2.h here.
4847 (NIOS2_CDX_OPCODE_SIZE): New.
4848 (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
4849 * nios2-tdep.c: Don't include opcode/nios2.h here.
4850 (nios2_fetch_insn): For R2, try reading 2-byte instruction if
4851 4-byte read fails.
4852 (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
4853 (nios2_match_addi, nios2_match_orhi): Likewise.
4854 (nios2_match_stw, nios2_match_ldw): Likewise.
4855 (nios2_match_rdctl): Likewise.
4856 (nios2_match_stwm, nios2_match_ldwm): New.
4857 (nios2_match_branch): Add cases for R2 encodings.
4858 (nios2_match_jmpi, nios2_match_calli): Likewise.
4859 (nios2_match_jmpr, nios2_match_callr): Likewise.
4860 (nios2_match_break, nios2_match_trap): Likewise.
4861 (nios2_in_epilogue_p): Add R2 support.
4862 (nios2_analyze_prologue): Update comments. Recognize R2 CDX
4863 prologues.
4864 (nios2_breakpoint_from_pc): Handle R2 instructions.
4865 (nios2_get_next_pc): Likewise. Adjust call to
4866 tdep->syscall_next_pc.
4867 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
4868 Renamed from nios2_linux_rt_sigreturn_tramp_frame. Use
4869 instruction field macros instead of literal hex values.
4870 (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
4871 (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
4872 Use size field from OP instead of assuming all instructions
4873 are the same size.
4874 (nios2_linux_init_abi): Register appropriate unwinder for mach.
4875
1da03605
UW
48762015-08-03 Ulrich Weigand <uweigand@de.ibm.com>
4877
4878 * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
4879 variable warning with some compilers.
4880
8156fe7f
YQ
48812015-08-03 Yao Qi <yao.qi@linaro.org>
4882
4883 * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
4884 in comment. Replace "rw" with "type".
4885 (arm_linux_remove_watchpoint): Change type of "rw" to
4886 "enum target_hw_bp_type".
4887
835a09d9
PMR
48882015-08-02 Pierre-Marie de Rodat <derodat@adacore.com>
4889
4890 * alpha-mdebug-tdep.c (find_proc_desc): Update call to
4891 lookup_symbol.
4892 * ft32-tdep.c (ft32_skip_prologue): Likewise.
4893 * moxie-tdep.c (moxie_skip_prologue): Likewise.
4894 * mt-tdep.c (mt_skip_prologue): Likewise.
4895 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
4896
d12307c1
PMR
48972015-08-01 Pierre-Marie de Rodat <derodat@adacore.com>
4898
4899 * ada-exp.y (write_object_renaming): Replace struct
4900 ada_symbol_info with struct block_symbol. Update field
4901 references accordingly.
4902 (block_lookup, select_possible_type_sym): Likewise.
4903 (find_primitive_type): Likewise. Also update call to
4904 ada_lookup_symbol to extract the symbol itself.
4905 (write_var_or_type, write_name_assoc): Likewise.
4906 * ada-lang.h (struct ada_symbol_info): Remove.
4907 (ada_lookup_symbol_list): Replace struct ada_symbol_info with
4908 struct block_symbol.
4909 (ada_lookup_encoded_symbol, user_select_syms): Likewise.
4910 (ada_lookup_symbol): Return struct block_symbol instead of a
4911 mere symbol.
4912 * ada-lang.c (defns_collected): Replace struct ada_symbol_info
4913 with struct block_symbol.
4914 (resolve_subexp, ada_resolve_function, sort_choices,
4915 user_select_syms, is_nonfunction, add_defn_to_vec,
4916 num_defns_collected, defns_collected,
4917 symbols_are_identical_enums, remove_extra_symbols,
4918 remove_irrelevant_renamings, add_lookup_symbol_list_worker,
4919 ada_lookup_symbol_list, ada_iterate_over_symbols,
4920 ada_lookup_encoded_symbol, get_var_value): Likewise.
4921 (ada_lookup_symbol): Return a block_symbol instead of a mere
4922 symbol. Replace struct ada_symbol_info with struct
4923 block_symbol.
4924 (ada_lookup_symbol_nonlocal): Likewise.
4925 (standard_lookup): Make block passing explicit through
4926 lookup_symbol_in_language.
4927 * ada-tasks.c (get_tcb_types_info): Update the calls to
4928 lookup_symbol_in_language to extract the mere symbol out of the
4929 returned value.
4930 (ada_tasks_inferior_data_sniffer): Likewise.
4931 * ax-gdb.c (gen_static_field): Likewise for the call to
4932 lookup_symbol.
a5fdf78a 4933 (gen_maybe_namespace_elt): Deal with struct block_symbol from
d12307c1
PMR
4934 lookup functions.
4935 (gen_expr): Likewise.
4936 * c-exp.y: Likewise. Remove uses of block_found.
4937 (lex_one_token, classify_inner_name, c_print_token): Likewise.
4938 (classify_name): Likewise. Rename the "sym" local variable to
4939 "bsym".
4940 * c-valprint.c (print_unpacked_pointer): Likewise.
4941 * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
4942 "sym" parameter from struct symbol * to struct block_symbol.
4943 Use it to remove uses of block_found. Deal with struct
a5fdf78a 4944 block_symbol from lookup functions.
d12307c1
PMR
4945 (gcc_convert_symbol): Likewise. Update the call to
4946 convert_symbol_sym.
4947 * compile/compile-object-load.c (compile_object_load): Deal with
a5fdf78a 4948 struct block_symbol from lookup functions.
d12307c1
PMR
4949 * cp-namespace.c (cp_lookup_nested_symbol_1,
4950 cp_lookup_nested_symbol, cp_lookup_bare_symbol,
4951 cp_search_static_and_baseclasses,
4952 cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
4953 cp_lookup_symbol_imports_or_template,
4954 cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
4955 lookup_namespace_scope, cp_lookup_nonlocal,
a5fdf78a
PMR
4956 find_symbol_in_baseclass): Return struct block_symbol instead of
4957 mere symbols and deal with struct block_symbol from lookup
d12307c1
PMR
4958 functions.
4959 * cp-support.c (inspect_type, replace_typedefs,
a5fdf78a 4960 cp_lookup_rtti_type): Deal with struct block_symbol from
d12307c1
PMR
4961 lookup functions.
4962 * cp-support.h (cp_lookup_symbol_nonlocal,
4963 cp_lookup_symbol_from_namespace,
4964 cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
a5fdf78a 4965 Return struct block_symbol instead of mere symbols.
d12307c1
PMR
4966 * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
4967 push_module_name):
a5fdf78a 4968 Deal with struct block_symbol from lookup functions. Remove
d12307c1
PMR
4969 uses of block_found.
4970 * eval.c (evaluate_subexp_standard): Update call to
4971 cp_lookup_symbol_namespace.
a5fdf78a
PMR
4972 * f-exp.y: Deal with struct block_symbol from lookup functions.
4973 Remove uses of block_found.
d12307c1
PMR
4974 (yylex): Likewise.
4975 * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
4976 lookup_enum, lookup_template_type, check_typedef): Deal with
a5fdf78a 4977 struct block_symbol from lookup functions.
d12307c1
PMR
4978 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
4979 * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
4980 (gdbscm_lookup_global_symbol): Likewise.
4981 * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
4982 * go-exp.y: Likewise. Remove uses of block_found.
4983 (package_name_p, classify_packaged_name, classify_name):
4984 Likewise.
4985 * infrun.c (insert_exception_resume_breakpoint): Likewise.
4986 * jv-exp.y (push_variable): Likewise.
4987 * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
4988 * language.c (language_bool_type): Likewise.
4989 * language.h (struct language_defn): Update
a5fdf78a
PMR
4990 la_lookup_symbol_nonlocal to return a struct block_symbol rather
4991 than a mere symbol.
4992 * linespec.c (find_label_symbols): Deal with struct block_symbol
4993 from lookup functions.
d12307c1
PMR
4994 * m2-exp.y: Likewise. Remove uses of block_found.
4995 (yylex): Likewise.
4996 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
4997 * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
4998 * p-exp.y: Likewise. Remove uses of block_found.
4999 (yylex): Likewise.
5000 * p-valprint.c (pascal_val_print): Likewise.
5001 * parse.c (write_dollar_variable): Likewise. Remove uses of
5002 block_found.
5003 * parser-defs.h (struct symtoken): Turn the SYM field into a
a5fdf78a
PMR
5004 struct block_symbol.
5005 * printcmd.c (address_info): Deal with struct block_symbol from
5006 lookup functions.
d12307c1
PMR
5007 * python/py-frame.c (frapy_read_var): Likewise.
5008 * python/py-symbol.c (gdbpy_lookup_symbol,
5009 gdbpy_lookup_global_symbol): Likewise.
5010 * skip.c (skip_function_command): Likewise.
5011 * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
a5fdf78a 5012 block_symbol instead of a mere symbol.
d12307c1
PMR
5013 * solib-spu.c (spu_lookup_lib_symbol): Likewise.
5014 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
5015 * solib.c (solib_global_lookup): Likewise.
5016 * solist.h (solib_global_lookup): Likewise.
5017 (struct target_so_ops): Update lookup_lib_global_symbol to
a5fdf78a
PMR
5018 return a struct block_symbol rather than a mere symbol.
5019 * source.c (select_source_symtab): Deal with struct block_symbol
5020 from lookup functions.
d12307c1
PMR
5021 * stack.c (print_frame_args, iterate_over_block_arg_vars):
5022 Likewise.
5023 * symfile.c (set_initial_language): Likewise.
5024 * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
a5fdf78a 5025 block_symbol.
d12307c1
PMR
5026 (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
5027 (struct symbol_cache_slot): Turn the FOUND field into a struct
a5fdf78a 5028 block_symbol.
d12307c1 5029 (block_found): Remove.
a5fdf78a 5030 (eq_symbol_entry): Update to deal with struct block_symbol in
d12307c1 5031 cache slots.
a5fdf78a
PMR
5032 (symbol_cache_lookup): Return a struct block_symbol rather than
5033 a mere symbol.
d12307c1
PMR
5034 (symbol_cache_mark_found): Add a BLOCK parameter to fill
5035 appropriately the cache slots. Update callers.
5036 (symbol_cache_dump): Update cache slots handling to the type
5037 change.
5038 (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
5039 lookup_symbol_aux, lookup_local_symbol,
5040 lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
5041 lookup_symbol_in_objfile_symtabs,
5042 lookup_symbol_in_objfile_from_linkage_name,
5043 lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
5044 lookup_symbol_in_static_block, lookup_static_symbol,
5045 lookup_global_symbol):
a5fdf78a
PMR
5046 Return a struct block_symbol rather than a mere symbol. Deal
5047 with struct block_symbol from other lookup functions. Remove
d12307c1
PMR
5048 uses of block_found.
5049 (lookup_symbol_in_block): Remove uses of block_found.
5050 (struct global_sym_lookup_data): Turn the RESULT field into a
a5fdf78a 5051 struct block_symbol.
d12307c1
PMR
5052 (lookup_symbol_global_iterator_cb): Update references to the
5053 RESULT field.
a5fdf78a 5054 (search_symbols): Deal with struct block_symbol from lookup
d12307c1 5055 functions.
a5fdf78a 5056 * symtab.h (struct block_symbol): New structure.
d12307c1
PMR
5057 (block_found): Remove.
5058 (lookup_symbol_in_language, lookup_symbol,
5059 basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
a5fdf78a
PMR
5060 lookup_static_symbol, lookup_global_symbol, lookup_language_this,
5061 lookup_global_symbol_from_objfile): Return a struct block_symbol
5062 rather than just a mere symbol. Update comments to remove
5063 mentions of block_found.
d12307c1
PMR
5064 * valops.c (find_function_in_inferior,
5065 value_struct_elt_for_reference, value_maybe_namespace_elt,
a5fdf78a 5066 value_of_this): Deal with struct block_symbol from lookup
d12307c1
PMR
5067 functions.
5068 * value.c (value_static_field, value_fn_field): Likewise.
5069
b1c59ddc
SM
50702015-07-31 Simon Marchi <simon.marchi@ericsson.com>
5071
5072 * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
5073 instead of integer.
5074
f486487f 50752015-07-31 Simon Marchi <simon.marchi@ericsson.com>
84da3f0c 5076 Pedro Alves <palves@redhat.com>
f486487f
SM
5077
5078 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
5079 type or value instead of integer.
5080 (aarch64_linux_insert_watchpoint): Likewise.
5081 (aarch64_linux_remove_watchpoint): Likewise.
5082 * ada-lang.c (ada_op_print_tab): Likewise.
5083 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
5084 (amd64_linux_syscall_record_common): Likewise.
5085 * arch-utils.c (target_byte_order_user): Likewise.
5086 (default_byte_order): Likewise.
5087 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
5088 (arm_linux_get_hwbp_type): Likewise.
5089 (arm_linux_hw_watchpoint_initialize): Likewise.
5090 (arm_linux_insert_watchpoint): Likewise.
5091 * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
5092 (arm_linux_syscall_record): Likewise.
5093 * breakpoint.c (update_watchpoint): Likewise.
5094 (breakpoint_here_p): Likewise.
5095 (bpstat_print): Likewise.
5096 (enable_breakpoint_disp): Likewise.
5097 * c-lang.c (c_op_print_tab): Likewise.
5098 * cli/cli-decode.c (add_info_alias): Likewise.
5099 * d-lang.c (d_op_print_tab): Likewise.
5100 * eval.c (evaluate_subexp_standard): Likewise.
5101 * f-exp.y (dot_ops): Likewise.
5102 (f77_keywords): Likewise.
5103 * f-lang.c (f_op_print_tab): Likewise.
5104 * go-lang.c (go_op_print_tab): Likewise.
5105 * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
5106 * guile/scm-cmd.c (gdbscm_make_command): Likewise.
5107 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5108 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
5109 * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
5110 (struct scm_from_stringn_data): Likewise.
5111 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5112 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
5113 (ia64_linux_remove_watchpoint): Likewise.
5114 (ia64_linux_can_use_hw_breakpoint): Likewise.
5115 * infrun.c (print_stop_event): Likewise.
5116 * jv-lang.c (java_op_print_tab): Likewise.
5117 * linux-nat.c (linux_proc_xfer_partial): Likewise.
5118 * linux-nat.h (struct lwp_info): Likewise.
5119 * linux-thread-db.c (enable_thread_event): Likewise.
5120 * m2-lang.c (m2_op_print_tab): Likewise.
5121 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
5122 (mi_cmd_stack_list_variables): Likewise.
5123 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
5124 * mi/mi-out.c (mi_table_begin): Likewise.
5125 (mi_table_header): Likewise.
5126 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
5127 (mips_linux_insert_watchpoint): Likewise.
5128 (mips_linux_remove_watchpoint): Likewise.
5129 * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
5130 * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
5131 (mips_linux_watch_type_to_irw): Likewise.
5132 * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5133 (procfs_insert_hw_watchpoint): Likewise.
5134 (procfs_remove_hw_watchpoint): Likewise.
5135 (procfs_hw_watchpoint): Likewise.
5136 (procfs_can_use_hw_breakpoint): Likewise.
5137 (procfs_remove_hw_watchpoint): Likewise.
5138 (procfs_insert_hw_watchpoint): Likewise.
5139 * p-lang.c (pascal_op_print_tab): Likewise.
5140 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
5141 * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
5142 * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
5143 * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5144 (procfs_insert_watchpoint): Likewise.
5145 (procfs_remove_watchpoint): Likewise.
5146 * psymtab.c (recursively_search_psymtabs): Likewise.
5147 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
5148 (m32r_insert_watchpoint): Likewise.
5149 * remote-mips.c (mips_can_use_watchpoint): Likewise.
5150 (mips_insert_watchpoint): Likewise.
5151 (mips_remove_watchpoint): Likewise.
5152 * remote.c (watchpoint_to_Z_packet): Likewise.
5153 (remote_insert_watchpoint): Likewise.
5154 (remote_remove_watchpoint): Likewise.
5155 (remote_check_watch_resources): Likewise.
5156 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
5157 (s390_remove_watchpoint): Likewise.
5158 (s390_can_use_hw_breakpoint): Likewise.
5159 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5160 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
5161 * target.h (struct target_ops): Likewise.
5162 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
5163 * ui-out.c (struct ui_out_hdr): Likewise.
5164 (append_header_to_list): Likewise.
5165 (get_next_header): Likewise.
5166 (verify_field): Likewise.
5167 (ui_out_begin): Likewise.
5168 (ui_out_field_int): Likewise.
5169 (ui_out_field_fmt_int): Likewise.
5170 (ui_out_field_skip): Likewise.
5171 (ui_out_field_string): Likewise.
5172 (ui_out_field_fmt): Likewise.
5173 * varobj.c (new_variable): Likewise.
5174 * x86-nat.c (x86_insert_watchpoint): Likewise.
5175 (x86_remove_watchpoint): Likewise.
5176 (x86_can_use_hw_breakpoint): Likewise.
5177 * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
5178 * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
5179 previously anonymous enumeration type..
5180 * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
5181 value.
5182 * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
5183 (target_debug_print_enum_bptype): New.
5184 * target-delegates.c: Regenerate.
5185
e1b5381f
SL
51862015-07-30 Sandra Loosemore <sandra@codesourcery.com>
5187
5188 * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
5189 already says and disallow non-stack memory writes in the prologue.
5190
9aaf8e3a
SL
51912015-07-30 Sandra Loosemore <sandra@codesourcery.com>
5192
5193 * nios2-tdep.c (nios2_analyze_prologue): Update comments to
5194 reflect how current GCC emits stack overflow checks. Match
5195 both trap and break instructions for backward compatbility.
5196 Disallow other trap and break instructions in the prologue.
5197
69dde7dc
PA
51982015-07-30 Pedro Alves <palves@redhat.com>
5199
5200 PR threads/18600
5201 * linux-nat.c (wait_lwp): Report to the core when thread group
5202 leader exits.
5203
4dd63d48
PA
52042015-07-30 Pedro Alves <palves@redhat.com>
5205 Simon Marchi <simon.marchi@ericsson.com>
5206
5207 PR threads/18600
5208 * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
5209 mark the new thread as resumed. Remove STOPPING parameter.
5210 (wait_lwp): Adjust call to linux_handle_extended_wait.
5211 (linux_nat_filter_event): Adjust call to
5212 linux_handle_extended_wait.
5213 (resume_stopped_resumed_lwps): Add debug output.
5214
6b940e6a
PL
52152015-07-30 Pierre Langlois <pierre.langlois@arm.com>
5216
5217 * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
5218 isize argument.
5219 * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
5220 * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
5221 gdbarch_fast_tracepoint_valid_at.
5222 * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
5223 * gdbarch.h: Regenerate.
5224 * gdbarch.c: Regenerate.
5225 * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
5226 argument. Do not set it.
5227 * remote.c (remote_download_tracepoint): Adjust call to
5228 gdbarch_fast_tracepoint_valid_at. Call gdb_insn_length to get
5229 the instruction length.
5230
ec741292
YQ
52312015-07-30 Yao Qi <yao.qi@linaro.org>
5232
5233 * arm-tdep.h (enum gdb_regnum): Move it to ...
5234 * arch/arm.h: ... here. New file.
5235 * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
5236
0ea6402e
PL
52372015-07-30 Pierre Langlois <pierre.langlois@arm.com>
5238
5239 * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
5240 Change its type to int *.
5241 (decode_br): Rename link argument to is_blr. Change its type to
5242 int *.
5243 (decode_cb): Rename op argument to is_cbnz. Change its type to
5244 int *.
5245 (decode_tb): Rename op argument to is_tbnz. Change its type to
5246 int *. Set is_tbnz to either 1 or 0.
5247 (aarch64_analyze_prologue): Change type of is_link to int. Add
5248 new variables is_cbnz and is_tbnz. Adjust call to
5249 aarch64_decode_cb and aarch64_decode_tb.
5250
aa58a496
SM
52512015-07-29 Simon Marchi <simon.marchi@ericsson.com>
5252
5253 * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
5254 parameter.
5255 (mips_linux_new_thread): Likewise.
5256 * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
5257
18206ca3
PP
52582015-07-29 Patrick Palka <patrick@parcs.ath.cx>
5259
5260 * top.c: Include "tui/tui.h".
5261 (undo_terminal_modifications_before_exit): New static function.
5262 (quit_force): Use it.
5263
7afa63c6
PP
52642015-07-29 Patrick Palka <patrick@parcs.ath.cx>
5265
5266 * target.c (terminal_state): Initialize to terminal_is_ours.
5267
cc9f16aa
YQ
52682015-07-29 Yao Qi <yao.qi@linaro.org>
5269
5270 PR record/18691
5271 * dcache.c (dcache_read_memory_partial): Call
5272 raw_memory_xfer_partial.
5273 * target.c (raw_memory_xfer_partial): Make it non-static.
5274 * target.h (raw_memory_xfer_partial): Declare.
5275
3ae385af
SM
52762015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5277
5278 * c-valprint.c (c_val_print_array): Consider addressable memory
5279 unit size.
5280 (c_val_print_ptr): Likewise.
5281 (c_val_print_int): Likewise.
5282 * findvar.c (read_frame_register_value): Likewise.
5283 * valarith.c (find_size_for_pointer_math): Likewise.
5284 (value_ptrdiff): Likewise.
5285 (value_subscripted_rvalue): Likewise.
5286 * valops.c (read_value_memory): Likewise (and rename variables).
5287 (value_assign): Likewise.
5288 (value_repeat): Likewise.
5289 (value_array): Likewise.
5290 (value_slice): Likewise.
5291 * valprint.c (generic_val_print_ptr): Likewise.
5292 (generic_val_print_enum): Likewise.
5293 (generic_val_print_bool): Likewise.
5294 (generic_val_print_int): Likewise.
5295 (generic_val_print_char): Likewise.
5296 (generic_val_print_float): Likewise.
5297 (generic_val_print_decfloat): Likewise.
5298 (generic_val_print_complex): Likewise.
5299 (val_print_scalar_formatted): Likewise.
5300 (val_print_array_elements): Likewise.
5301 * value.c (set_value_parent): Likewise.
5302 (value_contents_copy_raw): Likewise.
5303 (set_internalvar_component): Likewise.
5304 (value_primitive_field): Likewise.
5305 (value_fetch_lazy): Likewise.
5306 * value.h (read_value_memory): Update comment.
5307
e512cdbd
SM
53082015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5309
5310 * value.c (get_value_arch): New function.
5311 * value.h (get_value_arch): New declaration.
5312
3723fda8
SM
53132015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5314
5315 * value.c (struct value): Update comments.
5316
2e056931
SM
53172015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5318
5319 * gdbtypes.c (type_length_units): New function.
5320 * gdbtypes.h (type_length_units): New declaration.
5321 (struct type) <length>: Update comment.
5322
0c87c0bf
SM
53232015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5324
5325 * valprint.c (generic_val_print): Factor out complex
5326 printing code to ...
5327 (generic_val_print_complex): ... this new function.
5328
9550ae5e
SM
53292015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5330
5331 * valprint.c (generic_val_print): Factor out decfloat
5332 printing code to ...
5333 (generic_val_print_decfloat): ... this new function.
5334
7784724b
SM
53352015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5336
5337 * valprint.c (generic_val_print): Factor out float
5338 printing code to ...
5339 (generic_val_print_float): ... this new function.
5340
385f5aff
SM
53412015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5342
5343 * valprint.c (generic_val_print): Factor out char
5344 printing code to ...
5345 (generic_val_print_char): ... this new function.
5346
b21b6342
SM
53472015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5348
5349 * valprint.c (generic_val_print): Factor out integer
5350 printing code to ...
5351 (generic_val_print_int): ... this new function.
5352
e5bead4b
SM
53532015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5354
5355 * valprint.c (generic_val_print): Factor out bool
5356 printing code to ...
5357 (generic_val_print_bool): ... this new function.
5358
4a8c372f
SM
53592015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5360
5361 * valprint.c (generic_val_print): Factor out function/method
5362 printing code to ...
5363 (generic_val_print_func): ... this new function.
5364
d93880bd
SM
53652015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5366
5367 * valprint.c (generic_val_print): Factor out flags
5368 printing code to ...
5369 (generic_val_print_flags): ... this new function.
5370
ef0bc0dd
SM
53712015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5372
5373 * valprint.c (generic_val_print): Factor out enum
5374 printing code to ...
5375 (generic_val_print_enum): ... this new function.
5376
fe43fede
SM
53772015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5378
5379 * valprint.c (generic_val_print): Factor out reference
5380 printing code to ...
5381 (generic_val_print_ref): ... this new function.
5382
45000ea2
SM
53832015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5384
5385 * valprint.c (generic_val_print): Factor out memberptr
5386 printing code to ...
5387 (generic_val_print_memberptr): ... this new function.
5388
81eb921a
SM
53892015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5390
5391 * valprint.c (generic_val_print): Factor out pointer
5392 printing code to ...
5393 (generic_val_print_ptr): ... this new function.
5394
557dbe8a
SM
53952015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5396
5397 * valprint.c (generic_val_print): Factor out array
5398 printing code to ...
5399 (generic_val_print_array): ... this new function.
5400
9f436164
SM
54012015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5402
5403 * valprint.c (generic_val_print): Factor out
5404 print_unpacked_pointer code to ...
5405 (print_unpacked_pointer): ... this new function.
5406
077836f7
PP
54072015-07-27 Patrick Palka <patrick@parcs.ath.cx>
5408
5409 * event-top.c (handle_sigterm): Don't inspect
5410 target_can_async_p. Always set the quit flag and always mark
5411 the async signal handler.
5412
3a60804f
YQ
54132015-07-27 Yao Qi <yao.qi@linaro.org>
5414
5415 * Makefile.in (REMOTE_EXAMPLES): Remove it.
5416
c9f35b34
KB
54172015-07-25 Kevin Buettner <kevinb@redhat.com>
5418
5419 * remote.c (read_ptid): Return null_ptid when no thread id
5420 is found.
5421 (remote_current_thread): Add log warning for malformed
5422 qC reply.
5423 (remote_start_remote): Add log warning when current thread
5424 not found.
5425
2b4cab86
PA
54262015-07-24 Pedro Alves <palves@redhat.com>
5427
5428 * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
5429 (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
5430 forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
5431
77598427
PA
54322015-07-24 Pedro Alves <palves@redhat.com>
5433
5434 PR gdb/18717
5435 * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
5436 is resumed, and extend the debug log.
5437
fe23c31f
PA
54382015-07-24 Pedro Alves <palves@redhat.com>
5439
5440 * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
5441
5826e159
PA
54422015-07-24 Pedro Alves <palves@redhat.com>
5443
5444 * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
5445 sys/ptrace.h.
5446 * alpha-linux-nat.c: Likewise.
5447 * amd64-linux-nat.c: Likewise.
5448 * arm-linux-nat.c: Likewise.
5449 * hppa-linux-nat.c: Likewise.
5450 * i386-linux-nat.c: Likewise.
5451 * ia64-linux-nat.c: Likewise.
5452 * linux-fork.c: Likewise.
5453 * linux-nat.c: Likewise.
5454 * m32r-linux-nat.c: Likewise.
5455 * m68klinux-nat.c: Likewise.
5456 * mips-linux-nat.c: Likewise.
5457 * nat/linux-btrace.c: Likewise.
5458 * nat/linux-ptrace.c: Likewise.
5459 * nat/linux-ptrace.h
5460 * nat/mips-linux-watch.c: Likewise.
5461 * nat/x86-linux-dregs.c: Likewise.
5462 * ppc-linux-nat.c: Likewise.
5463 * s390-linux-nat.c: Likewise.
5464 * spu-linux-nat.c: Likewise.
5465 * tilegx-linux-nat.c: Likewise.
5466 * x86-linux-nat.c: Likewise.
5467 * xtensa-linux-nat.c: Likewise.
5468
54019719
PA
54692015-07-24 Pedro Alves <palves@redhat.com>
5470
5471 * ptrace.m4 (ptrace tests): Test in C++ mode. Try with 'enum
5472 __ptrace_request as first parameter type instead of int.
5473 (PTRACE_TYPE_ARG1): Define.
5474 * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
5475 that casts first argument to PTRACE_TYPE_ARG1.
5476 * config.in: Regenerate.
5477 * configure: Regenerate.
5478
e3790375
PA
54792015-07-24 Pedro Alves <palves@redhat.com>
5480
5481 * gdb_ptrace.h: Move ...
5482 * nat/gdb_ptrace.h: ... here.
5483 * inf-ptrace.c: Adjust.
5484
eb7aa561
PA
54852015-07-24 Pedro Alves <palves@redhat.com>
5486
5487 * acinclude.m4: Include ptrace.m4.
5488 * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
5489 * ptrace.m4: ... to this new file.
5490
cc12ce38
DE
54912015-07-23 Doug Evans <dje@google.com>
5492
5493 * dwarf2read.c (dwarf2_per_cu_data): Add comment.
5494 (load_cu): Handle dummy CUs.
5495 (dw2_do_instantiate_symtab, process_queuef): Ditto.
5496 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
5497
7b849db4
CS
54982015-07-23 Ciro Santilli <ciro.santilli@gmail.com> (tiny patch)
5499
5500 * py-linetable.c (ltpy_get_all_source_lines): Adjust function
5501 documentation to say that it returns a list rather than
5502 a FrozenSet.
5503 (linetable_object_methods): Update the docstring of the
5504 "source_line" entry.
5505
d0d84780
PMR
55062015-07-23 Pierre-Marie de Rodat <derodat@adacore.com>
5507
5508 * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
5509 type to the recursive call instead of the original (maybe
5510 TYPE_CODE_TYPEDEF) type.
5511
c2fbdc59
YQ
55122015-07-23 Yao Qi <yao.qi@linaro.org>
5513
5514 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
5515 TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
5516 If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
5517
af1b22f3
YQ
55182015-07-21 Yao Qi <yao.qi@linaro.org>
5519
5520 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
5521 Move it to nat/aarch64-linux-hw-point.c.
5522 (aarch64_linux_child_post_startup_inferior): Update.
5523 * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
5524 New function.
5525 * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
5526 Declare it.
5527
40e050d2
MM
55282015-07-21 Markus Metzger <markus.t.metzger@intel.com>
5529
5530 * common/btrace-common.c (btrace_data_append): Change case label.
5531
3675a06a
YQ
55322015-07-20 Yao Qi <yao.qi@linaro.org>
5533
5534 * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
5535 Re-indent the code.
5536 * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
5537 "unsigned long long".
5538
b4e1fd61
KB
55392015-07-18 Kevin Buettner <kevinb@redhat.com>
5540
5541 * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
5542 to be set for SEC_ALLOC sections too.
5543
554717a3
YQ
55442015-07-17 Yao Qi <yao.qi@linaro.org>
5545
5546 * Makefile.in (HFILES_NO_SRCDIR): Add
5547 nat/aarch64-linux-hw-point.h.
5548 (aarch64-linux-hw-point.o): New rule.
5549 * nat/aarch64-linux-hw-point.h: New file.
5550 * nat/aarch64-linux-hw-point.c: New file.
5551 * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
5552 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
5553 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
5554 (AARCH64_HWP_ALIGNMENT): Likewise.
5555 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
5556 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
5557 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
5558 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
5559 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
5560 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
5561 (struct aarch64_debug_reg_state): Likewise.
5562 (struct arch_lwp_info): Likewise.
5563 (aarch64_linux_set_debug_regs): Likewise.
5564 (aarch64_notify_debug_reg_change): Remove static.
5565 (aarch64_align_watchpoint): Likewise.
5566 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
5567 (aarch64_watchpoint_length): Likewise.
5568 (aarch64_point_encode_ctrl_reg): Likewise
5569 (aarch64_point_is_aligned): Likewise.
5570 (aarch64_dr_state_insert_one_point): Likewise.
5571 (aarch64_dr_state_remove_one_point): Likewise.
5572 (aarch64_handle_breakpoint): Likewise.
5573 (aarch64_handle_aligned_watchpoint): Likewise.
5574 (aarch64_handle_unaligned_watchpoint): Likewise.
5575 (aarch64_handle_watchpoint): Likewise.
5576 * config/aarch64/linux.mh (NAT_FILE): Add
5577 aarch64-linux-hw-point.o.
5578
c67ca4de
YQ
55792015-07-17 Yao Qi <yao.qi@linaro.org>
5580
5581 * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
5582 state and don't call aarch64_get_debug_reg_state. All callers
5583 update.
5584 (aarch64_linux_insert_hw_breakpoint): Call
5585 aarch64_get_debug_reg_state earlier.
5586 (aarch64_linux_remove_hw_breakpoint): Likewise.
5587 (aarch64_handle_aligned_watchpoint): Add argument state and
5588 don't call aarch64_get_debug_reg_state. All callers update.
5589 (aarch64_handle_unaligned_watchpoint): Likewise.
5590 (aarch64_handle_watchpoint): Add argument state.
5591 (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
5592 earlier.
5593 (aarch64_linux_remove_watchpoint): Likewise.
5594
25abf979
YQ
55952015-07-17 Yao Qi <yao.qi@linaro.org>
5596
5597 * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
5598 debug_printf.
5599 (aarch64_handle_unaligned_watchpoint): Likewise.
5600
2ecd81c2
YQ
56012015-07-17 Yao Qi <yao.qi@linaro.org>
5602
5603 * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
5604 argument type's type to 'enum target_hw_bp_type'.
5605 (aarch64_dr_state_remove_one_point): Likewise.
5606 (aarch64_handle_breakpoint): Likewise.
5607 (aarch64_linux_insert_hw_breakpoint): Likewise.
5608 (aarch64_linux_remove_hw_breakpoint): Likewise.
5609 (aarch64_handle_aligned_watchpoint): Likewise.
5610
e53b6938
YQ
56112015-07-17 Yao Qi <yao.qi@linaro.org>
5612
5613 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
5614 ptid_get_pid instead of get_thread_id.
5615
6a49a997
YQ
56162015-07-17 Yao Qi <yao.qi@linaro.org>
5617
5618 * remote.c (get_current_thread): Initialise ptid to null_ptid.
5619 (add_current_inferior_and_thread): Don't initialise ptid.
5620
4bcddace
PL
56212015-07-16 Pierre Langlois <pierre.langlois@arm.com>
5622
5623 * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
5624 unavailable if invalid.
5625
db1ff28b
JK
56262015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5627
5628 Revert the previous 6 commits:
5629 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
5630 Move gdb_regex* to common/
5631 Prepare linux_find_memory_regions_full & co. for move
5632 Move linux_find_memory_regions_full & co.
5633 gdbserver build-id attribute generator
5634 Validate symbol file using build-id
5635
ca5268b6
JK
56362015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5637 Jan Kratochvil <jan.kratochvil@redhat.com>
5638
5639 Validate symbol file using build-id.
5640 * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
5641 and 'show validate-build-id'. Add build-id attribute.
5642 * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
5643 * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
5644 * solib-frv.c (_initialize_frv_solib): Ditto.
5645 * solib-spu.c (set_spu_solib_ops): Ditto.
5646 * solib-svr4.c: Include rsp-low.h.
5647 (NOTE_GNU_BUILD_ID_NAME): New define.
5648 (svr4_validate): New function.
5649 (svr4_copy_library_list): Duplicate field build_id.
5650 (library_list_start_library): Parse 'build-id' attribute.
5651 (svr4_library_attributes): Add 'build-id' attribute.
5652 (_initialize_svr4_solib): Assign validate value.
5653 * solib-target.c (solib.h): Include.
5654 (_initialize_solib_target): Assign validate value.
5655 * solib.c (validate_build_id, show_validate_build_id): New.
5656 (solib_map_sections): Use ops->validate.
5657 (clear_so): Free build_id.
5658 (default_solib_validate): New function.
5659 (_initialize_solib): Add "validate-build-id".
5660 * solib.h (default_solib_validate): New declaration.
5661 * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
5662 (target_so_ops): New field 'validate'.
5663
700ca40f
JK
56642015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5665 Jan Kratochvil <jan.kratochvil@redhat.com>
5666
5667 gdbserver build-id attribute generator.
5668 * features/library-list-svr4.dtd (library-list-svr4): New
5669 'build-id' attribute.
5670
9904185c
JK
56712015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5672 Jan Kratochvil <jan.kratochvil@redhat.com>
5673
5674 Move linux_find_memory_regions_full & co.
5675 * linux-tdep.c (nat/linux-maps.h): Include.
5676 (gdb_regex.h): Remove the include.
5677 (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
5678 (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
5679 (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
5680 (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
5681 * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
5682 and target/target.h.
5683 (struct smaps_vmflags, read_mapping, decode_vmflags)
5684 (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
5685 (linux_find_memory_regions_full): Move from linux-tdep.c.
5686 * nat/linux-maps.h (read_mapping): New declaration.
5687 (linux_find_memory_region_ftype, enum filterflags): Moved from
5688 linux-tdep.c.
5689 (linux_find_memory_regions_full): New declaration.
5690 * target.c (target/target-utils.h): Include.
5691 (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
5692 (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
5693 definitions to target/target-utils.c.
5694 * target.h (target_fileio_read_stralloc): Move it to target/target.h.
5695 * target/target-utils.c (read_alloc, read_stralloc): Move definitions
5696 from target.c.
5697 * target/target-utils.h (read_alloc_pread_ftype): New typedef.
5698 (read_alloc): New declaration.
5699 (read_stralloc_func_ftype): New typedef.
5700 (read_stralloc): New declaration.
5701 * target/target.h (target_fileio_read_stralloc): Move it from target.h.
5702
f7af1fcd
JK
57032015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5704 Jan Kratochvil <jan.kratochvil@redhat.com>
5705
5706 Prepare linux_find_memory_regions_full & co. for move.
5707 * linux-tdep.c (linux_find_memory_region_ftype): Comment.
5708 (linux_find_memory_regions_full): Change signature and prepare
5709 for moving to linux-maps.
5710 (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
5711 (linux_find_memory_regions_thunk): New.
5712 (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
5713 (linux_find_memory_regions_gdb): New.
5714 (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
5715 (linux_make_mappings_corefile_notes): Use
5716 linux_find_memory_regions_gdb.
5717 * target.c (read_alloc_pread_ftype): New typedef.
5718 (target_fileio_read_alloc_1_pread): New function.
5719 (read_alloc): Refactor from target_fileio_read_alloc_1.
5720 (read_stralloc_func_ftype): New typedef.
5721 (target_fileio_read_alloc_1): New implementation. Use read_alloc.
5722 (read_stralloc): Refactored from target_fileio_read_stralloc.
5723 (target_fileio_read_stralloc): New implementation, use read_stralloc.
5724
6e5b4429
JK
57252015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5726
5727 * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
5728 common/gdb_regex.h.
5729 (COMMON_OBS): Add gdb_regex.o.
5730 (gdb_regex.o): New.
5731 * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
5732 --without-included-regex and USE_INCLUDED_REGEX.
5733 * common/gdb_regex.c: New file from utils.c functions.
5734 * common/gdb_regex.h: Move it here from gdb_regex.h, update include
5735 file wrapping define name.
5736 * configure: Rebuilt.
5737 * configure.ac (gdb_use_included_regex, --without-included-regex)
5738 (USE_INCLUDED_REGEX): Move them to common/common.m4.
5739 * gdb_regex.h: Move it to common/gdb_regex.h.
5740 * utils.c: Remove include gdb_regex.h.
5741 (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
5742 (compile_rx_or_error): Move them to common/gdb_regex.c.
5743
ddc98fbf
JK
57442015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5745 Jan Kratochvil <jan.kratochvil@redhat.com>
5746
5747 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
5748 * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
5749 common/target-utils.h.
5750 (COMMON_OBS): Add target-utils.o.
5751 (linux-maps.o, target-utils.o): New.
5752 * target/target-utils.c: New file.
5753 * target/target-utils.h: New file.
5754 * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
5755 * config/i386/linux64.mh (NATDEPFILES): Ditto.
5756 * nat/linux-maps.c: New file.
5757 * nat/linux-maps.h: New file.
5758
e7b01ce0
MM
57592015-07-15 Markus Metzger <markus.t.metzger@intel.com>
5760 Pedro Alves <palves@redhat.com>
5761
5762 * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
5763 (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
5764 (perf_event_read_bts): Change the type of SIZE and READ.
5765 (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
5766 and DATA_OFFSET. Move DATA_SIZE declaration. Restrict the buffer size
5767 to UINT_MAX. Check for overflows when using DATA_HEAD from the perf
5768 mmap page.
5769 (linux_enable_pt): Change the type of PAGES and SIZE. Restrict the
5770 buffer size to UINT_MAX.
5771 (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
5772 DATA_TAIL.
5773 * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
5774 <last_head>: Change type.
5775 * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
5776 * common/btrace-common.c (btrace_data_append): Change the type of
5777 SIZE.
5778 * btrace.c (parse_xml_raw): Change the type of SIZE. Change oddness
5779 check.
5780
f168693b
SM
57812015-07-14 Simon Marchi <simon.marchi@ericsson.com>
5782
5783 * gdbtypes.h (CHECK_TYPEDEF): Remove.
5784 * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
5785 with check_typedef.
5786 * ada-lang.c (decode_constrained_packed_array_type): Likewise.
5787 (ada_array_length): Likewise.
5788 (find_parallel_type_by_descriptive_type): Likewise.
5789 (ada_check_typedef): Likewise.
5790 * arm-tdep.c (arm_return_in_memory): Likewise.
5791 * ax-gdb.c (gen_trace_static_fields): Likewise.
5792 (gen_struct_ref_recursive): Likewise.
5793 * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
5794 (variable: block COLONCOLON name): Likewise.
5795 (qualified_name: TYPENAME COLONCOLON name): Likewise.
5796 * c-lang.c (classify_type): Likewise.
5797 * c-typeprint.c (c_print_type): Likewise.
5798 (c_print_typedef): Likewise.
5799 (c_type_print_base): Likewise.
5800 * c-valprint.c (c_val_print): Likewise.
5801 * compile/compile-c-types.c (convert_type): Likewise.
5802 * compile/compile-object-load.c (get_out_value_type): Likewise.
5803 * completer.c (add_struct_fields): Likewise.
5804 (expression_completer): Likewise.
5805 * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
5806 (cp_lookup_nested_symbol_1): Likewise.
5807 (cp_lookup_nested_symbol): Likewise.
5808 * cp-valprint.c (cp_print_value_fields): Likewise.
5809 (cp_print_static_field): Likewise.
5810 * d-valprint.c (d_val_print): Likewise.
5811 * eval.c (evaluate_subexp_standard): Likewise.
5812 (evaluate_subexp_for_sizeof): Likewise.
5813 * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
5814 * f-typeprint.c (f_type_print_base): Likewise.
5815 * f-valprint.c (f_val_print): Likewise.
5816 * gdbtypes.c (get_discrete_bounds): Likewise.
5817 (create_array_type_with_stride): Likewise.
5818 (type_name_no_tag_or_error): Likewise.
5819 (lookup_struct_elt_type): Likewise.
5820 (get_unsigned_type_max): Likewise.
5821 (internal_type_vptr_fieldno): Likewise.
5822 (set_type_vptr_fieldno): Likewise.
5823 (internal_type_vptr_basetype): Likewise.
5824 (set_type_vptr_basetype): Likewise.
5825 (get_vptr_fieldno): Likewise.
5826 (is_integral_type): Likewise.
5827 (is_scalar_type): Likewise.
5828 (is_scalar_type_recursive): Likewise.
5829 (distance_to_ancestor): Likewise.
5830 (is_unique_ancestor_worker): Likewise.
5831 (check_types_equal): Likewise.
5832 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
5833
45280282
IB
58342015-07-14 Iain Buclaw <ibuclaw@gdcproject.org>
5835
5836 * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
5837 also test for language_d.
5838 (dwarf2_compute_name): Likewise.
5839 (read_func_scope): Likewise.
5840 (read_structure_type): Likewise.
5841 (new_symbol_full): Likewise.
5842 (determine_prefix): Likewise.
5843 (read_import_statement): Use dot as the separator for language_d.
5844 (typename_concat): Likewise, but don't prefix the D main function.
5845
99fe86f7
PB
58462015-07-14 Peter Bergner <bergner@vnet.ibm.com>
5847
5848 * nat/linux-namespaces.c (setns): Rename from this ...
5849 (do_setns): ... to this. Support calling setns if it exists.
5850 (mnsh_handle_setns): Call do_setns.
5851
d5131498
YQ
58522015-07-13 Yao Qi <yao.qi@linaro.org>
5853
5854 * exec.c (exec_file_attach): Add period at the end of error
5855 message.
5856
97605e61
AB
58572015-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
5858
5859 * tui/tui-win.c (window_name_completer): New function.
5860 (focus_completer): Call window_name_completer. All old content
5861 moved into window_name_completer.
5862 (winheight_completer): New function.
5863 (_initialize_tui_win): Rename variable. Add completer to
5864 winheight command. Update doc string on winheight.
5865
8d6dbeb4
SL
58662015-07-12 Sandra Loosemore <sandra@codesourcery.com>
5867
5868 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
5869 all nios2 mach variants.
5870
a0e28e54
KB
58712015-07-10 Kevin Buettner <kevinb@redhat.com>
5872
5873 * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
5874 of target_read_memory.
5875
c101f28f
AB
58762015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
5877
5878 * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
5879 string copy.
5880 (parse_scrolling_args): Likewise.
5881
150375dc
AB
58822015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
5883
5884 * tui/tui-win.c (focus_completer): Don't duplicate the tui window
5885 names in this function.
5886
6dce28e4
AB
58872015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
5888
5889 * tui/tui-data.h (SRC_NAME): Convert to lower case.
5890 (CMD_NAME): Likewise.
5891 (DATA_NAME): Likewise.
5892 (DISASSEM_NAME): Likewise.
5893 * tui/tui-win.c (tui_set_focus): Window names are now lower case.
5894 (tui_set_win_height): Likewise.
5895 (parse_scrolling_args): Likewise.
5896
485668e5
MM
58972015-07-10 Markus Metzger <markus.t.metzger@intel.com>
5898
5899 * record-btrace.c (record_btrace_goto_begin)
5900 (record_btrace_goto_end, record_btrace_goto): Move call to
5901 print_stack_frame ...
5902 (record_btrace_set_replay): ... here. Set stop_pc.
5903 * record-full.c (record_full_goto_entry): Set stop_pc.
5904
58d2eda5
PL
59052015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5906
5907 * NEWS: Mention support for tracepoints on aarch64-linux.
5908
7671bf47
PL
59092015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5910
5911 * linux-aarch64-low.c (aarch64_supports_tracepoints): New
5912 function. Return 1.
5913 (the_low_target): Install it.
5914
7890fb45
PL
59152015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5916
5917 * gdb.trace/backtrace.exp: Set registers for aarch64 target.
5918 * gdb.trace/collection.exp: Likewise.
5919 * gdb.trace/mi-trace-frame-collected.exp: Likewise.
5920 * gdb.trace/mi-trace-unavailable.exp: Likewise.
5921 * gdb.trace/report.exp: Likewise.
5922 * gdb.trace/trace-break.exp: Likewise.
5923 * gdb.trace/unavailable.exp: Likewise.
5924 * gdb.trace/while-dyn.exp: Likewise.
5925
ea873d8e
PL
59262015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5927
5928 * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
5929 (aarch64_gen_return_address): New function.
5930 (aarch64_gdbarch_init): Hook it.
5931
02a2a705
PL
59322015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5933
5934 * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
5935 swallow NOT_AVAILABLE_ERROR.
5936 (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
5937 available_p is not set.
5938 (aarch64_stub_frame_unwind_stop_reason): New function.
5939 (aarch64_stub_unwind): Install it.
5940
7dfa3edc
PL
59412015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5942
5943 * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
5944 field.
5945 (aarch64_make_prologue_cache_1): New function, factored out from
5946 aarch64_make_prologue_cache. Do not allocate cache. Set
5947 available_p.
5948 (aarch64_make_prologue_cache): Reimplement wrapping
5949 aarch64_make_prologue_cache_1, and swallowing
5950 NOT_AVAILABLE_ERROR.
5951 (aarch64_prologue_frame_unwind_stop_reason): New function.
5952 Return UNWIND_UNAVAILABLE if available_p is not set.
5953 (aarch64_prologue_unwind): Install it.
5954 (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
5955 checks into aarch64_prologue_frame_unwind_stop_reason. Call
5956 frame_id_build_unavailable_stack if available_p is not set.
5957
db634143
PL
59582015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5959
5960 * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
5961 fields.
5962 (aarch64_scan_prologue): Set prev_pc.
5963 (aarch64_make_prologue_cache): Set func.
5964 (aarch64_make_stub_cache): Set prev_pc.
5965 (aarch64_prologue_this_id): Remove local variables id, pc and
5966 func. Read prev_pc and func from cache.
5967 (aarch64_stub_this_id): Read prev_pc from cache.
5968
8b61f75d
PL
59692015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5970
5971 * aarch64-tdep.c (aarch64_make_stub_cache): Update comment. New
5972 argument this_cache. Remove unused local variables reg and
5973 unwound_fp. Return early if this_cache is already set. Set
5974 this_cache.
5975 (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
5976
7c8edfae
PL
59772015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5978
5979 * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
5980 New argument this_cache. Return early if this_cache is already
5981 set. Set this_cache.
5982 (aarch64_prologue_this_id): Update call to
5983 aarch64_make_prologue_cache.
5984 (aarch64_prologue_prev_register): Likewise.
5985 (aarch64_normal_frame_base): Likewise.
5986
938c69a1
SM
59872015-07-09 Simon Marchi <simon.marchi@ericsson.com>
5988
5989 * c-valprint.c (c_val_print): Factor out memberptr printing code
5990 from c_val_print to ...
5991 (c_val_print_memberptr): ... this new function.
5992
49f7fe28
SM
59932015-07-09 Simon Marchi <simon.marchi@ericsson.com>
5994
5995 * c-valprint.c (c_val_print): Factor out int printing code to ...
5996 (c_val_print_int): ... this new function.
5997
9e4f353c
SM
59982015-07-09 Simon Marchi <simon.marchi@ericsson.com>
5999
6000 * c-valprint.c (c_val_print): Factor out struct and union
6001 printing code to ...
6002 (c_val_print_struct): ... this new function ...
6003 (c_val_print_union): ... and this new function.
6004
1c67f032
SM
60052015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6006
6007 * c-valprint.c (c_val_print): Factor out pointer printing code
6008 to ...
6009 (c_val_print_ptr): ... this new function.
6010
0b6ef777
SM
60112015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6012
6013 * c-valprint.c (c_valprint): Factor our array printing code from
6014 c_val_print to ...
6015 (c_val_print_array): ... this new function.
6016
1033c33c
SM
60172015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6018
6019 * c-valprint.c (c_val_print): Factor out pointer printing code
6020 to ...
6021 (print_unpacked_pointer): ... this new function.
6022
f6b93c34
SM
60232015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6024
6025 * c-valprint.c (c_val_print): Remove an assignment to i and move
6026 its declaration.
6027
0f4576e3
YQ
60282015-07-09 Yao Qi <yao.qi@linaro.org>
6029
6030 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
6031 argument ptid. Update comments. Caller update.
6032
37fdfe4c
MM
60332015-07-09 Markus Metzger <markus.t.metzger@intel.com>
6034
6035 * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
6036 mnt packets.
6037
80a2b330
MM
60382015-07-09 Markus Metzger <markus.t.metzger@intel.com>
6039
6040 * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
6041
4ab31498
SM
60422015-07-08 Simon Marchi <simon.marchi@ericsson.com>
6043
6044 * progspace.c (delete_program_space): Add missing spaces.
6045
7a41607e
SM
60462015-07-08 Simon Marchi <simon.marchi@ericsson.com>
6047
6048 * inferior.c (delete_inferior_1): Rename to ...
6049 (delete_inferior): ..., remove 'silent' parameter, delete
6050 program space when unused and remove call to prune_program_spaces.
6051 Remove the old, unused, delete_inferior.
6052 (delete_inferior_silent): Remove.
6053 (prune_inferiors): Change call from delete_inferior_1 to
6054 delete_inferior and remove 'silent' parameter. Remove call to
6055 prune_program_spaces.
6056 (remove_inferior_command): Idem.
6057 * inferior.h (delete_inferior_1): Rename to...
6058 (delete_inferior): ..., remove 'silent' parameter and remove the
6059 original delete_inferior.
6060 (delete_inferior_silent): Remove.
6061 * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
6062 delete_inferior_1 to delete_inferior and remove 'silent'
6063 parameter.
6064 * progspace.c (prune_program_spaces): Remove.
6065 (pspace_empty_p): Rename to...
6066 (program_space_empty_p): ... and make non-static.
6067 (delete_program_space): New.
6068 * progspace.h (prune_program_spaces): Remove declaration.
6069 (program_space_empty_p): New declaration.
6070 (delete_program_space): New declaration.
6071 * monitor.c (monitor_close): Replace call to
6072 delete_thread_silent and delete_inferior_silent with
6073 discard_all_inferiors.
6074
a9bd710f
PP
60752015-07-08 Patrick Palka <patrick@parcs.ath.cx>
6076
6077 * defs.h (deprecated_register_changed_hook): Remove prototype.
6078 * interps.c (clear_iterpreter_hooks): Remove reference to
6079 deprecated_register_changed_hook.
6080 * top.c (deprecated_register_changed_hook): Remove prototype.
6081 * valops.c (value_assign): Remove reference to
6082 deprecated_register_changed_hook.
6083 * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
6084 Add comment documenting the function.
6085 (tui_register_changed_observer): Define.
6086 (tui_install_hooks): Remove reference to
6087 deprecated_register_changed_hook. Set
6088 tui_register_changed_observer.
6089 (tui_remove_hooks): Remove reference to
6090 deprecated_register_changed_hook. Unset
6091 tui_register_changed_observer.
6092
08464196
JK
60932015-07-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6094
6095 PR compile/18484
6096 * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
6097
bcf5c1d9
RC
60982015-07-08 Robert O'Callahan <robert@ocallahan.org>
6099
6100 PR exp/18617
6101 * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
6102
e8643a45
MM
61032015-07-08 Markus Metzger <markus.t.metzger@intel.com>
6104
6105 * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
6106
76fb6829
MM
61072015-07-08 Markus Metzger <markus.t.metzger@intel.com>
6108
6109 * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
6110 Use safe_strerror() instead of strerror().
6111
82c40d4b
YQ
61122015-07-07 Yao Qi <yao.qi@linaro.org>
6113
6114 * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
6115 * features/arm-with-m-fpa-layout.c: Regenerated.
6116 * features/arm-with-m-vfp-d16.xml: Likewise.
6117 * features/arm-with-m-vfp-d16.c: Regenerated.
6118 * features/arm-with-m.xml: Likewise.
6119 * features/arm-with-m.c: Regenerated.
6120 * features/arm-with-neon.xml: Likewise.
6121 * features/arm-with-neon.c: Regenerated.
6122 * features/arm-with-vfpv2.xml: Likewise.
6123 * features/arm-with-vfpv2.c: Regenerated.
6124 * features/arm-with-vfpv3.xml: Likewise.
6125 * features/arm-with-vfpv3.c: Regenerated.
6126
607685ec
YQ
61272015-07-07 Yao Qi <yao.qi@linaro.org>
6128
6129 * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
6130 arm-linux-nat.c.
6131 * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
6132 elf/external.h.
6133 (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
6134 if target is 32-bit.
6135 (store_gregs_to_thread): Call aarch32_gp_regcache_collect
6136 if target is 32-bit.
6137 (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
6138 if target is 32-bit.
6139 (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
6140 if target is 32-bit.
6141 (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
6142 (aarch64_linux_read_description): Return the right target
6143 description.
6144 * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
6145 * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6146 * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
6147 arm-linux-tdep.o.
6148
f1b67888
YQ
61492015-07-07 Yao Qi <yao.qi@linaro.org>
6150
6151 * aarch32-linux-nat.c: New file.
6152 * aarch32-linux-nat.h: New file.
6153 * arm-linux-nat.c: Include aarch32-linux-nat.h.
6154 (fetch_regs): Move code to aarch32-linux-nat.c. Call
6155 aarch32_gp_regcache_supply.
6156 (store_regs): Move code to aarch32-linux-nat.c. Call
6157 aarch32_gp_regcache_collect.
6158 (fetch_vfp_regs): Move code to aarch32-linux-nat.c. Call
6159 aarch32_vfp_regcache_supply.
6160 (store_vfp_regs): Move code to aarch32-linux-nat.c. Call
6161 aarch32_vfp_regcache_collect.
6162 * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6163
179bfe82
YQ
61642015-07-07 Yao Qi <yao.qi@linaro.org>
6165
6166 * arm-linux-nat.c (store_fpregister): Remove.
6167 (store_register): Likewise.
6168 (fetch_fpregister): Likewise.
6169 (fetch_register): Likewise.
6170 (arm_linux_store_inferior_registers): Call store_regs and
6171 store_fpregs instead.
6172 (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
6173 fetch_regs instead.
6174
6008fc5f
AB
61752015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6176
6177 * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
6178 and focus commands.
6179
7c79d316
JB
61802015-07-06 Joel Brobecker <brobecker@adacore.com>
6181
6182 * NEWS: Create a new section for the next release branch.
6183 Rename the section of the current branch, now that it has
6184 been cut.
6185
f2232bea
JB
61862015-07-06 Joel Brobecker <brobecker@adacore.com>
6187
6188 GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
6189 * version.in: Bump version to 7.10.50.DATE-cvs.
6190
66c4b3e8
LM
61912015-07-06 Luis Machado <lgustavo@codesourcery.com>
6192
6193 * breakpoint.c (remove_breakpoint_1): Don't handle permanent
6194 breakpoints in a special way.
6195 (remove_breakpoint): Likewise.
6196 (mark_breakpoints_out): Likewise.
6197
bcd8537c
AB
61982015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6199
6200 * doc/gdb.texinfo (TUI): Add comma after @xref.
6201
10e9aaa3
AB
62022015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6203
6204 * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
6205 instead of casting the structure type.
6206
8a13d42d
SM
62072015-07-06 Simon Marchi <simon.marchi@ericsson.com>
6208
6209 * valops.c (search_struct_field): Remove OFFSET parameter.
6210 (value_cast_structs): Adjust calls to search_struct_field.
6211 (value_struct_elt): Same.
6212 (find_overload_match): Same.
6213
a844296a
SM
62142015-07-06 Simon Marchi <simon.marchi@ericsson.com>
6215
6216 * value.c (value_fetch_lazy): Update comment, change return
6217 value to void.
6218 * value.h (value_fetch_lazy): Change return value to void.
6219
f41cbf58
AB
62202015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6221
6222 * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
6223 (tui_win_name): Make parameter and result const.
6224 * tui/tui-data.h (tui_win_name): Make parameter and result const.
6225
118ca224
PP
62262015-07-06 Patrick Palka <patrick@parcs.ath.cx>
6227
6228 * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
6229 use printf_unfiltered.
6230 (set_mpx_cmd): Add missing trailing space to command string
6231 literal.
6232 (_initialize_i386_tdep): Give the "mpx" prefix command its
6233 correct name.
6234
1b485e67
KB
62352015-07-02 Kevin Buettner <kevinb@redhat.com>
6236
6237 * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
6238 (enum rx_frame_type): New.
6239 (struct rx_prologue): Add new field `frame_type'.
6240 (rx_analyze_prologue): Add `frame_type' parameter. Cache this
6241 parameter in the prologue struct. Add code for recording
6242 locations of PC and PSW for fast interrupt and exception frames.
6243 (rx_skip_prologue): Adjust call to rx_analyze_prologue.
6244 (rx_analyze_frame_prologue): Add `frame_type' parameter.
6245 (rx_frame_type): New function.
6246 (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
6247 (rx_frame_this_id): Rename parameter `this_prologue_cache' to
6248 `this_cache'.
6249 (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
72f4393d 6250 `this_cache'. Add cases for RX_FRAME_TYPE_EXCEPTION and
1b485e67
KB
6251 RX_FRAME_TYPE_FAST_INTERRUPT.
6252 (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
6253 (rx_frame_sniffer, rx_exception_sniffer): New functions.
6254 (rx_frame_unwind): Use rx_frame_sniffer instead of
6255 default_frame_sniffer.
6256 (rx_frame_unwind): New unwinder.
6257 (rx_gdbarch_init): Register new unwinder.
6258
0561fea4
KB
62592015-07-02 Kevin Buettner <kevinb@redhat.com>
6260
6261 * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
6262 (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
6263 (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
6264 and RX_FPSW_REGNUM.
6265 (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
6266
decf8d9a
JK
62672015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6268
6269 Fix GCC false warning.
6270 * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
6271
2fd0f80d
YQ
62722015-07-02 Yao Qi <yao.qi@linaro.org>
6273
6274 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
6275 typo in the debugging message.
6276
b0627500
MM
62772015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6278
6279 * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
6280 (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
6281 (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
6282 (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
6283 (btrace_maint_clear): New.
6284 (btrace_fetch, btrace_clear): Call btrace_maint_clear.
6285 (pt_print_packet, btrace_maint_decode_pt)
6286 (btrace_maint_update_pt_packets, btrace_maint_update_packets)
6287 (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
6288 (maint_btrace_packet_history_cmd)
6289 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
6290 (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
6291 (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
6292 (maint_info_btrace_cmd, _initialize_btrace): New.
6293 * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
6294 (btrace_maint_packet_history, btrace_maint_info): New.
6295 (btrace_thread_info) <maint>: New.
6296 * NEWS: Announce it.
6297
9be54cae
MM
62982015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6299
6300 * btrace.c (btrace_fetch): Append the new trace data.
6301 (btrace_clear): Clear the stored trace data.
6302 * btrace.h (btrace_thread_info) <data>: New.
6303 * common/btrace-common.h (btrace_data_clear)
6304 (btrace_data_append): New.
6305 * common/btrace-common.c (btrace_data_clear)
6306 (btrace_data_append): New.
6307
010a18a1
MM
63082015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6309
6310 * nat/linux-btrace.c (linux_enable_bts): Check for
6311 PERF_ATTR_SIZE_VER5.
6312 Check for data_offset and data_size fields. Use them.
6313
b20a6524
MM
63142015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6315
6316 * NEWS: Announce new commands "record btrace pt" and "record pt".
6317 Announce new options "set|show record btrace pt buffer-size".
6318 * btrace.c: Include "rsp-low.h".
6319 Include "inttypes.h".
6320 (btrace_add_pc): Add forward declaration.
6321 (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
6322 (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
6323 (btrace_compute_ftrace_pt): New.
6324 (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
6325 (check_xml_btrace_version): Update version check.
6326 (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
6327 (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
6328 (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
6329 (btrace_pt_children): New.
6330 (btrace_children): Add support for "pt".
6331 (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
6332 (btrace_conf_children): Add support for "pt".
6333 * btrace.h: Include "intel-pt.h".
6334 (btrace_pt_error): New.
6335 * common/btrace-common.c (btrace_format_string, btrace_data_fini)
6336 (btrace_data_empty): Support BTRACE_FORMAT_PT.
6337 * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
6338 (struct btrace_config_pt): New.
6339 (struct btrace_config)<pt>: New.
6340 (struct btrace_data_pt_config, struct btrace_data_pt): New.
6341 (struct btrace_data)<pt>: New.
6342 * features/btrace-conf.dtd (btrace-conf)<pt>: New.
6343 (pt): New.
6344 * features/btrace.dtd (btrace)<pt>: New.
6345 (pt, pt-config, cpu): New.
6346 * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
6347 (perf_event_pt_event_type, kernel_supports_pt)
6348 (linux_supports_pt): New.
6349 (linux_supports_btrace): Support BTRACE_FORMAT_PT.
6350 (linux_enable_bts): Free tinfo on error.
6351 (linux_enable_pt): New.
6352 (linux_enable_btrace): Support BTRACE_FORMAT_PT.
6353 (linux_disable_pt): New.
6354 (linux_disable_btrace): Support BTRACE_FORMAT_PT.
6355 (linux_fill_btrace_pt_config, linux_read_pt): New.
6356 (linux_read_btrace): Support BTRACE_FORMAT_PT.
6357 * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
6358 (struct btrace_target_info)<pt>: New.
6359 * record-btrace.c (set_record_btrace_pt_cmdlist)
6360 (show_record_btrace_pt_cmdlist): New.
6361 (record_btrace_print_pt_conf): New.
6362 (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
6363 (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
6364 (cmd_record_btrace_pt_start): New.
6365 (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
6366 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
6367 (_initialize_record_btrace): Add new commands.
6368 * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
6369 (remote_protocol_features): Add "Qbtrace:pt".
6370 Add "Qbtrace-conf:pt:size".
6371 (remote_supports_btrace): Support BTRACE_FORMAT_PT.
6372 (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
6373 (remote_enable_btrace): Support BTRACE_FORMAT_PT.
6374 (_initialize_remote): Add new commands.
6375
58bfce93
MM
63762015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6377
6378 * configure.ac: check for libipt
6379 * configure: Regenerate.
6380 * config.in: Regenerate.
6381 * Makefile.in (LIBIPT): New.
6382 (CLIBS): Add $LIBIPT.
6383 * NEWS: document new configure options
6384
b0fd6b30
JK
63852015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6386
6387 * compile/compile-object-load.c (compile_object_load): Replace debug
6388 message "lookup undefined ELF symbol" by 3 more specific messages.
6389
e6280369
KB
63902015-07-01 Kevin Buettner <kevinb@redhat.com>
6391
6392 * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
6393 (rl78_register_type): Add case for RL78_PSW_REGNUM.
6394 (rl78_gdbarch_init): Initialize rl78_psw_type.
6395
bbcbf914
PP
63962015-07-01 Patrick Palka <patrick@parcs.ath.cx>
6397
6398 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
6399 Update commentary. Always refresh the registers when frame
6400 information has changed.
6401 * tui/tui-stack.c (tui_show_frame_info): Update commentary.
6402 Change return type to int. Return 1 if frame information has
6403 changed, 0 otherwise.
6404 (tui_before_prompt): Update commentary.
6405 * tui/tui-stack.h (tui_show_frame_info): Change return type to
6406 int.
6407
0986c744
PP
64082015-06-30 Patrick Palka <patrick@parcs.ath.cx>
6409
6410 PR tui/13378
6411 * frame.c (select_frame): Remove reference to
6412 deprecated_selected_frame_level_changed_hook.
6413 * frame.h (deprecated_selected_frame_level_changed_hook): Remove
6414 declaration.
6415 * stack.c (deprecated_selected_frame_level_changed_hook):
6416 Likewise.
6417 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
6418 Rename to ...
6419 (tui_refresh_frame_and_register_information): ... this. Bail
6420 out if there is no stack. Don't update register information
6421 unless registers_too_p is true.
6422 (tui_print_frame_info_listing_hook): Rename to ...
6423 (tui_dummy_print_frame_info_listing_hook): ... this.
6424 (tui_before_prompt): New function.
6425 (tui_normal_stop): New function.
6426 (tui_before_prompt_observer): New observer.
6427 (tui_normal_stop_observer): New observer.
6428 (tui_install_hooks): Set
6429 deprecated_print_frame_info_listing_hook to
6430 tui_dummy_print_frame_info_listing_hook. Register
6431 tui_before_prompt_observer to call tui_before_prompt and
6432 tui_normal_stop_observer to call tui_normal_stop. Remove
6433 reference to deprecated_selected_frame_level_changed_hook.
6434 (tui_remove_hooks): Detach and unset tui_before_prompt_observer
6435 and tui_normal_stop_observer. Remove reference to
6436 deprecated_selected_frame_level_changed_hook.
6437
b5fca6d7
PP
64382015-06-30 Patrick Palka <patrick@parcs.ath.cx>
6439
6440 PR tui/13378
6441 * tui/tui-stack.c (tui_set_locator_info): Change prototype to
6442 return an int instead of void. Return whether the locator
6443 window has changed.
6444 (tui_show_frame_info): If the locator info has not changed, then
6445 bail out early to avoid refreshing the windows.
6446
c45613e3
PP
64472015-06-30 Patrick Palka <patrick@parcs.ath.cx>
6448
6449 * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
6450 LOCATOR_WIN to tui_alloc_content.
6451
7b9be803
YQ
64522015-06-30 Yao Qi <yao.qi@linaro.org>
6453
6454 PR tdep/18605
6455 * arm-tdep.c (arm_get_next_pc_raw): Break for media
6456 instructions.
6457
fd6e021d
KB
64582015-06-29 Kevin Buettner <kevinb@redhat.com>
6459
78ab7e9d
KB
6460 * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
6461 (rx_dwarf_reg_to_regnum): New function.
6462 (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum. Use dwarf2
6463 unwinding.
fd6e021d 6464
28bf096c
PA
64652015-06-29 Pedro Alves <palves@redhat.com>
6466
6467 PR threads/18127
6468 * infcall.c (run_inferior_call): On infcall success, if the thread
6469 was marked stopped before, reset it back to stopped.
6470 * infrun.c (resume): Don't suppress the set_running calls when
6471 doing an infcall.
6472 (normal_stop): Only discard the finish_thread_state cleanup if the
6473 infcall succeeded.
6474
2880b51c 64752015-06-29 Pierre Langlois <pierre.langlois@arm.com>
1451ea7d
PL
6476
6477 * MAINTAINERS (Write After Approval): Update my email address.
6478
ee93cd5e
KS
64792015-06-26 Keith Seitz <keiths@redhat.com>
6480 Doug Evans <dje@google.com>
6481
6482 PR 16253
6483 * block.c (block_lookup_symbol): For non-function blocks,
6484 continue to search for a symbol with an exact domain match
6485 Otherwise, return any previously found "best domain" symbol.
6486 (block_lookup_symbol_primary): Likewise.
6487
fc637f04
PP
64882015-06-26 Patrick Palka <patrick@parcs.ath.cx>
6489
6490 * NEWS: Mention the new option "history remove-duplicates".
6491 * top.c (history_remove_duplicates): New static variable.
6492 (show_history_remove_duplicates): New static function.
6493 (gdb_add_history): Conditionally remove duplicate history
6494 entries.
6495 (init_main): Add "history remove-duplicates" option.
6496
2e52ae68
PP
64972015-06-26 Patrick Palka <patrick@parcs.ath.cx>
6498
6499 * tui/tui-win.c (focus_completer): New static function.
6500 (_initialize_tui_win): Set the completion function of the
6501 "focus" command to focus_completer.
6502
6e22494e
JK
65032015-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6504
6505 * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
6506 and language_asm..
6507 * symtab.c (find_function_start_sal): Likewise.
6508
f8773be1
GB
65092015-06-25 Gary Benson <gbenson@redhat.com>
6510
6511 * solib.c (solib_find_1): Set local variable sysroot to NULL if
6512 it is the empty string after trailing slashes have been stripped.
6513
a3be80c3
GB
65142015-06-25 Gary Benson <gbenson@redhat.com>
6515
6516 * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
6517 * infrun.c (follow_exec): Likewise.
6518 * remote.c (remote_filesystem_is_local): Likewise.
6519 * solib.c (solib_find_1): Likewise.
6520
32fad71f
KS
65212015-06-24 Keith Seitz <keiths@redhat.com>
6522
6523 * build-id.c (build_id_to_debug_bfd): Add cleanup to free
6524 return value from lrealpath.
6525
87d1b309
MF
65262015-06-24 Mike Frysinger <vapier@gentoo.org>
6527
6528 * remote-sim.c (gdbsim_open): Move sysroot update to the top.
6529
23bf70af
MF
65302015-06-24 Mike Frysinger <vapier@gentoo.org>
6531
6532 * remote-sim.c: Include gdb_bfd.h.
6533 (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
6534 Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
6535
5cd867b4
YQ
65362015-06-24 Yao Qi <yao.qi@linaro.org>
6537
6538 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
6539 set_gdbarch_get_siginfo_type.
6540 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
6541 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
6542 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
6543 * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
6544 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
6545 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6546 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
6547 * linux-tdep.c (linux_get_siginfo_type): Change it to static.
6548 (linux_init_abi): Call set_gdbarch_get_siginfo_type.
6549 * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
6550
dc06243f
GB
65512015-06-24 Gary Benson <gbenson@redhat.com>
6552
6553 * common/buffer.c (stdint.h): Do not include.
6554 * common/print-utils.c (stdint.h): Likewise.
6555 * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
6556 * compile/compile-c-types.c (gdb_assert.h): Likewise.
6557 * ft32-tdep.c (gdb_assert.h): Likewise.
6558 * guile/scm-utils.c (stdint.h): Likewise.
6559 * i386-linux-tdep.c (stdint.h): Likewise.
6560 * i386-tdep.c (stdint.h): Likewise.
6561 * nat/linux-btrace.c (stdint.h): Likewise.
6562 * nat/linux-btrace.h (stdint.h): Likewise.
6563 * nat/linux-ptrace.c (stdint.h): Likewise.
6564 * nat/mips-linux-watch.h (stdint.h): Likewise.
6565 * ppc-linux-nat.c (stdint.h): Likewise.
6566 * python/python-internal.h (stdint.h): Likewise.
6567 * stub-termcap.c (stdlib.h): Likewise.
6568 * target/target.h (stdint.h): Likewise.
6569 * xtensa-linux-nat.c (stdint.h): Likewise.
6570
0fc26caf
PP
65712015-06-23 Patrick Palka <patrick@parcs.ath.cx>
6572
6573 * top.c (init_history): Look at errno after calling strtol to
6574 properly map large GDBHISTSIZE values to infinity.
6575
a38fe4fe
DE
65762015-06-23 Doug Evans <dje@google.com>
6577
6578 * inferior.h (struct inferior_suspend_state): Delete, unused.
6579 All references deleted.
6580
7564fe45
MF
65812015-06-23 Mike Frysinger <vapier@gentoo.org>
6582
6583 * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
6584 (microblaze_push_dummy_call): Likewise.
6585 (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
6586 and set_gdbarch_push_dummy_call.
6587
0bdb2f78
YQ
65882015-06-23 Yao Qi <yao.qi@linaro.org>
6589
6590 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
6591 Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
6592 (amd64_linux_store_inferior_registers): Likewise.
6593 * arm-linux-nat.c (fetch_fpregister): Likewise.
6594 (fetch_fpregs, store_fpregister): Likewise.
6595 (store_fpregister, store_fpregs): Likewise.
6596 (fetch_register, fetch_regs): Likewise.
6597 (store_register, store_regs): Likewise.
6598 (fetch_vfp_regs, store_vfp_regs): Likewise.
6599 (arm_linux_read_description): Check have_ptrace_getregset is
6600 TRIBOOL_UNKNOWN. Set have_ptrace_getregset to TRIBOOL_TRUE
6601 or TRIBOOL_FALSE.
6602 * i386-linux-nat.c (fetch_xstateregs): Check
6603 have_ptrace_getregset is not TRIBOOL_TRUE.
6604 (store_xstateregs): Likewise.
6605 * linux-nat.c (have_ptrace_getregset): Change its type to
6606 enum tribool.
6607 * linux-nat.h (tribool): New enum.
6608 * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
6609 Check whether have_ptrace_getregset is TRIBOOL_TRUE.
6610
18a94d75
DE
66112015-06-19 Doug Evans <dje@google.com>
6612
6613 * NEWS: Mention Sun's version of stabs is no longer supported.
6614 * elfread.c (free_elfinfo): Delete. All uses updated.
6615 (elfstab_offset_sections): Delete. All uses updated.
6616 * gdb-stabs.h (stab_section_info): Delete. All uses updated.
6617 * psympriv.h (partial_symtab) <section_offsets>: Delete.
6618 All uses updated.
6619 * psymtab.c (start_psymtab_common): Delete arg section_offsets.
6620 All callers updated.
6621
124e13d9
SM
66222015-06-18 Simon Marchi <simon.marchi@ericsson.com>
6623
6624 * common/rsp-low.c (needs_escaping): New.
6625 (remote_escape_output): Add unit_size parameter. Refactor to
6626 support multi-byte addressable units. Rename parameters.
6627 * common/rsp-low.h (remote_escape_output): Add unit_size
6628 parameter and rename others. Update doc.
6629 * remote.c (align_for_efficient_write): New.
6630 (remote_write_bytes_aux): Add unit_size parameter and use it.
6631 Rename some variables. Update doc.
6632 (remote_xfer_partial): Get unit size and use it.
6633 (remote_read_bytes_1): Add unit_size parameter and use it.
6634 Rename some variables. Update doc.
6635 (remote_write_bytes): Same.
6636 (remote_xfer_live_readonly_partial): Same.
6637 (remote_read_bytes): Same.
6638 (remote_flash_write): Update call to remote_write_bytes_aux.
6639 (remote_write_qxfer): Update call to remote_escape_output.
6640 (remote_search_memory): Same.
6641 (remote_hostio_pwrite): Same.
6642
6ae88661
LM
66432015-06-17 Luis Machado <lgustavo@codesourcery.com>
6644
6645 * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
6646 locations as inserted.
6647 Update and expand comment about permanent locations.
6648 (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
6649 Move comment to add_location_to_breakpoint.
6650 (update_global_location_list): Don't error out if a permanent
6651 breakpoint is not marked inserted.
6652 Don't error out if a non-permanent breakpoint location is inserted on
6653 top of a permanent breakpoint.
6654
da4616f6
LM
66552015-06-17 Luis Machado <lgustavo@codesourcery.com>
6656
6657 * breakpoint.c (make_breakpoint_permanent): Remove unused
6658 function.
6659 * breakpoint.h (make_breakpoint_permanent): Remove declaration.
6660
bc460514
PP
66612015-06-17 Patrick Palka <patrick@parcs.ath.cx>
6662
6663 PR gdb/16999
6664 * NEWS: Mention new GDBHISTSIZE behavior.
6665 * top.c (init_history): For null or out-of-range GDBHISTSIZE,
6666 set history size to unlimited. Ignore non-numeric GDBHISTSIZE.
6667
b58c513b
PP
66682015-06-17 Patrick Palka <patrick@parcs.ath.cx>
6669
6670 * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
6671 * top.c (init_history): Read from GDBHISTSIZE instead of
6672 HISTSIZE.
6673 (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
6674
2093d2d3
PP
66752015-06-17 Patrick Palka <patrick@parcs.ath.cx>
6676
6677 * top.c (gdb_safe_append_history): Do not call
6678 history_truncate_file if the history is not stifled.
6679
fc248485
AA
66802015-06-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
6681
6682 * syscalls/s390-linux.xml: Add syscalls 344 through 354.
6683 * syscalls/s390x-linux.xml: Likewise.
6684
4da680ad
ME
66852015-06-16 Michael Eager <eager@eagercon.com>
6686
6687 * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
6688
0a75489f
PP
66892015-06-16 Patrick Palka <patrick@parcs.ath.cx>
6690
6691 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
6692 target_terminal_ours_for_output() before calling
6693 tui_show_frame_info(), and restore the original terminal
6694 settings afterwards.
6695
95855ca8
MS
66962015-06-16 Martin Simmons <martin@lispworks.com> (tiny patch)
6697
6698 * arm-linux-nat.c: Include nat/linux-ptrace.h.
6699
cfc32360
SM
67002015-06-15 Simon Marchi <simon.marchi@ericsson.com>
6701
6702 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
6703 memory unit size.
6704 (mi_cmd_data_write_memory_bytes): Same.
6705
cb6f16cf
SM
67062015-06-15 Simon Marchi <simon.marchi@ericsson.com>
6707
6708 * corefile.c (write_memory): Update doc.
6709 * gdbcore.h (write_memory): Same.
6710
31b7833d
JK
67112015-06-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6712
6713 * linux-tdep.c (enum filterflags): Make it from anonymous enum.
6714 (dump_mapping_p): Use it for parameter filterflags.
6715 (linux_find_memory_regions_full): Use it for variable filterflags.
6716
909c2cda
JK
67172015-06-15 Aleksandar Ristovski <aristovski@qnx.com
6718 Jan Kratochvil <jan.kratochvil@redhat.com>
6719
6720 Merge multiple hex conversions.
6721 * monitor.c: Include rsp-low.h.
6722 (fromhex): Remove definition.
6723
03aef70f
JK
67242015-06-15 Aleksandar Ristovski <aristovski@qnx.com
6725 Jan Kratochvil <jan.kratochvil@redhat.com>
6726
6727 Move utility functions to common/.
6728 * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
6729 Move defs to common/common-utils.c.
6730 * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
6731 (skip_to_space_const): Move decls to common/common-utils.h.
6732 * common/common-defs.h: Move include of common-types.h before
6733 common-utils.h.
6734 * common/common-utils.c: Include host-defs.h and ctype.h.
6735 (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
6736 from utils.c.
6737 (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
6738 cli/cli-utils.c.
6739 * common/common-utils.h (strtoulst): Move decl from utils.h.
6740 (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
6741 Move from cli/cli-utils.h.
6742 * common/host-defs.h: Include limits.h.
6743 (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
6744 (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
6745 * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
6746 common/common-utils.h.
6747 * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
6748 (strtoulst): Move to common/common-utils.c.
6749 * utils.h (strtoulst): Moved decl to common/common-utils.h.
6750
d1168cc1
YQ
67512015-06-15 Yao Qi <yao.qi@linaro.org>
6752
6753 * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
6754
c74f7d1c
JT
67552015-06-10 Jon Turney <jon.turney@dronecode.org.uk>
6756
6757 * build-id.c: Don't include elf-bfd.h.
6758 (build_id_bfd_get): Use bfd_build_id.
6759 (build_id_verify): Ditto.
6760 * build-id.h: Ditto.
6761 (find_separate_debug_file_by_buildid): Ditto.
6762 * python/py-objfile.c: Don't include elf-bfd.h.
6763 (objfpy_get_build_id) Use bfd_build_id.
6764 (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
6765 * coffread.c: Include build-id.h.
6766 (coff_symfile_read): Try find_separate_debug_file_by_buildid.
6767
f20c58f5
JT
67682015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
6769
6770 * windows-nat.c (do_windows_fetch_inferior_registers)
6771 (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
6772 conditional with __CYGWIN__.
6773
51f0e40d
AB
67742015-06-13 Andrew Burgess <andrew.burgess@embecosm.com>
6775
6776 * completer.c: Add arch-utils.h include.
6777 (enum reg_completer_targets): New enum.
6778 (reg_or_group_completer_1): New function containing old
6779 reg_or_group_completer, add and use new parameter to control what
6780 is completed on. Use get_current_arch rather than architecture of
6781 currently selected frame.
6782 (reg_or_group_completer): Call new reg_or_group_completer_1.
6783 (reggroup_completer): Call new reg_or_group_completer_1.
6784 * completer.h (reggroup_completer): Add declaration.
6785 * tui/tui-regs.c: Add 'completer.h' include.
6786 (tui_reg_next_command): Renamed to...
6787 (tui_reg_next): ...this. Adjust parameters and return rather than
6788 display new group.
6789 (tui_reg_prev_command): Renamed to...
6790 (tui_reg_prev): ...this. Adjust parameters and return rather than
6791 display new group.
6792 (tui_reg_float_command): Delete.
6793 (tui_reg_general_command): Delete.
6794 (tui_reg_system_command): Delete.
6795 (tui_reg_command): Rewrite to perform switching of register group.
6796 Add header comment.
6797 (tuireglist): Remove.
6798 (tui_reggroup_completer): New function.
6799 (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
6800 creation of 'tui reg' command.
6801 * NEWS: Add comment about 'tui reg' changes.
6802
d309493c
SM
68032015-06-12 Simon Marchi <simon.marchi@ericsson.com>
6804
6805 * target.c (target_read): Consider addressable unit size when
6806 reading from a memory object.
6807 (read_memory_robust): Same.
6808 (read_whatever_is_readable): Same.
6809 (target_write_with_progress): Consider addressable unit size
6810 when writing to a memory object.
6811 * target.h (target_read): Update documentation.
6812 (target_write): Add documentation.
6813
3374165f
SM
68142015-06-12 Simon Marchi <simon.marchi@ericsson.com>
6815
6816 * arch-utils.h (default_addressable_memory_unit_size): New.
6817 * arch-utils.c (default_addressable_memory_unit_size): New.
6818 * gdbarch.sh (addressable_memory_unit_size): New.
6819 * gdbarch.h: Re-generate.
6820 * gdbarch.c: Re-generate.
6821
279a6fed
SM
68222015-06-12 Simon Marchi <simon.marchi@ericsson.com>
6823
6824 * target.c (target_read): Rename variables and use
6825 TARGET_XFER_E_IO.
6826 (target_read_with_progress): Same.
6827 (read_memory_robust): Constify parameters and rename
6828 variables.
6829 (read_whatever_is_readable): Constify parameters,
6830 rename variables, adjust formatting.
6831 * target.h (read_memory_robust): Constify parameters.
6832
1e5338b6 68332015-06-12 Ulrich Weigand <uweigand@de.ibm.com>
a1da2672
UW
6834
6835 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
6836 synthetic (non-AltiVec) vector types.
6837 (ppc64_sysv_abi_return_value): Likewise.
6838
98aa42ee
AT
68392015-06-12 Antoine Tremblay <antoine.tremblay@ericsson.com>
6840
6841 PR breakpoints/16465
6842 * breakpoint.c (create_breakpoint): Save extra_string for
6843 pending breakpoints.
6844
966f0aef
WT
68452015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
6846
6847 * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
6848 and bt_mask to CORE_ADDR.
6849
6449ed0d
GB
68502015-06-11 Gary Benson <gbenson@redhat.com>
6851
6852 * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
6853 (mnsh_recv_message): Likewise.
6854
34f8ac9f
WT
68552015-06-11 Walfred Tedeschi <walfred.tedeschi@intel.com>
6856
6857 * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
6858 long long int and plongest instead of %ll.
6859
198c808c
GB
68602015-06-11 Gary Benson <gbenson@redhat.com>
6861
6862 * nat/linux-namespaces.c (gdb_wait.h): New include.
6863 (sys/wait.h): Do not include.
6864
e815d2d2
SM
68652015-06-10 Simon Marchi <simon.marchi@ericsson.com>
6866
6867 * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
6868 end_sequence is true.
6869
8847cac2
JK
68702015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6871
6872 Code cleanup.
6873 * solib-target.c (library_list_start_list): Use explicit NULL
6874 comparison.
6875
24c05f46
JK
68762015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6877
6878 * solib-target.c (library_list_start_list): Do not dereference
6879 variable version in its initialization. Make the VERSION check handle
6880 NULL.
6881 (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
6882
51aad7cc
GB
68832015-06-10 Gary Benson <gbenson@redhat.com>
6884
6885 * NEWS: Announce support for direct access of executable and
6886 shared library files when attaching to inferiors in containers
6887 on GNU/Linux systems.
6888
15a201c8
GB
68892015-06-10 Gary Benson <gbenson@redhat.com>
6890
6891 * remote.c (struct remote_state) <fs_pid>: New field.
6892 (new_remote_state): Initialize the above.
6893 (PACKET_vFile_setfs): New enum value.
6894 (remote_hostio_set_filesystem): New function.
6895 (remote_hostio_open): Call the above.
6896 (remote_hostio_unlink): Likewise.
6897 (remote_hostio_readlink): Likewise.
6898 (_initialize_remote): Register new "set/show remote
6899 hostio-setfs-packet" command.
6900 * NEWS: Announce new vFile:setfs packet.
6901
7a6a1731
GB
69022015-06-10 Gary Benson <gbenson@redhat.com>
6903
6904 * linux-nat.c (nat/linux-namespaces.h): New include.
6905 (fileio.h): Likewise.
6906 (linux_nat_filesystem_is_local): New function.
6907 (linux_nat_fileio_pid_of): Likewise.
6908 (linux_nat_fileio_open): Likewise.
6909 (linux_nat_fileio_readlink): Likewise.
6910 (linux_nat_fileio_unlink): Likewise.
6911 (linux_nat_add_target): Initialize to_filesystem_is_local,
6912 to_fileio_open, to_fileio_readlink and to_fileio_unlink.
6913 (_initialize_linux_nat): New "set/show debug linux-namespaces"
6914 commands.
6915 * NEWS: Mention new "set/show debug linux-namespaces" commands.
6916
07c138c8
GB
69172015-06-10 Gary Benson <gbenson@redhat.com>
6918
6919 * target.h (struct inferior): New forward declaration.
6920 (struct target_ops) <to_filesystem_is_local>: Update comment.
6921 (struct target_ops) <to_fileio_open>: New argument inf.
6922 Update comment. All implementations updated.
6923 (struct target_ops) <to_fileio_unlink>: Likewise.
6924 (struct target_ops) <to_fileio_readlink>: Likewise.
6925 (target_filesystem_is_local): Update comment.
6926 (target_fileio_open): New argument inf. Update comment.
6927 (target_fileio_unlink): Likewise.
6928 (target_fileio_readlink): Likewise.
6929 (target_fileio_read_alloc): Likewise.
6930 (target_fileio_read_stralloc): Likewise.
6931 * target.c (target_fileio_open): New argument inf.
6932 Pass inf to implementation. Update debug printing.
6933 (target_fileio_unlink): Likewise.
6934 (target_fileio_readlink): Likewise.
6935 (target_fileio_read_alloc_1): New argument inf. Pass inf
6936 to target_fileio_open.
6937 (target_fileio_read_alloc): New argument inf. Pass inf to
6938 target_fileio_read_alloc_1.
6939 (target_fileio_read_stralloc): Likewise.
6940 * gdb_bfd.c (inferior.h): New include.
6941 (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
6942 argument with new argument "inferior". Pass inferior to
6943 target_fileio_open.
6944 (gdb_bfd_open): Supply inferior argument to
6945 gdb_bfd_iovec_fileio_open.
6946 * linux-tdep.c (linux_info_proc): Supply inf argument to
6947 relevant target_fileio calls.
6948 (linux_find_memory_regions_full): Likewise.
6949 (linux_fill_prpsinfo): Likewise.
6950 * remote.c (remote_filesystem_is_local): Supply inf
6951 argument to remote_hostio_open.
6952 (remote_file_put): Likewise.
6953 (remote_file_get): Likewise.
6954 (remote_file_delete): Supply inf argument to
6955 remote_hostio_unlink.
6956
12e2a5fd
GB
69572015-06-10 Gary Benson <gbenson@redhat.com>
6958
6959 * inf-child.c (inf_child_fileio_open): Replace comment.
6960 (inf_child_fileio_pwrite): Likewise.
6961 (inf_child_fileio_pread): Likewise.
6962 (inf_child_fileio_fstat): Insert blank line before comment.
6963 (inf_child_fileio_close): Replace comment.
6964 (inf_child_fileio_unlink): Likewise.
6965 (inf_child_fileio_readlink): Likewise.
6966 * remote.c (remote_hostio_open): Likewise.
6967 (remote_hostio_pread): Likewise.
6968 (remote_hostio_pwrite): Likewise.
6969 (remote_hostio_close): Likewise.
6970 (remote_hostio_unlink): Likewise.
6971 (remote_hostio_readlink): Likewise.
6972 (remote_hostio_fstat): Likewise.
6973 (remote_filesystem_is_local): Likewise.
6974 * target.c (target_fileio_open): Likewise.
6975 (target_fileio_pwrite): Likewise.
6976 (target_fileio_pread): Likewise.
6977 (target_fileio_fstat): Insert blank line before comment.
6978 (target_fileio_close): Replace comment.
6979 (target_fileio_unlink): Likewise.
6980 (target_fileio_readlink): Likewise.
6981 (target_fileio_read_alloc): Likewise.
6982 (target_fileio_read_stralloc): Likewise.
6983
9bc3a976
GB
69842015-06-10 Gary Benson <gbenson@redhat.com>
6985
6986 * linux-thread-db.c (nat/linux-namespaces.h): New include.
6987 (check_pid_namespace_match): Use linux_ns_same rather than
6988 linux_proc_pid_get_ns to spot PID namespace mismatches.
6989 * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
6990 * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
6991
4b8b5e72
GB
69922015-06-10 Gary Benson <gbenson@redhat.com>
6993
6994 * configure.ac (AC_CHECK_FUNCS): Add setns.
6995 * config.in: Regenerate.
6996 * configure: Likewise.
6997 * nat/linux-namespaces.h: New file.
6998 * nat/linux-namespaces.c: Likewise.
6999 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
7000 (linux-namespaces.o): New rule.
7001 * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
7002 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
7003 * config/arm/linux.mh (NATDEPFILES): Likewise.
7004 * config/i386/linux.mh (NATDEPFILES): Likewise.
7005 * config/i386/linux64.mh (NATDEPFILES): Likewise.
7006 * config/ia64/linux.mh (NATDEPFILES): Likewise.
7007 * config/m32r/linux.mh (NATDEPFILES): Likewise.
7008 * config/m68k/linux.mh (NATDEPFILES): Likewise.
7009 * config/mips/linux.mh (NATDEPFILES): Likewise.
7010 * config/pa/linux.mh (NATDEPFILES): Likewise.
7011 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
7012 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
7013 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
7014 * config/s390/linux.mh (NATDEPFILES): Likewise.
7015 * config/sparc/linux.mh (NATDEPFILES): Likewise.
7016 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
7017 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
7018 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
7019
ca095836
GB
70202015-06-10 Gary Benson <gbenson@redhat.com>
7021
7022 * utils.h (make_cleanup_close): Moved to common/filestuff.h.
7023 * utils.c (do_close_cleanup): Moved to common/filestuff.c.
7024 (make_cleanup_close): Likewise.
7025 * common/filestuff.h (make_cleanup_close): Moved from utils.h.
7026 * common/filestuff.c (do_close_cleanup): Moved from utils.c.
7027 (make_cleanup_close): Likewise.
7028
5d9c55d3
JT
70292015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
7030
7031 * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
7032 from SuspendThread().
7033
040ea00b
JT
70342015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
7035
7036 * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
7037 from OutputDebugString.
7038
7d73c23c
WT
70392015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
7040 Mircea Gherzan <mircea.gherzan@intel.com>
7041
7042 * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
7043 MPX_BT_MASK_32): New macros.
7044 (i386_mpx_set_bounds): New function that implements
7045 the command "set-mpx-bound".
7046 (i386_mpx_enabled): Helper function to test MPX availability.
7047 (i386_mpx_bd_base): Helper function to calculate the base directory
7048 address.
7049 (i386_mpx_get_bt_entry): Helper function to access a bound
7050 table entry.
7051 (i386_mpx_print_bounds): Effectively display bound information.
7052 (_initialize_i386_tdep): Add new commands to commands "set mpx" and
7053 "show mpx".
7054 (_initialize_i386_tdep):
7055 Add "bound" to the commands "show mpx" and "set mpx" commands.
7056 (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
7057 and "show mpx" commands.
7058 * NEWS: List new commands for MPX support.
7059
3ac2e371
GB
70602015-06-09 Gary Benson <gbenson@redhat.com>
7061
7062 * common/fileio.h (fileio_to_host_mode): New declaration.
7063 * common/fileio.c (fileio_to_host_mode): New Function.
7064 * inf-child.c (inf_child_fileio_open): Process mode argument
7065 with fileio_to_host_mode.
7066
ecef18c5
GB
70672015-06-09 Gary Benson <gbenson@redhat.com>
7068
7069 * common/fileio.c (fileio_mode_pack): Fix preprocessor
7070 conditional.
7071
e3dd7556
GB
70722015-06-05 Gary Benson <gbenson@redhat.com>
7073
7074 * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
7075 * remote.c (remote_filesystem_is_local): ...here.
7076
5b74bf7d
YQ
70772015-06-04 Yao Qi <yao.qi@linaro.org>
7078
7079 * gdbarch.c: Regenerate it.
7080
7f361056
JK
70812015-06-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7082
7083 * arch-utils.c (default_infcall_munmap): New.
7084 * arch-utils.h (default_infcall_munmap): New declaration.
7085 * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
7086 (munmap_list_free, munmap_listp_free_cleanup): New.
7087 (struct setup_sections_data): Add field munmap_list_headp.
7088 (setup_sections): Call munmap_list_add.
7089 (compile_object_load): New variable munmap_list_head, initialize
7090 setup_sections_data.munmap_list_headp, return munmap_list_head.
7091 * compile/compile-object-load.h (struct munmap_list): New declaration.
7092 (struct compile_module): Add field munmap_list_head.
7093 (munmap_list_free): New declaration.
7094 * compile/compile-object-run.c (struct do_module_cleanup): Add field
7095 munmap_list_head.
7096 (do_module_cleanup): Call munmap_list_free.
7097 (compile_object_run): Pass munmap_list_head to do_module_cleanup.
7098 * gdbarch.c: Regenerate.
7099 * gdbarch.h: Regenerate.
7100 * gdbarch.sh (infcall_munmap): New.
7101 * linux-tdep.c (linux_infcall_munmap): New.
7102 (linux_init_abi): Install it.
7103
3b462ec2
SM
71042015-06-02 Simon Marchi <simon.marchi@ericsson.com>
7105
7106 PR gdb/15564
7107 * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
7108
8d683210
YQ
71092015-06-02 Yao Qi <yao.qi@linaro.org>
7110
7111 * i386-linux-nat.c: Include linux-nat.h.
7112
e0619de6
JK
71132015-06-01 Andreas Schwab <schwab@linux-m68k.org>
7114 Jan Kratochvil <jan.kratochvil@redhat.com>
7115
7116 PR symtab/18392
7117 * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
7118 assertion.
7119 * dwarf2loc.c (chain_candidate): Likewise.
7120
bd16da51
YQ
71212015-06-01 Yao Qi <yao.qi@linaro.org>
7122
7123 * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
7124 (store_vfp_regs): Use PTRACE_SETREGSET.
7125
df9d7ec9
YQ
71262015-06-01 Yao Qi <yao.qi@linaro.org>
7127
7128 * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
7129 (fetch_fpregs): Likewise.
7130 * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
7131 (store_fpregs): Likewise.
7132
10766686
YQ
71332015-06-01 Yao Qi <yao.qi@linaro.org>
7134
7135 * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
7136 (fetch_regs): Likewise.
7137 (store_regs): Use PTRACE_SETREGSET.
7138 (store_register): Likewise.
7139
7efe48d1
YQ
71402015-06-01 Yao Qi <yao.qi@linaro.org>
7141
7142 * arm-linux-nat.c (arm_linux_read_description): Check whether
7143 kernel supports PTRACE_GETREGSET.
7144
433bbbf8
YQ
71452015-06-01 Yao Qi <yao.qi@linaro.org>
7146
7147 * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
7148 * linux-nat.c: ... here.
7149 * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
7150 to ...
7151 * linux-nat.h: ... here.
7152
ca9b78ce
YQ
71532015-06-01 Yao Qi <yao.qi@linaro.org>
7154
7155 * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
7156 * i386-linux-nat.c: Likewise.
7157 * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
7158 * s390-linux-nat.c: Include "nat/linux-ptrace.h".
7159 (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7160 * x86-linux-nat.c: Include "nat/linux-ptrace.h".
7161 * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7162
99cee7b7
EZ
71632015-05-30 Eli Zaretskii <eliz@gnu.org>
7164
7165 * go32-nat.c (go32_xfer_memory): Fix the return value to be
7166 compatible to what read_child and write_child return. This
7167 unbreaks that DJGPP build of GDB which was broken since v7.7.
7168
2147f5bd
MG
71692015-05-29 Martin Galvan <martin.galvan@tallertechnologies.com>
7170
7171 * MAINTAINERS (Write After Approval): Add Martin Galvan.
7172
c8f6c93c
RM
71732015-05-29 Roland McGrath <mcgrathr@google.com>
7174
7175 PR gdb/18464
7176 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
7177 rather than internal_error for an unrecognized value.
7178
8c6a948d
MF
71792015-05-29 Max Filippov <jcmvbkbc@gmail.com>
7180
7181 * xtensa-tdep.c (xtensa_pseudo_register_read)
7182 (xtensa_pseudo_register_write): Don't alias last pseudo register
7183 to a1.
7184
8dd06f7a
DB
71852015-05-28 Don Breazeal <donb@codesourcery.com>
7186
7187 * infrun.c (follow_fork_inferior): Ensure the use of
7188 process-style ptids (pid,0,0) in verbose/debug "Detaching"
7189 messages.
7190
a051152b
DE
71912015-05-28 Doug Evans <dje@google.com>
7192
7193 * dwarf2read.c (record_line_ftype): Remove, duplicate.
7194
a56cc1ce
YQ
71952015-05-28 Yao Qi <yao.qi@linaro.org>
7196
7197 * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
7198 (arm_linux_fetch_inferior_registers): Use
7199 tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
7200 (arm_linux_store_inferior_registers): Likewise.
7201 (arm_linux_read_description): Don't set
7202 arm_linux_has_wmmx_registers.
7203 * arm-tdep.c (arm_gdbarch_init): Set
7204 tdep->have_wmmx_registers according target descriptions.
7205 * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
7206 field.
7207
330c6ca9
YQ
72082015-05-28 Yao Qi <yao.qi@linaro.org>
7209
7210 * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
7211 (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
7212 instead of arm_linux_vfp_register_count.
7213 (store_vfp_regs): Likewise.
7214 (arm_linux_fetch_inferior_registers): Likewise.
7215 (arm_linux_store_inferior_registers): Likewise.
7216 (arm_linux_read_description): Don't set
7217 arm_linux_vfp_register_count.
7218 * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
7219 Adjust.
7220 * arm-tdep.c (arm_gdbarch_init): Add assert on
7221 vfp_register_count.
7222 * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
7223 field to vfp_register_count. All users updated.
7224
d403db27
KH
72252015-05-28 Kyle Huey <me@kylehuey.com> (tiny patch)
7226
7227 * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
7228 ELFOSABI_GNU binaries.
7229
d9b3de22
DE
72302015-05-27 Doug Evans <dje@google.com>
7231
7232 * dwarf2read.c (lnp_state_machine): New typedef.
7233 (lnp_reader_state): New typedef.
7234 (dwarf_record_line_1): Renamed from dwarf_record_line.
7235 All callers updated.
7236 (dwarf_record_line): New function.
7237 (init_lnp_state_machine): New function.
7238 (check_line_address): Replace p_record_line parameter with state.
7239 All callers updated.
7240 (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
7241 Update to record state in lnp_state_machine.
7242
924c2928
DE
72432015-05-27 Doug Evans <dje@google.com>
7244
7245 * dwarf2read.c (record_line_ftype): New typedef.
7246 (check_line_address): New function.
7247 (dwarf_decode_lines_1): Call it.
7248
27e0867f
DE
72492015-05-27 Doug Evans <dje@google.com>
7250
7251 * NEWS: Mention "set debug dwarf-line".
7252 * dwarf2read.c (dwarf_line_debug): New static global.
7253 (add_include_dir): Add debug dwarf-line support.
7254 (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
7255 (_initialize_dwarf2_read): New parameter "debug dwarf-line".
7256
4dcabcc2
DE
72572015-05-27 Doug Evans <dje@google.com>
7258
7259 * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
7260 All callers updated.
7261 (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
7262 * cp-support.h (cp_lookup_nested_symbol): Update.
7263
b2e2f908
DE
72642015-05-27 Doug Evans <dje@google.com>
7265
7266 PR symtab/18258
7267 * block.c (block_find_symbol): New function.
7268 (block_find_non_opaque_type): Ditto.
7269 (block_find_non_opaque_type_preferred): Ditto.
7270 * block.h (block_symbol_matcher_ftype): New typedef.
7271 (block_find_symbol): Declare.
7272 (block_find_non_opaque_type): Ditto.
7273 (block_find_non_opaque_type_preferred): Ditto.
7274 * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
7275 * psymtab.c (psym_lookup_symbol): Ditto.
7276 * symtab.c (basic_lookup_transparent_type_1): New function.
7277 (basic_lookup_transparent_type): Call it.
7278
f62fce35
YQ
72792015-05-27 Yao Qi <yao.qi@linaro.org>
7280
7281 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
7282 AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
7283
5d98d3cd
YQ
72842015-05-27 Yao Qi <yao.qi@linaro.org>
7285
7286 * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
7287 before operator &&.
7288 (aarch64_record_load_store): Likewise.
7289
82c7be31
DE
72902015-05-26 Doug Evans <dje@google.com>
7291
7292 PR c++/18141, c++/18417.
7293 * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
7294 a typedef.
7295
b4f54984
DE
72962015-05-26 Doug Evans <dje@google.com>
7297
7298 * NEWS: Add entries for command renamings.
7299 * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
7300 All uses updated.
7301 (dwarf_die_debug): Renamed from dwarf2_die_debug. All uses updated.
7302 (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
7303 All uses updated.
7304 (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
7305 All callers updated. Fix spelling of DWARF in help text.
7306 (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
7307 All uses updated.
7308 (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
7309 All uses updated.
7310 (set_dwarf_cmd): Renamed from set_dwarf2_cmd. All callers updated.
7311 (show_dwarf_cmd): Renamed from show_dwarf2_cmd. All callers updated.
7312 (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
7313 All uses updated.
7314 (show_dwarf_always_disassemble): Renamed from
7315 show_dwarf2_always_disassemble. All callers updated.
7316 (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
7317 "set/show dwarf". Rename "set/show dwarf2 max-cache-age" to
7318 "set/show dwarf max-cache-age". Rename
7319 "set/show dwarf2 always-disassemble" to
7320 "set/show dwarf always-disassemble". Rename
7321 "set/show debug dwarf2-read" to "set/show debug dwarf-read". Rename
7322 "set/show debug dwarf2-die" to "set/show debug dwarf-die".
7323
4ea6efe9
DE
73242015-05-26 Doug Evans <dje@google.com>
7325
7326 PR python/18438
7327 * python/py-lazy-string.c (stpy_convert_to_value): Use
7328 gdbpy_gdb_memory_error not PyExc_MemoryError.
7329 (gdbpy_create_lazy_string_object): Ditto.
7330
b93fd21d
AB
73312015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
7332
7333 * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
7334
55b40027
AB
73352015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
7336
7337 * tui/tui-regs.c (tui_reg_prev_command): New function.
7338 (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
7339 * reggroups.c (reggroup_prev): New function.
7340 * reggroups.h (reggroup_prev): Add declaration. Update comment.
7341
99afc88b
OJ
73422015-05-26 Omair Javaid <omair.javaid@linaro.org>
7343 Yao Qi <yao.qi@linaro.org>
7344
7345 * aarch64-linux-tdep.c: Include linux-record.h and
7346 record-full.h.
7347 (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
7348 (aarch64_syscall): New enum.
7349 (aarch64_canonicalize_syscall): New function.
7350 (aarch64_all_but_pc_registers_record): New function.
7351 (aarch64_linux_syscall_record): New function.
7352 (aarch64_linux_init_abi): Install AArch64 process record
7353 handler. Update to handle syscall recording.
7354 * aarch64-tdep.c: Include record.h and record-full.h.
7355 (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
7356 (struct aarch64_mem_r): Define.
7357 (aarch64_record_result): New enum.
7358 (struct insn_decode_record): Define.
7359 (insn_decode_record): New typedef.
7360 (aarch64_record_data_proc_reg): New function.
7361 (aarch64_record_data_proc_imm): New function.
7362 (aarch64_record_branch_except_sys): New function.
7363 (aarch64_record_load_store): New function.
7364 (aarch64_record_data_proc_simd_fp): New function.
7365 (aarch64_record_asimd_load_store): New function.
7366 (aarch64_record_decode_insn_handler): New function.
7367 (deallocate_reg_mem): New function.
7368 (aarch64_process_record): New function.
7369 * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
7370 New field.
7371 (aarch64_process_record): New extern declaration.
7372 * configure.tgt: Add linux-record.o to gdb_target_obs.
7373 * linux-record.h (struct linux_record_tdep) <arg7>: New field.
7374
c16a3f52
OJ
73752015-05-26 Omair Javaid <omair.javaid@linaro.org>
7376
7377 * NEWS: Add a note on process record-replay support on aarch64*-linux*
7378 targets.
7379
c9cf6e20
MG
73802015-05-26 Martin Galvan <martin.galvan@tallertechnologies.com>
7381
7382 * amd64-tdep.c: Replace in_function_epilogue_p with
7383 stack_frame_destroyed_p throughout.
7384 * arch-utils.c: Ditto.
7385 * arch-utils.h: Ditto.
7386 * arm-tdep.c: Ditto.
7387 * breakpoint.c: Ditto.
7388 * gdbarch.sh: Ditto.
7389 * hppa-tdep.c: Ditto.
7390 * i386-tdep.c: Ditto.
7391 * mips-tdep.c: Ditto.
7392 * nios2-tdep.c: Ditto.
7393 * rs6000-tdep.c: Ditto.
7394 * s390-linux-tdep.c: Ditto.
7395 * score-tdep.c: Ditto.
7396 * sh-tdep.c: Ditto.
7397 * sparc-tdep.c: Ditto.
7398 * sparc-tdep.h: Ditto.
7399 * sparc64-tdep.c: Ditto.
7400 * spu-tdep.c: Ditto.
7401 * tic6x-tdep.c: Ditto.
7402 * tilegx-tdep.c: Ditto.
7403 * xstormy16-tdep.c: Ditto.
7404 * gdbarch.c, gdbarch.h: Re-generated.
7405
a4ea0946
AB
74062015-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
7407
7408 * NEWS: Mention 'tui enable' and 'tui disable'.
7409 * tui/tui.c (tui_enable_command): New function.
7410 (tui_disable_command): New function.
7411 (_initialize_tui): New function.
7412
b75c69bb
AB
74132015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7414
7415 * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
7416
c1b009ee
AB
74172015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7418
7419 * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
7420 buf_ptr is freed.
7421
880d1e40
AB
74222015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7423
7424 * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
7425 into ...
7426 (tui_set_layout_for_display_command): ...here, before calling
7427 tui_set_layout. Only set the layout if gdb has not already
7428 entered the TUI_FAILURE state.
7429
a0145030
AB
74302015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7431
7432 * tui/tui-layout.c (layout_completer): New function.
7433 (_initialize_tui_layout): Set completer on layout command.
7434
7bd0be3a
AB
74352015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7436
7437 * tui/tui-layout.c (tui_set_layout): Remove
7438 tui_register_display_type parameter. Remove all checking of this
7439 parameter, and reindent function. Update header comment.
7440 (tui_set_layout_for_display_command): Rename to...
7441 (tui_set_layout_by_name): ...this, and don't check for different
7442 register class types, don't pass a tui_register_display_type to
7443 tui_set_layout. Update header comment.
7444 (layout_names): Remove register set specific names.
7445 * tui/tui-layout.h (tui_set_layout): Remove
7446 tui_register_display_type parameter.
7447 * tui/tui.c (tui_rl_change_windows): Don't pass a
7448 tui_register_display_type to tui_set_layout.
7449 (tui_rl_delete_other_windows): Likewise.
7450 (tui_enable): Likewise.
7451 * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
7452 (TUI_FLOAT_REGS_NAME_LOWER): Remove.
7453 (TUI_GENERAL_REGS_NAME): Remove.
7454 (TUI_GENERAL_REGS_NAME_LOWER): Remove.
7455 (TUI_SPECIAL_REGS_NAME): Remove.
7456 (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
7457 (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
7458 (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
7459 (enum tui_register_display_type): Remove.
7460 (struct tui_layout_def): Remove regs_display_type and
7461 float_regs_display_type fields.
7462 (struct tui_data_info): Remove regs_display_type field.
7463 (tui_layout_command): Use new name for
7464 tui_set_layout_for_display_command.
7465 * tui/tui-data.c (layout_def): Don't initialise removed fields.
7466 (tui_clear_win_detail): Don't initialise removed fields of
7467 win_info.
7468 * tui/tui-regs.c (tui_show_registers): Use new name for
7469 tui_set_layout_for_display_command.
7470 * tui/tui.h (tui_set_layout_for_display_command): Rename
7471 declaration to...
7472 (tui_set_layout_by_name): ...this.
7473 * printcmd.c (display_command): Remove tui related layout call,
7474 and reindent.
7475
0b6e5e10
JB
74762015-05-20 Joel Brobecker <brobecker@adacore.com>
7477
7478 * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
7479 (handle_inferior_event): New function.
7480
1da0522e
JB
74812015-05-20 Joel Brobecker <brobecker@adacore.com>
7482
7483 * ada-lang.c (to_fixed_array_type): Rename local variable
7484 typename into type_name.
7485
5fe75eec
JK
74862015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7487
7488 Fix ASAN crash for gdb.compile/compile.exp.
7489 * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
7490
a4063588
JK
74912015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7492
7493 * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
7494 (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
7495 * compile/compile-object-load.c (setup_sections, compile_object_load):
7496 Likewise.
7497 * compile/compile.c (compile_to_object): Likewise.
7498
37442ce1
DE
74992015-05-16 Doug Evans <xdje42@gmail.com>
7500
7501 * NEWS: Mention support for unbuffered Guile memory ports.
7502 * scm-ports.c (ioscm_memory_port): Update comments on end, size.
7503 (ioscm_lseek_address): Improve overflow calculation.
7504 (gdbscm_memory_port_fill_input): Add assert.
7505 (gdbscm_memory_port_write): Handle unbuffered ports.
7506 Handle large writes identical to Guile's fport_write.
7507 (gdbscm_memory_port_seek): Fix seeking past end check.
7508 (gdbscm_memory_port_close): Handle closing unbuffered port.
7509 (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
7510 (ioscm_init_memory_port): Handle unbuffered ports.
7511 (ioscm_reinit_memory_port): Ditto.
7512 (ioscm_init_memory_port): Update size calculation.
7513 (gdbscm_open_memory): Support zero sized ports.
7514
d976bace
JK
75152015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7516
7517 * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
7518 variable compiler warnings.
7519
4d18dfad
JK
75202015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7521
7522 * compile/compile-object-load.c (get_out_value_type): Fix returned type.
7523
36de76f9
JK
75242015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7525 Phil Muldoon <pmuldoon@redhat.com>
7526
7527 * NEWS (Changes since GDB 7.9): Add compile print.
7528 * compile/compile-c-support.c (add_code_header, add_code_footer)
7529 (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
7530 COMPILE_I_PRINT_VALUE_SCOPE.
7531 * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
7532 (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
7533 New.
7534 * compile/compile-object-load.c: Include block.h.
7535 (get_out_value_type): New function.
7536 (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
7537 COMPILE_I_PRINT_VALUE_SCOPE. Set compile_module's OUT_VALUE_ADDR and
7538 OUT_VALUE_TYPE.
7539 * compile/compile-object-load.h (struct compile_module): Add fields
7540 out_value_addr and out_value_type.
7541 * compile/compile-object-run.c: Include valprint.h and compile.h.
7542 (struct do_module_cleanup): Add fields out_value_addr and
7543 out_value_type.
7544 (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
7545 COMPILE_I_PRINT_VALUE_SCOPE.
7546 (compile_object_run): Propagate out_value_addr and out_value_type.
7547 Pass OUT_VALUE_ADDR.
7548 * compile/compile.c: Include valprint.h.
7549 (compile_print_value, compile_print_command): New functions.
7550 (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
7551 (_initialize_compile): Update compile code help text. Install
7552 compile_print_command.
7553 * compile/compile.h (compile_print_value): New prototype.
7554 * defs.h (enum compile_i_scope_types): Add
7555 COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
7556
83d3415e
JK
75572015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7558
7559 * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
7560 Rely on its parameter count.
7561 (compile_object_load): Replace lookup_minimal_symbol_text by
7562 lookup_global_symbol_from_objfile. Verify FUNC_SYM. Set it in the
7563 return value.
7564 * compile/compile-object-load.h (struct compile_module): Replace
7565 func_addr by func_sym.
7566 * compile/compile-object-run.c: Include block.h.
7567 (compile_object_run): Reset module variable after it is freed. Use
7568 FUNC_SYM instead of FUNC_ADDR. Rely on it.
7569
3a9558c4
JK
75702015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7571
7572 * compile/compile-c-support.c (print_one_macro): Use #ifndef.
7573 (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
7574 (c_compute_program): Call generate_register_struct after typedefs.
7575 * compile/compile-loc2c.c (push, pushf_register_address)
7576 (pushf_register): Cast to GCC_UINTPTR.
7577 (do_compile_dwarf_expr_to_c): Use unused attribute. Add space after
7578 type. Use GCC_UINTPTR instead of void *. Remove excessive cast.
7579 (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
7580 * compile/compile.c (_initialize_compile): Enable warnings for
7581 COMPILE_ARGS.
7582
5c65b58a
JK
75832015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7584
7585 * cli/cli-script.c (execute_control_command): Update
7586 eval_compile_command caller.
7587 * compile/compile-object-load.c (compile_object_load): Add parameters
7588 scope and scope_data. Set them.
7589 * compile/compile-object-load.h (struct compile_module): Add fields
7590 scope and scope_data.
7591 (compile_object_load): Add parameters scope and scope_data.
7592 * compile/compile-object-run.c (struct do_module_cleanup): Add fields
7593 scope and scope_data.
7594 (compile_object_run): Propagate the fields scope and scope_data.
7595 * compile/compile.c (compile_file_command, compile_code_command):
7596 Update eval_compile_command callers.
7597 (eval_compile_command): Add parameter scope_data. Pass it plus scope.
7598 * compile/compile.h (eval_compile_command): Add parameter scope_data.
7599 * defs.h (struct command_line): Add field scope_data.
7600
1c88ceb1
JK
76012015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7602
7603 * printcmd.c (struct format_data): Move it to valprint.h.
7604 (print_command_parse_format, print_value): New functions from ...
7605 (print_command_1): ... here. Call them.
7606 * valprint.h (struct format_data): Move it here from printcmd.c.
7607 (print_command_parse_format, print_value): New declarations.
7608
0b738f27
JK
76092015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7610
7611 * compile/compile-object-load.c (compile_object_load): Add
7612 COMPILE_DEBUG message.
7613
aa715135
JG
76142015-05-15 Jerome Guitton <guitton@adacore.com>
7615
7616 * ada-lang.c (ada_value_ptr_subscript): Use enum position of
7617 index to get element instead of enum value.
7618 (ada_value_slice_from_ptr, ada_value_slice): Use enum position
7619 of index to compute length, but enum values to compute bounds.
7620 (ada_array_length): Use enum position of index instead of enum value.
7621 (pos_atr): Move position computation to...
7622 (ada_evaluate_subexp): Use enum values to compute bounds.
7623 * gdbtypes.c (discrete_position): ...this new function.
7624 * gdbtypes.h (discrete_position): New function declaration.
7625 * valprint.c (val_print_array_elements): Call discrete_position
7626 to handle array indexed by non-contiguous enumeration types.
7627
931e5bc3
JG
76282015-05-15 Jerome Guitton <guitton@adacore.com>
7629
7630 * ada-lang.c (find_parallel_type_by_descriptive_type):
7631 Go through typedefs during lookup.
7632 (to_fixed_array_type): Add support for non-bit packed arrays
7633 as variable-length fields.
7634
4e63d0ac
PA
76352015-05-15 Pedro Alves <palves@redhat.com>
7636 Simon Marchi <simon.marchi@ericsson.com>
7637
7638 * event-loop.c (gdb_notifier) <next_file_handler,
7639 next_poll_fds_index>: New fields.
7640 (get_next_file_handler_to_handle_and_advance): New function.
7641 (delete_file_handler): If deleting the next file handler to
7642 handle, advance to the next file handler.
7643 (gdb_wait_for_event): Bail early if no event fired. Poll file
7644 handlers in round-robin fashion.
7645
52e48b36
PA
76462015-05-15 Pedro Alves <palves@redhat.com>
7647
7648 * linux-tdep.c (linux_find_memory_regions_full): Rename local
7649 'private' to 'priv'.
7650
2465e12e
PA
76512015-05-15 Pedro Alves <palves@redhat.com>
7652
7653 * nat/linux-nat.h: Include "target/waitstatus.h".
7654
13fa0398
YZ
76552015-05-15 Yuanhui Zhang <asmwarrior@gmail.com>
7656
7657 * python/py-unwind.c (struct reg_info): Move out of ...
7658 (struct cached_frame_info): ... this scope.
7659 (pending_frame_object_type, unwind_info_object_type): Make extern.
7660
9cd4d857
JB
76612015-05-15 Joel Brobecker <brobecker@adacore.com>
7662
7663 * ada-lang.c (ada_value_primitive_packed_val): Make sure
7664 accumSize is never negative.
7665
e3555239
PP
76662015-05-14 Patrick Palka <patrick@parcs.ath.cx>
7667
7668 * tui/tui-command.c: Remove include of <ctype.h>.
7669 (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
7670
08a76f8a
MG
76712015-05-13 Martin Galvan <martin.galvan@tallertechnologies.com>
7672
7673 * dwarf2read.c (die_needs_namespace): Return 1 for
7674 DW_TAG_inlined_subroutine.
7675
bd49952b
JK
76762015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7677
7678 * regcache.c (regcache_cpy_no_passthrough): New declaration.
7679 (regcache_cpy_no_passthrough): Make it static, add function comment.
7680 * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
7681 (regcache_cpy_no_passthrough): Remove declaration.
7682
46c03469
JK
76832015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7684
7685 * gdbthread.h (struct thread_control_state): Update comment for
7686 proceed_to_finish.
7687 * infcall.c (run_inferior_call): Update comment about
7688 proceed_to_finish.
7689 * infcmd.c (get_return_value): Update comment about stop_registers.
7690 (finish_forward): Update comment about proceed_to_finish.
7691 * infrun.c (stop_registers): Remove.
7692 (clear_proceed_status, normal_stop): Remove stop_registers handling.
7693 * infrun.h (stop_registers): Remove.
7694
8a6c4031
JK
76952015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7696
7697 * infcall.c (struct dummy_frame_context_saver)
7698 (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
7699 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
7700 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
7701 New.
7702 (call_function_by_hand_dummy): Move discard_cleanups of
7703 inf_status_cleanup before dummy_frame_push. Call
7704 dummy_frame_context_saver_setup and prepare context_saver_cleanup.
7705 Use dummy_frame_context_saver_get_regs instead of stop_registers.
7706 * infcall.h (struct dummy_frame_context_saver)
7707 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
7708 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
7709 New declarations.
7710 * infcmd.c: Include infcall.h.
7711 (get_return_value): Add parameter ctx_saver, use it instead of
7712 stop_registers.
7713 (print_return_value): Add parameter ctx_saver, pass it.
7714 (struct finish_command_continuation_args): Add field ctx_saver.
7715 (finish_command_continuation): Update print_return_value caller.
7716 (finish_command_continuation_free_arg): Free also ctx_saver.
7717 (finish_forward): Call dummy_frame_context_saver_setup.
7718 * inferior.h (struct dummy_frame_context_saver): New declaration.
7719 (get_return_value): Add parameter ctx_saver.
7720 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
7721 get_return_value caller.
7722
10989690
JK
77232015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7724
7725 * dummy-frame.c (struct dummy_frame_dtor_list): New.
7726 (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
7727 (remove_dummy_frame): Process dtor_list.
7728 (pop_dummy_frame): Process dtor_list.
7729 (register_dummy_frame_dtor): Maintain dtor_list.
7730 (find_dummy_frame_dtor): Handle dtor_list.
7731 * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
7732 Update comments.
7733
5e970501
JK
77342015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7735
7736 * compile/compile-object-run.c (do_module_cleanup): Add parameter
7737 registers_valid.
7738 (compile_object_run): Update do_module_cleanup caller.
7739 * dummy-frame.c: Include infcall.h.
7740 (struct dummy_frame): Update dtor comment.
7741 (remove_dummy_frame): Call dtor.
7742 (pop_dummy_frame): Update dtor caller.
7743 * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
7744 registers_valid.
7745
1c4eb778
JB
77462015-05-13 Joel Brobecker <brobecker@adacore.com>
7747
7748 GDB 7.9.1 released.
7749
f5f85ab9
JB
77502015-05-13 Joel Brobecker <brobecker@adacore.com>
7751
7752 * NEWS: Create "Changes in GDB 7.9.1" section. Move news about
7753 Xmethods now being able to specify a result type to that new
7754 sectioin.
7755
242cd84c
PP
77562015-05-13 Patrick Palka <patrick@parcs.ath.cx>
7757
7758 * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
7759 first before resizing the window.
e3555239 7760 * tui/tui.c (tui_enable): Likewise.
242cd84c
PP
7761
77622015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
558e5469
JK
7763
7764 * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
7765 * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
7766 * infcall.c (call_function_by_hand_dummy): Use proper typedef for
7767 dummy_dtor parameter.
7768 * infcall.h: Include dummy-frame.h.
7769 (call_function_by_hand_dummy_dtor_ftype): Remove.
7770 (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
7771 parameter.
7772
ebfd00d2
PP
77732015-05-13 Patrick Palka <patrick@parcs.ath.cx>
7774
7775 PR gdb/17820
7776 * top.c (history_size_setshow_var): Change type to signed.
7777 Initialize to -2. Update documentation.
7778 (set_readline_history_size): Define.
7779 (set_history_size_command): Use it. Remove logic for handling
7780 out-of-range sizes.
7781 (init_history): Use set_readline_history_size(). Test for a
7782 value of -2 instead of 0 when determining whether to set a
7783 default history size.
7784 (init_main): Decode the argument of the "size" command as a
7785 zuinteger_unlimited.
7786
83769d0b
DE
77872015-05-12 Doug Evans <dje@google.com>
7788
7789 * dwarf2read.c (struct file_entry): Tweak comments.
7790 (get_debug_line_section): Tweak comments.
7791
0d71eef5
DB
77922015-05-12 Don Breazeal <donb@codesourcery.com>
7793
7794 * NEWS: Announce fork support in the RSP and support
7795 for fork debugging in extended mode.
7796
cbb8991c
DB
77972015-05-12 Don Breazeal <donb@codesourcery.com>
7798
7799 * remote.c (remote_insert_fork_catchpoint): New function.
7800 (remote_remove_fork_catchpoint): New function.
7801 (remote_insert_vfork_catchpoint): New function.
7802 (remote_remove_vfork_catchpoint): New function.
7803 (pending_fork_parent_callback): New function.
7804 (remove_new_fork_child): New function.
7805 (remote_update_thread_list): Call remote_notif_get_pending_events
7806 and remove_new_fork_child.
7807 (extended_remote_kill): Kill fork child when killing the
7808 parent before follow_fork completes.
7809 (init_extended_remote_ops): Initialize target vector with
7810 new fork catchpoint functions.
7811
c269dbdb
DB
78122015-05-12 Don Breazeal <donb@codesourcery.com>
7813
7814 * remote.c (remove_vfork_event_p): New function.
7815 (remote_follow_fork): Add vfork event type to event checking.
7816 (remote_parse_stop_reply): New stop reasons "vfork" and
7817 "vforkdone" for RSP 'T' Stop Reply Packet.
7818
de0d863e
DB
78192015-05-12 Don Breazeal <donb@codesourcery.com>
7820
7821 * linux-nat.c (linux_nat_ptrace_options): New function.
7822 (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
7823 Call linux_nat_ptrace_options and use different argument to
7824 linux_enable_event_reporting.
7825 (_initialize_linux_nat): Delete call to
7826 linux_ptrace_set_additional_flags.
c8f6c93c 7827 * nat/linux-ptrace.c (current_ptrace_options): Rename to
de0d863e
DB
7828 supported_ptrace_options.
7829 (additional_flags): Delete variable.
7830 (linux_check_ptrace_features): Use supported_ptrace_options.
7831 (linux_test_for_tracesysgood, linux_test_for_tracefork):
7832 Likewise, and remove additional_flags check.
7833 (linux_enable_event_reporting): Change 'attached' argument to
7834 'options'. Use supported_ptrace_options.
c8f6c93c 7835 (ptrace_supports_feature): Change comment. Use
de0d863e
DB
7836 supported_ptrace_options.
7837 (linux_ptrace_set_additional_flags): Delete function.
7838 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
7839 Delete function prototype.
7840 * remote.c (remote_fork_event_p): New function.
7841 (remote_detach_pid): New function.
7842 (remote_detach_1): Call remote_detach_pid, don't mourn inferior
7843 if doing detach-on-fork.
7844 (remote_follow_fork): New function.
7845 (remote_parse_stop_reply): Handle new "T" stop reason "fork".
7846 (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
7847 (init_extended_remote_ops): Initialize to_follow_fork.
7848
89245bc0
DB
78492015-05-12 Don Breazeal <donb@codesourcery.com>
7850
7851 * nat/linux-ptrace.c (linux_check_ptrace_features): Change
7852 from static to extern.
7853 * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
7854 * remote.c (anonymous enum): <PACKET_fork_event_feature,
7855 * PACKET_vfork_event_feature>: New enumeration constants.
7856 (remote_protocol_features): Add table entries for new packets.
7857 (remote_query_supported): Add new feature queries to qSupported
7858 packet.
7859
835205d0
GB
78602015-05-12 Gary Benson <gbenson@redhat.com>
7861
7862 * remote.c (remote_add_inferior): Call exec_file_locate_attach
7863 for fake PIDs as well as real ones.
7864 (remote_pid_to_exec_file): Send empty annex if PID is fake.
7865
4c082a81
SC
78662015-05-09 Siva Chandra Reddy <sivachandra@google.com>
7867
7868 * NEWS (Python Scripting): Mention the new gdb.Value methods.
7869 * python/py-value.c (valpy_reference_value): New function.
7870 (valpy_const_value): Likewise.
7871 (value_object_methods): Add new methods.
7872 * value.c (make_cv_value): New function.
7873 * value.h (make_cv_value): Declare.
7874
afa6c9ab
SL
78752015-05-08 Yao Qi <yao@codesourcery.com>
7876 Sandra Loosemore <sandra@codesourcery.com>
7877
7878 * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
7879 to 'lh->include_dirs' before accessing to it.
7880 (psymtab_include_file_name): Likewise.
7881 (dwarf_decode_lines_1): Likewise.
7882 (dwarf_decode_lines): Likewise.
7883 (file_file_name): Likewise.
7884
35d54293
SL
78852015-05-08 Sandra Loosemore <sandra@codesourcery.com>
7886
7887 * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
7888 (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
7889 (nios2_linux_rt_sigreturn_init): Adjust base address of
7890 register save area.
7891
b73c49b7
SL
78922015-05-08 Sandra Loosemore <sandra@codesourcery.com>
7893
7894 * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
7895 "trap 31" as the breakpoint instruction on all targets.
7896
dd9f02a0
JK
78972015-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7898
7899 * infcmd.c (print_return_value): Remove unused declaration.
7900
6ad395a7
JB
79012015-05-08 Joel Brobecker <brobecker@adacore.com>
7902
7903 * dwarf2read.c (attr_to_dynamic_prop)
7904 <DW_AT_data_member_location>: Use read_type_die isntead of
7905 get_die_type.
7906
8344af1e
JB
79072015-05-08 Joel Brobecker <brobecker@adacore.com>
7908
7909 * ada-lang.c (ada_convert_actual): Add handling of formals
7910 passed inside an aligner type.
7911
80b0912b
JB
79122015-05-08 Joel Brobecker <brobecker@adacore.com>
7913
7914 * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
7915
df2eb078
SC
79162015-05-08 Siva Chandra Reddy <sivachandra@google.com>
7917
7918 PR python/18291
7919 * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
7920 Print xmethod matcher status.
7921
2492f0d0
AA
79222015-05-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
7923
7924 * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
7925 register in the regcache when treating the PSWM register, and vice
7926 versa.
7927
1c56a84d
GB
79282015-05-07 Gary Benson <gbenson@redhat.com>
7929
7930 * linux-thread-db.c (struct thread_db_info)
7931 <td_ta_map_id2thr_p>: Remove field.
7932 (try_thread_db_load_1): Remove initialization for the above.
7933
74850322
GB
79342015-05-07 Gary Benson <gbenson@redhat.com>
7935
7936 * linux-thread-db.c (struct thread_db_info)
7937 <td_thr_validate_p>: Remove field.
7938 (try_thread_db_load_1): Remove initialization for the above.
7939
e26efa40
JK
79402015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7941
7942 * compile/compile-object-load.c (compile_object_load): Support
7943 mst_text_gnu_ifunc.
7944
851c9091
JK
79452015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7946
7947 * compile/compile.c (compile_to_object): Make the cmd_string parameter
7948 const. Use new variables for the const compatibility.
7949 (eval_compile_command): Make the cmd_string parameter const.
7950 * compile/compile.h (eval_compile_command): Make the cmd_string
7951 parameter const.
7952
f218b647
JB
79532015-05-06 Joel Brobecker <brobecker@adacore.com>
7954
7955 * defs.h (deprecated_init_ui_hook): Delete. Remove associated
7956 comment.
7957 * top.c (deprecated_init_ui_hook): Delete.
7958 (gdb_init): Remove handling of deprecated_init_ui_hook.
7959 * interps.c (clear_interpreter_hooks): Remove handling of
7960 deprecated_init_ui_hook.
7961 * main.c (captured_main): Update comment.
7962
b30a0bc3
JB
79632015-05-06 Joel Brobecker <brobecker@adacore.com>
7964
7965 * solib.c (_initialize_solib): Add "info dll" alias creation.
7966 * windows-nat.c (set_windows_aliases): Delete.
7967 (_initialize_windows_nat): Remove deprecated_init_ui_hook
7968 assignment.
7969 * NEWS: Add news entry about "info dll" now being available
7970 on all platforms.
7971
7c512744
JB
79722015-05-05 Joel Brobecker <brobecker@adacore.com>
7973
7974 * ada-lang.c (value_assign_to_component): Reformat and improve
7975 documentation. Remove all trailing spaces.
7976
0fa7fe50
JB
79772015-05-05 Joel Brobecker <brobecker@adacore.com>
7978
7979 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
7980 Stop counting inlined frames as soon as an out-of-line function
7981 is found.
7982
3ea89b92
PMR
79832014-05-05 Pierre-Marie de Rodat <derodat@adacore.com>
7984
7985 * dwarf2read.c (inherit_abstract_dies): Skip
7986 DW_TAG_GNU_call_site dies while inheriting children of an
7987 abstract DIE into a scope.
7988 (read_lexical_block_scope): Inherit abstract DIE's for
7989 lexical scopes.
7990
2478d075
JB
79912015-05-05 Joel Brobecker <brobecker@adacore.com>
7992
7993 * ada-valprint.c (val_print_packed_array_elements): Delete
7994 variable "len". Add a type-length check when comparing two
7995 consecutive elements of the array. Use the element's actual
7996 length in call to value_contents_eq.
7997 * ada-lang.c (ada_value_primitive_packed_val): Always return
7998 a value whose type has been resolved.
7999
fc958966
JB
80002015-05-05 Joel Brobecker <brobecker@adacore.com>
8001
8002 * ada-lang.c (ada_value_primitive_packed_val): Recompute
8003 BIT_SIZE and LEN if the size of the resolved type is smaller
8004 than BIT_SIZE * HOST_CHAR_BIT.
8005
ca34b84f
JB
80062015-05-05 Joel Brobecker <brobecker@adacore.com>
8007
8008 * ada-lang.c (ada_value_primitive_packed_val): Use a more
8009 correct address in call to value_at. Adjust call to
8010 value_address accordingly.
8011
62c67f3c
JB
80122015-05-05 Joel Brobecker <brobecker@adacore.com>
8013
8014 * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
8015 to print it.
8016
c3345124
JB
80172015-05-05 Joel Brobecker <brobecker@adacore.com>
8018
8019 * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
8020 * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
8021 pinfo->valaddr.
8022 * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
8023 * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
8024 (resolve_dynamic_type_internal): Set pinfo.valaddr.
8025 Add handling of addr_stack->valaddr.
8026 (resolve_dynamic_type): Add "valaddr" parameter.
8027 Set pinfo.valaddr field.
8028 * ada-lang.c (ada_discrete_type_high_bound): Update call to
8029 resolve_dynamic_type.
8030 (ada_discrete_type_low_bound): Likewise.
8031 * findvar.c (default_read_var_value): Likewise.
8032 * value.c (value_from_contents_and_address): Likewise.
8033
75ea5859
JB
80342015-05-05 Joel Brobecker <brobecker@adacore.com>
8035
8036 * gdbtypes.c (resolve_dynamic_array): Use
8037 create_array_type_with_stride instead of create_array_type.
8038
0952813b
DD
80392015-04-30 DJ Delorie <dj@redhat.com>
8040
8041 * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
8042 rl78_decode_opcode
8043
2ce1cdbf
DE
80442015-04-29 Doug Evans <dje@google.com>
8045
8046 PR python/18285
8047 * NEWS: Document new gdb.XMethodWorker.get_result_type method.
8048 * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
8049 EVAL_AVOID_SIDE_EFFECTS for xmethods.
8050 * extension-priv.h (struct extension_language_ops)
8051 <get_xmethod_result_type>: New member.
8052 * extension.c (get_xmethod_result_type): New function.
8053 * extension.h (get_xmethod_result_type): Declare.
8054 * python/py-xmethods.c (get_result_type_method_name): New static
8055 global.
8056 (py_get_result_type_method_name): Ditto.
8057 (gdbpy_get_xmethod_result_type): New function.
8058 (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
8059 * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
8060 * python/python.c (python_extension_ops): Add
8061 gdbpy_get_xmethod_result_type.
8062 * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
8063 * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
8064 xmethods.
8065 (value_x_unop): Ditto.
8066 * value.c (result_type_of_xmethod): New function.
8067 * value.h (result_type_of_xmethod): Declare.
8068
998d2a3e
GB
80692015-04-29 Gary Benson <gbenson@redhat.com>
8070
8071 * solib.c (solib_find_1): Allow fd argument to be NULL.
8072 (exec_file_find): Update comment.
8073 (solib_find): Likewise.
8074 * exec.c (exec_file_locate_attach): Use NULL as fd
8075 argument to exec_file_find to avoid having to close
8076 the opened file.
8077 * infrun.c (follow_exec): Likewise.
8078
34f5f757
DE
80792015-04-28 Doug Evans <dje@google.com>
8080
8081 PR python/18299
8082 * python/lib/gdb/printing.py (register_pretty_printer): Handle
8083 name or __name__ attributes. Handle gdb module as first argument.
8084
69b4374a
DE
80852015-04-28 Doug Evans <dje@google.com>
8086
8087 PR python/18089
8088 * python/py-prettyprint.c (print_children): Verify result of children
8089 iterator. Provide better error message.
8090 * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
8091 * python/python.c (gdbpy_print_python_errors_p): New function.
8092
5e7cf078
DE
80932015-04-28 Doug Evans <dje@google.com>
8094
8095 * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
8096
59fb7612
SS
80972015-04-28 Sasha Smundak <asmundak@google.com>
8098
8099 * NEWS: Mention gdb.Type.optimized_out method.
8100 * python/py-type.c (typy_optimized_out): New function.
8101
cea6e4f1
JB
81022015-04-28 John Baldwin <jhb@FreeBSD.org>
8103
8104 * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8105
24b73f8e
PP
81062015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8107
8108 * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
8109 (initialize_utils): Move call of init_page_info() to ...
8110 * top.c (gdb_init): ... here.
8111
a88d0bb3
PP
81122015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8113
8114 * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
8115 (tui_sigwinch_handler): Still update our idea of
8116 the terminal's width and height even when TUI is not active.
8117
d6e5e7f7
PP
81182015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8119
8120 * utils.h (set_screen_width_and_height): Declare.
8121 * utils.c (set_screen_width_and_height): Define.
8122 * tui/tui-win.c (tui_update_gdb_sizes): Use it.
8123
ff862be4
GB
81242015-04-28 Gary Benson <gbenson@redhat.com>
8125
8126 * infrun.c (solist.h): New include.
8127 (follow_exec): Use exec_file_find to prefix execd_pathname
8128 with gdb_sysroot.
8129
2eb639cb
PP
81302015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8131
8132 * tui/tui-source.c (tui_set_source_content): Avoid calling
8133 strcpy() when offset is 0.
8134
97206799
PP
81352015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8136
8137 PR gdb/18155
8138 * tui/tui-data.c (tui_free_window): Don't free the locator
8139 window when passed an SRC_WIN or a DISASSEM_WIN.
8140
63ed8182
PP
81412015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8142
8143 * tui/tui-data.h (struct tui_win_element): Forward-declare.
8144 (tui_win_content): Move declaration.
8145 (struct tui_gen_win_info): Give 'content' field the
8146 type tui_win_content.
8147 * tui/tui-data.c (init_content_element): Remove redundant and
8148 erroneous casts.
8149 (tui_add_content_elements): Remove erroneous cast.
8150 * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
8151 casts.
8152 (tui_get_begin_asm_address): Likewise.
8153 * tui/tui-regs.c (tui_show_registers): Likewise.
8154 (tui_show_register_group): Likewise.
8155 (tui_display_registers_from): Likewise.
8156 (tui_check_register_values): Likewise.
8157 * tui/tui-source.c (tui_set_source_content): Likewise.
8158 (tui_set_source_content_nil): Likewise.
8159 (tui_source_is_displayed): Likewise.
8160 * tui/tui-stack.c (tui_show_locator_content): Likewise.
8161 (tui_set_locator_fullname): Likewise.
8162 (tui_set_locator_info): Likewise.
8163 (tui_show_frame_info): Likewise.
8164 * tui/tui-winsource.c (tui_clear_source_content): Likewise.
8165 (tui_show_source_line): Likewise.
8166 (tui_horizontal_source_scroll): Likewise.
8167 (tui_update_breakpoint_info): Likewise.
8168 (tui_set_exec_info_content): Likewise.
8169 (tui_show_exec_info_content): Likewise.
8170 (tui_alloc_source_buffer): Likewise.
8171 (tui_line_is_displayed): Likewise.
8172 (tui_addr_is_displayed): Likewise.
8173
d2b41ca0
JB
81742015-04-27 John Baldwin <jhb@FreeBSD.org>
8175
8176 * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
8177 event if PL_FLAG_EXEC is set.
8178 [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
8179 [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
8180 (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
8181 "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
8182 Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
8183
e58e05d6
JB
81842015-04-27 John Baldwin <jhb@FreeBSD.org>
8185
8186 * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
8187 [TDP_RFPPWAIT] New variable fbsd_pending_children.
8188 [TDP_RFPPWAIT] (fbsd_remember_child): New function.
8189 [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
8190 [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
8191 [PT_LWPINFO] (fbsd_wait): New function.
8192 [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
8193 [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
8194 [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
8195 [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
8196 [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
8197 [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
8198 [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
8199 [TDP_RFPPWAIT] (fbsd_post_attach): New function.
8200 (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
8201 "fbsd_wait".
8202 [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
8203 Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
8204 Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
8205 Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
8206 Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
8207 Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
8208 Set "to_post_attach" to "fbsd_post_attach".
8209
8f60fe01
JB
82102015-04-27 John Baldwin <jhb@FreeBSD.org>
8211
8212 * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
8213 (fbsd_find_memory_regions): Mark static.
8214 (fbsd_nat_add_target): New function.
8215 * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
8216 fbsd_pid_to_exec_file and fbsd_find_memory_regions.
8217 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
8218 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
8219 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
8220 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
8221
5fbae7d1
GB
82222015-04-27 Gary Benson <gbenson@redhat.com>
8223
8224 * objfiles.c (allocate_objfile): Do not attempt to expand name
8225 if name is a "target:" filename.
8226 * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
8227 to load auto-load scripts for objfiles with "target:" filenames.
8228
417c80f9
AA
82292015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8230
8231 * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
8232 (enum s390_vector_abi_kind): New enum.
8233 (struct gdbarch_tdep)<vector_abi>: New field.
8234 (s390_effective_inner_type): Add parameter min_size. Stop
8235 unwrapping if the inner type is smaller than min_size.
8236 (s390_function_arg_float): Adjust call to
8237 s390_effective_inner_type.
8238 (s390_function_arg_vector): New function.
8239 (s390_function_arg_integer): Adjust comment.
8240 (struct s390_arg_state)<vr>: New field.
8241 (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector
8242 arguments according to vector ABI when appropriate.
8243 (s390_push_dummy_call): Initialize the argument state's field
8244 'vr'. Adjust calls to s390_handle_arg.
8245 (s390_register_return_value): Handle vector return values.
8246 (s390_return_value): Apply the "register" return value convention
8247 to a vector when appropriate.
8248 (s390_gdbarch_init): Initialize tdep->vector_abi.
8249 * NEWS: Announce S390 vector ABI support.
8250
4e65a17e
AA
82512015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8252
8253 * s390-linux-tdep.c (s390_return_value_convention): Remove
8254 function. Inline its logic...
8255 (s390_return_value): ...here. Instead, move the handling of the
8256 "register" return value convention...
8257 (s390_register_return_value): ...here. New function.
8258
80f75320
AA
82592015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8260
8261 * s390-linux-tdep.c
8262 (is_float_singleton): Remove function. Move the "singleton" part
8263 of the logic...
8264 (s390_effective_inner_type): ...here. New function.
8265 (is_float_like): Remove function. Inline its logic...
8266 (s390_function_arg_float): ...here.
8267 (is_pointer_like, is_integer_like, is_struct_like): Remove
8268 functions. Inline their logic...
8269 (s390_function_arg_integer): ...here.
8270 (s390_function_arg_pass_by_reference): Remove function.
8271 (extend_simple_arg): Remove function.
8272 (alignment_of): Remove function.
8273 (struct s390_arg_state): New structure.
8274 (s390_handle_arg): New function.
8275 (s390_push_dummy_call): Move parameter placement logic to the new
8276 function s390_handle_arg. Call it for calculating the stack area
8277 sizes first, and again for actually writing the parameters.
8278
6dbc9c04
AA
82792015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8280
8281 * s390-linux-tdep.c (is_power_of_two): Add comment. Return
8282 false if the argument is zero.
8283
9e195661
PMR
82842015-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
8285
8286 * ada-lang.c (template_to_static_fixed_type): Return input type
8287 when it is already fixed. Cache the input type itself when not
8288 creating a static fixed copy. Make it explicit that we never
8289 molestate the input type.
8290 * gdbtypes.c (resolve_dynamic_struct): Reset the
8291 TYPE_TARGET_TYPE field for resolved copies.
8292
460efde1
JB
82932015-04-27 Joel Brobecker <brobecker@adacore.com>
8294
8295 * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
8296 (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
8297 (template_to_static_fixed_type): Call ada_check_typedef only
8298 when necessary.
8299
6faec16b
AB
83002015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
8301
8302 * cli/cli-dump.c (srec_dump_command): Add internationalization
8303 mark ups.
8304 (ihex_dump_command): Likewise.
8305 (tekhex_dump_command): Likewise.
8306 (binary_dump_command): Likewise.
8307 (binary_append_command): Likewise.
8308
cf75d6c3
AB
83092015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
8310
8311 * cli/cli-dump.c (verilog_cmdlist): New variable.
8312 (dump_verilog_memory): New function.
8313 (dump_verilog_value): New function.
8314 (verilog_dump_command): New function.
8315 (_initialize_cli_dump): Add new commands to support verilog dump
8316 format.
8317 * NEWS: Add entry for "dump verilog".
8318
8cd00c59
PMR
83192015-04-24 Pierre-Marie de Rodat <derodat@adacore.com>
8320
8321 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
8322 descriptive type when there is none.
8323
8900d71e
PP
83242015-04-23 Patrick Palka <patrick@parcs.ath.cx>
8325
8326 * tui/tui-win.c (tui_async_resize_screen): Call
8327 rl_resize_terminal().
8328
f16eab5f
JT
83292015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
8330
8331 * windows-nat.c (handle_output_debug_string): Don't change
8332 current_event.dwThreadId.
8333 (get_windows_debug_event): Use thread_id, rather than relying on
8334 current_event.dwThreadId being changed.
8335
68ffc902
JT
83362015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
8337
8338 * windows-nat.c (windows_continue): Report an error if
8339 ContinueDebugEvent() fails.
8340
23942819
JT
83412015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8342
8343 * windows-nat.c (windows_resume): Fix misspelling in debug output.
8344
e6ad66bd
JT
83452015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8346
8347 * windows-nat.c (get_windows_debug_event): Replace retval with
8348 thread_id throughout. Update stale comment.
8349
776704b9
JT
83502015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8351
8352 * windows-nat.c (get_windows_debug_event): Don't use ternary
8353 conditional operator.
8354
8aae4344
PM
83552015-04-21 Pierre Muller <muller@sourceware.org>
8356
8357 PR pascal/17815
8358 p-exp.y (yylex): Reorganize code to return the matched pattern
8359 for a field of this.
8360
819843c7
GB
83612015-04-21 Gary Benson <gbenson@redhat.com>
8362
8363 * common/fileio.h (fileio_to_host_openflags): New declaration.
8364 * common/fileio.c (fcntl.h): New include.
8365 (fileio_to_host_openflags): New function, factored out from...
8366 * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
8367 Single use updated.
8368
0bca7f99
KB
83692015-04-21 Kevin Buettner <kevinb@redhat.com>
8370
8371 * rl78-tdep.c (RL78_SP_ADDR): Define.
8372 (opc_reg_to_gdb_regnum): New static function.
8373 (rl78_analyze_prologue): Recognize instructions forming slightly
8374 more interesting prologues.
8375
e771e4be
PMR
83762015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
8377
8378 Revert:
8379 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8380 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
8381 TYPE_CODE_REF types so that they are not considered as dynamic
8382 depending on the referenced type.
8383 (resolve_dynamic_type_internal): Likewise.
8384
ee715b5a
PMR
83852015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
8386
8387 Revert:
8388 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8389 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
8390 "top_level" parameter.
8391 (resolve_dynamic_type_internal): Remove the unused "top_level"
8392 parameter. Update call to is_dynamic_type_internal.
8393 (is_dynamic_type): Update call to is_dynamic_type_internal.
8394 (resolve_dynamic_range): Update call to
8395 resolve_dynamic_type_internal.
8396 (resolve_dynamic_union): Likewise.
8397 (resolve_dynamic_struct): Likewise.
8398 (resolve_dynamic_type): Likewise.
8399
e31d7699
GKB
84002015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
8401
8402 * breakpoint.c (update_dprintf_command_list): Remove duplicated
8403 xmalloc.
8404
d214e5e7
TS
84052015-04-20 Thomas Schwinge <thomas@codesourcery.com>
8406
110f9112
TS
8407 * reply_mig_hack.awk: Robustify parsing.
8408
d214e5e7
TS
8409 * reply_mig_hack.awk: Don't bother to declare an intermediate
8410 function pointer variable.
8411
8f61baf8
DE
84122015-04-17 Doug Evans <dje@google.com>
8413
8414 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
8415 to "exec_displacement" to avoid confusion with inner use of the name.
8416
dbbf180a
YQ
84172015-04-17 Pedro Alves <palves@redhat.com>
8418
8419 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
8420 if HW point of TYPE isn't supported.
8421
059790a0
YQ
84222015-04-17 Yao Qi <yao.qi@linaro.org>
8423 Pedro Alves <palves@redhat.com>
8424
8425 * target.h (target_can_use_hardware_watchpoint): Update comments.
8426 Remove trailing ";".
8427
1b6e6f5c
GB
84282015-04-17 Gary Benson <gbenson@redhat.com>
8429
8430 * remote.c (remote_add_inferior): New argument try_open_exec.
8431 If nonzero, attempt to open the inferior's executable file as
8432 the main executable if no main executable is open already.
8433 All callers updated.
8434 * NEWS: Mention that GDB now supports automatic location and
8435 retrieval of executable + files from remote targets.
8436
c78fa86a
GB
84372015-04-17 Gary Benson <gbenson@redhat.com>
8438
8439 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
8440 * remote.c (PACKET_qXfer_exec_file): Likewise.
8441 (remote_protocol_features): Register the
8442 "qXfer:exec-file:read" feature.
8443 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
8444 (remote_pid_to_exec_file): New function.
8445 (init_remote_ops): Initialize to_pid_to_exec_file.
8446 (_initialize_remote): Register new "set/show remote
8447 pid-to-exec-file-packet" command.
8448 * NEWS: Announce new qXfer:exec-file:read packet.
8449
e0d86d2c
GB
84502015-04-17 Gary Benson <gbenson@redhat.com>
8451
8452 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
8453 New declaration.
8454 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
8455 New function, factored out from...
8456 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
8457
a9a5a3d1
GB
84582015-04-17 Gary Benson <gbenson@redhat.com>
8459
8460 * exec.c (solist.h): New include.
8461 (exec_file_locate_attach): Prefix absolute executable
8462 paths with gdb_sysroot if set.
8463 * NEWS: Mention that executable paths may be prepended
8464 with sysroot.
8465
af1900b0
GB
84662015-04-17 Gary Benson <gbenson@redhat.com>
8467
8468 * solist.h (exec_file_find): New declaration.
8469 * solib.c (solib_find_1): New function, factored out from...
8470 (solib_find): ...here.
8471 (exec_file_find): New function.
8472
a10de604
GB
84732015-04-17 Gary Benson <gbenson@redhat.com>
8474
8475 * gdbcore.h (exec_file_locate_attach): New declaration.
8476 * exec.c (exec_file_locate_attach): New function, factored
8477 out from...
8478 * infcmd.c (attach_command_post_wait): ...here.
8479
92209ddf
MF
84802015-04-17 Mike Frysinger <vapier@gentoo.org>
8481
8482 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
8483
8550d3b3
YQ
84842015-04-16 Yao Qi <yao.qi@linaro.org>
8485
8486 * infrun.c (maybe_software_singlestep): Declare.
8487 (displaced_step_fixup): Call maybe_software_singlestep.
8488
30b3dd9d
DE
84892015-04-15 Doug Evans <dje@google.com>
8490
8491 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
8492
61d96d7e
DE
84932015-04-15 Doug Evans <dje@google.com>
8494
8495 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
8496
40d2f8d6
SM
84972015-04-15 Simon Marchi <simon.marchi@ericsson.com>
8498
8499 * python/lib/gdb/command/unwinders.py: Add parentheses.
8500
6bbbba9b
YQ
85012015-04-15 Yao Qi <yao.qi@linaro.org>
8502
8503 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
8504
2bb2dcab
YQ
85052015-04-15 Yao Qi <yao.qi@linaro.org>
8506
8507 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
8508
41f071ef
YQ
85092015-04-15 Yao Qi <yao.qi@linaro.org>
8510
8511 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
8512 dsc->insn_size instead of 4.
8513
326a5c7e
GB
85142015-04-14 Gary Benson <gbenson@redhat.com>
8515
8516 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
8517 * minidebug.c (lzma_stat): Likewise.
8518 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
8519 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
8520
dd177e81
SS
85212015-04-13 Stan Shebs <stanshebs@google.com>
8522
8523 * MAINTAINERS: Update my email address.
8524
97de3545
JB
85252015-04-13 John Baldwin <jhb@FreeBSD.org>
8526
8527 * amd64-tdep.c (amd64_target_description): New function.
8528 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
8529 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
8530 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
8531 x86 extended save area.
8532 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
8533 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
8534 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
8535 (_initialize_amd64fbsd_nat): Set "to_read_description" to
8536 "amd64fbsd_read_description".
8537 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
8538 (amd64fbsd_supply_xstateregset): New function.
8539 (amd64fbsd_collect_xstateregset): New function.
8540 Add "amd64fbsd_xstateregset".
8541 (amd64fbsd_iterate_over_regset_sections): New function.
8542 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
8543 "I386_FBSD_XSAVE_XCR0_OFFSET".
8544 Add "iterate_over_regset_sections" gdbarch method.
8545 Add "core_read_description" gdbarch method.
8546 * i386-tdep.c (i386_target_description): New function.
8547 * i386-tdep.h: Export i386_target_description and tdesc_i386.
8548 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
8549 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
8550 x86 extended save area.
8551 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
8552 * i386bsd-nat.h: Export i386bsd_xsave_len.
8553 * i386fbsd-nat.c (i386fbsd_read_description): New function.
8554 (_initialize_i386fbsd_nat): Set "to_read_description" to
8555 "i386fbsd_read_description".
8556 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
8557 (i386fbsd_core_read_description): New function.
8558 (i386fbsd_supply_xstateregset): New function.
8559 (i386fbsd_collect_xstateregset): New function.
8560 Add "i386fbsd_xstateregset".
8561 (i386fbsd_iterate_over_regset_sections): New function.
8562 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
8563 "I386_FBSD_XSAVE_XCR0_OFFSET".
8564 Add "iterate_over_regset_sections" gdbarch method.
8565 Add "core_read_description" gdbarch method.
8566 * i386fbsd-tdep.h: New file.
8567
4f45d445
JK
85682015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8569
8570 * NEWS (Changes since GDB 7.9): Add removed -xdb.
8571 * breakpoint.c (command_line_is_silent): Remove xdb_commands
8572 conditional.
8573 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
8574 and lb.
8575 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
8576 va.
8577 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
8578 conditional.
8579 * defs.h (xdb_commands): Remove declaration.
8580 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
8581 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
8582 * infcmd.c (run_no_args_command, go_command): Remove.
8583 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
8584 * infrun.c (xdb_handle_command): Remove.
8585 (_initialize_infrun): Remove xdb_commands for lz and z.
8586 * main.c (xdb_commands): Remove variable.
8587 (captured_main): Remove "xdb" from long_options.
8588 (print_gdb_help): Remove --xdb from help.
8589 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
8590 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
8591 * stack.c (backtrace_full_command, args_plus_locals_info)
8592 (current_frame_command): Remove.
8593 (_initialize_stack): Remove xdb_commands for t, T and l.
8594 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
8595 * thread.c (_initialize_thread): Remove xdb_commands condition.
8596 * tui/tui-layout.c (tui_toggle_layout_command)
8597 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
8598 (_initialize_tui_layout): Remove xdb_commands for td and ts.
8599 * tui/tui-regs.c (tui_scroll_regs_forward_command)
8600 (tui_scroll_regs_backward_command): Remove.
8601 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
8602 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
8603 (_initialize_tui_win): Remove xdb_commands for U and w.
8604 * utils.c (pagination_on_command, pagination_off_command): Remove.
8605 (initialize_utils): Remove xdb_commands for am and sm.
8606
cb71640d
PA
86072015-04-10 Pedro Alves <palves@redhat.com>
8608
8609 * infrun.c (displaced_step_fixup): Switch to the event ptid
8610 earlier. If the thread stopped for a watchpoint and the
8611 target/arch has non-continuable watchpoints, cancel the displaced
8612 step.
8613 (resume): Don't start a displaced step if in-line step-over info
8614 is valid.
8615
8f572e5c
PA
86162015-04-10 Pedro Alves <palves@redhat.com>
8617
8618 * infrun.c (displaced_step_in_progress): New function.
8619 (do_target_resume): Advise target to report all signals if
8620 displaced stepping.
8621
8d707a12
PA
86222015-04-10 Pedro Alves <palves@redhat.com>
8623
8624 PR gdb/18216
8625 * infrun.c (process_event_stop_test): Don't assume a step-resume
8626 is set if tp->stepped_breakpoint is true.
8627
ef713951
YQ
86282015-04-10 Yao Qi <yao.qi@linaro.org>
8629
8630 * arm-tdep.c (install_alu_reg): Update comment.
8631 (thumb_copy_alu_reg): Remove local variable rn. Update
8632 debugging message. Use r2 instead of r1 in the modified
8633 instruction.
8634
906d60cf
PA
86352015-04-10 Pedro Alves <palves@redhat.com>
8636
8637 PR gdb/13858
8638 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
8639 linux_displaced_step_location as gdbarch_displaced_step_location
8640 hook.
8641 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
8642 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
8643 * linux-tdep.c (linux_displaced_step_location): New function,
8644 based on ppc_linux_displaced_step_location.
8645 * linux-tdep.h (linux_displaced_step_location): New declaration.
8646 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
8647 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
8648 Delete.
8649 (ppc_linux_init_abi): Install linux_displaced_step_location as
8650 gdbarch_displaced_step_location hook, even without Cell/B.E..
8651 (_initialize_ppc_linux_tdep): Don't install
8652 ppc_linux_inferior_created as inferior_created observer.
8653 * s390-linux-tdep.c (s390_gdbarch_init): Install
8654 linux_displaced_step_location as gdbarch_displaced_step_location
8655 hook.
8656
7823a941
GB
86572015-04-09 Gary Benson <gbenson@redhat.com>
8658
8659 * common/common-remote-fileio.h: Rename to...
8660 * common/fileio.h: ...this. Update all references.
8661 (remote_fileio_to_fio_error): Rename to...
8662 (host_to_fileio_error): ...this.
8663 (remote_fileio_to_be): Rename to...
8664 (host_to_bigendian): ...this. Update all callers.
8665 (remote_fileio_to_fio_uint): Rename to...
8666 (host_to_fileio_uint): ...this. Update all callers.
8667 (remote_fileio_to_fio_time): Rename to...
8668 (host_to_fileio_time): ...this. Update all callers.
8669 (remote_fileio_to_fio_stat): Rename to...
8670 (host_to_fileio_stat): ...this.
8671 Update all references.
8672 * common/common-remote-fileio.c: Rename to...
8673 * common/fileio.c: ...this. Update all references.
8674 (remote_fileio_to_fio_error): Rename to...
8675 (host_to_fileio_error): ...this. Update all callers.
8676 (remote_fileio_mode_to_target): Rename to...
8677 (fileio_mode_pack): ...this. Update all callers.
8678 (remote_fileio_to_fio_mode): Rename to...
8679 (host_to_fileio_mode): ...this. Update all callers.
8680 (remote_fileio_to_fio_ulong): Rename to...
8681 (host_to_fileio_ulong): ...this. Update all callers.
8682 (remote_fileio_to_fio_stat): Rename to...
8683 (host_to_fileio_stat): ...this. Update all callers.
8684
f2983cc3
AW
86852015-04-09 Andy Wingo <wingo@igalia.com>
8686
8687 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
8688 (frame_functions): Bind gdbscm_frame_read_register to
8689 frame-read-register.
8690 * guile/lib/gdb.scm (frame-read-register): Export.
8691
b88bb450
GB
86922015-04-09 Gary Benson <gbenson@redhat.com>
8693
8694 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
8695 New declaration.
8696 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
8697 New function, factored out the named functions below.
8698 * inf-child.c (gdb/fileio.h): Remove include.
8699 (common-remote-fileio.h): New include.
8700 (inf_child_errno_to_fileio_error): Remove function. Update
8701 all callers to use remote_fileio_to_fio_error.
8702 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
8703
2f2680f3
AW
87042015-04-09 Andy Wingo <wingo@igalia.com>
8705
8706 * MAINTAINERS (Write After Approval): Add Andy Wingo.
8707
5a2d4533
L
87082015-04-09 H.J. Lu <hongjiu.lu@intel.com>
8709
8710 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
8711 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
8712 * configure: Regenerated.
8713
421693b0
PA
87142015-04-09 Pedro Alves <palves@redhat.com>
8715
8716 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
8717 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
8718 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
8719 * gnulib/import/Makefile.am: Update.
8720 * gnulib/import/Makefile.in: Update.
8721 * gnulib/import/m4/gnulib-cache.m4: Update.
8722 * gnulib/import/m4/gnulib-comp.m4: Update.
8723 * gnulib/import/m4/strtok_r.m4: New file.
8724 * gnulib/import/strtok_r.c: New file.
8725
f543dc83
PA
87262015-04-09 Pedro Alves <palves@redhat.com>
8727
8728 * gnulib/update-gnulib.sh (aclocal version check): Filter out
8729 "called too early to check prototype".
8730
6d62641c
SDJ
87312015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
8732
8733 PR python/16699
8734 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
8735 use a caching mechanism. Adjust comments and code to reflect
8736 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
8737 (cmdpy_completer_handle_brkchars): Adjust call to
8738 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
8739 (cmdpy_completer): Likewise.
8740
85558555
YQ
87412015-04-08 Yao Qi <yao.qi@linaro.org>
8742
8743 * spu-tdep.c (spu_gdbarch_init): Don't call
8744 set_gdbarch_cannot_step_breakpoint.
8745
d249a14a
SDJ
87462015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
8747
8748 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
8749
8a06aea7
PA
87502015-04-07 Pedro Alves <palves@redhat.com>
8751
8752 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
8753 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
8754 (delete_exited_threads): New declaration.
8755 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
8756 * linux-nat.c (linux_nat_update_thread_list): New function.
8757 (linux_nat_add_target): Install it.
8758 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
8759 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
8760 (delete_exited_threads): New function.
8761
d9b67d9f
PA
87622015-04-07 Pedro Alves <pedro@codesourcery.com>
8763
8764 * infrun.c (resume) <displaced stepping debug output>: Get the
8765 leader thread's regcache, not resume_ptid's.
8766
2c26b84f
DE
87672015-04-06 Doug Evans <xdje42@gmail.com>
8768
8769 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
8770 VAR_DOMAIN.
8771 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
8772 Include symbol domain in debugging output.
8773
7a85168d
PA
87742015-04-06 Pedro Alves <palves@redhat.com>
8775 Bernd Edlinger <bernd.edlinger@hotmail.de>
8776
8777 * configure.ac: Remove the mingw32-specific stub-termcap.o
8778 fallback, and instead fallback to the stub termcap on all hosts.
8779 * configure: Regenerate.
8780 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
8781 symbols.
8782
25755e2b
PMR
87832015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8784
8785 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
8786 "top_level" parameter.
8787 (resolve_dynamic_type_internal): Remove the unused "top_level"
8788 parameter. Update call to is_dynamic_type_internal.
8789 (is_dynamic_type): Update call to is_dynamic_type_internal.
8790 (resolve_dynamic_range): Update call to
8791 resolve_dynamic_type_internal.
8792 (resolve_dynamic_union): Likewise.
8793 (resolve_dynamic_struct): Likewise.
8794 (resolve_dynamic_type): Likewise.
8795
961f4160
PMR
87962015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8797
8798 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
8799 TYPE_CODE_REF types so that they are not considered as dynamic
8800 depending on the referenced type.
8801 (resolve_dynamic_type_internal): Likewise.
8802
39f3de7c
L
88032015-04-02 H.J. Lu <hongjiu.lu@intel.com>
8804
8805 * Makefile.in (top_srcdir): New.
8806 * configure: Regenerated.
8807
599bd15c
GB
88082015-04-02 Gary Benson <gbenson@redhat.com>
8809
8810 * NEWS: Announce the new default sysroot of "target:".
8811
fed040c6
GB
88122015-04-02 Gary Benson <gbenson@redhat.com>
8813
8814 * main.c (captured_main): Set gdb_sysroot to "target:"
8815 if not otherwise set.
8816
64c0b5de
GB
88172015-04-02 Gary Benson <gbenson@redhat.com>
8818
8819 * exec.c (exec_file_attach): Support "target:" filenames.
8820
b57fbfba
GB
88212015-04-02 Gary Benson <gbenson@redhat.com>
8822
8823 * solib.c (solib_find): Strip "target:" prefix from sysroot
8824 if accessing local files.
8825
97a41605
GB
88262015-04-02 Gary Benson <gbenson@redhat.com>
8827
8828 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
8829 checks and error messages.
8830
2938e6cf
GB
88312015-04-02 Gary Benson <gbenson@redhat.com>
8832
8833 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
8834 (remote_filename_p): Remove declaration.
8835 (remote_bfd_open): Likewise.
8836 * remote.c (remote_bfd_iovec_open): Remove function.
8837 (remote_bfd_iovec_close): Likewise.
8838 (remote_bfd_iovec_pread): Likewise.
8839 (remote_bfd_iovec_stat): Likewise.
8840 (remote_filename_p): Likewise.
8841 (remote_bfd_open): Likewise.
8842 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
8843 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
8844 (gdb_bfd_open_maybe_remote): Remove function.
8845 (symfile_bfd_open): Replace remote filename check with
8846 target filename check.
8847 (reread_symbols): Use gdb_bfd_open.
8848 * build-id.c (gdbcore.h): New include.
8849 (build_id_to_debug_bfd): Use gdb_bfd_open.
8850 * infcmd.c (attach_command_post_wait): Remove remote filename
8851 check.
8852 * solib.c (solib_find): Replace remote-specific handling with
8853 target-specific handling. Update comments where necessary.
8854 (solib_bfd_open): Replace remote-specific handling with
8855 target-specific handling.
8856 (gdb_sysroot_changed): New function.
8857 (_initialize_solib): Call the above when gdb_sysroot changes.
8858 * windows-tdep.c (gdbcore.h): New include.
8859 (windows_xfer_shared_library): Use gdb_bfd_open.
8860
f08e97fe
GB
88612015-04-02 Gary Benson <gbenson@redhat.com>
8862
8863 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
8864 (is_target_filename): New declaration.
8865 (gdb_bfd_has_target_filename): Likewise.
8866 (gdb_bfd_open): Update documentation comment.
8867 * gdb_bfd.c (target.h): New include.
8868 (gdb/fileio.h): Likewise.
8869 (is_target_filename): New function.
8870 (gdb_bfd_has_target_filename): Likewise.
8871 (fileio_errno_to_host): Likewise.
8872 (gdb_bfd_iovec_fileio_open): Likewise.
8873 (gdb_bfd_iovec_fileio_pread): Likewise.
8874 (gdb_bfd_iovec_fileio_close): Likewise.
8875 (gdb_bfd_iovec_fileio_fstat): Likewise.
8876 (gdb_bfd_open): Use target fileio to access paths prefixed
8877 with "target:" where necessary.
8878
4bd7dc42
GB
88792015-04-02 Gary Benson <gbenson@redhat.com>
8880
8881 * target.h (struct target_ops) <to_filesystem_is_local>:
8882 New field.
8883 (target_filesystem_is_local): New macro.
8884 * target-delegates.c: Regenerate.
8885 * remote.c (remote_filesystem_is_local): New function.
8886 (init_remote_ops): Initialize to_filesystem_is_local.
8887
9b15c1f0
GB
88882015-04-02 Gary Benson <gbenson@redhat.com>
8889
8890 * target.h (struct target_ops) <to_fileio_fstat>: New field.
8891 (target_fileio_fstat): New declaration.
8892 * target.c (target_fileio_fstat): New function.
8893 * inf-child.c (inf_child_fileio_fstat): Likewise.
8894 (inf_child_target): Initialize to_fileio_fstat.
8895 * remote.c (init_remote_ops): Likewise.
8896
d11916aa
SS
88972015-04-01 Sasha Smundak <asmundak@google.com>
8898
8899 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
8900 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
8901 (py-unwind.o): New recipe.
8902 * NEWS: mention Python frame unwinding.
8903 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
8904 gdb/unwinder.py and gdb/command/unwinder.py
8905 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
8906 list.
8907 (execute_unwinders): New function.
8908 * python/lib/gdb/command/unwinders.py: New file.
8909 * python/lib/gdb/unwinder.py: New file.
8910 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
8911 (objfpy_dealloc): Decrement frame_unwinders reference count.
8912 (objfpy_initialize): Create frame_unwinders list.
8913 (objfpy_get_frame_unwinders): New function.
8914 (objfpy_set_frame_unwinders): Ditto.
8915 (objfile_getset): Add frame_unwinders attribute to Objfile.
8916 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
8917 (pspy_dealloc): Decrement frame_unwinders reference count.
8918 (pspy_initialize): Create frame_unwinders list.
8919 (pspy_get_frame_unwinders): New function.
8920 (pspy_set_frame_unwinders): Ditto.
8921 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
8922 * python/py-unwind.c: New file.
8923 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
8924 (objpy_get_frame_unwinders): New prototype.
8925 (gdbpy_initialize_unwind): New prototype.
8926 * python/python.c (gdbpy_apply_type_printers): Call
8927 gdbpy_initialize_unwind.
8928
6b403daa
PA
89292015-04-01 Pedro Alves <palves@redhat.com>
8930
8931 * infrun.c (resume): Check currently_stepping after clearing
8932 stepped_breakpoint, not before.
8933
1176ecec
PA
89342015-04-01 Pedro Alves <palves@redhat.com>
8935
8936 * infrun.c (print_target_wait_results): Print all the ptid
8937 elements.
8938
de1fe8c8
PA
89392015-04-01 Pedro Alves <palves@redhat.com>
8940
8941 * infrun.c (keep_going): Also discard cleanups if inserting
8942 breakpoints fails.
8943
e6f5c25b
PA
89442015-04-01 Pedro Alves <palves@redhat.com>
8945
8946 * infrun.c (wait_for_inferior): Install the
8947 finish_thread_state_cleanup cleanup across the whole function, not
8948 just around handle_inferior_event.
8949
1ac806b8
PA
89502015-04-01 Pedro Alves <palves@redhat.com>
8951
8952 * infrun.c (resume) <step past permanent breakpoint>: Use
8953 do_target_resume.
8954
2ee52aa4
PA
89552015-04-01 Pedro Alves <palves@redhat.com>
8956
8957 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
8958
5445da1b
PMR
89592015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
8960
8961 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
8962
4eec2deb
PA
89632015-04-01 Pedro Alves <palves@redhat.com>
8964
8965 * linux-thread-db.c (record_thread): Readd the thread to gdb's
8966 list if it was marked exited.
8967
afa59b79
L
89682015-04-01 H.J. Lu <hongjiu.lu@intel.com>
8969
8970 * configure: Regenerated.
8971
df8411da
SDJ
89722015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
8973 Jan Kratochvil <jan.kratochvil@redhat.com>
8974 Oleg Nesterov <oleg@redhat.com>
8975
8976 PR corefiles/16092
8977 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
8978 New enum identifying the various options of the coredump_filter
8979 file.
8980 (struct smaps_vmflags): New struct.
8981 (use_coredump_filter): New variable.
8982 (decode_vmflags): New function.
8983 (mapping_is_anonymous_p): Likewise.
8984 (dump_mapping_p): Likewise.
8985 (linux_find_memory_regions_full): New variables
8986 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
8987 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
8988 parsing of its information. Implement memory mapping filtering
8989 based on its contents.
8990 (show_use_coredump_filter): New function.
8991 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
8992 * NEWS: Mention the possibility of using the
8993 '/proc/PID/coredump_filter' file when generating a corefile.
8994 Mention new command 'set use-coredump-filter'.
8995
416f679e
SDJ
89962015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
8997
8998 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
8999 read_memory_unsigned_integer.
9000
711a72d3
L
90012015-03-31 H.J. Lu <hongjiu.lu@intel.com>
9002
9003 * Makefile.in (ZLIB): New.
9004 (ZLIBINC): Likewise.
9005 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
9006 (CLIBS): Add $(ZLIB).
9007 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
9008 Add -lz to LIBS.
9009 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
9010 * top.c (print_gdb_configuration): Remove --with-zlib and
9011 --without-zlib.
9012 * config.in: Regenerated.
9013 * configure: Likewise.
9014
d33279b3
AT
90152015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
9016
9017 * NEWS: Mention info os cpus support.
9018 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
9019 (struct osdata_type): Add cpus entry, reorder the entries in
9020 alphabetical order.
9021
71b30f27
MK
90222015-03-31 Matthias Klose <doko@ubuntu.com>
9023
9024 * compile/compile.c (compile_to_object): Allow triplets with or
9025 without vendor set.
9026
13ce9222
DE
90272015-03-30 Doug Evans <dje@google.com>
9028
9029 PR c++/18141
9030 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
9031 klass in VAR_DOMAIN.
9032
20f796c9
GB
90332015-03-30 Gary Benson <gbenson@redhat.com>
9034
9035 * remote.c (remote_mourn_1): Remove function. Update all callers
9036 to use remote_mourn.
9037 (extended_remote_mourn_1): Remove function. Update all callers
9038 to use extended_remote_mourn.
9039 (extended_remote_attach_1): Remove function. Update all callers
9040 to use extended_remote_attach.
9041
49d45b20
JB
90422015-03-28 James Bowman <james.bowman@ftdichip.com>
9043
9044 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
9045 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
9046 (ALLDEPFILES): Add ft32-tdep.c.
9047 * configure.tgt: Add FT32 entry.
9048 * ft32-tdep.c: New file, FT32 target-dependent code.
9049 * ft32-tdep.h: New file, FT32 target-dependent code.
9050
1c4ff080
JK
90512015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9052
9053 Revert:
9054 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9055 Code cleanup.
9056 * printcmd.c (print_command_1): Move expr variable scope.
9057
79498702
JB
90582015-03-27 Joel Brobecker <brobecker@adacore.com>
9059
9060 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
9061
ce9c0ca1
AK
90622015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
9063
9064 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
9065 sections.
9066
429e1e81
JB
90672015-03-26 Joel Brobecker <brobecker@adacore.com>
9068
9069 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
9070 exception raised while parsing the probe arguments.
9071 Force parsing to be done using the C language parser.
9072 * expression.h (parse_expression_with_language): Declare.
9073 * parse.c (parse_expression_with_language): New function.
9074
4593441b
JT
90752015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
9076
9077 * MAINTAINERS (Write After Approval): Add "Jon Turney".
9078
ff908ebf
AW
90792015-03-26 Andy Wingo <wingo@igalia.com>
9080
9081 PR symtab/18148
9082 * dwarf2read.c (struct partial_die_info): Add has_const_value
9083 member.
9084 (add_partial_symbol): Don't punt on symbols that have const_value
9085 attributes.
9086 (read_partial_die): Detect DW_AT_const_value.
9087
f30d5c78
JK
90882015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9089
9090 Code cleanup.
9091 * printcmd.c (print_command_1): Move expr variable scope.
9092
8d89f51a
JK
90932015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9094
9095 Code cleanup.
9096 * printcmd.c (validate_format): Make the parameter cmdname const.
9097
0b736949
DB
90982015-03-26 Don Breazeal <donb@codesourcery.com>
9099
9100 * remote.c (_initialize_remote): Update comment.
9101
20d35291
PA
91022015-03-26 Pedro Alves <palves@redhat.com>
9103 Jon TURNEY <jon.turney@dronecode.org.uk>
9104
9105 * coffread.c (coff_symfile_read): When constructing the name of an
9106 import stub symbol from import symbol for amd64, only skip the
9107 char after _imp_ if the target is underscored (like i386) and the
9108 char is indeed the target's leading char.
9109
6a3753b3
PA
91102015-03-25 Pedro Alves <palves@redhat.com>
9111
9112 * target.h <to_async>: Replace 'callback' and 'context' parameters
9113 with boolean 'enable' parameter.
9114 (target_async): Replace CALLBACK and CONTEXT parameters with
9115 boolean ENABLE parameter.
9116 * inf-loop.c (inferior_event_handler): Adjust.
9117 * linux-nat.c (linux_nat_attach, linux_nat_resume)
9118 (linux_nat_resume): Adjust.
9119 (async_client_callback, async_client_context): Delete.
9120 (handle_target_event): Call inferior_event_handler directly.
9121 (linux_nat_async): Replace 'callback' and 'context' parameters
9122 with boolean 'enable' parameter. Adjust. Remove references to
9123 async_client_callback and async_client_context.
9124 (linux_nat_close): Adjust.
9125 * record-btrace.c (record_btrace_async): Replace 'callback' and
9126 'context' parameters with boolean 'enable' parameter. Adjust.
9127 (record_btrace_resume): Adjust.
9128 * record-full.c (record_full_async): Replace 'callback' and
9129 'context' parameters with boolean 'enable' parameter. Adjust.
9130 (record_full_resume, record_full_core_resume): Adjust.
9131 * remote.c (struct remote_state) <async_client_callback,
9132 async_client_context>: Delete fields.
9133 (remote_start_remote, extended_remote_attach_1, remote_resume)
9134 (extended_remote_create_inferior): Adjust.
9135 (remote_async_serial_handler): Call inferior_event_handler
9136 directly.
9137 (remote_async): Replace 'callback' and 'context' parameters with
9138 boolean 'enable' parameter. Adjust.
9139 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
9140 Adjust.
9141 * target-delegates.c: Regenerate.
9142
1c4b552b
GB
91432015-03-25 Gary Benson <gbenson@redhat.com>
9144 Pedro Alves <palves@redhat.com>
9145
9146 * target.c (fileio_ft_t): New typedef, define object vector.
9147 (fileio_fhandles): New static variable.
9148 (is_closed_fileio_fh): New macro.
9149 (lowest_closed_fd): New static variable.
9150 (acquire_fileio_fd): New function.
9151 (release_fileio_fd): Likewise.
9152 (fileio_fd_to_fh): New macro.
9153 (target_fileio_open): Wrap the file descriptor on success.
9154 (target_fileio_pwrite): Updated to use wrapped file descriptor.
9155 (target_fileio_pread): Likewise.
9156 (target_fileio_close): Likewise.
9157
a25d8bf9
PA
91582015-03-24 Pedro Alves <palves@redhat.com>
9159
9160 * thread.c (thread_apply_all_command): Take exited threads into
9161 account.
9162
44a1ee51
PA
91632015-03-24 Pedro Alves <palves@redhat.com>
9164
9165 * infrun.c (resume, proceed): Mention
9166 switch_back_to_stepped_thread, not switch_back_to_stepping.
9167
f3263aa4
PA
91682015-03-24 Pedro Alves <palves@redhat.com>
9169
9170 * infrun.c (user_visible_resume_ptid): Rewrite going from
9171 most-locked to unlocked instead of the opposite. Move comment ...
9172 * infrun.h (user_visible_resume_ptid): ... here.
9173
2bf6fb9d
PA
91742015-03-24 Pedro Alves <palves@redhat.com>
9175
9176 * linux-nat.c (linux_nat_resume): Output debug logs before trying
9177 to resume the event lwp. Use the lwp's ptid instead of the passed
9178 in (maybe wildcard) ptid.
9179 (stop_wait_callback): Tweak debug log output.
9180 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
9181 TRAP_TRACE.
9182 (linux_nat_filter_event): In debug output, distinguish a
9183 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
9184 before trying to resume the lwp.
9185
283a9958
JB
91862015-03-24 Joel Brobecker <brobecker@adacore.com>
9187
9188 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
9189 pointer indirection.
9190 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
9191 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
9192
93a8e227
JB
91932015-03-24 Joel Brobecker <brobecker@adacore.com>
9194
9195 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
9196 Renames DYN_ATTR_DATA_LOCATION.
9197 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
9198 DYN_ATTR_DATA_LOCATION.
9199 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
9200 instead of DYN_ATTR_DATA_LOCATION.
9201
64ce06e4
PA
92022015-03-24 Pedro Alves <palves@redhat.com>
9203
9204 * breakpoint.c (until_break_command): Adjust call to proceed.
9205 * gdbthread.h (struct thread_control_state) <stepping_command>:
9206 New field.
9207 * infcall.c (run_inferior_call): Adjust call to proceed.
9208 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
9209 Adjust calls to proceed.
9210 (set_step_frame): Set the current thread's step_start_function
9211 here.
9212 (step_once): Adjust calls to proceed.
9213 (jump_command, signal_command, until_next_command)
9214 (finish_backward, finish_forward, proceed_after_attach_callback)
9215 (attach_command_post_wait): Adjust calls to proceed.
9216 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
9217 (do_target_resume): New function, factored out from ...
9218 (resume): ... here. Remove 'step' parameter. Instead, check
9219 currently_stepping to determine whether the thread should be
9220 single-stepped.
9221 (proceed): Remove 'step' parameter and don't set the thread's
9222 step_start_function here. Adjust call to 'resume'.
9223 (handle_inferior_event): Adjust calls to 'resume'.
9224 (switch_back_to_stepped_thread): Use do_target_resume instead of
9225 'resume'.
9226 (keep_going): Adjust calls to 'resume'.
9227 * infrun.h (proceed): Remove 'step' parameter.
9228 (resume): Likewise.
9229 * windows-nat.c (do_initial_windows_stuff): Adjust call to
9230 'resume'.
9231 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
9232
856e7dd6
PA
92332015-03-24 Pedro Alves <palves@redhat.com>
9234
9235 * gdbthread.h (struct thread_control_state) <stepping_command>:
9236 New field.
9237 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
9238 the thread's stepping_command field.
9239 * infrun.c (resume): Check the thread's stepping_command flag to
9240 determine which threads should be resumed. Rename 'entry_step'
9241 local to user_step.
9242 (clear_proceed_status_thread): Clear 'stepping_command'.
9243 (schedlock_applies): Change parameter type to struct thread_info
9244 pointer. Adjust.
9245 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
9246 (switch_back_to_stepped_thread): Adjust calls to
9247 'schedlock_applies'.
9248 (_initialize_infrun): Adjust "set scheduler-locking step" help.
9249
885eeb5b
PA
92502015-03-24 Pedro Alves <palves@redhat.com>
9251
9252 * infrun.c (step_start_function): Delete and ...
9253 * gdbthread.h (struct thread_control_state) <step_start_function>:
9254 ... now a field here.
9255 * infrun.c (clear_proceed_status_thread): Clear the thread's
9256 step_start_function.
9257 (proceed, process_event_stop_test, print_stop_event): Adjust.
9258
3333f03a
PA
92592015-03-24 Pedro Alves <palves@redhat.com>
9260
9261 * infrun.c (proceed): No longer handle negative step.
9262
369f6daa
GB
92632015-03-24 Gary Benson <gbenson@redhat.com>
9264
9265 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
9266 (x86_linux_prepare_to_resume): Likewise.
9267 * x86-linux-nat.c (x86_linux_new_thread):
9268 Moved to nat/x86-linux.c.
9269 (x86_linux_prepare_to_resume): Likewise.
9270 * nat/x86-linux.c (x86_linux_new_thread): New function.
9271 (x86_linux_prepare_to_resume): Likewise.
9272
8e5d4070
GB
92732015-03-24 Gary Benson <gbenson@redhat.com>
9274
9275 * nat/x86-linux-dregs.h: New file.
9276 * nat/x86-linux-dregs.c: Likewise.
9277 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
9278 (x86-linux-dregs.o): New rule.
9279 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
9280 * config/i386/linux64.mh (NATDEPFILES): Likewise.
9281 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
9282 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
9283 (x86_linux_dr_get): Likewise.
9284 (x86_linux_dr_set): Likewise.
9285 (x86_linux_dr_get_addr): Likewise.
9286 (x86_linux_dr_get_control): Likewise.
9287 (x86_linux_dr_get_status): Likewise.
9288 (update_debug_registers_callback): Likewise.
9289 (x86_linux_dr_set_control): Likewise.
9290 (x86_linux_dr_set_addr): Likewise.
9291 (x86_linux_update_debug_registers): Likewise.
9292
2b95d440
GB
92932015-03-24 Gary Benson <gbenson@redhat.com>
9294
9295 * x86-linux-nat.c (x86_linux_update_debug_registers):
9296 New function, factored out from...
9297 (x86_linux_prepare_to_resume): ...this.
9298
14b0bc68
GB
92992015-03-24 Gary Benson <gbenson@redhat.com>
9300
9301 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
9302 (x86_linux_dr_set): Likewise.
9303 (x86_linux_dr_get_addr): Likewise.
9304 (x86_linux_dr_get_control): Likewise.
9305 (x86_linux_dr_get_status): Likewise.
9306 (update_debug_registers_callback): Likewise.
9307 (x86_linux_dr_set_control): Likewise.
9308 (x86_linux_dr_set_addr): Likewise.
9309 (x86_linux_prepare_to_resume): Likewise.
9310 (x86_linux_new_thread): Likewise.
9311
5dfe6ca8
GB
93122015-03-24 Gary Benson <gbenson@redhat.com>
9313
9314 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
9315 (x86_linux_new_thread): Rename argument.
9316
4b134ca1
GB
93172015-03-24 Gary Benson <gbenson@redhat.com>
9318
9319 * nat/x86-linux.h: New file.
9320 * nat/x86-linux.c: Likewise.
9321 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
9322 (x86-linux.o): New rule.
9323 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
9324 * config/i386/linux64.mh (NATDEPFILES): Likewise.
9325 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
9326 (lwp_set_arch_private_info): New declaration.
9327 (lwp_arch_private_info): Likewise.
9328 * linux-nat.c (lwp_set_arch_private_info): New function.
9329 (lwp_arch_private_info): Likewise.
9330 * x86-linux-nat.c: Include nat/x86-linux.h.
9331 (arch_lwp_info): Removed structure.
9332 (update_debug_registers_callback):
9333 Use lwp_set_debug_registers_changed.
9334 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
9335 and lwp_set_debug_registers_changed.
9336 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
9337
cff068da
GB
93382015-03-24 Gary Benson <gbenson@redhat.com>
9339
9340 * nat/linux-nat.h (ptid_of_lwp): New declaration.
9341 (lwp_is_stopped): Likewise.
9342 (lwp_stop_reason): Likewise.
9343 * linux-nat.c (ptid_of_lwp): New function.
9344 (lwp_is_stopped): Likewise.
9345 (lwp_is_stopped_by_watchpoint): Likewise.
9346 * x86-linux-nat.c (update_debug_registers_callback):
9347 Use lwp_is_stopped.
9348 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
9349 lwp_stop_reason.
9350
b2f7c7e8
GB
93512015-03-24 Gary Benson <gbenson@redhat.com>
9352
9353 * linux-nat.h (linux_stop_lwp): Move declaration to...
9354 * nat/linux-nat.h (linux_stop_lwp): New declaration.
9355
6d4ee8c6
GB
93562015-03-24 Gary Benson <gbenson@redhat.com>
9357
9358 * linux-nat.h: Include nat/linux-nat.h.
9359 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
9360 * nat/linux-nat.h (struct lwp_info): New forward declaration.
9361 (iterate_over_lwps_ftype): New typedef.
9362 (iterate_over_lwps): New declaration.
9363 * linux-nat.h (iterate_over_lwps): Update comment. Use
9364 iterate_over_lwps_ftype. Update callback return value check.
9365
70a0bb6b
GB
93662015-03-24 Gary Benson <gbenson@redhat.com>
9367
9368 * x86-nat.h (x86_debug_reg_state): Move declaration to...
9369 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
9370
7b669087
GB
93712015-03-24 Gary Benson <gbenson@redhat.com>
9372
9373 * nat/linux-nat.h (current_lwp_ptid): New declaration.
9374 * linux-nat.c (current_lwp_ptid): New function.
9375 * x86-linux-nat.c: Include nat/linux-nat.h.
9376 (x86_linux_dr_get_addr): Use current_lwp_ptid.
9377 (x86_linux_dr_get_control): Likewise.
9378 (x86_linux_dr_get_status): Likewise.
9379 (x86_linux_dr_set_control): Likewise.
9380 (x86_linux_dr_set_addr): Likewise.
9381
15630549
AT
93822015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
9383
9384 PR breakpoints/16466
9385 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
9386
8a4506c0
JB
93872015-03-23 Joel Brobecker <brobecker@adacore.com>
9388
9389 * ser-mingw.c (ser_windows_setparity): Fix indentation.
9390 * ser-unix.c (hardwire_setparity): Likewise.
9391
236af5e3
YG
93922015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
9393
9394 * NEWS: Mention set/show serial parity command.
9395 * monitor.c (monitor_open): Call serial_setparity.
9396 * remote.c (remote_open_1): Likewise.
9397 * ser-base.c (ser_base_serparity): New function.
9398 * ser-base.h (ser_base_setparity): Add declaration.
9399 * ser-go32.c (dos_ops): Set "setparity" field.
9400 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
9401 state.Parity.
9402 (ser_windows_setparity): New function.
9403 (hardwire_ops): Add ser_windows_setparity.
9404 (tty_ops): Add NULL for setparity field.
9405 (pipe_ops): Add ser_base_setparity.
9406 (tcp_ops): Likewise.
9407 * ser-pipe.c (pipe_ops): Likewise.
9408 * ser-tcp.c (tcp_ops): Likewise.
9409 * ser-unix.c (hardwire_setparity): Add declaration.
9410 (hardwire_raw): Don't reset PARENB flag.
9411 (hardwire_setparity): New function.
9412 (hardwire_ops): Add hardwire_setparity.
9413 * serial.c (serial_setparity): New function.
9414 (serial_parity): New global.
9415 (parity_none, parity_odd, parity_even, parity_enums, parity):
9416 New static globals.
9417 (set_parity): New function.
9418 (_initialize_serial): Add set/show serial parity commands.
9419 * serial.h (GDBPARITY_NONE): Define.
9420 (GDBPARITY_ODD): Define.
9421 (GDBPARITY_EVEN): Define.
9422 (serial_setparity) Add declaration.
9423 (struct serial_ops): Add setparity field.
9424 * target.h (serial_parity): Add declaration.
9425
32b40af9
KS
94262015-03-23 Keith Seitz <keiths@redhat.com>
9427
9428 * linespec.c (linespec_lexer_lex_keyword): Update comment.
9429
693dca06
KS
94302015-03-23 Keith Seitz <keiths@redhat.com>
9431
9432 * breakpoint.c (parse_breakpoint_sals): Use
9433 linespec_lexer_lex_keyword to ascertain if the user specified
9434 a NULL location.
9435 * linespec.c [IF_KEYWORD_INDEX]: Define.
9436 (linespec_lexer_lex_keyword): Export.
9437 (struct ls_parser) <keyword_ok>: Remove.
9438 A keyword is only a keyword if not followed by another keyword.
9439 (linespec_lexer_lex_one): Remove keyword_ok handling.
9440 Add comment explaining why the parsing stream is not advanced
9441 when a keyword is seen.
9442 (parse_linespec): Remove parser->keyword_ok.
9443 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
9444
7e993ebf
KS
94452015-03-23 Keith Seitz <keiths@redhat.com>
9446
9447 PR gdb/18021
9448 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
9449 if we find a static method with DW_AT_vtable_elem_location.
9450
b1a0f704
EZ
94512015-03-21 Eli Zaretskii <eliz@gnu.org>
9452
9453 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
9454 before the second loop, to avoid undefined behavior. Reported by
9455 Anton Blanchard <anton@samba.org>.
9456
d9823cbb
KB
94572015-03-20 Keven Boell <keven.boell@intel.com>
9458
9459 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
9460 data_location usage to linked list.
9461 (resolve_dynamic_type_internal): Adapt data_location to
9462 linked list.
9463 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
9464 (copy_type_recursive, copy_type): Add copy of linked list.
9465 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
9466 (struct dynamic_prop_list): New struct.
9467 * dwarf2read.c (set_die_type): Set data_location data.
9468
2e7bf1d7
PA
94692015-03-20 Pedro Alves <palves@redhat.com>
9470
9471 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
9472 inner block and make it const.
9473 * machoread.c (get_archive_prefix_len): Make "lparen" const.
9474
7a26bd4d
PA
94752015-03-20 Pedro Alves <palves@redhat.com>
9476
9477 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
9478 * breakpoint.h (set_breakpoint_condition): Update declaration.
9479
cd46431b
PA
94802015-03-20 Pedro Alves <palves@redhat.com>
9481
9482 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
9483
e28566f7
PA
94842015-03-20 Pedro Alves <palves@redhat.com>
9485
9486 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
9487
f6fc92f6
PA
94882015-03-20 Pedro Alves <palves@redhat.com>
9489
9490 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
9491
c32ed3ef
PA
94922015-03-20 Pedro Alves <palves@redhat.com>
9493
9494 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
9495 (nto_init_solib_absolute_prefix): Likewise.
9496
53e78085
PA
94972015-03-20 Pedro Alves <palves@redhat.com>
9498
9499 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
9500 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
9501
bc23328c
JK
95022015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9503
9504 * config/djgpp/README: Remove gdb.hp.
9505
e8ffc436
YQ
95062015-03-20 Yao Qi <yao.qi@linaro.org>
9507
9508 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
9509 set_gdbarch_cannot_step_breakpoint.
9510
23f238d3
PA
95112015-03-19 Pedro Alves <palves@redhat.com>
9512
9513 * linux-nat.c (linux_resume_one_lwp): Rename to ...
9514 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
9515 instead call perror_with_name.
9516 (check_ptrace_stopped_lwp_gone): New function.
9517 (linux_resume_one_lwp): Reimplement as wrapper around
9518 linux_resume_one_lwp_throw that swallows errors if the LWP is
9519 gone.
9520 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
9521 swallows errors if the LWP is gone. Use
9522 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
9523
eb54c8bf
PA
95242015-03-19 Pedro Alves <palves@redhat.com>
9525
9526 * linux-nat.c (status_callback): Return early if the LWP has no
9527 status pending.
9528
b90fc188
PA
95292015-03-19 Pedro Alves <palves@redhat.com>
9530
9531 * linux-nat.c (select_event_lwp_callback): Update comment to no
9532 longer mention SIGTRAP.
9533
670f82d4
TG
95342015-03-18 Tristan Gingold <gingold@adacore.com>
9535
72f4393d
L
9536 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
9537 redirection code to ...
9538 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
9539 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
670f82d4 9540
464b0089
GB
95412015-03-18 Gary Benson <gbenson@redhat.com>
9542
9543 (remote_protocol_features): Remove the "vFile:fstat" feature.
9544 (remote_hostio_fstat): Probe for "vFile:fstat" support.
9545
f68f11b7
YQ
95462015-03-11 Yao Qi <yao.qi@linaro.org>
9547
9548 PR tdep/18107
9549 * aarch64-linux-tdep.c: Include xml-syscall.h
9550 (aarch64_linux_get_syscall_number): New function.
9551 (aarch64_linux_init_abi): Call
9552 set_gdbarch_get_syscall_number.
9553 * syscalls/aarch64-linux.xml: New file.
9554
393bd0c0
YG
95552015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
9556
9557 * ser-base.h (ser_base_setstopbits): Change second argument name
9558 from "rate" to "num".
9559
7f3647e2
GB
95602015-03-17 Gary Benson <gbenson@redhat.com>
9561 Luke Allardyce <lukeallardyce@gmail.com>
9562
9563 PR gdb/18131
9564 * common/common-remote-fileio.h (sys/stat.h): New include.
9565 (stuct stat): Remove forward declaration.
9566
3ce5b6e2
JB
95672015-03-16 John Baldwin <jhb@FreeBSD.org>
9568
9569 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
9570 before writing core register notes.
9571
d053f6be
YZ
95722015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
9573 Pedro Alves <palves@redhat.com>
9574
9575 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
9576 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
9577 (tgoto): Wrap with extern "C".
9578
b1a921c8
PA
95792015-03-16 Pedro Alves <palves@redhat.com>
9580 Yuanhui Zhang <asmwarrior@gmail.com>
9581
9582 * stub-termcap.c (tputs): Change prototype.
9583
876d1cd7
YZ
95842015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
9585 Pedro Alves <palves@redhat.com>
9586
9587 * windows-nat.c (struct thread_info_struct): Rename to ...
9588 (struct windows_thread_info_struct): ... this.
9589 (thread_info): Rename to ...
9590 (windows_thread_info): ... this.
9591 All users updated.
9592
0800b440
JK
95932015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9594 Pedro Alves <palves@redhat.com>
9595
9596 * NEWS: New Removed targets and native configurations.
9597
95982015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
61a12cfa
JK
9599
9600 Remove HPUX.
9601 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
9602 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
9603 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
9604 ia64-hpux-tdep.h, solib-ia64-hpux.h.
9605 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
9606 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
9607 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
9608 hppa-hpux-tdep.c.
9609 * config/ia64/hpux.mh: Remove file.
9610 * config/pa/hpux.mh: Remove file.
9611 * configure: Rebuilt.
9612 * configure.ac (dlgetmodinfo, somread.o): Remove.
9613 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
9614 (ia64-*-hpux*): Remove its float format exception.
9615 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
9616 * hppa-hpux-nat.c: Remove file.
9617 * hppa-hpux-tdep.c: Remove file.
9618 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
9619 Move them here from hppa-tdep.h
9620 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
9621 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
9622 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
9623 Move them to hppa-tdep.c.
9624 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
9625 declarations.
9626 * ia64-hpux-nat.c: Remove file.
9627 * ia64-hpux-tdep.c: Remove file.
9628 * ia64-hpux-tdep.h: Remove file.
9629 * inf-ttrace.c: Remove file.
9630 * inf-ttrace.h: Remove file.
9631 * solib-ia64-hpux.c: Remove file.
9632 * solib-ia64-hpux.h: Remove file.
9633 * solib-pa64.c: Remove file.
9634 * solib-pa64.h: Remove file.
9635 * solib-som.c: Remove file.
9636 * solib-som.h: Remove file.
9637 * somread.c: Remove file.
9638
25268153
JB
96392015-03-13 John Baldwin <jhb@FreeBSD.org>
9640
9641 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
9642 * config.in: Regenerate.
9643 * configure: Regenerate.
9644 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
72f4393d 9645 define.
25268153
JB
9646 (fbsd_find_memory_regions): Use kinfo_getvmmap to
9647 enumerate memory regions if present.
9648
773eacf5
JB
96492015-03-13 John Baldwin <jhb@FreeBSD.org>
9650
9651 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
9652 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
9653 expressions.
9654 (i386fbsd_sigtramp_p): Likewise.
9655
01b6bdb0
JB
96562015-03-12 John Baldwin <jhb@FreeBSD.org>
9657
9658 * MAINTAINERS (Write After Approval): Add John Baldwin.
9659
811a659a
GB
96602015-03-12 Gary Benson <gbenson@redhat.com>
9661
9662 * solib.c (_initialize_solib): Make "set/show sysroot" use
9663 add_setshow_optional_filename_cmd so it can be restored to
9664 empty after being set.
9665
10304ef3
SDJ
96662015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
9667
9668 * Makefile.in (SFILES): New source break-catch-syscall.c.
9669 (COMMON_OBS): New object break-catch-syscall.o.
9670 * break-catch-syscall.c: New file.
9671 * breakpoint.c: Remove inclusion of "xml-syscall.h".
9672 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
9673 (struct syscall_catchpoint): Likewise.
9674 (dtor_catch_syscall): Likewise.
9675 (catch_syscall_inferior_data): Likewise.
9676 (struct catch_syscall_inferior_data): Likewise.
9677 (get_catch_syscall_inferior_data): Likewise.
9678 (catch_syscall_inferior_data_cleanup): Likewise.
9679 (insert_catch_syscall): Likewise.
9680 (remove_catch_syscall): Likewise.
9681 (breakpoint_hit_catch_syscall): Likewise.
9682 (print_it_catch_syscall): Likewise.
9683 (print_one_catch_syscall): Likewise.
9684 (print_mention_catch_syscall): Likewise.
9685 (print_recreate_catch_syscall): Likewise.
9686 (catch_syscall_breakpoint_ops): Likewise.
9687 (syscall_catchpoint_p): Likewise.
9688 (create_syscall_event_catchpoint): Likewise.
9689 (catch_syscall_split_args): Likewise.
9690 (catch_syscall_command_1): Likewise.
9691 (is_syscall_catchpoint_enabled): Likewise.
9692 (catch_syscall_enabled): Likewise.
9693 (catching_syscall_number): Likewise.
9694 (catch_syscall_completer): Likewise.
9695 (clear_syscall_counts): Likewise.
9696 (initialize_breakpoint_ops): Move initialization of syscall
9697 catchpoints to break-catch-syscall.c.
9698 (_initialize_breakpoint): Move code related to syscall catchpoints
9699 to break-catch-syscall.c.
9700
badd37ce
SDJ
97012015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
9702
9703 * breakpoint.c (breakpoint_find_if): New function.
9704 * breakpoint.h (breakpoint_find_if): New prototype.
9705
0a93529c
GB
97062015-03-11 Gary Benson <gbenson@redhat.com>
9707
9708 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
9709 * remote-fileio.c (remote_fileio_to_host_uint): New function.
9710 (remote_fileio_to_host_ulong): Likewise.
9711 (remote_fileio_to_host_mode): Likewise.
9712 (remote_fileio_to_host_time): Likewise.
9713 (remote_fileio_to_host_stat): Likewise.
9714 * remote.c (PACKET_vFile_fstat): New enum value.
9715 (remote_protocol_features): Register the "vFile:fstat" feature.
9716 (remote_hostio_fstat): New function.
9717 (remote_bfd_iovec_stat): Use the above.
9718 (_initialize_remote): Register new "set/show remote
9719 hostio-fstat-packet" command.
9720 * symfile.c (separate_debug_file_exists): Update comment.
9721 * NEWS: Announce new vFile:fstat packet.
9722
791c0056
GB
97232015-03-11 Gary Benson <gbenson@redhat.com>
9724
9725 * common/common-remote-fileio.h: New file.
9726 * common/common-remote-fileio.c: Likewise.
9727 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
9728 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
9729 (COMMON_OBS): Add common-remote-fileio.o.
9730 (common-remote-fileio.o): New rule.
9731 * remote-fileio.h (common-remote-fileio.h): New include.
9732 * remote-fileio.c (gdb/fileio.h): Do not include.
9733 (remote_fileio_to_be): Moved to common-remote-fileio.h.
9734 (remote_fileio_to_fio_uint): Likewise.
9735 (remote_fileio_to_fio_time): Likewise.
9736 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
9737 (remote_fileio_to_fio_mode): Likewise.
9738 (remote_fileio_to_fio_ulong): Likewise.
9739 (remote_fileio_to_fio_stat): Likewise.
9740
1390d0ef
AW
97412015-03-11 Andy Wingo <wingo@igalia.com>
9742
9743 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
9744 we were checking the cached type, not the cached dynamic type.
9745
84a4591a
AW
97462015-03-11 Andy Wingo <wingo@igalia.com>
9747
9748 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
9749 other strings, as these are on the GC'd heap, and will be
9750 collected along with the smob.
9751
85642ba0
AW
97522015-03-11 Andy Wingo <wingo@igalia.com>
9753
9754 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
9755 (objfile_functions): Bind gdbscm_objfile_progspace to
9756 objfile-progspace.
9757 * guile/lib/gdb.scm: Add objfile-progspace to exports.
9758
92fab5a6
AW
97592015-03-11 Andy Wingo <wingo@igalia.com>
9760
9761 * guile/guile.c (_initialize_guile): Disable automatic
9762 finalization, if Guile offers us that possibility.
9763 * guile/guile.c (call_initialize_gdb_module):
9764 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
9765 finalizers in appropriate places.
9766 * configure.ac (AC_TRY_LIBGUILE): Add a check for
9767 scm_set_automatic_finalization_enabled.
9768 * configure: Regenerated.
9769
f054145e
AA
97702015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
9771
9772 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
9773 SAL, if possible.
9774
18396193
AA
97752015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
9776
9777 * s390-linux-nat.c (struct arch_lwp_info): New.
9778 (s390_fix_watch_points): Rename to...
9779 (s390_prepare_to_resume): ...this. Skip the PER info update
9780 unless the watch points have changed.
9781 (s390_refresh_per_info, s390_new_thread): New functions.
9782 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
9783 s390_fix_watch_points.
9784 (s390_remove_watchpoint): Likewise.
9785 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
9786 Register s390_prepare_to_resume.
9787
9eb1356e
PA
97882015-03-09 Pedro Alves <palves@redhat.com>
9789
9790 Revert:
9791 2015-03-07 Pedro Alves <palves@redhat.com>
9792 * common/gdb_socket.h: New file.
9793 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
9794 sys/socket.h.
9795 (net_open): Use union gdb_sockaddr_u.
9796
aac331e4
PA
97972015-03-07 Pedro Alves <palves@redhat.com>
9798
9799 * configure.ac (build_warnings): Move -Wmissing-prototypes
9800 -Wdeclaration-after-statement -Wmissing-parameter-type
9801 -Wold-style-declaration -Wold-style-definition to the C-specific
9802 set.
9803 * configure: Regenerate.
9804
366c75fc
PA
98052015-03-07 Pedro Alves <palves@redhat.com>
9806
9807 * common/gdb_socket.h: New file.
9808 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
9809 sys/socket.h.
9810 (net_open): Use union gdb_sockaddr_u.
9811
72df25b2
PA
98122015-03-07 Pedro Alves <palves@redhat.com>
9813
9814 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
9815 (exceptions_state_mc_action_iter)
9816 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
9817 Don't define.
9818 [__cplusplus] (try_scope_depth): New global.
9819 [__cplusplus] (exception_try_scope_entry)
9820 (exception_try_scope_exit, gdb_exception_sliced_copy)
9821 (exception_rethrow): New functions.
9822 (throw_exception): In C++ mode, throw
9823 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
9824 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
9825 (throw_it): In C++ mode, use try_scope_depth.
9826 * common/common-exceptions.h [!__cplusplus]
9827 (exceptions_state_mc_action_iter)
9828 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
9829 Don't declare.
9830 [__cplusplus] (exception_try_scope_entry)
9831 (exception_try_scope_exit, exception_rethrow): Declare.
9832 [__cplusplus] (struct exception_try_scope): New struct.
9833 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
9834 C++ exceptions.
9835 (struct gdb_exception_RETURN_MASK_ALL)
9836 (struct gdb_exception_RETURN_MASK_ERROR)
9837 (struct gdb_exception_RETURN_MASK_QUIT): New types.
9838
284e6217
PA
98392015-03-07 Pedro Alves <palves@redhat.com>
9840
9841 * main.c (handle_command_errors): Remove volatile qualifier from
9842 parameter.
9843
6c63c96a
PA
98442015-03-07 Pedro Alves <palves@redhat.com>
9845
9846 * breakpoint.c (save_breakpoints): Adjust to avoid code between
9847 TRY and CATCH.
9848 * gdbtypes.c (safe_parse_type): Remove empty line.
9849 (types_deeply_equal):
9850 * guile/scm-frame.c (gdbscm_frame_name):
9851 * linux-thread-db.c (find_new_threads_once):
9852 * python/py-breakpoint.c (bppy_get_commands):
9853 * record-btrace.c (record_btrace_insert_breakpoint)
9854 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
9855 (record_btrace_start_replaying): Adjust to avoid code between TRY
9856 and CATCH.
9857
492d29ea
PA
98582015-03-07 Pedro Alves <palves@redhat.com>
9859
9860 * common/common-exceptions.c (struct catcher) <exception>: No
9861 longer a pointer to volatile exception. Now an exception value.
9862 <mask>: Delete field.
9863 (exceptions_state_mc_init): Remove all parameters. Adjust.
9864 (exceptions_state_mc): No longer pop the catcher here.
9865 (exceptions_state_mc_catch): New function.
9866 (throw_exception): Adjust.
9867 * common/common-exceptions.h (exceptions_state_mc_init): Remove
9868 all parameters.
9869 (exceptions_state_mc_catch): Declare.
9870 (TRY_CATCH): Rename to ...
9871 (TRY): ... this. Remove EXCEPTION and MASK parameters.
9872 (CATCH, END_CATCH): New.
9873 All callers adjusted.
9874
ece957c8
TT
98752015-03-07 Tom Tromey <tromey@redhat.com>
9876
9877 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
9878
7556d4a4
PA
98792015-03-07 Pedro Alves <palves@redhat.com>
9880
9881 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
9882 (amd64_epilogue_frame_cache): Normal exception handling code.
9883 * break-catch-throw.c (check_status_exception_catchpoint)
9884 (re_set_exception_catchpoint): Ditto.
9885 * cli/cli-interp.c (safe_execute_command):
9886 * cli/cli-script.c (script_from_file): Ditto.
9887 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
9888 Ditto.
9889 * compile/compile-object-run.c (compile_object_run): Ditto.
9890 * cp-abi.c (baseclass_offset): Ditto.
9891 * cp-valprint.c (cp_print_value): Ditto.
9892 * exceptions.c (catch_exceptions_with_msg):
9893 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
9894 * frame.c (get_frame_address_in_block_if_available): Ditto.
9895 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
9896 (i386_sigtramp_frame_cache): Ditto.
9897 * infcmd.c (post_create_inferior): Ditto.
9898 * linespec.c (parse_linespec, find_linespec_symbols):
9899 * p-valprint.c (pascal_object_print_value): Ditto.
9900 * parse.c (parse_expression_for_completion): Ditto.
9901 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
9902 * remote.c (remote_get_noisy_reply): Ditto.
9903 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
9904 * solib-svr4.c (solib_svr4_r_map): Ditto.
9905
f873665f 99062015-03-06 Gary Benson <gbenson@redhat.com>
61012eef
GB
9907
9908 * common/common-utils.h (startswith): New inline function.
9909 All places where this logic was used updated to use the above.
9910
68901c4d
PA
99112015-03-05 Pedro Alves <palves@redhat.com>
9912
9913 PR gdb/18002
9914 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
9915 after reading the breakpoint's shadow memory.
9916
2dcb2b1a
MK
99172015-03-05 Mark Kettenis <kettenis@gnu.org>
9918
9919 * hppabsd-nat.c: Remove file.
9920 * hppaobsd-nat.c: New file.
9921 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
9922 hppaobsd-nat.c.
9923 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
9924 hppaobsd-nat.o.
9925
527a273a
PA
99262015-03-04 Pedro Alves <palves@redhat.com>
9927
9928 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
9929 (target_decr_pc_after_break): Delete declaration.
9930 * target.c (default_target_decr_pc_after_break)
9931 (target_decr_pc_after_break): Delete.
9932 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
9933 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
9934 * linux-thread-db.c (check_event): Likewise.
9935 * infrun.c (adjust_pc_after_break): Likewise.
9936 * darwin-nat.c (cancel_breakpoint): Likewise.
9937 * aix-thread.c (aix_thread_wait): Likewise.
9938 * target-delegates.c: Regenerate.
9939
faf09f01
PA
99402015-03-04 Pedro Alves <palves@redhat.com>
9941
9942 * linux-nat.c (save_sigtrap): Check for breakpoints before
9943 checking watchpoints.
9944 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
9945 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
9946 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
9947 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
9948 (linux_nat_stopped_by_sw_breakpoint)
9949 (linux_nat_supports_stopped_by_sw_breakpoint)
9950 (linux_nat_stopped_by_hw_breakpoint)
9951 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
9952 (linux_nat_wait_1): Don't re-increment the PC if relying on
9953 SIGTRAP's siginfo->si_code.
9954 (linux_nat_add_target): Install new target methods.
9955 * linux-thread-db.c (check_event): Don't account for breakpoint PC
9956 offset if the target already adjusted the PC.
9957 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
9958 (GDB_ARCH_TRAP_BRKPT): New.
9959 (TRAP_HWBKPT): Define if not already defined.
9960
f7e6eed5
PA
99612015-03-04 Pedro Alves <palves@redhat.com>
9962
9963 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
9964 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
9965 Delete field.
9966 <stop_reason>: New field.
9967 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
9968 (packet_set_cmd_state): New function.
9969 (remote_protocol_features): Register the "swbreak" and "hwbreak"
9970 features.
9971 (remote_query_supported): If not disabled with the corresponding
9972 "set remote foo-packet" command, report support for the swbreak
9973 and hwbreak features.
9974 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
9975 field.
9976 <stop_reason>: New field.
9977 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
9978 (remote_wait_as): Adjust.
9979 (remote_stopped_by_sw_breakpoint)
9980 (remote_supports_stopped_by_sw_breakpoint)
9981 (remote_stopped_by_hw_breakpoint)
9982 (remote_supports_stopped_by_hw_breakpoint): New functions.
9983 (remote_stopped_by_watchpoint): New function.
9984 (init_remote_ops): Install them.
9985 (_initialize_remote): Register new "set/show remote
9986 swbreak-feature-packet" and "set/show remote
9987 swbreak-feature-packet" commands.
9988
9e8915c6
PA
99892015-03-04 Pedro Alves <palves@redhat.com>
9990
9991 * btrace.h: Include target/waitstatus.h.
9992 (struct btrace_thread_info) <stop_reason>: New field.
9993 * record-btrace.c (record_btrace_step_thread): Use
9994 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
9995 (record_btrace_decr_pc_after_break): Delete.
9996 (record_btrace_stopped_by_sw_breakpoint)
9997 (record_btrace_supports_stopped_by_sw_breakpoint)
9998 (record_btrace_stopped_by_hw_breakpoint)
9999 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
10000 (init_record_btrace_ops): Install them.
10001 * record-full.c (record_full_hw_watchpoint): Delete and replace
10002 with ...
10003 (record_full_stop_reason): ... this throughout.
10004 (record_full_exec_insn): Adjust.
10005 (record_full_wait_1): Adjust. No longer re-increment the PC.
10006 (record_full_wait_1): Adjust. Use
10007 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10008 (record_full_stopped_by_watchpoint): Adjust.
10009 (record_full_stopped_by_sw_breakpoint)
10010 (record_full_supports_stopped_by_sw_breakpoint)
10011 (record_full_supports_stopped_by_sw_breakpoint)
10012 (record_full_stopped_by_hw_breakpoint)
10013 (record_full_supports_stopped_by_hw_breakpoint): New functions.
10014 (init_record_full_ops, init_record_full_core_ops): Install them.
10015 * record.c (record_check_stopped_by_breakpoint): New function.
10016 * record.h: Include target/waitstatus.h.
10017 (record_check_stopped_by_breakpoint): New declaration.
10018
15c66dd6
PA
100192015-03-04 Pedro Alves <palves@redhat.com>
10020
10021 enum lwp_stop_reason -> enum target_stop_reason
10022 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
10023 (linux_nat_stopped_by_watchpoint, status_callback)
10024 (linux_nat_wait_1): Adjust.
10025 * linux-nat.h (enum lwp_stop_reason): Delete.
10026 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
10027 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
10028 * target/waitstatus.h (enum target_stop_reason): New.
10029
1cf4d951
PA
100302015-03-04 Pedro Alves <palves@redhat.com>
10031
10032 * breakpoint.c (need_moribund_for_location_type): New function.
10033 (bpstat_stop_status): Don't skipping checking moribund locations
10034 of breakpoint types which the target tell caused a stop.
10035 (program_breakpoint_here_p): New function, factored out from ...
10036 (bp_loc_is_permanent): ... this.
10037 (update_global_location_list): Don't create a moribund location if
10038 the target supports reporting stops of the type of the removed
10039 breakpoint.
10040 * breakpoint.h (program_breakpoint_here_p): New declaration.
10041 * infrun.c (adjust_pc_after_break): Return early if the target has
10042 already adjusted the PC. Add comments.
10043 (handle_signal_stop): If nothing explains a signal, and the target
10044 tells us the stop was caused by a software breakpoint, check if
10045 there's a breakpoint instruction in the memory. If so, adjust the
10046 PC before presenting the stop to the user. Otherwise, ignore the
10047 trap. If nothing explains a signal, and the target tells us the
10048 stop was caused by a hardware breakpoint, ignore the trap.
10049 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
10050 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
10051 to_supports_stopped_by_hw_breakpoint>: New fields.
10052 (target_stopped_by_sw_breakpoint)
10053 (target_supports_stopped_by_sw_breakpoint)
10054 (target_stopped_by_hw_breakpoint)
10055 (target_supports_stopped_by_hw_breakpoint): Define.
10056 * target-delegates.c: Regenerate.
10057
79639e11
PA
100582015-03-04 Pedro Alves <palves@redhat.com>
10059
10060 * infrun.c (follow_fork_inferior): Use the whole of the
10061 inferior_ptid and pending_follow.related_pid ptids instead of
10062 building ptids from the process components. Adjust verbose output
10063 to use target_pid_to_str.
10064 * linux-nat.c (linux_child_follow_fork): Use the whole of the
10065 inferior_ptid and pending_follow.related_pid ptids instead of
10066 building ptids from the process components.
10067
e85e8e5e
MK
100682015-03-04 Mark Kettenis <kettenis@gnu.org>
10069
10070 * inf-ptrace.c [PT_GET_PROCESS_STATE]
10071 (inf_ptrace_insert_fork_catchpoint): New function.
10072 (inf_ptrace_remove_fork_catchpoint): New function.
10073 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
10074
87de11c0
AA
100752015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
10076
10077 * s390-linux-tdep.c (s390_register_name): Return empty string
10078 instead of NULL for registers that shouldn't be visible.
10079
d851a69a
AA
100802015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
10081
10082 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
10083 XML file for 64-bit targets.
10084
b072f6c1
SM
100852015-03-03 Simon Marchi <simon.marchi@ericsson.com>
10086
10087 * target.h (find_default_create_inferior): Remove declaration.
10088 (find_default_attach): Likewise.
10089
c1593e4f
PA
100902015-03-03 Pedro Alves <palves@redhat.com>
10091
10092 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
10093 Use ptid_get_pid to get the overall process id when resuming all
10094 threads.
10095
90ad5e1d
PA
100962015-03-03 Pedro Alves <palves@redhat.com>
10097
10098 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
10099 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
10100 * inf-ptrace.c (get_ptrace_pid): New function.
10101 (inf_ptrace_resume): Use it.
10102 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
10103 to the lower layer.
10104
d68e53f4
MM
101052015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10106
10107 * nat/linux-btrace.c: Include sys/utsname.h.
10108 (linux_determine_kernel_ptr_bits): New.
10109 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
10110 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
10111 ptr_bits.
10112
986b6601
MM
101132015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10114
10115 * btrace.c (ftrace_update_function): Treat return as tailcall for
10116 "_dl_runtime_resolve".
10117
ce0dfbea
MM
101182015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10119
10120 * btrace.h (btrace_function) <lbegin, lend>: Remove.
10121 * btrace.c (ftrace_debug): Do not print the line range.
10122 (ftrace_skip_file, ftrace_update_lines): Remove.
10123 (ftrace_new_function): Remove lbegin and lend initialization.
10124 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
10125 * record-btrace.c (btrace_compute_src_line_range): New.
10126 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
10127
95e50b27
PA
101282015-03-02 Pedro Alves <palves@redhat.com>
10129
10130 * infrun.c (follow_exec): Delete all threads of the process except
10131 the event thread. Extended comments.
10132
00e474c2
JB
101332015-03-02 Joel Brobecker <brobecker@adacore.com>
10134
10135 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
10136
cc7039d3
JB
101372015-03-02 Joel Brobecker <brobecker@adacore.com>
10138
10139 * utils.h: Remove <stdbool.h> #include.
10140 (producer_is_gcc): Change return type to "int".
10141 * utils.c (producer_is_gcc): Change return type to int.
10142 Return 1 instead of true, and 0 instead of false.
10143 Adjust function documentation accordingly.
10144
550bdf96
AA
101452015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
10146
10147 * s390-linux-nat.c (have_regset_vxrs): New static variable.
10148 (s390_linux_fetch_inferior_registers): Handle vector registers, if
10149 present.
10150 (s390_linux_store_inferior_registers): Likewise.
10151 (s390_get_hwcap): Remove function. Embed its logic...
10152 (s390_read_description): ...here. Yield a target description with
10153 vector registers if applicable.
10154 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
10155 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
10156 "features/s390x-tevx-linux64.c".
10157 (struct gdbarch_tdep) <v0_full_regnum>: New field.
10158 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
10159 for "GNU/Linux-specific registers".
10160 (s390_dwarf_reg_r0l): New enum value.
10161 (s390_dwarf_reg_to_regnum): Support vector registers.
10162 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
10163 of GPR lower halves.
10164 (regnum_is_vxr_full): New function.
10165 (s390_register_name): New function.
10166 (s390_pseudo_register_name): Handle v0-v15, which are composed of
10167 f0-f15 and v0l-v15l.
10168 (s390_pseudo_register_type): Likewise.
10169 (s390_pseudo_register_read): Likewise.
10170 (s390_pseudo_register_write): Likewise.
10171 (s390_value_from_register): Account for the fact that values are
10172 placed left-justified in vector registers.
10173 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
10174 the vector reggroup and omit them from the general reggroup.
10175 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
10176 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
10177 (s390_iterate_over_regset_sections): Add iterations for the two
10178 new vector regsets.
10179 (s390_core_read_description): Yield a target description with
10180 vector registers if applicable.
10181 (s390_gdbarch_init): Handle target descriptions with vector
10182 registers. Add "register_name" gdbarch method.
10183 (_initialize_s390_tdep): Call new tdesc initialization functions.
10184 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
10185 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
10186 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
10187 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
10188 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
10189 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
10190 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
10191 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
10192 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
10193 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
10194 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
10195 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
10196 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
10197 (S390_NUM_REGS): Adjust value.
10198 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
10199 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
10200 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
10201 * NEWS: Announce S/390 vector register support.
10202
446899e4
AA
102032015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
10204
10205 * features/s390-tevx-linux64.xml: New file.
10206 * features/s390-vx-linux64.xml: New file.
10207 * features/s390-vx.xml: New file.
10208 * features/s390x-tevx-linux64.xml: New file.
10209 * features/s390x-vx-linux64.xml: New file.
10210 * features/Makefile (WHICH): Add s390-vx-linux64,
10211 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
10212 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
10213 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
10214 macros.
10215 * features/s390-tevx-linux64.c: New generated file.
10216 * features/s390-vx-linux64.c: Likewise.
10217 * features/s390x-tevx-linux64.c: Likewise.
10218 * features/s390x-vx-linux64.c: Likewise.
10219 * regformats/s390-tevx-linux64.dat: Likewise.
10220 * regformats/s390-vx-linux64.dat: Likewise.
10221 * regformats/s390x-tevx-linux64.dat: Likewise.
10222 * regformats/s390x-vx-linux64.dat: Likewise.
10223
b7236fbe
DE
102242015-02-28 Doug Evans <xdje42@gmail.com>
10225
10226 * symtab.h (struct symtab) <next>: Fix comment.
10227
02e62830
SM
102282015-02-27 Simon Marchi <simon.marchi@ericsson.com>
10229
10230 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
10231 python_GdbMethods.
10232
bf36a1e7
PA
102332015-02-27 Pedro Alves <palves@redhat.com>
10234
10235 * dtrace-probe.c (dtrace_probe_ops): Make extern.
10236
ad6aff7d
PA
102372015-02-27 Pedro Alves <palves@redhat.com>
10238
10239 * common/common-exceptions.h (exception_none): Declare.
10240 * common/common-exceptions.c (exception_none): Moved from
10241 exceptions.c.
10242 (exceptions_state_mc_init): Use exception_none.
10243 * exceptions.c (exception_none): Move to
10244 common/common-exceptions.c.
10245 * exceptions.h (exception_none): Move to
10246 common/common-exceptions.h.
10247
97c18565
PA
102482015-02-27 Pedro Alves <palves@redhat.com>
10249
10250 * main.c (catch_command_errors, catch_command_errors_const):
10251 Remove 'mask' argument. Adjust.
10252 (captured_main): Adjust callers.
10253
e992c591
PA
102542015-02-27 Pedro Alves <palves@redhat.com>
10255
10256 * python/python-internal.h: Include "extension-priv.h".
10257
64166036
PA
102582015-02-27 Pedro Alves <palves@redhat.com>
10259
10260 * breakpoint.h (enum print_stop_action): Move further up in the
10261 file.
10262
8a526fa6
PA
102632015-02-27 Pedro Alves <palves@redhat.com>
10264
10265 * gdbarch.sh: Include regcache.h.
10266 * gdbarch.h: Regenerate.
10267
0fa9c223
PA
102682015-02-27 Pedro Alves <palves@redhat.com>
10269
10270 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
10271 Remove duplicate const.
10272 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
10273 duplicate const.
10274
7cf99fb1
PA
102752015-02-27 Pedro Alves <palves@redhat.com>
10276
10277 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
10278 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
10279 * features/feature_to_c.sh: Tag the generated xml_builtin array
10280 with extern const in C++ mode.
10281
1424c16e
TT
102822015-02-27 Tom Tromey <tromey@redhat.com>
10283
10284 * minidebug.c (struct lzma_stream): Rename to ...
10285 (struct gdb_lzma_stream): ... this.
10286 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
10287
10367c7c
PA
102882015-02-27 Pedro Alves <palves@redhat.com>
10289
10290 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
10291 function.
10292 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
10293 (mi_cmd_stack_list_variables): Use it.
10294
4180215b
PA
102952015-02-27 Pedro Alves <palves@redhat.com>
10296
10297 * x86-linux-nat.c (u_debugreg_offset): New function.
10298 (x86_linux_dr_get, x86_linux_dr_set): Use it.
10299
2f56f7c3
PA
103002015-02-27 Pedro Alves <palves@redhat.com>
10301
10302 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
10303 declaration.
10304 Include break-common.h.
10305
570dc176
TT
103062015-02-27 Tom Tromey <tromey@redhat.com>
10307 Pedro Alves <palves@redhat.com>
10308
10309 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
10310 local used to iterate over enums.
10311 * completer.c (signal_completer): Likewise.
10312 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
10313 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
10314 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
10315 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
10316 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
10317 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
10318 * tui-wingeneral.c (tui_refresh_all): Likewise.
10319
68c14faa
PA
103202015-02-27 Pedro Alves <palves@redhat.com>
10321
10322 * target.h: Include "infrun.h".
10323
749bab01
PA
103242015-02-27 Pedro Alves <palves@redhat.com>
10325
10326 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
10327
3c14e5a3
PA
103282015-02-27 Pedro Alves <palves@redhat.com>
10329
10330 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
10331 (IPA_SYM): Use it.
10332 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
10333
56000a98
PA
103342015-02-27 Pedro Alves <palves@redhat.com>
10335
10336 * cli-out.c (_rl_erase_entire_line): Move declaration out of
10337 cli_mld_erase_entire_line, and make it extern "C".
10338 * common/common-defs.h (EXTERN_C): New.
10339 * completer.c (_rl_completion_prefix_display_length)
10340 (_rl_print_completions_horizontally, QSFUNC): Move declarations
10341 out of gdb_display_match_list_1.
10342 (_rl_qsort_string_compare): Move declaration out of
10343 gdb_display_match_list_1, and make it extern "C".
10344 * defs.h (re_comp): Use EXTERN_C.
10345 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
10346 and make it extern "C".
10347 (monstartup): Move declaration out of maintenance_set_profile_cmd,
10348 and make it extern "C".
10349 (main): Move declaration out of maintenance_set_profile_cmd.
10350 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
10351 EXTERN_C.
10352
bcabf420
PA
103532015-02-27 Pedro Alves <palves@redhat.com>
10354
10355 * python/python.c (GdbMethods): Rename to ...
10356 (python_GdbMethods): ... this and make extern.
10357 (GdbModuleDef): Rename to ...
10358 (python_GdbModuleDef): ... this and make extern.
10359
928dbe07
PA
103602015-02-27 Pedro Alves <palves@redhat.com>
10361
10362 * record-btrace.c (set_record_btrace_cmdlist)
10363 (show_record_btrace_cmdlist): Remove redefinitions.
10364
52059ffd
TT
103652015-02-27 Tom Tromey <tromey@redhat.com>
10366 Pedro Alves <palves@redhat.com>
10367
10368 * dwarf2-frame.c (enum cfa_how_kind, struct
10369 dwarf2_frame_state_reg_info): Move out of struct
10370 dwarf2_frame_state.
10371 * dwarf2read.c (struct tu_stats): Move out of struct
10372 dwarf2_per_objfile.
10373 (struct file_entry): Move out of struct line_header.
10374 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
10375 typedef_field_list): Move out of struct field_info.
10376 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
10377 Move out of struct dynamic_prop.
10378 (union type_owner, union field_location, struct field, struct
10379 range_bounds, union type_specific): Move out of struct main_type.
10380 (struct fn_fieldlist, struct fn_field, struct typedef_field)
10381 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
10382 (struct call_site_target, union call_site_parameter_u, struct
10383 call_site_parameter): Move out of struct call_site.
10384 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
10385 m32c_prologue.
10386 (enum srcdest_kind): Move out of struct srcdest.
10387 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
10388 * prologue-value.h (enum prologue_value_kind): Move out of struct
10389 prologue_value.
10390 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
10391 gdbarch_tdep.
10392 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
10393 out of struct field_info.
10394 * symfile.h (struct other_sections): Move out of struct
10395 section_addr_info.
10396 * symtab.c (struct symbol_cache_slot): Move out struct
10397 block_symbol_cache.
10398 * target-descriptions.c (enum tdesc_type_kind): Move out of
10399 typedef struct tdesc_type.
10400 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
10401 struct tui_line_or_address.
10402 * value.c (enum internalvar_kind, union internalvar_data): Move
10403 out of struct internalvar.
10404 * xtensa-tdep.h (struct ctype_cache): Move out of struct
10405 gdbarch_tdep.
10406
fe978cb0
PA
104072015-02-27 Tom Tromey <tromey@redhat.com>
10408 Pedro Alves <palves@redhat.com>
10409
10410 Rename symbols whose names are reserved C++ keywords throughout.
10411
3bc3d82a
PA
104122015-02-27 Pedro Alves <palves@redhat.com>
10413
10414 * Makefile.in (COMPILER): New, get it from autoconf.
10415 (COMPILE.pre, CC_LD): Use COMPILER.
10416 (CXX): Get from autoconf instead.
10417 (CXX_FOR_TARGET): Default to g++ instead of gcc.
10418 * acinclude.m4: Include build-with-cxx.m4.
10419 * build-with-cxx.m4: New file.
10420 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
10421 Disable -Werror by default if building in C++ mode.
10422 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
10423 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
10424 Run supported-warning-flags tests with the C++ compiler.
10425 Save/restore CXXFLAGS too.
10426 * configure: Regenerate.
10427
07697489
PA
104282015-02-27 Pedro Alves <palves@redhat.com>
10429
10430 * libiberty.m4: New file.
10431 * acinclude.m4: Include libiberty.m4.
10432 * configure.ac: Call libiberty_INIT.
10433 * config.in, configure: Regenerate.
10434
60abeae4
AA
104352015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
10436
10437 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
10438 31-bit targets, but 64-bit targets as well.
10439 (s390_gnu_triplet_regexp): New function.
10440 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
10441 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
10442 method.
10443
f44466fb 104442015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
f0666312
JT
10445
10446 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
10447 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
10448 from CONTEXT_DEBUGGER.
10449
0def5aaa
DE
104502015-02-26 Doug Evans <dje@google.com>
10451
10452 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
10453 CHECK_TYPEDEF.
10454 (set_type_vptr_fieldno): Ditto.
10455 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
10456 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
10457
77b64a49
PA
104582015-02-26 Pedro Alves <palves@redhat.com>
10459
10460 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
10461 * complaints.c (vcomplaint): Pass argument FMT directly to
10462 printf-like functions instead of complaint->fmt.
10463 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
10464 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
10465 * compile/compile-loc2c.c (pushf, unary, binary): Add
10466 ATTRIBUTE_PRINTF.
10467 (do_compile_dwarf_expr_to_c): Pass string literal as format string
10468 to pushf.
10469 (BINARY): Pass string literal as format string to 'binary'.
10470 * compile/compile-object-load.c (link_callbacks_einfo): Add
10471 ATTRIBUTE_PRINTF.
10472 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
10473
532f44ed
PA
104742015-02-26 Pedro Alves <palves@redhat.com>
10475
10476 * windows-termcap.c: Rename to ...
10477 * stub-termcap.c: ... this. Adjust header line.
10478 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
10479 windows-termcap.c.
10480 * configure: Regenerate.
10481 * configure.ac: Refer to stub-termcap.o instead of
10482 windows-termcap.o.
10483 * gdb_curses.h: Mention stub-termcap.c instead of
10484 windows-termcap.c.
10485
081a1c2c
JK
104862015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10487
10488 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
10489 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
10490
2f41223f
AT
104912015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
10492
10493 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
10494
80c57053
JK
104952015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10496
10497 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
10498 bfd_canonicalize_symtab.
10499
cf424aef
JB
105002015-02-25 John Baldwin <jhb@FreeBSD.org>
10501
10502 * amd64fbsd-nat.c: Include sys/user.h.
10503 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10504 instead of KERN_PS_STRINGS to locate the signal trampoline.
10505 * i386fbsd-nat.c: Include sys/user.h.
10506 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10507 instead of KERN_PS_STRINGS to locate the signal trampoline.
10508 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
10509 (amd64fbsd_sigtramp_p): New.
10510 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
10511 longer set default values.
10512 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
10513 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
10514 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
10515 (i386fbsd_freebsd4_sigtramp_start)
10516 (i386fbsd_freebsd4_sigtramp_middle)
10517 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
10518 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
10519 (i386fbsd_sigtramp_p): New.
10520 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
10521 longer set default values.
10522 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
10523
c5cb74ee
JB
105242015-02-25 John Baldwin <jhb@freebsd.org>
10525
10526 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
10527 get_frame_register instead of frame_unwind_register_unsigned.
10528
17487d85
JK
105292015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10530
10531 PR build/18033
10532 * compile/compile-c-support.c (c_compute_program): Change // comment.
10533 * compile/compile-object-load.c (setup_sections): Change // comment.
10534
9357a9e6
JB
105352015-02-26 Joel Brobecker <brobecker@adacore.com>
10536
10537 PR build/18033:
10538 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
10539
1f10ba14
PA
105402015-02-23 Pedro Alves <palves@redhat.com>
10541
10542 * remote.c (skip_to_semicolon): New function.
10543 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
10544 special case the stop reasons that look like hex numbers
10545 upfront. Instead handle real register numbers after matching
10546 all the known stop reasons.
10547
96553a0c
DE
105482015-02-21 Doug Evans <dje@google.com>
10549
10550 PR c++/17976, symtab/17821
10551 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
10552 is_in_anonymous. All callers updated.
10553 (find_symbol_in_baseclass): Ditto.
10554 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
10555 for symbols in an anonymous namespace.
10556 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
10557 DW_AT_name directly.
10558 (dwarf2_name): Convert missing namespace name to
10559 CP_ANONYMOUS_NAMESPACE_STR.
10560
2db9a427
PA
105612015-02-20 Pedro Alves <palves@redhat.com>
10562
10563 * linux-nat.c (linux_handle_extended_wait): Call
10564 thread_db_notice_clone whenever a new clone LWP is detected.
10565 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
10566 functions.
10567 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
10568 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
10569 (linux_unstop_all_lwps): Declare.
10570 * linux-thread-db.c (struct thread_get_info_inout): Delete.
10571 (thread_get_info_callback): Delete.
10572 (thread_from_lwp): Use td_thr_get_info and record_thread.
10573 (thread_db_attach_lwp): Delete.
10574 (thread_db_notice_clone): New function.
10575 (try_thread_db_load_1): If /proc is mounted and shows the
10576 process'es task list, walk over all LWPs and call thread_from_lwp
10577 instead of relying on td_ta_thr_iter.
10578 (attach_thread): Don't call check_thread_signals here. Split the
10579 tail part of the function (which adds the thread to the core GDB
10580 thread list) to ...
10581 (record_thread): ... this function. Call check_thread_signals
10582 here.
10583 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
10584 call thread_from_lwp.
10585 (thread_db_update_thread_list): Rename to ...
10586 (thread_db_update_thread_list_org): ... this.
10587 (thread_db_update_thread_list): New function.
10588 (thread_db_find_thread_from_tid): Delete.
10589 (thread_db_get_ada_task_ptid): Simplify.
10590 * nat/linux-procfs.c: Include <sys/stat.h>.
10591 (linux_proc_task_list_dir_exists): New function.
10592 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
10593
3b27ef47
PA
105942015-02-20 Pedro Alves <palves@redhat.com>
10595
10596 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
10597 main LWP. Handle the case of waitpid returning 0 if we're already
10598 attached to the LWP. Don't set the LWP's last_resume_kind to
10599 resume_stop if we already knew about the LWP.
10600 (linux_nat_filter_event): Add debug logs.
10601
1cc28231
PA
106022015-02-20 Pedro Alves <palves@redhat.com>
10603
10604 * target.h (forward_target_decr_pc_after_break): Delete
10605 declaration.
10606
5c5019c2
PA
106072015-02-20 Pedro Alves <palves@redhat.com>
10608
10609 PR threads/18006
10610 * linux-thread-db.c (thread_get_info_callback): Return early if
10611 the thread's lwp id is -1.
10612
f3978e91
JB
106132015-02-20 Joel Brobecker <brobecker@adacore.com>
10614
10615 GDB 7.9 released.
10616
ffdf88ec
SE
106172015-02-19 Steve Ellcey <sellcey@imgtec.com>
10618
10619 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
10620 (dtrace_get_probes) Change type of variable 'dof'.
10621
c9587f88
AT
106222015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
10623
10624 PR breakpoints/16812
10625 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
10626 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
10627 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
10628
53cf2ee0
DT
106292015-02-19 David Taylor <dtaylor@emc.com>
10630
10631 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
10632
acfe0940
PP
106332015-02-18 Patrick Palka <patrick@parcs.ath.cx>
10634
10635 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
10636 function.
10637 (tui_putc): Don't call tui_handle_resize_during_io.
10638 (tui_getc): Likewise.
10639 (tui_mld_getc): Likewise.
10640 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
10641 (tui_sigwinch_token): New static variable.
10642 (tui_initialize_win): Adjust documentation. Set
10643 tui_sigwinch_token.
10644 (tui_async_resize_screen): New asynchronous callback.
10645 (tui_sigwinch_handler): Adjust documentation. Asynchronously
10646 invoke tui_async_resize_screen.
10647
f6a88844
JM
106482015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
10649
10650 * configure: Regenerated.
10651 * configure.ac: Use GDB_AC_TRANSFORM.
10652 * Makefile.in (aclocal_m4_deps): Added transform.m4.
10653 * acinclude.m4: sinclude transform.m4.
10654 * transform.m4: New file.
10655 (GDB_AC_TRANSFORM): New macro.
10656
b05e3b0d
JM
106572015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10658
10659 * NEWS: Announce the support for DTrace SDT probes.
10660
c3e3045e
JM
106612015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10662
10663 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
10664 (amd64_dtrace_parse_probe_argument): New function.
10665 (amd64_dtrace_probe_is_enabled): Likewise.
10666 (amd64_dtrace_enable_probe): Likewise.
10667 (amd64_dtrace_disable_probe): Likewise.
10668 (amd64_linux_init_abi): Register the
10669 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
10670 `gdbarch_dtrace_disable_probe' and
10671 `gdbarch_dtrace_probe_is_enabled' hooks.
10672 (amd64_dtrace_disabled_probe_sequence_1): New constant.
10673 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
10674 (amd64_dtrace_enable_probe_sequence): Likewise.
10675 (amd64_dtrace_disable_probe_sequence): Likewise.
10676
d4777acb
JM
106772015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10678
10679 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
10680 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
10681 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
10682 handle ELF files.
10683 * Makefile.in (SFILES): dtrace-probe.c added.
10684 * configure: Regenerate.
10685 * dtrace-probe.c: New file.
10686 (SHT_SUNW_dof): New constant.
10687 (dtrace_probe_type): New enum.
10688 (dtrace_probe_arg): New struct.
10689 (dtrace_probe_arg_s): New typedef.
10690 (struct dtrace_probe_enabler): New struct.
10691 (dtrace_probe_enabler_s): New typedef.
10692 (dtrace_probe): New struct.
10693 (dtrace_probe_is_linespec): New function.
10694 (dtrace_dof_sect_type): New enum.
10695 (dtrace_dof_dofh_ident): Likewise.
10696 (dtrace_dof_encoding): Likewise.
10697 (DTRACE_DOF_ENCODE_LSB): Likewise.
10698 (DTRACE_DOF_ENCODE_MSB): Likewise.
10699 (dtrace_dof_hdr): New struct.
10700 (dtrace_dof_sect): Likewise.
10701 (dtrace_dof_provider): Likewise.
10702 (dtrace_dof_probe): Likewise.
10703 (DOF_UINT): New macro.
10704 (DTRACE_DOF_PTR): Likewise.
10705 (DTRACE_DOF_SECT): Likewise.
10706 (dtrace_process_dof_probe): New function.
10707 (dtrace_process_dof): Likewise.
10708 (dtrace_build_arg_exprs): Likewise.
10709 (dtrace_get_arg): Likewise.
10710 (dtrace_get_probes): Likewise.
10711 (dtrace_get_probe_argument_count): Likewise.
10712 (dtrace_can_evaluate_probe_arguments): Likewise.
10713 (dtrace_evaluate_probe_argument): Likewise.
10714 (dtrace_compile_to_ax): Likewise.
10715 (dtrace_probe_destroy): Likewise.
10716 (dtrace_gen_info_probes_table_header): Likewise.
10717 (dtrace_gen_info_probes_table_values): Likewise.
10718 (dtrace_probe_is_enabled): Likewise.
10719 (dtrace_probe_ops): New variable.
10720 (info_probes_dtrace_command): New function.
10721 (_initialize_dtrace_probe): Likewise.
10722 (dtrace_type_name): Likewise.
10723
8b367e17
JM
107242015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10725
10726 * gdbarch.sh (dtrace_parse_probe_argument): New.
10727 (dtrace_probe_is_enabled): Likewise.
10728 (dtrace_enable_probe): Likewise.
10729 (dtrace_disable_probe): Likewise.
10730 * gdbarch.c: Regenerate.
10731 * gdbarch.h: Regenerate.
10732
9aca2ff8
JM
107332015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10734
10735 * stap-probe.c (stap_probe_ops): Add NULLs in the static
10736 stap_probe_ops for `enable_probe' and `disable_probe'.
10737 * probe.c (enable_probes_command): New function.
10738 (disable_probes_command): Likewise.
10739 (_initialize_probe): Define the cli commands `enable probe' and
10740 `disable probe'.
10741 (parse_probe_linespec): New function.
10742 (info_probes_for_ops): Use parse_probe_linespec.
10743 * probe.h (probe_ops): New hooks `enable_probe' and
10744 `disable_probe'.
10745
03e98035
JM
107462015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10747
10748 * probe.c (compute_probe_arg): Moved from stap-probe.c
10749 (compile_probe_arg): Likewise.
10750 (probe_funcs): Likewise.
10751 * stap-probe.c (compute_probe_arg): Moved to probe.c.
10752 (compile_probe_arg): Likewise.
10753 (probe_funcs): Likewise.
10754
6f9b8491
JM
107552015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10756
10757 * probe.c (print_ui_out_not_applicables): New function.
10758 (exists_probe_with_pops): Likewise.
10759 (info_probes_for_ops): Do not include column headers for probe
10760 types for which no probe has been actually found on any object.
10761 Also invoke `print_ui_out_not_applicables' in order to match the
10762 column rows with the header when probes of several types are
10763 listed.
10764 Print the "Type" column.
10765 * probe.h (probe_ops): Added a new probe operation `type_name'.
10766 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
10767 (stap_type_name): New function.
10768
69efdff1
PP
107692015-02-17 Patrick Palka <patrick@parcs.ath.cx>
10770
10771 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
10772 (key_is_command_char): Delete.
10773
f8e5e23e
PA
107742015-02-17 Pedro Alves <palves@redhat.com>
10775
10776 * tui/tui.c (tui_enable): Resize windows before anything
10777 might show a window.
10778
9f2e0721
MO
107792015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
10780
10781 PR gdb/17984
10782 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
10783 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
10784 call.
10785 * aarch64-tdep.h (tdesc_aarch64): Declare.
10786
171e6b1c
MW
107872015-02-12 Mark Wielaard <mjw@redhat.com>
10788
10789 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
10790
d5ff0482
DE
107912015-02-13 Doug Evans <dje@google.com>
10792
10793 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
10794 anonymous_namespace to is_in_anonymous for consistency with the rest
10795 of the file.
10796 (cp_lookup_bare_symbol): Fix typo in comment.
10797 (cp_search_static_and_baseclasses): Ditto.
10798 (search_symbol_list): Use vertical space in comment better.
10799 (reset_directive_searched): Ditto. Fix typo.
10800 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
10801
9f04ac5f
YQ
108022015-02-13 Yao Qi <yao.qi@arm.com>
10803
10804 * MAINTAINERS: Update my email address.
10805
013d0319
DE
108062015-02-12 Doug Evans <dje@google.com>
10807
b615dd20 10808 * symtab.c (completion_list_add_name): Fix memory leak.
013d0319 10809
9a7e538e
DE
108102015-02-12 Doug Evans <dje@google.com>
10811
10812 * completer.c (complete_line): Remove incorrect comment.
10813
e1fcd575
JK
108142015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10815
10816 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
10817 (py_print_frame): Use RETURN_MASK_ERROR.
10818
b99bf4e3
JK
108192015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10820
10821 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
10822 function comment. Wrap all function that can throw in cleanups.
10823 (gdbpy_apply_frame_filter): Wrap all function that can throw in
10824 cleanups.
10825
800eb1ce
JK
108262015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10827
10828 * python/py-framefilter.c (py_print_frame): Substitute goto error.
10829 Remove the error label.
10830
34019068
JK
108312015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10832
10833 * python/py-framefilter.c (py_print_frame): Put conditional code paths
10834 with goto first, indent the former else codepath left. Put variable
10835 'elided' to a new inner block.
10836
8d4a54e2
JK
108372015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10838
10839 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
10840
18ad82c1
PA
108412015-02-11 Pedro Alves <palves@redhat.com>
10842
10843 * xcoffread.c (within_function): Delete.
10844
e36122e9
TT
108452015-02-11 Tom Tromey <tromey@redhat.com>
10846 Pedro Alves <palves@redhat.com>
10847
10848 * breakpoint.c (base_breakpoint_ops): Delete.
10849 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
10850 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
10851 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
10852 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
10853 * python/py-arch.c (arch_object_type): Make extern.
10854 * python/py-block.c (block_syms_iterator_object_type): Make extern.
10855 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
10856 * python/py-cmd.c (cmdpy_object_type): Make extern.
10857 * python/py-continueevent.c (continue_event_object_type)
10858 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
10859 parameter. Update all callers.
10860 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
10861 * python/py-exitedevent.c (exited_event_object_type): Make extern.
10862 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
10863 * python/py-function.c (fnpy_object_type): Make extern.
10864 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
10865 * python/py-infevents.c (call_pre_event_object_type)
10866 (inferior_call_post_event_object_type).
10867 (memory_changed_event_object_type): Make extern.
10868 * python/py-infthread.c (thread_object_type): Make extern.
10869 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
10870 * python/py-linetable.c (linetable_entry_object_type)
10871 (linetable_object_type, ltpy_iterator_object_type): Make extern.
10872 * python/py-newobjfileevent.c (new_objfile_event_object_type)
10873 (clear_objfiles_event_object_type): Make extern.
10874 * python/py-objfile.c (objfile_object_type): Make extern.
10875 * python/py-param.c (parmpy_object_type): Make extern.
10876 * python/py-progspace.c (pspace_object_type): Make extern.
10877 * python/py-signalevent.c (signal_event_object_type): Make extern.
10878 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
10879 * python/py-type.c (type_object_type, field_object_type)
10880 (type_iterator_object_type): Make extern.
10881 * python/python.c (python_extension_script_ops)
10882 (python_extension_ops): Make extern.
10883 * stap-probe.c (stap_probe_ops): Make extern.
10884
0703599a
PA
108852015-02-11 Pedro Alves <pedro@codesourcery.com>
10886
10887 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
10888 because the event thread is not the current thread.
10889
eaaf76ab
DE
108902015-02-11 Doug Evans <xdje42@gmail.com>
10891
10892 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
10893 been initialized yet, return NULL.
10894
e7d52ed3
DE
108952015-02-11 Doug Evans <dje@google.com>
10896
10897 * symfile.h (new_symfile_objfile): Delete.
10898 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
10899 All callers updated.
10900
fc6b1256
PP
109012015-02-11 Patrick Palka <patrick@parcs.ath.cx>
10902
10903 * tui/tui-io.c (tui_handle_resize_during_io): Call
10904 tui_update_gdb_sizes() after resizing the screen.
10905 * tui/tui.c (tui_enable): Resize the terminal before
10906 calling tui_update_gdb_sizes().
10907
d9080678
PP
109082015-02-11 Patrick Palka <patrick@parcs.ath.cx>
10909
10910 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
10911 line before printing a newline.
10912
9f615e3a
MW
109132015-02-11 Mark Wielaard <mjw@redhat.com>
10914
10915 * utils.c (producer_is_gcc): Return true or false.
10916
d9080678 109172015-02-10 Mark Wielaard <mjw@redhat.com>
b1ffba5a
MW
10918
10919 * utils.h (producer_is_gcc): Change return type to bool. Add major
10920 argument.
10921 * utils.c (producer_is_gcc): Likewise.
10922 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
10923 * dwarf2read.c (check_producer): Likewise.
10924
b052c4fb
PA
109252015-02-10 Pedro Alves <palves@redhat.com>
10926
10927 * infrun.c (displaced_step_fixup): Switch to the event thread
10928 before calling gdbarch_displaced_step_fixup.
10929
3ac240d4
AT
109302015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
10931
10932 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
10933
c1cc6152
SM
109342015-02-10 Simon Marchi <simon.marchi@ericsson.com>
10935
10936 * ada-varobj.c (ada_name_of_child): Constify parent.
10937 (ada_path_expr_of_child): Same.
10938 (ada_value_of_child): Same.
10939 (ada_type_of_child): Same.
10940 * c-varobj.c (c_is_path_expr_parent): Same.
10941 (c_describe_child): Same.
10942 (c_name_of_child): Same.
10943 (c_value_of_child): Same.
10944 (c_type_of_child): Same.
10945 (cplus_number_of_children): Same.
10946 (cplus_describe_child): Constify var.
10947 (cplus_name_of_child): Constify parent.
10948 (cplus_value_of_child): Same.
10949 (cplus_type_of_child): Same.
10950 * jv-varobj.c (java_name_of_child): Same.
10951 (java_value_of_child): Same.
10952 (java_type_of_child): Same.
10953 * varobj.c (value_of_child): Same.
10954 (varobj_default_is_path_expr_parent): Constify var, parent and return
10955 value.
10956 (varobj_get_path_expr): Constify var, modify path_expr through
10957 mutable_var.
10958 (install_new_value): Constify parent.
10959 (value_of_child): Constify parent.
10960 * varobj.h (struct varobj): Constify parent.
10961 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
10962 type_of_child.
10963 (varobj_get_path_expr): Constify var.
10964 (varobj_get_path_expr_parent): Constify var and return value.
10965
c1ee9414
LM
109662015-02-10 Luis Machado <lgustavo@codesourcery.com>
10967
10968 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
10969 (arm_prologue_this_id): Move PC and SP limit checks to
10970 arm_prologue_unwind_stop_reason.
10971 (arm_prologue_unwind) <stop_reason> : Set to
10972 arm_prologue_unwind_stop_reason.
10973
f7de9aab
MW
109742015-02-09 Mark Wielaard <mjw@redhat.com>
10975
10976 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
10977 DW_LANG_Fortran08 as language_fortran.
10978
0b24eb2d
SDJ
109792015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
10980
10981 PR remote/17946
10982 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
10983 of pointer against char.
10984
a2c2acaf
MW
109852015-02-09 Mark Wielaard <mjw@redhat.com>
10986
10987 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
10988 (c_type_print_modifier): Likewise.
10989 * dwarf2read.c (read_tag_atomic_type): New function.
10990 (read_type_die_1): Handle DW_TAG_atomic_type.
10991 * gdbtypes.c (make_atomic_type): New function.
10992 (recursive_dump_type): Handle TYPE_ATOMIC.
10993 * gdbtypes.h (enum type_flag_values): Renumber.
10994 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
10995 (TYPE_ATOMIC): New macro.
10996 (make_atomic_type): Declare.
10997
31fd9caa
MM
109982015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10999
11000 * btrace.c (ftrace_find_call): Skip gaps.
11001 (ftrace_new_function): Initialize level.
11002 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
11003 (ftrace_new_switch): Update
11004 level computation.
11005 (ftrace_new_gap): New.
11006 (ftrace_update_function): Create new function after gap.
11007 (btrace_compute_ftrace_bts): Create gap on error.
11008 (btrace_stitch_bts): Update parameters. Clear trace if it
11009 becomes empty.
11010 (btrace_stitch_trace): Update parameters. Update callers.
11011 (btrace_clear): Reset the number of gaps.
11012 (btrace_insn_get): Return NULL if the iterator points to a gap.
11013 (btrace_insn_number): Return zero if the iterator points to a gap.
11014 (btrace_insn_end): Allow gaps at the end.
11015 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
11016 (btrace_find_insn_by_number): Assert that the found iterator does
11017 not point to a gap.
11018 (btrace_call_next, btrace_call_prev): Assert that the last function
11019 is not a gap.
11020 * btrace.h (btrace_bts_error): New.
11021 (btrace_function): Update comment.
11022 (btrace_function) <insn, insn_offset, number>: Update comment.
11023 (btrace_function) <errcode>: New.
11024 (btrace_thread_info) <ngaps>: New.
11025 (btrace_thread_info) <replay>: Update comment.
11026 (btrace_insn_get): Update comment.
11027 * record-btrace.c (btrace_ui_out_decode_error): New.
11028 (record_btrace_info): Print number of gaps.
11029 (btrace_insn_history, btrace_call_history): Call
11030 btrace_ui_out_decode_error for gaps.
11031 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
11032
afb778a2
MM
110332015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11034
11035 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
11036 * nat/linux-btrace.c: (btrace_this_cpu): New.
11037 (cpu_supports_bts): Call btrace_this_cpu.
11038 (intel_supports_bts): Add cpu parameter.
11039
7d5c24b3
MM
110402015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11041
11042 * btrace.h (btrace_insn_class): New.
11043 (btrace_insn) <size, iclass>: New.
11044 * btrace.c (ftrace_find_call): Update parameters. Update users.
11045 Use instruction classification.
11046 (ftrace_new_return): Update parameters. Update users.
11047 (ftrace_update_function): Update parameters. Update users. Use
11048 instruction classification.
11049 (ftrace_update_insns): Update parameters. Update users.
11050 (ftrace_classify_insn): New.
11051 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
11052 TRY_CATCH around call to gdb_insn_length.
11053
76235df1
MM
110542015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11055
11056 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
11057 Update parameters. Update users.
11058
d33501a5
MM
110592015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11060
11061 * btrace.c (parse_xml_btrace_conf_bts): Add size.
11062 (btrace_conf_bts_attributes): New.
11063 (btrace_conf_children): Add attributes.
11064 * common/btrace-common.h (btrace_config_bts): New.
11065 (btrace_config)<bts>: New.
11066 (btrace_config): Update comment.
11067 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
11068 Use config.
11069 * features/btrace-conf.dtd: Increment version. Add size
11070 attribute to bts element.
11071 * record-btrace.c (set_record_btrace_bts_cmdlist,
11072 show_record_btrace_bts_cmdlist): New.
11073 (record_btrace_adjust_size, record_btrace_print_bts_conf,
11074 record_btrace_print_conf, cmd_set_record_btrace_bts,
11075 cmd_show_record_btrace_bts): New.
11076 (record_btrace_info): Call record_btrace_print_conf.
11077 (_initialize_record_btrace): Add commands.
11078 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
11079 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
11080 (btrace_sync_conf): Synchronize bts size.
11081 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
11082 * NEWS: Announce new commands and new packets.
11083
f4abbc16
MM
110842015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11085
11086 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
11087 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
11088 (x86_linux_btrace_conf): New.
11089 (x86_linux_create_target): Initialize to_btrace_conf.
11090 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
11091 Check format. Split into this and ...
11092 (linux_enable_bts): ... this.
11093 (linux_btrace_conf): New.
11094 (perf_event_skip_record): Renamed into ...
11095 (perf_event_skip_bts_record): ... this. Updated users.
11096 (linux_disable_btrace): Split into this and ...
11097 (linux_disable_bts): ... this.
11098 (linux_read_btrace): Check format.
11099 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
11100 (linux_btrace_conf): New.
11101 (btrace_target_info)<ptid>: Moved.
11102 (btrace_target_info)<conf>: New.
11103 (btrace_target_info): Split into this and ...
11104 (btrace_tinfo_bts): ... this. Updated users.
11105 * btrace.c (btrace_enable): Update parameters.
11106 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
11107 (btrace_conf_children, btrace_conf_attributes)
11108 (btrace_conf_elements): New.
11109 * btrace.h (btrace_enable): Update parameters.
11110 (btrace_conf, parse_xml_btrace_conf): New.
11111 * common/btrace-common.h (btrace_config): New.
11112 * feature/btrace-conf.dtd: New.
11113 * record-btrace.c (record_btrace_conf): New.
11114 (record_btrace_cmdlist): New.
11115 (record_btrace_enable_warn, record_btrace_open): Pass
11116 &record_btrace_conf.
11117 (record_btrace_info): Print recording format.
11118 (cmd_record_btrace_bts_start): New.
11119 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
11120 (_initialize_record_btrace): Add "record btrace bts" subcommand.
11121 Add "record bts" alias command.
11122 * remote.c (remote_state)<btrace_config>: New.
11123 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
11124 (remote_protocol_features): Add qXfer:btrace-conf:read.
11125 (remote_open_1): Call remote_btrace_reset.
11126 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
11127 (btrace_target_info)<conf>: New.
11128 (btrace_sync_conf, btrace_read_config): New.
11129 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
11130 btrace_read_conf.
11131 (remote_btrace_conf): New.
11132 (init_remote_ops): Initialize to_btrace_conf.
11133 (_initialize_remote): Add qXfer:btrace-conf packet.
11134 * target.c (target_enable_btrace): Update parameters.
11135 (target_btrace_conf): New.
11136 * target.h (target_enable_btrace): Update parameters.
11137 (target_btrace_conf): New.
11138 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
11139 (target_ops)<to_enable_btrace>: Update parameters and comment.
11140 (target_ops)<to_btrace_conf>: New.
11141 * target-delegates: Regenerate.
11142 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
11143 (target_debug_print_const_struct_btrace_target_info_p): New.
11144 * NEWS: Announce new command and new packet.
11145
aadf7753
MM
111462015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11147
11148 * nat/linux-btrace.h (perf_event_buffer): New.
11149 (btrace_target_info) <buffer, size, data_head>: Replace with ...
11150 <bts>: ... this.
11151 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
11152 (perf_event_buffer_size, perf_event_buffer_begin)
11153 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
11154 Updated users.
11155 (perf_event_new_data): New.
11156
043c3577
MM
111572015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11158
11159 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
11160 * record-btrace.c (record_btrace_open): Remove call to
11161 target_supports_btrace.
11162 * remote.c (remote_supports_btrace): Update parameters.
11163 * target.c (target_supports_btrace): Update parameters.
11164 * target.h (to_supports_btrace, target_supports_btrace): Update
11165 parameters.
11166 * target-delegates.c: Regenerate.
11167 * target-debug.h (target_debug_print_enum_btrace_format): New.
11168 * nat/linux-btrace.c
11169 (kernel_supports_btrace): Rename into ...
11170 (kernel_supports_bts): ... this. Update users. Update warning text.
11171 (intel_supports_btrace): Rename into ...
11172 (intel_supports_bts): ... this. Update users.
11173 (cpu_supports_btrace): Rename into ...
11174 (cpu_supports_bts): ... this. Update users.
11175 (linux_supports_btrace): Update parameters. Split into this and ...
11176 (linux_supports_bts): ... this.
11177 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
11178
734b0e4b
MM
111792015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11180
11181 * Makefile.in (SFILES): Add common/btrace-common.c.
11182 (COMMON_OBS): Add common/btrace-common.o.
11183 (btrace-common.o): Add build rules.
11184 * btrace.c (parse_xml_btrace): Update parameters.
11185 (parse_xml_btrace_block): Set format field.
11186 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
11187 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
11188 (btrace_compute_ftrace): Split into this and...
11189 (btrace_compute_ftrace_bts): ...this.
11190 (btrace_stitch_trace): Split into this and...
11191 (btrace_stitch_bts): ...this.
11192 * btrace.h (parse_xml_btrace): Update parameters.
11193 (make_cleanup_btrace_data): New.
11194 * common/btrace-common.c: New.
11195 * common/btrace-common.h: Include common-defs.h.
11196 (btrace_block_s): Update comment.
11197 (btrace_format): New.
11198 (btrace_format_string): New.
11199 (btrace_data_bts): New.
11200 (btrace_data): New.
11201 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
11202 * remote.c (remote_read_btrace): Update parameters.
11203 * target.c (target_read_btrace): Update parameters.
11204 * target.h (target_read_btrace): Update parameters.
11205 (target_ops)<to_read_btrace>: Update parameters.
11206 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
11207 * target-delegates.c: Regenerate.
11208 * target-debug (target_debug_print_struct_btrace_data_p): New.
11209 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
11210 (linux_read_bts): ...this.
11211 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
11212
bd2e0e9e
DE
112132015-02-06 Doug Evans <dje@google.com>
11214
11215 * remote-m32r-sdi.c: Include symfile.h.
11216
f176c4b5
DE
112172015-02-06 Doug Evans <dje@google.com>
11218
11219 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
11220 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
11221 to here.
11222
d6c146e9
PA
112232015-02-06 Pedro Alves <palves@redhat.com>
11224
11225 * linux-thread-db.c (find_new_threads_callback): Add debug output.
11226
b9d61307
SM
112272015-02-06 Simon Marchi <simon.marchi@ericsson.com>
11228
11229 PR gdb/15678
11230 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
11231 (enable_count_command): Check args for NULL value.
11232
e9fbd043
DE
112332015-02-05 Doug Evans <xdje42@gmail.com>
11234
11235 * guile/scm-frame.c: Fix spelling errors in a comment.
11236
881d5d5d
JK
112372015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11238
11239 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
11240 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
11241 return type.
11242
20ba1ce6
PA
112432015-02-04 Pedro Alves <palves@redhat.com>
11244
11245 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
11246 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
11247 returns true.
11248 (resume_stopped_resumed_lwps): Don't check whether the thread is
11249 marked as executing.
11250 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
11251
f962539a
AA
112522015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11253
11254 * regset.h (struct regset): Add flags field.
11255 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
11256 * corelow.c (get_core_register_section): Add warning if the size
11257 exceeds the requested size and the regset does not have the
11258 REGSET_VARIABLE_SIZE flag set.
11259 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
11260 flag.
11261 * armbsd-tdep.c (armbsd_gregset): Likewise.
11262 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
11263 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
11264 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
11265 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
11266
dde9acd6
AA
112672015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11268
11269 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
11270 For ".reg-xstate", explicitly specify the requested section size
11271 via X86_XSTATE_SIZE instead of just 0 on input and
11272 X86_XSTATE_MAX_SIZE on output.
11273 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
11274 Likewise.
11275
1528345d
AA
112762015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11277
11278 PR corefiles/17808:
11279 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
11280 function type, particularly its SIZE parameter.
11281 * gdbarch.h: Regenerate.
11282 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
11283 actual against required size using ">=" instead of "==".
11284 (amd64_collect_fpregset): Likewise.
11285 * i386-tdep.c (i386_supply_gregset): Likewise.
11286 (i386_collect_gregset): Likewise.
11287 (i386_supply_fpregset): Likewise.
11288 (i386_collect_fpregset): Likewise.
11289 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
11290 (mips_fill_gregset_wrapper): Likewise.
11291 (mips_supply_fpregset_wrapper): Likewise.
11292 (mips_fill_fpregset_wrapper): Likewise.
11293 (mips64_supply_gregset_wrapper): Likewise.
11294 (mips64_fill_gregset_wrapper): Likewise.
11295 (mips64_supply_fpregset_wrapper): Likewise.
11296 (mips64_fill_fpregset_wrapper): Likewise.
11297 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
11298 (am33_supply_fpregset_method): Likewise.
11299 (am33_collect_gregset_method): Likewise.
11300 (am33_collect_fpregset_method): Likewise.
11301
518be979
DE
113022015-02-04 Doug Evans <dje@google.com>
11303 Pedro Alves <palves@redhat.com>
11304 Eli Zaretskii <eliz@gnu.org>
11305
11306 PR tui/17810
11307 * tui/tui-command.c (tui_refresh_cmd_win): New function.
11308 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
11309 * tui/tui-file.c: #include tui/tui-command.h.
11310 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
11311 (tui_file_flush): Refresh command window if stream is gdb_stdout.
11312 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
11313
80bd5fab
PA
113142015-02-04 Pedro Alves <palves@redhat.com>
11315
11316 Fix build breakage.
11317 * event-loop.c (gdb_do_one_event): Add default switch case.
11318
a7606d80
JK
113192015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11320
11321 Filter out inferior gcc option -fpreprocessed.
11322 * compile/compile.c (filter_args): New function.
11323 (get_args): Use it.
11324
70b66289
PA
113252015-02-03 Pedro Alves <palves@redhat.com>
11326
11327 * event-loop.c: Don't declare nor define a queue type for
11328 gdb_event_p.
11329 (event_queue): Delete.
11330 (create_event, create_file_event, gdb_event_xfree)
11331 (initialize_event_loop, process_event): Delete.
11332 (gdb_do_one_event): Return as soon as one event is handled.
11333 (handle_file_event): Change prototype. Used the passed in
11334 file_handler pointer and ready_mask instead of looping over all
11335 file handlers.
11336 (gdb_wait_for_event): Update the poll/select timeouts before
11337 blocking. Run event handlers directly instead of queueing events.
11338 Return as soon as one event is handled.
11339 (struct async_event_handler_data): Delete.
11340 (invoke_async_event_handler): Delete.
11341 (check_async_event_handlers): Change return type to int. Run
11342 event handlers directly instead of queueing events. Return as
11343 soon as one event is handled.
11344 (handle_timer_event): Delete.
11345 (update_wait_timeout): New function, factored out from
11346 poll_timers.
11347 (poll_timers): Reimplement.
11348 * event-loop.h (initialize_event_loop): Delete declaration.
11349 * top.c (gdb_init): Don't call initialize_event_loop.
11350
b7d2e916
PA
113512015-02-03 Pedro Alves <palves@redhat.com>
11352
11353 * event-loop.c (clear_async_event_handler): New function.
11354 * event-loop.h (clear_async_event_handler): New declaration.
11355 * record-btrace.c (record_btrace_async): New function.
11356 (init_record_btrace_ops): Install record_btrace_async.
11357 * record-full.c (record_full_async): New function.
11358 (record_full_resume): Don't mark the async event source here.
11359 (init_record_full_ops): Install record_full_async.
11360 (record_full_core_resume): Don't mark the async event source here.
11361 (init_record_full_core_ops): Install record_full_async.
11362 * remote.c (remote_async): Mark and clear the async stop reply
11363 queue event-loop token as appropriate.
11364
d9d41e78
PA
113652015-02-03 Pedro Alves <palves@redhat.com>
11366
11367 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
11368 target_is_async_p instead of target_can_async.
11369 (linux_nat_wait): Use target_is_async_p instead of
11370 target_can_async. Don't enable async here.
11371 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
11372 target_is_async_p instead of target_can_async.
11373
aa3de267
SM
113742015-02-02 Simon Marchi <simon.marchi@ericsson.com>
11375
11376 * varobj.h (lang_varobj_ops): Mention which return values need
11377 to be freed.
11378
2c811c0f
JB
113792015-02-02 Joel Brobecker <brobecker@adacore.com>
11380
11381 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
11382
b1eedac9
JB
113832015-02-02 Joel Brobecker <brobecker@adacore.com>
11384
11385 PR gdb/17856:
11386 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
11387 results found in the cache.
11388
66c168ae
JB
113892015-02-02 Joel Brobecker <brobecker@adacore.com>
11390
11391 PR gdb/17854:
11392 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
11393 when allocating a new one.
11394
4bdc02b2
TT
113952015-02-01 Tom Tromey <tom@tromey.com>
11396
11397 * MAINTAINERS: Remove myself.
11398
ae6ae975
DE
113992015-01-31 Doug Evans <xdje42@gmail.com>
11400
11401 * dwarf2read.c (process_structure_scope): Update setting of
11402 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
11403 * gdbtypes.c (internal_type_vptr_fieldno): New function.
11404 (set_type_vptr_fieldno): New function.
11405 (internal_type_vptr_basetype): New function.
11406 (set_type_vptr_basetype): New function.
11407 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
11408 TYPE_VPTR_BASETYPE.
11409 (allocate_cplus_struct_type): Initialize vptr_fieldno.
11410 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
11411 (print_cplus_stuff): ... moved here.
11412 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
11413 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
11414 moved to ...
11415 (struct cplus_struct_type): ... here. All uses updated.
11416 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
11417 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
11418 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
11419 * stabsread.c (read_tilde_fields): Update setting of
11420 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
11421
09e2d7c7
DE
114222015-01-31 Doug Evans <xdje42@gmail.com>
11423
11424 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
11425 to self_p.
11426 (cp_print_class_member): Rename local domain to self_type.
11427 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
11428 domain_type to self_type.
11429 (set_die_type) <need_gnat_info>: Handle
11430 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
11431 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
11432 TYPE_SPECIFIC_SELF_TYPE.
11433 * gdbtypes.c (internal_type_self_type): New function.
11434 (set_type_self_type): New function.
11435 (smash_to_memberptr_type): Rename parameter domain to self_type.
11436 Update setting of TYPE_SELF_TYPE.
11437 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
11438 (smash_to_method_type): Rename parameter domain to self_type.
11439 Update setting of TYPE_SELF_TYPE.
11440 (check_stub_method): Call smash_to_method_type.
11441 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
11442 (copy_type_recursive): Ditto.
11443 * gdbtypes.h (enum type_specific_kind): New value
11444 TYPE_SPECIFIC_SELF_TYPE.
11445 (struct main_type) <type_specific>: New member self_type.
11446 (struct cplus_struct_type) <fn_field.type>: Update comment.
11447 (TYPE_SELF_TYPE): Rewrite.
11448 (internal_type_self_type, set_type_self_type): Declare.
11449 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
11450 self_type.
11451 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
11452 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
11453 TYPE_TARGET_TYPE.
11454 * stabsread.c (read_member_functions): Mark methods with
11455 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
11456 TYPE_SELF_TYPE.
11457
4bfb94b8
DE
114582015-01-31 Doug Evans <xdje42@gmail.com>
11459
11460 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
11461 All uses updated.
11462
5f4ce105
DE
114632015-01-31 Doug Evans <xdje42@gmail.com>
11464
11465 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
11466 or unions. Return zero if union.
11467 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
11468 (gnuv3_rtti_type): Pass already-check_typedef'd value to
11469 gnuv3_get_vtable.
11470 (compute_vtable_size): Assert only passed structs.
11471 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
11472
f6b3afbf
DE
114732015-01-31 Doug Evans <xdje42@gmail.com>
11474
11475 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
11476 kinds.
11477
cfb069a8
GB
114782015-01-31 Gary Benson <gbenson@redhat.com>
11479 Doug Evans <dje@google.com>
11480
11481 PR cli/9007
11482 PR cli/11920
11483 PR cli/15548
11484 * cli/cli-cmds.c (complete_command): Notify user if max-completions
11485 reached.
11486 * common/common-exceptions.h (enum errors)
11487 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
11488 * completer.h (get_max_completions_reached_message): New declaration.
11489 (max_completions): Likewise.
11490 (completion_tracker_t): New typedef.
11491 (new_completion_tracker): New declaration.
11492 (make_cleanup_free_completion_tracker): Likewise.
11493 (maybe_add_completion_enum): New enum.
11494 (maybe_add_completion): New declaration.
11495 (throw_max_completions_reached_error): Likewise.
11496 * completer.c (max_completions): New global variable.
11497 (new_completion_tracker): New function.
11498 (free_completion_tracker): Likewise.
11499 (make_cleanup_free_completion_tracker): Likewise.
11500 (maybe_add_completions): Likewise.
11501 (throw_max_completions_reached_error): Likewise.
11502 (complete_line): Remove duplicates and limit result to max_completions
11503 entries.
11504 (get_max_completions_reached_message): New function.
11505 (gdb_display_match_list): Handle max_completions.
11506 (_initialize_completer): New declaration and function.
11507 * symtab.c: Include completer.h.
11508 (completion_tracker): New static variable.
11509 (completion_list_add_name): Call maybe_add_completion.
11510 (default_make_symbol_completion_list_break_on_1): Renamed from
11511 default_make_symbol_completion_list_break_on. Maintain
11512 completion_tracker across calls to completion_list_add_name.
11513 (default_make_symbol_completion_list_break_on): New function.
11514 * top.c (init_main): Set rl_completion_display_matches_hook.
11515 * tui/tui-io.c: Include completer.h.
11516 (tui_old_rl_display_matches_hook): New static global.
11517 (tui_rl_display_match_list): Notify user if max-completions reached.
11518 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
11519 * NEWS (New Options): Mention set/show max-completions.
11520
e11c72c7
GB
115212015-01-31 Gary Benson <gbenson@redhat.com>
11522
11523 * symtab.c (struct add_name_data) <code>: New field.
11524 Updated comments.
11525 (add_symtab_completions): New function.
11526 (symtab_expansion_callback): Likewise.
11527 (default_make_symbol_completion_list_break_on): Set datum.code.
11528 Move minimal symbol scan before calling expand_symtabs_matching.
11529 Scan known primary symtabs for externs and statics before calling
11530 expand_symtabs_matching. Pass symtab_expansion_callback as
11531 expansion_notify argument to expand_symtabs_matching. Do not scan
11532 primary symtabs for externs and statics after calling
11533 expand_symtabs_matching.
11534
276d885b
GB
115352015-01-31 Gary Benson <gbenson@redhat.com>
11536
11537 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
11538 (struct quick_symbol_functions) <expand_symtabs_matching>:
11539 New argument expansion_notify. All uses updated.
11540 (expand_symtabs_matching): New argument expansion_notify.
11541 All uses updated.
11542 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11543 Also print expansion notify.
11544 * symtab.c (expand_symtabs_matching_via_partial): Call
11545 expansion_notify whenever a partial symbol table is expanded.
11546 * dwarf2read.c (dw2_expand_symtabs_matching): Call
11547 expansion_notify whenever a symbol table is instantiated.
11548
82083d6d
DE
115492015-01-31 Doug Evans <xdje42@gmail.com>
11550
11551 * cli-out.c: #include completer.h, readline/readline.h.
11552 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
11553 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
11554 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
11555 * cli-out.h (cli_display_match_list): Declare.
11556 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
11557 (ELLIPSIS_LEN): Ditto.
11558 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
11559 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
11560 (gdb_fnprint, gdb_print_filename): Ditto.
11561 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
11562 (gdb_display_match_list): Ditto.
11563 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
11564 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
11565 (mld_beep_ftype, mld_read_key_ftype): Ditto.
11566 (match_list_displayer): New struct.
11567 (gdb_display_match_list): Declare.
11568 * top.c (init_main): Set rl_completion_display_matches_hook.
11569 * tui/tui-io.c: #include completer.h.
11570 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
11571 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
11572 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
11573 (tui_mld_getc, tui_mld_read_key): Ditto.
11574 (tui_rl_display_match_list): Rewrite.
11575 (tui_handle_resize_during_io): New arg for_completion. All callers
11576 updated.
11577
f57d2163
DE
115782015-01-31 Doug Evans <xdje42@gmail.com>
11579
11580 Add symbol lookup cache.
11581 * NEWS: Document new options and commands.
11582 * symtab.c (symbol_cache_key): New static global.
11583 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
11584 (SYMBOL_LOOKUP_FAILED): New macro.
11585 (symbol_cache_slot_state): New enum.
11586 (block_symbol_cache): New struct.
11587 (symbol_cache): New struct.
11588 (new_symbol_cache_size, symbol_cache_size): New static globals.
11589 (hash_symbol_entry, eq_symbol_entry): New functions.
11590 (symbol_cache_byte_size, resize_symbol_cache): New functions.
11591 (make_symbol_cache, free_symbol_cache): New functions.
11592 (get_symbol_cache, symbol_cache_cleanup): New function.
11593 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
11594 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
11595 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
11596 (symbol_cache_flush, symbol_cache_dump): New functions.
11597 (maintenance_print_symbol_cache): New function.
11598 (maintenance_flush_symbol_cache): New function.
11599 (symbol_cache_stats): New function.
11600 (maintenance_print_symbol_cache_statistics): New function.
11601 (symtab_new_objfile_observer): New function.
11602 (symtab_free_objfile_observer): New function.
11603 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
11604 (_initialize_symtab): Init symbol_cache_key. New parameter
11605 maint symbol-cache-size. New maint commands print symbol-cache,
11606 print symbol-cache-statistics, flush-symbol-cache.
11607 Install new_objfile, free_objfile observers.
11608
e700d1b2
JB
116092015-01-31 Joel Brobecker <brobecker@adacore.com>
11610
11611 PR symtab/17855
11612 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
11613 to end.
11614
9f050062
DE
116152015-01-31 Doug Evans <xdje42@gmail.com>
11616
11617 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
11618 * auto-load.c: #include ctype.h.
11619 (struct auto_load_pspace_info): Replace member loaded_scripts with
11620 new members loaded_script_files, loaded_script_texts.
11621 (auto_load_pspace_data_cleanup): Update.
11622 (init_loaded_scripts_info): Update.
11623 (get_auto_load_pspace_data_for_loading): Update.
11624 (maybe_add_script_file): Renamed from maybe_add_script. All callers
11625 updated.
11626 (maybe_add_script_text): New function.
11627 (clear_section_scripts): Update.
11628 (source_script_file, execute_script_contents): New functions.
11629 (source_section_scripts): Add support for
11630 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
11631 (print_scripts): New function.
11632 (auto_load_info_scripts): Also print inlined scripts.
11633 (maybe_print_unsupported_script_warning): Renamed from
11634 unsupported_script_warning_print. All callers updated.
11635 (maybe_print_script_not_found_warning): Renamed from
11636 script_not_found_warning_print. All callers updated.
11637 * extension-priv.h (struct extension_language_script_ops): New member
11638 objfile_script_executor.
11639 * extension.c (ext_lang_objfile_script_executor): New function.
11640 * extension.h (objfile_script_executor_func): New typedef.
11641 (ext_lang_objfile_script_executor): Declare.
11642 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
11643 * guile/guile.c (guile_extension_script_ops): Update.
11644 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
11645 * python/python.c (python_extension_script_ops): Update.
11646 (gdbpy_execute_objfile_script): New function.
11647
312809f8
EZ
116482015-01-31 Eli Zaretskii <eliz@gnu.org>
11649
11650 * tui/tui-io.c (tui_expand_tabs): New function.
11651 (tui_puts, tui_redisplay_readline): Expand TABs into the
11652 appropriate number of spaces.
11653 * tui/tui-regs.c: Include tui-io.h.
11654 (tui_register_format): Call tui_expand_tabs to expand TABs into
11655 the appropriate number of spaces.
11656 * tui/tui-io.h: Add prototype for tui_expand_tabs.
11657
b6577aab
DE
116582015-01-30 Doug Evans <dje@google.com>
11659
11660 * NEWS: "info source" command now display producer string if present.
11661 * source.c (source_info): Print producer string if present.
11662
6da58d3e
SM
116632015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11664
11665 * varobj.c (varobj_delete): Fix comment.
11666
837ce252
SM
116672015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11668
11669 * varobj.c (create_child): Modify comment.
11670
b09e2c59
SM
116712015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11672
11673 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
11674 parameter.
11675 (ada_name_of_variable): Same.
11676 (ada_path_expr_of_child): Same.
11677 (ada_value_of_variable): Same.
11678 (ada_value_is_changeable_p): Same.
11679 (ada_value_has_mutated): Same.
11680 * c-varobj.c (varobj_is_anonymous_child): Same.
11681 (c_is_path_expr_parent): Same.
11682 (c_number_of_children): Same.
11683 (c_name_of_variable): Same.
11684 (c_path_expr_of_child): Same.
11685 (get_type): Same.
11686 (c_value_of_variable): Same.
11687 (cplus_number_of_children): Same.
11688 (cplus_name_of_variable): Same.
11689 (cplus_path_expr_of_child): Same.
11690 (cplus_value_of_variable): Same.
11691 * jv-varobj.c (java_number_of_children): Same.
11692 (java_name_of_variable): Same.
11693 (java_path_expr_of_child): Same.
11694 (java_value_of_variable): Same.
11695 * varobj.c (number_of_children): Same.
11696 (name_of_variable): Same.
11697 (is_root_p): Same.
11698 (varobj_ensure_python_env): Same.
11699 (varobj_get_objname): Same.
11700 (varobj_get_expression): Same.
11701 (varobj_get_display_format): Same.
11702 (varobj_get_display_hint): Same.
11703 (varobj_has_more): Same.
11704 (varobj_get_thread_id): Same.
11705 (varobj_get_frozen): Same.
11706 (dynamic_varobj_has_child_method): Same.
11707 (varobj_get_gdb_type): Same.
11708 (is_path_expr_parent): Same.
11709 (varobj_default_is_path_expr_parent): Same.
11710 (varobj_get_language): Same.
11711 (varobj_get_attributes): Same.
11712 (varobj_is_dynamic_p): Same.
11713 (varobj_get_child_range): Same.
11714 (varobj_value_has_mutated): Same.
11715 (varobj_get_value_type): Same.
11716 (number_of_children): Same.
11717 (name_of_variable): Same.
11718 (check_scope): Same.
11719 (varobj_editable_p): Same.
11720 (varobj_value_is_changeable_p): Same.
11721 (varobj_floating_p): Same.
11722 (varobj_default_value_is_changeable_p): Same.
11723
2568868e
SM
117242015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11725
11726 * varobj.c (varobj_get_path_expr): Set var->path_expr.
11727 * c-varobj.c (c_path_expr_of_child): Set local var instead of
11728 child->path_expr.
11729 (cplus_path_expr_of_child): Same.
11730
ca83fa81
SM
117312015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11732
11733 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
11734 result.
11735 (mi_cmd_var_info_expression): Same.
11736 * varobj.c (varobj_get_expression): Mention in the comment that
11737 the result must by freed by the caller.
11738
afa269ae
SM
117392015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11740
11741 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
11742 varobj_get_type.
11743 (varobj_update_one): Same.
11744 * varobj.c (update_type_if_necessary): Free curr_type_str and
11745 new_type_str.
11746 (varobj_get_type): Specify in comment that the result needs to be
11747 freed by the caller.
11748
cd366ee8
DE
117492015-01-29 Doug Evans <dje@google.com>
11750
11751 PR symtab/17890
11752 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
11753
38360086
MW
117542015-01-25 Mark Wielaard <mjw@redhat.com>
11755
11756 * dwarf2read.c (checkproducer): Call producer_is_gcc.
11757 * utils.c (producer_is_gcc_ge_4): Likewise.
11758 (producer_is_gcc): New function.
11759 * utils.h (producer_is_gcc): New declaration.
11760
df25ebbd
JB
117612015-01-29 Joel Brobecker <brobecker@adacore.com>
11762
11763 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
11764 kind.
11765 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
11766 parameter by "addr_stack" parameter.
11767 (resolve_dynamic_range): Replace "addr" parameter by
11768 "stack_addr" parameter. Update function documentation.
11769 Update code accordingly.
11770 (resolve_dynamic_array, resolve_dynamic_union)
11771 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
11772 (resolve_dynamic_type): Update code, following the changes made
11773 to resolve_dynamic_type_internal's interface.
11774 * dwarf2loc.h (struct property_addr_info): New.
11775 (dwarf2_evaluate_property): Replace "address" parameter
11776 by "addr_stack" parameter. Adjust function documentation.
11777 (struct dwarf2_offset_baton): New.
11778 (struct dwarf2_property_baton): Update documentation of
11779 field "referenced_type" to be more general. New field
11780 "offset_info" in union data field.
11781 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
11782 parameter by "addr_stack" parameter. Adjust code accordingly.
11783 Add support for PROP_ADDR_OFFSET properties.
11784 * dwarf2read.c (attr_to_dynamic_prop): Add support for
11785 DW_AT_data_member_location attributes as well. Use case
11786 statements instead of if/else condition.
11787
4a0ca9ec
JB
117882015-01-29 Joel Brobecker <brobecker@adacore.com>
11789
11790 * ada-varobj.c (ada_varobj_get_array_number_of_children):
11791 Return zero if PARENT_VALUE is NULL and parent_type's
11792 range type is dynamic.
11793
ddb87a81
JB
117942015-01-29 Joel Brobecker <brobecker@adacore.com>
11795
11796 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
11797 nonzero if the type's subtype is dynamic.
11798 (resolve_dynamic_range): Also resolve the range's subtype.
11799
3d7ad9b4 118002015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
7a270e0c 11801
3d7ad9b4 11802 Pushed by Joel Brobecker <brobecker@adacore.com>.
7a270e0c
AK
11803 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
11804
3a8b707a
DE
118052015-01-27 Doug Evans <dje@google.com>
11806
11807 * NEWS: Mention gdb.Objfile.username.
11808 * python/py-objfile.c (objfpy_get_username): New function.
11809 (objfile_getset): Add "username".
11810
d35b90fb
MW
118112015-01-24 Mark Wielaard <mjw@redhat.com>
11812
11813 * stack.c (return_command): Markup warning message with _.
11814
734ae125
DE
118152015-01-24 Doug Evans <xdje42@gmail.com>
11816
11817 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
11818
527f3840
JK
118192015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11820
11821 Fix 100x slowdown regression on DWZ files.
11822 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
11823 (struct line_header): Add offset and offset_in_dwz.
11824 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
11825 (free_line_header_voidp): New declaration.
11826 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
11827 functions.
11828 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
11829 (handle_DW_AT_stmt_list): Use line_header_hash.
11830 (free_line_header_voidp): New function.
11831 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
11832 (dwarf_decode_lines): New parameter decode_mapping, use it.
11833 (dwarf2_free_objfile): Free line_header_hash.
11834
f7e5394d
SM
118352015-01-23 Simon Marchi <simon.marchi@ericsson.com>
11836
11837 PR gdb/17416
11838 * valops.c (value_rtti_indirect_type): Catch exception thrown by
11839 value_ind.
11840
743649fd
MW
118412015-01-15 Mark Wielaard <mjw@redhat.com>
11842
11843 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
11844 DW_AT_noreturn.
11845 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
11846 calling_convention an 8 bit bit field.
11847 (TYPE_NO_RETURN): New macro.
11848 * infcmd.c (finish_command): Query if function does not return
11849 normally.
11850 * stack.c (return_command): Likewise.
11851
198297aa
PA
118522015-01-23 Pedro Alves <palves@redhat.com>
11853
11854 * linux-nat.c (linux_is_async_p): New macro.
11855 (linux_nat_is_async_p):
11856 (linux_nat_terminal_inferior): Check whether the target can async
11857 instead of whether it is already async.
11858 (linux_nat_terminal_ours): Don't check whether the target is
11859 async.
11860 (linux_async_pipe): Use linux_is_async_p.
11861
253828f1
JK
118622015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
11863
11864 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
11865 '-ascending'.
11866 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
11867 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
11868 Sort tp_array using tp_array_compar.
11869 (_initialize_thread): Extend thread_apply_all_command help.
11870
f0e8c4c5
JK
118712015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
11872
11873 * corelow.c (core_open): Call also thread_command.
11874 * gdbthread.h (thread_command): New prototype moved from ...
11875 * thread.c (thread_command): ... here.
11876 (thread_command): Make it global.
11877
03b79603
PA
118782015-01-22 Pedro Alves <palves@redhat.com>
11879
11880 * configure.ac [*mingw32*]: Check $curses_found instead of
11881 $prefer_curses.
11882 * configure: Regenerate.
11883 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
11884 HAVE_NCURSES_NCURSES_H checks.
11885
6b8a872f
EZ
118862015-01-22 Eli Zaretskii <eliz@gnu.org>
11887
bbbbffbb 11888 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
6b8a872f
EZ
11889 fails with the 1st arg NULL, try again with "unknown". Don't test
11890 the "cup" capability: it isn't supported by the Windows port of
11891 ncurses, but the Windows console driver is still capable of
11892 supporting TUI.
11893
4b62a76e
JK
118942015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
11895
11896 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
11897
82a864f9
EZ
118982015-01-22 Eli Zaretskii <eliz@gnu.org>
11899
11900 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
11901 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
11902 reason that "make TAGS" is broken.
11903
b35018fd
CG
119042015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
11905
11906 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
11907 and check additional store instructions.
11908
ffbc4646
WW
119092015-01-21 Wei-cheng Wang <cole945@gmail.com>
11910
11911 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
11912
ddeca1df
WW
119132015-01-21 Wei-cheng Wang <cole945@gmail.com>
11914
11915 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
11916 ppc_canonicalize_syscall, ppc_linux_syscall_record,
11917 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
11918 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
11919 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
11920 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
11921 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
11922 ppc_process_record_op19, ppc_process_record_op31,
11923 ppc_process_record_op59, ppc_process_record_op60,
11924 ppc_process_record_op63): Likewise.
11925
049bb5de
JB
119262015-01-20 Joel Brobecker <brobecker@adacore.com>
11927
11928 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
11929 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
11930 strerror.
11931
42b87c63 119322015-01-20 Wei-cheng Wang <cole945@gmail.com>
810c1026
WW
11933
11934 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
11935 ppc_process_record_op31, ppc_process_record_op59,
11936 ppc_process_record_op60, ppc_process_record_op63,
11937 ppc_process_record): Fix -Wformat warning.
11938 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
11939 Remove unused variables.
11940
569340fc
CG
119412015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
11942
11943 * MAINTAINERS (Write After Approval): Add "Chen Gang".
11944
63413d85
EZ
119452015-01-19 Eli Zaretskii <eliz@gnu.org>
11946
11947 * configure.ac [*mingw32*]: Only add windows-termcap.o to
11948 CONFIG_OBS if not building with a curses library.
11949 * configure: Regenerate.
11950
11951 * windows-termcap.c: Include defs.h. Make the whole body empty if
11952 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
11953 HAVE_NCURSES_NCURSES_H is defined.
11954
16d8013c
JB
119552015-01-19 Joel Brobecker <brobecker@adacore.com>
11956
11957 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
11958 from end of line to start of next line.
11959
cf90fd9a
WW
119602015-01-17 Wei-cheng Wang <cole945@gmail.com>
11961
11962 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
11963 Scan PLT stub backward for reverse debugging.
11964 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
11965
b4cdae6f
WW
119662015-01-17 Wei-cheng Wang <cole945@gmail.com>
11967 Ulrich Weigand <uweigand@de.ibm.com>
11968
11969 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
11970 gdb_target_obs.
11971 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
11972 record.
11973 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
11974 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
11975 (ppc_linux_init_abi): Set process_record, process_record_signal.
11976 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
11977 ppc_linux_record_tdep to gdbarch_tdep.
11978 (ppc_process_record): New declaration.
11979 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
11980 ppc_process_record_op19, ppc_process_record_op31,
11981 ppc_process_record_op59, ppc_process_record_op60,
11982 ppc_process_record_op63, ppc_process_record): New functions.
11983
2608dbf8
WW
119842015-01-17 Wei-cheng Wang <cole945@gmail.com>
11985
11986 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
11987 rs6000_in_function_epilogue_frame_p and add an argument
11988 for frame_info.
11989 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
11990 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
11991 New functions.
11992 (rs6000_epilogue_frame_unwind): New.
11993 (rs6000_gdbarch_init): Append epilogue unwinder.
11994
4c347be6
SDJ
119952015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
11996
11997 * nat/linux-personality.c: Replace "#ifndef
11998 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
11999 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
12000 systems.
12001
9f2850ba
EZ
120022015-01-16 Eli Zaretskii <eliz@gnu.org>
12003
6cdb25f4
EZ
12004 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
12005 functions.
12006 (_initialize_tui_win) <border-kind, border-mode>:
12007 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
c54da50d
EZ
12008 (tui_set_tab_width_command): Fix the commentary.
12009
6cdb25f4
EZ
12010 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
12011
bf555842
EZ
12012 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
12013 Doc fix.
cb86fcc1
EZ
12014 (tui_set_tab_width_command): Delete and recreate the source and
12015 the disassembly windows, to show the effect of the changed tab
12016 size immediately.
bf555842 12017
9f2850ba
EZ
12018 * tui/tui-data.h (LINE_PREFIX): Make shorter
12019 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
12020 "Thread NNNNN.XXXX" thread ID notation on Windows.
12021
95761b2d
JK
120222015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12023
12024 Fix gcc-5 compilation.
12025 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
12026
8cc73a39
SDJ
120272015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12028
12029 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
12030 (linux-personality.o): New rule.
12031 * common/common-defs.h: Include <stdint.h>.
12032 * config/aarch64/linux.mh (NATDEPFILES): Include
12033 linux-personality.o.
12034 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
12035 * config/arm/linux.mh (NATDEPFILES): Likewise.
12036 * config/i386/linux64.mh (NATDEPFILES): Likewise.
12037 * config/i386/linux.mh (NATDEPFILES): Likewise.
12038 * config/ia64/linux.mh (NATDEPFILES): Likewise.
12039 * config/m32r/linux.mh (NATDEPFILES): Likewise.
12040 * config/m68k/linux.mh (NATDEPFILES): Likewise.
12041 * config/mips/linux.mh (NATDEPFILES): Likewise.
12042 * config/pa/linux.mh (NATDEPFILES): Likewise.
12043 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
12044 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
12045 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
12046 * config/s390/linux.mh (NATDEPFILES): Likewise.
12047 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
12048 * config/sparc/linux.mh (NATDEPFILES): Likewise.
12049 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
12050 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
12051 * defs.h: Remove #include <stdint.h> (moved to
12052 common/common-defs.h).
12053 * linux-nat.c: Include nat/linux-personality.h. Remove #include
12054 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
12055 nat/linux-personality.c).
12056 (linux_nat_create_inferior): Remove code to disable address space
12057 randomization (moved to nat/linux-personality.c). Create cleanup
12058 to disable address space randomization.
12059 * nat/linux-personality.c: New file.
12060 * nat/linux-personality.h: Likewise.
12061
fb23d554
SDJ
120622015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12063
12064 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
12065 common/posix-strerror.c.
12066 (posix-strerror.o): New rule.
12067 (mingw-strerror.o): Likewise.
12068 * common/common-utils.h (safe_strerror): Move prototype to here,
12069 from utils.h.
12070 * common/common.host: New file.
12071 * common/mingw-strerror.c: Likewise.
12072 * common/posix-strerror.c: Likewise.
12073 * configure: Regenerated.
12074 * configure.ac: Source common/common.host. Add variable
12075 common_host_obs to gdb_host_obs.
12076 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
12077 gdb/common/posix-strerror.c when warning about the use of
12078 strerror.
12079 * mingw-hdep.c (safe_strerror): Remove definition; move it to
12080 common/mingw-strerror.c.
12081 * posix-hdep.c (safe_strerror): Remove definition; move it to
12082 common/posix-hdep.c.
12083 * utils.h (safe_strerror): Remove prototype; move to
12084 common/common-utils.h.
12085
3af8af43
JB
120862015-01-15 Joel Brobecker <brobecker@adacore.com>
12087
12088 GDB 7.8.2 released.
12089
bafffb51
JB
120902015-01-15 Joel Brobecker <brobecker@adacore.com>
12091
12092 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
12093 ___XA type if the array has already been fixed.
12094
cdf43629
YQ
120952015-01-14 Yao Qi <yao@codesourcery.com>
12096
12097 * Makefile.in (ppc-linux.o): New rule.
12098 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
12099 * configure.ac: AC_CHECK_FUNCS(getauxval).
12100 * config.in: Re-generated.
12101 * configure: Re-generated.
12102 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
12103 Declare.
12104 * nat/ppc-linux.c: New file.
12105 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
12106 Call ppc64_64bit_inferior_p.
12107
514c5338
YQ
121082015-01-14 Yao Qi <yao@codesourcery.com>
12109
12110 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
12111 nat/ppc-linux.h.
12112 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
12113 (PPC_FEATURE_HAS_DFP): Likewise.
12114 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
12115 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
12116 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
12117 Include "nat/ppc-linux.h".
12118 * nat/ppc-linux.h: New file.
12119 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
12120
5589af0e
PA
121212015-01-14 Pedro Alves <palves@redhat.com>
12122
12123 PR gdb/17525
12124 * breakpoint.c: Include "interps.h".
12125 (bpstat_do_actions_1): Also check whether the interpreter is
12126 async.
12127
6c400b59
PA
121282015-01-14 Pedro Alves <palves@redhat.com>
12129
12130 PR cli/17828
12131 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
12132 reinstall if the interpreter is sync.
12133
e02c96a7
DE
121342015-01-13 Doug Evans <dje@google.com>
12135
12136 * objfiles.c (objfile_filename): New function.
12137 * objfiles.h (objfile_filename): Declare it.
12138 (objfile_name): Add function comment.
12139 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
12140 bfd file name (which may be realpath'd), and the original name.
12141
3b2f13ff
JB
121422015-01-13 Joel Brobecker <brobecker@adacore.com>
12143
12144 * NEWS: Create a new section for the next release branch.
12145 Rename the section of the current branch, now that it has
12146 been cut.
12147
b4cfe7f8
JB
121482015-01-13 Joel Brobecker <brobecker@adacore.com>
12149
12150 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
12151 * version.in: Bump version to 7.9.50.DATE-cvs.
12152
92fc2e69
JB
121532015-01-13 Joel Brobecker <brobecker@adacore.com>
12154
12155 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
12156 Remove trailing new-line in argument of call to warning.
12157
f71f0b0d
JB
121582015-01-13 Joel Brobecker <brobecker@adacore.com>
12159
12160 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
12161 new-line in argument of call to "warning".
12162
04dccad0
JB
121632015-01-13 Joel Brobecker <brobecker@adacore.com>
12164
12165 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
12166 in static block, then try searching for primitive types.
12167
08b13bdd
PP
121682015-01-12 Patrick Palka <patrick@parcs.ath.cx>
12169
12170 * top.h (gdb_add_history): Declare.
12171 * top.c (command_count): New variable.
12172 (gdb_add_history): New function.
12173 (gdb_safe_append_history): New static function.
12174 (quit_force): Call it.
12175 (command_line_input): Use gdb_add_history instead of
12176 add_history.
12177 * event-top.c (command_line_handler): Likewise.
12178
4ac15b59
JC
121792015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
12180
12181 PR gdb/17046
12182 * darwin-nat.c: Replace <machine/setjmp.h> #include by
12183 <setjmp.h> #include.
12184
005e54bb
DE
121852015-01-11 Doug Evans <xdje42@gmail.com>
12186
12187 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
12188
439250fb
DE
121892015-01-11 Doug Evans <xdje42@gmail.com>
12190
12191 PR gdb/15830
12192 * NEWS: The "maint demangle" command is renamed as "demangle".
12193 * demangle.c: #include cli/cli-utils.h, language.h.
12194 (demangle_command): New function.
12195 (_initialize_demangle): Add new command "demangle".
12196 * maint.c (maintenance_demangle): Stub out.
12197 (_initialize_maint_cmds): Update help text for "maint demangle",
12198 and mark as deprecated.
12199
ebf3aa72
MK
122002015-01-11 Mark Kettenis <kettenis@gnu.org>
12201
12202 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
12203 inferior_thread is a function.
12204
6bf045cd
PP
122052015-01-09 Patrick Palka <patrick@parcs.ath.cx>
12206
12207 * Makefile.in (.y.c): Don't munge yacc's #line
12208 directives.
12209
588dcc3e
PP
122102015-01-09 Patrick Palka <patrick@parcs.ath.cx>
12211
12212 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
12213 to prompt for input.
12214 * tui/tui-hooks.c (tui_query_hook): Remove.
12215 (tui_install_hooks): Don't set deprecated_query_hook.
12216 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
12217 height calculation. Always update the command window's cur_line.
12218
9c02b525
PA
122192015-01-09 Pedro Alves <palves@redhat.com>
12220
12221 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
12222 function.
12223 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
12224 declaration.
12225 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
12226 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
12227 stop_reason.
12228 (check_stopped_by_watchpoint): New function.
12229 (save_sigtrap): Reimplement.
12230 (linux_nat_stopped_by_watchpoint): Adjust.
12231 (linux_nat_lp_status_is_event): Delete.
12232 (stop_wait_callback): Only call save_sigtrap after storing the
12233 pending status.
12234 (status_callback): If the thread had been stopped for a breakpoint
12235 that has since been removed, discard the event and resume the LWP.
12236 (count_events_callback, select_event_lwp_callback): Use
12237 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
12238 (cancel_breakpoint): Rename to ...
12239 (check_stopped_by_breakpoint): ... this. Record whether the LWP
12240 stopped for a software breakpoint or hardware breakpoint.
12241 (select_event_lwp): Only give preference to the stepping LWP in
12242 all-stop mode. Adjust comments.
12243 (stop_and_resume_callback): Remove references to new_pending_p.
12244 (linux_nat_filter_event): Likewise. Leave exit events of the
12245 leader thread pending here. Handle signal short circuiting here.
12246 Only call save_sigtrap after storing the pending waitstatus.
12247 (linux_nat_wait_1): Remove 'retry' label. Remove references to
12248 new_pending. Don't handle leaving events the caller is not
12249 interested in pending here, nor handle signal short-circuiting
12250 here. Also give equal priority to all LWPs that have had events
12251 in non-stop mode. If reporting a software breakpoint event,
12252 unadjust the LWP's PC.
12253 * linux-nat.h (enum lwp_stop_reason): New.
12254 (struct lwp_info) <stop_pc>: New field.
12255 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
12256 (struct lwp_info) <stop_reason>: New field.
12257 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
12258
8af756ef
PA
122592015-01-09 Pedro Alves <palves@redhat.com>
12260
12261 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
12262 Set the LWP's 'resumed' flag.
12263
8a99810d
PA
122642015-01-09 Pedro Alves <palves@redhat.com>
12265
12266 * linux-nat.c (linux_resume_one_lwp): New function.
12267 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
12268 (linux_nat_resume): Use lwp_status_pending_p and
12269 linux_resume_one_lwp.
12270 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
12271 (linux_handle_extended_wait): Use linux_resume_one_lwp.
12272 (status_callback, running_callback): Use lwp_status_pending_p.
12273 (lwp_status_pending_p): New function.
12274 (stop_and_resume_callback): Use lwp_status_pending_p.
12275 (linux_nat_filter_event): Use linux_resume_one_lwp.
12276 (linux_nat_wait_1): Always use status_callback to look for an LWP
12277 with a pending status. Use linux_resume_one_lwp.
12278 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
12279 linux_resume_one_lwp.
12280
f7ce857f
PA
122812015-01-09 Pedro Alves <palves@redhat.com>
12282
12283 * breakpoint.c (bp_location_inserted_here_p): New function,
12284 factored out from ...
12285 (breakpoint_inserted_here_p): ... here. Use
12286 ALL_BP_LOCATIONS_AT_ADDR.
12287 (software_breakpoint_inserted_here_p): Use
12288 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
12289
c1a747c1
PA
122902014-01-09 Pedro Alves <palves@redhat.com>
12291
12292 Skip enabling event reporting if the kernel supports
12293 PTRACE_EVENT_CLONE.
12294 * linux-thread-db.c: Include "nat/linux-ptrace.h".
12295 (thread_db_use_events): New function.
12296 (try_thread_db_load_1): Check thread_db_use_events before enabling
12297 event reporting.
12298 (update_thread_state): New function.
12299 (attach_thread): Use it. Check thread_db_use_events before
12300 enabling event reporting.
12301 (thread_db_detach): Check thread_db_use_events before disabling
12302 event reporting.
12303 (find_new_threads_callback): Check thread_db_use_events before
12304 enabling event reporting. Update the thread's state if not using
12305 libthread_db events.
12306
a33e3959
PA
123072015-01-09 Pedro Alves <palves@redhat.com>
12308
12309 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
12310 about to wait for is > 0.
12311 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
12312 the kernel thread ID is -1.
12313
8784d563
PA
123142015-01-09 Pedro Alves <palves@redhat.com>
12315
12316 * linux-nat.c (attach_proc_task_lwp_callback): New function.
12317 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
12318 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
12319 ptrace option flags.
12320 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
12321 field.
12322 * nat/linux-procfs.c: Include <dirent.h>.
12323 (linux_proc_get_int): New parameter "warn". Handle it.
12324 (linux_proc_get_tgid): Adjust.
12325 (linux_proc_get_tracerpid): Rename to ...
12326 (linux_proc_get_tracerpid_nowarn): ... this.
12327 (linux_proc_pid_get_state): New function, factored out from
12328 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
12329 and handle it.
12330 (linux_proc_pid_is_gone): New function.
12331 (linux_proc_pid_is_stopped): Adjust.
12332 (linux_proc_pid_is_zombie_maybe_warn)
12333 (linux_proc_pid_is_zombie_nowarn): New functions.
12334 (linux_proc_pid_is_zombie): Use
12335 linux_proc_pid_is_zombie_maybe_warn.
12336 (linux_proc_attach_tgid_threads): New function.
12337 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
12338 (linux_proc_get_tracerpid): Rename to ...
12339 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
12340 (linux_proc_pid_is_gone): New declaration.
12341 (linux_proc_pid_is_zombie): Update comment.
12342 (linux_proc_pid_is_zombie_nowarn): New declaration.
12343 (linux_proc_attach_lwp_func): New typedef.
12344 (linux_proc_attach_tgid_threads): New declaration.
12345 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
12346 use nowarn functions.
12347 (linux_ptrace_attach_fail_reason_string): Move here from
12348 gdbserver/linux-low.c and rename.
12349 (ptrace_supports_feature): If the current ptrace options are not
12350 known yet, check them now, instead of asserting.
12351 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
12352 Declare.
12353
883ed13e
PA
123542015-01-09 Pedro Alves <palves@redhat.com>
12355
12356 * linux-thread-db.c (thread_db_find_new_threads_silently)
12357 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
12358 (find_new_threads_once): Print debug output on gdb_stdlog.
12359
1710aab8
CG
123602015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
12361 Pedro Alves <palves@redhat.com>
12362
12363 * compile/compile.c: Include "gdb_wait.h".
12364 (do_rmdir): Check return value, and free 'zap'.
12365
b597c318
YQ
123662015-01-08 Pedro Alves <palves@redhat.com>
12367 Yao Qi <yao@codesourcery.com>
12368
12369 * dwarf2loc.c (indirect_pieced_value): Don't call
12370 gdb_sign_extend. Call extract_signed_integer instead.
12371 * utils.c (gdb_sign_extend): Remove.
12372 * utils.h (gdb_sign_extend): Remove declaration.
12373
025ac414
PM
123742015-01-07 Pierre Muller <muller@sourceware.org>
12375
12376 PR symtab/17811
12377 * stabsread.c (define_symbol): Set language for C++ special symbols.
12378
fa5af12a
PP
123792015-01-07 Patrick Palka <patrick@parcs.ath.cx>
12380
12381 * inflow.c (initial_gdb_ttystate): Tweak comment.
12382
ea42d6f8
JB
123832015-01-07 Joel Brobecker <brobecker@adacore.com>
12384
12385 * inflow.c (set_initial_gdb_ttystate): Add empty line after
12386 comment documenting function.
12387
6a06d660
PP
123882015-01-07 Patrick Palka <patrick@parcs.ath.cx>
12389
12390 * terminal.h (set_initial_gdb_ttystate): Declare.
12391 * inflow.c (initial_gdb_ttystate): New static variable.
12392 (set_initial_gdb_ttystate): New setter.
12393 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
12394 instead of our current terminal state.
12395 * top.c (gdb_init): Call set_initial_gdb_ttystate.
12396
e810d75b
JB
123972015-01-07 Joel Brobecker <brobecker@adacore.com>
12398
12399 * guile/scm-type.c (tyscm_array_1): Add comment.
12400 * python/py-type.c (typy_array_1): Add comment.
12401
fce10a84
JB
124022015-01-06 Joel Brobecker <brobecker@adacore.com>
12403
12404 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
12405 error if N2 is equal to N1 - 1.
12406
8503d6e1
JB
124072015-01-06 Joel Brobecker <brobecker@adacore.com>
12408
12409 * python/py-type.c (typy_array_1): Do not raise negative-length
12410 exception if N2 is equal to N1 - 1.
12411
4d29c0a8
DE
124122015-01-03 Doug Evans <xdje42@gmail.com>
12413
12414 * c-exp.y: Whitespace cleanup.
12415 (classify_inner_name): Remove extra ;.
12416
eaa6a9a4
MR
124172015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
12418
12419 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
12420 offset signed.
12421
02fe9972
DE
124222015-01-02 Doug Evans <dje@google.com>
12423
12424 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
12425
e2ada9cb
DE
124262015-01-02 Doug Evans <dje@google.com>
12427
12428 * symtab.h (struct symbol): Fix typo in comment.
12429
32d0add0
JB
124302015-01-01 Joel Brobecker <brobecker@adacore.com>
12431
12432 Update year range in copyright notice of all files.
12433
76f2b779
JB
124342015-01-01 Joel Brobecker <brobecker@adacore.com>
12435
12436 * top.c (print_gdb_version): Update copyright year to 2015.
12437
077309e2 124382015-01-01 Joel Brobecker <brobecker@adacore.com>
6bf6fd09 12439
077309e2 12440 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
6bf6fd09 12441
077309e2 12442For older changes see ChangeLog-2014.
c906108c
SS
12443\f
12444Local Variables:
12445mode: change-log
12446left-margin: 8
12447fill-column: 74
12448version-control: never
57da7796 12449coding: utf-8
c906108c 12450End:
This page took 2.508942 seconds and 4 git commands to generate.