target_ops mask_watchpoint: change int to target_hw_bp_type
[external/binutils.git] / gdb / ChangeLog
1 2015-11-03  Simon Marchi  <simon.marchi@polymtl.ca>
2
3         * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint): Change
4         type of rw to enum target_hw_bp_type.
5         (ppc_linux_remove_mask_watchpoint): Likewise.
6         * target.c (target_insert_mask_watchpoint): Likewise.
7         (target_remove_mask_watchpoint): Likewise.
8         * target.h (target_insert_mask_watchpoint): Likewise.
9         (target_remove_mask_watchpoint): Likewise.
10         (struct target_ops) <to_insert_mask_watchpoint>: Likewise.
11         (struct target_ops) <to_remove_mask_watchpoint>: Likewise.
12         * target-delegates.c: Regenerate.
13
14 2015-11-03  Simon Marchi  <simon.marchi@polymtl.ca>
15
16         * remote-sim.c (check_for_duplicate_sim_descriptor): Add casts.
17         (get_sim_inferior_data): Likewise.
18         (sim_inferior_data_cleanup): Likewise.
19         (gdbsim_close_inferior): Likewise.
20         (gdbsim_resume_inferior): Likewise.
21         (gdbsim_wait): Likewise.
22         (simulator_command): Likewise.
23         (sim_command_completer): Likewise.
24
25 2015-11-03  Marcin Kościelnicki  <koriakin@0x04.net>
26
27         * MAINTAINERS (Write After Approval): Add Marcin Kościelnicki.
28
29 2015-10-30  Pedro Alves  <palves@redhat.com>
30
31         * breakpoint.c (breakpoint_in_range_p)
32         (breakpoint_location_address_range_overlap): New functions.
33         * breakpoint.h (breakpoint_in_range_p): New declaration.
34         * infrun.c (displaced_step_prepare_throw): If there's a breakpoint
35         in the scratch pad range, don't displaced step.
36
37 2015-10-30  Marcin Kościelnicki  <koriakin@0x04.net>
38
39         * amd64-linux-tdep.c (amd64_x32_linux_init_abi): Fix size_msghdr,
40         size_stack_t, size_size_t, size_iovec.
41
42 2015-10-30  Marcin Kościelnicki  <koriakin@0x04.net>
43
44         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Fix size_termios.
45         * amd64-linux-tdep.c (amd64_linux_init_abi): Fix size_termios.
46         (amd64_x32_linux_init_abi): Fix size_termios.
47
48 2015-10-30  Marcin Kościelnicki  <koriakin@0x04.net>
49
50         * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Fix TASK_COMM_LEN.
51
52 2015-10-30  Marcin Kościelnicki  <koriakin@0x04.net>
53
54         * linux-record.c (record_linux_system_call): Fix old_select.
55
56 2015-10-30  Marcin Kościelnicki  <koriakin@0x04.net>
57
58         * linux-record.c (record_linux_system_call): Fix newstatat.
59
60 2015-10-30  Marcin Kościelnicki  <koriakin@0x04.net>
61
62         * linux-record.c (record_linux_system_call): Fix [gs]etgroups16.
63
64 2015-10-30  Marcin Kościelnicki  <koriakin@0x04.net>
65
66         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add size_time_t.
67         * amd64-linux-tdep.c (amd64_linux_init_abi): Add size_time_t.
68         (amd64_x32_linux_init_abi): Add size_time_t.
69         * arm-linux-tdep.c (arm_linux_init_abi): Add size_time_t.
70         * i386-linux-tdep.c (i386_linux_init_abi): Add size_time_t.
71         * linux-record.c (record_linux_system_call): Add time, waitpid, pipe
72         handling.
73         * linux-record.h (struct linux_record_tdep): Add size_time_t.
74         * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Add size_time_t.
75
76 2015-10-30  Marcin Kościelnicki  <koriakin@0x04.net>
77
78         * linux-record.c (record_linux_msghdr): Fix msg_namelen handling.
79
80 2015-10-30  Marcin Kościelnicki  <koriakin@0x04.net>
81
82         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Remove
83         size_dirent{,64}, add size_old_dirent.
84         * amd64-linux-tdep.c (amd64_linux_init_abi): Remove size_dirent{,64},
85         add size_old_dirent.
86         (amd64_x32_linux_init_abi): Remove size_dirent{,64}, add
87         size_old_dirent.
88         * arm-linux-tdep.c (arm_linux_init_abi): Remove size_dirent{,64},
89         add size_old_dirent.
90         * i386-linux-tdep.c (i386_linux_init_abi): Remove size_dirent{,64},
91         add size_old_dirent.
92         * linux-record.c (record_linux_system_call): Fix handling of readdir
93         and getdents{,64}.
94         * linux-record.h (struct linux_record_tdep): Remove size_dirent{,64},
95         add size_old_dirent.
96         * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Remove
97         size_dirent{,64}, add size_old_dirent.
98
99 2015-10-30  Marcin Kościelnicki  <koriakin@0x04.net>
100
101         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Fix size_sigaction,
102         size_sigset_t, size_old_sigaction, size_old_sigset_t.
103         * amd64-linux-tdep.c (amd64_linux_init_abi): Fix size_sigaction,
104         size_sigset_t, size_old_sigaction, size_old_sigset_t.
105         (amd64_x32_linux_init_abi): Fix size_sigaction, size_sigset_t,
106         size_old_sigaction, size_old_sigset_t.
107         * arm-linux-tdep.c (arm_linux_init_abi): Fix size_sigaction,
108         size_old_sigaction, size_old_sigset_t.
109         * i386-linux-tdep.c (i386_linux_init_abi): Fix size_sigaction,
110         size_old_sigaction, size_old_sigset_t.
111         * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Fix size_sigaction,
112         size_sigset_t, size_old_sigaction, size_old_sigset_t.
113
114 2015-10-30  Marcin Kościelnicki  <koriakin@0x04.net>
115
116         * arm-linux-tdep.c (arm_linux_init_abi): Fix size_[ug]id.
117         * i386-linux-tdep.c (i386_linux_init_abi): Fix size_[ug]id.
118
119 2015-10-30  Marcin Kościelnicki  <koriakin@0x04.net>
120
121         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Remove size_siginfo.
122         * amd64-linux-tdep.c (amd64_linux_init_abi): Remove size_siginfo.
123         (amd64_x32_linux_init_abi): Remove size_siginfo.
124         * arm-linux-tdep.c (arm_linux_init_abi): Remove size_siginfo.
125         * i386-linux-tdep.c (i386_linux_init_abi): Remove size_siginfo.
126         * linux-record.c (record_linux_system_call): Change size_siginfo
127         to size_siginfo_t.
128         * linux-record.h (struct linux_record_tdep): Remove size_siginfo.
129         * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Remove size_siginfo.
130
131 2015-10-29  Pedro Alves  <palves@redhat.com>
132
133         * mdebugread.c (add_data_symbol): New function, factored out from
134         ...
135         (parse_symbol): ... here.  Delete 'theclass' local.
136
137 2015-10-29  Simon Marchi  <simon.marchi@polymtl.ca>
138
139         * jit.c (jit_target_read_impl): Add cast.
140
141 2015-10-29  Simon Marchi  <simon.marchi@polymtl.ca>
142
143         * jit.c (jit_reader_load): Add cast.
144
145 2015-10-29  Simon Marchi  <simon.marchi@polymtl.ca>
146
147         * dwarf2read.c (partial_die_full_name): Add cast.
148
149 2015-10-29  Pedro Alves  <palves@redhat.com>
150
151         * common/vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
152
153 2015-10-29  Pedro Alves  <palves@redhat.com>
154
155         * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Add cast.
156
157 2015-10-29  Eli Zaretskii  <eliz@gnu.org>
158
159         * utils.c (init_page_info): Disable paging if INSIDE_EMACS is set
160         in the environment.
161
162 2015-10-29  Pedro Alves  <palves@redhat.com>
163
164         * gnu-v2-abi.c (gnuv2_is_destructor_name)
165         (gnuv2_is_constructor_name): Add casts.
166
167 2015-10-29  Pedro Alves  <palves@redhat.com>
168
169         * common/common-exceptions.c (exception_none): Add cast.
170
171 2015-10-29  Pedro Alves  <palves@redhat.com>
172
173         * compile/compile-c-types.c (struct type_map_instance)
174         <gcc_type>: Rename to gcc_type_handle.
175         (insert_type, convert_type): Adjust.
176
177 2015-10-29  Pedro Alves  <palves@redhat.com>
178
179         * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Don't
180         assume that "break" breaks out of a TRY/CATCH.
181         * python/py-framefilter.c (py_print_single_arg): Don't assume
182         "continue" breaks out of a TRY/CATCH.
183         * python/py-value.c (valpy_binop_throw): New function, factored
184         out from ...
185         (valpy_binop): ... this.
186         (valpy_richcompare_throw): New function, factored
187         out from ...
188         (valpy_richcompare): ... this.
189         * solib.c (solib_read_symbols): Don't assume "break" breaks out
190         of a TRY/CATCH.
191         * common/common-exceptions.h [USE_RAW_CXX_TRY]
192         <TRY/CATCH/END_CATCH>: Define as 1-1 wrappers around try/catch.
193
194 2015-10-28  Simon Dardis  <Simon.Dardis@imgtec.com>
195
196         * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Recognise 'or'
197         as move along with [d]addu.
198
199 2015-10-28  Yao Qi  <yao.qi@linaro.org>
200
201         * aarch64-tdep.c (aarch64_software_single_step): Pass 1 to
202         aarch64_decode_insn.
203
204 2015-10-27  Pedro Alves  <palves@redhat.com>
205
206         * common/print-utils.c (host_address_to_string): Rename to ...
207         (host_address_to_string_1): ... this.
208         * common/print-utils.h (host_address_to_string): Reimplement as
209         wrapper around host_address_to_string_1.
210         * utils.c (gdb_print_host_address): Rename to ...
211         (gdb_print_host_address_1): ... this.
212         * utils.h (gdb_print_host_address): Reimplement as wrapper macro
213         around  host_address_to_string_1.
214
215 2015-10-27  Pedro Alves  <palves@redhat.com>
216
217         * alpha-tdep.c (alpha_read_insn): Always pass TARGET_XFER_E_IO to
218         memory_error.  Rename local 'status' to 'res'.
219         * c-lang.c (c_get_string): Always pass TARGET_XFER_E_IO to
220         memory_error.
221         * corefile.c (read_stack, read_code, write_memory): Always pass
222         TARGET_XFER_E_IO to memory_error.
223         * disasm.c (dis_asm_memory_error): Always pass TARGET_XFER_E_IO to
224         memory_error.  Rename parameter 'status' to 'err'.
225         (dump_insns): Rename local 'status' to 'err'.
226         * mips-tdep.c (mips_fetch_instruction): Rename parameter 'statusp'
227         to 'errp'.  Rename local 'status' to 'err'.  Always pass
228         TARGET_XFER_E_IO to memory_error.
229         (mips_breakpoint_from_pc): Rename local 'status' to 'err'.
230         * target.c (target_read_memory, target_read_raw_memory)
231         (target_read_stack, target_read_code, target_write_memory)
232         (target_write_raw_memory): Return -1 on error instead of
233         TARGET_XFER_E_IO.
234         * valprint.c (val_print_string): Rename local 'errcode' to 'err'.
235         Always pass TARGET_XFER_E_IO to memory_error.  Update comment.
236
237 2015-10-27  Simon Marchi  <simon.marchi@polymtl.ca>
238
239         * guile/guile-internal.h (gdbscm_with_guile): Change return
240         types to const char *.
241         * guile/scm-safe-call.c (gdbscm_with_guile): Likewise.
242         (struct c_data) <func>: Likewise.
243         (struct c_data) <result>: Change type to const char *.
244         (scscm_eval_scheme_string): Change return type to
245         const char *.
246         (scscm_source_scheme_script): Likewise.
247         (gdbscm_safe_eval_string): Change type of result variable to
248         const char * and remove cast.
249         (gdbscm_safe_source_script): Likewise.
250         * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker):
251         Change return type to const char *.
252         (gdbscm_disasm_read_memory): Change type of status to
253         const char *.
254
255 2015-10-27  Pedro Alves  <palves@redhat.com>
256
257         * source.c (openp): New local 'last_errno'.  Use it to
258         save/restore errno.
259
260 2015-10-27  Pedro Alves  <palves@redhat.com>
261
262         * psymtab.c (dump_psymtab_addrmap_1): Add casts.
263
264 2015-10-27  Simon Marchi  <simon.marchi@polymtl.ca>
265
266         * ctf.c (SET_ENUM_FIELD): New macro.
267         (ctf_read_status): Use it.
268         (ctf_read_tp): Use it.
269
270 2015-10-27  Simon Marchi  <simon.marchi@polymtl.ca>
271
272         * guile/scm-breakpoint.c (gdbscm_set_breakpoint_stop_x): Add
273         scm_t_dynwind_flags casts.
274         * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
275         * guile/scm-ports.c (gdbscm_open_memory): Likewise.
276         * guile/scm-value.c (gdbscm_value_to_string): Likewise.
277
278 2015-10-27  Simon Marchi  <simon.marchi@polymtl.ca>
279
280         * ax.h (ax_raw_byte): New declaration.
281         * ax-general.c (ax_raw_byte): New function.
282         (ax_simple): Use ax_raw_byte.
283         * ax-gdb.c (gen_printf): Likewise.
284
285 2015-10-27  Simon Marchi  <simon.marchi@polymtl.ca>
286
287         * ada-lang.h (GROW_VECT): Add cast.
288
289 2015-10-26  Doug Evans  <xdje42@gmail.com>
290
291         * symtab.h (struct general_symbol_info> <ada_mangled>: Update comment.
292
293 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
294
295         * target.c (memory_xfer_partial): Change type of buf to gdb_byte
296         pointer.
297         (simple_search_memory): Cast return of memmem.
298
299 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
300
301         * stap-probe.c (handle_stap_probe): Add (const char *) casts.
302
303 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
304
305         * ctf.c (ctf_xfer_partial): Return TARGET_XFER_E_IO instead of
306         -1 on error.
307
308 2015-10-26  Doug Evans  <dje@google.com>
309
310         PR symtab/17391
311         * dwarf2-frame.c (dwarf2_restore_rule): Call dwarf_reg_to_regnum
312         instead of gdbarch_dwarf2_reg_to_regnum.
313         (dwarf2_frame_cache): Ditto.
314         (read_addr_from_reg): Call dwarf_reg_to_regnum_or_error instead of
315         gdbarch_dwarf2_reg_to_regnum.
316         (get_reg_value): Ditto.
317         (dwarf2_fetch_cfa_info): Ditto.
318         (dwarf2_frame_prev_register): Ditto.
319         * dwarf2loc.c: #include "complaints.h".
320         (dwarf_expr_read_addr_from_reg): Call dwarf_reg_to_regnum_or_error
321         instead of gdbarch_dwarf2_reg_to_regnum.
322         (dwarf_expr_get_reg_value): Ditto.
323         (read_pieced_value): Ditto.
324         (write_pieced_value): Ditto.
325         (dwarf2_evaluate_loc_desc_full): Ditto.
326         (dwarf_reg_to_regnum): New function.
327         (throw_bad_regnum_error): New function.
328         (dwarf_reg_to_regnum_or_error): Renamed from
329         dwarf2_reg_to_regnum_or_errorChange to take a ULONGEST regnum.
330         All callers updated.  Call throw_bad_regnum_error.
331         (locexpr_regname): Improve text of bad register number.
332         * dwarf2loc.h (dwarf_reg_to_regnum): Declare.
333         (dwarf_reg_to_regnum_or_error): Update prototype.
334         * dwarf2expr.c: #include "dwarf2loc.h".
335         (dwarf_block_to_sp_offset): Call dwarf_reg_to_regnum instead of
336         gdbarch_dwarf2_reg_to_regnum.
337         * gdbarch.sh (dwarf2_reg_to_regnum): Add comment.
338         * gdbarch.h: Regenerate.
339         * amd64-tdep.c (amd64_dwarf_reg_to_regnum): Remove warning for bad
340         register.
341         * avr-tdep.c (avr_dwarf_reg_to_regnum): Ditto.
342         * cris-tdep.c (cris_dwarf2_reg_to_regnum): Ditto.
343         * bfin-tdep.c (bfin_reg_to_regnum): Fix error checking.
344         * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum): Improve error checking.
345         Remove warning for bad register.
346         * hppa-tdep.c (hppa64_dwarf_reg_to_regnum): Ditto.
347         * i386-tdep.c (i386_svr4_dwarf_reg_to_regnum): Renamed from
348         i386_svr4_reg_to_regnum.  Return -1 for bad registers.
349         (i386_svr4_reg_to_regnum): New function.
350         (i386_gdbarch_init): Update call to set_gdbarch_dwarf2_reg_to_regnum.
351         * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Don't assert
352         on bad registers, return -1.
353         * msp430-tdep.c (msp430_dwarf2_reg_to_regnum): Improve error checking.
354         Remove warning for bad register.
355         * nios2-tdep.c: Add static assert for NIOS2_NUM_REGS.
356         (nios2_dwarf_reg_to_regnum): Fix off-by-one error.
357         Remove warning for bad register.  Return -1 for bad register.
358         * rl78-tdep.c (rl78_dwarf_reg_to_regnum): Don't flag an internal error
359         for bad register, return -1.
360         * rx-tdep.c (rx_dwarf_reg_to_regnum): Ditto.
361         * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Fix error result.
362         * mep-tdep.c (mep_debug_reg_to_regnum): Ditto.
363         * mips-tdep.c (mips_stab_reg_to_regnum): Ditto.
364         (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
365         * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Remove warning
366         for bad regs.
367         * xtensa-tdep.c (xtensa_reg_to_regnum): Remove internal error for
368         bad regs.  Fix error result.
369         * stabsread.c (stab_reg_to_regnum): Watch for negative regno.
370         (reg_value_complaint): Update complaint text.
371         * mdebugread.c (reg_value_complaint): New function.
372         (mdebug_reg_to_regnum): Rewrite to watch for bad reg numbers.
373
374 2015-10-26  Doug Evans  <dje@google.com>
375
376         PR python/18938
377         * cli/cli-cmds (source_script_fron_sctream): New arg file_to_open.
378         All callers updated.
379
380 2015-10-26  Doug Evans  <dje@google.com>
381
382         * psymtab.c (struct dump_psymtab_addrmap_data): Define.
383         (dump_psymtab_addrmap_1, dump_psymtab_addrmap): New functions.
384         (maintenance_print_psymbols): Print address map.
385
386 2015-10-26  Doug Evans  <dje@google.com>
387
388         * nat/linux-nat.h (__SIGRTMIN): Move here from gdbserver/linux-low.c.
389
390 2015-10-26  Doug Evans  <dje@google.com>
391
392         * common/gdb_wait.h (W_STOPCODE): Define, moved here from
393         gdbserver/linux-low.c.
394         (WSETSTOP): Simplify.
395
396 2015-10-26  Doug Evans  <dje@google.com>
397
398         * linux-thread-db.c (find_new_threads_callback): Ditto.
399         (thread_db_pid_to_str): Ditto.
400
401 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
402
403         * guile/scm-ports.c (ioscm_make_gdb_stdio_port): Do not pass a
404         local char array to scm_mode_bits, use a cast instead.
405
406 2015-10-26  Simon Marchi  <simon.marchi@ericsson.com>
407
408         * tui/tui-data.c (tui_alloc_content): Don't check xmalloc
409         result.  Change type of element_block_ptr.  Change allocation to
410         use XNEWVEC.
411
412 2015-10-26  Luis Machado  <lgustavo@codesourcery.com>
413
414         * record-full.c (record_full_message_wrapper_safe): Pass empty string to
415         catch_errors call instead of NULL.
416
417 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
418
419         * guile/scm-ports.c (ioscm_make_gdb_stdio_port): Pass non-const
420         char pointer to scm_mode_bits.
421
422 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
423
424         * symtab.c (default_make_symbol_completion_list_break_on_1): Add
425         cast.
426
427 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
428
429         * guile/scm-ports.c (gdbscm_memory_port_write): Declare new
430         "data" local variable and use it.
431
432 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
433
434         * guile/scm-symbol.c (gdbscm_lookup_global_symbol): Add
435         domain_enum cast.
436         (gdbscm_lookup_symbol): Likewise.
437
438 2015-10-25  Iain Buclaw  <ibuclaw@gdcproject.org>
439
440         * d-exp.y: Remove an obsolete comment and propagate the block
441         information to the produced expression.
442
443 2015-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
444
445         * tui/tui-data.c (tui_add_to_source_windows): Remove void *
446         cast.
447         (tui_add_content_elements): Likewise.
448
449 2015-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
450
451         * cli/cli-setshow.c (do_set_command): Constify p.
452
453 2015-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
454
455         * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Replace
456         (void *) cast with (gdb_byte *).
457
458 2015-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
459
460         * proc-service.c (ps_pdread): Add cast.
461
462 2015-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
463
464         * sparc64-tdep.c (sparc64_store_arguments): Split assignment of
465         valbuf.
466
467 2015-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
468
469         * ia64-tdep.c (ia64_pseudo_register_write): Remove cast.
470         (ia64_push_dummy_call): Remove cast and change type of "to" to
471         array of gdb_byte.
472
473 2015-10-23  Simon Marchi  <simon.marchi@polymtl.ca>
474
475         * linux-btrace.c (linux_enable_pt): Add cast to mmap return.
476
477 2015-10-23  Simon Marchi  <simon.marchi@ericsson.com>
478
479         * observer.h (observer_${event}_notification_stub): Add cast.
480
481 2015-10-23  Yao Qi  <yao.qi@linaro.org>
482
483         * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Set
484         dsd.insn_count to zero.
485
486 2015-10-22  Pedro Alves  <palves@redhat.com>
487
488         * infrun.c (stop_after_trap): Delete.
489         (clear_proceed_status, handle_signal_stop, struct
490         infcall_control_state, save_infcall_control_state)
491         (restore_infcall_control_state): Remove references to
492         stop_after_trap.
493
494 2015-10-22  Simon Marchi  <simon.marchi@ericsson.com>
495
496         * python/python.c (_initialize_python): Add cast.
497
498 2015-10-22  Simon Marchi  <simon.marchi@ericsson.com>
499
500         * nto-tdep.c (nto_inferior_data): Add cast.
501
502 2015-10-22  Pedro Alves  <palves@redhat.com>
503
504         * windows-nat.c (do_initial_windows_stuff): Rewrite loop using
505         windows_wait and windows_resume directly instead of
506         wait_for_inferior and resume.
507
508 2015-10-22  Simon Marchi  <simon.marchi@polymtl.ca>
509
510         * xtensa-tdep.h (XTREG): Add casts.
511         (XTREG_END): Likewise.
512
513 2015-10-22  Simon Marchi  <simon.marchi@polymtl.ca>
514
515         * solib-spu.c (spu_bfd_iovec_pread): Add (gdb_byte *) cast.
516
517 2015-10-22  Simon Marchi  <simon.marchi@polymtl.ca>
518
519         * rs6000-tdep.c (variants): Add (enum bfd_architecture) cast.
520
521 2015-10-22  Simon Marchi  <simon.marchi@polymtl.ca>
522
523         * mips-linux-tdep.c (mips64_linux_get_longjmp_target): Change type of
524         buf to gdb_byte*.
525         (supply_32bit_reg): Add cast.
526         (mips64_fill_gregset): Likewise.
527
528 2015-10-21  Simon Marchi  <simon.marchi@polymtl.ca>
529
530         PR python/18073
531         * python/py-type.c (typy_get_composite): Allow returning a
532         function type.
533
534 2015-10-21  Keven Boell  <keven.boell@intel.com>
535
536         * dwarf2read.c (set_die_type): Add read of
537         DW_AT_allocated and DW_AT_associated.
538         * f-typeprint.c: New include of typeprint.h
539         (f_print_type): Add check for allocated/associated
540         status of type.
541         (f_type_print_varspec_suffix): Add check for
542         * gdbtypes.c (create_array_type_with_stride):
543         Add check for valid data location of type in
544         case allocated or associated attributes are set.
545         Length of an array should be only calculated if
546         allocated or associated is resolved as true.
547         (is_dynamic_type_internal): Add check for allocated/
548         associated.
549         (resolve_dynamic_array): Evaluate allocated/associated
550         properties.
551         * gdbtypes.h (enum dynamic_prop_node_kind): <DYN_PROP_ALLOCATED>
552         <DYN_PROP_ASSOCIATED>: New enums.
553         (TYPE_ALLOCATED_PROP, TYPE_ASSOCIATED_PROP): New macros.
554         (type_not_allocated): New function.
555         (type_not_associated): New function.
556         * valarith.c (value_subscripted_rvalue): Add check for
557         allocated/associated.
558         * valprint.c: New include of typeprint.h.
559         (valprint_check_validity): Add check for allocated/associated.
560         (value_check_printable): Add check for allocated/
561         associated.
562         * typeprint.h (val_print_not_allocated): New function.
563         (val_print_not_associated): New function.
564         * typeprint.c (val_print_not_allocated): New function.
565         (val_print_not_associated): New function.
566
567 2015-10-21  Antoine Tremblay  <antoine.tremblay@ericsson.com>
568
569         * Makefile.in: Add arm.c/o.
570         * arch/arm.c: New file.
571         * arch/arm.h: (IS_THUMB_ADDR): Move macro from arm-tdep.c.
572         (MAKE_THUMB_ADDR): Likewise.
573         (UNMAKE_THUMB_ADDR): Likewise.
574         * arm-tdep.c (int thumb_insn_size): Move to arm.c.
575         (IS_THUMB_ADDR): Move to arm.h.
576         (MAKE_THUMB_ADDR): Likewise.
577         (UNMAKE_THUMB_ADDR): Likewise.
578         * configure.tgt: Add arm.o to all ARM configs.
579
580 2015-10-21  Yao Qi  <yao.qi@linaro.org>
581
582         * lib/range-stepping-support.exp (exec_cmd_expect_vCont_count):
583         Remove argument exp_vCont_s.
584         * gdb.base/range-stepping.exp: Callers updated.
585         * gdb.trace/range-stepping.exp: Likewise.
586
587 2015-10-21  Aleksandar Ristovski  <aristovski@qnx.com>
588
589         * gdb/nto-tdep.c (QNX_NOTE_NAME, QNX_INFO_SECT_NAME): New defines.
590         (nto_sniff_abi_note_section): New function.
591         (nto_elf_osabi_sniffer): Use new function to recognize nto specific
592         binary.
593
594 2015-10-21  Aleksandar Ristovski  <aristovski@qnx.com>
595
596         * nto-procfs.c (procfs_wait): Set stopped_flags nad stopped_pc.
597         (procfs_stopped_by_watchpoint): Use flags stored in inferior data.
598         * nto-tdep.c (nto_new_inferior_data_reg): New definition.
599         (nto_new_inferior_data, nto_inferior_data_cleanup, nto_inferior_data):
600         New functions.
601         (_initialize_nto_tdep): New forward declaration, new function.
602         * nto-tdep.h (struct nto_inferior_data): New struct.
603         (nto_inferior_data): New function declaration.
604
605 2015-10-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
606
607         * findvar.c (address_from_register): Check REGNUM validity.
608
609 2015-10-20  Aleksandar Ristovski  <aristovski@qnx.com>
610
611         * gdb/nto-procfs.c (procfs_pid_to_exec_file): New function.
612         (init_procfs_targets): Wire new function.
613
614 2015-10-20  Aleksandar Ristovski  <aristovski@qnx.com>
615
616         * nto-procfs.c (sys/auxv.h): Include.
617         (procfs_xfer_partial): Implement TARGET_OBJECT_AUXV.
618         * nto-tdep.c (nto_read_auxv_from_initial_stack): New function.
619         * nto-tdep.h (nto_read_auxv_from_initial_stack): New declaration.
620
621 2015-10-20  Aleksandar Ristovski  <aristovski@qnx.com>
622
623         * nto-procfs.c (nto_procfs_path): Rename to...
624         (nodestr): ... this, and change type.
625         (nto_node): Use new variable and logic accordingly.
626         (procfs_open_1): Use new variable name. Use local buffer to construct
627         procfrs path.
628         (procfs_pidlist): Use NODESTR to construct procfs path.
629         (procfs_files_info): Use NODESTR to output meaningful text.
630         (do_attach): Construct procfs using NODESTR.
631         (procfs_create_inferior): Compare pointer to NULL.
632
633 2015-10-19  Josh Stone  <jistone@redhat.com>
634
635         * linux-nat.c (linux_handle_syscall_trap): Always update entry/
636         return state, even when not actively catching syscalls at all.
637         (linux_handle_extended_wait): Mark syscall_state like an entry.
638         (wait_lwp): Set syscall_state ignored for other traps.
639         (linux_nat_filter_event): Likewise.
640
641 2015-10-19  Luis Machado  <lgustavo@codesourcery.com>
642
643         * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to 0
644         when handling 'E', 'T', 'S', 'X' and 'W' packets.
645         Do not set rs->waiting_for_stop_reply back to 1.
646
647 2015-10-16  Aleksandar Ristovski  <aristovski@qnx.com>
648
649         * nto-procfs.c (common/filestuff.h): Include.
650         (procfs_can_use_hw_breakpoint): Fix enum name.
651         (procfs_open_1): Fix compiler warning.
652         (procfs_pidlist): Make static.
653         (procfs_meminfo): Make static, fix type name, add missing argument.
654         (procfs_store_registers): Make static.
655         (procfs_thread_info): Remove unused function.
656         (_initialize_procfs): Forward declare.
657
658 2015-10-16  Yao Qi  <yao.qi@arm.com>
659
660         * MAINTAINERS: Update my email address.
661
662 2015-10-15  Yao Qi  <yao.qi@linaro.org>
663
664         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint):
665         Call gdbarch_breakpoint_from_pc to instruction length.
666         (aarch64_linux_remove_hw_breakpoint): Likewise.
667         * common/common-regcache.h (regcache_register_size): Declare.
668         * nat/aarch64-linux-hw-point.c: Include "common-regcache.h".
669         (aarch64_point_is_aligned): Set alignment to 2 for breakpoint if
670         the process is 32bit, otherwise set alignment to 4.
671         (aarch64_handle_breakpoint): Update comments.
672         * regcache.c (regcache_register_size): New function.
673
674 2015-10-15  Aleksandar Ristovski  <aristovski@qnx.com>
675
676         * gdbarch.sh (core_regset_section): Remove.
677         * gdbarch.h: Regenerate.
678
679 2015-10-14  Yao Qi  <yao.qi@linaro.org>
680
681         * arch/aarch64-insn.h (struct aarch64_memory_operand): Move enum
682         out of it.
683         (enum aarch64_memory_operand_type): New.
684
685 2015-10-13  David Edelsohn  <dje.gcc@gmail.com>
686
687         * xcoffread.c (dwarf2_xcoff_names): Add .dwmac and .dwpbtyp.
688
689 2015-10-13  Pedro Alves  <palves@redhat.com>
690
691         * ada-lang.c (ada_enum_name): Constify local.
692         * ada-typeprint.c (print_range_bound): Constify locals.
693         * c-varobj.c (c_describe_child): Likewise.
694         * cli/cli-setshow.c (do_set_command): Likewise.
695         * gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
696         * dwarf2read.c (find_file_and_directory): Likewise.
697         (anonymous_struct_prefix, dwarf2_name): Likewise.
698         * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
699         * go-lang.c (unpack_mangled_go_symbol): Likewise.
700         * jv-typeprint.c (java_type_print_base): Likewise.
701         * ser-tcp.c (net_open): Likewise.
702         * symfile.c (deduce_language_from_filename): Likewise.
703         * symtab.c (gdb_mangle_name): Likewise.
704         * tui/tui-io.c (tui_redisplay_readline): Likewise.
705
706 2015-10-13  Pedro Alves  <palves@redhat.com>
707
708         * infrun.c (restore_execution_direction): New function.
709         (fetch_inferior_event): Use it instead of
710         make_cleanup_restore_integer.
711         (execution_direction): Change type to enum
712         exec_direction_kind.
713         * infrun.h (execution_direction): Likewise.
714
715 2015-10-13  Pedro Alves  <palves@redhat.com>
716
717         * ada-lang.c (ada_value_primitive_packed_val): Constify
718         locals.  Use value_contents_writeable.  Remove casts.
719
720 2015-10-13  Pedro Alves  <palves@redhat.com>
721
722         * ada-lang.c (ada_value_primitive_packed_val): Add casts to malloc
723         and alloca calls.
724
725 2015-10-13  Simon Marchi  <simon.marchi@polymtl.ca>
726
727         * lm32-tdep.c (lm32_push_dummy_call): Replace call to
728         write_memory with write_memory_unsigned_integer.
729
730 2015-10-13  Simon Marchi  <simon.marchi@polymtl.ca>
731
732         * solib-dsbt.c (cmp_name): Constify arguments.
733         * solib-frv.c (cmp_name): Likewise.
734         * solib-svr4.c (svr4_create_solib_event_breakpoints): Likewise.
735         * solib.c (gdb_bfd_lookup_symbol_from_symtab): Likewise.
736         (bfd_lookup_symbol_from_dyn_symtab): Likewise.
737         (gdb_bfd_lookup_symbol): Likewise.
738         * solib.h (gdb_bfd_lookup_symbol): Likewise.
739         (gdb_bfd_lookup_symbol_from_symtab): Likewise.
740
741 2015-10-12  Andrew Burgess  <andrew.burgess@embecosm.com>
742
743         * stack.c (parse_frame_specification): Remove message parameter,
744         replace with fixed string in function body, update function
745         comment.
746         (frame_info): Remove message to parse_frame_specification.
747         (select_frame_command): Likewise.
748
749 2015-10-12  Andrew Burgess  <andrew.burgess@embecosm.com>
750
751         * stack.c (parse_frame_specification): Delete.
752         (parse_frame_specification_1): Rename to
753         parse_frame_specification.
754         (frame_info): Use parse_frame_specification.
755         (select_frame_command): Likewise.
756         (return_command): Use select_frame and print_stack_frame rather
757         than frame_command and select_frame_command.
758         (func_command): Use get_current_frame rather than
759         parse_frame_specification.
760
761 2015-10-12  Andrew Burgess  <andrew.burgess@embecosm.com>
762
763         * stack.c (func_command): Return early when there is no ARG
764         string.
765
766 2015-10-12  Andrew Burgess  <andrew.burgess@embecosm.com>
767
768         * stack.c: Include safe-ctype.h not ctype.h.
769         (parse_frame_specification): Use ISSPACE not isspace.
770         (backtrace_command): Use TOLOWER not tolower.
771
772 2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
773
774         * mep-tdep.c (current_me_module): Add cast.
775         (mep_gdbarch_init): Likewise.
776
777 2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
778
779         * m32c-tdep.c (m32c_move_reg_t): Replace with...
780         (m32c_write_reg_t): ...this and...
781         (m32c_read_reg_t): ...this.
782         (struct m32c_reg): Update types of read and write.
783         (m32c_raw_read): Change declaration type to m32c_read_reg_t and
784         adjust definition.
785         (m32c_banked_read): Likewise.
786         (m32c_sb_read): Likewise.
787         (m32c_part_read): Likewise.
788         (m32c_cat_read): Likewise.
789         (m32c_r3r2r1r0_read): Likewise.
790         (m32c_raw_write): Change declaration type to m32c_write_reg_t
791         and adjust definition.
792         (m32c_banked_write): Likewise.
793         (m32c_sb_write): Likewise.
794         (m32c_part_write): Likewise.
795         (m32c_cat_write): Likewise.
796         (m32c_r3r2r1r0_write): Likewise.
797
798 2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
799
800         * aarch64-linux-tdep.c (aarch64_linux_syscall_record): Add cast.
801
802 2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
803
804         * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Return
805         gdb_sys_no_syscall instead of -1.
806
807 2015-10-12  Yao Qi  <yao.qi@linaro.org>
808
809         * NEWS: Mention the change.
810
811 2015-10-12  Yao Qi  <yao.qi@linaro.org>
812
813         * arch/aarch64-insn.c (emit_load_store): Rename to ...
814         (aarch64_emit_load_store): ... it.  All callers updated.
815
816 2015-10-12  Yao Qi  <yao.qi@linaro.org>
817
818         * arch/aarch64-insn.c (emit_insn): Rename to ...
819         (aarch64_emit_insn): ... it.  All callers updated.
820
821 2015-10-12  Yao Qi  <yao.qi@linaro.org>
822
823         * aarch64-linux-tdep.c: Include arch-utils.h.
824         (aarch64_linux_init_abi): Call set_gdbarch_max_insn_length,
825         set_gdbarch_displaced_step_copy_insn,
826         set_gdbarch_displaced_step_fixup,
827         set_gdbarch_displaced_step_free_closure,
828         set_gdbarch_displaced_step_location,
829         and set_gdbarch_displaced_step_hw_singlestep.
830         * aarch64-tdep.c (struct displaced_step_closure): New.
831         (struct aarch64_displaced_step_data): New.
832         (aarch64_displaced_step_b): New function.
833         (aarch64_displaced_step_b_cond): Likewise.
834         (aarch64_register): Likewise.
835         (aarch64_displaced_step_cb): Likewise.
836         (aarch64_displaced_step_tb): Likewise.
837         (aarch64_displaced_step_adr): Likewise.
838         (aarch64_displaced_step_ldr_literal): Likewise.
839         (aarch64_displaced_step_others): Likewise.
840         (aarch64_displaced_step_copy_insn): Likewise.
841         (aarch64_displaced_step_fixup): Likewise.
842         (aarch64_displaced_step_hw_singlestep): Likewise.
843         * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): New macro.
844         (aarch64_displaced_step_copy_insn): Declare.
845         (aarch64_displaced_step_fixup): Declare.
846         (aarch64_displaced_step_hw_singlestep): Declare.
847         * arch/aarch64-insn.c (emit_insn): Moved from
848         gdbserver/linux-aarch64-low.c.
849         (emit_load_store): Likewise.
850         * arch/aarch64-insn.h (enum aarch64_opcodes): Moved from
851         gdbserver/linux-aarch64-low.c.
852         (struct aarch64_register): Likewise.
853         (struct aarch64_memory_operand): Likewise.
854         (ENCODE): Likewise.
855         (can_encode_int32): New macro.
856         (emit_b, emit_bcond, emit_cb, emit_ldr, emit_ldrsw): Likewise.
857         (emit_tb, emit_nop): Likewise.
858         (emit_insn): Declare.
859         (emit_load_store): Declare.
860
861 2015-10-12  Yao Qi  <yao.qi@linaro.org>
862
863         * arch/aarch64-insn.c (aarch64_decode_ldr_literal): Moved from
864         gdbserver/linux-aarch64-low.c.
865         (aarch64_relocate_instruction): Likewise.
866         * arch/aarch64-insn.h (aarch64_decode_ldr_literal): Declare.
867         (struct aarch64_insn_data): Moved from
868         gdbserver/linux-aarch64-low.c.
869         (struct aarch64_insn_visitor): Likewise.
870         (aarch64_relocate_instruction): Declare.
871
872 2015-10-12  Pierre-Marie de Rodat  <derodat@adacore.com>
873
874         * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT>: If
875         EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute
876         to the returned value.
877
878 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
879
880         * ada-lang.c (ada_unpack_from_contents): Add guard that unpacked
881         is large enough for BIT_SIZE.  Update function comment.
882
883 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
884
885         * ada-lang.c (ada_value_primitive_packed_val): Move
886         src_len variable to local block where used.  Override
887         BIT_SIZE if bigger than size of resolved type.
888
889 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
890
891         * gdbtypes.h (is_scalar_type): Add extern declaration.
892         * gdbtypes.c (is_scalar_type): Make non-static.
893         * ada-lang.c (ada_value_primitive_packed_val): Use is_scalar_type
894         to compute IS_SCALAR instead of doing it ourselves.
895
896 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
897
898         * ada-lang.c (ada_value_primitive_packed_val): Rework handling
899         of case where TYPE is dynamic.
900
901 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
902
903         * ada-lang.c (ada_unpack_from_contents): New function,
904         extracted from ada_value_primitive_packed_val.
905         (ada_value_primitive_packed_val): Replace extracted out code
906         by call to ada_unpack_from_contents.
907
908 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
909
910         * ada-lang.c (ada_value_primitive_packed_val): Reorder local
911         variable declarations.
912
913 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
914
915         * ada-lang.c (ada_value_primitive_packed_val): Change the type
916         of local variables src and unpacked to "gdb_type *" instead of
917         "unsigned char *".
918
919 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
920
921         * ada-lang.c (ada_value_primitive_packed_val): Make the name
922         of various local variables more explicit and consistent.
923         No real code change otherwise.
924
925 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
926
927         * i386-tdep.h (struct gdbarch_tdep): Change type of
928         register_reggroup_p to gdbarch_register_reggroup_p_ftype.
929
930 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
931
932         * cris-tdep.c (struct instruction_environment): Change type of
933         byte_order to enum bfd_endian.
934
935 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
936
937         * arm-linux-tdep.c (arm_canonicalize_syscall): Add
938         enum gdb_syscall casts.
939
940 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
941
942         * aarch64-tdep.c (stack_item_t): Change type of data to gdb_byte*.
943         * arm-tdep.c (struct stack_item): Likewise.
944         (push_stack_item): Add gdb_byte* cast.
945         * avr-tdep.c (struct stack_item): Change type of data to gdb_byte*.
946         (push_stack_item): Add gdb_byte* cast.
947         * cli/cli-dump.c (dump_memory_to_file): Change type of buf to gdb_byte*
948         and add cast.
949         * cris-tdep.c (struct stack_item): Change type of data to gdb_byte*.
950         (push_stack_item): Add gdb_byte* cast.
951         * gcore.c (gcore_copy_callback): Change type of memhunk to gdb_byte* and
952         add cast.
953         * gdbtypes.h (print_scalar_formatted): Change type of first parameter to
954         gdb_byte*.
955         * h8300-tdep.c (h8300_extract_return_value): Change type of valbuf to
956         gdb_byte* and remove unnecessary cast.
957         (h8300h_extract_return_value): Likewise.
958         (h8300_store_return_value): Change type of valbuf to gdb_byte*.
959         (h8300h_store_return_value): Likewise.
960         * iq2000-tdep.c (iq2000_extract_return_value): Change type of valbuf to
961         gdb_byte* and remove unnecessary cast.
962         * jit.c (jit_reader_try_read_symtab): Change type of gdb_mem to gdb_byte*
963         and add cast.
964         * m32r-tdep.c (m32r_store_return_value): Change type of valbuf to
965         gdb_byte* and remove unnecessary cast.
966         (m32r_extract_return_value): Change type of dst to gdb_byte* and remove
967         valbuf.
968         * mep-tdep.c (mep_pseudo_cr32_read): Change type of buf to gdb_byte*.
969         (mep_pseudo_cr64_read): Likewise.
970         (mep_pseudo_csr_write): Likewise.
971         (mep_pseudo_cr32_write): Likewise.
972         (mep_pseudo_cr64_write): Likewise.
973         * mi/mi-main.c (mi_cmd_data_write_memory): Change type of buffer to
974         gdb_byte* and add cast.
975         * moxie-tdep.c (moxie_store_return_value): Change type of valbuf to
976         gdb_byte* and remove unnecessary cast.
977         (moxie_extract_return_value): Change type of dst to gdb_byte* and remove
978         valbuf.
979         * p-valprint.c (print_scalar_formatted): Change type of valaddr to
980         gdb_byte*.
981         * printcmd.c (void): Likewise.
982         * python/py-inferior.c (infpy_read_memory): Change type of buffer to
983         gdb_byte* and add cast.
984         (infpy_write_memory): Likewise.
985         (infpy_search_memory): Likewise.
986         * regcache.c (regcache_raw_write_signed): Change type of buf to gdb_byte*
987         and add cast.
988         (regcache_raw_write_unsigned): Likewise.
989         (regcache_cooked_write_signed): Likewise.
990         (regcache_cooked_write_unsigned): Likewise.
991         * sh64-tdep.c (h64_extract_return_value): Change type of valbuf to
992         gdb_byte*.
993
994 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
995
996         * fbsd-tdep.c (fbsd_collect_regset_section_cb): Add cast.
997         * linux-tdep.c (linux_collect_regset_section_cb_data): Likewise.
998
999 2015-10-09  Eli Zaretskii  <eliz@gnu.org>
1000
1001         * stack.c (print_stack_frame):
1002         * utils.c (printchar): Fix typos in commentary.
1003
1004 2015-10-08  Iain Buclaw  <ibuclaw@gdcproject.org>
1005
1006         * d-exp.y: (UnaryExpression): Support `type.sizeof' expressions.
1007         (PostfixExpression): Support `expr.sizeof' expressions.
1008         (PrimaryExpression): Support `typeof(expr)' expressions.
1009
1010 2015-10-08  Maciej W. Rozycki  <macro@imgtec.com>
1011
1012         * MAINTAINERS: Update my email address.
1013
1014 2015-10-08  Markus Metzger  <markus.t.metzger@intel.com>
1015
1016         * record-btrace.c (record_btrace_resume): Fix void return.
1017
1018 2015-10-07  Yao Qi  <yao.qi@linaro.org>
1019
1020         * aarch64-tdep.c: Include opcode/aarch64.h.
1021         (submask): Move it above.
1022         (bit): Likewise.
1023         (bits): Likewise.
1024         (aarch64_software_single_step): Call aarch64_decode_insn.
1025         Decode instruction by aarch64_inst instead of using
1026         aarch64_decode_bcond and decode_masked_match.
1027
1028 2015-10-06  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
1029
1030         * cli/cli-dump.c (restore_command): Parse load_offset (bias) as address
1031         only when the file is binary.
1032
1033 2015-10-02  James Bowman  <james.bowman@ftdichip.com>
1034
1035         * ft32-tdep.c (ft32_analyze_prologue): Add function prolog
1036         subroutine handling.
1037
1038 2015-10-01  Simon Marchi  <simon.marchi@ericsson.com>
1039
1040         * common/vec.h (VEC_OP (T,cleanup)): Add pointer cast.
1041
1042 2015-09-30  Doug Evans  <dje@google.com>
1043
1044         * dwarf2read.c (setup_type_unit_groups): Add comment.
1045
1046 2015-09-30  Pedro Alves  <palves@redhat.com>
1047
1048         * linux-nat.c (linux_nat_always_non_stop_p): Always return 1.
1049         * x86-linux-nat.c (x86_linux_always_non_stop_p): Delete.
1050         (x86_linux_create_target): Don't install
1051         x86_linux_always_non_stop_p.
1052
1053 2015-09-30  Don Breazeal  <donb@codesourcery.com>
1054
1055         * remote.c (remote_parse_stop_reply): Call strprefix instead
1056         of strncmp.
1057
1058 2015-09-30  Simon Marchi  <simon.marchi@ericsson.com>
1059
1060         * gdbarch.sh (struct gdbarch_info): Change tdep_info's type to void *.
1061         * gdbarch.h: Regenerate.
1062         * i386-tdep.c (i386_gdbarch_init): Remove cast to
1063         struct gdbarch_tdep_info *.
1064         * mips-tdep.c (mips_gdbarch_init): Likewise.
1065         * ppc-linux-tdep (ppu2spu_sniffer): Likewise.
1066         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
1067         * spu-multiarch.c (spu_gdbarch): Likewise.
1068
1069 2015-09-30  Kevin Buettner  <kevinb@redhat.com>
1070
1071         * infcmd.c (finish_command_fsm_should_stop): Don't attempt to
1072         record a NULL value.
1073
1074 2015-09-29  Kevin Buettner  <kevinb@redhat.com>
1075
1076         * msp430-tdep.c (msp430_push_dummy_call): Treat reference, struct,
1077         and union arguments the same as pointer arguments when determining
1078         size of argument.
1079
1080 2015-09-29  James Bowman  <james.bowman@ftdichip.com>
1081
1082         * ft32-tdep.c: #include "opcode/ft32.h".
1083         Delete local macros IS_PUSH, PUSH_REG, IS_LINK, LINK_SIZE.
1084         (ft32_analyze_prologue): Use FT32_* macros.
1085
1086 2015-09-28  Simon Marchi  <simon.marchi@ericsson.com>
1087
1088         * cli/cli-script.c (read_next_line): Fix stdout -> stdin in
1089         comment.
1090
1091 2015-09-28  Doug Evans  <dje@google.com>
1092
1093         * MAINTAINERS: Add Iain Buclaw as D language maintainer.
1094
1095 2015-09-28  Doug Evans  <dje@google.com>
1096
1097         * common/filestuff.c (make_cleanup_close): Update comment.
1098
1099 2015-09-26  Simon Marchi  <simon.marchi@polymtl.ca>
1100
1101         * btrace.c (parse_xml_btrace_block): Fix cast of
1102         xml_find_attribute's return value.
1103         * memory-map.c (memory_map_start_memory): Likewise.
1104         * solib-svr4.c (library_list_start_library): Likewise.
1105         * solib-target.c (library_list_start_segment): Likewise.
1106         (library_list_start_section): Likewise.
1107         * tracepoint.c (traceframe_info_start_memory): Likewise.
1108
1109 2015-09-26  Iain Buclaw  <ibuclaw@gdcproject.org>
1110
1111         * d-namespace.c (d_lookup_symbol): New arg langdef.
1112         All callers updated.  Support looking up symbol as a primitive type.
1113         (lookup_module_scope): New arg langdef.  All callers updated.
1114         Call d_lookup_symbol directly for simple bare symbols.
1115
1116 2015-09-25  Simon Marchi  <simon.marchi@ericsson.com>
1117
1118         * macrocmd.c (print_macro_callback): Add cast(s).
1119         * macrotab.c (macro_bcache_str): Likewise.
1120         (new_macro_definition): Likewise.
1121         * main.c (captured_main): Likewise.
1122         * maint.c (print_bfd_section_info): Likewise.
1123         * mdebugread.c (mdebug_build_psymtabs): Likewise.
1124         (basic_type): Likewise.
1125         * memattr.c (mem_region_cmp): Likewise.
1126         * memory-map.c (memory_map_start_memory): Likewise.
1127         (memory_map_end_memory): Likewise.
1128         (memory_map_start_property): Likewise.
1129         (memory_map_end_property): Likewise.
1130         (clear_result): Likewise.
1131         * memrange.c (compare_mem_ranges): Likewise.
1132         * mep-tdep.c (mep_analyze_frame_prologue): Likewise.
1133         * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Likewise.
1134         * mi/mi-console.c (mi_console_file_delete): Likewise.
1135         (mi_console_file_fputs): Likewise.
1136         (mi_console_raw_packet): Likewise.
1137         (mi_console_file_flush): Likewise.
1138         (mi_console_set_raw): Likewise.
1139         * mi/mi-interp.c (mi_interpreter_resume): Likewise.
1140         (mi_new_thread): Likewise.
1141         (mi_thread_exit): Likewise.
1142         (mi_record_changed): Likewise.
1143         (mi_inferior_added): Likewise.
1144         (mi_inferior_appeared): Likewise.
1145         (mi_inferior_exit): Likewise.
1146         (mi_inferior_removed): Likewise.
1147         (mi_interp_data): Likewise.
1148         (mi_on_normal_stop): Likewise.
1149         (mi_traceframe_changed): Likewise.
1150         (mi_tsv_created): Likewise.
1151         (mi_tsv_deleted): Likewise.
1152         (mi_tsv_modified): Likewise.
1153         (mi_breakpoint_created): Likewise.
1154         (mi_breakpoint_deleted): Likewise.
1155         (mi_breakpoint_modified): Likewise.
1156         (mi_output_running_pid): Likewise.
1157         (mi_inferior_count): Likewise.
1158         (mi_solib_loaded): Likewise.
1159         (mi_solib_unloaded): Likewise.
1160         (mi_command_param_changed): Likewise.
1161         (mi_memory_changed): Likewise.
1162         (report_initial_inferior): Likewise.
1163         (mi_ui_out): Likewise.
1164         (mi_set_logging): Likewise.
1165         * mi/mi-main.c (collect_cores): Likewise.
1166         (print_one_inferior): Likewise.
1167         (free_vector_of_ints): Likewise.
1168         (free_splay_tree): Likewise.
1169         (mi_execute_command): Likewise.
1170         * mi/mi-out.c (mi_table_body): Likewise.
1171         (mi_table_end): Likewise.
1172         (mi_table_header): Likewise.
1173         (mi_begin): Likewise.
1174         (mi_end): Likewise.
1175         (mi_field_int): Likewise.
1176         (mi_field_string): Likewise.
1177         (mi_field_fmt): Likewise.
1178         (mi_flush): Likewise.
1179         (mi_redirect): Likewise.
1180         (field_separator): Likewise.
1181         (mi_open): Likewise.
1182         (mi_close): Likewise.
1183         (mi_out_buffered): Likewise.
1184         (mi_out_rewind): Likewise.
1185         (mi_out_put): Likewise.
1186         (mi_version): Likewise.
1187         (mi_out_data_dtor): Likewise.
1188         * mi/mi-parse.c (mi_parse_cleanup): Likewise.
1189         * microblaze-tdep.c (microblaze_frame_cache): Likewise.
1190         * minidebug.c (lzma_open): Likewise.
1191         (lzma_pread): Likewise.
1192         (lzma_close): Likewise.
1193         (lzma_stat): Likewise.
1194         * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
1195         * mips-sde-tdep.c (mips_sde_frame_cache): Likewise.
1196         (mips_sde_elf_osabi_sniff_abi_tag_sections): Likewise.
1197         * mips-tdep.c (mips_insn16_frame_cache): Likewise.
1198         (mips_micro_frame_cache): Likewise.
1199         (mips_insn32_frame_cache): Likewise.
1200         (mips_stub_frame_cache): Likewise.
1201         (gdb_print_insn_mips): Likewise.
1202         (value_of_mips_user_reg): Likewise.
1203         (mips_gdbarch_init): Likewise.
1204         * mips64obsd-tdep.c (mips64obsd_supply_gregset): Likewise.
1205         * mipsnbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
1206         (mipsnbsd_supply_gregset): Likewise.
1207         * mn10300-linux-tdep.c (am33_supply_fpregset_method): Likewise.
1208         (am33_collect_gregset_method): Likewise.
1209         (am33_collect_fpregset_method): Likewise.
1210         * mn10300-tdep.c (mn10300_analyze_frame_prologue): Likewise.
1211         * moxie-tdep.c (moxie_frame_cache): Likewise.
1212         * msp430-tdep.c (msp430_get_opcode_byte): Likewise.
1213         (msp430_analyze_frame_prologue): Likewise.
1214         * mt-tdep.c (mt_frame_unwind_cache): Likewise.
1215         * nios2-linux-tdep.c (nios2_supply_gregset): Likewise.
1216         (nios2_collect_gregset): Likewise.
1217         * nios2-tdep.c (nios2_frame_unwind_cache): Likewise.
1218         (nios2_stub_frame_cache): Likewise.
1219         * objc-lang.c (find_methods): Likewise.
1220         * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
1221         (get_objfile_pspace_data): Likewise.
1222         (get_objfile_bfd_data): Likewise.
1223         (objfile_bfd_data_free): Likewise.
1224         (add_to_objfile_sections): Likewise.
1225         (do_free_objfile_cleanup): Likewise.
1226         (resume_section_map_updates_cleanup): Likewise.
1227         * opencl-lang.c (builtin_opencl_type): Likewise.
1228         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
1229         * osdata.c (osdata_start_osdata): Likewise.
1230         (osdata_start_item): Likewise.
1231         (osdata_start_column): Likewise.
1232         (osdata_end_column): Likewise.
1233         (clear_parsing_data): Likewise.
1234         (osdata_free_cleanup): Likewise.
1235         * parse.c (type_stack_cleanup): Likewise.
1236         (exp_uses_objfile_iter): Likewise.
1237         * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
1238         (ppc_linux_collect_gregset): Likewise.
1239         (ppu2spu_prev_arch): Likewise.
1240         (ppu2spu_this_id): Likewise.
1241         (ppu2spu_prev_register): Likewise.
1242         (ppu2spu_unwind_register): Likewise.
1243         (ppu2spu_sniffer): Likewise.
1244         (ppu2spu_dealloc_cache): Likewise.
1245         (ppc_linux_init_abi): Likewise.
1246         * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
1247         * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
1248         * progspace.c (restore_program_space): Likewise.
1249         * psymtab.c (find_pc_sect_psymtab): Likewise.
1250         (compare_psymbols): Likewise.
1251         (psymbol_bcache_full): Likewise.
1252         (allocate_psymtab): Likewise.
1253         (discard_psymtabs_upto): Likewise.
1254         * python/py-block.c (set_block): Likewise.
1255         (del_objfile_blocks): Likewise.
1256         * python/py-breakpoint.c (build_bp_list): Likewise.
1257         * python/py-inferior.c (inferior_to_inferior_object): Likewise.
1258         (build_inferior_list): Likewise.
1259         (py_free_inferior): Likewise.
1260         * python/py-objfile.c (py_free_objfile): Likewise.
1261         (objfile_to_objfile_object): Likewise.
1262         * python/py-prettyprint.c (py_restore_tstate): Likewise.
1263         * python/py-progspace.c (py_free_pspace): Likewise.
1264         (pspace_to_pspace_object): Likewise.
1265         * python/py-symbol.c (set_symbol): Likewise.
1266         (del_objfile_symbols): Likewise.
1267         * python/py-symtab.c (set_sal): Likewise.
1268         (set_symtab): Likewise.
1269         (del_objfile_symtab): Likewise.
1270         (del_objfile_sal): Likewise.
1271         * python/py-type.c (save_objfile_types): Likewise.
1272         (set_type): Likewise.
1273         * python/py-unwind.c (pyuw_prev_register): Likewise.
1274         (pyuw_on_new_gdbarch): Likewise.
1275         * python/py-utils.c (py_decref): Likewise.
1276         (py_xdecref): Likewise.
1277         (gdb_py_generic_dict): Likewise.
1278         * python/py-xmethods.c (gdbpy_free_xmethod_worker_data): Likewise.
1279         (gdbpy_clone_xmethod_worker_data): Likewise.
1280         (gdbpy_get_xmethod_arg_types): Likewise.
1281         (gdbpy_get_xmethod_result_type): Likewise.
1282         (gdbpy_invoke_xmethod): Likewise.
1283         * python/python.c (gdbpy_apply_type_printers): Likewise.
1284         (gdbpy_free_type_printers): Likewise.
1285         * record-btrace.c (record_btrace_disable_callback): Likewise.
1286         (bfcache_hash): Likewise.
1287         (bfcache_eq): Likewise.
1288         (btrace_get_frame_function): Likewise.
1289         (record_btrace_frame_unwind_stop_reason): Likewise.
1290         (record_btrace_frame_this_id): Likewise.
1291         (record_btrace_frame_prev_register): Likewise.
1292         (record_btrace_frame_dealloc_cache): Likewise.
1293         * record-full.c (record_full_message_wrapper): Likewise.
1294         (record_full_save_cleanups): Likewise.
1295         * regcache.c (regcache_descr): Likewise.
1296         (do_regcache_xfree): Likewise.
1297         (do_regcache_invalidate): Likewise.
1298         (do_cooked_read): Likewise.
1299         (regcache_transfer_regset): Likewise.
1300         * reggroups.c (reggroup_add): Likewise.
1301         (reggroup_next): Likewise.
1302         (reggroup_prev): Likewise.
1303         * remote-fileio.c (do_remote_fileio_request): Likewise.
1304         * remote-notif.c (remote_async_get_pending_events_handler): Likewise.
1305         (do_notif_event_xfree): Likewise.
1306         * remote.c (get_remote_arch_state): Likewise.
1307         (remote_pspace_data_cleanup): Likewise.
1308         (get_remote_exec_file): Likewise.
1309         (set_pspace_remote_exec_file): Likewise.
1310         (compare_pnums): Likewise.
1311         (clear_threads_listing_context): Likewise.
1312         (remote_newthread_step): Likewise.
1313         (start_thread): Likewise.
1314         (end_thread): Likewise.
1315         (remove_child_of_pending_fork): Likewise.
1316         (remove_stop_reply_for_inferior): Likewise.
1317         (remove_stop_reply_of_remote_state): Likewise.
1318         (remote_notif_remove_once_on_match): Likewise.
1319         (stop_reply_match_ptid_and_ws): Likewise.
1320         (kill_child_of_pending_fork): Likewise.
1321         (register_remote_g_packet_guess): Likewise.
1322         (remote_read_description_p): Likewise.
1323         (remote_read_description): Likewise.
1324         (free_actions_list_cleanup_wrapper): Likewise.
1325         (remote_async_serial_handler): Likewise.
1326         * rl78-tdep.c (rl78_get_opcode_byte): Likewise.
1327         (rl78_analyze_frame_prologue): Likewise.
1328         * rs6000-tdep.c (ppc_supply_gregset): Likewise.
1329         (ppc_supply_fpregset): Likewise.
1330         (ppc_supply_vsxregset): Likewise.
1331         (ppc_supply_vrregset): Likewise.
1332         (ppc_collect_gregset): Likewise.
1333         (ppc_collect_fpregset): Likewise.
1334         (ppc_collect_vsxregset): Likewise.
1335         (ppc_collect_vrregset): Likewise.
1336         (e500_move_ev_register): Likewise.
1337         (do_regcache_raw_write): Likewise.
1338         (rs6000_frame_cache): Likewise.
1339         (rs6000_epilogue_frame_cache): Likewise.
1340         (rs6000_gdbarch_init): Likewise.
1341         * rx-tdep.c (rx_get_opcode_byte): Likewise.
1342         (rx_analyze_frame_prologue): Likewise.
1343         (rx_frame_type): Likewise.
1344         (rx_frame_sniffer_common): Likewise.
1345         * s390-linux-tdep.c (s390_check_for_saved): Likewise.
1346         (s390_frame_unwind_cache): Likewise.
1347         (s390_stub_frame_unwind_cache): Likewise.
1348         (s390_sigtramp_frame_unwind_cache): Likewise.
1349         * score-tdep.c (score_make_prologue_cache): Likewise.
1350         * sentinel-frame.c (sentinel_frame_prev_register): Likewise.
1351         (sentinel_frame_prev_arch): Likewise.
1352         * ser-base.c (fd_event): Likewise.
1353         (push_event): Likewise.
1354         (ser_base_write): Likewise.
1355         * ser-pipe.c (pipe_close): Likewise.
1356         * serial.c (serial_write): Likewise.
1357         * sh-tdep.c (sh_frame_cache): Likewise.
1358         (sh_stub_this_id): Likewise.
1359         * sh64-tdep.c (sh64_frame_cache): Likewise.
1360         * solib-aix.c (get_solib_aix_inferior_data): Likewise.
1361         (library_list_start_library): Likewise.
1362         (library_list_start_list): Likewise.
1363         (solib_aix_free_library_list): Likewise.
1364         * solib-darwin.c (get_darwin_info): Likewise.
1365         * solib-dsbt.c (get_dsbt_info): Likewise.
1366         * solib-spu.c (append_ocl_sos): Likewise.
1367         * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1368         (get_svr4_info): Likewise.
1369         (library_list_start_library): Likewise.
1370         (svr4_library_list_start_list): Likewise.
1371         (hash_probe_and_action): Likewise.
1372         (equal_probe_and_action): Likewise.
1373         (svr4_update_solib_event_breakpoint): Likewise.
1374         (set_solib_svr4_fetch_link_map_offsets): Likewise.
1375         (svr4_fetch_link_map_offsets): Likewise.
1376         (svr4_have_link_map_offsets): Likewise.
1377         * solib-target.c (library_list_start_segment): Likewise.
1378         (library_list_start_section): Likewise.
1379         (library_list_start_library): Likewise.
1380         (library_list_end_library): Likewise.
1381         (library_list_start_list): Likewise.
1382         (solib_target_free_library_list): Likewise.
1383         * solib.c (solib_ops): Likewise.
1384         (set_solib_ops): Likewise.
1385         * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
1386         * sparc-tdep.c (sparc_frame_cache): Likewise.
1387         (sparc32_frame_cache): Likewise.
1388         (sparc32_supply_gregset): Likewise.
1389         (sparc32_collect_gregset): Likewise.
1390         (sparc32_supply_fpregset): Likewise.
1391         (sparc32_collect_fpregset): Likewise.
1392         * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
1393         * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
1394         (sparc64_collect_gregset): Likewise.
1395         (sparc64_supply_fpregset): Likewise.
1396         (sparc64_collect_fpregset): Likewise.
1397         * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_cache): Likewise.
1398         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
1399         * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
1400         (sparc64obsd_trapframe_cache): Likewise.
1401         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Likewise.
1402         * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
1403         * spu-multiarch.c (spu_gdbarch): Likewise.
1404         * spu-tdep.c (spu_frame_unwind_cache): Likewise.
1405         (spu2ppu_prev_arch): Likewise.
1406         (spu2ppu_this_id): Likewise.
1407         (spu2ppu_prev_register): Likewise.
1408         (spu2ppu_dealloc_cache): Likewise.
1409         (spu_dis_asm_print_address): Likewise.
1410         (gdb_print_insn_spu): Likewise.
1411         (spu_get_overlay_table): Likewise.
1412         * stabsread.c (rs6000_builtin_type): Likewise.
1413         * stack.c (do_print_variable_and_value): Likewise.
1414         * stap-probe.c (get_stap_base_address_1): Likewise.
1415         * symfile-debug.c (debug_qf_has_symbols): Likewise.
1416         (debug_qf_find_last_source_symtab): Likewise.
1417         (debug_qf_forget_cached_source_info): Likewise.
1418         (debug_qf_map_symtabs_matching_filename): Likewise.
1419         (debug_qf_lookup_symbol): Likewise.
1420         (debug_qf_print_stats): Likewise.
1421         (debug_qf_dump): Likewise.
1422         (debug_qf_relocate): Likewise.
1423         (debug_qf_expand_symtabs_for_function): Likewise.
1424         (debug_qf_expand_all_symtabs): Likewise.
1425         (debug_qf_expand_symtabs_with_fullname): Likewise.
1426         (debug_qf_map_matching_symbols): Likewise.
1427         (debug_qf_expand_symtabs_matching): Likewise.
1428         (debug_qf_find_pc_sect_compunit_symtab): Likewise.
1429         (debug_qf_map_symbol_filenames): Likewise.
1430         (debug_sym_get_probes): Likewise.
1431         (debug_sym_new_init): Likewise.
1432         (debug_sym_init): Likewise.
1433         (debug_sym_read): Likewise.
1434         (debug_sym_read_psymbols): Likewise.
1435         (debug_sym_finish): Likewise.
1436         (debug_sym_offsets): Likewise.
1437         (debug_sym_read_linetable): Likewise.
1438         (debug_sym_relocate): Likewise.
1439         (uninstall_symfile_debug_logging): Likewise.
1440         * symfile-mem.c (symbol_file_add_from_memory_wrapper): Likewise.
1441         * symfile.c (place_section): Likewise.
1442         (add_section_size_callback): Likewise.
1443         (load_progress): Likewise.
1444         (load_section_callback): Likewise.
1445         (clear_memory_write_data): Likewise.
1446         (allocate_symtab): Likewise.
1447         * symmisc.c (maintenance_expand_file_matcher): Likewise.
1448         * symtab.c (lookup_symtab_callback): Likewise.
1449         (hash_demangled_name_entry): Likewise.
1450         (eq_demangled_name_entry): Likewise.
1451         (get_symbol_cache): Likewise.
1452         (symbol_cache_cleanup): Likewise.
1453         (set_symbol_cache_size): Likewise.
1454         (symbol_cache_flush): Likewise.
1455         (maintenance_print_symbol_cache): Likewise.
1456         (maintenance_print_symbol_cache_statistics): Likewise.
1457         (delete_filename_seen_cache): Likewise.
1458         (output_partial_symbol_filename): Likewise.
1459         (search_symbols_file_matches): Likewise.
1460         (search_symbols_name_matches): Likewise.
1461         (do_free_completion_list): Likewise.
1462         (maybe_add_partial_symtab_filename): Likewise.
1463         (get_main_info): Likewise.
1464         (main_info_cleanup): Likewise.
1465         * target-dcache.c (target_dcache_cleanup): Likewise.
1466         (target_dcache_init_p): Likewise.
1467         (target_dcache_invalidate): Likewise.
1468         (target_dcache_get): Likewise.
1469         (target_dcache_get_or_init): Likewise.
1470         * target-descriptions.c (target_find_description): Likewise.
1471         (tdesc_find_type): Likewise.
1472         (tdesc_data_cleanup): Likewise.
1473         (tdesc_find_arch_register): Likewise.
1474         (tdesc_register_name): Likewise.
1475         (tdesc_register_type): Likewise.
1476         (tdesc_register_reggroup_p): Likewise.
1477         (set_tdesc_pseudo_register_name): Likewise.
1478         (set_tdesc_pseudo_register_type): Likewise.
1479         (set_tdesc_pseudo_register_reggroup_p): Likewise.
1480         (tdesc_use_registers): Likewise.
1481         (free_target_description): Likewise.
1482         * target-memory.c (compare_block_starting_address): Likewise.
1483         (cleanup_request_data): Likewise.
1484         (cleanup_write_requests_vector): Likewise.
1485         * target.c (open_target): Likewise.
1486         (cleanup_restore_target_terminal): Likewise.
1487         (free_memory_read_result_vector): Likewise.
1488         * thread.c (disable_thread_stack_temporaries): Likewise.
1489         (finish_thread_state_cleanup): Likewise.
1490         (do_restore_current_thread_cleanup): Likewise.
1491         (restore_current_thread_cleanup_dtor): Likewise.
1492         (set_thread_refcount): Likewise.
1493         (tp_array_compar): Likewise.
1494         (do_captured_thread_select): Likewise.
1495         * tic6x-tdep.c (tic6x_frame_unwind_cache): Likewise.
1496         (tic6x_stub_this_id): Likewise.
1497         * tilegx-tdep.c (tilegx_frame_cache): Likewise.
1498         * top.c (do_restore_instream_cleanup): Likewise.
1499         (gdb_readline_wrapper_cleanup): Likewise.
1500         (kill_or_detach): Likewise.
1501         (print_inferior_quit_action): Likewise.
1502         * tracefile-tfile.c (match_blocktype): Likewise.
1503         (build_traceframe_info): Likewise.
1504         * tracefile.c (trace_file_writer_xfree): Likewise.
1505         * tracepoint.c (memrange_cmp): Likewise.
1506         (do_collect_symbol): Likewise.
1507         (do_clear_collection_list): Likewise.
1508         (do_restore_current_traceframe_cleanup): Likewise.
1509         (restore_current_traceframe_cleanup_dtor): Likewise.
1510         (free_current_marker): Likewise.
1511         (traceframe_info_start_memory): Likewise.
1512         (traceframe_info_start_tvar): Likewise.
1513         (free_result): Likewise.
1514         * tramp-frame.c (tramp_frame_cache): Likewise.
1515         * tui/tui-file.c (tui_file_delete): Likewise.
1516         (tui_fileopen): Likewise.
1517         (tui_sfileopen): Likewise.
1518         (tui_file_isatty): Likewise.
1519         (tui_file_rewind): Likewise.
1520         (tui_file_put): Likewise.
1521         (tui_file_fputs): Likewise.
1522         (tui_file_get_strbuf): Likewise.
1523         (tui_file_adjust_strbuf): Likewise.
1524         (tui_file_flush): Likewise.
1525         * tui/tui-layout.c (make_command_window): Likewise.
1526         (make_data_window): Likewise.
1527         (show_source_disasm_command): Likewise.
1528         (show_data): Likewise.
1529         (make_source_or_disasm_window): Likewise.
1530         (show_source_or_disasm_and_command): Likewise.
1531         * tui/tui-out.c (tui_field_int): Likewise.
1532         (tui_field_string): Likewise.
1533         (tui_field_fmt): Likewise.
1534         (tui_text): Likewise.
1535         * typeprint.c (hash_typedef_field): Likewise.
1536         (eq_typedef_field): Likewise.
1537         (do_free_typedef_hash): Likewise.
1538         (copy_typedef_hash_element): Likewise.
1539         (do_free_global_table): Likewise.
1540         (find_global_typedef): Likewise.
1541         (find_typedef_in_hash): Likewise.
1542         * ui-file.c (ui_file_write_for_put): Likewise.
1543         (do_ui_file_xstrdup): Likewise.
1544         (mem_file_delete): Likewise.
1545         (mem_file_rewind): Likewise.
1546         (mem_file_put): Likewise.
1547         (mem_file_write): Likewise.
1548         (stdio_file_delete): Likewise.
1549         (stdio_file_flush): Likewise.
1550         (stdio_file_read): Likewise.
1551         (stdio_file_write): Likewise.
1552         (stdio_file_write_async_safe): Likewise.
1553         (stdio_file_fputs): Likewise.
1554         (stdio_file_isatty): Likewise.
1555         (stdio_file_fseek): Likewise.
1556         (tee_file_delete): Likewise.
1557         (tee_file_flush): Likewise.
1558         (tee_file_write): Likewise.
1559         (tee_file_fputs): Likewise.
1560         (tee_file_isatty): Likewise.
1561         * ui-out.c (do_cleanup_table_end): Likewise.
1562         (do_cleanup_end): Likewise.
1563         * user-regs.c (user_reg_add): Likewise.
1564         (user_reg_map_name_to_regnum): Likewise.
1565         (usernum_to_user_reg): Likewise.
1566         (maintenance_print_user_registers): Likewise.
1567         * utils.c (do_bfd_close_cleanup): Likewise.
1568         (do_fclose_cleanup): Likewise.
1569         (do_obstack_free): Likewise.
1570         (do_ui_file_delete): Likewise.
1571         (do_ui_out_redirect_pop): Likewise.
1572         (do_free_section_addr_info): Likewise.
1573         (restore_integer): Likewise.
1574         (do_unpush_target): Likewise.
1575         (do_htab_delete_cleanup): Likewise.
1576         (do_restore_ui_file): Likewise.
1577         (do_value_free): Likewise.
1578         (do_free_so): Likewise.
1579         (free_current_contents): Likewise.
1580         (do_regfree_cleanup): Likewise.
1581         (core_addr_hash): Likewise.
1582         (core_addr_eq): Likewise.
1583         (do_free_char_ptr_vec): Likewise.
1584         * v850-tdep.c (v850_frame_cache): Likewise.
1585         * varobj.c (do_free_variable_cleanup): Likewise.
1586         * vax-tdep.c (vax_supply_gregset): Likewise.
1587         (vax_frame_cache): Likewise.
1588         * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_cache): Likewise.
1589         * xml-support.c (gdb_xml_body_text): Likewise.
1590         (gdb_xml_values_cleanup): Likewise.
1591         (gdb_xml_start_element): Likewise.
1592         (gdb_xml_start_element_wrapper): Likewise.
1593         (gdb_xml_end_element): Likewise.
1594         (gdb_xml_end_element_wrapper): Likewise.
1595         (gdb_xml_cleanup): Likewise.
1596         (gdb_xml_fetch_external_entity): Likewise.
1597         (gdb_xml_parse_attr_enum): Likewise.
1598         (xinclude_start_include): Likewise.
1599         (xinclude_end_include): Likewise.
1600         (xml_xinclude_default): Likewise.
1601         (xml_xinclude_start_doctype): Likewise.
1602         (xml_xinclude_end_doctype): Likewise.
1603         (xml_xinclude_cleanup): Likewise.
1604         (xml_fetch_content_from_file): Likewise.
1605         * xml-syscall.c (free_syscalls_info): Likewise.
1606         (syscall_start_syscall): Likewise.
1607         * xml-tdesc.c (tdesc_end_arch): Likewise.
1608         (tdesc_end_osabi): Likewise.
1609         (tdesc_end_compatible): Likewise.
1610         (tdesc_start_target): Likewise.
1611         (tdesc_start_feature): Likewise.
1612         (tdesc_start_reg): Likewise.
1613         (tdesc_start_union): Likewise.
1614         (tdesc_start_struct): Likewise.
1615         (tdesc_start_flags): Likewise.
1616         (tdesc_start_field): Likewise.
1617         (tdesc_start_vector): Likewise.
1618         (fetch_available_features_from_target): Likewise.
1619         * xstormy16-tdep.c (xstormy16_frame_cache): Likewise.
1620         * xtensa-tdep.c (xtensa_supply_gregset): Likewise.
1621         (xtensa_frame_cache): Likewise.
1622         (xtensa_frame_prev_register): Likewise.
1623         (xtensa_extract_return_value): Likewise.
1624
1625 2015-09-25  Simon Marchi  <simon.marchi@ericsson.com>
1626
1627         * aarch64-tdep.c (aarch64_make_prologue_cache): Add cast(s).
1628         (aarch64_make_stub_cache): Likewise.
1629         (value_of_aarch64_user_reg): Likewise.
1630         * ada-lang.c (ada_inferior_data_cleanup): Likewise.
1631         (get_ada_inferior_data): Likewise.
1632         (get_ada_pspace_data): Likewise.
1633         (ada_pspace_data_cleanup): Likewise.
1634         (ada_complete_symbol_matcher): Likewise.
1635         (ada_exc_search_name_matches): Likewise.
1636         * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
1637         (get_ada_tasks_inferior_data): Likewise.
1638         * addrmap.c (addrmap_mutable_foreach_worker): Likewise.
1639         (splay_obstack_alloc): Likewise.
1640         (splay_obstack_free): Likewise.
1641         * alpha-linux-tdep.c (alpha_linux_supply_gregset): Likewise.
1642         (alpha_linux_collect_gregset): Likewise.
1643         (alpha_linux_supply_fpregset): Likewise.
1644         (alpha_linux_collect_fpregset): Likewise.
1645         * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
1646         * alpha-tdep.c (alpha_lds): Likewise.
1647         (alpha_sts): Likewise.
1648         (alpha_sigtramp_frame_unwind_cache): Likewise.
1649         (alpha_heuristic_frame_unwind_cache): Likewise.
1650         (alpha_supply_int_regs): Likewise.
1651         (alpha_fill_int_regs): Likewise.
1652         (alpha_supply_fp_regs): Likewise.
1653         (alpha_fill_fp_regs): Likewise.
1654         * alphanbsd-tdep.c (alphanbsd_supply_fpregset): Likewise.
1655         (alphanbsd_aout_supply_gregset): Likewise.
1656         (alphanbsd_supply_gregset): Likewise.
1657         * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
1658         (amd64_x32_linux_init_abi): Likewise.
1659         * amd64-nat.c (amd64_supply_native_gregset): Likewise.
1660         (amd64_collect_native_gregset): Likewise.
1661         * amd64-tdep.c (amd64_frame_cache): Likewise.
1662         (amd64_sigtramp_frame_cache): Likewise.
1663         (amd64_epilogue_frame_cache): Likewise.
1664         (amd64_supply_fxsave): Likewise.
1665         (amd64_supply_xsave): Likewise.
1666         (amd64_collect_fxsave): Likewise.
1667         (amd64_collect_xsave): Likewise.
1668         * amd64-windows-tdep.c (amd64_windows_frame_cache): Likewise.
1669         * amd64obsd-tdep.c (amd64obsd_trapframe_cache): Likewise.
1670         * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
1671         (arm_linux_collect_gregset): Likewise.
1672         (arm_linux_supply_nwfpe): Likewise.
1673         (arm_linux_collect_nwfpe): Likewise.
1674         (arm_linux_supply_vfp): Likewise.
1675         (arm_linux_collect_vfp): Likewise.
1676         * arm-tdep.c (arm_find_mapping_symbol): Likewise.
1677         (arm_prologue_unwind_stop_reason): Likewise.
1678         (arm_prologue_this_id): Likewise.
1679         (arm_prologue_prev_register): Likewise.
1680         (arm_exidx_data_free): Likewise.
1681         (arm_find_exidx_entry): Likewise.
1682         (arm_stub_this_id): Likewise.
1683         (arm_m_exception_this_id): Likewise.
1684         (arm_m_exception_prev_register): Likewise.
1685         (arm_normal_frame_base): Likewise.
1686         (gdb_print_insn_arm): Likewise.
1687         (arm_objfile_data_free): Likewise.
1688         (arm_record_special_symbol): Likewise.
1689         (value_of_arm_user_reg): Likewise.
1690         * armbsd-tdep.c (armbsd_supply_fpregset): Likewise.
1691         (armbsd_supply_gregset): Likewise.
1692         * auto-load.c (auto_load_pspace_data_cleanup): Likewise.
1693         (get_auto_load_pspace_data): Likewise.
1694         (hash_loaded_script_entry): Likewise.
1695         (eq_loaded_script_entry): Likewise.
1696         (clear_section_scripts): Likewise.
1697         (collect_matching_scripts): Likewise.
1698         * auxv.c (auxv_inferior_data_cleanup): Likewise.
1699         (get_auxv_inferior_data): Likewise.
1700         * avr-tdep.c (avr_frame_unwind_cache): Likewise.
1701         * ax-general.c (do_free_agent_expr_cleanup): Likewise.
1702         * bfd-target.c (target_bfd_xfer_partial): Likewise.
1703         (target_bfd_xclose): Likewise.
1704         (target_bfd_get_section_table): Likewise.
1705         * bfin-tdep.c (bfin_frame_cache): Likewise.
1706         * block.c (find_block_in_blockvector): Likewise.
1707         (call_site_for_pc): Likewise.
1708         (block_find_non_opaque_type_preferred): Likewise.
1709         * break-catch-sig.c (signal_catchpoint_insert_location): Likewise.
1710         (signal_catchpoint_remove_location): Likewise.
1711         (signal_catchpoint_breakpoint_hit): Likewise.
1712         (signal_catchpoint_print_one): Likewise.
1713         (signal_catchpoint_print_mention): Likewise.
1714         (signal_catchpoint_print_recreate): Likewise.
1715         * break-catch-syscall.c (get_catch_syscall_inferior_data): Likewise.
1716         * breakpoint.c (do_cleanup_counted_command_line): Likewise.
1717         (bp_location_compare_addrs): Likewise.
1718         (get_first_locp_gte_addr): Likewise.
1719         (check_tracepoint_command): Likewise.
1720         (do_map_commands_command): Likewise.
1721         (get_breakpoint_objfile_data): Likewise.
1722         (free_breakpoint_probes): Likewise.
1723         (do_captured_breakpoint_query): Likewise.
1724         (compare_breakpoints): Likewise.
1725         (bp_location_compare): Likewise.
1726         (bpstat_remove_breakpoint_callback): Likewise.
1727         (do_delete_breakpoint_cleanup): Likewise.
1728         * bsd-uthread.c (bsd_uthread_set_supply_uthread): Likewise.
1729         (bsd_uthread_set_collect_uthread): Likewise.
1730         (bsd_uthread_activate): Likewise.
1731         (bsd_uthread_fetch_registers): Likewise.
1732         (bsd_uthread_store_registers): Likewise.
1733         * btrace.c (check_xml_btrace_version): Likewise.
1734         (parse_xml_btrace_block): Likewise.
1735         (parse_xml_btrace_pt_config_cpu): Likewise.
1736         (parse_xml_btrace_pt_raw): Likewise.
1737         (parse_xml_btrace_pt): Likewise.
1738         (parse_xml_btrace_conf_bts): Likewise.
1739         (parse_xml_btrace_conf_pt): Likewise.
1740         (do_btrace_data_cleanup): Likewise.
1741         * c-typeprint.c (find_typedef_for_canonicalize): Likewise.
1742         * charset.c (cleanup_iconv): Likewise.
1743         (do_cleanup_iterator): Likewise.
1744         * cli-out.c (cli_uiout_dtor): Likewise.
1745         (cli_table_begin): Likewise.
1746         (cli_table_body): Likewise.
1747         (cli_table_end): Likewise.
1748         (cli_table_header): Likewise.
1749         (cli_begin): Likewise.
1750         (cli_end): Likewise.
1751         (cli_field_int): Likewise.
1752         (cli_field_skip): Likewise.
1753         (cli_field_string): Likewise.
1754         (cli_field_fmt): Likewise.
1755         (cli_spaces): Likewise.
1756         (cli_text): Likewise.
1757         (cli_message): Likewise.
1758         (cli_wrap_hint): Likewise.
1759         (cli_flush): Likewise.
1760         (cli_redirect): Likewise.
1761         (out_field_fmt): Likewise.
1762         (field_separator): Likewise.
1763         (cli_out_set_stream): Likewise.
1764         * cli/cli-cmds.c (compare_symtabs): Likewise.
1765         * cli/cli-dump.c (call_dump_func): Likewise.
1766         (restore_section_callback): Likewise.
1767         * cli/cli-script.c (clear_hook_in_cleanup): Likewise.
1768         (do_restore_user_call_depth): Likewise.
1769         (do_free_command_lines_cleanup): Likewise.
1770         * coff-pe-read.c (get_section_vmas): Likewise.
1771         (pe_as16): Likewise.
1772         (pe_as32): Likewise.
1773         * coffread.c (coff_symfile_read): Likewise.
1774         * common/agent.c (agent_look_up_symbols): Likewise.
1775         * common/filestuff.c (do_close_cleanup): Likewise.
1776         * common/format.c (free_format_pieces_cleanup): Likewise.
1777         * common/vec.c (vec_o_reserve): Likewise.
1778         * compile/compile-c-support.c (print_one_macro): Likewise.
1779         * compile/compile-c-symbols.c (hash_symbol_error): Likewise.
1780         (eq_symbol_error): Likewise.
1781         (del_symbol_error): Likewise.
1782         (error_symbol_once): Likewise.
1783         (gcc_convert_symbol): Likewise.
1784         (gcc_symbol_address): Likewise.
1785         (hash_symname): Likewise.
1786         (eq_symname): Likewise.
1787         * compile/compile-c-types.c (hash_type_map_instance): Likewise.
1788         (eq_type_map_instance): Likewise.
1789         (insert_type): Likewise.
1790         (convert_type): Likewise.
1791         * compile/compile-object-load.c (munmap_listp_free_cleanup): Likewise.
1792         (setup_sections): Likewise.
1793         (link_hash_table_free): Likewise.
1794         (copy_sections): Likewise.
1795         * compile/compile-object-run.c (do_module_cleanup): Likewise.
1796         * compile/compile.c (compile_print_value): Likewise.
1797         (do_rmdir): Likewise.
1798         (cleanup_compile_instance): Likewise.
1799         (cleanup_unlink_file): Likewise.
1800         * completer.c (free_completion_tracker): Likewise.
1801         * corelow.c (add_to_spuid_list): Likewise.
1802         * cp-namespace.c (reset_directive_searched): Likewise.
1803         * cp-support.c (reset_directive_searched): Likewise.
1804         * cris-tdep.c (cris_sigtramp_frame_unwind_cache): Likewise.
1805         (cris_frame_unwind_cache): Likewise.
1806         * d-lang.c (builtin_d_type): Likewise.
1807         * d-namespace.c (reset_directive_searched): Likewise.
1808         * dbxread.c (dbx_free_symfile_info): Likewise.
1809         (do_free_bincl_list_cleanup): Likewise.
1810         * disasm.c (hash_dis_line_entry): Likewise.
1811         (eq_dis_line_entry): Likewise.
1812         (dis_asm_print_address): Likewise.
1813         (fprintf_disasm): Likewise.
1814         (do_ui_file_delete): Likewise.
1815         * doublest.c (convert_floatformat_to_doublest): Likewise.
1816         * dummy-frame.c (pop_dummy_frame_bpt): Likewise.
1817         (dummy_frame_prev_register): Likewise.
1818         (dummy_frame_this_id): Likewise.
1819         * dwarf2-frame-tailcall.c (cache_hash): Likewise.
1820         (cache_eq): Likewise.
1821         (cache_find): Likewise.
1822         (tailcall_frame_this_id): Likewise.
1823         (dwarf2_tailcall_prev_register_first): Likewise.
1824         (tailcall_frame_prev_register): Likewise.
1825         (tailcall_frame_dealloc_cache): Likewise.
1826         (tailcall_frame_prev_arch): Likewise.
1827         * dwarf2-frame.c (dwarf2_frame_state_free): Likewise.
1828         (dwarf2_frame_set_init_reg): Likewise.
1829         (dwarf2_frame_init_reg): Likewise.
1830         (dwarf2_frame_set_signal_frame_p): Likewise.
1831         (dwarf2_frame_signal_frame_p): Likewise.
1832         (dwarf2_frame_set_adjust_regnum): Likewise.
1833         (dwarf2_frame_adjust_regnum): Likewise.
1834         (clear_pointer_cleanup): Likewise.
1835         (dwarf2_frame_cache): Likewise.
1836         (find_cie): Likewise.
1837         (dwarf2_frame_find_fde): Likewise.
1838         * dwarf2expr.c (dwarf_expr_address_type): Likewise.
1839         (free_dwarf_expr_context_cleanup): Likewise.
1840         * dwarf2loc.c (locexpr_find_frame_base_location): Likewise.
1841         (locexpr_get_frame_base): Likewise.
1842         (loclist_find_frame_base_location): Likewise.
1843         (loclist_get_frame_base): Likewise.
1844         (dwarf_expr_dwarf_call): Likewise.
1845         (dwarf_expr_get_base_type): Likewise.
1846         (dwarf_expr_push_dwarf_reg_entry_value): Likewise.
1847         (dwarf_expr_get_obj_addr): Likewise.
1848         (entry_data_value_coerce_ref): Likewise.
1849         (entry_data_value_copy_closure): Likewise.
1850         (entry_data_value_free_closure): Likewise.
1851         (get_frame_address_in_block_wrapper): Likewise.
1852         (dwarf2_evaluate_property): Likewise.
1853         (dwarf2_compile_property_to_c): Likewise.
1854         (needs_frame_read_addr_from_reg): Likewise.
1855         (needs_frame_get_reg_value): Likewise.
1856         (needs_frame_frame_base): Likewise.
1857         (needs_frame_frame_cfa): Likewise.
1858         (needs_frame_tls_address): Likewise.
1859         (needs_frame_dwarf_call): Likewise.
1860         (needs_dwarf_reg_entry_value): Likewise.
1861         (get_ax_pc): Likewise.
1862         (locexpr_read_variable): Likewise.
1863         (locexpr_read_variable_at_entry): Likewise.
1864         (locexpr_read_needs_frame): Likewise.
1865         (locexpr_describe_location): Likewise.
1866         (locexpr_tracepoint_var_ref): Likewise.
1867         (locexpr_generate_c_location): Likewise.
1868         (loclist_read_variable): Likewise.
1869         (loclist_read_variable_at_entry): Likewise.
1870         (loclist_describe_location): Likewise.
1871         (loclist_tracepoint_var_ref): Likewise.
1872         (loclist_generate_c_location): Likewise.
1873         * dwarf2read.c (line_header_hash_voidp): Likewise.
1874         (line_header_eq_voidp): Likewise.
1875         (dwarf2_has_info): Likewise.
1876         (dwarf2_get_section_info): Likewise.
1877         (locate_dwz_sections): Likewise.
1878         (hash_file_name_entry): Likewise.
1879         (eq_file_name_entry): Likewise.
1880         (delete_file_name_entry): Likewise.
1881         (dw2_setup): Likewise.
1882         (dw2_get_file_names_reader): Likewise.
1883         (dw2_find_pc_sect_compunit_symtab): Likewise.
1884         (hash_signatured_type): Likewise.
1885         (eq_signatured_type): Likewise.
1886         (add_signatured_type_cu_to_table): Likewise.
1887         (create_debug_types_hash_table): Likewise.
1888         (lookup_dwo_signatured_type): Likewise.
1889         (lookup_dwp_signatured_type): Likewise.
1890         (lookup_signatured_type): Likewise.
1891         (hash_type_unit_group): Likewise.
1892         (eq_type_unit_group): Likewise.
1893         (get_type_unit_group): Likewise.
1894         (process_psymtab_comp_unit_reader): Likewise.
1895         (sort_tu_by_abbrev_offset): Likewise.
1896         (process_skeletonless_type_unit): Likewise.
1897         (psymtabs_addrmap_cleanup): Likewise.
1898         (dwarf2_read_symtab): Likewise.
1899         (psymtab_to_symtab_1): Likewise.
1900         (die_hash): Likewise.
1901         (die_eq): Likewise.
1902         (load_full_comp_unit_reader): Likewise.
1903         (reset_die_in_process): Likewise.
1904         (free_cu_line_header): Likewise.
1905         (handle_DW_AT_stmt_list): Likewise.
1906         (hash_dwo_file): Likewise.
1907         (eq_dwo_file): Likewise.
1908         (hash_dwo_unit): Likewise.
1909         (eq_dwo_unit): Likewise.
1910         (create_dwo_cu_reader): Likewise.
1911         (create_dwo_unit_in_dwp_v1): Likewise.
1912         (create_dwo_unit_in_dwp_v2): Likewise.
1913         (lookup_dwo_unit_in_dwp): Likewise.
1914         (dwarf2_locate_dwo_sections): Likewise.
1915         (dwarf2_locate_common_dwp_sections): Likewise.
1916         (dwarf2_locate_v2_dwp_sections): Likewise.
1917         (hash_dwp_loaded_cutus): Likewise.
1918         (eq_dwp_loaded_cutus): Likewise.
1919         (lookup_dwo_cutu): Likewise.
1920         (abbrev_table_free_cleanup): Likewise.
1921         (dwarf2_free_abbrev_table): Likewise.
1922         (find_partial_die_in_comp_unit): Likewise.
1923         (free_line_header_voidp): Likewise.
1924         (follow_die_offset): Likewise.
1925         (follow_die_sig_1): Likewise.
1926         (free_heap_comp_unit): Likewise.
1927         (free_stack_comp_unit): Likewise.
1928         (dwarf2_free_objfile): Likewise.
1929         (per_cu_offset_and_type_hash): Likewise.
1930         (per_cu_offset_and_type_eq): Likewise.
1931         (get_die_type_at_offset): Likewise.
1932         (partial_die_hash): Likewise.
1933         (partial_die_eq): Likewise.
1934         (dwarf2_per_objfile_free): Likewise.
1935         (hash_strtab_entry): Likewise.
1936         (eq_strtab_entry): Likewise.
1937         (add_string): Likewise.
1938         (hash_symtab_entry): Likewise.
1939         (eq_symtab_entry): Likewise.
1940         (delete_symtab_entry): Likewise.
1941         (cleanup_mapped_symtab): Likewise.
1942         (add_indices_to_cpool): Likewise.
1943         (hash_psymtab_cu_index): Likewise.
1944         (eq_psymtab_cu_index): Likewise.
1945         (add_address_entry_worker): Likewise.
1946         (unlink_if_set): Likewise.
1947         (write_one_signatured_type): Likewise.
1948         (save_gdb_index_command): Likewise.
1949         * elfread.c (elf_symtab_read): Likewise.
1950         (elf_gnu_ifunc_cache_hash): Likewise.
1951         (elf_gnu_ifunc_cache_eq): Likewise.
1952         (elf_gnu_ifunc_record_cache): Likewise.
1953         (elf_gnu_ifunc_resolve_by_cache): Likewise.
1954         (elf_get_probes): Likewise.
1955         (probe_key_free): Likewise.
1956         * f-lang.c (builtin_f_type): Likewise.
1957         * frame-base.c (frame_base_append_sniffer): Likewise.
1958         (frame_base_set_default): Likewise.
1959         (frame_base_find_by_frame): Likewise.
1960         * frame-unwind.c (frame_unwind_prepend_unwinder): Likewise.
1961         (frame_unwind_append_unwinder): Likewise.
1962         (frame_unwind_find_by_frame): Likewise.
1963         * frame.c (frame_addr_hash): Likewise.
1964         (frame_addr_hash_eq): Likewise.
1965         (frame_stash_find): Likewise.
1966         (do_frame_register_read): Likewise.
1967         (unwind_to_current_frame): Likewise.
1968         (frame_cleanup_after_sniffer): Likewise.
1969         * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
1970         * frv-tdep.c (frv_frame_unwind_cache): Likewise.
1971         * ft32-tdep.c (ft32_frame_cache): Likewise.
1972         * gcore.c (do_bfd_delete_cleanup): Likewise.
1973         (gcore_create_callback): Likewise.
1974         * gdb_bfd.c (hash_bfd): Likewise.
1975         (eq_bfd): Likewise.
1976         (gdb_bfd_open): Likewise.
1977         (free_one_bfd_section): Likewise.
1978         (gdb_bfd_ref): Likewise.
1979         (gdb_bfd_unref): Likewise.
1980         (get_section_descriptor): Likewise.
1981         (gdb_bfd_map_section): Likewise.
1982         (gdb_bfd_crc): Likewise.
1983         (gdb_bfd_mark_parent): Likewise.
1984         (gdb_bfd_record_inclusion): Likewise.
1985         (gdb_bfd_requires_relocations): Likewise.
1986         (print_one_bfd): Likewise.
1987         * gdbtypes.c (type_pair_hash): Likewise.
1988         (type_pair_eq): Likewise.
1989         (builtin_type): Likewise.
1990         (objfile_type): Likewise.
1991         * gnu-v3-abi.c (vtable_ptrdiff_type): Likewise.
1992         (vtable_address_point_offset): Likewise.
1993         (gnuv3_get_vtable): Likewise.
1994         (hash_value_and_voffset): Likewise.
1995         (eq_value_and_voffset): Likewise.
1996         (compare_value_and_voffset): Likewise.
1997         (compute_vtable_size): Likewise.
1998         (gnuv3_get_typeid_type): Likewise.
1999         * go-lang.c (builtin_go_type): Likewise.
2000         * guile/scm-block.c (bkscm_hash_block_smob): Likewise.
2001         (bkscm_eq_block_smob): Likewise.
2002         (bkscm_objfile_block_map): Likewise.
2003         (bkscm_del_objfile_blocks): Likewise.
2004         * guile/scm-breakpoint.c (bpscm_build_bp_list): Likewise.
2005         * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker): Likewise.
2006         (gdbscm_disasm_print_address): Likewise.
2007         * guile/scm-frame.c (frscm_hash_frame_smob): Likewise.
2008         (frscm_eq_frame_smob): Likewise.
2009         (frscm_inferior_frame_map): Likewise.
2010         (frscm_del_inferior_frames): Likewise.
2011         * guile/scm-gsmob.c (gdbscm_add_objfile_ref): Likewise.
2012         * guile/scm-objfile.c (ofscm_handle_objfile_deleted): Likewise.
2013         (ofscm_objfile_smob_from_objfile): Likewise.
2014         * guile/scm-ports.c (ioscm_write): Likewise.
2015         (ioscm_file_port_delete): Likewise.
2016         (ioscm_file_port_rewind): Likewise.
2017         (ioscm_file_port_put): Likewise.
2018         (ioscm_file_port_write): Likewise.
2019         * guile/scm-progspace.c (psscm_handle_pspace_deleted): Likewise.
2020         (psscm_pspace_smob_from_pspace): Likewise.
2021         * guile/scm-safe-call.c (scscm_recording_pre_unwind_handler): Likewise.
2022         (scscm_recording_unwind_handler): Likewise.
2023         (gdbscm_with_catch): Likewise.
2024         (scscm_call_0_body): Likewise.
2025         (scscm_call_1_body): Likewise.
2026         (scscm_call_2_body): Likewise.
2027         (scscm_call_3_body): Likewise.
2028         (scscm_call_4_body): Likewise.
2029         (scscm_apply_1_body): Likewise.
2030         (scscm_eval_scheme_string): Likewise.
2031         (gdbscm_safe_eval_string): Likewise.
2032         (scscm_source_scheme_script): Likewise.
2033         (gdbscm_safe_source_script): Likewise.
2034         * guile/scm-string.c (gdbscm_call_scm_to_stringn): Likewise.
2035         (gdbscm_call_scm_from_stringn): Likewise.
2036         * guile/scm-symbol.c (syscm_hash_symbol_smob): Likewise.
2037         (syscm_eq_symbol_smob): Likewise.
2038         (syscm_get_symbol_map): Likewise.
2039         (syscm_del_objfile_symbols): Likewise.
2040         * guile/scm-symtab.c (stscm_hash_symtab_smob): Likewise.
2041         (stscm_eq_symtab_smob): Likewise.
2042         (stscm_objfile_symtab_map): Likewise.
2043         (stscm_del_objfile_symtabs): Likewise.
2044         * guile/scm-type.c (tyscm_hash_type_smob): Likewise.
2045         (tyscm_eq_type_smob): Likewise.
2046         (tyscm_type_map): Likewise.
2047         (tyscm_copy_type_recursive): Likewise.
2048         (save_objfile_types): Likewise.
2049         * guile/scm-utils.c (extract_arg): Likewise.
2050         * h8300-tdep.c (h8300_frame_cache): Likewise.
2051         * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Likewise.
2052         * hppa-tdep.c (compare_unwind_entries): Likewise.
2053         (find_unwind_entry): Likewise.
2054         (hppa_frame_cache): Likewise.
2055         (hppa_stub_frame_unwind_cache): Likewise.
2056         * hppanbsd-tdep.c (hppanbsd_supply_gregset): Likewise.
2057         * hppaobsd-tdep.c (hppaobsd_supply_gregset): Likewise.
2058         (hppaobsd_supply_fpregset): Likewise.
2059         * i386-cygwin-tdep.c (core_process_module_section): Likewise.
2060         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
2061         * i386-tdep.c (i386_frame_cache): Likewise.
2062         (i386_epilogue_frame_cache): Likewise.
2063         (i386_sigtramp_frame_cache): Likewise.
2064         (i386_supply_gregset): Likewise.
2065         (i386_collect_gregset): Likewise.
2066         (i386_gdbarch_init): Likewise.
2067         * i386obsd-tdep.c (i386obsd_aout_supply_regset): Likewise.
2068         (i386obsd_trapframe_cache): Likewise.
2069         * i387-tdep.c (i387_supply_fsave): Likewise.
2070         (i387_collect_fsave): Likewise.
2071         (i387_supply_fxsave): Likewise.
2072         (i387_collect_fxsave): Likewise.
2073         (i387_supply_xsave): Likewise.
2074         (i387_collect_xsave): Likewise.
2075         * ia64-tdep.c (ia64_frame_cache): Likewise.
2076         (ia64_sigtramp_frame_cache): Likewise.
2077         * infcmd.c (attach_command_continuation): Likewise.
2078         (attach_command_continuation_free_args): Likewise.
2079         * inferior.c (restore_inferior): Likewise.
2080         (delete_thread_of_inferior): Likewise.
2081         * inflow.c (inflow_inferior_data_cleanup): Likewise.
2082         (get_inflow_inferior_data): Likewise.
2083         (inflow_inferior_exit): Likewise.
2084         * infrun.c (displaced_step_clear_cleanup): Likewise.
2085         (restore_current_uiout_cleanup): Likewise.
2086         (release_stop_context_cleanup): Likewise.
2087         (do_restore_infcall_suspend_state_cleanup): Likewise.
2088         (do_restore_infcall_control_state_cleanup): Likewise.
2089         (restore_inferior_ptid): Likewise.
2090         * inline-frame.c (block_starting_point_at): Likewise.
2091         * iq2000-tdep.c (iq2000_frame_cache): Likewise.
2092         * jit.c (get_jit_objfile_data): Likewise.
2093         (get_jit_program_space_data): Likewise.
2094         (jit_object_close_impl): Likewise.
2095         (jit_find_objf_with_entry_addr): Likewise.
2096         (jit_breakpoint_deleted): Likewise.
2097         (jit_unwind_reg_set_impl): Likewise.
2098         (jit_unwind_reg_get_impl): Likewise.
2099         (jit_dealloc_cache): Likewise.
2100         (jit_frame_sniffer): Likewise.
2101         (jit_frame_prev_register): Likewise.
2102         (jit_prepend_unwinder): Likewise.
2103         (jit_inferior_exit_hook): Likewise.
2104         (free_objfile_data): Likewise.
2105         * jv-lang.c (jv_per_objfile_free): Likewise.
2106         (get_dynamics_objfile): Likewise.
2107         (get_java_class_symtab): Likewise.
2108         (builtin_java_type): Likewise.
2109         * language.c (language_string_char_type): Likewise.
2110         (language_bool_type): Likewise.
2111         (language_lookup_primitive_type): Likewise.
2112         (language_lookup_primitive_type_as_symbol): Likewise.
2113         * linespec.c (hash_address_entry): Likewise.
2114         (eq_address_entry): Likewise.
2115         (iterate_inline_only): Likewise.
2116         (iterate_name_matcher): Likewise.
2117         (decode_line_2_compare_items): Likewise.
2118         (collect_one_symbol): Likewise.
2119         (compare_symbols): Likewise.
2120         (compare_msymbols): Likewise.
2121         (add_symtabs_to_list): Likewise.
2122         (collect_symbols): Likewise.
2123         (compare_msyms): Likewise.
2124         (add_minsym): Likewise.
2125         (cleanup_linespec_result): Likewise.
2126         * linux-fork.c (inferior_call_waitpid_cleanup): Likewise.
2127         * linux-nat.c (delete_lwp_cleanup): Likewise.
2128         (count_events_callback): Likewise.
2129         (select_event_lwp_callback): Likewise.
2130         (resume_stopped_resumed_lwps): Likewise.
2131         * linux-tdep.c (get_linux_gdbarch_data): Likewise.
2132         (invalidate_linux_cache_inf): Likewise.
2133         (get_linux_inferior_data): Likewise.
2134         (linux_find_memory_regions_thunk): Likewise.
2135         (linux_make_mappings_callback): Likewise.
2136         (linux_corefile_thread_callback): Likewise.
2137         (find_mapping_size): Likewise.
2138         * linux-thread-db.c (find_new_threads_callback): Likewise.
2139         * lm32-tdep.c (lm32_frame_cache): Likewise.
2140         * m2-lang.c (builtin_m2_type): Likewise.
2141         * m32c-tdep.c (m32c_analyze_frame_prologue): Likewise.
2142         * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_cache): Likewise.
2143         (m32r_linux_supply_gregset): Likewise.
2144         (m32r_linux_collect_gregset): Likewise.
2145         * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
2146         * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
2147         * m68k-tdep.c (m68k_frame_cache): Likewise.
2148         * m68kbsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
2149         (m68kbsd_supply_gregset): Likewise.
2150         * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
2151         * m88k-tdep.c (m88k_frame_cache): Likewise.
2152         (m88k_supply_gregset): Likewise.
2153
2154 2015-09-25  Simon Marchi  <simon.marchi@ericsson.com>
2155
2156         * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Add cast
2157         to allocation result assignment.
2158         * ada-exp.y (write_object_renaming): Likewise.
2159         (write_ambiguous_var): Likewise.
2160         (ada_nget_field_index): Likewise.
2161         (write_var_or_type): Likewise.
2162         * ada-lang.c (ada_decode_symbol): Likewise.
2163         (ada_value_assign): Likewise.
2164         (value_pointer): Likewise.
2165         (cache_symbol): Likewise.
2166         (add_nonlocal_symbols): Likewise.
2167         (ada_name_for_lookup): Likewise.
2168         (symbol_completion_add): Likewise.
2169         (ada_to_fixed_type_1): Likewise.
2170         (ada_get_next_arg): Likewise.
2171         (defns_collected): Likewise.
2172         * ada-lex.l (processId): Likewise.
2173         (processString): Likewise.
2174         * ada-tasks.c (read_known_tasks_array): Likewise.
2175         (read_known_tasks_list): Likewise.
2176         * ada-typeprint.c (decoded_type_name): Likewise.
2177         * addrmap.c (addrmap_mutable_create_fixed): Likewise.
2178         * amd64-tdep.c (amd64_push_arguments): Likewise.
2179         (amd64_displaced_step_copy_insn): Likewise.
2180         (amd64_classify_insn_at): Likewise.
2181         (amd64_relocate_instruction): Likewise.
2182         * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
2183         * arch-utils.c (simple_displaced_step_copy_insn): Likewise.
2184         (initialize_current_architecture): Likewise.
2185         * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
2186         * arm-symbian-tdep.c (arm_symbian_osabi_sniffer): Likewise.
2187         * arm-tdep.c (arm_exidx_new_objfile): Likewise.
2188         (arm_push_dummy_call): Likewise.
2189         (extend_buffer_earlier): Likewise.
2190         (arm_adjust_breakpoint_address): Likewise.
2191         (arm_skip_stub): Likewise.
2192         * auto-load.c (filename_is_in_pattern): Likewise.
2193         (maybe_add_script_file): Likewise.
2194         (maybe_add_script_text): Likewise.
2195         (auto_load_objfile_script_1): Likewise.
2196         * auxv.c (ld_so_xfer_auxv): Likewise.
2197         * ax-general.c (new_agent_expr): Likewise.
2198         (grow_expr): Likewise.
2199         (ax_reg_mask): Likewise.
2200         * bcache.c (bcache_full): Likewise.
2201         * breakpoint.c (program_breakpoint_here_p): Likewise.
2202         * btrace.c (parse_xml_raw): Likewise.
2203         * build-id.c (build_id_to_debug_bfd): Likewise.
2204         * buildsym.c (end_symtab_with_blockvector): Likewise.
2205         * c-exp.y (string_exp): Likewise.
2206         (qualified_name): Likewise.
2207         (write_destructor_name): Likewise.
2208         (operator_stoken): Likewise.
2209         (parse_number): Likewise.
2210         (scan_macro_expansion): Likewise.
2211         (yylex): Likewise.
2212         (c_print_token): Likewise.
2213         * c-lang.c (c_get_string): Likewise.
2214         (emit_numeric_character): Likewise.
2215         * charset.c (wchar_iterate): Likewise.
2216         * cli/cli-cmds.c (complete_command): Likewise.
2217         (make_command): Likewise.
2218         * cli/cli-dump.c (restore_section_callback): Likewise.
2219         (restore_binary_file): Likewise.
2220         * cli/cli-interp.c (cli_interpreter_exec): Likewise.
2221         * cli/cli-script.c (execute_control_command): Likewise.
2222         * cli/cli-setshow.c (do_set_command): Likewise.
2223         * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
2224         (read_pe_exported_syms): Likewise.
2225         * coffread.c (coff_read_struct_type): Likewise.
2226         (coff_read_enum_type): Likewise.
2227         * common/btrace-common.c (btrace_data_append): Likewise.
2228         * common/buffer.c (buffer_grow): Likewise.
2229         * common/filestuff.c (gdb_fopen_cloexec): Likewise.
2230         * common/format.c (parse_format_string): Likewise.
2231         * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
2232         * common/xml-utils.c (xml_escape_text): Likewise.
2233         * compile/compile-object-load.c (copy_sections): Likewise.
2234         (compile_object_load): Likewise.
2235         * compile/compile-object-run.c (compile_object_run): Likewise.
2236         * completer.c (filename_completer): Likewise.
2237         * corefile.c (read_memory_typed_address): Likewise.
2238         (write_memory_unsigned_integer): Likewise.
2239         (write_memory_signed_integer): Likewise.
2240         (complete_set_gnutarget): Likewise.
2241         * corelow.c (get_core_register_section): Likewise.
2242         * cp-name-parser.y (d_grab): Likewise.
2243         (allocate_info): Likewise.
2244         (cp_new_demangle_parse_info): Likewise.
2245         * cp-namespace.c (cp_scan_for_anonymous_namespaces): Likewise.
2246         (cp_lookup_symbol_in_namespace): Likewise.
2247         (lookup_namespace_scope): Likewise.
2248         (find_symbol_in_baseclass): Likewise.
2249         (cp_lookup_nested_symbol): Likewise.
2250         (cp_lookup_transparent_type_loop): Likewise.
2251         * cp-support.c (copy_string_to_obstack): Likewise.
2252         (make_symbol_overload_list): Likewise.
2253         (make_symbol_overload_list_namespace): Likewise.
2254         (make_symbol_overload_list_adl_namespace): Likewise.
2255         (first_component_command): Likewise.
2256         * cp-valprint.c (cp_print_value): Likewise.
2257         * ctf.c (ctf_xfer_partial): Likewise.
2258         * d-exp.y (StringExp): Likewise.
2259         * d-namespace.c (d_lookup_symbol_in_module): Likewise.
2260         (lookup_module_scope): Likewise.
2261         (find_symbol_in_baseclass): Likewise.
2262         (d_lookup_nested_symbol): Likewise.
2263         * dbxread.c (find_stab_function_addr): Likewise.
2264         (read_dbx_symtab): Likewise.
2265         (dbx_end_psymtab): Likewise.
2266         (cp_set_block_scope): Likewise.
2267         * dcache.c (dcache_alloc): Likewise.
2268         * demangle.c (_initialize_demangler): Likewise.
2269         * dicos-tdep.c (dicos_load_module_p): Likewise.
2270         * dictionary.c (dict_create_hashed_expandable): Likewise.
2271         (dict_create_linear_expandable): Likewise.
2272         (expand_hashtable): Likewise.
2273         (add_symbol_linear_expandable): Likewise.
2274         * dwarf2-frame.c (add_cie): Likewise.
2275         (add_fde): Likewise.
2276         (dwarf2_build_frame_info): Likewise.
2277         * dwarf2expr.c (dwarf_expr_grow_stack): Likewise.
2278         (dwarf_expr_fetch_address): Likewise.
2279         (add_piece): Likewise.
2280         (execute_stack_op): Likewise.
2281         * dwarf2loc.c (chain_candidate): Likewise.
2282         (dwarf_entry_parameter_to_value): Likewise.
2283         (read_pieced_value): Likewise.
2284         (write_pieced_value): Likewise.
2285         * dwarf2read.c (dwarf2_read_section): Likewise.
2286         (add_type_unit): Likewise.
2287         (read_comp_units_from_section): Likewise.
2288         (fixup_go_packaging): Likewise.
2289         (dwarf2_compute_name): Likewise.
2290         (dwarf2_physname): Likewise.
2291         (create_dwo_unit_in_dwp_v1): Likewise.
2292         (create_dwo_unit_in_dwp_v2): Likewise.
2293         (read_func_scope): Likewise.
2294         (read_call_site_scope): Likewise.
2295         (dwarf2_attach_fields_to_type): Likewise.
2296         (process_structure_scope): Likewise.
2297         (mark_common_block_symbol_computed): Likewise.
2298         (read_common_block): Likewise.
2299         (abbrev_table_read_table): Likewise.
2300         (guess_partial_die_structure_name): Likewise.
2301         (fixup_partial_die): Likewise.
2302         (add_file_name): Likewise.
2303         (dwarf2_const_value_data): Likewise.
2304         (dwarf2_const_value_attr): Likewise.
2305         (build_error_marker_type): Likewise.
2306         (guess_full_die_structure_name): Likewise.
2307         (anonymous_struct_prefix): Likewise.
2308         (typename_concat): Likewise.
2309         (dwarf2_canonicalize_name): Likewise.
2310         (dwarf2_name): Likewise.
2311         (write_constant_as_bytes): Likewise.
2312         (dwarf2_fetch_constant_bytes): Likewise.
2313         (copy_string): Likewise.
2314         (parse_macro_definition): Likewise.
2315         * elfread.c (elf_symfile_segments): Likewise.
2316         (elf_rel_plt_read): Likewise.
2317         (elf_gnu_ifunc_resolve_by_cache): Likewise.
2318         (elf_gnu_ifunc_resolve_by_got): Likewise.
2319         (elf_read_minimal_symbols): Likewise.
2320         (elf_gnu_ifunc_record_cache): Likewise.
2321         * event-top.c (top_level_prompt): Likewise.
2322         (command_line_handler): Likewise.
2323         * exec.c (resize_section_table): Likewise.
2324         * expprint.c (print_subexp_standard): Likewise.
2325         * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
2326         * findcmd.c (parse_find_args): Likewise.
2327         * findvar.c (address_from_register): Likewise.
2328         * frame.c (get_prev_frame_always): Likewise.
2329         * gdb_bfd.c (gdb_bfd_ref): Likewise.
2330         (get_section_descriptor): Likewise.
2331         * gdb_obstack.c (obconcat): Likewise.
2332         (obstack_strdup): Likewise.
2333         * gdbtypes.c (lookup_function_type_with_arguments): Likewise.
2334         (create_set_type): Likewise.
2335         (lookup_unsigned_typename): Likewise.
2336         (lookup_signed_typename): Likewise.
2337         (resolve_dynamic_union): Likewise.
2338         (resolve_dynamic_struct): Likewise.
2339         (add_dyn_prop): Likewise.
2340         (copy_dynamic_prop_list): Likewise.
2341         (arch_flags_type): Likewise.
2342         (append_composite_type_field_raw): Likewise.
2343         * gdbtypes.h (INIT_FUNC_SPECIFIC): Likewise.
2344         * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
2345         * go-exp.y (string_exp): Likewise.
2346         * go-lang.c (go_demangle): Likewise.
2347         * guile/guile.c (compute_scheme_string): Likewise.
2348         * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2349         (gdbscm_canonicalize_command_name): Likewise.
2350         * guile/scm-ports.c (ioscm_init_stdio_buffers): Likewise.
2351         (ioscm_init_memory_port): Likewise.
2352         (ioscm_reinit_memory_port): Likewise.
2353         * guile/scm-utils.c (gdbscm_gc_xstrdup): Likewise.
2354         (gdbscm_gc_dup_argv): Likewise.
2355         * h8300-tdep.c (h8300_push_dummy_call): Likewise.
2356         * hppa-tdep.c (internalize_unwinds): Likewise.
2357         (read_unwind_info): Likewise.
2358         * i386-cygwin-tdep.c (core_process_module_section): Likewise.
2359         (windows_core_xfer_shared_libraries): Likewise.
2360         * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
2361         (i386_stap_parse_special_token_triplet): Likewise.
2362         (i386_stap_parse_special_token_three_arg_disp): Likewise.
2363         * i386obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
2364         * inf-child.c (inf_child_fileio_readlink): Likewise.
2365         * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
2366         (inf_ptrace_store_register): Likewise.
2367         * infrun.c (follow_exec): Likewise.
2368         (displaced_step_prepare_throw): Likewise.
2369         (save_stop_context): Likewise.
2370         (save_infcall_suspend_state): Likewise.
2371         * jit.c (jit_read_descriptor): Likewise.
2372         (jit_read_code_entry): Likewise.
2373         (jit_symtab_line_mapping_add_impl): Likewise.
2374         (finalize_symtab): Likewise.
2375         (jit_unwind_reg_get_impl): Likewise.
2376         * jv-exp.y (QualifiedName): Likewise.
2377         * jv-lang.c (get_java_utf8_name): Likewise.
2378         (type_from_class): Likewise.
2379         (java_demangle_type_signature): Likewise.
2380         (java_class_name_from_physname): Likewise.
2381         * jv-typeprint.c (java_type_print_base): Likewise.
2382         * jv-valprint.c (java_value_print): Likewise.
2383         * language.c (add_language): Likewise.
2384         * linespec.c (add_sal_to_sals_basic): Likewise.
2385         (add_sal_to_sals): Likewise.
2386         (decode_objc): Likewise.
2387         (find_linespec_symbols): Likewise.
2388         * linux-fork.c (fork_save_infrun_state): Likewise.
2389         * linux-nat.c (linux_nat_detach): Likewise.
2390         (linux_nat_fileio_readlink): Likewise.
2391         * linux-record.c (record_linux_sockaddr): Likewise.
2392         (record_linux_msghdr): Likewise.
2393         (Do): Likewise.
2394         * linux-tdep.c (linux_core_info_proc_mappings): Likewise.
2395         (linux_collect_regset_section_cb): Likewise.
2396         (linux_get_siginfo_data): Likewise.
2397         * linux-thread-db.c (try_thread_db_load_from_pdir_1): Likewise.
2398         (try_thread_db_load_from_dir): Likewise.
2399         (thread_db_load_search): Likewise.
2400         (info_auto_load_libthread_db): Likewise.
2401         * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
2402         (m32c_m16c_pointer_to_address): Likewise.
2403         * m68hc11-tdep.c (m68hc11_pseudo_register_write): Likewise.
2404         * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
2405         * machoread.c (macho_check_dsym): Likewise.
2406         * macroexp.c (resize_buffer): Likewise.
2407         (gather_arguments): Likewise.
2408         (maybe_expand): Likewise.
2409         * macrotab.c (new_macro_key): Likewise.
2410         (new_source_file): Likewise.
2411         (new_macro_definition): Likewise.
2412         * mdebugread.c (parse_symbol): Likewise.
2413         (parse_type): Likewise.
2414         (parse_partial_symbols): Likewise.
2415         (psymtab_to_symtab_1): Likewise.
2416         * mem-break.c (default_memory_insert_breakpoint): Likewise.
2417         * mi/mi-cmd-break.c (mi_argv_to_format): Likewise.
2418         * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
2419         (mi_cmd_data_read_memory_bytes): Likewise.
2420         (mi_cmd_data_write_memory_bytes): Likewise.
2421         (mi_cmd_trace_frame_collected): Likewise.
2422         * mi/mi-parse.c (mi_parse_argv): Likewise.
2423         (mi_parse): Likewise.
2424         * minidebug.c (lzma_open): Likewise.
2425         (lzma_pread): Likewise.
2426         * mips-tdep.c (mips_read_fp_register_single): Likewise.
2427         (mips_print_fp_register): Likewise.
2428         * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
2429         * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
2430         * mt-tdep.c (mt_register_name): Likewise.
2431         (mt_registers_info): Likewise.
2432         (mt_push_dummy_call): Likewise.
2433         * namespace.c (add_using_directive): Likewise.
2434         * nat/linux-btrace.c (perf_event_read): Likewise.
2435         (linux_enable_bts): Likewise.
2436         * nat/linux-osdata.c (linux_common_core_of_thread): Likewise.
2437         * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Likewise.
2438         * nto-tdep.c (nto_find_and_open_solib): Likewise.
2439         (nto_parse_redirection): Likewise.
2440         * objc-lang.c (objc_demangle): Likewise.
2441         (find_methods): Likewise.
2442         * objfiles.c (get_objfile_bfd_data): Likewise.
2443         (set_objfile_main_name): Likewise.
2444         (allocate_objfile): Likewise.
2445         (objfile_relocate): Likewise.
2446         (update_section_map): Likewise.
2447         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
2448         * p-exp.y (exp): Likewise.
2449         (yylex): Likewise.
2450         * p-valprint.c (pascal_object_print_value): Likewise.
2451         * parse.c (initialize_expout): Likewise.
2452         (mark_completion_tag): Likewise.
2453         (copy_name): Likewise.
2454         (parse_float): Likewise.
2455         (type_stack_reserve): Likewise.
2456         * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
2457         (ppu2spu_prev_register): Likewise.
2458         * ppc-ravenscar-thread.c (supply_register_at_address): Likewise.
2459         * printcmd.c (printf_wide_c_string): Likewise.
2460         (printf_pointer): Likewise.
2461         * probe.c (parse_probes): Likewise.
2462         * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2463         (cmdpy_init): Likewise.
2464         * python/py-gdb-readline.c (gdbpy_readline_wrapper): Likewise.
2465         * python/py-symtab.c (set_sal): Likewise.
2466         * python/py-unwind.c (pyuw_sniffer): Likewise.
2467         * python/python.c (python_interactive_command): Likewise.
2468         (compute_python_string): Likewise.
2469         * ravenscar-thread.c (get_running_thread_id): Likewise.
2470         * record-full.c (record_full_exec_insn): Likewise.
2471         (record_full_core_open_1): Likewise.
2472         * regcache.c (regcache_raw_read_signed): Likewise.
2473         (regcache_raw_read_unsigned): Likewise.
2474         (regcache_cooked_read_signed): Likewise.
2475         (regcache_cooked_read_unsigned): Likewise.
2476         * remote-fileio.c (remote_fileio_func_open): Likewise.
2477         (remote_fileio_func_rename): Likewise.
2478         (remote_fileio_func_unlink): Likewise.
2479         (remote_fileio_func_stat): Likewise.
2480         (remote_fileio_func_system): Likewise.
2481         * remote-mips.c (mips_xfer_memory): Likewise.
2482         (mips_load_srec): Likewise.
2483         (pmon_end_download): Likewise.
2484         * remote.c (new_remote_state): Likewise.
2485         (map_regcache_remote_table): Likewise.
2486         (remote_register_number_and_offset): Likewise.
2487         (init_remote_state): Likewise.
2488         (get_memory_packet_size): Likewise.
2489         (remote_pass_signals): Likewise.
2490         (remote_program_signals): Likewise.
2491         (remote_start_remote): Likewise.
2492         (remote_check_symbols): Likewise.
2493         (remote_query_supported): Likewise.
2494         (extended_remote_attach): Likewise.
2495         (process_g_packet): Likewise.
2496         (store_registers_using_G): Likewise.
2497         (putpkt_binary): Likewise.
2498         (read_frame): Likewise.
2499         (compare_sections_command): Likewise.
2500         (remote_hostio_pread): Likewise.
2501         (remote_hostio_readlink): Likewise.
2502         (remote_file_put): Likewise.
2503         (remote_file_get): Likewise.
2504         (remote_pid_to_exec_file): Likewise.
2505         (_initialize_remote): Likewise.
2506         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
2507         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
2508         * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
2509         (bfd_uses_spe_extensions): Likewise.
2510         * s390-linux-tdep.c (s390_displaced_step_copy_insn): Likewise.
2511         * score-tdep.c (score7_malloc_and_get_memblock): Likewise.
2512         * solib-dsbt.c (decode_loadmap): Likewise.
2513         (fetch_loadmap): Likewise.
2514         (scan_dyntag): Likewise.
2515         (enable_break): Likewise.
2516         (dsbt_relocate_main_executable): Likewise.
2517         * solib-frv.c (fetch_loadmap): Likewise.
2518         (enable_break2): Likewise.
2519         (frv_relocate_main_executable): Likewise.
2520         * solib-spu.c (spu_relocate_main_executable): Likewise.
2521         (spu_bfd_open): Likewise.
2522         * solib-svr4.c (lm_info_read): Likewise.
2523         (read_program_header): Likewise.
2524         (find_program_interpreter): Likewise.
2525         (scan_dyntag): Likewise.
2526         (elf_locate_base): Likewise.
2527         (open_symbol_file_object): Likewise.
2528         (read_program_headers_from_bfd): Likewise.
2529         (svr4_relocate_main_executable): Likewise.
2530         * solib-target.c (solib_target_relocate_section_addresses): Likewise.
2531         * solib.c (solib_find_1): Likewise.
2532         (exec_file_find): Likewise.
2533         (solib_find): Likewise.
2534         * source.c (openp): Likewise.
2535         (print_source_lines_base): Likewise.
2536         (forward_search_command): Likewise.
2537         * sparc-ravenscar-thread.c (supply_register_at_address): Likewise.
2538         * spu-tdep.c (spu2ppu_prev_register): Likewise.
2539         (spu_get_overlay_table): Likewise.
2540         * stabsread.c (patch_block_stabs): Likewise.
2541         (define_symbol): Likewise.
2542         (again:): Likewise.
2543         (read_member_functions): Likewise.
2544         (read_one_struct_field): Likewise.
2545         (read_enum_type): Likewise.
2546         (common_block_start): Likewise.
2547         * stack.c (read_frame_arg): Likewise.
2548         (backtrace_command): Likewise.
2549         * stap-probe.c (stap_parse_register_operand): Likewise.
2550         * symfile.c (syms_from_objfile_1): Likewise.
2551         (find_separate_debug_file): Likewise.
2552         (load_command): Likewise.
2553         (load_progress): Likewise.
2554         (load_section_callback): Likewise.
2555         (reread_symbols): Likewise.
2556         (add_filename_language): Likewise.
2557         (allocate_compunit_symtab): Likewise.
2558         (read_target_long_array): Likewise.
2559         (simple_read_overlay_table): Likewise.
2560         * symtab.c (symbol_set_names): Likewise.
2561         (resize_symbol_cache): Likewise.
2562         (rbreak_command): Likewise.
2563         (completion_list_add_name): Likewise.
2564         (completion_list_objc_symbol): Likewise.
2565         (add_filename_to_list): Likewise.
2566         * target-descriptions.c (maint_print_c_tdesc_cmd): Likewise.
2567         * target-memory.c (target_write_memory_blocks): Likewise.
2568         * target.c (target_read_string): Likewise.
2569         (read_whatever_is_readable): Likewise.
2570         (target_read_alloc_1): Likewise.
2571         (simple_search_memory): Likewise.
2572         (target_fileio_read_alloc_1): Likewise.
2573         * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
2574         * top.c (command_line_input): Likewise.
2575         * tracefile-tfile.c (tfile_fetch_registers): Likewise.
2576         * tracefile.c (tracefile_fetch_registers): Likewise.
2577         * tracepoint.c (add_memrange): Likewise.
2578         (init_collection_list): Likewise.
2579         (add_aexpr): Likewise.
2580         (trace_dump_actions): Likewise.
2581         (parse_trace_status): Likewise.
2582         (parse_tracepoint_definition): Likewise.
2583         (parse_tsv_definition): Likewise.
2584         (parse_static_tracepoint_marker_definition): Likewise.
2585         * tui/tui-file.c (tui_sfileopen): Likewise.
2586         (tui_file_adjust_strbuf): Likewise.
2587         * tui/tui-io.c (tui_expand_tabs): Likewise.
2588         * tui/tui-source.c (tui_set_source_content): Likewise.
2589         * typeprint.c (find_global_typedef): Likewise.
2590         * ui-file.c (do_ui_file_xstrdup): Likewise.
2591         (ui_file_obsavestring): Likewise.
2592         (mem_file_write): Likewise.
2593         * utils.c (make_hex_string): Likewise.
2594         (get_regcomp_error): Likewise.
2595         (puts_filtered_tabular): Likewise.
2596         (gdb_realpath_keepfile): Likewise.
2597         (ldirname): Likewise.
2598         (gdb_bfd_errmsg): Likewise.
2599         (substitute_path_component): Likewise.
2600         * valops.c (search_struct_method): Likewise.
2601         (find_oload_champ_namespace_loop): Likewise.
2602         * valprint.c (print_decimal_chars): Likewise.
2603         (read_string): Likewise.
2604         (generic_emit_char): Likewise.
2605         * varobj.c (varobj_delete): Likewise.
2606         (varobj_value_get_print_value): Likewise.
2607         * vaxobsd-tdep.c (vaxobsd_sigtramp_sniffer): Likewise.
2608         * windows-tdep.c (display_one_tib): Likewise.
2609         * xcoffread.c (read_xcoff_symtab): Likewise.
2610         (process_xcoff_symbol): Likewise.
2611         (swap_sym): Likewise.
2612         (scan_xcoff_symtab): Likewise.
2613         (xcoff_initial_scan): Likewise.
2614         * xml-support.c (gdb_xml_end_element): Likewise.
2615         (xml_process_xincludes): Likewise.
2616         (xml_fetch_content_from_file): Likewise.
2617         * xml-syscall.c (xml_list_of_syscalls): Likewise.
2618         * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
2619
2620 2015-09-23  James Bowman  <james.bowman@ftdichip.com>
2621
2622         * ft32-tdep.c (ft32_register_type): Return gdbarch_tdep (gdbarch)->pc_type
2623         instead of builtin_func_ptr.
2624         (ft32_pointer_to_address): New function.
2625         (ft32_address_class_type_flags): New function.
2626         (ft32_address_class_type_flags_to_name): New function.
2627         (ft32_address_class_name_to_type_flags): New function.
2628         (ft32_gdbarch_init): Set tdep->pc_type.  Call
2629         set_gdbarch_pointer_to_address,
2630         set_gdbarch_address_class_type_flags
2631         set_gdbarch_address_class_name_to_type_flags,
2632         and set_gdbarch_address_class_type_flags_to_name.
2633         * ft32-tdep.h (struct gdbarch_tdep) <pc_type>: New field.
2634
2635 2015-09-23  Pierre-Marie de Rodat  <derodat@adacore.com>
2636
2637         * ada-lang.c (ada_evaluate_subexp) <OP_FUNCALL>: When the input
2638         value is a reference, actually dereference it in order to get
2639         the underlying value.
2640
2641 2015-09-22  Simon Marchi  <simon.marchi@ericsson.com>
2642
2643         * stap-probe.c (handle_stap_probe): Remove unnecessary cast.
2644
2645 2015-09-21  Simon Marchi  <simon.marchi@ericsson.com>
2646
2647         * cli/cli-setshow.c (cmd_show_list): Constify a variable.
2648         * linespec.c (linespec_lexer_lex_string): Same.
2649
2650 2015-09-21  Pierre Langlois  <pierre.langlois@arm.com>
2651
2652         * NEWS: Mention support for fast tracepoints on aarch64-linux.
2653
2654 2015-09-21  Pierre Langlois  <pierre.langlois@arm.com>
2655
2656         * aarch64-tdep.c (aarch64_analyze_prologue): New is_adrp
2657         variable.  Call aarch64_decode_adr instead of
2658         aarch64_decode_adrp.
2659         * arch/aarch64-insn.h (aarch64_decode_adrp): Delete.
2660         (aarch64_decode_adr): New function declaration.
2661         * arch/aarch64-insn.c (aarch64_decode_adrp): Delete.
2662         (aarch64_decode_adr): New function, factored out from
2663         aarch64_decode_adrp to decode both adr and adrp instructions.
2664
2665 2015-09-21  Pierre Langlois  <pierre.langlois@arm.com>
2666
2667         * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-insn.o.
2668         (HFILES_NO_SRCDIR): Add arch/aarch64-insn.h.
2669         (aarch64-insn.o): New rule.
2670         * configure.tgt (aarch64*-*-elf): Add aarch64-insn.o.
2671         (aarch64*-*-linux*): Likewise.
2672         * arch/aarch64-insn.c: New file.
2673         * arch/aarch64-insn.h: New file.
2674         * aarch64-tdep.c: Include arch/aarch64-insn.h.
2675         (aarch64_debug): Move to arch/aarch64-insn.c.  Declare in
2676         arch/aarch64-insn.h.
2677         (decode_add_sub_imm): Rename to ...
2678         (aarch64_decode_add_sub_imm): ... this.
2679         (decode_adrp): Rename to ...
2680         (aarch64_decode_adrp): ... this.  Move to arch/aarch64-insn.c.
2681         Declare in arch/aarch64-insn.h.
2682         (decode_b): Rename to ...
2683         (aarch64_decode_b): ... this.  Move to arch/aarch64-insn.c.
2684         Declare in arch/aarch64-insn.h.
2685         (decode_bcond): Rename to ...
2686         (aarch64_decode_bcond): ... this.  Move to arch/aarch64-insn.c.
2687         Declare in arch/aarch64-insn.h.
2688         (decode_br): Rename to ...
2689         (aarch64_decode_br): ... this.
2690         (decode_cb): Rename to ...
2691         (aarch64_decode_cb): ... this.  Move to arch/aarch64-insn.c.
2692         Declare in arch/aarch64-insn.h.
2693         (decode_eret): Rename to ...
2694         (aarch64_decode_eret): ... this.
2695         (decode_movz): Rename to ...
2696         (aarch64_decode_movz): ... this.
2697         (decode_orr_shifted_register_x): Rename to ...
2698         (aarch64_decode_orr_shifted_register_x): ... this.
2699         (decode_ret): Rename to ...
2700         (aarch64_decode_ret): ... this.
2701         (decode_stp_offset): Rename to ...
2702         (aarch64_decode_stp_offset): ... this.
2703         (decode_stp_offset_wb): Rename to ...
2704         (aarch64_decode_stp_offset_wb): ... this.
2705         (decode_stur): Rename to ...
2706         (aarch64_decode_stur): ... this.
2707         (decode_tb): Rename to ...
2708         (aarch64_decode_tb): ... this.  Move to arch/aarch64-insn.c.
2709         Declare in arch/aarch64-insn.h.
2710         (aarch64_analyze_prologue): Adjust calls to renamed functions.
2711
2712 2015-09-20  Doug Evans  <xdje42@gmail.com>
2713
2714         * dwarf2read.c (add_partial_symbol): Remove outdated comments.
2715
2716 2015-09-20  Doug Evans  <xdje42@gmail.com>
2717
2718         * dwarf2read.c (dwarf2_compute_name): Add FIXME.  Don't use a local
2719         variable name that collides with a parameter.
2720
2721 2015-09-20  Joel Brobecker  <brobecker@adacore.com>
2722
2723         * dwarf2loc.c (locexpr_get_frame_base): Renames
2724         block_op_get_frame_base.
2725         (dwarf2_block_frame_base_locexpr_funcs): Replace reference to
2726         block_op_get_frame_base by reference to locexpr_get_frame_base.
2727         (loclist_get_frame_base): New function, near identical copy of
2728         locexpr_get_frame_base.
2729         (dwarf2_block_frame_base_loclist_funcs): Replace reference to
2730         block_op_get_frame_base by reference to loclist_get_frame_base.
2731
2732 2015-09-19  Doug Evans  <xdje42@gmail.com>
2733
2734         * ravenscar-thread.c (ravenscar_inferior_created): Replace
2735         current_inferior ()->gdbarch with its wrapper target_gdbarch.
2736
2737 2015-09-18  Doug Evans  <xdje42@gmail.com>
2738
2739         * linux-thread-db.c (record_thread): Return the created thread.
2740         (thread_from_lwp): Likewise.
2741         (thread_db_get_thread_local_address): Update.
2742
2743 2015-09-18  Doug Evans  <xdje42@gmail.com>
2744
2745         * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
2746         move only member demangled_name up.  All uses updated.
2747
2748 2015-09-18  Doug Evans  <xdje42@gmail.com>
2749
2750         * findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
2751         kind of minimal symbol in the error message.
2752         * objfiles.c (objfile_flavour_name): New function.
2753         * objfiles.h (objfile_flavour_name): Declare.
2754
2755 2015-09-18  Yao Qi  <yao.qi@linaro.org>
2756
2757         * nat/aarch64-linux.c: Include elf/common.h,
2758         nat/gdb_ptrace.h, asm/ptrace.h and sys/uio.h.
2759         (aarch64_ps_get_thread_area): New function.
2760         * nat/aarch64-linux.h: Include gdb_proc_service.h.
2761         (aarch64_ps_get_thread_area): Declare.
2762         * aarch64-linux-nat.c (ps_get_thread_area): Call
2763         aarch64_ps_get_thread_area.
2764
2765 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2766
2767         * record-btrace.c (record_btrace_resume): Honour scheduler-locking.
2768
2769 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2770
2771         * NEWS: Announce new scheduler-locking mode.
2772         * infrun.c (schedlock_replay): New.
2773         (scheduler_enums): Add schedlock_replay.
2774         (scheduler_mode): Change default to schedlock_replay.
2775         (user_visible_resume_ptid): Handle schedlock_replay.
2776         (clear_proceed_status_thread): Stop replaying if resumed thread is
2777         not replaying.
2778         (schedlock_applies): Handle schedlock_replay.
2779         (_initialize_infrun): Document new scheduler-locking mode.
2780         * record-btrace.c (record_btrace_resume): Remove code to stop other
2781         threads when not replaying the resumed thread.
2782
2783 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2784
2785         * record-btrace.c ((record_btrace_will_replay): New.
2786         (init_record_btrace_ops): Initialize to_record_will_replay.
2787         * record-full.c ((record_full_will_replay): New.
2788         (init_record_full_ops): Initialize to_record_will_replay.
2789         * target-delegates.c: Regenerated.
2790         * target.c (target_record_will_replay): New.
2791         * target.h (struct target_ops) <to_record_will_replay>: New.
2792         (target_record_will_replay): New.
2793
2794 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2795
2796         * record-btrace.c (record_btrace_resume): Call
2797         target_record_stop_replaying.
2798         (record_btrace_stop_replaying_all): New.
2799         (init_record_btrace_ops): Initialize to_record_stop_replaying.
2800         * record-full.c (record_full_stop_replaying): New.
2801         (init_record_full_ops ): Initialize to_record_stop_replaying.
2802         * target-delegates.c: Regenerated.
2803         * target.c (target_record_stop_replaying): New.
2804         * target.h (struct target_ops) <to_record_stop_replaying>: New.
2805         (target_record_stop_replaying): New.
2806
2807 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2808
2809         * record-btrace.c (record_btrace_xfer_partial)
2810         (record_btrace_store_registers, record_btrace_prepare_to_store):
2811         Call record_btrace_is_replaying with inferior_ptid instead of
2812         minus_one_ptid.
2813         (record_btrace_store_registers): Change error message.
2814
2815 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2816
2817         * record-btrace.c (record_btrace_is_replaying): Add ptid argument.
2818         Update users to pass minus_one_ptid.
2819         * record-full.c (record_full_is_replaying): Add ptid argument (ignored).
2820         * record.c (cmd_record_delete): Pass inferior_ptid to
2821         target_record_is_replaying.
2822         * target-delegates.c: Regenerated.
2823         * target.c (target_record_is_replaying): Add ptid argument.
2824         * target.h (struct target_ops) <to_record_is_replaying>: Add ptid
2825         argument.
2826         (target_record_is_replaying): Add ptid argument.
2827
2828 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2829
2830         * record-btrace.c (record_btrace_open): Remove non_stop check.
2831         * NEWS: Announce that record btrace supports non-stop mode.
2832
2833 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2834
2835         * infrun.c (handle_inferior_event_1): Switch to the eventing thread
2836         in the TARKET_WAITKIND_NO_HISTORY case.
2837
2838 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2839
2840         * record-btrace.c (record_btrace_maybe_mark_async_event): New.
2841         (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
2842
2843 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2844
2845         * record-btrace.c (get_thread_current_frame): New.
2846         (record_btrace_start_replaying): Call get_thread_current_frame.
2847
2848 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2849
2850         * record-btrace.c (record_btrace_resume_thread): A move request
2851         overwrites a previous move request.
2852         (record_btrace_find_resume_thread): Removed.
2853         (record_btrace_resume): Resume all requested threads.
2854
2855 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2856
2857         * record-btrace.c: Include vec.h.
2858         (record_btrace_find_thread_to_move): Removed.
2859         (btrace_step_no_resumed, btrace_step_again)
2860         (record_btrace_stop_replaying_at_end): New.
2861         (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
2862         (record_btrace_single_step_forward): Remove calls to
2863         record_btrace_stop_replaying.
2864         (record_btrace_step_thread): Do only one step for BTHR_CONT and
2865         BTHR_RCONT.  Keep threads at the end of their history moving.
2866         (record_btrace_wait): Call record_btrace_step_thread for all threads
2867         until one reports an event.  Call record_btrace_stop_replaying_at_end
2868         for the eventing thread.
2869
2870 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2871
2872         * record-btrace.c (record_btrace_single_step_forward): Return
2873         NO_HISTORY if a step brings us to the end of the execution history.
2874
2875 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2876
2877         * record-btrace.c (record_btrace_step_thread): Move breakpoint check
2878         to ...
2879         (record_btrace_single_step_forward): ... here and
2880         (record_btrace_single_step_backward): ... here.
2881
2882 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2883
2884         * record-btrace.c (btrace_step_spurious)
2885         (record_btrace_single_step_forward)
2886         (record_btrace_single_step_backward): New.
2887         (record_btrace_step_thread): Call record_btrace_single_step_forward
2888         and record_btrace_single_step_backward.
2889
2890 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2891
2892         * record-btrace.c (record_btrace_replay_at_breakpoint): New.
2893         (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
2894
2895 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2896
2897         * record-btrace.c (btrace_thread_flag_to_str)
2898         (record_btrace_cancel_resume): New.
2899         (record_btrace_step_thread): Call btrace_thread_flag_to_str.
2900         (record_btrace_resume): Print execution direction.
2901         (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
2902         (record_btrace_wait): Call record_btrace_cancel_resume.
2903
2904 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2905
2906         * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
2907         * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
2908         (record_btrace_find_thread_to_move): Also accept threads that have
2909         BTHR_STOP set.
2910         (btrace_step_stopped_on_request, record_btrace_stop): New.
2911         (record_btrace_step_thread): Support BTHR_STOP.
2912         (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
2913         (init_record_btrace_ops): Initialize to_stop.
2914
2915 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2916
2917         * record-btrace.c (record_btrace_wait): Replace non_stop check with
2918         target_is_non_stop_p ().
2919
2920 2015-09-15  Pierre-Marie de Rodat  <derodat@adacore.com>
2921
2922         * ada-typeprint.c (print_array_type): Do not describe arrays as
2923         packed when they embed dynamic elements.
2924
2925 2015-09-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
2926
2927         * symtab.h (address_class): Document that TLS variables
2928         are handled by LOC_UNRESOLVED.
2929         * findvar.c (default_read_var_value): Don't relocate TLS variables.
2930         * printcmd.c (address_info): Don't relocate TLS variables.
2931
2932 2015-09-15  Pierre Langlois  <pierre.langlois@arm.com>
2933
2934         * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
2935         (decode_adrp): Likewise.
2936         (decode_b): Likewise.
2937         (decode_bcond): Likewise.
2938         (decode_br): Likewise.
2939         (decode_cb): Likewise.
2940         (decode_eret): Likewise.
2941         (decode_movz): Likewise.
2942         (decode_orr_shifted_register_x): Likewise.
2943         (decode_ret): Likewise.
2944         (decode_stp_offset): Likewise.
2945         (decode_stp_offset_wb): Likewise.
2946         (decode_stur): Likewise.
2947         (decode_tb): Likewise.
2948         (aarch64_analyze_prologue): Likewise.
2949         (pass_in_x): Likewise.
2950         (pass_in_v): Likewise.
2951         (pass_on_stack): Likewise.
2952         (aarch64_push_dummy_call): Likewise.
2953         (aarch64_extract_return_value): Likewise.
2954         (aarch64_store_return_value): Likewise.
2955         (aarch64_return_value): Likewise.
2956         (aarch64_record_asimd_load_store): Likewise.
2957         (aarch64_record_load_store): Likewise.
2958         (aarch64_record_data_proc_simd_fp): Likewise.
2959
2960 2015-09-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
2961
2962         * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
2963         * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
2964         (ppc64_skip_trampoline_code_1): ... here.
2965         (ppc64_skip_trampoline_code): New wrapper function.
2966         * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
2967
2968 2015-09-15  Yao Qi  <yao.qi@linaro.org>
2969
2970         * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
2971         function.
2972         (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
2973         * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
2974         if target_can_do_single_step returns 1.
2975         * remote.c (struct vCont_action_support) <s, S>: New fields.
2976         (PACKET_vContSupported): New enum.
2977         (remote_protocol_features): New element for vContSupported.
2978         (remote_query_supported): Append "vContSupported+".
2979         (remote_vcont_probe): Remove support_s and support_S, use
2980         rs->supports_vCont.s and rs->supports_vCont.S instead.  Disable
2981         vCont packet if c and C actions are not supported.
2982         (remote_can_do_single_step): New function.
2983         (init_remote_ops): Install it to to_can_do_single_step.
2984         (_initialize_remote): Call add_packet_config_cmd.
2985         * target.h (struct target_ops) <to_can_do_single_step>: New field.
2986         (target_can_do_single_step): New macro.
2987         * target-delegates.c: Re-generated.
2988
2989 2015-09-15  Yao Qi  <yao.qi@linaro.org>
2990
2991         * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
2992         (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
2993         * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
2994         New function.
2995         (aarch64_siginfo_from_compat_siginfo): New function.
2996         * nat/aarch64-linux.h: Include signal.h.
2997         (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
2998         (compat_timer_t, compat_clock_t): Likewise.
2999         (struct compat_timeval): New.
3000         (union compat_sigval): New.
3001         (struct compat_siginfo): New.
3002         (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
3003         (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
3004         (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
3005         (cpt_si_band, cpt_si_fd): Likewise.
3006
3007 2015-09-14  Pedro Alves  <palves@redhat.com>
3008
3009         * infrun.c (current_stop_id): New global.
3010         (get_stop_id, new_stop_id): New functions.
3011         (fetch_inferior_event): Handle normal_stop proceeding the target.
3012         (struct stop_context): New.
3013         (save_stop_context, release_stop_context_cleanup)
3014         (stop_context_changed): New functions.
3015         (normal_stop): Return true if the hook-stop changes the stop
3016         context.
3017         * infrun.h (get_stop_id): Declare.
3018         (normal_stop): Now returns int.  Add documentation.
3019
3020 2015-09-14  Pierre-Marie de Rodat  <derodat@adacore.com>
3021
3022         * ada-lang.c (ada_value_ptr_subscript): Update the heading
3023         comment.  Handle packed arrays.
3024
3025 2015-09-14  Pedro Alves  <palves@redhat.com>
3026
3027         * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
3028         mention of maint set/show target-non-stop.
3029
3030 2015-09-11  Don Breazeal  <donb@codesourcery.com>
3031
3032         * NEWS: Announce new remote packets for the exec-events
3033         feature and the exec-events feature and associated commands.
3034
3035 2015-09-11  Don Breazeal  <donb@codesourcery.com>
3036
3037         * remote.c (remote_exec_event_p): New function.
3038         (remote_insert_exec_catchpoint): New function.
3039         (remote_remove_exec_catchpoint): New function.
3040         (init_extended_remote_ops): Initialize extended_remote_ops
3041         members to_insert_exec_catchpoint and
3042         to_remove_exec_catchpoint.
3043
3044 2015-09-11  Don Breazeal  <donb@codesourcery.com>
3045             Luis Machado  <lgustavo@codesourcery.com>
3046
3047         * infrun.c (follow_exec): Use process-style ptid for
3048         exec message.  Call add_inferior_with_spaces and
3049         target_follow_exec.
3050         * nat/linux-ptrace.c (linux_supports_traceexec): New function.
3051         * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
3052         * remote.c (remote_pspace_data): New static variable.
3053         (remote_pspace_data_cleanup): New function.
3054         (get_remote_exec_file): New function.
3055         (set_remote_exec_file_1): New function.
3056         (set_remote_exec_file): New function.
3057         (show_remote_exec_file): New function.
3058         (remote_exec_file): Delete static variable.
3059         (anonymous enum) <PACKET_exec_event_feature>: New
3060         enumeration constant.
3061         (remote_protocol_features): Add entry for exec-events feature.
3062         (remote_query_supported): Add client side of qSupported query
3063         for exec-events feature.
3064         (remote_follow_exec): New function.
3065         (remote_parse_stop_reply): Handle 'exec' stop reason.
3066         (extended_remote_run, extended_remote_create_inferior): Call
3067         get_remote_exec_file and set_remote_exec_file_1.
3068         (init_extended_remote_ops) <to_follow_exec>: Initialize new
3069         member.
3070         (_initialize_remote): Call
3071         register_program_space_data_with_cleanup.  Call
3072         add_packet_config_cmd for remote exec-events feature.
3073         Modify call to add_setshow_string_noescape_cmd for exec-file
3074         to use new functions set_remote_exec_file and
3075         show_remote_exec_file.
3076         * target-debug.h, target-delegates.c: Regenerated.
3077         * target.c (target_follow_exec): New function.
3078         * target.h (struct target_ops) <to_follow_exec>: New member.
3079         (target_follow_exec): Declare new function.
3080
3081 2015-09-11  Pierre Langlois  <pierre.langlois@arm.com>
3082
3083         * aarch64-tdep.c (decode_cb): Move up comment describing the
3084         encoding.
3085         (decode_tb): Fix a typo in comment above the function.  Move up
3086         comment describing the encoding.
3087
3088 2015-09-11  Pierre Langlois  <pierre.langlois@arm.com>
3089
3090         * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
3091
3092 2015-09-11  Mihail-Marian Nistor  <mihail.nistor@freescale.com>
3093
3094         PR gdb/18947
3095         * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
3096         glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
3097
3098 2015-09-10  Simon Marchi  <simon.marchi@ericsson.com>
3099
3100         * ada-lang.c (scan_discrim_bound): Factor out arithmetic
3101         operations.
3102
3103 2015-09-10  Simon Marchi  <simon.marchi@ericsson.com>
3104
3105         * ada-lang.c (ada_search_struct_field): Constify parameters
3106         and/or variables..
3107         (xget_renaming_scope): Likewise.
3108         (ada_is_redundant_range_encoding): Likewise.
3109         (scan_discrim_bound): Likewise.
3110         (to_fixed_range_type): Likewise.
3111
3112 2015-09-10  Yao Qi  <yao.qi@linaro.org>
3113
3114         * breakpoint.c (download_tracepoint_locations): New local
3115         can_download_tracepoint.  Check the result of
3116         target_can_download_tracepoint and save it in
3117         can_download_tracepoint if there are tracepoints to download.
3118         * linux-nat.h (enum tribool): Move it to ...
3119         * common/common-types.h: ... here.
3120
3121 2015-09-09  Pedro Alves  <palves@redhat.com>
3122
3123         * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
3124         * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
3125
3126 2015-09-09  Pedro Alves  <palves@redhat.com>
3127
3128         * continuations.c (add_continuation, restore_thread_cleanup)
3129         (do_all_continuations_ptid, do_all_continuations_thread_callback)
3130         (do_all_continuations_thread, do_all_continuations)
3131         (discard_all_continuations_thread_callback)
3132         (discard_all_continuations_thread, discard_all_continuations)
3133         (add_intermediate_continuation)
3134         (do_all_intermediate_continuations_thread_callback)
3135         (do_all_intermediate_continuations_thread)
3136         (do_all_intermediate_continuations)
3137         (discard_all_intermediate_continuations_thread_callback)
3138         (discard_all_intermediate_continuations_thread)
3139         (discard_all_intermediate_continuations): Delete.
3140         * continuations.h (add_continuation, do_all_continuations)
3141         (do_all_continuations_thread, discard_all_continuations)
3142         (discard_all_continuations_thread, add_intermediate_continuation)
3143         (do_all_intermediate_continuations)
3144         (do_all_intermediate_continuations_thread)
3145         (discard_all_intermediate_continuations)
3146         (discard_all_intermediate_continuations_thread): Delete
3147         declarations.
3148         * event-top.c (stdin_event_handler): Delete references to
3149         continuations.
3150         * gdbthread.h (struct thread_info): Delete continuations and
3151         intermediate_continuations fields.
3152         * inf-loop.c (inferior_event_handler): Remove references to
3153         continuations.
3154         * infrun.c (infrun_thread_stop_requested_callback): Remove
3155         references to continuations.
3156         * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
3157         * thread.c: Don't include "continuations.h".
3158         (clear_thread_inferior_resources): Remove references to
3159         continuations.
3160
3161 2015-09-09  Pedro Alves  <palves@redhat.com>
3162
3163         * infcall.c (struct dummy_frame_context_saver): Delete.
3164         (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
3165         (dummy_frame_context_saver_drop)
3166         (dummy_frame_context_saver_cleanup)
3167         (dummy_frame_context_saver_get_regs)
3168         (dummy_frame_context_saver_setup): Delete.
3169         * infcall.h (dummy_frame_context_saver_drop)
3170         (dummy_frame_context_saver_cleanup)
3171         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
3172         Delete.
3173         (get_return_value): Remove 'ctx_saver' paremeter.  Adjust.
3174         * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
3175         * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
3176
3177 2015-09-09  Pedro Alves  <palves@redhat.com>
3178
3179         * breakpoint.c: Include "thread-fsm.h".
3180         (struct until_break_command_continuation_args): Delete.
3181         (struct until_break_fsm): New.
3182         (until_break_fsm_ops): New global.
3183         (new_until_break_fsm, until_break_fsm_should_stop): New functions.
3184         (until_break_command_continuation): Delete.
3185         (until_break_fsm_clean_up): New function.
3186         (until_break_fsm_async_reply_reason): New function.
3187         (until_break_command): Adjust to create an until_break_fsm instead
3188         of a continuation.
3189         (momentary_bkpt_print_it): No longer print MI's async-stop-reason
3190         here.
3191         * infcmd.c (struct until_next_fsm): New.
3192         (until_next_fsm_ops): New global.
3193         (new_until_next_fsm, until_next_fsm_should_stop): New function.
3194         (until_next_continuation): Delete.
3195         (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
3196         functions.
3197         (until_next_command): Adjust to create a new until_next_fsm
3198         instead of a continuation.
3199
3200 2015-09-09  Pedro Alves  <palves@redhat.com>
3201
3202         * infcall.c: Include thread_fsm.h.
3203         (struct call_return_meta_info): New.
3204         (get_call_return_value): New function, factored out from
3205         call_function_by_hand_dummy.
3206         (struct call_thread_fsm): New.
3207         (call_thread_fsm_ops): New global.
3208         (new_call_thread_fsm, call_thread_fsm_should_stop)
3209         (call_thread_fsm_should_notify_stop): New functions.
3210         (run_inferior_call): Add 'sm' parameter.  Associate the FSM with
3211         the thread.
3212         (call_function_by_hand_dummy): Create a new call_thread_fsm
3213         instance, associate it with the thread, and wait for the FSM to
3214         finish.  If finished successfully, fetch the function's result
3215         value out of the FSM.
3216         * infrun.c (fetch_inferior_event): If the FSM says the stop
3217         shouldn't be notified, don't call normal_stop.
3218         (maybe_remove_breakpoints): New function, factored out from ...
3219         (normal_stop): ... here.  Simplify.
3220         * infrun.h (maybe_remove_breakpoints): Declare.
3221         * thread-fsm.c (thread_fsm_should_notify_stop): New function.
3222         (thread-fsm.h) <struct thread_fsm_ops>: New field.
3223         (thread_fsm_should_notify_stop): Declare.
3224
3225 2015-09-09  Pedro Alves  <palves@redhat.com>
3226
3227         * Makefile.in (COMMON_OBS): Add thread-fsm.o.
3228         * breakpoint.c (handle_jit_event): Print debug output.
3229         (bpstat_what): Split event callback handling to ...
3230         (bpstat_run_callbacks): ... this new function.
3231         (momentary_bkpt_print_it): No longer handle bp_finish here.
3232         * breakpoint.h (bpstat_run_callbacks): Declare.
3233         * gdbthread.h (struct thread_info) <step_multi>: Delete field.
3234         <thread_fsm>: New field.
3235         (thread_cancel_execution_command): Declare.
3236         * infcmd.c: Include thread-fsm.h.
3237         (struct step_command_fsm): New.
3238         (step_command_fsm_ops): New global.
3239         (new_step_command_fsm, step_command_fsm_prepare): New functions.
3240         (step_1): Adjust to use step_command_fsm_prepare and
3241         prepare_one_step.
3242         (struct step_1_continuation_args): Delete.
3243         (step_1_continuation): Delete.
3244         (step_command_fsm_should_stop): New function.
3245         (step_once): Delete.
3246         (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
3247         (prepare_one_step): New function, based on step_once.
3248         (until_next_command): Remove step_multi reference.
3249         (struct return_value_info): New.
3250         (print_return_value): Rename to ...
3251         (print_return_value_1): ... this.  New struct return_value_info
3252         parameter.  Adjust.
3253         (print_return_value): Reimplement as wrapper around
3254         print_return_value_1.
3255         (struct finish_command_fsm): New.
3256         (finish_command_continuation): Delete.
3257         (finish_command_fsm_ops): New global.
3258         (new_finish_command_fsm, finish_command_fsm_should_stop): New
3259         functions.
3260         (finish_command_fsm_clean_up, finish_command_fsm_return_value):
3261         New.
3262         (finish_command_continuation_free_arg): Delete.
3263         (finish_command_fsm_async_reply_reason): New.
3264         (finish_backward, finish_forward): Change symbol parameter to a
3265         finish_command_fsm.  Adjust.
3266         (finish_command): Create a finish_command_fsm.  Adjust.
3267         * infrun.c: Include "thread-fsm.h".
3268         (clear_proceed_status_thread): Delete the thread's FSM.
3269         (infrun_thread_stop_requested_callback): Cancel the thread's
3270         execution command.
3271         (clean_up_just_stopped_threads_fsms): New function.
3272         (fetch_inferior_event): Handle the event_thread's should_stop
3273         method saying the command isn't done yet.
3274         (process_event_stop_test): Run breakpoint callbacks here.
3275         (print_stop_event): Rename to ...
3276         (print_stop_location): ... this.
3277         (restore_current_uiout_cleanup): New function.
3278         (print_stop_event): Reimplement.
3279         (normal_stop): No longer notify the end_stepping_range observers
3280         here handle "step N" nor "finish" here.  No longer call
3281         print_stop_event here.
3282         * infrun.h (struct return_value_info): Forward declare.
3283         (print_return_value): Declare.
3284         (print_stop_event): Change prototype.
3285         * thread-fsm.c: New file.
3286         * thread-fsm.h: New file.
3287         * thread.c: Include "thread-fsm.h".
3288         (thread_cancel_execution_command): New function.
3289         (clear_thread_inferior_resources): Call it.
3290         * cli/cli-interp.c (cli_on_normal_stop): New function.
3291         (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
3292         observer.
3293         * mi/mi-interp.c: Include "thread-fsm.h".
3294         (restore_current_uiout_cleanup): Delete.
3295         (mi_on_normal_stop): If the thread has an FSM associated, and it
3296         finished, ask it for the async-reply-reason to print.  Always call
3297         print_stop_event here, regardless of the top-level interpreter.
3298         Check bpstat_what to tell whether an asynchronous breakpoint hit
3299         triggered.
3300         * tui/tui-interp.c (tui_on_normal_stop): New function.
3301         (tui_init): Install tui_on_normal_stop as normal_stop observer.
3302
3303 2015-09-09  Pedro Alves  <palves@redhat.com>
3304
3305         * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
3306         check whether the target can async.
3307         * inf-loop.c (inferior_event_handler): Only call target_async if
3308         the target can async.
3309         * infcall.c: Include top.h and interps.h.
3310         (run_inferior_call): For the interpreter to sync mode while
3311         running the infcall.  Call wait_sync_command_done instead of
3312         wait_for_inferior plus normal_stop.
3313         * infcmd.c (prepare_execution_command): Don't check whether the
3314         target can async when running in the foreground.
3315         (step_1): Delete synchronous case handling.
3316         (step_once): Always install a continuation, even in sync mode.
3317         (until_next_command, finish_forward): Don't check whether the
3318         target can async.
3319         (attach_command_post_wait, notice_new_inferior): Always install a
3320         continuation, even in sync mode.
3321         * infrun.c (mark_infrun_async_event_handler): New function.
3322         (proceed): In sync mode, mark infrun's event source instead of
3323         waiting for events here.
3324         (fetch_inferior_event): If the target can't async, do a blocking
3325         wait.
3326         (prepare_to_wait): In sync mode, mark infrun's event source.
3327         (infrun_async_inferior_event_handler): No longer bail out if the
3328         target can't async.
3329         * infrun.h (mark_infrun_async_event_handler): New declaration.
3330         * linux-nat.c (linux_nat_wait_1): Remove calls to
3331         set_sigint_trap/clear_sigint_trap.
3332         (linux_nat_terminal_inferior): No longer check whether the target
3333         can async.
3334         * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
3335         comment.
3336         (mi_execute_command_input_handler): No longer check whether the
3337         target is async.  Update and simplify comment.
3338         * target.c (default_target_wait): New function.
3339         * target.h (struct target_ops) <to_wait>: Now defaults to
3340         default_target_wait.
3341         (default_target_wait): Declare.
3342         * top.c (wait_sync_command_done): New function, factored out from
3343         ...
3344         (maybe_wait_sync_command_done): ... this.
3345         * top.h (wait_sync_command_done): Declare.
3346         * target-delegates.c: Regenerate.
3347
3348 2015-09-09  Markus Metzger  <markus.t.metzger@intel.com>
3349
3350         * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
3351         * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
3352         Remove include of sys/utsname.h.
3353         (linux_determine_kernel_ptr_bits): Remove.
3354         (linux_determine_kernel_start): New.
3355         (perf_event_is_kernel_addr): Remove tinfo argument.  Update users.
3356         Update check.
3357         (perf_event_skip_bts_record): Remove tinfo argument.  Update users.
3358         (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
3359         initialization.
3360         * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
3361         assignment.
3362
3363 2015-09-07  Pedro Alves  <palves@redhat.com>
3364
3365         * guile/guile-internal.h (as_a_scm_t_subr): New.
3366         * guile/guile.c (misc_guile_functions): Use it.
3367         * guile/scm-arch.c (arch_functions): Use it.
3368         * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
3369         Use it.
3370         * guile/scm-breakpoint.c (breakpoint_functions): Use it.
3371         * guile/scm-cmd.c (command_functions): Use it.
3372         * guile/scm-disasm.c (disasm_functions): Use it.
3373         * guile/scm-exception.c (exception_functions)
3374         (private_exception_functions): Use it.
3375         * guile/scm-frame.c (frame_functions)
3376         * guile/scm-gsmob.c (gsmob_functions): Use it.
3377         * guile/scm-iterator.c (iterator_functions): Use it.
3378         * guile/scm-lazy-string.c (lazy_string_functions): Use it.
3379         * guile/scm-math.c (math_functions): Use it.
3380         * guile/scm-objfile.c (objfile_functions): Use it.
3381         * guile/scm-param.c (parameter_functions): Use it.
3382         * guile/scm-ports.c (port_functions, private_port_functions): Use
3383         it.
3384         * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
3385         * guile/scm-progspace.c (pspace_functions): Use it.
3386         * guile/scm-string.c (string_functions): Use it.
3387         * guile/scm-symbol.c (symbol_functions): Use it.
3388         * guile/scm-symtab.c (symtab_functions): Use it.
3389         * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
3390         it.
3391         * guile/scm-value.c (value_functions): Use it.
3392
3393 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
3394
3395         * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
3396         (tui_next_win): Likewise.
3397         (tui_prev_win): Likewise.
3398         (tui_partial_win_by_name): Likewise.
3399         (tui_init_generic_part): Likewise.
3400         (init_content_element): Likewise.
3401         (tui_del_window): Likewise.
3402         (tui_free_window): Likewise.
3403         (tui_del_data_windows): Likewise.
3404         (tui_free_data_content): Likewise.
3405         * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
3406         * tui/tui-regs.c (tui_show_register_group): Likewise.
3407         * tui/tui-win.c (tui_resize_all): Likewise.
3408         (tui_set_focus): Likewise.
3409         (tui_set_win_height): Likewise.
3410         (make_invisible_and_set_new_height): Likewise.
3411         * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
3412         * tui/tui-wingeneral.c (make_visible): Likewise.
3413
3414 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
3415
3416         * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
3417
3418 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
3419
3420         * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
3421         pointer.
3422         * dbxread.c (dbx_end_psymtab): Likewise.
3423         * gnu-nat.c (gnu_write_inferior): Likewise.
3424         * mdebugread.c (cross_ref): Likewise.
3425         * p-valprint.c (pascal_val_print): Likewise.
3426         * xcoffread.c (xcoff_end_psymtab): Likewise.
3427
3428 2015-09-04  Yao Qi  <yao.qi@linaro.org>
3429
3430         * NEWS: Mention the aarch64 multi-arch debugging support.
3431
3432 2015-09-03  Pierre-Marie de Rodat  <derodat@adacore.com>
3433
3434         * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
3435         type instead of a TYPE_CODE_INT one for the string_char_type
3436         and the ada_primitive_type_char types.
3437
3438 2015-09-03  Yao Qi  <yao.qi@linaro.org>
3439
3440         * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
3441         Move code to aarch64_linux_region_ok_for_watchpoint.  Call
3442         aarch64_linux_region_ok_for_watchpoint.
3443         * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
3444         New function.
3445         * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
3446         Declare it.
3447
3448 2015-09-02  Patrick Palka  <patrick@parcs.ath.cx>
3449
3450         * gdb_obstack.h (obstack_strdup): Declare.
3451         * gdb_obstack.c (obstack_strdup): Define.
3452         * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
3453         * gdbarch.c: Regenerate.
3454         * gdbarch.h: Regenerate.
3455         * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
3456
3457 2015-09-02  Patrick Palka  <patrick@parcs.ath.cx>
3458
3459         * gdbtypes.c (copy_type_recursive): Update documentation.
3460
3461 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
3462
3463         * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
3464         as zero.
3465
3466 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
3467
3468         * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
3469
3470 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
3471
3472         * solib-svr4.c (solib_event_probe_action): Call
3473         get_probe_argument_count using TRY...CATCH.
3474         (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
3475
3476 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
3477
3478         * probe.h (struct probe_ops) <get_probe_argument_count,
3479         evaluate_probe_argument, enable_probe, disable_probe>: Mention in
3480         the comment that the function can throw an exception.
3481         (get_probe_argument_count): Likewise.
3482         (evaluate_probe_argument): Likewise.
3483         * stap-probe.c (stap_get_opcode): Call error instead of
3484         internal_error.
3485         (stap_get_expected_argument_type): Likewise.  Add argument
3486         'probe'.  Improve error message by mentioning the probe's name.
3487         (stap_parse_probe_arguments): Adjust call to
3488         stap_get_expected_argument_type.
3489         (stap_get_arg): Add comment.  Assert that 'probe->args_parsed' is
3490         not zero.  Call internal_error if GDB requests an argument but the
3491         probe has no arguments.
3492
3493 2015-09-01  Pierre-Marie de Rodat  <derodat@adacore.com>
3494
3495         * ada-lang.c (ada_resolve_function): Do not ask the user what
3496         match to use when in completion mode.
3497
3498 2015-08-31  Andrew Burgess  <andrew.burgess@embecosm.com>
3499
3500         * tui/tui-data.c (tui_win_name): Make local variable const, remove
3501         cast of NULL.
3502
3503 2015-08-31  Max Filippov  <jcmvbkbc@gmail.com>
3504
3505         * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
3506         call_abi using XSHAL_ABI macro.
3507
3508 2015-08-29  Doug Evans  <xdje42@gmail.com>
3509
3510         * symtab.h (struct symbol): Tweak comment.
3511
3512 2015-08-29  Patrick Palka  <patrick@parcs.ath.cx>
3513
3514         * gdbtypes.c (alloc_type_arch): Allocate the type on the given
3515         gdbarch obstack instead of on the heap.  Update commentary
3516         accordingly.
3517
3518 2015-08-28  Joel Brobecker  <brobecker@adacore.com>
3519
3520         GDB 7.10 released.
3521
3522 2015-08-28  Simon Marchi  <simon.marchi@ericsson.com>
3523
3524         * NEWS: Update entry about non-8-bits addressable memory.
3525
3526 2015-08-28  Ulrich Weigand  <uweigand@de.ibm.com>
3527
3528         Revert:
3529         2014-11-06  Doug Evans  <xdje42@gmail.com>
3530         * solib.c (solib_global_lookup): Fetch arch from objfile,
3531         not target_gdbarch.
3532
3533 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
3534
3535         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
3536         attempt to relocate a TLS variable offset.
3537
3538 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
3539
3540         * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
3541         registered yet.  Set inferior_ptid while calling target_read_memory.
3542
3543 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
3544
3545         * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
3546         (GDB_ARCH_IS_TRAP_BRKPT): ... this.  Add __powerpc__ case.
3547         * linux-nat.c (check_stopped_by_breakpoint): Use
3548         GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
3549
3550 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
3551
3552         * linux-thread-db.c (thread_db_get_thread_local_address): If the
3553         thread was not yet discovered, use thread_from_lwp instead of
3554         calling thread_db_find_new_threads_1.
3555
3556 2015-08-27  Simon Marchi  <simon.marchi@ericsson.com>
3557
3558         * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
3559         statements.
3560
3561 2015-08-27  Simon Marchi  <simon.marchi@ericsson.com>
3562
3563         * NEWS: Document support for non-8-bits addressable memory.
3564
3565 2015-08-27  Pedro Alves  <palves@redhat.com>
3566
3567         * configure.ac: Remove AC_TYPE_SIGNAL call.
3568         * configure, config.in: Regenerate.
3569
3570 2015-08-27  Pedro Alves  <palves@redhat.com>
3571
3572         * cp-support.c (gdb_demangle): Use sighandler_t.  Remove cast.
3573         * extension-priv.h: Include signal.h.
3574         (struct signal_handler) <handler>: Change type to sighandler_t.
3575         * extension.c (install_gdb_sigint_handler): Use sighandler_t.
3576         * inflow.c (sigint_ours, sigquit_ours): Change type to
3577         sighandler_t.
3578         (child_terminal_inferior): Remove casts.
3579         (child_terminal_ours_1, new_tty): Use sighandler_t.  Remove casts.
3580         (osig): Change type to sighandler_t.
3581         * nto-procfs.c (ofunc): Change type to sighandler_t.
3582         (procfs_wait): Remove casts.
3583         * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
3584         * remote-sim.c (gdbsim_wait): Use sighandler_t.
3585         * utils.c (wait_to_die_with_timeout): Use sighandler_t.
3586
3587 2015-08-27  Pedro Alves  <palves@redhat.com>
3588
3589         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
3590         * gnulib/aclocal.m4: Renegerate.
3591         * gnulib/config.in: Renegerate.
3592         * gnulib/configure: Renegerate.
3593         * gnulib/import/Makefile.am: Update.
3594         * gnulib/import/Makefile.in: Regenerate.
3595         * gnulib/import/m4/gnulib-cache.m4: Update.
3596         * gnulib/import/m4/gnulib-comp.m4: Update.
3597         * gnulib/import/m4/signal_h.m4: New file.
3598         * gnulib/import/signal.in.h: New file.
3599
3600 2015-08-27  Pedro Alves  <palves@redhat.com>
3601
3602         * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
3603         (MIN_MEMORY_PACKET_SIZE): New.
3604         (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
3605         (get_memory_packet_size): Adjust.  No longer limit the max packet
3606         size.
3607         (set_memory_packet_size): Adjust, and remove dead code.
3608         (remote_check_symbols): Use xmalloc and a cleanup instead of
3609         alloca.
3610         (remote_packet_size): No longer cap the packet size.
3611         (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
3612
3613 2015-08-26  Luis Machado  <lgustavo@codesourcery.com>
3614
3615         * compile/compile.c (compile_to_object): Mention language in
3616         error message.
3617
3618 2015-08-26  Patrick Palka  <patrick@parcs.ath.cx>
3619
3620         * target.c (target_pre_inferior): Unset attach_flag.
3621
3622 2015-08-26  Simon Marchi  <simon.marchi@ericsson.com>
3623
3624         * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
3625         * gdbarch.c: Re-generate.
3626
3627 2015-08-26  Simon Marchi  <simon.marchi@ericsson.com>
3628
3629         * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
3630         function with the XNEW-family equivalent.
3631         * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
3632         * ada-exp.y (write_ambiguous_var): Likewise.
3633         * ada-lang.c (resolve_subexp): Likewise.
3634         (user_select_syms): Likewise.
3635         (assign_aggregate): Likewise.
3636         (ada_evaluate_subexp): Likewise.
3637         (cache_symbol): Likewise.
3638         * addrmap.c (allocate_key): Likewise.
3639         (addrmap_create_mutable): Likewise.
3640         * aix-thread.c (sync_threadlists): Likewise.
3641         * alpha-tdep.c (alpha_push_dummy_call): Likewise.
3642         (alpha_gdbarch_init): Likewise.
3643         * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
3644         * arm-linux-nat.c (arm_linux_add_process): Likewise.
3645         * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
3646         * arm-tdep.c (push_stack_item): Likewise.
3647         (arm_displaced_step_copy_insn): Likewise.
3648         (arm_gdbarch_init): Likewise.
3649         (_initialize_arm_tdep): Likewise.
3650         * avr-tdep.c (push_stack_item): Likewise.
3651         * ax-general.c (new_agent_expr): Likewise.
3652         * block.c (block_initialize_namespace): Likewise.
3653         * breakpoint.c (alloc_counted_command_line): Likewise.
3654         (update_dprintf_command_list): Likewise.
3655         (parse_breakpoint_sals): Likewise.
3656         (decode_static_tracepoint_spec): Likewise.
3657         (until_break_command): Likewise.
3658         (clear_command): Likewise.
3659         (update_global_location_list): Likewise.
3660         (get_breakpoint_objfile_data) Likewise.
3661         * btrace.c (ftrace_new_function): Likewise.
3662         (btrace_set_insn_history): Likewise.
3663         (btrace_set_call_history): Likewise.
3664         * buildsym.c (add_symbol_to_list): Likewise.
3665         (record_pending_block): Likewise.
3666         (start_subfile): Likewise.
3667         (start_buildsym_compunit): Likewise.
3668         (push_subfile): Likewise.
3669         (end_symtab_get_static_block): Likewise.
3670         (buildsym_init): Likewise.
3671         * cli/cli-cmds.c (source_command): Likewise.
3672         * cli/cli-decode.c (add_cmd): Likewise.
3673         * cli/cli-script.c (build_command_line): Likewise.
3674         (setup_user_args): Likewise.
3675         (realloc_body_list): Likewise.
3676         (process_next_line): Likewise.
3677         (copy_command_lines): Likewise.
3678         * cli/cli-setshow.c (do_set_command): Likewise.
3679         * coff-pe-read.c (read_pe_exported_syms): Likewise.
3680         * coffread.c (coff_locate_sections): Likewise.
3681         (coff_symtab_read): Likewise.
3682         (coff_read_struct_type): Likewise.
3683         * common/cleanups.c (make_my_cleanup2): Likewise.
3684         * common/common-exceptions.c (throw_it): Likewise.
3685         * common/filestuff.c (make_cleanup_close): Likewise.
3686         * common/format.c (parse_format_string): Likewise.
3687         * common/queue.h (DEFINE_QUEUE_P): Likewise.
3688         * compile/compile-object-load.c (munmap_list_add): Likewise.
3689         (compile_object_load): Likewise.
3690         * compile/compile-object-run.c (compile_object_run): Likewise.
3691         * compile/compile.c (append_args): Likewise.
3692         * corefile.c (specify_exec_file_hook): Likewise.
3693         * cp-support.c (make_symbol_overload_list): Likewise.
3694         * cris-tdep.c (push_stack_item): Likewise.
3695         (cris_gdbarch_init): Likewise.
3696         * ctf.c (ctf_trace_file_writer_new): Likewise.
3697         * dbxread.c (init_header_files): Likewise.
3698         (add_new_header_file): Likewise.
3699         (init_bincl_list): Likewise.
3700         (dbx_end_psymtab): Likewise.
3701         (start_psymtab): Likewise.
3702         (dbx_end_psymtab): Likewise.
3703         * dcache.c (dcache_init): Likewise.
3704         * dictionary.c (dict_create_hashed): Likewise.
3705         (dict_create_hashed_expandable): Likewise.
3706         (dict_create_linear): Likewise.
3707         (dict_create_linear_expandable): Likewise.
3708         * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
3709         * dummy-frame.c (register_dummy_frame_dtor): Likewise.
3710         * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
3711         * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3712         (decode_frame_entry_1): Likewise.
3713         * dwarf2expr.c (new_dwarf_expr_context): Likewise.
3714         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
3715         * dwarf2read.c (dwarf2_has_info): Likewise.
3716         (create_signatured_type_table_from_index): Likewise.
3717         (dwarf2_read_index): Likewise.
3718         (dw2_get_file_names_reader): Likewise.
3719         (create_all_type_units): Likewise.
3720         (read_cutu_die_from_dwo): Likewise.
3721         (init_tu_and_read_dwo_dies): Likewise.
3722         (init_cutu_and_read_dies): Likewise.
3723         (create_all_comp_units): Likewise.
3724         (queue_comp_unit): Likewise.
3725         (inherit_abstract_dies): Likewise.
3726         (read_call_site_scope): Likewise.
3727         (dwarf2_add_field): Likewise.
3728         (dwarf2_add_typedef): Likewise.
3729         (dwarf2_add_member_fn): Likewise.
3730         (attr_to_dynamic_prop): Likewise.
3731         (abbrev_table_alloc_abbrev): Likewise.
3732         (abbrev_table_read_table): Likewise.
3733         (add_include_dir): Likewise.
3734         (add_file_name): Likewise.
3735         (dwarf_decode_line_header): Likewise.
3736         (dwarf2_const_value_attr): Likewise.
3737         (dwarf_alloc_block): Likewise.
3738         (parse_macro_definition): Likewise.
3739         (set_die_type): Likewise.
3740         (write_psymtabs_to_index): Likewise.
3741         (create_cus_from_index): Likewise.
3742         (dwarf2_create_include_psymtab): Likewise.
3743         (process_psymtab_comp_unit_reader): Likewise.
3744         (build_type_psymtab_dependencies): Likewise.
3745         (read_comp_units_from_section): Likewise.
3746         (compute_compunit_symtab_includes): Likewise.
3747         (create_dwo_unit_in_dwp_v1): Likewise.
3748         (create_dwo_unit_in_dwp_v2): Likewise.
3749         (read_func_scope): Likewise.
3750         (process_structure_scope): Likewise.
3751         (mark_common_block_symbol_computed): Likewise.
3752         (load_partial_dies): Likewise.
3753         (dwarf2_symbol_mark_computed): Likewise.
3754         * elfread.c (elf_symfile_segments): Likewise.
3755         (elf_read_minimal_symbols): Likewise.
3756         * environ.c (make_environ): Likewise.
3757         * eval.c (evaluate_subexp_standard): Likewise.
3758         * event-loop.c (create_file_handler): Likewise.
3759         (create_async_signal_handler): Likewise.
3760         (create_async_event_handler): Likewise.
3761         (create_timer): Likewise.
3762         * exec.c (build_section_table): Likewise.
3763         * fbsd-nat.c (fbsd_remember_child): Likewise.
3764         * fork-child.c (fork_inferior): Likewise.
3765         * frv-tdep.c (new_variant): Likewise.
3766         * gdbarch.sh (gdbarch_alloc): Likewise.
3767         (append_name): Likewise.
3768         * gdbtypes.c (rank_function): Likewise.
3769         (copy_type_recursive): Likewise.
3770         (add_dyn_prop): Likewise.
3771         * gnu-nat.c (make_proc): Likewise.
3772         (make_inf): Likewise.
3773         (gnu_write_inferior): Likewise.
3774         * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
3775         (build_std_type_info_type): Likewise.
3776         * guile/scm-param.c (compute_enum_list): Likewise.
3777         * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
3778         * guile/scm-value.c (gdbscm_value_call): Likewise.
3779         * h8300-tdep.c (h8300_gdbarch_init): Likewise.
3780         * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
3781         (read_unwind_info): Likewise.
3782         * ia64-tdep.c (ia64_gdbarch_init): Likewise.
3783         * infcall.c (dummy_frame_context_saver_setup): Likewise.
3784         (call_function_by_hand_dummy): Likewise.
3785         * infcmd.c (step_once): Likewise.
3786         (finish_forward): Likewise.
3787         (attach_command): Likewise.
3788         (notice_new_inferior): Likewise.
3789         * inferior.c (add_inferior_silent): Likewise.
3790         * infrun.c (add_displaced_stepping_state): Likewise.
3791         (save_infcall_control_state): Likewise.
3792         (save_inferior_ptid): Likewise.
3793         (_initialize_infrun): Likewise.
3794         * jit.c (bfd_open_from_target_memory): Likewise.
3795         (jit_gdbarch_data_init): Likewise.
3796         * language.c (add_language): Likewise.
3797         * linespec.c (decode_line_2): Likewise.
3798         * linux-nat.c (add_to_pid_list): Likewise.
3799         (add_initial_lwp): Likewise.
3800         * linux-thread-db.c (add_thread_db_info): Likewise.
3801         (record_thread): Likewise.
3802         (info_auto_load_libthread_db): Likewise.
3803         * m32c-tdep.c (m32c_gdbarch_init): Likewise.
3804         * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
3805         * m68k-tdep.c (m68k_gdbarch_init): Likewise.
3806         * m88k-tdep.c (m88k_analyze_prologue): Likewise.
3807         * macrocmd.c (macro_define_command): Likewise.
3808         * macroexp.c (gather_arguments): Likewise.
3809         * macroscope.c (sal_macro_scope): Likewise.
3810         * macrotab.c (new_macro_table): Likewise.
3811         * mdebugread.c (push_parse_stack): Likewise.
3812         (parse_partial_symbols): Likewise.
3813         (parse_symbol): Likewise.
3814         (psymtab_to_symtab_1): Likewise.
3815         (new_block): Likewise.
3816         (new_psymtab): Likewise.
3817         (mdebug_build_psymtabs): Likewise.
3818         (add_pending): Likewise.
3819         (elfmdebug_build_psymtabs): Likewise.
3820         * mep-tdep.c (mep_gdbarch_init): Likewise.
3821         * mi/mi-main.c (mi_execute_command): Likewise.
3822         * mi/mi-parse.c (mi_parse_argv): Likewise.
3823         * minidebug.c (lzma_open): Likewise.
3824         * minsyms.c (terminate_minimal_symbol_table): Likewise.
3825         * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
3826         * mips-tdep.c (mips_gdbarch_init): Likewise.
3827         * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
3828         * msp430-tdep.c (msp430_gdbarch_init): Likewise.
3829         * mt-tdep.c (mt_registers_info): Likewise.
3830         * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
3831         * nat/linux-btrace.c (linux_enable_bts): Likewise.
3832         (linux_enable_pt): Likewise.
3833         * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
3834         (linux_xfer_osdata_processgroups): Likewise.
3835         * nios2-tdep.c (nios2_gdbarch_init): Likewise.
3836         * nto-procfs.c (procfs_meminfo): Likewise.
3837         * objc-lang.c (start_msglist): Likewise.
3838         (selectors_info): Likewise.
3839         (classes_info): Likewise.
3840         (find_methods): Likewise.
3841         * objfiles.c (allocate_objfile): Likewise.
3842         (update_section_map): Likewise.
3843         * osabi.c (gdbarch_register_osabi): Likewise.
3844         (gdbarch_register_osabi_sniffer): Likewise.
3845         * parse.c (start_arglist): Likewise.
3846         * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
3847         (hwdebug_insert_point): Likewise.
3848         * printcmd.c (display_command): Likewise.
3849         (ui_printf): Likewise.
3850         * procfs.c (create_procinfo): Likewise.
3851         (load_syscalls): Likewise.
3852         (proc_get_LDT_entry): Likewise.
3853         (proc_update_threads): Likewise.
3854         * prologue-value.c (make_pv_area): Likewise.
3855         (pv_area_store): Likewise.
3856         * psymtab.c (extend_psymbol_list): Likewise.
3857         (init_psymbol_list): Likewise.
3858         (allocate_psymtab): Likewise.
3859         * python/py-inferior.c (add_thread_object): Likewise.
3860         * python/py-param.c (compute_enum_values): Likewise.
3861         * python/py-value.c (valpy_call): Likewise.
3862         * python/py-varobj.c (py_varobj_iter_next): Likewise.
3863         * python/python.c (ensure_python_env): Likewise.
3864         * record-btrace.c (record_btrace_start_replaying): Likewise.
3865         * record-full.c (record_full_reg_alloc): Likewise.
3866         (record_full_mem_alloc): Likewise.
3867         (record_full_end_alloc): Likewise.
3868         (record_full_core_xfer_partial): Likewise.
3869         * regcache.c (get_thread_arch_aspace_regcache): Likewise.
3870         * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
3871         * remote-notif.c (remote_notif_state_allocate): Likewise.
3872         * remote.c (demand_private_info): Likewise.
3873         (remote_notif_stop_alloc_reply): Likewise.
3874         (remote_enable_btrace): Likewise.
3875         * reverse.c (save_bookmark_command): Likewise.
3876         * rl78-tdep.c (rl78_gdbarch_init): Likewise.
3877         * rx-tdep.c (rx_gdbarch_init): Likewise.
3878         * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
3879         * ser-go32.c (dos_get_tty_state): Likewise.
3880         (dos_copy_tty_state): Likewise.
3881         * ser-mingw.c (ser_windows_open): Likewise.
3882         (ser_console_wait_handle): Likewise.
3883         (ser_console_get_tty_state): Likewise.
3884         (make_pipe_state): Likewise.
3885         (net_windows_open): Likewise.
3886         * ser-unix.c (hardwire_get_tty_state): Likewise.
3887         (hardwire_copy_tty_state): Likewise.
3888         * solib-aix.c (solib_aix_new_lm_info): Likewise.
3889         * solib-dsbt.c (dsbt_current_sos): Likewise.
3890         (dsbt_relocate_main_executable): Likewise.
3891         * solib-frv.c (frv_current_sos): Likewise.
3892         (frv_relocate_main_executable): Likewise.
3893         * solib-spu.c (spu_bfd_fopen): Likewise.
3894         * solib-svr4.c (lm_info_read): Likewise.
3895         (svr4_copy_library_list): Likewise.
3896         (svr4_default_sos): Likewise.
3897         * source.c (find_source_lines): Likewise.
3898         (line_info): Likewise.
3899         (add_substitute_path_rule): Likewise.
3900         * spu-linux-nat.c (spu_bfd_open): Likewise.
3901         * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
3902         * stabsread.c (dbx_lookup_type): Likewise.
3903         (read_type): Likewise.
3904         (read_member_functions): Likewise.
3905         (read_struct_fields): Likewise.
3906         (read_baseclasses): Likewise.
3907         (read_args): Likewise.
3908         (_initialize_stabsread): Likewise.
3909         * stack.c (func_command): Likewise.
3910         * stap-probe.c (handle_stap_probe): Likewise.
3911         * symfile.c (addrs_section_sort): Likewise.
3912         (addr_info_make_relative): Likewise.
3913         (load_section_callback): Likewise.
3914         (add_symbol_file_command): Likewise.
3915         (init_filename_language_table): Likewise.
3916         * symtab.c (create_filename_seen_cache): Likewise.
3917         (sort_search_symbols_remove_dups): Likewise.
3918         (search_symbols): Likewise.
3919         * target.c (make_cleanup_restore_target_terminal): Likewise.
3920         * thread.c (new_thread): Likewise.
3921         (enable_thread_stack_temporaries): Likewise.
3922         (make_cleanup_restore_current_thread): Likewise.
3923         (thread_apply_all_command): Likewise.
3924         * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
3925         * top.c (gdb_readline_wrapper): Likewise.
3926         * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
3927         * tracepoint.c (trace_find_line_command): Likewise.
3928         (all_tracepoint_actions_and_cleanup): Likewise.
3929         (make_cleanup_restore_current_traceframe): Likewise.
3930         (get_uploaded_tp): Likewise.
3931         (get_uploaded_tsv): Likewise.
3932         * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
3933         (tui_alloc_win_info): Likewise.
3934         (tui_alloc_content): Likewise.
3935         (tui_add_content_elements): Likewise.
3936         * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
3937         (tui_set_disassem_content): Likewise.
3938         * ui-file.c (ui_file_new): Likewise.
3939         (stdio_file_new): Likewise.
3940         (tee_file_new): Likewise.
3941         * utils.c (make_cleanup_restore_integer): Likewise.
3942         (add_internal_problem_command): Likewise.
3943         * v850-tdep.c (v850_gdbarch_init): Likewise.
3944         * valops.c (find_oload_champ): Likewise.
3945         * value.c (allocate_value_lazy): Likewise.
3946         (record_latest_value): Likewise.
3947         (create_internalvar): Likewise.
3948         * varobj.c (install_variable): Likewise.
3949         (new_variable): Likewise.
3950         (new_root_variable): Likewise.
3951         (cppush): Likewise.
3952         (_initialize_varobj): Likewise.
3953         * windows-nat.c (windows_make_so): Likewise.
3954         * x86-nat.c (x86_add_process): Likewise.
3955         * xcoffread.c (arrange_linetable): Likewise.
3956         (allocate_include_entry): Likewise.
3957         (process_linenos): Likewise.
3958         (SYMBOL_DUP): Likewise.
3959         (xcoff_start_psymtab): Likewise.
3960         (xcoff_end_psymtab): Likewise.
3961         * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
3962         * xtensa-tdep.c (xtensa_register_type): Likewise.
3963         * gdbarch.c: Regenerate.
3964         * gdbarch.h: Regenerate.
3965
3966 2015-08-25  Don Breazeal  <donb@codesourcery.com>
3967
3968         * infrun.c (follow_exec): Re-order operations for
3969         handling follow-exec-mode "new".
3970         (handle_inferior_event_1): Assign ecs->event_thread
3971         to the current thread.
3972         * remote.c (get_remote_arch_state): Add an assertion.
3973
3974 2015-08-26  Pedro Alves  <palves@redhat.com>
3975
3976         * MAINTAINERS: Add Markus Metzger as btrace maintainer.
3977
3978 2015-08-25  Pedro Alves  <palves@redhat.com>
3979
3980         PR gdb/18804
3981         * defs.h (maybe_quit): Declare.
3982         (QUIT): Now calls maybe_quit.
3983         * event-loop.c (clear_async_signal_handler)
3984         (async_signal_handler_is_marked): New functions.
3985         * event-loop.h (async_signal_handler_is_marked)
3986         (clear_async_signal_handler): New declarations.
3987         * remote.c (remote_check_pending_interrupt): New function.
3988         (interrupt_query): Use make_cleanup_restore_target_terminal.  No
3989         longer check whether the target is async.  If waiting for a stop
3990         reply, and a Ctrl-C as been sent to the target, offer to
3991         disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
3992         Otherwise do not disconnect and throw a quit.
3993         (_initialize_remote): Install remote_check_pending_interrupt as
3994         to_check_pending_interrupt.
3995         * target.c (target_check_pending_interrupt): New function.
3996         * target.h (struct target_ops) <to_check_pending_interrupt>: New
3997         field.
3998         (target_check_pending_interrupt): New declaration.
3999         * utils.c (maybe_quit): New function.
4000         * target-delegates.c: Regenerate.
4001
4002 2015-08-25  Yao Qi  <yao.qi@linaro.org>
4003
4004         * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
4005         Rename local variable pid to tid, and get lwpid of lwp.  Update
4006         debug output.
4007
4008 2015-08-25  Pierre-Marie de Rodat  <derodat@adacore.com>
4009
4010         * ada-lang.c (ada_read_var_value): Add a var_block argument
4011         and pass it to default_read_var_value.
4012         * block.c (block_static_link): New accessor.
4013         * block.h (block_static_link): Declare it.
4014         * buildsym.c (finish_block_internal): Add a static_link
4015         argument.  If there is a static link, associate it to the new
4016         block.
4017         (finish_block): Add a static link argument and pass it to
4018         finish_block_internal.
4019         (end_symtab_get_static_block): Update calls to finish_block and
4020         to finish_block_internal.
4021         (end_symtab_with_blockvector): Update call to
4022         finish_block_internal.
4023         * buildsym.h: Forward-declare struct dynamic_prop.
4024         (struct context_stack): Add a static_link field.
4025         (finish_block): Add a static link argument.
4026         * c-exp.y: Remove an obsolete comment (evaluation of variables
4027         already start from the selected frame, and now they climb *up*
4028         the call stack) and propagate the block information to the
4029         produced expression.
4030         * d-exp.y: Likewise.
4031         * f-exp.y: Likewise.
4032         * go-exp.y: Likewise.
4033         * jv-exp.y: Likewise.
4034         * m2-exp.y: Likewise.
4035         * p-exp.y: Likewise.
4036         * coffread.c (coff_symtab_read): Update calls to finish_block.
4037         * dbxread.c (process_one_symbol): Likewise.
4038         * xcoffread.c (read_xcoff_symtab): Likewise.
4039         * compile/compile-c-symbols.c (convert_one_symbol): Promote the
4040         "sym" parameter to struct block_symbol, update its uses and pass
4041         its block to calls to read_var_value.
4042         (convert_symbol_sym): Update the calls to convert_one_symbol.
4043         * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
4044         call to read_var_value.
4045         * dwarf2loc.c (block_op_get_frame_base): New.
4046         (dwarf2_block_frame_base_locexpr_funcs): Implement the
4047         get_frame_base method.
4048         (dwarf2_block_frame_base_loclist_funcs): Likewise.
4049         (dwarf2locexpr_baton_eval): Add a frame argument and use it
4050         instead of the selected frame in order to evaluate the
4051         expression.
4052         (dwarf2_evaluate_property): Add a frame argument.  Update call
4053         to dwarf2_locexpr_baton_eval to provide a frame in available and
4054         to handle the absence of address stack.
4055         * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
4056         * dwarf2read.c (attr_to_dynamic_prop): Add a forward
4057         declaration.
4058         (read_func_scope): Record any available static link description.
4059         Update call to finish_block.
4060         (read_lexical_block_scope): Update call to finish_block.
4061         * findvar.c (follow_static_link): New.
4062         (get_hosting_frame): New.
4063         (default_read_var_value): Add a var_block argument.  Use
4064         get_hosting_frame to handle non-local references.
4065         (read_var_value): Add a var_block argument and pass it to the
4066         LA_READ_VAR_VALUE method.
4067         * gdbtypes.c (resolve_dynamic_range): Update calls to
4068         dwarf2_evaluate_property.
4069         (resolve_dynamic_type_internal): Likewise.
4070         * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
4071         read_var_value, passing it the block coming from symbol lookup.
4072         * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
4073         read_var_value (TODO).
4074         * infcmd.c (finish_command_continuation): Update call to
4075         read_var_value, passing it the block coming from symbol lookup.
4076         * infrun.c (insert_exception_resume_breakpoint): Likewise.
4077         * language.h (struct language_defn): Add a var_block argument to
4078         the LA_READ_VAR_VALUE method.
4079         * objfiles.c (struct static_link_htab_entry): New.
4080         (static_link_htab_entry_hash): New.
4081         (static_link_htab_entry_eq): New.
4082         (objfile_register_static_link): New.
4083         (objfile_lookup_static_link): New.
4084         (free_objfile): Free the STATIC_LINKS hashed map if needed.
4085         * objfiles.h: Include hashtab.h.
4086         (struct objfile): Add a static_links field.
4087         (objfile_register_static_link): New.
4088         (objfile_lookup_static_link): New.
4089         * printcmd.c (print_variable_and_value): Update call to
4090         read_var_value.
4091         * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
4092         * python/py-frame.c (frapy_read_var): Update call to
4093         read_var_value, passing it the block coming from symbol lookup.
4094         * python/py-framefilter.c (extract_sym): Add a sym_block
4095         parameter and set the pointed value to NULL (TODO).
4096         (enumerate_args): Update call to extract_sym.
4097         (enumerate_locals): Update calls to extract_sym and to
4098         read_var_value.
4099         * python/py-symbol.c (sympy_value): Update call to
4100         read_var_value (TODO).
4101         * stack.c (read_frame_local): Update call to read_var_value.
4102         (read_frame_arg): Likewise.
4103         (return_command): Likewise.
4104         * symtab.h (struct symbol_block_ops): Add a get_frame_base
4105         method.
4106         (struct symbol): Add a block field.
4107         (SYMBOL_BLOCK): New accessor.
4108         * valops.c (value_of_variable): Remove frame/block handling and
4109         pass the block argument to read_var_value, which does this job
4110         now.
4111         (value_struct_elt_for_reference): Update calls to
4112         read_var_value.
4113         (value_of_this): Pass the block found to read_var_value.
4114         * value.h (read_var_value): Add a var_block argument.
4115         (default_read_var_value): Likewise.
4116
4117 2015-08-25  Yao Qi  <yao.qi@linaro.org>
4118
4119         * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
4120         * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
4121         * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
4122
4123 2015-08-25  Yao Qi  <yao.qi@linaro.org>
4124
4125         * Makefile.in (aarch64-liunx.o): New rule.
4126         (HFILES_NO_SRCDIR): Add aarch64-linux.h.
4127         * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
4128         * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
4129         * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
4130         extern.
4131         (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
4132         * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
4133         * nat/aarch64-linux.c: New file.
4134         * nat/aarch64-linux.h: New file.
4135
4136 2015-08-25  Yao Qi  <yao.qi@linaro.org>
4137
4138         * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
4139         lwp_arch_private_info and ptid_of_lwp.
4140
4141 2015-08-25  Yao Qi  <yao.qi@linaro.org>
4142
4143         * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
4144         Move it to nat/aarch64-linux-hw-point.c.
4145         (debug_reg_change_callback): Likewise.
4146         (aarch64_notify_debug_reg_change): :Likewise.
4147         * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
4148         (aarch64_dr_update_callback_param): New.
4149         (debug_reg_change_callback): New function.
4150         (aarch64_notify_debug_reg_change): Likewise.
4151         * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
4152         Remove the declaration.
4153
4154 2015-08-25  Yao Qi  <yao.qi@linaro.org>
4155
4156         * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
4157         Call current_lwp_ptid.
4158
4159 2015-08-25  Yao Qi  <yao.qi@linaro.org>
4160
4161         * aarch64-linux-nat.c (debug_reg_change_callback): Use
4162         debug_printf.
4163
4164 2015-08-25  Yao Qi  <yao.qi@linaro.org>
4165
4166         * aarch64-linux-nat.c (debug_reg_change_callback): Call
4167         ptid_get_pid rather than ptid_get_lwp.
4168
4169 2015-08-24  Pedro Alves  <palves@redhat.com>
4170
4171         * NEWS (New commands): Mention set/show remote
4172         multiprocess-extensions-packet.
4173         * remote.c (remote_query_supported): Only tell the server to use
4174         the multiprocess extensions if the user hasn't force-disabled them
4175         with "set remote multiprocess-extensions-packet off".
4176
4177 2015-08-24  Pedro Alves  <palves@redhat.com>
4178
4179         * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
4180         1029a8112290f6eee9d7878a391c49db42c999bd.
4181         * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
4182         Regenerate.
4183         * gnulib/import/Makefile.am: Update.
4184         * gnulib/import/Makefile.in: Update.
4185         * gnulib/import/alloca.in.h: Update.
4186         * gnulib/import/basename-lgpl.c: Update.
4187         * gnulib/import/canonicalize-lgpl.c: Update.
4188         * gnulib/import/config.charset: Update.
4189         * gnulib/import/dirent.in.h: Update.
4190         * gnulib/import/dirfd.c: Update.
4191         * gnulib/import/dirname-lgpl.c: Update.
4192         * gnulib/import/dirname.h: Update.
4193         * gnulib/import/dosname.h: Update.
4194         * gnulib/import/errno.in.h: Update.
4195         * gnulib/import/extra/snippet/arg-nonnull.h: Update.
4196         * gnulib/import/extra/snippet/c++defs.h: Update.
4197         * gnulib/import/extra/snippet/warn-on-use.h: Update.
4198         * gnulib/import/extra/update-copyright: Update.
4199         * gnulib/import/float+.h: Update.
4200         * gnulib/import/float.c: Update.
4201         * gnulib/import/float.in.h: Update.
4202         * gnulib/import/fnmatch.c: Update.
4203         * gnulib/import/fnmatch.in.h: Update.
4204         * gnulib/import/fnmatch_loop.c: Update.
4205         * gnulib/import/fpucw.h: Update.
4206         * gnulib/import/frexp.c: Update.
4207         * gnulib/import/frexpl.c: Update.
4208         * gnulib/import/gettimeofday.c: Update.
4209         * gnulib/import/inttypes.in.h: Update.
4210         * gnulib/import/isnan.c: Update.
4211         * gnulib/import/isnand-nolibm.h: Update.
4212         * gnulib/import/isnand.c: Update.
4213         * gnulib/import/isnanl-nolibm.h: Update.
4214         * gnulib/import/isnanl.c: Update.
4215         * gnulib/import/itold.c: Update.
4216         * gnulib/import/localcharset.c: Update.
4217         * gnulib/import/localcharset.h: Update.
4218         * gnulib/import/lstat.c: Update.
4219         * gnulib/import/m4/00gnulib.m4: Update.
4220         * gnulib/import/m4/absolute-header.m4: Update.
4221         * gnulib/import/m4/alloca.m4: Update.
4222         * gnulib/import/m4/canonicalize.m4: Update.
4223         * gnulib/import/m4/codeset.m4: Update.
4224         * gnulib/import/m4/configmake.m4: Update.
4225         * gnulib/import/m4/dirent_h.m4: Update.
4226         * gnulib/import/m4/dirfd.m4: Update.
4227         * gnulib/import/m4/dirname.m4: Update.
4228         * gnulib/import/m4/double-slash-root.m4: Update.
4229         * gnulib/import/m4/eealloc.m4: Update.
4230         * gnulib/import/m4/errno_h.m4: Update.
4231         * gnulib/import/m4/exponentd.m4: Update.
4232         * gnulib/import/m4/exponentl.m4: Update.
4233         * gnulib/import/m4/extensions.m4: Update.
4234         * gnulib/import/m4/extern-inline.m4: Update.
4235         * gnulib/import/m4/fcntl-o.m4: Update.
4236         * gnulib/import/m4/float_h.m4: Update.
4237         * gnulib/import/m4/fnmatch.m4: Update.
4238         * gnulib/import/m4/fpieee.m4: Update.
4239         * gnulib/import/m4/frexp.m4: Update.
4240         * gnulib/import/m4/frexpl.m4: Update.
4241         * gnulib/import/m4/gettimeofday.m4: Update.
4242         * gnulib/import/m4/glibc21.m4: Update.
4243         * gnulib/import/m4/gnulib-cache.m4: Update.
4244         * gnulib/import/m4/gnulib-common.m4: Update.
4245         * gnulib/import/m4/gnulib-comp.m4: Update.
4246         * gnulib/import/m4/gnulib-tool.m4: Update.
4247         * gnulib/import/m4/include_next.m4: Update.
4248         * gnulib/import/m4/inttypes-pri.m4: Update.
4249         * gnulib/import/m4/inttypes.m4: Update.
4250         * gnulib/import/m4/isnand.m4: Update.
4251         * gnulib/import/m4/isnanl.m4: Update.
4252         * gnulib/import/m4/largefile.m4: Update.
4253         * gnulib/import/m4/localcharset.m4: Update.
4254         * gnulib/import/m4/locale-fr.m4: Update.
4255         * gnulib/import/m4/locale-ja.m4: Update.
4256         * gnulib/import/m4/locale-zh.m4: Update.
4257         * gnulib/import/m4/longlong.m4: Update.
4258         * gnulib/import/m4/lstat.m4: Update.
4259         * gnulib/import/m4/malloc.m4: Update.
4260         * gnulib/import/m4/malloca.m4: Update.
4261         * gnulib/import/m4/math_h.m4: Update.
4262         * gnulib/import/m4/mbrtowc.m4: Update.
4263         * gnulib/import/m4/mbsinit.m4: Update.
4264         * gnulib/import/m4/mbsrtowcs.m4: Update.
4265         * gnulib/import/m4/mbstate_t.m4: Update.
4266         * gnulib/import/m4/memchr.m4: Update.
4267         * gnulib/import/m4/memmem.m4: Update.
4268         * gnulib/import/m4/mmap-anon.m4: Update.
4269         * gnulib/import/m4/multiarch.m4: Update.
4270         * gnulib/import/m4/nocrash.m4: Update.
4271         * gnulib/import/m4/off_t.m4: Update.
4272         * gnulib/import/m4/pathmax.m4: Update.
4273         * gnulib/import/m4/readlink.m4: Update.
4274         * gnulib/import/m4/rename.m4: Update.
4275         * gnulib/import/m4/rmdir.m4: Update.
4276         * gnulib/import/m4/ssize_t.m4: Update.
4277         * gnulib/import/m4/stat.m4: Update.
4278         * gnulib/import/m4/stdbool.m4: Update.
4279         * gnulib/import/m4/stddef_h.m4: Update.
4280         * gnulib/import/m4/stdint.m4: Update.
4281         * gnulib/import/m4/stdio_h.m4: Update.
4282         * gnulib/import/m4/stdlib_h.m4: Update.
4283         * gnulib/import/m4/string_h.m4: Update.
4284         * gnulib/import/m4/strstr.m4: Update.
4285         * gnulib/import/m4/strtok_r.m4: Update.
4286         * gnulib/import/m4/sys_socket_h.m4: Update.
4287         * gnulib/import/m4/sys_stat_h.m4: Update.
4288         * gnulib/import/m4/sys_time_h.m4: Update.
4289         * gnulib/import/m4/sys_types_h.m4: Update.
4290         * gnulib/import/m4/time_h.m4: Update.
4291         * gnulib/import/m4/unistd_h.m4: Update.
4292         * gnulib/import/m4/warn-on-use.m4: Update.
4293         * gnulib/import/m4/wchar_h.m4: Update.
4294         * gnulib/import/m4/wchar_t.m4: Update.
4295         * gnulib/import/m4/wctype_h.m4: Update.
4296         * gnulib/import/m4/wint_t.m4: Update.
4297         * gnulib/import/malloc.c: Update.
4298         * gnulib/import/malloca.c: Update.
4299         * gnulib/import/malloca.h: Update.
4300         * gnulib/import/math.in.h: Update.
4301         * gnulib/import/mbrtowc.c: Update.
4302         * gnulib/import/mbsinit.c: Update.
4303         * gnulib/import/mbsrtowcs-impl.h: Update.
4304         * gnulib/import/mbsrtowcs-state.c: Update.
4305         * gnulib/import/mbsrtowcs.c: Update.
4306         * gnulib/import/memchr.c: Update.
4307         * gnulib/import/memmem.c: Update.
4308         * gnulib/import/pathmax.h: Update.
4309         * gnulib/import/readlink.c: Update.
4310         * gnulib/import/ref-add.sin: Update.
4311         * gnulib/import/ref-del.sin: Update.
4312         * gnulib/import/rename.c: Update.
4313         * gnulib/import/rmdir.c: Update.
4314         * gnulib/import/same-inode.h: Update.
4315         * gnulib/import/stat.c: Update.
4316         * gnulib/import/stdbool.in.h: Update.
4317         * gnulib/import/stddef.in.h: Update.
4318         * gnulib/import/stdint.in.h: Update.
4319         * gnulib/import/stdio.c: Update.
4320         * gnulib/import/stdio.in.h: Update.
4321         * gnulib/import/stdlib.in.h: Update.
4322         * gnulib/import/str-two-way.h: Update.
4323         * gnulib/import/streq.h: Update.
4324         * gnulib/import/string.in.h: Update.
4325         * gnulib/import/stripslash.c: Update.
4326         * gnulib/import/strnlen1.c: Update.
4327         * gnulib/import/strnlen1.h: Update.
4328         * gnulib/import/strstr.c: Update.
4329         * gnulib/import/strtok_r.c: Update.
4330         * gnulib/import/sys_stat.in.h: Update.
4331         * gnulib/import/sys_time.in.h: Update.
4332         * gnulib/import/sys_types.in.h: Update.
4333         * gnulib/import/time.in.h: Update.
4334         * gnulib/import/unistd.in.h: Update.
4335         * gnulib/import/verify.h: Update.
4336         * gnulib/import/wchar.in.h: Update.
4337         * gnulib/import/wctype.in.h: Update.
4338         * gnulib/import/gettimeofday.c: New file.
4339         * gnulib/import/m4/absolute-header.m4: New file.
4340         * gnulib/import/m4/gettimeofday.m4: New file.
4341         * gnulib/import/m4/sys_socket_h.m4: New file.
4342         * gnulib/import/m4/sys_time_h.m4: New file.
4343         * gnulib/import/stdio.c: Delete file.
4344         * gnulib/import/sys_time.in.h: New file.
4345
4346 2015-08-24  Pedro Alves  <palves@redhat.com>
4347
4348         * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
4349         * common/gdb_sys_time.h: New file.
4350         * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
4351         * gdb_select.h: Likewise.
4352         * gdb_usleep.c: Likewise.
4353         * maint.c: Likewise.
4354         * mi/mi-main.c: Likewise.
4355         * mi/mi-parse.h: Likewise.
4356         * remote-fileio.c: Likewise.
4357         * remote-m32r-sdi.c: Likewise.
4358         * remote.c: Likewise.
4359         * ser-base.c: Likewise.
4360         * ser-pipe.c: Likewise.
4361         * ser-tcp.c: Likewise.
4362         * ser-unix.c: Likewise.
4363         * symfile.c: Likewise.
4364         * symfile.c: Likewise.  Rename OSIZE to SIZE throughout.
4365         * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
4366         * utils.c: Likewise.
4367
4368 2015-08-24  Pedro Alves  <palves@redhat.com>
4369
4370         * NEWS: Mention removed support for the various ROM monitors.
4371         * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
4372         ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
4373         * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
4374         gdb_target_obs.
4375         (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
4376         gdb_target_obs.
4377         (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
4378         dsrec.o from gdb_target_obs.
4379         (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
4380         from gdb_target_obs.
4381         (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
4382         gdb_target_obs.
4383         (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
4384         dink32-rom.o from gdb_target_obs.
4385         (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
4386         (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
4387         * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
4388         monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
4389
4390 2015-08-21  Pedro Alves  <palves@redhat.com>
4391
4392         * frame.c (null_frame_id): Explicitly zero-initialize.
4393
4394 2015-08-21  Tom Tromey  <tromey@redhat.com>
4395
4396         * dwarf2read.c (struct dwarf2_section_info): Rename field
4397         'asection' to 'section'.
4398         (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
4399         (dwarf2_locate_sections, dwarf2_locate_sections)
4400         (locate_dwz_sections, locate_v1_virtual_dwo_sections)
4401         (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
4402         (dwarf2_locate_v2_dwp_sections): Adjust.
4403
4404 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
4405
4406         * top.h (gdb_in_secondary_prompt_p): Declare.
4407         * top.c (gdb_secondary_prompt_depth): Define.
4408         (gdb_in_secondary_prompt_p): Define.
4409         (gdb_readline_wrapper_cleanup): Decrement
4410         gdb_secondary_prompt_depth.
4411         (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
4412         * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
4413         are in a secondary prompt.
4414
4415 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
4416
4417         * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
4418         emit the newline.
4419
4420 2015-08-21  Gary Benson  <gbenson@redhat.com>
4421
4422         * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
4423
4424 2015-08-21  Gary Benson  <gbenson@redhat.com>
4425
4426         * target.h (struct target_ops) <to_fileio_open>: New argument
4427         warn_if_slow.  Update comment.  All implementations updated.
4428         (target_fileio_open_warn_if_slow): New declaration.
4429         * target.c (target_fileio_open): Renamed as...
4430         (target_fileio_open_1): ...this.  New argument warn_if_slow.
4431         Pass warn_if_slow to implementation.  Update debug printing.
4432         (target_fileio_open): New function.
4433         (target_fileio_open_warn_if_slow): Likewise.
4434         * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
4435         target_fileio_open_warn_if_slow.
4436
4437 2015-08-21  Gary Benson  <gbenson@redhat.com>
4438
4439         * nat/linux-namespaces.c (linux_mntns_access_fs):
4440         Do not overwrite old_chain.
4441
4442 2015-08-20  Max Filippov  <jcmvbkbc@gmail.com>
4443
4444         * arch/xtensa.h: New file.
4445         * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
4446         (ps_get_thread_area): New function.
4447         * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
4448         set_gdbarch_fetch_tls_load_module_address to enable TLS support.
4449         * xtensa-tdep.c (osabi.h): New #include.
4450         (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
4451         xtensa-specific hooks.
4452         * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
4453         member and move the structure to arch/xtensa.h.
4454
4455 2015-08-21  Pedro Alves  <palves@redhat.com>
4456
4457         * remote.c (struct readahead_cache): New.
4458         (struct remote_state) <readahead_cache>: New field.
4459         (remote_open_1): Invalidate the cache.
4460         (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
4461         functions.
4462         (remote_hostio_pwrite): Invalidate the readahead cache.
4463         (remote_hostio_pread): Rename to ...
4464         (remote_hostio_pread_vFile): ... this.
4465         (remote_hostio_pread_from_cache): New function.
4466         (remote_hostio_pread): Reimplement.
4467         (remote_hostio_close): Invalidate the readahead cache.
4468
4469 2015-08-21  Marcin Cieślak <saper@saper.info>  (tiny patch)
4470
4471         PR build/18843
4472         * procfs.c: Include "filestuff.h".
4473
4474 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
4475
4476         * tui/tui-data.h (tui_command_info): Remove fields cur_line and
4477         curch.
4478         * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
4479         cur_line or curch, instead call wmove().
4480         (init_win_info) [CMD_WIN]: Likewise.
4481         * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
4482         instead call getcury().
4483         (tui_redisplay_readline): Don't set cur_line or curch.
4484         (tui_mld_erase_entire_line): Don't read cur_line, instead call
4485         getcury().
4486         (tui_cont_sig): Remove call to wmove.
4487         (tui_getc): Don't read cur_line or curch, instead call getcury()
4488         or getyx().  Don't set curch.
4489         * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
4490         set cur_line or curch.  Always move cursor to (0,0).
4491
4492 2015-08-20  Pedro Alves  <palves@redhat.com>
4493
4494         * infrun.c (print_target_wait_results): Make extern.
4495         * infrun.h (print_target_wait_results): Declare.
4496         * remote.c (set_stop_requested_callback): Delete.
4497         (process_initial_stop_replies): New function.
4498         (remote_start_remote): Use it.
4499         (stop_reply_queue_length): New function.
4500
4501 2015-08-20  Pedro Alves  <palves@redhat.com>
4502
4503         * dwarf2read.c (process_full_comp_unit): To tell whether
4504         start_subfile managed to deduce a language, test for
4505         language_unknown instead of language_c.
4506
4507 2015-08-20  Pierre-Marie de Rodat  <derodat@adacore.com>
4508
4509         * ada-lex.l: Reset the start condition to INITIAL in the rule that
4510         matches attributes.
4511
4512 2015-08-19  Kevin Buettner  <kevinb@redhat.com>
4513
4514         * dwarf2read.c (dwarf2_string_attr): New function.
4515         (lookup_dwo_unit, process_psymtab_comp_unit_reader)
4516         (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
4517         (read_call_site_scope, namespace_name, guess_full_die_structure_name)
4518         (anonymous_struct_prefix, prepare_one_comp_unit): Use
4519         dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
4520
4521 2015-08-18  Doug Evans  <dje@google.com>
4522             Adrian Sendroiu <adrian.sendroiu@freescale.com>
4523
4524         PR mi/18833
4525         * cli/cli-logging.c (pop_output_files): Don't restore redirection
4526         if MI-like.
4527         * mi/mi-out.c: #include "vec.h".
4528         (ui_filep): New type.
4529         (DEV_VEC_P (ui_filep)): New type.
4530         (struct ui_out_data) <buffer, original_buffer>: Delete.
4531         (struct ui_out_data) <streams>: New member.
4532         (mi_ui_out_impl): Add data_destroy field.
4533         (mi_field_string, mi_field_fmt): Update.
4534         (mi_flush, mi_redirect, field_separator): Update.
4535         (mi_open, mi_close): Update.
4536         (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
4537         (mi_out_data_ctor, mi_out_data_dtor): New functions.
4538         (mi_out_new): Call mi_out_data_ctor.
4539
4540 2015-08-18  Sandra Loosemore  <sandra@codesourcery.com>
4541
4542         * remote.c (strprefix): New.
4543         (remote_parse_stop_reply): Use strprefix instead of strncmp
4544         to ensure exact match of keyword.
4545
4546 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
4547
4548         * gdb_bfd.c (debug_bfd_cache): New variable.
4549         (show_bfd_cache_debug): New function.
4550         (gdb_bfd_open): Add debug logging.
4551         (gdb_bfd_ref): Likewise.
4552         (gdb_bfd_unref): Likewise.
4553         (_initialize_gdb_bfd): Add new set/show command.
4554         * NEWS: Mention new command.
4555
4556 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
4557
4558         * gdb_bfd.c (bfd_sharing): New variable.
4559         (show_bfd_sharing): New function.
4560         (gdb_bfd_open): Check bfd_sharing variable.
4561         (_initialize_gdb_bfd): Add new set/show command.
4562         * NEWS: Mention new command.
4563
4564 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
4565
4566         * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
4567         field.
4568         (struct gdb_bfd_cache_search): Likewise.
4569         (eq_bfd): Compare the size, inode, and device id fields.
4570         (gdb_bfd_open): Initialise the size, inode, and device id fields.
4571         (gdb_bfd_ref): Likewise.
4572         (gdb_bfd_unref): Likewise.
4573
4574 2015-08-18  Pedro Alves  <palves@redhat.com>
4575
4576         * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
4577         target implements to_always_non_stop_p, call it.
4578         * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
4579         (x86_linux_create_target): Install it as to_always_non_stop_p
4580         method.
4581
4582 2015-08-17  Doug Evans  <dje@google.com>
4583
4584         * ui-out.c (default_ui_out_impl): Add comment.
4585
4586 2015-08-17  Iain Buclaw  <ibuclaw@gdcproject.org>
4587
4588         * d-exp.y (type_aggregate_p): New function.
4589         (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
4590         (classify_inner_name): Likewise.
4591         * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
4592
4593 2015-08-15  Doug Evans  <xdje42@gmail.com>
4594
4595         * psymtab.c (add_psymbol_to_bcache): Remove "val" arg.  All callers
4596         updated.
4597         (add_psymbol_to_list): Ditto.
4598
4599 2015-08-15  Doug Evans  <xdje42@gmail.com>
4600
4601         * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab.  All callers
4602         updated.  Call end_psymtab_common.
4603         * dwarf2read.c (process_psymtab_comp_unit_reader): Call
4604         end_psymtab_common.
4605         (build_type_psymtabs_reader): Ditto.
4606         * psympriv.h (sort_pst_symbols): Delete.
4607         (end_psymtab_common): Declare.
4608         * psymtab.c (sort_pst_symbols): Make static.
4609         (end_psymtab_common): New function.
4610         * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
4611
4612 2015-08-15  Doug Evans  <xdje42@gmail.com>
4613
4614         * defs.h (LANGUAGE_BITS): Define.
4615         * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
4616         (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
4617         * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
4618         (minimal_symbol_type): Add nr_minsym_types.
4619         (MINSYM_TYPE_BITS): Define.
4620         (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
4621         (domain_enum_tag): Add NR_DOMAINS.
4622         (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
4623         (SYMBOL_ACLASS_BITS): Define from 6 to 5.
4624
4625 2015-08-15  Doug Evans  <xdje42@gmail.com>
4626
4627         * objfiles.h: Whitespace cleanup.
4628         * psympriv.h: Whitespace cleanup.
4629         * psymtab.c: Whitespace/coding convention cleanup.
4630
4631 2015-08-15  Patrick Palka  <patrick@parcs.ath.cx>
4632
4633         * inferior.c (detach_inferior_command): Don't call
4634         any_thread_of_process when pid is 0.
4635         (kill_inferior_command): Likewise.
4636
4637 2015-08-14  Doug Evans  <xdje42@gmail.com>
4638
4639         PR gdb/11833
4640         * NEWS: Document new /s modifier for the disassemble command.
4641         * cli/cli-cmds.c (disassemble_command): Add support for /s.
4642         (_initialize_cli_cmds): Update online docs of disassemble command.
4643         * disasm.c: #include "source.h".
4644         (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
4645         All uses updated.
4646         (dis_line_entry): New struct.
4647         (hash_dis_line_entry, eq_dis_line_entry): New functions.
4648         (allocate_dis_line_table): New functions.
4649         (maybe_add_dis_line_entry, line_has_code_p): New functions.
4650         (dump_insns): New arg end_pc.  All callers updated.
4651         (do_mixed_source_and_assembly_deprecated): Renamed from
4652         do_mixed_source_and_assembly.  All callers updated.
4653         (do_mixed_source_and_assembly): New function.
4654         (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
4655         * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
4656         DISASSEMBLY_SOURCE.  All uses updated.
4657         (DISASSEMBLY_SOURCE): New macro.
4658         * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
4659
4660 2015-08-14  Keith Seitz  <keiths@redhat.com>
4661
4662         * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
4663         `typename' to `type_name' to avoid C++ reserved word.
4664
4665 2015-08-14  Keith Seitz  <keiths@redhat.com>
4666
4667         * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
4668         (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
4669         silence ARI errors.
4670
4671 2015-08-14  Iain Buclaw  <ibuclaw@gdcproject.org>
4672
4673         * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
4674         xstrprintf instead of malloc and sprintf.
4675         (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
4676         (lex_one_token): Likewise.
4677
4678 2015-08-14  Matthew Fortune  <matthew.fortune@imgtec.com>
4679
4680         * solib-svr4.c (read_program_header): Add base_addr argument to
4681         report the runtime address of the segment.
4682         (find_program_interpreter): Update read_program_header call to pass
4683         a NULL pointer for the new argument.
4684         (scan_dyntag): Add ptr_addr argument to report the runtime address
4685         of the tag payload.
4686         (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
4687         read_program_header to get the base address of the dynamic segment.
4688         (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
4689         read_program_header.
4690         (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
4691
4692 2015-08-14  Matthew Fortune  <matthew.fortune@imgtec.com>
4693
4694         * MAINTAINERS (Write After Approval): Add Matthew Fortune.
4695
4696 2015-08-13  Iain Buclaw  <ibuclaw@gdcproject.org>
4697
4698         * d-exp.y (%union): Add voidval.
4699         (%token): Add UNKNOWN_NAME as a token to represent an unclassified
4700         name in the lexing stage.
4701         (PostfixExpression): Move symbol completion handling in grammar here
4702         from PrimaryExpression.
4703         (PrimaryExpression): Move routines to handle resolving identifier
4704         tokens in the grammar here from push_expression_name.
4705         (IdentifierExp): Remove the handling of alternating '.' and identifier
4706         tokens.
4707         (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
4708         (BasicType): Remove C-style typename rules.
4709         (d_type_from_name, d_module_from_name, push_variable)
4710         (push_fieldnames, push_type_name, push_module_name)
4711         (push_expression_name): Remove.
4712         (lex_one_token): Rename from yylex.  Replace pstate with par_state.
4713         (token_and_value): New type.
4714         (token_fifo, popping, name_obstack): New globals.
4715         (classify_name): New function.
4716         (classify_inner_name): Likewise.
4717         (yylex): Likewise.
4718         (d_parse): Initialize token_fifo, popping and name_obstack.
4719
4720 2015-08-13  Iain Buclaw  <ibuclaw@gdcproject.org>
4721
4722         * Makefile.in (SFILES): Add d-namespace.c.
4723         (COMMON_OBS): Add d-namespace.o.
4724         * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
4725         la_lookup_symbol_nonlocal callback function pointer.
4726         * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
4727         (d_lookup_nested_symbol): New declaration.
4728         * d-namespace.c: New file.
4729
4730 2015-08-13  Pedro Alves  <palves@redhat.com>
4731
4732         * python/py-unwind.c (pyuw_sniffer): Install the invalidate
4733         cleanup after the decref cleanup, not before.
4734
4735 2015-08-13  Pierre-Marie de Rodat  <derodat@adacore.com>
4736
4737         * ada-lang.c: Include namespace.h
4738         (aux_add_nonlocal_symbols): Fix a function name in comment.
4739         (ada_add_block_renamings): New.
4740         (add_nonlocal_symbols): Add global renamings handling.
4741         (ada_lookup_symbol_list_worker): Move the symbol lookup part
4742         to...
4743         (ada_add_all_symbols): ... this new function.
4744         (ada_add_block_symbols): Try to match the input name against the
4745         "using directives list", perform a recursive symbol lookup on
4746         the matched declarations.
4747         * block.h (struct block): Move the_namespace to top-level as
4748         namespace_info. Remove the language_specific field.
4749         (BLOCK_NAMESPACE): Update access to the namespace_info field.
4750         * buildsym.h (using_directives): Rename into...
4751         (local_using_directives): ... this.
4752         (global_using_directives): New.
4753         (struct context_stack): Rename the using_directives field into
4754         local_using_directives.
4755         * buildsym.c (finish_block_internal): Deal with the proper
4756         using directives repository (local or global).
4757         (prepare_for_building): Reset local_using_directives. Assert
4758         that there is no pending global using directive.
4759         (reset_symtab_globals): Reset global_using_directives and
4760         local_using_directives.
4761         (end_symtab_get_static_block): Don't ignore symtabs that have
4762         only using directives.
4763         (push_context): Update references to local_using_directives.
4764         (buildsym_init): Do not reset using_directives.
4765         * cp-support.c: Include namespace.h.
4766         * cp-support.h (struct using_direct): Move to namespace.h.
4767         (cp_add_using_directives): Move to namespace.h.
4768         * cp-namespace.c: Include namespace.h
4769         (cp_add_using_directive): Move to namespace.c, rename it to
4770         add_using_directive, add a "using_directives" argument and use
4771         it as the pending using directives repository.  All callers
4772         updated.
4773         * dwarf2read.c (using_directives): New.
4774         (read_import_statement): Call using_directives.
4775         (read_func_scope): Update references to local_using_directives.
4776         (read_lexical_block_scope): Likewise.
4777         (read_namespace): Update the heading comment, call
4778         using_directives.
4779         * namespace.h: New file.
4780         * namespace.c: New file.
4781         * Makefile.in (SFILES): Add namespace.c.
4782         (COMMON_OBS): Add namespace.o
4783
4784 2015-08-12  Joel Brobecker  <brobecker@adacore.com>
4785
4786         * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
4787         compute RETADDR.
4788
4789 2015-08-12  Keith Seitz  <keiths@redhat.com>
4790
4791         * break-catch-throw.c (re_set_exception_catchpoint) Rename
4792         reserved C++ keyword "explicit" to "explicit_loc".
4793         * breakpoint.c (create_overlay_event_breakpoint)
4794         (create_longjmp_master_breakpoint)
4795         (create_std_terminate_master_breakpoint)
4796         (create_exception_master_breakpoint, update_static_tracepoint):
4797         Rename reserved C++ keyword "explicit" to "explicit_loc".
4798         * completer.c (collect_explicit_location_matches)
4799         (explicit_location_completer): Rename reserved C++ keyword
4800         "explicit" to "explicit_loc".
4801         * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
4802         (canonicalize_linespec, create_sals_line_offset)
4803         (convert_linespec_to_sals, convert_explicit_location_to_sals)
4804         (event_location_to_sals, decode_objc): Rename reserved C++ keyword
4805         "explicit" to "explicit_loc".
4806         * location.c (struct event_location) <explicit>: Rename to
4807         "explicit_loc".
4808         (initialize_explicit_location, new_explicit_location)
4809         (explicit_location_to_string_internal, explicit_location_to_linespec):
4810         Rename reserved C++ keyword "explicit" to "explicit_loc".
4811         * location.h (explicit_location_to_string)
4812         (explicit_location_to_linespec, initialize_explicit_location)
4813         (new_explicit_location): Rename reserved C++ keyword "explicit"
4814         to "explicit_loc".
4815         * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
4816         keyword "explicit" to "explicit_loc".
4817
4818 2015-08-12  Keith Seitz  <keiths@redhat.com>
4819
4820         * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
4821         and only call decode_line_1 when it is non-NULL.
4822
4823 2015-08-12  Luis Machado  <lgustavo@codesourcery.com>
4824
4825         * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
4826         location address is not meaningful.
4827         (breakpoint_address_is_meaningful): Update comment.
4828
4829 2015-08-11  Keith Seitz  <keiths@redhat.com>
4830
4831         * NEWS: Mention explicit locations.
4832         * breakpoint.c [LOCATION_HELP_STRING]: New macro.
4833         [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
4834         (_initialize_breakpoint): Update documentation for
4835         "clear", "break", "trace", "strace", "ftrace", and "dprintf".
4836
4837 2015-08-11  Keith Seitz  <keiths@redhat.com>
4838
4839         * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
4840         explicit locations, options "--source", "--function",
4841         "--label", and "--line".
4842
4843 2015-08-11  Keith Seitz  <keiths@redhat.com>
4844
4845         * completer.c: Include location.h.
4846         (enum match_type): New enum.
4847         (location_completer): Rename to ...
4848         (linespec_completer): ... this.
4849         (collect_explicit_location_matches, backup_text_ptr)
4850         (explicit_location_completer): New functions.
4851         (location_completer): "New" function; handle linespec
4852         and explicit location completions.
4853         (complete_line_internal): Remove all location completer-specific
4854         handling.
4855         * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
4856         (find_toplevel_char): Export.
4857         (linespec_parse_line_offset): Export.
4858         Issue error if STRING is not numerical.
4859         (gdb_get_linespec_parser_quote_characters): New function.
4860         * linespec.h (linespec_parse_line_offset): Declare.
4861         (get_gdb_linespec_parser_quote_characters): Declare.
4862         (is_ada_operator): Declare.
4863         (find_toplevel_char): Declare.
4864         (linespec_lexer_lex_keyword): Declare.
4865         * location.c (explicit_to_event_location): New function.
4866         (explicit_location_lex_one): New function.
4867         (string_to_explicit_location): New function.
4868         (string_to_event_location): Handle explicit locations.
4869         * location.h (explicit_to_event_location): Declare.
4870         (string_to_explicit_location): Declare.
4871
4872 2015-08-11  Keith Seitz  <keiths@redhat.com>
4873
4874         * break-catch-throw.c (re_set_exception_catchpoint): Convert
4875         linespec into explicit location.
4876         * breakpoint.c (create_overlay_breakpoint)
4877         (create_longjmp_master_breakpoint)
4878         (create_std_terminate_master_breakpoint)
4879         (create_exception_master_breakpoint): Convert linespec into explicit
4880         location.
4881         (update_static_tracepoint): Convert linespec into explicit location.
4882         * linespec.c (enum offset_relative_sign, struct line_offset): Move
4883         location.h.
4884         (struct linespec) <expression, expr_pc, source_filename>
4885         <function_name, label_name, line_offset>: Replace with ...
4886         <explicit>: ... this.
4887         <is_linespec>: New member.
4888         (PARSER_EXPLICIT): New accessor macro.
4889         (undefined_label_error): New function.
4890         (source_file_not_found_error): New function.
4891         (linespec_parse_basic): The parser result is now an explicit location.
4892         Use PARSER_EXPLICIT to access it.
4893         Use undefined_label_error.
4894         (canonicalize_linespec): Convert canonical linespec into explicit
4895         location.
4896         Move string representation of location to explicit_location_to_linespec
4897         and use it and explicit_location_to_string to save string
4898         representations of the canonical location.
4899         (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
4900         explicit location.  Update all references.
4901         (convert_explicit_location_to_sals): New function.
4902         (parse_linespec): Use PARSER_EXPLICIT to access the parser
4903         result's explicit location.
4904         (linespec_state_constructor): Initialize is_linespec.
4905         Use PARSER_EXPLICIT.
4906         (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
4907         result.
4908         (event_location_to_sals): For linespec locations, set is_linespec.
4909         Handle explicit locations.
4910         (decode_objc): 'ls' contains an explicit location now. Update all
4911         references.
4912         (symtabs_from_filename): Use source_file_not_found_error.
4913         * location.c (struct event_location.u) <explicit>: New member.
4914         (initialize_explicit_location): New function.
4915         (initialize_event_location): Initialize explicit locations.
4916         (new_explicit_location, get_explicit_location)
4917         (get_explicit_location_const): New functions.
4918         (explicit_to_string_internal): New function; most of contents moved
4919         from canonicalize_linespec.
4920         (explicit_location_to_string): New function.
4921         (explicit_location_to_linespec): New function.
4922         (copy_event_location, delete_event_location)
4923         (event_location_to_string_const, event_location_empty_p): Handle
4924         explicit locations.
4925         * location.h (enum offset_relative_sign, struct line_offset): Move
4926         here from linespec.h.
4927         (enum event_location_type): Add EXPLICIT_LOCATION.
4928         (struct explicit_location): New structure.
4929         (explicit_location_to_string): Declare.
4930         (explicit_location_to_linespec): Declare.
4931         (new_explicit_location, get_explicit_locationp
4932         (get_explicit_location_const, initialize_explicit_location): Declare.
4933
4934 2015-08-11  Keith Seitz  <keiths@redhat.com>
4935
4936         * break-catch-throw.c (re_set_exception_catchpoint): Convert
4937         linespec for stap probe to probe location.
4938         * breakpoint.c (create_longjmp_master_breakpoint)
4939         (create_exception_master_breakpoint): Likewise.
4940         (break_command_1): Remove local variable `arg_cp'.
4941         Check location type to set appropriate breakpoint ops methods.
4942         (trace_command): Likewise.
4943         * linespec.c (event_location_to_sals): Assert on probe locations.
4944         * location.c (EL_PROBE): Add macro definition.
4945         (new_probe_location, get_probe_location): New functions.
4946         (copy_event_location, delete_event_location, event_location_to_string)
4947         (string_to_event_location, event_location_empty_p): Handle probe
4948         locations.
4949         * location.h (enum event_location_type): Add PROBE_LOCATION.
4950         (new_probe_location, get_probe_location): Declare.
4951         * probe.c (parse_probes): Assert that LOCATION is a probe location.
4952         Convert linespec into probe location.
4953
4954 2015-08-11  Keith Seitz  <keiths@redhat.com>
4955
4956         * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
4957         Convert linespec to address location.
4958         * linespec.c (canonicalize_linespec): Do not handle address
4959         locations here.
4960         (convert_address_location_to_sals): New function; contents moved
4961         from ...
4962         (convert_linespc_to_sals): ... here.
4963         (parse_linespec): Remove address locations from linespec grammar.
4964         Remove handling of address locations.
4965         (linespec_lex_to_end): Remove handling of address linespecs.
4966         (event_location_to_sals): Handle ADDRESS_LOCATION.
4967         (linespec_expression_to_pc): Export.
4968         * linespec.h (linespec_expression_to_pc): Add declaration.
4969         * location.c (struct event_location.u) <address>: New member.
4970         (new_address_location, get_address_location): New functions.
4971         (copy_event_location, delete_event_location, event_location_to_string)
4972         (string_to_event_location, event_location_empty_p): Handle address
4973         locations.
4974         * location.h (enum event_location_type): Add ADDRESS_LOCATION.
4975         (new_address_location, get_address_location): Declare.
4976         * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
4977         to address location.
4978         * spu-tdep.c (spu_catch_start): Likewise.
4979
4980 2015-08-11  Keith Seitz  <keiths@redhat.com>
4981
4982         * ax-gdb.c: Include location.h.
4983         (agent_command_1) Use linespec location instead of address
4984         string.
4985         * break-catch-throw.c: Include location.h.
4986         (re_set_exception_catchpoint): Use linespec locations instead
4987         of address strings.
4988         * breakpoint.c: Include location.h.
4989         (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
4990         (create_std_terminate_master_breakpoint)
4991         (create_exception_master_breakpoint, update_breakpoints_after_exec):
4992         Use linespec location instead of address string.
4993         (print_breakpoint_location):  Use locations and
4994         event_location_to_string.
4995         Print extra_string for pending locations for non-MI streams.
4996         (print_one_breakpoint_location): Use locations and
4997         event_location_to_string.
4998         (init_raw_breakpoint_without_location): Initialize b->location.
4999         (create_thread_event_breakpoint): Use linespec location instead of
5000         address string.
5001         (init_breakpoint_sal): Likewise.
5002         Only save extra_string if it is non-NULL and not the empty string.
5003         Use event_location_to_string instead of `addr_string'.
5004         Constify `p' and `endp'.
5005         Use skip_spaces_const/skip_space_const instead of non-const versions.
5006         Copy the location into the breakpoint.
5007         If LOCATION is NULL, save the breakpoint address as a linespec location
5008         instead of an address string.
5009         (create_breakpoint_sal): Change `addr_string' parameter to a struct
5010         event_location. All uses updated.
5011         (create_breakpoints_sal): Likewise for local variable `addr_string'.
5012         (parse_breakpoint_sals): Use locations instead of address strings.
5013         Remove check for empty linespec with conditional.
5014         Refactor.
5015         (decode_static_tracepoint_spec): Make argument const and update
5016         function.
5017         (create_breakpoint): Change `arg' to a struct event_location and
5018         rename.
5019         Remove `copy_arg' and `addr_start'.
5020         If EXTRA_STRING is empty, set it to NULL.
5021         Don't populate `canonical' for pending breakpoints.
5022         Pass `extra_string' to find_condition_and_thread.
5023         Clear `extra_string' if `rest' was NULL.
5024         Do not error with "garbage after location" if setting a dprintf
5025         breakpoint.
5026         Copy the location into the breakpoint instead of an address string.
5027         (break_command_1): Use string_to_event_location and pass this to
5028         create_breakpoint instead of an address string.
5029         Check against `arg_cp' for a probe linespec.
5030         (dprintf_command): Use string_to_event_location and pass this to
5031         create_breakpoint instead of an address string.
5032         Throw an exception if no format string was specified.
5033         (print_recreate_ranged_breakpoint): Use event_location_to_string
5034         instead of address strings.
5035         (break_range_command, until_break_command)
5036         (init_ada_exception_breakpoint): Use locations instead
5037         of address strings.
5038         (say_where): Print out extra_string for pending locations.
5039         (base_breakpoint_dtor): Delete `location' and `location_range_end' of
5040         the breakpoint.
5041         (base_breakpoint_create_sals_from_location): Use struct event_location
5042         instead of address string.
5043         Remove `addr_start' and `copy_arg' parameters.
5044         (base_breakpoint_decode_location): Use struct event_location instead of
5045         address string.
5046         (bkpt_re_set): Use locations instead of address strings.
5047         Use event_location_empty_p to check for unset location.
5048         (bkpt_print_recreate): Use event_location_to_string instead of
5049         an address string.
5050         Print out extra_string for pending locations.
5051         (bkpt_create_sals_from_location, bkpt_decode_location)
5052         (bkpt_probe_create_sals_from_location): Use struct event_location
5053         instead of address string.
5054         (bkpt_probe_decode_location): Use struct event_location instead of
5055         address string.
5056         (tracepoint_print_recreate): Use event_location_to_string to
5057         recreate the tracepoint.
5058         (tracepoint_create_sals_from_location, tracepoint_decode_location)
5059         (tracepoint_probe_create_sals_from_location)
5060         (tracepoint_probe_decode_location): Use struct event_location
5061         instead of address string.
5062         (dprintf_print_recreate): Use event_location_to_string to recreate
5063         the dprintf.
5064         (dprintf_re_set): Remove check for valid/missing format string.
5065         (strace_marker_create_sals_from_location)
5066         (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
5067         (update_static_tracepoint): Use struct event_location instead of
5068         address string.
5069         (location_to_sals): Likewise.
5070         Pass `extra_string' to find_condition_and_thread.
5071         For newly resolved pending breakpoint locations, clear the location's
5072         string representation.
5073         Assert that the breakpoint's condition string is NULL when
5074         condition_not_parsed.
5075         (breakpoint_re_set_default, create_sals_from_location_default)
5076         (decode_location_default, trace_command, ftrace_command)
5077         (strace_command, create_tracepoint_from_upload): Use locations
5078         instead of address strings.
5079         * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
5080         Use struct event_location instead of address string.
5081         Update all uses.
5082         <decode_location>: Likewise.
5083         (struct breakpoint) <addr_string>: Change to struct event_location
5084         and rename `location'.
5085         <addr_string_range_end>: Change to struct event_location and rename
5086         `location_range_end'.
5087         (create_breakpoint): Use struct event_location instead of address
5088         string.
5089         * cli/cli-cmds.c: Include location.h.
5090         (edit_command, list_command): Use locations instead of address strings.
5091         * elfread.c: Include location.h.
5092         (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
5093         * guile/scm-breakpoint.c: Include location.h.
5094         (bpscm_print_breakpoint_smob): Use event_location_to_string.
5095         (gdbscm_register_breakpoint): Use locations instead of address
5096         strings.
5097         * linespec.c: Include location.h.
5098         (struct ls_parser) <stream>: Change to const char *.
5099         (PARSER_STREAM): Update.
5100         (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
5101         keywords must be followed by whitespace.
5102         (canonicalize_linespec): Save a linespec location into `canonical'.
5103         Save a canonical linespec into `canonical'.
5104         (parse_linespec): Change `argptr' to const char * and rename `arg'.
5105         All uses updated.
5106         Update function description.
5107         (linespec_parser_new): Initialize `parser'.
5108         Update initialization of  parsing stream.
5109         (event_location_to_sals): New function.
5110         (decode_line_full): Change `argptr' to a struct event_location and
5111         rename it `location'.
5112         Use locations instead of address strings.
5113         Call event_location_to_sals instead of parse_linespec.
5114         (decode_line_1): Likewise.
5115         (decode_line_with_current_source, decode_line_with_last_displayed)
5116         Use locations instead of address strings.
5117         (decode_objc): Likewise.
5118         Change `argptr' to const char * and rename `arg'.
5119         (destroy_linespec_result): Delete the linespec result's location
5120         instead of freeing the address string.
5121         * linespec.h (struct linespec_result) <addr_string>: Change to
5122         struct event_location and rename to ...
5123         <location>: ... this.
5124         (decode_line_1, decode_line_full): Change `argptr' to struct
5125         event_location.  All callers updated.
5126         * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
5127         (mi_cmd_break_insert_1): Use locations instead of address strings.
5128         Throw an error if there was "garbage" at the end of the specified
5129         linespec.
5130         * probe.c: Include location.h.
5131         (parse_probes): Change `argptr' to struct event_location.
5132         Use event locations instead of address strings.
5133         * probe.h (parse_probes): Change `argptr' to struct event_location.
5134         * python/py-breakpoint.c: Include location.h.
5135         (bppy_get_location): Constify local variable `str'.
5136         Use event_location_to_string.
5137         (bppy_init): Use locations instead of address strings.
5138         * python/py-finishbreakpoint.c: Include location.h.
5139         (bpfinishpy_init): Remove local variable `addr_str'.
5140         Use locations instead of address strings.
5141         * python/python.c: Include location.h.
5142         (gdbpy_decode_line): Use locations instead of address strings.
5143         * remote.c: Include location.h.
5144         (remote_download_tracepoint): Use locations instead of address
5145         strings.
5146         * spu-tdep.c: Include location.h.
5147         (spu_catch_start): Remove local variable `buf'.
5148         Use locations instead of address strings.
5149         * tracepoint.c: Include location.h.
5150         (scope_info): Use locations instead of address strings.
5151         (encode_source_string): Constify parameter `src'.
5152         * tracepoint.h (encode_source_string): Likewise.
5153
5154 2015-08-11  Keith Seitz  <keiths@redhat.com>
5155
5156         * Makefile.in (SFILES): Add location.c.
5157         (HFILES_NO_SRCDIR): Add location.h.
5158         (COMMON_OBS): Add location.o.
5159         * linespec.c (linespec_lex_to_end): New function.
5160         * linespec.h (linespec_lex_to_end): Declare.
5161         * location.c: New file.
5162         * location.h: New file.
5163
5164 2015-08-11  Keith Seitz  <keiths@redhat.com>
5165
5166         * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
5167         Renamed to create_sals_from_location.
5168         <decode_linespec>: Renamed to decode_location.
5169         Update all callers.
5170         * breakpoint.c (create_sals_from_address_default): Renamed to ...
5171         (create_sals_from_location_default): ... this.
5172         (addr_string_to_sals): Renamed to ...
5173         (location_to_sals): ... this.
5174         (decode_linespec_default): Renamed to ...
5175         (decode_location_default): ... this.
5176         (base_breakpoint_create_sals_from_address): Renamed to ...
5177         (base_breakpoint_create_sals_from_location): ... this.
5178         (bkpt_create_sals_from_address): Renamed to ...
5179         (bkpt_create_sals_from_location): ... this.
5180         (bkpt_decode_linespec): Renamed to ...
5181         (bkpt_decode_location): ... this.
5182         (bkpt_probe_create_sals_from_address): Renamed to ...
5183         (bkpt_probe_create_sals_from_location): ... this.
5184         (tracepoint_create_sals_from_address): Renamed to ...
5185         (tracepoint_create_sals_from_location): ... this.
5186         (tracepoint_decode_linespec): Renamed to ...
5187         (tracepoint_decode_location): ... this.
5188         (tracepoint_probe_create_sals_from_address): Renamed to ...
5189         (tracepoint_probe_create_sals_from_location): ... this.
5190         (tracepoint_probe_decode_linespec): Renamed to ...
5191         (tracepoint_probe_decode_location): ... this.
5192         (strace_marker_create_sals_from_address): Renamed to ...
5193         (strace_marker_create_sals_from_location): ... this.
5194         (decode_linespec_default): Renamed to ...
5195         (decode_location_default): ... this.
5196
5197 2015-08-10  Doug Evans  <dje@google.com>
5198             Keith Seitz  <keiths@redhat.com>
5199
5200         PR gdb/17960
5201         * symtab.c (make_file_symbol_completion_list_1): Renamed from
5202         make_file_symbol_completion_list and made static.
5203         (make_file_symbol_completion_list): New function.
5204
5205 2015-08-10  Joel Brobecker  <brobecker@adacore.com>
5206
5207         * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
5208         trailing new-line at end of warning message.
5209         (proceed): Add i18n marker to error messages.
5210
5211 2015-08-07  Pedro Alves  <palves@redhat.com>
5212
5213         * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
5214
5215 2015-08-07  Pedro Alves  <palves@redhat.com>
5216
5217         * s390-linux-tdep.c (is_non_branch_ril)
5218         (s390_displaced_step_copy_insn): New functions.
5219         (s390_displaced_step_fixup): Update comment.
5220         (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
5221         gdbarch_displaced_step_copy_insn hook.
5222
5223 2015-08-07  Pedro Alves  <palves@redhat.com>
5224
5225         * infrun.c (displaced_step_prepare_throw): Return -1 if
5226         gdbarch_displaced_step_copy_insn returns NULL.  Update intro
5227         comment.
5228         * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
5229         (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
5230         in file.
5231         (ppc_displaced_step_copy_insn): New function.
5232         (ppc_displaced_step_fixup): Update comment.
5233         (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
5234         gdbarch_displaced_step_copy_insn hook.
5235         * gdbarch.sh (displaced_step_copy_insn): Document what happens on
5236         NULL return.
5237         * gdbarch.h: Regenerate.
5238
5239 2015-08-07  Pedro Alves  <palves@redhat.com>
5240
5241         * inferior.h (struct inferior) <displaced_stepping_failed>: New
5242         field.
5243         * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
5244         Return false if dispaced stepping failed before.
5245         (resume): Pass the current inferior to
5246         use_displaced_stepping_now_p.  Wrap displaced_step_prepare in
5247         TRY/CATCH.  If we get a MEMORY_ERROR, set the inferior's
5248         displaced_stepping_failed flag, and fall back to an in-line
5249         step-over.
5250
5251 2015-08-07  Pedro Alves  <palves@redhat.com>
5252
5253         * darwin-nat.c (darwin_stop): Rename to ...
5254         (darwin_interrupt): ... this.
5255         (_initialize_darwin_inferior): Adjust.
5256         * gnu-nat.c (gnu_stop): Delete.
5257         (gnu_target): Don't install gnu_stop.
5258         * inf-ptrace.c (inf_ptrace_stop): Rename to ...
5259         (inf_ptrace_interrupt): ... this.
5260         (inf_ptrace_target): Adjust.
5261         * infcmd.c (interrupt_target_1): Use target_interrupt instead of
5262         target_stop.
5263         * linux-nat (linux_nat_stop): Rename to ...
5264         (linux_nat_interrupt): ... this.
5265         (linux_nat_stop): Reimplement.
5266         (linux_nat_add_target): Install linux_nat_interrupt.
5267         * nto-procfs.c (nto_interrupt_twice): Rename to ...
5268         (nto_handle_sigint_twice): ... this.
5269         (nto_interrupt): Rename to ...
5270         (nto_handle_sigint): ... this.  Call target_interrupt instead of
5271         target_stop.
5272         (procfs_wait): Adjust.
5273         (procfs_stop): Rename to ...
5274         (procfs_interrupt): ... this.
5275         (init_procfs_targets): Adjust.
5276         * procfs.c (procfs_stop): Rename to ...
5277         (procfs_interrupt): ... this.
5278         (procfs_target): Adjust.
5279         * remote-m32r-sdi.c (m32r_stop): Rename to ...
5280         (m32r_interrupt): ... this.
5281         (init_m32r_ops): Adjust.
5282         * remote-sim.c (gdbsim_stop_inferior): Rename to ...
5283         (gdbsim_interrupt_inferior): ... this.
5284         (gdbsim_stop): Rename to ...
5285         (gdbsim_interrupt): ... this.
5286         (gdbsim_cntrl_c): Adjust.
5287         (init_gdbsim_ops): Adjust.
5288         * remote.c (sync_remote_interrupt): Adjust comments.
5289         (remote_stop_as): Rename to ...
5290         (remote_interrupt_as): ... this.
5291         (remote_stop): Adjust comment.
5292         (remote_interrupt): New function.
5293         (init_remote_ops): Install remote_interrupt.
5294         * target.c (target_interrupt): New function.
5295         * target.h (struct target_ops) <to_interrupt>: New field.
5296         (target_interrupt): New declaration.
5297         * windows-nat.c (windows_stop): Rename to ...
5298         (windows_interrupt): ... this.
5299         * target-delegates.c: Regenerate.
5300
5301 2015-08-07  Pedro Alves  <palves@redhat.com>
5302
5303         * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
5304         threads" as alternative to "switching back to stepped thread".
5305
5306 2015-08-07  Pedro Alves  <palves@redhat.com>
5307
5308         * NEWS: Mention "maint set/show target-non-stop".
5309         * breakpoint.c (update_global_location_list): Check
5310         target_is_non_stop_p instead of non_stop.
5311         * infcmd.c (attach_command_post_wait, attach_command): Likewise.
5312         * infrun.c (show_can_use_displaced_stepping)
5313         (can_use_displaced_stepping_p, start_step_over_inferior):
5314         Likewise.
5315         (internal_resume_ptid): New function.
5316         (resume): Use it.
5317         (proceed): Check target_is_non_stop_p instead of non_stop.  If in
5318         all-stop mode but the target is always in non-stop mode, start all
5319         the other threads that are implicitly resumed too.
5320         (for_each_just_stopped_thread, fetch_inferior_event)
5321         (adjust_pc_after_break, stop_all_threads): Check
5322         target_is_non_stop_p instead of non_stop.
5323         (handle_inferior_event): Likewise.  Handle detach-fork in all-stop
5324         with the target always in non-stop mode.
5325         (handle_signal_stop) <random signal>: Check target_is_non_stop_p
5326         instead of non_stop.
5327         (switch_back_to_stepped_thread): Check target_is_non_stop_p
5328         instead of non_stop.
5329         (keep_going_stepped_thread): Use internal_resume_ptid.
5330         (stop_waiting): If in all-stop mode, and the target is in non-stop
5331         mode, stop all threads.
5332         (keep_going_pass): Likewise, when starting a new in-line step-over
5333         sequence.
5334         * linux-nat.c (get_pending_status, select_event_lwp)
5335         (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
5336         target_is_non_stop_p instead of non_stop.
5337         (linux_nat_always_non_stop_p): New function.
5338         (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
5339         (linux_nat_add_target): Install linux_nat_always_non_stop_p.
5340         * target-delegates.c: Regenerate.
5341         * target.c (target_is_non_stop_p): New function.
5342         (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
5343         (maint_set_target_non_stop_command)
5344         (maint_show_target_non_stop_command): New functions.
5345         (_initilize_target): Install "maint set/show target-non-stop"
5346         commands.
5347         * target.h (struct target_ops) <to_always_non_stop_p>: New field.
5348         (target_non_stop_enabled): New declaration.
5349         (target_is_non_stop_p): New declaration.
5350
5351 2015-08-07  Pedro Alves  <pedro@codesourcery.com>
5352
5353         * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
5354         has a pending status, return true.
5355         * gdbthread.h: Include target/waitstatus.h.
5356         (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
5357         stop_pc>: New fields.
5358         (struct thread_info) <resumed>: New field.
5359         (set_resumed): Declare.
5360         * infrun.c: Include "event-loop.h".
5361         (infrun_async_inferior_event_token, infrun_is_async): New globals.
5362         (infrun_async): New function.
5363         (clear_step_over_info): Add debug output.
5364         (displaced_step_in_progress_any_inferior): New function.
5365         (displaced_step_fixup): New returns int.
5366         (start_step_over): Handle in-line step-overs too.  Assert the
5367         thread is marked resumed.
5368         (resume_cleanups): Clear the thread's resumed flag.
5369         (resume): Set the thread's resumed flag.  Return early if the
5370         thread has a pending status.  Allow stepping a breakpoint with no
5371         signal.
5372         (proceed): Adjust to check 'resumed' instead of 'executing'.
5373         (clear_proceed_status_thread): If the thread has a pending status,
5374         and that status is a finished step, discard the pending status.
5375         (clear_proceed_status): Don't clear step_over_info here.
5376         (random_pending_event_thread, do_target_wait): New functions.
5377         (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
5378         do_target_wait.
5379         (wait_one): New function.
5380         (THREAD_STOPPED_BY): New macro.
5381         (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
5382         (thread_stopped_by_hw_breakpoint): New functions.
5383         (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
5384         functions.
5385         (handle_inferior_event): Also call set_resumed(false) on all
5386         threads implicitly stopped by the event.
5387         (restart_threads, resumed_thread_with_pending_status): New
5388         functions.
5389         (finish_step_over): If we were doing an in-line step-over before,
5390         and no longer are after trying to start a new step-over, restart
5391         all threads.  If we have multiple threads with pending events,
5392         save the current event and go through the event loop again.
5393         (handle_signal_stop): Return early if finish_step_over returns
5394         false.
5395         <random signal>: If we get a signal while stepping over a
5396         breakpoint in-line in non-stop mode, restart all threads.  Clear
5397         step_over_info before delivering the signal.
5398         (keep_going_stepped_thread): Use internal_error instead of
5399         gdb_assert.  Mark the thread as resumed.
5400         (keep_going_pass_signal): Assert the thread isn't already resumed.
5401         If some other thread is doing an in-line step-over, defer the
5402         resume.  If we just started a new in-line step-over, stop all
5403         threads.  Don't clear step_over_info.
5404         (infrun_async_inferior_event_handler): New function.
5405         (_initialize_infrun): Create async event handler with
5406         infrun_async_inferior_event_handler as callback.
5407         (infrun_async): New declaration.
5408         * target.c (target_async): New function.
5409         * target.h (target_async): Declare macro and readd as function
5410         declaration.
5411         * target/waitstatus.h (enum target_stop_reason)
5412         <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
5413         * thread.c (new_thread): Clear the new waitstatus field.
5414         (set_resumed): New function.
5415
5416 2015-08-07  Pedro Alves  <palves@redhat.com>
5417
5418         * infrun.c (keep_going_stepped_thread): New function, factored out
5419         from ...
5420         (switch_back_to_stepped_thread): ... here.
5421
5422 2015-08-07  Pedro Alves  <palves@redhat.com>
5423
5424         * infrun.c (currently_stepping): Extend intro comment.
5425         * target.h (target_resume): Extend intro comment.
5426
5427 2015-08-07  Pedro Alves  <palves@redhat.com>
5428
5429         * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
5430         of inferior_ptid.  If the stepped thread vanished, return 0
5431         instead of resuming here.  Use reset_ecs.  Print the prev_pc and
5432         the current stop_pc in log message.  Clear trap_expected if the
5433         thread advanced.  Don't pass currently_stepping to
5434         do_target_resume.
5435
5436 2015-08-07  Pedro Alves  <palves@redhat.com>
5437
5438         * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
5439         * infrun.c (struct execution_control_state): Move higher up in the
5440         file.
5441         (reset_ecs): New function.
5442         (start_step_over): Now returns int.  Rewrite to use
5443         keep_going_pass_signal instead of manually starting a displaced step.
5444         (resume): Don't call set_running here.  If displaced stepping
5445         can't start now, clear trap_expected.
5446         (find_thread_needs_step_over): Delete function.
5447         (proceed): Set up finish_thread_state_cleanup.  Call set_running.
5448         If the current thread needs a step over, push it in the step-over
5449         chain.  Don't set insert breakpoints nor call resume directly
5450         here.  Instead rewrite to use start_step_over and
5451         keep_going_pass_signal.
5452         (finish_step_over): New function.
5453         (handle_signal_stop): Call finish_step_over instead of
5454         start_step_over.
5455         (switch_back_to_stepped_thread): If the event thread needs another
5456         step-over do that first.  Use start_step_over.
5457         (keep_going_pass_signal): New function, factored out from ...
5458         (keep_going): ... here.
5459         (_initialize_infrun): Comment moved here.
5460         * thread.c (set_running_thread): New function.
5461         (set_running, finish_thread_state): Use set_running_thread.
5462
5463 2015-08-07  Pedro Alves  <palves@redhat.com>
5464
5465         * gdbthread.h (struct thread_info) <step_over_prev,
5466         step_over_next>: New fields.
5467         (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
5468         (thread_step_over_chain_next, thread_is_in_step_over_chain): New
5469         declarations.
5470         * infrun.c (struct displaced_step_request): Delete.
5471         (struct displaced_step_inferior_state) <step_request_queue>:
5472         Delete field.
5473         (displaced_step_prepare): Assert that trap_expected is set.  Use
5474         thread_step_over_chain_enqueue.  Split starting a new displaced
5475         step to ...
5476         (start_step_over): ... this new function.
5477         (resume): Assert the thread isn't waiting for a step over already.
5478         (proceed): Assert the thread isn't waiting for a step over
5479         already.
5480         (infrun_thread_stop_requested): Adjust to remove threads from the
5481         embedded step-over chain.
5482         (handle_inferior_event) <fork/vfork>: Call start_step_over after
5483         displaced_step_fixup.
5484         (handle_signal_stop): Call start_step_over after
5485         displaced_step_fixup.
5486         * infrun.h (step_over_queue_head): New declaration.
5487         * thread.c (step_over_chain_enqueue, step_over_chain_remove)
5488         (thread_step_over_chain_next, thread_is_in_step_over_chain)
5489         (thread_step_over_chain_enqueue)
5490         (thread_step_over_chain_remove): New functions.
5491         (delete_thread_1): Remove thread from the step-over chain.
5492
5493 2015-08-07  Pedro Alves  <palves@redhat.com>
5494
5495         * infrun.c (thread_still_needs_step_over): Rename to ...
5496         (thread_still_needs_step_over_bp): ... this.
5497         (enum step_over_what): New.
5498         (thread_still_needs_step_over): Reimplement.
5499
5500 2015-08-07  Pedro Alves  <palves@redhat.com>
5501
5502         * remote.c (remote_wait_as): If not waiting for a stop reply,
5503         return TARGET_WAITKIND_NO_RESUMED.  If TARGET_WNOHANG is
5504         requested, don't block waiting forever.
5505
5506 2015-08-07  Pedro Alves  <pedro@codesourcery.com>
5507
5508         * infrun.c (adjust_pc_after_break): Now takes thread_info and
5509         waitstatus pointers instead of an ecs.  Adjust.
5510         (handle_inferior_event): Adjust caller.
5511
5512 2015-08-07  Pedro Alves  <palves@redhat.com>
5513
5514         * infrun.c (handle_inferior_event): If we get
5515         TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
5516         mode, mark all threads of the exiting process as not-executing.
5517         (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
5518         TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
5519         exiting process, if inferior_ptid still points at a process.
5520         * thread.c (struct current_thread_cleanup) <next>: New field.
5521         (current_thread_cleanup_chain): New global.
5522         (restore_current_thread_ptid_changed): New function.
5523         (restore_current_thread_cleanup_dtor): Remove the cleanup from the
5524         current_thread_cleanup_chain list.
5525         (make_cleanup_restore_current_thread): Add the cleanup data to the
5526         current_thread_cleanup_chain list.
5527         (_initialize_thread): Install restore_current_thread_ptid_changed
5528         as thread_ptid_changed observer.
5529
5530 2015-08-07  Joel Brobecker  <brobecker@adacore.com>
5531
5532         * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
5533         data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
5534         smaller than expected.
5535
5536 2015-08-07  Andrew Burgess  <andrew.burgess@embecosm.com>
5537
5538         * stack.c (get_frame_language): Moved ...
5539         * frame.c (get_frame_language): ... to here.
5540         * language.h (get_frame_language): Declaration moved to frame.h.
5541         * frame.h: Add language.h include, for language enum.
5542         (get_frame_language): Declaration moved from language.h.
5543         * language.c: Add frame.h include.
5544         * top.c: Add frame.h include.
5545         * symtab.h (struct obj_section): Declare.
5546         (struct cmd_list_element): Declare.
5547
5548 2015-08-07  Andrew Burgess  <andrew.burgess@embecosm.com>
5549
5550         * language.c (show_language_command): Find selected frame before
5551         asking for the language of that frame.
5552         (set_language_command): Likewise.
5553         * language.h (get_frame_language): Add frame parameter.
5554         * stack.c (get_frame_language): Add frame parameter, assert
5555         parameter is not NULL, update comment and reindent.
5556         * top.c (check_frame_language_change): Pass the selected frame
5557         into get_frame_language.
5558
5559 2015-08-07  Markus Metzger  <markus.t.metzger@intel.com>
5560
5561         * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
5562         (pt_btrace_insn_flags): New.
5563         (ftrace_add_pt): Call pt_btrace_insn_flags.
5564         * btrace.h (btrace_insn_flag): New.
5565         (btrace_insn) <flags>: New.
5566         * record-btrace.c (btrace_insn_history): Print insn prefix.
5567         * NEWS: Announce it.
5568
5569 2015-08-07  Markus Metzger  <markus.t.metzger@intel.com>
5570
5571         * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
5572         * configure: Regenerate.
5573
5574 2015-08-06  Yaakov Selkowitz  <yselkowi@redhat.com>
5575
5576         * Makefile.in (LIBICONV): Define.
5577         (CLIBS): Add LIBICONV.
5578         * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
5579         * configure: Regenerate.
5580
5581 2015-08-06  Simon Marchi  <simon.marchi@ericsson.com>
5582             Pedro Alves  <palves@redhat.com>
5583
5584         * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
5585         (arm_set_abi): Likewise.
5586         * ax-general.c (ax_print): Likewise.
5587         * c-exp.y (exp : string_exp): Likewise.
5588         * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
5589         (do_compile_dwarf_expr_to_c): Likewise.
5590         * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
5591         Likewise.
5592         * dwarf2expr.c (execute_stack_op): Likewise.
5593         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
5594         (disassemble_dwarf_expression): Likewise.
5595         * dwarf2read.c (dwarf2_add_member_fn): Likewise.
5596         (read_array_order): Likewise.
5597         (abbrev_table_read_table): Likewise.
5598         (read_attribute_value): Likewise.
5599         (skip_unknown_opcode): Likewise.
5600         (dwarf_decode_macro_bytes): Likewise.
5601         (dwarf_decode_macros): Likewise.
5602         * eval.c (value_f90_subarray): Likewise.
5603         * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5604         * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5605         * infrun.c (handle_command): Likewise.
5606         * memory-map.c (memory_map_start_memory): Likewise.
5607         * osabi.c (set_osabi): Likewise.
5608         * parse.c (operator_length_standard): Likewise.
5609         * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
5610         single return point.
5611         * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5612         * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
5613         (gdbpy_lookup_global_symbol): Likewise.
5614         * record-full.c (record_full_restore): Likewise.
5615         * regcache.c (regcache_register_status): Likewise.
5616         (regcache_raw_read): Likewise.
5617         (regcache_cooked_read): Likewise.
5618         * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
5619         * symtab.c (initialize_ordinary_address_classes): Likewise.
5620         * target-debug.h (target_debug_print_signals): Likewise.
5621         * utils.c (do_restore_current_language): Likewise.
5622
5623 2015-08-06  Clem Dickey  <clemd@acm.org>
5624
5625         PR python/17136
5626         * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
5627
5628 2015-08-06  Simon Marchi  <simon.marchi@ericsson.com>
5629
5630         * complaints.c (enum complaint_series): Add newlines and remove
5631         out of date comment.
5632         (struct complaints) <series>: Change type to enum
5633         complaint_series and remove out of date comment.
5634         (symfile_complaint_hook): Use equivalent enum value
5635         ISOLATED_MESSAGE instead of 0.
5636
5637 2015-08-06  Pedro Alves  <palves@redhat.com>
5638
5639         * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
5640         returned > 0.
5641
5642 2015-08-06  Pierre Langlois  <pierre.langlois@arm.com>
5643
5644         * common/agent.c (symbol_list) <required>: Remove.
5645
5646 2015-08-06  Pedro Alves  <palves@redhat.com>
5647
5648         * target/waitstatus.h (enum target_stop_reason)
5649         <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
5650
5651 2015-08-05  Pedro Alves  <palves@redhat.com>
5652             Joel Brobecker  <brobecker@adacore.com>
5653
5654         * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
5655         <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
5656         case where BS->STOP is not set.
5657
5658 2015-08-05  Ulrich Weigand  <uweigand@de.ibm.com>
5659
5660         * nat/gdb_thread_db.h: Add copyright header.
5661         Protect against multiple inclusion.
5662
5663 2015-08-05  Yao Qi  <yao.qi@linaro.org>
5664
5665         * aarch64-linux-nat.c (get_thread_id): Remove.
5666         (debug_reg_change_callback): Call ptid_get_lwp instead of
5667         get_thread_id.
5668         (fetch_gregs_from_thread): Likewise.
5669         (store_gregs_to_thread): Likewise.
5670         (fetch_fpregs_from_thread): Likewise.
5671         (store_fpregs_to_thread): Likewise.
5672         (aarch64_linux_get_debug_reg_capacity): Likewise.
5673         * arm-linux-nat.c (get_thread_id): Remove.
5674         (GET_THREAD_ID): Update macro to use ptid_get_lwp.
5675         * xtensa-linux-nat.c (get_thread_id): Remove.
5676         (GET_THREAD_ID): Update macro to use ptid_get_lwp.
5677         * arm-linux-nat.c (get_thread_id): Remove.
5678         (GET_THREAD_ID): Remove.
5679         (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
5680         (store_fpregs, fetch_regs, store_regs): Likewise.
5681         (fetch_wmmx_regs, store_wmmx_regs): Likewise.
5682         (fetch_vfp_regs, store_vfp_regs): Likewise.
5683         (arm_linux_read_description): Likewise.
5684         (arm_linux_get_hwbp_cap): Likewise.
5685         * xtensa-linux-nat.c (get_thread_id): Remove.
5686         (GET_THREAD_ID): Remove.
5687         (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
5688         GET_THREAD_ID.
5689
5690 2015-08-04  Ciro Santilli  <ciro.santilli@gmail.com>  (obvious patch)
5691
5692         * python/py-linetable.c: Fix case of Linetable to LineTable
5693         in docstrings and code comments.
5694         * python/py-symtab.c: Same.
5695
5696 2015-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
5697
5698         * infcmd.c (signal_command): Call do_cleanups for args_chain.
5699
5700 2015-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
5701
5702         PR gdb/18767
5703         * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
5704         use.
5705
5706 2015-08-04  Pedro Alves  <palves@redhat.com>
5707
5708         * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
5709         (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
5710         (td_ta_event_addr_ftype, td_ta_set_event_ftype)
5711         (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
5712         (td_thr_validate_ftype, td_thr_get_info_ftype)
5713         (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
5714         (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
5715         New typedefs.
5716         * linux-thread-db.c (struct thread_db_info): Use new typedefs.
5717         (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
5718         local macros and use them instead of verbose_dlsym and dlsym
5719         calls.
5720
5721 2015-08-03  Sandra Loosemore  <sandra@codesourcery.com>
5722
5723         * nios2-tdep.h: Include opcode/nios2.h here.
5724         (NIOS2_CDX_OPCODE_SIZE): New.
5725         (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
5726         * nios2-tdep.c: Don't include opcode/nios2.h here.
5727         (nios2_fetch_insn): For R2, try reading 2-byte instruction if
5728         4-byte read fails.
5729         (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
5730         (nios2_match_addi, nios2_match_orhi): Likewise.
5731         (nios2_match_stw, nios2_match_ldw): Likewise.
5732         (nios2_match_rdctl): Likewise.
5733         (nios2_match_stwm, nios2_match_ldwm): New.
5734         (nios2_match_branch): Add cases for R2 encodings.
5735         (nios2_match_jmpi, nios2_match_calli): Likewise.
5736         (nios2_match_jmpr, nios2_match_callr): Likewise.
5737         (nios2_match_break, nios2_match_trap): Likewise.
5738         (nios2_in_epilogue_p): Add R2 support.
5739         (nios2_analyze_prologue): Update comments.  Recognize R2 CDX
5740         prologues.
5741         (nios2_breakpoint_from_pc): Handle R2 instructions.
5742         (nios2_get_next_pc): Likewise.  Adjust call to
5743         tdep->syscall_next_pc.
5744         * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
5745         Renamed from nios2_linux_rt_sigreturn_tramp_frame.  Use
5746         instruction field macros instead of literal hex values.
5747         (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
5748         (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
5749         Use size field from OP instead of assuming all instructions
5750         are the same size.
5751         (nios2_linux_init_abi): Register appropriate unwinder for mach.
5752
5753 2015-08-03  Ulrich Weigand  <uweigand@de.ibm.com>
5754
5755         * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
5756         variable warning with some compilers.
5757
5758 2015-08-03  Yao Qi  <yao.qi@linaro.org>
5759
5760         * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
5761         in comment.  Replace "rw" with "type".
5762         (arm_linux_remove_watchpoint): Change type of "rw" to
5763         "enum target_hw_bp_type".
5764
5765 2015-08-02  Pierre-Marie de Rodat  <derodat@adacore.com>
5766
5767         * alpha-mdebug-tdep.c (find_proc_desc): Update call to
5768         lookup_symbol.
5769         * ft32-tdep.c (ft32_skip_prologue): Likewise.
5770         * moxie-tdep.c (moxie_skip_prologue): Likewise.
5771         * mt-tdep.c (mt_skip_prologue): Likewise.
5772         * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
5773
5774 2015-08-01  Pierre-Marie de Rodat  <derodat@adacore.com>
5775
5776         * ada-exp.y (write_object_renaming): Replace struct
5777         ada_symbol_info with struct block_symbol.  Update field
5778         references accordingly.
5779         (block_lookup, select_possible_type_sym): Likewise.
5780         (find_primitive_type): Likewise.  Also update call to
5781         ada_lookup_symbol to extract the symbol itself.
5782         (write_var_or_type, write_name_assoc): Likewise.
5783         * ada-lang.h (struct ada_symbol_info): Remove.
5784         (ada_lookup_symbol_list): Replace struct ada_symbol_info with
5785         struct block_symbol.
5786         (ada_lookup_encoded_symbol, user_select_syms): Likewise.
5787         (ada_lookup_symbol): Return struct block_symbol instead of a
5788         mere symbol.
5789         * ada-lang.c (defns_collected): Replace struct ada_symbol_info
5790         with struct block_symbol.
5791         (resolve_subexp, ada_resolve_function, sort_choices,
5792         user_select_syms, is_nonfunction, add_defn_to_vec,
5793         num_defns_collected, defns_collected,
5794         symbols_are_identical_enums, remove_extra_symbols,
5795         remove_irrelevant_renamings, add_lookup_symbol_list_worker,
5796         ada_lookup_symbol_list, ada_iterate_over_symbols,
5797         ada_lookup_encoded_symbol, get_var_value): Likewise.
5798         (ada_lookup_symbol): Return a block_symbol instead of a mere
5799         symbol.  Replace struct ada_symbol_info with struct
5800         block_symbol.
5801         (ada_lookup_symbol_nonlocal): Likewise.
5802         (standard_lookup): Make block passing explicit through
5803         lookup_symbol_in_language.
5804         * ada-tasks.c (get_tcb_types_info): Update the calls to
5805         lookup_symbol_in_language to extract the mere symbol out of the
5806         returned value.
5807         (ada_tasks_inferior_data_sniffer): Likewise.
5808         * ax-gdb.c (gen_static_field): Likewise for the call to
5809         lookup_symbol.
5810         (gen_maybe_namespace_elt): Deal with struct block_symbol from
5811         lookup functions.
5812         (gen_expr): Likewise.
5813         * c-exp.y: Likewise.  Remove uses of block_found.
5814         (lex_one_token, classify_inner_name, c_print_token): Likewise.
5815         (classify_name): Likewise.  Rename the "sym" local variable to
5816         "bsym".
5817         * c-valprint.c (print_unpacked_pointer): Likewise.
5818         * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
5819         "sym" parameter from struct symbol * to struct block_symbol.
5820         Use it to remove uses of block_found.  Deal with struct
5821         block_symbol from lookup functions.
5822         (gcc_convert_symbol): Likewise.  Update the call to
5823         convert_symbol_sym.
5824         * compile/compile-object-load.c (compile_object_load): Deal with
5825         struct block_symbol from lookup functions.
5826         * cp-namespace.c (cp_lookup_nested_symbol_1,
5827         cp_lookup_nested_symbol, cp_lookup_bare_symbol,
5828         cp_search_static_and_baseclasses,
5829         cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
5830         cp_lookup_symbol_imports_or_template,
5831         cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
5832         lookup_namespace_scope, cp_lookup_nonlocal,
5833         find_symbol_in_baseclass): Return struct block_symbol instead of
5834         mere symbols and deal with struct block_symbol from lookup
5835         functions.
5836         * cp-support.c (inspect_type, replace_typedefs,
5837         cp_lookup_rtti_type): Deal with struct block_symbol from
5838         lookup functions.
5839         * cp-support.h (cp_lookup_symbol_nonlocal,
5840         cp_lookup_symbol_from_namespace,
5841         cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
5842         Return struct block_symbol instead of mere symbols.
5843         * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
5844         push_module_name):
5845         Deal with struct block_symbol from lookup functions.  Remove
5846         uses of block_found.
5847         * eval.c (evaluate_subexp_standard): Update call to
5848         cp_lookup_symbol_namespace.
5849         * f-exp.y: Deal with struct block_symbol from lookup functions.
5850         Remove uses of block_found.
5851         (yylex): Likewise.
5852         * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
5853         lookup_enum, lookup_template_type, check_typedef): Deal with
5854         struct block_symbol from lookup functions.
5855         * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
5856         * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
5857         (gdbscm_lookup_global_symbol): Likewise.
5858         * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
5859         * go-exp.y: Likewise.  Remove uses of block_found.
5860         (package_name_p, classify_packaged_name, classify_name):
5861         Likewise.
5862         * infrun.c (insert_exception_resume_breakpoint): Likewise.
5863         * jv-exp.y (push_variable): Likewise.
5864         * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
5865         * language.c (language_bool_type): Likewise.
5866         * language.h (struct language_defn): Update
5867         la_lookup_symbol_nonlocal to return a struct block_symbol rather
5868         than a mere symbol.
5869         * linespec.c (find_label_symbols): Deal with struct block_symbol
5870         from lookup functions.
5871         * m2-exp.y: Likewise.  Remove uses of block_found.
5872         (yylex): Likewise.
5873         * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
5874         * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
5875         * p-exp.y: Likewise.  Remove uses of block_found.
5876         (yylex): Likewise.
5877         * p-valprint.c (pascal_val_print): Likewise.
5878         * parse.c (write_dollar_variable): Likewise.  Remove uses of
5879         block_found.
5880         * parser-defs.h (struct symtoken): Turn the SYM field into a
5881         struct block_symbol.
5882         * printcmd.c (address_info): Deal with struct block_symbol from
5883         lookup functions.
5884         * python/py-frame.c (frapy_read_var): Likewise.
5885         * python/py-symbol.c (gdbpy_lookup_symbol,
5886         gdbpy_lookup_global_symbol): Likewise.
5887         * skip.c (skip_function_command): Likewise.
5888         * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
5889         block_symbol instead of a mere symbol.
5890         * solib-spu.c (spu_lookup_lib_symbol): Likewise.
5891         * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
5892         * solib.c (solib_global_lookup): Likewise.
5893         * solist.h (solib_global_lookup): Likewise.
5894         (struct target_so_ops): Update lookup_lib_global_symbol to
5895         return a struct block_symbol rather than a mere symbol.
5896         * source.c (select_source_symtab): Deal with struct block_symbol
5897         from lookup functions.
5898         * stack.c (print_frame_args, iterate_over_block_arg_vars):
5899         Likewise.
5900         * symfile.c (set_initial_language): Likewise.
5901         * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
5902         block_symbol.
5903         (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
5904         (struct symbol_cache_slot): Turn the FOUND field into a struct
5905         block_symbol.
5906         (block_found): Remove.
5907         (eq_symbol_entry): Update to deal with struct block_symbol in
5908         cache slots.
5909         (symbol_cache_lookup): Return a struct block_symbol rather than
5910         a mere symbol.
5911         (symbol_cache_mark_found): Add a BLOCK parameter to fill
5912         appropriately the cache slots.  Update callers.
5913         (symbol_cache_dump): Update cache slots handling to the type
5914         change.
5915         (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
5916         lookup_symbol_aux, lookup_local_symbol,
5917         lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
5918         lookup_symbol_in_objfile_symtabs,
5919         lookup_symbol_in_objfile_from_linkage_name,
5920         lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
5921         lookup_symbol_in_static_block, lookup_static_symbol,
5922         lookup_global_symbol):
5923         Return a struct block_symbol rather than a mere symbol.  Deal
5924         with struct block_symbol from other lookup functions.  Remove
5925         uses of block_found.
5926         (lookup_symbol_in_block): Remove uses of block_found.
5927         (struct global_sym_lookup_data): Turn the RESULT field into a
5928         struct block_symbol.
5929         (lookup_symbol_global_iterator_cb): Update references to the
5930         RESULT field.
5931         (search_symbols): Deal with struct block_symbol from lookup
5932         functions.
5933         * symtab.h (struct block_symbol): New structure.
5934         (block_found): Remove.
5935         (lookup_symbol_in_language, lookup_symbol,
5936         basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
5937         lookup_static_symbol, lookup_global_symbol, lookup_language_this,
5938         lookup_global_symbol_from_objfile): Return a struct block_symbol
5939         rather than just a mere symbol.  Update comments to remove
5940         mentions of block_found.
5941         * valops.c (find_function_in_inferior,
5942         value_struct_elt_for_reference, value_maybe_namespace_elt,
5943         value_of_this):  Deal with struct block_symbol from lookup
5944         functions.
5945         * value.c (value_static_field, value_fn_field): Likewise.
5946
5947 2015-07-31  Simon Marchi  <simon.marchi@ericsson.com>
5948
5949         * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
5950         instead of integer.
5951
5952 2015-07-31  Simon Marchi  <simon.marchi@ericsson.com>
5953             Pedro Alves  <palves@redhat.com>
5954
5955         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
5956         type or value instead of integer.
5957         (aarch64_linux_insert_watchpoint): Likewise.
5958         (aarch64_linux_remove_watchpoint): Likewise.
5959         * ada-lang.c (ada_op_print_tab): Likewise.
5960         * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
5961         (amd64_linux_syscall_record_common): Likewise.
5962         * arch-utils.c (target_byte_order_user): Likewise.
5963         (default_byte_order): Likewise.
5964         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
5965         (arm_linux_get_hwbp_type): Likewise.
5966         (arm_linux_hw_watchpoint_initialize): Likewise.
5967         (arm_linux_insert_watchpoint): Likewise.
5968         * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
5969         (arm_linux_syscall_record): Likewise.
5970         * breakpoint.c (update_watchpoint): Likewise.
5971         (breakpoint_here_p): Likewise.
5972         (bpstat_print): Likewise.
5973         (enable_breakpoint_disp): Likewise.
5974         * c-lang.c (c_op_print_tab): Likewise.
5975         * cli/cli-decode.c (add_info_alias): Likewise.
5976         * d-lang.c (d_op_print_tab): Likewise.
5977         * eval.c (evaluate_subexp_standard): Likewise.
5978         * f-exp.y (dot_ops): Likewise.
5979         (f77_keywords): Likewise.
5980         * f-lang.c (f_op_print_tab): Likewise.
5981         * go-lang.c (go_op_print_tab): Likewise.
5982         * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
5983         * guile/scm-cmd.c (gdbscm_make_command): Likewise.
5984         * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5985         * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
5986         * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
5987         (struct scm_from_stringn_data): Likewise.
5988         * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5989         * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
5990         (ia64_linux_remove_watchpoint): Likewise.
5991         (ia64_linux_can_use_hw_breakpoint): Likewise.
5992         * infrun.c (print_stop_event): Likewise.
5993         * jv-lang.c (java_op_print_tab): Likewise.
5994         * linux-nat.c (linux_proc_xfer_partial): Likewise.
5995         * linux-nat.h (struct lwp_info): Likewise.
5996         * linux-thread-db.c (enable_thread_event): Likewise.
5997         * m2-lang.c (m2_op_print_tab): Likewise.
5998         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
5999         (mi_cmd_stack_list_variables): Likewise.
6000         * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
6001         * mi/mi-out.c (mi_table_begin): Likewise.
6002         (mi_table_header): Likewise.
6003         * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
6004         (mips_linux_insert_watchpoint): Likewise.
6005         (mips_linux_remove_watchpoint): Likewise.
6006         * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
6007         * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
6008         (mips_linux_watch_type_to_irw): Likewise.
6009         * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
6010         (procfs_insert_hw_watchpoint): Likewise.
6011         (procfs_remove_hw_watchpoint): Likewise.
6012         (procfs_hw_watchpoint): Likewise.
6013         (procfs_can_use_hw_breakpoint): Likewise.
6014         (procfs_remove_hw_watchpoint): Likewise.
6015         (procfs_insert_hw_watchpoint): Likewise.
6016         * p-lang.c (pascal_op_print_tab): Likewise.
6017         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
6018         * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
6019         * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
6020         * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
6021         (procfs_insert_watchpoint): Likewise.
6022         (procfs_remove_watchpoint): Likewise.
6023         * psymtab.c (recursively_search_psymtabs): Likewise.
6024         * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
6025         (m32r_insert_watchpoint): Likewise.
6026         * remote-mips.c (mips_can_use_watchpoint): Likewise.
6027         (mips_insert_watchpoint): Likewise.
6028         (mips_remove_watchpoint): Likewise.
6029         * remote.c (watchpoint_to_Z_packet): Likewise.
6030         (remote_insert_watchpoint): Likewise.
6031         (remote_remove_watchpoint): Likewise.
6032         (remote_check_watch_resources): Likewise.
6033         * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
6034         (s390_remove_watchpoint): Likewise.
6035         (s390_can_use_hw_breakpoint): Likewise.
6036         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6037         * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
6038         * target.h (struct target_ops): Likewise.
6039         * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
6040         * ui-out.c (struct ui_out_hdr): Likewise.
6041         (append_header_to_list): Likewise.
6042         (get_next_header): Likewise.
6043         (verify_field): Likewise.
6044         (ui_out_begin): Likewise.
6045         (ui_out_field_int): Likewise.
6046         (ui_out_field_fmt_int): Likewise.
6047         (ui_out_field_skip): Likewise.
6048         (ui_out_field_string): Likewise.
6049         (ui_out_field_fmt): Likewise.
6050         * varobj.c (new_variable): Likewise.
6051         * x86-nat.c (x86_insert_watchpoint): Likewise.
6052         (x86_remove_watchpoint): Likewise.
6053         (x86_can_use_hw_breakpoint): Likewise.
6054         * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
6055         * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
6056         previously anonymous enumeration type..
6057         * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
6058         value.
6059         * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
6060         (target_debug_print_enum_bptype): New.
6061         * target-delegates.c: Regenerate.
6062
6063 2015-07-30  Sandra Loosemore  <sandra@codesourcery.com>
6064
6065         * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
6066         already says and disallow non-stack memory writes in the prologue.
6067
6068 2015-07-30  Sandra Loosemore  <sandra@codesourcery.com>
6069
6070         * nios2-tdep.c (nios2_analyze_prologue): Update comments to
6071         reflect how current GCC emits stack overflow checks.  Match
6072         both trap and break instructions for backward compatbility.
6073         Disallow other trap and break instructions in the prologue.
6074
6075 2015-07-30  Pedro Alves  <palves@redhat.com>
6076
6077         PR threads/18600
6078         * linux-nat.c (wait_lwp): Report to the core when thread group
6079         leader exits.
6080
6081 2015-07-30  Pedro Alves  <palves@redhat.com>
6082             Simon Marchi  <simon.marchi@ericsson.com>
6083
6084         PR threads/18600
6085         * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
6086         mark the new thread as resumed.  Remove STOPPING parameter.
6087         (wait_lwp): Adjust call to linux_handle_extended_wait.
6088         (linux_nat_filter_event): Adjust call to
6089         linux_handle_extended_wait.
6090         (resume_stopped_resumed_lwps): Add debug output.
6091
6092 2015-07-30  Pierre Langlois  <pierre.langlois@arm.com>
6093
6094         * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
6095         isize argument.
6096         * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
6097         * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
6098         gdbarch_fast_tracepoint_valid_at.
6099         * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
6100         * gdbarch.h: Regenerate.
6101         * gdbarch.c: Regenerate.
6102         * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
6103         argument.  Do not set it.
6104         * remote.c (remote_download_tracepoint): Adjust call to
6105         gdbarch_fast_tracepoint_valid_at.  Call gdb_insn_length to get
6106         the instruction length.
6107
6108 2015-07-30  Yao Qi  <yao.qi@linaro.org>
6109
6110         * arm-tdep.h (enum gdb_regnum): Move it to ...
6111         * arch/arm.h: ... here.  New file.
6112         * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
6113
6114 2015-07-30  Pierre Langlois  <pierre.langlois@arm.com>
6115
6116         * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
6117         Change its type to int *.
6118         (decode_br): Rename link argument to is_blr.  Change its type to
6119         int *.
6120         (decode_cb): Rename op argument to is_cbnz.  Change its type to
6121         int *.
6122         (decode_tb): Rename op argument to is_tbnz.  Change its type to
6123         int *.  Set is_tbnz to either 1 or 0.
6124         (aarch64_analyze_prologue): Change type of is_link to int.  Add
6125         new variables is_cbnz and is_tbnz.  Adjust call to
6126         aarch64_decode_cb and aarch64_decode_tb.
6127
6128 2015-07-29  Simon Marchi  <simon.marchi@ericsson.com>
6129
6130         * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
6131         parameter.
6132         (mips_linux_new_thread): Likewise.
6133         * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
6134
6135 2015-07-29  Patrick Palka  <patrick@parcs.ath.cx>
6136
6137         * top.c: Include "tui/tui.h".
6138         (undo_terminal_modifications_before_exit): New static function.
6139         (quit_force): Use it.
6140
6141 2015-07-29  Patrick Palka  <patrick@parcs.ath.cx>
6142
6143         * target.c (terminal_state): Initialize to terminal_is_ours.
6144
6145 2015-07-29  Yao Qi  <yao.qi@linaro.org>
6146
6147         PR record/18691
6148         * dcache.c (dcache_read_memory_partial): Call
6149         raw_memory_xfer_partial.
6150         * target.c (raw_memory_xfer_partial): Make it non-static.
6151         * target.h (raw_memory_xfer_partial): Declare.
6152
6153 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
6154
6155         * c-valprint.c (c_val_print_array): Consider addressable memory
6156         unit size.
6157         (c_val_print_ptr): Likewise.
6158         (c_val_print_int): Likewise.
6159         * findvar.c (read_frame_register_value): Likewise.
6160         * valarith.c (find_size_for_pointer_math): Likewise.
6161         (value_ptrdiff): Likewise.
6162         (value_subscripted_rvalue): Likewise.
6163         * valops.c (read_value_memory): Likewise (and rename variables).
6164         (value_assign): Likewise.
6165         (value_repeat): Likewise.
6166         (value_array): Likewise.
6167         (value_slice): Likewise.
6168         * valprint.c (generic_val_print_ptr): Likewise.
6169         (generic_val_print_enum): Likewise.
6170         (generic_val_print_bool): Likewise.
6171         (generic_val_print_int): Likewise.
6172         (generic_val_print_char): Likewise.
6173         (generic_val_print_float): Likewise.
6174         (generic_val_print_decfloat): Likewise.
6175         (generic_val_print_complex): Likewise.
6176         (val_print_scalar_formatted): Likewise.
6177         (val_print_array_elements): Likewise.
6178         * value.c (set_value_parent): Likewise.
6179         (value_contents_copy_raw): Likewise.
6180         (set_internalvar_component): Likewise.
6181         (value_primitive_field): Likewise.
6182         (value_fetch_lazy): Likewise.
6183         * value.h (read_value_memory): Update comment.
6184
6185 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
6186
6187         * value.c (get_value_arch): New function.
6188         * value.h (get_value_arch): New declaration.
6189
6190 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
6191
6192         * value.c (struct value): Update comments.
6193
6194 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
6195
6196         * gdbtypes.c (type_length_units): New function.
6197         * gdbtypes.h (type_length_units): New declaration.
6198         (struct type) <length>: Update comment.
6199
6200 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6201
6202         * valprint.c (generic_val_print): Factor out complex
6203         printing code to ...
6204         (generic_val_print_complex): ... this new function.
6205
6206 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6207
6208         * valprint.c (generic_val_print): Factor out decfloat
6209         printing code to ...
6210         (generic_val_print_decfloat): ... this new function.
6211
6212 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6213
6214         * valprint.c (generic_val_print): Factor out float
6215         printing code to ...
6216         (generic_val_print_float): ... this new function.
6217
6218 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6219
6220         * valprint.c (generic_val_print): Factor out char
6221         printing code to ...
6222         (generic_val_print_char): ... this new function.
6223
6224 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6225
6226         * valprint.c (generic_val_print): Factor out integer
6227         printing code to ...
6228         (generic_val_print_int): ... this new function.
6229
6230 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6231
6232         * valprint.c (generic_val_print): Factor out bool
6233         printing code to ...
6234         (generic_val_print_bool): ... this new function.
6235
6236 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6237
6238         * valprint.c (generic_val_print): Factor out function/method
6239         printing code to ...
6240         (generic_val_print_func): ... this new function.
6241
6242 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6243
6244         * valprint.c (generic_val_print): Factor out flags
6245         printing code to ...
6246         (generic_val_print_flags): ... this new function.
6247
6248 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6249
6250         * valprint.c (generic_val_print): Factor out enum
6251         printing code to ...
6252         (generic_val_print_enum): ... this new function.
6253
6254 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6255
6256         * valprint.c (generic_val_print): Factor out reference
6257         printing code to ...
6258         (generic_val_print_ref): ... this new function.
6259
6260 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6261
6262         * valprint.c (generic_val_print): Factor out memberptr
6263         printing code to ...
6264         (generic_val_print_memberptr): ... this new function.
6265
6266 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6267
6268         * valprint.c (generic_val_print): Factor out pointer
6269         printing code to ...
6270         (generic_val_print_ptr): ... this new function.
6271
6272 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6273
6274         * valprint.c (generic_val_print): Factor out array
6275         printing code to ...
6276         (generic_val_print_array): ... this new function.
6277
6278 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6279
6280         * valprint.c (generic_val_print): Factor out
6281         print_unpacked_pointer code to ...
6282         (print_unpacked_pointer): ... this new function.
6283
6284 2015-07-27  Patrick Palka  <patrick@parcs.ath.cx>
6285
6286         * event-top.c (handle_sigterm): Don't inspect
6287         target_can_async_p.  Always set the quit flag and always mark
6288         the async signal handler.
6289
6290 2015-07-27  Yao Qi  <yao.qi@linaro.org>
6291
6292         * Makefile.in (REMOTE_EXAMPLES): Remove it.
6293
6294 2015-07-25  Kevin Buettner  <kevinb@redhat.com>
6295
6296         * remote.c (read_ptid): Return null_ptid when no thread id
6297         is found.
6298         (remote_current_thread): Add log warning for malformed
6299         qC reply.
6300         (remote_start_remote): Add log warning when current thread
6301         not found.
6302
6303 2015-07-24  Pedro Alves  <palves@redhat.com>
6304
6305         * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
6306         (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
6307         forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
6308
6309 2015-07-24  Pedro Alves  <palves@redhat.com>
6310
6311         PR gdb/18717
6312         * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
6313         is resumed, and extend the debug log.
6314
6315 2015-07-24  Pedro Alves  <palves@redhat.com>
6316
6317         * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
6318
6319 2015-07-24  Pedro Alves  <palves@redhat.com>
6320
6321         * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
6322         sys/ptrace.h.
6323         * alpha-linux-nat.c: Likewise.
6324         * amd64-linux-nat.c: Likewise.
6325         * arm-linux-nat.c: Likewise.
6326         * hppa-linux-nat.c: Likewise.
6327         * i386-linux-nat.c: Likewise.
6328         * ia64-linux-nat.c: Likewise.
6329         * linux-fork.c: Likewise.
6330         * linux-nat.c: Likewise.
6331         * m32r-linux-nat.c: Likewise.
6332         * m68klinux-nat.c: Likewise.
6333         * mips-linux-nat.c: Likewise.
6334         * nat/linux-btrace.c: Likewise.
6335         * nat/linux-ptrace.c: Likewise.
6336         * nat/linux-ptrace.h
6337         * nat/mips-linux-watch.c: Likewise.
6338         * nat/x86-linux-dregs.c: Likewise.
6339         * ppc-linux-nat.c: Likewise.
6340         * s390-linux-nat.c: Likewise.
6341         * spu-linux-nat.c: Likewise.
6342         * tilegx-linux-nat.c: Likewise.
6343         * x86-linux-nat.c: Likewise.
6344         * xtensa-linux-nat.c: Likewise.
6345
6346 2015-07-24  Pedro Alves  <palves@redhat.com>
6347
6348         * ptrace.m4 (ptrace tests): Test in C++ mode.  Try with 'enum
6349         __ptrace_request as first parameter type instead of int.
6350         (PTRACE_TYPE_ARG1): Define.
6351         * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
6352         that casts first argument to PTRACE_TYPE_ARG1.
6353         * config.in: Regenerate.
6354         * configure: Regenerate.
6355
6356 2015-07-24  Pedro Alves  <palves@redhat.com>
6357
6358         * gdb_ptrace.h: Move ...
6359         * nat/gdb_ptrace.h: ... here.
6360         * inf-ptrace.c: Adjust.
6361
6362 2015-07-24  Pedro Alves  <palves@redhat.com>
6363
6364         * acinclude.m4: Include ptrace.m4.
6365         * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
6366         * ptrace.m4: ... to this new file.
6367
6368 2015-07-23  Doug Evans  <dje@google.com>
6369
6370         * dwarf2read.c (dwarf2_per_cu_data): Add comment.
6371         (load_cu): Handle dummy CUs.
6372         (dw2_do_instantiate_symtab, process_queuef): Ditto.
6373         (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
6374
6375 2015-07-23  Ciro Santilli  <ciro.santilli@gmail.com>  (tiny patch)
6376
6377         * py-linetable.c (ltpy_get_all_source_lines): Adjust function
6378         documentation to say that it returns a list rather than
6379         a FrozenSet.
6380         (linetable_object_methods): Update the docstring of the
6381         "source_line" entry.
6382
6383 2015-07-23  Pierre-Marie de Rodat  <derodat@adacore.com>
6384
6385         * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
6386         type to the recursive call instead of the original (maybe
6387         TYPE_CODE_TYPEDEF) type.
6388
6389 2015-07-23  Yao Qi  <yao.qi@linaro.org>
6390
6391         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
6392         TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
6393         If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
6394
6395 2015-07-21  Yao Qi  <yao.qi@linaro.org>
6396
6397         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
6398         Move it to nat/aarch64-linux-hw-point.c.
6399         (aarch64_linux_child_post_startup_inferior): Update.
6400         * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
6401         New function.
6402         * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
6403         Declare it.
6404
6405 2015-07-21  Markus Metzger  <markus.t.metzger@intel.com>
6406
6407         * common/btrace-common.c (btrace_data_append): Change case label.
6408
6409 2015-07-20  Yao Qi  <yao.qi@linaro.org>
6410
6411         * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
6412         Re-indent the code.
6413         * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
6414         "unsigned long long".
6415
6416 2015-07-18  Kevin Buettner  <kevinb@redhat.com>
6417
6418         * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
6419         to be set for SEC_ALLOC sections too.
6420
6421 2015-07-17  Yao Qi  <yao.qi@linaro.org>
6422
6423         * Makefile.in (HFILES_NO_SRCDIR): Add
6424         nat/aarch64-linux-hw-point.h.
6425         (aarch64-linux-hw-point.o): New rule.
6426         * nat/aarch64-linux-hw-point.h: New file.
6427         * nat/aarch64-linux-hw-point.c: New file.
6428         * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
6429         (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
6430         (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
6431         (AARCH64_HWP_ALIGNMENT): Likewise.
6432         (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
6433         (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
6434         (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
6435         (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
6436         (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
6437         (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
6438         (struct aarch64_debug_reg_state): Likewise.
6439         (struct arch_lwp_info): Likewise.
6440         (aarch64_linux_set_debug_regs): Likewise.
6441         (aarch64_notify_debug_reg_change): Remove static.
6442         (aarch64_align_watchpoint): Likewise.
6443         (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
6444         (aarch64_watchpoint_length): Likewise.
6445         (aarch64_point_encode_ctrl_reg): Likewise
6446         (aarch64_point_is_aligned): Likewise.
6447         (aarch64_dr_state_insert_one_point): Likewise.
6448         (aarch64_dr_state_remove_one_point): Likewise.
6449         (aarch64_handle_breakpoint): Likewise.
6450         (aarch64_handle_aligned_watchpoint): Likewise.
6451         (aarch64_handle_unaligned_watchpoint): Likewise.
6452         (aarch64_handle_watchpoint): Likewise.
6453         * config/aarch64/linux.mh (NAT_FILE): Add
6454         aarch64-linux-hw-point.o.
6455
6456 2015-07-17  Yao Qi  <yao.qi@linaro.org>
6457
6458         * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
6459         state and don't call aarch64_get_debug_reg_state.  All callers
6460         update.
6461         (aarch64_linux_insert_hw_breakpoint): Call
6462         aarch64_get_debug_reg_state earlier.
6463         (aarch64_linux_remove_hw_breakpoint): Likewise.
6464         (aarch64_handle_aligned_watchpoint): Add argument state and
6465         don't call aarch64_get_debug_reg_state.  All callers update.
6466         (aarch64_handle_unaligned_watchpoint): Likewise.
6467         (aarch64_handle_watchpoint): Add argument state.
6468         (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
6469         earlier.
6470         (aarch64_linux_remove_watchpoint): Likewise.
6471
6472 2015-07-17  Yao Qi  <yao.qi@linaro.org>
6473
6474         * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
6475         debug_printf.
6476         (aarch64_handle_unaligned_watchpoint): Likewise.
6477
6478 2015-07-17  Yao Qi  <yao.qi@linaro.org>
6479
6480         * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
6481         argument type's type to 'enum target_hw_bp_type'.
6482         (aarch64_dr_state_remove_one_point): Likewise.
6483         (aarch64_handle_breakpoint): Likewise.
6484         (aarch64_linux_insert_hw_breakpoint): Likewise.
6485         (aarch64_linux_remove_hw_breakpoint): Likewise.
6486         (aarch64_handle_aligned_watchpoint): Likewise.
6487
6488 2015-07-17  Yao Qi  <yao.qi@linaro.org>
6489
6490         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
6491         ptid_get_pid instead of get_thread_id.
6492
6493 2015-07-17  Yao Qi  <yao.qi@linaro.org>
6494
6495         * remote.c (get_current_thread): Initialise ptid to null_ptid.
6496         (add_current_inferior_and_thread): Don't initialise ptid.
6497
6498 2015-07-16  Pierre Langlois  <pierre.langlois@arm.com>
6499
6500         * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
6501         unavailable if invalid.
6502
6503 2015-07-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
6504
6505         Revert the previous 6 commits:
6506         Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6507         Move gdb_regex* to common/
6508         Prepare linux_find_memory_regions_full & co. for move
6509         Move linux_find_memory_regions_full & co.
6510         gdbserver build-id attribute generator
6511         Validate symbol file using build-id
6512
6513 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
6514             Jan Kratochvil  <jan.kratochvil@redhat.com>
6515
6516         Validate symbol file using build-id.
6517         * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
6518         and 'show validate-build-id'.  Add build-id attribute.
6519         * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
6520         * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
6521         * solib-frv.c (_initialize_frv_solib): Ditto.
6522         * solib-spu.c (set_spu_solib_ops): Ditto.
6523         * solib-svr4.c: Include rsp-low.h.
6524         (NOTE_GNU_BUILD_ID_NAME): New define.
6525         (svr4_validate): New function.
6526         (svr4_copy_library_list): Duplicate field build_id.
6527         (library_list_start_library): Parse 'build-id' attribute.
6528         (svr4_library_attributes): Add 'build-id' attribute.
6529         (_initialize_svr4_solib): Assign validate value.
6530         * solib-target.c (solib.h): Include.
6531         (_initialize_solib_target): Assign validate value.
6532         * solib.c (validate_build_id, show_validate_build_id): New.
6533         (solib_map_sections): Use ops->validate.
6534         (clear_so): Free build_id.
6535         (default_solib_validate): New function.
6536         (_initialize_solib): Add "validate-build-id".
6537         * solib.h (default_solib_validate): New declaration.
6538         * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
6539         (target_so_ops): New field 'validate'.
6540
6541 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
6542             Jan Kratochvil  <jan.kratochvil@redhat.com>
6543
6544         gdbserver build-id attribute generator.
6545         * features/library-list-svr4.dtd (library-list-svr4): New
6546         'build-id' attribute.
6547
6548 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
6549             Jan Kratochvil  <jan.kratochvil@redhat.com>
6550
6551         Move linux_find_memory_regions_full & co.
6552         * linux-tdep.c (nat/linux-maps.h): Include.
6553         (gdb_regex.h): Remove the include.
6554         (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
6555         (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
6556         (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
6557         (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
6558         * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
6559         and target/target.h.
6560         (struct smaps_vmflags, read_mapping, decode_vmflags)
6561         (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
6562         (linux_find_memory_regions_full): Move from linux-tdep.c.
6563         * nat/linux-maps.h (read_mapping): New declaration.
6564         (linux_find_memory_region_ftype, enum filterflags): Moved from
6565         linux-tdep.c.
6566         (linux_find_memory_regions_full): New declaration.
6567         * target.c (target/target-utils.h): Include.
6568         (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
6569         (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
6570         definitions to target/target-utils.c.
6571         * target.h (target_fileio_read_stralloc): Move it to target/target.h.
6572         * target/target-utils.c (read_alloc, read_stralloc): Move definitions
6573         from target.c.
6574         * target/target-utils.h (read_alloc_pread_ftype): New typedef.
6575         (read_alloc): New declaration.
6576         (read_stralloc_func_ftype): New typedef.
6577         (read_stralloc): New declaration.
6578         * target/target.h (target_fileio_read_stralloc): Move it from target.h.
6579
6580 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
6581             Jan Kratochvil  <jan.kratochvil@redhat.com>
6582
6583         Prepare linux_find_memory_regions_full & co. for move.
6584         * linux-tdep.c (linux_find_memory_region_ftype): Comment.
6585         (linux_find_memory_regions_full): Change signature and prepare
6586         for moving to linux-maps.
6587         (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
6588         (linux_find_memory_regions_thunk): New.
6589         (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
6590         (linux_find_memory_regions_gdb): New.
6591         (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
6592         (linux_make_mappings_corefile_notes): Use
6593         linux_find_memory_regions_gdb.
6594         * target.c (read_alloc_pread_ftype): New typedef.
6595         (target_fileio_read_alloc_1_pread): New function.
6596         (read_alloc): Refactor from target_fileio_read_alloc_1.
6597         (read_stralloc_func_ftype): New typedef.
6598         (target_fileio_read_alloc_1): New implementation. Use read_alloc.
6599         (read_stralloc): Refactored from target_fileio_read_stralloc.
6600         (target_fileio_read_stralloc): New implementation, use read_stralloc.
6601
6602 2015-07-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
6603
6604         * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
6605         common/gdb_regex.h.
6606         (COMMON_OBS): Add gdb_regex.o.
6607         (gdb_regex.o): New.
6608         * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
6609         --without-included-regex and USE_INCLUDED_REGEX.
6610         * common/gdb_regex.c: New file from utils.c functions.
6611         * common/gdb_regex.h: Move it here from gdb_regex.h, update include
6612         file wrapping define name.
6613         * configure: Rebuilt.
6614         * configure.ac (gdb_use_included_regex, --without-included-regex)
6615         (USE_INCLUDED_REGEX): Move them to common/common.m4.
6616         * gdb_regex.h: Move it to common/gdb_regex.h.
6617         * utils.c: Remove include gdb_regex.h.
6618         (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
6619         (compile_rx_or_error): Move them to common/gdb_regex.c.
6620
6621 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
6622             Jan Kratochvil  <jan.kratochvil@redhat.com>
6623
6624         Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6625         * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
6626         common/target-utils.h.
6627         (COMMON_OBS): Add target-utils.o.
6628         (linux-maps.o, target-utils.o): New.
6629         * target/target-utils.c: New file.
6630         * target/target-utils.h: New file.
6631         * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
6632         * config/i386/linux64.mh (NATDEPFILES): Ditto.
6633         * nat/linux-maps.c: New file.
6634         * nat/linux-maps.h: New file.
6635
6636 2015-07-15  Markus Metzger  <markus.t.metzger@intel.com>
6637             Pedro Alves <palves@redhat.com>
6638
6639         * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
6640         (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
6641         (perf_event_read_bts): Change the type of SIZE and READ.
6642         (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
6643         and DATA_OFFSET.  Move DATA_SIZE declaration.  Restrict the buffer size
6644         to UINT_MAX.  Check for overflows when using DATA_HEAD from the perf
6645         mmap page.
6646         (linux_enable_pt): Change the type of PAGES and SIZE.  Restrict the
6647         buffer size to UINT_MAX.
6648         (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
6649         DATA_TAIL.
6650         * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
6651         <last_head>: Change type.
6652         * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
6653         * common/btrace-common.c (btrace_data_append): Change the type of
6654         SIZE.
6655         * btrace.c (parse_xml_raw): Change the type of SIZE.  Change oddness
6656         check.
6657
6658 2015-07-14  Simon Marchi  <simon.marchi@ericsson.com>
6659
6660         * gdbtypes.h (CHECK_TYPEDEF): Remove.
6661         * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
6662         with check_typedef.
6663         * ada-lang.c (decode_constrained_packed_array_type): Likewise.
6664         (ada_array_length): Likewise.
6665         (find_parallel_type_by_descriptive_type): Likewise.
6666         (ada_check_typedef): Likewise.
6667         * arm-tdep.c (arm_return_in_memory): Likewise.
6668         * ax-gdb.c (gen_trace_static_fields): Likewise.
6669         (gen_struct_ref_recursive): Likewise.
6670         * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6671         (variable: block COLONCOLON name): Likewise.
6672         (qualified_name: TYPENAME COLONCOLON name): Likewise.
6673         * c-lang.c (classify_type): Likewise.
6674         * c-typeprint.c (c_print_type): Likewise.
6675         (c_print_typedef): Likewise.
6676         (c_type_print_base): Likewise.
6677         * c-valprint.c (c_val_print): Likewise.
6678         * compile/compile-c-types.c (convert_type): Likewise.
6679         * compile/compile-object-load.c (get_out_value_type): Likewise.
6680         * completer.c (add_struct_fields): Likewise.
6681         (expression_completer): Likewise.
6682         * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
6683         (cp_lookup_nested_symbol_1): Likewise.
6684         (cp_lookup_nested_symbol): Likewise.
6685         * cp-valprint.c (cp_print_value_fields): Likewise.
6686         (cp_print_static_field): Likewise.
6687         * d-valprint.c (d_val_print): Likewise.
6688         * eval.c (evaluate_subexp_standard): Likewise.
6689         (evaluate_subexp_for_sizeof): Likewise.
6690         * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6691         * f-typeprint.c (f_type_print_base): Likewise.
6692         * f-valprint.c (f_val_print): Likewise.
6693         * gdbtypes.c (get_discrete_bounds): Likewise.
6694         (create_array_type_with_stride): Likewise.
6695         (type_name_no_tag_or_error): Likewise.
6696         (lookup_struct_elt_type): Likewise.
6697         (get_unsigned_type_max): Likewise.
6698         (internal_type_vptr_fieldno): Likewise.
6699         (set_type_vptr_fieldno): Likewise.
6700         (internal_type_vptr_basetype): Likewise.
6701         (set_type_vptr_basetype): Likewise.
6702         (get_vptr_fieldno): Likewise.
6703         (is_integral_type): Likewise.
6704         (is_scalar_type): Likewise.
6705         (is_scalar_type_recursive): Likewise.
6706         (distance_to_ancestor): Likewise.
6707         (is_unique_ancestor_worker): Likewise.
6708         (check_types_equal): Likewise.
6709         * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
6710
6711 2015-07-14  Iain Buclaw  <ibuclaw@gdcproject.org>
6712
6713         * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
6714         also test for language_d.
6715         (dwarf2_compute_name): Likewise.
6716         (read_func_scope): Likewise.
6717         (read_structure_type): Likewise.
6718         (new_symbol_full): Likewise.
6719         (determine_prefix): Likewise.
6720         (read_import_statement): Use dot as the separator for language_d.
6721         (typename_concat): Likewise, but don't prefix the D main function.
6722
6723 2015-07-14  Peter Bergner  <bergner@vnet.ibm.com>
6724
6725         * nat/linux-namespaces.c (setns): Rename from this ...
6726         (do_setns): ... to this.  Support calling setns if it exists.
6727         (mnsh_handle_setns): Call do_setns.
6728
6729 2015-07-13  Yao Qi  <yao.qi@linaro.org>
6730
6731         * exec.c (exec_file_attach): Add period at the end of error
6732         message.
6733
6734 2015-07-13  Andrew Burgess  <andrew.burgess@embecosm.com>
6735
6736         * tui/tui-win.c (window_name_completer): New function.
6737         (focus_completer): Call window_name_completer.  All old content
6738         moved into window_name_completer.
6739         (winheight_completer): New function.
6740         (_initialize_tui_win): Rename variable.  Add completer to
6741         winheight command.  Update doc string on winheight.
6742
6743 2015-07-12  Sandra Loosemore  <sandra@codesourcery.com>
6744
6745         * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
6746         all nios2 mach variants.
6747
6748 2015-07-10  Kevin Buettner  <kevinb@redhat.com>
6749
6750         * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
6751         of target_read_memory.
6752
6753 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
6754
6755         * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
6756         string copy.
6757         (parse_scrolling_args): Likewise.
6758
6759 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
6760
6761         * tui/tui-win.c (focus_completer): Don't duplicate the tui window
6762         names in this function.
6763
6764 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
6765
6766         * tui/tui-data.h (SRC_NAME): Convert to lower case.
6767         (CMD_NAME): Likewise.
6768         (DATA_NAME): Likewise.
6769         (DISASSEM_NAME): Likewise.
6770         * tui/tui-win.c (tui_set_focus): Window names are now lower case.
6771         (tui_set_win_height): Likewise.
6772         (parse_scrolling_args): Likewise.
6773
6774 2015-07-10  Markus Metzger  <markus.t.metzger@intel.com>
6775
6776         * record-btrace.c (record_btrace_goto_begin)
6777         (record_btrace_goto_end, record_btrace_goto): Move call to
6778         print_stack_frame ...
6779         (record_btrace_set_replay): ... here.  Set stop_pc.
6780         * record-full.c (record_full_goto_entry): Set stop_pc.
6781
6782 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6783
6784         * NEWS: Mention support for tracepoints on aarch64-linux.
6785
6786 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6787
6788         * linux-aarch64-low.c (aarch64_supports_tracepoints): New
6789         function.  Return 1.
6790         (the_low_target): Install it.
6791
6792 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6793
6794         * gdb.trace/backtrace.exp: Set registers for aarch64 target.
6795         * gdb.trace/collection.exp: Likewise.
6796         * gdb.trace/mi-trace-frame-collected.exp: Likewise.
6797         * gdb.trace/mi-trace-unavailable.exp: Likewise.
6798         * gdb.trace/report.exp: Likewise.
6799         * gdb.trace/trace-break.exp: Likewise.
6800         * gdb.trace/unavailable.exp: Likewise.
6801         * gdb.trace/while-dyn.exp: Likewise.
6802
6803 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6804
6805         * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
6806         (aarch64_gen_return_address): New function.
6807         (aarch64_gdbarch_init): Hook it.
6808
6809 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6810
6811         * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
6812         swallow NOT_AVAILABLE_ERROR.
6813         (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
6814         available_p is not set.
6815         (aarch64_stub_frame_unwind_stop_reason): New function.
6816         (aarch64_stub_unwind): Install it.
6817
6818 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6819
6820         * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
6821         field.
6822         (aarch64_make_prologue_cache_1): New function, factored out from
6823         aarch64_make_prologue_cache.  Do not allocate cache.  Set
6824         available_p.
6825         (aarch64_make_prologue_cache): Reimplement wrapping
6826         aarch64_make_prologue_cache_1, and swallowing
6827         NOT_AVAILABLE_ERROR.
6828         (aarch64_prologue_frame_unwind_stop_reason): New function.
6829         Return UNWIND_UNAVAILABLE if available_p is not set.
6830         (aarch64_prologue_unwind): Install it.
6831         (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
6832         checks into aarch64_prologue_frame_unwind_stop_reason.  Call
6833         frame_id_build_unavailable_stack if available_p is not set.
6834
6835 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6836
6837         * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
6838         fields.
6839         (aarch64_scan_prologue): Set prev_pc.
6840         (aarch64_make_prologue_cache): Set func.
6841         (aarch64_make_stub_cache): Set prev_pc.
6842         (aarch64_prologue_this_id): Remove local variables id, pc and
6843         func.  Read prev_pc and func from cache.
6844         (aarch64_stub_this_id): Read prev_pc from cache.
6845
6846 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6847
6848         * aarch64-tdep.c (aarch64_make_stub_cache): Update comment.  New
6849         argument this_cache.  Remove unused local variables reg and
6850         unwound_fp.  Return early if this_cache is already set.  Set
6851         this_cache.
6852         (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
6853
6854 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6855
6856         * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
6857         New argument this_cache.  Return early if this_cache is already
6858         set.  Set this_cache.
6859         (aarch64_prologue_this_id): Update call to
6860         aarch64_make_prologue_cache.
6861         (aarch64_prologue_prev_register): Likewise.
6862         (aarch64_normal_frame_base): Likewise.
6863
6864 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6865
6866         * c-valprint.c (c_val_print): Factor out memberptr printing code
6867         from c_val_print to ...
6868         (c_val_print_memberptr): ... this new function.
6869
6870 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6871
6872         * c-valprint.c (c_val_print): Factor out int printing code to ...
6873         (c_val_print_int): ... this new function.
6874
6875 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6876
6877         * c-valprint.c (c_val_print): Factor out struct and union
6878         printing code to ...
6879         (c_val_print_struct): ... this new function ...
6880         (c_val_print_union): ... and this new function.
6881
6882 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6883
6884         * c-valprint.c (c_val_print): Factor out pointer printing code
6885         to ...
6886         (c_val_print_ptr): ... this new function.
6887
6888 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6889
6890         * c-valprint.c (c_valprint): Factor our array printing code from
6891         c_val_print to ...
6892         (c_val_print_array): ... this new function.
6893
6894 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6895
6896         * c-valprint.c (c_val_print): Factor out pointer printing code
6897         to ...
6898         (print_unpacked_pointer): ... this new function.
6899
6900 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6901
6902         * c-valprint.c (c_val_print): Remove an assignment to i and move
6903         its declaration.
6904
6905 2015-07-09  Yao Qi  <yao.qi@linaro.org>
6906
6907         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
6908         argument ptid.  Update comments.  Caller update.
6909
6910 2015-07-09  Markus Metzger  <markus.t.metzger@intel.com>
6911
6912         * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
6913         mnt packets.
6914
6915 2015-07-09  Markus Metzger  <markus.t.metzger@intel.com>
6916
6917         * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
6918
6919 2015-07-08  Simon Marchi  <simon.marchi@ericsson.com>
6920
6921         * progspace.c (delete_program_space): Add missing spaces.
6922
6923 2015-07-08  Simon Marchi  <simon.marchi@ericsson.com>
6924
6925         * inferior.c (delete_inferior_1): Rename to ...
6926         (delete_inferior): ..., remove 'silent' parameter, delete
6927         program space when unused and remove call to prune_program_spaces.
6928         Remove the old, unused, delete_inferior.
6929         (delete_inferior_silent): Remove.
6930         (prune_inferiors): Change call from delete_inferior_1 to
6931         delete_inferior and remove 'silent' parameter. Remove call to
6932         prune_program_spaces.
6933         (remove_inferior_command): Idem.
6934         * inferior.h (delete_inferior_1): Rename to...
6935         (delete_inferior): ..., remove 'silent' parameter and remove the
6936         original delete_inferior.
6937         (delete_inferior_silent): Remove.
6938         * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
6939         delete_inferior_1 to delete_inferior and remove 'silent'
6940         parameter.
6941         * progspace.c (prune_program_spaces): Remove.
6942         (pspace_empty_p): Rename to...
6943         (program_space_empty_p): ... and make non-static.
6944         (delete_program_space): New.
6945         * progspace.h (prune_program_spaces): Remove declaration.
6946         (program_space_empty_p): New declaration.
6947         (delete_program_space): New declaration.
6948         * monitor.c (monitor_close): Replace call to
6949         delete_thread_silent and delete_inferior_silent with
6950         discard_all_inferiors.
6951
6952 2015-07-08  Patrick Palka  <patrick@parcs.ath.cx>
6953
6954         * defs.h (deprecated_register_changed_hook): Remove prototype.
6955         * interps.c (clear_iterpreter_hooks): Remove reference to
6956         deprecated_register_changed_hook.
6957         * top.c (deprecated_register_changed_hook): Remove prototype.
6958         * valops.c (value_assign): Remove reference to
6959         deprecated_register_changed_hook.
6960         * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
6961         Add comment documenting the function.
6962         (tui_register_changed_observer): Define.
6963         (tui_install_hooks): Remove reference to
6964         deprecated_register_changed_hook.  Set
6965         tui_register_changed_observer.
6966         (tui_remove_hooks): Remove reference to
6967         deprecated_register_changed_hook.  Unset
6968         tui_register_changed_observer.
6969
6970 2015-07-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
6971
6972         PR compile/18484
6973         * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
6974
6975 2015-07-08  Robert O'Callahan  <robert@ocallahan.org>
6976
6977         PR exp/18617
6978         * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
6979
6980 2015-07-08  Markus Metzger  <markus.t.metzger@intel.com>
6981
6982         * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
6983
6984 2015-07-08  Markus Metzger  <markus.t.metzger@intel.com>
6985
6986         * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
6987         Use safe_strerror() instead of strerror().
6988
6989 2015-07-07  Yao Qi  <yao.qi@linaro.org>
6990
6991         * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
6992         * features/arm-with-m-fpa-layout.c: Regenerated.
6993         * features/arm-with-m-vfp-d16.xml: Likewise.
6994         * features/arm-with-m-vfp-d16.c: Regenerated.
6995         * features/arm-with-m.xml: Likewise.
6996         * features/arm-with-m.c: Regenerated.
6997         * features/arm-with-neon.xml: Likewise.
6998         * features/arm-with-neon.c: Regenerated.
6999         * features/arm-with-vfpv2.xml: Likewise.
7000         * features/arm-with-vfpv2.c: Regenerated.
7001         * features/arm-with-vfpv3.xml: Likewise.
7002         * features/arm-with-vfpv3.c: Regenerated.
7003
7004 2015-07-07  Yao Qi  <yao.qi@linaro.org>
7005
7006         * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
7007         arm-linux-nat.c.
7008         * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
7009         elf/external.h.
7010         (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
7011         if target is 32-bit.
7012         (store_gregs_to_thread): Call aarch32_gp_regcache_collect
7013         if target is 32-bit.
7014         (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
7015         if target is 32-bit.
7016         (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
7017         if target is 32-bit.
7018         (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
7019         (aarch64_linux_read_description): Return the right target
7020         description.
7021         * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
7022         * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
7023         * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
7024         arm-linux-tdep.o.
7025
7026 2015-07-07  Yao Qi  <yao.qi@linaro.org>
7027
7028         * aarch32-linux-nat.c: New file.
7029         * aarch32-linux-nat.h: New file.
7030         * arm-linux-nat.c: Include aarch32-linux-nat.h.
7031         (fetch_regs): Move code to aarch32-linux-nat.c.  Call
7032         aarch32_gp_regcache_supply.
7033         (store_regs): Move code to aarch32-linux-nat.c.  Call
7034         aarch32_gp_regcache_collect.
7035         (fetch_vfp_regs): Move code to aarch32-linux-nat.c.  Call
7036         aarch32_vfp_regcache_supply.
7037         (store_vfp_regs): Move code to aarch32-linux-nat.c.  Call
7038         aarch32_vfp_regcache_collect.
7039         * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
7040
7041 2015-07-07  Yao Qi  <yao.qi@linaro.org>
7042
7043         * arm-linux-nat.c (store_fpregister): Remove.
7044         (store_register): Likewise.
7045         (fetch_fpregister): Likewise.
7046         (fetch_register): Likewise.
7047         (arm_linux_store_inferior_registers): Call store_regs and
7048         store_fpregs instead.
7049         (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
7050         fetch_regs instead.
7051
7052 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
7053
7054         * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
7055         and focus commands.
7056
7057 2015-07-06  Joel Brobecker  <brobecker@adacore.com>
7058
7059         * NEWS: Create a new section for the next release branch.
7060         Rename the section of the current branch, now that it has
7061         been cut.
7062
7063 2015-07-06  Joel Brobecker  <brobecker@adacore.com>
7064
7065         GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
7066         * version.in: Bump version to 7.10.50.DATE-cvs.
7067
7068 2015-07-06  Luis Machado  <lgustavo@codesourcery.com>
7069
7070         * breakpoint.c (remove_breakpoint_1): Don't handle permanent
7071         breakpoints in a special way.
7072         (remove_breakpoint): Likewise.
7073         (mark_breakpoints_out): Likewise.
7074
7075 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
7076
7077         * doc/gdb.texinfo (TUI): Add comma after @xref.
7078
7079 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
7080
7081         * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
7082         instead of casting the structure type.
7083
7084 2015-07-06  Simon Marchi  <simon.marchi@ericsson.com>
7085
7086         * valops.c (search_struct_field): Remove OFFSET parameter.
7087         (value_cast_structs): Adjust calls to search_struct_field.
7088         (value_struct_elt): Same.
7089         (find_overload_match): Same.
7090
7091 2015-07-06  Simon Marchi  <simon.marchi@ericsson.com>
7092
7093         * value.c (value_fetch_lazy): Update comment, change return
7094         value to void.
7095         * value.h (value_fetch_lazy): Change return value to void.
7096
7097 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
7098
7099         * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
7100         (tui_win_name): Make parameter and result const.
7101         * tui/tui-data.h (tui_win_name): Make parameter and result const.
7102
7103 2015-07-06  Patrick Palka  <patrick@parcs.ath.cx>
7104
7105         * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
7106         use printf_unfiltered.
7107         (set_mpx_cmd): Add missing trailing space to command string
7108         literal.
7109         (_initialize_i386_tdep): Give the "mpx" prefix command its
7110         correct name.
7111
7112 2015-07-02  Kevin Buettner  <kevinb@redhat.com>
7113
7114         * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
7115         (enum rx_frame_type): New.
7116         (struct rx_prologue): Add new field `frame_type'.
7117         (rx_analyze_prologue): Add `frame_type' parameter. Cache this
7118         parameter in the prologue struct.  Add code for recording
7119         locations of PC and PSW for fast interrupt and exception frames.
7120         (rx_skip_prologue): Adjust call to rx_analyze_prologue.
7121         (rx_analyze_frame_prologue): Add `frame_type' parameter.
7122         (rx_frame_type): New function.
7123         (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
7124         (rx_frame_this_id): Rename parameter `this_prologue_cache' to
7125         `this_cache'.
7126         (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
7127         `this_cache'.  Add cases for RX_FRAME_TYPE_EXCEPTION and
7128         RX_FRAME_TYPE_FAST_INTERRUPT.
7129         (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
7130         (rx_frame_sniffer, rx_exception_sniffer): New functions.
7131         (rx_frame_unwind): Use rx_frame_sniffer instead of
7132         default_frame_sniffer.
7133         (rx_frame_unwind): New unwinder.
7134         (rx_gdbarch_init): Register new unwinder.
7135
7136 2015-07-02  Kevin Buettner  <kevinb@redhat.com>
7137
7138         * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
7139         (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
7140         (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
7141         and RX_FPSW_REGNUM.
7142         (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
7143
7144 2015-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
7145
7146         Fix GCC false warning.
7147         * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
7148
7149 2015-07-02  Yao Qi  <yao.qi@linaro.org>
7150
7151         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
7152         typo in the debugging message.
7153
7154 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
7155
7156         * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
7157         (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
7158         (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
7159         (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
7160         (btrace_maint_clear): New.
7161         (btrace_fetch, btrace_clear): Call btrace_maint_clear.
7162         (pt_print_packet, btrace_maint_decode_pt)
7163         (btrace_maint_update_pt_packets, btrace_maint_update_packets)
7164         (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
7165         (maint_btrace_packet_history_cmd)
7166         (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
7167         (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
7168         (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
7169         (maint_info_btrace_cmd, _initialize_btrace): New.
7170         * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
7171         (btrace_maint_packet_history, btrace_maint_info): New.
7172         (btrace_thread_info) <maint>: New.
7173         * NEWS: Announce it.
7174
7175 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
7176
7177         * btrace.c (btrace_fetch): Append the new trace data.
7178         (btrace_clear): Clear the stored trace data.
7179         * btrace.h (btrace_thread_info) <data>: New.
7180         * common/btrace-common.h (btrace_data_clear)
7181         (btrace_data_append): New.
7182         * common/btrace-common.c (btrace_data_clear)
7183         (btrace_data_append): New.
7184
7185 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
7186
7187         * nat/linux-btrace.c (linux_enable_bts): Check for
7188         PERF_ATTR_SIZE_VER5.
7189         Check for data_offset and data_size fields.  Use them.
7190
7191 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
7192
7193         * NEWS: Announce new commands "record btrace pt" and "record pt".
7194         Announce new options "set|show record btrace pt buffer-size".
7195         * btrace.c: Include "rsp-low.h".
7196         Include "inttypes.h".
7197         (btrace_add_pc): Add forward declaration.
7198         (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
7199         (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
7200         (btrace_compute_ftrace_pt): New.
7201         (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
7202         (check_xml_btrace_version): Update version check.
7203         (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
7204         (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
7205         (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
7206         (btrace_pt_children): New.
7207         (btrace_children): Add support for "pt".
7208         (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
7209         (btrace_conf_children): Add support for "pt".
7210         * btrace.h: Include "intel-pt.h".
7211         (btrace_pt_error): New.
7212         * common/btrace-common.c (btrace_format_string, btrace_data_fini)
7213         (btrace_data_empty): Support BTRACE_FORMAT_PT.
7214         * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
7215         (struct btrace_config_pt): New.
7216         (struct btrace_config)<pt>: New.
7217         (struct btrace_data_pt_config, struct btrace_data_pt): New.
7218         (struct btrace_data)<pt>: New.
7219         * features/btrace-conf.dtd (btrace-conf)<pt>: New.
7220         (pt): New.
7221         * features/btrace.dtd (btrace)<pt>: New.
7222         (pt, pt-config, cpu): New.
7223         * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
7224         (perf_event_pt_event_type, kernel_supports_pt)
7225         (linux_supports_pt): New.
7226         (linux_supports_btrace): Support BTRACE_FORMAT_PT.
7227         (linux_enable_bts): Free tinfo on error.
7228         (linux_enable_pt): New.
7229         (linux_enable_btrace): Support BTRACE_FORMAT_PT.
7230         (linux_disable_pt): New.
7231         (linux_disable_btrace): Support BTRACE_FORMAT_PT.
7232         (linux_fill_btrace_pt_config, linux_read_pt): New.
7233         (linux_read_btrace): Support BTRACE_FORMAT_PT.
7234         * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
7235         (struct btrace_target_info)<pt>: New.
7236         * record-btrace.c (set_record_btrace_pt_cmdlist)
7237         (show_record_btrace_pt_cmdlist): New.
7238         (record_btrace_print_pt_conf): New.
7239         (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
7240         (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
7241         (cmd_record_btrace_pt_start): New.
7242         (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
7243         (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
7244         (_initialize_record_btrace): Add new commands.
7245         * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
7246         (remote_protocol_features): Add "Qbtrace:pt".
7247         Add "Qbtrace-conf:pt:size".
7248         (remote_supports_btrace): Support BTRACE_FORMAT_PT.
7249         (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
7250         (remote_enable_btrace): Support BTRACE_FORMAT_PT.
7251         (_initialize_remote): Add new commands.
7252
7253 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
7254
7255         * configure.ac: check for libipt
7256         * configure: Regenerate.
7257         * config.in: Regenerate.
7258         * Makefile.in (LIBIPT): New.
7259         (CLIBS): Add $LIBIPT.
7260         * NEWS: document new configure options
7261
7262 2015-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
7263
7264         * compile/compile-object-load.c (compile_object_load): Replace debug
7265         message "lookup undefined ELF symbol" by 3 more specific messages.
7266
7267 2015-07-01  Kevin Buettner  <kevinb@redhat.com>
7268
7269         * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
7270         (rl78_register_type): Add case for RL78_PSW_REGNUM.
7271         (rl78_gdbarch_init): Initialize rl78_psw_type.
7272
7273 2015-07-01  Patrick Palka  <patrick@parcs.ath.cx>
7274
7275         * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
7276         Update commentary.  Always refresh the registers when frame
7277         information has changed.
7278         * tui/tui-stack.c (tui_show_frame_info): Update commentary.
7279         Change return type to int.  Return 1 if frame information has
7280         changed, 0 otherwise.
7281         (tui_before_prompt): Update commentary.
7282         * tui/tui-stack.h (tui_show_frame_info): Change return type to
7283         int.
7284
7285 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
7286
7287         PR tui/13378
7288         * frame.c (select_frame): Remove reference to
7289         deprecated_selected_frame_level_changed_hook.
7290         * frame.h (deprecated_selected_frame_level_changed_hook): Remove
7291         declaration.
7292         * stack.c (deprecated_selected_frame_level_changed_hook):
7293         Likewise.
7294         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
7295         Rename to ...
7296         (tui_refresh_frame_and_register_information): ... this.  Bail
7297         out if there is no stack.  Don't update register information
7298         unless registers_too_p is true.
7299         (tui_print_frame_info_listing_hook): Rename to ...
7300         (tui_dummy_print_frame_info_listing_hook): ... this.
7301         (tui_before_prompt): New function.
7302         (tui_normal_stop): New function.
7303         (tui_before_prompt_observer): New observer.
7304         (tui_normal_stop_observer): New observer.
7305         (tui_install_hooks): Set
7306         deprecated_print_frame_info_listing_hook to
7307         tui_dummy_print_frame_info_listing_hook.  Register
7308         tui_before_prompt_observer to call tui_before_prompt and
7309         tui_normal_stop_observer to call tui_normal_stop.  Remove
7310         reference to deprecated_selected_frame_level_changed_hook.
7311         (tui_remove_hooks): Detach and unset tui_before_prompt_observer
7312         and tui_normal_stop_observer.  Remove reference to
7313         deprecated_selected_frame_level_changed_hook.
7314
7315 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
7316
7317         PR tui/13378
7318         * tui/tui-stack.c (tui_set_locator_info): Change prototype to
7319         return an int instead of void.  Return whether the locator
7320         window has changed.
7321         (tui_show_frame_info): If the locator info has not changed, then
7322         bail out early to avoid refreshing the windows.
7323
7324 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
7325
7326         * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
7327         LOCATOR_WIN to tui_alloc_content.
7328
7329 2015-06-30  Yao Qi  <yao.qi@linaro.org>
7330
7331         PR tdep/18605
7332         * arm-tdep.c (arm_get_next_pc_raw): Break for media
7333         instructions.
7334
7335 2015-06-29  Kevin Buettner  <kevinb@redhat.com>
7336
7337         * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
7338         (rx_dwarf_reg_to_regnum): New function.
7339         (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum.  Use dwarf2
7340         unwinding.
7341
7342 2015-06-29  Pedro Alves  <palves@redhat.com>
7343
7344         PR threads/18127
7345         * infcall.c (run_inferior_call): On infcall success, if the thread
7346         was marked stopped before, reset it back to stopped.
7347         * infrun.c (resume): Don't suppress the set_running calls when
7348         doing an infcall.
7349         (normal_stop): Only discard the finish_thread_state cleanup if the
7350         infcall succeeded.
7351
7352 2015-06-29  Pierre Langlois  <pierre.langlois@arm.com>
7353
7354         * MAINTAINERS (Write After Approval): Update my email address.
7355
7356 2015-06-26  Keith Seitz  <keiths@redhat.com>
7357             Doug Evans  <dje@google.com>
7358
7359         PR 16253
7360         * block.c (block_lookup_symbol): For non-function blocks,
7361         continue to search for a symbol with an exact domain match
7362         Otherwise, return any previously found "best domain" symbol.
7363         (block_lookup_symbol_primary): Likewise.
7364
7365 2015-06-26  Patrick Palka  <patrick@parcs.ath.cx>
7366
7367         * NEWS: Mention the new option "history remove-duplicates".
7368         * top.c (history_remove_duplicates): New static variable.
7369         (show_history_remove_duplicates): New static function.
7370         (gdb_add_history): Conditionally remove duplicate history
7371         entries.
7372         (init_main): Add "history remove-duplicates" option.
7373
7374 2015-06-26  Patrick Palka  <patrick@parcs.ath.cx>
7375
7376         * tui/tui-win.c (focus_completer): New static function.
7377         (_initialize_tui_win): Set the completion function of the
7378         "focus" command to focus_completer.
7379
7380 2015-06-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
7381
7382         * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
7383         and language_asm..
7384         * symtab.c (find_function_start_sal): Likewise.
7385
7386 2015-06-25  Gary Benson  <gbenson@redhat.com>
7387
7388         * solib.c (solib_find_1): Set local variable sysroot to NULL if
7389         it is the empty string after trailing slashes have been stripped.
7390
7391 2015-06-25  Gary Benson  <gbenson@redhat.com>
7392
7393         * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
7394         * infrun.c (follow_exec): Likewise.
7395         * remote.c (remote_filesystem_is_local): Likewise.
7396         * solib.c (solib_find_1): Likewise.
7397
7398 2015-06-24  Keith Seitz  <keiths@redhat.com>
7399
7400         * build-id.c (build_id_to_debug_bfd): Add cleanup to free
7401         return value from lrealpath.
7402
7403 2015-06-24  Mike Frysinger  <vapier@gentoo.org>
7404
7405         * remote-sim.c (gdbsim_open): Move sysroot update to the top.
7406
7407 2015-06-24  Mike Frysinger  <vapier@gentoo.org>
7408
7409         * remote-sim.c: Include gdb_bfd.h.
7410         (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
7411         Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
7412
7413 2015-06-24  Yao Qi  <yao.qi@linaro.org>
7414
7415         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
7416         set_gdbarch_get_siginfo_type.
7417         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
7418         * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
7419         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
7420         * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
7421         * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
7422         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
7423         * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
7424         * linux-tdep.c (linux_get_siginfo_type): Change it to static.
7425         (linux_init_abi): Call set_gdbarch_get_siginfo_type.
7426         * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
7427
7428 2015-06-24  Gary Benson  <gbenson@redhat.com>
7429
7430         * common/buffer.c (stdint.h): Do not include.
7431         * common/print-utils.c (stdint.h): Likewise.
7432         * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
7433         * compile/compile-c-types.c (gdb_assert.h): Likewise.
7434         * ft32-tdep.c (gdb_assert.h): Likewise.
7435         * guile/scm-utils.c (stdint.h): Likewise.
7436         * i386-linux-tdep.c (stdint.h): Likewise.
7437         * i386-tdep.c (stdint.h): Likewise.
7438         * nat/linux-btrace.c (stdint.h): Likewise.
7439         * nat/linux-btrace.h (stdint.h): Likewise.
7440         * nat/linux-ptrace.c (stdint.h): Likewise.
7441         * nat/mips-linux-watch.h (stdint.h): Likewise.
7442         * ppc-linux-nat.c (stdint.h): Likewise.
7443         * python/python-internal.h (stdint.h): Likewise.
7444         * stub-termcap.c (stdlib.h): Likewise.
7445         * target/target.h (stdint.h): Likewise.
7446         * xtensa-linux-nat.c (stdint.h): Likewise.
7447
7448 2015-06-23  Patrick Palka  <patrick@parcs.ath.cx>
7449
7450         * top.c (init_history): Look at errno after calling strtol to
7451         properly map large GDBHISTSIZE values to infinity.
7452
7453 2015-06-23  Doug Evans  <dje@google.com>
7454
7455         * inferior.h (struct inferior_suspend_state): Delete, unused.
7456         All references deleted.
7457
7458 2015-06-23  Mike Frysinger  <vapier@gentoo.org>
7459
7460         * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
7461         (microblaze_push_dummy_call): Likewise.
7462         (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
7463         and set_gdbarch_push_dummy_call.
7464
7465 2015-06-23  Yao Qi  <yao.qi@linaro.org>
7466
7467         * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
7468         Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
7469         (amd64_linux_store_inferior_registers): Likewise.
7470         * arm-linux-nat.c (fetch_fpregister): Likewise.
7471         (fetch_fpregs, store_fpregister): Likewise.
7472         (store_fpregister, store_fpregs): Likewise.
7473         (fetch_register, fetch_regs): Likewise.
7474         (store_register, store_regs): Likewise.
7475         (fetch_vfp_regs, store_vfp_regs): Likewise.
7476         (arm_linux_read_description): Check have_ptrace_getregset is
7477         TRIBOOL_UNKNOWN.  Set have_ptrace_getregset to TRIBOOL_TRUE
7478         or TRIBOOL_FALSE.
7479         * i386-linux-nat.c (fetch_xstateregs): Check
7480         have_ptrace_getregset is not TRIBOOL_TRUE.
7481         (store_xstateregs): Likewise.
7482         * linux-nat.c (have_ptrace_getregset): Change its type to
7483         enum tribool.
7484         * linux-nat.h (tribool): New enum.
7485         * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
7486         Check whether have_ptrace_getregset is TRIBOOL_TRUE.
7487
7488 2015-06-19  Doug Evans  <dje@google.com>
7489
7490         * NEWS: Mention Sun's version of stabs is no longer supported.
7491         * elfread.c (free_elfinfo): Delete.  All uses updated.
7492         (elfstab_offset_sections): Delete.  All uses updated.
7493         * gdb-stabs.h (stab_section_info): Delete.  All uses updated.
7494         * psympriv.h (partial_symtab) <section_offsets>: Delete.
7495         All uses updated.
7496         * psymtab.c (start_psymtab_common): Delete arg section_offsets.
7497         All callers updated.
7498
7499 2015-06-18  Simon Marchi  <simon.marchi@ericsson.com>
7500
7501         * common/rsp-low.c (needs_escaping): New.
7502         (remote_escape_output): Add unit_size parameter. Refactor to
7503         support multi-byte addressable units.  Rename parameters.
7504         * common/rsp-low.h (remote_escape_output): Add unit_size
7505         parameter and rename others. Update doc.
7506         * remote.c (align_for_efficient_write): New.
7507         (remote_write_bytes_aux): Add unit_size parameter and use it.
7508         Rename some variables.  Update doc.
7509         (remote_xfer_partial): Get unit size and use it.
7510         (remote_read_bytes_1): Add unit_size parameter and use it.
7511         Rename some variables. Update doc.
7512         (remote_write_bytes): Same.
7513         (remote_xfer_live_readonly_partial): Same.
7514         (remote_read_bytes): Same.
7515         (remote_flash_write): Update call to remote_write_bytes_aux.
7516         (remote_write_qxfer): Update call to remote_escape_output.
7517         (remote_search_memory): Same.
7518         (remote_hostio_pwrite): Same.
7519
7520 2015-06-17  Luis Machado  <lgustavo@codesourcery.com>
7521
7522         * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
7523         locations as inserted.
7524         Update and expand comment about permanent locations.
7525         (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
7526         Move comment to add_location_to_breakpoint.
7527         (update_global_location_list): Don't error out if a permanent
7528         breakpoint is not marked inserted.
7529         Don't error out if a non-permanent breakpoint location is inserted on
7530         top of a permanent breakpoint.
7531
7532 2015-06-17  Luis Machado  <lgustavo@codesourcery.com>
7533
7534         * breakpoint.c (make_breakpoint_permanent): Remove unused
7535         function.
7536         * breakpoint.h (make_breakpoint_permanent): Remove declaration.
7537
7538 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
7539
7540         PR gdb/16999
7541         * NEWS: Mention new GDBHISTSIZE behavior.
7542         * top.c (init_history): For null or out-of-range GDBHISTSIZE,
7543         set history size to unlimited.  Ignore non-numeric GDBHISTSIZE.
7544
7545 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
7546
7547         * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
7548         * top.c (init_history): Read from GDBHISTSIZE instead of
7549         HISTSIZE.
7550         (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
7551
7552 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
7553
7554         * top.c (gdb_safe_append_history): Do not call
7555         history_truncate_file if the history is not stifled.
7556
7557 2015-06-17  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7558
7559         * syscalls/s390-linux.xml: Add syscalls 344 through 354.
7560         * syscalls/s390x-linux.xml: Likewise.
7561
7562 2015-06-16  Michael Eager  <eager@eagercon.com>
7563
7564         * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
7565
7566 2015-06-16  Patrick Palka  <patrick@parcs.ath.cx>
7567
7568         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
7569         target_terminal_ours_for_output() before calling
7570         tui_show_frame_info(), and restore the original terminal
7571         settings afterwards.
7572
7573 2015-06-16  Martin Simmons  <martin@lispworks.com>  (tiny patch)
7574
7575         * arm-linux-nat.c: Include nat/linux-ptrace.h.
7576
7577 2015-06-15  Simon Marchi  <simon.marchi@ericsson.com>
7578
7579         * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
7580         memory unit size.
7581         (mi_cmd_data_write_memory_bytes): Same.
7582
7583 2015-06-15  Simon Marchi  <simon.marchi@ericsson.com>
7584
7585         * corefile.c (write_memory): Update doc.
7586         * gdbcore.h (write_memory): Same.
7587
7588 2015-06-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
7589
7590         * linux-tdep.c (enum filterflags): Make it from anonymous enum.
7591         (dump_mapping_p): Use it for parameter filterflags.
7592         (linux_find_memory_regions_full): Use it for variable filterflags.
7593
7594 2015-06-15  Aleksandar Ristovski  <aristovski@qnx.com
7595             Jan Kratochvil  <jan.kratochvil@redhat.com>
7596
7597         Merge multiple hex conversions.
7598         * monitor.c: Include rsp-low.h.
7599         (fromhex): Remove definition.
7600
7601 2015-06-15  Aleksandar Ristovski  <aristovski@qnx.com
7602             Jan Kratochvil  <jan.kratochvil@redhat.com>
7603
7604         Move utility functions to common/.
7605         * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
7606         Move defs to common/common-utils.c.
7607         * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
7608         (skip_to_space_const): Move decls to common/common-utils.h.
7609         * common/common-defs.h: Move include of common-types.h before
7610         common-utils.h.
7611         * common/common-utils.c: Include host-defs.h and ctype.h.
7612         (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
7613         from utils.c.
7614         (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
7615         cli/cli-utils.c.
7616         * common/common-utils.h (strtoulst): Move decl from utils.h.
7617         (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
7618         Move from cli/cli-utils.h.
7619         * common/host-defs.h: Include limits.h.
7620         (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
7621         (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
7622         * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
7623         common/common-utils.h.
7624         * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
7625         (strtoulst): Move to common/common-utils.c.
7626         * utils.h (strtoulst): Moved decl to common/common-utils.h.
7627
7628 2015-06-15  Yao Qi  <yao.qi@linaro.org>
7629
7630         * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
7631
7632 2015-06-10  Jon Turney  <jon.turney@dronecode.org.uk>
7633
7634         * build-id.c: Don't include elf-bfd.h.
7635         (build_id_bfd_get): Use bfd_build_id.
7636         (build_id_verify): Ditto.
7637         * build-id.h: Ditto.
7638         (find_separate_debug_file_by_buildid): Ditto.
7639         * python/py-objfile.c: Don't include elf-bfd.h.
7640         (objfpy_get_build_id) Use bfd_build_id.
7641         (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
7642         * coffread.c: Include build-id.h.
7643         (coff_symfile_read): Try find_separate_debug_file_by_buildid.
7644
7645 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
7646
7647         * windows-nat.c (do_windows_fetch_inferior_registers)
7648         (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
7649         conditional with __CYGWIN__.
7650
7651 2015-06-13  Andrew Burgess  <andrew.burgess@embecosm.com>
7652
7653         * completer.c: Add arch-utils.h include.
7654         (enum reg_completer_targets): New enum.
7655         (reg_or_group_completer_1): New function containing old
7656         reg_or_group_completer, add and use new parameter to control what
7657         is completed on.  Use get_current_arch rather than architecture of
7658         currently selected frame.
7659         (reg_or_group_completer): Call new reg_or_group_completer_1.
7660         (reggroup_completer): Call new reg_or_group_completer_1.
7661         * completer.h (reggroup_completer): Add declaration.
7662         * tui/tui-regs.c: Add 'completer.h' include.
7663         (tui_reg_next_command): Renamed to...
7664         (tui_reg_next): ...this.  Adjust parameters and return rather than
7665         display new group.
7666         (tui_reg_prev_command): Renamed to...
7667         (tui_reg_prev): ...this.  Adjust parameters and return rather than
7668         display new group.
7669         (tui_reg_float_command): Delete.
7670         (tui_reg_general_command): Delete.
7671         (tui_reg_system_command): Delete.
7672         (tui_reg_command): Rewrite to perform switching of register group.
7673         Add header comment.
7674         (tuireglist): Remove.
7675         (tui_reggroup_completer): New function.
7676         (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
7677         creation of 'tui reg' command.
7678         * NEWS: Add comment about 'tui reg' changes.
7679
7680 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
7681
7682         * target.c (target_read): Consider addressable unit size when
7683         reading from a memory object.
7684         (read_memory_robust): Same.
7685         (read_whatever_is_readable): Same.
7686         (target_write_with_progress): Consider addressable unit size
7687         when writing to a memory object.
7688         * target.h (target_read): Update documentation.
7689         (target_write): Add documentation.
7690
7691 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
7692
7693         * arch-utils.h (default_addressable_memory_unit_size): New.
7694         * arch-utils.c (default_addressable_memory_unit_size): New.
7695         * gdbarch.sh (addressable_memory_unit_size): New.
7696         * gdbarch.h: Re-generate.
7697         * gdbarch.c: Re-generate.
7698
7699 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
7700
7701         * target.c (target_read): Rename variables and use
7702         TARGET_XFER_E_IO.
7703         (target_read_with_progress): Same.
7704         (read_memory_robust): Constify parameters and rename
7705         variables.
7706         (read_whatever_is_readable): Constify parameters,
7707         rename variables, adjust formatting.
7708         * target.h (read_memory_robust): Constify parameters.
7709
7710 2015-06-12  Ulrich Weigand  <uweigand@de.ibm.com>
7711
7712         * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
7713         synthetic (non-AltiVec) vector types.
7714         (ppc64_sysv_abi_return_value): Likewise.
7715
7716 2015-06-12  Antoine Tremblay  <antoine.tremblay@ericsson.com>
7717
7718         PR breakpoints/16465
7719         * breakpoint.c (create_breakpoint): Save extra_string for
7720         pending breakpoints.
7721
7722 2015-06-10  Walfred Tedeschi  <walfred.tedeschi@intel.com>
7723
7724         * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
7725         and bt_mask to CORE_ADDR.
7726
7727 2015-06-11  Gary Benson <gbenson@redhat.com>
7728
7729         * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
7730         (mnsh_recv_message): Likewise.
7731
7732 2015-06-11  Walfred Tedeschi  <walfred.tedeschi@intel.com>
7733
7734         * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
7735         long long int and plongest instead of %ll.
7736
7737 2015-06-11  Gary Benson <gbenson@redhat.com>
7738
7739         * nat/linux-namespaces.c (gdb_wait.h): New include.
7740         (sys/wait.h): Do not include.
7741
7742 2015-06-10  Simon Marchi  <simon.marchi@ericsson.com>
7743
7744         * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
7745         end_sequence is true.
7746
7747 2015-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
7748
7749         Code cleanup.
7750         * solib-target.c (library_list_start_list): Use explicit NULL
7751         comparison.
7752
7753 2015-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
7754
7755         * solib-target.c (library_list_start_list): Do not dereference
7756         variable version in its initialization.  Make the VERSION check handle
7757         NULL.
7758         (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
7759
7760 2015-06-10  Gary Benson <gbenson@redhat.com>
7761
7762         * NEWS: Announce support for direct access of executable and
7763         shared library files when attaching to inferiors in containers
7764         on GNU/Linux systems.
7765
7766 2015-06-10  Gary Benson <gbenson@redhat.com>
7767
7768         * remote.c (struct remote_state) <fs_pid>: New field.
7769         (new_remote_state): Initialize the above.
7770         (PACKET_vFile_setfs): New enum value.
7771         (remote_hostio_set_filesystem): New function.
7772         (remote_hostio_open): Call the above.
7773         (remote_hostio_unlink): Likewise.
7774         (remote_hostio_readlink): Likewise.
7775         (_initialize_remote): Register new "set/show remote
7776         hostio-setfs-packet" command.
7777         * NEWS: Announce new vFile:setfs packet.
7778
7779 2015-06-10  Gary Benson <gbenson@redhat.com>
7780
7781         * linux-nat.c (nat/linux-namespaces.h): New include.
7782         (fileio.h): Likewise.
7783         (linux_nat_filesystem_is_local): New function.
7784         (linux_nat_fileio_pid_of): Likewise.
7785         (linux_nat_fileio_open): Likewise.
7786         (linux_nat_fileio_readlink): Likewise.
7787         (linux_nat_fileio_unlink): Likewise.
7788         (linux_nat_add_target): Initialize to_filesystem_is_local,
7789         to_fileio_open, to_fileio_readlink and to_fileio_unlink.
7790         (_initialize_linux_nat): New "set/show debug linux-namespaces"
7791         commands.
7792         * NEWS: Mention new "set/show debug linux-namespaces" commands.
7793
7794 2015-06-10  Gary Benson <gbenson@redhat.com>
7795
7796         * target.h (struct inferior): New forward declaration.
7797         (struct target_ops) <to_filesystem_is_local>: Update comment.
7798         (struct target_ops) <to_fileio_open>: New argument inf.
7799         Update comment.  All implementations updated.
7800         (struct target_ops) <to_fileio_unlink>: Likewise.
7801         (struct target_ops) <to_fileio_readlink>: Likewise.
7802         (target_filesystem_is_local): Update comment.
7803         (target_fileio_open): New argument inf.  Update comment.
7804         (target_fileio_unlink): Likewise.
7805         (target_fileio_readlink): Likewise.
7806         (target_fileio_read_alloc): Likewise.
7807         (target_fileio_read_stralloc): Likewise.
7808         * target.c (target_fileio_open): New argument inf.
7809         Pass inf to implementation.  Update debug printing.
7810         (target_fileio_unlink): Likewise.
7811         (target_fileio_readlink): Likewise.
7812         (target_fileio_read_alloc_1): New argument inf. Pass inf
7813         to target_fileio_open.
7814         (target_fileio_read_alloc): New argument inf. Pass inf to
7815         target_fileio_read_alloc_1.
7816         (target_fileio_read_stralloc): Likewise.
7817         * gdb_bfd.c (inferior.h): New include.
7818         (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
7819         argument with new argument "inferior".  Pass inferior to
7820         target_fileio_open.
7821         (gdb_bfd_open): Supply inferior argument to
7822         gdb_bfd_iovec_fileio_open.
7823         * linux-tdep.c (linux_info_proc): Supply inf argument to
7824         relevant target_fileio calls.
7825         (linux_find_memory_regions_full): Likewise.
7826         (linux_fill_prpsinfo): Likewise.
7827         * remote.c (remote_filesystem_is_local): Supply inf
7828         argument to remote_hostio_open.
7829         (remote_file_put): Likewise.
7830         (remote_file_get): Likewise.
7831         (remote_file_delete): Supply inf argument to
7832         remote_hostio_unlink.
7833
7834 2015-06-10  Gary Benson <gbenson@redhat.com>
7835
7836         * inf-child.c (inf_child_fileio_open): Replace comment.
7837         (inf_child_fileio_pwrite): Likewise.
7838         (inf_child_fileio_pread): Likewise.
7839         (inf_child_fileio_fstat): Insert blank line before comment.
7840         (inf_child_fileio_close): Replace comment.
7841         (inf_child_fileio_unlink): Likewise.
7842         (inf_child_fileio_readlink): Likewise.
7843         * remote.c (remote_hostio_open): Likewise.
7844         (remote_hostio_pread): Likewise.
7845         (remote_hostio_pwrite): Likewise.
7846         (remote_hostio_close): Likewise.
7847         (remote_hostio_unlink): Likewise.
7848         (remote_hostio_readlink): Likewise.
7849         (remote_hostio_fstat): Likewise.
7850         (remote_filesystem_is_local): Likewise.
7851         * target.c (target_fileio_open): Likewise.
7852         (target_fileio_pwrite): Likewise.
7853         (target_fileio_pread): Likewise.
7854         (target_fileio_fstat): Insert blank line before comment.
7855         (target_fileio_close): Replace comment.
7856         (target_fileio_unlink): Likewise.
7857         (target_fileio_readlink): Likewise.
7858         (target_fileio_read_alloc): Likewise.
7859         (target_fileio_read_stralloc): Likewise.
7860
7861 2015-06-10  Gary Benson <gbenson@redhat.com>
7862
7863         * linux-thread-db.c (nat/linux-namespaces.h): New include.
7864         (check_pid_namespace_match): Use linux_ns_same rather than
7865         linux_proc_pid_get_ns to spot PID namespace mismatches.
7866         * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
7867         * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
7868
7869 2015-06-10  Gary Benson <gbenson@redhat.com>
7870
7871         * configure.ac (AC_CHECK_FUNCS): Add setns.
7872         * config.in: Regenerate.
7873         * configure: Likewise.
7874         * nat/linux-namespaces.h: New file.
7875         * nat/linux-namespaces.c: Likewise.
7876         * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
7877         (linux-namespaces.o): New rule.
7878         * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
7879         * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
7880         * config/arm/linux.mh (NATDEPFILES): Likewise.
7881         * config/i386/linux.mh (NATDEPFILES): Likewise.
7882         * config/i386/linux64.mh (NATDEPFILES): Likewise.
7883         * config/ia64/linux.mh (NATDEPFILES): Likewise.
7884         * config/m32r/linux.mh (NATDEPFILES): Likewise.
7885         * config/m68k/linux.mh (NATDEPFILES): Likewise.
7886         * config/mips/linux.mh (NATDEPFILES): Likewise.
7887         * config/pa/linux.mh (NATDEPFILES): Likewise.
7888         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
7889         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
7890         * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
7891         * config/s390/linux.mh (NATDEPFILES): Likewise.
7892         * config/sparc/linux.mh (NATDEPFILES): Likewise.
7893         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
7894         * config/tilegx/linux.mh (NATDEPFILES): Likewise.
7895         * config/xtensa/linux.mh (NATDEPFILES): Likewise.
7896
7897 2015-06-10  Gary Benson <gbenson@redhat.com>
7898
7899         * utils.h (make_cleanup_close): Moved to common/filestuff.h.
7900         * utils.c (do_close_cleanup): Moved to common/filestuff.c.
7901         (make_cleanup_close): Likewise.
7902         * common/filestuff.h (make_cleanup_close): Moved from utils.h.
7903         * common/filestuff.c (do_close_cleanup): Moved from utils.c.
7904         (make_cleanup_close): Likewise.
7905
7906 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
7907
7908         * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
7909         from SuspendThread().
7910
7911 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
7912
7913         * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
7914         from OutputDebugString.
7915
7916 2015-06-10  Walfred Tedeschi  <walfred.tedeschi@intel.com>
7917                         Mircea Gherzan  <mircea.gherzan@intel.com>
7918
7919         * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
7920         MPX_BT_MASK_32): New macros.
7921         (i386_mpx_set_bounds): New function that implements
7922         the command "set-mpx-bound".
7923         (i386_mpx_enabled): Helper function to test MPX availability.
7924         (i386_mpx_bd_base): Helper function to calculate the base directory
7925         address.
7926         (i386_mpx_get_bt_entry): Helper function to access a bound
7927         table entry.
7928         (i386_mpx_print_bounds): Effectively display bound information.
7929         (_initialize_i386_tdep): Add new commands to commands "set mpx" and
7930         "show mpx".
7931         (_initialize_i386_tdep):
7932         Add "bound" to the commands "show mpx" and "set mpx" commands.
7933         (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
7934         and "show mpx" commands.
7935         * NEWS: List new commands for MPX support.
7936
7937 2015-06-09  Gary Benson <gbenson@redhat.com>
7938
7939         * common/fileio.h (fileio_to_host_mode): New declaration.
7940         * common/fileio.c (fileio_to_host_mode): New Function.
7941         * inf-child.c (inf_child_fileio_open): Process mode argument
7942         with fileio_to_host_mode.
7943
7944 2015-06-09  Gary Benson <gbenson@redhat.com>
7945
7946         * common/fileio.c (fileio_mode_pack): Fix preprocessor
7947         conditional.
7948
7949 2015-06-05  Gary Benson <gbenson@redhat.com>
7950
7951         * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
7952         * remote.c (remote_filesystem_is_local): ...here.
7953
7954 2015-06-04  Yao Qi  <yao.qi@linaro.org>
7955
7956         * gdbarch.c: Regenerate it.
7957
7958 2015-06-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
7959
7960         * arch-utils.c (default_infcall_munmap): New.
7961         * arch-utils.h (default_infcall_munmap): New declaration.
7962         * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
7963         (munmap_list_free, munmap_listp_free_cleanup): New.
7964         (struct setup_sections_data): Add field munmap_list_headp.
7965         (setup_sections): Call munmap_list_add.
7966         (compile_object_load): New variable munmap_list_head, initialize
7967         setup_sections_data.munmap_list_headp, return munmap_list_head.
7968         * compile/compile-object-load.h (struct munmap_list): New declaration.
7969         (struct compile_module): Add field munmap_list_head.
7970         (munmap_list_free): New declaration.
7971         * compile/compile-object-run.c (struct do_module_cleanup): Add field
7972         munmap_list_head.
7973         (do_module_cleanup): Call munmap_list_free.
7974         (compile_object_run): Pass munmap_list_head to do_module_cleanup.
7975         * gdbarch.c: Regenerate.
7976         * gdbarch.h: Regenerate.
7977         * gdbarch.sh (infcall_munmap): New.
7978         * linux-tdep.c (linux_infcall_munmap): New.
7979         (linux_init_abi): Install it.
7980
7981 2015-06-02  Simon Marchi  <simon.marchi@ericsson.com>
7982
7983         PR gdb/15564
7984         * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
7985
7986 2015-06-02  Yao Qi  <yao.qi@linaro.org>
7987
7988         * i386-linux-nat.c: Include linux-nat.h.
7989
7990 2015-06-01  Andreas Schwab  <schwab@linux-m68k.org>
7991             Jan Kratochvil  <jan.kratochvil@redhat.com>
7992
7993         PR symtab/18392
7994         * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
7995         assertion.
7996         * dwarf2loc.c (chain_candidate): Likewise.
7997
7998 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7999
8000         * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
8001         (store_vfp_regs): Use PTRACE_SETREGSET.
8002
8003 2015-06-01  Yao Qi  <yao.qi@linaro.org>
8004
8005         * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
8006         (fetch_fpregs): Likewise.
8007         * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
8008         (store_fpregs): Likewise.
8009
8010 2015-06-01  Yao Qi  <yao.qi@linaro.org>
8011
8012         * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
8013         (fetch_regs): Likewise.
8014         (store_regs): Use PTRACE_SETREGSET.
8015         (store_register): Likewise.
8016
8017 2015-06-01  Yao Qi  <yao.qi@linaro.org>
8018
8019         * arm-linux-nat.c (arm_linux_read_description): Check whether
8020         kernel supports PTRACE_GETREGSET.
8021
8022 2015-06-01  Yao Qi  <yao.qi@linaro.org>
8023
8024         * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
8025         * linux-nat.c: ... here.
8026         * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
8027         to ...
8028         * linux-nat.h: ... here.
8029
8030 2015-06-01  Yao Qi  <yao.qi@linaro.org>
8031
8032         * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
8033         * i386-linux-nat.c: Likewise.
8034         * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
8035         * s390-linux-nat.c: Include "nat/linux-ptrace.h".
8036         (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
8037         * x86-linux-nat.c: Include "nat/linux-ptrace.h".
8038         * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
8039
8040 2015-05-30  Eli Zaretskii  <eliz@gnu.org>
8041
8042         * go32-nat.c (go32_xfer_memory): Fix the return value to be
8043         compatible to what read_child and write_child return.  This
8044         unbreaks that DJGPP build of GDB which was broken since v7.7.
8045
8046 2015-05-29  Martin Galvan  <martin.galvan@tallertechnologies.com>
8047
8048         * MAINTAINERS (Write After Approval): Add Martin Galvan.
8049
8050 2015-05-29  Roland McGrath  <mcgrathr@google.com>
8051
8052         PR gdb/18464
8053         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
8054         rather than internal_error for an unrecognized value.
8055
8056 2015-05-29  Max Filippov  <jcmvbkbc@gmail.com>
8057
8058         * xtensa-tdep.c (xtensa_pseudo_register_read)
8059         (xtensa_pseudo_register_write): Don't alias last pseudo register
8060         to a1.
8061
8062 2015-05-28  Don Breazeal  <donb@codesourcery.com>
8063
8064         * infrun.c (follow_fork_inferior): Ensure the use of
8065         process-style ptids (pid,0,0) in verbose/debug "Detaching"
8066         messages.
8067
8068 2015-05-28  Doug Evans  <dje@google.com>
8069
8070         * dwarf2read.c (record_line_ftype): Remove, duplicate.
8071
8072 2015-05-28  Yao Qi  <yao.qi@linaro.org>
8073
8074         * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
8075         (arm_linux_fetch_inferior_registers): Use
8076         tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
8077         (arm_linux_store_inferior_registers): Likewise.
8078         (arm_linux_read_description): Don't set
8079         arm_linux_has_wmmx_registers.
8080         * arm-tdep.c (arm_gdbarch_init): Set
8081         tdep->have_wmmx_registers according target descriptions.
8082         * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
8083         field.
8084
8085 2015-05-28  Yao Qi  <yao.qi@linaro.org>
8086
8087         * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
8088         (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
8089         instead of arm_linux_vfp_register_count.
8090         (store_vfp_regs): Likewise.
8091         (arm_linux_fetch_inferior_registers): Likewise.
8092         (arm_linux_store_inferior_registers): Likewise.
8093         (arm_linux_read_description): Don't set
8094         arm_linux_vfp_register_count.
8095         * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
8096         Adjust.
8097         * arm-tdep.c (arm_gdbarch_init): Add assert on
8098         vfp_register_count.
8099         * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
8100         field to vfp_register_count.  All users updated.
8101
8102 2015-05-28  Kyle Huey  <me@kylehuey.com>  (tiny patch)
8103
8104         * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
8105         ELFOSABI_GNU binaries.
8106
8107 2015-05-27  Doug Evans  <dje@google.com>
8108
8109         * dwarf2read.c (lnp_state_machine): New typedef.
8110         (lnp_reader_state): New typedef.
8111         (dwarf_record_line_1): Renamed from dwarf_record_line.
8112         All callers updated.
8113         (dwarf_record_line): New function.
8114         (init_lnp_state_machine): New function.
8115         (check_line_address): Replace p_record_line parameter with state.
8116         All callers updated.
8117         (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
8118         Update to record state in lnp_state_machine.
8119
8120 2015-05-27  Doug Evans  <dje@google.com>
8121
8122         * dwarf2read.c (record_line_ftype): New typedef.
8123         (check_line_address): New function.
8124         (dwarf_decode_lines_1): Call it.
8125
8126 2015-05-27  Doug Evans  <dje@google.com>
8127
8128         * NEWS: Mention "set debug dwarf-line".
8129         * dwarf2read.c (dwarf_line_debug): New static global.
8130         (add_include_dir): Add debug dwarf-line support.
8131         (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
8132         (_initialize_dwarf2_read): New parameter "debug dwarf-line".
8133
8134 2015-05-27  Doug Evans  <dje@google.com>
8135
8136         * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
8137         All callers updated.
8138         (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
8139         * cp-support.h (cp_lookup_nested_symbol): Update.
8140
8141 2015-05-27  Doug Evans  <dje@google.com>
8142
8143         PR symtab/18258
8144         * block.c (block_find_symbol): New function.
8145         (block_find_non_opaque_type): Ditto.
8146         (block_find_non_opaque_type_preferred): Ditto.
8147         * block.h (block_symbol_matcher_ftype): New typedef.
8148         (block_find_symbol): Declare.
8149         (block_find_non_opaque_type): Ditto.
8150         (block_find_non_opaque_type_preferred): Ditto.
8151         * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
8152         * psymtab.c (psym_lookup_symbol): Ditto.
8153         * symtab.c (basic_lookup_transparent_type_1): New function.
8154         (basic_lookup_transparent_type): Call it.
8155
8156 2015-05-27  Yao Qi  <yao.qi@linaro.org>
8157
8158         * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
8159         AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
8160
8161 2015-05-27  Yao Qi  <yao.qi@linaro.org>
8162
8163         * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
8164         before operator &&.
8165         (aarch64_record_load_store): Likewise.
8166
8167 2015-05-26  Doug Evans  <dje@google.com>
8168
8169         PR c++/18141, c++/18417.
8170         * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
8171         a typedef.
8172
8173 2015-05-26  Doug Evans  <dje@google.com>
8174
8175         * NEWS: Add entries for command renamings.
8176         * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
8177         All uses updated.
8178         (dwarf_die_debug): Renamed from dwarf2_die_debug.  All uses updated.
8179         (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
8180         All uses updated.
8181         (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
8182         All callers updated.  Fix spelling of DWARF in help text.
8183         (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
8184         All uses updated.
8185         (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
8186         All uses updated.
8187         (set_dwarf_cmd): Renamed from set_dwarf2_cmd.  All callers updated.
8188         (show_dwarf_cmd): Renamed from show_dwarf2_cmd.  All callers updated.
8189         (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
8190         All uses updated.
8191         (show_dwarf_always_disassemble): Renamed from
8192         show_dwarf2_always_disassemble.  All callers updated.
8193         (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
8194         "set/show dwarf".  Rename "set/show dwarf2 max-cache-age" to
8195         "set/show dwarf max-cache-age".  Rename
8196         "set/show dwarf2 always-disassemble" to
8197         "set/show dwarf always-disassemble".  Rename
8198         "set/show debug dwarf2-read" to "set/show debug dwarf-read".  Rename
8199         "set/show debug dwarf2-die" to "set/show debug dwarf-die".
8200
8201 2015-05-26  Doug Evans  <dje@google.com>
8202
8203         PR python/18438
8204         * python/py-lazy-string.c (stpy_convert_to_value): Use
8205         gdbpy_gdb_memory_error not PyExc_MemoryError.
8206         (gdbpy_create_lazy_string_object): Ditto.
8207
8208 2015-05-26  Andrew Burgess  <andrew.burgess@embecosm.com>
8209
8210         * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
8211
8212 2015-05-26  Andrew Burgess  <andrew.burgess@embecosm.com>
8213
8214         * tui/tui-regs.c (tui_reg_prev_command): New function.
8215         (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
8216         * reggroups.c (reggroup_prev): New function.
8217         * reggroups.h (reggroup_prev): Add declaration.  Update comment.
8218
8219 2015-05-26  Omair Javaid  <omair.javaid@linaro.org>
8220             Yao Qi  <yao.qi@linaro.org>
8221
8222         * aarch64-linux-tdep.c: Include linux-record.h and
8223         record-full.h.
8224         (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
8225         (aarch64_syscall): New enum.
8226         (aarch64_canonicalize_syscall): New function.
8227         (aarch64_all_but_pc_registers_record): New function.
8228         (aarch64_linux_syscall_record): New function.
8229         (aarch64_linux_init_abi): Install AArch64 process record
8230         handler.  Update to handle syscall recording.
8231         * aarch64-tdep.c: Include record.h and record-full.h.
8232         (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
8233         (struct aarch64_mem_r): Define.
8234         (aarch64_record_result): New enum.
8235         (struct insn_decode_record): Define.
8236         (insn_decode_record): New typedef.
8237         (aarch64_record_data_proc_reg): New function.
8238         (aarch64_record_data_proc_imm): New function.
8239         (aarch64_record_branch_except_sys): New function.
8240         (aarch64_record_load_store): New function.
8241         (aarch64_record_data_proc_simd_fp): New function.
8242         (aarch64_record_asimd_load_store): New function.
8243         (aarch64_record_decode_insn_handler): New function.
8244         (deallocate_reg_mem): New function.
8245         (aarch64_process_record): New function.
8246         * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
8247         New field.
8248         (aarch64_process_record): New extern declaration.
8249         * configure.tgt: Add linux-record.o to gdb_target_obs.
8250         * linux-record.h (struct linux_record_tdep) <arg7>: New field.
8251
8252 2015-05-26  Omair Javaid  <omair.javaid@linaro.org>
8253
8254         * NEWS: Add a note on process record-replay support on aarch64*-linux*
8255         targets.
8256
8257 2015-05-26  Martin Galvan  <martin.galvan@tallertechnologies.com>
8258
8259         * amd64-tdep.c: Replace in_function_epilogue_p with
8260         stack_frame_destroyed_p throughout.
8261         * arch-utils.c: Ditto.
8262         * arch-utils.h: Ditto.
8263         * arm-tdep.c: Ditto.
8264         * breakpoint.c: Ditto.
8265         * gdbarch.sh: Ditto.
8266         * hppa-tdep.c: Ditto.
8267         * i386-tdep.c: Ditto.
8268         * mips-tdep.c: Ditto.
8269         * nios2-tdep.c: Ditto.
8270         * rs6000-tdep.c: Ditto.
8271         * s390-linux-tdep.c: Ditto.
8272         * score-tdep.c: Ditto.
8273         * sh-tdep.c: Ditto.
8274         * sparc-tdep.c: Ditto.
8275         * sparc-tdep.h: Ditto.
8276         * sparc64-tdep.c: Ditto.
8277         * spu-tdep.c: Ditto.
8278         * tic6x-tdep.c: Ditto.
8279         * tilegx-tdep.c: Ditto.
8280         * xstormy16-tdep.c: Ditto.
8281         * gdbarch.c, gdbarch.h: Re-generated.
8282
8283 2015-05-22  Andrew Burgess  <andrew.burgess@embecosm.com>
8284
8285         * NEWS: Mention 'tui enable' and 'tui disable'.
8286         * tui/tui.c (tui_enable_command): New function.
8287         (tui_disable_command): New function.
8288         (_initialize_tui): New function.
8289
8290 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
8291
8292         * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
8293
8294 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
8295
8296         * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
8297         buf_ptr is freed.
8298
8299 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
8300
8301         * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
8302         into ...
8303         (tui_set_layout_for_display_command): ...here, before calling
8304         tui_set_layout.  Only set the layout if gdb has not already
8305         entered the TUI_FAILURE state.
8306
8307 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
8308
8309         * tui/tui-layout.c (layout_completer): New function.
8310         (_initialize_tui_layout): Set completer on layout command.
8311
8312 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
8313
8314         * tui/tui-layout.c (tui_set_layout): Remove
8315         tui_register_display_type parameter.  Remove all checking of this
8316         parameter, and reindent function.  Update header comment.
8317         (tui_set_layout_for_display_command): Rename to...
8318         (tui_set_layout_by_name): ...this, and don't check for different
8319         register class types, don't pass a tui_register_display_type to
8320         tui_set_layout.  Update header comment.
8321         (layout_names): Remove register set specific names.
8322         * tui/tui-layout.h (tui_set_layout): Remove
8323         tui_register_display_type parameter.
8324         * tui/tui.c (tui_rl_change_windows): Don't pass a
8325         tui_register_display_type to tui_set_layout.
8326         (tui_rl_delete_other_windows): Likewise.
8327         (tui_enable): Likewise.
8328         * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
8329         (TUI_FLOAT_REGS_NAME_LOWER): Remove.
8330         (TUI_GENERAL_REGS_NAME): Remove.
8331         (TUI_GENERAL_REGS_NAME_LOWER): Remove.
8332         (TUI_SPECIAL_REGS_NAME): Remove.
8333         (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
8334         (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
8335         (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
8336         (enum tui_register_display_type): Remove.
8337         (struct tui_layout_def): Remove regs_display_type and
8338         float_regs_display_type fields.
8339         (struct tui_data_info): Remove regs_display_type field.
8340         (tui_layout_command): Use new name for
8341         tui_set_layout_for_display_command.
8342         * tui/tui-data.c (layout_def): Don't initialise removed fields.
8343         (tui_clear_win_detail): Don't initialise removed fields of
8344         win_info.
8345         * tui/tui-regs.c (tui_show_registers): Use new name for
8346         tui_set_layout_for_display_command.
8347         * tui/tui.h (tui_set_layout_for_display_command): Rename
8348         declaration to...
8349         (tui_set_layout_by_name): ...this.
8350         * printcmd.c (display_command): Remove tui related layout call,
8351         and reindent.
8352
8353 2015-05-20  Joel Brobecker  <brobecker@adacore.com>
8354
8355         * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
8356         (handle_inferior_event): New function.
8357
8358 2015-05-20  Joel Brobecker  <brobecker@adacore.com>
8359
8360         * ada-lang.c (to_fixed_array_type): Rename local variable
8361         typename into type_name.
8362
8363 2015-05-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
8364
8365         Fix ASAN crash for gdb.compile/compile.exp.
8366         * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
8367
8368 2015-05-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
8369
8370         * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
8371         (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
8372         * compile/compile-object-load.c (setup_sections, compile_object_load):
8373         Likewise.
8374         * compile/compile.c (compile_to_object): Likewise.
8375
8376 2015-05-16  Doug Evans  <xdje42@gmail.com>
8377
8378         * NEWS: Mention support for unbuffered Guile memory ports.
8379         * scm-ports.c (ioscm_memory_port): Update comments on end, size.
8380         (ioscm_lseek_address): Improve overflow calculation.
8381         (gdbscm_memory_port_fill_input): Add assert.
8382         (gdbscm_memory_port_write): Handle unbuffered ports.
8383         Handle large writes identical to Guile's fport_write.
8384         (gdbscm_memory_port_seek): Fix seeking past end check.
8385         (gdbscm_memory_port_close): Handle closing unbuffered port.
8386         (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
8387         (ioscm_init_memory_port): Handle unbuffered ports.
8388         (ioscm_reinit_memory_port): Ditto.
8389         (ioscm_init_memory_port): Update size calculation.
8390         (gdbscm_open_memory): Support zero sized ports.
8391
8392 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8393
8394         * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
8395         variable compiler warnings.
8396
8397 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8398
8399         * compile/compile-object-load.c (get_out_value_type): Fix returned type.
8400
8401 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8402             Phil Muldoon  <pmuldoon@redhat.com>
8403
8404         * NEWS (Changes since GDB 7.9): Add compile print.
8405         * compile/compile-c-support.c (add_code_header, add_code_footer)
8406         (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
8407         COMPILE_I_PRINT_VALUE_SCOPE.
8408         * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
8409         (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
8410         New.
8411         * compile/compile-object-load.c: Include block.h.
8412         (get_out_value_type): New function.
8413         (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
8414         COMPILE_I_PRINT_VALUE_SCOPE.  Set compile_module's OUT_VALUE_ADDR and
8415         OUT_VALUE_TYPE.
8416         * compile/compile-object-load.h (struct compile_module): Add fields
8417         out_value_addr and out_value_type.
8418         * compile/compile-object-run.c: Include valprint.h and compile.h.
8419         (struct do_module_cleanup): Add fields out_value_addr and
8420         out_value_type.
8421         (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
8422         COMPILE_I_PRINT_VALUE_SCOPE.
8423         (compile_object_run): Propagate out_value_addr and out_value_type.
8424         Pass OUT_VALUE_ADDR.
8425         * compile/compile.c: Include valprint.h.
8426         (compile_print_value, compile_print_command): New functions.
8427         (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
8428         (_initialize_compile): Update compile code help text.  Install
8429         compile_print_command.
8430         * compile/compile.h (compile_print_value): New prototype.
8431         * defs.h (enum compile_i_scope_types): Add
8432         COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
8433
8434 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8435
8436         * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
8437         Rely on its parameter count.
8438         (compile_object_load): Replace lookup_minimal_symbol_text by
8439         lookup_global_symbol_from_objfile.  Verify FUNC_SYM.  Set it in the
8440         return value.
8441         * compile/compile-object-load.h (struct compile_module): Replace
8442         func_addr by func_sym.
8443         * compile/compile-object-run.c: Include block.h.
8444         (compile_object_run): Reset module variable after it is freed.  Use
8445         FUNC_SYM instead of FUNC_ADDR.  Rely on it.
8446
8447 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8448
8449         * compile/compile-c-support.c (print_one_macro): Use #ifndef.
8450         (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
8451         (c_compute_program): Call generate_register_struct after typedefs.
8452         * compile/compile-loc2c.c (push, pushf_register_address)
8453         (pushf_register): Cast to GCC_UINTPTR.
8454         (do_compile_dwarf_expr_to_c): Use unused attribute.  Add space after
8455         type.  Use GCC_UINTPTR instead of void *.  Remove excessive cast.
8456         (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
8457         * compile/compile.c (_initialize_compile): Enable warnings for
8458         COMPILE_ARGS.
8459
8460 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8461
8462         * cli/cli-script.c (execute_control_command): Update
8463         eval_compile_command caller.
8464         * compile/compile-object-load.c (compile_object_load): Add parameters
8465         scope and scope_data.  Set them.
8466         * compile/compile-object-load.h (struct compile_module): Add fields
8467         scope and scope_data.
8468         (compile_object_load): Add parameters scope and scope_data.
8469         * compile/compile-object-run.c (struct do_module_cleanup): Add fields
8470         scope and scope_data.
8471         (compile_object_run): Propagate the fields scope and scope_data.
8472         * compile/compile.c (compile_file_command, compile_code_command):
8473         Update eval_compile_command callers.
8474         (eval_compile_command): Add parameter scope_data.  Pass it plus scope.
8475         * compile/compile.h (eval_compile_command): Add parameter scope_data.
8476         * defs.h (struct command_line): Add field scope_data.
8477
8478 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8479
8480         * printcmd.c (struct format_data): Move it to valprint.h.
8481         (print_command_parse_format, print_value): New functions from ...
8482         (print_command_1): ... here.  Call them.
8483         * valprint.h (struct format_data): Move it here from printcmd.c.
8484         (print_command_parse_format, print_value): New declarations.
8485
8486 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8487
8488         * compile/compile-object-load.c (compile_object_load): Add
8489         COMPILE_DEBUG message.
8490
8491 2015-05-15  Jerome Guitton  <guitton@adacore.com>
8492
8493         * ada-lang.c (ada_value_ptr_subscript): Use enum position of
8494         index to get element instead of enum value.
8495         (ada_value_slice_from_ptr, ada_value_slice): Use enum position
8496         of index to compute length, but enum values to compute bounds.
8497         (ada_array_length): Use enum position of index instead of enum value.
8498         (pos_atr): Move position computation to...
8499         (ada_evaluate_subexp): Use enum values to compute bounds.
8500         * gdbtypes.c (discrete_position): ...this new function.
8501         * gdbtypes.h (discrete_position): New function declaration.
8502         * valprint.c (val_print_array_elements): Call discrete_position
8503         to handle array indexed by non-contiguous enumeration types.
8504
8505 2015-05-15  Jerome Guitton  <guitton@adacore.com>
8506
8507         * ada-lang.c (find_parallel_type_by_descriptive_type):
8508         Go through typedefs during lookup.
8509         (to_fixed_array_type): Add support for non-bit packed arrays
8510         as variable-length fields.
8511
8512 2015-05-15  Pedro Alves  <palves@redhat.com>
8513             Simon Marchi  <simon.marchi@ericsson.com>
8514
8515         * event-loop.c (gdb_notifier) <next_file_handler,
8516         next_poll_fds_index>: New fields.
8517         (get_next_file_handler_to_handle_and_advance): New function.
8518         (delete_file_handler): If deleting the next file handler to
8519         handle, advance to the next file handler.
8520         (gdb_wait_for_event): Bail early if no event fired.  Poll file
8521         handlers in round-robin fashion.
8522
8523 2015-05-15  Pedro Alves  <palves@redhat.com>
8524
8525         * linux-tdep.c (linux_find_memory_regions_full): Rename local
8526         'private' to 'priv'.
8527
8528 2015-05-15  Pedro Alves  <palves@redhat.com>
8529
8530         * nat/linux-nat.h: Include "target/waitstatus.h".
8531
8532 2015-05-15  Yuanhui Zhang  <asmwarrior@gmail.com>
8533
8534         * python/py-unwind.c (struct reg_info): Move out of ...
8535         (struct cached_frame_info): ... this scope.
8536         (pending_frame_object_type, unwind_info_object_type): Make extern.
8537
8538 2015-05-15  Joel Brobecker  <brobecker@adacore.com>
8539
8540         * ada-lang.c (ada_value_primitive_packed_val): Make sure
8541         accumSize is never negative.
8542
8543 2015-05-14  Patrick Palka  <patrick@parcs.ath.cx>
8544
8545         * tui/tui-command.c: Remove include of <ctype.h>.
8546         (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
8547
8548 2015-05-13  Martin Galvan  <martin.galvan@tallertechnologies.com>
8549
8550         * dwarf2read.c (die_needs_namespace): Return 1 for
8551         DW_TAG_inlined_subroutine.
8552
8553 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8554
8555         * regcache.c (regcache_cpy_no_passthrough): New declaration.
8556         (regcache_cpy_no_passthrough): Make it static, add function comment.
8557         * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
8558         (regcache_cpy_no_passthrough): Remove declaration.
8559
8560 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8561
8562         * gdbthread.h (struct thread_control_state): Update comment for
8563         proceed_to_finish.
8564         * infcall.c (run_inferior_call): Update comment about
8565         proceed_to_finish.
8566         * infcmd.c (get_return_value): Update comment about stop_registers.
8567         (finish_forward): Update comment about proceed_to_finish.
8568         * infrun.c (stop_registers): Remove.
8569         (clear_proceed_status, normal_stop): Remove stop_registers handling.
8570         * infrun.h (stop_registers): Remove.
8571
8572 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8573
8574         * infcall.c (struct dummy_frame_context_saver)
8575         (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
8576         (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
8577         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
8578         New.
8579         (call_function_by_hand_dummy): Move discard_cleanups of
8580         inf_status_cleanup before dummy_frame_push.  Call
8581         dummy_frame_context_saver_setup and prepare context_saver_cleanup.
8582         Use dummy_frame_context_saver_get_regs instead of stop_registers.
8583         * infcall.h (struct dummy_frame_context_saver)
8584         (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
8585         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
8586         New declarations.
8587         * infcmd.c: Include infcall.h.
8588         (get_return_value): Add parameter ctx_saver, use it instead of
8589         stop_registers.
8590         (print_return_value): Add parameter ctx_saver, pass it.
8591         (struct finish_command_continuation_args): Add field ctx_saver.
8592         (finish_command_continuation): Update print_return_value caller.
8593         (finish_command_continuation_free_arg): Free also ctx_saver.
8594         (finish_forward): Call dummy_frame_context_saver_setup.
8595         * inferior.h (struct dummy_frame_context_saver): New declaration.
8596         (get_return_value): Add parameter ctx_saver.
8597         * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
8598         get_return_value caller.
8599
8600 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8601
8602         * dummy-frame.c (struct dummy_frame_dtor_list): New.
8603         (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
8604         (remove_dummy_frame): Process dtor_list.
8605         (pop_dummy_frame): Process dtor_list.
8606         (register_dummy_frame_dtor): Maintain dtor_list.
8607         (find_dummy_frame_dtor): Handle dtor_list.
8608         * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
8609         Update comments.
8610
8611 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8612
8613         * compile/compile-object-run.c (do_module_cleanup): Add parameter
8614         registers_valid.
8615         (compile_object_run): Update do_module_cleanup caller.
8616         * dummy-frame.c: Include infcall.h.
8617         (struct dummy_frame): Update dtor comment.
8618         (remove_dummy_frame): Call dtor.
8619         (pop_dummy_frame): Update dtor caller.
8620         * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
8621         registers_valid.
8622
8623 2015-05-13  Joel Brobecker  <brobecker@adacore.com>
8624
8625         GDB 7.9.1 released.
8626
8627 2015-05-13  Joel Brobecker  <brobecker@adacore.com>
8628
8629         * NEWS: Create "Changes in GDB 7.9.1" section.  Move news about
8630         Xmethods now being able to specify a result type to that new
8631         sectioin.
8632
8633 2015-05-13  Patrick Palka  <patrick@parcs.ath.cx>
8634
8635         * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
8636         first before resizing the window.
8637         * tui/tui.c (tui_enable): Likewise.
8638
8639 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8640
8641         * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
8642         * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
8643         * infcall.c (call_function_by_hand_dummy): Use proper typedef for
8644         dummy_dtor parameter.
8645         * infcall.h: Include dummy-frame.h.
8646         (call_function_by_hand_dummy_dtor_ftype): Remove.
8647         (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
8648         parameter.
8649
8650 2015-05-13  Patrick Palka  <patrick@parcs.ath.cx>
8651
8652         PR gdb/17820
8653         * top.c (history_size_setshow_var): Change type to signed.
8654         Initialize to -2.  Update documentation.
8655         (set_readline_history_size): Define.
8656         (set_history_size_command): Use it.  Remove logic for handling
8657         out-of-range sizes.
8658         (init_history): Use set_readline_history_size().  Test for a
8659         value of -2 instead of 0 when determining whether to set a
8660         default history size.
8661         (init_main): Decode the argument of the "size" command as a
8662         zuinteger_unlimited.
8663
8664 2015-05-12  Doug Evans  <dje@google.com>
8665
8666         * dwarf2read.c (struct file_entry): Tweak comments.
8667         (get_debug_line_section): Tweak comments.
8668
8669 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8670
8671         * NEWS: Announce fork support in the RSP and support
8672         for fork debugging in extended mode.
8673
8674 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8675
8676         * remote.c (remote_insert_fork_catchpoint): New function.
8677         (remote_remove_fork_catchpoint): New function.
8678         (remote_insert_vfork_catchpoint): New function.
8679         (remote_remove_vfork_catchpoint): New function.
8680         (pending_fork_parent_callback): New function.
8681         (remove_new_fork_child): New function.
8682         (remote_update_thread_list): Call remote_notif_get_pending_events
8683         and remove_new_fork_child.
8684         (extended_remote_kill): Kill fork child when killing the
8685         parent before follow_fork completes.
8686         (init_extended_remote_ops): Initialize target vector with
8687         new fork catchpoint functions.
8688
8689 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8690
8691         * remote.c (remove_vfork_event_p): New function.
8692         (remote_follow_fork): Add vfork event type to event checking.
8693         (remote_parse_stop_reply): New stop reasons "vfork" and
8694         "vforkdone" for RSP 'T' Stop Reply Packet.
8695
8696 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8697
8698         * linux-nat.c (linux_nat_ptrace_options): New function.
8699         (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
8700         Call linux_nat_ptrace_options and use different argument to
8701         linux_enable_event_reporting.
8702         (_initialize_linux_nat): Delete call to
8703         linux_ptrace_set_additional_flags.
8704         * nat/linux-ptrace.c (current_ptrace_options): Rename to
8705         supported_ptrace_options.
8706         (additional_flags): Delete variable.
8707         (linux_check_ptrace_features): Use supported_ptrace_options.
8708         (linux_test_for_tracesysgood, linux_test_for_tracefork):
8709         Likewise, and remove additional_flags check.
8710         (linux_enable_event_reporting): Change 'attached' argument to
8711         'options'.  Use supported_ptrace_options.
8712         (ptrace_supports_feature): Change comment.  Use
8713         supported_ptrace_options.
8714         (linux_ptrace_set_additional_flags): Delete function.
8715         * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
8716         Delete function prototype.
8717         * remote.c (remote_fork_event_p): New function.
8718         (remote_detach_pid): New function.
8719         (remote_detach_1): Call remote_detach_pid, don't mourn inferior
8720         if doing detach-on-fork.
8721         (remote_follow_fork): New function.
8722         (remote_parse_stop_reply): Handle new "T" stop reason "fork".
8723         (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
8724         (init_extended_remote_ops): Initialize to_follow_fork.
8725
8726 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8727
8728         * nat/linux-ptrace.c (linux_check_ptrace_features): Change
8729         from static to extern.
8730         * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
8731         * remote.c (anonymous enum): <PACKET_fork_event_feature,
8732         * PACKET_vfork_event_feature>: New enumeration constants.
8733         (remote_protocol_features): Add table entries for new packets.
8734         (remote_query_supported): Add new feature queries to qSupported
8735         packet.
8736
8737 2015-05-12  Gary Benson <gbenson@redhat.com>
8738
8739         * remote.c (remote_add_inferior): Call exec_file_locate_attach
8740         for fake PIDs as well as real ones.
8741         (remote_pid_to_exec_file): Send empty annex if PID is fake.
8742
8743 2015-05-09  Siva Chandra Reddy  <sivachandra@google.com>
8744
8745         * NEWS (Python Scripting): Mention the new gdb.Value methods.
8746         * python/py-value.c (valpy_reference_value): New function.
8747         (valpy_const_value): Likewise.
8748         (value_object_methods): Add new methods.
8749         * value.c (make_cv_value): New function.
8750         * value.h (make_cv_value): Declare.
8751
8752 2015-05-08  Yao Qi  <yao@codesourcery.com>
8753             Sandra Loosemore  <sandra@codesourcery.com>
8754
8755         * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
8756         to 'lh->include_dirs' before accessing to it.
8757         (psymtab_include_file_name): Likewise.
8758         (dwarf_decode_lines_1): Likewise.
8759         (dwarf_decode_lines): Likewise.
8760         (file_file_name): Likewise.
8761
8762 2015-05-08  Sandra Loosemore  <sandra@codesourcery.com>
8763
8764         * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
8765         (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
8766         (nios2_linux_rt_sigreturn_init): Adjust base address of
8767         register save area.
8768
8769 2015-05-08  Sandra Loosemore  <sandra@codesourcery.com>
8770
8771         * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
8772         "trap 31" as the breakpoint instruction on all targets.
8773
8774 2015-05-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8775
8776         * infcmd.c (print_return_value): Remove unused declaration.
8777
8778 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
8779
8780         * dwarf2read.c (attr_to_dynamic_prop)
8781         <DW_AT_data_member_location>: Use read_type_die isntead of
8782         get_die_type.
8783
8784 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
8785
8786         * ada-lang.c (ada_convert_actual): Add handling of formals
8787         passed inside an aligner type.
8788
8789 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
8790
8791         * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
8792
8793 2015-05-08  Siva Chandra Reddy  <sivachandra@google.com>
8794
8795         PR python/18291
8796         * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
8797         Print xmethod matcher status.
8798
8799 2015-05-08  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8800
8801         * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
8802         register in the regcache when treating the PSWM register, and vice
8803         versa.
8804
8805 2015-05-07  Gary Benson <gbenson@redhat.com>
8806
8807         * linux-thread-db.c (struct thread_db_info)
8808         <td_ta_map_id2thr_p>: Remove field.
8809         (try_thread_db_load_1): Remove initialization for the above.
8810
8811 2015-05-07  Gary Benson <gbenson@redhat.com>
8812
8813         * linux-thread-db.c (struct thread_db_info)
8814         <td_thr_validate_p>: Remove field.
8815         (try_thread_db_load_1): Remove initialization for the above.
8816
8817 2015-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
8818
8819         * compile/compile-object-load.c (compile_object_load): Support
8820         mst_text_gnu_ifunc.
8821
8822 2015-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
8823
8824         * compile/compile.c (compile_to_object): Make the cmd_string parameter
8825         const.  Use new variables for the const compatibility.
8826         (eval_compile_command): Make the cmd_string parameter const.
8827         * compile/compile.h (eval_compile_command): Make the cmd_string
8828         parameter const.
8829
8830 2015-05-06  Joel Brobecker  <brobecker@adacore.com>
8831
8832         * defs.h (deprecated_init_ui_hook): Delete.  Remove associated
8833         comment.
8834         * top.c (deprecated_init_ui_hook): Delete.
8835         (gdb_init): Remove handling of deprecated_init_ui_hook.
8836         * interps.c (clear_interpreter_hooks): Remove handling of
8837         deprecated_init_ui_hook.
8838         * main.c (captured_main): Update comment.
8839
8840 2015-05-06  Joel Brobecker  <brobecker@adacore.com>
8841
8842         * solib.c (_initialize_solib): Add "info dll" alias creation.
8843         * windows-nat.c (set_windows_aliases): Delete.
8844         (_initialize_windows_nat): Remove deprecated_init_ui_hook
8845         assignment.
8846         * NEWS: Add news entry about "info dll" now being available
8847         on all platforms.
8848
8849 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8850
8851         * ada-lang.c (value_assign_to_component): Reformat and improve
8852         documentation. Remove all trailing spaces.
8853
8854 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8855
8856         * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
8857         Stop counting inlined frames as soon as an out-of-line function
8858         is found.
8859
8860 2014-05-05  Pierre-Marie de Rodat  <derodat@adacore.com>
8861
8862         * dwarf2read.c (inherit_abstract_dies): Skip
8863         DW_TAG_GNU_call_site dies while inheriting children of an
8864         abstract DIE into a scope.
8865         (read_lexical_block_scope): Inherit abstract DIE's for
8866         lexical scopes.
8867
8868 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8869
8870         * ada-valprint.c (val_print_packed_array_elements): Delete
8871         variable "len".  Add a type-length check when comparing two
8872         consecutive elements of the array.  Use the element's actual
8873         length in call to value_contents_eq.
8874         * ada-lang.c (ada_value_primitive_packed_val): Always return
8875         a value whose type has been resolved.
8876
8877 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8878
8879         * ada-lang.c (ada_value_primitive_packed_val): Recompute
8880         BIT_SIZE and LEN if the size of the resolved type is smaller
8881         than BIT_SIZE * HOST_CHAR_BIT.
8882
8883 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8884
8885         * ada-lang.c (ada_value_primitive_packed_val): Use a more
8886         correct address in call to value_at.  Adjust call to
8887         value_address accordingly.
8888
8889 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8890
8891         * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
8892         to print it.
8893
8894 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8895
8896         * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
8897         * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
8898         pinfo->valaddr.
8899         * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
8900         * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
8901         (resolve_dynamic_type_internal): Set pinfo.valaddr.
8902         Add handling of addr_stack->valaddr.
8903         (resolve_dynamic_type): Add "valaddr" parameter.
8904         Set pinfo.valaddr field.
8905         * ada-lang.c (ada_discrete_type_high_bound): Update call to
8906         resolve_dynamic_type.
8907         (ada_discrete_type_low_bound): Likewise.
8908         * findvar.c (default_read_var_value): Likewise.
8909         * value.c (value_from_contents_and_address): Likewise.
8910
8911 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8912
8913         * gdbtypes.c (resolve_dynamic_array): Use
8914         create_array_type_with_stride instead of create_array_type.
8915
8916 2015-04-30  DJ Delorie  <dj@redhat.com>
8917
8918         * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
8919         rl78_decode_opcode
8920
8921 2015-04-29  Doug Evans  <dje@google.com>
8922
8923         PR python/18285
8924         * NEWS: Document new gdb.XMethodWorker.get_result_type method.
8925         * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
8926         EVAL_AVOID_SIDE_EFFECTS for xmethods.
8927         * extension-priv.h (struct extension_language_ops)
8928         <get_xmethod_result_type>: New member.
8929         * extension.c (get_xmethod_result_type): New function.
8930         * extension.h (get_xmethod_result_type): Declare.
8931         * python/py-xmethods.c (get_result_type_method_name): New static
8932         global.
8933         (py_get_result_type_method_name): Ditto.
8934         (gdbpy_get_xmethod_result_type): New function.
8935         (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
8936         * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
8937         * python/python.c (python_extension_ops): Add
8938         gdbpy_get_xmethod_result_type.
8939         * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
8940         * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
8941         xmethods.
8942         (value_x_unop): Ditto.
8943         * value.c (result_type_of_xmethod): New function.
8944         * value.h (result_type_of_xmethod): Declare.
8945
8946 2015-04-29  Gary Benson <gbenson@redhat.com>
8947
8948         * solib.c (solib_find_1): Allow fd argument to be NULL.
8949         (exec_file_find): Update comment.
8950         (solib_find): Likewise.
8951         * exec.c (exec_file_locate_attach): Use NULL as fd
8952         argument to exec_file_find to avoid having to close
8953         the opened file.
8954         * infrun.c (follow_exec): Likewise.
8955
8956 2015-04-28  Doug Evans  <dje@google.com>
8957
8958         PR python/18299
8959         * python/lib/gdb/printing.py (register_pretty_printer): Handle
8960         name or __name__ attributes.  Handle gdb module as first argument.
8961
8962 2015-04-28  Doug Evans  <dje@google.com>
8963
8964         PR python/18089
8965         * python/py-prettyprint.c (print_children): Verify result of children
8966         iterator.  Provide better error message.
8967         * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
8968         * python/python.c (gdbpy_print_python_errors_p): New function.
8969
8970 2015-04-28  Doug Evans  <dje@google.com>
8971
8972         * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
8973
8974 2015-04-28  Sasha Smundak  <asmundak@google.com>
8975
8976         * NEWS: Mention gdb.Type.optimized_out method.
8977         * python/py-type.c (typy_optimized_out):  New function.
8978
8979 2015-04-28  John Baldwin  <jhb@FreeBSD.org>
8980
8981         * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8982
8983 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8984
8985         * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
8986         (initialize_utils): Move call of init_page_info() to ...
8987         * top.c (gdb_init): ... here.
8988
8989 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8990
8991         * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
8992         (tui_sigwinch_handler): Still update our idea of
8993         the terminal's width and height even when TUI is not active.
8994
8995 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8996
8997         * utils.h (set_screen_width_and_height): Declare.
8998         * utils.c (set_screen_width_and_height): Define.
8999         * tui/tui-win.c (tui_update_gdb_sizes): Use it.
9000
9001 2015-04-28  Gary Benson <gbenson@redhat.com>
9002
9003         * infrun.c (solist.h): New include.
9004         (follow_exec): Use exec_file_find to prefix execd_pathname
9005         with gdb_sysroot.
9006
9007 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
9008
9009         * tui/tui-source.c (tui_set_source_content): Avoid calling
9010         strcpy() when offset is 0.
9011
9012 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
9013
9014         PR gdb/18155
9015         * tui/tui-data.c (tui_free_window): Don't free the locator
9016         window when passed an SRC_WIN or a DISASSEM_WIN.
9017
9018 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
9019
9020         * tui/tui-data.h (struct tui_win_element): Forward-declare.
9021         (tui_win_content): Move declaration.
9022         (struct tui_gen_win_info): Give 'content' field the
9023         type tui_win_content.
9024         * tui/tui-data.c (init_content_element): Remove redundant and
9025         erroneous casts.
9026         (tui_add_content_elements): Remove erroneous cast.
9027         * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
9028         casts.
9029         (tui_get_begin_asm_address): Likewise.
9030         * tui/tui-regs.c (tui_show_registers): Likewise.
9031         (tui_show_register_group): Likewise.
9032         (tui_display_registers_from): Likewise.
9033         (tui_check_register_values): Likewise.
9034         * tui/tui-source.c (tui_set_source_content): Likewise.
9035         (tui_set_source_content_nil): Likewise.
9036         (tui_source_is_displayed): Likewise.
9037         * tui/tui-stack.c (tui_show_locator_content): Likewise.
9038         (tui_set_locator_fullname): Likewise.
9039         (tui_set_locator_info): Likewise.
9040         (tui_show_frame_info): Likewise.
9041         * tui/tui-winsource.c (tui_clear_source_content): Likewise.
9042         (tui_show_source_line): Likewise.
9043         (tui_horizontal_source_scroll): Likewise.
9044         (tui_update_breakpoint_info): Likewise.
9045         (tui_set_exec_info_content): Likewise.
9046         (tui_show_exec_info_content): Likewise.
9047         (tui_alloc_source_buffer): Likewise.
9048         (tui_line_is_displayed): Likewise.
9049         (tui_addr_is_displayed): Likewise.
9050
9051 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
9052
9053         * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
9054         event if PL_FLAG_EXEC is set.
9055         [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
9056         [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
9057         (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
9058         "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
9059         Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
9060
9061 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
9062
9063         * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
9064         [TDP_RFPPWAIT] New variable fbsd_pending_children.
9065         [TDP_RFPPWAIT] (fbsd_remember_child): New function.
9066         [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
9067         [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
9068         [PT_LWPINFO] (fbsd_wait): New function.
9069         [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
9070         [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
9071         [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
9072         [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
9073         [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
9074         [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
9075         [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
9076         [TDP_RFPPWAIT] (fbsd_post_attach): New function.
9077         (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
9078         "fbsd_wait".
9079         [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
9080         Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
9081         Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
9082         Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
9083         Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
9084         Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
9085         Set "to_post_attach" to "fbsd_post_attach".
9086
9087 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
9088
9089         * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
9090         (fbsd_find_memory_regions): Mark static.
9091         (fbsd_nat_add_target): New function.
9092         * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
9093         fbsd_pid_to_exec_file and fbsd_find_memory_regions.
9094         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
9095         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
9096         * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
9097         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
9098
9099 2015-04-27  Gary Benson <gbenson@redhat.com>
9100
9101         * objfiles.c (allocate_objfile): Do not attempt to expand name
9102         if name is a "target:" filename.
9103         * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
9104         to load auto-load scripts for objfiles with "target:" filenames.
9105
9106 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
9107
9108         * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
9109         (enum s390_vector_abi_kind): New enum.
9110         (struct gdbarch_tdep)<vector_abi>: New field.
9111         (s390_effective_inner_type): Add parameter min_size.  Stop
9112         unwrapping if the inner type is smaller than min_size.
9113         (s390_function_arg_float): Adjust call to
9114         s390_effective_inner_type.
9115         (s390_function_arg_vector): New function.
9116         (s390_function_arg_integer): Adjust comment.
9117         (struct s390_arg_state)<vr>: New field.
9118         (s390_handle_arg): Add parameter 'is_unnamed'.  Pass vector
9119         arguments according to vector ABI when appropriate.
9120         (s390_push_dummy_call): Initialize the argument state's field
9121         'vr'.  Adjust calls to s390_handle_arg.
9122         (s390_register_return_value): Handle vector return values.
9123         (s390_return_value): Apply the "register" return value convention
9124         to a vector when appropriate.
9125         (s390_gdbarch_init): Initialize tdep->vector_abi.
9126         * NEWS: Announce S390 vector ABI support.
9127
9128 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
9129
9130         * s390-linux-tdep.c (s390_return_value_convention): Remove
9131         function.  Inline its logic...
9132         (s390_return_value): ...here.  Instead, move the handling of the
9133         "register" return value convention...
9134         (s390_register_return_value): ...here.  New function.
9135
9136 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
9137
9138         * s390-linux-tdep.c
9139         (is_float_singleton): Remove function.  Move the "singleton" part
9140         of the logic...
9141         (s390_effective_inner_type): ...here.  New function.
9142         (is_float_like): Remove function.  Inline its logic...
9143         (s390_function_arg_float): ...here.
9144         (is_pointer_like, is_integer_like, is_struct_like): Remove
9145         functions.  Inline their logic...
9146         (s390_function_arg_integer): ...here.
9147         (s390_function_arg_pass_by_reference): Remove function.
9148         (extend_simple_arg): Remove function.
9149         (alignment_of): Remove function.
9150         (struct s390_arg_state): New structure.
9151         (s390_handle_arg): New function.
9152         (s390_push_dummy_call): Move parameter placement logic to the new
9153         function s390_handle_arg.  Call it for calculating the stack area
9154         sizes first, and again for actually writing the parameters.
9155
9156 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
9157
9158         * s390-linux-tdep.c (is_power_of_two): Add comment.  Return
9159           false if the argument is zero.
9160
9161 2015-04-27  Pierre-Marie de Rodat  <derodat@adacore.com>
9162
9163         * ada-lang.c (template_to_static_fixed_type): Return input type
9164         when it is already fixed.  Cache the input type itself when not
9165         creating a static fixed copy.  Make it explicit that we never
9166         molestate the input type.
9167         * gdbtypes.c (resolve_dynamic_struct): Reset the
9168         TYPE_TARGET_TYPE field for resolved copies.
9169
9170 2015-04-27  Joel Brobecker  <brobecker@adacore.com>
9171
9172         * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
9173         (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
9174         (template_to_static_fixed_type): Call ada_check_typedef only
9175         when necessary.
9176
9177 2015-04-24  Andrew Burgess  <andrew.burgess@embecosm.com>
9178
9179         * cli/cli-dump.c (srec_dump_command): Add internationalization
9180         mark ups.
9181         (ihex_dump_command): Likewise.
9182         (tekhex_dump_command): Likewise.
9183         (binary_dump_command): Likewise.
9184         (binary_append_command): Likewise.
9185
9186 2015-04-24  Andrew Burgess  <andrew.burgess@embecosm.com>
9187
9188         * cli/cli-dump.c (verilog_cmdlist): New variable.
9189         (dump_verilog_memory): New function.
9190         (dump_verilog_value): New function.
9191         (verilog_dump_command): New function.
9192         (_initialize_cli_dump): Add new commands to support verilog dump
9193         format.
9194         * NEWS: Add entry for "dump verilog".
9195
9196 2015-04-24  Pierre-Marie de Rodat  <derodat@adacore.com>
9197
9198         * gdbtypes.c (print_gnat_stuff): Do not recurse on the
9199         descriptive type when there is none.
9200
9201 2015-04-23  Patrick Palka  <patrick@parcs.ath.cx>
9202
9203         * tui/tui-win.c (tui_async_resize_screen): Call
9204         rl_resize_terminal().
9205
9206 2015-04-22  Jon Turney  <jon.turney@dronecode.org.uk>
9207
9208         * windows-nat.c (handle_output_debug_string): Don't change
9209         current_event.dwThreadId.
9210         (get_windows_debug_event): Use thread_id, rather than relying on
9211         current_event.dwThreadId being changed.
9212
9213 2015-04-22  Jon Turney  <jon.turney@dronecode.org.uk>
9214
9215         * windows-nat.c (windows_continue): Report an error if
9216         ContinueDebugEvent() fails.
9217
9218 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
9219
9220         * windows-nat.c (windows_resume): Fix misspelling in debug output.
9221
9222 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
9223
9224         * windows-nat.c (get_windows_debug_event): Replace retval with
9225         thread_id throughout.  Update stale comment.
9226
9227 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
9228
9229         * windows-nat.c (get_windows_debug_event): Don't use ternary
9230         conditional operator.
9231
9232 2015-04-21  Pierre Muller  <muller@sourceware.org>
9233
9234         PR pascal/17815
9235         p-exp.y (yylex): Reorganize code to return the matched pattern
9236         for a field of this.
9237
9238 2015-04-21  Gary Benson <gbenson@redhat.com>
9239
9240         * common/fileio.h (fileio_to_host_openflags): New declaration.
9241         * common/fileio.c (fcntl.h): New include.
9242         (fileio_to_host_openflags): New function, factored out from...
9243         * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
9244         Single use updated.
9245
9246 2015-04-21  Kevin Buettner  <kevinb@redhat.com>
9247
9248         * rl78-tdep.c (RL78_SP_ADDR): Define.
9249         (opc_reg_to_gdb_regnum): New static function.
9250         (rl78_analyze_prologue): Recognize instructions forming slightly
9251         more interesting prologues.
9252
9253 2015-04-20  Pierre-Marie de Rodat  <derodat@adacore.com>
9254
9255         Revert:
9256         2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
9257         * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
9258         TYPE_CODE_REF types so that they are not considered as dynamic
9259         depending on the referenced type.
9260         (resolve_dynamic_type_internal): Likewise.
9261
9262 2015-04-20  Pierre-Marie de Rodat  <derodat@adacore.com>
9263
9264         Revert:
9265         2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
9266         * gdbtypes.c (is_dynamic_type_internal): Remove the unused
9267         "top_level" parameter.
9268         (resolve_dynamic_type_internal): Remove the unused "top_level"
9269         parameter.  Update call to is_dynamic_type_internal.
9270         (is_dynamic_type): Update call to is_dynamic_type_internal.
9271         (resolve_dynamic_range): Update call to
9272         resolve_dynamic_type_internal.
9273         (resolve_dynamic_union): Likewise.
9274         (resolve_dynamic_struct): Likewise.
9275         (resolve_dynamic_type): Likewise.
9276
9277 2015-04-19  Gabriel Krisman Bertazi  <gabriel@krisman.be>
9278
9279         * breakpoint.c (update_dprintf_command_list): Remove duplicated
9280         xmalloc.
9281
9282 2015-04-20  Thomas Schwinge  <thomas@codesourcery.com>
9283
9284         * reply_mig_hack.awk: Robustify parsing.
9285
9286         * reply_mig_hack.awk: Don't bother to declare an intermediate
9287         function pointer variable.
9288
9289 2015-04-17  Doug Evans  <dje@google.com>
9290
9291         * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
9292         to "exec_displacement" to avoid confusion with inner use of the name.
9293
9294 2015-04-17  Pedro Alves  <palves@redhat.com>
9295
9296         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
9297         if HW point of TYPE isn't supported.
9298
9299 2015-04-17  Yao Qi  <yao.qi@linaro.org>
9300             Pedro Alves  <palves@redhat.com>
9301
9302         * target.h (target_can_use_hardware_watchpoint): Update comments.
9303         Remove trailing ";".
9304
9305 2015-04-17  Gary Benson <gbenson@redhat.com>
9306
9307         * remote.c (remote_add_inferior): New argument try_open_exec.
9308         If nonzero, attempt to open the inferior's executable file as
9309         the main executable if no main executable is open already.
9310         All callers updated.
9311         * NEWS: Mention that GDB now supports automatic location and
9312         retrieval of executable + files from remote targets.
9313
9314 2015-04-17  Gary Benson <gbenson@redhat.com>
9315
9316         * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
9317         * remote.c (PACKET_qXfer_exec_file): Likewise.
9318         (remote_protocol_features): Register the
9319         "qXfer:exec-file:read" feature.
9320         (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
9321         (remote_pid_to_exec_file): New function.
9322         (init_remote_ops): Initialize to_pid_to_exec_file.
9323         (_initialize_remote): Register new "set/show remote
9324         pid-to-exec-file-packet" command.
9325         * NEWS: Announce new qXfer:exec-file:read packet.
9326
9327 2015-04-17  Gary Benson <gbenson@redhat.com>
9328
9329         * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
9330         New declaration.
9331         * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
9332         New function, factored out from...
9333         * linux-nat.c (linux_child_pid_to_exec_file): ...here.
9334
9335 2015-04-17  Gary Benson <gbenson@redhat.com>
9336
9337         * exec.c (solist.h): New include.
9338         (exec_file_locate_attach): Prefix absolute executable
9339         paths with gdb_sysroot if set.
9340         * NEWS: Mention that executable paths may be prepended
9341         with sysroot.
9342
9343 2015-04-17  Gary Benson <gbenson@redhat.com>
9344
9345         * solist.h (exec_file_find): New declaration.
9346         * solib.c (solib_find_1): New function, factored out from...
9347         (solib_find): ...here.
9348         (exec_file_find): New function.
9349
9350 2015-04-17  Gary Benson <gbenson@redhat.com>
9351
9352         * gdbcore.h (exec_file_locate_attach): New declaration.
9353         * exec.c (exec_file_locate_attach): New function, factored
9354         out from...
9355         * infcmd.c (attach_command_post_wait): ...here.
9356
9357 2015-04-17  Mike Frysinger  <vapier@gentoo.org>
9358
9359         * MAINTAINERS: Add myself for Blackfin/write-after-approval.
9360
9361 2015-04-16  Yao Qi  <yao.qi@linaro.org>
9362
9363         * infrun.c (maybe_software_singlestep): Declare.
9364         (displaced_step_fixup): Call maybe_software_singlestep.
9365
9366 2015-04-15  Doug Evans  <dje@google.com>
9367
9368         * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
9369
9370 2015-04-15  Doug Evans  <dje@google.com>
9371
9372         * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
9373
9374 2015-04-15  Simon Marchi  <simon.marchi@ericsson.com>
9375
9376         * python/lib/gdb/command/unwinders.py: Add parentheses.
9377
9378 2015-04-15  Yao Qi  <yao.qi@linaro.org>
9379
9380         * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
9381
9382 2015-04-15  Yao Qi  <yao.qi@linaro.org>
9383
9384         * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
9385
9386 2015-04-15  Yao Qi  <yao.qi@linaro.org>
9387
9388         * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
9389         dsc->insn_size instead of 4.
9390
9391 2015-04-14  Gary Benson <gbenson@redhat.com>
9392
9393         * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
9394         * minidebug.c (lzma_stat): Likewise.
9395         * solib-spu.c (spu_bfd_iovec_stat): Likewise.
9396         * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
9397
9398 2015-04-13  Stan Shebs  <stanshebs@google.com>
9399
9400         * MAINTAINERS: Update my email address.
9401
9402 2015-04-13  John Baldwin  <jhb@FreeBSD.org>
9403
9404         * amd64-tdep.c (amd64_target_description): New function.
9405         * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
9406         * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
9407         (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
9408         x86 extended save area.
9409         (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
9410         * amd64bsd-nat.h: Export amd64bsd_xsave_len.
9411         * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
9412         (_initialize_amd64fbsd_nat): Set "to_read_description" to
9413         "amd64fbsd_read_description".
9414         * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
9415         (amd64fbsd_supply_xstateregset): New function.
9416         (amd64fbsd_collect_xstateregset): New function.
9417         Add "amd64fbsd_xstateregset".
9418         (amd64fbsd_iterate_over_regset_sections): New function.
9419         (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
9420         "I386_FBSD_XSAVE_XCR0_OFFSET".
9421         Add "iterate_over_regset_sections" gdbarch method.
9422         Add "core_read_description" gdbarch method.
9423         * i386-tdep.c (i386_target_description): New function.
9424         * i386-tdep.h: Export i386_target_description and tdesc_i386.
9425         * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
9426         (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
9427         x86 extended save area.
9428         (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
9429         * i386bsd-nat.h: Export i386bsd_xsave_len.
9430         * i386fbsd-nat.c (i386fbsd_read_description): New function.
9431         (_initialize_i386fbsd_nat): Set "to_read_description" to
9432         "i386fbsd_read_description".
9433         * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
9434         (i386fbsd_core_read_description): New function.
9435         (i386fbsd_supply_xstateregset): New function.
9436         (i386fbsd_collect_xstateregset): New function.
9437         Add "i386fbsd_xstateregset".
9438         (i386fbsd_iterate_over_regset_sections): New function.
9439         (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
9440         "I386_FBSD_XSAVE_XCR0_OFFSET".
9441         Add "iterate_over_regset_sections" gdbarch method.
9442         Add "core_read_description" gdbarch method.
9443         * i386fbsd-tdep.h: New file.
9444
9445 2015-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
9446
9447         * NEWS (Changes since GDB 7.9): Add removed -xdb.
9448         * breakpoint.c (command_line_is_silent): Remove xdb_commands
9449         conditional.
9450         (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
9451         and lb.
9452         * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
9453         va.
9454         * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
9455         conditional.
9456         * defs.h (xdb_commands): Remove declaration.
9457         * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
9458         * guile/scm-cmd.c (command_classes): Remove xdb from comment.
9459         * infcmd.c (run_no_args_command, go_command): Remove.
9460         (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
9461         * infrun.c (xdb_handle_command): Remove.
9462         (_initialize_infrun): Remove xdb_commands for lz and z.
9463         * main.c (xdb_commands): Remove variable.
9464         (captured_main): Remove "xdb" from long_options.
9465         (print_gdb_help): Remove --xdb from help.
9466         * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
9467         * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
9468         * stack.c (backtrace_full_command, args_plus_locals_info)
9469         (current_frame_command): Remove.
9470         (_initialize_stack): Remove xdb_commands for t, T and l.
9471         * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
9472         * thread.c (_initialize_thread): Remove xdb_commands condition.
9473         * tui/tui-layout.c (tui_toggle_layout_command)
9474         (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
9475         (_initialize_tui_layout): Remove xdb_commands for td and ts.
9476         * tui/tui-regs.c (tui_scroll_regs_forward_command)
9477         (tui_scroll_regs_backward_command): Remove.
9478         (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
9479         * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
9480         (_initialize_tui_win): Remove xdb_commands for U and w.
9481         * utils.c (pagination_on_command, pagination_off_command): Remove.
9482         (initialize_utils): Remove xdb_commands for am and sm.
9483
9484 2015-04-10  Pedro Alves  <palves@redhat.com>
9485
9486         * infrun.c (displaced_step_fixup): Switch to the event ptid
9487         earlier.  If the thread stopped for a watchpoint and the
9488         target/arch has non-continuable watchpoints, cancel the displaced
9489         step.
9490         (resume): Don't start a displaced step if in-line step-over info
9491         is valid.
9492
9493 2015-04-10  Pedro Alves  <palves@redhat.com>
9494
9495         * infrun.c (displaced_step_in_progress): New function.
9496         (do_target_resume): Advise target to report all signals if
9497         displaced stepping.
9498
9499 2015-04-10  Pedro Alves  <palves@redhat.com>
9500
9501         PR gdb/18216
9502         * infrun.c (process_event_stop_test): Don't assume a step-resume
9503         is set if tp->stepped_breakpoint is true.
9504
9505 2015-04-10  Yao Qi  <yao.qi@linaro.org>
9506
9507         * arm-tdep.c (install_alu_reg): Update comment.
9508         (thumb_copy_alu_reg): Remove local variable rn.  Update
9509         debugging message.  Use r2 instead of r1 in the modified
9510         instruction.
9511
9512 2015-04-10  Pedro Alves  <palves@redhat.com>
9513
9514         PR gdb/13858
9515         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
9516         linux_displaced_step_location as gdbarch_displaced_step_location
9517         hook.
9518         * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
9519         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
9520         * linux-tdep.c (linux_displaced_step_location): New function,
9521         based on ppc_linux_displaced_step_location.
9522         * linux-tdep.h (linux_displaced_step_location): New declaration.
9523         * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
9524         (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
9525         Delete.
9526         (ppc_linux_init_abi): Install linux_displaced_step_location as
9527         gdbarch_displaced_step_location hook, even without Cell/B.E..
9528         (_initialize_ppc_linux_tdep): Don't install
9529         ppc_linux_inferior_created as inferior_created observer.
9530         * s390-linux-tdep.c (s390_gdbarch_init): Install
9531         linux_displaced_step_location as gdbarch_displaced_step_location
9532         hook.
9533
9534 2015-04-09  Gary Benson <gbenson@redhat.com>
9535
9536         * common/common-remote-fileio.h: Rename to...
9537         * common/fileio.h: ...this.  Update all references.
9538         (remote_fileio_to_fio_error): Rename to...
9539         (host_to_fileio_error): ...this.
9540         (remote_fileio_to_be): Rename to...
9541         (host_to_bigendian): ...this.  Update all callers.
9542         (remote_fileio_to_fio_uint): Rename to...
9543         (host_to_fileio_uint): ...this.  Update all callers.
9544         (remote_fileio_to_fio_time): Rename to...
9545         (host_to_fileio_time): ...this.  Update all callers.
9546         (remote_fileio_to_fio_stat): Rename to...
9547         (host_to_fileio_stat): ...this.
9548         Update all references.
9549         * common/common-remote-fileio.c: Rename to...
9550         * common/fileio.c: ...this.  Update all references.
9551         (remote_fileio_to_fio_error): Rename to...
9552         (host_to_fileio_error): ...this.  Update all callers.
9553         (remote_fileio_mode_to_target): Rename to...
9554         (fileio_mode_pack): ...this.  Update all callers.
9555         (remote_fileio_to_fio_mode): Rename to...
9556         (host_to_fileio_mode): ...this.  Update all callers.
9557         (remote_fileio_to_fio_ulong): Rename to...
9558         (host_to_fileio_ulong): ...this.  Update all callers.
9559         (remote_fileio_to_fio_stat): Rename to...
9560         (host_to_fileio_stat): ...this.  Update all callers.
9561
9562 2015-04-09  Andy Wingo  <wingo@igalia.com>
9563
9564         * guile/scm-frame.c (gdbscm_frame_read_register): New function.
9565         (frame_functions): Bind gdbscm_frame_read_register to
9566         frame-read-register.
9567         * guile/lib/gdb.scm (frame-read-register): Export.
9568
9569 2015-04-09  Gary Benson <gbenson@redhat.com>
9570
9571         * common/common-remote-fileio.h (remote_fileio_to_fio_error):
9572         New declaration.
9573         * common/common-remote-fileio.c (remote_fileio_to_fio_error):
9574         New function, factored out the named functions below.
9575         * inf-child.c (gdb/fileio.h): Remove include.
9576         (common-remote-fileio.h): New include.
9577         (inf_child_errno_to_fileio_error): Remove function.  Update
9578         all callers to use remote_fileio_to_fio_error.
9579         * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
9580
9581 2015-04-09  Andy Wingo  <wingo@igalia.com>
9582
9583         * MAINTAINERS (Write After Approval): Add Andy Wingo.
9584
9585 2015-04-09  H.J. Lu  <hongjiu.lu@intel.com>
9586
9587         * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
9588         Replace $zlibdir with $ZLIBDIR in LDFLAGS.
9589         * configure: Regenerated.
9590
9591 2015-04-09  Pedro Alves  <palves@redhat.com>
9592
9593         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
9594         * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
9595         * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
9596         * gnulib/import/Makefile.am: Update.
9597         * gnulib/import/Makefile.in: Update.
9598         * gnulib/import/m4/gnulib-cache.m4: Update.
9599         * gnulib/import/m4/gnulib-comp.m4: Update.
9600         * gnulib/import/m4/strtok_r.m4: New file.
9601         * gnulib/import/strtok_r.c: New file.
9602
9603 2015-04-09  Pedro Alves  <palves@redhat.com>
9604
9605         * gnulib/update-gnulib.sh (aclocal version check): Filter out
9606         "called too early to check prototype".
9607
9608 2015-04-08  Sergio Durigan Junior  <sergiodj@redhat.com>
9609
9610         PR python/16699
9611         * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
9612         use a caching mechanism.  Adjust comments and code to reflect
9613         that.  Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
9614         (cmdpy_completer_handle_brkchars): Adjust call to
9615         cmdpy_completer_helper.  Call Py_XDECREF for 'resultobj'.
9616         (cmdpy_completer): Likewise.
9617
9618 2015-04-08  Yao Qi  <yao.qi@linaro.org>
9619
9620         * spu-tdep.c (spu_gdbarch_init): Don't call
9621         set_gdbarch_cannot_step_breakpoint.
9622
9623 2015-04-07  Sergio Durigan Junior  <sergiodj@redhat.com>
9624
9625         * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
9626
9627 2015-04-07  Pedro Alves  <palves@redhat.com>
9628
9629         * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
9630         (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
9631         (delete_exited_threads): New declaration.
9632         * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
9633         * linux-nat.c (linux_nat_update_thread_list): New function.
9634         (linux_nat_add_target): Install it.
9635         * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
9636         * thread.c (prune_threads): Use ALL_THREADS_SAFE.
9637         (delete_exited_threads): New function.
9638
9639 2015-04-07  Pedro Alves  <pedro@codesourcery.com>
9640
9641         * infrun.c (resume) <displaced stepping debug output>: Get the
9642         leader thread's regcache, not resume_ptid's.
9643
9644 2015-04-06  Doug Evans  <xdje42@gmail.com>
9645
9646         * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
9647         VAR_DOMAIN.
9648         (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
9649         Include symbol domain in debugging output.
9650
9651 2015-04-06  Pedro Alves  <palves@redhat.com>
9652             Bernd Edlinger  <bernd.edlinger@hotmail.de>
9653
9654         * configure.ac: Remove the mingw32-specific stub-termcap.o
9655         fallback, and instead fallback to the stub termcap on all hosts.
9656         * configure: Regenerate.
9657         * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
9658         symbols.
9659
9660 2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
9661
9662         * gdbtypes.c (is_dynamic_type_internal): Remove the unused
9663         "top_level" parameter.
9664         (resolve_dynamic_type_internal): Remove the unused "top_level"
9665         parameter.  Update call to is_dynamic_type_internal.
9666         (is_dynamic_type): Update call to is_dynamic_type_internal.
9667         (resolve_dynamic_range): Update call to
9668         resolve_dynamic_type_internal.
9669         (resolve_dynamic_union): Likewise.
9670         (resolve_dynamic_struct): Likewise.
9671         (resolve_dynamic_type): Likewise.
9672
9673 2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
9674
9675         * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
9676         TYPE_CODE_REF types so that they are not considered as dynamic
9677         depending on the referenced type.
9678         (resolve_dynamic_type_internal): Likewise.
9679
9680 2015-04-02  H.J. Lu  <hongjiu.lu@intel.com>
9681
9682         * Makefile.in (top_srcdir): New.
9683         * configure: Regenerated.
9684
9685 2015-04-02  Gary Benson <gbenson@redhat.com>
9686
9687         * NEWS: Announce the new default sysroot of "target:".
9688
9689 2015-04-02  Gary Benson <gbenson@redhat.com>
9690
9691         * main.c (captured_main): Set gdb_sysroot to "target:"
9692         if not otherwise set.
9693
9694 2015-04-02  Gary Benson <gbenson@redhat.com>
9695
9696         * exec.c (exec_file_attach): Support "target:" filenames.
9697
9698 2015-04-02  Gary Benson <gbenson@redhat.com>
9699
9700         * solib.c (solib_find): Strip "target:" prefix from sysroot
9701         if accessing local files.
9702
9703 2015-04-02  Gary Benson <gbenson@redhat.com>
9704
9705         * symfile.c (symfile_bfd_open): Reorder to remove duplicated
9706         checks and error messages.
9707
9708 2015-04-02  Gary Benson <gbenson@redhat.com>
9709
9710         * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
9711         (remote_filename_p): Remove declaration.
9712         (remote_bfd_open): Likewise.
9713         * remote.c (remote_bfd_iovec_open): Remove function.
9714         (remote_bfd_iovec_close): Likewise.
9715         (remote_bfd_iovec_pread): Likewise.
9716         (remote_bfd_iovec_stat): Likewise.
9717         (remote_filename_p): Likewise.
9718         (remote_bfd_open): Likewise.
9719         * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
9720         * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
9721         (gdb_bfd_open_maybe_remote): Remove function.
9722         (symfile_bfd_open):  Replace remote filename check with
9723         target filename check.
9724         (reread_symbols): Use gdb_bfd_open.
9725         * build-id.c (gdbcore.h): New include.
9726         (build_id_to_debug_bfd): Use gdb_bfd_open.
9727         * infcmd.c (attach_command_post_wait): Remove remote filename
9728         check.
9729         * solib.c (solib_find): Replace remote-specific handling with
9730         target-specific handling.  Update comments where necessary.
9731         (solib_bfd_open): Replace remote-specific handling with
9732         target-specific handling.
9733         (gdb_sysroot_changed): New function.
9734         (_initialize_solib): Call the above when gdb_sysroot changes.
9735         * windows-tdep.c (gdbcore.h): New include.
9736         (windows_xfer_shared_library): Use gdb_bfd_open.
9737
9738 2015-04-02  Gary Benson <gbenson@redhat.com>
9739
9740         * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
9741         (is_target_filename): New declaration.
9742         (gdb_bfd_has_target_filename): Likewise.
9743         (gdb_bfd_open): Update documentation comment.
9744         * gdb_bfd.c (target.h): New include.
9745         (gdb/fileio.h): Likewise.
9746         (is_target_filename): New function.
9747         (gdb_bfd_has_target_filename): Likewise.
9748         (fileio_errno_to_host): Likewise.
9749         (gdb_bfd_iovec_fileio_open): Likewise.
9750         (gdb_bfd_iovec_fileio_pread): Likewise.
9751         (gdb_bfd_iovec_fileio_close): Likewise.
9752         (gdb_bfd_iovec_fileio_fstat): Likewise.
9753         (gdb_bfd_open): Use target fileio to access paths prefixed
9754         with "target:" where necessary.
9755
9756 2015-04-02  Gary Benson <gbenson@redhat.com>
9757
9758         * target.h (struct target_ops) <to_filesystem_is_local>:
9759         New field.
9760         (target_filesystem_is_local): New macro.
9761         * target-delegates.c: Regenerate.
9762         * remote.c (remote_filesystem_is_local): New function.
9763         (init_remote_ops): Initialize to_filesystem_is_local.
9764
9765 2015-04-02  Gary Benson <gbenson@redhat.com>
9766
9767         * target.h (struct target_ops) <to_fileio_fstat>: New field.
9768         (target_fileio_fstat): New declaration.
9769         * target.c (target_fileio_fstat): New function.
9770         * inf-child.c (inf_child_fileio_fstat): Likewise.
9771         (inf_child_target): Initialize to_fileio_fstat.
9772         * remote.c (init_remote_ops): Likewise.
9773
9774 2015-04-01  Sasha Smundak  <asmundak@google.com>
9775
9776         * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
9777         (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
9778         (py-unwind.o): New recipe.
9779         * NEWS: mention Python frame unwinding.
9780         * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
9781         gdb/unwinder.py and gdb/command/unwinder.py
9782         * python/lib/gdb/__init__.py (packages): Add frame_unwinders
9783         list.
9784         (execute_unwinders): New function.
9785         * python/lib/gdb/command/unwinders.py: New file.
9786         * python/lib/gdb/unwinder.py: New file.
9787         * python/py-objfile.c (objfile_object): Add frame_unwinders field.
9788         (objfpy_dealloc): Decrement frame_unwinders reference count.
9789         (objfpy_initialize): Create frame_unwinders list.
9790         (objfpy_get_frame_unwinders): New function.
9791         (objfpy_set_frame_unwinders): Ditto.
9792         (objfile_getset): Add frame_unwinders attribute to Objfile.
9793         * python/py-progspace.c (pspace_object): Add frame_unwinders field.
9794         (pspy_dealloc): Decrement frame_unwinders reference count.
9795         (pspy_initialize): Create frame_unwinders list.
9796         (pspy_get_frame_unwinders): New function.
9797         (pspy_set_frame_unwinders): Ditto.
9798         (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
9799         * python/py-unwind.c: New file.
9800         * python/python-internal.h (pspy_get_name_unwinders): New prototype.
9801         (objpy_get_frame_unwinders): New prototype.
9802         (gdbpy_initialize_unwind): New prototype.
9803         * python/python.c (gdbpy_apply_type_printers): Call
9804         gdbpy_initialize_unwind.
9805
9806 2015-04-01  Pedro Alves  <palves@redhat.com>
9807
9808         * infrun.c (resume): Check currently_stepping after clearing
9809         stepped_breakpoint, not before.
9810
9811 2015-04-01  Pedro Alves  <palves@redhat.com>
9812
9813         * infrun.c (print_target_wait_results): Print all the ptid
9814         elements.
9815
9816 2015-04-01  Pedro Alves  <palves@redhat.com>
9817
9818         * infrun.c (keep_going): Also discard cleanups if inserting
9819         breakpoints fails.
9820
9821 2015-04-01  Pedro Alves  <palves@redhat.com>
9822
9823         * infrun.c (wait_for_inferior): Install the
9824         finish_thread_state_cleanup cleanup across the whole function, not
9825         just around handle_inferior_event.
9826
9827 2015-04-01  Pedro Alves  <palves@redhat.com>
9828
9829         * infrun.c (resume) <step past permanent breakpoint>: Use
9830         do_target_resume.
9831
9832 2015-04-01  Pedro Alves  <palves@redhat.com>
9833
9834         * linux-nat.c (linux_handle_extended_wait): Always call set_running.
9835
9836 2015-04-01  Pierre-Marie de Rodat  <derodat@adacore.com>
9837
9838         * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
9839
9840 2015-04-01  Pedro Alves  <palves@redhat.com>
9841
9842         * linux-thread-db.c (record_thread): Readd the thread to gdb's
9843         list if it was marked exited.
9844
9845 2015-04-01  H.J. Lu  <hongjiu.lu@intel.com>
9846
9847         * configure: Regenerated.
9848
9849 2015-03-31  Sergio Durigan Junior  <sergiodj@redhat.com>
9850             Jan Kratochvil  <jan.kratochvil@redhat.com>
9851             Oleg Nesterov  <oleg@redhat.com>
9852
9853         PR corefiles/16092
9854         * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
9855         New enum identifying the various options of the coredump_filter
9856         file.
9857         (struct smaps_vmflags): New struct.
9858         (use_coredump_filter): New variable.
9859         (decode_vmflags): New function.
9860         (mapping_is_anonymous_p): Likewise.
9861         (dump_mapping_p): Likewise.
9862         (linux_find_memory_regions_full): New variables
9863         'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
9864         Removed variable 'modified'.  Read /proc/<PID>/smaps file; improve
9865         parsing of its information.  Implement memory mapping filtering
9866         based on its contents.
9867         (show_use_coredump_filter): New function.
9868         (_initialize_linux_tdep): New command 'set use-coredump-filter'.
9869         * NEWS: Mention the possibility of using the
9870         '/proc/PID/coredump_filter' file when generating a corefile.
9871         Mention new command 'set use-coredump-filter'.
9872
9873 2015-03-31  Sergio Durigan Junior  <sergiodj@redhat.com>
9874
9875         * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
9876         read_memory_unsigned_integer.
9877
9878 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
9879
9880         * Makefile.in (ZLIB): New.
9881         (ZLIBINC): Likewise.
9882         (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
9883         (CLIBS): Add $(ZLIB).
9884         * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
9885         Add -lz to LIBS.
9886         * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
9887         * top.c (print_gdb_configuration): Remove --with-zlib and
9888         --without-zlib.
9889         * config.in: Regenerated.
9890         * configure: Likewise.
9891
9892 2015-03-31  Antoine Tremblay  <antoine.tremblay@ericsson.com>
9893
9894         * NEWS: Mention info os cpus support.
9895         * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
9896         (struct osdata_type): Add cpus entry, reorder the entries in
9897         alphabetical order.
9898
9899 2015-03-31  Matthias Klose  <doko@ubuntu.com>
9900
9901         * compile/compile.c (compile_to_object): Allow triplets with or
9902         without vendor set.
9903
9904 2015-03-30  Doug Evans  <dje@google.com>
9905
9906         PR c++/18141
9907         * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
9908         klass in VAR_DOMAIN.
9909
9910 2015-03-30  Gary Benson <gbenson@redhat.com>
9911
9912         * remote.c (remote_mourn_1): Remove function.  Update all callers
9913         to use remote_mourn.
9914         (extended_remote_mourn_1): Remove function.  Update all callers
9915         to use extended_remote_mourn.
9916         (extended_remote_attach_1): Remove function.  Update all callers
9917         to use extended_remote_attach.
9918
9919 2015-03-28  James Bowman  <james.bowman@ftdichip.com>
9920
9921         * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
9922         (HFILES_NO_SRCDIR): Add ft32-tdep.h.
9923         (ALLDEPFILES): Add ft32-tdep.c.
9924         * configure.tgt: Add FT32 entry.
9925         * ft32-tdep.c: New file, FT32 target-dependent code.
9926         * ft32-tdep.h: New file, FT32 target-dependent code.
9927
9928 2015-03-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
9929
9930         Revert:
9931         2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
9932         Code cleanup.
9933         * printcmd.c (print_command_1): Move expr variable scope.
9934
9935 2015-03-27  Joel Brobecker  <brobecker@adacore.com>
9936
9937         * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
9938
9939 2015-03-27  Andrzej Kaczmarek  <andrzej.kaczmarek@tieto.com>
9940
9941         * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
9942         sections.
9943
9944 2015-03-26  Joel Brobecker  <brobecker@adacore.com>
9945
9946         * dtrace-probe.c (dtrace_process_dof_probe): Contain any
9947         exception raised while parsing the probe arguments.
9948         Force parsing to be done using the C language parser.
9949         * expression.h (parse_expression_with_language): Declare.
9950         * parse.c (parse_expression_with_language): New function.
9951
9952 2015-03-26  Jon Turney  <jon.turney@dronecode.org.uk>
9953
9954         * MAINTAINERS (Write After Approval): Add "Jon Turney".
9955
9956 2015-03-26  Andy Wingo  <wingo@igalia.com>
9957
9958         PR symtab/18148
9959         * dwarf2read.c (struct partial_die_info): Add has_const_value
9960         member.
9961         (add_partial_symbol): Don't punt on symbols that have const_value
9962         attributes.
9963         (read_partial_die): Detect DW_AT_const_value.
9964
9965 2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
9966
9967         Code cleanup.
9968         * printcmd.c (print_command_1): Move expr variable scope.
9969
9970 2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
9971
9972         Code cleanup.
9973         * printcmd.c (validate_format): Make the parameter cmdname const.
9974
9975 2015-03-26  Don Breazeal  <donb@codesourcery.com>
9976
9977         * remote.c (_initialize_remote): Update comment.
9978
9979 2015-03-26  Pedro Alves  <palves@redhat.com>
9980             Jon TURNEY  <jon.turney@dronecode.org.uk>
9981
9982         * coffread.c (coff_symfile_read): When constructing the name of an
9983         import stub symbol from import symbol for amd64, only skip the
9984         char after _imp_ if the target is underscored (like i386) and the
9985         char is indeed the target's leading char.
9986
9987 2015-03-25  Pedro Alves  <palves@redhat.com>
9988
9989         * target.h <to_async>: Replace 'callback' and 'context' parameters
9990         with boolean 'enable' parameter.
9991         (target_async): Replace CALLBACK and CONTEXT parameters with
9992         boolean ENABLE parameter.
9993         * inf-loop.c (inferior_event_handler): Adjust.
9994         * linux-nat.c (linux_nat_attach, linux_nat_resume)
9995         (linux_nat_resume): Adjust.
9996         (async_client_callback, async_client_context): Delete.
9997         (handle_target_event): Call inferior_event_handler directly.
9998         (linux_nat_async): Replace 'callback' and 'context' parameters
9999         with boolean 'enable' parameter.  Adjust.  Remove references to
10000         async_client_callback and async_client_context.
10001         (linux_nat_close): Adjust.
10002         * record-btrace.c (record_btrace_async): Replace 'callback' and
10003         'context' parameters with boolean 'enable' parameter.  Adjust.
10004         (record_btrace_resume): Adjust.
10005         * record-full.c (record_full_async): Replace 'callback' and
10006         'context' parameters with boolean 'enable' parameter.  Adjust.
10007         (record_full_resume, record_full_core_resume): Adjust.
10008         * remote.c (struct remote_state) <async_client_callback,
10009         async_client_context>: Delete fields.
10010         (remote_start_remote, extended_remote_attach_1, remote_resume)
10011         (extended_remote_create_inferior): Adjust.
10012         (remote_async_serial_handler): Call inferior_event_handler
10013         directly.
10014         (remote_async): Replace 'callback' and 'context' parameters with
10015         boolean 'enable' parameter.  Adjust.
10016         * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
10017         Adjust.
10018         * target-delegates.c: Regenerate.
10019
10020 2015-03-25  Gary Benson <gbenson@redhat.com>
10021             Pedro Alves  <palves@redhat.com>
10022
10023         * target.c (fileio_ft_t): New typedef, define object vector.
10024         (fileio_fhandles): New static variable.
10025         (is_closed_fileio_fh): New macro.
10026         (lowest_closed_fd): New static variable.
10027         (acquire_fileio_fd): New function.
10028         (release_fileio_fd): Likewise.
10029         (fileio_fd_to_fh): New macro.
10030         (target_fileio_open): Wrap the file descriptor on success.
10031         (target_fileio_pwrite): Updated to use wrapped file descriptor.
10032         (target_fileio_pread): Likewise.
10033         (target_fileio_close): Likewise.
10034
10035 2015-03-24  Pedro Alves  <palves@redhat.com>
10036
10037         * thread.c (thread_apply_all_command): Take exited threads into
10038         account.
10039
10040 2015-03-24  Pedro Alves  <palves@redhat.com>
10041
10042         * infrun.c (resume, proceed): Mention
10043         switch_back_to_stepped_thread, not switch_back_to_stepping.
10044
10045 2015-03-24  Pedro Alves  <palves@redhat.com>
10046
10047         * infrun.c (user_visible_resume_ptid): Rewrite going from
10048         most-locked to unlocked instead of the opposite.  Move comment ...
10049         * infrun.h (user_visible_resume_ptid): ... here.
10050
10051 2015-03-24  Pedro Alves  <palves@redhat.com>
10052
10053         * linux-nat.c (linux_nat_resume): Output debug logs before trying
10054         to resume the event lwp.  Use the lwp's ptid instead of the passed
10055         in (maybe wildcard) ptid.
10056         (stop_wait_callback): Tweak debug log output.
10057         (check_stopped_by_breakpoint): Tweak debug log output.  Also dump
10058         TRAP_TRACE.
10059         (linux_nat_filter_event): In debug output, distinguish a
10060         resume_stop SIGSTOP from a delayed SIGSTOP.  Output debug logs
10061         before trying to resume the lwp.
10062
10063 2015-03-24  Joel Brobecker  <brobecker@adacore.com>
10064
10065         * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
10066         pointer indirection.
10067         * gdbtypes.c (get_dyn_prop): Adjust, following change above.
10068         (add_dyn_prop, copy_dynamic_prop_list): Likewise.
10069
10070 2015-03-24  Joel Brobecker  <brobecker@adacore.com>
10071
10072         * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
10073         Renames DYN_ATTR_DATA_LOCATION.
10074         (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
10075         DYN_ATTR_DATA_LOCATION.
10076         * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
10077         instead of DYN_ATTR_DATA_LOCATION.
10078
10079 2015-03-24  Pedro Alves  <palves@redhat.com>
10080
10081         * breakpoint.c (until_break_command): Adjust call to proceed.
10082         * gdbthread.h (struct thread_control_state) <stepping_command>:
10083         New field.
10084         * infcall.c (run_inferior_call): Adjust call to proceed.
10085         * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
10086         Adjust calls to proceed.
10087         (set_step_frame): Set the current thread's step_start_function
10088         here.
10089         (step_once): Adjust calls to proceed.
10090         (jump_command, signal_command, until_next_command)
10091         (finish_backward, finish_forward, proceed_after_attach_callback)
10092         (attach_command_post_wait): Adjust calls to proceed.
10093         * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
10094         (do_target_resume): New function, factored out from ...
10095         (resume): ... here.  Remove 'step' parameter.  Instead, check
10096         currently_stepping to determine whether the thread should be
10097         single-stepped.
10098         (proceed): Remove 'step' parameter and don't set the thread's
10099         step_start_function here.  Adjust call to 'resume'.
10100         (handle_inferior_event): Adjust calls to 'resume'.
10101         (switch_back_to_stepped_thread): Use do_target_resume instead of
10102         'resume'.
10103         (keep_going): Adjust calls to 'resume'.
10104         * infrun.h (proceed): Remove 'step' parameter.
10105         (resume): Likewise.
10106         * windows-nat.c (do_initial_windows_stuff): Adjust call to
10107         'resume'.
10108         * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
10109
10110 2015-03-24  Pedro Alves  <palves@redhat.com>
10111
10112         * gdbthread.h (struct thread_control_state) <stepping_command>:
10113         New field.
10114         * infcmd.c (step_once): Pass step=1 to clear_proceed_status.  Set
10115         the thread's stepping_command field.
10116         * infrun.c (resume): Check the thread's stepping_command flag to
10117         determine which threads should be resumed.  Rename 'entry_step'
10118         local to user_step.
10119         (clear_proceed_status_thread): Clear 'stepping_command'.
10120         (schedlock_applies): Change parameter type to struct thread_info
10121         pointer.  Adjust.
10122         (find_thread_needs_step_over): Remove 'step' parameter.  Adjust.
10123         (switch_back_to_stepped_thread): Adjust calls to
10124         'schedlock_applies'.
10125         (_initialize_infrun): Adjust "set scheduler-locking step" help.
10126
10127 2015-03-24  Pedro Alves  <palves@redhat.com>
10128
10129         * infrun.c (step_start_function): Delete and ...
10130         * gdbthread.h (struct thread_control_state) <step_start_function>:
10131         ... now a field here.
10132         * infrun.c (clear_proceed_status_thread): Clear the thread's
10133         step_start_function.
10134         (proceed, process_event_stop_test, print_stop_event): Adjust.
10135
10136 2015-03-24  Pedro Alves  <palves@redhat.com>
10137
10138         * infrun.c (proceed): No longer handle negative step.
10139
10140 2015-03-24  Gary Benson  <gbenson@redhat.com>
10141
10142         * nat/x86-linux.h (x86_linux_new_thread): New declaration.
10143         (x86_linux_prepare_to_resume): Likewise.
10144         * x86-linux-nat.c (x86_linux_new_thread):
10145         Moved to nat/x86-linux.c.
10146         (x86_linux_prepare_to_resume): Likewise.
10147         * nat/x86-linux.c (x86_linux_new_thread): New function.
10148         (x86_linux_prepare_to_resume): Likewise.
10149
10150 2015-03-24  Gary Benson  <gbenson@redhat.com>
10151
10152         * nat/x86-linux-dregs.h: New file.
10153         * nat/x86-linux-dregs.c: Likewise.
10154         * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
10155         (x86-linux-dregs.o): New rule.
10156         * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
10157         * config/i386/linux64.mh (NATDEPFILES): Likewise.
10158         * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
10159         (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
10160         (x86_linux_dr_get): Likewise.
10161         (x86_linux_dr_set): Likewise.
10162         (x86_linux_dr_get_addr): Likewise.
10163         (x86_linux_dr_get_control): Likewise.
10164         (x86_linux_dr_get_status): Likewise.
10165         (update_debug_registers_callback): Likewise.
10166         (x86_linux_dr_set_control): Likewise.
10167         (x86_linux_dr_set_addr): Likewise.
10168         (x86_linux_update_debug_registers): Likewise.
10169
10170 2015-03-24  Gary Benson  <gbenson@redhat.com>
10171
10172         * x86-linux-nat.c (x86_linux_update_debug_registers):
10173         New function, factored out from...
10174         (x86_linux_prepare_to_resume): ...this.
10175
10176 2015-03-24  Gary Benson  <gbenson@redhat.com>
10177
10178         * x86-linux-nat.c (x86_linux_dr_get): Update comments.
10179         (x86_linux_dr_set): Likewise.
10180         (x86_linux_dr_get_addr): Likewise.
10181         (x86_linux_dr_get_control): Likewise.
10182         (x86_linux_dr_get_status): Likewise.
10183         (update_debug_registers_callback): Likewise.
10184         (x86_linux_dr_set_control): Likewise.
10185         (x86_linux_dr_set_addr): Likewise.
10186         (x86_linux_prepare_to_resume): Likewise.
10187         (x86_linux_new_thread): Likewise.
10188
10189 2015-03-24  Gary Benson  <gbenson@redhat.com>
10190
10191         * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
10192         (x86_linux_new_thread): Rename argument.
10193
10194 2015-03-24  Gary Benson  <gbenson@redhat.com>
10195
10196         * nat/x86-linux.h: New file.
10197         * nat/x86-linux.c: Likewise.
10198         * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
10199         (x86-linux.o): New rule.
10200         * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
10201         * config/i386/linux64.mh (NATDEPFILES): Likewise.
10202         * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
10203         (lwp_set_arch_private_info): New declaration.
10204         (lwp_arch_private_info): Likewise.
10205         * linux-nat.c (lwp_set_arch_private_info): New function.
10206         (lwp_arch_private_info): Likewise.
10207         * x86-linux-nat.c: Include nat/x86-linux.h.
10208         (arch_lwp_info): Removed structure.
10209         (update_debug_registers_callback):
10210         Use lwp_set_debug_registers_changed.
10211         (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
10212         and lwp_set_debug_registers_changed.
10213         (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
10214
10215 2015-03-24  Gary Benson  <gbenson@redhat.com>
10216
10217         * nat/linux-nat.h (ptid_of_lwp): New declaration.
10218         (lwp_is_stopped): Likewise.
10219         (lwp_stop_reason): Likewise.
10220         * linux-nat.c (ptid_of_lwp): New function.
10221         (lwp_is_stopped): Likewise.
10222         (lwp_is_stopped_by_watchpoint): Likewise.
10223         * x86-linux-nat.c (update_debug_registers_callback):
10224         Use lwp_is_stopped.
10225         (x86_linux_prepare_to_resume): Use ptid_of_lwp and
10226         lwp_stop_reason.
10227
10228 2015-03-24  Gary Benson  <gbenson@redhat.com>
10229
10230         * linux-nat.h (linux_stop_lwp): Move declaration to...
10231         * nat/linux-nat.h (linux_stop_lwp): New declaration.
10232
10233 2015-03-24  Gary Benson  <gbenson@redhat.com>
10234
10235         * linux-nat.h: Include nat/linux-nat.h.
10236         (iterate_over_lwps): Move declaration to nat/linux-nat.h.
10237         * nat/linux-nat.h (struct lwp_info): New forward declaration.
10238         (iterate_over_lwps_ftype): New typedef.
10239         (iterate_over_lwps): New declaration.
10240         * linux-nat.h (iterate_over_lwps): Update comment.  Use
10241         iterate_over_lwps_ftype.  Update callback return value check.
10242
10243 2015-03-24  Gary Benson  <gbenson@redhat.com>
10244
10245         * x86-nat.h (x86_debug_reg_state): Move declaration to...
10246         * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
10247
10248 2015-03-24  Gary Benson  <gbenson@redhat.com>
10249
10250         * nat/linux-nat.h (current_lwp_ptid): New declaration.
10251         * linux-nat.c (current_lwp_ptid): New function.
10252         * x86-linux-nat.c: Include nat/linux-nat.h.
10253         (x86_linux_dr_get_addr): Use current_lwp_ptid.
10254         (x86_linux_dr_get_control): Likewise.
10255         (x86_linux_dr_get_status): Likewise.
10256         (x86_linux_dr_set_control): Likewise.
10257         (x86_linux_dr_set_addr): Likewise.
10258
10259 2015-03-24  Antoine Tremblay  <antoine.tremblay@ericsson.com>
10260
10261         PR breakpoints/16466
10262         * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
10263
10264 2015-03-23  Joel Brobecker  <brobecker@adacore.com>
10265
10266         * ser-mingw.c (ser_windows_setparity): Fix indentation.
10267         * ser-unix.c (hardwire_setparity): Likewise.
10268
10269 2015-03-23  Yurij Grechishhev  <yurij.grechishhev@gmail.com>
10270
10271         * NEWS: Mention set/show serial parity command.
10272         * monitor.c (monitor_open): Call serial_setparity.
10273         * remote.c (remote_open_1): Likewise.
10274         * ser-base.c (ser_base_serparity): New function.
10275         * ser-base.h (ser_base_setparity): Add  declaration.
10276         * ser-go32.c (dos_ops): Set "setparity" field.
10277         * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
10278         state.Parity.
10279         (ser_windows_setparity): New function.
10280         (hardwire_ops): Add ser_windows_setparity.
10281         (tty_ops): Add NULL for setparity field.
10282         (pipe_ops): Add ser_base_setparity.
10283         (tcp_ops): Likewise.
10284         * ser-pipe.c (pipe_ops): Likewise.
10285         * ser-tcp.c (tcp_ops): Likewise.
10286         * ser-unix.c (hardwire_setparity): Add declaration.
10287         (hardwire_raw): Don't reset PARENB flag.
10288         (hardwire_setparity): New function.
10289         (hardwire_ops): Add hardwire_setparity.
10290         * serial.c (serial_setparity): New function.
10291         (serial_parity): New global.
10292         (parity_none, parity_odd, parity_even, parity_enums, parity):
10293         New static globals.
10294         (set_parity): New function.
10295         (_initialize_serial): Add set/show serial parity commands.
10296         * serial.h (GDBPARITY_NONE): Define.
10297         (GDBPARITY_ODD): Define.
10298         (GDBPARITY_EVEN): Define.
10299         (serial_setparity) Add declaration.
10300         (struct serial_ops): Add setparity field.
10301         * target.h (serial_parity): Add declaration.
10302
10303 2015-03-23  Keith Seitz  <keiths@redhat.com>
10304
10305         * linespec.c (linespec_lexer_lex_keyword): Update comment.
10306
10307 2015-03-23  Keith Seitz  <keiths@redhat.com>
10308
10309         * breakpoint.c (parse_breakpoint_sals): Use
10310         linespec_lexer_lex_keyword to ascertain if the user specified
10311         a NULL location.
10312         * linespec.c [IF_KEYWORD_INDEX]: Define.
10313         (linespec_lexer_lex_keyword): Export.
10314         (struct ls_parser) <keyword_ok>: Remove.
10315         A keyword is only a keyword if not followed by another keyword.
10316         (linespec_lexer_lex_one): Remove keyword_ok handling.
10317         Add comment explaining why the parsing stream is not advanced
10318         when a keyword is seen.
10319         (parse_linespec): Remove parser->keyword_ok.
10320         * linespec.h (linespec_lexer_lex_keyword): Add declaration.
10321
10322 2015-03-23  Keith Seitz  <keiths@redhat.com>
10323
10324         PR gdb/18021
10325         * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
10326         if we find a static method with DW_AT_vtable_elem_location.
10327
10328 2015-03-21  Eli Zaretskii  <eliz@gnu.org>
10329
10330         * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
10331         before the second loop, to avoid undefined behavior.  Reported by
10332         Anton Blanchard <anton@samba.org>.
10333
10334 2015-03-20  Keven Boell  <keven.boell@intel.com>
10335
10336         * gdbtypes.c (resolve_dynamic_type_internal): Adapt
10337         data_location usage to linked list.
10338         (resolve_dynamic_type_internal): Adapt data_location to
10339         linked list.
10340         (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
10341         (copy_type_recursive, copy_type): Add copy of linked list.
10342         * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
10343         (struct dynamic_prop_list): New struct.
10344         * dwarf2read.c (set_die_type): Set data_location data.
10345
10346 2015-03-20  Pedro Alves  <palves@redhat.com>
10347
10348         * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
10349         inner block and make it const.
10350         * machoread.c (get_archive_prefix_len): Make "lparen" const.
10351
10352 2015-03-20  Pedro Alves  <palves@redhat.com>
10353
10354         * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
10355         * breakpoint.h (set_breakpoint_condition): Update declaration.
10356
10357 2015-03-20  Pedro Alves  <palves@redhat.com>
10358
10359         * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
10360
10361 2015-03-20  Pedro Alves  <palves@redhat.com>
10362
10363         * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
10364
10365 2015-03-20  Pedro Alves  <palves@redhat.com>
10366
10367         * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
10368
10369 2015-03-20  Pedro Alves  <palves@redhat.com>
10370
10371         * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
10372         (nto_init_solib_absolute_prefix): Likewise.
10373
10374 2015-03-20  Pedro Alves  <palves@redhat.com>
10375
10376         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
10377         * spu-tdep.c (spu_gdbarch_init): Make "name" const.
10378
10379 2015-03-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
10380
10381         * config/djgpp/README: Remove gdb.hp.
10382
10383 2015-03-20  Yao Qi  <yao.qi@linaro.org>
10384
10385         * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
10386         set_gdbarch_cannot_step_breakpoint.
10387
10388 2015-03-19  Pedro Alves  <palves@redhat.com>
10389
10390         * linux-nat.c (linux_resume_one_lwp): Rename to ...
10391         (linux_resume_one_lwp_throw): ... this.  Don't handle ESRCH here,
10392         instead call perror_with_name.
10393         (check_ptrace_stopped_lwp_gone): New function.
10394         (linux_resume_one_lwp): Reimplement as wrapper around
10395         linux_resume_one_lwp_throw that swallows errors if the LWP is
10396         gone.
10397         (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
10398         swallows errors if the LWP is gone.  Use
10399         linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
10400
10401 2015-03-19  Pedro Alves  <palves@redhat.com>
10402
10403         * linux-nat.c (status_callback): Return early if the LWP has no
10404         status pending.
10405
10406 2015-03-19  Pedro Alves  <palves@redhat.com>
10407
10408         * linux-nat.c (select_event_lwp_callback): Update comment to no
10409         longer mention SIGTRAP.
10410
10411 2015-03-18  Tristan Gingold  <gingold@adacore.com>
10412
10413         * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
10414         redirection code to ...
10415         (amd64_windows_frame_decode_insns): ... Here.  Fix in prologue
10416         checks.  Fix SAVE_NONVOL operations.  Add debug code and comments.
10417
10418 2015-03-18  Gary Benson <gbenson@redhat.com>
10419
10420         (remote_protocol_features): Remove the "vFile:fstat" feature.
10421         (remote_hostio_fstat): Probe for "vFile:fstat" support.
10422
10423 2015-03-11  Yao Qi  <yao.qi@linaro.org>
10424
10425         PR tdep/18107
10426         * aarch64-linux-tdep.c: Include xml-syscall.h
10427         (aarch64_linux_get_syscall_number): New function.
10428         (aarch64_linux_init_abi): Call
10429         set_gdbarch_get_syscall_number.
10430         * syscalls/aarch64-linux.xml: New file.
10431
10432 2015-03-17  Yurij Grechishhev  <yurij.grechishhev@gmail.com>
10433
10434         * ser-base.h (ser_base_setstopbits): Change second argument name
10435         from "rate" to "num".
10436
10437 2015-03-17  Gary Benson <gbenson@redhat.com>
10438             Luke Allardyce <lukeallardyce@gmail.com>
10439
10440         PR gdb/18131
10441         * common/common-remote-fileio.h (sys/stat.h): New include.
10442         (stuct stat): Remove forward declaration.
10443
10444 2015-03-16  John Baldwin  <jhb@FreeBSD.org>
10445
10446         * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
10447         before writing core register notes.
10448
10449 2015-03-16  Yuanhui Zhang  <asmwarrior@gmail.com>
10450             Pedro Alves  <palves@redhat.com>
10451
10452         * gdb_curses.h (tgetnum): Mark with EXTERN_C.
10453         * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
10454         (tgoto): Wrap with extern "C".
10455
10456 2015-03-16  Pedro Alves  <palves@redhat.com>
10457             Yuanhui Zhang  <asmwarrior@gmail.com>
10458
10459         * stub-termcap.c (tputs): Change prototype.
10460
10461 2015-03-16  Yuanhui Zhang  <asmwarrior@gmail.com>
10462             Pedro Alves  <palves@redhat.com>
10463
10464         * windows-nat.c (struct thread_info_struct): Rename to ...
10465         (struct windows_thread_info_struct): ... this.
10466         (thread_info): Rename to ...
10467         (windows_thread_info): ... this.
10468         All users updated.
10469
10470 2015-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
10471             Pedro Alves  <palves@redhat.com>
10472
10473         * NEWS: New Removed targets and native configurations.
10474
10475 2015-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
10476
10477         Remove HPUX.
10478         * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
10479         (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
10480         (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
10481         ia64-hpux-tdep.h, solib-ia64-hpux.h.
10482         (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
10483         ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
10484         * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
10485         hppa-hpux-tdep.c.
10486         * config/ia64/hpux.mh: Remove file.
10487         * config/pa/hpux.mh: Remove file.
10488         * configure: Rebuilt.
10489         * configure.ac (dlgetmodinfo, somread.o): Remove.
10490         * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
10491         (ia64-*-hpux*): Remove its float format exception.
10492         * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
10493         * hppa-hpux-nat.c: Remove file.
10494         * hppa-hpux-tdep.c: Remove file.
10495         * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
10496         Move them here from hppa-tdep.h
10497         (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
10498         (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
10499         * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
10500         Move them to hppa-tdep.c.
10501         (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
10502         declarations.
10503         * ia64-hpux-nat.c: Remove file.
10504         * ia64-hpux-tdep.c: Remove file.
10505         * ia64-hpux-tdep.h: Remove file.
10506         * inf-ttrace.c: Remove file.
10507         * inf-ttrace.h: Remove file.
10508         * solib-ia64-hpux.c: Remove file.
10509         * solib-ia64-hpux.h: Remove file.
10510         * solib-pa64.c: Remove file.
10511         * solib-pa64.h: Remove file.
10512         * solib-som.c: Remove file.
10513         * solib-som.h: Remove file.
10514         * somread.c: Remove file.
10515
10516 2015-03-13  John Baldwin  <jhb@FreeBSD.org>
10517
10518         * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
10519         * config.in: Regenerate.
10520         * configure: Regenerate.
10521         * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
10522         define.
10523         (fbsd_find_memory_regions): Use kinfo_getvmmap to
10524         enumerate memory regions if present.
10525
10526 2015-03-13  John Baldwin  <jhb@FreeBSD.org>
10527
10528         * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
10529         * i386fbsd-tdep.c: Fix style in various gdb_static_assert
10530         expressions.
10531         (i386fbsd_sigtramp_p): Likewise.
10532
10533 2015-03-12  John Baldwin  <jhb@FreeBSD.org>
10534
10535         * MAINTAINERS (Write After Approval): Add John Baldwin.
10536
10537 2015-03-12  Gary Benson <gbenson@redhat.com>
10538
10539         * solib.c (_initialize_solib): Make "set/show sysroot" use
10540         add_setshow_optional_filename_cmd so it can be restored to
10541         empty after being set.
10542
10543 2015-03-11  Sergio Durigan Junior  <sergiodj@redhat.com>
10544
10545         * Makefile.in (SFILES): New source break-catch-syscall.c.
10546         (COMMON_OBS): New object break-catch-syscall.o.
10547         * break-catch-syscall.c: New file.
10548         * breakpoint.c: Remove inclusion of "xml-syscall.h".
10549         (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
10550         (struct syscall_catchpoint): Likewise.
10551         (dtor_catch_syscall): Likewise.
10552         (catch_syscall_inferior_data): Likewise.
10553         (struct catch_syscall_inferior_data): Likewise.
10554         (get_catch_syscall_inferior_data): Likewise.
10555         (catch_syscall_inferior_data_cleanup): Likewise.
10556         (insert_catch_syscall): Likewise.
10557         (remove_catch_syscall): Likewise.
10558         (breakpoint_hit_catch_syscall): Likewise.
10559         (print_it_catch_syscall): Likewise.
10560         (print_one_catch_syscall): Likewise.
10561         (print_mention_catch_syscall): Likewise.
10562         (print_recreate_catch_syscall): Likewise.
10563         (catch_syscall_breakpoint_ops): Likewise.
10564         (syscall_catchpoint_p): Likewise.
10565         (create_syscall_event_catchpoint): Likewise.
10566         (catch_syscall_split_args): Likewise.
10567         (catch_syscall_command_1): Likewise.
10568         (is_syscall_catchpoint_enabled): Likewise.
10569         (catch_syscall_enabled): Likewise.
10570         (catching_syscall_number): Likewise.
10571         (catch_syscall_completer): Likewise.
10572         (clear_syscall_counts): Likewise.
10573         (initialize_breakpoint_ops): Move initialization of syscall
10574         catchpoints to break-catch-syscall.c.
10575         (_initialize_breakpoint): Move code related to syscall catchpoints
10576         to break-catch-syscall.c.
10577
10578 2015-03-11  Sergio Durigan Junior  <sergiodj@redhat.com>
10579
10580         * breakpoint.c (breakpoint_find_if): New function.
10581         * breakpoint.h (breakpoint_find_if): New prototype.
10582
10583 2015-03-11  Gary Benson <gbenson@redhat.com>
10584
10585         * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
10586         * remote-fileio.c (remote_fileio_to_host_uint): New function.
10587         (remote_fileio_to_host_ulong): Likewise.
10588         (remote_fileio_to_host_mode): Likewise.
10589         (remote_fileio_to_host_time): Likewise.
10590         (remote_fileio_to_host_stat): Likewise.
10591         * remote.c (PACKET_vFile_fstat): New enum value.
10592         (remote_protocol_features): Register the "vFile:fstat" feature.
10593         (remote_hostio_fstat): New function.
10594         (remote_bfd_iovec_stat): Use the above.
10595         (_initialize_remote): Register new "set/show remote
10596         hostio-fstat-packet" command.
10597         * symfile.c (separate_debug_file_exists): Update comment.
10598         * NEWS: Announce new vFile:fstat packet.
10599
10600 2015-03-11  Gary Benson <gbenson@redhat.com>
10601
10602         * common/common-remote-fileio.h: New file.
10603         * common/common-remote-fileio.c: Likewise.
10604         * Makefile.in (SFILES): Add common/common-remote-fileio.c.
10605         (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
10606         (COMMON_OBS): Add common-remote-fileio.o.
10607         (common-remote-fileio.o): New rule.
10608         * remote-fileio.h (common-remote-fileio.h): New include.
10609         * remote-fileio.c (gdb/fileio.h): Do not include.
10610         (remote_fileio_to_be): Moved to common-remote-fileio.h.
10611         (remote_fileio_to_fio_uint): Likewise.
10612         (remote_fileio_to_fio_time): Likewise.
10613         (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
10614         (remote_fileio_to_fio_mode): Likewise.
10615         (remote_fileio_to_fio_ulong): Likewise.
10616         (remote_fileio_to_fio_stat): Likewise.
10617
10618 2015-03-11  Andy Wingo  <wingo@igalia.com>
10619
10620         * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
10621         we were checking the cached type, not the cached dynamic type.
10622
10623 2015-03-11  Andy Wingo  <wingo@igalia.com>
10624
10625         * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
10626         other strings, as these are on the GC'd heap, and will be
10627         collected along with the smob.
10628
10629 2015-03-11  Andy Wingo  <wingo@igalia.com>
10630
10631         * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
10632         (objfile_functions): Bind gdbscm_objfile_progspace to
10633         objfile-progspace.
10634         * guile/lib/gdb.scm: Add objfile-progspace to exports.
10635
10636 2015-03-11  Andy Wingo  <wingo@igalia.com>
10637
10638         * guile/guile.c (_initialize_guile): Disable automatic
10639         finalization, if Guile offers us that possibility.
10640         * guile/guile.c (call_initialize_gdb_module):
10641         * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
10642         finalizers in appropriate places.
10643         * configure.ac (AC_TRY_LIBGUILE): Add a check for
10644         scm_set_automatic_finalization_enabled.
10645         * configure: Regenerated.
10646
10647 2015-03-11  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10648
10649         * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
10650         SAL, if possible.
10651
10652 2015-03-11  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10653
10654         * s390-linux-nat.c (struct arch_lwp_info): New.
10655         (s390_fix_watch_points): Rename to...
10656         (s390_prepare_to_resume): ...this.  Skip the PER info update
10657         unless the watch points have changed.
10658         (s390_refresh_per_info, s390_new_thread): New functions.
10659         (s390_insert_watchpoint): Call s390_refresh_per_info instead of
10660         s390_fix_watch_points.
10661         (s390_remove_watchpoint): Likewise.
10662         (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
10663         Register s390_prepare_to_resume.
10664
10665 2015-03-09  Pedro Alves  <palves@redhat.com>
10666
10667         Revert:
10668         2015-03-07  Pedro Alves  <palves@redhat.com>
10669         * common/gdb_socket.h: New file.
10670         * ser-tcp.c: Include gdb_socket.h.  Don't include netinet/in.h nor
10671         sys/socket.h.
10672         (net_open): Use union gdb_sockaddr_u.
10673
10674 2015-03-07  Pedro Alves  <palves@redhat.com>
10675
10676         * configure.ac (build_warnings): Move -Wmissing-prototypes
10677         -Wdeclaration-after-statement -Wmissing-parameter-type
10678         -Wold-style-declaration -Wold-style-definition to the C-specific
10679         set.
10680         * configure: Regenerate.
10681
10682 2015-03-07  Pedro Alves  <palves@redhat.com>
10683
10684         * common/gdb_socket.h: New file.
10685         * ser-tcp.c: Include gdb_socket.h.  Don't include netinet/in.h nor
10686         sys/socket.h.
10687         (net_open): Use union gdb_sockaddr_u.
10688
10689 2015-03-07  Pedro Alves  <palves@redhat.com>
10690
10691         * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
10692         (exceptions_state_mc_action_iter)
10693         (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10694         Don't define.
10695         [__cplusplus] (try_scope_depth): New global.
10696         [__cplusplus] (exception_try_scope_entry)
10697         (exception_try_scope_exit, gdb_exception_sliced_copy)
10698         (exception_rethrow): New functions.
10699         (throw_exception): In C++ mode, throw
10700         gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
10701         gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
10702         (throw_it): In C++ mode, use try_scope_depth.
10703         * common/common-exceptions.h [!__cplusplus]
10704         (exceptions_state_mc_action_iter)
10705         (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10706         Don't declare.
10707         [__cplusplus] (exception_try_scope_entry)
10708         (exception_try_scope_exit, exception_rethrow): Declare.
10709         [__cplusplus] (struct exception_try_scope): New struct.
10710         [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
10711         C++ exceptions.
10712         (struct gdb_exception_RETURN_MASK_ALL)
10713         (struct gdb_exception_RETURN_MASK_ERROR)
10714         (struct gdb_exception_RETURN_MASK_QUIT): New types.
10715
10716 2015-03-07  Pedro Alves  <palves@redhat.com>
10717
10718         * main.c (handle_command_errors): Remove volatile qualifier from
10719         parameter.
10720
10721 2015-03-07  Pedro Alves  <palves@redhat.com>
10722
10723         * breakpoint.c (save_breakpoints): Adjust to avoid code between
10724         TRY and CATCH.
10725         * gdbtypes.c (safe_parse_type): Remove empty line.
10726         (types_deeply_equal):
10727         * guile/scm-frame.c (gdbscm_frame_name):
10728         * linux-thread-db.c (find_new_threads_once):
10729         * python/py-breakpoint.c (bppy_get_commands):
10730         * record-btrace.c (record_btrace_insert_breakpoint)
10731         (record_btrace_remove_breakpoint, record_btrace_start_replaying)
10732         (record_btrace_start_replaying): Adjust to avoid code between TRY
10733         and CATCH.
10734
10735 2015-03-07  Pedro Alves  <palves@redhat.com>
10736
10737         * common/common-exceptions.c (struct catcher) <exception>: No
10738         longer a pointer to volatile exception.  Now an exception value.
10739         <mask>: Delete field.
10740         (exceptions_state_mc_init): Remove all parameters.  Adjust.
10741         (exceptions_state_mc): No longer pop the catcher here.
10742         (exceptions_state_mc_catch): New function.
10743         (throw_exception): Adjust.
10744         * common/common-exceptions.h (exceptions_state_mc_init): Remove
10745         all parameters.
10746         (exceptions_state_mc_catch): Declare.
10747         (TRY_CATCH): Rename to ...
10748         (TRY): ... this.  Remove EXCEPTION and MASK parameters.
10749         (CATCH, END_CATCH): New.
10750         All callers adjusted.
10751
10752 2015-03-07  Tom Tromey  <tromey@redhat.com>
10753
10754         * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
10755
10756 2015-03-07  Pedro Alves  <palves@redhat.com>
10757
10758         * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10759         (amd64_epilogue_frame_cache): Normal exception handling code.
10760         * break-catch-throw.c (check_status_exception_catchpoint)
10761         (re_set_exception_catchpoint): Ditto.
10762         * cli/cli-interp.c (safe_execute_command):
10763         * cli/cli-script.c (script_from_file): Ditto.
10764         * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
10765         Ditto.
10766         * compile/compile-object-run.c (compile_object_run): Ditto.
10767         * cp-abi.c (baseclass_offset): Ditto.
10768         * cp-valprint.c (cp_print_value): Ditto.
10769         * exceptions.c (catch_exceptions_with_msg):
10770         * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
10771         * frame.c (get_frame_address_in_block_if_available): Ditto.
10772         * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10773         (i386_sigtramp_frame_cache): Ditto.
10774         * infcmd.c (post_create_inferior): Ditto.
10775         * linespec.c (parse_linespec, find_linespec_symbols):
10776         * p-valprint.c (pascal_object_print_value): Ditto.
10777         * parse.c (parse_expression_for_completion): Ditto.
10778         * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
10779         * remote.c (remote_get_noisy_reply): Ditto.
10780         * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
10781         * solib-svr4.c (solib_svr4_r_map): Ditto.
10782
10783 2015-03-06  Gary Benson  <gbenson@redhat.com>
10784
10785         * common/common-utils.h (startswith): New inline function.
10786         All places where this logic was used updated to use the above.
10787
10788 2015-03-05  Pedro Alves  <palves@redhat.com>
10789
10790         PR gdb/18002
10791         * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
10792         after reading the breakpoint's shadow memory.
10793
10794 2015-03-05  Mark Kettenis  <kettenis@gnu.org>
10795
10796         * hppabsd-nat.c: Remove file.
10797         * hppaobsd-nat.c: New file.
10798         * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c.  Add
10799         hppaobsd-nat.c.
10800         * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
10801         hppaobsd-nat.o.
10802
10803 2015-03-04  Pedro Alves  <palves@redhat.com>
10804
10805         * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
10806         (target_decr_pc_after_break): Delete declaration.
10807         * target.c (default_target_decr_pc_after_break)
10808         (target_decr_pc_after_break): Delete.
10809         * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
10810         gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
10811         * linux-thread-db.c (check_event): Likewise.
10812         * infrun.c (adjust_pc_after_break): Likewise.
10813         * darwin-nat.c (cancel_breakpoint): Likewise.
10814         * aix-thread.c (aix_thread_wait): Likewise.
10815         * target-delegates.c: Regenerate.
10816
10817 2015-03-04  Pedro Alves  <palves@redhat.com>
10818
10819         * linux-nat.c (save_sigtrap): Check for breakpoints before
10820         checking watchpoints.
10821         (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
10822         breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
10823         (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
10824         a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
10825         (linux_nat_stopped_by_sw_breakpoint)
10826         (linux_nat_supports_stopped_by_sw_breakpoint)
10827         (linux_nat_stopped_by_hw_breakpoint)
10828         (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
10829         (linux_nat_wait_1): Don't re-increment the PC if relying on
10830         SIGTRAP's siginfo->si_code.
10831         (linux_nat_add_target): Install new target methods.
10832         * linux-thread-db.c (check_event): Don't account for breakpoint PC
10833         offset if the target already adjusted the PC.
10834         * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
10835         (GDB_ARCH_TRAP_BRKPT): New.
10836         (TRAP_HWBKPT): Define if not already defined.
10837
10838 2015-03-04  Pedro Alves  <palves@redhat.com>
10839
10840         * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
10841         * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
10842         Delete field.
10843         <stop_reason>: New field.
10844         (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
10845         (packet_set_cmd_state): New function.
10846         (remote_protocol_features): Register the "swbreak" and "hwbreak"
10847         features.
10848         (remote_query_supported): If not disabled with the corresponding
10849         "set remote foo-packet" command, report support for the swbreak
10850         and hwbreak features.
10851         (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
10852         field.
10853         <stop_reason>: New field.
10854         (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
10855         (remote_wait_as): Adjust.
10856         (remote_stopped_by_sw_breakpoint)
10857         (remote_supports_stopped_by_sw_breakpoint)
10858         (remote_stopped_by_hw_breakpoint)
10859         (remote_supports_stopped_by_hw_breakpoint): New functions.
10860         (remote_stopped_by_watchpoint): New function.
10861         (init_remote_ops): Install them.
10862         (_initialize_remote): Register new "set/show remote
10863         swbreak-feature-packet" and "set/show remote
10864         swbreak-feature-packet" commands.
10865
10866 2015-03-04  Pedro Alves  <palves@redhat.com>
10867
10868         * btrace.h: Include target/waitstatus.h.
10869         (struct btrace_thread_info) <stop_reason>: New field.
10870         * record-btrace.c (record_btrace_step_thread): Use
10871         record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10872         (record_btrace_decr_pc_after_break): Delete.
10873         (record_btrace_stopped_by_sw_breakpoint)
10874         (record_btrace_supports_stopped_by_sw_breakpoint)
10875         (record_btrace_stopped_by_hw_breakpoint)
10876         (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
10877         (init_record_btrace_ops): Install them.
10878         * record-full.c (record_full_hw_watchpoint): Delete and replace
10879         with ...
10880         (record_full_stop_reason): ... this throughout.
10881         (record_full_exec_insn): Adjust.
10882         (record_full_wait_1): Adjust.  No longer re-increment the PC.
10883         (record_full_wait_1): Adjust.  Use
10884         record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10885         (record_full_stopped_by_watchpoint): Adjust.
10886         (record_full_stopped_by_sw_breakpoint)
10887         (record_full_supports_stopped_by_sw_breakpoint)
10888         (record_full_supports_stopped_by_sw_breakpoint)
10889         (record_full_stopped_by_hw_breakpoint)
10890         (record_full_supports_stopped_by_hw_breakpoint): New functions.
10891         (init_record_full_ops, init_record_full_core_ops): Install them.
10892         * record.c (record_check_stopped_by_breakpoint): New function.
10893         * record.h: Include target/waitstatus.h.
10894         (record_check_stopped_by_breakpoint): New declaration.
10895
10896 2015-03-04  Pedro Alves  <palves@redhat.com>
10897
10898         enum lwp_stop_reason -> enum target_stop_reason
10899         * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
10900         (linux_nat_stopped_by_watchpoint, status_callback)
10901         (linux_nat_wait_1): Adjust.
10902         * linux-nat.h (enum lwp_stop_reason): Delete.
10903         (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
10904         * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
10905         * target/waitstatus.h (enum target_stop_reason): New.
10906
10907 2015-03-04  Pedro Alves  <palves@redhat.com>
10908
10909         * breakpoint.c (need_moribund_for_location_type): New function.
10910         (bpstat_stop_status): Don't skipping checking moribund locations
10911         of breakpoint types which the target tell caused a stop.
10912         (program_breakpoint_here_p): New function, factored out from ...
10913         (bp_loc_is_permanent): ... this.
10914         (update_global_location_list): Don't create a moribund location if
10915         the target supports reporting stops of the type of the removed
10916         breakpoint.
10917         * breakpoint.h (program_breakpoint_here_p): New declaration.
10918         * infrun.c (adjust_pc_after_break): Return early if the target has
10919         already adjusted the PC.  Add comments.
10920         (handle_signal_stop): If nothing explains a signal, and the target
10921         tells us the stop was caused by a software breakpoint, check if
10922         there's a breakpoint instruction in the memory.  If so, adjust the
10923         PC before presenting the stop to the user.  Otherwise, ignore the
10924         trap.  If nothing explains a signal, and the target tells us the
10925         stop was caused by a hardware breakpoint, ignore the trap.
10926         * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
10927         to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
10928         to_supports_stopped_by_hw_breakpoint>: New fields.
10929         (target_stopped_by_sw_breakpoint)
10930         (target_supports_stopped_by_sw_breakpoint)
10931         (target_stopped_by_hw_breakpoint)
10932         (target_supports_stopped_by_hw_breakpoint): Define.
10933         * target-delegates.c: Regenerate.
10934
10935 2015-03-04  Pedro Alves  <palves@redhat.com>
10936
10937         * infrun.c (follow_fork_inferior): Use the whole of the
10938         inferior_ptid and pending_follow.related_pid ptids instead of
10939         building ptids from the process components.  Adjust verbose output
10940         to use target_pid_to_str.
10941         * linux-nat.c (linux_child_follow_fork): Use the whole of the
10942         inferior_ptid and pending_follow.related_pid ptids instead of
10943         building ptids from the process components.
10944
10945 2015-03-04  Mark Kettenis  <kettenis@gnu.org>
10946
10947         * inf-ptrace.c [PT_GET_PROCESS_STATE]
10948         (inf_ptrace_insert_fork_catchpoint): New function.
10949         (inf_ptrace_remove_fork_catchpoint): New function.
10950         (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
10951
10952 2015-03-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10953
10954         * s390-linux-tdep.c (s390_register_name): Return empty string
10955         instead of NULL for registers that shouldn't be visible.
10956
10957 2015-03-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10958
10959         * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
10960         XML file for 64-bit targets.
10961
10962 2015-03-03  Simon Marchi  <simon.marchi@ericsson.com>
10963
10964         * target.h (find_default_create_inferior): Remove declaration.
10965         (find_default_attach): Likewise.
10966
10967 2015-03-03  Pedro Alves  <palves@redhat.com>
10968
10969         * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
10970         Use ptid_get_pid to get the overall process id when resuming all
10971         threads.
10972
10973 2015-03-03  Pedro Alves  <palves@redhat.com>
10974
10975         * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
10976         the lwp field of ptid.  Pass the full ptid to get_thread_regcache.
10977         * inf-ptrace.c (get_ptrace_pid): New function.
10978         (inf_ptrace_resume): Use it.
10979         * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
10980         to the lower layer.
10981
10982 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
10983
10984         * nat/linux-btrace.c: Include sys/utsname.h.
10985         (linux_determine_kernel_ptr_bits): New.
10986         (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
10987         * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
10988         ptr_bits.
10989
10990 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
10991
10992         * btrace.c (ftrace_update_function): Treat return as tailcall for
10993         "_dl_runtime_resolve".
10994
10995 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
10996
10997         * btrace.h (btrace_function) <lbegin, lend>: Remove.
10998         * btrace.c (ftrace_debug): Do not print the line range.
10999         (ftrace_skip_file, ftrace_update_lines): Remove.
11000         (ftrace_new_function): Remove lbegin and lend initialization.
11001         (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
11002         * record-btrace.c (btrace_compute_src_line_range): New.
11003         (btrace_call_history_src_line): Call btrace_compute_src_line_range.
11004
11005 2015-03-02  Pedro Alves  <palves@redhat.com>
11006
11007         * infrun.c (follow_exec): Delete all threads of the process except
11008         the event thread.  Extended comments.
11009
11010 2015-03-02  Joel Brobecker  <brobecker@adacore.com>
11011
11012         * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
11013
11014 2015-03-02  Joel Brobecker  <brobecker@adacore.com>
11015
11016         * utils.h: Remove <stdbool.h> #include.
11017         (producer_is_gcc): Change return type to "int".
11018         * utils.c (producer_is_gcc): Change return type to int.
11019         Return 1 instead of true, and 0 instead of false.
11020         Adjust function documentation accordingly.
11021
11022 2015-03-02  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11023
11024         * s390-linux-nat.c (have_regset_vxrs): New static variable.
11025         (s390_linux_fetch_inferior_registers): Handle vector registers, if
11026         present.
11027         (s390_linux_store_inferior_registers): Likewise.
11028         (s390_get_hwcap): Remove function.  Embed its logic...
11029         (s390_read_description): ...here.  Yield a target description with
11030         vector registers if applicable.
11031         * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
11032         "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
11033         "features/s390x-tevx-linux64.c".
11034         (struct gdbarch_tdep) <v0_full_regnum>: New field.
11035         (s390_dwarf_regmap): Add vector registers.  Remove bogus entries
11036         for "GNU/Linux-specific registers".
11037         (s390_dwarf_reg_r0l): New enum value.
11038         (s390_dwarf_reg_to_regnum): Support vector registers.
11039         (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
11040         of GPR lower halves.
11041         (regnum_is_vxr_full): New function.
11042         (s390_register_name): New function.
11043         (s390_pseudo_register_name): Handle v0-v15, which are composed of
11044         f0-f15 and v0l-v15l.
11045         (s390_pseudo_register_type): Likewise.
11046         (s390_pseudo_register_read): Likewise.
11047         (s390_pseudo_register_write): Likewise.
11048         (s390_value_from_register): Account for the fact that values are
11049         placed left-justified in vector registers.
11050         (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
11051         the vector reggroup and omit them from the general reggroup.
11052         (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
11053         (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
11054         (s390_iterate_over_regset_sections): Add iterations for the two
11055         new vector regsets.
11056         (s390_core_read_description): Yield a target description with
11057         vector registers if applicable.
11058         (s390_gdbarch_init): Handle target descriptions with vector
11059         registers.  Add "register_name" gdbarch method.
11060         (_initialize_s390_tdep): Call new tdesc initialization functions.
11061         * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
11062         (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
11063         (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
11064         (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
11065         (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
11066         (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
11067         (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
11068         (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
11069         (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
11070         (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
11071         (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
11072         (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
11073         (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
11074         (S390_NUM_REGS): Adjust value.
11075         (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
11076         (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11077         (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
11078         * NEWS: Announce S/390 vector register support.
11079
11080 2015-03-02  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11081
11082         * features/s390-tevx-linux64.xml: New file.
11083         * features/s390-vx-linux64.xml: New file.
11084         * features/s390-vx.xml: New file.
11085         * features/s390x-tevx-linux64.xml: New file.
11086         * features/s390x-vx-linux64.xml: New file.
11087         * features/Makefile (WHICH): Add s390-vx-linux64,
11088         s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
11089         (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
11090         (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
11091         macros.
11092         * features/s390-tevx-linux64.c: New generated file.
11093         * features/s390-vx-linux64.c: Likewise.
11094         * features/s390x-tevx-linux64.c: Likewise.
11095         * features/s390x-vx-linux64.c: Likewise.
11096         * regformats/s390-tevx-linux64.dat: Likewise.
11097         * regformats/s390-vx-linux64.dat: Likewise.
11098         * regformats/s390x-tevx-linux64.dat: Likewise.
11099         * regformats/s390x-vx-linux64.dat: Likewise.
11100
11101 2015-02-28  Doug Evans  <xdje42@gmail.com>
11102
11103         * symtab.h (struct symtab) <next>: Fix comment.
11104
11105 2015-02-27  Simon Marchi  <simon.marchi@ericsson.com>
11106
11107         * python/python.c (python_GdbModuleDef): Rename GdbMethods to
11108         python_GdbMethods.
11109
11110 2015-02-27  Pedro Alves  <palves@redhat.com>
11111
11112         * dtrace-probe.c (dtrace_probe_ops): Make extern.
11113
11114 2015-02-27  Pedro Alves  <palves@redhat.com>
11115
11116         * common/common-exceptions.h (exception_none): Declare.
11117         * common/common-exceptions.c (exception_none): Moved from
11118         exceptions.c.
11119         (exceptions_state_mc_init): Use exception_none.
11120         * exceptions.c (exception_none): Move to
11121         common/common-exceptions.c.
11122         * exceptions.h (exception_none): Move to
11123         common/common-exceptions.h.
11124
11125 2015-02-27  Pedro Alves  <palves@redhat.com>
11126
11127         * main.c (catch_command_errors, catch_command_errors_const):
11128         Remove 'mask' argument.  Adjust.
11129         (captured_main): Adjust callers.
11130
11131 2015-02-27  Pedro Alves  <palves@redhat.com>
11132
11133         * python/python-internal.h: Include "extension-priv.h".
11134
11135 2015-02-27  Pedro Alves  <palves@redhat.com>
11136
11137         * breakpoint.h (enum print_stop_action): Move further up in the
11138         file.
11139
11140 2015-02-27  Pedro Alves  <palves@redhat.com>
11141
11142         * gdbarch.sh: Include regcache.h.
11143         * gdbarch.h: Regenerate.
11144
11145 2015-02-27  Pedro Alves  <palves@redhat.com>
11146
11147         * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
11148         Remove duplicate const.
11149         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
11150         duplicate const.
11151
11152 2015-02-27  Pedro Alves  <palves@redhat.com>
11153
11154         * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
11155         * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
11156         * features/feature_to_c.sh: Tag the generated xml_builtin array
11157         with extern const in C++ mode.
11158
11159 2015-02-27  Tom Tromey  <tromey@redhat.com>
11160
11161         * minidebug.c (struct lzma_stream): Rename to ...
11162         (struct gdb_lzma_stream): ... this.
11163         (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
11164
11165 2015-02-27  Pedro Alves  <palves@redhat.com>
11166
11167         * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
11168         function.
11169         (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
11170         (mi_cmd_stack_list_variables): Use it.
11171
11172 2015-02-27  Pedro Alves  <palves@redhat.com>
11173
11174         * x86-linux-nat.c (u_debugreg_offset): New function.
11175         (x86_linux_dr_get, x86_linux_dr_set): Use it.
11176
11177 2015-02-27  Pedro Alves  <palves@redhat.com>
11178
11179         * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
11180         declaration.
11181         Include break-common.h.
11182
11183 2015-02-27  Tom Tromey  <tromey@redhat.com>
11184             Pedro Alves <palves@redhat.com>
11185
11186         * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
11187         local used to iterate over enums.
11188         * completer.c (signal_completer): Likewise.
11189         * i386-tdep.c (i386_stap_parse_special_token): Likewise.
11190         * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
11191         * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
11192         * tui/tui-layout.c (next_layout, prev_layout): Likewise.
11193         * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
11194         (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
11195         * tui-wingeneral.c (tui_refresh_all):  Likewise.
11196
11197 2015-02-27  Pedro Alves  <palves@redhat.com>
11198
11199         * target.h: Include "infrun.h".
11200
11201 2015-02-27  Pedro Alves  <palves@redhat.com>
11202
11203         * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11204
11205 2015-02-27  Pedro Alves  <palves@redhat.com>
11206
11207         * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
11208         (IPA_SYM): Use it.
11209         * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
11210
11211 2015-02-27  Pedro Alves  <palves@redhat.com>
11212
11213         * cli-out.c (_rl_erase_entire_line): Move declaration out of
11214         cli_mld_erase_entire_line, and make it extern "C".
11215         * common/common-defs.h (EXTERN_C): New.
11216         * completer.c (_rl_completion_prefix_display_length)
11217         (_rl_print_completions_horizontally, QSFUNC): Move declarations
11218         out of gdb_display_match_list_1.
11219         (_rl_qsort_string_compare): Move declaration out of
11220         gdb_display_match_list_1, and make it extern "C".
11221         * defs.h (re_comp): Use EXTERN_C.
11222         * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
11223         and make it extern "C".
11224         (monstartup): Move declaration out of maintenance_set_profile_cmd,
11225         and make it extern "C".
11226         (main): Move declaration out of maintenance_set_profile_cmd.
11227         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
11228         EXTERN_C.
11229
11230 2015-02-27  Pedro Alves  <palves@redhat.com>
11231
11232         * python/python.c (GdbMethods): Rename to ...
11233         (python_GdbMethods): ... this and make extern.
11234         (GdbModuleDef): Rename to ...
11235         (python_GdbModuleDef): ... this and make extern.
11236
11237 2015-02-27  Pedro Alves  <palves@redhat.com>
11238
11239         * record-btrace.c (set_record_btrace_cmdlist)
11240         (show_record_btrace_cmdlist): Remove redefinitions.
11241
11242 2015-02-27  Tom Tromey  <tromey@redhat.com>
11243             Pedro Alves  <palves@redhat.com>
11244
11245         * dwarf2-frame.c (enum cfa_how_kind, struct
11246         dwarf2_frame_state_reg_info): Move out of struct
11247         dwarf2_frame_state.
11248         * dwarf2read.c (struct tu_stats): Move out of struct
11249         dwarf2_per_objfile.
11250         (struct file_entry): Move out of struct line_header.
11251         (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
11252         typedef_field_list): Move out of struct field_info.
11253         * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
11254         Move out of struct dynamic_prop.
11255         (union type_owner, union field_location, struct field, struct
11256         range_bounds, union type_specific): Move out of struct main_type.
11257         (struct fn_fieldlist, struct fn_field, struct typedef_field)
11258         (VOFFSET_STATIC): Move out of struct cplus_struct_type.
11259         (struct call_site_target, union call_site_parameter_u, struct
11260         call_site_parameter): Move out of struct call_site.
11261         * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
11262         m32c_prologue.
11263         (enum srcdest_kind): Move out of struct srcdest.
11264         * main.c (enum cmdarg_kind): Move out of struct cmdarg.
11265         * prologue-value.h (enum prologue_value_kind): Move out of struct
11266         prologue_value.
11267         * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
11268         gdbarch_tdep.
11269         * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
11270         out of struct field_info.
11271         * symfile.h (struct other_sections): Move out of struct
11272         section_addr_info.
11273         * symtab.c (struct symbol_cache_slot): Move out struct
11274         block_symbol_cache.
11275         * target-descriptions.c (enum tdesc_type_kind): Move out of
11276         typedef struct tdesc_type.
11277         * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
11278         struct tui_line_or_address.
11279         * value.c (enum internalvar_kind, union internalvar_data): Move
11280         out of struct internalvar.
11281         * xtensa-tdep.h (struct ctype_cache): Move out of struct
11282         gdbarch_tdep.
11283
11284 2015-02-27  Tom Tromey  <tromey@redhat.com>
11285             Pedro Alves  <palves@redhat.com>
11286
11287         Rename symbols whose names are reserved C++ keywords throughout.
11288
11289 2015-02-27  Pedro Alves  <palves@redhat.com>
11290
11291         * Makefile.in (COMPILER): New, get it from autoconf.
11292         (COMPILE.pre, CC_LD): Use COMPILER.
11293         (CXX): Get from autoconf instead.
11294         (CXX_FOR_TARGET): Default to g++ instead of gcc.
11295         * acinclude.m4: Include build-with-cxx.m4.
11296         * build-with-cxx.m4: New file.
11297         * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11298         Disable -Werror by default if building in C++ mode.
11299         (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11300         -Wno-narrowing in C++ mode.  Only enable -Wpointer-sign in C mode.
11301         Run supported-warning-flags tests with the C++ compiler.
11302         Save/restore CXXFLAGS too.
11303         * configure: Regenerate.
11304
11305 2015-02-27  Pedro Alves  <palves@redhat.com>
11306
11307         * libiberty.m4: New file.
11308         * acinclude.m4: Include libiberty.m4.
11309         * configure.ac: Call libiberty_INIT.
11310         * config.in, configure: Regenerate.
11311
11312 2015-02-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11313
11314         * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
11315         31-bit targets, but 64-bit targets as well.
11316         (s390_gnu_triplet_regexp): New function.
11317         (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
11318         64-bit targets as well.  Set the gnu_triplet_regexp gdbarch
11319         method.
11320
11321 2015-02-27  Jon TURNEY  <jon.turney@dronecode.org.uk>  (tiny patch)
11322
11323         * windows-nat.c (CONTEXT_DEBUGGER): Remove.
11324         (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS.  Incorporate flags
11325         from CONTEXT_DEBUGGER.
11326
11327 2015-02-26  Doug Evans  <dje@google.com>
11328
11329         * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
11330         CHECK_TYPEDEF.
11331         (set_type_vptr_fieldno): Ditto.
11332         (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
11333         * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
11334
11335 2015-02-26  Pedro Alves  <palves@redhat.com>
11336
11337         * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
11338         * complaints.c (vcomplaint): Pass argument FMT directly to
11339         printf-like functions instead of complaint->fmt.
11340         * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
11341         * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
11342         * compile/compile-loc2c.c (pushf, unary, binary): Add
11343         ATTRIBUTE_PRINTF.
11344         (do_compile_dwarf_expr_to_c): Pass string literal as format string
11345         to pushf.
11346         (BINARY): Pass string literal as format string to 'binary'.
11347         * compile/compile-object-load.c (link_callbacks_einfo): Add
11348         ATTRIBUTE_PRINTF.
11349         * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
11350
11351 2015-02-26  Pedro Alves  <palves@redhat.com>
11352
11353         * windows-termcap.c: Rename to ...
11354         * stub-termcap.c: ... this.  Adjust header line.
11355         * Makefile.in (SFILES): Refer to stub-termcap.c instead of
11356         windows-termcap.c.
11357         * configure: Regenerate.
11358         * configure.ac: Refer to stub-termcap.o instead of
11359         windows-termcap.o.
11360         * gdb_curses.h: Mention stub-termcap.c instead of
11361         windows-termcap.c.
11362
11363 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
11364
11365         * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
11366         (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
11367
11368 2015-02-26  Antoine Tremblay  <antoine.tremblay@ericsson.com>
11369
11370         * gdb/infcmd.c (print_return_value): use type_to_string to print type.
11371
11372 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
11373
11374         * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
11375         bfd_canonicalize_symtab.
11376
11377 2015-02-25  John Baldwin  <jhb@FreeBSD.org>
11378
11379         * amd64fbsd-nat.c: Include sys/user.h.
11380         (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
11381         instead of KERN_PS_STRINGS to locate the signal trampoline.
11382         * i386fbsd-nat.c: Include sys/user.h.
11383         (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
11384         instead of KERN_PS_STRINGS to locate the signal trampoline.
11385         * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
11386         (amd64fbsd_sigtramp_p): New.
11387         (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
11388         longer set default values.
11389         (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
11390         * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
11391         (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
11392         (i386fbsd_freebsd4_sigtramp_start)
11393         (i386fbsd_freebsd4_sigtramp_middle)
11394         (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
11395         (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
11396         (i386fbsd_sigtramp_p): New.
11397         (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
11398         longer set default values.
11399         (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
11400
11401 2015-02-25  John Baldwin  <jhb@freebsd.org>
11402
11403         * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
11404         get_frame_register instead of frame_unwind_register_unsigned.
11405
11406 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
11407
11408         PR build/18033
11409         * compile/compile-c-support.c (c_compute_program): Change // comment.
11410         * compile/compile-object-load.c (setup_sections): Change // comment.
11411
11412 2015-02-26  Joel Brobecker  <brobecker@adacore.com>
11413
11414         PR build/18033:
11415         * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
11416
11417 2015-02-23  Pedro Alves  <palves@redhat.com>
11418
11419         * remote.c (skip_to_semicolon): New function.
11420         (remote_parse_stop_reply) <T stop reply>: Use it.  Don't
11421         special case the stop reasons that look like hex numbers
11422         upfront.  Instead handle real register numbers after matching
11423         all the known stop reasons.
11424
11425 2015-02-21  Doug Evans  <dje@google.com>
11426
11427         PR c++/17976, symtab/17821
11428         * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
11429         is_in_anonymous.  All callers updated.
11430         (find_symbol_in_baseclass): Ditto.
11431         (cp_lookup_nested_symbol_1): Ditto.  Don't search all static blocks
11432         for symbols in an anonymous namespace.
11433         * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
11434         DW_AT_name directly.
11435         (dwarf2_name): Convert missing namespace name to
11436         CP_ANONYMOUS_NAMESPACE_STR.
11437
11438 2015-02-20  Pedro Alves  <palves@redhat.com>
11439
11440         * linux-nat.c (linux_handle_extended_wait): Call
11441         thread_db_notice_clone whenever a new clone LWP is detected.
11442         (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
11443         functions.
11444         * linux-nat.h (thread_db_attach_lwp): Delete declaration.
11445         (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
11446         (linux_unstop_all_lwps): Declare.
11447         * linux-thread-db.c (struct thread_get_info_inout): Delete.
11448         (thread_get_info_callback): Delete.
11449         (thread_from_lwp): Use td_thr_get_info and record_thread.
11450         (thread_db_attach_lwp): Delete.
11451         (thread_db_notice_clone): New function.
11452         (try_thread_db_load_1): If /proc is mounted and shows the
11453         process'es task list, walk over all LWPs and call thread_from_lwp
11454         instead of relying on td_ta_thr_iter.
11455         (attach_thread): Don't call check_thread_signals here.  Split the
11456         tail part of the function (which adds the thread to the core GDB
11457         thread list) to ...
11458         (record_thread): ... this function.  Call check_thread_signals
11459         here.
11460         (thread_db_wait): Don't call thread_db_find_new_threads_1.  Always
11461         call thread_from_lwp.
11462         (thread_db_update_thread_list): Rename to ...
11463         (thread_db_update_thread_list_org): ... this.
11464         (thread_db_update_thread_list): New function.
11465         (thread_db_find_thread_from_tid): Delete.
11466         (thread_db_get_ada_task_ptid): Simplify.
11467         * nat/linux-procfs.c: Include <sys/stat.h>.
11468         (linux_proc_task_list_dir_exists): New function.
11469         * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
11470
11471 2015-02-20  Pedro Alves  <palves@redhat.com>
11472
11473         * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
11474         main LWP.  Handle the case of waitpid returning 0 if we're already
11475         attached to the LWP.  Don't set the LWP's last_resume_kind to
11476         resume_stop if we already knew about the LWP.
11477         (linux_nat_filter_event): Add debug logs.
11478
11479 2015-02-20  Pedro Alves  <palves@redhat.com>
11480
11481         * target.h (forward_target_decr_pc_after_break): Delete
11482         declaration.
11483
11484 2015-02-20  Pedro Alves  <palves@redhat.com>
11485
11486         PR threads/18006
11487         * linux-thread-db.c (thread_get_info_callback): Return early if
11488         the thread's lwp id is -1.
11489
11490 2015-02-20  Joel Brobecker  <brobecker@adacore.com>
11491
11492         GDB 7.9 released.
11493
11494 2015-02-19  Steve Ellcey  <sellcey@imgtec.com>
11495
11496         * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
11497         (dtrace_get_probes) Change type of variable 'dof'.
11498
11499 2015-02-19  Antoine Tremblay  <antoine.tremblay@ericsson.com>
11500
11501         PR breakpoints/16812
11502         * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
11503         * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
11504         * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
11505
11506 2015-02-19  David Taylor  <dtaylor@emc.com>
11507
11508         * common/ax.def (setv): Fix consumed entry in setv DEFOP.
11509
11510 2015-02-18  Patrick Palka  <patrick@parcs.ath.cx>
11511
11512         * tui/tui-io.c (tui_handle_resize_during_io): Remove this
11513         function.
11514         (tui_putc): Don't call tui_handle_resize_during_io.
11515         (tui_getc): Likewise.
11516         (tui_mld_getc): Likewise.
11517         * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
11518         (tui_sigwinch_token): New static variable.
11519         (tui_initialize_win): Adjust documentation.  Set
11520         tui_sigwinch_token.
11521         (tui_async_resize_screen): New asynchronous callback.
11522         (tui_sigwinch_handler): Adjust documentation.  Asynchronously
11523         invoke tui_async_resize_screen.
11524
11525 2015-02-18  Jose E. Marchesi  <jose.marchesi@oracle.com>
11526
11527         * configure: Regenerated.
11528         * configure.ac: Use GDB_AC_TRANSFORM.
11529         * Makefile.in (aclocal_m4_deps): Added transform.m4.
11530         * acinclude.m4: sinclude transform.m4.
11531         * transform.m4: New file.
11532         (GDB_AC_TRANSFORM): New macro.
11533
11534 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11535
11536         * NEWS: Announce the support for DTrace SDT probes.
11537
11538 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11539
11540         * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
11541         (amd64_dtrace_parse_probe_argument): New function.
11542         (amd64_dtrace_probe_is_enabled): Likewise.
11543         (amd64_dtrace_enable_probe): Likewise.
11544         (amd64_dtrace_disable_probe): Likewise.
11545         (amd64_linux_init_abi): Register the
11546         `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
11547         `gdbarch_dtrace_disable_probe' and
11548         `gdbarch_dtrace_probe_is_enabled' hooks.
11549         (amd64_dtrace_disabled_probe_sequence_1): New constant.
11550         (amd64_dtrace_disabled_probe_sequence_2): Likewise.
11551         (amd64_dtrace_enable_probe_sequence): Likewise.
11552         (amd64_dtrace_disable_probe_sequence): Likewise.
11553
11554 2015-01-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11555
11556         * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
11557         the -probe-dtrace new vpossible value for PROBE_MODIFIER.
11558         * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
11559         handle ELF files.
11560         * Makefile.in (SFILES): dtrace-probe.c added.
11561         * configure: Regenerate.
11562         * dtrace-probe.c: New file.
11563         (SHT_SUNW_dof): New constant.
11564         (dtrace_probe_type): New enum.
11565         (dtrace_probe_arg): New struct.
11566         (dtrace_probe_arg_s): New typedef.
11567         (struct dtrace_probe_enabler): New struct.
11568         (dtrace_probe_enabler_s): New typedef.
11569         (dtrace_probe): New struct.
11570         (dtrace_probe_is_linespec): New function.
11571         (dtrace_dof_sect_type): New enum.
11572         (dtrace_dof_dofh_ident): Likewise.
11573         (dtrace_dof_encoding): Likewise.
11574         (DTRACE_DOF_ENCODE_LSB): Likewise.
11575         (DTRACE_DOF_ENCODE_MSB): Likewise.
11576         (dtrace_dof_hdr): New struct.
11577         (dtrace_dof_sect): Likewise.
11578         (dtrace_dof_provider): Likewise.
11579         (dtrace_dof_probe): Likewise.
11580         (DOF_UINT): New macro.
11581         (DTRACE_DOF_PTR): Likewise.
11582         (DTRACE_DOF_SECT): Likewise.
11583         (dtrace_process_dof_probe): New function.
11584         (dtrace_process_dof): Likewise.
11585         (dtrace_build_arg_exprs): Likewise.
11586         (dtrace_get_arg): Likewise.
11587         (dtrace_get_probes): Likewise.
11588         (dtrace_get_probe_argument_count): Likewise.
11589         (dtrace_can_evaluate_probe_arguments): Likewise.
11590         (dtrace_evaluate_probe_argument): Likewise.
11591         (dtrace_compile_to_ax): Likewise.
11592         (dtrace_probe_destroy): Likewise.
11593         (dtrace_gen_info_probes_table_header): Likewise.
11594         (dtrace_gen_info_probes_table_values): Likewise.
11595         (dtrace_probe_is_enabled): Likewise.
11596         (dtrace_probe_ops): New variable.
11597         (info_probes_dtrace_command): New function.
11598         (_initialize_dtrace_probe): Likewise.
11599         (dtrace_type_name): Likewise.
11600
11601 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11602
11603         * gdbarch.sh (dtrace_parse_probe_argument): New.
11604         (dtrace_probe_is_enabled): Likewise.
11605         (dtrace_enable_probe): Likewise.
11606         (dtrace_disable_probe): Likewise.
11607         * gdbarch.c: Regenerate.
11608         * gdbarch.h: Regenerate.
11609
11610 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11611
11612         * stap-probe.c (stap_probe_ops): Add NULLs in the static
11613         stap_probe_ops for `enable_probe' and `disable_probe'.
11614         * probe.c (enable_probes_command): New function.
11615         (disable_probes_command): Likewise.
11616         (_initialize_probe): Define the cli commands `enable probe' and
11617         `disable probe'.
11618         (parse_probe_linespec): New function.
11619         (info_probes_for_ops): Use parse_probe_linespec.
11620         * probe.h (probe_ops): New hooks `enable_probe' and
11621         `disable_probe'.
11622
11623 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11624
11625         * probe.c (compute_probe_arg): Moved from stap-probe.c
11626         (compile_probe_arg): Likewise.
11627         (probe_funcs): Likewise.
11628         * stap-probe.c (compute_probe_arg): Moved to probe.c.
11629         (compile_probe_arg): Likewise.
11630         (probe_funcs): Likewise.
11631
11632 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11633
11634         * probe.c (print_ui_out_not_applicables): New function.
11635         (exists_probe_with_pops): Likewise.
11636         (info_probes_for_ops): Do not include column headers for probe
11637         types for which no probe has been actually found on any object.
11638         Also invoke `print_ui_out_not_applicables' in order to match the
11639         column rows with the header when probes of several types are
11640         listed.
11641         Print the "Type" column.
11642         * probe.h (probe_ops): Added a new probe operation `type_name'.
11643         * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
11644         (stap_type_name): New function.
11645
11646 2015-02-17  Patrick Palka  <patrick@parcs.ath.cx>
11647
11648         * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
11649         (key_is_command_char): Delete.
11650
11651 2015-02-17  Pedro Alves  <palves@redhat.com>
11652
11653         * tui/tui.c (tui_enable): Resize windows before anything
11654         might show a window.
11655
11656 2015-02-17  Max Ostapenko  <m.ostapenko@partner.samsung.com>
11657
11658         PR gdb/17984
11659         * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
11660         (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
11661         call.
11662         * aarch64-tdep.h (tdesc_aarch64): Declare.
11663
11664 2015-02-12  Mark Wielaard  <mjw@redhat.com>
11665
11666         * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
11667
11668 2015-02-13  Doug Evans  <dje@google.com>
11669
11670         * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
11671         anonymous_namespace to is_in_anonymous for consistency with the rest
11672         of the file.
11673         (cp_lookup_bare_symbol): Fix typo in comment.
11674         (cp_search_static_and_baseclasses): Ditto.
11675         (search_symbol_list): Use vertical space in comment better.
11676         (reset_directive_searched): Ditto. Fix typo.
11677         (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
11678
11679 2015-02-13  Yao Qi  <yao.qi@arm.com>
11680
11681         * MAINTAINERS: Update my email address.
11682
11683 2015-02-12  Doug Evans  <dje@google.com>
11684
11685         * symtab.c (completion_list_add_name): Fix memory leak.
11686
11687 2015-02-12  Doug Evans  <dje@google.com>
11688
11689         * completer.c (complete_line): Remove incorrect comment.
11690
11691 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11692
11693         * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
11694         (py_print_frame): Use RETURN_MASK_ERROR.
11695
11696 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11697
11698         * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
11699         function comment.  Wrap all function that can throw in cleanups.
11700         (gdbpy_apply_frame_filter): Wrap all function that can throw in
11701         cleanups.
11702
11703 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11704
11705         * python/py-framefilter.c (py_print_frame): Substitute goto error.
11706         Remove the error label.
11707
11708 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11709
11710         * python/py-framefilter.c (py_print_frame): Put conditional code paths
11711         with goto first, indent the former else codepath left.  Put variable
11712         'elided' to a new inner block.
11713
11714 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11715
11716         * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
11717
11718 2015-02-11  Pedro Alves  <palves@redhat.com>
11719
11720         * xcoffread.c (within_function): Delete.
11721
11722 2015-02-11  Tom Tromey  <tromey@redhat.com>
11723             Pedro Alves <palves@redhat.com>
11724
11725         * breakpoint.c (base_breakpoint_ops): Delete.
11726         * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
11727         * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
11728         * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
11729         * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
11730         * python/py-arch.c (arch_object_type): Make extern.
11731         * python/py-block.c (block_syms_iterator_object_type): Make extern.
11732         * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
11733         * python/py-cmd.c (cmdpy_object_type): Make extern.
11734         * python/py-continueevent.c (continue_event_object_type)
11735         * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
11736         parameter.  Update all callers.
11737         * python/py-evtregistry.c (eventregistry_object_type): Make extern.
11738         * python/py-exitedevent.c (exited_event_object_type): Make extern.
11739         * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
11740         * python/py-function.c (fnpy_object_type): Make extern.
11741         * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
11742         * python/py-infevents.c (call_pre_event_object_type)
11743         (inferior_call_post_event_object_type).
11744         (memory_changed_event_object_type): Make extern.
11745         * python/py-infthread.c (thread_object_type): Make extern.
11746         * python/py-lazy-string.c (lazy_string_object_type): Make extern.
11747         * python/py-linetable.c (linetable_entry_object_type)
11748         (linetable_object_type, ltpy_iterator_object_type): Make extern.
11749         * python/py-newobjfileevent.c (new_objfile_event_object_type)
11750         (clear_objfiles_event_object_type): Make extern.
11751         * python/py-objfile.c (objfile_object_type): Make extern.
11752         * python/py-param.c (parmpy_object_type): Make extern.
11753         * python/py-progspace.c (pspace_object_type): Make extern.
11754         * python/py-signalevent.c (signal_event_object_type): Make extern.
11755         * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
11756         * python/py-type.c (type_object_type, field_object_type)
11757         (type_iterator_object_type): Make extern.
11758         * python/python.c (python_extension_script_ops)
11759         (python_extension_ops): Make extern.
11760         * stap-probe.c (stap_probe_ops): Make extern.
11761
11762 2015-02-11  Pedro Alves  <pedro@codesourcery.com>
11763
11764         * infrun.c (adjust_pc_after_break): Don't adjust the PC just
11765         because the event thread is not the current thread.
11766
11767 2015-02-11  Doug Evans  <xdje42@gmail.com>
11768
11769         * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
11770         been initialized yet, return NULL.
11771
11772 2015-02-11  Doug Evans  <dje@google.com>
11773
11774         * symfile.h (new_symfile_objfile): Delete.
11775         * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
11776         All callers updated.
11777
11778 2015-02-11  Patrick Palka  <patrick@parcs.ath.cx>
11779
11780         * tui/tui-io.c (tui_handle_resize_during_io): Call
11781         tui_update_gdb_sizes() after resizing the screen.
11782         * tui/tui.c (tui_enable): Resize the terminal before
11783         calling tui_update_gdb_sizes().
11784
11785 2015-02-11  Patrick Palka  <patrick@parcs.ath.cx>
11786
11787         * tui/tui-io.c (tui_getc): Move cursor to the end of the command
11788         line before printing a newline.
11789
11790 2015-02-11  Mark Wielaard  <mjw@redhat.com>
11791
11792         * utils.c (producer_is_gcc): Return true or false.
11793
11794 2015-02-10  Mark Wielaard  <mjw@redhat.com>
11795
11796         * utils.h (producer_is_gcc): Change return type to bool. Add major
11797         argument.
11798         * utils.c (producer_is_gcc): Likewise.
11799         (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
11800         * dwarf2read.c (check_producer): Likewise.
11801
11802 2015-02-10  Pedro Alves  <palves@redhat.com>
11803
11804         * infrun.c (displaced_step_fixup): Switch to the event thread
11805         before calling gdbarch_displaced_step_fixup.
11806
11807 2015-02-10  Antoine Tremblay <antoine.tremblay@ericsson.com>
11808
11809         * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
11810
11811 2015-02-10  Simon Marchi  <simon.marchi@ericsson.com>
11812
11813         * ada-varobj.c (ada_name_of_child): Constify parent.
11814         (ada_path_expr_of_child): Same.
11815         (ada_value_of_child): Same.
11816         (ada_type_of_child): Same.
11817         * c-varobj.c (c_is_path_expr_parent): Same.
11818         (c_describe_child): Same.
11819         (c_name_of_child): Same.
11820         (c_value_of_child): Same.
11821         (c_type_of_child): Same.
11822         (cplus_number_of_children): Same.
11823         (cplus_describe_child): Constify var.
11824         (cplus_name_of_child): Constify parent.
11825         (cplus_value_of_child): Same.
11826         (cplus_type_of_child): Same.
11827         * jv-varobj.c (java_name_of_child): Same.
11828         (java_value_of_child): Same.
11829         (java_type_of_child): Same.
11830         * varobj.c (value_of_child): Same.
11831         (varobj_default_is_path_expr_parent): Constify var, parent and return
11832         value.
11833         (varobj_get_path_expr): Constify var, modify path_expr through
11834         mutable_var.
11835         (install_new_value): Constify parent.
11836         (value_of_child): Constify parent.
11837         * varobj.h (struct varobj): Constify parent.
11838         (struct lang_varobj_ops): Constify name_of_child, value_of_child and
11839         type_of_child.
11840         (varobj_get_path_expr): Constify var.
11841         (varobj_get_path_expr_parent): Constify var and return value.
11842
11843 2015-02-10  Luis Machado  <lgustavo@codesourcery.com>
11844
11845         * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
11846         (arm_prologue_this_id): Move PC and SP limit checks to
11847         arm_prologue_unwind_stop_reason.
11848         (arm_prologue_unwind) <stop_reason> : Set to
11849         arm_prologue_unwind_stop_reason.
11850
11851 2015-02-09  Mark Wielaard  <mjw@redhat.com>
11852
11853         * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
11854         DW_LANG_Fortran08 as language_fortran.
11855
11856 2015-02-09  Sergio Durigan Junior  <sergiodj@redhat.com>
11857
11858         PR remote/17946
11859         * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
11860         of pointer against char.
11861
11862 2015-02-09  Mark Wielaard  <mjw@redhat.com>
11863
11864         * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
11865         (c_type_print_modifier): Likewise.
11866         * dwarf2read.c (read_tag_atomic_type): New function.
11867         (read_type_die_1): Handle DW_TAG_atomic_type.
11868         * gdbtypes.c (make_atomic_type): New function.
11869         (recursive_dump_type): Handle TYPE_ATOMIC.
11870         * gdbtypes.h (enum type_flag_values): Renumber.
11871         (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
11872         (TYPE_ATOMIC): New macro.
11873         (make_atomic_type): Declare.
11874
11875 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11876
11877         * btrace.c (ftrace_find_call): Skip gaps.
11878         (ftrace_new_function): Initialize level.
11879         (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
11880         (ftrace_new_switch): Update
11881         level computation.
11882         (ftrace_new_gap): New.
11883         (ftrace_update_function): Create new function after gap.
11884         (btrace_compute_ftrace_bts): Create gap on error.
11885         (btrace_stitch_bts): Update parameters.  Clear trace if it
11886         becomes empty.
11887         (btrace_stitch_trace): Update parameters.  Update callers.
11888         (btrace_clear): Reset the number of gaps.
11889         (btrace_insn_get): Return NULL if the iterator points to a gap.
11890         (btrace_insn_number): Return zero if the iterator points to a gap.
11891         (btrace_insn_end): Allow gaps at the end.
11892         (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
11893         (btrace_find_insn_by_number): Assert that the found iterator does
11894         not point to a gap.
11895         (btrace_call_next, btrace_call_prev): Assert that the last function
11896         is not a gap.
11897         * btrace.h (btrace_bts_error): New.
11898         (btrace_function): Update comment.
11899         (btrace_function) <insn, insn_offset, number>: Update comment.
11900         (btrace_function) <errcode>: New.
11901         (btrace_thread_info) <ngaps>: New.
11902         (btrace_thread_info) <replay>: Update comment.
11903         (btrace_insn_get): Update comment.
11904         * record-btrace.c (btrace_ui_out_decode_error): New.
11905         (record_btrace_info): Print number of gaps.
11906         (btrace_insn_history, btrace_call_history): Call
11907         btrace_ui_out_decode_error for gaps.
11908         (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
11909
11910 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11911
11912         * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
11913         * nat/linux-btrace.c: (btrace_this_cpu): New.
11914         (cpu_supports_bts): Call btrace_this_cpu.
11915         (intel_supports_bts): Add cpu parameter.
11916
11917 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11918
11919         * btrace.h (btrace_insn_class): New.
11920         (btrace_insn) <size, iclass>: New.
11921         * btrace.c (ftrace_find_call): Update parameters.  Update users.
11922         Use instruction classification.
11923         (ftrace_new_return): Update parameters.  Update users.
11924         (ftrace_update_function): Update parameters.  Update users.  Use
11925         instruction classification.
11926         (ftrace_update_insns): Update parameters.  Update users.
11927         (ftrace_classify_insn): New.
11928         (btrace_compute_ftrace_bts): Fill in new btrace_insn fields.  Add
11929         TRY_CATCH around call to gdb_insn_length.
11930
11931 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11932
11933         * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
11934         Update parameters.  Update users.
11935
11936 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11937
11938         * btrace.c (parse_xml_btrace_conf_bts): Add size.
11939         (btrace_conf_bts_attributes): New.
11940         (btrace_conf_children): Add attributes.
11941         * common/btrace-common.h (btrace_config_bts): New.
11942         (btrace_config)<bts>: New.
11943         (btrace_config): Update comment.
11944         * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
11945         Use config.
11946         * features/btrace-conf.dtd: Increment version.  Add size
11947         attribute to bts element.
11948         * record-btrace.c (set_record_btrace_bts_cmdlist,
11949         show_record_btrace_bts_cmdlist): New.
11950         (record_btrace_adjust_size, record_btrace_print_bts_conf,
11951         record_btrace_print_conf, cmd_set_record_btrace_bts,
11952         cmd_show_record_btrace_bts): New.
11953         (record_btrace_info): Call record_btrace_print_conf.
11954         (_initialize_record_btrace): Add commands.
11955         * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
11956         (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
11957         (btrace_sync_conf): Synchronize bts size.
11958         (_initialize_remote): Add Qbtrace-conf:bts:size packet.
11959         * NEWS: Announce new commands and new packets.
11960
11961 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11962
11963         * Makefile.in (XMLFILES): Add btrace-conf.dtd.
11964         * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
11965         (x86_linux_btrace_conf): New.
11966         (x86_linux_create_target): Initialize to_btrace_conf.
11967         * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
11968         Check format.  Split into this and ...
11969         (linux_enable_bts): ... this.
11970         (linux_btrace_conf): New.
11971         (perf_event_skip_record): Renamed into ...
11972         (perf_event_skip_bts_record): ... this.  Updated users.
11973         (linux_disable_btrace): Split into this and ...
11974         (linux_disable_bts): ... this.
11975         (linux_read_btrace): Check format.
11976         * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
11977         (linux_btrace_conf): New.
11978         (btrace_target_info)<ptid>: Moved.
11979         (btrace_target_info)<conf>: New.
11980         (btrace_target_info): Split into this and ...
11981         (btrace_tinfo_bts): ... this.  Updated users.
11982         * btrace.c (btrace_enable): Update parameters.
11983         (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
11984         (btrace_conf_children, btrace_conf_attributes)
11985         (btrace_conf_elements): New.
11986         * btrace.h (btrace_enable): Update parameters.
11987         (btrace_conf, parse_xml_btrace_conf): New.
11988         * common/btrace-common.h (btrace_config): New.
11989         * feature/btrace-conf.dtd: New.
11990         * record-btrace.c (record_btrace_conf): New.
11991         (record_btrace_cmdlist): New.
11992         (record_btrace_enable_warn, record_btrace_open): Pass
11993         &record_btrace_conf.
11994         (record_btrace_info): Print recording format.
11995         (cmd_record_btrace_bts_start): New.
11996         (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
11997         (_initialize_record_btrace): Add "record btrace bts" subcommand.
11998         Add "record bts" alias command.
11999         * remote.c (remote_state)<btrace_config>: New.
12000         (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
12001         (remote_protocol_features): Add qXfer:btrace-conf:read.
12002         (remote_open_1): Call remote_btrace_reset.
12003         (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
12004         (btrace_target_info)<conf>: New.
12005         (btrace_sync_conf, btrace_read_config): New.
12006         (remote_enable_btrace): Update parameters.  Call btrace_sync_conf and
12007         btrace_read_conf.
12008         (remote_btrace_conf): New.
12009         (init_remote_ops): Initialize to_btrace_conf.
12010         (_initialize_remote): Add qXfer:btrace-conf packet.
12011         * target.c (target_enable_btrace): Update parameters.
12012         (target_btrace_conf): New.
12013         * target.h (target_enable_btrace): Update parameters.
12014         (target_btrace_conf): New.
12015         (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
12016         (target_ops)<to_enable_btrace>: Update parameters and comment.
12017         (target_ops)<to_btrace_conf>: New.
12018         * target-delegates: Regenerate.
12019         * target-debug.h (target_debug_print_const_struct_btrace_config_p)
12020         (target_debug_print_const_struct_btrace_target_info_p): New.
12021         * NEWS: Announce new command and new packet.
12022
12023 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
12024
12025         * nat/linux-btrace.h (perf_event_buffer): New.
12026         (btrace_target_info) <buffer, size, data_head>: Replace with ...
12027         <bts>: ... this.
12028         * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
12029         (perf_event_buffer_size, perf_event_buffer_begin)
12030         (perf_event_buffer_end, linux_btrace_has_changed): Removed.
12031         Updated users.
12032         (perf_event_new_data): New.
12033
12034 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
12035
12036         * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
12037         * record-btrace.c (record_btrace_open): Remove call to
12038         target_supports_btrace.
12039         * remote.c (remote_supports_btrace): Update parameters.
12040         * target.c (target_supports_btrace): Update parameters.
12041         * target.h (to_supports_btrace, target_supports_btrace): Update
12042         parameters.
12043         * target-delegates.c: Regenerate.
12044         * target-debug.h (target_debug_print_enum_btrace_format): New.
12045         * nat/linux-btrace.c
12046         (kernel_supports_btrace): Rename into ...
12047         (kernel_supports_bts): ... this.  Update users.  Update warning text.
12048         (intel_supports_btrace): Rename into ...
12049         (intel_supports_bts): ... this.  Update users.
12050         (cpu_supports_btrace): Rename into ...
12051         (cpu_supports_bts): ... this.  Update users.
12052         (linux_supports_btrace): Update parameters.  Split into this and ...
12053         (linux_supports_bts): ... this.
12054         * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
12055
12056 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
12057
12058         * Makefile.in (SFILES): Add common/btrace-common.c.
12059         (COMMON_OBS): Add common/btrace-common.o.
12060         (btrace-common.o): Add build rules.
12061         * btrace.c (parse_xml_btrace): Update parameters.
12062         (parse_xml_btrace_block): Set format field.
12063         (btrace_add_pc, btrace_fetch): Use struct btrace_data.
12064         (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
12065         (btrace_compute_ftrace): Split into this and...
12066         (btrace_compute_ftrace_bts): ...this.
12067         (btrace_stitch_trace): Split into this and...
12068         (btrace_stitch_bts): ...this.
12069         * btrace.h (parse_xml_btrace): Update parameters.
12070         (make_cleanup_btrace_data): New.
12071         * common/btrace-common.c: New.
12072         * common/btrace-common.h: Include common-defs.h.
12073         (btrace_block_s): Update comment.
12074         (btrace_format): New.
12075         (btrace_format_string): New.
12076         (btrace_data_bts): New.
12077         (btrace_data): New.
12078         (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
12079         * remote.c (remote_read_btrace): Update parameters.
12080         * target.c (target_read_btrace): Update parameters.
12081         * target.h (target_read_btrace): Update parameters.
12082         (target_ops)<to_read_btrace>: Update parameters.
12083         * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
12084         * target-delegates.c: Regenerate.
12085         * target-debug (target_debug_print_struct_btrace_data_p): New.
12086         * nat/linux-btrace.c (linux_read_btrace): Split into this and...
12087         (linux_read_bts): ...this.
12088         * nat/linux-btrace.h (linux_read_btrace): Update parameters.
12089
12090 2015-02-06  Doug Evans  <dje@google.com>
12091
12092         * remote-m32r-sdi.c: Include symfile.h.
12093
12094 2015-02-06  Doug Evans  <dje@google.com>
12095
12096         * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
12097         * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
12098         to here.
12099
12100 2015-02-06  Pedro Alves  <palves@redhat.com>
12101
12102         * linux-thread-db.c (find_new_threads_callback): Add debug output.
12103
12104 2015-02-06  Simon Marchi  <simon.marchi@ericsson.com>
12105
12106         PR gdb/15678
12107         * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
12108         (enable_count_command): Check args for NULL value.
12109
12110 2015-02-05  Doug Evans  <xdje42@gmail.com>
12111
12112         * guile/scm-frame.c: Fix spelling errors in a comment.
12113
12114 2015-02-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
12115
12116         * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
12117         * python/py-value.c (valpy_fetch_lazy): Use it.  Remove cast to the
12118         return type.
12119
12120 2015-02-04  Pedro Alves  <palves@redhat.com>
12121
12122         * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
12123         (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
12124         returns true.
12125         (resume_stopped_resumed_lwps): Don't check whether the thread is
12126         marked as executing.
12127         (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
12128
12129 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
12130
12131         * regset.h (struct regset): Add flags field.
12132         (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
12133         * corelow.c (get_core_register_section): Add warning if the size
12134         exceeds the requested size and the regset does not have the
12135         REGSET_VARIABLE_SIZE flag set.
12136         * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
12137         flag.
12138         * armbsd-tdep.c (armbsd_gregset): Likewise.
12139         * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
12140         * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
12141         * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
12142         * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
12143
12144 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
12145
12146         * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
12147         For ".reg-xstate", explicitly specify the requested section size
12148         via X86_XSTATE_SIZE instead of just 0 on input and
12149         X86_XSTATE_MAX_SIZE on output.
12150         * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
12151         Likewise.
12152
12153 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
12154
12155         PR corefiles/17808:
12156         * gdbarch.sh (iterate_over_regset_sections_cb): Document this
12157         function type, particularly its SIZE parameter.
12158         * gdbarch.h: Regenerate.
12159         * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
12160         actual against required size using ">=" instead of "==".
12161         (amd64_collect_fpregset): Likewise.
12162         * i386-tdep.c (i386_supply_gregset): Likewise.
12163         (i386_collect_gregset): Likewise.
12164         (i386_supply_fpregset): Likewise.
12165         (i386_collect_fpregset): Likewise.
12166         * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
12167         (mips_fill_gregset_wrapper): Likewise.
12168         (mips_supply_fpregset_wrapper): Likewise.
12169         (mips_fill_fpregset_wrapper): Likewise.
12170         (mips64_supply_gregset_wrapper): Likewise.
12171         (mips64_fill_gregset_wrapper): Likewise.
12172         (mips64_supply_fpregset_wrapper): Likewise.
12173         (mips64_fill_fpregset_wrapper): Likewise.
12174         * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
12175         (am33_supply_fpregset_method): Likewise.
12176         (am33_collect_gregset_method): Likewise.
12177         (am33_collect_fpregset_method): Likewise.
12178
12179 2015-02-04  Doug Evans  <dje@google.com>
12180             Pedro Alves  <palves@redhat.com>
12181             Eli Zaretskii  <eliz@gnu.org>
12182
12183         PR tui/17810
12184         * tui/tui-command.c (tui_refresh_cmd_win): New function.
12185         * tui/tui-command.c (tui_refresh_cmd_win): Declare.
12186         * tui/tui-file.c: #include tui/tui-command.h.
12187         (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
12188         (tui_file_flush): Refresh command window if stream is gdb_stdout.
12189         * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
12190
12191 2015-02-04  Pedro Alves  <palves@redhat.com>
12192
12193         Fix build breakage.
12194         * event-loop.c (gdb_do_one_event): Add default switch case.
12195
12196 2015-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
12197
12198         Filter out inferior gcc option -fpreprocessed.
12199         * compile/compile.c (filter_args): New function.
12200         (get_args): Use it.
12201
12202 2015-02-03  Pedro Alves  <palves@redhat.com>
12203
12204         * event-loop.c: Don't declare nor define a queue type for
12205         gdb_event_p.
12206         (event_queue): Delete.
12207         (create_event, create_file_event, gdb_event_xfree)
12208         (initialize_event_loop, process_event): Delete.
12209         (gdb_do_one_event): Return as soon as one event is handled.
12210         (handle_file_event): Change prototype.  Used the passed in
12211         file_handler pointer and ready_mask instead of looping over all
12212         file handlers.
12213         (gdb_wait_for_event): Update the poll/select timeouts before
12214         blocking.  Run event handlers directly instead of queueing events.
12215         Return as soon as one event is handled.
12216         (struct async_event_handler_data): Delete.
12217         (invoke_async_event_handler): Delete.
12218         (check_async_event_handlers): Change return type to int.  Run
12219         event handlers directly instead of queueing events.  Return as
12220         soon as one event is handled.
12221         (handle_timer_event): Delete.
12222         (update_wait_timeout): New function, factored out from
12223         poll_timers.
12224         (poll_timers): Reimplement.
12225         * event-loop.h (initialize_event_loop): Delete declaration.
12226         * top.c (gdb_init): Don't call initialize_event_loop.
12227
12228 2015-02-03  Pedro Alves  <palves@redhat.com>
12229
12230         * event-loop.c (clear_async_event_handler): New function.
12231         * event-loop.h (clear_async_event_handler): New declaration.
12232         * record-btrace.c (record_btrace_async): New function.
12233         (init_record_btrace_ops): Install record_btrace_async.
12234         * record-full.c (record_full_async): New function.
12235         (record_full_resume): Don't mark the async event source here.
12236         (init_record_full_ops): Install record_full_async.
12237         (record_full_core_resume): Don't mark the async event source here.
12238         (init_record_full_core_ops): Install record_full_async.
12239         * remote.c (remote_async): Mark and clear the async stop reply
12240         queue event-loop token as appropriate.
12241
12242 2015-02-03  Pedro Alves  <palves@redhat.com>
12243
12244         * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
12245         target_is_async_p instead of target_can_async.
12246         (linux_nat_wait): Use target_is_async_p instead of
12247         target_can_async.  Don't enable async here.
12248         * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
12249         target_is_async_p instead of target_can_async.
12250
12251 2015-02-02  Simon Marchi  <simon.marchi@ericsson.com>
12252
12253         * varobj.h (lang_varobj_ops): Mention which return values need
12254         to be freed.
12255
12256 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
12257
12258         * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
12259
12260 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
12261
12262         PR gdb/17856:
12263         * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
12264         results found in the cache.
12265
12266 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
12267
12268         PR gdb/17854:
12269         * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
12270         when allocating a new one.
12271
12272 2015-02-01  Tom Tromey  <tom@tromey.com>
12273
12274         * MAINTAINERS: Remove myself.
12275
12276 2015-01-31  Doug Evans  <xdje42@gmail.com>
12277
12278         * dwarf2read.c (process_structure_scope): Update setting of
12279         TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
12280         * gdbtypes.c (internal_type_vptr_fieldno): New function.
12281         (set_type_vptr_fieldno): New function.
12282         (internal_type_vptr_basetype): New function.
12283         (set_type_vptr_basetype): New function.
12284         (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
12285         TYPE_VPTR_BASETYPE.
12286         (allocate_cplus_struct_type): Initialize vptr_fieldno.
12287         (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
12288         (print_cplus_stuff): ... moved here.
12289         (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
12290         * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
12291         moved to ...
12292         (struct cplus_struct_type): ... here.  All uses updated.
12293         (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
12294         (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
12295         (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
12296         * stabsread.c (read_tilde_fields): Update setting of
12297         TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
12298
12299 2015-01-31  Doug Evans  <xdje42@gmail.com>
12300
12301         * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
12302         to self_p.
12303         (cp_print_class_member): Rename local domain to self_type.
12304         * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
12305         domain_type to self_type.
12306         (set_die_type) <need_gnat_info>: Handle
12307         TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
12308         * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
12309         TYPE_SPECIFIC_SELF_TYPE.
12310         * gdbtypes.c (internal_type_self_type): New function.
12311         (set_type_self_type): New function.
12312         (smash_to_memberptr_type): Rename parameter domain to self_type.
12313         Update setting of TYPE_SELF_TYPE.
12314         (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
12315         (smash_to_method_type): Rename parameter domain to self_type.
12316         Update setting of TYPE_SELF_TYPE.
12317         (check_stub_method): Call smash_to_method_type.
12318         (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
12319         (copy_type_recursive): Ditto.
12320         * gdbtypes.h (enum type_specific_kind): New value
12321         TYPE_SPECIFIC_SELF_TYPE.
12322         (struct main_type) <type_specific>: New member self_type.
12323         (struct cplus_struct_type) <fn_field.type>: Update comment.
12324         (TYPE_SELF_TYPE): Rewrite.
12325         (internal_type_self_type, set_type_self_type): Declare.
12326         * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
12327         self_type.
12328         (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
12329         * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
12330         TYPE_TARGET_TYPE.
12331         * stabsread.c (read_member_functions): Mark methods with
12332         TYPE_CODE_METHOD, not TYPE_CODE_FUNC.  Update setting of
12333         TYPE_SELF_TYPE.
12334
12335 2015-01-31  Doug Evans  <xdje42@gmail.com>
12336
12337         * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
12338         All uses updated.
12339
12340 2015-01-31  Doug Evans  <xdje42@gmail.com>
12341
12342         * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
12343         or unions.  Return zero if union.
12344         (gnuv3_get_vtable): Call check_typedef.  Assert only passed structs.
12345         (gnuv3_rtti_type): Pass already-check_typedef'd value to
12346         gnuv3_get_vtable.
12347         (compute_vtable_size): Assert only passed structs.
12348         (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
12349
12350 2015-01-31  Doug Evans  <xdje42@gmail.com>
12351
12352         * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
12353         kinds.
12354
12355 2015-01-31  Gary Benson <gbenson@redhat.com>
12356             Doug Evans  <dje@google.com>
12357
12358         PR cli/9007
12359         PR cli/11920
12360         PR cli/15548
12361         * cli/cli-cmds.c (complete_command): Notify user if max-completions
12362         reached.
12363         * common/common-exceptions.h (enum errors)
12364         <MAX_COMPLETIONS_REACHED_ERROR>: New value.
12365         * completer.h (get_max_completions_reached_message): New declaration.
12366         (max_completions): Likewise.
12367         (completion_tracker_t): New typedef.
12368         (new_completion_tracker): New declaration.
12369         (make_cleanup_free_completion_tracker): Likewise.
12370         (maybe_add_completion_enum): New enum.
12371         (maybe_add_completion): New declaration.
12372         (throw_max_completions_reached_error): Likewise.
12373         * completer.c (max_completions): New global variable.
12374         (new_completion_tracker): New function.
12375         (free_completion_tracker): Likewise.
12376         (make_cleanup_free_completion_tracker): Likewise.
12377         (maybe_add_completions): Likewise.
12378         (throw_max_completions_reached_error): Likewise.
12379         (complete_line): Remove duplicates and limit result to max_completions
12380         entries.
12381         (get_max_completions_reached_message): New function.
12382         (gdb_display_match_list): Handle max_completions.
12383         (_initialize_completer): New declaration and function.
12384         * symtab.c: Include completer.h.
12385         (completion_tracker): New static variable.
12386         (completion_list_add_name): Call maybe_add_completion.
12387         (default_make_symbol_completion_list_break_on_1): Renamed from
12388         default_make_symbol_completion_list_break_on.  Maintain
12389         completion_tracker across calls to completion_list_add_name.
12390         (default_make_symbol_completion_list_break_on): New function.
12391         * top.c (init_main): Set rl_completion_display_matches_hook.
12392         * tui/tui-io.c: Include completer.h.
12393         (tui_old_rl_display_matches_hook): New static global.
12394         (tui_rl_display_match_list): Notify user if max-completions reached.
12395         (tui_setup_io): Save/restore rl_completion_display_matches_hook.
12396         * NEWS (New Options): Mention set/show max-completions.
12397
12398 2015-01-31  Gary Benson  <gbenson@redhat.com>
12399
12400         * symtab.c (struct add_name_data) <code>: New field.
12401         Updated comments.
12402         (add_symtab_completions): New function.
12403         (symtab_expansion_callback): Likewise.
12404         (default_make_symbol_completion_list_break_on): Set datum.code.
12405         Move minimal symbol scan before calling expand_symtabs_matching.
12406         Scan known primary symtabs for externs and statics before calling
12407         expand_symtabs_matching.  Pass symtab_expansion_callback as
12408         expansion_notify argument to expand_symtabs_matching.  Do not scan
12409         primary symtabs for externs and statics after calling
12410         expand_symtabs_matching.
12411
12412 2015-01-31  Gary Benson  <gbenson@redhat.com>
12413
12414         * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
12415         (struct quick_symbol_functions) <expand_symtabs_matching>:
12416         New argument expansion_notify.  All uses updated.
12417         (expand_symtabs_matching): New argument expansion_notify.
12418         All uses updated.
12419         * symfile-debug.c (debug_qf_expand_symtabs_matching):
12420         Also print expansion notify.
12421         * symtab.c (expand_symtabs_matching_via_partial): Call
12422         expansion_notify whenever a partial symbol table is expanded.
12423         * dwarf2read.c (dw2_expand_symtabs_matching): Call
12424         expansion_notify whenever a symbol table is instantiated.
12425
12426 2015-01-31  Doug Evans  <xdje42@gmail.com>
12427
12428         * cli-out.c: #include completer.h, readline/readline.h.
12429         (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
12430         (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
12431         (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
12432         * cli-out.h (cli_display_match_list): Declare.
12433         * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
12434         (ELLIPSIS_LEN): Ditto.
12435         (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
12436         (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
12437         (gdb_fnprint, gdb_print_filename): Ditto.
12438         (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
12439         (gdb_display_match_list): Ditto.
12440         * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
12441         (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
12442         (mld_beep_ftype, mld_read_key_ftype): Ditto.
12443         (match_list_displayer): New struct.
12444         (gdb_display_match_list): Declare.
12445         * top.c (init_main): Set rl_completion_display_matches_hook.
12446         * tui/tui-io.c: #include completer.h.
12447         (printable_part, PUTX, print_filename, get_y_or_n): Delete.
12448         (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
12449         (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
12450         (tui_mld_getc, tui_mld_read_key): Ditto.
12451         (tui_rl_display_match_list): Rewrite.
12452         (tui_handle_resize_during_io): New arg for_completion.  All callers
12453         updated.
12454
12455 2015-01-31  Doug Evans  <xdje42@gmail.com>
12456
12457         Add symbol lookup cache.
12458         * NEWS: Document new options and commands.
12459         * symtab.c (symbol_cache_key): New static global.
12460         (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
12461         (SYMBOL_LOOKUP_FAILED): New macro.
12462         (symbol_cache_slot_state): New enum.
12463         (block_symbol_cache): New struct.
12464         (symbol_cache): New struct.
12465         (new_symbol_cache_size, symbol_cache_size): New static globals.
12466         (hash_symbol_entry, eq_symbol_entry): New functions.
12467         (symbol_cache_byte_size, resize_symbol_cache): New functions.
12468         (make_symbol_cache, free_symbol_cache): New functions.
12469         (get_symbol_cache, symbol_cache_cleanup): New function.
12470         (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
12471         (symbol_cache_lookup, symbol_cache_clear_slot): New function.
12472         (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
12473         (symbol_cache_flush, symbol_cache_dump): New functions.
12474         (maintenance_print_symbol_cache): New function.
12475         (maintenance_flush_symbol_cache): New function.
12476         (symbol_cache_stats): New function.
12477         (maintenance_print_symbol_cache_statistics): New function.
12478         (symtab_new_objfile_observer): New function.
12479         (symtab_free_objfile_observer): New function.
12480         (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
12481         (_initialize_symtab): Init symbol_cache_key.  New parameter
12482         maint symbol-cache-size.  New maint commands print symbol-cache,
12483         print symbol-cache-statistics, flush-symbol-cache.
12484         Install new_objfile, free_objfile observers.
12485
12486 2015-01-31  Joel Brobecker  <brobecker@adacore.com>
12487
12488         PR symtab/17855
12489         * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
12490         to end.
12491
12492 2015-01-31  Doug Evans  <xdje42@gmail.com>
12493
12494         * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
12495         * auto-load.c: #include ctype.h.
12496         (struct auto_load_pspace_info): Replace member loaded_scripts with
12497         new members loaded_script_files, loaded_script_texts.
12498         (auto_load_pspace_data_cleanup): Update.
12499         (init_loaded_scripts_info): Update.
12500         (get_auto_load_pspace_data_for_loading): Update.
12501         (maybe_add_script_file): Renamed from maybe_add_script.  All callers
12502         updated.
12503         (maybe_add_script_text): New function.
12504         (clear_section_scripts): Update.
12505         (source_script_file, execute_script_contents): New functions.
12506         (source_section_scripts): Add support for
12507         SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
12508         (print_scripts): New function.
12509         (auto_load_info_scripts): Also print inlined scripts.
12510         (maybe_print_unsupported_script_warning): Renamed from
12511         unsupported_script_warning_print.  All callers updated.
12512         (maybe_print_script_not_found_warning): Renamed from
12513         script_not_found_warning_print.  All callers updated.
12514         * extension-priv.h (struct extension_language_script_ops): New member
12515         objfile_script_executor.
12516         * extension.c (ext_lang_objfile_script_executor): New function.
12517         * extension.h (objfile_script_executor_func): New typedef.
12518         (ext_lang_objfile_script_executor): Declare.
12519         * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
12520         * guile/guile.c (guile_extension_script_ops): Update.
12521         * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
12522         * python/python.c (python_extension_script_ops): Update.
12523         (gdbpy_execute_objfile_script): New function.
12524
12525 2015-01-31  Eli Zaretskii  <eliz@gnu.org>
12526
12527         * tui/tui-io.c (tui_expand_tabs): New function.
12528         (tui_puts, tui_redisplay_readline): Expand TABs into the
12529         appropriate number of spaces.
12530         * tui/tui-regs.c: Include tui-io.h.
12531         (tui_register_format): Call tui_expand_tabs to expand TABs into
12532         the appropriate number of spaces.
12533         * tui/tui-io.h: Add prototype for tui_expand_tabs.
12534
12535 2015-01-30  Doug Evans  <dje@google.com>
12536
12537         * NEWS: "info source" command now display producer string if present.
12538         * source.c (source_info): Print producer string if present.
12539
12540 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12541
12542         * varobj.c (varobj_delete): Fix comment.
12543
12544 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12545
12546         * varobj.c (create_child): Modify comment.
12547
12548 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12549
12550         * ada-varobj.c (ada_number_of_children): Constify struct varobj *
12551         parameter.
12552         (ada_name_of_variable): Same.
12553         (ada_path_expr_of_child): Same.
12554         (ada_value_of_variable): Same.
12555         (ada_value_is_changeable_p): Same.
12556         (ada_value_has_mutated): Same.
12557         * c-varobj.c (varobj_is_anonymous_child): Same.
12558         (c_is_path_expr_parent): Same.
12559         (c_number_of_children): Same.
12560         (c_name_of_variable): Same.
12561         (c_path_expr_of_child): Same.
12562         (get_type): Same.
12563         (c_value_of_variable): Same.
12564         (cplus_number_of_children): Same.
12565         (cplus_name_of_variable): Same.
12566         (cplus_path_expr_of_child): Same.
12567         (cplus_value_of_variable): Same.
12568         * jv-varobj.c (java_number_of_children): Same.
12569         (java_name_of_variable): Same.
12570         (java_path_expr_of_child): Same.
12571         (java_value_of_variable): Same.
12572         * varobj.c (number_of_children): Same.
12573         (name_of_variable): Same.
12574         (is_root_p): Same.
12575         (varobj_ensure_python_env): Same.
12576         (varobj_get_objname): Same.
12577         (varobj_get_expression): Same.
12578         (varobj_get_display_format): Same.
12579         (varobj_get_display_hint): Same.
12580         (varobj_has_more): Same.
12581         (varobj_get_thread_id): Same.
12582         (varobj_get_frozen): Same.
12583         (dynamic_varobj_has_child_method): Same.
12584         (varobj_get_gdb_type): Same.
12585         (is_path_expr_parent): Same.
12586         (varobj_default_is_path_expr_parent): Same.
12587         (varobj_get_language): Same.
12588         (varobj_get_attributes): Same.
12589         (varobj_is_dynamic_p): Same.
12590         (varobj_get_child_range): Same.
12591         (varobj_value_has_mutated): Same.
12592         (varobj_get_value_type): Same.
12593         (number_of_children): Same.
12594         (name_of_variable): Same.
12595         (check_scope): Same.
12596         (varobj_editable_p): Same.
12597         (varobj_value_is_changeable_p): Same.
12598         (varobj_floating_p): Same.
12599         (varobj_default_value_is_changeable_p): Same.
12600
12601 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12602
12603         * varobj.c (varobj_get_path_expr): Set var->path_expr.
12604         * c-varobj.c (c_path_expr_of_child): Set local var instead of
12605         child->path_expr.
12606         (cplus_path_expr_of_child): Same.
12607
12608 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12609
12610         * mi-cmd-var.c (print_varobj): Free varobj_get_expression
12611         result.
12612         (mi_cmd_var_info_expression): Same.
12613         * varobj.c (varobj_get_expression): Mention in the comment that
12614         the result must by freed by the caller.
12615
12616 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12617
12618         * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
12619         varobj_get_type.
12620         (varobj_update_one): Same.
12621         * varobj.c (update_type_if_necessary): Free curr_type_str and
12622         new_type_str.
12623         (varobj_get_type): Specify in comment that the result needs to be
12624         freed by the caller.
12625
12626 2015-01-29  Doug Evans  <dje@google.com>
12627
12628         PR symtab/17890
12629         * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
12630
12631 2015-01-25  Mark Wielaard  <mjw@redhat.com>
12632
12633         * dwarf2read.c (checkproducer): Call producer_is_gcc.
12634         * utils.c (producer_is_gcc_ge_4): Likewise.
12635         (producer_is_gcc): New function.
12636         * utils.h (producer_is_gcc): New declaration.
12637
12638 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
12639
12640         * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
12641         kind.
12642         * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
12643         parameter by "addr_stack" parameter.
12644         (resolve_dynamic_range): Replace "addr" parameter by
12645         "stack_addr" parameter.  Update function documentation.
12646         Update code accordingly.
12647         (resolve_dynamic_array, resolve_dynamic_union)
12648         (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
12649         (resolve_dynamic_type): Update code, following the changes made
12650         to resolve_dynamic_type_internal's interface.
12651         * dwarf2loc.h (struct property_addr_info): New.
12652         (dwarf2_evaluate_property): Replace "address" parameter
12653         by "addr_stack" parameter.  Adjust function documentation.
12654         (struct dwarf2_offset_baton): New.
12655         (struct dwarf2_property_baton): Update documentation of
12656         field "referenced_type" to be more general. New field
12657         "offset_info" in union data field.
12658         * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
12659         parameter by "addr_stack" parameter.  Adjust code accordingly.
12660         Add support for PROP_ADDR_OFFSET properties.
12661         * dwarf2read.c (attr_to_dynamic_prop): Add support for
12662         DW_AT_data_member_location attributes as well.  Use case
12663         statements instead of if/else condition.
12664
12665 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
12666
12667         * ada-varobj.c (ada_varobj_get_array_number_of_children):
12668         Return zero if PARENT_VALUE is NULL and parent_type's
12669         range type is dynamic.
12670
12671 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
12672
12673         * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
12674         nonzero if the type's subtype is dynamic.
12675         (resolve_dynamic_range): Also resolve the range's subtype.
12676
12677 2015-01-29  Alexander Klimov  <alserkli@inbox.ru>  (tiny patch)
12678
12679         Pushed by Joel Brobecker  <brobecker@adacore.com>.
12680         * symfile.c (unmap_overlay_command): Initialize sec to NULL.
12681
12682 2015-01-27  Doug Evans  <dje@google.com>
12683
12684         * NEWS: Mention gdb.Objfile.username.
12685         * python/py-objfile.c (objfpy_get_username): New function.
12686         (objfile_getset): Add "username".
12687
12688 2015-01-24  Mark Wielaard  <mjw@redhat.com>
12689
12690         * stack.c (return_command): Markup warning message with _.
12691
12692 2015-01-24  Doug Evans  <xdje42@gmail.com>
12693
12694         * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
12695
12696 2015-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
12697
12698         Fix 100x slowdown regression on DWZ files.
12699         * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
12700         (struct line_header): Add offset and offset_in_dwz.
12701         (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
12702         (free_line_header_voidp): New declaration.
12703         (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
12704         functions.
12705         (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
12706         (handle_DW_AT_stmt_list): Use line_header_hash.
12707         (free_line_header_voidp): New function.
12708         (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
12709         (dwarf_decode_lines): New parameter decode_mapping, use it.
12710         (dwarf2_free_objfile): Free line_header_hash.
12711
12712 2015-01-23  Simon Marchi  <simon.marchi@ericsson.com>
12713
12714         PR gdb/17416
12715         * valops.c (value_rtti_indirect_type): Catch exception thrown by
12716         value_ind.
12717
12718 2015-01-15  Mark Wielaard  <mjw@redhat.com>
12719
12720         * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
12721         DW_AT_noreturn.
12722         * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
12723         calling_convention an 8 bit bit field.
12724         (TYPE_NO_RETURN): New macro.
12725         * infcmd.c (finish_command): Query if function does not return
12726         normally.
12727         * stack.c (return_command): Likewise.
12728
12729 2015-01-23  Pedro Alves  <palves@redhat.com>
12730
12731         * linux-nat.c (linux_is_async_p): New macro.
12732         (linux_nat_is_async_p):
12733         (linux_nat_terminal_inferior): Check whether the target can async
12734         instead of whether it is already async.
12735         (linux_nat_terminal_ours): Don't check whether the target is
12736         async.
12737         (linux_async_pipe): Use linux_is_async_p.
12738
12739 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
12740
12741         * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
12742         '-ascending'.
12743         * thread.c (tp_array_compar_ascending, tp_array_compar): New.
12744         (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
12745         Sort tp_array using tp_array_compar.
12746         (_initialize_thread): Extend thread_apply_all_command help.
12747
12748 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
12749
12750         * corelow.c (core_open): Call also thread_command.
12751         * gdbthread.h (thread_command): New prototype moved from ...
12752         * thread.c (thread_command): ... here.
12753         (thread_command): Make it global.
12754
12755 2015-01-22  Pedro Alves  <palves@redhat.com>
12756
12757         * configure.ac [*mingw32*]: Check $curses_found instead of
12758         $prefer_curses.
12759         * configure: Regenerate.
12760         * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
12761         HAVE_NCURSES_NCURSES_H checks.
12762
12763 2015-01-22  Eli Zaretskii  <eliz@gnu.org>
12764
12765         * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
12766         fails with the 1st arg NULL, try again with "unknown".  Don't test
12767         the "cup" capability: it isn't supported by the Windows port of
12768         ncurses, but the Windows console driver is still capable of
12769         supporting TUI.
12770
12771 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
12772
12773         * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
12774
12775 2015-01-22  Eli Zaretskii  <eliz@gnu.org>
12776
12777         * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
12778         (ALLDEPFILES): Remove irix5-nat.c.  These two are part of the
12779         reason that "make TAGS" is broken.
12780
12781 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
12782
12783         * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
12784         and check additional store instructions.
12785
12786 2015-01-21  Wei-cheng Wang  <cole945@gmail.com>
12787
12788         * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
12789
12790 2015-01-21  Wei-cheng Wang  <cole945@gmail.com>
12791
12792         * ppc-linux-tdep.c (ppc_skip_trampoline_code,
12793         ppc_canonicalize_syscall, ppc_linux_syscall_record,
12794         ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
12795         * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12796         * rs6000-tdep.c (rs6000_epilogue_frame_cache,
12797         rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
12798         rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
12799         ppc_process_record_op19, ppc_process_record_op31,
12800         ppc_process_record_op59, ppc_process_record_op60,
12801         ppc_process_record_op63): Likewise.
12802
12803 2015-01-20  Joel Brobecker  <brobecker@adacore.com>
12804
12805         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
12806         (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
12807         strerror.
12808
12809 2015-01-20  Wei-cheng Wang  <cole945@gmail.com>
12810
12811         * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
12812         ppc_process_record_op31, ppc_process_record_op59,
12813         ppc_process_record_op60, ppc_process_record_op63,
12814         ppc_process_record): Fix -Wformat warning.
12815         * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
12816         Remove unused variables.
12817
12818 2015-01-20  Chen Gang  <gang.chen.5i5j@gmail.com>
12819
12820         * MAINTAINERS (Write After Approval): Add "Chen Gang".
12821
12822 2015-01-19  Eli Zaretskii  <eliz@gnu.org>
12823
12824         * configure.ac [*mingw32*]: Only add windows-termcap.o to
12825         CONFIG_OBS if not building with a curses library.
12826         * configure: Regenerate.
12827
12828         * windows-termcap.c: Include defs.h.  Make the whole body empty if
12829         either one of HAVE_CURSES_H or HAVE_NCURSES_H or
12830         HAVE_NCURSES_NCURSES_H is defined.
12831
12832 2015-01-19  Joel Brobecker  <brobecker@adacore.com>
12833
12834         * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
12835         from end of line to start of next line.
12836
12837 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
12838
12839         * ppc-linux-tdep.c (ppc_skip_trampoline_code):
12840         Scan PLT stub backward for reverse debugging.
12841         * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12842
12843 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
12844             Ulrich Weigand  <uweigand@de.ibm.com>
12845
12846         * configure.tgt (powerpc*-*-linux): Add linux-record.o to
12847         gdb_target_obs.
12848         (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
12849         record.
12850         (ppc_canonicalize_syscall, ppc_linux_syscall_record,
12851         ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
12852         (ppc_linux_init_abi): Set process_record, process_record_signal.
12853         * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
12854         ppc_linux_record_tdep to gdbarch_tdep.
12855         (ppc_process_record): New declaration.
12856         * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
12857         ppc_process_record_op19, ppc_process_record_op31,
12858         ppc_process_record_op59, ppc_process_record_op60,
12859         ppc_process_record_op63, ppc_process_record): New functions.
12860
12861 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
12862
12863         * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
12864         rs6000_in_function_epilogue_frame_p and add an argument
12865         for frame_info.
12866         (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
12867         rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
12868         New functions.
12869         (rs6000_epilogue_frame_unwind): New.
12870         (rs6000_gdbarch_init): Append epilogue unwinder.
12871
12872 2015-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
12873
12874         * nat/linux-personality.c: Replace "#ifndef
12875         HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
12876         !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
12877         systems.
12878
12879 2015-01-16  Eli Zaretskii  <eliz@gnu.org>
12880
12881         * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
12882         functions.
12883         (_initialize_tui_win) <border-kind, border-mode>:
12884         <active-border-mode>: Use tui_set_var_cmd as the "set" function.
12885         (tui_set_tab_width_command): Fix the commentary.
12886
12887         * tui/tui-win.h: Add prototype for tui_rehighlight_all.
12888
12889         * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
12890         Doc fix.
12891         (tui_set_tab_width_command): Delete and recreate the source and
12892         the disassembly windows, to show the effect of the changed tab
12893         size immediately.
12894
12895         * tui/tui-data.h (LINE_PREFIX): Make shorter
12896         (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
12897         "Thread NNNNN.XXXX" thread ID notation on Windows.
12898
12899 2015-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
12900
12901         Fix gcc-5 compilation.
12902         * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
12903
12904 2015-01-15  Sergio Durigan Junior  <sergiodj@redhat.com>
12905
12906         * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
12907         (linux-personality.o): New rule.
12908         * common/common-defs.h: Include <stdint.h>.
12909         * config/aarch64/linux.mh (NATDEPFILES): Include
12910         linux-personality.o.
12911         * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
12912         * config/arm/linux.mh (NATDEPFILES): Likewise.
12913         * config/i386/linux64.mh (NATDEPFILES): Likewise.
12914         * config/i386/linux.mh (NATDEPFILES): Likewise.
12915         * config/ia64/linux.mh (NATDEPFILES): Likewise.
12916         * config/m32r/linux.mh (NATDEPFILES): Likewise.
12917         * config/m68k/linux.mh (NATDEPFILES): Likewise.
12918         * config/mips/linux.mh (NATDEPFILES): Likewise.
12919         * config/pa/linux.mh (NATDEPFILES): Likewise.
12920         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
12921         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
12922         * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
12923         * config/s390/linux.mh (NATDEPFILES): Likewise.
12924         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
12925         * config/sparc/linux.mh (NATDEPFILES): Likewise.
12926         * config/tilegx/linux.mh (NATDEPFILES): Likewise.
12927         * config/xtensa/linux.mh (NATDEPFILES): Likewise.
12928         * defs.h: Remove #include <stdint.h> (moved to
12929         common/common-defs.h).
12930         * linux-nat.c: Include nat/linux-personality.h.  Remove #include
12931         <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
12932         nat/linux-personality.c).
12933         (linux_nat_create_inferior): Remove code to disable address space
12934         randomization (moved to nat/linux-personality.c).  Create cleanup
12935         to disable address space randomization.
12936         * nat/linux-personality.c: New file.
12937         * nat/linux-personality.h: Likewise.
12938
12939 2015-01-15  Sergio Durigan Junior  <sergiodj@redhat.com>
12940
12941         * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
12942         common/posix-strerror.c.
12943         (posix-strerror.o): New rule.
12944         (mingw-strerror.o): Likewise.
12945         * common/common-utils.h (safe_strerror): Move prototype to here,
12946         from utils.h.
12947         * common/common.host: New file.
12948         * common/mingw-strerror.c: Likewise.
12949         * common/posix-strerror.c: Likewise.
12950         * configure: Regenerated.
12951         * configure.ac: Source common/common.host.  Add variable
12952         common_host_obs to gdb_host_obs.
12953         * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
12954         gdb/common/posix-strerror.c when warning about the use of
12955         strerror.
12956         * mingw-hdep.c (safe_strerror): Remove definition; move it to
12957         common/mingw-strerror.c.
12958         * posix-hdep.c (safe_strerror): Remove definition; move it to
12959         common/posix-hdep.c.
12960         * utils.h (safe_strerror): Remove prototype; move to
12961         common/common-utils.h.
12962
12963 2015-01-15  Joel Brobecker  <brobecker@adacore.com>
12964
12965         GDB 7.8.2 released.
12966
12967 2015-01-15  Joel Brobecker  <brobecker@adacore.com>
12968
12969         * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
12970         ___XA type if the array has already been fixed.
12971
12972 2015-01-14  Yao Qi  <yao@codesourcery.com>
12973
12974         * Makefile.in (ppc-linux.o): New rule.
12975         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
12976         * configure.ac: AC_CHECK_FUNCS(getauxval).
12977         * config.in: Re-generated.
12978         * configure: Re-generated.
12979         * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
12980         Declare.
12981         * nat/ppc-linux.c: New file.
12982         * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
12983         Call ppc64_64bit_inferior_p.
12984
12985 2015-01-14  Yao Qi  <yao@codesourcery.com>
12986
12987         * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
12988         nat/ppc-linux.h.
12989         (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
12990         (PPC_FEATURE_HAS_DFP): Likewise.
12991         (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
12992         (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
12993         (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
12994         Include "nat/ppc-linux.h".
12995         * nat/ppc-linux.h: New file.
12996         * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
12997
12998 2015-01-14  Pedro Alves  <palves@redhat.com>
12999
13000         PR gdb/17525
13001         * breakpoint.c: Include "interps.h".
13002         (bpstat_do_actions_1): Also check whether the interpreter is
13003         async.
13004
13005 2015-01-14  Pedro Alves  <palves@redhat.com>
13006
13007         PR cli/17828
13008         * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
13009         reinstall if the interpreter is sync.
13010
13011 2015-01-13  Doug Evans  <dje@google.com>
13012
13013         * objfiles.c (objfile_filename): New function.
13014         * objfiles.h (objfile_filename): Declare it.
13015         (objfile_name): Add function comment.
13016         * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
13017         bfd file name (which may be realpath'd), and the original name.
13018
13019 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
13020
13021         * NEWS: Create a new section for the next release branch.
13022         Rename the section of the current branch, now that it has
13023         been cut.
13024
13025 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
13026
13027         GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
13028         * version.in: Bump version to 7.9.50.DATE-cvs.
13029
13030 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
13031
13032         * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
13033         Remove trailing new-line in argument of call to warning.
13034
13035 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
13036
13037         * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
13038         new-line in argument of call to "warning".
13039
13040 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
13041
13042         * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
13043         in static block, then try searching for primitive types.
13044
13045 2015-01-12  Patrick Palka  <patrick@parcs.ath.cx>
13046
13047         * top.h (gdb_add_history): Declare.
13048         * top.c (command_count): New variable.
13049         (gdb_add_history): New function.
13050         (gdb_safe_append_history): New static function.
13051         (quit_force): Call it.
13052         (command_line_input): Use gdb_add_history instead of
13053         add_history.
13054         * event-top.c (command_line_handler): Likewise.
13055
13056 2015-01-12  James Clarke  <jrtc27@jrtc27.com>  (tiny patch)
13057
13058         PR gdb/17046
13059         * darwin-nat.c: Replace <machine/setjmp.h> #include by
13060         <setjmp.h> #include.
13061
13062 2015-01-11  Doug Evans  <xdje42@gmail.com>
13063
13064         * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
13065
13066 2015-01-11  Doug Evans  <xdje42@gmail.com>
13067
13068         PR gdb/15830
13069         * NEWS: The "maint demangle" command is renamed as "demangle".
13070         * demangle.c: #include cli/cli-utils.h, language.h.
13071         (demangle_command): New function.
13072         (_initialize_demangle): Add new command "demangle".
13073         * maint.c (maintenance_demangle): Stub out.
13074         (_initialize_maint_cmds): Update help text for "maint demangle",
13075         and mark as deprecated.
13076
13077 2015-01-11  Mark Kettenis  <kettenis@gnu.org>
13078
13079         * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
13080         inferior_thread is a function.
13081
13082 2015-01-09  Patrick Palka  <patrick@parcs.ath.cx>
13083
13084         * Makefile.in (.y.c): Don't munge yacc's #line
13085         directives.
13086
13087 2015-01-09  Patrick Palka  <patrick@parcs.ath.cx>
13088
13089         * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
13090         to prompt for input.
13091         * tui/tui-hooks.c (tui_query_hook): Remove.
13092         (tui_install_hooks): Don't set deprecated_query_hook.
13093         * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
13094         height calculation.  Always update the command window's cur_line.
13095
13096 2015-01-09  Pedro Alves  <palves@redhat.com>
13097
13098         * breakpoint.c (hardware_breakpoint_inserted_here_p): New
13099         function.
13100         * breakpoint.h (hardware_breakpoint_inserted_here_p): New
13101         declaration.
13102         * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
13103         (linux_resume_one_lwp): Store the thread's PC.  Adjust to clear
13104         stop_reason.
13105         (check_stopped_by_watchpoint): New function.
13106         (save_sigtrap): Reimplement.
13107         (linux_nat_stopped_by_watchpoint): Adjust.
13108         (linux_nat_lp_status_is_event): Delete.
13109         (stop_wait_callback): Only call save_sigtrap after storing the
13110         pending status.
13111         (status_callback): If the thread had been stopped for a breakpoint
13112         that has since been removed, discard the event and resume the LWP.
13113         (count_events_callback, select_event_lwp_callback): Use
13114         lwp_status_pending_p instead of linux_nat_lp_status_is_event.
13115         (cancel_breakpoint): Rename to ...
13116         (check_stopped_by_breakpoint): ... this.  Record whether the LWP
13117         stopped for a software breakpoint or hardware breakpoint.
13118         (select_event_lwp): Only give preference to the stepping LWP in
13119         all-stop mode.  Adjust comments.
13120         (stop_and_resume_callback): Remove references to new_pending_p.
13121         (linux_nat_filter_event): Likewise.  Leave exit events of the
13122         leader thread pending here.  Handle signal short circuiting here.
13123         Only call save_sigtrap after storing the pending waitstatus.
13124         (linux_nat_wait_1): Remove 'retry' label.  Remove references to
13125         new_pending.  Don't handle leaving events the caller is not
13126         interested in pending here, nor handle signal short-circuiting
13127         here.  Also give equal priority to all LWPs that have had events
13128         in non-stop mode.  If reporting a software breakpoint event,
13129         unadjust the LWP's PC.
13130         * linux-nat.h (enum lwp_stop_reason): New.
13131         (struct lwp_info) <stop_pc>: New field.
13132         (struct lwp_info) <stopped_by_watchpoint>: Delete field.
13133         (struct lwp_info) <stop_reason>: New field.
13134         * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
13135
13136 2015-01-09  Pedro Alves  <palves@redhat.com>
13137
13138         * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
13139         Set the LWP's 'resumed' flag.
13140
13141 2015-01-09  Pedro Alves  <palves@redhat.com>
13142
13143         * linux-nat.c (linux_resume_one_lwp): New function.
13144         (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
13145         (linux_nat_resume): Use lwp_status_pending_p and
13146         linux_resume_one_lwp.
13147         (linux_handle_syscall_trap): Use linux_resume_one_lwp.
13148         (linux_handle_extended_wait): Use linux_resume_one_lwp.
13149         (status_callback, running_callback): Use lwp_status_pending_p.
13150         (lwp_status_pending_p): New function.
13151         (stop_and_resume_callback): Use lwp_status_pending_p.
13152         (linux_nat_filter_event): Use linux_resume_one_lwp.
13153         (linux_nat_wait_1): Always use status_callback to look for an LWP
13154         with a pending status.  Use linux_resume_one_lwp.
13155         (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
13156         linux_resume_one_lwp.
13157
13158 2015-01-09  Pedro Alves  <palves@redhat.com>
13159
13160         * breakpoint.c (bp_location_inserted_here_p): New function,
13161         factored out from ...
13162         (breakpoint_inserted_here_p): ... here.  Use
13163         ALL_BP_LOCATIONS_AT_ADDR.
13164         (software_breakpoint_inserted_here_p): Use
13165         bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
13166
13167 2014-01-09  Pedro Alves  <palves@redhat.com>
13168
13169         Skip enabling event reporting if the kernel supports
13170         PTRACE_EVENT_CLONE.
13171         * linux-thread-db.c: Include "nat/linux-ptrace.h".
13172         (thread_db_use_events): New function.
13173         (try_thread_db_load_1): Check thread_db_use_events before enabling
13174         event reporting.
13175         (update_thread_state): New function.
13176         (attach_thread): Use it.  Check thread_db_use_events before
13177         enabling event reporting.
13178         (thread_db_detach): Check thread_db_use_events before disabling
13179         event reporting.
13180         (find_new_threads_callback): Check thread_db_use_events before
13181         enabling event reporting.  Update the thread's state if not using
13182         libthread_db events.
13183
13184 2015-01-09  Pedro Alves  <palves@redhat.com>
13185
13186         * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
13187         about to wait for is > 0.
13188         * linux-thread-db.c (find_new_threads_callback): Ignore thread if
13189         the kernel thread ID is -1.
13190
13191 2015-01-09  Pedro Alves  <palves@redhat.com>
13192
13193         * linux-nat.c (attach_proc_task_lwp_callback): New function.
13194         (linux_nat_attach): Use linux_proc_attach_tgid_threads.
13195         (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
13196         ptrace option flags.
13197         * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
13198         field.
13199         * nat/linux-procfs.c: Include <dirent.h>.
13200         (linux_proc_get_int): New parameter "warn".  Handle it.
13201         (linux_proc_get_tgid): Adjust.
13202         (linux_proc_get_tracerpid): Rename to ...
13203         (linux_proc_get_tracerpid_nowarn): ... this.
13204         (linux_proc_pid_get_state): New function, factored out from
13205         (linux_proc_pid_has_state): ... this.  Add new parameter "warn"
13206         and handle it.
13207         (linux_proc_pid_is_gone): New function.
13208         (linux_proc_pid_is_stopped): Adjust.
13209         (linux_proc_pid_is_zombie_maybe_warn)
13210         (linux_proc_pid_is_zombie_nowarn): New functions.
13211         (linux_proc_pid_is_zombie): Use
13212         linux_proc_pid_is_zombie_maybe_warn.
13213         (linux_proc_attach_tgid_threads): New function.
13214         * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
13215         (linux_proc_get_tracerpid): Rename to ...
13216         (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
13217         (linux_proc_pid_is_gone): New declaration.
13218         (linux_proc_pid_is_zombie): Update comment.
13219         (linux_proc_pid_is_zombie_nowarn): New declaration.
13220         (linux_proc_attach_lwp_func): New typedef.
13221         (linux_proc_attach_tgid_threads): New declaration.
13222         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
13223         use nowarn functions.
13224         (linux_ptrace_attach_fail_reason_string): Move here from
13225         gdbserver/linux-low.c and rename.
13226         (ptrace_supports_feature): If the current ptrace options are not
13227         known yet, check them now, instead of asserting.
13228         * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
13229         Declare.
13230
13231 2015-01-09  Pedro Alves  <palves@redhat.com>
13232
13233         * linux-thread-db.c (thread_db_find_new_threads_silently)
13234         (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
13235         (find_new_threads_once): Print debug output on gdb_stdlog.
13236
13237 2015-01-09  Chen Gang  <gang.chen.5i5j@gmail.com>
13238             Pedro Alves  <palves@redhat.com>
13239
13240         * compile/compile.c: Include "gdb_wait.h".
13241         (do_rmdir): Check return value, and free 'zap'.
13242
13243 2015-01-08  Pedro Alves  <palves@redhat.com>
13244             Yao Qi  <yao@codesourcery.com>
13245
13246         * dwarf2loc.c (indirect_pieced_value): Don't call
13247         gdb_sign_extend.  Call extract_signed_integer instead.
13248         * utils.c (gdb_sign_extend): Remove.
13249         * utils.h (gdb_sign_extend): Remove declaration.
13250
13251 2015-01-07  Pierre Muller  <muller@sourceware.org>
13252
13253         PR symtab/17811
13254         * stabsread.c (define_symbol): Set language for C++ special symbols.
13255
13256 2015-01-07  Patrick Palka  <patrick@parcs.ath.cx>
13257
13258         * inflow.c (initial_gdb_ttystate): Tweak comment.
13259
13260 2015-01-07  Joel Brobecker  <brobecker@adacore.com>
13261
13262         * inflow.c (set_initial_gdb_ttystate): Add empty line after
13263         comment documenting function.
13264
13265 2015-01-07  Patrick Palka  <patrick@parcs.ath.cx>
13266
13267         * terminal.h (set_initial_gdb_ttystate): Declare.
13268         * inflow.c (initial_gdb_ttystate): New static variable.
13269         (set_initial_gdb_ttystate): New setter.
13270         (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
13271         instead of our current terminal state.
13272         * top.c (gdb_init): Call set_initial_gdb_ttystate.
13273
13274 2015-01-07  Joel Brobecker  <brobecker@adacore.com>
13275
13276         * guile/scm-type.c (tyscm_array_1): Add comment.
13277         * python/py-type.c (typy_array_1): Add comment.
13278
13279 2015-01-06  Joel Brobecker  <brobecker@adacore.com>
13280
13281         * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
13282         error if N2 is equal to N1 - 1.
13283
13284 2015-01-06  Joel Brobecker  <brobecker@adacore.com>
13285
13286         * python/py-type.c (typy_array_1): Do not raise negative-length
13287         exception if N2 is equal to N1 - 1.
13288
13289 2015-01-03  Doug Evans  <xdje42@gmail.com>
13290
13291         * c-exp.y: Whitespace cleanup.
13292         (classify_inner_name): Remove extra ;.
13293
13294 2015-01-02  Maciej W. Rozycki  <macro@codesourcery.com>
13295
13296         * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
13297         offset signed.
13298
13299 2015-01-02  Doug Evans  <dje@google.com>
13300
13301         * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
13302
13303 2015-01-02  Doug Evans  <dje@google.com>
13304
13305         * symtab.h (struct symbol): Fix typo in comment.
13306
13307 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
13308
13309         Update year range in copyright notice of all files.
13310
13311 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
13312
13313         * top.c (print_gdb_version): Update copyright year to 2015.
13314
13315 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
13316
13317         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
13318
13319 For older changes see ChangeLog-2014.
13320 \f
13321 Local Variables:
13322 mode: change-log
13323 left-margin: 8
13324 fill-column: 74
13325 version-control: never
13326 coding: utf-8
13327 End: