disasm: add struct disasm_insn to describe to-be-disassembled instruction
[external/binutils.git] / gdb / ChangeLog
1 2015-11-04  Markus Metzger  <markus.t.metzger@intel.com>
2
3         * disasm.h (DISASSEMBLY_SPECULATION): New.
4         (struct disasm_insn): New.
5         (gdb_pretty_print_insn): New.
6         * disasm.c (gdb_pretty_print_insn): Replace parameter PC with INSN.
7         Update users.  Print instruction number and indicate speculative
8         execution, if requested.
9
10 2015-11-04  Markus Metzger  <markus.t.metzger@intel.com>
11
12         * disasm.c (dump_insns): Split into this and ...
13         (gdb_pretty_print_insn): ... this.
14
15 2015-11-03  Simon Marchi  <simon.marchi@polymtl.ca>
16
17         * xtensa-linux-nat.c (supply_gregset_reg): Make static.
18         (xtensa_linux_fetch_inferior_registers): Likewise.
19         (xtensa_linux_store_inferior_registers): Likewise.
20
21 2015-11-03  Simon Marchi  <simon.marchi@polymtl.ca>
22
23         * arm-linux-nat.c (arm_linux_read_description): Add cast.
24
25 2015-11-03  Simon Marchi  <simon.marchi@polymtl.ca>
26
27         * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint): Change
28         type of rw to enum target_hw_bp_type.
29         (ppc_linux_remove_mask_watchpoint): Likewise.
30         * target.c (target_insert_mask_watchpoint): Likewise.
31         (target_remove_mask_watchpoint): Likewise.
32         * target.h (target_insert_mask_watchpoint): Likewise.
33         (target_remove_mask_watchpoint): Likewise.
34         (struct target_ops) <to_insert_mask_watchpoint>: Likewise.
35         (struct target_ops) <to_remove_mask_watchpoint>: Likewise.
36         * target-delegates.c: Regenerate.
37
38 2015-11-03  Simon Marchi  <simon.marchi@polymtl.ca>
39
40         * remote-sim.c (check_for_duplicate_sim_descriptor): Add casts.
41         (get_sim_inferior_data): Likewise.
42         (sim_inferior_data_cleanup): Likewise.
43         (gdbsim_close_inferior): Likewise.
44         (gdbsim_resume_inferior): Likewise.
45         (gdbsim_wait): Likewise.
46         (simulator_command): Likewise.
47         (sim_command_completer): Likewise.
48
49 2015-11-03  Marcin Kościelnicki  <koriakin@0x04.net>
50
51         * MAINTAINERS (Write After Approval): Add Marcin Kościelnicki.
52
53 2015-10-30  Pedro Alves  <palves@redhat.com>
54
55         * breakpoint.c (breakpoint_in_range_p)
56         (breakpoint_location_address_range_overlap): New functions.
57         * breakpoint.h (breakpoint_in_range_p): New declaration.
58         * infrun.c (displaced_step_prepare_throw): If there's a breakpoint
59         in the scratch pad range, don't displaced step.
60
61 2015-10-30  Marcin Kościelnicki  <koriakin@0x04.net>
62
63         * amd64-linux-tdep.c (amd64_x32_linux_init_abi): Fix size_msghdr,
64         size_stack_t, size_size_t, size_iovec.
65
66 2015-10-30  Marcin Kościelnicki  <koriakin@0x04.net>
67
68         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Fix size_termios.
69         * amd64-linux-tdep.c (amd64_linux_init_abi): Fix size_termios.
70         (amd64_x32_linux_init_abi): Fix size_termios.
71
72 2015-10-30  Marcin Kościelnicki  <koriakin@0x04.net>
73
74         * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Fix TASK_COMM_LEN.
75
76 2015-10-30  Marcin Kościelnicki  <koriakin@0x04.net>
77
78         * linux-record.c (record_linux_system_call): Fix old_select.
79
80 2015-10-30  Marcin Kościelnicki  <koriakin@0x04.net>
81
82         * linux-record.c (record_linux_system_call): Fix newstatat.
83
84 2015-10-30  Marcin Kościelnicki  <koriakin@0x04.net>
85
86         * linux-record.c (record_linux_system_call): Fix [gs]etgroups16.
87
88 2015-10-30  Marcin Kościelnicki  <koriakin@0x04.net>
89
90         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add size_time_t.
91         * amd64-linux-tdep.c (amd64_linux_init_abi): Add size_time_t.
92         (amd64_x32_linux_init_abi): Add size_time_t.
93         * arm-linux-tdep.c (arm_linux_init_abi): Add size_time_t.
94         * i386-linux-tdep.c (i386_linux_init_abi): Add size_time_t.
95         * linux-record.c (record_linux_system_call): Add time, waitpid, pipe
96         handling.
97         * linux-record.h (struct linux_record_tdep): Add size_time_t.
98         * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Add size_time_t.
99
100 2015-10-30  Marcin Kościelnicki  <koriakin@0x04.net>
101
102         * linux-record.c (record_linux_msghdr): Fix msg_namelen handling.
103
104 2015-10-30  Marcin Kościelnicki  <koriakin@0x04.net>
105
106         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Remove
107         size_dirent{,64}, add size_old_dirent.
108         * amd64-linux-tdep.c (amd64_linux_init_abi): Remove size_dirent{,64},
109         add size_old_dirent.
110         (amd64_x32_linux_init_abi): Remove size_dirent{,64}, add
111         size_old_dirent.
112         * arm-linux-tdep.c (arm_linux_init_abi): Remove size_dirent{,64},
113         add size_old_dirent.
114         * i386-linux-tdep.c (i386_linux_init_abi): Remove size_dirent{,64},
115         add size_old_dirent.
116         * linux-record.c (record_linux_system_call): Fix handling of readdir
117         and getdents{,64}.
118         * linux-record.h (struct linux_record_tdep): Remove size_dirent{,64},
119         add size_old_dirent.
120         * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Remove
121         size_dirent{,64}, add size_old_dirent.
122
123 2015-10-30  Marcin Kościelnicki  <koriakin@0x04.net>
124
125         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Fix size_sigaction,
126         size_sigset_t, size_old_sigaction, size_old_sigset_t.
127         * amd64-linux-tdep.c (amd64_linux_init_abi): Fix size_sigaction,
128         size_sigset_t, size_old_sigaction, size_old_sigset_t.
129         (amd64_x32_linux_init_abi): Fix size_sigaction, size_sigset_t,
130         size_old_sigaction, size_old_sigset_t.
131         * arm-linux-tdep.c (arm_linux_init_abi): Fix size_sigaction,
132         size_old_sigaction, size_old_sigset_t.
133         * i386-linux-tdep.c (i386_linux_init_abi): Fix size_sigaction,
134         size_old_sigaction, size_old_sigset_t.
135         * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Fix size_sigaction,
136         size_sigset_t, size_old_sigaction, size_old_sigset_t.
137
138 2015-10-30  Marcin Kościelnicki  <koriakin@0x04.net>
139
140         * arm-linux-tdep.c (arm_linux_init_abi): Fix size_[ug]id.
141         * i386-linux-tdep.c (i386_linux_init_abi): Fix size_[ug]id.
142
143 2015-10-30  Marcin Kościelnicki  <koriakin@0x04.net>
144
145         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Remove size_siginfo.
146         * amd64-linux-tdep.c (amd64_linux_init_abi): Remove size_siginfo.
147         (amd64_x32_linux_init_abi): Remove size_siginfo.
148         * arm-linux-tdep.c (arm_linux_init_abi): Remove size_siginfo.
149         * i386-linux-tdep.c (i386_linux_init_abi): Remove size_siginfo.
150         * linux-record.c (record_linux_system_call): Change size_siginfo
151         to size_siginfo_t.
152         * linux-record.h (struct linux_record_tdep): Remove size_siginfo.
153         * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Remove size_siginfo.
154
155 2015-10-29  Pedro Alves  <palves@redhat.com>
156
157         * mdebugread.c (add_data_symbol): New function, factored out from
158         ...
159         (parse_symbol): ... here.  Delete 'theclass' local.
160
161 2015-10-29  Simon Marchi  <simon.marchi@polymtl.ca>
162
163         * jit.c (jit_target_read_impl): Add cast.
164
165 2015-10-29  Simon Marchi  <simon.marchi@polymtl.ca>
166
167         * jit.c (jit_reader_load): Add cast.
168
169 2015-10-29  Simon Marchi  <simon.marchi@polymtl.ca>
170
171         * dwarf2read.c (partial_die_full_name): Add cast.
172
173 2015-10-29  Pedro Alves  <palves@redhat.com>
174
175         * common/vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
176
177 2015-10-29  Pedro Alves  <palves@redhat.com>
178
179         * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Add cast.
180
181 2015-10-29  Eli Zaretskii  <eliz@gnu.org>
182
183         * utils.c (init_page_info): Disable paging if INSIDE_EMACS is set
184         in the environment.
185
186 2015-10-29  Pedro Alves  <palves@redhat.com>
187
188         * gnu-v2-abi.c (gnuv2_is_destructor_name)
189         (gnuv2_is_constructor_name): Add casts.
190
191 2015-10-29  Pedro Alves  <palves@redhat.com>
192
193         * common/common-exceptions.c (exception_none): Add cast.
194
195 2015-10-29  Pedro Alves  <palves@redhat.com>
196
197         * compile/compile-c-types.c (struct type_map_instance)
198         <gcc_type>: Rename to gcc_type_handle.
199         (insert_type, convert_type): Adjust.
200
201 2015-10-29  Pedro Alves  <palves@redhat.com>
202
203         * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Don't
204         assume that "break" breaks out of a TRY/CATCH.
205         * python/py-framefilter.c (py_print_single_arg): Don't assume
206         "continue" breaks out of a TRY/CATCH.
207         * python/py-value.c (valpy_binop_throw): New function, factored
208         out from ...
209         (valpy_binop): ... this.
210         (valpy_richcompare_throw): New function, factored
211         out from ...
212         (valpy_richcompare): ... this.
213         * solib.c (solib_read_symbols): Don't assume "break" breaks out
214         of a TRY/CATCH.
215         * common/common-exceptions.h [USE_RAW_CXX_TRY]
216         <TRY/CATCH/END_CATCH>: Define as 1-1 wrappers around try/catch.
217
218 2015-10-28  Simon Dardis  <Simon.Dardis@imgtec.com>
219
220         * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Recognise 'or'
221         as move along with [d]addu.
222
223 2015-10-28  Yao Qi  <yao.qi@linaro.org>
224
225         * aarch64-tdep.c (aarch64_software_single_step): Pass 1 to
226         aarch64_decode_insn.
227
228 2015-10-27  Pedro Alves  <palves@redhat.com>
229
230         * common/print-utils.c (host_address_to_string): Rename to ...
231         (host_address_to_string_1): ... this.
232         * common/print-utils.h (host_address_to_string): Reimplement as
233         wrapper around host_address_to_string_1.
234         * utils.c (gdb_print_host_address): Rename to ...
235         (gdb_print_host_address_1): ... this.
236         * utils.h (gdb_print_host_address): Reimplement as wrapper macro
237         around  host_address_to_string_1.
238
239 2015-10-27  Pedro Alves  <palves@redhat.com>
240
241         * alpha-tdep.c (alpha_read_insn): Always pass TARGET_XFER_E_IO to
242         memory_error.  Rename local 'status' to 'res'.
243         * c-lang.c (c_get_string): Always pass TARGET_XFER_E_IO to
244         memory_error.
245         * corefile.c (read_stack, read_code, write_memory): Always pass
246         TARGET_XFER_E_IO to memory_error.
247         * disasm.c (dis_asm_memory_error): Always pass TARGET_XFER_E_IO to
248         memory_error.  Rename parameter 'status' to 'err'.
249         (dump_insns): Rename local 'status' to 'err'.
250         * mips-tdep.c (mips_fetch_instruction): Rename parameter 'statusp'
251         to 'errp'.  Rename local 'status' to 'err'.  Always pass
252         TARGET_XFER_E_IO to memory_error.
253         (mips_breakpoint_from_pc): Rename local 'status' to 'err'.
254         * target.c (target_read_memory, target_read_raw_memory)
255         (target_read_stack, target_read_code, target_write_memory)
256         (target_write_raw_memory): Return -1 on error instead of
257         TARGET_XFER_E_IO.
258         * valprint.c (val_print_string): Rename local 'errcode' to 'err'.
259         Always pass TARGET_XFER_E_IO to memory_error.  Update comment.
260
261 2015-10-27  Simon Marchi  <simon.marchi@polymtl.ca>
262
263         * guile/guile-internal.h (gdbscm_with_guile): Change return
264         types to const char *.
265         * guile/scm-safe-call.c (gdbscm_with_guile): Likewise.
266         (struct c_data) <func>: Likewise.
267         (struct c_data) <result>: Change type to const char *.
268         (scscm_eval_scheme_string): Change return type to
269         const char *.
270         (scscm_source_scheme_script): Likewise.
271         (gdbscm_safe_eval_string): Change type of result variable to
272         const char * and remove cast.
273         (gdbscm_safe_source_script): Likewise.
274         * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker):
275         Change return type to const char *.
276         (gdbscm_disasm_read_memory): Change type of status to
277         const char *.
278
279 2015-10-27  Pedro Alves  <palves@redhat.com>
280
281         * source.c (openp): New local 'last_errno'.  Use it to
282         save/restore errno.
283
284 2015-10-27  Pedro Alves  <palves@redhat.com>
285
286         * psymtab.c (dump_psymtab_addrmap_1): Add casts.
287
288 2015-10-27  Simon Marchi  <simon.marchi@polymtl.ca>
289
290         * ctf.c (SET_ENUM_FIELD): New macro.
291         (ctf_read_status): Use it.
292         (ctf_read_tp): Use it.
293
294 2015-10-27  Simon Marchi  <simon.marchi@polymtl.ca>
295
296         * guile/scm-breakpoint.c (gdbscm_set_breakpoint_stop_x): Add
297         scm_t_dynwind_flags casts.
298         * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
299         * guile/scm-ports.c (gdbscm_open_memory): Likewise.
300         * guile/scm-value.c (gdbscm_value_to_string): Likewise.
301
302 2015-10-27  Simon Marchi  <simon.marchi@polymtl.ca>
303
304         * ax.h (ax_raw_byte): New declaration.
305         * ax-general.c (ax_raw_byte): New function.
306         (ax_simple): Use ax_raw_byte.
307         * ax-gdb.c (gen_printf): Likewise.
308
309 2015-10-27  Simon Marchi  <simon.marchi@polymtl.ca>
310
311         * ada-lang.h (GROW_VECT): Add cast.
312
313 2015-10-26  Doug Evans  <xdje42@gmail.com>
314
315         * symtab.h (struct general_symbol_info> <ada_mangled>: Update comment.
316
317 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
318
319         * target.c (memory_xfer_partial): Change type of buf to gdb_byte
320         pointer.
321         (simple_search_memory): Cast return of memmem.
322
323 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
324
325         * stap-probe.c (handle_stap_probe): Add (const char *) casts.
326
327 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
328
329         * ctf.c (ctf_xfer_partial): Return TARGET_XFER_E_IO instead of
330         -1 on error.
331
332 2015-10-26  Doug Evans  <dje@google.com>
333
334         PR symtab/17391
335         * dwarf2-frame.c (dwarf2_restore_rule): Call dwarf_reg_to_regnum
336         instead of gdbarch_dwarf2_reg_to_regnum.
337         (dwarf2_frame_cache): Ditto.
338         (read_addr_from_reg): Call dwarf_reg_to_regnum_or_error instead of
339         gdbarch_dwarf2_reg_to_regnum.
340         (get_reg_value): Ditto.
341         (dwarf2_fetch_cfa_info): Ditto.
342         (dwarf2_frame_prev_register): Ditto.
343         * dwarf2loc.c: #include "complaints.h".
344         (dwarf_expr_read_addr_from_reg): Call dwarf_reg_to_regnum_or_error
345         instead of gdbarch_dwarf2_reg_to_regnum.
346         (dwarf_expr_get_reg_value): Ditto.
347         (read_pieced_value): Ditto.
348         (write_pieced_value): Ditto.
349         (dwarf2_evaluate_loc_desc_full): Ditto.
350         (dwarf_reg_to_regnum): New function.
351         (throw_bad_regnum_error): New function.
352         (dwarf_reg_to_regnum_or_error): Renamed from
353         dwarf2_reg_to_regnum_or_errorChange to take a ULONGEST regnum.
354         All callers updated.  Call throw_bad_regnum_error.
355         (locexpr_regname): Improve text of bad register number.
356         * dwarf2loc.h (dwarf_reg_to_regnum): Declare.
357         (dwarf_reg_to_regnum_or_error): Update prototype.
358         * dwarf2expr.c: #include "dwarf2loc.h".
359         (dwarf_block_to_sp_offset): Call dwarf_reg_to_regnum instead of
360         gdbarch_dwarf2_reg_to_regnum.
361         * gdbarch.sh (dwarf2_reg_to_regnum): Add comment.
362         * gdbarch.h: Regenerate.
363         * amd64-tdep.c (amd64_dwarf_reg_to_regnum): Remove warning for bad
364         register.
365         * avr-tdep.c (avr_dwarf_reg_to_regnum): Ditto.
366         * cris-tdep.c (cris_dwarf2_reg_to_regnum): Ditto.
367         * bfin-tdep.c (bfin_reg_to_regnum): Fix error checking.
368         * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum): Improve error checking.
369         Remove warning for bad register.
370         * hppa-tdep.c (hppa64_dwarf_reg_to_regnum): Ditto.
371         * i386-tdep.c (i386_svr4_dwarf_reg_to_regnum): Renamed from
372         i386_svr4_reg_to_regnum.  Return -1 for bad registers.
373         (i386_svr4_reg_to_regnum): New function.
374         (i386_gdbarch_init): Update call to set_gdbarch_dwarf2_reg_to_regnum.
375         * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Don't assert
376         on bad registers, return -1.
377         * msp430-tdep.c (msp430_dwarf2_reg_to_regnum): Improve error checking.
378         Remove warning for bad register.
379         * nios2-tdep.c: Add static assert for NIOS2_NUM_REGS.
380         (nios2_dwarf_reg_to_regnum): Fix off-by-one error.
381         Remove warning for bad register.  Return -1 for bad register.
382         * rl78-tdep.c (rl78_dwarf_reg_to_regnum): Don't flag an internal error
383         for bad register, return -1.
384         * rx-tdep.c (rx_dwarf_reg_to_regnum): Ditto.
385         * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Fix error result.
386         * mep-tdep.c (mep_debug_reg_to_regnum): Ditto.
387         * mips-tdep.c (mips_stab_reg_to_regnum): Ditto.
388         (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
389         * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Remove warning
390         for bad regs.
391         * xtensa-tdep.c (xtensa_reg_to_regnum): Remove internal error for
392         bad regs.  Fix error result.
393         * stabsread.c (stab_reg_to_regnum): Watch for negative regno.
394         (reg_value_complaint): Update complaint text.
395         * mdebugread.c (reg_value_complaint): New function.
396         (mdebug_reg_to_regnum): Rewrite to watch for bad reg numbers.
397
398 2015-10-26  Doug Evans  <dje@google.com>
399
400         PR python/18938
401         * cli/cli-cmds (source_script_fron_sctream): New arg file_to_open.
402         All callers updated.
403
404 2015-10-26  Doug Evans  <dje@google.com>
405
406         * psymtab.c (struct dump_psymtab_addrmap_data): Define.
407         (dump_psymtab_addrmap_1, dump_psymtab_addrmap): New functions.
408         (maintenance_print_psymbols): Print address map.
409
410 2015-10-26  Doug Evans  <dje@google.com>
411
412         * nat/linux-nat.h (__SIGRTMIN): Move here from gdbserver/linux-low.c.
413
414 2015-10-26  Doug Evans  <dje@google.com>
415
416         * common/gdb_wait.h (W_STOPCODE): Define, moved here from
417         gdbserver/linux-low.c.
418         (WSETSTOP): Simplify.
419
420 2015-10-26  Doug Evans  <dje@google.com>
421
422         * linux-thread-db.c (find_new_threads_callback): Ditto.
423         (thread_db_pid_to_str): Ditto.
424
425 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
426
427         * guile/scm-ports.c (ioscm_make_gdb_stdio_port): Do not pass a
428         local char array to scm_mode_bits, use a cast instead.
429
430 2015-10-26  Simon Marchi  <simon.marchi@ericsson.com>
431
432         * tui/tui-data.c (tui_alloc_content): Don't check xmalloc
433         result.  Change type of element_block_ptr.  Change allocation to
434         use XNEWVEC.
435
436 2015-10-26  Luis Machado  <lgustavo@codesourcery.com>
437
438         * record-full.c (record_full_message_wrapper_safe): Pass empty string to
439         catch_errors call instead of NULL.
440
441 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
442
443         * guile/scm-ports.c (ioscm_make_gdb_stdio_port): Pass non-const
444         char pointer to scm_mode_bits.
445
446 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
447
448         * symtab.c (default_make_symbol_completion_list_break_on_1): Add
449         cast.
450
451 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
452
453         * guile/scm-ports.c (gdbscm_memory_port_write): Declare new
454         "data" local variable and use it.
455
456 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
457
458         * guile/scm-symbol.c (gdbscm_lookup_global_symbol): Add
459         domain_enum cast.
460         (gdbscm_lookup_symbol): Likewise.
461
462 2015-10-25  Iain Buclaw  <ibuclaw@gdcproject.org>
463
464         * d-exp.y: Remove an obsolete comment and propagate the block
465         information to the produced expression.
466
467 2015-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
468
469         * tui/tui-data.c (tui_add_to_source_windows): Remove void *
470         cast.
471         (tui_add_content_elements): Likewise.
472
473 2015-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
474
475         * cli/cli-setshow.c (do_set_command): Constify p.
476
477 2015-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
478
479         * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Replace
480         (void *) cast with (gdb_byte *).
481
482 2015-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
483
484         * proc-service.c (ps_pdread): Add cast.
485
486 2015-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
487
488         * sparc64-tdep.c (sparc64_store_arguments): Split assignment of
489         valbuf.
490
491 2015-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
492
493         * ia64-tdep.c (ia64_pseudo_register_write): Remove cast.
494         (ia64_push_dummy_call): Remove cast and change type of "to" to
495         array of gdb_byte.
496
497 2015-10-23  Simon Marchi  <simon.marchi@polymtl.ca>
498
499         * linux-btrace.c (linux_enable_pt): Add cast to mmap return.
500
501 2015-10-23  Simon Marchi  <simon.marchi@ericsson.com>
502
503         * observer.h (observer_${event}_notification_stub): Add cast.
504
505 2015-10-23  Yao Qi  <yao.qi@linaro.org>
506
507         * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Set
508         dsd.insn_count to zero.
509
510 2015-10-22  Pedro Alves  <palves@redhat.com>
511
512         * infrun.c (stop_after_trap): Delete.
513         (clear_proceed_status, handle_signal_stop, struct
514         infcall_control_state, save_infcall_control_state)
515         (restore_infcall_control_state): Remove references to
516         stop_after_trap.
517
518 2015-10-22  Simon Marchi  <simon.marchi@ericsson.com>
519
520         * python/python.c (_initialize_python): Add cast.
521
522 2015-10-22  Simon Marchi  <simon.marchi@ericsson.com>
523
524         * nto-tdep.c (nto_inferior_data): Add cast.
525
526 2015-10-22  Pedro Alves  <palves@redhat.com>
527
528         * windows-nat.c (do_initial_windows_stuff): Rewrite loop using
529         windows_wait and windows_resume directly instead of
530         wait_for_inferior and resume.
531
532 2015-10-22  Simon Marchi  <simon.marchi@polymtl.ca>
533
534         * xtensa-tdep.h (XTREG): Add casts.
535         (XTREG_END): Likewise.
536
537 2015-10-22  Simon Marchi  <simon.marchi@polymtl.ca>
538
539         * solib-spu.c (spu_bfd_iovec_pread): Add (gdb_byte *) cast.
540
541 2015-10-22  Simon Marchi  <simon.marchi@polymtl.ca>
542
543         * rs6000-tdep.c (variants): Add (enum bfd_architecture) cast.
544
545 2015-10-22  Simon Marchi  <simon.marchi@polymtl.ca>
546
547         * mips-linux-tdep.c (mips64_linux_get_longjmp_target): Change type of
548         buf to gdb_byte*.
549         (supply_32bit_reg): Add cast.
550         (mips64_fill_gregset): Likewise.
551
552 2015-10-21  Simon Marchi  <simon.marchi@polymtl.ca>
553
554         PR python/18073
555         * python/py-type.c (typy_get_composite): Allow returning a
556         function type.
557
558 2015-10-21  Keven Boell  <keven.boell@intel.com>
559
560         * dwarf2read.c (set_die_type): Add read of
561         DW_AT_allocated and DW_AT_associated.
562         * f-typeprint.c: New include of typeprint.h
563         (f_print_type): Add check for allocated/associated
564         status of type.
565         (f_type_print_varspec_suffix): Add check for
566         * gdbtypes.c (create_array_type_with_stride):
567         Add check for valid data location of type in
568         case allocated or associated attributes are set.
569         Length of an array should be only calculated if
570         allocated or associated is resolved as true.
571         (is_dynamic_type_internal): Add check for allocated/
572         associated.
573         (resolve_dynamic_array): Evaluate allocated/associated
574         properties.
575         * gdbtypes.h (enum dynamic_prop_node_kind): <DYN_PROP_ALLOCATED>
576         <DYN_PROP_ASSOCIATED>: New enums.
577         (TYPE_ALLOCATED_PROP, TYPE_ASSOCIATED_PROP): New macros.
578         (type_not_allocated): New function.
579         (type_not_associated): New function.
580         * valarith.c (value_subscripted_rvalue): Add check for
581         allocated/associated.
582         * valprint.c: New include of typeprint.h.
583         (valprint_check_validity): Add check for allocated/associated.
584         (value_check_printable): Add check for allocated/
585         associated.
586         * typeprint.h (val_print_not_allocated): New function.
587         (val_print_not_associated): New function.
588         * typeprint.c (val_print_not_allocated): New function.
589         (val_print_not_associated): New function.
590
591 2015-10-21  Antoine Tremblay  <antoine.tremblay@ericsson.com>
592
593         * Makefile.in: Add arm.c/o.
594         * arch/arm.c: New file.
595         * arch/arm.h: (IS_THUMB_ADDR): Move macro from arm-tdep.c.
596         (MAKE_THUMB_ADDR): Likewise.
597         (UNMAKE_THUMB_ADDR): Likewise.
598         * arm-tdep.c (int thumb_insn_size): Move to arm.c.
599         (IS_THUMB_ADDR): Move to arm.h.
600         (MAKE_THUMB_ADDR): Likewise.
601         (UNMAKE_THUMB_ADDR): Likewise.
602         * configure.tgt: Add arm.o to all ARM configs.
603
604 2015-10-21  Yao Qi  <yao.qi@linaro.org>
605
606         * lib/range-stepping-support.exp (exec_cmd_expect_vCont_count):
607         Remove argument exp_vCont_s.
608         * gdb.base/range-stepping.exp: Callers updated.
609         * gdb.trace/range-stepping.exp: Likewise.
610
611 2015-10-21  Aleksandar Ristovski  <aristovski@qnx.com>
612
613         * gdb/nto-tdep.c (QNX_NOTE_NAME, QNX_INFO_SECT_NAME): New defines.
614         (nto_sniff_abi_note_section): New function.
615         (nto_elf_osabi_sniffer): Use new function to recognize nto specific
616         binary.
617
618 2015-10-21  Aleksandar Ristovski  <aristovski@qnx.com>
619
620         * nto-procfs.c (procfs_wait): Set stopped_flags nad stopped_pc.
621         (procfs_stopped_by_watchpoint): Use flags stored in inferior data.
622         * nto-tdep.c (nto_new_inferior_data_reg): New definition.
623         (nto_new_inferior_data, nto_inferior_data_cleanup, nto_inferior_data):
624         New functions.
625         (_initialize_nto_tdep): New forward declaration, new function.
626         * nto-tdep.h (struct nto_inferior_data): New struct.
627         (nto_inferior_data): New function declaration.
628
629 2015-10-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
630
631         * findvar.c (address_from_register): Check REGNUM validity.
632
633 2015-10-20  Aleksandar Ristovski  <aristovski@qnx.com>
634
635         * gdb/nto-procfs.c (procfs_pid_to_exec_file): New function.
636         (init_procfs_targets): Wire new function.
637
638 2015-10-20  Aleksandar Ristovski  <aristovski@qnx.com>
639
640         * nto-procfs.c (sys/auxv.h): Include.
641         (procfs_xfer_partial): Implement TARGET_OBJECT_AUXV.
642         * nto-tdep.c (nto_read_auxv_from_initial_stack): New function.
643         * nto-tdep.h (nto_read_auxv_from_initial_stack): New declaration.
644
645 2015-10-20  Aleksandar Ristovski  <aristovski@qnx.com>
646
647         * nto-procfs.c (nto_procfs_path): Rename to...
648         (nodestr): ... this, and change type.
649         (nto_node): Use new variable and logic accordingly.
650         (procfs_open_1): Use new variable name. Use local buffer to construct
651         procfrs path.
652         (procfs_pidlist): Use NODESTR to construct procfs path.
653         (procfs_files_info): Use NODESTR to output meaningful text.
654         (do_attach): Construct procfs using NODESTR.
655         (procfs_create_inferior): Compare pointer to NULL.
656
657 2015-10-19  Josh Stone  <jistone@redhat.com>
658
659         * linux-nat.c (linux_handle_syscall_trap): Always update entry/
660         return state, even when not actively catching syscalls at all.
661         (linux_handle_extended_wait): Mark syscall_state like an entry.
662         (wait_lwp): Set syscall_state ignored for other traps.
663         (linux_nat_filter_event): Likewise.
664
665 2015-10-19  Luis Machado  <lgustavo@codesourcery.com>
666
667         * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to 0
668         when handling 'E', 'T', 'S', 'X' and 'W' packets.
669         Do not set rs->waiting_for_stop_reply back to 1.
670
671 2015-10-16  Aleksandar Ristovski  <aristovski@qnx.com>
672
673         * nto-procfs.c (common/filestuff.h): Include.
674         (procfs_can_use_hw_breakpoint): Fix enum name.
675         (procfs_open_1): Fix compiler warning.
676         (procfs_pidlist): Make static.
677         (procfs_meminfo): Make static, fix type name, add missing argument.
678         (procfs_store_registers): Make static.
679         (procfs_thread_info): Remove unused function.
680         (_initialize_procfs): Forward declare.
681
682 2015-10-16  Yao Qi  <yao.qi@arm.com>
683
684         * MAINTAINERS: Update my email address.
685
686 2015-10-15  Yao Qi  <yao.qi@linaro.org>
687
688         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint):
689         Call gdbarch_breakpoint_from_pc to instruction length.
690         (aarch64_linux_remove_hw_breakpoint): Likewise.
691         * common/common-regcache.h (regcache_register_size): Declare.
692         * nat/aarch64-linux-hw-point.c: Include "common-regcache.h".
693         (aarch64_point_is_aligned): Set alignment to 2 for breakpoint if
694         the process is 32bit, otherwise set alignment to 4.
695         (aarch64_handle_breakpoint): Update comments.
696         * regcache.c (regcache_register_size): New function.
697
698 2015-10-15  Aleksandar Ristovski  <aristovski@qnx.com>
699
700         * gdbarch.sh (core_regset_section): Remove.
701         * gdbarch.h: Regenerate.
702
703 2015-10-14  Yao Qi  <yao.qi@linaro.org>
704
705         * arch/aarch64-insn.h (struct aarch64_memory_operand): Move enum
706         out of it.
707         (enum aarch64_memory_operand_type): New.
708
709 2015-10-13  David Edelsohn  <dje.gcc@gmail.com>
710
711         * xcoffread.c (dwarf2_xcoff_names): Add .dwmac and .dwpbtyp.
712
713 2015-10-13  Pedro Alves  <palves@redhat.com>
714
715         * ada-lang.c (ada_enum_name): Constify local.
716         * ada-typeprint.c (print_range_bound): Constify locals.
717         * c-varobj.c (c_describe_child): Likewise.
718         * cli/cli-setshow.c (do_set_command): Likewise.
719         * gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
720         * dwarf2read.c (find_file_and_directory): Likewise.
721         (anonymous_struct_prefix, dwarf2_name): Likewise.
722         * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
723         * go-lang.c (unpack_mangled_go_symbol): Likewise.
724         * jv-typeprint.c (java_type_print_base): Likewise.
725         * ser-tcp.c (net_open): Likewise.
726         * symfile.c (deduce_language_from_filename): Likewise.
727         * symtab.c (gdb_mangle_name): Likewise.
728         * tui/tui-io.c (tui_redisplay_readline): Likewise.
729
730 2015-10-13  Pedro Alves  <palves@redhat.com>
731
732         * infrun.c (restore_execution_direction): New function.
733         (fetch_inferior_event): Use it instead of
734         make_cleanup_restore_integer.
735         (execution_direction): Change type to enum
736         exec_direction_kind.
737         * infrun.h (execution_direction): Likewise.
738
739 2015-10-13  Pedro Alves  <palves@redhat.com>
740
741         * ada-lang.c (ada_value_primitive_packed_val): Constify
742         locals.  Use value_contents_writeable.  Remove casts.
743
744 2015-10-13  Pedro Alves  <palves@redhat.com>
745
746         * ada-lang.c (ada_value_primitive_packed_val): Add casts to malloc
747         and alloca calls.
748
749 2015-10-13  Simon Marchi  <simon.marchi@polymtl.ca>
750
751         * lm32-tdep.c (lm32_push_dummy_call): Replace call to
752         write_memory with write_memory_unsigned_integer.
753
754 2015-10-13  Simon Marchi  <simon.marchi@polymtl.ca>
755
756         * solib-dsbt.c (cmp_name): Constify arguments.
757         * solib-frv.c (cmp_name): Likewise.
758         * solib-svr4.c (svr4_create_solib_event_breakpoints): Likewise.
759         * solib.c (gdb_bfd_lookup_symbol_from_symtab): Likewise.
760         (bfd_lookup_symbol_from_dyn_symtab): Likewise.
761         (gdb_bfd_lookup_symbol): Likewise.
762         * solib.h (gdb_bfd_lookup_symbol): Likewise.
763         (gdb_bfd_lookup_symbol_from_symtab): Likewise.
764
765 2015-10-12  Andrew Burgess  <andrew.burgess@embecosm.com>
766
767         * stack.c (parse_frame_specification): Remove message parameter,
768         replace with fixed string in function body, update function
769         comment.
770         (frame_info): Remove message to parse_frame_specification.
771         (select_frame_command): Likewise.
772
773 2015-10-12  Andrew Burgess  <andrew.burgess@embecosm.com>
774
775         * stack.c (parse_frame_specification): Delete.
776         (parse_frame_specification_1): Rename to
777         parse_frame_specification.
778         (frame_info): Use parse_frame_specification.
779         (select_frame_command): Likewise.
780         (return_command): Use select_frame and print_stack_frame rather
781         than frame_command and select_frame_command.
782         (func_command): Use get_current_frame rather than
783         parse_frame_specification.
784
785 2015-10-12  Andrew Burgess  <andrew.burgess@embecosm.com>
786
787         * stack.c (func_command): Return early when there is no ARG
788         string.
789
790 2015-10-12  Andrew Burgess  <andrew.burgess@embecosm.com>
791
792         * stack.c: Include safe-ctype.h not ctype.h.
793         (parse_frame_specification): Use ISSPACE not isspace.
794         (backtrace_command): Use TOLOWER not tolower.
795
796 2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
797
798         * mep-tdep.c (current_me_module): Add cast.
799         (mep_gdbarch_init): Likewise.
800
801 2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
802
803         * m32c-tdep.c (m32c_move_reg_t): Replace with...
804         (m32c_write_reg_t): ...this and...
805         (m32c_read_reg_t): ...this.
806         (struct m32c_reg): Update types of read and write.
807         (m32c_raw_read): Change declaration type to m32c_read_reg_t and
808         adjust definition.
809         (m32c_banked_read): Likewise.
810         (m32c_sb_read): Likewise.
811         (m32c_part_read): Likewise.
812         (m32c_cat_read): Likewise.
813         (m32c_r3r2r1r0_read): Likewise.
814         (m32c_raw_write): Change declaration type to m32c_write_reg_t
815         and adjust definition.
816         (m32c_banked_write): Likewise.
817         (m32c_sb_write): Likewise.
818         (m32c_part_write): Likewise.
819         (m32c_cat_write): Likewise.
820         (m32c_r3r2r1r0_write): Likewise.
821
822 2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
823
824         * aarch64-linux-tdep.c (aarch64_linux_syscall_record): Add cast.
825
826 2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
827
828         * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Return
829         gdb_sys_no_syscall instead of -1.
830
831 2015-10-12  Yao Qi  <yao.qi@linaro.org>
832
833         * NEWS: Mention the change.
834
835 2015-10-12  Yao Qi  <yao.qi@linaro.org>
836
837         * arch/aarch64-insn.c (emit_load_store): Rename to ...
838         (aarch64_emit_load_store): ... it.  All callers updated.
839
840 2015-10-12  Yao Qi  <yao.qi@linaro.org>
841
842         * arch/aarch64-insn.c (emit_insn): Rename to ...
843         (aarch64_emit_insn): ... it.  All callers updated.
844
845 2015-10-12  Yao Qi  <yao.qi@linaro.org>
846
847         * aarch64-linux-tdep.c: Include arch-utils.h.
848         (aarch64_linux_init_abi): Call set_gdbarch_max_insn_length,
849         set_gdbarch_displaced_step_copy_insn,
850         set_gdbarch_displaced_step_fixup,
851         set_gdbarch_displaced_step_free_closure,
852         set_gdbarch_displaced_step_location,
853         and set_gdbarch_displaced_step_hw_singlestep.
854         * aarch64-tdep.c (struct displaced_step_closure): New.
855         (struct aarch64_displaced_step_data): New.
856         (aarch64_displaced_step_b): New function.
857         (aarch64_displaced_step_b_cond): Likewise.
858         (aarch64_register): Likewise.
859         (aarch64_displaced_step_cb): Likewise.
860         (aarch64_displaced_step_tb): Likewise.
861         (aarch64_displaced_step_adr): Likewise.
862         (aarch64_displaced_step_ldr_literal): Likewise.
863         (aarch64_displaced_step_others): Likewise.
864         (aarch64_displaced_step_copy_insn): Likewise.
865         (aarch64_displaced_step_fixup): Likewise.
866         (aarch64_displaced_step_hw_singlestep): Likewise.
867         * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): New macro.
868         (aarch64_displaced_step_copy_insn): Declare.
869         (aarch64_displaced_step_fixup): Declare.
870         (aarch64_displaced_step_hw_singlestep): Declare.
871         * arch/aarch64-insn.c (emit_insn): Moved from
872         gdbserver/linux-aarch64-low.c.
873         (emit_load_store): Likewise.
874         * arch/aarch64-insn.h (enum aarch64_opcodes): Moved from
875         gdbserver/linux-aarch64-low.c.
876         (struct aarch64_register): Likewise.
877         (struct aarch64_memory_operand): Likewise.
878         (ENCODE): Likewise.
879         (can_encode_int32): New macro.
880         (emit_b, emit_bcond, emit_cb, emit_ldr, emit_ldrsw): Likewise.
881         (emit_tb, emit_nop): Likewise.
882         (emit_insn): Declare.
883         (emit_load_store): Declare.
884
885 2015-10-12  Yao Qi  <yao.qi@linaro.org>
886
887         * arch/aarch64-insn.c (aarch64_decode_ldr_literal): Moved from
888         gdbserver/linux-aarch64-low.c.
889         (aarch64_relocate_instruction): Likewise.
890         * arch/aarch64-insn.h (aarch64_decode_ldr_literal): Declare.
891         (struct aarch64_insn_data): Moved from
892         gdbserver/linux-aarch64-low.c.
893         (struct aarch64_insn_visitor): Likewise.
894         (aarch64_relocate_instruction): Declare.
895
896 2015-10-12  Pierre-Marie de Rodat  <derodat@adacore.com>
897
898         * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT>: If
899         EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute
900         to the returned value.
901
902 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
903
904         * ada-lang.c (ada_unpack_from_contents): Add guard that unpacked
905         is large enough for BIT_SIZE.  Update function comment.
906
907 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
908
909         * ada-lang.c (ada_value_primitive_packed_val): Move
910         src_len variable to local block where used.  Override
911         BIT_SIZE if bigger than size of resolved type.
912
913 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
914
915         * gdbtypes.h (is_scalar_type): Add extern declaration.
916         * gdbtypes.c (is_scalar_type): Make non-static.
917         * ada-lang.c (ada_value_primitive_packed_val): Use is_scalar_type
918         to compute IS_SCALAR instead of doing it ourselves.
919
920 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
921
922         * ada-lang.c (ada_value_primitive_packed_val): Rework handling
923         of case where TYPE is dynamic.
924
925 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
926
927         * ada-lang.c (ada_unpack_from_contents): New function,
928         extracted from ada_value_primitive_packed_val.
929         (ada_value_primitive_packed_val): Replace extracted out code
930         by call to ada_unpack_from_contents.
931
932 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
933
934         * ada-lang.c (ada_value_primitive_packed_val): Reorder local
935         variable declarations.
936
937 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
938
939         * ada-lang.c (ada_value_primitive_packed_val): Change the type
940         of local variables src and unpacked to "gdb_type *" instead of
941         "unsigned char *".
942
943 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
944
945         * ada-lang.c (ada_value_primitive_packed_val): Make the name
946         of various local variables more explicit and consistent.
947         No real code change otherwise.
948
949 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
950
951         * i386-tdep.h (struct gdbarch_tdep): Change type of
952         register_reggroup_p to gdbarch_register_reggroup_p_ftype.
953
954 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
955
956         * cris-tdep.c (struct instruction_environment): Change type of
957         byte_order to enum bfd_endian.
958
959 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
960
961         * arm-linux-tdep.c (arm_canonicalize_syscall): Add
962         enum gdb_syscall casts.
963
964 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
965
966         * aarch64-tdep.c (stack_item_t): Change type of data to gdb_byte*.
967         * arm-tdep.c (struct stack_item): Likewise.
968         (push_stack_item): Add gdb_byte* cast.
969         * avr-tdep.c (struct stack_item): Change type of data to gdb_byte*.
970         (push_stack_item): Add gdb_byte* cast.
971         * cli/cli-dump.c (dump_memory_to_file): Change type of buf to gdb_byte*
972         and add cast.
973         * cris-tdep.c (struct stack_item): Change type of data to gdb_byte*.
974         (push_stack_item): Add gdb_byte* cast.
975         * gcore.c (gcore_copy_callback): Change type of memhunk to gdb_byte* and
976         add cast.
977         * gdbtypes.h (print_scalar_formatted): Change type of first parameter to
978         gdb_byte*.
979         * h8300-tdep.c (h8300_extract_return_value): Change type of valbuf to
980         gdb_byte* and remove unnecessary cast.
981         (h8300h_extract_return_value): Likewise.
982         (h8300_store_return_value): Change type of valbuf to gdb_byte*.
983         (h8300h_store_return_value): Likewise.
984         * iq2000-tdep.c (iq2000_extract_return_value): Change type of valbuf to
985         gdb_byte* and remove unnecessary cast.
986         * jit.c (jit_reader_try_read_symtab): Change type of gdb_mem to gdb_byte*
987         and add cast.
988         * m32r-tdep.c (m32r_store_return_value): Change type of valbuf to
989         gdb_byte* and remove unnecessary cast.
990         (m32r_extract_return_value): Change type of dst to gdb_byte* and remove
991         valbuf.
992         * mep-tdep.c (mep_pseudo_cr32_read): Change type of buf to gdb_byte*.
993         (mep_pseudo_cr64_read): Likewise.
994         (mep_pseudo_csr_write): Likewise.
995         (mep_pseudo_cr32_write): Likewise.
996         (mep_pseudo_cr64_write): Likewise.
997         * mi/mi-main.c (mi_cmd_data_write_memory): Change type of buffer to
998         gdb_byte* and add cast.
999         * moxie-tdep.c (moxie_store_return_value): Change type of valbuf to
1000         gdb_byte* and remove unnecessary cast.
1001         (moxie_extract_return_value): Change type of dst to gdb_byte* and remove
1002         valbuf.
1003         * p-valprint.c (print_scalar_formatted): Change type of valaddr to
1004         gdb_byte*.
1005         * printcmd.c (void): Likewise.
1006         * python/py-inferior.c (infpy_read_memory): Change type of buffer to
1007         gdb_byte* and add cast.
1008         (infpy_write_memory): Likewise.
1009         (infpy_search_memory): Likewise.
1010         * regcache.c (regcache_raw_write_signed): Change type of buf to gdb_byte*
1011         and add cast.
1012         (regcache_raw_write_unsigned): Likewise.
1013         (regcache_cooked_write_signed): Likewise.
1014         (regcache_cooked_write_unsigned): Likewise.
1015         * sh64-tdep.c (h64_extract_return_value): Change type of valbuf to
1016         gdb_byte*.
1017
1018 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
1019
1020         * fbsd-tdep.c (fbsd_collect_regset_section_cb): Add cast.
1021         * linux-tdep.c (linux_collect_regset_section_cb_data): Likewise.
1022
1023 2015-10-09  Eli Zaretskii  <eliz@gnu.org>
1024
1025         * stack.c (print_stack_frame):
1026         * utils.c (printchar): Fix typos in commentary.
1027
1028 2015-10-08  Iain Buclaw  <ibuclaw@gdcproject.org>
1029
1030         * d-exp.y: (UnaryExpression): Support `type.sizeof' expressions.
1031         (PostfixExpression): Support `expr.sizeof' expressions.
1032         (PrimaryExpression): Support `typeof(expr)' expressions.
1033
1034 2015-10-08  Maciej W. Rozycki  <macro@imgtec.com>
1035
1036         * MAINTAINERS: Update my email address.
1037
1038 2015-10-08  Markus Metzger  <markus.t.metzger@intel.com>
1039
1040         * record-btrace.c (record_btrace_resume): Fix void return.
1041
1042 2015-10-07  Yao Qi  <yao.qi@linaro.org>
1043
1044         * aarch64-tdep.c: Include opcode/aarch64.h.
1045         (submask): Move it above.
1046         (bit): Likewise.
1047         (bits): Likewise.
1048         (aarch64_software_single_step): Call aarch64_decode_insn.
1049         Decode instruction by aarch64_inst instead of using
1050         aarch64_decode_bcond and decode_masked_match.
1051
1052 2015-10-06  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
1053
1054         * cli/cli-dump.c (restore_command): Parse load_offset (bias) as address
1055         only when the file is binary.
1056
1057 2015-10-02  James Bowman  <james.bowman@ftdichip.com>
1058
1059         * ft32-tdep.c (ft32_analyze_prologue): Add function prolog
1060         subroutine handling.
1061
1062 2015-10-01  Simon Marchi  <simon.marchi@ericsson.com>
1063
1064         * common/vec.h (VEC_OP (T,cleanup)): Add pointer cast.
1065
1066 2015-09-30  Doug Evans  <dje@google.com>
1067
1068         * dwarf2read.c (setup_type_unit_groups): Add comment.
1069
1070 2015-09-30  Pedro Alves  <palves@redhat.com>
1071
1072         * linux-nat.c (linux_nat_always_non_stop_p): Always return 1.
1073         * x86-linux-nat.c (x86_linux_always_non_stop_p): Delete.
1074         (x86_linux_create_target): Don't install
1075         x86_linux_always_non_stop_p.
1076
1077 2015-09-30  Don Breazeal  <donb@codesourcery.com>
1078
1079         * remote.c (remote_parse_stop_reply): Call strprefix instead
1080         of strncmp.
1081
1082 2015-09-30  Simon Marchi  <simon.marchi@ericsson.com>
1083
1084         * gdbarch.sh (struct gdbarch_info): Change tdep_info's type to void *.
1085         * gdbarch.h: Regenerate.
1086         * i386-tdep.c (i386_gdbarch_init): Remove cast to
1087         struct gdbarch_tdep_info *.
1088         * mips-tdep.c (mips_gdbarch_init): Likewise.
1089         * ppc-linux-tdep (ppu2spu_sniffer): Likewise.
1090         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
1091         * spu-multiarch.c (spu_gdbarch): Likewise.
1092
1093 2015-09-30  Kevin Buettner  <kevinb@redhat.com>
1094
1095         * infcmd.c (finish_command_fsm_should_stop): Don't attempt to
1096         record a NULL value.
1097
1098 2015-09-29  Kevin Buettner  <kevinb@redhat.com>
1099
1100         * msp430-tdep.c (msp430_push_dummy_call): Treat reference, struct,
1101         and union arguments the same as pointer arguments when determining
1102         size of argument.
1103
1104 2015-09-29  James Bowman  <james.bowman@ftdichip.com>
1105
1106         * ft32-tdep.c: #include "opcode/ft32.h".
1107         Delete local macros IS_PUSH, PUSH_REG, IS_LINK, LINK_SIZE.
1108         (ft32_analyze_prologue): Use FT32_* macros.
1109
1110 2015-09-28  Simon Marchi  <simon.marchi@ericsson.com>
1111
1112         * cli/cli-script.c (read_next_line): Fix stdout -> stdin in
1113         comment.
1114
1115 2015-09-28  Doug Evans  <dje@google.com>
1116
1117         * MAINTAINERS: Add Iain Buclaw as D language maintainer.
1118
1119 2015-09-28  Doug Evans  <dje@google.com>
1120
1121         * common/filestuff.c (make_cleanup_close): Update comment.
1122
1123 2015-09-26  Simon Marchi  <simon.marchi@polymtl.ca>
1124
1125         * btrace.c (parse_xml_btrace_block): Fix cast of
1126         xml_find_attribute's return value.
1127         * memory-map.c (memory_map_start_memory): Likewise.
1128         * solib-svr4.c (library_list_start_library): Likewise.
1129         * solib-target.c (library_list_start_segment): Likewise.
1130         (library_list_start_section): Likewise.
1131         * tracepoint.c (traceframe_info_start_memory): Likewise.
1132
1133 2015-09-26  Iain Buclaw  <ibuclaw@gdcproject.org>
1134
1135         * d-namespace.c (d_lookup_symbol): New arg langdef.
1136         All callers updated.  Support looking up symbol as a primitive type.
1137         (lookup_module_scope): New arg langdef.  All callers updated.
1138         Call d_lookup_symbol directly for simple bare symbols.
1139
1140 2015-09-25  Simon Marchi  <simon.marchi@ericsson.com>
1141
1142         * macrocmd.c (print_macro_callback): Add cast(s).
1143         * macrotab.c (macro_bcache_str): Likewise.
1144         (new_macro_definition): Likewise.
1145         * main.c (captured_main): Likewise.
1146         * maint.c (print_bfd_section_info): Likewise.
1147         * mdebugread.c (mdebug_build_psymtabs): Likewise.
1148         (basic_type): Likewise.
1149         * memattr.c (mem_region_cmp): Likewise.
1150         * memory-map.c (memory_map_start_memory): Likewise.
1151         (memory_map_end_memory): Likewise.
1152         (memory_map_start_property): Likewise.
1153         (memory_map_end_property): Likewise.
1154         (clear_result): Likewise.
1155         * memrange.c (compare_mem_ranges): Likewise.
1156         * mep-tdep.c (mep_analyze_frame_prologue): Likewise.
1157         * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Likewise.
1158         * mi/mi-console.c (mi_console_file_delete): Likewise.
1159         (mi_console_file_fputs): Likewise.
1160         (mi_console_raw_packet): Likewise.
1161         (mi_console_file_flush): Likewise.
1162         (mi_console_set_raw): Likewise.
1163         * mi/mi-interp.c (mi_interpreter_resume): Likewise.
1164         (mi_new_thread): Likewise.
1165         (mi_thread_exit): Likewise.
1166         (mi_record_changed): Likewise.
1167         (mi_inferior_added): Likewise.
1168         (mi_inferior_appeared): Likewise.
1169         (mi_inferior_exit): Likewise.
1170         (mi_inferior_removed): Likewise.
1171         (mi_interp_data): Likewise.
1172         (mi_on_normal_stop): Likewise.
1173         (mi_traceframe_changed): Likewise.
1174         (mi_tsv_created): Likewise.
1175         (mi_tsv_deleted): Likewise.
1176         (mi_tsv_modified): Likewise.
1177         (mi_breakpoint_created): Likewise.
1178         (mi_breakpoint_deleted): Likewise.
1179         (mi_breakpoint_modified): Likewise.
1180         (mi_output_running_pid): Likewise.
1181         (mi_inferior_count): Likewise.
1182         (mi_solib_loaded): Likewise.
1183         (mi_solib_unloaded): Likewise.
1184         (mi_command_param_changed): Likewise.
1185         (mi_memory_changed): Likewise.
1186         (report_initial_inferior): Likewise.
1187         (mi_ui_out): Likewise.
1188         (mi_set_logging): Likewise.
1189         * mi/mi-main.c (collect_cores): Likewise.
1190         (print_one_inferior): Likewise.
1191         (free_vector_of_ints): Likewise.
1192         (free_splay_tree): Likewise.
1193         (mi_execute_command): Likewise.
1194         * mi/mi-out.c (mi_table_body): Likewise.
1195         (mi_table_end): Likewise.
1196         (mi_table_header): Likewise.
1197         (mi_begin): Likewise.
1198         (mi_end): Likewise.
1199         (mi_field_int): Likewise.
1200         (mi_field_string): Likewise.
1201         (mi_field_fmt): Likewise.
1202         (mi_flush): Likewise.
1203         (mi_redirect): Likewise.
1204         (field_separator): Likewise.
1205         (mi_open): Likewise.
1206         (mi_close): Likewise.
1207         (mi_out_buffered): Likewise.
1208         (mi_out_rewind): Likewise.
1209         (mi_out_put): Likewise.
1210         (mi_version): Likewise.
1211         (mi_out_data_dtor): Likewise.
1212         * mi/mi-parse.c (mi_parse_cleanup): Likewise.
1213         * microblaze-tdep.c (microblaze_frame_cache): Likewise.
1214         * minidebug.c (lzma_open): Likewise.
1215         (lzma_pread): Likewise.
1216         (lzma_close): Likewise.
1217         (lzma_stat): Likewise.
1218         * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
1219         * mips-sde-tdep.c (mips_sde_frame_cache): Likewise.
1220         (mips_sde_elf_osabi_sniff_abi_tag_sections): Likewise.
1221         * mips-tdep.c (mips_insn16_frame_cache): Likewise.
1222         (mips_micro_frame_cache): Likewise.
1223         (mips_insn32_frame_cache): Likewise.
1224         (mips_stub_frame_cache): Likewise.
1225         (gdb_print_insn_mips): Likewise.
1226         (value_of_mips_user_reg): Likewise.
1227         (mips_gdbarch_init): Likewise.
1228         * mips64obsd-tdep.c (mips64obsd_supply_gregset): Likewise.
1229         * mipsnbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
1230         (mipsnbsd_supply_gregset): Likewise.
1231         * mn10300-linux-tdep.c (am33_supply_fpregset_method): Likewise.
1232         (am33_collect_gregset_method): Likewise.
1233         (am33_collect_fpregset_method): Likewise.
1234         * mn10300-tdep.c (mn10300_analyze_frame_prologue): Likewise.
1235         * moxie-tdep.c (moxie_frame_cache): Likewise.
1236         * msp430-tdep.c (msp430_get_opcode_byte): Likewise.
1237         (msp430_analyze_frame_prologue): Likewise.
1238         * mt-tdep.c (mt_frame_unwind_cache): Likewise.
1239         * nios2-linux-tdep.c (nios2_supply_gregset): Likewise.
1240         (nios2_collect_gregset): Likewise.
1241         * nios2-tdep.c (nios2_frame_unwind_cache): Likewise.
1242         (nios2_stub_frame_cache): Likewise.
1243         * objc-lang.c (find_methods): Likewise.
1244         * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
1245         (get_objfile_pspace_data): Likewise.
1246         (get_objfile_bfd_data): Likewise.
1247         (objfile_bfd_data_free): Likewise.
1248         (add_to_objfile_sections): Likewise.
1249         (do_free_objfile_cleanup): Likewise.
1250         (resume_section_map_updates_cleanup): Likewise.
1251         * opencl-lang.c (builtin_opencl_type): Likewise.
1252         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
1253         * osdata.c (osdata_start_osdata): Likewise.
1254         (osdata_start_item): Likewise.
1255         (osdata_start_column): Likewise.
1256         (osdata_end_column): Likewise.
1257         (clear_parsing_data): Likewise.
1258         (osdata_free_cleanup): Likewise.
1259         * parse.c (type_stack_cleanup): Likewise.
1260         (exp_uses_objfile_iter): Likewise.
1261         * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
1262         (ppc_linux_collect_gregset): Likewise.
1263         (ppu2spu_prev_arch): Likewise.
1264         (ppu2spu_this_id): Likewise.
1265         (ppu2spu_prev_register): Likewise.
1266         (ppu2spu_unwind_register): Likewise.
1267         (ppu2spu_sniffer): Likewise.
1268         (ppu2spu_dealloc_cache): Likewise.
1269         (ppc_linux_init_abi): Likewise.
1270         * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
1271         * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
1272         * progspace.c (restore_program_space): Likewise.
1273         * psymtab.c (find_pc_sect_psymtab): Likewise.
1274         (compare_psymbols): Likewise.
1275         (psymbol_bcache_full): Likewise.
1276         (allocate_psymtab): Likewise.
1277         (discard_psymtabs_upto): Likewise.
1278         * python/py-block.c (set_block): Likewise.
1279         (del_objfile_blocks): Likewise.
1280         * python/py-breakpoint.c (build_bp_list): Likewise.
1281         * python/py-inferior.c (inferior_to_inferior_object): Likewise.
1282         (build_inferior_list): Likewise.
1283         (py_free_inferior): Likewise.
1284         * python/py-objfile.c (py_free_objfile): Likewise.
1285         (objfile_to_objfile_object): Likewise.
1286         * python/py-prettyprint.c (py_restore_tstate): Likewise.
1287         * python/py-progspace.c (py_free_pspace): Likewise.
1288         (pspace_to_pspace_object): Likewise.
1289         * python/py-symbol.c (set_symbol): Likewise.
1290         (del_objfile_symbols): Likewise.
1291         * python/py-symtab.c (set_sal): Likewise.
1292         (set_symtab): Likewise.
1293         (del_objfile_symtab): Likewise.
1294         (del_objfile_sal): Likewise.
1295         * python/py-type.c (save_objfile_types): Likewise.
1296         (set_type): Likewise.
1297         * python/py-unwind.c (pyuw_prev_register): Likewise.
1298         (pyuw_on_new_gdbarch): Likewise.
1299         * python/py-utils.c (py_decref): Likewise.
1300         (py_xdecref): Likewise.
1301         (gdb_py_generic_dict): Likewise.
1302         * python/py-xmethods.c (gdbpy_free_xmethod_worker_data): Likewise.
1303         (gdbpy_clone_xmethod_worker_data): Likewise.
1304         (gdbpy_get_xmethod_arg_types): Likewise.
1305         (gdbpy_get_xmethod_result_type): Likewise.
1306         (gdbpy_invoke_xmethod): Likewise.
1307         * python/python.c (gdbpy_apply_type_printers): Likewise.
1308         (gdbpy_free_type_printers): Likewise.
1309         * record-btrace.c (record_btrace_disable_callback): Likewise.
1310         (bfcache_hash): Likewise.
1311         (bfcache_eq): Likewise.
1312         (btrace_get_frame_function): Likewise.
1313         (record_btrace_frame_unwind_stop_reason): Likewise.
1314         (record_btrace_frame_this_id): Likewise.
1315         (record_btrace_frame_prev_register): Likewise.
1316         (record_btrace_frame_dealloc_cache): Likewise.
1317         * record-full.c (record_full_message_wrapper): Likewise.
1318         (record_full_save_cleanups): Likewise.
1319         * regcache.c (regcache_descr): Likewise.
1320         (do_regcache_xfree): Likewise.
1321         (do_regcache_invalidate): Likewise.
1322         (do_cooked_read): Likewise.
1323         (regcache_transfer_regset): Likewise.
1324         * reggroups.c (reggroup_add): Likewise.
1325         (reggroup_next): Likewise.
1326         (reggroup_prev): Likewise.
1327         * remote-fileio.c (do_remote_fileio_request): Likewise.
1328         * remote-notif.c (remote_async_get_pending_events_handler): Likewise.
1329         (do_notif_event_xfree): Likewise.
1330         * remote.c (get_remote_arch_state): Likewise.
1331         (remote_pspace_data_cleanup): Likewise.
1332         (get_remote_exec_file): Likewise.
1333         (set_pspace_remote_exec_file): Likewise.
1334         (compare_pnums): Likewise.
1335         (clear_threads_listing_context): Likewise.
1336         (remote_newthread_step): Likewise.
1337         (start_thread): Likewise.
1338         (end_thread): Likewise.
1339         (remove_child_of_pending_fork): Likewise.
1340         (remove_stop_reply_for_inferior): Likewise.
1341         (remove_stop_reply_of_remote_state): Likewise.
1342         (remote_notif_remove_once_on_match): Likewise.
1343         (stop_reply_match_ptid_and_ws): Likewise.
1344         (kill_child_of_pending_fork): Likewise.
1345         (register_remote_g_packet_guess): Likewise.
1346         (remote_read_description_p): Likewise.
1347         (remote_read_description): Likewise.
1348         (free_actions_list_cleanup_wrapper): Likewise.
1349         (remote_async_serial_handler): Likewise.
1350         * rl78-tdep.c (rl78_get_opcode_byte): Likewise.
1351         (rl78_analyze_frame_prologue): Likewise.
1352         * rs6000-tdep.c (ppc_supply_gregset): Likewise.
1353         (ppc_supply_fpregset): Likewise.
1354         (ppc_supply_vsxregset): Likewise.
1355         (ppc_supply_vrregset): Likewise.
1356         (ppc_collect_gregset): Likewise.
1357         (ppc_collect_fpregset): Likewise.
1358         (ppc_collect_vsxregset): Likewise.
1359         (ppc_collect_vrregset): Likewise.
1360         (e500_move_ev_register): Likewise.
1361         (do_regcache_raw_write): Likewise.
1362         (rs6000_frame_cache): Likewise.
1363         (rs6000_epilogue_frame_cache): Likewise.
1364         (rs6000_gdbarch_init): Likewise.
1365         * rx-tdep.c (rx_get_opcode_byte): Likewise.
1366         (rx_analyze_frame_prologue): Likewise.
1367         (rx_frame_type): Likewise.
1368         (rx_frame_sniffer_common): Likewise.
1369         * s390-linux-tdep.c (s390_check_for_saved): Likewise.
1370         (s390_frame_unwind_cache): Likewise.
1371         (s390_stub_frame_unwind_cache): Likewise.
1372         (s390_sigtramp_frame_unwind_cache): Likewise.
1373         * score-tdep.c (score_make_prologue_cache): Likewise.
1374         * sentinel-frame.c (sentinel_frame_prev_register): Likewise.
1375         (sentinel_frame_prev_arch): Likewise.
1376         * ser-base.c (fd_event): Likewise.
1377         (push_event): Likewise.
1378         (ser_base_write): Likewise.
1379         * ser-pipe.c (pipe_close): Likewise.
1380         * serial.c (serial_write): Likewise.
1381         * sh-tdep.c (sh_frame_cache): Likewise.
1382         (sh_stub_this_id): Likewise.
1383         * sh64-tdep.c (sh64_frame_cache): Likewise.
1384         * solib-aix.c (get_solib_aix_inferior_data): Likewise.
1385         (library_list_start_library): Likewise.
1386         (library_list_start_list): Likewise.
1387         (solib_aix_free_library_list): Likewise.
1388         * solib-darwin.c (get_darwin_info): Likewise.
1389         * solib-dsbt.c (get_dsbt_info): Likewise.
1390         * solib-spu.c (append_ocl_sos): Likewise.
1391         * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1392         (get_svr4_info): Likewise.
1393         (library_list_start_library): Likewise.
1394         (svr4_library_list_start_list): Likewise.
1395         (hash_probe_and_action): Likewise.
1396         (equal_probe_and_action): Likewise.
1397         (svr4_update_solib_event_breakpoint): Likewise.
1398         (set_solib_svr4_fetch_link_map_offsets): Likewise.
1399         (svr4_fetch_link_map_offsets): Likewise.
1400         (svr4_have_link_map_offsets): Likewise.
1401         * solib-target.c (library_list_start_segment): Likewise.
1402         (library_list_start_section): Likewise.
1403         (library_list_start_library): Likewise.
1404         (library_list_end_library): Likewise.
1405         (library_list_start_list): Likewise.
1406         (solib_target_free_library_list): Likewise.
1407         * solib.c (solib_ops): Likewise.
1408         (set_solib_ops): Likewise.
1409         * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
1410         * sparc-tdep.c (sparc_frame_cache): Likewise.
1411         (sparc32_frame_cache): Likewise.
1412         (sparc32_supply_gregset): Likewise.
1413         (sparc32_collect_gregset): Likewise.
1414         (sparc32_supply_fpregset): Likewise.
1415         (sparc32_collect_fpregset): Likewise.
1416         * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
1417         * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
1418         (sparc64_collect_gregset): Likewise.
1419         (sparc64_supply_fpregset): Likewise.
1420         (sparc64_collect_fpregset): Likewise.
1421         * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_cache): Likewise.
1422         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
1423         * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
1424         (sparc64obsd_trapframe_cache): Likewise.
1425         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Likewise.
1426         * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
1427         * spu-multiarch.c (spu_gdbarch): Likewise.
1428         * spu-tdep.c (spu_frame_unwind_cache): Likewise.
1429         (spu2ppu_prev_arch): Likewise.
1430         (spu2ppu_this_id): Likewise.
1431         (spu2ppu_prev_register): Likewise.
1432         (spu2ppu_dealloc_cache): Likewise.
1433         (spu_dis_asm_print_address): Likewise.
1434         (gdb_print_insn_spu): Likewise.
1435         (spu_get_overlay_table): Likewise.
1436         * stabsread.c (rs6000_builtin_type): Likewise.
1437         * stack.c (do_print_variable_and_value): Likewise.
1438         * stap-probe.c (get_stap_base_address_1): Likewise.
1439         * symfile-debug.c (debug_qf_has_symbols): Likewise.
1440         (debug_qf_find_last_source_symtab): Likewise.
1441         (debug_qf_forget_cached_source_info): Likewise.
1442         (debug_qf_map_symtabs_matching_filename): Likewise.
1443         (debug_qf_lookup_symbol): Likewise.
1444         (debug_qf_print_stats): Likewise.
1445         (debug_qf_dump): Likewise.
1446         (debug_qf_relocate): Likewise.
1447         (debug_qf_expand_symtabs_for_function): Likewise.
1448         (debug_qf_expand_all_symtabs): Likewise.
1449         (debug_qf_expand_symtabs_with_fullname): Likewise.
1450         (debug_qf_map_matching_symbols): Likewise.
1451         (debug_qf_expand_symtabs_matching): Likewise.
1452         (debug_qf_find_pc_sect_compunit_symtab): Likewise.
1453         (debug_qf_map_symbol_filenames): Likewise.
1454         (debug_sym_get_probes): Likewise.
1455         (debug_sym_new_init): Likewise.
1456         (debug_sym_init): Likewise.
1457         (debug_sym_read): Likewise.
1458         (debug_sym_read_psymbols): Likewise.
1459         (debug_sym_finish): Likewise.
1460         (debug_sym_offsets): Likewise.
1461         (debug_sym_read_linetable): Likewise.
1462         (debug_sym_relocate): Likewise.
1463         (uninstall_symfile_debug_logging): Likewise.
1464         * symfile-mem.c (symbol_file_add_from_memory_wrapper): Likewise.
1465         * symfile.c (place_section): Likewise.
1466         (add_section_size_callback): Likewise.
1467         (load_progress): Likewise.
1468         (load_section_callback): Likewise.
1469         (clear_memory_write_data): Likewise.
1470         (allocate_symtab): Likewise.
1471         * symmisc.c (maintenance_expand_file_matcher): Likewise.
1472         * symtab.c (lookup_symtab_callback): Likewise.
1473         (hash_demangled_name_entry): Likewise.
1474         (eq_demangled_name_entry): Likewise.
1475         (get_symbol_cache): Likewise.
1476         (symbol_cache_cleanup): Likewise.
1477         (set_symbol_cache_size): Likewise.
1478         (symbol_cache_flush): Likewise.
1479         (maintenance_print_symbol_cache): Likewise.
1480         (maintenance_print_symbol_cache_statistics): Likewise.
1481         (delete_filename_seen_cache): Likewise.
1482         (output_partial_symbol_filename): Likewise.
1483         (search_symbols_file_matches): Likewise.
1484         (search_symbols_name_matches): Likewise.
1485         (do_free_completion_list): Likewise.
1486         (maybe_add_partial_symtab_filename): Likewise.
1487         (get_main_info): Likewise.
1488         (main_info_cleanup): Likewise.
1489         * target-dcache.c (target_dcache_cleanup): Likewise.
1490         (target_dcache_init_p): Likewise.
1491         (target_dcache_invalidate): Likewise.
1492         (target_dcache_get): Likewise.
1493         (target_dcache_get_or_init): Likewise.
1494         * target-descriptions.c (target_find_description): Likewise.
1495         (tdesc_find_type): Likewise.
1496         (tdesc_data_cleanup): Likewise.
1497         (tdesc_find_arch_register): Likewise.
1498         (tdesc_register_name): Likewise.
1499         (tdesc_register_type): Likewise.
1500         (tdesc_register_reggroup_p): Likewise.
1501         (set_tdesc_pseudo_register_name): Likewise.
1502         (set_tdesc_pseudo_register_type): Likewise.
1503         (set_tdesc_pseudo_register_reggroup_p): Likewise.
1504         (tdesc_use_registers): Likewise.
1505         (free_target_description): Likewise.
1506         * target-memory.c (compare_block_starting_address): Likewise.
1507         (cleanup_request_data): Likewise.
1508         (cleanup_write_requests_vector): Likewise.
1509         * target.c (open_target): Likewise.
1510         (cleanup_restore_target_terminal): Likewise.
1511         (free_memory_read_result_vector): Likewise.
1512         * thread.c (disable_thread_stack_temporaries): Likewise.
1513         (finish_thread_state_cleanup): Likewise.
1514         (do_restore_current_thread_cleanup): Likewise.
1515         (restore_current_thread_cleanup_dtor): Likewise.
1516         (set_thread_refcount): Likewise.
1517         (tp_array_compar): Likewise.
1518         (do_captured_thread_select): Likewise.
1519         * tic6x-tdep.c (tic6x_frame_unwind_cache): Likewise.
1520         (tic6x_stub_this_id): Likewise.
1521         * tilegx-tdep.c (tilegx_frame_cache): Likewise.
1522         * top.c (do_restore_instream_cleanup): Likewise.
1523         (gdb_readline_wrapper_cleanup): Likewise.
1524         (kill_or_detach): Likewise.
1525         (print_inferior_quit_action): Likewise.
1526         * tracefile-tfile.c (match_blocktype): Likewise.
1527         (build_traceframe_info): Likewise.
1528         * tracefile.c (trace_file_writer_xfree): Likewise.
1529         * tracepoint.c (memrange_cmp): Likewise.
1530         (do_collect_symbol): Likewise.
1531         (do_clear_collection_list): Likewise.
1532         (do_restore_current_traceframe_cleanup): Likewise.
1533         (restore_current_traceframe_cleanup_dtor): Likewise.
1534         (free_current_marker): Likewise.
1535         (traceframe_info_start_memory): Likewise.
1536         (traceframe_info_start_tvar): Likewise.
1537         (free_result): Likewise.
1538         * tramp-frame.c (tramp_frame_cache): Likewise.
1539         * tui/tui-file.c (tui_file_delete): Likewise.
1540         (tui_fileopen): Likewise.
1541         (tui_sfileopen): Likewise.
1542         (tui_file_isatty): Likewise.
1543         (tui_file_rewind): Likewise.
1544         (tui_file_put): Likewise.
1545         (tui_file_fputs): Likewise.
1546         (tui_file_get_strbuf): Likewise.
1547         (tui_file_adjust_strbuf): Likewise.
1548         (tui_file_flush): Likewise.
1549         * tui/tui-layout.c (make_command_window): Likewise.
1550         (make_data_window): Likewise.
1551         (show_source_disasm_command): Likewise.
1552         (show_data): Likewise.
1553         (make_source_or_disasm_window): Likewise.
1554         (show_source_or_disasm_and_command): Likewise.
1555         * tui/tui-out.c (tui_field_int): Likewise.
1556         (tui_field_string): Likewise.
1557         (tui_field_fmt): Likewise.
1558         (tui_text): Likewise.
1559         * typeprint.c (hash_typedef_field): Likewise.
1560         (eq_typedef_field): Likewise.
1561         (do_free_typedef_hash): Likewise.
1562         (copy_typedef_hash_element): Likewise.
1563         (do_free_global_table): Likewise.
1564         (find_global_typedef): Likewise.
1565         (find_typedef_in_hash): Likewise.
1566         * ui-file.c (ui_file_write_for_put): Likewise.
1567         (do_ui_file_xstrdup): Likewise.
1568         (mem_file_delete): Likewise.
1569         (mem_file_rewind): Likewise.
1570         (mem_file_put): Likewise.
1571         (mem_file_write): Likewise.
1572         (stdio_file_delete): Likewise.
1573         (stdio_file_flush): Likewise.
1574         (stdio_file_read): Likewise.
1575         (stdio_file_write): Likewise.
1576         (stdio_file_write_async_safe): Likewise.
1577         (stdio_file_fputs): Likewise.
1578         (stdio_file_isatty): Likewise.
1579         (stdio_file_fseek): Likewise.
1580         (tee_file_delete): Likewise.
1581         (tee_file_flush): Likewise.
1582         (tee_file_write): Likewise.
1583         (tee_file_fputs): Likewise.
1584         (tee_file_isatty): Likewise.
1585         * ui-out.c (do_cleanup_table_end): Likewise.
1586         (do_cleanup_end): Likewise.
1587         * user-regs.c (user_reg_add): Likewise.
1588         (user_reg_map_name_to_regnum): Likewise.
1589         (usernum_to_user_reg): Likewise.
1590         (maintenance_print_user_registers): Likewise.
1591         * utils.c (do_bfd_close_cleanup): Likewise.
1592         (do_fclose_cleanup): Likewise.
1593         (do_obstack_free): Likewise.
1594         (do_ui_file_delete): Likewise.
1595         (do_ui_out_redirect_pop): Likewise.
1596         (do_free_section_addr_info): Likewise.
1597         (restore_integer): Likewise.
1598         (do_unpush_target): Likewise.
1599         (do_htab_delete_cleanup): Likewise.
1600         (do_restore_ui_file): Likewise.
1601         (do_value_free): Likewise.
1602         (do_free_so): Likewise.
1603         (free_current_contents): Likewise.
1604         (do_regfree_cleanup): Likewise.
1605         (core_addr_hash): Likewise.
1606         (core_addr_eq): Likewise.
1607         (do_free_char_ptr_vec): Likewise.
1608         * v850-tdep.c (v850_frame_cache): Likewise.
1609         * varobj.c (do_free_variable_cleanup): Likewise.
1610         * vax-tdep.c (vax_supply_gregset): Likewise.
1611         (vax_frame_cache): Likewise.
1612         * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_cache): Likewise.
1613         * xml-support.c (gdb_xml_body_text): Likewise.
1614         (gdb_xml_values_cleanup): Likewise.
1615         (gdb_xml_start_element): Likewise.
1616         (gdb_xml_start_element_wrapper): Likewise.
1617         (gdb_xml_end_element): Likewise.
1618         (gdb_xml_end_element_wrapper): Likewise.
1619         (gdb_xml_cleanup): Likewise.
1620         (gdb_xml_fetch_external_entity): Likewise.
1621         (gdb_xml_parse_attr_enum): Likewise.
1622         (xinclude_start_include): Likewise.
1623         (xinclude_end_include): Likewise.
1624         (xml_xinclude_default): Likewise.
1625         (xml_xinclude_start_doctype): Likewise.
1626         (xml_xinclude_end_doctype): Likewise.
1627         (xml_xinclude_cleanup): Likewise.
1628         (xml_fetch_content_from_file): Likewise.
1629         * xml-syscall.c (free_syscalls_info): Likewise.
1630         (syscall_start_syscall): Likewise.
1631         * xml-tdesc.c (tdesc_end_arch): Likewise.
1632         (tdesc_end_osabi): Likewise.
1633         (tdesc_end_compatible): Likewise.
1634         (tdesc_start_target): Likewise.
1635         (tdesc_start_feature): Likewise.
1636         (tdesc_start_reg): Likewise.
1637         (tdesc_start_union): Likewise.
1638         (tdesc_start_struct): Likewise.
1639         (tdesc_start_flags): Likewise.
1640         (tdesc_start_field): Likewise.
1641         (tdesc_start_vector): Likewise.
1642         (fetch_available_features_from_target): Likewise.
1643         * xstormy16-tdep.c (xstormy16_frame_cache): Likewise.
1644         * xtensa-tdep.c (xtensa_supply_gregset): Likewise.
1645         (xtensa_frame_cache): Likewise.
1646         (xtensa_frame_prev_register): Likewise.
1647         (xtensa_extract_return_value): Likewise.
1648
1649 2015-09-25  Simon Marchi  <simon.marchi@ericsson.com>
1650
1651         * aarch64-tdep.c (aarch64_make_prologue_cache): Add cast(s).
1652         (aarch64_make_stub_cache): Likewise.
1653         (value_of_aarch64_user_reg): Likewise.
1654         * ada-lang.c (ada_inferior_data_cleanup): Likewise.
1655         (get_ada_inferior_data): Likewise.
1656         (get_ada_pspace_data): Likewise.
1657         (ada_pspace_data_cleanup): Likewise.
1658         (ada_complete_symbol_matcher): Likewise.
1659         (ada_exc_search_name_matches): Likewise.
1660         * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
1661         (get_ada_tasks_inferior_data): Likewise.
1662         * addrmap.c (addrmap_mutable_foreach_worker): Likewise.
1663         (splay_obstack_alloc): Likewise.
1664         (splay_obstack_free): Likewise.
1665         * alpha-linux-tdep.c (alpha_linux_supply_gregset): Likewise.
1666         (alpha_linux_collect_gregset): Likewise.
1667         (alpha_linux_supply_fpregset): Likewise.
1668         (alpha_linux_collect_fpregset): Likewise.
1669         * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
1670         * alpha-tdep.c (alpha_lds): Likewise.
1671         (alpha_sts): Likewise.
1672         (alpha_sigtramp_frame_unwind_cache): Likewise.
1673         (alpha_heuristic_frame_unwind_cache): Likewise.
1674         (alpha_supply_int_regs): Likewise.
1675         (alpha_fill_int_regs): Likewise.
1676         (alpha_supply_fp_regs): Likewise.
1677         (alpha_fill_fp_regs): Likewise.
1678         * alphanbsd-tdep.c (alphanbsd_supply_fpregset): Likewise.
1679         (alphanbsd_aout_supply_gregset): Likewise.
1680         (alphanbsd_supply_gregset): Likewise.
1681         * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
1682         (amd64_x32_linux_init_abi): Likewise.
1683         * amd64-nat.c (amd64_supply_native_gregset): Likewise.
1684         (amd64_collect_native_gregset): Likewise.
1685         * amd64-tdep.c (amd64_frame_cache): Likewise.
1686         (amd64_sigtramp_frame_cache): Likewise.
1687         (amd64_epilogue_frame_cache): Likewise.
1688         (amd64_supply_fxsave): Likewise.
1689         (amd64_supply_xsave): Likewise.
1690         (amd64_collect_fxsave): Likewise.
1691         (amd64_collect_xsave): Likewise.
1692         * amd64-windows-tdep.c (amd64_windows_frame_cache): Likewise.
1693         * amd64obsd-tdep.c (amd64obsd_trapframe_cache): Likewise.
1694         * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
1695         (arm_linux_collect_gregset): Likewise.
1696         (arm_linux_supply_nwfpe): Likewise.
1697         (arm_linux_collect_nwfpe): Likewise.
1698         (arm_linux_supply_vfp): Likewise.
1699         (arm_linux_collect_vfp): Likewise.
1700         * arm-tdep.c (arm_find_mapping_symbol): Likewise.
1701         (arm_prologue_unwind_stop_reason): Likewise.
1702         (arm_prologue_this_id): Likewise.
1703         (arm_prologue_prev_register): Likewise.
1704         (arm_exidx_data_free): Likewise.
1705         (arm_find_exidx_entry): Likewise.
1706         (arm_stub_this_id): Likewise.
1707         (arm_m_exception_this_id): Likewise.
1708         (arm_m_exception_prev_register): Likewise.
1709         (arm_normal_frame_base): Likewise.
1710         (gdb_print_insn_arm): Likewise.
1711         (arm_objfile_data_free): Likewise.
1712         (arm_record_special_symbol): Likewise.
1713         (value_of_arm_user_reg): Likewise.
1714         * armbsd-tdep.c (armbsd_supply_fpregset): Likewise.
1715         (armbsd_supply_gregset): Likewise.
1716         * auto-load.c (auto_load_pspace_data_cleanup): Likewise.
1717         (get_auto_load_pspace_data): Likewise.
1718         (hash_loaded_script_entry): Likewise.
1719         (eq_loaded_script_entry): Likewise.
1720         (clear_section_scripts): Likewise.
1721         (collect_matching_scripts): Likewise.
1722         * auxv.c (auxv_inferior_data_cleanup): Likewise.
1723         (get_auxv_inferior_data): Likewise.
1724         * avr-tdep.c (avr_frame_unwind_cache): Likewise.
1725         * ax-general.c (do_free_agent_expr_cleanup): Likewise.
1726         * bfd-target.c (target_bfd_xfer_partial): Likewise.
1727         (target_bfd_xclose): Likewise.
1728         (target_bfd_get_section_table): Likewise.
1729         * bfin-tdep.c (bfin_frame_cache): Likewise.
1730         * block.c (find_block_in_blockvector): Likewise.
1731         (call_site_for_pc): Likewise.
1732         (block_find_non_opaque_type_preferred): Likewise.
1733         * break-catch-sig.c (signal_catchpoint_insert_location): Likewise.
1734         (signal_catchpoint_remove_location): Likewise.
1735         (signal_catchpoint_breakpoint_hit): Likewise.
1736         (signal_catchpoint_print_one): Likewise.
1737         (signal_catchpoint_print_mention): Likewise.
1738         (signal_catchpoint_print_recreate): Likewise.
1739         * break-catch-syscall.c (get_catch_syscall_inferior_data): Likewise.
1740         * breakpoint.c (do_cleanup_counted_command_line): Likewise.
1741         (bp_location_compare_addrs): Likewise.
1742         (get_first_locp_gte_addr): Likewise.
1743         (check_tracepoint_command): Likewise.
1744         (do_map_commands_command): Likewise.
1745         (get_breakpoint_objfile_data): Likewise.
1746         (free_breakpoint_probes): Likewise.
1747         (do_captured_breakpoint_query): Likewise.
1748         (compare_breakpoints): Likewise.
1749         (bp_location_compare): Likewise.
1750         (bpstat_remove_breakpoint_callback): Likewise.
1751         (do_delete_breakpoint_cleanup): Likewise.
1752         * bsd-uthread.c (bsd_uthread_set_supply_uthread): Likewise.
1753         (bsd_uthread_set_collect_uthread): Likewise.
1754         (bsd_uthread_activate): Likewise.
1755         (bsd_uthread_fetch_registers): Likewise.
1756         (bsd_uthread_store_registers): Likewise.
1757         * btrace.c (check_xml_btrace_version): Likewise.
1758         (parse_xml_btrace_block): Likewise.
1759         (parse_xml_btrace_pt_config_cpu): Likewise.
1760         (parse_xml_btrace_pt_raw): Likewise.
1761         (parse_xml_btrace_pt): Likewise.
1762         (parse_xml_btrace_conf_bts): Likewise.
1763         (parse_xml_btrace_conf_pt): Likewise.
1764         (do_btrace_data_cleanup): Likewise.
1765         * c-typeprint.c (find_typedef_for_canonicalize): Likewise.
1766         * charset.c (cleanup_iconv): Likewise.
1767         (do_cleanup_iterator): Likewise.
1768         * cli-out.c (cli_uiout_dtor): Likewise.
1769         (cli_table_begin): Likewise.
1770         (cli_table_body): Likewise.
1771         (cli_table_end): Likewise.
1772         (cli_table_header): Likewise.
1773         (cli_begin): Likewise.
1774         (cli_end): Likewise.
1775         (cli_field_int): Likewise.
1776         (cli_field_skip): Likewise.
1777         (cli_field_string): Likewise.
1778         (cli_field_fmt): Likewise.
1779         (cli_spaces): Likewise.
1780         (cli_text): Likewise.
1781         (cli_message): Likewise.
1782         (cli_wrap_hint): Likewise.
1783         (cli_flush): Likewise.
1784         (cli_redirect): Likewise.
1785         (out_field_fmt): Likewise.
1786         (field_separator): Likewise.
1787         (cli_out_set_stream): Likewise.
1788         * cli/cli-cmds.c (compare_symtabs): Likewise.
1789         * cli/cli-dump.c (call_dump_func): Likewise.
1790         (restore_section_callback): Likewise.
1791         * cli/cli-script.c (clear_hook_in_cleanup): Likewise.
1792         (do_restore_user_call_depth): Likewise.
1793         (do_free_command_lines_cleanup): Likewise.
1794         * coff-pe-read.c (get_section_vmas): Likewise.
1795         (pe_as16): Likewise.
1796         (pe_as32): Likewise.
1797         * coffread.c (coff_symfile_read): Likewise.
1798         * common/agent.c (agent_look_up_symbols): Likewise.
1799         * common/filestuff.c (do_close_cleanup): Likewise.
1800         * common/format.c (free_format_pieces_cleanup): Likewise.
1801         * common/vec.c (vec_o_reserve): Likewise.
1802         * compile/compile-c-support.c (print_one_macro): Likewise.
1803         * compile/compile-c-symbols.c (hash_symbol_error): Likewise.
1804         (eq_symbol_error): Likewise.
1805         (del_symbol_error): Likewise.
1806         (error_symbol_once): Likewise.
1807         (gcc_convert_symbol): Likewise.
1808         (gcc_symbol_address): Likewise.
1809         (hash_symname): Likewise.
1810         (eq_symname): Likewise.
1811         * compile/compile-c-types.c (hash_type_map_instance): Likewise.
1812         (eq_type_map_instance): Likewise.
1813         (insert_type): Likewise.
1814         (convert_type): Likewise.
1815         * compile/compile-object-load.c (munmap_listp_free_cleanup): Likewise.
1816         (setup_sections): Likewise.
1817         (link_hash_table_free): Likewise.
1818         (copy_sections): Likewise.
1819         * compile/compile-object-run.c (do_module_cleanup): Likewise.
1820         * compile/compile.c (compile_print_value): Likewise.
1821         (do_rmdir): Likewise.
1822         (cleanup_compile_instance): Likewise.
1823         (cleanup_unlink_file): Likewise.
1824         * completer.c (free_completion_tracker): Likewise.
1825         * corelow.c (add_to_spuid_list): Likewise.
1826         * cp-namespace.c (reset_directive_searched): Likewise.
1827         * cp-support.c (reset_directive_searched): Likewise.
1828         * cris-tdep.c (cris_sigtramp_frame_unwind_cache): Likewise.
1829         (cris_frame_unwind_cache): Likewise.
1830         * d-lang.c (builtin_d_type): Likewise.
1831         * d-namespace.c (reset_directive_searched): Likewise.
1832         * dbxread.c (dbx_free_symfile_info): Likewise.
1833         (do_free_bincl_list_cleanup): Likewise.
1834         * disasm.c (hash_dis_line_entry): Likewise.
1835         (eq_dis_line_entry): Likewise.
1836         (dis_asm_print_address): Likewise.
1837         (fprintf_disasm): Likewise.
1838         (do_ui_file_delete): Likewise.
1839         * doublest.c (convert_floatformat_to_doublest): Likewise.
1840         * dummy-frame.c (pop_dummy_frame_bpt): Likewise.
1841         (dummy_frame_prev_register): Likewise.
1842         (dummy_frame_this_id): Likewise.
1843         * dwarf2-frame-tailcall.c (cache_hash): Likewise.
1844         (cache_eq): Likewise.
1845         (cache_find): Likewise.
1846         (tailcall_frame_this_id): Likewise.
1847         (dwarf2_tailcall_prev_register_first): Likewise.
1848         (tailcall_frame_prev_register): Likewise.
1849         (tailcall_frame_dealloc_cache): Likewise.
1850         (tailcall_frame_prev_arch): Likewise.
1851         * dwarf2-frame.c (dwarf2_frame_state_free): Likewise.
1852         (dwarf2_frame_set_init_reg): Likewise.
1853         (dwarf2_frame_init_reg): Likewise.
1854         (dwarf2_frame_set_signal_frame_p): Likewise.
1855         (dwarf2_frame_signal_frame_p): Likewise.
1856         (dwarf2_frame_set_adjust_regnum): Likewise.
1857         (dwarf2_frame_adjust_regnum): Likewise.
1858         (clear_pointer_cleanup): Likewise.
1859         (dwarf2_frame_cache): Likewise.
1860         (find_cie): Likewise.
1861         (dwarf2_frame_find_fde): Likewise.
1862         * dwarf2expr.c (dwarf_expr_address_type): Likewise.
1863         (free_dwarf_expr_context_cleanup): Likewise.
1864         * dwarf2loc.c (locexpr_find_frame_base_location): Likewise.
1865         (locexpr_get_frame_base): Likewise.
1866         (loclist_find_frame_base_location): Likewise.
1867         (loclist_get_frame_base): Likewise.
1868         (dwarf_expr_dwarf_call): Likewise.
1869         (dwarf_expr_get_base_type): Likewise.
1870         (dwarf_expr_push_dwarf_reg_entry_value): Likewise.
1871         (dwarf_expr_get_obj_addr): Likewise.
1872         (entry_data_value_coerce_ref): Likewise.
1873         (entry_data_value_copy_closure): Likewise.
1874         (entry_data_value_free_closure): Likewise.
1875         (get_frame_address_in_block_wrapper): Likewise.
1876         (dwarf2_evaluate_property): Likewise.
1877         (dwarf2_compile_property_to_c): Likewise.
1878         (needs_frame_read_addr_from_reg): Likewise.
1879         (needs_frame_get_reg_value): Likewise.
1880         (needs_frame_frame_base): Likewise.
1881         (needs_frame_frame_cfa): Likewise.
1882         (needs_frame_tls_address): Likewise.
1883         (needs_frame_dwarf_call): Likewise.
1884         (needs_dwarf_reg_entry_value): Likewise.
1885         (get_ax_pc): Likewise.
1886         (locexpr_read_variable): Likewise.
1887         (locexpr_read_variable_at_entry): Likewise.
1888         (locexpr_read_needs_frame): Likewise.
1889         (locexpr_describe_location): Likewise.
1890         (locexpr_tracepoint_var_ref): Likewise.
1891         (locexpr_generate_c_location): Likewise.
1892         (loclist_read_variable): Likewise.
1893         (loclist_read_variable_at_entry): Likewise.
1894         (loclist_describe_location): Likewise.
1895         (loclist_tracepoint_var_ref): Likewise.
1896         (loclist_generate_c_location): Likewise.
1897         * dwarf2read.c (line_header_hash_voidp): Likewise.
1898         (line_header_eq_voidp): Likewise.
1899         (dwarf2_has_info): Likewise.
1900         (dwarf2_get_section_info): Likewise.
1901         (locate_dwz_sections): Likewise.
1902         (hash_file_name_entry): Likewise.
1903         (eq_file_name_entry): Likewise.
1904         (delete_file_name_entry): Likewise.
1905         (dw2_setup): Likewise.
1906         (dw2_get_file_names_reader): Likewise.
1907         (dw2_find_pc_sect_compunit_symtab): Likewise.
1908         (hash_signatured_type): Likewise.
1909         (eq_signatured_type): Likewise.
1910         (add_signatured_type_cu_to_table): Likewise.
1911         (create_debug_types_hash_table): Likewise.
1912         (lookup_dwo_signatured_type): Likewise.
1913         (lookup_dwp_signatured_type): Likewise.
1914         (lookup_signatured_type): Likewise.
1915         (hash_type_unit_group): Likewise.
1916         (eq_type_unit_group): Likewise.
1917         (get_type_unit_group): Likewise.
1918         (process_psymtab_comp_unit_reader): Likewise.
1919         (sort_tu_by_abbrev_offset): Likewise.
1920         (process_skeletonless_type_unit): Likewise.
1921         (psymtabs_addrmap_cleanup): Likewise.
1922         (dwarf2_read_symtab): Likewise.
1923         (psymtab_to_symtab_1): Likewise.
1924         (die_hash): Likewise.
1925         (die_eq): Likewise.
1926         (load_full_comp_unit_reader): Likewise.
1927         (reset_die_in_process): Likewise.
1928         (free_cu_line_header): Likewise.
1929         (handle_DW_AT_stmt_list): Likewise.
1930         (hash_dwo_file): Likewise.
1931         (eq_dwo_file): Likewise.
1932         (hash_dwo_unit): Likewise.
1933         (eq_dwo_unit): Likewise.
1934         (create_dwo_cu_reader): Likewise.
1935         (create_dwo_unit_in_dwp_v1): Likewise.
1936         (create_dwo_unit_in_dwp_v2): Likewise.
1937         (lookup_dwo_unit_in_dwp): Likewise.
1938         (dwarf2_locate_dwo_sections): Likewise.
1939         (dwarf2_locate_common_dwp_sections): Likewise.
1940         (dwarf2_locate_v2_dwp_sections): Likewise.
1941         (hash_dwp_loaded_cutus): Likewise.
1942         (eq_dwp_loaded_cutus): Likewise.
1943         (lookup_dwo_cutu): Likewise.
1944         (abbrev_table_free_cleanup): Likewise.
1945         (dwarf2_free_abbrev_table): Likewise.
1946         (find_partial_die_in_comp_unit): Likewise.
1947         (free_line_header_voidp): Likewise.
1948         (follow_die_offset): Likewise.
1949         (follow_die_sig_1): Likewise.
1950         (free_heap_comp_unit): Likewise.
1951         (free_stack_comp_unit): Likewise.
1952         (dwarf2_free_objfile): Likewise.
1953         (per_cu_offset_and_type_hash): Likewise.
1954         (per_cu_offset_and_type_eq): Likewise.
1955         (get_die_type_at_offset): Likewise.
1956         (partial_die_hash): Likewise.
1957         (partial_die_eq): Likewise.
1958         (dwarf2_per_objfile_free): Likewise.
1959         (hash_strtab_entry): Likewise.
1960         (eq_strtab_entry): Likewise.
1961         (add_string): Likewise.
1962         (hash_symtab_entry): Likewise.
1963         (eq_symtab_entry): Likewise.
1964         (delete_symtab_entry): Likewise.
1965         (cleanup_mapped_symtab): Likewise.
1966         (add_indices_to_cpool): Likewise.
1967         (hash_psymtab_cu_index): Likewise.
1968         (eq_psymtab_cu_index): Likewise.
1969         (add_address_entry_worker): Likewise.
1970         (unlink_if_set): Likewise.
1971         (write_one_signatured_type): Likewise.
1972         (save_gdb_index_command): Likewise.
1973         * elfread.c (elf_symtab_read): Likewise.
1974         (elf_gnu_ifunc_cache_hash): Likewise.
1975         (elf_gnu_ifunc_cache_eq): Likewise.
1976         (elf_gnu_ifunc_record_cache): Likewise.
1977         (elf_gnu_ifunc_resolve_by_cache): Likewise.
1978         (elf_get_probes): Likewise.
1979         (probe_key_free): Likewise.
1980         * f-lang.c (builtin_f_type): Likewise.
1981         * frame-base.c (frame_base_append_sniffer): Likewise.
1982         (frame_base_set_default): Likewise.
1983         (frame_base_find_by_frame): Likewise.
1984         * frame-unwind.c (frame_unwind_prepend_unwinder): Likewise.
1985         (frame_unwind_append_unwinder): Likewise.
1986         (frame_unwind_find_by_frame): Likewise.
1987         * frame.c (frame_addr_hash): Likewise.
1988         (frame_addr_hash_eq): Likewise.
1989         (frame_stash_find): Likewise.
1990         (do_frame_register_read): Likewise.
1991         (unwind_to_current_frame): Likewise.
1992         (frame_cleanup_after_sniffer): Likewise.
1993         * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
1994         * frv-tdep.c (frv_frame_unwind_cache): Likewise.
1995         * ft32-tdep.c (ft32_frame_cache): Likewise.
1996         * gcore.c (do_bfd_delete_cleanup): Likewise.
1997         (gcore_create_callback): Likewise.
1998         * gdb_bfd.c (hash_bfd): Likewise.
1999         (eq_bfd): Likewise.
2000         (gdb_bfd_open): Likewise.
2001         (free_one_bfd_section): Likewise.
2002         (gdb_bfd_ref): Likewise.
2003         (gdb_bfd_unref): Likewise.
2004         (get_section_descriptor): Likewise.
2005         (gdb_bfd_map_section): Likewise.
2006         (gdb_bfd_crc): Likewise.
2007         (gdb_bfd_mark_parent): Likewise.
2008         (gdb_bfd_record_inclusion): Likewise.
2009         (gdb_bfd_requires_relocations): Likewise.
2010         (print_one_bfd): Likewise.
2011         * gdbtypes.c (type_pair_hash): Likewise.
2012         (type_pair_eq): Likewise.
2013         (builtin_type): Likewise.
2014         (objfile_type): Likewise.
2015         * gnu-v3-abi.c (vtable_ptrdiff_type): Likewise.
2016         (vtable_address_point_offset): Likewise.
2017         (gnuv3_get_vtable): Likewise.
2018         (hash_value_and_voffset): Likewise.
2019         (eq_value_and_voffset): Likewise.
2020         (compare_value_and_voffset): Likewise.
2021         (compute_vtable_size): Likewise.
2022         (gnuv3_get_typeid_type): Likewise.
2023         * go-lang.c (builtin_go_type): Likewise.
2024         * guile/scm-block.c (bkscm_hash_block_smob): Likewise.
2025         (bkscm_eq_block_smob): Likewise.
2026         (bkscm_objfile_block_map): Likewise.
2027         (bkscm_del_objfile_blocks): Likewise.
2028         * guile/scm-breakpoint.c (bpscm_build_bp_list): Likewise.
2029         * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker): Likewise.
2030         (gdbscm_disasm_print_address): Likewise.
2031         * guile/scm-frame.c (frscm_hash_frame_smob): Likewise.
2032         (frscm_eq_frame_smob): Likewise.
2033         (frscm_inferior_frame_map): Likewise.
2034         (frscm_del_inferior_frames): Likewise.
2035         * guile/scm-gsmob.c (gdbscm_add_objfile_ref): Likewise.
2036         * guile/scm-objfile.c (ofscm_handle_objfile_deleted): Likewise.
2037         (ofscm_objfile_smob_from_objfile): Likewise.
2038         * guile/scm-ports.c (ioscm_write): Likewise.
2039         (ioscm_file_port_delete): Likewise.
2040         (ioscm_file_port_rewind): Likewise.
2041         (ioscm_file_port_put): Likewise.
2042         (ioscm_file_port_write): Likewise.
2043         * guile/scm-progspace.c (psscm_handle_pspace_deleted): Likewise.
2044         (psscm_pspace_smob_from_pspace): Likewise.
2045         * guile/scm-safe-call.c (scscm_recording_pre_unwind_handler): Likewise.
2046         (scscm_recording_unwind_handler): Likewise.
2047         (gdbscm_with_catch): Likewise.
2048         (scscm_call_0_body): Likewise.
2049         (scscm_call_1_body): Likewise.
2050         (scscm_call_2_body): Likewise.
2051         (scscm_call_3_body): Likewise.
2052         (scscm_call_4_body): Likewise.
2053         (scscm_apply_1_body): Likewise.
2054         (scscm_eval_scheme_string): Likewise.
2055         (gdbscm_safe_eval_string): Likewise.
2056         (scscm_source_scheme_script): Likewise.
2057         (gdbscm_safe_source_script): Likewise.
2058         * guile/scm-string.c (gdbscm_call_scm_to_stringn): Likewise.
2059         (gdbscm_call_scm_from_stringn): Likewise.
2060         * guile/scm-symbol.c (syscm_hash_symbol_smob): Likewise.
2061         (syscm_eq_symbol_smob): Likewise.
2062         (syscm_get_symbol_map): Likewise.
2063         (syscm_del_objfile_symbols): Likewise.
2064         * guile/scm-symtab.c (stscm_hash_symtab_smob): Likewise.
2065         (stscm_eq_symtab_smob): Likewise.
2066         (stscm_objfile_symtab_map): Likewise.
2067         (stscm_del_objfile_symtabs): Likewise.
2068         * guile/scm-type.c (tyscm_hash_type_smob): Likewise.
2069         (tyscm_eq_type_smob): Likewise.
2070         (tyscm_type_map): Likewise.
2071         (tyscm_copy_type_recursive): Likewise.
2072         (save_objfile_types): Likewise.
2073         * guile/scm-utils.c (extract_arg): Likewise.
2074         * h8300-tdep.c (h8300_frame_cache): Likewise.
2075         * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Likewise.
2076         * hppa-tdep.c (compare_unwind_entries): Likewise.
2077         (find_unwind_entry): Likewise.
2078         (hppa_frame_cache): Likewise.
2079         (hppa_stub_frame_unwind_cache): Likewise.
2080         * hppanbsd-tdep.c (hppanbsd_supply_gregset): Likewise.
2081         * hppaobsd-tdep.c (hppaobsd_supply_gregset): Likewise.
2082         (hppaobsd_supply_fpregset): Likewise.
2083         * i386-cygwin-tdep.c (core_process_module_section): Likewise.
2084         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
2085         * i386-tdep.c (i386_frame_cache): Likewise.
2086         (i386_epilogue_frame_cache): Likewise.
2087         (i386_sigtramp_frame_cache): Likewise.
2088         (i386_supply_gregset): Likewise.
2089         (i386_collect_gregset): Likewise.
2090         (i386_gdbarch_init): Likewise.
2091         * i386obsd-tdep.c (i386obsd_aout_supply_regset): Likewise.
2092         (i386obsd_trapframe_cache): Likewise.
2093         * i387-tdep.c (i387_supply_fsave): Likewise.
2094         (i387_collect_fsave): Likewise.
2095         (i387_supply_fxsave): Likewise.
2096         (i387_collect_fxsave): Likewise.
2097         (i387_supply_xsave): Likewise.
2098         (i387_collect_xsave): Likewise.
2099         * ia64-tdep.c (ia64_frame_cache): Likewise.
2100         (ia64_sigtramp_frame_cache): Likewise.
2101         * infcmd.c (attach_command_continuation): Likewise.
2102         (attach_command_continuation_free_args): Likewise.
2103         * inferior.c (restore_inferior): Likewise.
2104         (delete_thread_of_inferior): Likewise.
2105         * inflow.c (inflow_inferior_data_cleanup): Likewise.
2106         (get_inflow_inferior_data): Likewise.
2107         (inflow_inferior_exit): Likewise.
2108         * infrun.c (displaced_step_clear_cleanup): Likewise.
2109         (restore_current_uiout_cleanup): Likewise.
2110         (release_stop_context_cleanup): Likewise.
2111         (do_restore_infcall_suspend_state_cleanup): Likewise.
2112         (do_restore_infcall_control_state_cleanup): Likewise.
2113         (restore_inferior_ptid): Likewise.
2114         * inline-frame.c (block_starting_point_at): Likewise.
2115         * iq2000-tdep.c (iq2000_frame_cache): Likewise.
2116         * jit.c (get_jit_objfile_data): Likewise.
2117         (get_jit_program_space_data): Likewise.
2118         (jit_object_close_impl): Likewise.
2119         (jit_find_objf_with_entry_addr): Likewise.
2120         (jit_breakpoint_deleted): Likewise.
2121         (jit_unwind_reg_set_impl): Likewise.
2122         (jit_unwind_reg_get_impl): Likewise.
2123         (jit_dealloc_cache): Likewise.
2124         (jit_frame_sniffer): Likewise.
2125         (jit_frame_prev_register): Likewise.
2126         (jit_prepend_unwinder): Likewise.
2127         (jit_inferior_exit_hook): Likewise.
2128         (free_objfile_data): Likewise.
2129         * jv-lang.c (jv_per_objfile_free): Likewise.
2130         (get_dynamics_objfile): Likewise.
2131         (get_java_class_symtab): Likewise.
2132         (builtin_java_type): Likewise.
2133         * language.c (language_string_char_type): Likewise.
2134         (language_bool_type): Likewise.
2135         (language_lookup_primitive_type): Likewise.
2136         (language_lookup_primitive_type_as_symbol): Likewise.
2137         * linespec.c (hash_address_entry): Likewise.
2138         (eq_address_entry): Likewise.
2139         (iterate_inline_only): Likewise.
2140         (iterate_name_matcher): Likewise.
2141         (decode_line_2_compare_items): Likewise.
2142         (collect_one_symbol): Likewise.
2143         (compare_symbols): Likewise.
2144         (compare_msymbols): Likewise.
2145         (add_symtabs_to_list): Likewise.
2146         (collect_symbols): Likewise.
2147         (compare_msyms): Likewise.
2148         (add_minsym): Likewise.
2149         (cleanup_linespec_result): Likewise.
2150         * linux-fork.c (inferior_call_waitpid_cleanup): Likewise.
2151         * linux-nat.c (delete_lwp_cleanup): Likewise.
2152         (count_events_callback): Likewise.
2153         (select_event_lwp_callback): Likewise.
2154         (resume_stopped_resumed_lwps): Likewise.
2155         * linux-tdep.c (get_linux_gdbarch_data): Likewise.
2156         (invalidate_linux_cache_inf): Likewise.
2157         (get_linux_inferior_data): Likewise.
2158         (linux_find_memory_regions_thunk): Likewise.
2159         (linux_make_mappings_callback): Likewise.
2160         (linux_corefile_thread_callback): Likewise.
2161         (find_mapping_size): Likewise.
2162         * linux-thread-db.c (find_new_threads_callback): Likewise.
2163         * lm32-tdep.c (lm32_frame_cache): Likewise.
2164         * m2-lang.c (builtin_m2_type): Likewise.
2165         * m32c-tdep.c (m32c_analyze_frame_prologue): Likewise.
2166         * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_cache): Likewise.
2167         (m32r_linux_supply_gregset): Likewise.
2168         (m32r_linux_collect_gregset): Likewise.
2169         * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
2170         * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
2171         * m68k-tdep.c (m68k_frame_cache): Likewise.
2172         * m68kbsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
2173         (m68kbsd_supply_gregset): Likewise.
2174         * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
2175         * m88k-tdep.c (m88k_frame_cache): Likewise.
2176         (m88k_supply_gregset): Likewise.
2177
2178 2015-09-25  Simon Marchi  <simon.marchi@ericsson.com>
2179
2180         * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Add cast
2181         to allocation result assignment.
2182         * ada-exp.y (write_object_renaming): Likewise.
2183         (write_ambiguous_var): Likewise.
2184         (ada_nget_field_index): Likewise.
2185         (write_var_or_type): Likewise.
2186         * ada-lang.c (ada_decode_symbol): Likewise.
2187         (ada_value_assign): Likewise.
2188         (value_pointer): Likewise.
2189         (cache_symbol): Likewise.
2190         (add_nonlocal_symbols): Likewise.
2191         (ada_name_for_lookup): Likewise.
2192         (symbol_completion_add): Likewise.
2193         (ada_to_fixed_type_1): Likewise.
2194         (ada_get_next_arg): Likewise.
2195         (defns_collected): Likewise.
2196         * ada-lex.l (processId): Likewise.
2197         (processString): Likewise.
2198         * ada-tasks.c (read_known_tasks_array): Likewise.
2199         (read_known_tasks_list): Likewise.
2200         * ada-typeprint.c (decoded_type_name): Likewise.
2201         * addrmap.c (addrmap_mutable_create_fixed): Likewise.
2202         * amd64-tdep.c (amd64_push_arguments): Likewise.
2203         (amd64_displaced_step_copy_insn): Likewise.
2204         (amd64_classify_insn_at): Likewise.
2205         (amd64_relocate_instruction): Likewise.
2206         * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
2207         * arch-utils.c (simple_displaced_step_copy_insn): Likewise.
2208         (initialize_current_architecture): Likewise.
2209         * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
2210         * arm-symbian-tdep.c (arm_symbian_osabi_sniffer): Likewise.
2211         * arm-tdep.c (arm_exidx_new_objfile): Likewise.
2212         (arm_push_dummy_call): Likewise.
2213         (extend_buffer_earlier): Likewise.
2214         (arm_adjust_breakpoint_address): Likewise.
2215         (arm_skip_stub): Likewise.
2216         * auto-load.c (filename_is_in_pattern): Likewise.
2217         (maybe_add_script_file): Likewise.
2218         (maybe_add_script_text): Likewise.
2219         (auto_load_objfile_script_1): Likewise.
2220         * auxv.c (ld_so_xfer_auxv): Likewise.
2221         * ax-general.c (new_agent_expr): Likewise.
2222         (grow_expr): Likewise.
2223         (ax_reg_mask): Likewise.
2224         * bcache.c (bcache_full): Likewise.
2225         * breakpoint.c (program_breakpoint_here_p): Likewise.
2226         * btrace.c (parse_xml_raw): Likewise.
2227         * build-id.c (build_id_to_debug_bfd): Likewise.
2228         * buildsym.c (end_symtab_with_blockvector): Likewise.
2229         * c-exp.y (string_exp): Likewise.
2230         (qualified_name): Likewise.
2231         (write_destructor_name): Likewise.
2232         (operator_stoken): Likewise.
2233         (parse_number): Likewise.
2234         (scan_macro_expansion): Likewise.
2235         (yylex): Likewise.
2236         (c_print_token): Likewise.
2237         * c-lang.c (c_get_string): Likewise.
2238         (emit_numeric_character): Likewise.
2239         * charset.c (wchar_iterate): Likewise.
2240         * cli/cli-cmds.c (complete_command): Likewise.
2241         (make_command): Likewise.
2242         * cli/cli-dump.c (restore_section_callback): Likewise.
2243         (restore_binary_file): Likewise.
2244         * cli/cli-interp.c (cli_interpreter_exec): Likewise.
2245         * cli/cli-script.c (execute_control_command): Likewise.
2246         * cli/cli-setshow.c (do_set_command): Likewise.
2247         * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
2248         (read_pe_exported_syms): Likewise.
2249         * coffread.c (coff_read_struct_type): Likewise.
2250         (coff_read_enum_type): Likewise.
2251         * common/btrace-common.c (btrace_data_append): Likewise.
2252         * common/buffer.c (buffer_grow): Likewise.
2253         * common/filestuff.c (gdb_fopen_cloexec): Likewise.
2254         * common/format.c (parse_format_string): Likewise.
2255         * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
2256         * common/xml-utils.c (xml_escape_text): Likewise.
2257         * compile/compile-object-load.c (copy_sections): Likewise.
2258         (compile_object_load): Likewise.
2259         * compile/compile-object-run.c (compile_object_run): Likewise.
2260         * completer.c (filename_completer): Likewise.
2261         * corefile.c (read_memory_typed_address): Likewise.
2262         (write_memory_unsigned_integer): Likewise.
2263         (write_memory_signed_integer): Likewise.
2264         (complete_set_gnutarget): Likewise.
2265         * corelow.c (get_core_register_section): Likewise.
2266         * cp-name-parser.y (d_grab): Likewise.
2267         (allocate_info): Likewise.
2268         (cp_new_demangle_parse_info): Likewise.
2269         * cp-namespace.c (cp_scan_for_anonymous_namespaces): Likewise.
2270         (cp_lookup_symbol_in_namespace): Likewise.
2271         (lookup_namespace_scope): Likewise.
2272         (find_symbol_in_baseclass): Likewise.
2273         (cp_lookup_nested_symbol): Likewise.
2274         (cp_lookup_transparent_type_loop): Likewise.
2275         * cp-support.c (copy_string_to_obstack): Likewise.
2276         (make_symbol_overload_list): Likewise.
2277         (make_symbol_overload_list_namespace): Likewise.
2278         (make_symbol_overload_list_adl_namespace): Likewise.
2279         (first_component_command): Likewise.
2280         * cp-valprint.c (cp_print_value): Likewise.
2281         * ctf.c (ctf_xfer_partial): Likewise.
2282         * d-exp.y (StringExp): Likewise.
2283         * d-namespace.c (d_lookup_symbol_in_module): Likewise.
2284         (lookup_module_scope): Likewise.
2285         (find_symbol_in_baseclass): Likewise.
2286         (d_lookup_nested_symbol): Likewise.
2287         * dbxread.c (find_stab_function_addr): Likewise.
2288         (read_dbx_symtab): Likewise.
2289         (dbx_end_psymtab): Likewise.
2290         (cp_set_block_scope): Likewise.
2291         * dcache.c (dcache_alloc): Likewise.
2292         * demangle.c (_initialize_demangler): Likewise.
2293         * dicos-tdep.c (dicos_load_module_p): Likewise.
2294         * dictionary.c (dict_create_hashed_expandable): Likewise.
2295         (dict_create_linear_expandable): Likewise.
2296         (expand_hashtable): Likewise.
2297         (add_symbol_linear_expandable): Likewise.
2298         * dwarf2-frame.c (add_cie): Likewise.
2299         (add_fde): Likewise.
2300         (dwarf2_build_frame_info): Likewise.
2301         * dwarf2expr.c (dwarf_expr_grow_stack): Likewise.
2302         (dwarf_expr_fetch_address): Likewise.
2303         (add_piece): Likewise.
2304         (execute_stack_op): Likewise.
2305         * dwarf2loc.c (chain_candidate): Likewise.
2306         (dwarf_entry_parameter_to_value): Likewise.
2307         (read_pieced_value): Likewise.
2308         (write_pieced_value): Likewise.
2309         * dwarf2read.c (dwarf2_read_section): Likewise.
2310         (add_type_unit): Likewise.
2311         (read_comp_units_from_section): Likewise.
2312         (fixup_go_packaging): Likewise.
2313         (dwarf2_compute_name): Likewise.
2314         (dwarf2_physname): Likewise.
2315         (create_dwo_unit_in_dwp_v1): Likewise.
2316         (create_dwo_unit_in_dwp_v2): Likewise.
2317         (read_func_scope): Likewise.
2318         (read_call_site_scope): Likewise.
2319         (dwarf2_attach_fields_to_type): Likewise.
2320         (process_structure_scope): Likewise.
2321         (mark_common_block_symbol_computed): Likewise.
2322         (read_common_block): Likewise.
2323         (abbrev_table_read_table): Likewise.
2324         (guess_partial_die_structure_name): Likewise.
2325         (fixup_partial_die): Likewise.
2326         (add_file_name): Likewise.
2327         (dwarf2_const_value_data): Likewise.
2328         (dwarf2_const_value_attr): Likewise.
2329         (build_error_marker_type): Likewise.
2330         (guess_full_die_structure_name): Likewise.
2331         (anonymous_struct_prefix): Likewise.
2332         (typename_concat): Likewise.
2333         (dwarf2_canonicalize_name): Likewise.
2334         (dwarf2_name): Likewise.
2335         (write_constant_as_bytes): Likewise.
2336         (dwarf2_fetch_constant_bytes): Likewise.
2337         (copy_string): Likewise.
2338         (parse_macro_definition): Likewise.
2339         * elfread.c (elf_symfile_segments): Likewise.
2340         (elf_rel_plt_read): Likewise.
2341         (elf_gnu_ifunc_resolve_by_cache): Likewise.
2342         (elf_gnu_ifunc_resolve_by_got): Likewise.
2343         (elf_read_minimal_symbols): Likewise.
2344         (elf_gnu_ifunc_record_cache): Likewise.
2345         * event-top.c (top_level_prompt): Likewise.
2346         (command_line_handler): Likewise.
2347         * exec.c (resize_section_table): Likewise.
2348         * expprint.c (print_subexp_standard): Likewise.
2349         * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
2350         * findcmd.c (parse_find_args): Likewise.
2351         * findvar.c (address_from_register): Likewise.
2352         * frame.c (get_prev_frame_always): Likewise.
2353         * gdb_bfd.c (gdb_bfd_ref): Likewise.
2354         (get_section_descriptor): Likewise.
2355         * gdb_obstack.c (obconcat): Likewise.
2356         (obstack_strdup): Likewise.
2357         * gdbtypes.c (lookup_function_type_with_arguments): Likewise.
2358         (create_set_type): Likewise.
2359         (lookup_unsigned_typename): Likewise.
2360         (lookup_signed_typename): Likewise.
2361         (resolve_dynamic_union): Likewise.
2362         (resolve_dynamic_struct): Likewise.
2363         (add_dyn_prop): Likewise.
2364         (copy_dynamic_prop_list): Likewise.
2365         (arch_flags_type): Likewise.
2366         (append_composite_type_field_raw): Likewise.
2367         * gdbtypes.h (INIT_FUNC_SPECIFIC): Likewise.
2368         * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
2369         * go-exp.y (string_exp): Likewise.
2370         * go-lang.c (go_demangle): Likewise.
2371         * guile/guile.c (compute_scheme_string): Likewise.
2372         * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2373         (gdbscm_canonicalize_command_name): Likewise.
2374         * guile/scm-ports.c (ioscm_init_stdio_buffers): Likewise.
2375         (ioscm_init_memory_port): Likewise.
2376         (ioscm_reinit_memory_port): Likewise.
2377         * guile/scm-utils.c (gdbscm_gc_xstrdup): Likewise.
2378         (gdbscm_gc_dup_argv): Likewise.
2379         * h8300-tdep.c (h8300_push_dummy_call): Likewise.
2380         * hppa-tdep.c (internalize_unwinds): Likewise.
2381         (read_unwind_info): Likewise.
2382         * i386-cygwin-tdep.c (core_process_module_section): Likewise.
2383         (windows_core_xfer_shared_libraries): Likewise.
2384         * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
2385         (i386_stap_parse_special_token_triplet): Likewise.
2386         (i386_stap_parse_special_token_three_arg_disp): Likewise.
2387         * i386obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
2388         * inf-child.c (inf_child_fileio_readlink): Likewise.
2389         * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
2390         (inf_ptrace_store_register): Likewise.
2391         * infrun.c (follow_exec): Likewise.
2392         (displaced_step_prepare_throw): Likewise.
2393         (save_stop_context): Likewise.
2394         (save_infcall_suspend_state): Likewise.
2395         * jit.c (jit_read_descriptor): Likewise.
2396         (jit_read_code_entry): Likewise.
2397         (jit_symtab_line_mapping_add_impl): Likewise.
2398         (finalize_symtab): Likewise.
2399         (jit_unwind_reg_get_impl): Likewise.
2400         * jv-exp.y (QualifiedName): Likewise.
2401         * jv-lang.c (get_java_utf8_name): Likewise.
2402         (type_from_class): Likewise.
2403         (java_demangle_type_signature): Likewise.
2404         (java_class_name_from_physname): Likewise.
2405         * jv-typeprint.c (java_type_print_base): Likewise.
2406         * jv-valprint.c (java_value_print): Likewise.
2407         * language.c (add_language): Likewise.
2408         * linespec.c (add_sal_to_sals_basic): Likewise.
2409         (add_sal_to_sals): Likewise.
2410         (decode_objc): Likewise.
2411         (find_linespec_symbols): Likewise.
2412         * linux-fork.c (fork_save_infrun_state): Likewise.
2413         * linux-nat.c (linux_nat_detach): Likewise.
2414         (linux_nat_fileio_readlink): Likewise.
2415         * linux-record.c (record_linux_sockaddr): Likewise.
2416         (record_linux_msghdr): Likewise.
2417         (Do): Likewise.
2418         * linux-tdep.c (linux_core_info_proc_mappings): Likewise.
2419         (linux_collect_regset_section_cb): Likewise.
2420         (linux_get_siginfo_data): Likewise.
2421         * linux-thread-db.c (try_thread_db_load_from_pdir_1): Likewise.
2422         (try_thread_db_load_from_dir): Likewise.
2423         (thread_db_load_search): Likewise.
2424         (info_auto_load_libthread_db): Likewise.
2425         * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
2426         (m32c_m16c_pointer_to_address): Likewise.
2427         * m68hc11-tdep.c (m68hc11_pseudo_register_write): Likewise.
2428         * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
2429         * machoread.c (macho_check_dsym): Likewise.
2430         * macroexp.c (resize_buffer): Likewise.
2431         (gather_arguments): Likewise.
2432         (maybe_expand): Likewise.
2433         * macrotab.c (new_macro_key): Likewise.
2434         (new_source_file): Likewise.
2435         (new_macro_definition): Likewise.
2436         * mdebugread.c (parse_symbol): Likewise.
2437         (parse_type): Likewise.
2438         (parse_partial_symbols): Likewise.
2439         (psymtab_to_symtab_1): Likewise.
2440         * mem-break.c (default_memory_insert_breakpoint): Likewise.
2441         * mi/mi-cmd-break.c (mi_argv_to_format): Likewise.
2442         * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
2443         (mi_cmd_data_read_memory_bytes): Likewise.
2444         (mi_cmd_data_write_memory_bytes): Likewise.
2445         (mi_cmd_trace_frame_collected): Likewise.
2446         * mi/mi-parse.c (mi_parse_argv): Likewise.
2447         (mi_parse): Likewise.
2448         * minidebug.c (lzma_open): Likewise.
2449         (lzma_pread): Likewise.
2450         * mips-tdep.c (mips_read_fp_register_single): Likewise.
2451         (mips_print_fp_register): Likewise.
2452         * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
2453         * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
2454         * mt-tdep.c (mt_register_name): Likewise.
2455         (mt_registers_info): Likewise.
2456         (mt_push_dummy_call): Likewise.
2457         * namespace.c (add_using_directive): Likewise.
2458         * nat/linux-btrace.c (perf_event_read): Likewise.
2459         (linux_enable_bts): Likewise.
2460         * nat/linux-osdata.c (linux_common_core_of_thread): Likewise.
2461         * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Likewise.
2462         * nto-tdep.c (nto_find_and_open_solib): Likewise.
2463         (nto_parse_redirection): Likewise.
2464         * objc-lang.c (objc_demangle): Likewise.
2465         (find_methods): Likewise.
2466         * objfiles.c (get_objfile_bfd_data): Likewise.
2467         (set_objfile_main_name): Likewise.
2468         (allocate_objfile): Likewise.
2469         (objfile_relocate): Likewise.
2470         (update_section_map): Likewise.
2471         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
2472         * p-exp.y (exp): Likewise.
2473         (yylex): Likewise.
2474         * p-valprint.c (pascal_object_print_value): Likewise.
2475         * parse.c (initialize_expout): Likewise.
2476         (mark_completion_tag): Likewise.
2477         (copy_name): Likewise.
2478         (parse_float): Likewise.
2479         (type_stack_reserve): Likewise.
2480         * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
2481         (ppu2spu_prev_register): Likewise.
2482         * ppc-ravenscar-thread.c (supply_register_at_address): Likewise.
2483         * printcmd.c (printf_wide_c_string): Likewise.
2484         (printf_pointer): Likewise.
2485         * probe.c (parse_probes): Likewise.
2486         * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2487         (cmdpy_init): Likewise.
2488         * python/py-gdb-readline.c (gdbpy_readline_wrapper): Likewise.
2489         * python/py-symtab.c (set_sal): Likewise.
2490         * python/py-unwind.c (pyuw_sniffer): Likewise.
2491         * python/python.c (python_interactive_command): Likewise.
2492         (compute_python_string): Likewise.
2493         * ravenscar-thread.c (get_running_thread_id): Likewise.
2494         * record-full.c (record_full_exec_insn): Likewise.
2495         (record_full_core_open_1): Likewise.
2496         * regcache.c (regcache_raw_read_signed): Likewise.
2497         (regcache_raw_read_unsigned): Likewise.
2498         (regcache_cooked_read_signed): Likewise.
2499         (regcache_cooked_read_unsigned): Likewise.
2500         * remote-fileio.c (remote_fileio_func_open): Likewise.
2501         (remote_fileio_func_rename): Likewise.
2502         (remote_fileio_func_unlink): Likewise.
2503         (remote_fileio_func_stat): Likewise.
2504         (remote_fileio_func_system): Likewise.
2505         * remote-mips.c (mips_xfer_memory): Likewise.
2506         (mips_load_srec): Likewise.
2507         (pmon_end_download): Likewise.
2508         * remote.c (new_remote_state): Likewise.
2509         (map_regcache_remote_table): Likewise.
2510         (remote_register_number_and_offset): Likewise.
2511         (init_remote_state): Likewise.
2512         (get_memory_packet_size): Likewise.
2513         (remote_pass_signals): Likewise.
2514         (remote_program_signals): Likewise.
2515         (remote_start_remote): Likewise.
2516         (remote_check_symbols): Likewise.
2517         (remote_query_supported): Likewise.
2518         (extended_remote_attach): Likewise.
2519         (process_g_packet): Likewise.
2520         (store_registers_using_G): Likewise.
2521         (putpkt_binary): Likewise.
2522         (read_frame): Likewise.
2523         (compare_sections_command): Likewise.
2524         (remote_hostio_pread): Likewise.
2525         (remote_hostio_readlink): Likewise.
2526         (remote_file_put): Likewise.
2527         (remote_file_get): Likewise.
2528         (remote_pid_to_exec_file): Likewise.
2529         (_initialize_remote): Likewise.
2530         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
2531         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
2532         * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
2533         (bfd_uses_spe_extensions): Likewise.
2534         * s390-linux-tdep.c (s390_displaced_step_copy_insn): Likewise.
2535         * score-tdep.c (score7_malloc_and_get_memblock): Likewise.
2536         * solib-dsbt.c (decode_loadmap): Likewise.
2537         (fetch_loadmap): Likewise.
2538         (scan_dyntag): Likewise.
2539         (enable_break): Likewise.
2540         (dsbt_relocate_main_executable): Likewise.
2541         * solib-frv.c (fetch_loadmap): Likewise.
2542         (enable_break2): Likewise.
2543         (frv_relocate_main_executable): Likewise.
2544         * solib-spu.c (spu_relocate_main_executable): Likewise.
2545         (spu_bfd_open): Likewise.
2546         * solib-svr4.c (lm_info_read): Likewise.
2547         (read_program_header): Likewise.
2548         (find_program_interpreter): Likewise.
2549         (scan_dyntag): Likewise.
2550         (elf_locate_base): Likewise.
2551         (open_symbol_file_object): Likewise.
2552         (read_program_headers_from_bfd): Likewise.
2553         (svr4_relocate_main_executable): Likewise.
2554         * solib-target.c (solib_target_relocate_section_addresses): Likewise.
2555         * solib.c (solib_find_1): Likewise.
2556         (exec_file_find): Likewise.
2557         (solib_find): Likewise.
2558         * source.c (openp): Likewise.
2559         (print_source_lines_base): Likewise.
2560         (forward_search_command): Likewise.
2561         * sparc-ravenscar-thread.c (supply_register_at_address): Likewise.
2562         * spu-tdep.c (spu2ppu_prev_register): Likewise.
2563         (spu_get_overlay_table): Likewise.
2564         * stabsread.c (patch_block_stabs): Likewise.
2565         (define_symbol): Likewise.
2566         (again:): Likewise.
2567         (read_member_functions): Likewise.
2568         (read_one_struct_field): Likewise.
2569         (read_enum_type): Likewise.
2570         (common_block_start): Likewise.
2571         * stack.c (read_frame_arg): Likewise.
2572         (backtrace_command): Likewise.
2573         * stap-probe.c (stap_parse_register_operand): Likewise.
2574         * symfile.c (syms_from_objfile_1): Likewise.
2575         (find_separate_debug_file): Likewise.
2576         (load_command): Likewise.
2577         (load_progress): Likewise.
2578         (load_section_callback): Likewise.
2579         (reread_symbols): Likewise.
2580         (add_filename_language): Likewise.
2581         (allocate_compunit_symtab): Likewise.
2582         (read_target_long_array): Likewise.
2583         (simple_read_overlay_table): Likewise.
2584         * symtab.c (symbol_set_names): Likewise.
2585         (resize_symbol_cache): Likewise.
2586         (rbreak_command): Likewise.
2587         (completion_list_add_name): Likewise.
2588         (completion_list_objc_symbol): Likewise.
2589         (add_filename_to_list): Likewise.
2590         * target-descriptions.c (maint_print_c_tdesc_cmd): Likewise.
2591         * target-memory.c (target_write_memory_blocks): Likewise.
2592         * target.c (target_read_string): Likewise.
2593         (read_whatever_is_readable): Likewise.
2594         (target_read_alloc_1): Likewise.
2595         (simple_search_memory): Likewise.
2596         (target_fileio_read_alloc_1): Likewise.
2597         * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
2598         * top.c (command_line_input): Likewise.
2599         * tracefile-tfile.c (tfile_fetch_registers): Likewise.
2600         * tracefile.c (tracefile_fetch_registers): Likewise.
2601         * tracepoint.c (add_memrange): Likewise.
2602         (init_collection_list): Likewise.
2603         (add_aexpr): Likewise.
2604         (trace_dump_actions): Likewise.
2605         (parse_trace_status): Likewise.
2606         (parse_tracepoint_definition): Likewise.
2607         (parse_tsv_definition): Likewise.
2608         (parse_static_tracepoint_marker_definition): Likewise.
2609         * tui/tui-file.c (tui_sfileopen): Likewise.
2610         (tui_file_adjust_strbuf): Likewise.
2611         * tui/tui-io.c (tui_expand_tabs): Likewise.
2612         * tui/tui-source.c (tui_set_source_content): Likewise.
2613         * typeprint.c (find_global_typedef): Likewise.
2614         * ui-file.c (do_ui_file_xstrdup): Likewise.
2615         (ui_file_obsavestring): Likewise.
2616         (mem_file_write): Likewise.
2617         * utils.c (make_hex_string): Likewise.
2618         (get_regcomp_error): Likewise.
2619         (puts_filtered_tabular): Likewise.
2620         (gdb_realpath_keepfile): Likewise.
2621         (ldirname): Likewise.
2622         (gdb_bfd_errmsg): Likewise.
2623         (substitute_path_component): Likewise.
2624         * valops.c (search_struct_method): Likewise.
2625         (find_oload_champ_namespace_loop): Likewise.
2626         * valprint.c (print_decimal_chars): Likewise.
2627         (read_string): Likewise.
2628         (generic_emit_char): Likewise.
2629         * varobj.c (varobj_delete): Likewise.
2630         (varobj_value_get_print_value): Likewise.
2631         * vaxobsd-tdep.c (vaxobsd_sigtramp_sniffer): Likewise.
2632         * windows-tdep.c (display_one_tib): Likewise.
2633         * xcoffread.c (read_xcoff_symtab): Likewise.
2634         (process_xcoff_symbol): Likewise.
2635         (swap_sym): Likewise.
2636         (scan_xcoff_symtab): Likewise.
2637         (xcoff_initial_scan): Likewise.
2638         * xml-support.c (gdb_xml_end_element): Likewise.
2639         (xml_process_xincludes): Likewise.
2640         (xml_fetch_content_from_file): Likewise.
2641         * xml-syscall.c (xml_list_of_syscalls): Likewise.
2642         * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
2643
2644 2015-09-23  James Bowman  <james.bowman@ftdichip.com>
2645
2646         * ft32-tdep.c (ft32_register_type): Return gdbarch_tdep (gdbarch)->pc_type
2647         instead of builtin_func_ptr.
2648         (ft32_pointer_to_address): New function.
2649         (ft32_address_class_type_flags): New function.
2650         (ft32_address_class_type_flags_to_name): New function.
2651         (ft32_address_class_name_to_type_flags): New function.
2652         (ft32_gdbarch_init): Set tdep->pc_type.  Call
2653         set_gdbarch_pointer_to_address,
2654         set_gdbarch_address_class_type_flags
2655         set_gdbarch_address_class_name_to_type_flags,
2656         and set_gdbarch_address_class_type_flags_to_name.
2657         * ft32-tdep.h (struct gdbarch_tdep) <pc_type>: New field.
2658
2659 2015-09-23  Pierre-Marie de Rodat  <derodat@adacore.com>
2660
2661         * ada-lang.c (ada_evaluate_subexp) <OP_FUNCALL>: When the input
2662         value is a reference, actually dereference it in order to get
2663         the underlying value.
2664
2665 2015-09-22  Simon Marchi  <simon.marchi@ericsson.com>
2666
2667         * stap-probe.c (handle_stap_probe): Remove unnecessary cast.
2668
2669 2015-09-21  Simon Marchi  <simon.marchi@ericsson.com>
2670
2671         * cli/cli-setshow.c (cmd_show_list): Constify a variable.
2672         * linespec.c (linespec_lexer_lex_string): Same.
2673
2674 2015-09-21  Pierre Langlois  <pierre.langlois@arm.com>
2675
2676         * NEWS: Mention support for fast tracepoints on aarch64-linux.
2677
2678 2015-09-21  Pierre Langlois  <pierre.langlois@arm.com>
2679
2680         * aarch64-tdep.c (aarch64_analyze_prologue): New is_adrp
2681         variable.  Call aarch64_decode_adr instead of
2682         aarch64_decode_adrp.
2683         * arch/aarch64-insn.h (aarch64_decode_adrp): Delete.
2684         (aarch64_decode_adr): New function declaration.
2685         * arch/aarch64-insn.c (aarch64_decode_adrp): Delete.
2686         (aarch64_decode_adr): New function, factored out from
2687         aarch64_decode_adrp to decode both adr and adrp instructions.
2688
2689 2015-09-21  Pierre Langlois  <pierre.langlois@arm.com>
2690
2691         * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-insn.o.
2692         (HFILES_NO_SRCDIR): Add arch/aarch64-insn.h.
2693         (aarch64-insn.o): New rule.
2694         * configure.tgt (aarch64*-*-elf): Add aarch64-insn.o.
2695         (aarch64*-*-linux*): Likewise.
2696         * arch/aarch64-insn.c: New file.
2697         * arch/aarch64-insn.h: New file.
2698         * aarch64-tdep.c: Include arch/aarch64-insn.h.
2699         (aarch64_debug): Move to arch/aarch64-insn.c.  Declare in
2700         arch/aarch64-insn.h.
2701         (decode_add_sub_imm): Rename to ...
2702         (aarch64_decode_add_sub_imm): ... this.
2703         (decode_adrp): Rename to ...
2704         (aarch64_decode_adrp): ... this.  Move to arch/aarch64-insn.c.
2705         Declare in arch/aarch64-insn.h.
2706         (decode_b): Rename to ...
2707         (aarch64_decode_b): ... this.  Move to arch/aarch64-insn.c.
2708         Declare in arch/aarch64-insn.h.
2709         (decode_bcond): Rename to ...
2710         (aarch64_decode_bcond): ... this.  Move to arch/aarch64-insn.c.
2711         Declare in arch/aarch64-insn.h.
2712         (decode_br): Rename to ...
2713         (aarch64_decode_br): ... this.
2714         (decode_cb): Rename to ...
2715         (aarch64_decode_cb): ... this.  Move to arch/aarch64-insn.c.
2716         Declare in arch/aarch64-insn.h.
2717         (decode_eret): Rename to ...
2718         (aarch64_decode_eret): ... this.
2719         (decode_movz): Rename to ...
2720         (aarch64_decode_movz): ... this.
2721         (decode_orr_shifted_register_x): Rename to ...
2722         (aarch64_decode_orr_shifted_register_x): ... this.
2723         (decode_ret): Rename to ...
2724         (aarch64_decode_ret): ... this.
2725         (decode_stp_offset): Rename to ...
2726         (aarch64_decode_stp_offset): ... this.
2727         (decode_stp_offset_wb): Rename to ...
2728         (aarch64_decode_stp_offset_wb): ... this.
2729         (decode_stur): Rename to ...
2730         (aarch64_decode_stur): ... this.
2731         (decode_tb): Rename to ...
2732         (aarch64_decode_tb): ... this.  Move to arch/aarch64-insn.c.
2733         Declare in arch/aarch64-insn.h.
2734         (aarch64_analyze_prologue): Adjust calls to renamed functions.
2735
2736 2015-09-20  Doug Evans  <xdje42@gmail.com>
2737
2738         * dwarf2read.c (add_partial_symbol): Remove outdated comments.
2739
2740 2015-09-20  Doug Evans  <xdje42@gmail.com>
2741
2742         * dwarf2read.c (dwarf2_compute_name): Add FIXME.  Don't use a local
2743         variable name that collides with a parameter.
2744
2745 2015-09-20  Joel Brobecker  <brobecker@adacore.com>
2746
2747         * dwarf2loc.c (locexpr_get_frame_base): Renames
2748         block_op_get_frame_base.
2749         (dwarf2_block_frame_base_locexpr_funcs): Replace reference to
2750         block_op_get_frame_base by reference to locexpr_get_frame_base.
2751         (loclist_get_frame_base): New function, near identical copy of
2752         locexpr_get_frame_base.
2753         (dwarf2_block_frame_base_loclist_funcs): Replace reference to
2754         block_op_get_frame_base by reference to loclist_get_frame_base.
2755
2756 2015-09-19  Doug Evans  <xdje42@gmail.com>
2757
2758         * ravenscar-thread.c (ravenscar_inferior_created): Replace
2759         current_inferior ()->gdbarch with its wrapper target_gdbarch.
2760
2761 2015-09-18  Doug Evans  <xdje42@gmail.com>
2762
2763         * linux-thread-db.c (record_thread): Return the created thread.
2764         (thread_from_lwp): Likewise.
2765         (thread_db_get_thread_local_address): Update.
2766
2767 2015-09-18  Doug Evans  <xdje42@gmail.com>
2768
2769         * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
2770         move only member demangled_name up.  All uses updated.
2771
2772 2015-09-18  Doug Evans  <xdje42@gmail.com>
2773
2774         * findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
2775         kind of minimal symbol in the error message.
2776         * objfiles.c (objfile_flavour_name): New function.
2777         * objfiles.h (objfile_flavour_name): Declare.
2778
2779 2015-09-18  Yao Qi  <yao.qi@linaro.org>
2780
2781         * nat/aarch64-linux.c: Include elf/common.h,
2782         nat/gdb_ptrace.h, asm/ptrace.h and sys/uio.h.
2783         (aarch64_ps_get_thread_area): New function.
2784         * nat/aarch64-linux.h: Include gdb_proc_service.h.
2785         (aarch64_ps_get_thread_area): Declare.
2786         * aarch64-linux-nat.c (ps_get_thread_area): Call
2787         aarch64_ps_get_thread_area.
2788
2789 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2790
2791         * record-btrace.c (record_btrace_resume): Honour scheduler-locking.
2792
2793 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2794
2795         * NEWS: Announce new scheduler-locking mode.
2796         * infrun.c (schedlock_replay): New.
2797         (scheduler_enums): Add schedlock_replay.
2798         (scheduler_mode): Change default to schedlock_replay.
2799         (user_visible_resume_ptid): Handle schedlock_replay.
2800         (clear_proceed_status_thread): Stop replaying if resumed thread is
2801         not replaying.
2802         (schedlock_applies): Handle schedlock_replay.
2803         (_initialize_infrun): Document new scheduler-locking mode.
2804         * record-btrace.c (record_btrace_resume): Remove code to stop other
2805         threads when not replaying the resumed thread.
2806
2807 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2808
2809         * record-btrace.c ((record_btrace_will_replay): New.
2810         (init_record_btrace_ops): Initialize to_record_will_replay.
2811         * record-full.c ((record_full_will_replay): New.
2812         (init_record_full_ops): Initialize to_record_will_replay.
2813         * target-delegates.c: Regenerated.
2814         * target.c (target_record_will_replay): New.
2815         * target.h (struct target_ops) <to_record_will_replay>: New.
2816         (target_record_will_replay): New.
2817
2818 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2819
2820         * record-btrace.c (record_btrace_resume): Call
2821         target_record_stop_replaying.
2822         (record_btrace_stop_replaying_all): New.
2823         (init_record_btrace_ops): Initialize to_record_stop_replaying.
2824         * record-full.c (record_full_stop_replaying): New.
2825         (init_record_full_ops ): Initialize to_record_stop_replaying.
2826         * target-delegates.c: Regenerated.
2827         * target.c (target_record_stop_replaying): New.
2828         * target.h (struct target_ops) <to_record_stop_replaying>: New.
2829         (target_record_stop_replaying): New.
2830
2831 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2832
2833         * record-btrace.c (record_btrace_xfer_partial)
2834         (record_btrace_store_registers, record_btrace_prepare_to_store):
2835         Call record_btrace_is_replaying with inferior_ptid instead of
2836         minus_one_ptid.
2837         (record_btrace_store_registers): Change error message.
2838
2839 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2840
2841         * record-btrace.c (record_btrace_is_replaying): Add ptid argument.
2842         Update users to pass minus_one_ptid.
2843         * record-full.c (record_full_is_replaying): Add ptid argument (ignored).
2844         * record.c (cmd_record_delete): Pass inferior_ptid to
2845         target_record_is_replaying.
2846         * target-delegates.c: Regenerated.
2847         * target.c (target_record_is_replaying): Add ptid argument.
2848         * target.h (struct target_ops) <to_record_is_replaying>: Add ptid
2849         argument.
2850         (target_record_is_replaying): Add ptid argument.
2851
2852 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2853
2854         * record-btrace.c (record_btrace_open): Remove non_stop check.
2855         * NEWS: Announce that record btrace supports non-stop mode.
2856
2857 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2858
2859         * infrun.c (handle_inferior_event_1): Switch to the eventing thread
2860         in the TARKET_WAITKIND_NO_HISTORY case.
2861
2862 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2863
2864         * record-btrace.c (record_btrace_maybe_mark_async_event): New.
2865         (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
2866
2867 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2868
2869         * record-btrace.c (get_thread_current_frame): New.
2870         (record_btrace_start_replaying): Call get_thread_current_frame.
2871
2872 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2873
2874         * record-btrace.c (record_btrace_resume_thread): A move request
2875         overwrites a previous move request.
2876         (record_btrace_find_resume_thread): Removed.
2877         (record_btrace_resume): Resume all requested threads.
2878
2879 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2880
2881         * record-btrace.c: Include vec.h.
2882         (record_btrace_find_thread_to_move): Removed.
2883         (btrace_step_no_resumed, btrace_step_again)
2884         (record_btrace_stop_replaying_at_end): New.
2885         (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
2886         (record_btrace_single_step_forward): Remove calls to
2887         record_btrace_stop_replaying.
2888         (record_btrace_step_thread): Do only one step for BTHR_CONT and
2889         BTHR_RCONT.  Keep threads at the end of their history moving.
2890         (record_btrace_wait): Call record_btrace_step_thread for all threads
2891         until one reports an event.  Call record_btrace_stop_replaying_at_end
2892         for the eventing thread.
2893
2894 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2895
2896         * record-btrace.c (record_btrace_single_step_forward): Return
2897         NO_HISTORY if a step brings us to the end of the execution history.
2898
2899 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2900
2901         * record-btrace.c (record_btrace_step_thread): Move breakpoint check
2902         to ...
2903         (record_btrace_single_step_forward): ... here and
2904         (record_btrace_single_step_backward): ... here.
2905
2906 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2907
2908         * record-btrace.c (btrace_step_spurious)
2909         (record_btrace_single_step_forward)
2910         (record_btrace_single_step_backward): New.
2911         (record_btrace_step_thread): Call record_btrace_single_step_forward
2912         and record_btrace_single_step_backward.
2913
2914 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2915
2916         * record-btrace.c (record_btrace_replay_at_breakpoint): New.
2917         (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
2918
2919 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2920
2921         * record-btrace.c (btrace_thread_flag_to_str)
2922         (record_btrace_cancel_resume): New.
2923         (record_btrace_step_thread): Call btrace_thread_flag_to_str.
2924         (record_btrace_resume): Print execution direction.
2925         (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
2926         (record_btrace_wait): Call record_btrace_cancel_resume.
2927
2928 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2929
2930         * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
2931         * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
2932         (record_btrace_find_thread_to_move): Also accept threads that have
2933         BTHR_STOP set.
2934         (btrace_step_stopped_on_request, record_btrace_stop): New.
2935         (record_btrace_step_thread): Support BTHR_STOP.
2936         (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
2937         (init_record_btrace_ops): Initialize to_stop.
2938
2939 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2940
2941         * record-btrace.c (record_btrace_wait): Replace non_stop check with
2942         target_is_non_stop_p ().
2943
2944 2015-09-15  Pierre-Marie de Rodat  <derodat@adacore.com>
2945
2946         * ada-typeprint.c (print_array_type): Do not describe arrays as
2947         packed when they embed dynamic elements.
2948
2949 2015-09-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
2950
2951         * symtab.h (address_class): Document that TLS variables
2952         are handled by LOC_UNRESOLVED.
2953         * findvar.c (default_read_var_value): Don't relocate TLS variables.
2954         * printcmd.c (address_info): Don't relocate TLS variables.
2955
2956 2015-09-15  Pierre Langlois  <pierre.langlois@arm.com>
2957
2958         * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
2959         (decode_adrp): Likewise.
2960         (decode_b): Likewise.
2961         (decode_bcond): Likewise.
2962         (decode_br): Likewise.
2963         (decode_cb): Likewise.
2964         (decode_eret): Likewise.
2965         (decode_movz): Likewise.
2966         (decode_orr_shifted_register_x): Likewise.
2967         (decode_ret): Likewise.
2968         (decode_stp_offset): Likewise.
2969         (decode_stp_offset_wb): Likewise.
2970         (decode_stur): Likewise.
2971         (decode_tb): Likewise.
2972         (aarch64_analyze_prologue): Likewise.
2973         (pass_in_x): Likewise.
2974         (pass_in_v): Likewise.
2975         (pass_on_stack): Likewise.
2976         (aarch64_push_dummy_call): Likewise.
2977         (aarch64_extract_return_value): Likewise.
2978         (aarch64_store_return_value): Likewise.
2979         (aarch64_return_value): Likewise.
2980         (aarch64_record_asimd_load_store): Likewise.
2981         (aarch64_record_load_store): Likewise.
2982         (aarch64_record_data_proc_simd_fp): Likewise.
2983
2984 2015-09-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
2985
2986         * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
2987         * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
2988         (ppc64_skip_trampoline_code_1): ... here.
2989         (ppc64_skip_trampoline_code): New wrapper function.
2990         * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
2991
2992 2015-09-15  Yao Qi  <yao.qi@linaro.org>
2993
2994         * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
2995         function.
2996         (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
2997         * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
2998         if target_can_do_single_step returns 1.
2999         * remote.c (struct vCont_action_support) <s, S>: New fields.
3000         (PACKET_vContSupported): New enum.
3001         (remote_protocol_features): New element for vContSupported.
3002         (remote_query_supported): Append "vContSupported+".
3003         (remote_vcont_probe): Remove support_s and support_S, use
3004         rs->supports_vCont.s and rs->supports_vCont.S instead.  Disable
3005         vCont packet if c and C actions are not supported.
3006         (remote_can_do_single_step): New function.
3007         (init_remote_ops): Install it to to_can_do_single_step.
3008         (_initialize_remote): Call add_packet_config_cmd.
3009         * target.h (struct target_ops) <to_can_do_single_step>: New field.
3010         (target_can_do_single_step): New macro.
3011         * target-delegates.c: Re-generated.
3012
3013 2015-09-15  Yao Qi  <yao.qi@linaro.org>
3014
3015         * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
3016         (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
3017         * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
3018         New function.
3019         (aarch64_siginfo_from_compat_siginfo): New function.
3020         * nat/aarch64-linux.h: Include signal.h.
3021         (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
3022         (compat_timer_t, compat_clock_t): Likewise.
3023         (struct compat_timeval): New.
3024         (union compat_sigval): New.
3025         (struct compat_siginfo): New.
3026         (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
3027         (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
3028         (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
3029         (cpt_si_band, cpt_si_fd): Likewise.
3030
3031 2015-09-14  Pedro Alves  <palves@redhat.com>
3032
3033         * infrun.c (current_stop_id): New global.
3034         (get_stop_id, new_stop_id): New functions.
3035         (fetch_inferior_event): Handle normal_stop proceeding the target.
3036         (struct stop_context): New.
3037         (save_stop_context, release_stop_context_cleanup)
3038         (stop_context_changed): New functions.
3039         (normal_stop): Return true if the hook-stop changes the stop
3040         context.
3041         * infrun.h (get_stop_id): Declare.
3042         (normal_stop): Now returns int.  Add documentation.
3043
3044 2015-09-14  Pierre-Marie de Rodat  <derodat@adacore.com>
3045
3046         * ada-lang.c (ada_value_ptr_subscript): Update the heading
3047         comment.  Handle packed arrays.
3048
3049 2015-09-14  Pedro Alves  <palves@redhat.com>
3050
3051         * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
3052         mention of maint set/show target-non-stop.
3053
3054 2015-09-11  Don Breazeal  <donb@codesourcery.com>
3055
3056         * NEWS: Announce new remote packets for the exec-events
3057         feature and the exec-events feature and associated commands.
3058
3059 2015-09-11  Don Breazeal  <donb@codesourcery.com>
3060
3061         * remote.c (remote_exec_event_p): New function.
3062         (remote_insert_exec_catchpoint): New function.
3063         (remote_remove_exec_catchpoint): New function.
3064         (init_extended_remote_ops): Initialize extended_remote_ops
3065         members to_insert_exec_catchpoint and
3066         to_remove_exec_catchpoint.
3067
3068 2015-09-11  Don Breazeal  <donb@codesourcery.com>
3069             Luis Machado  <lgustavo@codesourcery.com>
3070
3071         * infrun.c (follow_exec): Use process-style ptid for
3072         exec message.  Call add_inferior_with_spaces and
3073         target_follow_exec.
3074         * nat/linux-ptrace.c (linux_supports_traceexec): New function.
3075         * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
3076         * remote.c (remote_pspace_data): New static variable.
3077         (remote_pspace_data_cleanup): New function.
3078         (get_remote_exec_file): New function.
3079         (set_remote_exec_file_1): New function.
3080         (set_remote_exec_file): New function.
3081         (show_remote_exec_file): New function.
3082         (remote_exec_file): Delete static variable.
3083         (anonymous enum) <PACKET_exec_event_feature>: New
3084         enumeration constant.
3085         (remote_protocol_features): Add entry for exec-events feature.
3086         (remote_query_supported): Add client side of qSupported query
3087         for exec-events feature.
3088         (remote_follow_exec): New function.
3089         (remote_parse_stop_reply): Handle 'exec' stop reason.
3090         (extended_remote_run, extended_remote_create_inferior): Call
3091         get_remote_exec_file and set_remote_exec_file_1.
3092         (init_extended_remote_ops) <to_follow_exec>: Initialize new
3093         member.
3094         (_initialize_remote): Call
3095         register_program_space_data_with_cleanup.  Call
3096         add_packet_config_cmd for remote exec-events feature.
3097         Modify call to add_setshow_string_noescape_cmd for exec-file
3098         to use new functions set_remote_exec_file and
3099         show_remote_exec_file.
3100         * target-debug.h, target-delegates.c: Regenerated.
3101         * target.c (target_follow_exec): New function.
3102         * target.h (struct target_ops) <to_follow_exec>: New member.
3103         (target_follow_exec): Declare new function.
3104
3105 2015-09-11  Pierre Langlois  <pierre.langlois@arm.com>
3106
3107         * aarch64-tdep.c (decode_cb): Move up comment describing the
3108         encoding.
3109         (decode_tb): Fix a typo in comment above the function.  Move up
3110         comment describing the encoding.
3111
3112 2015-09-11  Pierre Langlois  <pierre.langlois@arm.com>
3113
3114         * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
3115
3116 2015-09-11  Mihail-Marian Nistor  <mihail.nistor@freescale.com>
3117
3118         PR gdb/18947
3119         * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
3120         glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
3121
3122 2015-09-10  Simon Marchi  <simon.marchi@ericsson.com>
3123
3124         * ada-lang.c (scan_discrim_bound): Factor out arithmetic
3125         operations.
3126
3127 2015-09-10  Simon Marchi  <simon.marchi@ericsson.com>
3128
3129         * ada-lang.c (ada_search_struct_field): Constify parameters
3130         and/or variables..
3131         (xget_renaming_scope): Likewise.
3132         (ada_is_redundant_range_encoding): Likewise.
3133         (scan_discrim_bound): Likewise.
3134         (to_fixed_range_type): Likewise.
3135
3136 2015-09-10  Yao Qi  <yao.qi@linaro.org>
3137
3138         * breakpoint.c (download_tracepoint_locations): New local
3139         can_download_tracepoint.  Check the result of
3140         target_can_download_tracepoint and save it in
3141         can_download_tracepoint if there are tracepoints to download.
3142         * linux-nat.h (enum tribool): Move it to ...
3143         * common/common-types.h: ... here.
3144
3145 2015-09-09  Pedro Alves  <palves@redhat.com>
3146
3147         * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
3148         * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
3149
3150 2015-09-09  Pedro Alves  <palves@redhat.com>
3151
3152         * continuations.c (add_continuation, restore_thread_cleanup)
3153         (do_all_continuations_ptid, do_all_continuations_thread_callback)
3154         (do_all_continuations_thread, do_all_continuations)
3155         (discard_all_continuations_thread_callback)
3156         (discard_all_continuations_thread, discard_all_continuations)
3157         (add_intermediate_continuation)
3158         (do_all_intermediate_continuations_thread_callback)
3159         (do_all_intermediate_continuations_thread)
3160         (do_all_intermediate_continuations)
3161         (discard_all_intermediate_continuations_thread_callback)
3162         (discard_all_intermediate_continuations_thread)
3163         (discard_all_intermediate_continuations): Delete.
3164         * continuations.h (add_continuation, do_all_continuations)
3165         (do_all_continuations_thread, discard_all_continuations)
3166         (discard_all_continuations_thread, add_intermediate_continuation)
3167         (do_all_intermediate_continuations)
3168         (do_all_intermediate_continuations_thread)
3169         (discard_all_intermediate_continuations)
3170         (discard_all_intermediate_continuations_thread): Delete
3171         declarations.
3172         * event-top.c (stdin_event_handler): Delete references to
3173         continuations.
3174         * gdbthread.h (struct thread_info): Delete continuations and
3175         intermediate_continuations fields.
3176         * inf-loop.c (inferior_event_handler): Remove references to
3177         continuations.
3178         * infrun.c (infrun_thread_stop_requested_callback): Remove
3179         references to continuations.
3180         * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
3181         * thread.c: Don't include "continuations.h".
3182         (clear_thread_inferior_resources): Remove references to
3183         continuations.
3184
3185 2015-09-09  Pedro Alves  <palves@redhat.com>
3186
3187         * infcall.c (struct dummy_frame_context_saver): Delete.
3188         (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
3189         (dummy_frame_context_saver_drop)
3190         (dummy_frame_context_saver_cleanup)
3191         (dummy_frame_context_saver_get_regs)
3192         (dummy_frame_context_saver_setup): Delete.
3193         * infcall.h (dummy_frame_context_saver_drop)
3194         (dummy_frame_context_saver_cleanup)
3195         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
3196         Delete.
3197         (get_return_value): Remove 'ctx_saver' paremeter.  Adjust.
3198         * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
3199         * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
3200
3201 2015-09-09  Pedro Alves  <palves@redhat.com>
3202
3203         * breakpoint.c: Include "thread-fsm.h".
3204         (struct until_break_command_continuation_args): Delete.
3205         (struct until_break_fsm): New.
3206         (until_break_fsm_ops): New global.
3207         (new_until_break_fsm, until_break_fsm_should_stop): New functions.
3208         (until_break_command_continuation): Delete.
3209         (until_break_fsm_clean_up): New function.
3210         (until_break_fsm_async_reply_reason): New function.
3211         (until_break_command): Adjust to create an until_break_fsm instead
3212         of a continuation.
3213         (momentary_bkpt_print_it): No longer print MI's async-stop-reason
3214         here.
3215         * infcmd.c (struct until_next_fsm): New.
3216         (until_next_fsm_ops): New global.
3217         (new_until_next_fsm, until_next_fsm_should_stop): New function.
3218         (until_next_continuation): Delete.
3219         (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
3220         functions.
3221         (until_next_command): Adjust to create a new until_next_fsm
3222         instead of a continuation.
3223
3224 2015-09-09  Pedro Alves  <palves@redhat.com>
3225
3226         * infcall.c: Include thread_fsm.h.
3227         (struct call_return_meta_info): New.
3228         (get_call_return_value): New function, factored out from
3229         call_function_by_hand_dummy.
3230         (struct call_thread_fsm): New.
3231         (call_thread_fsm_ops): New global.
3232         (new_call_thread_fsm, call_thread_fsm_should_stop)
3233         (call_thread_fsm_should_notify_stop): New functions.
3234         (run_inferior_call): Add 'sm' parameter.  Associate the FSM with
3235         the thread.
3236         (call_function_by_hand_dummy): Create a new call_thread_fsm
3237         instance, associate it with the thread, and wait for the FSM to
3238         finish.  If finished successfully, fetch the function's result
3239         value out of the FSM.
3240         * infrun.c (fetch_inferior_event): If the FSM says the stop
3241         shouldn't be notified, don't call normal_stop.
3242         (maybe_remove_breakpoints): New function, factored out from ...
3243         (normal_stop): ... here.  Simplify.
3244         * infrun.h (maybe_remove_breakpoints): Declare.
3245         * thread-fsm.c (thread_fsm_should_notify_stop): New function.
3246         (thread-fsm.h) <struct thread_fsm_ops>: New field.
3247         (thread_fsm_should_notify_stop): Declare.
3248
3249 2015-09-09  Pedro Alves  <palves@redhat.com>
3250
3251         * Makefile.in (COMMON_OBS): Add thread-fsm.o.
3252         * breakpoint.c (handle_jit_event): Print debug output.
3253         (bpstat_what): Split event callback handling to ...
3254         (bpstat_run_callbacks): ... this new function.
3255         (momentary_bkpt_print_it): No longer handle bp_finish here.
3256         * breakpoint.h (bpstat_run_callbacks): Declare.
3257         * gdbthread.h (struct thread_info) <step_multi>: Delete field.
3258         <thread_fsm>: New field.
3259         (thread_cancel_execution_command): Declare.
3260         * infcmd.c: Include thread-fsm.h.
3261         (struct step_command_fsm): New.
3262         (step_command_fsm_ops): New global.
3263         (new_step_command_fsm, step_command_fsm_prepare): New functions.
3264         (step_1): Adjust to use step_command_fsm_prepare and
3265         prepare_one_step.
3266         (struct step_1_continuation_args): Delete.
3267         (step_1_continuation): Delete.
3268         (step_command_fsm_should_stop): New function.
3269         (step_once): Delete.
3270         (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
3271         (prepare_one_step): New function, based on step_once.
3272         (until_next_command): Remove step_multi reference.
3273         (struct return_value_info): New.
3274         (print_return_value): Rename to ...
3275         (print_return_value_1): ... this.  New struct return_value_info
3276         parameter.  Adjust.
3277         (print_return_value): Reimplement as wrapper around
3278         print_return_value_1.
3279         (struct finish_command_fsm): New.
3280         (finish_command_continuation): Delete.
3281         (finish_command_fsm_ops): New global.
3282         (new_finish_command_fsm, finish_command_fsm_should_stop): New
3283         functions.
3284         (finish_command_fsm_clean_up, finish_command_fsm_return_value):
3285         New.
3286         (finish_command_continuation_free_arg): Delete.
3287         (finish_command_fsm_async_reply_reason): New.
3288         (finish_backward, finish_forward): Change symbol parameter to a
3289         finish_command_fsm.  Adjust.
3290         (finish_command): Create a finish_command_fsm.  Adjust.
3291         * infrun.c: Include "thread-fsm.h".
3292         (clear_proceed_status_thread): Delete the thread's FSM.
3293         (infrun_thread_stop_requested_callback): Cancel the thread's
3294         execution command.
3295         (clean_up_just_stopped_threads_fsms): New function.
3296         (fetch_inferior_event): Handle the event_thread's should_stop
3297         method saying the command isn't done yet.
3298         (process_event_stop_test): Run breakpoint callbacks here.
3299         (print_stop_event): Rename to ...
3300         (print_stop_location): ... this.
3301         (restore_current_uiout_cleanup): New function.
3302         (print_stop_event): Reimplement.
3303         (normal_stop): No longer notify the end_stepping_range observers
3304         here handle "step N" nor "finish" here.  No longer call
3305         print_stop_event here.
3306         * infrun.h (struct return_value_info): Forward declare.
3307         (print_return_value): Declare.
3308         (print_stop_event): Change prototype.
3309         * thread-fsm.c: New file.
3310         * thread-fsm.h: New file.
3311         * thread.c: Include "thread-fsm.h".
3312         (thread_cancel_execution_command): New function.
3313         (clear_thread_inferior_resources): Call it.
3314         * cli/cli-interp.c (cli_on_normal_stop): New function.
3315         (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
3316         observer.
3317         * mi/mi-interp.c: Include "thread-fsm.h".
3318         (restore_current_uiout_cleanup): Delete.
3319         (mi_on_normal_stop): If the thread has an FSM associated, and it
3320         finished, ask it for the async-reply-reason to print.  Always call
3321         print_stop_event here, regardless of the top-level interpreter.
3322         Check bpstat_what to tell whether an asynchronous breakpoint hit
3323         triggered.
3324         * tui/tui-interp.c (tui_on_normal_stop): New function.
3325         (tui_init): Install tui_on_normal_stop as normal_stop observer.
3326
3327 2015-09-09  Pedro Alves  <palves@redhat.com>
3328
3329         * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
3330         check whether the target can async.
3331         * inf-loop.c (inferior_event_handler): Only call target_async if
3332         the target can async.
3333         * infcall.c: Include top.h and interps.h.
3334         (run_inferior_call): For the interpreter to sync mode while
3335         running the infcall.  Call wait_sync_command_done instead of
3336         wait_for_inferior plus normal_stop.
3337         * infcmd.c (prepare_execution_command): Don't check whether the
3338         target can async when running in the foreground.
3339         (step_1): Delete synchronous case handling.
3340         (step_once): Always install a continuation, even in sync mode.
3341         (until_next_command, finish_forward): Don't check whether the
3342         target can async.
3343         (attach_command_post_wait, notice_new_inferior): Always install a
3344         continuation, even in sync mode.
3345         * infrun.c (mark_infrun_async_event_handler): New function.
3346         (proceed): In sync mode, mark infrun's event source instead of
3347         waiting for events here.
3348         (fetch_inferior_event): If the target can't async, do a blocking
3349         wait.
3350         (prepare_to_wait): In sync mode, mark infrun's event source.
3351         (infrun_async_inferior_event_handler): No longer bail out if the
3352         target can't async.
3353         * infrun.h (mark_infrun_async_event_handler): New declaration.
3354         * linux-nat.c (linux_nat_wait_1): Remove calls to
3355         set_sigint_trap/clear_sigint_trap.
3356         (linux_nat_terminal_inferior): No longer check whether the target
3357         can async.
3358         * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
3359         comment.
3360         (mi_execute_command_input_handler): No longer check whether the
3361         target is async.  Update and simplify comment.
3362         * target.c (default_target_wait): New function.
3363         * target.h (struct target_ops) <to_wait>: Now defaults to
3364         default_target_wait.
3365         (default_target_wait): Declare.
3366         * top.c (wait_sync_command_done): New function, factored out from
3367         ...
3368         (maybe_wait_sync_command_done): ... this.
3369         * top.h (wait_sync_command_done): Declare.
3370         * target-delegates.c: Regenerate.
3371
3372 2015-09-09  Markus Metzger  <markus.t.metzger@intel.com>
3373
3374         * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
3375         * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
3376         Remove include of sys/utsname.h.
3377         (linux_determine_kernel_ptr_bits): Remove.
3378         (linux_determine_kernel_start): New.
3379         (perf_event_is_kernel_addr): Remove tinfo argument.  Update users.
3380         Update check.
3381         (perf_event_skip_bts_record): Remove tinfo argument.  Update users.
3382         (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
3383         initialization.
3384         * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
3385         assignment.
3386
3387 2015-09-07  Pedro Alves  <palves@redhat.com>
3388
3389         * guile/guile-internal.h (as_a_scm_t_subr): New.
3390         * guile/guile.c (misc_guile_functions): Use it.
3391         * guile/scm-arch.c (arch_functions): Use it.
3392         * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
3393         Use it.
3394         * guile/scm-breakpoint.c (breakpoint_functions): Use it.
3395         * guile/scm-cmd.c (command_functions): Use it.
3396         * guile/scm-disasm.c (disasm_functions): Use it.
3397         * guile/scm-exception.c (exception_functions)
3398         (private_exception_functions): Use it.
3399         * guile/scm-frame.c (frame_functions)
3400         * guile/scm-gsmob.c (gsmob_functions): Use it.
3401         * guile/scm-iterator.c (iterator_functions): Use it.
3402         * guile/scm-lazy-string.c (lazy_string_functions): Use it.
3403         * guile/scm-math.c (math_functions): Use it.
3404         * guile/scm-objfile.c (objfile_functions): Use it.
3405         * guile/scm-param.c (parameter_functions): Use it.
3406         * guile/scm-ports.c (port_functions, private_port_functions): Use
3407         it.
3408         * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
3409         * guile/scm-progspace.c (pspace_functions): Use it.
3410         * guile/scm-string.c (string_functions): Use it.
3411         * guile/scm-symbol.c (symbol_functions): Use it.
3412         * guile/scm-symtab.c (symtab_functions): Use it.
3413         * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
3414         it.
3415         * guile/scm-value.c (value_functions): Use it.
3416
3417 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
3418
3419         * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
3420         (tui_next_win): Likewise.
3421         (tui_prev_win): Likewise.
3422         (tui_partial_win_by_name): Likewise.
3423         (tui_init_generic_part): Likewise.
3424         (init_content_element): Likewise.
3425         (tui_del_window): Likewise.
3426         (tui_free_window): Likewise.
3427         (tui_del_data_windows): Likewise.
3428         (tui_free_data_content): Likewise.
3429         * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
3430         * tui/tui-regs.c (tui_show_register_group): Likewise.
3431         * tui/tui-win.c (tui_resize_all): Likewise.
3432         (tui_set_focus): Likewise.
3433         (tui_set_win_height): Likewise.
3434         (make_invisible_and_set_new_height): Likewise.
3435         * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
3436         * tui/tui-wingeneral.c (make_visible): Likewise.
3437
3438 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
3439
3440         * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
3441
3442 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
3443
3444         * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
3445         pointer.
3446         * dbxread.c (dbx_end_psymtab): Likewise.
3447         * gnu-nat.c (gnu_write_inferior): Likewise.
3448         * mdebugread.c (cross_ref): Likewise.
3449         * p-valprint.c (pascal_val_print): Likewise.
3450         * xcoffread.c (xcoff_end_psymtab): Likewise.
3451
3452 2015-09-04  Yao Qi  <yao.qi@linaro.org>
3453
3454         * NEWS: Mention the aarch64 multi-arch debugging support.
3455
3456 2015-09-03  Pierre-Marie de Rodat  <derodat@adacore.com>
3457
3458         * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
3459         type instead of a TYPE_CODE_INT one for the string_char_type
3460         and the ada_primitive_type_char types.
3461
3462 2015-09-03  Yao Qi  <yao.qi@linaro.org>
3463
3464         * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
3465         Move code to aarch64_linux_region_ok_for_watchpoint.  Call
3466         aarch64_linux_region_ok_for_watchpoint.
3467         * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
3468         New function.
3469         * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
3470         Declare it.
3471
3472 2015-09-02  Patrick Palka  <patrick@parcs.ath.cx>
3473
3474         * gdb_obstack.h (obstack_strdup): Declare.
3475         * gdb_obstack.c (obstack_strdup): Define.
3476         * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
3477         * gdbarch.c: Regenerate.
3478         * gdbarch.h: Regenerate.
3479         * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
3480
3481 2015-09-02  Patrick Palka  <patrick@parcs.ath.cx>
3482
3483         * gdbtypes.c (copy_type_recursive): Update documentation.
3484
3485 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
3486
3487         * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
3488         as zero.
3489
3490 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
3491
3492         * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
3493
3494 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
3495
3496         * solib-svr4.c (solib_event_probe_action): Call
3497         get_probe_argument_count using TRY...CATCH.
3498         (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
3499
3500 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
3501
3502         * probe.h (struct probe_ops) <get_probe_argument_count,
3503         evaluate_probe_argument, enable_probe, disable_probe>: Mention in
3504         the comment that the function can throw an exception.
3505         (get_probe_argument_count): Likewise.
3506         (evaluate_probe_argument): Likewise.
3507         * stap-probe.c (stap_get_opcode): Call error instead of
3508         internal_error.
3509         (stap_get_expected_argument_type): Likewise.  Add argument
3510         'probe'.  Improve error message by mentioning the probe's name.
3511         (stap_parse_probe_arguments): Adjust call to
3512         stap_get_expected_argument_type.
3513         (stap_get_arg): Add comment.  Assert that 'probe->args_parsed' is
3514         not zero.  Call internal_error if GDB requests an argument but the
3515         probe has no arguments.
3516
3517 2015-09-01  Pierre-Marie de Rodat  <derodat@adacore.com>
3518
3519         * ada-lang.c (ada_resolve_function): Do not ask the user what
3520         match to use when in completion mode.
3521
3522 2015-08-31  Andrew Burgess  <andrew.burgess@embecosm.com>
3523
3524         * tui/tui-data.c (tui_win_name): Make local variable const, remove
3525         cast of NULL.
3526
3527 2015-08-31  Max Filippov  <jcmvbkbc@gmail.com>
3528
3529         * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
3530         call_abi using XSHAL_ABI macro.
3531
3532 2015-08-29  Doug Evans  <xdje42@gmail.com>
3533
3534         * symtab.h (struct symbol): Tweak comment.
3535
3536 2015-08-29  Patrick Palka  <patrick@parcs.ath.cx>
3537
3538         * gdbtypes.c (alloc_type_arch): Allocate the type on the given
3539         gdbarch obstack instead of on the heap.  Update commentary
3540         accordingly.
3541
3542 2015-08-28  Joel Brobecker  <brobecker@adacore.com>
3543
3544         GDB 7.10 released.
3545
3546 2015-08-28  Simon Marchi  <simon.marchi@ericsson.com>
3547
3548         * NEWS: Update entry about non-8-bits addressable memory.
3549
3550 2015-08-28  Ulrich Weigand  <uweigand@de.ibm.com>
3551
3552         Revert:
3553         2014-11-06  Doug Evans  <xdje42@gmail.com>
3554         * solib.c (solib_global_lookup): Fetch arch from objfile,
3555         not target_gdbarch.
3556
3557 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
3558
3559         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
3560         attempt to relocate a TLS variable offset.
3561
3562 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
3563
3564         * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
3565         registered yet.  Set inferior_ptid while calling target_read_memory.
3566
3567 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
3568
3569         * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
3570         (GDB_ARCH_IS_TRAP_BRKPT): ... this.  Add __powerpc__ case.
3571         * linux-nat.c (check_stopped_by_breakpoint): Use
3572         GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
3573
3574 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
3575
3576         * linux-thread-db.c (thread_db_get_thread_local_address): If the
3577         thread was not yet discovered, use thread_from_lwp instead of
3578         calling thread_db_find_new_threads_1.
3579
3580 2015-08-27  Simon Marchi  <simon.marchi@ericsson.com>
3581
3582         * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
3583         statements.
3584
3585 2015-08-27  Simon Marchi  <simon.marchi@ericsson.com>
3586
3587         * NEWS: Document support for non-8-bits addressable memory.
3588
3589 2015-08-27  Pedro Alves  <palves@redhat.com>
3590
3591         * configure.ac: Remove AC_TYPE_SIGNAL call.
3592         * configure, config.in: Regenerate.
3593
3594 2015-08-27  Pedro Alves  <palves@redhat.com>
3595
3596         * cp-support.c (gdb_demangle): Use sighandler_t.  Remove cast.
3597         * extension-priv.h: Include signal.h.
3598         (struct signal_handler) <handler>: Change type to sighandler_t.
3599         * extension.c (install_gdb_sigint_handler): Use sighandler_t.
3600         * inflow.c (sigint_ours, sigquit_ours): Change type to
3601         sighandler_t.
3602         (child_terminal_inferior): Remove casts.
3603         (child_terminal_ours_1, new_tty): Use sighandler_t.  Remove casts.
3604         (osig): Change type to sighandler_t.
3605         * nto-procfs.c (ofunc): Change type to sighandler_t.
3606         (procfs_wait): Remove casts.
3607         * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
3608         * remote-sim.c (gdbsim_wait): Use sighandler_t.
3609         * utils.c (wait_to_die_with_timeout): Use sighandler_t.
3610
3611 2015-08-27  Pedro Alves  <palves@redhat.com>
3612
3613         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
3614         * gnulib/aclocal.m4: Renegerate.
3615         * gnulib/config.in: Renegerate.
3616         * gnulib/configure: Renegerate.
3617         * gnulib/import/Makefile.am: Update.
3618         * gnulib/import/Makefile.in: Regenerate.
3619         * gnulib/import/m4/gnulib-cache.m4: Update.
3620         * gnulib/import/m4/gnulib-comp.m4: Update.
3621         * gnulib/import/m4/signal_h.m4: New file.
3622         * gnulib/import/signal.in.h: New file.
3623
3624 2015-08-27  Pedro Alves  <palves@redhat.com>
3625
3626         * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
3627         (MIN_MEMORY_PACKET_SIZE): New.
3628         (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
3629         (get_memory_packet_size): Adjust.  No longer limit the max packet
3630         size.
3631         (set_memory_packet_size): Adjust, and remove dead code.
3632         (remote_check_symbols): Use xmalloc and a cleanup instead of
3633         alloca.
3634         (remote_packet_size): No longer cap the packet size.
3635         (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
3636
3637 2015-08-26  Luis Machado  <lgustavo@codesourcery.com>
3638
3639         * compile/compile.c (compile_to_object): Mention language in
3640         error message.
3641
3642 2015-08-26  Patrick Palka  <patrick@parcs.ath.cx>
3643
3644         * target.c (target_pre_inferior): Unset attach_flag.
3645
3646 2015-08-26  Simon Marchi  <simon.marchi@ericsson.com>
3647
3648         * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
3649         * gdbarch.c: Re-generate.
3650
3651 2015-08-26  Simon Marchi  <simon.marchi@ericsson.com>
3652
3653         * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
3654         function with the XNEW-family equivalent.
3655         * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
3656         * ada-exp.y (write_ambiguous_var): Likewise.
3657         * ada-lang.c (resolve_subexp): Likewise.
3658         (user_select_syms): Likewise.
3659         (assign_aggregate): Likewise.
3660         (ada_evaluate_subexp): Likewise.
3661         (cache_symbol): Likewise.
3662         * addrmap.c (allocate_key): Likewise.
3663         (addrmap_create_mutable): Likewise.
3664         * aix-thread.c (sync_threadlists): Likewise.
3665         * alpha-tdep.c (alpha_push_dummy_call): Likewise.
3666         (alpha_gdbarch_init): Likewise.
3667         * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
3668         * arm-linux-nat.c (arm_linux_add_process): Likewise.
3669         * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
3670         * arm-tdep.c (push_stack_item): Likewise.
3671         (arm_displaced_step_copy_insn): Likewise.
3672         (arm_gdbarch_init): Likewise.
3673         (_initialize_arm_tdep): Likewise.
3674         * avr-tdep.c (push_stack_item): Likewise.
3675         * ax-general.c (new_agent_expr): Likewise.
3676         * block.c (block_initialize_namespace): Likewise.
3677         * breakpoint.c (alloc_counted_command_line): Likewise.
3678         (update_dprintf_command_list): Likewise.
3679         (parse_breakpoint_sals): Likewise.
3680         (decode_static_tracepoint_spec): Likewise.
3681         (until_break_command): Likewise.
3682         (clear_command): Likewise.
3683         (update_global_location_list): Likewise.
3684         (get_breakpoint_objfile_data) Likewise.
3685         * btrace.c (ftrace_new_function): Likewise.
3686         (btrace_set_insn_history): Likewise.
3687         (btrace_set_call_history): Likewise.
3688         * buildsym.c (add_symbol_to_list): Likewise.
3689         (record_pending_block): Likewise.
3690         (start_subfile): Likewise.
3691         (start_buildsym_compunit): Likewise.
3692         (push_subfile): Likewise.
3693         (end_symtab_get_static_block): Likewise.
3694         (buildsym_init): Likewise.
3695         * cli/cli-cmds.c (source_command): Likewise.
3696         * cli/cli-decode.c (add_cmd): Likewise.
3697         * cli/cli-script.c (build_command_line): Likewise.
3698         (setup_user_args): Likewise.
3699         (realloc_body_list): Likewise.
3700         (process_next_line): Likewise.
3701         (copy_command_lines): Likewise.
3702         * cli/cli-setshow.c (do_set_command): Likewise.
3703         * coff-pe-read.c (read_pe_exported_syms): Likewise.
3704         * coffread.c (coff_locate_sections): Likewise.
3705         (coff_symtab_read): Likewise.
3706         (coff_read_struct_type): Likewise.
3707         * common/cleanups.c (make_my_cleanup2): Likewise.
3708         * common/common-exceptions.c (throw_it): Likewise.
3709         * common/filestuff.c (make_cleanup_close): Likewise.
3710         * common/format.c (parse_format_string): Likewise.
3711         * common/queue.h (DEFINE_QUEUE_P): Likewise.
3712         * compile/compile-object-load.c (munmap_list_add): Likewise.
3713         (compile_object_load): Likewise.
3714         * compile/compile-object-run.c (compile_object_run): Likewise.
3715         * compile/compile.c (append_args): Likewise.
3716         * corefile.c (specify_exec_file_hook): Likewise.
3717         * cp-support.c (make_symbol_overload_list): Likewise.
3718         * cris-tdep.c (push_stack_item): Likewise.
3719         (cris_gdbarch_init): Likewise.
3720         * ctf.c (ctf_trace_file_writer_new): Likewise.
3721         * dbxread.c (init_header_files): Likewise.
3722         (add_new_header_file): Likewise.
3723         (init_bincl_list): Likewise.
3724         (dbx_end_psymtab): Likewise.
3725         (start_psymtab): Likewise.
3726         (dbx_end_psymtab): Likewise.
3727         * dcache.c (dcache_init): Likewise.
3728         * dictionary.c (dict_create_hashed): Likewise.
3729         (dict_create_hashed_expandable): Likewise.
3730         (dict_create_linear): Likewise.
3731         (dict_create_linear_expandable): Likewise.
3732         * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
3733         * dummy-frame.c (register_dummy_frame_dtor): Likewise.
3734         * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
3735         * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3736         (decode_frame_entry_1): Likewise.
3737         * dwarf2expr.c (new_dwarf_expr_context): Likewise.
3738         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
3739         * dwarf2read.c (dwarf2_has_info): Likewise.
3740         (create_signatured_type_table_from_index): Likewise.
3741         (dwarf2_read_index): Likewise.
3742         (dw2_get_file_names_reader): Likewise.
3743         (create_all_type_units): Likewise.
3744         (read_cutu_die_from_dwo): Likewise.
3745         (init_tu_and_read_dwo_dies): Likewise.
3746         (init_cutu_and_read_dies): Likewise.
3747         (create_all_comp_units): Likewise.
3748         (queue_comp_unit): Likewise.
3749         (inherit_abstract_dies): Likewise.
3750         (read_call_site_scope): Likewise.
3751         (dwarf2_add_field): Likewise.
3752         (dwarf2_add_typedef): Likewise.
3753         (dwarf2_add_member_fn): Likewise.
3754         (attr_to_dynamic_prop): Likewise.
3755         (abbrev_table_alloc_abbrev): Likewise.
3756         (abbrev_table_read_table): Likewise.
3757         (add_include_dir): Likewise.
3758         (add_file_name): Likewise.
3759         (dwarf_decode_line_header): Likewise.
3760         (dwarf2_const_value_attr): Likewise.
3761         (dwarf_alloc_block): Likewise.
3762         (parse_macro_definition): Likewise.
3763         (set_die_type): Likewise.
3764         (write_psymtabs_to_index): Likewise.
3765         (create_cus_from_index): Likewise.
3766         (dwarf2_create_include_psymtab): Likewise.
3767         (process_psymtab_comp_unit_reader): Likewise.
3768         (build_type_psymtab_dependencies): Likewise.
3769         (read_comp_units_from_section): Likewise.
3770         (compute_compunit_symtab_includes): Likewise.
3771         (create_dwo_unit_in_dwp_v1): Likewise.
3772         (create_dwo_unit_in_dwp_v2): Likewise.
3773         (read_func_scope): Likewise.
3774         (process_structure_scope): Likewise.
3775         (mark_common_block_symbol_computed): Likewise.
3776         (load_partial_dies): Likewise.
3777         (dwarf2_symbol_mark_computed): Likewise.
3778         * elfread.c (elf_symfile_segments): Likewise.
3779         (elf_read_minimal_symbols): Likewise.
3780         * environ.c (make_environ): Likewise.
3781         * eval.c (evaluate_subexp_standard): Likewise.
3782         * event-loop.c (create_file_handler): Likewise.
3783         (create_async_signal_handler): Likewise.
3784         (create_async_event_handler): Likewise.
3785         (create_timer): Likewise.
3786         * exec.c (build_section_table): Likewise.
3787         * fbsd-nat.c (fbsd_remember_child): Likewise.
3788         * fork-child.c (fork_inferior): Likewise.
3789         * frv-tdep.c (new_variant): Likewise.
3790         * gdbarch.sh (gdbarch_alloc): Likewise.
3791         (append_name): Likewise.
3792         * gdbtypes.c (rank_function): Likewise.
3793         (copy_type_recursive): Likewise.
3794         (add_dyn_prop): Likewise.
3795         * gnu-nat.c (make_proc): Likewise.
3796         (make_inf): Likewise.
3797         (gnu_write_inferior): Likewise.
3798         * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
3799         (build_std_type_info_type): Likewise.
3800         * guile/scm-param.c (compute_enum_list): Likewise.
3801         * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
3802         * guile/scm-value.c (gdbscm_value_call): Likewise.
3803         * h8300-tdep.c (h8300_gdbarch_init): Likewise.
3804         * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
3805         (read_unwind_info): Likewise.
3806         * ia64-tdep.c (ia64_gdbarch_init): Likewise.
3807         * infcall.c (dummy_frame_context_saver_setup): Likewise.
3808         (call_function_by_hand_dummy): Likewise.
3809         * infcmd.c (step_once): Likewise.
3810         (finish_forward): Likewise.
3811         (attach_command): Likewise.
3812         (notice_new_inferior): Likewise.
3813         * inferior.c (add_inferior_silent): Likewise.
3814         * infrun.c (add_displaced_stepping_state): Likewise.
3815         (save_infcall_control_state): Likewise.
3816         (save_inferior_ptid): Likewise.
3817         (_initialize_infrun): Likewise.
3818         * jit.c (bfd_open_from_target_memory): Likewise.
3819         (jit_gdbarch_data_init): Likewise.
3820         * language.c (add_language): Likewise.
3821         * linespec.c (decode_line_2): Likewise.
3822         * linux-nat.c (add_to_pid_list): Likewise.
3823         (add_initial_lwp): Likewise.
3824         * linux-thread-db.c (add_thread_db_info): Likewise.
3825         (record_thread): Likewise.
3826         (info_auto_load_libthread_db): Likewise.
3827         * m32c-tdep.c (m32c_gdbarch_init): Likewise.
3828         * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
3829         * m68k-tdep.c (m68k_gdbarch_init): Likewise.
3830         * m88k-tdep.c (m88k_analyze_prologue): Likewise.
3831         * macrocmd.c (macro_define_command): Likewise.
3832         * macroexp.c (gather_arguments): Likewise.
3833         * macroscope.c (sal_macro_scope): Likewise.
3834         * macrotab.c (new_macro_table): Likewise.
3835         * mdebugread.c (push_parse_stack): Likewise.
3836         (parse_partial_symbols): Likewise.
3837         (parse_symbol): Likewise.
3838         (psymtab_to_symtab_1): Likewise.
3839         (new_block): Likewise.
3840         (new_psymtab): Likewise.
3841         (mdebug_build_psymtabs): Likewise.
3842         (add_pending): Likewise.
3843         (elfmdebug_build_psymtabs): Likewise.
3844         * mep-tdep.c (mep_gdbarch_init): Likewise.
3845         * mi/mi-main.c (mi_execute_command): Likewise.
3846         * mi/mi-parse.c (mi_parse_argv): Likewise.
3847         * minidebug.c (lzma_open): Likewise.
3848         * minsyms.c (terminate_minimal_symbol_table): Likewise.
3849         * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
3850         * mips-tdep.c (mips_gdbarch_init): Likewise.
3851         * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
3852         * msp430-tdep.c (msp430_gdbarch_init): Likewise.
3853         * mt-tdep.c (mt_registers_info): Likewise.
3854         * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
3855         * nat/linux-btrace.c (linux_enable_bts): Likewise.
3856         (linux_enable_pt): Likewise.
3857         * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
3858         (linux_xfer_osdata_processgroups): Likewise.
3859         * nios2-tdep.c (nios2_gdbarch_init): Likewise.
3860         * nto-procfs.c (procfs_meminfo): Likewise.
3861         * objc-lang.c (start_msglist): Likewise.
3862         (selectors_info): Likewise.
3863         (classes_info): Likewise.
3864         (find_methods): Likewise.
3865         * objfiles.c (allocate_objfile): Likewise.
3866         (update_section_map): Likewise.
3867         * osabi.c (gdbarch_register_osabi): Likewise.
3868         (gdbarch_register_osabi_sniffer): Likewise.
3869         * parse.c (start_arglist): Likewise.
3870         * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
3871         (hwdebug_insert_point): Likewise.
3872         * printcmd.c (display_command): Likewise.
3873         (ui_printf): Likewise.
3874         * procfs.c (create_procinfo): Likewise.
3875         (load_syscalls): Likewise.
3876         (proc_get_LDT_entry): Likewise.
3877         (proc_update_threads): Likewise.
3878         * prologue-value.c (make_pv_area): Likewise.
3879         (pv_area_store): Likewise.
3880         * psymtab.c (extend_psymbol_list): Likewise.
3881         (init_psymbol_list): Likewise.
3882         (allocate_psymtab): Likewise.
3883         * python/py-inferior.c (add_thread_object): Likewise.
3884         * python/py-param.c (compute_enum_values): Likewise.
3885         * python/py-value.c (valpy_call): Likewise.
3886         * python/py-varobj.c (py_varobj_iter_next): Likewise.
3887         * python/python.c (ensure_python_env): Likewise.
3888         * record-btrace.c (record_btrace_start_replaying): Likewise.
3889         * record-full.c (record_full_reg_alloc): Likewise.
3890         (record_full_mem_alloc): Likewise.
3891         (record_full_end_alloc): Likewise.
3892         (record_full_core_xfer_partial): Likewise.
3893         * regcache.c (get_thread_arch_aspace_regcache): Likewise.
3894         * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
3895         * remote-notif.c (remote_notif_state_allocate): Likewise.
3896         * remote.c (demand_private_info): Likewise.
3897         (remote_notif_stop_alloc_reply): Likewise.
3898         (remote_enable_btrace): Likewise.
3899         * reverse.c (save_bookmark_command): Likewise.
3900         * rl78-tdep.c (rl78_gdbarch_init): Likewise.
3901         * rx-tdep.c (rx_gdbarch_init): Likewise.
3902         * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
3903         * ser-go32.c (dos_get_tty_state): Likewise.
3904         (dos_copy_tty_state): Likewise.
3905         * ser-mingw.c (ser_windows_open): Likewise.
3906         (ser_console_wait_handle): Likewise.
3907         (ser_console_get_tty_state): Likewise.
3908         (make_pipe_state): Likewise.
3909         (net_windows_open): Likewise.
3910         * ser-unix.c (hardwire_get_tty_state): Likewise.
3911         (hardwire_copy_tty_state): Likewise.
3912         * solib-aix.c (solib_aix_new_lm_info): Likewise.
3913         * solib-dsbt.c (dsbt_current_sos): Likewise.
3914         (dsbt_relocate_main_executable): Likewise.
3915         * solib-frv.c (frv_current_sos): Likewise.
3916         (frv_relocate_main_executable): Likewise.
3917         * solib-spu.c (spu_bfd_fopen): Likewise.
3918         * solib-svr4.c (lm_info_read): Likewise.
3919         (svr4_copy_library_list): Likewise.
3920         (svr4_default_sos): Likewise.
3921         * source.c (find_source_lines): Likewise.
3922         (line_info): Likewise.
3923         (add_substitute_path_rule): Likewise.
3924         * spu-linux-nat.c (spu_bfd_open): Likewise.
3925         * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
3926         * stabsread.c (dbx_lookup_type): Likewise.
3927         (read_type): Likewise.
3928         (read_member_functions): Likewise.
3929         (read_struct_fields): Likewise.
3930         (read_baseclasses): Likewise.
3931         (read_args): Likewise.
3932         (_initialize_stabsread): Likewise.
3933         * stack.c (func_command): Likewise.
3934         * stap-probe.c (handle_stap_probe): Likewise.
3935         * symfile.c (addrs_section_sort): Likewise.
3936         (addr_info_make_relative): Likewise.
3937         (load_section_callback): Likewise.
3938         (add_symbol_file_command): Likewise.
3939         (init_filename_language_table): Likewise.
3940         * symtab.c (create_filename_seen_cache): Likewise.
3941         (sort_search_symbols_remove_dups): Likewise.
3942         (search_symbols): Likewise.
3943         * target.c (make_cleanup_restore_target_terminal): Likewise.
3944         * thread.c (new_thread): Likewise.
3945         (enable_thread_stack_temporaries): Likewise.
3946         (make_cleanup_restore_current_thread): Likewise.
3947         (thread_apply_all_command): Likewise.
3948         * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
3949         * top.c (gdb_readline_wrapper): Likewise.
3950         * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
3951         * tracepoint.c (trace_find_line_command): Likewise.
3952         (all_tracepoint_actions_and_cleanup): Likewise.
3953         (make_cleanup_restore_current_traceframe): Likewise.
3954         (get_uploaded_tp): Likewise.
3955         (get_uploaded_tsv): Likewise.
3956         * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
3957         (tui_alloc_win_info): Likewise.
3958         (tui_alloc_content): Likewise.
3959         (tui_add_content_elements): Likewise.
3960         * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
3961         (tui_set_disassem_content): Likewise.
3962         * ui-file.c (ui_file_new): Likewise.
3963         (stdio_file_new): Likewise.
3964         (tee_file_new): Likewise.
3965         * utils.c (make_cleanup_restore_integer): Likewise.
3966         (add_internal_problem_command): Likewise.
3967         * v850-tdep.c (v850_gdbarch_init): Likewise.
3968         * valops.c (find_oload_champ): Likewise.
3969         * value.c (allocate_value_lazy): Likewise.
3970         (record_latest_value): Likewise.
3971         (create_internalvar): Likewise.
3972         * varobj.c (install_variable): Likewise.
3973         (new_variable): Likewise.
3974         (new_root_variable): Likewise.
3975         (cppush): Likewise.
3976         (_initialize_varobj): Likewise.
3977         * windows-nat.c (windows_make_so): Likewise.
3978         * x86-nat.c (x86_add_process): Likewise.
3979         * xcoffread.c (arrange_linetable): Likewise.
3980         (allocate_include_entry): Likewise.
3981         (process_linenos): Likewise.
3982         (SYMBOL_DUP): Likewise.
3983         (xcoff_start_psymtab): Likewise.
3984         (xcoff_end_psymtab): Likewise.
3985         * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
3986         * xtensa-tdep.c (xtensa_register_type): Likewise.
3987         * gdbarch.c: Regenerate.
3988         * gdbarch.h: Regenerate.
3989
3990 2015-08-25  Don Breazeal  <donb@codesourcery.com>
3991
3992         * infrun.c (follow_exec): Re-order operations for
3993         handling follow-exec-mode "new".
3994         (handle_inferior_event_1): Assign ecs->event_thread
3995         to the current thread.
3996         * remote.c (get_remote_arch_state): Add an assertion.
3997
3998 2015-08-26  Pedro Alves  <palves@redhat.com>
3999
4000         * MAINTAINERS: Add Markus Metzger as btrace maintainer.
4001
4002 2015-08-25  Pedro Alves  <palves@redhat.com>
4003
4004         PR gdb/18804
4005         * defs.h (maybe_quit): Declare.
4006         (QUIT): Now calls maybe_quit.
4007         * event-loop.c (clear_async_signal_handler)
4008         (async_signal_handler_is_marked): New functions.
4009         * event-loop.h (async_signal_handler_is_marked)
4010         (clear_async_signal_handler): New declarations.
4011         * remote.c (remote_check_pending_interrupt): New function.
4012         (interrupt_query): Use make_cleanup_restore_target_terminal.  No
4013         longer check whether the target is async.  If waiting for a stop
4014         reply, and a Ctrl-C as been sent to the target, offer to
4015         disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
4016         Otherwise do not disconnect and throw a quit.
4017         (_initialize_remote): Install remote_check_pending_interrupt as
4018         to_check_pending_interrupt.
4019         * target.c (target_check_pending_interrupt): New function.
4020         * target.h (struct target_ops) <to_check_pending_interrupt>: New
4021         field.
4022         (target_check_pending_interrupt): New declaration.
4023         * utils.c (maybe_quit): New function.
4024         * target-delegates.c: Regenerate.
4025
4026 2015-08-25  Yao Qi  <yao.qi@linaro.org>
4027
4028         * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
4029         Rename local variable pid to tid, and get lwpid of lwp.  Update
4030         debug output.
4031
4032 2015-08-25  Pierre-Marie de Rodat  <derodat@adacore.com>
4033
4034         * ada-lang.c (ada_read_var_value): Add a var_block argument
4035         and pass it to default_read_var_value.
4036         * block.c (block_static_link): New accessor.
4037         * block.h (block_static_link): Declare it.
4038         * buildsym.c (finish_block_internal): Add a static_link
4039         argument.  If there is a static link, associate it to the new
4040         block.
4041         (finish_block): Add a static link argument and pass it to
4042         finish_block_internal.
4043         (end_symtab_get_static_block): Update calls to finish_block and
4044         to finish_block_internal.
4045         (end_symtab_with_blockvector): Update call to
4046         finish_block_internal.
4047         * buildsym.h: Forward-declare struct dynamic_prop.
4048         (struct context_stack): Add a static_link field.
4049         (finish_block): Add a static link argument.
4050         * c-exp.y: Remove an obsolete comment (evaluation of variables
4051         already start from the selected frame, and now they climb *up*
4052         the call stack) and propagate the block information to the
4053         produced expression.
4054         * d-exp.y: Likewise.
4055         * f-exp.y: Likewise.
4056         * go-exp.y: Likewise.
4057         * jv-exp.y: Likewise.
4058         * m2-exp.y: Likewise.
4059         * p-exp.y: Likewise.
4060         * coffread.c (coff_symtab_read): Update calls to finish_block.
4061         * dbxread.c (process_one_symbol): Likewise.
4062         * xcoffread.c (read_xcoff_symtab): Likewise.
4063         * compile/compile-c-symbols.c (convert_one_symbol): Promote the
4064         "sym" parameter to struct block_symbol, update its uses and pass
4065         its block to calls to read_var_value.
4066         (convert_symbol_sym): Update the calls to convert_one_symbol.
4067         * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
4068         call to read_var_value.
4069         * dwarf2loc.c (block_op_get_frame_base): New.
4070         (dwarf2_block_frame_base_locexpr_funcs): Implement the
4071         get_frame_base method.
4072         (dwarf2_block_frame_base_loclist_funcs): Likewise.
4073         (dwarf2locexpr_baton_eval): Add a frame argument and use it
4074         instead of the selected frame in order to evaluate the
4075         expression.
4076         (dwarf2_evaluate_property): Add a frame argument.  Update call
4077         to dwarf2_locexpr_baton_eval to provide a frame in available and
4078         to handle the absence of address stack.
4079         * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
4080         * dwarf2read.c (attr_to_dynamic_prop): Add a forward
4081         declaration.
4082         (read_func_scope): Record any available static link description.
4083         Update call to finish_block.
4084         (read_lexical_block_scope): Update call to finish_block.
4085         * findvar.c (follow_static_link): New.
4086         (get_hosting_frame): New.
4087         (default_read_var_value): Add a var_block argument.  Use
4088         get_hosting_frame to handle non-local references.
4089         (read_var_value): Add a var_block argument and pass it to the
4090         LA_READ_VAR_VALUE method.
4091         * gdbtypes.c (resolve_dynamic_range): Update calls to
4092         dwarf2_evaluate_property.
4093         (resolve_dynamic_type_internal): Likewise.
4094         * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
4095         read_var_value, passing it the block coming from symbol lookup.
4096         * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
4097         read_var_value (TODO).
4098         * infcmd.c (finish_command_continuation): Update call to
4099         read_var_value, passing it the block coming from symbol lookup.
4100         * infrun.c (insert_exception_resume_breakpoint): Likewise.
4101         * language.h (struct language_defn): Add a var_block argument to
4102         the LA_READ_VAR_VALUE method.
4103         * objfiles.c (struct static_link_htab_entry): New.
4104         (static_link_htab_entry_hash): New.
4105         (static_link_htab_entry_eq): New.
4106         (objfile_register_static_link): New.
4107         (objfile_lookup_static_link): New.
4108         (free_objfile): Free the STATIC_LINKS hashed map if needed.
4109         * objfiles.h: Include hashtab.h.
4110         (struct objfile): Add a static_links field.
4111         (objfile_register_static_link): New.
4112         (objfile_lookup_static_link): New.
4113         * printcmd.c (print_variable_and_value): Update call to
4114         read_var_value.
4115         * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
4116         * python/py-frame.c (frapy_read_var): Update call to
4117         read_var_value, passing it the block coming from symbol lookup.
4118         * python/py-framefilter.c (extract_sym): Add a sym_block
4119         parameter and set the pointed value to NULL (TODO).
4120         (enumerate_args): Update call to extract_sym.
4121         (enumerate_locals): Update calls to extract_sym and to
4122         read_var_value.
4123         * python/py-symbol.c (sympy_value): Update call to
4124         read_var_value (TODO).
4125         * stack.c (read_frame_local): Update call to read_var_value.
4126         (read_frame_arg): Likewise.
4127         (return_command): Likewise.
4128         * symtab.h (struct symbol_block_ops): Add a get_frame_base
4129         method.
4130         (struct symbol): Add a block field.
4131         (SYMBOL_BLOCK): New accessor.
4132         * valops.c (value_of_variable): Remove frame/block handling and
4133         pass the block argument to read_var_value, which does this job
4134         now.
4135         (value_struct_elt_for_reference): Update calls to
4136         read_var_value.
4137         (value_of_this): Pass the block found to read_var_value.
4138         * value.h (read_var_value): Add a var_block argument.
4139         (default_read_var_value): Likewise.
4140
4141 2015-08-25  Yao Qi  <yao.qi@linaro.org>
4142
4143         * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
4144         * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
4145         * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
4146
4147 2015-08-25  Yao Qi  <yao.qi@linaro.org>
4148
4149         * Makefile.in (aarch64-liunx.o): New rule.
4150         (HFILES_NO_SRCDIR): Add aarch64-linux.h.
4151         * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
4152         * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
4153         * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
4154         extern.
4155         (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
4156         * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
4157         * nat/aarch64-linux.c: New file.
4158         * nat/aarch64-linux.h: New file.
4159
4160 2015-08-25  Yao Qi  <yao.qi@linaro.org>
4161
4162         * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
4163         lwp_arch_private_info and ptid_of_lwp.
4164
4165 2015-08-25  Yao Qi  <yao.qi@linaro.org>
4166
4167         * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
4168         Move it to nat/aarch64-linux-hw-point.c.
4169         (debug_reg_change_callback): Likewise.
4170         (aarch64_notify_debug_reg_change): :Likewise.
4171         * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
4172         (aarch64_dr_update_callback_param): New.
4173         (debug_reg_change_callback): New function.
4174         (aarch64_notify_debug_reg_change): Likewise.
4175         * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
4176         Remove the declaration.
4177
4178 2015-08-25  Yao Qi  <yao.qi@linaro.org>
4179
4180         * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
4181         Call current_lwp_ptid.
4182
4183 2015-08-25  Yao Qi  <yao.qi@linaro.org>
4184
4185         * aarch64-linux-nat.c (debug_reg_change_callback): Use
4186         debug_printf.
4187
4188 2015-08-25  Yao Qi  <yao.qi@linaro.org>
4189
4190         * aarch64-linux-nat.c (debug_reg_change_callback): Call
4191         ptid_get_pid rather than ptid_get_lwp.
4192
4193 2015-08-24  Pedro Alves  <palves@redhat.com>
4194
4195         * NEWS (New commands): Mention set/show remote
4196         multiprocess-extensions-packet.
4197         * remote.c (remote_query_supported): Only tell the server to use
4198         the multiprocess extensions if the user hasn't force-disabled them
4199         with "set remote multiprocess-extensions-packet off".
4200
4201 2015-08-24  Pedro Alves  <palves@redhat.com>
4202
4203         * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
4204         1029a8112290f6eee9d7878a391c49db42c999bd.
4205         * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
4206         Regenerate.
4207         * gnulib/import/Makefile.am: Update.
4208         * gnulib/import/Makefile.in: Update.
4209         * gnulib/import/alloca.in.h: Update.
4210         * gnulib/import/basename-lgpl.c: Update.
4211         * gnulib/import/canonicalize-lgpl.c: Update.
4212         * gnulib/import/config.charset: Update.
4213         * gnulib/import/dirent.in.h: Update.
4214         * gnulib/import/dirfd.c: Update.
4215         * gnulib/import/dirname-lgpl.c: Update.
4216         * gnulib/import/dirname.h: Update.
4217         * gnulib/import/dosname.h: Update.
4218         * gnulib/import/errno.in.h: Update.
4219         * gnulib/import/extra/snippet/arg-nonnull.h: Update.
4220         * gnulib/import/extra/snippet/c++defs.h: Update.
4221         * gnulib/import/extra/snippet/warn-on-use.h: Update.
4222         * gnulib/import/extra/update-copyright: Update.
4223         * gnulib/import/float+.h: Update.
4224         * gnulib/import/float.c: Update.
4225         * gnulib/import/float.in.h: Update.
4226         * gnulib/import/fnmatch.c: Update.
4227         * gnulib/import/fnmatch.in.h: Update.
4228         * gnulib/import/fnmatch_loop.c: Update.
4229         * gnulib/import/fpucw.h: Update.
4230         * gnulib/import/frexp.c: Update.
4231         * gnulib/import/frexpl.c: Update.
4232         * gnulib/import/gettimeofday.c: Update.
4233         * gnulib/import/inttypes.in.h: Update.
4234         * gnulib/import/isnan.c: Update.
4235         * gnulib/import/isnand-nolibm.h: Update.
4236         * gnulib/import/isnand.c: Update.
4237         * gnulib/import/isnanl-nolibm.h: Update.
4238         * gnulib/import/isnanl.c: Update.
4239         * gnulib/import/itold.c: Update.
4240         * gnulib/import/localcharset.c: Update.
4241         * gnulib/import/localcharset.h: Update.
4242         * gnulib/import/lstat.c: Update.
4243         * gnulib/import/m4/00gnulib.m4: Update.
4244         * gnulib/import/m4/absolute-header.m4: Update.
4245         * gnulib/import/m4/alloca.m4: Update.
4246         * gnulib/import/m4/canonicalize.m4: Update.
4247         * gnulib/import/m4/codeset.m4: Update.
4248         * gnulib/import/m4/configmake.m4: Update.
4249         * gnulib/import/m4/dirent_h.m4: Update.
4250         * gnulib/import/m4/dirfd.m4: Update.
4251         * gnulib/import/m4/dirname.m4: Update.
4252         * gnulib/import/m4/double-slash-root.m4: Update.
4253         * gnulib/import/m4/eealloc.m4: Update.
4254         * gnulib/import/m4/errno_h.m4: Update.
4255         * gnulib/import/m4/exponentd.m4: Update.
4256         * gnulib/import/m4/exponentl.m4: Update.
4257         * gnulib/import/m4/extensions.m4: Update.
4258         * gnulib/import/m4/extern-inline.m4: Update.
4259         * gnulib/import/m4/fcntl-o.m4: Update.
4260         * gnulib/import/m4/float_h.m4: Update.
4261         * gnulib/import/m4/fnmatch.m4: Update.
4262         * gnulib/import/m4/fpieee.m4: Update.
4263         * gnulib/import/m4/frexp.m4: Update.
4264         * gnulib/import/m4/frexpl.m4: Update.
4265         * gnulib/import/m4/gettimeofday.m4: Update.
4266         * gnulib/import/m4/glibc21.m4: Update.
4267         * gnulib/import/m4/gnulib-cache.m4: Update.
4268         * gnulib/import/m4/gnulib-common.m4: Update.
4269         * gnulib/import/m4/gnulib-comp.m4: Update.
4270         * gnulib/import/m4/gnulib-tool.m4: Update.
4271         * gnulib/import/m4/include_next.m4: Update.
4272         * gnulib/import/m4/inttypes-pri.m4: Update.
4273         * gnulib/import/m4/inttypes.m4: Update.
4274         * gnulib/import/m4/isnand.m4: Update.
4275         * gnulib/import/m4/isnanl.m4: Update.
4276         * gnulib/import/m4/largefile.m4: Update.
4277         * gnulib/import/m4/localcharset.m4: Update.
4278         * gnulib/import/m4/locale-fr.m4: Update.
4279         * gnulib/import/m4/locale-ja.m4: Update.
4280         * gnulib/import/m4/locale-zh.m4: Update.
4281         * gnulib/import/m4/longlong.m4: Update.
4282         * gnulib/import/m4/lstat.m4: Update.
4283         * gnulib/import/m4/malloc.m4: Update.
4284         * gnulib/import/m4/malloca.m4: Update.
4285         * gnulib/import/m4/math_h.m4: Update.
4286         * gnulib/import/m4/mbrtowc.m4: Update.
4287         * gnulib/import/m4/mbsinit.m4: Update.
4288         * gnulib/import/m4/mbsrtowcs.m4: Update.
4289         * gnulib/import/m4/mbstate_t.m4: Update.
4290         * gnulib/import/m4/memchr.m4: Update.
4291         * gnulib/import/m4/memmem.m4: Update.
4292         * gnulib/import/m4/mmap-anon.m4: Update.
4293         * gnulib/import/m4/multiarch.m4: Update.
4294         * gnulib/import/m4/nocrash.m4: Update.
4295         * gnulib/import/m4/off_t.m4: Update.
4296         * gnulib/import/m4/pathmax.m4: Update.
4297         * gnulib/import/m4/readlink.m4: Update.
4298         * gnulib/import/m4/rename.m4: Update.
4299         * gnulib/import/m4/rmdir.m4: Update.
4300         * gnulib/import/m4/ssize_t.m4: Update.
4301         * gnulib/import/m4/stat.m4: Update.
4302         * gnulib/import/m4/stdbool.m4: Update.
4303         * gnulib/import/m4/stddef_h.m4: Update.
4304         * gnulib/import/m4/stdint.m4: Update.
4305         * gnulib/import/m4/stdio_h.m4: Update.
4306         * gnulib/import/m4/stdlib_h.m4: Update.
4307         * gnulib/import/m4/string_h.m4: Update.
4308         * gnulib/import/m4/strstr.m4: Update.
4309         * gnulib/import/m4/strtok_r.m4: Update.
4310         * gnulib/import/m4/sys_socket_h.m4: Update.
4311         * gnulib/import/m4/sys_stat_h.m4: Update.
4312         * gnulib/import/m4/sys_time_h.m4: Update.
4313         * gnulib/import/m4/sys_types_h.m4: Update.
4314         * gnulib/import/m4/time_h.m4: Update.
4315         * gnulib/import/m4/unistd_h.m4: Update.
4316         * gnulib/import/m4/warn-on-use.m4: Update.
4317         * gnulib/import/m4/wchar_h.m4: Update.
4318         * gnulib/import/m4/wchar_t.m4: Update.
4319         * gnulib/import/m4/wctype_h.m4: Update.
4320         * gnulib/import/m4/wint_t.m4: Update.
4321         * gnulib/import/malloc.c: Update.
4322         * gnulib/import/malloca.c: Update.
4323         * gnulib/import/malloca.h: Update.
4324         * gnulib/import/math.in.h: Update.
4325         * gnulib/import/mbrtowc.c: Update.
4326         * gnulib/import/mbsinit.c: Update.
4327         * gnulib/import/mbsrtowcs-impl.h: Update.
4328         * gnulib/import/mbsrtowcs-state.c: Update.
4329         * gnulib/import/mbsrtowcs.c: Update.
4330         * gnulib/import/memchr.c: Update.
4331         * gnulib/import/memmem.c: Update.
4332         * gnulib/import/pathmax.h: Update.
4333         * gnulib/import/readlink.c: Update.
4334         * gnulib/import/ref-add.sin: Update.
4335         * gnulib/import/ref-del.sin: Update.
4336         * gnulib/import/rename.c: Update.
4337         * gnulib/import/rmdir.c: Update.
4338         * gnulib/import/same-inode.h: Update.
4339         * gnulib/import/stat.c: Update.
4340         * gnulib/import/stdbool.in.h: Update.
4341         * gnulib/import/stddef.in.h: Update.
4342         * gnulib/import/stdint.in.h: Update.
4343         * gnulib/import/stdio.c: Update.
4344         * gnulib/import/stdio.in.h: Update.
4345         * gnulib/import/stdlib.in.h: Update.
4346         * gnulib/import/str-two-way.h: Update.
4347         * gnulib/import/streq.h: Update.
4348         * gnulib/import/string.in.h: Update.
4349         * gnulib/import/stripslash.c: Update.
4350         * gnulib/import/strnlen1.c: Update.
4351         * gnulib/import/strnlen1.h: Update.
4352         * gnulib/import/strstr.c: Update.
4353         * gnulib/import/strtok_r.c: Update.
4354         * gnulib/import/sys_stat.in.h: Update.
4355         * gnulib/import/sys_time.in.h: Update.
4356         * gnulib/import/sys_types.in.h: Update.
4357         * gnulib/import/time.in.h: Update.
4358         * gnulib/import/unistd.in.h: Update.
4359         * gnulib/import/verify.h: Update.
4360         * gnulib/import/wchar.in.h: Update.
4361         * gnulib/import/wctype.in.h: Update.
4362         * gnulib/import/gettimeofday.c: New file.
4363         * gnulib/import/m4/absolute-header.m4: New file.
4364         * gnulib/import/m4/gettimeofday.m4: New file.
4365         * gnulib/import/m4/sys_socket_h.m4: New file.
4366         * gnulib/import/m4/sys_time_h.m4: New file.
4367         * gnulib/import/stdio.c: Delete file.
4368         * gnulib/import/sys_time.in.h: New file.
4369
4370 2015-08-24  Pedro Alves  <palves@redhat.com>
4371
4372         * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
4373         * common/gdb_sys_time.h: New file.
4374         * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
4375         * gdb_select.h: Likewise.
4376         * gdb_usleep.c: Likewise.
4377         * maint.c: Likewise.
4378         * mi/mi-main.c: Likewise.
4379         * mi/mi-parse.h: Likewise.
4380         * remote-fileio.c: Likewise.
4381         * remote-m32r-sdi.c: Likewise.
4382         * remote.c: Likewise.
4383         * ser-base.c: Likewise.
4384         * ser-pipe.c: Likewise.
4385         * ser-tcp.c: Likewise.
4386         * ser-unix.c: Likewise.
4387         * symfile.c: Likewise.
4388         * symfile.c: Likewise.  Rename OSIZE to SIZE throughout.
4389         * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
4390         * utils.c: Likewise.
4391
4392 2015-08-24  Pedro Alves  <palves@redhat.com>
4393
4394         * NEWS: Mention removed support for the various ROM monitors.
4395         * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
4396         ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
4397         * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
4398         gdb_target_obs.
4399         (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
4400         gdb_target_obs.
4401         (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
4402         dsrec.o from gdb_target_obs.
4403         (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
4404         from gdb_target_obs.
4405         (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
4406         gdb_target_obs.
4407         (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
4408         dink32-rom.o from gdb_target_obs.
4409         (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
4410         (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
4411         * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
4412         monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
4413
4414 2015-08-21  Pedro Alves  <palves@redhat.com>
4415
4416         * frame.c (null_frame_id): Explicitly zero-initialize.
4417
4418 2015-08-21  Tom Tromey  <tromey@redhat.com>
4419
4420         * dwarf2read.c (struct dwarf2_section_info): Rename field
4421         'asection' to 'section'.
4422         (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
4423         (dwarf2_locate_sections, dwarf2_locate_sections)
4424         (locate_dwz_sections, locate_v1_virtual_dwo_sections)
4425         (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
4426         (dwarf2_locate_v2_dwp_sections): Adjust.
4427
4428 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
4429
4430         * top.h (gdb_in_secondary_prompt_p): Declare.
4431         * top.c (gdb_secondary_prompt_depth): Define.
4432         (gdb_in_secondary_prompt_p): Define.
4433         (gdb_readline_wrapper_cleanup): Decrement
4434         gdb_secondary_prompt_depth.
4435         (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
4436         * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
4437         are in a secondary prompt.
4438
4439 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
4440
4441         * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
4442         emit the newline.
4443
4444 2015-08-21  Gary Benson  <gbenson@redhat.com>
4445
4446         * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
4447
4448 2015-08-21  Gary Benson  <gbenson@redhat.com>
4449
4450         * target.h (struct target_ops) <to_fileio_open>: New argument
4451         warn_if_slow.  Update comment.  All implementations updated.
4452         (target_fileio_open_warn_if_slow): New declaration.
4453         * target.c (target_fileio_open): Renamed as...
4454         (target_fileio_open_1): ...this.  New argument warn_if_slow.
4455         Pass warn_if_slow to implementation.  Update debug printing.
4456         (target_fileio_open): New function.
4457         (target_fileio_open_warn_if_slow): Likewise.
4458         * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
4459         target_fileio_open_warn_if_slow.
4460
4461 2015-08-21  Gary Benson  <gbenson@redhat.com>
4462
4463         * nat/linux-namespaces.c (linux_mntns_access_fs):
4464         Do not overwrite old_chain.
4465
4466 2015-08-20  Max Filippov  <jcmvbkbc@gmail.com>
4467
4468         * arch/xtensa.h: New file.
4469         * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
4470         (ps_get_thread_area): New function.
4471         * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
4472         set_gdbarch_fetch_tls_load_module_address to enable TLS support.
4473         * xtensa-tdep.c (osabi.h): New #include.
4474         (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
4475         xtensa-specific hooks.
4476         * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
4477         member and move the structure to arch/xtensa.h.
4478
4479 2015-08-21  Pedro Alves  <palves@redhat.com>
4480
4481         * remote.c (struct readahead_cache): New.
4482         (struct remote_state) <readahead_cache>: New field.
4483         (remote_open_1): Invalidate the cache.
4484         (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
4485         functions.
4486         (remote_hostio_pwrite): Invalidate the readahead cache.
4487         (remote_hostio_pread): Rename to ...
4488         (remote_hostio_pread_vFile): ... this.
4489         (remote_hostio_pread_from_cache): New function.
4490         (remote_hostio_pread): Reimplement.
4491         (remote_hostio_close): Invalidate the readahead cache.
4492
4493 2015-08-21  Marcin Cieślak <saper@saper.info>  (tiny patch)
4494
4495         PR build/18843
4496         * procfs.c: Include "filestuff.h".
4497
4498 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
4499
4500         * tui/tui-data.h (tui_command_info): Remove fields cur_line and
4501         curch.
4502         * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
4503         cur_line or curch, instead call wmove().
4504         (init_win_info) [CMD_WIN]: Likewise.
4505         * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
4506         instead call getcury().
4507         (tui_redisplay_readline): Don't set cur_line or curch.
4508         (tui_mld_erase_entire_line): Don't read cur_line, instead call
4509         getcury().
4510         (tui_cont_sig): Remove call to wmove.
4511         (tui_getc): Don't read cur_line or curch, instead call getcury()
4512         or getyx().  Don't set curch.
4513         * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
4514         set cur_line or curch.  Always move cursor to (0,0).
4515
4516 2015-08-20  Pedro Alves  <palves@redhat.com>
4517
4518         * infrun.c (print_target_wait_results): Make extern.
4519         * infrun.h (print_target_wait_results): Declare.
4520         * remote.c (set_stop_requested_callback): Delete.
4521         (process_initial_stop_replies): New function.
4522         (remote_start_remote): Use it.
4523         (stop_reply_queue_length): New function.
4524
4525 2015-08-20  Pedro Alves  <palves@redhat.com>
4526
4527         * dwarf2read.c (process_full_comp_unit): To tell whether
4528         start_subfile managed to deduce a language, test for
4529         language_unknown instead of language_c.
4530
4531 2015-08-20  Pierre-Marie de Rodat  <derodat@adacore.com>
4532
4533         * ada-lex.l: Reset the start condition to INITIAL in the rule that
4534         matches attributes.
4535
4536 2015-08-19  Kevin Buettner  <kevinb@redhat.com>
4537
4538         * dwarf2read.c (dwarf2_string_attr): New function.
4539         (lookup_dwo_unit, process_psymtab_comp_unit_reader)
4540         (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
4541         (read_call_site_scope, namespace_name, guess_full_die_structure_name)
4542         (anonymous_struct_prefix, prepare_one_comp_unit): Use
4543         dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
4544
4545 2015-08-18  Doug Evans  <dje@google.com>
4546             Adrian Sendroiu <adrian.sendroiu@freescale.com>
4547
4548         PR mi/18833
4549         * cli/cli-logging.c (pop_output_files): Don't restore redirection
4550         if MI-like.
4551         * mi/mi-out.c: #include "vec.h".
4552         (ui_filep): New type.
4553         (DEV_VEC_P (ui_filep)): New type.
4554         (struct ui_out_data) <buffer, original_buffer>: Delete.
4555         (struct ui_out_data) <streams>: New member.
4556         (mi_ui_out_impl): Add data_destroy field.
4557         (mi_field_string, mi_field_fmt): Update.
4558         (mi_flush, mi_redirect, field_separator): Update.
4559         (mi_open, mi_close): Update.
4560         (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
4561         (mi_out_data_ctor, mi_out_data_dtor): New functions.
4562         (mi_out_new): Call mi_out_data_ctor.
4563
4564 2015-08-18  Sandra Loosemore  <sandra@codesourcery.com>
4565
4566         * remote.c (strprefix): New.
4567         (remote_parse_stop_reply): Use strprefix instead of strncmp
4568         to ensure exact match of keyword.
4569
4570 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
4571
4572         * gdb_bfd.c (debug_bfd_cache): New variable.
4573         (show_bfd_cache_debug): New function.
4574         (gdb_bfd_open): Add debug logging.
4575         (gdb_bfd_ref): Likewise.
4576         (gdb_bfd_unref): Likewise.
4577         (_initialize_gdb_bfd): Add new set/show command.
4578         * NEWS: Mention new command.
4579
4580 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
4581
4582         * gdb_bfd.c (bfd_sharing): New variable.
4583         (show_bfd_sharing): New function.
4584         (gdb_bfd_open): Check bfd_sharing variable.
4585         (_initialize_gdb_bfd): Add new set/show command.
4586         * NEWS: Mention new command.
4587
4588 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
4589
4590         * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
4591         field.
4592         (struct gdb_bfd_cache_search): Likewise.
4593         (eq_bfd): Compare the size, inode, and device id fields.
4594         (gdb_bfd_open): Initialise the size, inode, and device id fields.
4595         (gdb_bfd_ref): Likewise.
4596         (gdb_bfd_unref): Likewise.
4597
4598 2015-08-18  Pedro Alves  <palves@redhat.com>
4599
4600         * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
4601         target implements to_always_non_stop_p, call it.
4602         * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
4603         (x86_linux_create_target): Install it as to_always_non_stop_p
4604         method.
4605
4606 2015-08-17  Doug Evans  <dje@google.com>
4607
4608         * ui-out.c (default_ui_out_impl): Add comment.
4609
4610 2015-08-17  Iain Buclaw  <ibuclaw@gdcproject.org>
4611
4612         * d-exp.y (type_aggregate_p): New function.
4613         (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
4614         (classify_inner_name): Likewise.
4615         * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
4616
4617 2015-08-15  Doug Evans  <xdje42@gmail.com>
4618
4619         * psymtab.c (add_psymbol_to_bcache): Remove "val" arg.  All callers
4620         updated.
4621         (add_psymbol_to_list): Ditto.
4622
4623 2015-08-15  Doug Evans  <xdje42@gmail.com>
4624
4625         * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab.  All callers
4626         updated.  Call end_psymtab_common.
4627         * dwarf2read.c (process_psymtab_comp_unit_reader): Call
4628         end_psymtab_common.
4629         (build_type_psymtabs_reader): Ditto.
4630         * psympriv.h (sort_pst_symbols): Delete.
4631         (end_psymtab_common): Declare.
4632         * psymtab.c (sort_pst_symbols): Make static.
4633         (end_psymtab_common): New function.
4634         * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
4635
4636 2015-08-15  Doug Evans  <xdje42@gmail.com>
4637
4638         * defs.h (LANGUAGE_BITS): Define.
4639         * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
4640         (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
4641         * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
4642         (minimal_symbol_type): Add nr_minsym_types.
4643         (MINSYM_TYPE_BITS): Define.
4644         (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
4645         (domain_enum_tag): Add NR_DOMAINS.
4646         (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
4647         (SYMBOL_ACLASS_BITS): Define from 6 to 5.
4648
4649 2015-08-15  Doug Evans  <xdje42@gmail.com>
4650
4651         * objfiles.h: Whitespace cleanup.
4652         * psympriv.h: Whitespace cleanup.
4653         * psymtab.c: Whitespace/coding convention cleanup.
4654
4655 2015-08-15  Patrick Palka  <patrick@parcs.ath.cx>
4656
4657         * inferior.c (detach_inferior_command): Don't call
4658         any_thread_of_process when pid is 0.
4659         (kill_inferior_command): Likewise.
4660
4661 2015-08-14  Doug Evans  <xdje42@gmail.com>
4662
4663         PR gdb/11833
4664         * NEWS: Document new /s modifier for the disassemble command.
4665         * cli/cli-cmds.c (disassemble_command): Add support for /s.
4666         (_initialize_cli_cmds): Update online docs of disassemble command.
4667         * disasm.c: #include "source.h".
4668         (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
4669         All uses updated.
4670         (dis_line_entry): New struct.
4671         (hash_dis_line_entry, eq_dis_line_entry): New functions.
4672         (allocate_dis_line_table): New functions.
4673         (maybe_add_dis_line_entry, line_has_code_p): New functions.
4674         (dump_insns): New arg end_pc.  All callers updated.
4675         (do_mixed_source_and_assembly_deprecated): Renamed from
4676         do_mixed_source_and_assembly.  All callers updated.
4677         (do_mixed_source_and_assembly): New function.
4678         (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
4679         * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
4680         DISASSEMBLY_SOURCE.  All uses updated.
4681         (DISASSEMBLY_SOURCE): New macro.
4682         * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
4683
4684 2015-08-14  Keith Seitz  <keiths@redhat.com>
4685
4686         * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
4687         `typename' to `type_name' to avoid C++ reserved word.
4688
4689 2015-08-14  Keith Seitz  <keiths@redhat.com>
4690
4691         * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
4692         (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
4693         silence ARI errors.
4694
4695 2015-08-14  Iain Buclaw  <ibuclaw@gdcproject.org>
4696
4697         * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
4698         xstrprintf instead of malloc and sprintf.
4699         (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
4700         (lex_one_token): Likewise.
4701
4702 2015-08-14  Matthew Fortune  <matthew.fortune@imgtec.com>
4703
4704         * solib-svr4.c (read_program_header): Add base_addr argument to
4705         report the runtime address of the segment.
4706         (find_program_interpreter): Update read_program_header call to pass
4707         a NULL pointer for the new argument.
4708         (scan_dyntag): Add ptr_addr argument to report the runtime address
4709         of the tag payload.
4710         (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
4711         read_program_header to get the base address of the dynamic segment.
4712         (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
4713         read_program_header.
4714         (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
4715
4716 2015-08-14  Matthew Fortune  <matthew.fortune@imgtec.com>
4717
4718         * MAINTAINERS (Write After Approval): Add Matthew Fortune.
4719
4720 2015-08-13  Iain Buclaw  <ibuclaw@gdcproject.org>
4721
4722         * d-exp.y (%union): Add voidval.
4723         (%token): Add UNKNOWN_NAME as a token to represent an unclassified
4724         name in the lexing stage.
4725         (PostfixExpression): Move symbol completion handling in grammar here
4726         from PrimaryExpression.
4727         (PrimaryExpression): Move routines to handle resolving identifier
4728         tokens in the grammar here from push_expression_name.
4729         (IdentifierExp): Remove the handling of alternating '.' and identifier
4730         tokens.
4731         (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
4732         (BasicType): Remove C-style typename rules.
4733         (d_type_from_name, d_module_from_name, push_variable)
4734         (push_fieldnames, push_type_name, push_module_name)
4735         (push_expression_name): Remove.
4736         (lex_one_token): Rename from yylex.  Replace pstate with par_state.
4737         (token_and_value): New type.
4738         (token_fifo, popping, name_obstack): New globals.
4739         (classify_name): New function.
4740         (classify_inner_name): Likewise.
4741         (yylex): Likewise.
4742         (d_parse): Initialize token_fifo, popping and name_obstack.
4743
4744 2015-08-13  Iain Buclaw  <ibuclaw@gdcproject.org>
4745
4746         * Makefile.in (SFILES): Add d-namespace.c.
4747         (COMMON_OBS): Add d-namespace.o.
4748         * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
4749         la_lookup_symbol_nonlocal callback function pointer.
4750         * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
4751         (d_lookup_nested_symbol): New declaration.
4752         * d-namespace.c: New file.
4753
4754 2015-08-13  Pedro Alves  <palves@redhat.com>
4755
4756         * python/py-unwind.c (pyuw_sniffer): Install the invalidate
4757         cleanup after the decref cleanup, not before.
4758
4759 2015-08-13  Pierre-Marie de Rodat  <derodat@adacore.com>
4760
4761         * ada-lang.c: Include namespace.h
4762         (aux_add_nonlocal_symbols): Fix a function name in comment.
4763         (ada_add_block_renamings): New.
4764         (add_nonlocal_symbols): Add global renamings handling.
4765         (ada_lookup_symbol_list_worker): Move the symbol lookup part
4766         to...
4767         (ada_add_all_symbols): ... this new function.
4768         (ada_add_block_symbols): Try to match the input name against the
4769         "using directives list", perform a recursive symbol lookup on
4770         the matched declarations.
4771         * block.h (struct block): Move the_namespace to top-level as
4772         namespace_info. Remove the language_specific field.
4773         (BLOCK_NAMESPACE): Update access to the namespace_info field.
4774         * buildsym.h (using_directives): Rename into...
4775         (local_using_directives): ... this.
4776         (global_using_directives): New.
4777         (struct context_stack): Rename the using_directives field into
4778         local_using_directives.
4779         * buildsym.c (finish_block_internal): Deal with the proper
4780         using directives repository (local or global).
4781         (prepare_for_building): Reset local_using_directives. Assert
4782         that there is no pending global using directive.
4783         (reset_symtab_globals): Reset global_using_directives and
4784         local_using_directives.
4785         (end_symtab_get_static_block): Don't ignore symtabs that have
4786         only using directives.
4787         (push_context): Update references to local_using_directives.
4788         (buildsym_init): Do not reset using_directives.
4789         * cp-support.c: Include namespace.h.
4790         * cp-support.h (struct using_direct): Move to namespace.h.
4791         (cp_add_using_directives): Move to namespace.h.
4792         * cp-namespace.c: Include namespace.h
4793         (cp_add_using_directive): Move to namespace.c, rename it to
4794         add_using_directive, add a "using_directives" argument and use
4795         it as the pending using directives repository.  All callers
4796         updated.
4797         * dwarf2read.c (using_directives): New.
4798         (read_import_statement): Call using_directives.
4799         (read_func_scope): Update references to local_using_directives.
4800         (read_lexical_block_scope): Likewise.
4801         (read_namespace): Update the heading comment, call
4802         using_directives.
4803         * namespace.h: New file.
4804         * namespace.c: New file.
4805         * Makefile.in (SFILES): Add namespace.c.
4806         (COMMON_OBS): Add namespace.o
4807
4808 2015-08-12  Joel Brobecker  <brobecker@adacore.com>
4809
4810         * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
4811         compute RETADDR.
4812
4813 2015-08-12  Keith Seitz  <keiths@redhat.com>
4814
4815         * break-catch-throw.c (re_set_exception_catchpoint) Rename
4816         reserved C++ keyword "explicit" to "explicit_loc".
4817         * breakpoint.c (create_overlay_event_breakpoint)
4818         (create_longjmp_master_breakpoint)
4819         (create_std_terminate_master_breakpoint)
4820         (create_exception_master_breakpoint, update_static_tracepoint):
4821         Rename reserved C++ keyword "explicit" to "explicit_loc".
4822         * completer.c (collect_explicit_location_matches)
4823         (explicit_location_completer): Rename reserved C++ keyword
4824         "explicit" to "explicit_loc".
4825         * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
4826         (canonicalize_linespec, create_sals_line_offset)
4827         (convert_linespec_to_sals, convert_explicit_location_to_sals)
4828         (event_location_to_sals, decode_objc): Rename reserved C++ keyword
4829         "explicit" to "explicit_loc".
4830         * location.c (struct event_location) <explicit>: Rename to
4831         "explicit_loc".
4832         (initialize_explicit_location, new_explicit_location)
4833         (explicit_location_to_string_internal, explicit_location_to_linespec):
4834         Rename reserved C++ keyword "explicit" to "explicit_loc".
4835         * location.h (explicit_location_to_string)
4836         (explicit_location_to_linespec, initialize_explicit_location)
4837         (new_explicit_location): Rename reserved C++ keyword "explicit"
4838         to "explicit_loc".
4839         * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
4840         keyword "explicit" to "explicit_loc".
4841
4842 2015-08-12  Keith Seitz  <keiths@redhat.com>
4843
4844         * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
4845         and only call decode_line_1 when it is non-NULL.
4846
4847 2015-08-12  Luis Machado  <lgustavo@codesourcery.com>
4848
4849         * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
4850         location address is not meaningful.
4851         (breakpoint_address_is_meaningful): Update comment.
4852
4853 2015-08-11  Keith Seitz  <keiths@redhat.com>
4854
4855         * NEWS: Mention explicit locations.
4856         * breakpoint.c [LOCATION_HELP_STRING]: New macro.
4857         [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
4858         (_initialize_breakpoint): Update documentation for
4859         "clear", "break", "trace", "strace", "ftrace", and "dprintf".
4860
4861 2015-08-11  Keith Seitz  <keiths@redhat.com>
4862
4863         * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
4864         explicit locations, options "--source", "--function",
4865         "--label", and "--line".
4866
4867 2015-08-11  Keith Seitz  <keiths@redhat.com>
4868
4869         * completer.c: Include location.h.
4870         (enum match_type): New enum.
4871         (location_completer): Rename to ...
4872         (linespec_completer): ... this.
4873         (collect_explicit_location_matches, backup_text_ptr)
4874         (explicit_location_completer): New functions.
4875         (location_completer): "New" function; handle linespec
4876         and explicit location completions.
4877         (complete_line_internal): Remove all location completer-specific
4878         handling.
4879         * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
4880         (find_toplevel_char): Export.
4881         (linespec_parse_line_offset): Export.
4882         Issue error if STRING is not numerical.
4883         (gdb_get_linespec_parser_quote_characters): New function.
4884         * linespec.h (linespec_parse_line_offset): Declare.
4885         (get_gdb_linespec_parser_quote_characters): Declare.
4886         (is_ada_operator): Declare.
4887         (find_toplevel_char): Declare.
4888         (linespec_lexer_lex_keyword): Declare.
4889         * location.c (explicit_to_event_location): New function.
4890         (explicit_location_lex_one): New function.
4891         (string_to_explicit_location): New function.
4892         (string_to_event_location): Handle explicit locations.
4893         * location.h (explicit_to_event_location): Declare.
4894         (string_to_explicit_location): Declare.
4895
4896 2015-08-11  Keith Seitz  <keiths@redhat.com>
4897
4898         * break-catch-throw.c (re_set_exception_catchpoint): Convert
4899         linespec into explicit location.
4900         * breakpoint.c (create_overlay_breakpoint)
4901         (create_longjmp_master_breakpoint)
4902         (create_std_terminate_master_breakpoint)
4903         (create_exception_master_breakpoint): Convert linespec into explicit
4904         location.
4905         (update_static_tracepoint): Convert linespec into explicit location.
4906         * linespec.c (enum offset_relative_sign, struct line_offset): Move
4907         location.h.
4908         (struct linespec) <expression, expr_pc, source_filename>
4909         <function_name, label_name, line_offset>: Replace with ...
4910         <explicit>: ... this.
4911         <is_linespec>: New member.
4912         (PARSER_EXPLICIT): New accessor macro.
4913         (undefined_label_error): New function.
4914         (source_file_not_found_error): New function.
4915         (linespec_parse_basic): The parser result is now an explicit location.
4916         Use PARSER_EXPLICIT to access it.
4917         Use undefined_label_error.
4918         (canonicalize_linespec): Convert canonical linespec into explicit
4919         location.
4920         Move string representation of location to explicit_location_to_linespec
4921         and use it and explicit_location_to_string to save string
4922         representations of the canonical location.
4923         (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
4924         explicit location.  Update all references.
4925         (convert_explicit_location_to_sals): New function.
4926         (parse_linespec): Use PARSER_EXPLICIT to access the parser
4927         result's explicit location.
4928         (linespec_state_constructor): Initialize is_linespec.
4929         Use PARSER_EXPLICIT.
4930         (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
4931         result.
4932         (event_location_to_sals): For linespec locations, set is_linespec.
4933         Handle explicit locations.
4934         (decode_objc): 'ls' contains an explicit location now. Update all
4935         references.
4936         (symtabs_from_filename): Use source_file_not_found_error.
4937         * location.c (struct event_location.u) <explicit>: New member.
4938         (initialize_explicit_location): New function.
4939         (initialize_event_location): Initialize explicit locations.
4940         (new_explicit_location, get_explicit_location)
4941         (get_explicit_location_const): New functions.
4942         (explicit_to_string_internal): New function; most of contents moved
4943         from canonicalize_linespec.
4944         (explicit_location_to_string): New function.
4945         (explicit_location_to_linespec): New function.
4946         (copy_event_location, delete_event_location)
4947         (event_location_to_string_const, event_location_empty_p): Handle
4948         explicit locations.
4949         * location.h (enum offset_relative_sign, struct line_offset): Move
4950         here from linespec.h.
4951         (enum event_location_type): Add EXPLICIT_LOCATION.
4952         (struct explicit_location): New structure.
4953         (explicit_location_to_string): Declare.
4954         (explicit_location_to_linespec): Declare.
4955         (new_explicit_location, get_explicit_locationp
4956         (get_explicit_location_const, initialize_explicit_location): Declare.
4957
4958 2015-08-11  Keith Seitz  <keiths@redhat.com>
4959
4960         * break-catch-throw.c (re_set_exception_catchpoint): Convert
4961         linespec for stap probe to probe location.
4962         * breakpoint.c (create_longjmp_master_breakpoint)
4963         (create_exception_master_breakpoint): Likewise.
4964         (break_command_1): Remove local variable `arg_cp'.
4965         Check location type to set appropriate breakpoint ops methods.
4966         (trace_command): Likewise.
4967         * linespec.c (event_location_to_sals): Assert on probe locations.
4968         * location.c (EL_PROBE): Add macro definition.
4969         (new_probe_location, get_probe_location): New functions.
4970         (copy_event_location, delete_event_location, event_location_to_string)
4971         (string_to_event_location, event_location_empty_p): Handle probe
4972         locations.
4973         * location.h (enum event_location_type): Add PROBE_LOCATION.
4974         (new_probe_location, get_probe_location): Declare.
4975         * probe.c (parse_probes): Assert that LOCATION is a probe location.
4976         Convert linespec into probe location.
4977
4978 2015-08-11  Keith Seitz  <keiths@redhat.com>
4979
4980         * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
4981         Convert linespec to address location.
4982         * linespec.c (canonicalize_linespec): Do not handle address
4983         locations here.
4984         (convert_address_location_to_sals): New function; contents moved
4985         from ...
4986         (convert_linespc_to_sals): ... here.
4987         (parse_linespec): Remove address locations from linespec grammar.
4988         Remove handling of address locations.
4989         (linespec_lex_to_end): Remove handling of address linespecs.
4990         (event_location_to_sals): Handle ADDRESS_LOCATION.
4991         (linespec_expression_to_pc): Export.
4992         * linespec.h (linespec_expression_to_pc): Add declaration.
4993         * location.c (struct event_location.u) <address>: New member.
4994         (new_address_location, get_address_location): New functions.
4995         (copy_event_location, delete_event_location, event_location_to_string)
4996         (string_to_event_location, event_location_empty_p): Handle address
4997         locations.
4998         * location.h (enum event_location_type): Add ADDRESS_LOCATION.
4999         (new_address_location, get_address_location): Declare.
5000         * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
5001         to address location.
5002         * spu-tdep.c (spu_catch_start): Likewise.
5003
5004 2015-08-11  Keith Seitz  <keiths@redhat.com>
5005
5006         * ax-gdb.c: Include location.h.
5007         (agent_command_1) Use linespec location instead of address
5008         string.
5009         * break-catch-throw.c: Include location.h.
5010         (re_set_exception_catchpoint): Use linespec locations instead
5011         of address strings.
5012         * breakpoint.c: Include location.h.
5013         (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
5014         (create_std_terminate_master_breakpoint)
5015         (create_exception_master_breakpoint, update_breakpoints_after_exec):
5016         Use linespec location instead of address string.
5017         (print_breakpoint_location):  Use locations and
5018         event_location_to_string.
5019         Print extra_string for pending locations for non-MI streams.
5020         (print_one_breakpoint_location): Use locations and
5021         event_location_to_string.
5022         (init_raw_breakpoint_without_location): Initialize b->location.
5023         (create_thread_event_breakpoint): Use linespec location instead of
5024         address string.
5025         (init_breakpoint_sal): Likewise.
5026         Only save extra_string if it is non-NULL and not the empty string.
5027         Use event_location_to_string instead of `addr_string'.
5028         Constify `p' and `endp'.
5029         Use skip_spaces_const/skip_space_const instead of non-const versions.
5030         Copy the location into the breakpoint.
5031         If LOCATION is NULL, save the breakpoint address as a linespec location
5032         instead of an address string.
5033         (create_breakpoint_sal): Change `addr_string' parameter to a struct
5034         event_location. All uses updated.
5035         (create_breakpoints_sal): Likewise for local variable `addr_string'.
5036         (parse_breakpoint_sals): Use locations instead of address strings.
5037         Remove check for empty linespec with conditional.
5038         Refactor.
5039         (decode_static_tracepoint_spec): Make argument const and update
5040         function.
5041         (create_breakpoint): Change `arg' to a struct event_location and
5042         rename.
5043         Remove `copy_arg' and `addr_start'.
5044         If EXTRA_STRING is empty, set it to NULL.
5045         Don't populate `canonical' for pending breakpoints.
5046         Pass `extra_string' to find_condition_and_thread.
5047         Clear `extra_string' if `rest' was NULL.
5048         Do not error with "garbage after location" if setting a dprintf
5049         breakpoint.
5050         Copy the location into the breakpoint instead of an address string.
5051         (break_command_1): Use string_to_event_location and pass this to
5052         create_breakpoint instead of an address string.
5053         Check against `arg_cp' for a probe linespec.
5054         (dprintf_command): Use string_to_event_location and pass this to
5055         create_breakpoint instead of an address string.
5056         Throw an exception if no format string was specified.
5057         (print_recreate_ranged_breakpoint): Use event_location_to_string
5058         instead of address strings.
5059         (break_range_command, until_break_command)
5060         (init_ada_exception_breakpoint): Use locations instead
5061         of address strings.
5062         (say_where): Print out extra_string for pending locations.
5063         (base_breakpoint_dtor): Delete `location' and `location_range_end' of
5064         the breakpoint.
5065         (base_breakpoint_create_sals_from_location): Use struct event_location
5066         instead of address string.
5067         Remove `addr_start' and `copy_arg' parameters.
5068         (base_breakpoint_decode_location): Use struct event_location instead of
5069         address string.
5070         (bkpt_re_set): Use locations instead of address strings.
5071         Use event_location_empty_p to check for unset location.
5072         (bkpt_print_recreate): Use event_location_to_string instead of
5073         an address string.
5074         Print out extra_string for pending locations.
5075         (bkpt_create_sals_from_location, bkpt_decode_location)
5076         (bkpt_probe_create_sals_from_location): Use struct event_location
5077         instead of address string.
5078         (bkpt_probe_decode_location): Use struct event_location instead of
5079         address string.
5080         (tracepoint_print_recreate): Use event_location_to_string to
5081         recreate the tracepoint.
5082         (tracepoint_create_sals_from_location, tracepoint_decode_location)
5083         (tracepoint_probe_create_sals_from_location)
5084         (tracepoint_probe_decode_location): Use struct event_location
5085         instead of address string.
5086         (dprintf_print_recreate): Use event_location_to_string to recreate
5087         the dprintf.
5088         (dprintf_re_set): Remove check for valid/missing format string.
5089         (strace_marker_create_sals_from_location)
5090         (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
5091         (update_static_tracepoint): Use struct event_location instead of
5092         address string.
5093         (location_to_sals): Likewise.
5094         Pass `extra_string' to find_condition_and_thread.
5095         For newly resolved pending breakpoint locations, clear the location's
5096         string representation.
5097         Assert that the breakpoint's condition string is NULL when
5098         condition_not_parsed.
5099         (breakpoint_re_set_default, create_sals_from_location_default)
5100         (decode_location_default, trace_command, ftrace_command)
5101         (strace_command, create_tracepoint_from_upload): Use locations
5102         instead of address strings.
5103         * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
5104         Use struct event_location instead of address string.
5105         Update all uses.
5106         <decode_location>: Likewise.
5107         (struct breakpoint) <addr_string>: Change to struct event_location
5108         and rename `location'.
5109         <addr_string_range_end>: Change to struct event_location and rename
5110         `location_range_end'.
5111         (create_breakpoint): Use struct event_location instead of address
5112         string.
5113         * cli/cli-cmds.c: Include location.h.
5114         (edit_command, list_command): Use locations instead of address strings.
5115         * elfread.c: Include location.h.
5116         (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
5117         * guile/scm-breakpoint.c: Include location.h.
5118         (bpscm_print_breakpoint_smob): Use event_location_to_string.
5119         (gdbscm_register_breakpoint): Use locations instead of address
5120         strings.
5121         * linespec.c: Include location.h.
5122         (struct ls_parser) <stream>: Change to const char *.
5123         (PARSER_STREAM): Update.
5124         (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
5125         keywords must be followed by whitespace.
5126         (canonicalize_linespec): Save a linespec location into `canonical'.
5127         Save a canonical linespec into `canonical'.
5128         (parse_linespec): Change `argptr' to const char * and rename `arg'.
5129         All uses updated.
5130         Update function description.
5131         (linespec_parser_new): Initialize `parser'.
5132         Update initialization of  parsing stream.
5133         (event_location_to_sals): New function.
5134         (decode_line_full): Change `argptr' to a struct event_location and
5135         rename it `location'.
5136         Use locations instead of address strings.
5137         Call event_location_to_sals instead of parse_linespec.
5138         (decode_line_1): Likewise.
5139         (decode_line_with_current_source, decode_line_with_last_displayed)
5140         Use locations instead of address strings.
5141         (decode_objc): Likewise.
5142         Change `argptr' to const char * and rename `arg'.
5143         (destroy_linespec_result): Delete the linespec result's location
5144         instead of freeing the address string.
5145         * linespec.h (struct linespec_result) <addr_string>: Change to
5146         struct event_location and rename to ...
5147         <location>: ... this.
5148         (decode_line_1, decode_line_full): Change `argptr' to struct
5149         event_location.  All callers updated.
5150         * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
5151         (mi_cmd_break_insert_1): Use locations instead of address strings.
5152         Throw an error if there was "garbage" at the end of the specified
5153         linespec.
5154         * probe.c: Include location.h.
5155         (parse_probes): Change `argptr' to struct event_location.
5156         Use event locations instead of address strings.
5157         * probe.h (parse_probes): Change `argptr' to struct event_location.
5158         * python/py-breakpoint.c: Include location.h.
5159         (bppy_get_location): Constify local variable `str'.
5160         Use event_location_to_string.
5161         (bppy_init): Use locations instead of address strings.
5162         * python/py-finishbreakpoint.c: Include location.h.
5163         (bpfinishpy_init): Remove local variable `addr_str'.
5164         Use locations instead of address strings.
5165         * python/python.c: Include location.h.
5166         (gdbpy_decode_line): Use locations instead of address strings.
5167         * remote.c: Include location.h.
5168         (remote_download_tracepoint): Use locations instead of address
5169         strings.
5170         * spu-tdep.c: Include location.h.
5171         (spu_catch_start): Remove local variable `buf'.
5172         Use locations instead of address strings.
5173         * tracepoint.c: Include location.h.
5174         (scope_info): Use locations instead of address strings.
5175         (encode_source_string): Constify parameter `src'.
5176         * tracepoint.h (encode_source_string): Likewise.
5177
5178 2015-08-11  Keith Seitz  <keiths@redhat.com>
5179
5180         * Makefile.in (SFILES): Add location.c.
5181         (HFILES_NO_SRCDIR): Add location.h.
5182         (COMMON_OBS): Add location.o.
5183         * linespec.c (linespec_lex_to_end): New function.
5184         * linespec.h (linespec_lex_to_end): Declare.
5185         * location.c: New file.
5186         * location.h: New file.
5187
5188 2015-08-11  Keith Seitz  <keiths@redhat.com>
5189
5190         * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
5191         Renamed to create_sals_from_location.
5192         <decode_linespec>: Renamed to decode_location.
5193         Update all callers.
5194         * breakpoint.c (create_sals_from_address_default): Renamed to ...
5195         (create_sals_from_location_default): ... this.
5196         (addr_string_to_sals): Renamed to ...
5197         (location_to_sals): ... this.
5198         (decode_linespec_default): Renamed to ...
5199         (decode_location_default): ... this.
5200         (base_breakpoint_create_sals_from_address): Renamed to ...
5201         (base_breakpoint_create_sals_from_location): ... this.
5202         (bkpt_create_sals_from_address): Renamed to ...
5203         (bkpt_create_sals_from_location): ... this.
5204         (bkpt_decode_linespec): Renamed to ...
5205         (bkpt_decode_location): ... this.
5206         (bkpt_probe_create_sals_from_address): Renamed to ...
5207         (bkpt_probe_create_sals_from_location): ... this.
5208         (tracepoint_create_sals_from_address): Renamed to ...
5209         (tracepoint_create_sals_from_location): ... this.
5210         (tracepoint_decode_linespec): Renamed to ...
5211         (tracepoint_decode_location): ... this.
5212         (tracepoint_probe_create_sals_from_address): Renamed to ...
5213         (tracepoint_probe_create_sals_from_location): ... this.
5214         (tracepoint_probe_decode_linespec): Renamed to ...
5215         (tracepoint_probe_decode_location): ... this.
5216         (strace_marker_create_sals_from_address): Renamed to ...
5217         (strace_marker_create_sals_from_location): ... this.
5218         (decode_linespec_default): Renamed to ...
5219         (decode_location_default): ... this.
5220
5221 2015-08-10  Doug Evans  <dje@google.com>
5222             Keith Seitz  <keiths@redhat.com>
5223
5224         PR gdb/17960
5225         * symtab.c (make_file_symbol_completion_list_1): Renamed from
5226         make_file_symbol_completion_list and made static.
5227         (make_file_symbol_completion_list): New function.
5228
5229 2015-08-10  Joel Brobecker  <brobecker@adacore.com>
5230
5231         * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
5232         trailing new-line at end of warning message.
5233         (proceed): Add i18n marker to error messages.
5234
5235 2015-08-07  Pedro Alves  <palves@redhat.com>
5236
5237         * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
5238
5239 2015-08-07  Pedro Alves  <palves@redhat.com>
5240
5241         * s390-linux-tdep.c (is_non_branch_ril)
5242         (s390_displaced_step_copy_insn): New functions.
5243         (s390_displaced_step_fixup): Update comment.
5244         (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
5245         gdbarch_displaced_step_copy_insn hook.
5246
5247 2015-08-07  Pedro Alves  <palves@redhat.com>
5248
5249         * infrun.c (displaced_step_prepare_throw): Return -1 if
5250         gdbarch_displaced_step_copy_insn returns NULL.  Update intro
5251         comment.
5252         * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
5253         (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
5254         in file.
5255         (ppc_displaced_step_copy_insn): New function.
5256         (ppc_displaced_step_fixup): Update comment.
5257         (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
5258         gdbarch_displaced_step_copy_insn hook.
5259         * gdbarch.sh (displaced_step_copy_insn): Document what happens on
5260         NULL return.
5261         * gdbarch.h: Regenerate.
5262
5263 2015-08-07  Pedro Alves  <palves@redhat.com>
5264
5265         * inferior.h (struct inferior) <displaced_stepping_failed>: New
5266         field.
5267         * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
5268         Return false if dispaced stepping failed before.
5269         (resume): Pass the current inferior to
5270         use_displaced_stepping_now_p.  Wrap displaced_step_prepare in
5271         TRY/CATCH.  If we get a MEMORY_ERROR, set the inferior's
5272         displaced_stepping_failed flag, and fall back to an in-line
5273         step-over.
5274
5275 2015-08-07  Pedro Alves  <palves@redhat.com>
5276
5277         * darwin-nat.c (darwin_stop): Rename to ...
5278         (darwin_interrupt): ... this.
5279         (_initialize_darwin_inferior): Adjust.
5280         * gnu-nat.c (gnu_stop): Delete.
5281         (gnu_target): Don't install gnu_stop.
5282         * inf-ptrace.c (inf_ptrace_stop): Rename to ...
5283         (inf_ptrace_interrupt): ... this.
5284         (inf_ptrace_target): Adjust.
5285         * infcmd.c (interrupt_target_1): Use target_interrupt instead of
5286         target_stop.
5287         * linux-nat (linux_nat_stop): Rename to ...
5288         (linux_nat_interrupt): ... this.
5289         (linux_nat_stop): Reimplement.
5290         (linux_nat_add_target): Install linux_nat_interrupt.
5291         * nto-procfs.c (nto_interrupt_twice): Rename to ...
5292         (nto_handle_sigint_twice): ... this.
5293         (nto_interrupt): Rename to ...
5294         (nto_handle_sigint): ... this.  Call target_interrupt instead of
5295         target_stop.
5296         (procfs_wait): Adjust.
5297         (procfs_stop): Rename to ...
5298         (procfs_interrupt): ... this.
5299         (init_procfs_targets): Adjust.
5300         * procfs.c (procfs_stop): Rename to ...
5301         (procfs_interrupt): ... this.
5302         (procfs_target): Adjust.
5303         * remote-m32r-sdi.c (m32r_stop): Rename to ...
5304         (m32r_interrupt): ... this.
5305         (init_m32r_ops): Adjust.
5306         * remote-sim.c (gdbsim_stop_inferior): Rename to ...
5307         (gdbsim_interrupt_inferior): ... this.
5308         (gdbsim_stop): Rename to ...
5309         (gdbsim_interrupt): ... this.
5310         (gdbsim_cntrl_c): Adjust.
5311         (init_gdbsim_ops): Adjust.
5312         * remote.c (sync_remote_interrupt): Adjust comments.
5313         (remote_stop_as): Rename to ...
5314         (remote_interrupt_as): ... this.
5315         (remote_stop): Adjust comment.
5316         (remote_interrupt): New function.
5317         (init_remote_ops): Install remote_interrupt.
5318         * target.c (target_interrupt): New function.
5319         * target.h (struct target_ops) <to_interrupt>: New field.
5320         (target_interrupt): New declaration.
5321         * windows-nat.c (windows_stop): Rename to ...
5322         (windows_interrupt): ... this.
5323         * target-delegates.c: Regenerate.
5324
5325 2015-08-07  Pedro Alves  <palves@redhat.com>
5326
5327         * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
5328         threads" as alternative to "switching back to stepped thread".
5329
5330 2015-08-07  Pedro Alves  <palves@redhat.com>
5331
5332         * NEWS: Mention "maint set/show target-non-stop".
5333         * breakpoint.c (update_global_location_list): Check
5334         target_is_non_stop_p instead of non_stop.
5335         * infcmd.c (attach_command_post_wait, attach_command): Likewise.
5336         * infrun.c (show_can_use_displaced_stepping)
5337         (can_use_displaced_stepping_p, start_step_over_inferior):
5338         Likewise.
5339         (internal_resume_ptid): New function.
5340         (resume): Use it.
5341         (proceed): Check target_is_non_stop_p instead of non_stop.  If in
5342         all-stop mode but the target is always in non-stop mode, start all
5343         the other threads that are implicitly resumed too.
5344         (for_each_just_stopped_thread, fetch_inferior_event)
5345         (adjust_pc_after_break, stop_all_threads): Check
5346         target_is_non_stop_p instead of non_stop.
5347         (handle_inferior_event): Likewise.  Handle detach-fork in all-stop
5348         with the target always in non-stop mode.
5349         (handle_signal_stop) <random signal>: Check target_is_non_stop_p
5350         instead of non_stop.
5351         (switch_back_to_stepped_thread): Check target_is_non_stop_p
5352         instead of non_stop.
5353         (keep_going_stepped_thread): Use internal_resume_ptid.
5354         (stop_waiting): If in all-stop mode, and the target is in non-stop
5355         mode, stop all threads.
5356         (keep_going_pass): Likewise, when starting a new in-line step-over
5357         sequence.
5358         * linux-nat.c (get_pending_status, select_event_lwp)
5359         (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
5360         target_is_non_stop_p instead of non_stop.
5361         (linux_nat_always_non_stop_p): New function.
5362         (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
5363         (linux_nat_add_target): Install linux_nat_always_non_stop_p.
5364         * target-delegates.c: Regenerate.
5365         * target.c (target_is_non_stop_p): New function.
5366         (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
5367         (maint_set_target_non_stop_command)
5368         (maint_show_target_non_stop_command): New functions.
5369         (_initilize_target): Install "maint set/show target-non-stop"
5370         commands.
5371         * target.h (struct target_ops) <to_always_non_stop_p>: New field.
5372         (target_non_stop_enabled): New declaration.
5373         (target_is_non_stop_p): New declaration.
5374
5375 2015-08-07  Pedro Alves  <pedro@codesourcery.com>
5376
5377         * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
5378         has a pending status, return true.
5379         * gdbthread.h: Include target/waitstatus.h.
5380         (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
5381         stop_pc>: New fields.
5382         (struct thread_info) <resumed>: New field.
5383         (set_resumed): Declare.
5384         * infrun.c: Include "event-loop.h".
5385         (infrun_async_inferior_event_token, infrun_is_async): New globals.
5386         (infrun_async): New function.
5387         (clear_step_over_info): Add debug output.
5388         (displaced_step_in_progress_any_inferior): New function.
5389         (displaced_step_fixup): New returns int.
5390         (start_step_over): Handle in-line step-overs too.  Assert the
5391         thread is marked resumed.
5392         (resume_cleanups): Clear the thread's resumed flag.
5393         (resume): Set the thread's resumed flag.  Return early if the
5394         thread has a pending status.  Allow stepping a breakpoint with no
5395         signal.
5396         (proceed): Adjust to check 'resumed' instead of 'executing'.
5397         (clear_proceed_status_thread): If the thread has a pending status,
5398         and that status is a finished step, discard the pending status.
5399         (clear_proceed_status): Don't clear step_over_info here.
5400         (random_pending_event_thread, do_target_wait): New functions.
5401         (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
5402         do_target_wait.
5403         (wait_one): New function.
5404         (THREAD_STOPPED_BY): New macro.
5405         (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
5406         (thread_stopped_by_hw_breakpoint): New functions.
5407         (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
5408         functions.
5409         (handle_inferior_event): Also call set_resumed(false) on all
5410         threads implicitly stopped by the event.
5411         (restart_threads, resumed_thread_with_pending_status): New
5412         functions.
5413         (finish_step_over): If we were doing an in-line step-over before,
5414         and no longer are after trying to start a new step-over, restart
5415         all threads.  If we have multiple threads with pending events,
5416         save the current event and go through the event loop again.
5417         (handle_signal_stop): Return early if finish_step_over returns
5418         false.
5419         <random signal>: If we get a signal while stepping over a
5420         breakpoint in-line in non-stop mode, restart all threads.  Clear
5421         step_over_info before delivering the signal.
5422         (keep_going_stepped_thread): Use internal_error instead of
5423         gdb_assert.  Mark the thread as resumed.
5424         (keep_going_pass_signal): Assert the thread isn't already resumed.
5425         If some other thread is doing an in-line step-over, defer the
5426         resume.  If we just started a new in-line step-over, stop all
5427         threads.  Don't clear step_over_info.
5428         (infrun_async_inferior_event_handler): New function.
5429         (_initialize_infrun): Create async event handler with
5430         infrun_async_inferior_event_handler as callback.
5431         (infrun_async): New declaration.
5432         * target.c (target_async): New function.
5433         * target.h (target_async): Declare macro and readd as function
5434         declaration.
5435         * target/waitstatus.h (enum target_stop_reason)
5436         <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
5437         * thread.c (new_thread): Clear the new waitstatus field.
5438         (set_resumed): New function.
5439
5440 2015-08-07  Pedro Alves  <palves@redhat.com>
5441
5442         * infrun.c (keep_going_stepped_thread): New function, factored out
5443         from ...
5444         (switch_back_to_stepped_thread): ... here.
5445
5446 2015-08-07  Pedro Alves  <palves@redhat.com>
5447
5448         * infrun.c (currently_stepping): Extend intro comment.
5449         * target.h (target_resume): Extend intro comment.
5450
5451 2015-08-07  Pedro Alves  <palves@redhat.com>
5452
5453         * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
5454         of inferior_ptid.  If the stepped thread vanished, return 0
5455         instead of resuming here.  Use reset_ecs.  Print the prev_pc and
5456         the current stop_pc in log message.  Clear trap_expected if the
5457         thread advanced.  Don't pass currently_stepping to
5458         do_target_resume.
5459
5460 2015-08-07  Pedro Alves  <palves@redhat.com>
5461
5462         * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
5463         * infrun.c (struct execution_control_state): Move higher up in the
5464         file.
5465         (reset_ecs): New function.
5466         (start_step_over): Now returns int.  Rewrite to use
5467         keep_going_pass_signal instead of manually starting a displaced step.
5468         (resume): Don't call set_running here.  If displaced stepping
5469         can't start now, clear trap_expected.
5470         (find_thread_needs_step_over): Delete function.
5471         (proceed): Set up finish_thread_state_cleanup.  Call set_running.
5472         If the current thread needs a step over, push it in the step-over
5473         chain.  Don't set insert breakpoints nor call resume directly
5474         here.  Instead rewrite to use start_step_over and
5475         keep_going_pass_signal.
5476         (finish_step_over): New function.
5477         (handle_signal_stop): Call finish_step_over instead of
5478         start_step_over.
5479         (switch_back_to_stepped_thread): If the event thread needs another
5480         step-over do that first.  Use start_step_over.
5481         (keep_going_pass_signal): New function, factored out from ...
5482         (keep_going): ... here.
5483         (_initialize_infrun): Comment moved here.
5484         * thread.c (set_running_thread): New function.
5485         (set_running, finish_thread_state): Use set_running_thread.
5486
5487 2015-08-07  Pedro Alves  <palves@redhat.com>
5488
5489         * gdbthread.h (struct thread_info) <step_over_prev,
5490         step_over_next>: New fields.
5491         (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
5492         (thread_step_over_chain_next, thread_is_in_step_over_chain): New
5493         declarations.
5494         * infrun.c (struct displaced_step_request): Delete.
5495         (struct displaced_step_inferior_state) <step_request_queue>:
5496         Delete field.
5497         (displaced_step_prepare): Assert that trap_expected is set.  Use
5498         thread_step_over_chain_enqueue.  Split starting a new displaced
5499         step to ...
5500         (start_step_over): ... this new function.
5501         (resume): Assert the thread isn't waiting for a step over already.
5502         (proceed): Assert the thread isn't waiting for a step over
5503         already.
5504         (infrun_thread_stop_requested): Adjust to remove threads from the
5505         embedded step-over chain.
5506         (handle_inferior_event) <fork/vfork>: Call start_step_over after
5507         displaced_step_fixup.
5508         (handle_signal_stop): Call start_step_over after
5509         displaced_step_fixup.
5510         * infrun.h (step_over_queue_head): New declaration.
5511         * thread.c (step_over_chain_enqueue, step_over_chain_remove)
5512         (thread_step_over_chain_next, thread_is_in_step_over_chain)
5513         (thread_step_over_chain_enqueue)
5514         (thread_step_over_chain_remove): New functions.
5515         (delete_thread_1): Remove thread from the step-over chain.
5516
5517 2015-08-07  Pedro Alves  <palves@redhat.com>
5518
5519         * infrun.c (thread_still_needs_step_over): Rename to ...
5520         (thread_still_needs_step_over_bp): ... this.
5521         (enum step_over_what): New.
5522         (thread_still_needs_step_over): Reimplement.
5523
5524 2015-08-07  Pedro Alves  <palves@redhat.com>
5525
5526         * remote.c (remote_wait_as): If not waiting for a stop reply,
5527         return TARGET_WAITKIND_NO_RESUMED.  If TARGET_WNOHANG is
5528         requested, don't block waiting forever.
5529
5530 2015-08-07  Pedro Alves  <pedro@codesourcery.com>
5531
5532         * infrun.c (adjust_pc_after_break): Now takes thread_info and
5533         waitstatus pointers instead of an ecs.  Adjust.
5534         (handle_inferior_event): Adjust caller.
5535
5536 2015-08-07  Pedro Alves  <palves@redhat.com>
5537
5538         * infrun.c (handle_inferior_event): If we get
5539         TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
5540         mode, mark all threads of the exiting process as not-executing.
5541         (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
5542         TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
5543         exiting process, if inferior_ptid still points at a process.
5544         * thread.c (struct current_thread_cleanup) <next>: New field.
5545         (current_thread_cleanup_chain): New global.
5546         (restore_current_thread_ptid_changed): New function.
5547         (restore_current_thread_cleanup_dtor): Remove the cleanup from the
5548         current_thread_cleanup_chain list.
5549         (make_cleanup_restore_current_thread): Add the cleanup data to the
5550         current_thread_cleanup_chain list.
5551         (_initialize_thread): Install restore_current_thread_ptid_changed
5552         as thread_ptid_changed observer.
5553
5554 2015-08-07  Joel Brobecker  <brobecker@adacore.com>
5555
5556         * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
5557         data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
5558         smaller than expected.
5559
5560 2015-08-07  Andrew Burgess  <andrew.burgess@embecosm.com>
5561
5562         * stack.c (get_frame_language): Moved ...
5563         * frame.c (get_frame_language): ... to here.
5564         * language.h (get_frame_language): Declaration moved to frame.h.
5565         * frame.h: Add language.h include, for language enum.
5566         (get_frame_language): Declaration moved from language.h.
5567         * language.c: Add frame.h include.
5568         * top.c: Add frame.h include.
5569         * symtab.h (struct obj_section): Declare.
5570         (struct cmd_list_element): Declare.
5571
5572 2015-08-07  Andrew Burgess  <andrew.burgess@embecosm.com>
5573
5574         * language.c (show_language_command): Find selected frame before
5575         asking for the language of that frame.
5576         (set_language_command): Likewise.
5577         * language.h (get_frame_language): Add frame parameter.
5578         * stack.c (get_frame_language): Add frame parameter, assert
5579         parameter is not NULL, update comment and reindent.
5580         * top.c (check_frame_language_change): Pass the selected frame
5581         into get_frame_language.
5582
5583 2015-08-07  Markus Metzger  <markus.t.metzger@intel.com>
5584
5585         * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
5586         (pt_btrace_insn_flags): New.
5587         (ftrace_add_pt): Call pt_btrace_insn_flags.
5588         * btrace.h (btrace_insn_flag): New.
5589         (btrace_insn) <flags>: New.
5590         * record-btrace.c (btrace_insn_history): Print insn prefix.
5591         * NEWS: Announce it.
5592
5593 2015-08-07  Markus Metzger  <markus.t.metzger@intel.com>
5594
5595         * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
5596         * configure: Regenerate.
5597
5598 2015-08-06  Yaakov Selkowitz  <yselkowi@redhat.com>
5599
5600         * Makefile.in (LIBICONV): Define.
5601         (CLIBS): Add LIBICONV.
5602         * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
5603         * configure: Regenerate.
5604
5605 2015-08-06  Simon Marchi  <simon.marchi@ericsson.com>
5606             Pedro Alves  <palves@redhat.com>
5607
5608         * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
5609         (arm_set_abi): Likewise.
5610         * ax-general.c (ax_print): Likewise.
5611         * c-exp.y (exp : string_exp): Likewise.
5612         * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
5613         (do_compile_dwarf_expr_to_c): Likewise.
5614         * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
5615         Likewise.
5616         * dwarf2expr.c (execute_stack_op): Likewise.
5617         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
5618         (disassemble_dwarf_expression): Likewise.
5619         * dwarf2read.c (dwarf2_add_member_fn): Likewise.
5620         (read_array_order): Likewise.
5621         (abbrev_table_read_table): Likewise.
5622         (read_attribute_value): Likewise.
5623         (skip_unknown_opcode): Likewise.
5624         (dwarf_decode_macro_bytes): Likewise.
5625         (dwarf_decode_macros): Likewise.
5626         * eval.c (value_f90_subarray): Likewise.
5627         * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5628         * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5629         * infrun.c (handle_command): Likewise.
5630         * memory-map.c (memory_map_start_memory): Likewise.
5631         * osabi.c (set_osabi): Likewise.
5632         * parse.c (operator_length_standard): Likewise.
5633         * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
5634         single return point.
5635         * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5636         * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
5637         (gdbpy_lookup_global_symbol): Likewise.
5638         * record-full.c (record_full_restore): Likewise.
5639         * regcache.c (regcache_register_status): Likewise.
5640         (regcache_raw_read): Likewise.
5641         (regcache_cooked_read): Likewise.
5642         * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
5643         * symtab.c (initialize_ordinary_address_classes): Likewise.
5644         * target-debug.h (target_debug_print_signals): Likewise.
5645         * utils.c (do_restore_current_language): Likewise.
5646
5647 2015-08-06  Clem Dickey  <clemd@acm.org>
5648
5649         PR python/17136
5650         * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
5651
5652 2015-08-06  Simon Marchi  <simon.marchi@ericsson.com>
5653
5654         * complaints.c (enum complaint_series): Add newlines and remove
5655         out of date comment.
5656         (struct complaints) <series>: Change type to enum
5657         complaint_series and remove out of date comment.
5658         (symfile_complaint_hook): Use equivalent enum value
5659         ISOLATED_MESSAGE instead of 0.
5660
5661 2015-08-06  Pedro Alves  <palves@redhat.com>
5662
5663         * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
5664         returned > 0.
5665
5666 2015-08-06  Pierre Langlois  <pierre.langlois@arm.com>
5667
5668         * common/agent.c (symbol_list) <required>: Remove.
5669
5670 2015-08-06  Pedro Alves  <palves@redhat.com>
5671
5672         * target/waitstatus.h (enum target_stop_reason)
5673         <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
5674
5675 2015-08-05  Pedro Alves  <palves@redhat.com>
5676             Joel Brobecker  <brobecker@adacore.com>
5677
5678         * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
5679         <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
5680         case where BS->STOP is not set.
5681
5682 2015-08-05  Ulrich Weigand  <uweigand@de.ibm.com>
5683
5684         * nat/gdb_thread_db.h: Add copyright header.
5685         Protect against multiple inclusion.
5686
5687 2015-08-05  Yao Qi  <yao.qi@linaro.org>
5688
5689         * aarch64-linux-nat.c (get_thread_id): Remove.
5690         (debug_reg_change_callback): Call ptid_get_lwp instead of
5691         get_thread_id.
5692         (fetch_gregs_from_thread): Likewise.
5693         (store_gregs_to_thread): Likewise.
5694         (fetch_fpregs_from_thread): Likewise.
5695         (store_fpregs_to_thread): Likewise.
5696         (aarch64_linux_get_debug_reg_capacity): Likewise.
5697         * arm-linux-nat.c (get_thread_id): Remove.
5698         (GET_THREAD_ID): Update macro to use ptid_get_lwp.
5699         * xtensa-linux-nat.c (get_thread_id): Remove.
5700         (GET_THREAD_ID): Update macro to use ptid_get_lwp.
5701         * arm-linux-nat.c (get_thread_id): Remove.
5702         (GET_THREAD_ID): Remove.
5703         (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
5704         (store_fpregs, fetch_regs, store_regs): Likewise.
5705         (fetch_wmmx_regs, store_wmmx_regs): Likewise.
5706         (fetch_vfp_regs, store_vfp_regs): Likewise.
5707         (arm_linux_read_description): Likewise.
5708         (arm_linux_get_hwbp_cap): Likewise.
5709         * xtensa-linux-nat.c (get_thread_id): Remove.
5710         (GET_THREAD_ID): Remove.
5711         (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
5712         GET_THREAD_ID.
5713
5714 2015-08-04  Ciro Santilli  <ciro.santilli@gmail.com>  (obvious patch)
5715
5716         * python/py-linetable.c: Fix case of Linetable to LineTable
5717         in docstrings and code comments.
5718         * python/py-symtab.c: Same.
5719
5720 2015-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
5721
5722         * infcmd.c (signal_command): Call do_cleanups for args_chain.
5723
5724 2015-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
5725
5726         PR gdb/18767
5727         * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
5728         use.
5729
5730 2015-08-04  Pedro Alves  <palves@redhat.com>
5731
5732         * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
5733         (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
5734         (td_ta_event_addr_ftype, td_ta_set_event_ftype)
5735         (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
5736         (td_thr_validate_ftype, td_thr_get_info_ftype)
5737         (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
5738         (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
5739         New typedefs.
5740         * linux-thread-db.c (struct thread_db_info): Use new typedefs.
5741         (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
5742         local macros and use them instead of verbose_dlsym and dlsym
5743         calls.
5744
5745 2015-08-03  Sandra Loosemore  <sandra@codesourcery.com>
5746
5747         * nios2-tdep.h: Include opcode/nios2.h here.
5748         (NIOS2_CDX_OPCODE_SIZE): New.
5749         (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
5750         * nios2-tdep.c: Don't include opcode/nios2.h here.
5751         (nios2_fetch_insn): For R2, try reading 2-byte instruction if
5752         4-byte read fails.
5753         (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
5754         (nios2_match_addi, nios2_match_orhi): Likewise.
5755         (nios2_match_stw, nios2_match_ldw): Likewise.
5756         (nios2_match_rdctl): Likewise.
5757         (nios2_match_stwm, nios2_match_ldwm): New.
5758         (nios2_match_branch): Add cases for R2 encodings.
5759         (nios2_match_jmpi, nios2_match_calli): Likewise.
5760         (nios2_match_jmpr, nios2_match_callr): Likewise.
5761         (nios2_match_break, nios2_match_trap): Likewise.
5762         (nios2_in_epilogue_p): Add R2 support.
5763         (nios2_analyze_prologue): Update comments.  Recognize R2 CDX
5764         prologues.
5765         (nios2_breakpoint_from_pc): Handle R2 instructions.
5766         (nios2_get_next_pc): Likewise.  Adjust call to
5767         tdep->syscall_next_pc.
5768         * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
5769         Renamed from nios2_linux_rt_sigreturn_tramp_frame.  Use
5770         instruction field macros instead of literal hex values.
5771         (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
5772         (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
5773         Use size field from OP instead of assuming all instructions
5774         are the same size.
5775         (nios2_linux_init_abi): Register appropriate unwinder for mach.
5776
5777 2015-08-03  Ulrich Weigand  <uweigand@de.ibm.com>
5778
5779         * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
5780         variable warning with some compilers.
5781
5782 2015-08-03  Yao Qi  <yao.qi@linaro.org>
5783
5784         * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
5785         in comment.  Replace "rw" with "type".
5786         (arm_linux_remove_watchpoint): Change type of "rw" to
5787         "enum target_hw_bp_type".
5788
5789 2015-08-02  Pierre-Marie de Rodat  <derodat@adacore.com>
5790
5791         * alpha-mdebug-tdep.c (find_proc_desc): Update call to
5792         lookup_symbol.
5793         * ft32-tdep.c (ft32_skip_prologue): Likewise.
5794         * moxie-tdep.c (moxie_skip_prologue): Likewise.
5795         * mt-tdep.c (mt_skip_prologue): Likewise.
5796         * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
5797
5798 2015-08-01  Pierre-Marie de Rodat  <derodat@adacore.com>
5799
5800         * ada-exp.y (write_object_renaming): Replace struct
5801         ada_symbol_info with struct block_symbol.  Update field
5802         references accordingly.
5803         (block_lookup, select_possible_type_sym): Likewise.
5804         (find_primitive_type): Likewise.  Also update call to
5805         ada_lookup_symbol to extract the symbol itself.
5806         (write_var_or_type, write_name_assoc): Likewise.
5807         * ada-lang.h (struct ada_symbol_info): Remove.
5808         (ada_lookup_symbol_list): Replace struct ada_symbol_info with
5809         struct block_symbol.
5810         (ada_lookup_encoded_symbol, user_select_syms): Likewise.
5811         (ada_lookup_symbol): Return struct block_symbol instead of a
5812         mere symbol.
5813         * ada-lang.c (defns_collected): Replace struct ada_symbol_info
5814         with struct block_symbol.
5815         (resolve_subexp, ada_resolve_function, sort_choices,
5816         user_select_syms, is_nonfunction, add_defn_to_vec,
5817         num_defns_collected, defns_collected,
5818         symbols_are_identical_enums, remove_extra_symbols,
5819         remove_irrelevant_renamings, add_lookup_symbol_list_worker,
5820         ada_lookup_symbol_list, ada_iterate_over_symbols,
5821         ada_lookup_encoded_symbol, get_var_value): Likewise.
5822         (ada_lookup_symbol): Return a block_symbol instead of a mere
5823         symbol.  Replace struct ada_symbol_info with struct
5824         block_symbol.
5825         (ada_lookup_symbol_nonlocal): Likewise.
5826         (standard_lookup): Make block passing explicit through
5827         lookup_symbol_in_language.
5828         * ada-tasks.c (get_tcb_types_info): Update the calls to
5829         lookup_symbol_in_language to extract the mere symbol out of the
5830         returned value.
5831         (ada_tasks_inferior_data_sniffer): Likewise.
5832         * ax-gdb.c (gen_static_field): Likewise for the call to
5833         lookup_symbol.
5834         (gen_maybe_namespace_elt): Deal with struct block_symbol from
5835         lookup functions.
5836         (gen_expr): Likewise.
5837         * c-exp.y: Likewise.  Remove uses of block_found.
5838         (lex_one_token, classify_inner_name, c_print_token): Likewise.
5839         (classify_name): Likewise.  Rename the "sym" local variable to
5840         "bsym".
5841         * c-valprint.c (print_unpacked_pointer): Likewise.
5842         * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
5843         "sym" parameter from struct symbol * to struct block_symbol.
5844         Use it to remove uses of block_found.  Deal with struct
5845         block_symbol from lookup functions.
5846         (gcc_convert_symbol): Likewise.  Update the call to
5847         convert_symbol_sym.
5848         * compile/compile-object-load.c (compile_object_load): Deal with
5849         struct block_symbol from lookup functions.
5850         * cp-namespace.c (cp_lookup_nested_symbol_1,
5851         cp_lookup_nested_symbol, cp_lookup_bare_symbol,
5852         cp_search_static_and_baseclasses,
5853         cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
5854         cp_lookup_symbol_imports_or_template,
5855         cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
5856         lookup_namespace_scope, cp_lookup_nonlocal,
5857         find_symbol_in_baseclass): Return struct block_symbol instead of
5858         mere symbols and deal with struct block_symbol from lookup
5859         functions.
5860         * cp-support.c (inspect_type, replace_typedefs,
5861         cp_lookup_rtti_type): Deal with struct block_symbol from
5862         lookup functions.
5863         * cp-support.h (cp_lookup_symbol_nonlocal,
5864         cp_lookup_symbol_from_namespace,
5865         cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
5866         Return struct block_symbol instead of mere symbols.
5867         * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
5868         push_module_name):
5869         Deal with struct block_symbol from lookup functions.  Remove
5870         uses of block_found.
5871         * eval.c (evaluate_subexp_standard): Update call to
5872         cp_lookup_symbol_namespace.
5873         * f-exp.y: Deal with struct block_symbol from lookup functions.
5874         Remove uses of block_found.
5875         (yylex): Likewise.
5876         * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
5877         lookup_enum, lookup_template_type, check_typedef): Deal with
5878         struct block_symbol from lookup functions.
5879         * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
5880         * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
5881         (gdbscm_lookup_global_symbol): Likewise.
5882         * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
5883         * go-exp.y: Likewise.  Remove uses of block_found.
5884         (package_name_p, classify_packaged_name, classify_name):
5885         Likewise.
5886         * infrun.c (insert_exception_resume_breakpoint): Likewise.
5887         * jv-exp.y (push_variable): Likewise.
5888         * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
5889         * language.c (language_bool_type): Likewise.
5890         * language.h (struct language_defn): Update
5891         la_lookup_symbol_nonlocal to return a struct block_symbol rather
5892         than a mere symbol.
5893         * linespec.c (find_label_symbols): Deal with struct block_symbol
5894         from lookup functions.
5895         * m2-exp.y: Likewise.  Remove uses of block_found.
5896         (yylex): Likewise.
5897         * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
5898         * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
5899         * p-exp.y: Likewise.  Remove uses of block_found.
5900         (yylex): Likewise.
5901         * p-valprint.c (pascal_val_print): Likewise.
5902         * parse.c (write_dollar_variable): Likewise.  Remove uses of
5903         block_found.
5904         * parser-defs.h (struct symtoken): Turn the SYM field into a
5905         struct block_symbol.
5906         * printcmd.c (address_info): Deal with struct block_symbol from
5907         lookup functions.
5908         * python/py-frame.c (frapy_read_var): Likewise.
5909         * python/py-symbol.c (gdbpy_lookup_symbol,
5910         gdbpy_lookup_global_symbol): Likewise.
5911         * skip.c (skip_function_command): Likewise.
5912         * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
5913         block_symbol instead of a mere symbol.
5914         * solib-spu.c (spu_lookup_lib_symbol): Likewise.
5915         * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
5916         * solib.c (solib_global_lookup): Likewise.
5917         * solist.h (solib_global_lookup): Likewise.
5918         (struct target_so_ops): Update lookup_lib_global_symbol to
5919         return a struct block_symbol rather than a mere symbol.
5920         * source.c (select_source_symtab): Deal with struct block_symbol
5921         from lookup functions.
5922         * stack.c (print_frame_args, iterate_over_block_arg_vars):
5923         Likewise.
5924         * symfile.c (set_initial_language): Likewise.
5925         * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
5926         block_symbol.
5927         (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
5928         (struct symbol_cache_slot): Turn the FOUND field into a struct
5929         block_symbol.
5930         (block_found): Remove.
5931         (eq_symbol_entry): Update to deal with struct block_symbol in
5932         cache slots.
5933         (symbol_cache_lookup): Return a struct block_symbol rather than
5934         a mere symbol.
5935         (symbol_cache_mark_found): Add a BLOCK parameter to fill
5936         appropriately the cache slots.  Update callers.
5937         (symbol_cache_dump): Update cache slots handling to the type
5938         change.
5939         (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
5940         lookup_symbol_aux, lookup_local_symbol,
5941         lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
5942         lookup_symbol_in_objfile_symtabs,
5943         lookup_symbol_in_objfile_from_linkage_name,
5944         lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
5945         lookup_symbol_in_static_block, lookup_static_symbol,
5946         lookup_global_symbol):
5947         Return a struct block_symbol rather than a mere symbol.  Deal
5948         with struct block_symbol from other lookup functions.  Remove
5949         uses of block_found.
5950         (lookup_symbol_in_block): Remove uses of block_found.
5951         (struct global_sym_lookup_data): Turn the RESULT field into a
5952         struct block_symbol.
5953         (lookup_symbol_global_iterator_cb): Update references to the
5954         RESULT field.
5955         (search_symbols): Deal with struct block_symbol from lookup
5956         functions.
5957         * symtab.h (struct block_symbol): New structure.
5958         (block_found): Remove.
5959         (lookup_symbol_in_language, lookup_symbol,
5960         basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
5961         lookup_static_symbol, lookup_global_symbol, lookup_language_this,
5962         lookup_global_symbol_from_objfile): Return a struct block_symbol
5963         rather than just a mere symbol.  Update comments to remove
5964         mentions of block_found.
5965         * valops.c (find_function_in_inferior,
5966         value_struct_elt_for_reference, value_maybe_namespace_elt,
5967         value_of_this):  Deal with struct block_symbol from lookup
5968         functions.
5969         * value.c (value_static_field, value_fn_field): Likewise.
5970
5971 2015-07-31  Simon Marchi  <simon.marchi@ericsson.com>
5972
5973         * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
5974         instead of integer.
5975
5976 2015-07-31  Simon Marchi  <simon.marchi@ericsson.com>
5977             Pedro Alves  <palves@redhat.com>
5978
5979         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
5980         type or value instead of integer.
5981         (aarch64_linux_insert_watchpoint): Likewise.
5982         (aarch64_linux_remove_watchpoint): Likewise.
5983         * ada-lang.c (ada_op_print_tab): Likewise.
5984         * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
5985         (amd64_linux_syscall_record_common): Likewise.
5986         * arch-utils.c (target_byte_order_user): Likewise.
5987         (default_byte_order): Likewise.
5988         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
5989         (arm_linux_get_hwbp_type): Likewise.
5990         (arm_linux_hw_watchpoint_initialize): Likewise.
5991         (arm_linux_insert_watchpoint): Likewise.
5992         * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
5993         (arm_linux_syscall_record): Likewise.
5994         * breakpoint.c (update_watchpoint): Likewise.
5995         (breakpoint_here_p): Likewise.
5996         (bpstat_print): Likewise.
5997         (enable_breakpoint_disp): Likewise.
5998         * c-lang.c (c_op_print_tab): Likewise.
5999         * cli/cli-decode.c (add_info_alias): Likewise.
6000         * d-lang.c (d_op_print_tab): Likewise.
6001         * eval.c (evaluate_subexp_standard): Likewise.
6002         * f-exp.y (dot_ops): Likewise.
6003         (f77_keywords): Likewise.
6004         * f-lang.c (f_op_print_tab): Likewise.
6005         * go-lang.c (go_op_print_tab): Likewise.
6006         * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
6007         * guile/scm-cmd.c (gdbscm_make_command): Likewise.
6008         * guile/scm-param.c (gdbscm_make_parameter): Likewise.
6009         * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
6010         * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
6011         (struct scm_from_stringn_data): Likewise.
6012         * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
6013         * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
6014         (ia64_linux_remove_watchpoint): Likewise.
6015         (ia64_linux_can_use_hw_breakpoint): Likewise.
6016         * infrun.c (print_stop_event): Likewise.
6017         * jv-lang.c (java_op_print_tab): Likewise.
6018         * linux-nat.c (linux_proc_xfer_partial): Likewise.
6019         * linux-nat.h (struct lwp_info): Likewise.
6020         * linux-thread-db.c (enable_thread_event): Likewise.
6021         * m2-lang.c (m2_op_print_tab): Likewise.
6022         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
6023         (mi_cmd_stack_list_variables): Likewise.
6024         * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
6025         * mi/mi-out.c (mi_table_begin): Likewise.
6026         (mi_table_header): Likewise.
6027         * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
6028         (mips_linux_insert_watchpoint): Likewise.
6029         (mips_linux_remove_watchpoint): Likewise.
6030         * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
6031         * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
6032         (mips_linux_watch_type_to_irw): Likewise.
6033         * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
6034         (procfs_insert_hw_watchpoint): Likewise.
6035         (procfs_remove_hw_watchpoint): Likewise.
6036         (procfs_hw_watchpoint): Likewise.
6037         (procfs_can_use_hw_breakpoint): Likewise.
6038         (procfs_remove_hw_watchpoint): Likewise.
6039         (procfs_insert_hw_watchpoint): Likewise.
6040         * p-lang.c (pascal_op_print_tab): Likewise.
6041         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
6042         * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
6043         * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
6044         * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
6045         (procfs_insert_watchpoint): Likewise.
6046         (procfs_remove_watchpoint): Likewise.
6047         * psymtab.c (recursively_search_psymtabs): Likewise.
6048         * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
6049         (m32r_insert_watchpoint): Likewise.
6050         * remote-mips.c (mips_can_use_watchpoint): Likewise.
6051         (mips_insert_watchpoint): Likewise.
6052         (mips_remove_watchpoint): Likewise.
6053         * remote.c (watchpoint_to_Z_packet): Likewise.
6054         (remote_insert_watchpoint): Likewise.
6055         (remote_remove_watchpoint): Likewise.
6056         (remote_check_watch_resources): Likewise.
6057         * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
6058         (s390_remove_watchpoint): Likewise.
6059         (s390_can_use_hw_breakpoint): Likewise.
6060         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6061         * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
6062         * target.h (struct target_ops): Likewise.
6063         * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
6064         * ui-out.c (struct ui_out_hdr): Likewise.
6065         (append_header_to_list): Likewise.
6066         (get_next_header): Likewise.
6067         (verify_field): Likewise.
6068         (ui_out_begin): Likewise.
6069         (ui_out_field_int): Likewise.
6070         (ui_out_field_fmt_int): Likewise.
6071         (ui_out_field_skip): Likewise.
6072         (ui_out_field_string): Likewise.
6073         (ui_out_field_fmt): Likewise.
6074         * varobj.c (new_variable): Likewise.
6075         * x86-nat.c (x86_insert_watchpoint): Likewise.
6076         (x86_remove_watchpoint): Likewise.
6077         (x86_can_use_hw_breakpoint): Likewise.
6078         * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
6079         * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
6080         previously anonymous enumeration type..
6081         * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
6082         value.
6083         * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
6084         (target_debug_print_enum_bptype): New.
6085         * target-delegates.c: Regenerate.
6086
6087 2015-07-30  Sandra Loosemore  <sandra@codesourcery.com>
6088
6089         * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
6090         already says and disallow non-stack memory writes in the prologue.
6091
6092 2015-07-30  Sandra Loosemore  <sandra@codesourcery.com>
6093
6094         * nios2-tdep.c (nios2_analyze_prologue): Update comments to
6095         reflect how current GCC emits stack overflow checks.  Match
6096         both trap and break instructions for backward compatbility.
6097         Disallow other trap and break instructions in the prologue.
6098
6099 2015-07-30  Pedro Alves  <palves@redhat.com>
6100
6101         PR threads/18600
6102         * linux-nat.c (wait_lwp): Report to the core when thread group
6103         leader exits.
6104
6105 2015-07-30  Pedro Alves  <palves@redhat.com>
6106             Simon Marchi  <simon.marchi@ericsson.com>
6107
6108         PR threads/18600
6109         * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
6110         mark the new thread as resumed.  Remove STOPPING parameter.
6111         (wait_lwp): Adjust call to linux_handle_extended_wait.
6112         (linux_nat_filter_event): Adjust call to
6113         linux_handle_extended_wait.
6114         (resume_stopped_resumed_lwps): Add debug output.
6115
6116 2015-07-30  Pierre Langlois  <pierre.langlois@arm.com>
6117
6118         * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
6119         isize argument.
6120         * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
6121         * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
6122         gdbarch_fast_tracepoint_valid_at.
6123         * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
6124         * gdbarch.h: Regenerate.
6125         * gdbarch.c: Regenerate.
6126         * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
6127         argument.  Do not set it.
6128         * remote.c (remote_download_tracepoint): Adjust call to
6129         gdbarch_fast_tracepoint_valid_at.  Call gdb_insn_length to get
6130         the instruction length.
6131
6132 2015-07-30  Yao Qi  <yao.qi@linaro.org>
6133
6134         * arm-tdep.h (enum gdb_regnum): Move it to ...
6135         * arch/arm.h: ... here.  New file.
6136         * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
6137
6138 2015-07-30  Pierre Langlois  <pierre.langlois@arm.com>
6139
6140         * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
6141         Change its type to int *.
6142         (decode_br): Rename link argument to is_blr.  Change its type to
6143         int *.
6144         (decode_cb): Rename op argument to is_cbnz.  Change its type to
6145         int *.
6146         (decode_tb): Rename op argument to is_tbnz.  Change its type to
6147         int *.  Set is_tbnz to either 1 or 0.
6148         (aarch64_analyze_prologue): Change type of is_link to int.  Add
6149         new variables is_cbnz and is_tbnz.  Adjust call to
6150         aarch64_decode_cb and aarch64_decode_tb.
6151
6152 2015-07-29  Simon Marchi  <simon.marchi@ericsson.com>
6153
6154         * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
6155         parameter.
6156         (mips_linux_new_thread): Likewise.
6157         * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
6158
6159 2015-07-29  Patrick Palka  <patrick@parcs.ath.cx>
6160
6161         * top.c: Include "tui/tui.h".
6162         (undo_terminal_modifications_before_exit): New static function.
6163         (quit_force): Use it.
6164
6165 2015-07-29  Patrick Palka  <patrick@parcs.ath.cx>
6166
6167         * target.c (terminal_state): Initialize to terminal_is_ours.
6168
6169 2015-07-29  Yao Qi  <yao.qi@linaro.org>
6170
6171         PR record/18691
6172         * dcache.c (dcache_read_memory_partial): Call
6173         raw_memory_xfer_partial.
6174         * target.c (raw_memory_xfer_partial): Make it non-static.
6175         * target.h (raw_memory_xfer_partial): Declare.
6176
6177 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
6178
6179         * c-valprint.c (c_val_print_array): Consider addressable memory
6180         unit size.
6181         (c_val_print_ptr): Likewise.
6182         (c_val_print_int): Likewise.
6183         * findvar.c (read_frame_register_value): Likewise.
6184         * valarith.c (find_size_for_pointer_math): Likewise.
6185         (value_ptrdiff): Likewise.
6186         (value_subscripted_rvalue): Likewise.
6187         * valops.c (read_value_memory): Likewise (and rename variables).
6188         (value_assign): Likewise.
6189         (value_repeat): Likewise.
6190         (value_array): Likewise.
6191         (value_slice): Likewise.
6192         * valprint.c (generic_val_print_ptr): Likewise.
6193         (generic_val_print_enum): Likewise.
6194         (generic_val_print_bool): Likewise.
6195         (generic_val_print_int): Likewise.
6196         (generic_val_print_char): Likewise.
6197         (generic_val_print_float): Likewise.
6198         (generic_val_print_decfloat): Likewise.
6199         (generic_val_print_complex): Likewise.
6200         (val_print_scalar_formatted): Likewise.
6201         (val_print_array_elements): Likewise.
6202         * value.c (set_value_parent): Likewise.
6203         (value_contents_copy_raw): Likewise.
6204         (set_internalvar_component): Likewise.
6205         (value_primitive_field): Likewise.
6206         (value_fetch_lazy): Likewise.
6207         * value.h (read_value_memory): Update comment.
6208
6209 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
6210
6211         * value.c (get_value_arch): New function.
6212         * value.h (get_value_arch): New declaration.
6213
6214 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
6215
6216         * value.c (struct value): Update comments.
6217
6218 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
6219
6220         * gdbtypes.c (type_length_units): New function.
6221         * gdbtypes.h (type_length_units): New declaration.
6222         (struct type) <length>: Update comment.
6223
6224 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6225
6226         * valprint.c (generic_val_print): Factor out complex
6227         printing code to ...
6228         (generic_val_print_complex): ... this new function.
6229
6230 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6231
6232         * valprint.c (generic_val_print): Factor out decfloat
6233         printing code to ...
6234         (generic_val_print_decfloat): ... this new function.
6235
6236 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6237
6238         * valprint.c (generic_val_print): Factor out float
6239         printing code to ...
6240         (generic_val_print_float): ... this new function.
6241
6242 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6243
6244         * valprint.c (generic_val_print): Factor out char
6245         printing code to ...
6246         (generic_val_print_char): ... this new function.
6247
6248 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6249
6250         * valprint.c (generic_val_print): Factor out integer
6251         printing code to ...
6252         (generic_val_print_int): ... this new function.
6253
6254 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6255
6256         * valprint.c (generic_val_print): Factor out bool
6257         printing code to ...
6258         (generic_val_print_bool): ... this new function.
6259
6260 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6261
6262         * valprint.c (generic_val_print): Factor out function/method
6263         printing code to ...
6264         (generic_val_print_func): ... this new function.
6265
6266 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6267
6268         * valprint.c (generic_val_print): Factor out flags
6269         printing code to ...
6270         (generic_val_print_flags): ... this new function.
6271
6272 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6273
6274         * valprint.c (generic_val_print): Factor out enum
6275         printing code to ...
6276         (generic_val_print_enum): ... this new function.
6277
6278 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6279
6280         * valprint.c (generic_val_print): Factor out reference
6281         printing code to ...
6282         (generic_val_print_ref): ... this new function.
6283
6284 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6285
6286         * valprint.c (generic_val_print): Factor out memberptr
6287         printing code to ...
6288         (generic_val_print_memberptr): ... this new function.
6289
6290 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6291
6292         * valprint.c (generic_val_print): Factor out pointer
6293         printing code to ...
6294         (generic_val_print_ptr): ... this new function.
6295
6296 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6297
6298         * valprint.c (generic_val_print): Factor out array
6299         printing code to ...
6300         (generic_val_print_array): ... this new function.
6301
6302 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6303
6304         * valprint.c (generic_val_print): Factor out
6305         print_unpacked_pointer code to ...
6306         (print_unpacked_pointer): ... this new function.
6307
6308 2015-07-27  Patrick Palka  <patrick@parcs.ath.cx>
6309
6310         * event-top.c (handle_sigterm): Don't inspect
6311         target_can_async_p.  Always set the quit flag and always mark
6312         the async signal handler.
6313
6314 2015-07-27  Yao Qi  <yao.qi@linaro.org>
6315
6316         * Makefile.in (REMOTE_EXAMPLES): Remove it.
6317
6318 2015-07-25  Kevin Buettner  <kevinb@redhat.com>
6319
6320         * remote.c (read_ptid): Return null_ptid when no thread id
6321         is found.
6322         (remote_current_thread): Add log warning for malformed
6323         qC reply.
6324         (remote_start_remote): Add log warning when current thread
6325         not found.
6326
6327 2015-07-24  Pedro Alves  <palves@redhat.com>
6328
6329         * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
6330         (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
6331         forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
6332
6333 2015-07-24  Pedro Alves  <palves@redhat.com>
6334
6335         PR gdb/18717
6336         * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
6337         is resumed, and extend the debug log.
6338
6339 2015-07-24  Pedro Alves  <palves@redhat.com>
6340
6341         * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
6342
6343 2015-07-24  Pedro Alves  <palves@redhat.com>
6344
6345         * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
6346         sys/ptrace.h.
6347         * alpha-linux-nat.c: Likewise.
6348         * amd64-linux-nat.c: Likewise.
6349         * arm-linux-nat.c: Likewise.
6350         * hppa-linux-nat.c: Likewise.
6351         * i386-linux-nat.c: Likewise.
6352         * ia64-linux-nat.c: Likewise.
6353         * linux-fork.c: Likewise.
6354         * linux-nat.c: Likewise.
6355         * m32r-linux-nat.c: Likewise.
6356         * m68klinux-nat.c: Likewise.
6357         * mips-linux-nat.c: Likewise.
6358         * nat/linux-btrace.c: Likewise.
6359         * nat/linux-ptrace.c: Likewise.
6360         * nat/linux-ptrace.h
6361         * nat/mips-linux-watch.c: Likewise.
6362         * nat/x86-linux-dregs.c: Likewise.
6363         * ppc-linux-nat.c: Likewise.
6364         * s390-linux-nat.c: Likewise.
6365         * spu-linux-nat.c: Likewise.
6366         * tilegx-linux-nat.c: Likewise.
6367         * x86-linux-nat.c: Likewise.
6368         * xtensa-linux-nat.c: Likewise.
6369
6370 2015-07-24  Pedro Alves  <palves@redhat.com>
6371
6372         * ptrace.m4 (ptrace tests): Test in C++ mode.  Try with 'enum
6373         __ptrace_request as first parameter type instead of int.
6374         (PTRACE_TYPE_ARG1): Define.
6375         * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
6376         that casts first argument to PTRACE_TYPE_ARG1.
6377         * config.in: Regenerate.
6378         * configure: Regenerate.
6379
6380 2015-07-24  Pedro Alves  <palves@redhat.com>
6381
6382         * gdb_ptrace.h: Move ...
6383         * nat/gdb_ptrace.h: ... here.
6384         * inf-ptrace.c: Adjust.
6385
6386 2015-07-24  Pedro Alves  <palves@redhat.com>
6387
6388         * acinclude.m4: Include ptrace.m4.
6389         * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
6390         * ptrace.m4: ... to this new file.
6391
6392 2015-07-23  Doug Evans  <dje@google.com>
6393
6394         * dwarf2read.c (dwarf2_per_cu_data): Add comment.
6395         (load_cu): Handle dummy CUs.
6396         (dw2_do_instantiate_symtab, process_queuef): Ditto.
6397         (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
6398
6399 2015-07-23  Ciro Santilli  <ciro.santilli@gmail.com>  (tiny patch)
6400
6401         * py-linetable.c (ltpy_get_all_source_lines): Adjust function
6402         documentation to say that it returns a list rather than
6403         a FrozenSet.
6404         (linetable_object_methods): Update the docstring of the
6405         "source_line" entry.
6406
6407 2015-07-23  Pierre-Marie de Rodat  <derodat@adacore.com>
6408
6409         * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
6410         type to the recursive call instead of the original (maybe
6411         TYPE_CODE_TYPEDEF) type.
6412
6413 2015-07-23  Yao Qi  <yao.qi@linaro.org>
6414
6415         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
6416         TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
6417         If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
6418
6419 2015-07-21  Yao Qi  <yao.qi@linaro.org>
6420
6421         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
6422         Move it to nat/aarch64-linux-hw-point.c.
6423         (aarch64_linux_child_post_startup_inferior): Update.
6424         * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
6425         New function.
6426         * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
6427         Declare it.
6428
6429 2015-07-21  Markus Metzger  <markus.t.metzger@intel.com>
6430
6431         * common/btrace-common.c (btrace_data_append): Change case label.
6432
6433 2015-07-20  Yao Qi  <yao.qi@linaro.org>
6434
6435         * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
6436         Re-indent the code.
6437         * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
6438         "unsigned long long".
6439
6440 2015-07-18  Kevin Buettner  <kevinb@redhat.com>
6441
6442         * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
6443         to be set for SEC_ALLOC sections too.
6444
6445 2015-07-17  Yao Qi  <yao.qi@linaro.org>
6446
6447         * Makefile.in (HFILES_NO_SRCDIR): Add
6448         nat/aarch64-linux-hw-point.h.
6449         (aarch64-linux-hw-point.o): New rule.
6450         * nat/aarch64-linux-hw-point.h: New file.
6451         * nat/aarch64-linux-hw-point.c: New file.
6452         * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
6453         (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
6454         (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
6455         (AARCH64_HWP_ALIGNMENT): Likewise.
6456         (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
6457         (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
6458         (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
6459         (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
6460         (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
6461         (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
6462         (struct aarch64_debug_reg_state): Likewise.
6463         (struct arch_lwp_info): Likewise.
6464         (aarch64_linux_set_debug_regs): Likewise.
6465         (aarch64_notify_debug_reg_change): Remove static.
6466         (aarch64_align_watchpoint): Likewise.
6467         (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
6468         (aarch64_watchpoint_length): Likewise.
6469         (aarch64_point_encode_ctrl_reg): Likewise
6470         (aarch64_point_is_aligned): Likewise.
6471         (aarch64_dr_state_insert_one_point): Likewise.
6472         (aarch64_dr_state_remove_one_point): Likewise.
6473         (aarch64_handle_breakpoint): Likewise.
6474         (aarch64_handle_aligned_watchpoint): Likewise.
6475         (aarch64_handle_unaligned_watchpoint): Likewise.
6476         (aarch64_handle_watchpoint): Likewise.
6477         * config/aarch64/linux.mh (NAT_FILE): Add
6478         aarch64-linux-hw-point.o.
6479
6480 2015-07-17  Yao Qi  <yao.qi@linaro.org>
6481
6482         * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
6483         state and don't call aarch64_get_debug_reg_state.  All callers
6484         update.
6485         (aarch64_linux_insert_hw_breakpoint): Call
6486         aarch64_get_debug_reg_state earlier.
6487         (aarch64_linux_remove_hw_breakpoint): Likewise.
6488         (aarch64_handle_aligned_watchpoint): Add argument state and
6489         don't call aarch64_get_debug_reg_state.  All callers update.
6490         (aarch64_handle_unaligned_watchpoint): Likewise.
6491         (aarch64_handle_watchpoint): Add argument state.
6492         (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
6493         earlier.
6494         (aarch64_linux_remove_watchpoint): Likewise.
6495
6496 2015-07-17  Yao Qi  <yao.qi@linaro.org>
6497
6498         * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
6499         debug_printf.
6500         (aarch64_handle_unaligned_watchpoint): Likewise.
6501
6502 2015-07-17  Yao Qi  <yao.qi@linaro.org>
6503
6504         * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
6505         argument type's type to 'enum target_hw_bp_type'.
6506         (aarch64_dr_state_remove_one_point): Likewise.
6507         (aarch64_handle_breakpoint): Likewise.
6508         (aarch64_linux_insert_hw_breakpoint): Likewise.
6509         (aarch64_linux_remove_hw_breakpoint): Likewise.
6510         (aarch64_handle_aligned_watchpoint): Likewise.
6511
6512 2015-07-17  Yao Qi  <yao.qi@linaro.org>
6513
6514         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
6515         ptid_get_pid instead of get_thread_id.
6516
6517 2015-07-17  Yao Qi  <yao.qi@linaro.org>
6518
6519         * remote.c (get_current_thread): Initialise ptid to null_ptid.
6520         (add_current_inferior_and_thread): Don't initialise ptid.
6521
6522 2015-07-16  Pierre Langlois  <pierre.langlois@arm.com>
6523
6524         * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
6525         unavailable if invalid.
6526
6527 2015-07-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
6528
6529         Revert the previous 6 commits:
6530         Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6531         Move gdb_regex* to common/
6532         Prepare linux_find_memory_regions_full & co. for move
6533         Move linux_find_memory_regions_full & co.
6534         gdbserver build-id attribute generator
6535         Validate symbol file using build-id
6536
6537 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
6538             Jan Kratochvil  <jan.kratochvil@redhat.com>
6539
6540         Validate symbol file using build-id.
6541         * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
6542         and 'show validate-build-id'.  Add build-id attribute.
6543         * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
6544         * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
6545         * solib-frv.c (_initialize_frv_solib): Ditto.
6546         * solib-spu.c (set_spu_solib_ops): Ditto.
6547         * solib-svr4.c: Include rsp-low.h.
6548         (NOTE_GNU_BUILD_ID_NAME): New define.
6549         (svr4_validate): New function.
6550         (svr4_copy_library_list): Duplicate field build_id.
6551         (library_list_start_library): Parse 'build-id' attribute.
6552         (svr4_library_attributes): Add 'build-id' attribute.
6553         (_initialize_svr4_solib): Assign validate value.
6554         * solib-target.c (solib.h): Include.
6555         (_initialize_solib_target): Assign validate value.
6556         * solib.c (validate_build_id, show_validate_build_id): New.
6557         (solib_map_sections): Use ops->validate.
6558         (clear_so): Free build_id.
6559         (default_solib_validate): New function.
6560         (_initialize_solib): Add "validate-build-id".
6561         * solib.h (default_solib_validate): New declaration.
6562         * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
6563         (target_so_ops): New field 'validate'.
6564
6565 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
6566             Jan Kratochvil  <jan.kratochvil@redhat.com>
6567
6568         gdbserver build-id attribute generator.
6569         * features/library-list-svr4.dtd (library-list-svr4): New
6570         'build-id' attribute.
6571
6572 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
6573             Jan Kratochvil  <jan.kratochvil@redhat.com>
6574
6575         Move linux_find_memory_regions_full & co.
6576         * linux-tdep.c (nat/linux-maps.h): Include.
6577         (gdb_regex.h): Remove the include.
6578         (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
6579         (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
6580         (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
6581         (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
6582         * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
6583         and target/target.h.
6584         (struct smaps_vmflags, read_mapping, decode_vmflags)
6585         (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
6586         (linux_find_memory_regions_full): Move from linux-tdep.c.
6587         * nat/linux-maps.h (read_mapping): New declaration.
6588         (linux_find_memory_region_ftype, enum filterflags): Moved from
6589         linux-tdep.c.
6590         (linux_find_memory_regions_full): New declaration.
6591         * target.c (target/target-utils.h): Include.
6592         (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
6593         (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
6594         definitions to target/target-utils.c.
6595         * target.h (target_fileio_read_stralloc): Move it to target/target.h.
6596         * target/target-utils.c (read_alloc, read_stralloc): Move definitions
6597         from target.c.
6598         * target/target-utils.h (read_alloc_pread_ftype): New typedef.
6599         (read_alloc): New declaration.
6600         (read_stralloc_func_ftype): New typedef.
6601         (read_stralloc): New declaration.
6602         * target/target.h (target_fileio_read_stralloc): Move it from target.h.
6603
6604 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
6605             Jan Kratochvil  <jan.kratochvil@redhat.com>
6606
6607         Prepare linux_find_memory_regions_full & co. for move.
6608         * linux-tdep.c (linux_find_memory_region_ftype): Comment.
6609         (linux_find_memory_regions_full): Change signature and prepare
6610         for moving to linux-maps.
6611         (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
6612         (linux_find_memory_regions_thunk): New.
6613         (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
6614         (linux_find_memory_regions_gdb): New.
6615         (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
6616         (linux_make_mappings_corefile_notes): Use
6617         linux_find_memory_regions_gdb.
6618         * target.c (read_alloc_pread_ftype): New typedef.
6619         (target_fileio_read_alloc_1_pread): New function.
6620         (read_alloc): Refactor from target_fileio_read_alloc_1.
6621         (read_stralloc_func_ftype): New typedef.
6622         (target_fileio_read_alloc_1): New implementation. Use read_alloc.
6623         (read_stralloc): Refactored from target_fileio_read_stralloc.
6624         (target_fileio_read_stralloc): New implementation, use read_stralloc.
6625
6626 2015-07-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
6627
6628         * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
6629         common/gdb_regex.h.
6630         (COMMON_OBS): Add gdb_regex.o.
6631         (gdb_regex.o): New.
6632         * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
6633         --without-included-regex and USE_INCLUDED_REGEX.
6634         * common/gdb_regex.c: New file from utils.c functions.
6635         * common/gdb_regex.h: Move it here from gdb_regex.h, update include
6636         file wrapping define name.
6637         * configure: Rebuilt.
6638         * configure.ac (gdb_use_included_regex, --without-included-regex)
6639         (USE_INCLUDED_REGEX): Move them to common/common.m4.
6640         * gdb_regex.h: Move it to common/gdb_regex.h.
6641         * utils.c: Remove include gdb_regex.h.
6642         (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
6643         (compile_rx_or_error): Move them to common/gdb_regex.c.
6644
6645 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
6646             Jan Kratochvil  <jan.kratochvil@redhat.com>
6647
6648         Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6649         * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
6650         common/target-utils.h.
6651         (COMMON_OBS): Add target-utils.o.
6652         (linux-maps.o, target-utils.o): New.
6653         * target/target-utils.c: New file.
6654         * target/target-utils.h: New file.
6655         * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
6656         * config/i386/linux64.mh (NATDEPFILES): Ditto.
6657         * nat/linux-maps.c: New file.
6658         * nat/linux-maps.h: New file.
6659
6660 2015-07-15  Markus Metzger  <markus.t.metzger@intel.com>
6661             Pedro Alves <palves@redhat.com>
6662
6663         * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
6664         (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
6665         (perf_event_read_bts): Change the type of SIZE and READ.
6666         (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
6667         and DATA_OFFSET.  Move DATA_SIZE declaration.  Restrict the buffer size
6668         to UINT_MAX.  Check for overflows when using DATA_HEAD from the perf
6669         mmap page.
6670         (linux_enable_pt): Change the type of PAGES and SIZE.  Restrict the
6671         buffer size to UINT_MAX.
6672         (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
6673         DATA_TAIL.
6674         * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
6675         <last_head>: Change type.
6676         * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
6677         * common/btrace-common.c (btrace_data_append): Change the type of
6678         SIZE.
6679         * btrace.c (parse_xml_raw): Change the type of SIZE.  Change oddness
6680         check.
6681
6682 2015-07-14  Simon Marchi  <simon.marchi@ericsson.com>
6683
6684         * gdbtypes.h (CHECK_TYPEDEF): Remove.
6685         * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
6686         with check_typedef.
6687         * ada-lang.c (decode_constrained_packed_array_type): Likewise.
6688         (ada_array_length): Likewise.
6689         (find_parallel_type_by_descriptive_type): Likewise.
6690         (ada_check_typedef): Likewise.
6691         * arm-tdep.c (arm_return_in_memory): Likewise.
6692         * ax-gdb.c (gen_trace_static_fields): Likewise.
6693         (gen_struct_ref_recursive): Likewise.
6694         * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6695         (variable: block COLONCOLON name): Likewise.
6696         (qualified_name: TYPENAME COLONCOLON name): Likewise.
6697         * c-lang.c (classify_type): Likewise.
6698         * c-typeprint.c (c_print_type): Likewise.
6699         (c_print_typedef): Likewise.
6700         (c_type_print_base): Likewise.
6701         * c-valprint.c (c_val_print): Likewise.
6702         * compile/compile-c-types.c (convert_type): Likewise.
6703         * compile/compile-object-load.c (get_out_value_type): Likewise.
6704         * completer.c (add_struct_fields): Likewise.
6705         (expression_completer): Likewise.
6706         * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
6707         (cp_lookup_nested_symbol_1): Likewise.
6708         (cp_lookup_nested_symbol): Likewise.
6709         * cp-valprint.c (cp_print_value_fields): Likewise.
6710         (cp_print_static_field): Likewise.
6711         * d-valprint.c (d_val_print): Likewise.
6712         * eval.c (evaluate_subexp_standard): Likewise.
6713         (evaluate_subexp_for_sizeof): Likewise.
6714         * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6715         * f-typeprint.c (f_type_print_base): Likewise.
6716         * f-valprint.c (f_val_print): Likewise.
6717         * gdbtypes.c (get_discrete_bounds): Likewise.
6718         (create_array_type_with_stride): Likewise.
6719         (type_name_no_tag_or_error): Likewise.
6720         (lookup_struct_elt_type): Likewise.
6721         (get_unsigned_type_max): Likewise.
6722         (internal_type_vptr_fieldno): Likewise.
6723         (set_type_vptr_fieldno): Likewise.
6724         (internal_type_vptr_basetype): Likewise.
6725         (set_type_vptr_basetype): Likewise.
6726         (get_vptr_fieldno): Likewise.
6727         (is_integral_type): Likewise.
6728         (is_scalar_type): Likewise.
6729         (is_scalar_type_recursive): Likewise.
6730         (distance_to_ancestor): Likewise.
6731         (is_unique_ancestor_worker): Likewise.
6732         (check_types_equal): Likewise.
6733         * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
6734
6735 2015-07-14  Iain Buclaw  <ibuclaw@gdcproject.org>
6736
6737         * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
6738         also test for language_d.
6739         (dwarf2_compute_name): Likewise.
6740         (read_func_scope): Likewise.
6741         (read_structure_type): Likewise.
6742         (new_symbol_full): Likewise.
6743         (determine_prefix): Likewise.
6744         (read_import_statement): Use dot as the separator for language_d.
6745         (typename_concat): Likewise, but don't prefix the D main function.
6746
6747 2015-07-14  Peter Bergner  <bergner@vnet.ibm.com>
6748
6749         * nat/linux-namespaces.c (setns): Rename from this ...
6750         (do_setns): ... to this.  Support calling setns if it exists.
6751         (mnsh_handle_setns): Call do_setns.
6752
6753 2015-07-13  Yao Qi  <yao.qi@linaro.org>
6754
6755         * exec.c (exec_file_attach): Add period at the end of error
6756         message.
6757
6758 2015-07-13  Andrew Burgess  <andrew.burgess@embecosm.com>
6759
6760         * tui/tui-win.c (window_name_completer): New function.
6761         (focus_completer): Call window_name_completer.  All old content
6762         moved into window_name_completer.
6763         (winheight_completer): New function.
6764         (_initialize_tui_win): Rename variable.  Add completer to
6765         winheight command.  Update doc string on winheight.
6766
6767 2015-07-12  Sandra Loosemore  <sandra@codesourcery.com>
6768
6769         * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
6770         all nios2 mach variants.
6771
6772 2015-07-10  Kevin Buettner  <kevinb@redhat.com>
6773
6774         * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
6775         of target_read_memory.
6776
6777 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
6778
6779         * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
6780         string copy.
6781         (parse_scrolling_args): Likewise.
6782
6783 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
6784
6785         * tui/tui-win.c (focus_completer): Don't duplicate the tui window
6786         names in this function.
6787
6788 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
6789
6790         * tui/tui-data.h (SRC_NAME): Convert to lower case.
6791         (CMD_NAME): Likewise.
6792         (DATA_NAME): Likewise.
6793         (DISASSEM_NAME): Likewise.
6794         * tui/tui-win.c (tui_set_focus): Window names are now lower case.
6795         (tui_set_win_height): Likewise.
6796         (parse_scrolling_args): Likewise.
6797
6798 2015-07-10  Markus Metzger  <markus.t.metzger@intel.com>
6799
6800         * record-btrace.c (record_btrace_goto_begin)
6801         (record_btrace_goto_end, record_btrace_goto): Move call to
6802         print_stack_frame ...
6803         (record_btrace_set_replay): ... here.  Set stop_pc.
6804         * record-full.c (record_full_goto_entry): Set stop_pc.
6805
6806 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6807
6808         * NEWS: Mention support for tracepoints on aarch64-linux.
6809
6810 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6811
6812         * linux-aarch64-low.c (aarch64_supports_tracepoints): New
6813         function.  Return 1.
6814         (the_low_target): Install it.
6815
6816 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6817
6818         * gdb.trace/backtrace.exp: Set registers for aarch64 target.
6819         * gdb.trace/collection.exp: Likewise.
6820         * gdb.trace/mi-trace-frame-collected.exp: Likewise.
6821         * gdb.trace/mi-trace-unavailable.exp: Likewise.
6822         * gdb.trace/report.exp: Likewise.
6823         * gdb.trace/trace-break.exp: Likewise.
6824         * gdb.trace/unavailable.exp: Likewise.
6825         * gdb.trace/while-dyn.exp: Likewise.
6826
6827 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6828
6829         * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
6830         (aarch64_gen_return_address): New function.
6831         (aarch64_gdbarch_init): Hook it.
6832
6833 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6834
6835         * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
6836         swallow NOT_AVAILABLE_ERROR.
6837         (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
6838         available_p is not set.
6839         (aarch64_stub_frame_unwind_stop_reason): New function.
6840         (aarch64_stub_unwind): Install it.
6841
6842 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6843
6844         * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
6845         field.
6846         (aarch64_make_prologue_cache_1): New function, factored out from
6847         aarch64_make_prologue_cache.  Do not allocate cache.  Set
6848         available_p.
6849         (aarch64_make_prologue_cache): Reimplement wrapping
6850         aarch64_make_prologue_cache_1, and swallowing
6851         NOT_AVAILABLE_ERROR.
6852         (aarch64_prologue_frame_unwind_stop_reason): New function.
6853         Return UNWIND_UNAVAILABLE if available_p is not set.
6854         (aarch64_prologue_unwind): Install it.
6855         (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
6856         checks into aarch64_prologue_frame_unwind_stop_reason.  Call
6857         frame_id_build_unavailable_stack if available_p is not set.
6858
6859 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6860
6861         * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
6862         fields.
6863         (aarch64_scan_prologue): Set prev_pc.
6864         (aarch64_make_prologue_cache): Set func.
6865         (aarch64_make_stub_cache): Set prev_pc.
6866         (aarch64_prologue_this_id): Remove local variables id, pc and
6867         func.  Read prev_pc and func from cache.
6868         (aarch64_stub_this_id): Read prev_pc from cache.
6869
6870 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6871
6872         * aarch64-tdep.c (aarch64_make_stub_cache): Update comment.  New
6873         argument this_cache.  Remove unused local variables reg and
6874         unwound_fp.  Return early if this_cache is already set.  Set
6875         this_cache.
6876         (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
6877
6878 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6879
6880         * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
6881         New argument this_cache.  Return early if this_cache is already
6882         set.  Set this_cache.
6883         (aarch64_prologue_this_id): Update call to
6884         aarch64_make_prologue_cache.
6885         (aarch64_prologue_prev_register): Likewise.
6886         (aarch64_normal_frame_base): Likewise.
6887
6888 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6889
6890         * c-valprint.c (c_val_print): Factor out memberptr printing code
6891         from c_val_print to ...
6892         (c_val_print_memberptr): ... this new function.
6893
6894 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6895
6896         * c-valprint.c (c_val_print): Factor out int printing code to ...
6897         (c_val_print_int): ... this new function.
6898
6899 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6900
6901         * c-valprint.c (c_val_print): Factor out struct and union
6902         printing code to ...
6903         (c_val_print_struct): ... this new function ...
6904         (c_val_print_union): ... and this new function.
6905
6906 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6907
6908         * c-valprint.c (c_val_print): Factor out pointer printing code
6909         to ...
6910         (c_val_print_ptr): ... this new function.
6911
6912 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6913
6914         * c-valprint.c (c_valprint): Factor our array printing code from
6915         c_val_print to ...
6916         (c_val_print_array): ... this new function.
6917
6918 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6919
6920         * c-valprint.c (c_val_print): Factor out pointer printing code
6921         to ...
6922         (print_unpacked_pointer): ... this new function.
6923
6924 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6925
6926         * c-valprint.c (c_val_print): Remove an assignment to i and move
6927         its declaration.
6928
6929 2015-07-09  Yao Qi  <yao.qi@linaro.org>
6930
6931         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
6932         argument ptid.  Update comments.  Caller update.
6933
6934 2015-07-09  Markus Metzger  <markus.t.metzger@intel.com>
6935
6936         * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
6937         mnt packets.
6938
6939 2015-07-09  Markus Metzger  <markus.t.metzger@intel.com>
6940
6941         * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
6942
6943 2015-07-08  Simon Marchi  <simon.marchi@ericsson.com>
6944
6945         * progspace.c (delete_program_space): Add missing spaces.
6946
6947 2015-07-08  Simon Marchi  <simon.marchi@ericsson.com>
6948
6949         * inferior.c (delete_inferior_1): Rename to ...
6950         (delete_inferior): ..., remove 'silent' parameter, delete
6951         program space when unused and remove call to prune_program_spaces.
6952         Remove the old, unused, delete_inferior.
6953         (delete_inferior_silent): Remove.
6954         (prune_inferiors): Change call from delete_inferior_1 to
6955         delete_inferior and remove 'silent' parameter. Remove call to
6956         prune_program_spaces.
6957         (remove_inferior_command): Idem.
6958         * inferior.h (delete_inferior_1): Rename to...
6959         (delete_inferior): ..., remove 'silent' parameter and remove the
6960         original delete_inferior.
6961         (delete_inferior_silent): Remove.
6962         * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
6963         delete_inferior_1 to delete_inferior and remove 'silent'
6964         parameter.
6965         * progspace.c (prune_program_spaces): Remove.
6966         (pspace_empty_p): Rename to...
6967         (program_space_empty_p): ... and make non-static.
6968         (delete_program_space): New.
6969         * progspace.h (prune_program_spaces): Remove declaration.
6970         (program_space_empty_p): New declaration.
6971         (delete_program_space): New declaration.
6972         * monitor.c (monitor_close): Replace call to
6973         delete_thread_silent and delete_inferior_silent with
6974         discard_all_inferiors.
6975
6976 2015-07-08  Patrick Palka  <patrick@parcs.ath.cx>
6977
6978         * defs.h (deprecated_register_changed_hook): Remove prototype.
6979         * interps.c (clear_iterpreter_hooks): Remove reference to
6980         deprecated_register_changed_hook.
6981         * top.c (deprecated_register_changed_hook): Remove prototype.
6982         * valops.c (value_assign): Remove reference to
6983         deprecated_register_changed_hook.
6984         * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
6985         Add comment documenting the function.
6986         (tui_register_changed_observer): Define.
6987         (tui_install_hooks): Remove reference to
6988         deprecated_register_changed_hook.  Set
6989         tui_register_changed_observer.
6990         (tui_remove_hooks): Remove reference to
6991         deprecated_register_changed_hook.  Unset
6992         tui_register_changed_observer.
6993
6994 2015-07-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
6995
6996         PR compile/18484
6997         * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
6998
6999 2015-07-08  Robert O'Callahan  <robert@ocallahan.org>
7000
7001         PR exp/18617
7002         * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
7003
7004 2015-07-08  Markus Metzger  <markus.t.metzger@intel.com>
7005
7006         * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
7007
7008 2015-07-08  Markus Metzger  <markus.t.metzger@intel.com>
7009
7010         * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
7011         Use safe_strerror() instead of strerror().
7012
7013 2015-07-07  Yao Qi  <yao.qi@linaro.org>
7014
7015         * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
7016         * features/arm-with-m-fpa-layout.c: Regenerated.
7017         * features/arm-with-m-vfp-d16.xml: Likewise.
7018         * features/arm-with-m-vfp-d16.c: Regenerated.
7019         * features/arm-with-m.xml: Likewise.
7020         * features/arm-with-m.c: Regenerated.
7021         * features/arm-with-neon.xml: Likewise.
7022         * features/arm-with-neon.c: Regenerated.
7023         * features/arm-with-vfpv2.xml: Likewise.
7024         * features/arm-with-vfpv2.c: Regenerated.
7025         * features/arm-with-vfpv3.xml: Likewise.
7026         * features/arm-with-vfpv3.c: Regenerated.
7027
7028 2015-07-07  Yao Qi  <yao.qi@linaro.org>
7029
7030         * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
7031         arm-linux-nat.c.
7032         * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
7033         elf/external.h.
7034         (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
7035         if target is 32-bit.
7036         (store_gregs_to_thread): Call aarch32_gp_regcache_collect
7037         if target is 32-bit.
7038         (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
7039         if target is 32-bit.
7040         (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
7041         if target is 32-bit.
7042         (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
7043         (aarch64_linux_read_description): Return the right target
7044         description.
7045         * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
7046         * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
7047         * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
7048         arm-linux-tdep.o.
7049
7050 2015-07-07  Yao Qi  <yao.qi@linaro.org>
7051
7052         * aarch32-linux-nat.c: New file.
7053         * aarch32-linux-nat.h: New file.
7054         * arm-linux-nat.c: Include aarch32-linux-nat.h.
7055         (fetch_regs): Move code to aarch32-linux-nat.c.  Call
7056         aarch32_gp_regcache_supply.
7057         (store_regs): Move code to aarch32-linux-nat.c.  Call
7058         aarch32_gp_regcache_collect.
7059         (fetch_vfp_regs): Move code to aarch32-linux-nat.c.  Call
7060         aarch32_vfp_regcache_supply.
7061         (store_vfp_regs): Move code to aarch32-linux-nat.c.  Call
7062         aarch32_vfp_regcache_collect.
7063         * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
7064
7065 2015-07-07  Yao Qi  <yao.qi@linaro.org>
7066
7067         * arm-linux-nat.c (store_fpregister): Remove.
7068         (store_register): Likewise.
7069         (fetch_fpregister): Likewise.
7070         (fetch_register): Likewise.
7071         (arm_linux_store_inferior_registers): Call store_regs and
7072         store_fpregs instead.
7073         (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
7074         fetch_regs instead.
7075
7076 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
7077
7078         * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
7079         and focus commands.
7080
7081 2015-07-06  Joel Brobecker  <brobecker@adacore.com>
7082
7083         * NEWS: Create a new section for the next release branch.
7084         Rename the section of the current branch, now that it has
7085         been cut.
7086
7087 2015-07-06  Joel Brobecker  <brobecker@adacore.com>
7088
7089         GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
7090         * version.in: Bump version to 7.10.50.DATE-cvs.
7091
7092 2015-07-06  Luis Machado  <lgustavo@codesourcery.com>
7093
7094         * breakpoint.c (remove_breakpoint_1): Don't handle permanent
7095         breakpoints in a special way.
7096         (remove_breakpoint): Likewise.
7097         (mark_breakpoints_out): Likewise.
7098
7099 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
7100
7101         * doc/gdb.texinfo (TUI): Add comma after @xref.
7102
7103 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
7104
7105         * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
7106         instead of casting the structure type.
7107
7108 2015-07-06  Simon Marchi  <simon.marchi@ericsson.com>
7109
7110         * valops.c (search_struct_field): Remove OFFSET parameter.
7111         (value_cast_structs): Adjust calls to search_struct_field.
7112         (value_struct_elt): Same.
7113         (find_overload_match): Same.
7114
7115 2015-07-06  Simon Marchi  <simon.marchi@ericsson.com>
7116
7117         * value.c (value_fetch_lazy): Update comment, change return
7118         value to void.
7119         * value.h (value_fetch_lazy): Change return value to void.
7120
7121 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
7122
7123         * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
7124         (tui_win_name): Make parameter and result const.
7125         * tui/tui-data.h (tui_win_name): Make parameter and result const.
7126
7127 2015-07-06  Patrick Palka  <patrick@parcs.ath.cx>
7128
7129         * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
7130         use printf_unfiltered.
7131         (set_mpx_cmd): Add missing trailing space to command string
7132         literal.
7133         (_initialize_i386_tdep): Give the "mpx" prefix command its
7134         correct name.
7135
7136 2015-07-02  Kevin Buettner  <kevinb@redhat.com>
7137
7138         * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
7139         (enum rx_frame_type): New.
7140         (struct rx_prologue): Add new field `frame_type'.
7141         (rx_analyze_prologue): Add `frame_type' parameter. Cache this
7142         parameter in the prologue struct.  Add code for recording
7143         locations of PC and PSW for fast interrupt and exception frames.
7144         (rx_skip_prologue): Adjust call to rx_analyze_prologue.
7145         (rx_analyze_frame_prologue): Add `frame_type' parameter.
7146         (rx_frame_type): New function.
7147         (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
7148         (rx_frame_this_id): Rename parameter `this_prologue_cache' to
7149         `this_cache'.
7150         (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
7151         `this_cache'.  Add cases for RX_FRAME_TYPE_EXCEPTION and
7152         RX_FRAME_TYPE_FAST_INTERRUPT.
7153         (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
7154         (rx_frame_sniffer, rx_exception_sniffer): New functions.
7155         (rx_frame_unwind): Use rx_frame_sniffer instead of
7156         default_frame_sniffer.
7157         (rx_frame_unwind): New unwinder.
7158         (rx_gdbarch_init): Register new unwinder.
7159
7160 2015-07-02  Kevin Buettner  <kevinb@redhat.com>
7161
7162         * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
7163         (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
7164         (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
7165         and RX_FPSW_REGNUM.
7166         (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
7167
7168 2015-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
7169
7170         Fix GCC false warning.
7171         * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
7172
7173 2015-07-02  Yao Qi  <yao.qi@linaro.org>
7174
7175         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
7176         typo in the debugging message.
7177
7178 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
7179
7180         * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
7181         (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
7182         (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
7183         (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
7184         (btrace_maint_clear): New.
7185         (btrace_fetch, btrace_clear): Call btrace_maint_clear.
7186         (pt_print_packet, btrace_maint_decode_pt)
7187         (btrace_maint_update_pt_packets, btrace_maint_update_packets)
7188         (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
7189         (maint_btrace_packet_history_cmd)
7190         (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
7191         (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
7192         (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
7193         (maint_info_btrace_cmd, _initialize_btrace): New.
7194         * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
7195         (btrace_maint_packet_history, btrace_maint_info): New.
7196         (btrace_thread_info) <maint>: New.
7197         * NEWS: Announce it.
7198
7199 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
7200
7201         * btrace.c (btrace_fetch): Append the new trace data.
7202         (btrace_clear): Clear the stored trace data.
7203         * btrace.h (btrace_thread_info) <data>: New.
7204         * common/btrace-common.h (btrace_data_clear)
7205         (btrace_data_append): New.
7206         * common/btrace-common.c (btrace_data_clear)
7207         (btrace_data_append): New.
7208
7209 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
7210
7211         * nat/linux-btrace.c (linux_enable_bts): Check for
7212         PERF_ATTR_SIZE_VER5.
7213         Check for data_offset and data_size fields.  Use them.
7214
7215 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
7216
7217         * NEWS: Announce new commands "record btrace pt" and "record pt".
7218         Announce new options "set|show record btrace pt buffer-size".
7219         * btrace.c: Include "rsp-low.h".
7220         Include "inttypes.h".
7221         (btrace_add_pc): Add forward declaration.
7222         (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
7223         (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
7224         (btrace_compute_ftrace_pt): New.
7225         (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
7226         (check_xml_btrace_version): Update version check.
7227         (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
7228         (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
7229         (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
7230         (btrace_pt_children): New.
7231         (btrace_children): Add support for "pt".
7232         (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
7233         (btrace_conf_children): Add support for "pt".
7234         * btrace.h: Include "intel-pt.h".
7235         (btrace_pt_error): New.
7236         * common/btrace-common.c (btrace_format_string, btrace_data_fini)
7237         (btrace_data_empty): Support BTRACE_FORMAT_PT.
7238         * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
7239         (struct btrace_config_pt): New.
7240         (struct btrace_config)<pt>: New.
7241         (struct btrace_data_pt_config, struct btrace_data_pt): New.
7242         (struct btrace_data)<pt>: New.
7243         * features/btrace-conf.dtd (btrace-conf)<pt>: New.
7244         (pt): New.
7245         * features/btrace.dtd (btrace)<pt>: New.
7246         (pt, pt-config, cpu): New.
7247         * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
7248         (perf_event_pt_event_type, kernel_supports_pt)
7249         (linux_supports_pt): New.
7250         (linux_supports_btrace): Support BTRACE_FORMAT_PT.
7251         (linux_enable_bts): Free tinfo on error.
7252         (linux_enable_pt): New.
7253         (linux_enable_btrace): Support BTRACE_FORMAT_PT.
7254         (linux_disable_pt): New.
7255         (linux_disable_btrace): Support BTRACE_FORMAT_PT.
7256         (linux_fill_btrace_pt_config, linux_read_pt): New.
7257         (linux_read_btrace): Support BTRACE_FORMAT_PT.
7258         * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
7259         (struct btrace_target_info)<pt>: New.
7260         * record-btrace.c (set_record_btrace_pt_cmdlist)
7261         (show_record_btrace_pt_cmdlist): New.
7262         (record_btrace_print_pt_conf): New.
7263         (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
7264         (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
7265         (cmd_record_btrace_pt_start): New.
7266         (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
7267         (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
7268         (_initialize_record_btrace): Add new commands.
7269         * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
7270         (remote_protocol_features): Add "Qbtrace:pt".
7271         Add "Qbtrace-conf:pt:size".
7272         (remote_supports_btrace): Support BTRACE_FORMAT_PT.
7273         (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
7274         (remote_enable_btrace): Support BTRACE_FORMAT_PT.
7275         (_initialize_remote): Add new commands.
7276
7277 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
7278
7279         * configure.ac: check for libipt
7280         * configure: Regenerate.
7281         * config.in: Regenerate.
7282         * Makefile.in (LIBIPT): New.
7283         (CLIBS): Add $LIBIPT.
7284         * NEWS: document new configure options
7285
7286 2015-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
7287
7288         * compile/compile-object-load.c (compile_object_load): Replace debug
7289         message "lookup undefined ELF symbol" by 3 more specific messages.
7290
7291 2015-07-01  Kevin Buettner  <kevinb@redhat.com>
7292
7293         * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
7294         (rl78_register_type): Add case for RL78_PSW_REGNUM.
7295         (rl78_gdbarch_init): Initialize rl78_psw_type.
7296
7297 2015-07-01  Patrick Palka  <patrick@parcs.ath.cx>
7298
7299         * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
7300         Update commentary.  Always refresh the registers when frame
7301         information has changed.
7302         * tui/tui-stack.c (tui_show_frame_info): Update commentary.
7303         Change return type to int.  Return 1 if frame information has
7304         changed, 0 otherwise.
7305         (tui_before_prompt): Update commentary.
7306         * tui/tui-stack.h (tui_show_frame_info): Change return type to
7307         int.
7308
7309 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
7310
7311         PR tui/13378
7312         * frame.c (select_frame): Remove reference to
7313         deprecated_selected_frame_level_changed_hook.
7314         * frame.h (deprecated_selected_frame_level_changed_hook): Remove
7315         declaration.
7316         * stack.c (deprecated_selected_frame_level_changed_hook):
7317         Likewise.
7318         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
7319         Rename to ...
7320         (tui_refresh_frame_and_register_information): ... this.  Bail
7321         out if there is no stack.  Don't update register information
7322         unless registers_too_p is true.
7323         (tui_print_frame_info_listing_hook): Rename to ...
7324         (tui_dummy_print_frame_info_listing_hook): ... this.
7325         (tui_before_prompt): New function.
7326         (tui_normal_stop): New function.
7327         (tui_before_prompt_observer): New observer.
7328         (tui_normal_stop_observer): New observer.
7329         (tui_install_hooks): Set
7330         deprecated_print_frame_info_listing_hook to
7331         tui_dummy_print_frame_info_listing_hook.  Register
7332         tui_before_prompt_observer to call tui_before_prompt and
7333         tui_normal_stop_observer to call tui_normal_stop.  Remove
7334         reference to deprecated_selected_frame_level_changed_hook.
7335         (tui_remove_hooks): Detach and unset tui_before_prompt_observer
7336         and tui_normal_stop_observer.  Remove reference to
7337         deprecated_selected_frame_level_changed_hook.
7338
7339 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
7340
7341         PR tui/13378
7342         * tui/tui-stack.c (tui_set_locator_info): Change prototype to
7343         return an int instead of void.  Return whether the locator
7344         window has changed.
7345         (tui_show_frame_info): If the locator info has not changed, then
7346         bail out early to avoid refreshing the windows.
7347
7348 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
7349
7350         * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
7351         LOCATOR_WIN to tui_alloc_content.
7352
7353 2015-06-30  Yao Qi  <yao.qi@linaro.org>
7354
7355         PR tdep/18605
7356         * arm-tdep.c (arm_get_next_pc_raw): Break for media
7357         instructions.
7358
7359 2015-06-29  Kevin Buettner  <kevinb@redhat.com>
7360
7361         * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
7362         (rx_dwarf_reg_to_regnum): New function.
7363         (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum.  Use dwarf2
7364         unwinding.
7365
7366 2015-06-29  Pedro Alves  <palves@redhat.com>
7367
7368         PR threads/18127
7369         * infcall.c (run_inferior_call): On infcall success, if the thread
7370         was marked stopped before, reset it back to stopped.
7371         * infrun.c (resume): Don't suppress the set_running calls when
7372         doing an infcall.
7373         (normal_stop): Only discard the finish_thread_state cleanup if the
7374         infcall succeeded.
7375
7376 2015-06-29  Pierre Langlois  <pierre.langlois@arm.com>
7377
7378         * MAINTAINERS (Write After Approval): Update my email address.
7379
7380 2015-06-26  Keith Seitz  <keiths@redhat.com>
7381             Doug Evans  <dje@google.com>
7382
7383         PR 16253
7384         * block.c (block_lookup_symbol): For non-function blocks,
7385         continue to search for a symbol with an exact domain match
7386         Otherwise, return any previously found "best domain" symbol.
7387         (block_lookup_symbol_primary): Likewise.
7388
7389 2015-06-26  Patrick Palka  <patrick@parcs.ath.cx>
7390
7391         * NEWS: Mention the new option "history remove-duplicates".
7392         * top.c (history_remove_duplicates): New static variable.
7393         (show_history_remove_duplicates): New static function.
7394         (gdb_add_history): Conditionally remove duplicate history
7395         entries.
7396         (init_main): Add "history remove-duplicates" option.
7397
7398 2015-06-26  Patrick Palka  <patrick@parcs.ath.cx>
7399
7400         * tui/tui-win.c (focus_completer): New static function.
7401         (_initialize_tui_win): Set the completion function of the
7402         "focus" command to focus_completer.
7403
7404 2015-06-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
7405
7406         * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
7407         and language_asm..
7408         * symtab.c (find_function_start_sal): Likewise.
7409
7410 2015-06-25  Gary Benson  <gbenson@redhat.com>
7411
7412         * solib.c (solib_find_1): Set local variable sysroot to NULL if
7413         it is the empty string after trailing slashes have been stripped.
7414
7415 2015-06-25  Gary Benson  <gbenson@redhat.com>
7416
7417         * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
7418         * infrun.c (follow_exec): Likewise.
7419         * remote.c (remote_filesystem_is_local): Likewise.
7420         * solib.c (solib_find_1): Likewise.
7421
7422 2015-06-24  Keith Seitz  <keiths@redhat.com>
7423
7424         * build-id.c (build_id_to_debug_bfd): Add cleanup to free
7425         return value from lrealpath.
7426
7427 2015-06-24  Mike Frysinger  <vapier@gentoo.org>
7428
7429         * remote-sim.c (gdbsim_open): Move sysroot update to the top.
7430
7431 2015-06-24  Mike Frysinger  <vapier@gentoo.org>
7432
7433         * remote-sim.c: Include gdb_bfd.h.
7434         (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
7435         Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
7436
7437 2015-06-24  Yao Qi  <yao.qi@linaro.org>
7438
7439         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
7440         set_gdbarch_get_siginfo_type.
7441         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
7442         * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
7443         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
7444         * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
7445         * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
7446         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
7447         * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
7448         * linux-tdep.c (linux_get_siginfo_type): Change it to static.
7449         (linux_init_abi): Call set_gdbarch_get_siginfo_type.
7450         * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
7451
7452 2015-06-24  Gary Benson  <gbenson@redhat.com>
7453
7454         * common/buffer.c (stdint.h): Do not include.
7455         * common/print-utils.c (stdint.h): Likewise.
7456         * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
7457         * compile/compile-c-types.c (gdb_assert.h): Likewise.
7458         * ft32-tdep.c (gdb_assert.h): Likewise.
7459         * guile/scm-utils.c (stdint.h): Likewise.
7460         * i386-linux-tdep.c (stdint.h): Likewise.
7461         * i386-tdep.c (stdint.h): Likewise.
7462         * nat/linux-btrace.c (stdint.h): Likewise.
7463         * nat/linux-btrace.h (stdint.h): Likewise.
7464         * nat/linux-ptrace.c (stdint.h): Likewise.
7465         * nat/mips-linux-watch.h (stdint.h): Likewise.
7466         * ppc-linux-nat.c (stdint.h): Likewise.
7467         * python/python-internal.h (stdint.h): Likewise.
7468         * stub-termcap.c (stdlib.h): Likewise.
7469         * target/target.h (stdint.h): Likewise.
7470         * xtensa-linux-nat.c (stdint.h): Likewise.
7471
7472 2015-06-23  Patrick Palka  <patrick@parcs.ath.cx>
7473
7474         * top.c (init_history): Look at errno after calling strtol to
7475         properly map large GDBHISTSIZE values to infinity.
7476
7477 2015-06-23  Doug Evans  <dje@google.com>
7478
7479         * inferior.h (struct inferior_suspend_state): Delete, unused.
7480         All references deleted.
7481
7482 2015-06-23  Mike Frysinger  <vapier@gentoo.org>
7483
7484         * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
7485         (microblaze_push_dummy_call): Likewise.
7486         (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
7487         and set_gdbarch_push_dummy_call.
7488
7489 2015-06-23  Yao Qi  <yao.qi@linaro.org>
7490
7491         * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
7492         Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
7493         (amd64_linux_store_inferior_registers): Likewise.
7494         * arm-linux-nat.c (fetch_fpregister): Likewise.
7495         (fetch_fpregs, store_fpregister): Likewise.
7496         (store_fpregister, store_fpregs): Likewise.
7497         (fetch_register, fetch_regs): Likewise.
7498         (store_register, store_regs): Likewise.
7499         (fetch_vfp_regs, store_vfp_regs): Likewise.
7500         (arm_linux_read_description): Check have_ptrace_getregset is
7501         TRIBOOL_UNKNOWN.  Set have_ptrace_getregset to TRIBOOL_TRUE
7502         or TRIBOOL_FALSE.
7503         * i386-linux-nat.c (fetch_xstateregs): Check
7504         have_ptrace_getregset is not TRIBOOL_TRUE.
7505         (store_xstateregs): Likewise.
7506         * linux-nat.c (have_ptrace_getregset): Change its type to
7507         enum tribool.
7508         * linux-nat.h (tribool): New enum.
7509         * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
7510         Check whether have_ptrace_getregset is TRIBOOL_TRUE.
7511
7512 2015-06-19  Doug Evans  <dje@google.com>
7513
7514         * NEWS: Mention Sun's version of stabs is no longer supported.
7515         * elfread.c (free_elfinfo): Delete.  All uses updated.
7516         (elfstab_offset_sections): Delete.  All uses updated.
7517         * gdb-stabs.h (stab_section_info): Delete.  All uses updated.
7518         * psympriv.h (partial_symtab) <section_offsets>: Delete.
7519         All uses updated.
7520         * psymtab.c (start_psymtab_common): Delete arg section_offsets.
7521         All callers updated.
7522
7523 2015-06-18  Simon Marchi  <simon.marchi@ericsson.com>
7524
7525         * common/rsp-low.c (needs_escaping): New.
7526         (remote_escape_output): Add unit_size parameter. Refactor to
7527         support multi-byte addressable units.  Rename parameters.
7528         * common/rsp-low.h (remote_escape_output): Add unit_size
7529         parameter and rename others. Update doc.
7530         * remote.c (align_for_efficient_write): New.
7531         (remote_write_bytes_aux): Add unit_size parameter and use it.
7532         Rename some variables.  Update doc.
7533         (remote_xfer_partial): Get unit size and use it.
7534         (remote_read_bytes_1): Add unit_size parameter and use it.
7535         Rename some variables. Update doc.
7536         (remote_write_bytes): Same.
7537         (remote_xfer_live_readonly_partial): Same.
7538         (remote_read_bytes): Same.
7539         (remote_flash_write): Update call to remote_write_bytes_aux.
7540         (remote_write_qxfer): Update call to remote_escape_output.
7541         (remote_search_memory): Same.
7542         (remote_hostio_pwrite): Same.
7543
7544 2015-06-17  Luis Machado  <lgustavo@codesourcery.com>
7545
7546         * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
7547         locations as inserted.
7548         Update and expand comment about permanent locations.
7549         (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
7550         Move comment to add_location_to_breakpoint.
7551         (update_global_location_list): Don't error out if a permanent
7552         breakpoint is not marked inserted.
7553         Don't error out if a non-permanent breakpoint location is inserted on
7554         top of a permanent breakpoint.
7555
7556 2015-06-17  Luis Machado  <lgustavo@codesourcery.com>
7557
7558         * breakpoint.c (make_breakpoint_permanent): Remove unused
7559         function.
7560         * breakpoint.h (make_breakpoint_permanent): Remove declaration.
7561
7562 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
7563
7564         PR gdb/16999
7565         * NEWS: Mention new GDBHISTSIZE behavior.
7566         * top.c (init_history): For null or out-of-range GDBHISTSIZE,
7567         set history size to unlimited.  Ignore non-numeric GDBHISTSIZE.
7568
7569 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
7570
7571         * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
7572         * top.c (init_history): Read from GDBHISTSIZE instead of
7573         HISTSIZE.
7574         (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
7575
7576 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
7577
7578         * top.c (gdb_safe_append_history): Do not call
7579         history_truncate_file if the history is not stifled.
7580
7581 2015-06-17  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7582
7583         * syscalls/s390-linux.xml: Add syscalls 344 through 354.
7584         * syscalls/s390x-linux.xml: Likewise.
7585
7586 2015-06-16  Michael Eager  <eager@eagercon.com>
7587
7588         * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
7589
7590 2015-06-16  Patrick Palka  <patrick@parcs.ath.cx>
7591
7592         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
7593         target_terminal_ours_for_output() before calling
7594         tui_show_frame_info(), and restore the original terminal
7595         settings afterwards.
7596
7597 2015-06-16  Martin Simmons  <martin@lispworks.com>  (tiny patch)
7598
7599         * arm-linux-nat.c: Include nat/linux-ptrace.h.
7600
7601 2015-06-15  Simon Marchi  <simon.marchi@ericsson.com>
7602
7603         * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
7604         memory unit size.
7605         (mi_cmd_data_write_memory_bytes): Same.
7606
7607 2015-06-15  Simon Marchi  <simon.marchi@ericsson.com>
7608
7609         * corefile.c (write_memory): Update doc.
7610         * gdbcore.h (write_memory): Same.
7611
7612 2015-06-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
7613
7614         * linux-tdep.c (enum filterflags): Make it from anonymous enum.
7615         (dump_mapping_p): Use it for parameter filterflags.
7616         (linux_find_memory_regions_full): Use it for variable filterflags.
7617
7618 2015-06-15  Aleksandar Ristovski  <aristovski@qnx.com
7619             Jan Kratochvil  <jan.kratochvil@redhat.com>
7620
7621         Merge multiple hex conversions.
7622         * monitor.c: Include rsp-low.h.
7623         (fromhex): Remove definition.
7624
7625 2015-06-15  Aleksandar Ristovski  <aristovski@qnx.com
7626             Jan Kratochvil  <jan.kratochvil@redhat.com>
7627
7628         Move utility functions to common/.
7629         * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
7630         Move defs to common/common-utils.c.
7631         * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
7632         (skip_to_space_const): Move decls to common/common-utils.h.
7633         * common/common-defs.h: Move include of common-types.h before
7634         common-utils.h.
7635         * common/common-utils.c: Include host-defs.h and ctype.h.
7636         (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
7637         from utils.c.
7638         (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
7639         cli/cli-utils.c.
7640         * common/common-utils.h (strtoulst): Move decl from utils.h.
7641         (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
7642         Move from cli/cli-utils.h.
7643         * common/host-defs.h: Include limits.h.
7644         (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
7645         (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
7646         * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
7647         common/common-utils.h.
7648         * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
7649         (strtoulst): Move to common/common-utils.c.
7650         * utils.h (strtoulst): Moved decl to common/common-utils.h.
7651
7652 2015-06-15  Yao Qi  <yao.qi@linaro.org>
7653
7654         * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
7655
7656 2015-06-10  Jon Turney  <jon.turney@dronecode.org.uk>
7657
7658         * build-id.c: Don't include elf-bfd.h.
7659         (build_id_bfd_get): Use bfd_build_id.
7660         (build_id_verify): Ditto.
7661         * build-id.h: Ditto.
7662         (find_separate_debug_file_by_buildid): Ditto.
7663         * python/py-objfile.c: Don't include elf-bfd.h.
7664         (objfpy_get_build_id) Use bfd_build_id.
7665         (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
7666         * coffread.c: Include build-id.h.
7667         (coff_symfile_read): Try find_separate_debug_file_by_buildid.
7668
7669 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
7670
7671         * windows-nat.c (do_windows_fetch_inferior_registers)
7672         (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
7673         conditional with __CYGWIN__.
7674
7675 2015-06-13  Andrew Burgess  <andrew.burgess@embecosm.com>
7676
7677         * completer.c: Add arch-utils.h include.
7678         (enum reg_completer_targets): New enum.
7679         (reg_or_group_completer_1): New function containing old
7680         reg_or_group_completer, add and use new parameter to control what
7681         is completed on.  Use get_current_arch rather than architecture of
7682         currently selected frame.
7683         (reg_or_group_completer): Call new reg_or_group_completer_1.
7684         (reggroup_completer): Call new reg_or_group_completer_1.
7685         * completer.h (reggroup_completer): Add declaration.
7686         * tui/tui-regs.c: Add 'completer.h' include.
7687         (tui_reg_next_command): Renamed to...
7688         (tui_reg_next): ...this.  Adjust parameters and return rather than
7689         display new group.
7690         (tui_reg_prev_command): Renamed to...
7691         (tui_reg_prev): ...this.  Adjust parameters and return rather than
7692         display new group.
7693         (tui_reg_float_command): Delete.
7694         (tui_reg_general_command): Delete.
7695         (tui_reg_system_command): Delete.
7696         (tui_reg_command): Rewrite to perform switching of register group.
7697         Add header comment.
7698         (tuireglist): Remove.
7699         (tui_reggroup_completer): New function.
7700         (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
7701         creation of 'tui reg' command.
7702         * NEWS: Add comment about 'tui reg' changes.
7703
7704 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
7705
7706         * target.c (target_read): Consider addressable unit size when
7707         reading from a memory object.
7708         (read_memory_robust): Same.
7709         (read_whatever_is_readable): Same.
7710         (target_write_with_progress): Consider addressable unit size
7711         when writing to a memory object.
7712         * target.h (target_read): Update documentation.
7713         (target_write): Add documentation.
7714
7715 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
7716
7717         * arch-utils.h (default_addressable_memory_unit_size): New.
7718         * arch-utils.c (default_addressable_memory_unit_size): New.
7719         * gdbarch.sh (addressable_memory_unit_size): New.
7720         * gdbarch.h: Re-generate.
7721         * gdbarch.c: Re-generate.
7722
7723 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
7724
7725         * target.c (target_read): Rename variables and use
7726         TARGET_XFER_E_IO.
7727         (target_read_with_progress): Same.
7728         (read_memory_robust): Constify parameters and rename
7729         variables.
7730         (read_whatever_is_readable): Constify parameters,
7731         rename variables, adjust formatting.
7732         * target.h (read_memory_robust): Constify parameters.
7733
7734 2015-06-12  Ulrich Weigand  <uweigand@de.ibm.com>
7735
7736         * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
7737         synthetic (non-AltiVec) vector types.
7738         (ppc64_sysv_abi_return_value): Likewise.
7739
7740 2015-06-12  Antoine Tremblay  <antoine.tremblay@ericsson.com>
7741
7742         PR breakpoints/16465
7743         * breakpoint.c (create_breakpoint): Save extra_string for
7744         pending breakpoints.
7745
7746 2015-06-10  Walfred Tedeschi  <walfred.tedeschi@intel.com>
7747
7748         * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
7749         and bt_mask to CORE_ADDR.
7750
7751 2015-06-11  Gary Benson <gbenson@redhat.com>
7752
7753         * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
7754         (mnsh_recv_message): Likewise.
7755
7756 2015-06-11  Walfred Tedeschi  <walfred.tedeschi@intel.com>
7757
7758         * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
7759         long long int and plongest instead of %ll.
7760
7761 2015-06-11  Gary Benson <gbenson@redhat.com>
7762
7763         * nat/linux-namespaces.c (gdb_wait.h): New include.
7764         (sys/wait.h): Do not include.
7765
7766 2015-06-10  Simon Marchi  <simon.marchi@ericsson.com>
7767
7768         * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
7769         end_sequence is true.
7770
7771 2015-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
7772
7773         Code cleanup.
7774         * solib-target.c (library_list_start_list): Use explicit NULL
7775         comparison.
7776
7777 2015-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
7778
7779         * solib-target.c (library_list_start_list): Do not dereference
7780         variable version in its initialization.  Make the VERSION check handle
7781         NULL.
7782         (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
7783
7784 2015-06-10  Gary Benson <gbenson@redhat.com>
7785
7786         * NEWS: Announce support for direct access of executable and
7787         shared library files when attaching to inferiors in containers
7788         on GNU/Linux systems.
7789
7790 2015-06-10  Gary Benson <gbenson@redhat.com>
7791
7792         * remote.c (struct remote_state) <fs_pid>: New field.
7793         (new_remote_state): Initialize the above.
7794         (PACKET_vFile_setfs): New enum value.
7795         (remote_hostio_set_filesystem): New function.
7796         (remote_hostio_open): Call the above.
7797         (remote_hostio_unlink): Likewise.
7798         (remote_hostio_readlink): Likewise.
7799         (_initialize_remote): Register new "set/show remote
7800         hostio-setfs-packet" command.
7801         * NEWS: Announce new vFile:setfs packet.
7802
7803 2015-06-10  Gary Benson <gbenson@redhat.com>
7804
7805         * linux-nat.c (nat/linux-namespaces.h): New include.
7806         (fileio.h): Likewise.
7807         (linux_nat_filesystem_is_local): New function.
7808         (linux_nat_fileio_pid_of): Likewise.
7809         (linux_nat_fileio_open): Likewise.
7810         (linux_nat_fileio_readlink): Likewise.
7811         (linux_nat_fileio_unlink): Likewise.
7812         (linux_nat_add_target): Initialize to_filesystem_is_local,
7813         to_fileio_open, to_fileio_readlink and to_fileio_unlink.
7814         (_initialize_linux_nat): New "set/show debug linux-namespaces"
7815         commands.
7816         * NEWS: Mention new "set/show debug linux-namespaces" commands.
7817
7818 2015-06-10  Gary Benson <gbenson@redhat.com>
7819
7820         * target.h (struct inferior): New forward declaration.
7821         (struct target_ops) <to_filesystem_is_local>: Update comment.
7822         (struct target_ops) <to_fileio_open>: New argument inf.
7823         Update comment.  All implementations updated.
7824         (struct target_ops) <to_fileio_unlink>: Likewise.
7825         (struct target_ops) <to_fileio_readlink>: Likewise.
7826         (target_filesystem_is_local): Update comment.
7827         (target_fileio_open): New argument inf.  Update comment.
7828         (target_fileio_unlink): Likewise.
7829         (target_fileio_readlink): Likewise.
7830         (target_fileio_read_alloc): Likewise.
7831         (target_fileio_read_stralloc): Likewise.
7832         * target.c (target_fileio_open): New argument inf.
7833         Pass inf to implementation.  Update debug printing.
7834         (target_fileio_unlink): Likewise.
7835         (target_fileio_readlink): Likewise.
7836         (target_fileio_read_alloc_1): New argument inf. Pass inf
7837         to target_fileio_open.
7838         (target_fileio_read_alloc): New argument inf. Pass inf to
7839         target_fileio_read_alloc_1.
7840         (target_fileio_read_stralloc): Likewise.
7841         * gdb_bfd.c (inferior.h): New include.
7842         (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
7843         argument with new argument "inferior".  Pass inferior to
7844         target_fileio_open.
7845         (gdb_bfd_open): Supply inferior argument to
7846         gdb_bfd_iovec_fileio_open.
7847         * linux-tdep.c (linux_info_proc): Supply inf argument to
7848         relevant target_fileio calls.
7849         (linux_find_memory_regions_full): Likewise.
7850         (linux_fill_prpsinfo): Likewise.
7851         * remote.c (remote_filesystem_is_local): Supply inf
7852         argument to remote_hostio_open.
7853         (remote_file_put): Likewise.
7854         (remote_file_get): Likewise.
7855         (remote_file_delete): Supply inf argument to
7856         remote_hostio_unlink.
7857
7858 2015-06-10  Gary Benson <gbenson@redhat.com>
7859
7860         * inf-child.c (inf_child_fileio_open): Replace comment.
7861         (inf_child_fileio_pwrite): Likewise.
7862         (inf_child_fileio_pread): Likewise.
7863         (inf_child_fileio_fstat): Insert blank line before comment.
7864         (inf_child_fileio_close): Replace comment.
7865         (inf_child_fileio_unlink): Likewise.
7866         (inf_child_fileio_readlink): Likewise.
7867         * remote.c (remote_hostio_open): Likewise.
7868         (remote_hostio_pread): Likewise.
7869         (remote_hostio_pwrite): Likewise.
7870         (remote_hostio_close): Likewise.
7871         (remote_hostio_unlink): Likewise.
7872         (remote_hostio_readlink): Likewise.
7873         (remote_hostio_fstat): Likewise.
7874         (remote_filesystem_is_local): Likewise.
7875         * target.c (target_fileio_open): Likewise.
7876         (target_fileio_pwrite): Likewise.
7877         (target_fileio_pread): Likewise.
7878         (target_fileio_fstat): Insert blank line before comment.
7879         (target_fileio_close): Replace comment.
7880         (target_fileio_unlink): Likewise.
7881         (target_fileio_readlink): Likewise.
7882         (target_fileio_read_alloc): Likewise.
7883         (target_fileio_read_stralloc): Likewise.
7884
7885 2015-06-10  Gary Benson <gbenson@redhat.com>
7886
7887         * linux-thread-db.c (nat/linux-namespaces.h): New include.
7888         (check_pid_namespace_match): Use linux_ns_same rather than
7889         linux_proc_pid_get_ns to spot PID namespace mismatches.
7890         * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
7891         * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
7892
7893 2015-06-10  Gary Benson <gbenson@redhat.com>
7894
7895         * configure.ac (AC_CHECK_FUNCS): Add setns.
7896         * config.in: Regenerate.
7897         * configure: Likewise.
7898         * nat/linux-namespaces.h: New file.
7899         * nat/linux-namespaces.c: Likewise.
7900         * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
7901         (linux-namespaces.o): New rule.
7902         * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
7903         * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
7904         * config/arm/linux.mh (NATDEPFILES): Likewise.
7905         * config/i386/linux.mh (NATDEPFILES): Likewise.
7906         * config/i386/linux64.mh (NATDEPFILES): Likewise.
7907         * config/ia64/linux.mh (NATDEPFILES): Likewise.
7908         * config/m32r/linux.mh (NATDEPFILES): Likewise.
7909         * config/m68k/linux.mh (NATDEPFILES): Likewise.
7910         * config/mips/linux.mh (NATDEPFILES): Likewise.
7911         * config/pa/linux.mh (NATDEPFILES): Likewise.
7912         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
7913         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
7914         * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
7915         * config/s390/linux.mh (NATDEPFILES): Likewise.
7916         * config/sparc/linux.mh (NATDEPFILES): Likewise.
7917         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
7918         * config/tilegx/linux.mh (NATDEPFILES): Likewise.
7919         * config/xtensa/linux.mh (NATDEPFILES): Likewise.
7920
7921 2015-06-10  Gary Benson <gbenson@redhat.com>
7922
7923         * utils.h (make_cleanup_close): Moved to common/filestuff.h.
7924         * utils.c (do_close_cleanup): Moved to common/filestuff.c.
7925         (make_cleanup_close): Likewise.
7926         * common/filestuff.h (make_cleanup_close): Moved from utils.h.
7927         * common/filestuff.c (do_close_cleanup): Moved from utils.c.
7928         (make_cleanup_close): Likewise.
7929
7930 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
7931
7932         * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
7933         from SuspendThread().
7934
7935 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
7936
7937         * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
7938         from OutputDebugString.
7939
7940 2015-06-10  Walfred Tedeschi  <walfred.tedeschi@intel.com>
7941                         Mircea Gherzan  <mircea.gherzan@intel.com>
7942
7943         * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
7944         MPX_BT_MASK_32): New macros.
7945         (i386_mpx_set_bounds): New function that implements
7946         the command "set-mpx-bound".
7947         (i386_mpx_enabled): Helper function to test MPX availability.
7948         (i386_mpx_bd_base): Helper function to calculate the base directory
7949         address.
7950         (i386_mpx_get_bt_entry): Helper function to access a bound
7951         table entry.
7952         (i386_mpx_print_bounds): Effectively display bound information.
7953         (_initialize_i386_tdep): Add new commands to commands "set mpx" and
7954         "show mpx".
7955         (_initialize_i386_tdep):
7956         Add "bound" to the commands "show mpx" and "set mpx" commands.
7957         (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
7958         and "show mpx" commands.
7959         * NEWS: List new commands for MPX support.
7960
7961 2015-06-09  Gary Benson <gbenson@redhat.com>
7962
7963         * common/fileio.h (fileio_to_host_mode): New declaration.
7964         * common/fileio.c (fileio_to_host_mode): New Function.
7965         * inf-child.c (inf_child_fileio_open): Process mode argument
7966         with fileio_to_host_mode.
7967
7968 2015-06-09  Gary Benson <gbenson@redhat.com>
7969
7970         * common/fileio.c (fileio_mode_pack): Fix preprocessor
7971         conditional.
7972
7973 2015-06-05  Gary Benson <gbenson@redhat.com>
7974
7975         * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
7976         * remote.c (remote_filesystem_is_local): ...here.
7977
7978 2015-06-04  Yao Qi  <yao.qi@linaro.org>
7979
7980         * gdbarch.c: Regenerate it.
7981
7982 2015-06-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
7983
7984         * arch-utils.c (default_infcall_munmap): New.
7985         * arch-utils.h (default_infcall_munmap): New declaration.
7986         * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
7987         (munmap_list_free, munmap_listp_free_cleanup): New.
7988         (struct setup_sections_data): Add field munmap_list_headp.
7989         (setup_sections): Call munmap_list_add.
7990         (compile_object_load): New variable munmap_list_head, initialize
7991         setup_sections_data.munmap_list_headp, return munmap_list_head.
7992         * compile/compile-object-load.h (struct munmap_list): New declaration.
7993         (struct compile_module): Add field munmap_list_head.
7994         (munmap_list_free): New declaration.
7995         * compile/compile-object-run.c (struct do_module_cleanup): Add field
7996         munmap_list_head.
7997         (do_module_cleanup): Call munmap_list_free.
7998         (compile_object_run): Pass munmap_list_head to do_module_cleanup.
7999         * gdbarch.c: Regenerate.
8000         * gdbarch.h: Regenerate.
8001         * gdbarch.sh (infcall_munmap): New.
8002         * linux-tdep.c (linux_infcall_munmap): New.
8003         (linux_init_abi): Install it.
8004
8005 2015-06-02  Simon Marchi  <simon.marchi@ericsson.com>
8006
8007         PR gdb/15564
8008         * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
8009
8010 2015-06-02  Yao Qi  <yao.qi@linaro.org>
8011
8012         * i386-linux-nat.c: Include linux-nat.h.
8013
8014 2015-06-01  Andreas Schwab  <schwab@linux-m68k.org>
8015             Jan Kratochvil  <jan.kratochvil@redhat.com>
8016
8017         PR symtab/18392
8018         * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
8019         assertion.
8020         * dwarf2loc.c (chain_candidate): Likewise.
8021
8022 2015-06-01  Yao Qi  <yao.qi@linaro.org>
8023
8024         * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
8025         (store_vfp_regs): Use PTRACE_SETREGSET.
8026
8027 2015-06-01  Yao Qi  <yao.qi@linaro.org>
8028
8029         * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
8030         (fetch_fpregs): Likewise.
8031         * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
8032         (store_fpregs): Likewise.
8033
8034 2015-06-01  Yao Qi  <yao.qi@linaro.org>
8035
8036         * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
8037         (fetch_regs): Likewise.
8038         (store_regs): Use PTRACE_SETREGSET.
8039         (store_register): Likewise.
8040
8041 2015-06-01  Yao Qi  <yao.qi@linaro.org>
8042
8043         * arm-linux-nat.c (arm_linux_read_description): Check whether
8044         kernel supports PTRACE_GETREGSET.
8045
8046 2015-06-01  Yao Qi  <yao.qi@linaro.org>
8047
8048         * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
8049         * linux-nat.c: ... here.
8050         * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
8051         to ...
8052         * linux-nat.h: ... here.
8053
8054 2015-06-01  Yao Qi  <yao.qi@linaro.org>
8055
8056         * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
8057         * i386-linux-nat.c: Likewise.
8058         * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
8059         * s390-linux-nat.c: Include "nat/linux-ptrace.h".
8060         (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
8061         * x86-linux-nat.c: Include "nat/linux-ptrace.h".
8062         * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
8063
8064 2015-05-30  Eli Zaretskii  <eliz@gnu.org>
8065
8066         * go32-nat.c (go32_xfer_memory): Fix the return value to be
8067         compatible to what read_child and write_child return.  This
8068         unbreaks that DJGPP build of GDB which was broken since v7.7.
8069
8070 2015-05-29  Martin Galvan  <martin.galvan@tallertechnologies.com>
8071
8072         * MAINTAINERS (Write After Approval): Add Martin Galvan.
8073
8074 2015-05-29  Roland McGrath  <mcgrathr@google.com>
8075
8076         PR gdb/18464
8077         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
8078         rather than internal_error for an unrecognized value.
8079
8080 2015-05-29  Max Filippov  <jcmvbkbc@gmail.com>
8081
8082         * xtensa-tdep.c (xtensa_pseudo_register_read)
8083         (xtensa_pseudo_register_write): Don't alias last pseudo register
8084         to a1.
8085
8086 2015-05-28  Don Breazeal  <donb@codesourcery.com>
8087
8088         * infrun.c (follow_fork_inferior): Ensure the use of
8089         process-style ptids (pid,0,0) in verbose/debug "Detaching"
8090         messages.
8091
8092 2015-05-28  Doug Evans  <dje@google.com>
8093
8094         * dwarf2read.c (record_line_ftype): Remove, duplicate.
8095
8096 2015-05-28  Yao Qi  <yao.qi@linaro.org>
8097
8098         * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
8099         (arm_linux_fetch_inferior_registers): Use
8100         tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
8101         (arm_linux_store_inferior_registers): Likewise.
8102         (arm_linux_read_description): Don't set
8103         arm_linux_has_wmmx_registers.
8104         * arm-tdep.c (arm_gdbarch_init): Set
8105         tdep->have_wmmx_registers according target descriptions.
8106         * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
8107         field.
8108
8109 2015-05-28  Yao Qi  <yao.qi@linaro.org>
8110
8111         * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
8112         (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
8113         instead of arm_linux_vfp_register_count.
8114         (store_vfp_regs): Likewise.
8115         (arm_linux_fetch_inferior_registers): Likewise.
8116         (arm_linux_store_inferior_registers): Likewise.
8117         (arm_linux_read_description): Don't set
8118         arm_linux_vfp_register_count.
8119         * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
8120         Adjust.
8121         * arm-tdep.c (arm_gdbarch_init): Add assert on
8122         vfp_register_count.
8123         * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
8124         field to vfp_register_count.  All users updated.
8125
8126 2015-05-28  Kyle Huey  <me@kylehuey.com>  (tiny patch)
8127
8128         * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
8129         ELFOSABI_GNU binaries.
8130
8131 2015-05-27  Doug Evans  <dje@google.com>
8132
8133         * dwarf2read.c (lnp_state_machine): New typedef.
8134         (lnp_reader_state): New typedef.
8135         (dwarf_record_line_1): Renamed from dwarf_record_line.
8136         All callers updated.
8137         (dwarf_record_line): New function.
8138         (init_lnp_state_machine): New function.
8139         (check_line_address): Replace p_record_line parameter with state.
8140         All callers updated.
8141         (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
8142         Update to record state in lnp_state_machine.
8143
8144 2015-05-27  Doug Evans  <dje@google.com>
8145
8146         * dwarf2read.c (record_line_ftype): New typedef.
8147         (check_line_address): New function.
8148         (dwarf_decode_lines_1): Call it.
8149
8150 2015-05-27  Doug Evans  <dje@google.com>
8151
8152         * NEWS: Mention "set debug dwarf-line".
8153         * dwarf2read.c (dwarf_line_debug): New static global.
8154         (add_include_dir): Add debug dwarf-line support.
8155         (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
8156         (_initialize_dwarf2_read): New parameter "debug dwarf-line".
8157
8158 2015-05-27  Doug Evans  <dje@google.com>
8159
8160         * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
8161         All callers updated.
8162         (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
8163         * cp-support.h (cp_lookup_nested_symbol): Update.
8164
8165 2015-05-27  Doug Evans  <dje@google.com>
8166
8167         PR symtab/18258
8168         * block.c (block_find_symbol): New function.
8169         (block_find_non_opaque_type): Ditto.
8170         (block_find_non_opaque_type_preferred): Ditto.
8171         * block.h (block_symbol_matcher_ftype): New typedef.
8172         (block_find_symbol): Declare.
8173         (block_find_non_opaque_type): Ditto.
8174         (block_find_non_opaque_type_preferred): Ditto.
8175         * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
8176         * psymtab.c (psym_lookup_symbol): Ditto.
8177         * symtab.c (basic_lookup_transparent_type_1): New function.
8178         (basic_lookup_transparent_type): Call it.
8179
8180 2015-05-27  Yao Qi  <yao.qi@linaro.org>
8181
8182         * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
8183         AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
8184
8185 2015-05-27  Yao Qi  <yao.qi@linaro.org>
8186
8187         * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
8188         before operator &&.
8189         (aarch64_record_load_store): Likewise.
8190
8191 2015-05-26  Doug Evans  <dje@google.com>
8192
8193         PR c++/18141, c++/18417.
8194         * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
8195         a typedef.
8196
8197 2015-05-26  Doug Evans  <dje@google.com>
8198
8199         * NEWS: Add entries for command renamings.
8200         * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
8201         All uses updated.
8202         (dwarf_die_debug): Renamed from dwarf2_die_debug.  All uses updated.
8203         (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
8204         All uses updated.
8205         (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
8206         All callers updated.  Fix spelling of DWARF in help text.
8207         (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
8208         All uses updated.
8209         (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
8210         All uses updated.
8211         (set_dwarf_cmd): Renamed from set_dwarf2_cmd.  All callers updated.
8212         (show_dwarf_cmd): Renamed from show_dwarf2_cmd.  All callers updated.
8213         (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
8214         All uses updated.
8215         (show_dwarf_always_disassemble): Renamed from
8216         show_dwarf2_always_disassemble.  All callers updated.
8217         (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
8218         "set/show dwarf".  Rename "set/show dwarf2 max-cache-age" to
8219         "set/show dwarf max-cache-age".  Rename
8220         "set/show dwarf2 always-disassemble" to
8221         "set/show dwarf always-disassemble".  Rename
8222         "set/show debug dwarf2-read" to "set/show debug dwarf-read".  Rename
8223         "set/show debug dwarf2-die" to "set/show debug dwarf-die".
8224
8225 2015-05-26  Doug Evans  <dje@google.com>
8226
8227         PR python/18438
8228         * python/py-lazy-string.c (stpy_convert_to_value): Use
8229         gdbpy_gdb_memory_error not PyExc_MemoryError.
8230         (gdbpy_create_lazy_string_object): Ditto.
8231
8232 2015-05-26  Andrew Burgess  <andrew.burgess@embecosm.com>
8233
8234         * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
8235
8236 2015-05-26  Andrew Burgess  <andrew.burgess@embecosm.com>
8237
8238         * tui/tui-regs.c (tui_reg_prev_command): New function.
8239         (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
8240         * reggroups.c (reggroup_prev): New function.
8241         * reggroups.h (reggroup_prev): Add declaration.  Update comment.
8242
8243 2015-05-26  Omair Javaid  <omair.javaid@linaro.org>
8244             Yao Qi  <yao.qi@linaro.org>
8245
8246         * aarch64-linux-tdep.c: Include linux-record.h and
8247         record-full.h.
8248         (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
8249         (aarch64_syscall): New enum.
8250         (aarch64_canonicalize_syscall): New function.
8251         (aarch64_all_but_pc_registers_record): New function.
8252         (aarch64_linux_syscall_record): New function.
8253         (aarch64_linux_init_abi): Install AArch64 process record
8254         handler.  Update to handle syscall recording.
8255         * aarch64-tdep.c: Include record.h and record-full.h.
8256         (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
8257         (struct aarch64_mem_r): Define.
8258         (aarch64_record_result): New enum.
8259         (struct insn_decode_record): Define.
8260         (insn_decode_record): New typedef.
8261         (aarch64_record_data_proc_reg): New function.
8262         (aarch64_record_data_proc_imm): New function.
8263         (aarch64_record_branch_except_sys): New function.
8264         (aarch64_record_load_store): New function.
8265         (aarch64_record_data_proc_simd_fp): New function.
8266         (aarch64_record_asimd_load_store): New function.
8267         (aarch64_record_decode_insn_handler): New function.
8268         (deallocate_reg_mem): New function.
8269         (aarch64_process_record): New function.
8270         * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
8271         New field.
8272         (aarch64_process_record): New extern declaration.
8273         * configure.tgt: Add linux-record.o to gdb_target_obs.
8274         * linux-record.h (struct linux_record_tdep) <arg7>: New field.
8275
8276 2015-05-26  Omair Javaid  <omair.javaid@linaro.org>
8277
8278         * NEWS: Add a note on process record-replay support on aarch64*-linux*
8279         targets.
8280
8281 2015-05-26  Martin Galvan  <martin.galvan@tallertechnologies.com>
8282
8283         * amd64-tdep.c: Replace in_function_epilogue_p with
8284         stack_frame_destroyed_p throughout.
8285         * arch-utils.c: Ditto.
8286         * arch-utils.h: Ditto.
8287         * arm-tdep.c: Ditto.
8288         * breakpoint.c: Ditto.
8289         * gdbarch.sh: Ditto.
8290         * hppa-tdep.c: Ditto.
8291         * i386-tdep.c: Ditto.
8292         * mips-tdep.c: Ditto.
8293         * nios2-tdep.c: Ditto.
8294         * rs6000-tdep.c: Ditto.
8295         * s390-linux-tdep.c: Ditto.
8296         * score-tdep.c: Ditto.
8297         * sh-tdep.c: Ditto.
8298         * sparc-tdep.c: Ditto.
8299         * sparc-tdep.h: Ditto.
8300         * sparc64-tdep.c: Ditto.
8301         * spu-tdep.c: Ditto.
8302         * tic6x-tdep.c: Ditto.
8303         * tilegx-tdep.c: Ditto.
8304         * xstormy16-tdep.c: Ditto.
8305         * gdbarch.c, gdbarch.h: Re-generated.
8306
8307 2015-05-22  Andrew Burgess  <andrew.burgess@embecosm.com>
8308
8309         * NEWS: Mention 'tui enable' and 'tui disable'.
8310         * tui/tui.c (tui_enable_command): New function.
8311         (tui_disable_command): New function.
8312         (_initialize_tui): New function.
8313
8314 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
8315
8316         * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
8317
8318 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
8319
8320         * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
8321         buf_ptr is freed.
8322
8323 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
8324
8325         * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
8326         into ...
8327         (tui_set_layout_for_display_command): ...here, before calling
8328         tui_set_layout.  Only set the layout if gdb has not already
8329         entered the TUI_FAILURE state.
8330
8331 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
8332
8333         * tui/tui-layout.c (layout_completer): New function.
8334         (_initialize_tui_layout): Set completer on layout command.
8335
8336 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
8337
8338         * tui/tui-layout.c (tui_set_layout): Remove
8339         tui_register_display_type parameter.  Remove all checking of this
8340         parameter, and reindent function.  Update header comment.
8341         (tui_set_layout_for_display_command): Rename to...
8342         (tui_set_layout_by_name): ...this, and don't check for different
8343         register class types, don't pass a tui_register_display_type to
8344         tui_set_layout.  Update header comment.
8345         (layout_names): Remove register set specific names.
8346         * tui/tui-layout.h (tui_set_layout): Remove
8347         tui_register_display_type parameter.
8348         * tui/tui.c (tui_rl_change_windows): Don't pass a
8349         tui_register_display_type to tui_set_layout.
8350         (tui_rl_delete_other_windows): Likewise.
8351         (tui_enable): Likewise.
8352         * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
8353         (TUI_FLOAT_REGS_NAME_LOWER): Remove.
8354         (TUI_GENERAL_REGS_NAME): Remove.
8355         (TUI_GENERAL_REGS_NAME_LOWER): Remove.
8356         (TUI_SPECIAL_REGS_NAME): Remove.
8357         (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
8358         (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
8359         (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
8360         (enum tui_register_display_type): Remove.
8361         (struct tui_layout_def): Remove regs_display_type and
8362         float_regs_display_type fields.
8363         (struct tui_data_info): Remove regs_display_type field.
8364         (tui_layout_command): Use new name for
8365         tui_set_layout_for_display_command.
8366         * tui/tui-data.c (layout_def): Don't initialise removed fields.
8367         (tui_clear_win_detail): Don't initialise removed fields of
8368         win_info.
8369         * tui/tui-regs.c (tui_show_registers): Use new name for
8370         tui_set_layout_for_display_command.
8371         * tui/tui.h (tui_set_layout_for_display_command): Rename
8372         declaration to...
8373         (tui_set_layout_by_name): ...this.
8374         * printcmd.c (display_command): Remove tui related layout call,
8375         and reindent.
8376
8377 2015-05-20  Joel Brobecker  <brobecker@adacore.com>
8378
8379         * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
8380         (handle_inferior_event): New function.
8381
8382 2015-05-20  Joel Brobecker  <brobecker@adacore.com>
8383
8384         * ada-lang.c (to_fixed_array_type): Rename local variable
8385         typename into type_name.
8386
8387 2015-05-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
8388
8389         Fix ASAN crash for gdb.compile/compile.exp.
8390         * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
8391
8392 2015-05-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
8393
8394         * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
8395         (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
8396         * compile/compile-object-load.c (setup_sections, compile_object_load):
8397         Likewise.
8398         * compile/compile.c (compile_to_object): Likewise.
8399
8400 2015-05-16  Doug Evans  <xdje42@gmail.com>
8401
8402         * NEWS: Mention support for unbuffered Guile memory ports.
8403         * scm-ports.c (ioscm_memory_port): Update comments on end, size.
8404         (ioscm_lseek_address): Improve overflow calculation.
8405         (gdbscm_memory_port_fill_input): Add assert.
8406         (gdbscm_memory_port_write): Handle unbuffered ports.
8407         Handle large writes identical to Guile's fport_write.
8408         (gdbscm_memory_port_seek): Fix seeking past end check.
8409         (gdbscm_memory_port_close): Handle closing unbuffered port.
8410         (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
8411         (ioscm_init_memory_port): Handle unbuffered ports.
8412         (ioscm_reinit_memory_port): Ditto.
8413         (ioscm_init_memory_port): Update size calculation.
8414         (gdbscm_open_memory): Support zero sized ports.
8415
8416 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8417
8418         * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
8419         variable compiler warnings.
8420
8421 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8422
8423         * compile/compile-object-load.c (get_out_value_type): Fix returned type.
8424
8425 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8426             Phil Muldoon  <pmuldoon@redhat.com>
8427
8428         * NEWS (Changes since GDB 7.9): Add compile print.
8429         * compile/compile-c-support.c (add_code_header, add_code_footer)
8430         (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
8431         COMPILE_I_PRINT_VALUE_SCOPE.
8432         * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
8433         (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
8434         New.
8435         * compile/compile-object-load.c: Include block.h.
8436         (get_out_value_type): New function.
8437         (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
8438         COMPILE_I_PRINT_VALUE_SCOPE.  Set compile_module's OUT_VALUE_ADDR and
8439         OUT_VALUE_TYPE.
8440         * compile/compile-object-load.h (struct compile_module): Add fields
8441         out_value_addr and out_value_type.
8442         * compile/compile-object-run.c: Include valprint.h and compile.h.
8443         (struct do_module_cleanup): Add fields out_value_addr and
8444         out_value_type.
8445         (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
8446         COMPILE_I_PRINT_VALUE_SCOPE.
8447         (compile_object_run): Propagate out_value_addr and out_value_type.
8448         Pass OUT_VALUE_ADDR.
8449         * compile/compile.c: Include valprint.h.
8450         (compile_print_value, compile_print_command): New functions.
8451         (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
8452         (_initialize_compile): Update compile code help text.  Install
8453         compile_print_command.
8454         * compile/compile.h (compile_print_value): New prototype.
8455         * defs.h (enum compile_i_scope_types): Add
8456         COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
8457
8458 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8459
8460         * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
8461         Rely on its parameter count.
8462         (compile_object_load): Replace lookup_minimal_symbol_text by
8463         lookup_global_symbol_from_objfile.  Verify FUNC_SYM.  Set it in the
8464         return value.
8465         * compile/compile-object-load.h (struct compile_module): Replace
8466         func_addr by func_sym.
8467         * compile/compile-object-run.c: Include block.h.
8468         (compile_object_run): Reset module variable after it is freed.  Use
8469         FUNC_SYM instead of FUNC_ADDR.  Rely on it.
8470
8471 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8472
8473         * compile/compile-c-support.c (print_one_macro): Use #ifndef.
8474         (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
8475         (c_compute_program): Call generate_register_struct after typedefs.
8476         * compile/compile-loc2c.c (push, pushf_register_address)
8477         (pushf_register): Cast to GCC_UINTPTR.
8478         (do_compile_dwarf_expr_to_c): Use unused attribute.  Add space after
8479         type.  Use GCC_UINTPTR instead of void *.  Remove excessive cast.
8480         (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
8481         * compile/compile.c (_initialize_compile): Enable warnings for
8482         COMPILE_ARGS.
8483
8484 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8485
8486         * cli/cli-script.c (execute_control_command): Update
8487         eval_compile_command caller.
8488         * compile/compile-object-load.c (compile_object_load): Add parameters
8489         scope and scope_data.  Set them.
8490         * compile/compile-object-load.h (struct compile_module): Add fields
8491         scope and scope_data.
8492         (compile_object_load): Add parameters scope and scope_data.
8493         * compile/compile-object-run.c (struct do_module_cleanup): Add fields
8494         scope and scope_data.
8495         (compile_object_run): Propagate the fields scope and scope_data.
8496         * compile/compile.c (compile_file_command, compile_code_command):
8497         Update eval_compile_command callers.
8498         (eval_compile_command): Add parameter scope_data.  Pass it plus scope.
8499         * compile/compile.h (eval_compile_command): Add parameter scope_data.
8500         * defs.h (struct command_line): Add field scope_data.
8501
8502 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8503
8504         * printcmd.c (struct format_data): Move it to valprint.h.
8505         (print_command_parse_format, print_value): New functions from ...
8506         (print_command_1): ... here.  Call them.
8507         * valprint.h (struct format_data): Move it here from printcmd.c.
8508         (print_command_parse_format, print_value): New declarations.
8509
8510 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8511
8512         * compile/compile-object-load.c (compile_object_load): Add
8513         COMPILE_DEBUG message.
8514
8515 2015-05-15  Jerome Guitton  <guitton@adacore.com>
8516
8517         * ada-lang.c (ada_value_ptr_subscript): Use enum position of
8518         index to get element instead of enum value.
8519         (ada_value_slice_from_ptr, ada_value_slice): Use enum position
8520         of index to compute length, but enum values to compute bounds.
8521         (ada_array_length): Use enum position of index instead of enum value.
8522         (pos_atr): Move position computation to...
8523         (ada_evaluate_subexp): Use enum values to compute bounds.
8524         * gdbtypes.c (discrete_position): ...this new function.
8525         * gdbtypes.h (discrete_position): New function declaration.
8526         * valprint.c (val_print_array_elements): Call discrete_position
8527         to handle array indexed by non-contiguous enumeration types.
8528
8529 2015-05-15  Jerome Guitton  <guitton@adacore.com>
8530
8531         * ada-lang.c (find_parallel_type_by_descriptive_type):
8532         Go through typedefs during lookup.
8533         (to_fixed_array_type): Add support for non-bit packed arrays
8534         as variable-length fields.
8535
8536 2015-05-15  Pedro Alves  <palves@redhat.com>
8537             Simon Marchi  <simon.marchi@ericsson.com>
8538
8539         * event-loop.c (gdb_notifier) <next_file_handler,
8540         next_poll_fds_index>: New fields.
8541         (get_next_file_handler_to_handle_and_advance): New function.
8542         (delete_file_handler): If deleting the next file handler to
8543         handle, advance to the next file handler.
8544         (gdb_wait_for_event): Bail early if no event fired.  Poll file
8545         handlers in round-robin fashion.
8546
8547 2015-05-15  Pedro Alves  <palves@redhat.com>
8548
8549         * linux-tdep.c (linux_find_memory_regions_full): Rename local
8550         'private' to 'priv'.
8551
8552 2015-05-15  Pedro Alves  <palves@redhat.com>
8553
8554         * nat/linux-nat.h: Include "target/waitstatus.h".
8555
8556 2015-05-15  Yuanhui Zhang  <asmwarrior@gmail.com>
8557
8558         * python/py-unwind.c (struct reg_info): Move out of ...
8559         (struct cached_frame_info): ... this scope.
8560         (pending_frame_object_type, unwind_info_object_type): Make extern.
8561
8562 2015-05-15  Joel Brobecker  <brobecker@adacore.com>
8563
8564         * ada-lang.c (ada_value_primitive_packed_val): Make sure
8565         accumSize is never negative.
8566
8567 2015-05-14  Patrick Palka  <patrick@parcs.ath.cx>
8568
8569         * tui/tui-command.c: Remove include of <ctype.h>.
8570         (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
8571
8572 2015-05-13  Martin Galvan  <martin.galvan@tallertechnologies.com>
8573
8574         * dwarf2read.c (die_needs_namespace): Return 1 for
8575         DW_TAG_inlined_subroutine.
8576
8577 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8578
8579         * regcache.c (regcache_cpy_no_passthrough): New declaration.
8580         (regcache_cpy_no_passthrough): Make it static, add function comment.
8581         * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
8582         (regcache_cpy_no_passthrough): Remove declaration.
8583
8584 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8585
8586         * gdbthread.h (struct thread_control_state): Update comment for
8587         proceed_to_finish.
8588         * infcall.c (run_inferior_call): Update comment about
8589         proceed_to_finish.
8590         * infcmd.c (get_return_value): Update comment about stop_registers.
8591         (finish_forward): Update comment about proceed_to_finish.
8592         * infrun.c (stop_registers): Remove.
8593         (clear_proceed_status, normal_stop): Remove stop_registers handling.
8594         * infrun.h (stop_registers): Remove.
8595
8596 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8597
8598         * infcall.c (struct dummy_frame_context_saver)
8599         (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
8600         (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
8601         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
8602         New.
8603         (call_function_by_hand_dummy): Move discard_cleanups of
8604         inf_status_cleanup before dummy_frame_push.  Call
8605         dummy_frame_context_saver_setup and prepare context_saver_cleanup.
8606         Use dummy_frame_context_saver_get_regs instead of stop_registers.
8607         * infcall.h (struct dummy_frame_context_saver)
8608         (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
8609         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
8610         New declarations.
8611         * infcmd.c: Include infcall.h.
8612         (get_return_value): Add parameter ctx_saver, use it instead of
8613         stop_registers.
8614         (print_return_value): Add parameter ctx_saver, pass it.
8615         (struct finish_command_continuation_args): Add field ctx_saver.
8616         (finish_command_continuation): Update print_return_value caller.
8617         (finish_command_continuation_free_arg): Free also ctx_saver.
8618         (finish_forward): Call dummy_frame_context_saver_setup.
8619         * inferior.h (struct dummy_frame_context_saver): New declaration.
8620         (get_return_value): Add parameter ctx_saver.
8621         * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
8622         get_return_value caller.
8623
8624 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8625
8626         * dummy-frame.c (struct dummy_frame_dtor_list): New.
8627         (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
8628         (remove_dummy_frame): Process dtor_list.
8629         (pop_dummy_frame): Process dtor_list.
8630         (register_dummy_frame_dtor): Maintain dtor_list.
8631         (find_dummy_frame_dtor): Handle dtor_list.
8632         * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
8633         Update comments.
8634
8635 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8636
8637         * compile/compile-object-run.c (do_module_cleanup): Add parameter
8638         registers_valid.
8639         (compile_object_run): Update do_module_cleanup caller.
8640         * dummy-frame.c: Include infcall.h.
8641         (struct dummy_frame): Update dtor comment.
8642         (remove_dummy_frame): Call dtor.
8643         (pop_dummy_frame): Update dtor caller.
8644         * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
8645         registers_valid.
8646
8647 2015-05-13  Joel Brobecker  <brobecker@adacore.com>
8648
8649         GDB 7.9.1 released.
8650
8651 2015-05-13  Joel Brobecker  <brobecker@adacore.com>
8652
8653         * NEWS: Create "Changes in GDB 7.9.1" section.  Move news about
8654         Xmethods now being able to specify a result type to that new
8655         sectioin.
8656
8657 2015-05-13  Patrick Palka  <patrick@parcs.ath.cx>
8658
8659         * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
8660         first before resizing the window.
8661         * tui/tui.c (tui_enable): Likewise.
8662
8663 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8664
8665         * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
8666         * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
8667         * infcall.c (call_function_by_hand_dummy): Use proper typedef for
8668         dummy_dtor parameter.
8669         * infcall.h: Include dummy-frame.h.
8670         (call_function_by_hand_dummy_dtor_ftype): Remove.
8671         (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
8672         parameter.
8673
8674 2015-05-13  Patrick Palka  <patrick@parcs.ath.cx>
8675
8676         PR gdb/17820
8677         * top.c (history_size_setshow_var): Change type to signed.
8678         Initialize to -2.  Update documentation.
8679         (set_readline_history_size): Define.
8680         (set_history_size_command): Use it.  Remove logic for handling
8681         out-of-range sizes.
8682         (init_history): Use set_readline_history_size().  Test for a
8683         value of -2 instead of 0 when determining whether to set a
8684         default history size.
8685         (init_main): Decode the argument of the "size" command as a
8686         zuinteger_unlimited.
8687
8688 2015-05-12  Doug Evans  <dje@google.com>
8689
8690         * dwarf2read.c (struct file_entry): Tweak comments.
8691         (get_debug_line_section): Tweak comments.
8692
8693 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8694
8695         * NEWS: Announce fork support in the RSP and support
8696         for fork debugging in extended mode.
8697
8698 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8699
8700         * remote.c (remote_insert_fork_catchpoint): New function.
8701         (remote_remove_fork_catchpoint): New function.
8702         (remote_insert_vfork_catchpoint): New function.
8703         (remote_remove_vfork_catchpoint): New function.
8704         (pending_fork_parent_callback): New function.
8705         (remove_new_fork_child): New function.
8706         (remote_update_thread_list): Call remote_notif_get_pending_events
8707         and remove_new_fork_child.
8708         (extended_remote_kill): Kill fork child when killing the
8709         parent before follow_fork completes.
8710         (init_extended_remote_ops): Initialize target vector with
8711         new fork catchpoint functions.
8712
8713 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8714
8715         * remote.c (remove_vfork_event_p): New function.
8716         (remote_follow_fork): Add vfork event type to event checking.
8717         (remote_parse_stop_reply): New stop reasons "vfork" and
8718         "vforkdone" for RSP 'T' Stop Reply Packet.
8719
8720 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8721
8722         * linux-nat.c (linux_nat_ptrace_options): New function.
8723         (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
8724         Call linux_nat_ptrace_options and use different argument to
8725         linux_enable_event_reporting.
8726         (_initialize_linux_nat): Delete call to
8727         linux_ptrace_set_additional_flags.
8728         * nat/linux-ptrace.c (current_ptrace_options): Rename to
8729         supported_ptrace_options.
8730         (additional_flags): Delete variable.
8731         (linux_check_ptrace_features): Use supported_ptrace_options.
8732         (linux_test_for_tracesysgood, linux_test_for_tracefork):
8733         Likewise, and remove additional_flags check.
8734         (linux_enable_event_reporting): Change 'attached' argument to
8735         'options'.  Use supported_ptrace_options.
8736         (ptrace_supports_feature): Change comment.  Use
8737         supported_ptrace_options.
8738         (linux_ptrace_set_additional_flags): Delete function.
8739         * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
8740         Delete function prototype.
8741         * remote.c (remote_fork_event_p): New function.
8742         (remote_detach_pid): New function.
8743         (remote_detach_1): Call remote_detach_pid, don't mourn inferior
8744         if doing detach-on-fork.
8745         (remote_follow_fork): New function.
8746         (remote_parse_stop_reply): Handle new "T" stop reason "fork".
8747         (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
8748         (init_extended_remote_ops): Initialize to_follow_fork.
8749
8750 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8751
8752         * nat/linux-ptrace.c (linux_check_ptrace_features): Change
8753         from static to extern.
8754         * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
8755         * remote.c (anonymous enum): <PACKET_fork_event_feature,
8756         * PACKET_vfork_event_feature>: New enumeration constants.
8757         (remote_protocol_features): Add table entries for new packets.
8758         (remote_query_supported): Add new feature queries to qSupported
8759         packet.
8760
8761 2015-05-12  Gary Benson <gbenson@redhat.com>
8762
8763         * remote.c (remote_add_inferior): Call exec_file_locate_attach
8764         for fake PIDs as well as real ones.
8765         (remote_pid_to_exec_file): Send empty annex if PID is fake.
8766
8767 2015-05-09  Siva Chandra Reddy  <sivachandra@google.com>
8768
8769         * NEWS (Python Scripting): Mention the new gdb.Value methods.
8770         * python/py-value.c (valpy_reference_value): New function.
8771         (valpy_const_value): Likewise.
8772         (value_object_methods): Add new methods.
8773         * value.c (make_cv_value): New function.
8774         * value.h (make_cv_value): Declare.
8775
8776 2015-05-08  Yao Qi  <yao@codesourcery.com>
8777             Sandra Loosemore  <sandra@codesourcery.com>
8778
8779         * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
8780         to 'lh->include_dirs' before accessing to it.
8781         (psymtab_include_file_name): Likewise.
8782         (dwarf_decode_lines_1): Likewise.
8783         (dwarf_decode_lines): Likewise.
8784         (file_file_name): Likewise.
8785
8786 2015-05-08  Sandra Loosemore  <sandra@codesourcery.com>
8787
8788         * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
8789         (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
8790         (nios2_linux_rt_sigreturn_init): Adjust base address of
8791         register save area.
8792
8793 2015-05-08  Sandra Loosemore  <sandra@codesourcery.com>
8794
8795         * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
8796         "trap 31" as the breakpoint instruction on all targets.
8797
8798 2015-05-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8799
8800         * infcmd.c (print_return_value): Remove unused declaration.
8801
8802 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
8803
8804         * dwarf2read.c (attr_to_dynamic_prop)
8805         <DW_AT_data_member_location>: Use read_type_die isntead of
8806         get_die_type.
8807
8808 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
8809
8810         * ada-lang.c (ada_convert_actual): Add handling of formals
8811         passed inside an aligner type.
8812
8813 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
8814
8815         * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
8816
8817 2015-05-08  Siva Chandra Reddy  <sivachandra@google.com>
8818
8819         PR python/18291
8820         * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
8821         Print xmethod matcher status.
8822
8823 2015-05-08  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8824
8825         * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
8826         register in the regcache when treating the PSWM register, and vice
8827         versa.
8828
8829 2015-05-07  Gary Benson <gbenson@redhat.com>
8830
8831         * linux-thread-db.c (struct thread_db_info)
8832         <td_ta_map_id2thr_p>: Remove field.
8833         (try_thread_db_load_1): Remove initialization for the above.
8834
8835 2015-05-07  Gary Benson <gbenson@redhat.com>
8836
8837         * linux-thread-db.c (struct thread_db_info)
8838         <td_thr_validate_p>: Remove field.
8839         (try_thread_db_load_1): Remove initialization for the above.
8840
8841 2015-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
8842
8843         * compile/compile-object-load.c (compile_object_load): Support
8844         mst_text_gnu_ifunc.
8845
8846 2015-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
8847
8848         * compile/compile.c (compile_to_object): Make the cmd_string parameter
8849         const.  Use new variables for the const compatibility.
8850         (eval_compile_command): Make the cmd_string parameter const.
8851         * compile/compile.h (eval_compile_command): Make the cmd_string
8852         parameter const.
8853
8854 2015-05-06  Joel Brobecker  <brobecker@adacore.com>
8855
8856         * defs.h (deprecated_init_ui_hook): Delete.  Remove associated
8857         comment.
8858         * top.c (deprecated_init_ui_hook): Delete.
8859         (gdb_init): Remove handling of deprecated_init_ui_hook.
8860         * interps.c (clear_interpreter_hooks): Remove handling of
8861         deprecated_init_ui_hook.
8862         * main.c (captured_main): Update comment.
8863
8864 2015-05-06  Joel Brobecker  <brobecker@adacore.com>
8865
8866         * solib.c (_initialize_solib): Add "info dll" alias creation.
8867         * windows-nat.c (set_windows_aliases): Delete.
8868         (_initialize_windows_nat): Remove deprecated_init_ui_hook
8869         assignment.
8870         * NEWS: Add news entry about "info dll" now being available
8871         on all platforms.
8872
8873 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8874
8875         * ada-lang.c (value_assign_to_component): Reformat and improve
8876         documentation. Remove all trailing spaces.
8877
8878 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8879
8880         * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
8881         Stop counting inlined frames as soon as an out-of-line function
8882         is found.
8883
8884 2014-05-05  Pierre-Marie de Rodat  <derodat@adacore.com>
8885
8886         * dwarf2read.c (inherit_abstract_dies): Skip
8887         DW_TAG_GNU_call_site dies while inheriting children of an
8888         abstract DIE into a scope.
8889         (read_lexical_block_scope): Inherit abstract DIE's for
8890         lexical scopes.
8891
8892 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8893
8894         * ada-valprint.c (val_print_packed_array_elements): Delete
8895         variable "len".  Add a type-length check when comparing two
8896         consecutive elements of the array.  Use the element's actual
8897         length in call to value_contents_eq.
8898         * ada-lang.c (ada_value_primitive_packed_val): Always return
8899         a value whose type has been resolved.
8900
8901 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8902
8903         * ada-lang.c (ada_value_primitive_packed_val): Recompute
8904         BIT_SIZE and LEN if the size of the resolved type is smaller
8905         than BIT_SIZE * HOST_CHAR_BIT.
8906
8907 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8908
8909         * ada-lang.c (ada_value_primitive_packed_val): Use a more
8910         correct address in call to value_at.  Adjust call to
8911         value_address accordingly.
8912
8913 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8914
8915         * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
8916         to print it.
8917
8918 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8919
8920         * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
8921         * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
8922         pinfo->valaddr.
8923         * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
8924         * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
8925         (resolve_dynamic_type_internal): Set pinfo.valaddr.
8926         Add handling of addr_stack->valaddr.
8927         (resolve_dynamic_type): Add "valaddr" parameter.
8928         Set pinfo.valaddr field.
8929         * ada-lang.c (ada_discrete_type_high_bound): Update call to
8930         resolve_dynamic_type.
8931         (ada_discrete_type_low_bound): Likewise.
8932         * findvar.c (default_read_var_value): Likewise.
8933         * value.c (value_from_contents_and_address): Likewise.
8934
8935 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8936
8937         * gdbtypes.c (resolve_dynamic_array): Use
8938         create_array_type_with_stride instead of create_array_type.
8939
8940 2015-04-30  DJ Delorie  <dj@redhat.com>
8941
8942         * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
8943         rl78_decode_opcode
8944
8945 2015-04-29  Doug Evans  <dje@google.com>
8946
8947         PR python/18285
8948         * NEWS: Document new gdb.XMethodWorker.get_result_type method.
8949         * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
8950         EVAL_AVOID_SIDE_EFFECTS for xmethods.
8951         * extension-priv.h (struct extension_language_ops)
8952         <get_xmethod_result_type>: New member.
8953         * extension.c (get_xmethod_result_type): New function.
8954         * extension.h (get_xmethod_result_type): Declare.
8955         * python/py-xmethods.c (get_result_type_method_name): New static
8956         global.
8957         (py_get_result_type_method_name): Ditto.
8958         (gdbpy_get_xmethod_result_type): New function.
8959         (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
8960         * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
8961         * python/python.c (python_extension_ops): Add
8962         gdbpy_get_xmethod_result_type.
8963         * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
8964         * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
8965         xmethods.
8966         (value_x_unop): Ditto.
8967         * value.c (result_type_of_xmethod): New function.
8968         * value.h (result_type_of_xmethod): Declare.
8969
8970 2015-04-29  Gary Benson <gbenson@redhat.com>
8971
8972         * solib.c (solib_find_1): Allow fd argument to be NULL.
8973         (exec_file_find): Update comment.
8974         (solib_find): Likewise.
8975         * exec.c (exec_file_locate_attach): Use NULL as fd
8976         argument to exec_file_find to avoid having to close
8977         the opened file.
8978         * infrun.c (follow_exec): Likewise.
8979
8980 2015-04-28  Doug Evans  <dje@google.com>
8981
8982         PR python/18299
8983         * python/lib/gdb/printing.py (register_pretty_printer): Handle
8984         name or __name__ attributes.  Handle gdb module as first argument.
8985
8986 2015-04-28  Doug Evans  <dje@google.com>
8987
8988         PR python/18089
8989         * python/py-prettyprint.c (print_children): Verify result of children
8990         iterator.  Provide better error message.
8991         * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
8992         * python/python.c (gdbpy_print_python_errors_p): New function.
8993
8994 2015-04-28  Doug Evans  <dje@google.com>
8995
8996         * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
8997
8998 2015-04-28  Sasha Smundak  <asmundak@google.com>
8999
9000         * NEWS: Mention gdb.Type.optimized_out method.
9001         * python/py-type.c (typy_optimized_out):  New function.
9002
9003 2015-04-28  John Baldwin  <jhb@FreeBSD.org>
9004
9005         * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
9006
9007 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
9008
9009         * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
9010         (initialize_utils): Move call of init_page_info() to ...
9011         * top.c (gdb_init): ... here.
9012
9013 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
9014
9015         * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
9016         (tui_sigwinch_handler): Still update our idea of
9017         the terminal's width and height even when TUI is not active.
9018
9019 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
9020
9021         * utils.h (set_screen_width_and_height): Declare.
9022         * utils.c (set_screen_width_and_height): Define.
9023         * tui/tui-win.c (tui_update_gdb_sizes): Use it.
9024
9025 2015-04-28  Gary Benson <gbenson@redhat.com>
9026
9027         * infrun.c (solist.h): New include.
9028         (follow_exec): Use exec_file_find to prefix execd_pathname
9029         with gdb_sysroot.
9030
9031 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
9032
9033         * tui/tui-source.c (tui_set_source_content): Avoid calling
9034         strcpy() when offset is 0.
9035
9036 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
9037
9038         PR gdb/18155
9039         * tui/tui-data.c (tui_free_window): Don't free the locator
9040         window when passed an SRC_WIN or a DISASSEM_WIN.
9041
9042 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
9043
9044         * tui/tui-data.h (struct tui_win_element): Forward-declare.
9045         (tui_win_content): Move declaration.
9046         (struct tui_gen_win_info): Give 'content' field the
9047         type tui_win_content.
9048         * tui/tui-data.c (init_content_element): Remove redundant and
9049         erroneous casts.
9050         (tui_add_content_elements): Remove erroneous cast.
9051         * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
9052         casts.
9053         (tui_get_begin_asm_address): Likewise.
9054         * tui/tui-regs.c (tui_show_registers): Likewise.
9055         (tui_show_register_group): Likewise.
9056         (tui_display_registers_from): Likewise.
9057         (tui_check_register_values): Likewise.
9058         * tui/tui-source.c (tui_set_source_content): Likewise.
9059         (tui_set_source_content_nil): Likewise.
9060         (tui_source_is_displayed): Likewise.
9061         * tui/tui-stack.c (tui_show_locator_content): Likewise.
9062         (tui_set_locator_fullname): Likewise.
9063         (tui_set_locator_info): Likewise.
9064         (tui_show_frame_info): Likewise.
9065         * tui/tui-winsource.c (tui_clear_source_content): Likewise.
9066         (tui_show_source_line): Likewise.
9067         (tui_horizontal_source_scroll): Likewise.
9068         (tui_update_breakpoint_info): Likewise.
9069         (tui_set_exec_info_content): Likewise.
9070         (tui_show_exec_info_content): Likewise.
9071         (tui_alloc_source_buffer): Likewise.
9072         (tui_line_is_displayed): Likewise.
9073         (tui_addr_is_displayed): Likewise.
9074
9075 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
9076
9077         * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
9078         event if PL_FLAG_EXEC is set.
9079         [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
9080         [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
9081         (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
9082         "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
9083         Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
9084
9085 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
9086
9087         * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
9088         [TDP_RFPPWAIT] New variable fbsd_pending_children.
9089         [TDP_RFPPWAIT] (fbsd_remember_child): New function.
9090         [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
9091         [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
9092         [PT_LWPINFO] (fbsd_wait): New function.
9093         [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
9094         [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
9095         [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
9096         [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
9097         [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
9098         [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
9099         [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
9100         [TDP_RFPPWAIT] (fbsd_post_attach): New function.
9101         (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
9102         "fbsd_wait".
9103         [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
9104         Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
9105         Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
9106         Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
9107         Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
9108         Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
9109         Set "to_post_attach" to "fbsd_post_attach".
9110
9111 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
9112
9113         * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
9114         (fbsd_find_memory_regions): Mark static.
9115         (fbsd_nat_add_target): New function.
9116         * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
9117         fbsd_pid_to_exec_file and fbsd_find_memory_regions.
9118         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
9119         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
9120         * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
9121         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
9122
9123 2015-04-27  Gary Benson <gbenson@redhat.com>
9124
9125         * objfiles.c (allocate_objfile): Do not attempt to expand name
9126         if name is a "target:" filename.
9127         * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
9128         to load auto-load scripts for objfiles with "target:" filenames.
9129
9130 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
9131
9132         * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
9133         (enum s390_vector_abi_kind): New enum.
9134         (struct gdbarch_tdep)<vector_abi>: New field.
9135         (s390_effective_inner_type): Add parameter min_size.  Stop
9136         unwrapping if the inner type is smaller than min_size.
9137         (s390_function_arg_float): Adjust call to
9138         s390_effective_inner_type.
9139         (s390_function_arg_vector): New function.
9140         (s390_function_arg_integer): Adjust comment.
9141         (struct s390_arg_state)<vr>: New field.
9142         (s390_handle_arg): Add parameter 'is_unnamed'.  Pass vector
9143         arguments according to vector ABI when appropriate.
9144         (s390_push_dummy_call): Initialize the argument state's field
9145         'vr'.  Adjust calls to s390_handle_arg.
9146         (s390_register_return_value): Handle vector return values.
9147         (s390_return_value): Apply the "register" return value convention
9148         to a vector when appropriate.
9149         (s390_gdbarch_init): Initialize tdep->vector_abi.
9150         * NEWS: Announce S390 vector ABI support.
9151
9152 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
9153
9154         * s390-linux-tdep.c (s390_return_value_convention): Remove
9155         function.  Inline its logic...
9156         (s390_return_value): ...here.  Instead, move the handling of the
9157         "register" return value convention...
9158         (s390_register_return_value): ...here.  New function.
9159
9160 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
9161
9162         * s390-linux-tdep.c
9163         (is_float_singleton): Remove function.  Move the "singleton" part
9164         of the logic...
9165         (s390_effective_inner_type): ...here.  New function.
9166         (is_float_like): Remove function.  Inline its logic...
9167         (s390_function_arg_float): ...here.
9168         (is_pointer_like, is_integer_like, is_struct_like): Remove
9169         functions.  Inline their logic...
9170         (s390_function_arg_integer): ...here.
9171         (s390_function_arg_pass_by_reference): Remove function.
9172         (extend_simple_arg): Remove function.
9173         (alignment_of): Remove function.
9174         (struct s390_arg_state): New structure.
9175         (s390_handle_arg): New function.
9176         (s390_push_dummy_call): Move parameter placement logic to the new
9177         function s390_handle_arg.  Call it for calculating the stack area
9178         sizes first, and again for actually writing the parameters.
9179
9180 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
9181
9182         * s390-linux-tdep.c (is_power_of_two): Add comment.  Return
9183           false if the argument is zero.
9184
9185 2015-04-27  Pierre-Marie de Rodat  <derodat@adacore.com>
9186
9187         * ada-lang.c (template_to_static_fixed_type): Return input type
9188         when it is already fixed.  Cache the input type itself when not
9189         creating a static fixed copy.  Make it explicit that we never
9190         molestate the input type.
9191         * gdbtypes.c (resolve_dynamic_struct): Reset the
9192         TYPE_TARGET_TYPE field for resolved copies.
9193
9194 2015-04-27  Joel Brobecker  <brobecker@adacore.com>
9195
9196         * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
9197         (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
9198         (template_to_static_fixed_type): Call ada_check_typedef only
9199         when necessary.
9200
9201 2015-04-24  Andrew Burgess  <andrew.burgess@embecosm.com>
9202
9203         * cli/cli-dump.c (srec_dump_command): Add internationalization
9204         mark ups.
9205         (ihex_dump_command): Likewise.
9206         (tekhex_dump_command): Likewise.
9207         (binary_dump_command): Likewise.
9208         (binary_append_command): Likewise.
9209
9210 2015-04-24  Andrew Burgess  <andrew.burgess@embecosm.com>
9211
9212         * cli/cli-dump.c (verilog_cmdlist): New variable.
9213         (dump_verilog_memory): New function.
9214         (dump_verilog_value): New function.
9215         (verilog_dump_command): New function.
9216         (_initialize_cli_dump): Add new commands to support verilog dump
9217         format.
9218         * NEWS: Add entry for "dump verilog".
9219
9220 2015-04-24  Pierre-Marie de Rodat  <derodat@adacore.com>
9221
9222         * gdbtypes.c (print_gnat_stuff): Do not recurse on the
9223         descriptive type when there is none.
9224
9225 2015-04-23  Patrick Palka  <patrick@parcs.ath.cx>
9226
9227         * tui/tui-win.c (tui_async_resize_screen): Call
9228         rl_resize_terminal().
9229
9230 2015-04-22  Jon Turney  <jon.turney@dronecode.org.uk>
9231
9232         * windows-nat.c (handle_output_debug_string): Don't change
9233         current_event.dwThreadId.
9234         (get_windows_debug_event): Use thread_id, rather than relying on
9235         current_event.dwThreadId being changed.
9236
9237 2015-04-22  Jon Turney  <jon.turney@dronecode.org.uk>
9238
9239         * windows-nat.c (windows_continue): Report an error if
9240         ContinueDebugEvent() fails.
9241
9242 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
9243
9244         * windows-nat.c (windows_resume): Fix misspelling in debug output.
9245
9246 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
9247
9248         * windows-nat.c (get_windows_debug_event): Replace retval with
9249         thread_id throughout.  Update stale comment.
9250
9251 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
9252
9253         * windows-nat.c (get_windows_debug_event): Don't use ternary
9254         conditional operator.
9255
9256 2015-04-21  Pierre Muller  <muller@sourceware.org>
9257
9258         PR pascal/17815
9259         p-exp.y (yylex): Reorganize code to return the matched pattern
9260         for a field of this.
9261
9262 2015-04-21  Gary Benson <gbenson@redhat.com>
9263
9264         * common/fileio.h (fileio_to_host_openflags): New declaration.
9265         * common/fileio.c (fcntl.h): New include.
9266         (fileio_to_host_openflags): New function, factored out from...
9267         * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
9268         Single use updated.
9269
9270 2015-04-21  Kevin Buettner  <kevinb@redhat.com>
9271
9272         * rl78-tdep.c (RL78_SP_ADDR): Define.
9273         (opc_reg_to_gdb_regnum): New static function.
9274         (rl78_analyze_prologue): Recognize instructions forming slightly
9275         more interesting prologues.
9276
9277 2015-04-20  Pierre-Marie de Rodat  <derodat@adacore.com>
9278
9279         Revert:
9280         2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
9281         * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
9282         TYPE_CODE_REF types so that they are not considered as dynamic
9283         depending on the referenced type.
9284         (resolve_dynamic_type_internal): Likewise.
9285
9286 2015-04-20  Pierre-Marie de Rodat  <derodat@adacore.com>
9287
9288         Revert:
9289         2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
9290         * gdbtypes.c (is_dynamic_type_internal): Remove the unused
9291         "top_level" parameter.
9292         (resolve_dynamic_type_internal): Remove the unused "top_level"
9293         parameter.  Update call to is_dynamic_type_internal.
9294         (is_dynamic_type): Update call to is_dynamic_type_internal.
9295         (resolve_dynamic_range): Update call to
9296         resolve_dynamic_type_internal.
9297         (resolve_dynamic_union): Likewise.
9298         (resolve_dynamic_struct): Likewise.
9299         (resolve_dynamic_type): Likewise.
9300
9301 2015-04-19  Gabriel Krisman Bertazi  <gabriel@krisman.be>
9302
9303         * breakpoint.c (update_dprintf_command_list): Remove duplicated
9304         xmalloc.
9305
9306 2015-04-20  Thomas Schwinge  <thomas@codesourcery.com>
9307
9308         * reply_mig_hack.awk: Robustify parsing.
9309
9310         * reply_mig_hack.awk: Don't bother to declare an intermediate
9311         function pointer variable.
9312
9313 2015-04-17  Doug Evans  <dje@google.com>
9314
9315         * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
9316         to "exec_displacement" to avoid confusion with inner use of the name.
9317
9318 2015-04-17  Pedro Alves  <palves@redhat.com>
9319
9320         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
9321         if HW point of TYPE isn't supported.
9322
9323 2015-04-17  Yao Qi  <yao.qi@linaro.org>
9324             Pedro Alves  <palves@redhat.com>
9325
9326         * target.h (target_can_use_hardware_watchpoint): Update comments.
9327         Remove trailing ";".
9328
9329 2015-04-17  Gary Benson <gbenson@redhat.com>
9330
9331         * remote.c (remote_add_inferior): New argument try_open_exec.
9332         If nonzero, attempt to open the inferior's executable file as
9333         the main executable if no main executable is open already.
9334         All callers updated.
9335         * NEWS: Mention that GDB now supports automatic location and
9336         retrieval of executable + files from remote targets.
9337
9338 2015-04-17  Gary Benson <gbenson@redhat.com>
9339
9340         * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
9341         * remote.c (PACKET_qXfer_exec_file): Likewise.
9342         (remote_protocol_features): Register the
9343         "qXfer:exec-file:read" feature.
9344         (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
9345         (remote_pid_to_exec_file): New function.
9346         (init_remote_ops): Initialize to_pid_to_exec_file.
9347         (_initialize_remote): Register new "set/show remote
9348         pid-to-exec-file-packet" command.
9349         * NEWS: Announce new qXfer:exec-file:read packet.
9350
9351 2015-04-17  Gary Benson <gbenson@redhat.com>
9352
9353         * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
9354         New declaration.
9355         * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
9356         New function, factored out from...
9357         * linux-nat.c (linux_child_pid_to_exec_file): ...here.
9358
9359 2015-04-17  Gary Benson <gbenson@redhat.com>
9360
9361         * exec.c (solist.h): New include.
9362         (exec_file_locate_attach): Prefix absolute executable
9363         paths with gdb_sysroot if set.
9364         * NEWS: Mention that executable paths may be prepended
9365         with sysroot.
9366
9367 2015-04-17  Gary Benson <gbenson@redhat.com>
9368
9369         * solist.h (exec_file_find): New declaration.
9370         * solib.c (solib_find_1): New function, factored out from...
9371         (solib_find): ...here.
9372         (exec_file_find): New function.
9373
9374 2015-04-17  Gary Benson <gbenson@redhat.com>
9375
9376         * gdbcore.h (exec_file_locate_attach): New declaration.
9377         * exec.c (exec_file_locate_attach): New function, factored
9378         out from...
9379         * infcmd.c (attach_command_post_wait): ...here.
9380
9381 2015-04-17  Mike Frysinger  <vapier@gentoo.org>
9382
9383         * MAINTAINERS: Add myself for Blackfin/write-after-approval.
9384
9385 2015-04-16  Yao Qi  <yao.qi@linaro.org>
9386
9387         * infrun.c (maybe_software_singlestep): Declare.
9388         (displaced_step_fixup): Call maybe_software_singlestep.
9389
9390 2015-04-15  Doug Evans  <dje@google.com>
9391
9392         * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
9393
9394 2015-04-15  Doug Evans  <dje@google.com>
9395
9396         * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
9397
9398 2015-04-15  Simon Marchi  <simon.marchi@ericsson.com>
9399
9400         * python/lib/gdb/command/unwinders.py: Add parentheses.
9401
9402 2015-04-15  Yao Qi  <yao.qi@linaro.org>
9403
9404         * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
9405
9406 2015-04-15  Yao Qi  <yao.qi@linaro.org>
9407
9408         * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
9409
9410 2015-04-15  Yao Qi  <yao.qi@linaro.org>
9411
9412         * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
9413         dsc->insn_size instead of 4.
9414
9415 2015-04-14  Gary Benson <gbenson@redhat.com>
9416
9417         * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
9418         * minidebug.c (lzma_stat): Likewise.
9419         * solib-spu.c (spu_bfd_iovec_stat): Likewise.
9420         * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
9421
9422 2015-04-13  Stan Shebs  <stanshebs@google.com>
9423
9424         * MAINTAINERS: Update my email address.
9425
9426 2015-04-13  John Baldwin  <jhb@FreeBSD.org>
9427
9428         * amd64-tdep.c (amd64_target_description): New function.
9429         * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
9430         * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
9431         (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
9432         x86 extended save area.
9433         (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
9434         * amd64bsd-nat.h: Export amd64bsd_xsave_len.
9435         * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
9436         (_initialize_amd64fbsd_nat): Set "to_read_description" to
9437         "amd64fbsd_read_description".
9438         * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
9439         (amd64fbsd_supply_xstateregset): New function.
9440         (amd64fbsd_collect_xstateregset): New function.
9441         Add "amd64fbsd_xstateregset".
9442         (amd64fbsd_iterate_over_regset_sections): New function.
9443         (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
9444         "I386_FBSD_XSAVE_XCR0_OFFSET".
9445         Add "iterate_over_regset_sections" gdbarch method.
9446         Add "core_read_description" gdbarch method.
9447         * i386-tdep.c (i386_target_description): New function.
9448         * i386-tdep.h: Export i386_target_description and tdesc_i386.
9449         * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
9450         (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
9451         x86 extended save area.
9452         (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
9453         * i386bsd-nat.h: Export i386bsd_xsave_len.
9454         * i386fbsd-nat.c (i386fbsd_read_description): New function.
9455         (_initialize_i386fbsd_nat): Set "to_read_description" to
9456         "i386fbsd_read_description".
9457         * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
9458         (i386fbsd_core_read_description): New function.
9459         (i386fbsd_supply_xstateregset): New function.
9460         (i386fbsd_collect_xstateregset): New function.
9461         Add "i386fbsd_xstateregset".
9462         (i386fbsd_iterate_over_regset_sections): New function.
9463         (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
9464         "I386_FBSD_XSAVE_XCR0_OFFSET".
9465         Add "iterate_over_regset_sections" gdbarch method.
9466         Add "core_read_description" gdbarch method.
9467         * i386fbsd-tdep.h: New file.
9468
9469 2015-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
9470
9471         * NEWS (Changes since GDB 7.9): Add removed -xdb.
9472         * breakpoint.c (command_line_is_silent): Remove xdb_commands
9473         conditional.
9474         (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
9475         and lb.
9476         * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
9477         va.
9478         * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
9479         conditional.
9480         * defs.h (xdb_commands): Remove declaration.
9481         * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
9482         * guile/scm-cmd.c (command_classes): Remove xdb from comment.
9483         * infcmd.c (run_no_args_command, go_command): Remove.
9484         (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
9485         * infrun.c (xdb_handle_command): Remove.
9486         (_initialize_infrun): Remove xdb_commands for lz and z.
9487         * main.c (xdb_commands): Remove variable.
9488         (captured_main): Remove "xdb" from long_options.
9489         (print_gdb_help): Remove --xdb from help.
9490         * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
9491         * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
9492         * stack.c (backtrace_full_command, args_plus_locals_info)
9493         (current_frame_command): Remove.
9494         (_initialize_stack): Remove xdb_commands for t, T and l.
9495         * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
9496         * thread.c (_initialize_thread): Remove xdb_commands condition.
9497         * tui/tui-layout.c (tui_toggle_layout_command)
9498         (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
9499         (_initialize_tui_layout): Remove xdb_commands for td and ts.
9500         * tui/tui-regs.c (tui_scroll_regs_forward_command)
9501         (tui_scroll_regs_backward_command): Remove.
9502         (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
9503         * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
9504         (_initialize_tui_win): Remove xdb_commands for U and w.
9505         * utils.c (pagination_on_command, pagination_off_command): Remove.
9506         (initialize_utils): Remove xdb_commands for am and sm.
9507
9508 2015-04-10  Pedro Alves  <palves@redhat.com>
9509
9510         * infrun.c (displaced_step_fixup): Switch to the event ptid
9511         earlier.  If the thread stopped for a watchpoint and the
9512         target/arch has non-continuable watchpoints, cancel the displaced
9513         step.
9514         (resume): Don't start a displaced step if in-line step-over info
9515         is valid.
9516
9517 2015-04-10  Pedro Alves  <palves@redhat.com>
9518
9519         * infrun.c (displaced_step_in_progress): New function.
9520         (do_target_resume): Advise target to report all signals if
9521         displaced stepping.
9522
9523 2015-04-10  Pedro Alves  <palves@redhat.com>
9524
9525         PR gdb/18216
9526         * infrun.c (process_event_stop_test): Don't assume a step-resume
9527         is set if tp->stepped_breakpoint is true.
9528
9529 2015-04-10  Yao Qi  <yao.qi@linaro.org>
9530
9531         * arm-tdep.c (install_alu_reg): Update comment.
9532         (thumb_copy_alu_reg): Remove local variable rn.  Update
9533         debugging message.  Use r2 instead of r1 in the modified
9534         instruction.
9535
9536 2015-04-10  Pedro Alves  <palves@redhat.com>
9537
9538         PR gdb/13858
9539         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
9540         linux_displaced_step_location as gdbarch_displaced_step_location
9541         hook.
9542         * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
9543         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
9544         * linux-tdep.c (linux_displaced_step_location): New function,
9545         based on ppc_linux_displaced_step_location.
9546         * linux-tdep.h (linux_displaced_step_location): New declaration.
9547         * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
9548         (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
9549         Delete.
9550         (ppc_linux_init_abi): Install linux_displaced_step_location as
9551         gdbarch_displaced_step_location hook, even without Cell/B.E..
9552         (_initialize_ppc_linux_tdep): Don't install
9553         ppc_linux_inferior_created as inferior_created observer.
9554         * s390-linux-tdep.c (s390_gdbarch_init): Install
9555         linux_displaced_step_location as gdbarch_displaced_step_location
9556         hook.
9557
9558 2015-04-09  Gary Benson <gbenson@redhat.com>
9559
9560         * common/common-remote-fileio.h: Rename to...
9561         * common/fileio.h: ...this.  Update all references.
9562         (remote_fileio_to_fio_error): Rename to...
9563         (host_to_fileio_error): ...this.
9564         (remote_fileio_to_be): Rename to...
9565         (host_to_bigendian): ...this.  Update all callers.
9566         (remote_fileio_to_fio_uint): Rename to...
9567         (host_to_fileio_uint): ...this.  Update all callers.
9568         (remote_fileio_to_fio_time): Rename to...
9569         (host_to_fileio_time): ...this.  Update all callers.
9570         (remote_fileio_to_fio_stat): Rename to...
9571         (host_to_fileio_stat): ...this.
9572         Update all references.
9573         * common/common-remote-fileio.c: Rename to...
9574         * common/fileio.c: ...this.  Update all references.
9575         (remote_fileio_to_fio_error): Rename to...
9576         (host_to_fileio_error): ...this.  Update all callers.
9577         (remote_fileio_mode_to_target): Rename to...
9578         (fileio_mode_pack): ...this.  Update all callers.
9579         (remote_fileio_to_fio_mode): Rename to...
9580         (host_to_fileio_mode): ...this.  Update all callers.
9581         (remote_fileio_to_fio_ulong): Rename to...
9582         (host_to_fileio_ulong): ...this.  Update all callers.
9583         (remote_fileio_to_fio_stat): Rename to...
9584         (host_to_fileio_stat): ...this.  Update all callers.
9585
9586 2015-04-09  Andy Wingo  <wingo@igalia.com>
9587
9588         * guile/scm-frame.c (gdbscm_frame_read_register): New function.
9589         (frame_functions): Bind gdbscm_frame_read_register to
9590         frame-read-register.
9591         * guile/lib/gdb.scm (frame-read-register): Export.
9592
9593 2015-04-09  Gary Benson <gbenson@redhat.com>
9594
9595         * common/common-remote-fileio.h (remote_fileio_to_fio_error):
9596         New declaration.
9597         * common/common-remote-fileio.c (remote_fileio_to_fio_error):
9598         New function, factored out the named functions below.
9599         * inf-child.c (gdb/fileio.h): Remove include.
9600         (common-remote-fileio.h): New include.
9601         (inf_child_errno_to_fileio_error): Remove function.  Update
9602         all callers to use remote_fileio_to_fio_error.
9603         * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
9604
9605 2015-04-09  Andy Wingo  <wingo@igalia.com>
9606
9607         * MAINTAINERS (Write After Approval): Add Andy Wingo.
9608
9609 2015-04-09  H.J. Lu  <hongjiu.lu@intel.com>
9610
9611         * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
9612         Replace $zlibdir with $ZLIBDIR in LDFLAGS.
9613         * configure: Regenerated.
9614
9615 2015-04-09  Pedro Alves  <palves@redhat.com>
9616
9617         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
9618         * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
9619         * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
9620         * gnulib/import/Makefile.am: Update.
9621         * gnulib/import/Makefile.in: Update.
9622         * gnulib/import/m4/gnulib-cache.m4: Update.
9623         * gnulib/import/m4/gnulib-comp.m4: Update.
9624         * gnulib/import/m4/strtok_r.m4: New file.
9625         * gnulib/import/strtok_r.c: New file.
9626
9627 2015-04-09  Pedro Alves  <palves@redhat.com>
9628
9629         * gnulib/update-gnulib.sh (aclocal version check): Filter out
9630         "called too early to check prototype".
9631
9632 2015-04-08  Sergio Durigan Junior  <sergiodj@redhat.com>
9633
9634         PR python/16699
9635         * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
9636         use a caching mechanism.  Adjust comments and code to reflect
9637         that.  Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
9638         (cmdpy_completer_handle_brkchars): Adjust call to
9639         cmdpy_completer_helper.  Call Py_XDECREF for 'resultobj'.
9640         (cmdpy_completer): Likewise.
9641
9642 2015-04-08  Yao Qi  <yao.qi@linaro.org>
9643
9644         * spu-tdep.c (spu_gdbarch_init): Don't call
9645         set_gdbarch_cannot_step_breakpoint.
9646
9647 2015-04-07  Sergio Durigan Junior  <sergiodj@redhat.com>
9648
9649         * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
9650
9651 2015-04-07  Pedro Alves  <palves@redhat.com>
9652
9653         * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
9654         (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
9655         (delete_exited_threads): New declaration.
9656         * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
9657         * linux-nat.c (linux_nat_update_thread_list): New function.
9658         (linux_nat_add_target): Install it.
9659         * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
9660         * thread.c (prune_threads): Use ALL_THREADS_SAFE.
9661         (delete_exited_threads): New function.
9662
9663 2015-04-07  Pedro Alves  <pedro@codesourcery.com>
9664
9665         * infrun.c (resume) <displaced stepping debug output>: Get the
9666         leader thread's regcache, not resume_ptid's.
9667
9668 2015-04-06  Doug Evans  <xdje42@gmail.com>
9669
9670         * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
9671         VAR_DOMAIN.
9672         (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
9673         Include symbol domain in debugging output.
9674
9675 2015-04-06  Pedro Alves  <palves@redhat.com>
9676             Bernd Edlinger  <bernd.edlinger@hotmail.de>
9677
9678         * configure.ac: Remove the mingw32-specific stub-termcap.o
9679         fallback, and instead fallback to the stub termcap on all hosts.
9680         * configure: Regenerate.
9681         * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
9682         symbols.
9683
9684 2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
9685
9686         * gdbtypes.c (is_dynamic_type_internal): Remove the unused
9687         "top_level" parameter.
9688         (resolve_dynamic_type_internal): Remove the unused "top_level"
9689         parameter.  Update call to is_dynamic_type_internal.
9690         (is_dynamic_type): Update call to is_dynamic_type_internal.
9691         (resolve_dynamic_range): Update call to
9692         resolve_dynamic_type_internal.
9693         (resolve_dynamic_union): Likewise.
9694         (resolve_dynamic_struct): Likewise.
9695         (resolve_dynamic_type): Likewise.
9696
9697 2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
9698
9699         * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
9700         TYPE_CODE_REF types so that they are not considered as dynamic
9701         depending on the referenced type.
9702         (resolve_dynamic_type_internal): Likewise.
9703
9704 2015-04-02  H.J. Lu  <hongjiu.lu@intel.com>
9705
9706         * Makefile.in (top_srcdir): New.
9707         * configure: Regenerated.
9708
9709 2015-04-02  Gary Benson <gbenson@redhat.com>
9710
9711         * NEWS: Announce the new default sysroot of "target:".
9712
9713 2015-04-02  Gary Benson <gbenson@redhat.com>
9714
9715         * main.c (captured_main): Set gdb_sysroot to "target:"
9716         if not otherwise set.
9717
9718 2015-04-02  Gary Benson <gbenson@redhat.com>
9719
9720         * exec.c (exec_file_attach): Support "target:" filenames.
9721
9722 2015-04-02  Gary Benson <gbenson@redhat.com>
9723
9724         * solib.c (solib_find): Strip "target:" prefix from sysroot
9725         if accessing local files.
9726
9727 2015-04-02  Gary Benson <gbenson@redhat.com>
9728
9729         * symfile.c (symfile_bfd_open): Reorder to remove duplicated
9730         checks and error messages.
9731
9732 2015-04-02  Gary Benson <gbenson@redhat.com>
9733
9734         * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
9735         (remote_filename_p): Remove declaration.
9736         (remote_bfd_open): Likewise.
9737         * remote.c (remote_bfd_iovec_open): Remove function.
9738         (remote_bfd_iovec_close): Likewise.
9739         (remote_bfd_iovec_pread): Likewise.
9740         (remote_bfd_iovec_stat): Likewise.
9741         (remote_filename_p): Likewise.
9742         (remote_bfd_open): Likewise.
9743         * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
9744         * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
9745         (gdb_bfd_open_maybe_remote): Remove function.
9746         (symfile_bfd_open):  Replace remote filename check with
9747         target filename check.
9748         (reread_symbols): Use gdb_bfd_open.
9749         * build-id.c (gdbcore.h): New include.
9750         (build_id_to_debug_bfd): Use gdb_bfd_open.
9751         * infcmd.c (attach_command_post_wait): Remove remote filename
9752         check.
9753         * solib.c (solib_find): Replace remote-specific handling with
9754         target-specific handling.  Update comments where necessary.
9755         (solib_bfd_open): Replace remote-specific handling with
9756         target-specific handling.
9757         (gdb_sysroot_changed): New function.
9758         (_initialize_solib): Call the above when gdb_sysroot changes.
9759         * windows-tdep.c (gdbcore.h): New include.
9760         (windows_xfer_shared_library): Use gdb_bfd_open.
9761
9762 2015-04-02  Gary Benson <gbenson@redhat.com>
9763
9764         * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
9765         (is_target_filename): New declaration.
9766         (gdb_bfd_has_target_filename): Likewise.
9767         (gdb_bfd_open): Update documentation comment.
9768         * gdb_bfd.c (target.h): New include.
9769         (gdb/fileio.h): Likewise.
9770         (is_target_filename): New function.
9771         (gdb_bfd_has_target_filename): Likewise.
9772         (fileio_errno_to_host): Likewise.
9773         (gdb_bfd_iovec_fileio_open): Likewise.
9774         (gdb_bfd_iovec_fileio_pread): Likewise.
9775         (gdb_bfd_iovec_fileio_close): Likewise.
9776         (gdb_bfd_iovec_fileio_fstat): Likewise.
9777         (gdb_bfd_open): Use target fileio to access paths prefixed
9778         with "target:" where necessary.
9779
9780 2015-04-02  Gary Benson <gbenson@redhat.com>
9781
9782         * target.h (struct target_ops) <to_filesystem_is_local>:
9783         New field.
9784         (target_filesystem_is_local): New macro.
9785         * target-delegates.c: Regenerate.
9786         * remote.c (remote_filesystem_is_local): New function.
9787         (init_remote_ops): Initialize to_filesystem_is_local.
9788
9789 2015-04-02  Gary Benson <gbenson@redhat.com>
9790
9791         * target.h (struct target_ops) <to_fileio_fstat>: New field.
9792         (target_fileio_fstat): New declaration.
9793         * target.c (target_fileio_fstat): New function.
9794         * inf-child.c (inf_child_fileio_fstat): Likewise.
9795         (inf_child_target): Initialize to_fileio_fstat.
9796         * remote.c (init_remote_ops): Likewise.
9797
9798 2015-04-01  Sasha Smundak  <asmundak@google.com>
9799
9800         * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
9801         (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
9802         (py-unwind.o): New recipe.
9803         * NEWS: mention Python frame unwinding.
9804         * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
9805         gdb/unwinder.py and gdb/command/unwinder.py
9806         * python/lib/gdb/__init__.py (packages): Add frame_unwinders
9807         list.
9808         (execute_unwinders): New function.
9809         * python/lib/gdb/command/unwinders.py: New file.
9810         * python/lib/gdb/unwinder.py: New file.
9811         * python/py-objfile.c (objfile_object): Add frame_unwinders field.
9812         (objfpy_dealloc): Decrement frame_unwinders reference count.
9813         (objfpy_initialize): Create frame_unwinders list.
9814         (objfpy_get_frame_unwinders): New function.
9815         (objfpy_set_frame_unwinders): Ditto.
9816         (objfile_getset): Add frame_unwinders attribute to Objfile.
9817         * python/py-progspace.c (pspace_object): Add frame_unwinders field.
9818         (pspy_dealloc): Decrement frame_unwinders reference count.
9819         (pspy_initialize): Create frame_unwinders list.
9820         (pspy_get_frame_unwinders): New function.
9821         (pspy_set_frame_unwinders): Ditto.
9822         (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
9823         * python/py-unwind.c: New file.
9824         * python/python-internal.h (pspy_get_name_unwinders): New prototype.
9825         (objpy_get_frame_unwinders): New prototype.
9826         (gdbpy_initialize_unwind): New prototype.
9827         * python/python.c (gdbpy_apply_type_printers): Call
9828         gdbpy_initialize_unwind.
9829
9830 2015-04-01  Pedro Alves  <palves@redhat.com>
9831
9832         * infrun.c (resume): Check currently_stepping after clearing
9833         stepped_breakpoint, not before.
9834
9835 2015-04-01  Pedro Alves  <palves@redhat.com>
9836
9837         * infrun.c (print_target_wait_results): Print all the ptid
9838         elements.
9839
9840 2015-04-01  Pedro Alves  <palves@redhat.com>
9841
9842         * infrun.c (keep_going): Also discard cleanups if inserting
9843         breakpoints fails.
9844
9845 2015-04-01  Pedro Alves  <palves@redhat.com>
9846
9847         * infrun.c (wait_for_inferior): Install the
9848         finish_thread_state_cleanup cleanup across the whole function, not
9849         just around handle_inferior_event.
9850
9851 2015-04-01  Pedro Alves  <palves@redhat.com>
9852
9853         * infrun.c (resume) <step past permanent breakpoint>: Use
9854         do_target_resume.
9855
9856 2015-04-01  Pedro Alves  <palves@redhat.com>
9857
9858         * linux-nat.c (linux_handle_extended_wait): Always call set_running.
9859
9860 2015-04-01  Pierre-Marie de Rodat  <derodat@adacore.com>
9861
9862         * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
9863
9864 2015-04-01  Pedro Alves  <palves@redhat.com>
9865
9866         * linux-thread-db.c (record_thread): Readd the thread to gdb's
9867         list if it was marked exited.
9868
9869 2015-04-01  H.J. Lu  <hongjiu.lu@intel.com>
9870
9871         * configure: Regenerated.
9872
9873 2015-03-31  Sergio Durigan Junior  <sergiodj@redhat.com>
9874             Jan Kratochvil  <jan.kratochvil@redhat.com>
9875             Oleg Nesterov  <oleg@redhat.com>
9876
9877         PR corefiles/16092
9878         * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
9879         New enum identifying the various options of the coredump_filter
9880         file.
9881         (struct smaps_vmflags): New struct.
9882         (use_coredump_filter): New variable.
9883         (decode_vmflags): New function.
9884         (mapping_is_anonymous_p): Likewise.
9885         (dump_mapping_p): Likewise.
9886         (linux_find_memory_regions_full): New variables
9887         'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
9888         Removed variable 'modified'.  Read /proc/<PID>/smaps file; improve
9889         parsing of its information.  Implement memory mapping filtering
9890         based on its contents.
9891         (show_use_coredump_filter): New function.
9892         (_initialize_linux_tdep): New command 'set use-coredump-filter'.
9893         * NEWS: Mention the possibility of using the
9894         '/proc/PID/coredump_filter' file when generating a corefile.
9895         Mention new command 'set use-coredump-filter'.
9896
9897 2015-03-31  Sergio Durigan Junior  <sergiodj@redhat.com>
9898
9899         * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
9900         read_memory_unsigned_integer.
9901
9902 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
9903
9904         * Makefile.in (ZLIB): New.
9905         (ZLIBINC): Likewise.
9906         (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
9907         (CLIBS): Add $(ZLIB).
9908         * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
9909         Add -lz to LIBS.
9910         * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
9911         * top.c (print_gdb_configuration): Remove --with-zlib and
9912         --without-zlib.
9913         * config.in: Regenerated.
9914         * configure: Likewise.
9915
9916 2015-03-31  Antoine Tremblay  <antoine.tremblay@ericsson.com>
9917
9918         * NEWS: Mention info os cpus support.
9919         * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
9920         (struct osdata_type): Add cpus entry, reorder the entries in
9921         alphabetical order.
9922
9923 2015-03-31  Matthias Klose  <doko@ubuntu.com>
9924
9925         * compile/compile.c (compile_to_object): Allow triplets with or
9926         without vendor set.
9927
9928 2015-03-30  Doug Evans  <dje@google.com>
9929
9930         PR c++/18141
9931         * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
9932         klass in VAR_DOMAIN.
9933
9934 2015-03-30  Gary Benson <gbenson@redhat.com>
9935
9936         * remote.c (remote_mourn_1): Remove function.  Update all callers
9937         to use remote_mourn.
9938         (extended_remote_mourn_1): Remove function.  Update all callers
9939         to use extended_remote_mourn.
9940         (extended_remote_attach_1): Remove function.  Update all callers
9941         to use extended_remote_attach.
9942
9943 2015-03-28  James Bowman  <james.bowman@ftdichip.com>
9944
9945         * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
9946         (HFILES_NO_SRCDIR): Add ft32-tdep.h.
9947         (ALLDEPFILES): Add ft32-tdep.c.
9948         * configure.tgt: Add FT32 entry.
9949         * ft32-tdep.c: New file, FT32 target-dependent code.
9950         * ft32-tdep.h: New file, FT32 target-dependent code.
9951
9952 2015-03-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
9953
9954         Revert:
9955         2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
9956         Code cleanup.
9957         * printcmd.c (print_command_1): Move expr variable scope.
9958
9959 2015-03-27  Joel Brobecker  <brobecker@adacore.com>
9960
9961         * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
9962
9963 2015-03-27  Andrzej Kaczmarek  <andrzej.kaczmarek@tieto.com>
9964
9965         * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
9966         sections.
9967
9968 2015-03-26  Joel Brobecker  <brobecker@adacore.com>
9969
9970         * dtrace-probe.c (dtrace_process_dof_probe): Contain any
9971         exception raised while parsing the probe arguments.
9972         Force parsing to be done using the C language parser.
9973         * expression.h (parse_expression_with_language): Declare.
9974         * parse.c (parse_expression_with_language): New function.
9975
9976 2015-03-26  Jon Turney  <jon.turney@dronecode.org.uk>
9977
9978         * MAINTAINERS (Write After Approval): Add "Jon Turney".
9979
9980 2015-03-26  Andy Wingo  <wingo@igalia.com>
9981
9982         PR symtab/18148
9983         * dwarf2read.c (struct partial_die_info): Add has_const_value
9984         member.
9985         (add_partial_symbol): Don't punt on symbols that have const_value
9986         attributes.
9987         (read_partial_die): Detect DW_AT_const_value.
9988
9989 2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
9990
9991         Code cleanup.
9992         * printcmd.c (print_command_1): Move expr variable scope.
9993
9994 2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
9995
9996         Code cleanup.
9997         * printcmd.c (validate_format): Make the parameter cmdname const.
9998
9999 2015-03-26  Don Breazeal  <donb@codesourcery.com>
10000
10001         * remote.c (_initialize_remote): Update comment.
10002
10003 2015-03-26  Pedro Alves  <palves@redhat.com>
10004             Jon TURNEY  <jon.turney@dronecode.org.uk>
10005
10006         * coffread.c (coff_symfile_read): When constructing the name of an
10007         import stub symbol from import symbol for amd64, only skip the
10008         char after _imp_ if the target is underscored (like i386) and the
10009         char is indeed the target's leading char.
10010
10011 2015-03-25  Pedro Alves  <palves@redhat.com>
10012
10013         * target.h <to_async>: Replace 'callback' and 'context' parameters
10014         with boolean 'enable' parameter.
10015         (target_async): Replace CALLBACK and CONTEXT parameters with
10016         boolean ENABLE parameter.
10017         * inf-loop.c (inferior_event_handler): Adjust.
10018         * linux-nat.c (linux_nat_attach, linux_nat_resume)
10019         (linux_nat_resume): Adjust.
10020         (async_client_callback, async_client_context): Delete.
10021         (handle_target_event): Call inferior_event_handler directly.
10022         (linux_nat_async): Replace 'callback' and 'context' parameters
10023         with boolean 'enable' parameter.  Adjust.  Remove references to
10024         async_client_callback and async_client_context.
10025         (linux_nat_close): Adjust.
10026         * record-btrace.c (record_btrace_async): Replace 'callback' and
10027         'context' parameters with boolean 'enable' parameter.  Adjust.
10028         (record_btrace_resume): Adjust.
10029         * record-full.c (record_full_async): Replace 'callback' and
10030         'context' parameters with boolean 'enable' parameter.  Adjust.
10031         (record_full_resume, record_full_core_resume): Adjust.
10032         * remote.c (struct remote_state) <async_client_callback,
10033         async_client_context>: Delete fields.
10034         (remote_start_remote, extended_remote_attach_1, remote_resume)
10035         (extended_remote_create_inferior): Adjust.
10036         (remote_async_serial_handler): Call inferior_event_handler
10037         directly.
10038         (remote_async): Replace 'callback' and 'context' parameters with
10039         boolean 'enable' parameter.  Adjust.
10040         * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
10041         Adjust.
10042         * target-delegates.c: Regenerate.
10043
10044 2015-03-25  Gary Benson <gbenson@redhat.com>
10045             Pedro Alves  <palves@redhat.com>
10046
10047         * target.c (fileio_ft_t): New typedef, define object vector.
10048         (fileio_fhandles): New static variable.
10049         (is_closed_fileio_fh): New macro.
10050         (lowest_closed_fd): New static variable.
10051         (acquire_fileio_fd): New function.
10052         (release_fileio_fd): Likewise.
10053         (fileio_fd_to_fh): New macro.
10054         (target_fileio_open): Wrap the file descriptor on success.
10055         (target_fileio_pwrite): Updated to use wrapped file descriptor.
10056         (target_fileio_pread): Likewise.
10057         (target_fileio_close): Likewise.
10058
10059 2015-03-24  Pedro Alves  <palves@redhat.com>
10060
10061         * thread.c (thread_apply_all_command): Take exited threads into
10062         account.
10063
10064 2015-03-24  Pedro Alves  <palves@redhat.com>
10065
10066         * infrun.c (resume, proceed): Mention
10067         switch_back_to_stepped_thread, not switch_back_to_stepping.
10068
10069 2015-03-24  Pedro Alves  <palves@redhat.com>
10070
10071         * infrun.c (user_visible_resume_ptid): Rewrite going from
10072         most-locked to unlocked instead of the opposite.  Move comment ...
10073         * infrun.h (user_visible_resume_ptid): ... here.
10074
10075 2015-03-24  Pedro Alves  <palves@redhat.com>
10076
10077         * linux-nat.c (linux_nat_resume): Output debug logs before trying
10078         to resume the event lwp.  Use the lwp's ptid instead of the passed
10079         in (maybe wildcard) ptid.
10080         (stop_wait_callback): Tweak debug log output.
10081         (check_stopped_by_breakpoint): Tweak debug log output.  Also dump
10082         TRAP_TRACE.
10083         (linux_nat_filter_event): In debug output, distinguish a
10084         resume_stop SIGSTOP from a delayed SIGSTOP.  Output debug logs
10085         before trying to resume the lwp.
10086
10087 2015-03-24  Joel Brobecker  <brobecker@adacore.com>
10088
10089         * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
10090         pointer indirection.
10091         * gdbtypes.c (get_dyn_prop): Adjust, following change above.
10092         (add_dyn_prop, copy_dynamic_prop_list): Likewise.
10093
10094 2015-03-24  Joel Brobecker  <brobecker@adacore.com>
10095
10096         * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
10097         Renames DYN_ATTR_DATA_LOCATION.
10098         (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
10099         DYN_ATTR_DATA_LOCATION.
10100         * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
10101         instead of DYN_ATTR_DATA_LOCATION.
10102
10103 2015-03-24  Pedro Alves  <palves@redhat.com>
10104
10105         * breakpoint.c (until_break_command): Adjust call to proceed.
10106         * gdbthread.h (struct thread_control_state) <stepping_command>:
10107         New field.
10108         * infcall.c (run_inferior_call): Adjust call to proceed.
10109         * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
10110         Adjust calls to proceed.
10111         (set_step_frame): Set the current thread's step_start_function
10112         here.
10113         (step_once): Adjust calls to proceed.
10114         (jump_command, signal_command, until_next_command)
10115         (finish_backward, finish_forward, proceed_after_attach_callback)
10116         (attach_command_post_wait): Adjust calls to proceed.
10117         * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
10118         (do_target_resume): New function, factored out from ...
10119         (resume): ... here.  Remove 'step' parameter.  Instead, check
10120         currently_stepping to determine whether the thread should be
10121         single-stepped.
10122         (proceed): Remove 'step' parameter and don't set the thread's
10123         step_start_function here.  Adjust call to 'resume'.
10124         (handle_inferior_event): Adjust calls to 'resume'.
10125         (switch_back_to_stepped_thread): Use do_target_resume instead of
10126         'resume'.
10127         (keep_going): Adjust calls to 'resume'.
10128         * infrun.h (proceed): Remove 'step' parameter.
10129         (resume): Likewise.
10130         * windows-nat.c (do_initial_windows_stuff): Adjust call to
10131         'resume'.
10132         * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
10133
10134 2015-03-24  Pedro Alves  <palves@redhat.com>
10135
10136         * gdbthread.h (struct thread_control_state) <stepping_command>:
10137         New field.
10138         * infcmd.c (step_once): Pass step=1 to clear_proceed_status.  Set
10139         the thread's stepping_command field.
10140         * infrun.c (resume): Check the thread's stepping_command flag to
10141         determine which threads should be resumed.  Rename 'entry_step'
10142         local to user_step.
10143         (clear_proceed_status_thread): Clear 'stepping_command'.
10144         (schedlock_applies): Change parameter type to struct thread_info
10145         pointer.  Adjust.
10146         (find_thread_needs_step_over): Remove 'step' parameter.  Adjust.
10147         (switch_back_to_stepped_thread): Adjust calls to
10148         'schedlock_applies'.
10149         (_initialize_infrun): Adjust "set scheduler-locking step" help.
10150
10151 2015-03-24  Pedro Alves  <palves@redhat.com>
10152
10153         * infrun.c (step_start_function): Delete and ...
10154         * gdbthread.h (struct thread_control_state) <step_start_function>:
10155         ... now a field here.
10156         * infrun.c (clear_proceed_status_thread): Clear the thread's
10157         step_start_function.
10158         (proceed, process_event_stop_test, print_stop_event): Adjust.
10159
10160 2015-03-24  Pedro Alves  <palves@redhat.com>
10161
10162         * infrun.c (proceed): No longer handle negative step.
10163
10164 2015-03-24  Gary Benson  <gbenson@redhat.com>
10165
10166         * nat/x86-linux.h (x86_linux_new_thread): New declaration.
10167         (x86_linux_prepare_to_resume): Likewise.
10168         * x86-linux-nat.c (x86_linux_new_thread):
10169         Moved to nat/x86-linux.c.
10170         (x86_linux_prepare_to_resume): Likewise.
10171         * nat/x86-linux.c (x86_linux_new_thread): New function.
10172         (x86_linux_prepare_to_resume): Likewise.
10173
10174 2015-03-24  Gary Benson  <gbenson@redhat.com>
10175
10176         * nat/x86-linux-dregs.h: New file.
10177         * nat/x86-linux-dregs.c: Likewise.
10178         * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
10179         (x86-linux-dregs.o): New rule.
10180         * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
10181         * config/i386/linux64.mh (NATDEPFILES): Likewise.
10182         * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
10183         (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
10184         (x86_linux_dr_get): Likewise.
10185         (x86_linux_dr_set): Likewise.
10186         (x86_linux_dr_get_addr): Likewise.
10187         (x86_linux_dr_get_control): Likewise.
10188         (x86_linux_dr_get_status): Likewise.
10189         (update_debug_registers_callback): Likewise.
10190         (x86_linux_dr_set_control): Likewise.
10191         (x86_linux_dr_set_addr): Likewise.
10192         (x86_linux_update_debug_registers): Likewise.
10193
10194 2015-03-24  Gary Benson  <gbenson@redhat.com>
10195
10196         * x86-linux-nat.c (x86_linux_update_debug_registers):
10197         New function, factored out from...
10198         (x86_linux_prepare_to_resume): ...this.
10199
10200 2015-03-24  Gary Benson  <gbenson@redhat.com>
10201
10202         * x86-linux-nat.c (x86_linux_dr_get): Update comments.
10203         (x86_linux_dr_set): Likewise.
10204         (x86_linux_dr_get_addr): Likewise.
10205         (x86_linux_dr_get_control): Likewise.
10206         (x86_linux_dr_get_status): Likewise.
10207         (update_debug_registers_callback): Likewise.
10208         (x86_linux_dr_set_control): Likewise.
10209         (x86_linux_dr_set_addr): Likewise.
10210         (x86_linux_prepare_to_resume): Likewise.
10211         (x86_linux_new_thread): Likewise.
10212
10213 2015-03-24  Gary Benson  <gbenson@redhat.com>
10214
10215         * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
10216         (x86_linux_new_thread): Rename argument.
10217
10218 2015-03-24  Gary Benson  <gbenson@redhat.com>
10219
10220         * nat/x86-linux.h: New file.
10221         * nat/x86-linux.c: Likewise.
10222         * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
10223         (x86-linux.o): New rule.
10224         * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
10225         * config/i386/linux64.mh (NATDEPFILES): Likewise.
10226         * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
10227         (lwp_set_arch_private_info): New declaration.
10228         (lwp_arch_private_info): Likewise.
10229         * linux-nat.c (lwp_set_arch_private_info): New function.
10230         (lwp_arch_private_info): Likewise.
10231         * x86-linux-nat.c: Include nat/x86-linux.h.
10232         (arch_lwp_info): Removed structure.
10233         (update_debug_registers_callback):
10234         Use lwp_set_debug_registers_changed.
10235         (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
10236         and lwp_set_debug_registers_changed.
10237         (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
10238
10239 2015-03-24  Gary Benson  <gbenson@redhat.com>
10240
10241         * nat/linux-nat.h (ptid_of_lwp): New declaration.
10242         (lwp_is_stopped): Likewise.
10243         (lwp_stop_reason): Likewise.
10244         * linux-nat.c (ptid_of_lwp): New function.
10245         (lwp_is_stopped): Likewise.
10246         (lwp_is_stopped_by_watchpoint): Likewise.
10247         * x86-linux-nat.c (update_debug_registers_callback):
10248         Use lwp_is_stopped.
10249         (x86_linux_prepare_to_resume): Use ptid_of_lwp and
10250         lwp_stop_reason.
10251
10252 2015-03-24  Gary Benson  <gbenson@redhat.com>
10253
10254         * linux-nat.h (linux_stop_lwp): Move declaration to...
10255         * nat/linux-nat.h (linux_stop_lwp): New declaration.
10256
10257 2015-03-24  Gary Benson  <gbenson@redhat.com>
10258
10259         * linux-nat.h: Include nat/linux-nat.h.
10260         (iterate_over_lwps): Move declaration to nat/linux-nat.h.
10261         * nat/linux-nat.h (struct lwp_info): New forward declaration.
10262         (iterate_over_lwps_ftype): New typedef.
10263         (iterate_over_lwps): New declaration.
10264         * linux-nat.h (iterate_over_lwps): Update comment.  Use
10265         iterate_over_lwps_ftype.  Update callback return value check.
10266
10267 2015-03-24  Gary Benson  <gbenson@redhat.com>
10268
10269         * x86-nat.h (x86_debug_reg_state): Move declaration to...
10270         * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
10271
10272 2015-03-24  Gary Benson  <gbenson@redhat.com>
10273
10274         * nat/linux-nat.h (current_lwp_ptid): New declaration.
10275         * linux-nat.c (current_lwp_ptid): New function.
10276         * x86-linux-nat.c: Include nat/linux-nat.h.
10277         (x86_linux_dr_get_addr): Use current_lwp_ptid.
10278         (x86_linux_dr_get_control): Likewise.
10279         (x86_linux_dr_get_status): Likewise.
10280         (x86_linux_dr_set_control): Likewise.
10281         (x86_linux_dr_set_addr): Likewise.
10282
10283 2015-03-24  Antoine Tremblay  <antoine.tremblay@ericsson.com>
10284
10285         PR breakpoints/16466
10286         * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
10287
10288 2015-03-23  Joel Brobecker  <brobecker@adacore.com>
10289
10290         * ser-mingw.c (ser_windows_setparity): Fix indentation.
10291         * ser-unix.c (hardwire_setparity): Likewise.
10292
10293 2015-03-23  Yurij Grechishhev  <yurij.grechishhev@gmail.com>
10294
10295         * NEWS: Mention set/show serial parity command.
10296         * monitor.c (monitor_open): Call serial_setparity.
10297         * remote.c (remote_open_1): Likewise.
10298         * ser-base.c (ser_base_serparity): New function.
10299         * ser-base.h (ser_base_setparity): Add  declaration.
10300         * ser-go32.c (dos_ops): Set "setparity" field.
10301         * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
10302         state.Parity.
10303         (ser_windows_setparity): New function.
10304         (hardwire_ops): Add ser_windows_setparity.
10305         (tty_ops): Add NULL for setparity field.
10306         (pipe_ops): Add ser_base_setparity.
10307         (tcp_ops): Likewise.
10308         * ser-pipe.c (pipe_ops): Likewise.
10309         * ser-tcp.c (tcp_ops): Likewise.
10310         * ser-unix.c (hardwire_setparity): Add declaration.
10311         (hardwire_raw): Don't reset PARENB flag.
10312         (hardwire_setparity): New function.
10313         (hardwire_ops): Add hardwire_setparity.
10314         * serial.c (serial_setparity): New function.
10315         (serial_parity): New global.
10316         (parity_none, parity_odd, parity_even, parity_enums, parity):
10317         New static globals.
10318         (set_parity): New function.
10319         (_initialize_serial): Add set/show serial parity commands.
10320         * serial.h (GDBPARITY_NONE): Define.
10321         (GDBPARITY_ODD): Define.
10322         (GDBPARITY_EVEN): Define.
10323         (serial_setparity) Add declaration.
10324         (struct serial_ops): Add setparity field.
10325         * target.h (serial_parity): Add declaration.
10326
10327 2015-03-23  Keith Seitz  <keiths@redhat.com>
10328
10329         * linespec.c (linespec_lexer_lex_keyword): Update comment.
10330
10331 2015-03-23  Keith Seitz  <keiths@redhat.com>
10332
10333         * breakpoint.c (parse_breakpoint_sals): Use
10334         linespec_lexer_lex_keyword to ascertain if the user specified
10335         a NULL location.
10336         * linespec.c [IF_KEYWORD_INDEX]: Define.
10337         (linespec_lexer_lex_keyword): Export.
10338         (struct ls_parser) <keyword_ok>: Remove.
10339         A keyword is only a keyword if not followed by another keyword.
10340         (linespec_lexer_lex_one): Remove keyword_ok handling.
10341         Add comment explaining why the parsing stream is not advanced
10342         when a keyword is seen.
10343         (parse_linespec): Remove parser->keyword_ok.
10344         * linespec.h (linespec_lexer_lex_keyword): Add declaration.
10345
10346 2015-03-23  Keith Seitz  <keiths@redhat.com>
10347
10348         PR gdb/18021
10349         * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
10350         if we find a static method with DW_AT_vtable_elem_location.
10351
10352 2015-03-21  Eli Zaretskii  <eliz@gnu.org>
10353
10354         * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
10355         before the second loop, to avoid undefined behavior.  Reported by
10356         Anton Blanchard <anton@samba.org>.
10357
10358 2015-03-20  Keven Boell  <keven.boell@intel.com>
10359
10360         * gdbtypes.c (resolve_dynamic_type_internal): Adapt
10361         data_location usage to linked list.
10362         (resolve_dynamic_type_internal): Adapt data_location to
10363         linked list.
10364         (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
10365         (copy_type_recursive, copy_type): Add copy of linked list.
10366         * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
10367         (struct dynamic_prop_list): New struct.
10368         * dwarf2read.c (set_die_type): Set data_location data.
10369
10370 2015-03-20  Pedro Alves  <palves@redhat.com>
10371
10372         * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
10373         inner block and make it const.
10374         * machoread.c (get_archive_prefix_len): Make "lparen" const.
10375
10376 2015-03-20  Pedro Alves  <palves@redhat.com>
10377
10378         * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
10379         * breakpoint.h (set_breakpoint_condition): Update declaration.
10380
10381 2015-03-20  Pedro Alves  <palves@redhat.com>
10382
10383         * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
10384
10385 2015-03-20  Pedro Alves  <palves@redhat.com>
10386
10387         * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
10388
10389 2015-03-20  Pedro Alves  <palves@redhat.com>
10390
10391         * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
10392
10393 2015-03-20  Pedro Alves  <palves@redhat.com>
10394
10395         * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
10396         (nto_init_solib_absolute_prefix): Likewise.
10397
10398 2015-03-20  Pedro Alves  <palves@redhat.com>
10399
10400         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
10401         * spu-tdep.c (spu_gdbarch_init): Make "name" const.
10402
10403 2015-03-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
10404
10405         * config/djgpp/README: Remove gdb.hp.
10406
10407 2015-03-20  Yao Qi  <yao.qi@linaro.org>
10408
10409         * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
10410         set_gdbarch_cannot_step_breakpoint.
10411
10412 2015-03-19  Pedro Alves  <palves@redhat.com>
10413
10414         * linux-nat.c (linux_resume_one_lwp): Rename to ...
10415         (linux_resume_one_lwp_throw): ... this.  Don't handle ESRCH here,
10416         instead call perror_with_name.
10417         (check_ptrace_stopped_lwp_gone): New function.
10418         (linux_resume_one_lwp): Reimplement as wrapper around
10419         linux_resume_one_lwp_throw that swallows errors if the LWP is
10420         gone.
10421         (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
10422         swallows errors if the LWP is gone.  Use
10423         linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
10424
10425 2015-03-19  Pedro Alves  <palves@redhat.com>
10426
10427         * linux-nat.c (status_callback): Return early if the LWP has no
10428         status pending.
10429
10430 2015-03-19  Pedro Alves  <palves@redhat.com>
10431
10432         * linux-nat.c (select_event_lwp_callback): Update comment to no
10433         longer mention SIGTRAP.
10434
10435 2015-03-18  Tristan Gingold  <gingold@adacore.com>
10436
10437         * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
10438         redirection code to ...
10439         (amd64_windows_frame_decode_insns): ... Here.  Fix in prologue
10440         checks.  Fix SAVE_NONVOL operations.  Add debug code and comments.
10441
10442 2015-03-18  Gary Benson <gbenson@redhat.com>
10443
10444         (remote_protocol_features): Remove the "vFile:fstat" feature.
10445         (remote_hostio_fstat): Probe for "vFile:fstat" support.
10446
10447 2015-03-11  Yao Qi  <yao.qi@linaro.org>
10448
10449         PR tdep/18107
10450         * aarch64-linux-tdep.c: Include xml-syscall.h
10451         (aarch64_linux_get_syscall_number): New function.
10452         (aarch64_linux_init_abi): Call
10453         set_gdbarch_get_syscall_number.
10454         * syscalls/aarch64-linux.xml: New file.
10455
10456 2015-03-17  Yurij Grechishhev  <yurij.grechishhev@gmail.com>
10457
10458         * ser-base.h (ser_base_setstopbits): Change second argument name
10459         from "rate" to "num".
10460
10461 2015-03-17  Gary Benson <gbenson@redhat.com>
10462             Luke Allardyce <lukeallardyce@gmail.com>
10463
10464         PR gdb/18131
10465         * common/common-remote-fileio.h (sys/stat.h): New include.
10466         (stuct stat): Remove forward declaration.
10467
10468 2015-03-16  John Baldwin  <jhb@FreeBSD.org>
10469
10470         * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
10471         before writing core register notes.
10472
10473 2015-03-16  Yuanhui Zhang  <asmwarrior@gmail.com>
10474             Pedro Alves  <palves@redhat.com>
10475
10476         * gdb_curses.h (tgetnum): Mark with EXTERN_C.
10477         * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
10478         (tgoto): Wrap with extern "C".
10479
10480 2015-03-16  Pedro Alves  <palves@redhat.com>
10481             Yuanhui Zhang  <asmwarrior@gmail.com>
10482
10483         * stub-termcap.c (tputs): Change prototype.
10484
10485 2015-03-16  Yuanhui Zhang  <asmwarrior@gmail.com>
10486             Pedro Alves  <palves@redhat.com>
10487
10488         * windows-nat.c (struct thread_info_struct): Rename to ...
10489         (struct windows_thread_info_struct): ... this.
10490         (thread_info): Rename to ...
10491         (windows_thread_info): ... this.
10492         All users updated.
10493
10494 2015-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
10495             Pedro Alves  <palves@redhat.com>
10496
10497         * NEWS: New Removed targets and native configurations.
10498
10499 2015-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
10500
10501         Remove HPUX.
10502         * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
10503         (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
10504         (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
10505         ia64-hpux-tdep.h, solib-ia64-hpux.h.
10506         (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
10507         ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
10508         * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
10509         hppa-hpux-tdep.c.
10510         * config/ia64/hpux.mh: Remove file.
10511         * config/pa/hpux.mh: Remove file.
10512         * configure: Rebuilt.
10513         * configure.ac (dlgetmodinfo, somread.o): Remove.
10514         * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
10515         (ia64-*-hpux*): Remove its float format exception.
10516         * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
10517         * hppa-hpux-nat.c: Remove file.
10518         * hppa-hpux-tdep.c: Remove file.
10519         * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
10520         Move them here from hppa-tdep.h
10521         (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
10522         (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
10523         * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
10524         Move them to hppa-tdep.c.
10525         (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
10526         declarations.
10527         * ia64-hpux-nat.c: Remove file.
10528         * ia64-hpux-tdep.c: Remove file.
10529         * ia64-hpux-tdep.h: Remove file.
10530         * inf-ttrace.c: Remove file.
10531         * inf-ttrace.h: Remove file.
10532         * solib-ia64-hpux.c: Remove file.
10533         * solib-ia64-hpux.h: Remove file.
10534         * solib-pa64.c: Remove file.
10535         * solib-pa64.h: Remove file.
10536         * solib-som.c: Remove file.
10537         * solib-som.h: Remove file.
10538         * somread.c: Remove file.
10539
10540 2015-03-13  John Baldwin  <jhb@FreeBSD.org>
10541
10542         * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
10543         * config.in: Regenerate.
10544         * configure: Regenerate.
10545         * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
10546         define.
10547         (fbsd_find_memory_regions): Use kinfo_getvmmap to
10548         enumerate memory regions if present.
10549
10550 2015-03-13  John Baldwin  <jhb@FreeBSD.org>
10551
10552         * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
10553         * i386fbsd-tdep.c: Fix style in various gdb_static_assert
10554         expressions.
10555         (i386fbsd_sigtramp_p): Likewise.
10556
10557 2015-03-12  John Baldwin  <jhb@FreeBSD.org>
10558
10559         * MAINTAINERS (Write After Approval): Add John Baldwin.
10560
10561 2015-03-12  Gary Benson <gbenson@redhat.com>
10562
10563         * solib.c (_initialize_solib): Make "set/show sysroot" use
10564         add_setshow_optional_filename_cmd so it can be restored to
10565         empty after being set.
10566
10567 2015-03-11  Sergio Durigan Junior  <sergiodj@redhat.com>
10568
10569         * Makefile.in (SFILES): New source break-catch-syscall.c.
10570         (COMMON_OBS): New object break-catch-syscall.o.
10571         * break-catch-syscall.c: New file.
10572         * breakpoint.c: Remove inclusion of "xml-syscall.h".
10573         (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
10574         (struct syscall_catchpoint): Likewise.
10575         (dtor_catch_syscall): Likewise.
10576         (catch_syscall_inferior_data): Likewise.
10577         (struct catch_syscall_inferior_data): Likewise.
10578         (get_catch_syscall_inferior_data): Likewise.
10579         (catch_syscall_inferior_data_cleanup): Likewise.
10580         (insert_catch_syscall): Likewise.
10581         (remove_catch_syscall): Likewise.
10582         (breakpoint_hit_catch_syscall): Likewise.
10583         (print_it_catch_syscall): Likewise.
10584         (print_one_catch_syscall): Likewise.
10585         (print_mention_catch_syscall): Likewise.
10586         (print_recreate_catch_syscall): Likewise.
10587         (catch_syscall_breakpoint_ops): Likewise.
10588         (syscall_catchpoint_p): Likewise.
10589         (create_syscall_event_catchpoint): Likewise.
10590         (catch_syscall_split_args): Likewise.
10591         (catch_syscall_command_1): Likewise.
10592         (is_syscall_catchpoint_enabled): Likewise.
10593         (catch_syscall_enabled): Likewise.
10594         (catching_syscall_number): Likewise.
10595         (catch_syscall_completer): Likewise.
10596         (clear_syscall_counts): Likewise.
10597         (initialize_breakpoint_ops): Move initialization of syscall
10598         catchpoints to break-catch-syscall.c.
10599         (_initialize_breakpoint): Move code related to syscall catchpoints
10600         to break-catch-syscall.c.
10601
10602 2015-03-11  Sergio Durigan Junior  <sergiodj@redhat.com>
10603
10604         * breakpoint.c (breakpoint_find_if): New function.
10605         * breakpoint.h (breakpoint_find_if): New prototype.
10606
10607 2015-03-11  Gary Benson <gbenson@redhat.com>
10608
10609         * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
10610         * remote-fileio.c (remote_fileio_to_host_uint): New function.
10611         (remote_fileio_to_host_ulong): Likewise.
10612         (remote_fileio_to_host_mode): Likewise.
10613         (remote_fileio_to_host_time): Likewise.
10614         (remote_fileio_to_host_stat): Likewise.
10615         * remote.c (PACKET_vFile_fstat): New enum value.
10616         (remote_protocol_features): Register the "vFile:fstat" feature.
10617         (remote_hostio_fstat): New function.
10618         (remote_bfd_iovec_stat): Use the above.
10619         (_initialize_remote): Register new "set/show remote
10620         hostio-fstat-packet" command.
10621         * symfile.c (separate_debug_file_exists): Update comment.
10622         * NEWS: Announce new vFile:fstat packet.
10623
10624 2015-03-11  Gary Benson <gbenson@redhat.com>
10625
10626         * common/common-remote-fileio.h: New file.
10627         * common/common-remote-fileio.c: Likewise.
10628         * Makefile.in (SFILES): Add common/common-remote-fileio.c.
10629         (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
10630         (COMMON_OBS): Add common-remote-fileio.o.
10631         (common-remote-fileio.o): New rule.
10632         * remote-fileio.h (common-remote-fileio.h): New include.
10633         * remote-fileio.c (gdb/fileio.h): Do not include.
10634         (remote_fileio_to_be): Moved to common-remote-fileio.h.
10635         (remote_fileio_to_fio_uint): Likewise.
10636         (remote_fileio_to_fio_time): Likewise.
10637         (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
10638         (remote_fileio_to_fio_mode): Likewise.
10639         (remote_fileio_to_fio_ulong): Likewise.
10640         (remote_fileio_to_fio_stat): Likewise.
10641
10642 2015-03-11  Andy Wingo  <wingo@igalia.com>
10643
10644         * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
10645         we were checking the cached type, not the cached dynamic type.
10646
10647 2015-03-11  Andy Wingo  <wingo@igalia.com>
10648
10649         * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
10650         other strings, as these are on the GC'd heap, and will be
10651         collected along with the smob.
10652
10653 2015-03-11  Andy Wingo  <wingo@igalia.com>
10654
10655         * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
10656         (objfile_functions): Bind gdbscm_objfile_progspace to
10657         objfile-progspace.
10658         * guile/lib/gdb.scm: Add objfile-progspace to exports.
10659
10660 2015-03-11  Andy Wingo  <wingo@igalia.com>
10661
10662         * guile/guile.c (_initialize_guile): Disable automatic
10663         finalization, if Guile offers us that possibility.
10664         * guile/guile.c (call_initialize_gdb_module):
10665         * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
10666         finalizers in appropriate places.
10667         * configure.ac (AC_TRY_LIBGUILE): Add a check for
10668         scm_set_automatic_finalization_enabled.
10669         * configure: Regenerated.
10670
10671 2015-03-11  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10672
10673         * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
10674         SAL, if possible.
10675
10676 2015-03-11  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10677
10678         * s390-linux-nat.c (struct arch_lwp_info): New.
10679         (s390_fix_watch_points): Rename to...
10680         (s390_prepare_to_resume): ...this.  Skip the PER info update
10681         unless the watch points have changed.
10682         (s390_refresh_per_info, s390_new_thread): New functions.
10683         (s390_insert_watchpoint): Call s390_refresh_per_info instead of
10684         s390_fix_watch_points.
10685         (s390_remove_watchpoint): Likewise.
10686         (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
10687         Register s390_prepare_to_resume.
10688
10689 2015-03-09  Pedro Alves  <palves@redhat.com>
10690
10691         Revert:
10692         2015-03-07  Pedro Alves  <palves@redhat.com>
10693         * common/gdb_socket.h: New file.
10694         * ser-tcp.c: Include gdb_socket.h.  Don't include netinet/in.h nor
10695         sys/socket.h.
10696         (net_open): Use union gdb_sockaddr_u.
10697
10698 2015-03-07  Pedro Alves  <palves@redhat.com>
10699
10700         * configure.ac (build_warnings): Move -Wmissing-prototypes
10701         -Wdeclaration-after-statement -Wmissing-parameter-type
10702         -Wold-style-declaration -Wold-style-definition to the C-specific
10703         set.
10704         * configure: Regenerate.
10705
10706 2015-03-07  Pedro Alves  <palves@redhat.com>
10707
10708         * common/gdb_socket.h: New file.
10709         * ser-tcp.c: Include gdb_socket.h.  Don't include netinet/in.h nor
10710         sys/socket.h.
10711         (net_open): Use union gdb_sockaddr_u.
10712
10713 2015-03-07  Pedro Alves  <palves@redhat.com>
10714
10715         * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
10716         (exceptions_state_mc_action_iter)
10717         (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10718         Don't define.
10719         [__cplusplus] (try_scope_depth): New global.
10720         [__cplusplus] (exception_try_scope_entry)
10721         (exception_try_scope_exit, gdb_exception_sliced_copy)
10722         (exception_rethrow): New functions.
10723         (throw_exception): In C++ mode, throw
10724         gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
10725         gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
10726         (throw_it): In C++ mode, use try_scope_depth.
10727         * common/common-exceptions.h [!__cplusplus]
10728         (exceptions_state_mc_action_iter)
10729         (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10730         Don't declare.
10731         [__cplusplus] (exception_try_scope_entry)
10732         (exception_try_scope_exit, exception_rethrow): Declare.
10733         [__cplusplus] (struct exception_try_scope): New struct.
10734         [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
10735         C++ exceptions.
10736         (struct gdb_exception_RETURN_MASK_ALL)
10737         (struct gdb_exception_RETURN_MASK_ERROR)
10738         (struct gdb_exception_RETURN_MASK_QUIT): New types.
10739
10740 2015-03-07  Pedro Alves  <palves@redhat.com>
10741
10742         * main.c (handle_command_errors): Remove volatile qualifier from
10743         parameter.
10744
10745 2015-03-07  Pedro Alves  <palves@redhat.com>
10746
10747         * breakpoint.c (save_breakpoints): Adjust to avoid code between
10748         TRY and CATCH.
10749         * gdbtypes.c (safe_parse_type): Remove empty line.
10750         (types_deeply_equal):
10751         * guile/scm-frame.c (gdbscm_frame_name):
10752         * linux-thread-db.c (find_new_threads_once):
10753         * python/py-breakpoint.c (bppy_get_commands):
10754         * record-btrace.c (record_btrace_insert_breakpoint)
10755         (record_btrace_remove_breakpoint, record_btrace_start_replaying)
10756         (record_btrace_start_replaying): Adjust to avoid code between TRY
10757         and CATCH.
10758
10759 2015-03-07  Pedro Alves  <palves@redhat.com>
10760
10761         * common/common-exceptions.c (struct catcher) <exception>: No
10762         longer a pointer to volatile exception.  Now an exception value.
10763         <mask>: Delete field.
10764         (exceptions_state_mc_init): Remove all parameters.  Adjust.
10765         (exceptions_state_mc): No longer pop the catcher here.
10766         (exceptions_state_mc_catch): New function.
10767         (throw_exception): Adjust.
10768         * common/common-exceptions.h (exceptions_state_mc_init): Remove
10769         all parameters.
10770         (exceptions_state_mc_catch): Declare.
10771         (TRY_CATCH): Rename to ...
10772         (TRY): ... this.  Remove EXCEPTION and MASK parameters.
10773         (CATCH, END_CATCH): New.
10774         All callers adjusted.
10775
10776 2015-03-07  Tom Tromey  <tromey@redhat.com>
10777
10778         * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
10779
10780 2015-03-07  Pedro Alves  <palves@redhat.com>
10781
10782         * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10783         (amd64_epilogue_frame_cache): Normal exception handling code.
10784         * break-catch-throw.c (check_status_exception_catchpoint)
10785         (re_set_exception_catchpoint): Ditto.
10786         * cli/cli-interp.c (safe_execute_command):
10787         * cli/cli-script.c (script_from_file): Ditto.
10788         * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
10789         Ditto.
10790         * compile/compile-object-run.c (compile_object_run): Ditto.
10791         * cp-abi.c (baseclass_offset): Ditto.
10792         * cp-valprint.c (cp_print_value): Ditto.
10793         * exceptions.c (catch_exceptions_with_msg):
10794         * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
10795         * frame.c (get_frame_address_in_block_if_available): Ditto.
10796         * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10797         (i386_sigtramp_frame_cache): Ditto.
10798         * infcmd.c (post_create_inferior): Ditto.
10799         * linespec.c (parse_linespec, find_linespec_symbols):
10800         * p-valprint.c (pascal_object_print_value): Ditto.
10801         * parse.c (parse_expression_for_completion): Ditto.
10802         * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
10803         * remote.c (remote_get_noisy_reply): Ditto.
10804         * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
10805         * solib-svr4.c (solib_svr4_r_map): Ditto.
10806
10807 2015-03-06  Gary Benson  <gbenson@redhat.com>
10808
10809         * common/common-utils.h (startswith): New inline function.
10810         All places where this logic was used updated to use the above.
10811
10812 2015-03-05  Pedro Alves  <palves@redhat.com>
10813
10814         PR gdb/18002
10815         * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
10816         after reading the breakpoint's shadow memory.
10817
10818 2015-03-05  Mark Kettenis  <kettenis@gnu.org>
10819
10820         * hppabsd-nat.c: Remove file.
10821         * hppaobsd-nat.c: New file.
10822         * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c.  Add
10823         hppaobsd-nat.c.
10824         * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
10825         hppaobsd-nat.o.
10826
10827 2015-03-04  Pedro Alves  <palves@redhat.com>
10828
10829         * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
10830         (target_decr_pc_after_break): Delete declaration.
10831         * target.c (default_target_decr_pc_after_break)
10832         (target_decr_pc_after_break): Delete.
10833         * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
10834         gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
10835         * linux-thread-db.c (check_event): Likewise.
10836         * infrun.c (adjust_pc_after_break): Likewise.
10837         * darwin-nat.c (cancel_breakpoint): Likewise.
10838         * aix-thread.c (aix_thread_wait): Likewise.
10839         * target-delegates.c: Regenerate.
10840
10841 2015-03-04  Pedro Alves  <palves@redhat.com>
10842
10843         * linux-nat.c (save_sigtrap): Check for breakpoints before
10844         checking watchpoints.
10845         (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
10846         breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
10847         (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
10848         a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
10849         (linux_nat_stopped_by_sw_breakpoint)
10850         (linux_nat_supports_stopped_by_sw_breakpoint)
10851         (linux_nat_stopped_by_hw_breakpoint)
10852         (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
10853         (linux_nat_wait_1): Don't re-increment the PC if relying on
10854         SIGTRAP's siginfo->si_code.
10855         (linux_nat_add_target): Install new target methods.
10856         * linux-thread-db.c (check_event): Don't account for breakpoint PC
10857         offset if the target already adjusted the PC.
10858         * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
10859         (GDB_ARCH_TRAP_BRKPT): New.
10860         (TRAP_HWBKPT): Define if not already defined.
10861
10862 2015-03-04  Pedro Alves  <palves@redhat.com>
10863
10864         * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
10865         * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
10866         Delete field.
10867         <stop_reason>: New field.
10868         (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
10869         (packet_set_cmd_state): New function.
10870         (remote_protocol_features): Register the "swbreak" and "hwbreak"
10871         features.
10872         (remote_query_supported): If not disabled with the corresponding
10873         "set remote foo-packet" command, report support for the swbreak
10874         and hwbreak features.
10875         (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
10876         field.
10877         <stop_reason>: New field.
10878         (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
10879         (remote_wait_as): Adjust.
10880         (remote_stopped_by_sw_breakpoint)
10881         (remote_supports_stopped_by_sw_breakpoint)
10882         (remote_stopped_by_hw_breakpoint)
10883         (remote_supports_stopped_by_hw_breakpoint): New functions.
10884         (remote_stopped_by_watchpoint): New function.
10885         (init_remote_ops): Install them.
10886         (_initialize_remote): Register new "set/show remote
10887         swbreak-feature-packet" and "set/show remote
10888         swbreak-feature-packet" commands.
10889
10890 2015-03-04  Pedro Alves  <palves@redhat.com>
10891
10892         * btrace.h: Include target/waitstatus.h.
10893         (struct btrace_thread_info) <stop_reason>: New field.
10894         * record-btrace.c (record_btrace_step_thread): Use
10895         record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10896         (record_btrace_decr_pc_after_break): Delete.
10897         (record_btrace_stopped_by_sw_breakpoint)
10898         (record_btrace_supports_stopped_by_sw_breakpoint)
10899         (record_btrace_stopped_by_hw_breakpoint)
10900         (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
10901         (init_record_btrace_ops): Install them.
10902         * record-full.c (record_full_hw_watchpoint): Delete and replace
10903         with ...
10904         (record_full_stop_reason): ... this throughout.
10905         (record_full_exec_insn): Adjust.
10906         (record_full_wait_1): Adjust.  No longer re-increment the PC.
10907         (record_full_wait_1): Adjust.  Use
10908         record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10909         (record_full_stopped_by_watchpoint): Adjust.
10910         (record_full_stopped_by_sw_breakpoint)
10911         (record_full_supports_stopped_by_sw_breakpoint)
10912         (record_full_supports_stopped_by_sw_breakpoint)
10913         (record_full_stopped_by_hw_breakpoint)
10914         (record_full_supports_stopped_by_hw_breakpoint): New functions.
10915         (init_record_full_ops, init_record_full_core_ops): Install them.
10916         * record.c (record_check_stopped_by_breakpoint): New function.
10917         * record.h: Include target/waitstatus.h.
10918         (record_check_stopped_by_breakpoint): New declaration.
10919
10920 2015-03-04  Pedro Alves  <palves@redhat.com>
10921
10922         enum lwp_stop_reason -> enum target_stop_reason
10923         * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
10924         (linux_nat_stopped_by_watchpoint, status_callback)
10925         (linux_nat_wait_1): Adjust.
10926         * linux-nat.h (enum lwp_stop_reason): Delete.
10927         (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
10928         * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
10929         * target/waitstatus.h (enum target_stop_reason): New.
10930
10931 2015-03-04  Pedro Alves  <palves@redhat.com>
10932
10933         * breakpoint.c (need_moribund_for_location_type): New function.
10934         (bpstat_stop_status): Don't skipping checking moribund locations
10935         of breakpoint types which the target tell caused a stop.
10936         (program_breakpoint_here_p): New function, factored out from ...
10937         (bp_loc_is_permanent): ... this.
10938         (update_global_location_list): Don't create a moribund location if
10939         the target supports reporting stops of the type of the removed
10940         breakpoint.
10941         * breakpoint.h (program_breakpoint_here_p): New declaration.
10942         * infrun.c (adjust_pc_after_break): Return early if the target has
10943         already adjusted the PC.  Add comments.
10944         (handle_signal_stop): If nothing explains a signal, and the target
10945         tells us the stop was caused by a software breakpoint, check if
10946         there's a breakpoint instruction in the memory.  If so, adjust the
10947         PC before presenting the stop to the user.  Otherwise, ignore the
10948         trap.  If nothing explains a signal, and the target tells us the
10949         stop was caused by a hardware breakpoint, ignore the trap.
10950         * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
10951         to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
10952         to_supports_stopped_by_hw_breakpoint>: New fields.
10953         (target_stopped_by_sw_breakpoint)
10954         (target_supports_stopped_by_sw_breakpoint)
10955         (target_stopped_by_hw_breakpoint)
10956         (target_supports_stopped_by_hw_breakpoint): Define.
10957         * target-delegates.c: Regenerate.
10958
10959 2015-03-04  Pedro Alves  <palves@redhat.com>
10960
10961         * infrun.c (follow_fork_inferior): Use the whole of the
10962         inferior_ptid and pending_follow.related_pid ptids instead of
10963         building ptids from the process components.  Adjust verbose output
10964         to use target_pid_to_str.
10965         * linux-nat.c (linux_child_follow_fork): Use the whole of the
10966         inferior_ptid and pending_follow.related_pid ptids instead of
10967         building ptids from the process components.
10968
10969 2015-03-04  Mark Kettenis  <kettenis@gnu.org>
10970
10971         * inf-ptrace.c [PT_GET_PROCESS_STATE]
10972         (inf_ptrace_insert_fork_catchpoint): New function.
10973         (inf_ptrace_remove_fork_catchpoint): New function.
10974         (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
10975
10976 2015-03-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10977
10978         * s390-linux-tdep.c (s390_register_name): Return empty string
10979         instead of NULL for registers that shouldn't be visible.
10980
10981 2015-03-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10982
10983         * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
10984         XML file for 64-bit targets.
10985
10986 2015-03-03  Simon Marchi  <simon.marchi@ericsson.com>
10987
10988         * target.h (find_default_create_inferior): Remove declaration.
10989         (find_default_attach): Likewise.
10990
10991 2015-03-03  Pedro Alves  <palves@redhat.com>
10992
10993         * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
10994         Use ptid_get_pid to get the overall process id when resuming all
10995         threads.
10996
10997 2015-03-03  Pedro Alves  <palves@redhat.com>
10998
10999         * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
11000         the lwp field of ptid.  Pass the full ptid to get_thread_regcache.
11001         * inf-ptrace.c (get_ptrace_pid): New function.
11002         (inf_ptrace_resume): Use it.
11003         * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
11004         to the lower layer.
11005
11006 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
11007
11008         * nat/linux-btrace.c: Include sys/utsname.h.
11009         (linux_determine_kernel_ptr_bits): New.
11010         (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
11011         * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
11012         ptr_bits.
11013
11014 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
11015
11016         * btrace.c (ftrace_update_function): Treat return as tailcall for
11017         "_dl_runtime_resolve".
11018
11019 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
11020
11021         * btrace.h (btrace_function) <lbegin, lend>: Remove.
11022         * btrace.c (ftrace_debug): Do not print the line range.
11023         (ftrace_skip_file, ftrace_update_lines): Remove.
11024         (ftrace_new_function): Remove lbegin and lend initialization.
11025         (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
11026         * record-btrace.c (btrace_compute_src_line_range): New.
11027         (btrace_call_history_src_line): Call btrace_compute_src_line_range.
11028
11029 2015-03-02  Pedro Alves  <palves@redhat.com>
11030
11031         * infrun.c (follow_exec): Delete all threads of the process except
11032         the event thread.  Extended comments.
11033
11034 2015-03-02  Joel Brobecker  <brobecker@adacore.com>
11035
11036         * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
11037
11038 2015-03-02  Joel Brobecker  <brobecker@adacore.com>
11039
11040         * utils.h: Remove <stdbool.h> #include.
11041         (producer_is_gcc): Change return type to "int".
11042         * utils.c (producer_is_gcc): Change return type to int.
11043         Return 1 instead of true, and 0 instead of false.
11044         Adjust function documentation accordingly.
11045
11046 2015-03-02  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11047
11048         * s390-linux-nat.c (have_regset_vxrs): New static variable.
11049         (s390_linux_fetch_inferior_registers): Handle vector registers, if
11050         present.
11051         (s390_linux_store_inferior_registers): Likewise.
11052         (s390_get_hwcap): Remove function.  Embed its logic...
11053         (s390_read_description): ...here.  Yield a target description with
11054         vector registers if applicable.
11055         * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
11056         "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
11057         "features/s390x-tevx-linux64.c".
11058         (struct gdbarch_tdep) <v0_full_regnum>: New field.
11059         (s390_dwarf_regmap): Add vector registers.  Remove bogus entries
11060         for "GNU/Linux-specific registers".
11061         (s390_dwarf_reg_r0l): New enum value.
11062         (s390_dwarf_reg_to_regnum): Support vector registers.
11063         (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
11064         of GPR lower halves.
11065         (regnum_is_vxr_full): New function.
11066         (s390_register_name): New function.
11067         (s390_pseudo_register_name): Handle v0-v15, which are composed of
11068         f0-f15 and v0l-v15l.
11069         (s390_pseudo_register_type): Likewise.
11070         (s390_pseudo_register_read): Likewise.
11071         (s390_pseudo_register_write): Likewise.
11072         (s390_value_from_register): Account for the fact that values are
11073         placed left-justified in vector registers.
11074         (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
11075         the vector reggroup and omit them from the general reggroup.
11076         (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
11077         (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
11078         (s390_iterate_over_regset_sections): Add iterations for the two
11079         new vector regsets.
11080         (s390_core_read_description): Yield a target description with
11081         vector registers if applicable.
11082         (s390_gdbarch_init): Handle target descriptions with vector
11083         registers.  Add "register_name" gdbarch method.
11084         (_initialize_s390_tdep): Call new tdesc initialization functions.
11085         * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
11086         (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
11087         (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
11088         (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
11089         (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
11090         (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
11091         (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
11092         (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
11093         (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
11094         (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
11095         (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
11096         (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
11097         (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
11098         (S390_NUM_REGS): Adjust value.
11099         (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
11100         (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11101         (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
11102         * NEWS: Announce S/390 vector register support.
11103
11104 2015-03-02  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11105
11106         * features/s390-tevx-linux64.xml: New file.
11107         * features/s390-vx-linux64.xml: New file.
11108         * features/s390-vx.xml: New file.
11109         * features/s390x-tevx-linux64.xml: New file.
11110         * features/s390x-vx-linux64.xml: New file.
11111         * features/Makefile (WHICH): Add s390-vx-linux64,
11112         s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
11113         (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
11114         (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
11115         macros.
11116         * features/s390-tevx-linux64.c: New generated file.
11117         * features/s390-vx-linux64.c: Likewise.
11118         * features/s390x-tevx-linux64.c: Likewise.
11119         * features/s390x-vx-linux64.c: Likewise.
11120         * regformats/s390-tevx-linux64.dat: Likewise.
11121         * regformats/s390-vx-linux64.dat: Likewise.
11122         * regformats/s390x-tevx-linux64.dat: Likewise.
11123         * regformats/s390x-vx-linux64.dat: Likewise.
11124
11125 2015-02-28  Doug Evans  <xdje42@gmail.com>
11126
11127         * symtab.h (struct symtab) <next>: Fix comment.
11128
11129 2015-02-27  Simon Marchi  <simon.marchi@ericsson.com>
11130
11131         * python/python.c (python_GdbModuleDef): Rename GdbMethods to
11132         python_GdbMethods.
11133
11134 2015-02-27  Pedro Alves  <palves@redhat.com>
11135
11136         * dtrace-probe.c (dtrace_probe_ops): Make extern.
11137
11138 2015-02-27  Pedro Alves  <palves@redhat.com>
11139
11140         * common/common-exceptions.h (exception_none): Declare.
11141         * common/common-exceptions.c (exception_none): Moved from
11142         exceptions.c.
11143         (exceptions_state_mc_init): Use exception_none.
11144         * exceptions.c (exception_none): Move to
11145         common/common-exceptions.c.
11146         * exceptions.h (exception_none): Move to
11147         common/common-exceptions.h.
11148
11149 2015-02-27  Pedro Alves  <palves@redhat.com>
11150
11151         * main.c (catch_command_errors, catch_command_errors_const):
11152         Remove 'mask' argument.  Adjust.
11153         (captured_main): Adjust callers.
11154
11155 2015-02-27  Pedro Alves  <palves@redhat.com>
11156
11157         * python/python-internal.h: Include "extension-priv.h".
11158
11159 2015-02-27  Pedro Alves  <palves@redhat.com>
11160
11161         * breakpoint.h (enum print_stop_action): Move further up in the
11162         file.
11163
11164 2015-02-27  Pedro Alves  <palves@redhat.com>
11165
11166         * gdbarch.sh: Include regcache.h.
11167         * gdbarch.h: Regenerate.
11168
11169 2015-02-27  Pedro Alves  <palves@redhat.com>
11170
11171         * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
11172         Remove duplicate const.
11173         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
11174         duplicate const.
11175
11176 2015-02-27  Pedro Alves  <palves@redhat.com>
11177
11178         * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
11179         * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
11180         * features/feature_to_c.sh: Tag the generated xml_builtin array
11181         with extern const in C++ mode.
11182
11183 2015-02-27  Tom Tromey  <tromey@redhat.com>
11184
11185         * minidebug.c (struct lzma_stream): Rename to ...
11186         (struct gdb_lzma_stream): ... this.
11187         (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
11188
11189 2015-02-27  Pedro Alves  <palves@redhat.com>
11190
11191         * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
11192         function.
11193         (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
11194         (mi_cmd_stack_list_variables): Use it.
11195
11196 2015-02-27  Pedro Alves  <palves@redhat.com>
11197
11198         * x86-linux-nat.c (u_debugreg_offset): New function.
11199         (x86_linux_dr_get, x86_linux_dr_set): Use it.
11200
11201 2015-02-27  Pedro Alves  <palves@redhat.com>
11202
11203         * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
11204         declaration.
11205         Include break-common.h.
11206
11207 2015-02-27  Tom Tromey  <tromey@redhat.com>
11208             Pedro Alves <palves@redhat.com>
11209
11210         * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
11211         local used to iterate over enums.
11212         * completer.c (signal_completer): Likewise.
11213         * i386-tdep.c (i386_stap_parse_special_token): Likewise.
11214         * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
11215         * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
11216         * tui/tui-layout.c (next_layout, prev_layout): Likewise.
11217         * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
11218         (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
11219         * tui-wingeneral.c (tui_refresh_all):  Likewise.
11220
11221 2015-02-27  Pedro Alves  <palves@redhat.com>
11222
11223         * target.h: Include "infrun.h".
11224
11225 2015-02-27  Pedro Alves  <palves@redhat.com>
11226
11227         * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11228
11229 2015-02-27  Pedro Alves  <palves@redhat.com>
11230
11231         * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
11232         (IPA_SYM): Use it.
11233         * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
11234
11235 2015-02-27  Pedro Alves  <palves@redhat.com>
11236
11237         * cli-out.c (_rl_erase_entire_line): Move declaration out of
11238         cli_mld_erase_entire_line, and make it extern "C".
11239         * common/common-defs.h (EXTERN_C): New.
11240         * completer.c (_rl_completion_prefix_display_length)
11241         (_rl_print_completions_horizontally, QSFUNC): Move declarations
11242         out of gdb_display_match_list_1.
11243         (_rl_qsort_string_compare): Move declaration out of
11244         gdb_display_match_list_1, and make it extern "C".
11245         * defs.h (re_comp): Use EXTERN_C.
11246         * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
11247         and make it extern "C".
11248         (monstartup): Move declaration out of maintenance_set_profile_cmd,
11249         and make it extern "C".
11250         (main): Move declaration out of maintenance_set_profile_cmd.
11251         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
11252         EXTERN_C.
11253
11254 2015-02-27  Pedro Alves  <palves@redhat.com>
11255
11256         * python/python.c (GdbMethods): Rename to ...
11257         (python_GdbMethods): ... this and make extern.
11258         (GdbModuleDef): Rename to ...
11259         (python_GdbModuleDef): ... this and make extern.
11260
11261 2015-02-27  Pedro Alves  <palves@redhat.com>
11262
11263         * record-btrace.c (set_record_btrace_cmdlist)
11264         (show_record_btrace_cmdlist): Remove redefinitions.
11265
11266 2015-02-27  Tom Tromey  <tromey@redhat.com>
11267             Pedro Alves  <palves@redhat.com>
11268
11269         * dwarf2-frame.c (enum cfa_how_kind, struct
11270         dwarf2_frame_state_reg_info): Move out of struct
11271         dwarf2_frame_state.
11272         * dwarf2read.c (struct tu_stats): Move out of struct
11273         dwarf2_per_objfile.
11274         (struct file_entry): Move out of struct line_header.
11275         (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
11276         typedef_field_list): Move out of struct field_info.
11277         * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
11278         Move out of struct dynamic_prop.
11279         (union type_owner, union field_location, struct field, struct
11280         range_bounds, union type_specific): Move out of struct main_type.
11281         (struct fn_fieldlist, struct fn_field, struct typedef_field)
11282         (VOFFSET_STATIC): Move out of struct cplus_struct_type.
11283         (struct call_site_target, union call_site_parameter_u, struct
11284         call_site_parameter): Move out of struct call_site.
11285         * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
11286         m32c_prologue.
11287         (enum srcdest_kind): Move out of struct srcdest.
11288         * main.c (enum cmdarg_kind): Move out of struct cmdarg.
11289         * prologue-value.h (enum prologue_value_kind): Move out of struct
11290         prologue_value.
11291         * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
11292         gdbarch_tdep.
11293         * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
11294         out of struct field_info.
11295         * symfile.h (struct other_sections): Move out of struct
11296         section_addr_info.
11297         * symtab.c (struct symbol_cache_slot): Move out struct
11298         block_symbol_cache.
11299         * target-descriptions.c (enum tdesc_type_kind): Move out of
11300         typedef struct tdesc_type.
11301         * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
11302         struct tui_line_or_address.
11303         * value.c (enum internalvar_kind, union internalvar_data): Move
11304         out of struct internalvar.
11305         * xtensa-tdep.h (struct ctype_cache): Move out of struct
11306         gdbarch_tdep.
11307
11308 2015-02-27  Tom Tromey  <tromey@redhat.com>
11309             Pedro Alves  <palves@redhat.com>
11310
11311         Rename symbols whose names are reserved C++ keywords throughout.
11312
11313 2015-02-27  Pedro Alves  <palves@redhat.com>
11314
11315         * Makefile.in (COMPILER): New, get it from autoconf.
11316         (COMPILE.pre, CC_LD): Use COMPILER.
11317         (CXX): Get from autoconf instead.
11318         (CXX_FOR_TARGET): Default to g++ instead of gcc.
11319         * acinclude.m4: Include build-with-cxx.m4.
11320         * build-with-cxx.m4: New file.
11321         * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11322         Disable -Werror by default if building in C++ mode.
11323         (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11324         -Wno-narrowing in C++ mode.  Only enable -Wpointer-sign in C mode.
11325         Run supported-warning-flags tests with the C++ compiler.
11326         Save/restore CXXFLAGS too.
11327         * configure: Regenerate.
11328
11329 2015-02-27  Pedro Alves  <palves@redhat.com>
11330
11331         * libiberty.m4: New file.
11332         * acinclude.m4: Include libiberty.m4.
11333         * configure.ac: Call libiberty_INIT.
11334         * config.in, configure: Regenerate.
11335
11336 2015-02-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11337
11338         * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
11339         31-bit targets, but 64-bit targets as well.
11340         (s390_gnu_triplet_regexp): New function.
11341         (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
11342         64-bit targets as well.  Set the gnu_triplet_regexp gdbarch
11343         method.
11344
11345 2015-02-27  Jon TURNEY  <jon.turney@dronecode.org.uk>  (tiny patch)
11346
11347         * windows-nat.c (CONTEXT_DEBUGGER): Remove.
11348         (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS.  Incorporate flags
11349         from CONTEXT_DEBUGGER.
11350
11351 2015-02-26  Doug Evans  <dje@google.com>
11352
11353         * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
11354         CHECK_TYPEDEF.
11355         (set_type_vptr_fieldno): Ditto.
11356         (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
11357         * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
11358
11359 2015-02-26  Pedro Alves  <palves@redhat.com>
11360
11361         * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
11362         * complaints.c (vcomplaint): Pass argument FMT directly to
11363         printf-like functions instead of complaint->fmt.
11364         * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
11365         * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
11366         * compile/compile-loc2c.c (pushf, unary, binary): Add
11367         ATTRIBUTE_PRINTF.
11368         (do_compile_dwarf_expr_to_c): Pass string literal as format string
11369         to pushf.
11370         (BINARY): Pass string literal as format string to 'binary'.
11371         * compile/compile-object-load.c (link_callbacks_einfo): Add
11372         ATTRIBUTE_PRINTF.
11373         * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
11374
11375 2015-02-26  Pedro Alves  <palves@redhat.com>
11376
11377         * windows-termcap.c: Rename to ...
11378         * stub-termcap.c: ... this.  Adjust header line.
11379         * Makefile.in (SFILES): Refer to stub-termcap.c instead of
11380         windows-termcap.c.
11381         * configure: Regenerate.
11382         * configure.ac: Refer to stub-termcap.o instead of
11383         windows-termcap.o.
11384         * gdb_curses.h: Mention stub-termcap.c instead of
11385         windows-termcap.c.
11386
11387 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
11388
11389         * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
11390         (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
11391
11392 2015-02-26  Antoine Tremblay  <antoine.tremblay@ericsson.com>
11393
11394         * gdb/infcmd.c (print_return_value): use type_to_string to print type.
11395
11396 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
11397
11398         * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
11399         bfd_canonicalize_symtab.
11400
11401 2015-02-25  John Baldwin  <jhb@FreeBSD.org>
11402
11403         * amd64fbsd-nat.c: Include sys/user.h.
11404         (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
11405         instead of KERN_PS_STRINGS to locate the signal trampoline.
11406         * i386fbsd-nat.c: Include sys/user.h.
11407         (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
11408         instead of KERN_PS_STRINGS to locate the signal trampoline.
11409         * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
11410         (amd64fbsd_sigtramp_p): New.
11411         (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
11412         longer set default values.
11413         (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
11414         * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
11415         (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
11416         (i386fbsd_freebsd4_sigtramp_start)
11417         (i386fbsd_freebsd4_sigtramp_middle)
11418         (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
11419         (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
11420         (i386fbsd_sigtramp_p): New.
11421         (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
11422         longer set default values.
11423         (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
11424
11425 2015-02-25  John Baldwin  <jhb@freebsd.org>
11426
11427         * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
11428         get_frame_register instead of frame_unwind_register_unsigned.
11429
11430 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
11431
11432         PR build/18033
11433         * compile/compile-c-support.c (c_compute_program): Change // comment.
11434         * compile/compile-object-load.c (setup_sections): Change // comment.
11435
11436 2015-02-26  Joel Brobecker  <brobecker@adacore.com>
11437
11438         PR build/18033:
11439         * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
11440
11441 2015-02-23  Pedro Alves  <palves@redhat.com>
11442
11443         * remote.c (skip_to_semicolon): New function.
11444         (remote_parse_stop_reply) <T stop reply>: Use it.  Don't
11445         special case the stop reasons that look like hex numbers
11446         upfront.  Instead handle real register numbers after matching
11447         all the known stop reasons.
11448
11449 2015-02-21  Doug Evans  <dje@google.com>
11450
11451         PR c++/17976, symtab/17821
11452         * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
11453         is_in_anonymous.  All callers updated.
11454         (find_symbol_in_baseclass): Ditto.
11455         (cp_lookup_nested_symbol_1): Ditto.  Don't search all static blocks
11456         for symbols in an anonymous namespace.
11457         * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
11458         DW_AT_name directly.
11459         (dwarf2_name): Convert missing namespace name to
11460         CP_ANONYMOUS_NAMESPACE_STR.
11461
11462 2015-02-20  Pedro Alves  <palves@redhat.com>
11463
11464         * linux-nat.c (linux_handle_extended_wait): Call
11465         thread_db_notice_clone whenever a new clone LWP is detected.
11466         (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
11467         functions.
11468         * linux-nat.h (thread_db_attach_lwp): Delete declaration.
11469         (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
11470         (linux_unstop_all_lwps): Declare.
11471         * linux-thread-db.c (struct thread_get_info_inout): Delete.
11472         (thread_get_info_callback): Delete.
11473         (thread_from_lwp): Use td_thr_get_info and record_thread.
11474         (thread_db_attach_lwp): Delete.
11475         (thread_db_notice_clone): New function.
11476         (try_thread_db_load_1): If /proc is mounted and shows the
11477         process'es task list, walk over all LWPs and call thread_from_lwp
11478         instead of relying on td_ta_thr_iter.
11479         (attach_thread): Don't call check_thread_signals here.  Split the
11480         tail part of the function (which adds the thread to the core GDB
11481         thread list) to ...
11482         (record_thread): ... this function.  Call check_thread_signals
11483         here.
11484         (thread_db_wait): Don't call thread_db_find_new_threads_1.  Always
11485         call thread_from_lwp.
11486         (thread_db_update_thread_list): Rename to ...
11487         (thread_db_update_thread_list_org): ... this.
11488         (thread_db_update_thread_list): New function.
11489         (thread_db_find_thread_from_tid): Delete.
11490         (thread_db_get_ada_task_ptid): Simplify.
11491         * nat/linux-procfs.c: Include <sys/stat.h>.
11492         (linux_proc_task_list_dir_exists): New function.
11493         * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
11494
11495 2015-02-20  Pedro Alves  <palves@redhat.com>
11496
11497         * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
11498         main LWP.  Handle the case of waitpid returning 0 if we're already
11499         attached to the LWP.  Don't set the LWP's last_resume_kind to
11500         resume_stop if we already knew about the LWP.
11501         (linux_nat_filter_event): Add debug logs.
11502
11503 2015-02-20  Pedro Alves  <palves@redhat.com>
11504
11505         * target.h (forward_target_decr_pc_after_break): Delete
11506         declaration.
11507
11508 2015-02-20  Pedro Alves  <palves@redhat.com>
11509
11510         PR threads/18006
11511         * linux-thread-db.c (thread_get_info_callback): Return early if
11512         the thread's lwp id is -1.
11513
11514 2015-02-20  Joel Brobecker  <brobecker@adacore.com>
11515
11516         GDB 7.9 released.
11517
11518 2015-02-19  Steve Ellcey  <sellcey@imgtec.com>
11519
11520         * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
11521         (dtrace_get_probes) Change type of variable 'dof'.
11522
11523 2015-02-19  Antoine Tremblay  <antoine.tremblay@ericsson.com>
11524
11525         PR breakpoints/16812
11526         * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
11527         * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
11528         * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
11529
11530 2015-02-19  David Taylor  <dtaylor@emc.com>
11531
11532         * common/ax.def (setv): Fix consumed entry in setv DEFOP.
11533
11534 2015-02-18  Patrick Palka  <patrick@parcs.ath.cx>
11535
11536         * tui/tui-io.c (tui_handle_resize_during_io): Remove this
11537         function.
11538         (tui_putc): Don't call tui_handle_resize_during_io.
11539         (tui_getc): Likewise.
11540         (tui_mld_getc): Likewise.
11541         * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
11542         (tui_sigwinch_token): New static variable.
11543         (tui_initialize_win): Adjust documentation.  Set
11544         tui_sigwinch_token.
11545         (tui_async_resize_screen): New asynchronous callback.
11546         (tui_sigwinch_handler): Adjust documentation.  Asynchronously
11547         invoke tui_async_resize_screen.
11548
11549 2015-02-18  Jose E. Marchesi  <jose.marchesi@oracle.com>
11550
11551         * configure: Regenerated.
11552         * configure.ac: Use GDB_AC_TRANSFORM.
11553         * Makefile.in (aclocal_m4_deps): Added transform.m4.
11554         * acinclude.m4: sinclude transform.m4.
11555         * transform.m4: New file.
11556         (GDB_AC_TRANSFORM): New macro.
11557
11558 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11559
11560         * NEWS: Announce the support for DTrace SDT probes.
11561
11562 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11563
11564         * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
11565         (amd64_dtrace_parse_probe_argument): New function.
11566         (amd64_dtrace_probe_is_enabled): Likewise.
11567         (amd64_dtrace_enable_probe): Likewise.
11568         (amd64_dtrace_disable_probe): Likewise.
11569         (amd64_linux_init_abi): Register the
11570         `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
11571         `gdbarch_dtrace_disable_probe' and
11572         `gdbarch_dtrace_probe_is_enabled' hooks.
11573         (amd64_dtrace_disabled_probe_sequence_1): New constant.
11574         (amd64_dtrace_disabled_probe_sequence_2): Likewise.
11575         (amd64_dtrace_enable_probe_sequence): Likewise.
11576         (amd64_dtrace_disable_probe_sequence): Likewise.
11577
11578 2015-01-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11579
11580         * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
11581         the -probe-dtrace new vpossible value for PROBE_MODIFIER.
11582         * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
11583         handle ELF files.
11584         * Makefile.in (SFILES): dtrace-probe.c added.
11585         * configure: Regenerate.
11586         * dtrace-probe.c: New file.
11587         (SHT_SUNW_dof): New constant.
11588         (dtrace_probe_type): New enum.
11589         (dtrace_probe_arg): New struct.
11590         (dtrace_probe_arg_s): New typedef.
11591         (struct dtrace_probe_enabler): New struct.
11592         (dtrace_probe_enabler_s): New typedef.
11593         (dtrace_probe): New struct.
11594         (dtrace_probe_is_linespec): New function.
11595         (dtrace_dof_sect_type): New enum.
11596         (dtrace_dof_dofh_ident): Likewise.
11597         (dtrace_dof_encoding): Likewise.
11598         (DTRACE_DOF_ENCODE_LSB): Likewise.
11599         (DTRACE_DOF_ENCODE_MSB): Likewise.
11600         (dtrace_dof_hdr): New struct.
11601         (dtrace_dof_sect): Likewise.
11602         (dtrace_dof_provider): Likewise.
11603         (dtrace_dof_probe): Likewise.
11604         (DOF_UINT): New macro.
11605         (DTRACE_DOF_PTR): Likewise.
11606         (DTRACE_DOF_SECT): Likewise.
11607         (dtrace_process_dof_probe): New function.
11608         (dtrace_process_dof): Likewise.
11609         (dtrace_build_arg_exprs): Likewise.
11610         (dtrace_get_arg): Likewise.
11611         (dtrace_get_probes): Likewise.
11612         (dtrace_get_probe_argument_count): Likewise.
11613         (dtrace_can_evaluate_probe_arguments): Likewise.
11614         (dtrace_evaluate_probe_argument): Likewise.
11615         (dtrace_compile_to_ax): Likewise.
11616         (dtrace_probe_destroy): Likewise.
11617         (dtrace_gen_info_probes_table_header): Likewise.
11618         (dtrace_gen_info_probes_table_values): Likewise.
11619         (dtrace_probe_is_enabled): Likewise.
11620         (dtrace_probe_ops): New variable.
11621         (info_probes_dtrace_command): New function.
11622         (_initialize_dtrace_probe): Likewise.
11623         (dtrace_type_name): Likewise.
11624
11625 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11626
11627         * gdbarch.sh (dtrace_parse_probe_argument): New.
11628         (dtrace_probe_is_enabled): Likewise.
11629         (dtrace_enable_probe): Likewise.
11630         (dtrace_disable_probe): Likewise.
11631         * gdbarch.c: Regenerate.
11632         * gdbarch.h: Regenerate.
11633
11634 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11635
11636         * stap-probe.c (stap_probe_ops): Add NULLs in the static
11637         stap_probe_ops for `enable_probe' and `disable_probe'.
11638         * probe.c (enable_probes_command): New function.
11639         (disable_probes_command): Likewise.
11640         (_initialize_probe): Define the cli commands `enable probe' and
11641         `disable probe'.
11642         (parse_probe_linespec): New function.
11643         (info_probes_for_ops): Use parse_probe_linespec.
11644         * probe.h (probe_ops): New hooks `enable_probe' and
11645         `disable_probe'.
11646
11647 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11648
11649         * probe.c (compute_probe_arg): Moved from stap-probe.c
11650         (compile_probe_arg): Likewise.
11651         (probe_funcs): Likewise.
11652         * stap-probe.c (compute_probe_arg): Moved to probe.c.
11653         (compile_probe_arg): Likewise.
11654         (probe_funcs): Likewise.
11655
11656 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11657
11658         * probe.c (print_ui_out_not_applicables): New function.
11659         (exists_probe_with_pops): Likewise.
11660         (info_probes_for_ops): Do not include column headers for probe
11661         types for which no probe has been actually found on any object.
11662         Also invoke `print_ui_out_not_applicables' in order to match the
11663         column rows with the header when probes of several types are
11664         listed.
11665         Print the "Type" column.
11666         * probe.h (probe_ops): Added a new probe operation `type_name'.
11667         * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
11668         (stap_type_name): New function.
11669
11670 2015-02-17  Patrick Palka  <patrick@parcs.ath.cx>
11671
11672         * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
11673         (key_is_command_char): Delete.
11674
11675 2015-02-17  Pedro Alves  <palves@redhat.com>
11676
11677         * tui/tui.c (tui_enable): Resize windows before anything
11678         might show a window.
11679
11680 2015-02-17  Max Ostapenko  <m.ostapenko@partner.samsung.com>
11681
11682         PR gdb/17984
11683         * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
11684         (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
11685         call.
11686         * aarch64-tdep.h (tdesc_aarch64): Declare.
11687
11688 2015-02-12  Mark Wielaard  <mjw@redhat.com>
11689
11690         * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
11691
11692 2015-02-13  Doug Evans  <dje@google.com>
11693
11694         * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
11695         anonymous_namespace to is_in_anonymous for consistency with the rest
11696         of the file.
11697         (cp_lookup_bare_symbol): Fix typo in comment.
11698         (cp_search_static_and_baseclasses): Ditto.
11699         (search_symbol_list): Use vertical space in comment better.
11700         (reset_directive_searched): Ditto. Fix typo.
11701         (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
11702
11703 2015-02-13  Yao Qi  <yao.qi@arm.com>
11704
11705         * MAINTAINERS: Update my email address.
11706
11707 2015-02-12  Doug Evans  <dje@google.com>
11708
11709         * symtab.c (completion_list_add_name): Fix memory leak.
11710
11711 2015-02-12  Doug Evans  <dje@google.com>
11712
11713         * completer.c (complete_line): Remove incorrect comment.
11714
11715 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11716
11717         * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
11718         (py_print_frame): Use RETURN_MASK_ERROR.
11719
11720 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11721
11722         * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
11723         function comment.  Wrap all function that can throw in cleanups.
11724         (gdbpy_apply_frame_filter): Wrap all function that can throw in
11725         cleanups.
11726
11727 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11728
11729         * python/py-framefilter.c (py_print_frame): Substitute goto error.
11730         Remove the error label.
11731
11732 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11733
11734         * python/py-framefilter.c (py_print_frame): Put conditional code paths
11735         with goto first, indent the former else codepath left.  Put variable
11736         'elided' to a new inner block.
11737
11738 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11739
11740         * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
11741
11742 2015-02-11  Pedro Alves  <palves@redhat.com>
11743
11744         * xcoffread.c (within_function): Delete.
11745
11746 2015-02-11  Tom Tromey  <tromey@redhat.com>
11747             Pedro Alves <palves@redhat.com>
11748
11749         * breakpoint.c (base_breakpoint_ops): Delete.
11750         * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
11751         * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
11752         * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
11753         * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
11754         * python/py-arch.c (arch_object_type): Make extern.
11755         * python/py-block.c (block_syms_iterator_object_type): Make extern.
11756         * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
11757         * python/py-cmd.c (cmdpy_object_type): Make extern.
11758         * python/py-continueevent.c (continue_event_object_type)
11759         * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
11760         parameter.  Update all callers.
11761         * python/py-evtregistry.c (eventregistry_object_type): Make extern.
11762         * python/py-exitedevent.c (exited_event_object_type): Make extern.
11763         * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
11764         * python/py-function.c (fnpy_object_type): Make extern.
11765         * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
11766         * python/py-infevents.c (call_pre_event_object_type)
11767         (inferior_call_post_event_object_type).
11768         (memory_changed_event_object_type): Make extern.
11769         * python/py-infthread.c (thread_object_type): Make extern.
11770         * python/py-lazy-string.c (lazy_string_object_type): Make extern.
11771         * python/py-linetable.c (linetable_entry_object_type)
11772         (linetable_object_type, ltpy_iterator_object_type): Make extern.
11773         * python/py-newobjfileevent.c (new_objfile_event_object_type)
11774         (clear_objfiles_event_object_type): Make extern.
11775         * python/py-objfile.c (objfile_object_type): Make extern.
11776         * python/py-param.c (parmpy_object_type): Make extern.
11777         * python/py-progspace.c (pspace_object_type): Make extern.
11778         * python/py-signalevent.c (signal_event_object_type): Make extern.
11779         * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
11780         * python/py-type.c (type_object_type, field_object_type)
11781         (type_iterator_object_type): Make extern.
11782         * python/python.c (python_extension_script_ops)
11783         (python_extension_ops): Make extern.
11784         * stap-probe.c (stap_probe_ops): Make extern.
11785
11786 2015-02-11  Pedro Alves  <pedro@codesourcery.com>
11787
11788         * infrun.c (adjust_pc_after_break): Don't adjust the PC just
11789         because the event thread is not the current thread.
11790
11791 2015-02-11  Doug Evans  <xdje42@gmail.com>
11792
11793         * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
11794         been initialized yet, return NULL.
11795
11796 2015-02-11  Doug Evans  <dje@google.com>
11797
11798         * symfile.h (new_symfile_objfile): Delete.
11799         * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
11800         All callers updated.
11801
11802 2015-02-11  Patrick Palka  <patrick@parcs.ath.cx>
11803
11804         * tui/tui-io.c (tui_handle_resize_during_io): Call
11805         tui_update_gdb_sizes() after resizing the screen.
11806         * tui/tui.c (tui_enable): Resize the terminal before
11807         calling tui_update_gdb_sizes().
11808
11809 2015-02-11  Patrick Palka  <patrick@parcs.ath.cx>
11810
11811         * tui/tui-io.c (tui_getc): Move cursor to the end of the command
11812         line before printing a newline.
11813
11814 2015-02-11  Mark Wielaard  <mjw@redhat.com>
11815
11816         * utils.c (producer_is_gcc): Return true or false.
11817
11818 2015-02-10  Mark Wielaard  <mjw@redhat.com>
11819
11820         * utils.h (producer_is_gcc): Change return type to bool. Add major
11821         argument.
11822         * utils.c (producer_is_gcc): Likewise.
11823         (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
11824         * dwarf2read.c (check_producer): Likewise.
11825
11826 2015-02-10  Pedro Alves  <palves@redhat.com>
11827
11828         * infrun.c (displaced_step_fixup): Switch to the event thread
11829         before calling gdbarch_displaced_step_fixup.
11830
11831 2015-02-10  Antoine Tremblay <antoine.tremblay@ericsson.com>
11832
11833         * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
11834
11835 2015-02-10  Simon Marchi  <simon.marchi@ericsson.com>
11836
11837         * ada-varobj.c (ada_name_of_child): Constify parent.
11838         (ada_path_expr_of_child): Same.
11839         (ada_value_of_child): Same.
11840         (ada_type_of_child): Same.
11841         * c-varobj.c (c_is_path_expr_parent): Same.
11842         (c_describe_child): Same.
11843         (c_name_of_child): Same.
11844         (c_value_of_child): Same.
11845         (c_type_of_child): Same.
11846         (cplus_number_of_children): Same.
11847         (cplus_describe_child): Constify var.
11848         (cplus_name_of_child): Constify parent.
11849         (cplus_value_of_child): Same.
11850         (cplus_type_of_child): Same.
11851         * jv-varobj.c (java_name_of_child): Same.
11852         (java_value_of_child): Same.
11853         (java_type_of_child): Same.
11854         * varobj.c (value_of_child): Same.
11855         (varobj_default_is_path_expr_parent): Constify var, parent and return
11856         value.
11857         (varobj_get_path_expr): Constify var, modify path_expr through
11858         mutable_var.
11859         (install_new_value): Constify parent.
11860         (value_of_child): Constify parent.
11861         * varobj.h (struct varobj): Constify parent.
11862         (struct lang_varobj_ops): Constify name_of_child, value_of_child and
11863         type_of_child.
11864         (varobj_get_path_expr): Constify var.
11865         (varobj_get_path_expr_parent): Constify var and return value.
11866
11867 2015-02-10  Luis Machado  <lgustavo@codesourcery.com>
11868
11869         * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
11870         (arm_prologue_this_id): Move PC and SP limit checks to
11871         arm_prologue_unwind_stop_reason.
11872         (arm_prologue_unwind) <stop_reason> : Set to
11873         arm_prologue_unwind_stop_reason.
11874
11875 2015-02-09  Mark Wielaard  <mjw@redhat.com>
11876
11877         * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
11878         DW_LANG_Fortran08 as language_fortran.
11879
11880 2015-02-09  Sergio Durigan Junior  <sergiodj@redhat.com>
11881
11882         PR remote/17946
11883         * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
11884         of pointer against char.
11885
11886 2015-02-09  Mark Wielaard  <mjw@redhat.com>
11887
11888         * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
11889         (c_type_print_modifier): Likewise.
11890         * dwarf2read.c (read_tag_atomic_type): New function.
11891         (read_type_die_1): Handle DW_TAG_atomic_type.
11892         * gdbtypes.c (make_atomic_type): New function.
11893         (recursive_dump_type): Handle TYPE_ATOMIC.
11894         * gdbtypes.h (enum type_flag_values): Renumber.
11895         (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
11896         (TYPE_ATOMIC): New macro.
11897         (make_atomic_type): Declare.
11898
11899 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11900
11901         * btrace.c (ftrace_find_call): Skip gaps.
11902         (ftrace_new_function): Initialize level.
11903         (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
11904         (ftrace_new_switch): Update
11905         level computation.
11906         (ftrace_new_gap): New.
11907         (ftrace_update_function): Create new function after gap.
11908         (btrace_compute_ftrace_bts): Create gap on error.
11909         (btrace_stitch_bts): Update parameters.  Clear trace if it
11910         becomes empty.
11911         (btrace_stitch_trace): Update parameters.  Update callers.
11912         (btrace_clear): Reset the number of gaps.
11913         (btrace_insn_get): Return NULL if the iterator points to a gap.
11914         (btrace_insn_number): Return zero if the iterator points to a gap.
11915         (btrace_insn_end): Allow gaps at the end.
11916         (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
11917         (btrace_find_insn_by_number): Assert that the found iterator does
11918         not point to a gap.
11919         (btrace_call_next, btrace_call_prev): Assert that the last function
11920         is not a gap.
11921         * btrace.h (btrace_bts_error): New.
11922         (btrace_function): Update comment.
11923         (btrace_function) <insn, insn_offset, number>: Update comment.
11924         (btrace_function) <errcode>: New.
11925         (btrace_thread_info) <ngaps>: New.
11926         (btrace_thread_info) <replay>: Update comment.
11927         (btrace_insn_get): Update comment.
11928         * record-btrace.c (btrace_ui_out_decode_error): New.
11929         (record_btrace_info): Print number of gaps.
11930         (btrace_insn_history, btrace_call_history): Call
11931         btrace_ui_out_decode_error for gaps.
11932         (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
11933
11934 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11935
11936         * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
11937         * nat/linux-btrace.c: (btrace_this_cpu): New.
11938         (cpu_supports_bts): Call btrace_this_cpu.
11939         (intel_supports_bts): Add cpu parameter.
11940
11941 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11942
11943         * btrace.h (btrace_insn_class): New.
11944         (btrace_insn) <size, iclass>: New.
11945         * btrace.c (ftrace_find_call): Update parameters.  Update users.
11946         Use instruction classification.
11947         (ftrace_new_return): Update parameters.  Update users.
11948         (ftrace_update_function): Update parameters.  Update users.  Use
11949         instruction classification.
11950         (ftrace_update_insns): Update parameters.  Update users.
11951         (ftrace_classify_insn): New.
11952         (btrace_compute_ftrace_bts): Fill in new btrace_insn fields.  Add
11953         TRY_CATCH around call to gdb_insn_length.
11954
11955 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11956
11957         * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
11958         Update parameters.  Update users.
11959
11960 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11961
11962         * btrace.c (parse_xml_btrace_conf_bts): Add size.
11963         (btrace_conf_bts_attributes): New.
11964         (btrace_conf_children): Add attributes.
11965         * common/btrace-common.h (btrace_config_bts): New.
11966         (btrace_config)<bts>: New.
11967         (btrace_config): Update comment.
11968         * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
11969         Use config.
11970         * features/btrace-conf.dtd: Increment version.  Add size
11971         attribute to bts element.
11972         * record-btrace.c (set_record_btrace_bts_cmdlist,
11973         show_record_btrace_bts_cmdlist): New.
11974         (record_btrace_adjust_size, record_btrace_print_bts_conf,
11975         record_btrace_print_conf, cmd_set_record_btrace_bts,
11976         cmd_show_record_btrace_bts): New.
11977         (record_btrace_info): Call record_btrace_print_conf.
11978         (_initialize_record_btrace): Add commands.
11979         * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
11980         (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
11981         (btrace_sync_conf): Synchronize bts size.
11982         (_initialize_remote): Add Qbtrace-conf:bts:size packet.
11983         * NEWS: Announce new commands and new packets.
11984
11985 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11986
11987         * Makefile.in (XMLFILES): Add btrace-conf.dtd.
11988         * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
11989         (x86_linux_btrace_conf): New.
11990         (x86_linux_create_target): Initialize to_btrace_conf.
11991         * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
11992         Check format.  Split into this and ...
11993         (linux_enable_bts): ... this.
11994         (linux_btrace_conf): New.
11995         (perf_event_skip_record): Renamed into ...
11996         (perf_event_skip_bts_record): ... this.  Updated users.
11997         (linux_disable_btrace): Split into this and ...
11998         (linux_disable_bts): ... this.
11999         (linux_read_btrace): Check format.
12000         * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
12001         (linux_btrace_conf): New.
12002         (btrace_target_info)<ptid>: Moved.
12003         (btrace_target_info)<conf>: New.
12004         (btrace_target_info): Split into this and ...
12005         (btrace_tinfo_bts): ... this.  Updated users.
12006         * btrace.c (btrace_enable): Update parameters.
12007         (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
12008         (btrace_conf_children, btrace_conf_attributes)
12009         (btrace_conf_elements): New.
12010         * btrace.h (btrace_enable): Update parameters.
12011         (btrace_conf, parse_xml_btrace_conf): New.
12012         * common/btrace-common.h (btrace_config): New.
12013         * feature/btrace-conf.dtd: New.
12014         * record-btrace.c (record_btrace_conf): New.
12015         (record_btrace_cmdlist): New.
12016         (record_btrace_enable_warn, record_btrace_open): Pass
12017         &record_btrace_conf.
12018         (record_btrace_info): Print recording format.
12019         (cmd_record_btrace_bts_start): New.
12020         (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
12021         (_initialize_record_btrace): Add "record btrace bts" subcommand.
12022         Add "record bts" alias command.
12023         * remote.c (remote_state)<btrace_config>: New.
12024         (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
12025         (remote_protocol_features): Add qXfer:btrace-conf:read.
12026         (remote_open_1): Call remote_btrace_reset.
12027         (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
12028         (btrace_target_info)<conf>: New.
12029         (btrace_sync_conf, btrace_read_config): New.
12030         (remote_enable_btrace): Update parameters.  Call btrace_sync_conf and
12031         btrace_read_conf.
12032         (remote_btrace_conf): New.
12033         (init_remote_ops): Initialize to_btrace_conf.
12034         (_initialize_remote): Add qXfer:btrace-conf packet.
12035         * target.c (target_enable_btrace): Update parameters.
12036         (target_btrace_conf): New.
12037         * target.h (target_enable_btrace): Update parameters.
12038         (target_btrace_conf): New.
12039         (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
12040         (target_ops)<to_enable_btrace>: Update parameters and comment.
12041         (target_ops)<to_btrace_conf>: New.
12042         * target-delegates: Regenerate.
12043         * target-debug.h (target_debug_print_const_struct_btrace_config_p)
12044         (target_debug_print_const_struct_btrace_target_info_p): New.
12045         * NEWS: Announce new command and new packet.
12046
12047 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
12048
12049         * nat/linux-btrace.h (perf_event_buffer): New.
12050         (btrace_target_info) <buffer, size, data_head>: Replace with ...
12051         <bts>: ... this.
12052         * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
12053         (perf_event_buffer_size, perf_event_buffer_begin)
12054         (perf_event_buffer_end, linux_btrace_has_changed): Removed.
12055         Updated users.
12056         (perf_event_new_data): New.
12057
12058 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
12059
12060         * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
12061         * record-btrace.c (record_btrace_open): Remove call to
12062         target_supports_btrace.
12063         * remote.c (remote_supports_btrace): Update parameters.
12064         * target.c (target_supports_btrace): Update parameters.
12065         * target.h (to_supports_btrace, target_supports_btrace): Update
12066         parameters.
12067         * target-delegates.c: Regenerate.
12068         * target-debug.h (target_debug_print_enum_btrace_format): New.
12069         * nat/linux-btrace.c
12070         (kernel_supports_btrace): Rename into ...
12071         (kernel_supports_bts): ... this.  Update users.  Update warning text.
12072         (intel_supports_btrace): Rename into ...
12073         (intel_supports_bts): ... this.  Update users.
12074         (cpu_supports_btrace): Rename into ...
12075         (cpu_supports_bts): ... this.  Update users.
12076         (linux_supports_btrace): Update parameters.  Split into this and ...
12077         (linux_supports_bts): ... this.
12078         * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
12079
12080 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
12081
12082         * Makefile.in (SFILES): Add common/btrace-common.c.
12083         (COMMON_OBS): Add common/btrace-common.o.
12084         (btrace-common.o): Add build rules.
12085         * btrace.c (parse_xml_btrace): Update parameters.
12086         (parse_xml_btrace_block): Set format field.
12087         (btrace_add_pc, btrace_fetch): Use struct btrace_data.
12088         (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
12089         (btrace_compute_ftrace): Split into this and...
12090         (btrace_compute_ftrace_bts): ...this.
12091         (btrace_stitch_trace): Split into this and...
12092         (btrace_stitch_bts): ...this.
12093         * btrace.h (parse_xml_btrace): Update parameters.
12094         (make_cleanup_btrace_data): New.
12095         * common/btrace-common.c: New.
12096         * common/btrace-common.h: Include common-defs.h.
12097         (btrace_block_s): Update comment.
12098         (btrace_format): New.
12099         (btrace_format_string): New.
12100         (btrace_data_bts): New.
12101         (btrace_data): New.
12102         (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
12103         * remote.c (remote_read_btrace): Update parameters.
12104         * target.c (target_read_btrace): Update parameters.
12105         * target.h (target_read_btrace): Update parameters.
12106         (target_ops)<to_read_btrace>: Update parameters.
12107         * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
12108         * target-delegates.c: Regenerate.
12109         * target-debug (target_debug_print_struct_btrace_data_p): New.
12110         * nat/linux-btrace.c (linux_read_btrace): Split into this and...
12111         (linux_read_bts): ...this.
12112         * nat/linux-btrace.h (linux_read_btrace): Update parameters.
12113
12114 2015-02-06  Doug Evans  <dje@google.com>
12115
12116         * remote-m32r-sdi.c: Include symfile.h.
12117
12118 2015-02-06  Doug Evans  <dje@google.com>
12119
12120         * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
12121         * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
12122         to here.
12123
12124 2015-02-06  Pedro Alves  <palves@redhat.com>
12125
12126         * linux-thread-db.c (find_new_threads_callback): Add debug output.
12127
12128 2015-02-06  Simon Marchi  <simon.marchi@ericsson.com>
12129
12130         PR gdb/15678
12131         * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
12132         (enable_count_command): Check args for NULL value.
12133
12134 2015-02-05  Doug Evans  <xdje42@gmail.com>
12135
12136         * guile/scm-frame.c: Fix spelling errors in a comment.
12137
12138 2015-02-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
12139
12140         * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
12141         * python/py-value.c (valpy_fetch_lazy): Use it.  Remove cast to the
12142         return type.
12143
12144 2015-02-04  Pedro Alves  <palves@redhat.com>
12145
12146         * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
12147         (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
12148         returns true.
12149         (resume_stopped_resumed_lwps): Don't check whether the thread is
12150         marked as executing.
12151         (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
12152
12153 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
12154
12155         * regset.h (struct regset): Add flags field.
12156         (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
12157         * corelow.c (get_core_register_section): Add warning if the size
12158         exceeds the requested size and the regset does not have the
12159         REGSET_VARIABLE_SIZE flag set.
12160         * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
12161         flag.
12162         * armbsd-tdep.c (armbsd_gregset): Likewise.
12163         * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
12164         * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
12165         * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
12166         * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
12167
12168 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
12169
12170         * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
12171         For ".reg-xstate", explicitly specify the requested section size
12172         via X86_XSTATE_SIZE instead of just 0 on input and
12173         X86_XSTATE_MAX_SIZE on output.
12174         * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
12175         Likewise.
12176
12177 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
12178
12179         PR corefiles/17808:
12180         * gdbarch.sh (iterate_over_regset_sections_cb): Document this
12181         function type, particularly its SIZE parameter.
12182         * gdbarch.h: Regenerate.
12183         * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
12184         actual against required size using ">=" instead of "==".
12185         (amd64_collect_fpregset): Likewise.
12186         * i386-tdep.c (i386_supply_gregset): Likewise.
12187         (i386_collect_gregset): Likewise.
12188         (i386_supply_fpregset): Likewise.
12189         (i386_collect_fpregset): Likewise.
12190         * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
12191         (mips_fill_gregset_wrapper): Likewise.
12192         (mips_supply_fpregset_wrapper): Likewise.
12193         (mips_fill_fpregset_wrapper): Likewise.
12194         (mips64_supply_gregset_wrapper): Likewise.
12195         (mips64_fill_gregset_wrapper): Likewise.
12196         (mips64_supply_fpregset_wrapper): Likewise.
12197         (mips64_fill_fpregset_wrapper): Likewise.
12198         * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
12199         (am33_supply_fpregset_method): Likewise.
12200         (am33_collect_gregset_method): Likewise.
12201         (am33_collect_fpregset_method): Likewise.
12202
12203 2015-02-04  Doug Evans  <dje@google.com>
12204             Pedro Alves  <palves@redhat.com>
12205             Eli Zaretskii  <eliz@gnu.org>
12206
12207         PR tui/17810
12208         * tui/tui-command.c (tui_refresh_cmd_win): New function.
12209         * tui/tui-command.c (tui_refresh_cmd_win): Declare.
12210         * tui/tui-file.c: #include tui/tui-command.h.
12211         (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
12212         (tui_file_flush): Refresh command window if stream is gdb_stdout.
12213         * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
12214
12215 2015-02-04  Pedro Alves  <palves@redhat.com>
12216
12217         Fix build breakage.
12218         * event-loop.c (gdb_do_one_event): Add default switch case.
12219
12220 2015-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
12221
12222         Filter out inferior gcc option -fpreprocessed.
12223         * compile/compile.c (filter_args): New function.
12224         (get_args): Use it.
12225
12226 2015-02-03  Pedro Alves  <palves@redhat.com>
12227
12228         * event-loop.c: Don't declare nor define a queue type for
12229         gdb_event_p.
12230         (event_queue): Delete.
12231         (create_event, create_file_event, gdb_event_xfree)
12232         (initialize_event_loop, process_event): Delete.
12233         (gdb_do_one_event): Return as soon as one event is handled.
12234         (handle_file_event): Change prototype.  Used the passed in
12235         file_handler pointer and ready_mask instead of looping over all
12236         file handlers.
12237         (gdb_wait_for_event): Update the poll/select timeouts before
12238         blocking.  Run event handlers directly instead of queueing events.
12239         Return as soon as one event is handled.
12240         (struct async_event_handler_data): Delete.
12241         (invoke_async_event_handler): Delete.
12242         (check_async_event_handlers): Change return type to int.  Run
12243         event handlers directly instead of queueing events.  Return as
12244         soon as one event is handled.
12245         (handle_timer_event): Delete.
12246         (update_wait_timeout): New function, factored out from
12247         poll_timers.
12248         (poll_timers): Reimplement.
12249         * event-loop.h (initialize_event_loop): Delete declaration.
12250         * top.c (gdb_init): Don't call initialize_event_loop.
12251
12252 2015-02-03  Pedro Alves  <palves@redhat.com>
12253
12254         * event-loop.c (clear_async_event_handler): New function.
12255         * event-loop.h (clear_async_event_handler): New declaration.
12256         * record-btrace.c (record_btrace_async): New function.
12257         (init_record_btrace_ops): Install record_btrace_async.
12258         * record-full.c (record_full_async): New function.
12259         (record_full_resume): Don't mark the async event source here.
12260         (init_record_full_ops): Install record_full_async.
12261         (record_full_core_resume): Don't mark the async event source here.
12262         (init_record_full_core_ops): Install record_full_async.
12263         * remote.c (remote_async): Mark and clear the async stop reply
12264         queue event-loop token as appropriate.
12265
12266 2015-02-03  Pedro Alves  <palves@redhat.com>
12267
12268         * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
12269         target_is_async_p instead of target_can_async.
12270         (linux_nat_wait): Use target_is_async_p instead of
12271         target_can_async.  Don't enable async here.
12272         * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
12273         target_is_async_p instead of target_can_async.
12274
12275 2015-02-02  Simon Marchi  <simon.marchi@ericsson.com>
12276
12277         * varobj.h (lang_varobj_ops): Mention which return values need
12278         to be freed.
12279
12280 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
12281
12282         * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
12283
12284 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
12285
12286         PR gdb/17856:
12287         * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
12288         results found in the cache.
12289
12290 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
12291
12292         PR gdb/17854:
12293         * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
12294         when allocating a new one.
12295
12296 2015-02-01  Tom Tromey  <tom@tromey.com>
12297
12298         * MAINTAINERS: Remove myself.
12299
12300 2015-01-31  Doug Evans  <xdje42@gmail.com>
12301
12302         * dwarf2read.c (process_structure_scope): Update setting of
12303         TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
12304         * gdbtypes.c (internal_type_vptr_fieldno): New function.
12305         (set_type_vptr_fieldno): New function.
12306         (internal_type_vptr_basetype): New function.
12307         (set_type_vptr_basetype): New function.
12308         (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
12309         TYPE_VPTR_BASETYPE.
12310         (allocate_cplus_struct_type): Initialize vptr_fieldno.
12311         (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
12312         (print_cplus_stuff): ... moved here.
12313         (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
12314         * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
12315         moved to ...
12316         (struct cplus_struct_type): ... here.  All uses updated.
12317         (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
12318         (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
12319         (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
12320         * stabsread.c (read_tilde_fields): Update setting of
12321         TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
12322
12323 2015-01-31  Doug Evans  <xdje42@gmail.com>
12324
12325         * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
12326         to self_p.
12327         (cp_print_class_member): Rename local domain to self_type.
12328         * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
12329         domain_type to self_type.
12330         (set_die_type) <need_gnat_info>: Handle
12331         TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
12332         * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
12333         TYPE_SPECIFIC_SELF_TYPE.
12334         * gdbtypes.c (internal_type_self_type): New function.
12335         (set_type_self_type): New function.
12336         (smash_to_memberptr_type): Rename parameter domain to self_type.
12337         Update setting of TYPE_SELF_TYPE.
12338         (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
12339         (smash_to_method_type): Rename parameter domain to self_type.
12340         Update setting of TYPE_SELF_TYPE.
12341         (check_stub_method): Call smash_to_method_type.
12342         (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
12343         (copy_type_recursive): Ditto.
12344         * gdbtypes.h (enum type_specific_kind): New value
12345         TYPE_SPECIFIC_SELF_TYPE.
12346         (struct main_type) <type_specific>: New member self_type.
12347         (struct cplus_struct_type) <fn_field.type>: Update comment.
12348         (TYPE_SELF_TYPE): Rewrite.
12349         (internal_type_self_type, set_type_self_type): Declare.
12350         * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
12351         self_type.
12352         (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
12353         * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
12354         TYPE_TARGET_TYPE.
12355         * stabsread.c (read_member_functions): Mark methods with
12356         TYPE_CODE_METHOD, not TYPE_CODE_FUNC.  Update setting of
12357         TYPE_SELF_TYPE.
12358
12359 2015-01-31  Doug Evans  <xdje42@gmail.com>
12360
12361         * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
12362         All uses updated.
12363
12364 2015-01-31  Doug Evans  <xdje42@gmail.com>
12365
12366         * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
12367         or unions.  Return zero if union.
12368         (gnuv3_get_vtable): Call check_typedef.  Assert only passed structs.
12369         (gnuv3_rtti_type): Pass already-check_typedef'd value to
12370         gnuv3_get_vtable.
12371         (compute_vtable_size): Assert only passed structs.
12372         (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
12373
12374 2015-01-31  Doug Evans  <xdje42@gmail.com>
12375
12376         * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
12377         kinds.
12378
12379 2015-01-31  Gary Benson <gbenson@redhat.com>
12380             Doug Evans  <dje@google.com>
12381
12382         PR cli/9007
12383         PR cli/11920
12384         PR cli/15548
12385         * cli/cli-cmds.c (complete_command): Notify user if max-completions
12386         reached.
12387         * common/common-exceptions.h (enum errors)
12388         <MAX_COMPLETIONS_REACHED_ERROR>: New value.
12389         * completer.h (get_max_completions_reached_message): New declaration.
12390         (max_completions): Likewise.
12391         (completion_tracker_t): New typedef.
12392         (new_completion_tracker): New declaration.
12393         (make_cleanup_free_completion_tracker): Likewise.
12394         (maybe_add_completion_enum): New enum.
12395         (maybe_add_completion): New declaration.
12396         (throw_max_completions_reached_error): Likewise.
12397         * completer.c (max_completions): New global variable.
12398         (new_completion_tracker): New function.
12399         (free_completion_tracker): Likewise.
12400         (make_cleanup_free_completion_tracker): Likewise.
12401         (maybe_add_completions): Likewise.
12402         (throw_max_completions_reached_error): Likewise.
12403         (complete_line): Remove duplicates and limit result to max_completions
12404         entries.
12405         (get_max_completions_reached_message): New function.
12406         (gdb_display_match_list): Handle max_completions.
12407         (_initialize_completer): New declaration and function.
12408         * symtab.c: Include completer.h.
12409         (completion_tracker): New static variable.
12410         (completion_list_add_name): Call maybe_add_completion.
12411         (default_make_symbol_completion_list_break_on_1): Renamed from
12412         default_make_symbol_completion_list_break_on.  Maintain
12413         completion_tracker across calls to completion_list_add_name.
12414         (default_make_symbol_completion_list_break_on): New function.
12415         * top.c (init_main): Set rl_completion_display_matches_hook.
12416         * tui/tui-io.c: Include completer.h.
12417         (tui_old_rl_display_matches_hook): New static global.
12418         (tui_rl_display_match_list): Notify user if max-completions reached.
12419         (tui_setup_io): Save/restore rl_completion_display_matches_hook.
12420         * NEWS (New Options): Mention set/show max-completions.
12421
12422 2015-01-31  Gary Benson  <gbenson@redhat.com>
12423
12424         * symtab.c (struct add_name_data) <code>: New field.
12425         Updated comments.
12426         (add_symtab_completions): New function.
12427         (symtab_expansion_callback): Likewise.
12428         (default_make_symbol_completion_list_break_on): Set datum.code.
12429         Move minimal symbol scan before calling expand_symtabs_matching.
12430         Scan known primary symtabs for externs and statics before calling
12431         expand_symtabs_matching.  Pass symtab_expansion_callback as
12432         expansion_notify argument to expand_symtabs_matching.  Do not scan
12433         primary symtabs for externs and statics after calling
12434         expand_symtabs_matching.
12435
12436 2015-01-31  Gary Benson  <gbenson@redhat.com>
12437
12438         * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
12439         (struct quick_symbol_functions) <expand_symtabs_matching>:
12440         New argument expansion_notify.  All uses updated.
12441         (expand_symtabs_matching): New argument expansion_notify.
12442         All uses updated.
12443         * symfile-debug.c (debug_qf_expand_symtabs_matching):
12444         Also print expansion notify.
12445         * symtab.c (expand_symtabs_matching_via_partial): Call
12446         expansion_notify whenever a partial symbol table is expanded.
12447         * dwarf2read.c (dw2_expand_symtabs_matching): Call
12448         expansion_notify whenever a symbol table is instantiated.
12449
12450 2015-01-31  Doug Evans  <xdje42@gmail.com>
12451
12452         * cli-out.c: #include completer.h, readline/readline.h.
12453         (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
12454         (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
12455         (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
12456         * cli-out.h (cli_display_match_list): Declare.
12457         * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
12458         (ELLIPSIS_LEN): Ditto.
12459         (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
12460         (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
12461         (gdb_fnprint, gdb_print_filename): Ditto.
12462         (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
12463         (gdb_display_match_list): Ditto.
12464         * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
12465         (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
12466         (mld_beep_ftype, mld_read_key_ftype): Ditto.
12467         (match_list_displayer): New struct.
12468         (gdb_display_match_list): Declare.
12469         * top.c (init_main): Set rl_completion_display_matches_hook.
12470         * tui/tui-io.c: #include completer.h.
12471         (printable_part, PUTX, print_filename, get_y_or_n): Delete.
12472         (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
12473         (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
12474         (tui_mld_getc, tui_mld_read_key): Ditto.
12475         (tui_rl_display_match_list): Rewrite.
12476         (tui_handle_resize_during_io): New arg for_completion.  All callers
12477         updated.
12478
12479 2015-01-31  Doug Evans  <xdje42@gmail.com>
12480
12481         Add symbol lookup cache.
12482         * NEWS: Document new options and commands.
12483         * symtab.c (symbol_cache_key): New static global.
12484         (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
12485         (SYMBOL_LOOKUP_FAILED): New macro.
12486         (symbol_cache_slot_state): New enum.
12487         (block_symbol_cache): New struct.
12488         (symbol_cache): New struct.
12489         (new_symbol_cache_size, symbol_cache_size): New static globals.
12490         (hash_symbol_entry, eq_symbol_entry): New functions.
12491         (symbol_cache_byte_size, resize_symbol_cache): New functions.
12492         (make_symbol_cache, free_symbol_cache): New functions.
12493         (get_symbol_cache, symbol_cache_cleanup): New function.
12494         (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
12495         (symbol_cache_lookup, symbol_cache_clear_slot): New function.
12496         (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
12497         (symbol_cache_flush, symbol_cache_dump): New functions.
12498         (maintenance_print_symbol_cache): New function.
12499         (maintenance_flush_symbol_cache): New function.
12500         (symbol_cache_stats): New function.
12501         (maintenance_print_symbol_cache_statistics): New function.
12502         (symtab_new_objfile_observer): New function.
12503         (symtab_free_objfile_observer): New function.
12504         (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
12505         (_initialize_symtab): Init symbol_cache_key.  New parameter
12506         maint symbol-cache-size.  New maint commands print symbol-cache,
12507         print symbol-cache-statistics, flush-symbol-cache.
12508         Install new_objfile, free_objfile observers.
12509
12510 2015-01-31  Joel Brobecker  <brobecker@adacore.com>
12511
12512         PR symtab/17855
12513         * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
12514         to end.
12515
12516 2015-01-31  Doug Evans  <xdje42@gmail.com>
12517
12518         * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
12519         * auto-load.c: #include ctype.h.
12520         (struct auto_load_pspace_info): Replace member loaded_scripts with
12521         new members loaded_script_files, loaded_script_texts.
12522         (auto_load_pspace_data_cleanup): Update.
12523         (init_loaded_scripts_info): Update.
12524         (get_auto_load_pspace_data_for_loading): Update.
12525         (maybe_add_script_file): Renamed from maybe_add_script.  All callers
12526         updated.
12527         (maybe_add_script_text): New function.
12528         (clear_section_scripts): Update.
12529         (source_script_file, execute_script_contents): New functions.
12530         (source_section_scripts): Add support for
12531         SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
12532         (print_scripts): New function.
12533         (auto_load_info_scripts): Also print inlined scripts.
12534         (maybe_print_unsupported_script_warning): Renamed from
12535         unsupported_script_warning_print.  All callers updated.
12536         (maybe_print_script_not_found_warning): Renamed from
12537         script_not_found_warning_print.  All callers updated.
12538         * extension-priv.h (struct extension_language_script_ops): New member
12539         objfile_script_executor.
12540         * extension.c (ext_lang_objfile_script_executor): New function.
12541         * extension.h (objfile_script_executor_func): New typedef.
12542         (ext_lang_objfile_script_executor): Declare.
12543         * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
12544         * guile/guile.c (guile_extension_script_ops): Update.
12545         * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
12546         * python/python.c (python_extension_script_ops): Update.
12547         (gdbpy_execute_objfile_script): New function.
12548
12549 2015-01-31  Eli Zaretskii  <eliz@gnu.org>
12550
12551         * tui/tui-io.c (tui_expand_tabs): New function.
12552         (tui_puts, tui_redisplay_readline): Expand TABs into the
12553         appropriate number of spaces.
12554         * tui/tui-regs.c: Include tui-io.h.
12555         (tui_register_format): Call tui_expand_tabs to expand TABs into
12556         the appropriate number of spaces.
12557         * tui/tui-io.h: Add prototype for tui_expand_tabs.
12558
12559 2015-01-30  Doug Evans  <dje@google.com>
12560
12561         * NEWS: "info source" command now display producer string if present.
12562         * source.c (source_info): Print producer string if present.
12563
12564 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12565
12566         * varobj.c (varobj_delete): Fix comment.
12567
12568 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12569
12570         * varobj.c (create_child): Modify comment.
12571
12572 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12573
12574         * ada-varobj.c (ada_number_of_children): Constify struct varobj *
12575         parameter.
12576         (ada_name_of_variable): Same.
12577         (ada_path_expr_of_child): Same.
12578         (ada_value_of_variable): Same.
12579         (ada_value_is_changeable_p): Same.
12580         (ada_value_has_mutated): Same.
12581         * c-varobj.c (varobj_is_anonymous_child): Same.
12582         (c_is_path_expr_parent): Same.
12583         (c_number_of_children): Same.
12584         (c_name_of_variable): Same.
12585         (c_path_expr_of_child): Same.
12586         (get_type): Same.
12587         (c_value_of_variable): Same.
12588         (cplus_number_of_children): Same.
12589         (cplus_name_of_variable): Same.
12590         (cplus_path_expr_of_child): Same.
12591         (cplus_value_of_variable): Same.
12592         * jv-varobj.c (java_number_of_children): Same.
12593         (java_name_of_variable): Same.
12594         (java_path_expr_of_child): Same.
12595         (java_value_of_variable): Same.
12596         * varobj.c (number_of_children): Same.
12597         (name_of_variable): Same.
12598         (is_root_p): Same.
12599         (varobj_ensure_python_env): Same.
12600         (varobj_get_objname): Same.
12601         (varobj_get_expression): Same.
12602         (varobj_get_display_format): Same.
12603         (varobj_get_display_hint): Same.
12604         (varobj_has_more): Same.
12605         (varobj_get_thread_id): Same.
12606         (varobj_get_frozen): Same.
12607         (dynamic_varobj_has_child_method): Same.
12608         (varobj_get_gdb_type): Same.
12609         (is_path_expr_parent): Same.
12610         (varobj_default_is_path_expr_parent): Same.
12611         (varobj_get_language): Same.
12612         (varobj_get_attributes): Same.
12613         (varobj_is_dynamic_p): Same.
12614         (varobj_get_child_range): Same.
12615         (varobj_value_has_mutated): Same.
12616         (varobj_get_value_type): Same.
12617         (number_of_children): Same.
12618         (name_of_variable): Same.
12619         (check_scope): Same.
12620         (varobj_editable_p): Same.
12621         (varobj_value_is_changeable_p): Same.
12622         (varobj_floating_p): Same.
12623         (varobj_default_value_is_changeable_p): Same.
12624
12625 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12626
12627         * varobj.c (varobj_get_path_expr): Set var->path_expr.
12628         * c-varobj.c (c_path_expr_of_child): Set local var instead of
12629         child->path_expr.
12630         (cplus_path_expr_of_child): Same.
12631
12632 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12633
12634         * mi-cmd-var.c (print_varobj): Free varobj_get_expression
12635         result.
12636         (mi_cmd_var_info_expression): Same.
12637         * varobj.c (varobj_get_expression): Mention in the comment that
12638         the result must by freed by the caller.
12639
12640 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12641
12642         * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
12643         varobj_get_type.
12644         (varobj_update_one): Same.
12645         * varobj.c (update_type_if_necessary): Free curr_type_str and
12646         new_type_str.
12647         (varobj_get_type): Specify in comment that the result needs to be
12648         freed by the caller.
12649
12650 2015-01-29  Doug Evans  <dje@google.com>
12651
12652         PR symtab/17890
12653         * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
12654
12655 2015-01-25  Mark Wielaard  <mjw@redhat.com>
12656
12657         * dwarf2read.c (checkproducer): Call producer_is_gcc.
12658         * utils.c (producer_is_gcc_ge_4): Likewise.
12659         (producer_is_gcc): New function.
12660         * utils.h (producer_is_gcc): New declaration.
12661
12662 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
12663
12664         * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
12665         kind.
12666         * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
12667         parameter by "addr_stack" parameter.
12668         (resolve_dynamic_range): Replace "addr" parameter by
12669         "stack_addr" parameter.  Update function documentation.
12670         Update code accordingly.
12671         (resolve_dynamic_array, resolve_dynamic_union)
12672         (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
12673         (resolve_dynamic_type): Update code, following the changes made
12674         to resolve_dynamic_type_internal's interface.
12675         * dwarf2loc.h (struct property_addr_info): New.
12676         (dwarf2_evaluate_property): Replace "address" parameter
12677         by "addr_stack" parameter.  Adjust function documentation.
12678         (struct dwarf2_offset_baton): New.
12679         (struct dwarf2_property_baton): Update documentation of
12680         field "referenced_type" to be more general. New field
12681         "offset_info" in union data field.
12682         * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
12683         parameter by "addr_stack" parameter.  Adjust code accordingly.
12684         Add support for PROP_ADDR_OFFSET properties.
12685         * dwarf2read.c (attr_to_dynamic_prop): Add support for
12686         DW_AT_data_member_location attributes as well.  Use case
12687         statements instead of if/else condition.
12688
12689 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
12690
12691         * ada-varobj.c (ada_varobj_get_array_number_of_children):
12692         Return zero if PARENT_VALUE is NULL and parent_type's
12693         range type is dynamic.
12694
12695 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
12696
12697         * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
12698         nonzero if the type's subtype is dynamic.
12699         (resolve_dynamic_range): Also resolve the range's subtype.
12700
12701 2015-01-29  Alexander Klimov  <alserkli@inbox.ru>  (tiny patch)
12702
12703         Pushed by Joel Brobecker  <brobecker@adacore.com>.
12704         * symfile.c (unmap_overlay_command): Initialize sec to NULL.
12705
12706 2015-01-27  Doug Evans  <dje@google.com>
12707
12708         * NEWS: Mention gdb.Objfile.username.
12709         * python/py-objfile.c (objfpy_get_username): New function.
12710         (objfile_getset): Add "username".
12711
12712 2015-01-24  Mark Wielaard  <mjw@redhat.com>
12713
12714         * stack.c (return_command): Markup warning message with _.
12715
12716 2015-01-24  Doug Evans  <xdje42@gmail.com>
12717
12718         * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
12719
12720 2015-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
12721
12722         Fix 100x slowdown regression on DWZ files.
12723         * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
12724         (struct line_header): Add offset and offset_in_dwz.
12725         (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
12726         (free_line_header_voidp): New declaration.
12727         (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
12728         functions.
12729         (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
12730         (handle_DW_AT_stmt_list): Use line_header_hash.
12731         (free_line_header_voidp): New function.
12732         (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
12733         (dwarf_decode_lines): New parameter decode_mapping, use it.
12734         (dwarf2_free_objfile): Free line_header_hash.
12735
12736 2015-01-23  Simon Marchi  <simon.marchi@ericsson.com>
12737
12738         PR gdb/17416
12739         * valops.c (value_rtti_indirect_type): Catch exception thrown by
12740         value_ind.
12741
12742 2015-01-15  Mark Wielaard  <mjw@redhat.com>
12743
12744         * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
12745         DW_AT_noreturn.
12746         * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
12747         calling_convention an 8 bit bit field.
12748         (TYPE_NO_RETURN): New macro.
12749         * infcmd.c (finish_command): Query if function does not return
12750         normally.
12751         * stack.c (return_command): Likewise.
12752
12753 2015-01-23  Pedro Alves  <palves@redhat.com>
12754
12755         * linux-nat.c (linux_is_async_p): New macro.
12756         (linux_nat_is_async_p):
12757         (linux_nat_terminal_inferior): Check whether the target can async
12758         instead of whether it is already async.
12759         (linux_nat_terminal_ours): Don't check whether the target is
12760         async.
12761         (linux_async_pipe): Use linux_is_async_p.
12762
12763 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
12764
12765         * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
12766         '-ascending'.
12767         * thread.c (tp_array_compar_ascending, tp_array_compar): New.
12768         (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
12769         Sort tp_array using tp_array_compar.
12770         (_initialize_thread): Extend thread_apply_all_command help.
12771
12772 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
12773
12774         * corelow.c (core_open): Call also thread_command.
12775         * gdbthread.h (thread_command): New prototype moved from ...
12776         * thread.c (thread_command): ... here.
12777         (thread_command): Make it global.
12778
12779 2015-01-22  Pedro Alves  <palves@redhat.com>
12780
12781         * configure.ac [*mingw32*]: Check $curses_found instead of
12782         $prefer_curses.
12783         * configure: Regenerate.
12784         * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
12785         HAVE_NCURSES_NCURSES_H checks.
12786
12787 2015-01-22  Eli Zaretskii  <eliz@gnu.org>
12788
12789         * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
12790         fails with the 1st arg NULL, try again with "unknown".  Don't test
12791         the "cup" capability: it isn't supported by the Windows port of
12792         ncurses, but the Windows console driver is still capable of
12793         supporting TUI.
12794
12795 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
12796
12797         * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
12798
12799 2015-01-22  Eli Zaretskii  <eliz@gnu.org>
12800
12801         * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
12802         (ALLDEPFILES): Remove irix5-nat.c.  These two are part of the
12803         reason that "make TAGS" is broken.
12804
12805 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
12806
12807         * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
12808         and check additional store instructions.
12809
12810 2015-01-21  Wei-cheng Wang  <cole945@gmail.com>
12811
12812         * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
12813
12814 2015-01-21  Wei-cheng Wang  <cole945@gmail.com>
12815
12816         * ppc-linux-tdep.c (ppc_skip_trampoline_code,
12817         ppc_canonicalize_syscall, ppc_linux_syscall_record,
12818         ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
12819         * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12820         * rs6000-tdep.c (rs6000_epilogue_frame_cache,
12821         rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
12822         rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
12823         ppc_process_record_op19, ppc_process_record_op31,
12824         ppc_process_record_op59, ppc_process_record_op60,
12825         ppc_process_record_op63): Likewise.
12826
12827 2015-01-20  Joel Brobecker  <brobecker@adacore.com>
12828
12829         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
12830         (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
12831         strerror.
12832
12833 2015-01-20  Wei-cheng Wang  <cole945@gmail.com>
12834
12835         * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
12836         ppc_process_record_op31, ppc_process_record_op59,
12837         ppc_process_record_op60, ppc_process_record_op63,
12838         ppc_process_record): Fix -Wformat warning.
12839         * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
12840         Remove unused variables.
12841
12842 2015-01-20  Chen Gang  <gang.chen.5i5j@gmail.com>
12843
12844         * MAINTAINERS (Write After Approval): Add "Chen Gang".
12845
12846 2015-01-19  Eli Zaretskii  <eliz@gnu.org>
12847
12848         * configure.ac [*mingw32*]: Only add windows-termcap.o to
12849         CONFIG_OBS if not building with a curses library.
12850         * configure: Regenerate.
12851
12852         * windows-termcap.c: Include defs.h.  Make the whole body empty if
12853         either one of HAVE_CURSES_H or HAVE_NCURSES_H or
12854         HAVE_NCURSES_NCURSES_H is defined.
12855
12856 2015-01-19  Joel Brobecker  <brobecker@adacore.com>
12857
12858         * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
12859         from end of line to start of next line.
12860
12861 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
12862
12863         * ppc-linux-tdep.c (ppc_skip_trampoline_code):
12864         Scan PLT stub backward for reverse debugging.
12865         * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12866
12867 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
12868             Ulrich Weigand  <uweigand@de.ibm.com>
12869
12870         * configure.tgt (powerpc*-*-linux): Add linux-record.o to
12871         gdb_target_obs.
12872         (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
12873         record.
12874         (ppc_canonicalize_syscall, ppc_linux_syscall_record,
12875         ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
12876         (ppc_linux_init_abi): Set process_record, process_record_signal.
12877         * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
12878         ppc_linux_record_tdep to gdbarch_tdep.
12879         (ppc_process_record): New declaration.
12880         * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
12881         ppc_process_record_op19, ppc_process_record_op31,
12882         ppc_process_record_op59, ppc_process_record_op60,
12883         ppc_process_record_op63, ppc_process_record): New functions.
12884
12885 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
12886
12887         * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
12888         rs6000_in_function_epilogue_frame_p and add an argument
12889         for frame_info.
12890         (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
12891         rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
12892         New functions.
12893         (rs6000_epilogue_frame_unwind): New.
12894         (rs6000_gdbarch_init): Append epilogue unwinder.
12895
12896 2015-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
12897
12898         * nat/linux-personality.c: Replace "#ifndef
12899         HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
12900         !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
12901         systems.
12902
12903 2015-01-16  Eli Zaretskii  <eliz@gnu.org>
12904
12905         * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
12906         functions.
12907         (_initialize_tui_win) <border-kind, border-mode>:
12908         <active-border-mode>: Use tui_set_var_cmd as the "set" function.
12909         (tui_set_tab_width_command): Fix the commentary.
12910
12911         * tui/tui-win.h: Add prototype for tui_rehighlight_all.
12912
12913         * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
12914         Doc fix.
12915         (tui_set_tab_width_command): Delete and recreate the source and
12916         the disassembly windows, to show the effect of the changed tab
12917         size immediately.
12918
12919         * tui/tui-data.h (LINE_PREFIX): Make shorter
12920         (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
12921         "Thread NNNNN.XXXX" thread ID notation on Windows.
12922
12923 2015-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
12924
12925         Fix gcc-5 compilation.
12926         * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
12927
12928 2015-01-15  Sergio Durigan Junior  <sergiodj@redhat.com>
12929
12930         * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
12931         (linux-personality.o): New rule.
12932         * common/common-defs.h: Include <stdint.h>.
12933         * config/aarch64/linux.mh (NATDEPFILES): Include
12934         linux-personality.o.
12935         * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
12936         * config/arm/linux.mh (NATDEPFILES): Likewise.
12937         * config/i386/linux64.mh (NATDEPFILES): Likewise.
12938         * config/i386/linux.mh (NATDEPFILES): Likewise.
12939         * config/ia64/linux.mh (NATDEPFILES): Likewise.
12940         * config/m32r/linux.mh (NATDEPFILES): Likewise.
12941         * config/m68k/linux.mh (NATDEPFILES): Likewise.
12942         * config/mips/linux.mh (NATDEPFILES): Likewise.
12943         * config/pa/linux.mh (NATDEPFILES): Likewise.
12944         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
12945         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
12946         * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
12947         * config/s390/linux.mh (NATDEPFILES): Likewise.
12948         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
12949         * config/sparc/linux.mh (NATDEPFILES): Likewise.
12950         * config/tilegx/linux.mh (NATDEPFILES): Likewise.
12951         * config/xtensa/linux.mh (NATDEPFILES): Likewise.
12952         * defs.h: Remove #include <stdint.h> (moved to
12953         common/common-defs.h).
12954         * linux-nat.c: Include nat/linux-personality.h.  Remove #include
12955         <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
12956         nat/linux-personality.c).
12957         (linux_nat_create_inferior): Remove code to disable address space
12958         randomization (moved to nat/linux-personality.c).  Create cleanup
12959         to disable address space randomization.
12960         * nat/linux-personality.c: New file.
12961         * nat/linux-personality.h: Likewise.
12962
12963 2015-01-15  Sergio Durigan Junior  <sergiodj@redhat.com>
12964
12965         * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
12966         common/posix-strerror.c.
12967         (posix-strerror.o): New rule.
12968         (mingw-strerror.o): Likewise.
12969         * common/common-utils.h (safe_strerror): Move prototype to here,
12970         from utils.h.
12971         * common/common.host: New file.
12972         * common/mingw-strerror.c: Likewise.
12973         * common/posix-strerror.c: Likewise.
12974         * configure: Regenerated.
12975         * configure.ac: Source common/common.host.  Add variable
12976         common_host_obs to gdb_host_obs.
12977         * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
12978         gdb/common/posix-strerror.c when warning about the use of
12979         strerror.
12980         * mingw-hdep.c (safe_strerror): Remove definition; move it to
12981         common/mingw-strerror.c.
12982         * posix-hdep.c (safe_strerror): Remove definition; move it to
12983         common/posix-hdep.c.
12984         * utils.h (safe_strerror): Remove prototype; move to
12985         common/common-utils.h.
12986
12987 2015-01-15  Joel Brobecker  <brobecker@adacore.com>
12988
12989         GDB 7.8.2 released.
12990
12991 2015-01-15  Joel Brobecker  <brobecker@adacore.com>
12992
12993         * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
12994         ___XA type if the array has already been fixed.
12995
12996 2015-01-14  Yao Qi  <yao@codesourcery.com>
12997
12998         * Makefile.in (ppc-linux.o): New rule.
12999         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
13000         * configure.ac: AC_CHECK_FUNCS(getauxval).
13001         * config.in: Re-generated.
13002         * configure: Re-generated.
13003         * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
13004         Declare.
13005         * nat/ppc-linux.c: New file.
13006         * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
13007         Call ppc64_64bit_inferior_p.
13008
13009 2015-01-14  Yao Qi  <yao@codesourcery.com>
13010
13011         * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
13012         nat/ppc-linux.h.
13013         (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
13014         (PPC_FEATURE_HAS_DFP): Likewise.
13015         (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
13016         (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
13017         (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
13018         Include "nat/ppc-linux.h".
13019         * nat/ppc-linux.h: New file.
13020         * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
13021
13022 2015-01-14  Pedro Alves  <palves@redhat.com>
13023
13024         PR gdb/17525
13025         * breakpoint.c: Include "interps.h".
13026         (bpstat_do_actions_1): Also check whether the interpreter is
13027         async.
13028
13029 2015-01-14  Pedro Alves  <palves@redhat.com>
13030
13031         PR cli/17828
13032         * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
13033         reinstall if the interpreter is sync.
13034
13035 2015-01-13  Doug Evans  <dje@google.com>
13036
13037         * objfiles.c (objfile_filename): New function.
13038         * objfiles.h (objfile_filename): Declare it.
13039         (objfile_name): Add function comment.
13040         * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
13041         bfd file name (which may be realpath'd), and the original name.
13042
13043 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
13044
13045         * NEWS: Create a new section for the next release branch.
13046         Rename the section of the current branch, now that it has
13047         been cut.
13048
13049 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
13050
13051         GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
13052         * version.in: Bump version to 7.9.50.DATE-cvs.
13053
13054 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
13055
13056         * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
13057         Remove trailing new-line in argument of call to warning.
13058
13059 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
13060
13061         * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
13062         new-line in argument of call to "warning".
13063
13064 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
13065
13066         * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
13067         in static block, then try searching for primitive types.
13068
13069 2015-01-12  Patrick Palka  <patrick@parcs.ath.cx>
13070
13071         * top.h (gdb_add_history): Declare.
13072         * top.c (command_count): New variable.
13073         (gdb_add_history): New function.
13074         (gdb_safe_append_history): New static function.
13075         (quit_force): Call it.
13076         (command_line_input): Use gdb_add_history instead of
13077         add_history.
13078         * event-top.c (command_line_handler): Likewise.
13079
13080 2015-01-12  James Clarke  <jrtc27@jrtc27.com>  (tiny patch)
13081
13082         PR gdb/17046
13083         * darwin-nat.c: Replace <machine/setjmp.h> #include by
13084         <setjmp.h> #include.
13085
13086 2015-01-11  Doug Evans  <xdje42@gmail.com>
13087
13088         * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
13089
13090 2015-01-11  Doug Evans  <xdje42@gmail.com>
13091
13092         PR gdb/15830
13093         * NEWS: The "maint demangle" command is renamed as "demangle".
13094         * demangle.c: #include cli/cli-utils.h, language.h.
13095         (demangle_command): New function.
13096         (_initialize_demangle): Add new command "demangle".
13097         * maint.c (maintenance_demangle): Stub out.
13098         (_initialize_maint_cmds): Update help text for "maint demangle",
13099         and mark as deprecated.
13100
13101 2015-01-11  Mark Kettenis  <kettenis@gnu.org>
13102
13103         * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
13104         inferior_thread is a function.
13105
13106 2015-01-09  Patrick Palka  <patrick@parcs.ath.cx>
13107
13108         * Makefile.in (.y.c): Don't munge yacc's #line
13109         directives.
13110
13111 2015-01-09  Patrick Palka  <patrick@parcs.ath.cx>
13112
13113         * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
13114         to prompt for input.
13115         * tui/tui-hooks.c (tui_query_hook): Remove.
13116         (tui_install_hooks): Don't set deprecated_query_hook.
13117         * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
13118         height calculation.  Always update the command window's cur_line.
13119
13120 2015-01-09  Pedro Alves  <palves@redhat.com>
13121
13122         * breakpoint.c (hardware_breakpoint_inserted_here_p): New
13123         function.
13124         * breakpoint.h (hardware_breakpoint_inserted_here_p): New
13125         declaration.
13126         * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
13127         (linux_resume_one_lwp): Store the thread's PC.  Adjust to clear
13128         stop_reason.
13129         (check_stopped_by_watchpoint): New function.
13130         (save_sigtrap): Reimplement.
13131         (linux_nat_stopped_by_watchpoint): Adjust.
13132         (linux_nat_lp_status_is_event): Delete.
13133         (stop_wait_callback): Only call save_sigtrap after storing the
13134         pending status.
13135         (status_callback): If the thread had been stopped for a breakpoint
13136         that has since been removed, discard the event and resume the LWP.
13137         (count_events_callback, select_event_lwp_callback): Use
13138         lwp_status_pending_p instead of linux_nat_lp_status_is_event.
13139         (cancel_breakpoint): Rename to ...
13140         (check_stopped_by_breakpoint): ... this.  Record whether the LWP
13141         stopped for a software breakpoint or hardware breakpoint.
13142         (select_event_lwp): Only give preference to the stepping LWP in
13143         all-stop mode.  Adjust comments.
13144         (stop_and_resume_callback): Remove references to new_pending_p.
13145         (linux_nat_filter_event): Likewise.  Leave exit events of the
13146         leader thread pending here.  Handle signal short circuiting here.
13147         Only call save_sigtrap after storing the pending waitstatus.
13148         (linux_nat_wait_1): Remove 'retry' label.  Remove references to
13149         new_pending.  Don't handle leaving events the caller is not
13150         interested in pending here, nor handle signal short-circuiting
13151         here.  Also give equal priority to all LWPs that have had events
13152         in non-stop mode.  If reporting a software breakpoint event,
13153         unadjust the LWP's PC.
13154         * linux-nat.h (enum lwp_stop_reason): New.
13155         (struct lwp_info) <stop_pc>: New field.
13156         (struct lwp_info) <stopped_by_watchpoint>: Delete field.
13157         (struct lwp_info) <stop_reason>: New field.
13158         * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
13159
13160 2015-01-09  Pedro Alves  <palves@redhat.com>
13161
13162         * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
13163         Set the LWP's 'resumed' flag.
13164
13165 2015-01-09  Pedro Alves  <palves@redhat.com>
13166
13167         * linux-nat.c (linux_resume_one_lwp): New function.
13168         (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
13169         (linux_nat_resume): Use lwp_status_pending_p and
13170         linux_resume_one_lwp.
13171         (linux_handle_syscall_trap): Use linux_resume_one_lwp.
13172         (linux_handle_extended_wait): Use linux_resume_one_lwp.
13173         (status_callback, running_callback): Use lwp_status_pending_p.
13174         (lwp_status_pending_p): New function.
13175         (stop_and_resume_callback): Use lwp_status_pending_p.
13176         (linux_nat_filter_event): Use linux_resume_one_lwp.
13177         (linux_nat_wait_1): Always use status_callback to look for an LWP
13178         with a pending status.  Use linux_resume_one_lwp.
13179         (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
13180         linux_resume_one_lwp.
13181
13182 2015-01-09  Pedro Alves  <palves@redhat.com>
13183
13184         * breakpoint.c (bp_location_inserted_here_p): New function,
13185         factored out from ...
13186         (breakpoint_inserted_here_p): ... here.  Use
13187         ALL_BP_LOCATIONS_AT_ADDR.
13188         (software_breakpoint_inserted_here_p): Use
13189         bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
13190
13191 2014-01-09  Pedro Alves  <palves@redhat.com>
13192
13193         Skip enabling event reporting if the kernel supports
13194         PTRACE_EVENT_CLONE.
13195         * linux-thread-db.c: Include "nat/linux-ptrace.h".
13196         (thread_db_use_events): New function.
13197         (try_thread_db_load_1): Check thread_db_use_events before enabling
13198         event reporting.
13199         (update_thread_state): New function.
13200         (attach_thread): Use it.  Check thread_db_use_events before
13201         enabling event reporting.
13202         (thread_db_detach): Check thread_db_use_events before disabling
13203         event reporting.
13204         (find_new_threads_callback): Check thread_db_use_events before
13205         enabling event reporting.  Update the thread's state if not using
13206         libthread_db events.
13207
13208 2015-01-09  Pedro Alves  <palves@redhat.com>
13209
13210         * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
13211         about to wait for is > 0.
13212         * linux-thread-db.c (find_new_threads_callback): Ignore thread if
13213         the kernel thread ID is -1.
13214
13215 2015-01-09  Pedro Alves  <palves@redhat.com>
13216
13217         * linux-nat.c (attach_proc_task_lwp_callback): New function.
13218         (linux_nat_attach): Use linux_proc_attach_tgid_threads.
13219         (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
13220         ptrace option flags.
13221         * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
13222         field.
13223         * nat/linux-procfs.c: Include <dirent.h>.
13224         (linux_proc_get_int): New parameter "warn".  Handle it.
13225         (linux_proc_get_tgid): Adjust.
13226         (linux_proc_get_tracerpid): Rename to ...
13227         (linux_proc_get_tracerpid_nowarn): ... this.
13228         (linux_proc_pid_get_state): New function, factored out from
13229         (linux_proc_pid_has_state): ... this.  Add new parameter "warn"
13230         and handle it.
13231         (linux_proc_pid_is_gone): New function.
13232         (linux_proc_pid_is_stopped): Adjust.
13233         (linux_proc_pid_is_zombie_maybe_warn)
13234         (linux_proc_pid_is_zombie_nowarn): New functions.
13235         (linux_proc_pid_is_zombie): Use
13236         linux_proc_pid_is_zombie_maybe_warn.
13237         (linux_proc_attach_tgid_threads): New function.
13238         * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
13239         (linux_proc_get_tracerpid): Rename to ...
13240         (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
13241         (linux_proc_pid_is_gone): New declaration.
13242         (linux_proc_pid_is_zombie): Update comment.
13243         (linux_proc_pid_is_zombie_nowarn): New declaration.
13244         (linux_proc_attach_lwp_func): New typedef.
13245         (linux_proc_attach_tgid_threads): New declaration.
13246         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
13247         use nowarn functions.
13248         (linux_ptrace_attach_fail_reason_string): Move here from
13249         gdbserver/linux-low.c and rename.
13250         (ptrace_supports_feature): If the current ptrace options are not
13251         known yet, check them now, instead of asserting.
13252         * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
13253         Declare.
13254
13255 2015-01-09  Pedro Alves  <palves@redhat.com>
13256
13257         * linux-thread-db.c (thread_db_find_new_threads_silently)
13258         (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
13259         (find_new_threads_once): Print debug output on gdb_stdlog.
13260
13261 2015-01-09  Chen Gang  <gang.chen.5i5j@gmail.com>
13262             Pedro Alves  <palves@redhat.com>
13263
13264         * compile/compile.c: Include "gdb_wait.h".
13265         (do_rmdir): Check return value, and free 'zap'.
13266
13267 2015-01-08  Pedro Alves  <palves@redhat.com>
13268             Yao Qi  <yao@codesourcery.com>
13269
13270         * dwarf2loc.c (indirect_pieced_value): Don't call
13271         gdb_sign_extend.  Call extract_signed_integer instead.
13272         * utils.c (gdb_sign_extend): Remove.
13273         * utils.h (gdb_sign_extend): Remove declaration.
13274
13275 2015-01-07  Pierre Muller  <muller@sourceware.org>
13276
13277         PR symtab/17811
13278         * stabsread.c (define_symbol): Set language for C++ special symbols.
13279
13280 2015-01-07  Patrick Palka  <patrick@parcs.ath.cx>
13281
13282         * inflow.c (initial_gdb_ttystate): Tweak comment.
13283
13284 2015-01-07  Joel Brobecker  <brobecker@adacore.com>
13285
13286         * inflow.c (set_initial_gdb_ttystate): Add empty line after
13287         comment documenting function.
13288
13289 2015-01-07  Patrick Palka  <patrick@parcs.ath.cx>
13290
13291         * terminal.h (set_initial_gdb_ttystate): Declare.
13292         * inflow.c (initial_gdb_ttystate): New static variable.
13293         (set_initial_gdb_ttystate): New setter.
13294         (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
13295         instead of our current terminal state.
13296         * top.c (gdb_init): Call set_initial_gdb_ttystate.
13297
13298 2015-01-07  Joel Brobecker  <brobecker@adacore.com>
13299
13300         * guile/scm-type.c (tyscm_array_1): Add comment.
13301         * python/py-type.c (typy_array_1): Add comment.
13302
13303 2015-01-06  Joel Brobecker  <brobecker@adacore.com>
13304
13305         * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
13306         error if N2 is equal to N1 - 1.
13307
13308 2015-01-06  Joel Brobecker  <brobecker@adacore.com>
13309
13310         * python/py-type.c (typy_array_1): Do not raise negative-length
13311         exception if N2 is equal to N1 - 1.
13312
13313 2015-01-03  Doug Evans  <xdje42@gmail.com>
13314
13315         * c-exp.y: Whitespace cleanup.
13316         (classify_inner_name): Remove extra ;.
13317
13318 2015-01-02  Maciej W. Rozycki  <macro@codesourcery.com>
13319
13320         * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
13321         offset signed.
13322
13323 2015-01-02  Doug Evans  <dje@google.com>
13324
13325         * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
13326
13327 2015-01-02  Doug Evans  <dje@google.com>
13328
13329         * symtab.h (struct symbol): Fix typo in comment.
13330
13331 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
13332
13333         Update year range in copyright notice of all files.
13334
13335 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
13336
13337         * top.c (print_gdb_version): Update copyright year to 2015.
13338
13339 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
13340
13341         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
13342
13343 For older changes see ChangeLog-2014.
13344 \f
13345 Local Variables:
13346 mode: change-log
13347 left-margin: 8
13348 fill-column: 74
13349 version-control: never
13350 coding: utf-8
13351 End: