m32c: Split m32c_move_reg_t in read/write variants
[binutils-gdb.git] / gdb / ChangeLog
1 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * m32c-tdep.c (m32c_move_reg_t): Replace with...
4 (m32c_write_reg_t): ...this and...
5 (m32c_read_reg_t): ...this.
6 (struct m32c_reg): Update types of read and write.
7 (m32c_raw_read): Change declaration type to m32c_read_reg_t and
8 adjust definition.
9 (m32c_banked_read): Likewise.
10 (m32c_sb_read): Likewise.
11 (m32c_part_read): Likewise.
12 (m32c_cat_read): Likewise.
13 (m32c_r3r2r1r0_read): Likewise.
14 (m32c_raw_write): Change declaration type to m32c_write_reg_t
15 and adjust definition.
16 (m32c_banked_write): Likewise.
17 (m32c_sb_write): Likewise.
18 (m32c_part_write): Likewise.
19 (m32c_cat_write): Likewise.
20 (m32c_r3r2r1r0_write): Likewise.
21
22 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
23
24 * aarch64-linux-tdep.c (aarch64_linux_syscall_record): Add cast.
25
26 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
27
28 * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Return
29 gdb_sys_no_syscall instead of -1.
30
31 2015-10-12 Yao Qi <yao.qi@linaro.org>
32
33 * NEWS: Mention the change.
34
35 2015-10-12 Yao Qi <yao.qi@linaro.org>
36
37 * arch/aarch64-insn.c (emit_load_store): Rename to ...
38 (aarch64_emit_load_store): ... it. All callers updated.
39
40 2015-10-12 Yao Qi <yao.qi@linaro.org>
41
42 * arch/aarch64-insn.c (emit_insn): Rename to ...
43 (aarch64_emit_insn): ... it. All callers updated.
44
45 2015-10-12 Yao Qi <yao.qi@linaro.org>
46
47 * aarch64-linux-tdep.c: Include arch-utils.h.
48 (aarch64_linux_init_abi): Call set_gdbarch_max_insn_length,
49 set_gdbarch_displaced_step_copy_insn,
50 set_gdbarch_displaced_step_fixup,
51 set_gdbarch_displaced_step_free_closure,
52 set_gdbarch_displaced_step_location,
53 and set_gdbarch_displaced_step_hw_singlestep.
54 * aarch64-tdep.c (struct displaced_step_closure): New.
55 (struct aarch64_displaced_step_data): New.
56 (aarch64_displaced_step_b): New function.
57 (aarch64_displaced_step_b_cond): Likewise.
58 (aarch64_register): Likewise.
59 (aarch64_displaced_step_cb): Likewise.
60 (aarch64_displaced_step_tb): Likewise.
61 (aarch64_displaced_step_adr): Likewise.
62 (aarch64_displaced_step_ldr_literal): Likewise.
63 (aarch64_displaced_step_others): Likewise.
64 (aarch64_displaced_step_copy_insn): Likewise.
65 (aarch64_displaced_step_fixup): Likewise.
66 (aarch64_displaced_step_hw_singlestep): Likewise.
67 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): New macro.
68 (aarch64_displaced_step_copy_insn): Declare.
69 (aarch64_displaced_step_fixup): Declare.
70 (aarch64_displaced_step_hw_singlestep): Declare.
71 * arch/aarch64-insn.c (emit_insn): Moved from
72 gdbserver/linux-aarch64-low.c.
73 (emit_load_store): Likewise.
74 * arch/aarch64-insn.h (enum aarch64_opcodes): Moved from
75 gdbserver/linux-aarch64-low.c.
76 (struct aarch64_register): Likewise.
77 (struct aarch64_memory_operand): Likewise.
78 (ENCODE): Likewise.
79 (can_encode_int32): New macro.
80 (emit_b, emit_bcond, emit_cb, emit_ldr, emit_ldrsw): Likewise.
81 (emit_tb, emit_nop): Likewise.
82 (emit_insn): Declare.
83 (emit_load_store): Declare.
84
85 2015-10-12 Yao Qi <yao.qi@linaro.org>
86
87 * arch/aarch64-insn.c (aarch64_decode_ldr_literal): Moved from
88 gdbserver/linux-aarch64-low.c.
89 (aarch64_relocate_instruction): Likewise.
90 * arch/aarch64-insn.h (aarch64_decode_ldr_literal): Declare.
91 (struct aarch64_insn_data): Moved from
92 gdbserver/linux-aarch64-low.c.
93 (struct aarch64_insn_visitor): Likewise.
94 (aarch64_relocate_instruction): Declare.
95
96 2015-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
97
98 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT>: If
99 EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute
100 to the returned value.
101
102 2015-10-09 Joel Brobecker <brobecker@adacore.com>
103
104 * ada-lang.c (ada_unpack_from_contents): Add guard that unpacked
105 is large enough for BIT_SIZE. Update function comment.
106
107 2015-10-09 Joel Brobecker <brobecker@adacore.com>
108
109 * ada-lang.c (ada_value_primitive_packed_val): Move
110 src_len variable to local block where used. Override
111 BIT_SIZE if bigger than size of resolved type.
112
113 2015-10-09 Joel Brobecker <brobecker@adacore.com>
114
115 * gdbtypes.h (is_scalar_type): Add extern declaration.
116 * gdbtypes.c (is_scalar_type): Make non-static.
117 * ada-lang.c (ada_value_primitive_packed_val): Use is_scalar_type
118 to compute IS_SCALAR instead of doing it ourselves.
119
120 2015-10-09 Joel Brobecker <brobecker@adacore.com>
121
122 * ada-lang.c (ada_value_primitive_packed_val): Rework handling
123 of case where TYPE is dynamic.
124
125 2015-10-09 Joel Brobecker <brobecker@adacore.com>
126
127 * ada-lang.c (ada_unpack_from_contents): New function,
128 extracted from ada_value_primitive_packed_val.
129 (ada_value_primitive_packed_val): Replace extracted out code
130 by call to ada_unpack_from_contents.
131
132 2015-10-09 Joel Brobecker <brobecker@adacore.com>
133
134 * ada-lang.c (ada_value_primitive_packed_val): Reorder local
135 variable declarations.
136
137 2015-10-09 Joel Brobecker <brobecker@adacore.com>
138
139 * ada-lang.c (ada_value_primitive_packed_val): Change the type
140 of local variables src and unpacked to "gdb_type *" instead of
141 "unsigned char *".
142
143 2015-10-09 Joel Brobecker <brobecker@adacore.com>
144
145 * ada-lang.c (ada_value_primitive_packed_val): Make the name
146 of various local variables more explicit and consistent.
147 No real code change otherwise.
148
149 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
150
151 * i386-tdep.h (struct gdbarch_tdep): Change type of
152 register_reggroup_p to gdbarch_register_reggroup_p_ftype.
153
154 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
155
156 * cris-tdep.c (struct instruction_environment): Change type of
157 byte_order to enum bfd_endian.
158
159 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
160
161 * arm-linux-tdep.c (arm_canonicalize_syscall): Add
162 enum gdb_syscall casts.
163
164 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
165
166 * aarch64-tdep.c (stack_item_t): Change type of data to gdb_byte*.
167 * arm-tdep.c (struct stack_item): Likewise.
168 (push_stack_item): Add gdb_byte* cast.
169 * avr-tdep.c (struct stack_item): Change type of data to gdb_byte*.
170 (push_stack_item): Add gdb_byte* cast.
171 * cli/cli-dump.c (dump_memory_to_file): Change type of buf to gdb_byte*
172 and add cast.
173 * cris-tdep.c (struct stack_item): Change type of data to gdb_byte*.
174 (push_stack_item): Add gdb_byte* cast.
175 * gcore.c (gcore_copy_callback): Change type of memhunk to gdb_byte* and
176 add cast.
177 * gdbtypes.h (print_scalar_formatted): Change type of first parameter to
178 gdb_byte*.
179 * h8300-tdep.c (h8300_extract_return_value): Change type of valbuf to
180 gdb_byte* and remove unnecessary cast.
181 (h8300h_extract_return_value): Likewise.
182 (h8300_store_return_value): Change type of valbuf to gdb_byte*.
183 (h8300h_store_return_value): Likewise.
184 * iq2000-tdep.c (iq2000_extract_return_value): Change type of valbuf to
185 gdb_byte* and remove unnecessary cast.
186 * jit.c (jit_reader_try_read_symtab): Change type of gdb_mem to gdb_byte*
187 and add cast.
188 * m32r-tdep.c (m32r_store_return_value): Change type of valbuf to
189 gdb_byte* and remove unnecessary cast.
190 (m32r_extract_return_value): Change type of dst to gdb_byte* and remove
191 valbuf.
192 * mep-tdep.c (mep_pseudo_cr32_read): Change type of buf to gdb_byte*.
193 (mep_pseudo_cr64_read): Likewise.
194 (mep_pseudo_csr_write): Likewise.
195 (mep_pseudo_cr32_write): Likewise.
196 (mep_pseudo_cr64_write): Likewise.
197 * mi/mi-main.c (mi_cmd_data_write_memory): Change type of buffer to
198 gdb_byte* and add cast.
199 * moxie-tdep.c (moxie_store_return_value): Change type of valbuf to
200 gdb_byte* and remove unnecessary cast.
201 (moxie_extract_return_value): Change type of dst to gdb_byte* and remove
202 valbuf.
203 * p-valprint.c (print_scalar_formatted): Change type of valaddr to
204 gdb_byte*.
205 * printcmd.c (void): Likewise.
206 * python/py-inferior.c (infpy_read_memory): Change type of buffer to
207 gdb_byte* and add cast.
208 (infpy_write_memory): Likewise.
209 (infpy_search_memory): Likewise.
210 * regcache.c (regcache_raw_write_signed): Change type of buf to gdb_byte*
211 and add cast.
212 (regcache_raw_write_unsigned): Likewise.
213 (regcache_cooked_write_signed): Likewise.
214 (regcache_cooked_write_unsigned): Likewise.
215 * sh64-tdep.c (h64_extract_return_value): Change type of valbuf to
216 gdb_byte*.
217
218 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
219
220 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Add cast.
221 * linux-tdep.c (linux_collect_regset_section_cb_data): Likewise.
222
223 2015-10-09 Eli Zaretskii <eliz@gnu.org>
224
225 * stack.c (print_stack_frame):
226 * utils.c (printchar): Fix typos in commentary.
227
228 2015-10-08 Iain Buclaw <ibuclaw@gdcproject.org>
229
230 * d-exp.y: (UnaryExpression): Support `type.sizeof' expressions.
231 (PostfixExpression): Support `expr.sizeof' expressions.
232 (PrimaryExpression): Support `typeof(expr)' expressions.
233
234 2015-10-08 Maciej W. Rozycki <macro@imgtec.com>
235
236 * MAINTAINERS: Update my email address.
237
238 2015-10-08 Markus Metzger <markus.t.metzger@intel.com>
239
240 * record-btrace.c (record_btrace_resume): Fix void return.
241
242 2015-10-07 Yao Qi <yao.qi@linaro.org>
243
244 * aarch64-tdep.c: Include opcode/aarch64.h.
245 (submask): Move it above.
246 (bit): Likewise.
247 (bits): Likewise.
248 (aarch64_software_single_step): Call aarch64_decode_insn.
249 Decode instruction by aarch64_inst instead of using
250 aarch64_decode_bcond and decode_masked_match.
251
252 2015-10-06 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
253
254 * cli/cli-dump.c (restore_command): Parse load_offset (bias) as address
255 only when the file is binary.
256
257 2015-10-02 James Bowman <james.bowman@ftdichip.com>
258
259 * ft32-tdep.c (ft32_analyze_prologue): Add function prolog
260 subroutine handling.
261
262 2015-10-01 Simon Marchi <simon.marchi@ericsson.com>
263
264 * common/vec.h (VEC_OP (T,cleanup)): Add pointer cast.
265
266 2015-09-30 Doug Evans <dje@google.com>
267
268 * dwarf2read.c (setup_type_unit_groups): Add comment.
269
270 2015-09-30 Pedro Alves <palves@redhat.com>
271
272 * linux-nat.c (linux_nat_always_non_stop_p): Always return 1.
273 * x86-linux-nat.c (x86_linux_always_non_stop_p): Delete.
274 (x86_linux_create_target): Don't install
275 x86_linux_always_non_stop_p.
276
277 2015-09-30 Don Breazeal <donb@codesourcery.com>
278
279 * remote.c (remote_parse_stop_reply): Call strprefix instead
280 of strncmp.
281
282 2015-09-30 Simon Marchi <simon.marchi@ericsson.com>
283
284 * gdbarch.sh (struct gdbarch_info): Change tdep_info's type to void *.
285 * gdbarch.h: Regenerate.
286 * i386-tdep.c (i386_gdbarch_init): Remove cast to
287 struct gdbarch_tdep_info *.
288 * mips-tdep.c (mips_gdbarch_init): Likewise.
289 * ppc-linux-tdep (ppu2spu_sniffer): Likewise.
290 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
291 * spu-multiarch.c (spu_gdbarch): Likewise.
292
293 2015-09-30 Kevin Buettner <kevinb@redhat.com>
294
295 * infcmd.c (finish_command_fsm_should_stop): Don't attempt to
296 record a NULL value.
297
298 2015-09-29 Kevin Buettner <kevinb@redhat.com>
299
300 * msp430-tdep.c (msp430_push_dummy_call): Treat reference, struct,
301 and union arguments the same as pointer arguments when determining
302 size of argument.
303
304 2015-09-29 James Bowman <james.bowman@ftdichip.com>
305
306 * ft32-tdep.c: #include "opcode/ft32.h".
307 Delete local macros IS_PUSH, PUSH_REG, IS_LINK, LINK_SIZE.
308 (ft32_analyze_prologue): Use FT32_* macros.
309
310 2015-09-28 Simon Marchi <simon.marchi@ericsson.com>
311
312 * cli/cli-script.c (read_next_line): Fix stdout -> stdin in
313 comment.
314
315 2015-09-28 Doug Evans <dje@google.com>
316
317 * MAINTAINERS: Add Iain Buclaw as D language maintainer.
318
319 2015-09-28 Doug Evans <dje@google.com>
320
321 * common/filestuff.c (make_cleanup_close): Update comment.
322
323 2015-09-26 Simon Marchi <simark@nova.polymtl.ca>
324
325 * btrace.c (parse_xml_btrace_block): Fix cast of
326 xml_find_attribute's return value.
327 * memory-map.c (memory_map_start_memory): Likewise.
328 * solib-svr4.c (library_list_start_library): Likewise.
329 * solib-target.c (library_list_start_segment): Likewise.
330 (library_list_start_section): Likewise.
331 * tracepoint.c (traceframe_info_start_memory): Likewise.
332
333 2015-09-26 Iain Buclaw <ibuclaw@gdcproject.org>
334
335 * d-namespace.c (d_lookup_symbol): New arg langdef.
336 All callers updated. Support looking up symbol as a primitive type.
337 (lookup_module_scope): New arg langdef. All callers updated.
338 Call d_lookup_symbol directly for simple bare symbols.
339
340 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
341
342 * macrocmd.c (print_macro_callback): Add cast(s).
343 * macrotab.c (macro_bcache_str): Likewise.
344 (new_macro_definition): Likewise.
345 * main.c (captured_main): Likewise.
346 * maint.c (print_bfd_section_info): Likewise.
347 * mdebugread.c (mdebug_build_psymtabs): Likewise.
348 (basic_type): Likewise.
349 * memattr.c (mem_region_cmp): Likewise.
350 * memory-map.c (memory_map_start_memory): Likewise.
351 (memory_map_end_memory): Likewise.
352 (memory_map_start_property): Likewise.
353 (memory_map_end_property): Likewise.
354 (clear_result): Likewise.
355 * memrange.c (compare_mem_ranges): Likewise.
356 * mep-tdep.c (mep_analyze_frame_prologue): Likewise.
357 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Likewise.
358 * mi/mi-console.c (mi_console_file_delete): Likewise.
359 (mi_console_file_fputs): Likewise.
360 (mi_console_raw_packet): Likewise.
361 (mi_console_file_flush): Likewise.
362 (mi_console_set_raw): Likewise.
363 * mi/mi-interp.c (mi_interpreter_resume): Likewise.
364 (mi_new_thread): Likewise.
365 (mi_thread_exit): Likewise.
366 (mi_record_changed): Likewise.
367 (mi_inferior_added): Likewise.
368 (mi_inferior_appeared): Likewise.
369 (mi_inferior_exit): Likewise.
370 (mi_inferior_removed): Likewise.
371 (mi_interp_data): Likewise.
372 (mi_on_normal_stop): Likewise.
373 (mi_traceframe_changed): Likewise.
374 (mi_tsv_created): Likewise.
375 (mi_tsv_deleted): Likewise.
376 (mi_tsv_modified): Likewise.
377 (mi_breakpoint_created): Likewise.
378 (mi_breakpoint_deleted): Likewise.
379 (mi_breakpoint_modified): Likewise.
380 (mi_output_running_pid): Likewise.
381 (mi_inferior_count): Likewise.
382 (mi_solib_loaded): Likewise.
383 (mi_solib_unloaded): Likewise.
384 (mi_command_param_changed): Likewise.
385 (mi_memory_changed): Likewise.
386 (report_initial_inferior): Likewise.
387 (mi_ui_out): Likewise.
388 (mi_set_logging): Likewise.
389 * mi/mi-main.c (collect_cores): Likewise.
390 (print_one_inferior): Likewise.
391 (free_vector_of_ints): Likewise.
392 (free_splay_tree): Likewise.
393 (mi_execute_command): Likewise.
394 * mi/mi-out.c (mi_table_body): Likewise.
395 (mi_table_end): Likewise.
396 (mi_table_header): Likewise.
397 (mi_begin): Likewise.
398 (mi_end): Likewise.
399 (mi_field_int): Likewise.
400 (mi_field_string): Likewise.
401 (mi_field_fmt): Likewise.
402 (mi_flush): Likewise.
403 (mi_redirect): Likewise.
404 (field_separator): Likewise.
405 (mi_open): Likewise.
406 (mi_close): Likewise.
407 (mi_out_buffered): Likewise.
408 (mi_out_rewind): Likewise.
409 (mi_out_put): Likewise.
410 (mi_version): Likewise.
411 (mi_out_data_dtor): Likewise.
412 * mi/mi-parse.c (mi_parse_cleanup): Likewise.
413 * microblaze-tdep.c (microblaze_frame_cache): Likewise.
414 * minidebug.c (lzma_open): Likewise.
415 (lzma_pread): Likewise.
416 (lzma_close): Likewise.
417 (lzma_stat): Likewise.
418 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
419 * mips-sde-tdep.c (mips_sde_frame_cache): Likewise.
420 (mips_sde_elf_osabi_sniff_abi_tag_sections): Likewise.
421 * mips-tdep.c (mips_insn16_frame_cache): Likewise.
422 (mips_micro_frame_cache): Likewise.
423 (mips_insn32_frame_cache): Likewise.
424 (mips_stub_frame_cache): Likewise.
425 (gdb_print_insn_mips): Likewise.
426 (value_of_mips_user_reg): Likewise.
427 (mips_gdbarch_init): Likewise.
428 * mips64obsd-tdep.c (mips64obsd_supply_gregset): Likewise.
429 * mipsnbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
430 (mipsnbsd_supply_gregset): Likewise.
431 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Likewise.
432 (am33_collect_gregset_method): Likewise.
433 (am33_collect_fpregset_method): Likewise.
434 * mn10300-tdep.c (mn10300_analyze_frame_prologue): Likewise.
435 * moxie-tdep.c (moxie_frame_cache): Likewise.
436 * msp430-tdep.c (msp430_get_opcode_byte): Likewise.
437 (msp430_analyze_frame_prologue): Likewise.
438 * mt-tdep.c (mt_frame_unwind_cache): Likewise.
439 * nios2-linux-tdep.c (nios2_supply_gregset): Likewise.
440 (nios2_collect_gregset): Likewise.
441 * nios2-tdep.c (nios2_frame_unwind_cache): Likewise.
442 (nios2_stub_frame_cache): Likewise.
443 * objc-lang.c (find_methods): Likewise.
444 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
445 (get_objfile_pspace_data): Likewise.
446 (get_objfile_bfd_data): Likewise.
447 (objfile_bfd_data_free): Likewise.
448 (add_to_objfile_sections): Likewise.
449 (do_free_objfile_cleanup): Likewise.
450 (resume_section_map_updates_cleanup): Likewise.
451 * opencl-lang.c (builtin_opencl_type): Likewise.
452 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
453 * osdata.c (osdata_start_osdata): Likewise.
454 (osdata_start_item): Likewise.
455 (osdata_start_column): Likewise.
456 (osdata_end_column): Likewise.
457 (clear_parsing_data): Likewise.
458 (osdata_free_cleanup): Likewise.
459 * parse.c (type_stack_cleanup): Likewise.
460 (exp_uses_objfile_iter): Likewise.
461 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
462 (ppc_linux_collect_gregset): Likewise.
463 (ppu2spu_prev_arch): Likewise.
464 (ppu2spu_this_id): Likewise.
465 (ppu2spu_prev_register): Likewise.
466 (ppu2spu_unwind_register): Likewise.
467 (ppu2spu_sniffer): Likewise.
468 (ppu2spu_dealloc_cache): Likewise.
469 (ppc_linux_init_abi): Likewise.
470 * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
471 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
472 * progspace.c (restore_program_space): Likewise.
473 * psymtab.c (find_pc_sect_psymtab): Likewise.
474 (compare_psymbols): Likewise.
475 (psymbol_bcache_full): Likewise.
476 (allocate_psymtab): Likewise.
477 (discard_psymtabs_upto): Likewise.
478 * python/py-block.c (set_block): Likewise.
479 (del_objfile_blocks): Likewise.
480 * python/py-breakpoint.c (build_bp_list): Likewise.
481 * python/py-inferior.c (inferior_to_inferior_object): Likewise.
482 (build_inferior_list): Likewise.
483 (py_free_inferior): Likewise.
484 * python/py-objfile.c (py_free_objfile): Likewise.
485 (objfile_to_objfile_object): Likewise.
486 * python/py-prettyprint.c (py_restore_tstate): Likewise.
487 * python/py-progspace.c (py_free_pspace): Likewise.
488 (pspace_to_pspace_object): Likewise.
489 * python/py-symbol.c (set_symbol): Likewise.
490 (del_objfile_symbols): Likewise.
491 * python/py-symtab.c (set_sal): Likewise.
492 (set_symtab): Likewise.
493 (del_objfile_symtab): Likewise.
494 (del_objfile_sal): Likewise.
495 * python/py-type.c (save_objfile_types): Likewise.
496 (set_type): Likewise.
497 * python/py-unwind.c (pyuw_prev_register): Likewise.
498 (pyuw_on_new_gdbarch): Likewise.
499 * python/py-utils.c (py_decref): Likewise.
500 (py_xdecref): Likewise.
501 (gdb_py_generic_dict): Likewise.
502 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data): Likewise.
503 (gdbpy_clone_xmethod_worker_data): Likewise.
504 (gdbpy_get_xmethod_arg_types): Likewise.
505 (gdbpy_get_xmethod_result_type): Likewise.
506 (gdbpy_invoke_xmethod): Likewise.
507 * python/python.c (gdbpy_apply_type_printers): Likewise.
508 (gdbpy_free_type_printers): Likewise.
509 * record-btrace.c (record_btrace_disable_callback): Likewise.
510 (bfcache_hash): Likewise.
511 (bfcache_eq): Likewise.
512 (btrace_get_frame_function): Likewise.
513 (record_btrace_frame_unwind_stop_reason): Likewise.
514 (record_btrace_frame_this_id): Likewise.
515 (record_btrace_frame_prev_register): Likewise.
516 (record_btrace_frame_dealloc_cache): Likewise.
517 * record-full.c (record_full_message_wrapper): Likewise.
518 (record_full_save_cleanups): Likewise.
519 * regcache.c (regcache_descr): Likewise.
520 (do_regcache_xfree): Likewise.
521 (do_regcache_invalidate): Likewise.
522 (do_cooked_read): Likewise.
523 (regcache_transfer_regset): Likewise.
524 * reggroups.c (reggroup_add): Likewise.
525 (reggroup_next): Likewise.
526 (reggroup_prev): Likewise.
527 * remote-fileio.c (do_remote_fileio_request): Likewise.
528 * remote-notif.c (remote_async_get_pending_events_handler): Likewise.
529 (do_notif_event_xfree): Likewise.
530 * remote.c (get_remote_arch_state): Likewise.
531 (remote_pspace_data_cleanup): Likewise.
532 (get_remote_exec_file): Likewise.
533 (set_pspace_remote_exec_file): Likewise.
534 (compare_pnums): Likewise.
535 (clear_threads_listing_context): Likewise.
536 (remote_newthread_step): Likewise.
537 (start_thread): Likewise.
538 (end_thread): Likewise.
539 (remove_child_of_pending_fork): Likewise.
540 (remove_stop_reply_for_inferior): Likewise.
541 (remove_stop_reply_of_remote_state): Likewise.
542 (remote_notif_remove_once_on_match): Likewise.
543 (stop_reply_match_ptid_and_ws): Likewise.
544 (kill_child_of_pending_fork): Likewise.
545 (register_remote_g_packet_guess): Likewise.
546 (remote_read_description_p): Likewise.
547 (remote_read_description): Likewise.
548 (free_actions_list_cleanup_wrapper): Likewise.
549 (remote_async_serial_handler): Likewise.
550 * rl78-tdep.c (rl78_get_opcode_byte): Likewise.
551 (rl78_analyze_frame_prologue): Likewise.
552 * rs6000-tdep.c (ppc_supply_gregset): Likewise.
553 (ppc_supply_fpregset): Likewise.
554 (ppc_supply_vsxregset): Likewise.
555 (ppc_supply_vrregset): Likewise.
556 (ppc_collect_gregset): Likewise.
557 (ppc_collect_fpregset): Likewise.
558 (ppc_collect_vsxregset): Likewise.
559 (ppc_collect_vrregset): Likewise.
560 (e500_move_ev_register): Likewise.
561 (do_regcache_raw_write): Likewise.
562 (rs6000_frame_cache): Likewise.
563 (rs6000_epilogue_frame_cache): Likewise.
564 (rs6000_gdbarch_init): Likewise.
565 * rx-tdep.c (rx_get_opcode_byte): Likewise.
566 (rx_analyze_frame_prologue): Likewise.
567 (rx_frame_type): Likewise.
568 (rx_frame_sniffer_common): Likewise.
569 * s390-linux-tdep.c (s390_check_for_saved): Likewise.
570 (s390_frame_unwind_cache): Likewise.
571 (s390_stub_frame_unwind_cache): Likewise.
572 (s390_sigtramp_frame_unwind_cache): Likewise.
573 * score-tdep.c (score_make_prologue_cache): Likewise.
574 * sentinel-frame.c (sentinel_frame_prev_register): Likewise.
575 (sentinel_frame_prev_arch): Likewise.
576 * ser-base.c (fd_event): Likewise.
577 (push_event): Likewise.
578 (ser_base_write): Likewise.
579 * ser-pipe.c (pipe_close): Likewise.
580 * serial.c (serial_write): Likewise.
581 * sh-tdep.c (sh_frame_cache): Likewise.
582 (sh_stub_this_id): Likewise.
583 * sh64-tdep.c (sh64_frame_cache): Likewise.
584 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
585 (library_list_start_library): Likewise.
586 (library_list_start_list): Likewise.
587 (solib_aix_free_library_list): Likewise.
588 * solib-darwin.c (get_darwin_info): Likewise.
589 * solib-dsbt.c (get_dsbt_info): Likewise.
590 * solib-spu.c (append_ocl_sos): Likewise.
591 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
592 (get_svr4_info): Likewise.
593 (library_list_start_library): Likewise.
594 (svr4_library_list_start_list): Likewise.
595 (hash_probe_and_action): Likewise.
596 (equal_probe_and_action): Likewise.
597 (svr4_update_solib_event_breakpoint): Likewise.
598 (set_solib_svr4_fetch_link_map_offsets): Likewise.
599 (svr4_fetch_link_map_offsets): Likewise.
600 (svr4_have_link_map_offsets): Likewise.
601 * solib-target.c (library_list_start_segment): Likewise.
602 (library_list_start_section): Likewise.
603 (library_list_start_library): Likewise.
604 (library_list_end_library): Likewise.
605 (library_list_start_list): Likewise.
606 (solib_target_free_library_list): Likewise.
607 * solib.c (solib_ops): Likewise.
608 (set_solib_ops): Likewise.
609 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
610 * sparc-tdep.c (sparc_frame_cache): Likewise.
611 (sparc32_frame_cache): Likewise.
612 (sparc32_supply_gregset): Likewise.
613 (sparc32_collect_gregset): Likewise.
614 (sparc32_supply_fpregset): Likewise.
615 (sparc32_collect_fpregset): Likewise.
616 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
617 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
618 (sparc64_collect_gregset): Likewise.
619 (sparc64_supply_fpregset): Likewise.
620 (sparc64_collect_fpregset): Likewise.
621 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_cache): Likewise.
622 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
623 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
624 (sparc64obsd_trapframe_cache): Likewise.
625 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Likewise.
626 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
627 * spu-multiarch.c (spu_gdbarch): Likewise.
628 * spu-tdep.c (spu_frame_unwind_cache): Likewise.
629 (spu2ppu_prev_arch): Likewise.
630 (spu2ppu_this_id): Likewise.
631 (spu2ppu_prev_register): Likewise.
632 (spu2ppu_dealloc_cache): Likewise.
633 (spu_dis_asm_print_address): Likewise.
634 (gdb_print_insn_spu): Likewise.
635 (spu_get_overlay_table): Likewise.
636 * stabsread.c (rs6000_builtin_type): Likewise.
637 * stack.c (do_print_variable_and_value): Likewise.
638 * stap-probe.c (get_stap_base_address_1): Likewise.
639 * symfile-debug.c (debug_qf_has_symbols): Likewise.
640 (debug_qf_find_last_source_symtab): Likewise.
641 (debug_qf_forget_cached_source_info): Likewise.
642 (debug_qf_map_symtabs_matching_filename): Likewise.
643 (debug_qf_lookup_symbol): Likewise.
644 (debug_qf_print_stats): Likewise.
645 (debug_qf_dump): Likewise.
646 (debug_qf_relocate): Likewise.
647 (debug_qf_expand_symtabs_for_function): Likewise.
648 (debug_qf_expand_all_symtabs): Likewise.
649 (debug_qf_expand_symtabs_with_fullname): Likewise.
650 (debug_qf_map_matching_symbols): Likewise.
651 (debug_qf_expand_symtabs_matching): Likewise.
652 (debug_qf_find_pc_sect_compunit_symtab): Likewise.
653 (debug_qf_map_symbol_filenames): Likewise.
654 (debug_sym_get_probes): Likewise.
655 (debug_sym_new_init): Likewise.
656 (debug_sym_init): Likewise.
657 (debug_sym_read): Likewise.
658 (debug_sym_read_psymbols): Likewise.
659 (debug_sym_finish): Likewise.
660 (debug_sym_offsets): Likewise.
661 (debug_sym_read_linetable): Likewise.
662 (debug_sym_relocate): Likewise.
663 (uninstall_symfile_debug_logging): Likewise.
664 * symfile-mem.c (symbol_file_add_from_memory_wrapper): Likewise.
665 * symfile.c (place_section): Likewise.
666 (add_section_size_callback): Likewise.
667 (load_progress): Likewise.
668 (load_section_callback): Likewise.
669 (clear_memory_write_data): Likewise.
670 (allocate_symtab): Likewise.
671 * symmisc.c (maintenance_expand_file_matcher): Likewise.
672 * symtab.c (lookup_symtab_callback): Likewise.
673 (hash_demangled_name_entry): Likewise.
674 (eq_demangled_name_entry): Likewise.
675 (get_symbol_cache): Likewise.
676 (symbol_cache_cleanup): Likewise.
677 (set_symbol_cache_size): Likewise.
678 (symbol_cache_flush): Likewise.
679 (maintenance_print_symbol_cache): Likewise.
680 (maintenance_print_symbol_cache_statistics): Likewise.
681 (delete_filename_seen_cache): Likewise.
682 (output_partial_symbol_filename): Likewise.
683 (search_symbols_file_matches): Likewise.
684 (search_symbols_name_matches): Likewise.
685 (do_free_completion_list): Likewise.
686 (maybe_add_partial_symtab_filename): Likewise.
687 (get_main_info): Likewise.
688 (main_info_cleanup): Likewise.
689 * target-dcache.c (target_dcache_cleanup): Likewise.
690 (target_dcache_init_p): Likewise.
691 (target_dcache_invalidate): Likewise.
692 (target_dcache_get): Likewise.
693 (target_dcache_get_or_init): Likewise.
694 * target-descriptions.c (target_find_description): Likewise.
695 (tdesc_find_type): Likewise.
696 (tdesc_data_cleanup): Likewise.
697 (tdesc_find_arch_register): Likewise.
698 (tdesc_register_name): Likewise.
699 (tdesc_register_type): Likewise.
700 (tdesc_register_reggroup_p): Likewise.
701 (set_tdesc_pseudo_register_name): Likewise.
702 (set_tdesc_pseudo_register_type): Likewise.
703 (set_tdesc_pseudo_register_reggroup_p): Likewise.
704 (tdesc_use_registers): Likewise.
705 (free_target_description): Likewise.
706 * target-memory.c (compare_block_starting_address): Likewise.
707 (cleanup_request_data): Likewise.
708 (cleanup_write_requests_vector): Likewise.
709 * target.c (open_target): Likewise.
710 (cleanup_restore_target_terminal): Likewise.
711 (free_memory_read_result_vector): Likewise.
712 * thread.c (disable_thread_stack_temporaries): Likewise.
713 (finish_thread_state_cleanup): Likewise.
714 (do_restore_current_thread_cleanup): Likewise.
715 (restore_current_thread_cleanup_dtor): Likewise.
716 (set_thread_refcount): Likewise.
717 (tp_array_compar): Likewise.
718 (do_captured_thread_select): Likewise.
719 * tic6x-tdep.c (tic6x_frame_unwind_cache): Likewise.
720 (tic6x_stub_this_id): Likewise.
721 * tilegx-tdep.c (tilegx_frame_cache): Likewise.
722 * top.c (do_restore_instream_cleanup): Likewise.
723 (gdb_readline_wrapper_cleanup): Likewise.
724 (kill_or_detach): Likewise.
725 (print_inferior_quit_action): Likewise.
726 * tracefile-tfile.c (match_blocktype): Likewise.
727 (build_traceframe_info): Likewise.
728 * tracefile.c (trace_file_writer_xfree): Likewise.
729 * tracepoint.c (memrange_cmp): Likewise.
730 (do_collect_symbol): Likewise.
731 (do_clear_collection_list): Likewise.
732 (do_restore_current_traceframe_cleanup): Likewise.
733 (restore_current_traceframe_cleanup_dtor): Likewise.
734 (free_current_marker): Likewise.
735 (traceframe_info_start_memory): Likewise.
736 (traceframe_info_start_tvar): Likewise.
737 (free_result): Likewise.
738 * tramp-frame.c (tramp_frame_cache): Likewise.
739 * tui/tui-file.c (tui_file_delete): Likewise.
740 (tui_fileopen): Likewise.
741 (tui_sfileopen): Likewise.
742 (tui_file_isatty): Likewise.
743 (tui_file_rewind): Likewise.
744 (tui_file_put): Likewise.
745 (tui_file_fputs): Likewise.
746 (tui_file_get_strbuf): Likewise.
747 (tui_file_adjust_strbuf): Likewise.
748 (tui_file_flush): Likewise.
749 * tui/tui-layout.c (make_command_window): Likewise.
750 (make_data_window): Likewise.
751 (show_source_disasm_command): Likewise.
752 (show_data): Likewise.
753 (make_source_or_disasm_window): Likewise.
754 (show_source_or_disasm_and_command): Likewise.
755 * tui/tui-out.c (tui_field_int): Likewise.
756 (tui_field_string): Likewise.
757 (tui_field_fmt): Likewise.
758 (tui_text): Likewise.
759 * typeprint.c (hash_typedef_field): Likewise.
760 (eq_typedef_field): Likewise.
761 (do_free_typedef_hash): Likewise.
762 (copy_typedef_hash_element): Likewise.
763 (do_free_global_table): Likewise.
764 (find_global_typedef): Likewise.
765 (find_typedef_in_hash): Likewise.
766 * ui-file.c (ui_file_write_for_put): Likewise.
767 (do_ui_file_xstrdup): Likewise.
768 (mem_file_delete): Likewise.
769 (mem_file_rewind): Likewise.
770 (mem_file_put): Likewise.
771 (mem_file_write): Likewise.
772 (stdio_file_delete): Likewise.
773 (stdio_file_flush): Likewise.
774 (stdio_file_read): Likewise.
775 (stdio_file_write): Likewise.
776 (stdio_file_write_async_safe): Likewise.
777 (stdio_file_fputs): Likewise.
778 (stdio_file_isatty): Likewise.
779 (stdio_file_fseek): Likewise.
780 (tee_file_delete): Likewise.
781 (tee_file_flush): Likewise.
782 (tee_file_write): Likewise.
783 (tee_file_fputs): Likewise.
784 (tee_file_isatty): Likewise.
785 * ui-out.c (do_cleanup_table_end): Likewise.
786 (do_cleanup_end): Likewise.
787 * user-regs.c (user_reg_add): Likewise.
788 (user_reg_map_name_to_regnum): Likewise.
789 (usernum_to_user_reg): Likewise.
790 (maintenance_print_user_registers): Likewise.
791 * utils.c (do_bfd_close_cleanup): Likewise.
792 (do_fclose_cleanup): Likewise.
793 (do_obstack_free): Likewise.
794 (do_ui_file_delete): Likewise.
795 (do_ui_out_redirect_pop): Likewise.
796 (do_free_section_addr_info): Likewise.
797 (restore_integer): Likewise.
798 (do_unpush_target): Likewise.
799 (do_htab_delete_cleanup): Likewise.
800 (do_restore_ui_file): Likewise.
801 (do_value_free): Likewise.
802 (do_free_so): Likewise.
803 (free_current_contents): Likewise.
804 (do_regfree_cleanup): Likewise.
805 (core_addr_hash): Likewise.
806 (core_addr_eq): Likewise.
807 (do_free_char_ptr_vec): Likewise.
808 * v850-tdep.c (v850_frame_cache): Likewise.
809 * varobj.c (do_free_variable_cleanup): Likewise.
810 * vax-tdep.c (vax_supply_gregset): Likewise.
811 (vax_frame_cache): Likewise.
812 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_cache): Likewise.
813 * xml-support.c (gdb_xml_body_text): Likewise.
814 (gdb_xml_values_cleanup): Likewise.
815 (gdb_xml_start_element): Likewise.
816 (gdb_xml_start_element_wrapper): Likewise.
817 (gdb_xml_end_element): Likewise.
818 (gdb_xml_end_element_wrapper): Likewise.
819 (gdb_xml_cleanup): Likewise.
820 (gdb_xml_fetch_external_entity): Likewise.
821 (gdb_xml_parse_attr_enum): Likewise.
822 (xinclude_start_include): Likewise.
823 (xinclude_end_include): Likewise.
824 (xml_xinclude_default): Likewise.
825 (xml_xinclude_start_doctype): Likewise.
826 (xml_xinclude_end_doctype): Likewise.
827 (xml_xinclude_cleanup): Likewise.
828 (xml_fetch_content_from_file): Likewise.
829 * xml-syscall.c (free_syscalls_info): Likewise.
830 (syscall_start_syscall): Likewise.
831 * xml-tdesc.c (tdesc_end_arch): Likewise.
832 (tdesc_end_osabi): Likewise.
833 (tdesc_end_compatible): Likewise.
834 (tdesc_start_target): Likewise.
835 (tdesc_start_feature): Likewise.
836 (tdesc_start_reg): Likewise.
837 (tdesc_start_union): Likewise.
838 (tdesc_start_struct): Likewise.
839 (tdesc_start_flags): Likewise.
840 (tdesc_start_field): Likewise.
841 (tdesc_start_vector): Likewise.
842 (fetch_available_features_from_target): Likewise.
843 * xstormy16-tdep.c (xstormy16_frame_cache): Likewise.
844 * xtensa-tdep.c (xtensa_supply_gregset): Likewise.
845 (xtensa_frame_cache): Likewise.
846 (xtensa_frame_prev_register): Likewise.
847 (xtensa_extract_return_value): Likewise.
848
849 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
850
851 * aarch64-tdep.c (aarch64_make_prologue_cache): Add cast(s).
852 (aarch64_make_stub_cache): Likewise.
853 (value_of_aarch64_user_reg): Likewise.
854 * ada-lang.c (ada_inferior_data_cleanup): Likewise.
855 (get_ada_inferior_data): Likewise.
856 (get_ada_pspace_data): Likewise.
857 (ada_pspace_data_cleanup): Likewise.
858 (ada_complete_symbol_matcher): Likewise.
859 (ada_exc_search_name_matches): Likewise.
860 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
861 (get_ada_tasks_inferior_data): Likewise.
862 * addrmap.c (addrmap_mutable_foreach_worker): Likewise.
863 (splay_obstack_alloc): Likewise.
864 (splay_obstack_free): Likewise.
865 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Likewise.
866 (alpha_linux_collect_gregset): Likewise.
867 (alpha_linux_supply_fpregset): Likewise.
868 (alpha_linux_collect_fpregset): Likewise.
869 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
870 * alpha-tdep.c (alpha_lds): Likewise.
871 (alpha_sts): Likewise.
872 (alpha_sigtramp_frame_unwind_cache): Likewise.
873 (alpha_heuristic_frame_unwind_cache): Likewise.
874 (alpha_supply_int_regs): Likewise.
875 (alpha_fill_int_regs): Likewise.
876 (alpha_supply_fp_regs): Likewise.
877 (alpha_fill_fp_regs): Likewise.
878 * alphanbsd-tdep.c (alphanbsd_supply_fpregset): Likewise.
879 (alphanbsd_aout_supply_gregset): Likewise.
880 (alphanbsd_supply_gregset): Likewise.
881 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
882 (amd64_x32_linux_init_abi): Likewise.
883 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
884 (amd64_collect_native_gregset): Likewise.
885 * amd64-tdep.c (amd64_frame_cache): Likewise.
886 (amd64_sigtramp_frame_cache): Likewise.
887 (amd64_epilogue_frame_cache): Likewise.
888 (amd64_supply_fxsave): Likewise.
889 (amd64_supply_xsave): Likewise.
890 (amd64_collect_fxsave): Likewise.
891 (amd64_collect_xsave): Likewise.
892 * amd64-windows-tdep.c (amd64_windows_frame_cache): Likewise.
893 * amd64obsd-tdep.c (amd64obsd_trapframe_cache): Likewise.
894 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
895 (arm_linux_collect_gregset): Likewise.
896 (arm_linux_supply_nwfpe): Likewise.
897 (arm_linux_collect_nwfpe): Likewise.
898 (arm_linux_supply_vfp): Likewise.
899 (arm_linux_collect_vfp): Likewise.
900 * arm-tdep.c (arm_find_mapping_symbol): Likewise.
901 (arm_prologue_unwind_stop_reason): Likewise.
902 (arm_prologue_this_id): Likewise.
903 (arm_prologue_prev_register): Likewise.
904 (arm_exidx_data_free): Likewise.
905 (arm_find_exidx_entry): Likewise.
906 (arm_stub_this_id): Likewise.
907 (arm_m_exception_this_id): Likewise.
908 (arm_m_exception_prev_register): Likewise.
909 (arm_normal_frame_base): Likewise.
910 (gdb_print_insn_arm): Likewise.
911 (arm_objfile_data_free): Likewise.
912 (arm_record_special_symbol): Likewise.
913 (value_of_arm_user_reg): Likewise.
914 * armbsd-tdep.c (armbsd_supply_fpregset): Likewise.
915 (armbsd_supply_gregset): Likewise.
916 * auto-load.c (auto_load_pspace_data_cleanup): Likewise.
917 (get_auto_load_pspace_data): Likewise.
918 (hash_loaded_script_entry): Likewise.
919 (eq_loaded_script_entry): Likewise.
920 (clear_section_scripts): Likewise.
921 (collect_matching_scripts): Likewise.
922 * auxv.c (auxv_inferior_data_cleanup): Likewise.
923 (get_auxv_inferior_data): Likewise.
924 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
925 * ax-general.c (do_free_agent_expr_cleanup): Likewise.
926 * bfd-target.c (target_bfd_xfer_partial): Likewise.
927 (target_bfd_xclose): Likewise.
928 (target_bfd_get_section_table): Likewise.
929 * bfin-tdep.c (bfin_frame_cache): Likewise.
930 * block.c (find_block_in_blockvector): Likewise.
931 (call_site_for_pc): Likewise.
932 (block_find_non_opaque_type_preferred): Likewise.
933 * break-catch-sig.c (signal_catchpoint_insert_location): Likewise.
934 (signal_catchpoint_remove_location): Likewise.
935 (signal_catchpoint_breakpoint_hit): Likewise.
936 (signal_catchpoint_print_one): Likewise.
937 (signal_catchpoint_print_mention): Likewise.
938 (signal_catchpoint_print_recreate): Likewise.
939 * break-catch-syscall.c (get_catch_syscall_inferior_data): Likewise.
940 * breakpoint.c (do_cleanup_counted_command_line): Likewise.
941 (bp_location_compare_addrs): Likewise.
942 (get_first_locp_gte_addr): Likewise.
943 (check_tracepoint_command): Likewise.
944 (do_map_commands_command): Likewise.
945 (get_breakpoint_objfile_data): Likewise.
946 (free_breakpoint_probes): Likewise.
947 (do_captured_breakpoint_query): Likewise.
948 (compare_breakpoints): Likewise.
949 (bp_location_compare): Likewise.
950 (bpstat_remove_breakpoint_callback): Likewise.
951 (do_delete_breakpoint_cleanup): Likewise.
952 * bsd-uthread.c (bsd_uthread_set_supply_uthread): Likewise.
953 (bsd_uthread_set_collect_uthread): Likewise.
954 (bsd_uthread_activate): Likewise.
955 (bsd_uthread_fetch_registers): Likewise.
956 (bsd_uthread_store_registers): Likewise.
957 * btrace.c (check_xml_btrace_version): Likewise.
958 (parse_xml_btrace_block): Likewise.
959 (parse_xml_btrace_pt_config_cpu): Likewise.
960 (parse_xml_btrace_pt_raw): Likewise.
961 (parse_xml_btrace_pt): Likewise.
962 (parse_xml_btrace_conf_bts): Likewise.
963 (parse_xml_btrace_conf_pt): Likewise.
964 (do_btrace_data_cleanup): Likewise.
965 * c-typeprint.c (find_typedef_for_canonicalize): Likewise.
966 * charset.c (cleanup_iconv): Likewise.
967 (do_cleanup_iterator): Likewise.
968 * cli-out.c (cli_uiout_dtor): Likewise.
969 (cli_table_begin): Likewise.
970 (cli_table_body): Likewise.
971 (cli_table_end): Likewise.
972 (cli_table_header): Likewise.
973 (cli_begin): Likewise.
974 (cli_end): Likewise.
975 (cli_field_int): Likewise.
976 (cli_field_skip): Likewise.
977 (cli_field_string): Likewise.
978 (cli_field_fmt): Likewise.
979 (cli_spaces): Likewise.
980 (cli_text): Likewise.
981 (cli_message): Likewise.
982 (cli_wrap_hint): Likewise.
983 (cli_flush): Likewise.
984 (cli_redirect): Likewise.
985 (out_field_fmt): Likewise.
986 (field_separator): Likewise.
987 (cli_out_set_stream): Likewise.
988 * cli/cli-cmds.c (compare_symtabs): Likewise.
989 * cli/cli-dump.c (call_dump_func): Likewise.
990 (restore_section_callback): Likewise.
991 * cli/cli-script.c (clear_hook_in_cleanup): Likewise.
992 (do_restore_user_call_depth): Likewise.
993 (do_free_command_lines_cleanup): Likewise.
994 * coff-pe-read.c (get_section_vmas): Likewise.
995 (pe_as16): Likewise.
996 (pe_as32): Likewise.
997 * coffread.c (coff_symfile_read): Likewise.
998 * common/agent.c (agent_look_up_symbols): Likewise.
999 * common/filestuff.c (do_close_cleanup): Likewise.
1000 * common/format.c (free_format_pieces_cleanup): Likewise.
1001 * common/vec.c (vec_o_reserve): Likewise.
1002 * compile/compile-c-support.c (print_one_macro): Likewise.
1003 * compile/compile-c-symbols.c (hash_symbol_error): Likewise.
1004 (eq_symbol_error): Likewise.
1005 (del_symbol_error): Likewise.
1006 (error_symbol_once): Likewise.
1007 (gcc_convert_symbol): Likewise.
1008 (gcc_symbol_address): Likewise.
1009 (hash_symname): Likewise.
1010 (eq_symname): Likewise.
1011 * compile/compile-c-types.c (hash_type_map_instance): Likewise.
1012 (eq_type_map_instance): Likewise.
1013 (insert_type): Likewise.
1014 (convert_type): Likewise.
1015 * compile/compile-object-load.c (munmap_listp_free_cleanup): Likewise.
1016 (setup_sections): Likewise.
1017 (link_hash_table_free): Likewise.
1018 (copy_sections): Likewise.
1019 * compile/compile-object-run.c (do_module_cleanup): Likewise.
1020 * compile/compile.c (compile_print_value): Likewise.
1021 (do_rmdir): Likewise.
1022 (cleanup_compile_instance): Likewise.
1023 (cleanup_unlink_file): Likewise.
1024 * completer.c (free_completion_tracker): Likewise.
1025 * corelow.c (add_to_spuid_list): Likewise.
1026 * cp-namespace.c (reset_directive_searched): Likewise.
1027 * cp-support.c (reset_directive_searched): Likewise.
1028 * cris-tdep.c (cris_sigtramp_frame_unwind_cache): Likewise.
1029 (cris_frame_unwind_cache): Likewise.
1030 * d-lang.c (builtin_d_type): Likewise.
1031 * d-namespace.c (reset_directive_searched): Likewise.
1032 * dbxread.c (dbx_free_symfile_info): Likewise.
1033 (do_free_bincl_list_cleanup): Likewise.
1034 * disasm.c (hash_dis_line_entry): Likewise.
1035 (eq_dis_line_entry): Likewise.
1036 (dis_asm_print_address): Likewise.
1037 (fprintf_disasm): Likewise.
1038 (do_ui_file_delete): Likewise.
1039 * doublest.c (convert_floatformat_to_doublest): Likewise.
1040 * dummy-frame.c (pop_dummy_frame_bpt): Likewise.
1041 (dummy_frame_prev_register): Likewise.
1042 (dummy_frame_this_id): Likewise.
1043 * dwarf2-frame-tailcall.c (cache_hash): Likewise.
1044 (cache_eq): Likewise.
1045 (cache_find): Likewise.
1046 (tailcall_frame_this_id): Likewise.
1047 (dwarf2_tailcall_prev_register_first): Likewise.
1048 (tailcall_frame_prev_register): Likewise.
1049 (tailcall_frame_dealloc_cache): Likewise.
1050 (tailcall_frame_prev_arch): Likewise.
1051 * dwarf2-frame.c (dwarf2_frame_state_free): Likewise.
1052 (dwarf2_frame_set_init_reg): Likewise.
1053 (dwarf2_frame_init_reg): Likewise.
1054 (dwarf2_frame_set_signal_frame_p): Likewise.
1055 (dwarf2_frame_signal_frame_p): Likewise.
1056 (dwarf2_frame_set_adjust_regnum): Likewise.
1057 (dwarf2_frame_adjust_regnum): Likewise.
1058 (clear_pointer_cleanup): Likewise.
1059 (dwarf2_frame_cache): Likewise.
1060 (find_cie): Likewise.
1061 (dwarf2_frame_find_fde): Likewise.
1062 * dwarf2expr.c (dwarf_expr_address_type): Likewise.
1063 (free_dwarf_expr_context_cleanup): Likewise.
1064 * dwarf2loc.c (locexpr_find_frame_base_location): Likewise.
1065 (locexpr_get_frame_base): Likewise.
1066 (loclist_find_frame_base_location): Likewise.
1067 (loclist_get_frame_base): Likewise.
1068 (dwarf_expr_dwarf_call): Likewise.
1069 (dwarf_expr_get_base_type): Likewise.
1070 (dwarf_expr_push_dwarf_reg_entry_value): Likewise.
1071 (dwarf_expr_get_obj_addr): Likewise.
1072 (entry_data_value_coerce_ref): Likewise.
1073 (entry_data_value_copy_closure): Likewise.
1074 (entry_data_value_free_closure): Likewise.
1075 (get_frame_address_in_block_wrapper): Likewise.
1076 (dwarf2_evaluate_property): Likewise.
1077 (dwarf2_compile_property_to_c): Likewise.
1078 (needs_frame_read_addr_from_reg): Likewise.
1079 (needs_frame_get_reg_value): Likewise.
1080 (needs_frame_frame_base): Likewise.
1081 (needs_frame_frame_cfa): Likewise.
1082 (needs_frame_tls_address): Likewise.
1083 (needs_frame_dwarf_call): Likewise.
1084 (needs_dwarf_reg_entry_value): Likewise.
1085 (get_ax_pc): Likewise.
1086 (locexpr_read_variable): Likewise.
1087 (locexpr_read_variable_at_entry): Likewise.
1088 (locexpr_read_needs_frame): Likewise.
1089 (locexpr_describe_location): Likewise.
1090 (locexpr_tracepoint_var_ref): Likewise.
1091 (locexpr_generate_c_location): Likewise.
1092 (loclist_read_variable): Likewise.
1093 (loclist_read_variable_at_entry): Likewise.
1094 (loclist_describe_location): Likewise.
1095 (loclist_tracepoint_var_ref): Likewise.
1096 (loclist_generate_c_location): Likewise.
1097 * dwarf2read.c (line_header_hash_voidp): Likewise.
1098 (line_header_eq_voidp): Likewise.
1099 (dwarf2_has_info): Likewise.
1100 (dwarf2_get_section_info): Likewise.
1101 (locate_dwz_sections): Likewise.
1102 (hash_file_name_entry): Likewise.
1103 (eq_file_name_entry): Likewise.
1104 (delete_file_name_entry): Likewise.
1105 (dw2_setup): Likewise.
1106 (dw2_get_file_names_reader): Likewise.
1107 (dw2_find_pc_sect_compunit_symtab): Likewise.
1108 (hash_signatured_type): Likewise.
1109 (eq_signatured_type): Likewise.
1110 (add_signatured_type_cu_to_table): Likewise.
1111 (create_debug_types_hash_table): Likewise.
1112 (lookup_dwo_signatured_type): Likewise.
1113 (lookup_dwp_signatured_type): Likewise.
1114 (lookup_signatured_type): Likewise.
1115 (hash_type_unit_group): Likewise.
1116 (eq_type_unit_group): Likewise.
1117 (get_type_unit_group): Likewise.
1118 (process_psymtab_comp_unit_reader): Likewise.
1119 (sort_tu_by_abbrev_offset): Likewise.
1120 (process_skeletonless_type_unit): Likewise.
1121 (psymtabs_addrmap_cleanup): Likewise.
1122 (dwarf2_read_symtab): Likewise.
1123 (psymtab_to_symtab_1): Likewise.
1124 (die_hash): Likewise.
1125 (die_eq): Likewise.
1126 (load_full_comp_unit_reader): Likewise.
1127 (reset_die_in_process): Likewise.
1128 (free_cu_line_header): Likewise.
1129 (handle_DW_AT_stmt_list): Likewise.
1130 (hash_dwo_file): Likewise.
1131 (eq_dwo_file): Likewise.
1132 (hash_dwo_unit): Likewise.
1133 (eq_dwo_unit): Likewise.
1134 (create_dwo_cu_reader): Likewise.
1135 (create_dwo_unit_in_dwp_v1): Likewise.
1136 (create_dwo_unit_in_dwp_v2): Likewise.
1137 (lookup_dwo_unit_in_dwp): Likewise.
1138 (dwarf2_locate_dwo_sections): Likewise.
1139 (dwarf2_locate_common_dwp_sections): Likewise.
1140 (dwarf2_locate_v2_dwp_sections): Likewise.
1141 (hash_dwp_loaded_cutus): Likewise.
1142 (eq_dwp_loaded_cutus): Likewise.
1143 (lookup_dwo_cutu): Likewise.
1144 (abbrev_table_free_cleanup): Likewise.
1145 (dwarf2_free_abbrev_table): Likewise.
1146 (find_partial_die_in_comp_unit): Likewise.
1147 (free_line_header_voidp): Likewise.
1148 (follow_die_offset): Likewise.
1149 (follow_die_sig_1): Likewise.
1150 (free_heap_comp_unit): Likewise.
1151 (free_stack_comp_unit): Likewise.
1152 (dwarf2_free_objfile): Likewise.
1153 (per_cu_offset_and_type_hash): Likewise.
1154 (per_cu_offset_and_type_eq): Likewise.
1155 (get_die_type_at_offset): Likewise.
1156 (partial_die_hash): Likewise.
1157 (partial_die_eq): Likewise.
1158 (dwarf2_per_objfile_free): Likewise.
1159 (hash_strtab_entry): Likewise.
1160 (eq_strtab_entry): Likewise.
1161 (add_string): Likewise.
1162 (hash_symtab_entry): Likewise.
1163 (eq_symtab_entry): Likewise.
1164 (delete_symtab_entry): Likewise.
1165 (cleanup_mapped_symtab): Likewise.
1166 (add_indices_to_cpool): Likewise.
1167 (hash_psymtab_cu_index): Likewise.
1168 (eq_psymtab_cu_index): Likewise.
1169 (add_address_entry_worker): Likewise.
1170 (unlink_if_set): Likewise.
1171 (write_one_signatured_type): Likewise.
1172 (save_gdb_index_command): Likewise.
1173 * elfread.c (elf_symtab_read): Likewise.
1174 (elf_gnu_ifunc_cache_hash): Likewise.
1175 (elf_gnu_ifunc_cache_eq): Likewise.
1176 (elf_gnu_ifunc_record_cache): Likewise.
1177 (elf_gnu_ifunc_resolve_by_cache): Likewise.
1178 (elf_get_probes): Likewise.
1179 (probe_key_free): Likewise.
1180 * f-lang.c (builtin_f_type): Likewise.
1181 * frame-base.c (frame_base_append_sniffer): Likewise.
1182 (frame_base_set_default): Likewise.
1183 (frame_base_find_by_frame): Likewise.
1184 * frame-unwind.c (frame_unwind_prepend_unwinder): Likewise.
1185 (frame_unwind_append_unwinder): Likewise.
1186 (frame_unwind_find_by_frame): Likewise.
1187 * frame.c (frame_addr_hash): Likewise.
1188 (frame_addr_hash_eq): Likewise.
1189 (frame_stash_find): Likewise.
1190 (do_frame_register_read): Likewise.
1191 (unwind_to_current_frame): Likewise.
1192 (frame_cleanup_after_sniffer): Likewise.
1193 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
1194 * frv-tdep.c (frv_frame_unwind_cache): Likewise.
1195 * ft32-tdep.c (ft32_frame_cache): Likewise.
1196 * gcore.c (do_bfd_delete_cleanup): Likewise.
1197 (gcore_create_callback): Likewise.
1198 * gdb_bfd.c (hash_bfd): Likewise.
1199 (eq_bfd): Likewise.
1200 (gdb_bfd_open): Likewise.
1201 (free_one_bfd_section): Likewise.
1202 (gdb_bfd_ref): Likewise.
1203 (gdb_bfd_unref): Likewise.
1204 (get_section_descriptor): Likewise.
1205 (gdb_bfd_map_section): Likewise.
1206 (gdb_bfd_crc): Likewise.
1207 (gdb_bfd_mark_parent): Likewise.
1208 (gdb_bfd_record_inclusion): Likewise.
1209 (gdb_bfd_requires_relocations): Likewise.
1210 (print_one_bfd): Likewise.
1211 * gdbtypes.c (type_pair_hash): Likewise.
1212 (type_pair_eq): Likewise.
1213 (builtin_type): Likewise.
1214 (objfile_type): Likewise.
1215 * gnu-v3-abi.c (vtable_ptrdiff_type): Likewise.
1216 (vtable_address_point_offset): Likewise.
1217 (gnuv3_get_vtable): Likewise.
1218 (hash_value_and_voffset): Likewise.
1219 (eq_value_and_voffset): Likewise.
1220 (compare_value_and_voffset): Likewise.
1221 (compute_vtable_size): Likewise.
1222 (gnuv3_get_typeid_type): Likewise.
1223 * go-lang.c (builtin_go_type): Likewise.
1224 * guile/scm-block.c (bkscm_hash_block_smob): Likewise.
1225 (bkscm_eq_block_smob): Likewise.
1226 (bkscm_objfile_block_map): Likewise.
1227 (bkscm_del_objfile_blocks): Likewise.
1228 * guile/scm-breakpoint.c (bpscm_build_bp_list): Likewise.
1229 * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker): Likewise.
1230 (gdbscm_disasm_print_address): Likewise.
1231 * guile/scm-frame.c (frscm_hash_frame_smob): Likewise.
1232 (frscm_eq_frame_smob): Likewise.
1233 (frscm_inferior_frame_map): Likewise.
1234 (frscm_del_inferior_frames): Likewise.
1235 * guile/scm-gsmob.c (gdbscm_add_objfile_ref): Likewise.
1236 * guile/scm-objfile.c (ofscm_handle_objfile_deleted): Likewise.
1237 (ofscm_objfile_smob_from_objfile): Likewise.
1238 * guile/scm-ports.c (ioscm_write): Likewise.
1239 (ioscm_file_port_delete): Likewise.
1240 (ioscm_file_port_rewind): Likewise.
1241 (ioscm_file_port_put): Likewise.
1242 (ioscm_file_port_write): Likewise.
1243 * guile/scm-progspace.c (psscm_handle_pspace_deleted): Likewise.
1244 (psscm_pspace_smob_from_pspace): Likewise.
1245 * guile/scm-safe-call.c (scscm_recording_pre_unwind_handler): Likewise.
1246 (scscm_recording_unwind_handler): Likewise.
1247 (gdbscm_with_catch): Likewise.
1248 (scscm_call_0_body): Likewise.
1249 (scscm_call_1_body): Likewise.
1250 (scscm_call_2_body): Likewise.
1251 (scscm_call_3_body): Likewise.
1252 (scscm_call_4_body): Likewise.
1253 (scscm_apply_1_body): Likewise.
1254 (scscm_eval_scheme_string): Likewise.
1255 (gdbscm_safe_eval_string): Likewise.
1256 (scscm_source_scheme_script): Likewise.
1257 (gdbscm_safe_source_script): Likewise.
1258 * guile/scm-string.c (gdbscm_call_scm_to_stringn): Likewise.
1259 (gdbscm_call_scm_from_stringn): Likewise.
1260 * guile/scm-symbol.c (syscm_hash_symbol_smob): Likewise.
1261 (syscm_eq_symbol_smob): Likewise.
1262 (syscm_get_symbol_map): Likewise.
1263 (syscm_del_objfile_symbols): Likewise.
1264 * guile/scm-symtab.c (stscm_hash_symtab_smob): Likewise.
1265 (stscm_eq_symtab_smob): Likewise.
1266 (stscm_objfile_symtab_map): Likewise.
1267 (stscm_del_objfile_symtabs): Likewise.
1268 * guile/scm-type.c (tyscm_hash_type_smob): Likewise.
1269 (tyscm_eq_type_smob): Likewise.
1270 (tyscm_type_map): Likewise.
1271 (tyscm_copy_type_recursive): Likewise.
1272 (save_objfile_types): Likewise.
1273 * guile/scm-utils.c (extract_arg): Likewise.
1274 * h8300-tdep.c (h8300_frame_cache): Likewise.
1275 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Likewise.
1276 * hppa-tdep.c (compare_unwind_entries): Likewise.
1277 (find_unwind_entry): Likewise.
1278 (hppa_frame_cache): Likewise.
1279 (hppa_stub_frame_unwind_cache): Likewise.
1280 * hppanbsd-tdep.c (hppanbsd_supply_gregset): Likewise.
1281 * hppaobsd-tdep.c (hppaobsd_supply_gregset): Likewise.
1282 (hppaobsd_supply_fpregset): Likewise.
1283 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1284 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
1285 * i386-tdep.c (i386_frame_cache): Likewise.
1286 (i386_epilogue_frame_cache): Likewise.
1287 (i386_sigtramp_frame_cache): Likewise.
1288 (i386_supply_gregset): Likewise.
1289 (i386_collect_gregset): Likewise.
1290 (i386_gdbarch_init): Likewise.
1291 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Likewise.
1292 (i386obsd_trapframe_cache): Likewise.
1293 * i387-tdep.c (i387_supply_fsave): Likewise.
1294 (i387_collect_fsave): Likewise.
1295 (i387_supply_fxsave): Likewise.
1296 (i387_collect_fxsave): Likewise.
1297 (i387_supply_xsave): Likewise.
1298 (i387_collect_xsave): Likewise.
1299 * ia64-tdep.c (ia64_frame_cache): Likewise.
1300 (ia64_sigtramp_frame_cache): Likewise.
1301 * infcmd.c (attach_command_continuation): Likewise.
1302 (attach_command_continuation_free_args): Likewise.
1303 * inferior.c (restore_inferior): Likewise.
1304 (delete_thread_of_inferior): Likewise.
1305 * inflow.c (inflow_inferior_data_cleanup): Likewise.
1306 (get_inflow_inferior_data): Likewise.
1307 (inflow_inferior_exit): Likewise.
1308 * infrun.c (displaced_step_clear_cleanup): Likewise.
1309 (restore_current_uiout_cleanup): Likewise.
1310 (release_stop_context_cleanup): Likewise.
1311 (do_restore_infcall_suspend_state_cleanup): Likewise.
1312 (do_restore_infcall_control_state_cleanup): Likewise.
1313 (restore_inferior_ptid): Likewise.
1314 * inline-frame.c (block_starting_point_at): Likewise.
1315 * iq2000-tdep.c (iq2000_frame_cache): Likewise.
1316 * jit.c (get_jit_objfile_data): Likewise.
1317 (get_jit_program_space_data): Likewise.
1318 (jit_object_close_impl): Likewise.
1319 (jit_find_objf_with_entry_addr): Likewise.
1320 (jit_breakpoint_deleted): Likewise.
1321 (jit_unwind_reg_set_impl): Likewise.
1322 (jit_unwind_reg_get_impl): Likewise.
1323 (jit_dealloc_cache): Likewise.
1324 (jit_frame_sniffer): Likewise.
1325 (jit_frame_prev_register): Likewise.
1326 (jit_prepend_unwinder): Likewise.
1327 (jit_inferior_exit_hook): Likewise.
1328 (free_objfile_data): Likewise.
1329 * jv-lang.c (jv_per_objfile_free): Likewise.
1330 (get_dynamics_objfile): Likewise.
1331 (get_java_class_symtab): Likewise.
1332 (builtin_java_type): Likewise.
1333 * language.c (language_string_char_type): Likewise.
1334 (language_bool_type): Likewise.
1335 (language_lookup_primitive_type): Likewise.
1336 (language_lookup_primitive_type_as_symbol): Likewise.
1337 * linespec.c (hash_address_entry): Likewise.
1338 (eq_address_entry): Likewise.
1339 (iterate_inline_only): Likewise.
1340 (iterate_name_matcher): Likewise.
1341 (decode_line_2_compare_items): Likewise.
1342 (collect_one_symbol): Likewise.
1343 (compare_symbols): Likewise.
1344 (compare_msymbols): Likewise.
1345 (add_symtabs_to_list): Likewise.
1346 (collect_symbols): Likewise.
1347 (compare_msyms): Likewise.
1348 (add_minsym): Likewise.
1349 (cleanup_linespec_result): Likewise.
1350 * linux-fork.c (inferior_call_waitpid_cleanup): Likewise.
1351 * linux-nat.c (delete_lwp_cleanup): Likewise.
1352 (count_events_callback): Likewise.
1353 (select_event_lwp_callback): Likewise.
1354 (resume_stopped_resumed_lwps): Likewise.
1355 * linux-tdep.c (get_linux_gdbarch_data): Likewise.
1356 (invalidate_linux_cache_inf): Likewise.
1357 (get_linux_inferior_data): Likewise.
1358 (linux_find_memory_regions_thunk): Likewise.
1359 (linux_make_mappings_callback): Likewise.
1360 (linux_corefile_thread_callback): Likewise.
1361 (find_mapping_size): Likewise.
1362 * linux-thread-db.c (find_new_threads_callback): Likewise.
1363 * lm32-tdep.c (lm32_frame_cache): Likewise.
1364 * m2-lang.c (builtin_m2_type): Likewise.
1365 * m32c-tdep.c (m32c_analyze_frame_prologue): Likewise.
1366 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_cache): Likewise.
1367 (m32r_linux_supply_gregset): Likewise.
1368 (m32r_linux_collect_gregset): Likewise.
1369 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
1370 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1371 * m68k-tdep.c (m68k_frame_cache): Likewise.
1372 * m68kbsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
1373 (m68kbsd_supply_gregset): Likewise.
1374 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
1375 * m88k-tdep.c (m88k_frame_cache): Likewise.
1376 (m88k_supply_gregset): Likewise.
1377
1378 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
1379
1380 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Add cast
1381 to allocation result assignment.
1382 * ada-exp.y (write_object_renaming): Likewise.
1383 (write_ambiguous_var): Likewise.
1384 (ada_nget_field_index): Likewise.
1385 (write_var_or_type): Likewise.
1386 * ada-lang.c (ada_decode_symbol): Likewise.
1387 (ada_value_assign): Likewise.
1388 (value_pointer): Likewise.
1389 (cache_symbol): Likewise.
1390 (add_nonlocal_symbols): Likewise.
1391 (ada_name_for_lookup): Likewise.
1392 (symbol_completion_add): Likewise.
1393 (ada_to_fixed_type_1): Likewise.
1394 (ada_get_next_arg): Likewise.
1395 (defns_collected): Likewise.
1396 * ada-lex.l (processId): Likewise.
1397 (processString): Likewise.
1398 * ada-tasks.c (read_known_tasks_array): Likewise.
1399 (read_known_tasks_list): Likewise.
1400 * ada-typeprint.c (decoded_type_name): Likewise.
1401 * addrmap.c (addrmap_mutable_create_fixed): Likewise.
1402 * amd64-tdep.c (amd64_push_arguments): Likewise.
1403 (amd64_displaced_step_copy_insn): Likewise.
1404 (amd64_classify_insn_at): Likewise.
1405 (amd64_relocate_instruction): Likewise.
1406 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
1407 * arch-utils.c (simple_displaced_step_copy_insn): Likewise.
1408 (initialize_current_architecture): Likewise.
1409 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
1410 * arm-symbian-tdep.c (arm_symbian_osabi_sniffer): Likewise.
1411 * arm-tdep.c (arm_exidx_new_objfile): Likewise.
1412 (arm_push_dummy_call): Likewise.
1413 (extend_buffer_earlier): Likewise.
1414 (arm_adjust_breakpoint_address): Likewise.
1415 (arm_skip_stub): Likewise.
1416 * auto-load.c (filename_is_in_pattern): Likewise.
1417 (maybe_add_script_file): Likewise.
1418 (maybe_add_script_text): Likewise.
1419 (auto_load_objfile_script_1): Likewise.
1420 * auxv.c (ld_so_xfer_auxv): Likewise.
1421 * ax-general.c (new_agent_expr): Likewise.
1422 (grow_expr): Likewise.
1423 (ax_reg_mask): Likewise.
1424 * bcache.c (bcache_full): Likewise.
1425 * breakpoint.c (program_breakpoint_here_p): Likewise.
1426 * btrace.c (parse_xml_raw): Likewise.
1427 * build-id.c (build_id_to_debug_bfd): Likewise.
1428 * buildsym.c (end_symtab_with_blockvector): Likewise.
1429 * c-exp.y (string_exp): Likewise.
1430 (qualified_name): Likewise.
1431 (write_destructor_name): Likewise.
1432 (operator_stoken): Likewise.
1433 (parse_number): Likewise.
1434 (scan_macro_expansion): Likewise.
1435 (yylex): Likewise.
1436 (c_print_token): Likewise.
1437 * c-lang.c (c_get_string): Likewise.
1438 (emit_numeric_character): Likewise.
1439 * charset.c (wchar_iterate): Likewise.
1440 * cli/cli-cmds.c (complete_command): Likewise.
1441 (make_command): Likewise.
1442 * cli/cli-dump.c (restore_section_callback): Likewise.
1443 (restore_binary_file): Likewise.
1444 * cli/cli-interp.c (cli_interpreter_exec): Likewise.
1445 * cli/cli-script.c (execute_control_command): Likewise.
1446 * cli/cli-setshow.c (do_set_command): Likewise.
1447 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
1448 (read_pe_exported_syms): Likewise.
1449 * coffread.c (coff_read_struct_type): Likewise.
1450 (coff_read_enum_type): Likewise.
1451 * common/btrace-common.c (btrace_data_append): Likewise.
1452 * common/buffer.c (buffer_grow): Likewise.
1453 * common/filestuff.c (gdb_fopen_cloexec): Likewise.
1454 * common/format.c (parse_format_string): Likewise.
1455 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
1456 * common/xml-utils.c (xml_escape_text): Likewise.
1457 * compile/compile-object-load.c (copy_sections): Likewise.
1458 (compile_object_load): Likewise.
1459 * compile/compile-object-run.c (compile_object_run): Likewise.
1460 * completer.c (filename_completer): Likewise.
1461 * corefile.c (read_memory_typed_address): Likewise.
1462 (write_memory_unsigned_integer): Likewise.
1463 (write_memory_signed_integer): Likewise.
1464 (complete_set_gnutarget): Likewise.
1465 * corelow.c (get_core_register_section): Likewise.
1466 * cp-name-parser.y (d_grab): Likewise.
1467 (allocate_info): Likewise.
1468 (cp_new_demangle_parse_info): Likewise.
1469 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Likewise.
1470 (cp_lookup_symbol_in_namespace): Likewise.
1471 (lookup_namespace_scope): Likewise.
1472 (find_symbol_in_baseclass): Likewise.
1473 (cp_lookup_nested_symbol): Likewise.
1474 (cp_lookup_transparent_type_loop): Likewise.
1475 * cp-support.c (copy_string_to_obstack): Likewise.
1476 (make_symbol_overload_list): Likewise.
1477 (make_symbol_overload_list_namespace): Likewise.
1478 (make_symbol_overload_list_adl_namespace): Likewise.
1479 (first_component_command): Likewise.
1480 * cp-valprint.c (cp_print_value): Likewise.
1481 * ctf.c (ctf_xfer_partial): Likewise.
1482 * d-exp.y (StringExp): Likewise.
1483 * d-namespace.c (d_lookup_symbol_in_module): Likewise.
1484 (lookup_module_scope): Likewise.
1485 (find_symbol_in_baseclass): Likewise.
1486 (d_lookup_nested_symbol): Likewise.
1487 * dbxread.c (find_stab_function_addr): Likewise.
1488 (read_dbx_symtab): Likewise.
1489 (dbx_end_psymtab): Likewise.
1490 (cp_set_block_scope): Likewise.
1491 * dcache.c (dcache_alloc): Likewise.
1492 * demangle.c (_initialize_demangler): Likewise.
1493 * dicos-tdep.c (dicos_load_module_p): Likewise.
1494 * dictionary.c (dict_create_hashed_expandable): Likewise.
1495 (dict_create_linear_expandable): Likewise.
1496 (expand_hashtable): Likewise.
1497 (add_symbol_linear_expandable): Likewise.
1498 * dwarf2-frame.c (add_cie): Likewise.
1499 (add_fde): Likewise.
1500 (dwarf2_build_frame_info): Likewise.
1501 * dwarf2expr.c (dwarf_expr_grow_stack): Likewise.
1502 (dwarf_expr_fetch_address): Likewise.
1503 (add_piece): Likewise.
1504 (execute_stack_op): Likewise.
1505 * dwarf2loc.c (chain_candidate): Likewise.
1506 (dwarf_entry_parameter_to_value): Likewise.
1507 (read_pieced_value): Likewise.
1508 (write_pieced_value): Likewise.
1509 * dwarf2read.c (dwarf2_read_section): Likewise.
1510 (add_type_unit): Likewise.
1511 (read_comp_units_from_section): Likewise.
1512 (fixup_go_packaging): Likewise.
1513 (dwarf2_compute_name): Likewise.
1514 (dwarf2_physname): Likewise.
1515 (create_dwo_unit_in_dwp_v1): Likewise.
1516 (create_dwo_unit_in_dwp_v2): Likewise.
1517 (read_func_scope): Likewise.
1518 (read_call_site_scope): Likewise.
1519 (dwarf2_attach_fields_to_type): Likewise.
1520 (process_structure_scope): Likewise.
1521 (mark_common_block_symbol_computed): Likewise.
1522 (read_common_block): Likewise.
1523 (abbrev_table_read_table): Likewise.
1524 (guess_partial_die_structure_name): Likewise.
1525 (fixup_partial_die): Likewise.
1526 (add_file_name): Likewise.
1527 (dwarf2_const_value_data): Likewise.
1528 (dwarf2_const_value_attr): Likewise.
1529 (build_error_marker_type): Likewise.
1530 (guess_full_die_structure_name): Likewise.
1531 (anonymous_struct_prefix): Likewise.
1532 (typename_concat): Likewise.
1533 (dwarf2_canonicalize_name): Likewise.
1534 (dwarf2_name): Likewise.
1535 (write_constant_as_bytes): Likewise.
1536 (dwarf2_fetch_constant_bytes): Likewise.
1537 (copy_string): Likewise.
1538 (parse_macro_definition): Likewise.
1539 * elfread.c (elf_symfile_segments): Likewise.
1540 (elf_rel_plt_read): Likewise.
1541 (elf_gnu_ifunc_resolve_by_cache): Likewise.
1542 (elf_gnu_ifunc_resolve_by_got): Likewise.
1543 (elf_read_minimal_symbols): Likewise.
1544 (elf_gnu_ifunc_record_cache): Likewise.
1545 * event-top.c (top_level_prompt): Likewise.
1546 (command_line_handler): Likewise.
1547 * exec.c (resize_section_table): Likewise.
1548 * expprint.c (print_subexp_standard): Likewise.
1549 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
1550 * findcmd.c (parse_find_args): Likewise.
1551 * findvar.c (address_from_register): Likewise.
1552 * frame.c (get_prev_frame_always): Likewise.
1553 * gdb_bfd.c (gdb_bfd_ref): Likewise.
1554 (get_section_descriptor): Likewise.
1555 * gdb_obstack.c (obconcat): Likewise.
1556 (obstack_strdup): Likewise.
1557 * gdbtypes.c (lookup_function_type_with_arguments): Likewise.
1558 (create_set_type): Likewise.
1559 (lookup_unsigned_typename): Likewise.
1560 (lookup_signed_typename): Likewise.
1561 (resolve_dynamic_union): Likewise.
1562 (resolve_dynamic_struct): Likewise.
1563 (add_dyn_prop): Likewise.
1564 (copy_dynamic_prop_list): Likewise.
1565 (arch_flags_type): Likewise.
1566 (append_composite_type_field_raw): Likewise.
1567 * gdbtypes.h (INIT_FUNC_SPECIFIC): Likewise.
1568 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
1569 * go-exp.y (string_exp): Likewise.
1570 * go-lang.c (go_demangle): Likewise.
1571 * guile/guile.c (compute_scheme_string): Likewise.
1572 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1573 (gdbscm_canonicalize_command_name): Likewise.
1574 * guile/scm-ports.c (ioscm_init_stdio_buffers): Likewise.
1575 (ioscm_init_memory_port): Likewise.
1576 (ioscm_reinit_memory_port): Likewise.
1577 * guile/scm-utils.c (gdbscm_gc_xstrdup): Likewise.
1578 (gdbscm_gc_dup_argv): Likewise.
1579 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
1580 * hppa-tdep.c (internalize_unwinds): Likewise.
1581 (read_unwind_info): Likewise.
1582 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1583 (windows_core_xfer_shared_libraries): Likewise.
1584 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
1585 (i386_stap_parse_special_token_triplet): Likewise.
1586 (i386_stap_parse_special_token_three_arg_disp): Likewise.
1587 * i386obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
1588 * inf-child.c (inf_child_fileio_readlink): Likewise.
1589 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
1590 (inf_ptrace_store_register): Likewise.
1591 * infrun.c (follow_exec): Likewise.
1592 (displaced_step_prepare_throw): Likewise.
1593 (save_stop_context): Likewise.
1594 (save_infcall_suspend_state): Likewise.
1595 * jit.c (jit_read_descriptor): Likewise.
1596 (jit_read_code_entry): Likewise.
1597 (jit_symtab_line_mapping_add_impl): Likewise.
1598 (finalize_symtab): Likewise.
1599 (jit_unwind_reg_get_impl): Likewise.
1600 * jv-exp.y (QualifiedName): Likewise.
1601 * jv-lang.c (get_java_utf8_name): Likewise.
1602 (type_from_class): Likewise.
1603 (java_demangle_type_signature): Likewise.
1604 (java_class_name_from_physname): Likewise.
1605 * jv-typeprint.c (java_type_print_base): Likewise.
1606 * jv-valprint.c (java_value_print): Likewise.
1607 * language.c (add_language): Likewise.
1608 * linespec.c (add_sal_to_sals_basic): Likewise.
1609 (add_sal_to_sals): Likewise.
1610 (decode_objc): Likewise.
1611 (find_linespec_symbols): Likewise.
1612 * linux-fork.c (fork_save_infrun_state): Likewise.
1613 * linux-nat.c (linux_nat_detach): Likewise.
1614 (linux_nat_fileio_readlink): Likewise.
1615 * linux-record.c (record_linux_sockaddr): Likewise.
1616 (record_linux_msghdr): Likewise.
1617 (Do): Likewise.
1618 * linux-tdep.c (linux_core_info_proc_mappings): Likewise.
1619 (linux_collect_regset_section_cb): Likewise.
1620 (linux_get_siginfo_data): Likewise.
1621 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Likewise.
1622 (try_thread_db_load_from_dir): Likewise.
1623 (thread_db_load_search): Likewise.
1624 (info_auto_load_libthread_db): Likewise.
1625 * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
1626 (m32c_m16c_pointer_to_address): Likewise.
1627 * m68hc11-tdep.c (m68hc11_pseudo_register_write): Likewise.
1628 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
1629 * machoread.c (macho_check_dsym): Likewise.
1630 * macroexp.c (resize_buffer): Likewise.
1631 (gather_arguments): Likewise.
1632 (maybe_expand): Likewise.
1633 * macrotab.c (new_macro_key): Likewise.
1634 (new_source_file): Likewise.
1635 (new_macro_definition): Likewise.
1636 * mdebugread.c (parse_symbol): Likewise.
1637 (parse_type): Likewise.
1638 (parse_partial_symbols): Likewise.
1639 (psymtab_to_symtab_1): Likewise.
1640 * mem-break.c (default_memory_insert_breakpoint): Likewise.
1641 * mi/mi-cmd-break.c (mi_argv_to_format): Likewise.
1642 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
1643 (mi_cmd_data_read_memory_bytes): Likewise.
1644 (mi_cmd_data_write_memory_bytes): Likewise.
1645 (mi_cmd_trace_frame_collected): Likewise.
1646 * mi/mi-parse.c (mi_parse_argv): Likewise.
1647 (mi_parse): Likewise.
1648 * minidebug.c (lzma_open): Likewise.
1649 (lzma_pread): Likewise.
1650 * mips-tdep.c (mips_read_fp_register_single): Likewise.
1651 (mips_print_fp_register): Likewise.
1652 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
1653 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
1654 * mt-tdep.c (mt_register_name): Likewise.
1655 (mt_registers_info): Likewise.
1656 (mt_push_dummy_call): Likewise.
1657 * namespace.c (add_using_directive): Likewise.
1658 * nat/linux-btrace.c (perf_event_read): Likewise.
1659 (linux_enable_bts): Likewise.
1660 * nat/linux-osdata.c (linux_common_core_of_thread): Likewise.
1661 * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Likewise.
1662 * nto-tdep.c (nto_find_and_open_solib): Likewise.
1663 (nto_parse_redirection): Likewise.
1664 * objc-lang.c (objc_demangle): Likewise.
1665 (find_methods): Likewise.
1666 * objfiles.c (get_objfile_bfd_data): Likewise.
1667 (set_objfile_main_name): Likewise.
1668 (allocate_objfile): Likewise.
1669 (objfile_relocate): Likewise.
1670 (update_section_map): Likewise.
1671 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
1672 * p-exp.y (exp): Likewise.
1673 (yylex): Likewise.
1674 * p-valprint.c (pascal_object_print_value): Likewise.
1675 * parse.c (initialize_expout): Likewise.
1676 (mark_completion_tag): Likewise.
1677 (copy_name): Likewise.
1678 (parse_float): Likewise.
1679 (type_stack_reserve): Likewise.
1680 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
1681 (ppu2spu_prev_register): Likewise.
1682 * ppc-ravenscar-thread.c (supply_register_at_address): Likewise.
1683 * printcmd.c (printf_wide_c_string): Likewise.
1684 (printf_pointer): Likewise.
1685 * probe.c (parse_probes): Likewise.
1686 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1687 (cmdpy_init): Likewise.
1688 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Likewise.
1689 * python/py-symtab.c (set_sal): Likewise.
1690 * python/py-unwind.c (pyuw_sniffer): Likewise.
1691 * python/python.c (python_interactive_command): Likewise.
1692 (compute_python_string): Likewise.
1693 * ravenscar-thread.c (get_running_thread_id): Likewise.
1694 * record-full.c (record_full_exec_insn): Likewise.
1695 (record_full_core_open_1): Likewise.
1696 * regcache.c (regcache_raw_read_signed): Likewise.
1697 (regcache_raw_read_unsigned): Likewise.
1698 (regcache_cooked_read_signed): Likewise.
1699 (regcache_cooked_read_unsigned): Likewise.
1700 * remote-fileio.c (remote_fileio_func_open): Likewise.
1701 (remote_fileio_func_rename): Likewise.
1702 (remote_fileio_func_unlink): Likewise.
1703 (remote_fileio_func_stat): Likewise.
1704 (remote_fileio_func_system): Likewise.
1705 * remote-mips.c (mips_xfer_memory): Likewise.
1706 (mips_load_srec): Likewise.
1707 (pmon_end_download): Likewise.
1708 * remote.c (new_remote_state): Likewise.
1709 (map_regcache_remote_table): Likewise.
1710 (remote_register_number_and_offset): Likewise.
1711 (init_remote_state): Likewise.
1712 (get_memory_packet_size): Likewise.
1713 (remote_pass_signals): Likewise.
1714 (remote_program_signals): Likewise.
1715 (remote_start_remote): Likewise.
1716 (remote_check_symbols): Likewise.
1717 (remote_query_supported): Likewise.
1718 (extended_remote_attach): Likewise.
1719 (process_g_packet): Likewise.
1720 (store_registers_using_G): Likewise.
1721 (putpkt_binary): Likewise.
1722 (read_frame): Likewise.
1723 (compare_sections_command): Likewise.
1724 (remote_hostio_pread): Likewise.
1725 (remote_hostio_readlink): Likewise.
1726 (remote_file_put): Likewise.
1727 (remote_file_get): Likewise.
1728 (remote_pid_to_exec_file): Likewise.
1729 (_initialize_remote): Likewise.
1730 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
1731 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
1732 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
1733 (bfd_uses_spe_extensions): Likewise.
1734 * s390-linux-tdep.c (s390_displaced_step_copy_insn): Likewise.
1735 * score-tdep.c (score7_malloc_and_get_memblock): Likewise.
1736 * solib-dsbt.c (decode_loadmap): Likewise.
1737 (fetch_loadmap): Likewise.
1738 (scan_dyntag): Likewise.
1739 (enable_break): Likewise.
1740 (dsbt_relocate_main_executable): Likewise.
1741 * solib-frv.c (fetch_loadmap): Likewise.
1742 (enable_break2): Likewise.
1743 (frv_relocate_main_executable): Likewise.
1744 * solib-spu.c (spu_relocate_main_executable): Likewise.
1745 (spu_bfd_open): Likewise.
1746 * solib-svr4.c (lm_info_read): Likewise.
1747 (read_program_header): Likewise.
1748 (find_program_interpreter): Likewise.
1749 (scan_dyntag): Likewise.
1750 (elf_locate_base): Likewise.
1751 (open_symbol_file_object): Likewise.
1752 (read_program_headers_from_bfd): Likewise.
1753 (svr4_relocate_main_executable): Likewise.
1754 * solib-target.c (solib_target_relocate_section_addresses): Likewise.
1755 * solib.c (solib_find_1): Likewise.
1756 (exec_file_find): Likewise.
1757 (solib_find): Likewise.
1758 * source.c (openp): Likewise.
1759 (print_source_lines_base): Likewise.
1760 (forward_search_command): Likewise.
1761 * sparc-ravenscar-thread.c (supply_register_at_address): Likewise.
1762 * spu-tdep.c (spu2ppu_prev_register): Likewise.
1763 (spu_get_overlay_table): Likewise.
1764 * stabsread.c (patch_block_stabs): Likewise.
1765 (define_symbol): Likewise.
1766 (again:): Likewise.
1767 (read_member_functions): Likewise.
1768 (read_one_struct_field): Likewise.
1769 (read_enum_type): Likewise.
1770 (common_block_start): Likewise.
1771 * stack.c (read_frame_arg): Likewise.
1772 (backtrace_command): Likewise.
1773 * stap-probe.c (stap_parse_register_operand): Likewise.
1774 * symfile.c (syms_from_objfile_1): Likewise.
1775 (find_separate_debug_file): Likewise.
1776 (load_command): Likewise.
1777 (load_progress): Likewise.
1778 (load_section_callback): Likewise.
1779 (reread_symbols): Likewise.
1780 (add_filename_language): Likewise.
1781 (allocate_compunit_symtab): Likewise.
1782 (read_target_long_array): Likewise.
1783 (simple_read_overlay_table): Likewise.
1784 * symtab.c (symbol_set_names): Likewise.
1785 (resize_symbol_cache): Likewise.
1786 (rbreak_command): Likewise.
1787 (completion_list_add_name): Likewise.
1788 (completion_list_objc_symbol): Likewise.
1789 (add_filename_to_list): Likewise.
1790 * target-descriptions.c (maint_print_c_tdesc_cmd): Likewise.
1791 * target-memory.c (target_write_memory_blocks): Likewise.
1792 * target.c (target_read_string): Likewise.
1793 (read_whatever_is_readable): Likewise.
1794 (target_read_alloc_1): Likewise.
1795 (simple_search_memory): Likewise.
1796 (target_fileio_read_alloc_1): Likewise.
1797 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1798 * top.c (command_line_input): Likewise.
1799 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
1800 * tracefile.c (tracefile_fetch_registers): Likewise.
1801 * tracepoint.c (add_memrange): Likewise.
1802 (init_collection_list): Likewise.
1803 (add_aexpr): Likewise.
1804 (trace_dump_actions): Likewise.
1805 (parse_trace_status): Likewise.
1806 (parse_tracepoint_definition): Likewise.
1807 (parse_tsv_definition): Likewise.
1808 (parse_static_tracepoint_marker_definition): Likewise.
1809 * tui/tui-file.c (tui_sfileopen): Likewise.
1810 (tui_file_adjust_strbuf): Likewise.
1811 * tui/tui-io.c (tui_expand_tabs): Likewise.
1812 * tui/tui-source.c (tui_set_source_content): Likewise.
1813 * typeprint.c (find_global_typedef): Likewise.
1814 * ui-file.c (do_ui_file_xstrdup): Likewise.
1815 (ui_file_obsavestring): Likewise.
1816 (mem_file_write): Likewise.
1817 * utils.c (make_hex_string): Likewise.
1818 (get_regcomp_error): Likewise.
1819 (puts_filtered_tabular): Likewise.
1820 (gdb_realpath_keepfile): Likewise.
1821 (ldirname): Likewise.
1822 (gdb_bfd_errmsg): Likewise.
1823 (substitute_path_component): Likewise.
1824 * valops.c (search_struct_method): Likewise.
1825 (find_oload_champ_namespace_loop): Likewise.
1826 * valprint.c (print_decimal_chars): Likewise.
1827 (read_string): Likewise.
1828 (generic_emit_char): Likewise.
1829 * varobj.c (varobj_delete): Likewise.
1830 (varobj_value_get_print_value): Likewise.
1831 * vaxobsd-tdep.c (vaxobsd_sigtramp_sniffer): Likewise.
1832 * windows-tdep.c (display_one_tib): Likewise.
1833 * xcoffread.c (read_xcoff_symtab): Likewise.
1834 (process_xcoff_symbol): Likewise.
1835 (swap_sym): Likewise.
1836 (scan_xcoff_symtab): Likewise.
1837 (xcoff_initial_scan): Likewise.
1838 * xml-support.c (gdb_xml_end_element): Likewise.
1839 (xml_process_xincludes): Likewise.
1840 (xml_fetch_content_from_file): Likewise.
1841 * xml-syscall.c (xml_list_of_syscalls): Likewise.
1842 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1843
1844 2015-09-23 James Bowman <james.bowman@ftdichip.com>
1845
1846 * ft32-tdep.c (ft32_register_type): Return gdbarch_tdep (gdbarch)->pc_type
1847 instead of builtin_func_ptr.
1848 (ft32_pointer_to_address): New function.
1849 (ft32_address_class_type_flags): New function.
1850 (ft32_address_class_type_flags_to_name): New function.
1851 (ft32_address_class_name_to_type_flags): New function.
1852 (ft32_gdbarch_init): Set tdep->pc_type. Call
1853 set_gdbarch_pointer_to_address,
1854 set_gdbarch_address_class_type_flags
1855 set_gdbarch_address_class_name_to_type_flags,
1856 and set_gdbarch_address_class_type_flags_to_name.
1857 * ft32-tdep.h (struct gdbarch_tdep) <pc_type>: New field.
1858
1859 2015-09-23 Pierre-Marie de Rodat <derodat@adacore.com>
1860
1861 * ada-lang.c (ada_evaluate_subexp) <OP_FUNCALL>: When the input
1862 value is a reference, actually dereference it in order to get
1863 the underlying value.
1864
1865 2015-09-22 Simon Marchi <simon.marchi@ericsson.com>
1866
1867 * stap-probe.c (handle_stap_probe): Remove unnecessary cast.
1868
1869 2015-09-21 Simon Marchi <simon.marchi@ericsson.com>
1870
1871 * cli/cli-setshow.c (cmd_show_list): Constify a variable.
1872 * linespec.c (linespec_lexer_lex_string): Same.
1873
1874 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
1875
1876 * NEWS: Mention support for fast tracepoints on aarch64-linux.
1877
1878 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
1879
1880 * aarch64-tdep.c (aarch64_analyze_prologue): New is_adrp
1881 variable. Call aarch64_decode_adr instead of
1882 aarch64_decode_adrp.
1883 * arch/aarch64-insn.h (aarch64_decode_adrp): Delete.
1884 (aarch64_decode_adr): New function declaration.
1885 * arch/aarch64-insn.c (aarch64_decode_adrp): Delete.
1886 (aarch64_decode_adr): New function, factored out from
1887 aarch64_decode_adrp to decode both adr and adrp instructions.
1888
1889 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
1890
1891 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-insn.o.
1892 (HFILES_NO_SRCDIR): Add arch/aarch64-insn.h.
1893 (aarch64-insn.o): New rule.
1894 * configure.tgt (aarch64*-*-elf): Add aarch64-insn.o.
1895 (aarch64*-*-linux*): Likewise.
1896 * arch/aarch64-insn.c: New file.
1897 * arch/aarch64-insn.h: New file.
1898 * aarch64-tdep.c: Include arch/aarch64-insn.h.
1899 (aarch64_debug): Move to arch/aarch64-insn.c. Declare in
1900 arch/aarch64-insn.h.
1901 (decode_add_sub_imm): Rename to ...
1902 (aarch64_decode_add_sub_imm): ... this.
1903 (decode_adrp): Rename to ...
1904 (aarch64_decode_adrp): ... this. Move to arch/aarch64-insn.c.
1905 Declare in arch/aarch64-insn.h.
1906 (decode_b): Rename to ...
1907 (aarch64_decode_b): ... this. Move to arch/aarch64-insn.c.
1908 Declare in arch/aarch64-insn.h.
1909 (decode_bcond): Rename to ...
1910 (aarch64_decode_bcond): ... this. Move to arch/aarch64-insn.c.
1911 Declare in arch/aarch64-insn.h.
1912 (decode_br): Rename to ...
1913 (aarch64_decode_br): ... this.
1914 (decode_cb): Rename to ...
1915 (aarch64_decode_cb): ... this. Move to arch/aarch64-insn.c.
1916 Declare in arch/aarch64-insn.h.
1917 (decode_eret): Rename to ...
1918 (aarch64_decode_eret): ... this.
1919 (decode_movz): Rename to ...
1920 (aarch64_decode_movz): ... this.
1921 (decode_orr_shifted_register_x): Rename to ...
1922 (aarch64_decode_orr_shifted_register_x): ... this.
1923 (decode_ret): Rename to ...
1924 (aarch64_decode_ret): ... this.
1925 (decode_stp_offset): Rename to ...
1926 (aarch64_decode_stp_offset): ... this.
1927 (decode_stp_offset_wb): Rename to ...
1928 (aarch64_decode_stp_offset_wb): ... this.
1929 (decode_stur): Rename to ...
1930 (aarch64_decode_stur): ... this.
1931 (decode_tb): Rename to ...
1932 (aarch64_decode_tb): ... this. Move to arch/aarch64-insn.c.
1933 Declare in arch/aarch64-insn.h.
1934 (aarch64_analyze_prologue): Adjust calls to renamed functions.
1935
1936 2015-09-20 Doug Evans <xdje42@gmail.com>
1937
1938 * dwarf2read.c (add_partial_symbol): Remove outdated comments.
1939
1940 2015-09-20 Doug Evans <xdje42@gmail.com>
1941
1942 * dwarf2read.c (dwarf2_compute_name): Add FIXME. Don't use a local
1943 variable name that collides with a parameter.
1944
1945 2015-09-20 Joel Brobecker <brobecker@adacore.com>
1946
1947 * dwarf2loc.c (locexpr_get_frame_base): Renames
1948 block_op_get_frame_base.
1949 (dwarf2_block_frame_base_locexpr_funcs): Replace reference to
1950 block_op_get_frame_base by reference to locexpr_get_frame_base.
1951 (loclist_get_frame_base): New function, near identical copy of
1952 locexpr_get_frame_base.
1953 (dwarf2_block_frame_base_loclist_funcs): Replace reference to
1954 block_op_get_frame_base by reference to loclist_get_frame_base.
1955
1956 2015-09-19 Doug Evans <xdje42@gmail.com>
1957
1958 * ravenscar-thread.c (ravenscar_inferior_created): Replace
1959 current_inferior ()->gdbarch with its wrapper target_gdbarch.
1960
1961 2015-09-18 Doug Evans <xdje42@gmail.com>
1962
1963 * linux-thread-db.c (record_thread): Return the created thread.
1964 (thread_from_lwp): Likewise.
1965 (thread_db_get_thread_local_address): Update.
1966
1967 2015-09-18 Doug Evans <xdje42@gmail.com>
1968
1969 * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
1970 move only member demangled_name up. All uses updated.
1971
1972 2015-09-18 Doug Evans <xdje42@gmail.com>
1973
1974 * findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
1975 kind of minimal symbol in the error message.
1976 * objfiles.c (objfile_flavour_name): New function.
1977 * objfiles.h (objfile_flavour_name): Declare.
1978
1979 2015-09-18 Yao Qi <yao.qi@linaro.org>
1980
1981 * nat/aarch64-linux.c: Include elf/common.h,
1982 nat/gdb_ptrace.h, asm/ptrace.h and sys/uio.h.
1983 (aarch64_ps_get_thread_area): New function.
1984 * nat/aarch64-linux.h: Include gdb_proc_service.h.
1985 (aarch64_ps_get_thread_area): Declare.
1986 * aarch64-linux-nat.c (ps_get_thread_area): Call
1987 aarch64_ps_get_thread_area.
1988
1989 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1990
1991 * record-btrace.c (record_btrace_resume): Honour scheduler-locking.
1992
1993 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1994
1995 * NEWS: Announce new scheduler-locking mode.
1996 * infrun.c (schedlock_replay): New.
1997 (scheduler_enums): Add schedlock_replay.
1998 (scheduler_mode): Change default to schedlock_replay.
1999 (user_visible_resume_ptid): Handle schedlock_replay.
2000 (clear_proceed_status_thread): Stop replaying if resumed thread is
2001 not replaying.
2002 (schedlock_applies): Handle schedlock_replay.
2003 (_initialize_infrun): Document new scheduler-locking mode.
2004 * record-btrace.c (record_btrace_resume): Remove code to stop other
2005 threads when not replaying the resumed thread.
2006
2007 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2008
2009 * record-btrace.c ((record_btrace_will_replay): New.
2010 (init_record_btrace_ops): Initialize to_record_will_replay.
2011 * record-full.c ((record_full_will_replay): New.
2012 (init_record_full_ops): Initialize to_record_will_replay.
2013 * target-delegates.c: Regenerated.
2014 * target.c (target_record_will_replay): New.
2015 * target.h (struct target_ops) <to_record_will_replay>: New.
2016 (target_record_will_replay): New.
2017
2018 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2019
2020 * record-btrace.c (record_btrace_resume): Call
2021 target_record_stop_replaying.
2022 (record_btrace_stop_replaying_all): New.
2023 (init_record_btrace_ops): Initialize to_record_stop_replaying.
2024 * record-full.c (record_full_stop_replaying): New.
2025 (init_record_full_ops ): Initialize to_record_stop_replaying.
2026 * target-delegates.c: Regenerated.
2027 * target.c (target_record_stop_replaying): New.
2028 * target.h (struct target_ops) <to_record_stop_replaying>: New.
2029 (target_record_stop_replaying): New.
2030
2031 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2032
2033 * record-btrace.c (record_btrace_xfer_partial)
2034 (record_btrace_store_registers, record_btrace_prepare_to_store):
2035 Call record_btrace_is_replaying with inferior_ptid instead of
2036 minus_one_ptid.
2037 (record_btrace_store_registers): Change error message.
2038
2039 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2040
2041 * record-btrace.c (record_btrace_is_replaying): Add ptid argument.
2042 Update users to pass minus_one_ptid.
2043 * record-full.c (record_full_is_replaying): Add ptid argument (ignored).
2044 * record.c (cmd_record_delete): Pass inferior_ptid to
2045 target_record_is_replaying.
2046 * target-delegates.c: Regenerated.
2047 * target.c (target_record_is_replaying): Add ptid argument.
2048 * target.h (struct target_ops) <to_record_is_replaying>: Add ptid
2049 argument.
2050 (target_record_is_replaying): Add ptid argument.
2051
2052 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2053
2054 * record-btrace.c (record_btrace_open): Remove non_stop check.
2055 * NEWS: Announce that record btrace supports non-stop mode.
2056
2057 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2058
2059 * infrun.c (handle_inferior_event_1): Switch to the eventing thread
2060 in the TARKET_WAITKIND_NO_HISTORY case.
2061
2062 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2063
2064 * record-btrace.c (record_btrace_maybe_mark_async_event): New.
2065 (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
2066
2067 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2068
2069 * record-btrace.c (get_thread_current_frame): New.
2070 (record_btrace_start_replaying): Call get_thread_current_frame.
2071
2072 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2073
2074 * record-btrace.c (record_btrace_resume_thread): A move request
2075 overwrites a previous move request.
2076 (record_btrace_find_resume_thread): Removed.
2077 (record_btrace_resume): Resume all requested threads.
2078
2079 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2080
2081 * record-btrace.c: Include vec.h.
2082 (record_btrace_find_thread_to_move): Removed.
2083 (btrace_step_no_resumed, btrace_step_again)
2084 (record_btrace_stop_replaying_at_end): New.
2085 (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
2086 (record_btrace_single_step_forward): Remove calls to
2087 record_btrace_stop_replaying.
2088 (record_btrace_step_thread): Do only one step for BTHR_CONT and
2089 BTHR_RCONT. Keep threads at the end of their history moving.
2090 (record_btrace_wait): Call record_btrace_step_thread for all threads
2091 until one reports an event. Call record_btrace_stop_replaying_at_end
2092 for the eventing thread.
2093
2094 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2095
2096 * record-btrace.c (record_btrace_single_step_forward): Return
2097 NO_HISTORY if a step brings us to the end of the execution history.
2098
2099 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2100
2101 * record-btrace.c (record_btrace_step_thread): Move breakpoint check
2102 to ...
2103 (record_btrace_single_step_forward): ... here and
2104 (record_btrace_single_step_backward): ... here.
2105
2106 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2107
2108 * record-btrace.c (btrace_step_spurious)
2109 (record_btrace_single_step_forward)
2110 (record_btrace_single_step_backward): New.
2111 (record_btrace_step_thread): Call record_btrace_single_step_forward
2112 and record_btrace_single_step_backward.
2113
2114 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2115
2116 * record-btrace.c (record_btrace_replay_at_breakpoint): New.
2117 (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
2118
2119 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2120
2121 * record-btrace.c (btrace_thread_flag_to_str)
2122 (record_btrace_cancel_resume): New.
2123 (record_btrace_step_thread): Call btrace_thread_flag_to_str.
2124 (record_btrace_resume): Print execution direction.
2125 (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
2126 (record_btrace_wait): Call record_btrace_cancel_resume.
2127
2128 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2129
2130 * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
2131 * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
2132 (record_btrace_find_thread_to_move): Also accept threads that have
2133 BTHR_STOP set.
2134 (btrace_step_stopped_on_request, record_btrace_stop): New.
2135 (record_btrace_step_thread): Support BTHR_STOP.
2136 (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
2137 (init_record_btrace_ops): Initialize to_stop.
2138
2139 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2140
2141 * record-btrace.c (record_btrace_wait): Replace non_stop check with
2142 target_is_non_stop_p ().
2143
2144 2015-09-15 Pierre-Marie de Rodat <derodat@adacore.com>
2145
2146 * ada-typeprint.c (print_array_type): Do not describe arrays as
2147 packed when they embed dynamic elements.
2148
2149 2015-09-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2150
2151 * symtab.h (address_class): Document that TLS variables
2152 are handled by LOC_UNRESOLVED.
2153 * findvar.c (default_read_var_value): Don't relocate TLS variables.
2154 * printcmd.c (address_info): Don't relocate TLS variables.
2155
2156 2015-09-15 Pierre Langlois <pierre.langlois@arm.com>
2157
2158 * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
2159 (decode_adrp): Likewise.
2160 (decode_b): Likewise.
2161 (decode_bcond): Likewise.
2162 (decode_br): Likewise.
2163 (decode_cb): Likewise.
2164 (decode_eret): Likewise.
2165 (decode_movz): Likewise.
2166 (decode_orr_shifted_register_x): Likewise.
2167 (decode_ret): Likewise.
2168 (decode_stp_offset): Likewise.
2169 (decode_stp_offset_wb): Likewise.
2170 (decode_stur): Likewise.
2171 (decode_tb): Likewise.
2172 (aarch64_analyze_prologue): Likewise.
2173 (pass_in_x): Likewise.
2174 (pass_in_v): Likewise.
2175 (pass_on_stack): Likewise.
2176 (aarch64_push_dummy_call): Likewise.
2177 (aarch64_extract_return_value): Likewise.
2178 (aarch64_store_return_value): Likewise.
2179 (aarch64_return_value): Likewise.
2180 (aarch64_record_asimd_load_store): Likewise.
2181 (aarch64_record_load_store): Likewise.
2182 (aarch64_record_data_proc_simd_fp): Likewise.
2183
2184 2015-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2185
2186 * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
2187 * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
2188 (ppc64_skip_trampoline_code_1): ... here.
2189 (ppc64_skip_trampoline_code): New wrapper function.
2190 * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
2191
2192 2015-09-15 Yao Qi <yao.qi@linaro.org>
2193
2194 * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
2195 function.
2196 (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
2197 * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
2198 if target_can_do_single_step returns 1.
2199 * remote.c (struct vCont_action_support) <s, S>: New fields.
2200 (PACKET_vContSupported): New enum.
2201 (remote_protocol_features): New element for vContSupported.
2202 (remote_query_supported): Append "vContSupported+".
2203 (remote_vcont_probe): Remove support_s and support_S, use
2204 rs->supports_vCont.s and rs->supports_vCont.S instead. Disable
2205 vCont packet if c and C actions are not supported.
2206 (remote_can_do_single_step): New function.
2207 (init_remote_ops): Install it to to_can_do_single_step.
2208 (_initialize_remote): Call add_packet_config_cmd.
2209 * target.h (struct target_ops) <to_can_do_single_step>: New field.
2210 (target_can_do_single_step): New macro.
2211 * target-delegates.c: Re-generated.
2212
2213 2015-09-15 Yao Qi <yao.qi@linaro.org>
2214
2215 * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
2216 (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
2217 * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
2218 New function.
2219 (aarch64_siginfo_from_compat_siginfo): New function.
2220 * nat/aarch64-linux.h: Include signal.h.
2221 (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
2222 (compat_timer_t, compat_clock_t): Likewise.
2223 (struct compat_timeval): New.
2224 (union compat_sigval): New.
2225 (struct compat_siginfo): New.
2226 (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
2227 (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
2228 (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
2229 (cpt_si_band, cpt_si_fd): Likewise.
2230
2231 2015-09-14 Pedro Alves <palves@redhat.com>
2232
2233 * infrun.c (current_stop_id): New global.
2234 (get_stop_id, new_stop_id): New functions.
2235 (fetch_inferior_event): Handle normal_stop proceeding the target.
2236 (struct stop_context): New.
2237 (save_stop_context, release_stop_context_cleanup)
2238 (stop_context_changed): New functions.
2239 (normal_stop): Return true if the hook-stop changes the stop
2240 context.
2241 * infrun.h (get_stop_id): Declare.
2242 (normal_stop): Now returns int. Add documentation.
2243
2244 2015-09-14 Pierre-Marie de Rodat <derodat@adacore.com>
2245
2246 * ada-lang.c (ada_value_ptr_subscript): Update the heading
2247 comment. Handle packed arrays.
2248
2249 2015-09-14 Pedro Alves <palves@redhat.com>
2250
2251 * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
2252 mention of maint set/show target-non-stop.
2253
2254 2015-09-11 Don Breazeal <donb@codesourcery.com>
2255
2256 * NEWS: Announce new remote packets for the exec-events
2257 feature and the exec-events feature and associated commands.
2258
2259 2015-09-11 Don Breazeal <donb@codesourcery.com>
2260
2261 * remote.c (remote_exec_event_p): New function.
2262 (remote_insert_exec_catchpoint): New function.
2263 (remote_remove_exec_catchpoint): New function.
2264 (init_extended_remote_ops): Initialize extended_remote_ops
2265 members to_insert_exec_catchpoint and
2266 to_remove_exec_catchpoint.
2267
2268 2015-09-11 Don Breazeal <donb@codesourcery.com>
2269 Luis Machado <lgustavo@codesourcery.com>
2270
2271 * infrun.c (follow_exec): Use process-style ptid for
2272 exec message. Call add_inferior_with_spaces and
2273 target_follow_exec.
2274 * nat/linux-ptrace.c (linux_supports_traceexec): New function.
2275 * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
2276 * remote.c (remote_pspace_data): New static variable.
2277 (remote_pspace_data_cleanup): New function.
2278 (get_remote_exec_file): New function.
2279 (set_remote_exec_file_1): New function.
2280 (set_remote_exec_file): New function.
2281 (show_remote_exec_file): New function.
2282 (remote_exec_file): Delete static variable.
2283 (anonymous enum) <PACKET_exec_event_feature>: New
2284 enumeration constant.
2285 (remote_protocol_features): Add entry for exec-events feature.
2286 (remote_query_supported): Add client side of qSupported query
2287 for exec-events feature.
2288 (remote_follow_exec): New function.
2289 (remote_parse_stop_reply): Handle 'exec' stop reason.
2290 (extended_remote_run, extended_remote_create_inferior): Call
2291 get_remote_exec_file and set_remote_exec_file_1.
2292 (init_extended_remote_ops) <to_follow_exec>: Initialize new
2293 member.
2294 (_initialize_remote): Call
2295 register_program_space_data_with_cleanup. Call
2296 add_packet_config_cmd for remote exec-events feature.
2297 Modify call to add_setshow_string_noescape_cmd for exec-file
2298 to use new functions set_remote_exec_file and
2299 show_remote_exec_file.
2300 * target-debug.h, target-delegates.c: Regenerated.
2301 * target.c (target_follow_exec): New function.
2302 * target.h (struct target_ops) <to_follow_exec>: New member.
2303 (target_follow_exec): Declare new function.
2304
2305 2015-09-11 Pierre Langlois <pierre.langlois@arm.com>
2306
2307 * aarch64-tdep.c (decode_cb): Move up comment describing the
2308 encoding.
2309 (decode_tb): Fix a typo in comment above the function. Move up
2310 comment describing the encoding.
2311
2312 2015-09-11 Pierre Langlois <pierre.langlois@arm.com>
2313
2314 * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
2315
2316 2015-09-11 Mihail-Marian Nistor <mihail.nistor@freescale.com>
2317
2318 PR gdb/18947
2319 * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
2320 glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
2321
2322 2015-09-10 Simon Marchi <simon.marchi@ericsson.com>
2323
2324 * ada-lang.c (scan_discrim_bound): Factor out arithmetic
2325 operations.
2326
2327 2015-09-10 Simon Marchi <simon.marchi@ericsson.com>
2328
2329 * ada-lang.c (ada_search_struct_field): Constify parameters
2330 and/or variables..
2331 (xget_renaming_scope): Likewise.
2332 (ada_is_redundant_range_encoding): Likewise.
2333 (scan_discrim_bound): Likewise.
2334 (to_fixed_range_type): Likewise.
2335
2336 2015-09-10 Yao Qi <yao.qi@linaro.org>
2337
2338 * breakpoint.c (download_tracepoint_locations): New local
2339 can_download_tracepoint. Check the result of
2340 target_can_download_tracepoint and save it in
2341 can_download_tracepoint if there are tracepoints to download.
2342 * linux-nat.h (enum tribool): Move it to ...
2343 * common/common-types.h: ... here.
2344
2345 2015-09-09 Pedro Alves <palves@redhat.com>
2346
2347 * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
2348 * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
2349
2350 2015-09-09 Pedro Alves <palves@redhat.com>
2351
2352 * continuations.c (add_continuation, restore_thread_cleanup)
2353 (do_all_continuations_ptid, do_all_continuations_thread_callback)
2354 (do_all_continuations_thread, do_all_continuations)
2355 (discard_all_continuations_thread_callback)
2356 (discard_all_continuations_thread, discard_all_continuations)
2357 (add_intermediate_continuation)
2358 (do_all_intermediate_continuations_thread_callback)
2359 (do_all_intermediate_continuations_thread)
2360 (do_all_intermediate_continuations)
2361 (discard_all_intermediate_continuations_thread_callback)
2362 (discard_all_intermediate_continuations_thread)
2363 (discard_all_intermediate_continuations): Delete.
2364 * continuations.h (add_continuation, do_all_continuations)
2365 (do_all_continuations_thread, discard_all_continuations)
2366 (discard_all_continuations_thread, add_intermediate_continuation)
2367 (do_all_intermediate_continuations)
2368 (do_all_intermediate_continuations_thread)
2369 (discard_all_intermediate_continuations)
2370 (discard_all_intermediate_continuations_thread): Delete
2371 declarations.
2372 * event-top.c (stdin_event_handler): Delete references to
2373 continuations.
2374 * gdbthread.h (struct thread_info): Delete continuations and
2375 intermediate_continuations fields.
2376 * inf-loop.c (inferior_event_handler): Remove references to
2377 continuations.
2378 * infrun.c (infrun_thread_stop_requested_callback): Remove
2379 references to continuations.
2380 * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
2381 * thread.c: Don't include "continuations.h".
2382 (clear_thread_inferior_resources): Remove references to
2383 continuations.
2384
2385 2015-09-09 Pedro Alves <palves@redhat.com>
2386
2387 * infcall.c (struct dummy_frame_context_saver): Delete.
2388 (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
2389 (dummy_frame_context_saver_drop)
2390 (dummy_frame_context_saver_cleanup)
2391 (dummy_frame_context_saver_get_regs)
2392 (dummy_frame_context_saver_setup): Delete.
2393 * infcall.h (dummy_frame_context_saver_drop)
2394 (dummy_frame_context_saver_cleanup)
2395 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
2396 Delete.
2397 (get_return_value): Remove 'ctx_saver' paremeter. Adjust.
2398 * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
2399 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
2400
2401 2015-09-09 Pedro Alves <palves@redhat.com>
2402
2403 * breakpoint.c: Include "thread-fsm.h".
2404 (struct until_break_command_continuation_args): Delete.
2405 (struct until_break_fsm): New.
2406 (until_break_fsm_ops): New global.
2407 (new_until_break_fsm, until_break_fsm_should_stop): New functions.
2408 (until_break_command_continuation): Delete.
2409 (until_break_fsm_clean_up): New function.
2410 (until_break_fsm_async_reply_reason): New function.
2411 (until_break_command): Adjust to create an until_break_fsm instead
2412 of a continuation.
2413 (momentary_bkpt_print_it): No longer print MI's async-stop-reason
2414 here.
2415 * infcmd.c (struct until_next_fsm): New.
2416 (until_next_fsm_ops): New global.
2417 (new_until_next_fsm, until_next_fsm_should_stop): New function.
2418 (until_next_continuation): Delete.
2419 (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
2420 functions.
2421 (until_next_command): Adjust to create a new until_next_fsm
2422 instead of a continuation.
2423
2424 2015-09-09 Pedro Alves <palves@redhat.com>
2425
2426 * infcall.c: Include thread_fsm.h.
2427 (struct call_return_meta_info): New.
2428 (get_call_return_value): New function, factored out from
2429 call_function_by_hand_dummy.
2430 (struct call_thread_fsm): New.
2431 (call_thread_fsm_ops): New global.
2432 (new_call_thread_fsm, call_thread_fsm_should_stop)
2433 (call_thread_fsm_should_notify_stop): New functions.
2434 (run_inferior_call): Add 'sm' parameter. Associate the FSM with
2435 the thread.
2436 (call_function_by_hand_dummy): Create a new call_thread_fsm
2437 instance, associate it with the thread, and wait for the FSM to
2438 finish. If finished successfully, fetch the function's result
2439 value out of the FSM.
2440 * infrun.c (fetch_inferior_event): If the FSM says the stop
2441 shouldn't be notified, don't call normal_stop.
2442 (maybe_remove_breakpoints): New function, factored out from ...
2443 (normal_stop): ... here. Simplify.
2444 * infrun.h (maybe_remove_breakpoints): Declare.
2445 * thread-fsm.c (thread_fsm_should_notify_stop): New function.
2446 (thread-fsm.h) <struct thread_fsm_ops>: New field.
2447 (thread_fsm_should_notify_stop): Declare.
2448
2449 2015-09-09 Pedro Alves <palves@redhat.com>
2450
2451 * Makefile.in (COMMON_OBS): Add thread-fsm.o.
2452 * breakpoint.c (handle_jit_event): Print debug output.
2453 (bpstat_what): Split event callback handling to ...
2454 (bpstat_run_callbacks): ... this new function.
2455 (momentary_bkpt_print_it): No longer handle bp_finish here.
2456 * breakpoint.h (bpstat_run_callbacks): Declare.
2457 * gdbthread.h (struct thread_info) <step_multi>: Delete field.
2458 <thread_fsm>: New field.
2459 (thread_cancel_execution_command): Declare.
2460 * infcmd.c: Include thread-fsm.h.
2461 (struct step_command_fsm): New.
2462 (step_command_fsm_ops): New global.
2463 (new_step_command_fsm, step_command_fsm_prepare): New functions.
2464 (step_1): Adjust to use step_command_fsm_prepare and
2465 prepare_one_step.
2466 (struct step_1_continuation_args): Delete.
2467 (step_1_continuation): Delete.
2468 (step_command_fsm_should_stop): New function.
2469 (step_once): Delete.
2470 (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
2471 (prepare_one_step): New function, based on step_once.
2472 (until_next_command): Remove step_multi reference.
2473 (struct return_value_info): New.
2474 (print_return_value): Rename to ...
2475 (print_return_value_1): ... this. New struct return_value_info
2476 parameter. Adjust.
2477 (print_return_value): Reimplement as wrapper around
2478 print_return_value_1.
2479 (struct finish_command_fsm): New.
2480 (finish_command_continuation): Delete.
2481 (finish_command_fsm_ops): New global.
2482 (new_finish_command_fsm, finish_command_fsm_should_stop): New
2483 functions.
2484 (finish_command_fsm_clean_up, finish_command_fsm_return_value):
2485 New.
2486 (finish_command_continuation_free_arg): Delete.
2487 (finish_command_fsm_async_reply_reason): New.
2488 (finish_backward, finish_forward): Change symbol parameter to a
2489 finish_command_fsm. Adjust.
2490 (finish_command): Create a finish_command_fsm. Adjust.
2491 * infrun.c: Include "thread-fsm.h".
2492 (clear_proceed_status_thread): Delete the thread's FSM.
2493 (infrun_thread_stop_requested_callback): Cancel the thread's
2494 execution command.
2495 (clean_up_just_stopped_threads_fsms): New function.
2496 (fetch_inferior_event): Handle the event_thread's should_stop
2497 method saying the command isn't done yet.
2498 (process_event_stop_test): Run breakpoint callbacks here.
2499 (print_stop_event): Rename to ...
2500 (print_stop_location): ... this.
2501 (restore_current_uiout_cleanup): New function.
2502 (print_stop_event): Reimplement.
2503 (normal_stop): No longer notify the end_stepping_range observers
2504 here handle "step N" nor "finish" here. No longer call
2505 print_stop_event here.
2506 * infrun.h (struct return_value_info): Forward declare.
2507 (print_return_value): Declare.
2508 (print_stop_event): Change prototype.
2509 * thread-fsm.c: New file.
2510 * thread-fsm.h: New file.
2511 * thread.c: Include "thread-fsm.h".
2512 (thread_cancel_execution_command): New function.
2513 (clear_thread_inferior_resources): Call it.
2514 * cli/cli-interp.c (cli_on_normal_stop): New function.
2515 (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
2516 observer.
2517 * mi/mi-interp.c: Include "thread-fsm.h".
2518 (restore_current_uiout_cleanup): Delete.
2519 (mi_on_normal_stop): If the thread has an FSM associated, and it
2520 finished, ask it for the async-reply-reason to print. Always call
2521 print_stop_event here, regardless of the top-level interpreter.
2522 Check bpstat_what to tell whether an asynchronous breakpoint hit
2523 triggered.
2524 * tui/tui-interp.c (tui_on_normal_stop): New function.
2525 (tui_init): Install tui_on_normal_stop as normal_stop observer.
2526
2527 2015-09-09 Pedro Alves <palves@redhat.com>
2528
2529 * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
2530 check whether the target can async.
2531 * inf-loop.c (inferior_event_handler): Only call target_async if
2532 the target can async.
2533 * infcall.c: Include top.h and interps.h.
2534 (run_inferior_call): For the interpreter to sync mode while
2535 running the infcall. Call wait_sync_command_done instead of
2536 wait_for_inferior plus normal_stop.
2537 * infcmd.c (prepare_execution_command): Don't check whether the
2538 target can async when running in the foreground.
2539 (step_1): Delete synchronous case handling.
2540 (step_once): Always install a continuation, even in sync mode.
2541 (until_next_command, finish_forward): Don't check whether the
2542 target can async.
2543 (attach_command_post_wait, notice_new_inferior): Always install a
2544 continuation, even in sync mode.
2545 * infrun.c (mark_infrun_async_event_handler): New function.
2546 (proceed): In sync mode, mark infrun's event source instead of
2547 waiting for events here.
2548 (fetch_inferior_event): If the target can't async, do a blocking
2549 wait.
2550 (prepare_to_wait): In sync mode, mark infrun's event source.
2551 (infrun_async_inferior_event_handler): No longer bail out if the
2552 target can't async.
2553 * infrun.h (mark_infrun_async_event_handler): New declaration.
2554 * linux-nat.c (linux_nat_wait_1): Remove calls to
2555 set_sigint_trap/clear_sigint_trap.
2556 (linux_nat_terminal_inferior): No longer check whether the target
2557 can async.
2558 * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
2559 comment.
2560 (mi_execute_command_input_handler): No longer check whether the
2561 target is async. Update and simplify comment.
2562 * target.c (default_target_wait): New function.
2563 * target.h (struct target_ops) <to_wait>: Now defaults to
2564 default_target_wait.
2565 (default_target_wait): Declare.
2566 * top.c (wait_sync_command_done): New function, factored out from
2567 ...
2568 (maybe_wait_sync_command_done): ... this.
2569 * top.h (wait_sync_command_done): Declare.
2570 * target-delegates.c: Regenerate.
2571
2572 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
2573
2574 * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
2575 * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
2576 Remove include of sys/utsname.h.
2577 (linux_determine_kernel_ptr_bits): Remove.
2578 (linux_determine_kernel_start): New.
2579 (perf_event_is_kernel_addr): Remove tinfo argument. Update users.
2580 Update check.
2581 (perf_event_skip_bts_record): Remove tinfo argument. Update users.
2582 (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
2583 initialization.
2584 * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
2585 assignment.
2586
2587 2015-09-07 Pedro Alves <palves@redhat.com>
2588
2589 * guile/guile-internal.h (as_a_scm_t_subr): New.
2590 * guile/guile.c (misc_guile_functions): Use it.
2591 * guile/scm-arch.c (arch_functions): Use it.
2592 * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
2593 Use it.
2594 * guile/scm-breakpoint.c (breakpoint_functions): Use it.
2595 * guile/scm-cmd.c (command_functions): Use it.
2596 * guile/scm-disasm.c (disasm_functions): Use it.
2597 * guile/scm-exception.c (exception_functions)
2598 (private_exception_functions): Use it.
2599 * guile/scm-frame.c (frame_functions)
2600 * guile/scm-gsmob.c (gsmob_functions): Use it.
2601 * guile/scm-iterator.c (iterator_functions): Use it.
2602 * guile/scm-lazy-string.c (lazy_string_functions): Use it.
2603 * guile/scm-math.c (math_functions): Use it.
2604 * guile/scm-objfile.c (objfile_functions): Use it.
2605 * guile/scm-param.c (parameter_functions): Use it.
2606 * guile/scm-ports.c (port_functions, private_port_functions): Use
2607 it.
2608 * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
2609 * guile/scm-progspace.c (pspace_functions): Use it.
2610 * guile/scm-string.c (string_functions): Use it.
2611 * guile/scm-symbol.c (symbol_functions): Use it.
2612 * guile/scm-symtab.c (symtab_functions): Use it.
2613 * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
2614 it.
2615 * guile/scm-value.c (value_functions): Use it.
2616
2617 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2618
2619 * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
2620 (tui_next_win): Likewise.
2621 (tui_prev_win): Likewise.
2622 (tui_partial_win_by_name): Likewise.
2623 (tui_init_generic_part): Likewise.
2624 (init_content_element): Likewise.
2625 (tui_del_window): Likewise.
2626 (tui_free_window): Likewise.
2627 (tui_del_data_windows): Likewise.
2628 (tui_free_data_content): Likewise.
2629 * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
2630 * tui/tui-regs.c (tui_show_register_group): Likewise.
2631 * tui/tui-win.c (tui_resize_all): Likewise.
2632 (tui_set_focus): Likewise.
2633 (tui_set_win_height): Likewise.
2634 (make_invisible_and_set_new_height): Likewise.
2635 * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
2636 * tui/tui-wingeneral.c (make_visible): Likewise.
2637
2638 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2639
2640 * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
2641
2642 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2643
2644 * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
2645 pointer.
2646 * dbxread.c (dbx_end_psymtab): Likewise.
2647 * gnu-nat.c (gnu_write_inferior): Likewise.
2648 * mdebugread.c (cross_ref): Likewise.
2649 * p-valprint.c (pascal_val_print): Likewise.
2650 * xcoffread.c (xcoff_end_psymtab): Likewise.
2651
2652 2015-09-04 Yao Qi <yao.qi@linaro.org>
2653
2654 * NEWS: Mention the aarch64 multi-arch debugging support.
2655
2656 2015-09-03 Pierre-Marie de Rodat <derodat@adacore.com>
2657
2658 * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
2659 type instead of a TYPE_CODE_INT one for the string_char_type
2660 and the ada_primitive_type_char types.
2661
2662 2015-09-03 Yao Qi <yao.qi@linaro.org>
2663
2664 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
2665 Move code to aarch64_linux_region_ok_for_watchpoint. Call
2666 aarch64_linux_region_ok_for_watchpoint.
2667 * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
2668 New function.
2669 * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
2670 Declare it.
2671
2672 2015-09-02 Patrick Palka <patrick@parcs.ath.cx>
2673
2674 * gdb_obstack.h (obstack_strdup): Declare.
2675 * gdb_obstack.c (obstack_strdup): Define.
2676 * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
2677 * gdbarch.c: Regenerate.
2678 * gdbarch.h: Regenerate.
2679 * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
2680
2681 2015-09-02 Patrick Palka <patrick@parcs.ath.cx>
2682
2683 * gdbtypes.c (copy_type_recursive): Update documentation.
2684
2685 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2686
2687 * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
2688 as zero.
2689
2690 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2691
2692 * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
2693
2694 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2695
2696 * solib-svr4.c (solib_event_probe_action): Call
2697 get_probe_argument_count using TRY...CATCH.
2698 (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
2699
2700 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2701
2702 * probe.h (struct probe_ops) <get_probe_argument_count,
2703 evaluate_probe_argument, enable_probe, disable_probe>: Mention in
2704 the comment that the function can throw an exception.
2705 (get_probe_argument_count): Likewise.
2706 (evaluate_probe_argument): Likewise.
2707 * stap-probe.c (stap_get_opcode): Call error instead of
2708 internal_error.
2709 (stap_get_expected_argument_type): Likewise. Add argument
2710 'probe'. Improve error message by mentioning the probe's name.
2711 (stap_parse_probe_arguments): Adjust call to
2712 stap_get_expected_argument_type.
2713 (stap_get_arg): Add comment. Assert that 'probe->args_parsed' is
2714 not zero. Call internal_error if GDB requests an argument but the
2715 probe has no arguments.
2716
2717 2015-09-01 Pierre-Marie de Rodat <derodat@adacore.com>
2718
2719 * ada-lang.c (ada_resolve_function): Do not ask the user what
2720 match to use when in completion mode.
2721
2722 2015-08-31 Andrew Burgess <andrew.burgess@embecosm.com>
2723
2724 * tui/tui-data.c (tui_win_name): Make local variable const, remove
2725 cast of NULL.
2726
2727 2015-08-31 Max Filippov <jcmvbkbc@gmail.com>
2728
2729 * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
2730 call_abi using XSHAL_ABI macro.
2731
2732 2015-08-29 Doug Evans <xdje42@gmail.com>
2733
2734 * symtab.h (struct symbol): Tweak comment.
2735
2736 2015-08-29 Patrick Palka <patrick@parcs.ath.cx>
2737
2738 * gdbtypes.c (alloc_type_arch): Allocate the type on the given
2739 gdbarch obstack instead of on the heap. Update commentary
2740 accordingly.
2741
2742 2015-08-28 Joel Brobecker <brobecker@adacore.com>
2743
2744 GDB 7.10 released.
2745
2746 2015-08-28 Simon Marchi <simon.marchi@ericsson.com>
2747
2748 * NEWS: Update entry about non-8-bits addressable memory.
2749
2750 2015-08-28 Ulrich Weigand <uweigand@de.ibm.com>
2751
2752 Revert:
2753 2014-11-06 Doug Evans <xdje42@gmail.com>
2754 * solib.c (solib_global_lookup): Fetch arch from objfile,
2755 not target_gdbarch.
2756
2757 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
2758
2759 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
2760 attempt to relocate a TLS variable offset.
2761
2762 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
2763
2764 * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
2765 registered yet. Set inferior_ptid while calling target_read_memory.
2766
2767 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
2768
2769 * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
2770 (GDB_ARCH_IS_TRAP_BRKPT): ... this. Add __powerpc__ case.
2771 * linux-nat.c (check_stopped_by_breakpoint): Use
2772 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
2773
2774 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
2775
2776 * linux-thread-db.c (thread_db_get_thread_local_address): If the
2777 thread was not yet discovered, use thread_from_lwp instead of
2778 calling thread_db_find_new_threads_1.
2779
2780 2015-08-27 Simon Marchi <simon.marchi@ericsson.com>
2781
2782 * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
2783 statements.
2784
2785 2015-08-27 Simon Marchi <simon.marchi@ericsson.com>
2786
2787 * NEWS: Document support for non-8-bits addressable memory.
2788
2789 2015-08-27 Pedro Alves <palves@redhat.com>
2790
2791 * configure.ac: Remove AC_TYPE_SIGNAL call.
2792 * configure, config.in: Regenerate.
2793
2794 2015-08-27 Pedro Alves <palves@redhat.com>
2795
2796 * cp-support.c (gdb_demangle): Use sighandler_t. Remove cast.
2797 * extension-priv.h: Include signal.h.
2798 (struct signal_handler) <handler>: Change type to sighandler_t.
2799 * extension.c (install_gdb_sigint_handler): Use sighandler_t.
2800 * inflow.c (sigint_ours, sigquit_ours): Change type to
2801 sighandler_t.
2802 (child_terminal_inferior): Remove casts.
2803 (child_terminal_ours_1, new_tty): Use sighandler_t. Remove casts.
2804 (osig): Change type to sighandler_t.
2805 * nto-procfs.c (ofunc): Change type to sighandler_t.
2806 (procfs_wait): Remove casts.
2807 * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
2808 * remote-sim.c (gdbsim_wait): Use sighandler_t.
2809 * utils.c (wait_to_die_with_timeout): Use sighandler_t.
2810
2811 2015-08-27 Pedro Alves <palves@redhat.com>
2812
2813 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
2814 * gnulib/aclocal.m4: Renegerate.
2815 * gnulib/config.in: Renegerate.
2816 * gnulib/configure: Renegerate.
2817 * gnulib/import/Makefile.am: Update.
2818 * gnulib/import/Makefile.in: Regenerate.
2819 * gnulib/import/m4/gnulib-cache.m4: Update.
2820 * gnulib/import/m4/gnulib-comp.m4: Update.
2821 * gnulib/import/m4/signal_h.m4: New file.
2822 * gnulib/import/signal.in.h: New file.
2823
2824 2015-08-27 Pedro Alves <palves@redhat.com>
2825
2826 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
2827 (MIN_MEMORY_PACKET_SIZE): New.
2828 (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
2829 (get_memory_packet_size): Adjust. No longer limit the max packet
2830 size.
2831 (set_memory_packet_size): Adjust, and remove dead code.
2832 (remote_check_symbols): Use xmalloc and a cleanup instead of
2833 alloca.
2834 (remote_packet_size): No longer cap the packet size.
2835 (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
2836
2837 2015-08-26 Luis Machado <lgustavo@codesourcery.com>
2838
2839 * compile/compile.c (compile_to_object): Mention language in
2840 error message.
2841
2842 2015-08-26 Patrick Palka <patrick@parcs.ath.cx>
2843
2844 * target.c (target_pre_inferior): Unset attach_flag.
2845
2846 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
2847
2848 * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
2849 * gdbarch.c: Re-generate.
2850
2851 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
2852
2853 * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
2854 function with the XNEW-family equivalent.
2855 * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
2856 * ada-exp.y (write_ambiguous_var): Likewise.
2857 * ada-lang.c (resolve_subexp): Likewise.
2858 (user_select_syms): Likewise.
2859 (assign_aggregate): Likewise.
2860 (ada_evaluate_subexp): Likewise.
2861 (cache_symbol): Likewise.
2862 * addrmap.c (allocate_key): Likewise.
2863 (addrmap_create_mutable): Likewise.
2864 * aix-thread.c (sync_threadlists): Likewise.
2865 * alpha-tdep.c (alpha_push_dummy_call): Likewise.
2866 (alpha_gdbarch_init): Likewise.
2867 * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
2868 * arm-linux-nat.c (arm_linux_add_process): Likewise.
2869 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
2870 * arm-tdep.c (push_stack_item): Likewise.
2871 (arm_displaced_step_copy_insn): Likewise.
2872 (arm_gdbarch_init): Likewise.
2873 (_initialize_arm_tdep): Likewise.
2874 * avr-tdep.c (push_stack_item): Likewise.
2875 * ax-general.c (new_agent_expr): Likewise.
2876 * block.c (block_initialize_namespace): Likewise.
2877 * breakpoint.c (alloc_counted_command_line): Likewise.
2878 (update_dprintf_command_list): Likewise.
2879 (parse_breakpoint_sals): Likewise.
2880 (decode_static_tracepoint_spec): Likewise.
2881 (until_break_command): Likewise.
2882 (clear_command): Likewise.
2883 (update_global_location_list): Likewise.
2884 (get_breakpoint_objfile_data) Likewise.
2885 * btrace.c (ftrace_new_function): Likewise.
2886 (btrace_set_insn_history): Likewise.
2887 (btrace_set_call_history): Likewise.
2888 * buildsym.c (add_symbol_to_list): Likewise.
2889 (record_pending_block): Likewise.
2890 (start_subfile): Likewise.
2891 (start_buildsym_compunit): Likewise.
2892 (push_subfile): Likewise.
2893 (end_symtab_get_static_block): Likewise.
2894 (buildsym_init): Likewise.
2895 * cli/cli-cmds.c (source_command): Likewise.
2896 * cli/cli-decode.c (add_cmd): Likewise.
2897 * cli/cli-script.c (build_command_line): Likewise.
2898 (setup_user_args): Likewise.
2899 (realloc_body_list): Likewise.
2900 (process_next_line): Likewise.
2901 (copy_command_lines): Likewise.
2902 * cli/cli-setshow.c (do_set_command): Likewise.
2903 * coff-pe-read.c (read_pe_exported_syms): Likewise.
2904 * coffread.c (coff_locate_sections): Likewise.
2905 (coff_symtab_read): Likewise.
2906 (coff_read_struct_type): Likewise.
2907 * common/cleanups.c (make_my_cleanup2): Likewise.
2908 * common/common-exceptions.c (throw_it): Likewise.
2909 * common/filestuff.c (make_cleanup_close): Likewise.
2910 * common/format.c (parse_format_string): Likewise.
2911 * common/queue.h (DEFINE_QUEUE_P): Likewise.
2912 * compile/compile-object-load.c (munmap_list_add): Likewise.
2913 (compile_object_load): Likewise.
2914 * compile/compile-object-run.c (compile_object_run): Likewise.
2915 * compile/compile.c (append_args): Likewise.
2916 * corefile.c (specify_exec_file_hook): Likewise.
2917 * cp-support.c (make_symbol_overload_list): Likewise.
2918 * cris-tdep.c (push_stack_item): Likewise.
2919 (cris_gdbarch_init): Likewise.
2920 * ctf.c (ctf_trace_file_writer_new): Likewise.
2921 * dbxread.c (init_header_files): Likewise.
2922 (add_new_header_file): Likewise.
2923 (init_bincl_list): Likewise.
2924 (dbx_end_psymtab): Likewise.
2925 (start_psymtab): Likewise.
2926 (dbx_end_psymtab): Likewise.
2927 * dcache.c (dcache_init): Likewise.
2928 * dictionary.c (dict_create_hashed): Likewise.
2929 (dict_create_hashed_expandable): Likewise.
2930 (dict_create_linear): Likewise.
2931 (dict_create_linear_expandable): Likewise.
2932 * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
2933 * dummy-frame.c (register_dummy_frame_dtor): Likewise.
2934 * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
2935 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2936 (decode_frame_entry_1): Likewise.
2937 * dwarf2expr.c (new_dwarf_expr_context): Likewise.
2938 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
2939 * dwarf2read.c (dwarf2_has_info): Likewise.
2940 (create_signatured_type_table_from_index): Likewise.
2941 (dwarf2_read_index): Likewise.
2942 (dw2_get_file_names_reader): Likewise.
2943 (create_all_type_units): Likewise.
2944 (read_cutu_die_from_dwo): Likewise.
2945 (init_tu_and_read_dwo_dies): Likewise.
2946 (init_cutu_and_read_dies): Likewise.
2947 (create_all_comp_units): Likewise.
2948 (queue_comp_unit): Likewise.
2949 (inherit_abstract_dies): Likewise.
2950 (read_call_site_scope): Likewise.
2951 (dwarf2_add_field): Likewise.
2952 (dwarf2_add_typedef): Likewise.
2953 (dwarf2_add_member_fn): Likewise.
2954 (attr_to_dynamic_prop): Likewise.
2955 (abbrev_table_alloc_abbrev): Likewise.
2956 (abbrev_table_read_table): Likewise.
2957 (add_include_dir): Likewise.
2958 (add_file_name): Likewise.
2959 (dwarf_decode_line_header): Likewise.
2960 (dwarf2_const_value_attr): Likewise.
2961 (dwarf_alloc_block): Likewise.
2962 (parse_macro_definition): Likewise.
2963 (set_die_type): Likewise.
2964 (write_psymtabs_to_index): Likewise.
2965 (create_cus_from_index): Likewise.
2966 (dwarf2_create_include_psymtab): Likewise.
2967 (process_psymtab_comp_unit_reader): Likewise.
2968 (build_type_psymtab_dependencies): Likewise.
2969 (read_comp_units_from_section): Likewise.
2970 (compute_compunit_symtab_includes): Likewise.
2971 (create_dwo_unit_in_dwp_v1): Likewise.
2972 (create_dwo_unit_in_dwp_v2): Likewise.
2973 (read_func_scope): Likewise.
2974 (process_structure_scope): Likewise.
2975 (mark_common_block_symbol_computed): Likewise.
2976 (load_partial_dies): Likewise.
2977 (dwarf2_symbol_mark_computed): Likewise.
2978 * elfread.c (elf_symfile_segments): Likewise.
2979 (elf_read_minimal_symbols): Likewise.
2980 * environ.c (make_environ): Likewise.
2981 * eval.c (evaluate_subexp_standard): Likewise.
2982 * event-loop.c (create_file_handler): Likewise.
2983 (create_async_signal_handler): Likewise.
2984 (create_async_event_handler): Likewise.
2985 (create_timer): Likewise.
2986 * exec.c (build_section_table): Likewise.
2987 * fbsd-nat.c (fbsd_remember_child): Likewise.
2988 * fork-child.c (fork_inferior): Likewise.
2989 * frv-tdep.c (new_variant): Likewise.
2990 * gdbarch.sh (gdbarch_alloc): Likewise.
2991 (append_name): Likewise.
2992 * gdbtypes.c (rank_function): Likewise.
2993 (copy_type_recursive): Likewise.
2994 (add_dyn_prop): Likewise.
2995 * gnu-nat.c (make_proc): Likewise.
2996 (make_inf): Likewise.
2997 (gnu_write_inferior): Likewise.
2998 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
2999 (build_std_type_info_type): Likewise.
3000 * guile/scm-param.c (compute_enum_list): Likewise.
3001 * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
3002 * guile/scm-value.c (gdbscm_value_call): Likewise.
3003 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
3004 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
3005 (read_unwind_info): Likewise.
3006 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
3007 * infcall.c (dummy_frame_context_saver_setup): Likewise.
3008 (call_function_by_hand_dummy): Likewise.
3009 * infcmd.c (step_once): Likewise.
3010 (finish_forward): Likewise.
3011 (attach_command): Likewise.
3012 (notice_new_inferior): Likewise.
3013 * inferior.c (add_inferior_silent): Likewise.
3014 * infrun.c (add_displaced_stepping_state): Likewise.
3015 (save_infcall_control_state): Likewise.
3016 (save_inferior_ptid): Likewise.
3017 (_initialize_infrun): Likewise.
3018 * jit.c (bfd_open_from_target_memory): Likewise.
3019 (jit_gdbarch_data_init): Likewise.
3020 * language.c (add_language): Likewise.
3021 * linespec.c (decode_line_2): Likewise.
3022 * linux-nat.c (add_to_pid_list): Likewise.
3023 (add_initial_lwp): Likewise.
3024 * linux-thread-db.c (add_thread_db_info): Likewise.
3025 (record_thread): Likewise.
3026 (info_auto_load_libthread_db): Likewise.
3027 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
3028 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
3029 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
3030 * m88k-tdep.c (m88k_analyze_prologue): Likewise.
3031 * macrocmd.c (macro_define_command): Likewise.
3032 * macroexp.c (gather_arguments): Likewise.
3033 * macroscope.c (sal_macro_scope): Likewise.
3034 * macrotab.c (new_macro_table): Likewise.
3035 * mdebugread.c (push_parse_stack): Likewise.
3036 (parse_partial_symbols): Likewise.
3037 (parse_symbol): Likewise.
3038 (psymtab_to_symtab_1): Likewise.
3039 (new_block): Likewise.
3040 (new_psymtab): Likewise.
3041 (mdebug_build_psymtabs): Likewise.
3042 (add_pending): Likewise.
3043 (elfmdebug_build_psymtabs): Likewise.
3044 * mep-tdep.c (mep_gdbarch_init): Likewise.
3045 * mi/mi-main.c (mi_execute_command): Likewise.
3046 * mi/mi-parse.c (mi_parse_argv): Likewise.
3047 * minidebug.c (lzma_open): Likewise.
3048 * minsyms.c (terminate_minimal_symbol_table): Likewise.
3049 * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
3050 * mips-tdep.c (mips_gdbarch_init): Likewise.
3051 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
3052 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
3053 * mt-tdep.c (mt_registers_info): Likewise.
3054 * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
3055 * nat/linux-btrace.c (linux_enable_bts): Likewise.
3056 (linux_enable_pt): Likewise.
3057 * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
3058 (linux_xfer_osdata_processgroups): Likewise.
3059 * nios2-tdep.c (nios2_gdbarch_init): Likewise.
3060 * nto-procfs.c (procfs_meminfo): Likewise.
3061 * objc-lang.c (start_msglist): Likewise.
3062 (selectors_info): Likewise.
3063 (classes_info): Likewise.
3064 (find_methods): Likewise.
3065 * objfiles.c (allocate_objfile): Likewise.
3066 (update_section_map): Likewise.
3067 * osabi.c (gdbarch_register_osabi): Likewise.
3068 (gdbarch_register_osabi_sniffer): Likewise.
3069 * parse.c (start_arglist): Likewise.
3070 * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
3071 (hwdebug_insert_point): Likewise.
3072 * printcmd.c (display_command): Likewise.
3073 (ui_printf): Likewise.
3074 * procfs.c (create_procinfo): Likewise.
3075 (load_syscalls): Likewise.
3076 (proc_get_LDT_entry): Likewise.
3077 (proc_update_threads): Likewise.
3078 * prologue-value.c (make_pv_area): Likewise.
3079 (pv_area_store): Likewise.
3080 * psymtab.c (extend_psymbol_list): Likewise.
3081 (init_psymbol_list): Likewise.
3082 (allocate_psymtab): Likewise.
3083 * python/py-inferior.c (add_thread_object): Likewise.
3084 * python/py-param.c (compute_enum_values): Likewise.
3085 * python/py-value.c (valpy_call): Likewise.
3086 * python/py-varobj.c (py_varobj_iter_next): Likewise.
3087 * python/python.c (ensure_python_env): Likewise.
3088 * record-btrace.c (record_btrace_start_replaying): Likewise.
3089 * record-full.c (record_full_reg_alloc): Likewise.
3090 (record_full_mem_alloc): Likewise.
3091 (record_full_end_alloc): Likewise.
3092 (record_full_core_xfer_partial): Likewise.
3093 * regcache.c (get_thread_arch_aspace_regcache): Likewise.
3094 * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
3095 * remote-notif.c (remote_notif_state_allocate): Likewise.
3096 * remote.c (demand_private_info): Likewise.
3097 (remote_notif_stop_alloc_reply): Likewise.
3098 (remote_enable_btrace): Likewise.
3099 * reverse.c (save_bookmark_command): Likewise.
3100 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
3101 * rx-tdep.c (rx_gdbarch_init): Likewise.
3102 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
3103 * ser-go32.c (dos_get_tty_state): Likewise.
3104 (dos_copy_tty_state): Likewise.
3105 * ser-mingw.c (ser_windows_open): Likewise.
3106 (ser_console_wait_handle): Likewise.
3107 (ser_console_get_tty_state): Likewise.
3108 (make_pipe_state): Likewise.
3109 (net_windows_open): Likewise.
3110 * ser-unix.c (hardwire_get_tty_state): Likewise.
3111 (hardwire_copy_tty_state): Likewise.
3112 * solib-aix.c (solib_aix_new_lm_info): Likewise.
3113 * solib-dsbt.c (dsbt_current_sos): Likewise.
3114 (dsbt_relocate_main_executable): Likewise.
3115 * solib-frv.c (frv_current_sos): Likewise.
3116 (frv_relocate_main_executable): Likewise.
3117 * solib-spu.c (spu_bfd_fopen): Likewise.
3118 * solib-svr4.c (lm_info_read): Likewise.
3119 (svr4_copy_library_list): Likewise.
3120 (svr4_default_sos): Likewise.
3121 * source.c (find_source_lines): Likewise.
3122 (line_info): Likewise.
3123 (add_substitute_path_rule): Likewise.
3124 * spu-linux-nat.c (spu_bfd_open): Likewise.
3125 * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
3126 * stabsread.c (dbx_lookup_type): Likewise.
3127 (read_type): Likewise.
3128 (read_member_functions): Likewise.
3129 (read_struct_fields): Likewise.
3130 (read_baseclasses): Likewise.
3131 (read_args): Likewise.
3132 (_initialize_stabsread): Likewise.
3133 * stack.c (func_command): Likewise.
3134 * stap-probe.c (handle_stap_probe): Likewise.
3135 * symfile.c (addrs_section_sort): Likewise.
3136 (addr_info_make_relative): Likewise.
3137 (load_section_callback): Likewise.
3138 (add_symbol_file_command): Likewise.
3139 (init_filename_language_table): Likewise.
3140 * symtab.c (create_filename_seen_cache): Likewise.
3141 (sort_search_symbols_remove_dups): Likewise.
3142 (search_symbols): Likewise.
3143 * target.c (make_cleanup_restore_target_terminal): Likewise.
3144 * thread.c (new_thread): Likewise.
3145 (enable_thread_stack_temporaries): Likewise.
3146 (make_cleanup_restore_current_thread): Likewise.
3147 (thread_apply_all_command): Likewise.
3148 * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
3149 * top.c (gdb_readline_wrapper): Likewise.
3150 * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
3151 * tracepoint.c (trace_find_line_command): Likewise.
3152 (all_tracepoint_actions_and_cleanup): Likewise.
3153 (make_cleanup_restore_current_traceframe): Likewise.
3154 (get_uploaded_tp): Likewise.
3155 (get_uploaded_tsv): Likewise.
3156 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
3157 (tui_alloc_win_info): Likewise.
3158 (tui_alloc_content): Likewise.
3159 (tui_add_content_elements): Likewise.
3160 * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
3161 (tui_set_disassem_content): Likewise.
3162 * ui-file.c (ui_file_new): Likewise.
3163 (stdio_file_new): Likewise.
3164 (tee_file_new): Likewise.
3165 * utils.c (make_cleanup_restore_integer): Likewise.
3166 (add_internal_problem_command): Likewise.
3167 * v850-tdep.c (v850_gdbarch_init): Likewise.
3168 * valops.c (find_oload_champ): Likewise.
3169 * value.c (allocate_value_lazy): Likewise.
3170 (record_latest_value): Likewise.
3171 (create_internalvar): Likewise.
3172 * varobj.c (install_variable): Likewise.
3173 (new_variable): Likewise.
3174 (new_root_variable): Likewise.
3175 (cppush): Likewise.
3176 (_initialize_varobj): Likewise.
3177 * windows-nat.c (windows_make_so): Likewise.
3178 * x86-nat.c (x86_add_process): Likewise.
3179 * xcoffread.c (arrange_linetable): Likewise.
3180 (allocate_include_entry): Likewise.
3181 (process_linenos): Likewise.
3182 (SYMBOL_DUP): Likewise.
3183 (xcoff_start_psymtab): Likewise.
3184 (xcoff_end_psymtab): Likewise.
3185 * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
3186 * xtensa-tdep.c (xtensa_register_type): Likewise.
3187 * gdbarch.c: Regenerate.
3188 * gdbarch.h: Regenerate.
3189
3190 2015-08-25 Don Breazeal <donb@codesourcery.com>
3191
3192 * infrun.c (follow_exec): Re-order operations for
3193 handling follow-exec-mode "new".
3194 (handle_inferior_event_1): Assign ecs->event_thread
3195 to the current thread.
3196 * remote.c (get_remote_arch_state): Add an assertion.
3197
3198 2015-08-26 Pedro Alves <palves@redhat.com>
3199
3200 * MAINTAINERS: Add Markus Metzger as btrace maintainer.
3201
3202 2015-08-25 Pedro Alves <palves@redhat.com>
3203
3204 PR gdb/18804
3205 * defs.h (maybe_quit): Declare.
3206 (QUIT): Now calls maybe_quit.
3207 * event-loop.c (clear_async_signal_handler)
3208 (async_signal_handler_is_marked): New functions.
3209 * event-loop.h (async_signal_handler_is_marked)
3210 (clear_async_signal_handler): New declarations.
3211 * remote.c (remote_check_pending_interrupt): New function.
3212 (interrupt_query): Use make_cleanup_restore_target_terminal. No
3213 longer check whether the target is async. If waiting for a stop
3214 reply, and a Ctrl-C as been sent to the target, offer to
3215 disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
3216 Otherwise do not disconnect and throw a quit.
3217 (_initialize_remote): Install remote_check_pending_interrupt as
3218 to_check_pending_interrupt.
3219 * target.c (target_check_pending_interrupt): New function.
3220 * target.h (struct target_ops) <to_check_pending_interrupt>: New
3221 field.
3222 (target_check_pending_interrupt): New declaration.
3223 * utils.c (maybe_quit): New function.
3224 * target-delegates.c: Regenerate.
3225
3226 2015-08-25 Yao Qi <yao.qi@linaro.org>
3227
3228 * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
3229 Rename local variable pid to tid, and get lwpid of lwp. Update
3230 debug output.
3231
3232 2015-08-25 Pierre-Marie de Rodat <derodat@adacore.com>
3233
3234 * ada-lang.c (ada_read_var_value): Add a var_block argument
3235 and pass it to default_read_var_value.
3236 * block.c (block_static_link): New accessor.
3237 * block.h (block_static_link): Declare it.
3238 * buildsym.c (finish_block_internal): Add a static_link
3239 argument. If there is a static link, associate it to the new
3240 block.
3241 (finish_block): Add a static link argument and pass it to
3242 finish_block_internal.
3243 (end_symtab_get_static_block): Update calls to finish_block and
3244 to finish_block_internal.
3245 (end_symtab_with_blockvector): Update call to
3246 finish_block_internal.
3247 * buildsym.h: Forward-declare struct dynamic_prop.
3248 (struct context_stack): Add a static_link field.
3249 (finish_block): Add a static link argument.
3250 * c-exp.y: Remove an obsolete comment (evaluation of variables
3251 already start from the selected frame, and now they climb *up*
3252 the call stack) and propagate the block information to the
3253 produced expression.
3254 * d-exp.y: Likewise.
3255 * f-exp.y: Likewise.
3256 * go-exp.y: Likewise.
3257 * jv-exp.y: Likewise.
3258 * m2-exp.y: Likewise.
3259 * p-exp.y: Likewise.
3260 * coffread.c (coff_symtab_read): Update calls to finish_block.
3261 * dbxread.c (process_one_symbol): Likewise.
3262 * xcoffread.c (read_xcoff_symtab): Likewise.
3263 * compile/compile-c-symbols.c (convert_one_symbol): Promote the
3264 "sym" parameter to struct block_symbol, update its uses and pass
3265 its block to calls to read_var_value.
3266 (convert_symbol_sym): Update the calls to convert_one_symbol.
3267 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
3268 call to read_var_value.
3269 * dwarf2loc.c (block_op_get_frame_base): New.
3270 (dwarf2_block_frame_base_locexpr_funcs): Implement the
3271 get_frame_base method.
3272 (dwarf2_block_frame_base_loclist_funcs): Likewise.
3273 (dwarf2locexpr_baton_eval): Add a frame argument and use it
3274 instead of the selected frame in order to evaluate the
3275 expression.
3276 (dwarf2_evaluate_property): Add a frame argument. Update call
3277 to dwarf2_locexpr_baton_eval to provide a frame in available and
3278 to handle the absence of address stack.
3279 * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
3280 * dwarf2read.c (attr_to_dynamic_prop): Add a forward
3281 declaration.
3282 (read_func_scope): Record any available static link description.
3283 Update call to finish_block.
3284 (read_lexical_block_scope): Update call to finish_block.
3285 * findvar.c (follow_static_link): New.
3286 (get_hosting_frame): New.
3287 (default_read_var_value): Add a var_block argument. Use
3288 get_hosting_frame to handle non-local references.
3289 (read_var_value): Add a var_block argument and pass it to the
3290 LA_READ_VAR_VALUE method.
3291 * gdbtypes.c (resolve_dynamic_range): Update calls to
3292 dwarf2_evaluate_property.
3293 (resolve_dynamic_type_internal): Likewise.
3294 * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
3295 read_var_value, passing it the block coming from symbol lookup.
3296 * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
3297 read_var_value (TODO).
3298 * infcmd.c (finish_command_continuation): Update call to
3299 read_var_value, passing it the block coming from symbol lookup.
3300 * infrun.c (insert_exception_resume_breakpoint): Likewise.
3301 * language.h (struct language_defn): Add a var_block argument to
3302 the LA_READ_VAR_VALUE method.
3303 * objfiles.c (struct static_link_htab_entry): New.
3304 (static_link_htab_entry_hash): New.
3305 (static_link_htab_entry_eq): New.
3306 (objfile_register_static_link): New.
3307 (objfile_lookup_static_link): New.
3308 (free_objfile): Free the STATIC_LINKS hashed map if needed.
3309 * objfiles.h: Include hashtab.h.
3310 (struct objfile): Add a static_links field.
3311 (objfile_register_static_link): New.
3312 (objfile_lookup_static_link): New.
3313 * printcmd.c (print_variable_and_value): Update call to
3314 read_var_value.
3315 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
3316 * python/py-frame.c (frapy_read_var): Update call to
3317 read_var_value, passing it the block coming from symbol lookup.
3318 * python/py-framefilter.c (extract_sym): Add a sym_block
3319 parameter and set the pointed value to NULL (TODO).
3320 (enumerate_args): Update call to extract_sym.
3321 (enumerate_locals): Update calls to extract_sym and to
3322 read_var_value.
3323 * python/py-symbol.c (sympy_value): Update call to
3324 read_var_value (TODO).
3325 * stack.c (read_frame_local): Update call to read_var_value.
3326 (read_frame_arg): Likewise.
3327 (return_command): Likewise.
3328 * symtab.h (struct symbol_block_ops): Add a get_frame_base
3329 method.
3330 (struct symbol): Add a block field.
3331 (SYMBOL_BLOCK): New accessor.
3332 * valops.c (value_of_variable): Remove frame/block handling and
3333 pass the block argument to read_var_value, which does this job
3334 now.
3335 (value_struct_elt_for_reference): Update calls to
3336 read_var_value.
3337 (value_of_this): Pass the block found to read_var_value.
3338 * value.h (read_var_value): Add a var_block argument.
3339 (default_read_var_value): Likewise.
3340
3341 2015-08-25 Yao Qi <yao.qi@linaro.org>
3342
3343 * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
3344 * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
3345 * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
3346
3347 2015-08-25 Yao Qi <yao.qi@linaro.org>
3348
3349 * Makefile.in (aarch64-liunx.o): New rule.
3350 (HFILES_NO_SRCDIR): Add aarch64-linux.h.
3351 * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
3352 * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
3353 * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
3354 extern.
3355 (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
3356 * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
3357 * nat/aarch64-linux.c: New file.
3358 * nat/aarch64-linux.h: New file.
3359
3360 2015-08-25 Yao Qi <yao.qi@linaro.org>
3361
3362 * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
3363 lwp_arch_private_info and ptid_of_lwp.
3364
3365 2015-08-25 Yao Qi <yao.qi@linaro.org>
3366
3367 * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
3368 Move it to nat/aarch64-linux-hw-point.c.
3369 (debug_reg_change_callback): Likewise.
3370 (aarch64_notify_debug_reg_change): :Likewise.
3371 * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
3372 (aarch64_dr_update_callback_param): New.
3373 (debug_reg_change_callback): New function.
3374 (aarch64_notify_debug_reg_change): Likewise.
3375 * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
3376 Remove the declaration.
3377
3378 2015-08-25 Yao Qi <yao.qi@linaro.org>
3379
3380 * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
3381 Call current_lwp_ptid.
3382
3383 2015-08-25 Yao Qi <yao.qi@linaro.org>
3384
3385 * aarch64-linux-nat.c (debug_reg_change_callback): Use
3386 debug_printf.
3387
3388 2015-08-25 Yao Qi <yao.qi@linaro.org>
3389
3390 * aarch64-linux-nat.c (debug_reg_change_callback): Call
3391 ptid_get_pid rather than ptid_get_lwp.
3392
3393 2015-08-24 Pedro Alves <palves@redhat.com>
3394
3395 * NEWS (New commands): Mention set/show remote
3396 multiprocess-extensions-packet.
3397 * remote.c (remote_query_supported): Only tell the server to use
3398 the multiprocess extensions if the user hasn't force-disabled them
3399 with "set remote multiprocess-extensions-packet off".
3400
3401 2015-08-24 Pedro Alves <palves@redhat.com>
3402
3403 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
3404 1029a8112290f6eee9d7878a391c49db42c999bd.
3405 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
3406 Regenerate.
3407 * gnulib/import/Makefile.am: Update.
3408 * gnulib/import/Makefile.in: Update.
3409 * gnulib/import/alloca.in.h: Update.
3410 * gnulib/import/basename-lgpl.c: Update.
3411 * gnulib/import/canonicalize-lgpl.c: Update.
3412 * gnulib/import/config.charset: Update.
3413 * gnulib/import/dirent.in.h: Update.
3414 * gnulib/import/dirfd.c: Update.
3415 * gnulib/import/dirname-lgpl.c: Update.
3416 * gnulib/import/dirname.h: Update.
3417 * gnulib/import/dosname.h: Update.
3418 * gnulib/import/errno.in.h: Update.
3419 * gnulib/import/extra/snippet/arg-nonnull.h: Update.
3420 * gnulib/import/extra/snippet/c++defs.h: Update.
3421 * gnulib/import/extra/snippet/warn-on-use.h: Update.
3422 * gnulib/import/extra/update-copyright: Update.
3423 * gnulib/import/float+.h: Update.
3424 * gnulib/import/float.c: Update.
3425 * gnulib/import/float.in.h: Update.
3426 * gnulib/import/fnmatch.c: Update.
3427 * gnulib/import/fnmatch.in.h: Update.
3428 * gnulib/import/fnmatch_loop.c: Update.
3429 * gnulib/import/fpucw.h: Update.
3430 * gnulib/import/frexp.c: Update.
3431 * gnulib/import/frexpl.c: Update.
3432 * gnulib/import/gettimeofday.c: Update.
3433 * gnulib/import/inttypes.in.h: Update.
3434 * gnulib/import/isnan.c: Update.
3435 * gnulib/import/isnand-nolibm.h: Update.
3436 * gnulib/import/isnand.c: Update.
3437 * gnulib/import/isnanl-nolibm.h: Update.
3438 * gnulib/import/isnanl.c: Update.
3439 * gnulib/import/itold.c: Update.
3440 * gnulib/import/localcharset.c: Update.
3441 * gnulib/import/localcharset.h: Update.
3442 * gnulib/import/lstat.c: Update.
3443 * gnulib/import/m4/00gnulib.m4: Update.
3444 * gnulib/import/m4/absolute-header.m4: Update.
3445 * gnulib/import/m4/alloca.m4: Update.
3446 * gnulib/import/m4/canonicalize.m4: Update.
3447 * gnulib/import/m4/codeset.m4: Update.
3448 * gnulib/import/m4/configmake.m4: Update.
3449 * gnulib/import/m4/dirent_h.m4: Update.
3450 * gnulib/import/m4/dirfd.m4: Update.
3451 * gnulib/import/m4/dirname.m4: Update.
3452 * gnulib/import/m4/double-slash-root.m4: Update.
3453 * gnulib/import/m4/eealloc.m4: Update.
3454 * gnulib/import/m4/errno_h.m4: Update.
3455 * gnulib/import/m4/exponentd.m4: Update.
3456 * gnulib/import/m4/exponentl.m4: Update.
3457 * gnulib/import/m4/extensions.m4: Update.
3458 * gnulib/import/m4/extern-inline.m4: Update.
3459 * gnulib/import/m4/fcntl-o.m4: Update.
3460 * gnulib/import/m4/float_h.m4: Update.
3461 * gnulib/import/m4/fnmatch.m4: Update.
3462 * gnulib/import/m4/fpieee.m4: Update.
3463 * gnulib/import/m4/frexp.m4: Update.
3464 * gnulib/import/m4/frexpl.m4: Update.
3465 * gnulib/import/m4/gettimeofday.m4: Update.
3466 * gnulib/import/m4/glibc21.m4: Update.
3467 * gnulib/import/m4/gnulib-cache.m4: Update.
3468 * gnulib/import/m4/gnulib-common.m4: Update.
3469 * gnulib/import/m4/gnulib-comp.m4: Update.
3470 * gnulib/import/m4/gnulib-tool.m4: Update.
3471 * gnulib/import/m4/include_next.m4: Update.
3472 * gnulib/import/m4/inttypes-pri.m4: Update.
3473 * gnulib/import/m4/inttypes.m4: Update.
3474 * gnulib/import/m4/isnand.m4: Update.
3475 * gnulib/import/m4/isnanl.m4: Update.
3476 * gnulib/import/m4/largefile.m4: Update.
3477 * gnulib/import/m4/localcharset.m4: Update.
3478 * gnulib/import/m4/locale-fr.m4: Update.
3479 * gnulib/import/m4/locale-ja.m4: Update.
3480 * gnulib/import/m4/locale-zh.m4: Update.
3481 * gnulib/import/m4/longlong.m4: Update.
3482 * gnulib/import/m4/lstat.m4: Update.
3483 * gnulib/import/m4/malloc.m4: Update.
3484 * gnulib/import/m4/malloca.m4: Update.
3485 * gnulib/import/m4/math_h.m4: Update.
3486 * gnulib/import/m4/mbrtowc.m4: Update.
3487 * gnulib/import/m4/mbsinit.m4: Update.
3488 * gnulib/import/m4/mbsrtowcs.m4: Update.
3489 * gnulib/import/m4/mbstate_t.m4: Update.
3490 * gnulib/import/m4/memchr.m4: Update.
3491 * gnulib/import/m4/memmem.m4: Update.
3492 * gnulib/import/m4/mmap-anon.m4: Update.
3493 * gnulib/import/m4/multiarch.m4: Update.
3494 * gnulib/import/m4/nocrash.m4: Update.
3495 * gnulib/import/m4/off_t.m4: Update.
3496 * gnulib/import/m4/pathmax.m4: Update.
3497 * gnulib/import/m4/readlink.m4: Update.
3498 * gnulib/import/m4/rename.m4: Update.
3499 * gnulib/import/m4/rmdir.m4: Update.
3500 * gnulib/import/m4/ssize_t.m4: Update.
3501 * gnulib/import/m4/stat.m4: Update.
3502 * gnulib/import/m4/stdbool.m4: Update.
3503 * gnulib/import/m4/stddef_h.m4: Update.
3504 * gnulib/import/m4/stdint.m4: Update.
3505 * gnulib/import/m4/stdio_h.m4: Update.
3506 * gnulib/import/m4/stdlib_h.m4: Update.
3507 * gnulib/import/m4/string_h.m4: Update.
3508 * gnulib/import/m4/strstr.m4: Update.
3509 * gnulib/import/m4/strtok_r.m4: Update.
3510 * gnulib/import/m4/sys_socket_h.m4: Update.
3511 * gnulib/import/m4/sys_stat_h.m4: Update.
3512 * gnulib/import/m4/sys_time_h.m4: Update.
3513 * gnulib/import/m4/sys_types_h.m4: Update.
3514 * gnulib/import/m4/time_h.m4: Update.
3515 * gnulib/import/m4/unistd_h.m4: Update.
3516 * gnulib/import/m4/warn-on-use.m4: Update.
3517 * gnulib/import/m4/wchar_h.m4: Update.
3518 * gnulib/import/m4/wchar_t.m4: Update.
3519 * gnulib/import/m4/wctype_h.m4: Update.
3520 * gnulib/import/m4/wint_t.m4: Update.
3521 * gnulib/import/malloc.c: Update.
3522 * gnulib/import/malloca.c: Update.
3523 * gnulib/import/malloca.h: Update.
3524 * gnulib/import/math.in.h: Update.
3525 * gnulib/import/mbrtowc.c: Update.
3526 * gnulib/import/mbsinit.c: Update.
3527 * gnulib/import/mbsrtowcs-impl.h: Update.
3528 * gnulib/import/mbsrtowcs-state.c: Update.
3529 * gnulib/import/mbsrtowcs.c: Update.
3530 * gnulib/import/memchr.c: Update.
3531 * gnulib/import/memmem.c: Update.
3532 * gnulib/import/pathmax.h: Update.
3533 * gnulib/import/readlink.c: Update.
3534 * gnulib/import/ref-add.sin: Update.
3535 * gnulib/import/ref-del.sin: Update.
3536 * gnulib/import/rename.c: Update.
3537 * gnulib/import/rmdir.c: Update.
3538 * gnulib/import/same-inode.h: Update.
3539 * gnulib/import/stat.c: Update.
3540 * gnulib/import/stdbool.in.h: Update.
3541 * gnulib/import/stddef.in.h: Update.
3542 * gnulib/import/stdint.in.h: Update.
3543 * gnulib/import/stdio.c: Update.
3544 * gnulib/import/stdio.in.h: Update.
3545 * gnulib/import/stdlib.in.h: Update.
3546 * gnulib/import/str-two-way.h: Update.
3547 * gnulib/import/streq.h: Update.
3548 * gnulib/import/string.in.h: Update.
3549 * gnulib/import/stripslash.c: Update.
3550 * gnulib/import/strnlen1.c: Update.
3551 * gnulib/import/strnlen1.h: Update.
3552 * gnulib/import/strstr.c: Update.
3553 * gnulib/import/strtok_r.c: Update.
3554 * gnulib/import/sys_stat.in.h: Update.
3555 * gnulib/import/sys_time.in.h: Update.
3556 * gnulib/import/sys_types.in.h: Update.
3557 * gnulib/import/time.in.h: Update.
3558 * gnulib/import/unistd.in.h: Update.
3559 * gnulib/import/verify.h: Update.
3560 * gnulib/import/wchar.in.h: Update.
3561 * gnulib/import/wctype.in.h: Update.
3562 * gnulib/import/gettimeofday.c: New file.
3563 * gnulib/import/m4/absolute-header.m4: New file.
3564 * gnulib/import/m4/gettimeofday.m4: New file.
3565 * gnulib/import/m4/sys_socket_h.m4: New file.
3566 * gnulib/import/m4/sys_time_h.m4: New file.
3567 * gnulib/import/stdio.c: Delete file.
3568 * gnulib/import/sys_time.in.h: New file.
3569
3570 2015-08-24 Pedro Alves <palves@redhat.com>
3571
3572 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
3573 * common/gdb_sys_time.h: New file.
3574 * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
3575 * gdb_select.h: Likewise.
3576 * gdb_usleep.c: Likewise.
3577 * maint.c: Likewise.
3578 * mi/mi-main.c: Likewise.
3579 * mi/mi-parse.h: Likewise.
3580 * remote-fileio.c: Likewise.
3581 * remote-m32r-sdi.c: Likewise.
3582 * remote.c: Likewise.
3583 * ser-base.c: Likewise.
3584 * ser-pipe.c: Likewise.
3585 * ser-tcp.c: Likewise.
3586 * ser-unix.c: Likewise.
3587 * symfile.c: Likewise.
3588 * symfile.c: Likewise. Rename OSIZE to SIZE throughout.
3589 * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
3590 * utils.c: Likewise.
3591
3592 2015-08-24 Pedro Alves <palves@redhat.com>
3593
3594 * NEWS: Mention removed support for the various ROM monitors.
3595 * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
3596 ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
3597 * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
3598 gdb_target_obs.
3599 (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
3600 gdb_target_obs.
3601 (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
3602 dsrec.o from gdb_target_obs.
3603 (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
3604 from gdb_target_obs.
3605 (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
3606 gdb_target_obs.
3607 (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
3608 dink32-rom.o from gdb_target_obs.
3609 (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
3610 (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
3611 * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
3612 monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
3613
3614 2015-08-21 Pedro Alves <palves@redhat.com>
3615
3616 * frame.c (null_frame_id): Explicitly zero-initialize.
3617
3618 2015-08-21 Tom Tromey <tromey@redhat.com>
3619
3620 * dwarf2read.c (struct dwarf2_section_info): Rename field
3621 'asection' to 'section'.
3622 (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
3623 (dwarf2_locate_sections, dwarf2_locate_sections)
3624 (locate_dwz_sections, locate_v1_virtual_dwo_sections)
3625 (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
3626 (dwarf2_locate_v2_dwp_sections): Adjust.
3627
3628 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
3629
3630 * top.h (gdb_in_secondary_prompt_p): Declare.
3631 * top.c (gdb_secondary_prompt_depth): Define.
3632 (gdb_in_secondary_prompt_p): Define.
3633 (gdb_readline_wrapper_cleanup): Decrement
3634 gdb_secondary_prompt_depth.
3635 (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
3636 * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
3637 are in a secondary prompt.
3638
3639 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
3640
3641 * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
3642 emit the newline.
3643
3644 2015-08-21 Gary Benson <gbenson@redhat.com>
3645
3646 * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
3647
3648 2015-08-21 Gary Benson <gbenson@redhat.com>
3649
3650 * target.h (struct target_ops) <to_fileio_open>: New argument
3651 warn_if_slow. Update comment. All implementations updated.
3652 (target_fileio_open_warn_if_slow): New declaration.
3653 * target.c (target_fileio_open): Renamed as...
3654 (target_fileio_open_1): ...this. New argument warn_if_slow.
3655 Pass warn_if_slow to implementation. Update debug printing.
3656 (target_fileio_open): New function.
3657 (target_fileio_open_warn_if_slow): Likewise.
3658 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
3659 target_fileio_open_warn_if_slow.
3660
3661 2015-08-21 Gary Benson <gbenson@redhat.com>
3662
3663 * nat/linux-namespaces.c (linux_mntns_access_fs):
3664 Do not overwrite old_chain.
3665
3666 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
3667
3668 * arch/xtensa.h: New file.
3669 * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
3670 (ps_get_thread_area): New function.
3671 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
3672 set_gdbarch_fetch_tls_load_module_address to enable TLS support.
3673 * xtensa-tdep.c (osabi.h): New #include.
3674 (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
3675 xtensa-specific hooks.
3676 * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
3677 member and move the structure to arch/xtensa.h.
3678
3679 2015-08-21 Pedro Alves <palves@redhat.com>
3680
3681 * remote.c (struct readahead_cache): New.
3682 (struct remote_state) <readahead_cache>: New field.
3683 (remote_open_1): Invalidate the cache.
3684 (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
3685 functions.
3686 (remote_hostio_pwrite): Invalidate the readahead cache.
3687 (remote_hostio_pread): Rename to ...
3688 (remote_hostio_pread_vFile): ... this.
3689 (remote_hostio_pread_from_cache): New function.
3690 (remote_hostio_pread): Reimplement.
3691 (remote_hostio_close): Invalidate the readahead cache.
3692
3693 2015-08-21 Marcin Cieślak <saper@saper.info> (tiny patch)
3694
3695 PR build/18843
3696 * procfs.c: Include "filestuff.h".
3697
3698 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
3699
3700 * tui/tui-data.h (tui_command_info): Remove fields cur_line and
3701 curch.
3702 * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
3703 cur_line or curch, instead call wmove().
3704 (init_win_info) [CMD_WIN]: Likewise.
3705 * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
3706 instead call getcury().
3707 (tui_redisplay_readline): Don't set cur_line or curch.
3708 (tui_mld_erase_entire_line): Don't read cur_line, instead call
3709 getcury().
3710 (tui_cont_sig): Remove call to wmove.
3711 (tui_getc): Don't read cur_line or curch, instead call getcury()
3712 or getyx(). Don't set curch.
3713 * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
3714 set cur_line or curch. Always move cursor to (0,0).
3715
3716 2015-08-20 Pedro Alves <palves@redhat.com>
3717
3718 * infrun.c (print_target_wait_results): Make extern.
3719 * infrun.h (print_target_wait_results): Declare.
3720 * remote.c (set_stop_requested_callback): Delete.
3721 (process_initial_stop_replies): New function.
3722 (remote_start_remote): Use it.
3723 (stop_reply_queue_length): New function.
3724
3725 2015-08-20 Pedro Alves <palves@redhat.com>
3726
3727 * dwarf2read.c (process_full_comp_unit): To tell whether
3728 start_subfile managed to deduce a language, test for
3729 language_unknown instead of language_c.
3730
3731 2015-08-20 Pierre-Marie de Rodat <derodat@adacore.com>
3732
3733 * ada-lex.l: Reset the start condition to INITIAL in the rule that
3734 matches attributes.
3735
3736 2015-08-19 Kevin Buettner <kevinb@redhat.com>
3737
3738 * dwarf2read.c (dwarf2_string_attr): New function.
3739 (lookup_dwo_unit, process_psymtab_comp_unit_reader)
3740 (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
3741 (read_call_site_scope, namespace_name, guess_full_die_structure_name)
3742 (anonymous_struct_prefix, prepare_one_comp_unit): Use
3743 dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
3744
3745 2015-08-18 Doug Evans <dje@google.com>
3746 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3747
3748 PR mi/18833
3749 * cli/cli-logging.c (pop_output_files): Don't restore redirection
3750 if MI-like.
3751 * mi/mi-out.c: #include "vec.h".
3752 (ui_filep): New type.
3753 (DEV_VEC_P (ui_filep)): New type.
3754 (struct ui_out_data) <buffer, original_buffer>: Delete.
3755 (struct ui_out_data) <streams>: New member.
3756 (mi_ui_out_impl): Add data_destroy field.
3757 (mi_field_string, mi_field_fmt): Update.
3758 (mi_flush, mi_redirect, field_separator): Update.
3759 (mi_open, mi_close): Update.
3760 (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
3761 (mi_out_data_ctor, mi_out_data_dtor): New functions.
3762 (mi_out_new): Call mi_out_data_ctor.
3763
3764 2015-08-18 Sandra Loosemore <sandra@codesourcery.com>
3765
3766 * remote.c (strprefix): New.
3767 (remote_parse_stop_reply): Use strprefix instead of strncmp
3768 to ensure exact match of keyword.
3769
3770 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
3771
3772 * gdb_bfd.c (debug_bfd_cache): New variable.
3773 (show_bfd_cache_debug): New function.
3774 (gdb_bfd_open): Add debug logging.
3775 (gdb_bfd_ref): Likewise.
3776 (gdb_bfd_unref): Likewise.
3777 (_initialize_gdb_bfd): Add new set/show command.
3778 * NEWS: Mention new command.
3779
3780 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
3781
3782 * gdb_bfd.c (bfd_sharing): New variable.
3783 (show_bfd_sharing): New function.
3784 (gdb_bfd_open): Check bfd_sharing variable.
3785 (_initialize_gdb_bfd): Add new set/show command.
3786 * NEWS: Mention new command.
3787
3788 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
3789
3790 * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
3791 field.
3792 (struct gdb_bfd_cache_search): Likewise.
3793 (eq_bfd): Compare the size, inode, and device id fields.
3794 (gdb_bfd_open): Initialise the size, inode, and device id fields.
3795 (gdb_bfd_ref): Likewise.
3796 (gdb_bfd_unref): Likewise.
3797
3798 2015-08-18 Pedro Alves <palves@redhat.com>
3799
3800 * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
3801 target implements to_always_non_stop_p, call it.
3802 * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
3803 (x86_linux_create_target): Install it as to_always_non_stop_p
3804 method.
3805
3806 2015-08-17 Doug Evans <dje@google.com>
3807
3808 * ui-out.c (default_ui_out_impl): Add comment.
3809
3810 2015-08-17 Iain Buclaw <ibuclaw@gdcproject.org>
3811
3812 * d-exp.y (type_aggregate_p): New function.
3813 (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
3814 (classify_inner_name): Likewise.
3815 * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
3816
3817 2015-08-15 Doug Evans <xdje42@gmail.com>
3818
3819 * psymtab.c (add_psymbol_to_bcache): Remove "val" arg. All callers
3820 updated.
3821 (add_psymbol_to_list): Ditto.
3822
3823 2015-08-15 Doug Evans <xdje42@gmail.com>
3824
3825 * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab. All callers
3826 updated. Call end_psymtab_common.
3827 * dwarf2read.c (process_psymtab_comp_unit_reader): Call
3828 end_psymtab_common.
3829 (build_type_psymtabs_reader): Ditto.
3830 * psympriv.h (sort_pst_symbols): Delete.
3831 (end_psymtab_common): Declare.
3832 * psymtab.c (sort_pst_symbols): Make static.
3833 (end_psymtab_common): New function.
3834 * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
3835
3836 2015-08-15 Doug Evans <xdje42@gmail.com>
3837
3838 * defs.h (LANGUAGE_BITS): Define.
3839 * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
3840 (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
3841 * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
3842 (minimal_symbol_type): Add nr_minsym_types.
3843 (MINSYM_TYPE_BITS): Define.
3844 (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
3845 (domain_enum_tag): Add NR_DOMAINS.
3846 (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
3847 (SYMBOL_ACLASS_BITS): Define from 6 to 5.
3848
3849 2015-08-15 Doug Evans <xdje42@gmail.com>
3850
3851 * objfiles.h: Whitespace cleanup.
3852 * psympriv.h: Whitespace cleanup.
3853 * psymtab.c: Whitespace/coding convention cleanup.
3854
3855 2015-08-15 Patrick Palka <patrick@parcs.ath.cx>
3856
3857 * inferior.c (detach_inferior_command): Don't call
3858 any_thread_of_process when pid is 0.
3859 (kill_inferior_command): Likewise.
3860
3861 2015-08-14 Doug Evans <xdje42@gmail.com>
3862
3863 PR gdb/11833
3864 * NEWS: Document new /s modifier for the disassemble command.
3865 * cli/cli-cmds.c (disassemble_command): Add support for /s.
3866 (_initialize_cli_cmds): Update online docs of disassemble command.
3867 * disasm.c: #include "source.h".
3868 (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
3869 All uses updated.
3870 (dis_line_entry): New struct.
3871 (hash_dis_line_entry, eq_dis_line_entry): New functions.
3872 (allocate_dis_line_table): New functions.
3873 (maybe_add_dis_line_entry, line_has_code_p): New functions.
3874 (dump_insns): New arg end_pc. All callers updated.
3875 (do_mixed_source_and_assembly_deprecated): Renamed from
3876 do_mixed_source_and_assembly. All callers updated.
3877 (do_mixed_source_and_assembly): New function.
3878 (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
3879 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
3880 DISASSEMBLY_SOURCE. All uses updated.
3881 (DISASSEMBLY_SOURCE): New macro.
3882 * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
3883
3884 2015-08-14 Keith Seitz <keiths@redhat.com>
3885
3886 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
3887 `typename' to `type_name' to avoid C++ reserved word.
3888
3889 2015-08-14 Keith Seitz <keiths@redhat.com>
3890
3891 * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
3892 (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
3893 silence ARI errors.
3894
3895 2015-08-14 Iain Buclaw <ibuclaw@gdcproject.org>
3896
3897 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
3898 xstrprintf instead of malloc and sprintf.
3899 (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
3900 (lex_one_token): Likewise.
3901
3902 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
3903
3904 * solib-svr4.c (read_program_header): Add base_addr argument to
3905 report the runtime address of the segment.
3906 (find_program_interpreter): Update read_program_header call to pass
3907 a NULL pointer for the new argument.
3908 (scan_dyntag): Add ptr_addr argument to report the runtime address
3909 of the tag payload.
3910 (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
3911 read_program_header to get the base address of the dynamic segment.
3912 (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
3913 read_program_header.
3914 (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
3915
3916 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
3917
3918 * MAINTAINERS (Write After Approval): Add Matthew Fortune.
3919
3920 2015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
3921
3922 * d-exp.y (%union): Add voidval.
3923 (%token): Add UNKNOWN_NAME as a token to represent an unclassified
3924 name in the lexing stage.
3925 (PostfixExpression): Move symbol completion handling in grammar here
3926 from PrimaryExpression.
3927 (PrimaryExpression): Move routines to handle resolving identifier
3928 tokens in the grammar here from push_expression_name.
3929 (IdentifierExp): Remove the handling of alternating '.' and identifier
3930 tokens.
3931 (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
3932 (BasicType): Remove C-style typename rules.
3933 (d_type_from_name, d_module_from_name, push_variable)
3934 (push_fieldnames, push_type_name, push_module_name)
3935 (push_expression_name): Remove.
3936 (lex_one_token): Rename from yylex. Replace pstate with par_state.
3937 (token_and_value): New type.
3938 (token_fifo, popping, name_obstack): New globals.
3939 (classify_name): New function.
3940 (classify_inner_name): Likewise.
3941 (yylex): Likewise.
3942 (d_parse): Initialize token_fifo, popping and name_obstack.
3943
3944 2015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
3945
3946 * Makefile.in (SFILES): Add d-namespace.c.
3947 (COMMON_OBS): Add d-namespace.o.
3948 * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
3949 la_lookup_symbol_nonlocal callback function pointer.
3950 * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
3951 (d_lookup_nested_symbol): New declaration.
3952 * d-namespace.c: New file.
3953
3954 2015-08-13 Pedro Alves <palves@redhat.com>
3955
3956 * python/py-unwind.c (pyuw_sniffer): Install the invalidate
3957 cleanup after the decref cleanup, not before.
3958
3959 2015-08-13 Pierre-Marie de Rodat <derodat@adacore.com>
3960
3961 * ada-lang.c: Include namespace.h
3962 (aux_add_nonlocal_symbols): Fix a function name in comment.
3963 (ada_add_block_renamings): New.
3964 (add_nonlocal_symbols): Add global renamings handling.
3965 (ada_lookup_symbol_list_worker): Move the symbol lookup part
3966 to...
3967 (ada_add_all_symbols): ... this new function.
3968 (ada_add_block_symbols): Try to match the input name against the
3969 "using directives list", perform a recursive symbol lookup on
3970 the matched declarations.
3971 * block.h (struct block): Move the_namespace to top-level as
3972 namespace_info. Remove the language_specific field.
3973 (BLOCK_NAMESPACE): Update access to the namespace_info field.
3974 * buildsym.h (using_directives): Rename into...
3975 (local_using_directives): ... this.
3976 (global_using_directives): New.
3977 (struct context_stack): Rename the using_directives field into
3978 local_using_directives.
3979 * buildsym.c (finish_block_internal): Deal with the proper
3980 using directives repository (local or global).
3981 (prepare_for_building): Reset local_using_directives. Assert
3982 that there is no pending global using directive.
3983 (reset_symtab_globals): Reset global_using_directives and
3984 local_using_directives.
3985 (end_symtab_get_static_block): Don't ignore symtabs that have
3986 only using directives.
3987 (push_context): Update references to local_using_directives.
3988 (buildsym_init): Do not reset using_directives.
3989 * cp-support.c: Include namespace.h.
3990 * cp-support.h (struct using_direct): Move to namespace.h.
3991 (cp_add_using_directives): Move to namespace.h.
3992 * cp-namespace.c: Include namespace.h
3993 (cp_add_using_directive): Move to namespace.c, rename it to
3994 add_using_directive, add a "using_directives" argument and use
3995 it as the pending using directives repository. All callers
3996 updated.
3997 * dwarf2read.c (using_directives): New.
3998 (read_import_statement): Call using_directives.
3999 (read_func_scope): Update references to local_using_directives.
4000 (read_lexical_block_scope): Likewise.
4001 (read_namespace): Update the heading comment, call
4002 using_directives.
4003 * namespace.h: New file.
4004 * namespace.c: New file.
4005 * Makefile.in (SFILES): Add namespace.c.
4006 (COMMON_OBS): Add namespace.o
4007
4008 2015-08-12 Joel Brobecker <brobecker@adacore.com>
4009
4010 * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
4011 compute RETADDR.
4012
4013 2015-08-12 Keith Seitz <keiths@redhat.com>
4014
4015 * break-catch-throw.c (re_set_exception_catchpoint) Rename
4016 reserved C++ keyword "explicit" to "explicit_loc".
4017 * breakpoint.c (create_overlay_event_breakpoint)
4018 (create_longjmp_master_breakpoint)
4019 (create_std_terminate_master_breakpoint)
4020 (create_exception_master_breakpoint, update_static_tracepoint):
4021 Rename reserved C++ keyword "explicit" to "explicit_loc".
4022 * completer.c (collect_explicit_location_matches)
4023 (explicit_location_completer): Rename reserved C++ keyword
4024 "explicit" to "explicit_loc".
4025 * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
4026 (canonicalize_linespec, create_sals_line_offset)
4027 (convert_linespec_to_sals, convert_explicit_location_to_sals)
4028 (event_location_to_sals, decode_objc): Rename reserved C++ keyword
4029 "explicit" to "explicit_loc".
4030 * location.c (struct event_location) <explicit>: Rename to
4031 "explicit_loc".
4032 (initialize_explicit_location, new_explicit_location)
4033 (explicit_location_to_string_internal, explicit_location_to_linespec):
4034 Rename reserved C++ keyword "explicit" to "explicit_loc".
4035 * location.h (explicit_location_to_string)
4036 (explicit_location_to_linespec, initialize_explicit_location)
4037 (new_explicit_location): Rename reserved C++ keyword "explicit"
4038 to "explicit_loc".
4039 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
4040 keyword "explicit" to "explicit_loc".
4041
4042 2015-08-12 Keith Seitz <keiths@redhat.com>
4043
4044 * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
4045 and only call decode_line_1 when it is non-NULL.
4046
4047 2015-08-12 Luis Machado <lgustavo@codesourcery.com>
4048
4049 * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
4050 location address is not meaningful.
4051 (breakpoint_address_is_meaningful): Update comment.
4052
4053 2015-08-11 Keith Seitz <keiths@redhat.com>
4054
4055 * NEWS: Mention explicit locations.
4056 * breakpoint.c [LOCATION_HELP_STRING]: New macro.
4057 [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
4058 (_initialize_breakpoint): Update documentation for
4059 "clear", "break", "trace", "strace", "ftrace", and "dprintf".
4060
4061 2015-08-11 Keith Seitz <keiths@redhat.com>
4062
4063 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
4064 explicit locations, options "--source", "--function",
4065 "--label", and "--line".
4066
4067 2015-08-11 Keith Seitz <keiths@redhat.com>
4068
4069 * completer.c: Include location.h.
4070 (enum match_type): New enum.
4071 (location_completer): Rename to ...
4072 (linespec_completer): ... this.
4073 (collect_explicit_location_matches, backup_text_ptr)
4074 (explicit_location_completer): New functions.
4075 (location_completer): "New" function; handle linespec
4076 and explicit location completions.
4077 (complete_line_internal): Remove all location completer-specific
4078 handling.
4079 * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
4080 (find_toplevel_char): Export.
4081 (linespec_parse_line_offset): Export.
4082 Issue error if STRING is not numerical.
4083 (gdb_get_linespec_parser_quote_characters): New function.
4084 * linespec.h (linespec_parse_line_offset): Declare.
4085 (get_gdb_linespec_parser_quote_characters): Declare.
4086 (is_ada_operator): Declare.
4087 (find_toplevel_char): Declare.
4088 (linespec_lexer_lex_keyword): Declare.
4089 * location.c (explicit_to_event_location): New function.
4090 (explicit_location_lex_one): New function.
4091 (string_to_explicit_location): New function.
4092 (string_to_event_location): Handle explicit locations.
4093 * location.h (explicit_to_event_location): Declare.
4094 (string_to_explicit_location): Declare.
4095
4096 2015-08-11 Keith Seitz <keiths@redhat.com>
4097
4098 * break-catch-throw.c (re_set_exception_catchpoint): Convert
4099 linespec into explicit location.
4100 * breakpoint.c (create_overlay_breakpoint)
4101 (create_longjmp_master_breakpoint)
4102 (create_std_terminate_master_breakpoint)
4103 (create_exception_master_breakpoint): Convert linespec into explicit
4104 location.
4105 (update_static_tracepoint): Convert linespec into explicit location.
4106 * linespec.c (enum offset_relative_sign, struct line_offset): Move
4107 location.h.
4108 (struct linespec) <expression, expr_pc, source_filename>
4109 <function_name, label_name, line_offset>: Replace with ...
4110 <explicit>: ... this.
4111 <is_linespec>: New member.
4112 (PARSER_EXPLICIT): New accessor macro.
4113 (undefined_label_error): New function.
4114 (source_file_not_found_error): New function.
4115 (linespec_parse_basic): The parser result is now an explicit location.
4116 Use PARSER_EXPLICIT to access it.
4117 Use undefined_label_error.
4118 (canonicalize_linespec): Convert canonical linespec into explicit
4119 location.
4120 Move string representation of location to explicit_location_to_linespec
4121 and use it and explicit_location_to_string to save string
4122 representations of the canonical location.
4123 (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
4124 explicit location. Update all references.
4125 (convert_explicit_location_to_sals): New function.
4126 (parse_linespec): Use PARSER_EXPLICIT to access the parser
4127 result's explicit location.
4128 (linespec_state_constructor): Initialize is_linespec.
4129 Use PARSER_EXPLICIT.
4130 (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
4131 result.
4132 (event_location_to_sals): For linespec locations, set is_linespec.
4133 Handle explicit locations.
4134 (decode_objc): 'ls' contains an explicit location now. Update all
4135 references.
4136 (symtabs_from_filename): Use source_file_not_found_error.
4137 * location.c (struct event_location.u) <explicit>: New member.
4138 (initialize_explicit_location): New function.
4139 (initialize_event_location): Initialize explicit locations.
4140 (new_explicit_location, get_explicit_location)
4141 (get_explicit_location_const): New functions.
4142 (explicit_to_string_internal): New function; most of contents moved
4143 from canonicalize_linespec.
4144 (explicit_location_to_string): New function.
4145 (explicit_location_to_linespec): New function.
4146 (copy_event_location, delete_event_location)
4147 (event_location_to_string_const, event_location_empty_p): Handle
4148 explicit locations.
4149 * location.h (enum offset_relative_sign, struct line_offset): Move
4150 here from linespec.h.
4151 (enum event_location_type): Add EXPLICIT_LOCATION.
4152 (struct explicit_location): New structure.
4153 (explicit_location_to_string): Declare.
4154 (explicit_location_to_linespec): Declare.
4155 (new_explicit_location, get_explicit_locationp
4156 (get_explicit_location_const, initialize_explicit_location): Declare.
4157
4158 2015-08-11 Keith Seitz <keiths@redhat.com>
4159
4160 * break-catch-throw.c (re_set_exception_catchpoint): Convert
4161 linespec for stap probe to probe location.
4162 * breakpoint.c (create_longjmp_master_breakpoint)
4163 (create_exception_master_breakpoint): Likewise.
4164 (break_command_1): Remove local variable `arg_cp'.
4165 Check location type to set appropriate breakpoint ops methods.
4166 (trace_command): Likewise.
4167 * linespec.c (event_location_to_sals): Assert on probe locations.
4168 * location.c (EL_PROBE): Add macro definition.
4169 (new_probe_location, get_probe_location): New functions.
4170 (copy_event_location, delete_event_location, event_location_to_string)
4171 (string_to_event_location, event_location_empty_p): Handle probe
4172 locations.
4173 * location.h (enum event_location_type): Add PROBE_LOCATION.
4174 (new_probe_location, get_probe_location): Declare.
4175 * probe.c (parse_probes): Assert that LOCATION is a probe location.
4176 Convert linespec into probe location.
4177
4178 2015-08-11 Keith Seitz <keiths@redhat.com>
4179
4180 * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
4181 Convert linespec to address location.
4182 * linespec.c (canonicalize_linespec): Do not handle address
4183 locations here.
4184 (convert_address_location_to_sals): New function; contents moved
4185 from ...
4186 (convert_linespc_to_sals): ... here.
4187 (parse_linespec): Remove address locations from linespec grammar.
4188 Remove handling of address locations.
4189 (linespec_lex_to_end): Remove handling of address linespecs.
4190 (event_location_to_sals): Handle ADDRESS_LOCATION.
4191 (linespec_expression_to_pc): Export.
4192 * linespec.h (linespec_expression_to_pc): Add declaration.
4193 * location.c (struct event_location.u) <address>: New member.
4194 (new_address_location, get_address_location): New functions.
4195 (copy_event_location, delete_event_location, event_location_to_string)
4196 (string_to_event_location, event_location_empty_p): Handle address
4197 locations.
4198 * location.h (enum event_location_type): Add ADDRESS_LOCATION.
4199 (new_address_location, get_address_location): Declare.
4200 * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
4201 to address location.
4202 * spu-tdep.c (spu_catch_start): Likewise.
4203
4204 2015-08-11 Keith Seitz <keiths@redhat.com>
4205
4206 * ax-gdb.c: Include location.h.
4207 (agent_command_1) Use linespec location instead of address
4208 string.
4209 * break-catch-throw.c: Include location.h.
4210 (re_set_exception_catchpoint): Use linespec locations instead
4211 of address strings.
4212 * breakpoint.c: Include location.h.
4213 (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
4214 (create_std_terminate_master_breakpoint)
4215 (create_exception_master_breakpoint, update_breakpoints_after_exec):
4216 Use linespec location instead of address string.
4217 (print_breakpoint_location): Use locations and
4218 event_location_to_string.
4219 Print extra_string for pending locations for non-MI streams.
4220 (print_one_breakpoint_location): Use locations and
4221 event_location_to_string.
4222 (init_raw_breakpoint_without_location): Initialize b->location.
4223 (create_thread_event_breakpoint): Use linespec location instead of
4224 address string.
4225 (init_breakpoint_sal): Likewise.
4226 Only save extra_string if it is non-NULL and not the empty string.
4227 Use event_location_to_string instead of `addr_string'.
4228 Constify `p' and `endp'.
4229 Use skip_spaces_const/skip_space_const instead of non-const versions.
4230 Copy the location into the breakpoint.
4231 If LOCATION is NULL, save the breakpoint address as a linespec location
4232 instead of an address string.
4233 (create_breakpoint_sal): Change `addr_string' parameter to a struct
4234 event_location. All uses updated.
4235 (create_breakpoints_sal): Likewise for local variable `addr_string'.
4236 (parse_breakpoint_sals): Use locations instead of address strings.
4237 Remove check for empty linespec with conditional.
4238 Refactor.
4239 (decode_static_tracepoint_spec): Make argument const and update
4240 function.
4241 (create_breakpoint): Change `arg' to a struct event_location and
4242 rename.
4243 Remove `copy_arg' and `addr_start'.
4244 If EXTRA_STRING is empty, set it to NULL.
4245 Don't populate `canonical' for pending breakpoints.
4246 Pass `extra_string' to find_condition_and_thread.
4247 Clear `extra_string' if `rest' was NULL.
4248 Do not error with "garbage after location" if setting a dprintf
4249 breakpoint.
4250 Copy the location into the breakpoint instead of an address string.
4251 (break_command_1): Use string_to_event_location and pass this to
4252 create_breakpoint instead of an address string.
4253 Check against `arg_cp' for a probe linespec.
4254 (dprintf_command): Use string_to_event_location and pass this to
4255 create_breakpoint instead of an address string.
4256 Throw an exception if no format string was specified.
4257 (print_recreate_ranged_breakpoint): Use event_location_to_string
4258 instead of address strings.
4259 (break_range_command, until_break_command)
4260 (init_ada_exception_breakpoint): Use locations instead
4261 of address strings.
4262 (say_where): Print out extra_string for pending locations.
4263 (base_breakpoint_dtor): Delete `location' and `location_range_end' of
4264 the breakpoint.
4265 (base_breakpoint_create_sals_from_location): Use struct event_location
4266 instead of address string.
4267 Remove `addr_start' and `copy_arg' parameters.
4268 (base_breakpoint_decode_location): Use struct event_location instead of
4269 address string.
4270 (bkpt_re_set): Use locations instead of address strings.
4271 Use event_location_empty_p to check for unset location.
4272 (bkpt_print_recreate): Use event_location_to_string instead of
4273 an address string.
4274 Print out extra_string for pending locations.
4275 (bkpt_create_sals_from_location, bkpt_decode_location)
4276 (bkpt_probe_create_sals_from_location): Use struct event_location
4277 instead of address string.
4278 (bkpt_probe_decode_location): Use struct event_location instead of
4279 address string.
4280 (tracepoint_print_recreate): Use event_location_to_string to
4281 recreate the tracepoint.
4282 (tracepoint_create_sals_from_location, tracepoint_decode_location)
4283 (tracepoint_probe_create_sals_from_location)
4284 (tracepoint_probe_decode_location): Use struct event_location
4285 instead of address string.
4286 (dprintf_print_recreate): Use event_location_to_string to recreate
4287 the dprintf.
4288 (dprintf_re_set): Remove check for valid/missing format string.
4289 (strace_marker_create_sals_from_location)
4290 (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
4291 (update_static_tracepoint): Use struct event_location instead of
4292 address string.
4293 (location_to_sals): Likewise.
4294 Pass `extra_string' to find_condition_and_thread.
4295 For newly resolved pending breakpoint locations, clear the location's
4296 string representation.
4297 Assert that the breakpoint's condition string is NULL when
4298 condition_not_parsed.
4299 (breakpoint_re_set_default, create_sals_from_location_default)
4300 (decode_location_default, trace_command, ftrace_command)
4301 (strace_command, create_tracepoint_from_upload): Use locations
4302 instead of address strings.
4303 * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
4304 Use struct event_location instead of address string.
4305 Update all uses.
4306 <decode_location>: Likewise.
4307 (struct breakpoint) <addr_string>: Change to struct event_location
4308 and rename `location'.
4309 <addr_string_range_end>: Change to struct event_location and rename
4310 `location_range_end'.
4311 (create_breakpoint): Use struct event_location instead of address
4312 string.
4313 * cli/cli-cmds.c: Include location.h.
4314 (edit_command, list_command): Use locations instead of address strings.
4315 * elfread.c: Include location.h.
4316 (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
4317 * guile/scm-breakpoint.c: Include location.h.
4318 (bpscm_print_breakpoint_smob): Use event_location_to_string.
4319 (gdbscm_register_breakpoint): Use locations instead of address
4320 strings.
4321 * linespec.c: Include location.h.
4322 (struct ls_parser) <stream>: Change to const char *.
4323 (PARSER_STREAM): Update.
4324 (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
4325 keywords must be followed by whitespace.
4326 (canonicalize_linespec): Save a linespec location into `canonical'.
4327 Save a canonical linespec into `canonical'.
4328 (parse_linespec): Change `argptr' to const char * and rename `arg'.
4329 All uses updated.
4330 Update function description.
4331 (linespec_parser_new): Initialize `parser'.
4332 Update initialization of parsing stream.
4333 (event_location_to_sals): New function.
4334 (decode_line_full): Change `argptr' to a struct event_location and
4335 rename it `location'.
4336 Use locations instead of address strings.
4337 Call event_location_to_sals instead of parse_linespec.
4338 (decode_line_1): Likewise.
4339 (decode_line_with_current_source, decode_line_with_last_displayed)
4340 Use locations instead of address strings.
4341 (decode_objc): Likewise.
4342 Change `argptr' to const char * and rename `arg'.
4343 (destroy_linespec_result): Delete the linespec result's location
4344 instead of freeing the address string.
4345 * linespec.h (struct linespec_result) <addr_string>: Change to
4346 struct event_location and rename to ...
4347 <location>: ... this.
4348 (decode_line_1, decode_line_full): Change `argptr' to struct
4349 event_location. All callers updated.
4350 * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
4351 (mi_cmd_break_insert_1): Use locations instead of address strings.
4352 Throw an error if there was "garbage" at the end of the specified
4353 linespec.
4354 * probe.c: Include location.h.
4355 (parse_probes): Change `argptr' to struct event_location.
4356 Use event locations instead of address strings.
4357 * probe.h (parse_probes): Change `argptr' to struct event_location.
4358 * python/py-breakpoint.c: Include location.h.
4359 (bppy_get_location): Constify local variable `str'.
4360 Use event_location_to_string.
4361 (bppy_init): Use locations instead of address strings.
4362 * python/py-finishbreakpoint.c: Include location.h.
4363 (bpfinishpy_init): Remove local variable `addr_str'.
4364 Use locations instead of address strings.
4365 * python/python.c: Include location.h.
4366 (gdbpy_decode_line): Use locations instead of address strings.
4367 * remote.c: Include location.h.
4368 (remote_download_tracepoint): Use locations instead of address
4369 strings.
4370 * spu-tdep.c: Include location.h.
4371 (spu_catch_start): Remove local variable `buf'.
4372 Use locations instead of address strings.
4373 * tracepoint.c: Include location.h.
4374 (scope_info): Use locations instead of address strings.
4375 (encode_source_string): Constify parameter `src'.
4376 * tracepoint.h (encode_source_string): Likewise.
4377
4378 2015-08-11 Keith Seitz <keiths@redhat.com>
4379
4380 * Makefile.in (SFILES): Add location.c.
4381 (HFILES_NO_SRCDIR): Add location.h.
4382 (COMMON_OBS): Add location.o.
4383 * linespec.c (linespec_lex_to_end): New function.
4384 * linespec.h (linespec_lex_to_end): Declare.
4385 * location.c: New file.
4386 * location.h: New file.
4387
4388 2015-08-11 Keith Seitz <keiths@redhat.com>
4389
4390 * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
4391 Renamed to create_sals_from_location.
4392 <decode_linespec>: Renamed to decode_location.
4393 Update all callers.
4394 * breakpoint.c (create_sals_from_address_default): Renamed to ...
4395 (create_sals_from_location_default): ... this.
4396 (addr_string_to_sals): Renamed to ...
4397 (location_to_sals): ... this.
4398 (decode_linespec_default): Renamed to ...
4399 (decode_location_default): ... this.
4400 (base_breakpoint_create_sals_from_address): Renamed to ...
4401 (base_breakpoint_create_sals_from_location): ... this.
4402 (bkpt_create_sals_from_address): Renamed to ...
4403 (bkpt_create_sals_from_location): ... this.
4404 (bkpt_decode_linespec): Renamed to ...
4405 (bkpt_decode_location): ... this.
4406 (bkpt_probe_create_sals_from_address): Renamed to ...
4407 (bkpt_probe_create_sals_from_location): ... this.
4408 (tracepoint_create_sals_from_address): Renamed to ...
4409 (tracepoint_create_sals_from_location): ... this.
4410 (tracepoint_decode_linespec): Renamed to ...
4411 (tracepoint_decode_location): ... this.
4412 (tracepoint_probe_create_sals_from_address): Renamed to ...
4413 (tracepoint_probe_create_sals_from_location): ... this.
4414 (tracepoint_probe_decode_linespec): Renamed to ...
4415 (tracepoint_probe_decode_location): ... this.
4416 (strace_marker_create_sals_from_address): Renamed to ...
4417 (strace_marker_create_sals_from_location): ... this.
4418 (decode_linespec_default): Renamed to ...
4419 (decode_location_default): ... this.
4420
4421 2015-08-10 Doug Evans <dje@google.com>
4422 Keith Seitz <keiths@redhat.com>
4423
4424 PR gdb/17960
4425 * symtab.c (make_file_symbol_completion_list_1): Renamed from
4426 make_file_symbol_completion_list and made static.
4427 (make_file_symbol_completion_list): New function.
4428
4429 2015-08-10 Joel Brobecker <brobecker@adacore.com>
4430
4431 * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
4432 trailing new-line at end of warning message.
4433 (proceed): Add i18n marker to error messages.
4434
4435 2015-08-07 Pedro Alves <palves@redhat.com>
4436
4437 * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
4438
4439 2015-08-07 Pedro Alves <palves@redhat.com>
4440
4441 * s390-linux-tdep.c (is_non_branch_ril)
4442 (s390_displaced_step_copy_insn): New functions.
4443 (s390_displaced_step_fixup): Update comment.
4444 (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
4445 gdbarch_displaced_step_copy_insn hook.
4446
4447 2015-08-07 Pedro Alves <palves@redhat.com>
4448
4449 * infrun.c (displaced_step_prepare_throw): Return -1 if
4450 gdbarch_displaced_step_copy_insn returns NULL. Update intro
4451 comment.
4452 * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
4453 (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
4454 in file.
4455 (ppc_displaced_step_copy_insn): New function.
4456 (ppc_displaced_step_fixup): Update comment.
4457 (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
4458 gdbarch_displaced_step_copy_insn hook.
4459 * gdbarch.sh (displaced_step_copy_insn): Document what happens on
4460 NULL return.
4461 * gdbarch.h: Regenerate.
4462
4463 2015-08-07 Pedro Alves <palves@redhat.com>
4464
4465 * inferior.h (struct inferior) <displaced_stepping_failed>: New
4466 field.
4467 * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
4468 Return false if dispaced stepping failed before.
4469 (resume): Pass the current inferior to
4470 use_displaced_stepping_now_p. Wrap displaced_step_prepare in
4471 TRY/CATCH. If we get a MEMORY_ERROR, set the inferior's
4472 displaced_stepping_failed flag, and fall back to an in-line
4473 step-over.
4474
4475 2015-08-07 Pedro Alves <palves@redhat.com>
4476
4477 * darwin-nat.c (darwin_stop): Rename to ...
4478 (darwin_interrupt): ... this.
4479 (_initialize_darwin_inferior): Adjust.
4480 * gnu-nat.c (gnu_stop): Delete.
4481 (gnu_target): Don't install gnu_stop.
4482 * inf-ptrace.c (inf_ptrace_stop): Rename to ...
4483 (inf_ptrace_interrupt): ... this.
4484 (inf_ptrace_target): Adjust.
4485 * infcmd.c (interrupt_target_1): Use target_interrupt instead of
4486 target_stop.
4487 * linux-nat (linux_nat_stop): Rename to ...
4488 (linux_nat_interrupt): ... this.
4489 (linux_nat_stop): Reimplement.
4490 (linux_nat_add_target): Install linux_nat_interrupt.
4491 * nto-procfs.c (nto_interrupt_twice): Rename to ...
4492 (nto_handle_sigint_twice): ... this.
4493 (nto_interrupt): Rename to ...
4494 (nto_handle_sigint): ... this. Call target_interrupt instead of
4495 target_stop.
4496 (procfs_wait): Adjust.
4497 (procfs_stop): Rename to ...
4498 (procfs_interrupt): ... this.
4499 (init_procfs_targets): Adjust.
4500 * procfs.c (procfs_stop): Rename to ...
4501 (procfs_interrupt): ... this.
4502 (procfs_target): Adjust.
4503 * remote-m32r-sdi.c (m32r_stop): Rename to ...
4504 (m32r_interrupt): ... this.
4505 (init_m32r_ops): Adjust.
4506 * remote-sim.c (gdbsim_stop_inferior): Rename to ...
4507 (gdbsim_interrupt_inferior): ... this.
4508 (gdbsim_stop): Rename to ...
4509 (gdbsim_interrupt): ... this.
4510 (gdbsim_cntrl_c): Adjust.
4511 (init_gdbsim_ops): Adjust.
4512 * remote.c (sync_remote_interrupt): Adjust comments.
4513 (remote_stop_as): Rename to ...
4514 (remote_interrupt_as): ... this.
4515 (remote_stop): Adjust comment.
4516 (remote_interrupt): New function.
4517 (init_remote_ops): Install remote_interrupt.
4518 * target.c (target_interrupt): New function.
4519 * target.h (struct target_ops) <to_interrupt>: New field.
4520 (target_interrupt): New declaration.
4521 * windows-nat.c (windows_stop): Rename to ...
4522 (windows_interrupt): ... this.
4523 * target-delegates.c: Regenerate.
4524
4525 2015-08-07 Pedro Alves <palves@redhat.com>
4526
4527 * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
4528 threads" as alternative to "switching back to stepped thread".
4529
4530 2015-08-07 Pedro Alves <palves@redhat.com>
4531
4532 * NEWS: Mention "maint set/show target-non-stop".
4533 * breakpoint.c (update_global_location_list): Check
4534 target_is_non_stop_p instead of non_stop.
4535 * infcmd.c (attach_command_post_wait, attach_command): Likewise.
4536 * infrun.c (show_can_use_displaced_stepping)
4537 (can_use_displaced_stepping_p, start_step_over_inferior):
4538 Likewise.
4539 (internal_resume_ptid): New function.
4540 (resume): Use it.
4541 (proceed): Check target_is_non_stop_p instead of non_stop. If in
4542 all-stop mode but the target is always in non-stop mode, start all
4543 the other threads that are implicitly resumed too.
4544 (for_each_just_stopped_thread, fetch_inferior_event)
4545 (adjust_pc_after_break, stop_all_threads): Check
4546 target_is_non_stop_p instead of non_stop.
4547 (handle_inferior_event): Likewise. Handle detach-fork in all-stop
4548 with the target always in non-stop mode.
4549 (handle_signal_stop) <random signal>: Check target_is_non_stop_p
4550 instead of non_stop.
4551 (switch_back_to_stepped_thread): Check target_is_non_stop_p
4552 instead of non_stop.
4553 (keep_going_stepped_thread): Use internal_resume_ptid.
4554 (stop_waiting): If in all-stop mode, and the target is in non-stop
4555 mode, stop all threads.
4556 (keep_going_pass): Likewise, when starting a new in-line step-over
4557 sequence.
4558 * linux-nat.c (get_pending_status, select_event_lwp)
4559 (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
4560 target_is_non_stop_p instead of non_stop.
4561 (linux_nat_always_non_stop_p): New function.
4562 (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
4563 (linux_nat_add_target): Install linux_nat_always_non_stop_p.
4564 * target-delegates.c: Regenerate.
4565 * target.c (target_is_non_stop_p): New function.
4566 (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
4567 (maint_set_target_non_stop_command)
4568 (maint_show_target_non_stop_command): New functions.
4569 (_initilize_target): Install "maint set/show target-non-stop"
4570 commands.
4571 * target.h (struct target_ops) <to_always_non_stop_p>: New field.
4572 (target_non_stop_enabled): New declaration.
4573 (target_is_non_stop_p): New declaration.
4574
4575 2015-08-07 Pedro Alves <pedro@codesourcery.com>
4576
4577 * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
4578 has a pending status, return true.
4579 * gdbthread.h: Include target/waitstatus.h.
4580 (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
4581 stop_pc>: New fields.
4582 (struct thread_info) <resumed>: New field.
4583 (set_resumed): Declare.
4584 * infrun.c: Include "event-loop.h".
4585 (infrun_async_inferior_event_token, infrun_is_async): New globals.
4586 (infrun_async): New function.
4587 (clear_step_over_info): Add debug output.
4588 (displaced_step_in_progress_any_inferior): New function.
4589 (displaced_step_fixup): New returns int.
4590 (start_step_over): Handle in-line step-overs too. Assert the
4591 thread is marked resumed.
4592 (resume_cleanups): Clear the thread's resumed flag.
4593 (resume): Set the thread's resumed flag. Return early if the
4594 thread has a pending status. Allow stepping a breakpoint with no
4595 signal.
4596 (proceed): Adjust to check 'resumed' instead of 'executing'.
4597 (clear_proceed_status_thread): If the thread has a pending status,
4598 and that status is a finished step, discard the pending status.
4599 (clear_proceed_status): Don't clear step_over_info here.
4600 (random_pending_event_thread, do_target_wait): New functions.
4601 (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
4602 do_target_wait.
4603 (wait_one): New function.
4604 (THREAD_STOPPED_BY): New macro.
4605 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4606 (thread_stopped_by_hw_breakpoint): New functions.
4607 (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
4608 functions.
4609 (handle_inferior_event): Also call set_resumed(false) on all
4610 threads implicitly stopped by the event.
4611 (restart_threads, resumed_thread_with_pending_status): New
4612 functions.
4613 (finish_step_over): If we were doing an in-line step-over before,
4614 and no longer are after trying to start a new step-over, restart
4615 all threads. If we have multiple threads with pending events,
4616 save the current event and go through the event loop again.
4617 (handle_signal_stop): Return early if finish_step_over returns
4618 false.
4619 <random signal>: If we get a signal while stepping over a
4620 breakpoint in-line in non-stop mode, restart all threads. Clear
4621 step_over_info before delivering the signal.
4622 (keep_going_stepped_thread): Use internal_error instead of
4623 gdb_assert. Mark the thread as resumed.
4624 (keep_going_pass_signal): Assert the thread isn't already resumed.
4625 If some other thread is doing an in-line step-over, defer the
4626 resume. If we just started a new in-line step-over, stop all
4627 threads. Don't clear step_over_info.
4628 (infrun_async_inferior_event_handler): New function.
4629 (_initialize_infrun): Create async event handler with
4630 infrun_async_inferior_event_handler as callback.
4631 (infrun_async): New declaration.
4632 * target.c (target_async): New function.
4633 * target.h (target_async): Declare macro and readd as function
4634 declaration.
4635 * target/waitstatus.h (enum target_stop_reason)
4636 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
4637 * thread.c (new_thread): Clear the new waitstatus field.
4638 (set_resumed): New function.
4639
4640 2015-08-07 Pedro Alves <palves@redhat.com>
4641
4642 * infrun.c (keep_going_stepped_thread): New function, factored out
4643 from ...
4644 (switch_back_to_stepped_thread): ... here.
4645
4646 2015-08-07 Pedro Alves <palves@redhat.com>
4647
4648 * infrun.c (currently_stepping): Extend intro comment.
4649 * target.h (target_resume): Extend intro comment.
4650
4651 2015-08-07 Pedro Alves <palves@redhat.com>
4652
4653 * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
4654 of inferior_ptid. If the stepped thread vanished, return 0
4655 instead of resuming here. Use reset_ecs. Print the prev_pc and
4656 the current stop_pc in log message. Clear trap_expected if the
4657 thread advanced. Don't pass currently_stepping to
4658 do_target_resume.
4659
4660 2015-08-07 Pedro Alves <palves@redhat.com>
4661
4662 * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
4663 * infrun.c (struct execution_control_state): Move higher up in the
4664 file.
4665 (reset_ecs): New function.
4666 (start_step_over): Now returns int. Rewrite to use
4667 keep_going_pass_signal instead of manually starting a displaced step.
4668 (resume): Don't call set_running here. If displaced stepping
4669 can't start now, clear trap_expected.
4670 (find_thread_needs_step_over): Delete function.
4671 (proceed): Set up finish_thread_state_cleanup. Call set_running.
4672 If the current thread needs a step over, push it in the step-over
4673 chain. Don't set insert breakpoints nor call resume directly
4674 here. Instead rewrite to use start_step_over and
4675 keep_going_pass_signal.
4676 (finish_step_over): New function.
4677 (handle_signal_stop): Call finish_step_over instead of
4678 start_step_over.
4679 (switch_back_to_stepped_thread): If the event thread needs another
4680 step-over do that first. Use start_step_over.
4681 (keep_going_pass_signal): New function, factored out from ...
4682 (keep_going): ... here.
4683 (_initialize_infrun): Comment moved here.
4684 * thread.c (set_running_thread): New function.
4685 (set_running, finish_thread_state): Use set_running_thread.
4686
4687 2015-08-07 Pedro Alves <palves@redhat.com>
4688
4689 * gdbthread.h (struct thread_info) <step_over_prev,
4690 step_over_next>: New fields.
4691 (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
4692 (thread_step_over_chain_next, thread_is_in_step_over_chain): New
4693 declarations.
4694 * infrun.c (struct displaced_step_request): Delete.
4695 (struct displaced_step_inferior_state) <step_request_queue>:
4696 Delete field.
4697 (displaced_step_prepare): Assert that trap_expected is set. Use
4698 thread_step_over_chain_enqueue. Split starting a new displaced
4699 step to ...
4700 (start_step_over): ... this new function.
4701 (resume): Assert the thread isn't waiting for a step over already.
4702 (proceed): Assert the thread isn't waiting for a step over
4703 already.
4704 (infrun_thread_stop_requested): Adjust to remove threads from the
4705 embedded step-over chain.
4706 (handle_inferior_event) <fork/vfork>: Call start_step_over after
4707 displaced_step_fixup.
4708 (handle_signal_stop): Call start_step_over after
4709 displaced_step_fixup.
4710 * infrun.h (step_over_queue_head): New declaration.
4711 * thread.c (step_over_chain_enqueue, step_over_chain_remove)
4712 (thread_step_over_chain_next, thread_is_in_step_over_chain)
4713 (thread_step_over_chain_enqueue)
4714 (thread_step_over_chain_remove): New functions.
4715 (delete_thread_1): Remove thread from the step-over chain.
4716
4717 2015-08-07 Pedro Alves <palves@redhat.com>
4718
4719 * infrun.c (thread_still_needs_step_over): Rename to ...
4720 (thread_still_needs_step_over_bp): ... this.
4721 (enum step_over_what): New.
4722 (thread_still_needs_step_over): Reimplement.
4723
4724 2015-08-07 Pedro Alves <palves@redhat.com>
4725
4726 * remote.c (remote_wait_as): If not waiting for a stop reply,
4727 return TARGET_WAITKIND_NO_RESUMED. If TARGET_WNOHANG is
4728 requested, don't block waiting forever.
4729
4730 2015-08-07 Pedro Alves <pedro@codesourcery.com>
4731
4732 * infrun.c (adjust_pc_after_break): Now takes thread_info and
4733 waitstatus pointers instead of an ecs. Adjust.
4734 (handle_inferior_event): Adjust caller.
4735
4736 2015-08-07 Pedro Alves <palves@redhat.com>
4737
4738 * infrun.c (handle_inferior_event): If we get
4739 TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
4740 mode, mark all threads of the exiting process as not-executing.
4741 (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
4742 TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
4743 exiting process, if inferior_ptid still points at a process.
4744 * thread.c (struct current_thread_cleanup) <next>: New field.
4745 (current_thread_cleanup_chain): New global.
4746 (restore_current_thread_ptid_changed): New function.
4747 (restore_current_thread_cleanup_dtor): Remove the cleanup from the
4748 current_thread_cleanup_chain list.
4749 (make_cleanup_restore_current_thread): Add the cleanup data to the
4750 current_thread_cleanup_chain list.
4751 (_initialize_thread): Install restore_current_thread_ptid_changed
4752 as thread_ptid_changed observer.
4753
4754 2015-08-07 Joel Brobecker <brobecker@adacore.com>
4755
4756 * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
4757 data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
4758 smaller than expected.
4759
4760 2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
4761
4762 * stack.c (get_frame_language): Moved ...
4763 * frame.c (get_frame_language): ... to here.
4764 * language.h (get_frame_language): Declaration moved to frame.h.
4765 * frame.h: Add language.h include, for language enum.
4766 (get_frame_language): Declaration moved from language.h.
4767 * language.c: Add frame.h include.
4768 * top.c: Add frame.h include.
4769 * symtab.h (struct obj_section): Declare.
4770 (struct cmd_list_element): Declare.
4771
4772 2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
4773
4774 * language.c (show_language_command): Find selected frame before
4775 asking for the language of that frame.
4776 (set_language_command): Likewise.
4777 * language.h (get_frame_language): Add frame parameter.
4778 * stack.c (get_frame_language): Add frame parameter, assert
4779 parameter is not NULL, update comment and reindent.
4780 * top.c (check_frame_language_change): Pass the selected frame
4781 into get_frame_language.
4782
4783 2015-08-07 Markus Metzger <markus.t.metzger@intel.com>
4784
4785 * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
4786 (pt_btrace_insn_flags): New.
4787 (ftrace_add_pt): Call pt_btrace_insn_flags.
4788 * btrace.h (btrace_insn_flag): New.
4789 (btrace_insn) <flags>: New.
4790 * record-btrace.c (btrace_insn_history): Print insn prefix.
4791 * NEWS: Announce it.
4792
4793 2015-08-07 Markus Metzger <markus.t.metzger@intel.com>
4794
4795 * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
4796 * configure: Regenerate.
4797
4798 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
4799
4800 * Makefile.in (LIBICONV): Define.
4801 (CLIBS): Add LIBICONV.
4802 * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
4803 * configure: Regenerate.
4804
4805 2015-08-06 Simon Marchi <simon.marchi@ericsson.com>
4806 Pedro Alves <palves@redhat.com>
4807
4808 * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
4809 (arm_set_abi): Likewise.
4810 * ax-general.c (ax_print): Likewise.
4811 * c-exp.y (exp : string_exp): Likewise.
4812 * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
4813 (do_compile_dwarf_expr_to_c): Likewise.
4814 * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
4815 Likewise.
4816 * dwarf2expr.c (execute_stack_op): Likewise.
4817 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
4818 (disassemble_dwarf_expression): Likewise.
4819 * dwarf2read.c (dwarf2_add_member_fn): Likewise.
4820 (read_array_order): Likewise.
4821 (abbrev_table_read_table): Likewise.
4822 (read_attribute_value): Likewise.
4823 (skip_unknown_opcode): Likewise.
4824 (dwarf_decode_macro_bytes): Likewise.
4825 (dwarf_decode_macros): Likewise.
4826 * eval.c (value_f90_subarray): Likewise.
4827 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
4828 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
4829 * infrun.c (handle_command): Likewise.
4830 * memory-map.c (memory_map_start_memory): Likewise.
4831 * osabi.c (set_osabi): Likewise.
4832 * parse.c (operator_length_standard): Likewise.
4833 * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
4834 single return point.
4835 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4836 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
4837 (gdbpy_lookup_global_symbol): Likewise.
4838 * record-full.c (record_full_restore): Likewise.
4839 * regcache.c (regcache_register_status): Likewise.
4840 (regcache_raw_read): Likewise.
4841 (regcache_cooked_read): Likewise.
4842 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
4843 * symtab.c (initialize_ordinary_address_classes): Likewise.
4844 * target-debug.h (target_debug_print_signals): Likewise.
4845 * utils.c (do_restore_current_language): Likewise.
4846
4847 2015-08-06 Clem Dickey <clemd@acm.org>
4848
4849 PR python/17136
4850 * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
4851
4852 2015-08-06 Simon Marchi <simon.marchi@ericsson.com>
4853
4854 * complaints.c (enum complaint_series): Add newlines and remove
4855 out of date comment.
4856 (struct complaints) <series>: Change type to enum
4857 complaint_series and remove out of date comment.
4858 (symfile_complaint_hook): Use equivalent enum value
4859 ISOLATED_MESSAGE instead of 0.
4860
4861 2015-08-06 Pedro Alves <palves@redhat.com>
4862
4863 * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
4864 returned > 0.
4865
4866 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
4867
4868 * common/agent.c (symbol_list) <required>: Remove.
4869
4870 2015-08-06 Pedro Alves <palves@redhat.com>
4871
4872 * target/waitstatus.h (enum target_stop_reason)
4873 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
4874
4875 2015-08-05 Pedro Alves <palves@redhat.com>
4876 Joel Brobecker <brobecker@adacore.com>
4877
4878 * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
4879 <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
4880 case where BS->STOP is not set.
4881
4882 2015-08-05 Ulrich Weigand <uweigand@de.ibm.com>
4883
4884 * nat/gdb_thread_db.h: Add copyright header.
4885 Protect against multiple inclusion.
4886
4887 2015-08-05 Yao Qi <yao.qi@linaro.org>
4888
4889 * aarch64-linux-nat.c (get_thread_id): Remove.
4890 (debug_reg_change_callback): Call ptid_get_lwp instead of
4891 get_thread_id.
4892 (fetch_gregs_from_thread): Likewise.
4893 (store_gregs_to_thread): Likewise.
4894 (fetch_fpregs_from_thread): Likewise.
4895 (store_fpregs_to_thread): Likewise.
4896 (aarch64_linux_get_debug_reg_capacity): Likewise.
4897 * arm-linux-nat.c (get_thread_id): Remove.
4898 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
4899 * xtensa-linux-nat.c (get_thread_id): Remove.
4900 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
4901 * arm-linux-nat.c (get_thread_id): Remove.
4902 (GET_THREAD_ID): Remove.
4903 (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
4904 (store_fpregs, fetch_regs, store_regs): Likewise.
4905 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
4906 (fetch_vfp_regs, store_vfp_regs): Likewise.
4907 (arm_linux_read_description): Likewise.
4908 (arm_linux_get_hwbp_cap): Likewise.
4909 * xtensa-linux-nat.c (get_thread_id): Remove.
4910 (GET_THREAD_ID): Remove.
4911 (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
4912 GET_THREAD_ID.
4913
4914 2015-08-04 Ciro Santilli <ciro.santilli@gmail.com> (obvious patch)
4915
4916 * python/py-linetable.c: Fix case of Linetable to LineTable
4917 in docstrings and code comments.
4918 * python/py-symtab.c: Same.
4919
4920 2015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4921
4922 * infcmd.c (signal_command): Call do_cleanups for args_chain.
4923
4924 2015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4925
4926 PR gdb/18767
4927 * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
4928 use.
4929
4930 2015-08-04 Pedro Alves <palves@redhat.com>
4931
4932 * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
4933 (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
4934 (td_ta_event_addr_ftype, td_ta_set_event_ftype)
4935 (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
4936 (td_thr_validate_ftype, td_thr_get_info_ftype)
4937 (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
4938 (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
4939 New typedefs.
4940 * linux-thread-db.c (struct thread_db_info): Use new typedefs.
4941 (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
4942 local macros and use them instead of verbose_dlsym and dlsym
4943 calls.
4944
4945 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
4946
4947 * nios2-tdep.h: Include opcode/nios2.h here.
4948 (NIOS2_CDX_OPCODE_SIZE): New.
4949 (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
4950 * nios2-tdep.c: Don't include opcode/nios2.h here.
4951 (nios2_fetch_insn): For R2, try reading 2-byte instruction if
4952 4-byte read fails.
4953 (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
4954 (nios2_match_addi, nios2_match_orhi): Likewise.
4955 (nios2_match_stw, nios2_match_ldw): Likewise.
4956 (nios2_match_rdctl): Likewise.
4957 (nios2_match_stwm, nios2_match_ldwm): New.
4958 (nios2_match_branch): Add cases for R2 encodings.
4959 (nios2_match_jmpi, nios2_match_calli): Likewise.
4960 (nios2_match_jmpr, nios2_match_callr): Likewise.
4961 (nios2_match_break, nios2_match_trap): Likewise.
4962 (nios2_in_epilogue_p): Add R2 support.
4963 (nios2_analyze_prologue): Update comments. Recognize R2 CDX
4964 prologues.
4965 (nios2_breakpoint_from_pc): Handle R2 instructions.
4966 (nios2_get_next_pc): Likewise. Adjust call to
4967 tdep->syscall_next_pc.
4968 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
4969 Renamed from nios2_linux_rt_sigreturn_tramp_frame. Use
4970 instruction field macros instead of literal hex values.
4971 (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
4972 (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
4973 Use size field from OP instead of assuming all instructions
4974 are the same size.
4975 (nios2_linux_init_abi): Register appropriate unwinder for mach.
4976
4977 2015-08-03 Ulrich Weigand <uweigand@de.ibm.com>
4978
4979 * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
4980 variable warning with some compilers.
4981
4982 2015-08-03 Yao Qi <yao.qi@linaro.org>
4983
4984 * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
4985 in comment. Replace "rw" with "type".
4986 (arm_linux_remove_watchpoint): Change type of "rw" to
4987 "enum target_hw_bp_type".
4988
4989 2015-08-02 Pierre-Marie de Rodat <derodat@adacore.com>
4990
4991 * alpha-mdebug-tdep.c (find_proc_desc): Update call to
4992 lookup_symbol.
4993 * ft32-tdep.c (ft32_skip_prologue): Likewise.
4994 * moxie-tdep.c (moxie_skip_prologue): Likewise.
4995 * mt-tdep.c (mt_skip_prologue): Likewise.
4996 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
4997
4998 2015-08-01 Pierre-Marie de Rodat <derodat@adacore.com>
4999
5000 * ada-exp.y (write_object_renaming): Replace struct
5001 ada_symbol_info with struct block_symbol. Update field
5002 references accordingly.
5003 (block_lookup, select_possible_type_sym): Likewise.
5004 (find_primitive_type): Likewise. Also update call to
5005 ada_lookup_symbol to extract the symbol itself.
5006 (write_var_or_type, write_name_assoc): Likewise.
5007 * ada-lang.h (struct ada_symbol_info): Remove.
5008 (ada_lookup_symbol_list): Replace struct ada_symbol_info with
5009 struct block_symbol.
5010 (ada_lookup_encoded_symbol, user_select_syms): Likewise.
5011 (ada_lookup_symbol): Return struct block_symbol instead of a
5012 mere symbol.
5013 * ada-lang.c (defns_collected): Replace struct ada_symbol_info
5014 with struct block_symbol.
5015 (resolve_subexp, ada_resolve_function, sort_choices,
5016 user_select_syms, is_nonfunction, add_defn_to_vec,
5017 num_defns_collected, defns_collected,
5018 symbols_are_identical_enums, remove_extra_symbols,
5019 remove_irrelevant_renamings, add_lookup_symbol_list_worker,
5020 ada_lookup_symbol_list, ada_iterate_over_symbols,
5021 ada_lookup_encoded_symbol, get_var_value): Likewise.
5022 (ada_lookup_symbol): Return a block_symbol instead of a mere
5023 symbol. Replace struct ada_symbol_info with struct
5024 block_symbol.
5025 (ada_lookup_symbol_nonlocal): Likewise.
5026 (standard_lookup): Make block passing explicit through
5027 lookup_symbol_in_language.
5028 * ada-tasks.c (get_tcb_types_info): Update the calls to
5029 lookup_symbol_in_language to extract the mere symbol out of the
5030 returned value.
5031 (ada_tasks_inferior_data_sniffer): Likewise.
5032 * ax-gdb.c (gen_static_field): Likewise for the call to
5033 lookup_symbol.
5034 (gen_maybe_namespace_elt): Deal with struct block_symbol from
5035 lookup functions.
5036 (gen_expr): Likewise.
5037 * c-exp.y: Likewise. Remove uses of block_found.
5038 (lex_one_token, classify_inner_name, c_print_token): Likewise.
5039 (classify_name): Likewise. Rename the "sym" local variable to
5040 "bsym".
5041 * c-valprint.c (print_unpacked_pointer): Likewise.
5042 * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
5043 "sym" parameter from struct symbol * to struct block_symbol.
5044 Use it to remove uses of block_found. Deal with struct
5045 block_symbol from lookup functions.
5046 (gcc_convert_symbol): Likewise. Update the call to
5047 convert_symbol_sym.
5048 * compile/compile-object-load.c (compile_object_load): Deal with
5049 struct block_symbol from lookup functions.
5050 * cp-namespace.c (cp_lookup_nested_symbol_1,
5051 cp_lookup_nested_symbol, cp_lookup_bare_symbol,
5052 cp_search_static_and_baseclasses,
5053 cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
5054 cp_lookup_symbol_imports_or_template,
5055 cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
5056 lookup_namespace_scope, cp_lookup_nonlocal,
5057 find_symbol_in_baseclass): Return struct block_symbol instead of
5058 mere symbols and deal with struct block_symbol from lookup
5059 functions.
5060 * cp-support.c (inspect_type, replace_typedefs,
5061 cp_lookup_rtti_type): Deal with struct block_symbol from
5062 lookup functions.
5063 * cp-support.h (cp_lookup_symbol_nonlocal,
5064 cp_lookup_symbol_from_namespace,
5065 cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
5066 Return struct block_symbol instead of mere symbols.
5067 * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
5068 push_module_name):
5069 Deal with struct block_symbol from lookup functions. Remove
5070 uses of block_found.
5071 * eval.c (evaluate_subexp_standard): Update call to
5072 cp_lookup_symbol_namespace.
5073 * f-exp.y: Deal with struct block_symbol from lookup functions.
5074 Remove uses of block_found.
5075 (yylex): Likewise.
5076 * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
5077 lookup_enum, lookup_template_type, check_typedef): Deal with
5078 struct block_symbol from lookup functions.
5079 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
5080 * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
5081 (gdbscm_lookup_global_symbol): Likewise.
5082 * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
5083 * go-exp.y: Likewise. Remove uses of block_found.
5084 (package_name_p, classify_packaged_name, classify_name):
5085 Likewise.
5086 * infrun.c (insert_exception_resume_breakpoint): Likewise.
5087 * jv-exp.y (push_variable): Likewise.
5088 * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
5089 * language.c (language_bool_type): Likewise.
5090 * language.h (struct language_defn): Update
5091 la_lookup_symbol_nonlocal to return a struct block_symbol rather
5092 than a mere symbol.
5093 * linespec.c (find_label_symbols): Deal with struct block_symbol
5094 from lookup functions.
5095 * m2-exp.y: Likewise. Remove uses of block_found.
5096 (yylex): Likewise.
5097 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
5098 * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
5099 * p-exp.y: Likewise. Remove uses of block_found.
5100 (yylex): Likewise.
5101 * p-valprint.c (pascal_val_print): Likewise.
5102 * parse.c (write_dollar_variable): Likewise. Remove uses of
5103 block_found.
5104 * parser-defs.h (struct symtoken): Turn the SYM field into a
5105 struct block_symbol.
5106 * printcmd.c (address_info): Deal with struct block_symbol from
5107 lookup functions.
5108 * python/py-frame.c (frapy_read_var): Likewise.
5109 * python/py-symbol.c (gdbpy_lookup_symbol,
5110 gdbpy_lookup_global_symbol): Likewise.
5111 * skip.c (skip_function_command): Likewise.
5112 * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
5113 block_symbol instead of a mere symbol.
5114 * solib-spu.c (spu_lookup_lib_symbol): Likewise.
5115 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
5116 * solib.c (solib_global_lookup): Likewise.
5117 * solist.h (solib_global_lookup): Likewise.
5118 (struct target_so_ops): Update lookup_lib_global_symbol to
5119 return a struct block_symbol rather than a mere symbol.
5120 * source.c (select_source_symtab): Deal with struct block_symbol
5121 from lookup functions.
5122 * stack.c (print_frame_args, iterate_over_block_arg_vars):
5123 Likewise.
5124 * symfile.c (set_initial_language): Likewise.
5125 * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
5126 block_symbol.
5127 (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
5128 (struct symbol_cache_slot): Turn the FOUND field into a struct
5129 block_symbol.
5130 (block_found): Remove.
5131 (eq_symbol_entry): Update to deal with struct block_symbol in
5132 cache slots.
5133 (symbol_cache_lookup): Return a struct block_symbol rather than
5134 a mere symbol.
5135 (symbol_cache_mark_found): Add a BLOCK parameter to fill
5136 appropriately the cache slots. Update callers.
5137 (symbol_cache_dump): Update cache slots handling to the type
5138 change.
5139 (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
5140 lookup_symbol_aux, lookup_local_symbol,
5141 lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
5142 lookup_symbol_in_objfile_symtabs,
5143 lookup_symbol_in_objfile_from_linkage_name,
5144 lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
5145 lookup_symbol_in_static_block, lookup_static_symbol,
5146 lookup_global_symbol):
5147 Return a struct block_symbol rather than a mere symbol. Deal
5148 with struct block_symbol from other lookup functions. Remove
5149 uses of block_found.
5150 (lookup_symbol_in_block): Remove uses of block_found.
5151 (struct global_sym_lookup_data): Turn the RESULT field into a
5152 struct block_symbol.
5153 (lookup_symbol_global_iterator_cb): Update references to the
5154 RESULT field.
5155 (search_symbols): Deal with struct block_symbol from lookup
5156 functions.
5157 * symtab.h (struct block_symbol): New structure.
5158 (block_found): Remove.
5159 (lookup_symbol_in_language, lookup_symbol,
5160 basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
5161 lookup_static_symbol, lookup_global_symbol, lookup_language_this,
5162 lookup_global_symbol_from_objfile): Return a struct block_symbol
5163 rather than just a mere symbol. Update comments to remove
5164 mentions of block_found.
5165 * valops.c (find_function_in_inferior,
5166 value_struct_elt_for_reference, value_maybe_namespace_elt,
5167 value_of_this): Deal with struct block_symbol from lookup
5168 functions.
5169 * value.c (value_static_field, value_fn_field): Likewise.
5170
5171 2015-07-31 Simon Marchi <simon.marchi@ericsson.com>
5172
5173 * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
5174 instead of integer.
5175
5176 2015-07-31 Simon Marchi <simon.marchi@ericsson.com>
5177 Pedro Alves <palves@redhat.com>
5178
5179 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
5180 type or value instead of integer.
5181 (aarch64_linux_insert_watchpoint): Likewise.
5182 (aarch64_linux_remove_watchpoint): Likewise.
5183 * ada-lang.c (ada_op_print_tab): Likewise.
5184 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
5185 (amd64_linux_syscall_record_common): Likewise.
5186 * arch-utils.c (target_byte_order_user): Likewise.
5187 (default_byte_order): Likewise.
5188 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
5189 (arm_linux_get_hwbp_type): Likewise.
5190 (arm_linux_hw_watchpoint_initialize): Likewise.
5191 (arm_linux_insert_watchpoint): Likewise.
5192 * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
5193 (arm_linux_syscall_record): Likewise.
5194 * breakpoint.c (update_watchpoint): Likewise.
5195 (breakpoint_here_p): Likewise.
5196 (bpstat_print): Likewise.
5197 (enable_breakpoint_disp): Likewise.
5198 * c-lang.c (c_op_print_tab): Likewise.
5199 * cli/cli-decode.c (add_info_alias): Likewise.
5200 * d-lang.c (d_op_print_tab): Likewise.
5201 * eval.c (evaluate_subexp_standard): Likewise.
5202 * f-exp.y (dot_ops): Likewise.
5203 (f77_keywords): Likewise.
5204 * f-lang.c (f_op_print_tab): Likewise.
5205 * go-lang.c (go_op_print_tab): Likewise.
5206 * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
5207 * guile/scm-cmd.c (gdbscm_make_command): Likewise.
5208 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5209 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
5210 * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
5211 (struct scm_from_stringn_data): Likewise.
5212 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5213 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
5214 (ia64_linux_remove_watchpoint): Likewise.
5215 (ia64_linux_can_use_hw_breakpoint): Likewise.
5216 * infrun.c (print_stop_event): Likewise.
5217 * jv-lang.c (java_op_print_tab): Likewise.
5218 * linux-nat.c (linux_proc_xfer_partial): Likewise.
5219 * linux-nat.h (struct lwp_info): Likewise.
5220 * linux-thread-db.c (enable_thread_event): Likewise.
5221 * m2-lang.c (m2_op_print_tab): Likewise.
5222 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
5223 (mi_cmd_stack_list_variables): Likewise.
5224 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
5225 * mi/mi-out.c (mi_table_begin): Likewise.
5226 (mi_table_header): Likewise.
5227 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
5228 (mips_linux_insert_watchpoint): Likewise.
5229 (mips_linux_remove_watchpoint): Likewise.
5230 * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
5231 * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
5232 (mips_linux_watch_type_to_irw): Likewise.
5233 * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5234 (procfs_insert_hw_watchpoint): Likewise.
5235 (procfs_remove_hw_watchpoint): Likewise.
5236 (procfs_hw_watchpoint): Likewise.
5237 (procfs_can_use_hw_breakpoint): Likewise.
5238 (procfs_remove_hw_watchpoint): Likewise.
5239 (procfs_insert_hw_watchpoint): Likewise.
5240 * p-lang.c (pascal_op_print_tab): Likewise.
5241 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
5242 * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
5243 * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
5244 * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5245 (procfs_insert_watchpoint): Likewise.
5246 (procfs_remove_watchpoint): Likewise.
5247 * psymtab.c (recursively_search_psymtabs): Likewise.
5248 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
5249 (m32r_insert_watchpoint): Likewise.
5250 * remote-mips.c (mips_can_use_watchpoint): Likewise.
5251 (mips_insert_watchpoint): Likewise.
5252 (mips_remove_watchpoint): Likewise.
5253 * remote.c (watchpoint_to_Z_packet): Likewise.
5254 (remote_insert_watchpoint): Likewise.
5255 (remote_remove_watchpoint): Likewise.
5256 (remote_check_watch_resources): Likewise.
5257 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
5258 (s390_remove_watchpoint): Likewise.
5259 (s390_can_use_hw_breakpoint): Likewise.
5260 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5261 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
5262 * target.h (struct target_ops): Likewise.
5263 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
5264 * ui-out.c (struct ui_out_hdr): Likewise.
5265 (append_header_to_list): Likewise.
5266 (get_next_header): Likewise.
5267 (verify_field): Likewise.
5268 (ui_out_begin): Likewise.
5269 (ui_out_field_int): Likewise.
5270 (ui_out_field_fmt_int): Likewise.
5271 (ui_out_field_skip): Likewise.
5272 (ui_out_field_string): Likewise.
5273 (ui_out_field_fmt): Likewise.
5274 * varobj.c (new_variable): Likewise.
5275 * x86-nat.c (x86_insert_watchpoint): Likewise.
5276 (x86_remove_watchpoint): Likewise.
5277 (x86_can_use_hw_breakpoint): Likewise.
5278 * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
5279 * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
5280 previously anonymous enumeration type..
5281 * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
5282 value.
5283 * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
5284 (target_debug_print_enum_bptype): New.
5285 * target-delegates.c: Regenerate.
5286
5287 2015-07-30 Sandra Loosemore <sandra@codesourcery.com>
5288
5289 * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
5290 already says and disallow non-stack memory writes in the prologue.
5291
5292 2015-07-30 Sandra Loosemore <sandra@codesourcery.com>
5293
5294 * nios2-tdep.c (nios2_analyze_prologue): Update comments to
5295 reflect how current GCC emits stack overflow checks. Match
5296 both trap and break instructions for backward compatbility.
5297 Disallow other trap and break instructions in the prologue.
5298
5299 2015-07-30 Pedro Alves <palves@redhat.com>
5300
5301 PR threads/18600
5302 * linux-nat.c (wait_lwp): Report to the core when thread group
5303 leader exits.
5304
5305 2015-07-30 Pedro Alves <palves@redhat.com>
5306 Simon Marchi <simon.marchi@ericsson.com>
5307
5308 PR threads/18600
5309 * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
5310 mark the new thread as resumed. Remove STOPPING parameter.
5311 (wait_lwp): Adjust call to linux_handle_extended_wait.
5312 (linux_nat_filter_event): Adjust call to
5313 linux_handle_extended_wait.
5314 (resume_stopped_resumed_lwps): Add debug output.
5315
5316 2015-07-30 Pierre Langlois <pierre.langlois@arm.com>
5317
5318 * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
5319 isize argument.
5320 * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
5321 * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
5322 gdbarch_fast_tracepoint_valid_at.
5323 * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
5324 * gdbarch.h: Regenerate.
5325 * gdbarch.c: Regenerate.
5326 * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
5327 argument. Do not set it.
5328 * remote.c (remote_download_tracepoint): Adjust call to
5329 gdbarch_fast_tracepoint_valid_at. Call gdb_insn_length to get
5330 the instruction length.
5331
5332 2015-07-30 Yao Qi <yao.qi@linaro.org>
5333
5334 * arm-tdep.h (enum gdb_regnum): Move it to ...
5335 * arch/arm.h: ... here. New file.
5336 * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
5337
5338 2015-07-30 Pierre Langlois <pierre.langlois@arm.com>
5339
5340 * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
5341 Change its type to int *.
5342 (decode_br): Rename link argument to is_blr. Change its type to
5343 int *.
5344 (decode_cb): Rename op argument to is_cbnz. Change its type to
5345 int *.
5346 (decode_tb): Rename op argument to is_tbnz. Change its type to
5347 int *. Set is_tbnz to either 1 or 0.
5348 (aarch64_analyze_prologue): Change type of is_link to int. Add
5349 new variables is_cbnz and is_tbnz. Adjust call to
5350 aarch64_decode_cb and aarch64_decode_tb.
5351
5352 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
5353
5354 * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
5355 parameter.
5356 (mips_linux_new_thread): Likewise.
5357 * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
5358
5359 2015-07-29 Patrick Palka <patrick@parcs.ath.cx>
5360
5361 * top.c: Include "tui/tui.h".
5362 (undo_terminal_modifications_before_exit): New static function.
5363 (quit_force): Use it.
5364
5365 2015-07-29 Patrick Palka <patrick@parcs.ath.cx>
5366
5367 * target.c (terminal_state): Initialize to terminal_is_ours.
5368
5369 2015-07-29 Yao Qi <yao.qi@linaro.org>
5370
5371 PR record/18691
5372 * dcache.c (dcache_read_memory_partial): Call
5373 raw_memory_xfer_partial.
5374 * target.c (raw_memory_xfer_partial): Make it non-static.
5375 * target.h (raw_memory_xfer_partial): Declare.
5376
5377 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5378
5379 * c-valprint.c (c_val_print_array): Consider addressable memory
5380 unit size.
5381 (c_val_print_ptr): Likewise.
5382 (c_val_print_int): Likewise.
5383 * findvar.c (read_frame_register_value): Likewise.
5384 * valarith.c (find_size_for_pointer_math): Likewise.
5385 (value_ptrdiff): Likewise.
5386 (value_subscripted_rvalue): Likewise.
5387 * valops.c (read_value_memory): Likewise (and rename variables).
5388 (value_assign): Likewise.
5389 (value_repeat): Likewise.
5390 (value_array): Likewise.
5391 (value_slice): Likewise.
5392 * valprint.c (generic_val_print_ptr): Likewise.
5393 (generic_val_print_enum): Likewise.
5394 (generic_val_print_bool): Likewise.
5395 (generic_val_print_int): Likewise.
5396 (generic_val_print_char): Likewise.
5397 (generic_val_print_float): Likewise.
5398 (generic_val_print_decfloat): Likewise.
5399 (generic_val_print_complex): Likewise.
5400 (val_print_scalar_formatted): Likewise.
5401 (val_print_array_elements): Likewise.
5402 * value.c (set_value_parent): Likewise.
5403 (value_contents_copy_raw): Likewise.
5404 (set_internalvar_component): Likewise.
5405 (value_primitive_field): Likewise.
5406 (value_fetch_lazy): Likewise.
5407 * value.h (read_value_memory): Update comment.
5408
5409 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5410
5411 * value.c (get_value_arch): New function.
5412 * value.h (get_value_arch): New declaration.
5413
5414 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5415
5416 * value.c (struct value): Update comments.
5417
5418 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5419
5420 * gdbtypes.c (type_length_units): New function.
5421 * gdbtypes.h (type_length_units): New declaration.
5422 (struct type) <length>: Update comment.
5423
5424 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5425
5426 * valprint.c (generic_val_print): Factor out complex
5427 printing code to ...
5428 (generic_val_print_complex): ... this new function.
5429
5430 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5431
5432 * valprint.c (generic_val_print): Factor out decfloat
5433 printing code to ...
5434 (generic_val_print_decfloat): ... this new function.
5435
5436 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5437
5438 * valprint.c (generic_val_print): Factor out float
5439 printing code to ...
5440 (generic_val_print_float): ... this new function.
5441
5442 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5443
5444 * valprint.c (generic_val_print): Factor out char
5445 printing code to ...
5446 (generic_val_print_char): ... this new function.
5447
5448 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5449
5450 * valprint.c (generic_val_print): Factor out integer
5451 printing code to ...
5452 (generic_val_print_int): ... this new function.
5453
5454 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5455
5456 * valprint.c (generic_val_print): Factor out bool
5457 printing code to ...
5458 (generic_val_print_bool): ... this new function.
5459
5460 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5461
5462 * valprint.c (generic_val_print): Factor out function/method
5463 printing code to ...
5464 (generic_val_print_func): ... this new function.
5465
5466 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5467
5468 * valprint.c (generic_val_print): Factor out flags
5469 printing code to ...
5470 (generic_val_print_flags): ... this new function.
5471
5472 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5473
5474 * valprint.c (generic_val_print): Factor out enum
5475 printing code to ...
5476 (generic_val_print_enum): ... this new function.
5477
5478 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5479
5480 * valprint.c (generic_val_print): Factor out reference
5481 printing code to ...
5482 (generic_val_print_ref): ... this new function.
5483
5484 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5485
5486 * valprint.c (generic_val_print): Factor out memberptr
5487 printing code to ...
5488 (generic_val_print_memberptr): ... this new function.
5489
5490 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5491
5492 * valprint.c (generic_val_print): Factor out pointer
5493 printing code to ...
5494 (generic_val_print_ptr): ... this new function.
5495
5496 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5497
5498 * valprint.c (generic_val_print): Factor out array
5499 printing code to ...
5500 (generic_val_print_array): ... this new function.
5501
5502 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5503
5504 * valprint.c (generic_val_print): Factor out
5505 print_unpacked_pointer code to ...
5506 (print_unpacked_pointer): ... this new function.
5507
5508 2015-07-27 Patrick Palka <patrick@parcs.ath.cx>
5509
5510 * event-top.c (handle_sigterm): Don't inspect
5511 target_can_async_p. Always set the quit flag and always mark
5512 the async signal handler.
5513
5514 2015-07-27 Yao Qi <yao.qi@linaro.org>
5515
5516 * Makefile.in (REMOTE_EXAMPLES): Remove it.
5517
5518 2015-07-25 Kevin Buettner <kevinb@redhat.com>
5519
5520 * remote.c (read_ptid): Return null_ptid when no thread id
5521 is found.
5522 (remote_current_thread): Add log warning for malformed
5523 qC reply.
5524 (remote_start_remote): Add log warning when current thread
5525 not found.
5526
5527 2015-07-24 Pedro Alves <palves@redhat.com>
5528
5529 * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
5530 (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
5531 forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
5532
5533 2015-07-24 Pedro Alves <palves@redhat.com>
5534
5535 PR gdb/18717
5536 * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
5537 is resumed, and extend the debug log.
5538
5539 2015-07-24 Pedro Alves <palves@redhat.com>
5540
5541 * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
5542
5543 2015-07-24 Pedro Alves <palves@redhat.com>
5544
5545 * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
5546 sys/ptrace.h.
5547 * alpha-linux-nat.c: Likewise.
5548 * amd64-linux-nat.c: Likewise.
5549 * arm-linux-nat.c: Likewise.
5550 * hppa-linux-nat.c: Likewise.
5551 * i386-linux-nat.c: Likewise.
5552 * ia64-linux-nat.c: Likewise.
5553 * linux-fork.c: Likewise.
5554 * linux-nat.c: Likewise.
5555 * m32r-linux-nat.c: Likewise.
5556 * m68klinux-nat.c: Likewise.
5557 * mips-linux-nat.c: Likewise.
5558 * nat/linux-btrace.c: Likewise.
5559 * nat/linux-ptrace.c: Likewise.
5560 * nat/linux-ptrace.h
5561 * nat/mips-linux-watch.c: Likewise.
5562 * nat/x86-linux-dregs.c: Likewise.
5563 * ppc-linux-nat.c: Likewise.
5564 * s390-linux-nat.c: Likewise.
5565 * spu-linux-nat.c: Likewise.
5566 * tilegx-linux-nat.c: Likewise.
5567 * x86-linux-nat.c: Likewise.
5568 * xtensa-linux-nat.c: Likewise.
5569
5570 2015-07-24 Pedro Alves <palves@redhat.com>
5571
5572 * ptrace.m4 (ptrace tests): Test in C++ mode. Try with 'enum
5573 __ptrace_request as first parameter type instead of int.
5574 (PTRACE_TYPE_ARG1): Define.
5575 * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
5576 that casts first argument to PTRACE_TYPE_ARG1.
5577 * config.in: Regenerate.
5578 * configure: Regenerate.
5579
5580 2015-07-24 Pedro Alves <palves@redhat.com>
5581
5582 * gdb_ptrace.h: Move ...
5583 * nat/gdb_ptrace.h: ... here.
5584 * inf-ptrace.c: Adjust.
5585
5586 2015-07-24 Pedro Alves <palves@redhat.com>
5587
5588 * acinclude.m4: Include ptrace.m4.
5589 * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
5590 * ptrace.m4: ... to this new file.
5591
5592 2015-07-23 Doug Evans <dje@google.com>
5593
5594 * dwarf2read.c (dwarf2_per_cu_data): Add comment.
5595 (load_cu): Handle dummy CUs.
5596 (dw2_do_instantiate_symtab, process_queuef): Ditto.
5597 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
5598
5599 2015-07-23 Ciro Santilli <ciro.santilli@gmail.com> (tiny patch)
5600
5601 * py-linetable.c (ltpy_get_all_source_lines): Adjust function
5602 documentation to say that it returns a list rather than
5603 a FrozenSet.
5604 (linetable_object_methods): Update the docstring of the
5605 "source_line" entry.
5606
5607 2015-07-23 Pierre-Marie de Rodat <derodat@adacore.com>
5608
5609 * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
5610 type to the recursive call instead of the original (maybe
5611 TYPE_CODE_TYPEDEF) type.
5612
5613 2015-07-23 Yao Qi <yao.qi@linaro.org>
5614
5615 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
5616 TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
5617 If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
5618
5619 2015-07-21 Yao Qi <yao.qi@linaro.org>
5620
5621 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
5622 Move it to nat/aarch64-linux-hw-point.c.
5623 (aarch64_linux_child_post_startup_inferior): Update.
5624 * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
5625 New function.
5626 * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
5627 Declare it.
5628
5629 2015-07-21 Markus Metzger <markus.t.metzger@intel.com>
5630
5631 * common/btrace-common.c (btrace_data_append): Change case label.
5632
5633 2015-07-20 Yao Qi <yao.qi@linaro.org>
5634
5635 * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
5636 Re-indent the code.
5637 * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
5638 "unsigned long long".
5639
5640 2015-07-18 Kevin Buettner <kevinb@redhat.com>
5641
5642 * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
5643 to be set for SEC_ALLOC sections too.
5644
5645 2015-07-17 Yao Qi <yao.qi@linaro.org>
5646
5647 * Makefile.in (HFILES_NO_SRCDIR): Add
5648 nat/aarch64-linux-hw-point.h.
5649 (aarch64-linux-hw-point.o): New rule.
5650 * nat/aarch64-linux-hw-point.h: New file.
5651 * nat/aarch64-linux-hw-point.c: New file.
5652 * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
5653 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
5654 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
5655 (AARCH64_HWP_ALIGNMENT): Likewise.
5656 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
5657 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
5658 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
5659 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
5660 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
5661 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
5662 (struct aarch64_debug_reg_state): Likewise.
5663 (struct arch_lwp_info): Likewise.
5664 (aarch64_linux_set_debug_regs): Likewise.
5665 (aarch64_notify_debug_reg_change): Remove static.
5666 (aarch64_align_watchpoint): Likewise.
5667 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
5668 (aarch64_watchpoint_length): Likewise.
5669 (aarch64_point_encode_ctrl_reg): Likewise
5670 (aarch64_point_is_aligned): Likewise.
5671 (aarch64_dr_state_insert_one_point): Likewise.
5672 (aarch64_dr_state_remove_one_point): Likewise.
5673 (aarch64_handle_breakpoint): Likewise.
5674 (aarch64_handle_aligned_watchpoint): Likewise.
5675 (aarch64_handle_unaligned_watchpoint): Likewise.
5676 (aarch64_handle_watchpoint): Likewise.
5677 * config/aarch64/linux.mh (NAT_FILE): Add
5678 aarch64-linux-hw-point.o.
5679
5680 2015-07-17 Yao Qi <yao.qi@linaro.org>
5681
5682 * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
5683 state and don't call aarch64_get_debug_reg_state. All callers
5684 update.
5685 (aarch64_linux_insert_hw_breakpoint): Call
5686 aarch64_get_debug_reg_state earlier.
5687 (aarch64_linux_remove_hw_breakpoint): Likewise.
5688 (aarch64_handle_aligned_watchpoint): Add argument state and
5689 don't call aarch64_get_debug_reg_state. All callers update.
5690 (aarch64_handle_unaligned_watchpoint): Likewise.
5691 (aarch64_handle_watchpoint): Add argument state.
5692 (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
5693 earlier.
5694 (aarch64_linux_remove_watchpoint): Likewise.
5695
5696 2015-07-17 Yao Qi <yao.qi@linaro.org>
5697
5698 * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
5699 debug_printf.
5700 (aarch64_handle_unaligned_watchpoint): Likewise.
5701
5702 2015-07-17 Yao Qi <yao.qi@linaro.org>
5703
5704 * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
5705 argument type's type to 'enum target_hw_bp_type'.
5706 (aarch64_dr_state_remove_one_point): Likewise.
5707 (aarch64_handle_breakpoint): Likewise.
5708 (aarch64_linux_insert_hw_breakpoint): Likewise.
5709 (aarch64_linux_remove_hw_breakpoint): Likewise.
5710 (aarch64_handle_aligned_watchpoint): Likewise.
5711
5712 2015-07-17 Yao Qi <yao.qi@linaro.org>
5713
5714 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
5715 ptid_get_pid instead of get_thread_id.
5716
5717 2015-07-17 Yao Qi <yao.qi@linaro.org>
5718
5719 * remote.c (get_current_thread): Initialise ptid to null_ptid.
5720 (add_current_inferior_and_thread): Don't initialise ptid.
5721
5722 2015-07-16 Pierre Langlois <pierre.langlois@arm.com>
5723
5724 * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
5725 unavailable if invalid.
5726
5727 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5728
5729 Revert the previous 6 commits:
5730 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
5731 Move gdb_regex* to common/
5732 Prepare linux_find_memory_regions_full & co. for move
5733 Move linux_find_memory_regions_full & co.
5734 gdbserver build-id attribute generator
5735 Validate symbol file using build-id
5736
5737 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5738 Jan Kratochvil <jan.kratochvil@redhat.com>
5739
5740 Validate symbol file using build-id.
5741 * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
5742 and 'show validate-build-id'. Add build-id attribute.
5743 * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
5744 * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
5745 * solib-frv.c (_initialize_frv_solib): Ditto.
5746 * solib-spu.c (set_spu_solib_ops): Ditto.
5747 * solib-svr4.c: Include rsp-low.h.
5748 (NOTE_GNU_BUILD_ID_NAME): New define.
5749 (svr4_validate): New function.
5750 (svr4_copy_library_list): Duplicate field build_id.
5751 (library_list_start_library): Parse 'build-id' attribute.
5752 (svr4_library_attributes): Add 'build-id' attribute.
5753 (_initialize_svr4_solib): Assign validate value.
5754 * solib-target.c (solib.h): Include.
5755 (_initialize_solib_target): Assign validate value.
5756 * solib.c (validate_build_id, show_validate_build_id): New.
5757 (solib_map_sections): Use ops->validate.
5758 (clear_so): Free build_id.
5759 (default_solib_validate): New function.
5760 (_initialize_solib): Add "validate-build-id".
5761 * solib.h (default_solib_validate): New declaration.
5762 * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
5763 (target_so_ops): New field 'validate'.
5764
5765 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5766 Jan Kratochvil <jan.kratochvil@redhat.com>
5767
5768 gdbserver build-id attribute generator.
5769 * features/library-list-svr4.dtd (library-list-svr4): New
5770 'build-id' attribute.
5771
5772 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5773 Jan Kratochvil <jan.kratochvil@redhat.com>
5774
5775 Move linux_find_memory_regions_full & co.
5776 * linux-tdep.c (nat/linux-maps.h): Include.
5777 (gdb_regex.h): Remove the include.
5778 (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
5779 (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
5780 (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
5781 (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
5782 * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
5783 and target/target.h.
5784 (struct smaps_vmflags, read_mapping, decode_vmflags)
5785 (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
5786 (linux_find_memory_regions_full): Move from linux-tdep.c.
5787 * nat/linux-maps.h (read_mapping): New declaration.
5788 (linux_find_memory_region_ftype, enum filterflags): Moved from
5789 linux-tdep.c.
5790 (linux_find_memory_regions_full): New declaration.
5791 * target.c (target/target-utils.h): Include.
5792 (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
5793 (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
5794 definitions to target/target-utils.c.
5795 * target.h (target_fileio_read_stralloc): Move it to target/target.h.
5796 * target/target-utils.c (read_alloc, read_stralloc): Move definitions
5797 from target.c.
5798 * target/target-utils.h (read_alloc_pread_ftype): New typedef.
5799 (read_alloc): New declaration.
5800 (read_stralloc_func_ftype): New typedef.
5801 (read_stralloc): New declaration.
5802 * target/target.h (target_fileio_read_stralloc): Move it from target.h.
5803
5804 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5805 Jan Kratochvil <jan.kratochvil@redhat.com>
5806
5807 Prepare linux_find_memory_regions_full & co. for move.
5808 * linux-tdep.c (linux_find_memory_region_ftype): Comment.
5809 (linux_find_memory_regions_full): Change signature and prepare
5810 for moving to linux-maps.
5811 (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
5812 (linux_find_memory_regions_thunk): New.
5813 (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
5814 (linux_find_memory_regions_gdb): New.
5815 (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
5816 (linux_make_mappings_corefile_notes): Use
5817 linux_find_memory_regions_gdb.
5818 * target.c (read_alloc_pread_ftype): New typedef.
5819 (target_fileio_read_alloc_1_pread): New function.
5820 (read_alloc): Refactor from target_fileio_read_alloc_1.
5821 (read_stralloc_func_ftype): New typedef.
5822 (target_fileio_read_alloc_1): New implementation. Use read_alloc.
5823 (read_stralloc): Refactored from target_fileio_read_stralloc.
5824 (target_fileio_read_stralloc): New implementation, use read_stralloc.
5825
5826 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5827
5828 * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
5829 common/gdb_regex.h.
5830 (COMMON_OBS): Add gdb_regex.o.
5831 (gdb_regex.o): New.
5832 * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
5833 --without-included-regex and USE_INCLUDED_REGEX.
5834 * common/gdb_regex.c: New file from utils.c functions.
5835 * common/gdb_regex.h: Move it here from gdb_regex.h, update include
5836 file wrapping define name.
5837 * configure: Rebuilt.
5838 * configure.ac (gdb_use_included_regex, --without-included-regex)
5839 (USE_INCLUDED_REGEX): Move them to common/common.m4.
5840 * gdb_regex.h: Move it to common/gdb_regex.h.
5841 * utils.c: Remove include gdb_regex.h.
5842 (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
5843 (compile_rx_or_error): Move them to common/gdb_regex.c.
5844
5845 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5846 Jan Kratochvil <jan.kratochvil@redhat.com>
5847
5848 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
5849 * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
5850 common/target-utils.h.
5851 (COMMON_OBS): Add target-utils.o.
5852 (linux-maps.o, target-utils.o): New.
5853 * target/target-utils.c: New file.
5854 * target/target-utils.h: New file.
5855 * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
5856 * config/i386/linux64.mh (NATDEPFILES): Ditto.
5857 * nat/linux-maps.c: New file.
5858 * nat/linux-maps.h: New file.
5859
5860 2015-07-15 Markus Metzger <markus.t.metzger@intel.com>
5861 Pedro Alves <palves@redhat.com>
5862
5863 * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
5864 (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
5865 (perf_event_read_bts): Change the type of SIZE and READ.
5866 (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
5867 and DATA_OFFSET. Move DATA_SIZE declaration. Restrict the buffer size
5868 to UINT_MAX. Check for overflows when using DATA_HEAD from the perf
5869 mmap page.
5870 (linux_enable_pt): Change the type of PAGES and SIZE. Restrict the
5871 buffer size to UINT_MAX.
5872 (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
5873 DATA_TAIL.
5874 * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
5875 <last_head>: Change type.
5876 * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
5877 * common/btrace-common.c (btrace_data_append): Change the type of
5878 SIZE.
5879 * btrace.c (parse_xml_raw): Change the type of SIZE. Change oddness
5880 check.
5881
5882 2015-07-14 Simon Marchi <simon.marchi@ericsson.com>
5883
5884 * gdbtypes.h (CHECK_TYPEDEF): Remove.
5885 * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
5886 with check_typedef.
5887 * ada-lang.c (decode_constrained_packed_array_type): Likewise.
5888 (ada_array_length): Likewise.
5889 (find_parallel_type_by_descriptive_type): Likewise.
5890 (ada_check_typedef): Likewise.
5891 * arm-tdep.c (arm_return_in_memory): Likewise.
5892 * ax-gdb.c (gen_trace_static_fields): Likewise.
5893 (gen_struct_ref_recursive): Likewise.
5894 * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
5895 (variable: block COLONCOLON name): Likewise.
5896 (qualified_name: TYPENAME COLONCOLON name): Likewise.
5897 * c-lang.c (classify_type): Likewise.
5898 * c-typeprint.c (c_print_type): Likewise.
5899 (c_print_typedef): Likewise.
5900 (c_type_print_base): Likewise.
5901 * c-valprint.c (c_val_print): Likewise.
5902 * compile/compile-c-types.c (convert_type): Likewise.
5903 * compile/compile-object-load.c (get_out_value_type): Likewise.
5904 * completer.c (add_struct_fields): Likewise.
5905 (expression_completer): Likewise.
5906 * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
5907 (cp_lookup_nested_symbol_1): Likewise.
5908 (cp_lookup_nested_symbol): Likewise.
5909 * cp-valprint.c (cp_print_value_fields): Likewise.
5910 (cp_print_static_field): Likewise.
5911 * d-valprint.c (d_val_print): Likewise.
5912 * eval.c (evaluate_subexp_standard): Likewise.
5913 (evaluate_subexp_for_sizeof): Likewise.
5914 * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
5915 * f-typeprint.c (f_type_print_base): Likewise.
5916 * f-valprint.c (f_val_print): Likewise.
5917 * gdbtypes.c (get_discrete_bounds): Likewise.
5918 (create_array_type_with_stride): Likewise.
5919 (type_name_no_tag_or_error): Likewise.
5920 (lookup_struct_elt_type): Likewise.
5921 (get_unsigned_type_max): Likewise.
5922 (internal_type_vptr_fieldno): Likewise.
5923 (set_type_vptr_fieldno): Likewise.
5924 (internal_type_vptr_basetype): Likewise.
5925 (set_type_vptr_basetype): Likewise.
5926 (get_vptr_fieldno): Likewise.
5927 (is_integral_type): Likewise.
5928 (is_scalar_type): Likewise.
5929 (is_scalar_type_recursive): Likewise.
5930 (distance_to_ancestor): Likewise.
5931 (is_unique_ancestor_worker): Likewise.
5932 (check_types_equal): Likewise.
5933 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
5934
5935 2015-07-14 Iain Buclaw <ibuclaw@gdcproject.org>
5936
5937 * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
5938 also test for language_d.
5939 (dwarf2_compute_name): Likewise.
5940 (read_func_scope): Likewise.
5941 (read_structure_type): Likewise.
5942 (new_symbol_full): Likewise.
5943 (determine_prefix): Likewise.
5944 (read_import_statement): Use dot as the separator for language_d.
5945 (typename_concat): Likewise, but don't prefix the D main function.
5946
5947 2015-07-14 Peter Bergner <bergner@vnet.ibm.com>
5948
5949 * nat/linux-namespaces.c (setns): Rename from this ...
5950 (do_setns): ... to this. Support calling setns if it exists.
5951 (mnsh_handle_setns): Call do_setns.
5952
5953 2015-07-13 Yao Qi <yao.qi@linaro.org>
5954
5955 * exec.c (exec_file_attach): Add period at the end of error
5956 message.
5957
5958 2015-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
5959
5960 * tui/tui-win.c (window_name_completer): New function.
5961 (focus_completer): Call window_name_completer. All old content
5962 moved into window_name_completer.
5963 (winheight_completer): New function.
5964 (_initialize_tui_win): Rename variable. Add completer to
5965 winheight command. Update doc string on winheight.
5966
5967 2015-07-12 Sandra Loosemore <sandra@codesourcery.com>
5968
5969 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
5970 all nios2 mach variants.
5971
5972 2015-07-10 Kevin Buettner <kevinb@redhat.com>
5973
5974 * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
5975 of target_read_memory.
5976
5977 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
5978
5979 * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
5980 string copy.
5981 (parse_scrolling_args): Likewise.
5982
5983 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
5984
5985 * tui/tui-win.c (focus_completer): Don't duplicate the tui window
5986 names in this function.
5987
5988 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
5989
5990 * tui/tui-data.h (SRC_NAME): Convert to lower case.
5991 (CMD_NAME): Likewise.
5992 (DATA_NAME): Likewise.
5993 (DISASSEM_NAME): Likewise.
5994 * tui/tui-win.c (tui_set_focus): Window names are now lower case.
5995 (tui_set_win_height): Likewise.
5996 (parse_scrolling_args): Likewise.
5997
5998 2015-07-10 Markus Metzger <markus.t.metzger@intel.com>
5999
6000 * record-btrace.c (record_btrace_goto_begin)
6001 (record_btrace_goto_end, record_btrace_goto): Move call to
6002 print_stack_frame ...
6003 (record_btrace_set_replay): ... here. Set stop_pc.
6004 * record-full.c (record_full_goto_entry): Set stop_pc.
6005
6006 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6007
6008 * NEWS: Mention support for tracepoints on aarch64-linux.
6009
6010 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6011
6012 * linux-aarch64-low.c (aarch64_supports_tracepoints): New
6013 function. Return 1.
6014 (the_low_target): Install it.
6015
6016 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6017
6018 * gdb.trace/backtrace.exp: Set registers for aarch64 target.
6019 * gdb.trace/collection.exp: Likewise.
6020 * gdb.trace/mi-trace-frame-collected.exp: Likewise.
6021 * gdb.trace/mi-trace-unavailable.exp: Likewise.
6022 * gdb.trace/report.exp: Likewise.
6023 * gdb.trace/trace-break.exp: Likewise.
6024 * gdb.trace/unavailable.exp: Likewise.
6025 * gdb.trace/while-dyn.exp: Likewise.
6026
6027 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6028
6029 * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
6030 (aarch64_gen_return_address): New function.
6031 (aarch64_gdbarch_init): Hook it.
6032
6033 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6034
6035 * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
6036 swallow NOT_AVAILABLE_ERROR.
6037 (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
6038 available_p is not set.
6039 (aarch64_stub_frame_unwind_stop_reason): New function.
6040 (aarch64_stub_unwind): Install it.
6041
6042 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6043
6044 * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
6045 field.
6046 (aarch64_make_prologue_cache_1): New function, factored out from
6047 aarch64_make_prologue_cache. Do not allocate cache. Set
6048 available_p.
6049 (aarch64_make_prologue_cache): Reimplement wrapping
6050 aarch64_make_prologue_cache_1, and swallowing
6051 NOT_AVAILABLE_ERROR.
6052 (aarch64_prologue_frame_unwind_stop_reason): New function.
6053 Return UNWIND_UNAVAILABLE if available_p is not set.
6054 (aarch64_prologue_unwind): Install it.
6055 (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
6056 checks into aarch64_prologue_frame_unwind_stop_reason. Call
6057 frame_id_build_unavailable_stack if available_p is not set.
6058
6059 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6060
6061 * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
6062 fields.
6063 (aarch64_scan_prologue): Set prev_pc.
6064 (aarch64_make_prologue_cache): Set func.
6065 (aarch64_make_stub_cache): Set prev_pc.
6066 (aarch64_prologue_this_id): Remove local variables id, pc and
6067 func. Read prev_pc and func from cache.
6068 (aarch64_stub_this_id): Read prev_pc from cache.
6069
6070 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6071
6072 * aarch64-tdep.c (aarch64_make_stub_cache): Update comment. New
6073 argument this_cache. Remove unused local variables reg and
6074 unwound_fp. Return early if this_cache is already set. Set
6075 this_cache.
6076 (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
6077
6078 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6079
6080 * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
6081 New argument this_cache. Return early if this_cache is already
6082 set. Set this_cache.
6083 (aarch64_prologue_this_id): Update call to
6084 aarch64_make_prologue_cache.
6085 (aarch64_prologue_prev_register): Likewise.
6086 (aarch64_normal_frame_base): Likewise.
6087
6088 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6089
6090 * c-valprint.c (c_val_print): Factor out memberptr printing code
6091 from c_val_print to ...
6092 (c_val_print_memberptr): ... this new function.
6093
6094 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6095
6096 * c-valprint.c (c_val_print): Factor out int printing code to ...
6097 (c_val_print_int): ... this new function.
6098
6099 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6100
6101 * c-valprint.c (c_val_print): Factor out struct and union
6102 printing code to ...
6103 (c_val_print_struct): ... this new function ...
6104 (c_val_print_union): ... and this new function.
6105
6106 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6107
6108 * c-valprint.c (c_val_print): Factor out pointer printing code
6109 to ...
6110 (c_val_print_ptr): ... this new function.
6111
6112 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6113
6114 * c-valprint.c (c_valprint): Factor our array printing code from
6115 c_val_print to ...
6116 (c_val_print_array): ... this new function.
6117
6118 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6119
6120 * c-valprint.c (c_val_print): Factor out pointer printing code
6121 to ...
6122 (print_unpacked_pointer): ... this new function.
6123
6124 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6125
6126 * c-valprint.c (c_val_print): Remove an assignment to i and move
6127 its declaration.
6128
6129 2015-07-09 Yao Qi <yao.qi@linaro.org>
6130
6131 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
6132 argument ptid. Update comments. Caller update.
6133
6134 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
6135
6136 * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
6137 mnt packets.
6138
6139 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
6140
6141 * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
6142
6143 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
6144
6145 * progspace.c (delete_program_space): Add missing spaces.
6146
6147 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
6148
6149 * inferior.c (delete_inferior_1): Rename to ...
6150 (delete_inferior): ..., remove 'silent' parameter, delete
6151 program space when unused and remove call to prune_program_spaces.
6152 Remove the old, unused, delete_inferior.
6153 (delete_inferior_silent): Remove.
6154 (prune_inferiors): Change call from delete_inferior_1 to
6155 delete_inferior and remove 'silent' parameter. Remove call to
6156 prune_program_spaces.
6157 (remove_inferior_command): Idem.
6158 * inferior.h (delete_inferior_1): Rename to...
6159 (delete_inferior): ..., remove 'silent' parameter and remove the
6160 original delete_inferior.
6161 (delete_inferior_silent): Remove.
6162 * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
6163 delete_inferior_1 to delete_inferior and remove 'silent'
6164 parameter.
6165 * progspace.c (prune_program_spaces): Remove.
6166 (pspace_empty_p): Rename to...
6167 (program_space_empty_p): ... and make non-static.
6168 (delete_program_space): New.
6169 * progspace.h (prune_program_spaces): Remove declaration.
6170 (program_space_empty_p): New declaration.
6171 (delete_program_space): New declaration.
6172 * monitor.c (monitor_close): Replace call to
6173 delete_thread_silent and delete_inferior_silent with
6174 discard_all_inferiors.
6175
6176 2015-07-08 Patrick Palka <patrick@parcs.ath.cx>
6177
6178 * defs.h (deprecated_register_changed_hook): Remove prototype.
6179 * interps.c (clear_iterpreter_hooks): Remove reference to
6180 deprecated_register_changed_hook.
6181 * top.c (deprecated_register_changed_hook): Remove prototype.
6182 * valops.c (value_assign): Remove reference to
6183 deprecated_register_changed_hook.
6184 * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
6185 Add comment documenting the function.
6186 (tui_register_changed_observer): Define.
6187 (tui_install_hooks): Remove reference to
6188 deprecated_register_changed_hook. Set
6189 tui_register_changed_observer.
6190 (tui_remove_hooks): Remove reference to
6191 deprecated_register_changed_hook. Unset
6192 tui_register_changed_observer.
6193
6194 2015-07-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6195
6196 PR compile/18484
6197 * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
6198
6199 2015-07-08 Robert O'Callahan <robert@ocallahan.org>
6200
6201 PR exp/18617
6202 * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
6203
6204 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
6205
6206 * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
6207
6208 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
6209
6210 * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
6211 Use safe_strerror() instead of strerror().
6212
6213 2015-07-07 Yao Qi <yao.qi@linaro.org>
6214
6215 * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
6216 * features/arm-with-m-fpa-layout.c: Regenerated.
6217 * features/arm-with-m-vfp-d16.xml: Likewise.
6218 * features/arm-with-m-vfp-d16.c: Regenerated.
6219 * features/arm-with-m.xml: Likewise.
6220 * features/arm-with-m.c: Regenerated.
6221 * features/arm-with-neon.xml: Likewise.
6222 * features/arm-with-neon.c: Regenerated.
6223 * features/arm-with-vfpv2.xml: Likewise.
6224 * features/arm-with-vfpv2.c: Regenerated.
6225 * features/arm-with-vfpv3.xml: Likewise.
6226 * features/arm-with-vfpv3.c: Regenerated.
6227
6228 2015-07-07 Yao Qi <yao.qi@linaro.org>
6229
6230 * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
6231 arm-linux-nat.c.
6232 * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
6233 elf/external.h.
6234 (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
6235 if target is 32-bit.
6236 (store_gregs_to_thread): Call aarch32_gp_regcache_collect
6237 if target is 32-bit.
6238 (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
6239 if target is 32-bit.
6240 (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
6241 if target is 32-bit.
6242 (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
6243 (aarch64_linux_read_description): Return the right target
6244 description.
6245 * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
6246 * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6247 * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
6248 arm-linux-tdep.o.
6249
6250 2015-07-07 Yao Qi <yao.qi@linaro.org>
6251
6252 * aarch32-linux-nat.c: New file.
6253 * aarch32-linux-nat.h: New file.
6254 * arm-linux-nat.c: Include aarch32-linux-nat.h.
6255 (fetch_regs): Move code to aarch32-linux-nat.c. Call
6256 aarch32_gp_regcache_supply.
6257 (store_regs): Move code to aarch32-linux-nat.c. Call
6258 aarch32_gp_regcache_collect.
6259 (fetch_vfp_regs): Move code to aarch32-linux-nat.c. Call
6260 aarch32_vfp_regcache_supply.
6261 (store_vfp_regs): Move code to aarch32-linux-nat.c. Call
6262 aarch32_vfp_regcache_collect.
6263 * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6264
6265 2015-07-07 Yao Qi <yao.qi@linaro.org>
6266
6267 * arm-linux-nat.c (store_fpregister): Remove.
6268 (store_register): Likewise.
6269 (fetch_fpregister): Likewise.
6270 (fetch_register): Likewise.
6271 (arm_linux_store_inferior_registers): Call store_regs and
6272 store_fpregs instead.
6273 (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
6274 fetch_regs instead.
6275
6276 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6277
6278 * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
6279 and focus commands.
6280
6281 2015-07-06 Joel Brobecker <brobecker@adacore.com>
6282
6283 * NEWS: Create a new section for the next release branch.
6284 Rename the section of the current branch, now that it has
6285 been cut.
6286
6287 2015-07-06 Joel Brobecker <brobecker@adacore.com>
6288
6289 GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
6290 * version.in: Bump version to 7.10.50.DATE-cvs.
6291
6292 2015-07-06 Luis Machado <lgustavo@codesourcery.com>
6293
6294 * breakpoint.c (remove_breakpoint_1): Don't handle permanent
6295 breakpoints in a special way.
6296 (remove_breakpoint): Likewise.
6297 (mark_breakpoints_out): Likewise.
6298
6299 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6300
6301 * doc/gdb.texinfo (TUI): Add comma after @xref.
6302
6303 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6304
6305 * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
6306 instead of casting the structure type.
6307
6308 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
6309
6310 * valops.c (search_struct_field): Remove OFFSET parameter.
6311 (value_cast_structs): Adjust calls to search_struct_field.
6312 (value_struct_elt): Same.
6313 (find_overload_match): Same.
6314
6315 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
6316
6317 * value.c (value_fetch_lazy): Update comment, change return
6318 value to void.
6319 * value.h (value_fetch_lazy): Change return value to void.
6320
6321 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6322
6323 * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
6324 (tui_win_name): Make parameter and result const.
6325 * tui/tui-data.h (tui_win_name): Make parameter and result const.
6326
6327 2015-07-06 Patrick Palka <patrick@parcs.ath.cx>
6328
6329 * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
6330 use printf_unfiltered.
6331 (set_mpx_cmd): Add missing trailing space to command string
6332 literal.
6333 (_initialize_i386_tdep): Give the "mpx" prefix command its
6334 correct name.
6335
6336 2015-07-02 Kevin Buettner <kevinb@redhat.com>
6337
6338 * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
6339 (enum rx_frame_type): New.
6340 (struct rx_prologue): Add new field `frame_type'.
6341 (rx_analyze_prologue): Add `frame_type' parameter. Cache this
6342 parameter in the prologue struct. Add code for recording
6343 locations of PC and PSW for fast interrupt and exception frames.
6344 (rx_skip_prologue): Adjust call to rx_analyze_prologue.
6345 (rx_analyze_frame_prologue): Add `frame_type' parameter.
6346 (rx_frame_type): New function.
6347 (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
6348 (rx_frame_this_id): Rename parameter `this_prologue_cache' to
6349 `this_cache'.
6350 (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
6351 `this_cache'. Add cases for RX_FRAME_TYPE_EXCEPTION and
6352 RX_FRAME_TYPE_FAST_INTERRUPT.
6353 (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
6354 (rx_frame_sniffer, rx_exception_sniffer): New functions.
6355 (rx_frame_unwind): Use rx_frame_sniffer instead of
6356 default_frame_sniffer.
6357 (rx_frame_unwind): New unwinder.
6358 (rx_gdbarch_init): Register new unwinder.
6359
6360 2015-07-02 Kevin Buettner <kevinb@redhat.com>
6361
6362 * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
6363 (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
6364 (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
6365 and RX_FPSW_REGNUM.
6366 (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
6367
6368 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6369
6370 Fix GCC false warning.
6371 * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
6372
6373 2015-07-02 Yao Qi <yao.qi@linaro.org>
6374
6375 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
6376 typo in the debugging message.
6377
6378 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6379
6380 * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
6381 (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
6382 (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
6383 (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
6384 (btrace_maint_clear): New.
6385 (btrace_fetch, btrace_clear): Call btrace_maint_clear.
6386 (pt_print_packet, btrace_maint_decode_pt)
6387 (btrace_maint_update_pt_packets, btrace_maint_update_packets)
6388 (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
6389 (maint_btrace_packet_history_cmd)
6390 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
6391 (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
6392 (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
6393 (maint_info_btrace_cmd, _initialize_btrace): New.
6394 * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
6395 (btrace_maint_packet_history, btrace_maint_info): New.
6396 (btrace_thread_info) <maint>: New.
6397 * NEWS: Announce it.
6398
6399 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6400
6401 * btrace.c (btrace_fetch): Append the new trace data.
6402 (btrace_clear): Clear the stored trace data.
6403 * btrace.h (btrace_thread_info) <data>: New.
6404 * common/btrace-common.h (btrace_data_clear)
6405 (btrace_data_append): New.
6406 * common/btrace-common.c (btrace_data_clear)
6407 (btrace_data_append): New.
6408
6409 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6410
6411 * nat/linux-btrace.c (linux_enable_bts): Check for
6412 PERF_ATTR_SIZE_VER5.
6413 Check for data_offset and data_size fields. Use them.
6414
6415 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6416
6417 * NEWS: Announce new commands "record btrace pt" and "record pt".
6418 Announce new options "set|show record btrace pt buffer-size".
6419 * btrace.c: Include "rsp-low.h".
6420 Include "inttypes.h".
6421 (btrace_add_pc): Add forward declaration.
6422 (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
6423 (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
6424 (btrace_compute_ftrace_pt): New.
6425 (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
6426 (check_xml_btrace_version): Update version check.
6427 (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
6428 (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
6429 (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
6430 (btrace_pt_children): New.
6431 (btrace_children): Add support for "pt".
6432 (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
6433 (btrace_conf_children): Add support for "pt".
6434 * btrace.h: Include "intel-pt.h".
6435 (btrace_pt_error): New.
6436 * common/btrace-common.c (btrace_format_string, btrace_data_fini)
6437 (btrace_data_empty): Support BTRACE_FORMAT_PT.
6438 * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
6439 (struct btrace_config_pt): New.
6440 (struct btrace_config)<pt>: New.
6441 (struct btrace_data_pt_config, struct btrace_data_pt): New.
6442 (struct btrace_data)<pt>: New.
6443 * features/btrace-conf.dtd (btrace-conf)<pt>: New.
6444 (pt): New.
6445 * features/btrace.dtd (btrace)<pt>: New.
6446 (pt, pt-config, cpu): New.
6447 * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
6448 (perf_event_pt_event_type, kernel_supports_pt)
6449 (linux_supports_pt): New.
6450 (linux_supports_btrace): Support BTRACE_FORMAT_PT.
6451 (linux_enable_bts): Free tinfo on error.
6452 (linux_enable_pt): New.
6453 (linux_enable_btrace): Support BTRACE_FORMAT_PT.
6454 (linux_disable_pt): New.
6455 (linux_disable_btrace): Support BTRACE_FORMAT_PT.
6456 (linux_fill_btrace_pt_config, linux_read_pt): New.
6457 (linux_read_btrace): Support BTRACE_FORMAT_PT.
6458 * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
6459 (struct btrace_target_info)<pt>: New.
6460 * record-btrace.c (set_record_btrace_pt_cmdlist)
6461 (show_record_btrace_pt_cmdlist): New.
6462 (record_btrace_print_pt_conf): New.
6463 (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
6464 (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
6465 (cmd_record_btrace_pt_start): New.
6466 (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
6467 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
6468 (_initialize_record_btrace): Add new commands.
6469 * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
6470 (remote_protocol_features): Add "Qbtrace:pt".
6471 Add "Qbtrace-conf:pt:size".
6472 (remote_supports_btrace): Support BTRACE_FORMAT_PT.
6473 (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
6474 (remote_enable_btrace): Support BTRACE_FORMAT_PT.
6475 (_initialize_remote): Add new commands.
6476
6477 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6478
6479 * configure.ac: check for libipt
6480 * configure: Regenerate.
6481 * config.in: Regenerate.
6482 * Makefile.in (LIBIPT): New.
6483 (CLIBS): Add $LIBIPT.
6484 * NEWS: document new configure options
6485
6486 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6487
6488 * compile/compile-object-load.c (compile_object_load): Replace debug
6489 message "lookup undefined ELF symbol" by 3 more specific messages.
6490
6491 2015-07-01 Kevin Buettner <kevinb@redhat.com>
6492
6493 * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
6494 (rl78_register_type): Add case for RL78_PSW_REGNUM.
6495 (rl78_gdbarch_init): Initialize rl78_psw_type.
6496
6497 2015-07-01 Patrick Palka <patrick@parcs.ath.cx>
6498
6499 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
6500 Update commentary. Always refresh the registers when frame
6501 information has changed.
6502 * tui/tui-stack.c (tui_show_frame_info): Update commentary.
6503 Change return type to int. Return 1 if frame information has
6504 changed, 0 otherwise.
6505 (tui_before_prompt): Update commentary.
6506 * tui/tui-stack.h (tui_show_frame_info): Change return type to
6507 int.
6508
6509 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
6510
6511 PR tui/13378
6512 * frame.c (select_frame): Remove reference to
6513 deprecated_selected_frame_level_changed_hook.
6514 * frame.h (deprecated_selected_frame_level_changed_hook): Remove
6515 declaration.
6516 * stack.c (deprecated_selected_frame_level_changed_hook):
6517 Likewise.
6518 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
6519 Rename to ...
6520 (tui_refresh_frame_and_register_information): ... this. Bail
6521 out if there is no stack. Don't update register information
6522 unless registers_too_p is true.
6523 (tui_print_frame_info_listing_hook): Rename to ...
6524 (tui_dummy_print_frame_info_listing_hook): ... this.
6525 (tui_before_prompt): New function.
6526 (tui_normal_stop): New function.
6527 (tui_before_prompt_observer): New observer.
6528 (tui_normal_stop_observer): New observer.
6529 (tui_install_hooks): Set
6530 deprecated_print_frame_info_listing_hook to
6531 tui_dummy_print_frame_info_listing_hook. Register
6532 tui_before_prompt_observer to call tui_before_prompt and
6533 tui_normal_stop_observer to call tui_normal_stop. Remove
6534 reference to deprecated_selected_frame_level_changed_hook.
6535 (tui_remove_hooks): Detach and unset tui_before_prompt_observer
6536 and tui_normal_stop_observer. Remove reference to
6537 deprecated_selected_frame_level_changed_hook.
6538
6539 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
6540
6541 PR tui/13378
6542 * tui/tui-stack.c (tui_set_locator_info): Change prototype to
6543 return an int instead of void. Return whether the locator
6544 window has changed.
6545 (tui_show_frame_info): If the locator info has not changed, then
6546 bail out early to avoid refreshing the windows.
6547
6548 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
6549
6550 * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
6551 LOCATOR_WIN to tui_alloc_content.
6552
6553 2015-06-30 Yao Qi <yao.qi@linaro.org>
6554
6555 PR tdep/18605
6556 * arm-tdep.c (arm_get_next_pc_raw): Break for media
6557 instructions.
6558
6559 2015-06-29 Kevin Buettner <kevinb@redhat.com>
6560
6561 * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
6562 (rx_dwarf_reg_to_regnum): New function.
6563 (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum. Use dwarf2
6564 unwinding.
6565
6566 2015-06-29 Pedro Alves <palves@redhat.com>
6567
6568 PR threads/18127
6569 * infcall.c (run_inferior_call): On infcall success, if the thread
6570 was marked stopped before, reset it back to stopped.
6571 * infrun.c (resume): Don't suppress the set_running calls when
6572 doing an infcall.
6573 (normal_stop): Only discard the finish_thread_state cleanup if the
6574 infcall succeeded.
6575
6576 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
6577
6578 * MAINTAINERS (Write After Approval): Update my email address.
6579
6580 2015-06-26 Keith Seitz <keiths@redhat.com>
6581 Doug Evans <dje@google.com>
6582
6583 PR 16253
6584 * block.c (block_lookup_symbol): For non-function blocks,
6585 continue to search for a symbol with an exact domain match
6586 Otherwise, return any previously found "best domain" symbol.
6587 (block_lookup_symbol_primary): Likewise.
6588
6589 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
6590
6591 * NEWS: Mention the new option "history remove-duplicates".
6592 * top.c (history_remove_duplicates): New static variable.
6593 (show_history_remove_duplicates): New static function.
6594 (gdb_add_history): Conditionally remove duplicate history
6595 entries.
6596 (init_main): Add "history remove-duplicates" option.
6597
6598 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
6599
6600 * tui/tui-win.c (focus_completer): New static function.
6601 (_initialize_tui_win): Set the completion function of the
6602 "focus" command to focus_completer.
6603
6604 2015-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6605
6606 * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
6607 and language_asm..
6608 * symtab.c (find_function_start_sal): Likewise.
6609
6610 2015-06-25 Gary Benson <gbenson@redhat.com>
6611
6612 * solib.c (solib_find_1): Set local variable sysroot to NULL if
6613 it is the empty string after trailing slashes have been stripped.
6614
6615 2015-06-25 Gary Benson <gbenson@redhat.com>
6616
6617 * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
6618 * infrun.c (follow_exec): Likewise.
6619 * remote.c (remote_filesystem_is_local): Likewise.
6620 * solib.c (solib_find_1): Likewise.
6621
6622 2015-06-24 Keith Seitz <keiths@redhat.com>
6623
6624 * build-id.c (build_id_to_debug_bfd): Add cleanup to free
6625 return value from lrealpath.
6626
6627 2015-06-24 Mike Frysinger <vapier@gentoo.org>
6628
6629 * remote-sim.c (gdbsim_open): Move sysroot update to the top.
6630
6631 2015-06-24 Mike Frysinger <vapier@gentoo.org>
6632
6633 * remote-sim.c: Include gdb_bfd.h.
6634 (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
6635 Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
6636
6637 2015-06-24 Yao Qi <yao.qi@linaro.org>
6638
6639 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
6640 set_gdbarch_get_siginfo_type.
6641 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
6642 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
6643 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
6644 * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
6645 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
6646 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6647 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
6648 * linux-tdep.c (linux_get_siginfo_type): Change it to static.
6649 (linux_init_abi): Call set_gdbarch_get_siginfo_type.
6650 * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
6651
6652 2015-06-24 Gary Benson <gbenson@redhat.com>
6653
6654 * common/buffer.c (stdint.h): Do not include.
6655 * common/print-utils.c (stdint.h): Likewise.
6656 * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
6657 * compile/compile-c-types.c (gdb_assert.h): Likewise.
6658 * ft32-tdep.c (gdb_assert.h): Likewise.
6659 * guile/scm-utils.c (stdint.h): Likewise.
6660 * i386-linux-tdep.c (stdint.h): Likewise.
6661 * i386-tdep.c (stdint.h): Likewise.
6662 * nat/linux-btrace.c (stdint.h): Likewise.
6663 * nat/linux-btrace.h (stdint.h): Likewise.
6664 * nat/linux-ptrace.c (stdint.h): Likewise.
6665 * nat/mips-linux-watch.h (stdint.h): Likewise.
6666 * ppc-linux-nat.c (stdint.h): Likewise.
6667 * python/python-internal.h (stdint.h): Likewise.
6668 * stub-termcap.c (stdlib.h): Likewise.
6669 * target/target.h (stdint.h): Likewise.
6670 * xtensa-linux-nat.c (stdint.h): Likewise.
6671
6672 2015-06-23 Patrick Palka <patrick@parcs.ath.cx>
6673
6674 * top.c (init_history): Look at errno after calling strtol to
6675 properly map large GDBHISTSIZE values to infinity.
6676
6677 2015-06-23 Doug Evans <dje@google.com>
6678
6679 * inferior.h (struct inferior_suspend_state): Delete, unused.
6680 All references deleted.
6681
6682 2015-06-23 Mike Frysinger <vapier@gentoo.org>
6683
6684 * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
6685 (microblaze_push_dummy_call): Likewise.
6686 (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
6687 and set_gdbarch_push_dummy_call.
6688
6689 2015-06-23 Yao Qi <yao.qi@linaro.org>
6690
6691 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
6692 Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
6693 (amd64_linux_store_inferior_registers): Likewise.
6694 * arm-linux-nat.c (fetch_fpregister): Likewise.
6695 (fetch_fpregs, store_fpregister): Likewise.
6696 (store_fpregister, store_fpregs): Likewise.
6697 (fetch_register, fetch_regs): Likewise.
6698 (store_register, store_regs): Likewise.
6699 (fetch_vfp_regs, store_vfp_regs): Likewise.
6700 (arm_linux_read_description): Check have_ptrace_getregset is
6701 TRIBOOL_UNKNOWN. Set have_ptrace_getregset to TRIBOOL_TRUE
6702 or TRIBOOL_FALSE.
6703 * i386-linux-nat.c (fetch_xstateregs): Check
6704 have_ptrace_getregset is not TRIBOOL_TRUE.
6705 (store_xstateregs): Likewise.
6706 * linux-nat.c (have_ptrace_getregset): Change its type to
6707 enum tribool.
6708 * linux-nat.h (tribool): New enum.
6709 * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
6710 Check whether have_ptrace_getregset is TRIBOOL_TRUE.
6711
6712 2015-06-19 Doug Evans <dje@google.com>
6713
6714 * NEWS: Mention Sun's version of stabs is no longer supported.
6715 * elfread.c (free_elfinfo): Delete. All uses updated.
6716 (elfstab_offset_sections): Delete. All uses updated.
6717 * gdb-stabs.h (stab_section_info): Delete. All uses updated.
6718 * psympriv.h (partial_symtab) <section_offsets>: Delete.
6719 All uses updated.
6720 * psymtab.c (start_psymtab_common): Delete arg section_offsets.
6721 All callers updated.
6722
6723 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
6724
6725 * common/rsp-low.c (needs_escaping): New.
6726 (remote_escape_output): Add unit_size parameter. Refactor to
6727 support multi-byte addressable units. Rename parameters.
6728 * common/rsp-low.h (remote_escape_output): Add unit_size
6729 parameter and rename others. Update doc.
6730 * remote.c (align_for_efficient_write): New.
6731 (remote_write_bytes_aux): Add unit_size parameter and use it.
6732 Rename some variables. Update doc.
6733 (remote_xfer_partial): Get unit size and use it.
6734 (remote_read_bytes_1): Add unit_size parameter and use it.
6735 Rename some variables. Update doc.
6736 (remote_write_bytes): Same.
6737 (remote_xfer_live_readonly_partial): Same.
6738 (remote_read_bytes): Same.
6739 (remote_flash_write): Update call to remote_write_bytes_aux.
6740 (remote_write_qxfer): Update call to remote_escape_output.
6741 (remote_search_memory): Same.
6742 (remote_hostio_pwrite): Same.
6743
6744 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
6745
6746 * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
6747 locations as inserted.
6748 Update and expand comment about permanent locations.
6749 (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
6750 Move comment to add_location_to_breakpoint.
6751 (update_global_location_list): Don't error out if a permanent
6752 breakpoint is not marked inserted.
6753 Don't error out if a non-permanent breakpoint location is inserted on
6754 top of a permanent breakpoint.
6755
6756 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
6757
6758 * breakpoint.c (make_breakpoint_permanent): Remove unused
6759 function.
6760 * breakpoint.h (make_breakpoint_permanent): Remove declaration.
6761
6762 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
6763
6764 PR gdb/16999
6765 * NEWS: Mention new GDBHISTSIZE behavior.
6766 * top.c (init_history): For null or out-of-range GDBHISTSIZE,
6767 set history size to unlimited. Ignore non-numeric GDBHISTSIZE.
6768
6769 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
6770
6771 * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
6772 * top.c (init_history): Read from GDBHISTSIZE instead of
6773 HISTSIZE.
6774 (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
6775
6776 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
6777
6778 * top.c (gdb_safe_append_history): Do not call
6779 history_truncate_file if the history is not stifled.
6780
6781 2015-06-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
6782
6783 * syscalls/s390-linux.xml: Add syscalls 344 through 354.
6784 * syscalls/s390x-linux.xml: Likewise.
6785
6786 2015-06-16 Michael Eager <eager@eagercon.com>
6787
6788 * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
6789
6790 2015-06-16 Patrick Palka <patrick@parcs.ath.cx>
6791
6792 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
6793 target_terminal_ours_for_output() before calling
6794 tui_show_frame_info(), and restore the original terminal
6795 settings afterwards.
6796
6797 2015-06-16 Martin Simmons <martin@lispworks.com> (tiny patch)
6798
6799 * arm-linux-nat.c: Include nat/linux-ptrace.h.
6800
6801 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
6802
6803 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
6804 memory unit size.
6805 (mi_cmd_data_write_memory_bytes): Same.
6806
6807 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
6808
6809 * corefile.c (write_memory): Update doc.
6810 * gdbcore.h (write_memory): Same.
6811
6812 2015-06-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6813
6814 * linux-tdep.c (enum filterflags): Make it from anonymous enum.
6815 (dump_mapping_p): Use it for parameter filterflags.
6816 (linux_find_memory_regions_full): Use it for variable filterflags.
6817
6818 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
6819 Jan Kratochvil <jan.kratochvil@redhat.com>
6820
6821 Merge multiple hex conversions.
6822 * monitor.c: Include rsp-low.h.
6823 (fromhex): Remove definition.
6824
6825 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
6826 Jan Kratochvil <jan.kratochvil@redhat.com>
6827
6828 Move utility functions to common/.
6829 * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
6830 Move defs to common/common-utils.c.
6831 * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
6832 (skip_to_space_const): Move decls to common/common-utils.h.
6833 * common/common-defs.h: Move include of common-types.h before
6834 common-utils.h.
6835 * common/common-utils.c: Include host-defs.h and ctype.h.
6836 (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
6837 from utils.c.
6838 (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
6839 cli/cli-utils.c.
6840 * common/common-utils.h (strtoulst): Move decl from utils.h.
6841 (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
6842 Move from cli/cli-utils.h.
6843 * common/host-defs.h: Include limits.h.
6844 (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
6845 (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
6846 * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
6847 common/common-utils.h.
6848 * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
6849 (strtoulst): Move to common/common-utils.c.
6850 * utils.h (strtoulst): Moved decl to common/common-utils.h.
6851
6852 2015-06-15 Yao Qi <yao.qi@linaro.org>
6853
6854 * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
6855
6856 2015-06-10 Jon Turney <jon.turney@dronecode.org.uk>
6857
6858 * build-id.c: Don't include elf-bfd.h.
6859 (build_id_bfd_get): Use bfd_build_id.
6860 (build_id_verify): Ditto.
6861 * build-id.h: Ditto.
6862 (find_separate_debug_file_by_buildid): Ditto.
6863 * python/py-objfile.c: Don't include elf-bfd.h.
6864 (objfpy_get_build_id) Use bfd_build_id.
6865 (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
6866 * coffread.c: Include build-id.h.
6867 (coff_symfile_read): Try find_separate_debug_file_by_buildid.
6868
6869 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
6870
6871 * windows-nat.c (do_windows_fetch_inferior_registers)
6872 (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
6873 conditional with __CYGWIN__.
6874
6875 2015-06-13 Andrew Burgess <andrew.burgess@embecosm.com>
6876
6877 * completer.c: Add arch-utils.h include.
6878 (enum reg_completer_targets): New enum.
6879 (reg_or_group_completer_1): New function containing old
6880 reg_or_group_completer, add and use new parameter to control what
6881 is completed on. Use get_current_arch rather than architecture of
6882 currently selected frame.
6883 (reg_or_group_completer): Call new reg_or_group_completer_1.
6884 (reggroup_completer): Call new reg_or_group_completer_1.
6885 * completer.h (reggroup_completer): Add declaration.
6886 * tui/tui-regs.c: Add 'completer.h' include.
6887 (tui_reg_next_command): Renamed to...
6888 (tui_reg_next): ...this. Adjust parameters and return rather than
6889 display new group.
6890 (tui_reg_prev_command): Renamed to...
6891 (tui_reg_prev): ...this. Adjust parameters and return rather than
6892 display new group.
6893 (tui_reg_float_command): Delete.
6894 (tui_reg_general_command): Delete.
6895 (tui_reg_system_command): Delete.
6896 (tui_reg_command): Rewrite to perform switching of register group.
6897 Add header comment.
6898 (tuireglist): Remove.
6899 (tui_reggroup_completer): New function.
6900 (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
6901 creation of 'tui reg' command.
6902 * NEWS: Add comment about 'tui reg' changes.
6903
6904 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
6905
6906 * target.c (target_read): Consider addressable unit size when
6907 reading from a memory object.
6908 (read_memory_robust): Same.
6909 (read_whatever_is_readable): Same.
6910 (target_write_with_progress): Consider addressable unit size
6911 when writing to a memory object.
6912 * target.h (target_read): Update documentation.
6913 (target_write): Add documentation.
6914
6915 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
6916
6917 * arch-utils.h (default_addressable_memory_unit_size): New.
6918 * arch-utils.c (default_addressable_memory_unit_size): New.
6919 * gdbarch.sh (addressable_memory_unit_size): New.
6920 * gdbarch.h: Re-generate.
6921 * gdbarch.c: Re-generate.
6922
6923 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
6924
6925 * target.c (target_read): Rename variables and use
6926 TARGET_XFER_E_IO.
6927 (target_read_with_progress): Same.
6928 (read_memory_robust): Constify parameters and rename
6929 variables.
6930 (read_whatever_is_readable): Constify parameters,
6931 rename variables, adjust formatting.
6932 * target.h (read_memory_robust): Constify parameters.
6933
6934 2015-06-12 Ulrich Weigand <uweigand@de.ibm.com>
6935
6936 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
6937 synthetic (non-AltiVec) vector types.
6938 (ppc64_sysv_abi_return_value): Likewise.
6939
6940 2015-06-12 Antoine Tremblay <antoine.tremblay@ericsson.com>
6941
6942 PR breakpoints/16465
6943 * breakpoint.c (create_breakpoint): Save extra_string for
6944 pending breakpoints.
6945
6946 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
6947
6948 * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
6949 and bt_mask to CORE_ADDR.
6950
6951 2015-06-11 Gary Benson <gbenson@redhat.com>
6952
6953 * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
6954 (mnsh_recv_message): Likewise.
6955
6956 2015-06-11 Walfred Tedeschi <walfred.tedeschi@intel.com>
6957
6958 * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
6959 long long int and plongest instead of %ll.
6960
6961 2015-06-11 Gary Benson <gbenson@redhat.com>
6962
6963 * nat/linux-namespaces.c (gdb_wait.h): New include.
6964 (sys/wait.h): Do not include.
6965
6966 2015-06-10 Simon Marchi <simon.marchi@ericsson.com>
6967
6968 * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
6969 end_sequence is true.
6970
6971 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6972
6973 Code cleanup.
6974 * solib-target.c (library_list_start_list): Use explicit NULL
6975 comparison.
6976
6977 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6978
6979 * solib-target.c (library_list_start_list): Do not dereference
6980 variable version in its initialization. Make the VERSION check handle
6981 NULL.
6982 (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
6983
6984 2015-06-10 Gary Benson <gbenson@redhat.com>
6985
6986 * NEWS: Announce support for direct access of executable and
6987 shared library files when attaching to inferiors in containers
6988 on GNU/Linux systems.
6989
6990 2015-06-10 Gary Benson <gbenson@redhat.com>
6991
6992 * remote.c (struct remote_state) <fs_pid>: New field.
6993 (new_remote_state): Initialize the above.
6994 (PACKET_vFile_setfs): New enum value.
6995 (remote_hostio_set_filesystem): New function.
6996 (remote_hostio_open): Call the above.
6997 (remote_hostio_unlink): Likewise.
6998 (remote_hostio_readlink): Likewise.
6999 (_initialize_remote): Register new "set/show remote
7000 hostio-setfs-packet" command.
7001 * NEWS: Announce new vFile:setfs packet.
7002
7003 2015-06-10 Gary Benson <gbenson@redhat.com>
7004
7005 * linux-nat.c (nat/linux-namespaces.h): New include.
7006 (fileio.h): Likewise.
7007 (linux_nat_filesystem_is_local): New function.
7008 (linux_nat_fileio_pid_of): Likewise.
7009 (linux_nat_fileio_open): Likewise.
7010 (linux_nat_fileio_readlink): Likewise.
7011 (linux_nat_fileio_unlink): Likewise.
7012 (linux_nat_add_target): Initialize to_filesystem_is_local,
7013 to_fileio_open, to_fileio_readlink and to_fileio_unlink.
7014 (_initialize_linux_nat): New "set/show debug linux-namespaces"
7015 commands.
7016 * NEWS: Mention new "set/show debug linux-namespaces" commands.
7017
7018 2015-06-10 Gary Benson <gbenson@redhat.com>
7019
7020 * target.h (struct inferior): New forward declaration.
7021 (struct target_ops) <to_filesystem_is_local>: Update comment.
7022 (struct target_ops) <to_fileio_open>: New argument inf.
7023 Update comment. All implementations updated.
7024 (struct target_ops) <to_fileio_unlink>: Likewise.
7025 (struct target_ops) <to_fileio_readlink>: Likewise.
7026 (target_filesystem_is_local): Update comment.
7027 (target_fileio_open): New argument inf. Update comment.
7028 (target_fileio_unlink): Likewise.
7029 (target_fileio_readlink): Likewise.
7030 (target_fileio_read_alloc): Likewise.
7031 (target_fileio_read_stralloc): Likewise.
7032 * target.c (target_fileio_open): New argument inf.
7033 Pass inf to implementation. Update debug printing.
7034 (target_fileio_unlink): Likewise.
7035 (target_fileio_readlink): Likewise.
7036 (target_fileio_read_alloc_1): New argument inf. Pass inf
7037 to target_fileio_open.
7038 (target_fileio_read_alloc): New argument inf. Pass inf to
7039 target_fileio_read_alloc_1.
7040 (target_fileio_read_stralloc): Likewise.
7041 * gdb_bfd.c (inferior.h): New include.
7042 (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
7043 argument with new argument "inferior". Pass inferior to
7044 target_fileio_open.
7045 (gdb_bfd_open): Supply inferior argument to
7046 gdb_bfd_iovec_fileio_open.
7047 * linux-tdep.c (linux_info_proc): Supply inf argument to
7048 relevant target_fileio calls.
7049 (linux_find_memory_regions_full): Likewise.
7050 (linux_fill_prpsinfo): Likewise.
7051 * remote.c (remote_filesystem_is_local): Supply inf
7052 argument to remote_hostio_open.
7053 (remote_file_put): Likewise.
7054 (remote_file_get): Likewise.
7055 (remote_file_delete): Supply inf argument to
7056 remote_hostio_unlink.
7057
7058 2015-06-10 Gary Benson <gbenson@redhat.com>
7059
7060 * inf-child.c (inf_child_fileio_open): Replace comment.
7061 (inf_child_fileio_pwrite): Likewise.
7062 (inf_child_fileio_pread): Likewise.
7063 (inf_child_fileio_fstat): Insert blank line before comment.
7064 (inf_child_fileio_close): Replace comment.
7065 (inf_child_fileio_unlink): Likewise.
7066 (inf_child_fileio_readlink): Likewise.
7067 * remote.c (remote_hostio_open): Likewise.
7068 (remote_hostio_pread): Likewise.
7069 (remote_hostio_pwrite): Likewise.
7070 (remote_hostio_close): Likewise.
7071 (remote_hostio_unlink): Likewise.
7072 (remote_hostio_readlink): Likewise.
7073 (remote_hostio_fstat): Likewise.
7074 (remote_filesystem_is_local): Likewise.
7075 * target.c (target_fileio_open): Likewise.
7076 (target_fileio_pwrite): Likewise.
7077 (target_fileio_pread): Likewise.
7078 (target_fileio_fstat): Insert blank line before comment.
7079 (target_fileio_close): Replace comment.
7080 (target_fileio_unlink): Likewise.
7081 (target_fileio_readlink): Likewise.
7082 (target_fileio_read_alloc): Likewise.
7083 (target_fileio_read_stralloc): Likewise.
7084
7085 2015-06-10 Gary Benson <gbenson@redhat.com>
7086
7087 * linux-thread-db.c (nat/linux-namespaces.h): New include.
7088 (check_pid_namespace_match): Use linux_ns_same rather than
7089 linux_proc_pid_get_ns to spot PID namespace mismatches.
7090 * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
7091 * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
7092
7093 2015-06-10 Gary Benson <gbenson@redhat.com>
7094
7095 * configure.ac (AC_CHECK_FUNCS): Add setns.
7096 * config.in: Regenerate.
7097 * configure: Likewise.
7098 * nat/linux-namespaces.h: New file.
7099 * nat/linux-namespaces.c: Likewise.
7100 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
7101 (linux-namespaces.o): New rule.
7102 * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
7103 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
7104 * config/arm/linux.mh (NATDEPFILES): Likewise.
7105 * config/i386/linux.mh (NATDEPFILES): Likewise.
7106 * config/i386/linux64.mh (NATDEPFILES): Likewise.
7107 * config/ia64/linux.mh (NATDEPFILES): Likewise.
7108 * config/m32r/linux.mh (NATDEPFILES): Likewise.
7109 * config/m68k/linux.mh (NATDEPFILES): Likewise.
7110 * config/mips/linux.mh (NATDEPFILES): Likewise.
7111 * config/pa/linux.mh (NATDEPFILES): Likewise.
7112 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
7113 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
7114 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
7115 * config/s390/linux.mh (NATDEPFILES): Likewise.
7116 * config/sparc/linux.mh (NATDEPFILES): Likewise.
7117 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
7118 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
7119 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
7120
7121 2015-06-10 Gary Benson <gbenson@redhat.com>
7122
7123 * utils.h (make_cleanup_close): Moved to common/filestuff.h.
7124 * utils.c (do_close_cleanup): Moved to common/filestuff.c.
7125 (make_cleanup_close): Likewise.
7126 * common/filestuff.h (make_cleanup_close): Moved from utils.h.
7127 * common/filestuff.c (do_close_cleanup): Moved from utils.c.
7128 (make_cleanup_close): Likewise.
7129
7130 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
7131
7132 * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
7133 from SuspendThread().
7134
7135 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
7136
7137 * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
7138 from OutputDebugString.
7139
7140 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
7141 Mircea Gherzan <mircea.gherzan@intel.com>
7142
7143 * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
7144 MPX_BT_MASK_32): New macros.
7145 (i386_mpx_set_bounds): New function that implements
7146 the command "set-mpx-bound".
7147 (i386_mpx_enabled): Helper function to test MPX availability.
7148 (i386_mpx_bd_base): Helper function to calculate the base directory
7149 address.
7150 (i386_mpx_get_bt_entry): Helper function to access a bound
7151 table entry.
7152 (i386_mpx_print_bounds): Effectively display bound information.
7153 (_initialize_i386_tdep): Add new commands to commands "set mpx" and
7154 "show mpx".
7155 (_initialize_i386_tdep):
7156 Add "bound" to the commands "show mpx" and "set mpx" commands.
7157 (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
7158 and "show mpx" commands.
7159 * NEWS: List new commands for MPX support.
7160
7161 2015-06-09 Gary Benson <gbenson@redhat.com>
7162
7163 * common/fileio.h (fileio_to_host_mode): New declaration.
7164 * common/fileio.c (fileio_to_host_mode): New Function.
7165 * inf-child.c (inf_child_fileio_open): Process mode argument
7166 with fileio_to_host_mode.
7167
7168 2015-06-09 Gary Benson <gbenson@redhat.com>
7169
7170 * common/fileio.c (fileio_mode_pack): Fix preprocessor
7171 conditional.
7172
7173 2015-06-05 Gary Benson <gbenson@redhat.com>
7174
7175 * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
7176 * remote.c (remote_filesystem_is_local): ...here.
7177
7178 2015-06-04 Yao Qi <yao.qi@linaro.org>
7179
7180 * gdbarch.c: Regenerate it.
7181
7182 2015-06-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7183
7184 * arch-utils.c (default_infcall_munmap): New.
7185 * arch-utils.h (default_infcall_munmap): New declaration.
7186 * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
7187 (munmap_list_free, munmap_listp_free_cleanup): New.
7188 (struct setup_sections_data): Add field munmap_list_headp.
7189 (setup_sections): Call munmap_list_add.
7190 (compile_object_load): New variable munmap_list_head, initialize
7191 setup_sections_data.munmap_list_headp, return munmap_list_head.
7192 * compile/compile-object-load.h (struct munmap_list): New declaration.
7193 (struct compile_module): Add field munmap_list_head.
7194 (munmap_list_free): New declaration.
7195 * compile/compile-object-run.c (struct do_module_cleanup): Add field
7196 munmap_list_head.
7197 (do_module_cleanup): Call munmap_list_free.
7198 (compile_object_run): Pass munmap_list_head to do_module_cleanup.
7199 * gdbarch.c: Regenerate.
7200 * gdbarch.h: Regenerate.
7201 * gdbarch.sh (infcall_munmap): New.
7202 * linux-tdep.c (linux_infcall_munmap): New.
7203 (linux_init_abi): Install it.
7204
7205 2015-06-02 Simon Marchi <simon.marchi@ericsson.com>
7206
7207 PR gdb/15564
7208 * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
7209
7210 2015-06-02 Yao Qi <yao.qi@linaro.org>
7211
7212 * i386-linux-nat.c: Include linux-nat.h.
7213
7214 2015-06-01 Andreas Schwab <schwab@linux-m68k.org>
7215 Jan Kratochvil <jan.kratochvil@redhat.com>
7216
7217 PR symtab/18392
7218 * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
7219 assertion.
7220 * dwarf2loc.c (chain_candidate): Likewise.
7221
7222 2015-06-01 Yao Qi <yao.qi@linaro.org>
7223
7224 * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
7225 (store_vfp_regs): Use PTRACE_SETREGSET.
7226
7227 2015-06-01 Yao Qi <yao.qi@linaro.org>
7228
7229 * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
7230 (fetch_fpregs): Likewise.
7231 * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
7232 (store_fpregs): Likewise.
7233
7234 2015-06-01 Yao Qi <yao.qi@linaro.org>
7235
7236 * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
7237 (fetch_regs): Likewise.
7238 (store_regs): Use PTRACE_SETREGSET.
7239 (store_register): Likewise.
7240
7241 2015-06-01 Yao Qi <yao.qi@linaro.org>
7242
7243 * arm-linux-nat.c (arm_linux_read_description): Check whether
7244 kernel supports PTRACE_GETREGSET.
7245
7246 2015-06-01 Yao Qi <yao.qi@linaro.org>
7247
7248 * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
7249 * linux-nat.c: ... here.
7250 * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
7251 to ...
7252 * linux-nat.h: ... here.
7253
7254 2015-06-01 Yao Qi <yao.qi@linaro.org>
7255
7256 * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
7257 * i386-linux-nat.c: Likewise.
7258 * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
7259 * s390-linux-nat.c: Include "nat/linux-ptrace.h".
7260 (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7261 * x86-linux-nat.c: Include "nat/linux-ptrace.h".
7262 * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7263
7264 2015-05-30 Eli Zaretskii <eliz@gnu.org>
7265
7266 * go32-nat.c (go32_xfer_memory): Fix the return value to be
7267 compatible to what read_child and write_child return. This
7268 unbreaks that DJGPP build of GDB which was broken since v7.7.
7269
7270 2015-05-29 Martin Galvan <martin.galvan@tallertechnologies.com>
7271
7272 * MAINTAINERS (Write After Approval): Add Martin Galvan.
7273
7274 2015-05-29 Roland McGrath <mcgrathr@google.com>
7275
7276 PR gdb/18464
7277 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
7278 rather than internal_error for an unrecognized value.
7279
7280 2015-05-29 Max Filippov <jcmvbkbc@gmail.com>
7281
7282 * xtensa-tdep.c (xtensa_pseudo_register_read)
7283 (xtensa_pseudo_register_write): Don't alias last pseudo register
7284 to a1.
7285
7286 2015-05-28 Don Breazeal <donb@codesourcery.com>
7287
7288 * infrun.c (follow_fork_inferior): Ensure the use of
7289 process-style ptids (pid,0,0) in verbose/debug "Detaching"
7290 messages.
7291
7292 2015-05-28 Doug Evans <dje@google.com>
7293
7294 * dwarf2read.c (record_line_ftype): Remove, duplicate.
7295
7296 2015-05-28 Yao Qi <yao.qi@linaro.org>
7297
7298 * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
7299 (arm_linux_fetch_inferior_registers): Use
7300 tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
7301 (arm_linux_store_inferior_registers): Likewise.
7302 (arm_linux_read_description): Don't set
7303 arm_linux_has_wmmx_registers.
7304 * arm-tdep.c (arm_gdbarch_init): Set
7305 tdep->have_wmmx_registers according target descriptions.
7306 * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
7307 field.
7308
7309 2015-05-28 Yao Qi <yao.qi@linaro.org>
7310
7311 * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
7312 (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
7313 instead of arm_linux_vfp_register_count.
7314 (store_vfp_regs): Likewise.
7315 (arm_linux_fetch_inferior_registers): Likewise.
7316 (arm_linux_store_inferior_registers): Likewise.
7317 (arm_linux_read_description): Don't set
7318 arm_linux_vfp_register_count.
7319 * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
7320 Adjust.
7321 * arm-tdep.c (arm_gdbarch_init): Add assert on
7322 vfp_register_count.
7323 * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
7324 field to vfp_register_count. All users updated.
7325
7326 2015-05-28 Kyle Huey <me@kylehuey.com> (tiny patch)
7327
7328 * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
7329 ELFOSABI_GNU binaries.
7330
7331 2015-05-27 Doug Evans <dje@google.com>
7332
7333 * dwarf2read.c (lnp_state_machine): New typedef.
7334 (lnp_reader_state): New typedef.
7335 (dwarf_record_line_1): Renamed from dwarf_record_line.
7336 All callers updated.
7337 (dwarf_record_line): New function.
7338 (init_lnp_state_machine): New function.
7339 (check_line_address): Replace p_record_line parameter with state.
7340 All callers updated.
7341 (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
7342 Update to record state in lnp_state_machine.
7343
7344 2015-05-27 Doug Evans <dje@google.com>
7345
7346 * dwarf2read.c (record_line_ftype): New typedef.
7347 (check_line_address): New function.
7348 (dwarf_decode_lines_1): Call it.
7349
7350 2015-05-27 Doug Evans <dje@google.com>
7351
7352 * NEWS: Mention "set debug dwarf-line".
7353 * dwarf2read.c (dwarf_line_debug): New static global.
7354 (add_include_dir): Add debug dwarf-line support.
7355 (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
7356 (_initialize_dwarf2_read): New parameter "debug dwarf-line".
7357
7358 2015-05-27 Doug Evans <dje@google.com>
7359
7360 * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
7361 All callers updated.
7362 (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
7363 * cp-support.h (cp_lookup_nested_symbol): Update.
7364
7365 2015-05-27 Doug Evans <dje@google.com>
7366
7367 PR symtab/18258
7368 * block.c (block_find_symbol): New function.
7369 (block_find_non_opaque_type): Ditto.
7370 (block_find_non_opaque_type_preferred): Ditto.
7371 * block.h (block_symbol_matcher_ftype): New typedef.
7372 (block_find_symbol): Declare.
7373 (block_find_non_opaque_type): Ditto.
7374 (block_find_non_opaque_type_preferred): Ditto.
7375 * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
7376 * psymtab.c (psym_lookup_symbol): Ditto.
7377 * symtab.c (basic_lookup_transparent_type_1): New function.
7378 (basic_lookup_transparent_type): Call it.
7379
7380 2015-05-27 Yao Qi <yao.qi@linaro.org>
7381
7382 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
7383 AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
7384
7385 2015-05-27 Yao Qi <yao.qi@linaro.org>
7386
7387 * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
7388 before operator &&.
7389 (aarch64_record_load_store): Likewise.
7390
7391 2015-05-26 Doug Evans <dje@google.com>
7392
7393 PR c++/18141, c++/18417.
7394 * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
7395 a typedef.
7396
7397 2015-05-26 Doug Evans <dje@google.com>
7398
7399 * NEWS: Add entries for command renamings.
7400 * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
7401 All uses updated.
7402 (dwarf_die_debug): Renamed from dwarf2_die_debug. All uses updated.
7403 (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
7404 All uses updated.
7405 (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
7406 All callers updated. Fix spelling of DWARF in help text.
7407 (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
7408 All uses updated.
7409 (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
7410 All uses updated.
7411 (set_dwarf_cmd): Renamed from set_dwarf2_cmd. All callers updated.
7412 (show_dwarf_cmd): Renamed from show_dwarf2_cmd. All callers updated.
7413 (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
7414 All uses updated.
7415 (show_dwarf_always_disassemble): Renamed from
7416 show_dwarf2_always_disassemble. All callers updated.
7417 (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
7418 "set/show dwarf". Rename "set/show dwarf2 max-cache-age" to
7419 "set/show dwarf max-cache-age". Rename
7420 "set/show dwarf2 always-disassemble" to
7421 "set/show dwarf always-disassemble". Rename
7422 "set/show debug dwarf2-read" to "set/show debug dwarf-read". Rename
7423 "set/show debug dwarf2-die" to "set/show debug dwarf-die".
7424
7425 2015-05-26 Doug Evans <dje@google.com>
7426
7427 PR python/18438
7428 * python/py-lazy-string.c (stpy_convert_to_value): Use
7429 gdbpy_gdb_memory_error not PyExc_MemoryError.
7430 (gdbpy_create_lazy_string_object): Ditto.
7431
7432 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
7433
7434 * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
7435
7436 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
7437
7438 * tui/tui-regs.c (tui_reg_prev_command): New function.
7439 (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
7440 * reggroups.c (reggroup_prev): New function.
7441 * reggroups.h (reggroup_prev): Add declaration. Update comment.
7442
7443 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
7444 Yao Qi <yao.qi@linaro.org>
7445
7446 * aarch64-linux-tdep.c: Include linux-record.h and
7447 record-full.h.
7448 (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
7449 (aarch64_syscall): New enum.
7450 (aarch64_canonicalize_syscall): New function.
7451 (aarch64_all_but_pc_registers_record): New function.
7452 (aarch64_linux_syscall_record): New function.
7453 (aarch64_linux_init_abi): Install AArch64 process record
7454 handler. Update to handle syscall recording.
7455 * aarch64-tdep.c: Include record.h and record-full.h.
7456 (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
7457 (struct aarch64_mem_r): Define.
7458 (aarch64_record_result): New enum.
7459 (struct insn_decode_record): Define.
7460 (insn_decode_record): New typedef.
7461 (aarch64_record_data_proc_reg): New function.
7462 (aarch64_record_data_proc_imm): New function.
7463 (aarch64_record_branch_except_sys): New function.
7464 (aarch64_record_load_store): New function.
7465 (aarch64_record_data_proc_simd_fp): New function.
7466 (aarch64_record_asimd_load_store): New function.
7467 (aarch64_record_decode_insn_handler): New function.
7468 (deallocate_reg_mem): New function.
7469 (aarch64_process_record): New function.
7470 * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
7471 New field.
7472 (aarch64_process_record): New extern declaration.
7473 * configure.tgt: Add linux-record.o to gdb_target_obs.
7474 * linux-record.h (struct linux_record_tdep) <arg7>: New field.
7475
7476 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
7477
7478 * NEWS: Add a note on process record-replay support on aarch64*-linux*
7479 targets.
7480
7481 2015-05-26 Martin Galvan <martin.galvan@tallertechnologies.com>
7482
7483 * amd64-tdep.c: Replace in_function_epilogue_p with
7484 stack_frame_destroyed_p throughout.
7485 * arch-utils.c: Ditto.
7486 * arch-utils.h: Ditto.
7487 * arm-tdep.c: Ditto.
7488 * breakpoint.c: Ditto.
7489 * gdbarch.sh: Ditto.
7490 * hppa-tdep.c: Ditto.
7491 * i386-tdep.c: Ditto.
7492 * mips-tdep.c: Ditto.
7493 * nios2-tdep.c: Ditto.
7494 * rs6000-tdep.c: Ditto.
7495 * s390-linux-tdep.c: Ditto.
7496 * score-tdep.c: Ditto.
7497 * sh-tdep.c: Ditto.
7498 * sparc-tdep.c: Ditto.
7499 * sparc-tdep.h: Ditto.
7500 * sparc64-tdep.c: Ditto.
7501 * spu-tdep.c: Ditto.
7502 * tic6x-tdep.c: Ditto.
7503 * tilegx-tdep.c: Ditto.
7504 * xstormy16-tdep.c: Ditto.
7505 * gdbarch.c, gdbarch.h: Re-generated.
7506
7507 2015-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
7508
7509 * NEWS: Mention 'tui enable' and 'tui disable'.
7510 * tui/tui.c (tui_enable_command): New function.
7511 (tui_disable_command): New function.
7512 (_initialize_tui): New function.
7513
7514 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7515
7516 * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
7517
7518 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7519
7520 * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
7521 buf_ptr is freed.
7522
7523 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7524
7525 * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
7526 into ...
7527 (tui_set_layout_for_display_command): ...here, before calling
7528 tui_set_layout. Only set the layout if gdb has not already
7529 entered the TUI_FAILURE state.
7530
7531 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7532
7533 * tui/tui-layout.c (layout_completer): New function.
7534 (_initialize_tui_layout): Set completer on layout command.
7535
7536 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7537
7538 * tui/tui-layout.c (tui_set_layout): Remove
7539 tui_register_display_type parameter. Remove all checking of this
7540 parameter, and reindent function. Update header comment.
7541 (tui_set_layout_for_display_command): Rename to...
7542 (tui_set_layout_by_name): ...this, and don't check for different
7543 register class types, don't pass a tui_register_display_type to
7544 tui_set_layout. Update header comment.
7545 (layout_names): Remove register set specific names.
7546 * tui/tui-layout.h (tui_set_layout): Remove
7547 tui_register_display_type parameter.
7548 * tui/tui.c (tui_rl_change_windows): Don't pass a
7549 tui_register_display_type to tui_set_layout.
7550 (tui_rl_delete_other_windows): Likewise.
7551 (tui_enable): Likewise.
7552 * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
7553 (TUI_FLOAT_REGS_NAME_LOWER): Remove.
7554 (TUI_GENERAL_REGS_NAME): Remove.
7555 (TUI_GENERAL_REGS_NAME_LOWER): Remove.
7556 (TUI_SPECIAL_REGS_NAME): Remove.
7557 (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
7558 (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
7559 (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
7560 (enum tui_register_display_type): Remove.
7561 (struct tui_layout_def): Remove regs_display_type and
7562 float_regs_display_type fields.
7563 (struct tui_data_info): Remove regs_display_type field.
7564 (tui_layout_command): Use new name for
7565 tui_set_layout_for_display_command.
7566 * tui/tui-data.c (layout_def): Don't initialise removed fields.
7567 (tui_clear_win_detail): Don't initialise removed fields of
7568 win_info.
7569 * tui/tui-regs.c (tui_show_registers): Use new name for
7570 tui_set_layout_for_display_command.
7571 * tui/tui.h (tui_set_layout_for_display_command): Rename
7572 declaration to...
7573 (tui_set_layout_by_name): ...this.
7574 * printcmd.c (display_command): Remove tui related layout call,
7575 and reindent.
7576
7577 2015-05-20 Joel Brobecker <brobecker@adacore.com>
7578
7579 * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
7580 (handle_inferior_event): New function.
7581
7582 2015-05-20 Joel Brobecker <brobecker@adacore.com>
7583
7584 * ada-lang.c (to_fixed_array_type): Rename local variable
7585 typename into type_name.
7586
7587 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7588
7589 Fix ASAN crash for gdb.compile/compile.exp.
7590 * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
7591
7592 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7593
7594 * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
7595 (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
7596 * compile/compile-object-load.c (setup_sections, compile_object_load):
7597 Likewise.
7598 * compile/compile.c (compile_to_object): Likewise.
7599
7600 2015-05-16 Doug Evans <xdje42@gmail.com>
7601
7602 * NEWS: Mention support for unbuffered Guile memory ports.
7603 * scm-ports.c (ioscm_memory_port): Update comments on end, size.
7604 (ioscm_lseek_address): Improve overflow calculation.
7605 (gdbscm_memory_port_fill_input): Add assert.
7606 (gdbscm_memory_port_write): Handle unbuffered ports.
7607 Handle large writes identical to Guile's fport_write.
7608 (gdbscm_memory_port_seek): Fix seeking past end check.
7609 (gdbscm_memory_port_close): Handle closing unbuffered port.
7610 (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
7611 (ioscm_init_memory_port): Handle unbuffered ports.
7612 (ioscm_reinit_memory_port): Ditto.
7613 (ioscm_init_memory_port): Update size calculation.
7614 (gdbscm_open_memory): Support zero sized ports.
7615
7616 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7617
7618 * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
7619 variable compiler warnings.
7620
7621 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7622
7623 * compile/compile-object-load.c (get_out_value_type): Fix returned type.
7624
7625 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7626 Phil Muldoon <pmuldoon@redhat.com>
7627
7628 * NEWS (Changes since GDB 7.9): Add compile print.
7629 * compile/compile-c-support.c (add_code_header, add_code_footer)
7630 (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
7631 COMPILE_I_PRINT_VALUE_SCOPE.
7632 * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
7633 (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
7634 New.
7635 * compile/compile-object-load.c: Include block.h.
7636 (get_out_value_type): New function.
7637 (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
7638 COMPILE_I_PRINT_VALUE_SCOPE. Set compile_module's OUT_VALUE_ADDR and
7639 OUT_VALUE_TYPE.
7640 * compile/compile-object-load.h (struct compile_module): Add fields
7641 out_value_addr and out_value_type.
7642 * compile/compile-object-run.c: Include valprint.h and compile.h.
7643 (struct do_module_cleanup): Add fields out_value_addr and
7644 out_value_type.
7645 (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
7646 COMPILE_I_PRINT_VALUE_SCOPE.
7647 (compile_object_run): Propagate out_value_addr and out_value_type.
7648 Pass OUT_VALUE_ADDR.
7649 * compile/compile.c: Include valprint.h.
7650 (compile_print_value, compile_print_command): New functions.
7651 (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
7652 (_initialize_compile): Update compile code help text. Install
7653 compile_print_command.
7654 * compile/compile.h (compile_print_value): New prototype.
7655 * defs.h (enum compile_i_scope_types): Add
7656 COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
7657
7658 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7659
7660 * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
7661 Rely on its parameter count.
7662 (compile_object_load): Replace lookup_minimal_symbol_text by
7663 lookup_global_symbol_from_objfile. Verify FUNC_SYM. Set it in the
7664 return value.
7665 * compile/compile-object-load.h (struct compile_module): Replace
7666 func_addr by func_sym.
7667 * compile/compile-object-run.c: Include block.h.
7668 (compile_object_run): Reset module variable after it is freed. Use
7669 FUNC_SYM instead of FUNC_ADDR. Rely on it.
7670
7671 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7672
7673 * compile/compile-c-support.c (print_one_macro): Use #ifndef.
7674 (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
7675 (c_compute_program): Call generate_register_struct after typedefs.
7676 * compile/compile-loc2c.c (push, pushf_register_address)
7677 (pushf_register): Cast to GCC_UINTPTR.
7678 (do_compile_dwarf_expr_to_c): Use unused attribute. Add space after
7679 type. Use GCC_UINTPTR instead of void *. Remove excessive cast.
7680 (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
7681 * compile/compile.c (_initialize_compile): Enable warnings for
7682 COMPILE_ARGS.
7683
7684 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7685
7686 * cli/cli-script.c (execute_control_command): Update
7687 eval_compile_command caller.
7688 * compile/compile-object-load.c (compile_object_load): Add parameters
7689 scope and scope_data. Set them.
7690 * compile/compile-object-load.h (struct compile_module): Add fields
7691 scope and scope_data.
7692 (compile_object_load): Add parameters scope and scope_data.
7693 * compile/compile-object-run.c (struct do_module_cleanup): Add fields
7694 scope and scope_data.
7695 (compile_object_run): Propagate the fields scope and scope_data.
7696 * compile/compile.c (compile_file_command, compile_code_command):
7697 Update eval_compile_command callers.
7698 (eval_compile_command): Add parameter scope_data. Pass it plus scope.
7699 * compile/compile.h (eval_compile_command): Add parameter scope_data.
7700 * defs.h (struct command_line): Add field scope_data.
7701
7702 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7703
7704 * printcmd.c (struct format_data): Move it to valprint.h.
7705 (print_command_parse_format, print_value): New functions from ...
7706 (print_command_1): ... here. Call them.
7707 * valprint.h (struct format_data): Move it here from printcmd.c.
7708 (print_command_parse_format, print_value): New declarations.
7709
7710 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7711
7712 * compile/compile-object-load.c (compile_object_load): Add
7713 COMPILE_DEBUG message.
7714
7715 2015-05-15 Jerome Guitton <guitton@adacore.com>
7716
7717 * ada-lang.c (ada_value_ptr_subscript): Use enum position of
7718 index to get element instead of enum value.
7719 (ada_value_slice_from_ptr, ada_value_slice): Use enum position
7720 of index to compute length, but enum values to compute bounds.
7721 (ada_array_length): Use enum position of index instead of enum value.
7722 (pos_atr): Move position computation to...
7723 (ada_evaluate_subexp): Use enum values to compute bounds.
7724 * gdbtypes.c (discrete_position): ...this new function.
7725 * gdbtypes.h (discrete_position): New function declaration.
7726 * valprint.c (val_print_array_elements): Call discrete_position
7727 to handle array indexed by non-contiguous enumeration types.
7728
7729 2015-05-15 Jerome Guitton <guitton@adacore.com>
7730
7731 * ada-lang.c (find_parallel_type_by_descriptive_type):
7732 Go through typedefs during lookup.
7733 (to_fixed_array_type): Add support for non-bit packed arrays
7734 as variable-length fields.
7735
7736 2015-05-15 Pedro Alves <palves@redhat.com>
7737 Simon Marchi <simon.marchi@ericsson.com>
7738
7739 * event-loop.c (gdb_notifier) <next_file_handler,
7740 next_poll_fds_index>: New fields.
7741 (get_next_file_handler_to_handle_and_advance): New function.
7742 (delete_file_handler): If deleting the next file handler to
7743 handle, advance to the next file handler.
7744 (gdb_wait_for_event): Bail early if no event fired. Poll file
7745 handlers in round-robin fashion.
7746
7747 2015-05-15 Pedro Alves <palves@redhat.com>
7748
7749 * linux-tdep.c (linux_find_memory_regions_full): Rename local
7750 'private' to 'priv'.
7751
7752 2015-05-15 Pedro Alves <palves@redhat.com>
7753
7754 * nat/linux-nat.h: Include "target/waitstatus.h".
7755
7756 2015-05-15 Yuanhui Zhang <asmwarrior@gmail.com>
7757
7758 * python/py-unwind.c (struct reg_info): Move out of ...
7759 (struct cached_frame_info): ... this scope.
7760 (pending_frame_object_type, unwind_info_object_type): Make extern.
7761
7762 2015-05-15 Joel Brobecker <brobecker@adacore.com>
7763
7764 * ada-lang.c (ada_value_primitive_packed_val): Make sure
7765 accumSize is never negative.
7766
7767 2015-05-14 Patrick Palka <patrick@parcs.ath.cx>
7768
7769 * tui/tui-command.c: Remove include of <ctype.h>.
7770 (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
7771
7772 2015-05-13 Martin Galvan <martin.galvan@tallertechnologies.com>
7773
7774 * dwarf2read.c (die_needs_namespace): Return 1 for
7775 DW_TAG_inlined_subroutine.
7776
7777 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7778
7779 * regcache.c (regcache_cpy_no_passthrough): New declaration.
7780 (regcache_cpy_no_passthrough): Make it static, add function comment.
7781 * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
7782 (regcache_cpy_no_passthrough): Remove declaration.
7783
7784 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7785
7786 * gdbthread.h (struct thread_control_state): Update comment for
7787 proceed_to_finish.
7788 * infcall.c (run_inferior_call): Update comment about
7789 proceed_to_finish.
7790 * infcmd.c (get_return_value): Update comment about stop_registers.
7791 (finish_forward): Update comment about proceed_to_finish.
7792 * infrun.c (stop_registers): Remove.
7793 (clear_proceed_status, normal_stop): Remove stop_registers handling.
7794 * infrun.h (stop_registers): Remove.
7795
7796 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7797
7798 * infcall.c (struct dummy_frame_context_saver)
7799 (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
7800 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
7801 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
7802 New.
7803 (call_function_by_hand_dummy): Move discard_cleanups of
7804 inf_status_cleanup before dummy_frame_push. Call
7805 dummy_frame_context_saver_setup and prepare context_saver_cleanup.
7806 Use dummy_frame_context_saver_get_regs instead of stop_registers.
7807 * infcall.h (struct dummy_frame_context_saver)
7808 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
7809 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
7810 New declarations.
7811 * infcmd.c: Include infcall.h.
7812 (get_return_value): Add parameter ctx_saver, use it instead of
7813 stop_registers.
7814 (print_return_value): Add parameter ctx_saver, pass it.
7815 (struct finish_command_continuation_args): Add field ctx_saver.
7816 (finish_command_continuation): Update print_return_value caller.
7817 (finish_command_continuation_free_arg): Free also ctx_saver.
7818 (finish_forward): Call dummy_frame_context_saver_setup.
7819 * inferior.h (struct dummy_frame_context_saver): New declaration.
7820 (get_return_value): Add parameter ctx_saver.
7821 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
7822 get_return_value caller.
7823
7824 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7825
7826 * dummy-frame.c (struct dummy_frame_dtor_list): New.
7827 (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
7828 (remove_dummy_frame): Process dtor_list.
7829 (pop_dummy_frame): Process dtor_list.
7830 (register_dummy_frame_dtor): Maintain dtor_list.
7831 (find_dummy_frame_dtor): Handle dtor_list.
7832 * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
7833 Update comments.
7834
7835 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7836
7837 * compile/compile-object-run.c (do_module_cleanup): Add parameter
7838 registers_valid.
7839 (compile_object_run): Update do_module_cleanup caller.
7840 * dummy-frame.c: Include infcall.h.
7841 (struct dummy_frame): Update dtor comment.
7842 (remove_dummy_frame): Call dtor.
7843 (pop_dummy_frame): Update dtor caller.
7844 * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
7845 registers_valid.
7846
7847 2015-05-13 Joel Brobecker <brobecker@adacore.com>
7848
7849 GDB 7.9.1 released.
7850
7851 2015-05-13 Joel Brobecker <brobecker@adacore.com>
7852
7853 * NEWS: Create "Changes in GDB 7.9.1" section. Move news about
7854 Xmethods now being able to specify a result type to that new
7855 sectioin.
7856
7857 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
7858
7859 * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
7860 first before resizing the window.
7861 * tui/tui.c (tui_enable): Likewise.
7862
7863 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7864
7865 * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
7866 * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
7867 * infcall.c (call_function_by_hand_dummy): Use proper typedef for
7868 dummy_dtor parameter.
7869 * infcall.h: Include dummy-frame.h.
7870 (call_function_by_hand_dummy_dtor_ftype): Remove.
7871 (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
7872 parameter.
7873
7874 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
7875
7876 PR gdb/17820
7877 * top.c (history_size_setshow_var): Change type to signed.
7878 Initialize to -2. Update documentation.
7879 (set_readline_history_size): Define.
7880 (set_history_size_command): Use it. Remove logic for handling
7881 out-of-range sizes.
7882 (init_history): Use set_readline_history_size(). Test for a
7883 value of -2 instead of 0 when determining whether to set a
7884 default history size.
7885 (init_main): Decode the argument of the "size" command as a
7886 zuinteger_unlimited.
7887
7888 2015-05-12 Doug Evans <dje@google.com>
7889
7890 * dwarf2read.c (struct file_entry): Tweak comments.
7891 (get_debug_line_section): Tweak comments.
7892
7893 2015-05-12 Don Breazeal <donb@codesourcery.com>
7894
7895 * NEWS: Announce fork support in the RSP and support
7896 for fork debugging in extended mode.
7897
7898 2015-05-12 Don Breazeal <donb@codesourcery.com>
7899
7900 * remote.c (remote_insert_fork_catchpoint): New function.
7901 (remote_remove_fork_catchpoint): New function.
7902 (remote_insert_vfork_catchpoint): New function.
7903 (remote_remove_vfork_catchpoint): New function.
7904 (pending_fork_parent_callback): New function.
7905 (remove_new_fork_child): New function.
7906 (remote_update_thread_list): Call remote_notif_get_pending_events
7907 and remove_new_fork_child.
7908 (extended_remote_kill): Kill fork child when killing the
7909 parent before follow_fork completes.
7910 (init_extended_remote_ops): Initialize target vector with
7911 new fork catchpoint functions.
7912
7913 2015-05-12 Don Breazeal <donb@codesourcery.com>
7914
7915 * remote.c (remove_vfork_event_p): New function.
7916 (remote_follow_fork): Add vfork event type to event checking.
7917 (remote_parse_stop_reply): New stop reasons "vfork" and
7918 "vforkdone" for RSP 'T' Stop Reply Packet.
7919
7920 2015-05-12 Don Breazeal <donb@codesourcery.com>
7921
7922 * linux-nat.c (linux_nat_ptrace_options): New function.
7923 (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
7924 Call linux_nat_ptrace_options and use different argument to
7925 linux_enable_event_reporting.
7926 (_initialize_linux_nat): Delete call to
7927 linux_ptrace_set_additional_flags.
7928 * nat/linux-ptrace.c (current_ptrace_options): Rename to
7929 supported_ptrace_options.
7930 (additional_flags): Delete variable.
7931 (linux_check_ptrace_features): Use supported_ptrace_options.
7932 (linux_test_for_tracesysgood, linux_test_for_tracefork):
7933 Likewise, and remove additional_flags check.
7934 (linux_enable_event_reporting): Change 'attached' argument to
7935 'options'. Use supported_ptrace_options.
7936 (ptrace_supports_feature): Change comment. Use
7937 supported_ptrace_options.
7938 (linux_ptrace_set_additional_flags): Delete function.
7939 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
7940 Delete function prototype.
7941 * remote.c (remote_fork_event_p): New function.
7942 (remote_detach_pid): New function.
7943 (remote_detach_1): Call remote_detach_pid, don't mourn inferior
7944 if doing detach-on-fork.
7945 (remote_follow_fork): New function.
7946 (remote_parse_stop_reply): Handle new "T" stop reason "fork".
7947 (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
7948 (init_extended_remote_ops): Initialize to_follow_fork.
7949
7950 2015-05-12 Don Breazeal <donb@codesourcery.com>
7951
7952 * nat/linux-ptrace.c (linux_check_ptrace_features): Change
7953 from static to extern.
7954 * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
7955 * remote.c (anonymous enum): <PACKET_fork_event_feature,
7956 * PACKET_vfork_event_feature>: New enumeration constants.
7957 (remote_protocol_features): Add table entries for new packets.
7958 (remote_query_supported): Add new feature queries to qSupported
7959 packet.
7960
7961 2015-05-12 Gary Benson <gbenson@redhat.com>
7962
7963 * remote.c (remote_add_inferior): Call exec_file_locate_attach
7964 for fake PIDs as well as real ones.
7965 (remote_pid_to_exec_file): Send empty annex if PID is fake.
7966
7967 2015-05-09 Siva Chandra Reddy <sivachandra@google.com>
7968
7969 * NEWS (Python Scripting): Mention the new gdb.Value methods.
7970 * python/py-value.c (valpy_reference_value): New function.
7971 (valpy_const_value): Likewise.
7972 (value_object_methods): Add new methods.
7973 * value.c (make_cv_value): New function.
7974 * value.h (make_cv_value): Declare.
7975
7976 2015-05-08 Yao Qi <yao@codesourcery.com>
7977 Sandra Loosemore <sandra@codesourcery.com>
7978
7979 * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
7980 to 'lh->include_dirs' before accessing to it.
7981 (psymtab_include_file_name): Likewise.
7982 (dwarf_decode_lines_1): Likewise.
7983 (dwarf_decode_lines): Likewise.
7984 (file_file_name): Likewise.
7985
7986 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
7987
7988 * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
7989 (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
7990 (nios2_linux_rt_sigreturn_init): Adjust base address of
7991 register save area.
7992
7993 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
7994
7995 * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
7996 "trap 31" as the breakpoint instruction on all targets.
7997
7998 2015-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7999
8000 * infcmd.c (print_return_value): Remove unused declaration.
8001
8002 2015-05-08 Joel Brobecker <brobecker@adacore.com>
8003
8004 * dwarf2read.c (attr_to_dynamic_prop)
8005 <DW_AT_data_member_location>: Use read_type_die isntead of
8006 get_die_type.
8007
8008 2015-05-08 Joel Brobecker <brobecker@adacore.com>
8009
8010 * ada-lang.c (ada_convert_actual): Add handling of formals
8011 passed inside an aligner type.
8012
8013 2015-05-08 Joel Brobecker <brobecker@adacore.com>
8014
8015 * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
8016
8017 2015-05-08 Siva Chandra Reddy <sivachandra@google.com>
8018
8019 PR python/18291
8020 * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
8021 Print xmethod matcher status.
8022
8023 2015-05-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
8024
8025 * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
8026 register in the regcache when treating the PSWM register, and vice
8027 versa.
8028
8029 2015-05-07 Gary Benson <gbenson@redhat.com>
8030
8031 * linux-thread-db.c (struct thread_db_info)
8032 <td_ta_map_id2thr_p>: Remove field.
8033 (try_thread_db_load_1): Remove initialization for the above.
8034
8035 2015-05-07 Gary Benson <gbenson@redhat.com>
8036
8037 * linux-thread-db.c (struct thread_db_info)
8038 <td_thr_validate_p>: Remove field.
8039 (try_thread_db_load_1): Remove initialization for the above.
8040
8041 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
8042
8043 * compile/compile-object-load.c (compile_object_load): Support
8044 mst_text_gnu_ifunc.
8045
8046 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
8047
8048 * compile/compile.c (compile_to_object): Make the cmd_string parameter
8049 const. Use new variables for the const compatibility.
8050 (eval_compile_command): Make the cmd_string parameter const.
8051 * compile/compile.h (eval_compile_command): Make the cmd_string
8052 parameter const.
8053
8054 2015-05-06 Joel Brobecker <brobecker@adacore.com>
8055
8056 * defs.h (deprecated_init_ui_hook): Delete. Remove associated
8057 comment.
8058 * top.c (deprecated_init_ui_hook): Delete.
8059 (gdb_init): Remove handling of deprecated_init_ui_hook.
8060 * interps.c (clear_interpreter_hooks): Remove handling of
8061 deprecated_init_ui_hook.
8062 * main.c (captured_main): Update comment.
8063
8064 2015-05-06 Joel Brobecker <brobecker@adacore.com>
8065
8066 * solib.c (_initialize_solib): Add "info dll" alias creation.
8067 * windows-nat.c (set_windows_aliases): Delete.
8068 (_initialize_windows_nat): Remove deprecated_init_ui_hook
8069 assignment.
8070 * NEWS: Add news entry about "info dll" now being available
8071 on all platforms.
8072
8073 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8074
8075 * ada-lang.c (value_assign_to_component): Reformat and improve
8076 documentation. Remove all trailing spaces.
8077
8078 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8079
8080 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
8081 Stop counting inlined frames as soon as an out-of-line function
8082 is found.
8083
8084 2014-05-05 Pierre-Marie de Rodat <derodat@adacore.com>
8085
8086 * dwarf2read.c (inherit_abstract_dies): Skip
8087 DW_TAG_GNU_call_site dies while inheriting children of an
8088 abstract DIE into a scope.
8089 (read_lexical_block_scope): Inherit abstract DIE's for
8090 lexical scopes.
8091
8092 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8093
8094 * ada-valprint.c (val_print_packed_array_elements): Delete
8095 variable "len". Add a type-length check when comparing two
8096 consecutive elements of the array. Use the element's actual
8097 length in call to value_contents_eq.
8098 * ada-lang.c (ada_value_primitive_packed_val): Always return
8099 a value whose type has been resolved.
8100
8101 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8102
8103 * ada-lang.c (ada_value_primitive_packed_val): Recompute
8104 BIT_SIZE and LEN if the size of the resolved type is smaller
8105 than BIT_SIZE * HOST_CHAR_BIT.
8106
8107 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8108
8109 * ada-lang.c (ada_value_primitive_packed_val): Use a more
8110 correct address in call to value_at. Adjust call to
8111 value_address accordingly.
8112
8113 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8114
8115 * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
8116 to print it.
8117
8118 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8119
8120 * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
8121 * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
8122 pinfo->valaddr.
8123 * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
8124 * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
8125 (resolve_dynamic_type_internal): Set pinfo.valaddr.
8126 Add handling of addr_stack->valaddr.
8127 (resolve_dynamic_type): Add "valaddr" parameter.
8128 Set pinfo.valaddr field.
8129 * ada-lang.c (ada_discrete_type_high_bound): Update call to
8130 resolve_dynamic_type.
8131 (ada_discrete_type_low_bound): Likewise.
8132 * findvar.c (default_read_var_value): Likewise.
8133 * value.c (value_from_contents_and_address): Likewise.
8134
8135 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8136
8137 * gdbtypes.c (resolve_dynamic_array): Use
8138 create_array_type_with_stride instead of create_array_type.
8139
8140 2015-04-30 DJ Delorie <dj@redhat.com>
8141
8142 * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
8143 rl78_decode_opcode
8144
8145 2015-04-29 Doug Evans <dje@google.com>
8146
8147 PR python/18285
8148 * NEWS: Document new gdb.XMethodWorker.get_result_type method.
8149 * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
8150 EVAL_AVOID_SIDE_EFFECTS for xmethods.
8151 * extension-priv.h (struct extension_language_ops)
8152 <get_xmethod_result_type>: New member.
8153 * extension.c (get_xmethod_result_type): New function.
8154 * extension.h (get_xmethod_result_type): Declare.
8155 * python/py-xmethods.c (get_result_type_method_name): New static
8156 global.
8157 (py_get_result_type_method_name): Ditto.
8158 (gdbpy_get_xmethod_result_type): New function.
8159 (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
8160 * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
8161 * python/python.c (python_extension_ops): Add
8162 gdbpy_get_xmethod_result_type.
8163 * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
8164 * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
8165 xmethods.
8166 (value_x_unop): Ditto.
8167 * value.c (result_type_of_xmethod): New function.
8168 * value.h (result_type_of_xmethod): Declare.
8169
8170 2015-04-29 Gary Benson <gbenson@redhat.com>
8171
8172 * solib.c (solib_find_1): Allow fd argument to be NULL.
8173 (exec_file_find): Update comment.
8174 (solib_find): Likewise.
8175 * exec.c (exec_file_locate_attach): Use NULL as fd
8176 argument to exec_file_find to avoid having to close
8177 the opened file.
8178 * infrun.c (follow_exec): Likewise.
8179
8180 2015-04-28 Doug Evans <dje@google.com>
8181
8182 PR python/18299
8183 * python/lib/gdb/printing.py (register_pretty_printer): Handle
8184 name or __name__ attributes. Handle gdb module as first argument.
8185
8186 2015-04-28 Doug Evans <dje@google.com>
8187
8188 PR python/18089
8189 * python/py-prettyprint.c (print_children): Verify result of children
8190 iterator. Provide better error message.
8191 * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
8192 * python/python.c (gdbpy_print_python_errors_p): New function.
8193
8194 2015-04-28 Doug Evans <dje@google.com>
8195
8196 * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
8197
8198 2015-04-28 Sasha Smundak <asmundak@google.com>
8199
8200 * NEWS: Mention gdb.Type.optimized_out method.
8201 * python/py-type.c (typy_optimized_out): New function.
8202
8203 2015-04-28 John Baldwin <jhb@FreeBSD.org>
8204
8205 * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8206
8207 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8208
8209 * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
8210 (initialize_utils): Move call of init_page_info() to ...
8211 * top.c (gdb_init): ... here.
8212
8213 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8214
8215 * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
8216 (tui_sigwinch_handler): Still update our idea of
8217 the terminal's width and height even when TUI is not active.
8218
8219 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8220
8221 * utils.h (set_screen_width_and_height): Declare.
8222 * utils.c (set_screen_width_and_height): Define.
8223 * tui/tui-win.c (tui_update_gdb_sizes): Use it.
8224
8225 2015-04-28 Gary Benson <gbenson@redhat.com>
8226
8227 * infrun.c (solist.h): New include.
8228 (follow_exec): Use exec_file_find to prefix execd_pathname
8229 with gdb_sysroot.
8230
8231 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8232
8233 * tui/tui-source.c (tui_set_source_content): Avoid calling
8234 strcpy() when offset is 0.
8235
8236 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8237
8238 PR gdb/18155
8239 * tui/tui-data.c (tui_free_window): Don't free the locator
8240 window when passed an SRC_WIN or a DISASSEM_WIN.
8241
8242 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8243
8244 * tui/tui-data.h (struct tui_win_element): Forward-declare.
8245 (tui_win_content): Move declaration.
8246 (struct tui_gen_win_info): Give 'content' field the
8247 type tui_win_content.
8248 * tui/tui-data.c (init_content_element): Remove redundant and
8249 erroneous casts.
8250 (tui_add_content_elements): Remove erroneous cast.
8251 * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
8252 casts.
8253 (tui_get_begin_asm_address): Likewise.
8254 * tui/tui-regs.c (tui_show_registers): Likewise.
8255 (tui_show_register_group): Likewise.
8256 (tui_display_registers_from): Likewise.
8257 (tui_check_register_values): Likewise.
8258 * tui/tui-source.c (tui_set_source_content): Likewise.
8259 (tui_set_source_content_nil): Likewise.
8260 (tui_source_is_displayed): Likewise.
8261 * tui/tui-stack.c (tui_show_locator_content): Likewise.
8262 (tui_set_locator_fullname): Likewise.
8263 (tui_set_locator_info): Likewise.
8264 (tui_show_frame_info): Likewise.
8265 * tui/tui-winsource.c (tui_clear_source_content): Likewise.
8266 (tui_show_source_line): Likewise.
8267 (tui_horizontal_source_scroll): Likewise.
8268 (tui_update_breakpoint_info): Likewise.
8269 (tui_set_exec_info_content): Likewise.
8270 (tui_show_exec_info_content): Likewise.
8271 (tui_alloc_source_buffer): Likewise.
8272 (tui_line_is_displayed): Likewise.
8273 (tui_addr_is_displayed): Likewise.
8274
8275 2015-04-27 John Baldwin <jhb@FreeBSD.org>
8276
8277 * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
8278 event if PL_FLAG_EXEC is set.
8279 [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
8280 [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
8281 (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
8282 "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
8283 Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
8284
8285 2015-04-27 John Baldwin <jhb@FreeBSD.org>
8286
8287 * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
8288 [TDP_RFPPWAIT] New variable fbsd_pending_children.
8289 [TDP_RFPPWAIT] (fbsd_remember_child): New function.
8290 [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
8291 [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
8292 [PT_LWPINFO] (fbsd_wait): New function.
8293 [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
8294 [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
8295 [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
8296 [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
8297 [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
8298 [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
8299 [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
8300 [TDP_RFPPWAIT] (fbsd_post_attach): New function.
8301 (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
8302 "fbsd_wait".
8303 [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
8304 Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
8305 Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
8306 Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
8307 Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
8308 Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
8309 Set "to_post_attach" to "fbsd_post_attach".
8310
8311 2015-04-27 John Baldwin <jhb@FreeBSD.org>
8312
8313 * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
8314 (fbsd_find_memory_regions): Mark static.
8315 (fbsd_nat_add_target): New function.
8316 * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
8317 fbsd_pid_to_exec_file and fbsd_find_memory_regions.
8318 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
8319 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
8320 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
8321 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
8322
8323 2015-04-27 Gary Benson <gbenson@redhat.com>
8324
8325 * objfiles.c (allocate_objfile): Do not attempt to expand name
8326 if name is a "target:" filename.
8327 * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
8328 to load auto-load scripts for objfiles with "target:" filenames.
8329
8330 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8331
8332 * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
8333 (enum s390_vector_abi_kind): New enum.
8334 (struct gdbarch_tdep)<vector_abi>: New field.
8335 (s390_effective_inner_type): Add parameter min_size. Stop
8336 unwrapping if the inner type is smaller than min_size.
8337 (s390_function_arg_float): Adjust call to
8338 s390_effective_inner_type.
8339 (s390_function_arg_vector): New function.
8340 (s390_function_arg_integer): Adjust comment.
8341 (struct s390_arg_state)<vr>: New field.
8342 (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector
8343 arguments according to vector ABI when appropriate.
8344 (s390_push_dummy_call): Initialize the argument state's field
8345 'vr'. Adjust calls to s390_handle_arg.
8346 (s390_register_return_value): Handle vector return values.
8347 (s390_return_value): Apply the "register" return value convention
8348 to a vector when appropriate.
8349 (s390_gdbarch_init): Initialize tdep->vector_abi.
8350 * NEWS: Announce S390 vector ABI support.
8351
8352 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8353
8354 * s390-linux-tdep.c (s390_return_value_convention): Remove
8355 function. Inline its logic...
8356 (s390_return_value): ...here. Instead, move the handling of the
8357 "register" return value convention...
8358 (s390_register_return_value): ...here. New function.
8359
8360 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8361
8362 * s390-linux-tdep.c
8363 (is_float_singleton): Remove function. Move the "singleton" part
8364 of the logic...
8365 (s390_effective_inner_type): ...here. New function.
8366 (is_float_like): Remove function. Inline its logic...
8367 (s390_function_arg_float): ...here.
8368 (is_pointer_like, is_integer_like, is_struct_like): Remove
8369 functions. Inline their logic...
8370 (s390_function_arg_integer): ...here.
8371 (s390_function_arg_pass_by_reference): Remove function.
8372 (extend_simple_arg): Remove function.
8373 (alignment_of): Remove function.
8374 (struct s390_arg_state): New structure.
8375 (s390_handle_arg): New function.
8376 (s390_push_dummy_call): Move parameter placement logic to the new
8377 function s390_handle_arg. Call it for calculating the stack area
8378 sizes first, and again for actually writing the parameters.
8379
8380 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8381
8382 * s390-linux-tdep.c (is_power_of_two): Add comment. Return
8383 false if the argument is zero.
8384
8385 2015-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
8386
8387 * ada-lang.c (template_to_static_fixed_type): Return input type
8388 when it is already fixed. Cache the input type itself when not
8389 creating a static fixed copy. Make it explicit that we never
8390 molestate the input type.
8391 * gdbtypes.c (resolve_dynamic_struct): Reset the
8392 TYPE_TARGET_TYPE field for resolved copies.
8393
8394 2015-04-27 Joel Brobecker <brobecker@adacore.com>
8395
8396 * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
8397 (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
8398 (template_to_static_fixed_type): Call ada_check_typedef only
8399 when necessary.
8400
8401 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
8402
8403 * cli/cli-dump.c (srec_dump_command): Add internationalization
8404 mark ups.
8405 (ihex_dump_command): Likewise.
8406 (tekhex_dump_command): Likewise.
8407 (binary_dump_command): Likewise.
8408 (binary_append_command): Likewise.
8409
8410 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
8411
8412 * cli/cli-dump.c (verilog_cmdlist): New variable.
8413 (dump_verilog_memory): New function.
8414 (dump_verilog_value): New function.
8415 (verilog_dump_command): New function.
8416 (_initialize_cli_dump): Add new commands to support verilog dump
8417 format.
8418 * NEWS: Add entry for "dump verilog".
8419
8420 2015-04-24 Pierre-Marie de Rodat <derodat@adacore.com>
8421
8422 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
8423 descriptive type when there is none.
8424
8425 2015-04-23 Patrick Palka <patrick@parcs.ath.cx>
8426
8427 * tui/tui-win.c (tui_async_resize_screen): Call
8428 rl_resize_terminal().
8429
8430 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
8431
8432 * windows-nat.c (handle_output_debug_string): Don't change
8433 current_event.dwThreadId.
8434 (get_windows_debug_event): Use thread_id, rather than relying on
8435 current_event.dwThreadId being changed.
8436
8437 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
8438
8439 * windows-nat.c (windows_continue): Report an error if
8440 ContinueDebugEvent() fails.
8441
8442 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8443
8444 * windows-nat.c (windows_resume): Fix misspelling in debug output.
8445
8446 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8447
8448 * windows-nat.c (get_windows_debug_event): Replace retval with
8449 thread_id throughout. Update stale comment.
8450
8451 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8452
8453 * windows-nat.c (get_windows_debug_event): Don't use ternary
8454 conditional operator.
8455
8456 2015-04-21 Pierre Muller <muller@sourceware.org>
8457
8458 PR pascal/17815
8459 p-exp.y (yylex): Reorganize code to return the matched pattern
8460 for a field of this.
8461
8462 2015-04-21 Gary Benson <gbenson@redhat.com>
8463
8464 * common/fileio.h (fileio_to_host_openflags): New declaration.
8465 * common/fileio.c (fcntl.h): New include.
8466 (fileio_to_host_openflags): New function, factored out from...
8467 * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
8468 Single use updated.
8469
8470 2015-04-21 Kevin Buettner <kevinb@redhat.com>
8471
8472 * rl78-tdep.c (RL78_SP_ADDR): Define.
8473 (opc_reg_to_gdb_regnum): New static function.
8474 (rl78_analyze_prologue): Recognize instructions forming slightly
8475 more interesting prologues.
8476
8477 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
8478
8479 Revert:
8480 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8481 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
8482 TYPE_CODE_REF types so that they are not considered as dynamic
8483 depending on the referenced type.
8484 (resolve_dynamic_type_internal): Likewise.
8485
8486 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
8487
8488 Revert:
8489 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8490 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
8491 "top_level" parameter.
8492 (resolve_dynamic_type_internal): Remove the unused "top_level"
8493 parameter. Update call to is_dynamic_type_internal.
8494 (is_dynamic_type): Update call to is_dynamic_type_internal.
8495 (resolve_dynamic_range): Update call to
8496 resolve_dynamic_type_internal.
8497 (resolve_dynamic_union): Likewise.
8498 (resolve_dynamic_struct): Likewise.
8499 (resolve_dynamic_type): Likewise.
8500
8501 2015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
8502
8503 * breakpoint.c (update_dprintf_command_list): Remove duplicated
8504 xmalloc.
8505
8506 2015-04-20 Thomas Schwinge <thomas@codesourcery.com>
8507
8508 * reply_mig_hack.awk: Robustify parsing.
8509
8510 * reply_mig_hack.awk: Don't bother to declare an intermediate
8511 function pointer variable.
8512
8513 2015-04-17 Doug Evans <dje@google.com>
8514
8515 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
8516 to "exec_displacement" to avoid confusion with inner use of the name.
8517
8518 2015-04-17 Pedro Alves <palves@redhat.com>
8519
8520 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
8521 if HW point of TYPE isn't supported.
8522
8523 2015-04-17 Yao Qi <yao.qi@linaro.org>
8524 Pedro Alves <palves@redhat.com>
8525
8526 * target.h (target_can_use_hardware_watchpoint): Update comments.
8527 Remove trailing ";".
8528
8529 2015-04-17 Gary Benson <gbenson@redhat.com>
8530
8531 * remote.c (remote_add_inferior): New argument try_open_exec.
8532 If nonzero, attempt to open the inferior's executable file as
8533 the main executable if no main executable is open already.
8534 All callers updated.
8535 * NEWS: Mention that GDB now supports automatic location and
8536 retrieval of executable + files from remote targets.
8537
8538 2015-04-17 Gary Benson <gbenson@redhat.com>
8539
8540 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
8541 * remote.c (PACKET_qXfer_exec_file): Likewise.
8542 (remote_protocol_features): Register the
8543 "qXfer:exec-file:read" feature.
8544 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
8545 (remote_pid_to_exec_file): New function.
8546 (init_remote_ops): Initialize to_pid_to_exec_file.
8547 (_initialize_remote): Register new "set/show remote
8548 pid-to-exec-file-packet" command.
8549 * NEWS: Announce new qXfer:exec-file:read packet.
8550
8551 2015-04-17 Gary Benson <gbenson@redhat.com>
8552
8553 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
8554 New declaration.
8555 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
8556 New function, factored out from...
8557 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
8558
8559 2015-04-17 Gary Benson <gbenson@redhat.com>
8560
8561 * exec.c (solist.h): New include.
8562 (exec_file_locate_attach): Prefix absolute executable
8563 paths with gdb_sysroot if set.
8564 * NEWS: Mention that executable paths may be prepended
8565 with sysroot.
8566
8567 2015-04-17 Gary Benson <gbenson@redhat.com>
8568
8569 * solist.h (exec_file_find): New declaration.
8570 * solib.c (solib_find_1): New function, factored out from...
8571 (solib_find): ...here.
8572 (exec_file_find): New function.
8573
8574 2015-04-17 Gary Benson <gbenson@redhat.com>
8575
8576 * gdbcore.h (exec_file_locate_attach): New declaration.
8577 * exec.c (exec_file_locate_attach): New function, factored
8578 out from...
8579 * infcmd.c (attach_command_post_wait): ...here.
8580
8581 2015-04-17 Mike Frysinger <vapier@gentoo.org>
8582
8583 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
8584
8585 2015-04-16 Yao Qi <yao.qi@linaro.org>
8586
8587 * infrun.c (maybe_software_singlestep): Declare.
8588 (displaced_step_fixup): Call maybe_software_singlestep.
8589
8590 2015-04-15 Doug Evans <dje@google.com>
8591
8592 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
8593
8594 2015-04-15 Doug Evans <dje@google.com>
8595
8596 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
8597
8598 2015-04-15 Simon Marchi <simon.marchi@ericsson.com>
8599
8600 * python/lib/gdb/command/unwinders.py: Add parentheses.
8601
8602 2015-04-15 Yao Qi <yao.qi@linaro.org>
8603
8604 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
8605
8606 2015-04-15 Yao Qi <yao.qi@linaro.org>
8607
8608 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
8609
8610 2015-04-15 Yao Qi <yao.qi@linaro.org>
8611
8612 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
8613 dsc->insn_size instead of 4.
8614
8615 2015-04-14 Gary Benson <gbenson@redhat.com>
8616
8617 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
8618 * minidebug.c (lzma_stat): Likewise.
8619 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
8620 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
8621
8622 2015-04-13 Stan Shebs <stanshebs@google.com>
8623
8624 * MAINTAINERS: Update my email address.
8625
8626 2015-04-13 John Baldwin <jhb@FreeBSD.org>
8627
8628 * amd64-tdep.c (amd64_target_description): New function.
8629 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
8630 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
8631 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
8632 x86 extended save area.
8633 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
8634 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
8635 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
8636 (_initialize_amd64fbsd_nat): Set "to_read_description" to
8637 "amd64fbsd_read_description".
8638 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
8639 (amd64fbsd_supply_xstateregset): New function.
8640 (amd64fbsd_collect_xstateregset): New function.
8641 Add "amd64fbsd_xstateregset".
8642 (amd64fbsd_iterate_over_regset_sections): New function.
8643 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
8644 "I386_FBSD_XSAVE_XCR0_OFFSET".
8645 Add "iterate_over_regset_sections" gdbarch method.
8646 Add "core_read_description" gdbarch method.
8647 * i386-tdep.c (i386_target_description): New function.
8648 * i386-tdep.h: Export i386_target_description and tdesc_i386.
8649 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
8650 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
8651 x86 extended save area.
8652 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
8653 * i386bsd-nat.h: Export i386bsd_xsave_len.
8654 * i386fbsd-nat.c (i386fbsd_read_description): New function.
8655 (_initialize_i386fbsd_nat): Set "to_read_description" to
8656 "i386fbsd_read_description".
8657 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
8658 (i386fbsd_core_read_description): New function.
8659 (i386fbsd_supply_xstateregset): New function.
8660 (i386fbsd_collect_xstateregset): New function.
8661 Add "i386fbsd_xstateregset".
8662 (i386fbsd_iterate_over_regset_sections): New function.
8663 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
8664 "I386_FBSD_XSAVE_XCR0_OFFSET".
8665 Add "iterate_over_regset_sections" gdbarch method.
8666 Add "core_read_description" gdbarch method.
8667 * i386fbsd-tdep.h: New file.
8668
8669 2015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8670
8671 * NEWS (Changes since GDB 7.9): Add removed -xdb.
8672 * breakpoint.c (command_line_is_silent): Remove xdb_commands
8673 conditional.
8674 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
8675 and lb.
8676 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
8677 va.
8678 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
8679 conditional.
8680 * defs.h (xdb_commands): Remove declaration.
8681 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
8682 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
8683 * infcmd.c (run_no_args_command, go_command): Remove.
8684 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
8685 * infrun.c (xdb_handle_command): Remove.
8686 (_initialize_infrun): Remove xdb_commands for lz and z.
8687 * main.c (xdb_commands): Remove variable.
8688 (captured_main): Remove "xdb" from long_options.
8689 (print_gdb_help): Remove --xdb from help.
8690 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
8691 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
8692 * stack.c (backtrace_full_command, args_plus_locals_info)
8693 (current_frame_command): Remove.
8694 (_initialize_stack): Remove xdb_commands for t, T and l.
8695 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
8696 * thread.c (_initialize_thread): Remove xdb_commands condition.
8697 * tui/tui-layout.c (tui_toggle_layout_command)
8698 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
8699 (_initialize_tui_layout): Remove xdb_commands for td and ts.
8700 * tui/tui-regs.c (tui_scroll_regs_forward_command)
8701 (tui_scroll_regs_backward_command): Remove.
8702 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
8703 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
8704 (_initialize_tui_win): Remove xdb_commands for U and w.
8705 * utils.c (pagination_on_command, pagination_off_command): Remove.
8706 (initialize_utils): Remove xdb_commands for am and sm.
8707
8708 2015-04-10 Pedro Alves <palves@redhat.com>
8709
8710 * infrun.c (displaced_step_fixup): Switch to the event ptid
8711 earlier. If the thread stopped for a watchpoint and the
8712 target/arch has non-continuable watchpoints, cancel the displaced
8713 step.
8714 (resume): Don't start a displaced step if in-line step-over info
8715 is valid.
8716
8717 2015-04-10 Pedro Alves <palves@redhat.com>
8718
8719 * infrun.c (displaced_step_in_progress): New function.
8720 (do_target_resume): Advise target to report all signals if
8721 displaced stepping.
8722
8723 2015-04-10 Pedro Alves <palves@redhat.com>
8724
8725 PR gdb/18216
8726 * infrun.c (process_event_stop_test): Don't assume a step-resume
8727 is set if tp->stepped_breakpoint is true.
8728
8729 2015-04-10 Yao Qi <yao.qi@linaro.org>
8730
8731 * arm-tdep.c (install_alu_reg): Update comment.
8732 (thumb_copy_alu_reg): Remove local variable rn. Update
8733 debugging message. Use r2 instead of r1 in the modified
8734 instruction.
8735
8736 2015-04-10 Pedro Alves <palves@redhat.com>
8737
8738 PR gdb/13858
8739 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
8740 linux_displaced_step_location as gdbarch_displaced_step_location
8741 hook.
8742 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
8743 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
8744 * linux-tdep.c (linux_displaced_step_location): New function,
8745 based on ppc_linux_displaced_step_location.
8746 * linux-tdep.h (linux_displaced_step_location): New declaration.
8747 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
8748 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
8749 Delete.
8750 (ppc_linux_init_abi): Install linux_displaced_step_location as
8751 gdbarch_displaced_step_location hook, even without Cell/B.E..
8752 (_initialize_ppc_linux_tdep): Don't install
8753 ppc_linux_inferior_created as inferior_created observer.
8754 * s390-linux-tdep.c (s390_gdbarch_init): Install
8755 linux_displaced_step_location as gdbarch_displaced_step_location
8756 hook.
8757
8758 2015-04-09 Gary Benson <gbenson@redhat.com>
8759
8760 * common/common-remote-fileio.h: Rename to...
8761 * common/fileio.h: ...this. Update all references.
8762 (remote_fileio_to_fio_error): Rename to...
8763 (host_to_fileio_error): ...this.
8764 (remote_fileio_to_be): Rename to...
8765 (host_to_bigendian): ...this. Update all callers.
8766 (remote_fileio_to_fio_uint): Rename to...
8767 (host_to_fileio_uint): ...this. Update all callers.
8768 (remote_fileio_to_fio_time): Rename to...
8769 (host_to_fileio_time): ...this. Update all callers.
8770 (remote_fileio_to_fio_stat): Rename to...
8771 (host_to_fileio_stat): ...this.
8772 Update all references.
8773 * common/common-remote-fileio.c: Rename to...
8774 * common/fileio.c: ...this. Update all references.
8775 (remote_fileio_to_fio_error): Rename to...
8776 (host_to_fileio_error): ...this. Update all callers.
8777 (remote_fileio_mode_to_target): Rename to...
8778 (fileio_mode_pack): ...this. Update all callers.
8779 (remote_fileio_to_fio_mode): Rename to...
8780 (host_to_fileio_mode): ...this. Update all callers.
8781 (remote_fileio_to_fio_ulong): Rename to...
8782 (host_to_fileio_ulong): ...this. Update all callers.
8783 (remote_fileio_to_fio_stat): Rename to...
8784 (host_to_fileio_stat): ...this. Update all callers.
8785
8786 2015-04-09 Andy Wingo <wingo@igalia.com>
8787
8788 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
8789 (frame_functions): Bind gdbscm_frame_read_register to
8790 frame-read-register.
8791 * guile/lib/gdb.scm (frame-read-register): Export.
8792
8793 2015-04-09 Gary Benson <gbenson@redhat.com>
8794
8795 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
8796 New declaration.
8797 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
8798 New function, factored out the named functions below.
8799 * inf-child.c (gdb/fileio.h): Remove include.
8800 (common-remote-fileio.h): New include.
8801 (inf_child_errno_to_fileio_error): Remove function. Update
8802 all callers to use remote_fileio_to_fio_error.
8803 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
8804
8805 2015-04-09 Andy Wingo <wingo@igalia.com>
8806
8807 * MAINTAINERS (Write After Approval): Add Andy Wingo.
8808
8809 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
8810
8811 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
8812 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
8813 * configure: Regenerated.
8814
8815 2015-04-09 Pedro Alves <palves@redhat.com>
8816
8817 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
8818 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
8819 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
8820 * gnulib/import/Makefile.am: Update.
8821 * gnulib/import/Makefile.in: Update.
8822 * gnulib/import/m4/gnulib-cache.m4: Update.
8823 * gnulib/import/m4/gnulib-comp.m4: Update.
8824 * gnulib/import/m4/strtok_r.m4: New file.
8825 * gnulib/import/strtok_r.c: New file.
8826
8827 2015-04-09 Pedro Alves <palves@redhat.com>
8828
8829 * gnulib/update-gnulib.sh (aclocal version check): Filter out
8830 "called too early to check prototype".
8831
8832 2015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
8833
8834 PR python/16699
8835 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
8836 use a caching mechanism. Adjust comments and code to reflect
8837 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
8838 (cmdpy_completer_handle_brkchars): Adjust call to
8839 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
8840 (cmdpy_completer): Likewise.
8841
8842 2015-04-08 Yao Qi <yao.qi@linaro.org>
8843
8844 * spu-tdep.c (spu_gdbarch_init): Don't call
8845 set_gdbarch_cannot_step_breakpoint.
8846
8847 2015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
8848
8849 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
8850
8851 2015-04-07 Pedro Alves <palves@redhat.com>
8852
8853 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
8854 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
8855 (delete_exited_threads): New declaration.
8856 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
8857 * linux-nat.c (linux_nat_update_thread_list): New function.
8858 (linux_nat_add_target): Install it.
8859 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
8860 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
8861 (delete_exited_threads): New function.
8862
8863 2015-04-07 Pedro Alves <pedro@codesourcery.com>
8864
8865 * infrun.c (resume) <displaced stepping debug output>: Get the
8866 leader thread's regcache, not resume_ptid's.
8867
8868 2015-04-06 Doug Evans <xdje42@gmail.com>
8869
8870 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
8871 VAR_DOMAIN.
8872 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
8873 Include symbol domain in debugging output.
8874
8875 2015-04-06 Pedro Alves <palves@redhat.com>
8876 Bernd Edlinger <bernd.edlinger@hotmail.de>
8877
8878 * configure.ac: Remove the mingw32-specific stub-termcap.o
8879 fallback, and instead fallback to the stub termcap on all hosts.
8880 * configure: Regenerate.
8881 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
8882 symbols.
8883
8884 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8885
8886 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
8887 "top_level" parameter.
8888 (resolve_dynamic_type_internal): Remove the unused "top_level"
8889 parameter. Update call to is_dynamic_type_internal.
8890 (is_dynamic_type): Update call to is_dynamic_type_internal.
8891 (resolve_dynamic_range): Update call to
8892 resolve_dynamic_type_internal.
8893 (resolve_dynamic_union): Likewise.
8894 (resolve_dynamic_struct): Likewise.
8895 (resolve_dynamic_type): Likewise.
8896
8897 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8898
8899 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
8900 TYPE_CODE_REF types so that they are not considered as dynamic
8901 depending on the referenced type.
8902 (resolve_dynamic_type_internal): Likewise.
8903
8904 2015-04-02 H.J. Lu <hongjiu.lu@intel.com>
8905
8906 * Makefile.in (top_srcdir): New.
8907 * configure: Regenerated.
8908
8909 2015-04-02 Gary Benson <gbenson@redhat.com>
8910
8911 * NEWS: Announce the new default sysroot of "target:".
8912
8913 2015-04-02 Gary Benson <gbenson@redhat.com>
8914
8915 * main.c (captured_main): Set gdb_sysroot to "target:"
8916 if not otherwise set.
8917
8918 2015-04-02 Gary Benson <gbenson@redhat.com>
8919
8920 * exec.c (exec_file_attach): Support "target:" filenames.
8921
8922 2015-04-02 Gary Benson <gbenson@redhat.com>
8923
8924 * solib.c (solib_find): Strip "target:" prefix from sysroot
8925 if accessing local files.
8926
8927 2015-04-02 Gary Benson <gbenson@redhat.com>
8928
8929 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
8930 checks and error messages.
8931
8932 2015-04-02 Gary Benson <gbenson@redhat.com>
8933
8934 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
8935 (remote_filename_p): Remove declaration.
8936 (remote_bfd_open): Likewise.
8937 * remote.c (remote_bfd_iovec_open): Remove function.
8938 (remote_bfd_iovec_close): Likewise.
8939 (remote_bfd_iovec_pread): Likewise.
8940 (remote_bfd_iovec_stat): Likewise.
8941 (remote_filename_p): Likewise.
8942 (remote_bfd_open): Likewise.
8943 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
8944 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
8945 (gdb_bfd_open_maybe_remote): Remove function.
8946 (symfile_bfd_open): Replace remote filename check with
8947 target filename check.
8948 (reread_symbols): Use gdb_bfd_open.
8949 * build-id.c (gdbcore.h): New include.
8950 (build_id_to_debug_bfd): Use gdb_bfd_open.
8951 * infcmd.c (attach_command_post_wait): Remove remote filename
8952 check.
8953 * solib.c (solib_find): Replace remote-specific handling with
8954 target-specific handling. Update comments where necessary.
8955 (solib_bfd_open): Replace remote-specific handling with
8956 target-specific handling.
8957 (gdb_sysroot_changed): New function.
8958 (_initialize_solib): Call the above when gdb_sysroot changes.
8959 * windows-tdep.c (gdbcore.h): New include.
8960 (windows_xfer_shared_library): Use gdb_bfd_open.
8961
8962 2015-04-02 Gary Benson <gbenson@redhat.com>
8963
8964 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
8965 (is_target_filename): New declaration.
8966 (gdb_bfd_has_target_filename): Likewise.
8967 (gdb_bfd_open): Update documentation comment.
8968 * gdb_bfd.c (target.h): New include.
8969 (gdb/fileio.h): Likewise.
8970 (is_target_filename): New function.
8971 (gdb_bfd_has_target_filename): Likewise.
8972 (fileio_errno_to_host): Likewise.
8973 (gdb_bfd_iovec_fileio_open): Likewise.
8974 (gdb_bfd_iovec_fileio_pread): Likewise.
8975 (gdb_bfd_iovec_fileio_close): Likewise.
8976 (gdb_bfd_iovec_fileio_fstat): Likewise.
8977 (gdb_bfd_open): Use target fileio to access paths prefixed
8978 with "target:" where necessary.
8979
8980 2015-04-02 Gary Benson <gbenson@redhat.com>
8981
8982 * target.h (struct target_ops) <to_filesystem_is_local>:
8983 New field.
8984 (target_filesystem_is_local): New macro.
8985 * target-delegates.c: Regenerate.
8986 * remote.c (remote_filesystem_is_local): New function.
8987 (init_remote_ops): Initialize to_filesystem_is_local.
8988
8989 2015-04-02 Gary Benson <gbenson@redhat.com>
8990
8991 * target.h (struct target_ops) <to_fileio_fstat>: New field.
8992 (target_fileio_fstat): New declaration.
8993 * target.c (target_fileio_fstat): New function.
8994 * inf-child.c (inf_child_fileio_fstat): Likewise.
8995 (inf_child_target): Initialize to_fileio_fstat.
8996 * remote.c (init_remote_ops): Likewise.
8997
8998 2015-04-01 Sasha Smundak <asmundak@google.com>
8999
9000 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
9001 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
9002 (py-unwind.o): New recipe.
9003 * NEWS: mention Python frame unwinding.
9004 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
9005 gdb/unwinder.py and gdb/command/unwinder.py
9006 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
9007 list.
9008 (execute_unwinders): New function.
9009 * python/lib/gdb/command/unwinders.py: New file.
9010 * python/lib/gdb/unwinder.py: New file.
9011 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
9012 (objfpy_dealloc): Decrement frame_unwinders reference count.
9013 (objfpy_initialize): Create frame_unwinders list.
9014 (objfpy_get_frame_unwinders): New function.
9015 (objfpy_set_frame_unwinders): Ditto.
9016 (objfile_getset): Add frame_unwinders attribute to Objfile.
9017 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
9018 (pspy_dealloc): Decrement frame_unwinders reference count.
9019 (pspy_initialize): Create frame_unwinders list.
9020 (pspy_get_frame_unwinders): New function.
9021 (pspy_set_frame_unwinders): Ditto.
9022 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
9023 * python/py-unwind.c: New file.
9024 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
9025 (objpy_get_frame_unwinders): New prototype.
9026 (gdbpy_initialize_unwind): New prototype.
9027 * python/python.c (gdbpy_apply_type_printers): Call
9028 gdbpy_initialize_unwind.
9029
9030 2015-04-01 Pedro Alves <palves@redhat.com>
9031
9032 * infrun.c (resume): Check currently_stepping after clearing
9033 stepped_breakpoint, not before.
9034
9035 2015-04-01 Pedro Alves <palves@redhat.com>
9036
9037 * infrun.c (print_target_wait_results): Print all the ptid
9038 elements.
9039
9040 2015-04-01 Pedro Alves <palves@redhat.com>
9041
9042 * infrun.c (keep_going): Also discard cleanups if inserting
9043 breakpoints fails.
9044
9045 2015-04-01 Pedro Alves <palves@redhat.com>
9046
9047 * infrun.c (wait_for_inferior): Install the
9048 finish_thread_state_cleanup cleanup across the whole function, not
9049 just around handle_inferior_event.
9050
9051 2015-04-01 Pedro Alves <palves@redhat.com>
9052
9053 * infrun.c (resume) <step past permanent breakpoint>: Use
9054 do_target_resume.
9055
9056 2015-04-01 Pedro Alves <palves@redhat.com>
9057
9058 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
9059
9060 2015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
9061
9062 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
9063
9064 2015-04-01 Pedro Alves <palves@redhat.com>
9065
9066 * linux-thread-db.c (record_thread): Readd the thread to gdb's
9067 list if it was marked exited.
9068
9069 2015-04-01 H.J. Lu <hongjiu.lu@intel.com>
9070
9071 * configure: Regenerated.
9072
9073 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
9074 Jan Kratochvil <jan.kratochvil@redhat.com>
9075 Oleg Nesterov <oleg@redhat.com>
9076
9077 PR corefiles/16092
9078 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
9079 New enum identifying the various options of the coredump_filter
9080 file.
9081 (struct smaps_vmflags): New struct.
9082 (use_coredump_filter): New variable.
9083 (decode_vmflags): New function.
9084 (mapping_is_anonymous_p): Likewise.
9085 (dump_mapping_p): Likewise.
9086 (linux_find_memory_regions_full): New variables
9087 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
9088 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
9089 parsing of its information. Implement memory mapping filtering
9090 based on its contents.
9091 (show_use_coredump_filter): New function.
9092 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
9093 * NEWS: Mention the possibility of using the
9094 '/proc/PID/coredump_filter' file when generating a corefile.
9095 Mention new command 'set use-coredump-filter'.
9096
9097 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
9098
9099 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
9100 read_memory_unsigned_integer.
9101
9102 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
9103
9104 * Makefile.in (ZLIB): New.
9105 (ZLIBINC): Likewise.
9106 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
9107 (CLIBS): Add $(ZLIB).
9108 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
9109 Add -lz to LIBS.
9110 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
9111 * top.c (print_gdb_configuration): Remove --with-zlib and
9112 --without-zlib.
9113 * config.in: Regenerated.
9114 * configure: Likewise.
9115
9116 2015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
9117
9118 * NEWS: Mention info os cpus support.
9119 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
9120 (struct osdata_type): Add cpus entry, reorder the entries in
9121 alphabetical order.
9122
9123 2015-03-31 Matthias Klose <doko@ubuntu.com>
9124
9125 * compile/compile.c (compile_to_object): Allow triplets with or
9126 without vendor set.
9127
9128 2015-03-30 Doug Evans <dje@google.com>
9129
9130 PR c++/18141
9131 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
9132 klass in VAR_DOMAIN.
9133
9134 2015-03-30 Gary Benson <gbenson@redhat.com>
9135
9136 * remote.c (remote_mourn_1): Remove function. Update all callers
9137 to use remote_mourn.
9138 (extended_remote_mourn_1): Remove function. Update all callers
9139 to use extended_remote_mourn.
9140 (extended_remote_attach_1): Remove function. Update all callers
9141 to use extended_remote_attach.
9142
9143 2015-03-28 James Bowman <james.bowman@ftdichip.com>
9144
9145 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
9146 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
9147 (ALLDEPFILES): Add ft32-tdep.c.
9148 * configure.tgt: Add FT32 entry.
9149 * ft32-tdep.c: New file, FT32 target-dependent code.
9150 * ft32-tdep.h: New file, FT32 target-dependent code.
9151
9152 2015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9153
9154 Revert:
9155 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9156 Code cleanup.
9157 * printcmd.c (print_command_1): Move expr variable scope.
9158
9159 2015-03-27 Joel Brobecker <brobecker@adacore.com>
9160
9161 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
9162
9163 2015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
9164
9165 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
9166 sections.
9167
9168 2015-03-26 Joel Brobecker <brobecker@adacore.com>
9169
9170 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
9171 exception raised while parsing the probe arguments.
9172 Force parsing to be done using the C language parser.
9173 * expression.h (parse_expression_with_language): Declare.
9174 * parse.c (parse_expression_with_language): New function.
9175
9176 2015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
9177
9178 * MAINTAINERS (Write After Approval): Add "Jon Turney".
9179
9180 2015-03-26 Andy Wingo <wingo@igalia.com>
9181
9182 PR symtab/18148
9183 * dwarf2read.c (struct partial_die_info): Add has_const_value
9184 member.
9185 (add_partial_symbol): Don't punt on symbols that have const_value
9186 attributes.
9187 (read_partial_die): Detect DW_AT_const_value.
9188
9189 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9190
9191 Code cleanup.
9192 * printcmd.c (print_command_1): Move expr variable scope.
9193
9194 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9195
9196 Code cleanup.
9197 * printcmd.c (validate_format): Make the parameter cmdname const.
9198
9199 2015-03-26 Don Breazeal <donb@codesourcery.com>
9200
9201 * remote.c (_initialize_remote): Update comment.
9202
9203 2015-03-26 Pedro Alves <palves@redhat.com>
9204 Jon TURNEY <jon.turney@dronecode.org.uk>
9205
9206 * coffread.c (coff_symfile_read): When constructing the name of an
9207 import stub symbol from import symbol for amd64, only skip the
9208 char after _imp_ if the target is underscored (like i386) and the
9209 char is indeed the target's leading char.
9210
9211 2015-03-25 Pedro Alves <palves@redhat.com>
9212
9213 * target.h <to_async>: Replace 'callback' and 'context' parameters
9214 with boolean 'enable' parameter.
9215 (target_async): Replace CALLBACK and CONTEXT parameters with
9216 boolean ENABLE parameter.
9217 * inf-loop.c (inferior_event_handler): Adjust.
9218 * linux-nat.c (linux_nat_attach, linux_nat_resume)
9219 (linux_nat_resume): Adjust.
9220 (async_client_callback, async_client_context): Delete.
9221 (handle_target_event): Call inferior_event_handler directly.
9222 (linux_nat_async): Replace 'callback' and 'context' parameters
9223 with boolean 'enable' parameter. Adjust. Remove references to
9224 async_client_callback and async_client_context.
9225 (linux_nat_close): Adjust.
9226 * record-btrace.c (record_btrace_async): Replace 'callback' and
9227 'context' parameters with boolean 'enable' parameter. Adjust.
9228 (record_btrace_resume): Adjust.
9229 * record-full.c (record_full_async): Replace 'callback' and
9230 'context' parameters with boolean 'enable' parameter. Adjust.
9231 (record_full_resume, record_full_core_resume): Adjust.
9232 * remote.c (struct remote_state) <async_client_callback,
9233 async_client_context>: Delete fields.
9234 (remote_start_remote, extended_remote_attach_1, remote_resume)
9235 (extended_remote_create_inferior): Adjust.
9236 (remote_async_serial_handler): Call inferior_event_handler
9237 directly.
9238 (remote_async): Replace 'callback' and 'context' parameters with
9239 boolean 'enable' parameter. Adjust.
9240 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
9241 Adjust.
9242 * target-delegates.c: Regenerate.
9243
9244 2015-03-25 Gary Benson <gbenson@redhat.com>
9245 Pedro Alves <palves@redhat.com>
9246
9247 * target.c (fileio_ft_t): New typedef, define object vector.
9248 (fileio_fhandles): New static variable.
9249 (is_closed_fileio_fh): New macro.
9250 (lowest_closed_fd): New static variable.
9251 (acquire_fileio_fd): New function.
9252 (release_fileio_fd): Likewise.
9253 (fileio_fd_to_fh): New macro.
9254 (target_fileio_open): Wrap the file descriptor on success.
9255 (target_fileio_pwrite): Updated to use wrapped file descriptor.
9256 (target_fileio_pread): Likewise.
9257 (target_fileio_close): Likewise.
9258
9259 2015-03-24 Pedro Alves <palves@redhat.com>
9260
9261 * thread.c (thread_apply_all_command): Take exited threads into
9262 account.
9263
9264 2015-03-24 Pedro Alves <palves@redhat.com>
9265
9266 * infrun.c (resume, proceed): Mention
9267 switch_back_to_stepped_thread, not switch_back_to_stepping.
9268
9269 2015-03-24 Pedro Alves <palves@redhat.com>
9270
9271 * infrun.c (user_visible_resume_ptid): Rewrite going from
9272 most-locked to unlocked instead of the opposite. Move comment ...
9273 * infrun.h (user_visible_resume_ptid): ... here.
9274
9275 2015-03-24 Pedro Alves <palves@redhat.com>
9276
9277 * linux-nat.c (linux_nat_resume): Output debug logs before trying
9278 to resume the event lwp. Use the lwp's ptid instead of the passed
9279 in (maybe wildcard) ptid.
9280 (stop_wait_callback): Tweak debug log output.
9281 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
9282 TRAP_TRACE.
9283 (linux_nat_filter_event): In debug output, distinguish a
9284 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
9285 before trying to resume the lwp.
9286
9287 2015-03-24 Joel Brobecker <brobecker@adacore.com>
9288
9289 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
9290 pointer indirection.
9291 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
9292 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
9293
9294 2015-03-24 Joel Brobecker <brobecker@adacore.com>
9295
9296 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
9297 Renames DYN_ATTR_DATA_LOCATION.
9298 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
9299 DYN_ATTR_DATA_LOCATION.
9300 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
9301 instead of DYN_ATTR_DATA_LOCATION.
9302
9303 2015-03-24 Pedro Alves <palves@redhat.com>
9304
9305 * breakpoint.c (until_break_command): Adjust call to proceed.
9306 * gdbthread.h (struct thread_control_state) <stepping_command>:
9307 New field.
9308 * infcall.c (run_inferior_call): Adjust call to proceed.
9309 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
9310 Adjust calls to proceed.
9311 (set_step_frame): Set the current thread's step_start_function
9312 here.
9313 (step_once): Adjust calls to proceed.
9314 (jump_command, signal_command, until_next_command)
9315 (finish_backward, finish_forward, proceed_after_attach_callback)
9316 (attach_command_post_wait): Adjust calls to proceed.
9317 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
9318 (do_target_resume): New function, factored out from ...
9319 (resume): ... here. Remove 'step' parameter. Instead, check
9320 currently_stepping to determine whether the thread should be
9321 single-stepped.
9322 (proceed): Remove 'step' parameter and don't set the thread's
9323 step_start_function here. Adjust call to 'resume'.
9324 (handle_inferior_event): Adjust calls to 'resume'.
9325 (switch_back_to_stepped_thread): Use do_target_resume instead of
9326 'resume'.
9327 (keep_going): Adjust calls to 'resume'.
9328 * infrun.h (proceed): Remove 'step' parameter.
9329 (resume): Likewise.
9330 * windows-nat.c (do_initial_windows_stuff): Adjust call to
9331 'resume'.
9332 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
9333
9334 2015-03-24 Pedro Alves <palves@redhat.com>
9335
9336 * gdbthread.h (struct thread_control_state) <stepping_command>:
9337 New field.
9338 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
9339 the thread's stepping_command field.
9340 * infrun.c (resume): Check the thread's stepping_command flag to
9341 determine which threads should be resumed. Rename 'entry_step'
9342 local to user_step.
9343 (clear_proceed_status_thread): Clear 'stepping_command'.
9344 (schedlock_applies): Change parameter type to struct thread_info
9345 pointer. Adjust.
9346 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
9347 (switch_back_to_stepped_thread): Adjust calls to
9348 'schedlock_applies'.
9349 (_initialize_infrun): Adjust "set scheduler-locking step" help.
9350
9351 2015-03-24 Pedro Alves <palves@redhat.com>
9352
9353 * infrun.c (step_start_function): Delete and ...
9354 * gdbthread.h (struct thread_control_state) <step_start_function>:
9355 ... now a field here.
9356 * infrun.c (clear_proceed_status_thread): Clear the thread's
9357 step_start_function.
9358 (proceed, process_event_stop_test, print_stop_event): Adjust.
9359
9360 2015-03-24 Pedro Alves <palves@redhat.com>
9361
9362 * infrun.c (proceed): No longer handle negative step.
9363
9364 2015-03-24 Gary Benson <gbenson@redhat.com>
9365
9366 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
9367 (x86_linux_prepare_to_resume): Likewise.
9368 * x86-linux-nat.c (x86_linux_new_thread):
9369 Moved to nat/x86-linux.c.
9370 (x86_linux_prepare_to_resume): Likewise.
9371 * nat/x86-linux.c (x86_linux_new_thread): New function.
9372 (x86_linux_prepare_to_resume): Likewise.
9373
9374 2015-03-24 Gary Benson <gbenson@redhat.com>
9375
9376 * nat/x86-linux-dregs.h: New file.
9377 * nat/x86-linux-dregs.c: Likewise.
9378 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
9379 (x86-linux-dregs.o): New rule.
9380 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
9381 * config/i386/linux64.mh (NATDEPFILES): Likewise.
9382 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
9383 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
9384 (x86_linux_dr_get): Likewise.
9385 (x86_linux_dr_set): Likewise.
9386 (x86_linux_dr_get_addr): Likewise.
9387 (x86_linux_dr_get_control): Likewise.
9388 (x86_linux_dr_get_status): Likewise.
9389 (update_debug_registers_callback): Likewise.
9390 (x86_linux_dr_set_control): Likewise.
9391 (x86_linux_dr_set_addr): Likewise.
9392 (x86_linux_update_debug_registers): Likewise.
9393
9394 2015-03-24 Gary Benson <gbenson@redhat.com>
9395
9396 * x86-linux-nat.c (x86_linux_update_debug_registers):
9397 New function, factored out from...
9398 (x86_linux_prepare_to_resume): ...this.
9399
9400 2015-03-24 Gary Benson <gbenson@redhat.com>
9401
9402 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
9403 (x86_linux_dr_set): Likewise.
9404 (x86_linux_dr_get_addr): Likewise.
9405 (x86_linux_dr_get_control): Likewise.
9406 (x86_linux_dr_get_status): Likewise.
9407 (update_debug_registers_callback): Likewise.
9408 (x86_linux_dr_set_control): Likewise.
9409 (x86_linux_dr_set_addr): Likewise.
9410 (x86_linux_prepare_to_resume): Likewise.
9411 (x86_linux_new_thread): Likewise.
9412
9413 2015-03-24 Gary Benson <gbenson@redhat.com>
9414
9415 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
9416 (x86_linux_new_thread): Rename argument.
9417
9418 2015-03-24 Gary Benson <gbenson@redhat.com>
9419
9420 * nat/x86-linux.h: New file.
9421 * nat/x86-linux.c: Likewise.
9422 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
9423 (x86-linux.o): New rule.
9424 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
9425 * config/i386/linux64.mh (NATDEPFILES): Likewise.
9426 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
9427 (lwp_set_arch_private_info): New declaration.
9428 (lwp_arch_private_info): Likewise.
9429 * linux-nat.c (lwp_set_arch_private_info): New function.
9430 (lwp_arch_private_info): Likewise.
9431 * x86-linux-nat.c: Include nat/x86-linux.h.
9432 (arch_lwp_info): Removed structure.
9433 (update_debug_registers_callback):
9434 Use lwp_set_debug_registers_changed.
9435 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
9436 and lwp_set_debug_registers_changed.
9437 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
9438
9439 2015-03-24 Gary Benson <gbenson@redhat.com>
9440
9441 * nat/linux-nat.h (ptid_of_lwp): New declaration.
9442 (lwp_is_stopped): Likewise.
9443 (lwp_stop_reason): Likewise.
9444 * linux-nat.c (ptid_of_lwp): New function.
9445 (lwp_is_stopped): Likewise.
9446 (lwp_is_stopped_by_watchpoint): Likewise.
9447 * x86-linux-nat.c (update_debug_registers_callback):
9448 Use lwp_is_stopped.
9449 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
9450 lwp_stop_reason.
9451
9452 2015-03-24 Gary Benson <gbenson@redhat.com>
9453
9454 * linux-nat.h (linux_stop_lwp): Move declaration to...
9455 * nat/linux-nat.h (linux_stop_lwp): New declaration.
9456
9457 2015-03-24 Gary Benson <gbenson@redhat.com>
9458
9459 * linux-nat.h: Include nat/linux-nat.h.
9460 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
9461 * nat/linux-nat.h (struct lwp_info): New forward declaration.
9462 (iterate_over_lwps_ftype): New typedef.
9463 (iterate_over_lwps): New declaration.
9464 * linux-nat.h (iterate_over_lwps): Update comment. Use
9465 iterate_over_lwps_ftype. Update callback return value check.
9466
9467 2015-03-24 Gary Benson <gbenson@redhat.com>
9468
9469 * x86-nat.h (x86_debug_reg_state): Move declaration to...
9470 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
9471
9472 2015-03-24 Gary Benson <gbenson@redhat.com>
9473
9474 * nat/linux-nat.h (current_lwp_ptid): New declaration.
9475 * linux-nat.c (current_lwp_ptid): New function.
9476 * x86-linux-nat.c: Include nat/linux-nat.h.
9477 (x86_linux_dr_get_addr): Use current_lwp_ptid.
9478 (x86_linux_dr_get_control): Likewise.
9479 (x86_linux_dr_get_status): Likewise.
9480 (x86_linux_dr_set_control): Likewise.
9481 (x86_linux_dr_set_addr): Likewise.
9482
9483 2015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
9484
9485 PR breakpoints/16466
9486 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
9487
9488 2015-03-23 Joel Brobecker <brobecker@adacore.com>
9489
9490 * ser-mingw.c (ser_windows_setparity): Fix indentation.
9491 * ser-unix.c (hardwire_setparity): Likewise.
9492
9493 2015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
9494
9495 * NEWS: Mention set/show serial parity command.
9496 * monitor.c (monitor_open): Call serial_setparity.
9497 * remote.c (remote_open_1): Likewise.
9498 * ser-base.c (ser_base_serparity): New function.
9499 * ser-base.h (ser_base_setparity): Add declaration.
9500 * ser-go32.c (dos_ops): Set "setparity" field.
9501 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
9502 state.Parity.
9503 (ser_windows_setparity): New function.
9504 (hardwire_ops): Add ser_windows_setparity.
9505 (tty_ops): Add NULL for setparity field.
9506 (pipe_ops): Add ser_base_setparity.
9507 (tcp_ops): Likewise.
9508 * ser-pipe.c (pipe_ops): Likewise.
9509 * ser-tcp.c (tcp_ops): Likewise.
9510 * ser-unix.c (hardwire_setparity): Add declaration.
9511 (hardwire_raw): Don't reset PARENB flag.
9512 (hardwire_setparity): New function.
9513 (hardwire_ops): Add hardwire_setparity.
9514 * serial.c (serial_setparity): New function.
9515 (serial_parity): New global.
9516 (parity_none, parity_odd, parity_even, parity_enums, parity):
9517 New static globals.
9518 (set_parity): New function.
9519 (_initialize_serial): Add set/show serial parity commands.
9520 * serial.h (GDBPARITY_NONE): Define.
9521 (GDBPARITY_ODD): Define.
9522 (GDBPARITY_EVEN): Define.
9523 (serial_setparity) Add declaration.
9524 (struct serial_ops): Add setparity field.
9525 * target.h (serial_parity): Add declaration.
9526
9527 2015-03-23 Keith Seitz <keiths@redhat.com>
9528
9529 * linespec.c (linespec_lexer_lex_keyword): Update comment.
9530
9531 2015-03-23 Keith Seitz <keiths@redhat.com>
9532
9533 * breakpoint.c (parse_breakpoint_sals): Use
9534 linespec_lexer_lex_keyword to ascertain if the user specified
9535 a NULL location.
9536 * linespec.c [IF_KEYWORD_INDEX]: Define.
9537 (linespec_lexer_lex_keyword): Export.
9538 (struct ls_parser) <keyword_ok>: Remove.
9539 A keyword is only a keyword if not followed by another keyword.
9540 (linespec_lexer_lex_one): Remove keyword_ok handling.
9541 Add comment explaining why the parsing stream is not advanced
9542 when a keyword is seen.
9543 (parse_linespec): Remove parser->keyword_ok.
9544 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
9545
9546 2015-03-23 Keith Seitz <keiths@redhat.com>
9547
9548 PR gdb/18021
9549 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
9550 if we find a static method with DW_AT_vtable_elem_location.
9551
9552 2015-03-21 Eli Zaretskii <eliz@gnu.org>
9553
9554 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
9555 before the second loop, to avoid undefined behavior. Reported by
9556 Anton Blanchard <anton@samba.org>.
9557
9558 2015-03-20 Keven Boell <keven.boell@intel.com>
9559
9560 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
9561 data_location usage to linked list.
9562 (resolve_dynamic_type_internal): Adapt data_location to
9563 linked list.
9564 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
9565 (copy_type_recursive, copy_type): Add copy of linked list.
9566 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
9567 (struct dynamic_prop_list): New struct.
9568 * dwarf2read.c (set_die_type): Set data_location data.
9569
9570 2015-03-20 Pedro Alves <palves@redhat.com>
9571
9572 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
9573 inner block and make it const.
9574 * machoread.c (get_archive_prefix_len): Make "lparen" const.
9575
9576 2015-03-20 Pedro Alves <palves@redhat.com>
9577
9578 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
9579 * breakpoint.h (set_breakpoint_condition): Update declaration.
9580
9581 2015-03-20 Pedro Alves <palves@redhat.com>
9582
9583 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
9584
9585 2015-03-20 Pedro Alves <palves@redhat.com>
9586
9587 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
9588
9589 2015-03-20 Pedro Alves <palves@redhat.com>
9590
9591 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
9592
9593 2015-03-20 Pedro Alves <palves@redhat.com>
9594
9595 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
9596 (nto_init_solib_absolute_prefix): Likewise.
9597
9598 2015-03-20 Pedro Alves <palves@redhat.com>
9599
9600 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
9601 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
9602
9603 2015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9604
9605 * config/djgpp/README: Remove gdb.hp.
9606
9607 2015-03-20 Yao Qi <yao.qi@linaro.org>
9608
9609 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
9610 set_gdbarch_cannot_step_breakpoint.
9611
9612 2015-03-19 Pedro Alves <palves@redhat.com>
9613
9614 * linux-nat.c (linux_resume_one_lwp): Rename to ...
9615 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
9616 instead call perror_with_name.
9617 (check_ptrace_stopped_lwp_gone): New function.
9618 (linux_resume_one_lwp): Reimplement as wrapper around
9619 linux_resume_one_lwp_throw that swallows errors if the LWP is
9620 gone.
9621 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
9622 swallows errors if the LWP is gone. Use
9623 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
9624
9625 2015-03-19 Pedro Alves <palves@redhat.com>
9626
9627 * linux-nat.c (status_callback): Return early if the LWP has no
9628 status pending.
9629
9630 2015-03-19 Pedro Alves <palves@redhat.com>
9631
9632 * linux-nat.c (select_event_lwp_callback): Update comment to no
9633 longer mention SIGTRAP.
9634
9635 2015-03-18 Tristan Gingold <gingold@adacore.com>
9636
9637 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
9638 redirection code to ...
9639 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
9640 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
9641
9642 2015-03-18 Gary Benson <gbenson@redhat.com>
9643
9644 (remote_protocol_features): Remove the "vFile:fstat" feature.
9645 (remote_hostio_fstat): Probe for "vFile:fstat" support.
9646
9647 2015-03-11 Yao Qi <yao.qi@linaro.org>
9648
9649 PR tdep/18107
9650 * aarch64-linux-tdep.c: Include xml-syscall.h
9651 (aarch64_linux_get_syscall_number): New function.
9652 (aarch64_linux_init_abi): Call
9653 set_gdbarch_get_syscall_number.
9654 * syscalls/aarch64-linux.xml: New file.
9655
9656 2015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
9657
9658 * ser-base.h (ser_base_setstopbits): Change second argument name
9659 from "rate" to "num".
9660
9661 2015-03-17 Gary Benson <gbenson@redhat.com>
9662 Luke Allardyce <lukeallardyce@gmail.com>
9663
9664 PR gdb/18131
9665 * common/common-remote-fileio.h (sys/stat.h): New include.
9666 (stuct stat): Remove forward declaration.
9667
9668 2015-03-16 John Baldwin <jhb@FreeBSD.org>
9669
9670 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
9671 before writing core register notes.
9672
9673 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
9674 Pedro Alves <palves@redhat.com>
9675
9676 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
9677 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
9678 (tgoto): Wrap with extern "C".
9679
9680 2015-03-16 Pedro Alves <palves@redhat.com>
9681 Yuanhui Zhang <asmwarrior@gmail.com>
9682
9683 * stub-termcap.c (tputs): Change prototype.
9684
9685 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
9686 Pedro Alves <palves@redhat.com>
9687
9688 * windows-nat.c (struct thread_info_struct): Rename to ...
9689 (struct windows_thread_info_struct): ... this.
9690 (thread_info): Rename to ...
9691 (windows_thread_info): ... this.
9692 All users updated.
9693
9694 2015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9695 Pedro Alves <palves@redhat.com>
9696
9697 * NEWS: New Removed targets and native configurations.
9698
9699 2015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9700
9701 Remove HPUX.
9702 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
9703 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
9704 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
9705 ia64-hpux-tdep.h, solib-ia64-hpux.h.
9706 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
9707 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
9708 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
9709 hppa-hpux-tdep.c.
9710 * config/ia64/hpux.mh: Remove file.
9711 * config/pa/hpux.mh: Remove file.
9712 * configure: Rebuilt.
9713 * configure.ac (dlgetmodinfo, somread.o): Remove.
9714 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
9715 (ia64-*-hpux*): Remove its float format exception.
9716 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
9717 * hppa-hpux-nat.c: Remove file.
9718 * hppa-hpux-tdep.c: Remove file.
9719 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
9720 Move them here from hppa-tdep.h
9721 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
9722 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
9723 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
9724 Move them to hppa-tdep.c.
9725 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
9726 declarations.
9727 * ia64-hpux-nat.c: Remove file.
9728 * ia64-hpux-tdep.c: Remove file.
9729 * ia64-hpux-tdep.h: Remove file.
9730 * inf-ttrace.c: Remove file.
9731 * inf-ttrace.h: Remove file.
9732 * solib-ia64-hpux.c: Remove file.
9733 * solib-ia64-hpux.h: Remove file.
9734 * solib-pa64.c: Remove file.
9735 * solib-pa64.h: Remove file.
9736 * solib-som.c: Remove file.
9737 * solib-som.h: Remove file.
9738 * somread.c: Remove file.
9739
9740 2015-03-13 John Baldwin <jhb@FreeBSD.org>
9741
9742 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
9743 * config.in: Regenerate.
9744 * configure: Regenerate.
9745 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
9746 define.
9747 (fbsd_find_memory_regions): Use kinfo_getvmmap to
9748 enumerate memory regions if present.
9749
9750 2015-03-13 John Baldwin <jhb@FreeBSD.org>
9751
9752 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
9753 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
9754 expressions.
9755 (i386fbsd_sigtramp_p): Likewise.
9756
9757 2015-03-12 John Baldwin <jhb@FreeBSD.org>
9758
9759 * MAINTAINERS (Write After Approval): Add John Baldwin.
9760
9761 2015-03-12 Gary Benson <gbenson@redhat.com>
9762
9763 * solib.c (_initialize_solib): Make "set/show sysroot" use
9764 add_setshow_optional_filename_cmd so it can be restored to
9765 empty after being set.
9766
9767 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
9768
9769 * Makefile.in (SFILES): New source break-catch-syscall.c.
9770 (COMMON_OBS): New object break-catch-syscall.o.
9771 * break-catch-syscall.c: New file.
9772 * breakpoint.c: Remove inclusion of "xml-syscall.h".
9773 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
9774 (struct syscall_catchpoint): Likewise.
9775 (dtor_catch_syscall): Likewise.
9776 (catch_syscall_inferior_data): Likewise.
9777 (struct catch_syscall_inferior_data): Likewise.
9778 (get_catch_syscall_inferior_data): Likewise.
9779 (catch_syscall_inferior_data_cleanup): Likewise.
9780 (insert_catch_syscall): Likewise.
9781 (remove_catch_syscall): Likewise.
9782 (breakpoint_hit_catch_syscall): Likewise.
9783 (print_it_catch_syscall): Likewise.
9784 (print_one_catch_syscall): Likewise.
9785 (print_mention_catch_syscall): Likewise.
9786 (print_recreate_catch_syscall): Likewise.
9787 (catch_syscall_breakpoint_ops): Likewise.
9788 (syscall_catchpoint_p): Likewise.
9789 (create_syscall_event_catchpoint): Likewise.
9790 (catch_syscall_split_args): Likewise.
9791 (catch_syscall_command_1): Likewise.
9792 (is_syscall_catchpoint_enabled): Likewise.
9793 (catch_syscall_enabled): Likewise.
9794 (catching_syscall_number): Likewise.
9795 (catch_syscall_completer): Likewise.
9796 (clear_syscall_counts): Likewise.
9797 (initialize_breakpoint_ops): Move initialization of syscall
9798 catchpoints to break-catch-syscall.c.
9799 (_initialize_breakpoint): Move code related to syscall catchpoints
9800 to break-catch-syscall.c.
9801
9802 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
9803
9804 * breakpoint.c (breakpoint_find_if): New function.
9805 * breakpoint.h (breakpoint_find_if): New prototype.
9806
9807 2015-03-11 Gary Benson <gbenson@redhat.com>
9808
9809 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
9810 * remote-fileio.c (remote_fileio_to_host_uint): New function.
9811 (remote_fileio_to_host_ulong): Likewise.
9812 (remote_fileio_to_host_mode): Likewise.
9813 (remote_fileio_to_host_time): Likewise.
9814 (remote_fileio_to_host_stat): Likewise.
9815 * remote.c (PACKET_vFile_fstat): New enum value.
9816 (remote_protocol_features): Register the "vFile:fstat" feature.
9817 (remote_hostio_fstat): New function.
9818 (remote_bfd_iovec_stat): Use the above.
9819 (_initialize_remote): Register new "set/show remote
9820 hostio-fstat-packet" command.
9821 * symfile.c (separate_debug_file_exists): Update comment.
9822 * NEWS: Announce new vFile:fstat packet.
9823
9824 2015-03-11 Gary Benson <gbenson@redhat.com>
9825
9826 * common/common-remote-fileio.h: New file.
9827 * common/common-remote-fileio.c: Likewise.
9828 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
9829 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
9830 (COMMON_OBS): Add common-remote-fileio.o.
9831 (common-remote-fileio.o): New rule.
9832 * remote-fileio.h (common-remote-fileio.h): New include.
9833 * remote-fileio.c (gdb/fileio.h): Do not include.
9834 (remote_fileio_to_be): Moved to common-remote-fileio.h.
9835 (remote_fileio_to_fio_uint): Likewise.
9836 (remote_fileio_to_fio_time): Likewise.
9837 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
9838 (remote_fileio_to_fio_mode): Likewise.
9839 (remote_fileio_to_fio_ulong): Likewise.
9840 (remote_fileio_to_fio_stat): Likewise.
9841
9842 2015-03-11 Andy Wingo <wingo@igalia.com>
9843
9844 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
9845 we were checking the cached type, not the cached dynamic type.
9846
9847 2015-03-11 Andy Wingo <wingo@igalia.com>
9848
9849 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
9850 other strings, as these are on the GC'd heap, and will be
9851 collected along with the smob.
9852
9853 2015-03-11 Andy Wingo <wingo@igalia.com>
9854
9855 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
9856 (objfile_functions): Bind gdbscm_objfile_progspace to
9857 objfile-progspace.
9858 * guile/lib/gdb.scm: Add objfile-progspace to exports.
9859
9860 2015-03-11 Andy Wingo <wingo@igalia.com>
9861
9862 * guile/guile.c (_initialize_guile): Disable automatic
9863 finalization, if Guile offers us that possibility.
9864 * guile/guile.c (call_initialize_gdb_module):
9865 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
9866 finalizers in appropriate places.
9867 * configure.ac (AC_TRY_LIBGUILE): Add a check for
9868 scm_set_automatic_finalization_enabled.
9869 * configure: Regenerated.
9870
9871 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
9872
9873 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
9874 SAL, if possible.
9875
9876 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
9877
9878 * s390-linux-nat.c (struct arch_lwp_info): New.
9879 (s390_fix_watch_points): Rename to...
9880 (s390_prepare_to_resume): ...this. Skip the PER info update
9881 unless the watch points have changed.
9882 (s390_refresh_per_info, s390_new_thread): New functions.
9883 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
9884 s390_fix_watch_points.
9885 (s390_remove_watchpoint): Likewise.
9886 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
9887 Register s390_prepare_to_resume.
9888
9889 2015-03-09 Pedro Alves <palves@redhat.com>
9890
9891 Revert:
9892 2015-03-07 Pedro Alves <palves@redhat.com>
9893 * common/gdb_socket.h: New file.
9894 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
9895 sys/socket.h.
9896 (net_open): Use union gdb_sockaddr_u.
9897
9898 2015-03-07 Pedro Alves <palves@redhat.com>
9899
9900 * configure.ac (build_warnings): Move -Wmissing-prototypes
9901 -Wdeclaration-after-statement -Wmissing-parameter-type
9902 -Wold-style-declaration -Wold-style-definition to the C-specific
9903 set.
9904 * configure: Regenerate.
9905
9906 2015-03-07 Pedro Alves <palves@redhat.com>
9907
9908 * common/gdb_socket.h: New file.
9909 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
9910 sys/socket.h.
9911 (net_open): Use union gdb_sockaddr_u.
9912
9913 2015-03-07 Pedro Alves <palves@redhat.com>
9914
9915 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
9916 (exceptions_state_mc_action_iter)
9917 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
9918 Don't define.
9919 [__cplusplus] (try_scope_depth): New global.
9920 [__cplusplus] (exception_try_scope_entry)
9921 (exception_try_scope_exit, gdb_exception_sliced_copy)
9922 (exception_rethrow): New functions.
9923 (throw_exception): In C++ mode, throw
9924 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
9925 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
9926 (throw_it): In C++ mode, use try_scope_depth.
9927 * common/common-exceptions.h [!__cplusplus]
9928 (exceptions_state_mc_action_iter)
9929 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
9930 Don't declare.
9931 [__cplusplus] (exception_try_scope_entry)
9932 (exception_try_scope_exit, exception_rethrow): Declare.
9933 [__cplusplus] (struct exception_try_scope): New struct.
9934 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
9935 C++ exceptions.
9936 (struct gdb_exception_RETURN_MASK_ALL)
9937 (struct gdb_exception_RETURN_MASK_ERROR)
9938 (struct gdb_exception_RETURN_MASK_QUIT): New types.
9939
9940 2015-03-07 Pedro Alves <palves@redhat.com>
9941
9942 * main.c (handle_command_errors): Remove volatile qualifier from
9943 parameter.
9944
9945 2015-03-07 Pedro Alves <palves@redhat.com>
9946
9947 * breakpoint.c (save_breakpoints): Adjust to avoid code between
9948 TRY and CATCH.
9949 * gdbtypes.c (safe_parse_type): Remove empty line.
9950 (types_deeply_equal):
9951 * guile/scm-frame.c (gdbscm_frame_name):
9952 * linux-thread-db.c (find_new_threads_once):
9953 * python/py-breakpoint.c (bppy_get_commands):
9954 * record-btrace.c (record_btrace_insert_breakpoint)
9955 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
9956 (record_btrace_start_replaying): Adjust to avoid code between TRY
9957 and CATCH.
9958
9959 2015-03-07 Pedro Alves <palves@redhat.com>
9960
9961 * common/common-exceptions.c (struct catcher) <exception>: No
9962 longer a pointer to volatile exception. Now an exception value.
9963 <mask>: Delete field.
9964 (exceptions_state_mc_init): Remove all parameters. Adjust.
9965 (exceptions_state_mc): No longer pop the catcher here.
9966 (exceptions_state_mc_catch): New function.
9967 (throw_exception): Adjust.
9968 * common/common-exceptions.h (exceptions_state_mc_init): Remove
9969 all parameters.
9970 (exceptions_state_mc_catch): Declare.
9971 (TRY_CATCH): Rename to ...
9972 (TRY): ... this. Remove EXCEPTION and MASK parameters.
9973 (CATCH, END_CATCH): New.
9974 All callers adjusted.
9975
9976 2015-03-07 Tom Tromey <tromey@redhat.com>
9977
9978 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
9979
9980 2015-03-07 Pedro Alves <palves@redhat.com>
9981
9982 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
9983 (amd64_epilogue_frame_cache): Normal exception handling code.
9984 * break-catch-throw.c (check_status_exception_catchpoint)
9985 (re_set_exception_catchpoint): Ditto.
9986 * cli/cli-interp.c (safe_execute_command):
9987 * cli/cli-script.c (script_from_file): Ditto.
9988 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
9989 Ditto.
9990 * compile/compile-object-run.c (compile_object_run): Ditto.
9991 * cp-abi.c (baseclass_offset): Ditto.
9992 * cp-valprint.c (cp_print_value): Ditto.
9993 * exceptions.c (catch_exceptions_with_msg):
9994 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
9995 * frame.c (get_frame_address_in_block_if_available): Ditto.
9996 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
9997 (i386_sigtramp_frame_cache): Ditto.
9998 * infcmd.c (post_create_inferior): Ditto.
9999 * linespec.c (parse_linespec, find_linespec_symbols):
10000 * p-valprint.c (pascal_object_print_value): Ditto.
10001 * parse.c (parse_expression_for_completion): Ditto.
10002 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
10003 * remote.c (remote_get_noisy_reply): Ditto.
10004 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
10005 * solib-svr4.c (solib_svr4_r_map): Ditto.
10006
10007 2015-03-06 Gary Benson <gbenson@redhat.com>
10008
10009 * common/common-utils.h (startswith): New inline function.
10010 All places where this logic was used updated to use the above.
10011
10012 2015-03-05 Pedro Alves <palves@redhat.com>
10013
10014 PR gdb/18002
10015 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
10016 after reading the breakpoint's shadow memory.
10017
10018 2015-03-05 Mark Kettenis <kettenis@gnu.org>
10019
10020 * hppabsd-nat.c: Remove file.
10021 * hppaobsd-nat.c: New file.
10022 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
10023 hppaobsd-nat.c.
10024 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
10025 hppaobsd-nat.o.
10026
10027 2015-03-04 Pedro Alves <palves@redhat.com>
10028
10029 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
10030 (target_decr_pc_after_break): Delete declaration.
10031 * target.c (default_target_decr_pc_after_break)
10032 (target_decr_pc_after_break): Delete.
10033 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
10034 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
10035 * linux-thread-db.c (check_event): Likewise.
10036 * infrun.c (adjust_pc_after_break): Likewise.
10037 * darwin-nat.c (cancel_breakpoint): Likewise.
10038 * aix-thread.c (aix_thread_wait): Likewise.
10039 * target-delegates.c: Regenerate.
10040
10041 2015-03-04 Pedro Alves <palves@redhat.com>
10042
10043 * linux-nat.c (save_sigtrap): Check for breakpoints before
10044 checking watchpoints.
10045 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
10046 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
10047 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
10048 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
10049 (linux_nat_stopped_by_sw_breakpoint)
10050 (linux_nat_supports_stopped_by_sw_breakpoint)
10051 (linux_nat_stopped_by_hw_breakpoint)
10052 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
10053 (linux_nat_wait_1): Don't re-increment the PC if relying on
10054 SIGTRAP's siginfo->si_code.
10055 (linux_nat_add_target): Install new target methods.
10056 * linux-thread-db.c (check_event): Don't account for breakpoint PC
10057 offset if the target already adjusted the PC.
10058 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
10059 (GDB_ARCH_TRAP_BRKPT): New.
10060 (TRAP_HWBKPT): Define if not already defined.
10061
10062 2015-03-04 Pedro Alves <palves@redhat.com>
10063
10064 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
10065 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
10066 Delete field.
10067 <stop_reason>: New field.
10068 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
10069 (packet_set_cmd_state): New function.
10070 (remote_protocol_features): Register the "swbreak" and "hwbreak"
10071 features.
10072 (remote_query_supported): If not disabled with the corresponding
10073 "set remote foo-packet" command, report support for the swbreak
10074 and hwbreak features.
10075 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
10076 field.
10077 <stop_reason>: New field.
10078 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
10079 (remote_wait_as): Adjust.
10080 (remote_stopped_by_sw_breakpoint)
10081 (remote_supports_stopped_by_sw_breakpoint)
10082 (remote_stopped_by_hw_breakpoint)
10083 (remote_supports_stopped_by_hw_breakpoint): New functions.
10084 (remote_stopped_by_watchpoint): New function.
10085 (init_remote_ops): Install them.
10086 (_initialize_remote): Register new "set/show remote
10087 swbreak-feature-packet" and "set/show remote
10088 swbreak-feature-packet" commands.
10089
10090 2015-03-04 Pedro Alves <palves@redhat.com>
10091
10092 * btrace.h: Include target/waitstatus.h.
10093 (struct btrace_thread_info) <stop_reason>: New field.
10094 * record-btrace.c (record_btrace_step_thread): Use
10095 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10096 (record_btrace_decr_pc_after_break): Delete.
10097 (record_btrace_stopped_by_sw_breakpoint)
10098 (record_btrace_supports_stopped_by_sw_breakpoint)
10099 (record_btrace_stopped_by_hw_breakpoint)
10100 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
10101 (init_record_btrace_ops): Install them.
10102 * record-full.c (record_full_hw_watchpoint): Delete and replace
10103 with ...
10104 (record_full_stop_reason): ... this throughout.
10105 (record_full_exec_insn): Adjust.
10106 (record_full_wait_1): Adjust. No longer re-increment the PC.
10107 (record_full_wait_1): Adjust. Use
10108 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10109 (record_full_stopped_by_watchpoint): Adjust.
10110 (record_full_stopped_by_sw_breakpoint)
10111 (record_full_supports_stopped_by_sw_breakpoint)
10112 (record_full_supports_stopped_by_sw_breakpoint)
10113 (record_full_stopped_by_hw_breakpoint)
10114 (record_full_supports_stopped_by_hw_breakpoint): New functions.
10115 (init_record_full_ops, init_record_full_core_ops): Install them.
10116 * record.c (record_check_stopped_by_breakpoint): New function.
10117 * record.h: Include target/waitstatus.h.
10118 (record_check_stopped_by_breakpoint): New declaration.
10119
10120 2015-03-04 Pedro Alves <palves@redhat.com>
10121
10122 enum lwp_stop_reason -> enum target_stop_reason
10123 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
10124 (linux_nat_stopped_by_watchpoint, status_callback)
10125 (linux_nat_wait_1): Adjust.
10126 * linux-nat.h (enum lwp_stop_reason): Delete.
10127 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
10128 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
10129 * target/waitstatus.h (enum target_stop_reason): New.
10130
10131 2015-03-04 Pedro Alves <palves@redhat.com>
10132
10133 * breakpoint.c (need_moribund_for_location_type): New function.
10134 (bpstat_stop_status): Don't skipping checking moribund locations
10135 of breakpoint types which the target tell caused a stop.
10136 (program_breakpoint_here_p): New function, factored out from ...
10137 (bp_loc_is_permanent): ... this.
10138 (update_global_location_list): Don't create a moribund location if
10139 the target supports reporting stops of the type of the removed
10140 breakpoint.
10141 * breakpoint.h (program_breakpoint_here_p): New declaration.
10142 * infrun.c (adjust_pc_after_break): Return early if the target has
10143 already adjusted the PC. Add comments.
10144 (handle_signal_stop): If nothing explains a signal, and the target
10145 tells us the stop was caused by a software breakpoint, check if
10146 there's a breakpoint instruction in the memory. If so, adjust the
10147 PC before presenting the stop to the user. Otherwise, ignore the
10148 trap. If nothing explains a signal, and the target tells us the
10149 stop was caused by a hardware breakpoint, ignore the trap.
10150 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
10151 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
10152 to_supports_stopped_by_hw_breakpoint>: New fields.
10153 (target_stopped_by_sw_breakpoint)
10154 (target_supports_stopped_by_sw_breakpoint)
10155 (target_stopped_by_hw_breakpoint)
10156 (target_supports_stopped_by_hw_breakpoint): Define.
10157 * target-delegates.c: Regenerate.
10158
10159 2015-03-04 Pedro Alves <palves@redhat.com>
10160
10161 * infrun.c (follow_fork_inferior): Use the whole of the
10162 inferior_ptid and pending_follow.related_pid ptids instead of
10163 building ptids from the process components. Adjust verbose output
10164 to use target_pid_to_str.
10165 * linux-nat.c (linux_child_follow_fork): Use the whole of the
10166 inferior_ptid and pending_follow.related_pid ptids instead of
10167 building ptids from the process components.
10168
10169 2015-03-04 Mark Kettenis <kettenis@gnu.org>
10170
10171 * inf-ptrace.c [PT_GET_PROCESS_STATE]
10172 (inf_ptrace_insert_fork_catchpoint): New function.
10173 (inf_ptrace_remove_fork_catchpoint): New function.
10174 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
10175
10176 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
10177
10178 * s390-linux-tdep.c (s390_register_name): Return empty string
10179 instead of NULL for registers that shouldn't be visible.
10180
10181 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
10182
10183 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
10184 XML file for 64-bit targets.
10185
10186 2015-03-03 Simon Marchi <simon.marchi@ericsson.com>
10187
10188 * target.h (find_default_create_inferior): Remove declaration.
10189 (find_default_attach): Likewise.
10190
10191 2015-03-03 Pedro Alves <palves@redhat.com>
10192
10193 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
10194 Use ptid_get_pid to get the overall process id when resuming all
10195 threads.
10196
10197 2015-03-03 Pedro Alves <palves@redhat.com>
10198
10199 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
10200 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
10201 * inf-ptrace.c (get_ptrace_pid): New function.
10202 (inf_ptrace_resume): Use it.
10203 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
10204 to the lower layer.
10205
10206 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10207
10208 * nat/linux-btrace.c: Include sys/utsname.h.
10209 (linux_determine_kernel_ptr_bits): New.
10210 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
10211 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
10212 ptr_bits.
10213
10214 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10215
10216 * btrace.c (ftrace_update_function): Treat return as tailcall for
10217 "_dl_runtime_resolve".
10218
10219 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10220
10221 * btrace.h (btrace_function) <lbegin, lend>: Remove.
10222 * btrace.c (ftrace_debug): Do not print the line range.
10223 (ftrace_skip_file, ftrace_update_lines): Remove.
10224 (ftrace_new_function): Remove lbegin and lend initialization.
10225 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
10226 * record-btrace.c (btrace_compute_src_line_range): New.
10227 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
10228
10229 2015-03-02 Pedro Alves <palves@redhat.com>
10230
10231 * infrun.c (follow_exec): Delete all threads of the process except
10232 the event thread. Extended comments.
10233
10234 2015-03-02 Joel Brobecker <brobecker@adacore.com>
10235
10236 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
10237
10238 2015-03-02 Joel Brobecker <brobecker@adacore.com>
10239
10240 * utils.h: Remove <stdbool.h> #include.
10241 (producer_is_gcc): Change return type to "int".
10242 * utils.c (producer_is_gcc): Change return type to int.
10243 Return 1 instead of true, and 0 instead of false.
10244 Adjust function documentation accordingly.
10245
10246 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
10247
10248 * s390-linux-nat.c (have_regset_vxrs): New static variable.
10249 (s390_linux_fetch_inferior_registers): Handle vector registers, if
10250 present.
10251 (s390_linux_store_inferior_registers): Likewise.
10252 (s390_get_hwcap): Remove function. Embed its logic...
10253 (s390_read_description): ...here. Yield a target description with
10254 vector registers if applicable.
10255 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
10256 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
10257 "features/s390x-tevx-linux64.c".
10258 (struct gdbarch_tdep) <v0_full_regnum>: New field.
10259 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
10260 for "GNU/Linux-specific registers".
10261 (s390_dwarf_reg_r0l): New enum value.
10262 (s390_dwarf_reg_to_regnum): Support vector registers.
10263 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
10264 of GPR lower halves.
10265 (regnum_is_vxr_full): New function.
10266 (s390_register_name): New function.
10267 (s390_pseudo_register_name): Handle v0-v15, which are composed of
10268 f0-f15 and v0l-v15l.
10269 (s390_pseudo_register_type): Likewise.
10270 (s390_pseudo_register_read): Likewise.
10271 (s390_pseudo_register_write): Likewise.
10272 (s390_value_from_register): Account for the fact that values are
10273 placed left-justified in vector registers.
10274 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
10275 the vector reggroup and omit them from the general reggroup.
10276 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
10277 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
10278 (s390_iterate_over_regset_sections): Add iterations for the two
10279 new vector regsets.
10280 (s390_core_read_description): Yield a target description with
10281 vector registers if applicable.
10282 (s390_gdbarch_init): Handle target descriptions with vector
10283 registers. Add "register_name" gdbarch method.
10284 (_initialize_s390_tdep): Call new tdesc initialization functions.
10285 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
10286 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
10287 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
10288 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
10289 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
10290 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
10291 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
10292 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
10293 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
10294 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
10295 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
10296 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
10297 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
10298 (S390_NUM_REGS): Adjust value.
10299 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
10300 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
10301 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
10302 * NEWS: Announce S/390 vector register support.
10303
10304 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
10305
10306 * features/s390-tevx-linux64.xml: New file.
10307 * features/s390-vx-linux64.xml: New file.
10308 * features/s390-vx.xml: New file.
10309 * features/s390x-tevx-linux64.xml: New file.
10310 * features/s390x-vx-linux64.xml: New file.
10311 * features/Makefile (WHICH): Add s390-vx-linux64,
10312 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
10313 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
10314 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
10315 macros.
10316 * features/s390-tevx-linux64.c: New generated file.
10317 * features/s390-vx-linux64.c: Likewise.
10318 * features/s390x-tevx-linux64.c: Likewise.
10319 * features/s390x-vx-linux64.c: Likewise.
10320 * regformats/s390-tevx-linux64.dat: Likewise.
10321 * regformats/s390-vx-linux64.dat: Likewise.
10322 * regformats/s390x-tevx-linux64.dat: Likewise.
10323 * regformats/s390x-vx-linux64.dat: Likewise.
10324
10325 2015-02-28 Doug Evans <xdje42@gmail.com>
10326
10327 * symtab.h (struct symtab) <next>: Fix comment.
10328
10329 2015-02-27 Simon Marchi <simon.marchi@ericsson.com>
10330
10331 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
10332 python_GdbMethods.
10333
10334 2015-02-27 Pedro Alves <palves@redhat.com>
10335
10336 * dtrace-probe.c (dtrace_probe_ops): Make extern.
10337
10338 2015-02-27 Pedro Alves <palves@redhat.com>
10339
10340 * common/common-exceptions.h (exception_none): Declare.
10341 * common/common-exceptions.c (exception_none): Moved from
10342 exceptions.c.
10343 (exceptions_state_mc_init): Use exception_none.
10344 * exceptions.c (exception_none): Move to
10345 common/common-exceptions.c.
10346 * exceptions.h (exception_none): Move to
10347 common/common-exceptions.h.
10348
10349 2015-02-27 Pedro Alves <palves@redhat.com>
10350
10351 * main.c (catch_command_errors, catch_command_errors_const):
10352 Remove 'mask' argument. Adjust.
10353 (captured_main): Adjust callers.
10354
10355 2015-02-27 Pedro Alves <palves@redhat.com>
10356
10357 * python/python-internal.h: Include "extension-priv.h".
10358
10359 2015-02-27 Pedro Alves <palves@redhat.com>
10360
10361 * breakpoint.h (enum print_stop_action): Move further up in the
10362 file.
10363
10364 2015-02-27 Pedro Alves <palves@redhat.com>
10365
10366 * gdbarch.sh: Include regcache.h.
10367 * gdbarch.h: Regenerate.
10368
10369 2015-02-27 Pedro Alves <palves@redhat.com>
10370
10371 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
10372 Remove duplicate const.
10373 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
10374 duplicate const.
10375
10376 2015-02-27 Pedro Alves <palves@redhat.com>
10377
10378 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
10379 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
10380 * features/feature_to_c.sh: Tag the generated xml_builtin array
10381 with extern const in C++ mode.
10382
10383 2015-02-27 Tom Tromey <tromey@redhat.com>
10384
10385 * minidebug.c (struct lzma_stream): Rename to ...
10386 (struct gdb_lzma_stream): ... this.
10387 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
10388
10389 2015-02-27 Pedro Alves <palves@redhat.com>
10390
10391 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
10392 function.
10393 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
10394 (mi_cmd_stack_list_variables): Use it.
10395
10396 2015-02-27 Pedro Alves <palves@redhat.com>
10397
10398 * x86-linux-nat.c (u_debugreg_offset): New function.
10399 (x86_linux_dr_get, x86_linux_dr_set): Use it.
10400
10401 2015-02-27 Pedro Alves <palves@redhat.com>
10402
10403 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
10404 declaration.
10405 Include break-common.h.
10406
10407 2015-02-27 Tom Tromey <tromey@redhat.com>
10408 Pedro Alves <palves@redhat.com>
10409
10410 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
10411 local used to iterate over enums.
10412 * completer.c (signal_completer): Likewise.
10413 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
10414 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
10415 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
10416 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
10417 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
10418 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
10419 * tui-wingeneral.c (tui_refresh_all): Likewise.
10420
10421 2015-02-27 Pedro Alves <palves@redhat.com>
10422
10423 * target.h: Include "infrun.h".
10424
10425 2015-02-27 Pedro Alves <palves@redhat.com>
10426
10427 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
10428
10429 2015-02-27 Pedro Alves <palves@redhat.com>
10430
10431 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
10432 (IPA_SYM): Use it.
10433 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
10434
10435 2015-02-27 Pedro Alves <palves@redhat.com>
10436
10437 * cli-out.c (_rl_erase_entire_line): Move declaration out of
10438 cli_mld_erase_entire_line, and make it extern "C".
10439 * common/common-defs.h (EXTERN_C): New.
10440 * completer.c (_rl_completion_prefix_display_length)
10441 (_rl_print_completions_horizontally, QSFUNC): Move declarations
10442 out of gdb_display_match_list_1.
10443 (_rl_qsort_string_compare): Move declaration out of
10444 gdb_display_match_list_1, and make it extern "C".
10445 * defs.h (re_comp): Use EXTERN_C.
10446 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
10447 and make it extern "C".
10448 (monstartup): Move declaration out of maintenance_set_profile_cmd,
10449 and make it extern "C".
10450 (main): Move declaration out of maintenance_set_profile_cmd.
10451 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
10452 EXTERN_C.
10453
10454 2015-02-27 Pedro Alves <palves@redhat.com>
10455
10456 * python/python.c (GdbMethods): Rename to ...
10457 (python_GdbMethods): ... this and make extern.
10458 (GdbModuleDef): Rename to ...
10459 (python_GdbModuleDef): ... this and make extern.
10460
10461 2015-02-27 Pedro Alves <palves@redhat.com>
10462
10463 * record-btrace.c (set_record_btrace_cmdlist)
10464 (show_record_btrace_cmdlist): Remove redefinitions.
10465
10466 2015-02-27 Tom Tromey <tromey@redhat.com>
10467 Pedro Alves <palves@redhat.com>
10468
10469 * dwarf2-frame.c (enum cfa_how_kind, struct
10470 dwarf2_frame_state_reg_info): Move out of struct
10471 dwarf2_frame_state.
10472 * dwarf2read.c (struct tu_stats): Move out of struct
10473 dwarf2_per_objfile.
10474 (struct file_entry): Move out of struct line_header.
10475 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
10476 typedef_field_list): Move out of struct field_info.
10477 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
10478 Move out of struct dynamic_prop.
10479 (union type_owner, union field_location, struct field, struct
10480 range_bounds, union type_specific): Move out of struct main_type.
10481 (struct fn_fieldlist, struct fn_field, struct typedef_field)
10482 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
10483 (struct call_site_target, union call_site_parameter_u, struct
10484 call_site_parameter): Move out of struct call_site.
10485 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
10486 m32c_prologue.
10487 (enum srcdest_kind): Move out of struct srcdest.
10488 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
10489 * prologue-value.h (enum prologue_value_kind): Move out of struct
10490 prologue_value.
10491 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
10492 gdbarch_tdep.
10493 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
10494 out of struct field_info.
10495 * symfile.h (struct other_sections): Move out of struct
10496 section_addr_info.
10497 * symtab.c (struct symbol_cache_slot): Move out struct
10498 block_symbol_cache.
10499 * target-descriptions.c (enum tdesc_type_kind): Move out of
10500 typedef struct tdesc_type.
10501 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
10502 struct tui_line_or_address.
10503 * value.c (enum internalvar_kind, union internalvar_data): Move
10504 out of struct internalvar.
10505 * xtensa-tdep.h (struct ctype_cache): Move out of struct
10506 gdbarch_tdep.
10507
10508 2015-02-27 Tom Tromey <tromey@redhat.com>
10509 Pedro Alves <palves@redhat.com>
10510
10511 Rename symbols whose names are reserved C++ keywords throughout.
10512
10513 2015-02-27 Pedro Alves <palves@redhat.com>
10514
10515 * Makefile.in (COMPILER): New, get it from autoconf.
10516 (COMPILE.pre, CC_LD): Use COMPILER.
10517 (CXX): Get from autoconf instead.
10518 (CXX_FOR_TARGET): Default to g++ instead of gcc.
10519 * acinclude.m4: Include build-with-cxx.m4.
10520 * build-with-cxx.m4: New file.
10521 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
10522 Disable -Werror by default if building in C++ mode.
10523 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
10524 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
10525 Run supported-warning-flags tests with the C++ compiler.
10526 Save/restore CXXFLAGS too.
10527 * configure: Regenerate.
10528
10529 2015-02-27 Pedro Alves <palves@redhat.com>
10530
10531 * libiberty.m4: New file.
10532 * acinclude.m4: Include libiberty.m4.
10533 * configure.ac: Call libiberty_INIT.
10534 * config.in, configure: Regenerate.
10535
10536 2015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
10537
10538 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
10539 31-bit targets, but 64-bit targets as well.
10540 (s390_gnu_triplet_regexp): New function.
10541 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
10542 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
10543 method.
10544
10545 2015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
10546
10547 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
10548 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
10549 from CONTEXT_DEBUGGER.
10550
10551 2015-02-26 Doug Evans <dje@google.com>
10552
10553 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
10554 CHECK_TYPEDEF.
10555 (set_type_vptr_fieldno): Ditto.
10556 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
10557 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
10558
10559 2015-02-26 Pedro Alves <palves@redhat.com>
10560
10561 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
10562 * complaints.c (vcomplaint): Pass argument FMT directly to
10563 printf-like functions instead of complaint->fmt.
10564 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
10565 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
10566 * compile/compile-loc2c.c (pushf, unary, binary): Add
10567 ATTRIBUTE_PRINTF.
10568 (do_compile_dwarf_expr_to_c): Pass string literal as format string
10569 to pushf.
10570 (BINARY): Pass string literal as format string to 'binary'.
10571 * compile/compile-object-load.c (link_callbacks_einfo): Add
10572 ATTRIBUTE_PRINTF.
10573 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
10574
10575 2015-02-26 Pedro Alves <palves@redhat.com>
10576
10577 * windows-termcap.c: Rename to ...
10578 * stub-termcap.c: ... this. Adjust header line.
10579 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
10580 windows-termcap.c.
10581 * configure: Regenerate.
10582 * configure.ac: Refer to stub-termcap.o instead of
10583 windows-termcap.o.
10584 * gdb_curses.h: Mention stub-termcap.c instead of
10585 windows-termcap.c.
10586
10587 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10588
10589 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
10590 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
10591
10592 2015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
10593
10594 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
10595
10596 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10597
10598 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
10599 bfd_canonicalize_symtab.
10600
10601 2015-02-25 John Baldwin <jhb@FreeBSD.org>
10602
10603 * amd64fbsd-nat.c: Include sys/user.h.
10604 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10605 instead of KERN_PS_STRINGS to locate the signal trampoline.
10606 * i386fbsd-nat.c: Include sys/user.h.
10607 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10608 instead of KERN_PS_STRINGS to locate the signal trampoline.
10609 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
10610 (amd64fbsd_sigtramp_p): New.
10611 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
10612 longer set default values.
10613 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
10614 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
10615 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
10616 (i386fbsd_freebsd4_sigtramp_start)
10617 (i386fbsd_freebsd4_sigtramp_middle)
10618 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
10619 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
10620 (i386fbsd_sigtramp_p): New.
10621 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
10622 longer set default values.
10623 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
10624
10625 2015-02-25 John Baldwin <jhb@freebsd.org>
10626
10627 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
10628 get_frame_register instead of frame_unwind_register_unsigned.
10629
10630 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10631
10632 PR build/18033
10633 * compile/compile-c-support.c (c_compute_program): Change // comment.
10634 * compile/compile-object-load.c (setup_sections): Change // comment.
10635
10636 2015-02-26 Joel Brobecker <brobecker@adacore.com>
10637
10638 PR build/18033:
10639 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
10640
10641 2015-02-23 Pedro Alves <palves@redhat.com>
10642
10643 * remote.c (skip_to_semicolon): New function.
10644 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
10645 special case the stop reasons that look like hex numbers
10646 upfront. Instead handle real register numbers after matching
10647 all the known stop reasons.
10648
10649 2015-02-21 Doug Evans <dje@google.com>
10650
10651 PR c++/17976, symtab/17821
10652 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
10653 is_in_anonymous. All callers updated.
10654 (find_symbol_in_baseclass): Ditto.
10655 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
10656 for symbols in an anonymous namespace.
10657 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
10658 DW_AT_name directly.
10659 (dwarf2_name): Convert missing namespace name to
10660 CP_ANONYMOUS_NAMESPACE_STR.
10661
10662 2015-02-20 Pedro Alves <palves@redhat.com>
10663
10664 * linux-nat.c (linux_handle_extended_wait): Call
10665 thread_db_notice_clone whenever a new clone LWP is detected.
10666 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
10667 functions.
10668 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
10669 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
10670 (linux_unstop_all_lwps): Declare.
10671 * linux-thread-db.c (struct thread_get_info_inout): Delete.
10672 (thread_get_info_callback): Delete.
10673 (thread_from_lwp): Use td_thr_get_info and record_thread.
10674 (thread_db_attach_lwp): Delete.
10675 (thread_db_notice_clone): New function.
10676 (try_thread_db_load_1): If /proc is mounted and shows the
10677 process'es task list, walk over all LWPs and call thread_from_lwp
10678 instead of relying on td_ta_thr_iter.
10679 (attach_thread): Don't call check_thread_signals here. Split the
10680 tail part of the function (which adds the thread to the core GDB
10681 thread list) to ...
10682 (record_thread): ... this function. Call check_thread_signals
10683 here.
10684 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
10685 call thread_from_lwp.
10686 (thread_db_update_thread_list): Rename to ...
10687 (thread_db_update_thread_list_org): ... this.
10688 (thread_db_update_thread_list): New function.
10689 (thread_db_find_thread_from_tid): Delete.
10690 (thread_db_get_ada_task_ptid): Simplify.
10691 * nat/linux-procfs.c: Include <sys/stat.h>.
10692 (linux_proc_task_list_dir_exists): New function.
10693 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
10694
10695 2015-02-20 Pedro Alves <palves@redhat.com>
10696
10697 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
10698 main LWP. Handle the case of waitpid returning 0 if we're already
10699 attached to the LWP. Don't set the LWP's last_resume_kind to
10700 resume_stop if we already knew about the LWP.
10701 (linux_nat_filter_event): Add debug logs.
10702
10703 2015-02-20 Pedro Alves <palves@redhat.com>
10704
10705 * target.h (forward_target_decr_pc_after_break): Delete
10706 declaration.
10707
10708 2015-02-20 Pedro Alves <palves@redhat.com>
10709
10710 PR threads/18006
10711 * linux-thread-db.c (thread_get_info_callback): Return early if
10712 the thread's lwp id is -1.
10713
10714 2015-02-20 Joel Brobecker <brobecker@adacore.com>
10715
10716 GDB 7.9 released.
10717
10718 2015-02-19 Steve Ellcey <sellcey@imgtec.com>
10719
10720 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
10721 (dtrace_get_probes) Change type of variable 'dof'.
10722
10723 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
10724
10725 PR breakpoints/16812
10726 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
10727 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
10728 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
10729
10730 2015-02-19 David Taylor <dtaylor@emc.com>
10731
10732 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
10733
10734 2015-02-18 Patrick Palka <patrick@parcs.ath.cx>
10735
10736 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
10737 function.
10738 (tui_putc): Don't call tui_handle_resize_during_io.
10739 (tui_getc): Likewise.
10740 (tui_mld_getc): Likewise.
10741 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
10742 (tui_sigwinch_token): New static variable.
10743 (tui_initialize_win): Adjust documentation. Set
10744 tui_sigwinch_token.
10745 (tui_async_resize_screen): New asynchronous callback.
10746 (tui_sigwinch_handler): Adjust documentation. Asynchronously
10747 invoke tui_async_resize_screen.
10748
10749 2015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
10750
10751 * configure: Regenerated.
10752 * configure.ac: Use GDB_AC_TRANSFORM.
10753 * Makefile.in (aclocal_m4_deps): Added transform.m4.
10754 * acinclude.m4: sinclude transform.m4.
10755 * transform.m4: New file.
10756 (GDB_AC_TRANSFORM): New macro.
10757
10758 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10759
10760 * NEWS: Announce the support for DTrace SDT probes.
10761
10762 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10763
10764 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
10765 (amd64_dtrace_parse_probe_argument): New function.
10766 (amd64_dtrace_probe_is_enabled): Likewise.
10767 (amd64_dtrace_enable_probe): Likewise.
10768 (amd64_dtrace_disable_probe): Likewise.
10769 (amd64_linux_init_abi): Register the
10770 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
10771 `gdbarch_dtrace_disable_probe' and
10772 `gdbarch_dtrace_probe_is_enabled' hooks.
10773 (amd64_dtrace_disabled_probe_sequence_1): New constant.
10774 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
10775 (amd64_dtrace_enable_probe_sequence): Likewise.
10776 (amd64_dtrace_disable_probe_sequence): Likewise.
10777
10778 2015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10779
10780 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
10781 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
10782 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
10783 handle ELF files.
10784 * Makefile.in (SFILES): dtrace-probe.c added.
10785 * configure: Regenerate.
10786 * dtrace-probe.c: New file.
10787 (SHT_SUNW_dof): New constant.
10788 (dtrace_probe_type): New enum.
10789 (dtrace_probe_arg): New struct.
10790 (dtrace_probe_arg_s): New typedef.
10791 (struct dtrace_probe_enabler): New struct.
10792 (dtrace_probe_enabler_s): New typedef.
10793 (dtrace_probe): New struct.
10794 (dtrace_probe_is_linespec): New function.
10795 (dtrace_dof_sect_type): New enum.
10796 (dtrace_dof_dofh_ident): Likewise.
10797 (dtrace_dof_encoding): Likewise.
10798 (DTRACE_DOF_ENCODE_LSB): Likewise.
10799 (DTRACE_DOF_ENCODE_MSB): Likewise.
10800 (dtrace_dof_hdr): New struct.
10801 (dtrace_dof_sect): Likewise.
10802 (dtrace_dof_provider): Likewise.
10803 (dtrace_dof_probe): Likewise.
10804 (DOF_UINT): New macro.
10805 (DTRACE_DOF_PTR): Likewise.
10806 (DTRACE_DOF_SECT): Likewise.
10807 (dtrace_process_dof_probe): New function.
10808 (dtrace_process_dof): Likewise.
10809 (dtrace_build_arg_exprs): Likewise.
10810 (dtrace_get_arg): Likewise.
10811 (dtrace_get_probes): Likewise.
10812 (dtrace_get_probe_argument_count): Likewise.
10813 (dtrace_can_evaluate_probe_arguments): Likewise.
10814 (dtrace_evaluate_probe_argument): Likewise.
10815 (dtrace_compile_to_ax): Likewise.
10816 (dtrace_probe_destroy): Likewise.
10817 (dtrace_gen_info_probes_table_header): Likewise.
10818 (dtrace_gen_info_probes_table_values): Likewise.
10819 (dtrace_probe_is_enabled): Likewise.
10820 (dtrace_probe_ops): New variable.
10821 (info_probes_dtrace_command): New function.
10822 (_initialize_dtrace_probe): Likewise.
10823 (dtrace_type_name): Likewise.
10824
10825 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10826
10827 * gdbarch.sh (dtrace_parse_probe_argument): New.
10828 (dtrace_probe_is_enabled): Likewise.
10829 (dtrace_enable_probe): Likewise.
10830 (dtrace_disable_probe): Likewise.
10831 * gdbarch.c: Regenerate.
10832 * gdbarch.h: Regenerate.
10833
10834 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10835
10836 * stap-probe.c (stap_probe_ops): Add NULLs in the static
10837 stap_probe_ops for `enable_probe' and `disable_probe'.
10838 * probe.c (enable_probes_command): New function.
10839 (disable_probes_command): Likewise.
10840 (_initialize_probe): Define the cli commands `enable probe' and
10841 `disable probe'.
10842 (parse_probe_linespec): New function.
10843 (info_probes_for_ops): Use parse_probe_linespec.
10844 * probe.h (probe_ops): New hooks `enable_probe' and
10845 `disable_probe'.
10846
10847 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10848
10849 * probe.c (compute_probe_arg): Moved from stap-probe.c
10850 (compile_probe_arg): Likewise.
10851 (probe_funcs): Likewise.
10852 * stap-probe.c (compute_probe_arg): Moved to probe.c.
10853 (compile_probe_arg): Likewise.
10854 (probe_funcs): Likewise.
10855
10856 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10857
10858 * probe.c (print_ui_out_not_applicables): New function.
10859 (exists_probe_with_pops): Likewise.
10860 (info_probes_for_ops): Do not include column headers for probe
10861 types for which no probe has been actually found on any object.
10862 Also invoke `print_ui_out_not_applicables' in order to match the
10863 column rows with the header when probes of several types are
10864 listed.
10865 Print the "Type" column.
10866 * probe.h (probe_ops): Added a new probe operation `type_name'.
10867 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
10868 (stap_type_name): New function.
10869
10870 2015-02-17 Patrick Palka <patrick@parcs.ath.cx>
10871
10872 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
10873 (key_is_command_char): Delete.
10874
10875 2015-02-17 Pedro Alves <palves@redhat.com>
10876
10877 * tui/tui.c (tui_enable): Resize windows before anything
10878 might show a window.
10879
10880 2015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
10881
10882 PR gdb/17984
10883 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
10884 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
10885 call.
10886 * aarch64-tdep.h (tdesc_aarch64): Declare.
10887
10888 2015-02-12 Mark Wielaard <mjw@redhat.com>
10889
10890 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
10891
10892 2015-02-13 Doug Evans <dje@google.com>
10893
10894 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
10895 anonymous_namespace to is_in_anonymous for consistency with the rest
10896 of the file.
10897 (cp_lookup_bare_symbol): Fix typo in comment.
10898 (cp_search_static_and_baseclasses): Ditto.
10899 (search_symbol_list): Use vertical space in comment better.
10900 (reset_directive_searched): Ditto. Fix typo.
10901 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
10902
10903 2015-02-13 Yao Qi <yao.qi@arm.com>
10904
10905 * MAINTAINERS: Update my email address.
10906
10907 2015-02-12 Doug Evans <dje@google.com>
10908
10909 * symtab.c (completion_list_add_name): Fix memory leak.
10910
10911 2015-02-12 Doug Evans <dje@google.com>
10912
10913 * completer.c (complete_line): Remove incorrect comment.
10914
10915 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10916
10917 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
10918 (py_print_frame): Use RETURN_MASK_ERROR.
10919
10920 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10921
10922 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
10923 function comment. Wrap all function that can throw in cleanups.
10924 (gdbpy_apply_frame_filter): Wrap all function that can throw in
10925 cleanups.
10926
10927 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10928
10929 * python/py-framefilter.c (py_print_frame): Substitute goto error.
10930 Remove the error label.
10931
10932 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10933
10934 * python/py-framefilter.c (py_print_frame): Put conditional code paths
10935 with goto first, indent the former else codepath left. Put variable
10936 'elided' to a new inner block.
10937
10938 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10939
10940 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
10941
10942 2015-02-11 Pedro Alves <palves@redhat.com>
10943
10944 * xcoffread.c (within_function): Delete.
10945
10946 2015-02-11 Tom Tromey <tromey@redhat.com>
10947 Pedro Alves <palves@redhat.com>
10948
10949 * breakpoint.c (base_breakpoint_ops): Delete.
10950 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
10951 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
10952 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
10953 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
10954 * python/py-arch.c (arch_object_type): Make extern.
10955 * python/py-block.c (block_syms_iterator_object_type): Make extern.
10956 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
10957 * python/py-cmd.c (cmdpy_object_type): Make extern.
10958 * python/py-continueevent.c (continue_event_object_type)
10959 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
10960 parameter. Update all callers.
10961 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
10962 * python/py-exitedevent.c (exited_event_object_type): Make extern.
10963 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
10964 * python/py-function.c (fnpy_object_type): Make extern.
10965 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
10966 * python/py-infevents.c (call_pre_event_object_type)
10967 (inferior_call_post_event_object_type).
10968 (memory_changed_event_object_type): Make extern.
10969 * python/py-infthread.c (thread_object_type): Make extern.
10970 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
10971 * python/py-linetable.c (linetable_entry_object_type)
10972 (linetable_object_type, ltpy_iterator_object_type): Make extern.
10973 * python/py-newobjfileevent.c (new_objfile_event_object_type)
10974 (clear_objfiles_event_object_type): Make extern.
10975 * python/py-objfile.c (objfile_object_type): Make extern.
10976 * python/py-param.c (parmpy_object_type): Make extern.
10977 * python/py-progspace.c (pspace_object_type): Make extern.
10978 * python/py-signalevent.c (signal_event_object_type): Make extern.
10979 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
10980 * python/py-type.c (type_object_type, field_object_type)
10981 (type_iterator_object_type): Make extern.
10982 * python/python.c (python_extension_script_ops)
10983 (python_extension_ops): Make extern.
10984 * stap-probe.c (stap_probe_ops): Make extern.
10985
10986 2015-02-11 Pedro Alves <pedro@codesourcery.com>
10987
10988 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
10989 because the event thread is not the current thread.
10990
10991 2015-02-11 Doug Evans <xdje42@gmail.com>
10992
10993 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
10994 been initialized yet, return NULL.
10995
10996 2015-02-11 Doug Evans <dje@google.com>
10997
10998 * symfile.h (new_symfile_objfile): Delete.
10999 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
11000 All callers updated.
11001
11002 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
11003
11004 * tui/tui-io.c (tui_handle_resize_during_io): Call
11005 tui_update_gdb_sizes() after resizing the screen.
11006 * tui/tui.c (tui_enable): Resize the terminal before
11007 calling tui_update_gdb_sizes().
11008
11009 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
11010
11011 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
11012 line before printing a newline.
11013
11014 2015-02-11 Mark Wielaard <mjw@redhat.com>
11015
11016 * utils.c (producer_is_gcc): Return true or false.
11017
11018 2015-02-10 Mark Wielaard <mjw@redhat.com>
11019
11020 * utils.h (producer_is_gcc): Change return type to bool. Add major
11021 argument.
11022 * utils.c (producer_is_gcc): Likewise.
11023 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
11024 * dwarf2read.c (check_producer): Likewise.
11025
11026 2015-02-10 Pedro Alves <palves@redhat.com>
11027
11028 * infrun.c (displaced_step_fixup): Switch to the event thread
11029 before calling gdbarch_displaced_step_fixup.
11030
11031 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11032
11033 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
11034
11035 2015-02-10 Simon Marchi <simon.marchi@ericsson.com>
11036
11037 * ada-varobj.c (ada_name_of_child): Constify parent.
11038 (ada_path_expr_of_child): Same.
11039 (ada_value_of_child): Same.
11040 (ada_type_of_child): Same.
11041 * c-varobj.c (c_is_path_expr_parent): Same.
11042 (c_describe_child): Same.
11043 (c_name_of_child): Same.
11044 (c_value_of_child): Same.
11045 (c_type_of_child): Same.
11046 (cplus_number_of_children): Same.
11047 (cplus_describe_child): Constify var.
11048 (cplus_name_of_child): Constify parent.
11049 (cplus_value_of_child): Same.
11050 (cplus_type_of_child): Same.
11051 * jv-varobj.c (java_name_of_child): Same.
11052 (java_value_of_child): Same.
11053 (java_type_of_child): Same.
11054 * varobj.c (value_of_child): Same.
11055 (varobj_default_is_path_expr_parent): Constify var, parent and return
11056 value.
11057 (varobj_get_path_expr): Constify var, modify path_expr through
11058 mutable_var.
11059 (install_new_value): Constify parent.
11060 (value_of_child): Constify parent.
11061 * varobj.h (struct varobj): Constify parent.
11062 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
11063 type_of_child.
11064 (varobj_get_path_expr): Constify var.
11065 (varobj_get_path_expr_parent): Constify var and return value.
11066
11067 2015-02-10 Luis Machado <lgustavo@codesourcery.com>
11068
11069 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
11070 (arm_prologue_this_id): Move PC and SP limit checks to
11071 arm_prologue_unwind_stop_reason.
11072 (arm_prologue_unwind) <stop_reason> : Set to
11073 arm_prologue_unwind_stop_reason.
11074
11075 2015-02-09 Mark Wielaard <mjw@redhat.com>
11076
11077 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
11078 DW_LANG_Fortran08 as language_fortran.
11079
11080 2015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
11081
11082 PR remote/17946
11083 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
11084 of pointer against char.
11085
11086 2015-02-09 Mark Wielaard <mjw@redhat.com>
11087
11088 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
11089 (c_type_print_modifier): Likewise.
11090 * dwarf2read.c (read_tag_atomic_type): New function.
11091 (read_type_die_1): Handle DW_TAG_atomic_type.
11092 * gdbtypes.c (make_atomic_type): New function.
11093 (recursive_dump_type): Handle TYPE_ATOMIC.
11094 * gdbtypes.h (enum type_flag_values): Renumber.
11095 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
11096 (TYPE_ATOMIC): New macro.
11097 (make_atomic_type): Declare.
11098
11099 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11100
11101 * btrace.c (ftrace_find_call): Skip gaps.
11102 (ftrace_new_function): Initialize level.
11103 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
11104 (ftrace_new_switch): Update
11105 level computation.
11106 (ftrace_new_gap): New.
11107 (ftrace_update_function): Create new function after gap.
11108 (btrace_compute_ftrace_bts): Create gap on error.
11109 (btrace_stitch_bts): Update parameters. Clear trace if it
11110 becomes empty.
11111 (btrace_stitch_trace): Update parameters. Update callers.
11112 (btrace_clear): Reset the number of gaps.
11113 (btrace_insn_get): Return NULL if the iterator points to a gap.
11114 (btrace_insn_number): Return zero if the iterator points to a gap.
11115 (btrace_insn_end): Allow gaps at the end.
11116 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
11117 (btrace_find_insn_by_number): Assert that the found iterator does
11118 not point to a gap.
11119 (btrace_call_next, btrace_call_prev): Assert that the last function
11120 is not a gap.
11121 * btrace.h (btrace_bts_error): New.
11122 (btrace_function): Update comment.
11123 (btrace_function) <insn, insn_offset, number>: Update comment.
11124 (btrace_function) <errcode>: New.
11125 (btrace_thread_info) <ngaps>: New.
11126 (btrace_thread_info) <replay>: Update comment.
11127 (btrace_insn_get): Update comment.
11128 * record-btrace.c (btrace_ui_out_decode_error): New.
11129 (record_btrace_info): Print number of gaps.
11130 (btrace_insn_history, btrace_call_history): Call
11131 btrace_ui_out_decode_error for gaps.
11132 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
11133
11134 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11135
11136 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
11137 * nat/linux-btrace.c: (btrace_this_cpu): New.
11138 (cpu_supports_bts): Call btrace_this_cpu.
11139 (intel_supports_bts): Add cpu parameter.
11140
11141 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11142
11143 * btrace.h (btrace_insn_class): New.
11144 (btrace_insn) <size, iclass>: New.
11145 * btrace.c (ftrace_find_call): Update parameters. Update users.
11146 Use instruction classification.
11147 (ftrace_new_return): Update parameters. Update users.
11148 (ftrace_update_function): Update parameters. Update users. Use
11149 instruction classification.
11150 (ftrace_update_insns): Update parameters. Update users.
11151 (ftrace_classify_insn): New.
11152 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
11153 TRY_CATCH around call to gdb_insn_length.
11154
11155 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11156
11157 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
11158 Update parameters. Update users.
11159
11160 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11161
11162 * btrace.c (parse_xml_btrace_conf_bts): Add size.
11163 (btrace_conf_bts_attributes): New.
11164 (btrace_conf_children): Add attributes.
11165 * common/btrace-common.h (btrace_config_bts): New.
11166 (btrace_config)<bts>: New.
11167 (btrace_config): Update comment.
11168 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
11169 Use config.
11170 * features/btrace-conf.dtd: Increment version. Add size
11171 attribute to bts element.
11172 * record-btrace.c (set_record_btrace_bts_cmdlist,
11173 show_record_btrace_bts_cmdlist): New.
11174 (record_btrace_adjust_size, record_btrace_print_bts_conf,
11175 record_btrace_print_conf, cmd_set_record_btrace_bts,
11176 cmd_show_record_btrace_bts): New.
11177 (record_btrace_info): Call record_btrace_print_conf.
11178 (_initialize_record_btrace): Add commands.
11179 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
11180 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
11181 (btrace_sync_conf): Synchronize bts size.
11182 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
11183 * NEWS: Announce new commands and new packets.
11184
11185 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11186
11187 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
11188 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
11189 (x86_linux_btrace_conf): New.
11190 (x86_linux_create_target): Initialize to_btrace_conf.
11191 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
11192 Check format. Split into this and ...
11193 (linux_enable_bts): ... this.
11194 (linux_btrace_conf): New.
11195 (perf_event_skip_record): Renamed into ...
11196 (perf_event_skip_bts_record): ... this. Updated users.
11197 (linux_disable_btrace): Split into this and ...
11198 (linux_disable_bts): ... this.
11199 (linux_read_btrace): Check format.
11200 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
11201 (linux_btrace_conf): New.
11202 (btrace_target_info)<ptid>: Moved.
11203 (btrace_target_info)<conf>: New.
11204 (btrace_target_info): Split into this and ...
11205 (btrace_tinfo_bts): ... this. Updated users.
11206 * btrace.c (btrace_enable): Update parameters.
11207 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
11208 (btrace_conf_children, btrace_conf_attributes)
11209 (btrace_conf_elements): New.
11210 * btrace.h (btrace_enable): Update parameters.
11211 (btrace_conf, parse_xml_btrace_conf): New.
11212 * common/btrace-common.h (btrace_config): New.
11213 * feature/btrace-conf.dtd: New.
11214 * record-btrace.c (record_btrace_conf): New.
11215 (record_btrace_cmdlist): New.
11216 (record_btrace_enable_warn, record_btrace_open): Pass
11217 &record_btrace_conf.
11218 (record_btrace_info): Print recording format.
11219 (cmd_record_btrace_bts_start): New.
11220 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
11221 (_initialize_record_btrace): Add "record btrace bts" subcommand.
11222 Add "record bts" alias command.
11223 * remote.c (remote_state)<btrace_config>: New.
11224 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
11225 (remote_protocol_features): Add qXfer:btrace-conf:read.
11226 (remote_open_1): Call remote_btrace_reset.
11227 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
11228 (btrace_target_info)<conf>: New.
11229 (btrace_sync_conf, btrace_read_config): New.
11230 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
11231 btrace_read_conf.
11232 (remote_btrace_conf): New.
11233 (init_remote_ops): Initialize to_btrace_conf.
11234 (_initialize_remote): Add qXfer:btrace-conf packet.
11235 * target.c (target_enable_btrace): Update parameters.
11236 (target_btrace_conf): New.
11237 * target.h (target_enable_btrace): Update parameters.
11238 (target_btrace_conf): New.
11239 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
11240 (target_ops)<to_enable_btrace>: Update parameters and comment.
11241 (target_ops)<to_btrace_conf>: New.
11242 * target-delegates: Regenerate.
11243 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
11244 (target_debug_print_const_struct_btrace_target_info_p): New.
11245 * NEWS: Announce new command and new packet.
11246
11247 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11248
11249 * nat/linux-btrace.h (perf_event_buffer): New.
11250 (btrace_target_info) <buffer, size, data_head>: Replace with ...
11251 <bts>: ... this.
11252 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
11253 (perf_event_buffer_size, perf_event_buffer_begin)
11254 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
11255 Updated users.
11256 (perf_event_new_data): New.
11257
11258 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11259
11260 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
11261 * record-btrace.c (record_btrace_open): Remove call to
11262 target_supports_btrace.
11263 * remote.c (remote_supports_btrace): Update parameters.
11264 * target.c (target_supports_btrace): Update parameters.
11265 * target.h (to_supports_btrace, target_supports_btrace): Update
11266 parameters.
11267 * target-delegates.c: Regenerate.
11268 * target-debug.h (target_debug_print_enum_btrace_format): New.
11269 * nat/linux-btrace.c
11270 (kernel_supports_btrace): Rename into ...
11271 (kernel_supports_bts): ... this. Update users. Update warning text.
11272 (intel_supports_btrace): Rename into ...
11273 (intel_supports_bts): ... this. Update users.
11274 (cpu_supports_btrace): Rename into ...
11275 (cpu_supports_bts): ... this. Update users.
11276 (linux_supports_btrace): Update parameters. Split into this and ...
11277 (linux_supports_bts): ... this.
11278 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
11279
11280 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11281
11282 * Makefile.in (SFILES): Add common/btrace-common.c.
11283 (COMMON_OBS): Add common/btrace-common.o.
11284 (btrace-common.o): Add build rules.
11285 * btrace.c (parse_xml_btrace): Update parameters.
11286 (parse_xml_btrace_block): Set format field.
11287 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
11288 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
11289 (btrace_compute_ftrace): Split into this and...
11290 (btrace_compute_ftrace_bts): ...this.
11291 (btrace_stitch_trace): Split into this and...
11292 (btrace_stitch_bts): ...this.
11293 * btrace.h (parse_xml_btrace): Update parameters.
11294 (make_cleanup_btrace_data): New.
11295 * common/btrace-common.c: New.
11296 * common/btrace-common.h: Include common-defs.h.
11297 (btrace_block_s): Update comment.
11298 (btrace_format): New.
11299 (btrace_format_string): New.
11300 (btrace_data_bts): New.
11301 (btrace_data): New.
11302 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
11303 * remote.c (remote_read_btrace): Update parameters.
11304 * target.c (target_read_btrace): Update parameters.
11305 * target.h (target_read_btrace): Update parameters.
11306 (target_ops)<to_read_btrace>: Update parameters.
11307 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
11308 * target-delegates.c: Regenerate.
11309 * target-debug (target_debug_print_struct_btrace_data_p): New.
11310 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
11311 (linux_read_bts): ...this.
11312 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
11313
11314 2015-02-06 Doug Evans <dje@google.com>
11315
11316 * remote-m32r-sdi.c: Include symfile.h.
11317
11318 2015-02-06 Doug Evans <dje@google.com>
11319
11320 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
11321 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
11322 to here.
11323
11324 2015-02-06 Pedro Alves <palves@redhat.com>
11325
11326 * linux-thread-db.c (find_new_threads_callback): Add debug output.
11327
11328 2015-02-06 Simon Marchi <simon.marchi@ericsson.com>
11329
11330 PR gdb/15678
11331 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
11332 (enable_count_command): Check args for NULL value.
11333
11334 2015-02-05 Doug Evans <xdje42@gmail.com>
11335
11336 * guile/scm-frame.c: Fix spelling errors in a comment.
11337
11338 2015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11339
11340 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
11341 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
11342 return type.
11343
11344 2015-02-04 Pedro Alves <palves@redhat.com>
11345
11346 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
11347 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
11348 returns true.
11349 (resume_stopped_resumed_lwps): Don't check whether the thread is
11350 marked as executing.
11351 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
11352
11353 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11354
11355 * regset.h (struct regset): Add flags field.
11356 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
11357 * corelow.c (get_core_register_section): Add warning if the size
11358 exceeds the requested size and the regset does not have the
11359 REGSET_VARIABLE_SIZE flag set.
11360 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
11361 flag.
11362 * armbsd-tdep.c (armbsd_gregset): Likewise.
11363 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
11364 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
11365 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
11366 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
11367
11368 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11369
11370 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
11371 For ".reg-xstate", explicitly specify the requested section size
11372 via X86_XSTATE_SIZE instead of just 0 on input and
11373 X86_XSTATE_MAX_SIZE on output.
11374 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
11375 Likewise.
11376
11377 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11378
11379 PR corefiles/17808:
11380 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
11381 function type, particularly its SIZE parameter.
11382 * gdbarch.h: Regenerate.
11383 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
11384 actual against required size using ">=" instead of "==".
11385 (amd64_collect_fpregset): Likewise.
11386 * i386-tdep.c (i386_supply_gregset): Likewise.
11387 (i386_collect_gregset): Likewise.
11388 (i386_supply_fpregset): Likewise.
11389 (i386_collect_fpregset): Likewise.
11390 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
11391 (mips_fill_gregset_wrapper): Likewise.
11392 (mips_supply_fpregset_wrapper): Likewise.
11393 (mips_fill_fpregset_wrapper): Likewise.
11394 (mips64_supply_gregset_wrapper): Likewise.
11395 (mips64_fill_gregset_wrapper): Likewise.
11396 (mips64_supply_fpregset_wrapper): Likewise.
11397 (mips64_fill_fpregset_wrapper): Likewise.
11398 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
11399 (am33_supply_fpregset_method): Likewise.
11400 (am33_collect_gregset_method): Likewise.
11401 (am33_collect_fpregset_method): Likewise.
11402
11403 2015-02-04 Doug Evans <dje@google.com>
11404 Pedro Alves <palves@redhat.com>
11405 Eli Zaretskii <eliz@gnu.org>
11406
11407 PR tui/17810
11408 * tui/tui-command.c (tui_refresh_cmd_win): New function.
11409 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
11410 * tui/tui-file.c: #include tui/tui-command.h.
11411 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
11412 (tui_file_flush): Refresh command window if stream is gdb_stdout.
11413 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
11414
11415 2015-02-04 Pedro Alves <palves@redhat.com>
11416
11417 Fix build breakage.
11418 * event-loop.c (gdb_do_one_event): Add default switch case.
11419
11420 2015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11421
11422 Filter out inferior gcc option -fpreprocessed.
11423 * compile/compile.c (filter_args): New function.
11424 (get_args): Use it.
11425
11426 2015-02-03 Pedro Alves <palves@redhat.com>
11427
11428 * event-loop.c: Don't declare nor define a queue type for
11429 gdb_event_p.
11430 (event_queue): Delete.
11431 (create_event, create_file_event, gdb_event_xfree)
11432 (initialize_event_loop, process_event): Delete.
11433 (gdb_do_one_event): Return as soon as one event is handled.
11434 (handle_file_event): Change prototype. Used the passed in
11435 file_handler pointer and ready_mask instead of looping over all
11436 file handlers.
11437 (gdb_wait_for_event): Update the poll/select timeouts before
11438 blocking. Run event handlers directly instead of queueing events.
11439 Return as soon as one event is handled.
11440 (struct async_event_handler_data): Delete.
11441 (invoke_async_event_handler): Delete.
11442 (check_async_event_handlers): Change return type to int. Run
11443 event handlers directly instead of queueing events. Return as
11444 soon as one event is handled.
11445 (handle_timer_event): Delete.
11446 (update_wait_timeout): New function, factored out from
11447 poll_timers.
11448 (poll_timers): Reimplement.
11449 * event-loop.h (initialize_event_loop): Delete declaration.
11450 * top.c (gdb_init): Don't call initialize_event_loop.
11451
11452 2015-02-03 Pedro Alves <palves@redhat.com>
11453
11454 * event-loop.c (clear_async_event_handler): New function.
11455 * event-loop.h (clear_async_event_handler): New declaration.
11456 * record-btrace.c (record_btrace_async): New function.
11457 (init_record_btrace_ops): Install record_btrace_async.
11458 * record-full.c (record_full_async): New function.
11459 (record_full_resume): Don't mark the async event source here.
11460 (init_record_full_ops): Install record_full_async.
11461 (record_full_core_resume): Don't mark the async event source here.
11462 (init_record_full_core_ops): Install record_full_async.
11463 * remote.c (remote_async): Mark and clear the async stop reply
11464 queue event-loop token as appropriate.
11465
11466 2015-02-03 Pedro Alves <palves@redhat.com>
11467
11468 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
11469 target_is_async_p instead of target_can_async.
11470 (linux_nat_wait): Use target_is_async_p instead of
11471 target_can_async. Don't enable async here.
11472 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
11473 target_is_async_p instead of target_can_async.
11474
11475 2015-02-02 Simon Marchi <simon.marchi@ericsson.com>
11476
11477 * varobj.h (lang_varobj_ops): Mention which return values need
11478 to be freed.
11479
11480 2015-02-02 Joel Brobecker <brobecker@adacore.com>
11481
11482 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
11483
11484 2015-02-02 Joel Brobecker <brobecker@adacore.com>
11485
11486 PR gdb/17856:
11487 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
11488 results found in the cache.
11489
11490 2015-02-02 Joel Brobecker <brobecker@adacore.com>
11491
11492 PR gdb/17854:
11493 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
11494 when allocating a new one.
11495
11496 2015-02-01 Tom Tromey <tom@tromey.com>
11497
11498 * MAINTAINERS: Remove myself.
11499
11500 2015-01-31 Doug Evans <xdje42@gmail.com>
11501
11502 * dwarf2read.c (process_structure_scope): Update setting of
11503 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
11504 * gdbtypes.c (internal_type_vptr_fieldno): New function.
11505 (set_type_vptr_fieldno): New function.
11506 (internal_type_vptr_basetype): New function.
11507 (set_type_vptr_basetype): New function.
11508 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
11509 TYPE_VPTR_BASETYPE.
11510 (allocate_cplus_struct_type): Initialize vptr_fieldno.
11511 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
11512 (print_cplus_stuff): ... moved here.
11513 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
11514 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
11515 moved to ...
11516 (struct cplus_struct_type): ... here. All uses updated.
11517 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
11518 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
11519 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
11520 * stabsread.c (read_tilde_fields): Update setting of
11521 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
11522
11523 2015-01-31 Doug Evans <xdje42@gmail.com>
11524
11525 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
11526 to self_p.
11527 (cp_print_class_member): Rename local domain to self_type.
11528 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
11529 domain_type to self_type.
11530 (set_die_type) <need_gnat_info>: Handle
11531 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
11532 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
11533 TYPE_SPECIFIC_SELF_TYPE.
11534 * gdbtypes.c (internal_type_self_type): New function.
11535 (set_type_self_type): New function.
11536 (smash_to_memberptr_type): Rename parameter domain to self_type.
11537 Update setting of TYPE_SELF_TYPE.
11538 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
11539 (smash_to_method_type): Rename parameter domain to self_type.
11540 Update setting of TYPE_SELF_TYPE.
11541 (check_stub_method): Call smash_to_method_type.
11542 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
11543 (copy_type_recursive): Ditto.
11544 * gdbtypes.h (enum type_specific_kind): New value
11545 TYPE_SPECIFIC_SELF_TYPE.
11546 (struct main_type) <type_specific>: New member self_type.
11547 (struct cplus_struct_type) <fn_field.type>: Update comment.
11548 (TYPE_SELF_TYPE): Rewrite.
11549 (internal_type_self_type, set_type_self_type): Declare.
11550 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
11551 self_type.
11552 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
11553 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
11554 TYPE_TARGET_TYPE.
11555 * stabsread.c (read_member_functions): Mark methods with
11556 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
11557 TYPE_SELF_TYPE.
11558
11559 2015-01-31 Doug Evans <xdje42@gmail.com>
11560
11561 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
11562 All uses updated.
11563
11564 2015-01-31 Doug Evans <xdje42@gmail.com>
11565
11566 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
11567 or unions. Return zero if union.
11568 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
11569 (gnuv3_rtti_type): Pass already-check_typedef'd value to
11570 gnuv3_get_vtable.
11571 (compute_vtable_size): Assert only passed structs.
11572 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
11573
11574 2015-01-31 Doug Evans <xdje42@gmail.com>
11575
11576 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
11577 kinds.
11578
11579 2015-01-31 Gary Benson <gbenson@redhat.com>
11580 Doug Evans <dje@google.com>
11581
11582 PR cli/9007
11583 PR cli/11920
11584 PR cli/15548
11585 * cli/cli-cmds.c (complete_command): Notify user if max-completions
11586 reached.
11587 * common/common-exceptions.h (enum errors)
11588 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
11589 * completer.h (get_max_completions_reached_message): New declaration.
11590 (max_completions): Likewise.
11591 (completion_tracker_t): New typedef.
11592 (new_completion_tracker): New declaration.
11593 (make_cleanup_free_completion_tracker): Likewise.
11594 (maybe_add_completion_enum): New enum.
11595 (maybe_add_completion): New declaration.
11596 (throw_max_completions_reached_error): Likewise.
11597 * completer.c (max_completions): New global variable.
11598 (new_completion_tracker): New function.
11599 (free_completion_tracker): Likewise.
11600 (make_cleanup_free_completion_tracker): Likewise.
11601 (maybe_add_completions): Likewise.
11602 (throw_max_completions_reached_error): Likewise.
11603 (complete_line): Remove duplicates and limit result to max_completions
11604 entries.
11605 (get_max_completions_reached_message): New function.
11606 (gdb_display_match_list): Handle max_completions.
11607 (_initialize_completer): New declaration and function.
11608 * symtab.c: Include completer.h.
11609 (completion_tracker): New static variable.
11610 (completion_list_add_name): Call maybe_add_completion.
11611 (default_make_symbol_completion_list_break_on_1): Renamed from
11612 default_make_symbol_completion_list_break_on. Maintain
11613 completion_tracker across calls to completion_list_add_name.
11614 (default_make_symbol_completion_list_break_on): New function.
11615 * top.c (init_main): Set rl_completion_display_matches_hook.
11616 * tui/tui-io.c: Include completer.h.
11617 (tui_old_rl_display_matches_hook): New static global.
11618 (tui_rl_display_match_list): Notify user if max-completions reached.
11619 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
11620 * NEWS (New Options): Mention set/show max-completions.
11621
11622 2015-01-31 Gary Benson <gbenson@redhat.com>
11623
11624 * symtab.c (struct add_name_data) <code>: New field.
11625 Updated comments.
11626 (add_symtab_completions): New function.
11627 (symtab_expansion_callback): Likewise.
11628 (default_make_symbol_completion_list_break_on): Set datum.code.
11629 Move minimal symbol scan before calling expand_symtabs_matching.
11630 Scan known primary symtabs for externs and statics before calling
11631 expand_symtabs_matching. Pass symtab_expansion_callback as
11632 expansion_notify argument to expand_symtabs_matching. Do not scan
11633 primary symtabs for externs and statics after calling
11634 expand_symtabs_matching.
11635
11636 2015-01-31 Gary Benson <gbenson@redhat.com>
11637
11638 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
11639 (struct quick_symbol_functions) <expand_symtabs_matching>:
11640 New argument expansion_notify. All uses updated.
11641 (expand_symtabs_matching): New argument expansion_notify.
11642 All uses updated.
11643 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11644 Also print expansion notify.
11645 * symtab.c (expand_symtabs_matching_via_partial): Call
11646 expansion_notify whenever a partial symbol table is expanded.
11647 * dwarf2read.c (dw2_expand_symtabs_matching): Call
11648 expansion_notify whenever a symbol table is instantiated.
11649
11650 2015-01-31 Doug Evans <xdje42@gmail.com>
11651
11652 * cli-out.c: #include completer.h, readline/readline.h.
11653 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
11654 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
11655 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
11656 * cli-out.h (cli_display_match_list): Declare.
11657 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
11658 (ELLIPSIS_LEN): Ditto.
11659 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
11660 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
11661 (gdb_fnprint, gdb_print_filename): Ditto.
11662 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
11663 (gdb_display_match_list): Ditto.
11664 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
11665 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
11666 (mld_beep_ftype, mld_read_key_ftype): Ditto.
11667 (match_list_displayer): New struct.
11668 (gdb_display_match_list): Declare.
11669 * top.c (init_main): Set rl_completion_display_matches_hook.
11670 * tui/tui-io.c: #include completer.h.
11671 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
11672 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
11673 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
11674 (tui_mld_getc, tui_mld_read_key): Ditto.
11675 (tui_rl_display_match_list): Rewrite.
11676 (tui_handle_resize_during_io): New arg for_completion. All callers
11677 updated.
11678
11679 2015-01-31 Doug Evans <xdje42@gmail.com>
11680
11681 Add symbol lookup cache.
11682 * NEWS: Document new options and commands.
11683 * symtab.c (symbol_cache_key): New static global.
11684 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
11685 (SYMBOL_LOOKUP_FAILED): New macro.
11686 (symbol_cache_slot_state): New enum.
11687 (block_symbol_cache): New struct.
11688 (symbol_cache): New struct.
11689 (new_symbol_cache_size, symbol_cache_size): New static globals.
11690 (hash_symbol_entry, eq_symbol_entry): New functions.
11691 (symbol_cache_byte_size, resize_symbol_cache): New functions.
11692 (make_symbol_cache, free_symbol_cache): New functions.
11693 (get_symbol_cache, symbol_cache_cleanup): New function.
11694 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
11695 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
11696 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
11697 (symbol_cache_flush, symbol_cache_dump): New functions.
11698 (maintenance_print_symbol_cache): New function.
11699 (maintenance_flush_symbol_cache): New function.
11700 (symbol_cache_stats): New function.
11701 (maintenance_print_symbol_cache_statistics): New function.
11702 (symtab_new_objfile_observer): New function.
11703 (symtab_free_objfile_observer): New function.
11704 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
11705 (_initialize_symtab): Init symbol_cache_key. New parameter
11706 maint symbol-cache-size. New maint commands print symbol-cache,
11707 print symbol-cache-statistics, flush-symbol-cache.
11708 Install new_objfile, free_objfile observers.
11709
11710 2015-01-31 Joel Brobecker <brobecker@adacore.com>
11711
11712 PR symtab/17855
11713 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
11714 to end.
11715
11716 2015-01-31 Doug Evans <xdje42@gmail.com>
11717
11718 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
11719 * auto-load.c: #include ctype.h.
11720 (struct auto_load_pspace_info): Replace member loaded_scripts with
11721 new members loaded_script_files, loaded_script_texts.
11722 (auto_load_pspace_data_cleanup): Update.
11723 (init_loaded_scripts_info): Update.
11724 (get_auto_load_pspace_data_for_loading): Update.
11725 (maybe_add_script_file): Renamed from maybe_add_script. All callers
11726 updated.
11727 (maybe_add_script_text): New function.
11728 (clear_section_scripts): Update.
11729 (source_script_file, execute_script_contents): New functions.
11730 (source_section_scripts): Add support for
11731 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
11732 (print_scripts): New function.
11733 (auto_load_info_scripts): Also print inlined scripts.
11734 (maybe_print_unsupported_script_warning): Renamed from
11735 unsupported_script_warning_print. All callers updated.
11736 (maybe_print_script_not_found_warning): Renamed from
11737 script_not_found_warning_print. All callers updated.
11738 * extension-priv.h (struct extension_language_script_ops): New member
11739 objfile_script_executor.
11740 * extension.c (ext_lang_objfile_script_executor): New function.
11741 * extension.h (objfile_script_executor_func): New typedef.
11742 (ext_lang_objfile_script_executor): Declare.
11743 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
11744 * guile/guile.c (guile_extension_script_ops): Update.
11745 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
11746 * python/python.c (python_extension_script_ops): Update.
11747 (gdbpy_execute_objfile_script): New function.
11748
11749 2015-01-31 Eli Zaretskii <eliz@gnu.org>
11750
11751 * tui/tui-io.c (tui_expand_tabs): New function.
11752 (tui_puts, tui_redisplay_readline): Expand TABs into the
11753 appropriate number of spaces.
11754 * tui/tui-regs.c: Include tui-io.h.
11755 (tui_register_format): Call tui_expand_tabs to expand TABs into
11756 the appropriate number of spaces.
11757 * tui/tui-io.h: Add prototype for tui_expand_tabs.
11758
11759 2015-01-30 Doug Evans <dje@google.com>
11760
11761 * NEWS: "info source" command now display producer string if present.
11762 * source.c (source_info): Print producer string if present.
11763
11764 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11765
11766 * varobj.c (varobj_delete): Fix comment.
11767
11768 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11769
11770 * varobj.c (create_child): Modify comment.
11771
11772 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11773
11774 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
11775 parameter.
11776 (ada_name_of_variable): Same.
11777 (ada_path_expr_of_child): Same.
11778 (ada_value_of_variable): Same.
11779 (ada_value_is_changeable_p): Same.
11780 (ada_value_has_mutated): Same.
11781 * c-varobj.c (varobj_is_anonymous_child): Same.
11782 (c_is_path_expr_parent): Same.
11783 (c_number_of_children): Same.
11784 (c_name_of_variable): Same.
11785 (c_path_expr_of_child): Same.
11786 (get_type): Same.
11787 (c_value_of_variable): Same.
11788 (cplus_number_of_children): Same.
11789 (cplus_name_of_variable): Same.
11790 (cplus_path_expr_of_child): Same.
11791 (cplus_value_of_variable): Same.
11792 * jv-varobj.c (java_number_of_children): Same.
11793 (java_name_of_variable): Same.
11794 (java_path_expr_of_child): Same.
11795 (java_value_of_variable): Same.
11796 * varobj.c (number_of_children): Same.
11797 (name_of_variable): Same.
11798 (is_root_p): Same.
11799 (varobj_ensure_python_env): Same.
11800 (varobj_get_objname): Same.
11801 (varobj_get_expression): Same.
11802 (varobj_get_display_format): Same.
11803 (varobj_get_display_hint): Same.
11804 (varobj_has_more): Same.
11805 (varobj_get_thread_id): Same.
11806 (varobj_get_frozen): Same.
11807 (dynamic_varobj_has_child_method): Same.
11808 (varobj_get_gdb_type): Same.
11809 (is_path_expr_parent): Same.
11810 (varobj_default_is_path_expr_parent): Same.
11811 (varobj_get_language): Same.
11812 (varobj_get_attributes): Same.
11813 (varobj_is_dynamic_p): Same.
11814 (varobj_get_child_range): Same.
11815 (varobj_value_has_mutated): Same.
11816 (varobj_get_value_type): Same.
11817 (number_of_children): Same.
11818 (name_of_variable): Same.
11819 (check_scope): Same.
11820 (varobj_editable_p): Same.
11821 (varobj_value_is_changeable_p): Same.
11822 (varobj_floating_p): Same.
11823 (varobj_default_value_is_changeable_p): Same.
11824
11825 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11826
11827 * varobj.c (varobj_get_path_expr): Set var->path_expr.
11828 * c-varobj.c (c_path_expr_of_child): Set local var instead of
11829 child->path_expr.
11830 (cplus_path_expr_of_child): Same.
11831
11832 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11833
11834 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
11835 result.
11836 (mi_cmd_var_info_expression): Same.
11837 * varobj.c (varobj_get_expression): Mention in the comment that
11838 the result must by freed by the caller.
11839
11840 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11841
11842 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
11843 varobj_get_type.
11844 (varobj_update_one): Same.
11845 * varobj.c (update_type_if_necessary): Free curr_type_str and
11846 new_type_str.
11847 (varobj_get_type): Specify in comment that the result needs to be
11848 freed by the caller.
11849
11850 2015-01-29 Doug Evans <dje@google.com>
11851
11852 PR symtab/17890
11853 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
11854
11855 2015-01-25 Mark Wielaard <mjw@redhat.com>
11856
11857 * dwarf2read.c (checkproducer): Call producer_is_gcc.
11858 * utils.c (producer_is_gcc_ge_4): Likewise.
11859 (producer_is_gcc): New function.
11860 * utils.h (producer_is_gcc): New declaration.
11861
11862 2015-01-29 Joel Brobecker <brobecker@adacore.com>
11863
11864 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
11865 kind.
11866 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
11867 parameter by "addr_stack" parameter.
11868 (resolve_dynamic_range): Replace "addr" parameter by
11869 "stack_addr" parameter. Update function documentation.
11870 Update code accordingly.
11871 (resolve_dynamic_array, resolve_dynamic_union)
11872 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
11873 (resolve_dynamic_type): Update code, following the changes made
11874 to resolve_dynamic_type_internal's interface.
11875 * dwarf2loc.h (struct property_addr_info): New.
11876 (dwarf2_evaluate_property): Replace "address" parameter
11877 by "addr_stack" parameter. Adjust function documentation.
11878 (struct dwarf2_offset_baton): New.
11879 (struct dwarf2_property_baton): Update documentation of
11880 field "referenced_type" to be more general. New field
11881 "offset_info" in union data field.
11882 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
11883 parameter by "addr_stack" parameter. Adjust code accordingly.
11884 Add support for PROP_ADDR_OFFSET properties.
11885 * dwarf2read.c (attr_to_dynamic_prop): Add support for
11886 DW_AT_data_member_location attributes as well. Use case
11887 statements instead of if/else condition.
11888
11889 2015-01-29 Joel Brobecker <brobecker@adacore.com>
11890
11891 * ada-varobj.c (ada_varobj_get_array_number_of_children):
11892 Return zero if PARENT_VALUE is NULL and parent_type's
11893 range type is dynamic.
11894
11895 2015-01-29 Joel Brobecker <brobecker@adacore.com>
11896
11897 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
11898 nonzero if the type's subtype is dynamic.
11899 (resolve_dynamic_range): Also resolve the range's subtype.
11900
11901 2015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
11902
11903 Pushed by Joel Brobecker <brobecker@adacore.com>.
11904 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
11905
11906 2015-01-27 Doug Evans <dje@google.com>
11907
11908 * NEWS: Mention gdb.Objfile.username.
11909 * python/py-objfile.c (objfpy_get_username): New function.
11910 (objfile_getset): Add "username".
11911
11912 2015-01-24 Mark Wielaard <mjw@redhat.com>
11913
11914 * stack.c (return_command): Markup warning message with _.
11915
11916 2015-01-24 Doug Evans <xdje42@gmail.com>
11917
11918 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
11919
11920 2015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11921
11922 Fix 100x slowdown regression on DWZ files.
11923 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
11924 (struct line_header): Add offset and offset_in_dwz.
11925 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
11926 (free_line_header_voidp): New declaration.
11927 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
11928 functions.
11929 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
11930 (handle_DW_AT_stmt_list): Use line_header_hash.
11931 (free_line_header_voidp): New function.
11932 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
11933 (dwarf_decode_lines): New parameter decode_mapping, use it.
11934 (dwarf2_free_objfile): Free line_header_hash.
11935
11936 2015-01-23 Simon Marchi <simon.marchi@ericsson.com>
11937
11938 PR gdb/17416
11939 * valops.c (value_rtti_indirect_type): Catch exception thrown by
11940 value_ind.
11941
11942 2015-01-15 Mark Wielaard <mjw@redhat.com>
11943
11944 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
11945 DW_AT_noreturn.
11946 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
11947 calling_convention an 8 bit bit field.
11948 (TYPE_NO_RETURN): New macro.
11949 * infcmd.c (finish_command): Query if function does not return
11950 normally.
11951 * stack.c (return_command): Likewise.
11952
11953 2015-01-23 Pedro Alves <palves@redhat.com>
11954
11955 * linux-nat.c (linux_is_async_p): New macro.
11956 (linux_nat_is_async_p):
11957 (linux_nat_terminal_inferior): Check whether the target can async
11958 instead of whether it is already async.
11959 (linux_nat_terminal_ours): Don't check whether the target is
11960 async.
11961 (linux_async_pipe): Use linux_is_async_p.
11962
11963 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
11964
11965 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
11966 '-ascending'.
11967 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
11968 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
11969 Sort tp_array using tp_array_compar.
11970 (_initialize_thread): Extend thread_apply_all_command help.
11971
11972 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
11973
11974 * corelow.c (core_open): Call also thread_command.
11975 * gdbthread.h (thread_command): New prototype moved from ...
11976 * thread.c (thread_command): ... here.
11977 (thread_command): Make it global.
11978
11979 2015-01-22 Pedro Alves <palves@redhat.com>
11980
11981 * configure.ac [*mingw32*]: Check $curses_found instead of
11982 $prefer_curses.
11983 * configure: Regenerate.
11984 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
11985 HAVE_NCURSES_NCURSES_H checks.
11986
11987 2015-01-22 Eli Zaretskii <eliz@gnu.org>
11988
11989 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
11990 fails with the 1st arg NULL, try again with "unknown". Don't test
11991 the "cup" capability: it isn't supported by the Windows port of
11992 ncurses, but the Windows console driver is still capable of
11993 supporting TUI.
11994
11995 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
11996
11997 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
11998
11999 2015-01-22 Eli Zaretskii <eliz@gnu.org>
12000
12001 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
12002 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
12003 reason that "make TAGS" is broken.
12004
12005 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
12006
12007 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
12008 and check additional store instructions.
12009
12010 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
12011
12012 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
12013
12014 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
12015
12016 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
12017 ppc_canonicalize_syscall, ppc_linux_syscall_record,
12018 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
12019 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12020 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
12021 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
12022 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
12023 ppc_process_record_op19, ppc_process_record_op31,
12024 ppc_process_record_op59, ppc_process_record_op60,
12025 ppc_process_record_op63): Likewise.
12026
12027 2015-01-20 Joel Brobecker <brobecker@adacore.com>
12028
12029 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
12030 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
12031 strerror.
12032
12033 2015-01-20 Wei-cheng Wang <cole945@gmail.com>
12034
12035 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
12036 ppc_process_record_op31, ppc_process_record_op59,
12037 ppc_process_record_op60, ppc_process_record_op63,
12038 ppc_process_record): Fix -Wformat warning.
12039 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
12040 Remove unused variables.
12041
12042 2015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
12043
12044 * MAINTAINERS (Write After Approval): Add "Chen Gang".
12045
12046 2015-01-19 Eli Zaretskii <eliz@gnu.org>
12047
12048 * configure.ac [*mingw32*]: Only add windows-termcap.o to
12049 CONFIG_OBS if not building with a curses library.
12050 * configure: Regenerate.
12051
12052 * windows-termcap.c: Include defs.h. Make the whole body empty if
12053 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
12054 HAVE_NCURSES_NCURSES_H is defined.
12055
12056 2015-01-19 Joel Brobecker <brobecker@adacore.com>
12057
12058 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
12059 from end of line to start of next line.
12060
12061 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
12062
12063 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
12064 Scan PLT stub backward for reverse debugging.
12065 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12066
12067 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
12068 Ulrich Weigand <uweigand@de.ibm.com>
12069
12070 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
12071 gdb_target_obs.
12072 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
12073 record.
12074 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
12075 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
12076 (ppc_linux_init_abi): Set process_record, process_record_signal.
12077 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
12078 ppc_linux_record_tdep to gdbarch_tdep.
12079 (ppc_process_record): New declaration.
12080 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
12081 ppc_process_record_op19, ppc_process_record_op31,
12082 ppc_process_record_op59, ppc_process_record_op60,
12083 ppc_process_record_op63, ppc_process_record): New functions.
12084
12085 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
12086
12087 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
12088 rs6000_in_function_epilogue_frame_p and add an argument
12089 for frame_info.
12090 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
12091 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
12092 New functions.
12093 (rs6000_epilogue_frame_unwind): New.
12094 (rs6000_gdbarch_init): Append epilogue unwinder.
12095
12096 2015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
12097
12098 * nat/linux-personality.c: Replace "#ifndef
12099 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
12100 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
12101 systems.
12102
12103 2015-01-16 Eli Zaretskii <eliz@gnu.org>
12104
12105 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
12106 functions.
12107 (_initialize_tui_win) <border-kind, border-mode>:
12108 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
12109 (tui_set_tab_width_command): Fix the commentary.
12110
12111 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
12112
12113 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
12114 Doc fix.
12115 (tui_set_tab_width_command): Delete and recreate the source and
12116 the disassembly windows, to show the effect of the changed tab
12117 size immediately.
12118
12119 * tui/tui-data.h (LINE_PREFIX): Make shorter
12120 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
12121 "Thread NNNNN.XXXX" thread ID notation on Windows.
12122
12123 2015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12124
12125 Fix gcc-5 compilation.
12126 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
12127
12128 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12129
12130 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
12131 (linux-personality.o): New rule.
12132 * common/common-defs.h: Include <stdint.h>.
12133 * config/aarch64/linux.mh (NATDEPFILES): Include
12134 linux-personality.o.
12135 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
12136 * config/arm/linux.mh (NATDEPFILES): Likewise.
12137 * config/i386/linux64.mh (NATDEPFILES): Likewise.
12138 * config/i386/linux.mh (NATDEPFILES): Likewise.
12139 * config/ia64/linux.mh (NATDEPFILES): Likewise.
12140 * config/m32r/linux.mh (NATDEPFILES): Likewise.
12141 * config/m68k/linux.mh (NATDEPFILES): Likewise.
12142 * config/mips/linux.mh (NATDEPFILES): Likewise.
12143 * config/pa/linux.mh (NATDEPFILES): Likewise.
12144 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
12145 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
12146 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
12147 * config/s390/linux.mh (NATDEPFILES): Likewise.
12148 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
12149 * config/sparc/linux.mh (NATDEPFILES): Likewise.
12150 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
12151 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
12152 * defs.h: Remove #include <stdint.h> (moved to
12153 common/common-defs.h).
12154 * linux-nat.c: Include nat/linux-personality.h. Remove #include
12155 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
12156 nat/linux-personality.c).
12157 (linux_nat_create_inferior): Remove code to disable address space
12158 randomization (moved to nat/linux-personality.c). Create cleanup
12159 to disable address space randomization.
12160 * nat/linux-personality.c: New file.
12161 * nat/linux-personality.h: Likewise.
12162
12163 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12164
12165 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
12166 common/posix-strerror.c.
12167 (posix-strerror.o): New rule.
12168 (mingw-strerror.o): Likewise.
12169 * common/common-utils.h (safe_strerror): Move prototype to here,
12170 from utils.h.
12171 * common/common.host: New file.
12172 * common/mingw-strerror.c: Likewise.
12173 * common/posix-strerror.c: Likewise.
12174 * configure: Regenerated.
12175 * configure.ac: Source common/common.host. Add variable
12176 common_host_obs to gdb_host_obs.
12177 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
12178 gdb/common/posix-strerror.c when warning about the use of
12179 strerror.
12180 * mingw-hdep.c (safe_strerror): Remove definition; move it to
12181 common/mingw-strerror.c.
12182 * posix-hdep.c (safe_strerror): Remove definition; move it to
12183 common/posix-hdep.c.
12184 * utils.h (safe_strerror): Remove prototype; move to
12185 common/common-utils.h.
12186
12187 2015-01-15 Joel Brobecker <brobecker@adacore.com>
12188
12189 GDB 7.8.2 released.
12190
12191 2015-01-15 Joel Brobecker <brobecker@adacore.com>
12192
12193 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
12194 ___XA type if the array has already been fixed.
12195
12196 2015-01-14 Yao Qi <yao@codesourcery.com>
12197
12198 * Makefile.in (ppc-linux.o): New rule.
12199 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
12200 * configure.ac: AC_CHECK_FUNCS(getauxval).
12201 * config.in: Re-generated.
12202 * configure: Re-generated.
12203 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
12204 Declare.
12205 * nat/ppc-linux.c: New file.
12206 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
12207 Call ppc64_64bit_inferior_p.
12208
12209 2015-01-14 Yao Qi <yao@codesourcery.com>
12210
12211 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
12212 nat/ppc-linux.h.
12213 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
12214 (PPC_FEATURE_HAS_DFP): Likewise.
12215 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
12216 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
12217 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
12218 Include "nat/ppc-linux.h".
12219 * nat/ppc-linux.h: New file.
12220 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
12221
12222 2015-01-14 Pedro Alves <palves@redhat.com>
12223
12224 PR gdb/17525
12225 * breakpoint.c: Include "interps.h".
12226 (bpstat_do_actions_1): Also check whether the interpreter is
12227 async.
12228
12229 2015-01-14 Pedro Alves <palves@redhat.com>
12230
12231 PR cli/17828
12232 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
12233 reinstall if the interpreter is sync.
12234
12235 2015-01-13 Doug Evans <dje@google.com>
12236
12237 * objfiles.c (objfile_filename): New function.
12238 * objfiles.h (objfile_filename): Declare it.
12239 (objfile_name): Add function comment.
12240 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
12241 bfd file name (which may be realpath'd), and the original name.
12242
12243 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12244
12245 * NEWS: Create a new section for the next release branch.
12246 Rename the section of the current branch, now that it has
12247 been cut.
12248
12249 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12250
12251 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
12252 * version.in: Bump version to 7.9.50.DATE-cvs.
12253
12254 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12255
12256 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
12257 Remove trailing new-line in argument of call to warning.
12258
12259 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12260
12261 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
12262 new-line in argument of call to "warning".
12263
12264 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12265
12266 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
12267 in static block, then try searching for primitive types.
12268
12269 2015-01-12 Patrick Palka <patrick@parcs.ath.cx>
12270
12271 * top.h (gdb_add_history): Declare.
12272 * top.c (command_count): New variable.
12273 (gdb_add_history): New function.
12274 (gdb_safe_append_history): New static function.
12275 (quit_force): Call it.
12276 (command_line_input): Use gdb_add_history instead of
12277 add_history.
12278 * event-top.c (command_line_handler): Likewise.
12279
12280 2015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
12281
12282 PR gdb/17046
12283 * darwin-nat.c: Replace <machine/setjmp.h> #include by
12284 <setjmp.h> #include.
12285
12286 2015-01-11 Doug Evans <xdje42@gmail.com>
12287
12288 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
12289
12290 2015-01-11 Doug Evans <xdje42@gmail.com>
12291
12292 PR gdb/15830
12293 * NEWS: The "maint demangle" command is renamed as "demangle".
12294 * demangle.c: #include cli/cli-utils.h, language.h.
12295 (demangle_command): New function.
12296 (_initialize_demangle): Add new command "demangle".
12297 * maint.c (maintenance_demangle): Stub out.
12298 (_initialize_maint_cmds): Update help text for "maint demangle",
12299 and mark as deprecated.
12300
12301 2015-01-11 Mark Kettenis <kettenis@gnu.org>
12302
12303 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
12304 inferior_thread is a function.
12305
12306 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
12307
12308 * Makefile.in (.y.c): Don't munge yacc's #line
12309 directives.
12310
12311 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
12312
12313 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
12314 to prompt for input.
12315 * tui/tui-hooks.c (tui_query_hook): Remove.
12316 (tui_install_hooks): Don't set deprecated_query_hook.
12317 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
12318 height calculation. Always update the command window's cur_line.
12319
12320 2015-01-09 Pedro Alves <palves@redhat.com>
12321
12322 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
12323 function.
12324 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
12325 declaration.
12326 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
12327 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
12328 stop_reason.
12329 (check_stopped_by_watchpoint): New function.
12330 (save_sigtrap): Reimplement.
12331 (linux_nat_stopped_by_watchpoint): Adjust.
12332 (linux_nat_lp_status_is_event): Delete.
12333 (stop_wait_callback): Only call save_sigtrap after storing the
12334 pending status.
12335 (status_callback): If the thread had been stopped for a breakpoint
12336 that has since been removed, discard the event and resume the LWP.
12337 (count_events_callback, select_event_lwp_callback): Use
12338 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
12339 (cancel_breakpoint): Rename to ...
12340 (check_stopped_by_breakpoint): ... this. Record whether the LWP
12341 stopped for a software breakpoint or hardware breakpoint.
12342 (select_event_lwp): Only give preference to the stepping LWP in
12343 all-stop mode. Adjust comments.
12344 (stop_and_resume_callback): Remove references to new_pending_p.
12345 (linux_nat_filter_event): Likewise. Leave exit events of the
12346 leader thread pending here. Handle signal short circuiting here.
12347 Only call save_sigtrap after storing the pending waitstatus.
12348 (linux_nat_wait_1): Remove 'retry' label. Remove references to
12349 new_pending. Don't handle leaving events the caller is not
12350 interested in pending here, nor handle signal short-circuiting
12351 here. Also give equal priority to all LWPs that have had events
12352 in non-stop mode. If reporting a software breakpoint event,
12353 unadjust the LWP's PC.
12354 * linux-nat.h (enum lwp_stop_reason): New.
12355 (struct lwp_info) <stop_pc>: New field.
12356 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
12357 (struct lwp_info) <stop_reason>: New field.
12358 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
12359
12360 2015-01-09 Pedro Alves <palves@redhat.com>
12361
12362 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
12363 Set the LWP's 'resumed' flag.
12364
12365 2015-01-09 Pedro Alves <palves@redhat.com>
12366
12367 * linux-nat.c (linux_resume_one_lwp): New function.
12368 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
12369 (linux_nat_resume): Use lwp_status_pending_p and
12370 linux_resume_one_lwp.
12371 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
12372 (linux_handle_extended_wait): Use linux_resume_one_lwp.
12373 (status_callback, running_callback): Use lwp_status_pending_p.
12374 (lwp_status_pending_p): New function.
12375 (stop_and_resume_callback): Use lwp_status_pending_p.
12376 (linux_nat_filter_event): Use linux_resume_one_lwp.
12377 (linux_nat_wait_1): Always use status_callback to look for an LWP
12378 with a pending status. Use linux_resume_one_lwp.
12379 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
12380 linux_resume_one_lwp.
12381
12382 2015-01-09 Pedro Alves <palves@redhat.com>
12383
12384 * breakpoint.c (bp_location_inserted_here_p): New function,
12385 factored out from ...
12386 (breakpoint_inserted_here_p): ... here. Use
12387 ALL_BP_LOCATIONS_AT_ADDR.
12388 (software_breakpoint_inserted_here_p): Use
12389 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
12390
12391 2014-01-09 Pedro Alves <palves@redhat.com>
12392
12393 Skip enabling event reporting if the kernel supports
12394 PTRACE_EVENT_CLONE.
12395 * linux-thread-db.c: Include "nat/linux-ptrace.h".
12396 (thread_db_use_events): New function.
12397 (try_thread_db_load_1): Check thread_db_use_events before enabling
12398 event reporting.
12399 (update_thread_state): New function.
12400 (attach_thread): Use it. Check thread_db_use_events before
12401 enabling event reporting.
12402 (thread_db_detach): Check thread_db_use_events before disabling
12403 event reporting.
12404 (find_new_threads_callback): Check thread_db_use_events before
12405 enabling event reporting. Update the thread's state if not using
12406 libthread_db events.
12407
12408 2015-01-09 Pedro Alves <palves@redhat.com>
12409
12410 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
12411 about to wait for is > 0.
12412 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
12413 the kernel thread ID is -1.
12414
12415 2015-01-09 Pedro Alves <palves@redhat.com>
12416
12417 * linux-nat.c (attach_proc_task_lwp_callback): New function.
12418 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
12419 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
12420 ptrace option flags.
12421 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
12422 field.
12423 * nat/linux-procfs.c: Include <dirent.h>.
12424 (linux_proc_get_int): New parameter "warn". Handle it.
12425 (linux_proc_get_tgid): Adjust.
12426 (linux_proc_get_tracerpid): Rename to ...
12427 (linux_proc_get_tracerpid_nowarn): ... this.
12428 (linux_proc_pid_get_state): New function, factored out from
12429 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
12430 and handle it.
12431 (linux_proc_pid_is_gone): New function.
12432 (linux_proc_pid_is_stopped): Adjust.
12433 (linux_proc_pid_is_zombie_maybe_warn)
12434 (linux_proc_pid_is_zombie_nowarn): New functions.
12435 (linux_proc_pid_is_zombie): Use
12436 linux_proc_pid_is_zombie_maybe_warn.
12437 (linux_proc_attach_tgid_threads): New function.
12438 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
12439 (linux_proc_get_tracerpid): Rename to ...
12440 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
12441 (linux_proc_pid_is_gone): New declaration.
12442 (linux_proc_pid_is_zombie): Update comment.
12443 (linux_proc_pid_is_zombie_nowarn): New declaration.
12444 (linux_proc_attach_lwp_func): New typedef.
12445 (linux_proc_attach_tgid_threads): New declaration.
12446 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
12447 use nowarn functions.
12448 (linux_ptrace_attach_fail_reason_string): Move here from
12449 gdbserver/linux-low.c and rename.
12450 (ptrace_supports_feature): If the current ptrace options are not
12451 known yet, check them now, instead of asserting.
12452 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
12453 Declare.
12454
12455 2015-01-09 Pedro Alves <palves@redhat.com>
12456
12457 * linux-thread-db.c (thread_db_find_new_threads_silently)
12458 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
12459 (find_new_threads_once): Print debug output on gdb_stdlog.
12460
12461 2015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
12462 Pedro Alves <palves@redhat.com>
12463
12464 * compile/compile.c: Include "gdb_wait.h".
12465 (do_rmdir): Check return value, and free 'zap'.
12466
12467 2015-01-08 Pedro Alves <palves@redhat.com>
12468 Yao Qi <yao@codesourcery.com>
12469
12470 * dwarf2loc.c (indirect_pieced_value): Don't call
12471 gdb_sign_extend. Call extract_signed_integer instead.
12472 * utils.c (gdb_sign_extend): Remove.
12473 * utils.h (gdb_sign_extend): Remove declaration.
12474
12475 2015-01-07 Pierre Muller <muller@sourceware.org>
12476
12477 PR symtab/17811
12478 * stabsread.c (define_symbol): Set language for C++ special symbols.
12479
12480 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
12481
12482 * inflow.c (initial_gdb_ttystate): Tweak comment.
12483
12484 2015-01-07 Joel Brobecker <brobecker@adacore.com>
12485
12486 * inflow.c (set_initial_gdb_ttystate): Add empty line after
12487 comment documenting function.
12488
12489 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
12490
12491 * terminal.h (set_initial_gdb_ttystate): Declare.
12492 * inflow.c (initial_gdb_ttystate): New static variable.
12493 (set_initial_gdb_ttystate): New setter.
12494 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
12495 instead of our current terminal state.
12496 * top.c (gdb_init): Call set_initial_gdb_ttystate.
12497
12498 2015-01-07 Joel Brobecker <brobecker@adacore.com>
12499
12500 * guile/scm-type.c (tyscm_array_1): Add comment.
12501 * python/py-type.c (typy_array_1): Add comment.
12502
12503 2015-01-06 Joel Brobecker <brobecker@adacore.com>
12504
12505 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
12506 error if N2 is equal to N1 - 1.
12507
12508 2015-01-06 Joel Brobecker <brobecker@adacore.com>
12509
12510 * python/py-type.c (typy_array_1): Do not raise negative-length
12511 exception if N2 is equal to N1 - 1.
12512
12513 2015-01-03 Doug Evans <xdje42@gmail.com>
12514
12515 * c-exp.y: Whitespace cleanup.
12516 (classify_inner_name): Remove extra ;.
12517
12518 2015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
12519
12520 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
12521 offset signed.
12522
12523 2015-01-02 Doug Evans <dje@google.com>
12524
12525 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
12526
12527 2015-01-02 Doug Evans <dje@google.com>
12528
12529 * symtab.h (struct symbol): Fix typo in comment.
12530
12531 2015-01-01 Joel Brobecker <brobecker@adacore.com>
12532
12533 Update year range in copyright notice of all files.
12534
12535 2015-01-01 Joel Brobecker <brobecker@adacore.com>
12536
12537 * top.c (print_gdb_version): Update copyright year to 2015.
12538
12539 2015-01-01 Joel Brobecker <brobecker@adacore.com>
12540
12541 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
12542
12543 For older changes see ChangeLog-2014.
12544 \f
12545 Local Variables:
12546 mode: change-log
12547 left-margin: 8
12548 fill-column: 74
12549 version-control: never
12550 coding: utf-8
12551 End: