Recognize a few more AIX XCOFF DWARF sections.
[binutils-gdb.git] / gdb / ChangeLog
1 2015-10-13 David Edelsohn <dje.gcc@gmail.com>
2
3 * xcoffread.c (dwarf2_xcoff_names): Add .dwmac and .dwpbtyp.
4
5 2015-10-13 Pedro Alves <palves@redhat.com>
6
7 * ada-lang.c (ada_enum_name): Constify local.
8 * ada-typeprint.c (print_range_bound): Constify locals.
9 * c-varobj.c (c_describe_child): Likewise.
10 * cli/cli-setshow.c (do_set_command): Likewise.
11 * gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
12 * dwarf2read.c (find_file_and_directory): Likewise.
13 (anonymous_struct_prefix, dwarf2_name): Likewise.
14 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
15 * go-lang.c (unpack_mangled_go_symbol): Likewise.
16 * jv-typeprint.c (java_type_print_base): Likewise.
17 * ser-tcp.c (net_open): Likewise.
18 * symfile.c (deduce_language_from_filename): Likewise.
19 * symtab.c (gdb_mangle_name): Likewise.
20 * tui/tui-io.c (tui_redisplay_readline): Likewise.
21
22 2015-10-13 Pedro Alves <palves@redhat.com>
23
24 * infrun.c (restore_execution_direction): New function.
25 (fetch_inferior_event): Use it instead of
26 make_cleanup_restore_integer.
27 (execution_direction): Change type to enum
28 exec_direction_kind.
29 * infrun.h (execution_direction): Likewise.
30
31 2015-10-13 Pedro Alves <palves@redhat.com>
32
33 * ada-lang.c (ada_value_primitive_packed_val): Constify
34 locals. Use value_contents_writeable. Remove casts.
35
36 2015-10-13 Pedro Alves <palves@redhat.com>
37
38 * ada-lang.c (ada_value_primitive_packed_val): Add casts to malloc
39 and alloca calls.
40
41 2015-10-13 Simon Marchi <simon.marchi@polymtl.ca>
42
43 * lm32-tdep.c (lm32_push_dummy_call): Replace call to
44 write_memory with write_memory_unsigned_integer.
45
46 2015-10-13 Simon Marchi <thundersim@gmail.com>
47
48 * solib-dsbt.c (cmp_name): Constify arguments.
49 * solib-frv.c (cmp_name): Likewise.
50 * solib-svr4.c (svr4_create_solib_event_breakpoints): Likewise.
51 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Likewise.
52 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
53 (gdb_bfd_lookup_symbol): Likewise.
54 * solib.h (gdb_bfd_lookup_symbol): Likewise.
55 (gdb_bfd_lookup_symbol_from_symtab): Likewise.
56
57 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
58
59 * stack.c (parse_frame_specification): Remove message parameter,
60 replace with fixed string in function body, update function
61 comment.
62 (frame_info): Remove message to parse_frame_specification.
63 (select_frame_command): Likewise.
64
65 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
66
67 * stack.c (parse_frame_specification): Delete.
68 (parse_frame_specification_1): Rename to
69 parse_frame_specification.
70 (frame_info): Use parse_frame_specification.
71 (select_frame_command): Likewise.
72 (return_command): Use select_frame and print_stack_frame rather
73 than frame_command and select_frame_command.
74 (func_command): Use get_current_frame rather than
75 parse_frame_specification.
76
77 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
78
79 * stack.c (func_command): Return early when there is no ARG
80 string.
81
82 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
83
84 * stack.c: Include safe-ctype.h not ctype.h.
85 (parse_frame_specification): Use ISSPACE not isspace.
86 (backtrace_command): Use TOLOWER not tolower.
87
88 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
89
90 * mep-tdep.c (current_me_module): Add cast.
91 (mep_gdbarch_init): Likewise.
92
93 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
94
95 * m32c-tdep.c (m32c_move_reg_t): Replace with...
96 (m32c_write_reg_t): ...this and...
97 (m32c_read_reg_t): ...this.
98 (struct m32c_reg): Update types of read and write.
99 (m32c_raw_read): Change declaration type to m32c_read_reg_t and
100 adjust definition.
101 (m32c_banked_read): Likewise.
102 (m32c_sb_read): Likewise.
103 (m32c_part_read): Likewise.
104 (m32c_cat_read): Likewise.
105 (m32c_r3r2r1r0_read): Likewise.
106 (m32c_raw_write): Change declaration type to m32c_write_reg_t
107 and adjust definition.
108 (m32c_banked_write): Likewise.
109 (m32c_sb_write): Likewise.
110 (m32c_part_write): Likewise.
111 (m32c_cat_write): Likewise.
112 (m32c_r3r2r1r0_write): Likewise.
113
114 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
115
116 * aarch64-linux-tdep.c (aarch64_linux_syscall_record): Add cast.
117
118 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
119
120 * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Return
121 gdb_sys_no_syscall instead of -1.
122
123 2015-10-12 Yao Qi <yao.qi@linaro.org>
124
125 * NEWS: Mention the change.
126
127 2015-10-12 Yao Qi <yao.qi@linaro.org>
128
129 * arch/aarch64-insn.c (emit_load_store): Rename to ...
130 (aarch64_emit_load_store): ... it. All callers updated.
131
132 2015-10-12 Yao Qi <yao.qi@linaro.org>
133
134 * arch/aarch64-insn.c (emit_insn): Rename to ...
135 (aarch64_emit_insn): ... it. All callers updated.
136
137 2015-10-12 Yao Qi <yao.qi@linaro.org>
138
139 * aarch64-linux-tdep.c: Include arch-utils.h.
140 (aarch64_linux_init_abi): Call set_gdbarch_max_insn_length,
141 set_gdbarch_displaced_step_copy_insn,
142 set_gdbarch_displaced_step_fixup,
143 set_gdbarch_displaced_step_free_closure,
144 set_gdbarch_displaced_step_location,
145 and set_gdbarch_displaced_step_hw_singlestep.
146 * aarch64-tdep.c (struct displaced_step_closure): New.
147 (struct aarch64_displaced_step_data): New.
148 (aarch64_displaced_step_b): New function.
149 (aarch64_displaced_step_b_cond): Likewise.
150 (aarch64_register): Likewise.
151 (aarch64_displaced_step_cb): Likewise.
152 (aarch64_displaced_step_tb): Likewise.
153 (aarch64_displaced_step_adr): Likewise.
154 (aarch64_displaced_step_ldr_literal): Likewise.
155 (aarch64_displaced_step_others): Likewise.
156 (aarch64_displaced_step_copy_insn): Likewise.
157 (aarch64_displaced_step_fixup): Likewise.
158 (aarch64_displaced_step_hw_singlestep): Likewise.
159 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): New macro.
160 (aarch64_displaced_step_copy_insn): Declare.
161 (aarch64_displaced_step_fixup): Declare.
162 (aarch64_displaced_step_hw_singlestep): Declare.
163 * arch/aarch64-insn.c (emit_insn): Moved from
164 gdbserver/linux-aarch64-low.c.
165 (emit_load_store): Likewise.
166 * arch/aarch64-insn.h (enum aarch64_opcodes): Moved from
167 gdbserver/linux-aarch64-low.c.
168 (struct aarch64_register): Likewise.
169 (struct aarch64_memory_operand): Likewise.
170 (ENCODE): Likewise.
171 (can_encode_int32): New macro.
172 (emit_b, emit_bcond, emit_cb, emit_ldr, emit_ldrsw): Likewise.
173 (emit_tb, emit_nop): Likewise.
174 (emit_insn): Declare.
175 (emit_load_store): Declare.
176
177 2015-10-12 Yao Qi <yao.qi@linaro.org>
178
179 * arch/aarch64-insn.c (aarch64_decode_ldr_literal): Moved from
180 gdbserver/linux-aarch64-low.c.
181 (aarch64_relocate_instruction): Likewise.
182 * arch/aarch64-insn.h (aarch64_decode_ldr_literal): Declare.
183 (struct aarch64_insn_data): Moved from
184 gdbserver/linux-aarch64-low.c.
185 (struct aarch64_insn_visitor): Likewise.
186 (aarch64_relocate_instruction): Declare.
187
188 2015-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
189
190 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT>: If
191 EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute
192 to the returned value.
193
194 2015-10-09 Joel Brobecker <brobecker@adacore.com>
195
196 * ada-lang.c (ada_unpack_from_contents): Add guard that unpacked
197 is large enough for BIT_SIZE. Update function comment.
198
199 2015-10-09 Joel Brobecker <brobecker@adacore.com>
200
201 * ada-lang.c (ada_value_primitive_packed_val): Move
202 src_len variable to local block where used. Override
203 BIT_SIZE if bigger than size of resolved type.
204
205 2015-10-09 Joel Brobecker <brobecker@adacore.com>
206
207 * gdbtypes.h (is_scalar_type): Add extern declaration.
208 * gdbtypes.c (is_scalar_type): Make non-static.
209 * ada-lang.c (ada_value_primitive_packed_val): Use is_scalar_type
210 to compute IS_SCALAR instead of doing it ourselves.
211
212 2015-10-09 Joel Brobecker <brobecker@adacore.com>
213
214 * ada-lang.c (ada_value_primitive_packed_val): Rework handling
215 of case where TYPE is dynamic.
216
217 2015-10-09 Joel Brobecker <brobecker@adacore.com>
218
219 * ada-lang.c (ada_unpack_from_contents): New function,
220 extracted from ada_value_primitive_packed_val.
221 (ada_value_primitive_packed_val): Replace extracted out code
222 by call to ada_unpack_from_contents.
223
224 2015-10-09 Joel Brobecker <brobecker@adacore.com>
225
226 * ada-lang.c (ada_value_primitive_packed_val): Reorder local
227 variable declarations.
228
229 2015-10-09 Joel Brobecker <brobecker@adacore.com>
230
231 * ada-lang.c (ada_value_primitive_packed_val): Change the type
232 of local variables src and unpacked to "gdb_type *" instead of
233 "unsigned char *".
234
235 2015-10-09 Joel Brobecker <brobecker@adacore.com>
236
237 * ada-lang.c (ada_value_primitive_packed_val): Make the name
238 of various local variables more explicit and consistent.
239 No real code change otherwise.
240
241 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
242
243 * i386-tdep.h (struct gdbarch_tdep): Change type of
244 register_reggroup_p to gdbarch_register_reggroup_p_ftype.
245
246 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
247
248 * cris-tdep.c (struct instruction_environment): Change type of
249 byte_order to enum bfd_endian.
250
251 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
252
253 * arm-linux-tdep.c (arm_canonicalize_syscall): Add
254 enum gdb_syscall casts.
255
256 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
257
258 * aarch64-tdep.c (stack_item_t): Change type of data to gdb_byte*.
259 * arm-tdep.c (struct stack_item): Likewise.
260 (push_stack_item): Add gdb_byte* cast.
261 * avr-tdep.c (struct stack_item): Change type of data to gdb_byte*.
262 (push_stack_item): Add gdb_byte* cast.
263 * cli/cli-dump.c (dump_memory_to_file): Change type of buf to gdb_byte*
264 and add cast.
265 * cris-tdep.c (struct stack_item): Change type of data to gdb_byte*.
266 (push_stack_item): Add gdb_byte* cast.
267 * gcore.c (gcore_copy_callback): Change type of memhunk to gdb_byte* and
268 add cast.
269 * gdbtypes.h (print_scalar_formatted): Change type of first parameter to
270 gdb_byte*.
271 * h8300-tdep.c (h8300_extract_return_value): Change type of valbuf to
272 gdb_byte* and remove unnecessary cast.
273 (h8300h_extract_return_value): Likewise.
274 (h8300_store_return_value): Change type of valbuf to gdb_byte*.
275 (h8300h_store_return_value): Likewise.
276 * iq2000-tdep.c (iq2000_extract_return_value): Change type of valbuf to
277 gdb_byte* and remove unnecessary cast.
278 * jit.c (jit_reader_try_read_symtab): Change type of gdb_mem to gdb_byte*
279 and add cast.
280 * m32r-tdep.c (m32r_store_return_value): Change type of valbuf to
281 gdb_byte* and remove unnecessary cast.
282 (m32r_extract_return_value): Change type of dst to gdb_byte* and remove
283 valbuf.
284 * mep-tdep.c (mep_pseudo_cr32_read): Change type of buf to gdb_byte*.
285 (mep_pseudo_cr64_read): Likewise.
286 (mep_pseudo_csr_write): Likewise.
287 (mep_pseudo_cr32_write): Likewise.
288 (mep_pseudo_cr64_write): Likewise.
289 * mi/mi-main.c (mi_cmd_data_write_memory): Change type of buffer to
290 gdb_byte* and add cast.
291 * moxie-tdep.c (moxie_store_return_value): Change type of valbuf to
292 gdb_byte* and remove unnecessary cast.
293 (moxie_extract_return_value): Change type of dst to gdb_byte* and remove
294 valbuf.
295 * p-valprint.c (print_scalar_formatted): Change type of valaddr to
296 gdb_byte*.
297 * printcmd.c (void): Likewise.
298 * python/py-inferior.c (infpy_read_memory): Change type of buffer to
299 gdb_byte* and add cast.
300 (infpy_write_memory): Likewise.
301 (infpy_search_memory): Likewise.
302 * regcache.c (regcache_raw_write_signed): Change type of buf to gdb_byte*
303 and add cast.
304 (regcache_raw_write_unsigned): Likewise.
305 (regcache_cooked_write_signed): Likewise.
306 (regcache_cooked_write_unsigned): Likewise.
307 * sh64-tdep.c (h64_extract_return_value): Change type of valbuf to
308 gdb_byte*.
309
310 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
311
312 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Add cast.
313 * linux-tdep.c (linux_collect_regset_section_cb_data): Likewise.
314
315 2015-10-09 Eli Zaretskii <eliz@gnu.org>
316
317 * stack.c (print_stack_frame):
318 * utils.c (printchar): Fix typos in commentary.
319
320 2015-10-08 Iain Buclaw <ibuclaw@gdcproject.org>
321
322 * d-exp.y: (UnaryExpression): Support `type.sizeof' expressions.
323 (PostfixExpression): Support `expr.sizeof' expressions.
324 (PrimaryExpression): Support `typeof(expr)' expressions.
325
326 2015-10-08 Maciej W. Rozycki <macro@imgtec.com>
327
328 * MAINTAINERS: Update my email address.
329
330 2015-10-08 Markus Metzger <markus.t.metzger@intel.com>
331
332 * record-btrace.c (record_btrace_resume): Fix void return.
333
334 2015-10-07 Yao Qi <yao.qi@linaro.org>
335
336 * aarch64-tdep.c: Include opcode/aarch64.h.
337 (submask): Move it above.
338 (bit): Likewise.
339 (bits): Likewise.
340 (aarch64_software_single_step): Call aarch64_decode_insn.
341 Decode instruction by aarch64_inst instead of using
342 aarch64_decode_bcond and decode_masked_match.
343
344 2015-10-06 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
345
346 * cli/cli-dump.c (restore_command): Parse load_offset (bias) as address
347 only when the file is binary.
348
349 2015-10-02 James Bowman <james.bowman@ftdichip.com>
350
351 * ft32-tdep.c (ft32_analyze_prologue): Add function prolog
352 subroutine handling.
353
354 2015-10-01 Simon Marchi <simon.marchi@ericsson.com>
355
356 * common/vec.h (VEC_OP (T,cleanup)): Add pointer cast.
357
358 2015-09-30 Doug Evans <dje@google.com>
359
360 * dwarf2read.c (setup_type_unit_groups): Add comment.
361
362 2015-09-30 Pedro Alves <palves@redhat.com>
363
364 * linux-nat.c (linux_nat_always_non_stop_p): Always return 1.
365 * x86-linux-nat.c (x86_linux_always_non_stop_p): Delete.
366 (x86_linux_create_target): Don't install
367 x86_linux_always_non_stop_p.
368
369 2015-09-30 Don Breazeal <donb@codesourcery.com>
370
371 * remote.c (remote_parse_stop_reply): Call strprefix instead
372 of strncmp.
373
374 2015-09-30 Simon Marchi <simon.marchi@ericsson.com>
375
376 * gdbarch.sh (struct gdbarch_info): Change tdep_info's type to void *.
377 * gdbarch.h: Regenerate.
378 * i386-tdep.c (i386_gdbarch_init): Remove cast to
379 struct gdbarch_tdep_info *.
380 * mips-tdep.c (mips_gdbarch_init): Likewise.
381 * ppc-linux-tdep (ppu2spu_sniffer): Likewise.
382 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
383 * spu-multiarch.c (spu_gdbarch): Likewise.
384
385 2015-09-30 Kevin Buettner <kevinb@redhat.com>
386
387 * infcmd.c (finish_command_fsm_should_stop): Don't attempt to
388 record a NULL value.
389
390 2015-09-29 Kevin Buettner <kevinb@redhat.com>
391
392 * msp430-tdep.c (msp430_push_dummy_call): Treat reference, struct,
393 and union arguments the same as pointer arguments when determining
394 size of argument.
395
396 2015-09-29 James Bowman <james.bowman@ftdichip.com>
397
398 * ft32-tdep.c: #include "opcode/ft32.h".
399 Delete local macros IS_PUSH, PUSH_REG, IS_LINK, LINK_SIZE.
400 (ft32_analyze_prologue): Use FT32_* macros.
401
402 2015-09-28 Simon Marchi <simon.marchi@ericsson.com>
403
404 * cli/cli-script.c (read_next_line): Fix stdout -> stdin in
405 comment.
406
407 2015-09-28 Doug Evans <dje@google.com>
408
409 * MAINTAINERS: Add Iain Buclaw as D language maintainer.
410
411 2015-09-28 Doug Evans <dje@google.com>
412
413 * common/filestuff.c (make_cleanup_close): Update comment.
414
415 2015-09-26 Simon Marchi <simark@nova.polymtl.ca>
416
417 * btrace.c (parse_xml_btrace_block): Fix cast of
418 xml_find_attribute's return value.
419 * memory-map.c (memory_map_start_memory): Likewise.
420 * solib-svr4.c (library_list_start_library): Likewise.
421 * solib-target.c (library_list_start_segment): Likewise.
422 (library_list_start_section): Likewise.
423 * tracepoint.c (traceframe_info_start_memory): Likewise.
424
425 2015-09-26 Iain Buclaw <ibuclaw@gdcproject.org>
426
427 * d-namespace.c (d_lookup_symbol): New arg langdef.
428 All callers updated. Support looking up symbol as a primitive type.
429 (lookup_module_scope): New arg langdef. All callers updated.
430 Call d_lookup_symbol directly for simple bare symbols.
431
432 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
433
434 * macrocmd.c (print_macro_callback): Add cast(s).
435 * macrotab.c (macro_bcache_str): Likewise.
436 (new_macro_definition): Likewise.
437 * main.c (captured_main): Likewise.
438 * maint.c (print_bfd_section_info): Likewise.
439 * mdebugread.c (mdebug_build_psymtabs): Likewise.
440 (basic_type): Likewise.
441 * memattr.c (mem_region_cmp): Likewise.
442 * memory-map.c (memory_map_start_memory): Likewise.
443 (memory_map_end_memory): Likewise.
444 (memory_map_start_property): Likewise.
445 (memory_map_end_property): Likewise.
446 (clear_result): Likewise.
447 * memrange.c (compare_mem_ranges): Likewise.
448 * mep-tdep.c (mep_analyze_frame_prologue): Likewise.
449 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Likewise.
450 * mi/mi-console.c (mi_console_file_delete): Likewise.
451 (mi_console_file_fputs): Likewise.
452 (mi_console_raw_packet): Likewise.
453 (mi_console_file_flush): Likewise.
454 (mi_console_set_raw): Likewise.
455 * mi/mi-interp.c (mi_interpreter_resume): Likewise.
456 (mi_new_thread): Likewise.
457 (mi_thread_exit): Likewise.
458 (mi_record_changed): Likewise.
459 (mi_inferior_added): Likewise.
460 (mi_inferior_appeared): Likewise.
461 (mi_inferior_exit): Likewise.
462 (mi_inferior_removed): Likewise.
463 (mi_interp_data): Likewise.
464 (mi_on_normal_stop): Likewise.
465 (mi_traceframe_changed): Likewise.
466 (mi_tsv_created): Likewise.
467 (mi_tsv_deleted): Likewise.
468 (mi_tsv_modified): Likewise.
469 (mi_breakpoint_created): Likewise.
470 (mi_breakpoint_deleted): Likewise.
471 (mi_breakpoint_modified): Likewise.
472 (mi_output_running_pid): Likewise.
473 (mi_inferior_count): Likewise.
474 (mi_solib_loaded): Likewise.
475 (mi_solib_unloaded): Likewise.
476 (mi_command_param_changed): Likewise.
477 (mi_memory_changed): Likewise.
478 (report_initial_inferior): Likewise.
479 (mi_ui_out): Likewise.
480 (mi_set_logging): Likewise.
481 * mi/mi-main.c (collect_cores): Likewise.
482 (print_one_inferior): Likewise.
483 (free_vector_of_ints): Likewise.
484 (free_splay_tree): Likewise.
485 (mi_execute_command): Likewise.
486 * mi/mi-out.c (mi_table_body): Likewise.
487 (mi_table_end): Likewise.
488 (mi_table_header): Likewise.
489 (mi_begin): Likewise.
490 (mi_end): Likewise.
491 (mi_field_int): Likewise.
492 (mi_field_string): Likewise.
493 (mi_field_fmt): Likewise.
494 (mi_flush): Likewise.
495 (mi_redirect): Likewise.
496 (field_separator): Likewise.
497 (mi_open): Likewise.
498 (mi_close): Likewise.
499 (mi_out_buffered): Likewise.
500 (mi_out_rewind): Likewise.
501 (mi_out_put): Likewise.
502 (mi_version): Likewise.
503 (mi_out_data_dtor): Likewise.
504 * mi/mi-parse.c (mi_parse_cleanup): Likewise.
505 * microblaze-tdep.c (microblaze_frame_cache): Likewise.
506 * minidebug.c (lzma_open): Likewise.
507 (lzma_pread): Likewise.
508 (lzma_close): Likewise.
509 (lzma_stat): Likewise.
510 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
511 * mips-sde-tdep.c (mips_sde_frame_cache): Likewise.
512 (mips_sde_elf_osabi_sniff_abi_tag_sections): Likewise.
513 * mips-tdep.c (mips_insn16_frame_cache): Likewise.
514 (mips_micro_frame_cache): Likewise.
515 (mips_insn32_frame_cache): Likewise.
516 (mips_stub_frame_cache): Likewise.
517 (gdb_print_insn_mips): Likewise.
518 (value_of_mips_user_reg): Likewise.
519 (mips_gdbarch_init): Likewise.
520 * mips64obsd-tdep.c (mips64obsd_supply_gregset): Likewise.
521 * mipsnbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
522 (mipsnbsd_supply_gregset): Likewise.
523 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Likewise.
524 (am33_collect_gregset_method): Likewise.
525 (am33_collect_fpregset_method): Likewise.
526 * mn10300-tdep.c (mn10300_analyze_frame_prologue): Likewise.
527 * moxie-tdep.c (moxie_frame_cache): Likewise.
528 * msp430-tdep.c (msp430_get_opcode_byte): Likewise.
529 (msp430_analyze_frame_prologue): Likewise.
530 * mt-tdep.c (mt_frame_unwind_cache): Likewise.
531 * nios2-linux-tdep.c (nios2_supply_gregset): Likewise.
532 (nios2_collect_gregset): Likewise.
533 * nios2-tdep.c (nios2_frame_unwind_cache): Likewise.
534 (nios2_stub_frame_cache): Likewise.
535 * objc-lang.c (find_methods): Likewise.
536 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
537 (get_objfile_pspace_data): Likewise.
538 (get_objfile_bfd_data): Likewise.
539 (objfile_bfd_data_free): Likewise.
540 (add_to_objfile_sections): Likewise.
541 (do_free_objfile_cleanup): Likewise.
542 (resume_section_map_updates_cleanup): Likewise.
543 * opencl-lang.c (builtin_opencl_type): Likewise.
544 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
545 * osdata.c (osdata_start_osdata): Likewise.
546 (osdata_start_item): Likewise.
547 (osdata_start_column): Likewise.
548 (osdata_end_column): Likewise.
549 (clear_parsing_data): Likewise.
550 (osdata_free_cleanup): Likewise.
551 * parse.c (type_stack_cleanup): Likewise.
552 (exp_uses_objfile_iter): Likewise.
553 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
554 (ppc_linux_collect_gregset): Likewise.
555 (ppu2spu_prev_arch): Likewise.
556 (ppu2spu_this_id): Likewise.
557 (ppu2spu_prev_register): Likewise.
558 (ppu2spu_unwind_register): Likewise.
559 (ppu2spu_sniffer): Likewise.
560 (ppu2spu_dealloc_cache): Likewise.
561 (ppc_linux_init_abi): Likewise.
562 * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
563 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
564 * progspace.c (restore_program_space): Likewise.
565 * psymtab.c (find_pc_sect_psymtab): Likewise.
566 (compare_psymbols): Likewise.
567 (psymbol_bcache_full): Likewise.
568 (allocate_psymtab): Likewise.
569 (discard_psymtabs_upto): Likewise.
570 * python/py-block.c (set_block): Likewise.
571 (del_objfile_blocks): Likewise.
572 * python/py-breakpoint.c (build_bp_list): Likewise.
573 * python/py-inferior.c (inferior_to_inferior_object): Likewise.
574 (build_inferior_list): Likewise.
575 (py_free_inferior): Likewise.
576 * python/py-objfile.c (py_free_objfile): Likewise.
577 (objfile_to_objfile_object): Likewise.
578 * python/py-prettyprint.c (py_restore_tstate): Likewise.
579 * python/py-progspace.c (py_free_pspace): Likewise.
580 (pspace_to_pspace_object): Likewise.
581 * python/py-symbol.c (set_symbol): Likewise.
582 (del_objfile_symbols): Likewise.
583 * python/py-symtab.c (set_sal): Likewise.
584 (set_symtab): Likewise.
585 (del_objfile_symtab): Likewise.
586 (del_objfile_sal): Likewise.
587 * python/py-type.c (save_objfile_types): Likewise.
588 (set_type): Likewise.
589 * python/py-unwind.c (pyuw_prev_register): Likewise.
590 (pyuw_on_new_gdbarch): Likewise.
591 * python/py-utils.c (py_decref): Likewise.
592 (py_xdecref): Likewise.
593 (gdb_py_generic_dict): Likewise.
594 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data): Likewise.
595 (gdbpy_clone_xmethod_worker_data): Likewise.
596 (gdbpy_get_xmethod_arg_types): Likewise.
597 (gdbpy_get_xmethod_result_type): Likewise.
598 (gdbpy_invoke_xmethod): Likewise.
599 * python/python.c (gdbpy_apply_type_printers): Likewise.
600 (gdbpy_free_type_printers): Likewise.
601 * record-btrace.c (record_btrace_disable_callback): Likewise.
602 (bfcache_hash): Likewise.
603 (bfcache_eq): Likewise.
604 (btrace_get_frame_function): Likewise.
605 (record_btrace_frame_unwind_stop_reason): Likewise.
606 (record_btrace_frame_this_id): Likewise.
607 (record_btrace_frame_prev_register): Likewise.
608 (record_btrace_frame_dealloc_cache): Likewise.
609 * record-full.c (record_full_message_wrapper): Likewise.
610 (record_full_save_cleanups): Likewise.
611 * regcache.c (regcache_descr): Likewise.
612 (do_regcache_xfree): Likewise.
613 (do_regcache_invalidate): Likewise.
614 (do_cooked_read): Likewise.
615 (regcache_transfer_regset): Likewise.
616 * reggroups.c (reggroup_add): Likewise.
617 (reggroup_next): Likewise.
618 (reggroup_prev): Likewise.
619 * remote-fileio.c (do_remote_fileio_request): Likewise.
620 * remote-notif.c (remote_async_get_pending_events_handler): Likewise.
621 (do_notif_event_xfree): Likewise.
622 * remote.c (get_remote_arch_state): Likewise.
623 (remote_pspace_data_cleanup): Likewise.
624 (get_remote_exec_file): Likewise.
625 (set_pspace_remote_exec_file): Likewise.
626 (compare_pnums): Likewise.
627 (clear_threads_listing_context): Likewise.
628 (remote_newthread_step): Likewise.
629 (start_thread): Likewise.
630 (end_thread): Likewise.
631 (remove_child_of_pending_fork): Likewise.
632 (remove_stop_reply_for_inferior): Likewise.
633 (remove_stop_reply_of_remote_state): Likewise.
634 (remote_notif_remove_once_on_match): Likewise.
635 (stop_reply_match_ptid_and_ws): Likewise.
636 (kill_child_of_pending_fork): Likewise.
637 (register_remote_g_packet_guess): Likewise.
638 (remote_read_description_p): Likewise.
639 (remote_read_description): Likewise.
640 (free_actions_list_cleanup_wrapper): Likewise.
641 (remote_async_serial_handler): Likewise.
642 * rl78-tdep.c (rl78_get_opcode_byte): Likewise.
643 (rl78_analyze_frame_prologue): Likewise.
644 * rs6000-tdep.c (ppc_supply_gregset): Likewise.
645 (ppc_supply_fpregset): Likewise.
646 (ppc_supply_vsxregset): Likewise.
647 (ppc_supply_vrregset): Likewise.
648 (ppc_collect_gregset): Likewise.
649 (ppc_collect_fpregset): Likewise.
650 (ppc_collect_vsxregset): Likewise.
651 (ppc_collect_vrregset): Likewise.
652 (e500_move_ev_register): Likewise.
653 (do_regcache_raw_write): Likewise.
654 (rs6000_frame_cache): Likewise.
655 (rs6000_epilogue_frame_cache): Likewise.
656 (rs6000_gdbarch_init): Likewise.
657 * rx-tdep.c (rx_get_opcode_byte): Likewise.
658 (rx_analyze_frame_prologue): Likewise.
659 (rx_frame_type): Likewise.
660 (rx_frame_sniffer_common): Likewise.
661 * s390-linux-tdep.c (s390_check_for_saved): Likewise.
662 (s390_frame_unwind_cache): Likewise.
663 (s390_stub_frame_unwind_cache): Likewise.
664 (s390_sigtramp_frame_unwind_cache): Likewise.
665 * score-tdep.c (score_make_prologue_cache): Likewise.
666 * sentinel-frame.c (sentinel_frame_prev_register): Likewise.
667 (sentinel_frame_prev_arch): Likewise.
668 * ser-base.c (fd_event): Likewise.
669 (push_event): Likewise.
670 (ser_base_write): Likewise.
671 * ser-pipe.c (pipe_close): Likewise.
672 * serial.c (serial_write): Likewise.
673 * sh-tdep.c (sh_frame_cache): Likewise.
674 (sh_stub_this_id): Likewise.
675 * sh64-tdep.c (sh64_frame_cache): Likewise.
676 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
677 (library_list_start_library): Likewise.
678 (library_list_start_list): Likewise.
679 (solib_aix_free_library_list): Likewise.
680 * solib-darwin.c (get_darwin_info): Likewise.
681 * solib-dsbt.c (get_dsbt_info): Likewise.
682 * solib-spu.c (append_ocl_sos): Likewise.
683 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
684 (get_svr4_info): Likewise.
685 (library_list_start_library): Likewise.
686 (svr4_library_list_start_list): Likewise.
687 (hash_probe_and_action): Likewise.
688 (equal_probe_and_action): Likewise.
689 (svr4_update_solib_event_breakpoint): Likewise.
690 (set_solib_svr4_fetch_link_map_offsets): Likewise.
691 (svr4_fetch_link_map_offsets): Likewise.
692 (svr4_have_link_map_offsets): Likewise.
693 * solib-target.c (library_list_start_segment): Likewise.
694 (library_list_start_section): Likewise.
695 (library_list_start_library): Likewise.
696 (library_list_end_library): Likewise.
697 (library_list_start_list): Likewise.
698 (solib_target_free_library_list): Likewise.
699 * solib.c (solib_ops): Likewise.
700 (set_solib_ops): Likewise.
701 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
702 * sparc-tdep.c (sparc_frame_cache): Likewise.
703 (sparc32_frame_cache): Likewise.
704 (sparc32_supply_gregset): Likewise.
705 (sparc32_collect_gregset): Likewise.
706 (sparc32_supply_fpregset): Likewise.
707 (sparc32_collect_fpregset): Likewise.
708 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
709 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
710 (sparc64_collect_gregset): Likewise.
711 (sparc64_supply_fpregset): Likewise.
712 (sparc64_collect_fpregset): Likewise.
713 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_cache): Likewise.
714 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
715 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
716 (sparc64obsd_trapframe_cache): Likewise.
717 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Likewise.
718 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
719 * spu-multiarch.c (spu_gdbarch): Likewise.
720 * spu-tdep.c (spu_frame_unwind_cache): Likewise.
721 (spu2ppu_prev_arch): Likewise.
722 (spu2ppu_this_id): Likewise.
723 (spu2ppu_prev_register): Likewise.
724 (spu2ppu_dealloc_cache): Likewise.
725 (spu_dis_asm_print_address): Likewise.
726 (gdb_print_insn_spu): Likewise.
727 (spu_get_overlay_table): Likewise.
728 * stabsread.c (rs6000_builtin_type): Likewise.
729 * stack.c (do_print_variable_and_value): Likewise.
730 * stap-probe.c (get_stap_base_address_1): Likewise.
731 * symfile-debug.c (debug_qf_has_symbols): Likewise.
732 (debug_qf_find_last_source_symtab): Likewise.
733 (debug_qf_forget_cached_source_info): Likewise.
734 (debug_qf_map_symtabs_matching_filename): Likewise.
735 (debug_qf_lookup_symbol): Likewise.
736 (debug_qf_print_stats): Likewise.
737 (debug_qf_dump): Likewise.
738 (debug_qf_relocate): Likewise.
739 (debug_qf_expand_symtabs_for_function): Likewise.
740 (debug_qf_expand_all_symtabs): Likewise.
741 (debug_qf_expand_symtabs_with_fullname): Likewise.
742 (debug_qf_map_matching_symbols): Likewise.
743 (debug_qf_expand_symtabs_matching): Likewise.
744 (debug_qf_find_pc_sect_compunit_symtab): Likewise.
745 (debug_qf_map_symbol_filenames): Likewise.
746 (debug_sym_get_probes): Likewise.
747 (debug_sym_new_init): Likewise.
748 (debug_sym_init): Likewise.
749 (debug_sym_read): Likewise.
750 (debug_sym_read_psymbols): Likewise.
751 (debug_sym_finish): Likewise.
752 (debug_sym_offsets): Likewise.
753 (debug_sym_read_linetable): Likewise.
754 (debug_sym_relocate): Likewise.
755 (uninstall_symfile_debug_logging): Likewise.
756 * symfile-mem.c (symbol_file_add_from_memory_wrapper): Likewise.
757 * symfile.c (place_section): Likewise.
758 (add_section_size_callback): Likewise.
759 (load_progress): Likewise.
760 (load_section_callback): Likewise.
761 (clear_memory_write_data): Likewise.
762 (allocate_symtab): Likewise.
763 * symmisc.c (maintenance_expand_file_matcher): Likewise.
764 * symtab.c (lookup_symtab_callback): Likewise.
765 (hash_demangled_name_entry): Likewise.
766 (eq_demangled_name_entry): Likewise.
767 (get_symbol_cache): Likewise.
768 (symbol_cache_cleanup): Likewise.
769 (set_symbol_cache_size): Likewise.
770 (symbol_cache_flush): Likewise.
771 (maintenance_print_symbol_cache): Likewise.
772 (maintenance_print_symbol_cache_statistics): Likewise.
773 (delete_filename_seen_cache): Likewise.
774 (output_partial_symbol_filename): Likewise.
775 (search_symbols_file_matches): Likewise.
776 (search_symbols_name_matches): Likewise.
777 (do_free_completion_list): Likewise.
778 (maybe_add_partial_symtab_filename): Likewise.
779 (get_main_info): Likewise.
780 (main_info_cleanup): Likewise.
781 * target-dcache.c (target_dcache_cleanup): Likewise.
782 (target_dcache_init_p): Likewise.
783 (target_dcache_invalidate): Likewise.
784 (target_dcache_get): Likewise.
785 (target_dcache_get_or_init): Likewise.
786 * target-descriptions.c (target_find_description): Likewise.
787 (tdesc_find_type): Likewise.
788 (tdesc_data_cleanup): Likewise.
789 (tdesc_find_arch_register): Likewise.
790 (tdesc_register_name): Likewise.
791 (tdesc_register_type): Likewise.
792 (tdesc_register_reggroup_p): Likewise.
793 (set_tdesc_pseudo_register_name): Likewise.
794 (set_tdesc_pseudo_register_type): Likewise.
795 (set_tdesc_pseudo_register_reggroup_p): Likewise.
796 (tdesc_use_registers): Likewise.
797 (free_target_description): Likewise.
798 * target-memory.c (compare_block_starting_address): Likewise.
799 (cleanup_request_data): Likewise.
800 (cleanup_write_requests_vector): Likewise.
801 * target.c (open_target): Likewise.
802 (cleanup_restore_target_terminal): Likewise.
803 (free_memory_read_result_vector): Likewise.
804 * thread.c (disable_thread_stack_temporaries): Likewise.
805 (finish_thread_state_cleanup): Likewise.
806 (do_restore_current_thread_cleanup): Likewise.
807 (restore_current_thread_cleanup_dtor): Likewise.
808 (set_thread_refcount): Likewise.
809 (tp_array_compar): Likewise.
810 (do_captured_thread_select): Likewise.
811 * tic6x-tdep.c (tic6x_frame_unwind_cache): Likewise.
812 (tic6x_stub_this_id): Likewise.
813 * tilegx-tdep.c (tilegx_frame_cache): Likewise.
814 * top.c (do_restore_instream_cleanup): Likewise.
815 (gdb_readline_wrapper_cleanup): Likewise.
816 (kill_or_detach): Likewise.
817 (print_inferior_quit_action): Likewise.
818 * tracefile-tfile.c (match_blocktype): Likewise.
819 (build_traceframe_info): Likewise.
820 * tracefile.c (trace_file_writer_xfree): Likewise.
821 * tracepoint.c (memrange_cmp): Likewise.
822 (do_collect_symbol): Likewise.
823 (do_clear_collection_list): Likewise.
824 (do_restore_current_traceframe_cleanup): Likewise.
825 (restore_current_traceframe_cleanup_dtor): Likewise.
826 (free_current_marker): Likewise.
827 (traceframe_info_start_memory): Likewise.
828 (traceframe_info_start_tvar): Likewise.
829 (free_result): Likewise.
830 * tramp-frame.c (tramp_frame_cache): Likewise.
831 * tui/tui-file.c (tui_file_delete): Likewise.
832 (tui_fileopen): Likewise.
833 (tui_sfileopen): Likewise.
834 (tui_file_isatty): Likewise.
835 (tui_file_rewind): Likewise.
836 (tui_file_put): Likewise.
837 (tui_file_fputs): Likewise.
838 (tui_file_get_strbuf): Likewise.
839 (tui_file_adjust_strbuf): Likewise.
840 (tui_file_flush): Likewise.
841 * tui/tui-layout.c (make_command_window): Likewise.
842 (make_data_window): Likewise.
843 (show_source_disasm_command): Likewise.
844 (show_data): Likewise.
845 (make_source_or_disasm_window): Likewise.
846 (show_source_or_disasm_and_command): Likewise.
847 * tui/tui-out.c (tui_field_int): Likewise.
848 (tui_field_string): Likewise.
849 (tui_field_fmt): Likewise.
850 (tui_text): Likewise.
851 * typeprint.c (hash_typedef_field): Likewise.
852 (eq_typedef_field): Likewise.
853 (do_free_typedef_hash): Likewise.
854 (copy_typedef_hash_element): Likewise.
855 (do_free_global_table): Likewise.
856 (find_global_typedef): Likewise.
857 (find_typedef_in_hash): Likewise.
858 * ui-file.c (ui_file_write_for_put): Likewise.
859 (do_ui_file_xstrdup): Likewise.
860 (mem_file_delete): Likewise.
861 (mem_file_rewind): Likewise.
862 (mem_file_put): Likewise.
863 (mem_file_write): Likewise.
864 (stdio_file_delete): Likewise.
865 (stdio_file_flush): Likewise.
866 (stdio_file_read): Likewise.
867 (stdio_file_write): Likewise.
868 (stdio_file_write_async_safe): Likewise.
869 (stdio_file_fputs): Likewise.
870 (stdio_file_isatty): Likewise.
871 (stdio_file_fseek): Likewise.
872 (tee_file_delete): Likewise.
873 (tee_file_flush): Likewise.
874 (tee_file_write): Likewise.
875 (tee_file_fputs): Likewise.
876 (tee_file_isatty): Likewise.
877 * ui-out.c (do_cleanup_table_end): Likewise.
878 (do_cleanup_end): Likewise.
879 * user-regs.c (user_reg_add): Likewise.
880 (user_reg_map_name_to_regnum): Likewise.
881 (usernum_to_user_reg): Likewise.
882 (maintenance_print_user_registers): Likewise.
883 * utils.c (do_bfd_close_cleanup): Likewise.
884 (do_fclose_cleanup): Likewise.
885 (do_obstack_free): Likewise.
886 (do_ui_file_delete): Likewise.
887 (do_ui_out_redirect_pop): Likewise.
888 (do_free_section_addr_info): Likewise.
889 (restore_integer): Likewise.
890 (do_unpush_target): Likewise.
891 (do_htab_delete_cleanup): Likewise.
892 (do_restore_ui_file): Likewise.
893 (do_value_free): Likewise.
894 (do_free_so): Likewise.
895 (free_current_contents): Likewise.
896 (do_regfree_cleanup): Likewise.
897 (core_addr_hash): Likewise.
898 (core_addr_eq): Likewise.
899 (do_free_char_ptr_vec): Likewise.
900 * v850-tdep.c (v850_frame_cache): Likewise.
901 * varobj.c (do_free_variable_cleanup): Likewise.
902 * vax-tdep.c (vax_supply_gregset): Likewise.
903 (vax_frame_cache): Likewise.
904 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_cache): Likewise.
905 * xml-support.c (gdb_xml_body_text): Likewise.
906 (gdb_xml_values_cleanup): Likewise.
907 (gdb_xml_start_element): Likewise.
908 (gdb_xml_start_element_wrapper): Likewise.
909 (gdb_xml_end_element): Likewise.
910 (gdb_xml_end_element_wrapper): Likewise.
911 (gdb_xml_cleanup): Likewise.
912 (gdb_xml_fetch_external_entity): Likewise.
913 (gdb_xml_parse_attr_enum): Likewise.
914 (xinclude_start_include): Likewise.
915 (xinclude_end_include): Likewise.
916 (xml_xinclude_default): Likewise.
917 (xml_xinclude_start_doctype): Likewise.
918 (xml_xinclude_end_doctype): Likewise.
919 (xml_xinclude_cleanup): Likewise.
920 (xml_fetch_content_from_file): Likewise.
921 * xml-syscall.c (free_syscalls_info): Likewise.
922 (syscall_start_syscall): Likewise.
923 * xml-tdesc.c (tdesc_end_arch): Likewise.
924 (tdesc_end_osabi): Likewise.
925 (tdesc_end_compatible): Likewise.
926 (tdesc_start_target): Likewise.
927 (tdesc_start_feature): Likewise.
928 (tdesc_start_reg): Likewise.
929 (tdesc_start_union): Likewise.
930 (tdesc_start_struct): Likewise.
931 (tdesc_start_flags): Likewise.
932 (tdesc_start_field): Likewise.
933 (tdesc_start_vector): Likewise.
934 (fetch_available_features_from_target): Likewise.
935 * xstormy16-tdep.c (xstormy16_frame_cache): Likewise.
936 * xtensa-tdep.c (xtensa_supply_gregset): Likewise.
937 (xtensa_frame_cache): Likewise.
938 (xtensa_frame_prev_register): Likewise.
939 (xtensa_extract_return_value): Likewise.
940
941 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
942
943 * aarch64-tdep.c (aarch64_make_prologue_cache): Add cast(s).
944 (aarch64_make_stub_cache): Likewise.
945 (value_of_aarch64_user_reg): Likewise.
946 * ada-lang.c (ada_inferior_data_cleanup): Likewise.
947 (get_ada_inferior_data): Likewise.
948 (get_ada_pspace_data): Likewise.
949 (ada_pspace_data_cleanup): Likewise.
950 (ada_complete_symbol_matcher): Likewise.
951 (ada_exc_search_name_matches): Likewise.
952 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
953 (get_ada_tasks_inferior_data): Likewise.
954 * addrmap.c (addrmap_mutable_foreach_worker): Likewise.
955 (splay_obstack_alloc): Likewise.
956 (splay_obstack_free): Likewise.
957 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Likewise.
958 (alpha_linux_collect_gregset): Likewise.
959 (alpha_linux_supply_fpregset): Likewise.
960 (alpha_linux_collect_fpregset): Likewise.
961 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
962 * alpha-tdep.c (alpha_lds): Likewise.
963 (alpha_sts): Likewise.
964 (alpha_sigtramp_frame_unwind_cache): Likewise.
965 (alpha_heuristic_frame_unwind_cache): Likewise.
966 (alpha_supply_int_regs): Likewise.
967 (alpha_fill_int_regs): Likewise.
968 (alpha_supply_fp_regs): Likewise.
969 (alpha_fill_fp_regs): Likewise.
970 * alphanbsd-tdep.c (alphanbsd_supply_fpregset): Likewise.
971 (alphanbsd_aout_supply_gregset): Likewise.
972 (alphanbsd_supply_gregset): Likewise.
973 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
974 (amd64_x32_linux_init_abi): Likewise.
975 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
976 (amd64_collect_native_gregset): Likewise.
977 * amd64-tdep.c (amd64_frame_cache): Likewise.
978 (amd64_sigtramp_frame_cache): Likewise.
979 (amd64_epilogue_frame_cache): Likewise.
980 (amd64_supply_fxsave): Likewise.
981 (amd64_supply_xsave): Likewise.
982 (amd64_collect_fxsave): Likewise.
983 (amd64_collect_xsave): Likewise.
984 * amd64-windows-tdep.c (amd64_windows_frame_cache): Likewise.
985 * amd64obsd-tdep.c (amd64obsd_trapframe_cache): Likewise.
986 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
987 (arm_linux_collect_gregset): Likewise.
988 (arm_linux_supply_nwfpe): Likewise.
989 (arm_linux_collect_nwfpe): Likewise.
990 (arm_linux_supply_vfp): Likewise.
991 (arm_linux_collect_vfp): Likewise.
992 * arm-tdep.c (arm_find_mapping_symbol): Likewise.
993 (arm_prologue_unwind_stop_reason): Likewise.
994 (arm_prologue_this_id): Likewise.
995 (arm_prologue_prev_register): Likewise.
996 (arm_exidx_data_free): Likewise.
997 (arm_find_exidx_entry): Likewise.
998 (arm_stub_this_id): Likewise.
999 (arm_m_exception_this_id): Likewise.
1000 (arm_m_exception_prev_register): Likewise.
1001 (arm_normal_frame_base): Likewise.
1002 (gdb_print_insn_arm): Likewise.
1003 (arm_objfile_data_free): Likewise.
1004 (arm_record_special_symbol): Likewise.
1005 (value_of_arm_user_reg): Likewise.
1006 * armbsd-tdep.c (armbsd_supply_fpregset): Likewise.
1007 (armbsd_supply_gregset): Likewise.
1008 * auto-load.c (auto_load_pspace_data_cleanup): Likewise.
1009 (get_auto_load_pspace_data): Likewise.
1010 (hash_loaded_script_entry): Likewise.
1011 (eq_loaded_script_entry): Likewise.
1012 (clear_section_scripts): Likewise.
1013 (collect_matching_scripts): Likewise.
1014 * auxv.c (auxv_inferior_data_cleanup): Likewise.
1015 (get_auxv_inferior_data): Likewise.
1016 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
1017 * ax-general.c (do_free_agent_expr_cleanup): Likewise.
1018 * bfd-target.c (target_bfd_xfer_partial): Likewise.
1019 (target_bfd_xclose): Likewise.
1020 (target_bfd_get_section_table): Likewise.
1021 * bfin-tdep.c (bfin_frame_cache): Likewise.
1022 * block.c (find_block_in_blockvector): Likewise.
1023 (call_site_for_pc): Likewise.
1024 (block_find_non_opaque_type_preferred): Likewise.
1025 * break-catch-sig.c (signal_catchpoint_insert_location): Likewise.
1026 (signal_catchpoint_remove_location): Likewise.
1027 (signal_catchpoint_breakpoint_hit): Likewise.
1028 (signal_catchpoint_print_one): Likewise.
1029 (signal_catchpoint_print_mention): Likewise.
1030 (signal_catchpoint_print_recreate): Likewise.
1031 * break-catch-syscall.c (get_catch_syscall_inferior_data): Likewise.
1032 * breakpoint.c (do_cleanup_counted_command_line): Likewise.
1033 (bp_location_compare_addrs): Likewise.
1034 (get_first_locp_gte_addr): Likewise.
1035 (check_tracepoint_command): Likewise.
1036 (do_map_commands_command): Likewise.
1037 (get_breakpoint_objfile_data): Likewise.
1038 (free_breakpoint_probes): Likewise.
1039 (do_captured_breakpoint_query): Likewise.
1040 (compare_breakpoints): Likewise.
1041 (bp_location_compare): Likewise.
1042 (bpstat_remove_breakpoint_callback): Likewise.
1043 (do_delete_breakpoint_cleanup): Likewise.
1044 * bsd-uthread.c (bsd_uthread_set_supply_uthread): Likewise.
1045 (bsd_uthread_set_collect_uthread): Likewise.
1046 (bsd_uthread_activate): Likewise.
1047 (bsd_uthread_fetch_registers): Likewise.
1048 (bsd_uthread_store_registers): Likewise.
1049 * btrace.c (check_xml_btrace_version): Likewise.
1050 (parse_xml_btrace_block): Likewise.
1051 (parse_xml_btrace_pt_config_cpu): Likewise.
1052 (parse_xml_btrace_pt_raw): Likewise.
1053 (parse_xml_btrace_pt): Likewise.
1054 (parse_xml_btrace_conf_bts): Likewise.
1055 (parse_xml_btrace_conf_pt): Likewise.
1056 (do_btrace_data_cleanup): Likewise.
1057 * c-typeprint.c (find_typedef_for_canonicalize): Likewise.
1058 * charset.c (cleanup_iconv): Likewise.
1059 (do_cleanup_iterator): Likewise.
1060 * cli-out.c (cli_uiout_dtor): Likewise.
1061 (cli_table_begin): Likewise.
1062 (cli_table_body): Likewise.
1063 (cli_table_end): Likewise.
1064 (cli_table_header): Likewise.
1065 (cli_begin): Likewise.
1066 (cli_end): Likewise.
1067 (cli_field_int): Likewise.
1068 (cli_field_skip): Likewise.
1069 (cli_field_string): Likewise.
1070 (cli_field_fmt): Likewise.
1071 (cli_spaces): Likewise.
1072 (cli_text): Likewise.
1073 (cli_message): Likewise.
1074 (cli_wrap_hint): Likewise.
1075 (cli_flush): Likewise.
1076 (cli_redirect): Likewise.
1077 (out_field_fmt): Likewise.
1078 (field_separator): Likewise.
1079 (cli_out_set_stream): Likewise.
1080 * cli/cli-cmds.c (compare_symtabs): Likewise.
1081 * cli/cli-dump.c (call_dump_func): Likewise.
1082 (restore_section_callback): Likewise.
1083 * cli/cli-script.c (clear_hook_in_cleanup): Likewise.
1084 (do_restore_user_call_depth): Likewise.
1085 (do_free_command_lines_cleanup): Likewise.
1086 * coff-pe-read.c (get_section_vmas): Likewise.
1087 (pe_as16): Likewise.
1088 (pe_as32): Likewise.
1089 * coffread.c (coff_symfile_read): Likewise.
1090 * common/agent.c (agent_look_up_symbols): Likewise.
1091 * common/filestuff.c (do_close_cleanup): Likewise.
1092 * common/format.c (free_format_pieces_cleanup): Likewise.
1093 * common/vec.c (vec_o_reserve): Likewise.
1094 * compile/compile-c-support.c (print_one_macro): Likewise.
1095 * compile/compile-c-symbols.c (hash_symbol_error): Likewise.
1096 (eq_symbol_error): Likewise.
1097 (del_symbol_error): Likewise.
1098 (error_symbol_once): Likewise.
1099 (gcc_convert_symbol): Likewise.
1100 (gcc_symbol_address): Likewise.
1101 (hash_symname): Likewise.
1102 (eq_symname): Likewise.
1103 * compile/compile-c-types.c (hash_type_map_instance): Likewise.
1104 (eq_type_map_instance): Likewise.
1105 (insert_type): Likewise.
1106 (convert_type): Likewise.
1107 * compile/compile-object-load.c (munmap_listp_free_cleanup): Likewise.
1108 (setup_sections): Likewise.
1109 (link_hash_table_free): Likewise.
1110 (copy_sections): Likewise.
1111 * compile/compile-object-run.c (do_module_cleanup): Likewise.
1112 * compile/compile.c (compile_print_value): Likewise.
1113 (do_rmdir): Likewise.
1114 (cleanup_compile_instance): Likewise.
1115 (cleanup_unlink_file): Likewise.
1116 * completer.c (free_completion_tracker): Likewise.
1117 * corelow.c (add_to_spuid_list): Likewise.
1118 * cp-namespace.c (reset_directive_searched): Likewise.
1119 * cp-support.c (reset_directive_searched): Likewise.
1120 * cris-tdep.c (cris_sigtramp_frame_unwind_cache): Likewise.
1121 (cris_frame_unwind_cache): Likewise.
1122 * d-lang.c (builtin_d_type): Likewise.
1123 * d-namespace.c (reset_directive_searched): Likewise.
1124 * dbxread.c (dbx_free_symfile_info): Likewise.
1125 (do_free_bincl_list_cleanup): Likewise.
1126 * disasm.c (hash_dis_line_entry): Likewise.
1127 (eq_dis_line_entry): Likewise.
1128 (dis_asm_print_address): Likewise.
1129 (fprintf_disasm): Likewise.
1130 (do_ui_file_delete): Likewise.
1131 * doublest.c (convert_floatformat_to_doublest): Likewise.
1132 * dummy-frame.c (pop_dummy_frame_bpt): Likewise.
1133 (dummy_frame_prev_register): Likewise.
1134 (dummy_frame_this_id): Likewise.
1135 * dwarf2-frame-tailcall.c (cache_hash): Likewise.
1136 (cache_eq): Likewise.
1137 (cache_find): Likewise.
1138 (tailcall_frame_this_id): Likewise.
1139 (dwarf2_tailcall_prev_register_first): Likewise.
1140 (tailcall_frame_prev_register): Likewise.
1141 (tailcall_frame_dealloc_cache): Likewise.
1142 (tailcall_frame_prev_arch): Likewise.
1143 * dwarf2-frame.c (dwarf2_frame_state_free): Likewise.
1144 (dwarf2_frame_set_init_reg): Likewise.
1145 (dwarf2_frame_init_reg): Likewise.
1146 (dwarf2_frame_set_signal_frame_p): Likewise.
1147 (dwarf2_frame_signal_frame_p): Likewise.
1148 (dwarf2_frame_set_adjust_regnum): Likewise.
1149 (dwarf2_frame_adjust_regnum): Likewise.
1150 (clear_pointer_cleanup): Likewise.
1151 (dwarf2_frame_cache): Likewise.
1152 (find_cie): Likewise.
1153 (dwarf2_frame_find_fde): Likewise.
1154 * dwarf2expr.c (dwarf_expr_address_type): Likewise.
1155 (free_dwarf_expr_context_cleanup): Likewise.
1156 * dwarf2loc.c (locexpr_find_frame_base_location): Likewise.
1157 (locexpr_get_frame_base): Likewise.
1158 (loclist_find_frame_base_location): Likewise.
1159 (loclist_get_frame_base): Likewise.
1160 (dwarf_expr_dwarf_call): Likewise.
1161 (dwarf_expr_get_base_type): Likewise.
1162 (dwarf_expr_push_dwarf_reg_entry_value): Likewise.
1163 (dwarf_expr_get_obj_addr): Likewise.
1164 (entry_data_value_coerce_ref): Likewise.
1165 (entry_data_value_copy_closure): Likewise.
1166 (entry_data_value_free_closure): Likewise.
1167 (get_frame_address_in_block_wrapper): Likewise.
1168 (dwarf2_evaluate_property): Likewise.
1169 (dwarf2_compile_property_to_c): Likewise.
1170 (needs_frame_read_addr_from_reg): Likewise.
1171 (needs_frame_get_reg_value): Likewise.
1172 (needs_frame_frame_base): Likewise.
1173 (needs_frame_frame_cfa): Likewise.
1174 (needs_frame_tls_address): Likewise.
1175 (needs_frame_dwarf_call): Likewise.
1176 (needs_dwarf_reg_entry_value): Likewise.
1177 (get_ax_pc): Likewise.
1178 (locexpr_read_variable): Likewise.
1179 (locexpr_read_variable_at_entry): Likewise.
1180 (locexpr_read_needs_frame): Likewise.
1181 (locexpr_describe_location): Likewise.
1182 (locexpr_tracepoint_var_ref): Likewise.
1183 (locexpr_generate_c_location): Likewise.
1184 (loclist_read_variable): Likewise.
1185 (loclist_read_variable_at_entry): Likewise.
1186 (loclist_describe_location): Likewise.
1187 (loclist_tracepoint_var_ref): Likewise.
1188 (loclist_generate_c_location): Likewise.
1189 * dwarf2read.c (line_header_hash_voidp): Likewise.
1190 (line_header_eq_voidp): Likewise.
1191 (dwarf2_has_info): Likewise.
1192 (dwarf2_get_section_info): Likewise.
1193 (locate_dwz_sections): Likewise.
1194 (hash_file_name_entry): Likewise.
1195 (eq_file_name_entry): Likewise.
1196 (delete_file_name_entry): Likewise.
1197 (dw2_setup): Likewise.
1198 (dw2_get_file_names_reader): Likewise.
1199 (dw2_find_pc_sect_compunit_symtab): Likewise.
1200 (hash_signatured_type): Likewise.
1201 (eq_signatured_type): Likewise.
1202 (add_signatured_type_cu_to_table): Likewise.
1203 (create_debug_types_hash_table): Likewise.
1204 (lookup_dwo_signatured_type): Likewise.
1205 (lookup_dwp_signatured_type): Likewise.
1206 (lookup_signatured_type): Likewise.
1207 (hash_type_unit_group): Likewise.
1208 (eq_type_unit_group): Likewise.
1209 (get_type_unit_group): Likewise.
1210 (process_psymtab_comp_unit_reader): Likewise.
1211 (sort_tu_by_abbrev_offset): Likewise.
1212 (process_skeletonless_type_unit): Likewise.
1213 (psymtabs_addrmap_cleanup): Likewise.
1214 (dwarf2_read_symtab): Likewise.
1215 (psymtab_to_symtab_1): Likewise.
1216 (die_hash): Likewise.
1217 (die_eq): Likewise.
1218 (load_full_comp_unit_reader): Likewise.
1219 (reset_die_in_process): Likewise.
1220 (free_cu_line_header): Likewise.
1221 (handle_DW_AT_stmt_list): Likewise.
1222 (hash_dwo_file): Likewise.
1223 (eq_dwo_file): Likewise.
1224 (hash_dwo_unit): Likewise.
1225 (eq_dwo_unit): Likewise.
1226 (create_dwo_cu_reader): Likewise.
1227 (create_dwo_unit_in_dwp_v1): Likewise.
1228 (create_dwo_unit_in_dwp_v2): Likewise.
1229 (lookup_dwo_unit_in_dwp): Likewise.
1230 (dwarf2_locate_dwo_sections): Likewise.
1231 (dwarf2_locate_common_dwp_sections): Likewise.
1232 (dwarf2_locate_v2_dwp_sections): Likewise.
1233 (hash_dwp_loaded_cutus): Likewise.
1234 (eq_dwp_loaded_cutus): Likewise.
1235 (lookup_dwo_cutu): Likewise.
1236 (abbrev_table_free_cleanup): Likewise.
1237 (dwarf2_free_abbrev_table): Likewise.
1238 (find_partial_die_in_comp_unit): Likewise.
1239 (free_line_header_voidp): Likewise.
1240 (follow_die_offset): Likewise.
1241 (follow_die_sig_1): Likewise.
1242 (free_heap_comp_unit): Likewise.
1243 (free_stack_comp_unit): Likewise.
1244 (dwarf2_free_objfile): Likewise.
1245 (per_cu_offset_and_type_hash): Likewise.
1246 (per_cu_offset_and_type_eq): Likewise.
1247 (get_die_type_at_offset): Likewise.
1248 (partial_die_hash): Likewise.
1249 (partial_die_eq): Likewise.
1250 (dwarf2_per_objfile_free): Likewise.
1251 (hash_strtab_entry): Likewise.
1252 (eq_strtab_entry): Likewise.
1253 (add_string): Likewise.
1254 (hash_symtab_entry): Likewise.
1255 (eq_symtab_entry): Likewise.
1256 (delete_symtab_entry): Likewise.
1257 (cleanup_mapped_symtab): Likewise.
1258 (add_indices_to_cpool): Likewise.
1259 (hash_psymtab_cu_index): Likewise.
1260 (eq_psymtab_cu_index): Likewise.
1261 (add_address_entry_worker): Likewise.
1262 (unlink_if_set): Likewise.
1263 (write_one_signatured_type): Likewise.
1264 (save_gdb_index_command): Likewise.
1265 * elfread.c (elf_symtab_read): Likewise.
1266 (elf_gnu_ifunc_cache_hash): Likewise.
1267 (elf_gnu_ifunc_cache_eq): Likewise.
1268 (elf_gnu_ifunc_record_cache): Likewise.
1269 (elf_gnu_ifunc_resolve_by_cache): Likewise.
1270 (elf_get_probes): Likewise.
1271 (probe_key_free): Likewise.
1272 * f-lang.c (builtin_f_type): Likewise.
1273 * frame-base.c (frame_base_append_sniffer): Likewise.
1274 (frame_base_set_default): Likewise.
1275 (frame_base_find_by_frame): Likewise.
1276 * frame-unwind.c (frame_unwind_prepend_unwinder): Likewise.
1277 (frame_unwind_append_unwinder): Likewise.
1278 (frame_unwind_find_by_frame): Likewise.
1279 * frame.c (frame_addr_hash): Likewise.
1280 (frame_addr_hash_eq): Likewise.
1281 (frame_stash_find): Likewise.
1282 (do_frame_register_read): Likewise.
1283 (unwind_to_current_frame): Likewise.
1284 (frame_cleanup_after_sniffer): Likewise.
1285 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
1286 * frv-tdep.c (frv_frame_unwind_cache): Likewise.
1287 * ft32-tdep.c (ft32_frame_cache): Likewise.
1288 * gcore.c (do_bfd_delete_cleanup): Likewise.
1289 (gcore_create_callback): Likewise.
1290 * gdb_bfd.c (hash_bfd): Likewise.
1291 (eq_bfd): Likewise.
1292 (gdb_bfd_open): Likewise.
1293 (free_one_bfd_section): Likewise.
1294 (gdb_bfd_ref): Likewise.
1295 (gdb_bfd_unref): Likewise.
1296 (get_section_descriptor): Likewise.
1297 (gdb_bfd_map_section): Likewise.
1298 (gdb_bfd_crc): Likewise.
1299 (gdb_bfd_mark_parent): Likewise.
1300 (gdb_bfd_record_inclusion): Likewise.
1301 (gdb_bfd_requires_relocations): Likewise.
1302 (print_one_bfd): Likewise.
1303 * gdbtypes.c (type_pair_hash): Likewise.
1304 (type_pair_eq): Likewise.
1305 (builtin_type): Likewise.
1306 (objfile_type): Likewise.
1307 * gnu-v3-abi.c (vtable_ptrdiff_type): Likewise.
1308 (vtable_address_point_offset): Likewise.
1309 (gnuv3_get_vtable): Likewise.
1310 (hash_value_and_voffset): Likewise.
1311 (eq_value_and_voffset): Likewise.
1312 (compare_value_and_voffset): Likewise.
1313 (compute_vtable_size): Likewise.
1314 (gnuv3_get_typeid_type): Likewise.
1315 * go-lang.c (builtin_go_type): Likewise.
1316 * guile/scm-block.c (bkscm_hash_block_smob): Likewise.
1317 (bkscm_eq_block_smob): Likewise.
1318 (bkscm_objfile_block_map): Likewise.
1319 (bkscm_del_objfile_blocks): Likewise.
1320 * guile/scm-breakpoint.c (bpscm_build_bp_list): Likewise.
1321 * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker): Likewise.
1322 (gdbscm_disasm_print_address): Likewise.
1323 * guile/scm-frame.c (frscm_hash_frame_smob): Likewise.
1324 (frscm_eq_frame_smob): Likewise.
1325 (frscm_inferior_frame_map): Likewise.
1326 (frscm_del_inferior_frames): Likewise.
1327 * guile/scm-gsmob.c (gdbscm_add_objfile_ref): Likewise.
1328 * guile/scm-objfile.c (ofscm_handle_objfile_deleted): Likewise.
1329 (ofscm_objfile_smob_from_objfile): Likewise.
1330 * guile/scm-ports.c (ioscm_write): Likewise.
1331 (ioscm_file_port_delete): Likewise.
1332 (ioscm_file_port_rewind): Likewise.
1333 (ioscm_file_port_put): Likewise.
1334 (ioscm_file_port_write): Likewise.
1335 * guile/scm-progspace.c (psscm_handle_pspace_deleted): Likewise.
1336 (psscm_pspace_smob_from_pspace): Likewise.
1337 * guile/scm-safe-call.c (scscm_recording_pre_unwind_handler): Likewise.
1338 (scscm_recording_unwind_handler): Likewise.
1339 (gdbscm_with_catch): Likewise.
1340 (scscm_call_0_body): Likewise.
1341 (scscm_call_1_body): Likewise.
1342 (scscm_call_2_body): Likewise.
1343 (scscm_call_3_body): Likewise.
1344 (scscm_call_4_body): Likewise.
1345 (scscm_apply_1_body): Likewise.
1346 (scscm_eval_scheme_string): Likewise.
1347 (gdbscm_safe_eval_string): Likewise.
1348 (scscm_source_scheme_script): Likewise.
1349 (gdbscm_safe_source_script): Likewise.
1350 * guile/scm-string.c (gdbscm_call_scm_to_stringn): Likewise.
1351 (gdbscm_call_scm_from_stringn): Likewise.
1352 * guile/scm-symbol.c (syscm_hash_symbol_smob): Likewise.
1353 (syscm_eq_symbol_smob): Likewise.
1354 (syscm_get_symbol_map): Likewise.
1355 (syscm_del_objfile_symbols): Likewise.
1356 * guile/scm-symtab.c (stscm_hash_symtab_smob): Likewise.
1357 (stscm_eq_symtab_smob): Likewise.
1358 (stscm_objfile_symtab_map): Likewise.
1359 (stscm_del_objfile_symtabs): Likewise.
1360 * guile/scm-type.c (tyscm_hash_type_smob): Likewise.
1361 (tyscm_eq_type_smob): Likewise.
1362 (tyscm_type_map): Likewise.
1363 (tyscm_copy_type_recursive): Likewise.
1364 (save_objfile_types): Likewise.
1365 * guile/scm-utils.c (extract_arg): Likewise.
1366 * h8300-tdep.c (h8300_frame_cache): Likewise.
1367 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Likewise.
1368 * hppa-tdep.c (compare_unwind_entries): Likewise.
1369 (find_unwind_entry): Likewise.
1370 (hppa_frame_cache): Likewise.
1371 (hppa_stub_frame_unwind_cache): Likewise.
1372 * hppanbsd-tdep.c (hppanbsd_supply_gregset): Likewise.
1373 * hppaobsd-tdep.c (hppaobsd_supply_gregset): Likewise.
1374 (hppaobsd_supply_fpregset): Likewise.
1375 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1376 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
1377 * i386-tdep.c (i386_frame_cache): Likewise.
1378 (i386_epilogue_frame_cache): Likewise.
1379 (i386_sigtramp_frame_cache): Likewise.
1380 (i386_supply_gregset): Likewise.
1381 (i386_collect_gregset): Likewise.
1382 (i386_gdbarch_init): Likewise.
1383 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Likewise.
1384 (i386obsd_trapframe_cache): Likewise.
1385 * i387-tdep.c (i387_supply_fsave): Likewise.
1386 (i387_collect_fsave): Likewise.
1387 (i387_supply_fxsave): Likewise.
1388 (i387_collect_fxsave): Likewise.
1389 (i387_supply_xsave): Likewise.
1390 (i387_collect_xsave): Likewise.
1391 * ia64-tdep.c (ia64_frame_cache): Likewise.
1392 (ia64_sigtramp_frame_cache): Likewise.
1393 * infcmd.c (attach_command_continuation): Likewise.
1394 (attach_command_continuation_free_args): Likewise.
1395 * inferior.c (restore_inferior): Likewise.
1396 (delete_thread_of_inferior): Likewise.
1397 * inflow.c (inflow_inferior_data_cleanup): Likewise.
1398 (get_inflow_inferior_data): Likewise.
1399 (inflow_inferior_exit): Likewise.
1400 * infrun.c (displaced_step_clear_cleanup): Likewise.
1401 (restore_current_uiout_cleanup): Likewise.
1402 (release_stop_context_cleanup): Likewise.
1403 (do_restore_infcall_suspend_state_cleanup): Likewise.
1404 (do_restore_infcall_control_state_cleanup): Likewise.
1405 (restore_inferior_ptid): Likewise.
1406 * inline-frame.c (block_starting_point_at): Likewise.
1407 * iq2000-tdep.c (iq2000_frame_cache): Likewise.
1408 * jit.c (get_jit_objfile_data): Likewise.
1409 (get_jit_program_space_data): Likewise.
1410 (jit_object_close_impl): Likewise.
1411 (jit_find_objf_with_entry_addr): Likewise.
1412 (jit_breakpoint_deleted): Likewise.
1413 (jit_unwind_reg_set_impl): Likewise.
1414 (jit_unwind_reg_get_impl): Likewise.
1415 (jit_dealloc_cache): Likewise.
1416 (jit_frame_sniffer): Likewise.
1417 (jit_frame_prev_register): Likewise.
1418 (jit_prepend_unwinder): Likewise.
1419 (jit_inferior_exit_hook): Likewise.
1420 (free_objfile_data): Likewise.
1421 * jv-lang.c (jv_per_objfile_free): Likewise.
1422 (get_dynamics_objfile): Likewise.
1423 (get_java_class_symtab): Likewise.
1424 (builtin_java_type): Likewise.
1425 * language.c (language_string_char_type): Likewise.
1426 (language_bool_type): Likewise.
1427 (language_lookup_primitive_type): Likewise.
1428 (language_lookup_primitive_type_as_symbol): Likewise.
1429 * linespec.c (hash_address_entry): Likewise.
1430 (eq_address_entry): Likewise.
1431 (iterate_inline_only): Likewise.
1432 (iterate_name_matcher): Likewise.
1433 (decode_line_2_compare_items): Likewise.
1434 (collect_one_symbol): Likewise.
1435 (compare_symbols): Likewise.
1436 (compare_msymbols): Likewise.
1437 (add_symtabs_to_list): Likewise.
1438 (collect_symbols): Likewise.
1439 (compare_msyms): Likewise.
1440 (add_minsym): Likewise.
1441 (cleanup_linespec_result): Likewise.
1442 * linux-fork.c (inferior_call_waitpid_cleanup): Likewise.
1443 * linux-nat.c (delete_lwp_cleanup): Likewise.
1444 (count_events_callback): Likewise.
1445 (select_event_lwp_callback): Likewise.
1446 (resume_stopped_resumed_lwps): Likewise.
1447 * linux-tdep.c (get_linux_gdbarch_data): Likewise.
1448 (invalidate_linux_cache_inf): Likewise.
1449 (get_linux_inferior_data): Likewise.
1450 (linux_find_memory_regions_thunk): Likewise.
1451 (linux_make_mappings_callback): Likewise.
1452 (linux_corefile_thread_callback): Likewise.
1453 (find_mapping_size): Likewise.
1454 * linux-thread-db.c (find_new_threads_callback): Likewise.
1455 * lm32-tdep.c (lm32_frame_cache): Likewise.
1456 * m2-lang.c (builtin_m2_type): Likewise.
1457 * m32c-tdep.c (m32c_analyze_frame_prologue): Likewise.
1458 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_cache): Likewise.
1459 (m32r_linux_supply_gregset): Likewise.
1460 (m32r_linux_collect_gregset): Likewise.
1461 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
1462 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1463 * m68k-tdep.c (m68k_frame_cache): Likewise.
1464 * m68kbsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
1465 (m68kbsd_supply_gregset): Likewise.
1466 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
1467 * m88k-tdep.c (m88k_frame_cache): Likewise.
1468 (m88k_supply_gregset): Likewise.
1469
1470 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
1471
1472 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Add cast
1473 to allocation result assignment.
1474 * ada-exp.y (write_object_renaming): Likewise.
1475 (write_ambiguous_var): Likewise.
1476 (ada_nget_field_index): Likewise.
1477 (write_var_or_type): Likewise.
1478 * ada-lang.c (ada_decode_symbol): Likewise.
1479 (ada_value_assign): Likewise.
1480 (value_pointer): Likewise.
1481 (cache_symbol): Likewise.
1482 (add_nonlocal_symbols): Likewise.
1483 (ada_name_for_lookup): Likewise.
1484 (symbol_completion_add): Likewise.
1485 (ada_to_fixed_type_1): Likewise.
1486 (ada_get_next_arg): Likewise.
1487 (defns_collected): Likewise.
1488 * ada-lex.l (processId): Likewise.
1489 (processString): Likewise.
1490 * ada-tasks.c (read_known_tasks_array): Likewise.
1491 (read_known_tasks_list): Likewise.
1492 * ada-typeprint.c (decoded_type_name): Likewise.
1493 * addrmap.c (addrmap_mutable_create_fixed): Likewise.
1494 * amd64-tdep.c (amd64_push_arguments): Likewise.
1495 (amd64_displaced_step_copy_insn): Likewise.
1496 (amd64_classify_insn_at): Likewise.
1497 (amd64_relocate_instruction): Likewise.
1498 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
1499 * arch-utils.c (simple_displaced_step_copy_insn): Likewise.
1500 (initialize_current_architecture): Likewise.
1501 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
1502 * arm-symbian-tdep.c (arm_symbian_osabi_sniffer): Likewise.
1503 * arm-tdep.c (arm_exidx_new_objfile): Likewise.
1504 (arm_push_dummy_call): Likewise.
1505 (extend_buffer_earlier): Likewise.
1506 (arm_adjust_breakpoint_address): Likewise.
1507 (arm_skip_stub): Likewise.
1508 * auto-load.c (filename_is_in_pattern): Likewise.
1509 (maybe_add_script_file): Likewise.
1510 (maybe_add_script_text): Likewise.
1511 (auto_load_objfile_script_1): Likewise.
1512 * auxv.c (ld_so_xfer_auxv): Likewise.
1513 * ax-general.c (new_agent_expr): Likewise.
1514 (grow_expr): Likewise.
1515 (ax_reg_mask): Likewise.
1516 * bcache.c (bcache_full): Likewise.
1517 * breakpoint.c (program_breakpoint_here_p): Likewise.
1518 * btrace.c (parse_xml_raw): Likewise.
1519 * build-id.c (build_id_to_debug_bfd): Likewise.
1520 * buildsym.c (end_symtab_with_blockvector): Likewise.
1521 * c-exp.y (string_exp): Likewise.
1522 (qualified_name): Likewise.
1523 (write_destructor_name): Likewise.
1524 (operator_stoken): Likewise.
1525 (parse_number): Likewise.
1526 (scan_macro_expansion): Likewise.
1527 (yylex): Likewise.
1528 (c_print_token): Likewise.
1529 * c-lang.c (c_get_string): Likewise.
1530 (emit_numeric_character): Likewise.
1531 * charset.c (wchar_iterate): Likewise.
1532 * cli/cli-cmds.c (complete_command): Likewise.
1533 (make_command): Likewise.
1534 * cli/cli-dump.c (restore_section_callback): Likewise.
1535 (restore_binary_file): Likewise.
1536 * cli/cli-interp.c (cli_interpreter_exec): Likewise.
1537 * cli/cli-script.c (execute_control_command): Likewise.
1538 * cli/cli-setshow.c (do_set_command): Likewise.
1539 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
1540 (read_pe_exported_syms): Likewise.
1541 * coffread.c (coff_read_struct_type): Likewise.
1542 (coff_read_enum_type): Likewise.
1543 * common/btrace-common.c (btrace_data_append): Likewise.
1544 * common/buffer.c (buffer_grow): Likewise.
1545 * common/filestuff.c (gdb_fopen_cloexec): Likewise.
1546 * common/format.c (parse_format_string): Likewise.
1547 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
1548 * common/xml-utils.c (xml_escape_text): Likewise.
1549 * compile/compile-object-load.c (copy_sections): Likewise.
1550 (compile_object_load): Likewise.
1551 * compile/compile-object-run.c (compile_object_run): Likewise.
1552 * completer.c (filename_completer): Likewise.
1553 * corefile.c (read_memory_typed_address): Likewise.
1554 (write_memory_unsigned_integer): Likewise.
1555 (write_memory_signed_integer): Likewise.
1556 (complete_set_gnutarget): Likewise.
1557 * corelow.c (get_core_register_section): Likewise.
1558 * cp-name-parser.y (d_grab): Likewise.
1559 (allocate_info): Likewise.
1560 (cp_new_demangle_parse_info): Likewise.
1561 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Likewise.
1562 (cp_lookup_symbol_in_namespace): Likewise.
1563 (lookup_namespace_scope): Likewise.
1564 (find_symbol_in_baseclass): Likewise.
1565 (cp_lookup_nested_symbol): Likewise.
1566 (cp_lookup_transparent_type_loop): Likewise.
1567 * cp-support.c (copy_string_to_obstack): Likewise.
1568 (make_symbol_overload_list): Likewise.
1569 (make_symbol_overload_list_namespace): Likewise.
1570 (make_symbol_overload_list_adl_namespace): Likewise.
1571 (first_component_command): Likewise.
1572 * cp-valprint.c (cp_print_value): Likewise.
1573 * ctf.c (ctf_xfer_partial): Likewise.
1574 * d-exp.y (StringExp): Likewise.
1575 * d-namespace.c (d_lookup_symbol_in_module): Likewise.
1576 (lookup_module_scope): Likewise.
1577 (find_symbol_in_baseclass): Likewise.
1578 (d_lookup_nested_symbol): Likewise.
1579 * dbxread.c (find_stab_function_addr): Likewise.
1580 (read_dbx_symtab): Likewise.
1581 (dbx_end_psymtab): Likewise.
1582 (cp_set_block_scope): Likewise.
1583 * dcache.c (dcache_alloc): Likewise.
1584 * demangle.c (_initialize_demangler): Likewise.
1585 * dicos-tdep.c (dicos_load_module_p): Likewise.
1586 * dictionary.c (dict_create_hashed_expandable): Likewise.
1587 (dict_create_linear_expandable): Likewise.
1588 (expand_hashtable): Likewise.
1589 (add_symbol_linear_expandable): Likewise.
1590 * dwarf2-frame.c (add_cie): Likewise.
1591 (add_fde): Likewise.
1592 (dwarf2_build_frame_info): Likewise.
1593 * dwarf2expr.c (dwarf_expr_grow_stack): Likewise.
1594 (dwarf_expr_fetch_address): Likewise.
1595 (add_piece): Likewise.
1596 (execute_stack_op): Likewise.
1597 * dwarf2loc.c (chain_candidate): Likewise.
1598 (dwarf_entry_parameter_to_value): Likewise.
1599 (read_pieced_value): Likewise.
1600 (write_pieced_value): Likewise.
1601 * dwarf2read.c (dwarf2_read_section): Likewise.
1602 (add_type_unit): Likewise.
1603 (read_comp_units_from_section): Likewise.
1604 (fixup_go_packaging): Likewise.
1605 (dwarf2_compute_name): Likewise.
1606 (dwarf2_physname): Likewise.
1607 (create_dwo_unit_in_dwp_v1): Likewise.
1608 (create_dwo_unit_in_dwp_v2): Likewise.
1609 (read_func_scope): Likewise.
1610 (read_call_site_scope): Likewise.
1611 (dwarf2_attach_fields_to_type): Likewise.
1612 (process_structure_scope): Likewise.
1613 (mark_common_block_symbol_computed): Likewise.
1614 (read_common_block): Likewise.
1615 (abbrev_table_read_table): Likewise.
1616 (guess_partial_die_structure_name): Likewise.
1617 (fixup_partial_die): Likewise.
1618 (add_file_name): Likewise.
1619 (dwarf2_const_value_data): Likewise.
1620 (dwarf2_const_value_attr): Likewise.
1621 (build_error_marker_type): Likewise.
1622 (guess_full_die_structure_name): Likewise.
1623 (anonymous_struct_prefix): Likewise.
1624 (typename_concat): Likewise.
1625 (dwarf2_canonicalize_name): Likewise.
1626 (dwarf2_name): Likewise.
1627 (write_constant_as_bytes): Likewise.
1628 (dwarf2_fetch_constant_bytes): Likewise.
1629 (copy_string): Likewise.
1630 (parse_macro_definition): Likewise.
1631 * elfread.c (elf_symfile_segments): Likewise.
1632 (elf_rel_plt_read): Likewise.
1633 (elf_gnu_ifunc_resolve_by_cache): Likewise.
1634 (elf_gnu_ifunc_resolve_by_got): Likewise.
1635 (elf_read_minimal_symbols): Likewise.
1636 (elf_gnu_ifunc_record_cache): Likewise.
1637 * event-top.c (top_level_prompt): Likewise.
1638 (command_line_handler): Likewise.
1639 * exec.c (resize_section_table): Likewise.
1640 * expprint.c (print_subexp_standard): Likewise.
1641 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
1642 * findcmd.c (parse_find_args): Likewise.
1643 * findvar.c (address_from_register): Likewise.
1644 * frame.c (get_prev_frame_always): Likewise.
1645 * gdb_bfd.c (gdb_bfd_ref): Likewise.
1646 (get_section_descriptor): Likewise.
1647 * gdb_obstack.c (obconcat): Likewise.
1648 (obstack_strdup): Likewise.
1649 * gdbtypes.c (lookup_function_type_with_arguments): Likewise.
1650 (create_set_type): Likewise.
1651 (lookup_unsigned_typename): Likewise.
1652 (lookup_signed_typename): Likewise.
1653 (resolve_dynamic_union): Likewise.
1654 (resolve_dynamic_struct): Likewise.
1655 (add_dyn_prop): Likewise.
1656 (copy_dynamic_prop_list): Likewise.
1657 (arch_flags_type): Likewise.
1658 (append_composite_type_field_raw): Likewise.
1659 * gdbtypes.h (INIT_FUNC_SPECIFIC): Likewise.
1660 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
1661 * go-exp.y (string_exp): Likewise.
1662 * go-lang.c (go_demangle): Likewise.
1663 * guile/guile.c (compute_scheme_string): Likewise.
1664 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1665 (gdbscm_canonicalize_command_name): Likewise.
1666 * guile/scm-ports.c (ioscm_init_stdio_buffers): Likewise.
1667 (ioscm_init_memory_port): Likewise.
1668 (ioscm_reinit_memory_port): Likewise.
1669 * guile/scm-utils.c (gdbscm_gc_xstrdup): Likewise.
1670 (gdbscm_gc_dup_argv): Likewise.
1671 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
1672 * hppa-tdep.c (internalize_unwinds): Likewise.
1673 (read_unwind_info): Likewise.
1674 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1675 (windows_core_xfer_shared_libraries): Likewise.
1676 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
1677 (i386_stap_parse_special_token_triplet): Likewise.
1678 (i386_stap_parse_special_token_three_arg_disp): Likewise.
1679 * i386obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
1680 * inf-child.c (inf_child_fileio_readlink): Likewise.
1681 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
1682 (inf_ptrace_store_register): Likewise.
1683 * infrun.c (follow_exec): Likewise.
1684 (displaced_step_prepare_throw): Likewise.
1685 (save_stop_context): Likewise.
1686 (save_infcall_suspend_state): Likewise.
1687 * jit.c (jit_read_descriptor): Likewise.
1688 (jit_read_code_entry): Likewise.
1689 (jit_symtab_line_mapping_add_impl): Likewise.
1690 (finalize_symtab): Likewise.
1691 (jit_unwind_reg_get_impl): Likewise.
1692 * jv-exp.y (QualifiedName): Likewise.
1693 * jv-lang.c (get_java_utf8_name): Likewise.
1694 (type_from_class): Likewise.
1695 (java_demangle_type_signature): Likewise.
1696 (java_class_name_from_physname): Likewise.
1697 * jv-typeprint.c (java_type_print_base): Likewise.
1698 * jv-valprint.c (java_value_print): Likewise.
1699 * language.c (add_language): Likewise.
1700 * linespec.c (add_sal_to_sals_basic): Likewise.
1701 (add_sal_to_sals): Likewise.
1702 (decode_objc): Likewise.
1703 (find_linespec_symbols): Likewise.
1704 * linux-fork.c (fork_save_infrun_state): Likewise.
1705 * linux-nat.c (linux_nat_detach): Likewise.
1706 (linux_nat_fileio_readlink): Likewise.
1707 * linux-record.c (record_linux_sockaddr): Likewise.
1708 (record_linux_msghdr): Likewise.
1709 (Do): Likewise.
1710 * linux-tdep.c (linux_core_info_proc_mappings): Likewise.
1711 (linux_collect_regset_section_cb): Likewise.
1712 (linux_get_siginfo_data): Likewise.
1713 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Likewise.
1714 (try_thread_db_load_from_dir): Likewise.
1715 (thread_db_load_search): Likewise.
1716 (info_auto_load_libthread_db): Likewise.
1717 * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
1718 (m32c_m16c_pointer_to_address): Likewise.
1719 * m68hc11-tdep.c (m68hc11_pseudo_register_write): Likewise.
1720 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
1721 * machoread.c (macho_check_dsym): Likewise.
1722 * macroexp.c (resize_buffer): Likewise.
1723 (gather_arguments): Likewise.
1724 (maybe_expand): Likewise.
1725 * macrotab.c (new_macro_key): Likewise.
1726 (new_source_file): Likewise.
1727 (new_macro_definition): Likewise.
1728 * mdebugread.c (parse_symbol): Likewise.
1729 (parse_type): Likewise.
1730 (parse_partial_symbols): Likewise.
1731 (psymtab_to_symtab_1): Likewise.
1732 * mem-break.c (default_memory_insert_breakpoint): Likewise.
1733 * mi/mi-cmd-break.c (mi_argv_to_format): Likewise.
1734 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
1735 (mi_cmd_data_read_memory_bytes): Likewise.
1736 (mi_cmd_data_write_memory_bytes): Likewise.
1737 (mi_cmd_trace_frame_collected): Likewise.
1738 * mi/mi-parse.c (mi_parse_argv): Likewise.
1739 (mi_parse): Likewise.
1740 * minidebug.c (lzma_open): Likewise.
1741 (lzma_pread): Likewise.
1742 * mips-tdep.c (mips_read_fp_register_single): Likewise.
1743 (mips_print_fp_register): Likewise.
1744 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
1745 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
1746 * mt-tdep.c (mt_register_name): Likewise.
1747 (mt_registers_info): Likewise.
1748 (mt_push_dummy_call): Likewise.
1749 * namespace.c (add_using_directive): Likewise.
1750 * nat/linux-btrace.c (perf_event_read): Likewise.
1751 (linux_enable_bts): Likewise.
1752 * nat/linux-osdata.c (linux_common_core_of_thread): Likewise.
1753 * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Likewise.
1754 * nto-tdep.c (nto_find_and_open_solib): Likewise.
1755 (nto_parse_redirection): Likewise.
1756 * objc-lang.c (objc_demangle): Likewise.
1757 (find_methods): Likewise.
1758 * objfiles.c (get_objfile_bfd_data): Likewise.
1759 (set_objfile_main_name): Likewise.
1760 (allocate_objfile): Likewise.
1761 (objfile_relocate): Likewise.
1762 (update_section_map): Likewise.
1763 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
1764 * p-exp.y (exp): Likewise.
1765 (yylex): Likewise.
1766 * p-valprint.c (pascal_object_print_value): Likewise.
1767 * parse.c (initialize_expout): Likewise.
1768 (mark_completion_tag): Likewise.
1769 (copy_name): Likewise.
1770 (parse_float): Likewise.
1771 (type_stack_reserve): Likewise.
1772 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
1773 (ppu2spu_prev_register): Likewise.
1774 * ppc-ravenscar-thread.c (supply_register_at_address): Likewise.
1775 * printcmd.c (printf_wide_c_string): Likewise.
1776 (printf_pointer): Likewise.
1777 * probe.c (parse_probes): Likewise.
1778 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1779 (cmdpy_init): Likewise.
1780 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Likewise.
1781 * python/py-symtab.c (set_sal): Likewise.
1782 * python/py-unwind.c (pyuw_sniffer): Likewise.
1783 * python/python.c (python_interactive_command): Likewise.
1784 (compute_python_string): Likewise.
1785 * ravenscar-thread.c (get_running_thread_id): Likewise.
1786 * record-full.c (record_full_exec_insn): Likewise.
1787 (record_full_core_open_1): Likewise.
1788 * regcache.c (regcache_raw_read_signed): Likewise.
1789 (regcache_raw_read_unsigned): Likewise.
1790 (regcache_cooked_read_signed): Likewise.
1791 (regcache_cooked_read_unsigned): Likewise.
1792 * remote-fileio.c (remote_fileio_func_open): Likewise.
1793 (remote_fileio_func_rename): Likewise.
1794 (remote_fileio_func_unlink): Likewise.
1795 (remote_fileio_func_stat): Likewise.
1796 (remote_fileio_func_system): Likewise.
1797 * remote-mips.c (mips_xfer_memory): Likewise.
1798 (mips_load_srec): Likewise.
1799 (pmon_end_download): Likewise.
1800 * remote.c (new_remote_state): Likewise.
1801 (map_regcache_remote_table): Likewise.
1802 (remote_register_number_and_offset): Likewise.
1803 (init_remote_state): Likewise.
1804 (get_memory_packet_size): Likewise.
1805 (remote_pass_signals): Likewise.
1806 (remote_program_signals): Likewise.
1807 (remote_start_remote): Likewise.
1808 (remote_check_symbols): Likewise.
1809 (remote_query_supported): Likewise.
1810 (extended_remote_attach): Likewise.
1811 (process_g_packet): Likewise.
1812 (store_registers_using_G): Likewise.
1813 (putpkt_binary): Likewise.
1814 (read_frame): Likewise.
1815 (compare_sections_command): Likewise.
1816 (remote_hostio_pread): Likewise.
1817 (remote_hostio_readlink): Likewise.
1818 (remote_file_put): Likewise.
1819 (remote_file_get): Likewise.
1820 (remote_pid_to_exec_file): Likewise.
1821 (_initialize_remote): Likewise.
1822 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
1823 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
1824 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
1825 (bfd_uses_spe_extensions): Likewise.
1826 * s390-linux-tdep.c (s390_displaced_step_copy_insn): Likewise.
1827 * score-tdep.c (score7_malloc_and_get_memblock): Likewise.
1828 * solib-dsbt.c (decode_loadmap): Likewise.
1829 (fetch_loadmap): Likewise.
1830 (scan_dyntag): Likewise.
1831 (enable_break): Likewise.
1832 (dsbt_relocate_main_executable): Likewise.
1833 * solib-frv.c (fetch_loadmap): Likewise.
1834 (enable_break2): Likewise.
1835 (frv_relocate_main_executable): Likewise.
1836 * solib-spu.c (spu_relocate_main_executable): Likewise.
1837 (spu_bfd_open): Likewise.
1838 * solib-svr4.c (lm_info_read): Likewise.
1839 (read_program_header): Likewise.
1840 (find_program_interpreter): Likewise.
1841 (scan_dyntag): Likewise.
1842 (elf_locate_base): Likewise.
1843 (open_symbol_file_object): Likewise.
1844 (read_program_headers_from_bfd): Likewise.
1845 (svr4_relocate_main_executable): Likewise.
1846 * solib-target.c (solib_target_relocate_section_addresses): Likewise.
1847 * solib.c (solib_find_1): Likewise.
1848 (exec_file_find): Likewise.
1849 (solib_find): Likewise.
1850 * source.c (openp): Likewise.
1851 (print_source_lines_base): Likewise.
1852 (forward_search_command): Likewise.
1853 * sparc-ravenscar-thread.c (supply_register_at_address): Likewise.
1854 * spu-tdep.c (spu2ppu_prev_register): Likewise.
1855 (spu_get_overlay_table): Likewise.
1856 * stabsread.c (patch_block_stabs): Likewise.
1857 (define_symbol): Likewise.
1858 (again:): Likewise.
1859 (read_member_functions): Likewise.
1860 (read_one_struct_field): Likewise.
1861 (read_enum_type): Likewise.
1862 (common_block_start): Likewise.
1863 * stack.c (read_frame_arg): Likewise.
1864 (backtrace_command): Likewise.
1865 * stap-probe.c (stap_parse_register_operand): Likewise.
1866 * symfile.c (syms_from_objfile_1): Likewise.
1867 (find_separate_debug_file): Likewise.
1868 (load_command): Likewise.
1869 (load_progress): Likewise.
1870 (load_section_callback): Likewise.
1871 (reread_symbols): Likewise.
1872 (add_filename_language): Likewise.
1873 (allocate_compunit_symtab): Likewise.
1874 (read_target_long_array): Likewise.
1875 (simple_read_overlay_table): Likewise.
1876 * symtab.c (symbol_set_names): Likewise.
1877 (resize_symbol_cache): Likewise.
1878 (rbreak_command): Likewise.
1879 (completion_list_add_name): Likewise.
1880 (completion_list_objc_symbol): Likewise.
1881 (add_filename_to_list): Likewise.
1882 * target-descriptions.c (maint_print_c_tdesc_cmd): Likewise.
1883 * target-memory.c (target_write_memory_blocks): Likewise.
1884 * target.c (target_read_string): Likewise.
1885 (read_whatever_is_readable): Likewise.
1886 (target_read_alloc_1): Likewise.
1887 (simple_search_memory): Likewise.
1888 (target_fileio_read_alloc_1): Likewise.
1889 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1890 * top.c (command_line_input): Likewise.
1891 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
1892 * tracefile.c (tracefile_fetch_registers): Likewise.
1893 * tracepoint.c (add_memrange): Likewise.
1894 (init_collection_list): Likewise.
1895 (add_aexpr): Likewise.
1896 (trace_dump_actions): Likewise.
1897 (parse_trace_status): Likewise.
1898 (parse_tracepoint_definition): Likewise.
1899 (parse_tsv_definition): Likewise.
1900 (parse_static_tracepoint_marker_definition): Likewise.
1901 * tui/tui-file.c (tui_sfileopen): Likewise.
1902 (tui_file_adjust_strbuf): Likewise.
1903 * tui/tui-io.c (tui_expand_tabs): Likewise.
1904 * tui/tui-source.c (tui_set_source_content): Likewise.
1905 * typeprint.c (find_global_typedef): Likewise.
1906 * ui-file.c (do_ui_file_xstrdup): Likewise.
1907 (ui_file_obsavestring): Likewise.
1908 (mem_file_write): Likewise.
1909 * utils.c (make_hex_string): Likewise.
1910 (get_regcomp_error): Likewise.
1911 (puts_filtered_tabular): Likewise.
1912 (gdb_realpath_keepfile): Likewise.
1913 (ldirname): Likewise.
1914 (gdb_bfd_errmsg): Likewise.
1915 (substitute_path_component): Likewise.
1916 * valops.c (search_struct_method): Likewise.
1917 (find_oload_champ_namespace_loop): Likewise.
1918 * valprint.c (print_decimal_chars): Likewise.
1919 (read_string): Likewise.
1920 (generic_emit_char): Likewise.
1921 * varobj.c (varobj_delete): Likewise.
1922 (varobj_value_get_print_value): Likewise.
1923 * vaxobsd-tdep.c (vaxobsd_sigtramp_sniffer): Likewise.
1924 * windows-tdep.c (display_one_tib): Likewise.
1925 * xcoffread.c (read_xcoff_symtab): Likewise.
1926 (process_xcoff_symbol): Likewise.
1927 (swap_sym): Likewise.
1928 (scan_xcoff_symtab): Likewise.
1929 (xcoff_initial_scan): Likewise.
1930 * xml-support.c (gdb_xml_end_element): Likewise.
1931 (xml_process_xincludes): Likewise.
1932 (xml_fetch_content_from_file): Likewise.
1933 * xml-syscall.c (xml_list_of_syscalls): Likewise.
1934 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1935
1936 2015-09-23 James Bowman <james.bowman@ftdichip.com>
1937
1938 * ft32-tdep.c (ft32_register_type): Return gdbarch_tdep (gdbarch)->pc_type
1939 instead of builtin_func_ptr.
1940 (ft32_pointer_to_address): New function.
1941 (ft32_address_class_type_flags): New function.
1942 (ft32_address_class_type_flags_to_name): New function.
1943 (ft32_address_class_name_to_type_flags): New function.
1944 (ft32_gdbarch_init): Set tdep->pc_type. Call
1945 set_gdbarch_pointer_to_address,
1946 set_gdbarch_address_class_type_flags
1947 set_gdbarch_address_class_name_to_type_flags,
1948 and set_gdbarch_address_class_type_flags_to_name.
1949 * ft32-tdep.h (struct gdbarch_tdep) <pc_type>: New field.
1950
1951 2015-09-23 Pierre-Marie de Rodat <derodat@adacore.com>
1952
1953 * ada-lang.c (ada_evaluate_subexp) <OP_FUNCALL>: When the input
1954 value is a reference, actually dereference it in order to get
1955 the underlying value.
1956
1957 2015-09-22 Simon Marchi <simon.marchi@ericsson.com>
1958
1959 * stap-probe.c (handle_stap_probe): Remove unnecessary cast.
1960
1961 2015-09-21 Simon Marchi <simon.marchi@ericsson.com>
1962
1963 * cli/cli-setshow.c (cmd_show_list): Constify a variable.
1964 * linespec.c (linespec_lexer_lex_string): Same.
1965
1966 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
1967
1968 * NEWS: Mention support for fast tracepoints on aarch64-linux.
1969
1970 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
1971
1972 * aarch64-tdep.c (aarch64_analyze_prologue): New is_adrp
1973 variable. Call aarch64_decode_adr instead of
1974 aarch64_decode_adrp.
1975 * arch/aarch64-insn.h (aarch64_decode_adrp): Delete.
1976 (aarch64_decode_adr): New function declaration.
1977 * arch/aarch64-insn.c (aarch64_decode_adrp): Delete.
1978 (aarch64_decode_adr): New function, factored out from
1979 aarch64_decode_adrp to decode both adr and adrp instructions.
1980
1981 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
1982
1983 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-insn.o.
1984 (HFILES_NO_SRCDIR): Add arch/aarch64-insn.h.
1985 (aarch64-insn.o): New rule.
1986 * configure.tgt (aarch64*-*-elf): Add aarch64-insn.o.
1987 (aarch64*-*-linux*): Likewise.
1988 * arch/aarch64-insn.c: New file.
1989 * arch/aarch64-insn.h: New file.
1990 * aarch64-tdep.c: Include arch/aarch64-insn.h.
1991 (aarch64_debug): Move to arch/aarch64-insn.c. Declare in
1992 arch/aarch64-insn.h.
1993 (decode_add_sub_imm): Rename to ...
1994 (aarch64_decode_add_sub_imm): ... this.
1995 (decode_adrp): Rename to ...
1996 (aarch64_decode_adrp): ... this. Move to arch/aarch64-insn.c.
1997 Declare in arch/aarch64-insn.h.
1998 (decode_b): Rename to ...
1999 (aarch64_decode_b): ... this. Move to arch/aarch64-insn.c.
2000 Declare in arch/aarch64-insn.h.
2001 (decode_bcond): Rename to ...
2002 (aarch64_decode_bcond): ... this. Move to arch/aarch64-insn.c.
2003 Declare in arch/aarch64-insn.h.
2004 (decode_br): Rename to ...
2005 (aarch64_decode_br): ... this.
2006 (decode_cb): Rename to ...
2007 (aarch64_decode_cb): ... this. Move to arch/aarch64-insn.c.
2008 Declare in arch/aarch64-insn.h.
2009 (decode_eret): Rename to ...
2010 (aarch64_decode_eret): ... this.
2011 (decode_movz): Rename to ...
2012 (aarch64_decode_movz): ... this.
2013 (decode_orr_shifted_register_x): Rename to ...
2014 (aarch64_decode_orr_shifted_register_x): ... this.
2015 (decode_ret): Rename to ...
2016 (aarch64_decode_ret): ... this.
2017 (decode_stp_offset): Rename to ...
2018 (aarch64_decode_stp_offset): ... this.
2019 (decode_stp_offset_wb): Rename to ...
2020 (aarch64_decode_stp_offset_wb): ... this.
2021 (decode_stur): Rename to ...
2022 (aarch64_decode_stur): ... this.
2023 (decode_tb): Rename to ...
2024 (aarch64_decode_tb): ... this. Move to arch/aarch64-insn.c.
2025 Declare in arch/aarch64-insn.h.
2026 (aarch64_analyze_prologue): Adjust calls to renamed functions.
2027
2028 2015-09-20 Doug Evans <xdje42@gmail.com>
2029
2030 * dwarf2read.c (add_partial_symbol): Remove outdated comments.
2031
2032 2015-09-20 Doug Evans <xdje42@gmail.com>
2033
2034 * dwarf2read.c (dwarf2_compute_name): Add FIXME. Don't use a local
2035 variable name that collides with a parameter.
2036
2037 2015-09-20 Joel Brobecker <brobecker@adacore.com>
2038
2039 * dwarf2loc.c (locexpr_get_frame_base): Renames
2040 block_op_get_frame_base.
2041 (dwarf2_block_frame_base_locexpr_funcs): Replace reference to
2042 block_op_get_frame_base by reference to locexpr_get_frame_base.
2043 (loclist_get_frame_base): New function, near identical copy of
2044 locexpr_get_frame_base.
2045 (dwarf2_block_frame_base_loclist_funcs): Replace reference to
2046 block_op_get_frame_base by reference to loclist_get_frame_base.
2047
2048 2015-09-19 Doug Evans <xdje42@gmail.com>
2049
2050 * ravenscar-thread.c (ravenscar_inferior_created): Replace
2051 current_inferior ()->gdbarch with its wrapper target_gdbarch.
2052
2053 2015-09-18 Doug Evans <xdje42@gmail.com>
2054
2055 * linux-thread-db.c (record_thread): Return the created thread.
2056 (thread_from_lwp): Likewise.
2057 (thread_db_get_thread_local_address): Update.
2058
2059 2015-09-18 Doug Evans <xdje42@gmail.com>
2060
2061 * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
2062 move only member demangled_name up. All uses updated.
2063
2064 2015-09-18 Doug Evans <xdje42@gmail.com>
2065
2066 * findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
2067 kind of minimal symbol in the error message.
2068 * objfiles.c (objfile_flavour_name): New function.
2069 * objfiles.h (objfile_flavour_name): Declare.
2070
2071 2015-09-18 Yao Qi <yao.qi@linaro.org>
2072
2073 * nat/aarch64-linux.c: Include elf/common.h,
2074 nat/gdb_ptrace.h, asm/ptrace.h and sys/uio.h.
2075 (aarch64_ps_get_thread_area): New function.
2076 * nat/aarch64-linux.h: Include gdb_proc_service.h.
2077 (aarch64_ps_get_thread_area): Declare.
2078 * aarch64-linux-nat.c (ps_get_thread_area): Call
2079 aarch64_ps_get_thread_area.
2080
2081 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2082
2083 * record-btrace.c (record_btrace_resume): Honour scheduler-locking.
2084
2085 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2086
2087 * NEWS: Announce new scheduler-locking mode.
2088 * infrun.c (schedlock_replay): New.
2089 (scheduler_enums): Add schedlock_replay.
2090 (scheduler_mode): Change default to schedlock_replay.
2091 (user_visible_resume_ptid): Handle schedlock_replay.
2092 (clear_proceed_status_thread): Stop replaying if resumed thread is
2093 not replaying.
2094 (schedlock_applies): Handle schedlock_replay.
2095 (_initialize_infrun): Document new scheduler-locking mode.
2096 * record-btrace.c (record_btrace_resume): Remove code to stop other
2097 threads when not replaying the resumed thread.
2098
2099 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2100
2101 * record-btrace.c ((record_btrace_will_replay): New.
2102 (init_record_btrace_ops): Initialize to_record_will_replay.
2103 * record-full.c ((record_full_will_replay): New.
2104 (init_record_full_ops): Initialize to_record_will_replay.
2105 * target-delegates.c: Regenerated.
2106 * target.c (target_record_will_replay): New.
2107 * target.h (struct target_ops) <to_record_will_replay>: New.
2108 (target_record_will_replay): New.
2109
2110 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2111
2112 * record-btrace.c (record_btrace_resume): Call
2113 target_record_stop_replaying.
2114 (record_btrace_stop_replaying_all): New.
2115 (init_record_btrace_ops): Initialize to_record_stop_replaying.
2116 * record-full.c (record_full_stop_replaying): New.
2117 (init_record_full_ops ): Initialize to_record_stop_replaying.
2118 * target-delegates.c: Regenerated.
2119 * target.c (target_record_stop_replaying): New.
2120 * target.h (struct target_ops) <to_record_stop_replaying>: New.
2121 (target_record_stop_replaying): New.
2122
2123 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2124
2125 * record-btrace.c (record_btrace_xfer_partial)
2126 (record_btrace_store_registers, record_btrace_prepare_to_store):
2127 Call record_btrace_is_replaying with inferior_ptid instead of
2128 minus_one_ptid.
2129 (record_btrace_store_registers): Change error message.
2130
2131 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2132
2133 * record-btrace.c (record_btrace_is_replaying): Add ptid argument.
2134 Update users to pass minus_one_ptid.
2135 * record-full.c (record_full_is_replaying): Add ptid argument (ignored).
2136 * record.c (cmd_record_delete): Pass inferior_ptid to
2137 target_record_is_replaying.
2138 * target-delegates.c: Regenerated.
2139 * target.c (target_record_is_replaying): Add ptid argument.
2140 * target.h (struct target_ops) <to_record_is_replaying>: Add ptid
2141 argument.
2142 (target_record_is_replaying): Add ptid argument.
2143
2144 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2145
2146 * record-btrace.c (record_btrace_open): Remove non_stop check.
2147 * NEWS: Announce that record btrace supports non-stop mode.
2148
2149 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2150
2151 * infrun.c (handle_inferior_event_1): Switch to the eventing thread
2152 in the TARKET_WAITKIND_NO_HISTORY case.
2153
2154 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2155
2156 * record-btrace.c (record_btrace_maybe_mark_async_event): New.
2157 (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
2158
2159 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2160
2161 * record-btrace.c (get_thread_current_frame): New.
2162 (record_btrace_start_replaying): Call get_thread_current_frame.
2163
2164 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2165
2166 * record-btrace.c (record_btrace_resume_thread): A move request
2167 overwrites a previous move request.
2168 (record_btrace_find_resume_thread): Removed.
2169 (record_btrace_resume): Resume all requested threads.
2170
2171 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2172
2173 * record-btrace.c: Include vec.h.
2174 (record_btrace_find_thread_to_move): Removed.
2175 (btrace_step_no_resumed, btrace_step_again)
2176 (record_btrace_stop_replaying_at_end): New.
2177 (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
2178 (record_btrace_single_step_forward): Remove calls to
2179 record_btrace_stop_replaying.
2180 (record_btrace_step_thread): Do only one step for BTHR_CONT and
2181 BTHR_RCONT. Keep threads at the end of their history moving.
2182 (record_btrace_wait): Call record_btrace_step_thread for all threads
2183 until one reports an event. Call record_btrace_stop_replaying_at_end
2184 for the eventing thread.
2185
2186 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2187
2188 * record-btrace.c (record_btrace_single_step_forward): Return
2189 NO_HISTORY if a step brings us to the end of the execution history.
2190
2191 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2192
2193 * record-btrace.c (record_btrace_step_thread): Move breakpoint check
2194 to ...
2195 (record_btrace_single_step_forward): ... here and
2196 (record_btrace_single_step_backward): ... here.
2197
2198 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2199
2200 * record-btrace.c (btrace_step_spurious)
2201 (record_btrace_single_step_forward)
2202 (record_btrace_single_step_backward): New.
2203 (record_btrace_step_thread): Call record_btrace_single_step_forward
2204 and record_btrace_single_step_backward.
2205
2206 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2207
2208 * record-btrace.c (record_btrace_replay_at_breakpoint): New.
2209 (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
2210
2211 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2212
2213 * record-btrace.c (btrace_thread_flag_to_str)
2214 (record_btrace_cancel_resume): New.
2215 (record_btrace_step_thread): Call btrace_thread_flag_to_str.
2216 (record_btrace_resume): Print execution direction.
2217 (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
2218 (record_btrace_wait): Call record_btrace_cancel_resume.
2219
2220 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2221
2222 * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
2223 * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
2224 (record_btrace_find_thread_to_move): Also accept threads that have
2225 BTHR_STOP set.
2226 (btrace_step_stopped_on_request, record_btrace_stop): New.
2227 (record_btrace_step_thread): Support BTHR_STOP.
2228 (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
2229 (init_record_btrace_ops): Initialize to_stop.
2230
2231 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2232
2233 * record-btrace.c (record_btrace_wait): Replace non_stop check with
2234 target_is_non_stop_p ().
2235
2236 2015-09-15 Pierre-Marie de Rodat <derodat@adacore.com>
2237
2238 * ada-typeprint.c (print_array_type): Do not describe arrays as
2239 packed when they embed dynamic elements.
2240
2241 2015-09-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2242
2243 * symtab.h (address_class): Document that TLS variables
2244 are handled by LOC_UNRESOLVED.
2245 * findvar.c (default_read_var_value): Don't relocate TLS variables.
2246 * printcmd.c (address_info): Don't relocate TLS variables.
2247
2248 2015-09-15 Pierre Langlois <pierre.langlois@arm.com>
2249
2250 * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
2251 (decode_adrp): Likewise.
2252 (decode_b): Likewise.
2253 (decode_bcond): Likewise.
2254 (decode_br): Likewise.
2255 (decode_cb): Likewise.
2256 (decode_eret): Likewise.
2257 (decode_movz): Likewise.
2258 (decode_orr_shifted_register_x): Likewise.
2259 (decode_ret): Likewise.
2260 (decode_stp_offset): Likewise.
2261 (decode_stp_offset_wb): Likewise.
2262 (decode_stur): Likewise.
2263 (decode_tb): Likewise.
2264 (aarch64_analyze_prologue): Likewise.
2265 (pass_in_x): Likewise.
2266 (pass_in_v): Likewise.
2267 (pass_on_stack): Likewise.
2268 (aarch64_push_dummy_call): Likewise.
2269 (aarch64_extract_return_value): Likewise.
2270 (aarch64_store_return_value): Likewise.
2271 (aarch64_return_value): Likewise.
2272 (aarch64_record_asimd_load_store): Likewise.
2273 (aarch64_record_load_store): Likewise.
2274 (aarch64_record_data_proc_simd_fp): Likewise.
2275
2276 2015-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2277
2278 * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
2279 * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
2280 (ppc64_skip_trampoline_code_1): ... here.
2281 (ppc64_skip_trampoline_code): New wrapper function.
2282 * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
2283
2284 2015-09-15 Yao Qi <yao.qi@linaro.org>
2285
2286 * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
2287 function.
2288 (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
2289 * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
2290 if target_can_do_single_step returns 1.
2291 * remote.c (struct vCont_action_support) <s, S>: New fields.
2292 (PACKET_vContSupported): New enum.
2293 (remote_protocol_features): New element for vContSupported.
2294 (remote_query_supported): Append "vContSupported+".
2295 (remote_vcont_probe): Remove support_s and support_S, use
2296 rs->supports_vCont.s and rs->supports_vCont.S instead. Disable
2297 vCont packet if c and C actions are not supported.
2298 (remote_can_do_single_step): New function.
2299 (init_remote_ops): Install it to to_can_do_single_step.
2300 (_initialize_remote): Call add_packet_config_cmd.
2301 * target.h (struct target_ops) <to_can_do_single_step>: New field.
2302 (target_can_do_single_step): New macro.
2303 * target-delegates.c: Re-generated.
2304
2305 2015-09-15 Yao Qi <yao.qi@linaro.org>
2306
2307 * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
2308 (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
2309 * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
2310 New function.
2311 (aarch64_siginfo_from_compat_siginfo): New function.
2312 * nat/aarch64-linux.h: Include signal.h.
2313 (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
2314 (compat_timer_t, compat_clock_t): Likewise.
2315 (struct compat_timeval): New.
2316 (union compat_sigval): New.
2317 (struct compat_siginfo): New.
2318 (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
2319 (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
2320 (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
2321 (cpt_si_band, cpt_si_fd): Likewise.
2322
2323 2015-09-14 Pedro Alves <palves@redhat.com>
2324
2325 * infrun.c (current_stop_id): New global.
2326 (get_stop_id, new_stop_id): New functions.
2327 (fetch_inferior_event): Handle normal_stop proceeding the target.
2328 (struct stop_context): New.
2329 (save_stop_context, release_stop_context_cleanup)
2330 (stop_context_changed): New functions.
2331 (normal_stop): Return true if the hook-stop changes the stop
2332 context.
2333 * infrun.h (get_stop_id): Declare.
2334 (normal_stop): Now returns int. Add documentation.
2335
2336 2015-09-14 Pierre-Marie de Rodat <derodat@adacore.com>
2337
2338 * ada-lang.c (ada_value_ptr_subscript): Update the heading
2339 comment. Handle packed arrays.
2340
2341 2015-09-14 Pedro Alves <palves@redhat.com>
2342
2343 * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
2344 mention of maint set/show target-non-stop.
2345
2346 2015-09-11 Don Breazeal <donb@codesourcery.com>
2347
2348 * NEWS: Announce new remote packets for the exec-events
2349 feature and the exec-events feature and associated commands.
2350
2351 2015-09-11 Don Breazeal <donb@codesourcery.com>
2352
2353 * remote.c (remote_exec_event_p): New function.
2354 (remote_insert_exec_catchpoint): New function.
2355 (remote_remove_exec_catchpoint): New function.
2356 (init_extended_remote_ops): Initialize extended_remote_ops
2357 members to_insert_exec_catchpoint and
2358 to_remove_exec_catchpoint.
2359
2360 2015-09-11 Don Breazeal <donb@codesourcery.com>
2361 Luis Machado <lgustavo@codesourcery.com>
2362
2363 * infrun.c (follow_exec): Use process-style ptid for
2364 exec message. Call add_inferior_with_spaces and
2365 target_follow_exec.
2366 * nat/linux-ptrace.c (linux_supports_traceexec): New function.
2367 * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
2368 * remote.c (remote_pspace_data): New static variable.
2369 (remote_pspace_data_cleanup): New function.
2370 (get_remote_exec_file): New function.
2371 (set_remote_exec_file_1): New function.
2372 (set_remote_exec_file): New function.
2373 (show_remote_exec_file): New function.
2374 (remote_exec_file): Delete static variable.
2375 (anonymous enum) <PACKET_exec_event_feature>: New
2376 enumeration constant.
2377 (remote_protocol_features): Add entry for exec-events feature.
2378 (remote_query_supported): Add client side of qSupported query
2379 for exec-events feature.
2380 (remote_follow_exec): New function.
2381 (remote_parse_stop_reply): Handle 'exec' stop reason.
2382 (extended_remote_run, extended_remote_create_inferior): Call
2383 get_remote_exec_file and set_remote_exec_file_1.
2384 (init_extended_remote_ops) <to_follow_exec>: Initialize new
2385 member.
2386 (_initialize_remote): Call
2387 register_program_space_data_with_cleanup. Call
2388 add_packet_config_cmd for remote exec-events feature.
2389 Modify call to add_setshow_string_noescape_cmd for exec-file
2390 to use new functions set_remote_exec_file and
2391 show_remote_exec_file.
2392 * target-debug.h, target-delegates.c: Regenerated.
2393 * target.c (target_follow_exec): New function.
2394 * target.h (struct target_ops) <to_follow_exec>: New member.
2395 (target_follow_exec): Declare new function.
2396
2397 2015-09-11 Pierre Langlois <pierre.langlois@arm.com>
2398
2399 * aarch64-tdep.c (decode_cb): Move up comment describing the
2400 encoding.
2401 (decode_tb): Fix a typo in comment above the function. Move up
2402 comment describing the encoding.
2403
2404 2015-09-11 Pierre Langlois <pierre.langlois@arm.com>
2405
2406 * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
2407
2408 2015-09-11 Mihail-Marian Nistor <mihail.nistor@freescale.com>
2409
2410 PR gdb/18947
2411 * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
2412 glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
2413
2414 2015-09-10 Simon Marchi <simon.marchi@ericsson.com>
2415
2416 * ada-lang.c (scan_discrim_bound): Factor out arithmetic
2417 operations.
2418
2419 2015-09-10 Simon Marchi <simon.marchi@ericsson.com>
2420
2421 * ada-lang.c (ada_search_struct_field): Constify parameters
2422 and/or variables..
2423 (xget_renaming_scope): Likewise.
2424 (ada_is_redundant_range_encoding): Likewise.
2425 (scan_discrim_bound): Likewise.
2426 (to_fixed_range_type): Likewise.
2427
2428 2015-09-10 Yao Qi <yao.qi@linaro.org>
2429
2430 * breakpoint.c (download_tracepoint_locations): New local
2431 can_download_tracepoint. Check the result of
2432 target_can_download_tracepoint and save it in
2433 can_download_tracepoint if there are tracepoints to download.
2434 * linux-nat.h (enum tribool): Move it to ...
2435 * common/common-types.h: ... here.
2436
2437 2015-09-09 Pedro Alves <palves@redhat.com>
2438
2439 * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
2440 * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
2441
2442 2015-09-09 Pedro Alves <palves@redhat.com>
2443
2444 * continuations.c (add_continuation, restore_thread_cleanup)
2445 (do_all_continuations_ptid, do_all_continuations_thread_callback)
2446 (do_all_continuations_thread, do_all_continuations)
2447 (discard_all_continuations_thread_callback)
2448 (discard_all_continuations_thread, discard_all_continuations)
2449 (add_intermediate_continuation)
2450 (do_all_intermediate_continuations_thread_callback)
2451 (do_all_intermediate_continuations_thread)
2452 (do_all_intermediate_continuations)
2453 (discard_all_intermediate_continuations_thread_callback)
2454 (discard_all_intermediate_continuations_thread)
2455 (discard_all_intermediate_continuations): Delete.
2456 * continuations.h (add_continuation, do_all_continuations)
2457 (do_all_continuations_thread, discard_all_continuations)
2458 (discard_all_continuations_thread, add_intermediate_continuation)
2459 (do_all_intermediate_continuations)
2460 (do_all_intermediate_continuations_thread)
2461 (discard_all_intermediate_continuations)
2462 (discard_all_intermediate_continuations_thread): Delete
2463 declarations.
2464 * event-top.c (stdin_event_handler): Delete references to
2465 continuations.
2466 * gdbthread.h (struct thread_info): Delete continuations and
2467 intermediate_continuations fields.
2468 * inf-loop.c (inferior_event_handler): Remove references to
2469 continuations.
2470 * infrun.c (infrun_thread_stop_requested_callback): Remove
2471 references to continuations.
2472 * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
2473 * thread.c: Don't include "continuations.h".
2474 (clear_thread_inferior_resources): Remove references to
2475 continuations.
2476
2477 2015-09-09 Pedro Alves <palves@redhat.com>
2478
2479 * infcall.c (struct dummy_frame_context_saver): Delete.
2480 (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
2481 (dummy_frame_context_saver_drop)
2482 (dummy_frame_context_saver_cleanup)
2483 (dummy_frame_context_saver_get_regs)
2484 (dummy_frame_context_saver_setup): Delete.
2485 * infcall.h (dummy_frame_context_saver_drop)
2486 (dummy_frame_context_saver_cleanup)
2487 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
2488 Delete.
2489 (get_return_value): Remove 'ctx_saver' paremeter. Adjust.
2490 * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
2491 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
2492
2493 2015-09-09 Pedro Alves <palves@redhat.com>
2494
2495 * breakpoint.c: Include "thread-fsm.h".
2496 (struct until_break_command_continuation_args): Delete.
2497 (struct until_break_fsm): New.
2498 (until_break_fsm_ops): New global.
2499 (new_until_break_fsm, until_break_fsm_should_stop): New functions.
2500 (until_break_command_continuation): Delete.
2501 (until_break_fsm_clean_up): New function.
2502 (until_break_fsm_async_reply_reason): New function.
2503 (until_break_command): Adjust to create an until_break_fsm instead
2504 of a continuation.
2505 (momentary_bkpt_print_it): No longer print MI's async-stop-reason
2506 here.
2507 * infcmd.c (struct until_next_fsm): New.
2508 (until_next_fsm_ops): New global.
2509 (new_until_next_fsm, until_next_fsm_should_stop): New function.
2510 (until_next_continuation): Delete.
2511 (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
2512 functions.
2513 (until_next_command): Adjust to create a new until_next_fsm
2514 instead of a continuation.
2515
2516 2015-09-09 Pedro Alves <palves@redhat.com>
2517
2518 * infcall.c: Include thread_fsm.h.
2519 (struct call_return_meta_info): New.
2520 (get_call_return_value): New function, factored out from
2521 call_function_by_hand_dummy.
2522 (struct call_thread_fsm): New.
2523 (call_thread_fsm_ops): New global.
2524 (new_call_thread_fsm, call_thread_fsm_should_stop)
2525 (call_thread_fsm_should_notify_stop): New functions.
2526 (run_inferior_call): Add 'sm' parameter. Associate the FSM with
2527 the thread.
2528 (call_function_by_hand_dummy): Create a new call_thread_fsm
2529 instance, associate it with the thread, and wait for the FSM to
2530 finish. If finished successfully, fetch the function's result
2531 value out of the FSM.
2532 * infrun.c (fetch_inferior_event): If the FSM says the stop
2533 shouldn't be notified, don't call normal_stop.
2534 (maybe_remove_breakpoints): New function, factored out from ...
2535 (normal_stop): ... here. Simplify.
2536 * infrun.h (maybe_remove_breakpoints): Declare.
2537 * thread-fsm.c (thread_fsm_should_notify_stop): New function.
2538 (thread-fsm.h) <struct thread_fsm_ops>: New field.
2539 (thread_fsm_should_notify_stop): Declare.
2540
2541 2015-09-09 Pedro Alves <palves@redhat.com>
2542
2543 * Makefile.in (COMMON_OBS): Add thread-fsm.o.
2544 * breakpoint.c (handle_jit_event): Print debug output.
2545 (bpstat_what): Split event callback handling to ...
2546 (bpstat_run_callbacks): ... this new function.
2547 (momentary_bkpt_print_it): No longer handle bp_finish here.
2548 * breakpoint.h (bpstat_run_callbacks): Declare.
2549 * gdbthread.h (struct thread_info) <step_multi>: Delete field.
2550 <thread_fsm>: New field.
2551 (thread_cancel_execution_command): Declare.
2552 * infcmd.c: Include thread-fsm.h.
2553 (struct step_command_fsm): New.
2554 (step_command_fsm_ops): New global.
2555 (new_step_command_fsm, step_command_fsm_prepare): New functions.
2556 (step_1): Adjust to use step_command_fsm_prepare and
2557 prepare_one_step.
2558 (struct step_1_continuation_args): Delete.
2559 (step_1_continuation): Delete.
2560 (step_command_fsm_should_stop): New function.
2561 (step_once): Delete.
2562 (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
2563 (prepare_one_step): New function, based on step_once.
2564 (until_next_command): Remove step_multi reference.
2565 (struct return_value_info): New.
2566 (print_return_value): Rename to ...
2567 (print_return_value_1): ... this. New struct return_value_info
2568 parameter. Adjust.
2569 (print_return_value): Reimplement as wrapper around
2570 print_return_value_1.
2571 (struct finish_command_fsm): New.
2572 (finish_command_continuation): Delete.
2573 (finish_command_fsm_ops): New global.
2574 (new_finish_command_fsm, finish_command_fsm_should_stop): New
2575 functions.
2576 (finish_command_fsm_clean_up, finish_command_fsm_return_value):
2577 New.
2578 (finish_command_continuation_free_arg): Delete.
2579 (finish_command_fsm_async_reply_reason): New.
2580 (finish_backward, finish_forward): Change symbol parameter to a
2581 finish_command_fsm. Adjust.
2582 (finish_command): Create a finish_command_fsm. Adjust.
2583 * infrun.c: Include "thread-fsm.h".
2584 (clear_proceed_status_thread): Delete the thread's FSM.
2585 (infrun_thread_stop_requested_callback): Cancel the thread's
2586 execution command.
2587 (clean_up_just_stopped_threads_fsms): New function.
2588 (fetch_inferior_event): Handle the event_thread's should_stop
2589 method saying the command isn't done yet.
2590 (process_event_stop_test): Run breakpoint callbacks here.
2591 (print_stop_event): Rename to ...
2592 (print_stop_location): ... this.
2593 (restore_current_uiout_cleanup): New function.
2594 (print_stop_event): Reimplement.
2595 (normal_stop): No longer notify the end_stepping_range observers
2596 here handle "step N" nor "finish" here. No longer call
2597 print_stop_event here.
2598 * infrun.h (struct return_value_info): Forward declare.
2599 (print_return_value): Declare.
2600 (print_stop_event): Change prototype.
2601 * thread-fsm.c: New file.
2602 * thread-fsm.h: New file.
2603 * thread.c: Include "thread-fsm.h".
2604 (thread_cancel_execution_command): New function.
2605 (clear_thread_inferior_resources): Call it.
2606 * cli/cli-interp.c (cli_on_normal_stop): New function.
2607 (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
2608 observer.
2609 * mi/mi-interp.c: Include "thread-fsm.h".
2610 (restore_current_uiout_cleanup): Delete.
2611 (mi_on_normal_stop): If the thread has an FSM associated, and it
2612 finished, ask it for the async-reply-reason to print. Always call
2613 print_stop_event here, regardless of the top-level interpreter.
2614 Check bpstat_what to tell whether an asynchronous breakpoint hit
2615 triggered.
2616 * tui/tui-interp.c (tui_on_normal_stop): New function.
2617 (tui_init): Install tui_on_normal_stop as normal_stop observer.
2618
2619 2015-09-09 Pedro Alves <palves@redhat.com>
2620
2621 * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
2622 check whether the target can async.
2623 * inf-loop.c (inferior_event_handler): Only call target_async if
2624 the target can async.
2625 * infcall.c: Include top.h and interps.h.
2626 (run_inferior_call): For the interpreter to sync mode while
2627 running the infcall. Call wait_sync_command_done instead of
2628 wait_for_inferior plus normal_stop.
2629 * infcmd.c (prepare_execution_command): Don't check whether the
2630 target can async when running in the foreground.
2631 (step_1): Delete synchronous case handling.
2632 (step_once): Always install a continuation, even in sync mode.
2633 (until_next_command, finish_forward): Don't check whether the
2634 target can async.
2635 (attach_command_post_wait, notice_new_inferior): Always install a
2636 continuation, even in sync mode.
2637 * infrun.c (mark_infrun_async_event_handler): New function.
2638 (proceed): In sync mode, mark infrun's event source instead of
2639 waiting for events here.
2640 (fetch_inferior_event): If the target can't async, do a blocking
2641 wait.
2642 (prepare_to_wait): In sync mode, mark infrun's event source.
2643 (infrun_async_inferior_event_handler): No longer bail out if the
2644 target can't async.
2645 * infrun.h (mark_infrun_async_event_handler): New declaration.
2646 * linux-nat.c (linux_nat_wait_1): Remove calls to
2647 set_sigint_trap/clear_sigint_trap.
2648 (linux_nat_terminal_inferior): No longer check whether the target
2649 can async.
2650 * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
2651 comment.
2652 (mi_execute_command_input_handler): No longer check whether the
2653 target is async. Update and simplify comment.
2654 * target.c (default_target_wait): New function.
2655 * target.h (struct target_ops) <to_wait>: Now defaults to
2656 default_target_wait.
2657 (default_target_wait): Declare.
2658 * top.c (wait_sync_command_done): New function, factored out from
2659 ...
2660 (maybe_wait_sync_command_done): ... this.
2661 * top.h (wait_sync_command_done): Declare.
2662 * target-delegates.c: Regenerate.
2663
2664 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
2665
2666 * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
2667 * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
2668 Remove include of sys/utsname.h.
2669 (linux_determine_kernel_ptr_bits): Remove.
2670 (linux_determine_kernel_start): New.
2671 (perf_event_is_kernel_addr): Remove tinfo argument. Update users.
2672 Update check.
2673 (perf_event_skip_bts_record): Remove tinfo argument. Update users.
2674 (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
2675 initialization.
2676 * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
2677 assignment.
2678
2679 2015-09-07 Pedro Alves <palves@redhat.com>
2680
2681 * guile/guile-internal.h (as_a_scm_t_subr): New.
2682 * guile/guile.c (misc_guile_functions): Use it.
2683 * guile/scm-arch.c (arch_functions): Use it.
2684 * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
2685 Use it.
2686 * guile/scm-breakpoint.c (breakpoint_functions): Use it.
2687 * guile/scm-cmd.c (command_functions): Use it.
2688 * guile/scm-disasm.c (disasm_functions): Use it.
2689 * guile/scm-exception.c (exception_functions)
2690 (private_exception_functions): Use it.
2691 * guile/scm-frame.c (frame_functions)
2692 * guile/scm-gsmob.c (gsmob_functions): Use it.
2693 * guile/scm-iterator.c (iterator_functions): Use it.
2694 * guile/scm-lazy-string.c (lazy_string_functions): Use it.
2695 * guile/scm-math.c (math_functions): Use it.
2696 * guile/scm-objfile.c (objfile_functions): Use it.
2697 * guile/scm-param.c (parameter_functions): Use it.
2698 * guile/scm-ports.c (port_functions, private_port_functions): Use
2699 it.
2700 * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
2701 * guile/scm-progspace.c (pspace_functions): Use it.
2702 * guile/scm-string.c (string_functions): Use it.
2703 * guile/scm-symbol.c (symbol_functions): Use it.
2704 * guile/scm-symtab.c (symtab_functions): Use it.
2705 * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
2706 it.
2707 * guile/scm-value.c (value_functions): Use it.
2708
2709 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2710
2711 * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
2712 (tui_next_win): Likewise.
2713 (tui_prev_win): Likewise.
2714 (tui_partial_win_by_name): Likewise.
2715 (tui_init_generic_part): Likewise.
2716 (init_content_element): Likewise.
2717 (tui_del_window): Likewise.
2718 (tui_free_window): Likewise.
2719 (tui_del_data_windows): Likewise.
2720 (tui_free_data_content): Likewise.
2721 * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
2722 * tui/tui-regs.c (tui_show_register_group): Likewise.
2723 * tui/tui-win.c (tui_resize_all): Likewise.
2724 (tui_set_focus): Likewise.
2725 (tui_set_win_height): Likewise.
2726 (make_invisible_and_set_new_height): Likewise.
2727 * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
2728 * tui/tui-wingeneral.c (make_visible): Likewise.
2729
2730 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2731
2732 * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
2733
2734 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2735
2736 * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
2737 pointer.
2738 * dbxread.c (dbx_end_psymtab): Likewise.
2739 * gnu-nat.c (gnu_write_inferior): Likewise.
2740 * mdebugread.c (cross_ref): Likewise.
2741 * p-valprint.c (pascal_val_print): Likewise.
2742 * xcoffread.c (xcoff_end_psymtab): Likewise.
2743
2744 2015-09-04 Yao Qi <yao.qi@linaro.org>
2745
2746 * NEWS: Mention the aarch64 multi-arch debugging support.
2747
2748 2015-09-03 Pierre-Marie de Rodat <derodat@adacore.com>
2749
2750 * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
2751 type instead of a TYPE_CODE_INT one for the string_char_type
2752 and the ada_primitive_type_char types.
2753
2754 2015-09-03 Yao Qi <yao.qi@linaro.org>
2755
2756 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
2757 Move code to aarch64_linux_region_ok_for_watchpoint. Call
2758 aarch64_linux_region_ok_for_watchpoint.
2759 * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
2760 New function.
2761 * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
2762 Declare it.
2763
2764 2015-09-02 Patrick Palka <patrick@parcs.ath.cx>
2765
2766 * gdb_obstack.h (obstack_strdup): Declare.
2767 * gdb_obstack.c (obstack_strdup): Define.
2768 * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
2769 * gdbarch.c: Regenerate.
2770 * gdbarch.h: Regenerate.
2771 * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
2772
2773 2015-09-02 Patrick Palka <patrick@parcs.ath.cx>
2774
2775 * gdbtypes.c (copy_type_recursive): Update documentation.
2776
2777 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2778
2779 * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
2780 as zero.
2781
2782 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2783
2784 * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
2785
2786 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2787
2788 * solib-svr4.c (solib_event_probe_action): Call
2789 get_probe_argument_count using TRY...CATCH.
2790 (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
2791
2792 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2793
2794 * probe.h (struct probe_ops) <get_probe_argument_count,
2795 evaluate_probe_argument, enable_probe, disable_probe>: Mention in
2796 the comment that the function can throw an exception.
2797 (get_probe_argument_count): Likewise.
2798 (evaluate_probe_argument): Likewise.
2799 * stap-probe.c (stap_get_opcode): Call error instead of
2800 internal_error.
2801 (stap_get_expected_argument_type): Likewise. Add argument
2802 'probe'. Improve error message by mentioning the probe's name.
2803 (stap_parse_probe_arguments): Adjust call to
2804 stap_get_expected_argument_type.
2805 (stap_get_arg): Add comment. Assert that 'probe->args_parsed' is
2806 not zero. Call internal_error if GDB requests an argument but the
2807 probe has no arguments.
2808
2809 2015-09-01 Pierre-Marie de Rodat <derodat@adacore.com>
2810
2811 * ada-lang.c (ada_resolve_function): Do not ask the user what
2812 match to use when in completion mode.
2813
2814 2015-08-31 Andrew Burgess <andrew.burgess@embecosm.com>
2815
2816 * tui/tui-data.c (tui_win_name): Make local variable const, remove
2817 cast of NULL.
2818
2819 2015-08-31 Max Filippov <jcmvbkbc@gmail.com>
2820
2821 * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
2822 call_abi using XSHAL_ABI macro.
2823
2824 2015-08-29 Doug Evans <xdje42@gmail.com>
2825
2826 * symtab.h (struct symbol): Tweak comment.
2827
2828 2015-08-29 Patrick Palka <patrick@parcs.ath.cx>
2829
2830 * gdbtypes.c (alloc_type_arch): Allocate the type on the given
2831 gdbarch obstack instead of on the heap. Update commentary
2832 accordingly.
2833
2834 2015-08-28 Joel Brobecker <brobecker@adacore.com>
2835
2836 GDB 7.10 released.
2837
2838 2015-08-28 Simon Marchi <simon.marchi@ericsson.com>
2839
2840 * NEWS: Update entry about non-8-bits addressable memory.
2841
2842 2015-08-28 Ulrich Weigand <uweigand@de.ibm.com>
2843
2844 Revert:
2845 2014-11-06 Doug Evans <xdje42@gmail.com>
2846 * solib.c (solib_global_lookup): Fetch arch from objfile,
2847 not target_gdbarch.
2848
2849 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
2850
2851 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
2852 attempt to relocate a TLS variable offset.
2853
2854 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
2855
2856 * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
2857 registered yet. Set inferior_ptid while calling target_read_memory.
2858
2859 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
2860
2861 * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
2862 (GDB_ARCH_IS_TRAP_BRKPT): ... this. Add __powerpc__ case.
2863 * linux-nat.c (check_stopped_by_breakpoint): Use
2864 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
2865
2866 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
2867
2868 * linux-thread-db.c (thread_db_get_thread_local_address): If the
2869 thread was not yet discovered, use thread_from_lwp instead of
2870 calling thread_db_find_new_threads_1.
2871
2872 2015-08-27 Simon Marchi <simon.marchi@ericsson.com>
2873
2874 * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
2875 statements.
2876
2877 2015-08-27 Simon Marchi <simon.marchi@ericsson.com>
2878
2879 * NEWS: Document support for non-8-bits addressable memory.
2880
2881 2015-08-27 Pedro Alves <palves@redhat.com>
2882
2883 * configure.ac: Remove AC_TYPE_SIGNAL call.
2884 * configure, config.in: Regenerate.
2885
2886 2015-08-27 Pedro Alves <palves@redhat.com>
2887
2888 * cp-support.c (gdb_demangle): Use sighandler_t. Remove cast.
2889 * extension-priv.h: Include signal.h.
2890 (struct signal_handler) <handler>: Change type to sighandler_t.
2891 * extension.c (install_gdb_sigint_handler): Use sighandler_t.
2892 * inflow.c (sigint_ours, sigquit_ours): Change type to
2893 sighandler_t.
2894 (child_terminal_inferior): Remove casts.
2895 (child_terminal_ours_1, new_tty): Use sighandler_t. Remove casts.
2896 (osig): Change type to sighandler_t.
2897 * nto-procfs.c (ofunc): Change type to sighandler_t.
2898 (procfs_wait): Remove casts.
2899 * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
2900 * remote-sim.c (gdbsim_wait): Use sighandler_t.
2901 * utils.c (wait_to_die_with_timeout): Use sighandler_t.
2902
2903 2015-08-27 Pedro Alves <palves@redhat.com>
2904
2905 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
2906 * gnulib/aclocal.m4: Renegerate.
2907 * gnulib/config.in: Renegerate.
2908 * gnulib/configure: Renegerate.
2909 * gnulib/import/Makefile.am: Update.
2910 * gnulib/import/Makefile.in: Regenerate.
2911 * gnulib/import/m4/gnulib-cache.m4: Update.
2912 * gnulib/import/m4/gnulib-comp.m4: Update.
2913 * gnulib/import/m4/signal_h.m4: New file.
2914 * gnulib/import/signal.in.h: New file.
2915
2916 2015-08-27 Pedro Alves <palves@redhat.com>
2917
2918 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
2919 (MIN_MEMORY_PACKET_SIZE): New.
2920 (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
2921 (get_memory_packet_size): Adjust. No longer limit the max packet
2922 size.
2923 (set_memory_packet_size): Adjust, and remove dead code.
2924 (remote_check_symbols): Use xmalloc and a cleanup instead of
2925 alloca.
2926 (remote_packet_size): No longer cap the packet size.
2927 (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
2928
2929 2015-08-26 Luis Machado <lgustavo@codesourcery.com>
2930
2931 * compile/compile.c (compile_to_object): Mention language in
2932 error message.
2933
2934 2015-08-26 Patrick Palka <patrick@parcs.ath.cx>
2935
2936 * target.c (target_pre_inferior): Unset attach_flag.
2937
2938 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
2939
2940 * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
2941 * gdbarch.c: Re-generate.
2942
2943 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
2944
2945 * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
2946 function with the XNEW-family equivalent.
2947 * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
2948 * ada-exp.y (write_ambiguous_var): Likewise.
2949 * ada-lang.c (resolve_subexp): Likewise.
2950 (user_select_syms): Likewise.
2951 (assign_aggregate): Likewise.
2952 (ada_evaluate_subexp): Likewise.
2953 (cache_symbol): Likewise.
2954 * addrmap.c (allocate_key): Likewise.
2955 (addrmap_create_mutable): Likewise.
2956 * aix-thread.c (sync_threadlists): Likewise.
2957 * alpha-tdep.c (alpha_push_dummy_call): Likewise.
2958 (alpha_gdbarch_init): Likewise.
2959 * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
2960 * arm-linux-nat.c (arm_linux_add_process): Likewise.
2961 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
2962 * arm-tdep.c (push_stack_item): Likewise.
2963 (arm_displaced_step_copy_insn): Likewise.
2964 (arm_gdbarch_init): Likewise.
2965 (_initialize_arm_tdep): Likewise.
2966 * avr-tdep.c (push_stack_item): Likewise.
2967 * ax-general.c (new_agent_expr): Likewise.
2968 * block.c (block_initialize_namespace): Likewise.
2969 * breakpoint.c (alloc_counted_command_line): Likewise.
2970 (update_dprintf_command_list): Likewise.
2971 (parse_breakpoint_sals): Likewise.
2972 (decode_static_tracepoint_spec): Likewise.
2973 (until_break_command): Likewise.
2974 (clear_command): Likewise.
2975 (update_global_location_list): Likewise.
2976 (get_breakpoint_objfile_data) Likewise.
2977 * btrace.c (ftrace_new_function): Likewise.
2978 (btrace_set_insn_history): Likewise.
2979 (btrace_set_call_history): Likewise.
2980 * buildsym.c (add_symbol_to_list): Likewise.
2981 (record_pending_block): Likewise.
2982 (start_subfile): Likewise.
2983 (start_buildsym_compunit): Likewise.
2984 (push_subfile): Likewise.
2985 (end_symtab_get_static_block): Likewise.
2986 (buildsym_init): Likewise.
2987 * cli/cli-cmds.c (source_command): Likewise.
2988 * cli/cli-decode.c (add_cmd): Likewise.
2989 * cli/cli-script.c (build_command_line): Likewise.
2990 (setup_user_args): Likewise.
2991 (realloc_body_list): Likewise.
2992 (process_next_line): Likewise.
2993 (copy_command_lines): Likewise.
2994 * cli/cli-setshow.c (do_set_command): Likewise.
2995 * coff-pe-read.c (read_pe_exported_syms): Likewise.
2996 * coffread.c (coff_locate_sections): Likewise.
2997 (coff_symtab_read): Likewise.
2998 (coff_read_struct_type): Likewise.
2999 * common/cleanups.c (make_my_cleanup2): Likewise.
3000 * common/common-exceptions.c (throw_it): Likewise.
3001 * common/filestuff.c (make_cleanup_close): Likewise.
3002 * common/format.c (parse_format_string): Likewise.
3003 * common/queue.h (DEFINE_QUEUE_P): Likewise.
3004 * compile/compile-object-load.c (munmap_list_add): Likewise.
3005 (compile_object_load): Likewise.
3006 * compile/compile-object-run.c (compile_object_run): Likewise.
3007 * compile/compile.c (append_args): Likewise.
3008 * corefile.c (specify_exec_file_hook): Likewise.
3009 * cp-support.c (make_symbol_overload_list): Likewise.
3010 * cris-tdep.c (push_stack_item): Likewise.
3011 (cris_gdbarch_init): Likewise.
3012 * ctf.c (ctf_trace_file_writer_new): Likewise.
3013 * dbxread.c (init_header_files): Likewise.
3014 (add_new_header_file): Likewise.
3015 (init_bincl_list): Likewise.
3016 (dbx_end_psymtab): Likewise.
3017 (start_psymtab): Likewise.
3018 (dbx_end_psymtab): Likewise.
3019 * dcache.c (dcache_init): Likewise.
3020 * dictionary.c (dict_create_hashed): Likewise.
3021 (dict_create_hashed_expandable): Likewise.
3022 (dict_create_linear): Likewise.
3023 (dict_create_linear_expandable): Likewise.
3024 * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
3025 * dummy-frame.c (register_dummy_frame_dtor): Likewise.
3026 * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
3027 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3028 (decode_frame_entry_1): Likewise.
3029 * dwarf2expr.c (new_dwarf_expr_context): Likewise.
3030 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
3031 * dwarf2read.c (dwarf2_has_info): Likewise.
3032 (create_signatured_type_table_from_index): Likewise.
3033 (dwarf2_read_index): Likewise.
3034 (dw2_get_file_names_reader): Likewise.
3035 (create_all_type_units): Likewise.
3036 (read_cutu_die_from_dwo): Likewise.
3037 (init_tu_and_read_dwo_dies): Likewise.
3038 (init_cutu_and_read_dies): Likewise.
3039 (create_all_comp_units): Likewise.
3040 (queue_comp_unit): Likewise.
3041 (inherit_abstract_dies): Likewise.
3042 (read_call_site_scope): Likewise.
3043 (dwarf2_add_field): Likewise.
3044 (dwarf2_add_typedef): Likewise.
3045 (dwarf2_add_member_fn): Likewise.
3046 (attr_to_dynamic_prop): Likewise.
3047 (abbrev_table_alloc_abbrev): Likewise.
3048 (abbrev_table_read_table): Likewise.
3049 (add_include_dir): Likewise.
3050 (add_file_name): Likewise.
3051 (dwarf_decode_line_header): Likewise.
3052 (dwarf2_const_value_attr): Likewise.
3053 (dwarf_alloc_block): Likewise.
3054 (parse_macro_definition): Likewise.
3055 (set_die_type): Likewise.
3056 (write_psymtabs_to_index): Likewise.
3057 (create_cus_from_index): Likewise.
3058 (dwarf2_create_include_psymtab): Likewise.
3059 (process_psymtab_comp_unit_reader): Likewise.
3060 (build_type_psymtab_dependencies): Likewise.
3061 (read_comp_units_from_section): Likewise.
3062 (compute_compunit_symtab_includes): Likewise.
3063 (create_dwo_unit_in_dwp_v1): Likewise.
3064 (create_dwo_unit_in_dwp_v2): Likewise.
3065 (read_func_scope): Likewise.
3066 (process_structure_scope): Likewise.
3067 (mark_common_block_symbol_computed): Likewise.
3068 (load_partial_dies): Likewise.
3069 (dwarf2_symbol_mark_computed): Likewise.
3070 * elfread.c (elf_symfile_segments): Likewise.
3071 (elf_read_minimal_symbols): Likewise.
3072 * environ.c (make_environ): Likewise.
3073 * eval.c (evaluate_subexp_standard): Likewise.
3074 * event-loop.c (create_file_handler): Likewise.
3075 (create_async_signal_handler): Likewise.
3076 (create_async_event_handler): Likewise.
3077 (create_timer): Likewise.
3078 * exec.c (build_section_table): Likewise.
3079 * fbsd-nat.c (fbsd_remember_child): Likewise.
3080 * fork-child.c (fork_inferior): Likewise.
3081 * frv-tdep.c (new_variant): Likewise.
3082 * gdbarch.sh (gdbarch_alloc): Likewise.
3083 (append_name): Likewise.
3084 * gdbtypes.c (rank_function): Likewise.
3085 (copy_type_recursive): Likewise.
3086 (add_dyn_prop): Likewise.
3087 * gnu-nat.c (make_proc): Likewise.
3088 (make_inf): Likewise.
3089 (gnu_write_inferior): Likewise.
3090 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
3091 (build_std_type_info_type): Likewise.
3092 * guile/scm-param.c (compute_enum_list): Likewise.
3093 * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
3094 * guile/scm-value.c (gdbscm_value_call): Likewise.
3095 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
3096 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
3097 (read_unwind_info): Likewise.
3098 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
3099 * infcall.c (dummy_frame_context_saver_setup): Likewise.
3100 (call_function_by_hand_dummy): Likewise.
3101 * infcmd.c (step_once): Likewise.
3102 (finish_forward): Likewise.
3103 (attach_command): Likewise.
3104 (notice_new_inferior): Likewise.
3105 * inferior.c (add_inferior_silent): Likewise.
3106 * infrun.c (add_displaced_stepping_state): Likewise.
3107 (save_infcall_control_state): Likewise.
3108 (save_inferior_ptid): Likewise.
3109 (_initialize_infrun): Likewise.
3110 * jit.c (bfd_open_from_target_memory): Likewise.
3111 (jit_gdbarch_data_init): Likewise.
3112 * language.c (add_language): Likewise.
3113 * linespec.c (decode_line_2): Likewise.
3114 * linux-nat.c (add_to_pid_list): Likewise.
3115 (add_initial_lwp): Likewise.
3116 * linux-thread-db.c (add_thread_db_info): Likewise.
3117 (record_thread): Likewise.
3118 (info_auto_load_libthread_db): Likewise.
3119 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
3120 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
3121 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
3122 * m88k-tdep.c (m88k_analyze_prologue): Likewise.
3123 * macrocmd.c (macro_define_command): Likewise.
3124 * macroexp.c (gather_arguments): Likewise.
3125 * macroscope.c (sal_macro_scope): Likewise.
3126 * macrotab.c (new_macro_table): Likewise.
3127 * mdebugread.c (push_parse_stack): Likewise.
3128 (parse_partial_symbols): Likewise.
3129 (parse_symbol): Likewise.
3130 (psymtab_to_symtab_1): Likewise.
3131 (new_block): Likewise.
3132 (new_psymtab): Likewise.
3133 (mdebug_build_psymtabs): Likewise.
3134 (add_pending): Likewise.
3135 (elfmdebug_build_psymtabs): Likewise.
3136 * mep-tdep.c (mep_gdbarch_init): Likewise.
3137 * mi/mi-main.c (mi_execute_command): Likewise.
3138 * mi/mi-parse.c (mi_parse_argv): Likewise.
3139 * minidebug.c (lzma_open): Likewise.
3140 * minsyms.c (terminate_minimal_symbol_table): Likewise.
3141 * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
3142 * mips-tdep.c (mips_gdbarch_init): Likewise.
3143 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
3144 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
3145 * mt-tdep.c (mt_registers_info): Likewise.
3146 * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
3147 * nat/linux-btrace.c (linux_enable_bts): Likewise.
3148 (linux_enable_pt): Likewise.
3149 * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
3150 (linux_xfer_osdata_processgroups): Likewise.
3151 * nios2-tdep.c (nios2_gdbarch_init): Likewise.
3152 * nto-procfs.c (procfs_meminfo): Likewise.
3153 * objc-lang.c (start_msglist): Likewise.
3154 (selectors_info): Likewise.
3155 (classes_info): Likewise.
3156 (find_methods): Likewise.
3157 * objfiles.c (allocate_objfile): Likewise.
3158 (update_section_map): Likewise.
3159 * osabi.c (gdbarch_register_osabi): Likewise.
3160 (gdbarch_register_osabi_sniffer): Likewise.
3161 * parse.c (start_arglist): Likewise.
3162 * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
3163 (hwdebug_insert_point): Likewise.
3164 * printcmd.c (display_command): Likewise.
3165 (ui_printf): Likewise.
3166 * procfs.c (create_procinfo): Likewise.
3167 (load_syscalls): Likewise.
3168 (proc_get_LDT_entry): Likewise.
3169 (proc_update_threads): Likewise.
3170 * prologue-value.c (make_pv_area): Likewise.
3171 (pv_area_store): Likewise.
3172 * psymtab.c (extend_psymbol_list): Likewise.
3173 (init_psymbol_list): Likewise.
3174 (allocate_psymtab): Likewise.
3175 * python/py-inferior.c (add_thread_object): Likewise.
3176 * python/py-param.c (compute_enum_values): Likewise.
3177 * python/py-value.c (valpy_call): Likewise.
3178 * python/py-varobj.c (py_varobj_iter_next): Likewise.
3179 * python/python.c (ensure_python_env): Likewise.
3180 * record-btrace.c (record_btrace_start_replaying): Likewise.
3181 * record-full.c (record_full_reg_alloc): Likewise.
3182 (record_full_mem_alloc): Likewise.
3183 (record_full_end_alloc): Likewise.
3184 (record_full_core_xfer_partial): Likewise.
3185 * regcache.c (get_thread_arch_aspace_regcache): Likewise.
3186 * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
3187 * remote-notif.c (remote_notif_state_allocate): Likewise.
3188 * remote.c (demand_private_info): Likewise.
3189 (remote_notif_stop_alloc_reply): Likewise.
3190 (remote_enable_btrace): Likewise.
3191 * reverse.c (save_bookmark_command): Likewise.
3192 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
3193 * rx-tdep.c (rx_gdbarch_init): Likewise.
3194 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
3195 * ser-go32.c (dos_get_tty_state): Likewise.
3196 (dos_copy_tty_state): Likewise.
3197 * ser-mingw.c (ser_windows_open): Likewise.
3198 (ser_console_wait_handle): Likewise.
3199 (ser_console_get_tty_state): Likewise.
3200 (make_pipe_state): Likewise.
3201 (net_windows_open): Likewise.
3202 * ser-unix.c (hardwire_get_tty_state): Likewise.
3203 (hardwire_copy_tty_state): Likewise.
3204 * solib-aix.c (solib_aix_new_lm_info): Likewise.
3205 * solib-dsbt.c (dsbt_current_sos): Likewise.
3206 (dsbt_relocate_main_executable): Likewise.
3207 * solib-frv.c (frv_current_sos): Likewise.
3208 (frv_relocate_main_executable): Likewise.
3209 * solib-spu.c (spu_bfd_fopen): Likewise.
3210 * solib-svr4.c (lm_info_read): Likewise.
3211 (svr4_copy_library_list): Likewise.
3212 (svr4_default_sos): Likewise.
3213 * source.c (find_source_lines): Likewise.
3214 (line_info): Likewise.
3215 (add_substitute_path_rule): Likewise.
3216 * spu-linux-nat.c (spu_bfd_open): Likewise.
3217 * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
3218 * stabsread.c (dbx_lookup_type): Likewise.
3219 (read_type): Likewise.
3220 (read_member_functions): Likewise.
3221 (read_struct_fields): Likewise.
3222 (read_baseclasses): Likewise.
3223 (read_args): Likewise.
3224 (_initialize_stabsread): Likewise.
3225 * stack.c (func_command): Likewise.
3226 * stap-probe.c (handle_stap_probe): Likewise.
3227 * symfile.c (addrs_section_sort): Likewise.
3228 (addr_info_make_relative): Likewise.
3229 (load_section_callback): Likewise.
3230 (add_symbol_file_command): Likewise.
3231 (init_filename_language_table): Likewise.
3232 * symtab.c (create_filename_seen_cache): Likewise.
3233 (sort_search_symbols_remove_dups): Likewise.
3234 (search_symbols): Likewise.
3235 * target.c (make_cleanup_restore_target_terminal): Likewise.
3236 * thread.c (new_thread): Likewise.
3237 (enable_thread_stack_temporaries): Likewise.
3238 (make_cleanup_restore_current_thread): Likewise.
3239 (thread_apply_all_command): Likewise.
3240 * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
3241 * top.c (gdb_readline_wrapper): Likewise.
3242 * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
3243 * tracepoint.c (trace_find_line_command): Likewise.
3244 (all_tracepoint_actions_and_cleanup): Likewise.
3245 (make_cleanup_restore_current_traceframe): Likewise.
3246 (get_uploaded_tp): Likewise.
3247 (get_uploaded_tsv): Likewise.
3248 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
3249 (tui_alloc_win_info): Likewise.
3250 (tui_alloc_content): Likewise.
3251 (tui_add_content_elements): Likewise.
3252 * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
3253 (tui_set_disassem_content): Likewise.
3254 * ui-file.c (ui_file_new): Likewise.
3255 (stdio_file_new): Likewise.
3256 (tee_file_new): Likewise.
3257 * utils.c (make_cleanup_restore_integer): Likewise.
3258 (add_internal_problem_command): Likewise.
3259 * v850-tdep.c (v850_gdbarch_init): Likewise.
3260 * valops.c (find_oload_champ): Likewise.
3261 * value.c (allocate_value_lazy): Likewise.
3262 (record_latest_value): Likewise.
3263 (create_internalvar): Likewise.
3264 * varobj.c (install_variable): Likewise.
3265 (new_variable): Likewise.
3266 (new_root_variable): Likewise.
3267 (cppush): Likewise.
3268 (_initialize_varobj): Likewise.
3269 * windows-nat.c (windows_make_so): Likewise.
3270 * x86-nat.c (x86_add_process): Likewise.
3271 * xcoffread.c (arrange_linetable): Likewise.
3272 (allocate_include_entry): Likewise.
3273 (process_linenos): Likewise.
3274 (SYMBOL_DUP): Likewise.
3275 (xcoff_start_psymtab): Likewise.
3276 (xcoff_end_psymtab): Likewise.
3277 * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
3278 * xtensa-tdep.c (xtensa_register_type): Likewise.
3279 * gdbarch.c: Regenerate.
3280 * gdbarch.h: Regenerate.
3281
3282 2015-08-25 Don Breazeal <donb@codesourcery.com>
3283
3284 * infrun.c (follow_exec): Re-order operations for
3285 handling follow-exec-mode "new".
3286 (handle_inferior_event_1): Assign ecs->event_thread
3287 to the current thread.
3288 * remote.c (get_remote_arch_state): Add an assertion.
3289
3290 2015-08-26 Pedro Alves <palves@redhat.com>
3291
3292 * MAINTAINERS: Add Markus Metzger as btrace maintainer.
3293
3294 2015-08-25 Pedro Alves <palves@redhat.com>
3295
3296 PR gdb/18804
3297 * defs.h (maybe_quit): Declare.
3298 (QUIT): Now calls maybe_quit.
3299 * event-loop.c (clear_async_signal_handler)
3300 (async_signal_handler_is_marked): New functions.
3301 * event-loop.h (async_signal_handler_is_marked)
3302 (clear_async_signal_handler): New declarations.
3303 * remote.c (remote_check_pending_interrupt): New function.
3304 (interrupt_query): Use make_cleanup_restore_target_terminal. No
3305 longer check whether the target is async. If waiting for a stop
3306 reply, and a Ctrl-C as been sent to the target, offer to
3307 disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
3308 Otherwise do not disconnect and throw a quit.
3309 (_initialize_remote): Install remote_check_pending_interrupt as
3310 to_check_pending_interrupt.
3311 * target.c (target_check_pending_interrupt): New function.
3312 * target.h (struct target_ops) <to_check_pending_interrupt>: New
3313 field.
3314 (target_check_pending_interrupt): New declaration.
3315 * utils.c (maybe_quit): New function.
3316 * target-delegates.c: Regenerate.
3317
3318 2015-08-25 Yao Qi <yao.qi@linaro.org>
3319
3320 * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
3321 Rename local variable pid to tid, and get lwpid of lwp. Update
3322 debug output.
3323
3324 2015-08-25 Pierre-Marie de Rodat <derodat@adacore.com>
3325
3326 * ada-lang.c (ada_read_var_value): Add a var_block argument
3327 and pass it to default_read_var_value.
3328 * block.c (block_static_link): New accessor.
3329 * block.h (block_static_link): Declare it.
3330 * buildsym.c (finish_block_internal): Add a static_link
3331 argument. If there is a static link, associate it to the new
3332 block.
3333 (finish_block): Add a static link argument and pass it to
3334 finish_block_internal.
3335 (end_symtab_get_static_block): Update calls to finish_block and
3336 to finish_block_internal.
3337 (end_symtab_with_blockvector): Update call to
3338 finish_block_internal.
3339 * buildsym.h: Forward-declare struct dynamic_prop.
3340 (struct context_stack): Add a static_link field.
3341 (finish_block): Add a static link argument.
3342 * c-exp.y: Remove an obsolete comment (evaluation of variables
3343 already start from the selected frame, and now they climb *up*
3344 the call stack) and propagate the block information to the
3345 produced expression.
3346 * d-exp.y: Likewise.
3347 * f-exp.y: Likewise.
3348 * go-exp.y: Likewise.
3349 * jv-exp.y: Likewise.
3350 * m2-exp.y: Likewise.
3351 * p-exp.y: Likewise.
3352 * coffread.c (coff_symtab_read): Update calls to finish_block.
3353 * dbxread.c (process_one_symbol): Likewise.
3354 * xcoffread.c (read_xcoff_symtab): Likewise.
3355 * compile/compile-c-symbols.c (convert_one_symbol): Promote the
3356 "sym" parameter to struct block_symbol, update its uses and pass
3357 its block to calls to read_var_value.
3358 (convert_symbol_sym): Update the calls to convert_one_symbol.
3359 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
3360 call to read_var_value.
3361 * dwarf2loc.c (block_op_get_frame_base): New.
3362 (dwarf2_block_frame_base_locexpr_funcs): Implement the
3363 get_frame_base method.
3364 (dwarf2_block_frame_base_loclist_funcs): Likewise.
3365 (dwarf2locexpr_baton_eval): Add a frame argument and use it
3366 instead of the selected frame in order to evaluate the
3367 expression.
3368 (dwarf2_evaluate_property): Add a frame argument. Update call
3369 to dwarf2_locexpr_baton_eval to provide a frame in available and
3370 to handle the absence of address stack.
3371 * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
3372 * dwarf2read.c (attr_to_dynamic_prop): Add a forward
3373 declaration.
3374 (read_func_scope): Record any available static link description.
3375 Update call to finish_block.
3376 (read_lexical_block_scope): Update call to finish_block.
3377 * findvar.c (follow_static_link): New.
3378 (get_hosting_frame): New.
3379 (default_read_var_value): Add a var_block argument. Use
3380 get_hosting_frame to handle non-local references.
3381 (read_var_value): Add a var_block argument and pass it to the
3382 LA_READ_VAR_VALUE method.
3383 * gdbtypes.c (resolve_dynamic_range): Update calls to
3384 dwarf2_evaluate_property.
3385 (resolve_dynamic_type_internal): Likewise.
3386 * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
3387 read_var_value, passing it the block coming from symbol lookup.
3388 * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
3389 read_var_value (TODO).
3390 * infcmd.c (finish_command_continuation): Update call to
3391 read_var_value, passing it the block coming from symbol lookup.
3392 * infrun.c (insert_exception_resume_breakpoint): Likewise.
3393 * language.h (struct language_defn): Add a var_block argument to
3394 the LA_READ_VAR_VALUE method.
3395 * objfiles.c (struct static_link_htab_entry): New.
3396 (static_link_htab_entry_hash): New.
3397 (static_link_htab_entry_eq): New.
3398 (objfile_register_static_link): New.
3399 (objfile_lookup_static_link): New.
3400 (free_objfile): Free the STATIC_LINKS hashed map if needed.
3401 * objfiles.h: Include hashtab.h.
3402 (struct objfile): Add a static_links field.
3403 (objfile_register_static_link): New.
3404 (objfile_lookup_static_link): New.
3405 * printcmd.c (print_variable_and_value): Update call to
3406 read_var_value.
3407 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
3408 * python/py-frame.c (frapy_read_var): Update call to
3409 read_var_value, passing it the block coming from symbol lookup.
3410 * python/py-framefilter.c (extract_sym): Add a sym_block
3411 parameter and set the pointed value to NULL (TODO).
3412 (enumerate_args): Update call to extract_sym.
3413 (enumerate_locals): Update calls to extract_sym and to
3414 read_var_value.
3415 * python/py-symbol.c (sympy_value): Update call to
3416 read_var_value (TODO).
3417 * stack.c (read_frame_local): Update call to read_var_value.
3418 (read_frame_arg): Likewise.
3419 (return_command): Likewise.
3420 * symtab.h (struct symbol_block_ops): Add a get_frame_base
3421 method.
3422 (struct symbol): Add a block field.
3423 (SYMBOL_BLOCK): New accessor.
3424 * valops.c (value_of_variable): Remove frame/block handling and
3425 pass the block argument to read_var_value, which does this job
3426 now.
3427 (value_struct_elt_for_reference): Update calls to
3428 read_var_value.
3429 (value_of_this): Pass the block found to read_var_value.
3430 * value.h (read_var_value): Add a var_block argument.
3431 (default_read_var_value): Likewise.
3432
3433 2015-08-25 Yao Qi <yao.qi@linaro.org>
3434
3435 * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
3436 * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
3437 * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
3438
3439 2015-08-25 Yao Qi <yao.qi@linaro.org>
3440
3441 * Makefile.in (aarch64-liunx.o): New rule.
3442 (HFILES_NO_SRCDIR): Add aarch64-linux.h.
3443 * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
3444 * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
3445 * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
3446 extern.
3447 (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
3448 * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
3449 * nat/aarch64-linux.c: New file.
3450 * nat/aarch64-linux.h: New file.
3451
3452 2015-08-25 Yao Qi <yao.qi@linaro.org>
3453
3454 * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
3455 lwp_arch_private_info and ptid_of_lwp.
3456
3457 2015-08-25 Yao Qi <yao.qi@linaro.org>
3458
3459 * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
3460 Move it to nat/aarch64-linux-hw-point.c.
3461 (debug_reg_change_callback): Likewise.
3462 (aarch64_notify_debug_reg_change): :Likewise.
3463 * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
3464 (aarch64_dr_update_callback_param): New.
3465 (debug_reg_change_callback): New function.
3466 (aarch64_notify_debug_reg_change): Likewise.
3467 * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
3468 Remove the declaration.
3469
3470 2015-08-25 Yao Qi <yao.qi@linaro.org>
3471
3472 * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
3473 Call current_lwp_ptid.
3474
3475 2015-08-25 Yao Qi <yao.qi@linaro.org>
3476
3477 * aarch64-linux-nat.c (debug_reg_change_callback): Use
3478 debug_printf.
3479
3480 2015-08-25 Yao Qi <yao.qi@linaro.org>
3481
3482 * aarch64-linux-nat.c (debug_reg_change_callback): Call
3483 ptid_get_pid rather than ptid_get_lwp.
3484
3485 2015-08-24 Pedro Alves <palves@redhat.com>
3486
3487 * NEWS (New commands): Mention set/show remote
3488 multiprocess-extensions-packet.
3489 * remote.c (remote_query_supported): Only tell the server to use
3490 the multiprocess extensions if the user hasn't force-disabled them
3491 with "set remote multiprocess-extensions-packet off".
3492
3493 2015-08-24 Pedro Alves <palves@redhat.com>
3494
3495 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
3496 1029a8112290f6eee9d7878a391c49db42c999bd.
3497 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
3498 Regenerate.
3499 * gnulib/import/Makefile.am: Update.
3500 * gnulib/import/Makefile.in: Update.
3501 * gnulib/import/alloca.in.h: Update.
3502 * gnulib/import/basename-lgpl.c: Update.
3503 * gnulib/import/canonicalize-lgpl.c: Update.
3504 * gnulib/import/config.charset: Update.
3505 * gnulib/import/dirent.in.h: Update.
3506 * gnulib/import/dirfd.c: Update.
3507 * gnulib/import/dirname-lgpl.c: Update.
3508 * gnulib/import/dirname.h: Update.
3509 * gnulib/import/dosname.h: Update.
3510 * gnulib/import/errno.in.h: Update.
3511 * gnulib/import/extra/snippet/arg-nonnull.h: Update.
3512 * gnulib/import/extra/snippet/c++defs.h: Update.
3513 * gnulib/import/extra/snippet/warn-on-use.h: Update.
3514 * gnulib/import/extra/update-copyright: Update.
3515 * gnulib/import/float+.h: Update.
3516 * gnulib/import/float.c: Update.
3517 * gnulib/import/float.in.h: Update.
3518 * gnulib/import/fnmatch.c: Update.
3519 * gnulib/import/fnmatch.in.h: Update.
3520 * gnulib/import/fnmatch_loop.c: Update.
3521 * gnulib/import/fpucw.h: Update.
3522 * gnulib/import/frexp.c: Update.
3523 * gnulib/import/frexpl.c: Update.
3524 * gnulib/import/gettimeofday.c: Update.
3525 * gnulib/import/inttypes.in.h: Update.
3526 * gnulib/import/isnan.c: Update.
3527 * gnulib/import/isnand-nolibm.h: Update.
3528 * gnulib/import/isnand.c: Update.
3529 * gnulib/import/isnanl-nolibm.h: Update.
3530 * gnulib/import/isnanl.c: Update.
3531 * gnulib/import/itold.c: Update.
3532 * gnulib/import/localcharset.c: Update.
3533 * gnulib/import/localcharset.h: Update.
3534 * gnulib/import/lstat.c: Update.
3535 * gnulib/import/m4/00gnulib.m4: Update.
3536 * gnulib/import/m4/absolute-header.m4: Update.
3537 * gnulib/import/m4/alloca.m4: Update.
3538 * gnulib/import/m4/canonicalize.m4: Update.
3539 * gnulib/import/m4/codeset.m4: Update.
3540 * gnulib/import/m4/configmake.m4: Update.
3541 * gnulib/import/m4/dirent_h.m4: Update.
3542 * gnulib/import/m4/dirfd.m4: Update.
3543 * gnulib/import/m4/dirname.m4: Update.
3544 * gnulib/import/m4/double-slash-root.m4: Update.
3545 * gnulib/import/m4/eealloc.m4: Update.
3546 * gnulib/import/m4/errno_h.m4: Update.
3547 * gnulib/import/m4/exponentd.m4: Update.
3548 * gnulib/import/m4/exponentl.m4: Update.
3549 * gnulib/import/m4/extensions.m4: Update.
3550 * gnulib/import/m4/extern-inline.m4: Update.
3551 * gnulib/import/m4/fcntl-o.m4: Update.
3552 * gnulib/import/m4/float_h.m4: Update.
3553 * gnulib/import/m4/fnmatch.m4: Update.
3554 * gnulib/import/m4/fpieee.m4: Update.
3555 * gnulib/import/m4/frexp.m4: Update.
3556 * gnulib/import/m4/frexpl.m4: Update.
3557 * gnulib/import/m4/gettimeofday.m4: Update.
3558 * gnulib/import/m4/glibc21.m4: Update.
3559 * gnulib/import/m4/gnulib-cache.m4: Update.
3560 * gnulib/import/m4/gnulib-common.m4: Update.
3561 * gnulib/import/m4/gnulib-comp.m4: Update.
3562 * gnulib/import/m4/gnulib-tool.m4: Update.
3563 * gnulib/import/m4/include_next.m4: Update.
3564 * gnulib/import/m4/inttypes-pri.m4: Update.
3565 * gnulib/import/m4/inttypes.m4: Update.
3566 * gnulib/import/m4/isnand.m4: Update.
3567 * gnulib/import/m4/isnanl.m4: Update.
3568 * gnulib/import/m4/largefile.m4: Update.
3569 * gnulib/import/m4/localcharset.m4: Update.
3570 * gnulib/import/m4/locale-fr.m4: Update.
3571 * gnulib/import/m4/locale-ja.m4: Update.
3572 * gnulib/import/m4/locale-zh.m4: Update.
3573 * gnulib/import/m4/longlong.m4: Update.
3574 * gnulib/import/m4/lstat.m4: Update.
3575 * gnulib/import/m4/malloc.m4: Update.
3576 * gnulib/import/m4/malloca.m4: Update.
3577 * gnulib/import/m4/math_h.m4: Update.
3578 * gnulib/import/m4/mbrtowc.m4: Update.
3579 * gnulib/import/m4/mbsinit.m4: Update.
3580 * gnulib/import/m4/mbsrtowcs.m4: Update.
3581 * gnulib/import/m4/mbstate_t.m4: Update.
3582 * gnulib/import/m4/memchr.m4: Update.
3583 * gnulib/import/m4/memmem.m4: Update.
3584 * gnulib/import/m4/mmap-anon.m4: Update.
3585 * gnulib/import/m4/multiarch.m4: Update.
3586 * gnulib/import/m4/nocrash.m4: Update.
3587 * gnulib/import/m4/off_t.m4: Update.
3588 * gnulib/import/m4/pathmax.m4: Update.
3589 * gnulib/import/m4/readlink.m4: Update.
3590 * gnulib/import/m4/rename.m4: Update.
3591 * gnulib/import/m4/rmdir.m4: Update.
3592 * gnulib/import/m4/ssize_t.m4: Update.
3593 * gnulib/import/m4/stat.m4: Update.
3594 * gnulib/import/m4/stdbool.m4: Update.
3595 * gnulib/import/m4/stddef_h.m4: Update.
3596 * gnulib/import/m4/stdint.m4: Update.
3597 * gnulib/import/m4/stdio_h.m4: Update.
3598 * gnulib/import/m4/stdlib_h.m4: Update.
3599 * gnulib/import/m4/string_h.m4: Update.
3600 * gnulib/import/m4/strstr.m4: Update.
3601 * gnulib/import/m4/strtok_r.m4: Update.
3602 * gnulib/import/m4/sys_socket_h.m4: Update.
3603 * gnulib/import/m4/sys_stat_h.m4: Update.
3604 * gnulib/import/m4/sys_time_h.m4: Update.
3605 * gnulib/import/m4/sys_types_h.m4: Update.
3606 * gnulib/import/m4/time_h.m4: Update.
3607 * gnulib/import/m4/unistd_h.m4: Update.
3608 * gnulib/import/m4/warn-on-use.m4: Update.
3609 * gnulib/import/m4/wchar_h.m4: Update.
3610 * gnulib/import/m4/wchar_t.m4: Update.
3611 * gnulib/import/m4/wctype_h.m4: Update.
3612 * gnulib/import/m4/wint_t.m4: Update.
3613 * gnulib/import/malloc.c: Update.
3614 * gnulib/import/malloca.c: Update.
3615 * gnulib/import/malloca.h: Update.
3616 * gnulib/import/math.in.h: Update.
3617 * gnulib/import/mbrtowc.c: Update.
3618 * gnulib/import/mbsinit.c: Update.
3619 * gnulib/import/mbsrtowcs-impl.h: Update.
3620 * gnulib/import/mbsrtowcs-state.c: Update.
3621 * gnulib/import/mbsrtowcs.c: Update.
3622 * gnulib/import/memchr.c: Update.
3623 * gnulib/import/memmem.c: Update.
3624 * gnulib/import/pathmax.h: Update.
3625 * gnulib/import/readlink.c: Update.
3626 * gnulib/import/ref-add.sin: Update.
3627 * gnulib/import/ref-del.sin: Update.
3628 * gnulib/import/rename.c: Update.
3629 * gnulib/import/rmdir.c: Update.
3630 * gnulib/import/same-inode.h: Update.
3631 * gnulib/import/stat.c: Update.
3632 * gnulib/import/stdbool.in.h: Update.
3633 * gnulib/import/stddef.in.h: Update.
3634 * gnulib/import/stdint.in.h: Update.
3635 * gnulib/import/stdio.c: Update.
3636 * gnulib/import/stdio.in.h: Update.
3637 * gnulib/import/stdlib.in.h: Update.
3638 * gnulib/import/str-two-way.h: Update.
3639 * gnulib/import/streq.h: Update.
3640 * gnulib/import/string.in.h: Update.
3641 * gnulib/import/stripslash.c: Update.
3642 * gnulib/import/strnlen1.c: Update.
3643 * gnulib/import/strnlen1.h: Update.
3644 * gnulib/import/strstr.c: Update.
3645 * gnulib/import/strtok_r.c: Update.
3646 * gnulib/import/sys_stat.in.h: Update.
3647 * gnulib/import/sys_time.in.h: Update.
3648 * gnulib/import/sys_types.in.h: Update.
3649 * gnulib/import/time.in.h: Update.
3650 * gnulib/import/unistd.in.h: Update.
3651 * gnulib/import/verify.h: Update.
3652 * gnulib/import/wchar.in.h: Update.
3653 * gnulib/import/wctype.in.h: Update.
3654 * gnulib/import/gettimeofday.c: New file.
3655 * gnulib/import/m4/absolute-header.m4: New file.
3656 * gnulib/import/m4/gettimeofday.m4: New file.
3657 * gnulib/import/m4/sys_socket_h.m4: New file.
3658 * gnulib/import/m4/sys_time_h.m4: New file.
3659 * gnulib/import/stdio.c: Delete file.
3660 * gnulib/import/sys_time.in.h: New file.
3661
3662 2015-08-24 Pedro Alves <palves@redhat.com>
3663
3664 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
3665 * common/gdb_sys_time.h: New file.
3666 * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
3667 * gdb_select.h: Likewise.
3668 * gdb_usleep.c: Likewise.
3669 * maint.c: Likewise.
3670 * mi/mi-main.c: Likewise.
3671 * mi/mi-parse.h: Likewise.
3672 * remote-fileio.c: Likewise.
3673 * remote-m32r-sdi.c: Likewise.
3674 * remote.c: Likewise.
3675 * ser-base.c: Likewise.
3676 * ser-pipe.c: Likewise.
3677 * ser-tcp.c: Likewise.
3678 * ser-unix.c: Likewise.
3679 * symfile.c: Likewise.
3680 * symfile.c: Likewise. Rename OSIZE to SIZE throughout.
3681 * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
3682 * utils.c: Likewise.
3683
3684 2015-08-24 Pedro Alves <palves@redhat.com>
3685
3686 * NEWS: Mention removed support for the various ROM monitors.
3687 * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
3688 ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
3689 * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
3690 gdb_target_obs.
3691 (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
3692 gdb_target_obs.
3693 (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
3694 dsrec.o from gdb_target_obs.
3695 (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
3696 from gdb_target_obs.
3697 (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
3698 gdb_target_obs.
3699 (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
3700 dink32-rom.o from gdb_target_obs.
3701 (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
3702 (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
3703 * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
3704 monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
3705
3706 2015-08-21 Pedro Alves <palves@redhat.com>
3707
3708 * frame.c (null_frame_id): Explicitly zero-initialize.
3709
3710 2015-08-21 Tom Tromey <tromey@redhat.com>
3711
3712 * dwarf2read.c (struct dwarf2_section_info): Rename field
3713 'asection' to 'section'.
3714 (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
3715 (dwarf2_locate_sections, dwarf2_locate_sections)
3716 (locate_dwz_sections, locate_v1_virtual_dwo_sections)
3717 (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
3718 (dwarf2_locate_v2_dwp_sections): Adjust.
3719
3720 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
3721
3722 * top.h (gdb_in_secondary_prompt_p): Declare.
3723 * top.c (gdb_secondary_prompt_depth): Define.
3724 (gdb_in_secondary_prompt_p): Define.
3725 (gdb_readline_wrapper_cleanup): Decrement
3726 gdb_secondary_prompt_depth.
3727 (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
3728 * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
3729 are in a secondary prompt.
3730
3731 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
3732
3733 * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
3734 emit the newline.
3735
3736 2015-08-21 Gary Benson <gbenson@redhat.com>
3737
3738 * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
3739
3740 2015-08-21 Gary Benson <gbenson@redhat.com>
3741
3742 * target.h (struct target_ops) <to_fileio_open>: New argument
3743 warn_if_slow. Update comment. All implementations updated.
3744 (target_fileio_open_warn_if_slow): New declaration.
3745 * target.c (target_fileio_open): Renamed as...
3746 (target_fileio_open_1): ...this. New argument warn_if_slow.
3747 Pass warn_if_slow to implementation. Update debug printing.
3748 (target_fileio_open): New function.
3749 (target_fileio_open_warn_if_slow): Likewise.
3750 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
3751 target_fileio_open_warn_if_slow.
3752
3753 2015-08-21 Gary Benson <gbenson@redhat.com>
3754
3755 * nat/linux-namespaces.c (linux_mntns_access_fs):
3756 Do not overwrite old_chain.
3757
3758 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
3759
3760 * arch/xtensa.h: New file.
3761 * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
3762 (ps_get_thread_area): New function.
3763 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
3764 set_gdbarch_fetch_tls_load_module_address to enable TLS support.
3765 * xtensa-tdep.c (osabi.h): New #include.
3766 (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
3767 xtensa-specific hooks.
3768 * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
3769 member and move the structure to arch/xtensa.h.
3770
3771 2015-08-21 Pedro Alves <palves@redhat.com>
3772
3773 * remote.c (struct readahead_cache): New.
3774 (struct remote_state) <readahead_cache>: New field.
3775 (remote_open_1): Invalidate the cache.
3776 (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
3777 functions.
3778 (remote_hostio_pwrite): Invalidate the readahead cache.
3779 (remote_hostio_pread): Rename to ...
3780 (remote_hostio_pread_vFile): ... this.
3781 (remote_hostio_pread_from_cache): New function.
3782 (remote_hostio_pread): Reimplement.
3783 (remote_hostio_close): Invalidate the readahead cache.
3784
3785 2015-08-21 Marcin Cieślak <saper@saper.info> (tiny patch)
3786
3787 PR build/18843
3788 * procfs.c: Include "filestuff.h".
3789
3790 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
3791
3792 * tui/tui-data.h (tui_command_info): Remove fields cur_line and
3793 curch.
3794 * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
3795 cur_line or curch, instead call wmove().
3796 (init_win_info) [CMD_WIN]: Likewise.
3797 * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
3798 instead call getcury().
3799 (tui_redisplay_readline): Don't set cur_line or curch.
3800 (tui_mld_erase_entire_line): Don't read cur_line, instead call
3801 getcury().
3802 (tui_cont_sig): Remove call to wmove.
3803 (tui_getc): Don't read cur_line or curch, instead call getcury()
3804 or getyx(). Don't set curch.
3805 * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
3806 set cur_line or curch. Always move cursor to (0,0).
3807
3808 2015-08-20 Pedro Alves <palves@redhat.com>
3809
3810 * infrun.c (print_target_wait_results): Make extern.
3811 * infrun.h (print_target_wait_results): Declare.
3812 * remote.c (set_stop_requested_callback): Delete.
3813 (process_initial_stop_replies): New function.
3814 (remote_start_remote): Use it.
3815 (stop_reply_queue_length): New function.
3816
3817 2015-08-20 Pedro Alves <palves@redhat.com>
3818
3819 * dwarf2read.c (process_full_comp_unit): To tell whether
3820 start_subfile managed to deduce a language, test for
3821 language_unknown instead of language_c.
3822
3823 2015-08-20 Pierre-Marie de Rodat <derodat@adacore.com>
3824
3825 * ada-lex.l: Reset the start condition to INITIAL in the rule that
3826 matches attributes.
3827
3828 2015-08-19 Kevin Buettner <kevinb@redhat.com>
3829
3830 * dwarf2read.c (dwarf2_string_attr): New function.
3831 (lookup_dwo_unit, process_psymtab_comp_unit_reader)
3832 (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
3833 (read_call_site_scope, namespace_name, guess_full_die_structure_name)
3834 (anonymous_struct_prefix, prepare_one_comp_unit): Use
3835 dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
3836
3837 2015-08-18 Doug Evans <dje@google.com>
3838 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3839
3840 PR mi/18833
3841 * cli/cli-logging.c (pop_output_files): Don't restore redirection
3842 if MI-like.
3843 * mi/mi-out.c: #include "vec.h".
3844 (ui_filep): New type.
3845 (DEV_VEC_P (ui_filep)): New type.
3846 (struct ui_out_data) <buffer, original_buffer>: Delete.
3847 (struct ui_out_data) <streams>: New member.
3848 (mi_ui_out_impl): Add data_destroy field.
3849 (mi_field_string, mi_field_fmt): Update.
3850 (mi_flush, mi_redirect, field_separator): Update.
3851 (mi_open, mi_close): Update.
3852 (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
3853 (mi_out_data_ctor, mi_out_data_dtor): New functions.
3854 (mi_out_new): Call mi_out_data_ctor.
3855
3856 2015-08-18 Sandra Loosemore <sandra@codesourcery.com>
3857
3858 * remote.c (strprefix): New.
3859 (remote_parse_stop_reply): Use strprefix instead of strncmp
3860 to ensure exact match of keyword.
3861
3862 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
3863
3864 * gdb_bfd.c (debug_bfd_cache): New variable.
3865 (show_bfd_cache_debug): New function.
3866 (gdb_bfd_open): Add debug logging.
3867 (gdb_bfd_ref): Likewise.
3868 (gdb_bfd_unref): Likewise.
3869 (_initialize_gdb_bfd): Add new set/show command.
3870 * NEWS: Mention new command.
3871
3872 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
3873
3874 * gdb_bfd.c (bfd_sharing): New variable.
3875 (show_bfd_sharing): New function.
3876 (gdb_bfd_open): Check bfd_sharing variable.
3877 (_initialize_gdb_bfd): Add new set/show command.
3878 * NEWS: Mention new command.
3879
3880 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
3881
3882 * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
3883 field.
3884 (struct gdb_bfd_cache_search): Likewise.
3885 (eq_bfd): Compare the size, inode, and device id fields.
3886 (gdb_bfd_open): Initialise the size, inode, and device id fields.
3887 (gdb_bfd_ref): Likewise.
3888 (gdb_bfd_unref): Likewise.
3889
3890 2015-08-18 Pedro Alves <palves@redhat.com>
3891
3892 * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
3893 target implements to_always_non_stop_p, call it.
3894 * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
3895 (x86_linux_create_target): Install it as to_always_non_stop_p
3896 method.
3897
3898 2015-08-17 Doug Evans <dje@google.com>
3899
3900 * ui-out.c (default_ui_out_impl): Add comment.
3901
3902 2015-08-17 Iain Buclaw <ibuclaw@gdcproject.org>
3903
3904 * d-exp.y (type_aggregate_p): New function.
3905 (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
3906 (classify_inner_name): Likewise.
3907 * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
3908
3909 2015-08-15 Doug Evans <xdje42@gmail.com>
3910
3911 * psymtab.c (add_psymbol_to_bcache): Remove "val" arg. All callers
3912 updated.
3913 (add_psymbol_to_list): Ditto.
3914
3915 2015-08-15 Doug Evans <xdje42@gmail.com>
3916
3917 * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab. All callers
3918 updated. Call end_psymtab_common.
3919 * dwarf2read.c (process_psymtab_comp_unit_reader): Call
3920 end_psymtab_common.
3921 (build_type_psymtabs_reader): Ditto.
3922 * psympriv.h (sort_pst_symbols): Delete.
3923 (end_psymtab_common): Declare.
3924 * psymtab.c (sort_pst_symbols): Make static.
3925 (end_psymtab_common): New function.
3926 * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
3927
3928 2015-08-15 Doug Evans <xdje42@gmail.com>
3929
3930 * defs.h (LANGUAGE_BITS): Define.
3931 * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
3932 (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
3933 * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
3934 (minimal_symbol_type): Add nr_minsym_types.
3935 (MINSYM_TYPE_BITS): Define.
3936 (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
3937 (domain_enum_tag): Add NR_DOMAINS.
3938 (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
3939 (SYMBOL_ACLASS_BITS): Define from 6 to 5.
3940
3941 2015-08-15 Doug Evans <xdje42@gmail.com>
3942
3943 * objfiles.h: Whitespace cleanup.
3944 * psympriv.h: Whitespace cleanup.
3945 * psymtab.c: Whitespace/coding convention cleanup.
3946
3947 2015-08-15 Patrick Palka <patrick@parcs.ath.cx>
3948
3949 * inferior.c (detach_inferior_command): Don't call
3950 any_thread_of_process when pid is 0.
3951 (kill_inferior_command): Likewise.
3952
3953 2015-08-14 Doug Evans <xdje42@gmail.com>
3954
3955 PR gdb/11833
3956 * NEWS: Document new /s modifier for the disassemble command.
3957 * cli/cli-cmds.c (disassemble_command): Add support for /s.
3958 (_initialize_cli_cmds): Update online docs of disassemble command.
3959 * disasm.c: #include "source.h".
3960 (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
3961 All uses updated.
3962 (dis_line_entry): New struct.
3963 (hash_dis_line_entry, eq_dis_line_entry): New functions.
3964 (allocate_dis_line_table): New functions.
3965 (maybe_add_dis_line_entry, line_has_code_p): New functions.
3966 (dump_insns): New arg end_pc. All callers updated.
3967 (do_mixed_source_and_assembly_deprecated): Renamed from
3968 do_mixed_source_and_assembly. All callers updated.
3969 (do_mixed_source_and_assembly): New function.
3970 (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
3971 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
3972 DISASSEMBLY_SOURCE. All uses updated.
3973 (DISASSEMBLY_SOURCE): New macro.
3974 * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
3975
3976 2015-08-14 Keith Seitz <keiths@redhat.com>
3977
3978 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
3979 `typename' to `type_name' to avoid C++ reserved word.
3980
3981 2015-08-14 Keith Seitz <keiths@redhat.com>
3982
3983 * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
3984 (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
3985 silence ARI errors.
3986
3987 2015-08-14 Iain Buclaw <ibuclaw@gdcproject.org>
3988
3989 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
3990 xstrprintf instead of malloc and sprintf.
3991 (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
3992 (lex_one_token): Likewise.
3993
3994 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
3995
3996 * solib-svr4.c (read_program_header): Add base_addr argument to
3997 report the runtime address of the segment.
3998 (find_program_interpreter): Update read_program_header call to pass
3999 a NULL pointer for the new argument.
4000 (scan_dyntag): Add ptr_addr argument to report the runtime address
4001 of the tag payload.
4002 (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
4003 read_program_header to get the base address of the dynamic segment.
4004 (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
4005 read_program_header.
4006 (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
4007
4008 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
4009
4010 * MAINTAINERS (Write After Approval): Add Matthew Fortune.
4011
4012 2015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
4013
4014 * d-exp.y (%union): Add voidval.
4015 (%token): Add UNKNOWN_NAME as a token to represent an unclassified
4016 name in the lexing stage.
4017 (PostfixExpression): Move symbol completion handling in grammar here
4018 from PrimaryExpression.
4019 (PrimaryExpression): Move routines to handle resolving identifier
4020 tokens in the grammar here from push_expression_name.
4021 (IdentifierExp): Remove the handling of alternating '.' and identifier
4022 tokens.
4023 (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
4024 (BasicType): Remove C-style typename rules.
4025 (d_type_from_name, d_module_from_name, push_variable)
4026 (push_fieldnames, push_type_name, push_module_name)
4027 (push_expression_name): Remove.
4028 (lex_one_token): Rename from yylex. Replace pstate with par_state.
4029 (token_and_value): New type.
4030 (token_fifo, popping, name_obstack): New globals.
4031 (classify_name): New function.
4032 (classify_inner_name): Likewise.
4033 (yylex): Likewise.
4034 (d_parse): Initialize token_fifo, popping and name_obstack.
4035
4036 2015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
4037
4038 * Makefile.in (SFILES): Add d-namespace.c.
4039 (COMMON_OBS): Add d-namespace.o.
4040 * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
4041 la_lookup_symbol_nonlocal callback function pointer.
4042 * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
4043 (d_lookup_nested_symbol): New declaration.
4044 * d-namespace.c: New file.
4045
4046 2015-08-13 Pedro Alves <palves@redhat.com>
4047
4048 * python/py-unwind.c (pyuw_sniffer): Install the invalidate
4049 cleanup after the decref cleanup, not before.
4050
4051 2015-08-13 Pierre-Marie de Rodat <derodat@adacore.com>
4052
4053 * ada-lang.c: Include namespace.h
4054 (aux_add_nonlocal_symbols): Fix a function name in comment.
4055 (ada_add_block_renamings): New.
4056 (add_nonlocal_symbols): Add global renamings handling.
4057 (ada_lookup_symbol_list_worker): Move the symbol lookup part
4058 to...
4059 (ada_add_all_symbols): ... this new function.
4060 (ada_add_block_symbols): Try to match the input name against the
4061 "using directives list", perform a recursive symbol lookup on
4062 the matched declarations.
4063 * block.h (struct block): Move the_namespace to top-level as
4064 namespace_info. Remove the language_specific field.
4065 (BLOCK_NAMESPACE): Update access to the namespace_info field.
4066 * buildsym.h (using_directives): Rename into...
4067 (local_using_directives): ... this.
4068 (global_using_directives): New.
4069 (struct context_stack): Rename the using_directives field into
4070 local_using_directives.
4071 * buildsym.c (finish_block_internal): Deal with the proper
4072 using directives repository (local or global).
4073 (prepare_for_building): Reset local_using_directives. Assert
4074 that there is no pending global using directive.
4075 (reset_symtab_globals): Reset global_using_directives and
4076 local_using_directives.
4077 (end_symtab_get_static_block): Don't ignore symtabs that have
4078 only using directives.
4079 (push_context): Update references to local_using_directives.
4080 (buildsym_init): Do not reset using_directives.
4081 * cp-support.c: Include namespace.h.
4082 * cp-support.h (struct using_direct): Move to namespace.h.
4083 (cp_add_using_directives): Move to namespace.h.
4084 * cp-namespace.c: Include namespace.h
4085 (cp_add_using_directive): Move to namespace.c, rename it to
4086 add_using_directive, add a "using_directives" argument and use
4087 it as the pending using directives repository. All callers
4088 updated.
4089 * dwarf2read.c (using_directives): New.
4090 (read_import_statement): Call using_directives.
4091 (read_func_scope): Update references to local_using_directives.
4092 (read_lexical_block_scope): Likewise.
4093 (read_namespace): Update the heading comment, call
4094 using_directives.
4095 * namespace.h: New file.
4096 * namespace.c: New file.
4097 * Makefile.in (SFILES): Add namespace.c.
4098 (COMMON_OBS): Add namespace.o
4099
4100 2015-08-12 Joel Brobecker <brobecker@adacore.com>
4101
4102 * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
4103 compute RETADDR.
4104
4105 2015-08-12 Keith Seitz <keiths@redhat.com>
4106
4107 * break-catch-throw.c (re_set_exception_catchpoint) Rename
4108 reserved C++ keyword "explicit" to "explicit_loc".
4109 * breakpoint.c (create_overlay_event_breakpoint)
4110 (create_longjmp_master_breakpoint)
4111 (create_std_terminate_master_breakpoint)
4112 (create_exception_master_breakpoint, update_static_tracepoint):
4113 Rename reserved C++ keyword "explicit" to "explicit_loc".
4114 * completer.c (collect_explicit_location_matches)
4115 (explicit_location_completer): Rename reserved C++ keyword
4116 "explicit" to "explicit_loc".
4117 * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
4118 (canonicalize_linespec, create_sals_line_offset)
4119 (convert_linespec_to_sals, convert_explicit_location_to_sals)
4120 (event_location_to_sals, decode_objc): Rename reserved C++ keyword
4121 "explicit" to "explicit_loc".
4122 * location.c (struct event_location) <explicit>: Rename to
4123 "explicit_loc".
4124 (initialize_explicit_location, new_explicit_location)
4125 (explicit_location_to_string_internal, explicit_location_to_linespec):
4126 Rename reserved C++ keyword "explicit" to "explicit_loc".
4127 * location.h (explicit_location_to_string)
4128 (explicit_location_to_linespec, initialize_explicit_location)
4129 (new_explicit_location): Rename reserved C++ keyword "explicit"
4130 to "explicit_loc".
4131 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
4132 keyword "explicit" to "explicit_loc".
4133
4134 2015-08-12 Keith Seitz <keiths@redhat.com>
4135
4136 * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
4137 and only call decode_line_1 when it is non-NULL.
4138
4139 2015-08-12 Luis Machado <lgustavo@codesourcery.com>
4140
4141 * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
4142 location address is not meaningful.
4143 (breakpoint_address_is_meaningful): Update comment.
4144
4145 2015-08-11 Keith Seitz <keiths@redhat.com>
4146
4147 * NEWS: Mention explicit locations.
4148 * breakpoint.c [LOCATION_HELP_STRING]: New macro.
4149 [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
4150 (_initialize_breakpoint): Update documentation for
4151 "clear", "break", "trace", "strace", "ftrace", and "dprintf".
4152
4153 2015-08-11 Keith Seitz <keiths@redhat.com>
4154
4155 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
4156 explicit locations, options "--source", "--function",
4157 "--label", and "--line".
4158
4159 2015-08-11 Keith Seitz <keiths@redhat.com>
4160
4161 * completer.c: Include location.h.
4162 (enum match_type): New enum.
4163 (location_completer): Rename to ...
4164 (linespec_completer): ... this.
4165 (collect_explicit_location_matches, backup_text_ptr)
4166 (explicit_location_completer): New functions.
4167 (location_completer): "New" function; handle linespec
4168 and explicit location completions.
4169 (complete_line_internal): Remove all location completer-specific
4170 handling.
4171 * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
4172 (find_toplevel_char): Export.
4173 (linespec_parse_line_offset): Export.
4174 Issue error if STRING is not numerical.
4175 (gdb_get_linespec_parser_quote_characters): New function.
4176 * linespec.h (linespec_parse_line_offset): Declare.
4177 (get_gdb_linespec_parser_quote_characters): Declare.
4178 (is_ada_operator): Declare.
4179 (find_toplevel_char): Declare.
4180 (linespec_lexer_lex_keyword): Declare.
4181 * location.c (explicit_to_event_location): New function.
4182 (explicit_location_lex_one): New function.
4183 (string_to_explicit_location): New function.
4184 (string_to_event_location): Handle explicit locations.
4185 * location.h (explicit_to_event_location): Declare.
4186 (string_to_explicit_location): Declare.
4187
4188 2015-08-11 Keith Seitz <keiths@redhat.com>
4189
4190 * break-catch-throw.c (re_set_exception_catchpoint): Convert
4191 linespec into explicit location.
4192 * breakpoint.c (create_overlay_breakpoint)
4193 (create_longjmp_master_breakpoint)
4194 (create_std_terminate_master_breakpoint)
4195 (create_exception_master_breakpoint): Convert linespec into explicit
4196 location.
4197 (update_static_tracepoint): Convert linespec into explicit location.
4198 * linespec.c (enum offset_relative_sign, struct line_offset): Move
4199 location.h.
4200 (struct linespec) <expression, expr_pc, source_filename>
4201 <function_name, label_name, line_offset>: Replace with ...
4202 <explicit>: ... this.
4203 <is_linespec>: New member.
4204 (PARSER_EXPLICIT): New accessor macro.
4205 (undefined_label_error): New function.
4206 (source_file_not_found_error): New function.
4207 (linespec_parse_basic): The parser result is now an explicit location.
4208 Use PARSER_EXPLICIT to access it.
4209 Use undefined_label_error.
4210 (canonicalize_linespec): Convert canonical linespec into explicit
4211 location.
4212 Move string representation of location to explicit_location_to_linespec
4213 and use it and explicit_location_to_string to save string
4214 representations of the canonical location.
4215 (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
4216 explicit location. Update all references.
4217 (convert_explicit_location_to_sals): New function.
4218 (parse_linespec): Use PARSER_EXPLICIT to access the parser
4219 result's explicit location.
4220 (linespec_state_constructor): Initialize is_linespec.
4221 Use PARSER_EXPLICIT.
4222 (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
4223 result.
4224 (event_location_to_sals): For linespec locations, set is_linespec.
4225 Handle explicit locations.
4226 (decode_objc): 'ls' contains an explicit location now. Update all
4227 references.
4228 (symtabs_from_filename): Use source_file_not_found_error.
4229 * location.c (struct event_location.u) <explicit>: New member.
4230 (initialize_explicit_location): New function.
4231 (initialize_event_location): Initialize explicit locations.
4232 (new_explicit_location, get_explicit_location)
4233 (get_explicit_location_const): New functions.
4234 (explicit_to_string_internal): New function; most of contents moved
4235 from canonicalize_linespec.
4236 (explicit_location_to_string): New function.
4237 (explicit_location_to_linespec): New function.
4238 (copy_event_location, delete_event_location)
4239 (event_location_to_string_const, event_location_empty_p): Handle
4240 explicit locations.
4241 * location.h (enum offset_relative_sign, struct line_offset): Move
4242 here from linespec.h.
4243 (enum event_location_type): Add EXPLICIT_LOCATION.
4244 (struct explicit_location): New structure.
4245 (explicit_location_to_string): Declare.
4246 (explicit_location_to_linespec): Declare.
4247 (new_explicit_location, get_explicit_locationp
4248 (get_explicit_location_const, initialize_explicit_location): Declare.
4249
4250 2015-08-11 Keith Seitz <keiths@redhat.com>
4251
4252 * break-catch-throw.c (re_set_exception_catchpoint): Convert
4253 linespec for stap probe to probe location.
4254 * breakpoint.c (create_longjmp_master_breakpoint)
4255 (create_exception_master_breakpoint): Likewise.
4256 (break_command_1): Remove local variable `arg_cp'.
4257 Check location type to set appropriate breakpoint ops methods.
4258 (trace_command): Likewise.
4259 * linespec.c (event_location_to_sals): Assert on probe locations.
4260 * location.c (EL_PROBE): Add macro definition.
4261 (new_probe_location, get_probe_location): New functions.
4262 (copy_event_location, delete_event_location, event_location_to_string)
4263 (string_to_event_location, event_location_empty_p): Handle probe
4264 locations.
4265 * location.h (enum event_location_type): Add PROBE_LOCATION.
4266 (new_probe_location, get_probe_location): Declare.
4267 * probe.c (parse_probes): Assert that LOCATION is a probe location.
4268 Convert linespec into probe location.
4269
4270 2015-08-11 Keith Seitz <keiths@redhat.com>
4271
4272 * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
4273 Convert linespec to address location.
4274 * linespec.c (canonicalize_linespec): Do not handle address
4275 locations here.
4276 (convert_address_location_to_sals): New function; contents moved
4277 from ...
4278 (convert_linespc_to_sals): ... here.
4279 (parse_linespec): Remove address locations from linespec grammar.
4280 Remove handling of address locations.
4281 (linespec_lex_to_end): Remove handling of address linespecs.
4282 (event_location_to_sals): Handle ADDRESS_LOCATION.
4283 (linespec_expression_to_pc): Export.
4284 * linespec.h (linespec_expression_to_pc): Add declaration.
4285 * location.c (struct event_location.u) <address>: New member.
4286 (new_address_location, get_address_location): New functions.
4287 (copy_event_location, delete_event_location, event_location_to_string)
4288 (string_to_event_location, event_location_empty_p): Handle address
4289 locations.
4290 * location.h (enum event_location_type): Add ADDRESS_LOCATION.
4291 (new_address_location, get_address_location): Declare.
4292 * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
4293 to address location.
4294 * spu-tdep.c (spu_catch_start): Likewise.
4295
4296 2015-08-11 Keith Seitz <keiths@redhat.com>
4297
4298 * ax-gdb.c: Include location.h.
4299 (agent_command_1) Use linespec location instead of address
4300 string.
4301 * break-catch-throw.c: Include location.h.
4302 (re_set_exception_catchpoint): Use linespec locations instead
4303 of address strings.
4304 * breakpoint.c: Include location.h.
4305 (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
4306 (create_std_terminate_master_breakpoint)
4307 (create_exception_master_breakpoint, update_breakpoints_after_exec):
4308 Use linespec location instead of address string.
4309 (print_breakpoint_location): Use locations and
4310 event_location_to_string.
4311 Print extra_string for pending locations for non-MI streams.
4312 (print_one_breakpoint_location): Use locations and
4313 event_location_to_string.
4314 (init_raw_breakpoint_without_location): Initialize b->location.
4315 (create_thread_event_breakpoint): Use linespec location instead of
4316 address string.
4317 (init_breakpoint_sal): Likewise.
4318 Only save extra_string if it is non-NULL and not the empty string.
4319 Use event_location_to_string instead of `addr_string'.
4320 Constify `p' and `endp'.
4321 Use skip_spaces_const/skip_space_const instead of non-const versions.
4322 Copy the location into the breakpoint.
4323 If LOCATION is NULL, save the breakpoint address as a linespec location
4324 instead of an address string.
4325 (create_breakpoint_sal): Change `addr_string' parameter to a struct
4326 event_location. All uses updated.
4327 (create_breakpoints_sal): Likewise for local variable `addr_string'.
4328 (parse_breakpoint_sals): Use locations instead of address strings.
4329 Remove check for empty linespec with conditional.
4330 Refactor.
4331 (decode_static_tracepoint_spec): Make argument const and update
4332 function.
4333 (create_breakpoint): Change `arg' to a struct event_location and
4334 rename.
4335 Remove `copy_arg' and `addr_start'.
4336 If EXTRA_STRING is empty, set it to NULL.
4337 Don't populate `canonical' for pending breakpoints.
4338 Pass `extra_string' to find_condition_and_thread.
4339 Clear `extra_string' if `rest' was NULL.
4340 Do not error with "garbage after location" if setting a dprintf
4341 breakpoint.
4342 Copy the location into the breakpoint instead of an address string.
4343 (break_command_1): Use string_to_event_location and pass this to
4344 create_breakpoint instead of an address string.
4345 Check against `arg_cp' for a probe linespec.
4346 (dprintf_command): Use string_to_event_location and pass this to
4347 create_breakpoint instead of an address string.
4348 Throw an exception if no format string was specified.
4349 (print_recreate_ranged_breakpoint): Use event_location_to_string
4350 instead of address strings.
4351 (break_range_command, until_break_command)
4352 (init_ada_exception_breakpoint): Use locations instead
4353 of address strings.
4354 (say_where): Print out extra_string for pending locations.
4355 (base_breakpoint_dtor): Delete `location' and `location_range_end' of
4356 the breakpoint.
4357 (base_breakpoint_create_sals_from_location): Use struct event_location
4358 instead of address string.
4359 Remove `addr_start' and `copy_arg' parameters.
4360 (base_breakpoint_decode_location): Use struct event_location instead of
4361 address string.
4362 (bkpt_re_set): Use locations instead of address strings.
4363 Use event_location_empty_p to check for unset location.
4364 (bkpt_print_recreate): Use event_location_to_string instead of
4365 an address string.
4366 Print out extra_string for pending locations.
4367 (bkpt_create_sals_from_location, bkpt_decode_location)
4368 (bkpt_probe_create_sals_from_location): Use struct event_location
4369 instead of address string.
4370 (bkpt_probe_decode_location): Use struct event_location instead of
4371 address string.
4372 (tracepoint_print_recreate): Use event_location_to_string to
4373 recreate the tracepoint.
4374 (tracepoint_create_sals_from_location, tracepoint_decode_location)
4375 (tracepoint_probe_create_sals_from_location)
4376 (tracepoint_probe_decode_location): Use struct event_location
4377 instead of address string.
4378 (dprintf_print_recreate): Use event_location_to_string to recreate
4379 the dprintf.
4380 (dprintf_re_set): Remove check for valid/missing format string.
4381 (strace_marker_create_sals_from_location)
4382 (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
4383 (update_static_tracepoint): Use struct event_location instead of
4384 address string.
4385 (location_to_sals): Likewise.
4386 Pass `extra_string' to find_condition_and_thread.
4387 For newly resolved pending breakpoint locations, clear the location's
4388 string representation.
4389 Assert that the breakpoint's condition string is NULL when
4390 condition_not_parsed.
4391 (breakpoint_re_set_default, create_sals_from_location_default)
4392 (decode_location_default, trace_command, ftrace_command)
4393 (strace_command, create_tracepoint_from_upload): Use locations
4394 instead of address strings.
4395 * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
4396 Use struct event_location instead of address string.
4397 Update all uses.
4398 <decode_location>: Likewise.
4399 (struct breakpoint) <addr_string>: Change to struct event_location
4400 and rename `location'.
4401 <addr_string_range_end>: Change to struct event_location and rename
4402 `location_range_end'.
4403 (create_breakpoint): Use struct event_location instead of address
4404 string.
4405 * cli/cli-cmds.c: Include location.h.
4406 (edit_command, list_command): Use locations instead of address strings.
4407 * elfread.c: Include location.h.
4408 (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
4409 * guile/scm-breakpoint.c: Include location.h.
4410 (bpscm_print_breakpoint_smob): Use event_location_to_string.
4411 (gdbscm_register_breakpoint): Use locations instead of address
4412 strings.
4413 * linespec.c: Include location.h.
4414 (struct ls_parser) <stream>: Change to const char *.
4415 (PARSER_STREAM): Update.
4416 (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
4417 keywords must be followed by whitespace.
4418 (canonicalize_linespec): Save a linespec location into `canonical'.
4419 Save a canonical linespec into `canonical'.
4420 (parse_linespec): Change `argptr' to const char * and rename `arg'.
4421 All uses updated.
4422 Update function description.
4423 (linespec_parser_new): Initialize `parser'.
4424 Update initialization of parsing stream.
4425 (event_location_to_sals): New function.
4426 (decode_line_full): Change `argptr' to a struct event_location and
4427 rename it `location'.
4428 Use locations instead of address strings.
4429 Call event_location_to_sals instead of parse_linespec.
4430 (decode_line_1): Likewise.
4431 (decode_line_with_current_source, decode_line_with_last_displayed)
4432 Use locations instead of address strings.
4433 (decode_objc): Likewise.
4434 Change `argptr' to const char * and rename `arg'.
4435 (destroy_linespec_result): Delete the linespec result's location
4436 instead of freeing the address string.
4437 * linespec.h (struct linespec_result) <addr_string>: Change to
4438 struct event_location and rename to ...
4439 <location>: ... this.
4440 (decode_line_1, decode_line_full): Change `argptr' to struct
4441 event_location. All callers updated.
4442 * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
4443 (mi_cmd_break_insert_1): Use locations instead of address strings.
4444 Throw an error if there was "garbage" at the end of the specified
4445 linespec.
4446 * probe.c: Include location.h.
4447 (parse_probes): Change `argptr' to struct event_location.
4448 Use event locations instead of address strings.
4449 * probe.h (parse_probes): Change `argptr' to struct event_location.
4450 * python/py-breakpoint.c: Include location.h.
4451 (bppy_get_location): Constify local variable `str'.
4452 Use event_location_to_string.
4453 (bppy_init): Use locations instead of address strings.
4454 * python/py-finishbreakpoint.c: Include location.h.
4455 (bpfinishpy_init): Remove local variable `addr_str'.
4456 Use locations instead of address strings.
4457 * python/python.c: Include location.h.
4458 (gdbpy_decode_line): Use locations instead of address strings.
4459 * remote.c: Include location.h.
4460 (remote_download_tracepoint): Use locations instead of address
4461 strings.
4462 * spu-tdep.c: Include location.h.
4463 (spu_catch_start): Remove local variable `buf'.
4464 Use locations instead of address strings.
4465 * tracepoint.c: Include location.h.
4466 (scope_info): Use locations instead of address strings.
4467 (encode_source_string): Constify parameter `src'.
4468 * tracepoint.h (encode_source_string): Likewise.
4469
4470 2015-08-11 Keith Seitz <keiths@redhat.com>
4471
4472 * Makefile.in (SFILES): Add location.c.
4473 (HFILES_NO_SRCDIR): Add location.h.
4474 (COMMON_OBS): Add location.o.
4475 * linespec.c (linespec_lex_to_end): New function.
4476 * linespec.h (linespec_lex_to_end): Declare.
4477 * location.c: New file.
4478 * location.h: New file.
4479
4480 2015-08-11 Keith Seitz <keiths@redhat.com>
4481
4482 * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
4483 Renamed to create_sals_from_location.
4484 <decode_linespec>: Renamed to decode_location.
4485 Update all callers.
4486 * breakpoint.c (create_sals_from_address_default): Renamed to ...
4487 (create_sals_from_location_default): ... this.
4488 (addr_string_to_sals): Renamed to ...
4489 (location_to_sals): ... this.
4490 (decode_linespec_default): Renamed to ...
4491 (decode_location_default): ... this.
4492 (base_breakpoint_create_sals_from_address): Renamed to ...
4493 (base_breakpoint_create_sals_from_location): ... this.
4494 (bkpt_create_sals_from_address): Renamed to ...
4495 (bkpt_create_sals_from_location): ... this.
4496 (bkpt_decode_linespec): Renamed to ...
4497 (bkpt_decode_location): ... this.
4498 (bkpt_probe_create_sals_from_address): Renamed to ...
4499 (bkpt_probe_create_sals_from_location): ... this.
4500 (tracepoint_create_sals_from_address): Renamed to ...
4501 (tracepoint_create_sals_from_location): ... this.
4502 (tracepoint_decode_linespec): Renamed to ...
4503 (tracepoint_decode_location): ... this.
4504 (tracepoint_probe_create_sals_from_address): Renamed to ...
4505 (tracepoint_probe_create_sals_from_location): ... this.
4506 (tracepoint_probe_decode_linespec): Renamed to ...
4507 (tracepoint_probe_decode_location): ... this.
4508 (strace_marker_create_sals_from_address): Renamed to ...
4509 (strace_marker_create_sals_from_location): ... this.
4510 (decode_linespec_default): Renamed to ...
4511 (decode_location_default): ... this.
4512
4513 2015-08-10 Doug Evans <dje@google.com>
4514 Keith Seitz <keiths@redhat.com>
4515
4516 PR gdb/17960
4517 * symtab.c (make_file_symbol_completion_list_1): Renamed from
4518 make_file_symbol_completion_list and made static.
4519 (make_file_symbol_completion_list): New function.
4520
4521 2015-08-10 Joel Brobecker <brobecker@adacore.com>
4522
4523 * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
4524 trailing new-line at end of warning message.
4525 (proceed): Add i18n marker to error messages.
4526
4527 2015-08-07 Pedro Alves <palves@redhat.com>
4528
4529 * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
4530
4531 2015-08-07 Pedro Alves <palves@redhat.com>
4532
4533 * s390-linux-tdep.c (is_non_branch_ril)
4534 (s390_displaced_step_copy_insn): New functions.
4535 (s390_displaced_step_fixup): Update comment.
4536 (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
4537 gdbarch_displaced_step_copy_insn hook.
4538
4539 2015-08-07 Pedro Alves <palves@redhat.com>
4540
4541 * infrun.c (displaced_step_prepare_throw): Return -1 if
4542 gdbarch_displaced_step_copy_insn returns NULL. Update intro
4543 comment.
4544 * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
4545 (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
4546 in file.
4547 (ppc_displaced_step_copy_insn): New function.
4548 (ppc_displaced_step_fixup): Update comment.
4549 (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
4550 gdbarch_displaced_step_copy_insn hook.
4551 * gdbarch.sh (displaced_step_copy_insn): Document what happens on
4552 NULL return.
4553 * gdbarch.h: Regenerate.
4554
4555 2015-08-07 Pedro Alves <palves@redhat.com>
4556
4557 * inferior.h (struct inferior) <displaced_stepping_failed>: New
4558 field.
4559 * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
4560 Return false if dispaced stepping failed before.
4561 (resume): Pass the current inferior to
4562 use_displaced_stepping_now_p. Wrap displaced_step_prepare in
4563 TRY/CATCH. If we get a MEMORY_ERROR, set the inferior's
4564 displaced_stepping_failed flag, and fall back to an in-line
4565 step-over.
4566
4567 2015-08-07 Pedro Alves <palves@redhat.com>
4568
4569 * darwin-nat.c (darwin_stop): Rename to ...
4570 (darwin_interrupt): ... this.
4571 (_initialize_darwin_inferior): Adjust.
4572 * gnu-nat.c (gnu_stop): Delete.
4573 (gnu_target): Don't install gnu_stop.
4574 * inf-ptrace.c (inf_ptrace_stop): Rename to ...
4575 (inf_ptrace_interrupt): ... this.
4576 (inf_ptrace_target): Adjust.
4577 * infcmd.c (interrupt_target_1): Use target_interrupt instead of
4578 target_stop.
4579 * linux-nat (linux_nat_stop): Rename to ...
4580 (linux_nat_interrupt): ... this.
4581 (linux_nat_stop): Reimplement.
4582 (linux_nat_add_target): Install linux_nat_interrupt.
4583 * nto-procfs.c (nto_interrupt_twice): Rename to ...
4584 (nto_handle_sigint_twice): ... this.
4585 (nto_interrupt): Rename to ...
4586 (nto_handle_sigint): ... this. Call target_interrupt instead of
4587 target_stop.
4588 (procfs_wait): Adjust.
4589 (procfs_stop): Rename to ...
4590 (procfs_interrupt): ... this.
4591 (init_procfs_targets): Adjust.
4592 * procfs.c (procfs_stop): Rename to ...
4593 (procfs_interrupt): ... this.
4594 (procfs_target): Adjust.
4595 * remote-m32r-sdi.c (m32r_stop): Rename to ...
4596 (m32r_interrupt): ... this.
4597 (init_m32r_ops): Adjust.
4598 * remote-sim.c (gdbsim_stop_inferior): Rename to ...
4599 (gdbsim_interrupt_inferior): ... this.
4600 (gdbsim_stop): Rename to ...
4601 (gdbsim_interrupt): ... this.
4602 (gdbsim_cntrl_c): Adjust.
4603 (init_gdbsim_ops): Adjust.
4604 * remote.c (sync_remote_interrupt): Adjust comments.
4605 (remote_stop_as): Rename to ...
4606 (remote_interrupt_as): ... this.
4607 (remote_stop): Adjust comment.
4608 (remote_interrupt): New function.
4609 (init_remote_ops): Install remote_interrupt.
4610 * target.c (target_interrupt): New function.
4611 * target.h (struct target_ops) <to_interrupt>: New field.
4612 (target_interrupt): New declaration.
4613 * windows-nat.c (windows_stop): Rename to ...
4614 (windows_interrupt): ... this.
4615 * target-delegates.c: Regenerate.
4616
4617 2015-08-07 Pedro Alves <palves@redhat.com>
4618
4619 * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
4620 threads" as alternative to "switching back to stepped thread".
4621
4622 2015-08-07 Pedro Alves <palves@redhat.com>
4623
4624 * NEWS: Mention "maint set/show target-non-stop".
4625 * breakpoint.c (update_global_location_list): Check
4626 target_is_non_stop_p instead of non_stop.
4627 * infcmd.c (attach_command_post_wait, attach_command): Likewise.
4628 * infrun.c (show_can_use_displaced_stepping)
4629 (can_use_displaced_stepping_p, start_step_over_inferior):
4630 Likewise.
4631 (internal_resume_ptid): New function.
4632 (resume): Use it.
4633 (proceed): Check target_is_non_stop_p instead of non_stop. If in
4634 all-stop mode but the target is always in non-stop mode, start all
4635 the other threads that are implicitly resumed too.
4636 (for_each_just_stopped_thread, fetch_inferior_event)
4637 (adjust_pc_after_break, stop_all_threads): Check
4638 target_is_non_stop_p instead of non_stop.
4639 (handle_inferior_event): Likewise. Handle detach-fork in all-stop
4640 with the target always in non-stop mode.
4641 (handle_signal_stop) <random signal>: Check target_is_non_stop_p
4642 instead of non_stop.
4643 (switch_back_to_stepped_thread): Check target_is_non_stop_p
4644 instead of non_stop.
4645 (keep_going_stepped_thread): Use internal_resume_ptid.
4646 (stop_waiting): If in all-stop mode, and the target is in non-stop
4647 mode, stop all threads.
4648 (keep_going_pass): Likewise, when starting a new in-line step-over
4649 sequence.
4650 * linux-nat.c (get_pending_status, select_event_lwp)
4651 (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
4652 target_is_non_stop_p instead of non_stop.
4653 (linux_nat_always_non_stop_p): New function.
4654 (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
4655 (linux_nat_add_target): Install linux_nat_always_non_stop_p.
4656 * target-delegates.c: Regenerate.
4657 * target.c (target_is_non_stop_p): New function.
4658 (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
4659 (maint_set_target_non_stop_command)
4660 (maint_show_target_non_stop_command): New functions.
4661 (_initilize_target): Install "maint set/show target-non-stop"
4662 commands.
4663 * target.h (struct target_ops) <to_always_non_stop_p>: New field.
4664 (target_non_stop_enabled): New declaration.
4665 (target_is_non_stop_p): New declaration.
4666
4667 2015-08-07 Pedro Alves <pedro@codesourcery.com>
4668
4669 * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
4670 has a pending status, return true.
4671 * gdbthread.h: Include target/waitstatus.h.
4672 (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
4673 stop_pc>: New fields.
4674 (struct thread_info) <resumed>: New field.
4675 (set_resumed): Declare.
4676 * infrun.c: Include "event-loop.h".
4677 (infrun_async_inferior_event_token, infrun_is_async): New globals.
4678 (infrun_async): New function.
4679 (clear_step_over_info): Add debug output.
4680 (displaced_step_in_progress_any_inferior): New function.
4681 (displaced_step_fixup): New returns int.
4682 (start_step_over): Handle in-line step-overs too. Assert the
4683 thread is marked resumed.
4684 (resume_cleanups): Clear the thread's resumed flag.
4685 (resume): Set the thread's resumed flag. Return early if the
4686 thread has a pending status. Allow stepping a breakpoint with no
4687 signal.
4688 (proceed): Adjust to check 'resumed' instead of 'executing'.
4689 (clear_proceed_status_thread): If the thread has a pending status,
4690 and that status is a finished step, discard the pending status.
4691 (clear_proceed_status): Don't clear step_over_info here.
4692 (random_pending_event_thread, do_target_wait): New functions.
4693 (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
4694 do_target_wait.
4695 (wait_one): New function.
4696 (THREAD_STOPPED_BY): New macro.
4697 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4698 (thread_stopped_by_hw_breakpoint): New functions.
4699 (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
4700 functions.
4701 (handle_inferior_event): Also call set_resumed(false) on all
4702 threads implicitly stopped by the event.
4703 (restart_threads, resumed_thread_with_pending_status): New
4704 functions.
4705 (finish_step_over): If we were doing an in-line step-over before,
4706 and no longer are after trying to start a new step-over, restart
4707 all threads. If we have multiple threads with pending events,
4708 save the current event and go through the event loop again.
4709 (handle_signal_stop): Return early if finish_step_over returns
4710 false.
4711 <random signal>: If we get a signal while stepping over a
4712 breakpoint in-line in non-stop mode, restart all threads. Clear
4713 step_over_info before delivering the signal.
4714 (keep_going_stepped_thread): Use internal_error instead of
4715 gdb_assert. Mark the thread as resumed.
4716 (keep_going_pass_signal): Assert the thread isn't already resumed.
4717 If some other thread is doing an in-line step-over, defer the
4718 resume. If we just started a new in-line step-over, stop all
4719 threads. Don't clear step_over_info.
4720 (infrun_async_inferior_event_handler): New function.
4721 (_initialize_infrun): Create async event handler with
4722 infrun_async_inferior_event_handler as callback.
4723 (infrun_async): New declaration.
4724 * target.c (target_async): New function.
4725 * target.h (target_async): Declare macro and readd as function
4726 declaration.
4727 * target/waitstatus.h (enum target_stop_reason)
4728 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
4729 * thread.c (new_thread): Clear the new waitstatus field.
4730 (set_resumed): New function.
4731
4732 2015-08-07 Pedro Alves <palves@redhat.com>
4733
4734 * infrun.c (keep_going_stepped_thread): New function, factored out
4735 from ...
4736 (switch_back_to_stepped_thread): ... here.
4737
4738 2015-08-07 Pedro Alves <palves@redhat.com>
4739
4740 * infrun.c (currently_stepping): Extend intro comment.
4741 * target.h (target_resume): Extend intro comment.
4742
4743 2015-08-07 Pedro Alves <palves@redhat.com>
4744
4745 * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
4746 of inferior_ptid. If the stepped thread vanished, return 0
4747 instead of resuming here. Use reset_ecs. Print the prev_pc and
4748 the current stop_pc in log message. Clear trap_expected if the
4749 thread advanced. Don't pass currently_stepping to
4750 do_target_resume.
4751
4752 2015-08-07 Pedro Alves <palves@redhat.com>
4753
4754 * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
4755 * infrun.c (struct execution_control_state): Move higher up in the
4756 file.
4757 (reset_ecs): New function.
4758 (start_step_over): Now returns int. Rewrite to use
4759 keep_going_pass_signal instead of manually starting a displaced step.
4760 (resume): Don't call set_running here. If displaced stepping
4761 can't start now, clear trap_expected.
4762 (find_thread_needs_step_over): Delete function.
4763 (proceed): Set up finish_thread_state_cleanup. Call set_running.
4764 If the current thread needs a step over, push it in the step-over
4765 chain. Don't set insert breakpoints nor call resume directly
4766 here. Instead rewrite to use start_step_over and
4767 keep_going_pass_signal.
4768 (finish_step_over): New function.
4769 (handle_signal_stop): Call finish_step_over instead of
4770 start_step_over.
4771 (switch_back_to_stepped_thread): If the event thread needs another
4772 step-over do that first. Use start_step_over.
4773 (keep_going_pass_signal): New function, factored out from ...
4774 (keep_going): ... here.
4775 (_initialize_infrun): Comment moved here.
4776 * thread.c (set_running_thread): New function.
4777 (set_running, finish_thread_state): Use set_running_thread.
4778
4779 2015-08-07 Pedro Alves <palves@redhat.com>
4780
4781 * gdbthread.h (struct thread_info) <step_over_prev,
4782 step_over_next>: New fields.
4783 (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
4784 (thread_step_over_chain_next, thread_is_in_step_over_chain): New
4785 declarations.
4786 * infrun.c (struct displaced_step_request): Delete.
4787 (struct displaced_step_inferior_state) <step_request_queue>:
4788 Delete field.
4789 (displaced_step_prepare): Assert that trap_expected is set. Use
4790 thread_step_over_chain_enqueue. Split starting a new displaced
4791 step to ...
4792 (start_step_over): ... this new function.
4793 (resume): Assert the thread isn't waiting for a step over already.
4794 (proceed): Assert the thread isn't waiting for a step over
4795 already.
4796 (infrun_thread_stop_requested): Adjust to remove threads from the
4797 embedded step-over chain.
4798 (handle_inferior_event) <fork/vfork>: Call start_step_over after
4799 displaced_step_fixup.
4800 (handle_signal_stop): Call start_step_over after
4801 displaced_step_fixup.
4802 * infrun.h (step_over_queue_head): New declaration.
4803 * thread.c (step_over_chain_enqueue, step_over_chain_remove)
4804 (thread_step_over_chain_next, thread_is_in_step_over_chain)
4805 (thread_step_over_chain_enqueue)
4806 (thread_step_over_chain_remove): New functions.
4807 (delete_thread_1): Remove thread from the step-over chain.
4808
4809 2015-08-07 Pedro Alves <palves@redhat.com>
4810
4811 * infrun.c (thread_still_needs_step_over): Rename to ...
4812 (thread_still_needs_step_over_bp): ... this.
4813 (enum step_over_what): New.
4814 (thread_still_needs_step_over): Reimplement.
4815
4816 2015-08-07 Pedro Alves <palves@redhat.com>
4817
4818 * remote.c (remote_wait_as): If not waiting for a stop reply,
4819 return TARGET_WAITKIND_NO_RESUMED. If TARGET_WNOHANG is
4820 requested, don't block waiting forever.
4821
4822 2015-08-07 Pedro Alves <pedro@codesourcery.com>
4823
4824 * infrun.c (adjust_pc_after_break): Now takes thread_info and
4825 waitstatus pointers instead of an ecs. Adjust.
4826 (handle_inferior_event): Adjust caller.
4827
4828 2015-08-07 Pedro Alves <palves@redhat.com>
4829
4830 * infrun.c (handle_inferior_event): If we get
4831 TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
4832 mode, mark all threads of the exiting process as not-executing.
4833 (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
4834 TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
4835 exiting process, if inferior_ptid still points at a process.
4836 * thread.c (struct current_thread_cleanup) <next>: New field.
4837 (current_thread_cleanup_chain): New global.
4838 (restore_current_thread_ptid_changed): New function.
4839 (restore_current_thread_cleanup_dtor): Remove the cleanup from the
4840 current_thread_cleanup_chain list.
4841 (make_cleanup_restore_current_thread): Add the cleanup data to the
4842 current_thread_cleanup_chain list.
4843 (_initialize_thread): Install restore_current_thread_ptid_changed
4844 as thread_ptid_changed observer.
4845
4846 2015-08-07 Joel Brobecker <brobecker@adacore.com>
4847
4848 * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
4849 data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
4850 smaller than expected.
4851
4852 2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
4853
4854 * stack.c (get_frame_language): Moved ...
4855 * frame.c (get_frame_language): ... to here.
4856 * language.h (get_frame_language): Declaration moved to frame.h.
4857 * frame.h: Add language.h include, for language enum.
4858 (get_frame_language): Declaration moved from language.h.
4859 * language.c: Add frame.h include.
4860 * top.c: Add frame.h include.
4861 * symtab.h (struct obj_section): Declare.
4862 (struct cmd_list_element): Declare.
4863
4864 2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
4865
4866 * language.c (show_language_command): Find selected frame before
4867 asking for the language of that frame.
4868 (set_language_command): Likewise.
4869 * language.h (get_frame_language): Add frame parameter.
4870 * stack.c (get_frame_language): Add frame parameter, assert
4871 parameter is not NULL, update comment and reindent.
4872 * top.c (check_frame_language_change): Pass the selected frame
4873 into get_frame_language.
4874
4875 2015-08-07 Markus Metzger <markus.t.metzger@intel.com>
4876
4877 * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
4878 (pt_btrace_insn_flags): New.
4879 (ftrace_add_pt): Call pt_btrace_insn_flags.
4880 * btrace.h (btrace_insn_flag): New.
4881 (btrace_insn) <flags>: New.
4882 * record-btrace.c (btrace_insn_history): Print insn prefix.
4883 * NEWS: Announce it.
4884
4885 2015-08-07 Markus Metzger <markus.t.metzger@intel.com>
4886
4887 * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
4888 * configure: Regenerate.
4889
4890 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
4891
4892 * Makefile.in (LIBICONV): Define.
4893 (CLIBS): Add LIBICONV.
4894 * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
4895 * configure: Regenerate.
4896
4897 2015-08-06 Simon Marchi <simon.marchi@ericsson.com>
4898 Pedro Alves <palves@redhat.com>
4899
4900 * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
4901 (arm_set_abi): Likewise.
4902 * ax-general.c (ax_print): Likewise.
4903 * c-exp.y (exp : string_exp): Likewise.
4904 * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
4905 (do_compile_dwarf_expr_to_c): Likewise.
4906 * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
4907 Likewise.
4908 * dwarf2expr.c (execute_stack_op): Likewise.
4909 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
4910 (disassemble_dwarf_expression): Likewise.
4911 * dwarf2read.c (dwarf2_add_member_fn): Likewise.
4912 (read_array_order): Likewise.
4913 (abbrev_table_read_table): Likewise.
4914 (read_attribute_value): Likewise.
4915 (skip_unknown_opcode): Likewise.
4916 (dwarf_decode_macro_bytes): Likewise.
4917 (dwarf_decode_macros): Likewise.
4918 * eval.c (value_f90_subarray): Likewise.
4919 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
4920 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
4921 * infrun.c (handle_command): Likewise.
4922 * memory-map.c (memory_map_start_memory): Likewise.
4923 * osabi.c (set_osabi): Likewise.
4924 * parse.c (operator_length_standard): Likewise.
4925 * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
4926 single return point.
4927 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4928 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
4929 (gdbpy_lookup_global_symbol): Likewise.
4930 * record-full.c (record_full_restore): Likewise.
4931 * regcache.c (regcache_register_status): Likewise.
4932 (regcache_raw_read): Likewise.
4933 (regcache_cooked_read): Likewise.
4934 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
4935 * symtab.c (initialize_ordinary_address_classes): Likewise.
4936 * target-debug.h (target_debug_print_signals): Likewise.
4937 * utils.c (do_restore_current_language): Likewise.
4938
4939 2015-08-06 Clem Dickey <clemd@acm.org>
4940
4941 PR python/17136
4942 * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
4943
4944 2015-08-06 Simon Marchi <simon.marchi@ericsson.com>
4945
4946 * complaints.c (enum complaint_series): Add newlines and remove
4947 out of date comment.
4948 (struct complaints) <series>: Change type to enum
4949 complaint_series and remove out of date comment.
4950 (symfile_complaint_hook): Use equivalent enum value
4951 ISOLATED_MESSAGE instead of 0.
4952
4953 2015-08-06 Pedro Alves <palves@redhat.com>
4954
4955 * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
4956 returned > 0.
4957
4958 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
4959
4960 * common/agent.c (symbol_list) <required>: Remove.
4961
4962 2015-08-06 Pedro Alves <palves@redhat.com>
4963
4964 * target/waitstatus.h (enum target_stop_reason)
4965 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
4966
4967 2015-08-05 Pedro Alves <palves@redhat.com>
4968 Joel Brobecker <brobecker@adacore.com>
4969
4970 * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
4971 <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
4972 case where BS->STOP is not set.
4973
4974 2015-08-05 Ulrich Weigand <uweigand@de.ibm.com>
4975
4976 * nat/gdb_thread_db.h: Add copyright header.
4977 Protect against multiple inclusion.
4978
4979 2015-08-05 Yao Qi <yao.qi@linaro.org>
4980
4981 * aarch64-linux-nat.c (get_thread_id): Remove.
4982 (debug_reg_change_callback): Call ptid_get_lwp instead of
4983 get_thread_id.
4984 (fetch_gregs_from_thread): Likewise.
4985 (store_gregs_to_thread): Likewise.
4986 (fetch_fpregs_from_thread): Likewise.
4987 (store_fpregs_to_thread): Likewise.
4988 (aarch64_linux_get_debug_reg_capacity): Likewise.
4989 * arm-linux-nat.c (get_thread_id): Remove.
4990 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
4991 * xtensa-linux-nat.c (get_thread_id): Remove.
4992 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
4993 * arm-linux-nat.c (get_thread_id): Remove.
4994 (GET_THREAD_ID): Remove.
4995 (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
4996 (store_fpregs, fetch_regs, store_regs): Likewise.
4997 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
4998 (fetch_vfp_regs, store_vfp_regs): Likewise.
4999 (arm_linux_read_description): Likewise.
5000 (arm_linux_get_hwbp_cap): Likewise.
5001 * xtensa-linux-nat.c (get_thread_id): Remove.
5002 (GET_THREAD_ID): Remove.
5003 (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
5004 GET_THREAD_ID.
5005
5006 2015-08-04 Ciro Santilli <ciro.santilli@gmail.com> (obvious patch)
5007
5008 * python/py-linetable.c: Fix case of Linetable to LineTable
5009 in docstrings and code comments.
5010 * python/py-symtab.c: Same.
5011
5012 2015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5013
5014 * infcmd.c (signal_command): Call do_cleanups for args_chain.
5015
5016 2015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5017
5018 PR gdb/18767
5019 * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
5020 use.
5021
5022 2015-08-04 Pedro Alves <palves@redhat.com>
5023
5024 * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
5025 (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
5026 (td_ta_event_addr_ftype, td_ta_set_event_ftype)
5027 (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
5028 (td_thr_validate_ftype, td_thr_get_info_ftype)
5029 (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
5030 (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
5031 New typedefs.
5032 * linux-thread-db.c (struct thread_db_info): Use new typedefs.
5033 (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
5034 local macros and use them instead of verbose_dlsym and dlsym
5035 calls.
5036
5037 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
5038
5039 * nios2-tdep.h: Include opcode/nios2.h here.
5040 (NIOS2_CDX_OPCODE_SIZE): New.
5041 (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
5042 * nios2-tdep.c: Don't include opcode/nios2.h here.
5043 (nios2_fetch_insn): For R2, try reading 2-byte instruction if
5044 4-byte read fails.
5045 (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
5046 (nios2_match_addi, nios2_match_orhi): Likewise.
5047 (nios2_match_stw, nios2_match_ldw): Likewise.
5048 (nios2_match_rdctl): Likewise.
5049 (nios2_match_stwm, nios2_match_ldwm): New.
5050 (nios2_match_branch): Add cases for R2 encodings.
5051 (nios2_match_jmpi, nios2_match_calli): Likewise.
5052 (nios2_match_jmpr, nios2_match_callr): Likewise.
5053 (nios2_match_break, nios2_match_trap): Likewise.
5054 (nios2_in_epilogue_p): Add R2 support.
5055 (nios2_analyze_prologue): Update comments. Recognize R2 CDX
5056 prologues.
5057 (nios2_breakpoint_from_pc): Handle R2 instructions.
5058 (nios2_get_next_pc): Likewise. Adjust call to
5059 tdep->syscall_next_pc.
5060 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
5061 Renamed from nios2_linux_rt_sigreturn_tramp_frame. Use
5062 instruction field macros instead of literal hex values.
5063 (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
5064 (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
5065 Use size field from OP instead of assuming all instructions
5066 are the same size.
5067 (nios2_linux_init_abi): Register appropriate unwinder for mach.
5068
5069 2015-08-03 Ulrich Weigand <uweigand@de.ibm.com>
5070
5071 * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
5072 variable warning with some compilers.
5073
5074 2015-08-03 Yao Qi <yao.qi@linaro.org>
5075
5076 * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
5077 in comment. Replace "rw" with "type".
5078 (arm_linux_remove_watchpoint): Change type of "rw" to
5079 "enum target_hw_bp_type".
5080
5081 2015-08-02 Pierre-Marie de Rodat <derodat@adacore.com>
5082
5083 * alpha-mdebug-tdep.c (find_proc_desc): Update call to
5084 lookup_symbol.
5085 * ft32-tdep.c (ft32_skip_prologue): Likewise.
5086 * moxie-tdep.c (moxie_skip_prologue): Likewise.
5087 * mt-tdep.c (mt_skip_prologue): Likewise.
5088 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
5089
5090 2015-08-01 Pierre-Marie de Rodat <derodat@adacore.com>
5091
5092 * ada-exp.y (write_object_renaming): Replace struct
5093 ada_symbol_info with struct block_symbol. Update field
5094 references accordingly.
5095 (block_lookup, select_possible_type_sym): Likewise.
5096 (find_primitive_type): Likewise. Also update call to
5097 ada_lookup_symbol to extract the symbol itself.
5098 (write_var_or_type, write_name_assoc): Likewise.
5099 * ada-lang.h (struct ada_symbol_info): Remove.
5100 (ada_lookup_symbol_list): Replace struct ada_symbol_info with
5101 struct block_symbol.
5102 (ada_lookup_encoded_symbol, user_select_syms): Likewise.
5103 (ada_lookup_symbol): Return struct block_symbol instead of a
5104 mere symbol.
5105 * ada-lang.c (defns_collected): Replace struct ada_symbol_info
5106 with struct block_symbol.
5107 (resolve_subexp, ada_resolve_function, sort_choices,
5108 user_select_syms, is_nonfunction, add_defn_to_vec,
5109 num_defns_collected, defns_collected,
5110 symbols_are_identical_enums, remove_extra_symbols,
5111 remove_irrelevant_renamings, add_lookup_symbol_list_worker,
5112 ada_lookup_symbol_list, ada_iterate_over_symbols,
5113 ada_lookup_encoded_symbol, get_var_value): Likewise.
5114 (ada_lookup_symbol): Return a block_symbol instead of a mere
5115 symbol. Replace struct ada_symbol_info with struct
5116 block_symbol.
5117 (ada_lookup_symbol_nonlocal): Likewise.
5118 (standard_lookup): Make block passing explicit through
5119 lookup_symbol_in_language.
5120 * ada-tasks.c (get_tcb_types_info): Update the calls to
5121 lookup_symbol_in_language to extract the mere symbol out of the
5122 returned value.
5123 (ada_tasks_inferior_data_sniffer): Likewise.
5124 * ax-gdb.c (gen_static_field): Likewise for the call to
5125 lookup_symbol.
5126 (gen_maybe_namespace_elt): Deal with struct block_symbol from
5127 lookup functions.
5128 (gen_expr): Likewise.
5129 * c-exp.y: Likewise. Remove uses of block_found.
5130 (lex_one_token, classify_inner_name, c_print_token): Likewise.
5131 (classify_name): Likewise. Rename the "sym" local variable to
5132 "bsym".
5133 * c-valprint.c (print_unpacked_pointer): Likewise.
5134 * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
5135 "sym" parameter from struct symbol * to struct block_symbol.
5136 Use it to remove uses of block_found. Deal with struct
5137 block_symbol from lookup functions.
5138 (gcc_convert_symbol): Likewise. Update the call to
5139 convert_symbol_sym.
5140 * compile/compile-object-load.c (compile_object_load): Deal with
5141 struct block_symbol from lookup functions.
5142 * cp-namespace.c (cp_lookup_nested_symbol_1,
5143 cp_lookup_nested_symbol, cp_lookup_bare_symbol,
5144 cp_search_static_and_baseclasses,
5145 cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
5146 cp_lookup_symbol_imports_or_template,
5147 cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
5148 lookup_namespace_scope, cp_lookup_nonlocal,
5149 find_symbol_in_baseclass): Return struct block_symbol instead of
5150 mere symbols and deal with struct block_symbol from lookup
5151 functions.
5152 * cp-support.c (inspect_type, replace_typedefs,
5153 cp_lookup_rtti_type): Deal with struct block_symbol from
5154 lookup functions.
5155 * cp-support.h (cp_lookup_symbol_nonlocal,
5156 cp_lookup_symbol_from_namespace,
5157 cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
5158 Return struct block_symbol instead of mere symbols.
5159 * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
5160 push_module_name):
5161 Deal with struct block_symbol from lookup functions. Remove
5162 uses of block_found.
5163 * eval.c (evaluate_subexp_standard): Update call to
5164 cp_lookup_symbol_namespace.
5165 * f-exp.y: Deal with struct block_symbol from lookup functions.
5166 Remove uses of block_found.
5167 (yylex): Likewise.
5168 * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
5169 lookup_enum, lookup_template_type, check_typedef): Deal with
5170 struct block_symbol from lookup functions.
5171 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
5172 * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
5173 (gdbscm_lookup_global_symbol): Likewise.
5174 * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
5175 * go-exp.y: Likewise. Remove uses of block_found.
5176 (package_name_p, classify_packaged_name, classify_name):
5177 Likewise.
5178 * infrun.c (insert_exception_resume_breakpoint): Likewise.
5179 * jv-exp.y (push_variable): Likewise.
5180 * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
5181 * language.c (language_bool_type): Likewise.
5182 * language.h (struct language_defn): Update
5183 la_lookup_symbol_nonlocal to return a struct block_symbol rather
5184 than a mere symbol.
5185 * linespec.c (find_label_symbols): Deal with struct block_symbol
5186 from lookup functions.
5187 * m2-exp.y: Likewise. Remove uses of block_found.
5188 (yylex): Likewise.
5189 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
5190 * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
5191 * p-exp.y: Likewise. Remove uses of block_found.
5192 (yylex): Likewise.
5193 * p-valprint.c (pascal_val_print): Likewise.
5194 * parse.c (write_dollar_variable): Likewise. Remove uses of
5195 block_found.
5196 * parser-defs.h (struct symtoken): Turn the SYM field into a
5197 struct block_symbol.
5198 * printcmd.c (address_info): Deal with struct block_symbol from
5199 lookup functions.
5200 * python/py-frame.c (frapy_read_var): Likewise.
5201 * python/py-symbol.c (gdbpy_lookup_symbol,
5202 gdbpy_lookup_global_symbol): Likewise.
5203 * skip.c (skip_function_command): Likewise.
5204 * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
5205 block_symbol instead of a mere symbol.
5206 * solib-spu.c (spu_lookup_lib_symbol): Likewise.
5207 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
5208 * solib.c (solib_global_lookup): Likewise.
5209 * solist.h (solib_global_lookup): Likewise.
5210 (struct target_so_ops): Update lookup_lib_global_symbol to
5211 return a struct block_symbol rather than a mere symbol.
5212 * source.c (select_source_symtab): Deal with struct block_symbol
5213 from lookup functions.
5214 * stack.c (print_frame_args, iterate_over_block_arg_vars):
5215 Likewise.
5216 * symfile.c (set_initial_language): Likewise.
5217 * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
5218 block_symbol.
5219 (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
5220 (struct symbol_cache_slot): Turn the FOUND field into a struct
5221 block_symbol.
5222 (block_found): Remove.
5223 (eq_symbol_entry): Update to deal with struct block_symbol in
5224 cache slots.
5225 (symbol_cache_lookup): Return a struct block_symbol rather than
5226 a mere symbol.
5227 (symbol_cache_mark_found): Add a BLOCK parameter to fill
5228 appropriately the cache slots. Update callers.
5229 (symbol_cache_dump): Update cache slots handling to the type
5230 change.
5231 (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
5232 lookup_symbol_aux, lookup_local_symbol,
5233 lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
5234 lookup_symbol_in_objfile_symtabs,
5235 lookup_symbol_in_objfile_from_linkage_name,
5236 lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
5237 lookup_symbol_in_static_block, lookup_static_symbol,
5238 lookup_global_symbol):
5239 Return a struct block_symbol rather than a mere symbol. Deal
5240 with struct block_symbol from other lookup functions. Remove
5241 uses of block_found.
5242 (lookup_symbol_in_block): Remove uses of block_found.
5243 (struct global_sym_lookup_data): Turn the RESULT field into a
5244 struct block_symbol.
5245 (lookup_symbol_global_iterator_cb): Update references to the
5246 RESULT field.
5247 (search_symbols): Deal with struct block_symbol from lookup
5248 functions.
5249 * symtab.h (struct block_symbol): New structure.
5250 (block_found): Remove.
5251 (lookup_symbol_in_language, lookup_symbol,
5252 basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
5253 lookup_static_symbol, lookup_global_symbol, lookup_language_this,
5254 lookup_global_symbol_from_objfile): Return a struct block_symbol
5255 rather than just a mere symbol. Update comments to remove
5256 mentions of block_found.
5257 * valops.c (find_function_in_inferior,
5258 value_struct_elt_for_reference, value_maybe_namespace_elt,
5259 value_of_this): Deal with struct block_symbol from lookup
5260 functions.
5261 * value.c (value_static_field, value_fn_field): Likewise.
5262
5263 2015-07-31 Simon Marchi <simon.marchi@ericsson.com>
5264
5265 * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
5266 instead of integer.
5267
5268 2015-07-31 Simon Marchi <simon.marchi@ericsson.com>
5269 Pedro Alves <palves@redhat.com>
5270
5271 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
5272 type or value instead of integer.
5273 (aarch64_linux_insert_watchpoint): Likewise.
5274 (aarch64_linux_remove_watchpoint): Likewise.
5275 * ada-lang.c (ada_op_print_tab): Likewise.
5276 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
5277 (amd64_linux_syscall_record_common): Likewise.
5278 * arch-utils.c (target_byte_order_user): Likewise.
5279 (default_byte_order): Likewise.
5280 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
5281 (arm_linux_get_hwbp_type): Likewise.
5282 (arm_linux_hw_watchpoint_initialize): Likewise.
5283 (arm_linux_insert_watchpoint): Likewise.
5284 * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
5285 (arm_linux_syscall_record): Likewise.
5286 * breakpoint.c (update_watchpoint): Likewise.
5287 (breakpoint_here_p): Likewise.
5288 (bpstat_print): Likewise.
5289 (enable_breakpoint_disp): Likewise.
5290 * c-lang.c (c_op_print_tab): Likewise.
5291 * cli/cli-decode.c (add_info_alias): Likewise.
5292 * d-lang.c (d_op_print_tab): Likewise.
5293 * eval.c (evaluate_subexp_standard): Likewise.
5294 * f-exp.y (dot_ops): Likewise.
5295 (f77_keywords): Likewise.
5296 * f-lang.c (f_op_print_tab): Likewise.
5297 * go-lang.c (go_op_print_tab): Likewise.
5298 * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
5299 * guile/scm-cmd.c (gdbscm_make_command): Likewise.
5300 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5301 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
5302 * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
5303 (struct scm_from_stringn_data): Likewise.
5304 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5305 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
5306 (ia64_linux_remove_watchpoint): Likewise.
5307 (ia64_linux_can_use_hw_breakpoint): Likewise.
5308 * infrun.c (print_stop_event): Likewise.
5309 * jv-lang.c (java_op_print_tab): Likewise.
5310 * linux-nat.c (linux_proc_xfer_partial): Likewise.
5311 * linux-nat.h (struct lwp_info): Likewise.
5312 * linux-thread-db.c (enable_thread_event): Likewise.
5313 * m2-lang.c (m2_op_print_tab): Likewise.
5314 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
5315 (mi_cmd_stack_list_variables): Likewise.
5316 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
5317 * mi/mi-out.c (mi_table_begin): Likewise.
5318 (mi_table_header): Likewise.
5319 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
5320 (mips_linux_insert_watchpoint): Likewise.
5321 (mips_linux_remove_watchpoint): Likewise.
5322 * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
5323 * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
5324 (mips_linux_watch_type_to_irw): Likewise.
5325 * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5326 (procfs_insert_hw_watchpoint): Likewise.
5327 (procfs_remove_hw_watchpoint): Likewise.
5328 (procfs_hw_watchpoint): Likewise.
5329 (procfs_can_use_hw_breakpoint): Likewise.
5330 (procfs_remove_hw_watchpoint): Likewise.
5331 (procfs_insert_hw_watchpoint): Likewise.
5332 * p-lang.c (pascal_op_print_tab): Likewise.
5333 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
5334 * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
5335 * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
5336 * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5337 (procfs_insert_watchpoint): Likewise.
5338 (procfs_remove_watchpoint): Likewise.
5339 * psymtab.c (recursively_search_psymtabs): Likewise.
5340 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
5341 (m32r_insert_watchpoint): Likewise.
5342 * remote-mips.c (mips_can_use_watchpoint): Likewise.
5343 (mips_insert_watchpoint): Likewise.
5344 (mips_remove_watchpoint): Likewise.
5345 * remote.c (watchpoint_to_Z_packet): Likewise.
5346 (remote_insert_watchpoint): Likewise.
5347 (remote_remove_watchpoint): Likewise.
5348 (remote_check_watch_resources): Likewise.
5349 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
5350 (s390_remove_watchpoint): Likewise.
5351 (s390_can_use_hw_breakpoint): Likewise.
5352 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5353 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
5354 * target.h (struct target_ops): Likewise.
5355 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
5356 * ui-out.c (struct ui_out_hdr): Likewise.
5357 (append_header_to_list): Likewise.
5358 (get_next_header): Likewise.
5359 (verify_field): Likewise.
5360 (ui_out_begin): Likewise.
5361 (ui_out_field_int): Likewise.
5362 (ui_out_field_fmt_int): Likewise.
5363 (ui_out_field_skip): Likewise.
5364 (ui_out_field_string): Likewise.
5365 (ui_out_field_fmt): Likewise.
5366 * varobj.c (new_variable): Likewise.
5367 * x86-nat.c (x86_insert_watchpoint): Likewise.
5368 (x86_remove_watchpoint): Likewise.
5369 (x86_can_use_hw_breakpoint): Likewise.
5370 * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
5371 * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
5372 previously anonymous enumeration type..
5373 * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
5374 value.
5375 * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
5376 (target_debug_print_enum_bptype): New.
5377 * target-delegates.c: Regenerate.
5378
5379 2015-07-30 Sandra Loosemore <sandra@codesourcery.com>
5380
5381 * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
5382 already says and disallow non-stack memory writes in the prologue.
5383
5384 2015-07-30 Sandra Loosemore <sandra@codesourcery.com>
5385
5386 * nios2-tdep.c (nios2_analyze_prologue): Update comments to
5387 reflect how current GCC emits stack overflow checks. Match
5388 both trap and break instructions for backward compatbility.
5389 Disallow other trap and break instructions in the prologue.
5390
5391 2015-07-30 Pedro Alves <palves@redhat.com>
5392
5393 PR threads/18600
5394 * linux-nat.c (wait_lwp): Report to the core when thread group
5395 leader exits.
5396
5397 2015-07-30 Pedro Alves <palves@redhat.com>
5398 Simon Marchi <simon.marchi@ericsson.com>
5399
5400 PR threads/18600
5401 * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
5402 mark the new thread as resumed. Remove STOPPING parameter.
5403 (wait_lwp): Adjust call to linux_handle_extended_wait.
5404 (linux_nat_filter_event): Adjust call to
5405 linux_handle_extended_wait.
5406 (resume_stopped_resumed_lwps): Add debug output.
5407
5408 2015-07-30 Pierre Langlois <pierre.langlois@arm.com>
5409
5410 * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
5411 isize argument.
5412 * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
5413 * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
5414 gdbarch_fast_tracepoint_valid_at.
5415 * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
5416 * gdbarch.h: Regenerate.
5417 * gdbarch.c: Regenerate.
5418 * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
5419 argument. Do not set it.
5420 * remote.c (remote_download_tracepoint): Adjust call to
5421 gdbarch_fast_tracepoint_valid_at. Call gdb_insn_length to get
5422 the instruction length.
5423
5424 2015-07-30 Yao Qi <yao.qi@linaro.org>
5425
5426 * arm-tdep.h (enum gdb_regnum): Move it to ...
5427 * arch/arm.h: ... here. New file.
5428 * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
5429
5430 2015-07-30 Pierre Langlois <pierre.langlois@arm.com>
5431
5432 * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
5433 Change its type to int *.
5434 (decode_br): Rename link argument to is_blr. Change its type to
5435 int *.
5436 (decode_cb): Rename op argument to is_cbnz. Change its type to
5437 int *.
5438 (decode_tb): Rename op argument to is_tbnz. Change its type to
5439 int *. Set is_tbnz to either 1 or 0.
5440 (aarch64_analyze_prologue): Change type of is_link to int. Add
5441 new variables is_cbnz and is_tbnz. Adjust call to
5442 aarch64_decode_cb and aarch64_decode_tb.
5443
5444 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
5445
5446 * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
5447 parameter.
5448 (mips_linux_new_thread): Likewise.
5449 * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
5450
5451 2015-07-29 Patrick Palka <patrick@parcs.ath.cx>
5452
5453 * top.c: Include "tui/tui.h".
5454 (undo_terminal_modifications_before_exit): New static function.
5455 (quit_force): Use it.
5456
5457 2015-07-29 Patrick Palka <patrick@parcs.ath.cx>
5458
5459 * target.c (terminal_state): Initialize to terminal_is_ours.
5460
5461 2015-07-29 Yao Qi <yao.qi@linaro.org>
5462
5463 PR record/18691
5464 * dcache.c (dcache_read_memory_partial): Call
5465 raw_memory_xfer_partial.
5466 * target.c (raw_memory_xfer_partial): Make it non-static.
5467 * target.h (raw_memory_xfer_partial): Declare.
5468
5469 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5470
5471 * c-valprint.c (c_val_print_array): Consider addressable memory
5472 unit size.
5473 (c_val_print_ptr): Likewise.
5474 (c_val_print_int): Likewise.
5475 * findvar.c (read_frame_register_value): Likewise.
5476 * valarith.c (find_size_for_pointer_math): Likewise.
5477 (value_ptrdiff): Likewise.
5478 (value_subscripted_rvalue): Likewise.
5479 * valops.c (read_value_memory): Likewise (and rename variables).
5480 (value_assign): Likewise.
5481 (value_repeat): Likewise.
5482 (value_array): Likewise.
5483 (value_slice): Likewise.
5484 * valprint.c (generic_val_print_ptr): Likewise.
5485 (generic_val_print_enum): Likewise.
5486 (generic_val_print_bool): Likewise.
5487 (generic_val_print_int): Likewise.
5488 (generic_val_print_char): Likewise.
5489 (generic_val_print_float): Likewise.
5490 (generic_val_print_decfloat): Likewise.
5491 (generic_val_print_complex): Likewise.
5492 (val_print_scalar_formatted): Likewise.
5493 (val_print_array_elements): Likewise.
5494 * value.c (set_value_parent): Likewise.
5495 (value_contents_copy_raw): Likewise.
5496 (set_internalvar_component): Likewise.
5497 (value_primitive_field): Likewise.
5498 (value_fetch_lazy): Likewise.
5499 * value.h (read_value_memory): Update comment.
5500
5501 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5502
5503 * value.c (get_value_arch): New function.
5504 * value.h (get_value_arch): New declaration.
5505
5506 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5507
5508 * value.c (struct value): Update comments.
5509
5510 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5511
5512 * gdbtypes.c (type_length_units): New function.
5513 * gdbtypes.h (type_length_units): New declaration.
5514 (struct type) <length>: Update comment.
5515
5516 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5517
5518 * valprint.c (generic_val_print): Factor out complex
5519 printing code to ...
5520 (generic_val_print_complex): ... this new function.
5521
5522 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5523
5524 * valprint.c (generic_val_print): Factor out decfloat
5525 printing code to ...
5526 (generic_val_print_decfloat): ... this new function.
5527
5528 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5529
5530 * valprint.c (generic_val_print): Factor out float
5531 printing code to ...
5532 (generic_val_print_float): ... this new function.
5533
5534 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5535
5536 * valprint.c (generic_val_print): Factor out char
5537 printing code to ...
5538 (generic_val_print_char): ... this new function.
5539
5540 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5541
5542 * valprint.c (generic_val_print): Factor out integer
5543 printing code to ...
5544 (generic_val_print_int): ... this new function.
5545
5546 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5547
5548 * valprint.c (generic_val_print): Factor out bool
5549 printing code to ...
5550 (generic_val_print_bool): ... this new function.
5551
5552 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5553
5554 * valprint.c (generic_val_print): Factor out function/method
5555 printing code to ...
5556 (generic_val_print_func): ... this new function.
5557
5558 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5559
5560 * valprint.c (generic_val_print): Factor out flags
5561 printing code to ...
5562 (generic_val_print_flags): ... this new function.
5563
5564 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5565
5566 * valprint.c (generic_val_print): Factor out enum
5567 printing code to ...
5568 (generic_val_print_enum): ... this new function.
5569
5570 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5571
5572 * valprint.c (generic_val_print): Factor out reference
5573 printing code to ...
5574 (generic_val_print_ref): ... this new function.
5575
5576 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5577
5578 * valprint.c (generic_val_print): Factor out memberptr
5579 printing code to ...
5580 (generic_val_print_memberptr): ... this new function.
5581
5582 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5583
5584 * valprint.c (generic_val_print): Factor out pointer
5585 printing code to ...
5586 (generic_val_print_ptr): ... this new function.
5587
5588 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5589
5590 * valprint.c (generic_val_print): Factor out array
5591 printing code to ...
5592 (generic_val_print_array): ... this new function.
5593
5594 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5595
5596 * valprint.c (generic_val_print): Factor out
5597 print_unpacked_pointer code to ...
5598 (print_unpacked_pointer): ... this new function.
5599
5600 2015-07-27 Patrick Palka <patrick@parcs.ath.cx>
5601
5602 * event-top.c (handle_sigterm): Don't inspect
5603 target_can_async_p. Always set the quit flag and always mark
5604 the async signal handler.
5605
5606 2015-07-27 Yao Qi <yao.qi@linaro.org>
5607
5608 * Makefile.in (REMOTE_EXAMPLES): Remove it.
5609
5610 2015-07-25 Kevin Buettner <kevinb@redhat.com>
5611
5612 * remote.c (read_ptid): Return null_ptid when no thread id
5613 is found.
5614 (remote_current_thread): Add log warning for malformed
5615 qC reply.
5616 (remote_start_remote): Add log warning when current thread
5617 not found.
5618
5619 2015-07-24 Pedro Alves <palves@redhat.com>
5620
5621 * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
5622 (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
5623 forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
5624
5625 2015-07-24 Pedro Alves <palves@redhat.com>
5626
5627 PR gdb/18717
5628 * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
5629 is resumed, and extend the debug log.
5630
5631 2015-07-24 Pedro Alves <palves@redhat.com>
5632
5633 * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
5634
5635 2015-07-24 Pedro Alves <palves@redhat.com>
5636
5637 * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
5638 sys/ptrace.h.
5639 * alpha-linux-nat.c: Likewise.
5640 * amd64-linux-nat.c: Likewise.
5641 * arm-linux-nat.c: Likewise.
5642 * hppa-linux-nat.c: Likewise.
5643 * i386-linux-nat.c: Likewise.
5644 * ia64-linux-nat.c: Likewise.
5645 * linux-fork.c: Likewise.
5646 * linux-nat.c: Likewise.
5647 * m32r-linux-nat.c: Likewise.
5648 * m68klinux-nat.c: Likewise.
5649 * mips-linux-nat.c: Likewise.
5650 * nat/linux-btrace.c: Likewise.
5651 * nat/linux-ptrace.c: Likewise.
5652 * nat/linux-ptrace.h
5653 * nat/mips-linux-watch.c: Likewise.
5654 * nat/x86-linux-dregs.c: Likewise.
5655 * ppc-linux-nat.c: Likewise.
5656 * s390-linux-nat.c: Likewise.
5657 * spu-linux-nat.c: Likewise.
5658 * tilegx-linux-nat.c: Likewise.
5659 * x86-linux-nat.c: Likewise.
5660 * xtensa-linux-nat.c: Likewise.
5661
5662 2015-07-24 Pedro Alves <palves@redhat.com>
5663
5664 * ptrace.m4 (ptrace tests): Test in C++ mode. Try with 'enum
5665 __ptrace_request as first parameter type instead of int.
5666 (PTRACE_TYPE_ARG1): Define.
5667 * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
5668 that casts first argument to PTRACE_TYPE_ARG1.
5669 * config.in: Regenerate.
5670 * configure: Regenerate.
5671
5672 2015-07-24 Pedro Alves <palves@redhat.com>
5673
5674 * gdb_ptrace.h: Move ...
5675 * nat/gdb_ptrace.h: ... here.
5676 * inf-ptrace.c: Adjust.
5677
5678 2015-07-24 Pedro Alves <palves@redhat.com>
5679
5680 * acinclude.m4: Include ptrace.m4.
5681 * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
5682 * ptrace.m4: ... to this new file.
5683
5684 2015-07-23 Doug Evans <dje@google.com>
5685
5686 * dwarf2read.c (dwarf2_per_cu_data): Add comment.
5687 (load_cu): Handle dummy CUs.
5688 (dw2_do_instantiate_symtab, process_queuef): Ditto.
5689 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
5690
5691 2015-07-23 Ciro Santilli <ciro.santilli@gmail.com> (tiny patch)
5692
5693 * py-linetable.c (ltpy_get_all_source_lines): Adjust function
5694 documentation to say that it returns a list rather than
5695 a FrozenSet.
5696 (linetable_object_methods): Update the docstring of the
5697 "source_line" entry.
5698
5699 2015-07-23 Pierre-Marie de Rodat <derodat@adacore.com>
5700
5701 * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
5702 type to the recursive call instead of the original (maybe
5703 TYPE_CODE_TYPEDEF) type.
5704
5705 2015-07-23 Yao Qi <yao.qi@linaro.org>
5706
5707 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
5708 TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
5709 If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
5710
5711 2015-07-21 Yao Qi <yao.qi@linaro.org>
5712
5713 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
5714 Move it to nat/aarch64-linux-hw-point.c.
5715 (aarch64_linux_child_post_startup_inferior): Update.
5716 * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
5717 New function.
5718 * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
5719 Declare it.
5720
5721 2015-07-21 Markus Metzger <markus.t.metzger@intel.com>
5722
5723 * common/btrace-common.c (btrace_data_append): Change case label.
5724
5725 2015-07-20 Yao Qi <yao.qi@linaro.org>
5726
5727 * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
5728 Re-indent the code.
5729 * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
5730 "unsigned long long".
5731
5732 2015-07-18 Kevin Buettner <kevinb@redhat.com>
5733
5734 * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
5735 to be set for SEC_ALLOC sections too.
5736
5737 2015-07-17 Yao Qi <yao.qi@linaro.org>
5738
5739 * Makefile.in (HFILES_NO_SRCDIR): Add
5740 nat/aarch64-linux-hw-point.h.
5741 (aarch64-linux-hw-point.o): New rule.
5742 * nat/aarch64-linux-hw-point.h: New file.
5743 * nat/aarch64-linux-hw-point.c: New file.
5744 * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
5745 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
5746 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
5747 (AARCH64_HWP_ALIGNMENT): Likewise.
5748 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
5749 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
5750 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
5751 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
5752 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
5753 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
5754 (struct aarch64_debug_reg_state): Likewise.
5755 (struct arch_lwp_info): Likewise.
5756 (aarch64_linux_set_debug_regs): Likewise.
5757 (aarch64_notify_debug_reg_change): Remove static.
5758 (aarch64_align_watchpoint): Likewise.
5759 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
5760 (aarch64_watchpoint_length): Likewise.
5761 (aarch64_point_encode_ctrl_reg): Likewise
5762 (aarch64_point_is_aligned): Likewise.
5763 (aarch64_dr_state_insert_one_point): Likewise.
5764 (aarch64_dr_state_remove_one_point): Likewise.
5765 (aarch64_handle_breakpoint): Likewise.
5766 (aarch64_handle_aligned_watchpoint): Likewise.
5767 (aarch64_handle_unaligned_watchpoint): Likewise.
5768 (aarch64_handle_watchpoint): Likewise.
5769 * config/aarch64/linux.mh (NAT_FILE): Add
5770 aarch64-linux-hw-point.o.
5771
5772 2015-07-17 Yao Qi <yao.qi@linaro.org>
5773
5774 * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
5775 state and don't call aarch64_get_debug_reg_state. All callers
5776 update.
5777 (aarch64_linux_insert_hw_breakpoint): Call
5778 aarch64_get_debug_reg_state earlier.
5779 (aarch64_linux_remove_hw_breakpoint): Likewise.
5780 (aarch64_handle_aligned_watchpoint): Add argument state and
5781 don't call aarch64_get_debug_reg_state. All callers update.
5782 (aarch64_handle_unaligned_watchpoint): Likewise.
5783 (aarch64_handle_watchpoint): Add argument state.
5784 (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
5785 earlier.
5786 (aarch64_linux_remove_watchpoint): Likewise.
5787
5788 2015-07-17 Yao Qi <yao.qi@linaro.org>
5789
5790 * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
5791 debug_printf.
5792 (aarch64_handle_unaligned_watchpoint): Likewise.
5793
5794 2015-07-17 Yao Qi <yao.qi@linaro.org>
5795
5796 * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
5797 argument type's type to 'enum target_hw_bp_type'.
5798 (aarch64_dr_state_remove_one_point): Likewise.
5799 (aarch64_handle_breakpoint): Likewise.
5800 (aarch64_linux_insert_hw_breakpoint): Likewise.
5801 (aarch64_linux_remove_hw_breakpoint): Likewise.
5802 (aarch64_handle_aligned_watchpoint): Likewise.
5803
5804 2015-07-17 Yao Qi <yao.qi@linaro.org>
5805
5806 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
5807 ptid_get_pid instead of get_thread_id.
5808
5809 2015-07-17 Yao Qi <yao.qi@linaro.org>
5810
5811 * remote.c (get_current_thread): Initialise ptid to null_ptid.
5812 (add_current_inferior_and_thread): Don't initialise ptid.
5813
5814 2015-07-16 Pierre Langlois <pierre.langlois@arm.com>
5815
5816 * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
5817 unavailable if invalid.
5818
5819 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5820
5821 Revert the previous 6 commits:
5822 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
5823 Move gdb_regex* to common/
5824 Prepare linux_find_memory_regions_full & co. for move
5825 Move linux_find_memory_regions_full & co.
5826 gdbserver build-id attribute generator
5827 Validate symbol file using build-id
5828
5829 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5830 Jan Kratochvil <jan.kratochvil@redhat.com>
5831
5832 Validate symbol file using build-id.
5833 * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
5834 and 'show validate-build-id'. Add build-id attribute.
5835 * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
5836 * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
5837 * solib-frv.c (_initialize_frv_solib): Ditto.
5838 * solib-spu.c (set_spu_solib_ops): Ditto.
5839 * solib-svr4.c: Include rsp-low.h.
5840 (NOTE_GNU_BUILD_ID_NAME): New define.
5841 (svr4_validate): New function.
5842 (svr4_copy_library_list): Duplicate field build_id.
5843 (library_list_start_library): Parse 'build-id' attribute.
5844 (svr4_library_attributes): Add 'build-id' attribute.
5845 (_initialize_svr4_solib): Assign validate value.
5846 * solib-target.c (solib.h): Include.
5847 (_initialize_solib_target): Assign validate value.
5848 * solib.c (validate_build_id, show_validate_build_id): New.
5849 (solib_map_sections): Use ops->validate.
5850 (clear_so): Free build_id.
5851 (default_solib_validate): New function.
5852 (_initialize_solib): Add "validate-build-id".
5853 * solib.h (default_solib_validate): New declaration.
5854 * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
5855 (target_so_ops): New field 'validate'.
5856
5857 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5858 Jan Kratochvil <jan.kratochvil@redhat.com>
5859
5860 gdbserver build-id attribute generator.
5861 * features/library-list-svr4.dtd (library-list-svr4): New
5862 'build-id' attribute.
5863
5864 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5865 Jan Kratochvil <jan.kratochvil@redhat.com>
5866
5867 Move linux_find_memory_regions_full & co.
5868 * linux-tdep.c (nat/linux-maps.h): Include.
5869 (gdb_regex.h): Remove the include.
5870 (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
5871 (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
5872 (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
5873 (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
5874 * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
5875 and target/target.h.
5876 (struct smaps_vmflags, read_mapping, decode_vmflags)
5877 (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
5878 (linux_find_memory_regions_full): Move from linux-tdep.c.
5879 * nat/linux-maps.h (read_mapping): New declaration.
5880 (linux_find_memory_region_ftype, enum filterflags): Moved from
5881 linux-tdep.c.
5882 (linux_find_memory_regions_full): New declaration.
5883 * target.c (target/target-utils.h): Include.
5884 (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
5885 (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
5886 definitions to target/target-utils.c.
5887 * target.h (target_fileio_read_stralloc): Move it to target/target.h.
5888 * target/target-utils.c (read_alloc, read_stralloc): Move definitions
5889 from target.c.
5890 * target/target-utils.h (read_alloc_pread_ftype): New typedef.
5891 (read_alloc): New declaration.
5892 (read_stralloc_func_ftype): New typedef.
5893 (read_stralloc): New declaration.
5894 * target/target.h (target_fileio_read_stralloc): Move it from target.h.
5895
5896 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5897 Jan Kratochvil <jan.kratochvil@redhat.com>
5898
5899 Prepare linux_find_memory_regions_full & co. for move.
5900 * linux-tdep.c (linux_find_memory_region_ftype): Comment.
5901 (linux_find_memory_regions_full): Change signature and prepare
5902 for moving to linux-maps.
5903 (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
5904 (linux_find_memory_regions_thunk): New.
5905 (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
5906 (linux_find_memory_regions_gdb): New.
5907 (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
5908 (linux_make_mappings_corefile_notes): Use
5909 linux_find_memory_regions_gdb.
5910 * target.c (read_alloc_pread_ftype): New typedef.
5911 (target_fileio_read_alloc_1_pread): New function.
5912 (read_alloc): Refactor from target_fileio_read_alloc_1.
5913 (read_stralloc_func_ftype): New typedef.
5914 (target_fileio_read_alloc_1): New implementation. Use read_alloc.
5915 (read_stralloc): Refactored from target_fileio_read_stralloc.
5916 (target_fileio_read_stralloc): New implementation, use read_stralloc.
5917
5918 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5919
5920 * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
5921 common/gdb_regex.h.
5922 (COMMON_OBS): Add gdb_regex.o.
5923 (gdb_regex.o): New.
5924 * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
5925 --without-included-regex and USE_INCLUDED_REGEX.
5926 * common/gdb_regex.c: New file from utils.c functions.
5927 * common/gdb_regex.h: Move it here from gdb_regex.h, update include
5928 file wrapping define name.
5929 * configure: Rebuilt.
5930 * configure.ac (gdb_use_included_regex, --without-included-regex)
5931 (USE_INCLUDED_REGEX): Move them to common/common.m4.
5932 * gdb_regex.h: Move it to common/gdb_regex.h.
5933 * utils.c: Remove include gdb_regex.h.
5934 (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
5935 (compile_rx_or_error): Move them to common/gdb_regex.c.
5936
5937 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5938 Jan Kratochvil <jan.kratochvil@redhat.com>
5939
5940 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
5941 * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
5942 common/target-utils.h.
5943 (COMMON_OBS): Add target-utils.o.
5944 (linux-maps.o, target-utils.o): New.
5945 * target/target-utils.c: New file.
5946 * target/target-utils.h: New file.
5947 * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
5948 * config/i386/linux64.mh (NATDEPFILES): Ditto.
5949 * nat/linux-maps.c: New file.
5950 * nat/linux-maps.h: New file.
5951
5952 2015-07-15 Markus Metzger <markus.t.metzger@intel.com>
5953 Pedro Alves <palves@redhat.com>
5954
5955 * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
5956 (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
5957 (perf_event_read_bts): Change the type of SIZE and READ.
5958 (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
5959 and DATA_OFFSET. Move DATA_SIZE declaration. Restrict the buffer size
5960 to UINT_MAX. Check for overflows when using DATA_HEAD from the perf
5961 mmap page.
5962 (linux_enable_pt): Change the type of PAGES and SIZE. Restrict the
5963 buffer size to UINT_MAX.
5964 (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
5965 DATA_TAIL.
5966 * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
5967 <last_head>: Change type.
5968 * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
5969 * common/btrace-common.c (btrace_data_append): Change the type of
5970 SIZE.
5971 * btrace.c (parse_xml_raw): Change the type of SIZE. Change oddness
5972 check.
5973
5974 2015-07-14 Simon Marchi <simon.marchi@ericsson.com>
5975
5976 * gdbtypes.h (CHECK_TYPEDEF): Remove.
5977 * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
5978 with check_typedef.
5979 * ada-lang.c (decode_constrained_packed_array_type): Likewise.
5980 (ada_array_length): Likewise.
5981 (find_parallel_type_by_descriptive_type): Likewise.
5982 (ada_check_typedef): Likewise.
5983 * arm-tdep.c (arm_return_in_memory): Likewise.
5984 * ax-gdb.c (gen_trace_static_fields): Likewise.
5985 (gen_struct_ref_recursive): Likewise.
5986 * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
5987 (variable: block COLONCOLON name): Likewise.
5988 (qualified_name: TYPENAME COLONCOLON name): Likewise.
5989 * c-lang.c (classify_type): Likewise.
5990 * c-typeprint.c (c_print_type): Likewise.
5991 (c_print_typedef): Likewise.
5992 (c_type_print_base): Likewise.
5993 * c-valprint.c (c_val_print): Likewise.
5994 * compile/compile-c-types.c (convert_type): Likewise.
5995 * compile/compile-object-load.c (get_out_value_type): Likewise.
5996 * completer.c (add_struct_fields): Likewise.
5997 (expression_completer): Likewise.
5998 * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
5999 (cp_lookup_nested_symbol_1): Likewise.
6000 (cp_lookup_nested_symbol): Likewise.
6001 * cp-valprint.c (cp_print_value_fields): Likewise.
6002 (cp_print_static_field): Likewise.
6003 * d-valprint.c (d_val_print): Likewise.
6004 * eval.c (evaluate_subexp_standard): Likewise.
6005 (evaluate_subexp_for_sizeof): Likewise.
6006 * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6007 * f-typeprint.c (f_type_print_base): Likewise.
6008 * f-valprint.c (f_val_print): Likewise.
6009 * gdbtypes.c (get_discrete_bounds): Likewise.
6010 (create_array_type_with_stride): Likewise.
6011 (type_name_no_tag_or_error): Likewise.
6012 (lookup_struct_elt_type): Likewise.
6013 (get_unsigned_type_max): Likewise.
6014 (internal_type_vptr_fieldno): Likewise.
6015 (set_type_vptr_fieldno): Likewise.
6016 (internal_type_vptr_basetype): Likewise.
6017 (set_type_vptr_basetype): Likewise.
6018 (get_vptr_fieldno): Likewise.
6019 (is_integral_type): Likewise.
6020 (is_scalar_type): Likewise.
6021 (is_scalar_type_recursive): Likewise.
6022 (distance_to_ancestor): Likewise.
6023 (is_unique_ancestor_worker): Likewise.
6024 (check_types_equal): Likewise.
6025 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
6026
6027 2015-07-14 Iain Buclaw <ibuclaw@gdcproject.org>
6028
6029 * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
6030 also test for language_d.
6031 (dwarf2_compute_name): Likewise.
6032 (read_func_scope): Likewise.
6033 (read_structure_type): Likewise.
6034 (new_symbol_full): Likewise.
6035 (determine_prefix): Likewise.
6036 (read_import_statement): Use dot as the separator for language_d.
6037 (typename_concat): Likewise, but don't prefix the D main function.
6038
6039 2015-07-14 Peter Bergner <bergner@vnet.ibm.com>
6040
6041 * nat/linux-namespaces.c (setns): Rename from this ...
6042 (do_setns): ... to this. Support calling setns if it exists.
6043 (mnsh_handle_setns): Call do_setns.
6044
6045 2015-07-13 Yao Qi <yao.qi@linaro.org>
6046
6047 * exec.c (exec_file_attach): Add period at the end of error
6048 message.
6049
6050 2015-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
6051
6052 * tui/tui-win.c (window_name_completer): New function.
6053 (focus_completer): Call window_name_completer. All old content
6054 moved into window_name_completer.
6055 (winheight_completer): New function.
6056 (_initialize_tui_win): Rename variable. Add completer to
6057 winheight command. Update doc string on winheight.
6058
6059 2015-07-12 Sandra Loosemore <sandra@codesourcery.com>
6060
6061 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
6062 all nios2 mach variants.
6063
6064 2015-07-10 Kevin Buettner <kevinb@redhat.com>
6065
6066 * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
6067 of target_read_memory.
6068
6069 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6070
6071 * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
6072 string copy.
6073 (parse_scrolling_args): Likewise.
6074
6075 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6076
6077 * tui/tui-win.c (focus_completer): Don't duplicate the tui window
6078 names in this function.
6079
6080 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6081
6082 * tui/tui-data.h (SRC_NAME): Convert to lower case.
6083 (CMD_NAME): Likewise.
6084 (DATA_NAME): Likewise.
6085 (DISASSEM_NAME): Likewise.
6086 * tui/tui-win.c (tui_set_focus): Window names are now lower case.
6087 (tui_set_win_height): Likewise.
6088 (parse_scrolling_args): Likewise.
6089
6090 2015-07-10 Markus Metzger <markus.t.metzger@intel.com>
6091
6092 * record-btrace.c (record_btrace_goto_begin)
6093 (record_btrace_goto_end, record_btrace_goto): Move call to
6094 print_stack_frame ...
6095 (record_btrace_set_replay): ... here. Set stop_pc.
6096 * record-full.c (record_full_goto_entry): Set stop_pc.
6097
6098 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6099
6100 * NEWS: Mention support for tracepoints on aarch64-linux.
6101
6102 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6103
6104 * linux-aarch64-low.c (aarch64_supports_tracepoints): New
6105 function. Return 1.
6106 (the_low_target): Install it.
6107
6108 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6109
6110 * gdb.trace/backtrace.exp: Set registers for aarch64 target.
6111 * gdb.trace/collection.exp: Likewise.
6112 * gdb.trace/mi-trace-frame-collected.exp: Likewise.
6113 * gdb.trace/mi-trace-unavailable.exp: Likewise.
6114 * gdb.trace/report.exp: Likewise.
6115 * gdb.trace/trace-break.exp: Likewise.
6116 * gdb.trace/unavailable.exp: Likewise.
6117 * gdb.trace/while-dyn.exp: Likewise.
6118
6119 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6120
6121 * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
6122 (aarch64_gen_return_address): New function.
6123 (aarch64_gdbarch_init): Hook it.
6124
6125 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6126
6127 * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
6128 swallow NOT_AVAILABLE_ERROR.
6129 (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
6130 available_p is not set.
6131 (aarch64_stub_frame_unwind_stop_reason): New function.
6132 (aarch64_stub_unwind): Install it.
6133
6134 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6135
6136 * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
6137 field.
6138 (aarch64_make_prologue_cache_1): New function, factored out from
6139 aarch64_make_prologue_cache. Do not allocate cache. Set
6140 available_p.
6141 (aarch64_make_prologue_cache): Reimplement wrapping
6142 aarch64_make_prologue_cache_1, and swallowing
6143 NOT_AVAILABLE_ERROR.
6144 (aarch64_prologue_frame_unwind_stop_reason): New function.
6145 Return UNWIND_UNAVAILABLE if available_p is not set.
6146 (aarch64_prologue_unwind): Install it.
6147 (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
6148 checks into aarch64_prologue_frame_unwind_stop_reason. Call
6149 frame_id_build_unavailable_stack if available_p is not set.
6150
6151 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6152
6153 * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
6154 fields.
6155 (aarch64_scan_prologue): Set prev_pc.
6156 (aarch64_make_prologue_cache): Set func.
6157 (aarch64_make_stub_cache): Set prev_pc.
6158 (aarch64_prologue_this_id): Remove local variables id, pc and
6159 func. Read prev_pc and func from cache.
6160 (aarch64_stub_this_id): Read prev_pc from cache.
6161
6162 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6163
6164 * aarch64-tdep.c (aarch64_make_stub_cache): Update comment. New
6165 argument this_cache. Remove unused local variables reg and
6166 unwound_fp. Return early if this_cache is already set. Set
6167 this_cache.
6168 (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
6169
6170 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6171
6172 * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
6173 New argument this_cache. Return early if this_cache is already
6174 set. Set this_cache.
6175 (aarch64_prologue_this_id): Update call to
6176 aarch64_make_prologue_cache.
6177 (aarch64_prologue_prev_register): Likewise.
6178 (aarch64_normal_frame_base): Likewise.
6179
6180 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6181
6182 * c-valprint.c (c_val_print): Factor out memberptr printing code
6183 from c_val_print to ...
6184 (c_val_print_memberptr): ... this new function.
6185
6186 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6187
6188 * c-valprint.c (c_val_print): Factor out int printing code to ...
6189 (c_val_print_int): ... this new function.
6190
6191 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6192
6193 * c-valprint.c (c_val_print): Factor out struct and union
6194 printing code to ...
6195 (c_val_print_struct): ... this new function ...
6196 (c_val_print_union): ... and this new function.
6197
6198 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6199
6200 * c-valprint.c (c_val_print): Factor out pointer printing code
6201 to ...
6202 (c_val_print_ptr): ... this new function.
6203
6204 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6205
6206 * c-valprint.c (c_valprint): Factor our array printing code from
6207 c_val_print to ...
6208 (c_val_print_array): ... this new function.
6209
6210 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6211
6212 * c-valprint.c (c_val_print): Factor out pointer printing code
6213 to ...
6214 (print_unpacked_pointer): ... this new function.
6215
6216 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6217
6218 * c-valprint.c (c_val_print): Remove an assignment to i and move
6219 its declaration.
6220
6221 2015-07-09 Yao Qi <yao.qi@linaro.org>
6222
6223 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
6224 argument ptid. Update comments. Caller update.
6225
6226 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
6227
6228 * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
6229 mnt packets.
6230
6231 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
6232
6233 * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
6234
6235 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
6236
6237 * progspace.c (delete_program_space): Add missing spaces.
6238
6239 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
6240
6241 * inferior.c (delete_inferior_1): Rename to ...
6242 (delete_inferior): ..., remove 'silent' parameter, delete
6243 program space when unused and remove call to prune_program_spaces.
6244 Remove the old, unused, delete_inferior.
6245 (delete_inferior_silent): Remove.
6246 (prune_inferiors): Change call from delete_inferior_1 to
6247 delete_inferior and remove 'silent' parameter. Remove call to
6248 prune_program_spaces.
6249 (remove_inferior_command): Idem.
6250 * inferior.h (delete_inferior_1): Rename to...
6251 (delete_inferior): ..., remove 'silent' parameter and remove the
6252 original delete_inferior.
6253 (delete_inferior_silent): Remove.
6254 * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
6255 delete_inferior_1 to delete_inferior and remove 'silent'
6256 parameter.
6257 * progspace.c (prune_program_spaces): Remove.
6258 (pspace_empty_p): Rename to...
6259 (program_space_empty_p): ... and make non-static.
6260 (delete_program_space): New.
6261 * progspace.h (prune_program_spaces): Remove declaration.
6262 (program_space_empty_p): New declaration.
6263 (delete_program_space): New declaration.
6264 * monitor.c (monitor_close): Replace call to
6265 delete_thread_silent and delete_inferior_silent with
6266 discard_all_inferiors.
6267
6268 2015-07-08 Patrick Palka <patrick@parcs.ath.cx>
6269
6270 * defs.h (deprecated_register_changed_hook): Remove prototype.
6271 * interps.c (clear_iterpreter_hooks): Remove reference to
6272 deprecated_register_changed_hook.
6273 * top.c (deprecated_register_changed_hook): Remove prototype.
6274 * valops.c (value_assign): Remove reference to
6275 deprecated_register_changed_hook.
6276 * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
6277 Add comment documenting the function.
6278 (tui_register_changed_observer): Define.
6279 (tui_install_hooks): Remove reference to
6280 deprecated_register_changed_hook. Set
6281 tui_register_changed_observer.
6282 (tui_remove_hooks): Remove reference to
6283 deprecated_register_changed_hook. Unset
6284 tui_register_changed_observer.
6285
6286 2015-07-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6287
6288 PR compile/18484
6289 * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
6290
6291 2015-07-08 Robert O'Callahan <robert@ocallahan.org>
6292
6293 PR exp/18617
6294 * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
6295
6296 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
6297
6298 * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
6299
6300 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
6301
6302 * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
6303 Use safe_strerror() instead of strerror().
6304
6305 2015-07-07 Yao Qi <yao.qi@linaro.org>
6306
6307 * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
6308 * features/arm-with-m-fpa-layout.c: Regenerated.
6309 * features/arm-with-m-vfp-d16.xml: Likewise.
6310 * features/arm-with-m-vfp-d16.c: Regenerated.
6311 * features/arm-with-m.xml: Likewise.
6312 * features/arm-with-m.c: Regenerated.
6313 * features/arm-with-neon.xml: Likewise.
6314 * features/arm-with-neon.c: Regenerated.
6315 * features/arm-with-vfpv2.xml: Likewise.
6316 * features/arm-with-vfpv2.c: Regenerated.
6317 * features/arm-with-vfpv3.xml: Likewise.
6318 * features/arm-with-vfpv3.c: Regenerated.
6319
6320 2015-07-07 Yao Qi <yao.qi@linaro.org>
6321
6322 * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
6323 arm-linux-nat.c.
6324 * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
6325 elf/external.h.
6326 (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
6327 if target is 32-bit.
6328 (store_gregs_to_thread): Call aarch32_gp_regcache_collect
6329 if target is 32-bit.
6330 (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
6331 if target is 32-bit.
6332 (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
6333 if target is 32-bit.
6334 (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
6335 (aarch64_linux_read_description): Return the right target
6336 description.
6337 * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
6338 * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6339 * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
6340 arm-linux-tdep.o.
6341
6342 2015-07-07 Yao Qi <yao.qi@linaro.org>
6343
6344 * aarch32-linux-nat.c: New file.
6345 * aarch32-linux-nat.h: New file.
6346 * arm-linux-nat.c: Include aarch32-linux-nat.h.
6347 (fetch_regs): Move code to aarch32-linux-nat.c. Call
6348 aarch32_gp_regcache_supply.
6349 (store_regs): Move code to aarch32-linux-nat.c. Call
6350 aarch32_gp_regcache_collect.
6351 (fetch_vfp_regs): Move code to aarch32-linux-nat.c. Call
6352 aarch32_vfp_regcache_supply.
6353 (store_vfp_regs): Move code to aarch32-linux-nat.c. Call
6354 aarch32_vfp_regcache_collect.
6355 * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6356
6357 2015-07-07 Yao Qi <yao.qi@linaro.org>
6358
6359 * arm-linux-nat.c (store_fpregister): Remove.
6360 (store_register): Likewise.
6361 (fetch_fpregister): Likewise.
6362 (fetch_register): Likewise.
6363 (arm_linux_store_inferior_registers): Call store_regs and
6364 store_fpregs instead.
6365 (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
6366 fetch_regs instead.
6367
6368 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6369
6370 * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
6371 and focus commands.
6372
6373 2015-07-06 Joel Brobecker <brobecker@adacore.com>
6374
6375 * NEWS: Create a new section for the next release branch.
6376 Rename the section of the current branch, now that it has
6377 been cut.
6378
6379 2015-07-06 Joel Brobecker <brobecker@adacore.com>
6380
6381 GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
6382 * version.in: Bump version to 7.10.50.DATE-cvs.
6383
6384 2015-07-06 Luis Machado <lgustavo@codesourcery.com>
6385
6386 * breakpoint.c (remove_breakpoint_1): Don't handle permanent
6387 breakpoints in a special way.
6388 (remove_breakpoint): Likewise.
6389 (mark_breakpoints_out): Likewise.
6390
6391 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6392
6393 * doc/gdb.texinfo (TUI): Add comma after @xref.
6394
6395 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6396
6397 * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
6398 instead of casting the structure type.
6399
6400 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
6401
6402 * valops.c (search_struct_field): Remove OFFSET parameter.
6403 (value_cast_structs): Adjust calls to search_struct_field.
6404 (value_struct_elt): Same.
6405 (find_overload_match): Same.
6406
6407 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
6408
6409 * value.c (value_fetch_lazy): Update comment, change return
6410 value to void.
6411 * value.h (value_fetch_lazy): Change return value to void.
6412
6413 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6414
6415 * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
6416 (tui_win_name): Make parameter and result const.
6417 * tui/tui-data.h (tui_win_name): Make parameter and result const.
6418
6419 2015-07-06 Patrick Palka <patrick@parcs.ath.cx>
6420
6421 * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
6422 use printf_unfiltered.
6423 (set_mpx_cmd): Add missing trailing space to command string
6424 literal.
6425 (_initialize_i386_tdep): Give the "mpx" prefix command its
6426 correct name.
6427
6428 2015-07-02 Kevin Buettner <kevinb@redhat.com>
6429
6430 * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
6431 (enum rx_frame_type): New.
6432 (struct rx_prologue): Add new field `frame_type'.
6433 (rx_analyze_prologue): Add `frame_type' parameter. Cache this
6434 parameter in the prologue struct. Add code for recording
6435 locations of PC and PSW for fast interrupt and exception frames.
6436 (rx_skip_prologue): Adjust call to rx_analyze_prologue.
6437 (rx_analyze_frame_prologue): Add `frame_type' parameter.
6438 (rx_frame_type): New function.
6439 (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
6440 (rx_frame_this_id): Rename parameter `this_prologue_cache' to
6441 `this_cache'.
6442 (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
6443 `this_cache'. Add cases for RX_FRAME_TYPE_EXCEPTION and
6444 RX_FRAME_TYPE_FAST_INTERRUPT.
6445 (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
6446 (rx_frame_sniffer, rx_exception_sniffer): New functions.
6447 (rx_frame_unwind): Use rx_frame_sniffer instead of
6448 default_frame_sniffer.
6449 (rx_frame_unwind): New unwinder.
6450 (rx_gdbarch_init): Register new unwinder.
6451
6452 2015-07-02 Kevin Buettner <kevinb@redhat.com>
6453
6454 * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
6455 (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
6456 (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
6457 and RX_FPSW_REGNUM.
6458 (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
6459
6460 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6461
6462 Fix GCC false warning.
6463 * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
6464
6465 2015-07-02 Yao Qi <yao.qi@linaro.org>
6466
6467 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
6468 typo in the debugging message.
6469
6470 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6471
6472 * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
6473 (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
6474 (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
6475 (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
6476 (btrace_maint_clear): New.
6477 (btrace_fetch, btrace_clear): Call btrace_maint_clear.
6478 (pt_print_packet, btrace_maint_decode_pt)
6479 (btrace_maint_update_pt_packets, btrace_maint_update_packets)
6480 (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
6481 (maint_btrace_packet_history_cmd)
6482 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
6483 (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
6484 (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
6485 (maint_info_btrace_cmd, _initialize_btrace): New.
6486 * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
6487 (btrace_maint_packet_history, btrace_maint_info): New.
6488 (btrace_thread_info) <maint>: New.
6489 * NEWS: Announce it.
6490
6491 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6492
6493 * btrace.c (btrace_fetch): Append the new trace data.
6494 (btrace_clear): Clear the stored trace data.
6495 * btrace.h (btrace_thread_info) <data>: New.
6496 * common/btrace-common.h (btrace_data_clear)
6497 (btrace_data_append): New.
6498 * common/btrace-common.c (btrace_data_clear)
6499 (btrace_data_append): New.
6500
6501 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6502
6503 * nat/linux-btrace.c (linux_enable_bts): Check for
6504 PERF_ATTR_SIZE_VER5.
6505 Check for data_offset and data_size fields. Use them.
6506
6507 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6508
6509 * NEWS: Announce new commands "record btrace pt" and "record pt".
6510 Announce new options "set|show record btrace pt buffer-size".
6511 * btrace.c: Include "rsp-low.h".
6512 Include "inttypes.h".
6513 (btrace_add_pc): Add forward declaration.
6514 (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
6515 (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
6516 (btrace_compute_ftrace_pt): New.
6517 (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
6518 (check_xml_btrace_version): Update version check.
6519 (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
6520 (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
6521 (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
6522 (btrace_pt_children): New.
6523 (btrace_children): Add support for "pt".
6524 (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
6525 (btrace_conf_children): Add support for "pt".
6526 * btrace.h: Include "intel-pt.h".
6527 (btrace_pt_error): New.
6528 * common/btrace-common.c (btrace_format_string, btrace_data_fini)
6529 (btrace_data_empty): Support BTRACE_FORMAT_PT.
6530 * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
6531 (struct btrace_config_pt): New.
6532 (struct btrace_config)<pt>: New.
6533 (struct btrace_data_pt_config, struct btrace_data_pt): New.
6534 (struct btrace_data)<pt>: New.
6535 * features/btrace-conf.dtd (btrace-conf)<pt>: New.
6536 (pt): New.
6537 * features/btrace.dtd (btrace)<pt>: New.
6538 (pt, pt-config, cpu): New.
6539 * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
6540 (perf_event_pt_event_type, kernel_supports_pt)
6541 (linux_supports_pt): New.
6542 (linux_supports_btrace): Support BTRACE_FORMAT_PT.
6543 (linux_enable_bts): Free tinfo on error.
6544 (linux_enable_pt): New.
6545 (linux_enable_btrace): Support BTRACE_FORMAT_PT.
6546 (linux_disable_pt): New.
6547 (linux_disable_btrace): Support BTRACE_FORMAT_PT.
6548 (linux_fill_btrace_pt_config, linux_read_pt): New.
6549 (linux_read_btrace): Support BTRACE_FORMAT_PT.
6550 * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
6551 (struct btrace_target_info)<pt>: New.
6552 * record-btrace.c (set_record_btrace_pt_cmdlist)
6553 (show_record_btrace_pt_cmdlist): New.
6554 (record_btrace_print_pt_conf): New.
6555 (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
6556 (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
6557 (cmd_record_btrace_pt_start): New.
6558 (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
6559 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
6560 (_initialize_record_btrace): Add new commands.
6561 * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
6562 (remote_protocol_features): Add "Qbtrace:pt".
6563 Add "Qbtrace-conf:pt:size".
6564 (remote_supports_btrace): Support BTRACE_FORMAT_PT.
6565 (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
6566 (remote_enable_btrace): Support BTRACE_FORMAT_PT.
6567 (_initialize_remote): Add new commands.
6568
6569 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6570
6571 * configure.ac: check for libipt
6572 * configure: Regenerate.
6573 * config.in: Regenerate.
6574 * Makefile.in (LIBIPT): New.
6575 (CLIBS): Add $LIBIPT.
6576 * NEWS: document new configure options
6577
6578 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6579
6580 * compile/compile-object-load.c (compile_object_load): Replace debug
6581 message "lookup undefined ELF symbol" by 3 more specific messages.
6582
6583 2015-07-01 Kevin Buettner <kevinb@redhat.com>
6584
6585 * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
6586 (rl78_register_type): Add case for RL78_PSW_REGNUM.
6587 (rl78_gdbarch_init): Initialize rl78_psw_type.
6588
6589 2015-07-01 Patrick Palka <patrick@parcs.ath.cx>
6590
6591 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
6592 Update commentary. Always refresh the registers when frame
6593 information has changed.
6594 * tui/tui-stack.c (tui_show_frame_info): Update commentary.
6595 Change return type to int. Return 1 if frame information has
6596 changed, 0 otherwise.
6597 (tui_before_prompt): Update commentary.
6598 * tui/tui-stack.h (tui_show_frame_info): Change return type to
6599 int.
6600
6601 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
6602
6603 PR tui/13378
6604 * frame.c (select_frame): Remove reference to
6605 deprecated_selected_frame_level_changed_hook.
6606 * frame.h (deprecated_selected_frame_level_changed_hook): Remove
6607 declaration.
6608 * stack.c (deprecated_selected_frame_level_changed_hook):
6609 Likewise.
6610 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
6611 Rename to ...
6612 (tui_refresh_frame_and_register_information): ... this. Bail
6613 out if there is no stack. Don't update register information
6614 unless registers_too_p is true.
6615 (tui_print_frame_info_listing_hook): Rename to ...
6616 (tui_dummy_print_frame_info_listing_hook): ... this.
6617 (tui_before_prompt): New function.
6618 (tui_normal_stop): New function.
6619 (tui_before_prompt_observer): New observer.
6620 (tui_normal_stop_observer): New observer.
6621 (tui_install_hooks): Set
6622 deprecated_print_frame_info_listing_hook to
6623 tui_dummy_print_frame_info_listing_hook. Register
6624 tui_before_prompt_observer to call tui_before_prompt and
6625 tui_normal_stop_observer to call tui_normal_stop. Remove
6626 reference to deprecated_selected_frame_level_changed_hook.
6627 (tui_remove_hooks): Detach and unset tui_before_prompt_observer
6628 and tui_normal_stop_observer. Remove reference to
6629 deprecated_selected_frame_level_changed_hook.
6630
6631 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
6632
6633 PR tui/13378
6634 * tui/tui-stack.c (tui_set_locator_info): Change prototype to
6635 return an int instead of void. Return whether the locator
6636 window has changed.
6637 (tui_show_frame_info): If the locator info has not changed, then
6638 bail out early to avoid refreshing the windows.
6639
6640 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
6641
6642 * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
6643 LOCATOR_WIN to tui_alloc_content.
6644
6645 2015-06-30 Yao Qi <yao.qi@linaro.org>
6646
6647 PR tdep/18605
6648 * arm-tdep.c (arm_get_next_pc_raw): Break for media
6649 instructions.
6650
6651 2015-06-29 Kevin Buettner <kevinb@redhat.com>
6652
6653 * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
6654 (rx_dwarf_reg_to_regnum): New function.
6655 (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum. Use dwarf2
6656 unwinding.
6657
6658 2015-06-29 Pedro Alves <palves@redhat.com>
6659
6660 PR threads/18127
6661 * infcall.c (run_inferior_call): On infcall success, if the thread
6662 was marked stopped before, reset it back to stopped.
6663 * infrun.c (resume): Don't suppress the set_running calls when
6664 doing an infcall.
6665 (normal_stop): Only discard the finish_thread_state cleanup if the
6666 infcall succeeded.
6667
6668 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
6669
6670 * MAINTAINERS (Write After Approval): Update my email address.
6671
6672 2015-06-26 Keith Seitz <keiths@redhat.com>
6673 Doug Evans <dje@google.com>
6674
6675 PR 16253
6676 * block.c (block_lookup_symbol): For non-function blocks,
6677 continue to search for a symbol with an exact domain match
6678 Otherwise, return any previously found "best domain" symbol.
6679 (block_lookup_symbol_primary): Likewise.
6680
6681 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
6682
6683 * NEWS: Mention the new option "history remove-duplicates".
6684 * top.c (history_remove_duplicates): New static variable.
6685 (show_history_remove_duplicates): New static function.
6686 (gdb_add_history): Conditionally remove duplicate history
6687 entries.
6688 (init_main): Add "history remove-duplicates" option.
6689
6690 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
6691
6692 * tui/tui-win.c (focus_completer): New static function.
6693 (_initialize_tui_win): Set the completion function of the
6694 "focus" command to focus_completer.
6695
6696 2015-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6697
6698 * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
6699 and language_asm..
6700 * symtab.c (find_function_start_sal): Likewise.
6701
6702 2015-06-25 Gary Benson <gbenson@redhat.com>
6703
6704 * solib.c (solib_find_1): Set local variable sysroot to NULL if
6705 it is the empty string after trailing slashes have been stripped.
6706
6707 2015-06-25 Gary Benson <gbenson@redhat.com>
6708
6709 * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
6710 * infrun.c (follow_exec): Likewise.
6711 * remote.c (remote_filesystem_is_local): Likewise.
6712 * solib.c (solib_find_1): Likewise.
6713
6714 2015-06-24 Keith Seitz <keiths@redhat.com>
6715
6716 * build-id.c (build_id_to_debug_bfd): Add cleanup to free
6717 return value from lrealpath.
6718
6719 2015-06-24 Mike Frysinger <vapier@gentoo.org>
6720
6721 * remote-sim.c (gdbsim_open): Move sysroot update to the top.
6722
6723 2015-06-24 Mike Frysinger <vapier@gentoo.org>
6724
6725 * remote-sim.c: Include gdb_bfd.h.
6726 (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
6727 Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
6728
6729 2015-06-24 Yao Qi <yao.qi@linaro.org>
6730
6731 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
6732 set_gdbarch_get_siginfo_type.
6733 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
6734 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
6735 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
6736 * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
6737 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
6738 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6739 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
6740 * linux-tdep.c (linux_get_siginfo_type): Change it to static.
6741 (linux_init_abi): Call set_gdbarch_get_siginfo_type.
6742 * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
6743
6744 2015-06-24 Gary Benson <gbenson@redhat.com>
6745
6746 * common/buffer.c (stdint.h): Do not include.
6747 * common/print-utils.c (stdint.h): Likewise.
6748 * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
6749 * compile/compile-c-types.c (gdb_assert.h): Likewise.
6750 * ft32-tdep.c (gdb_assert.h): Likewise.
6751 * guile/scm-utils.c (stdint.h): Likewise.
6752 * i386-linux-tdep.c (stdint.h): Likewise.
6753 * i386-tdep.c (stdint.h): Likewise.
6754 * nat/linux-btrace.c (stdint.h): Likewise.
6755 * nat/linux-btrace.h (stdint.h): Likewise.
6756 * nat/linux-ptrace.c (stdint.h): Likewise.
6757 * nat/mips-linux-watch.h (stdint.h): Likewise.
6758 * ppc-linux-nat.c (stdint.h): Likewise.
6759 * python/python-internal.h (stdint.h): Likewise.
6760 * stub-termcap.c (stdlib.h): Likewise.
6761 * target/target.h (stdint.h): Likewise.
6762 * xtensa-linux-nat.c (stdint.h): Likewise.
6763
6764 2015-06-23 Patrick Palka <patrick@parcs.ath.cx>
6765
6766 * top.c (init_history): Look at errno after calling strtol to
6767 properly map large GDBHISTSIZE values to infinity.
6768
6769 2015-06-23 Doug Evans <dje@google.com>
6770
6771 * inferior.h (struct inferior_suspend_state): Delete, unused.
6772 All references deleted.
6773
6774 2015-06-23 Mike Frysinger <vapier@gentoo.org>
6775
6776 * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
6777 (microblaze_push_dummy_call): Likewise.
6778 (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
6779 and set_gdbarch_push_dummy_call.
6780
6781 2015-06-23 Yao Qi <yao.qi@linaro.org>
6782
6783 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
6784 Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
6785 (amd64_linux_store_inferior_registers): Likewise.
6786 * arm-linux-nat.c (fetch_fpregister): Likewise.
6787 (fetch_fpregs, store_fpregister): Likewise.
6788 (store_fpregister, store_fpregs): Likewise.
6789 (fetch_register, fetch_regs): Likewise.
6790 (store_register, store_regs): Likewise.
6791 (fetch_vfp_regs, store_vfp_regs): Likewise.
6792 (arm_linux_read_description): Check have_ptrace_getregset is
6793 TRIBOOL_UNKNOWN. Set have_ptrace_getregset to TRIBOOL_TRUE
6794 or TRIBOOL_FALSE.
6795 * i386-linux-nat.c (fetch_xstateregs): Check
6796 have_ptrace_getregset is not TRIBOOL_TRUE.
6797 (store_xstateregs): Likewise.
6798 * linux-nat.c (have_ptrace_getregset): Change its type to
6799 enum tribool.
6800 * linux-nat.h (tribool): New enum.
6801 * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
6802 Check whether have_ptrace_getregset is TRIBOOL_TRUE.
6803
6804 2015-06-19 Doug Evans <dje@google.com>
6805
6806 * NEWS: Mention Sun's version of stabs is no longer supported.
6807 * elfread.c (free_elfinfo): Delete. All uses updated.
6808 (elfstab_offset_sections): Delete. All uses updated.
6809 * gdb-stabs.h (stab_section_info): Delete. All uses updated.
6810 * psympriv.h (partial_symtab) <section_offsets>: Delete.
6811 All uses updated.
6812 * psymtab.c (start_psymtab_common): Delete arg section_offsets.
6813 All callers updated.
6814
6815 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
6816
6817 * common/rsp-low.c (needs_escaping): New.
6818 (remote_escape_output): Add unit_size parameter. Refactor to
6819 support multi-byte addressable units. Rename parameters.
6820 * common/rsp-low.h (remote_escape_output): Add unit_size
6821 parameter and rename others. Update doc.
6822 * remote.c (align_for_efficient_write): New.
6823 (remote_write_bytes_aux): Add unit_size parameter and use it.
6824 Rename some variables. Update doc.
6825 (remote_xfer_partial): Get unit size and use it.
6826 (remote_read_bytes_1): Add unit_size parameter and use it.
6827 Rename some variables. Update doc.
6828 (remote_write_bytes): Same.
6829 (remote_xfer_live_readonly_partial): Same.
6830 (remote_read_bytes): Same.
6831 (remote_flash_write): Update call to remote_write_bytes_aux.
6832 (remote_write_qxfer): Update call to remote_escape_output.
6833 (remote_search_memory): Same.
6834 (remote_hostio_pwrite): Same.
6835
6836 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
6837
6838 * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
6839 locations as inserted.
6840 Update and expand comment about permanent locations.
6841 (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
6842 Move comment to add_location_to_breakpoint.
6843 (update_global_location_list): Don't error out if a permanent
6844 breakpoint is not marked inserted.
6845 Don't error out if a non-permanent breakpoint location is inserted on
6846 top of a permanent breakpoint.
6847
6848 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
6849
6850 * breakpoint.c (make_breakpoint_permanent): Remove unused
6851 function.
6852 * breakpoint.h (make_breakpoint_permanent): Remove declaration.
6853
6854 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
6855
6856 PR gdb/16999
6857 * NEWS: Mention new GDBHISTSIZE behavior.
6858 * top.c (init_history): For null or out-of-range GDBHISTSIZE,
6859 set history size to unlimited. Ignore non-numeric GDBHISTSIZE.
6860
6861 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
6862
6863 * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
6864 * top.c (init_history): Read from GDBHISTSIZE instead of
6865 HISTSIZE.
6866 (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
6867
6868 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
6869
6870 * top.c (gdb_safe_append_history): Do not call
6871 history_truncate_file if the history is not stifled.
6872
6873 2015-06-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
6874
6875 * syscalls/s390-linux.xml: Add syscalls 344 through 354.
6876 * syscalls/s390x-linux.xml: Likewise.
6877
6878 2015-06-16 Michael Eager <eager@eagercon.com>
6879
6880 * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
6881
6882 2015-06-16 Patrick Palka <patrick@parcs.ath.cx>
6883
6884 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
6885 target_terminal_ours_for_output() before calling
6886 tui_show_frame_info(), and restore the original terminal
6887 settings afterwards.
6888
6889 2015-06-16 Martin Simmons <martin@lispworks.com> (tiny patch)
6890
6891 * arm-linux-nat.c: Include nat/linux-ptrace.h.
6892
6893 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
6894
6895 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
6896 memory unit size.
6897 (mi_cmd_data_write_memory_bytes): Same.
6898
6899 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
6900
6901 * corefile.c (write_memory): Update doc.
6902 * gdbcore.h (write_memory): Same.
6903
6904 2015-06-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6905
6906 * linux-tdep.c (enum filterflags): Make it from anonymous enum.
6907 (dump_mapping_p): Use it for parameter filterflags.
6908 (linux_find_memory_regions_full): Use it for variable filterflags.
6909
6910 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
6911 Jan Kratochvil <jan.kratochvil@redhat.com>
6912
6913 Merge multiple hex conversions.
6914 * monitor.c: Include rsp-low.h.
6915 (fromhex): Remove definition.
6916
6917 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
6918 Jan Kratochvil <jan.kratochvil@redhat.com>
6919
6920 Move utility functions to common/.
6921 * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
6922 Move defs to common/common-utils.c.
6923 * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
6924 (skip_to_space_const): Move decls to common/common-utils.h.
6925 * common/common-defs.h: Move include of common-types.h before
6926 common-utils.h.
6927 * common/common-utils.c: Include host-defs.h and ctype.h.
6928 (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
6929 from utils.c.
6930 (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
6931 cli/cli-utils.c.
6932 * common/common-utils.h (strtoulst): Move decl from utils.h.
6933 (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
6934 Move from cli/cli-utils.h.
6935 * common/host-defs.h: Include limits.h.
6936 (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
6937 (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
6938 * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
6939 common/common-utils.h.
6940 * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
6941 (strtoulst): Move to common/common-utils.c.
6942 * utils.h (strtoulst): Moved decl to common/common-utils.h.
6943
6944 2015-06-15 Yao Qi <yao.qi@linaro.org>
6945
6946 * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
6947
6948 2015-06-10 Jon Turney <jon.turney@dronecode.org.uk>
6949
6950 * build-id.c: Don't include elf-bfd.h.
6951 (build_id_bfd_get): Use bfd_build_id.
6952 (build_id_verify): Ditto.
6953 * build-id.h: Ditto.
6954 (find_separate_debug_file_by_buildid): Ditto.
6955 * python/py-objfile.c: Don't include elf-bfd.h.
6956 (objfpy_get_build_id) Use bfd_build_id.
6957 (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
6958 * coffread.c: Include build-id.h.
6959 (coff_symfile_read): Try find_separate_debug_file_by_buildid.
6960
6961 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
6962
6963 * windows-nat.c (do_windows_fetch_inferior_registers)
6964 (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
6965 conditional with __CYGWIN__.
6966
6967 2015-06-13 Andrew Burgess <andrew.burgess@embecosm.com>
6968
6969 * completer.c: Add arch-utils.h include.
6970 (enum reg_completer_targets): New enum.
6971 (reg_or_group_completer_1): New function containing old
6972 reg_or_group_completer, add and use new parameter to control what
6973 is completed on. Use get_current_arch rather than architecture of
6974 currently selected frame.
6975 (reg_or_group_completer): Call new reg_or_group_completer_1.
6976 (reggroup_completer): Call new reg_or_group_completer_1.
6977 * completer.h (reggroup_completer): Add declaration.
6978 * tui/tui-regs.c: Add 'completer.h' include.
6979 (tui_reg_next_command): Renamed to...
6980 (tui_reg_next): ...this. Adjust parameters and return rather than
6981 display new group.
6982 (tui_reg_prev_command): Renamed to...
6983 (tui_reg_prev): ...this. Adjust parameters and return rather than
6984 display new group.
6985 (tui_reg_float_command): Delete.
6986 (tui_reg_general_command): Delete.
6987 (tui_reg_system_command): Delete.
6988 (tui_reg_command): Rewrite to perform switching of register group.
6989 Add header comment.
6990 (tuireglist): Remove.
6991 (tui_reggroup_completer): New function.
6992 (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
6993 creation of 'tui reg' command.
6994 * NEWS: Add comment about 'tui reg' changes.
6995
6996 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
6997
6998 * target.c (target_read): Consider addressable unit size when
6999 reading from a memory object.
7000 (read_memory_robust): Same.
7001 (read_whatever_is_readable): Same.
7002 (target_write_with_progress): Consider addressable unit size
7003 when writing to a memory object.
7004 * target.h (target_read): Update documentation.
7005 (target_write): Add documentation.
7006
7007 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
7008
7009 * arch-utils.h (default_addressable_memory_unit_size): New.
7010 * arch-utils.c (default_addressable_memory_unit_size): New.
7011 * gdbarch.sh (addressable_memory_unit_size): New.
7012 * gdbarch.h: Re-generate.
7013 * gdbarch.c: Re-generate.
7014
7015 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
7016
7017 * target.c (target_read): Rename variables and use
7018 TARGET_XFER_E_IO.
7019 (target_read_with_progress): Same.
7020 (read_memory_robust): Constify parameters and rename
7021 variables.
7022 (read_whatever_is_readable): Constify parameters,
7023 rename variables, adjust formatting.
7024 * target.h (read_memory_robust): Constify parameters.
7025
7026 2015-06-12 Ulrich Weigand <uweigand@de.ibm.com>
7027
7028 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
7029 synthetic (non-AltiVec) vector types.
7030 (ppc64_sysv_abi_return_value): Likewise.
7031
7032 2015-06-12 Antoine Tremblay <antoine.tremblay@ericsson.com>
7033
7034 PR breakpoints/16465
7035 * breakpoint.c (create_breakpoint): Save extra_string for
7036 pending breakpoints.
7037
7038 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
7039
7040 * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
7041 and bt_mask to CORE_ADDR.
7042
7043 2015-06-11 Gary Benson <gbenson@redhat.com>
7044
7045 * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
7046 (mnsh_recv_message): Likewise.
7047
7048 2015-06-11 Walfred Tedeschi <walfred.tedeschi@intel.com>
7049
7050 * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
7051 long long int and plongest instead of %ll.
7052
7053 2015-06-11 Gary Benson <gbenson@redhat.com>
7054
7055 * nat/linux-namespaces.c (gdb_wait.h): New include.
7056 (sys/wait.h): Do not include.
7057
7058 2015-06-10 Simon Marchi <simon.marchi@ericsson.com>
7059
7060 * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
7061 end_sequence is true.
7062
7063 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7064
7065 Code cleanup.
7066 * solib-target.c (library_list_start_list): Use explicit NULL
7067 comparison.
7068
7069 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7070
7071 * solib-target.c (library_list_start_list): Do not dereference
7072 variable version in its initialization. Make the VERSION check handle
7073 NULL.
7074 (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
7075
7076 2015-06-10 Gary Benson <gbenson@redhat.com>
7077
7078 * NEWS: Announce support for direct access of executable and
7079 shared library files when attaching to inferiors in containers
7080 on GNU/Linux systems.
7081
7082 2015-06-10 Gary Benson <gbenson@redhat.com>
7083
7084 * remote.c (struct remote_state) <fs_pid>: New field.
7085 (new_remote_state): Initialize the above.
7086 (PACKET_vFile_setfs): New enum value.
7087 (remote_hostio_set_filesystem): New function.
7088 (remote_hostio_open): Call the above.
7089 (remote_hostio_unlink): Likewise.
7090 (remote_hostio_readlink): Likewise.
7091 (_initialize_remote): Register new "set/show remote
7092 hostio-setfs-packet" command.
7093 * NEWS: Announce new vFile:setfs packet.
7094
7095 2015-06-10 Gary Benson <gbenson@redhat.com>
7096
7097 * linux-nat.c (nat/linux-namespaces.h): New include.
7098 (fileio.h): Likewise.
7099 (linux_nat_filesystem_is_local): New function.
7100 (linux_nat_fileio_pid_of): Likewise.
7101 (linux_nat_fileio_open): Likewise.
7102 (linux_nat_fileio_readlink): Likewise.
7103 (linux_nat_fileio_unlink): Likewise.
7104 (linux_nat_add_target): Initialize to_filesystem_is_local,
7105 to_fileio_open, to_fileio_readlink and to_fileio_unlink.
7106 (_initialize_linux_nat): New "set/show debug linux-namespaces"
7107 commands.
7108 * NEWS: Mention new "set/show debug linux-namespaces" commands.
7109
7110 2015-06-10 Gary Benson <gbenson@redhat.com>
7111
7112 * target.h (struct inferior): New forward declaration.
7113 (struct target_ops) <to_filesystem_is_local>: Update comment.
7114 (struct target_ops) <to_fileio_open>: New argument inf.
7115 Update comment. All implementations updated.
7116 (struct target_ops) <to_fileio_unlink>: Likewise.
7117 (struct target_ops) <to_fileio_readlink>: Likewise.
7118 (target_filesystem_is_local): Update comment.
7119 (target_fileio_open): New argument inf. Update comment.
7120 (target_fileio_unlink): Likewise.
7121 (target_fileio_readlink): Likewise.
7122 (target_fileio_read_alloc): Likewise.
7123 (target_fileio_read_stralloc): Likewise.
7124 * target.c (target_fileio_open): New argument inf.
7125 Pass inf to implementation. Update debug printing.
7126 (target_fileio_unlink): Likewise.
7127 (target_fileio_readlink): Likewise.
7128 (target_fileio_read_alloc_1): New argument inf. Pass inf
7129 to target_fileio_open.
7130 (target_fileio_read_alloc): New argument inf. Pass inf to
7131 target_fileio_read_alloc_1.
7132 (target_fileio_read_stralloc): Likewise.
7133 * gdb_bfd.c (inferior.h): New include.
7134 (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
7135 argument with new argument "inferior". Pass inferior to
7136 target_fileio_open.
7137 (gdb_bfd_open): Supply inferior argument to
7138 gdb_bfd_iovec_fileio_open.
7139 * linux-tdep.c (linux_info_proc): Supply inf argument to
7140 relevant target_fileio calls.
7141 (linux_find_memory_regions_full): Likewise.
7142 (linux_fill_prpsinfo): Likewise.
7143 * remote.c (remote_filesystem_is_local): Supply inf
7144 argument to remote_hostio_open.
7145 (remote_file_put): Likewise.
7146 (remote_file_get): Likewise.
7147 (remote_file_delete): Supply inf argument to
7148 remote_hostio_unlink.
7149
7150 2015-06-10 Gary Benson <gbenson@redhat.com>
7151
7152 * inf-child.c (inf_child_fileio_open): Replace comment.
7153 (inf_child_fileio_pwrite): Likewise.
7154 (inf_child_fileio_pread): Likewise.
7155 (inf_child_fileio_fstat): Insert blank line before comment.
7156 (inf_child_fileio_close): Replace comment.
7157 (inf_child_fileio_unlink): Likewise.
7158 (inf_child_fileio_readlink): Likewise.
7159 * remote.c (remote_hostio_open): Likewise.
7160 (remote_hostio_pread): Likewise.
7161 (remote_hostio_pwrite): Likewise.
7162 (remote_hostio_close): Likewise.
7163 (remote_hostio_unlink): Likewise.
7164 (remote_hostio_readlink): Likewise.
7165 (remote_hostio_fstat): Likewise.
7166 (remote_filesystem_is_local): Likewise.
7167 * target.c (target_fileio_open): Likewise.
7168 (target_fileio_pwrite): Likewise.
7169 (target_fileio_pread): Likewise.
7170 (target_fileio_fstat): Insert blank line before comment.
7171 (target_fileio_close): Replace comment.
7172 (target_fileio_unlink): Likewise.
7173 (target_fileio_readlink): Likewise.
7174 (target_fileio_read_alloc): Likewise.
7175 (target_fileio_read_stralloc): Likewise.
7176
7177 2015-06-10 Gary Benson <gbenson@redhat.com>
7178
7179 * linux-thread-db.c (nat/linux-namespaces.h): New include.
7180 (check_pid_namespace_match): Use linux_ns_same rather than
7181 linux_proc_pid_get_ns to spot PID namespace mismatches.
7182 * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
7183 * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
7184
7185 2015-06-10 Gary Benson <gbenson@redhat.com>
7186
7187 * configure.ac (AC_CHECK_FUNCS): Add setns.
7188 * config.in: Regenerate.
7189 * configure: Likewise.
7190 * nat/linux-namespaces.h: New file.
7191 * nat/linux-namespaces.c: Likewise.
7192 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
7193 (linux-namespaces.o): New rule.
7194 * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
7195 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
7196 * config/arm/linux.mh (NATDEPFILES): Likewise.
7197 * config/i386/linux.mh (NATDEPFILES): Likewise.
7198 * config/i386/linux64.mh (NATDEPFILES): Likewise.
7199 * config/ia64/linux.mh (NATDEPFILES): Likewise.
7200 * config/m32r/linux.mh (NATDEPFILES): Likewise.
7201 * config/m68k/linux.mh (NATDEPFILES): Likewise.
7202 * config/mips/linux.mh (NATDEPFILES): Likewise.
7203 * config/pa/linux.mh (NATDEPFILES): Likewise.
7204 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
7205 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
7206 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
7207 * config/s390/linux.mh (NATDEPFILES): Likewise.
7208 * config/sparc/linux.mh (NATDEPFILES): Likewise.
7209 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
7210 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
7211 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
7212
7213 2015-06-10 Gary Benson <gbenson@redhat.com>
7214
7215 * utils.h (make_cleanup_close): Moved to common/filestuff.h.
7216 * utils.c (do_close_cleanup): Moved to common/filestuff.c.
7217 (make_cleanup_close): Likewise.
7218 * common/filestuff.h (make_cleanup_close): Moved from utils.h.
7219 * common/filestuff.c (do_close_cleanup): Moved from utils.c.
7220 (make_cleanup_close): Likewise.
7221
7222 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
7223
7224 * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
7225 from SuspendThread().
7226
7227 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
7228
7229 * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
7230 from OutputDebugString.
7231
7232 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
7233 Mircea Gherzan <mircea.gherzan@intel.com>
7234
7235 * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
7236 MPX_BT_MASK_32): New macros.
7237 (i386_mpx_set_bounds): New function that implements
7238 the command "set-mpx-bound".
7239 (i386_mpx_enabled): Helper function to test MPX availability.
7240 (i386_mpx_bd_base): Helper function to calculate the base directory
7241 address.
7242 (i386_mpx_get_bt_entry): Helper function to access a bound
7243 table entry.
7244 (i386_mpx_print_bounds): Effectively display bound information.
7245 (_initialize_i386_tdep): Add new commands to commands "set mpx" and
7246 "show mpx".
7247 (_initialize_i386_tdep):
7248 Add "bound" to the commands "show mpx" and "set mpx" commands.
7249 (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
7250 and "show mpx" commands.
7251 * NEWS: List new commands for MPX support.
7252
7253 2015-06-09 Gary Benson <gbenson@redhat.com>
7254
7255 * common/fileio.h (fileio_to_host_mode): New declaration.
7256 * common/fileio.c (fileio_to_host_mode): New Function.
7257 * inf-child.c (inf_child_fileio_open): Process mode argument
7258 with fileio_to_host_mode.
7259
7260 2015-06-09 Gary Benson <gbenson@redhat.com>
7261
7262 * common/fileio.c (fileio_mode_pack): Fix preprocessor
7263 conditional.
7264
7265 2015-06-05 Gary Benson <gbenson@redhat.com>
7266
7267 * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
7268 * remote.c (remote_filesystem_is_local): ...here.
7269
7270 2015-06-04 Yao Qi <yao.qi@linaro.org>
7271
7272 * gdbarch.c: Regenerate it.
7273
7274 2015-06-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7275
7276 * arch-utils.c (default_infcall_munmap): New.
7277 * arch-utils.h (default_infcall_munmap): New declaration.
7278 * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
7279 (munmap_list_free, munmap_listp_free_cleanup): New.
7280 (struct setup_sections_data): Add field munmap_list_headp.
7281 (setup_sections): Call munmap_list_add.
7282 (compile_object_load): New variable munmap_list_head, initialize
7283 setup_sections_data.munmap_list_headp, return munmap_list_head.
7284 * compile/compile-object-load.h (struct munmap_list): New declaration.
7285 (struct compile_module): Add field munmap_list_head.
7286 (munmap_list_free): New declaration.
7287 * compile/compile-object-run.c (struct do_module_cleanup): Add field
7288 munmap_list_head.
7289 (do_module_cleanup): Call munmap_list_free.
7290 (compile_object_run): Pass munmap_list_head to do_module_cleanup.
7291 * gdbarch.c: Regenerate.
7292 * gdbarch.h: Regenerate.
7293 * gdbarch.sh (infcall_munmap): New.
7294 * linux-tdep.c (linux_infcall_munmap): New.
7295 (linux_init_abi): Install it.
7296
7297 2015-06-02 Simon Marchi <simon.marchi@ericsson.com>
7298
7299 PR gdb/15564
7300 * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
7301
7302 2015-06-02 Yao Qi <yao.qi@linaro.org>
7303
7304 * i386-linux-nat.c: Include linux-nat.h.
7305
7306 2015-06-01 Andreas Schwab <schwab@linux-m68k.org>
7307 Jan Kratochvil <jan.kratochvil@redhat.com>
7308
7309 PR symtab/18392
7310 * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
7311 assertion.
7312 * dwarf2loc.c (chain_candidate): Likewise.
7313
7314 2015-06-01 Yao Qi <yao.qi@linaro.org>
7315
7316 * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
7317 (store_vfp_regs): Use PTRACE_SETREGSET.
7318
7319 2015-06-01 Yao Qi <yao.qi@linaro.org>
7320
7321 * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
7322 (fetch_fpregs): Likewise.
7323 * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
7324 (store_fpregs): Likewise.
7325
7326 2015-06-01 Yao Qi <yao.qi@linaro.org>
7327
7328 * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
7329 (fetch_regs): Likewise.
7330 (store_regs): Use PTRACE_SETREGSET.
7331 (store_register): Likewise.
7332
7333 2015-06-01 Yao Qi <yao.qi@linaro.org>
7334
7335 * arm-linux-nat.c (arm_linux_read_description): Check whether
7336 kernel supports PTRACE_GETREGSET.
7337
7338 2015-06-01 Yao Qi <yao.qi@linaro.org>
7339
7340 * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
7341 * linux-nat.c: ... here.
7342 * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
7343 to ...
7344 * linux-nat.h: ... here.
7345
7346 2015-06-01 Yao Qi <yao.qi@linaro.org>
7347
7348 * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
7349 * i386-linux-nat.c: Likewise.
7350 * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
7351 * s390-linux-nat.c: Include "nat/linux-ptrace.h".
7352 (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7353 * x86-linux-nat.c: Include "nat/linux-ptrace.h".
7354 * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7355
7356 2015-05-30 Eli Zaretskii <eliz@gnu.org>
7357
7358 * go32-nat.c (go32_xfer_memory): Fix the return value to be
7359 compatible to what read_child and write_child return. This
7360 unbreaks that DJGPP build of GDB which was broken since v7.7.
7361
7362 2015-05-29 Martin Galvan <martin.galvan@tallertechnologies.com>
7363
7364 * MAINTAINERS (Write After Approval): Add Martin Galvan.
7365
7366 2015-05-29 Roland McGrath <mcgrathr@google.com>
7367
7368 PR gdb/18464
7369 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
7370 rather than internal_error for an unrecognized value.
7371
7372 2015-05-29 Max Filippov <jcmvbkbc@gmail.com>
7373
7374 * xtensa-tdep.c (xtensa_pseudo_register_read)
7375 (xtensa_pseudo_register_write): Don't alias last pseudo register
7376 to a1.
7377
7378 2015-05-28 Don Breazeal <donb@codesourcery.com>
7379
7380 * infrun.c (follow_fork_inferior): Ensure the use of
7381 process-style ptids (pid,0,0) in verbose/debug "Detaching"
7382 messages.
7383
7384 2015-05-28 Doug Evans <dje@google.com>
7385
7386 * dwarf2read.c (record_line_ftype): Remove, duplicate.
7387
7388 2015-05-28 Yao Qi <yao.qi@linaro.org>
7389
7390 * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
7391 (arm_linux_fetch_inferior_registers): Use
7392 tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
7393 (arm_linux_store_inferior_registers): Likewise.
7394 (arm_linux_read_description): Don't set
7395 arm_linux_has_wmmx_registers.
7396 * arm-tdep.c (arm_gdbarch_init): Set
7397 tdep->have_wmmx_registers according target descriptions.
7398 * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
7399 field.
7400
7401 2015-05-28 Yao Qi <yao.qi@linaro.org>
7402
7403 * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
7404 (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
7405 instead of arm_linux_vfp_register_count.
7406 (store_vfp_regs): Likewise.
7407 (arm_linux_fetch_inferior_registers): Likewise.
7408 (arm_linux_store_inferior_registers): Likewise.
7409 (arm_linux_read_description): Don't set
7410 arm_linux_vfp_register_count.
7411 * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
7412 Adjust.
7413 * arm-tdep.c (arm_gdbarch_init): Add assert on
7414 vfp_register_count.
7415 * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
7416 field to vfp_register_count. All users updated.
7417
7418 2015-05-28 Kyle Huey <me@kylehuey.com> (tiny patch)
7419
7420 * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
7421 ELFOSABI_GNU binaries.
7422
7423 2015-05-27 Doug Evans <dje@google.com>
7424
7425 * dwarf2read.c (lnp_state_machine): New typedef.
7426 (lnp_reader_state): New typedef.
7427 (dwarf_record_line_1): Renamed from dwarf_record_line.
7428 All callers updated.
7429 (dwarf_record_line): New function.
7430 (init_lnp_state_machine): New function.
7431 (check_line_address): Replace p_record_line parameter with state.
7432 All callers updated.
7433 (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
7434 Update to record state in lnp_state_machine.
7435
7436 2015-05-27 Doug Evans <dje@google.com>
7437
7438 * dwarf2read.c (record_line_ftype): New typedef.
7439 (check_line_address): New function.
7440 (dwarf_decode_lines_1): Call it.
7441
7442 2015-05-27 Doug Evans <dje@google.com>
7443
7444 * NEWS: Mention "set debug dwarf-line".
7445 * dwarf2read.c (dwarf_line_debug): New static global.
7446 (add_include_dir): Add debug dwarf-line support.
7447 (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
7448 (_initialize_dwarf2_read): New parameter "debug dwarf-line".
7449
7450 2015-05-27 Doug Evans <dje@google.com>
7451
7452 * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
7453 All callers updated.
7454 (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
7455 * cp-support.h (cp_lookup_nested_symbol): Update.
7456
7457 2015-05-27 Doug Evans <dje@google.com>
7458
7459 PR symtab/18258
7460 * block.c (block_find_symbol): New function.
7461 (block_find_non_opaque_type): Ditto.
7462 (block_find_non_opaque_type_preferred): Ditto.
7463 * block.h (block_symbol_matcher_ftype): New typedef.
7464 (block_find_symbol): Declare.
7465 (block_find_non_opaque_type): Ditto.
7466 (block_find_non_opaque_type_preferred): Ditto.
7467 * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
7468 * psymtab.c (psym_lookup_symbol): Ditto.
7469 * symtab.c (basic_lookup_transparent_type_1): New function.
7470 (basic_lookup_transparent_type): Call it.
7471
7472 2015-05-27 Yao Qi <yao.qi@linaro.org>
7473
7474 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
7475 AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
7476
7477 2015-05-27 Yao Qi <yao.qi@linaro.org>
7478
7479 * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
7480 before operator &&.
7481 (aarch64_record_load_store): Likewise.
7482
7483 2015-05-26 Doug Evans <dje@google.com>
7484
7485 PR c++/18141, c++/18417.
7486 * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
7487 a typedef.
7488
7489 2015-05-26 Doug Evans <dje@google.com>
7490
7491 * NEWS: Add entries for command renamings.
7492 * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
7493 All uses updated.
7494 (dwarf_die_debug): Renamed from dwarf2_die_debug. All uses updated.
7495 (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
7496 All uses updated.
7497 (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
7498 All callers updated. Fix spelling of DWARF in help text.
7499 (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
7500 All uses updated.
7501 (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
7502 All uses updated.
7503 (set_dwarf_cmd): Renamed from set_dwarf2_cmd. All callers updated.
7504 (show_dwarf_cmd): Renamed from show_dwarf2_cmd. All callers updated.
7505 (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
7506 All uses updated.
7507 (show_dwarf_always_disassemble): Renamed from
7508 show_dwarf2_always_disassemble. All callers updated.
7509 (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
7510 "set/show dwarf". Rename "set/show dwarf2 max-cache-age" to
7511 "set/show dwarf max-cache-age". Rename
7512 "set/show dwarf2 always-disassemble" to
7513 "set/show dwarf always-disassemble". Rename
7514 "set/show debug dwarf2-read" to "set/show debug dwarf-read". Rename
7515 "set/show debug dwarf2-die" to "set/show debug dwarf-die".
7516
7517 2015-05-26 Doug Evans <dje@google.com>
7518
7519 PR python/18438
7520 * python/py-lazy-string.c (stpy_convert_to_value): Use
7521 gdbpy_gdb_memory_error not PyExc_MemoryError.
7522 (gdbpy_create_lazy_string_object): Ditto.
7523
7524 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
7525
7526 * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
7527
7528 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
7529
7530 * tui/tui-regs.c (tui_reg_prev_command): New function.
7531 (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
7532 * reggroups.c (reggroup_prev): New function.
7533 * reggroups.h (reggroup_prev): Add declaration. Update comment.
7534
7535 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
7536 Yao Qi <yao.qi@linaro.org>
7537
7538 * aarch64-linux-tdep.c: Include linux-record.h and
7539 record-full.h.
7540 (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
7541 (aarch64_syscall): New enum.
7542 (aarch64_canonicalize_syscall): New function.
7543 (aarch64_all_but_pc_registers_record): New function.
7544 (aarch64_linux_syscall_record): New function.
7545 (aarch64_linux_init_abi): Install AArch64 process record
7546 handler. Update to handle syscall recording.
7547 * aarch64-tdep.c: Include record.h and record-full.h.
7548 (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
7549 (struct aarch64_mem_r): Define.
7550 (aarch64_record_result): New enum.
7551 (struct insn_decode_record): Define.
7552 (insn_decode_record): New typedef.
7553 (aarch64_record_data_proc_reg): New function.
7554 (aarch64_record_data_proc_imm): New function.
7555 (aarch64_record_branch_except_sys): New function.
7556 (aarch64_record_load_store): New function.
7557 (aarch64_record_data_proc_simd_fp): New function.
7558 (aarch64_record_asimd_load_store): New function.
7559 (aarch64_record_decode_insn_handler): New function.
7560 (deallocate_reg_mem): New function.
7561 (aarch64_process_record): New function.
7562 * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
7563 New field.
7564 (aarch64_process_record): New extern declaration.
7565 * configure.tgt: Add linux-record.o to gdb_target_obs.
7566 * linux-record.h (struct linux_record_tdep) <arg7>: New field.
7567
7568 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
7569
7570 * NEWS: Add a note on process record-replay support on aarch64*-linux*
7571 targets.
7572
7573 2015-05-26 Martin Galvan <martin.galvan@tallertechnologies.com>
7574
7575 * amd64-tdep.c: Replace in_function_epilogue_p with
7576 stack_frame_destroyed_p throughout.
7577 * arch-utils.c: Ditto.
7578 * arch-utils.h: Ditto.
7579 * arm-tdep.c: Ditto.
7580 * breakpoint.c: Ditto.
7581 * gdbarch.sh: Ditto.
7582 * hppa-tdep.c: Ditto.
7583 * i386-tdep.c: Ditto.
7584 * mips-tdep.c: Ditto.
7585 * nios2-tdep.c: Ditto.
7586 * rs6000-tdep.c: Ditto.
7587 * s390-linux-tdep.c: Ditto.
7588 * score-tdep.c: Ditto.
7589 * sh-tdep.c: Ditto.
7590 * sparc-tdep.c: Ditto.
7591 * sparc-tdep.h: Ditto.
7592 * sparc64-tdep.c: Ditto.
7593 * spu-tdep.c: Ditto.
7594 * tic6x-tdep.c: Ditto.
7595 * tilegx-tdep.c: Ditto.
7596 * xstormy16-tdep.c: Ditto.
7597 * gdbarch.c, gdbarch.h: Re-generated.
7598
7599 2015-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
7600
7601 * NEWS: Mention 'tui enable' and 'tui disable'.
7602 * tui/tui.c (tui_enable_command): New function.
7603 (tui_disable_command): New function.
7604 (_initialize_tui): New function.
7605
7606 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7607
7608 * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
7609
7610 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7611
7612 * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
7613 buf_ptr is freed.
7614
7615 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7616
7617 * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
7618 into ...
7619 (tui_set_layout_for_display_command): ...here, before calling
7620 tui_set_layout. Only set the layout if gdb has not already
7621 entered the TUI_FAILURE state.
7622
7623 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7624
7625 * tui/tui-layout.c (layout_completer): New function.
7626 (_initialize_tui_layout): Set completer on layout command.
7627
7628 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7629
7630 * tui/tui-layout.c (tui_set_layout): Remove
7631 tui_register_display_type parameter. Remove all checking of this
7632 parameter, and reindent function. Update header comment.
7633 (tui_set_layout_for_display_command): Rename to...
7634 (tui_set_layout_by_name): ...this, and don't check for different
7635 register class types, don't pass a tui_register_display_type to
7636 tui_set_layout. Update header comment.
7637 (layout_names): Remove register set specific names.
7638 * tui/tui-layout.h (tui_set_layout): Remove
7639 tui_register_display_type parameter.
7640 * tui/tui.c (tui_rl_change_windows): Don't pass a
7641 tui_register_display_type to tui_set_layout.
7642 (tui_rl_delete_other_windows): Likewise.
7643 (tui_enable): Likewise.
7644 * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
7645 (TUI_FLOAT_REGS_NAME_LOWER): Remove.
7646 (TUI_GENERAL_REGS_NAME): Remove.
7647 (TUI_GENERAL_REGS_NAME_LOWER): Remove.
7648 (TUI_SPECIAL_REGS_NAME): Remove.
7649 (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
7650 (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
7651 (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
7652 (enum tui_register_display_type): Remove.
7653 (struct tui_layout_def): Remove regs_display_type and
7654 float_regs_display_type fields.
7655 (struct tui_data_info): Remove regs_display_type field.
7656 (tui_layout_command): Use new name for
7657 tui_set_layout_for_display_command.
7658 * tui/tui-data.c (layout_def): Don't initialise removed fields.
7659 (tui_clear_win_detail): Don't initialise removed fields of
7660 win_info.
7661 * tui/tui-regs.c (tui_show_registers): Use new name for
7662 tui_set_layout_for_display_command.
7663 * tui/tui.h (tui_set_layout_for_display_command): Rename
7664 declaration to...
7665 (tui_set_layout_by_name): ...this.
7666 * printcmd.c (display_command): Remove tui related layout call,
7667 and reindent.
7668
7669 2015-05-20 Joel Brobecker <brobecker@adacore.com>
7670
7671 * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
7672 (handle_inferior_event): New function.
7673
7674 2015-05-20 Joel Brobecker <brobecker@adacore.com>
7675
7676 * ada-lang.c (to_fixed_array_type): Rename local variable
7677 typename into type_name.
7678
7679 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7680
7681 Fix ASAN crash for gdb.compile/compile.exp.
7682 * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
7683
7684 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7685
7686 * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
7687 (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
7688 * compile/compile-object-load.c (setup_sections, compile_object_load):
7689 Likewise.
7690 * compile/compile.c (compile_to_object): Likewise.
7691
7692 2015-05-16 Doug Evans <xdje42@gmail.com>
7693
7694 * NEWS: Mention support for unbuffered Guile memory ports.
7695 * scm-ports.c (ioscm_memory_port): Update comments on end, size.
7696 (ioscm_lseek_address): Improve overflow calculation.
7697 (gdbscm_memory_port_fill_input): Add assert.
7698 (gdbscm_memory_port_write): Handle unbuffered ports.
7699 Handle large writes identical to Guile's fport_write.
7700 (gdbscm_memory_port_seek): Fix seeking past end check.
7701 (gdbscm_memory_port_close): Handle closing unbuffered port.
7702 (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
7703 (ioscm_init_memory_port): Handle unbuffered ports.
7704 (ioscm_reinit_memory_port): Ditto.
7705 (ioscm_init_memory_port): Update size calculation.
7706 (gdbscm_open_memory): Support zero sized ports.
7707
7708 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7709
7710 * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
7711 variable compiler warnings.
7712
7713 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7714
7715 * compile/compile-object-load.c (get_out_value_type): Fix returned type.
7716
7717 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7718 Phil Muldoon <pmuldoon@redhat.com>
7719
7720 * NEWS (Changes since GDB 7.9): Add compile print.
7721 * compile/compile-c-support.c (add_code_header, add_code_footer)
7722 (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
7723 COMPILE_I_PRINT_VALUE_SCOPE.
7724 * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
7725 (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
7726 New.
7727 * compile/compile-object-load.c: Include block.h.
7728 (get_out_value_type): New function.
7729 (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
7730 COMPILE_I_PRINT_VALUE_SCOPE. Set compile_module's OUT_VALUE_ADDR and
7731 OUT_VALUE_TYPE.
7732 * compile/compile-object-load.h (struct compile_module): Add fields
7733 out_value_addr and out_value_type.
7734 * compile/compile-object-run.c: Include valprint.h and compile.h.
7735 (struct do_module_cleanup): Add fields out_value_addr and
7736 out_value_type.
7737 (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
7738 COMPILE_I_PRINT_VALUE_SCOPE.
7739 (compile_object_run): Propagate out_value_addr and out_value_type.
7740 Pass OUT_VALUE_ADDR.
7741 * compile/compile.c: Include valprint.h.
7742 (compile_print_value, compile_print_command): New functions.
7743 (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
7744 (_initialize_compile): Update compile code help text. Install
7745 compile_print_command.
7746 * compile/compile.h (compile_print_value): New prototype.
7747 * defs.h (enum compile_i_scope_types): Add
7748 COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
7749
7750 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7751
7752 * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
7753 Rely on its parameter count.
7754 (compile_object_load): Replace lookup_minimal_symbol_text by
7755 lookup_global_symbol_from_objfile. Verify FUNC_SYM. Set it in the
7756 return value.
7757 * compile/compile-object-load.h (struct compile_module): Replace
7758 func_addr by func_sym.
7759 * compile/compile-object-run.c: Include block.h.
7760 (compile_object_run): Reset module variable after it is freed. Use
7761 FUNC_SYM instead of FUNC_ADDR. Rely on it.
7762
7763 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7764
7765 * compile/compile-c-support.c (print_one_macro): Use #ifndef.
7766 (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
7767 (c_compute_program): Call generate_register_struct after typedefs.
7768 * compile/compile-loc2c.c (push, pushf_register_address)
7769 (pushf_register): Cast to GCC_UINTPTR.
7770 (do_compile_dwarf_expr_to_c): Use unused attribute. Add space after
7771 type. Use GCC_UINTPTR instead of void *. Remove excessive cast.
7772 (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
7773 * compile/compile.c (_initialize_compile): Enable warnings for
7774 COMPILE_ARGS.
7775
7776 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7777
7778 * cli/cli-script.c (execute_control_command): Update
7779 eval_compile_command caller.
7780 * compile/compile-object-load.c (compile_object_load): Add parameters
7781 scope and scope_data. Set them.
7782 * compile/compile-object-load.h (struct compile_module): Add fields
7783 scope and scope_data.
7784 (compile_object_load): Add parameters scope and scope_data.
7785 * compile/compile-object-run.c (struct do_module_cleanup): Add fields
7786 scope and scope_data.
7787 (compile_object_run): Propagate the fields scope and scope_data.
7788 * compile/compile.c (compile_file_command, compile_code_command):
7789 Update eval_compile_command callers.
7790 (eval_compile_command): Add parameter scope_data. Pass it plus scope.
7791 * compile/compile.h (eval_compile_command): Add parameter scope_data.
7792 * defs.h (struct command_line): Add field scope_data.
7793
7794 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7795
7796 * printcmd.c (struct format_data): Move it to valprint.h.
7797 (print_command_parse_format, print_value): New functions from ...
7798 (print_command_1): ... here. Call them.
7799 * valprint.h (struct format_data): Move it here from printcmd.c.
7800 (print_command_parse_format, print_value): New declarations.
7801
7802 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7803
7804 * compile/compile-object-load.c (compile_object_load): Add
7805 COMPILE_DEBUG message.
7806
7807 2015-05-15 Jerome Guitton <guitton@adacore.com>
7808
7809 * ada-lang.c (ada_value_ptr_subscript): Use enum position of
7810 index to get element instead of enum value.
7811 (ada_value_slice_from_ptr, ada_value_slice): Use enum position
7812 of index to compute length, but enum values to compute bounds.
7813 (ada_array_length): Use enum position of index instead of enum value.
7814 (pos_atr): Move position computation to...
7815 (ada_evaluate_subexp): Use enum values to compute bounds.
7816 * gdbtypes.c (discrete_position): ...this new function.
7817 * gdbtypes.h (discrete_position): New function declaration.
7818 * valprint.c (val_print_array_elements): Call discrete_position
7819 to handle array indexed by non-contiguous enumeration types.
7820
7821 2015-05-15 Jerome Guitton <guitton@adacore.com>
7822
7823 * ada-lang.c (find_parallel_type_by_descriptive_type):
7824 Go through typedefs during lookup.
7825 (to_fixed_array_type): Add support for non-bit packed arrays
7826 as variable-length fields.
7827
7828 2015-05-15 Pedro Alves <palves@redhat.com>
7829 Simon Marchi <simon.marchi@ericsson.com>
7830
7831 * event-loop.c (gdb_notifier) <next_file_handler,
7832 next_poll_fds_index>: New fields.
7833 (get_next_file_handler_to_handle_and_advance): New function.
7834 (delete_file_handler): If deleting the next file handler to
7835 handle, advance to the next file handler.
7836 (gdb_wait_for_event): Bail early if no event fired. Poll file
7837 handlers in round-robin fashion.
7838
7839 2015-05-15 Pedro Alves <palves@redhat.com>
7840
7841 * linux-tdep.c (linux_find_memory_regions_full): Rename local
7842 'private' to 'priv'.
7843
7844 2015-05-15 Pedro Alves <palves@redhat.com>
7845
7846 * nat/linux-nat.h: Include "target/waitstatus.h".
7847
7848 2015-05-15 Yuanhui Zhang <asmwarrior@gmail.com>
7849
7850 * python/py-unwind.c (struct reg_info): Move out of ...
7851 (struct cached_frame_info): ... this scope.
7852 (pending_frame_object_type, unwind_info_object_type): Make extern.
7853
7854 2015-05-15 Joel Brobecker <brobecker@adacore.com>
7855
7856 * ada-lang.c (ada_value_primitive_packed_val): Make sure
7857 accumSize is never negative.
7858
7859 2015-05-14 Patrick Palka <patrick@parcs.ath.cx>
7860
7861 * tui/tui-command.c: Remove include of <ctype.h>.
7862 (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
7863
7864 2015-05-13 Martin Galvan <martin.galvan@tallertechnologies.com>
7865
7866 * dwarf2read.c (die_needs_namespace): Return 1 for
7867 DW_TAG_inlined_subroutine.
7868
7869 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7870
7871 * regcache.c (regcache_cpy_no_passthrough): New declaration.
7872 (regcache_cpy_no_passthrough): Make it static, add function comment.
7873 * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
7874 (regcache_cpy_no_passthrough): Remove declaration.
7875
7876 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7877
7878 * gdbthread.h (struct thread_control_state): Update comment for
7879 proceed_to_finish.
7880 * infcall.c (run_inferior_call): Update comment about
7881 proceed_to_finish.
7882 * infcmd.c (get_return_value): Update comment about stop_registers.
7883 (finish_forward): Update comment about proceed_to_finish.
7884 * infrun.c (stop_registers): Remove.
7885 (clear_proceed_status, normal_stop): Remove stop_registers handling.
7886 * infrun.h (stop_registers): Remove.
7887
7888 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7889
7890 * infcall.c (struct dummy_frame_context_saver)
7891 (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
7892 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
7893 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
7894 New.
7895 (call_function_by_hand_dummy): Move discard_cleanups of
7896 inf_status_cleanup before dummy_frame_push. Call
7897 dummy_frame_context_saver_setup and prepare context_saver_cleanup.
7898 Use dummy_frame_context_saver_get_regs instead of stop_registers.
7899 * infcall.h (struct dummy_frame_context_saver)
7900 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
7901 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
7902 New declarations.
7903 * infcmd.c: Include infcall.h.
7904 (get_return_value): Add parameter ctx_saver, use it instead of
7905 stop_registers.
7906 (print_return_value): Add parameter ctx_saver, pass it.
7907 (struct finish_command_continuation_args): Add field ctx_saver.
7908 (finish_command_continuation): Update print_return_value caller.
7909 (finish_command_continuation_free_arg): Free also ctx_saver.
7910 (finish_forward): Call dummy_frame_context_saver_setup.
7911 * inferior.h (struct dummy_frame_context_saver): New declaration.
7912 (get_return_value): Add parameter ctx_saver.
7913 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
7914 get_return_value caller.
7915
7916 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7917
7918 * dummy-frame.c (struct dummy_frame_dtor_list): New.
7919 (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
7920 (remove_dummy_frame): Process dtor_list.
7921 (pop_dummy_frame): Process dtor_list.
7922 (register_dummy_frame_dtor): Maintain dtor_list.
7923 (find_dummy_frame_dtor): Handle dtor_list.
7924 * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
7925 Update comments.
7926
7927 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7928
7929 * compile/compile-object-run.c (do_module_cleanup): Add parameter
7930 registers_valid.
7931 (compile_object_run): Update do_module_cleanup caller.
7932 * dummy-frame.c: Include infcall.h.
7933 (struct dummy_frame): Update dtor comment.
7934 (remove_dummy_frame): Call dtor.
7935 (pop_dummy_frame): Update dtor caller.
7936 * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
7937 registers_valid.
7938
7939 2015-05-13 Joel Brobecker <brobecker@adacore.com>
7940
7941 GDB 7.9.1 released.
7942
7943 2015-05-13 Joel Brobecker <brobecker@adacore.com>
7944
7945 * NEWS: Create "Changes in GDB 7.9.1" section. Move news about
7946 Xmethods now being able to specify a result type to that new
7947 sectioin.
7948
7949 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
7950
7951 * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
7952 first before resizing the window.
7953 * tui/tui.c (tui_enable): Likewise.
7954
7955 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7956
7957 * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
7958 * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
7959 * infcall.c (call_function_by_hand_dummy): Use proper typedef for
7960 dummy_dtor parameter.
7961 * infcall.h: Include dummy-frame.h.
7962 (call_function_by_hand_dummy_dtor_ftype): Remove.
7963 (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
7964 parameter.
7965
7966 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
7967
7968 PR gdb/17820
7969 * top.c (history_size_setshow_var): Change type to signed.
7970 Initialize to -2. Update documentation.
7971 (set_readline_history_size): Define.
7972 (set_history_size_command): Use it. Remove logic for handling
7973 out-of-range sizes.
7974 (init_history): Use set_readline_history_size(). Test for a
7975 value of -2 instead of 0 when determining whether to set a
7976 default history size.
7977 (init_main): Decode the argument of the "size" command as a
7978 zuinteger_unlimited.
7979
7980 2015-05-12 Doug Evans <dje@google.com>
7981
7982 * dwarf2read.c (struct file_entry): Tweak comments.
7983 (get_debug_line_section): Tweak comments.
7984
7985 2015-05-12 Don Breazeal <donb@codesourcery.com>
7986
7987 * NEWS: Announce fork support in the RSP and support
7988 for fork debugging in extended mode.
7989
7990 2015-05-12 Don Breazeal <donb@codesourcery.com>
7991
7992 * remote.c (remote_insert_fork_catchpoint): New function.
7993 (remote_remove_fork_catchpoint): New function.
7994 (remote_insert_vfork_catchpoint): New function.
7995 (remote_remove_vfork_catchpoint): New function.
7996 (pending_fork_parent_callback): New function.
7997 (remove_new_fork_child): New function.
7998 (remote_update_thread_list): Call remote_notif_get_pending_events
7999 and remove_new_fork_child.
8000 (extended_remote_kill): Kill fork child when killing the
8001 parent before follow_fork completes.
8002 (init_extended_remote_ops): Initialize target vector with
8003 new fork catchpoint functions.
8004
8005 2015-05-12 Don Breazeal <donb@codesourcery.com>
8006
8007 * remote.c (remove_vfork_event_p): New function.
8008 (remote_follow_fork): Add vfork event type to event checking.
8009 (remote_parse_stop_reply): New stop reasons "vfork" and
8010 "vforkdone" for RSP 'T' Stop Reply Packet.
8011
8012 2015-05-12 Don Breazeal <donb@codesourcery.com>
8013
8014 * linux-nat.c (linux_nat_ptrace_options): New function.
8015 (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
8016 Call linux_nat_ptrace_options and use different argument to
8017 linux_enable_event_reporting.
8018 (_initialize_linux_nat): Delete call to
8019 linux_ptrace_set_additional_flags.
8020 * nat/linux-ptrace.c (current_ptrace_options): Rename to
8021 supported_ptrace_options.
8022 (additional_flags): Delete variable.
8023 (linux_check_ptrace_features): Use supported_ptrace_options.
8024 (linux_test_for_tracesysgood, linux_test_for_tracefork):
8025 Likewise, and remove additional_flags check.
8026 (linux_enable_event_reporting): Change 'attached' argument to
8027 'options'. Use supported_ptrace_options.
8028 (ptrace_supports_feature): Change comment. Use
8029 supported_ptrace_options.
8030 (linux_ptrace_set_additional_flags): Delete function.
8031 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
8032 Delete function prototype.
8033 * remote.c (remote_fork_event_p): New function.
8034 (remote_detach_pid): New function.
8035 (remote_detach_1): Call remote_detach_pid, don't mourn inferior
8036 if doing detach-on-fork.
8037 (remote_follow_fork): New function.
8038 (remote_parse_stop_reply): Handle new "T" stop reason "fork".
8039 (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
8040 (init_extended_remote_ops): Initialize to_follow_fork.
8041
8042 2015-05-12 Don Breazeal <donb@codesourcery.com>
8043
8044 * nat/linux-ptrace.c (linux_check_ptrace_features): Change
8045 from static to extern.
8046 * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
8047 * remote.c (anonymous enum): <PACKET_fork_event_feature,
8048 * PACKET_vfork_event_feature>: New enumeration constants.
8049 (remote_protocol_features): Add table entries for new packets.
8050 (remote_query_supported): Add new feature queries to qSupported
8051 packet.
8052
8053 2015-05-12 Gary Benson <gbenson@redhat.com>
8054
8055 * remote.c (remote_add_inferior): Call exec_file_locate_attach
8056 for fake PIDs as well as real ones.
8057 (remote_pid_to_exec_file): Send empty annex if PID is fake.
8058
8059 2015-05-09 Siva Chandra Reddy <sivachandra@google.com>
8060
8061 * NEWS (Python Scripting): Mention the new gdb.Value methods.
8062 * python/py-value.c (valpy_reference_value): New function.
8063 (valpy_const_value): Likewise.
8064 (value_object_methods): Add new methods.
8065 * value.c (make_cv_value): New function.
8066 * value.h (make_cv_value): Declare.
8067
8068 2015-05-08 Yao Qi <yao@codesourcery.com>
8069 Sandra Loosemore <sandra@codesourcery.com>
8070
8071 * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
8072 to 'lh->include_dirs' before accessing to it.
8073 (psymtab_include_file_name): Likewise.
8074 (dwarf_decode_lines_1): Likewise.
8075 (dwarf_decode_lines): Likewise.
8076 (file_file_name): Likewise.
8077
8078 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
8079
8080 * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
8081 (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
8082 (nios2_linux_rt_sigreturn_init): Adjust base address of
8083 register save area.
8084
8085 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
8086
8087 * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
8088 "trap 31" as the breakpoint instruction on all targets.
8089
8090 2015-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8091
8092 * infcmd.c (print_return_value): Remove unused declaration.
8093
8094 2015-05-08 Joel Brobecker <brobecker@adacore.com>
8095
8096 * dwarf2read.c (attr_to_dynamic_prop)
8097 <DW_AT_data_member_location>: Use read_type_die isntead of
8098 get_die_type.
8099
8100 2015-05-08 Joel Brobecker <brobecker@adacore.com>
8101
8102 * ada-lang.c (ada_convert_actual): Add handling of formals
8103 passed inside an aligner type.
8104
8105 2015-05-08 Joel Brobecker <brobecker@adacore.com>
8106
8107 * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
8108
8109 2015-05-08 Siva Chandra Reddy <sivachandra@google.com>
8110
8111 PR python/18291
8112 * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
8113 Print xmethod matcher status.
8114
8115 2015-05-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
8116
8117 * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
8118 register in the regcache when treating the PSWM register, and vice
8119 versa.
8120
8121 2015-05-07 Gary Benson <gbenson@redhat.com>
8122
8123 * linux-thread-db.c (struct thread_db_info)
8124 <td_ta_map_id2thr_p>: Remove field.
8125 (try_thread_db_load_1): Remove initialization for the above.
8126
8127 2015-05-07 Gary Benson <gbenson@redhat.com>
8128
8129 * linux-thread-db.c (struct thread_db_info)
8130 <td_thr_validate_p>: Remove field.
8131 (try_thread_db_load_1): Remove initialization for the above.
8132
8133 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
8134
8135 * compile/compile-object-load.c (compile_object_load): Support
8136 mst_text_gnu_ifunc.
8137
8138 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
8139
8140 * compile/compile.c (compile_to_object): Make the cmd_string parameter
8141 const. Use new variables for the const compatibility.
8142 (eval_compile_command): Make the cmd_string parameter const.
8143 * compile/compile.h (eval_compile_command): Make the cmd_string
8144 parameter const.
8145
8146 2015-05-06 Joel Brobecker <brobecker@adacore.com>
8147
8148 * defs.h (deprecated_init_ui_hook): Delete. Remove associated
8149 comment.
8150 * top.c (deprecated_init_ui_hook): Delete.
8151 (gdb_init): Remove handling of deprecated_init_ui_hook.
8152 * interps.c (clear_interpreter_hooks): Remove handling of
8153 deprecated_init_ui_hook.
8154 * main.c (captured_main): Update comment.
8155
8156 2015-05-06 Joel Brobecker <brobecker@adacore.com>
8157
8158 * solib.c (_initialize_solib): Add "info dll" alias creation.
8159 * windows-nat.c (set_windows_aliases): Delete.
8160 (_initialize_windows_nat): Remove deprecated_init_ui_hook
8161 assignment.
8162 * NEWS: Add news entry about "info dll" now being available
8163 on all platforms.
8164
8165 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8166
8167 * ada-lang.c (value_assign_to_component): Reformat and improve
8168 documentation. Remove all trailing spaces.
8169
8170 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8171
8172 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
8173 Stop counting inlined frames as soon as an out-of-line function
8174 is found.
8175
8176 2014-05-05 Pierre-Marie de Rodat <derodat@adacore.com>
8177
8178 * dwarf2read.c (inherit_abstract_dies): Skip
8179 DW_TAG_GNU_call_site dies while inheriting children of an
8180 abstract DIE into a scope.
8181 (read_lexical_block_scope): Inherit abstract DIE's for
8182 lexical scopes.
8183
8184 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8185
8186 * ada-valprint.c (val_print_packed_array_elements): Delete
8187 variable "len". Add a type-length check when comparing two
8188 consecutive elements of the array. Use the element's actual
8189 length in call to value_contents_eq.
8190 * ada-lang.c (ada_value_primitive_packed_val): Always return
8191 a value whose type has been resolved.
8192
8193 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8194
8195 * ada-lang.c (ada_value_primitive_packed_val): Recompute
8196 BIT_SIZE and LEN if the size of the resolved type is smaller
8197 than BIT_SIZE * HOST_CHAR_BIT.
8198
8199 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8200
8201 * ada-lang.c (ada_value_primitive_packed_val): Use a more
8202 correct address in call to value_at. Adjust call to
8203 value_address accordingly.
8204
8205 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8206
8207 * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
8208 to print it.
8209
8210 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8211
8212 * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
8213 * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
8214 pinfo->valaddr.
8215 * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
8216 * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
8217 (resolve_dynamic_type_internal): Set pinfo.valaddr.
8218 Add handling of addr_stack->valaddr.
8219 (resolve_dynamic_type): Add "valaddr" parameter.
8220 Set pinfo.valaddr field.
8221 * ada-lang.c (ada_discrete_type_high_bound): Update call to
8222 resolve_dynamic_type.
8223 (ada_discrete_type_low_bound): Likewise.
8224 * findvar.c (default_read_var_value): Likewise.
8225 * value.c (value_from_contents_and_address): Likewise.
8226
8227 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8228
8229 * gdbtypes.c (resolve_dynamic_array): Use
8230 create_array_type_with_stride instead of create_array_type.
8231
8232 2015-04-30 DJ Delorie <dj@redhat.com>
8233
8234 * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
8235 rl78_decode_opcode
8236
8237 2015-04-29 Doug Evans <dje@google.com>
8238
8239 PR python/18285
8240 * NEWS: Document new gdb.XMethodWorker.get_result_type method.
8241 * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
8242 EVAL_AVOID_SIDE_EFFECTS for xmethods.
8243 * extension-priv.h (struct extension_language_ops)
8244 <get_xmethod_result_type>: New member.
8245 * extension.c (get_xmethod_result_type): New function.
8246 * extension.h (get_xmethod_result_type): Declare.
8247 * python/py-xmethods.c (get_result_type_method_name): New static
8248 global.
8249 (py_get_result_type_method_name): Ditto.
8250 (gdbpy_get_xmethod_result_type): New function.
8251 (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
8252 * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
8253 * python/python.c (python_extension_ops): Add
8254 gdbpy_get_xmethod_result_type.
8255 * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
8256 * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
8257 xmethods.
8258 (value_x_unop): Ditto.
8259 * value.c (result_type_of_xmethod): New function.
8260 * value.h (result_type_of_xmethod): Declare.
8261
8262 2015-04-29 Gary Benson <gbenson@redhat.com>
8263
8264 * solib.c (solib_find_1): Allow fd argument to be NULL.
8265 (exec_file_find): Update comment.
8266 (solib_find): Likewise.
8267 * exec.c (exec_file_locate_attach): Use NULL as fd
8268 argument to exec_file_find to avoid having to close
8269 the opened file.
8270 * infrun.c (follow_exec): Likewise.
8271
8272 2015-04-28 Doug Evans <dje@google.com>
8273
8274 PR python/18299
8275 * python/lib/gdb/printing.py (register_pretty_printer): Handle
8276 name or __name__ attributes. Handle gdb module as first argument.
8277
8278 2015-04-28 Doug Evans <dje@google.com>
8279
8280 PR python/18089
8281 * python/py-prettyprint.c (print_children): Verify result of children
8282 iterator. Provide better error message.
8283 * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
8284 * python/python.c (gdbpy_print_python_errors_p): New function.
8285
8286 2015-04-28 Doug Evans <dje@google.com>
8287
8288 * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
8289
8290 2015-04-28 Sasha Smundak <asmundak@google.com>
8291
8292 * NEWS: Mention gdb.Type.optimized_out method.
8293 * python/py-type.c (typy_optimized_out): New function.
8294
8295 2015-04-28 John Baldwin <jhb@FreeBSD.org>
8296
8297 * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8298
8299 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8300
8301 * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
8302 (initialize_utils): Move call of init_page_info() to ...
8303 * top.c (gdb_init): ... here.
8304
8305 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8306
8307 * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
8308 (tui_sigwinch_handler): Still update our idea of
8309 the terminal's width and height even when TUI is not active.
8310
8311 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8312
8313 * utils.h (set_screen_width_and_height): Declare.
8314 * utils.c (set_screen_width_and_height): Define.
8315 * tui/tui-win.c (tui_update_gdb_sizes): Use it.
8316
8317 2015-04-28 Gary Benson <gbenson@redhat.com>
8318
8319 * infrun.c (solist.h): New include.
8320 (follow_exec): Use exec_file_find to prefix execd_pathname
8321 with gdb_sysroot.
8322
8323 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8324
8325 * tui/tui-source.c (tui_set_source_content): Avoid calling
8326 strcpy() when offset is 0.
8327
8328 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8329
8330 PR gdb/18155
8331 * tui/tui-data.c (tui_free_window): Don't free the locator
8332 window when passed an SRC_WIN or a DISASSEM_WIN.
8333
8334 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8335
8336 * tui/tui-data.h (struct tui_win_element): Forward-declare.
8337 (tui_win_content): Move declaration.
8338 (struct tui_gen_win_info): Give 'content' field the
8339 type tui_win_content.
8340 * tui/tui-data.c (init_content_element): Remove redundant and
8341 erroneous casts.
8342 (tui_add_content_elements): Remove erroneous cast.
8343 * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
8344 casts.
8345 (tui_get_begin_asm_address): Likewise.
8346 * tui/tui-regs.c (tui_show_registers): Likewise.
8347 (tui_show_register_group): Likewise.
8348 (tui_display_registers_from): Likewise.
8349 (tui_check_register_values): Likewise.
8350 * tui/tui-source.c (tui_set_source_content): Likewise.
8351 (tui_set_source_content_nil): Likewise.
8352 (tui_source_is_displayed): Likewise.
8353 * tui/tui-stack.c (tui_show_locator_content): Likewise.
8354 (tui_set_locator_fullname): Likewise.
8355 (tui_set_locator_info): Likewise.
8356 (tui_show_frame_info): Likewise.
8357 * tui/tui-winsource.c (tui_clear_source_content): Likewise.
8358 (tui_show_source_line): Likewise.
8359 (tui_horizontal_source_scroll): Likewise.
8360 (tui_update_breakpoint_info): Likewise.
8361 (tui_set_exec_info_content): Likewise.
8362 (tui_show_exec_info_content): Likewise.
8363 (tui_alloc_source_buffer): Likewise.
8364 (tui_line_is_displayed): Likewise.
8365 (tui_addr_is_displayed): Likewise.
8366
8367 2015-04-27 John Baldwin <jhb@FreeBSD.org>
8368
8369 * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
8370 event if PL_FLAG_EXEC is set.
8371 [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
8372 [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
8373 (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
8374 "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
8375 Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
8376
8377 2015-04-27 John Baldwin <jhb@FreeBSD.org>
8378
8379 * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
8380 [TDP_RFPPWAIT] New variable fbsd_pending_children.
8381 [TDP_RFPPWAIT] (fbsd_remember_child): New function.
8382 [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
8383 [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
8384 [PT_LWPINFO] (fbsd_wait): New function.
8385 [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
8386 [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
8387 [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
8388 [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
8389 [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
8390 [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
8391 [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
8392 [TDP_RFPPWAIT] (fbsd_post_attach): New function.
8393 (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
8394 "fbsd_wait".
8395 [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
8396 Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
8397 Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
8398 Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
8399 Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
8400 Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
8401 Set "to_post_attach" to "fbsd_post_attach".
8402
8403 2015-04-27 John Baldwin <jhb@FreeBSD.org>
8404
8405 * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
8406 (fbsd_find_memory_regions): Mark static.
8407 (fbsd_nat_add_target): New function.
8408 * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
8409 fbsd_pid_to_exec_file and fbsd_find_memory_regions.
8410 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
8411 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
8412 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
8413 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
8414
8415 2015-04-27 Gary Benson <gbenson@redhat.com>
8416
8417 * objfiles.c (allocate_objfile): Do not attempt to expand name
8418 if name is a "target:" filename.
8419 * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
8420 to load auto-load scripts for objfiles with "target:" filenames.
8421
8422 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8423
8424 * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
8425 (enum s390_vector_abi_kind): New enum.
8426 (struct gdbarch_tdep)<vector_abi>: New field.
8427 (s390_effective_inner_type): Add parameter min_size. Stop
8428 unwrapping if the inner type is smaller than min_size.
8429 (s390_function_arg_float): Adjust call to
8430 s390_effective_inner_type.
8431 (s390_function_arg_vector): New function.
8432 (s390_function_arg_integer): Adjust comment.
8433 (struct s390_arg_state)<vr>: New field.
8434 (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector
8435 arguments according to vector ABI when appropriate.
8436 (s390_push_dummy_call): Initialize the argument state's field
8437 'vr'. Adjust calls to s390_handle_arg.
8438 (s390_register_return_value): Handle vector return values.
8439 (s390_return_value): Apply the "register" return value convention
8440 to a vector when appropriate.
8441 (s390_gdbarch_init): Initialize tdep->vector_abi.
8442 * NEWS: Announce S390 vector ABI support.
8443
8444 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8445
8446 * s390-linux-tdep.c (s390_return_value_convention): Remove
8447 function. Inline its logic...
8448 (s390_return_value): ...here. Instead, move the handling of the
8449 "register" return value convention...
8450 (s390_register_return_value): ...here. New function.
8451
8452 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8453
8454 * s390-linux-tdep.c
8455 (is_float_singleton): Remove function. Move the "singleton" part
8456 of the logic...
8457 (s390_effective_inner_type): ...here. New function.
8458 (is_float_like): Remove function. Inline its logic...
8459 (s390_function_arg_float): ...here.
8460 (is_pointer_like, is_integer_like, is_struct_like): Remove
8461 functions. Inline their logic...
8462 (s390_function_arg_integer): ...here.
8463 (s390_function_arg_pass_by_reference): Remove function.
8464 (extend_simple_arg): Remove function.
8465 (alignment_of): Remove function.
8466 (struct s390_arg_state): New structure.
8467 (s390_handle_arg): New function.
8468 (s390_push_dummy_call): Move parameter placement logic to the new
8469 function s390_handle_arg. Call it for calculating the stack area
8470 sizes first, and again for actually writing the parameters.
8471
8472 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8473
8474 * s390-linux-tdep.c (is_power_of_two): Add comment. Return
8475 false if the argument is zero.
8476
8477 2015-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
8478
8479 * ada-lang.c (template_to_static_fixed_type): Return input type
8480 when it is already fixed. Cache the input type itself when not
8481 creating a static fixed copy. Make it explicit that we never
8482 molestate the input type.
8483 * gdbtypes.c (resolve_dynamic_struct): Reset the
8484 TYPE_TARGET_TYPE field for resolved copies.
8485
8486 2015-04-27 Joel Brobecker <brobecker@adacore.com>
8487
8488 * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
8489 (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
8490 (template_to_static_fixed_type): Call ada_check_typedef only
8491 when necessary.
8492
8493 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
8494
8495 * cli/cli-dump.c (srec_dump_command): Add internationalization
8496 mark ups.
8497 (ihex_dump_command): Likewise.
8498 (tekhex_dump_command): Likewise.
8499 (binary_dump_command): Likewise.
8500 (binary_append_command): Likewise.
8501
8502 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
8503
8504 * cli/cli-dump.c (verilog_cmdlist): New variable.
8505 (dump_verilog_memory): New function.
8506 (dump_verilog_value): New function.
8507 (verilog_dump_command): New function.
8508 (_initialize_cli_dump): Add new commands to support verilog dump
8509 format.
8510 * NEWS: Add entry for "dump verilog".
8511
8512 2015-04-24 Pierre-Marie de Rodat <derodat@adacore.com>
8513
8514 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
8515 descriptive type when there is none.
8516
8517 2015-04-23 Patrick Palka <patrick@parcs.ath.cx>
8518
8519 * tui/tui-win.c (tui_async_resize_screen): Call
8520 rl_resize_terminal().
8521
8522 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
8523
8524 * windows-nat.c (handle_output_debug_string): Don't change
8525 current_event.dwThreadId.
8526 (get_windows_debug_event): Use thread_id, rather than relying on
8527 current_event.dwThreadId being changed.
8528
8529 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
8530
8531 * windows-nat.c (windows_continue): Report an error if
8532 ContinueDebugEvent() fails.
8533
8534 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8535
8536 * windows-nat.c (windows_resume): Fix misspelling in debug output.
8537
8538 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8539
8540 * windows-nat.c (get_windows_debug_event): Replace retval with
8541 thread_id throughout. Update stale comment.
8542
8543 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8544
8545 * windows-nat.c (get_windows_debug_event): Don't use ternary
8546 conditional operator.
8547
8548 2015-04-21 Pierre Muller <muller@sourceware.org>
8549
8550 PR pascal/17815
8551 p-exp.y (yylex): Reorganize code to return the matched pattern
8552 for a field of this.
8553
8554 2015-04-21 Gary Benson <gbenson@redhat.com>
8555
8556 * common/fileio.h (fileio_to_host_openflags): New declaration.
8557 * common/fileio.c (fcntl.h): New include.
8558 (fileio_to_host_openflags): New function, factored out from...
8559 * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
8560 Single use updated.
8561
8562 2015-04-21 Kevin Buettner <kevinb@redhat.com>
8563
8564 * rl78-tdep.c (RL78_SP_ADDR): Define.
8565 (opc_reg_to_gdb_regnum): New static function.
8566 (rl78_analyze_prologue): Recognize instructions forming slightly
8567 more interesting prologues.
8568
8569 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
8570
8571 Revert:
8572 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8573 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
8574 TYPE_CODE_REF types so that they are not considered as dynamic
8575 depending on the referenced type.
8576 (resolve_dynamic_type_internal): Likewise.
8577
8578 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
8579
8580 Revert:
8581 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8582 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
8583 "top_level" parameter.
8584 (resolve_dynamic_type_internal): Remove the unused "top_level"
8585 parameter. Update call to is_dynamic_type_internal.
8586 (is_dynamic_type): Update call to is_dynamic_type_internal.
8587 (resolve_dynamic_range): Update call to
8588 resolve_dynamic_type_internal.
8589 (resolve_dynamic_union): Likewise.
8590 (resolve_dynamic_struct): Likewise.
8591 (resolve_dynamic_type): Likewise.
8592
8593 2015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
8594
8595 * breakpoint.c (update_dprintf_command_list): Remove duplicated
8596 xmalloc.
8597
8598 2015-04-20 Thomas Schwinge <thomas@codesourcery.com>
8599
8600 * reply_mig_hack.awk: Robustify parsing.
8601
8602 * reply_mig_hack.awk: Don't bother to declare an intermediate
8603 function pointer variable.
8604
8605 2015-04-17 Doug Evans <dje@google.com>
8606
8607 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
8608 to "exec_displacement" to avoid confusion with inner use of the name.
8609
8610 2015-04-17 Pedro Alves <palves@redhat.com>
8611
8612 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
8613 if HW point of TYPE isn't supported.
8614
8615 2015-04-17 Yao Qi <yao.qi@linaro.org>
8616 Pedro Alves <palves@redhat.com>
8617
8618 * target.h (target_can_use_hardware_watchpoint): Update comments.
8619 Remove trailing ";".
8620
8621 2015-04-17 Gary Benson <gbenson@redhat.com>
8622
8623 * remote.c (remote_add_inferior): New argument try_open_exec.
8624 If nonzero, attempt to open the inferior's executable file as
8625 the main executable if no main executable is open already.
8626 All callers updated.
8627 * NEWS: Mention that GDB now supports automatic location and
8628 retrieval of executable + files from remote targets.
8629
8630 2015-04-17 Gary Benson <gbenson@redhat.com>
8631
8632 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
8633 * remote.c (PACKET_qXfer_exec_file): Likewise.
8634 (remote_protocol_features): Register the
8635 "qXfer:exec-file:read" feature.
8636 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
8637 (remote_pid_to_exec_file): New function.
8638 (init_remote_ops): Initialize to_pid_to_exec_file.
8639 (_initialize_remote): Register new "set/show remote
8640 pid-to-exec-file-packet" command.
8641 * NEWS: Announce new qXfer:exec-file:read packet.
8642
8643 2015-04-17 Gary Benson <gbenson@redhat.com>
8644
8645 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
8646 New declaration.
8647 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
8648 New function, factored out from...
8649 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
8650
8651 2015-04-17 Gary Benson <gbenson@redhat.com>
8652
8653 * exec.c (solist.h): New include.
8654 (exec_file_locate_attach): Prefix absolute executable
8655 paths with gdb_sysroot if set.
8656 * NEWS: Mention that executable paths may be prepended
8657 with sysroot.
8658
8659 2015-04-17 Gary Benson <gbenson@redhat.com>
8660
8661 * solist.h (exec_file_find): New declaration.
8662 * solib.c (solib_find_1): New function, factored out from...
8663 (solib_find): ...here.
8664 (exec_file_find): New function.
8665
8666 2015-04-17 Gary Benson <gbenson@redhat.com>
8667
8668 * gdbcore.h (exec_file_locate_attach): New declaration.
8669 * exec.c (exec_file_locate_attach): New function, factored
8670 out from...
8671 * infcmd.c (attach_command_post_wait): ...here.
8672
8673 2015-04-17 Mike Frysinger <vapier@gentoo.org>
8674
8675 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
8676
8677 2015-04-16 Yao Qi <yao.qi@linaro.org>
8678
8679 * infrun.c (maybe_software_singlestep): Declare.
8680 (displaced_step_fixup): Call maybe_software_singlestep.
8681
8682 2015-04-15 Doug Evans <dje@google.com>
8683
8684 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
8685
8686 2015-04-15 Doug Evans <dje@google.com>
8687
8688 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
8689
8690 2015-04-15 Simon Marchi <simon.marchi@ericsson.com>
8691
8692 * python/lib/gdb/command/unwinders.py: Add parentheses.
8693
8694 2015-04-15 Yao Qi <yao.qi@linaro.org>
8695
8696 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
8697
8698 2015-04-15 Yao Qi <yao.qi@linaro.org>
8699
8700 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
8701
8702 2015-04-15 Yao Qi <yao.qi@linaro.org>
8703
8704 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
8705 dsc->insn_size instead of 4.
8706
8707 2015-04-14 Gary Benson <gbenson@redhat.com>
8708
8709 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
8710 * minidebug.c (lzma_stat): Likewise.
8711 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
8712 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
8713
8714 2015-04-13 Stan Shebs <stanshebs@google.com>
8715
8716 * MAINTAINERS: Update my email address.
8717
8718 2015-04-13 John Baldwin <jhb@FreeBSD.org>
8719
8720 * amd64-tdep.c (amd64_target_description): New function.
8721 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
8722 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
8723 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
8724 x86 extended save area.
8725 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
8726 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
8727 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
8728 (_initialize_amd64fbsd_nat): Set "to_read_description" to
8729 "amd64fbsd_read_description".
8730 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
8731 (amd64fbsd_supply_xstateregset): New function.
8732 (amd64fbsd_collect_xstateregset): New function.
8733 Add "amd64fbsd_xstateregset".
8734 (amd64fbsd_iterate_over_regset_sections): New function.
8735 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
8736 "I386_FBSD_XSAVE_XCR0_OFFSET".
8737 Add "iterate_over_regset_sections" gdbarch method.
8738 Add "core_read_description" gdbarch method.
8739 * i386-tdep.c (i386_target_description): New function.
8740 * i386-tdep.h: Export i386_target_description and tdesc_i386.
8741 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
8742 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
8743 x86 extended save area.
8744 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
8745 * i386bsd-nat.h: Export i386bsd_xsave_len.
8746 * i386fbsd-nat.c (i386fbsd_read_description): New function.
8747 (_initialize_i386fbsd_nat): Set "to_read_description" to
8748 "i386fbsd_read_description".
8749 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
8750 (i386fbsd_core_read_description): New function.
8751 (i386fbsd_supply_xstateregset): New function.
8752 (i386fbsd_collect_xstateregset): New function.
8753 Add "i386fbsd_xstateregset".
8754 (i386fbsd_iterate_over_regset_sections): New function.
8755 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
8756 "I386_FBSD_XSAVE_XCR0_OFFSET".
8757 Add "iterate_over_regset_sections" gdbarch method.
8758 Add "core_read_description" gdbarch method.
8759 * i386fbsd-tdep.h: New file.
8760
8761 2015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8762
8763 * NEWS (Changes since GDB 7.9): Add removed -xdb.
8764 * breakpoint.c (command_line_is_silent): Remove xdb_commands
8765 conditional.
8766 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
8767 and lb.
8768 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
8769 va.
8770 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
8771 conditional.
8772 * defs.h (xdb_commands): Remove declaration.
8773 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
8774 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
8775 * infcmd.c (run_no_args_command, go_command): Remove.
8776 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
8777 * infrun.c (xdb_handle_command): Remove.
8778 (_initialize_infrun): Remove xdb_commands for lz and z.
8779 * main.c (xdb_commands): Remove variable.
8780 (captured_main): Remove "xdb" from long_options.
8781 (print_gdb_help): Remove --xdb from help.
8782 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
8783 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
8784 * stack.c (backtrace_full_command, args_plus_locals_info)
8785 (current_frame_command): Remove.
8786 (_initialize_stack): Remove xdb_commands for t, T and l.
8787 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
8788 * thread.c (_initialize_thread): Remove xdb_commands condition.
8789 * tui/tui-layout.c (tui_toggle_layout_command)
8790 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
8791 (_initialize_tui_layout): Remove xdb_commands for td and ts.
8792 * tui/tui-regs.c (tui_scroll_regs_forward_command)
8793 (tui_scroll_regs_backward_command): Remove.
8794 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
8795 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
8796 (_initialize_tui_win): Remove xdb_commands for U and w.
8797 * utils.c (pagination_on_command, pagination_off_command): Remove.
8798 (initialize_utils): Remove xdb_commands for am and sm.
8799
8800 2015-04-10 Pedro Alves <palves@redhat.com>
8801
8802 * infrun.c (displaced_step_fixup): Switch to the event ptid
8803 earlier. If the thread stopped for a watchpoint and the
8804 target/arch has non-continuable watchpoints, cancel the displaced
8805 step.
8806 (resume): Don't start a displaced step if in-line step-over info
8807 is valid.
8808
8809 2015-04-10 Pedro Alves <palves@redhat.com>
8810
8811 * infrun.c (displaced_step_in_progress): New function.
8812 (do_target_resume): Advise target to report all signals if
8813 displaced stepping.
8814
8815 2015-04-10 Pedro Alves <palves@redhat.com>
8816
8817 PR gdb/18216
8818 * infrun.c (process_event_stop_test): Don't assume a step-resume
8819 is set if tp->stepped_breakpoint is true.
8820
8821 2015-04-10 Yao Qi <yao.qi@linaro.org>
8822
8823 * arm-tdep.c (install_alu_reg): Update comment.
8824 (thumb_copy_alu_reg): Remove local variable rn. Update
8825 debugging message. Use r2 instead of r1 in the modified
8826 instruction.
8827
8828 2015-04-10 Pedro Alves <palves@redhat.com>
8829
8830 PR gdb/13858
8831 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
8832 linux_displaced_step_location as gdbarch_displaced_step_location
8833 hook.
8834 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
8835 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
8836 * linux-tdep.c (linux_displaced_step_location): New function,
8837 based on ppc_linux_displaced_step_location.
8838 * linux-tdep.h (linux_displaced_step_location): New declaration.
8839 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
8840 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
8841 Delete.
8842 (ppc_linux_init_abi): Install linux_displaced_step_location as
8843 gdbarch_displaced_step_location hook, even without Cell/B.E..
8844 (_initialize_ppc_linux_tdep): Don't install
8845 ppc_linux_inferior_created as inferior_created observer.
8846 * s390-linux-tdep.c (s390_gdbarch_init): Install
8847 linux_displaced_step_location as gdbarch_displaced_step_location
8848 hook.
8849
8850 2015-04-09 Gary Benson <gbenson@redhat.com>
8851
8852 * common/common-remote-fileio.h: Rename to...
8853 * common/fileio.h: ...this. Update all references.
8854 (remote_fileio_to_fio_error): Rename to...
8855 (host_to_fileio_error): ...this.
8856 (remote_fileio_to_be): Rename to...
8857 (host_to_bigendian): ...this. Update all callers.
8858 (remote_fileio_to_fio_uint): Rename to...
8859 (host_to_fileio_uint): ...this. Update all callers.
8860 (remote_fileio_to_fio_time): Rename to...
8861 (host_to_fileio_time): ...this. Update all callers.
8862 (remote_fileio_to_fio_stat): Rename to...
8863 (host_to_fileio_stat): ...this.
8864 Update all references.
8865 * common/common-remote-fileio.c: Rename to...
8866 * common/fileio.c: ...this. Update all references.
8867 (remote_fileio_to_fio_error): Rename to...
8868 (host_to_fileio_error): ...this. Update all callers.
8869 (remote_fileio_mode_to_target): Rename to...
8870 (fileio_mode_pack): ...this. Update all callers.
8871 (remote_fileio_to_fio_mode): Rename to...
8872 (host_to_fileio_mode): ...this. Update all callers.
8873 (remote_fileio_to_fio_ulong): Rename to...
8874 (host_to_fileio_ulong): ...this. Update all callers.
8875 (remote_fileio_to_fio_stat): Rename to...
8876 (host_to_fileio_stat): ...this. Update all callers.
8877
8878 2015-04-09 Andy Wingo <wingo@igalia.com>
8879
8880 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
8881 (frame_functions): Bind gdbscm_frame_read_register to
8882 frame-read-register.
8883 * guile/lib/gdb.scm (frame-read-register): Export.
8884
8885 2015-04-09 Gary Benson <gbenson@redhat.com>
8886
8887 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
8888 New declaration.
8889 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
8890 New function, factored out the named functions below.
8891 * inf-child.c (gdb/fileio.h): Remove include.
8892 (common-remote-fileio.h): New include.
8893 (inf_child_errno_to_fileio_error): Remove function. Update
8894 all callers to use remote_fileio_to_fio_error.
8895 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
8896
8897 2015-04-09 Andy Wingo <wingo@igalia.com>
8898
8899 * MAINTAINERS (Write After Approval): Add Andy Wingo.
8900
8901 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
8902
8903 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
8904 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
8905 * configure: Regenerated.
8906
8907 2015-04-09 Pedro Alves <palves@redhat.com>
8908
8909 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
8910 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
8911 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
8912 * gnulib/import/Makefile.am: Update.
8913 * gnulib/import/Makefile.in: Update.
8914 * gnulib/import/m4/gnulib-cache.m4: Update.
8915 * gnulib/import/m4/gnulib-comp.m4: Update.
8916 * gnulib/import/m4/strtok_r.m4: New file.
8917 * gnulib/import/strtok_r.c: New file.
8918
8919 2015-04-09 Pedro Alves <palves@redhat.com>
8920
8921 * gnulib/update-gnulib.sh (aclocal version check): Filter out
8922 "called too early to check prototype".
8923
8924 2015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
8925
8926 PR python/16699
8927 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
8928 use a caching mechanism. Adjust comments and code to reflect
8929 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
8930 (cmdpy_completer_handle_brkchars): Adjust call to
8931 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
8932 (cmdpy_completer): Likewise.
8933
8934 2015-04-08 Yao Qi <yao.qi@linaro.org>
8935
8936 * spu-tdep.c (spu_gdbarch_init): Don't call
8937 set_gdbarch_cannot_step_breakpoint.
8938
8939 2015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
8940
8941 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
8942
8943 2015-04-07 Pedro Alves <palves@redhat.com>
8944
8945 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
8946 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
8947 (delete_exited_threads): New declaration.
8948 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
8949 * linux-nat.c (linux_nat_update_thread_list): New function.
8950 (linux_nat_add_target): Install it.
8951 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
8952 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
8953 (delete_exited_threads): New function.
8954
8955 2015-04-07 Pedro Alves <pedro@codesourcery.com>
8956
8957 * infrun.c (resume) <displaced stepping debug output>: Get the
8958 leader thread's regcache, not resume_ptid's.
8959
8960 2015-04-06 Doug Evans <xdje42@gmail.com>
8961
8962 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
8963 VAR_DOMAIN.
8964 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
8965 Include symbol domain in debugging output.
8966
8967 2015-04-06 Pedro Alves <palves@redhat.com>
8968 Bernd Edlinger <bernd.edlinger@hotmail.de>
8969
8970 * configure.ac: Remove the mingw32-specific stub-termcap.o
8971 fallback, and instead fallback to the stub termcap on all hosts.
8972 * configure: Regenerate.
8973 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
8974 symbols.
8975
8976 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8977
8978 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
8979 "top_level" parameter.
8980 (resolve_dynamic_type_internal): Remove the unused "top_level"
8981 parameter. Update call to is_dynamic_type_internal.
8982 (is_dynamic_type): Update call to is_dynamic_type_internal.
8983 (resolve_dynamic_range): Update call to
8984 resolve_dynamic_type_internal.
8985 (resolve_dynamic_union): Likewise.
8986 (resolve_dynamic_struct): Likewise.
8987 (resolve_dynamic_type): Likewise.
8988
8989 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8990
8991 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
8992 TYPE_CODE_REF types so that they are not considered as dynamic
8993 depending on the referenced type.
8994 (resolve_dynamic_type_internal): Likewise.
8995
8996 2015-04-02 H.J. Lu <hongjiu.lu@intel.com>
8997
8998 * Makefile.in (top_srcdir): New.
8999 * configure: Regenerated.
9000
9001 2015-04-02 Gary Benson <gbenson@redhat.com>
9002
9003 * NEWS: Announce the new default sysroot of "target:".
9004
9005 2015-04-02 Gary Benson <gbenson@redhat.com>
9006
9007 * main.c (captured_main): Set gdb_sysroot to "target:"
9008 if not otherwise set.
9009
9010 2015-04-02 Gary Benson <gbenson@redhat.com>
9011
9012 * exec.c (exec_file_attach): Support "target:" filenames.
9013
9014 2015-04-02 Gary Benson <gbenson@redhat.com>
9015
9016 * solib.c (solib_find): Strip "target:" prefix from sysroot
9017 if accessing local files.
9018
9019 2015-04-02 Gary Benson <gbenson@redhat.com>
9020
9021 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
9022 checks and error messages.
9023
9024 2015-04-02 Gary Benson <gbenson@redhat.com>
9025
9026 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
9027 (remote_filename_p): Remove declaration.
9028 (remote_bfd_open): Likewise.
9029 * remote.c (remote_bfd_iovec_open): Remove function.
9030 (remote_bfd_iovec_close): Likewise.
9031 (remote_bfd_iovec_pread): Likewise.
9032 (remote_bfd_iovec_stat): Likewise.
9033 (remote_filename_p): Likewise.
9034 (remote_bfd_open): Likewise.
9035 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
9036 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
9037 (gdb_bfd_open_maybe_remote): Remove function.
9038 (symfile_bfd_open): Replace remote filename check with
9039 target filename check.
9040 (reread_symbols): Use gdb_bfd_open.
9041 * build-id.c (gdbcore.h): New include.
9042 (build_id_to_debug_bfd): Use gdb_bfd_open.
9043 * infcmd.c (attach_command_post_wait): Remove remote filename
9044 check.
9045 * solib.c (solib_find): Replace remote-specific handling with
9046 target-specific handling. Update comments where necessary.
9047 (solib_bfd_open): Replace remote-specific handling with
9048 target-specific handling.
9049 (gdb_sysroot_changed): New function.
9050 (_initialize_solib): Call the above when gdb_sysroot changes.
9051 * windows-tdep.c (gdbcore.h): New include.
9052 (windows_xfer_shared_library): Use gdb_bfd_open.
9053
9054 2015-04-02 Gary Benson <gbenson@redhat.com>
9055
9056 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
9057 (is_target_filename): New declaration.
9058 (gdb_bfd_has_target_filename): Likewise.
9059 (gdb_bfd_open): Update documentation comment.
9060 * gdb_bfd.c (target.h): New include.
9061 (gdb/fileio.h): Likewise.
9062 (is_target_filename): New function.
9063 (gdb_bfd_has_target_filename): Likewise.
9064 (fileio_errno_to_host): Likewise.
9065 (gdb_bfd_iovec_fileio_open): Likewise.
9066 (gdb_bfd_iovec_fileio_pread): Likewise.
9067 (gdb_bfd_iovec_fileio_close): Likewise.
9068 (gdb_bfd_iovec_fileio_fstat): Likewise.
9069 (gdb_bfd_open): Use target fileio to access paths prefixed
9070 with "target:" where necessary.
9071
9072 2015-04-02 Gary Benson <gbenson@redhat.com>
9073
9074 * target.h (struct target_ops) <to_filesystem_is_local>:
9075 New field.
9076 (target_filesystem_is_local): New macro.
9077 * target-delegates.c: Regenerate.
9078 * remote.c (remote_filesystem_is_local): New function.
9079 (init_remote_ops): Initialize to_filesystem_is_local.
9080
9081 2015-04-02 Gary Benson <gbenson@redhat.com>
9082
9083 * target.h (struct target_ops) <to_fileio_fstat>: New field.
9084 (target_fileio_fstat): New declaration.
9085 * target.c (target_fileio_fstat): New function.
9086 * inf-child.c (inf_child_fileio_fstat): Likewise.
9087 (inf_child_target): Initialize to_fileio_fstat.
9088 * remote.c (init_remote_ops): Likewise.
9089
9090 2015-04-01 Sasha Smundak <asmundak@google.com>
9091
9092 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
9093 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
9094 (py-unwind.o): New recipe.
9095 * NEWS: mention Python frame unwinding.
9096 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
9097 gdb/unwinder.py and gdb/command/unwinder.py
9098 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
9099 list.
9100 (execute_unwinders): New function.
9101 * python/lib/gdb/command/unwinders.py: New file.
9102 * python/lib/gdb/unwinder.py: New file.
9103 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
9104 (objfpy_dealloc): Decrement frame_unwinders reference count.
9105 (objfpy_initialize): Create frame_unwinders list.
9106 (objfpy_get_frame_unwinders): New function.
9107 (objfpy_set_frame_unwinders): Ditto.
9108 (objfile_getset): Add frame_unwinders attribute to Objfile.
9109 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
9110 (pspy_dealloc): Decrement frame_unwinders reference count.
9111 (pspy_initialize): Create frame_unwinders list.
9112 (pspy_get_frame_unwinders): New function.
9113 (pspy_set_frame_unwinders): Ditto.
9114 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
9115 * python/py-unwind.c: New file.
9116 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
9117 (objpy_get_frame_unwinders): New prototype.
9118 (gdbpy_initialize_unwind): New prototype.
9119 * python/python.c (gdbpy_apply_type_printers): Call
9120 gdbpy_initialize_unwind.
9121
9122 2015-04-01 Pedro Alves <palves@redhat.com>
9123
9124 * infrun.c (resume): Check currently_stepping after clearing
9125 stepped_breakpoint, not before.
9126
9127 2015-04-01 Pedro Alves <palves@redhat.com>
9128
9129 * infrun.c (print_target_wait_results): Print all the ptid
9130 elements.
9131
9132 2015-04-01 Pedro Alves <palves@redhat.com>
9133
9134 * infrun.c (keep_going): Also discard cleanups if inserting
9135 breakpoints fails.
9136
9137 2015-04-01 Pedro Alves <palves@redhat.com>
9138
9139 * infrun.c (wait_for_inferior): Install the
9140 finish_thread_state_cleanup cleanup across the whole function, not
9141 just around handle_inferior_event.
9142
9143 2015-04-01 Pedro Alves <palves@redhat.com>
9144
9145 * infrun.c (resume) <step past permanent breakpoint>: Use
9146 do_target_resume.
9147
9148 2015-04-01 Pedro Alves <palves@redhat.com>
9149
9150 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
9151
9152 2015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
9153
9154 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
9155
9156 2015-04-01 Pedro Alves <palves@redhat.com>
9157
9158 * linux-thread-db.c (record_thread): Readd the thread to gdb's
9159 list if it was marked exited.
9160
9161 2015-04-01 H.J. Lu <hongjiu.lu@intel.com>
9162
9163 * configure: Regenerated.
9164
9165 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
9166 Jan Kratochvil <jan.kratochvil@redhat.com>
9167 Oleg Nesterov <oleg@redhat.com>
9168
9169 PR corefiles/16092
9170 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
9171 New enum identifying the various options of the coredump_filter
9172 file.
9173 (struct smaps_vmflags): New struct.
9174 (use_coredump_filter): New variable.
9175 (decode_vmflags): New function.
9176 (mapping_is_anonymous_p): Likewise.
9177 (dump_mapping_p): Likewise.
9178 (linux_find_memory_regions_full): New variables
9179 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
9180 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
9181 parsing of its information. Implement memory mapping filtering
9182 based on its contents.
9183 (show_use_coredump_filter): New function.
9184 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
9185 * NEWS: Mention the possibility of using the
9186 '/proc/PID/coredump_filter' file when generating a corefile.
9187 Mention new command 'set use-coredump-filter'.
9188
9189 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
9190
9191 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
9192 read_memory_unsigned_integer.
9193
9194 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
9195
9196 * Makefile.in (ZLIB): New.
9197 (ZLIBINC): Likewise.
9198 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
9199 (CLIBS): Add $(ZLIB).
9200 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
9201 Add -lz to LIBS.
9202 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
9203 * top.c (print_gdb_configuration): Remove --with-zlib and
9204 --without-zlib.
9205 * config.in: Regenerated.
9206 * configure: Likewise.
9207
9208 2015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
9209
9210 * NEWS: Mention info os cpus support.
9211 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
9212 (struct osdata_type): Add cpus entry, reorder the entries in
9213 alphabetical order.
9214
9215 2015-03-31 Matthias Klose <doko@ubuntu.com>
9216
9217 * compile/compile.c (compile_to_object): Allow triplets with or
9218 without vendor set.
9219
9220 2015-03-30 Doug Evans <dje@google.com>
9221
9222 PR c++/18141
9223 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
9224 klass in VAR_DOMAIN.
9225
9226 2015-03-30 Gary Benson <gbenson@redhat.com>
9227
9228 * remote.c (remote_mourn_1): Remove function. Update all callers
9229 to use remote_mourn.
9230 (extended_remote_mourn_1): Remove function. Update all callers
9231 to use extended_remote_mourn.
9232 (extended_remote_attach_1): Remove function. Update all callers
9233 to use extended_remote_attach.
9234
9235 2015-03-28 James Bowman <james.bowman@ftdichip.com>
9236
9237 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
9238 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
9239 (ALLDEPFILES): Add ft32-tdep.c.
9240 * configure.tgt: Add FT32 entry.
9241 * ft32-tdep.c: New file, FT32 target-dependent code.
9242 * ft32-tdep.h: New file, FT32 target-dependent code.
9243
9244 2015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9245
9246 Revert:
9247 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9248 Code cleanup.
9249 * printcmd.c (print_command_1): Move expr variable scope.
9250
9251 2015-03-27 Joel Brobecker <brobecker@adacore.com>
9252
9253 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
9254
9255 2015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
9256
9257 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
9258 sections.
9259
9260 2015-03-26 Joel Brobecker <brobecker@adacore.com>
9261
9262 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
9263 exception raised while parsing the probe arguments.
9264 Force parsing to be done using the C language parser.
9265 * expression.h (parse_expression_with_language): Declare.
9266 * parse.c (parse_expression_with_language): New function.
9267
9268 2015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
9269
9270 * MAINTAINERS (Write After Approval): Add "Jon Turney".
9271
9272 2015-03-26 Andy Wingo <wingo@igalia.com>
9273
9274 PR symtab/18148
9275 * dwarf2read.c (struct partial_die_info): Add has_const_value
9276 member.
9277 (add_partial_symbol): Don't punt on symbols that have const_value
9278 attributes.
9279 (read_partial_die): Detect DW_AT_const_value.
9280
9281 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9282
9283 Code cleanup.
9284 * printcmd.c (print_command_1): Move expr variable scope.
9285
9286 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9287
9288 Code cleanup.
9289 * printcmd.c (validate_format): Make the parameter cmdname const.
9290
9291 2015-03-26 Don Breazeal <donb@codesourcery.com>
9292
9293 * remote.c (_initialize_remote): Update comment.
9294
9295 2015-03-26 Pedro Alves <palves@redhat.com>
9296 Jon TURNEY <jon.turney@dronecode.org.uk>
9297
9298 * coffread.c (coff_symfile_read): When constructing the name of an
9299 import stub symbol from import symbol for amd64, only skip the
9300 char after _imp_ if the target is underscored (like i386) and the
9301 char is indeed the target's leading char.
9302
9303 2015-03-25 Pedro Alves <palves@redhat.com>
9304
9305 * target.h <to_async>: Replace 'callback' and 'context' parameters
9306 with boolean 'enable' parameter.
9307 (target_async): Replace CALLBACK and CONTEXT parameters with
9308 boolean ENABLE parameter.
9309 * inf-loop.c (inferior_event_handler): Adjust.
9310 * linux-nat.c (linux_nat_attach, linux_nat_resume)
9311 (linux_nat_resume): Adjust.
9312 (async_client_callback, async_client_context): Delete.
9313 (handle_target_event): Call inferior_event_handler directly.
9314 (linux_nat_async): Replace 'callback' and 'context' parameters
9315 with boolean 'enable' parameter. Adjust. Remove references to
9316 async_client_callback and async_client_context.
9317 (linux_nat_close): Adjust.
9318 * record-btrace.c (record_btrace_async): Replace 'callback' and
9319 'context' parameters with boolean 'enable' parameter. Adjust.
9320 (record_btrace_resume): Adjust.
9321 * record-full.c (record_full_async): Replace 'callback' and
9322 'context' parameters with boolean 'enable' parameter. Adjust.
9323 (record_full_resume, record_full_core_resume): Adjust.
9324 * remote.c (struct remote_state) <async_client_callback,
9325 async_client_context>: Delete fields.
9326 (remote_start_remote, extended_remote_attach_1, remote_resume)
9327 (extended_remote_create_inferior): Adjust.
9328 (remote_async_serial_handler): Call inferior_event_handler
9329 directly.
9330 (remote_async): Replace 'callback' and 'context' parameters with
9331 boolean 'enable' parameter. Adjust.
9332 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
9333 Adjust.
9334 * target-delegates.c: Regenerate.
9335
9336 2015-03-25 Gary Benson <gbenson@redhat.com>
9337 Pedro Alves <palves@redhat.com>
9338
9339 * target.c (fileio_ft_t): New typedef, define object vector.
9340 (fileio_fhandles): New static variable.
9341 (is_closed_fileio_fh): New macro.
9342 (lowest_closed_fd): New static variable.
9343 (acquire_fileio_fd): New function.
9344 (release_fileio_fd): Likewise.
9345 (fileio_fd_to_fh): New macro.
9346 (target_fileio_open): Wrap the file descriptor on success.
9347 (target_fileio_pwrite): Updated to use wrapped file descriptor.
9348 (target_fileio_pread): Likewise.
9349 (target_fileio_close): Likewise.
9350
9351 2015-03-24 Pedro Alves <palves@redhat.com>
9352
9353 * thread.c (thread_apply_all_command): Take exited threads into
9354 account.
9355
9356 2015-03-24 Pedro Alves <palves@redhat.com>
9357
9358 * infrun.c (resume, proceed): Mention
9359 switch_back_to_stepped_thread, not switch_back_to_stepping.
9360
9361 2015-03-24 Pedro Alves <palves@redhat.com>
9362
9363 * infrun.c (user_visible_resume_ptid): Rewrite going from
9364 most-locked to unlocked instead of the opposite. Move comment ...
9365 * infrun.h (user_visible_resume_ptid): ... here.
9366
9367 2015-03-24 Pedro Alves <palves@redhat.com>
9368
9369 * linux-nat.c (linux_nat_resume): Output debug logs before trying
9370 to resume the event lwp. Use the lwp's ptid instead of the passed
9371 in (maybe wildcard) ptid.
9372 (stop_wait_callback): Tweak debug log output.
9373 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
9374 TRAP_TRACE.
9375 (linux_nat_filter_event): In debug output, distinguish a
9376 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
9377 before trying to resume the lwp.
9378
9379 2015-03-24 Joel Brobecker <brobecker@adacore.com>
9380
9381 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
9382 pointer indirection.
9383 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
9384 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
9385
9386 2015-03-24 Joel Brobecker <brobecker@adacore.com>
9387
9388 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
9389 Renames DYN_ATTR_DATA_LOCATION.
9390 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
9391 DYN_ATTR_DATA_LOCATION.
9392 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
9393 instead of DYN_ATTR_DATA_LOCATION.
9394
9395 2015-03-24 Pedro Alves <palves@redhat.com>
9396
9397 * breakpoint.c (until_break_command): Adjust call to proceed.
9398 * gdbthread.h (struct thread_control_state) <stepping_command>:
9399 New field.
9400 * infcall.c (run_inferior_call): Adjust call to proceed.
9401 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
9402 Adjust calls to proceed.
9403 (set_step_frame): Set the current thread's step_start_function
9404 here.
9405 (step_once): Adjust calls to proceed.
9406 (jump_command, signal_command, until_next_command)
9407 (finish_backward, finish_forward, proceed_after_attach_callback)
9408 (attach_command_post_wait): Adjust calls to proceed.
9409 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
9410 (do_target_resume): New function, factored out from ...
9411 (resume): ... here. Remove 'step' parameter. Instead, check
9412 currently_stepping to determine whether the thread should be
9413 single-stepped.
9414 (proceed): Remove 'step' parameter and don't set the thread's
9415 step_start_function here. Adjust call to 'resume'.
9416 (handle_inferior_event): Adjust calls to 'resume'.
9417 (switch_back_to_stepped_thread): Use do_target_resume instead of
9418 'resume'.
9419 (keep_going): Adjust calls to 'resume'.
9420 * infrun.h (proceed): Remove 'step' parameter.
9421 (resume): Likewise.
9422 * windows-nat.c (do_initial_windows_stuff): Adjust call to
9423 'resume'.
9424 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
9425
9426 2015-03-24 Pedro Alves <palves@redhat.com>
9427
9428 * gdbthread.h (struct thread_control_state) <stepping_command>:
9429 New field.
9430 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
9431 the thread's stepping_command field.
9432 * infrun.c (resume): Check the thread's stepping_command flag to
9433 determine which threads should be resumed. Rename 'entry_step'
9434 local to user_step.
9435 (clear_proceed_status_thread): Clear 'stepping_command'.
9436 (schedlock_applies): Change parameter type to struct thread_info
9437 pointer. Adjust.
9438 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
9439 (switch_back_to_stepped_thread): Adjust calls to
9440 'schedlock_applies'.
9441 (_initialize_infrun): Adjust "set scheduler-locking step" help.
9442
9443 2015-03-24 Pedro Alves <palves@redhat.com>
9444
9445 * infrun.c (step_start_function): Delete and ...
9446 * gdbthread.h (struct thread_control_state) <step_start_function>:
9447 ... now a field here.
9448 * infrun.c (clear_proceed_status_thread): Clear the thread's
9449 step_start_function.
9450 (proceed, process_event_stop_test, print_stop_event): Adjust.
9451
9452 2015-03-24 Pedro Alves <palves@redhat.com>
9453
9454 * infrun.c (proceed): No longer handle negative step.
9455
9456 2015-03-24 Gary Benson <gbenson@redhat.com>
9457
9458 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
9459 (x86_linux_prepare_to_resume): Likewise.
9460 * x86-linux-nat.c (x86_linux_new_thread):
9461 Moved to nat/x86-linux.c.
9462 (x86_linux_prepare_to_resume): Likewise.
9463 * nat/x86-linux.c (x86_linux_new_thread): New function.
9464 (x86_linux_prepare_to_resume): Likewise.
9465
9466 2015-03-24 Gary Benson <gbenson@redhat.com>
9467
9468 * nat/x86-linux-dregs.h: New file.
9469 * nat/x86-linux-dregs.c: Likewise.
9470 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
9471 (x86-linux-dregs.o): New rule.
9472 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
9473 * config/i386/linux64.mh (NATDEPFILES): Likewise.
9474 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
9475 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
9476 (x86_linux_dr_get): Likewise.
9477 (x86_linux_dr_set): Likewise.
9478 (x86_linux_dr_get_addr): Likewise.
9479 (x86_linux_dr_get_control): Likewise.
9480 (x86_linux_dr_get_status): Likewise.
9481 (update_debug_registers_callback): Likewise.
9482 (x86_linux_dr_set_control): Likewise.
9483 (x86_linux_dr_set_addr): Likewise.
9484 (x86_linux_update_debug_registers): Likewise.
9485
9486 2015-03-24 Gary Benson <gbenson@redhat.com>
9487
9488 * x86-linux-nat.c (x86_linux_update_debug_registers):
9489 New function, factored out from...
9490 (x86_linux_prepare_to_resume): ...this.
9491
9492 2015-03-24 Gary Benson <gbenson@redhat.com>
9493
9494 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
9495 (x86_linux_dr_set): Likewise.
9496 (x86_linux_dr_get_addr): Likewise.
9497 (x86_linux_dr_get_control): Likewise.
9498 (x86_linux_dr_get_status): Likewise.
9499 (update_debug_registers_callback): Likewise.
9500 (x86_linux_dr_set_control): Likewise.
9501 (x86_linux_dr_set_addr): Likewise.
9502 (x86_linux_prepare_to_resume): Likewise.
9503 (x86_linux_new_thread): Likewise.
9504
9505 2015-03-24 Gary Benson <gbenson@redhat.com>
9506
9507 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
9508 (x86_linux_new_thread): Rename argument.
9509
9510 2015-03-24 Gary Benson <gbenson@redhat.com>
9511
9512 * nat/x86-linux.h: New file.
9513 * nat/x86-linux.c: Likewise.
9514 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
9515 (x86-linux.o): New rule.
9516 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
9517 * config/i386/linux64.mh (NATDEPFILES): Likewise.
9518 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
9519 (lwp_set_arch_private_info): New declaration.
9520 (lwp_arch_private_info): Likewise.
9521 * linux-nat.c (lwp_set_arch_private_info): New function.
9522 (lwp_arch_private_info): Likewise.
9523 * x86-linux-nat.c: Include nat/x86-linux.h.
9524 (arch_lwp_info): Removed structure.
9525 (update_debug_registers_callback):
9526 Use lwp_set_debug_registers_changed.
9527 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
9528 and lwp_set_debug_registers_changed.
9529 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
9530
9531 2015-03-24 Gary Benson <gbenson@redhat.com>
9532
9533 * nat/linux-nat.h (ptid_of_lwp): New declaration.
9534 (lwp_is_stopped): Likewise.
9535 (lwp_stop_reason): Likewise.
9536 * linux-nat.c (ptid_of_lwp): New function.
9537 (lwp_is_stopped): Likewise.
9538 (lwp_is_stopped_by_watchpoint): Likewise.
9539 * x86-linux-nat.c (update_debug_registers_callback):
9540 Use lwp_is_stopped.
9541 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
9542 lwp_stop_reason.
9543
9544 2015-03-24 Gary Benson <gbenson@redhat.com>
9545
9546 * linux-nat.h (linux_stop_lwp): Move declaration to...
9547 * nat/linux-nat.h (linux_stop_lwp): New declaration.
9548
9549 2015-03-24 Gary Benson <gbenson@redhat.com>
9550
9551 * linux-nat.h: Include nat/linux-nat.h.
9552 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
9553 * nat/linux-nat.h (struct lwp_info): New forward declaration.
9554 (iterate_over_lwps_ftype): New typedef.
9555 (iterate_over_lwps): New declaration.
9556 * linux-nat.h (iterate_over_lwps): Update comment. Use
9557 iterate_over_lwps_ftype. Update callback return value check.
9558
9559 2015-03-24 Gary Benson <gbenson@redhat.com>
9560
9561 * x86-nat.h (x86_debug_reg_state): Move declaration to...
9562 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
9563
9564 2015-03-24 Gary Benson <gbenson@redhat.com>
9565
9566 * nat/linux-nat.h (current_lwp_ptid): New declaration.
9567 * linux-nat.c (current_lwp_ptid): New function.
9568 * x86-linux-nat.c: Include nat/linux-nat.h.
9569 (x86_linux_dr_get_addr): Use current_lwp_ptid.
9570 (x86_linux_dr_get_control): Likewise.
9571 (x86_linux_dr_get_status): Likewise.
9572 (x86_linux_dr_set_control): Likewise.
9573 (x86_linux_dr_set_addr): Likewise.
9574
9575 2015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
9576
9577 PR breakpoints/16466
9578 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
9579
9580 2015-03-23 Joel Brobecker <brobecker@adacore.com>
9581
9582 * ser-mingw.c (ser_windows_setparity): Fix indentation.
9583 * ser-unix.c (hardwire_setparity): Likewise.
9584
9585 2015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
9586
9587 * NEWS: Mention set/show serial parity command.
9588 * monitor.c (monitor_open): Call serial_setparity.
9589 * remote.c (remote_open_1): Likewise.
9590 * ser-base.c (ser_base_serparity): New function.
9591 * ser-base.h (ser_base_setparity): Add declaration.
9592 * ser-go32.c (dos_ops): Set "setparity" field.
9593 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
9594 state.Parity.
9595 (ser_windows_setparity): New function.
9596 (hardwire_ops): Add ser_windows_setparity.
9597 (tty_ops): Add NULL for setparity field.
9598 (pipe_ops): Add ser_base_setparity.
9599 (tcp_ops): Likewise.
9600 * ser-pipe.c (pipe_ops): Likewise.
9601 * ser-tcp.c (tcp_ops): Likewise.
9602 * ser-unix.c (hardwire_setparity): Add declaration.
9603 (hardwire_raw): Don't reset PARENB flag.
9604 (hardwire_setparity): New function.
9605 (hardwire_ops): Add hardwire_setparity.
9606 * serial.c (serial_setparity): New function.
9607 (serial_parity): New global.
9608 (parity_none, parity_odd, parity_even, parity_enums, parity):
9609 New static globals.
9610 (set_parity): New function.
9611 (_initialize_serial): Add set/show serial parity commands.
9612 * serial.h (GDBPARITY_NONE): Define.
9613 (GDBPARITY_ODD): Define.
9614 (GDBPARITY_EVEN): Define.
9615 (serial_setparity) Add declaration.
9616 (struct serial_ops): Add setparity field.
9617 * target.h (serial_parity): Add declaration.
9618
9619 2015-03-23 Keith Seitz <keiths@redhat.com>
9620
9621 * linespec.c (linespec_lexer_lex_keyword): Update comment.
9622
9623 2015-03-23 Keith Seitz <keiths@redhat.com>
9624
9625 * breakpoint.c (parse_breakpoint_sals): Use
9626 linespec_lexer_lex_keyword to ascertain if the user specified
9627 a NULL location.
9628 * linespec.c [IF_KEYWORD_INDEX]: Define.
9629 (linespec_lexer_lex_keyword): Export.
9630 (struct ls_parser) <keyword_ok>: Remove.
9631 A keyword is only a keyword if not followed by another keyword.
9632 (linespec_lexer_lex_one): Remove keyword_ok handling.
9633 Add comment explaining why the parsing stream is not advanced
9634 when a keyword is seen.
9635 (parse_linespec): Remove parser->keyword_ok.
9636 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
9637
9638 2015-03-23 Keith Seitz <keiths@redhat.com>
9639
9640 PR gdb/18021
9641 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
9642 if we find a static method with DW_AT_vtable_elem_location.
9643
9644 2015-03-21 Eli Zaretskii <eliz@gnu.org>
9645
9646 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
9647 before the second loop, to avoid undefined behavior. Reported by
9648 Anton Blanchard <anton@samba.org>.
9649
9650 2015-03-20 Keven Boell <keven.boell@intel.com>
9651
9652 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
9653 data_location usage to linked list.
9654 (resolve_dynamic_type_internal): Adapt data_location to
9655 linked list.
9656 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
9657 (copy_type_recursive, copy_type): Add copy of linked list.
9658 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
9659 (struct dynamic_prop_list): New struct.
9660 * dwarf2read.c (set_die_type): Set data_location data.
9661
9662 2015-03-20 Pedro Alves <palves@redhat.com>
9663
9664 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
9665 inner block and make it const.
9666 * machoread.c (get_archive_prefix_len): Make "lparen" const.
9667
9668 2015-03-20 Pedro Alves <palves@redhat.com>
9669
9670 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
9671 * breakpoint.h (set_breakpoint_condition): Update declaration.
9672
9673 2015-03-20 Pedro Alves <palves@redhat.com>
9674
9675 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
9676
9677 2015-03-20 Pedro Alves <palves@redhat.com>
9678
9679 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
9680
9681 2015-03-20 Pedro Alves <palves@redhat.com>
9682
9683 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
9684
9685 2015-03-20 Pedro Alves <palves@redhat.com>
9686
9687 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
9688 (nto_init_solib_absolute_prefix): Likewise.
9689
9690 2015-03-20 Pedro Alves <palves@redhat.com>
9691
9692 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
9693 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
9694
9695 2015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9696
9697 * config/djgpp/README: Remove gdb.hp.
9698
9699 2015-03-20 Yao Qi <yao.qi@linaro.org>
9700
9701 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
9702 set_gdbarch_cannot_step_breakpoint.
9703
9704 2015-03-19 Pedro Alves <palves@redhat.com>
9705
9706 * linux-nat.c (linux_resume_one_lwp): Rename to ...
9707 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
9708 instead call perror_with_name.
9709 (check_ptrace_stopped_lwp_gone): New function.
9710 (linux_resume_one_lwp): Reimplement as wrapper around
9711 linux_resume_one_lwp_throw that swallows errors if the LWP is
9712 gone.
9713 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
9714 swallows errors if the LWP is gone. Use
9715 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
9716
9717 2015-03-19 Pedro Alves <palves@redhat.com>
9718
9719 * linux-nat.c (status_callback): Return early if the LWP has no
9720 status pending.
9721
9722 2015-03-19 Pedro Alves <palves@redhat.com>
9723
9724 * linux-nat.c (select_event_lwp_callback): Update comment to no
9725 longer mention SIGTRAP.
9726
9727 2015-03-18 Tristan Gingold <gingold@adacore.com>
9728
9729 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
9730 redirection code to ...
9731 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
9732 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
9733
9734 2015-03-18 Gary Benson <gbenson@redhat.com>
9735
9736 (remote_protocol_features): Remove the "vFile:fstat" feature.
9737 (remote_hostio_fstat): Probe for "vFile:fstat" support.
9738
9739 2015-03-11 Yao Qi <yao.qi@linaro.org>
9740
9741 PR tdep/18107
9742 * aarch64-linux-tdep.c: Include xml-syscall.h
9743 (aarch64_linux_get_syscall_number): New function.
9744 (aarch64_linux_init_abi): Call
9745 set_gdbarch_get_syscall_number.
9746 * syscalls/aarch64-linux.xml: New file.
9747
9748 2015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
9749
9750 * ser-base.h (ser_base_setstopbits): Change second argument name
9751 from "rate" to "num".
9752
9753 2015-03-17 Gary Benson <gbenson@redhat.com>
9754 Luke Allardyce <lukeallardyce@gmail.com>
9755
9756 PR gdb/18131
9757 * common/common-remote-fileio.h (sys/stat.h): New include.
9758 (stuct stat): Remove forward declaration.
9759
9760 2015-03-16 John Baldwin <jhb@FreeBSD.org>
9761
9762 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
9763 before writing core register notes.
9764
9765 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
9766 Pedro Alves <palves@redhat.com>
9767
9768 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
9769 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
9770 (tgoto): Wrap with extern "C".
9771
9772 2015-03-16 Pedro Alves <palves@redhat.com>
9773 Yuanhui Zhang <asmwarrior@gmail.com>
9774
9775 * stub-termcap.c (tputs): Change prototype.
9776
9777 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
9778 Pedro Alves <palves@redhat.com>
9779
9780 * windows-nat.c (struct thread_info_struct): Rename to ...
9781 (struct windows_thread_info_struct): ... this.
9782 (thread_info): Rename to ...
9783 (windows_thread_info): ... this.
9784 All users updated.
9785
9786 2015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9787 Pedro Alves <palves@redhat.com>
9788
9789 * NEWS: New Removed targets and native configurations.
9790
9791 2015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9792
9793 Remove HPUX.
9794 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
9795 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
9796 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
9797 ia64-hpux-tdep.h, solib-ia64-hpux.h.
9798 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
9799 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
9800 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
9801 hppa-hpux-tdep.c.
9802 * config/ia64/hpux.mh: Remove file.
9803 * config/pa/hpux.mh: Remove file.
9804 * configure: Rebuilt.
9805 * configure.ac (dlgetmodinfo, somread.o): Remove.
9806 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
9807 (ia64-*-hpux*): Remove its float format exception.
9808 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
9809 * hppa-hpux-nat.c: Remove file.
9810 * hppa-hpux-tdep.c: Remove file.
9811 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
9812 Move them here from hppa-tdep.h
9813 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
9814 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
9815 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
9816 Move them to hppa-tdep.c.
9817 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
9818 declarations.
9819 * ia64-hpux-nat.c: Remove file.
9820 * ia64-hpux-tdep.c: Remove file.
9821 * ia64-hpux-tdep.h: Remove file.
9822 * inf-ttrace.c: Remove file.
9823 * inf-ttrace.h: Remove file.
9824 * solib-ia64-hpux.c: Remove file.
9825 * solib-ia64-hpux.h: Remove file.
9826 * solib-pa64.c: Remove file.
9827 * solib-pa64.h: Remove file.
9828 * solib-som.c: Remove file.
9829 * solib-som.h: Remove file.
9830 * somread.c: Remove file.
9831
9832 2015-03-13 John Baldwin <jhb@FreeBSD.org>
9833
9834 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
9835 * config.in: Regenerate.
9836 * configure: Regenerate.
9837 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
9838 define.
9839 (fbsd_find_memory_regions): Use kinfo_getvmmap to
9840 enumerate memory regions if present.
9841
9842 2015-03-13 John Baldwin <jhb@FreeBSD.org>
9843
9844 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
9845 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
9846 expressions.
9847 (i386fbsd_sigtramp_p): Likewise.
9848
9849 2015-03-12 John Baldwin <jhb@FreeBSD.org>
9850
9851 * MAINTAINERS (Write After Approval): Add John Baldwin.
9852
9853 2015-03-12 Gary Benson <gbenson@redhat.com>
9854
9855 * solib.c (_initialize_solib): Make "set/show sysroot" use
9856 add_setshow_optional_filename_cmd so it can be restored to
9857 empty after being set.
9858
9859 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
9860
9861 * Makefile.in (SFILES): New source break-catch-syscall.c.
9862 (COMMON_OBS): New object break-catch-syscall.o.
9863 * break-catch-syscall.c: New file.
9864 * breakpoint.c: Remove inclusion of "xml-syscall.h".
9865 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
9866 (struct syscall_catchpoint): Likewise.
9867 (dtor_catch_syscall): Likewise.
9868 (catch_syscall_inferior_data): Likewise.
9869 (struct catch_syscall_inferior_data): Likewise.
9870 (get_catch_syscall_inferior_data): Likewise.
9871 (catch_syscall_inferior_data_cleanup): Likewise.
9872 (insert_catch_syscall): Likewise.
9873 (remove_catch_syscall): Likewise.
9874 (breakpoint_hit_catch_syscall): Likewise.
9875 (print_it_catch_syscall): Likewise.
9876 (print_one_catch_syscall): Likewise.
9877 (print_mention_catch_syscall): Likewise.
9878 (print_recreate_catch_syscall): Likewise.
9879 (catch_syscall_breakpoint_ops): Likewise.
9880 (syscall_catchpoint_p): Likewise.
9881 (create_syscall_event_catchpoint): Likewise.
9882 (catch_syscall_split_args): Likewise.
9883 (catch_syscall_command_1): Likewise.
9884 (is_syscall_catchpoint_enabled): Likewise.
9885 (catch_syscall_enabled): Likewise.
9886 (catching_syscall_number): Likewise.
9887 (catch_syscall_completer): Likewise.
9888 (clear_syscall_counts): Likewise.
9889 (initialize_breakpoint_ops): Move initialization of syscall
9890 catchpoints to break-catch-syscall.c.
9891 (_initialize_breakpoint): Move code related to syscall catchpoints
9892 to break-catch-syscall.c.
9893
9894 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
9895
9896 * breakpoint.c (breakpoint_find_if): New function.
9897 * breakpoint.h (breakpoint_find_if): New prototype.
9898
9899 2015-03-11 Gary Benson <gbenson@redhat.com>
9900
9901 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
9902 * remote-fileio.c (remote_fileio_to_host_uint): New function.
9903 (remote_fileio_to_host_ulong): Likewise.
9904 (remote_fileio_to_host_mode): Likewise.
9905 (remote_fileio_to_host_time): Likewise.
9906 (remote_fileio_to_host_stat): Likewise.
9907 * remote.c (PACKET_vFile_fstat): New enum value.
9908 (remote_protocol_features): Register the "vFile:fstat" feature.
9909 (remote_hostio_fstat): New function.
9910 (remote_bfd_iovec_stat): Use the above.
9911 (_initialize_remote): Register new "set/show remote
9912 hostio-fstat-packet" command.
9913 * symfile.c (separate_debug_file_exists): Update comment.
9914 * NEWS: Announce new vFile:fstat packet.
9915
9916 2015-03-11 Gary Benson <gbenson@redhat.com>
9917
9918 * common/common-remote-fileio.h: New file.
9919 * common/common-remote-fileio.c: Likewise.
9920 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
9921 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
9922 (COMMON_OBS): Add common-remote-fileio.o.
9923 (common-remote-fileio.o): New rule.
9924 * remote-fileio.h (common-remote-fileio.h): New include.
9925 * remote-fileio.c (gdb/fileio.h): Do not include.
9926 (remote_fileio_to_be): Moved to common-remote-fileio.h.
9927 (remote_fileio_to_fio_uint): Likewise.
9928 (remote_fileio_to_fio_time): Likewise.
9929 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
9930 (remote_fileio_to_fio_mode): Likewise.
9931 (remote_fileio_to_fio_ulong): Likewise.
9932 (remote_fileio_to_fio_stat): Likewise.
9933
9934 2015-03-11 Andy Wingo <wingo@igalia.com>
9935
9936 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
9937 we were checking the cached type, not the cached dynamic type.
9938
9939 2015-03-11 Andy Wingo <wingo@igalia.com>
9940
9941 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
9942 other strings, as these are on the GC'd heap, and will be
9943 collected along with the smob.
9944
9945 2015-03-11 Andy Wingo <wingo@igalia.com>
9946
9947 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
9948 (objfile_functions): Bind gdbscm_objfile_progspace to
9949 objfile-progspace.
9950 * guile/lib/gdb.scm: Add objfile-progspace to exports.
9951
9952 2015-03-11 Andy Wingo <wingo@igalia.com>
9953
9954 * guile/guile.c (_initialize_guile): Disable automatic
9955 finalization, if Guile offers us that possibility.
9956 * guile/guile.c (call_initialize_gdb_module):
9957 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
9958 finalizers in appropriate places.
9959 * configure.ac (AC_TRY_LIBGUILE): Add a check for
9960 scm_set_automatic_finalization_enabled.
9961 * configure: Regenerated.
9962
9963 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
9964
9965 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
9966 SAL, if possible.
9967
9968 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
9969
9970 * s390-linux-nat.c (struct arch_lwp_info): New.
9971 (s390_fix_watch_points): Rename to...
9972 (s390_prepare_to_resume): ...this. Skip the PER info update
9973 unless the watch points have changed.
9974 (s390_refresh_per_info, s390_new_thread): New functions.
9975 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
9976 s390_fix_watch_points.
9977 (s390_remove_watchpoint): Likewise.
9978 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
9979 Register s390_prepare_to_resume.
9980
9981 2015-03-09 Pedro Alves <palves@redhat.com>
9982
9983 Revert:
9984 2015-03-07 Pedro Alves <palves@redhat.com>
9985 * common/gdb_socket.h: New file.
9986 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
9987 sys/socket.h.
9988 (net_open): Use union gdb_sockaddr_u.
9989
9990 2015-03-07 Pedro Alves <palves@redhat.com>
9991
9992 * configure.ac (build_warnings): Move -Wmissing-prototypes
9993 -Wdeclaration-after-statement -Wmissing-parameter-type
9994 -Wold-style-declaration -Wold-style-definition to the C-specific
9995 set.
9996 * configure: Regenerate.
9997
9998 2015-03-07 Pedro Alves <palves@redhat.com>
9999
10000 * common/gdb_socket.h: New file.
10001 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
10002 sys/socket.h.
10003 (net_open): Use union gdb_sockaddr_u.
10004
10005 2015-03-07 Pedro Alves <palves@redhat.com>
10006
10007 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
10008 (exceptions_state_mc_action_iter)
10009 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10010 Don't define.
10011 [__cplusplus] (try_scope_depth): New global.
10012 [__cplusplus] (exception_try_scope_entry)
10013 (exception_try_scope_exit, gdb_exception_sliced_copy)
10014 (exception_rethrow): New functions.
10015 (throw_exception): In C++ mode, throw
10016 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
10017 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
10018 (throw_it): In C++ mode, use try_scope_depth.
10019 * common/common-exceptions.h [!__cplusplus]
10020 (exceptions_state_mc_action_iter)
10021 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10022 Don't declare.
10023 [__cplusplus] (exception_try_scope_entry)
10024 (exception_try_scope_exit, exception_rethrow): Declare.
10025 [__cplusplus] (struct exception_try_scope): New struct.
10026 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
10027 C++ exceptions.
10028 (struct gdb_exception_RETURN_MASK_ALL)
10029 (struct gdb_exception_RETURN_MASK_ERROR)
10030 (struct gdb_exception_RETURN_MASK_QUIT): New types.
10031
10032 2015-03-07 Pedro Alves <palves@redhat.com>
10033
10034 * main.c (handle_command_errors): Remove volatile qualifier from
10035 parameter.
10036
10037 2015-03-07 Pedro Alves <palves@redhat.com>
10038
10039 * breakpoint.c (save_breakpoints): Adjust to avoid code between
10040 TRY and CATCH.
10041 * gdbtypes.c (safe_parse_type): Remove empty line.
10042 (types_deeply_equal):
10043 * guile/scm-frame.c (gdbscm_frame_name):
10044 * linux-thread-db.c (find_new_threads_once):
10045 * python/py-breakpoint.c (bppy_get_commands):
10046 * record-btrace.c (record_btrace_insert_breakpoint)
10047 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
10048 (record_btrace_start_replaying): Adjust to avoid code between TRY
10049 and CATCH.
10050
10051 2015-03-07 Pedro Alves <palves@redhat.com>
10052
10053 * common/common-exceptions.c (struct catcher) <exception>: No
10054 longer a pointer to volatile exception. Now an exception value.
10055 <mask>: Delete field.
10056 (exceptions_state_mc_init): Remove all parameters. Adjust.
10057 (exceptions_state_mc): No longer pop the catcher here.
10058 (exceptions_state_mc_catch): New function.
10059 (throw_exception): Adjust.
10060 * common/common-exceptions.h (exceptions_state_mc_init): Remove
10061 all parameters.
10062 (exceptions_state_mc_catch): Declare.
10063 (TRY_CATCH): Rename to ...
10064 (TRY): ... this. Remove EXCEPTION and MASK parameters.
10065 (CATCH, END_CATCH): New.
10066 All callers adjusted.
10067
10068 2015-03-07 Tom Tromey <tromey@redhat.com>
10069
10070 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
10071
10072 2015-03-07 Pedro Alves <palves@redhat.com>
10073
10074 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10075 (amd64_epilogue_frame_cache): Normal exception handling code.
10076 * break-catch-throw.c (check_status_exception_catchpoint)
10077 (re_set_exception_catchpoint): Ditto.
10078 * cli/cli-interp.c (safe_execute_command):
10079 * cli/cli-script.c (script_from_file): Ditto.
10080 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
10081 Ditto.
10082 * compile/compile-object-run.c (compile_object_run): Ditto.
10083 * cp-abi.c (baseclass_offset): Ditto.
10084 * cp-valprint.c (cp_print_value): Ditto.
10085 * exceptions.c (catch_exceptions_with_msg):
10086 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
10087 * frame.c (get_frame_address_in_block_if_available): Ditto.
10088 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10089 (i386_sigtramp_frame_cache): Ditto.
10090 * infcmd.c (post_create_inferior): Ditto.
10091 * linespec.c (parse_linespec, find_linespec_symbols):
10092 * p-valprint.c (pascal_object_print_value): Ditto.
10093 * parse.c (parse_expression_for_completion): Ditto.
10094 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
10095 * remote.c (remote_get_noisy_reply): Ditto.
10096 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
10097 * solib-svr4.c (solib_svr4_r_map): Ditto.
10098
10099 2015-03-06 Gary Benson <gbenson@redhat.com>
10100
10101 * common/common-utils.h (startswith): New inline function.
10102 All places where this logic was used updated to use the above.
10103
10104 2015-03-05 Pedro Alves <palves@redhat.com>
10105
10106 PR gdb/18002
10107 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
10108 after reading the breakpoint's shadow memory.
10109
10110 2015-03-05 Mark Kettenis <kettenis@gnu.org>
10111
10112 * hppabsd-nat.c: Remove file.
10113 * hppaobsd-nat.c: New file.
10114 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
10115 hppaobsd-nat.c.
10116 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
10117 hppaobsd-nat.o.
10118
10119 2015-03-04 Pedro Alves <palves@redhat.com>
10120
10121 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
10122 (target_decr_pc_after_break): Delete declaration.
10123 * target.c (default_target_decr_pc_after_break)
10124 (target_decr_pc_after_break): Delete.
10125 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
10126 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
10127 * linux-thread-db.c (check_event): Likewise.
10128 * infrun.c (adjust_pc_after_break): Likewise.
10129 * darwin-nat.c (cancel_breakpoint): Likewise.
10130 * aix-thread.c (aix_thread_wait): Likewise.
10131 * target-delegates.c: Regenerate.
10132
10133 2015-03-04 Pedro Alves <palves@redhat.com>
10134
10135 * linux-nat.c (save_sigtrap): Check for breakpoints before
10136 checking watchpoints.
10137 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
10138 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
10139 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
10140 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
10141 (linux_nat_stopped_by_sw_breakpoint)
10142 (linux_nat_supports_stopped_by_sw_breakpoint)
10143 (linux_nat_stopped_by_hw_breakpoint)
10144 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
10145 (linux_nat_wait_1): Don't re-increment the PC if relying on
10146 SIGTRAP's siginfo->si_code.
10147 (linux_nat_add_target): Install new target methods.
10148 * linux-thread-db.c (check_event): Don't account for breakpoint PC
10149 offset if the target already adjusted the PC.
10150 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
10151 (GDB_ARCH_TRAP_BRKPT): New.
10152 (TRAP_HWBKPT): Define if not already defined.
10153
10154 2015-03-04 Pedro Alves <palves@redhat.com>
10155
10156 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
10157 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
10158 Delete field.
10159 <stop_reason>: New field.
10160 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
10161 (packet_set_cmd_state): New function.
10162 (remote_protocol_features): Register the "swbreak" and "hwbreak"
10163 features.
10164 (remote_query_supported): If not disabled with the corresponding
10165 "set remote foo-packet" command, report support for the swbreak
10166 and hwbreak features.
10167 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
10168 field.
10169 <stop_reason>: New field.
10170 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
10171 (remote_wait_as): Adjust.
10172 (remote_stopped_by_sw_breakpoint)
10173 (remote_supports_stopped_by_sw_breakpoint)
10174 (remote_stopped_by_hw_breakpoint)
10175 (remote_supports_stopped_by_hw_breakpoint): New functions.
10176 (remote_stopped_by_watchpoint): New function.
10177 (init_remote_ops): Install them.
10178 (_initialize_remote): Register new "set/show remote
10179 swbreak-feature-packet" and "set/show remote
10180 swbreak-feature-packet" commands.
10181
10182 2015-03-04 Pedro Alves <palves@redhat.com>
10183
10184 * btrace.h: Include target/waitstatus.h.
10185 (struct btrace_thread_info) <stop_reason>: New field.
10186 * record-btrace.c (record_btrace_step_thread): Use
10187 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10188 (record_btrace_decr_pc_after_break): Delete.
10189 (record_btrace_stopped_by_sw_breakpoint)
10190 (record_btrace_supports_stopped_by_sw_breakpoint)
10191 (record_btrace_stopped_by_hw_breakpoint)
10192 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
10193 (init_record_btrace_ops): Install them.
10194 * record-full.c (record_full_hw_watchpoint): Delete and replace
10195 with ...
10196 (record_full_stop_reason): ... this throughout.
10197 (record_full_exec_insn): Adjust.
10198 (record_full_wait_1): Adjust. No longer re-increment the PC.
10199 (record_full_wait_1): Adjust. Use
10200 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10201 (record_full_stopped_by_watchpoint): Adjust.
10202 (record_full_stopped_by_sw_breakpoint)
10203 (record_full_supports_stopped_by_sw_breakpoint)
10204 (record_full_supports_stopped_by_sw_breakpoint)
10205 (record_full_stopped_by_hw_breakpoint)
10206 (record_full_supports_stopped_by_hw_breakpoint): New functions.
10207 (init_record_full_ops, init_record_full_core_ops): Install them.
10208 * record.c (record_check_stopped_by_breakpoint): New function.
10209 * record.h: Include target/waitstatus.h.
10210 (record_check_stopped_by_breakpoint): New declaration.
10211
10212 2015-03-04 Pedro Alves <palves@redhat.com>
10213
10214 enum lwp_stop_reason -> enum target_stop_reason
10215 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
10216 (linux_nat_stopped_by_watchpoint, status_callback)
10217 (linux_nat_wait_1): Adjust.
10218 * linux-nat.h (enum lwp_stop_reason): Delete.
10219 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
10220 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
10221 * target/waitstatus.h (enum target_stop_reason): New.
10222
10223 2015-03-04 Pedro Alves <palves@redhat.com>
10224
10225 * breakpoint.c (need_moribund_for_location_type): New function.
10226 (bpstat_stop_status): Don't skipping checking moribund locations
10227 of breakpoint types which the target tell caused a stop.
10228 (program_breakpoint_here_p): New function, factored out from ...
10229 (bp_loc_is_permanent): ... this.
10230 (update_global_location_list): Don't create a moribund location if
10231 the target supports reporting stops of the type of the removed
10232 breakpoint.
10233 * breakpoint.h (program_breakpoint_here_p): New declaration.
10234 * infrun.c (adjust_pc_after_break): Return early if the target has
10235 already adjusted the PC. Add comments.
10236 (handle_signal_stop): If nothing explains a signal, and the target
10237 tells us the stop was caused by a software breakpoint, check if
10238 there's a breakpoint instruction in the memory. If so, adjust the
10239 PC before presenting the stop to the user. Otherwise, ignore the
10240 trap. If nothing explains a signal, and the target tells us the
10241 stop was caused by a hardware breakpoint, ignore the trap.
10242 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
10243 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
10244 to_supports_stopped_by_hw_breakpoint>: New fields.
10245 (target_stopped_by_sw_breakpoint)
10246 (target_supports_stopped_by_sw_breakpoint)
10247 (target_stopped_by_hw_breakpoint)
10248 (target_supports_stopped_by_hw_breakpoint): Define.
10249 * target-delegates.c: Regenerate.
10250
10251 2015-03-04 Pedro Alves <palves@redhat.com>
10252
10253 * infrun.c (follow_fork_inferior): Use the whole of the
10254 inferior_ptid and pending_follow.related_pid ptids instead of
10255 building ptids from the process components. Adjust verbose output
10256 to use target_pid_to_str.
10257 * linux-nat.c (linux_child_follow_fork): Use the whole of the
10258 inferior_ptid and pending_follow.related_pid ptids instead of
10259 building ptids from the process components.
10260
10261 2015-03-04 Mark Kettenis <kettenis@gnu.org>
10262
10263 * inf-ptrace.c [PT_GET_PROCESS_STATE]
10264 (inf_ptrace_insert_fork_catchpoint): New function.
10265 (inf_ptrace_remove_fork_catchpoint): New function.
10266 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
10267
10268 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
10269
10270 * s390-linux-tdep.c (s390_register_name): Return empty string
10271 instead of NULL for registers that shouldn't be visible.
10272
10273 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
10274
10275 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
10276 XML file for 64-bit targets.
10277
10278 2015-03-03 Simon Marchi <simon.marchi@ericsson.com>
10279
10280 * target.h (find_default_create_inferior): Remove declaration.
10281 (find_default_attach): Likewise.
10282
10283 2015-03-03 Pedro Alves <palves@redhat.com>
10284
10285 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
10286 Use ptid_get_pid to get the overall process id when resuming all
10287 threads.
10288
10289 2015-03-03 Pedro Alves <palves@redhat.com>
10290
10291 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
10292 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
10293 * inf-ptrace.c (get_ptrace_pid): New function.
10294 (inf_ptrace_resume): Use it.
10295 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
10296 to the lower layer.
10297
10298 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10299
10300 * nat/linux-btrace.c: Include sys/utsname.h.
10301 (linux_determine_kernel_ptr_bits): New.
10302 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
10303 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
10304 ptr_bits.
10305
10306 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10307
10308 * btrace.c (ftrace_update_function): Treat return as tailcall for
10309 "_dl_runtime_resolve".
10310
10311 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10312
10313 * btrace.h (btrace_function) <lbegin, lend>: Remove.
10314 * btrace.c (ftrace_debug): Do not print the line range.
10315 (ftrace_skip_file, ftrace_update_lines): Remove.
10316 (ftrace_new_function): Remove lbegin and lend initialization.
10317 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
10318 * record-btrace.c (btrace_compute_src_line_range): New.
10319 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
10320
10321 2015-03-02 Pedro Alves <palves@redhat.com>
10322
10323 * infrun.c (follow_exec): Delete all threads of the process except
10324 the event thread. Extended comments.
10325
10326 2015-03-02 Joel Brobecker <brobecker@adacore.com>
10327
10328 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
10329
10330 2015-03-02 Joel Brobecker <brobecker@adacore.com>
10331
10332 * utils.h: Remove <stdbool.h> #include.
10333 (producer_is_gcc): Change return type to "int".
10334 * utils.c (producer_is_gcc): Change return type to int.
10335 Return 1 instead of true, and 0 instead of false.
10336 Adjust function documentation accordingly.
10337
10338 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
10339
10340 * s390-linux-nat.c (have_regset_vxrs): New static variable.
10341 (s390_linux_fetch_inferior_registers): Handle vector registers, if
10342 present.
10343 (s390_linux_store_inferior_registers): Likewise.
10344 (s390_get_hwcap): Remove function. Embed its logic...
10345 (s390_read_description): ...here. Yield a target description with
10346 vector registers if applicable.
10347 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
10348 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
10349 "features/s390x-tevx-linux64.c".
10350 (struct gdbarch_tdep) <v0_full_regnum>: New field.
10351 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
10352 for "GNU/Linux-specific registers".
10353 (s390_dwarf_reg_r0l): New enum value.
10354 (s390_dwarf_reg_to_regnum): Support vector registers.
10355 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
10356 of GPR lower halves.
10357 (regnum_is_vxr_full): New function.
10358 (s390_register_name): New function.
10359 (s390_pseudo_register_name): Handle v0-v15, which are composed of
10360 f0-f15 and v0l-v15l.
10361 (s390_pseudo_register_type): Likewise.
10362 (s390_pseudo_register_read): Likewise.
10363 (s390_pseudo_register_write): Likewise.
10364 (s390_value_from_register): Account for the fact that values are
10365 placed left-justified in vector registers.
10366 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
10367 the vector reggroup and omit them from the general reggroup.
10368 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
10369 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
10370 (s390_iterate_over_regset_sections): Add iterations for the two
10371 new vector regsets.
10372 (s390_core_read_description): Yield a target description with
10373 vector registers if applicable.
10374 (s390_gdbarch_init): Handle target descriptions with vector
10375 registers. Add "register_name" gdbarch method.
10376 (_initialize_s390_tdep): Call new tdesc initialization functions.
10377 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
10378 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
10379 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
10380 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
10381 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
10382 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
10383 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
10384 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
10385 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
10386 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
10387 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
10388 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
10389 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
10390 (S390_NUM_REGS): Adjust value.
10391 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
10392 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
10393 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
10394 * NEWS: Announce S/390 vector register support.
10395
10396 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
10397
10398 * features/s390-tevx-linux64.xml: New file.
10399 * features/s390-vx-linux64.xml: New file.
10400 * features/s390-vx.xml: New file.
10401 * features/s390x-tevx-linux64.xml: New file.
10402 * features/s390x-vx-linux64.xml: New file.
10403 * features/Makefile (WHICH): Add s390-vx-linux64,
10404 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
10405 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
10406 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
10407 macros.
10408 * features/s390-tevx-linux64.c: New generated file.
10409 * features/s390-vx-linux64.c: Likewise.
10410 * features/s390x-tevx-linux64.c: Likewise.
10411 * features/s390x-vx-linux64.c: Likewise.
10412 * regformats/s390-tevx-linux64.dat: Likewise.
10413 * regformats/s390-vx-linux64.dat: Likewise.
10414 * regformats/s390x-tevx-linux64.dat: Likewise.
10415 * regformats/s390x-vx-linux64.dat: Likewise.
10416
10417 2015-02-28 Doug Evans <xdje42@gmail.com>
10418
10419 * symtab.h (struct symtab) <next>: Fix comment.
10420
10421 2015-02-27 Simon Marchi <simon.marchi@ericsson.com>
10422
10423 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
10424 python_GdbMethods.
10425
10426 2015-02-27 Pedro Alves <palves@redhat.com>
10427
10428 * dtrace-probe.c (dtrace_probe_ops): Make extern.
10429
10430 2015-02-27 Pedro Alves <palves@redhat.com>
10431
10432 * common/common-exceptions.h (exception_none): Declare.
10433 * common/common-exceptions.c (exception_none): Moved from
10434 exceptions.c.
10435 (exceptions_state_mc_init): Use exception_none.
10436 * exceptions.c (exception_none): Move to
10437 common/common-exceptions.c.
10438 * exceptions.h (exception_none): Move to
10439 common/common-exceptions.h.
10440
10441 2015-02-27 Pedro Alves <palves@redhat.com>
10442
10443 * main.c (catch_command_errors, catch_command_errors_const):
10444 Remove 'mask' argument. Adjust.
10445 (captured_main): Adjust callers.
10446
10447 2015-02-27 Pedro Alves <palves@redhat.com>
10448
10449 * python/python-internal.h: Include "extension-priv.h".
10450
10451 2015-02-27 Pedro Alves <palves@redhat.com>
10452
10453 * breakpoint.h (enum print_stop_action): Move further up in the
10454 file.
10455
10456 2015-02-27 Pedro Alves <palves@redhat.com>
10457
10458 * gdbarch.sh: Include regcache.h.
10459 * gdbarch.h: Regenerate.
10460
10461 2015-02-27 Pedro Alves <palves@redhat.com>
10462
10463 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
10464 Remove duplicate const.
10465 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
10466 duplicate const.
10467
10468 2015-02-27 Pedro Alves <palves@redhat.com>
10469
10470 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
10471 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
10472 * features/feature_to_c.sh: Tag the generated xml_builtin array
10473 with extern const in C++ mode.
10474
10475 2015-02-27 Tom Tromey <tromey@redhat.com>
10476
10477 * minidebug.c (struct lzma_stream): Rename to ...
10478 (struct gdb_lzma_stream): ... this.
10479 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
10480
10481 2015-02-27 Pedro Alves <palves@redhat.com>
10482
10483 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
10484 function.
10485 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
10486 (mi_cmd_stack_list_variables): Use it.
10487
10488 2015-02-27 Pedro Alves <palves@redhat.com>
10489
10490 * x86-linux-nat.c (u_debugreg_offset): New function.
10491 (x86_linux_dr_get, x86_linux_dr_set): Use it.
10492
10493 2015-02-27 Pedro Alves <palves@redhat.com>
10494
10495 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
10496 declaration.
10497 Include break-common.h.
10498
10499 2015-02-27 Tom Tromey <tromey@redhat.com>
10500 Pedro Alves <palves@redhat.com>
10501
10502 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
10503 local used to iterate over enums.
10504 * completer.c (signal_completer): Likewise.
10505 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
10506 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
10507 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
10508 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
10509 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
10510 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
10511 * tui-wingeneral.c (tui_refresh_all): Likewise.
10512
10513 2015-02-27 Pedro Alves <palves@redhat.com>
10514
10515 * target.h: Include "infrun.h".
10516
10517 2015-02-27 Pedro Alves <palves@redhat.com>
10518
10519 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
10520
10521 2015-02-27 Pedro Alves <palves@redhat.com>
10522
10523 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
10524 (IPA_SYM): Use it.
10525 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
10526
10527 2015-02-27 Pedro Alves <palves@redhat.com>
10528
10529 * cli-out.c (_rl_erase_entire_line): Move declaration out of
10530 cli_mld_erase_entire_line, and make it extern "C".
10531 * common/common-defs.h (EXTERN_C): New.
10532 * completer.c (_rl_completion_prefix_display_length)
10533 (_rl_print_completions_horizontally, QSFUNC): Move declarations
10534 out of gdb_display_match_list_1.
10535 (_rl_qsort_string_compare): Move declaration out of
10536 gdb_display_match_list_1, and make it extern "C".
10537 * defs.h (re_comp): Use EXTERN_C.
10538 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
10539 and make it extern "C".
10540 (monstartup): Move declaration out of maintenance_set_profile_cmd,
10541 and make it extern "C".
10542 (main): Move declaration out of maintenance_set_profile_cmd.
10543 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
10544 EXTERN_C.
10545
10546 2015-02-27 Pedro Alves <palves@redhat.com>
10547
10548 * python/python.c (GdbMethods): Rename to ...
10549 (python_GdbMethods): ... this and make extern.
10550 (GdbModuleDef): Rename to ...
10551 (python_GdbModuleDef): ... this and make extern.
10552
10553 2015-02-27 Pedro Alves <palves@redhat.com>
10554
10555 * record-btrace.c (set_record_btrace_cmdlist)
10556 (show_record_btrace_cmdlist): Remove redefinitions.
10557
10558 2015-02-27 Tom Tromey <tromey@redhat.com>
10559 Pedro Alves <palves@redhat.com>
10560
10561 * dwarf2-frame.c (enum cfa_how_kind, struct
10562 dwarf2_frame_state_reg_info): Move out of struct
10563 dwarf2_frame_state.
10564 * dwarf2read.c (struct tu_stats): Move out of struct
10565 dwarf2_per_objfile.
10566 (struct file_entry): Move out of struct line_header.
10567 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
10568 typedef_field_list): Move out of struct field_info.
10569 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
10570 Move out of struct dynamic_prop.
10571 (union type_owner, union field_location, struct field, struct
10572 range_bounds, union type_specific): Move out of struct main_type.
10573 (struct fn_fieldlist, struct fn_field, struct typedef_field)
10574 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
10575 (struct call_site_target, union call_site_parameter_u, struct
10576 call_site_parameter): Move out of struct call_site.
10577 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
10578 m32c_prologue.
10579 (enum srcdest_kind): Move out of struct srcdest.
10580 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
10581 * prologue-value.h (enum prologue_value_kind): Move out of struct
10582 prologue_value.
10583 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
10584 gdbarch_tdep.
10585 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
10586 out of struct field_info.
10587 * symfile.h (struct other_sections): Move out of struct
10588 section_addr_info.
10589 * symtab.c (struct symbol_cache_slot): Move out struct
10590 block_symbol_cache.
10591 * target-descriptions.c (enum tdesc_type_kind): Move out of
10592 typedef struct tdesc_type.
10593 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
10594 struct tui_line_or_address.
10595 * value.c (enum internalvar_kind, union internalvar_data): Move
10596 out of struct internalvar.
10597 * xtensa-tdep.h (struct ctype_cache): Move out of struct
10598 gdbarch_tdep.
10599
10600 2015-02-27 Tom Tromey <tromey@redhat.com>
10601 Pedro Alves <palves@redhat.com>
10602
10603 Rename symbols whose names are reserved C++ keywords throughout.
10604
10605 2015-02-27 Pedro Alves <palves@redhat.com>
10606
10607 * Makefile.in (COMPILER): New, get it from autoconf.
10608 (COMPILE.pre, CC_LD): Use COMPILER.
10609 (CXX): Get from autoconf instead.
10610 (CXX_FOR_TARGET): Default to g++ instead of gcc.
10611 * acinclude.m4: Include build-with-cxx.m4.
10612 * build-with-cxx.m4: New file.
10613 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
10614 Disable -Werror by default if building in C++ mode.
10615 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
10616 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
10617 Run supported-warning-flags tests with the C++ compiler.
10618 Save/restore CXXFLAGS too.
10619 * configure: Regenerate.
10620
10621 2015-02-27 Pedro Alves <palves@redhat.com>
10622
10623 * libiberty.m4: New file.
10624 * acinclude.m4: Include libiberty.m4.
10625 * configure.ac: Call libiberty_INIT.
10626 * config.in, configure: Regenerate.
10627
10628 2015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
10629
10630 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
10631 31-bit targets, but 64-bit targets as well.
10632 (s390_gnu_triplet_regexp): New function.
10633 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
10634 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
10635 method.
10636
10637 2015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
10638
10639 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
10640 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
10641 from CONTEXT_DEBUGGER.
10642
10643 2015-02-26 Doug Evans <dje@google.com>
10644
10645 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
10646 CHECK_TYPEDEF.
10647 (set_type_vptr_fieldno): Ditto.
10648 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
10649 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
10650
10651 2015-02-26 Pedro Alves <palves@redhat.com>
10652
10653 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
10654 * complaints.c (vcomplaint): Pass argument FMT directly to
10655 printf-like functions instead of complaint->fmt.
10656 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
10657 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
10658 * compile/compile-loc2c.c (pushf, unary, binary): Add
10659 ATTRIBUTE_PRINTF.
10660 (do_compile_dwarf_expr_to_c): Pass string literal as format string
10661 to pushf.
10662 (BINARY): Pass string literal as format string to 'binary'.
10663 * compile/compile-object-load.c (link_callbacks_einfo): Add
10664 ATTRIBUTE_PRINTF.
10665 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
10666
10667 2015-02-26 Pedro Alves <palves@redhat.com>
10668
10669 * windows-termcap.c: Rename to ...
10670 * stub-termcap.c: ... this. Adjust header line.
10671 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
10672 windows-termcap.c.
10673 * configure: Regenerate.
10674 * configure.ac: Refer to stub-termcap.o instead of
10675 windows-termcap.o.
10676 * gdb_curses.h: Mention stub-termcap.c instead of
10677 windows-termcap.c.
10678
10679 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10680
10681 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
10682 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
10683
10684 2015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
10685
10686 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
10687
10688 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10689
10690 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
10691 bfd_canonicalize_symtab.
10692
10693 2015-02-25 John Baldwin <jhb@FreeBSD.org>
10694
10695 * amd64fbsd-nat.c: Include sys/user.h.
10696 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10697 instead of KERN_PS_STRINGS to locate the signal trampoline.
10698 * i386fbsd-nat.c: Include sys/user.h.
10699 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10700 instead of KERN_PS_STRINGS to locate the signal trampoline.
10701 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
10702 (amd64fbsd_sigtramp_p): New.
10703 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
10704 longer set default values.
10705 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
10706 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
10707 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
10708 (i386fbsd_freebsd4_sigtramp_start)
10709 (i386fbsd_freebsd4_sigtramp_middle)
10710 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
10711 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
10712 (i386fbsd_sigtramp_p): New.
10713 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
10714 longer set default values.
10715 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
10716
10717 2015-02-25 John Baldwin <jhb@freebsd.org>
10718
10719 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
10720 get_frame_register instead of frame_unwind_register_unsigned.
10721
10722 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10723
10724 PR build/18033
10725 * compile/compile-c-support.c (c_compute_program): Change // comment.
10726 * compile/compile-object-load.c (setup_sections): Change // comment.
10727
10728 2015-02-26 Joel Brobecker <brobecker@adacore.com>
10729
10730 PR build/18033:
10731 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
10732
10733 2015-02-23 Pedro Alves <palves@redhat.com>
10734
10735 * remote.c (skip_to_semicolon): New function.
10736 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
10737 special case the stop reasons that look like hex numbers
10738 upfront. Instead handle real register numbers after matching
10739 all the known stop reasons.
10740
10741 2015-02-21 Doug Evans <dje@google.com>
10742
10743 PR c++/17976, symtab/17821
10744 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
10745 is_in_anonymous. All callers updated.
10746 (find_symbol_in_baseclass): Ditto.
10747 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
10748 for symbols in an anonymous namespace.
10749 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
10750 DW_AT_name directly.
10751 (dwarf2_name): Convert missing namespace name to
10752 CP_ANONYMOUS_NAMESPACE_STR.
10753
10754 2015-02-20 Pedro Alves <palves@redhat.com>
10755
10756 * linux-nat.c (linux_handle_extended_wait): Call
10757 thread_db_notice_clone whenever a new clone LWP is detected.
10758 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
10759 functions.
10760 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
10761 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
10762 (linux_unstop_all_lwps): Declare.
10763 * linux-thread-db.c (struct thread_get_info_inout): Delete.
10764 (thread_get_info_callback): Delete.
10765 (thread_from_lwp): Use td_thr_get_info and record_thread.
10766 (thread_db_attach_lwp): Delete.
10767 (thread_db_notice_clone): New function.
10768 (try_thread_db_load_1): If /proc is mounted and shows the
10769 process'es task list, walk over all LWPs and call thread_from_lwp
10770 instead of relying on td_ta_thr_iter.
10771 (attach_thread): Don't call check_thread_signals here. Split the
10772 tail part of the function (which adds the thread to the core GDB
10773 thread list) to ...
10774 (record_thread): ... this function. Call check_thread_signals
10775 here.
10776 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
10777 call thread_from_lwp.
10778 (thread_db_update_thread_list): Rename to ...
10779 (thread_db_update_thread_list_org): ... this.
10780 (thread_db_update_thread_list): New function.
10781 (thread_db_find_thread_from_tid): Delete.
10782 (thread_db_get_ada_task_ptid): Simplify.
10783 * nat/linux-procfs.c: Include <sys/stat.h>.
10784 (linux_proc_task_list_dir_exists): New function.
10785 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
10786
10787 2015-02-20 Pedro Alves <palves@redhat.com>
10788
10789 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
10790 main LWP. Handle the case of waitpid returning 0 if we're already
10791 attached to the LWP. Don't set the LWP's last_resume_kind to
10792 resume_stop if we already knew about the LWP.
10793 (linux_nat_filter_event): Add debug logs.
10794
10795 2015-02-20 Pedro Alves <palves@redhat.com>
10796
10797 * target.h (forward_target_decr_pc_after_break): Delete
10798 declaration.
10799
10800 2015-02-20 Pedro Alves <palves@redhat.com>
10801
10802 PR threads/18006
10803 * linux-thread-db.c (thread_get_info_callback): Return early if
10804 the thread's lwp id is -1.
10805
10806 2015-02-20 Joel Brobecker <brobecker@adacore.com>
10807
10808 GDB 7.9 released.
10809
10810 2015-02-19 Steve Ellcey <sellcey@imgtec.com>
10811
10812 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
10813 (dtrace_get_probes) Change type of variable 'dof'.
10814
10815 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
10816
10817 PR breakpoints/16812
10818 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
10819 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
10820 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
10821
10822 2015-02-19 David Taylor <dtaylor@emc.com>
10823
10824 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
10825
10826 2015-02-18 Patrick Palka <patrick@parcs.ath.cx>
10827
10828 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
10829 function.
10830 (tui_putc): Don't call tui_handle_resize_during_io.
10831 (tui_getc): Likewise.
10832 (tui_mld_getc): Likewise.
10833 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
10834 (tui_sigwinch_token): New static variable.
10835 (tui_initialize_win): Adjust documentation. Set
10836 tui_sigwinch_token.
10837 (tui_async_resize_screen): New asynchronous callback.
10838 (tui_sigwinch_handler): Adjust documentation. Asynchronously
10839 invoke tui_async_resize_screen.
10840
10841 2015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
10842
10843 * configure: Regenerated.
10844 * configure.ac: Use GDB_AC_TRANSFORM.
10845 * Makefile.in (aclocal_m4_deps): Added transform.m4.
10846 * acinclude.m4: sinclude transform.m4.
10847 * transform.m4: New file.
10848 (GDB_AC_TRANSFORM): New macro.
10849
10850 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10851
10852 * NEWS: Announce the support for DTrace SDT probes.
10853
10854 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10855
10856 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
10857 (amd64_dtrace_parse_probe_argument): New function.
10858 (amd64_dtrace_probe_is_enabled): Likewise.
10859 (amd64_dtrace_enable_probe): Likewise.
10860 (amd64_dtrace_disable_probe): Likewise.
10861 (amd64_linux_init_abi): Register the
10862 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
10863 `gdbarch_dtrace_disable_probe' and
10864 `gdbarch_dtrace_probe_is_enabled' hooks.
10865 (amd64_dtrace_disabled_probe_sequence_1): New constant.
10866 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
10867 (amd64_dtrace_enable_probe_sequence): Likewise.
10868 (amd64_dtrace_disable_probe_sequence): Likewise.
10869
10870 2015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10871
10872 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
10873 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
10874 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
10875 handle ELF files.
10876 * Makefile.in (SFILES): dtrace-probe.c added.
10877 * configure: Regenerate.
10878 * dtrace-probe.c: New file.
10879 (SHT_SUNW_dof): New constant.
10880 (dtrace_probe_type): New enum.
10881 (dtrace_probe_arg): New struct.
10882 (dtrace_probe_arg_s): New typedef.
10883 (struct dtrace_probe_enabler): New struct.
10884 (dtrace_probe_enabler_s): New typedef.
10885 (dtrace_probe): New struct.
10886 (dtrace_probe_is_linespec): New function.
10887 (dtrace_dof_sect_type): New enum.
10888 (dtrace_dof_dofh_ident): Likewise.
10889 (dtrace_dof_encoding): Likewise.
10890 (DTRACE_DOF_ENCODE_LSB): Likewise.
10891 (DTRACE_DOF_ENCODE_MSB): Likewise.
10892 (dtrace_dof_hdr): New struct.
10893 (dtrace_dof_sect): Likewise.
10894 (dtrace_dof_provider): Likewise.
10895 (dtrace_dof_probe): Likewise.
10896 (DOF_UINT): New macro.
10897 (DTRACE_DOF_PTR): Likewise.
10898 (DTRACE_DOF_SECT): Likewise.
10899 (dtrace_process_dof_probe): New function.
10900 (dtrace_process_dof): Likewise.
10901 (dtrace_build_arg_exprs): Likewise.
10902 (dtrace_get_arg): Likewise.
10903 (dtrace_get_probes): Likewise.
10904 (dtrace_get_probe_argument_count): Likewise.
10905 (dtrace_can_evaluate_probe_arguments): Likewise.
10906 (dtrace_evaluate_probe_argument): Likewise.
10907 (dtrace_compile_to_ax): Likewise.
10908 (dtrace_probe_destroy): Likewise.
10909 (dtrace_gen_info_probes_table_header): Likewise.
10910 (dtrace_gen_info_probes_table_values): Likewise.
10911 (dtrace_probe_is_enabled): Likewise.
10912 (dtrace_probe_ops): New variable.
10913 (info_probes_dtrace_command): New function.
10914 (_initialize_dtrace_probe): Likewise.
10915 (dtrace_type_name): Likewise.
10916
10917 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10918
10919 * gdbarch.sh (dtrace_parse_probe_argument): New.
10920 (dtrace_probe_is_enabled): Likewise.
10921 (dtrace_enable_probe): Likewise.
10922 (dtrace_disable_probe): Likewise.
10923 * gdbarch.c: Regenerate.
10924 * gdbarch.h: Regenerate.
10925
10926 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10927
10928 * stap-probe.c (stap_probe_ops): Add NULLs in the static
10929 stap_probe_ops for `enable_probe' and `disable_probe'.
10930 * probe.c (enable_probes_command): New function.
10931 (disable_probes_command): Likewise.
10932 (_initialize_probe): Define the cli commands `enable probe' and
10933 `disable probe'.
10934 (parse_probe_linespec): New function.
10935 (info_probes_for_ops): Use parse_probe_linespec.
10936 * probe.h (probe_ops): New hooks `enable_probe' and
10937 `disable_probe'.
10938
10939 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10940
10941 * probe.c (compute_probe_arg): Moved from stap-probe.c
10942 (compile_probe_arg): Likewise.
10943 (probe_funcs): Likewise.
10944 * stap-probe.c (compute_probe_arg): Moved to probe.c.
10945 (compile_probe_arg): Likewise.
10946 (probe_funcs): Likewise.
10947
10948 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10949
10950 * probe.c (print_ui_out_not_applicables): New function.
10951 (exists_probe_with_pops): Likewise.
10952 (info_probes_for_ops): Do not include column headers for probe
10953 types for which no probe has been actually found on any object.
10954 Also invoke `print_ui_out_not_applicables' in order to match the
10955 column rows with the header when probes of several types are
10956 listed.
10957 Print the "Type" column.
10958 * probe.h (probe_ops): Added a new probe operation `type_name'.
10959 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
10960 (stap_type_name): New function.
10961
10962 2015-02-17 Patrick Palka <patrick@parcs.ath.cx>
10963
10964 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
10965 (key_is_command_char): Delete.
10966
10967 2015-02-17 Pedro Alves <palves@redhat.com>
10968
10969 * tui/tui.c (tui_enable): Resize windows before anything
10970 might show a window.
10971
10972 2015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
10973
10974 PR gdb/17984
10975 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
10976 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
10977 call.
10978 * aarch64-tdep.h (tdesc_aarch64): Declare.
10979
10980 2015-02-12 Mark Wielaard <mjw@redhat.com>
10981
10982 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
10983
10984 2015-02-13 Doug Evans <dje@google.com>
10985
10986 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
10987 anonymous_namespace to is_in_anonymous for consistency with the rest
10988 of the file.
10989 (cp_lookup_bare_symbol): Fix typo in comment.
10990 (cp_search_static_and_baseclasses): Ditto.
10991 (search_symbol_list): Use vertical space in comment better.
10992 (reset_directive_searched): Ditto. Fix typo.
10993 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
10994
10995 2015-02-13 Yao Qi <yao.qi@arm.com>
10996
10997 * MAINTAINERS: Update my email address.
10998
10999 2015-02-12 Doug Evans <dje@google.com>
11000
11001 * symtab.c (completion_list_add_name): Fix memory leak.
11002
11003 2015-02-12 Doug Evans <dje@google.com>
11004
11005 * completer.c (complete_line): Remove incorrect comment.
11006
11007 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11008
11009 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
11010 (py_print_frame): Use RETURN_MASK_ERROR.
11011
11012 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11013
11014 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
11015 function comment. Wrap all function that can throw in cleanups.
11016 (gdbpy_apply_frame_filter): Wrap all function that can throw in
11017 cleanups.
11018
11019 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11020
11021 * python/py-framefilter.c (py_print_frame): Substitute goto error.
11022 Remove the error label.
11023
11024 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11025
11026 * python/py-framefilter.c (py_print_frame): Put conditional code paths
11027 with goto first, indent the former else codepath left. Put variable
11028 'elided' to a new inner block.
11029
11030 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11031
11032 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
11033
11034 2015-02-11 Pedro Alves <palves@redhat.com>
11035
11036 * xcoffread.c (within_function): Delete.
11037
11038 2015-02-11 Tom Tromey <tromey@redhat.com>
11039 Pedro Alves <palves@redhat.com>
11040
11041 * breakpoint.c (base_breakpoint_ops): Delete.
11042 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
11043 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
11044 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
11045 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
11046 * python/py-arch.c (arch_object_type): Make extern.
11047 * python/py-block.c (block_syms_iterator_object_type): Make extern.
11048 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
11049 * python/py-cmd.c (cmdpy_object_type): Make extern.
11050 * python/py-continueevent.c (continue_event_object_type)
11051 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
11052 parameter. Update all callers.
11053 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
11054 * python/py-exitedevent.c (exited_event_object_type): Make extern.
11055 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
11056 * python/py-function.c (fnpy_object_type): Make extern.
11057 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
11058 * python/py-infevents.c (call_pre_event_object_type)
11059 (inferior_call_post_event_object_type).
11060 (memory_changed_event_object_type): Make extern.
11061 * python/py-infthread.c (thread_object_type): Make extern.
11062 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
11063 * python/py-linetable.c (linetable_entry_object_type)
11064 (linetable_object_type, ltpy_iterator_object_type): Make extern.
11065 * python/py-newobjfileevent.c (new_objfile_event_object_type)
11066 (clear_objfiles_event_object_type): Make extern.
11067 * python/py-objfile.c (objfile_object_type): Make extern.
11068 * python/py-param.c (parmpy_object_type): Make extern.
11069 * python/py-progspace.c (pspace_object_type): Make extern.
11070 * python/py-signalevent.c (signal_event_object_type): Make extern.
11071 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
11072 * python/py-type.c (type_object_type, field_object_type)
11073 (type_iterator_object_type): Make extern.
11074 * python/python.c (python_extension_script_ops)
11075 (python_extension_ops): Make extern.
11076 * stap-probe.c (stap_probe_ops): Make extern.
11077
11078 2015-02-11 Pedro Alves <pedro@codesourcery.com>
11079
11080 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
11081 because the event thread is not the current thread.
11082
11083 2015-02-11 Doug Evans <xdje42@gmail.com>
11084
11085 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
11086 been initialized yet, return NULL.
11087
11088 2015-02-11 Doug Evans <dje@google.com>
11089
11090 * symfile.h (new_symfile_objfile): Delete.
11091 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
11092 All callers updated.
11093
11094 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
11095
11096 * tui/tui-io.c (tui_handle_resize_during_io): Call
11097 tui_update_gdb_sizes() after resizing the screen.
11098 * tui/tui.c (tui_enable): Resize the terminal before
11099 calling tui_update_gdb_sizes().
11100
11101 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
11102
11103 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
11104 line before printing a newline.
11105
11106 2015-02-11 Mark Wielaard <mjw@redhat.com>
11107
11108 * utils.c (producer_is_gcc): Return true or false.
11109
11110 2015-02-10 Mark Wielaard <mjw@redhat.com>
11111
11112 * utils.h (producer_is_gcc): Change return type to bool. Add major
11113 argument.
11114 * utils.c (producer_is_gcc): Likewise.
11115 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
11116 * dwarf2read.c (check_producer): Likewise.
11117
11118 2015-02-10 Pedro Alves <palves@redhat.com>
11119
11120 * infrun.c (displaced_step_fixup): Switch to the event thread
11121 before calling gdbarch_displaced_step_fixup.
11122
11123 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11124
11125 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
11126
11127 2015-02-10 Simon Marchi <simon.marchi@ericsson.com>
11128
11129 * ada-varobj.c (ada_name_of_child): Constify parent.
11130 (ada_path_expr_of_child): Same.
11131 (ada_value_of_child): Same.
11132 (ada_type_of_child): Same.
11133 * c-varobj.c (c_is_path_expr_parent): Same.
11134 (c_describe_child): Same.
11135 (c_name_of_child): Same.
11136 (c_value_of_child): Same.
11137 (c_type_of_child): Same.
11138 (cplus_number_of_children): Same.
11139 (cplus_describe_child): Constify var.
11140 (cplus_name_of_child): Constify parent.
11141 (cplus_value_of_child): Same.
11142 (cplus_type_of_child): Same.
11143 * jv-varobj.c (java_name_of_child): Same.
11144 (java_value_of_child): Same.
11145 (java_type_of_child): Same.
11146 * varobj.c (value_of_child): Same.
11147 (varobj_default_is_path_expr_parent): Constify var, parent and return
11148 value.
11149 (varobj_get_path_expr): Constify var, modify path_expr through
11150 mutable_var.
11151 (install_new_value): Constify parent.
11152 (value_of_child): Constify parent.
11153 * varobj.h (struct varobj): Constify parent.
11154 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
11155 type_of_child.
11156 (varobj_get_path_expr): Constify var.
11157 (varobj_get_path_expr_parent): Constify var and return value.
11158
11159 2015-02-10 Luis Machado <lgustavo@codesourcery.com>
11160
11161 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
11162 (arm_prologue_this_id): Move PC and SP limit checks to
11163 arm_prologue_unwind_stop_reason.
11164 (arm_prologue_unwind) <stop_reason> : Set to
11165 arm_prologue_unwind_stop_reason.
11166
11167 2015-02-09 Mark Wielaard <mjw@redhat.com>
11168
11169 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
11170 DW_LANG_Fortran08 as language_fortran.
11171
11172 2015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
11173
11174 PR remote/17946
11175 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
11176 of pointer against char.
11177
11178 2015-02-09 Mark Wielaard <mjw@redhat.com>
11179
11180 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
11181 (c_type_print_modifier): Likewise.
11182 * dwarf2read.c (read_tag_atomic_type): New function.
11183 (read_type_die_1): Handle DW_TAG_atomic_type.
11184 * gdbtypes.c (make_atomic_type): New function.
11185 (recursive_dump_type): Handle TYPE_ATOMIC.
11186 * gdbtypes.h (enum type_flag_values): Renumber.
11187 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
11188 (TYPE_ATOMIC): New macro.
11189 (make_atomic_type): Declare.
11190
11191 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11192
11193 * btrace.c (ftrace_find_call): Skip gaps.
11194 (ftrace_new_function): Initialize level.
11195 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
11196 (ftrace_new_switch): Update
11197 level computation.
11198 (ftrace_new_gap): New.
11199 (ftrace_update_function): Create new function after gap.
11200 (btrace_compute_ftrace_bts): Create gap on error.
11201 (btrace_stitch_bts): Update parameters. Clear trace if it
11202 becomes empty.
11203 (btrace_stitch_trace): Update parameters. Update callers.
11204 (btrace_clear): Reset the number of gaps.
11205 (btrace_insn_get): Return NULL if the iterator points to a gap.
11206 (btrace_insn_number): Return zero if the iterator points to a gap.
11207 (btrace_insn_end): Allow gaps at the end.
11208 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
11209 (btrace_find_insn_by_number): Assert that the found iterator does
11210 not point to a gap.
11211 (btrace_call_next, btrace_call_prev): Assert that the last function
11212 is not a gap.
11213 * btrace.h (btrace_bts_error): New.
11214 (btrace_function): Update comment.
11215 (btrace_function) <insn, insn_offset, number>: Update comment.
11216 (btrace_function) <errcode>: New.
11217 (btrace_thread_info) <ngaps>: New.
11218 (btrace_thread_info) <replay>: Update comment.
11219 (btrace_insn_get): Update comment.
11220 * record-btrace.c (btrace_ui_out_decode_error): New.
11221 (record_btrace_info): Print number of gaps.
11222 (btrace_insn_history, btrace_call_history): Call
11223 btrace_ui_out_decode_error for gaps.
11224 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
11225
11226 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11227
11228 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
11229 * nat/linux-btrace.c: (btrace_this_cpu): New.
11230 (cpu_supports_bts): Call btrace_this_cpu.
11231 (intel_supports_bts): Add cpu parameter.
11232
11233 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11234
11235 * btrace.h (btrace_insn_class): New.
11236 (btrace_insn) <size, iclass>: New.
11237 * btrace.c (ftrace_find_call): Update parameters. Update users.
11238 Use instruction classification.
11239 (ftrace_new_return): Update parameters. Update users.
11240 (ftrace_update_function): Update parameters. Update users. Use
11241 instruction classification.
11242 (ftrace_update_insns): Update parameters. Update users.
11243 (ftrace_classify_insn): New.
11244 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
11245 TRY_CATCH around call to gdb_insn_length.
11246
11247 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11248
11249 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
11250 Update parameters. Update users.
11251
11252 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11253
11254 * btrace.c (parse_xml_btrace_conf_bts): Add size.
11255 (btrace_conf_bts_attributes): New.
11256 (btrace_conf_children): Add attributes.
11257 * common/btrace-common.h (btrace_config_bts): New.
11258 (btrace_config)<bts>: New.
11259 (btrace_config): Update comment.
11260 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
11261 Use config.
11262 * features/btrace-conf.dtd: Increment version. Add size
11263 attribute to bts element.
11264 * record-btrace.c (set_record_btrace_bts_cmdlist,
11265 show_record_btrace_bts_cmdlist): New.
11266 (record_btrace_adjust_size, record_btrace_print_bts_conf,
11267 record_btrace_print_conf, cmd_set_record_btrace_bts,
11268 cmd_show_record_btrace_bts): New.
11269 (record_btrace_info): Call record_btrace_print_conf.
11270 (_initialize_record_btrace): Add commands.
11271 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
11272 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
11273 (btrace_sync_conf): Synchronize bts size.
11274 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
11275 * NEWS: Announce new commands and new packets.
11276
11277 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11278
11279 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
11280 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
11281 (x86_linux_btrace_conf): New.
11282 (x86_linux_create_target): Initialize to_btrace_conf.
11283 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
11284 Check format. Split into this and ...
11285 (linux_enable_bts): ... this.
11286 (linux_btrace_conf): New.
11287 (perf_event_skip_record): Renamed into ...
11288 (perf_event_skip_bts_record): ... this. Updated users.
11289 (linux_disable_btrace): Split into this and ...
11290 (linux_disable_bts): ... this.
11291 (linux_read_btrace): Check format.
11292 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
11293 (linux_btrace_conf): New.
11294 (btrace_target_info)<ptid>: Moved.
11295 (btrace_target_info)<conf>: New.
11296 (btrace_target_info): Split into this and ...
11297 (btrace_tinfo_bts): ... this. Updated users.
11298 * btrace.c (btrace_enable): Update parameters.
11299 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
11300 (btrace_conf_children, btrace_conf_attributes)
11301 (btrace_conf_elements): New.
11302 * btrace.h (btrace_enable): Update parameters.
11303 (btrace_conf, parse_xml_btrace_conf): New.
11304 * common/btrace-common.h (btrace_config): New.
11305 * feature/btrace-conf.dtd: New.
11306 * record-btrace.c (record_btrace_conf): New.
11307 (record_btrace_cmdlist): New.
11308 (record_btrace_enable_warn, record_btrace_open): Pass
11309 &record_btrace_conf.
11310 (record_btrace_info): Print recording format.
11311 (cmd_record_btrace_bts_start): New.
11312 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
11313 (_initialize_record_btrace): Add "record btrace bts" subcommand.
11314 Add "record bts" alias command.
11315 * remote.c (remote_state)<btrace_config>: New.
11316 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
11317 (remote_protocol_features): Add qXfer:btrace-conf:read.
11318 (remote_open_1): Call remote_btrace_reset.
11319 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
11320 (btrace_target_info)<conf>: New.
11321 (btrace_sync_conf, btrace_read_config): New.
11322 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
11323 btrace_read_conf.
11324 (remote_btrace_conf): New.
11325 (init_remote_ops): Initialize to_btrace_conf.
11326 (_initialize_remote): Add qXfer:btrace-conf packet.
11327 * target.c (target_enable_btrace): Update parameters.
11328 (target_btrace_conf): New.
11329 * target.h (target_enable_btrace): Update parameters.
11330 (target_btrace_conf): New.
11331 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
11332 (target_ops)<to_enable_btrace>: Update parameters and comment.
11333 (target_ops)<to_btrace_conf>: New.
11334 * target-delegates: Regenerate.
11335 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
11336 (target_debug_print_const_struct_btrace_target_info_p): New.
11337 * NEWS: Announce new command and new packet.
11338
11339 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11340
11341 * nat/linux-btrace.h (perf_event_buffer): New.
11342 (btrace_target_info) <buffer, size, data_head>: Replace with ...
11343 <bts>: ... this.
11344 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
11345 (perf_event_buffer_size, perf_event_buffer_begin)
11346 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
11347 Updated users.
11348 (perf_event_new_data): New.
11349
11350 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11351
11352 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
11353 * record-btrace.c (record_btrace_open): Remove call to
11354 target_supports_btrace.
11355 * remote.c (remote_supports_btrace): Update parameters.
11356 * target.c (target_supports_btrace): Update parameters.
11357 * target.h (to_supports_btrace, target_supports_btrace): Update
11358 parameters.
11359 * target-delegates.c: Regenerate.
11360 * target-debug.h (target_debug_print_enum_btrace_format): New.
11361 * nat/linux-btrace.c
11362 (kernel_supports_btrace): Rename into ...
11363 (kernel_supports_bts): ... this. Update users. Update warning text.
11364 (intel_supports_btrace): Rename into ...
11365 (intel_supports_bts): ... this. Update users.
11366 (cpu_supports_btrace): Rename into ...
11367 (cpu_supports_bts): ... this. Update users.
11368 (linux_supports_btrace): Update parameters. Split into this and ...
11369 (linux_supports_bts): ... this.
11370 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
11371
11372 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11373
11374 * Makefile.in (SFILES): Add common/btrace-common.c.
11375 (COMMON_OBS): Add common/btrace-common.o.
11376 (btrace-common.o): Add build rules.
11377 * btrace.c (parse_xml_btrace): Update parameters.
11378 (parse_xml_btrace_block): Set format field.
11379 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
11380 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
11381 (btrace_compute_ftrace): Split into this and...
11382 (btrace_compute_ftrace_bts): ...this.
11383 (btrace_stitch_trace): Split into this and...
11384 (btrace_stitch_bts): ...this.
11385 * btrace.h (parse_xml_btrace): Update parameters.
11386 (make_cleanup_btrace_data): New.
11387 * common/btrace-common.c: New.
11388 * common/btrace-common.h: Include common-defs.h.
11389 (btrace_block_s): Update comment.
11390 (btrace_format): New.
11391 (btrace_format_string): New.
11392 (btrace_data_bts): New.
11393 (btrace_data): New.
11394 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
11395 * remote.c (remote_read_btrace): Update parameters.
11396 * target.c (target_read_btrace): Update parameters.
11397 * target.h (target_read_btrace): Update parameters.
11398 (target_ops)<to_read_btrace>: Update parameters.
11399 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
11400 * target-delegates.c: Regenerate.
11401 * target-debug (target_debug_print_struct_btrace_data_p): New.
11402 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
11403 (linux_read_bts): ...this.
11404 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
11405
11406 2015-02-06 Doug Evans <dje@google.com>
11407
11408 * remote-m32r-sdi.c: Include symfile.h.
11409
11410 2015-02-06 Doug Evans <dje@google.com>
11411
11412 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
11413 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
11414 to here.
11415
11416 2015-02-06 Pedro Alves <palves@redhat.com>
11417
11418 * linux-thread-db.c (find_new_threads_callback): Add debug output.
11419
11420 2015-02-06 Simon Marchi <simon.marchi@ericsson.com>
11421
11422 PR gdb/15678
11423 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
11424 (enable_count_command): Check args for NULL value.
11425
11426 2015-02-05 Doug Evans <xdje42@gmail.com>
11427
11428 * guile/scm-frame.c: Fix spelling errors in a comment.
11429
11430 2015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11431
11432 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
11433 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
11434 return type.
11435
11436 2015-02-04 Pedro Alves <palves@redhat.com>
11437
11438 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
11439 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
11440 returns true.
11441 (resume_stopped_resumed_lwps): Don't check whether the thread is
11442 marked as executing.
11443 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
11444
11445 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11446
11447 * regset.h (struct regset): Add flags field.
11448 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
11449 * corelow.c (get_core_register_section): Add warning if the size
11450 exceeds the requested size and the regset does not have the
11451 REGSET_VARIABLE_SIZE flag set.
11452 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
11453 flag.
11454 * armbsd-tdep.c (armbsd_gregset): Likewise.
11455 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
11456 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
11457 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
11458 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
11459
11460 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11461
11462 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
11463 For ".reg-xstate", explicitly specify the requested section size
11464 via X86_XSTATE_SIZE instead of just 0 on input and
11465 X86_XSTATE_MAX_SIZE on output.
11466 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
11467 Likewise.
11468
11469 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11470
11471 PR corefiles/17808:
11472 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
11473 function type, particularly its SIZE parameter.
11474 * gdbarch.h: Regenerate.
11475 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
11476 actual against required size using ">=" instead of "==".
11477 (amd64_collect_fpregset): Likewise.
11478 * i386-tdep.c (i386_supply_gregset): Likewise.
11479 (i386_collect_gregset): Likewise.
11480 (i386_supply_fpregset): Likewise.
11481 (i386_collect_fpregset): Likewise.
11482 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
11483 (mips_fill_gregset_wrapper): Likewise.
11484 (mips_supply_fpregset_wrapper): Likewise.
11485 (mips_fill_fpregset_wrapper): Likewise.
11486 (mips64_supply_gregset_wrapper): Likewise.
11487 (mips64_fill_gregset_wrapper): Likewise.
11488 (mips64_supply_fpregset_wrapper): Likewise.
11489 (mips64_fill_fpregset_wrapper): Likewise.
11490 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
11491 (am33_supply_fpregset_method): Likewise.
11492 (am33_collect_gregset_method): Likewise.
11493 (am33_collect_fpregset_method): Likewise.
11494
11495 2015-02-04 Doug Evans <dje@google.com>
11496 Pedro Alves <palves@redhat.com>
11497 Eli Zaretskii <eliz@gnu.org>
11498
11499 PR tui/17810
11500 * tui/tui-command.c (tui_refresh_cmd_win): New function.
11501 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
11502 * tui/tui-file.c: #include tui/tui-command.h.
11503 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
11504 (tui_file_flush): Refresh command window if stream is gdb_stdout.
11505 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
11506
11507 2015-02-04 Pedro Alves <palves@redhat.com>
11508
11509 Fix build breakage.
11510 * event-loop.c (gdb_do_one_event): Add default switch case.
11511
11512 2015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11513
11514 Filter out inferior gcc option -fpreprocessed.
11515 * compile/compile.c (filter_args): New function.
11516 (get_args): Use it.
11517
11518 2015-02-03 Pedro Alves <palves@redhat.com>
11519
11520 * event-loop.c: Don't declare nor define a queue type for
11521 gdb_event_p.
11522 (event_queue): Delete.
11523 (create_event, create_file_event, gdb_event_xfree)
11524 (initialize_event_loop, process_event): Delete.
11525 (gdb_do_one_event): Return as soon as one event is handled.
11526 (handle_file_event): Change prototype. Used the passed in
11527 file_handler pointer and ready_mask instead of looping over all
11528 file handlers.
11529 (gdb_wait_for_event): Update the poll/select timeouts before
11530 blocking. Run event handlers directly instead of queueing events.
11531 Return as soon as one event is handled.
11532 (struct async_event_handler_data): Delete.
11533 (invoke_async_event_handler): Delete.
11534 (check_async_event_handlers): Change return type to int. Run
11535 event handlers directly instead of queueing events. Return as
11536 soon as one event is handled.
11537 (handle_timer_event): Delete.
11538 (update_wait_timeout): New function, factored out from
11539 poll_timers.
11540 (poll_timers): Reimplement.
11541 * event-loop.h (initialize_event_loop): Delete declaration.
11542 * top.c (gdb_init): Don't call initialize_event_loop.
11543
11544 2015-02-03 Pedro Alves <palves@redhat.com>
11545
11546 * event-loop.c (clear_async_event_handler): New function.
11547 * event-loop.h (clear_async_event_handler): New declaration.
11548 * record-btrace.c (record_btrace_async): New function.
11549 (init_record_btrace_ops): Install record_btrace_async.
11550 * record-full.c (record_full_async): New function.
11551 (record_full_resume): Don't mark the async event source here.
11552 (init_record_full_ops): Install record_full_async.
11553 (record_full_core_resume): Don't mark the async event source here.
11554 (init_record_full_core_ops): Install record_full_async.
11555 * remote.c (remote_async): Mark and clear the async stop reply
11556 queue event-loop token as appropriate.
11557
11558 2015-02-03 Pedro Alves <palves@redhat.com>
11559
11560 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
11561 target_is_async_p instead of target_can_async.
11562 (linux_nat_wait): Use target_is_async_p instead of
11563 target_can_async. Don't enable async here.
11564 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
11565 target_is_async_p instead of target_can_async.
11566
11567 2015-02-02 Simon Marchi <simon.marchi@ericsson.com>
11568
11569 * varobj.h (lang_varobj_ops): Mention which return values need
11570 to be freed.
11571
11572 2015-02-02 Joel Brobecker <brobecker@adacore.com>
11573
11574 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
11575
11576 2015-02-02 Joel Brobecker <brobecker@adacore.com>
11577
11578 PR gdb/17856:
11579 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
11580 results found in the cache.
11581
11582 2015-02-02 Joel Brobecker <brobecker@adacore.com>
11583
11584 PR gdb/17854:
11585 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
11586 when allocating a new one.
11587
11588 2015-02-01 Tom Tromey <tom@tromey.com>
11589
11590 * MAINTAINERS: Remove myself.
11591
11592 2015-01-31 Doug Evans <xdje42@gmail.com>
11593
11594 * dwarf2read.c (process_structure_scope): Update setting of
11595 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
11596 * gdbtypes.c (internal_type_vptr_fieldno): New function.
11597 (set_type_vptr_fieldno): New function.
11598 (internal_type_vptr_basetype): New function.
11599 (set_type_vptr_basetype): New function.
11600 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
11601 TYPE_VPTR_BASETYPE.
11602 (allocate_cplus_struct_type): Initialize vptr_fieldno.
11603 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
11604 (print_cplus_stuff): ... moved here.
11605 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
11606 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
11607 moved to ...
11608 (struct cplus_struct_type): ... here. All uses updated.
11609 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
11610 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
11611 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
11612 * stabsread.c (read_tilde_fields): Update setting of
11613 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
11614
11615 2015-01-31 Doug Evans <xdje42@gmail.com>
11616
11617 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
11618 to self_p.
11619 (cp_print_class_member): Rename local domain to self_type.
11620 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
11621 domain_type to self_type.
11622 (set_die_type) <need_gnat_info>: Handle
11623 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
11624 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
11625 TYPE_SPECIFIC_SELF_TYPE.
11626 * gdbtypes.c (internal_type_self_type): New function.
11627 (set_type_self_type): New function.
11628 (smash_to_memberptr_type): Rename parameter domain to self_type.
11629 Update setting of TYPE_SELF_TYPE.
11630 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
11631 (smash_to_method_type): Rename parameter domain to self_type.
11632 Update setting of TYPE_SELF_TYPE.
11633 (check_stub_method): Call smash_to_method_type.
11634 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
11635 (copy_type_recursive): Ditto.
11636 * gdbtypes.h (enum type_specific_kind): New value
11637 TYPE_SPECIFIC_SELF_TYPE.
11638 (struct main_type) <type_specific>: New member self_type.
11639 (struct cplus_struct_type) <fn_field.type>: Update comment.
11640 (TYPE_SELF_TYPE): Rewrite.
11641 (internal_type_self_type, set_type_self_type): Declare.
11642 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
11643 self_type.
11644 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
11645 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
11646 TYPE_TARGET_TYPE.
11647 * stabsread.c (read_member_functions): Mark methods with
11648 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
11649 TYPE_SELF_TYPE.
11650
11651 2015-01-31 Doug Evans <xdje42@gmail.com>
11652
11653 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
11654 All uses updated.
11655
11656 2015-01-31 Doug Evans <xdje42@gmail.com>
11657
11658 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
11659 or unions. Return zero if union.
11660 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
11661 (gnuv3_rtti_type): Pass already-check_typedef'd value to
11662 gnuv3_get_vtable.
11663 (compute_vtable_size): Assert only passed structs.
11664 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
11665
11666 2015-01-31 Doug Evans <xdje42@gmail.com>
11667
11668 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
11669 kinds.
11670
11671 2015-01-31 Gary Benson <gbenson@redhat.com>
11672 Doug Evans <dje@google.com>
11673
11674 PR cli/9007
11675 PR cli/11920
11676 PR cli/15548
11677 * cli/cli-cmds.c (complete_command): Notify user if max-completions
11678 reached.
11679 * common/common-exceptions.h (enum errors)
11680 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
11681 * completer.h (get_max_completions_reached_message): New declaration.
11682 (max_completions): Likewise.
11683 (completion_tracker_t): New typedef.
11684 (new_completion_tracker): New declaration.
11685 (make_cleanup_free_completion_tracker): Likewise.
11686 (maybe_add_completion_enum): New enum.
11687 (maybe_add_completion): New declaration.
11688 (throw_max_completions_reached_error): Likewise.
11689 * completer.c (max_completions): New global variable.
11690 (new_completion_tracker): New function.
11691 (free_completion_tracker): Likewise.
11692 (make_cleanup_free_completion_tracker): Likewise.
11693 (maybe_add_completions): Likewise.
11694 (throw_max_completions_reached_error): Likewise.
11695 (complete_line): Remove duplicates and limit result to max_completions
11696 entries.
11697 (get_max_completions_reached_message): New function.
11698 (gdb_display_match_list): Handle max_completions.
11699 (_initialize_completer): New declaration and function.
11700 * symtab.c: Include completer.h.
11701 (completion_tracker): New static variable.
11702 (completion_list_add_name): Call maybe_add_completion.
11703 (default_make_symbol_completion_list_break_on_1): Renamed from
11704 default_make_symbol_completion_list_break_on. Maintain
11705 completion_tracker across calls to completion_list_add_name.
11706 (default_make_symbol_completion_list_break_on): New function.
11707 * top.c (init_main): Set rl_completion_display_matches_hook.
11708 * tui/tui-io.c: Include completer.h.
11709 (tui_old_rl_display_matches_hook): New static global.
11710 (tui_rl_display_match_list): Notify user if max-completions reached.
11711 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
11712 * NEWS (New Options): Mention set/show max-completions.
11713
11714 2015-01-31 Gary Benson <gbenson@redhat.com>
11715
11716 * symtab.c (struct add_name_data) <code>: New field.
11717 Updated comments.
11718 (add_symtab_completions): New function.
11719 (symtab_expansion_callback): Likewise.
11720 (default_make_symbol_completion_list_break_on): Set datum.code.
11721 Move minimal symbol scan before calling expand_symtabs_matching.
11722 Scan known primary symtabs for externs and statics before calling
11723 expand_symtabs_matching. Pass symtab_expansion_callback as
11724 expansion_notify argument to expand_symtabs_matching. Do not scan
11725 primary symtabs for externs and statics after calling
11726 expand_symtabs_matching.
11727
11728 2015-01-31 Gary Benson <gbenson@redhat.com>
11729
11730 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
11731 (struct quick_symbol_functions) <expand_symtabs_matching>:
11732 New argument expansion_notify. All uses updated.
11733 (expand_symtabs_matching): New argument expansion_notify.
11734 All uses updated.
11735 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11736 Also print expansion notify.
11737 * symtab.c (expand_symtabs_matching_via_partial): Call
11738 expansion_notify whenever a partial symbol table is expanded.
11739 * dwarf2read.c (dw2_expand_symtabs_matching): Call
11740 expansion_notify whenever a symbol table is instantiated.
11741
11742 2015-01-31 Doug Evans <xdje42@gmail.com>
11743
11744 * cli-out.c: #include completer.h, readline/readline.h.
11745 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
11746 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
11747 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
11748 * cli-out.h (cli_display_match_list): Declare.
11749 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
11750 (ELLIPSIS_LEN): Ditto.
11751 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
11752 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
11753 (gdb_fnprint, gdb_print_filename): Ditto.
11754 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
11755 (gdb_display_match_list): Ditto.
11756 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
11757 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
11758 (mld_beep_ftype, mld_read_key_ftype): Ditto.
11759 (match_list_displayer): New struct.
11760 (gdb_display_match_list): Declare.
11761 * top.c (init_main): Set rl_completion_display_matches_hook.
11762 * tui/tui-io.c: #include completer.h.
11763 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
11764 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
11765 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
11766 (tui_mld_getc, tui_mld_read_key): Ditto.
11767 (tui_rl_display_match_list): Rewrite.
11768 (tui_handle_resize_during_io): New arg for_completion. All callers
11769 updated.
11770
11771 2015-01-31 Doug Evans <xdje42@gmail.com>
11772
11773 Add symbol lookup cache.
11774 * NEWS: Document new options and commands.
11775 * symtab.c (symbol_cache_key): New static global.
11776 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
11777 (SYMBOL_LOOKUP_FAILED): New macro.
11778 (symbol_cache_slot_state): New enum.
11779 (block_symbol_cache): New struct.
11780 (symbol_cache): New struct.
11781 (new_symbol_cache_size, symbol_cache_size): New static globals.
11782 (hash_symbol_entry, eq_symbol_entry): New functions.
11783 (symbol_cache_byte_size, resize_symbol_cache): New functions.
11784 (make_symbol_cache, free_symbol_cache): New functions.
11785 (get_symbol_cache, symbol_cache_cleanup): New function.
11786 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
11787 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
11788 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
11789 (symbol_cache_flush, symbol_cache_dump): New functions.
11790 (maintenance_print_symbol_cache): New function.
11791 (maintenance_flush_symbol_cache): New function.
11792 (symbol_cache_stats): New function.
11793 (maintenance_print_symbol_cache_statistics): New function.
11794 (symtab_new_objfile_observer): New function.
11795 (symtab_free_objfile_observer): New function.
11796 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
11797 (_initialize_symtab): Init symbol_cache_key. New parameter
11798 maint symbol-cache-size. New maint commands print symbol-cache,
11799 print symbol-cache-statistics, flush-symbol-cache.
11800 Install new_objfile, free_objfile observers.
11801
11802 2015-01-31 Joel Brobecker <brobecker@adacore.com>
11803
11804 PR symtab/17855
11805 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
11806 to end.
11807
11808 2015-01-31 Doug Evans <xdje42@gmail.com>
11809
11810 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
11811 * auto-load.c: #include ctype.h.
11812 (struct auto_load_pspace_info): Replace member loaded_scripts with
11813 new members loaded_script_files, loaded_script_texts.
11814 (auto_load_pspace_data_cleanup): Update.
11815 (init_loaded_scripts_info): Update.
11816 (get_auto_load_pspace_data_for_loading): Update.
11817 (maybe_add_script_file): Renamed from maybe_add_script. All callers
11818 updated.
11819 (maybe_add_script_text): New function.
11820 (clear_section_scripts): Update.
11821 (source_script_file, execute_script_contents): New functions.
11822 (source_section_scripts): Add support for
11823 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
11824 (print_scripts): New function.
11825 (auto_load_info_scripts): Also print inlined scripts.
11826 (maybe_print_unsupported_script_warning): Renamed from
11827 unsupported_script_warning_print. All callers updated.
11828 (maybe_print_script_not_found_warning): Renamed from
11829 script_not_found_warning_print. All callers updated.
11830 * extension-priv.h (struct extension_language_script_ops): New member
11831 objfile_script_executor.
11832 * extension.c (ext_lang_objfile_script_executor): New function.
11833 * extension.h (objfile_script_executor_func): New typedef.
11834 (ext_lang_objfile_script_executor): Declare.
11835 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
11836 * guile/guile.c (guile_extension_script_ops): Update.
11837 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
11838 * python/python.c (python_extension_script_ops): Update.
11839 (gdbpy_execute_objfile_script): New function.
11840
11841 2015-01-31 Eli Zaretskii <eliz@gnu.org>
11842
11843 * tui/tui-io.c (tui_expand_tabs): New function.
11844 (tui_puts, tui_redisplay_readline): Expand TABs into the
11845 appropriate number of spaces.
11846 * tui/tui-regs.c: Include tui-io.h.
11847 (tui_register_format): Call tui_expand_tabs to expand TABs into
11848 the appropriate number of spaces.
11849 * tui/tui-io.h: Add prototype for tui_expand_tabs.
11850
11851 2015-01-30 Doug Evans <dje@google.com>
11852
11853 * NEWS: "info source" command now display producer string if present.
11854 * source.c (source_info): Print producer string if present.
11855
11856 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11857
11858 * varobj.c (varobj_delete): Fix comment.
11859
11860 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11861
11862 * varobj.c (create_child): Modify comment.
11863
11864 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11865
11866 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
11867 parameter.
11868 (ada_name_of_variable): Same.
11869 (ada_path_expr_of_child): Same.
11870 (ada_value_of_variable): Same.
11871 (ada_value_is_changeable_p): Same.
11872 (ada_value_has_mutated): Same.
11873 * c-varobj.c (varobj_is_anonymous_child): Same.
11874 (c_is_path_expr_parent): Same.
11875 (c_number_of_children): Same.
11876 (c_name_of_variable): Same.
11877 (c_path_expr_of_child): Same.
11878 (get_type): Same.
11879 (c_value_of_variable): Same.
11880 (cplus_number_of_children): Same.
11881 (cplus_name_of_variable): Same.
11882 (cplus_path_expr_of_child): Same.
11883 (cplus_value_of_variable): Same.
11884 * jv-varobj.c (java_number_of_children): Same.
11885 (java_name_of_variable): Same.
11886 (java_path_expr_of_child): Same.
11887 (java_value_of_variable): Same.
11888 * varobj.c (number_of_children): Same.
11889 (name_of_variable): Same.
11890 (is_root_p): Same.
11891 (varobj_ensure_python_env): Same.
11892 (varobj_get_objname): Same.
11893 (varobj_get_expression): Same.
11894 (varobj_get_display_format): Same.
11895 (varobj_get_display_hint): Same.
11896 (varobj_has_more): Same.
11897 (varobj_get_thread_id): Same.
11898 (varobj_get_frozen): Same.
11899 (dynamic_varobj_has_child_method): Same.
11900 (varobj_get_gdb_type): Same.
11901 (is_path_expr_parent): Same.
11902 (varobj_default_is_path_expr_parent): Same.
11903 (varobj_get_language): Same.
11904 (varobj_get_attributes): Same.
11905 (varobj_is_dynamic_p): Same.
11906 (varobj_get_child_range): Same.
11907 (varobj_value_has_mutated): Same.
11908 (varobj_get_value_type): Same.
11909 (number_of_children): Same.
11910 (name_of_variable): Same.
11911 (check_scope): Same.
11912 (varobj_editable_p): Same.
11913 (varobj_value_is_changeable_p): Same.
11914 (varobj_floating_p): Same.
11915 (varobj_default_value_is_changeable_p): Same.
11916
11917 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11918
11919 * varobj.c (varobj_get_path_expr): Set var->path_expr.
11920 * c-varobj.c (c_path_expr_of_child): Set local var instead of
11921 child->path_expr.
11922 (cplus_path_expr_of_child): Same.
11923
11924 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11925
11926 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
11927 result.
11928 (mi_cmd_var_info_expression): Same.
11929 * varobj.c (varobj_get_expression): Mention in the comment that
11930 the result must by freed by the caller.
11931
11932 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11933
11934 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
11935 varobj_get_type.
11936 (varobj_update_one): Same.
11937 * varobj.c (update_type_if_necessary): Free curr_type_str and
11938 new_type_str.
11939 (varobj_get_type): Specify in comment that the result needs to be
11940 freed by the caller.
11941
11942 2015-01-29 Doug Evans <dje@google.com>
11943
11944 PR symtab/17890
11945 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
11946
11947 2015-01-25 Mark Wielaard <mjw@redhat.com>
11948
11949 * dwarf2read.c (checkproducer): Call producer_is_gcc.
11950 * utils.c (producer_is_gcc_ge_4): Likewise.
11951 (producer_is_gcc): New function.
11952 * utils.h (producer_is_gcc): New declaration.
11953
11954 2015-01-29 Joel Brobecker <brobecker@adacore.com>
11955
11956 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
11957 kind.
11958 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
11959 parameter by "addr_stack" parameter.
11960 (resolve_dynamic_range): Replace "addr" parameter by
11961 "stack_addr" parameter. Update function documentation.
11962 Update code accordingly.
11963 (resolve_dynamic_array, resolve_dynamic_union)
11964 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
11965 (resolve_dynamic_type): Update code, following the changes made
11966 to resolve_dynamic_type_internal's interface.
11967 * dwarf2loc.h (struct property_addr_info): New.
11968 (dwarf2_evaluate_property): Replace "address" parameter
11969 by "addr_stack" parameter. Adjust function documentation.
11970 (struct dwarf2_offset_baton): New.
11971 (struct dwarf2_property_baton): Update documentation of
11972 field "referenced_type" to be more general. New field
11973 "offset_info" in union data field.
11974 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
11975 parameter by "addr_stack" parameter. Adjust code accordingly.
11976 Add support for PROP_ADDR_OFFSET properties.
11977 * dwarf2read.c (attr_to_dynamic_prop): Add support for
11978 DW_AT_data_member_location attributes as well. Use case
11979 statements instead of if/else condition.
11980
11981 2015-01-29 Joel Brobecker <brobecker@adacore.com>
11982
11983 * ada-varobj.c (ada_varobj_get_array_number_of_children):
11984 Return zero if PARENT_VALUE is NULL and parent_type's
11985 range type is dynamic.
11986
11987 2015-01-29 Joel Brobecker <brobecker@adacore.com>
11988
11989 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
11990 nonzero if the type's subtype is dynamic.
11991 (resolve_dynamic_range): Also resolve the range's subtype.
11992
11993 2015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
11994
11995 Pushed by Joel Brobecker <brobecker@adacore.com>.
11996 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
11997
11998 2015-01-27 Doug Evans <dje@google.com>
11999
12000 * NEWS: Mention gdb.Objfile.username.
12001 * python/py-objfile.c (objfpy_get_username): New function.
12002 (objfile_getset): Add "username".
12003
12004 2015-01-24 Mark Wielaard <mjw@redhat.com>
12005
12006 * stack.c (return_command): Markup warning message with _.
12007
12008 2015-01-24 Doug Evans <xdje42@gmail.com>
12009
12010 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
12011
12012 2015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
12013
12014 Fix 100x slowdown regression on DWZ files.
12015 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
12016 (struct line_header): Add offset and offset_in_dwz.
12017 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
12018 (free_line_header_voidp): New declaration.
12019 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
12020 functions.
12021 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
12022 (handle_DW_AT_stmt_list): Use line_header_hash.
12023 (free_line_header_voidp): New function.
12024 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
12025 (dwarf_decode_lines): New parameter decode_mapping, use it.
12026 (dwarf2_free_objfile): Free line_header_hash.
12027
12028 2015-01-23 Simon Marchi <simon.marchi@ericsson.com>
12029
12030 PR gdb/17416
12031 * valops.c (value_rtti_indirect_type): Catch exception thrown by
12032 value_ind.
12033
12034 2015-01-15 Mark Wielaard <mjw@redhat.com>
12035
12036 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
12037 DW_AT_noreturn.
12038 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
12039 calling_convention an 8 bit bit field.
12040 (TYPE_NO_RETURN): New macro.
12041 * infcmd.c (finish_command): Query if function does not return
12042 normally.
12043 * stack.c (return_command): Likewise.
12044
12045 2015-01-23 Pedro Alves <palves@redhat.com>
12046
12047 * linux-nat.c (linux_is_async_p): New macro.
12048 (linux_nat_is_async_p):
12049 (linux_nat_terminal_inferior): Check whether the target can async
12050 instead of whether it is already async.
12051 (linux_nat_terminal_ours): Don't check whether the target is
12052 async.
12053 (linux_async_pipe): Use linux_is_async_p.
12054
12055 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
12056
12057 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
12058 '-ascending'.
12059 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
12060 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
12061 Sort tp_array using tp_array_compar.
12062 (_initialize_thread): Extend thread_apply_all_command help.
12063
12064 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
12065
12066 * corelow.c (core_open): Call also thread_command.
12067 * gdbthread.h (thread_command): New prototype moved from ...
12068 * thread.c (thread_command): ... here.
12069 (thread_command): Make it global.
12070
12071 2015-01-22 Pedro Alves <palves@redhat.com>
12072
12073 * configure.ac [*mingw32*]: Check $curses_found instead of
12074 $prefer_curses.
12075 * configure: Regenerate.
12076 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
12077 HAVE_NCURSES_NCURSES_H checks.
12078
12079 2015-01-22 Eli Zaretskii <eliz@gnu.org>
12080
12081 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
12082 fails with the 1st arg NULL, try again with "unknown". Don't test
12083 the "cup" capability: it isn't supported by the Windows port of
12084 ncurses, but the Windows console driver is still capable of
12085 supporting TUI.
12086
12087 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
12088
12089 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
12090
12091 2015-01-22 Eli Zaretskii <eliz@gnu.org>
12092
12093 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
12094 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
12095 reason that "make TAGS" is broken.
12096
12097 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
12098
12099 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
12100 and check additional store instructions.
12101
12102 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
12103
12104 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
12105
12106 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
12107
12108 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
12109 ppc_canonicalize_syscall, ppc_linux_syscall_record,
12110 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
12111 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12112 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
12113 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
12114 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
12115 ppc_process_record_op19, ppc_process_record_op31,
12116 ppc_process_record_op59, ppc_process_record_op60,
12117 ppc_process_record_op63): Likewise.
12118
12119 2015-01-20 Joel Brobecker <brobecker@adacore.com>
12120
12121 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
12122 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
12123 strerror.
12124
12125 2015-01-20 Wei-cheng Wang <cole945@gmail.com>
12126
12127 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
12128 ppc_process_record_op31, ppc_process_record_op59,
12129 ppc_process_record_op60, ppc_process_record_op63,
12130 ppc_process_record): Fix -Wformat warning.
12131 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
12132 Remove unused variables.
12133
12134 2015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
12135
12136 * MAINTAINERS (Write After Approval): Add "Chen Gang".
12137
12138 2015-01-19 Eli Zaretskii <eliz@gnu.org>
12139
12140 * configure.ac [*mingw32*]: Only add windows-termcap.o to
12141 CONFIG_OBS if not building with a curses library.
12142 * configure: Regenerate.
12143
12144 * windows-termcap.c: Include defs.h. Make the whole body empty if
12145 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
12146 HAVE_NCURSES_NCURSES_H is defined.
12147
12148 2015-01-19 Joel Brobecker <brobecker@adacore.com>
12149
12150 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
12151 from end of line to start of next line.
12152
12153 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
12154
12155 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
12156 Scan PLT stub backward for reverse debugging.
12157 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12158
12159 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
12160 Ulrich Weigand <uweigand@de.ibm.com>
12161
12162 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
12163 gdb_target_obs.
12164 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
12165 record.
12166 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
12167 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
12168 (ppc_linux_init_abi): Set process_record, process_record_signal.
12169 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
12170 ppc_linux_record_tdep to gdbarch_tdep.
12171 (ppc_process_record): New declaration.
12172 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
12173 ppc_process_record_op19, ppc_process_record_op31,
12174 ppc_process_record_op59, ppc_process_record_op60,
12175 ppc_process_record_op63, ppc_process_record): New functions.
12176
12177 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
12178
12179 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
12180 rs6000_in_function_epilogue_frame_p and add an argument
12181 for frame_info.
12182 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
12183 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
12184 New functions.
12185 (rs6000_epilogue_frame_unwind): New.
12186 (rs6000_gdbarch_init): Append epilogue unwinder.
12187
12188 2015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
12189
12190 * nat/linux-personality.c: Replace "#ifndef
12191 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
12192 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
12193 systems.
12194
12195 2015-01-16 Eli Zaretskii <eliz@gnu.org>
12196
12197 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
12198 functions.
12199 (_initialize_tui_win) <border-kind, border-mode>:
12200 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
12201 (tui_set_tab_width_command): Fix the commentary.
12202
12203 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
12204
12205 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
12206 Doc fix.
12207 (tui_set_tab_width_command): Delete and recreate the source and
12208 the disassembly windows, to show the effect of the changed tab
12209 size immediately.
12210
12211 * tui/tui-data.h (LINE_PREFIX): Make shorter
12212 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
12213 "Thread NNNNN.XXXX" thread ID notation on Windows.
12214
12215 2015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12216
12217 Fix gcc-5 compilation.
12218 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
12219
12220 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12221
12222 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
12223 (linux-personality.o): New rule.
12224 * common/common-defs.h: Include <stdint.h>.
12225 * config/aarch64/linux.mh (NATDEPFILES): Include
12226 linux-personality.o.
12227 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
12228 * config/arm/linux.mh (NATDEPFILES): Likewise.
12229 * config/i386/linux64.mh (NATDEPFILES): Likewise.
12230 * config/i386/linux.mh (NATDEPFILES): Likewise.
12231 * config/ia64/linux.mh (NATDEPFILES): Likewise.
12232 * config/m32r/linux.mh (NATDEPFILES): Likewise.
12233 * config/m68k/linux.mh (NATDEPFILES): Likewise.
12234 * config/mips/linux.mh (NATDEPFILES): Likewise.
12235 * config/pa/linux.mh (NATDEPFILES): Likewise.
12236 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
12237 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
12238 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
12239 * config/s390/linux.mh (NATDEPFILES): Likewise.
12240 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
12241 * config/sparc/linux.mh (NATDEPFILES): Likewise.
12242 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
12243 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
12244 * defs.h: Remove #include <stdint.h> (moved to
12245 common/common-defs.h).
12246 * linux-nat.c: Include nat/linux-personality.h. Remove #include
12247 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
12248 nat/linux-personality.c).
12249 (linux_nat_create_inferior): Remove code to disable address space
12250 randomization (moved to nat/linux-personality.c). Create cleanup
12251 to disable address space randomization.
12252 * nat/linux-personality.c: New file.
12253 * nat/linux-personality.h: Likewise.
12254
12255 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12256
12257 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
12258 common/posix-strerror.c.
12259 (posix-strerror.o): New rule.
12260 (mingw-strerror.o): Likewise.
12261 * common/common-utils.h (safe_strerror): Move prototype to here,
12262 from utils.h.
12263 * common/common.host: New file.
12264 * common/mingw-strerror.c: Likewise.
12265 * common/posix-strerror.c: Likewise.
12266 * configure: Regenerated.
12267 * configure.ac: Source common/common.host. Add variable
12268 common_host_obs to gdb_host_obs.
12269 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
12270 gdb/common/posix-strerror.c when warning about the use of
12271 strerror.
12272 * mingw-hdep.c (safe_strerror): Remove definition; move it to
12273 common/mingw-strerror.c.
12274 * posix-hdep.c (safe_strerror): Remove definition; move it to
12275 common/posix-hdep.c.
12276 * utils.h (safe_strerror): Remove prototype; move to
12277 common/common-utils.h.
12278
12279 2015-01-15 Joel Brobecker <brobecker@adacore.com>
12280
12281 GDB 7.8.2 released.
12282
12283 2015-01-15 Joel Brobecker <brobecker@adacore.com>
12284
12285 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
12286 ___XA type if the array has already been fixed.
12287
12288 2015-01-14 Yao Qi <yao@codesourcery.com>
12289
12290 * Makefile.in (ppc-linux.o): New rule.
12291 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
12292 * configure.ac: AC_CHECK_FUNCS(getauxval).
12293 * config.in: Re-generated.
12294 * configure: Re-generated.
12295 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
12296 Declare.
12297 * nat/ppc-linux.c: New file.
12298 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
12299 Call ppc64_64bit_inferior_p.
12300
12301 2015-01-14 Yao Qi <yao@codesourcery.com>
12302
12303 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
12304 nat/ppc-linux.h.
12305 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
12306 (PPC_FEATURE_HAS_DFP): Likewise.
12307 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
12308 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
12309 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
12310 Include "nat/ppc-linux.h".
12311 * nat/ppc-linux.h: New file.
12312 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
12313
12314 2015-01-14 Pedro Alves <palves@redhat.com>
12315
12316 PR gdb/17525
12317 * breakpoint.c: Include "interps.h".
12318 (bpstat_do_actions_1): Also check whether the interpreter is
12319 async.
12320
12321 2015-01-14 Pedro Alves <palves@redhat.com>
12322
12323 PR cli/17828
12324 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
12325 reinstall if the interpreter is sync.
12326
12327 2015-01-13 Doug Evans <dje@google.com>
12328
12329 * objfiles.c (objfile_filename): New function.
12330 * objfiles.h (objfile_filename): Declare it.
12331 (objfile_name): Add function comment.
12332 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
12333 bfd file name (which may be realpath'd), and the original name.
12334
12335 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12336
12337 * NEWS: Create a new section for the next release branch.
12338 Rename the section of the current branch, now that it has
12339 been cut.
12340
12341 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12342
12343 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
12344 * version.in: Bump version to 7.9.50.DATE-cvs.
12345
12346 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12347
12348 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
12349 Remove trailing new-line in argument of call to warning.
12350
12351 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12352
12353 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
12354 new-line in argument of call to "warning".
12355
12356 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12357
12358 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
12359 in static block, then try searching for primitive types.
12360
12361 2015-01-12 Patrick Palka <patrick@parcs.ath.cx>
12362
12363 * top.h (gdb_add_history): Declare.
12364 * top.c (command_count): New variable.
12365 (gdb_add_history): New function.
12366 (gdb_safe_append_history): New static function.
12367 (quit_force): Call it.
12368 (command_line_input): Use gdb_add_history instead of
12369 add_history.
12370 * event-top.c (command_line_handler): Likewise.
12371
12372 2015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
12373
12374 PR gdb/17046
12375 * darwin-nat.c: Replace <machine/setjmp.h> #include by
12376 <setjmp.h> #include.
12377
12378 2015-01-11 Doug Evans <xdje42@gmail.com>
12379
12380 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
12381
12382 2015-01-11 Doug Evans <xdje42@gmail.com>
12383
12384 PR gdb/15830
12385 * NEWS: The "maint demangle" command is renamed as "demangle".
12386 * demangle.c: #include cli/cli-utils.h, language.h.
12387 (demangle_command): New function.
12388 (_initialize_demangle): Add new command "demangle".
12389 * maint.c (maintenance_demangle): Stub out.
12390 (_initialize_maint_cmds): Update help text for "maint demangle",
12391 and mark as deprecated.
12392
12393 2015-01-11 Mark Kettenis <kettenis@gnu.org>
12394
12395 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
12396 inferior_thread is a function.
12397
12398 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
12399
12400 * Makefile.in (.y.c): Don't munge yacc's #line
12401 directives.
12402
12403 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
12404
12405 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
12406 to prompt for input.
12407 * tui/tui-hooks.c (tui_query_hook): Remove.
12408 (tui_install_hooks): Don't set deprecated_query_hook.
12409 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
12410 height calculation. Always update the command window's cur_line.
12411
12412 2015-01-09 Pedro Alves <palves@redhat.com>
12413
12414 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
12415 function.
12416 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
12417 declaration.
12418 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
12419 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
12420 stop_reason.
12421 (check_stopped_by_watchpoint): New function.
12422 (save_sigtrap): Reimplement.
12423 (linux_nat_stopped_by_watchpoint): Adjust.
12424 (linux_nat_lp_status_is_event): Delete.
12425 (stop_wait_callback): Only call save_sigtrap after storing the
12426 pending status.
12427 (status_callback): If the thread had been stopped for a breakpoint
12428 that has since been removed, discard the event and resume the LWP.
12429 (count_events_callback, select_event_lwp_callback): Use
12430 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
12431 (cancel_breakpoint): Rename to ...
12432 (check_stopped_by_breakpoint): ... this. Record whether the LWP
12433 stopped for a software breakpoint or hardware breakpoint.
12434 (select_event_lwp): Only give preference to the stepping LWP in
12435 all-stop mode. Adjust comments.
12436 (stop_and_resume_callback): Remove references to new_pending_p.
12437 (linux_nat_filter_event): Likewise. Leave exit events of the
12438 leader thread pending here. Handle signal short circuiting here.
12439 Only call save_sigtrap after storing the pending waitstatus.
12440 (linux_nat_wait_1): Remove 'retry' label. Remove references to
12441 new_pending. Don't handle leaving events the caller is not
12442 interested in pending here, nor handle signal short-circuiting
12443 here. Also give equal priority to all LWPs that have had events
12444 in non-stop mode. If reporting a software breakpoint event,
12445 unadjust the LWP's PC.
12446 * linux-nat.h (enum lwp_stop_reason): New.
12447 (struct lwp_info) <stop_pc>: New field.
12448 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
12449 (struct lwp_info) <stop_reason>: New field.
12450 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
12451
12452 2015-01-09 Pedro Alves <palves@redhat.com>
12453
12454 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
12455 Set the LWP's 'resumed' flag.
12456
12457 2015-01-09 Pedro Alves <palves@redhat.com>
12458
12459 * linux-nat.c (linux_resume_one_lwp): New function.
12460 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
12461 (linux_nat_resume): Use lwp_status_pending_p and
12462 linux_resume_one_lwp.
12463 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
12464 (linux_handle_extended_wait): Use linux_resume_one_lwp.
12465 (status_callback, running_callback): Use lwp_status_pending_p.
12466 (lwp_status_pending_p): New function.
12467 (stop_and_resume_callback): Use lwp_status_pending_p.
12468 (linux_nat_filter_event): Use linux_resume_one_lwp.
12469 (linux_nat_wait_1): Always use status_callback to look for an LWP
12470 with a pending status. Use linux_resume_one_lwp.
12471 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
12472 linux_resume_one_lwp.
12473
12474 2015-01-09 Pedro Alves <palves@redhat.com>
12475
12476 * breakpoint.c (bp_location_inserted_here_p): New function,
12477 factored out from ...
12478 (breakpoint_inserted_here_p): ... here. Use
12479 ALL_BP_LOCATIONS_AT_ADDR.
12480 (software_breakpoint_inserted_here_p): Use
12481 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
12482
12483 2014-01-09 Pedro Alves <palves@redhat.com>
12484
12485 Skip enabling event reporting if the kernel supports
12486 PTRACE_EVENT_CLONE.
12487 * linux-thread-db.c: Include "nat/linux-ptrace.h".
12488 (thread_db_use_events): New function.
12489 (try_thread_db_load_1): Check thread_db_use_events before enabling
12490 event reporting.
12491 (update_thread_state): New function.
12492 (attach_thread): Use it. Check thread_db_use_events before
12493 enabling event reporting.
12494 (thread_db_detach): Check thread_db_use_events before disabling
12495 event reporting.
12496 (find_new_threads_callback): Check thread_db_use_events before
12497 enabling event reporting. Update the thread's state if not using
12498 libthread_db events.
12499
12500 2015-01-09 Pedro Alves <palves@redhat.com>
12501
12502 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
12503 about to wait for is > 0.
12504 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
12505 the kernel thread ID is -1.
12506
12507 2015-01-09 Pedro Alves <palves@redhat.com>
12508
12509 * linux-nat.c (attach_proc_task_lwp_callback): New function.
12510 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
12511 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
12512 ptrace option flags.
12513 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
12514 field.
12515 * nat/linux-procfs.c: Include <dirent.h>.
12516 (linux_proc_get_int): New parameter "warn". Handle it.
12517 (linux_proc_get_tgid): Adjust.
12518 (linux_proc_get_tracerpid): Rename to ...
12519 (linux_proc_get_tracerpid_nowarn): ... this.
12520 (linux_proc_pid_get_state): New function, factored out from
12521 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
12522 and handle it.
12523 (linux_proc_pid_is_gone): New function.
12524 (linux_proc_pid_is_stopped): Adjust.
12525 (linux_proc_pid_is_zombie_maybe_warn)
12526 (linux_proc_pid_is_zombie_nowarn): New functions.
12527 (linux_proc_pid_is_zombie): Use
12528 linux_proc_pid_is_zombie_maybe_warn.
12529 (linux_proc_attach_tgid_threads): New function.
12530 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
12531 (linux_proc_get_tracerpid): Rename to ...
12532 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
12533 (linux_proc_pid_is_gone): New declaration.
12534 (linux_proc_pid_is_zombie): Update comment.
12535 (linux_proc_pid_is_zombie_nowarn): New declaration.
12536 (linux_proc_attach_lwp_func): New typedef.
12537 (linux_proc_attach_tgid_threads): New declaration.
12538 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
12539 use nowarn functions.
12540 (linux_ptrace_attach_fail_reason_string): Move here from
12541 gdbserver/linux-low.c and rename.
12542 (ptrace_supports_feature): If the current ptrace options are not
12543 known yet, check them now, instead of asserting.
12544 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
12545 Declare.
12546
12547 2015-01-09 Pedro Alves <palves@redhat.com>
12548
12549 * linux-thread-db.c (thread_db_find_new_threads_silently)
12550 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
12551 (find_new_threads_once): Print debug output on gdb_stdlog.
12552
12553 2015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
12554 Pedro Alves <palves@redhat.com>
12555
12556 * compile/compile.c: Include "gdb_wait.h".
12557 (do_rmdir): Check return value, and free 'zap'.
12558
12559 2015-01-08 Pedro Alves <palves@redhat.com>
12560 Yao Qi <yao@codesourcery.com>
12561
12562 * dwarf2loc.c (indirect_pieced_value): Don't call
12563 gdb_sign_extend. Call extract_signed_integer instead.
12564 * utils.c (gdb_sign_extend): Remove.
12565 * utils.h (gdb_sign_extend): Remove declaration.
12566
12567 2015-01-07 Pierre Muller <muller@sourceware.org>
12568
12569 PR symtab/17811
12570 * stabsread.c (define_symbol): Set language for C++ special symbols.
12571
12572 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
12573
12574 * inflow.c (initial_gdb_ttystate): Tweak comment.
12575
12576 2015-01-07 Joel Brobecker <brobecker@adacore.com>
12577
12578 * inflow.c (set_initial_gdb_ttystate): Add empty line after
12579 comment documenting function.
12580
12581 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
12582
12583 * terminal.h (set_initial_gdb_ttystate): Declare.
12584 * inflow.c (initial_gdb_ttystate): New static variable.
12585 (set_initial_gdb_ttystate): New setter.
12586 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
12587 instead of our current terminal state.
12588 * top.c (gdb_init): Call set_initial_gdb_ttystate.
12589
12590 2015-01-07 Joel Brobecker <brobecker@adacore.com>
12591
12592 * guile/scm-type.c (tyscm_array_1): Add comment.
12593 * python/py-type.c (typy_array_1): Add comment.
12594
12595 2015-01-06 Joel Brobecker <brobecker@adacore.com>
12596
12597 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
12598 error if N2 is equal to N1 - 1.
12599
12600 2015-01-06 Joel Brobecker <brobecker@adacore.com>
12601
12602 * python/py-type.c (typy_array_1): Do not raise negative-length
12603 exception if N2 is equal to N1 - 1.
12604
12605 2015-01-03 Doug Evans <xdje42@gmail.com>
12606
12607 * c-exp.y: Whitespace cleanup.
12608 (classify_inner_name): Remove extra ;.
12609
12610 2015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
12611
12612 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
12613 offset signed.
12614
12615 2015-01-02 Doug Evans <dje@google.com>
12616
12617 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
12618
12619 2015-01-02 Doug Evans <dje@google.com>
12620
12621 * symtab.h (struct symbol): Fix typo in comment.
12622
12623 2015-01-01 Joel Brobecker <brobecker@adacore.com>
12624
12625 Update year range in copyright notice of all files.
12626
12627 2015-01-01 Joel Brobecker <brobecker@adacore.com>
12628
12629 * top.c (print_gdb_version): Update copyright year to 2015.
12630
12631 2015-01-01 Joel Brobecker <brobecker@adacore.com>
12632
12633 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
12634
12635 For older changes see ChangeLog-2014.
12636 \f
12637 Local Variables:
12638 mode: change-log
12639 left-margin: 8
12640 fill-column: 74
12641 version-control: never
12642 coding: utf-8
12643 End: