Add mmap casts in linux-btrace.c
[external/binutils.git] / gdb / ChangeLog
1 2015-10-23  Simon Marchi  <simon.marchi@polymtl.ca>
2
3         * linux-btrace.c (linux_enable_pt): Add cast to mmap return.
4
5 2015-10-23  Simon Marchi  <simon.marchi@ericsson.com>
6
7         * observer.h (observer_${event}_notification_stub): Add cast.
8
9 2015-10-23  Yao Qi  <yao.qi@linaro.org>
10
11         * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Set
12         dsd.insn_count to zero.
13
14 2015-10-22  Pedro Alves  <palves@redhat.com>
15
16         * infrun.c (stop_after_trap): Delete.
17         (clear_proceed_status, handle_signal_stop, struct
18         infcall_control_state, save_infcall_control_state)
19         (restore_infcall_control_state): Remove references to
20         stop_after_trap.
21
22 2015-10-22  Simon Marchi  <simon.marchi@ericsson.com>
23
24         * python/python.c (_initialize_python): Add cast.
25
26 2015-10-22  Simon Marchi  <simon.marchi@ericsson.com>
27
28         * nto-tdep.c (nto_inferior_data): Add cast.
29
30 2015-10-22  Pedro Alves  <palves@redhat.com>
31
32         * windows-nat.c (do_initial_windows_stuff): Rewrite loop using
33         windows_wait and windows_resume directly instead of
34         wait_for_inferior and resume.
35
36 2015-10-22  Simon Marchi  <simon.marchi@polymtl.ca>
37
38         * xtensa-tdep.h (XTREG): Add casts.
39         (XTREG_END): Likewise.
40
41 2015-10-22  Simon Marchi  <simon.marchi@polymtl.ca>
42
43         * solib-spu.c (spu_bfd_iovec_pread): Add (gdb_byte *) cast.
44
45 2015-10-22  Simon Marchi  <simon.marchi@polymtl.ca>
46
47         * rs6000-tdep.c (variants): Add (enum bfd_architecture) cast.
48
49 2015-10-22  Simon Marchi  <simon.marchi@polymtl.ca>
50
51         * mips-linux-tdep.c (mips64_linux_get_longjmp_target): Change type of
52         buf to gdb_byte*.
53         (supply_32bit_reg): Add cast.
54         (mips64_fill_gregset): Likewise.
55
56 2015-10-21  Simon Marchi  <simon.marchi@polymtl.ca>
57
58         PR python/18073
59         * python/py-type.c (typy_get_composite): Allow returning a
60         function type.
61
62 2015-10-21  Keven Boell  <keven.boell@intel.com>
63
64         * dwarf2read.c (set_die_type): Add read of
65         DW_AT_allocated and DW_AT_associated.
66         * f-typeprint.c: New include of typeprint.h
67         (f_print_type): Add check for allocated/associated
68         status of type.
69         (f_type_print_varspec_suffix): Add check for
70         * gdbtypes.c (create_array_type_with_stride):
71         Add check for valid data location of type in
72         case allocated or associated attributes are set.
73         Length of an array should be only calculated if
74         allocated or associated is resolved as true.
75         (is_dynamic_type_internal): Add check for allocated/
76         associated.
77         (resolve_dynamic_array): Evaluate allocated/associated
78         properties.
79         * gdbtypes.h (enum dynamic_prop_node_kind): <DYN_PROP_ALLOCATED>
80         <DYN_PROP_ASSOCIATED>: New enums.
81         (TYPE_ALLOCATED_PROP, TYPE_ASSOCIATED_PROP): New macros.
82         (type_not_allocated): New function.
83         (type_not_associated): New function.
84         * valarith.c (value_subscripted_rvalue): Add check for
85         allocated/associated.
86         * valprint.c: New include of typeprint.h.
87         (valprint_check_validity): Add check for allocated/associated.
88         (value_check_printable): Add check for allocated/
89         associated.
90         * typeprint.h (val_print_not_allocated): New function.
91         (val_print_not_associated): New function.
92         * typeprint.c (val_print_not_allocated): New function.
93         (val_print_not_associated): New function.
94
95 2015-10-21  Antoine Tremblay  <antoine.tremblay@ericsson.com>
96
97         * Makefile.in: Add arm.c/o.
98         * arch/arm.c: New file.
99         * arch/arm.h: (IS_THUMB_ADDR): Move macro from arm-tdep.c.
100         (MAKE_THUMB_ADDR): Likewise.
101         (UNMAKE_THUMB_ADDR): Likewise.
102         * arm-tdep.c (int thumb_insn_size): Move to arm.c.
103         (IS_THUMB_ADDR): Move to arm.h.
104         (MAKE_THUMB_ADDR): Likewise.
105         (UNMAKE_THUMB_ADDR): Likewise.
106         * configure.tgt: Add arm.o to all ARM configs.
107
108 2015-10-21  Yao Qi  <yao.qi@linaro.org>
109
110         * lib/range-stepping-support.exp (exec_cmd_expect_vCont_count):
111         Remove argument exp_vCont_s.
112         * gdb.base/range-stepping.exp: Callers updated.
113         * gdb.trace/range-stepping.exp: Likewise.
114
115 2015-10-21  Aleksandar Ristovski  <aristovski@qnx.com>
116
117         * gdb/nto-tdep.c (QNX_NOTE_NAME, QNX_INFO_SECT_NAME): New defines.
118         (nto_sniff_abi_note_section): New function.
119         (nto_elf_osabi_sniffer): Use new function to recognize nto specific
120         binary.
121
122 2015-10-21  Aleksandar Ristovski  <aristovski@qnx.com>
123
124         * nto-procfs.c (procfs_wait): Set stopped_flags nad stopped_pc.
125         (procfs_stopped_by_watchpoint): Use flags stored in inferior data.
126         * nto-tdep.c (nto_new_inferior_data_reg): New definition.
127         (nto_new_inferior_data, nto_inferior_data_cleanup, nto_inferior_data):
128         New functions.
129         (_initialize_nto_tdep): New forward declaration, new function.
130         * nto-tdep.h (struct nto_inferior_data): New struct.
131         (nto_inferior_data): New function declaration.
132
133 2015-10-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
134
135         * findvar.c (address_from_register): Check REGNUM validity.
136
137 2015-10-20  Aleksandar Ristovski  <aristovski@qnx.com>
138
139         * gdb/nto-procfs.c (procfs_pid_to_exec_file): New function.
140         (init_procfs_targets): Wire new function.
141
142 2015-10-20  Aleksandar Ristovski  <aristovski@qnx.com>
143
144         * nto-procfs.c (sys/auxv.h): Include.
145         (procfs_xfer_partial): Implement TARGET_OBJECT_AUXV.
146         * nto-tdep.c (nto_read_auxv_from_initial_stack): New function.
147         * nto-tdep.h (nto_read_auxv_from_initial_stack): New declaration.
148
149 2015-10-20  Aleksandar Ristovski  <aristovski@qnx.com>
150
151         * nto-procfs.c (nto_procfs_path): Rename to...
152         (nodestr): ... this, and change type.
153         (nto_node): Use new variable and logic accordingly.
154         (procfs_open_1): Use new variable name. Use local buffer to construct
155         procfrs path.
156         (procfs_pidlist): Use NODESTR to construct procfs path.
157         (procfs_files_info): Use NODESTR to output meaningful text.
158         (do_attach): Construct procfs using NODESTR.
159         (procfs_create_inferior): Compare pointer to NULL.
160
161 2015-10-19  Josh Stone  <jistone@redhat.com>
162
163         * linux-nat.c (linux_handle_syscall_trap): Always update entry/
164         return state, even when not actively catching syscalls at all.
165         (linux_handle_extended_wait): Mark syscall_state like an entry.
166         (wait_lwp): Set syscall_state ignored for other traps.
167         (linux_nat_filter_event): Likewise.
168
169 2015-10-19  Luis Machado  <lgustavo@codesourcery.com>
170
171         * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to 0
172         when handling 'E', 'T', 'S', 'X' and 'W' packets.
173         Do not set rs->waiting_for_stop_reply back to 1.
174
175 2015-10-16  Aleksandar Ristovski  <aristovski@qnx.com>
176
177         * nto-procfs.c (common/filestuff.h): Include.
178         (procfs_can_use_hw_breakpoint): Fix enum name.
179         (procfs_open_1): Fix compiler warning.
180         (procfs_pidlist): Make static.
181         (procfs_meminfo): Make static, fix type name, add missing argument.
182         (procfs_store_registers): Make static.
183         (procfs_thread_info): Remove unused function.
184         (_initialize_procfs): Forward declare.
185
186 2015-10-16  Yao Qi  <yao.qi@arm.com>
187
188         * MAINTAINERS: Update my email address.
189
190 2015-10-15  Yao Qi  <yao.qi@linaro.org>
191
192         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint):
193         Call gdbarch_breakpoint_from_pc to instruction length.
194         (aarch64_linux_remove_hw_breakpoint): Likewise.
195         * common/common-regcache.h (regcache_register_size): Declare.
196         * nat/aarch64-linux-hw-point.c: Include "common-regcache.h".
197         (aarch64_point_is_aligned): Set alignment to 2 for breakpoint if
198         the process is 32bit, otherwise set alignment to 4.
199         (aarch64_handle_breakpoint): Update comments.
200         * regcache.c (regcache_register_size): New function.
201
202 2015-10-15  Aleksandar Ristovski  <aristovski@qnx.com>
203
204         * gdbarch.sh (core_regset_section): Remove.
205         * gdbarch.h: Regenerate.
206
207 2015-10-14  Yao Qi  <yao.qi@linaro.org>
208
209         * arch/aarch64-insn.h (struct aarch64_memory_operand): Move enum
210         out of it.
211         (enum aarch64_memory_operand_type): New.
212
213 2015-10-13  David Edelsohn  <dje.gcc@gmail.com>
214
215         * xcoffread.c (dwarf2_xcoff_names): Add .dwmac and .dwpbtyp.
216
217 2015-10-13  Pedro Alves  <palves@redhat.com>
218
219         * ada-lang.c (ada_enum_name): Constify local.
220         * ada-typeprint.c (print_range_bound): Constify locals.
221         * c-varobj.c (c_describe_child): Likewise.
222         * cli/cli-setshow.c (do_set_command): Likewise.
223         * gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
224         * dwarf2read.c (find_file_and_directory): Likewise.
225         (anonymous_struct_prefix, dwarf2_name): Likewise.
226         * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
227         * go-lang.c (unpack_mangled_go_symbol): Likewise.
228         * jv-typeprint.c (java_type_print_base): Likewise.
229         * ser-tcp.c (net_open): Likewise.
230         * symfile.c (deduce_language_from_filename): Likewise.
231         * symtab.c (gdb_mangle_name): Likewise.
232         * tui/tui-io.c (tui_redisplay_readline): Likewise.
233
234 2015-10-13  Pedro Alves  <palves@redhat.com>
235
236         * infrun.c (restore_execution_direction): New function.
237         (fetch_inferior_event): Use it instead of
238         make_cleanup_restore_integer.
239         (execution_direction): Change type to enum
240         exec_direction_kind.
241         * infrun.h (execution_direction): Likewise.
242
243 2015-10-13  Pedro Alves  <palves@redhat.com>
244
245         * ada-lang.c (ada_value_primitive_packed_val): Constify
246         locals.  Use value_contents_writeable.  Remove casts.
247
248 2015-10-13  Pedro Alves  <palves@redhat.com>
249
250         * ada-lang.c (ada_value_primitive_packed_val): Add casts to malloc
251         and alloca calls.
252
253 2015-10-13  Simon Marchi  <simon.marchi@polymtl.ca>
254
255         * lm32-tdep.c (lm32_push_dummy_call): Replace call to
256         write_memory with write_memory_unsigned_integer.
257
258 2015-10-13  Simon Marchi  <simon.marchi@polymtl.ca>
259
260         * solib-dsbt.c (cmp_name): Constify arguments.
261         * solib-frv.c (cmp_name): Likewise.
262         * solib-svr4.c (svr4_create_solib_event_breakpoints): Likewise.
263         * solib.c (gdb_bfd_lookup_symbol_from_symtab): Likewise.
264         (bfd_lookup_symbol_from_dyn_symtab): Likewise.
265         (gdb_bfd_lookup_symbol): Likewise.
266         * solib.h (gdb_bfd_lookup_symbol): Likewise.
267         (gdb_bfd_lookup_symbol_from_symtab): Likewise.
268
269 2015-10-12  Andrew Burgess  <andrew.burgess@embecosm.com>
270
271         * stack.c (parse_frame_specification): Remove message parameter,
272         replace with fixed string in function body, update function
273         comment.
274         (frame_info): Remove message to parse_frame_specification.
275         (select_frame_command): Likewise.
276
277 2015-10-12  Andrew Burgess  <andrew.burgess@embecosm.com>
278
279         * stack.c (parse_frame_specification): Delete.
280         (parse_frame_specification_1): Rename to
281         parse_frame_specification.
282         (frame_info): Use parse_frame_specification.
283         (select_frame_command): Likewise.
284         (return_command): Use select_frame and print_stack_frame rather
285         than frame_command and select_frame_command.
286         (func_command): Use get_current_frame rather than
287         parse_frame_specification.
288
289 2015-10-12  Andrew Burgess  <andrew.burgess@embecosm.com>
290
291         * stack.c (func_command): Return early when there is no ARG
292         string.
293
294 2015-10-12  Andrew Burgess  <andrew.burgess@embecosm.com>
295
296         * stack.c: Include safe-ctype.h not ctype.h.
297         (parse_frame_specification): Use ISSPACE not isspace.
298         (backtrace_command): Use TOLOWER not tolower.
299
300 2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
301
302         * mep-tdep.c (current_me_module): Add cast.
303         (mep_gdbarch_init): Likewise.
304
305 2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
306
307         * m32c-tdep.c (m32c_move_reg_t): Replace with...
308         (m32c_write_reg_t): ...this and...
309         (m32c_read_reg_t): ...this.
310         (struct m32c_reg): Update types of read and write.
311         (m32c_raw_read): Change declaration type to m32c_read_reg_t and
312         adjust definition.
313         (m32c_banked_read): Likewise.
314         (m32c_sb_read): Likewise.
315         (m32c_part_read): Likewise.
316         (m32c_cat_read): Likewise.
317         (m32c_r3r2r1r0_read): Likewise.
318         (m32c_raw_write): Change declaration type to m32c_write_reg_t
319         and adjust definition.
320         (m32c_banked_write): Likewise.
321         (m32c_sb_write): Likewise.
322         (m32c_part_write): Likewise.
323         (m32c_cat_write): Likewise.
324         (m32c_r3r2r1r0_write): Likewise.
325
326 2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
327
328         * aarch64-linux-tdep.c (aarch64_linux_syscall_record): Add cast.
329
330 2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
331
332         * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Return
333         gdb_sys_no_syscall instead of -1.
334
335 2015-10-12  Yao Qi  <yao.qi@linaro.org>
336
337         * NEWS: Mention the change.
338
339 2015-10-12  Yao Qi  <yao.qi@linaro.org>
340
341         * arch/aarch64-insn.c (emit_load_store): Rename to ...
342         (aarch64_emit_load_store): ... it.  All callers updated.
343
344 2015-10-12  Yao Qi  <yao.qi@linaro.org>
345
346         * arch/aarch64-insn.c (emit_insn): Rename to ...
347         (aarch64_emit_insn): ... it.  All callers updated.
348
349 2015-10-12  Yao Qi  <yao.qi@linaro.org>
350
351         * aarch64-linux-tdep.c: Include arch-utils.h.
352         (aarch64_linux_init_abi): Call set_gdbarch_max_insn_length,
353         set_gdbarch_displaced_step_copy_insn,
354         set_gdbarch_displaced_step_fixup,
355         set_gdbarch_displaced_step_free_closure,
356         set_gdbarch_displaced_step_location,
357         and set_gdbarch_displaced_step_hw_singlestep.
358         * aarch64-tdep.c (struct displaced_step_closure): New.
359         (struct aarch64_displaced_step_data): New.
360         (aarch64_displaced_step_b): New function.
361         (aarch64_displaced_step_b_cond): Likewise.
362         (aarch64_register): Likewise.
363         (aarch64_displaced_step_cb): Likewise.
364         (aarch64_displaced_step_tb): Likewise.
365         (aarch64_displaced_step_adr): Likewise.
366         (aarch64_displaced_step_ldr_literal): Likewise.
367         (aarch64_displaced_step_others): Likewise.
368         (aarch64_displaced_step_copy_insn): Likewise.
369         (aarch64_displaced_step_fixup): Likewise.
370         (aarch64_displaced_step_hw_singlestep): Likewise.
371         * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): New macro.
372         (aarch64_displaced_step_copy_insn): Declare.
373         (aarch64_displaced_step_fixup): Declare.
374         (aarch64_displaced_step_hw_singlestep): Declare.
375         * arch/aarch64-insn.c (emit_insn): Moved from
376         gdbserver/linux-aarch64-low.c.
377         (emit_load_store): Likewise.
378         * arch/aarch64-insn.h (enum aarch64_opcodes): Moved from
379         gdbserver/linux-aarch64-low.c.
380         (struct aarch64_register): Likewise.
381         (struct aarch64_memory_operand): Likewise.
382         (ENCODE): Likewise.
383         (can_encode_int32): New macro.
384         (emit_b, emit_bcond, emit_cb, emit_ldr, emit_ldrsw): Likewise.
385         (emit_tb, emit_nop): Likewise.
386         (emit_insn): Declare.
387         (emit_load_store): Declare.
388
389 2015-10-12  Yao Qi  <yao.qi@linaro.org>
390
391         * arch/aarch64-insn.c (aarch64_decode_ldr_literal): Moved from
392         gdbserver/linux-aarch64-low.c.
393         (aarch64_relocate_instruction): Likewise.
394         * arch/aarch64-insn.h (aarch64_decode_ldr_literal): Declare.
395         (struct aarch64_insn_data): Moved from
396         gdbserver/linux-aarch64-low.c.
397         (struct aarch64_insn_visitor): Likewise.
398         (aarch64_relocate_instruction): Declare.
399
400 2015-10-12  Pierre-Marie de Rodat  <derodat@adacore.com>
401
402         * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT>: If
403         EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute
404         to the returned value.
405
406 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
407
408         * ada-lang.c (ada_unpack_from_contents): Add guard that unpacked
409         is large enough for BIT_SIZE.  Update function comment.
410
411 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
412
413         * ada-lang.c (ada_value_primitive_packed_val): Move
414         src_len variable to local block where used.  Override
415         BIT_SIZE if bigger than size of resolved type.
416
417 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
418
419         * gdbtypes.h (is_scalar_type): Add extern declaration.
420         * gdbtypes.c (is_scalar_type): Make non-static.
421         * ada-lang.c (ada_value_primitive_packed_val): Use is_scalar_type
422         to compute IS_SCALAR instead of doing it ourselves.
423
424 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
425
426         * ada-lang.c (ada_value_primitive_packed_val): Rework handling
427         of case where TYPE is dynamic.
428
429 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
430
431         * ada-lang.c (ada_unpack_from_contents): New function,
432         extracted from ada_value_primitive_packed_val.
433         (ada_value_primitive_packed_val): Replace extracted out code
434         by call to ada_unpack_from_contents.
435
436 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
437
438         * ada-lang.c (ada_value_primitive_packed_val): Reorder local
439         variable declarations.
440
441 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
442
443         * ada-lang.c (ada_value_primitive_packed_val): Change the type
444         of local variables src and unpacked to "gdb_type *" instead of
445         "unsigned char *".
446
447 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
448
449         * ada-lang.c (ada_value_primitive_packed_val): Make the name
450         of various local variables more explicit and consistent.
451         No real code change otherwise.
452
453 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
454
455         * i386-tdep.h (struct gdbarch_tdep): Change type of
456         register_reggroup_p to gdbarch_register_reggroup_p_ftype.
457
458 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
459
460         * cris-tdep.c (struct instruction_environment): Change type of
461         byte_order to enum bfd_endian.
462
463 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
464
465         * arm-linux-tdep.c (arm_canonicalize_syscall): Add
466         enum gdb_syscall casts.
467
468 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
469
470         * aarch64-tdep.c (stack_item_t): Change type of data to gdb_byte*.
471         * arm-tdep.c (struct stack_item): Likewise.
472         (push_stack_item): Add gdb_byte* cast.
473         * avr-tdep.c (struct stack_item): Change type of data to gdb_byte*.
474         (push_stack_item): Add gdb_byte* cast.
475         * cli/cli-dump.c (dump_memory_to_file): Change type of buf to gdb_byte*
476         and add cast.
477         * cris-tdep.c (struct stack_item): Change type of data to gdb_byte*.
478         (push_stack_item): Add gdb_byte* cast.
479         * gcore.c (gcore_copy_callback): Change type of memhunk to gdb_byte* and
480         add cast.
481         * gdbtypes.h (print_scalar_formatted): Change type of first parameter to
482         gdb_byte*.
483         * h8300-tdep.c (h8300_extract_return_value): Change type of valbuf to
484         gdb_byte* and remove unnecessary cast.
485         (h8300h_extract_return_value): Likewise.
486         (h8300_store_return_value): Change type of valbuf to gdb_byte*.
487         (h8300h_store_return_value): Likewise.
488         * iq2000-tdep.c (iq2000_extract_return_value): Change type of valbuf to
489         gdb_byte* and remove unnecessary cast.
490         * jit.c (jit_reader_try_read_symtab): Change type of gdb_mem to gdb_byte*
491         and add cast.
492         * m32r-tdep.c (m32r_store_return_value): Change type of valbuf to
493         gdb_byte* and remove unnecessary cast.
494         (m32r_extract_return_value): Change type of dst to gdb_byte* and remove
495         valbuf.
496         * mep-tdep.c (mep_pseudo_cr32_read): Change type of buf to gdb_byte*.
497         (mep_pseudo_cr64_read): Likewise.
498         (mep_pseudo_csr_write): Likewise.
499         (mep_pseudo_cr32_write): Likewise.
500         (mep_pseudo_cr64_write): Likewise.
501         * mi/mi-main.c (mi_cmd_data_write_memory): Change type of buffer to
502         gdb_byte* and add cast.
503         * moxie-tdep.c (moxie_store_return_value): Change type of valbuf to
504         gdb_byte* and remove unnecessary cast.
505         (moxie_extract_return_value): Change type of dst to gdb_byte* and remove
506         valbuf.
507         * p-valprint.c (print_scalar_formatted): Change type of valaddr to
508         gdb_byte*.
509         * printcmd.c (void): Likewise.
510         * python/py-inferior.c (infpy_read_memory): Change type of buffer to
511         gdb_byte* and add cast.
512         (infpy_write_memory): Likewise.
513         (infpy_search_memory): Likewise.
514         * regcache.c (regcache_raw_write_signed): Change type of buf to gdb_byte*
515         and add cast.
516         (regcache_raw_write_unsigned): Likewise.
517         (regcache_cooked_write_signed): Likewise.
518         (regcache_cooked_write_unsigned): Likewise.
519         * sh64-tdep.c (h64_extract_return_value): Change type of valbuf to
520         gdb_byte*.
521
522 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
523
524         * fbsd-tdep.c (fbsd_collect_regset_section_cb): Add cast.
525         * linux-tdep.c (linux_collect_regset_section_cb_data): Likewise.
526
527 2015-10-09  Eli Zaretskii  <eliz@gnu.org>
528
529         * stack.c (print_stack_frame):
530         * utils.c (printchar): Fix typos in commentary.
531
532 2015-10-08  Iain Buclaw  <ibuclaw@gdcproject.org>
533
534         * d-exp.y: (UnaryExpression): Support `type.sizeof' expressions.
535         (PostfixExpression): Support `expr.sizeof' expressions.
536         (PrimaryExpression): Support `typeof(expr)' expressions.
537
538 2015-10-08  Maciej W. Rozycki  <macro@imgtec.com>
539
540         * MAINTAINERS: Update my email address.
541
542 2015-10-08  Markus Metzger  <markus.t.metzger@intel.com>
543
544         * record-btrace.c (record_btrace_resume): Fix void return.
545
546 2015-10-07  Yao Qi  <yao.qi@linaro.org>
547
548         * aarch64-tdep.c: Include opcode/aarch64.h.
549         (submask): Move it above.
550         (bit): Likewise.
551         (bits): Likewise.
552         (aarch64_software_single_step): Call aarch64_decode_insn.
553         Decode instruction by aarch64_inst instead of using
554         aarch64_decode_bcond and decode_masked_match.
555
556 2015-10-06  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
557
558         * cli/cli-dump.c (restore_command): Parse load_offset (bias) as address
559         only when the file is binary.
560
561 2015-10-02  James Bowman  <james.bowman@ftdichip.com>
562
563         * ft32-tdep.c (ft32_analyze_prologue): Add function prolog
564         subroutine handling.
565
566 2015-10-01  Simon Marchi  <simon.marchi@ericsson.com>
567
568         * common/vec.h (VEC_OP (T,cleanup)): Add pointer cast.
569
570 2015-09-30  Doug Evans  <dje@google.com>
571
572         * dwarf2read.c (setup_type_unit_groups): Add comment.
573
574 2015-09-30  Pedro Alves  <palves@redhat.com>
575
576         * linux-nat.c (linux_nat_always_non_stop_p): Always return 1.
577         * x86-linux-nat.c (x86_linux_always_non_stop_p): Delete.
578         (x86_linux_create_target): Don't install
579         x86_linux_always_non_stop_p.
580
581 2015-09-30  Don Breazeal  <donb@codesourcery.com>
582
583         * remote.c (remote_parse_stop_reply): Call strprefix instead
584         of strncmp.
585
586 2015-09-30  Simon Marchi  <simon.marchi@ericsson.com>
587
588         * gdbarch.sh (struct gdbarch_info): Change tdep_info's type to void *.
589         * gdbarch.h: Regenerate.
590         * i386-tdep.c (i386_gdbarch_init): Remove cast to
591         struct gdbarch_tdep_info *.
592         * mips-tdep.c (mips_gdbarch_init): Likewise.
593         * ppc-linux-tdep (ppu2spu_sniffer): Likewise.
594         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
595         * spu-multiarch.c (spu_gdbarch): Likewise.
596
597 2015-09-30  Kevin Buettner  <kevinb@redhat.com>
598
599         * infcmd.c (finish_command_fsm_should_stop): Don't attempt to
600         record a NULL value.
601
602 2015-09-29  Kevin Buettner  <kevinb@redhat.com>
603
604         * msp430-tdep.c (msp430_push_dummy_call): Treat reference, struct,
605         and union arguments the same as pointer arguments when determining
606         size of argument.
607
608 2015-09-29  James Bowman  <james.bowman@ftdichip.com>
609
610         * ft32-tdep.c: #include "opcode/ft32.h".
611         Delete local macros IS_PUSH, PUSH_REG, IS_LINK, LINK_SIZE.
612         (ft32_analyze_prologue): Use FT32_* macros.
613
614 2015-09-28  Simon Marchi  <simon.marchi@ericsson.com>
615
616         * cli/cli-script.c (read_next_line): Fix stdout -> stdin in
617         comment.
618
619 2015-09-28  Doug Evans  <dje@google.com>
620
621         * MAINTAINERS: Add Iain Buclaw as D language maintainer.
622
623 2015-09-28  Doug Evans  <dje@google.com>
624
625         * common/filestuff.c (make_cleanup_close): Update comment.
626
627 2015-09-26  Simon Marchi  <simon.marchi@polymtl.ca>
628
629         * btrace.c (parse_xml_btrace_block): Fix cast of
630         xml_find_attribute's return value.
631         * memory-map.c (memory_map_start_memory): Likewise.
632         * solib-svr4.c (library_list_start_library): Likewise.
633         * solib-target.c (library_list_start_segment): Likewise.
634         (library_list_start_section): Likewise.
635         * tracepoint.c (traceframe_info_start_memory): Likewise.
636
637 2015-09-26  Iain Buclaw  <ibuclaw@gdcproject.org>
638
639         * d-namespace.c (d_lookup_symbol): New arg langdef.
640         All callers updated.  Support looking up symbol as a primitive type.
641         (lookup_module_scope): New arg langdef.  All callers updated.
642         Call d_lookup_symbol directly for simple bare symbols.
643
644 2015-09-25  Simon Marchi  <simon.marchi@ericsson.com>
645
646         * macrocmd.c (print_macro_callback): Add cast(s).
647         * macrotab.c (macro_bcache_str): Likewise.
648         (new_macro_definition): Likewise.
649         * main.c (captured_main): Likewise.
650         * maint.c (print_bfd_section_info): Likewise.
651         * mdebugread.c (mdebug_build_psymtabs): Likewise.
652         (basic_type): Likewise.
653         * memattr.c (mem_region_cmp): Likewise.
654         * memory-map.c (memory_map_start_memory): Likewise.
655         (memory_map_end_memory): Likewise.
656         (memory_map_start_property): Likewise.
657         (memory_map_end_property): Likewise.
658         (clear_result): Likewise.
659         * memrange.c (compare_mem_ranges): Likewise.
660         * mep-tdep.c (mep_analyze_frame_prologue): Likewise.
661         * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Likewise.
662         * mi/mi-console.c (mi_console_file_delete): Likewise.
663         (mi_console_file_fputs): Likewise.
664         (mi_console_raw_packet): Likewise.
665         (mi_console_file_flush): Likewise.
666         (mi_console_set_raw): Likewise.
667         * mi/mi-interp.c (mi_interpreter_resume): Likewise.
668         (mi_new_thread): Likewise.
669         (mi_thread_exit): Likewise.
670         (mi_record_changed): Likewise.
671         (mi_inferior_added): Likewise.
672         (mi_inferior_appeared): Likewise.
673         (mi_inferior_exit): Likewise.
674         (mi_inferior_removed): Likewise.
675         (mi_interp_data): Likewise.
676         (mi_on_normal_stop): Likewise.
677         (mi_traceframe_changed): Likewise.
678         (mi_tsv_created): Likewise.
679         (mi_tsv_deleted): Likewise.
680         (mi_tsv_modified): Likewise.
681         (mi_breakpoint_created): Likewise.
682         (mi_breakpoint_deleted): Likewise.
683         (mi_breakpoint_modified): Likewise.
684         (mi_output_running_pid): Likewise.
685         (mi_inferior_count): Likewise.
686         (mi_solib_loaded): Likewise.
687         (mi_solib_unloaded): Likewise.
688         (mi_command_param_changed): Likewise.
689         (mi_memory_changed): Likewise.
690         (report_initial_inferior): Likewise.
691         (mi_ui_out): Likewise.
692         (mi_set_logging): Likewise.
693         * mi/mi-main.c (collect_cores): Likewise.
694         (print_one_inferior): Likewise.
695         (free_vector_of_ints): Likewise.
696         (free_splay_tree): Likewise.
697         (mi_execute_command): Likewise.
698         * mi/mi-out.c (mi_table_body): Likewise.
699         (mi_table_end): Likewise.
700         (mi_table_header): Likewise.
701         (mi_begin): Likewise.
702         (mi_end): Likewise.
703         (mi_field_int): Likewise.
704         (mi_field_string): Likewise.
705         (mi_field_fmt): Likewise.
706         (mi_flush): Likewise.
707         (mi_redirect): Likewise.
708         (field_separator): Likewise.
709         (mi_open): Likewise.
710         (mi_close): Likewise.
711         (mi_out_buffered): Likewise.
712         (mi_out_rewind): Likewise.
713         (mi_out_put): Likewise.
714         (mi_version): Likewise.
715         (mi_out_data_dtor): Likewise.
716         * mi/mi-parse.c (mi_parse_cleanup): Likewise.
717         * microblaze-tdep.c (microblaze_frame_cache): Likewise.
718         * minidebug.c (lzma_open): Likewise.
719         (lzma_pread): Likewise.
720         (lzma_close): Likewise.
721         (lzma_stat): Likewise.
722         * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
723         * mips-sde-tdep.c (mips_sde_frame_cache): Likewise.
724         (mips_sde_elf_osabi_sniff_abi_tag_sections): Likewise.
725         * mips-tdep.c (mips_insn16_frame_cache): Likewise.
726         (mips_micro_frame_cache): Likewise.
727         (mips_insn32_frame_cache): Likewise.
728         (mips_stub_frame_cache): Likewise.
729         (gdb_print_insn_mips): Likewise.
730         (value_of_mips_user_reg): Likewise.
731         (mips_gdbarch_init): Likewise.
732         * mips64obsd-tdep.c (mips64obsd_supply_gregset): Likewise.
733         * mipsnbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
734         (mipsnbsd_supply_gregset): Likewise.
735         * mn10300-linux-tdep.c (am33_supply_fpregset_method): Likewise.
736         (am33_collect_gregset_method): Likewise.
737         (am33_collect_fpregset_method): Likewise.
738         * mn10300-tdep.c (mn10300_analyze_frame_prologue): Likewise.
739         * moxie-tdep.c (moxie_frame_cache): Likewise.
740         * msp430-tdep.c (msp430_get_opcode_byte): Likewise.
741         (msp430_analyze_frame_prologue): Likewise.
742         * mt-tdep.c (mt_frame_unwind_cache): Likewise.
743         * nios2-linux-tdep.c (nios2_supply_gregset): Likewise.
744         (nios2_collect_gregset): Likewise.
745         * nios2-tdep.c (nios2_frame_unwind_cache): Likewise.
746         (nios2_stub_frame_cache): Likewise.
747         * objc-lang.c (find_methods): Likewise.
748         * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
749         (get_objfile_pspace_data): Likewise.
750         (get_objfile_bfd_data): Likewise.
751         (objfile_bfd_data_free): Likewise.
752         (add_to_objfile_sections): Likewise.
753         (do_free_objfile_cleanup): Likewise.
754         (resume_section_map_updates_cleanup): Likewise.
755         * opencl-lang.c (builtin_opencl_type): Likewise.
756         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
757         * osdata.c (osdata_start_osdata): Likewise.
758         (osdata_start_item): Likewise.
759         (osdata_start_column): Likewise.
760         (osdata_end_column): Likewise.
761         (clear_parsing_data): Likewise.
762         (osdata_free_cleanup): Likewise.
763         * parse.c (type_stack_cleanup): Likewise.
764         (exp_uses_objfile_iter): Likewise.
765         * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
766         (ppc_linux_collect_gregset): Likewise.
767         (ppu2spu_prev_arch): Likewise.
768         (ppu2spu_this_id): Likewise.
769         (ppu2spu_prev_register): Likewise.
770         (ppu2spu_unwind_register): Likewise.
771         (ppu2spu_sniffer): Likewise.
772         (ppu2spu_dealloc_cache): Likewise.
773         (ppc_linux_init_abi): Likewise.
774         * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
775         * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
776         * progspace.c (restore_program_space): Likewise.
777         * psymtab.c (find_pc_sect_psymtab): Likewise.
778         (compare_psymbols): Likewise.
779         (psymbol_bcache_full): Likewise.
780         (allocate_psymtab): Likewise.
781         (discard_psymtabs_upto): Likewise.
782         * python/py-block.c (set_block): Likewise.
783         (del_objfile_blocks): Likewise.
784         * python/py-breakpoint.c (build_bp_list): Likewise.
785         * python/py-inferior.c (inferior_to_inferior_object): Likewise.
786         (build_inferior_list): Likewise.
787         (py_free_inferior): Likewise.
788         * python/py-objfile.c (py_free_objfile): Likewise.
789         (objfile_to_objfile_object): Likewise.
790         * python/py-prettyprint.c (py_restore_tstate): Likewise.
791         * python/py-progspace.c (py_free_pspace): Likewise.
792         (pspace_to_pspace_object): Likewise.
793         * python/py-symbol.c (set_symbol): Likewise.
794         (del_objfile_symbols): Likewise.
795         * python/py-symtab.c (set_sal): Likewise.
796         (set_symtab): Likewise.
797         (del_objfile_symtab): Likewise.
798         (del_objfile_sal): Likewise.
799         * python/py-type.c (save_objfile_types): Likewise.
800         (set_type): Likewise.
801         * python/py-unwind.c (pyuw_prev_register): Likewise.
802         (pyuw_on_new_gdbarch): Likewise.
803         * python/py-utils.c (py_decref): Likewise.
804         (py_xdecref): Likewise.
805         (gdb_py_generic_dict): Likewise.
806         * python/py-xmethods.c (gdbpy_free_xmethod_worker_data): Likewise.
807         (gdbpy_clone_xmethod_worker_data): Likewise.
808         (gdbpy_get_xmethod_arg_types): Likewise.
809         (gdbpy_get_xmethod_result_type): Likewise.
810         (gdbpy_invoke_xmethod): Likewise.
811         * python/python.c (gdbpy_apply_type_printers): Likewise.
812         (gdbpy_free_type_printers): Likewise.
813         * record-btrace.c (record_btrace_disable_callback): Likewise.
814         (bfcache_hash): Likewise.
815         (bfcache_eq): Likewise.
816         (btrace_get_frame_function): Likewise.
817         (record_btrace_frame_unwind_stop_reason): Likewise.
818         (record_btrace_frame_this_id): Likewise.
819         (record_btrace_frame_prev_register): Likewise.
820         (record_btrace_frame_dealloc_cache): Likewise.
821         * record-full.c (record_full_message_wrapper): Likewise.
822         (record_full_save_cleanups): Likewise.
823         * regcache.c (regcache_descr): Likewise.
824         (do_regcache_xfree): Likewise.
825         (do_regcache_invalidate): Likewise.
826         (do_cooked_read): Likewise.
827         (regcache_transfer_regset): Likewise.
828         * reggroups.c (reggroup_add): Likewise.
829         (reggroup_next): Likewise.
830         (reggroup_prev): Likewise.
831         * remote-fileio.c (do_remote_fileio_request): Likewise.
832         * remote-notif.c (remote_async_get_pending_events_handler): Likewise.
833         (do_notif_event_xfree): Likewise.
834         * remote.c (get_remote_arch_state): Likewise.
835         (remote_pspace_data_cleanup): Likewise.
836         (get_remote_exec_file): Likewise.
837         (set_pspace_remote_exec_file): Likewise.
838         (compare_pnums): Likewise.
839         (clear_threads_listing_context): Likewise.
840         (remote_newthread_step): Likewise.
841         (start_thread): Likewise.
842         (end_thread): Likewise.
843         (remove_child_of_pending_fork): Likewise.
844         (remove_stop_reply_for_inferior): Likewise.
845         (remove_stop_reply_of_remote_state): Likewise.
846         (remote_notif_remove_once_on_match): Likewise.
847         (stop_reply_match_ptid_and_ws): Likewise.
848         (kill_child_of_pending_fork): Likewise.
849         (register_remote_g_packet_guess): Likewise.
850         (remote_read_description_p): Likewise.
851         (remote_read_description): Likewise.
852         (free_actions_list_cleanup_wrapper): Likewise.
853         (remote_async_serial_handler): Likewise.
854         * rl78-tdep.c (rl78_get_opcode_byte): Likewise.
855         (rl78_analyze_frame_prologue): Likewise.
856         * rs6000-tdep.c (ppc_supply_gregset): Likewise.
857         (ppc_supply_fpregset): Likewise.
858         (ppc_supply_vsxregset): Likewise.
859         (ppc_supply_vrregset): Likewise.
860         (ppc_collect_gregset): Likewise.
861         (ppc_collect_fpregset): Likewise.
862         (ppc_collect_vsxregset): Likewise.
863         (ppc_collect_vrregset): Likewise.
864         (e500_move_ev_register): Likewise.
865         (do_regcache_raw_write): Likewise.
866         (rs6000_frame_cache): Likewise.
867         (rs6000_epilogue_frame_cache): Likewise.
868         (rs6000_gdbarch_init): Likewise.
869         * rx-tdep.c (rx_get_opcode_byte): Likewise.
870         (rx_analyze_frame_prologue): Likewise.
871         (rx_frame_type): Likewise.
872         (rx_frame_sniffer_common): Likewise.
873         * s390-linux-tdep.c (s390_check_for_saved): Likewise.
874         (s390_frame_unwind_cache): Likewise.
875         (s390_stub_frame_unwind_cache): Likewise.
876         (s390_sigtramp_frame_unwind_cache): Likewise.
877         * score-tdep.c (score_make_prologue_cache): Likewise.
878         * sentinel-frame.c (sentinel_frame_prev_register): Likewise.
879         (sentinel_frame_prev_arch): Likewise.
880         * ser-base.c (fd_event): Likewise.
881         (push_event): Likewise.
882         (ser_base_write): Likewise.
883         * ser-pipe.c (pipe_close): Likewise.
884         * serial.c (serial_write): Likewise.
885         * sh-tdep.c (sh_frame_cache): Likewise.
886         (sh_stub_this_id): Likewise.
887         * sh64-tdep.c (sh64_frame_cache): Likewise.
888         * solib-aix.c (get_solib_aix_inferior_data): Likewise.
889         (library_list_start_library): Likewise.
890         (library_list_start_list): Likewise.
891         (solib_aix_free_library_list): Likewise.
892         * solib-darwin.c (get_darwin_info): Likewise.
893         * solib-dsbt.c (get_dsbt_info): Likewise.
894         * solib-spu.c (append_ocl_sos): Likewise.
895         * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
896         (get_svr4_info): Likewise.
897         (library_list_start_library): Likewise.
898         (svr4_library_list_start_list): Likewise.
899         (hash_probe_and_action): Likewise.
900         (equal_probe_and_action): Likewise.
901         (svr4_update_solib_event_breakpoint): Likewise.
902         (set_solib_svr4_fetch_link_map_offsets): Likewise.
903         (svr4_fetch_link_map_offsets): Likewise.
904         (svr4_have_link_map_offsets): Likewise.
905         * solib-target.c (library_list_start_segment): Likewise.
906         (library_list_start_section): Likewise.
907         (library_list_start_library): Likewise.
908         (library_list_end_library): Likewise.
909         (library_list_start_list): Likewise.
910         (solib_target_free_library_list): Likewise.
911         * solib.c (solib_ops): Likewise.
912         (set_solib_ops): Likewise.
913         * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
914         * sparc-tdep.c (sparc_frame_cache): Likewise.
915         (sparc32_frame_cache): Likewise.
916         (sparc32_supply_gregset): Likewise.
917         (sparc32_collect_gregset): Likewise.
918         (sparc32_supply_fpregset): Likewise.
919         (sparc32_collect_fpregset): Likewise.
920         * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
921         * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
922         (sparc64_collect_gregset): Likewise.
923         (sparc64_supply_fpregset): Likewise.
924         (sparc64_collect_fpregset): Likewise.
925         * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_cache): Likewise.
926         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
927         * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
928         (sparc64obsd_trapframe_cache): Likewise.
929         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Likewise.
930         * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
931         * spu-multiarch.c (spu_gdbarch): Likewise.
932         * spu-tdep.c (spu_frame_unwind_cache): Likewise.
933         (spu2ppu_prev_arch): Likewise.
934         (spu2ppu_this_id): Likewise.
935         (spu2ppu_prev_register): Likewise.
936         (spu2ppu_dealloc_cache): Likewise.
937         (spu_dis_asm_print_address): Likewise.
938         (gdb_print_insn_spu): Likewise.
939         (spu_get_overlay_table): Likewise.
940         * stabsread.c (rs6000_builtin_type): Likewise.
941         * stack.c (do_print_variable_and_value): Likewise.
942         * stap-probe.c (get_stap_base_address_1): Likewise.
943         * symfile-debug.c (debug_qf_has_symbols): Likewise.
944         (debug_qf_find_last_source_symtab): Likewise.
945         (debug_qf_forget_cached_source_info): Likewise.
946         (debug_qf_map_symtabs_matching_filename): Likewise.
947         (debug_qf_lookup_symbol): Likewise.
948         (debug_qf_print_stats): Likewise.
949         (debug_qf_dump): Likewise.
950         (debug_qf_relocate): Likewise.
951         (debug_qf_expand_symtabs_for_function): Likewise.
952         (debug_qf_expand_all_symtabs): Likewise.
953         (debug_qf_expand_symtabs_with_fullname): Likewise.
954         (debug_qf_map_matching_symbols): Likewise.
955         (debug_qf_expand_symtabs_matching): Likewise.
956         (debug_qf_find_pc_sect_compunit_symtab): Likewise.
957         (debug_qf_map_symbol_filenames): Likewise.
958         (debug_sym_get_probes): Likewise.
959         (debug_sym_new_init): Likewise.
960         (debug_sym_init): Likewise.
961         (debug_sym_read): Likewise.
962         (debug_sym_read_psymbols): Likewise.
963         (debug_sym_finish): Likewise.
964         (debug_sym_offsets): Likewise.
965         (debug_sym_read_linetable): Likewise.
966         (debug_sym_relocate): Likewise.
967         (uninstall_symfile_debug_logging): Likewise.
968         * symfile-mem.c (symbol_file_add_from_memory_wrapper): Likewise.
969         * symfile.c (place_section): Likewise.
970         (add_section_size_callback): Likewise.
971         (load_progress): Likewise.
972         (load_section_callback): Likewise.
973         (clear_memory_write_data): Likewise.
974         (allocate_symtab): Likewise.
975         * symmisc.c (maintenance_expand_file_matcher): Likewise.
976         * symtab.c (lookup_symtab_callback): Likewise.
977         (hash_demangled_name_entry): Likewise.
978         (eq_demangled_name_entry): Likewise.
979         (get_symbol_cache): Likewise.
980         (symbol_cache_cleanup): Likewise.
981         (set_symbol_cache_size): Likewise.
982         (symbol_cache_flush): Likewise.
983         (maintenance_print_symbol_cache): Likewise.
984         (maintenance_print_symbol_cache_statistics): Likewise.
985         (delete_filename_seen_cache): Likewise.
986         (output_partial_symbol_filename): Likewise.
987         (search_symbols_file_matches): Likewise.
988         (search_symbols_name_matches): Likewise.
989         (do_free_completion_list): Likewise.
990         (maybe_add_partial_symtab_filename): Likewise.
991         (get_main_info): Likewise.
992         (main_info_cleanup): Likewise.
993         * target-dcache.c (target_dcache_cleanup): Likewise.
994         (target_dcache_init_p): Likewise.
995         (target_dcache_invalidate): Likewise.
996         (target_dcache_get): Likewise.
997         (target_dcache_get_or_init): Likewise.
998         * target-descriptions.c (target_find_description): Likewise.
999         (tdesc_find_type): Likewise.
1000         (tdesc_data_cleanup): Likewise.
1001         (tdesc_find_arch_register): Likewise.
1002         (tdesc_register_name): Likewise.
1003         (tdesc_register_type): Likewise.
1004         (tdesc_register_reggroup_p): Likewise.
1005         (set_tdesc_pseudo_register_name): Likewise.
1006         (set_tdesc_pseudo_register_type): Likewise.
1007         (set_tdesc_pseudo_register_reggroup_p): Likewise.
1008         (tdesc_use_registers): Likewise.
1009         (free_target_description): Likewise.
1010         * target-memory.c (compare_block_starting_address): Likewise.
1011         (cleanup_request_data): Likewise.
1012         (cleanup_write_requests_vector): Likewise.
1013         * target.c (open_target): Likewise.
1014         (cleanup_restore_target_terminal): Likewise.
1015         (free_memory_read_result_vector): Likewise.
1016         * thread.c (disable_thread_stack_temporaries): Likewise.
1017         (finish_thread_state_cleanup): Likewise.
1018         (do_restore_current_thread_cleanup): Likewise.
1019         (restore_current_thread_cleanup_dtor): Likewise.
1020         (set_thread_refcount): Likewise.
1021         (tp_array_compar): Likewise.
1022         (do_captured_thread_select): Likewise.
1023         * tic6x-tdep.c (tic6x_frame_unwind_cache): Likewise.
1024         (tic6x_stub_this_id): Likewise.
1025         * tilegx-tdep.c (tilegx_frame_cache): Likewise.
1026         * top.c (do_restore_instream_cleanup): Likewise.
1027         (gdb_readline_wrapper_cleanup): Likewise.
1028         (kill_or_detach): Likewise.
1029         (print_inferior_quit_action): Likewise.
1030         * tracefile-tfile.c (match_blocktype): Likewise.
1031         (build_traceframe_info): Likewise.
1032         * tracefile.c (trace_file_writer_xfree): Likewise.
1033         * tracepoint.c (memrange_cmp): Likewise.
1034         (do_collect_symbol): Likewise.
1035         (do_clear_collection_list): Likewise.
1036         (do_restore_current_traceframe_cleanup): Likewise.
1037         (restore_current_traceframe_cleanup_dtor): Likewise.
1038         (free_current_marker): Likewise.
1039         (traceframe_info_start_memory): Likewise.
1040         (traceframe_info_start_tvar): Likewise.
1041         (free_result): Likewise.
1042         * tramp-frame.c (tramp_frame_cache): Likewise.
1043         * tui/tui-file.c (tui_file_delete): Likewise.
1044         (tui_fileopen): Likewise.
1045         (tui_sfileopen): Likewise.
1046         (tui_file_isatty): Likewise.
1047         (tui_file_rewind): Likewise.
1048         (tui_file_put): Likewise.
1049         (tui_file_fputs): Likewise.
1050         (tui_file_get_strbuf): Likewise.
1051         (tui_file_adjust_strbuf): Likewise.
1052         (tui_file_flush): Likewise.
1053         * tui/tui-layout.c (make_command_window): Likewise.
1054         (make_data_window): Likewise.
1055         (show_source_disasm_command): Likewise.
1056         (show_data): Likewise.
1057         (make_source_or_disasm_window): Likewise.
1058         (show_source_or_disasm_and_command): Likewise.
1059         * tui/tui-out.c (tui_field_int): Likewise.
1060         (tui_field_string): Likewise.
1061         (tui_field_fmt): Likewise.
1062         (tui_text): Likewise.
1063         * typeprint.c (hash_typedef_field): Likewise.
1064         (eq_typedef_field): Likewise.
1065         (do_free_typedef_hash): Likewise.
1066         (copy_typedef_hash_element): Likewise.
1067         (do_free_global_table): Likewise.
1068         (find_global_typedef): Likewise.
1069         (find_typedef_in_hash): Likewise.
1070         * ui-file.c (ui_file_write_for_put): Likewise.
1071         (do_ui_file_xstrdup): Likewise.
1072         (mem_file_delete): Likewise.
1073         (mem_file_rewind): Likewise.
1074         (mem_file_put): Likewise.
1075         (mem_file_write): Likewise.
1076         (stdio_file_delete): Likewise.
1077         (stdio_file_flush): Likewise.
1078         (stdio_file_read): Likewise.
1079         (stdio_file_write): Likewise.
1080         (stdio_file_write_async_safe): Likewise.
1081         (stdio_file_fputs): Likewise.
1082         (stdio_file_isatty): Likewise.
1083         (stdio_file_fseek): Likewise.
1084         (tee_file_delete): Likewise.
1085         (tee_file_flush): Likewise.
1086         (tee_file_write): Likewise.
1087         (tee_file_fputs): Likewise.
1088         (tee_file_isatty): Likewise.
1089         * ui-out.c (do_cleanup_table_end): Likewise.
1090         (do_cleanup_end): Likewise.
1091         * user-regs.c (user_reg_add): Likewise.
1092         (user_reg_map_name_to_regnum): Likewise.
1093         (usernum_to_user_reg): Likewise.
1094         (maintenance_print_user_registers): Likewise.
1095         * utils.c (do_bfd_close_cleanup): Likewise.
1096         (do_fclose_cleanup): Likewise.
1097         (do_obstack_free): Likewise.
1098         (do_ui_file_delete): Likewise.
1099         (do_ui_out_redirect_pop): Likewise.
1100         (do_free_section_addr_info): Likewise.
1101         (restore_integer): Likewise.
1102         (do_unpush_target): Likewise.
1103         (do_htab_delete_cleanup): Likewise.
1104         (do_restore_ui_file): Likewise.
1105         (do_value_free): Likewise.
1106         (do_free_so): Likewise.
1107         (free_current_contents): Likewise.
1108         (do_regfree_cleanup): Likewise.
1109         (core_addr_hash): Likewise.
1110         (core_addr_eq): Likewise.
1111         (do_free_char_ptr_vec): Likewise.
1112         * v850-tdep.c (v850_frame_cache): Likewise.
1113         * varobj.c (do_free_variable_cleanup): Likewise.
1114         * vax-tdep.c (vax_supply_gregset): Likewise.
1115         (vax_frame_cache): Likewise.
1116         * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_cache): Likewise.
1117         * xml-support.c (gdb_xml_body_text): Likewise.
1118         (gdb_xml_values_cleanup): Likewise.
1119         (gdb_xml_start_element): Likewise.
1120         (gdb_xml_start_element_wrapper): Likewise.
1121         (gdb_xml_end_element): Likewise.
1122         (gdb_xml_end_element_wrapper): Likewise.
1123         (gdb_xml_cleanup): Likewise.
1124         (gdb_xml_fetch_external_entity): Likewise.
1125         (gdb_xml_parse_attr_enum): Likewise.
1126         (xinclude_start_include): Likewise.
1127         (xinclude_end_include): Likewise.
1128         (xml_xinclude_default): Likewise.
1129         (xml_xinclude_start_doctype): Likewise.
1130         (xml_xinclude_end_doctype): Likewise.
1131         (xml_xinclude_cleanup): Likewise.
1132         (xml_fetch_content_from_file): Likewise.
1133         * xml-syscall.c (free_syscalls_info): Likewise.
1134         (syscall_start_syscall): Likewise.
1135         * xml-tdesc.c (tdesc_end_arch): Likewise.
1136         (tdesc_end_osabi): Likewise.
1137         (tdesc_end_compatible): Likewise.
1138         (tdesc_start_target): Likewise.
1139         (tdesc_start_feature): Likewise.
1140         (tdesc_start_reg): Likewise.
1141         (tdesc_start_union): Likewise.
1142         (tdesc_start_struct): Likewise.
1143         (tdesc_start_flags): Likewise.
1144         (tdesc_start_field): Likewise.
1145         (tdesc_start_vector): Likewise.
1146         (fetch_available_features_from_target): Likewise.
1147         * xstormy16-tdep.c (xstormy16_frame_cache): Likewise.
1148         * xtensa-tdep.c (xtensa_supply_gregset): Likewise.
1149         (xtensa_frame_cache): Likewise.
1150         (xtensa_frame_prev_register): Likewise.
1151         (xtensa_extract_return_value): Likewise.
1152
1153 2015-09-25  Simon Marchi  <simon.marchi@ericsson.com>
1154
1155         * aarch64-tdep.c (aarch64_make_prologue_cache): Add cast(s).
1156         (aarch64_make_stub_cache): Likewise.
1157         (value_of_aarch64_user_reg): Likewise.
1158         * ada-lang.c (ada_inferior_data_cleanup): Likewise.
1159         (get_ada_inferior_data): Likewise.
1160         (get_ada_pspace_data): Likewise.
1161         (ada_pspace_data_cleanup): Likewise.
1162         (ada_complete_symbol_matcher): Likewise.
1163         (ada_exc_search_name_matches): Likewise.
1164         * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
1165         (get_ada_tasks_inferior_data): Likewise.
1166         * addrmap.c (addrmap_mutable_foreach_worker): Likewise.
1167         (splay_obstack_alloc): Likewise.
1168         (splay_obstack_free): Likewise.
1169         * alpha-linux-tdep.c (alpha_linux_supply_gregset): Likewise.
1170         (alpha_linux_collect_gregset): Likewise.
1171         (alpha_linux_supply_fpregset): Likewise.
1172         (alpha_linux_collect_fpregset): Likewise.
1173         * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
1174         * alpha-tdep.c (alpha_lds): Likewise.
1175         (alpha_sts): Likewise.
1176         (alpha_sigtramp_frame_unwind_cache): Likewise.
1177         (alpha_heuristic_frame_unwind_cache): Likewise.
1178         (alpha_supply_int_regs): Likewise.
1179         (alpha_fill_int_regs): Likewise.
1180         (alpha_supply_fp_regs): Likewise.
1181         (alpha_fill_fp_regs): Likewise.
1182         * alphanbsd-tdep.c (alphanbsd_supply_fpregset): Likewise.
1183         (alphanbsd_aout_supply_gregset): Likewise.
1184         (alphanbsd_supply_gregset): Likewise.
1185         * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
1186         (amd64_x32_linux_init_abi): Likewise.
1187         * amd64-nat.c (amd64_supply_native_gregset): Likewise.
1188         (amd64_collect_native_gregset): Likewise.
1189         * amd64-tdep.c (amd64_frame_cache): Likewise.
1190         (amd64_sigtramp_frame_cache): Likewise.
1191         (amd64_epilogue_frame_cache): Likewise.
1192         (amd64_supply_fxsave): Likewise.
1193         (amd64_supply_xsave): Likewise.
1194         (amd64_collect_fxsave): Likewise.
1195         (amd64_collect_xsave): Likewise.
1196         * amd64-windows-tdep.c (amd64_windows_frame_cache): Likewise.
1197         * amd64obsd-tdep.c (amd64obsd_trapframe_cache): Likewise.
1198         * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
1199         (arm_linux_collect_gregset): Likewise.
1200         (arm_linux_supply_nwfpe): Likewise.
1201         (arm_linux_collect_nwfpe): Likewise.
1202         (arm_linux_supply_vfp): Likewise.
1203         (arm_linux_collect_vfp): Likewise.
1204         * arm-tdep.c (arm_find_mapping_symbol): Likewise.
1205         (arm_prologue_unwind_stop_reason): Likewise.
1206         (arm_prologue_this_id): Likewise.
1207         (arm_prologue_prev_register): Likewise.
1208         (arm_exidx_data_free): Likewise.
1209         (arm_find_exidx_entry): Likewise.
1210         (arm_stub_this_id): Likewise.
1211         (arm_m_exception_this_id): Likewise.
1212         (arm_m_exception_prev_register): Likewise.
1213         (arm_normal_frame_base): Likewise.
1214         (gdb_print_insn_arm): Likewise.
1215         (arm_objfile_data_free): Likewise.
1216         (arm_record_special_symbol): Likewise.
1217         (value_of_arm_user_reg): Likewise.
1218         * armbsd-tdep.c (armbsd_supply_fpregset): Likewise.
1219         (armbsd_supply_gregset): Likewise.
1220         * auto-load.c (auto_load_pspace_data_cleanup): Likewise.
1221         (get_auto_load_pspace_data): Likewise.
1222         (hash_loaded_script_entry): Likewise.
1223         (eq_loaded_script_entry): Likewise.
1224         (clear_section_scripts): Likewise.
1225         (collect_matching_scripts): Likewise.
1226         * auxv.c (auxv_inferior_data_cleanup): Likewise.
1227         (get_auxv_inferior_data): Likewise.
1228         * avr-tdep.c (avr_frame_unwind_cache): Likewise.
1229         * ax-general.c (do_free_agent_expr_cleanup): Likewise.
1230         * bfd-target.c (target_bfd_xfer_partial): Likewise.
1231         (target_bfd_xclose): Likewise.
1232         (target_bfd_get_section_table): Likewise.
1233         * bfin-tdep.c (bfin_frame_cache): Likewise.
1234         * block.c (find_block_in_blockvector): Likewise.
1235         (call_site_for_pc): Likewise.
1236         (block_find_non_opaque_type_preferred): Likewise.
1237         * break-catch-sig.c (signal_catchpoint_insert_location): Likewise.
1238         (signal_catchpoint_remove_location): Likewise.
1239         (signal_catchpoint_breakpoint_hit): Likewise.
1240         (signal_catchpoint_print_one): Likewise.
1241         (signal_catchpoint_print_mention): Likewise.
1242         (signal_catchpoint_print_recreate): Likewise.
1243         * break-catch-syscall.c (get_catch_syscall_inferior_data): Likewise.
1244         * breakpoint.c (do_cleanup_counted_command_line): Likewise.
1245         (bp_location_compare_addrs): Likewise.
1246         (get_first_locp_gte_addr): Likewise.
1247         (check_tracepoint_command): Likewise.
1248         (do_map_commands_command): Likewise.
1249         (get_breakpoint_objfile_data): Likewise.
1250         (free_breakpoint_probes): Likewise.
1251         (do_captured_breakpoint_query): Likewise.
1252         (compare_breakpoints): Likewise.
1253         (bp_location_compare): Likewise.
1254         (bpstat_remove_breakpoint_callback): Likewise.
1255         (do_delete_breakpoint_cleanup): Likewise.
1256         * bsd-uthread.c (bsd_uthread_set_supply_uthread): Likewise.
1257         (bsd_uthread_set_collect_uthread): Likewise.
1258         (bsd_uthread_activate): Likewise.
1259         (bsd_uthread_fetch_registers): Likewise.
1260         (bsd_uthread_store_registers): Likewise.
1261         * btrace.c (check_xml_btrace_version): Likewise.
1262         (parse_xml_btrace_block): Likewise.
1263         (parse_xml_btrace_pt_config_cpu): Likewise.
1264         (parse_xml_btrace_pt_raw): Likewise.
1265         (parse_xml_btrace_pt): Likewise.
1266         (parse_xml_btrace_conf_bts): Likewise.
1267         (parse_xml_btrace_conf_pt): Likewise.
1268         (do_btrace_data_cleanup): Likewise.
1269         * c-typeprint.c (find_typedef_for_canonicalize): Likewise.
1270         * charset.c (cleanup_iconv): Likewise.
1271         (do_cleanup_iterator): Likewise.
1272         * cli-out.c (cli_uiout_dtor): Likewise.
1273         (cli_table_begin): Likewise.
1274         (cli_table_body): Likewise.
1275         (cli_table_end): Likewise.
1276         (cli_table_header): Likewise.
1277         (cli_begin): Likewise.
1278         (cli_end): Likewise.
1279         (cli_field_int): Likewise.
1280         (cli_field_skip): Likewise.
1281         (cli_field_string): Likewise.
1282         (cli_field_fmt): Likewise.
1283         (cli_spaces): Likewise.
1284         (cli_text): Likewise.
1285         (cli_message): Likewise.
1286         (cli_wrap_hint): Likewise.
1287         (cli_flush): Likewise.
1288         (cli_redirect): Likewise.
1289         (out_field_fmt): Likewise.
1290         (field_separator): Likewise.
1291         (cli_out_set_stream): Likewise.
1292         * cli/cli-cmds.c (compare_symtabs): Likewise.
1293         * cli/cli-dump.c (call_dump_func): Likewise.
1294         (restore_section_callback): Likewise.
1295         * cli/cli-script.c (clear_hook_in_cleanup): Likewise.
1296         (do_restore_user_call_depth): Likewise.
1297         (do_free_command_lines_cleanup): Likewise.
1298         * coff-pe-read.c (get_section_vmas): Likewise.
1299         (pe_as16): Likewise.
1300         (pe_as32): Likewise.
1301         * coffread.c (coff_symfile_read): Likewise.
1302         * common/agent.c (agent_look_up_symbols): Likewise.
1303         * common/filestuff.c (do_close_cleanup): Likewise.
1304         * common/format.c (free_format_pieces_cleanup): Likewise.
1305         * common/vec.c (vec_o_reserve): Likewise.
1306         * compile/compile-c-support.c (print_one_macro): Likewise.
1307         * compile/compile-c-symbols.c (hash_symbol_error): Likewise.
1308         (eq_symbol_error): Likewise.
1309         (del_symbol_error): Likewise.
1310         (error_symbol_once): Likewise.
1311         (gcc_convert_symbol): Likewise.
1312         (gcc_symbol_address): Likewise.
1313         (hash_symname): Likewise.
1314         (eq_symname): Likewise.
1315         * compile/compile-c-types.c (hash_type_map_instance): Likewise.
1316         (eq_type_map_instance): Likewise.
1317         (insert_type): Likewise.
1318         (convert_type): Likewise.
1319         * compile/compile-object-load.c (munmap_listp_free_cleanup): Likewise.
1320         (setup_sections): Likewise.
1321         (link_hash_table_free): Likewise.
1322         (copy_sections): Likewise.
1323         * compile/compile-object-run.c (do_module_cleanup): Likewise.
1324         * compile/compile.c (compile_print_value): Likewise.
1325         (do_rmdir): Likewise.
1326         (cleanup_compile_instance): Likewise.
1327         (cleanup_unlink_file): Likewise.
1328         * completer.c (free_completion_tracker): Likewise.
1329         * corelow.c (add_to_spuid_list): Likewise.
1330         * cp-namespace.c (reset_directive_searched): Likewise.
1331         * cp-support.c (reset_directive_searched): Likewise.
1332         * cris-tdep.c (cris_sigtramp_frame_unwind_cache): Likewise.
1333         (cris_frame_unwind_cache): Likewise.
1334         * d-lang.c (builtin_d_type): Likewise.
1335         * d-namespace.c (reset_directive_searched): Likewise.
1336         * dbxread.c (dbx_free_symfile_info): Likewise.
1337         (do_free_bincl_list_cleanup): Likewise.
1338         * disasm.c (hash_dis_line_entry): Likewise.
1339         (eq_dis_line_entry): Likewise.
1340         (dis_asm_print_address): Likewise.
1341         (fprintf_disasm): Likewise.
1342         (do_ui_file_delete): Likewise.
1343         * doublest.c (convert_floatformat_to_doublest): Likewise.
1344         * dummy-frame.c (pop_dummy_frame_bpt): Likewise.
1345         (dummy_frame_prev_register): Likewise.
1346         (dummy_frame_this_id): Likewise.
1347         * dwarf2-frame-tailcall.c (cache_hash): Likewise.
1348         (cache_eq): Likewise.
1349         (cache_find): Likewise.
1350         (tailcall_frame_this_id): Likewise.
1351         (dwarf2_tailcall_prev_register_first): Likewise.
1352         (tailcall_frame_prev_register): Likewise.
1353         (tailcall_frame_dealloc_cache): Likewise.
1354         (tailcall_frame_prev_arch): Likewise.
1355         * dwarf2-frame.c (dwarf2_frame_state_free): Likewise.
1356         (dwarf2_frame_set_init_reg): Likewise.
1357         (dwarf2_frame_init_reg): Likewise.
1358         (dwarf2_frame_set_signal_frame_p): Likewise.
1359         (dwarf2_frame_signal_frame_p): Likewise.
1360         (dwarf2_frame_set_adjust_regnum): Likewise.
1361         (dwarf2_frame_adjust_regnum): Likewise.
1362         (clear_pointer_cleanup): Likewise.
1363         (dwarf2_frame_cache): Likewise.
1364         (find_cie): Likewise.
1365         (dwarf2_frame_find_fde): Likewise.
1366         * dwarf2expr.c (dwarf_expr_address_type): Likewise.
1367         (free_dwarf_expr_context_cleanup): Likewise.
1368         * dwarf2loc.c (locexpr_find_frame_base_location): Likewise.
1369         (locexpr_get_frame_base): Likewise.
1370         (loclist_find_frame_base_location): Likewise.
1371         (loclist_get_frame_base): Likewise.
1372         (dwarf_expr_dwarf_call): Likewise.
1373         (dwarf_expr_get_base_type): Likewise.
1374         (dwarf_expr_push_dwarf_reg_entry_value): Likewise.
1375         (dwarf_expr_get_obj_addr): Likewise.
1376         (entry_data_value_coerce_ref): Likewise.
1377         (entry_data_value_copy_closure): Likewise.
1378         (entry_data_value_free_closure): Likewise.
1379         (get_frame_address_in_block_wrapper): Likewise.
1380         (dwarf2_evaluate_property): Likewise.
1381         (dwarf2_compile_property_to_c): Likewise.
1382         (needs_frame_read_addr_from_reg): Likewise.
1383         (needs_frame_get_reg_value): Likewise.
1384         (needs_frame_frame_base): Likewise.
1385         (needs_frame_frame_cfa): Likewise.
1386         (needs_frame_tls_address): Likewise.
1387         (needs_frame_dwarf_call): Likewise.
1388         (needs_dwarf_reg_entry_value): Likewise.
1389         (get_ax_pc): Likewise.
1390         (locexpr_read_variable): Likewise.
1391         (locexpr_read_variable_at_entry): Likewise.
1392         (locexpr_read_needs_frame): Likewise.
1393         (locexpr_describe_location): Likewise.
1394         (locexpr_tracepoint_var_ref): Likewise.
1395         (locexpr_generate_c_location): Likewise.
1396         (loclist_read_variable): Likewise.
1397         (loclist_read_variable_at_entry): Likewise.
1398         (loclist_describe_location): Likewise.
1399         (loclist_tracepoint_var_ref): Likewise.
1400         (loclist_generate_c_location): Likewise.
1401         * dwarf2read.c (line_header_hash_voidp): Likewise.
1402         (line_header_eq_voidp): Likewise.
1403         (dwarf2_has_info): Likewise.
1404         (dwarf2_get_section_info): Likewise.
1405         (locate_dwz_sections): Likewise.
1406         (hash_file_name_entry): Likewise.
1407         (eq_file_name_entry): Likewise.
1408         (delete_file_name_entry): Likewise.
1409         (dw2_setup): Likewise.
1410         (dw2_get_file_names_reader): Likewise.
1411         (dw2_find_pc_sect_compunit_symtab): Likewise.
1412         (hash_signatured_type): Likewise.
1413         (eq_signatured_type): Likewise.
1414         (add_signatured_type_cu_to_table): Likewise.
1415         (create_debug_types_hash_table): Likewise.
1416         (lookup_dwo_signatured_type): Likewise.
1417         (lookup_dwp_signatured_type): Likewise.
1418         (lookup_signatured_type): Likewise.
1419         (hash_type_unit_group): Likewise.
1420         (eq_type_unit_group): Likewise.
1421         (get_type_unit_group): Likewise.
1422         (process_psymtab_comp_unit_reader): Likewise.
1423         (sort_tu_by_abbrev_offset): Likewise.
1424         (process_skeletonless_type_unit): Likewise.
1425         (psymtabs_addrmap_cleanup): Likewise.
1426         (dwarf2_read_symtab): Likewise.
1427         (psymtab_to_symtab_1): Likewise.
1428         (die_hash): Likewise.
1429         (die_eq): Likewise.
1430         (load_full_comp_unit_reader): Likewise.
1431         (reset_die_in_process): Likewise.
1432         (free_cu_line_header): Likewise.
1433         (handle_DW_AT_stmt_list): Likewise.
1434         (hash_dwo_file): Likewise.
1435         (eq_dwo_file): Likewise.
1436         (hash_dwo_unit): Likewise.
1437         (eq_dwo_unit): Likewise.
1438         (create_dwo_cu_reader): Likewise.
1439         (create_dwo_unit_in_dwp_v1): Likewise.
1440         (create_dwo_unit_in_dwp_v2): Likewise.
1441         (lookup_dwo_unit_in_dwp): Likewise.
1442         (dwarf2_locate_dwo_sections): Likewise.
1443         (dwarf2_locate_common_dwp_sections): Likewise.
1444         (dwarf2_locate_v2_dwp_sections): Likewise.
1445         (hash_dwp_loaded_cutus): Likewise.
1446         (eq_dwp_loaded_cutus): Likewise.
1447         (lookup_dwo_cutu): Likewise.
1448         (abbrev_table_free_cleanup): Likewise.
1449         (dwarf2_free_abbrev_table): Likewise.
1450         (find_partial_die_in_comp_unit): Likewise.
1451         (free_line_header_voidp): Likewise.
1452         (follow_die_offset): Likewise.
1453         (follow_die_sig_1): Likewise.
1454         (free_heap_comp_unit): Likewise.
1455         (free_stack_comp_unit): Likewise.
1456         (dwarf2_free_objfile): Likewise.
1457         (per_cu_offset_and_type_hash): Likewise.
1458         (per_cu_offset_and_type_eq): Likewise.
1459         (get_die_type_at_offset): Likewise.
1460         (partial_die_hash): Likewise.
1461         (partial_die_eq): Likewise.
1462         (dwarf2_per_objfile_free): Likewise.
1463         (hash_strtab_entry): Likewise.
1464         (eq_strtab_entry): Likewise.
1465         (add_string): Likewise.
1466         (hash_symtab_entry): Likewise.
1467         (eq_symtab_entry): Likewise.
1468         (delete_symtab_entry): Likewise.
1469         (cleanup_mapped_symtab): Likewise.
1470         (add_indices_to_cpool): Likewise.
1471         (hash_psymtab_cu_index): Likewise.
1472         (eq_psymtab_cu_index): Likewise.
1473         (add_address_entry_worker): Likewise.
1474         (unlink_if_set): Likewise.
1475         (write_one_signatured_type): Likewise.
1476         (save_gdb_index_command): Likewise.
1477         * elfread.c (elf_symtab_read): Likewise.
1478         (elf_gnu_ifunc_cache_hash): Likewise.
1479         (elf_gnu_ifunc_cache_eq): Likewise.
1480         (elf_gnu_ifunc_record_cache): Likewise.
1481         (elf_gnu_ifunc_resolve_by_cache): Likewise.
1482         (elf_get_probes): Likewise.
1483         (probe_key_free): Likewise.
1484         * f-lang.c (builtin_f_type): Likewise.
1485         * frame-base.c (frame_base_append_sniffer): Likewise.
1486         (frame_base_set_default): Likewise.
1487         (frame_base_find_by_frame): Likewise.
1488         * frame-unwind.c (frame_unwind_prepend_unwinder): Likewise.
1489         (frame_unwind_append_unwinder): Likewise.
1490         (frame_unwind_find_by_frame): Likewise.
1491         * frame.c (frame_addr_hash): Likewise.
1492         (frame_addr_hash_eq): Likewise.
1493         (frame_stash_find): Likewise.
1494         (do_frame_register_read): Likewise.
1495         (unwind_to_current_frame): Likewise.
1496         (frame_cleanup_after_sniffer): Likewise.
1497         * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
1498         * frv-tdep.c (frv_frame_unwind_cache): Likewise.
1499         * ft32-tdep.c (ft32_frame_cache): Likewise.
1500         * gcore.c (do_bfd_delete_cleanup): Likewise.
1501         (gcore_create_callback): Likewise.
1502         * gdb_bfd.c (hash_bfd): Likewise.
1503         (eq_bfd): Likewise.
1504         (gdb_bfd_open): Likewise.
1505         (free_one_bfd_section): Likewise.
1506         (gdb_bfd_ref): Likewise.
1507         (gdb_bfd_unref): Likewise.
1508         (get_section_descriptor): Likewise.
1509         (gdb_bfd_map_section): Likewise.
1510         (gdb_bfd_crc): Likewise.
1511         (gdb_bfd_mark_parent): Likewise.
1512         (gdb_bfd_record_inclusion): Likewise.
1513         (gdb_bfd_requires_relocations): Likewise.
1514         (print_one_bfd): Likewise.
1515         * gdbtypes.c (type_pair_hash): Likewise.
1516         (type_pair_eq): Likewise.
1517         (builtin_type): Likewise.
1518         (objfile_type): Likewise.
1519         * gnu-v3-abi.c (vtable_ptrdiff_type): Likewise.
1520         (vtable_address_point_offset): Likewise.
1521         (gnuv3_get_vtable): Likewise.
1522         (hash_value_and_voffset): Likewise.
1523         (eq_value_and_voffset): Likewise.
1524         (compare_value_and_voffset): Likewise.
1525         (compute_vtable_size): Likewise.
1526         (gnuv3_get_typeid_type): Likewise.
1527         * go-lang.c (builtin_go_type): Likewise.
1528         * guile/scm-block.c (bkscm_hash_block_smob): Likewise.
1529         (bkscm_eq_block_smob): Likewise.
1530         (bkscm_objfile_block_map): Likewise.
1531         (bkscm_del_objfile_blocks): Likewise.
1532         * guile/scm-breakpoint.c (bpscm_build_bp_list): Likewise.
1533         * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker): Likewise.
1534         (gdbscm_disasm_print_address): Likewise.
1535         * guile/scm-frame.c (frscm_hash_frame_smob): Likewise.
1536         (frscm_eq_frame_smob): Likewise.
1537         (frscm_inferior_frame_map): Likewise.
1538         (frscm_del_inferior_frames): Likewise.
1539         * guile/scm-gsmob.c (gdbscm_add_objfile_ref): Likewise.
1540         * guile/scm-objfile.c (ofscm_handle_objfile_deleted): Likewise.
1541         (ofscm_objfile_smob_from_objfile): Likewise.
1542         * guile/scm-ports.c (ioscm_write): Likewise.
1543         (ioscm_file_port_delete): Likewise.
1544         (ioscm_file_port_rewind): Likewise.
1545         (ioscm_file_port_put): Likewise.
1546         (ioscm_file_port_write): Likewise.
1547         * guile/scm-progspace.c (psscm_handle_pspace_deleted): Likewise.
1548         (psscm_pspace_smob_from_pspace): Likewise.
1549         * guile/scm-safe-call.c (scscm_recording_pre_unwind_handler): Likewise.
1550         (scscm_recording_unwind_handler): Likewise.
1551         (gdbscm_with_catch): Likewise.
1552         (scscm_call_0_body): Likewise.
1553         (scscm_call_1_body): Likewise.
1554         (scscm_call_2_body): Likewise.
1555         (scscm_call_3_body): Likewise.
1556         (scscm_call_4_body): Likewise.
1557         (scscm_apply_1_body): Likewise.
1558         (scscm_eval_scheme_string): Likewise.
1559         (gdbscm_safe_eval_string): Likewise.
1560         (scscm_source_scheme_script): Likewise.
1561         (gdbscm_safe_source_script): Likewise.
1562         * guile/scm-string.c (gdbscm_call_scm_to_stringn): Likewise.
1563         (gdbscm_call_scm_from_stringn): Likewise.
1564         * guile/scm-symbol.c (syscm_hash_symbol_smob): Likewise.
1565         (syscm_eq_symbol_smob): Likewise.
1566         (syscm_get_symbol_map): Likewise.
1567         (syscm_del_objfile_symbols): Likewise.
1568         * guile/scm-symtab.c (stscm_hash_symtab_smob): Likewise.
1569         (stscm_eq_symtab_smob): Likewise.
1570         (stscm_objfile_symtab_map): Likewise.
1571         (stscm_del_objfile_symtabs): Likewise.
1572         * guile/scm-type.c (tyscm_hash_type_smob): Likewise.
1573         (tyscm_eq_type_smob): Likewise.
1574         (tyscm_type_map): Likewise.
1575         (tyscm_copy_type_recursive): Likewise.
1576         (save_objfile_types): Likewise.
1577         * guile/scm-utils.c (extract_arg): Likewise.
1578         * h8300-tdep.c (h8300_frame_cache): Likewise.
1579         * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Likewise.
1580         * hppa-tdep.c (compare_unwind_entries): Likewise.
1581         (find_unwind_entry): Likewise.
1582         (hppa_frame_cache): Likewise.
1583         (hppa_stub_frame_unwind_cache): Likewise.
1584         * hppanbsd-tdep.c (hppanbsd_supply_gregset): Likewise.
1585         * hppaobsd-tdep.c (hppaobsd_supply_gregset): Likewise.
1586         (hppaobsd_supply_fpregset): Likewise.
1587         * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1588         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
1589         * i386-tdep.c (i386_frame_cache): Likewise.
1590         (i386_epilogue_frame_cache): Likewise.
1591         (i386_sigtramp_frame_cache): Likewise.
1592         (i386_supply_gregset): Likewise.
1593         (i386_collect_gregset): Likewise.
1594         (i386_gdbarch_init): Likewise.
1595         * i386obsd-tdep.c (i386obsd_aout_supply_regset): Likewise.
1596         (i386obsd_trapframe_cache): Likewise.
1597         * i387-tdep.c (i387_supply_fsave): Likewise.
1598         (i387_collect_fsave): Likewise.
1599         (i387_supply_fxsave): Likewise.
1600         (i387_collect_fxsave): Likewise.
1601         (i387_supply_xsave): Likewise.
1602         (i387_collect_xsave): Likewise.
1603         * ia64-tdep.c (ia64_frame_cache): Likewise.
1604         (ia64_sigtramp_frame_cache): Likewise.
1605         * infcmd.c (attach_command_continuation): Likewise.
1606         (attach_command_continuation_free_args): Likewise.
1607         * inferior.c (restore_inferior): Likewise.
1608         (delete_thread_of_inferior): Likewise.
1609         * inflow.c (inflow_inferior_data_cleanup): Likewise.
1610         (get_inflow_inferior_data): Likewise.
1611         (inflow_inferior_exit): Likewise.
1612         * infrun.c (displaced_step_clear_cleanup): Likewise.
1613         (restore_current_uiout_cleanup): Likewise.
1614         (release_stop_context_cleanup): Likewise.
1615         (do_restore_infcall_suspend_state_cleanup): Likewise.
1616         (do_restore_infcall_control_state_cleanup): Likewise.
1617         (restore_inferior_ptid): Likewise.
1618         * inline-frame.c (block_starting_point_at): Likewise.
1619         * iq2000-tdep.c (iq2000_frame_cache): Likewise.
1620         * jit.c (get_jit_objfile_data): Likewise.
1621         (get_jit_program_space_data): Likewise.
1622         (jit_object_close_impl): Likewise.
1623         (jit_find_objf_with_entry_addr): Likewise.
1624         (jit_breakpoint_deleted): Likewise.
1625         (jit_unwind_reg_set_impl): Likewise.
1626         (jit_unwind_reg_get_impl): Likewise.
1627         (jit_dealloc_cache): Likewise.
1628         (jit_frame_sniffer): Likewise.
1629         (jit_frame_prev_register): Likewise.
1630         (jit_prepend_unwinder): Likewise.
1631         (jit_inferior_exit_hook): Likewise.
1632         (free_objfile_data): Likewise.
1633         * jv-lang.c (jv_per_objfile_free): Likewise.
1634         (get_dynamics_objfile): Likewise.
1635         (get_java_class_symtab): Likewise.
1636         (builtin_java_type): Likewise.
1637         * language.c (language_string_char_type): Likewise.
1638         (language_bool_type): Likewise.
1639         (language_lookup_primitive_type): Likewise.
1640         (language_lookup_primitive_type_as_symbol): Likewise.
1641         * linespec.c (hash_address_entry): Likewise.
1642         (eq_address_entry): Likewise.
1643         (iterate_inline_only): Likewise.
1644         (iterate_name_matcher): Likewise.
1645         (decode_line_2_compare_items): Likewise.
1646         (collect_one_symbol): Likewise.
1647         (compare_symbols): Likewise.
1648         (compare_msymbols): Likewise.
1649         (add_symtabs_to_list): Likewise.
1650         (collect_symbols): Likewise.
1651         (compare_msyms): Likewise.
1652         (add_minsym): Likewise.
1653         (cleanup_linespec_result): Likewise.
1654         * linux-fork.c (inferior_call_waitpid_cleanup): Likewise.
1655         * linux-nat.c (delete_lwp_cleanup): Likewise.
1656         (count_events_callback): Likewise.
1657         (select_event_lwp_callback): Likewise.
1658         (resume_stopped_resumed_lwps): Likewise.
1659         * linux-tdep.c (get_linux_gdbarch_data): Likewise.
1660         (invalidate_linux_cache_inf): Likewise.
1661         (get_linux_inferior_data): Likewise.
1662         (linux_find_memory_regions_thunk): Likewise.
1663         (linux_make_mappings_callback): Likewise.
1664         (linux_corefile_thread_callback): Likewise.
1665         (find_mapping_size): Likewise.
1666         * linux-thread-db.c (find_new_threads_callback): Likewise.
1667         * lm32-tdep.c (lm32_frame_cache): Likewise.
1668         * m2-lang.c (builtin_m2_type): Likewise.
1669         * m32c-tdep.c (m32c_analyze_frame_prologue): Likewise.
1670         * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_cache): Likewise.
1671         (m32r_linux_supply_gregset): Likewise.
1672         (m32r_linux_collect_gregset): Likewise.
1673         * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
1674         * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1675         * m68k-tdep.c (m68k_frame_cache): Likewise.
1676         * m68kbsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
1677         (m68kbsd_supply_gregset): Likewise.
1678         * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
1679         * m88k-tdep.c (m88k_frame_cache): Likewise.
1680         (m88k_supply_gregset): Likewise.
1681
1682 2015-09-25  Simon Marchi  <simon.marchi@ericsson.com>
1683
1684         * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Add cast
1685         to allocation result assignment.
1686         * ada-exp.y (write_object_renaming): Likewise.
1687         (write_ambiguous_var): Likewise.
1688         (ada_nget_field_index): Likewise.
1689         (write_var_or_type): Likewise.
1690         * ada-lang.c (ada_decode_symbol): Likewise.
1691         (ada_value_assign): Likewise.
1692         (value_pointer): Likewise.
1693         (cache_symbol): Likewise.
1694         (add_nonlocal_symbols): Likewise.
1695         (ada_name_for_lookup): Likewise.
1696         (symbol_completion_add): Likewise.
1697         (ada_to_fixed_type_1): Likewise.
1698         (ada_get_next_arg): Likewise.
1699         (defns_collected): Likewise.
1700         * ada-lex.l (processId): Likewise.
1701         (processString): Likewise.
1702         * ada-tasks.c (read_known_tasks_array): Likewise.
1703         (read_known_tasks_list): Likewise.
1704         * ada-typeprint.c (decoded_type_name): Likewise.
1705         * addrmap.c (addrmap_mutable_create_fixed): Likewise.
1706         * amd64-tdep.c (amd64_push_arguments): Likewise.
1707         (amd64_displaced_step_copy_insn): Likewise.
1708         (amd64_classify_insn_at): Likewise.
1709         (amd64_relocate_instruction): Likewise.
1710         * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
1711         * arch-utils.c (simple_displaced_step_copy_insn): Likewise.
1712         (initialize_current_architecture): Likewise.
1713         * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
1714         * arm-symbian-tdep.c (arm_symbian_osabi_sniffer): Likewise.
1715         * arm-tdep.c (arm_exidx_new_objfile): Likewise.
1716         (arm_push_dummy_call): Likewise.
1717         (extend_buffer_earlier): Likewise.
1718         (arm_adjust_breakpoint_address): Likewise.
1719         (arm_skip_stub): Likewise.
1720         * auto-load.c (filename_is_in_pattern): Likewise.
1721         (maybe_add_script_file): Likewise.
1722         (maybe_add_script_text): Likewise.
1723         (auto_load_objfile_script_1): Likewise.
1724         * auxv.c (ld_so_xfer_auxv): Likewise.
1725         * ax-general.c (new_agent_expr): Likewise.
1726         (grow_expr): Likewise.
1727         (ax_reg_mask): Likewise.
1728         * bcache.c (bcache_full): Likewise.
1729         * breakpoint.c (program_breakpoint_here_p): Likewise.
1730         * btrace.c (parse_xml_raw): Likewise.
1731         * build-id.c (build_id_to_debug_bfd): Likewise.
1732         * buildsym.c (end_symtab_with_blockvector): Likewise.
1733         * c-exp.y (string_exp): Likewise.
1734         (qualified_name): Likewise.
1735         (write_destructor_name): Likewise.
1736         (operator_stoken): Likewise.
1737         (parse_number): Likewise.
1738         (scan_macro_expansion): Likewise.
1739         (yylex): Likewise.
1740         (c_print_token): Likewise.
1741         * c-lang.c (c_get_string): Likewise.
1742         (emit_numeric_character): Likewise.
1743         * charset.c (wchar_iterate): Likewise.
1744         * cli/cli-cmds.c (complete_command): Likewise.
1745         (make_command): Likewise.
1746         * cli/cli-dump.c (restore_section_callback): Likewise.
1747         (restore_binary_file): Likewise.
1748         * cli/cli-interp.c (cli_interpreter_exec): Likewise.
1749         * cli/cli-script.c (execute_control_command): Likewise.
1750         * cli/cli-setshow.c (do_set_command): Likewise.
1751         * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
1752         (read_pe_exported_syms): Likewise.
1753         * coffread.c (coff_read_struct_type): Likewise.
1754         (coff_read_enum_type): Likewise.
1755         * common/btrace-common.c (btrace_data_append): Likewise.
1756         * common/buffer.c (buffer_grow): Likewise.
1757         * common/filestuff.c (gdb_fopen_cloexec): Likewise.
1758         * common/format.c (parse_format_string): Likewise.
1759         * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
1760         * common/xml-utils.c (xml_escape_text): Likewise.
1761         * compile/compile-object-load.c (copy_sections): Likewise.
1762         (compile_object_load): Likewise.
1763         * compile/compile-object-run.c (compile_object_run): Likewise.
1764         * completer.c (filename_completer): Likewise.
1765         * corefile.c (read_memory_typed_address): Likewise.
1766         (write_memory_unsigned_integer): Likewise.
1767         (write_memory_signed_integer): Likewise.
1768         (complete_set_gnutarget): Likewise.
1769         * corelow.c (get_core_register_section): Likewise.
1770         * cp-name-parser.y (d_grab): Likewise.
1771         (allocate_info): Likewise.
1772         (cp_new_demangle_parse_info): Likewise.
1773         * cp-namespace.c (cp_scan_for_anonymous_namespaces): Likewise.
1774         (cp_lookup_symbol_in_namespace): Likewise.
1775         (lookup_namespace_scope): Likewise.
1776         (find_symbol_in_baseclass): Likewise.
1777         (cp_lookup_nested_symbol): Likewise.
1778         (cp_lookup_transparent_type_loop): Likewise.
1779         * cp-support.c (copy_string_to_obstack): Likewise.
1780         (make_symbol_overload_list): Likewise.
1781         (make_symbol_overload_list_namespace): Likewise.
1782         (make_symbol_overload_list_adl_namespace): Likewise.
1783         (first_component_command): Likewise.
1784         * cp-valprint.c (cp_print_value): Likewise.
1785         * ctf.c (ctf_xfer_partial): Likewise.
1786         * d-exp.y (StringExp): Likewise.
1787         * d-namespace.c (d_lookup_symbol_in_module): Likewise.
1788         (lookup_module_scope): Likewise.
1789         (find_symbol_in_baseclass): Likewise.
1790         (d_lookup_nested_symbol): Likewise.
1791         * dbxread.c (find_stab_function_addr): Likewise.
1792         (read_dbx_symtab): Likewise.
1793         (dbx_end_psymtab): Likewise.
1794         (cp_set_block_scope): Likewise.
1795         * dcache.c (dcache_alloc): Likewise.
1796         * demangle.c (_initialize_demangler): Likewise.
1797         * dicos-tdep.c (dicos_load_module_p): Likewise.
1798         * dictionary.c (dict_create_hashed_expandable): Likewise.
1799         (dict_create_linear_expandable): Likewise.
1800         (expand_hashtable): Likewise.
1801         (add_symbol_linear_expandable): Likewise.
1802         * dwarf2-frame.c (add_cie): Likewise.
1803         (add_fde): Likewise.
1804         (dwarf2_build_frame_info): Likewise.
1805         * dwarf2expr.c (dwarf_expr_grow_stack): Likewise.
1806         (dwarf_expr_fetch_address): Likewise.
1807         (add_piece): Likewise.
1808         (execute_stack_op): Likewise.
1809         * dwarf2loc.c (chain_candidate): Likewise.
1810         (dwarf_entry_parameter_to_value): Likewise.
1811         (read_pieced_value): Likewise.
1812         (write_pieced_value): Likewise.
1813         * dwarf2read.c (dwarf2_read_section): Likewise.
1814         (add_type_unit): Likewise.
1815         (read_comp_units_from_section): Likewise.
1816         (fixup_go_packaging): Likewise.
1817         (dwarf2_compute_name): Likewise.
1818         (dwarf2_physname): Likewise.
1819         (create_dwo_unit_in_dwp_v1): Likewise.
1820         (create_dwo_unit_in_dwp_v2): Likewise.
1821         (read_func_scope): Likewise.
1822         (read_call_site_scope): Likewise.
1823         (dwarf2_attach_fields_to_type): Likewise.
1824         (process_structure_scope): Likewise.
1825         (mark_common_block_symbol_computed): Likewise.
1826         (read_common_block): Likewise.
1827         (abbrev_table_read_table): Likewise.
1828         (guess_partial_die_structure_name): Likewise.
1829         (fixup_partial_die): Likewise.
1830         (add_file_name): Likewise.
1831         (dwarf2_const_value_data): Likewise.
1832         (dwarf2_const_value_attr): Likewise.
1833         (build_error_marker_type): Likewise.
1834         (guess_full_die_structure_name): Likewise.
1835         (anonymous_struct_prefix): Likewise.
1836         (typename_concat): Likewise.
1837         (dwarf2_canonicalize_name): Likewise.
1838         (dwarf2_name): Likewise.
1839         (write_constant_as_bytes): Likewise.
1840         (dwarf2_fetch_constant_bytes): Likewise.
1841         (copy_string): Likewise.
1842         (parse_macro_definition): Likewise.
1843         * elfread.c (elf_symfile_segments): Likewise.
1844         (elf_rel_plt_read): Likewise.
1845         (elf_gnu_ifunc_resolve_by_cache): Likewise.
1846         (elf_gnu_ifunc_resolve_by_got): Likewise.
1847         (elf_read_minimal_symbols): Likewise.
1848         (elf_gnu_ifunc_record_cache): Likewise.
1849         * event-top.c (top_level_prompt): Likewise.
1850         (command_line_handler): Likewise.
1851         * exec.c (resize_section_table): Likewise.
1852         * expprint.c (print_subexp_standard): Likewise.
1853         * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
1854         * findcmd.c (parse_find_args): Likewise.
1855         * findvar.c (address_from_register): Likewise.
1856         * frame.c (get_prev_frame_always): Likewise.
1857         * gdb_bfd.c (gdb_bfd_ref): Likewise.
1858         (get_section_descriptor): Likewise.
1859         * gdb_obstack.c (obconcat): Likewise.
1860         (obstack_strdup): Likewise.
1861         * gdbtypes.c (lookup_function_type_with_arguments): Likewise.
1862         (create_set_type): Likewise.
1863         (lookup_unsigned_typename): Likewise.
1864         (lookup_signed_typename): Likewise.
1865         (resolve_dynamic_union): Likewise.
1866         (resolve_dynamic_struct): Likewise.
1867         (add_dyn_prop): Likewise.
1868         (copy_dynamic_prop_list): Likewise.
1869         (arch_flags_type): Likewise.
1870         (append_composite_type_field_raw): Likewise.
1871         * gdbtypes.h (INIT_FUNC_SPECIFIC): Likewise.
1872         * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
1873         * go-exp.y (string_exp): Likewise.
1874         * go-lang.c (go_demangle): Likewise.
1875         * guile/guile.c (compute_scheme_string): Likewise.
1876         * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1877         (gdbscm_canonicalize_command_name): Likewise.
1878         * guile/scm-ports.c (ioscm_init_stdio_buffers): Likewise.
1879         (ioscm_init_memory_port): Likewise.
1880         (ioscm_reinit_memory_port): Likewise.
1881         * guile/scm-utils.c (gdbscm_gc_xstrdup): Likewise.
1882         (gdbscm_gc_dup_argv): Likewise.
1883         * h8300-tdep.c (h8300_push_dummy_call): Likewise.
1884         * hppa-tdep.c (internalize_unwinds): Likewise.
1885         (read_unwind_info): Likewise.
1886         * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1887         (windows_core_xfer_shared_libraries): Likewise.
1888         * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
1889         (i386_stap_parse_special_token_triplet): Likewise.
1890         (i386_stap_parse_special_token_three_arg_disp): Likewise.
1891         * i386obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
1892         * inf-child.c (inf_child_fileio_readlink): Likewise.
1893         * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
1894         (inf_ptrace_store_register): Likewise.
1895         * infrun.c (follow_exec): Likewise.
1896         (displaced_step_prepare_throw): Likewise.
1897         (save_stop_context): Likewise.
1898         (save_infcall_suspend_state): Likewise.
1899         * jit.c (jit_read_descriptor): Likewise.
1900         (jit_read_code_entry): Likewise.
1901         (jit_symtab_line_mapping_add_impl): Likewise.
1902         (finalize_symtab): Likewise.
1903         (jit_unwind_reg_get_impl): Likewise.
1904         * jv-exp.y (QualifiedName): Likewise.
1905         * jv-lang.c (get_java_utf8_name): Likewise.
1906         (type_from_class): Likewise.
1907         (java_demangle_type_signature): Likewise.
1908         (java_class_name_from_physname): Likewise.
1909         * jv-typeprint.c (java_type_print_base): Likewise.
1910         * jv-valprint.c (java_value_print): Likewise.
1911         * language.c (add_language): Likewise.
1912         * linespec.c (add_sal_to_sals_basic): Likewise.
1913         (add_sal_to_sals): Likewise.
1914         (decode_objc): Likewise.
1915         (find_linespec_symbols): Likewise.
1916         * linux-fork.c (fork_save_infrun_state): Likewise.
1917         * linux-nat.c (linux_nat_detach): Likewise.
1918         (linux_nat_fileio_readlink): Likewise.
1919         * linux-record.c (record_linux_sockaddr): Likewise.
1920         (record_linux_msghdr): Likewise.
1921         (Do): Likewise.
1922         * linux-tdep.c (linux_core_info_proc_mappings): Likewise.
1923         (linux_collect_regset_section_cb): Likewise.
1924         (linux_get_siginfo_data): Likewise.
1925         * linux-thread-db.c (try_thread_db_load_from_pdir_1): Likewise.
1926         (try_thread_db_load_from_dir): Likewise.
1927         (thread_db_load_search): Likewise.
1928         (info_auto_load_libthread_db): Likewise.
1929         * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
1930         (m32c_m16c_pointer_to_address): Likewise.
1931         * m68hc11-tdep.c (m68hc11_pseudo_register_write): Likewise.
1932         * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
1933         * machoread.c (macho_check_dsym): Likewise.
1934         * macroexp.c (resize_buffer): Likewise.
1935         (gather_arguments): Likewise.
1936         (maybe_expand): Likewise.
1937         * macrotab.c (new_macro_key): Likewise.
1938         (new_source_file): Likewise.
1939         (new_macro_definition): Likewise.
1940         * mdebugread.c (parse_symbol): Likewise.
1941         (parse_type): Likewise.
1942         (parse_partial_symbols): Likewise.
1943         (psymtab_to_symtab_1): Likewise.
1944         * mem-break.c (default_memory_insert_breakpoint): Likewise.
1945         * mi/mi-cmd-break.c (mi_argv_to_format): Likewise.
1946         * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
1947         (mi_cmd_data_read_memory_bytes): Likewise.
1948         (mi_cmd_data_write_memory_bytes): Likewise.
1949         (mi_cmd_trace_frame_collected): Likewise.
1950         * mi/mi-parse.c (mi_parse_argv): Likewise.
1951         (mi_parse): Likewise.
1952         * minidebug.c (lzma_open): Likewise.
1953         (lzma_pread): Likewise.
1954         * mips-tdep.c (mips_read_fp_register_single): Likewise.
1955         (mips_print_fp_register): Likewise.
1956         * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
1957         * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
1958         * mt-tdep.c (mt_register_name): Likewise.
1959         (mt_registers_info): Likewise.
1960         (mt_push_dummy_call): Likewise.
1961         * namespace.c (add_using_directive): Likewise.
1962         * nat/linux-btrace.c (perf_event_read): Likewise.
1963         (linux_enable_bts): Likewise.
1964         * nat/linux-osdata.c (linux_common_core_of_thread): Likewise.
1965         * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Likewise.
1966         * nto-tdep.c (nto_find_and_open_solib): Likewise.
1967         (nto_parse_redirection): Likewise.
1968         * objc-lang.c (objc_demangle): Likewise.
1969         (find_methods): Likewise.
1970         * objfiles.c (get_objfile_bfd_data): Likewise.
1971         (set_objfile_main_name): Likewise.
1972         (allocate_objfile): Likewise.
1973         (objfile_relocate): Likewise.
1974         (update_section_map): Likewise.
1975         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
1976         * p-exp.y (exp): Likewise.
1977         (yylex): Likewise.
1978         * p-valprint.c (pascal_object_print_value): Likewise.
1979         * parse.c (initialize_expout): Likewise.
1980         (mark_completion_tag): Likewise.
1981         (copy_name): Likewise.
1982         (parse_float): Likewise.
1983         (type_stack_reserve): Likewise.
1984         * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
1985         (ppu2spu_prev_register): Likewise.
1986         * ppc-ravenscar-thread.c (supply_register_at_address): Likewise.
1987         * printcmd.c (printf_wide_c_string): Likewise.
1988         (printf_pointer): Likewise.
1989         * probe.c (parse_probes): Likewise.
1990         * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1991         (cmdpy_init): Likewise.
1992         * python/py-gdb-readline.c (gdbpy_readline_wrapper): Likewise.
1993         * python/py-symtab.c (set_sal): Likewise.
1994         * python/py-unwind.c (pyuw_sniffer): Likewise.
1995         * python/python.c (python_interactive_command): Likewise.
1996         (compute_python_string): Likewise.
1997         * ravenscar-thread.c (get_running_thread_id): Likewise.
1998         * record-full.c (record_full_exec_insn): Likewise.
1999         (record_full_core_open_1): Likewise.
2000         * regcache.c (regcache_raw_read_signed): Likewise.
2001         (regcache_raw_read_unsigned): Likewise.
2002         (regcache_cooked_read_signed): Likewise.
2003         (regcache_cooked_read_unsigned): Likewise.
2004         * remote-fileio.c (remote_fileio_func_open): Likewise.
2005         (remote_fileio_func_rename): Likewise.
2006         (remote_fileio_func_unlink): Likewise.
2007         (remote_fileio_func_stat): Likewise.
2008         (remote_fileio_func_system): Likewise.
2009         * remote-mips.c (mips_xfer_memory): Likewise.
2010         (mips_load_srec): Likewise.
2011         (pmon_end_download): Likewise.
2012         * remote.c (new_remote_state): Likewise.
2013         (map_regcache_remote_table): Likewise.
2014         (remote_register_number_and_offset): Likewise.
2015         (init_remote_state): Likewise.
2016         (get_memory_packet_size): Likewise.
2017         (remote_pass_signals): Likewise.
2018         (remote_program_signals): Likewise.
2019         (remote_start_remote): Likewise.
2020         (remote_check_symbols): Likewise.
2021         (remote_query_supported): Likewise.
2022         (extended_remote_attach): Likewise.
2023         (process_g_packet): Likewise.
2024         (store_registers_using_G): Likewise.
2025         (putpkt_binary): Likewise.
2026         (read_frame): Likewise.
2027         (compare_sections_command): Likewise.
2028         (remote_hostio_pread): Likewise.
2029         (remote_hostio_readlink): Likewise.
2030         (remote_file_put): Likewise.
2031         (remote_file_get): Likewise.
2032         (remote_pid_to_exec_file): Likewise.
2033         (_initialize_remote): Likewise.
2034         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
2035         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
2036         * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
2037         (bfd_uses_spe_extensions): Likewise.
2038         * s390-linux-tdep.c (s390_displaced_step_copy_insn): Likewise.
2039         * score-tdep.c (score7_malloc_and_get_memblock): Likewise.
2040         * solib-dsbt.c (decode_loadmap): Likewise.
2041         (fetch_loadmap): Likewise.
2042         (scan_dyntag): Likewise.
2043         (enable_break): Likewise.
2044         (dsbt_relocate_main_executable): Likewise.
2045         * solib-frv.c (fetch_loadmap): Likewise.
2046         (enable_break2): Likewise.
2047         (frv_relocate_main_executable): Likewise.
2048         * solib-spu.c (spu_relocate_main_executable): Likewise.
2049         (spu_bfd_open): Likewise.
2050         * solib-svr4.c (lm_info_read): Likewise.
2051         (read_program_header): Likewise.
2052         (find_program_interpreter): Likewise.
2053         (scan_dyntag): Likewise.
2054         (elf_locate_base): Likewise.
2055         (open_symbol_file_object): Likewise.
2056         (read_program_headers_from_bfd): Likewise.
2057         (svr4_relocate_main_executable): Likewise.
2058         * solib-target.c (solib_target_relocate_section_addresses): Likewise.
2059         * solib.c (solib_find_1): Likewise.
2060         (exec_file_find): Likewise.
2061         (solib_find): Likewise.
2062         * source.c (openp): Likewise.
2063         (print_source_lines_base): Likewise.
2064         (forward_search_command): Likewise.
2065         * sparc-ravenscar-thread.c (supply_register_at_address): Likewise.
2066         * spu-tdep.c (spu2ppu_prev_register): Likewise.
2067         (spu_get_overlay_table): Likewise.
2068         * stabsread.c (patch_block_stabs): Likewise.
2069         (define_symbol): Likewise.
2070         (again:): Likewise.
2071         (read_member_functions): Likewise.
2072         (read_one_struct_field): Likewise.
2073         (read_enum_type): Likewise.
2074         (common_block_start): Likewise.
2075         * stack.c (read_frame_arg): Likewise.
2076         (backtrace_command): Likewise.
2077         * stap-probe.c (stap_parse_register_operand): Likewise.
2078         * symfile.c (syms_from_objfile_1): Likewise.
2079         (find_separate_debug_file): Likewise.
2080         (load_command): Likewise.
2081         (load_progress): Likewise.
2082         (load_section_callback): Likewise.
2083         (reread_symbols): Likewise.
2084         (add_filename_language): Likewise.
2085         (allocate_compunit_symtab): Likewise.
2086         (read_target_long_array): Likewise.
2087         (simple_read_overlay_table): Likewise.
2088         * symtab.c (symbol_set_names): Likewise.
2089         (resize_symbol_cache): Likewise.
2090         (rbreak_command): Likewise.
2091         (completion_list_add_name): Likewise.
2092         (completion_list_objc_symbol): Likewise.
2093         (add_filename_to_list): Likewise.
2094         * target-descriptions.c (maint_print_c_tdesc_cmd): Likewise.
2095         * target-memory.c (target_write_memory_blocks): Likewise.
2096         * target.c (target_read_string): Likewise.
2097         (read_whatever_is_readable): Likewise.
2098         (target_read_alloc_1): Likewise.
2099         (simple_search_memory): Likewise.
2100         (target_fileio_read_alloc_1): Likewise.
2101         * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
2102         * top.c (command_line_input): Likewise.
2103         * tracefile-tfile.c (tfile_fetch_registers): Likewise.
2104         * tracefile.c (tracefile_fetch_registers): Likewise.
2105         * tracepoint.c (add_memrange): Likewise.
2106         (init_collection_list): Likewise.
2107         (add_aexpr): Likewise.
2108         (trace_dump_actions): Likewise.
2109         (parse_trace_status): Likewise.
2110         (parse_tracepoint_definition): Likewise.
2111         (parse_tsv_definition): Likewise.
2112         (parse_static_tracepoint_marker_definition): Likewise.
2113         * tui/tui-file.c (tui_sfileopen): Likewise.
2114         (tui_file_adjust_strbuf): Likewise.
2115         * tui/tui-io.c (tui_expand_tabs): Likewise.
2116         * tui/tui-source.c (tui_set_source_content): Likewise.
2117         * typeprint.c (find_global_typedef): Likewise.
2118         * ui-file.c (do_ui_file_xstrdup): Likewise.
2119         (ui_file_obsavestring): Likewise.
2120         (mem_file_write): Likewise.
2121         * utils.c (make_hex_string): Likewise.
2122         (get_regcomp_error): Likewise.
2123         (puts_filtered_tabular): Likewise.
2124         (gdb_realpath_keepfile): Likewise.
2125         (ldirname): Likewise.
2126         (gdb_bfd_errmsg): Likewise.
2127         (substitute_path_component): Likewise.
2128         * valops.c (search_struct_method): Likewise.
2129         (find_oload_champ_namespace_loop): Likewise.
2130         * valprint.c (print_decimal_chars): Likewise.
2131         (read_string): Likewise.
2132         (generic_emit_char): Likewise.
2133         * varobj.c (varobj_delete): Likewise.
2134         (varobj_value_get_print_value): Likewise.
2135         * vaxobsd-tdep.c (vaxobsd_sigtramp_sniffer): Likewise.
2136         * windows-tdep.c (display_one_tib): Likewise.
2137         * xcoffread.c (read_xcoff_symtab): Likewise.
2138         (process_xcoff_symbol): Likewise.
2139         (swap_sym): Likewise.
2140         (scan_xcoff_symtab): Likewise.
2141         (xcoff_initial_scan): Likewise.
2142         * xml-support.c (gdb_xml_end_element): Likewise.
2143         (xml_process_xincludes): Likewise.
2144         (xml_fetch_content_from_file): Likewise.
2145         * xml-syscall.c (xml_list_of_syscalls): Likewise.
2146         * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
2147
2148 2015-09-23  James Bowman  <james.bowman@ftdichip.com>
2149
2150         * ft32-tdep.c (ft32_register_type): Return gdbarch_tdep (gdbarch)->pc_type
2151         instead of builtin_func_ptr.
2152         (ft32_pointer_to_address): New function.
2153         (ft32_address_class_type_flags): New function.
2154         (ft32_address_class_type_flags_to_name): New function.
2155         (ft32_address_class_name_to_type_flags): New function.
2156         (ft32_gdbarch_init): Set tdep->pc_type.  Call
2157         set_gdbarch_pointer_to_address,
2158         set_gdbarch_address_class_type_flags
2159         set_gdbarch_address_class_name_to_type_flags,
2160         and set_gdbarch_address_class_type_flags_to_name.
2161         * ft32-tdep.h (struct gdbarch_tdep) <pc_type>: New field.
2162
2163 2015-09-23  Pierre-Marie de Rodat  <derodat@adacore.com>
2164
2165         * ada-lang.c (ada_evaluate_subexp) <OP_FUNCALL>: When the input
2166         value is a reference, actually dereference it in order to get
2167         the underlying value.
2168
2169 2015-09-22  Simon Marchi  <simon.marchi@ericsson.com>
2170
2171         * stap-probe.c (handle_stap_probe): Remove unnecessary cast.
2172
2173 2015-09-21  Simon Marchi  <simon.marchi@ericsson.com>
2174
2175         * cli/cli-setshow.c (cmd_show_list): Constify a variable.
2176         * linespec.c (linespec_lexer_lex_string): Same.
2177
2178 2015-09-21  Pierre Langlois  <pierre.langlois@arm.com>
2179
2180         * NEWS: Mention support for fast tracepoints on aarch64-linux.
2181
2182 2015-09-21  Pierre Langlois  <pierre.langlois@arm.com>
2183
2184         * aarch64-tdep.c (aarch64_analyze_prologue): New is_adrp
2185         variable.  Call aarch64_decode_adr instead of
2186         aarch64_decode_adrp.
2187         * arch/aarch64-insn.h (aarch64_decode_adrp): Delete.
2188         (aarch64_decode_adr): New function declaration.
2189         * arch/aarch64-insn.c (aarch64_decode_adrp): Delete.
2190         (aarch64_decode_adr): New function, factored out from
2191         aarch64_decode_adrp to decode both adr and adrp instructions.
2192
2193 2015-09-21  Pierre Langlois  <pierre.langlois@arm.com>
2194
2195         * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-insn.o.
2196         (HFILES_NO_SRCDIR): Add arch/aarch64-insn.h.
2197         (aarch64-insn.o): New rule.
2198         * configure.tgt (aarch64*-*-elf): Add aarch64-insn.o.
2199         (aarch64*-*-linux*): Likewise.
2200         * arch/aarch64-insn.c: New file.
2201         * arch/aarch64-insn.h: New file.
2202         * aarch64-tdep.c: Include arch/aarch64-insn.h.
2203         (aarch64_debug): Move to arch/aarch64-insn.c.  Declare in
2204         arch/aarch64-insn.h.
2205         (decode_add_sub_imm): Rename to ...
2206         (aarch64_decode_add_sub_imm): ... this.
2207         (decode_adrp): Rename to ...
2208         (aarch64_decode_adrp): ... this.  Move to arch/aarch64-insn.c.
2209         Declare in arch/aarch64-insn.h.
2210         (decode_b): Rename to ...
2211         (aarch64_decode_b): ... this.  Move to arch/aarch64-insn.c.
2212         Declare in arch/aarch64-insn.h.
2213         (decode_bcond): Rename to ...
2214         (aarch64_decode_bcond): ... this.  Move to arch/aarch64-insn.c.
2215         Declare in arch/aarch64-insn.h.
2216         (decode_br): Rename to ...
2217         (aarch64_decode_br): ... this.
2218         (decode_cb): Rename to ...
2219         (aarch64_decode_cb): ... this.  Move to arch/aarch64-insn.c.
2220         Declare in arch/aarch64-insn.h.
2221         (decode_eret): Rename to ...
2222         (aarch64_decode_eret): ... this.
2223         (decode_movz): Rename to ...
2224         (aarch64_decode_movz): ... this.
2225         (decode_orr_shifted_register_x): Rename to ...
2226         (aarch64_decode_orr_shifted_register_x): ... this.
2227         (decode_ret): Rename to ...
2228         (aarch64_decode_ret): ... this.
2229         (decode_stp_offset): Rename to ...
2230         (aarch64_decode_stp_offset): ... this.
2231         (decode_stp_offset_wb): Rename to ...
2232         (aarch64_decode_stp_offset_wb): ... this.
2233         (decode_stur): Rename to ...
2234         (aarch64_decode_stur): ... this.
2235         (decode_tb): Rename to ...
2236         (aarch64_decode_tb): ... this.  Move to arch/aarch64-insn.c.
2237         Declare in arch/aarch64-insn.h.
2238         (aarch64_analyze_prologue): Adjust calls to renamed functions.
2239
2240 2015-09-20  Doug Evans  <xdje42@gmail.com>
2241
2242         * dwarf2read.c (add_partial_symbol): Remove outdated comments.
2243
2244 2015-09-20  Doug Evans  <xdje42@gmail.com>
2245
2246         * dwarf2read.c (dwarf2_compute_name): Add FIXME.  Don't use a local
2247         variable name that collides with a parameter.
2248
2249 2015-09-20  Joel Brobecker  <brobecker@adacore.com>
2250
2251         * dwarf2loc.c (locexpr_get_frame_base): Renames
2252         block_op_get_frame_base.
2253         (dwarf2_block_frame_base_locexpr_funcs): Replace reference to
2254         block_op_get_frame_base by reference to locexpr_get_frame_base.
2255         (loclist_get_frame_base): New function, near identical copy of
2256         locexpr_get_frame_base.
2257         (dwarf2_block_frame_base_loclist_funcs): Replace reference to
2258         block_op_get_frame_base by reference to loclist_get_frame_base.
2259
2260 2015-09-19  Doug Evans  <xdje42@gmail.com>
2261
2262         * ravenscar-thread.c (ravenscar_inferior_created): Replace
2263         current_inferior ()->gdbarch with its wrapper target_gdbarch.
2264
2265 2015-09-18  Doug Evans  <xdje42@gmail.com>
2266
2267         * linux-thread-db.c (record_thread): Return the created thread.
2268         (thread_from_lwp): Likewise.
2269         (thread_db_get_thread_local_address): Update.
2270
2271 2015-09-18  Doug Evans  <xdje42@gmail.com>
2272
2273         * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
2274         move only member demangled_name up.  All uses updated.
2275
2276 2015-09-18  Doug Evans  <xdje42@gmail.com>
2277
2278         * findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
2279         kind of minimal symbol in the error message.
2280         * objfiles.c (objfile_flavour_name): New function.
2281         * objfiles.h (objfile_flavour_name): Declare.
2282
2283 2015-09-18  Yao Qi  <yao.qi@linaro.org>
2284
2285         * nat/aarch64-linux.c: Include elf/common.h,
2286         nat/gdb_ptrace.h, asm/ptrace.h and sys/uio.h.
2287         (aarch64_ps_get_thread_area): New function.
2288         * nat/aarch64-linux.h: Include gdb_proc_service.h.
2289         (aarch64_ps_get_thread_area): Declare.
2290         * aarch64-linux-nat.c (ps_get_thread_area): Call
2291         aarch64_ps_get_thread_area.
2292
2293 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2294
2295         * record-btrace.c (record_btrace_resume): Honour scheduler-locking.
2296
2297 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2298
2299         * NEWS: Announce new scheduler-locking mode.
2300         * infrun.c (schedlock_replay): New.
2301         (scheduler_enums): Add schedlock_replay.
2302         (scheduler_mode): Change default to schedlock_replay.
2303         (user_visible_resume_ptid): Handle schedlock_replay.
2304         (clear_proceed_status_thread): Stop replaying if resumed thread is
2305         not replaying.
2306         (schedlock_applies): Handle schedlock_replay.
2307         (_initialize_infrun): Document new scheduler-locking mode.
2308         * record-btrace.c (record_btrace_resume): Remove code to stop other
2309         threads when not replaying the resumed thread.
2310
2311 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2312
2313         * record-btrace.c ((record_btrace_will_replay): New.
2314         (init_record_btrace_ops): Initialize to_record_will_replay.
2315         * record-full.c ((record_full_will_replay): New.
2316         (init_record_full_ops): Initialize to_record_will_replay.
2317         * target-delegates.c: Regenerated.
2318         * target.c (target_record_will_replay): New.
2319         * target.h (struct target_ops) <to_record_will_replay>: New.
2320         (target_record_will_replay): New.
2321
2322 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2323
2324         * record-btrace.c (record_btrace_resume): Call
2325         target_record_stop_replaying.
2326         (record_btrace_stop_replaying_all): New.
2327         (init_record_btrace_ops): Initialize to_record_stop_replaying.
2328         * record-full.c (record_full_stop_replaying): New.
2329         (init_record_full_ops ): Initialize to_record_stop_replaying.
2330         * target-delegates.c: Regenerated.
2331         * target.c (target_record_stop_replaying): New.
2332         * target.h (struct target_ops) <to_record_stop_replaying>: New.
2333         (target_record_stop_replaying): New.
2334
2335 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2336
2337         * record-btrace.c (record_btrace_xfer_partial)
2338         (record_btrace_store_registers, record_btrace_prepare_to_store):
2339         Call record_btrace_is_replaying with inferior_ptid instead of
2340         minus_one_ptid.
2341         (record_btrace_store_registers): Change error message.
2342
2343 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2344
2345         * record-btrace.c (record_btrace_is_replaying): Add ptid argument.
2346         Update users to pass minus_one_ptid.
2347         * record-full.c (record_full_is_replaying): Add ptid argument (ignored).
2348         * record.c (cmd_record_delete): Pass inferior_ptid to
2349         target_record_is_replaying.
2350         * target-delegates.c: Regenerated.
2351         * target.c (target_record_is_replaying): Add ptid argument.
2352         * target.h (struct target_ops) <to_record_is_replaying>: Add ptid
2353         argument.
2354         (target_record_is_replaying): Add ptid argument.
2355
2356 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2357
2358         * record-btrace.c (record_btrace_open): Remove non_stop check.
2359         * NEWS: Announce that record btrace supports non-stop mode.
2360
2361 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2362
2363         * infrun.c (handle_inferior_event_1): Switch to the eventing thread
2364         in the TARKET_WAITKIND_NO_HISTORY case.
2365
2366 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2367
2368         * record-btrace.c (record_btrace_maybe_mark_async_event): New.
2369         (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
2370
2371 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2372
2373         * record-btrace.c (get_thread_current_frame): New.
2374         (record_btrace_start_replaying): Call get_thread_current_frame.
2375
2376 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2377
2378         * record-btrace.c (record_btrace_resume_thread): A move request
2379         overwrites a previous move request.
2380         (record_btrace_find_resume_thread): Removed.
2381         (record_btrace_resume): Resume all requested threads.
2382
2383 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2384
2385         * record-btrace.c: Include vec.h.
2386         (record_btrace_find_thread_to_move): Removed.
2387         (btrace_step_no_resumed, btrace_step_again)
2388         (record_btrace_stop_replaying_at_end): New.
2389         (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
2390         (record_btrace_single_step_forward): Remove calls to
2391         record_btrace_stop_replaying.
2392         (record_btrace_step_thread): Do only one step for BTHR_CONT and
2393         BTHR_RCONT.  Keep threads at the end of their history moving.
2394         (record_btrace_wait): Call record_btrace_step_thread for all threads
2395         until one reports an event.  Call record_btrace_stop_replaying_at_end
2396         for the eventing thread.
2397
2398 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2399
2400         * record-btrace.c (record_btrace_single_step_forward): Return
2401         NO_HISTORY if a step brings us to the end of the execution history.
2402
2403 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2404
2405         * record-btrace.c (record_btrace_step_thread): Move breakpoint check
2406         to ...
2407         (record_btrace_single_step_forward): ... here and
2408         (record_btrace_single_step_backward): ... here.
2409
2410 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2411
2412         * record-btrace.c (btrace_step_spurious)
2413         (record_btrace_single_step_forward)
2414         (record_btrace_single_step_backward): New.
2415         (record_btrace_step_thread): Call record_btrace_single_step_forward
2416         and record_btrace_single_step_backward.
2417
2418 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2419
2420         * record-btrace.c (record_btrace_replay_at_breakpoint): New.
2421         (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
2422
2423 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2424
2425         * record-btrace.c (btrace_thread_flag_to_str)
2426         (record_btrace_cancel_resume): New.
2427         (record_btrace_step_thread): Call btrace_thread_flag_to_str.
2428         (record_btrace_resume): Print execution direction.
2429         (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
2430         (record_btrace_wait): Call record_btrace_cancel_resume.
2431
2432 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2433
2434         * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
2435         * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
2436         (record_btrace_find_thread_to_move): Also accept threads that have
2437         BTHR_STOP set.
2438         (btrace_step_stopped_on_request, record_btrace_stop): New.
2439         (record_btrace_step_thread): Support BTHR_STOP.
2440         (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
2441         (init_record_btrace_ops): Initialize to_stop.
2442
2443 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2444
2445         * record-btrace.c (record_btrace_wait): Replace non_stop check with
2446         target_is_non_stop_p ().
2447
2448 2015-09-15  Pierre-Marie de Rodat  <derodat@adacore.com>
2449
2450         * ada-typeprint.c (print_array_type): Do not describe arrays as
2451         packed when they embed dynamic elements.
2452
2453 2015-09-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
2454
2455         * symtab.h (address_class): Document that TLS variables
2456         are handled by LOC_UNRESOLVED.
2457         * findvar.c (default_read_var_value): Don't relocate TLS variables.
2458         * printcmd.c (address_info): Don't relocate TLS variables.
2459
2460 2015-09-15  Pierre Langlois  <pierre.langlois@arm.com>
2461
2462         * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
2463         (decode_adrp): Likewise.
2464         (decode_b): Likewise.
2465         (decode_bcond): Likewise.
2466         (decode_br): Likewise.
2467         (decode_cb): Likewise.
2468         (decode_eret): Likewise.
2469         (decode_movz): Likewise.
2470         (decode_orr_shifted_register_x): Likewise.
2471         (decode_ret): Likewise.
2472         (decode_stp_offset): Likewise.
2473         (decode_stp_offset_wb): Likewise.
2474         (decode_stur): Likewise.
2475         (decode_tb): Likewise.
2476         (aarch64_analyze_prologue): Likewise.
2477         (pass_in_x): Likewise.
2478         (pass_in_v): Likewise.
2479         (pass_on_stack): Likewise.
2480         (aarch64_push_dummy_call): Likewise.
2481         (aarch64_extract_return_value): Likewise.
2482         (aarch64_store_return_value): Likewise.
2483         (aarch64_return_value): Likewise.
2484         (aarch64_record_asimd_load_store): Likewise.
2485         (aarch64_record_load_store): Likewise.
2486         (aarch64_record_data_proc_simd_fp): Likewise.
2487
2488 2015-09-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
2489
2490         * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
2491         * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
2492         (ppc64_skip_trampoline_code_1): ... here.
2493         (ppc64_skip_trampoline_code): New wrapper function.
2494         * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
2495
2496 2015-09-15  Yao Qi  <yao.qi@linaro.org>
2497
2498         * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
2499         function.
2500         (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
2501         * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
2502         if target_can_do_single_step returns 1.
2503         * remote.c (struct vCont_action_support) <s, S>: New fields.
2504         (PACKET_vContSupported): New enum.
2505         (remote_protocol_features): New element for vContSupported.
2506         (remote_query_supported): Append "vContSupported+".
2507         (remote_vcont_probe): Remove support_s and support_S, use
2508         rs->supports_vCont.s and rs->supports_vCont.S instead.  Disable
2509         vCont packet if c and C actions are not supported.
2510         (remote_can_do_single_step): New function.
2511         (init_remote_ops): Install it to to_can_do_single_step.
2512         (_initialize_remote): Call add_packet_config_cmd.
2513         * target.h (struct target_ops) <to_can_do_single_step>: New field.
2514         (target_can_do_single_step): New macro.
2515         * target-delegates.c: Re-generated.
2516
2517 2015-09-15  Yao Qi  <yao.qi@linaro.org>
2518
2519         * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
2520         (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
2521         * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
2522         New function.
2523         (aarch64_siginfo_from_compat_siginfo): New function.
2524         * nat/aarch64-linux.h: Include signal.h.
2525         (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
2526         (compat_timer_t, compat_clock_t): Likewise.
2527         (struct compat_timeval): New.
2528         (union compat_sigval): New.
2529         (struct compat_siginfo): New.
2530         (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
2531         (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
2532         (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
2533         (cpt_si_band, cpt_si_fd): Likewise.
2534
2535 2015-09-14  Pedro Alves  <palves@redhat.com>
2536
2537         * infrun.c (current_stop_id): New global.
2538         (get_stop_id, new_stop_id): New functions.
2539         (fetch_inferior_event): Handle normal_stop proceeding the target.
2540         (struct stop_context): New.
2541         (save_stop_context, release_stop_context_cleanup)
2542         (stop_context_changed): New functions.
2543         (normal_stop): Return true if the hook-stop changes the stop
2544         context.
2545         * infrun.h (get_stop_id): Declare.
2546         (normal_stop): Now returns int.  Add documentation.
2547
2548 2015-09-14  Pierre-Marie de Rodat  <derodat@adacore.com>
2549
2550         * ada-lang.c (ada_value_ptr_subscript): Update the heading
2551         comment.  Handle packed arrays.
2552
2553 2015-09-14  Pedro Alves  <palves@redhat.com>
2554
2555         * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
2556         mention of maint set/show target-non-stop.
2557
2558 2015-09-11  Don Breazeal  <donb@codesourcery.com>
2559
2560         * NEWS: Announce new remote packets for the exec-events
2561         feature and the exec-events feature and associated commands.
2562
2563 2015-09-11  Don Breazeal  <donb@codesourcery.com>
2564
2565         * remote.c (remote_exec_event_p): New function.
2566         (remote_insert_exec_catchpoint): New function.
2567         (remote_remove_exec_catchpoint): New function.
2568         (init_extended_remote_ops): Initialize extended_remote_ops
2569         members to_insert_exec_catchpoint and
2570         to_remove_exec_catchpoint.
2571
2572 2015-09-11  Don Breazeal  <donb@codesourcery.com>
2573             Luis Machado  <lgustavo@codesourcery.com>
2574
2575         * infrun.c (follow_exec): Use process-style ptid for
2576         exec message.  Call add_inferior_with_spaces and
2577         target_follow_exec.
2578         * nat/linux-ptrace.c (linux_supports_traceexec): New function.
2579         * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
2580         * remote.c (remote_pspace_data): New static variable.
2581         (remote_pspace_data_cleanup): New function.
2582         (get_remote_exec_file): New function.
2583         (set_remote_exec_file_1): New function.
2584         (set_remote_exec_file): New function.
2585         (show_remote_exec_file): New function.
2586         (remote_exec_file): Delete static variable.
2587         (anonymous enum) <PACKET_exec_event_feature>: New
2588         enumeration constant.
2589         (remote_protocol_features): Add entry for exec-events feature.
2590         (remote_query_supported): Add client side of qSupported query
2591         for exec-events feature.
2592         (remote_follow_exec): New function.
2593         (remote_parse_stop_reply): Handle 'exec' stop reason.
2594         (extended_remote_run, extended_remote_create_inferior): Call
2595         get_remote_exec_file and set_remote_exec_file_1.
2596         (init_extended_remote_ops) <to_follow_exec>: Initialize new
2597         member.
2598         (_initialize_remote): Call
2599         register_program_space_data_with_cleanup.  Call
2600         add_packet_config_cmd for remote exec-events feature.
2601         Modify call to add_setshow_string_noescape_cmd for exec-file
2602         to use new functions set_remote_exec_file and
2603         show_remote_exec_file.
2604         * target-debug.h, target-delegates.c: Regenerated.
2605         * target.c (target_follow_exec): New function.
2606         * target.h (struct target_ops) <to_follow_exec>: New member.
2607         (target_follow_exec): Declare new function.
2608
2609 2015-09-11  Pierre Langlois  <pierre.langlois@arm.com>
2610
2611         * aarch64-tdep.c (decode_cb): Move up comment describing the
2612         encoding.
2613         (decode_tb): Fix a typo in comment above the function.  Move up
2614         comment describing the encoding.
2615
2616 2015-09-11  Pierre Langlois  <pierre.langlois@arm.com>
2617
2618         * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
2619
2620 2015-09-11  Mihail-Marian Nistor  <mihail.nistor@freescale.com>
2621
2622         PR gdb/18947
2623         * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
2624         glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
2625
2626 2015-09-10  Simon Marchi  <simon.marchi@ericsson.com>
2627
2628         * ada-lang.c (scan_discrim_bound): Factor out arithmetic
2629         operations.
2630
2631 2015-09-10  Simon Marchi  <simon.marchi@ericsson.com>
2632
2633         * ada-lang.c (ada_search_struct_field): Constify parameters
2634         and/or variables..
2635         (xget_renaming_scope): Likewise.
2636         (ada_is_redundant_range_encoding): Likewise.
2637         (scan_discrim_bound): Likewise.
2638         (to_fixed_range_type): Likewise.
2639
2640 2015-09-10  Yao Qi  <yao.qi@linaro.org>
2641
2642         * breakpoint.c (download_tracepoint_locations): New local
2643         can_download_tracepoint.  Check the result of
2644         target_can_download_tracepoint and save it in
2645         can_download_tracepoint if there are tracepoints to download.
2646         * linux-nat.h (enum tribool): Move it to ...
2647         * common/common-types.h: ... here.
2648
2649 2015-09-09  Pedro Alves  <palves@redhat.com>
2650
2651         * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
2652         * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
2653
2654 2015-09-09  Pedro Alves  <palves@redhat.com>
2655
2656         * continuations.c (add_continuation, restore_thread_cleanup)
2657         (do_all_continuations_ptid, do_all_continuations_thread_callback)
2658         (do_all_continuations_thread, do_all_continuations)
2659         (discard_all_continuations_thread_callback)
2660         (discard_all_continuations_thread, discard_all_continuations)
2661         (add_intermediate_continuation)
2662         (do_all_intermediate_continuations_thread_callback)
2663         (do_all_intermediate_continuations_thread)
2664         (do_all_intermediate_continuations)
2665         (discard_all_intermediate_continuations_thread_callback)
2666         (discard_all_intermediate_continuations_thread)
2667         (discard_all_intermediate_continuations): Delete.
2668         * continuations.h (add_continuation, do_all_continuations)
2669         (do_all_continuations_thread, discard_all_continuations)
2670         (discard_all_continuations_thread, add_intermediate_continuation)
2671         (do_all_intermediate_continuations)
2672         (do_all_intermediate_continuations_thread)
2673         (discard_all_intermediate_continuations)
2674         (discard_all_intermediate_continuations_thread): Delete
2675         declarations.
2676         * event-top.c (stdin_event_handler): Delete references to
2677         continuations.
2678         * gdbthread.h (struct thread_info): Delete continuations and
2679         intermediate_continuations fields.
2680         * inf-loop.c (inferior_event_handler): Remove references to
2681         continuations.
2682         * infrun.c (infrun_thread_stop_requested_callback): Remove
2683         references to continuations.
2684         * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
2685         * thread.c: Don't include "continuations.h".
2686         (clear_thread_inferior_resources): Remove references to
2687         continuations.
2688
2689 2015-09-09  Pedro Alves  <palves@redhat.com>
2690
2691         * infcall.c (struct dummy_frame_context_saver): Delete.
2692         (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
2693         (dummy_frame_context_saver_drop)
2694         (dummy_frame_context_saver_cleanup)
2695         (dummy_frame_context_saver_get_regs)
2696         (dummy_frame_context_saver_setup): Delete.
2697         * infcall.h (dummy_frame_context_saver_drop)
2698         (dummy_frame_context_saver_cleanup)
2699         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
2700         Delete.
2701         (get_return_value): Remove 'ctx_saver' paremeter.  Adjust.
2702         * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
2703         * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
2704
2705 2015-09-09  Pedro Alves  <palves@redhat.com>
2706
2707         * breakpoint.c: Include "thread-fsm.h".
2708         (struct until_break_command_continuation_args): Delete.
2709         (struct until_break_fsm): New.
2710         (until_break_fsm_ops): New global.
2711         (new_until_break_fsm, until_break_fsm_should_stop): New functions.
2712         (until_break_command_continuation): Delete.
2713         (until_break_fsm_clean_up): New function.
2714         (until_break_fsm_async_reply_reason): New function.
2715         (until_break_command): Adjust to create an until_break_fsm instead
2716         of a continuation.
2717         (momentary_bkpt_print_it): No longer print MI's async-stop-reason
2718         here.
2719         * infcmd.c (struct until_next_fsm): New.
2720         (until_next_fsm_ops): New global.
2721         (new_until_next_fsm, until_next_fsm_should_stop): New function.
2722         (until_next_continuation): Delete.
2723         (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
2724         functions.
2725         (until_next_command): Adjust to create a new until_next_fsm
2726         instead of a continuation.
2727
2728 2015-09-09  Pedro Alves  <palves@redhat.com>
2729
2730         * infcall.c: Include thread_fsm.h.
2731         (struct call_return_meta_info): New.
2732         (get_call_return_value): New function, factored out from
2733         call_function_by_hand_dummy.
2734         (struct call_thread_fsm): New.
2735         (call_thread_fsm_ops): New global.
2736         (new_call_thread_fsm, call_thread_fsm_should_stop)
2737         (call_thread_fsm_should_notify_stop): New functions.
2738         (run_inferior_call): Add 'sm' parameter.  Associate the FSM with
2739         the thread.
2740         (call_function_by_hand_dummy): Create a new call_thread_fsm
2741         instance, associate it with the thread, and wait for the FSM to
2742         finish.  If finished successfully, fetch the function's result
2743         value out of the FSM.
2744         * infrun.c (fetch_inferior_event): If the FSM says the stop
2745         shouldn't be notified, don't call normal_stop.
2746         (maybe_remove_breakpoints): New function, factored out from ...
2747         (normal_stop): ... here.  Simplify.
2748         * infrun.h (maybe_remove_breakpoints): Declare.
2749         * thread-fsm.c (thread_fsm_should_notify_stop): New function.
2750         (thread-fsm.h) <struct thread_fsm_ops>: New field.
2751         (thread_fsm_should_notify_stop): Declare.
2752
2753 2015-09-09  Pedro Alves  <palves@redhat.com>
2754
2755         * Makefile.in (COMMON_OBS): Add thread-fsm.o.
2756         * breakpoint.c (handle_jit_event): Print debug output.
2757         (bpstat_what): Split event callback handling to ...
2758         (bpstat_run_callbacks): ... this new function.
2759         (momentary_bkpt_print_it): No longer handle bp_finish here.
2760         * breakpoint.h (bpstat_run_callbacks): Declare.
2761         * gdbthread.h (struct thread_info) <step_multi>: Delete field.
2762         <thread_fsm>: New field.
2763         (thread_cancel_execution_command): Declare.
2764         * infcmd.c: Include thread-fsm.h.
2765         (struct step_command_fsm): New.
2766         (step_command_fsm_ops): New global.
2767         (new_step_command_fsm, step_command_fsm_prepare): New functions.
2768         (step_1): Adjust to use step_command_fsm_prepare and
2769         prepare_one_step.
2770         (struct step_1_continuation_args): Delete.
2771         (step_1_continuation): Delete.
2772         (step_command_fsm_should_stop): New function.
2773         (step_once): Delete.
2774         (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
2775         (prepare_one_step): New function, based on step_once.
2776         (until_next_command): Remove step_multi reference.
2777         (struct return_value_info): New.
2778         (print_return_value): Rename to ...
2779         (print_return_value_1): ... this.  New struct return_value_info
2780         parameter.  Adjust.
2781         (print_return_value): Reimplement as wrapper around
2782         print_return_value_1.
2783         (struct finish_command_fsm): New.
2784         (finish_command_continuation): Delete.
2785         (finish_command_fsm_ops): New global.
2786         (new_finish_command_fsm, finish_command_fsm_should_stop): New
2787         functions.
2788         (finish_command_fsm_clean_up, finish_command_fsm_return_value):
2789         New.
2790         (finish_command_continuation_free_arg): Delete.
2791         (finish_command_fsm_async_reply_reason): New.
2792         (finish_backward, finish_forward): Change symbol parameter to a
2793         finish_command_fsm.  Adjust.
2794         (finish_command): Create a finish_command_fsm.  Adjust.
2795         * infrun.c: Include "thread-fsm.h".
2796         (clear_proceed_status_thread): Delete the thread's FSM.
2797         (infrun_thread_stop_requested_callback): Cancel the thread's
2798         execution command.
2799         (clean_up_just_stopped_threads_fsms): New function.
2800         (fetch_inferior_event): Handle the event_thread's should_stop
2801         method saying the command isn't done yet.
2802         (process_event_stop_test): Run breakpoint callbacks here.
2803         (print_stop_event): Rename to ...
2804         (print_stop_location): ... this.
2805         (restore_current_uiout_cleanup): New function.
2806         (print_stop_event): Reimplement.
2807         (normal_stop): No longer notify the end_stepping_range observers
2808         here handle "step N" nor "finish" here.  No longer call
2809         print_stop_event here.
2810         * infrun.h (struct return_value_info): Forward declare.
2811         (print_return_value): Declare.
2812         (print_stop_event): Change prototype.
2813         * thread-fsm.c: New file.
2814         * thread-fsm.h: New file.
2815         * thread.c: Include "thread-fsm.h".
2816         (thread_cancel_execution_command): New function.
2817         (clear_thread_inferior_resources): Call it.
2818         * cli/cli-interp.c (cli_on_normal_stop): New function.
2819         (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
2820         observer.
2821         * mi/mi-interp.c: Include "thread-fsm.h".
2822         (restore_current_uiout_cleanup): Delete.
2823         (mi_on_normal_stop): If the thread has an FSM associated, and it
2824         finished, ask it for the async-reply-reason to print.  Always call
2825         print_stop_event here, regardless of the top-level interpreter.
2826         Check bpstat_what to tell whether an asynchronous breakpoint hit
2827         triggered.
2828         * tui/tui-interp.c (tui_on_normal_stop): New function.
2829         (tui_init): Install tui_on_normal_stop as normal_stop observer.
2830
2831 2015-09-09  Pedro Alves  <palves@redhat.com>
2832
2833         * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
2834         check whether the target can async.
2835         * inf-loop.c (inferior_event_handler): Only call target_async if
2836         the target can async.
2837         * infcall.c: Include top.h and interps.h.
2838         (run_inferior_call): For the interpreter to sync mode while
2839         running the infcall.  Call wait_sync_command_done instead of
2840         wait_for_inferior plus normal_stop.
2841         * infcmd.c (prepare_execution_command): Don't check whether the
2842         target can async when running in the foreground.
2843         (step_1): Delete synchronous case handling.
2844         (step_once): Always install a continuation, even in sync mode.
2845         (until_next_command, finish_forward): Don't check whether the
2846         target can async.
2847         (attach_command_post_wait, notice_new_inferior): Always install a
2848         continuation, even in sync mode.
2849         * infrun.c (mark_infrun_async_event_handler): New function.
2850         (proceed): In sync mode, mark infrun's event source instead of
2851         waiting for events here.
2852         (fetch_inferior_event): If the target can't async, do a blocking
2853         wait.
2854         (prepare_to_wait): In sync mode, mark infrun's event source.
2855         (infrun_async_inferior_event_handler): No longer bail out if the
2856         target can't async.
2857         * infrun.h (mark_infrun_async_event_handler): New declaration.
2858         * linux-nat.c (linux_nat_wait_1): Remove calls to
2859         set_sigint_trap/clear_sigint_trap.
2860         (linux_nat_terminal_inferior): No longer check whether the target
2861         can async.
2862         * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
2863         comment.
2864         (mi_execute_command_input_handler): No longer check whether the
2865         target is async.  Update and simplify comment.
2866         * target.c (default_target_wait): New function.
2867         * target.h (struct target_ops) <to_wait>: Now defaults to
2868         default_target_wait.
2869         (default_target_wait): Declare.
2870         * top.c (wait_sync_command_done): New function, factored out from
2871         ...
2872         (maybe_wait_sync_command_done): ... this.
2873         * top.h (wait_sync_command_done): Declare.
2874         * target-delegates.c: Regenerate.
2875
2876 2015-09-09  Markus Metzger  <markus.t.metzger@intel.com>
2877
2878         * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
2879         * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
2880         Remove include of sys/utsname.h.
2881         (linux_determine_kernel_ptr_bits): Remove.
2882         (linux_determine_kernel_start): New.
2883         (perf_event_is_kernel_addr): Remove tinfo argument.  Update users.
2884         Update check.
2885         (perf_event_skip_bts_record): Remove tinfo argument.  Update users.
2886         (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
2887         initialization.
2888         * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
2889         assignment.
2890
2891 2015-09-07  Pedro Alves  <palves@redhat.com>
2892
2893         * guile/guile-internal.h (as_a_scm_t_subr): New.
2894         * guile/guile.c (misc_guile_functions): Use it.
2895         * guile/scm-arch.c (arch_functions): Use it.
2896         * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
2897         Use it.
2898         * guile/scm-breakpoint.c (breakpoint_functions): Use it.
2899         * guile/scm-cmd.c (command_functions): Use it.
2900         * guile/scm-disasm.c (disasm_functions): Use it.
2901         * guile/scm-exception.c (exception_functions)
2902         (private_exception_functions): Use it.
2903         * guile/scm-frame.c (frame_functions)
2904         * guile/scm-gsmob.c (gsmob_functions): Use it.
2905         * guile/scm-iterator.c (iterator_functions): Use it.
2906         * guile/scm-lazy-string.c (lazy_string_functions): Use it.
2907         * guile/scm-math.c (math_functions): Use it.
2908         * guile/scm-objfile.c (objfile_functions): Use it.
2909         * guile/scm-param.c (parameter_functions): Use it.
2910         * guile/scm-ports.c (port_functions, private_port_functions): Use
2911         it.
2912         * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
2913         * guile/scm-progspace.c (pspace_functions): Use it.
2914         * guile/scm-string.c (string_functions): Use it.
2915         * guile/scm-symbol.c (symbol_functions): Use it.
2916         * guile/scm-symtab.c (symtab_functions): Use it.
2917         * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
2918         it.
2919         * guile/scm-value.c (value_functions): Use it.
2920
2921 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
2922
2923         * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
2924         (tui_next_win): Likewise.
2925         (tui_prev_win): Likewise.
2926         (tui_partial_win_by_name): Likewise.
2927         (tui_init_generic_part): Likewise.
2928         (init_content_element): Likewise.
2929         (tui_del_window): Likewise.
2930         (tui_free_window): Likewise.
2931         (tui_del_data_windows): Likewise.
2932         (tui_free_data_content): Likewise.
2933         * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
2934         * tui/tui-regs.c (tui_show_register_group): Likewise.
2935         * tui/tui-win.c (tui_resize_all): Likewise.
2936         (tui_set_focus): Likewise.
2937         (tui_set_win_height): Likewise.
2938         (make_invisible_and_set_new_height): Likewise.
2939         * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
2940         * tui/tui-wingeneral.c (make_visible): Likewise.
2941
2942 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
2943
2944         * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
2945
2946 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
2947
2948         * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
2949         pointer.
2950         * dbxread.c (dbx_end_psymtab): Likewise.
2951         * gnu-nat.c (gnu_write_inferior): Likewise.
2952         * mdebugread.c (cross_ref): Likewise.
2953         * p-valprint.c (pascal_val_print): Likewise.
2954         * xcoffread.c (xcoff_end_psymtab): Likewise.
2955
2956 2015-09-04  Yao Qi  <yao.qi@linaro.org>
2957
2958         * NEWS: Mention the aarch64 multi-arch debugging support.
2959
2960 2015-09-03  Pierre-Marie de Rodat  <derodat@adacore.com>
2961
2962         * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
2963         type instead of a TYPE_CODE_INT one for the string_char_type
2964         and the ada_primitive_type_char types.
2965
2966 2015-09-03  Yao Qi  <yao.qi@linaro.org>
2967
2968         * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
2969         Move code to aarch64_linux_region_ok_for_watchpoint.  Call
2970         aarch64_linux_region_ok_for_watchpoint.
2971         * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
2972         New function.
2973         * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
2974         Declare it.
2975
2976 2015-09-02  Patrick Palka  <patrick@parcs.ath.cx>
2977
2978         * gdb_obstack.h (obstack_strdup): Declare.
2979         * gdb_obstack.c (obstack_strdup): Define.
2980         * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
2981         * gdbarch.c: Regenerate.
2982         * gdbarch.h: Regenerate.
2983         * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
2984
2985 2015-09-02  Patrick Palka  <patrick@parcs.ath.cx>
2986
2987         * gdbtypes.c (copy_type_recursive): Update documentation.
2988
2989 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
2990
2991         * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
2992         as zero.
2993
2994 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
2995
2996         * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
2997
2998 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
2999
3000         * solib-svr4.c (solib_event_probe_action): Call
3001         get_probe_argument_count using TRY...CATCH.
3002         (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
3003
3004 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
3005
3006         * probe.h (struct probe_ops) <get_probe_argument_count,
3007         evaluate_probe_argument, enable_probe, disable_probe>: Mention in
3008         the comment that the function can throw an exception.
3009         (get_probe_argument_count): Likewise.
3010         (evaluate_probe_argument): Likewise.
3011         * stap-probe.c (stap_get_opcode): Call error instead of
3012         internal_error.
3013         (stap_get_expected_argument_type): Likewise.  Add argument
3014         'probe'.  Improve error message by mentioning the probe's name.
3015         (stap_parse_probe_arguments): Adjust call to
3016         stap_get_expected_argument_type.
3017         (stap_get_arg): Add comment.  Assert that 'probe->args_parsed' is
3018         not zero.  Call internal_error if GDB requests an argument but the
3019         probe has no arguments.
3020
3021 2015-09-01  Pierre-Marie de Rodat  <derodat@adacore.com>
3022
3023         * ada-lang.c (ada_resolve_function): Do not ask the user what
3024         match to use when in completion mode.
3025
3026 2015-08-31  Andrew Burgess  <andrew.burgess@embecosm.com>
3027
3028         * tui/tui-data.c (tui_win_name): Make local variable const, remove
3029         cast of NULL.
3030
3031 2015-08-31  Max Filippov  <jcmvbkbc@gmail.com>
3032
3033         * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
3034         call_abi using XSHAL_ABI macro.
3035
3036 2015-08-29  Doug Evans  <xdje42@gmail.com>
3037
3038         * symtab.h (struct symbol): Tweak comment.
3039
3040 2015-08-29  Patrick Palka  <patrick@parcs.ath.cx>
3041
3042         * gdbtypes.c (alloc_type_arch): Allocate the type on the given
3043         gdbarch obstack instead of on the heap.  Update commentary
3044         accordingly.
3045
3046 2015-08-28  Joel Brobecker  <brobecker@adacore.com>
3047
3048         GDB 7.10 released.
3049
3050 2015-08-28  Simon Marchi  <simon.marchi@ericsson.com>
3051
3052         * NEWS: Update entry about non-8-bits addressable memory.
3053
3054 2015-08-28  Ulrich Weigand  <uweigand@de.ibm.com>
3055
3056         Revert:
3057         2014-11-06  Doug Evans  <xdje42@gmail.com>
3058         * solib.c (solib_global_lookup): Fetch arch from objfile,
3059         not target_gdbarch.
3060
3061 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
3062
3063         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
3064         attempt to relocate a TLS variable offset.
3065
3066 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
3067
3068         * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
3069         registered yet.  Set inferior_ptid while calling target_read_memory.
3070
3071 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
3072
3073         * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
3074         (GDB_ARCH_IS_TRAP_BRKPT): ... this.  Add __powerpc__ case.
3075         * linux-nat.c (check_stopped_by_breakpoint): Use
3076         GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
3077
3078 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
3079
3080         * linux-thread-db.c (thread_db_get_thread_local_address): If the
3081         thread was not yet discovered, use thread_from_lwp instead of
3082         calling thread_db_find_new_threads_1.
3083
3084 2015-08-27  Simon Marchi  <simon.marchi@ericsson.com>
3085
3086         * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
3087         statements.
3088
3089 2015-08-27  Simon Marchi  <simon.marchi@ericsson.com>
3090
3091         * NEWS: Document support for non-8-bits addressable memory.
3092
3093 2015-08-27  Pedro Alves  <palves@redhat.com>
3094
3095         * configure.ac: Remove AC_TYPE_SIGNAL call.
3096         * configure, config.in: Regenerate.
3097
3098 2015-08-27  Pedro Alves  <palves@redhat.com>
3099
3100         * cp-support.c (gdb_demangle): Use sighandler_t.  Remove cast.
3101         * extension-priv.h: Include signal.h.
3102         (struct signal_handler) <handler>: Change type to sighandler_t.
3103         * extension.c (install_gdb_sigint_handler): Use sighandler_t.
3104         * inflow.c (sigint_ours, sigquit_ours): Change type to
3105         sighandler_t.
3106         (child_terminal_inferior): Remove casts.
3107         (child_terminal_ours_1, new_tty): Use sighandler_t.  Remove casts.
3108         (osig): Change type to sighandler_t.
3109         * nto-procfs.c (ofunc): Change type to sighandler_t.
3110         (procfs_wait): Remove casts.
3111         * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
3112         * remote-sim.c (gdbsim_wait): Use sighandler_t.
3113         * utils.c (wait_to_die_with_timeout): Use sighandler_t.
3114
3115 2015-08-27  Pedro Alves  <palves@redhat.com>
3116
3117         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
3118         * gnulib/aclocal.m4: Renegerate.
3119         * gnulib/config.in: Renegerate.
3120         * gnulib/configure: Renegerate.
3121         * gnulib/import/Makefile.am: Update.
3122         * gnulib/import/Makefile.in: Regenerate.
3123         * gnulib/import/m4/gnulib-cache.m4: Update.
3124         * gnulib/import/m4/gnulib-comp.m4: Update.
3125         * gnulib/import/m4/signal_h.m4: New file.
3126         * gnulib/import/signal.in.h: New file.
3127
3128 2015-08-27  Pedro Alves  <palves@redhat.com>
3129
3130         * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
3131         (MIN_MEMORY_PACKET_SIZE): New.
3132         (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
3133         (get_memory_packet_size): Adjust.  No longer limit the max packet
3134         size.
3135         (set_memory_packet_size): Adjust, and remove dead code.
3136         (remote_check_symbols): Use xmalloc and a cleanup instead of
3137         alloca.
3138         (remote_packet_size): No longer cap the packet size.
3139         (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
3140
3141 2015-08-26  Luis Machado  <lgustavo@codesourcery.com>
3142
3143         * compile/compile.c (compile_to_object): Mention language in
3144         error message.
3145
3146 2015-08-26  Patrick Palka  <patrick@parcs.ath.cx>
3147
3148         * target.c (target_pre_inferior): Unset attach_flag.
3149
3150 2015-08-26  Simon Marchi  <simon.marchi@ericsson.com>
3151
3152         * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
3153         * gdbarch.c: Re-generate.
3154
3155 2015-08-26  Simon Marchi  <simon.marchi@ericsson.com>
3156
3157         * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
3158         function with the XNEW-family equivalent.
3159         * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
3160         * ada-exp.y (write_ambiguous_var): Likewise.
3161         * ada-lang.c (resolve_subexp): Likewise.
3162         (user_select_syms): Likewise.
3163         (assign_aggregate): Likewise.
3164         (ada_evaluate_subexp): Likewise.
3165         (cache_symbol): Likewise.
3166         * addrmap.c (allocate_key): Likewise.
3167         (addrmap_create_mutable): Likewise.
3168         * aix-thread.c (sync_threadlists): Likewise.
3169         * alpha-tdep.c (alpha_push_dummy_call): Likewise.
3170         (alpha_gdbarch_init): Likewise.
3171         * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
3172         * arm-linux-nat.c (arm_linux_add_process): Likewise.
3173         * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
3174         * arm-tdep.c (push_stack_item): Likewise.
3175         (arm_displaced_step_copy_insn): Likewise.
3176         (arm_gdbarch_init): Likewise.
3177         (_initialize_arm_tdep): Likewise.
3178         * avr-tdep.c (push_stack_item): Likewise.
3179         * ax-general.c (new_agent_expr): Likewise.
3180         * block.c (block_initialize_namespace): Likewise.
3181         * breakpoint.c (alloc_counted_command_line): Likewise.
3182         (update_dprintf_command_list): Likewise.
3183         (parse_breakpoint_sals): Likewise.
3184         (decode_static_tracepoint_spec): Likewise.
3185         (until_break_command): Likewise.
3186         (clear_command): Likewise.
3187         (update_global_location_list): Likewise.
3188         (get_breakpoint_objfile_data) Likewise.
3189         * btrace.c (ftrace_new_function): Likewise.
3190         (btrace_set_insn_history): Likewise.
3191         (btrace_set_call_history): Likewise.
3192         * buildsym.c (add_symbol_to_list): Likewise.
3193         (record_pending_block): Likewise.
3194         (start_subfile): Likewise.
3195         (start_buildsym_compunit): Likewise.
3196         (push_subfile): Likewise.
3197         (end_symtab_get_static_block): Likewise.
3198         (buildsym_init): Likewise.
3199         * cli/cli-cmds.c (source_command): Likewise.
3200         * cli/cli-decode.c (add_cmd): Likewise.
3201         * cli/cli-script.c (build_command_line): Likewise.
3202         (setup_user_args): Likewise.
3203         (realloc_body_list): Likewise.
3204         (process_next_line): Likewise.
3205         (copy_command_lines): Likewise.
3206         * cli/cli-setshow.c (do_set_command): Likewise.
3207         * coff-pe-read.c (read_pe_exported_syms): Likewise.
3208         * coffread.c (coff_locate_sections): Likewise.
3209         (coff_symtab_read): Likewise.
3210         (coff_read_struct_type): Likewise.
3211         * common/cleanups.c (make_my_cleanup2): Likewise.
3212         * common/common-exceptions.c (throw_it): Likewise.
3213         * common/filestuff.c (make_cleanup_close): Likewise.
3214         * common/format.c (parse_format_string): Likewise.
3215         * common/queue.h (DEFINE_QUEUE_P): Likewise.
3216         * compile/compile-object-load.c (munmap_list_add): Likewise.
3217         (compile_object_load): Likewise.
3218         * compile/compile-object-run.c (compile_object_run): Likewise.
3219         * compile/compile.c (append_args): Likewise.
3220         * corefile.c (specify_exec_file_hook): Likewise.
3221         * cp-support.c (make_symbol_overload_list): Likewise.
3222         * cris-tdep.c (push_stack_item): Likewise.
3223         (cris_gdbarch_init): Likewise.
3224         * ctf.c (ctf_trace_file_writer_new): Likewise.
3225         * dbxread.c (init_header_files): Likewise.
3226         (add_new_header_file): Likewise.
3227         (init_bincl_list): Likewise.
3228         (dbx_end_psymtab): Likewise.
3229         (start_psymtab): Likewise.
3230         (dbx_end_psymtab): Likewise.
3231         * dcache.c (dcache_init): Likewise.
3232         * dictionary.c (dict_create_hashed): Likewise.
3233         (dict_create_hashed_expandable): Likewise.
3234         (dict_create_linear): Likewise.
3235         (dict_create_linear_expandable): Likewise.
3236         * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
3237         * dummy-frame.c (register_dummy_frame_dtor): Likewise.
3238         * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
3239         * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3240         (decode_frame_entry_1): Likewise.
3241         * dwarf2expr.c (new_dwarf_expr_context): Likewise.
3242         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
3243         * dwarf2read.c (dwarf2_has_info): Likewise.
3244         (create_signatured_type_table_from_index): Likewise.
3245         (dwarf2_read_index): Likewise.
3246         (dw2_get_file_names_reader): Likewise.
3247         (create_all_type_units): Likewise.
3248         (read_cutu_die_from_dwo): Likewise.
3249         (init_tu_and_read_dwo_dies): Likewise.
3250         (init_cutu_and_read_dies): Likewise.
3251         (create_all_comp_units): Likewise.
3252         (queue_comp_unit): Likewise.
3253         (inherit_abstract_dies): Likewise.
3254         (read_call_site_scope): Likewise.
3255         (dwarf2_add_field): Likewise.
3256         (dwarf2_add_typedef): Likewise.
3257         (dwarf2_add_member_fn): Likewise.
3258         (attr_to_dynamic_prop): Likewise.
3259         (abbrev_table_alloc_abbrev): Likewise.
3260         (abbrev_table_read_table): Likewise.
3261         (add_include_dir): Likewise.
3262         (add_file_name): Likewise.
3263         (dwarf_decode_line_header): Likewise.
3264         (dwarf2_const_value_attr): Likewise.
3265         (dwarf_alloc_block): Likewise.
3266         (parse_macro_definition): Likewise.
3267         (set_die_type): Likewise.
3268         (write_psymtabs_to_index): Likewise.
3269         (create_cus_from_index): Likewise.
3270         (dwarf2_create_include_psymtab): Likewise.
3271         (process_psymtab_comp_unit_reader): Likewise.
3272         (build_type_psymtab_dependencies): Likewise.
3273         (read_comp_units_from_section): Likewise.
3274         (compute_compunit_symtab_includes): Likewise.
3275         (create_dwo_unit_in_dwp_v1): Likewise.
3276         (create_dwo_unit_in_dwp_v2): Likewise.
3277         (read_func_scope): Likewise.
3278         (process_structure_scope): Likewise.
3279         (mark_common_block_symbol_computed): Likewise.
3280         (load_partial_dies): Likewise.
3281         (dwarf2_symbol_mark_computed): Likewise.
3282         * elfread.c (elf_symfile_segments): Likewise.
3283         (elf_read_minimal_symbols): Likewise.
3284         * environ.c (make_environ): Likewise.
3285         * eval.c (evaluate_subexp_standard): Likewise.
3286         * event-loop.c (create_file_handler): Likewise.
3287         (create_async_signal_handler): Likewise.
3288         (create_async_event_handler): Likewise.
3289         (create_timer): Likewise.
3290         * exec.c (build_section_table): Likewise.
3291         * fbsd-nat.c (fbsd_remember_child): Likewise.
3292         * fork-child.c (fork_inferior): Likewise.
3293         * frv-tdep.c (new_variant): Likewise.
3294         * gdbarch.sh (gdbarch_alloc): Likewise.
3295         (append_name): Likewise.
3296         * gdbtypes.c (rank_function): Likewise.
3297         (copy_type_recursive): Likewise.
3298         (add_dyn_prop): Likewise.
3299         * gnu-nat.c (make_proc): Likewise.
3300         (make_inf): Likewise.
3301         (gnu_write_inferior): Likewise.
3302         * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
3303         (build_std_type_info_type): Likewise.
3304         * guile/scm-param.c (compute_enum_list): Likewise.
3305         * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
3306         * guile/scm-value.c (gdbscm_value_call): Likewise.
3307         * h8300-tdep.c (h8300_gdbarch_init): Likewise.
3308         * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
3309         (read_unwind_info): Likewise.
3310         * ia64-tdep.c (ia64_gdbarch_init): Likewise.
3311         * infcall.c (dummy_frame_context_saver_setup): Likewise.
3312         (call_function_by_hand_dummy): Likewise.
3313         * infcmd.c (step_once): Likewise.
3314         (finish_forward): Likewise.
3315         (attach_command): Likewise.
3316         (notice_new_inferior): Likewise.
3317         * inferior.c (add_inferior_silent): Likewise.
3318         * infrun.c (add_displaced_stepping_state): Likewise.
3319         (save_infcall_control_state): Likewise.
3320         (save_inferior_ptid): Likewise.
3321         (_initialize_infrun): Likewise.
3322         * jit.c (bfd_open_from_target_memory): Likewise.
3323         (jit_gdbarch_data_init): Likewise.
3324         * language.c (add_language): Likewise.
3325         * linespec.c (decode_line_2): Likewise.
3326         * linux-nat.c (add_to_pid_list): Likewise.
3327         (add_initial_lwp): Likewise.
3328         * linux-thread-db.c (add_thread_db_info): Likewise.
3329         (record_thread): Likewise.
3330         (info_auto_load_libthread_db): Likewise.
3331         * m32c-tdep.c (m32c_gdbarch_init): Likewise.
3332         * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
3333         * m68k-tdep.c (m68k_gdbarch_init): Likewise.
3334         * m88k-tdep.c (m88k_analyze_prologue): Likewise.
3335         * macrocmd.c (macro_define_command): Likewise.
3336         * macroexp.c (gather_arguments): Likewise.
3337         * macroscope.c (sal_macro_scope): Likewise.
3338         * macrotab.c (new_macro_table): Likewise.
3339         * mdebugread.c (push_parse_stack): Likewise.
3340         (parse_partial_symbols): Likewise.
3341         (parse_symbol): Likewise.
3342         (psymtab_to_symtab_1): Likewise.
3343         (new_block): Likewise.
3344         (new_psymtab): Likewise.
3345         (mdebug_build_psymtabs): Likewise.
3346         (add_pending): Likewise.
3347         (elfmdebug_build_psymtabs): Likewise.
3348         * mep-tdep.c (mep_gdbarch_init): Likewise.
3349         * mi/mi-main.c (mi_execute_command): Likewise.
3350         * mi/mi-parse.c (mi_parse_argv): Likewise.
3351         * minidebug.c (lzma_open): Likewise.
3352         * minsyms.c (terminate_minimal_symbol_table): Likewise.
3353         * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
3354         * mips-tdep.c (mips_gdbarch_init): Likewise.
3355         * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
3356         * msp430-tdep.c (msp430_gdbarch_init): Likewise.
3357         * mt-tdep.c (mt_registers_info): Likewise.
3358         * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
3359         * nat/linux-btrace.c (linux_enable_bts): Likewise.
3360         (linux_enable_pt): Likewise.
3361         * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
3362         (linux_xfer_osdata_processgroups): Likewise.
3363         * nios2-tdep.c (nios2_gdbarch_init): Likewise.
3364         * nto-procfs.c (procfs_meminfo): Likewise.
3365         * objc-lang.c (start_msglist): Likewise.
3366         (selectors_info): Likewise.
3367         (classes_info): Likewise.
3368         (find_methods): Likewise.
3369         * objfiles.c (allocate_objfile): Likewise.
3370         (update_section_map): Likewise.
3371         * osabi.c (gdbarch_register_osabi): Likewise.
3372         (gdbarch_register_osabi_sniffer): Likewise.
3373         * parse.c (start_arglist): Likewise.
3374         * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
3375         (hwdebug_insert_point): Likewise.
3376         * printcmd.c (display_command): Likewise.
3377         (ui_printf): Likewise.
3378         * procfs.c (create_procinfo): Likewise.
3379         (load_syscalls): Likewise.
3380         (proc_get_LDT_entry): Likewise.
3381         (proc_update_threads): Likewise.
3382         * prologue-value.c (make_pv_area): Likewise.
3383         (pv_area_store): Likewise.
3384         * psymtab.c (extend_psymbol_list): Likewise.
3385         (init_psymbol_list): Likewise.
3386         (allocate_psymtab): Likewise.
3387         * python/py-inferior.c (add_thread_object): Likewise.
3388         * python/py-param.c (compute_enum_values): Likewise.
3389         * python/py-value.c (valpy_call): Likewise.
3390         * python/py-varobj.c (py_varobj_iter_next): Likewise.
3391         * python/python.c (ensure_python_env): Likewise.
3392         * record-btrace.c (record_btrace_start_replaying): Likewise.
3393         * record-full.c (record_full_reg_alloc): Likewise.
3394         (record_full_mem_alloc): Likewise.
3395         (record_full_end_alloc): Likewise.
3396         (record_full_core_xfer_partial): Likewise.
3397         * regcache.c (get_thread_arch_aspace_regcache): Likewise.
3398         * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
3399         * remote-notif.c (remote_notif_state_allocate): Likewise.
3400         * remote.c (demand_private_info): Likewise.
3401         (remote_notif_stop_alloc_reply): Likewise.
3402         (remote_enable_btrace): Likewise.
3403         * reverse.c (save_bookmark_command): Likewise.
3404         * rl78-tdep.c (rl78_gdbarch_init): Likewise.
3405         * rx-tdep.c (rx_gdbarch_init): Likewise.
3406         * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
3407         * ser-go32.c (dos_get_tty_state): Likewise.
3408         (dos_copy_tty_state): Likewise.
3409         * ser-mingw.c (ser_windows_open): Likewise.
3410         (ser_console_wait_handle): Likewise.
3411         (ser_console_get_tty_state): Likewise.
3412         (make_pipe_state): Likewise.
3413         (net_windows_open): Likewise.
3414         * ser-unix.c (hardwire_get_tty_state): Likewise.
3415         (hardwire_copy_tty_state): Likewise.
3416         * solib-aix.c (solib_aix_new_lm_info): Likewise.
3417         * solib-dsbt.c (dsbt_current_sos): Likewise.
3418         (dsbt_relocate_main_executable): Likewise.
3419         * solib-frv.c (frv_current_sos): Likewise.
3420         (frv_relocate_main_executable): Likewise.
3421         * solib-spu.c (spu_bfd_fopen): Likewise.
3422         * solib-svr4.c (lm_info_read): Likewise.
3423         (svr4_copy_library_list): Likewise.
3424         (svr4_default_sos): Likewise.
3425         * source.c (find_source_lines): Likewise.
3426         (line_info): Likewise.
3427         (add_substitute_path_rule): Likewise.
3428         * spu-linux-nat.c (spu_bfd_open): Likewise.
3429         * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
3430         * stabsread.c (dbx_lookup_type): Likewise.
3431         (read_type): Likewise.
3432         (read_member_functions): Likewise.
3433         (read_struct_fields): Likewise.
3434         (read_baseclasses): Likewise.
3435         (read_args): Likewise.
3436         (_initialize_stabsread): Likewise.
3437         * stack.c (func_command): Likewise.
3438         * stap-probe.c (handle_stap_probe): Likewise.
3439         * symfile.c (addrs_section_sort): Likewise.
3440         (addr_info_make_relative): Likewise.
3441         (load_section_callback): Likewise.
3442         (add_symbol_file_command): Likewise.
3443         (init_filename_language_table): Likewise.
3444         * symtab.c (create_filename_seen_cache): Likewise.
3445         (sort_search_symbols_remove_dups): Likewise.
3446         (search_symbols): Likewise.
3447         * target.c (make_cleanup_restore_target_terminal): Likewise.
3448         * thread.c (new_thread): Likewise.
3449         (enable_thread_stack_temporaries): Likewise.
3450         (make_cleanup_restore_current_thread): Likewise.
3451         (thread_apply_all_command): Likewise.
3452         * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
3453         * top.c (gdb_readline_wrapper): Likewise.
3454         * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
3455         * tracepoint.c (trace_find_line_command): Likewise.
3456         (all_tracepoint_actions_and_cleanup): Likewise.
3457         (make_cleanup_restore_current_traceframe): Likewise.
3458         (get_uploaded_tp): Likewise.
3459         (get_uploaded_tsv): Likewise.
3460         * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
3461         (tui_alloc_win_info): Likewise.
3462         (tui_alloc_content): Likewise.
3463         (tui_add_content_elements): Likewise.
3464         * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
3465         (tui_set_disassem_content): Likewise.
3466         * ui-file.c (ui_file_new): Likewise.
3467         (stdio_file_new): Likewise.
3468         (tee_file_new): Likewise.
3469         * utils.c (make_cleanup_restore_integer): Likewise.
3470         (add_internal_problem_command): Likewise.
3471         * v850-tdep.c (v850_gdbarch_init): Likewise.
3472         * valops.c (find_oload_champ): Likewise.
3473         * value.c (allocate_value_lazy): Likewise.
3474         (record_latest_value): Likewise.
3475         (create_internalvar): Likewise.
3476         * varobj.c (install_variable): Likewise.
3477         (new_variable): Likewise.
3478         (new_root_variable): Likewise.
3479         (cppush): Likewise.
3480         (_initialize_varobj): Likewise.
3481         * windows-nat.c (windows_make_so): Likewise.
3482         * x86-nat.c (x86_add_process): Likewise.
3483         * xcoffread.c (arrange_linetable): Likewise.
3484         (allocate_include_entry): Likewise.
3485         (process_linenos): Likewise.
3486         (SYMBOL_DUP): Likewise.
3487         (xcoff_start_psymtab): Likewise.
3488         (xcoff_end_psymtab): Likewise.
3489         * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
3490         * xtensa-tdep.c (xtensa_register_type): Likewise.
3491         * gdbarch.c: Regenerate.
3492         * gdbarch.h: Regenerate.
3493
3494 2015-08-25  Don Breazeal  <donb@codesourcery.com>
3495
3496         * infrun.c (follow_exec): Re-order operations for
3497         handling follow-exec-mode "new".
3498         (handle_inferior_event_1): Assign ecs->event_thread
3499         to the current thread.
3500         * remote.c (get_remote_arch_state): Add an assertion.
3501
3502 2015-08-26  Pedro Alves  <palves@redhat.com>
3503
3504         * MAINTAINERS: Add Markus Metzger as btrace maintainer.
3505
3506 2015-08-25  Pedro Alves  <palves@redhat.com>
3507
3508         PR gdb/18804
3509         * defs.h (maybe_quit): Declare.
3510         (QUIT): Now calls maybe_quit.
3511         * event-loop.c (clear_async_signal_handler)
3512         (async_signal_handler_is_marked): New functions.
3513         * event-loop.h (async_signal_handler_is_marked)
3514         (clear_async_signal_handler): New declarations.
3515         * remote.c (remote_check_pending_interrupt): New function.
3516         (interrupt_query): Use make_cleanup_restore_target_terminal.  No
3517         longer check whether the target is async.  If waiting for a stop
3518         reply, and a Ctrl-C as been sent to the target, offer to
3519         disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
3520         Otherwise do not disconnect and throw a quit.
3521         (_initialize_remote): Install remote_check_pending_interrupt as
3522         to_check_pending_interrupt.
3523         * target.c (target_check_pending_interrupt): New function.
3524         * target.h (struct target_ops) <to_check_pending_interrupt>: New
3525         field.
3526         (target_check_pending_interrupt): New declaration.
3527         * utils.c (maybe_quit): New function.
3528         * target-delegates.c: Regenerate.
3529
3530 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3531
3532         * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
3533         Rename local variable pid to tid, and get lwpid of lwp.  Update
3534         debug output.
3535
3536 2015-08-25  Pierre-Marie de Rodat  <derodat@adacore.com>
3537
3538         * ada-lang.c (ada_read_var_value): Add a var_block argument
3539         and pass it to default_read_var_value.
3540         * block.c (block_static_link): New accessor.
3541         * block.h (block_static_link): Declare it.
3542         * buildsym.c (finish_block_internal): Add a static_link
3543         argument.  If there is a static link, associate it to the new
3544         block.
3545         (finish_block): Add a static link argument and pass it to
3546         finish_block_internal.
3547         (end_symtab_get_static_block): Update calls to finish_block and
3548         to finish_block_internal.
3549         (end_symtab_with_blockvector): Update call to
3550         finish_block_internal.
3551         * buildsym.h: Forward-declare struct dynamic_prop.
3552         (struct context_stack): Add a static_link field.
3553         (finish_block): Add a static link argument.
3554         * c-exp.y: Remove an obsolete comment (evaluation of variables
3555         already start from the selected frame, and now they climb *up*
3556         the call stack) and propagate the block information to the
3557         produced expression.
3558         * d-exp.y: Likewise.
3559         * f-exp.y: Likewise.
3560         * go-exp.y: Likewise.
3561         * jv-exp.y: Likewise.
3562         * m2-exp.y: Likewise.
3563         * p-exp.y: Likewise.
3564         * coffread.c (coff_symtab_read): Update calls to finish_block.
3565         * dbxread.c (process_one_symbol): Likewise.
3566         * xcoffread.c (read_xcoff_symtab): Likewise.
3567         * compile/compile-c-symbols.c (convert_one_symbol): Promote the
3568         "sym" parameter to struct block_symbol, update its uses and pass
3569         its block to calls to read_var_value.
3570         (convert_symbol_sym): Update the calls to convert_one_symbol.
3571         * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
3572         call to read_var_value.
3573         * dwarf2loc.c (block_op_get_frame_base): New.
3574         (dwarf2_block_frame_base_locexpr_funcs): Implement the
3575         get_frame_base method.
3576         (dwarf2_block_frame_base_loclist_funcs): Likewise.
3577         (dwarf2locexpr_baton_eval): Add a frame argument and use it
3578         instead of the selected frame in order to evaluate the
3579         expression.
3580         (dwarf2_evaluate_property): Add a frame argument.  Update call
3581         to dwarf2_locexpr_baton_eval to provide a frame in available and
3582         to handle the absence of address stack.
3583         * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
3584         * dwarf2read.c (attr_to_dynamic_prop): Add a forward
3585         declaration.
3586         (read_func_scope): Record any available static link description.
3587         Update call to finish_block.
3588         (read_lexical_block_scope): Update call to finish_block.
3589         * findvar.c (follow_static_link): New.
3590         (get_hosting_frame): New.
3591         (default_read_var_value): Add a var_block argument.  Use
3592         get_hosting_frame to handle non-local references.
3593         (read_var_value): Add a var_block argument and pass it to the
3594         LA_READ_VAR_VALUE method.
3595         * gdbtypes.c (resolve_dynamic_range): Update calls to
3596         dwarf2_evaluate_property.
3597         (resolve_dynamic_type_internal): Likewise.
3598         * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
3599         read_var_value, passing it the block coming from symbol lookup.
3600         * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
3601         read_var_value (TODO).
3602         * infcmd.c (finish_command_continuation): Update call to
3603         read_var_value, passing it the block coming from symbol lookup.
3604         * infrun.c (insert_exception_resume_breakpoint): Likewise.
3605         * language.h (struct language_defn): Add a var_block argument to
3606         the LA_READ_VAR_VALUE method.
3607         * objfiles.c (struct static_link_htab_entry): New.
3608         (static_link_htab_entry_hash): New.
3609         (static_link_htab_entry_eq): New.
3610         (objfile_register_static_link): New.
3611         (objfile_lookup_static_link): New.
3612         (free_objfile): Free the STATIC_LINKS hashed map if needed.
3613         * objfiles.h: Include hashtab.h.
3614         (struct objfile): Add a static_links field.
3615         (objfile_register_static_link): New.
3616         (objfile_lookup_static_link): New.
3617         * printcmd.c (print_variable_and_value): Update call to
3618         read_var_value.
3619         * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
3620         * python/py-frame.c (frapy_read_var): Update call to
3621         read_var_value, passing it the block coming from symbol lookup.
3622         * python/py-framefilter.c (extract_sym): Add a sym_block
3623         parameter and set the pointed value to NULL (TODO).
3624         (enumerate_args): Update call to extract_sym.
3625         (enumerate_locals): Update calls to extract_sym and to
3626         read_var_value.
3627         * python/py-symbol.c (sympy_value): Update call to
3628         read_var_value (TODO).
3629         * stack.c (read_frame_local): Update call to read_var_value.
3630         (read_frame_arg): Likewise.
3631         (return_command): Likewise.
3632         * symtab.h (struct symbol_block_ops): Add a get_frame_base
3633         method.
3634         (struct symbol): Add a block field.
3635         (SYMBOL_BLOCK): New accessor.
3636         * valops.c (value_of_variable): Remove frame/block handling and
3637         pass the block argument to read_var_value, which does this job
3638         now.
3639         (value_struct_elt_for_reference): Update calls to
3640         read_var_value.
3641         (value_of_this): Pass the block found to read_var_value.
3642         * value.h (read_var_value): Add a var_block argument.
3643         (default_read_var_value): Likewise.
3644
3645 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3646
3647         * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
3648         * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
3649         * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
3650
3651 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3652
3653         * Makefile.in (aarch64-liunx.o): New rule.
3654         (HFILES_NO_SRCDIR): Add aarch64-linux.h.
3655         * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
3656         * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
3657         * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
3658         extern.
3659         (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
3660         * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
3661         * nat/aarch64-linux.c: New file.
3662         * nat/aarch64-linux.h: New file.
3663
3664 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3665
3666         * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
3667         lwp_arch_private_info and ptid_of_lwp.
3668
3669 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3670
3671         * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
3672         Move it to nat/aarch64-linux-hw-point.c.
3673         (debug_reg_change_callback): Likewise.
3674         (aarch64_notify_debug_reg_change): :Likewise.
3675         * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
3676         (aarch64_dr_update_callback_param): New.
3677         (debug_reg_change_callback): New function.
3678         (aarch64_notify_debug_reg_change): Likewise.
3679         * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
3680         Remove the declaration.
3681
3682 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3683
3684         * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
3685         Call current_lwp_ptid.
3686
3687 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3688
3689         * aarch64-linux-nat.c (debug_reg_change_callback): Use
3690         debug_printf.
3691
3692 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3693
3694         * aarch64-linux-nat.c (debug_reg_change_callback): Call
3695         ptid_get_pid rather than ptid_get_lwp.
3696
3697 2015-08-24  Pedro Alves  <palves@redhat.com>
3698
3699         * NEWS (New commands): Mention set/show remote
3700         multiprocess-extensions-packet.
3701         * remote.c (remote_query_supported): Only tell the server to use
3702         the multiprocess extensions if the user hasn't force-disabled them
3703         with "set remote multiprocess-extensions-packet off".
3704
3705 2015-08-24  Pedro Alves  <palves@redhat.com>
3706
3707         * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
3708         1029a8112290f6eee9d7878a391c49db42c999bd.
3709         * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
3710         Regenerate.
3711         * gnulib/import/Makefile.am: Update.
3712         * gnulib/import/Makefile.in: Update.
3713         * gnulib/import/alloca.in.h: Update.
3714         * gnulib/import/basename-lgpl.c: Update.
3715         * gnulib/import/canonicalize-lgpl.c: Update.
3716         * gnulib/import/config.charset: Update.
3717         * gnulib/import/dirent.in.h: Update.
3718         * gnulib/import/dirfd.c: Update.
3719         * gnulib/import/dirname-lgpl.c: Update.
3720         * gnulib/import/dirname.h: Update.
3721         * gnulib/import/dosname.h: Update.
3722         * gnulib/import/errno.in.h: Update.
3723         * gnulib/import/extra/snippet/arg-nonnull.h: Update.
3724         * gnulib/import/extra/snippet/c++defs.h: Update.
3725         * gnulib/import/extra/snippet/warn-on-use.h: Update.
3726         * gnulib/import/extra/update-copyright: Update.
3727         * gnulib/import/float+.h: Update.
3728         * gnulib/import/float.c: Update.
3729         * gnulib/import/float.in.h: Update.
3730         * gnulib/import/fnmatch.c: Update.
3731         * gnulib/import/fnmatch.in.h: Update.
3732         * gnulib/import/fnmatch_loop.c: Update.
3733         * gnulib/import/fpucw.h: Update.
3734         * gnulib/import/frexp.c: Update.
3735         * gnulib/import/frexpl.c: Update.
3736         * gnulib/import/gettimeofday.c: Update.
3737         * gnulib/import/inttypes.in.h: Update.
3738         * gnulib/import/isnan.c: Update.
3739         * gnulib/import/isnand-nolibm.h: Update.
3740         * gnulib/import/isnand.c: Update.
3741         * gnulib/import/isnanl-nolibm.h: Update.
3742         * gnulib/import/isnanl.c: Update.
3743         * gnulib/import/itold.c: Update.
3744         * gnulib/import/localcharset.c: Update.
3745         * gnulib/import/localcharset.h: Update.
3746         * gnulib/import/lstat.c: Update.
3747         * gnulib/import/m4/00gnulib.m4: Update.
3748         * gnulib/import/m4/absolute-header.m4: Update.
3749         * gnulib/import/m4/alloca.m4: Update.
3750         * gnulib/import/m4/canonicalize.m4: Update.
3751         * gnulib/import/m4/codeset.m4: Update.
3752         * gnulib/import/m4/configmake.m4: Update.
3753         * gnulib/import/m4/dirent_h.m4: Update.
3754         * gnulib/import/m4/dirfd.m4: Update.
3755         * gnulib/import/m4/dirname.m4: Update.
3756         * gnulib/import/m4/double-slash-root.m4: Update.
3757         * gnulib/import/m4/eealloc.m4: Update.
3758         * gnulib/import/m4/errno_h.m4: Update.
3759         * gnulib/import/m4/exponentd.m4: Update.
3760         * gnulib/import/m4/exponentl.m4: Update.
3761         * gnulib/import/m4/extensions.m4: Update.
3762         * gnulib/import/m4/extern-inline.m4: Update.
3763         * gnulib/import/m4/fcntl-o.m4: Update.
3764         * gnulib/import/m4/float_h.m4: Update.
3765         * gnulib/import/m4/fnmatch.m4: Update.
3766         * gnulib/import/m4/fpieee.m4: Update.
3767         * gnulib/import/m4/frexp.m4: Update.
3768         * gnulib/import/m4/frexpl.m4: Update.
3769         * gnulib/import/m4/gettimeofday.m4: Update.
3770         * gnulib/import/m4/glibc21.m4: Update.
3771         * gnulib/import/m4/gnulib-cache.m4: Update.
3772         * gnulib/import/m4/gnulib-common.m4: Update.
3773         * gnulib/import/m4/gnulib-comp.m4: Update.
3774         * gnulib/import/m4/gnulib-tool.m4: Update.
3775         * gnulib/import/m4/include_next.m4: Update.
3776         * gnulib/import/m4/inttypes-pri.m4: Update.
3777         * gnulib/import/m4/inttypes.m4: Update.
3778         * gnulib/import/m4/isnand.m4: Update.
3779         * gnulib/import/m4/isnanl.m4: Update.
3780         * gnulib/import/m4/largefile.m4: Update.
3781         * gnulib/import/m4/localcharset.m4: Update.
3782         * gnulib/import/m4/locale-fr.m4: Update.
3783         * gnulib/import/m4/locale-ja.m4: Update.
3784         * gnulib/import/m4/locale-zh.m4: Update.
3785         * gnulib/import/m4/longlong.m4: Update.
3786         * gnulib/import/m4/lstat.m4: Update.
3787         * gnulib/import/m4/malloc.m4: Update.
3788         * gnulib/import/m4/malloca.m4: Update.
3789         * gnulib/import/m4/math_h.m4: Update.
3790         * gnulib/import/m4/mbrtowc.m4: Update.
3791         * gnulib/import/m4/mbsinit.m4: Update.
3792         * gnulib/import/m4/mbsrtowcs.m4: Update.
3793         * gnulib/import/m4/mbstate_t.m4: Update.
3794         * gnulib/import/m4/memchr.m4: Update.
3795         * gnulib/import/m4/memmem.m4: Update.
3796         * gnulib/import/m4/mmap-anon.m4: Update.
3797         * gnulib/import/m4/multiarch.m4: Update.
3798         * gnulib/import/m4/nocrash.m4: Update.
3799         * gnulib/import/m4/off_t.m4: Update.
3800         * gnulib/import/m4/pathmax.m4: Update.
3801         * gnulib/import/m4/readlink.m4: Update.
3802         * gnulib/import/m4/rename.m4: Update.
3803         * gnulib/import/m4/rmdir.m4: Update.
3804         * gnulib/import/m4/ssize_t.m4: Update.
3805         * gnulib/import/m4/stat.m4: Update.
3806         * gnulib/import/m4/stdbool.m4: Update.
3807         * gnulib/import/m4/stddef_h.m4: Update.
3808         * gnulib/import/m4/stdint.m4: Update.
3809         * gnulib/import/m4/stdio_h.m4: Update.
3810         * gnulib/import/m4/stdlib_h.m4: Update.
3811         * gnulib/import/m4/string_h.m4: Update.
3812         * gnulib/import/m4/strstr.m4: Update.
3813         * gnulib/import/m4/strtok_r.m4: Update.
3814         * gnulib/import/m4/sys_socket_h.m4: Update.
3815         * gnulib/import/m4/sys_stat_h.m4: Update.
3816         * gnulib/import/m4/sys_time_h.m4: Update.
3817         * gnulib/import/m4/sys_types_h.m4: Update.
3818         * gnulib/import/m4/time_h.m4: Update.
3819         * gnulib/import/m4/unistd_h.m4: Update.
3820         * gnulib/import/m4/warn-on-use.m4: Update.
3821         * gnulib/import/m4/wchar_h.m4: Update.
3822         * gnulib/import/m4/wchar_t.m4: Update.
3823         * gnulib/import/m4/wctype_h.m4: Update.
3824         * gnulib/import/m4/wint_t.m4: Update.
3825         * gnulib/import/malloc.c: Update.
3826         * gnulib/import/malloca.c: Update.
3827         * gnulib/import/malloca.h: Update.
3828         * gnulib/import/math.in.h: Update.
3829         * gnulib/import/mbrtowc.c: Update.
3830         * gnulib/import/mbsinit.c: Update.
3831         * gnulib/import/mbsrtowcs-impl.h: Update.
3832         * gnulib/import/mbsrtowcs-state.c: Update.
3833         * gnulib/import/mbsrtowcs.c: Update.
3834         * gnulib/import/memchr.c: Update.
3835         * gnulib/import/memmem.c: Update.
3836         * gnulib/import/pathmax.h: Update.
3837         * gnulib/import/readlink.c: Update.
3838         * gnulib/import/ref-add.sin: Update.
3839         * gnulib/import/ref-del.sin: Update.
3840         * gnulib/import/rename.c: Update.
3841         * gnulib/import/rmdir.c: Update.
3842         * gnulib/import/same-inode.h: Update.
3843         * gnulib/import/stat.c: Update.
3844         * gnulib/import/stdbool.in.h: Update.
3845         * gnulib/import/stddef.in.h: Update.
3846         * gnulib/import/stdint.in.h: Update.
3847         * gnulib/import/stdio.c: Update.
3848         * gnulib/import/stdio.in.h: Update.
3849         * gnulib/import/stdlib.in.h: Update.
3850         * gnulib/import/str-two-way.h: Update.
3851         * gnulib/import/streq.h: Update.
3852         * gnulib/import/string.in.h: Update.
3853         * gnulib/import/stripslash.c: Update.
3854         * gnulib/import/strnlen1.c: Update.
3855         * gnulib/import/strnlen1.h: Update.
3856         * gnulib/import/strstr.c: Update.
3857         * gnulib/import/strtok_r.c: Update.
3858         * gnulib/import/sys_stat.in.h: Update.
3859         * gnulib/import/sys_time.in.h: Update.
3860         * gnulib/import/sys_types.in.h: Update.
3861         * gnulib/import/time.in.h: Update.
3862         * gnulib/import/unistd.in.h: Update.
3863         * gnulib/import/verify.h: Update.
3864         * gnulib/import/wchar.in.h: Update.
3865         * gnulib/import/wctype.in.h: Update.
3866         * gnulib/import/gettimeofday.c: New file.
3867         * gnulib/import/m4/absolute-header.m4: New file.
3868         * gnulib/import/m4/gettimeofday.m4: New file.
3869         * gnulib/import/m4/sys_socket_h.m4: New file.
3870         * gnulib/import/m4/sys_time_h.m4: New file.
3871         * gnulib/import/stdio.c: Delete file.
3872         * gnulib/import/sys_time.in.h: New file.
3873
3874 2015-08-24  Pedro Alves  <palves@redhat.com>
3875
3876         * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
3877         * common/gdb_sys_time.h: New file.
3878         * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
3879         * gdb_select.h: Likewise.
3880         * gdb_usleep.c: Likewise.
3881         * maint.c: Likewise.
3882         * mi/mi-main.c: Likewise.
3883         * mi/mi-parse.h: Likewise.
3884         * remote-fileio.c: Likewise.
3885         * remote-m32r-sdi.c: Likewise.
3886         * remote.c: Likewise.
3887         * ser-base.c: Likewise.
3888         * ser-pipe.c: Likewise.
3889         * ser-tcp.c: Likewise.
3890         * ser-unix.c: Likewise.
3891         * symfile.c: Likewise.
3892         * symfile.c: Likewise.  Rename OSIZE to SIZE throughout.
3893         * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
3894         * utils.c: Likewise.
3895
3896 2015-08-24  Pedro Alves  <palves@redhat.com>
3897
3898         * NEWS: Mention removed support for the various ROM monitors.
3899         * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
3900         ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
3901         * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
3902         gdb_target_obs.
3903         (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
3904         gdb_target_obs.
3905         (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
3906         dsrec.o from gdb_target_obs.
3907         (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
3908         from gdb_target_obs.
3909         (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
3910         gdb_target_obs.
3911         (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
3912         dink32-rom.o from gdb_target_obs.
3913         (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
3914         (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
3915         * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
3916         monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
3917
3918 2015-08-21  Pedro Alves  <palves@redhat.com>
3919
3920         * frame.c (null_frame_id): Explicitly zero-initialize.
3921
3922 2015-08-21  Tom Tromey  <tromey@redhat.com>
3923
3924         * dwarf2read.c (struct dwarf2_section_info): Rename field
3925         'asection' to 'section'.
3926         (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
3927         (dwarf2_locate_sections, dwarf2_locate_sections)
3928         (locate_dwz_sections, locate_v1_virtual_dwo_sections)
3929         (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
3930         (dwarf2_locate_v2_dwp_sections): Adjust.
3931
3932 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
3933
3934         * top.h (gdb_in_secondary_prompt_p): Declare.
3935         * top.c (gdb_secondary_prompt_depth): Define.
3936         (gdb_in_secondary_prompt_p): Define.
3937         (gdb_readline_wrapper_cleanup): Decrement
3938         gdb_secondary_prompt_depth.
3939         (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
3940         * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
3941         are in a secondary prompt.
3942
3943 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
3944
3945         * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
3946         emit the newline.
3947
3948 2015-08-21  Gary Benson  <gbenson@redhat.com>
3949
3950         * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
3951
3952 2015-08-21  Gary Benson  <gbenson@redhat.com>
3953
3954         * target.h (struct target_ops) <to_fileio_open>: New argument
3955         warn_if_slow.  Update comment.  All implementations updated.
3956         (target_fileio_open_warn_if_slow): New declaration.
3957         * target.c (target_fileio_open): Renamed as...
3958         (target_fileio_open_1): ...this.  New argument warn_if_slow.
3959         Pass warn_if_slow to implementation.  Update debug printing.
3960         (target_fileio_open): New function.
3961         (target_fileio_open_warn_if_slow): Likewise.
3962         * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
3963         target_fileio_open_warn_if_slow.
3964
3965 2015-08-21  Gary Benson  <gbenson@redhat.com>
3966
3967         * nat/linux-namespaces.c (linux_mntns_access_fs):
3968         Do not overwrite old_chain.
3969
3970 2015-08-20  Max Filippov  <jcmvbkbc@gmail.com>
3971
3972         * arch/xtensa.h: New file.
3973         * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
3974         (ps_get_thread_area): New function.
3975         * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
3976         set_gdbarch_fetch_tls_load_module_address to enable TLS support.
3977         * xtensa-tdep.c (osabi.h): New #include.
3978         (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
3979         xtensa-specific hooks.
3980         * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
3981         member and move the structure to arch/xtensa.h.
3982
3983 2015-08-21  Pedro Alves  <palves@redhat.com>
3984
3985         * remote.c (struct readahead_cache): New.
3986         (struct remote_state) <readahead_cache>: New field.
3987         (remote_open_1): Invalidate the cache.
3988         (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
3989         functions.
3990         (remote_hostio_pwrite): Invalidate the readahead cache.
3991         (remote_hostio_pread): Rename to ...
3992         (remote_hostio_pread_vFile): ... this.
3993         (remote_hostio_pread_from_cache): New function.
3994         (remote_hostio_pread): Reimplement.
3995         (remote_hostio_close): Invalidate the readahead cache.
3996
3997 2015-08-21  Marcin CieÅ›lak <saper@saper.info>  (tiny patch)
3998
3999         PR build/18843
4000         * procfs.c: Include "filestuff.h".
4001
4002 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
4003
4004         * tui/tui-data.h (tui_command_info): Remove fields cur_line and
4005         curch.
4006         * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
4007         cur_line or curch, instead call wmove().
4008         (init_win_info) [CMD_WIN]: Likewise.
4009         * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
4010         instead call getcury().
4011         (tui_redisplay_readline): Don't set cur_line or curch.
4012         (tui_mld_erase_entire_line): Don't read cur_line, instead call
4013         getcury().
4014         (tui_cont_sig): Remove call to wmove.
4015         (tui_getc): Don't read cur_line or curch, instead call getcury()
4016         or getyx().  Don't set curch.
4017         * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
4018         set cur_line or curch.  Always move cursor to (0,0).
4019
4020 2015-08-20  Pedro Alves  <palves@redhat.com>
4021
4022         * infrun.c (print_target_wait_results): Make extern.
4023         * infrun.h (print_target_wait_results): Declare.
4024         * remote.c (set_stop_requested_callback): Delete.
4025         (process_initial_stop_replies): New function.
4026         (remote_start_remote): Use it.
4027         (stop_reply_queue_length): New function.
4028
4029 2015-08-20  Pedro Alves  <palves@redhat.com>
4030
4031         * dwarf2read.c (process_full_comp_unit): To tell whether
4032         start_subfile managed to deduce a language, test for
4033         language_unknown instead of language_c.
4034
4035 2015-08-20  Pierre-Marie de Rodat  <derodat@adacore.com>
4036
4037         * ada-lex.l: Reset the start condition to INITIAL in the rule that
4038         matches attributes.
4039
4040 2015-08-19  Kevin Buettner  <kevinb@redhat.com>
4041
4042         * dwarf2read.c (dwarf2_string_attr): New function.
4043         (lookup_dwo_unit, process_psymtab_comp_unit_reader)
4044         (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
4045         (read_call_site_scope, namespace_name, guess_full_die_structure_name)
4046         (anonymous_struct_prefix, prepare_one_comp_unit): Use
4047         dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
4048
4049 2015-08-18  Doug Evans  <dje@google.com>
4050             Adrian Sendroiu <adrian.sendroiu@freescale.com>
4051
4052         PR mi/18833
4053         * cli/cli-logging.c (pop_output_files): Don't restore redirection
4054         if MI-like.
4055         * mi/mi-out.c: #include "vec.h".
4056         (ui_filep): New type.
4057         (DEV_VEC_P (ui_filep)): New type.
4058         (struct ui_out_data) <buffer, original_buffer>: Delete.
4059         (struct ui_out_data) <streams>: New member.
4060         (mi_ui_out_impl): Add data_destroy field.
4061         (mi_field_string, mi_field_fmt): Update.
4062         (mi_flush, mi_redirect, field_separator): Update.
4063         (mi_open, mi_close): Update.
4064         (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
4065         (mi_out_data_ctor, mi_out_data_dtor): New functions.
4066         (mi_out_new): Call mi_out_data_ctor.
4067
4068 2015-08-18  Sandra Loosemore  <sandra@codesourcery.com>
4069
4070         * remote.c (strprefix): New.
4071         (remote_parse_stop_reply): Use strprefix instead of strncmp
4072         to ensure exact match of keyword.
4073
4074 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
4075
4076         * gdb_bfd.c (debug_bfd_cache): New variable.
4077         (show_bfd_cache_debug): New function.
4078         (gdb_bfd_open): Add debug logging.
4079         (gdb_bfd_ref): Likewise.
4080         (gdb_bfd_unref): Likewise.
4081         (_initialize_gdb_bfd): Add new set/show command.
4082         * NEWS: Mention new command.
4083
4084 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
4085
4086         * gdb_bfd.c (bfd_sharing): New variable.
4087         (show_bfd_sharing): New function.
4088         (gdb_bfd_open): Check bfd_sharing variable.
4089         (_initialize_gdb_bfd): Add new set/show command.
4090         * NEWS: Mention new command.
4091
4092 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
4093
4094         * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
4095         field.
4096         (struct gdb_bfd_cache_search): Likewise.
4097         (eq_bfd): Compare the size, inode, and device id fields.
4098         (gdb_bfd_open): Initialise the size, inode, and device id fields.
4099         (gdb_bfd_ref): Likewise.
4100         (gdb_bfd_unref): Likewise.
4101
4102 2015-08-18  Pedro Alves  <palves@redhat.com>
4103
4104         * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
4105         target implements to_always_non_stop_p, call it.
4106         * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
4107         (x86_linux_create_target): Install it as to_always_non_stop_p
4108         method.
4109
4110 2015-08-17  Doug Evans  <dje@google.com>
4111
4112         * ui-out.c (default_ui_out_impl): Add comment.
4113
4114 2015-08-17  Iain Buclaw  <ibuclaw@gdcproject.org>
4115
4116         * d-exp.y (type_aggregate_p): New function.
4117         (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
4118         (classify_inner_name): Likewise.
4119         * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
4120
4121 2015-08-15  Doug Evans  <xdje42@gmail.com>
4122
4123         * psymtab.c (add_psymbol_to_bcache): Remove "val" arg.  All callers
4124         updated.
4125         (add_psymbol_to_list): Ditto.
4126
4127 2015-08-15  Doug Evans  <xdje42@gmail.com>
4128
4129         * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab.  All callers
4130         updated.  Call end_psymtab_common.
4131         * dwarf2read.c (process_psymtab_comp_unit_reader): Call
4132         end_psymtab_common.
4133         (build_type_psymtabs_reader): Ditto.
4134         * psympriv.h (sort_pst_symbols): Delete.
4135         (end_psymtab_common): Declare.
4136         * psymtab.c (sort_pst_symbols): Make static.
4137         (end_psymtab_common): New function.
4138         * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
4139
4140 2015-08-15  Doug Evans  <xdje42@gmail.com>
4141
4142         * defs.h (LANGUAGE_BITS): Define.
4143         * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
4144         (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
4145         * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
4146         (minimal_symbol_type): Add nr_minsym_types.
4147         (MINSYM_TYPE_BITS): Define.
4148         (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
4149         (domain_enum_tag): Add NR_DOMAINS.
4150         (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
4151         (SYMBOL_ACLASS_BITS): Define from 6 to 5.
4152
4153 2015-08-15  Doug Evans  <xdje42@gmail.com>
4154
4155         * objfiles.h: Whitespace cleanup.
4156         * psympriv.h: Whitespace cleanup.
4157         * psymtab.c: Whitespace/coding convention cleanup.
4158
4159 2015-08-15  Patrick Palka  <patrick@parcs.ath.cx>
4160
4161         * inferior.c (detach_inferior_command): Don't call
4162         any_thread_of_process when pid is 0.
4163         (kill_inferior_command): Likewise.
4164
4165 2015-08-14  Doug Evans  <xdje42@gmail.com>
4166
4167         PR gdb/11833
4168         * NEWS: Document new /s modifier for the disassemble command.
4169         * cli/cli-cmds.c (disassemble_command): Add support for /s.
4170         (_initialize_cli_cmds): Update online docs of disassemble command.
4171         * disasm.c: #include "source.h".
4172         (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
4173         All uses updated.
4174         (dis_line_entry): New struct.
4175         (hash_dis_line_entry, eq_dis_line_entry): New functions.
4176         (allocate_dis_line_table): New functions.
4177         (maybe_add_dis_line_entry, line_has_code_p): New functions.
4178         (dump_insns): New arg end_pc.  All callers updated.
4179         (do_mixed_source_and_assembly_deprecated): Renamed from
4180         do_mixed_source_and_assembly.  All callers updated.
4181         (do_mixed_source_and_assembly): New function.
4182         (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
4183         * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
4184         DISASSEMBLY_SOURCE.  All uses updated.
4185         (DISASSEMBLY_SOURCE): New macro.
4186         * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
4187
4188 2015-08-14  Keith Seitz  <keiths@redhat.com>
4189
4190         * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
4191         `typename' to `type_name' to avoid C++ reserved word.
4192
4193 2015-08-14  Keith Seitz  <keiths@redhat.com>
4194
4195         * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
4196         (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
4197         silence ARI errors.
4198
4199 2015-08-14  Iain Buclaw  <ibuclaw@gdcproject.org>
4200
4201         * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
4202         xstrprintf instead of malloc and sprintf.
4203         (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
4204         (lex_one_token): Likewise.
4205
4206 2015-08-14  Matthew Fortune  <matthew.fortune@imgtec.com>
4207
4208         * solib-svr4.c (read_program_header): Add base_addr argument to
4209         report the runtime address of the segment.
4210         (find_program_interpreter): Update read_program_header call to pass
4211         a NULL pointer for the new argument.
4212         (scan_dyntag): Add ptr_addr argument to report the runtime address
4213         of the tag payload.
4214         (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
4215         read_program_header to get the base address of the dynamic segment.
4216         (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
4217         read_program_header.
4218         (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
4219
4220 2015-08-14  Matthew Fortune  <matthew.fortune@imgtec.com>
4221
4222         * MAINTAINERS (Write After Approval): Add Matthew Fortune.
4223
4224 2015-08-13  Iain Buclaw  <ibuclaw@gdcproject.org>
4225
4226         * d-exp.y (%union): Add voidval.
4227         (%token): Add UNKNOWN_NAME as a token to represent an unclassified
4228         name in the lexing stage.
4229         (PostfixExpression): Move symbol completion handling in grammar here
4230         from PrimaryExpression.
4231         (PrimaryExpression): Move routines to handle resolving identifier
4232         tokens in the grammar here from push_expression_name.
4233         (IdentifierExp): Remove the handling of alternating '.' and identifier
4234         tokens.
4235         (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
4236         (BasicType): Remove C-style typename rules.
4237         (d_type_from_name, d_module_from_name, push_variable)
4238         (push_fieldnames, push_type_name, push_module_name)
4239         (push_expression_name): Remove.
4240         (lex_one_token): Rename from yylex.  Replace pstate with par_state.
4241         (token_and_value): New type.
4242         (token_fifo, popping, name_obstack): New globals.
4243         (classify_name): New function.
4244         (classify_inner_name): Likewise.
4245         (yylex): Likewise.
4246         (d_parse): Initialize token_fifo, popping and name_obstack.
4247
4248 2015-08-13  Iain Buclaw  <ibuclaw@gdcproject.org>
4249
4250         * Makefile.in (SFILES): Add d-namespace.c.
4251         (COMMON_OBS): Add d-namespace.o.
4252         * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
4253         la_lookup_symbol_nonlocal callback function pointer.
4254         * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
4255         (d_lookup_nested_symbol): New declaration.
4256         * d-namespace.c: New file.
4257
4258 2015-08-13  Pedro Alves  <palves@redhat.com>
4259
4260         * python/py-unwind.c (pyuw_sniffer): Install the invalidate
4261         cleanup after the decref cleanup, not before.
4262
4263 2015-08-13  Pierre-Marie de Rodat  <derodat@adacore.com>
4264
4265         * ada-lang.c: Include namespace.h
4266         (aux_add_nonlocal_symbols): Fix a function name in comment.
4267         (ada_add_block_renamings): New.
4268         (add_nonlocal_symbols): Add global renamings handling.
4269         (ada_lookup_symbol_list_worker): Move the symbol lookup part
4270         to...
4271         (ada_add_all_symbols): ... this new function.
4272         (ada_add_block_symbols): Try to match the input name against the
4273         "using directives list", perform a recursive symbol lookup on
4274         the matched declarations.
4275         * block.h (struct block): Move the_namespace to top-level as
4276         namespace_info. Remove the language_specific field.
4277         (BLOCK_NAMESPACE): Update access to the namespace_info field.
4278         * buildsym.h (using_directives): Rename into...
4279         (local_using_directives): ... this.
4280         (global_using_directives): New.
4281         (struct context_stack): Rename the using_directives field into
4282         local_using_directives.
4283         * buildsym.c (finish_block_internal): Deal with the proper
4284         using directives repository (local or global).
4285         (prepare_for_building): Reset local_using_directives. Assert
4286         that there is no pending global using directive.
4287         (reset_symtab_globals): Reset global_using_directives and
4288         local_using_directives.
4289         (end_symtab_get_static_block): Don't ignore symtabs that have
4290         only using directives.
4291         (push_context): Update references to local_using_directives.
4292         (buildsym_init): Do not reset using_directives.
4293         * cp-support.c: Include namespace.h.
4294         * cp-support.h (struct using_direct): Move to namespace.h.
4295         (cp_add_using_directives): Move to namespace.h.
4296         * cp-namespace.c: Include namespace.h
4297         (cp_add_using_directive): Move to namespace.c, rename it to
4298         add_using_directive, add a "using_directives" argument and use
4299         it as the pending using directives repository.  All callers
4300         updated.
4301         * dwarf2read.c (using_directives): New.
4302         (read_import_statement): Call using_directives.
4303         (read_func_scope): Update references to local_using_directives.
4304         (read_lexical_block_scope): Likewise.
4305         (read_namespace): Update the heading comment, call
4306         using_directives.
4307         * namespace.h: New file.
4308         * namespace.c: New file.
4309         * Makefile.in (SFILES): Add namespace.c.
4310         (COMMON_OBS): Add namespace.o
4311
4312 2015-08-12  Joel Brobecker  <brobecker@adacore.com>
4313
4314         * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
4315         compute RETADDR.
4316
4317 2015-08-12  Keith Seitz  <keiths@redhat.com>
4318
4319         * break-catch-throw.c (re_set_exception_catchpoint) Rename
4320         reserved C++ keyword "explicit" to "explicit_loc".
4321         * breakpoint.c (create_overlay_event_breakpoint)
4322         (create_longjmp_master_breakpoint)
4323         (create_std_terminate_master_breakpoint)
4324         (create_exception_master_breakpoint, update_static_tracepoint):
4325         Rename reserved C++ keyword "explicit" to "explicit_loc".
4326         * completer.c (collect_explicit_location_matches)
4327         (explicit_location_completer): Rename reserved C++ keyword
4328         "explicit" to "explicit_loc".
4329         * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
4330         (canonicalize_linespec, create_sals_line_offset)
4331         (convert_linespec_to_sals, convert_explicit_location_to_sals)
4332         (event_location_to_sals, decode_objc): Rename reserved C++ keyword
4333         "explicit" to "explicit_loc".
4334         * location.c (struct event_location) <explicit>: Rename to
4335         "explicit_loc".
4336         (initialize_explicit_location, new_explicit_location)
4337         (explicit_location_to_string_internal, explicit_location_to_linespec):
4338         Rename reserved C++ keyword "explicit" to "explicit_loc".
4339         * location.h (explicit_location_to_string)
4340         (explicit_location_to_linespec, initialize_explicit_location)
4341         (new_explicit_location): Rename reserved C++ keyword "explicit"
4342         to "explicit_loc".
4343         * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
4344         keyword "explicit" to "explicit_loc".
4345
4346 2015-08-12  Keith Seitz  <keiths@redhat.com>
4347
4348         * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
4349         and only call decode_line_1 when it is non-NULL.
4350
4351 2015-08-12  Luis Machado  <lgustavo@codesourcery.com>
4352
4353         * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
4354         location address is not meaningful.
4355         (breakpoint_address_is_meaningful): Update comment.
4356
4357 2015-08-11  Keith Seitz  <keiths@redhat.com>
4358
4359         * NEWS: Mention explicit locations.
4360         * breakpoint.c [LOCATION_HELP_STRING]: New macro.
4361         [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
4362         (_initialize_breakpoint): Update documentation for
4363         "clear", "break", "trace", "strace", "ftrace", and "dprintf".
4364
4365 2015-08-11  Keith Seitz  <keiths@redhat.com>
4366
4367         * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
4368         explicit locations, options "--source", "--function",
4369         "--label", and "--line".
4370
4371 2015-08-11  Keith Seitz  <keiths@redhat.com>
4372
4373         * completer.c: Include location.h.
4374         (enum match_type): New enum.
4375         (location_completer): Rename to ...
4376         (linespec_completer): ... this.
4377         (collect_explicit_location_matches, backup_text_ptr)
4378         (explicit_location_completer): New functions.
4379         (location_completer): "New" function; handle linespec
4380         and explicit location completions.
4381         (complete_line_internal): Remove all location completer-specific
4382         handling.
4383         * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
4384         (find_toplevel_char): Export.
4385         (linespec_parse_line_offset): Export.
4386         Issue error if STRING is not numerical.
4387         (gdb_get_linespec_parser_quote_characters): New function.
4388         * linespec.h (linespec_parse_line_offset): Declare.
4389         (get_gdb_linespec_parser_quote_characters): Declare.
4390         (is_ada_operator): Declare.
4391         (find_toplevel_char): Declare.
4392         (linespec_lexer_lex_keyword): Declare.
4393         * location.c (explicit_to_event_location): New function.
4394         (explicit_location_lex_one): New function.
4395         (string_to_explicit_location): New function.
4396         (string_to_event_location): Handle explicit locations.
4397         * location.h (explicit_to_event_location): Declare.
4398         (string_to_explicit_location): Declare.
4399
4400 2015-08-11  Keith Seitz  <keiths@redhat.com>
4401
4402         * break-catch-throw.c (re_set_exception_catchpoint): Convert
4403         linespec into explicit location.
4404         * breakpoint.c (create_overlay_breakpoint)
4405         (create_longjmp_master_breakpoint)
4406         (create_std_terminate_master_breakpoint)
4407         (create_exception_master_breakpoint): Convert linespec into explicit
4408         location.
4409         (update_static_tracepoint): Convert linespec into explicit location.
4410         * linespec.c (enum offset_relative_sign, struct line_offset): Move
4411         location.h.
4412         (struct linespec) <expression, expr_pc, source_filename>
4413         <function_name, label_name, line_offset>: Replace with ...
4414         <explicit>: ... this.
4415         <is_linespec>: New member.
4416         (PARSER_EXPLICIT): New accessor macro.
4417         (undefined_label_error): New function.
4418         (source_file_not_found_error): New function.
4419         (linespec_parse_basic): The parser result is now an explicit location.
4420         Use PARSER_EXPLICIT to access it.
4421         Use undefined_label_error.
4422         (canonicalize_linespec): Convert canonical linespec into explicit
4423         location.
4424         Move string representation of location to explicit_location_to_linespec
4425         and use it and explicit_location_to_string to save string
4426         representations of the canonical location.
4427         (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
4428         explicit location.  Update all references.
4429         (convert_explicit_location_to_sals): New function.
4430         (parse_linespec): Use PARSER_EXPLICIT to access the parser
4431         result's explicit location.
4432         (linespec_state_constructor): Initialize is_linespec.
4433         Use PARSER_EXPLICIT.
4434         (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
4435         result.
4436         (event_location_to_sals): For linespec locations, set is_linespec.
4437         Handle explicit locations.
4438         (decode_objc): 'ls' contains an explicit location now. Update all
4439         references.
4440         (symtabs_from_filename): Use source_file_not_found_error.
4441         * location.c (struct event_location.u) <explicit>: New member.
4442         (initialize_explicit_location): New function.
4443         (initialize_event_location): Initialize explicit locations.
4444         (new_explicit_location, get_explicit_location)
4445         (get_explicit_location_const): New functions.
4446         (explicit_to_string_internal): New function; most of contents moved
4447         from canonicalize_linespec.
4448         (explicit_location_to_string): New function.
4449         (explicit_location_to_linespec): New function.
4450         (copy_event_location, delete_event_location)
4451         (event_location_to_string_const, event_location_empty_p): Handle
4452         explicit locations.
4453         * location.h (enum offset_relative_sign, struct line_offset): Move
4454         here from linespec.h.
4455         (enum event_location_type): Add EXPLICIT_LOCATION.
4456         (struct explicit_location): New structure.
4457         (explicit_location_to_string): Declare.
4458         (explicit_location_to_linespec): Declare.
4459         (new_explicit_location, get_explicit_locationp
4460         (get_explicit_location_const, initialize_explicit_location): Declare.
4461
4462 2015-08-11  Keith Seitz  <keiths@redhat.com>
4463
4464         * break-catch-throw.c (re_set_exception_catchpoint): Convert
4465         linespec for stap probe to probe location.
4466         * breakpoint.c (create_longjmp_master_breakpoint)
4467         (create_exception_master_breakpoint): Likewise.
4468         (break_command_1): Remove local variable `arg_cp'.
4469         Check location type to set appropriate breakpoint ops methods.
4470         (trace_command): Likewise.
4471         * linespec.c (event_location_to_sals): Assert on probe locations.
4472         * location.c (EL_PROBE): Add macro definition.
4473         (new_probe_location, get_probe_location): New functions.
4474         (copy_event_location, delete_event_location, event_location_to_string)
4475         (string_to_event_location, event_location_empty_p): Handle probe
4476         locations.
4477         * location.h (enum event_location_type): Add PROBE_LOCATION.
4478         (new_probe_location, get_probe_location): Declare.
4479         * probe.c (parse_probes): Assert that LOCATION is a probe location.
4480         Convert linespec into probe location.
4481
4482 2015-08-11  Keith Seitz  <keiths@redhat.com>
4483
4484         * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
4485         Convert linespec to address location.
4486         * linespec.c (canonicalize_linespec): Do not handle address
4487         locations here.
4488         (convert_address_location_to_sals): New function; contents moved
4489         from ...
4490         (convert_linespc_to_sals): ... here.
4491         (parse_linespec): Remove address locations from linespec grammar.
4492         Remove handling of address locations.
4493         (linespec_lex_to_end): Remove handling of address linespecs.
4494         (event_location_to_sals): Handle ADDRESS_LOCATION.
4495         (linespec_expression_to_pc): Export.
4496         * linespec.h (linespec_expression_to_pc): Add declaration.
4497         * location.c (struct event_location.u) <address>: New member.
4498         (new_address_location, get_address_location): New functions.
4499         (copy_event_location, delete_event_location, event_location_to_string)
4500         (string_to_event_location, event_location_empty_p): Handle address
4501         locations.
4502         * location.h (enum event_location_type): Add ADDRESS_LOCATION.
4503         (new_address_location, get_address_location): Declare.
4504         * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
4505         to address location.
4506         * spu-tdep.c (spu_catch_start): Likewise.
4507
4508 2015-08-11  Keith Seitz  <keiths@redhat.com>
4509
4510         * ax-gdb.c: Include location.h.
4511         (agent_command_1) Use linespec location instead of address
4512         string.
4513         * break-catch-throw.c: Include location.h.
4514         (re_set_exception_catchpoint): Use linespec locations instead
4515         of address strings.
4516         * breakpoint.c: Include location.h.
4517         (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
4518         (create_std_terminate_master_breakpoint)
4519         (create_exception_master_breakpoint, update_breakpoints_after_exec):
4520         Use linespec location instead of address string.
4521         (print_breakpoint_location):  Use locations and
4522         event_location_to_string.
4523         Print extra_string for pending locations for non-MI streams.
4524         (print_one_breakpoint_location): Use locations and
4525         event_location_to_string.
4526         (init_raw_breakpoint_without_location): Initialize b->location.
4527         (create_thread_event_breakpoint): Use linespec location instead of
4528         address string.
4529         (init_breakpoint_sal): Likewise.
4530         Only save extra_string if it is non-NULL and not the empty string.
4531         Use event_location_to_string instead of `addr_string'.
4532         Constify `p' and `endp'.
4533         Use skip_spaces_const/skip_space_const instead of non-const versions.
4534         Copy the location into the breakpoint.
4535         If LOCATION is NULL, save the breakpoint address as a linespec location
4536         instead of an address string.
4537         (create_breakpoint_sal): Change `addr_string' parameter to a struct
4538         event_location. All uses updated.
4539         (create_breakpoints_sal): Likewise for local variable `addr_string'.
4540         (parse_breakpoint_sals): Use locations instead of address strings.
4541         Remove check for empty linespec with conditional.
4542         Refactor.
4543         (decode_static_tracepoint_spec): Make argument const and update
4544         function.
4545         (create_breakpoint): Change `arg' to a struct event_location and
4546         rename.
4547         Remove `copy_arg' and `addr_start'.
4548         If EXTRA_STRING is empty, set it to NULL.
4549         Don't populate `canonical' for pending breakpoints.
4550         Pass `extra_string' to find_condition_and_thread.
4551         Clear `extra_string' if `rest' was NULL.
4552         Do not error with "garbage after location" if setting a dprintf
4553         breakpoint.
4554         Copy the location into the breakpoint instead of an address string.
4555         (break_command_1): Use string_to_event_location and pass this to
4556         create_breakpoint instead of an address string.
4557         Check against `arg_cp' for a probe linespec.
4558         (dprintf_command): Use string_to_event_location and pass this to
4559         create_breakpoint instead of an address string.
4560         Throw an exception if no format string was specified.
4561         (print_recreate_ranged_breakpoint): Use event_location_to_string
4562         instead of address strings.
4563         (break_range_command, until_break_command)
4564         (init_ada_exception_breakpoint): Use locations instead
4565         of address strings.
4566         (say_where): Print out extra_string for pending locations.
4567         (base_breakpoint_dtor): Delete `location' and `location_range_end' of
4568         the breakpoint.
4569         (base_breakpoint_create_sals_from_location): Use struct event_location
4570         instead of address string.
4571         Remove `addr_start' and `copy_arg' parameters.
4572         (base_breakpoint_decode_location): Use struct event_location instead of
4573         address string.
4574         (bkpt_re_set): Use locations instead of address strings.
4575         Use event_location_empty_p to check for unset location.
4576         (bkpt_print_recreate): Use event_location_to_string instead of
4577         an address string.
4578         Print out extra_string for pending locations.
4579         (bkpt_create_sals_from_location, bkpt_decode_location)
4580         (bkpt_probe_create_sals_from_location): Use struct event_location
4581         instead of address string.
4582         (bkpt_probe_decode_location): Use struct event_location instead of
4583         address string.
4584         (tracepoint_print_recreate): Use event_location_to_string to
4585         recreate the tracepoint.
4586         (tracepoint_create_sals_from_location, tracepoint_decode_location)
4587         (tracepoint_probe_create_sals_from_location)
4588         (tracepoint_probe_decode_location): Use struct event_location
4589         instead of address string.
4590         (dprintf_print_recreate): Use event_location_to_string to recreate
4591         the dprintf.
4592         (dprintf_re_set): Remove check for valid/missing format string.
4593         (strace_marker_create_sals_from_location)
4594         (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
4595         (update_static_tracepoint): Use struct event_location instead of
4596         address string.
4597         (location_to_sals): Likewise.
4598         Pass `extra_string' to find_condition_and_thread.
4599         For newly resolved pending breakpoint locations, clear the location's
4600         string representation.
4601         Assert that the breakpoint's condition string is NULL when
4602         condition_not_parsed.
4603         (breakpoint_re_set_default, create_sals_from_location_default)
4604         (decode_location_default, trace_command, ftrace_command)
4605         (strace_command, create_tracepoint_from_upload): Use locations
4606         instead of address strings.
4607         * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
4608         Use struct event_location instead of address string.
4609         Update all uses.
4610         <decode_location>: Likewise.
4611         (struct breakpoint) <addr_string>: Change to struct event_location
4612         and rename `location'.
4613         <addr_string_range_end>: Change to struct event_location and rename
4614         `location_range_end'.
4615         (create_breakpoint): Use struct event_location instead of address
4616         string.
4617         * cli/cli-cmds.c: Include location.h.
4618         (edit_command, list_command): Use locations instead of address strings.
4619         * elfread.c: Include location.h.
4620         (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
4621         * guile/scm-breakpoint.c: Include location.h.
4622         (bpscm_print_breakpoint_smob): Use event_location_to_string.
4623         (gdbscm_register_breakpoint): Use locations instead of address
4624         strings.
4625         * linespec.c: Include location.h.
4626         (struct ls_parser) <stream>: Change to const char *.
4627         (PARSER_STREAM): Update.
4628         (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
4629         keywords must be followed by whitespace.
4630         (canonicalize_linespec): Save a linespec location into `canonical'.
4631         Save a canonical linespec into `canonical'.
4632         (parse_linespec): Change `argptr' to const char * and rename `arg'.
4633         All uses updated.
4634         Update function description.
4635         (linespec_parser_new): Initialize `parser'.
4636         Update initialization of  parsing stream.
4637         (event_location_to_sals): New function.
4638         (decode_line_full): Change `argptr' to a struct event_location and
4639         rename it `location'.
4640         Use locations instead of address strings.
4641         Call event_location_to_sals instead of parse_linespec.
4642         (decode_line_1): Likewise.
4643         (decode_line_with_current_source, decode_line_with_last_displayed)
4644         Use locations instead of address strings.
4645         (decode_objc): Likewise.
4646         Change `argptr' to const char * and rename `arg'.
4647         (destroy_linespec_result): Delete the linespec result's location
4648         instead of freeing the address string.
4649         * linespec.h (struct linespec_result) <addr_string>: Change to
4650         struct event_location and rename to ...
4651         <location>: ... this.
4652         (decode_line_1, decode_line_full): Change `argptr' to struct
4653         event_location.  All callers updated.
4654         * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
4655         (mi_cmd_break_insert_1): Use locations instead of address strings.
4656         Throw an error if there was "garbage" at the end of the specified
4657         linespec.
4658         * probe.c: Include location.h.
4659         (parse_probes): Change `argptr' to struct event_location.
4660         Use event locations instead of address strings.
4661         * probe.h (parse_probes): Change `argptr' to struct event_location.
4662         * python/py-breakpoint.c: Include location.h.
4663         (bppy_get_location): Constify local variable `str'.
4664         Use event_location_to_string.
4665         (bppy_init): Use locations instead of address strings.
4666         * python/py-finishbreakpoint.c: Include location.h.
4667         (bpfinishpy_init): Remove local variable `addr_str'.
4668         Use locations instead of address strings.
4669         * python/python.c: Include location.h.
4670         (gdbpy_decode_line): Use locations instead of address strings.
4671         * remote.c: Include location.h.
4672         (remote_download_tracepoint): Use locations instead of address
4673         strings.
4674         * spu-tdep.c: Include location.h.
4675         (spu_catch_start): Remove local variable `buf'.
4676         Use locations instead of address strings.
4677         * tracepoint.c: Include location.h.
4678         (scope_info): Use locations instead of address strings.
4679         (encode_source_string): Constify parameter `src'.
4680         * tracepoint.h (encode_source_string): Likewise.
4681
4682 2015-08-11  Keith Seitz  <keiths@redhat.com>
4683
4684         * Makefile.in (SFILES): Add location.c.
4685         (HFILES_NO_SRCDIR): Add location.h.
4686         (COMMON_OBS): Add location.o.
4687         * linespec.c (linespec_lex_to_end): New function.
4688         * linespec.h (linespec_lex_to_end): Declare.
4689         * location.c: New file.
4690         * location.h: New file.
4691
4692 2015-08-11  Keith Seitz  <keiths@redhat.com>
4693
4694         * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
4695         Renamed to create_sals_from_location.
4696         <decode_linespec>: Renamed to decode_location.
4697         Update all callers.
4698         * breakpoint.c (create_sals_from_address_default): Renamed to ...
4699         (create_sals_from_location_default): ... this.
4700         (addr_string_to_sals): Renamed to ...
4701         (location_to_sals): ... this.
4702         (decode_linespec_default): Renamed to ...
4703         (decode_location_default): ... this.
4704         (base_breakpoint_create_sals_from_address): Renamed to ...
4705         (base_breakpoint_create_sals_from_location): ... this.
4706         (bkpt_create_sals_from_address): Renamed to ...
4707         (bkpt_create_sals_from_location): ... this.
4708         (bkpt_decode_linespec): Renamed to ...
4709         (bkpt_decode_location): ... this.
4710         (bkpt_probe_create_sals_from_address): Renamed to ...
4711         (bkpt_probe_create_sals_from_location): ... this.
4712         (tracepoint_create_sals_from_address): Renamed to ...
4713         (tracepoint_create_sals_from_location): ... this.
4714         (tracepoint_decode_linespec): Renamed to ...
4715         (tracepoint_decode_location): ... this.
4716         (tracepoint_probe_create_sals_from_address): Renamed to ...
4717         (tracepoint_probe_create_sals_from_location): ... this.
4718         (tracepoint_probe_decode_linespec): Renamed to ...
4719         (tracepoint_probe_decode_location): ... this.
4720         (strace_marker_create_sals_from_address): Renamed to ...
4721         (strace_marker_create_sals_from_location): ... this.
4722         (decode_linespec_default): Renamed to ...
4723         (decode_location_default): ... this.
4724
4725 2015-08-10  Doug Evans  <dje@google.com>
4726             Keith Seitz  <keiths@redhat.com>
4727
4728         PR gdb/17960
4729         * symtab.c (make_file_symbol_completion_list_1): Renamed from
4730         make_file_symbol_completion_list and made static.
4731         (make_file_symbol_completion_list): New function.
4732
4733 2015-08-10  Joel Brobecker  <brobecker@adacore.com>
4734
4735         * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
4736         trailing new-line at end of warning message.
4737         (proceed): Add i18n marker to error messages.
4738
4739 2015-08-07  Pedro Alves  <palves@redhat.com>
4740
4741         * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
4742
4743 2015-08-07  Pedro Alves  <palves@redhat.com>
4744
4745         * s390-linux-tdep.c (is_non_branch_ril)
4746         (s390_displaced_step_copy_insn): New functions.
4747         (s390_displaced_step_fixup): Update comment.
4748         (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
4749         gdbarch_displaced_step_copy_insn hook.
4750
4751 2015-08-07  Pedro Alves  <palves@redhat.com>
4752
4753         * infrun.c (displaced_step_prepare_throw): Return -1 if
4754         gdbarch_displaced_step_copy_insn returns NULL.  Update intro
4755         comment.
4756         * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
4757         (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
4758         in file.
4759         (ppc_displaced_step_copy_insn): New function.
4760         (ppc_displaced_step_fixup): Update comment.
4761         (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
4762         gdbarch_displaced_step_copy_insn hook.
4763         * gdbarch.sh (displaced_step_copy_insn): Document what happens on
4764         NULL return.
4765         * gdbarch.h: Regenerate.
4766
4767 2015-08-07  Pedro Alves  <palves@redhat.com>
4768
4769         * inferior.h (struct inferior) <displaced_stepping_failed>: New
4770         field.
4771         * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
4772         Return false if dispaced stepping failed before.
4773         (resume): Pass the current inferior to
4774         use_displaced_stepping_now_p.  Wrap displaced_step_prepare in
4775         TRY/CATCH.  If we get a MEMORY_ERROR, set the inferior's
4776         displaced_stepping_failed flag, and fall back to an in-line
4777         step-over.
4778
4779 2015-08-07  Pedro Alves  <palves@redhat.com>
4780
4781         * darwin-nat.c (darwin_stop): Rename to ...
4782         (darwin_interrupt): ... this.
4783         (_initialize_darwin_inferior): Adjust.
4784         * gnu-nat.c (gnu_stop): Delete.
4785         (gnu_target): Don't install gnu_stop.
4786         * inf-ptrace.c (inf_ptrace_stop): Rename to ...
4787         (inf_ptrace_interrupt): ... this.
4788         (inf_ptrace_target): Adjust.
4789         * infcmd.c (interrupt_target_1): Use target_interrupt instead of
4790         target_stop.
4791         * linux-nat (linux_nat_stop): Rename to ...
4792         (linux_nat_interrupt): ... this.
4793         (linux_nat_stop): Reimplement.
4794         (linux_nat_add_target): Install linux_nat_interrupt.
4795         * nto-procfs.c (nto_interrupt_twice): Rename to ...
4796         (nto_handle_sigint_twice): ... this.
4797         (nto_interrupt): Rename to ...
4798         (nto_handle_sigint): ... this.  Call target_interrupt instead of
4799         target_stop.
4800         (procfs_wait): Adjust.
4801         (procfs_stop): Rename to ...
4802         (procfs_interrupt): ... this.
4803         (init_procfs_targets): Adjust.
4804         * procfs.c (procfs_stop): Rename to ...
4805         (procfs_interrupt): ... this.
4806         (procfs_target): Adjust.
4807         * remote-m32r-sdi.c (m32r_stop): Rename to ...
4808         (m32r_interrupt): ... this.
4809         (init_m32r_ops): Adjust.
4810         * remote-sim.c (gdbsim_stop_inferior): Rename to ...
4811         (gdbsim_interrupt_inferior): ... this.
4812         (gdbsim_stop): Rename to ...
4813         (gdbsim_interrupt): ... this.
4814         (gdbsim_cntrl_c): Adjust.
4815         (init_gdbsim_ops): Adjust.
4816         * remote.c (sync_remote_interrupt): Adjust comments.
4817         (remote_stop_as): Rename to ...
4818         (remote_interrupt_as): ... this.
4819         (remote_stop): Adjust comment.
4820         (remote_interrupt): New function.
4821         (init_remote_ops): Install remote_interrupt.
4822         * target.c (target_interrupt): New function.
4823         * target.h (struct target_ops) <to_interrupt>: New field.
4824         (target_interrupt): New declaration.
4825         * windows-nat.c (windows_stop): Rename to ...
4826         (windows_interrupt): ... this.
4827         * target-delegates.c: Regenerate.
4828
4829 2015-08-07  Pedro Alves  <palves@redhat.com>
4830
4831         * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
4832         threads" as alternative to "switching back to stepped thread".
4833
4834 2015-08-07  Pedro Alves  <palves@redhat.com>
4835
4836         * NEWS: Mention "maint set/show target-non-stop".
4837         * breakpoint.c (update_global_location_list): Check
4838         target_is_non_stop_p instead of non_stop.
4839         * infcmd.c (attach_command_post_wait, attach_command): Likewise.
4840         * infrun.c (show_can_use_displaced_stepping)
4841         (can_use_displaced_stepping_p, start_step_over_inferior):
4842         Likewise.
4843         (internal_resume_ptid): New function.
4844         (resume): Use it.
4845         (proceed): Check target_is_non_stop_p instead of non_stop.  If in
4846         all-stop mode but the target is always in non-stop mode, start all
4847         the other threads that are implicitly resumed too.
4848         (for_each_just_stopped_thread, fetch_inferior_event)
4849         (adjust_pc_after_break, stop_all_threads): Check
4850         target_is_non_stop_p instead of non_stop.
4851         (handle_inferior_event): Likewise.  Handle detach-fork in all-stop
4852         with the target always in non-stop mode.
4853         (handle_signal_stop) <random signal>: Check target_is_non_stop_p
4854         instead of non_stop.
4855         (switch_back_to_stepped_thread): Check target_is_non_stop_p
4856         instead of non_stop.
4857         (keep_going_stepped_thread): Use internal_resume_ptid.
4858         (stop_waiting): If in all-stop mode, and the target is in non-stop
4859         mode, stop all threads.
4860         (keep_going_pass): Likewise, when starting a new in-line step-over
4861         sequence.
4862         * linux-nat.c (get_pending_status, select_event_lwp)
4863         (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
4864         target_is_non_stop_p instead of non_stop.
4865         (linux_nat_always_non_stop_p): New function.
4866         (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
4867         (linux_nat_add_target): Install linux_nat_always_non_stop_p.
4868         * target-delegates.c: Regenerate.
4869         * target.c (target_is_non_stop_p): New function.
4870         (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
4871         (maint_set_target_non_stop_command)
4872         (maint_show_target_non_stop_command): New functions.
4873         (_initilize_target): Install "maint set/show target-non-stop"
4874         commands.
4875         * target.h (struct target_ops) <to_always_non_stop_p>: New field.
4876         (target_non_stop_enabled): New declaration.
4877         (target_is_non_stop_p): New declaration.
4878
4879 2015-08-07  Pedro Alves  <pedro@codesourcery.com>
4880
4881         * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
4882         has a pending status, return true.
4883         * gdbthread.h: Include target/waitstatus.h.
4884         (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
4885         stop_pc>: New fields.
4886         (struct thread_info) <resumed>: New field.
4887         (set_resumed): Declare.
4888         * infrun.c: Include "event-loop.h".
4889         (infrun_async_inferior_event_token, infrun_is_async): New globals.
4890         (infrun_async): New function.
4891         (clear_step_over_info): Add debug output.
4892         (displaced_step_in_progress_any_inferior): New function.
4893         (displaced_step_fixup): New returns int.
4894         (start_step_over): Handle in-line step-overs too.  Assert the
4895         thread is marked resumed.
4896         (resume_cleanups): Clear the thread's resumed flag.
4897         (resume): Set the thread's resumed flag.  Return early if the
4898         thread has a pending status.  Allow stepping a breakpoint with no
4899         signal.
4900         (proceed): Adjust to check 'resumed' instead of 'executing'.
4901         (clear_proceed_status_thread): If the thread has a pending status,
4902         and that status is a finished step, discard the pending status.
4903         (clear_proceed_status): Don't clear step_over_info here.
4904         (random_pending_event_thread, do_target_wait): New functions.
4905         (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
4906         do_target_wait.
4907         (wait_one): New function.
4908         (THREAD_STOPPED_BY): New macro.
4909         (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4910         (thread_stopped_by_hw_breakpoint): New functions.
4911         (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
4912         functions.
4913         (handle_inferior_event): Also call set_resumed(false) on all
4914         threads implicitly stopped by the event.
4915         (restart_threads, resumed_thread_with_pending_status): New
4916         functions.
4917         (finish_step_over): If we were doing an in-line step-over before,
4918         and no longer are after trying to start a new step-over, restart
4919         all threads.  If we have multiple threads with pending events,
4920         save the current event and go through the event loop again.
4921         (handle_signal_stop): Return early if finish_step_over returns
4922         false.
4923         <random signal>: If we get a signal while stepping over a
4924         breakpoint in-line in non-stop mode, restart all threads.  Clear
4925         step_over_info before delivering the signal.
4926         (keep_going_stepped_thread): Use internal_error instead of
4927         gdb_assert.  Mark the thread as resumed.
4928         (keep_going_pass_signal): Assert the thread isn't already resumed.
4929         If some other thread is doing an in-line step-over, defer the
4930         resume.  If we just started a new in-line step-over, stop all
4931         threads.  Don't clear step_over_info.
4932         (infrun_async_inferior_event_handler): New function.
4933         (_initialize_infrun): Create async event handler with
4934         infrun_async_inferior_event_handler as callback.
4935         (infrun_async): New declaration.
4936         * target.c (target_async): New function.
4937         * target.h (target_async): Declare macro and readd as function
4938         declaration.
4939         * target/waitstatus.h (enum target_stop_reason)
4940         <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
4941         * thread.c (new_thread): Clear the new waitstatus field.
4942         (set_resumed): New function.
4943
4944 2015-08-07  Pedro Alves  <palves@redhat.com>
4945
4946         * infrun.c (keep_going_stepped_thread): New function, factored out
4947         from ...
4948         (switch_back_to_stepped_thread): ... here.
4949
4950 2015-08-07  Pedro Alves  <palves@redhat.com>
4951
4952         * infrun.c (currently_stepping): Extend intro comment.
4953         * target.h (target_resume): Extend intro comment.
4954
4955 2015-08-07  Pedro Alves  <palves@redhat.com>
4956
4957         * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
4958         of inferior_ptid.  If the stepped thread vanished, return 0
4959         instead of resuming here.  Use reset_ecs.  Print the prev_pc and
4960         the current stop_pc in log message.  Clear trap_expected if the
4961         thread advanced.  Don't pass currently_stepping to
4962         do_target_resume.
4963
4964 2015-08-07  Pedro Alves  <palves@redhat.com>
4965
4966         * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
4967         * infrun.c (struct execution_control_state): Move higher up in the
4968         file.
4969         (reset_ecs): New function.
4970         (start_step_over): Now returns int.  Rewrite to use
4971         keep_going_pass_signal instead of manually starting a displaced step.
4972         (resume): Don't call set_running here.  If displaced stepping
4973         can't start now, clear trap_expected.
4974         (find_thread_needs_step_over): Delete function.
4975         (proceed): Set up finish_thread_state_cleanup.  Call set_running.
4976         If the current thread needs a step over, push it in the step-over
4977         chain.  Don't set insert breakpoints nor call resume directly
4978         here.  Instead rewrite to use start_step_over and
4979         keep_going_pass_signal.
4980         (finish_step_over): New function.
4981         (handle_signal_stop): Call finish_step_over instead of
4982         start_step_over.
4983         (switch_back_to_stepped_thread): If the event thread needs another
4984         step-over do that first.  Use start_step_over.
4985         (keep_going_pass_signal): New function, factored out from ...
4986         (keep_going): ... here.
4987         (_initialize_infrun): Comment moved here.
4988         * thread.c (set_running_thread): New function.
4989         (set_running, finish_thread_state): Use set_running_thread.
4990
4991 2015-08-07  Pedro Alves  <palves@redhat.com>
4992
4993         * gdbthread.h (struct thread_info) <step_over_prev,
4994         step_over_next>: New fields.
4995         (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
4996         (thread_step_over_chain_next, thread_is_in_step_over_chain): New
4997         declarations.
4998         * infrun.c (struct displaced_step_request): Delete.
4999         (struct displaced_step_inferior_state) <step_request_queue>:
5000         Delete field.
5001         (displaced_step_prepare): Assert that trap_expected is set.  Use
5002         thread_step_over_chain_enqueue.  Split starting a new displaced
5003         step to ...
5004         (start_step_over): ... this new function.
5005         (resume): Assert the thread isn't waiting for a step over already.
5006         (proceed): Assert the thread isn't waiting for a step over
5007         already.
5008         (infrun_thread_stop_requested): Adjust to remove threads from the
5009         embedded step-over chain.
5010         (handle_inferior_event) <fork/vfork>: Call start_step_over after
5011         displaced_step_fixup.
5012         (handle_signal_stop): Call start_step_over after
5013         displaced_step_fixup.
5014         * infrun.h (step_over_queue_head): New declaration.
5015         * thread.c (step_over_chain_enqueue, step_over_chain_remove)
5016         (thread_step_over_chain_next, thread_is_in_step_over_chain)
5017         (thread_step_over_chain_enqueue)
5018         (thread_step_over_chain_remove): New functions.
5019         (delete_thread_1): Remove thread from the step-over chain.
5020
5021 2015-08-07  Pedro Alves  <palves@redhat.com>
5022
5023         * infrun.c (thread_still_needs_step_over): Rename to ...
5024         (thread_still_needs_step_over_bp): ... this.
5025         (enum step_over_what): New.
5026         (thread_still_needs_step_over): Reimplement.
5027
5028 2015-08-07  Pedro Alves  <palves@redhat.com>
5029
5030         * remote.c (remote_wait_as): If not waiting for a stop reply,
5031         return TARGET_WAITKIND_NO_RESUMED.  If TARGET_WNOHANG is
5032         requested, don't block waiting forever.
5033
5034 2015-08-07  Pedro Alves  <pedro@codesourcery.com>
5035
5036         * infrun.c (adjust_pc_after_break): Now takes thread_info and
5037         waitstatus pointers instead of an ecs.  Adjust.
5038         (handle_inferior_event): Adjust caller.
5039
5040 2015-08-07  Pedro Alves  <palves@redhat.com>
5041
5042         * infrun.c (handle_inferior_event): If we get
5043         TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
5044         mode, mark all threads of the exiting process as not-executing.
5045         (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
5046         TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
5047         exiting process, if inferior_ptid still points at a process.
5048         * thread.c (struct current_thread_cleanup) <next>: New field.
5049         (current_thread_cleanup_chain): New global.
5050         (restore_current_thread_ptid_changed): New function.
5051         (restore_current_thread_cleanup_dtor): Remove the cleanup from the
5052         current_thread_cleanup_chain list.
5053         (make_cleanup_restore_current_thread): Add the cleanup data to the
5054         current_thread_cleanup_chain list.
5055         (_initialize_thread): Install restore_current_thread_ptid_changed
5056         as thread_ptid_changed observer.
5057
5058 2015-08-07  Joel Brobecker  <brobecker@adacore.com>
5059
5060         * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
5061         data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
5062         smaller than expected.
5063
5064 2015-08-07  Andrew Burgess  <andrew.burgess@embecosm.com>
5065
5066         * stack.c (get_frame_language): Moved ...
5067         * frame.c (get_frame_language): ... to here.
5068         * language.h (get_frame_language): Declaration moved to frame.h.
5069         * frame.h: Add language.h include, for language enum.
5070         (get_frame_language): Declaration moved from language.h.
5071         * language.c: Add frame.h include.
5072         * top.c: Add frame.h include.
5073         * symtab.h (struct obj_section): Declare.
5074         (struct cmd_list_element): Declare.
5075
5076 2015-08-07  Andrew Burgess  <andrew.burgess@embecosm.com>
5077
5078         * language.c (show_language_command): Find selected frame before
5079         asking for the language of that frame.
5080         (set_language_command): Likewise.
5081         * language.h (get_frame_language): Add frame parameter.
5082         * stack.c (get_frame_language): Add frame parameter, assert
5083         parameter is not NULL, update comment and reindent.
5084         * top.c (check_frame_language_change): Pass the selected frame
5085         into get_frame_language.
5086
5087 2015-08-07  Markus Metzger  <markus.t.metzger@intel.com>
5088
5089         * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
5090         (pt_btrace_insn_flags): New.
5091         (ftrace_add_pt): Call pt_btrace_insn_flags.
5092         * btrace.h (btrace_insn_flag): New.
5093         (btrace_insn) <flags>: New.
5094         * record-btrace.c (btrace_insn_history): Print insn prefix.
5095         * NEWS: Announce it.
5096
5097 2015-08-07  Markus Metzger  <markus.t.metzger@intel.com>
5098
5099         * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
5100         * configure: Regenerate.
5101
5102 2015-08-06  Yaakov Selkowitz  <yselkowi@redhat.com>
5103
5104         * Makefile.in (LIBICONV): Define.
5105         (CLIBS): Add LIBICONV.
5106         * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
5107         * configure: Regenerate.
5108
5109 2015-08-06  Simon Marchi  <simon.marchi@ericsson.com>
5110             Pedro Alves  <palves@redhat.com>
5111
5112         * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
5113         (arm_set_abi): Likewise.
5114         * ax-general.c (ax_print): Likewise.
5115         * c-exp.y (exp : string_exp): Likewise.
5116         * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
5117         (do_compile_dwarf_expr_to_c): Likewise.
5118         * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
5119         Likewise.
5120         * dwarf2expr.c (execute_stack_op): Likewise.
5121         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
5122         (disassemble_dwarf_expression): Likewise.
5123         * dwarf2read.c (dwarf2_add_member_fn): Likewise.
5124         (read_array_order): Likewise.
5125         (abbrev_table_read_table): Likewise.
5126         (read_attribute_value): Likewise.
5127         (skip_unknown_opcode): Likewise.
5128         (dwarf_decode_macro_bytes): Likewise.
5129         (dwarf_decode_macros): Likewise.
5130         * eval.c (value_f90_subarray): Likewise.
5131         * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5132         * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5133         * infrun.c (handle_command): Likewise.
5134         * memory-map.c (memory_map_start_memory): Likewise.
5135         * osabi.c (set_osabi): Likewise.
5136         * parse.c (operator_length_standard): Likewise.
5137         * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
5138         single return point.
5139         * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5140         * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
5141         (gdbpy_lookup_global_symbol): Likewise.
5142         * record-full.c (record_full_restore): Likewise.
5143         * regcache.c (regcache_register_status): Likewise.
5144         (regcache_raw_read): Likewise.
5145         (regcache_cooked_read): Likewise.
5146         * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
5147         * symtab.c (initialize_ordinary_address_classes): Likewise.
5148         * target-debug.h (target_debug_print_signals): Likewise.
5149         * utils.c (do_restore_current_language): Likewise.
5150
5151 2015-08-06  Clem Dickey  <clemd@acm.org>
5152
5153         PR python/17136
5154         * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
5155
5156 2015-08-06  Simon Marchi  <simon.marchi@ericsson.com>
5157
5158         * complaints.c (enum complaint_series): Add newlines and remove
5159         out of date comment.
5160         (struct complaints) <series>: Change type to enum
5161         complaint_series and remove out of date comment.
5162         (symfile_complaint_hook): Use equivalent enum value
5163         ISOLATED_MESSAGE instead of 0.
5164
5165 2015-08-06  Pedro Alves  <palves@redhat.com>
5166
5167         * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
5168         returned > 0.
5169
5170 2015-08-06  Pierre Langlois  <pierre.langlois@arm.com>
5171
5172         * common/agent.c (symbol_list) <required>: Remove.
5173
5174 2015-08-06  Pedro Alves  <palves@redhat.com>
5175
5176         * target/waitstatus.h (enum target_stop_reason)
5177         <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
5178
5179 2015-08-05  Pedro Alves  <palves@redhat.com>
5180             Joel Brobecker  <brobecker@adacore.com>
5181
5182         * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
5183         <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
5184         case where BS->STOP is not set.
5185
5186 2015-08-05  Ulrich Weigand  <uweigand@de.ibm.com>
5187
5188         * nat/gdb_thread_db.h: Add copyright header.
5189         Protect against multiple inclusion.
5190
5191 2015-08-05  Yao Qi  <yao.qi@linaro.org>
5192
5193         * aarch64-linux-nat.c (get_thread_id): Remove.
5194         (debug_reg_change_callback): Call ptid_get_lwp instead of
5195         get_thread_id.
5196         (fetch_gregs_from_thread): Likewise.
5197         (store_gregs_to_thread): Likewise.
5198         (fetch_fpregs_from_thread): Likewise.
5199         (store_fpregs_to_thread): Likewise.
5200         (aarch64_linux_get_debug_reg_capacity): Likewise.
5201         * arm-linux-nat.c (get_thread_id): Remove.
5202         (GET_THREAD_ID): Update macro to use ptid_get_lwp.
5203         * xtensa-linux-nat.c (get_thread_id): Remove.
5204         (GET_THREAD_ID): Update macro to use ptid_get_lwp.
5205         * arm-linux-nat.c (get_thread_id): Remove.
5206         (GET_THREAD_ID): Remove.
5207         (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
5208         (store_fpregs, fetch_regs, store_regs): Likewise.
5209         (fetch_wmmx_regs, store_wmmx_regs): Likewise.
5210         (fetch_vfp_regs, store_vfp_regs): Likewise.
5211         (arm_linux_read_description): Likewise.
5212         (arm_linux_get_hwbp_cap): Likewise.
5213         * xtensa-linux-nat.c (get_thread_id): Remove.
5214         (GET_THREAD_ID): Remove.
5215         (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
5216         GET_THREAD_ID.
5217
5218 2015-08-04  Ciro Santilli  <ciro.santilli@gmail.com>  (obvious patch)
5219
5220         * python/py-linetable.c: Fix case of Linetable to LineTable
5221         in docstrings and code comments.
5222         * python/py-symtab.c: Same.
5223
5224 2015-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
5225
5226         * infcmd.c (signal_command): Call do_cleanups for args_chain.
5227
5228 2015-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
5229
5230         PR gdb/18767
5231         * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
5232         use.
5233
5234 2015-08-04  Pedro Alves  <palves@redhat.com>
5235
5236         * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
5237         (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
5238         (td_ta_event_addr_ftype, td_ta_set_event_ftype)
5239         (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
5240         (td_thr_validate_ftype, td_thr_get_info_ftype)
5241         (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
5242         (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
5243         New typedefs.
5244         * linux-thread-db.c (struct thread_db_info): Use new typedefs.
5245         (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
5246         local macros and use them instead of verbose_dlsym and dlsym
5247         calls.
5248
5249 2015-08-03  Sandra Loosemore  <sandra@codesourcery.com>
5250
5251         * nios2-tdep.h: Include opcode/nios2.h here.
5252         (NIOS2_CDX_OPCODE_SIZE): New.
5253         (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
5254         * nios2-tdep.c: Don't include opcode/nios2.h here.
5255         (nios2_fetch_insn): For R2, try reading 2-byte instruction if
5256         4-byte read fails.
5257         (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
5258         (nios2_match_addi, nios2_match_orhi): Likewise.
5259         (nios2_match_stw, nios2_match_ldw): Likewise.
5260         (nios2_match_rdctl): Likewise.
5261         (nios2_match_stwm, nios2_match_ldwm): New.
5262         (nios2_match_branch): Add cases for R2 encodings.
5263         (nios2_match_jmpi, nios2_match_calli): Likewise.
5264         (nios2_match_jmpr, nios2_match_callr): Likewise.
5265         (nios2_match_break, nios2_match_trap): Likewise.
5266         (nios2_in_epilogue_p): Add R2 support.
5267         (nios2_analyze_prologue): Update comments.  Recognize R2 CDX
5268         prologues.
5269         (nios2_breakpoint_from_pc): Handle R2 instructions.
5270         (nios2_get_next_pc): Likewise.  Adjust call to
5271         tdep->syscall_next_pc.
5272         * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
5273         Renamed from nios2_linux_rt_sigreturn_tramp_frame.  Use
5274         instruction field macros instead of literal hex values.
5275         (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
5276         (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
5277         Use size field from OP instead of assuming all instructions
5278         are the same size.
5279         (nios2_linux_init_abi): Register appropriate unwinder for mach.
5280
5281 2015-08-03  Ulrich Weigand  <uweigand@de.ibm.com>
5282
5283         * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
5284         variable warning with some compilers.
5285
5286 2015-08-03  Yao Qi  <yao.qi@linaro.org>
5287
5288         * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
5289         in comment.  Replace "rw" with "type".
5290         (arm_linux_remove_watchpoint): Change type of "rw" to
5291         "enum target_hw_bp_type".
5292
5293 2015-08-02  Pierre-Marie de Rodat  <derodat@adacore.com>
5294
5295         * alpha-mdebug-tdep.c (find_proc_desc): Update call to
5296         lookup_symbol.
5297         * ft32-tdep.c (ft32_skip_prologue): Likewise.
5298         * moxie-tdep.c (moxie_skip_prologue): Likewise.
5299         * mt-tdep.c (mt_skip_prologue): Likewise.
5300         * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
5301
5302 2015-08-01  Pierre-Marie de Rodat  <derodat@adacore.com>
5303
5304         * ada-exp.y (write_object_renaming): Replace struct
5305         ada_symbol_info with struct block_symbol.  Update field
5306         references accordingly.
5307         (block_lookup, select_possible_type_sym): Likewise.
5308         (find_primitive_type): Likewise.  Also update call to
5309         ada_lookup_symbol to extract the symbol itself.
5310         (write_var_or_type, write_name_assoc): Likewise.
5311         * ada-lang.h (struct ada_symbol_info): Remove.
5312         (ada_lookup_symbol_list): Replace struct ada_symbol_info with
5313         struct block_symbol.
5314         (ada_lookup_encoded_symbol, user_select_syms): Likewise.
5315         (ada_lookup_symbol): Return struct block_symbol instead of a
5316         mere symbol.
5317         * ada-lang.c (defns_collected): Replace struct ada_symbol_info
5318         with struct block_symbol.
5319         (resolve_subexp, ada_resolve_function, sort_choices,
5320         user_select_syms, is_nonfunction, add_defn_to_vec,
5321         num_defns_collected, defns_collected,
5322         symbols_are_identical_enums, remove_extra_symbols,
5323         remove_irrelevant_renamings, add_lookup_symbol_list_worker,
5324         ada_lookup_symbol_list, ada_iterate_over_symbols,
5325         ada_lookup_encoded_symbol, get_var_value): Likewise.
5326         (ada_lookup_symbol): Return a block_symbol instead of a mere
5327         symbol.  Replace struct ada_symbol_info with struct
5328         block_symbol.
5329         (ada_lookup_symbol_nonlocal): Likewise.
5330         (standard_lookup): Make block passing explicit through
5331         lookup_symbol_in_language.
5332         * ada-tasks.c (get_tcb_types_info): Update the calls to
5333         lookup_symbol_in_language to extract the mere symbol out of the
5334         returned value.
5335         (ada_tasks_inferior_data_sniffer): Likewise.
5336         * ax-gdb.c (gen_static_field): Likewise for the call to
5337         lookup_symbol.
5338         (gen_maybe_namespace_elt): Deal with struct block_symbol from
5339         lookup functions.
5340         (gen_expr): Likewise.
5341         * c-exp.y: Likewise.  Remove uses of block_found.
5342         (lex_one_token, classify_inner_name, c_print_token): Likewise.
5343         (classify_name): Likewise.  Rename the "sym" local variable to
5344         "bsym".
5345         * c-valprint.c (print_unpacked_pointer): Likewise.
5346         * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
5347         "sym" parameter from struct symbol * to struct block_symbol.
5348         Use it to remove uses of block_found.  Deal with struct
5349         block_symbol from lookup functions.
5350         (gcc_convert_symbol): Likewise.  Update the call to
5351         convert_symbol_sym.
5352         * compile/compile-object-load.c (compile_object_load): Deal with
5353         struct block_symbol from lookup functions.
5354         * cp-namespace.c (cp_lookup_nested_symbol_1,
5355         cp_lookup_nested_symbol, cp_lookup_bare_symbol,
5356         cp_search_static_and_baseclasses,
5357         cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
5358         cp_lookup_symbol_imports_or_template,
5359         cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
5360         lookup_namespace_scope, cp_lookup_nonlocal,
5361         find_symbol_in_baseclass): Return struct block_symbol instead of
5362         mere symbols and deal with struct block_symbol from lookup
5363         functions.
5364         * cp-support.c (inspect_type, replace_typedefs,
5365         cp_lookup_rtti_type): Deal with struct block_symbol from
5366         lookup functions.
5367         * cp-support.h (cp_lookup_symbol_nonlocal,
5368         cp_lookup_symbol_from_namespace,
5369         cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
5370         Return struct block_symbol instead of mere symbols.
5371         * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
5372         push_module_name):
5373         Deal with struct block_symbol from lookup functions.  Remove
5374         uses of block_found.
5375         * eval.c (evaluate_subexp_standard): Update call to
5376         cp_lookup_symbol_namespace.
5377         * f-exp.y: Deal with struct block_symbol from lookup functions.
5378         Remove uses of block_found.
5379         (yylex): Likewise.
5380         * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
5381         lookup_enum, lookup_template_type, check_typedef): Deal with
5382         struct block_symbol from lookup functions.
5383         * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
5384         * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
5385         (gdbscm_lookup_global_symbol): Likewise.
5386         * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
5387         * go-exp.y: Likewise.  Remove uses of block_found.
5388         (package_name_p, classify_packaged_name, classify_name):
5389         Likewise.
5390         * infrun.c (insert_exception_resume_breakpoint): Likewise.
5391         * jv-exp.y (push_variable): Likewise.
5392         * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
5393         * language.c (language_bool_type): Likewise.
5394         * language.h (struct language_defn): Update
5395         la_lookup_symbol_nonlocal to return a struct block_symbol rather
5396         than a mere symbol.
5397         * linespec.c (find_label_symbols): Deal with struct block_symbol
5398         from lookup functions.
5399         * m2-exp.y: Likewise.  Remove uses of block_found.
5400         (yylex): Likewise.
5401         * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
5402         * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
5403         * p-exp.y: Likewise.  Remove uses of block_found.
5404         (yylex): Likewise.
5405         * p-valprint.c (pascal_val_print): Likewise.
5406         * parse.c (write_dollar_variable): Likewise.  Remove uses of
5407         block_found.
5408         * parser-defs.h (struct symtoken): Turn the SYM field into a
5409         struct block_symbol.
5410         * printcmd.c (address_info): Deal with struct block_symbol from
5411         lookup functions.
5412         * python/py-frame.c (frapy_read_var): Likewise.
5413         * python/py-symbol.c (gdbpy_lookup_symbol,
5414         gdbpy_lookup_global_symbol): Likewise.
5415         * skip.c (skip_function_command): Likewise.
5416         * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
5417         block_symbol instead of a mere symbol.
5418         * solib-spu.c (spu_lookup_lib_symbol): Likewise.
5419         * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
5420         * solib.c (solib_global_lookup): Likewise.
5421         * solist.h (solib_global_lookup): Likewise.
5422         (struct target_so_ops): Update lookup_lib_global_symbol to
5423         return a struct block_symbol rather than a mere symbol.
5424         * source.c (select_source_symtab): Deal with struct block_symbol
5425         from lookup functions.
5426         * stack.c (print_frame_args, iterate_over_block_arg_vars):
5427         Likewise.
5428         * symfile.c (set_initial_language): Likewise.
5429         * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
5430         block_symbol.
5431         (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
5432         (struct symbol_cache_slot): Turn the FOUND field into a struct
5433         block_symbol.
5434         (block_found): Remove.
5435         (eq_symbol_entry): Update to deal with struct block_symbol in
5436         cache slots.
5437         (symbol_cache_lookup): Return a struct block_symbol rather than
5438         a mere symbol.
5439         (symbol_cache_mark_found): Add a BLOCK parameter to fill
5440         appropriately the cache slots.  Update callers.
5441         (symbol_cache_dump): Update cache slots handling to the type
5442         change.
5443         (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
5444         lookup_symbol_aux, lookup_local_symbol,
5445         lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
5446         lookup_symbol_in_objfile_symtabs,
5447         lookup_symbol_in_objfile_from_linkage_name,
5448         lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
5449         lookup_symbol_in_static_block, lookup_static_symbol,
5450         lookup_global_symbol):
5451         Return a struct block_symbol rather than a mere symbol.  Deal
5452         with struct block_symbol from other lookup functions.  Remove
5453         uses of block_found.
5454         (lookup_symbol_in_block): Remove uses of block_found.
5455         (struct global_sym_lookup_data): Turn the RESULT field into a
5456         struct block_symbol.
5457         (lookup_symbol_global_iterator_cb): Update references to the
5458         RESULT field.
5459         (search_symbols): Deal with struct block_symbol from lookup
5460         functions.
5461         * symtab.h (struct block_symbol): New structure.
5462         (block_found): Remove.
5463         (lookup_symbol_in_language, lookup_symbol,
5464         basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
5465         lookup_static_symbol, lookup_global_symbol, lookup_language_this,
5466         lookup_global_symbol_from_objfile): Return a struct block_symbol
5467         rather than just a mere symbol.  Update comments to remove
5468         mentions of block_found.
5469         * valops.c (find_function_in_inferior,
5470         value_struct_elt_for_reference, value_maybe_namespace_elt,
5471         value_of_this):  Deal with struct block_symbol from lookup
5472         functions.
5473         * value.c (value_static_field, value_fn_field): Likewise.
5474
5475 2015-07-31  Simon Marchi  <simon.marchi@ericsson.com>
5476
5477         * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
5478         instead of integer.
5479
5480 2015-07-31  Simon Marchi  <simon.marchi@ericsson.com>
5481             Pedro Alves  <palves@redhat.com>
5482
5483         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
5484         type or value instead of integer.
5485         (aarch64_linux_insert_watchpoint): Likewise.
5486         (aarch64_linux_remove_watchpoint): Likewise.
5487         * ada-lang.c (ada_op_print_tab): Likewise.
5488         * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
5489         (amd64_linux_syscall_record_common): Likewise.
5490         * arch-utils.c (target_byte_order_user): Likewise.
5491         (default_byte_order): Likewise.
5492         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
5493         (arm_linux_get_hwbp_type): Likewise.
5494         (arm_linux_hw_watchpoint_initialize): Likewise.
5495         (arm_linux_insert_watchpoint): Likewise.
5496         * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
5497         (arm_linux_syscall_record): Likewise.
5498         * breakpoint.c (update_watchpoint): Likewise.
5499         (breakpoint_here_p): Likewise.
5500         (bpstat_print): Likewise.
5501         (enable_breakpoint_disp): Likewise.
5502         * c-lang.c (c_op_print_tab): Likewise.
5503         * cli/cli-decode.c (add_info_alias): Likewise.
5504         * d-lang.c (d_op_print_tab): Likewise.
5505         * eval.c (evaluate_subexp_standard): Likewise.
5506         * f-exp.y (dot_ops): Likewise.
5507         (f77_keywords): Likewise.
5508         * f-lang.c (f_op_print_tab): Likewise.
5509         * go-lang.c (go_op_print_tab): Likewise.
5510         * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
5511         * guile/scm-cmd.c (gdbscm_make_command): Likewise.
5512         * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5513         * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
5514         * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
5515         (struct scm_from_stringn_data): Likewise.
5516         * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5517         * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
5518         (ia64_linux_remove_watchpoint): Likewise.
5519         (ia64_linux_can_use_hw_breakpoint): Likewise.
5520         * infrun.c (print_stop_event): Likewise.
5521         * jv-lang.c (java_op_print_tab): Likewise.
5522         * linux-nat.c (linux_proc_xfer_partial): Likewise.
5523         * linux-nat.h (struct lwp_info): Likewise.
5524         * linux-thread-db.c (enable_thread_event): Likewise.
5525         * m2-lang.c (m2_op_print_tab): Likewise.
5526         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
5527         (mi_cmd_stack_list_variables): Likewise.
5528         * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
5529         * mi/mi-out.c (mi_table_begin): Likewise.
5530         (mi_table_header): Likewise.
5531         * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
5532         (mips_linux_insert_watchpoint): Likewise.
5533         (mips_linux_remove_watchpoint): Likewise.
5534         * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
5535         * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
5536         (mips_linux_watch_type_to_irw): Likewise.
5537         * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5538         (procfs_insert_hw_watchpoint): Likewise.
5539         (procfs_remove_hw_watchpoint): Likewise.
5540         (procfs_hw_watchpoint): Likewise.
5541         (procfs_can_use_hw_breakpoint): Likewise.
5542         (procfs_remove_hw_watchpoint): Likewise.
5543         (procfs_insert_hw_watchpoint): Likewise.
5544         * p-lang.c (pascal_op_print_tab): Likewise.
5545         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
5546         * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
5547         * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
5548         * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5549         (procfs_insert_watchpoint): Likewise.
5550         (procfs_remove_watchpoint): Likewise.
5551         * psymtab.c (recursively_search_psymtabs): Likewise.
5552         * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
5553         (m32r_insert_watchpoint): Likewise.
5554         * remote-mips.c (mips_can_use_watchpoint): Likewise.
5555         (mips_insert_watchpoint): Likewise.
5556         (mips_remove_watchpoint): Likewise.
5557         * remote.c (watchpoint_to_Z_packet): Likewise.
5558         (remote_insert_watchpoint): Likewise.
5559         (remote_remove_watchpoint): Likewise.
5560         (remote_check_watch_resources): Likewise.
5561         * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
5562         (s390_remove_watchpoint): Likewise.
5563         (s390_can_use_hw_breakpoint): Likewise.
5564         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5565         * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
5566         * target.h (struct target_ops): Likewise.
5567         * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
5568         * ui-out.c (struct ui_out_hdr): Likewise.
5569         (append_header_to_list): Likewise.
5570         (get_next_header): Likewise.
5571         (verify_field): Likewise.
5572         (ui_out_begin): Likewise.
5573         (ui_out_field_int): Likewise.
5574         (ui_out_field_fmt_int): Likewise.
5575         (ui_out_field_skip): Likewise.
5576         (ui_out_field_string): Likewise.
5577         (ui_out_field_fmt): Likewise.
5578         * varobj.c (new_variable): Likewise.
5579         * x86-nat.c (x86_insert_watchpoint): Likewise.
5580         (x86_remove_watchpoint): Likewise.
5581         (x86_can_use_hw_breakpoint): Likewise.
5582         * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
5583         * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
5584         previously anonymous enumeration type..
5585         * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
5586         value.
5587         * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
5588         (target_debug_print_enum_bptype): New.
5589         * target-delegates.c: Regenerate.
5590
5591 2015-07-30  Sandra Loosemore  <sandra@codesourcery.com>
5592
5593         * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
5594         already says and disallow non-stack memory writes in the prologue.
5595
5596 2015-07-30  Sandra Loosemore  <sandra@codesourcery.com>
5597
5598         * nios2-tdep.c (nios2_analyze_prologue): Update comments to
5599         reflect how current GCC emits stack overflow checks.  Match
5600         both trap and break instructions for backward compatbility.
5601         Disallow other trap and break instructions in the prologue.
5602
5603 2015-07-30  Pedro Alves  <palves@redhat.com>
5604
5605         PR threads/18600
5606         * linux-nat.c (wait_lwp): Report to the core when thread group
5607         leader exits.
5608
5609 2015-07-30  Pedro Alves  <palves@redhat.com>
5610             Simon Marchi  <simon.marchi@ericsson.com>
5611
5612         PR threads/18600
5613         * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
5614         mark the new thread as resumed.  Remove STOPPING parameter.
5615         (wait_lwp): Adjust call to linux_handle_extended_wait.
5616         (linux_nat_filter_event): Adjust call to
5617         linux_handle_extended_wait.
5618         (resume_stopped_resumed_lwps): Add debug output.
5619
5620 2015-07-30  Pierre Langlois  <pierre.langlois@arm.com>
5621
5622         * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
5623         isize argument.
5624         * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
5625         * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
5626         gdbarch_fast_tracepoint_valid_at.
5627         * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
5628         * gdbarch.h: Regenerate.
5629         * gdbarch.c: Regenerate.
5630         * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
5631         argument.  Do not set it.
5632         * remote.c (remote_download_tracepoint): Adjust call to
5633         gdbarch_fast_tracepoint_valid_at.  Call gdb_insn_length to get
5634         the instruction length.
5635
5636 2015-07-30  Yao Qi  <yao.qi@linaro.org>
5637
5638         * arm-tdep.h (enum gdb_regnum): Move it to ...
5639         * arch/arm.h: ... here.  New file.
5640         * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
5641
5642 2015-07-30  Pierre Langlois  <pierre.langlois@arm.com>
5643
5644         * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
5645         Change its type to int *.
5646         (decode_br): Rename link argument to is_blr.  Change its type to
5647         int *.
5648         (decode_cb): Rename op argument to is_cbnz.  Change its type to
5649         int *.
5650         (decode_tb): Rename op argument to is_tbnz.  Change its type to
5651         int *.  Set is_tbnz to either 1 or 0.
5652         (aarch64_analyze_prologue): Change type of is_link to int.  Add
5653         new variables is_cbnz and is_tbnz.  Adjust call to
5654         aarch64_decode_cb and aarch64_decode_tb.
5655
5656 2015-07-29  Simon Marchi  <simon.marchi@ericsson.com>
5657
5658         * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
5659         parameter.
5660         (mips_linux_new_thread): Likewise.
5661         * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
5662
5663 2015-07-29  Patrick Palka  <patrick@parcs.ath.cx>
5664
5665         * top.c: Include "tui/tui.h".
5666         (undo_terminal_modifications_before_exit): New static function.
5667         (quit_force): Use it.
5668
5669 2015-07-29  Patrick Palka  <patrick@parcs.ath.cx>
5670
5671         * target.c (terminal_state): Initialize to terminal_is_ours.
5672
5673 2015-07-29  Yao Qi  <yao.qi@linaro.org>
5674
5675         PR record/18691
5676         * dcache.c (dcache_read_memory_partial): Call
5677         raw_memory_xfer_partial.
5678         * target.c (raw_memory_xfer_partial): Make it non-static.
5679         * target.h (raw_memory_xfer_partial): Declare.
5680
5681 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
5682
5683         * c-valprint.c (c_val_print_array): Consider addressable memory
5684         unit size.
5685         (c_val_print_ptr): Likewise.
5686         (c_val_print_int): Likewise.
5687         * findvar.c (read_frame_register_value): Likewise.
5688         * valarith.c (find_size_for_pointer_math): Likewise.
5689         (value_ptrdiff): Likewise.
5690         (value_subscripted_rvalue): Likewise.
5691         * valops.c (read_value_memory): Likewise (and rename variables).
5692         (value_assign): Likewise.
5693         (value_repeat): Likewise.
5694         (value_array): Likewise.
5695         (value_slice): Likewise.
5696         * valprint.c (generic_val_print_ptr): Likewise.
5697         (generic_val_print_enum): Likewise.
5698         (generic_val_print_bool): Likewise.
5699         (generic_val_print_int): Likewise.
5700         (generic_val_print_char): Likewise.
5701         (generic_val_print_float): Likewise.
5702         (generic_val_print_decfloat): Likewise.
5703         (generic_val_print_complex): Likewise.
5704         (val_print_scalar_formatted): Likewise.
5705         (val_print_array_elements): Likewise.
5706         * value.c (set_value_parent): Likewise.
5707         (value_contents_copy_raw): Likewise.
5708         (set_internalvar_component): Likewise.
5709         (value_primitive_field): Likewise.
5710         (value_fetch_lazy): Likewise.
5711         * value.h (read_value_memory): Update comment.
5712
5713 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
5714
5715         * value.c (get_value_arch): New function.
5716         * value.h (get_value_arch): New declaration.
5717
5718 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
5719
5720         * value.c (struct value): Update comments.
5721
5722 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
5723
5724         * gdbtypes.c (type_length_units): New function.
5725         * gdbtypes.h (type_length_units): New declaration.
5726         (struct type) <length>: Update comment.
5727
5728 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5729
5730         * valprint.c (generic_val_print): Factor out complex
5731         printing code to ...
5732         (generic_val_print_complex): ... this new function.
5733
5734 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5735
5736         * valprint.c (generic_val_print): Factor out decfloat
5737         printing code to ...
5738         (generic_val_print_decfloat): ... this new function.
5739
5740 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5741
5742         * valprint.c (generic_val_print): Factor out float
5743         printing code to ...
5744         (generic_val_print_float): ... this new function.
5745
5746 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5747
5748         * valprint.c (generic_val_print): Factor out char
5749         printing code to ...
5750         (generic_val_print_char): ... this new function.
5751
5752 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5753
5754         * valprint.c (generic_val_print): Factor out integer
5755         printing code to ...
5756         (generic_val_print_int): ... this new function.
5757
5758 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5759
5760         * valprint.c (generic_val_print): Factor out bool
5761         printing code to ...
5762         (generic_val_print_bool): ... this new function.
5763
5764 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5765
5766         * valprint.c (generic_val_print): Factor out function/method
5767         printing code to ...
5768         (generic_val_print_func): ... this new function.
5769
5770 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5771
5772         * valprint.c (generic_val_print): Factor out flags
5773         printing code to ...
5774         (generic_val_print_flags): ... this new function.
5775
5776 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5777
5778         * valprint.c (generic_val_print): Factor out enum
5779         printing code to ...
5780         (generic_val_print_enum): ... this new function.
5781
5782 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5783
5784         * valprint.c (generic_val_print): Factor out reference
5785         printing code to ...
5786         (generic_val_print_ref): ... this new function.
5787
5788 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5789
5790         * valprint.c (generic_val_print): Factor out memberptr
5791         printing code to ...
5792         (generic_val_print_memberptr): ... this new function.
5793
5794 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5795
5796         * valprint.c (generic_val_print): Factor out pointer
5797         printing code to ...
5798         (generic_val_print_ptr): ... this new function.
5799
5800 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5801
5802         * valprint.c (generic_val_print): Factor out array
5803         printing code to ...
5804         (generic_val_print_array): ... this new function.
5805
5806 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5807
5808         * valprint.c (generic_val_print): Factor out
5809         print_unpacked_pointer code to ...
5810         (print_unpacked_pointer): ... this new function.
5811
5812 2015-07-27  Patrick Palka  <patrick@parcs.ath.cx>
5813
5814         * event-top.c (handle_sigterm): Don't inspect
5815         target_can_async_p.  Always set the quit flag and always mark
5816         the async signal handler.
5817
5818 2015-07-27  Yao Qi  <yao.qi@linaro.org>
5819
5820         * Makefile.in (REMOTE_EXAMPLES): Remove it.
5821
5822 2015-07-25  Kevin Buettner  <kevinb@redhat.com>
5823
5824         * remote.c (read_ptid): Return null_ptid when no thread id
5825         is found.
5826         (remote_current_thread): Add log warning for malformed
5827         qC reply.
5828         (remote_start_remote): Add log warning when current thread
5829         not found.
5830
5831 2015-07-24  Pedro Alves  <palves@redhat.com>
5832
5833         * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
5834         (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
5835         forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
5836
5837 2015-07-24  Pedro Alves  <palves@redhat.com>
5838
5839         PR gdb/18717
5840         * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
5841         is resumed, and extend the debug log.
5842
5843 2015-07-24  Pedro Alves  <palves@redhat.com>
5844
5845         * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
5846
5847 2015-07-24  Pedro Alves  <palves@redhat.com>
5848
5849         * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
5850         sys/ptrace.h.
5851         * alpha-linux-nat.c: Likewise.
5852         * amd64-linux-nat.c: Likewise.
5853         * arm-linux-nat.c: Likewise.
5854         * hppa-linux-nat.c: Likewise.
5855         * i386-linux-nat.c: Likewise.
5856         * ia64-linux-nat.c: Likewise.
5857         * linux-fork.c: Likewise.
5858         * linux-nat.c: Likewise.
5859         * m32r-linux-nat.c: Likewise.
5860         * m68klinux-nat.c: Likewise.
5861         * mips-linux-nat.c: Likewise.
5862         * nat/linux-btrace.c: Likewise.
5863         * nat/linux-ptrace.c: Likewise.
5864         * nat/linux-ptrace.h
5865         * nat/mips-linux-watch.c: Likewise.
5866         * nat/x86-linux-dregs.c: Likewise.
5867         * ppc-linux-nat.c: Likewise.
5868         * s390-linux-nat.c: Likewise.
5869         * spu-linux-nat.c: Likewise.
5870         * tilegx-linux-nat.c: Likewise.
5871         * x86-linux-nat.c: Likewise.
5872         * xtensa-linux-nat.c: Likewise.
5873
5874 2015-07-24  Pedro Alves  <palves@redhat.com>
5875
5876         * ptrace.m4 (ptrace tests): Test in C++ mode.  Try with 'enum
5877         __ptrace_request as first parameter type instead of int.
5878         (PTRACE_TYPE_ARG1): Define.
5879         * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
5880         that casts first argument to PTRACE_TYPE_ARG1.
5881         * config.in: Regenerate.
5882         * configure: Regenerate.
5883
5884 2015-07-24  Pedro Alves  <palves@redhat.com>
5885
5886         * gdb_ptrace.h: Move ...
5887         * nat/gdb_ptrace.h: ... here.
5888         * inf-ptrace.c: Adjust.
5889
5890 2015-07-24  Pedro Alves  <palves@redhat.com>
5891
5892         * acinclude.m4: Include ptrace.m4.
5893         * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
5894         * ptrace.m4: ... to this new file.
5895
5896 2015-07-23  Doug Evans  <dje@google.com>
5897
5898         * dwarf2read.c (dwarf2_per_cu_data): Add comment.
5899         (load_cu): Handle dummy CUs.
5900         (dw2_do_instantiate_symtab, process_queuef): Ditto.
5901         (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
5902
5903 2015-07-23  Ciro Santilli  <ciro.santilli@gmail.com>  (tiny patch)
5904
5905         * py-linetable.c (ltpy_get_all_source_lines): Adjust function
5906         documentation to say that it returns a list rather than
5907         a FrozenSet.
5908         (linetable_object_methods): Update the docstring of the
5909         "source_line" entry.
5910
5911 2015-07-23  Pierre-Marie de Rodat  <derodat@adacore.com>
5912
5913         * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
5914         type to the recursive call instead of the original (maybe
5915         TYPE_CODE_TYPEDEF) type.
5916
5917 2015-07-23  Yao Qi  <yao.qi@linaro.org>
5918
5919         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
5920         TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
5921         If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
5922
5923 2015-07-21  Yao Qi  <yao.qi@linaro.org>
5924
5925         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
5926         Move it to nat/aarch64-linux-hw-point.c.
5927         (aarch64_linux_child_post_startup_inferior): Update.
5928         * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
5929         New function.
5930         * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
5931         Declare it.
5932
5933 2015-07-21  Markus Metzger  <markus.t.metzger@intel.com>
5934
5935         * common/btrace-common.c (btrace_data_append): Change case label.
5936
5937 2015-07-20  Yao Qi  <yao.qi@linaro.org>
5938
5939         * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
5940         Re-indent the code.
5941         * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
5942         "unsigned long long".
5943
5944 2015-07-18  Kevin Buettner  <kevinb@redhat.com>
5945
5946         * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
5947         to be set for SEC_ALLOC sections too.
5948
5949 2015-07-17  Yao Qi  <yao.qi@linaro.org>
5950
5951         * Makefile.in (HFILES_NO_SRCDIR): Add
5952         nat/aarch64-linux-hw-point.h.
5953         (aarch64-linux-hw-point.o): New rule.
5954         * nat/aarch64-linux-hw-point.h: New file.
5955         * nat/aarch64-linux-hw-point.c: New file.
5956         * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
5957         (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
5958         (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
5959         (AARCH64_HWP_ALIGNMENT): Likewise.
5960         (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
5961         (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
5962         (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
5963         (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
5964         (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
5965         (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
5966         (struct aarch64_debug_reg_state): Likewise.
5967         (struct arch_lwp_info): Likewise.
5968         (aarch64_linux_set_debug_regs): Likewise.
5969         (aarch64_notify_debug_reg_change): Remove static.
5970         (aarch64_align_watchpoint): Likewise.
5971         (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
5972         (aarch64_watchpoint_length): Likewise.
5973         (aarch64_point_encode_ctrl_reg): Likewise
5974         (aarch64_point_is_aligned): Likewise.
5975         (aarch64_dr_state_insert_one_point): Likewise.
5976         (aarch64_dr_state_remove_one_point): Likewise.
5977         (aarch64_handle_breakpoint): Likewise.
5978         (aarch64_handle_aligned_watchpoint): Likewise.
5979         (aarch64_handle_unaligned_watchpoint): Likewise.
5980         (aarch64_handle_watchpoint): Likewise.
5981         * config/aarch64/linux.mh (NAT_FILE): Add
5982         aarch64-linux-hw-point.o.
5983
5984 2015-07-17  Yao Qi  <yao.qi@linaro.org>
5985
5986         * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
5987         state and don't call aarch64_get_debug_reg_state.  All callers
5988         update.
5989         (aarch64_linux_insert_hw_breakpoint): Call
5990         aarch64_get_debug_reg_state earlier.
5991         (aarch64_linux_remove_hw_breakpoint): Likewise.
5992         (aarch64_handle_aligned_watchpoint): Add argument state and
5993         don't call aarch64_get_debug_reg_state.  All callers update.
5994         (aarch64_handle_unaligned_watchpoint): Likewise.
5995         (aarch64_handle_watchpoint): Add argument state.
5996         (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
5997         earlier.
5998         (aarch64_linux_remove_watchpoint): Likewise.
5999
6000 2015-07-17  Yao Qi  <yao.qi@linaro.org>
6001
6002         * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
6003         debug_printf.
6004         (aarch64_handle_unaligned_watchpoint): Likewise.
6005
6006 2015-07-17  Yao Qi  <yao.qi@linaro.org>
6007
6008         * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
6009         argument type's type to 'enum target_hw_bp_type'.
6010         (aarch64_dr_state_remove_one_point): Likewise.
6011         (aarch64_handle_breakpoint): Likewise.
6012         (aarch64_linux_insert_hw_breakpoint): Likewise.
6013         (aarch64_linux_remove_hw_breakpoint): Likewise.
6014         (aarch64_handle_aligned_watchpoint): Likewise.
6015
6016 2015-07-17  Yao Qi  <yao.qi@linaro.org>
6017
6018         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
6019         ptid_get_pid instead of get_thread_id.
6020
6021 2015-07-17  Yao Qi  <yao.qi@linaro.org>
6022
6023         * remote.c (get_current_thread): Initialise ptid to null_ptid.
6024         (add_current_inferior_and_thread): Don't initialise ptid.
6025
6026 2015-07-16  Pierre Langlois  <pierre.langlois@arm.com>
6027
6028         * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
6029         unavailable if invalid.
6030
6031 2015-07-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
6032
6033         Revert the previous 6 commits:
6034         Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6035         Move gdb_regex* to common/
6036         Prepare linux_find_memory_regions_full & co. for move
6037         Move linux_find_memory_regions_full & co.
6038         gdbserver build-id attribute generator
6039         Validate symbol file using build-id
6040
6041 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
6042             Jan Kratochvil  <jan.kratochvil@redhat.com>
6043
6044         Validate symbol file using build-id.
6045         * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
6046         and 'show validate-build-id'.  Add build-id attribute.
6047         * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
6048         * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
6049         * solib-frv.c (_initialize_frv_solib): Ditto.
6050         * solib-spu.c (set_spu_solib_ops): Ditto.
6051         * solib-svr4.c: Include rsp-low.h.
6052         (NOTE_GNU_BUILD_ID_NAME): New define.
6053         (svr4_validate): New function.
6054         (svr4_copy_library_list): Duplicate field build_id.
6055         (library_list_start_library): Parse 'build-id' attribute.
6056         (svr4_library_attributes): Add 'build-id' attribute.
6057         (_initialize_svr4_solib): Assign validate value.
6058         * solib-target.c (solib.h): Include.
6059         (_initialize_solib_target): Assign validate value.
6060         * solib.c (validate_build_id, show_validate_build_id): New.
6061         (solib_map_sections): Use ops->validate.
6062         (clear_so): Free build_id.
6063         (default_solib_validate): New function.
6064         (_initialize_solib): Add "validate-build-id".
6065         * solib.h (default_solib_validate): New declaration.
6066         * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
6067         (target_so_ops): New field 'validate'.
6068
6069 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
6070             Jan Kratochvil  <jan.kratochvil@redhat.com>
6071
6072         gdbserver build-id attribute generator.
6073         * features/library-list-svr4.dtd (library-list-svr4): New
6074         'build-id' attribute.
6075
6076 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
6077             Jan Kratochvil  <jan.kratochvil@redhat.com>
6078
6079         Move linux_find_memory_regions_full & co.
6080         * linux-tdep.c (nat/linux-maps.h): Include.
6081         (gdb_regex.h): Remove the include.
6082         (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
6083         (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
6084         (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
6085         (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
6086         * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
6087         and target/target.h.
6088         (struct smaps_vmflags, read_mapping, decode_vmflags)
6089         (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
6090         (linux_find_memory_regions_full): Move from linux-tdep.c.
6091         * nat/linux-maps.h (read_mapping): New declaration.
6092         (linux_find_memory_region_ftype, enum filterflags): Moved from
6093         linux-tdep.c.
6094         (linux_find_memory_regions_full): New declaration.
6095         * target.c (target/target-utils.h): Include.
6096         (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
6097         (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
6098         definitions to target/target-utils.c.
6099         * target.h (target_fileio_read_stralloc): Move it to target/target.h.
6100         * target/target-utils.c (read_alloc, read_stralloc): Move definitions
6101         from target.c.
6102         * target/target-utils.h (read_alloc_pread_ftype): New typedef.
6103         (read_alloc): New declaration.
6104         (read_stralloc_func_ftype): New typedef.
6105         (read_stralloc): New declaration.
6106         * target/target.h (target_fileio_read_stralloc): Move it from target.h.
6107
6108 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
6109             Jan Kratochvil  <jan.kratochvil@redhat.com>
6110
6111         Prepare linux_find_memory_regions_full & co. for move.
6112         * linux-tdep.c (linux_find_memory_region_ftype): Comment.
6113         (linux_find_memory_regions_full): Change signature and prepare
6114         for moving to linux-maps.
6115         (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
6116         (linux_find_memory_regions_thunk): New.
6117         (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
6118         (linux_find_memory_regions_gdb): New.
6119         (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
6120         (linux_make_mappings_corefile_notes): Use
6121         linux_find_memory_regions_gdb.
6122         * target.c (read_alloc_pread_ftype): New typedef.
6123         (target_fileio_read_alloc_1_pread): New function.
6124         (read_alloc): Refactor from target_fileio_read_alloc_1.
6125         (read_stralloc_func_ftype): New typedef.
6126         (target_fileio_read_alloc_1): New implementation. Use read_alloc.
6127         (read_stralloc): Refactored from target_fileio_read_stralloc.
6128         (target_fileio_read_stralloc): New implementation, use read_stralloc.
6129
6130 2015-07-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
6131
6132         * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
6133         common/gdb_regex.h.
6134         (COMMON_OBS): Add gdb_regex.o.
6135         (gdb_regex.o): New.
6136         * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
6137         --without-included-regex and USE_INCLUDED_REGEX.
6138         * common/gdb_regex.c: New file from utils.c functions.
6139         * common/gdb_regex.h: Move it here from gdb_regex.h, update include
6140         file wrapping define name.
6141         * configure: Rebuilt.
6142         * configure.ac (gdb_use_included_regex, --without-included-regex)
6143         (USE_INCLUDED_REGEX): Move them to common/common.m4.
6144         * gdb_regex.h: Move it to common/gdb_regex.h.
6145         * utils.c: Remove include gdb_regex.h.
6146         (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
6147         (compile_rx_or_error): Move them to common/gdb_regex.c.
6148
6149 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
6150             Jan Kratochvil  <jan.kratochvil@redhat.com>
6151
6152         Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6153         * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
6154         common/target-utils.h.
6155         (COMMON_OBS): Add target-utils.o.
6156         (linux-maps.o, target-utils.o): New.
6157         * target/target-utils.c: New file.
6158         * target/target-utils.h: New file.
6159         * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
6160         * config/i386/linux64.mh (NATDEPFILES): Ditto.
6161         * nat/linux-maps.c: New file.
6162         * nat/linux-maps.h: New file.
6163
6164 2015-07-15  Markus Metzger  <markus.t.metzger@intel.com>
6165             Pedro Alves <palves@redhat.com>
6166
6167         * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
6168         (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
6169         (perf_event_read_bts): Change the type of SIZE and READ.
6170         (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
6171         and DATA_OFFSET.  Move DATA_SIZE declaration.  Restrict the buffer size
6172         to UINT_MAX.  Check for overflows when using DATA_HEAD from the perf
6173         mmap page.
6174         (linux_enable_pt): Change the type of PAGES and SIZE.  Restrict the
6175         buffer size to UINT_MAX.
6176         (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
6177         DATA_TAIL.
6178         * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
6179         <last_head>: Change type.
6180         * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
6181         * common/btrace-common.c (btrace_data_append): Change the type of
6182         SIZE.
6183         * btrace.c (parse_xml_raw): Change the type of SIZE.  Change oddness
6184         check.
6185
6186 2015-07-14  Simon Marchi  <simon.marchi@ericsson.com>
6187
6188         * gdbtypes.h (CHECK_TYPEDEF): Remove.
6189         * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
6190         with check_typedef.
6191         * ada-lang.c (decode_constrained_packed_array_type): Likewise.
6192         (ada_array_length): Likewise.
6193         (find_parallel_type_by_descriptive_type): Likewise.
6194         (ada_check_typedef): Likewise.
6195         * arm-tdep.c (arm_return_in_memory): Likewise.
6196         * ax-gdb.c (gen_trace_static_fields): Likewise.
6197         (gen_struct_ref_recursive): Likewise.
6198         * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6199         (variable: block COLONCOLON name): Likewise.
6200         (qualified_name: TYPENAME COLONCOLON name): Likewise.
6201         * c-lang.c (classify_type): Likewise.
6202         * c-typeprint.c (c_print_type): Likewise.
6203         (c_print_typedef): Likewise.
6204         (c_type_print_base): Likewise.
6205         * c-valprint.c (c_val_print): Likewise.
6206         * compile/compile-c-types.c (convert_type): Likewise.
6207         * compile/compile-object-load.c (get_out_value_type): Likewise.
6208         * completer.c (add_struct_fields): Likewise.
6209         (expression_completer): Likewise.
6210         * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
6211         (cp_lookup_nested_symbol_1): Likewise.
6212         (cp_lookup_nested_symbol): Likewise.
6213         * cp-valprint.c (cp_print_value_fields): Likewise.
6214         (cp_print_static_field): Likewise.
6215         * d-valprint.c (d_val_print): Likewise.
6216         * eval.c (evaluate_subexp_standard): Likewise.
6217         (evaluate_subexp_for_sizeof): Likewise.
6218         * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6219         * f-typeprint.c (f_type_print_base): Likewise.
6220         * f-valprint.c (f_val_print): Likewise.
6221         * gdbtypes.c (get_discrete_bounds): Likewise.
6222         (create_array_type_with_stride): Likewise.
6223         (type_name_no_tag_or_error): Likewise.
6224         (lookup_struct_elt_type): Likewise.
6225         (get_unsigned_type_max): Likewise.
6226         (internal_type_vptr_fieldno): Likewise.
6227         (set_type_vptr_fieldno): Likewise.
6228         (internal_type_vptr_basetype): Likewise.
6229         (set_type_vptr_basetype): Likewise.
6230         (get_vptr_fieldno): Likewise.
6231         (is_integral_type): Likewise.
6232         (is_scalar_type): Likewise.
6233         (is_scalar_type_recursive): Likewise.
6234         (distance_to_ancestor): Likewise.
6235         (is_unique_ancestor_worker): Likewise.
6236         (check_types_equal): Likewise.
6237         * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
6238
6239 2015-07-14  Iain Buclaw  <ibuclaw@gdcproject.org>
6240
6241         * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
6242         also test for language_d.
6243         (dwarf2_compute_name): Likewise.
6244         (read_func_scope): Likewise.
6245         (read_structure_type): Likewise.
6246         (new_symbol_full): Likewise.
6247         (determine_prefix): Likewise.
6248         (read_import_statement): Use dot as the separator for language_d.
6249         (typename_concat): Likewise, but don't prefix the D main function.
6250
6251 2015-07-14  Peter Bergner  <bergner@vnet.ibm.com>
6252
6253         * nat/linux-namespaces.c (setns): Rename from this ...
6254         (do_setns): ... to this.  Support calling setns if it exists.
6255         (mnsh_handle_setns): Call do_setns.
6256
6257 2015-07-13  Yao Qi  <yao.qi@linaro.org>
6258
6259         * exec.c (exec_file_attach): Add period at the end of error
6260         message.
6261
6262 2015-07-13  Andrew Burgess  <andrew.burgess@embecosm.com>
6263
6264         * tui/tui-win.c (window_name_completer): New function.
6265         (focus_completer): Call window_name_completer.  All old content
6266         moved into window_name_completer.
6267         (winheight_completer): New function.
6268         (_initialize_tui_win): Rename variable.  Add completer to
6269         winheight command.  Update doc string on winheight.
6270
6271 2015-07-12  Sandra Loosemore  <sandra@codesourcery.com>
6272
6273         * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
6274         all nios2 mach variants.
6275
6276 2015-07-10  Kevin Buettner  <kevinb@redhat.com>
6277
6278         * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
6279         of target_read_memory.
6280
6281 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
6282
6283         * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
6284         string copy.
6285         (parse_scrolling_args): Likewise.
6286
6287 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
6288
6289         * tui/tui-win.c (focus_completer): Don't duplicate the tui window
6290         names in this function.
6291
6292 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
6293
6294         * tui/tui-data.h (SRC_NAME): Convert to lower case.
6295         (CMD_NAME): Likewise.
6296         (DATA_NAME): Likewise.
6297         (DISASSEM_NAME): Likewise.
6298         * tui/tui-win.c (tui_set_focus): Window names are now lower case.
6299         (tui_set_win_height): Likewise.
6300         (parse_scrolling_args): Likewise.
6301
6302 2015-07-10  Markus Metzger  <markus.t.metzger@intel.com>
6303
6304         * record-btrace.c (record_btrace_goto_begin)
6305         (record_btrace_goto_end, record_btrace_goto): Move call to
6306         print_stack_frame ...
6307         (record_btrace_set_replay): ... here.  Set stop_pc.
6308         * record-full.c (record_full_goto_entry): Set stop_pc.
6309
6310 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6311
6312         * NEWS: Mention support for tracepoints on aarch64-linux.
6313
6314 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6315
6316         * linux-aarch64-low.c (aarch64_supports_tracepoints): New
6317         function.  Return 1.
6318         (the_low_target): Install it.
6319
6320 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6321
6322         * gdb.trace/backtrace.exp: Set registers for aarch64 target.
6323         * gdb.trace/collection.exp: Likewise.
6324         * gdb.trace/mi-trace-frame-collected.exp: Likewise.
6325         * gdb.trace/mi-trace-unavailable.exp: Likewise.
6326         * gdb.trace/report.exp: Likewise.
6327         * gdb.trace/trace-break.exp: Likewise.
6328         * gdb.trace/unavailable.exp: Likewise.
6329         * gdb.trace/while-dyn.exp: Likewise.
6330
6331 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6332
6333         * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
6334         (aarch64_gen_return_address): New function.
6335         (aarch64_gdbarch_init): Hook it.
6336
6337 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6338
6339         * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
6340         swallow NOT_AVAILABLE_ERROR.
6341         (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
6342         available_p is not set.
6343         (aarch64_stub_frame_unwind_stop_reason): New function.
6344         (aarch64_stub_unwind): Install it.
6345
6346 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6347
6348         * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
6349         field.
6350         (aarch64_make_prologue_cache_1): New function, factored out from
6351         aarch64_make_prologue_cache.  Do not allocate cache.  Set
6352         available_p.
6353         (aarch64_make_prologue_cache): Reimplement wrapping
6354         aarch64_make_prologue_cache_1, and swallowing
6355         NOT_AVAILABLE_ERROR.
6356         (aarch64_prologue_frame_unwind_stop_reason): New function.
6357         Return UNWIND_UNAVAILABLE if available_p is not set.
6358         (aarch64_prologue_unwind): Install it.
6359         (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
6360         checks into aarch64_prologue_frame_unwind_stop_reason.  Call
6361         frame_id_build_unavailable_stack if available_p is not set.
6362
6363 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6364
6365         * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
6366         fields.
6367         (aarch64_scan_prologue): Set prev_pc.
6368         (aarch64_make_prologue_cache): Set func.
6369         (aarch64_make_stub_cache): Set prev_pc.
6370         (aarch64_prologue_this_id): Remove local variables id, pc and
6371         func.  Read prev_pc and func from cache.
6372         (aarch64_stub_this_id): Read prev_pc from cache.
6373
6374 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6375
6376         * aarch64-tdep.c (aarch64_make_stub_cache): Update comment.  New
6377         argument this_cache.  Remove unused local variables reg and
6378         unwound_fp.  Return early if this_cache is already set.  Set
6379         this_cache.
6380         (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
6381
6382 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6383
6384         * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
6385         New argument this_cache.  Return early if this_cache is already
6386         set.  Set this_cache.
6387         (aarch64_prologue_this_id): Update call to
6388         aarch64_make_prologue_cache.
6389         (aarch64_prologue_prev_register): Likewise.
6390         (aarch64_normal_frame_base): Likewise.
6391
6392 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6393
6394         * c-valprint.c (c_val_print): Factor out memberptr printing code
6395         from c_val_print to ...
6396         (c_val_print_memberptr): ... this new function.
6397
6398 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6399
6400         * c-valprint.c (c_val_print): Factor out int printing code to ...
6401         (c_val_print_int): ... this new function.
6402
6403 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6404
6405         * c-valprint.c (c_val_print): Factor out struct and union
6406         printing code to ...
6407         (c_val_print_struct): ... this new function ...
6408         (c_val_print_union): ... and this new function.
6409
6410 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6411
6412         * c-valprint.c (c_val_print): Factor out pointer printing code
6413         to ...
6414         (c_val_print_ptr): ... this new function.
6415
6416 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6417
6418         * c-valprint.c (c_valprint): Factor our array printing code from
6419         c_val_print to ...
6420         (c_val_print_array): ... this new function.
6421
6422 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6423
6424         * c-valprint.c (c_val_print): Factor out pointer printing code
6425         to ...
6426         (print_unpacked_pointer): ... this new function.
6427
6428 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6429
6430         * c-valprint.c (c_val_print): Remove an assignment to i and move
6431         its declaration.
6432
6433 2015-07-09  Yao Qi  <yao.qi@linaro.org>
6434
6435         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
6436         argument ptid.  Update comments.  Caller update.
6437
6438 2015-07-09  Markus Metzger  <markus.t.metzger@intel.com>
6439
6440         * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
6441         mnt packets.
6442
6443 2015-07-09  Markus Metzger  <markus.t.metzger@intel.com>
6444
6445         * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
6446
6447 2015-07-08  Simon Marchi  <simon.marchi@ericsson.com>
6448
6449         * progspace.c (delete_program_space): Add missing spaces.
6450
6451 2015-07-08  Simon Marchi  <simon.marchi@ericsson.com>
6452
6453         * inferior.c (delete_inferior_1): Rename to ...
6454         (delete_inferior): ..., remove 'silent' parameter, delete
6455         program space when unused and remove call to prune_program_spaces.
6456         Remove the old, unused, delete_inferior.
6457         (delete_inferior_silent): Remove.
6458         (prune_inferiors): Change call from delete_inferior_1 to
6459         delete_inferior and remove 'silent' parameter. Remove call to
6460         prune_program_spaces.
6461         (remove_inferior_command): Idem.
6462         * inferior.h (delete_inferior_1): Rename to...
6463         (delete_inferior): ..., remove 'silent' parameter and remove the
6464         original delete_inferior.
6465         (delete_inferior_silent): Remove.
6466         * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
6467         delete_inferior_1 to delete_inferior and remove 'silent'
6468         parameter.
6469         * progspace.c (prune_program_spaces): Remove.
6470         (pspace_empty_p): Rename to...
6471         (program_space_empty_p): ... and make non-static.
6472         (delete_program_space): New.
6473         * progspace.h (prune_program_spaces): Remove declaration.
6474         (program_space_empty_p): New declaration.
6475         (delete_program_space): New declaration.
6476         * monitor.c (monitor_close): Replace call to
6477         delete_thread_silent and delete_inferior_silent with
6478         discard_all_inferiors.
6479
6480 2015-07-08  Patrick Palka  <patrick@parcs.ath.cx>
6481
6482         * defs.h (deprecated_register_changed_hook): Remove prototype.
6483         * interps.c (clear_iterpreter_hooks): Remove reference to
6484         deprecated_register_changed_hook.
6485         * top.c (deprecated_register_changed_hook): Remove prototype.
6486         * valops.c (value_assign): Remove reference to
6487         deprecated_register_changed_hook.
6488         * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
6489         Add comment documenting the function.
6490         (tui_register_changed_observer): Define.
6491         (tui_install_hooks): Remove reference to
6492         deprecated_register_changed_hook.  Set
6493         tui_register_changed_observer.
6494         (tui_remove_hooks): Remove reference to
6495         deprecated_register_changed_hook.  Unset
6496         tui_register_changed_observer.
6497
6498 2015-07-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
6499
6500         PR compile/18484
6501         * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
6502
6503 2015-07-08  Robert O'Callahan  <robert@ocallahan.org>
6504
6505         PR exp/18617
6506         * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
6507
6508 2015-07-08  Markus Metzger  <markus.t.metzger@intel.com>
6509
6510         * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
6511
6512 2015-07-08  Markus Metzger  <markus.t.metzger@intel.com>
6513
6514         * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
6515         Use safe_strerror() instead of strerror().
6516
6517 2015-07-07  Yao Qi  <yao.qi@linaro.org>
6518
6519         * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
6520         * features/arm-with-m-fpa-layout.c: Regenerated.
6521         * features/arm-with-m-vfp-d16.xml: Likewise.
6522         * features/arm-with-m-vfp-d16.c: Regenerated.
6523         * features/arm-with-m.xml: Likewise.
6524         * features/arm-with-m.c: Regenerated.
6525         * features/arm-with-neon.xml: Likewise.
6526         * features/arm-with-neon.c: Regenerated.
6527         * features/arm-with-vfpv2.xml: Likewise.
6528         * features/arm-with-vfpv2.c: Regenerated.
6529         * features/arm-with-vfpv3.xml: Likewise.
6530         * features/arm-with-vfpv3.c: Regenerated.
6531
6532 2015-07-07  Yao Qi  <yao.qi@linaro.org>
6533
6534         * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
6535         arm-linux-nat.c.
6536         * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
6537         elf/external.h.
6538         (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
6539         if target is 32-bit.
6540         (store_gregs_to_thread): Call aarch32_gp_regcache_collect
6541         if target is 32-bit.
6542         (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
6543         if target is 32-bit.
6544         (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
6545         if target is 32-bit.
6546         (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
6547         (aarch64_linux_read_description): Return the right target
6548         description.
6549         * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
6550         * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6551         * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
6552         arm-linux-tdep.o.
6553
6554 2015-07-07  Yao Qi  <yao.qi@linaro.org>
6555
6556         * aarch32-linux-nat.c: New file.
6557         * aarch32-linux-nat.h: New file.
6558         * arm-linux-nat.c: Include aarch32-linux-nat.h.
6559         (fetch_regs): Move code to aarch32-linux-nat.c.  Call
6560         aarch32_gp_regcache_supply.
6561         (store_regs): Move code to aarch32-linux-nat.c.  Call
6562         aarch32_gp_regcache_collect.
6563         (fetch_vfp_regs): Move code to aarch32-linux-nat.c.  Call
6564         aarch32_vfp_regcache_supply.
6565         (store_vfp_regs): Move code to aarch32-linux-nat.c.  Call
6566         aarch32_vfp_regcache_collect.
6567         * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6568
6569 2015-07-07  Yao Qi  <yao.qi@linaro.org>
6570
6571         * arm-linux-nat.c (store_fpregister): Remove.
6572         (store_register): Likewise.
6573         (fetch_fpregister): Likewise.
6574         (fetch_register): Likewise.
6575         (arm_linux_store_inferior_registers): Call store_regs and
6576         store_fpregs instead.
6577         (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
6578         fetch_regs instead.
6579
6580 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6581
6582         * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
6583         and focus commands.
6584
6585 2015-07-06  Joel Brobecker  <brobecker@adacore.com>
6586
6587         * NEWS: Create a new section for the next release branch.
6588         Rename the section of the current branch, now that it has
6589         been cut.
6590
6591 2015-07-06  Joel Brobecker  <brobecker@adacore.com>
6592
6593         GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
6594         * version.in: Bump version to 7.10.50.DATE-cvs.
6595
6596 2015-07-06  Luis Machado  <lgustavo@codesourcery.com>
6597
6598         * breakpoint.c (remove_breakpoint_1): Don't handle permanent
6599         breakpoints in a special way.
6600         (remove_breakpoint): Likewise.
6601         (mark_breakpoints_out): Likewise.
6602
6603 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6604
6605         * doc/gdb.texinfo (TUI): Add comma after @xref.
6606
6607 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6608
6609         * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
6610         instead of casting the structure type.
6611
6612 2015-07-06  Simon Marchi  <simon.marchi@ericsson.com>
6613
6614         * valops.c (search_struct_field): Remove OFFSET parameter.
6615         (value_cast_structs): Adjust calls to search_struct_field.
6616         (value_struct_elt): Same.
6617         (find_overload_match): Same.
6618
6619 2015-07-06  Simon Marchi  <simon.marchi@ericsson.com>
6620
6621         * value.c (value_fetch_lazy): Update comment, change return
6622         value to void.
6623         * value.h (value_fetch_lazy): Change return value to void.
6624
6625 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6626
6627         * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
6628         (tui_win_name): Make parameter and result const.
6629         * tui/tui-data.h (tui_win_name): Make parameter and result const.
6630
6631 2015-07-06  Patrick Palka  <patrick@parcs.ath.cx>
6632
6633         * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
6634         use printf_unfiltered.
6635         (set_mpx_cmd): Add missing trailing space to command string
6636         literal.
6637         (_initialize_i386_tdep): Give the "mpx" prefix command its
6638         correct name.
6639
6640 2015-07-02  Kevin Buettner  <kevinb@redhat.com>
6641
6642         * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
6643         (enum rx_frame_type): New.
6644         (struct rx_prologue): Add new field `frame_type'.
6645         (rx_analyze_prologue): Add `frame_type' parameter. Cache this
6646         parameter in the prologue struct.  Add code for recording
6647         locations of PC and PSW for fast interrupt and exception frames.
6648         (rx_skip_prologue): Adjust call to rx_analyze_prologue.
6649         (rx_analyze_frame_prologue): Add `frame_type' parameter.
6650         (rx_frame_type): New function.
6651         (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
6652         (rx_frame_this_id): Rename parameter `this_prologue_cache' to
6653         `this_cache'.
6654         (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
6655         `this_cache'.  Add cases for RX_FRAME_TYPE_EXCEPTION and
6656         RX_FRAME_TYPE_FAST_INTERRUPT.
6657         (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
6658         (rx_frame_sniffer, rx_exception_sniffer): New functions.
6659         (rx_frame_unwind): Use rx_frame_sniffer instead of
6660         default_frame_sniffer.
6661         (rx_frame_unwind): New unwinder.
6662         (rx_gdbarch_init): Register new unwinder.
6663
6664 2015-07-02  Kevin Buettner  <kevinb@redhat.com>
6665
6666         * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
6667         (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
6668         (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
6669         and RX_FPSW_REGNUM.
6670         (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
6671
6672 2015-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
6673
6674         Fix GCC false warning.
6675         * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
6676
6677 2015-07-02  Yao Qi  <yao.qi@linaro.org>
6678
6679         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
6680         typo in the debugging message.
6681
6682 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
6683
6684         * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
6685         (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
6686         (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
6687         (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
6688         (btrace_maint_clear): New.
6689         (btrace_fetch, btrace_clear): Call btrace_maint_clear.
6690         (pt_print_packet, btrace_maint_decode_pt)
6691         (btrace_maint_update_pt_packets, btrace_maint_update_packets)
6692         (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
6693         (maint_btrace_packet_history_cmd)
6694         (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
6695         (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
6696         (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
6697         (maint_info_btrace_cmd, _initialize_btrace): New.
6698         * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
6699         (btrace_maint_packet_history, btrace_maint_info): New.
6700         (btrace_thread_info) <maint>: New.
6701         * NEWS: Announce it.
6702
6703 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
6704
6705         * btrace.c (btrace_fetch): Append the new trace data.
6706         (btrace_clear): Clear the stored trace data.
6707         * btrace.h (btrace_thread_info) <data>: New.
6708         * common/btrace-common.h (btrace_data_clear)
6709         (btrace_data_append): New.
6710         * common/btrace-common.c (btrace_data_clear)
6711         (btrace_data_append): New.
6712
6713 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
6714
6715         * nat/linux-btrace.c (linux_enable_bts): Check for
6716         PERF_ATTR_SIZE_VER5.
6717         Check for data_offset and data_size fields.  Use them.
6718
6719 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
6720
6721         * NEWS: Announce new commands "record btrace pt" and "record pt".
6722         Announce new options "set|show record btrace pt buffer-size".
6723         * btrace.c: Include "rsp-low.h".
6724         Include "inttypes.h".
6725         (btrace_add_pc): Add forward declaration.
6726         (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
6727         (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
6728         (btrace_compute_ftrace_pt): New.
6729         (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
6730         (check_xml_btrace_version): Update version check.
6731         (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
6732         (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
6733         (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
6734         (btrace_pt_children): New.
6735         (btrace_children): Add support for "pt".
6736         (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
6737         (btrace_conf_children): Add support for "pt".
6738         * btrace.h: Include "intel-pt.h".
6739         (btrace_pt_error): New.
6740         * common/btrace-common.c (btrace_format_string, btrace_data_fini)
6741         (btrace_data_empty): Support BTRACE_FORMAT_PT.
6742         * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
6743         (struct btrace_config_pt): New.
6744         (struct btrace_config)<pt>: New.
6745         (struct btrace_data_pt_config, struct btrace_data_pt): New.
6746         (struct btrace_data)<pt>: New.
6747         * features/btrace-conf.dtd (btrace-conf)<pt>: New.
6748         (pt): New.
6749         * features/btrace.dtd (btrace)<pt>: New.
6750         (pt, pt-config, cpu): New.
6751         * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
6752         (perf_event_pt_event_type, kernel_supports_pt)
6753         (linux_supports_pt): New.
6754         (linux_supports_btrace): Support BTRACE_FORMAT_PT.
6755         (linux_enable_bts): Free tinfo on error.
6756         (linux_enable_pt): New.
6757         (linux_enable_btrace): Support BTRACE_FORMAT_PT.
6758         (linux_disable_pt): New.
6759         (linux_disable_btrace): Support BTRACE_FORMAT_PT.
6760         (linux_fill_btrace_pt_config, linux_read_pt): New.
6761         (linux_read_btrace): Support BTRACE_FORMAT_PT.
6762         * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
6763         (struct btrace_target_info)<pt>: New.
6764         * record-btrace.c (set_record_btrace_pt_cmdlist)
6765         (show_record_btrace_pt_cmdlist): New.
6766         (record_btrace_print_pt_conf): New.
6767         (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
6768         (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
6769         (cmd_record_btrace_pt_start): New.
6770         (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
6771         (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
6772         (_initialize_record_btrace): Add new commands.
6773         * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
6774         (remote_protocol_features): Add "Qbtrace:pt".
6775         Add "Qbtrace-conf:pt:size".
6776         (remote_supports_btrace): Support BTRACE_FORMAT_PT.
6777         (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
6778         (remote_enable_btrace): Support BTRACE_FORMAT_PT.
6779         (_initialize_remote): Add new commands.
6780
6781 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
6782
6783         * configure.ac: check for libipt
6784         * configure: Regenerate.
6785         * config.in: Regenerate.
6786         * Makefile.in (LIBIPT): New.
6787         (CLIBS): Add $LIBIPT.
6788         * NEWS: document new configure options
6789
6790 2015-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
6791
6792         * compile/compile-object-load.c (compile_object_load): Replace debug
6793         message "lookup undefined ELF symbol" by 3 more specific messages.
6794
6795 2015-07-01  Kevin Buettner  <kevinb@redhat.com>
6796
6797         * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
6798         (rl78_register_type): Add case for RL78_PSW_REGNUM.
6799         (rl78_gdbarch_init): Initialize rl78_psw_type.
6800
6801 2015-07-01  Patrick Palka  <patrick@parcs.ath.cx>
6802
6803         * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
6804         Update commentary.  Always refresh the registers when frame
6805         information has changed.
6806         * tui/tui-stack.c (tui_show_frame_info): Update commentary.
6807         Change return type to int.  Return 1 if frame information has
6808         changed, 0 otherwise.
6809         (tui_before_prompt): Update commentary.
6810         * tui/tui-stack.h (tui_show_frame_info): Change return type to
6811         int.
6812
6813 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
6814
6815         PR tui/13378
6816         * frame.c (select_frame): Remove reference to
6817         deprecated_selected_frame_level_changed_hook.
6818         * frame.h (deprecated_selected_frame_level_changed_hook): Remove
6819         declaration.
6820         * stack.c (deprecated_selected_frame_level_changed_hook):
6821         Likewise.
6822         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
6823         Rename to ...
6824         (tui_refresh_frame_and_register_information): ... this.  Bail
6825         out if there is no stack.  Don't update register information
6826         unless registers_too_p is true.
6827         (tui_print_frame_info_listing_hook): Rename to ...
6828         (tui_dummy_print_frame_info_listing_hook): ... this.
6829         (tui_before_prompt): New function.
6830         (tui_normal_stop): New function.
6831         (tui_before_prompt_observer): New observer.
6832         (tui_normal_stop_observer): New observer.
6833         (tui_install_hooks): Set
6834         deprecated_print_frame_info_listing_hook to
6835         tui_dummy_print_frame_info_listing_hook.  Register
6836         tui_before_prompt_observer to call tui_before_prompt and
6837         tui_normal_stop_observer to call tui_normal_stop.  Remove
6838         reference to deprecated_selected_frame_level_changed_hook.
6839         (tui_remove_hooks): Detach and unset tui_before_prompt_observer
6840         and tui_normal_stop_observer.  Remove reference to
6841         deprecated_selected_frame_level_changed_hook.
6842
6843 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
6844
6845         PR tui/13378
6846         * tui/tui-stack.c (tui_set_locator_info): Change prototype to
6847         return an int instead of void.  Return whether the locator
6848         window has changed.
6849         (tui_show_frame_info): If the locator info has not changed, then
6850         bail out early to avoid refreshing the windows.
6851
6852 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
6853
6854         * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
6855         LOCATOR_WIN to tui_alloc_content.
6856
6857 2015-06-30  Yao Qi  <yao.qi@linaro.org>
6858
6859         PR tdep/18605
6860         * arm-tdep.c (arm_get_next_pc_raw): Break for media
6861         instructions.
6862
6863 2015-06-29  Kevin Buettner  <kevinb@redhat.com>
6864
6865         * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
6866         (rx_dwarf_reg_to_regnum): New function.
6867         (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum.  Use dwarf2
6868         unwinding.
6869
6870 2015-06-29  Pedro Alves  <palves@redhat.com>
6871
6872         PR threads/18127
6873         * infcall.c (run_inferior_call): On infcall success, if the thread
6874         was marked stopped before, reset it back to stopped.
6875         * infrun.c (resume): Don't suppress the set_running calls when
6876         doing an infcall.
6877         (normal_stop): Only discard the finish_thread_state cleanup if the
6878         infcall succeeded.
6879
6880 2015-06-29  Pierre Langlois  <pierre.langlois@arm.com>
6881
6882         * MAINTAINERS (Write After Approval): Update my email address.
6883
6884 2015-06-26  Keith Seitz  <keiths@redhat.com>
6885             Doug Evans  <dje@google.com>
6886
6887         PR 16253
6888         * block.c (block_lookup_symbol): For non-function blocks,
6889         continue to search for a symbol with an exact domain match
6890         Otherwise, return any previously found "best domain" symbol.
6891         (block_lookup_symbol_primary): Likewise.
6892
6893 2015-06-26  Patrick Palka  <patrick@parcs.ath.cx>
6894
6895         * NEWS: Mention the new option "history remove-duplicates".
6896         * top.c (history_remove_duplicates): New static variable.
6897         (show_history_remove_duplicates): New static function.
6898         (gdb_add_history): Conditionally remove duplicate history
6899         entries.
6900         (init_main): Add "history remove-duplicates" option.
6901
6902 2015-06-26  Patrick Palka  <patrick@parcs.ath.cx>
6903
6904         * tui/tui-win.c (focus_completer): New static function.
6905         (_initialize_tui_win): Set the completion function of the
6906         "focus" command to focus_completer.
6907
6908 2015-06-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
6909
6910         * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
6911         and language_asm..
6912         * symtab.c (find_function_start_sal): Likewise.
6913
6914 2015-06-25  Gary Benson  <gbenson@redhat.com>
6915
6916         * solib.c (solib_find_1): Set local variable sysroot to NULL if
6917         it is the empty string after trailing slashes have been stripped.
6918
6919 2015-06-25  Gary Benson  <gbenson@redhat.com>
6920
6921         * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
6922         * infrun.c (follow_exec): Likewise.
6923         * remote.c (remote_filesystem_is_local): Likewise.
6924         * solib.c (solib_find_1): Likewise.
6925
6926 2015-06-24  Keith Seitz  <keiths@redhat.com>
6927
6928         * build-id.c (build_id_to_debug_bfd): Add cleanup to free
6929         return value from lrealpath.
6930
6931 2015-06-24  Mike Frysinger  <vapier@gentoo.org>
6932
6933         * remote-sim.c (gdbsim_open): Move sysroot update to the top.
6934
6935 2015-06-24  Mike Frysinger  <vapier@gentoo.org>
6936
6937         * remote-sim.c: Include gdb_bfd.h.
6938         (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
6939         Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
6940
6941 2015-06-24  Yao Qi  <yao.qi@linaro.org>
6942
6943         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
6944         set_gdbarch_get_siginfo_type.
6945         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
6946         * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
6947         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
6948         * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
6949         * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
6950         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6951         * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
6952         * linux-tdep.c (linux_get_siginfo_type): Change it to static.
6953         (linux_init_abi): Call set_gdbarch_get_siginfo_type.
6954         * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
6955
6956 2015-06-24  Gary Benson  <gbenson@redhat.com>
6957
6958         * common/buffer.c (stdint.h): Do not include.
6959         * common/print-utils.c (stdint.h): Likewise.
6960         * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
6961         * compile/compile-c-types.c (gdb_assert.h): Likewise.
6962         * ft32-tdep.c (gdb_assert.h): Likewise.
6963         * guile/scm-utils.c (stdint.h): Likewise.
6964         * i386-linux-tdep.c (stdint.h): Likewise.
6965         * i386-tdep.c (stdint.h): Likewise.
6966         * nat/linux-btrace.c (stdint.h): Likewise.
6967         * nat/linux-btrace.h (stdint.h): Likewise.
6968         * nat/linux-ptrace.c (stdint.h): Likewise.
6969         * nat/mips-linux-watch.h (stdint.h): Likewise.
6970         * ppc-linux-nat.c (stdint.h): Likewise.
6971         * python/python-internal.h (stdint.h): Likewise.
6972         * stub-termcap.c (stdlib.h): Likewise.
6973         * target/target.h (stdint.h): Likewise.
6974         * xtensa-linux-nat.c (stdint.h): Likewise.
6975
6976 2015-06-23  Patrick Palka  <patrick@parcs.ath.cx>
6977
6978         * top.c (init_history): Look at errno after calling strtol to
6979         properly map large GDBHISTSIZE values to infinity.
6980
6981 2015-06-23  Doug Evans  <dje@google.com>
6982
6983         * inferior.h (struct inferior_suspend_state): Delete, unused.
6984         All references deleted.
6985
6986 2015-06-23  Mike Frysinger  <vapier@gentoo.org>
6987
6988         * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
6989         (microblaze_push_dummy_call): Likewise.
6990         (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
6991         and set_gdbarch_push_dummy_call.
6992
6993 2015-06-23  Yao Qi  <yao.qi@linaro.org>
6994
6995         * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
6996         Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
6997         (amd64_linux_store_inferior_registers): Likewise.
6998         * arm-linux-nat.c (fetch_fpregister): Likewise.
6999         (fetch_fpregs, store_fpregister): Likewise.
7000         (store_fpregister, store_fpregs): Likewise.
7001         (fetch_register, fetch_regs): Likewise.
7002         (store_register, store_regs): Likewise.
7003         (fetch_vfp_regs, store_vfp_regs): Likewise.
7004         (arm_linux_read_description): Check have_ptrace_getregset is
7005         TRIBOOL_UNKNOWN.  Set have_ptrace_getregset to TRIBOOL_TRUE
7006         or TRIBOOL_FALSE.
7007         * i386-linux-nat.c (fetch_xstateregs): Check
7008         have_ptrace_getregset is not TRIBOOL_TRUE.
7009         (store_xstateregs): Likewise.
7010         * linux-nat.c (have_ptrace_getregset): Change its type to
7011         enum tribool.
7012         * linux-nat.h (tribool): New enum.
7013         * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
7014         Check whether have_ptrace_getregset is TRIBOOL_TRUE.
7015
7016 2015-06-19  Doug Evans  <dje@google.com>
7017
7018         * NEWS: Mention Sun's version of stabs is no longer supported.
7019         * elfread.c (free_elfinfo): Delete.  All uses updated.
7020         (elfstab_offset_sections): Delete.  All uses updated.
7021         * gdb-stabs.h (stab_section_info): Delete.  All uses updated.
7022         * psympriv.h (partial_symtab) <section_offsets>: Delete.
7023         All uses updated.
7024         * psymtab.c (start_psymtab_common): Delete arg section_offsets.
7025         All callers updated.
7026
7027 2015-06-18  Simon Marchi  <simon.marchi@ericsson.com>
7028
7029         * common/rsp-low.c (needs_escaping): New.
7030         (remote_escape_output): Add unit_size parameter. Refactor to
7031         support multi-byte addressable units.  Rename parameters.
7032         * common/rsp-low.h (remote_escape_output): Add unit_size
7033         parameter and rename others. Update doc.
7034         * remote.c (align_for_efficient_write): New.
7035         (remote_write_bytes_aux): Add unit_size parameter and use it.
7036         Rename some variables.  Update doc.
7037         (remote_xfer_partial): Get unit size and use it.
7038         (remote_read_bytes_1): Add unit_size parameter and use it.
7039         Rename some variables. Update doc.
7040         (remote_write_bytes): Same.
7041         (remote_xfer_live_readonly_partial): Same.
7042         (remote_read_bytes): Same.
7043         (remote_flash_write): Update call to remote_write_bytes_aux.
7044         (remote_write_qxfer): Update call to remote_escape_output.
7045         (remote_search_memory): Same.
7046         (remote_hostio_pwrite): Same.
7047
7048 2015-06-17  Luis Machado  <lgustavo@codesourcery.com>
7049
7050         * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
7051         locations as inserted.
7052         Update and expand comment about permanent locations.
7053         (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
7054         Move comment to add_location_to_breakpoint.
7055         (update_global_location_list): Don't error out if a permanent
7056         breakpoint is not marked inserted.
7057         Don't error out if a non-permanent breakpoint location is inserted on
7058         top of a permanent breakpoint.
7059
7060 2015-06-17  Luis Machado  <lgustavo@codesourcery.com>
7061
7062         * breakpoint.c (make_breakpoint_permanent): Remove unused
7063         function.
7064         * breakpoint.h (make_breakpoint_permanent): Remove declaration.
7065
7066 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
7067
7068         PR gdb/16999
7069         * NEWS: Mention new GDBHISTSIZE behavior.
7070         * top.c (init_history): For null or out-of-range GDBHISTSIZE,
7071         set history size to unlimited.  Ignore non-numeric GDBHISTSIZE.
7072
7073 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
7074
7075         * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
7076         * top.c (init_history): Read from GDBHISTSIZE instead of
7077         HISTSIZE.
7078         (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
7079
7080 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
7081
7082         * top.c (gdb_safe_append_history): Do not call
7083         history_truncate_file if the history is not stifled.
7084
7085 2015-06-17  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7086
7087         * syscalls/s390-linux.xml: Add syscalls 344 through 354.
7088         * syscalls/s390x-linux.xml: Likewise.
7089
7090 2015-06-16  Michael Eager  <eager@eagercon.com>
7091
7092         * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
7093
7094 2015-06-16  Patrick Palka  <patrick@parcs.ath.cx>
7095
7096         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
7097         target_terminal_ours_for_output() before calling
7098         tui_show_frame_info(), and restore the original terminal
7099         settings afterwards.
7100
7101 2015-06-16  Martin Simmons  <martin@lispworks.com>  (tiny patch)
7102
7103         * arm-linux-nat.c: Include nat/linux-ptrace.h.
7104
7105 2015-06-15  Simon Marchi  <simon.marchi@ericsson.com>
7106
7107         * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
7108         memory unit size.
7109         (mi_cmd_data_write_memory_bytes): Same.
7110
7111 2015-06-15  Simon Marchi  <simon.marchi@ericsson.com>
7112
7113         * corefile.c (write_memory): Update doc.
7114         * gdbcore.h (write_memory): Same.
7115
7116 2015-06-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
7117
7118         * linux-tdep.c (enum filterflags): Make it from anonymous enum.
7119         (dump_mapping_p): Use it for parameter filterflags.
7120         (linux_find_memory_regions_full): Use it for variable filterflags.
7121
7122 2015-06-15  Aleksandar Ristovski  <aristovski@qnx.com
7123             Jan Kratochvil  <jan.kratochvil@redhat.com>
7124
7125         Merge multiple hex conversions.
7126         * monitor.c: Include rsp-low.h.
7127         (fromhex): Remove definition.
7128
7129 2015-06-15  Aleksandar Ristovski  <aristovski@qnx.com
7130             Jan Kratochvil  <jan.kratochvil@redhat.com>
7131
7132         Move utility functions to common/.
7133         * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
7134         Move defs to common/common-utils.c.
7135         * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
7136         (skip_to_space_const): Move decls to common/common-utils.h.
7137         * common/common-defs.h: Move include of common-types.h before
7138         common-utils.h.
7139         * common/common-utils.c: Include host-defs.h and ctype.h.
7140         (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
7141         from utils.c.
7142         (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
7143         cli/cli-utils.c.
7144         * common/common-utils.h (strtoulst): Move decl from utils.h.
7145         (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
7146         Move from cli/cli-utils.h.
7147         * common/host-defs.h: Include limits.h.
7148         (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
7149         (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
7150         * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
7151         common/common-utils.h.
7152         * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
7153         (strtoulst): Move to common/common-utils.c.
7154         * utils.h (strtoulst): Moved decl to common/common-utils.h.
7155
7156 2015-06-15  Yao Qi  <yao.qi@linaro.org>
7157
7158         * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
7159
7160 2015-06-10  Jon Turney  <jon.turney@dronecode.org.uk>
7161
7162         * build-id.c: Don't include elf-bfd.h.
7163         (build_id_bfd_get): Use bfd_build_id.
7164         (build_id_verify): Ditto.
7165         * build-id.h: Ditto.
7166         (find_separate_debug_file_by_buildid): Ditto.
7167         * python/py-objfile.c: Don't include elf-bfd.h.
7168         (objfpy_get_build_id) Use bfd_build_id.
7169         (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
7170         * coffread.c: Include build-id.h.
7171         (coff_symfile_read): Try find_separate_debug_file_by_buildid.
7172
7173 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
7174
7175         * windows-nat.c (do_windows_fetch_inferior_registers)
7176         (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
7177         conditional with __CYGWIN__.
7178
7179 2015-06-13  Andrew Burgess  <andrew.burgess@embecosm.com>
7180
7181         * completer.c: Add arch-utils.h include.
7182         (enum reg_completer_targets): New enum.
7183         (reg_or_group_completer_1): New function containing old
7184         reg_or_group_completer, add and use new parameter to control what
7185         is completed on.  Use get_current_arch rather than architecture of
7186         currently selected frame.
7187         (reg_or_group_completer): Call new reg_or_group_completer_1.
7188         (reggroup_completer): Call new reg_or_group_completer_1.
7189         * completer.h (reggroup_completer): Add declaration.
7190         * tui/tui-regs.c: Add 'completer.h' include.
7191         (tui_reg_next_command): Renamed to...
7192         (tui_reg_next): ...this.  Adjust parameters and return rather than
7193         display new group.
7194         (tui_reg_prev_command): Renamed to...
7195         (tui_reg_prev): ...this.  Adjust parameters and return rather than
7196         display new group.
7197         (tui_reg_float_command): Delete.
7198         (tui_reg_general_command): Delete.
7199         (tui_reg_system_command): Delete.
7200         (tui_reg_command): Rewrite to perform switching of register group.
7201         Add header comment.
7202         (tuireglist): Remove.
7203         (tui_reggroup_completer): New function.
7204         (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
7205         creation of 'tui reg' command.
7206         * NEWS: Add comment about 'tui reg' changes.
7207
7208 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
7209
7210         * target.c (target_read): Consider addressable unit size when
7211         reading from a memory object.
7212         (read_memory_robust): Same.
7213         (read_whatever_is_readable): Same.
7214         (target_write_with_progress): Consider addressable unit size
7215         when writing to a memory object.
7216         * target.h (target_read): Update documentation.
7217         (target_write): Add documentation.
7218
7219 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
7220
7221         * arch-utils.h (default_addressable_memory_unit_size): New.
7222         * arch-utils.c (default_addressable_memory_unit_size): New.
7223         * gdbarch.sh (addressable_memory_unit_size): New.
7224         * gdbarch.h: Re-generate.
7225         * gdbarch.c: Re-generate.
7226
7227 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
7228
7229         * target.c (target_read): Rename variables and use
7230         TARGET_XFER_E_IO.
7231         (target_read_with_progress): Same.
7232         (read_memory_robust): Constify parameters and rename
7233         variables.
7234         (read_whatever_is_readable): Constify parameters,
7235         rename variables, adjust formatting.
7236         * target.h (read_memory_robust): Constify parameters.
7237
7238 2015-06-12  Ulrich Weigand  <uweigand@de.ibm.com>
7239
7240         * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
7241         synthetic (non-AltiVec) vector types.
7242         (ppc64_sysv_abi_return_value): Likewise.
7243
7244 2015-06-12  Antoine Tremblay  <antoine.tremblay@ericsson.com>
7245
7246         PR breakpoints/16465
7247         * breakpoint.c (create_breakpoint): Save extra_string for
7248         pending breakpoints.
7249
7250 2015-06-10  Walfred Tedeschi  <walfred.tedeschi@intel.com>
7251
7252         * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
7253         and bt_mask to CORE_ADDR.
7254
7255 2015-06-11  Gary Benson <gbenson@redhat.com>
7256
7257         * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
7258         (mnsh_recv_message): Likewise.
7259
7260 2015-06-11  Walfred Tedeschi  <walfred.tedeschi@intel.com>
7261
7262         * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
7263         long long int and plongest instead of %ll.
7264
7265 2015-06-11  Gary Benson <gbenson@redhat.com>
7266
7267         * nat/linux-namespaces.c (gdb_wait.h): New include.
7268         (sys/wait.h): Do not include.
7269
7270 2015-06-10  Simon Marchi  <simon.marchi@ericsson.com>
7271
7272         * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
7273         end_sequence is true.
7274
7275 2015-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
7276
7277         Code cleanup.
7278         * solib-target.c (library_list_start_list): Use explicit NULL
7279         comparison.
7280
7281 2015-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
7282
7283         * solib-target.c (library_list_start_list): Do not dereference
7284         variable version in its initialization.  Make the VERSION check handle
7285         NULL.
7286         (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
7287
7288 2015-06-10  Gary Benson <gbenson@redhat.com>
7289
7290         * NEWS: Announce support for direct access of executable and
7291         shared library files when attaching to inferiors in containers
7292         on GNU/Linux systems.
7293
7294 2015-06-10  Gary Benson <gbenson@redhat.com>
7295
7296         * remote.c (struct remote_state) <fs_pid>: New field.
7297         (new_remote_state): Initialize the above.
7298         (PACKET_vFile_setfs): New enum value.
7299         (remote_hostio_set_filesystem): New function.
7300         (remote_hostio_open): Call the above.
7301         (remote_hostio_unlink): Likewise.
7302         (remote_hostio_readlink): Likewise.
7303         (_initialize_remote): Register new "set/show remote
7304         hostio-setfs-packet" command.
7305         * NEWS: Announce new vFile:setfs packet.
7306
7307 2015-06-10  Gary Benson <gbenson@redhat.com>
7308
7309         * linux-nat.c (nat/linux-namespaces.h): New include.
7310         (fileio.h): Likewise.
7311         (linux_nat_filesystem_is_local): New function.
7312         (linux_nat_fileio_pid_of): Likewise.
7313         (linux_nat_fileio_open): Likewise.
7314         (linux_nat_fileio_readlink): Likewise.
7315         (linux_nat_fileio_unlink): Likewise.
7316         (linux_nat_add_target): Initialize to_filesystem_is_local,
7317         to_fileio_open, to_fileio_readlink and to_fileio_unlink.
7318         (_initialize_linux_nat): New "set/show debug linux-namespaces"
7319         commands.
7320         * NEWS: Mention new "set/show debug linux-namespaces" commands.
7321
7322 2015-06-10  Gary Benson <gbenson@redhat.com>
7323
7324         * target.h (struct inferior): New forward declaration.
7325         (struct target_ops) <to_filesystem_is_local>: Update comment.
7326         (struct target_ops) <to_fileio_open>: New argument inf.
7327         Update comment.  All implementations updated.
7328         (struct target_ops) <to_fileio_unlink>: Likewise.
7329         (struct target_ops) <to_fileio_readlink>: Likewise.
7330         (target_filesystem_is_local): Update comment.
7331         (target_fileio_open): New argument inf.  Update comment.
7332         (target_fileio_unlink): Likewise.
7333         (target_fileio_readlink): Likewise.
7334         (target_fileio_read_alloc): Likewise.
7335         (target_fileio_read_stralloc): Likewise.
7336         * target.c (target_fileio_open): New argument inf.
7337         Pass inf to implementation.  Update debug printing.
7338         (target_fileio_unlink): Likewise.
7339         (target_fileio_readlink): Likewise.
7340         (target_fileio_read_alloc_1): New argument inf. Pass inf
7341         to target_fileio_open.
7342         (target_fileio_read_alloc): New argument inf. Pass inf to
7343         target_fileio_read_alloc_1.
7344         (target_fileio_read_stralloc): Likewise.
7345         * gdb_bfd.c (inferior.h): New include.
7346         (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
7347         argument with new argument "inferior".  Pass inferior to
7348         target_fileio_open.
7349         (gdb_bfd_open): Supply inferior argument to
7350         gdb_bfd_iovec_fileio_open.
7351         * linux-tdep.c (linux_info_proc): Supply inf argument to
7352         relevant target_fileio calls.
7353         (linux_find_memory_regions_full): Likewise.
7354         (linux_fill_prpsinfo): Likewise.
7355         * remote.c (remote_filesystem_is_local): Supply inf
7356         argument to remote_hostio_open.
7357         (remote_file_put): Likewise.
7358         (remote_file_get): Likewise.
7359         (remote_file_delete): Supply inf argument to
7360         remote_hostio_unlink.
7361
7362 2015-06-10  Gary Benson <gbenson@redhat.com>
7363
7364         * inf-child.c (inf_child_fileio_open): Replace comment.
7365         (inf_child_fileio_pwrite): Likewise.
7366         (inf_child_fileio_pread): Likewise.
7367         (inf_child_fileio_fstat): Insert blank line before comment.
7368         (inf_child_fileio_close): Replace comment.
7369         (inf_child_fileio_unlink): Likewise.
7370         (inf_child_fileio_readlink): Likewise.
7371         * remote.c (remote_hostio_open): Likewise.
7372         (remote_hostio_pread): Likewise.
7373         (remote_hostio_pwrite): Likewise.
7374         (remote_hostio_close): Likewise.
7375         (remote_hostio_unlink): Likewise.
7376         (remote_hostio_readlink): Likewise.
7377         (remote_hostio_fstat): Likewise.
7378         (remote_filesystem_is_local): Likewise.
7379         * target.c (target_fileio_open): Likewise.
7380         (target_fileio_pwrite): Likewise.
7381         (target_fileio_pread): Likewise.
7382         (target_fileio_fstat): Insert blank line before comment.
7383         (target_fileio_close): Replace comment.
7384         (target_fileio_unlink): Likewise.
7385         (target_fileio_readlink): Likewise.
7386         (target_fileio_read_alloc): Likewise.
7387         (target_fileio_read_stralloc): Likewise.
7388
7389 2015-06-10  Gary Benson <gbenson@redhat.com>
7390
7391         * linux-thread-db.c (nat/linux-namespaces.h): New include.
7392         (check_pid_namespace_match): Use linux_ns_same rather than
7393         linux_proc_pid_get_ns to spot PID namespace mismatches.
7394         * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
7395         * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
7396
7397 2015-06-10  Gary Benson <gbenson@redhat.com>
7398
7399         * configure.ac (AC_CHECK_FUNCS): Add setns.
7400         * config.in: Regenerate.
7401         * configure: Likewise.
7402         * nat/linux-namespaces.h: New file.
7403         * nat/linux-namespaces.c: Likewise.
7404         * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
7405         (linux-namespaces.o): New rule.
7406         * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
7407         * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
7408         * config/arm/linux.mh (NATDEPFILES): Likewise.
7409         * config/i386/linux.mh (NATDEPFILES): Likewise.
7410         * config/i386/linux64.mh (NATDEPFILES): Likewise.
7411         * config/ia64/linux.mh (NATDEPFILES): Likewise.
7412         * config/m32r/linux.mh (NATDEPFILES): Likewise.
7413         * config/m68k/linux.mh (NATDEPFILES): Likewise.
7414         * config/mips/linux.mh (NATDEPFILES): Likewise.
7415         * config/pa/linux.mh (NATDEPFILES): Likewise.
7416         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
7417         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
7418         * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
7419         * config/s390/linux.mh (NATDEPFILES): Likewise.
7420         * config/sparc/linux.mh (NATDEPFILES): Likewise.
7421         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
7422         * config/tilegx/linux.mh (NATDEPFILES): Likewise.
7423         * config/xtensa/linux.mh (NATDEPFILES): Likewise.
7424
7425 2015-06-10  Gary Benson <gbenson@redhat.com>
7426
7427         * utils.h (make_cleanup_close): Moved to common/filestuff.h.
7428         * utils.c (do_close_cleanup): Moved to common/filestuff.c.
7429         (make_cleanup_close): Likewise.
7430         * common/filestuff.h (make_cleanup_close): Moved from utils.h.
7431         * common/filestuff.c (do_close_cleanup): Moved from utils.c.
7432         (make_cleanup_close): Likewise.
7433
7434 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
7435
7436         * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
7437         from SuspendThread().
7438
7439 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
7440
7441         * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
7442         from OutputDebugString.
7443
7444 2015-06-10  Walfred Tedeschi  <walfred.tedeschi@intel.com>
7445                         Mircea Gherzan  <mircea.gherzan@intel.com>
7446
7447         * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
7448         MPX_BT_MASK_32): New macros.
7449         (i386_mpx_set_bounds): New function that implements
7450         the command "set-mpx-bound".
7451         (i386_mpx_enabled): Helper function to test MPX availability.
7452         (i386_mpx_bd_base): Helper function to calculate the base directory
7453         address.
7454         (i386_mpx_get_bt_entry): Helper function to access a bound
7455         table entry.
7456         (i386_mpx_print_bounds): Effectively display bound information.
7457         (_initialize_i386_tdep): Add new commands to commands "set mpx" and
7458         "show mpx".
7459         (_initialize_i386_tdep):
7460         Add "bound" to the commands "show mpx" and "set mpx" commands.
7461         (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
7462         and "show mpx" commands.
7463         * NEWS: List new commands for MPX support.
7464
7465 2015-06-09  Gary Benson <gbenson@redhat.com>
7466
7467         * common/fileio.h (fileio_to_host_mode): New declaration.
7468         * common/fileio.c (fileio_to_host_mode): New Function.
7469         * inf-child.c (inf_child_fileio_open): Process mode argument
7470         with fileio_to_host_mode.
7471
7472 2015-06-09  Gary Benson <gbenson@redhat.com>
7473
7474         * common/fileio.c (fileio_mode_pack): Fix preprocessor
7475         conditional.
7476
7477 2015-06-05  Gary Benson <gbenson@redhat.com>
7478
7479         * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
7480         * remote.c (remote_filesystem_is_local): ...here.
7481
7482 2015-06-04  Yao Qi  <yao.qi@linaro.org>
7483
7484         * gdbarch.c: Regenerate it.
7485
7486 2015-06-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
7487
7488         * arch-utils.c (default_infcall_munmap): New.
7489         * arch-utils.h (default_infcall_munmap): New declaration.
7490         * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
7491         (munmap_list_free, munmap_listp_free_cleanup): New.
7492         (struct setup_sections_data): Add field munmap_list_headp.
7493         (setup_sections): Call munmap_list_add.
7494         (compile_object_load): New variable munmap_list_head, initialize
7495         setup_sections_data.munmap_list_headp, return munmap_list_head.
7496         * compile/compile-object-load.h (struct munmap_list): New declaration.
7497         (struct compile_module): Add field munmap_list_head.
7498         (munmap_list_free): New declaration.
7499         * compile/compile-object-run.c (struct do_module_cleanup): Add field
7500         munmap_list_head.
7501         (do_module_cleanup): Call munmap_list_free.
7502         (compile_object_run): Pass munmap_list_head to do_module_cleanup.
7503         * gdbarch.c: Regenerate.
7504         * gdbarch.h: Regenerate.
7505         * gdbarch.sh (infcall_munmap): New.
7506         * linux-tdep.c (linux_infcall_munmap): New.
7507         (linux_init_abi): Install it.
7508
7509 2015-06-02  Simon Marchi  <simon.marchi@ericsson.com>
7510
7511         PR gdb/15564
7512         * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
7513
7514 2015-06-02  Yao Qi  <yao.qi@linaro.org>
7515
7516         * i386-linux-nat.c: Include linux-nat.h.
7517
7518 2015-06-01  Andreas Schwab  <schwab@linux-m68k.org>
7519             Jan Kratochvil  <jan.kratochvil@redhat.com>
7520
7521         PR symtab/18392
7522         * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
7523         assertion.
7524         * dwarf2loc.c (chain_candidate): Likewise.
7525
7526 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7527
7528         * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
7529         (store_vfp_regs): Use PTRACE_SETREGSET.
7530
7531 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7532
7533         * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
7534         (fetch_fpregs): Likewise.
7535         * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
7536         (store_fpregs): Likewise.
7537
7538 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7539
7540         * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
7541         (fetch_regs): Likewise.
7542         (store_regs): Use PTRACE_SETREGSET.
7543         (store_register): Likewise.
7544
7545 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7546
7547         * arm-linux-nat.c (arm_linux_read_description): Check whether
7548         kernel supports PTRACE_GETREGSET.
7549
7550 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7551
7552         * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
7553         * linux-nat.c: ... here.
7554         * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
7555         to ...
7556         * linux-nat.h: ... here.
7557
7558 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7559
7560         * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
7561         * i386-linux-nat.c: Likewise.
7562         * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
7563         * s390-linux-nat.c: Include "nat/linux-ptrace.h".
7564         (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7565         * x86-linux-nat.c: Include "nat/linux-ptrace.h".
7566         * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7567
7568 2015-05-30  Eli Zaretskii  <eliz@gnu.org>
7569
7570         * go32-nat.c (go32_xfer_memory): Fix the return value to be
7571         compatible to what read_child and write_child return.  This
7572         unbreaks that DJGPP build of GDB which was broken since v7.7.
7573
7574 2015-05-29  Martin Galvan  <martin.galvan@tallertechnologies.com>
7575
7576         * MAINTAINERS (Write After Approval): Add Martin Galvan.
7577
7578 2015-05-29  Roland McGrath  <mcgrathr@google.com>
7579
7580         PR gdb/18464
7581         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
7582         rather than internal_error for an unrecognized value.
7583
7584 2015-05-29  Max Filippov  <jcmvbkbc@gmail.com>
7585
7586         * xtensa-tdep.c (xtensa_pseudo_register_read)
7587         (xtensa_pseudo_register_write): Don't alias last pseudo register
7588         to a1.
7589
7590 2015-05-28  Don Breazeal  <donb@codesourcery.com>
7591
7592         * infrun.c (follow_fork_inferior): Ensure the use of
7593         process-style ptids (pid,0,0) in verbose/debug "Detaching"
7594         messages.
7595
7596 2015-05-28  Doug Evans  <dje@google.com>
7597
7598         * dwarf2read.c (record_line_ftype): Remove, duplicate.
7599
7600 2015-05-28  Yao Qi  <yao.qi@linaro.org>
7601
7602         * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
7603         (arm_linux_fetch_inferior_registers): Use
7604         tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
7605         (arm_linux_store_inferior_registers): Likewise.
7606         (arm_linux_read_description): Don't set
7607         arm_linux_has_wmmx_registers.
7608         * arm-tdep.c (arm_gdbarch_init): Set
7609         tdep->have_wmmx_registers according target descriptions.
7610         * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
7611         field.
7612
7613 2015-05-28  Yao Qi  <yao.qi@linaro.org>
7614
7615         * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
7616         (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
7617         instead of arm_linux_vfp_register_count.
7618         (store_vfp_regs): Likewise.
7619         (arm_linux_fetch_inferior_registers): Likewise.
7620         (arm_linux_store_inferior_registers): Likewise.
7621         (arm_linux_read_description): Don't set
7622         arm_linux_vfp_register_count.
7623         * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
7624         Adjust.
7625         * arm-tdep.c (arm_gdbarch_init): Add assert on
7626         vfp_register_count.
7627         * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
7628         field to vfp_register_count.  All users updated.
7629
7630 2015-05-28  Kyle Huey  <me@kylehuey.com>  (tiny patch)
7631
7632         * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
7633         ELFOSABI_GNU binaries.
7634
7635 2015-05-27  Doug Evans  <dje@google.com>
7636
7637         * dwarf2read.c (lnp_state_machine): New typedef.
7638         (lnp_reader_state): New typedef.
7639         (dwarf_record_line_1): Renamed from dwarf_record_line.
7640         All callers updated.
7641         (dwarf_record_line): New function.
7642         (init_lnp_state_machine): New function.
7643         (check_line_address): Replace p_record_line parameter with state.
7644         All callers updated.
7645         (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
7646         Update to record state in lnp_state_machine.
7647
7648 2015-05-27  Doug Evans  <dje@google.com>
7649
7650         * dwarf2read.c (record_line_ftype): New typedef.
7651         (check_line_address): New function.
7652         (dwarf_decode_lines_1): Call it.
7653
7654 2015-05-27  Doug Evans  <dje@google.com>
7655
7656         * NEWS: Mention "set debug dwarf-line".
7657         * dwarf2read.c (dwarf_line_debug): New static global.
7658         (add_include_dir): Add debug dwarf-line support.
7659         (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
7660         (_initialize_dwarf2_read): New parameter "debug dwarf-line".
7661
7662 2015-05-27  Doug Evans  <dje@google.com>
7663
7664         * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
7665         All callers updated.
7666         (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
7667         * cp-support.h (cp_lookup_nested_symbol): Update.
7668
7669 2015-05-27  Doug Evans  <dje@google.com>
7670
7671         PR symtab/18258
7672         * block.c (block_find_symbol): New function.
7673         (block_find_non_opaque_type): Ditto.
7674         (block_find_non_opaque_type_preferred): Ditto.
7675         * block.h (block_symbol_matcher_ftype): New typedef.
7676         (block_find_symbol): Declare.
7677         (block_find_non_opaque_type): Ditto.
7678         (block_find_non_opaque_type_preferred): Ditto.
7679         * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
7680         * psymtab.c (psym_lookup_symbol): Ditto.
7681         * symtab.c (basic_lookup_transparent_type_1): New function.
7682         (basic_lookup_transparent_type): Call it.
7683
7684 2015-05-27  Yao Qi  <yao.qi@linaro.org>
7685
7686         * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
7687         AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
7688
7689 2015-05-27  Yao Qi  <yao.qi@linaro.org>
7690
7691         * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
7692         before operator &&.
7693         (aarch64_record_load_store): Likewise.
7694
7695 2015-05-26  Doug Evans  <dje@google.com>
7696
7697         PR c++/18141, c++/18417.
7698         * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
7699         a typedef.
7700
7701 2015-05-26  Doug Evans  <dje@google.com>
7702
7703         * NEWS: Add entries for command renamings.
7704         * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
7705         All uses updated.
7706         (dwarf_die_debug): Renamed from dwarf2_die_debug.  All uses updated.
7707         (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
7708         All uses updated.
7709         (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
7710         All callers updated.  Fix spelling of DWARF in help text.
7711         (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
7712         All uses updated.
7713         (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
7714         All uses updated.
7715         (set_dwarf_cmd): Renamed from set_dwarf2_cmd.  All callers updated.
7716         (show_dwarf_cmd): Renamed from show_dwarf2_cmd.  All callers updated.
7717         (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
7718         All uses updated.
7719         (show_dwarf_always_disassemble): Renamed from
7720         show_dwarf2_always_disassemble.  All callers updated.
7721         (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
7722         "set/show dwarf".  Rename "set/show dwarf2 max-cache-age" to
7723         "set/show dwarf max-cache-age".  Rename
7724         "set/show dwarf2 always-disassemble" to
7725         "set/show dwarf always-disassemble".  Rename
7726         "set/show debug dwarf2-read" to "set/show debug dwarf-read".  Rename
7727         "set/show debug dwarf2-die" to "set/show debug dwarf-die".
7728
7729 2015-05-26  Doug Evans  <dje@google.com>
7730
7731         PR python/18438
7732         * python/py-lazy-string.c (stpy_convert_to_value): Use
7733         gdbpy_gdb_memory_error not PyExc_MemoryError.
7734         (gdbpy_create_lazy_string_object): Ditto.
7735
7736 2015-05-26  Andrew Burgess  <andrew.burgess@embecosm.com>
7737
7738         * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
7739
7740 2015-05-26  Andrew Burgess  <andrew.burgess@embecosm.com>
7741
7742         * tui/tui-regs.c (tui_reg_prev_command): New function.
7743         (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
7744         * reggroups.c (reggroup_prev): New function.
7745         * reggroups.h (reggroup_prev): Add declaration.  Update comment.
7746
7747 2015-05-26  Omair Javaid  <omair.javaid@linaro.org>
7748             Yao Qi  <yao.qi@linaro.org>
7749
7750         * aarch64-linux-tdep.c: Include linux-record.h and
7751         record-full.h.
7752         (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
7753         (aarch64_syscall): New enum.
7754         (aarch64_canonicalize_syscall): New function.
7755         (aarch64_all_but_pc_registers_record): New function.
7756         (aarch64_linux_syscall_record): New function.
7757         (aarch64_linux_init_abi): Install AArch64 process record
7758         handler.  Update to handle syscall recording.
7759         * aarch64-tdep.c: Include record.h and record-full.h.
7760         (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
7761         (struct aarch64_mem_r): Define.
7762         (aarch64_record_result): New enum.
7763         (struct insn_decode_record): Define.
7764         (insn_decode_record): New typedef.
7765         (aarch64_record_data_proc_reg): New function.
7766         (aarch64_record_data_proc_imm): New function.
7767         (aarch64_record_branch_except_sys): New function.
7768         (aarch64_record_load_store): New function.
7769         (aarch64_record_data_proc_simd_fp): New function.
7770         (aarch64_record_asimd_load_store): New function.
7771         (aarch64_record_decode_insn_handler): New function.
7772         (deallocate_reg_mem): New function.
7773         (aarch64_process_record): New function.
7774         * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
7775         New field.
7776         (aarch64_process_record): New extern declaration.
7777         * configure.tgt: Add linux-record.o to gdb_target_obs.
7778         * linux-record.h (struct linux_record_tdep) <arg7>: New field.
7779
7780 2015-05-26  Omair Javaid  <omair.javaid@linaro.org>
7781
7782         * NEWS: Add a note on process record-replay support on aarch64*-linux*
7783         targets.
7784
7785 2015-05-26  Martin Galvan  <martin.galvan@tallertechnologies.com>
7786
7787         * amd64-tdep.c: Replace in_function_epilogue_p with
7788         stack_frame_destroyed_p throughout.
7789         * arch-utils.c: Ditto.
7790         * arch-utils.h: Ditto.
7791         * arm-tdep.c: Ditto.
7792         * breakpoint.c: Ditto.
7793         * gdbarch.sh: Ditto.
7794         * hppa-tdep.c: Ditto.
7795         * i386-tdep.c: Ditto.
7796         * mips-tdep.c: Ditto.
7797         * nios2-tdep.c: Ditto.
7798         * rs6000-tdep.c: Ditto.
7799         * s390-linux-tdep.c: Ditto.
7800         * score-tdep.c: Ditto.
7801         * sh-tdep.c: Ditto.
7802         * sparc-tdep.c: Ditto.
7803         * sparc-tdep.h: Ditto.
7804         * sparc64-tdep.c: Ditto.
7805         * spu-tdep.c: Ditto.
7806         * tic6x-tdep.c: Ditto.
7807         * tilegx-tdep.c: Ditto.
7808         * xstormy16-tdep.c: Ditto.
7809         * gdbarch.c, gdbarch.h: Re-generated.
7810
7811 2015-05-22  Andrew Burgess  <andrew.burgess@embecosm.com>
7812
7813         * NEWS: Mention 'tui enable' and 'tui disable'.
7814         * tui/tui.c (tui_enable_command): New function.
7815         (tui_disable_command): New function.
7816         (_initialize_tui): New function.
7817
7818 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
7819
7820         * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
7821
7822 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
7823
7824         * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
7825         buf_ptr is freed.
7826
7827 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
7828
7829         * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
7830         into ...
7831         (tui_set_layout_for_display_command): ...here, before calling
7832         tui_set_layout.  Only set the layout if gdb has not already
7833         entered the TUI_FAILURE state.
7834
7835 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
7836
7837         * tui/tui-layout.c (layout_completer): New function.
7838         (_initialize_tui_layout): Set completer on layout command.
7839
7840 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
7841
7842         * tui/tui-layout.c (tui_set_layout): Remove
7843         tui_register_display_type parameter.  Remove all checking of this
7844         parameter, and reindent function.  Update header comment.
7845         (tui_set_layout_for_display_command): Rename to...
7846         (tui_set_layout_by_name): ...this, and don't check for different
7847         register class types, don't pass a tui_register_display_type to
7848         tui_set_layout.  Update header comment.
7849         (layout_names): Remove register set specific names.
7850         * tui/tui-layout.h (tui_set_layout): Remove
7851         tui_register_display_type parameter.
7852         * tui/tui.c (tui_rl_change_windows): Don't pass a
7853         tui_register_display_type to tui_set_layout.
7854         (tui_rl_delete_other_windows): Likewise.
7855         (tui_enable): Likewise.
7856         * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
7857         (TUI_FLOAT_REGS_NAME_LOWER): Remove.
7858         (TUI_GENERAL_REGS_NAME): Remove.
7859         (TUI_GENERAL_REGS_NAME_LOWER): Remove.
7860         (TUI_SPECIAL_REGS_NAME): Remove.
7861         (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
7862         (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
7863         (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
7864         (enum tui_register_display_type): Remove.
7865         (struct tui_layout_def): Remove regs_display_type and
7866         float_regs_display_type fields.
7867         (struct tui_data_info): Remove regs_display_type field.
7868         (tui_layout_command): Use new name for
7869         tui_set_layout_for_display_command.
7870         * tui/tui-data.c (layout_def): Don't initialise removed fields.
7871         (tui_clear_win_detail): Don't initialise removed fields of
7872         win_info.
7873         * tui/tui-regs.c (tui_show_registers): Use new name for
7874         tui_set_layout_for_display_command.
7875         * tui/tui.h (tui_set_layout_for_display_command): Rename
7876         declaration to...
7877         (tui_set_layout_by_name): ...this.
7878         * printcmd.c (display_command): Remove tui related layout call,
7879         and reindent.
7880
7881 2015-05-20  Joel Brobecker  <brobecker@adacore.com>
7882
7883         * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
7884         (handle_inferior_event): New function.
7885
7886 2015-05-20  Joel Brobecker  <brobecker@adacore.com>
7887
7888         * ada-lang.c (to_fixed_array_type): Rename local variable
7889         typename into type_name.
7890
7891 2015-05-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
7892
7893         Fix ASAN crash for gdb.compile/compile.exp.
7894         * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
7895
7896 2015-05-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
7897
7898         * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
7899         (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
7900         * compile/compile-object-load.c (setup_sections, compile_object_load):
7901         Likewise.
7902         * compile/compile.c (compile_to_object): Likewise.
7903
7904 2015-05-16  Doug Evans  <xdje42@gmail.com>
7905
7906         * NEWS: Mention support for unbuffered Guile memory ports.
7907         * scm-ports.c (ioscm_memory_port): Update comments on end, size.
7908         (ioscm_lseek_address): Improve overflow calculation.
7909         (gdbscm_memory_port_fill_input): Add assert.
7910         (gdbscm_memory_port_write): Handle unbuffered ports.
7911         Handle large writes identical to Guile's fport_write.
7912         (gdbscm_memory_port_seek): Fix seeking past end check.
7913         (gdbscm_memory_port_close): Handle closing unbuffered port.
7914         (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
7915         (ioscm_init_memory_port): Handle unbuffered ports.
7916         (ioscm_reinit_memory_port): Ditto.
7917         (ioscm_init_memory_port): Update size calculation.
7918         (gdbscm_open_memory): Support zero sized ports.
7919
7920 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7921
7922         * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
7923         variable compiler warnings.
7924
7925 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7926
7927         * compile/compile-object-load.c (get_out_value_type): Fix returned type.
7928
7929 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7930             Phil Muldoon  <pmuldoon@redhat.com>
7931
7932         * NEWS (Changes since GDB 7.9): Add compile print.
7933         * compile/compile-c-support.c (add_code_header, add_code_footer)
7934         (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
7935         COMPILE_I_PRINT_VALUE_SCOPE.
7936         * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
7937         (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
7938         New.
7939         * compile/compile-object-load.c: Include block.h.
7940         (get_out_value_type): New function.
7941         (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
7942         COMPILE_I_PRINT_VALUE_SCOPE.  Set compile_module's OUT_VALUE_ADDR and
7943         OUT_VALUE_TYPE.
7944         * compile/compile-object-load.h (struct compile_module): Add fields
7945         out_value_addr and out_value_type.
7946         * compile/compile-object-run.c: Include valprint.h and compile.h.
7947         (struct do_module_cleanup): Add fields out_value_addr and
7948         out_value_type.
7949         (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
7950         COMPILE_I_PRINT_VALUE_SCOPE.
7951         (compile_object_run): Propagate out_value_addr and out_value_type.
7952         Pass OUT_VALUE_ADDR.
7953         * compile/compile.c: Include valprint.h.
7954         (compile_print_value, compile_print_command): New functions.
7955         (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
7956         (_initialize_compile): Update compile code help text.  Install
7957         compile_print_command.
7958         * compile/compile.h (compile_print_value): New prototype.
7959         * defs.h (enum compile_i_scope_types): Add
7960         COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
7961
7962 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7963
7964         * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
7965         Rely on its parameter count.
7966         (compile_object_load): Replace lookup_minimal_symbol_text by
7967         lookup_global_symbol_from_objfile.  Verify FUNC_SYM.  Set it in the
7968         return value.
7969         * compile/compile-object-load.h (struct compile_module): Replace
7970         func_addr by func_sym.
7971         * compile/compile-object-run.c: Include block.h.
7972         (compile_object_run): Reset module variable after it is freed.  Use
7973         FUNC_SYM instead of FUNC_ADDR.  Rely on it.
7974
7975 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7976
7977         * compile/compile-c-support.c (print_one_macro): Use #ifndef.
7978         (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
7979         (c_compute_program): Call generate_register_struct after typedefs.
7980         * compile/compile-loc2c.c (push, pushf_register_address)
7981         (pushf_register): Cast to GCC_UINTPTR.
7982         (do_compile_dwarf_expr_to_c): Use unused attribute.  Add space after
7983         type.  Use GCC_UINTPTR instead of void *.  Remove excessive cast.
7984         (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
7985         * compile/compile.c (_initialize_compile): Enable warnings for
7986         COMPILE_ARGS.
7987
7988 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7989
7990         * cli/cli-script.c (execute_control_command): Update
7991         eval_compile_command caller.
7992         * compile/compile-object-load.c (compile_object_load): Add parameters
7993         scope and scope_data.  Set them.
7994         * compile/compile-object-load.h (struct compile_module): Add fields
7995         scope and scope_data.
7996         (compile_object_load): Add parameters scope and scope_data.
7997         * compile/compile-object-run.c (struct do_module_cleanup): Add fields
7998         scope and scope_data.
7999         (compile_object_run): Propagate the fields scope and scope_data.
8000         * compile/compile.c (compile_file_command, compile_code_command):
8001         Update eval_compile_command callers.
8002         (eval_compile_command): Add parameter scope_data.  Pass it plus scope.
8003         * compile/compile.h (eval_compile_command): Add parameter scope_data.
8004         * defs.h (struct command_line): Add field scope_data.
8005
8006 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8007
8008         * printcmd.c (struct format_data): Move it to valprint.h.
8009         (print_command_parse_format, print_value): New functions from ...
8010         (print_command_1): ... here.  Call them.
8011         * valprint.h (struct format_data): Move it here from printcmd.c.
8012         (print_command_parse_format, print_value): New declarations.
8013
8014 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8015
8016         * compile/compile-object-load.c (compile_object_load): Add
8017         COMPILE_DEBUG message.
8018
8019 2015-05-15  Jerome Guitton  <guitton@adacore.com>
8020
8021         * ada-lang.c (ada_value_ptr_subscript): Use enum position of
8022         index to get element instead of enum value.
8023         (ada_value_slice_from_ptr, ada_value_slice): Use enum position
8024         of index to compute length, but enum values to compute bounds.
8025         (ada_array_length): Use enum position of index instead of enum value.
8026         (pos_atr): Move position computation to...
8027         (ada_evaluate_subexp): Use enum values to compute bounds.
8028         * gdbtypes.c (discrete_position): ...this new function.
8029         * gdbtypes.h (discrete_position): New function declaration.
8030         * valprint.c (val_print_array_elements): Call discrete_position
8031         to handle array indexed by non-contiguous enumeration types.
8032
8033 2015-05-15  Jerome Guitton  <guitton@adacore.com>
8034
8035         * ada-lang.c (find_parallel_type_by_descriptive_type):
8036         Go through typedefs during lookup.
8037         (to_fixed_array_type): Add support for non-bit packed arrays
8038         as variable-length fields.
8039
8040 2015-05-15  Pedro Alves  <palves@redhat.com>
8041             Simon Marchi  <simon.marchi@ericsson.com>
8042
8043         * event-loop.c (gdb_notifier) <next_file_handler,
8044         next_poll_fds_index>: New fields.
8045         (get_next_file_handler_to_handle_and_advance): New function.
8046         (delete_file_handler): If deleting the next file handler to
8047         handle, advance to the next file handler.
8048         (gdb_wait_for_event): Bail early if no event fired.  Poll file
8049         handlers in round-robin fashion.
8050
8051 2015-05-15  Pedro Alves  <palves@redhat.com>
8052
8053         * linux-tdep.c (linux_find_memory_regions_full): Rename local
8054         'private' to 'priv'.
8055
8056 2015-05-15  Pedro Alves  <palves@redhat.com>
8057
8058         * nat/linux-nat.h: Include "target/waitstatus.h".
8059
8060 2015-05-15  Yuanhui Zhang  <asmwarrior@gmail.com>
8061
8062         * python/py-unwind.c (struct reg_info): Move out of ...
8063         (struct cached_frame_info): ... this scope.
8064         (pending_frame_object_type, unwind_info_object_type): Make extern.
8065
8066 2015-05-15  Joel Brobecker  <brobecker@adacore.com>
8067
8068         * ada-lang.c (ada_value_primitive_packed_val): Make sure
8069         accumSize is never negative.
8070
8071 2015-05-14  Patrick Palka  <patrick@parcs.ath.cx>
8072
8073         * tui/tui-command.c: Remove include of <ctype.h>.
8074         (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
8075
8076 2015-05-13  Martin Galvan  <martin.galvan@tallertechnologies.com>
8077
8078         * dwarf2read.c (die_needs_namespace): Return 1 for
8079         DW_TAG_inlined_subroutine.
8080
8081 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8082
8083         * regcache.c (regcache_cpy_no_passthrough): New declaration.
8084         (regcache_cpy_no_passthrough): Make it static, add function comment.
8085         * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
8086         (regcache_cpy_no_passthrough): Remove declaration.
8087
8088 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8089
8090         * gdbthread.h (struct thread_control_state): Update comment for
8091         proceed_to_finish.
8092         * infcall.c (run_inferior_call): Update comment about
8093         proceed_to_finish.
8094         * infcmd.c (get_return_value): Update comment about stop_registers.
8095         (finish_forward): Update comment about proceed_to_finish.
8096         * infrun.c (stop_registers): Remove.
8097         (clear_proceed_status, normal_stop): Remove stop_registers handling.
8098         * infrun.h (stop_registers): Remove.
8099
8100 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8101
8102         * infcall.c (struct dummy_frame_context_saver)
8103         (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
8104         (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
8105         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
8106         New.
8107         (call_function_by_hand_dummy): Move discard_cleanups of
8108         inf_status_cleanup before dummy_frame_push.  Call
8109         dummy_frame_context_saver_setup and prepare context_saver_cleanup.
8110         Use dummy_frame_context_saver_get_regs instead of stop_registers.
8111         * infcall.h (struct dummy_frame_context_saver)
8112         (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
8113         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
8114         New declarations.
8115         * infcmd.c: Include infcall.h.
8116         (get_return_value): Add parameter ctx_saver, use it instead of
8117         stop_registers.
8118         (print_return_value): Add parameter ctx_saver, pass it.
8119         (struct finish_command_continuation_args): Add field ctx_saver.
8120         (finish_command_continuation): Update print_return_value caller.
8121         (finish_command_continuation_free_arg): Free also ctx_saver.
8122         (finish_forward): Call dummy_frame_context_saver_setup.
8123         * inferior.h (struct dummy_frame_context_saver): New declaration.
8124         (get_return_value): Add parameter ctx_saver.
8125         * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
8126         get_return_value caller.
8127
8128 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8129
8130         * dummy-frame.c (struct dummy_frame_dtor_list): New.
8131         (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
8132         (remove_dummy_frame): Process dtor_list.
8133         (pop_dummy_frame): Process dtor_list.
8134         (register_dummy_frame_dtor): Maintain dtor_list.
8135         (find_dummy_frame_dtor): Handle dtor_list.
8136         * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
8137         Update comments.
8138
8139 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8140
8141         * compile/compile-object-run.c (do_module_cleanup): Add parameter
8142         registers_valid.
8143         (compile_object_run): Update do_module_cleanup caller.
8144         * dummy-frame.c: Include infcall.h.
8145         (struct dummy_frame): Update dtor comment.
8146         (remove_dummy_frame): Call dtor.
8147         (pop_dummy_frame): Update dtor caller.
8148         * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
8149         registers_valid.
8150
8151 2015-05-13  Joel Brobecker  <brobecker@adacore.com>
8152
8153         GDB 7.9.1 released.
8154
8155 2015-05-13  Joel Brobecker  <brobecker@adacore.com>
8156
8157         * NEWS: Create "Changes in GDB 7.9.1" section.  Move news about
8158         Xmethods now being able to specify a result type to that new
8159         sectioin.
8160
8161 2015-05-13  Patrick Palka  <patrick@parcs.ath.cx>
8162
8163         * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
8164         first before resizing the window.
8165         * tui/tui.c (tui_enable): Likewise.
8166
8167 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8168
8169         * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
8170         * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
8171         * infcall.c (call_function_by_hand_dummy): Use proper typedef for
8172         dummy_dtor parameter.
8173         * infcall.h: Include dummy-frame.h.
8174         (call_function_by_hand_dummy_dtor_ftype): Remove.
8175         (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
8176         parameter.
8177
8178 2015-05-13  Patrick Palka  <patrick@parcs.ath.cx>
8179
8180         PR gdb/17820
8181         * top.c (history_size_setshow_var): Change type to signed.
8182         Initialize to -2.  Update documentation.
8183         (set_readline_history_size): Define.
8184         (set_history_size_command): Use it.  Remove logic for handling
8185         out-of-range sizes.
8186         (init_history): Use set_readline_history_size().  Test for a
8187         value of -2 instead of 0 when determining whether to set a
8188         default history size.
8189         (init_main): Decode the argument of the "size" command as a
8190         zuinteger_unlimited.
8191
8192 2015-05-12  Doug Evans  <dje@google.com>
8193
8194         * dwarf2read.c (struct file_entry): Tweak comments.
8195         (get_debug_line_section): Tweak comments.
8196
8197 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8198
8199         * NEWS: Announce fork support in the RSP and support
8200         for fork debugging in extended mode.
8201
8202 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8203
8204         * remote.c (remote_insert_fork_catchpoint): New function.
8205         (remote_remove_fork_catchpoint): New function.
8206         (remote_insert_vfork_catchpoint): New function.
8207         (remote_remove_vfork_catchpoint): New function.
8208         (pending_fork_parent_callback): New function.
8209         (remove_new_fork_child): New function.
8210         (remote_update_thread_list): Call remote_notif_get_pending_events
8211         and remove_new_fork_child.
8212         (extended_remote_kill): Kill fork child when killing the
8213         parent before follow_fork completes.
8214         (init_extended_remote_ops): Initialize target vector with
8215         new fork catchpoint functions.
8216
8217 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8218
8219         * remote.c (remove_vfork_event_p): New function.
8220         (remote_follow_fork): Add vfork event type to event checking.
8221         (remote_parse_stop_reply): New stop reasons "vfork" and
8222         "vforkdone" for RSP 'T' Stop Reply Packet.
8223
8224 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8225
8226         * linux-nat.c (linux_nat_ptrace_options): New function.
8227         (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
8228         Call linux_nat_ptrace_options and use different argument to
8229         linux_enable_event_reporting.
8230         (_initialize_linux_nat): Delete call to
8231         linux_ptrace_set_additional_flags.
8232         * nat/linux-ptrace.c (current_ptrace_options): Rename to
8233         supported_ptrace_options.
8234         (additional_flags): Delete variable.
8235         (linux_check_ptrace_features): Use supported_ptrace_options.
8236         (linux_test_for_tracesysgood, linux_test_for_tracefork):
8237         Likewise, and remove additional_flags check.
8238         (linux_enable_event_reporting): Change 'attached' argument to
8239         'options'.  Use supported_ptrace_options.
8240         (ptrace_supports_feature): Change comment.  Use
8241         supported_ptrace_options.
8242         (linux_ptrace_set_additional_flags): Delete function.
8243         * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
8244         Delete function prototype.
8245         * remote.c (remote_fork_event_p): New function.
8246         (remote_detach_pid): New function.
8247         (remote_detach_1): Call remote_detach_pid, don't mourn inferior
8248         if doing detach-on-fork.
8249         (remote_follow_fork): New function.
8250         (remote_parse_stop_reply): Handle new "T" stop reason "fork".
8251         (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
8252         (init_extended_remote_ops): Initialize to_follow_fork.
8253
8254 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8255
8256         * nat/linux-ptrace.c (linux_check_ptrace_features): Change
8257         from static to extern.
8258         * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
8259         * remote.c (anonymous enum): <PACKET_fork_event_feature,
8260         * PACKET_vfork_event_feature>: New enumeration constants.
8261         (remote_protocol_features): Add table entries for new packets.
8262         (remote_query_supported): Add new feature queries to qSupported
8263         packet.
8264
8265 2015-05-12  Gary Benson <gbenson@redhat.com>
8266
8267         * remote.c (remote_add_inferior): Call exec_file_locate_attach
8268         for fake PIDs as well as real ones.
8269         (remote_pid_to_exec_file): Send empty annex if PID is fake.
8270
8271 2015-05-09  Siva Chandra Reddy  <sivachandra@google.com>
8272
8273         * NEWS (Python Scripting): Mention the new gdb.Value methods.
8274         * python/py-value.c (valpy_reference_value): New function.
8275         (valpy_const_value): Likewise.
8276         (value_object_methods): Add new methods.
8277         * value.c (make_cv_value): New function.
8278         * value.h (make_cv_value): Declare.
8279
8280 2015-05-08  Yao Qi  <yao@codesourcery.com>
8281             Sandra Loosemore  <sandra@codesourcery.com>
8282
8283         * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
8284         to 'lh->include_dirs' before accessing to it.
8285         (psymtab_include_file_name): Likewise.
8286         (dwarf_decode_lines_1): Likewise.
8287         (dwarf_decode_lines): Likewise.
8288         (file_file_name): Likewise.
8289
8290 2015-05-08  Sandra Loosemore  <sandra@codesourcery.com>
8291
8292         * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
8293         (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
8294         (nios2_linux_rt_sigreturn_init): Adjust base address of
8295         register save area.
8296
8297 2015-05-08  Sandra Loosemore  <sandra@codesourcery.com>
8298
8299         * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
8300         "trap 31" as the breakpoint instruction on all targets.
8301
8302 2015-05-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8303
8304         * infcmd.c (print_return_value): Remove unused declaration.
8305
8306 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
8307
8308         * dwarf2read.c (attr_to_dynamic_prop)
8309         <DW_AT_data_member_location>: Use read_type_die isntead of
8310         get_die_type.
8311
8312 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
8313
8314         * ada-lang.c (ada_convert_actual): Add handling of formals
8315         passed inside an aligner type.
8316
8317 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
8318
8319         * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
8320
8321 2015-05-08  Siva Chandra Reddy  <sivachandra@google.com>
8322
8323         PR python/18291
8324         * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
8325         Print xmethod matcher status.
8326
8327 2015-05-08  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8328
8329         * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
8330         register in the regcache when treating the PSWM register, and vice
8331         versa.
8332
8333 2015-05-07  Gary Benson <gbenson@redhat.com>
8334
8335         * linux-thread-db.c (struct thread_db_info)
8336         <td_ta_map_id2thr_p>: Remove field.
8337         (try_thread_db_load_1): Remove initialization for the above.
8338
8339 2015-05-07  Gary Benson <gbenson@redhat.com>
8340
8341         * linux-thread-db.c (struct thread_db_info)
8342         <td_thr_validate_p>: Remove field.
8343         (try_thread_db_load_1): Remove initialization for the above.
8344
8345 2015-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
8346
8347         * compile/compile-object-load.c (compile_object_load): Support
8348         mst_text_gnu_ifunc.
8349
8350 2015-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
8351
8352         * compile/compile.c (compile_to_object): Make the cmd_string parameter
8353         const.  Use new variables for the const compatibility.
8354         (eval_compile_command): Make the cmd_string parameter const.
8355         * compile/compile.h (eval_compile_command): Make the cmd_string
8356         parameter const.
8357
8358 2015-05-06  Joel Brobecker  <brobecker@adacore.com>
8359
8360         * defs.h (deprecated_init_ui_hook): Delete.  Remove associated
8361         comment.
8362         * top.c (deprecated_init_ui_hook): Delete.
8363         (gdb_init): Remove handling of deprecated_init_ui_hook.
8364         * interps.c (clear_interpreter_hooks): Remove handling of
8365         deprecated_init_ui_hook.
8366         * main.c (captured_main): Update comment.
8367
8368 2015-05-06  Joel Brobecker  <brobecker@adacore.com>
8369
8370         * solib.c (_initialize_solib): Add "info dll" alias creation.
8371         * windows-nat.c (set_windows_aliases): Delete.
8372         (_initialize_windows_nat): Remove deprecated_init_ui_hook
8373         assignment.
8374         * NEWS: Add news entry about "info dll" now being available
8375         on all platforms.
8376
8377 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8378
8379         * ada-lang.c (value_assign_to_component): Reformat and improve
8380         documentation. Remove all trailing spaces.
8381
8382 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8383
8384         * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
8385         Stop counting inlined frames as soon as an out-of-line function
8386         is found.
8387
8388 2014-05-05  Pierre-Marie de Rodat  <derodat@adacore.com>
8389
8390         * dwarf2read.c (inherit_abstract_dies): Skip
8391         DW_TAG_GNU_call_site dies while inheriting children of an
8392         abstract DIE into a scope.
8393         (read_lexical_block_scope): Inherit abstract DIE's for
8394         lexical scopes.
8395
8396 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8397
8398         * ada-valprint.c (val_print_packed_array_elements): Delete
8399         variable "len".  Add a type-length check when comparing two
8400         consecutive elements of the array.  Use the element's actual
8401         length in call to value_contents_eq.
8402         * ada-lang.c (ada_value_primitive_packed_val): Always return
8403         a value whose type has been resolved.
8404
8405 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8406
8407         * ada-lang.c (ada_value_primitive_packed_val): Recompute
8408         BIT_SIZE and LEN if the size of the resolved type is smaller
8409         than BIT_SIZE * HOST_CHAR_BIT.
8410
8411 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8412
8413         * ada-lang.c (ada_value_primitive_packed_val): Use a more
8414         correct address in call to value_at.  Adjust call to
8415         value_address accordingly.
8416
8417 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8418
8419         * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
8420         to print it.
8421
8422 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8423
8424         * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
8425         * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
8426         pinfo->valaddr.
8427         * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
8428         * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
8429         (resolve_dynamic_type_internal): Set pinfo.valaddr.
8430         Add handling of addr_stack->valaddr.
8431         (resolve_dynamic_type): Add "valaddr" parameter.
8432         Set pinfo.valaddr field.
8433         * ada-lang.c (ada_discrete_type_high_bound): Update call to
8434         resolve_dynamic_type.
8435         (ada_discrete_type_low_bound): Likewise.
8436         * findvar.c (default_read_var_value): Likewise.
8437         * value.c (value_from_contents_and_address): Likewise.
8438
8439 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8440
8441         * gdbtypes.c (resolve_dynamic_array): Use
8442         create_array_type_with_stride instead of create_array_type.
8443
8444 2015-04-30  DJ Delorie  <dj@redhat.com>
8445
8446         * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
8447         rl78_decode_opcode
8448
8449 2015-04-29  Doug Evans  <dje@google.com>
8450
8451         PR python/18285
8452         * NEWS: Document new gdb.XMethodWorker.get_result_type method.
8453         * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
8454         EVAL_AVOID_SIDE_EFFECTS for xmethods.
8455         * extension-priv.h (struct extension_language_ops)
8456         <get_xmethod_result_type>: New member.
8457         * extension.c (get_xmethod_result_type): New function.
8458         * extension.h (get_xmethod_result_type): Declare.
8459         * python/py-xmethods.c (get_result_type_method_name): New static
8460         global.
8461         (py_get_result_type_method_name): Ditto.
8462         (gdbpy_get_xmethod_result_type): New function.
8463         (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
8464         * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
8465         * python/python.c (python_extension_ops): Add
8466         gdbpy_get_xmethod_result_type.
8467         * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
8468         * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
8469         xmethods.
8470         (value_x_unop): Ditto.
8471         * value.c (result_type_of_xmethod): New function.
8472         * value.h (result_type_of_xmethod): Declare.
8473
8474 2015-04-29  Gary Benson <gbenson@redhat.com>
8475
8476         * solib.c (solib_find_1): Allow fd argument to be NULL.
8477         (exec_file_find): Update comment.
8478         (solib_find): Likewise.
8479         * exec.c (exec_file_locate_attach): Use NULL as fd
8480         argument to exec_file_find to avoid having to close
8481         the opened file.
8482         * infrun.c (follow_exec): Likewise.
8483
8484 2015-04-28  Doug Evans  <dje@google.com>
8485
8486         PR python/18299
8487         * python/lib/gdb/printing.py (register_pretty_printer): Handle
8488         name or __name__ attributes.  Handle gdb module as first argument.
8489
8490 2015-04-28  Doug Evans  <dje@google.com>
8491
8492         PR python/18089
8493         * python/py-prettyprint.c (print_children): Verify result of children
8494         iterator.  Provide better error message.
8495         * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
8496         * python/python.c (gdbpy_print_python_errors_p): New function.
8497
8498 2015-04-28  Doug Evans  <dje@google.com>
8499
8500         * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
8501
8502 2015-04-28  Sasha Smundak  <asmundak@google.com>
8503
8504         * NEWS: Mention gdb.Type.optimized_out method.
8505         * python/py-type.c (typy_optimized_out):  New function.
8506
8507 2015-04-28  John Baldwin  <jhb@FreeBSD.org>
8508
8509         * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8510
8511 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8512
8513         * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
8514         (initialize_utils): Move call of init_page_info() to ...
8515         * top.c (gdb_init): ... here.
8516
8517 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8518
8519         * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
8520         (tui_sigwinch_handler): Still update our idea of
8521         the terminal's width and height even when TUI is not active.
8522
8523 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8524
8525         * utils.h (set_screen_width_and_height): Declare.
8526         * utils.c (set_screen_width_and_height): Define.
8527         * tui/tui-win.c (tui_update_gdb_sizes): Use it.
8528
8529 2015-04-28  Gary Benson <gbenson@redhat.com>
8530
8531         * infrun.c (solist.h): New include.
8532         (follow_exec): Use exec_file_find to prefix execd_pathname
8533         with gdb_sysroot.
8534
8535 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8536
8537         * tui/tui-source.c (tui_set_source_content): Avoid calling
8538         strcpy() when offset is 0.
8539
8540 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8541
8542         PR gdb/18155
8543         * tui/tui-data.c (tui_free_window): Don't free the locator
8544         window when passed an SRC_WIN or a DISASSEM_WIN.
8545
8546 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8547
8548         * tui/tui-data.h (struct tui_win_element): Forward-declare.
8549         (tui_win_content): Move declaration.
8550         (struct tui_gen_win_info): Give 'content' field the
8551         type tui_win_content.
8552         * tui/tui-data.c (init_content_element): Remove redundant and
8553         erroneous casts.
8554         (tui_add_content_elements): Remove erroneous cast.
8555         * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
8556         casts.
8557         (tui_get_begin_asm_address): Likewise.
8558         * tui/tui-regs.c (tui_show_registers): Likewise.
8559         (tui_show_register_group): Likewise.
8560         (tui_display_registers_from): Likewise.
8561         (tui_check_register_values): Likewise.
8562         * tui/tui-source.c (tui_set_source_content): Likewise.
8563         (tui_set_source_content_nil): Likewise.
8564         (tui_source_is_displayed): Likewise.
8565         * tui/tui-stack.c (tui_show_locator_content): Likewise.
8566         (tui_set_locator_fullname): Likewise.
8567         (tui_set_locator_info): Likewise.
8568         (tui_show_frame_info): Likewise.
8569         * tui/tui-winsource.c (tui_clear_source_content): Likewise.
8570         (tui_show_source_line): Likewise.
8571         (tui_horizontal_source_scroll): Likewise.
8572         (tui_update_breakpoint_info): Likewise.
8573         (tui_set_exec_info_content): Likewise.
8574         (tui_show_exec_info_content): Likewise.
8575         (tui_alloc_source_buffer): Likewise.
8576         (tui_line_is_displayed): Likewise.
8577         (tui_addr_is_displayed): Likewise.
8578
8579 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
8580
8581         * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
8582         event if PL_FLAG_EXEC is set.
8583         [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
8584         [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
8585         (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
8586         "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
8587         Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
8588
8589 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
8590
8591         * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
8592         [TDP_RFPPWAIT] New variable fbsd_pending_children.
8593         [TDP_RFPPWAIT] (fbsd_remember_child): New function.
8594         [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
8595         [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
8596         [PT_LWPINFO] (fbsd_wait): New function.
8597         [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
8598         [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
8599         [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
8600         [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
8601         [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
8602         [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
8603         [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
8604         [TDP_RFPPWAIT] (fbsd_post_attach): New function.
8605         (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
8606         "fbsd_wait".
8607         [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
8608         Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
8609         Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
8610         Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
8611         Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
8612         Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
8613         Set "to_post_attach" to "fbsd_post_attach".
8614
8615 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
8616
8617         * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
8618         (fbsd_find_memory_regions): Mark static.
8619         (fbsd_nat_add_target): New function.
8620         * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
8621         fbsd_pid_to_exec_file and fbsd_find_memory_regions.
8622         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
8623         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
8624         * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
8625         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
8626
8627 2015-04-27  Gary Benson <gbenson@redhat.com>
8628
8629         * objfiles.c (allocate_objfile): Do not attempt to expand name
8630         if name is a "target:" filename.
8631         * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
8632         to load auto-load scripts for objfiles with "target:" filenames.
8633
8634 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8635
8636         * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
8637         (enum s390_vector_abi_kind): New enum.
8638         (struct gdbarch_tdep)<vector_abi>: New field.
8639         (s390_effective_inner_type): Add parameter min_size.  Stop
8640         unwrapping if the inner type is smaller than min_size.
8641         (s390_function_arg_float): Adjust call to
8642         s390_effective_inner_type.
8643         (s390_function_arg_vector): New function.
8644         (s390_function_arg_integer): Adjust comment.
8645         (struct s390_arg_state)<vr>: New field.
8646         (s390_handle_arg): Add parameter 'is_unnamed'.  Pass vector
8647         arguments according to vector ABI when appropriate.
8648         (s390_push_dummy_call): Initialize the argument state's field
8649         'vr'.  Adjust calls to s390_handle_arg.
8650         (s390_register_return_value): Handle vector return values.
8651         (s390_return_value): Apply the "register" return value convention
8652         to a vector when appropriate.
8653         (s390_gdbarch_init): Initialize tdep->vector_abi.
8654         * NEWS: Announce S390 vector ABI support.
8655
8656 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8657
8658         * s390-linux-tdep.c (s390_return_value_convention): Remove
8659         function.  Inline its logic...
8660         (s390_return_value): ...here.  Instead, move the handling of the
8661         "register" return value convention...
8662         (s390_register_return_value): ...here.  New function.
8663
8664 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8665
8666         * s390-linux-tdep.c
8667         (is_float_singleton): Remove function.  Move the "singleton" part
8668         of the logic...
8669         (s390_effective_inner_type): ...here.  New function.
8670         (is_float_like): Remove function.  Inline its logic...
8671         (s390_function_arg_float): ...here.
8672         (is_pointer_like, is_integer_like, is_struct_like): Remove
8673         functions.  Inline their logic...
8674         (s390_function_arg_integer): ...here.
8675         (s390_function_arg_pass_by_reference): Remove function.
8676         (extend_simple_arg): Remove function.
8677         (alignment_of): Remove function.
8678         (struct s390_arg_state): New structure.
8679         (s390_handle_arg): New function.
8680         (s390_push_dummy_call): Move parameter placement logic to the new
8681         function s390_handle_arg.  Call it for calculating the stack area
8682         sizes first, and again for actually writing the parameters.
8683
8684 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8685
8686         * s390-linux-tdep.c (is_power_of_two): Add comment.  Return
8687           false if the argument is zero.
8688
8689 2015-04-27  Pierre-Marie de Rodat  <derodat@adacore.com>
8690
8691         * ada-lang.c (template_to_static_fixed_type): Return input type
8692         when it is already fixed.  Cache the input type itself when not
8693         creating a static fixed copy.  Make it explicit that we never
8694         molestate the input type.
8695         * gdbtypes.c (resolve_dynamic_struct): Reset the
8696         TYPE_TARGET_TYPE field for resolved copies.
8697
8698 2015-04-27  Joel Brobecker  <brobecker@adacore.com>
8699
8700         * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
8701         (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
8702         (template_to_static_fixed_type): Call ada_check_typedef only
8703         when necessary.
8704
8705 2015-04-24  Andrew Burgess  <andrew.burgess@embecosm.com>
8706
8707         * cli/cli-dump.c (srec_dump_command): Add internationalization
8708         mark ups.
8709         (ihex_dump_command): Likewise.
8710         (tekhex_dump_command): Likewise.
8711         (binary_dump_command): Likewise.
8712         (binary_append_command): Likewise.
8713
8714 2015-04-24  Andrew Burgess  <andrew.burgess@embecosm.com>
8715
8716         * cli/cli-dump.c (verilog_cmdlist): New variable.
8717         (dump_verilog_memory): New function.
8718         (dump_verilog_value): New function.
8719         (verilog_dump_command): New function.
8720         (_initialize_cli_dump): Add new commands to support verilog dump
8721         format.
8722         * NEWS: Add entry for "dump verilog".
8723
8724 2015-04-24  Pierre-Marie de Rodat  <derodat@adacore.com>
8725
8726         * gdbtypes.c (print_gnat_stuff): Do not recurse on the
8727         descriptive type when there is none.
8728
8729 2015-04-23  Patrick Palka  <patrick@parcs.ath.cx>
8730
8731         * tui/tui-win.c (tui_async_resize_screen): Call
8732         rl_resize_terminal().
8733
8734 2015-04-22  Jon Turney  <jon.turney@dronecode.org.uk>
8735
8736         * windows-nat.c (handle_output_debug_string): Don't change
8737         current_event.dwThreadId.
8738         (get_windows_debug_event): Use thread_id, rather than relying on
8739         current_event.dwThreadId being changed.
8740
8741 2015-04-22  Jon Turney  <jon.turney@dronecode.org.uk>
8742
8743         * windows-nat.c (windows_continue): Report an error if
8744         ContinueDebugEvent() fails.
8745
8746 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
8747
8748         * windows-nat.c (windows_resume): Fix misspelling in debug output.
8749
8750 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
8751
8752         * windows-nat.c (get_windows_debug_event): Replace retval with
8753         thread_id throughout.  Update stale comment.
8754
8755 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
8756
8757         * windows-nat.c (get_windows_debug_event): Don't use ternary
8758         conditional operator.
8759
8760 2015-04-21  Pierre Muller  <muller@sourceware.org>
8761
8762         PR pascal/17815
8763         p-exp.y (yylex): Reorganize code to return the matched pattern
8764         for a field of this.
8765
8766 2015-04-21  Gary Benson <gbenson@redhat.com>
8767
8768         * common/fileio.h (fileio_to_host_openflags): New declaration.
8769         * common/fileio.c (fcntl.h): New include.
8770         (fileio_to_host_openflags): New function, factored out from...
8771         * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
8772         Single use updated.
8773
8774 2015-04-21  Kevin Buettner  <kevinb@redhat.com>
8775
8776         * rl78-tdep.c (RL78_SP_ADDR): Define.
8777         (opc_reg_to_gdb_regnum): New static function.
8778         (rl78_analyze_prologue): Recognize instructions forming slightly
8779         more interesting prologues.
8780
8781 2015-04-20  Pierre-Marie de Rodat  <derodat@adacore.com>
8782
8783         Revert:
8784         2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
8785         * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
8786         TYPE_CODE_REF types so that they are not considered as dynamic
8787         depending on the referenced type.
8788         (resolve_dynamic_type_internal): Likewise.
8789
8790 2015-04-20  Pierre-Marie de Rodat  <derodat@adacore.com>
8791
8792         Revert:
8793         2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
8794         * gdbtypes.c (is_dynamic_type_internal): Remove the unused
8795         "top_level" parameter.
8796         (resolve_dynamic_type_internal): Remove the unused "top_level"
8797         parameter.  Update call to is_dynamic_type_internal.
8798         (is_dynamic_type): Update call to is_dynamic_type_internal.
8799         (resolve_dynamic_range): Update call to
8800         resolve_dynamic_type_internal.
8801         (resolve_dynamic_union): Likewise.
8802         (resolve_dynamic_struct): Likewise.
8803         (resolve_dynamic_type): Likewise.
8804
8805 2015-04-19  Gabriel Krisman Bertazi  <gabriel@krisman.be>
8806
8807         * breakpoint.c (update_dprintf_command_list): Remove duplicated
8808         xmalloc.
8809
8810 2015-04-20  Thomas Schwinge  <thomas@codesourcery.com>
8811
8812         * reply_mig_hack.awk: Robustify parsing.
8813
8814         * reply_mig_hack.awk: Don't bother to declare an intermediate
8815         function pointer variable.
8816
8817 2015-04-17  Doug Evans  <dje@google.com>
8818
8819         * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
8820         to "exec_displacement" to avoid confusion with inner use of the name.
8821
8822 2015-04-17  Pedro Alves  <palves@redhat.com>
8823
8824         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
8825         if HW point of TYPE isn't supported.
8826
8827 2015-04-17  Yao Qi  <yao.qi@linaro.org>
8828             Pedro Alves  <palves@redhat.com>
8829
8830         * target.h (target_can_use_hardware_watchpoint): Update comments.
8831         Remove trailing ";".
8832
8833 2015-04-17  Gary Benson <gbenson@redhat.com>
8834
8835         * remote.c (remote_add_inferior): New argument try_open_exec.
8836         If nonzero, attempt to open the inferior's executable file as
8837         the main executable if no main executable is open already.
8838         All callers updated.
8839         * NEWS: Mention that GDB now supports automatic location and
8840         retrieval of executable + files from remote targets.
8841
8842 2015-04-17  Gary Benson <gbenson@redhat.com>
8843
8844         * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
8845         * remote.c (PACKET_qXfer_exec_file): Likewise.
8846         (remote_protocol_features): Register the
8847         "qXfer:exec-file:read" feature.
8848         (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
8849         (remote_pid_to_exec_file): New function.
8850         (init_remote_ops): Initialize to_pid_to_exec_file.
8851         (_initialize_remote): Register new "set/show remote
8852         pid-to-exec-file-packet" command.
8853         * NEWS: Announce new qXfer:exec-file:read packet.
8854
8855 2015-04-17  Gary Benson <gbenson@redhat.com>
8856
8857         * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
8858         New declaration.
8859         * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
8860         New function, factored out from...
8861         * linux-nat.c (linux_child_pid_to_exec_file): ...here.
8862
8863 2015-04-17  Gary Benson <gbenson@redhat.com>
8864
8865         * exec.c (solist.h): New include.
8866         (exec_file_locate_attach): Prefix absolute executable
8867         paths with gdb_sysroot if set.
8868         * NEWS: Mention that executable paths may be prepended
8869         with sysroot.
8870
8871 2015-04-17  Gary Benson <gbenson@redhat.com>
8872
8873         * solist.h (exec_file_find): New declaration.
8874         * solib.c (solib_find_1): New function, factored out from...
8875         (solib_find): ...here.
8876         (exec_file_find): New function.
8877
8878 2015-04-17  Gary Benson <gbenson@redhat.com>
8879
8880         * gdbcore.h (exec_file_locate_attach): New declaration.
8881         * exec.c (exec_file_locate_attach): New function, factored
8882         out from...
8883         * infcmd.c (attach_command_post_wait): ...here.
8884
8885 2015-04-17  Mike Frysinger  <vapier@gentoo.org>
8886
8887         * MAINTAINERS: Add myself for Blackfin/write-after-approval.
8888
8889 2015-04-16  Yao Qi  <yao.qi@linaro.org>
8890
8891         * infrun.c (maybe_software_singlestep): Declare.
8892         (displaced_step_fixup): Call maybe_software_singlestep.
8893
8894 2015-04-15  Doug Evans  <dje@google.com>
8895
8896         * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
8897
8898 2015-04-15  Doug Evans  <dje@google.com>
8899
8900         * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
8901
8902 2015-04-15  Simon Marchi  <simon.marchi@ericsson.com>
8903
8904         * python/lib/gdb/command/unwinders.py: Add parentheses.
8905
8906 2015-04-15  Yao Qi  <yao.qi@linaro.org>
8907
8908         * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
8909
8910 2015-04-15  Yao Qi  <yao.qi@linaro.org>
8911
8912         * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
8913
8914 2015-04-15  Yao Qi  <yao.qi@linaro.org>
8915
8916         * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
8917         dsc->insn_size instead of 4.
8918
8919 2015-04-14  Gary Benson <gbenson@redhat.com>
8920
8921         * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
8922         * minidebug.c (lzma_stat): Likewise.
8923         * solib-spu.c (spu_bfd_iovec_stat): Likewise.
8924         * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
8925
8926 2015-04-13  Stan Shebs  <stanshebs@google.com>
8927
8928         * MAINTAINERS: Update my email address.
8929
8930 2015-04-13  John Baldwin  <jhb@FreeBSD.org>
8931
8932         * amd64-tdep.c (amd64_target_description): New function.
8933         * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
8934         * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
8935         (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
8936         x86 extended save area.
8937         (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
8938         * amd64bsd-nat.h: Export amd64bsd_xsave_len.
8939         * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
8940         (_initialize_amd64fbsd_nat): Set "to_read_description" to
8941         "amd64fbsd_read_description".
8942         * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
8943         (amd64fbsd_supply_xstateregset): New function.
8944         (amd64fbsd_collect_xstateregset): New function.
8945         Add "amd64fbsd_xstateregset".
8946         (amd64fbsd_iterate_over_regset_sections): New function.
8947         (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
8948         "I386_FBSD_XSAVE_XCR0_OFFSET".
8949         Add "iterate_over_regset_sections" gdbarch method.
8950         Add "core_read_description" gdbarch method.
8951         * i386-tdep.c (i386_target_description): New function.
8952         * i386-tdep.h: Export i386_target_description and tdesc_i386.
8953         * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
8954         (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
8955         x86 extended save area.
8956         (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
8957         * i386bsd-nat.h: Export i386bsd_xsave_len.
8958         * i386fbsd-nat.c (i386fbsd_read_description): New function.
8959         (_initialize_i386fbsd_nat): Set "to_read_description" to
8960         "i386fbsd_read_description".
8961         * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
8962         (i386fbsd_core_read_description): New function.
8963         (i386fbsd_supply_xstateregset): New function.
8964         (i386fbsd_collect_xstateregset): New function.
8965         Add "i386fbsd_xstateregset".
8966         (i386fbsd_iterate_over_regset_sections): New function.
8967         (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
8968         "I386_FBSD_XSAVE_XCR0_OFFSET".
8969         Add "iterate_over_regset_sections" gdbarch method.
8970         Add "core_read_description" gdbarch method.
8971         * i386fbsd-tdep.h: New file.
8972
8973 2015-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
8974
8975         * NEWS (Changes since GDB 7.9): Add removed -xdb.
8976         * breakpoint.c (command_line_is_silent): Remove xdb_commands
8977         conditional.
8978         (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
8979         and lb.
8980         * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
8981         va.
8982         * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
8983         conditional.
8984         * defs.h (xdb_commands): Remove declaration.
8985         * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
8986         * guile/scm-cmd.c (command_classes): Remove xdb from comment.
8987         * infcmd.c (run_no_args_command, go_command): Remove.
8988         (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
8989         * infrun.c (xdb_handle_command): Remove.
8990         (_initialize_infrun): Remove xdb_commands for lz and z.
8991         * main.c (xdb_commands): Remove variable.
8992         (captured_main): Remove "xdb" from long_options.
8993         (print_gdb_help): Remove --xdb from help.
8994         * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
8995         * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
8996         * stack.c (backtrace_full_command, args_plus_locals_info)
8997         (current_frame_command): Remove.
8998         (_initialize_stack): Remove xdb_commands for t, T and l.
8999         * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
9000         * thread.c (_initialize_thread): Remove xdb_commands condition.
9001         * tui/tui-layout.c (tui_toggle_layout_command)
9002         (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
9003         (_initialize_tui_layout): Remove xdb_commands for td and ts.
9004         * tui/tui-regs.c (tui_scroll_regs_forward_command)
9005         (tui_scroll_regs_backward_command): Remove.
9006         (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
9007         * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
9008         (_initialize_tui_win): Remove xdb_commands for U and w.
9009         * utils.c (pagination_on_command, pagination_off_command): Remove.
9010         (initialize_utils): Remove xdb_commands for am and sm.
9011
9012 2015-04-10  Pedro Alves  <palves@redhat.com>
9013
9014         * infrun.c (displaced_step_fixup): Switch to the event ptid
9015         earlier.  If the thread stopped for a watchpoint and the
9016         target/arch has non-continuable watchpoints, cancel the displaced
9017         step.
9018         (resume): Don't start a displaced step if in-line step-over info
9019         is valid.
9020
9021 2015-04-10  Pedro Alves  <palves@redhat.com>
9022
9023         * infrun.c (displaced_step_in_progress): New function.
9024         (do_target_resume): Advise target to report all signals if
9025         displaced stepping.
9026
9027 2015-04-10  Pedro Alves  <palves@redhat.com>
9028
9029         PR gdb/18216
9030         * infrun.c (process_event_stop_test): Don't assume a step-resume
9031         is set if tp->stepped_breakpoint is true.
9032
9033 2015-04-10  Yao Qi  <yao.qi@linaro.org>
9034
9035         * arm-tdep.c (install_alu_reg): Update comment.
9036         (thumb_copy_alu_reg): Remove local variable rn.  Update
9037         debugging message.  Use r2 instead of r1 in the modified
9038         instruction.
9039
9040 2015-04-10  Pedro Alves  <palves@redhat.com>
9041
9042         PR gdb/13858
9043         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
9044         linux_displaced_step_location as gdbarch_displaced_step_location
9045         hook.
9046         * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
9047         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
9048         * linux-tdep.c (linux_displaced_step_location): New function,
9049         based on ppc_linux_displaced_step_location.
9050         * linux-tdep.h (linux_displaced_step_location): New declaration.
9051         * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
9052         (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
9053         Delete.
9054         (ppc_linux_init_abi): Install linux_displaced_step_location as
9055         gdbarch_displaced_step_location hook, even without Cell/B.E..
9056         (_initialize_ppc_linux_tdep): Don't install
9057         ppc_linux_inferior_created as inferior_created observer.
9058         * s390-linux-tdep.c (s390_gdbarch_init): Install
9059         linux_displaced_step_location as gdbarch_displaced_step_location
9060         hook.
9061
9062 2015-04-09  Gary Benson <gbenson@redhat.com>
9063
9064         * common/common-remote-fileio.h: Rename to...
9065         * common/fileio.h: ...this.  Update all references.
9066         (remote_fileio_to_fio_error): Rename to...
9067         (host_to_fileio_error): ...this.
9068         (remote_fileio_to_be): Rename to...
9069         (host_to_bigendian): ...this.  Update all callers.
9070         (remote_fileio_to_fio_uint): Rename to...
9071         (host_to_fileio_uint): ...this.  Update all callers.
9072         (remote_fileio_to_fio_time): Rename to...
9073         (host_to_fileio_time): ...this.  Update all callers.
9074         (remote_fileio_to_fio_stat): Rename to...
9075         (host_to_fileio_stat): ...this.
9076         Update all references.
9077         * common/common-remote-fileio.c: Rename to...
9078         * common/fileio.c: ...this.  Update all references.
9079         (remote_fileio_to_fio_error): Rename to...
9080         (host_to_fileio_error): ...this.  Update all callers.
9081         (remote_fileio_mode_to_target): Rename to...
9082         (fileio_mode_pack): ...this.  Update all callers.
9083         (remote_fileio_to_fio_mode): Rename to...
9084         (host_to_fileio_mode): ...this.  Update all callers.
9085         (remote_fileio_to_fio_ulong): Rename to...
9086         (host_to_fileio_ulong): ...this.  Update all callers.
9087         (remote_fileio_to_fio_stat): Rename to...
9088         (host_to_fileio_stat): ...this.  Update all callers.
9089
9090 2015-04-09  Andy Wingo  <wingo@igalia.com>
9091
9092         * guile/scm-frame.c (gdbscm_frame_read_register): New function.
9093         (frame_functions): Bind gdbscm_frame_read_register to
9094         frame-read-register.
9095         * guile/lib/gdb.scm (frame-read-register): Export.
9096
9097 2015-04-09  Gary Benson <gbenson@redhat.com>
9098
9099         * common/common-remote-fileio.h (remote_fileio_to_fio_error):
9100         New declaration.
9101         * common/common-remote-fileio.c (remote_fileio_to_fio_error):
9102         New function, factored out the named functions below.
9103         * inf-child.c (gdb/fileio.h): Remove include.
9104         (common-remote-fileio.h): New include.
9105         (inf_child_errno_to_fileio_error): Remove function.  Update
9106         all callers to use remote_fileio_to_fio_error.
9107         * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
9108
9109 2015-04-09  Andy Wingo  <wingo@igalia.com>
9110
9111         * MAINTAINERS (Write After Approval): Add Andy Wingo.
9112
9113 2015-04-09  H.J. Lu  <hongjiu.lu@intel.com>
9114
9115         * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
9116         Replace $zlibdir with $ZLIBDIR in LDFLAGS.
9117         * configure: Regenerated.
9118
9119 2015-04-09  Pedro Alves  <palves@redhat.com>
9120
9121         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
9122         * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
9123         * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
9124         * gnulib/import/Makefile.am: Update.
9125         * gnulib/import/Makefile.in: Update.
9126         * gnulib/import/m4/gnulib-cache.m4: Update.
9127         * gnulib/import/m4/gnulib-comp.m4: Update.
9128         * gnulib/import/m4/strtok_r.m4: New file.
9129         * gnulib/import/strtok_r.c: New file.
9130
9131 2015-04-09  Pedro Alves  <palves@redhat.com>
9132
9133         * gnulib/update-gnulib.sh (aclocal version check): Filter out
9134         "called too early to check prototype".
9135
9136 2015-04-08  Sergio Durigan Junior  <sergiodj@redhat.com>
9137
9138         PR python/16699
9139         * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
9140         use a caching mechanism.  Adjust comments and code to reflect
9141         that.  Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
9142         (cmdpy_completer_handle_brkchars): Adjust call to
9143         cmdpy_completer_helper.  Call Py_XDECREF for 'resultobj'.
9144         (cmdpy_completer): Likewise.
9145
9146 2015-04-08  Yao Qi  <yao.qi@linaro.org>
9147
9148         * spu-tdep.c (spu_gdbarch_init): Don't call
9149         set_gdbarch_cannot_step_breakpoint.
9150
9151 2015-04-07  Sergio Durigan Junior  <sergiodj@redhat.com>
9152
9153         * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
9154
9155 2015-04-07  Pedro Alves  <palves@redhat.com>
9156
9157         * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
9158         (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
9159         (delete_exited_threads): New declaration.
9160         * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
9161         * linux-nat.c (linux_nat_update_thread_list): New function.
9162         (linux_nat_add_target): Install it.
9163         * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
9164         * thread.c (prune_threads): Use ALL_THREADS_SAFE.
9165         (delete_exited_threads): New function.
9166
9167 2015-04-07  Pedro Alves  <pedro@codesourcery.com>
9168
9169         * infrun.c (resume) <displaced stepping debug output>: Get the
9170         leader thread's regcache, not resume_ptid's.
9171
9172 2015-04-06  Doug Evans  <xdje42@gmail.com>
9173
9174         * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
9175         VAR_DOMAIN.
9176         (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
9177         Include symbol domain in debugging output.
9178
9179 2015-04-06  Pedro Alves  <palves@redhat.com>
9180             Bernd Edlinger  <bernd.edlinger@hotmail.de>
9181
9182         * configure.ac: Remove the mingw32-specific stub-termcap.o
9183         fallback, and instead fallback to the stub termcap on all hosts.
9184         * configure: Regenerate.
9185         * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
9186         symbols.
9187
9188 2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
9189
9190         * gdbtypes.c (is_dynamic_type_internal): Remove the unused
9191         "top_level" parameter.
9192         (resolve_dynamic_type_internal): Remove the unused "top_level"
9193         parameter.  Update call to is_dynamic_type_internal.
9194         (is_dynamic_type): Update call to is_dynamic_type_internal.
9195         (resolve_dynamic_range): Update call to
9196         resolve_dynamic_type_internal.
9197         (resolve_dynamic_union): Likewise.
9198         (resolve_dynamic_struct): Likewise.
9199         (resolve_dynamic_type): Likewise.
9200
9201 2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
9202
9203         * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
9204         TYPE_CODE_REF types so that they are not considered as dynamic
9205         depending on the referenced type.
9206         (resolve_dynamic_type_internal): Likewise.
9207
9208 2015-04-02  H.J. Lu  <hongjiu.lu@intel.com>
9209
9210         * Makefile.in (top_srcdir): New.
9211         * configure: Regenerated.
9212
9213 2015-04-02  Gary Benson <gbenson@redhat.com>
9214
9215         * NEWS: Announce the new default sysroot of "target:".
9216
9217 2015-04-02  Gary Benson <gbenson@redhat.com>
9218
9219         * main.c (captured_main): Set gdb_sysroot to "target:"
9220         if not otherwise set.
9221
9222 2015-04-02  Gary Benson <gbenson@redhat.com>
9223
9224         * exec.c (exec_file_attach): Support "target:" filenames.
9225
9226 2015-04-02  Gary Benson <gbenson@redhat.com>
9227
9228         * solib.c (solib_find): Strip "target:" prefix from sysroot
9229         if accessing local files.
9230
9231 2015-04-02  Gary Benson <gbenson@redhat.com>
9232
9233         * symfile.c (symfile_bfd_open): Reorder to remove duplicated
9234         checks and error messages.
9235
9236 2015-04-02  Gary Benson <gbenson@redhat.com>
9237
9238         * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
9239         (remote_filename_p): Remove declaration.
9240         (remote_bfd_open): Likewise.
9241         * remote.c (remote_bfd_iovec_open): Remove function.
9242         (remote_bfd_iovec_close): Likewise.
9243         (remote_bfd_iovec_pread): Likewise.
9244         (remote_bfd_iovec_stat): Likewise.
9245         (remote_filename_p): Likewise.
9246         (remote_bfd_open): Likewise.
9247         * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
9248         * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
9249         (gdb_bfd_open_maybe_remote): Remove function.
9250         (symfile_bfd_open):  Replace remote filename check with
9251         target filename check.
9252         (reread_symbols): Use gdb_bfd_open.
9253         * build-id.c (gdbcore.h): New include.
9254         (build_id_to_debug_bfd): Use gdb_bfd_open.
9255         * infcmd.c (attach_command_post_wait): Remove remote filename
9256         check.
9257         * solib.c (solib_find): Replace remote-specific handling with
9258         target-specific handling.  Update comments where necessary.
9259         (solib_bfd_open): Replace remote-specific handling with
9260         target-specific handling.
9261         (gdb_sysroot_changed): New function.
9262         (_initialize_solib): Call the above when gdb_sysroot changes.
9263         * windows-tdep.c (gdbcore.h): New include.
9264         (windows_xfer_shared_library): Use gdb_bfd_open.
9265
9266 2015-04-02  Gary Benson <gbenson@redhat.com>
9267
9268         * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
9269         (is_target_filename): New declaration.
9270         (gdb_bfd_has_target_filename): Likewise.
9271         (gdb_bfd_open): Update documentation comment.
9272         * gdb_bfd.c (target.h): New include.
9273         (gdb/fileio.h): Likewise.
9274         (is_target_filename): New function.
9275         (gdb_bfd_has_target_filename): Likewise.
9276         (fileio_errno_to_host): Likewise.
9277         (gdb_bfd_iovec_fileio_open): Likewise.
9278         (gdb_bfd_iovec_fileio_pread): Likewise.
9279         (gdb_bfd_iovec_fileio_close): Likewise.
9280         (gdb_bfd_iovec_fileio_fstat): Likewise.
9281         (gdb_bfd_open): Use target fileio to access paths prefixed
9282         with "target:" where necessary.
9283
9284 2015-04-02  Gary Benson <gbenson@redhat.com>
9285
9286         * target.h (struct target_ops) <to_filesystem_is_local>:
9287         New field.
9288         (target_filesystem_is_local): New macro.
9289         * target-delegates.c: Regenerate.
9290         * remote.c (remote_filesystem_is_local): New function.
9291         (init_remote_ops): Initialize to_filesystem_is_local.
9292
9293 2015-04-02  Gary Benson <gbenson@redhat.com>
9294
9295         * target.h (struct target_ops) <to_fileio_fstat>: New field.
9296         (target_fileio_fstat): New declaration.
9297         * target.c (target_fileio_fstat): New function.
9298         * inf-child.c (inf_child_fileio_fstat): Likewise.
9299         (inf_child_target): Initialize to_fileio_fstat.
9300         * remote.c (init_remote_ops): Likewise.
9301
9302 2015-04-01  Sasha Smundak  <asmundak@google.com>
9303
9304         * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
9305         (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
9306         (py-unwind.o): New recipe.
9307         * NEWS: mention Python frame unwinding.
9308         * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
9309         gdb/unwinder.py and gdb/command/unwinder.py
9310         * python/lib/gdb/__init__.py (packages): Add frame_unwinders
9311         list.
9312         (execute_unwinders): New function.
9313         * python/lib/gdb/command/unwinders.py: New file.
9314         * python/lib/gdb/unwinder.py: New file.
9315         * python/py-objfile.c (objfile_object): Add frame_unwinders field.
9316         (objfpy_dealloc): Decrement frame_unwinders reference count.
9317         (objfpy_initialize): Create frame_unwinders list.
9318         (objfpy_get_frame_unwinders): New function.
9319         (objfpy_set_frame_unwinders): Ditto.
9320         (objfile_getset): Add frame_unwinders attribute to Objfile.
9321         * python/py-progspace.c (pspace_object): Add frame_unwinders field.
9322         (pspy_dealloc): Decrement frame_unwinders reference count.
9323         (pspy_initialize): Create frame_unwinders list.
9324         (pspy_get_frame_unwinders): New function.
9325         (pspy_set_frame_unwinders): Ditto.
9326         (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
9327         * python/py-unwind.c: New file.
9328         * python/python-internal.h (pspy_get_name_unwinders): New prototype.
9329         (objpy_get_frame_unwinders): New prototype.
9330         (gdbpy_initialize_unwind): New prototype.
9331         * python/python.c (gdbpy_apply_type_printers): Call
9332         gdbpy_initialize_unwind.
9333
9334 2015-04-01  Pedro Alves  <palves@redhat.com>
9335
9336         * infrun.c (resume): Check currently_stepping after clearing
9337         stepped_breakpoint, not before.
9338
9339 2015-04-01  Pedro Alves  <palves@redhat.com>
9340
9341         * infrun.c (print_target_wait_results): Print all the ptid
9342         elements.
9343
9344 2015-04-01  Pedro Alves  <palves@redhat.com>
9345
9346         * infrun.c (keep_going): Also discard cleanups if inserting
9347         breakpoints fails.
9348
9349 2015-04-01  Pedro Alves  <palves@redhat.com>
9350
9351         * infrun.c (wait_for_inferior): Install the
9352         finish_thread_state_cleanup cleanup across the whole function, not
9353         just around handle_inferior_event.
9354
9355 2015-04-01  Pedro Alves  <palves@redhat.com>
9356
9357         * infrun.c (resume) <step past permanent breakpoint>: Use
9358         do_target_resume.
9359
9360 2015-04-01  Pedro Alves  <palves@redhat.com>
9361
9362         * linux-nat.c (linux_handle_extended_wait): Always call set_running.
9363
9364 2015-04-01  Pierre-Marie de Rodat  <derodat@adacore.com>
9365
9366         * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
9367
9368 2015-04-01  Pedro Alves  <palves@redhat.com>
9369
9370         * linux-thread-db.c (record_thread): Readd the thread to gdb's
9371         list if it was marked exited.
9372
9373 2015-04-01  H.J. Lu  <hongjiu.lu@intel.com>
9374
9375         * configure: Regenerated.
9376
9377 2015-03-31  Sergio Durigan Junior  <sergiodj@redhat.com>
9378             Jan Kratochvil  <jan.kratochvil@redhat.com>
9379             Oleg Nesterov  <oleg@redhat.com>
9380
9381         PR corefiles/16092
9382         * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
9383         New enum identifying the various options of the coredump_filter
9384         file.
9385         (struct smaps_vmflags): New struct.
9386         (use_coredump_filter): New variable.
9387         (decode_vmflags): New function.
9388         (mapping_is_anonymous_p): Likewise.
9389         (dump_mapping_p): Likewise.
9390         (linux_find_memory_regions_full): New variables
9391         'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
9392         Removed variable 'modified'.  Read /proc/<PID>/smaps file; improve
9393         parsing of its information.  Implement memory mapping filtering
9394         based on its contents.
9395         (show_use_coredump_filter): New function.
9396         (_initialize_linux_tdep): New command 'set use-coredump-filter'.
9397         * NEWS: Mention the possibility of using the
9398         '/proc/PID/coredump_filter' file when generating a corefile.
9399         Mention new command 'set use-coredump-filter'.
9400
9401 2015-03-31  Sergio Durigan Junior  <sergiodj@redhat.com>
9402
9403         * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
9404         read_memory_unsigned_integer.
9405
9406 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
9407
9408         * Makefile.in (ZLIB): New.
9409         (ZLIBINC): Likewise.
9410         (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
9411         (CLIBS): Add $(ZLIB).
9412         * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
9413         Add -lz to LIBS.
9414         * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
9415         * top.c (print_gdb_configuration): Remove --with-zlib and
9416         --without-zlib.
9417         * config.in: Regenerated.
9418         * configure: Likewise.
9419
9420 2015-03-31  Antoine Tremblay  <antoine.tremblay@ericsson.com>
9421
9422         * NEWS: Mention info os cpus support.
9423         * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
9424         (struct osdata_type): Add cpus entry, reorder the entries in
9425         alphabetical order.
9426
9427 2015-03-31  Matthias Klose  <doko@ubuntu.com>
9428
9429         * compile/compile.c (compile_to_object): Allow triplets with or
9430         without vendor set.
9431
9432 2015-03-30  Doug Evans  <dje@google.com>
9433
9434         PR c++/18141
9435         * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
9436         klass in VAR_DOMAIN.
9437
9438 2015-03-30  Gary Benson <gbenson@redhat.com>
9439
9440         * remote.c (remote_mourn_1): Remove function.  Update all callers
9441         to use remote_mourn.
9442         (extended_remote_mourn_1): Remove function.  Update all callers
9443         to use extended_remote_mourn.
9444         (extended_remote_attach_1): Remove function.  Update all callers
9445         to use extended_remote_attach.
9446
9447 2015-03-28  James Bowman  <james.bowman@ftdichip.com>
9448
9449         * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
9450         (HFILES_NO_SRCDIR): Add ft32-tdep.h.
9451         (ALLDEPFILES): Add ft32-tdep.c.
9452         * configure.tgt: Add FT32 entry.
9453         * ft32-tdep.c: New file, FT32 target-dependent code.
9454         * ft32-tdep.h: New file, FT32 target-dependent code.
9455
9456 2015-03-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
9457
9458         Revert:
9459         2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
9460         Code cleanup.
9461         * printcmd.c (print_command_1): Move expr variable scope.
9462
9463 2015-03-27  Joel Brobecker  <brobecker@adacore.com>
9464
9465         * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
9466
9467 2015-03-27  Andrzej Kaczmarek  <andrzej.kaczmarek@tieto.com>
9468
9469         * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
9470         sections.
9471
9472 2015-03-26  Joel Brobecker  <brobecker@adacore.com>
9473
9474         * dtrace-probe.c (dtrace_process_dof_probe): Contain any
9475         exception raised while parsing the probe arguments.
9476         Force parsing to be done using the C language parser.
9477         * expression.h (parse_expression_with_language): Declare.
9478         * parse.c (parse_expression_with_language): New function.
9479
9480 2015-03-26  Jon Turney  <jon.turney@dronecode.org.uk>
9481
9482         * MAINTAINERS (Write After Approval): Add "Jon Turney".
9483
9484 2015-03-26  Andy Wingo  <wingo@igalia.com>
9485
9486         PR symtab/18148
9487         * dwarf2read.c (struct partial_die_info): Add has_const_value
9488         member.
9489         (add_partial_symbol): Don't punt on symbols that have const_value
9490         attributes.
9491         (read_partial_die): Detect DW_AT_const_value.
9492
9493 2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
9494
9495         Code cleanup.
9496         * printcmd.c (print_command_1): Move expr variable scope.
9497
9498 2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
9499
9500         Code cleanup.
9501         * printcmd.c (validate_format): Make the parameter cmdname const.
9502
9503 2015-03-26  Don Breazeal  <donb@codesourcery.com>
9504
9505         * remote.c (_initialize_remote): Update comment.
9506
9507 2015-03-26  Pedro Alves  <palves@redhat.com>
9508             Jon TURNEY  <jon.turney@dronecode.org.uk>
9509
9510         * coffread.c (coff_symfile_read): When constructing the name of an
9511         import stub symbol from import symbol for amd64, only skip the
9512         char after _imp_ if the target is underscored (like i386) and the
9513         char is indeed the target's leading char.
9514
9515 2015-03-25  Pedro Alves  <palves@redhat.com>
9516
9517         * target.h <to_async>: Replace 'callback' and 'context' parameters
9518         with boolean 'enable' parameter.
9519         (target_async): Replace CALLBACK and CONTEXT parameters with
9520         boolean ENABLE parameter.
9521         * inf-loop.c (inferior_event_handler): Adjust.
9522         * linux-nat.c (linux_nat_attach, linux_nat_resume)
9523         (linux_nat_resume): Adjust.
9524         (async_client_callback, async_client_context): Delete.
9525         (handle_target_event): Call inferior_event_handler directly.
9526         (linux_nat_async): Replace 'callback' and 'context' parameters
9527         with boolean 'enable' parameter.  Adjust.  Remove references to
9528         async_client_callback and async_client_context.
9529         (linux_nat_close): Adjust.
9530         * record-btrace.c (record_btrace_async): Replace 'callback' and
9531         'context' parameters with boolean 'enable' parameter.  Adjust.
9532         (record_btrace_resume): Adjust.
9533         * record-full.c (record_full_async): Replace 'callback' and
9534         'context' parameters with boolean 'enable' parameter.  Adjust.
9535         (record_full_resume, record_full_core_resume): Adjust.
9536         * remote.c (struct remote_state) <async_client_callback,
9537         async_client_context>: Delete fields.
9538         (remote_start_remote, extended_remote_attach_1, remote_resume)
9539         (extended_remote_create_inferior): Adjust.
9540         (remote_async_serial_handler): Call inferior_event_handler
9541         directly.
9542         (remote_async): Replace 'callback' and 'context' parameters with
9543         boolean 'enable' parameter.  Adjust.
9544         * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
9545         Adjust.
9546         * target-delegates.c: Regenerate.
9547
9548 2015-03-25  Gary Benson <gbenson@redhat.com>
9549             Pedro Alves  <palves@redhat.com>
9550
9551         * target.c (fileio_ft_t): New typedef, define object vector.
9552         (fileio_fhandles): New static variable.
9553         (is_closed_fileio_fh): New macro.
9554         (lowest_closed_fd): New static variable.
9555         (acquire_fileio_fd): New function.
9556         (release_fileio_fd): Likewise.
9557         (fileio_fd_to_fh): New macro.
9558         (target_fileio_open): Wrap the file descriptor on success.
9559         (target_fileio_pwrite): Updated to use wrapped file descriptor.
9560         (target_fileio_pread): Likewise.
9561         (target_fileio_close): Likewise.
9562
9563 2015-03-24  Pedro Alves  <palves@redhat.com>
9564
9565         * thread.c (thread_apply_all_command): Take exited threads into
9566         account.
9567
9568 2015-03-24  Pedro Alves  <palves@redhat.com>
9569
9570         * infrun.c (resume, proceed): Mention
9571         switch_back_to_stepped_thread, not switch_back_to_stepping.
9572
9573 2015-03-24  Pedro Alves  <palves@redhat.com>
9574
9575         * infrun.c (user_visible_resume_ptid): Rewrite going from
9576         most-locked to unlocked instead of the opposite.  Move comment ...
9577         * infrun.h (user_visible_resume_ptid): ... here.
9578
9579 2015-03-24  Pedro Alves  <palves@redhat.com>
9580
9581         * linux-nat.c (linux_nat_resume): Output debug logs before trying
9582         to resume the event lwp.  Use the lwp's ptid instead of the passed
9583         in (maybe wildcard) ptid.
9584         (stop_wait_callback): Tweak debug log output.
9585         (check_stopped_by_breakpoint): Tweak debug log output.  Also dump
9586         TRAP_TRACE.
9587         (linux_nat_filter_event): In debug output, distinguish a
9588         resume_stop SIGSTOP from a delayed SIGSTOP.  Output debug logs
9589         before trying to resume the lwp.
9590
9591 2015-03-24  Joel Brobecker  <brobecker@adacore.com>
9592
9593         * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
9594         pointer indirection.
9595         * gdbtypes.c (get_dyn_prop): Adjust, following change above.
9596         (add_dyn_prop, copy_dynamic_prop_list): Likewise.
9597
9598 2015-03-24  Joel Brobecker  <brobecker@adacore.com>
9599
9600         * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
9601         Renames DYN_ATTR_DATA_LOCATION.
9602         (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
9603         DYN_ATTR_DATA_LOCATION.
9604         * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
9605         instead of DYN_ATTR_DATA_LOCATION.
9606
9607 2015-03-24  Pedro Alves  <palves@redhat.com>
9608
9609         * breakpoint.c (until_break_command): Adjust call to proceed.
9610         * gdbthread.h (struct thread_control_state) <stepping_command>:
9611         New field.
9612         * infcall.c (run_inferior_call): Adjust call to proceed.
9613         * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
9614         Adjust calls to proceed.
9615         (set_step_frame): Set the current thread's step_start_function
9616         here.
9617         (step_once): Adjust calls to proceed.
9618         (jump_command, signal_command, until_next_command)
9619         (finish_backward, finish_forward, proceed_after_attach_callback)
9620         (attach_command_post_wait): Adjust calls to proceed.
9621         * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
9622         (do_target_resume): New function, factored out from ...
9623         (resume): ... here.  Remove 'step' parameter.  Instead, check
9624         currently_stepping to determine whether the thread should be
9625         single-stepped.
9626         (proceed): Remove 'step' parameter and don't set the thread's
9627         step_start_function here.  Adjust call to 'resume'.
9628         (handle_inferior_event): Adjust calls to 'resume'.
9629         (switch_back_to_stepped_thread): Use do_target_resume instead of
9630         'resume'.
9631         (keep_going): Adjust calls to 'resume'.
9632         * infrun.h (proceed): Remove 'step' parameter.
9633         (resume): Likewise.
9634         * windows-nat.c (do_initial_windows_stuff): Adjust call to
9635         'resume'.
9636         * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
9637
9638 2015-03-24  Pedro Alves  <palves@redhat.com>
9639
9640         * gdbthread.h (struct thread_control_state) <stepping_command>:
9641         New field.
9642         * infcmd.c (step_once): Pass step=1 to clear_proceed_status.  Set
9643         the thread's stepping_command field.
9644         * infrun.c (resume): Check the thread's stepping_command flag to
9645         determine which threads should be resumed.  Rename 'entry_step'
9646         local to user_step.
9647         (clear_proceed_status_thread): Clear 'stepping_command'.
9648         (schedlock_applies): Change parameter type to struct thread_info
9649         pointer.  Adjust.
9650         (find_thread_needs_step_over): Remove 'step' parameter.  Adjust.
9651         (switch_back_to_stepped_thread): Adjust calls to
9652         'schedlock_applies'.
9653         (_initialize_infrun): Adjust "set scheduler-locking step" help.
9654
9655 2015-03-24  Pedro Alves  <palves@redhat.com>
9656
9657         * infrun.c (step_start_function): Delete and ...
9658         * gdbthread.h (struct thread_control_state) <step_start_function>:
9659         ... now a field here.
9660         * infrun.c (clear_proceed_status_thread): Clear the thread's
9661         step_start_function.
9662         (proceed, process_event_stop_test, print_stop_event): Adjust.
9663
9664 2015-03-24  Pedro Alves  <palves@redhat.com>
9665
9666         * infrun.c (proceed): No longer handle negative step.
9667
9668 2015-03-24  Gary Benson  <gbenson@redhat.com>
9669
9670         * nat/x86-linux.h (x86_linux_new_thread): New declaration.
9671         (x86_linux_prepare_to_resume): Likewise.
9672         * x86-linux-nat.c (x86_linux_new_thread):
9673         Moved to nat/x86-linux.c.
9674         (x86_linux_prepare_to_resume): Likewise.
9675         * nat/x86-linux.c (x86_linux_new_thread): New function.
9676         (x86_linux_prepare_to_resume): Likewise.
9677
9678 2015-03-24  Gary Benson  <gbenson@redhat.com>
9679
9680         * nat/x86-linux-dregs.h: New file.
9681         * nat/x86-linux-dregs.c: Likewise.
9682         * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
9683         (x86-linux-dregs.o): New rule.
9684         * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
9685         * config/i386/linux64.mh (NATDEPFILES): Likewise.
9686         * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
9687         (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
9688         (x86_linux_dr_get): Likewise.
9689         (x86_linux_dr_set): Likewise.
9690         (x86_linux_dr_get_addr): Likewise.
9691         (x86_linux_dr_get_control): Likewise.
9692         (x86_linux_dr_get_status): Likewise.
9693         (update_debug_registers_callback): Likewise.
9694         (x86_linux_dr_set_control): Likewise.
9695         (x86_linux_dr_set_addr): Likewise.
9696         (x86_linux_update_debug_registers): Likewise.
9697
9698 2015-03-24  Gary Benson  <gbenson@redhat.com>
9699
9700         * x86-linux-nat.c (x86_linux_update_debug_registers):
9701         New function, factored out from...
9702         (x86_linux_prepare_to_resume): ...this.
9703
9704 2015-03-24  Gary Benson  <gbenson@redhat.com>
9705
9706         * x86-linux-nat.c (x86_linux_dr_get): Update comments.
9707         (x86_linux_dr_set): Likewise.
9708         (x86_linux_dr_get_addr): Likewise.
9709         (x86_linux_dr_get_control): Likewise.
9710         (x86_linux_dr_get_status): Likewise.
9711         (update_debug_registers_callback): Likewise.
9712         (x86_linux_dr_set_control): Likewise.
9713         (x86_linux_dr_set_addr): Likewise.
9714         (x86_linux_prepare_to_resume): Likewise.
9715         (x86_linux_new_thread): Likewise.
9716
9717 2015-03-24  Gary Benson  <gbenson@redhat.com>
9718
9719         * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
9720         (x86_linux_new_thread): Rename argument.
9721
9722 2015-03-24  Gary Benson  <gbenson@redhat.com>
9723
9724         * nat/x86-linux.h: New file.
9725         * nat/x86-linux.c: Likewise.
9726         * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
9727         (x86-linux.o): New rule.
9728         * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
9729         * config/i386/linux64.mh (NATDEPFILES): Likewise.
9730         * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
9731         (lwp_set_arch_private_info): New declaration.
9732         (lwp_arch_private_info): Likewise.
9733         * linux-nat.c (lwp_set_arch_private_info): New function.
9734         (lwp_arch_private_info): Likewise.
9735         * x86-linux-nat.c: Include nat/x86-linux.h.
9736         (arch_lwp_info): Removed structure.
9737         (update_debug_registers_callback):
9738         Use lwp_set_debug_registers_changed.
9739         (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
9740         and lwp_set_debug_registers_changed.
9741         (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
9742
9743 2015-03-24  Gary Benson  <gbenson@redhat.com>
9744
9745         * nat/linux-nat.h (ptid_of_lwp): New declaration.
9746         (lwp_is_stopped): Likewise.
9747         (lwp_stop_reason): Likewise.
9748         * linux-nat.c (ptid_of_lwp): New function.
9749         (lwp_is_stopped): Likewise.
9750         (lwp_is_stopped_by_watchpoint): Likewise.
9751         * x86-linux-nat.c (update_debug_registers_callback):
9752         Use lwp_is_stopped.
9753         (x86_linux_prepare_to_resume): Use ptid_of_lwp and
9754         lwp_stop_reason.
9755
9756 2015-03-24  Gary Benson  <gbenson@redhat.com>
9757
9758         * linux-nat.h (linux_stop_lwp): Move declaration to...
9759         * nat/linux-nat.h (linux_stop_lwp): New declaration.
9760
9761 2015-03-24  Gary Benson  <gbenson@redhat.com>
9762
9763         * linux-nat.h: Include nat/linux-nat.h.
9764         (iterate_over_lwps): Move declaration to nat/linux-nat.h.
9765         * nat/linux-nat.h (struct lwp_info): New forward declaration.
9766         (iterate_over_lwps_ftype): New typedef.
9767         (iterate_over_lwps): New declaration.
9768         * linux-nat.h (iterate_over_lwps): Update comment.  Use
9769         iterate_over_lwps_ftype.  Update callback return value check.
9770
9771 2015-03-24  Gary Benson  <gbenson@redhat.com>
9772
9773         * x86-nat.h (x86_debug_reg_state): Move declaration to...
9774         * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
9775
9776 2015-03-24  Gary Benson  <gbenson@redhat.com>
9777
9778         * nat/linux-nat.h (current_lwp_ptid): New declaration.
9779         * linux-nat.c (current_lwp_ptid): New function.
9780         * x86-linux-nat.c: Include nat/linux-nat.h.
9781         (x86_linux_dr_get_addr): Use current_lwp_ptid.
9782         (x86_linux_dr_get_control): Likewise.
9783         (x86_linux_dr_get_status): Likewise.
9784         (x86_linux_dr_set_control): Likewise.
9785         (x86_linux_dr_set_addr): Likewise.
9786
9787 2015-03-24  Antoine Tremblay  <antoine.tremblay@ericsson.com>
9788
9789         PR breakpoints/16466
9790         * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
9791
9792 2015-03-23  Joel Brobecker  <brobecker@adacore.com>
9793
9794         * ser-mingw.c (ser_windows_setparity): Fix indentation.
9795         * ser-unix.c (hardwire_setparity): Likewise.
9796
9797 2015-03-23  Yurij Grechishhev  <yurij.grechishhev@gmail.com>
9798
9799         * NEWS: Mention set/show serial parity command.
9800         * monitor.c (monitor_open): Call serial_setparity.
9801         * remote.c (remote_open_1): Likewise.
9802         * ser-base.c (ser_base_serparity): New function.
9803         * ser-base.h (ser_base_setparity): Add  declaration.
9804         * ser-go32.c (dos_ops): Set "setparity" field.
9805         * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
9806         state.Parity.
9807         (ser_windows_setparity): New function.
9808         (hardwire_ops): Add ser_windows_setparity.
9809         (tty_ops): Add NULL for setparity field.
9810         (pipe_ops): Add ser_base_setparity.
9811         (tcp_ops): Likewise.
9812         * ser-pipe.c (pipe_ops): Likewise.
9813         * ser-tcp.c (tcp_ops): Likewise.
9814         * ser-unix.c (hardwire_setparity): Add declaration.
9815         (hardwire_raw): Don't reset PARENB flag.
9816         (hardwire_setparity): New function.
9817         (hardwire_ops): Add hardwire_setparity.
9818         * serial.c (serial_setparity): New function.
9819         (serial_parity): New global.
9820         (parity_none, parity_odd, parity_even, parity_enums, parity):
9821         New static globals.
9822         (set_parity): New function.
9823         (_initialize_serial): Add set/show serial parity commands.
9824         * serial.h (GDBPARITY_NONE): Define.
9825         (GDBPARITY_ODD): Define.
9826         (GDBPARITY_EVEN): Define.
9827         (serial_setparity) Add declaration.
9828         (struct serial_ops): Add setparity field.
9829         * target.h (serial_parity): Add declaration.
9830
9831 2015-03-23  Keith Seitz  <keiths@redhat.com>
9832
9833         * linespec.c (linespec_lexer_lex_keyword): Update comment.
9834
9835 2015-03-23  Keith Seitz  <keiths@redhat.com>
9836
9837         * breakpoint.c (parse_breakpoint_sals): Use
9838         linespec_lexer_lex_keyword to ascertain if the user specified
9839         a NULL location.
9840         * linespec.c [IF_KEYWORD_INDEX]: Define.
9841         (linespec_lexer_lex_keyword): Export.
9842         (struct ls_parser) <keyword_ok>: Remove.
9843         A keyword is only a keyword if not followed by another keyword.
9844         (linespec_lexer_lex_one): Remove keyword_ok handling.
9845         Add comment explaining why the parsing stream is not advanced
9846         when a keyword is seen.
9847         (parse_linespec): Remove parser->keyword_ok.
9848         * linespec.h (linespec_lexer_lex_keyword): Add declaration.
9849
9850 2015-03-23  Keith Seitz  <keiths@redhat.com>
9851
9852         PR gdb/18021
9853         * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
9854         if we find a static method with DW_AT_vtable_elem_location.
9855
9856 2015-03-21  Eli Zaretskii  <eliz@gnu.org>
9857
9858         * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
9859         before the second loop, to avoid undefined behavior.  Reported by
9860         Anton Blanchard <anton@samba.org>.
9861
9862 2015-03-20  Keven Boell  <keven.boell@intel.com>
9863
9864         * gdbtypes.c (resolve_dynamic_type_internal): Adapt
9865         data_location usage to linked list.
9866         (resolve_dynamic_type_internal): Adapt data_location to
9867         linked list.
9868         (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
9869         (copy_type_recursive, copy_type): Add copy of linked list.
9870         * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
9871         (struct dynamic_prop_list): New struct.
9872         * dwarf2read.c (set_die_type): Set data_location data.
9873
9874 2015-03-20  Pedro Alves  <palves@redhat.com>
9875
9876         * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
9877         inner block and make it const.
9878         * machoread.c (get_archive_prefix_len): Make "lparen" const.
9879
9880 2015-03-20  Pedro Alves  <palves@redhat.com>
9881
9882         * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
9883         * breakpoint.h (set_breakpoint_condition): Update declaration.
9884
9885 2015-03-20  Pedro Alves  <palves@redhat.com>
9886
9887         * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
9888
9889 2015-03-20  Pedro Alves  <palves@redhat.com>
9890
9891         * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
9892
9893 2015-03-20  Pedro Alves  <palves@redhat.com>
9894
9895         * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
9896
9897 2015-03-20  Pedro Alves  <palves@redhat.com>
9898
9899         * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
9900         (nto_init_solib_absolute_prefix): Likewise.
9901
9902 2015-03-20  Pedro Alves  <palves@redhat.com>
9903
9904         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
9905         * spu-tdep.c (spu_gdbarch_init): Make "name" const.
9906
9907 2015-03-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
9908
9909         * config/djgpp/README: Remove gdb.hp.
9910
9911 2015-03-20  Yao Qi  <yao.qi@linaro.org>
9912
9913         * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
9914         set_gdbarch_cannot_step_breakpoint.
9915
9916 2015-03-19  Pedro Alves  <palves@redhat.com>
9917
9918         * linux-nat.c (linux_resume_one_lwp): Rename to ...
9919         (linux_resume_one_lwp_throw): ... this.  Don't handle ESRCH here,
9920         instead call perror_with_name.
9921         (check_ptrace_stopped_lwp_gone): New function.
9922         (linux_resume_one_lwp): Reimplement as wrapper around
9923         linux_resume_one_lwp_throw that swallows errors if the LWP is
9924         gone.
9925         (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
9926         swallows errors if the LWP is gone.  Use
9927         linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
9928
9929 2015-03-19  Pedro Alves  <palves@redhat.com>
9930
9931         * linux-nat.c (status_callback): Return early if the LWP has no
9932         status pending.
9933
9934 2015-03-19  Pedro Alves  <palves@redhat.com>
9935
9936         * linux-nat.c (select_event_lwp_callback): Update comment to no
9937         longer mention SIGTRAP.
9938
9939 2015-03-18  Tristan Gingold  <gingold@adacore.com>
9940
9941         * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
9942         redirection code to ...
9943         (amd64_windows_frame_decode_insns): ... Here.  Fix in prologue
9944         checks.  Fix SAVE_NONVOL operations.  Add debug code and comments.
9945
9946 2015-03-18  Gary Benson <gbenson@redhat.com>
9947
9948         (remote_protocol_features): Remove the "vFile:fstat" feature.
9949         (remote_hostio_fstat): Probe for "vFile:fstat" support.
9950
9951 2015-03-11  Yao Qi  <yao.qi@linaro.org>
9952
9953         PR tdep/18107
9954         * aarch64-linux-tdep.c: Include xml-syscall.h
9955         (aarch64_linux_get_syscall_number): New function.
9956         (aarch64_linux_init_abi): Call
9957         set_gdbarch_get_syscall_number.
9958         * syscalls/aarch64-linux.xml: New file.
9959
9960 2015-03-17  Yurij Grechishhev  <yurij.grechishhev@gmail.com>
9961
9962         * ser-base.h (ser_base_setstopbits): Change second argument name
9963         from "rate" to "num".
9964
9965 2015-03-17  Gary Benson <gbenson@redhat.com>
9966             Luke Allardyce <lukeallardyce@gmail.com>
9967
9968         PR gdb/18131
9969         * common/common-remote-fileio.h (sys/stat.h): New include.
9970         (stuct stat): Remove forward declaration.
9971
9972 2015-03-16  John Baldwin  <jhb@FreeBSD.org>
9973
9974         * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
9975         before writing core register notes.
9976
9977 2015-03-16  Yuanhui Zhang  <asmwarrior@gmail.com>
9978             Pedro Alves  <palves@redhat.com>
9979
9980         * gdb_curses.h (tgetnum): Mark with EXTERN_C.
9981         * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
9982         (tgoto): Wrap with extern "C".
9983
9984 2015-03-16  Pedro Alves  <palves@redhat.com>
9985             Yuanhui Zhang  <asmwarrior@gmail.com>
9986
9987         * stub-termcap.c (tputs): Change prototype.
9988
9989 2015-03-16  Yuanhui Zhang  <asmwarrior@gmail.com>
9990             Pedro Alves  <palves@redhat.com>
9991
9992         * windows-nat.c (struct thread_info_struct): Rename to ...
9993         (struct windows_thread_info_struct): ... this.
9994         (thread_info): Rename to ...
9995         (windows_thread_info): ... this.
9996         All users updated.
9997
9998 2015-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
9999             Pedro Alves  <palves@redhat.com>
10000
10001         * NEWS: New Removed targets and native configurations.
10002
10003 2015-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
10004
10005         Remove HPUX.
10006         * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
10007         (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
10008         (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
10009         ia64-hpux-tdep.h, solib-ia64-hpux.h.
10010         (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
10011         ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
10012         * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
10013         hppa-hpux-tdep.c.
10014         * config/ia64/hpux.mh: Remove file.
10015         * config/pa/hpux.mh: Remove file.
10016         * configure: Rebuilt.
10017         * configure.ac (dlgetmodinfo, somread.o): Remove.
10018         * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
10019         (ia64-*-hpux*): Remove its float format exception.
10020         * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
10021         * hppa-hpux-nat.c: Remove file.
10022         * hppa-hpux-tdep.c: Remove file.
10023         * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
10024         Move them here from hppa-tdep.h
10025         (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
10026         (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
10027         * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
10028         Move them to hppa-tdep.c.
10029         (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
10030         declarations.
10031         * ia64-hpux-nat.c: Remove file.
10032         * ia64-hpux-tdep.c: Remove file.
10033         * ia64-hpux-tdep.h: Remove file.
10034         * inf-ttrace.c: Remove file.
10035         * inf-ttrace.h: Remove file.
10036         * solib-ia64-hpux.c: Remove file.
10037         * solib-ia64-hpux.h: Remove file.
10038         * solib-pa64.c: Remove file.
10039         * solib-pa64.h: Remove file.
10040         * solib-som.c: Remove file.
10041         * solib-som.h: Remove file.
10042         * somread.c: Remove file.
10043
10044 2015-03-13  John Baldwin  <jhb@FreeBSD.org>
10045
10046         * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
10047         * config.in: Regenerate.
10048         * configure: Regenerate.
10049         * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
10050         define.
10051         (fbsd_find_memory_regions): Use kinfo_getvmmap to
10052         enumerate memory regions if present.
10053
10054 2015-03-13  John Baldwin  <jhb@FreeBSD.org>
10055
10056         * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
10057         * i386fbsd-tdep.c: Fix style in various gdb_static_assert
10058         expressions.
10059         (i386fbsd_sigtramp_p): Likewise.
10060
10061 2015-03-12  John Baldwin  <jhb@FreeBSD.org>
10062
10063         * MAINTAINERS (Write After Approval): Add John Baldwin.
10064
10065 2015-03-12  Gary Benson <gbenson@redhat.com>
10066
10067         * solib.c (_initialize_solib): Make "set/show sysroot" use
10068         add_setshow_optional_filename_cmd so it can be restored to
10069         empty after being set.
10070
10071 2015-03-11  Sergio Durigan Junior  <sergiodj@redhat.com>
10072
10073         * Makefile.in (SFILES): New source break-catch-syscall.c.
10074         (COMMON_OBS): New object break-catch-syscall.o.
10075         * break-catch-syscall.c: New file.
10076         * breakpoint.c: Remove inclusion of "xml-syscall.h".
10077         (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
10078         (struct syscall_catchpoint): Likewise.
10079         (dtor_catch_syscall): Likewise.
10080         (catch_syscall_inferior_data): Likewise.
10081         (struct catch_syscall_inferior_data): Likewise.
10082         (get_catch_syscall_inferior_data): Likewise.
10083         (catch_syscall_inferior_data_cleanup): Likewise.
10084         (insert_catch_syscall): Likewise.
10085         (remove_catch_syscall): Likewise.
10086         (breakpoint_hit_catch_syscall): Likewise.
10087         (print_it_catch_syscall): Likewise.
10088         (print_one_catch_syscall): Likewise.
10089         (print_mention_catch_syscall): Likewise.
10090         (print_recreate_catch_syscall): Likewise.
10091         (catch_syscall_breakpoint_ops): Likewise.
10092         (syscall_catchpoint_p): Likewise.
10093         (create_syscall_event_catchpoint): Likewise.
10094         (catch_syscall_split_args): Likewise.
10095         (catch_syscall_command_1): Likewise.
10096         (is_syscall_catchpoint_enabled): Likewise.
10097         (catch_syscall_enabled): Likewise.
10098         (catching_syscall_number): Likewise.
10099         (catch_syscall_completer): Likewise.
10100         (clear_syscall_counts): Likewise.
10101         (initialize_breakpoint_ops): Move initialization of syscall
10102         catchpoints to break-catch-syscall.c.
10103         (_initialize_breakpoint): Move code related to syscall catchpoints
10104         to break-catch-syscall.c.
10105
10106 2015-03-11  Sergio Durigan Junior  <sergiodj@redhat.com>
10107
10108         * breakpoint.c (breakpoint_find_if): New function.
10109         * breakpoint.h (breakpoint_find_if): New prototype.
10110
10111 2015-03-11  Gary Benson <gbenson@redhat.com>
10112
10113         * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
10114         * remote-fileio.c (remote_fileio_to_host_uint): New function.
10115         (remote_fileio_to_host_ulong): Likewise.
10116         (remote_fileio_to_host_mode): Likewise.
10117         (remote_fileio_to_host_time): Likewise.
10118         (remote_fileio_to_host_stat): Likewise.
10119         * remote.c (PACKET_vFile_fstat): New enum value.
10120         (remote_protocol_features): Register the "vFile:fstat" feature.
10121         (remote_hostio_fstat): New function.
10122         (remote_bfd_iovec_stat): Use the above.
10123         (_initialize_remote): Register new "set/show remote
10124         hostio-fstat-packet" command.
10125         * symfile.c (separate_debug_file_exists): Update comment.
10126         * NEWS: Announce new vFile:fstat packet.
10127
10128 2015-03-11  Gary Benson <gbenson@redhat.com>
10129
10130         * common/common-remote-fileio.h: New file.
10131         * common/common-remote-fileio.c: Likewise.
10132         * Makefile.in (SFILES): Add common/common-remote-fileio.c.
10133         (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
10134         (COMMON_OBS): Add common-remote-fileio.o.
10135         (common-remote-fileio.o): New rule.
10136         * remote-fileio.h (common-remote-fileio.h): New include.
10137         * remote-fileio.c (gdb/fileio.h): Do not include.
10138         (remote_fileio_to_be): Moved to common-remote-fileio.h.
10139         (remote_fileio_to_fio_uint): Likewise.
10140         (remote_fileio_to_fio_time): Likewise.
10141         (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
10142         (remote_fileio_to_fio_mode): Likewise.
10143         (remote_fileio_to_fio_ulong): Likewise.
10144         (remote_fileio_to_fio_stat): Likewise.
10145
10146 2015-03-11  Andy Wingo  <wingo@igalia.com>
10147
10148         * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
10149         we were checking the cached type, not the cached dynamic type.
10150
10151 2015-03-11  Andy Wingo  <wingo@igalia.com>
10152
10153         * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
10154         other strings, as these are on the GC'd heap, and will be
10155         collected along with the smob.
10156
10157 2015-03-11  Andy Wingo  <wingo@igalia.com>
10158
10159         * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
10160         (objfile_functions): Bind gdbscm_objfile_progspace to
10161         objfile-progspace.
10162         * guile/lib/gdb.scm: Add objfile-progspace to exports.
10163
10164 2015-03-11  Andy Wingo  <wingo@igalia.com>
10165
10166         * guile/guile.c (_initialize_guile): Disable automatic
10167         finalization, if Guile offers us that possibility.
10168         * guile/guile.c (call_initialize_gdb_module):
10169         * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
10170         finalizers in appropriate places.
10171         * configure.ac (AC_TRY_LIBGUILE): Add a check for
10172         scm_set_automatic_finalization_enabled.
10173         * configure: Regenerated.
10174
10175 2015-03-11  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10176
10177         * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
10178         SAL, if possible.
10179
10180 2015-03-11  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10181
10182         * s390-linux-nat.c (struct arch_lwp_info): New.
10183         (s390_fix_watch_points): Rename to...
10184         (s390_prepare_to_resume): ...this.  Skip the PER info update
10185         unless the watch points have changed.
10186         (s390_refresh_per_info, s390_new_thread): New functions.
10187         (s390_insert_watchpoint): Call s390_refresh_per_info instead of
10188         s390_fix_watch_points.
10189         (s390_remove_watchpoint): Likewise.
10190         (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
10191         Register s390_prepare_to_resume.
10192
10193 2015-03-09  Pedro Alves  <palves@redhat.com>
10194
10195         Revert:
10196         2015-03-07  Pedro Alves  <palves@redhat.com>
10197         * common/gdb_socket.h: New file.
10198         * ser-tcp.c: Include gdb_socket.h.  Don't include netinet/in.h nor
10199         sys/socket.h.
10200         (net_open): Use union gdb_sockaddr_u.
10201
10202 2015-03-07  Pedro Alves  <palves@redhat.com>
10203
10204         * configure.ac (build_warnings): Move -Wmissing-prototypes
10205         -Wdeclaration-after-statement -Wmissing-parameter-type
10206         -Wold-style-declaration -Wold-style-definition to the C-specific
10207         set.
10208         * configure: Regenerate.
10209
10210 2015-03-07  Pedro Alves  <palves@redhat.com>
10211
10212         * common/gdb_socket.h: New file.
10213         * ser-tcp.c: Include gdb_socket.h.  Don't include netinet/in.h nor
10214         sys/socket.h.
10215         (net_open): Use union gdb_sockaddr_u.
10216
10217 2015-03-07  Pedro Alves  <palves@redhat.com>
10218
10219         * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
10220         (exceptions_state_mc_action_iter)
10221         (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10222         Don't define.
10223         [__cplusplus] (try_scope_depth): New global.
10224         [__cplusplus] (exception_try_scope_entry)
10225         (exception_try_scope_exit, gdb_exception_sliced_copy)
10226         (exception_rethrow): New functions.
10227         (throw_exception): In C++ mode, throw
10228         gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
10229         gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
10230         (throw_it): In C++ mode, use try_scope_depth.
10231         * common/common-exceptions.h [!__cplusplus]
10232         (exceptions_state_mc_action_iter)
10233         (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10234         Don't declare.
10235         [__cplusplus] (exception_try_scope_entry)
10236         (exception_try_scope_exit, exception_rethrow): Declare.
10237         [__cplusplus] (struct exception_try_scope): New struct.
10238         [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
10239         C++ exceptions.
10240         (struct gdb_exception_RETURN_MASK_ALL)
10241         (struct gdb_exception_RETURN_MASK_ERROR)
10242         (struct gdb_exception_RETURN_MASK_QUIT): New types.
10243
10244 2015-03-07  Pedro Alves  <palves@redhat.com>
10245
10246         * main.c (handle_command_errors): Remove volatile qualifier from
10247         parameter.
10248
10249 2015-03-07  Pedro Alves  <palves@redhat.com>
10250
10251         * breakpoint.c (save_breakpoints): Adjust to avoid code between
10252         TRY and CATCH.
10253         * gdbtypes.c (safe_parse_type): Remove empty line.
10254         (types_deeply_equal):
10255         * guile/scm-frame.c (gdbscm_frame_name):
10256         * linux-thread-db.c (find_new_threads_once):
10257         * python/py-breakpoint.c (bppy_get_commands):
10258         * record-btrace.c (record_btrace_insert_breakpoint)
10259         (record_btrace_remove_breakpoint, record_btrace_start_replaying)
10260         (record_btrace_start_replaying): Adjust to avoid code between TRY
10261         and CATCH.
10262
10263 2015-03-07  Pedro Alves  <palves@redhat.com>
10264
10265         * common/common-exceptions.c (struct catcher) <exception>: No
10266         longer a pointer to volatile exception.  Now an exception value.
10267         <mask>: Delete field.
10268         (exceptions_state_mc_init): Remove all parameters.  Adjust.
10269         (exceptions_state_mc): No longer pop the catcher here.
10270         (exceptions_state_mc_catch): New function.
10271         (throw_exception): Adjust.
10272         * common/common-exceptions.h (exceptions_state_mc_init): Remove
10273         all parameters.
10274         (exceptions_state_mc_catch): Declare.
10275         (TRY_CATCH): Rename to ...
10276         (TRY): ... this.  Remove EXCEPTION and MASK parameters.
10277         (CATCH, END_CATCH): New.
10278         All callers adjusted.
10279
10280 2015-03-07  Tom Tromey  <tromey@redhat.com>
10281
10282         * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
10283
10284 2015-03-07  Pedro Alves  <palves@redhat.com>
10285
10286         * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10287         (amd64_epilogue_frame_cache): Normal exception handling code.
10288         * break-catch-throw.c (check_status_exception_catchpoint)
10289         (re_set_exception_catchpoint): Ditto.
10290         * cli/cli-interp.c (safe_execute_command):
10291         * cli/cli-script.c (script_from_file): Ditto.
10292         * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
10293         Ditto.
10294         * compile/compile-object-run.c (compile_object_run): Ditto.
10295         * cp-abi.c (baseclass_offset): Ditto.
10296         * cp-valprint.c (cp_print_value): Ditto.
10297         * exceptions.c (catch_exceptions_with_msg):
10298         * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
10299         * frame.c (get_frame_address_in_block_if_available): Ditto.
10300         * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10301         (i386_sigtramp_frame_cache): Ditto.
10302         * infcmd.c (post_create_inferior): Ditto.
10303         * linespec.c (parse_linespec, find_linespec_symbols):
10304         * p-valprint.c (pascal_object_print_value): Ditto.
10305         * parse.c (parse_expression_for_completion): Ditto.
10306         * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
10307         * remote.c (remote_get_noisy_reply): Ditto.
10308         * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
10309         * solib-svr4.c (solib_svr4_r_map): Ditto.
10310
10311 2015-03-06  Gary Benson  <gbenson@redhat.com>
10312
10313         * common/common-utils.h (startswith): New inline function.
10314         All places where this logic was used updated to use the above.
10315
10316 2015-03-05  Pedro Alves  <palves@redhat.com>
10317
10318         PR gdb/18002
10319         * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
10320         after reading the breakpoint's shadow memory.
10321
10322 2015-03-05  Mark Kettenis  <kettenis@gnu.org>
10323
10324         * hppabsd-nat.c: Remove file.
10325         * hppaobsd-nat.c: New file.
10326         * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c.  Add
10327         hppaobsd-nat.c.
10328         * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
10329         hppaobsd-nat.o.
10330
10331 2015-03-04  Pedro Alves  <palves@redhat.com>
10332
10333         * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
10334         (target_decr_pc_after_break): Delete declaration.
10335         * target.c (default_target_decr_pc_after_break)
10336         (target_decr_pc_after_break): Delete.
10337         * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
10338         gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
10339         * linux-thread-db.c (check_event): Likewise.
10340         * infrun.c (adjust_pc_after_break): Likewise.
10341         * darwin-nat.c (cancel_breakpoint): Likewise.
10342         * aix-thread.c (aix_thread_wait): Likewise.
10343         * target-delegates.c: Regenerate.
10344
10345 2015-03-04  Pedro Alves  <palves@redhat.com>
10346
10347         * linux-nat.c (save_sigtrap): Check for breakpoints before
10348         checking watchpoints.
10349         (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
10350         breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
10351         (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
10352         a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
10353         (linux_nat_stopped_by_sw_breakpoint)
10354         (linux_nat_supports_stopped_by_sw_breakpoint)
10355         (linux_nat_stopped_by_hw_breakpoint)
10356         (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
10357         (linux_nat_wait_1): Don't re-increment the PC if relying on
10358         SIGTRAP's siginfo->si_code.
10359         (linux_nat_add_target): Install new target methods.
10360         * linux-thread-db.c (check_event): Don't account for breakpoint PC
10361         offset if the target already adjusted the PC.
10362         * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
10363         (GDB_ARCH_TRAP_BRKPT): New.
10364         (TRAP_HWBKPT): Define if not already defined.
10365
10366 2015-03-04  Pedro Alves  <palves@redhat.com>
10367
10368         * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
10369         * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
10370         Delete field.
10371         <stop_reason>: New field.
10372         (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
10373         (packet_set_cmd_state): New function.
10374         (remote_protocol_features): Register the "swbreak" and "hwbreak"
10375         features.
10376         (remote_query_supported): If not disabled with the corresponding
10377         "set remote foo-packet" command, report support for the swbreak
10378         and hwbreak features.
10379         (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
10380         field.
10381         <stop_reason>: New field.
10382         (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
10383         (remote_wait_as): Adjust.
10384         (remote_stopped_by_sw_breakpoint)
10385         (remote_supports_stopped_by_sw_breakpoint)
10386         (remote_stopped_by_hw_breakpoint)
10387         (remote_supports_stopped_by_hw_breakpoint): New functions.
10388         (remote_stopped_by_watchpoint): New function.
10389         (init_remote_ops): Install them.
10390         (_initialize_remote): Register new "set/show remote
10391         swbreak-feature-packet" and "set/show remote
10392         swbreak-feature-packet" commands.
10393
10394 2015-03-04  Pedro Alves  <palves@redhat.com>
10395
10396         * btrace.h: Include target/waitstatus.h.
10397         (struct btrace_thread_info) <stop_reason>: New field.
10398         * record-btrace.c (record_btrace_step_thread): Use
10399         record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10400         (record_btrace_decr_pc_after_break): Delete.
10401         (record_btrace_stopped_by_sw_breakpoint)
10402         (record_btrace_supports_stopped_by_sw_breakpoint)
10403         (record_btrace_stopped_by_hw_breakpoint)
10404         (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
10405         (init_record_btrace_ops): Install them.
10406         * record-full.c (record_full_hw_watchpoint): Delete and replace
10407         with ...
10408         (record_full_stop_reason): ... this throughout.
10409         (record_full_exec_insn): Adjust.
10410         (record_full_wait_1): Adjust.  No longer re-increment the PC.
10411         (record_full_wait_1): Adjust.  Use
10412         record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10413         (record_full_stopped_by_watchpoint): Adjust.
10414         (record_full_stopped_by_sw_breakpoint)
10415         (record_full_supports_stopped_by_sw_breakpoint)
10416         (record_full_supports_stopped_by_sw_breakpoint)
10417         (record_full_stopped_by_hw_breakpoint)
10418         (record_full_supports_stopped_by_hw_breakpoint): New functions.
10419         (init_record_full_ops, init_record_full_core_ops): Install them.
10420         * record.c (record_check_stopped_by_breakpoint): New function.
10421         * record.h: Include target/waitstatus.h.
10422         (record_check_stopped_by_breakpoint): New declaration.
10423
10424 2015-03-04  Pedro Alves  <palves@redhat.com>
10425
10426         enum lwp_stop_reason -> enum target_stop_reason
10427         * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
10428         (linux_nat_stopped_by_watchpoint, status_callback)
10429         (linux_nat_wait_1): Adjust.
10430         * linux-nat.h (enum lwp_stop_reason): Delete.
10431         (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
10432         * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
10433         * target/waitstatus.h (enum target_stop_reason): New.
10434
10435 2015-03-04  Pedro Alves  <palves@redhat.com>
10436
10437         * breakpoint.c (need_moribund_for_location_type): New function.
10438         (bpstat_stop_status): Don't skipping checking moribund locations
10439         of breakpoint types which the target tell caused a stop.
10440         (program_breakpoint_here_p): New function, factored out from ...
10441         (bp_loc_is_permanent): ... this.
10442         (update_global_location_list): Don't create a moribund location if
10443         the target supports reporting stops of the type of the removed
10444         breakpoint.
10445         * breakpoint.h (program_breakpoint_here_p): New declaration.
10446         * infrun.c (adjust_pc_after_break): Return early if the target has
10447         already adjusted the PC.  Add comments.
10448         (handle_signal_stop): If nothing explains a signal, and the target
10449         tells us the stop was caused by a software breakpoint, check if
10450         there's a breakpoint instruction in the memory.  If so, adjust the
10451         PC before presenting the stop to the user.  Otherwise, ignore the
10452         trap.  If nothing explains a signal, and the target tells us the
10453         stop was caused by a hardware breakpoint, ignore the trap.
10454         * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
10455         to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
10456         to_supports_stopped_by_hw_breakpoint>: New fields.
10457         (target_stopped_by_sw_breakpoint)
10458         (target_supports_stopped_by_sw_breakpoint)
10459         (target_stopped_by_hw_breakpoint)
10460         (target_supports_stopped_by_hw_breakpoint): Define.
10461         * target-delegates.c: Regenerate.
10462
10463 2015-03-04  Pedro Alves  <palves@redhat.com>
10464
10465         * infrun.c (follow_fork_inferior): Use the whole of the
10466         inferior_ptid and pending_follow.related_pid ptids instead of
10467         building ptids from the process components.  Adjust verbose output
10468         to use target_pid_to_str.
10469         * linux-nat.c (linux_child_follow_fork): Use the whole of the
10470         inferior_ptid and pending_follow.related_pid ptids instead of
10471         building ptids from the process components.
10472
10473 2015-03-04  Mark Kettenis  <kettenis@gnu.org>
10474
10475         * inf-ptrace.c [PT_GET_PROCESS_STATE]
10476         (inf_ptrace_insert_fork_catchpoint): New function.
10477         (inf_ptrace_remove_fork_catchpoint): New function.
10478         (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
10479
10480 2015-03-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10481
10482         * s390-linux-tdep.c (s390_register_name): Return empty string
10483         instead of NULL for registers that shouldn't be visible.
10484
10485 2015-03-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10486
10487         * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
10488         XML file for 64-bit targets.
10489
10490 2015-03-03  Simon Marchi  <simon.marchi@ericsson.com>
10491
10492         * target.h (find_default_create_inferior): Remove declaration.
10493         (find_default_attach): Likewise.
10494
10495 2015-03-03  Pedro Alves  <palves@redhat.com>
10496
10497         * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
10498         Use ptid_get_pid to get the overall process id when resuming all
10499         threads.
10500
10501 2015-03-03  Pedro Alves  <palves@redhat.com>
10502
10503         * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
10504         the lwp field of ptid.  Pass the full ptid to get_thread_regcache.
10505         * inf-ptrace.c (get_ptrace_pid): New function.
10506         (inf_ptrace_resume): Use it.
10507         * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
10508         to the lower layer.
10509
10510 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
10511
10512         * nat/linux-btrace.c: Include sys/utsname.h.
10513         (linux_determine_kernel_ptr_bits): New.
10514         (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
10515         * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
10516         ptr_bits.
10517
10518 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
10519
10520         * btrace.c (ftrace_update_function): Treat return as tailcall for
10521         "_dl_runtime_resolve".
10522
10523 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
10524
10525         * btrace.h (btrace_function) <lbegin, lend>: Remove.
10526         * btrace.c (ftrace_debug): Do not print the line range.
10527         (ftrace_skip_file, ftrace_update_lines): Remove.
10528         (ftrace_new_function): Remove lbegin and lend initialization.
10529         (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
10530         * record-btrace.c (btrace_compute_src_line_range): New.
10531         (btrace_call_history_src_line): Call btrace_compute_src_line_range.
10532
10533 2015-03-02  Pedro Alves  <palves@redhat.com>
10534
10535         * infrun.c (follow_exec): Delete all threads of the process except
10536         the event thread.  Extended comments.
10537
10538 2015-03-02  Joel Brobecker  <brobecker@adacore.com>
10539
10540         * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
10541
10542 2015-03-02  Joel Brobecker  <brobecker@adacore.com>
10543
10544         * utils.h: Remove <stdbool.h> #include.
10545         (producer_is_gcc): Change return type to "int".
10546         * utils.c (producer_is_gcc): Change return type to int.
10547         Return 1 instead of true, and 0 instead of false.
10548         Adjust function documentation accordingly.
10549
10550 2015-03-02  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10551
10552         * s390-linux-nat.c (have_regset_vxrs): New static variable.
10553         (s390_linux_fetch_inferior_registers): Handle vector registers, if
10554         present.
10555         (s390_linux_store_inferior_registers): Likewise.
10556         (s390_get_hwcap): Remove function.  Embed its logic...
10557         (s390_read_description): ...here.  Yield a target description with
10558         vector registers if applicable.
10559         * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
10560         "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
10561         "features/s390x-tevx-linux64.c".
10562         (struct gdbarch_tdep) <v0_full_regnum>: New field.
10563         (s390_dwarf_regmap): Add vector registers.  Remove bogus entries
10564         for "GNU/Linux-specific registers".
10565         (s390_dwarf_reg_r0l): New enum value.
10566         (s390_dwarf_reg_to_regnum): Support vector registers.
10567         (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
10568         of GPR lower halves.
10569         (regnum_is_vxr_full): New function.
10570         (s390_register_name): New function.
10571         (s390_pseudo_register_name): Handle v0-v15, which are composed of
10572         f0-f15 and v0l-v15l.
10573         (s390_pseudo_register_type): Likewise.
10574         (s390_pseudo_register_read): Likewise.
10575         (s390_pseudo_register_write): Likewise.
10576         (s390_value_from_register): Account for the fact that values are
10577         placed left-justified in vector registers.
10578         (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
10579         the vector reggroup and omit them from the general reggroup.
10580         (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
10581         (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
10582         (s390_iterate_over_regset_sections): Add iterations for the two
10583         new vector regsets.
10584         (s390_core_read_description): Yield a target description with
10585         vector registers if applicable.
10586         (s390_gdbarch_init): Handle target descriptions with vector
10587         registers.  Add "register_name" gdbarch method.
10588         (_initialize_s390_tdep): Call new tdesc initialization functions.
10589         * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
10590         (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
10591         (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
10592         (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
10593         (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
10594         (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
10595         (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
10596         (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
10597         (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
10598         (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
10599         (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
10600         (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
10601         (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
10602         (S390_NUM_REGS): Adjust value.
10603         (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
10604         (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
10605         (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
10606         * NEWS: Announce S/390 vector register support.
10607
10608 2015-03-02  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10609
10610         * features/s390-tevx-linux64.xml: New file.
10611         * features/s390-vx-linux64.xml: New file.
10612         * features/s390-vx.xml: New file.
10613         * features/s390x-tevx-linux64.xml: New file.
10614         * features/s390x-vx-linux64.xml: New file.
10615         * features/Makefile (WHICH): Add s390-vx-linux64,
10616         s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
10617         (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
10618         (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
10619         macros.
10620         * features/s390-tevx-linux64.c: New generated file.
10621         * features/s390-vx-linux64.c: Likewise.
10622         * features/s390x-tevx-linux64.c: Likewise.
10623         * features/s390x-vx-linux64.c: Likewise.
10624         * regformats/s390-tevx-linux64.dat: Likewise.
10625         * regformats/s390-vx-linux64.dat: Likewise.
10626         * regformats/s390x-tevx-linux64.dat: Likewise.
10627         * regformats/s390x-vx-linux64.dat: Likewise.
10628
10629 2015-02-28  Doug Evans  <xdje42@gmail.com>
10630
10631         * symtab.h (struct symtab) <next>: Fix comment.
10632
10633 2015-02-27  Simon Marchi  <simon.marchi@ericsson.com>
10634
10635         * python/python.c (python_GdbModuleDef): Rename GdbMethods to
10636         python_GdbMethods.
10637
10638 2015-02-27  Pedro Alves  <palves@redhat.com>
10639
10640         * dtrace-probe.c (dtrace_probe_ops): Make extern.
10641
10642 2015-02-27  Pedro Alves  <palves@redhat.com>
10643
10644         * common/common-exceptions.h (exception_none): Declare.
10645         * common/common-exceptions.c (exception_none): Moved from
10646         exceptions.c.
10647         (exceptions_state_mc_init): Use exception_none.
10648         * exceptions.c (exception_none): Move to
10649         common/common-exceptions.c.
10650         * exceptions.h (exception_none): Move to
10651         common/common-exceptions.h.
10652
10653 2015-02-27  Pedro Alves  <palves@redhat.com>
10654
10655         * main.c (catch_command_errors, catch_command_errors_const):
10656         Remove 'mask' argument.  Adjust.
10657         (captured_main): Adjust callers.
10658
10659 2015-02-27  Pedro Alves  <palves@redhat.com>
10660
10661         * python/python-internal.h: Include "extension-priv.h".
10662
10663 2015-02-27  Pedro Alves  <palves@redhat.com>
10664
10665         * breakpoint.h (enum print_stop_action): Move further up in the
10666         file.
10667
10668 2015-02-27  Pedro Alves  <palves@redhat.com>
10669
10670         * gdbarch.sh: Include regcache.h.
10671         * gdbarch.h: Regenerate.
10672
10673 2015-02-27  Pedro Alves  <palves@redhat.com>
10674
10675         * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
10676         Remove duplicate const.
10677         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
10678         duplicate const.
10679
10680 2015-02-27  Pedro Alves  <palves@redhat.com>
10681
10682         * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
10683         * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
10684         * features/feature_to_c.sh: Tag the generated xml_builtin array
10685         with extern const in C++ mode.
10686
10687 2015-02-27  Tom Tromey  <tromey@redhat.com>
10688
10689         * minidebug.c (struct lzma_stream): Rename to ...
10690         (struct gdb_lzma_stream): ... this.
10691         (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
10692
10693 2015-02-27  Pedro Alves  <palves@redhat.com>
10694
10695         * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
10696         function.
10697         (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
10698         (mi_cmd_stack_list_variables): Use it.
10699
10700 2015-02-27  Pedro Alves  <palves@redhat.com>
10701
10702         * x86-linux-nat.c (u_debugreg_offset): New function.
10703         (x86_linux_dr_get, x86_linux_dr_set): Use it.
10704
10705 2015-02-27  Pedro Alves  <palves@redhat.com>
10706
10707         * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
10708         declaration.
10709         Include break-common.h.
10710
10711 2015-02-27  Tom Tromey  <tromey@redhat.com>
10712             Pedro Alves <palves@redhat.com>
10713
10714         * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
10715         local used to iterate over enums.
10716         * completer.c (signal_completer): Likewise.
10717         * i386-tdep.c (i386_stap_parse_special_token): Likewise.
10718         * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
10719         * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
10720         * tui/tui-layout.c (next_layout, prev_layout): Likewise.
10721         * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
10722         (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
10723         * tui-wingeneral.c (tui_refresh_all):  Likewise.
10724
10725 2015-02-27  Pedro Alves  <palves@redhat.com>
10726
10727         * target.h: Include "infrun.h".
10728
10729 2015-02-27  Pedro Alves  <palves@redhat.com>
10730
10731         * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
10732
10733 2015-02-27  Pedro Alves  <palves@redhat.com>
10734
10735         * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
10736         (IPA_SYM): Use it.
10737         * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
10738
10739 2015-02-27  Pedro Alves  <palves@redhat.com>
10740
10741         * cli-out.c (_rl_erase_entire_line): Move declaration out of
10742         cli_mld_erase_entire_line, and make it extern "C".
10743         * common/common-defs.h (EXTERN_C): New.
10744         * completer.c (_rl_completion_prefix_display_length)
10745         (_rl_print_completions_horizontally, QSFUNC): Move declarations
10746         out of gdb_display_match_list_1.
10747         (_rl_qsort_string_compare): Move declaration out of
10748         gdb_display_match_list_1, and make it extern "C".
10749         * defs.h (re_comp): Use EXTERN_C.
10750         * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
10751         and make it extern "C".
10752         (monstartup): Move declaration out of maintenance_set_profile_cmd,
10753         and make it extern "C".
10754         (main): Move declaration out of maintenance_set_profile_cmd.
10755         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
10756         EXTERN_C.
10757
10758 2015-02-27  Pedro Alves  <palves@redhat.com>
10759
10760         * python/python.c (GdbMethods): Rename to ...
10761         (python_GdbMethods): ... this and make extern.
10762         (GdbModuleDef): Rename to ...
10763         (python_GdbModuleDef): ... this and make extern.
10764
10765 2015-02-27  Pedro Alves  <palves@redhat.com>
10766
10767         * record-btrace.c (set_record_btrace_cmdlist)
10768         (show_record_btrace_cmdlist): Remove redefinitions.
10769
10770 2015-02-27  Tom Tromey  <tromey@redhat.com>
10771             Pedro Alves  <palves@redhat.com>
10772
10773         * dwarf2-frame.c (enum cfa_how_kind, struct
10774         dwarf2_frame_state_reg_info): Move out of struct
10775         dwarf2_frame_state.
10776         * dwarf2read.c (struct tu_stats): Move out of struct
10777         dwarf2_per_objfile.
10778         (struct file_entry): Move out of struct line_header.
10779         (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
10780         typedef_field_list): Move out of struct field_info.
10781         * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
10782         Move out of struct dynamic_prop.
10783         (union type_owner, union field_location, struct field, struct
10784         range_bounds, union type_specific): Move out of struct main_type.
10785         (struct fn_fieldlist, struct fn_field, struct typedef_field)
10786         (VOFFSET_STATIC): Move out of struct cplus_struct_type.
10787         (struct call_site_target, union call_site_parameter_u, struct
10788         call_site_parameter): Move out of struct call_site.
10789         * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
10790         m32c_prologue.
10791         (enum srcdest_kind): Move out of struct srcdest.
10792         * main.c (enum cmdarg_kind): Move out of struct cmdarg.
10793         * prologue-value.h (enum prologue_value_kind): Move out of struct
10794         prologue_value.
10795         * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
10796         gdbarch_tdep.
10797         * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
10798         out of struct field_info.
10799         * symfile.h (struct other_sections): Move out of struct
10800         section_addr_info.
10801         * symtab.c (struct symbol_cache_slot): Move out struct
10802         block_symbol_cache.
10803         * target-descriptions.c (enum tdesc_type_kind): Move out of
10804         typedef struct tdesc_type.
10805         * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
10806         struct tui_line_or_address.
10807         * value.c (enum internalvar_kind, union internalvar_data): Move
10808         out of struct internalvar.
10809         * xtensa-tdep.h (struct ctype_cache): Move out of struct
10810         gdbarch_tdep.
10811
10812 2015-02-27  Tom Tromey  <tromey@redhat.com>
10813             Pedro Alves  <palves@redhat.com>
10814
10815         Rename symbols whose names are reserved C++ keywords throughout.
10816
10817 2015-02-27  Pedro Alves  <palves@redhat.com>
10818
10819         * Makefile.in (COMPILER): New, get it from autoconf.
10820         (COMPILE.pre, CC_LD): Use COMPILER.
10821         (CXX): Get from autoconf instead.
10822         (CXX_FOR_TARGET): Default to g++ instead of gcc.
10823         * acinclude.m4: Include build-with-cxx.m4.
10824         * build-with-cxx.m4: New file.
10825         * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
10826         Disable -Werror by default if building in C++ mode.
10827         (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
10828         -Wno-narrowing in C++ mode.  Only enable -Wpointer-sign in C mode.
10829         Run supported-warning-flags tests with the C++ compiler.
10830         Save/restore CXXFLAGS too.
10831         * configure: Regenerate.
10832
10833 2015-02-27  Pedro Alves  <palves@redhat.com>
10834
10835         * libiberty.m4: New file.
10836         * acinclude.m4: Include libiberty.m4.
10837         * configure.ac: Call libiberty_INIT.
10838         * config.in, configure: Regenerate.
10839
10840 2015-02-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10841
10842         * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
10843         31-bit targets, but 64-bit targets as well.
10844         (s390_gnu_triplet_regexp): New function.
10845         (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
10846         64-bit targets as well.  Set the gnu_triplet_regexp gdbarch
10847         method.
10848
10849 2015-02-27  Jon TURNEY  <jon.turney@dronecode.org.uk>  (tiny patch)
10850
10851         * windows-nat.c (CONTEXT_DEBUGGER): Remove.
10852         (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS.  Incorporate flags
10853         from CONTEXT_DEBUGGER.
10854
10855 2015-02-26  Doug Evans  <dje@google.com>
10856
10857         * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
10858         CHECK_TYPEDEF.
10859         (set_type_vptr_fieldno): Ditto.
10860         (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
10861         * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
10862
10863 2015-02-26  Pedro Alves  <palves@redhat.com>
10864
10865         * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
10866         * complaints.c (vcomplaint): Pass argument FMT directly to
10867         printf-like functions instead of complaint->fmt.
10868         * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
10869         * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
10870         * compile/compile-loc2c.c (pushf, unary, binary): Add
10871         ATTRIBUTE_PRINTF.
10872         (do_compile_dwarf_expr_to_c): Pass string literal as format string
10873         to pushf.
10874         (BINARY): Pass string literal as format string to 'binary'.
10875         * compile/compile-object-load.c (link_callbacks_einfo): Add
10876         ATTRIBUTE_PRINTF.
10877         * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
10878
10879 2015-02-26  Pedro Alves  <palves@redhat.com>
10880
10881         * windows-termcap.c: Rename to ...
10882         * stub-termcap.c: ... this.  Adjust header line.
10883         * Makefile.in (SFILES): Refer to stub-termcap.c instead of
10884         windows-termcap.c.
10885         * configure: Regenerate.
10886         * configure.ac: Refer to stub-termcap.o instead of
10887         windows-termcap.o.
10888         * gdb_curses.h: Mention stub-termcap.c instead of
10889         windows-termcap.c.
10890
10891 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
10892
10893         * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
10894         (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
10895
10896 2015-02-26  Antoine Tremblay  <antoine.tremblay@ericsson.com>
10897
10898         * gdb/infcmd.c (print_return_value): use type_to_string to print type.
10899
10900 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
10901
10902         * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
10903         bfd_canonicalize_symtab.
10904
10905 2015-02-25  John Baldwin  <jhb@FreeBSD.org>
10906
10907         * amd64fbsd-nat.c: Include sys/user.h.
10908         (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10909         instead of KERN_PS_STRINGS to locate the signal trampoline.
10910         * i386fbsd-nat.c: Include sys/user.h.
10911         (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10912         instead of KERN_PS_STRINGS to locate the signal trampoline.
10913         * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
10914         (amd64fbsd_sigtramp_p): New.
10915         (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
10916         longer set default values.
10917         (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
10918         * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
10919         (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
10920         (i386fbsd_freebsd4_sigtramp_start)
10921         (i386fbsd_freebsd4_sigtramp_middle)
10922         (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
10923         (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
10924         (i386fbsd_sigtramp_p): New.
10925         (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
10926         longer set default values.
10927         (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
10928
10929 2015-02-25  John Baldwin  <jhb@freebsd.org>
10930
10931         * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
10932         get_frame_register instead of frame_unwind_register_unsigned.
10933
10934 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
10935
10936         PR build/18033
10937         * compile/compile-c-support.c (c_compute_program): Change // comment.
10938         * compile/compile-object-load.c (setup_sections): Change // comment.
10939
10940 2015-02-26  Joel Brobecker  <brobecker@adacore.com>
10941
10942         PR build/18033:
10943         * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
10944
10945 2015-02-23  Pedro Alves  <palves@redhat.com>
10946
10947         * remote.c (skip_to_semicolon): New function.
10948         (remote_parse_stop_reply) <T stop reply>: Use it.  Don't
10949         special case the stop reasons that look like hex numbers
10950         upfront.  Instead handle real register numbers after matching
10951         all the known stop reasons.
10952
10953 2015-02-21  Doug Evans  <dje@google.com>
10954
10955         PR c++/17976, symtab/17821
10956         * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
10957         is_in_anonymous.  All callers updated.
10958         (find_symbol_in_baseclass): Ditto.
10959         (cp_lookup_nested_symbol_1): Ditto.  Don't search all static blocks
10960         for symbols in an anonymous namespace.
10961         * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
10962         DW_AT_name directly.
10963         (dwarf2_name): Convert missing namespace name to
10964         CP_ANONYMOUS_NAMESPACE_STR.
10965
10966 2015-02-20  Pedro Alves  <palves@redhat.com>
10967
10968         * linux-nat.c (linux_handle_extended_wait): Call
10969         thread_db_notice_clone whenever a new clone LWP is detected.
10970         (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
10971         functions.
10972         * linux-nat.h (thread_db_attach_lwp): Delete declaration.
10973         (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
10974         (linux_unstop_all_lwps): Declare.
10975         * linux-thread-db.c (struct thread_get_info_inout): Delete.
10976         (thread_get_info_callback): Delete.
10977         (thread_from_lwp): Use td_thr_get_info and record_thread.
10978         (thread_db_attach_lwp): Delete.
10979         (thread_db_notice_clone): New function.
10980         (try_thread_db_load_1): If /proc is mounted and shows the
10981         process'es task list, walk over all LWPs and call thread_from_lwp
10982         instead of relying on td_ta_thr_iter.
10983         (attach_thread): Don't call check_thread_signals here.  Split the
10984         tail part of the function (which adds the thread to the core GDB
10985         thread list) to ...
10986         (record_thread): ... this function.  Call check_thread_signals
10987         here.
10988         (thread_db_wait): Don't call thread_db_find_new_threads_1.  Always
10989         call thread_from_lwp.
10990         (thread_db_update_thread_list): Rename to ...
10991         (thread_db_update_thread_list_org): ... this.
10992         (thread_db_update_thread_list): New function.
10993         (thread_db_find_thread_from_tid): Delete.
10994         (thread_db_get_ada_task_ptid): Simplify.
10995         * nat/linux-procfs.c: Include <sys/stat.h>.
10996         (linux_proc_task_list_dir_exists): New function.
10997         * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
10998
10999 2015-02-20  Pedro Alves  <palves@redhat.com>
11000
11001         * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
11002         main LWP.  Handle the case of waitpid returning 0 if we're already
11003         attached to the LWP.  Don't set the LWP's last_resume_kind to
11004         resume_stop if we already knew about the LWP.
11005         (linux_nat_filter_event): Add debug logs.
11006
11007 2015-02-20  Pedro Alves  <palves@redhat.com>
11008
11009         * target.h (forward_target_decr_pc_after_break): Delete
11010         declaration.
11011
11012 2015-02-20  Pedro Alves  <palves@redhat.com>
11013
11014         PR threads/18006
11015         * linux-thread-db.c (thread_get_info_callback): Return early if
11016         the thread's lwp id is -1.
11017
11018 2015-02-20  Joel Brobecker  <brobecker@adacore.com>
11019
11020         GDB 7.9 released.
11021
11022 2015-02-19  Steve Ellcey  <sellcey@imgtec.com>
11023
11024         * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
11025         (dtrace_get_probes) Change type of variable 'dof'.
11026
11027 2015-02-19  Antoine Tremblay  <antoine.tremblay@ericsson.com>
11028
11029         PR breakpoints/16812
11030         * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
11031         * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
11032         * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
11033
11034 2015-02-19  David Taylor  <dtaylor@emc.com>
11035
11036         * common/ax.def (setv): Fix consumed entry in setv DEFOP.
11037
11038 2015-02-18  Patrick Palka  <patrick@parcs.ath.cx>
11039
11040         * tui/tui-io.c (tui_handle_resize_during_io): Remove this
11041         function.
11042         (tui_putc): Don't call tui_handle_resize_during_io.
11043         (tui_getc): Likewise.
11044         (tui_mld_getc): Likewise.
11045         * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
11046         (tui_sigwinch_token): New static variable.
11047         (tui_initialize_win): Adjust documentation.  Set
11048         tui_sigwinch_token.
11049         (tui_async_resize_screen): New asynchronous callback.
11050         (tui_sigwinch_handler): Adjust documentation.  Asynchronously
11051         invoke tui_async_resize_screen.
11052
11053 2015-02-18  Jose E. Marchesi  <jose.marchesi@oracle.com>
11054
11055         * configure: Regenerated.
11056         * configure.ac: Use GDB_AC_TRANSFORM.
11057         * Makefile.in (aclocal_m4_deps): Added transform.m4.
11058         * acinclude.m4: sinclude transform.m4.
11059         * transform.m4: New file.
11060         (GDB_AC_TRANSFORM): New macro.
11061
11062 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11063
11064         * NEWS: Announce the support for DTrace SDT probes.
11065
11066 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11067
11068         * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
11069         (amd64_dtrace_parse_probe_argument): New function.
11070         (amd64_dtrace_probe_is_enabled): Likewise.
11071         (amd64_dtrace_enable_probe): Likewise.
11072         (amd64_dtrace_disable_probe): Likewise.
11073         (amd64_linux_init_abi): Register the
11074         `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
11075         `gdbarch_dtrace_disable_probe' and
11076         `gdbarch_dtrace_probe_is_enabled' hooks.
11077         (amd64_dtrace_disabled_probe_sequence_1): New constant.
11078         (amd64_dtrace_disabled_probe_sequence_2): Likewise.
11079         (amd64_dtrace_enable_probe_sequence): Likewise.
11080         (amd64_dtrace_disable_probe_sequence): Likewise.
11081
11082 2015-01-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11083
11084         * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
11085         the -probe-dtrace new vpossible value for PROBE_MODIFIER.
11086         * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
11087         handle ELF files.
11088         * Makefile.in (SFILES): dtrace-probe.c added.
11089         * configure: Regenerate.
11090         * dtrace-probe.c: New file.
11091         (SHT_SUNW_dof): New constant.
11092         (dtrace_probe_type): New enum.
11093         (dtrace_probe_arg): New struct.
11094         (dtrace_probe_arg_s): New typedef.
11095         (struct dtrace_probe_enabler): New struct.
11096         (dtrace_probe_enabler_s): New typedef.
11097         (dtrace_probe): New struct.
11098         (dtrace_probe_is_linespec): New function.
11099         (dtrace_dof_sect_type): New enum.
11100         (dtrace_dof_dofh_ident): Likewise.
11101         (dtrace_dof_encoding): Likewise.
11102         (DTRACE_DOF_ENCODE_LSB): Likewise.
11103         (DTRACE_DOF_ENCODE_MSB): Likewise.
11104         (dtrace_dof_hdr): New struct.
11105         (dtrace_dof_sect): Likewise.
11106         (dtrace_dof_provider): Likewise.
11107         (dtrace_dof_probe): Likewise.
11108         (DOF_UINT): New macro.
11109         (DTRACE_DOF_PTR): Likewise.
11110         (DTRACE_DOF_SECT): Likewise.
11111         (dtrace_process_dof_probe): New function.
11112         (dtrace_process_dof): Likewise.
11113         (dtrace_build_arg_exprs): Likewise.
11114         (dtrace_get_arg): Likewise.
11115         (dtrace_get_probes): Likewise.
11116         (dtrace_get_probe_argument_count): Likewise.
11117         (dtrace_can_evaluate_probe_arguments): Likewise.
11118         (dtrace_evaluate_probe_argument): Likewise.
11119         (dtrace_compile_to_ax): Likewise.
11120         (dtrace_probe_destroy): Likewise.
11121         (dtrace_gen_info_probes_table_header): Likewise.
11122         (dtrace_gen_info_probes_table_values): Likewise.
11123         (dtrace_probe_is_enabled): Likewise.
11124         (dtrace_probe_ops): New variable.
11125         (info_probes_dtrace_command): New function.
11126         (_initialize_dtrace_probe): Likewise.
11127         (dtrace_type_name): Likewise.
11128
11129 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11130
11131         * gdbarch.sh (dtrace_parse_probe_argument): New.
11132         (dtrace_probe_is_enabled): Likewise.
11133         (dtrace_enable_probe): Likewise.
11134         (dtrace_disable_probe): Likewise.
11135         * gdbarch.c: Regenerate.
11136         * gdbarch.h: Regenerate.
11137
11138 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11139
11140         * stap-probe.c (stap_probe_ops): Add NULLs in the static
11141         stap_probe_ops for `enable_probe' and `disable_probe'.
11142         * probe.c (enable_probes_command): New function.
11143         (disable_probes_command): Likewise.
11144         (_initialize_probe): Define the cli commands `enable probe' and
11145         `disable probe'.
11146         (parse_probe_linespec): New function.
11147         (info_probes_for_ops): Use parse_probe_linespec.
11148         * probe.h (probe_ops): New hooks `enable_probe' and
11149         `disable_probe'.
11150
11151 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11152
11153         * probe.c (compute_probe_arg): Moved from stap-probe.c
11154         (compile_probe_arg): Likewise.
11155         (probe_funcs): Likewise.
11156         * stap-probe.c (compute_probe_arg): Moved to probe.c.
11157         (compile_probe_arg): Likewise.
11158         (probe_funcs): Likewise.
11159
11160 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11161
11162         * probe.c (print_ui_out_not_applicables): New function.
11163         (exists_probe_with_pops): Likewise.
11164         (info_probes_for_ops): Do not include column headers for probe
11165         types for which no probe has been actually found on any object.
11166         Also invoke `print_ui_out_not_applicables' in order to match the
11167         column rows with the header when probes of several types are
11168         listed.
11169         Print the "Type" column.
11170         * probe.h (probe_ops): Added a new probe operation `type_name'.
11171         * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
11172         (stap_type_name): New function.
11173
11174 2015-02-17  Patrick Palka  <patrick@parcs.ath.cx>
11175
11176         * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
11177         (key_is_command_char): Delete.
11178
11179 2015-02-17  Pedro Alves  <palves@redhat.com>
11180
11181         * tui/tui.c (tui_enable): Resize windows before anything
11182         might show a window.
11183
11184 2015-02-17  Max Ostapenko  <m.ostapenko@partner.samsung.com>
11185
11186         PR gdb/17984
11187         * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
11188         (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
11189         call.
11190         * aarch64-tdep.h (tdesc_aarch64): Declare.
11191
11192 2015-02-12  Mark Wielaard  <mjw@redhat.com>
11193
11194         * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
11195
11196 2015-02-13  Doug Evans  <dje@google.com>
11197
11198         * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
11199         anonymous_namespace to is_in_anonymous for consistency with the rest
11200         of the file.
11201         (cp_lookup_bare_symbol): Fix typo in comment.
11202         (cp_search_static_and_baseclasses): Ditto.
11203         (search_symbol_list): Use vertical space in comment better.
11204         (reset_directive_searched): Ditto. Fix typo.
11205         (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
11206
11207 2015-02-13  Yao Qi  <yao.qi@arm.com>
11208
11209         * MAINTAINERS: Update my email address.
11210
11211 2015-02-12  Doug Evans  <dje@google.com>
11212
11213         * symtab.c (completion_list_add_name): Fix memory leak.
11214
11215 2015-02-12  Doug Evans  <dje@google.com>
11216
11217         * completer.c (complete_line): Remove incorrect comment.
11218
11219 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11220
11221         * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
11222         (py_print_frame): Use RETURN_MASK_ERROR.
11223
11224 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11225
11226         * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
11227         function comment.  Wrap all function that can throw in cleanups.
11228         (gdbpy_apply_frame_filter): Wrap all function that can throw in
11229         cleanups.
11230
11231 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11232
11233         * python/py-framefilter.c (py_print_frame): Substitute goto error.
11234         Remove the error label.
11235
11236 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11237
11238         * python/py-framefilter.c (py_print_frame): Put conditional code paths
11239         with goto first, indent the former else codepath left.  Put variable
11240         'elided' to a new inner block.
11241
11242 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11243
11244         * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
11245
11246 2015-02-11  Pedro Alves  <palves@redhat.com>
11247
11248         * xcoffread.c (within_function): Delete.
11249
11250 2015-02-11  Tom Tromey  <tromey@redhat.com>
11251             Pedro Alves <palves@redhat.com>
11252
11253         * breakpoint.c (base_breakpoint_ops): Delete.
11254         * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
11255         * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
11256         * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
11257         * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
11258         * python/py-arch.c (arch_object_type): Make extern.
11259         * python/py-block.c (block_syms_iterator_object_type): Make extern.
11260         * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
11261         * python/py-cmd.c (cmdpy_object_type): Make extern.
11262         * python/py-continueevent.c (continue_event_object_type)
11263         * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
11264         parameter.  Update all callers.
11265         * python/py-evtregistry.c (eventregistry_object_type): Make extern.
11266         * python/py-exitedevent.c (exited_event_object_type): Make extern.
11267         * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
11268         * python/py-function.c (fnpy_object_type): Make extern.
11269         * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
11270         * python/py-infevents.c (call_pre_event_object_type)
11271         (inferior_call_post_event_object_type).
11272         (memory_changed_event_object_type): Make extern.
11273         * python/py-infthread.c (thread_object_type): Make extern.
11274         * python/py-lazy-string.c (lazy_string_object_type): Make extern.
11275         * python/py-linetable.c (linetable_entry_object_type)
11276         (linetable_object_type, ltpy_iterator_object_type): Make extern.
11277         * python/py-newobjfileevent.c (new_objfile_event_object_type)
11278         (clear_objfiles_event_object_type): Make extern.
11279         * python/py-objfile.c (objfile_object_type): Make extern.
11280         * python/py-param.c (parmpy_object_type): Make extern.
11281         * python/py-progspace.c (pspace_object_type): Make extern.
11282         * python/py-signalevent.c (signal_event_object_type): Make extern.
11283         * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
11284         * python/py-type.c (type_object_type, field_object_type)
11285         (type_iterator_object_type): Make extern.
11286         * python/python.c (python_extension_script_ops)
11287         (python_extension_ops): Make extern.
11288         * stap-probe.c (stap_probe_ops): Make extern.
11289
11290 2015-02-11  Pedro Alves  <pedro@codesourcery.com>
11291
11292         * infrun.c (adjust_pc_after_break): Don't adjust the PC just
11293         because the event thread is not the current thread.
11294
11295 2015-02-11  Doug Evans  <xdje42@gmail.com>
11296
11297         * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
11298         been initialized yet, return NULL.
11299
11300 2015-02-11  Doug Evans  <dje@google.com>
11301
11302         * symfile.h (new_symfile_objfile): Delete.
11303         * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
11304         All callers updated.
11305
11306 2015-02-11  Patrick Palka  <patrick@parcs.ath.cx>
11307
11308         * tui/tui-io.c (tui_handle_resize_during_io): Call
11309         tui_update_gdb_sizes() after resizing the screen.
11310         * tui/tui.c (tui_enable): Resize the terminal before
11311         calling tui_update_gdb_sizes().
11312
11313 2015-02-11  Patrick Palka  <patrick@parcs.ath.cx>
11314
11315         * tui/tui-io.c (tui_getc): Move cursor to the end of the command
11316         line before printing a newline.
11317
11318 2015-02-11  Mark Wielaard  <mjw@redhat.com>
11319
11320         * utils.c (producer_is_gcc): Return true or false.
11321
11322 2015-02-10  Mark Wielaard  <mjw@redhat.com>
11323
11324         * utils.h (producer_is_gcc): Change return type to bool. Add major
11325         argument.
11326         * utils.c (producer_is_gcc): Likewise.
11327         (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
11328         * dwarf2read.c (check_producer): Likewise.
11329
11330 2015-02-10  Pedro Alves  <palves@redhat.com>
11331
11332         * infrun.c (displaced_step_fixup): Switch to the event thread
11333         before calling gdbarch_displaced_step_fixup.
11334
11335 2015-02-10  Antoine Tremblay <antoine.tremblay@ericsson.com>
11336
11337         * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
11338
11339 2015-02-10  Simon Marchi  <simon.marchi@ericsson.com>
11340
11341         * ada-varobj.c (ada_name_of_child): Constify parent.
11342         (ada_path_expr_of_child): Same.
11343         (ada_value_of_child): Same.
11344         (ada_type_of_child): Same.
11345         * c-varobj.c (c_is_path_expr_parent): Same.
11346         (c_describe_child): Same.
11347         (c_name_of_child): Same.
11348         (c_value_of_child): Same.
11349         (c_type_of_child): Same.
11350         (cplus_number_of_children): Same.
11351         (cplus_describe_child): Constify var.
11352         (cplus_name_of_child): Constify parent.
11353         (cplus_value_of_child): Same.
11354         (cplus_type_of_child): Same.
11355         * jv-varobj.c (java_name_of_child): Same.
11356         (java_value_of_child): Same.
11357         (java_type_of_child): Same.
11358         * varobj.c (value_of_child): Same.
11359         (varobj_default_is_path_expr_parent): Constify var, parent and return
11360         value.
11361         (varobj_get_path_expr): Constify var, modify path_expr through
11362         mutable_var.
11363         (install_new_value): Constify parent.
11364         (value_of_child): Constify parent.
11365         * varobj.h (struct varobj): Constify parent.
11366         (struct lang_varobj_ops): Constify name_of_child, value_of_child and
11367         type_of_child.
11368         (varobj_get_path_expr): Constify var.
11369         (varobj_get_path_expr_parent): Constify var and return value.
11370
11371 2015-02-10  Luis Machado  <lgustavo@codesourcery.com>
11372
11373         * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
11374         (arm_prologue_this_id): Move PC and SP limit checks to
11375         arm_prologue_unwind_stop_reason.
11376         (arm_prologue_unwind) <stop_reason> : Set to
11377         arm_prologue_unwind_stop_reason.
11378
11379 2015-02-09  Mark Wielaard  <mjw@redhat.com>
11380
11381         * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
11382         DW_LANG_Fortran08 as language_fortran.
11383
11384 2015-02-09  Sergio Durigan Junior  <sergiodj@redhat.com>
11385
11386         PR remote/17946
11387         * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
11388         of pointer against char.
11389
11390 2015-02-09  Mark Wielaard  <mjw@redhat.com>
11391
11392         * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
11393         (c_type_print_modifier): Likewise.
11394         * dwarf2read.c (read_tag_atomic_type): New function.
11395         (read_type_die_1): Handle DW_TAG_atomic_type.
11396         * gdbtypes.c (make_atomic_type): New function.
11397         (recursive_dump_type): Handle TYPE_ATOMIC.
11398         * gdbtypes.h (enum type_flag_values): Renumber.
11399         (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
11400         (TYPE_ATOMIC): New macro.
11401         (make_atomic_type): Declare.
11402
11403 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11404
11405         * btrace.c (ftrace_find_call): Skip gaps.
11406         (ftrace_new_function): Initialize level.
11407         (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
11408         (ftrace_new_switch): Update
11409         level computation.
11410         (ftrace_new_gap): New.
11411         (ftrace_update_function): Create new function after gap.
11412         (btrace_compute_ftrace_bts): Create gap on error.
11413         (btrace_stitch_bts): Update parameters.  Clear trace if it
11414         becomes empty.
11415         (btrace_stitch_trace): Update parameters.  Update callers.
11416         (btrace_clear): Reset the number of gaps.
11417         (btrace_insn_get): Return NULL if the iterator points to a gap.
11418         (btrace_insn_number): Return zero if the iterator points to a gap.
11419         (btrace_insn_end): Allow gaps at the end.
11420         (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
11421         (btrace_find_insn_by_number): Assert that the found iterator does
11422         not point to a gap.
11423         (btrace_call_next, btrace_call_prev): Assert that the last function
11424         is not a gap.
11425         * btrace.h (btrace_bts_error): New.
11426         (btrace_function): Update comment.
11427         (btrace_function) <insn, insn_offset, number>: Update comment.
11428         (btrace_function) <errcode>: New.
11429         (btrace_thread_info) <ngaps>: New.
11430         (btrace_thread_info) <replay>: Update comment.
11431         (btrace_insn_get): Update comment.
11432         * record-btrace.c (btrace_ui_out_decode_error): New.
11433         (record_btrace_info): Print number of gaps.
11434         (btrace_insn_history, btrace_call_history): Call
11435         btrace_ui_out_decode_error for gaps.
11436         (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
11437
11438 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11439
11440         * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
11441         * nat/linux-btrace.c: (btrace_this_cpu): New.
11442         (cpu_supports_bts): Call btrace_this_cpu.
11443         (intel_supports_bts): Add cpu parameter.
11444
11445 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11446
11447         * btrace.h (btrace_insn_class): New.
11448         (btrace_insn) <size, iclass>: New.
11449         * btrace.c (ftrace_find_call): Update parameters.  Update users.
11450         Use instruction classification.
11451         (ftrace_new_return): Update parameters.  Update users.
11452         (ftrace_update_function): Update parameters.  Update users.  Use
11453         instruction classification.
11454         (ftrace_update_insns): Update parameters.  Update users.
11455         (ftrace_classify_insn): New.
11456         (btrace_compute_ftrace_bts): Fill in new btrace_insn fields.  Add
11457         TRY_CATCH around call to gdb_insn_length.
11458
11459 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11460
11461         * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
11462         Update parameters.  Update users.
11463
11464 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11465
11466         * btrace.c (parse_xml_btrace_conf_bts): Add size.
11467         (btrace_conf_bts_attributes): New.
11468         (btrace_conf_children): Add attributes.
11469         * common/btrace-common.h (btrace_config_bts): New.
11470         (btrace_config)<bts>: New.
11471         (btrace_config): Update comment.
11472         * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
11473         Use config.
11474         * features/btrace-conf.dtd: Increment version.  Add size
11475         attribute to bts element.
11476         * record-btrace.c (set_record_btrace_bts_cmdlist,
11477         show_record_btrace_bts_cmdlist): New.
11478         (record_btrace_adjust_size, record_btrace_print_bts_conf,
11479         record_btrace_print_conf, cmd_set_record_btrace_bts,
11480         cmd_show_record_btrace_bts): New.
11481         (record_btrace_info): Call record_btrace_print_conf.
11482         (_initialize_record_btrace): Add commands.
11483         * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
11484         (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
11485         (btrace_sync_conf): Synchronize bts size.
11486         (_initialize_remote): Add Qbtrace-conf:bts:size packet.
11487         * NEWS: Announce new commands and new packets.
11488
11489 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11490
11491         * Makefile.in (XMLFILES): Add btrace-conf.dtd.
11492         * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
11493         (x86_linux_btrace_conf): New.
11494         (x86_linux_create_target): Initialize to_btrace_conf.
11495         * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
11496         Check format.  Split into this and ...
11497         (linux_enable_bts): ... this.
11498         (linux_btrace_conf): New.
11499         (perf_event_skip_record): Renamed into ...
11500         (perf_event_skip_bts_record): ... this.  Updated users.
11501         (linux_disable_btrace): Split into this and ...
11502         (linux_disable_bts): ... this.
11503         (linux_read_btrace): Check format.
11504         * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
11505         (linux_btrace_conf): New.
11506         (btrace_target_info)<ptid>: Moved.
11507         (btrace_target_info)<conf>: New.
11508         (btrace_target_info): Split into this and ...
11509         (btrace_tinfo_bts): ... this.  Updated users.
11510         * btrace.c (btrace_enable): Update parameters.
11511         (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
11512         (btrace_conf_children, btrace_conf_attributes)
11513         (btrace_conf_elements): New.
11514         * btrace.h (btrace_enable): Update parameters.
11515         (btrace_conf, parse_xml_btrace_conf): New.
11516         * common/btrace-common.h (btrace_config): New.
11517         * feature/btrace-conf.dtd: New.
11518         * record-btrace.c (record_btrace_conf): New.
11519         (record_btrace_cmdlist): New.
11520         (record_btrace_enable_warn, record_btrace_open): Pass
11521         &record_btrace_conf.
11522         (record_btrace_info): Print recording format.
11523         (cmd_record_btrace_bts_start): New.
11524         (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
11525         (_initialize_record_btrace): Add "record btrace bts" subcommand.
11526         Add "record bts" alias command.
11527         * remote.c (remote_state)<btrace_config>: New.
11528         (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
11529         (remote_protocol_features): Add qXfer:btrace-conf:read.
11530         (remote_open_1): Call remote_btrace_reset.
11531         (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
11532         (btrace_target_info)<conf>: New.
11533         (btrace_sync_conf, btrace_read_config): New.
11534         (remote_enable_btrace): Update parameters.  Call btrace_sync_conf and
11535         btrace_read_conf.
11536         (remote_btrace_conf): New.
11537         (init_remote_ops): Initialize to_btrace_conf.
11538         (_initialize_remote): Add qXfer:btrace-conf packet.
11539         * target.c (target_enable_btrace): Update parameters.
11540         (target_btrace_conf): New.
11541         * target.h (target_enable_btrace): Update parameters.
11542         (target_btrace_conf): New.
11543         (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
11544         (target_ops)<to_enable_btrace>: Update parameters and comment.
11545         (target_ops)<to_btrace_conf>: New.
11546         * target-delegates: Regenerate.
11547         * target-debug.h (target_debug_print_const_struct_btrace_config_p)
11548         (target_debug_print_const_struct_btrace_target_info_p): New.
11549         * NEWS: Announce new command and new packet.
11550
11551 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11552
11553         * nat/linux-btrace.h (perf_event_buffer): New.
11554         (btrace_target_info) <buffer, size, data_head>: Replace with ...
11555         <bts>: ... this.
11556         * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
11557         (perf_event_buffer_size, perf_event_buffer_begin)
11558         (perf_event_buffer_end, linux_btrace_has_changed): Removed.
11559         Updated users.
11560         (perf_event_new_data): New.
11561
11562 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11563
11564         * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
11565         * record-btrace.c (record_btrace_open): Remove call to
11566         target_supports_btrace.
11567         * remote.c (remote_supports_btrace): Update parameters.
11568         * target.c (target_supports_btrace): Update parameters.
11569         * target.h (to_supports_btrace, target_supports_btrace): Update
11570         parameters.
11571         * target-delegates.c: Regenerate.
11572         * target-debug.h (target_debug_print_enum_btrace_format): New.
11573         * nat/linux-btrace.c
11574         (kernel_supports_btrace): Rename into ...
11575         (kernel_supports_bts): ... this.  Update users.  Update warning text.
11576         (intel_supports_btrace): Rename into ...
11577         (intel_supports_bts): ... this.  Update users.
11578         (cpu_supports_btrace): Rename into ...
11579         (cpu_supports_bts): ... this.  Update users.
11580         (linux_supports_btrace): Update parameters.  Split into this and ...
11581         (linux_supports_bts): ... this.
11582         * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
11583
11584 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11585
11586         * Makefile.in (SFILES): Add common/btrace-common.c.
11587         (COMMON_OBS): Add common/btrace-common.o.
11588         (btrace-common.o): Add build rules.
11589         * btrace.c (parse_xml_btrace): Update parameters.
11590         (parse_xml_btrace_block): Set format field.
11591         (btrace_add_pc, btrace_fetch): Use struct btrace_data.
11592         (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
11593         (btrace_compute_ftrace): Split into this and...
11594         (btrace_compute_ftrace_bts): ...this.
11595         (btrace_stitch_trace): Split into this and...
11596         (btrace_stitch_bts): ...this.
11597         * btrace.h (parse_xml_btrace): Update parameters.
11598         (make_cleanup_btrace_data): New.
11599         * common/btrace-common.c: New.
11600         * common/btrace-common.h: Include common-defs.h.
11601         (btrace_block_s): Update comment.
11602         (btrace_format): New.
11603         (btrace_format_string): New.
11604         (btrace_data_bts): New.
11605         (btrace_data): New.
11606         (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
11607         * remote.c (remote_read_btrace): Update parameters.
11608         * target.c (target_read_btrace): Update parameters.
11609         * target.h (target_read_btrace): Update parameters.
11610         (target_ops)<to_read_btrace>: Update parameters.
11611         * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
11612         * target-delegates.c: Regenerate.
11613         * target-debug (target_debug_print_struct_btrace_data_p): New.
11614         * nat/linux-btrace.c (linux_read_btrace): Split into this and...
11615         (linux_read_bts): ...this.
11616         * nat/linux-btrace.h (linux_read_btrace): Update parameters.
11617
11618 2015-02-06  Doug Evans  <dje@google.com>
11619
11620         * remote-m32r-sdi.c: Include symfile.h.
11621
11622 2015-02-06  Doug Evans  <dje@google.com>
11623
11624         * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
11625         * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
11626         to here.
11627
11628 2015-02-06  Pedro Alves  <palves@redhat.com>
11629
11630         * linux-thread-db.c (find_new_threads_callback): Add debug output.
11631
11632 2015-02-06  Simon Marchi  <simon.marchi@ericsson.com>
11633
11634         PR gdb/15678
11635         * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
11636         (enable_count_command): Check args for NULL value.
11637
11638 2015-02-05  Doug Evans  <xdje42@gmail.com>
11639
11640         * guile/scm-frame.c: Fix spelling errors in a comment.
11641
11642 2015-02-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
11643
11644         * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
11645         * python/py-value.c (valpy_fetch_lazy): Use it.  Remove cast to the
11646         return type.
11647
11648 2015-02-04  Pedro Alves  <palves@redhat.com>
11649
11650         * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
11651         (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
11652         returns true.
11653         (resume_stopped_resumed_lwps): Don't check whether the thread is
11654         marked as executing.
11655         (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
11656
11657 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11658
11659         * regset.h (struct regset): Add flags field.
11660         (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
11661         * corelow.c (get_core_register_section): Add warning if the size
11662         exceeds the requested size and the regset does not have the
11663         REGSET_VARIABLE_SIZE flag set.
11664         * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
11665         flag.
11666         * armbsd-tdep.c (armbsd_gregset): Likewise.
11667         * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
11668         * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
11669         * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
11670         * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
11671
11672 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11673
11674         * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
11675         For ".reg-xstate", explicitly specify the requested section size
11676         via X86_XSTATE_SIZE instead of just 0 on input and
11677         X86_XSTATE_MAX_SIZE on output.
11678         * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
11679         Likewise.
11680
11681 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11682
11683         PR corefiles/17808:
11684         * gdbarch.sh (iterate_over_regset_sections_cb): Document this
11685         function type, particularly its SIZE parameter.
11686         * gdbarch.h: Regenerate.
11687         * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
11688         actual against required size using ">=" instead of "==".
11689         (amd64_collect_fpregset): Likewise.
11690         * i386-tdep.c (i386_supply_gregset): Likewise.
11691         (i386_collect_gregset): Likewise.
11692         (i386_supply_fpregset): Likewise.
11693         (i386_collect_fpregset): Likewise.
11694         * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
11695         (mips_fill_gregset_wrapper): Likewise.
11696         (mips_supply_fpregset_wrapper): Likewise.
11697         (mips_fill_fpregset_wrapper): Likewise.
11698         (mips64_supply_gregset_wrapper): Likewise.
11699         (mips64_fill_gregset_wrapper): Likewise.
11700         (mips64_supply_fpregset_wrapper): Likewise.
11701         (mips64_fill_fpregset_wrapper): Likewise.
11702         * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
11703         (am33_supply_fpregset_method): Likewise.
11704         (am33_collect_gregset_method): Likewise.
11705         (am33_collect_fpregset_method): Likewise.
11706
11707 2015-02-04  Doug Evans  <dje@google.com>
11708             Pedro Alves  <palves@redhat.com>
11709             Eli Zaretskii  <eliz@gnu.org>
11710
11711         PR tui/17810
11712         * tui/tui-command.c (tui_refresh_cmd_win): New function.
11713         * tui/tui-command.c (tui_refresh_cmd_win): Declare.
11714         * tui/tui-file.c: #include tui/tui-command.h.
11715         (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
11716         (tui_file_flush): Refresh command window if stream is gdb_stdout.
11717         * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
11718
11719 2015-02-04  Pedro Alves  <palves@redhat.com>
11720
11721         Fix build breakage.
11722         * event-loop.c (gdb_do_one_event): Add default switch case.
11723
11724 2015-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
11725
11726         Filter out inferior gcc option -fpreprocessed.
11727         * compile/compile.c (filter_args): New function.
11728         (get_args): Use it.
11729
11730 2015-02-03  Pedro Alves  <palves@redhat.com>
11731
11732         * event-loop.c: Don't declare nor define a queue type for
11733         gdb_event_p.
11734         (event_queue): Delete.
11735         (create_event, create_file_event, gdb_event_xfree)
11736         (initialize_event_loop, process_event): Delete.
11737         (gdb_do_one_event): Return as soon as one event is handled.
11738         (handle_file_event): Change prototype.  Used the passed in
11739         file_handler pointer and ready_mask instead of looping over all
11740         file handlers.
11741         (gdb_wait_for_event): Update the poll/select timeouts before
11742         blocking.  Run event handlers directly instead of queueing events.
11743         Return as soon as one event is handled.
11744         (struct async_event_handler_data): Delete.
11745         (invoke_async_event_handler): Delete.
11746         (check_async_event_handlers): Change return type to int.  Run
11747         event handlers directly instead of queueing events.  Return as
11748         soon as one event is handled.
11749         (handle_timer_event): Delete.
11750         (update_wait_timeout): New function, factored out from
11751         poll_timers.
11752         (poll_timers): Reimplement.
11753         * event-loop.h (initialize_event_loop): Delete declaration.
11754         * top.c (gdb_init): Don't call initialize_event_loop.
11755
11756 2015-02-03  Pedro Alves  <palves@redhat.com>
11757
11758         * event-loop.c (clear_async_event_handler): New function.
11759         * event-loop.h (clear_async_event_handler): New declaration.
11760         * record-btrace.c (record_btrace_async): New function.
11761         (init_record_btrace_ops): Install record_btrace_async.
11762         * record-full.c (record_full_async): New function.
11763         (record_full_resume): Don't mark the async event source here.
11764         (init_record_full_ops): Install record_full_async.
11765         (record_full_core_resume): Don't mark the async event source here.
11766         (init_record_full_core_ops): Install record_full_async.
11767         * remote.c (remote_async): Mark and clear the async stop reply
11768         queue event-loop token as appropriate.
11769
11770 2015-02-03  Pedro Alves  <palves@redhat.com>
11771
11772         * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
11773         target_is_async_p instead of target_can_async.
11774         (linux_nat_wait): Use target_is_async_p instead of
11775         target_can_async.  Don't enable async here.
11776         * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
11777         target_is_async_p instead of target_can_async.
11778
11779 2015-02-02  Simon Marchi  <simon.marchi@ericsson.com>
11780
11781         * varobj.h (lang_varobj_ops): Mention which return values need
11782         to be freed.
11783
11784 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
11785
11786         * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
11787
11788 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
11789
11790         PR gdb/17856:
11791         * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
11792         results found in the cache.
11793
11794 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
11795
11796         PR gdb/17854:
11797         * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
11798         when allocating a new one.
11799
11800 2015-02-01  Tom Tromey  <tom@tromey.com>
11801
11802         * MAINTAINERS: Remove myself.
11803
11804 2015-01-31  Doug Evans  <xdje42@gmail.com>
11805
11806         * dwarf2read.c (process_structure_scope): Update setting of
11807         TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
11808         * gdbtypes.c (internal_type_vptr_fieldno): New function.
11809         (set_type_vptr_fieldno): New function.
11810         (internal_type_vptr_basetype): New function.
11811         (set_type_vptr_basetype): New function.
11812         (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
11813         TYPE_VPTR_BASETYPE.
11814         (allocate_cplus_struct_type): Initialize vptr_fieldno.
11815         (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
11816         (print_cplus_stuff): ... moved here.
11817         (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
11818         * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
11819         moved to ...
11820         (struct cplus_struct_type): ... here.  All uses updated.
11821         (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
11822         (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
11823         (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
11824         * stabsread.c (read_tilde_fields): Update setting of
11825         TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
11826
11827 2015-01-31  Doug Evans  <xdje42@gmail.com>
11828
11829         * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
11830         to self_p.
11831         (cp_print_class_member): Rename local domain to self_type.
11832         * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
11833         domain_type to self_type.
11834         (set_die_type) <need_gnat_info>: Handle
11835         TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
11836         * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
11837         TYPE_SPECIFIC_SELF_TYPE.
11838         * gdbtypes.c (internal_type_self_type): New function.
11839         (set_type_self_type): New function.
11840         (smash_to_memberptr_type): Rename parameter domain to self_type.
11841         Update setting of TYPE_SELF_TYPE.
11842         (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
11843         (smash_to_method_type): Rename parameter domain to self_type.
11844         Update setting of TYPE_SELF_TYPE.
11845         (check_stub_method): Call smash_to_method_type.
11846         (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
11847         (copy_type_recursive): Ditto.
11848         * gdbtypes.h (enum type_specific_kind): New value
11849         TYPE_SPECIFIC_SELF_TYPE.
11850         (struct main_type) <type_specific>: New member self_type.
11851         (struct cplus_struct_type) <fn_field.type>: Update comment.
11852         (TYPE_SELF_TYPE): Rewrite.
11853         (internal_type_self_type, set_type_self_type): Declare.
11854         * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
11855         self_type.
11856         (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
11857         * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
11858         TYPE_TARGET_TYPE.
11859         * stabsread.c (read_member_functions): Mark methods with
11860         TYPE_CODE_METHOD, not TYPE_CODE_FUNC.  Update setting of
11861         TYPE_SELF_TYPE.
11862
11863 2015-01-31  Doug Evans  <xdje42@gmail.com>
11864
11865         * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
11866         All uses updated.
11867
11868 2015-01-31  Doug Evans  <xdje42@gmail.com>
11869
11870         * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
11871         or unions.  Return zero if union.
11872         (gnuv3_get_vtable): Call check_typedef.  Assert only passed structs.
11873         (gnuv3_rtti_type): Pass already-check_typedef'd value to
11874         gnuv3_get_vtable.
11875         (compute_vtable_size): Assert only passed structs.
11876         (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
11877
11878 2015-01-31  Doug Evans  <xdje42@gmail.com>
11879
11880         * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
11881         kinds.
11882
11883 2015-01-31  Gary Benson <gbenson@redhat.com>
11884             Doug Evans  <dje@google.com>
11885
11886         PR cli/9007
11887         PR cli/11920
11888         PR cli/15548
11889         * cli/cli-cmds.c (complete_command): Notify user if max-completions
11890         reached.
11891         * common/common-exceptions.h (enum errors)
11892         <MAX_COMPLETIONS_REACHED_ERROR>: New value.
11893         * completer.h (get_max_completions_reached_message): New declaration.
11894         (max_completions): Likewise.
11895         (completion_tracker_t): New typedef.
11896         (new_completion_tracker): New declaration.
11897         (make_cleanup_free_completion_tracker): Likewise.
11898         (maybe_add_completion_enum): New enum.
11899         (maybe_add_completion): New declaration.
11900         (throw_max_completions_reached_error): Likewise.
11901         * completer.c (max_completions): New global variable.
11902         (new_completion_tracker): New function.
11903         (free_completion_tracker): Likewise.
11904         (make_cleanup_free_completion_tracker): Likewise.
11905         (maybe_add_completions): Likewise.
11906         (throw_max_completions_reached_error): Likewise.
11907         (complete_line): Remove duplicates and limit result to max_completions
11908         entries.
11909         (get_max_completions_reached_message): New function.
11910         (gdb_display_match_list): Handle max_completions.
11911         (_initialize_completer): New declaration and function.
11912         * symtab.c: Include completer.h.
11913         (completion_tracker): New static variable.
11914         (completion_list_add_name): Call maybe_add_completion.
11915         (default_make_symbol_completion_list_break_on_1): Renamed from
11916         default_make_symbol_completion_list_break_on.  Maintain
11917         completion_tracker across calls to completion_list_add_name.
11918         (default_make_symbol_completion_list_break_on): New function.
11919         * top.c (init_main): Set rl_completion_display_matches_hook.
11920         * tui/tui-io.c: Include completer.h.
11921         (tui_old_rl_display_matches_hook): New static global.
11922         (tui_rl_display_match_list): Notify user if max-completions reached.
11923         (tui_setup_io): Save/restore rl_completion_display_matches_hook.
11924         * NEWS (New Options): Mention set/show max-completions.
11925
11926 2015-01-31  Gary Benson  <gbenson@redhat.com>
11927
11928         * symtab.c (struct add_name_data) <code>: New field.
11929         Updated comments.
11930         (add_symtab_completions): New function.
11931         (symtab_expansion_callback): Likewise.
11932         (default_make_symbol_completion_list_break_on): Set datum.code.
11933         Move minimal symbol scan before calling expand_symtabs_matching.
11934         Scan known primary symtabs for externs and statics before calling
11935         expand_symtabs_matching.  Pass symtab_expansion_callback as
11936         expansion_notify argument to expand_symtabs_matching.  Do not scan
11937         primary symtabs for externs and statics after calling
11938         expand_symtabs_matching.
11939
11940 2015-01-31  Gary Benson  <gbenson@redhat.com>
11941
11942         * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
11943         (struct quick_symbol_functions) <expand_symtabs_matching>:
11944         New argument expansion_notify.  All uses updated.
11945         (expand_symtabs_matching): New argument expansion_notify.
11946         All uses updated.
11947         * symfile-debug.c (debug_qf_expand_symtabs_matching):
11948         Also print expansion notify.
11949         * symtab.c (expand_symtabs_matching_via_partial): Call
11950         expansion_notify whenever a partial symbol table is expanded.
11951         * dwarf2read.c (dw2_expand_symtabs_matching): Call
11952         expansion_notify whenever a symbol table is instantiated.
11953
11954 2015-01-31  Doug Evans  <xdje42@gmail.com>
11955
11956         * cli-out.c: #include completer.h, readline/readline.h.
11957         (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
11958         (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
11959         (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
11960         * cli-out.h (cli_display_match_list): Declare.
11961         * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
11962         (ELLIPSIS_LEN): Ditto.
11963         (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
11964         (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
11965         (gdb_fnprint, gdb_print_filename): Ditto.
11966         (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
11967         (gdb_display_match_list): Ditto.
11968         * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
11969         (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
11970         (mld_beep_ftype, mld_read_key_ftype): Ditto.
11971         (match_list_displayer): New struct.
11972         (gdb_display_match_list): Declare.
11973         * top.c (init_main): Set rl_completion_display_matches_hook.
11974         * tui/tui-io.c: #include completer.h.
11975         (printable_part, PUTX, print_filename, get_y_or_n): Delete.
11976         (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
11977         (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
11978         (tui_mld_getc, tui_mld_read_key): Ditto.
11979         (tui_rl_display_match_list): Rewrite.
11980         (tui_handle_resize_during_io): New arg for_completion.  All callers
11981         updated.
11982
11983 2015-01-31  Doug Evans  <xdje42@gmail.com>
11984
11985         Add symbol lookup cache.
11986         * NEWS: Document new options and commands.
11987         * symtab.c (symbol_cache_key): New static global.
11988         (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
11989         (SYMBOL_LOOKUP_FAILED): New macro.
11990         (symbol_cache_slot_state): New enum.
11991         (block_symbol_cache): New struct.
11992         (symbol_cache): New struct.
11993         (new_symbol_cache_size, symbol_cache_size): New static globals.
11994         (hash_symbol_entry, eq_symbol_entry): New functions.
11995         (symbol_cache_byte_size, resize_symbol_cache): New functions.
11996         (make_symbol_cache, free_symbol_cache): New functions.
11997         (get_symbol_cache, symbol_cache_cleanup): New function.
11998         (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
11999         (symbol_cache_lookup, symbol_cache_clear_slot): New function.
12000         (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
12001         (symbol_cache_flush, symbol_cache_dump): New functions.
12002         (maintenance_print_symbol_cache): New function.
12003         (maintenance_flush_symbol_cache): New function.
12004         (symbol_cache_stats): New function.
12005         (maintenance_print_symbol_cache_statistics): New function.
12006         (symtab_new_objfile_observer): New function.
12007         (symtab_free_objfile_observer): New function.
12008         (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
12009         (_initialize_symtab): Init symbol_cache_key.  New parameter
12010         maint symbol-cache-size.  New maint commands print symbol-cache,
12011         print symbol-cache-statistics, flush-symbol-cache.
12012         Install new_objfile, free_objfile observers.
12013
12014 2015-01-31  Joel Brobecker  <brobecker@adacore.com>
12015
12016         PR symtab/17855
12017         * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
12018         to end.
12019
12020 2015-01-31  Doug Evans  <xdje42@gmail.com>
12021
12022         * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
12023         * auto-load.c: #include ctype.h.
12024         (struct auto_load_pspace_info): Replace member loaded_scripts with
12025         new members loaded_script_files, loaded_script_texts.
12026         (auto_load_pspace_data_cleanup): Update.
12027         (init_loaded_scripts_info): Update.
12028         (get_auto_load_pspace_data_for_loading): Update.
12029         (maybe_add_script_file): Renamed from maybe_add_script.  All callers
12030         updated.
12031         (maybe_add_script_text): New function.
12032         (clear_section_scripts): Update.
12033         (source_script_file, execute_script_contents): New functions.
12034         (source_section_scripts): Add support for
12035         SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
12036         (print_scripts): New function.
12037         (auto_load_info_scripts): Also print inlined scripts.
12038         (maybe_print_unsupported_script_warning): Renamed from
12039         unsupported_script_warning_print.  All callers updated.
12040         (maybe_print_script_not_found_warning): Renamed from
12041         script_not_found_warning_print.  All callers updated.
12042         * extension-priv.h (struct extension_language_script_ops): New member
12043         objfile_script_executor.
12044         * extension.c (ext_lang_objfile_script_executor): New function.
12045         * extension.h (objfile_script_executor_func): New typedef.
12046         (ext_lang_objfile_script_executor): Declare.
12047         * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
12048         * guile/guile.c (guile_extension_script_ops): Update.
12049         * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
12050         * python/python.c (python_extension_script_ops): Update.
12051         (gdbpy_execute_objfile_script): New function.
12052
12053 2015-01-31  Eli Zaretskii  <eliz@gnu.org>
12054
12055         * tui/tui-io.c (tui_expand_tabs): New function.
12056         (tui_puts, tui_redisplay_readline): Expand TABs into the
12057         appropriate number of spaces.
12058         * tui/tui-regs.c: Include tui-io.h.
12059         (tui_register_format): Call tui_expand_tabs to expand TABs into
12060         the appropriate number of spaces.
12061         * tui/tui-io.h: Add prototype for tui_expand_tabs.
12062
12063 2015-01-30  Doug Evans  <dje@google.com>
12064
12065         * NEWS: "info source" command now display producer string if present.
12066         * source.c (source_info): Print producer string if present.
12067
12068 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12069
12070         * varobj.c (varobj_delete): Fix comment.
12071
12072 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12073
12074         * varobj.c (create_child): Modify comment.
12075
12076 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12077
12078         * ada-varobj.c (ada_number_of_children): Constify struct varobj *
12079         parameter.
12080         (ada_name_of_variable): Same.
12081         (ada_path_expr_of_child): Same.
12082         (ada_value_of_variable): Same.
12083         (ada_value_is_changeable_p): Same.
12084         (ada_value_has_mutated): Same.
12085         * c-varobj.c (varobj_is_anonymous_child): Same.
12086         (c_is_path_expr_parent): Same.
12087         (c_number_of_children): Same.
12088         (c_name_of_variable): Same.
12089         (c_path_expr_of_child): Same.
12090         (get_type): Same.
12091         (c_value_of_variable): Same.
12092         (cplus_number_of_children): Same.
12093         (cplus_name_of_variable): Same.
12094         (cplus_path_expr_of_child): Same.
12095         (cplus_value_of_variable): Same.
12096         * jv-varobj.c (java_number_of_children): Same.
12097         (java_name_of_variable): Same.
12098         (java_path_expr_of_child): Same.
12099         (java_value_of_variable): Same.
12100         * varobj.c (number_of_children): Same.
12101         (name_of_variable): Same.
12102         (is_root_p): Same.
12103         (varobj_ensure_python_env): Same.
12104         (varobj_get_objname): Same.
12105         (varobj_get_expression): Same.
12106         (varobj_get_display_format): Same.
12107         (varobj_get_display_hint): Same.
12108         (varobj_has_more): Same.
12109         (varobj_get_thread_id): Same.
12110         (varobj_get_frozen): Same.
12111         (dynamic_varobj_has_child_method): Same.
12112         (varobj_get_gdb_type): Same.
12113         (is_path_expr_parent): Same.
12114         (varobj_default_is_path_expr_parent): Same.
12115         (varobj_get_language): Same.
12116         (varobj_get_attributes): Same.
12117         (varobj_is_dynamic_p): Same.
12118         (varobj_get_child_range): Same.
12119         (varobj_value_has_mutated): Same.
12120         (varobj_get_value_type): Same.
12121         (number_of_children): Same.
12122         (name_of_variable): Same.
12123         (check_scope): Same.
12124         (varobj_editable_p): Same.
12125         (varobj_value_is_changeable_p): Same.
12126         (varobj_floating_p): Same.
12127         (varobj_default_value_is_changeable_p): Same.
12128
12129 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12130
12131         * varobj.c (varobj_get_path_expr): Set var->path_expr.
12132         * c-varobj.c (c_path_expr_of_child): Set local var instead of
12133         child->path_expr.
12134         (cplus_path_expr_of_child): Same.
12135
12136 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12137
12138         * mi-cmd-var.c (print_varobj): Free varobj_get_expression
12139         result.
12140         (mi_cmd_var_info_expression): Same.
12141         * varobj.c (varobj_get_expression): Mention in the comment that
12142         the result must by freed by the caller.
12143
12144 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12145
12146         * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
12147         varobj_get_type.
12148         (varobj_update_one): Same.
12149         * varobj.c (update_type_if_necessary): Free curr_type_str and
12150         new_type_str.
12151         (varobj_get_type): Specify in comment that the result needs to be
12152         freed by the caller.
12153
12154 2015-01-29  Doug Evans  <dje@google.com>
12155
12156         PR symtab/17890
12157         * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
12158
12159 2015-01-25  Mark Wielaard  <mjw@redhat.com>
12160
12161         * dwarf2read.c (checkproducer): Call producer_is_gcc.
12162         * utils.c (producer_is_gcc_ge_4): Likewise.
12163         (producer_is_gcc): New function.
12164         * utils.h (producer_is_gcc): New declaration.
12165
12166 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
12167
12168         * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
12169         kind.
12170         * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
12171         parameter by "addr_stack" parameter.
12172         (resolve_dynamic_range): Replace "addr" parameter by
12173         "stack_addr" parameter.  Update function documentation.
12174         Update code accordingly.
12175         (resolve_dynamic_array, resolve_dynamic_union)
12176         (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
12177         (resolve_dynamic_type): Update code, following the changes made
12178         to resolve_dynamic_type_internal's interface.
12179         * dwarf2loc.h (struct property_addr_info): New.
12180         (dwarf2_evaluate_property): Replace "address" parameter
12181         by "addr_stack" parameter.  Adjust function documentation.
12182         (struct dwarf2_offset_baton): New.
12183         (struct dwarf2_property_baton): Update documentation of
12184         field "referenced_type" to be more general. New field
12185         "offset_info" in union data field.
12186         * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
12187         parameter by "addr_stack" parameter.  Adjust code accordingly.
12188         Add support for PROP_ADDR_OFFSET properties.
12189         * dwarf2read.c (attr_to_dynamic_prop): Add support for
12190         DW_AT_data_member_location attributes as well.  Use case
12191         statements instead of if/else condition.
12192
12193 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
12194
12195         * ada-varobj.c (ada_varobj_get_array_number_of_children):
12196         Return zero if PARENT_VALUE is NULL and parent_type's
12197         range type is dynamic.
12198
12199 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
12200
12201         * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
12202         nonzero if the type's subtype is dynamic.
12203         (resolve_dynamic_range): Also resolve the range's subtype.
12204
12205 2015-01-29  Alexander Klimov  <alserkli@inbox.ru>  (tiny patch)
12206
12207         Pushed by Joel Brobecker  <brobecker@adacore.com>.
12208         * symfile.c (unmap_overlay_command): Initialize sec to NULL.
12209
12210 2015-01-27  Doug Evans  <dje@google.com>
12211
12212         * NEWS: Mention gdb.Objfile.username.
12213         * python/py-objfile.c (objfpy_get_username): New function.
12214         (objfile_getset): Add "username".
12215
12216 2015-01-24  Mark Wielaard  <mjw@redhat.com>
12217
12218         * stack.c (return_command): Markup warning message with _.
12219
12220 2015-01-24  Doug Evans  <xdje42@gmail.com>
12221
12222         * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
12223
12224 2015-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
12225
12226         Fix 100x slowdown regression on DWZ files.
12227         * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
12228         (struct line_header): Add offset and offset_in_dwz.
12229         (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
12230         (free_line_header_voidp): New declaration.
12231         (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
12232         functions.
12233         (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
12234         (handle_DW_AT_stmt_list): Use line_header_hash.
12235         (free_line_header_voidp): New function.
12236         (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
12237         (dwarf_decode_lines): New parameter decode_mapping, use it.
12238         (dwarf2_free_objfile): Free line_header_hash.
12239
12240 2015-01-23  Simon Marchi  <simon.marchi@ericsson.com>
12241
12242         PR gdb/17416
12243         * valops.c (value_rtti_indirect_type): Catch exception thrown by
12244         value_ind.
12245
12246 2015-01-15  Mark Wielaard  <mjw@redhat.com>
12247
12248         * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
12249         DW_AT_noreturn.
12250         * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
12251         calling_convention an 8 bit bit field.
12252         (TYPE_NO_RETURN): New macro.
12253         * infcmd.c (finish_command): Query if function does not return
12254         normally.
12255         * stack.c (return_command): Likewise.
12256
12257 2015-01-23  Pedro Alves  <palves@redhat.com>
12258
12259         * linux-nat.c (linux_is_async_p): New macro.
12260         (linux_nat_is_async_p):
12261         (linux_nat_terminal_inferior): Check whether the target can async
12262         instead of whether it is already async.
12263         (linux_nat_terminal_ours): Don't check whether the target is
12264         async.
12265         (linux_async_pipe): Use linux_is_async_p.
12266
12267 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
12268
12269         * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
12270         '-ascending'.
12271         * thread.c (tp_array_compar_ascending, tp_array_compar): New.
12272         (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
12273         Sort tp_array using tp_array_compar.
12274         (_initialize_thread): Extend thread_apply_all_command help.
12275
12276 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
12277
12278         * corelow.c (core_open): Call also thread_command.
12279         * gdbthread.h (thread_command): New prototype moved from ...
12280         * thread.c (thread_command): ... here.
12281         (thread_command): Make it global.
12282
12283 2015-01-22  Pedro Alves  <palves@redhat.com>
12284
12285         * configure.ac [*mingw32*]: Check $curses_found instead of
12286         $prefer_curses.
12287         * configure: Regenerate.
12288         * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
12289         HAVE_NCURSES_NCURSES_H checks.
12290
12291 2015-01-22  Eli Zaretskii  <eliz@gnu.org>
12292
12293         * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
12294         fails with the 1st arg NULL, try again with "unknown".  Don't test
12295         the "cup" capability: it isn't supported by the Windows port of
12296         ncurses, but the Windows console driver is still capable of
12297         supporting TUI.
12298
12299 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
12300
12301         * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
12302
12303 2015-01-22  Eli Zaretskii  <eliz@gnu.org>
12304
12305         * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
12306         (ALLDEPFILES): Remove irix5-nat.c.  These two are part of the
12307         reason that "make TAGS" is broken.
12308
12309 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
12310
12311         * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
12312         and check additional store instructions.
12313
12314 2015-01-21  Wei-cheng Wang  <cole945@gmail.com>
12315
12316         * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
12317
12318 2015-01-21  Wei-cheng Wang  <cole945@gmail.com>
12319
12320         * ppc-linux-tdep.c (ppc_skip_trampoline_code,
12321         ppc_canonicalize_syscall, ppc_linux_syscall_record,
12322         ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
12323         * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12324         * rs6000-tdep.c (rs6000_epilogue_frame_cache,
12325         rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
12326         rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
12327         ppc_process_record_op19, ppc_process_record_op31,
12328         ppc_process_record_op59, ppc_process_record_op60,
12329         ppc_process_record_op63): Likewise.
12330
12331 2015-01-20  Joel Brobecker  <brobecker@adacore.com>
12332
12333         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
12334         (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
12335         strerror.
12336
12337 2015-01-20  Wei-cheng Wang  <cole945@gmail.com>
12338
12339         * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
12340         ppc_process_record_op31, ppc_process_record_op59,
12341         ppc_process_record_op60, ppc_process_record_op63,
12342         ppc_process_record): Fix -Wformat warning.
12343         * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
12344         Remove unused variables.
12345
12346 2015-01-20  Chen Gang  <gang.chen.5i5j@gmail.com>
12347
12348         * MAINTAINERS (Write After Approval): Add "Chen Gang".
12349
12350 2015-01-19  Eli Zaretskii  <eliz@gnu.org>
12351
12352         * configure.ac [*mingw32*]: Only add windows-termcap.o to
12353         CONFIG_OBS if not building with a curses library.
12354         * configure: Regenerate.
12355
12356         * windows-termcap.c: Include defs.h.  Make the whole body empty if
12357         either one of HAVE_CURSES_H or HAVE_NCURSES_H or
12358         HAVE_NCURSES_NCURSES_H is defined.
12359
12360 2015-01-19  Joel Brobecker  <brobecker@adacore.com>
12361
12362         * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
12363         from end of line to start of next line.
12364
12365 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
12366
12367         * ppc-linux-tdep.c (ppc_skip_trampoline_code):
12368         Scan PLT stub backward for reverse debugging.
12369         * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12370
12371 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
12372             Ulrich Weigand  <uweigand@de.ibm.com>
12373
12374         * configure.tgt (powerpc*-*-linux): Add linux-record.o to
12375         gdb_target_obs.
12376         (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
12377         record.
12378         (ppc_canonicalize_syscall, ppc_linux_syscall_record,
12379         ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
12380         (ppc_linux_init_abi): Set process_record, process_record_signal.
12381         * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
12382         ppc_linux_record_tdep to gdbarch_tdep.
12383         (ppc_process_record): New declaration.
12384         * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
12385         ppc_process_record_op19, ppc_process_record_op31,
12386         ppc_process_record_op59, ppc_process_record_op60,
12387         ppc_process_record_op63, ppc_process_record): New functions.
12388
12389 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
12390
12391         * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
12392         rs6000_in_function_epilogue_frame_p and add an argument
12393         for frame_info.
12394         (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
12395         rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
12396         New functions.
12397         (rs6000_epilogue_frame_unwind): New.
12398         (rs6000_gdbarch_init): Append epilogue unwinder.
12399
12400 2015-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
12401
12402         * nat/linux-personality.c: Replace "#ifndef
12403         HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
12404         !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
12405         systems.
12406
12407 2015-01-16  Eli Zaretskii  <eliz@gnu.org>
12408
12409         * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
12410         functions.
12411         (_initialize_tui_win) <border-kind, border-mode>:
12412         <active-border-mode>: Use tui_set_var_cmd as the "set" function.
12413         (tui_set_tab_width_command): Fix the commentary.
12414
12415         * tui/tui-win.h: Add prototype for tui_rehighlight_all.
12416
12417         * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
12418         Doc fix.
12419         (tui_set_tab_width_command): Delete and recreate the source and
12420         the disassembly windows, to show the effect of the changed tab
12421         size immediately.
12422
12423         * tui/tui-data.h (LINE_PREFIX): Make shorter
12424         (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
12425         "Thread NNNNN.XXXX" thread ID notation on Windows.
12426
12427 2015-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
12428
12429         Fix gcc-5 compilation.
12430         * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
12431
12432 2015-01-15  Sergio Durigan Junior  <sergiodj@redhat.com>
12433
12434         * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
12435         (linux-personality.o): New rule.
12436         * common/common-defs.h: Include <stdint.h>.
12437         * config/aarch64/linux.mh (NATDEPFILES): Include
12438         linux-personality.o.
12439         * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
12440         * config/arm/linux.mh (NATDEPFILES): Likewise.
12441         * config/i386/linux64.mh (NATDEPFILES): Likewise.
12442         * config/i386/linux.mh (NATDEPFILES): Likewise.
12443         * config/ia64/linux.mh (NATDEPFILES): Likewise.
12444         * config/m32r/linux.mh (NATDEPFILES): Likewise.
12445         * config/m68k/linux.mh (NATDEPFILES): Likewise.
12446         * config/mips/linux.mh (NATDEPFILES): Likewise.
12447         * config/pa/linux.mh (NATDEPFILES): Likewise.
12448         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
12449         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
12450         * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
12451         * config/s390/linux.mh (NATDEPFILES): Likewise.
12452         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
12453         * config/sparc/linux.mh (NATDEPFILES): Likewise.
12454         * config/tilegx/linux.mh (NATDEPFILES): Likewise.
12455         * config/xtensa/linux.mh (NATDEPFILES): Likewise.
12456         * defs.h: Remove #include <stdint.h> (moved to
12457         common/common-defs.h).
12458         * linux-nat.c: Include nat/linux-personality.h.  Remove #include
12459         <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
12460         nat/linux-personality.c).
12461         (linux_nat_create_inferior): Remove code to disable address space
12462         randomization (moved to nat/linux-personality.c).  Create cleanup
12463         to disable address space randomization.
12464         * nat/linux-personality.c: New file.
12465         * nat/linux-personality.h: Likewise.
12466
12467 2015-01-15  Sergio Durigan Junior  <sergiodj@redhat.com>
12468
12469         * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
12470         common/posix-strerror.c.
12471         (posix-strerror.o): New rule.
12472         (mingw-strerror.o): Likewise.
12473         * common/common-utils.h (safe_strerror): Move prototype to here,
12474         from utils.h.
12475         * common/common.host: New file.
12476         * common/mingw-strerror.c: Likewise.
12477         * common/posix-strerror.c: Likewise.
12478         * configure: Regenerated.
12479         * configure.ac: Source common/common.host.  Add variable
12480         common_host_obs to gdb_host_obs.
12481         * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
12482         gdb/common/posix-strerror.c when warning about the use of
12483         strerror.
12484         * mingw-hdep.c (safe_strerror): Remove definition; move it to
12485         common/mingw-strerror.c.
12486         * posix-hdep.c (safe_strerror): Remove definition; move it to
12487         common/posix-hdep.c.
12488         * utils.h (safe_strerror): Remove prototype; move to
12489         common/common-utils.h.
12490
12491 2015-01-15  Joel Brobecker  <brobecker@adacore.com>
12492
12493         GDB 7.8.2 released.
12494
12495 2015-01-15  Joel Brobecker  <brobecker@adacore.com>
12496
12497         * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
12498         ___XA type if the array has already been fixed.
12499
12500 2015-01-14  Yao Qi  <yao@codesourcery.com>
12501
12502         * Makefile.in (ppc-linux.o): New rule.
12503         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
12504         * configure.ac: AC_CHECK_FUNCS(getauxval).
12505         * config.in: Re-generated.
12506         * configure: Re-generated.
12507         * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
12508         Declare.
12509         * nat/ppc-linux.c: New file.
12510         * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
12511         Call ppc64_64bit_inferior_p.
12512
12513 2015-01-14  Yao Qi  <yao@codesourcery.com>
12514
12515         * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
12516         nat/ppc-linux.h.
12517         (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
12518         (PPC_FEATURE_HAS_DFP): Likewise.
12519         (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
12520         (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
12521         (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
12522         Include "nat/ppc-linux.h".
12523         * nat/ppc-linux.h: New file.
12524         * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
12525
12526 2015-01-14  Pedro Alves  <palves@redhat.com>
12527
12528         PR gdb/17525
12529         * breakpoint.c: Include "interps.h".
12530         (bpstat_do_actions_1): Also check whether the interpreter is
12531         async.
12532
12533 2015-01-14  Pedro Alves  <palves@redhat.com>
12534
12535         PR cli/17828
12536         * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
12537         reinstall if the interpreter is sync.
12538
12539 2015-01-13  Doug Evans  <dje@google.com>
12540
12541         * objfiles.c (objfile_filename): New function.
12542         * objfiles.h (objfile_filename): Declare it.
12543         (objfile_name): Add function comment.
12544         * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
12545         bfd file name (which may be realpath'd), and the original name.
12546
12547 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12548
12549         * NEWS: Create a new section for the next release branch.
12550         Rename the section of the current branch, now that it has
12551         been cut.
12552
12553 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12554
12555         GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
12556         * version.in: Bump version to 7.9.50.DATE-cvs.
12557
12558 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12559
12560         * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
12561         Remove trailing new-line in argument of call to warning.
12562
12563 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12564
12565         * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
12566         new-line in argument of call to "warning".
12567
12568 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12569
12570         * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
12571         in static block, then try searching for primitive types.
12572
12573 2015-01-12  Patrick Palka  <patrick@parcs.ath.cx>
12574
12575         * top.h (gdb_add_history): Declare.
12576         * top.c (command_count): New variable.
12577         (gdb_add_history): New function.
12578         (gdb_safe_append_history): New static function.
12579         (quit_force): Call it.
12580         (command_line_input): Use gdb_add_history instead of
12581         add_history.
12582         * event-top.c (command_line_handler): Likewise.
12583
12584 2015-01-12  James Clarke  <jrtc27@jrtc27.com>  (tiny patch)
12585
12586         PR gdb/17046
12587         * darwin-nat.c: Replace <machine/setjmp.h> #include by
12588         <setjmp.h> #include.
12589
12590 2015-01-11  Doug Evans  <xdje42@gmail.com>
12591
12592         * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
12593
12594 2015-01-11  Doug Evans  <xdje42@gmail.com>
12595
12596         PR gdb/15830
12597         * NEWS: The "maint demangle" command is renamed as "demangle".
12598         * demangle.c: #include cli/cli-utils.h, language.h.
12599         (demangle_command): New function.
12600         (_initialize_demangle): Add new command "demangle".
12601         * maint.c (maintenance_demangle): Stub out.
12602         (_initialize_maint_cmds): Update help text for "maint demangle",
12603         and mark as deprecated.
12604
12605 2015-01-11  Mark Kettenis  <kettenis@gnu.org>
12606
12607         * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
12608         inferior_thread is a function.
12609
12610 2015-01-09  Patrick Palka  <patrick@parcs.ath.cx>
12611
12612         * Makefile.in (.y.c): Don't munge yacc's #line
12613         directives.
12614
12615 2015-01-09  Patrick Palka  <patrick@parcs.ath.cx>
12616
12617         * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
12618         to prompt for input.
12619         * tui/tui-hooks.c (tui_query_hook): Remove.
12620         (tui_install_hooks): Don't set deprecated_query_hook.
12621         * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
12622         height calculation.  Always update the command window's cur_line.
12623
12624 2015-01-09  Pedro Alves  <palves@redhat.com>
12625
12626         * breakpoint.c (hardware_breakpoint_inserted_here_p): New
12627         function.
12628         * breakpoint.h (hardware_breakpoint_inserted_here_p): New
12629         declaration.
12630         * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
12631         (linux_resume_one_lwp): Store the thread's PC.  Adjust to clear
12632         stop_reason.
12633         (check_stopped_by_watchpoint): New function.
12634         (save_sigtrap): Reimplement.
12635         (linux_nat_stopped_by_watchpoint): Adjust.
12636         (linux_nat_lp_status_is_event): Delete.
12637         (stop_wait_callback): Only call save_sigtrap after storing the
12638         pending status.
12639         (status_callback): If the thread had been stopped for a breakpoint
12640         that has since been removed, discard the event and resume the LWP.
12641         (count_events_callback, select_event_lwp_callback): Use
12642         lwp_status_pending_p instead of linux_nat_lp_status_is_event.
12643         (cancel_breakpoint): Rename to ...
12644         (check_stopped_by_breakpoint): ... this.  Record whether the LWP
12645         stopped for a software breakpoint or hardware breakpoint.
12646         (select_event_lwp): Only give preference to the stepping LWP in
12647         all-stop mode.  Adjust comments.
12648         (stop_and_resume_callback): Remove references to new_pending_p.
12649         (linux_nat_filter_event): Likewise.  Leave exit events of the
12650         leader thread pending here.  Handle signal short circuiting here.
12651         Only call save_sigtrap after storing the pending waitstatus.
12652         (linux_nat_wait_1): Remove 'retry' label.  Remove references to
12653         new_pending.  Don't handle leaving events the caller is not
12654         interested in pending here, nor handle signal short-circuiting
12655         here.  Also give equal priority to all LWPs that have had events
12656         in non-stop mode.  If reporting a software breakpoint event,
12657         unadjust the LWP's PC.
12658         * linux-nat.h (enum lwp_stop_reason): New.
12659         (struct lwp_info) <stop_pc>: New field.
12660         (struct lwp_info) <stopped_by_watchpoint>: Delete field.
12661         (struct lwp_info) <stop_reason>: New field.
12662         * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
12663
12664 2015-01-09  Pedro Alves  <palves@redhat.com>
12665
12666         * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
12667         Set the LWP's 'resumed' flag.
12668
12669 2015-01-09  Pedro Alves  <palves@redhat.com>
12670
12671         * linux-nat.c (linux_resume_one_lwp): New function.
12672         (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
12673         (linux_nat_resume): Use lwp_status_pending_p and
12674         linux_resume_one_lwp.
12675         (linux_handle_syscall_trap): Use linux_resume_one_lwp.
12676         (linux_handle_extended_wait): Use linux_resume_one_lwp.
12677         (status_callback, running_callback): Use lwp_status_pending_p.
12678         (lwp_status_pending_p): New function.
12679         (stop_and_resume_callback): Use lwp_status_pending_p.
12680         (linux_nat_filter_event): Use linux_resume_one_lwp.
12681         (linux_nat_wait_1): Always use status_callback to look for an LWP
12682         with a pending status.  Use linux_resume_one_lwp.
12683         (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
12684         linux_resume_one_lwp.
12685
12686 2015-01-09  Pedro Alves  <palves@redhat.com>
12687
12688         * breakpoint.c (bp_location_inserted_here_p): New function,
12689         factored out from ...
12690         (breakpoint_inserted_here_p): ... here.  Use
12691         ALL_BP_LOCATIONS_AT_ADDR.
12692         (software_breakpoint_inserted_here_p): Use
12693         bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
12694
12695 2014-01-09  Pedro Alves  <palves@redhat.com>
12696
12697         Skip enabling event reporting if the kernel supports
12698         PTRACE_EVENT_CLONE.
12699         * linux-thread-db.c: Include "nat/linux-ptrace.h".
12700         (thread_db_use_events): New function.
12701         (try_thread_db_load_1): Check thread_db_use_events before enabling
12702         event reporting.
12703         (update_thread_state): New function.
12704         (attach_thread): Use it.  Check thread_db_use_events before
12705         enabling event reporting.
12706         (thread_db_detach): Check thread_db_use_events before disabling
12707         event reporting.
12708         (find_new_threads_callback): Check thread_db_use_events before
12709         enabling event reporting.  Update the thread's state if not using
12710         libthread_db events.
12711
12712 2015-01-09  Pedro Alves  <palves@redhat.com>
12713
12714         * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
12715         about to wait for is > 0.
12716         * linux-thread-db.c (find_new_threads_callback): Ignore thread if
12717         the kernel thread ID is -1.
12718
12719 2015-01-09  Pedro Alves  <palves@redhat.com>
12720
12721         * linux-nat.c (attach_proc_task_lwp_callback): New function.
12722         (linux_nat_attach): Use linux_proc_attach_tgid_threads.
12723         (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
12724         ptrace option flags.
12725         * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
12726         field.
12727         * nat/linux-procfs.c: Include <dirent.h>.
12728         (linux_proc_get_int): New parameter "warn".  Handle it.
12729         (linux_proc_get_tgid): Adjust.
12730         (linux_proc_get_tracerpid): Rename to ...
12731         (linux_proc_get_tracerpid_nowarn): ... this.
12732         (linux_proc_pid_get_state): New function, factored out from
12733         (linux_proc_pid_has_state): ... this.  Add new parameter "warn"
12734         and handle it.
12735         (linux_proc_pid_is_gone): New function.
12736         (linux_proc_pid_is_stopped): Adjust.
12737         (linux_proc_pid_is_zombie_maybe_warn)
12738         (linux_proc_pid_is_zombie_nowarn): New functions.
12739         (linux_proc_pid_is_zombie): Use
12740         linux_proc_pid_is_zombie_maybe_warn.
12741         (linux_proc_attach_tgid_threads): New function.
12742         * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
12743         (linux_proc_get_tracerpid): Rename to ...
12744         (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
12745         (linux_proc_pid_is_gone): New declaration.
12746         (linux_proc_pid_is_zombie): Update comment.
12747         (linux_proc_pid_is_zombie_nowarn): New declaration.
12748         (linux_proc_attach_lwp_func): New typedef.
12749         (linux_proc_attach_tgid_threads): New declaration.
12750         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
12751         use nowarn functions.
12752         (linux_ptrace_attach_fail_reason_string): Move here from
12753         gdbserver/linux-low.c and rename.
12754         (ptrace_supports_feature): If the current ptrace options are not
12755         known yet, check them now, instead of asserting.
12756         * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
12757         Declare.
12758
12759 2015-01-09  Pedro Alves  <palves@redhat.com>
12760
12761         * linux-thread-db.c (thread_db_find_new_threads_silently)
12762         (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
12763         (find_new_threads_once): Print debug output on gdb_stdlog.
12764
12765 2015-01-09  Chen Gang  <gang.chen.5i5j@gmail.com>
12766             Pedro Alves  <palves@redhat.com>
12767
12768         * compile/compile.c: Include "gdb_wait.h".
12769         (do_rmdir): Check return value, and free 'zap'.
12770
12771 2015-01-08  Pedro Alves  <palves@redhat.com>
12772             Yao Qi  <yao@codesourcery.com>
12773
12774         * dwarf2loc.c (indirect_pieced_value): Don't call
12775         gdb_sign_extend.  Call extract_signed_integer instead.
12776         * utils.c (gdb_sign_extend): Remove.
12777         * utils.h (gdb_sign_extend): Remove declaration.
12778
12779 2015-01-07  Pierre Muller  <muller@sourceware.org>
12780
12781         PR symtab/17811
12782         * stabsread.c (define_symbol): Set language for C++ special symbols.
12783
12784 2015-01-07  Patrick Palka  <patrick@parcs.ath.cx>
12785
12786         * inflow.c (initial_gdb_ttystate): Tweak comment.
12787
12788 2015-01-07  Joel Brobecker  <brobecker@adacore.com>
12789
12790         * inflow.c (set_initial_gdb_ttystate): Add empty line after
12791         comment documenting function.
12792
12793 2015-01-07  Patrick Palka  <patrick@parcs.ath.cx>
12794
12795         * terminal.h (set_initial_gdb_ttystate): Declare.
12796         * inflow.c (initial_gdb_ttystate): New static variable.
12797         (set_initial_gdb_ttystate): New setter.
12798         (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
12799         instead of our current terminal state.
12800         * top.c (gdb_init): Call set_initial_gdb_ttystate.
12801
12802 2015-01-07  Joel Brobecker  <brobecker@adacore.com>
12803
12804         * guile/scm-type.c (tyscm_array_1): Add comment.
12805         * python/py-type.c (typy_array_1): Add comment.
12806
12807 2015-01-06  Joel Brobecker  <brobecker@adacore.com>
12808
12809         * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
12810         error if N2 is equal to N1 - 1.
12811
12812 2015-01-06  Joel Brobecker  <brobecker@adacore.com>
12813
12814         * python/py-type.c (typy_array_1): Do not raise negative-length
12815         exception if N2 is equal to N1 - 1.
12816
12817 2015-01-03  Doug Evans  <xdje42@gmail.com>
12818
12819         * c-exp.y: Whitespace cleanup.
12820         (classify_inner_name): Remove extra ;.
12821
12822 2015-01-02  Maciej W. Rozycki  <macro@codesourcery.com>
12823
12824         * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
12825         offset signed.
12826
12827 2015-01-02  Doug Evans  <dje@google.com>
12828
12829         * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
12830
12831 2015-01-02  Doug Evans  <dje@google.com>
12832
12833         * symtab.h (struct symbol): Fix typo in comment.
12834
12835 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
12836
12837         Update year range in copyright notice of all files.
12838
12839 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
12840
12841         * top.c (print_gdb_version): Update copyright year to 2015.
12842
12843 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
12844
12845         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
12846
12847 For older changes see ChangeLog-2014.
12848 \f
12849 Local Variables:
12850 mode: change-log
12851 left-margin: 8
12852 fill-column: 74
12853 version-control: never
12854 coding: utf-8
12855 End: