Fix follow_exec latent problem
[external/binutils.git] / gdb / ChangeLog
1 2018-11-22  Pedro Alves  <palves@redhat.com>
2
3         * infrun.c (follow_exec) <set follow-exec new>: Add thread and
4         switch to it before calling into try_open_exec_file.
5
6 2018-11-22  Pedro Alves  <palves@redhat.com>
7
8         * cli/cli-interp.c (cli_on_user_selected_context_changed): Use
9         inferior_thread instead of find_thread_ptid, and only when
10         inferior_ptid is not null_ptid.
11         * inferior.c (add_inferior): Don't include target_pid_to_str
12         output when the inferior is not started.
13         * python/py-inferior.c (python_on_normal_stop): Don't use
14         find_thread_ptid.
15         (tui_on_user_selected_context_changed): Use inferior_thread
16         instead of find_thread_ptid, and only when inferior_ptid is not
17         null_ptid.
18
19 2018-11-21  Benno Fünfstück  <benno.fuenfstueck@gmail.com>
20
21         PR python/23714
22         * gdb/python/python.c (execute_gdb_command): Call
23         prevent_dont_repeat earlier to avoid affecting dont_repeat.
24
25 2018-11-21  Andrew Burgess  <andrew.burgess@embecosm.com>
26
27         * Makefile.in (ALL_TARGET_OBS): Add arch/riscv.o.
28         (HFILES_NO_SRCDIR): Add arch/riscv.h.
29         * arch/riscv.c: New file.
30         * arch/riscv.h: New file.
31         * configure.tgt: Add cpu_obs list of riscv, move riscv-tdep.o into
32         this list, and add arch/riscv.o.
33         * features/Makefile: Add riscv features.
34         * features/riscv/32bit-cpu.c: New file.
35         * features/riscv/32bit-cpu.xml: New file.
36         * features/riscv/32bit-csr.c: New file.
37         * features/riscv/32bit-csr.xml: New file.
38         * features/riscv/32bit-fpu.c: New file.
39         * features/riscv/32bit-fpu.xml: New file.
40         * features/riscv/64bit-cpu.c: New file.
41         * features/riscv/64bit-cpu.xml: New file.
42         * features/riscv/64bit-csr.c: New file.
43         * features/riscv/64bit-csr.xml: New file.
44         * features/riscv/64bit-fpu.c: New file.
45         * features/riscv/64bit-fpu.xml: New file.
46         * features/riscv/rebuild-csr-xml.sh: New file.
47         * riscv-tdep.c: Add 'arch/riscv.h' include.
48         (riscv_gdb_reg_names): Delete.
49         (csr_reggroup): New global.
50         (struct riscv_register_alias): Delete.
51         (struct riscv_register_feature): New structure.
52         (riscv_register_aliases): Delete.
53         (riscv_xreg_feature): New global.
54         (riscv_freg_feature): New global.
55         (riscv_virtual_feature): New global.
56         (riscv_csr_feature): New global.
57         (riscv_create_csr_aliases): New function.
58         (riscv_read_misa_reg): Delete.
59         (riscv_has_feature): Delete.
60         (riscv_isa_xlen): Simplify, just return cached xlen.
61         (riscv_isa_flen): Simplify, just return cached flen.
62         (riscv_has_fp_abi): Update for changes in struct gdbarch_tdep.
63         (riscv_register_name): Update to make use of tdesc_register_name.
64         Look up xreg and freg names in the new globals riscv_xreg_feature
65         and riscv_freg_feature.  Don't supply csr aliases here.
66         (riscv_fpreg_q_type): Delete.
67         (riscv_register_type): Use tdesc_register_type in almost all
68         cases, override the returned type in a few specific cases only.
69         (riscv_print_one_register_info): Handle errors reading registers.
70         (riscv_register_reggroup_p): Use tdesc_register_in_reggroup_p for
71         registers that are otherwise unknown to GDB.  Also check the
72         csr_reggroup.
73         (riscv_print_registers_info): Remove assert about upper register
74         number, and use gdbarch_register_reggroup_p instead of
75         short-cutting.
76         (riscv_find_default_target_description): New function.
77         (riscv_check_tdesc_feature): New function.
78         (riscv_add_reggroups): New function.
79         (riscv_setup_register_aliases): New function.
80         (riscv_init_reggroups): New function.
81         (_initialize_riscv_tdep): Add calls to setup CSR aliases, and
82         setup register groups.  Register new riscv debug variable.
83         * riscv-tdep.h: Add 'arch/riscv.h' include.
84         (struct gdbarch_tdep): Remove abi union, and add
85         riscv_gdbarch_features field.  Remove cached quad floating point
86         type, and provide initialisation for double type field.
87         * target-descriptions.c (maint_print_c_tdesc_cmd): Add riscv to
88         the list of targets using the feature based target descriptions.
89         * NEWS: Mention target description support.
90
91 2018-11-21  Pedro Alves  <palves@redhat.com>
92
93         * valops.c (find_method_list, value_find_oload_method_list)
94         (find_overload_match, find_oload_champ): Rename parameters and
95         locals.
96
97 2018-11-21  Pedro Alves  <palves@redhat.com>
98
99         * valops.c (find_method_list): Replace pointer and length
100         parameters with an gdb::array_view.  Adjust.
101         (value_find_oload_method_list): Likewise.
102         (find_overload_match): Use gdb::array_view for methods list.
103         Adjust to find_oload_champ interface change.
104         (find_oload_champ): 'xm_worker_vec' parameter now a pointer/array.
105         'num_fns' parameter now a size_t.  Eliminate 'fn_count' local.
106
107 2018-11-21  Pedro Alves  <palves@redhat.com>
108
109         * gdbtypes.c (compare_badness): Change type of parameters to const
110         reference.  Adjust to badness_vector being a std::vector now.
111         (rank_function): Adjust to badness_vector being a std::vector now.
112         * gdbtypes.h (badness_vector): Now a typedef to std::vector.
113         (LENGTH_MATCH): Delete.
114         (compare_badness): Change type of parameters to const reference.
115         (rank_function): Return a badness_vector by value now.
116         (find_overload_match): Adjust to badness_vector being a
117         std::vector now.  Remove cleanups.
118         (find_oload_champ_namespace): 'oload_champ_bv' parameter now a
119         badness_vector pointer.
120         (find_oload_champ_namespace_loop): 'oload_champ_bv' parameter now
121         a badness_vector pointer.  Adjust to badness_vector being a
122         std::vector now.  Remove cleanups.
123         (find_oload_champ): 'oload_champ_bv' parameter now
124         a badness_vector pointer.  Adjust to badness_vector being a
125         std::vector now.  Remove cleanups.
126
127 2018-11-21  Pedro Alves  <palves@redhat.com>
128
129         * cp-support.c (sym_return_val_size, sym_return_val_index)
130         (sym_return_val): Delete.
131         (overload_list_add_symbol): Add std::vector parameter.  Adjust to
132         add to the vector.
133         (make_symbol_overload_list): Adjust to return a std::vector
134         instead of maintaining a global open coded vector.
135         (make_symbol_overload_list_block): Add std::vector parameter.
136         (make_symbol_overload_list_block): Rename to ...
137         (add_symbol_overload_list_block): ... this and add std::vector
138         parameter.
139         (make_symbol_overload_list_namespace): Rename to ...
140         (add_symbol_overload_list_namespace): ... this and add std::vector
141         parameter.
142         (make_symbol_overload_list_adl_namespace): Rename to ...
143         (add_symbol_overload_list_adl_namespace): ... this and add
144         std::vector parameter.
145         (make_symbol_overload_list_adl): Delete.
146         (add_symbol_overload_list_adl): New.
147         (make_symbol_overload_list_using): Rename to ...
148         (add_symbol_overload_list_using): ... this and add std::vector
149         parameter.
150         (make_symbol_overload_list_qualified): Rename to ...
151         (add_symbol_overload_list_qualified): ... this and add std::vector
152         parameter.
153         * cp-support.h: Include "common/array-view.h" and <vector>.
154         (make_symbol_overload_list): Change return type to std::vector.
155         (make_symbol_overload_list_adl): Delete declaration.
156         (add_symbol_overload_list_adl): New declaration.
157         * valops.c (find_overload_match): Local 'oload_syms' now a
158         std::vector.
159         (find_oload_champ_namespace): 'oload_syms' parameter now a
160         std::vector pointer.
161         (find_oload_champ_namespace_loop): 'oload_syms' parameter now a
162         std::vector pointer.  Adjust to new make_symbol_overload_list
163         interface.
164
165 2018-11-21  Pedro Alves  <palves@redhat.com>
166
167         * common/array-view.h (array_view::splice(size_type, size_t)): New.
168         (array_view::splice(size_type)): New.
169         * eval.c (eval_call, evaluate_funcall): Adjust to use array_view.
170         * extension.c (xmethod_worker::get_arg_types): Adjust to return an
171         std::vector.
172         (xmethod_worker::get_result_type): Adjust to use gdb::array_view.
173         * extension.h: Include "common/array-view.h".
174         (xmethod_worker::invoke): Adjust to use gdb::array_view.
175         (xmethod_worker::get_arg_types): Adjust to return an std::vector.
176         (xmethod_worker::get_result_type): Adjust to use gdb::array_view.
177         (xmethod_worker::do_get_arg_types): Adjust to use std::vector.
178         (xmethod_worker::do_get_result_type): Adjust to use
179         gdb::array_view.
180         * gdbtypes.c (rank_function): Adjust to use gdb::array_view.
181         * gdbtypes.h: Include "common/array-view.h".
182         (rank_function): Adjust to use gdb::array_view.
183         * python/py-xmethods.c (python_xmethod_worker::invoke)
184         (python_xmethod_worker::do_get_arg_types)
185         (python_xmethod_worker::do_get_result_type)
186         (python_xmethod_worker::invoke): Adjust to new interfaces.
187         * valarith.c (value_user_defined_cpp_op, value_user_defined_op)
188         (value_x_binop, value_x_unop): Adjust to use gdb::array_view.
189         * valops.c (find_overload_match, find_oload_champ_namespace)
190         (find_oload_champ_namespace_loop, find_oload_champ): Adjust to use
191         gdb:array_view and the new xmethod_worker interfaces.
192         * value.c (result_type_of_xmethod, call_xmethod): Adjust to use
193         gdb::array_view.
194         * value.h (find_overload_match, result_type_of_xmethod)
195         (call_xmethod): Adjust to use gdb::array_view.
196         * unittests/array-view-selftests.c: Add slicing tests.
197
198 2018-11-21  Pedro Alves  <palves@redhat.com>
199
200         * ada-lang.c (ada_evaluate_subexp): Adjust to pass an array_view.
201         * common/array-view.h (make_array_view): New.
202         * compile/compile-object-run.c (compile_object_run): Adjust to
203         pass an array_view.
204         * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust.
205         * eval.c (eval_call): Adjust to pass an array_view.
206         (evaluate_subexp_standard): Adjust to pass an array_view.
207         * gcore.c (call_target_sbrk): Adjust to pass an array_view.
208         * guile/scm-value.c (gdbscm_value_call): Likewise.
209         * infcall.c (push_dummy_code): Replace pointer + size parameters
210         with an array_view parameter.
211         (call_function_by_hand, call_function_by_hand_dummy): Likewise and
212         adjust.
213         * infcall.h: Include "common/array-view.h".
214         (call_function_by_hand, call_function_by_hand_dummy): Replace
215         pointer + size parameters with an array_view parameter.
216         * linux-fork.c (inferior_call_waitpid): Adjust to use array_view.
217         * linux-tdep.c (linux_infcall_mmap): Likewise.
218         * objc-lang.c (lookup_objc_class, lookup_child_selector)
219         (value_nsstring, print_object_command): Likewise.
220         * python/py-value.c (valpy_call): Likewise.
221         * rust-lang.c (rust_evaluate_funcall): Likewise.
222         * spu-tdep.c (flush_ea_cache): Likewise.
223         * valarith.c (value_x_binop, value_x_unop): Likewise.
224         * valops.c (value_allocate_space_in_inferior): Likewise.
225         * unittests/array-view-selftests.c (run_tests): Add
226         gdb::make_array_view test.
227
228 2018-11-20  Andrew Burgess  <andrew.burgess@embecosm.com>
229
230         * cli-out.c (cli_ui_out::do_field_int): Use string_printf rather
231         than a fixed size buffer.
232
233 2018-11-20  Andrew Burgess  <andrew.burgess@embecosm.com>
234
235         * breakpoint.c (print_one_breakpoint_location): Reduce whitespace,
236         and remove insertion of extra spaces in GDB's output.
237         * cli-out.c (cli_ui_out::do_field_fmt): Update header comment.
238         Layout field into a temporary buffer, and then output it as a
239         string field.
240
241 2018-11-20  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
242
243         * NEWS: Document the language choice done by
244         'info [types|functions|variables]|rbreak'.
245
246 2018-11-20  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
247
248         * symtab.c (treg_matches_sym_type_name): Use
249         scoped_switch_to_sym_language_if_auto instead of local logic.
250         (print_symbol_info): Use scoped_switch_to_sym_language_if_auto
251         to switch to SYM language when language mode is auto.
252
253 2018-11-20  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
254
255         * language.h (scoped_switch_to_sym_language_if_auto): New class.
256
257 2018-11-20  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
258
259         * symtab.c (search_symbols): Properly check absence of type regexp
260         before entering the loop scanning the minimal symbols.
261
262 2018-11-20  John Darrington  <john@darrington.wattle.id.au>
263
264         * s12z-tdep.c (s12z_extract_return_value): New function.
265         (inv_reg_perm) New array.
266         (s12z_return_value): Populate readbuf if non-null.
267
268 2018-11-20  Eli Zaretskii  <eliz@gnu.org>
269
270         * common/filestuff.c (gdb_fopen_cloexec): Disable use of "e" mode
271         with 'fopen' also if O_CLOEXEC is equal to O_NOINHERIT, to cater
272         to MinGW fixed by Gnulib.
273         (O_NOINHERIT): Define if not defined.
274
275 2018-11-19  John Darrington  <john@darrington.wattle.id.au>
276
277         * s12z-tdep.c (s12z_frame_cache): Add an assertion.
278
279 2018-11-19  Simon Marchi  <simon.marchi@polymtl.ca>
280
281         * infrun.c (displaced_step_inferior_state) <next>: Remove.
282
283 2018-11-19  Tom Tromey  <tom@tromey.com>
284
285         * source.c (get_filename_and_charpos): Return void.
286
287 2018-11-19  Simon Marchi  <simon.marchi@polymtl.ca>
288
289         * skip.c (_initialize_step_skip): Fix "info skip" help.
290
291 2018-11-16  Tom Tromey  <tom@tromey.com>
292
293         PR rust/23625:
294         * rust-lang.c (rust_internal_print_type): Handle TYPE_CODE_PTR.
295
296 2018-11-19  Simon Marchi  <simon.marchi@ericsson.com>
297
298         * infrun.c (displaced_step_inferior_states): Change type to
299         std::forward_list.
300         (get_displaced_stepping_state): Adjust.
301         (displaced_step_in_progress_any_inferior): Adjust.
302         (add_displaced_stepping_state): Adjust.
303         (remove_displaced_stepping_state): Adjust.
304
305 2018-11-18  Tom Tromey  <tom@tromey.com>
306
307         PR build/23814:
308         * target-delegates.c: Rebuild.
309         * ia64-linux-nat.c (class ia64_linux_nat_target)
310         <have_steppable_watchpoint>: Use override.  Return true, not 1.
311         (ia64_linux_nat_target::can_use_hw_breakpoint): Rename.  Remove
312         "self" argument.
313         (ia64_linux_nat_target::low_new_thread): Rename.
314         (class ia64_linux_nat_target) <read_description>: Don't declare.
315         * target.h (struct target_ops) <have_steppable_watchpoint>: Return
316         bool.
317
318 2018-11-16  Alan Hayward  <alan.hayward@arm.com>
319
320         PR gdb/22736:
321         * aarch64-tdep.c (aarch64_push_dummy_call): Remove
322         lang_struct_return code.
323
324 2018-11-16  Alan Hayward  <alan.hayward@arm.com>
325
326         * aarch64-tdep.c (aarch64_push_dummy_call): Replace arg with
327         return_method.
328         * alpha-tdep.c (alpha_push_dummy_call): Likewise.
329         * amd64-tdep.c (amd64_push_arguments): Likewise.
330         (amd64_push_dummy_call): Likewise.
331         * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
332         * arc-tdep.c (arc_push_dummy_call): Likewise.
333         * arm-tdep.c (arm_push_dummy_call): Likewise.
334         * avr-tdep.c (avr_push_dummy_call): Likewise.
335         * bfin-tdep.c (bfin_push_dummy_call): Likewise.
336         * cris-tdep.c (cris_push_dummy_call): Likewise.
337         * csky-tdep.c (csky_push_dummy_call): Likewise.
338         * frv-tdep.c (frv_push_dummy_call): Likewise.
339         * gdbarch.c: Regenerate.
340         * gdbarch.h: Regenerate.
341         * gdbarch.sh (gdbarch_push_dummy_call): Replace arg with
342         return_method.
343         * h8300-tdep.c (h8300_push_dummy_call): Likewise.
344         * hppa-tdep.c (hppa32_push_dummy_call): Likewise.
345         (hppa64_push_dummy_call): Likewise.
346         * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
347         * i386-tdep.c (i386_push_dummy_call): Likewise.
348         * ia64-tdep.c (ia64_push_dummy_call): Likewise.
349         * infcall.c (call_function_by_hand_dummy): Likewise.
350         * iq2000-tdep.c (iq2000_push_dummy_call): Likewise.
351         * lm32-tdep.c (lm32_push_dummy_call): Likewise.
352         * m32c-tdep.c (m32c_push_dummy_call): Likewise.
353         * m32r-tdep.c (m32r_push_dummy_call): Likewise.
354         * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
355         * m68k-tdep.c (m68k_push_dummy_call): Likewise.
356         * mep-tdep.c (mep_push_dummy_call): Likewise.
357         * mips-tdep.c (mips_eabi_push_dummy_call): Likewise.
358         (mips_n32n64_push_dummy_call): Likewise.
359         (mips_o32_push_dummy_call): Likewise.
360         (mips_o64_push_dummy_call): Likewise.
361         * mn10300-tdep.c (mn10300_push_dummy_call): Likewise.
362         * msp430-tdep.c (msp430_push_dummy_call): Likewise.
363         * nds32-tdep.c (nds32_push_dummy_call): Likewise.
364         * nios2-tdep.c (nios2_push_dummy_call): Likewise.
365         * or1k-tdep.c (or1k_push_dummy_call): Likewise.
366         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
367         (ppc64_sysv_abi_push_dummy_call): Likewise.
368         * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Likewise.
369         (ppc64_sysv_abi_push_dummy_call): Likewise.
370         * riscv-tdep.c (riscv_push_dummy_call): Likewise.
371         * rl78-tdep.c (rl78_push_dummy_call): Likewise.
372         * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
373         * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
374         * rx-tdep.c (rx_push_dummy_call): Likewise.
375         * s390-tdep.c (s390_push_dummy_call): Likewise.
376         * score-tdep.c (score_push_dummy_call): Likewise.
377         * sh-tdep.c (sh_push_dummy_call_fpu): Likewise.
378         (sh_push_dummy_call_nofpu): Likewise.
379         * sparc-tdep.c (sparc32_store_arguments): Likewise.
380         (sparc32_push_dummy_call): Likewise.
381         * sparc64-tdep.c (sparc64_store_arguments): Likewise.
382         (sparc64_push_dummy_call): Likewise.
383         * spu-tdep.c (spu_push_dummy_call): Likewise.
384         * tic6x-tdep.c (tic6x_push_dummy_call): Likewise.
385         * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
386         * v850-tdep.c (v850_push_dummy_call): Likewise.
387         * vax-tdep.c (vax_push_dummy_call): Likewise.
388         * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
389         * xtensa-tdep.c (xtensa_push_dummy_call): Likewise.
390
391 2018-11-16  Alan Hayward  <alan.hayward@arm.com>
392
393         * gdbarch.sh (enum function_call_return_method): Add enum.
394         * gdbarch.h: Regenerate.
395         * infcall.c (call_function_by_hand_dummy): Replace vars with enum.
396
397 2018-11-15  Joel Brobecker  <brobecker@adacore.com>
398
399         * unittests/copy_bitwise-selftests.c: New file.
400         * utils.c (selftests::bits_to_str, selftests::check_copy_bitwise)
401         (selftests::copy_bitwise_tests): Delete, moving this code to
402         unittests/copy_bitwise-selftests.c instead.
403         (_initialize_utils): Do not register copy_bitwise tests.
404         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
405         unittests/copy_bitwise-selftests.c.
406
407 2018-11-14  Joel Brobecker  <brobecker@adacore.com>
408
409         * ada-lang.c (move_bits): Delete. Update all callers to use
410         copy_bitwise instead.
411         * dwarf2loc.c (copy_bitwise, bits_to_str::bits_to_str)
412         (selftests::check_copy_bitwise, selftests::copy_bitwise_tests):
413         Move from here to utils.c.
414         (_initialize_dwarf2loc): Remove call to register copy_bitwise
415         selftests.
416         * utils.h (copy_bitwise): Add declaration.
417         * utils.c (copy_bitwise, bits_to_str::bits_to_str)
418         (selftests::check_copy_bitwise, selftests::copy_bitwise_tests):
419         Moved here from dwarf2loc.c.
420         (_initialize_utils): Register copy_bitwise selftests.
421
422 2018-11-14  Jim Wilson  <jimw@sifive.com>
423
424         * riscv-tdep.c (struct riscv_arg_info): New field is_unnamed.
425         (riscv_call_arg_scalar_int): If unnamed arg with twice xlen alignment,
426         then increment next_regnum if odd.
427         (riscv_arg_location): New arg is_unnamed.  Set ainfo->is_unnamed.
428         (riscv_push_dummy_call): New local ftype.  Call check_typedef to set
429         function type.  Pass new arg to riscv_arg_location based on function
430         type.
431         (riscv_return_value): Pass new arg to riscv_arg_location.
432
433         * riscv-tdep.c (BIGGEST_ALIGNMENT): New.
434         (riscv_type_alignment) <TYPE_CODE_ARRAY>: If TYPE_VECTOR, return min
435         of TYPE_LENGTH and BIGGEST_ALIGNMENT.
436
437         * riscv-tdep.c (riscv_call_arg_scalar_int): Use std::min when
438         setting len.  New local align, set to max of arg align and xlen,
439         and pass to first riscv_assign_stack_location call.
440
441 2018-11-12  Simon Marchi  <simon.marchi@polymtl.ca>
442
443         * skip.c (complete_skip_number): New function.
444         (_initialize_step_skip): Add completers to some skip commands.
445
446 2018-11-09  Tom Tromey  <tom@tromey.com>
447
448         * remote.c (remote_g_packet_guess_s): Remove typedef and DEF_VEC.
449         (struct remote_g_packet_data): Derive from allocate_on_obstack.
450         <guesses>: Now a std::vector.
451         (remote_g_packet_data_init, register_remote_g_packet_guess):
452         Update.
453         (remote_read_description_p): Update.  Return bool.
454         (remote_target::read_description): Update.
455         (struct remote_g_packet_guess): Add constructor.
456
457 2018-11-09  Tom Tromey  <tom@tromey.com>
458
459         * common/scoped_fd.h (class scoped_fd): Add move constructor and
460         move assignment operator.
461         * psymtab.c (psymtab_to_fullname): Update.
462         * source.h (open_source_file): Return scoped_fd.
463         (find_and_open_source): Likewise.
464         * source.c (open_source_file): Return scoped_fd.
465         (get_filename_and_charpos): Update.
466         (print_source_lines_base): Update.  Use scoped_fd::to_file.
467         (forward_search_command): Likewise.
468         (reverse_search_command): Likewise.
469         (find_and_open_source): Return scoped_fd.
470         * tui/tui-source.c (tui_set_source_content): Update.  Use
471         gdb_file_up.
472
473 2018-11-09  John Baldwin  <jhb@FreeBSD.org>
474
475         * minsyms.c (minimal_symbol_reader::install): Fix unsigned
476         overflow.
477
478 2018-11-09  Hafiz Abid Qadeer  <abidh@codesourcery.com>
479
480         * configure: Regenerate.
481
482 2018-11-09  Tom de Vries  <tdevries@suse.de>
483
484         * symtab.c (symbol_set_names): Call symbol_find_demangled_name
485         unconditionally, to set the language of the symbol.  Manage freeing
486         returned pointer using gdb::unique_xmalloc_ptr.
487
488 2018-11-08  Tom Tromey  <tom@tromey.com>
489
490         * record.c (require_record_target): Upper-case "<TAB>".
491
492 2018-11-08  Tom Tromey  <tom@tromey.com>
493
494         * python/lib/gdb/command/pretty_printers.py
495         (InfoPrettyPrinter.invoke): Don't indent "objfile" heading.
496
497 2018-11-08  Tom Tromey  <tom@tromey.com>
498
499         PR gdb/23555:
500         PR gdb/23838:
501         * target.h (target_supports_terminal_ours): Return bool.
502         * target.c (target_supports_terminal_ours): Handle case where
503         current_top_target returns nullptr.  Return bool.
504
505 2018-11-08  Joel Brobecker  <brobecker@adacore.com>
506
507         * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1):
508         return the correct count for potential HFAs.
509
510 2018-11-08  Jan Beulich  <jbeulich@suse.com>
511
512         * i387-tdep.c (i387_supply_xsave): Split handling of
513         X86_XSTATE_ZMM_H and X86_XSTATE_ZMM.
514         (i387_collect_xsave): Likewise.
515
516 2018-11-08  Andrew Burgess  <andrew.burgess@embecosm.com>
517
518         * riscv-tdep.c (riscv_insn::decode): Update header comment.
519         (riscv_frame_this_id): Catch errors thrown while building the
520         frame cache, leave the frame id as the default, which is the outer
521         frame id.
522
523 2018-11-07  Joel Brobecker  <brobecker@adacore.com>
524
525         * ada-lang.c (read_atcb): Only set task_info->called_task if
526         task_info->state == Entry_Caller_Sleep.
527         (print_ada_task_info): Do not check task_info->state before
528         checking task_info->called_task.
529         (info_task): Likewise.
530
531 2018-11-07  Joel Brobecker  <brobecker@adacore.com>
532
533         * ada-tasks.c (read_atcb): Clear task_info before computing
534         the value of each of its fields.
535
536 2018-11-07  Andrew Burgess  <andrew.burgess@embecosm.com>
537
538         * dwarf2read.c (dwarf2_init_integer_type): Check for name being
539         NULL before dereferencing it.
540
541 2018-11-06  Tom de Vries  <tdevries@suse.de>
542
543         * linux-tdep.c (linux_vsyscall_range_raw): Use xmalloc to allocate
544         program headers.
545
546 2018-11-06  Max Filippov  <jcmvbkbc@gmail.com>
547
548         * configure.tgt (xtensa*-*-linux*): Change to xtensa*-*-*linux*
549         so that it applies to uclinux as well.
550
551 2018-11-06  Marius Muench  <marius.muench@eurecom.fr>
552
553         * arm-tdep.c (arm_scan_prologue): Don't dereference FP reg
554         when on AAPCS.
555
556 2018-11-06  John Baldwin  <jhb@FreeBSD.org>
557
558         * riscv-fbsd-nat.c (getregs_supplies): Return true for
559         RISCV_CSR_SSTATUS_REGNUM.
560
561 2018-11-04  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
562
563         * source.c (open_source_file): Fix leak by transferring the
564         current s->fullname to the unique_xmalloc_ptr fullname given
565         to find_and_open_source.
566
567 2018-11-04  Tom Tromey  <tom@tromey.com>
568
569         * varobj.c (install_default_visualizer): Update.
570         * python/python-internal.h (gdbpy_get_varobj_pretty_printer):
571         Return gdbpy_ref.
572         * python/py-prettyprint.c (search_pp_list): Return gdbpy_ref.
573         (find_pretty_printer_from_progspace)
574         (find_pretty_printer_from_gdb, find_pretty_printer)
575         (gdbpy_get_varobj_pretty_printer): Return gdbpy_ref.
576         (gdbpy_get_varobj_pretty_printer, gdbpy_default_visualizer):
577         Update.
578
579 2018-11-04  Tom Tromey  <tom@tromey.com>
580
581         * python/python.c (gdbpy_parameter_value): Update.
582         * python/python-internal.h (python_string_to_unicode)
583         (python_string_to_target_python_string)
584         (host_string_to_python_string): Return gdbpy_ref.
585         * python/py-utils.c (python_string_to_unicode)
586         (unicode_to_encoded_python_string)
587         (unicode_to_target_python_string)
588         (python_string_to_target_string)
589         (python_string_to_target_python_string): Return gdbpy_ref.
590         (python_string_to_host_string): Update.
591         (host_string_to_python_string): Return gdbpy_ref.
592         * python/py-symtab.c (stpy_get_filename, stpy_get_producer)
593         (stpy_fullname): Update.
594         * python/py-progspace.c (pspy_get_filename, pspy_solib_name):
595         Update.
596         * python/py-prettyprint.c (print_string_repr): Update.
597         * python/py-objfile.c (objfpy_get_filename, objfpy_get_username)
598         (objfpy_get_build_id): Update.
599         * python/py-breakpoint.c (bppy_get_location)
600         (bppy_get_expression, bppy_get_condition, bppy_get_commands):
601         Update.
602
603 2018-11-04  Tom Tromey  <tom@tromey.com>
604
605         * python/python-internal.h (gdb_py_object_from_longest)
606         (gdb_py_object_from_ulongest): Return gdbpy_ref.
607         * python/py-value.c (valpy_int): Update.
608         * python/py-utils.c (gdb_py_object_from_longest): Return
609         gdbpy_ref.
610         (gdb_py_object_from_ulongest): Likewise.
611         * python/py-type.c (typy_get_alignof): Update.
612         * python/py-linetable.c (ltpy_get_all_source_lines)
613         (ltpy_entry_get_line, ltpy_entry_get_pc): Update.
614         * python/py-block.c (blpy_get_start, blpy_get_end): Update.
615
616 2018-11-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
617
618         * ada-lang.c (_initialize_ada_language): Fix typo.
619
620 2018-11-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
621
622         * language.c (type): Remove.
623         (_initialize_language): Remove assignment to type.
624
625 2018-11-02  Joel Brobecker  <brobecker@adacore.com>
626
627         * aarch64-ravenscar-thread.h, aarch64-ravenscar-thread.c: New files.
628         * aarch64-tdep.c: #include "aarch64-ravenscar-thread.h".
629         (aarch64_gdbarch_init): Add call to register_aarch64_ravenscar_ops.
630         * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-ravenscar-thread.o.
631         (HFILES_NO_SRCDIR): Add aarch64-ravenscar-thread.h.
632         (ALLDEPFILES): Add aarch64-ravenscar-thread.c.
633         * configure.tgt (cpu_obs) [aarch64*-*-*]: Add ravenscar-thread.o
634         and aarch64-ravenscar-thread.o.
635         * NEWS: Add entry documenting Ravenscar tasking support
636         on AArch64 ELF.
637
638 2018-11-02  Matthew Malcomson  <matthew.malcomson@arm.com>
639
640         * symtab.c (info_functions_command): Initialize quiet flag.
641         * stack.c (info_args_command): Likewise.
642
643 2018-11-01  Jim Wilson  <jimw@sifive.com>
644
645         * riscv-tdep.c (riscv_breakpoint_kind_from_pc): New local unaligned_p.
646         Set if pcptr if unaligned.  Return 2 if unaligned_p true.  Update
647         debugging messages.
648
649 2018-11-01  Joel Brobecker  <brobecker@adacore.com>
650
651         * ada-lang.c (ada_watch_location_expression): New function.
652         (ada_language_defn): Set la_watch_location_expression to
653         ada_watch_location_expression.
654
655 2018-11-01  Joel Brobecker  <brobecker@adacore.com>
656
657         * print-utils.c (int_string): Remove unnecessary trailing spaces.
658
659 2018-11-01  Joel Brobecker  <brobecker@adacore.com>
660
661         * rs6000-tdep.c (skip_prologue): Fix potential negative left
662         shifting.
663
664 2018-11-01  Jerome Guitton  <guitton@adacore.com>
665             Joel Brobecker  <brobecker@adacore.com>
666
667         * defs.h (enum gdb_osabi): Add GDB_OSABI_PIKEOS.
668         * osabi.c (gdb_osabi_names): Add name for GDB_OSABI_PIKEOS.
669         * arm-pikeos-tdep.c: New file.
670         * configure.tgt: Add arm-pikeos-tdep.o to the case of ARM
671         embedded system.
672         * Makefile.in (ALL_TARGET_OBS): Add arm-pikeos-tdep.o.
673
674 2018-11-01  Simon Marchi  <simon.marchi@ericsson.com>
675
676         * common/pathstuff.c (get_standard_temp_dir): New.
677         * common/pathstuff.h (get_standard_temp_dir): New.
678         * config.in: Re-generate.
679         * configure: Re-generate.
680         * configure.ac: Don't check for mkdtemp.
681         * gnulib/aclocal-m4-deps.mk: Re-generate.
682         * gnulib/aclocal.m4: Re-generate.
683         * gnulib/config.in: Re-generate.
684         * gnulib/configure: Re-generate.
685         * gnulib/import/Makefile.am: Re-generate.
686         * gnulib/import/Makefile.in: Re-generate.
687         * gnulib/import/m4/gnulib-cache.m4: Re-generate.
688         * gnulib/import/m4/gnulib-comp.m4: Re-generate.
689         * gnulib/import/m4/mkdtemp.m4: New file.
690         * gnulib/import/mkdtemp.c: New file.
691         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES):
692         Add mkdtemp module.
693         * unittests/mkdir-recursive-selftests.c (test): Use
694         get_standard_temp_dir.
695         (_initialize_mkdir_recursive_selftests): Remove HAVE_MKDTEMP
696         ifdef.
697         * compile/compile.c (get_compile_file_tempdir): Likewise.
698
699 2018-11-01  Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
700
701         * rs6000-aix-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
702         (SIG_FRAME_LR_OFFSET64): New define.
703         (SIG_FRAME_FP_OFFSET64): New define.
704         (aix_sighandle_frame_cache): New Function.
705         (aix_sighandle_frame_this_id): New Function.
706         (aix_sighandle_frame_prev_register): New Function.
707         (aix_sighandle_frame_sniffer): New Function.
708         (aix_sighandle_frame_unwind): New global variable.
709         (rs6000_aix_init_osabi): Install new frame unwinder.
710
711 2018-10-31  Sergio Durigan Junior  <sergiodj@redhat.com>
712
713         PR gdb/23835
714         * common/common-defs.h: Don't redefine _FORTIFY_SOURCE if it's
715         already defined.
716
717 2018-10-31  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
718
719         * ppc-linux-nat.c: Include nat/linux-ptrace.h.
720
721 2018-10-31  Andrew Burgess  <andrew.burgess@embecosm.com>
722
723         * dwarf2read.c (struct dwarf2_cu): Add producer_is_icc field.
724         (producer_is_icc): New function.
725         (check_producer): Set producer_is_icc field on dwarf2_cu.
726         (dwarf2_init_integer_type): New function.
727         (read_base_type): Call dwarf2_init_integer_type instead of
728         init_integer_type in all cases.
729         (dwarf2_cu::dwarf2_cu): Initialise producer_is_icc field.
730         * valprint.c (maybe_negate_by_bytes): Add an assertion that the
731         LEN is greater than 0.
732
733 2018-10-30  Tom Tromey  <tom@tromey.com>
734
735         * main.c (captured_main_1): Check return value of bfd_init.
736
737 2018-10-29  Sergio Durigan Junior  <sergiodj@redhat.com>
738
739         * common/offset-type.h (DEFINE_OFFSET_REL_OP): Delete.
740         Adjust comments.
741
742 2018-10-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
743
744         * procfs.c: Include common/pathstuff.h.
745
746 2018-10-28  Andrew Burgess  <andrew.burgess@embecosm.com>
747
748         * riscv-linux-nat.c (riscv_linux_nat_target::fetch_registers):
749         Add missing braces.  No functional change.
750
751 2018-10-27  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
752
753         * macrocmd.c (info_macro_command): Use report_unrecognized_option_error
754         to report a bad option and fix indentation.
755         * demangle.c (demangle_command): Use report_unrecognized_option_error
756         to report a bad option and correctly report the bad option.
757
758 2018-10-27  Tom Tromey  <tom@tromey.com>
759
760         PR cli/23364:
761         * darwin-nat.c (copied_shell): New global.
762         (may_have_sip): Rename from should_disable_startup_with_shell.
763         (copy_shell_to_cache, maybe_cache_shell): New functions.
764         (darwin_nat_target::create_inferior): Update.  Use
765         copied_shell.
766
767 2018-10-27  Tom Tromey  <tom@tromey.com>
768
769         * unittests/scoped_fd-selftests.c (test_to_file): New function.
770         (run_tests): Call test_to_file.
771         * dwarf-index-write.c (write_psymtabs_to_index): Do not reopen
772         temporary files.
773         * common/scoped_fd.h (scoped_fd::to_file): New method.
774
775 2018-10-27  Tom Tromey  <tom@tromey.com>
776
777         * unittests/scoped_mmap-selftests.c (test_normal): Use
778         gdb_mkostemp_cloexec.
779         * unittests/scoped_fd-selftests.c (test_destroy, test_release):
780         Use gdb_mkostemp_cloexec.
781         * gnulib/aclocal-m4-deps.mk, gnulib/aclocal.m4,
782         gnulib/config.in, gnulib/configure,
783         gnulib/import/Makefile.am, gnulib/import/Makefile.in,
784         gnulib/import/m4/gnulib-cache.m4,
785         gnulib/import/m4/gnulib-comp.m4: Update.
786         * gnulib/import/m4/mkostemp.m4: New file.
787         * gnulib/import/m4/mkstemp.m4: Remove.
788         * gnulib/import/mkostemp.c: New file.
789         * gnulib/import/mkstemp.m4: Remove.
790         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
791         mkstemp, add mkostemp.  Apply new patch.
792         * gnulib/import/stdlib.in.h: Apply patch.
793         * gnulib/patches/0002-mkostemp-mkostemps-Fix-compilation-error-in-C-mode-o.patch:
794         New file.
795         * dwarf-index-write.c (write_psymtabs_to_index): Use
796         gdb_mkostemp_cloexec.
797         * common/filestuff.h (gdb_mkostemp_cloexec): New function.
798
799 2018-10-27  Tom Tromey  <tom@tromey.com>
800
801         * unittests/mkdir-recursive-selftests.c: New file.
802         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
803         unittests/mkdir-recursive-selftests.c.
804         * dwarf-index-cache.c (mkdir_recursive): Move to
805         common/filestuff.c.
806         (index_cache::store): Check return value of mkdir_recursive.
807         (create_dir_and_check, test_mkdir_recursive): Move to new file.
808         (_initialize_index_cache): Don't register test.
809         * common/filestuff.h (mkdir_recursive): Declare.
810         * common/filestuff.c (mkdir_recursive): Move from
811         dwarf-index-cache.c.  Return bool.
812
813 2018-10-27  Tom Tromey  <tom@tromey.com>
814
815         * dwarf-index-write.c (write_psymtabs_to_index): Move
816         make_temp_filename to common/pathstuff.c.
817         * common/pathstuff.h (make_temp_filename): Declare.
818         * common/pathstuff.c (make_temp_filename): New function, moved
819         from dwarf-index-write.c.
820
821 2018-10-27  Tom Tromey  <tom@tromey.com>
822
823         * procfs.c (procfs_target::create_inferior): Use get_shell.
824         * cli/cli-cmds.c (shell_escape): Use get_shell.
825         * windows-nat.c (windows_nat_target::create_inferior): Use
826         get_shell.
827         * common/pathstuff.c (get_shell): New function.
828         * nat/fork-inferior.c (SHELL_FILE, get_startup_shell): Remove.
829         (fork_inferior): Use get_shell.
830         * common/pathstuff.h (get_shell): Declare.
831
832 2018-10-27  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
833
834         * NEWS: Mention changes to 'info [args|functions|locals|variables]'
835
836 2018-10-27  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
837
838         * stack.c (print_variable_and_value_data): Add preg and treg.
839         (print_frame_local_vars): Add quiet, regexp and t_regexp arguments,
840         and update callers.
841         (print_frame_arg_vars): Likewise.
842         (prepare_reg): New function.
843         (info_locals_command): Extract info print args and use them.
844         (info_args_command): Likewise.
845         (_initialize_stack): Modify on-line help.
846         * symtab.c (treg_matches_sym_type_name): New function.
847         (search_symbols): New arg t_regexp.
848         (symtab_symbol_info): New args quiet, regexp, t_regexp.
849         (info_variables_command): Extract info print args and use them.
850         (info_functions_command): Likewise.
851         (info_types_command): Update call to symtab_symbol_info.
852         (_initialize_symtab): Modify on-line help.
853         * symtab.h (treg_matches_sym_type_name): New function.
854         (search_symbols): New t_regexp arg.
855
856 2018-10-27  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
857
858         * cli-utils.c (extract_arg_maybe_quoted): New function.
859         (extract_info_print_args): New function.
860         (info_print_args_help): New function.
861         (report_unrecognized_option_error): New function.
862         * cli-utils.h (extract_arg_maybe_quoted): New function.
863         (extract_info_print_args): New function.
864         (info_print_args_help): New function.
865         (report_unrecognized_option_error): New function.
866
867 2018-10-26  Tom Tromey  <tom@tromey.com>
868
869         * dwarf2read.c (recursively_compute_inclusions): Use std::vector.
870         (compute_compunit_symtab_includes): Update.
871         * symtab.h: (symtab_ptr): Remove typedef.  Don't define a VEC.
872         (compunit_symtab_ptr): Likewise.
873
874 2018-10-26  John Baldwin  <jhb@FreeBSD.org>
875
876         * fbsd-tdep.c (fbsd_print_auxv_entry): Only use
877         default_print_auxv_entry for specific tag values.
878
879 2018-10-26  John Baldwin  <jhb@FreeBSD.org>
880
881         * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_HWCAP2.
882
883 2018-10-26  Jim Wilson  <jimw@sifive.com>
884
885         * riscv-linux-tdep.c: Include tramp-frame.h and trad-frame.h.
886         (riscv_linux_sigframe_init): Declare.
887         (RISCV_INST_LI_A7_SIGRETURN, RISCV_INT_ECALL): New.
888         (riscv_linux_sigframe): New.
889         (SIGFRAME_SIGINFO_SIZE, UCONTEXT_MCONTEXT_OFFSET): New.
890         (riscv_linux_sigframe_init): Define.
891         (riscv_linux_init_abi): Call tramp_frame_prepend_unwinder.
892
893         * riscv-tdep.c (riscv_isa_xlen): Refer to riscv-tdep.h comment.
894         (riscv_isa_flen): Likewise.  Drop static.
895         * riscv-tdep.h (riscv_isa_xlen): Move riscv-tdep.c comment to here.
896         (riscv_isa_flen): Likewise.  Declare.
897
898 2018-10-26  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
899             Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
900
901         * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa207_htm_vsx32l)
902         (tdesc_powerpc_isa207_htm_vsx64l): Declare.
903         * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_TM_SPRREGSET)
904         (PPC32_LINUX_SIZEOF_CGPRREGSET, PPC64_LINUX_SIZEOF_CGPRREGSET)
905         (PPC_LINUX_SIZEOF_CFPRREGSET, PPC_LINUX_SIZEOF_CVMXREGSET)
906         (PPC_LINUX_SIZEOF_CVSXREGSET, PPC_LINUX_SIZEOF_CPPRREGSET)
907         (PPC_LINUX_SIZEOF_CDSCRREGSET, PPC_LINUX_SIZEOF_CTARREGSET):
908         Define.
909         (struct ppc_linux_features) <htm>: New field.
910         (ppc_linux_no_features): Add initializer for htm field.
911         * arch/ppc-linux-common.c (ppc_linux_match_description): Return
912         new tdescs.
913         * nat/ppc-linux.h (PPC_FEATURE2_HTM, NT_PPC_TM_CGPR)
914         (NT_PPC_TM_CFPR, NT_PPC_TM_CVMX, NT_PPC_TM_CVSX)
915         (NT_PPC_TM_SPR, NT_PPC_TM_CTAR, NT_PPC_TM_CPPR, NT_PPC_TM_CDSCR):
916         Define if not already defined.
917         * features/Makefile (WHICH): Add rs6000/powerpc-isa207-htm-vsx32l
918         and rs6000/powerpc-isa207-htm-vsx64l.
919         (XMLTOC): Add rs6000/powerpc-isa207-htm-vsx32l.xml and
920         rs6000/powerpc-isa207-htm-vsx64l.xml.
921         * features/rs6000/power-htm-spr.xml: New file.
922         * features/rs6000/power-htm-core.xml: New file.
923         * features/rs6000/power64-htm-core.xml: New file.
924         * features/rs6000/power-htm-fpu.xml: New file.
925         * features/rs6000/power-htm-altivec.xml: New file.
926         * features/rs6000/power-htm-vsx.xml: New file.
927         * features/rs6000/power-htm-ppr.xml: New file.
928         * features/rs6000/power-htm-dscr.xml: New file.
929         * features/rs6000/power-htm-tar.xml: New file.
930         * features/rs6000/powerpc-isa207-htm-vsx32l.xml: New file.
931         * features/rs6000/powerpc-isa207-htm-vsx64l.xml: New file.
932         * features/rs6000/powerpc-isa207-htm-vsx32l.c: Generate.
933         * features/rs6000/powerpc-isa207-htm-vsx64l.c: Generate.
934         * regformats/rs6000/powerpc-isa207-htm-vsx32l.dat: Generate.
935         * regformats/rs6000/powerpc-isa207-htm-vsx64l.dat: Generate.
936         * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call
937         fetch_regset with HTM regsets.
938         (store_register, store_ppc_registers): Call store_regset with HTM
939         regsets.
940         (ppc_linux_nat_target::read_description): Set htm field in the
941         features struct if needed.
942         * ppc-linux-tdep.c: Include
943         features/rs6000/powerpc-isa207-htm-vsx32l.c and
944         features/rs6000/powerpc-isa207-htm-vsx64l.c.
945         (ppc32_regmap_tm_spr, ppc32_regmap_cgpr, ppc64_le_regmap_cgpr)
946         (ppc64_be_regmap_cgpr, ppc32_regmap_cfpr, ppc32_le_regmap_cvmx)
947         (ppc32_be_regmap_cvmx, ppc32_regmap_cvsx, ppc32_regmap_cppr)
948         (ppc32_regmap_cdscr, ppc32_regmap_ctar): New globals.
949         (ppc32_linux_tm_sprregset, ppc32_linux_cgprregset)
950         (ppc64_be_linux_cgprregset, ppc64_le_linux_cgprregset)
951         (ppc32_linux_cfprregset, ppc32_le_linux_cvmxregset)
952         (ppc32_be_linux_cvmxregset, ppc32_linux_cvsxregset)
953         (ppc32_linux_cpprregset, ppc32_linux_cdscrregset)
954         (ppc32_linux_ctarregset): New globals.
955         (ppc_linux_cgprregset, ppc_linux_cvmxregset): New functions.
956         (ppc_linux_collect_core_cpgrregset): New function.
957         (ppc_linux_iterate_over_regset_sections): Call back with the htm
958         regsets.
959         (ppc_linux_core_read_description): Check if the tm spr section is
960         present and set htm in the features struct.
961         (_initialize_ppc_linux_tdep): Call
962         initialize_tdesc_powerpc_isa207_htm_vsx32l and
963         initialize_tdesc_powerpc_isa207_htm_vsx64l.
964         * ppc-linux-tdep.h (ppc_linux_cgprregset, ppc_linux_cvmxregset):
965         Declare.
966         (ppc32_linux_tm_sprregset, ppc32_linux_cfprregset)
967         (ppc32_linux_cvsxregset, ppc32_linux_cpprregset)
968         (ppc32_linux_cdscrregset, ppc32_linux_ctarregset): Declare.
969         * ppc-tdep.h (struct gdbarch_tdep) <have_htm_spr, have_htm_core>:
970         New fields.
971         <have_htm_fpu, have_htm_altivec, have_htm_vsx>:
972         Likewise.
973         <ppc_cppr_regnum, ppc_cdscr_regnum, ppc_ctar_regnum>: Likewise.
974         <ppc_cdl0_regnum, ppc_cvsr0_regnum, ppc_cefpr0_regnum>: Likewise.
975         (enum) <PPC_TFHAR_REGNUM, PPC_TEXASR_REGNUM, PPC_TFIAR_REGNUM>:
976         New enum fields.
977         <PPC_CR0_REGNUM, PPC_CCR_REGNUM, PPC_CXER_REGNUM>: Likewise.
978         <PPC_CLR_REGNUM, PPC_CCTR_REGNUM, PPC_CF0_REGNUM>: Likewise.
979         <PPC_CFPSCR_REGNUM, PPC_CVR0_REGNUM, PPC_CVSCR_REGNUM>: Likewise.
980         <PPC_CVRSAVE_REGNUM, PPC_CVSR0_UPPER_REGNUM>: Likewise.
981         <PPC_CPPR_REGNUM, PPC_CDSCR_REGNUM>: Likewise.
982         <PPC_CTAR_REGNUM>: Likewise.
983         (PPC_IS_TMSPR_REGNUM, PPC_IS_CKPTGP_REGNUM, PPC_IS_CKPTFP_REGNUM)
984         (PPC_IS_CKPTVMX_REGNUM, PPC_IS_CKPTVSX_REGNUM): Define.
985         * rs6000-tdep.c (IS_CDFP_PSEUDOREG, IS_CVSX_PSEUDOREG)
986         (IS_CEFP_PSEUDOREG): Define.
987         (rs6000_register_name): Hide the upper halves of checkpointed VSX
988         registers.  Return names for the checkpointed DFP, VSX, and EFP
989         pseudo registers.
990         (rs6000_pseudo_register_type): Remove initial assert and raise an
991         internal error in the else clause instead.  Return types for the
992         checkpointed DFP, VSX, and EFP pseudo registers.
993         (dfp_pseudo_register_read, dfp_pseudo_register_write): Handle
994         checkpointed DFP pseudo registers.
995         (vsx_pseudo_register_read, vsx_pseudo_register_write): Handle
996         checkpointed VSX pseudo registers.
997         (efp_pseudo_register_read, efp_pseudo_register_write): Rename
998         from efpr_pseudo_register_read and
999         efpr_pseudo_register_write.  Handle checkpointed EFP pseudo
1000         registers.
1001         (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
1002         Handle checkpointed DFP, VSX, and EFP registers.
1003         (dfp_ax_pseudo_register_collect, vsx_ax_pseudo_register_collect)
1004         (efp_ax_pseudo_register_collect): New functions.
1005         (rs6000_ax_pseudo_register_collect): Move DFP, VSX and EFP pseudo
1006         register logic to new functions.  Handle checkpointed DFP, VSX,
1007         and EFP pseudo registers.
1008         (rs6000_gdbarch_init): Look for and validate the htm features.
1009         Include checkpointed DFP, VSX and EFP pseudo-registers.
1010         * NEWS: Mention access to PPR, DSCR, TAR, EBB/PMU registers and
1011         HTM registers.
1012
1013 2018-10-26  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
1014
1015         * rs6000-tdep.c (rs6000_gdbarch_init): Reject tdescs with vsx but
1016         without altivec or fpu.
1017
1018 2018-10-26  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
1019             Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
1020
1021         * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_EBBREGSET)
1022         (PPC_LINUX_SIZEOF_PMUREGSET): Declare.
1023         * nat/ppc-linux.h (PPC_FEATURE2_EBB, NT_PPC_EBB, NT_PPC_PMU):
1024         Define if not already defined.
1025         * features/rs6000/power-ebb.xml: New file.
1026         * features/rs6000/power-linux-pmu.xml: New file.
1027         * features/rs6000/powerpc-isa207-vsx32l.xml: Include ebb and pmu
1028         features.
1029         * features/rs6000/powerpc-isa207-vsx64l.xml: Likewise.
1030         * features/rs6000/powerpc-isa207-vsx32l.c: Re-generate.
1031         * features/rs6000/powerpc-isa207-vsx64l.c: Re-generate.
1032         * regformats/rs6000/powerpc-isa207-vsx32l.dat: Re-generate.
1033         * regformats/rs6000/powerpc-isa207-vsx64l.dat: Re-generate.
1034         * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call
1035         fetch_regset with ebb and pmu regsets.
1036         (store_register, store_ppc_registers): Call store_regset with ebb
1037         and pmu regsets.
1038         (ppc_linux_nat_target::read_description): Set isa207 field in the
1039         features struct if ebb and pmu are avaiable.
1040         * ppc-linux-tdep.c (ppc32_regmap_ebb, ppc32_regmap_pmu)
1041         (ppc32_linux_ebbregset, ppc32_linux_pmuregset): New globals.
1042         (ppc_linux_iterate_over_regset_sections): Call back with the ebb
1043         and pmu regsets.
1044         (ppc_linux_core_read_description): Check if the pmu section is
1045         present and set isa207 in the features struct.
1046         * ppc-linux-tdep.h (ppc32_linux_ebbregset)
1047         (ppc32_linux_pmuregset): Declare.
1048         * ppc-tdep.h (struct gdbarch_tdep) <ppc_mmcr0_regnum>: New field.
1049         <ppc_mmcr2_regnum, ppc_siar_regnum, ppc_sdar_regnum>: New fields.
1050         <ppc_sier_regnum>: New field.
1051         (enum): <PPC_BESCR_REGNUM, PPC_EBBHR_REGNUM, PPC_EBBRR_REGNUM>:
1052         New enum values.
1053         <PPC_MMCR0_REGNUM, PPC_MMCR2_REGNUM, PPC_SIAR_REGNUM>: New enum
1054         values.
1055         <PPC_SDAR_REGNUM, PPC_SIER_REGNUM>: New enum values.
1056         (PPC_IS_EBB_REGNUM, PPC_IS_PMU_REGNUM): Define.
1057         * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate the
1058         ebb and pmu features.
1059
1060 2018-10-26  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
1061             Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
1062
1063         * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa207_vsx32l)
1064         (tdesc_powerpc_isa207_vsx64l): Declare.
1065         * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_TARREGSET): Define.
1066         (struct ppc_linux_features) <isa207>: New field.
1067         (ppc_linux_no_features): Add initializer for isa207 field.
1068         * arch/ppc-linux-common.c (ppc_linux_match_description): Return
1069         new tdescs.
1070         * nat/ppc-linux.h (PPC_FEATURE2_ARCH_2_07, PPC_FEATURE2_TAR)
1071         (NT_PPC_TAR): Define if not already defined.
1072         * features/Makefile (WHICH): Add rs6000/powerpc-isa207-vsx32l and
1073         rs6000/powerpc-isa207-vsx64l.
1074         (XMLTOC): Add rs6000/powerpc-isa207-vsx32l.xml and
1075         rs6000/powerpc-isa207-vsx64l.xml.
1076         * features/rs6000/power-tar.xml: New file.
1077         * features/rs6000/powerpc-isa207-vsx32l.xml: New file.
1078         * features/rs6000/powerpc-isa207-vsx64l.xml: New file.
1079         * features/rs6000/powerpc-isa207-vsx32l.c: Generate.
1080         * features/rs6000/powerpc-isa207-vsx64l.c: Generate.
1081         * regformats/rs6000/powerpc-isa207-vsx32l.dat: Generate.
1082         * regformats/rs6000/powerpc-isa207-vsx64l.dat: Generate.
1083         * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call
1084         fetch_regset with the TAR regset.
1085         (store_register, store_ppc_registers): Call store_regset with the
1086         TAR regset.
1087         (ppc_linux_nat_target::read_description): Set isa207 field in the
1088         features struct if needed.
1089         * ppc-linux-tdep.c: Include
1090         features/rs6000/powerpc-isa207-vsx32l.c and
1091         features/rs6000/powerpc-isa207-vsx64l.c.
1092         (ppc32_regmap_tar, ppc32_linux_tarregset): New globals.
1093         (ppc_linux_iterate_over_regset_sections): Call back with the tar
1094         regset.
1095         (ppc_linux_core_read_description): Check if the tar section is
1096         present and set isa207 in the features struct.
1097         (_initialize_ppc_linux_tdep): Call
1098         initialize_tdesc_powerpc_isa207_vsx32l and
1099         initialize_tdesc_powerpc_isa207_vsx64l.
1100         * ppc-linux-tdep.h (ppc32_linux_tarregset): Declare.
1101         * ppc-tdep.h (gdbarch_tdep) <ppc_tar_regnum>: New field.
1102         (enum) <PPC_TAR_REGNUM>: New enum value.
1103         * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate tar
1104         feature.
1105         (ppc_process_record_op31): Record changes to TAR.
1106
1107 2018-10-26  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
1108             Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
1109
1110         * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa205_ppr_dscr_vsx32l)
1111         (tdesc_powerpc_isa205_ppr_dscr_vsx64l): Declare.
1112         * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_PPRREGSET)
1113         (PPC_LINUX_SIZEOF_DSCRREGSET): Define.
1114         (struct ppc_linux_features) <ppr_dscr>: New field.
1115         (ppc_linux_no_features): Add initializer for ppr_dscr field.
1116         * arch/ppc-linux-common.c (ppc_linux_match_description): Return
1117         new tdescs.
1118         * nat/ppc-linux.h (PPC_FEATURE2_DSCR, NT_PPC_PPR, NT_PPC_DSCR):
1119         Define if not already defined.
1120         * features/Makefile (WHICH): Add
1121         rs6000/powerpc-isa205-ppr-dscr-vsx32l and
1122         rs6000/powerpc-isa205-ppr-dscr-vsx64l.
1123         (XMLTOC): Add rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
1124         rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml.
1125         * features/rs6000/power-dscr.xml: New file.
1126         * features/rs6000/power-ppr.xml: New file.
1127         * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml: New file.
1128         * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml: New file.
1129         * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Generate.
1130         * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Generate.
1131         * regformats/rs6000/powerpc-isa205-ppr-dscr-vsx32l.dat: Generate.
1132         * regformats/rs6000/powerpc-isa205-ppr-dscr-vsx64l.dat: Generate.
1133         * ppc-linux-nat.c: Include <sys/uio.h>.
1134         (fetch_regset, store_regset, check_regset): New functions.
1135         (fetch_register, fetch_ppc_registers): Call fetch_regset with
1136         DSCR and PPR regsets.
1137         (store_register, store_ppc_registers): Call store_regset with
1138         DSCR and PPR regsets.
1139         (ppc_linux_get_hwcap2): New function.
1140         (ppc_linux_nat_target::read_description): Call
1141         ppc_linux_get_hwcap2 and check_regset, set ppr_dscr field in the
1142         features struct if needed.
1143         * ppc-linux-tdep.c: Include
1144         features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c and
1145         features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c.
1146         (ppc32_regmap_ppr, ppc32_regmap_dscr, ppc32_linux_pprregset)
1147         (ppc32_linux_dscrregset): New globals.
1148         (ppc_linux_iterate_over_regset_sections): Call back with the ppr
1149         and dscr regsets.
1150         (ppc_linux_core_read_description): Check if the ppr and dscr
1151         sections are present and set ppr_dscr in the features struct.
1152         (_initialize_ppc_linux_tdep): Call
1153         initialize_tdesc_powerpc_isa205_ppr_dscr_vsx32l and
1154         initialize_tdesc_powerpc_isa205_ppr_dscr_vsx64l.
1155         * ppc-linux-tdep.h (ppc32_linux_pprregset)
1156         (ppc32_linux_dscrregset): Declare.
1157         * ppc-tdep.h (struct gdbarch_tdep) <ppc_ppr_regnum>: New field.
1158         <ppc_dscr_regnum>: New field.
1159         (enum) <PPC_PPR_REGNUM, PPC_DSCR_REGNUM>: New enum values.
1160         * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate ppr
1161         and dscr features.
1162         (ppc_process_record_op31): Record changes to PPR and DSCR.
1163
1164 2018-10-26  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
1165
1166         * rs6000-tdep.c (rs6000_gdbarch_init): Replace line wrapping by a
1167         second initializer line for the have_* variables.  Initialize
1168         have_fpu to 0 instead of 1.
1169
1170 2018-10-26  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
1171
1172         * arch/ppc-linux-common.c (ppc_linux_match_description):
1173         Parenthesize tdesc assignements and indent them properly.
1174
1175 2018-10-26  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
1176
1177         * ppc-linux-nat.c (fetch_register): Change if statement to else
1178         if.
1179         (store_register): Likewise.
1180
1181 2018-10-26  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
1182
1183         * rs6000-tdep.c: Remove reggroups.h include.
1184         (rs6000_pseudo_register_reggroup_p): Remove.
1185         (rs6000_gdbarch_init): Remove call to
1186         set_tdesc_pseudo_register_reggroup_p.
1187
1188 2018-10-26  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
1189
1190         * reggroups.c (default_register_reggroup_p): Return true for
1191         decfloat registers and float_reggroup.
1192
1193 2018-10-26  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
1194
1195         * ppc-linux-tdep.c (ppc_linux_collect_vrregset): Remove.
1196         (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): Replace
1197         ppc_linux_collect_vrregset by regcache_collect_regset.
1198
1199 2018-10-26  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
1200
1201         * linux-tdep.c (linux_collect_regset_section_cb): Use
1202         std::vector<gdb_byte> instead of char * and malloc for buf.
1203         Remove xfree.
1204
1205 2018-10-26  Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
1206
1207         * xcoffread.c (read_xcoff_symtab): Pass deduced language to
1208         symtab_start instead of always using language_unknown.
1209
1210 2018-10-26  Andrew Burgess  <andrew.burgess@embecosm.com>
1211
1212         * riscv-tdep.c (riscv_read_misa_reg): Update comment, remove
1213         READ_P parameter, catch and ignore register access errors from
1214         either the old or new MISA location.
1215         (riscv_has_feature): Update call to riscv_read_misa_reg.
1216
1217 2018-10-25  Andrew Burgess  <andrew.burgess@embecosm.com>
1218
1219         * python/py-function.c (convert_values_to_python): Return
1220         gdbpy_ref<>.  Add header comment.
1221         (fnpy_call): Adjust.
1222
1223 2018-10-25  Andrew Burgess  <andrew.burgess@embecosm.com>
1224
1225         * python/py-cmd.c (cmdpy_completer_helper): Return gdbpy_ref<>.
1226         (cmdpy_completer_handle_brkchars): Adjust.
1227         (cmdpy_completer): Adjust.
1228
1229 2018-10-25  Andrew Burgess  <andrew.burgess@embecosm.com>
1230
1231         * riscv-linux-nat.c (riscv_linux_nat_target::fetch_registers):
1232         Pass correct regnum to raw_supply_zeroed.
1233
1234 2018-10-23  Hafiz Abid Qadeer  <abidh@codesourcery.com>
1235
1236         * regcache.c (cooked_read_test): Add CSKY to the list of
1237         architectures with a save_reggroup
1238
1239 2018-10-23  Simon Marchi  <simon.marchi@polymtl.ca>
1240
1241         PR gdb/23368
1242         * infrun.c (follow_exec): In the follow_exec_mode_new case,
1243         transfer terminal state from old new new inferior.
1244         * terminal.h (swap_terminal_info): New function.
1245         * inflow.c (swap_terminal_info): New function.
1246
1247 2018-10-23  Tom Tromey  <tom@tromey.com>
1248
1249         * record-btrace.c (get_thread_current_frame_id): Rename from
1250         get_thread_current_frame.  Return a frame_id.
1251         (record_btrace_start_replaying): Update.
1252
1253 2018-10-23  Andrew Burgess  <andrew.burgess@embecosm.com>
1254
1255         * riscv-tdep.c (riscv_register_name): Use the user-friendly names
1256         for CSRs.
1257
1258 2018-10-23  Joel Brobecker  <brobecker@adacore.com>
1259
1260         * riscv-tdep.c (riscv_gdbarch_init): Set the gdbarch's
1261         have_nonsteppable_watchpoint attribute to 1.
1262
1263 2018-10-23  Andrew Burgess  <andrew.burgess@embecosm.com>
1264
1265         * riscv-tdep.c (riscv_gdb_reg_names): Update comment, and all
1266         register names.
1267         (struct register_alias): Rename to...
1268         (struct riscv_register_alias): ...this, and update comment.
1269         (riscv_register_aliases): Update type, and alias names.  Remove
1270         CSR names from this list.
1271         (riscv_register_name): Use riscv_gdb_reg_names for int and float
1272         register names.  Add an extra assertion.
1273         (riscv_is_regnum_a_named_csr): New function.
1274         (riscv_register_reggroup_p): Use riscv_is_regnum_a_named_csr.
1275
1276 2018-10-23  John Darrington  <john@darrington.wattle.id.au>
1277
1278         * configure.tgt: Add configuration for s12z.
1279         * s12z-tdep.c:  New file.
1280         * NEWS: Mention new target.
1281
1282 2018-10-22  Jim Wilson  <jimw@sifive.com>
1283
1284         * riscv-tdep.c (riscv_push_dummy_call) <in_reg>: Check for value in
1285         FP reg smaller than FP reg size, and fill with -1 instead of 0.
1286
1287         * riscv-tdep.c (riscv_fpreg_d_type, riscv_fpreg_q_type): New.
1288         (riscv_register_type): Use them.
1289         (riscv_print_one_register_info): Handle union of floats same as float.
1290         * riscv-tdep.h (struct gdbarch_tdep): Add riscv_fpreg_d_type and
1291         riscv_fpreg_q_type fields.
1292
1293 2018-10-21  Simon Marchi  <simon.marchi@ericsson.com>
1294
1295         * gdbarch.sh (gdbarch_num_cooked_regs): New.
1296         * gdbarch.h: Re-generate.
1297         * ax-gdb.c (gen_expr): Use gdbarch_num_cooked_regs.
1298         * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
1299         * eval.c (evaluate_subexp_standard): Likewise.
1300         * findvar.c (value_of_register): Likewise.
1301         (value_of_register_lazy): Likewise.
1302         (address_from_register): Likewise.
1303         * frame.c (get_frame_register_bytes): Likewise.
1304         * gdbarch-selftests.c (register_to_value_test): Likewise.
1305         * h8300-tdep.c (h8300_register_type): Likewise.
1306         * i386-tdep.c (i386_dbx_reg_to_regnum): Likewise.
1307         (i386_svr4_reg_to_regnum): Likewise.
1308         * infcmd.c (default_print_registers_info): Likewise.
1309         (registers_info): Likewise.
1310         (print_vector_info): Likewise.
1311         (default_print_float_info): Likewise.
1312         * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1313         * mdebugread.c (mdebug_reg_to_regnum): Likewise.
1314         * mi/mi-main.c (mi_cmd_data_list_register_names): Likewise.
1315         (mi_cmd_data_list_changed_registers): Likewise.
1316         (mi_cmd_data_list_register_values): Likewise.
1317         (mi_cmd_data_write_register_values): Likewise.
1318         (mi_cmd_trace_frame_collected): Likewise.
1319         * mips-tdep.c (print_gp_register_row): Likewise.
1320         (mips_print_registers_info): Likewise.
1321         * nds32-tdep.c (nds32_gdbarch_init): Likewise.
1322         * regcache.c (init_regcache_descr): Likewise.
1323         (register_size): Likewise.
1324         (register_dump::dump): Likewise.
1325         (cooked_read_test): Likewise.
1326         (cooked_write_test): Likewise.
1327         * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
1328         (rs6000_gdbarch_init): Likewise.
1329         * stabsread.c (stab_reg_to_regnum): Likewise.
1330         * stack.c (info_frame_command): Likewise.
1331         * target-descriptions.c (tdesc_register_name): Likewise.
1332         * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
1333         * tui/tui-regs.c (tui_show_register_group): Likewise.
1334         * user-regs.c (user_reg_map_name_to_regnum): Likewise.
1335         (user_reg_map_regnum_to_name): Likewise.
1336         (value_of_user_reg): Likewise.
1337         (maintenance_print_user_registers): Likewise.
1338         * xtensa-tdep.c (xtensa_find_register_by_name): Likewise.
1339         (xtensa_register_name): Likewise.
1340         (xtensa_register_type): Likewise.
1341         (xtensa_reg_to_regnum): Likewise.
1342         (xtensa_pseudo_register_read): Likewise.
1343         (xtensa_pseudo_register_write): Likewise.
1344
1345 2018-10-21  Simon Marchi  <simon.marchi@polymtl.ca>
1346
1347         * amd64-tdep.c (amd64_pseudo_register_read_value): Use
1348         correctly-sized buffer with raw_read.
1349         (amd64_pseudo_register_write): Use correctly-sized buffer for
1350         raw_read/raw_write.
1351
1352 2018-10-19  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
1353
1354         * typeprint.c (_initialize_typeprint): Fix wrong prefixname arg
1355         in add_prefix_cmd of set print type.
1356
1357 2018-10-19  Tom Tromey  <tom@tromey.com>
1358
1359         PR tui/18388:
1360         * NEWS: Mention tabset deprecation.
1361         * tui/tui-win.c (tui_tab_width, internal_tab_width): New globals.
1362         (update_tab_width): New function.
1363         (tui_set_tab_width, tui_show_tab_width): New functions.
1364         (tui_set_tab_width_command): Use update_tab_width.
1365         (_initialize_tui_win): Move to end of file.  Deprecate "tabset".
1366         Add new "set tui tab-width" command.
1367         * tui/tui-source.c (tui_set_source_content): Update.
1368         * tui/tui-disasm.c (tui_set_disassem_content): Update.
1369         * tui/tui-data.h (tui_default_tab_len, tui_set_default_tab_len):
1370         Don't declare.
1371         (tui_tab_width): Declare.
1372         * tui/tui-data.c (default_tab_len, tui_default_tab_len)
1373         (tui_set_default_tab_len): Remove.
1374
1375 2018-10-19  Tom Tromey  <tom@tromey.com>
1376
1377         * tui/tui-io.h (key_is_start_sequence, key_is_end_sequence)
1378         (key_is_backspace, tui_getc): Don't declare.
1379         * tui/tui-io.c (key_is_start_sequence): Now static.
1380         (key_is_end_sequence, key_is_backspace): Remove.
1381         (tui_getc): Now static.
1382
1383 2018-10-19  Tom Tromey  <tom@tromey.com>
1384
1385         * symfile.c (reread_symbols): Clear "static_links".
1386
1387 2018-10-19  Alan Hayward  <alan.hayward@arm.com>
1388
1389         * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_SIZE): New
1390         define.
1391         (aarch64_linux_sigframe_init): Extra boundary checks.
1392
1393 2018-10-19  Andreas Arnez  <arnez@linux.ibm.com>
1394
1395         * s390-tdep.c (s390_pseudo_register_type): For v0-v15 don't yield
1396         the possibly non-existent tdesc type 'vec128', but the type of raw
1397         register v16 instead.
1398
1399 2018-10-19  Gary Benson <gbenson@redhat.com>
1400
1401         * cli/cli-interp.c (cli_interp::~cli_interp): New function.
1402
1403 2018-10-18  Sergio Durigan Junior  <sergiodj@redhat.com>
1404
1405         PR cli/23785
1406         * cli/cli-dump.c (restore_binary_file): Check if "file" is
1407         NULL.
1408
1409 2018-10-17  Paul Koning  <paul_koning@dell.com>
1410
1411         * charset.c (convert_between_encodings): Fix unsigned overflow.
1412
1413 2018-10-17  John Baldwin  <jhb@FreeBSD.org>
1414
1415         * fbsd-nat.c (fbsd_nat_target::info_proc) Use
1416         fbsd_info_proc_mappings_header and fbsd_info_proc_mappings_entry.
1417         * fbsd-tdep.c (fbsd_vm_map_entry_flags): Mark static.
1418         (fbsd_info_proc_mappings_header, fbsd_info_proc_mappings_entry):
1419         New functions.
1420         (fbsd_core_info_proc_mappings): Use fbsd_info_proc_mappings_header
1421         and fbsd_info_proc_mappings_header.
1422         * fbsd-tdep.h (fbsd_vm_map_entry_flags): Remove.
1423         (fbsd_info_proc_mappings_header, fbsd_info_proc_mappings_entry):
1424         New.
1425
1426 2018-10-17  Joel Brobecker  <brobecker@adacore.com>
1427
1428         * MAINTAINERS (Responsible Maintainers): Add Rainer Orth as
1429         Solaris Maintainer.
1430
1431 2018-10-15  Tom Tromey  <tom@tromey.com>
1432
1433         * tui/tui.c (strcat_to_buf): Remove casts.
1434         * tui/tui-winsource.c (tui_show_source_line)
1435         (tui_set_is_exec_point_at, tui_line_is_displayed): Remove casts.
1436         * tui/tui-wingeneral.c (tui_refresh_win, box_win): Remove casts.
1437         * tui/tui-windata.c (tui_first_data_item_displayed)
1438         (tui_delete_data_content_windows, tui_erase_data_content)
1439         (tui_display_all_data, tui_display_data_from)
1440         (tui_refresh_data_win, tui_vertical_data_scroll): Remove casts.
1441         * tui/tui-win.c (tui_set_win_height)
1442         (make_invisible_and_set_new_height, parse_scrolling_args): Remove
1443         casts.
1444         * tui/tui-win.c (tui_resize_all): Remove casts.
1445         (tui_scroll_backward_command, tui_set_focus)
1446         (tui_set_tab_width_command): Likewise.
1447         * tui/tui-source.c (tui_vertical_source_scroll): Remove cast.
1448         * tui/tui-regs.c (tui_show_register_group): Remove cast.
1449         * tui/tui-layout.c (tui_set_layout_by_name): Remove cast.
1450         * tui/tui-disasm.c (tui_vertical_disassem_scroll): Remove cast.
1451         * tui/tui-data.c (tui_partial_win_by_name, tui_free_win_content):
1452         Remove casts.
1453
1454 2018-10-15  Simon Marchi  <simon.marchi@ericsson.com>
1455
1456         * MAINTAINERS (Responsible Maintainers): Add Alan Hayward as
1457         AArch64/ARM maintainer.
1458
1459 2018-10-11  Gary Benson <gbenson@redhat.com>
1460
1461         * interps.h (interp::m_name): Make private and mutable.
1462         * interps.c (interp::~interp): Free m_name.
1463
1464 2018-10-10  Sergio Durigan Junior  <sergiodj@redhat.com>
1465             Simon Marchi <simark@simark.ca>
1466
1467         * README (`configure' options): Add documentation for new
1468         "--enable-unit-tests" option.
1469         * acinclude.m4: Include "selftest.m4".
1470         * configure: Regenerate.
1471         * configure.ac: Use "GDB_AC_SELFTEST".
1472         * maint.c (maintenance_selftest): Update message informing
1473         that selftests have been disabled.
1474         (maintenance_info_selftests): Likewise.
1475         * selftest.m4: New file.
1476
1477 2018-10-10  Gary Benson <gbenson@redhat.com>
1478
1479         * remote.c (remote_target::remote_send_printf): Add
1480         missing va_end found by Coverity.
1481
1482 2018-10-10  Markus Metzger  <markus.t.metzger@intel.com>
1483
1484         * btrace.c (ftrace_update_function): Add indirect jump heuristic.
1485
1486 2018-10-09  Tom Tromey  <tom@tromey.com>
1487
1488         * configure: Rebuild.
1489         * sanitize.m4 (AM_GDB_UBSAN): Default to no.
1490         * NEWS: Update --enable-ubsan documentation.
1491
1492 2018-10-09  Gary Benson <gbenson@redhat.com>
1493
1494         * dwarf2read.c (create_dwp_hash_table): Fix buffer overrun
1495         found by Coverity.
1496
1497 2018-10-08  Tom Tromey  <tom@tromey.com>
1498
1499         * riscv-fbsd-tdep.c (riscv_fbsd_sigframe_init): Remove unused
1500         variable.
1501         (riscv_fbsd_init_abi): Likewise.
1502
1503 2018-10-08  Weimin Pan  <weimin.pan@oracle.com>
1504         * valops.c (value_struct_elt_for_reference): Rename local variable
1505         to work around the shadowing a previous local warning.
1506
1507 2018-10-08  John Baldwin  <jhb@FreeBSD.org>
1508
1509         * Makefile.in (ALLDEPFILES): Add riscv-fbsd-nat.c.
1510         * NEWS: Mention new FreeBSD/riscv native configuration.
1511         * configure.host: Add riscv*-*-freebsd*.
1512         * configure.nat: Likewise.
1513         * riscv-fbsd-nat.c: New file.
1514
1515 2018-10-08  John Baldwin  <jhb@FreeBSD.org>
1516
1517         * Makefile.in (ALL_TARGET_OBS): Add riscv-fbsd-tdep.o.
1518         (HFILES_NO_SRCDIR): Add riscv-fbsd-tdep.h.
1519         (ALLDEPFILES): Add riscv-fbsd-tdep.c.
1520         * NEWS: Mention new FreeBSD/riscv target.
1521         * configure.tgt: Add riscv*-*-freebsd*.
1522         * riscv-fbsd-tdep.c: New file.
1523         * riscv-fbsd-tdep.h: New file.
1524
1525 2018-10-08  John Baldwin  <jhb@FreeBSD.org>
1526
1527         * regcache.h (struct regcache_map_entry): Note that this type can
1528         be used with traditional frame caches.
1529         * trad-frame.c (trad_frame_set_reg_regmap): New.
1530         * trad-frame.h (trad_frame_set_reg_regmap): New.
1531
1532 2018-10-08  Weimin Pan  <weimin.pan@oracle.com>
1533
1534         PR c++/16841
1535         * valops.c (get_virtual_base_offset): New function.
1536         (value_struct_elt_for_reference): Use it to get virtual base offset
1537         and add it in calculating class member address.
1538
1539 2018-10-08  John Darrington  <john@darrington.wattle.id.au>
1540
1541         * dwarf2read.c (dwarf2_cu) <producer_is_codewarrior>: New field.
1542         (check_producer): Check if the producer is codewarrior.
1543         (producer_is_codewarrior): New function.
1544         (lnp_state_machine::record_line): Ignore is_stmt flag for records
1545         produced by codewarrior.
1546         (dwarf2_cu::dwarf2_cu): Initialize producer_is_codewarrior.
1547
1548 2018-10-06  Tom Tromey  <tom@tromey.com>
1549
1550         PR python/19399:
1551         * python/py-inferior.c: Add "architecture" entry.
1552         (infpy_architecture): New function.
1553
1554 2018-10-06  Tom Tromey  <tom@tromey.com>
1555
1556         PR python/21765:
1557         * python/py-symbol.c (gdbpy_initialize_symbols): Redefine
1558         SYMBOL_VARIABLES_DOMAIN, SYMBOL_FUNCTIONS_DOMAIN,
1559         SYMBOL_TYPES_DOMAIN.  Define SYMBOL_MODULE_DOMAIN,
1560         SYMBOL_COMMON_BLOCK_DOMAIN, SYMBOL_LOC_COMMON_BLOCK.
1561
1562 2018-10-06  Tom Tromey  <tom@tromey.com>
1563
1564         PR build/17077:
1565         * Makefile.in (OPCODES_CFLAGS): Remove "-I$(OPCODES_SRC)/..".
1566         * arc-tdep.c, frv-tdep.c, lm32-tdep.c, mep-tdep.c,
1567         microblaze-tdep.c, or1k-tdep.h: Use ../opcodes, not opcodes, in
1568         #include.
1569
1570 2018-10-06  Tom Tromey  <tom@tromey.com>
1571
1572         * python/py-breakpoint.c (bppy_get_location): Handle a
1573         bp_breakpoint without a location.
1574
1575 2018-10-06  Tom Tromey  <tom@tromey.com>
1576
1577         * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq)
1578         (_RegEx): Reformat help text.
1579         * python/lib/gdb/function/caller_is.py (CallerIs, CallerMatches)
1580         (AnyCallerIs, AnyCallerMatches): Reformat help text.
1581         * python/lib/gdb/function/as_string.py (_AsString): Reformat help
1582         text.
1583         * python/lib/gdb/command/xmethods.py (InfoXMethod)
1584         (EnableXMethod, DisableXMethod): Remove help indentation.
1585         Capitalize meta-syntactic variables.
1586         * python/lib/gdb/command/unwinders.py (InfoUnwinder)
1587         (EnableUnwinder, DisableUnwinder): Remove help indentation.
1588         Capitalize meta-syntactic variables.
1589         * python/lib/gdb/command/explore.py (ExploreCommand)
1590         (ExploreValueCommand, ExploreTypeCommand): Reformat help text.
1591         * python/lib/gdb/command/type_printers.py (InfoTypePrinter)
1592         (EnableTypePrinter, DisableTypePrinter): Remove help indentation.
1593         * python/lib/gdb/command/pretty_printers.py (InfoPrettyPrinter):
1594         Remove help indentation.
1595         (EnablePrettyPrinter, DisablePrettyPrinter): Likewise.
1596         * python/lib/gdb/command/frame_filters.py (EnableFrameFilter)
1597         (DisableFrameFilter, SetFrameFilterPriority)
1598         (ShowFrameFilterPriority, InfoFrameFilter): Reword help text.
1599
1600 2018-10-06  Tom Tromey  <tom@tromey.com>
1601
1602         PR tui/28819:
1603         * tui/tui-io.c (gdb_wgetch): New function.
1604         (tui_mld_getc, tui_getc): Use it.
1605
1606 2018-10-05  Tom Tromey  <tom@tromey.com>
1607
1608         * sol-thread.c (sol_thread_target::wait): Rename inner
1609         "save_ptid".
1610
1611 2018-10-04  Tom Tromey  <tom@tromey.com>
1612
1613         * configure: Rebuild.
1614         * warning.m4 (AM_GDB_WARNINGS): Add -Wshadow=local.
1615
1616 2018-10-04  Tom Tromey  <tom@tromey.com>
1617
1618         * guile/scm-frame.c (gdbscm_frame_read_var): Remove inner
1619         declaration of "block".
1620
1621 2018-10-04  Tom Tromey  <tom@tromey.com>
1622
1623         * common/filestuff.c (fdwalk): Remove inner declaration of
1624         "result".
1625
1626 2018-10-04  Tom Tromey  <tom@tromey.com>
1627
1628         * msp430-tdep.c (msp430_push_dummy_call): Rename inner
1629         "structs_addr" and hoist declaration.
1630
1631 2018-10-04  Tom Tromey  <tom@tromey.com>
1632
1633         * linux-tdep.c (linux_make_mappings_corefile_notes): Introduce new
1634         variable "size".
1635
1636 2018-10-04  Tom Tromey  <tom@tromey.com>
1637
1638         * mdebugread.c (parse_partial_symbols): Use std::string.
1639
1640 2018-10-04  Tom Tromey  <tom@tromey.com>
1641
1642         * ctf.c (SET_ARRAY_FIELD): Rename "u32".
1643         * p-valprint.c (pascal_val_print): Split inner "i" variable.
1644         * xtensa-tdep.c (xtensa_push_dummy_call): Declare "i" in loop
1645         header.
1646         * xstormy16-tdep.c (xstormy16_push_dummy_call): Declare "val" in
1647         more inner scope.
1648         * xcoffread.c (read_xcoff_symtab): Rename inner "symbol".
1649         * varobj.c (varobj_update): Rename inner "newobj",
1650         "type_changed".
1651         * valprint.c (generic_emit_char): Rename inner "buf".
1652         * valops.c (find_overload_match): Rename inner "temp".
1653         (value_struct_elt_for_reference): Declare "v" in more inner
1654         scope.
1655         * v850-tdep.c (v850_push_dummy_call): Rename "len".
1656         * unittests/array-view-selftests.c (run_tests): Rename inner
1657         "vec".
1658         * tui/tui-stack.c (tui_show_frame_info): Declare "i" in loop
1659         header.
1660         * tracepoint.c (merge_uploaded_trace_state_variables): Declare
1661         "tsv" in more inner scope.
1662         (print_one_static_tracepoint_marker): Rename inner
1663         "tuple_emitter".
1664         * tic6x-tdep.c (tic6x_analyze_prologue): Declare "inst" lower.
1665         (tic6x_push_dummy_call): Don't redeclare "addr".
1666         * target-float.c: Declare "dto" lower.
1667         * symtab.c (lookup_local_symbol): Rename inner "sym".
1668         (find_pc_sect_line): Rename inner "pc".
1669         * stack.c (print_frame): Don't redeclare "gdbarch".
1670         (return_command): Rename inner "gdbarch".
1671         * s390-tdep.c (s390_prologue_frame_unwind_cache): Renam inner
1672         "sp".
1673         * rust-lang.c (rust_internal_print_type): Declare "i" in loop
1674         header.
1675         * rs6000-tdep.c (ppc_process_record): Rename inner "addr".
1676         * riscv-tdep.c (riscv_push_dummy_call): Declare "info" in inner
1677         scope.
1678         * remote.c (remote_target::update_thread_list): Don't redeclare
1679         "tp".
1680         (remote_target::process_initial_stop_replies): Rename inner
1681         "thread".
1682         (remote_target::remote_parse_stop_reply): Don't redeclare "p".
1683         (remote_target::wait_as): Don't redeclare "stop_reply".
1684         (remote_target::get_thread_local_address): Rename inner
1685         "result".
1686         (remote_target::get_tib_address): Likewise.
1687
1688         * regcache.c (cooked_read_test): Rename "regnum".
1689         * record-btrace.c (cmd_record_btrace_start): Rename inner
1690         "exception".
1691         * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Declare "i" in
1692         loop header.
1693         * ppc-linux-tdep.c (ppc_linux_syscall_record): Declare "i" in loop
1694         header.
1695         (ppu2spu_sniffer): Rename inner "buf".
1696         * parse.c (operator_check_standard): Rename inner "type",
1697         "objfile".
1698         * p-valprint.c (pascal_val_print): Introduce new scope for
1699         "low_bound", "high_bound".
1700         * p-exp.y (yylex): Declare "i" in loop header.
1701         * objfiles.c (objfile_relocate1): Declare "i" in loop header.
1702         Lower declaration of "s".
1703         * nios2-tdep.c (nios2_analyze_prologue): Declare "i" in loop
1704         header.
1705         (nios2_push_dummy_call): Rename "len".
1706         * nat/linux-osdata.c (linux_xfer_osdata_cpus): Rename static
1707         "buf".
1708         (linux_xfer_osdata_fds, linux_xfer_osdata_shm)
1709         (linux_xfer_osdata_sem, linux_xfer_osdata_msg)
1710         (linux_xfer_osdata_modules): Likewise.
1711         * mips-tdep.c (mips_eabi_push_dummy_call): Rename outer "len".
1712         (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
1713         (mips_o64_push_dummy_call): Likewise.
1714         * microblaze-tdep.c (microblaze_analyze_prologue): Rename inner
1715         "op".
1716         * mi/mi-main.c (list_available_thread_groups): Rename inner
1717         "tuple_emitter".
1718         (mi_cmd_data_read_memory): Rename inner "opts".
1719         * mi/mi-cmd-var.c (varobj_update_one): Rename inner
1720         "tuple_emitter".
1721         * mep-tdep.c (mep_analyze_prologue): Declare "rn" in loop header.
1722         * mdebugread.c (parse_symbol): Rename inner "b".  Declare "f" in
1723         more inner scope.
1724         (parse_partial_symbols): Rename inner "pst", "p", "name"
1725         * main.c (captured_main_1): Rename inner "i"s.
1726         * machoread.c (macho_symfile_read_all_oso): Don't redeclare
1727         "oso2".
1728         * linux-tdep.c (linux_info_proc): Rename inner "filename".
1729         * linespec.c (linespec_lexer_lex_string): Rename inner "p".
1730         * infrun.c (handle_no_resumed): Don't redeclare "thread".
1731         (handle_signal_stop): Rename inner "gdbarch".
1732         (handle_command): Declare "signum" in loop header.
1733         * ia64-tdep.c (ia64_pseudo_register_read): Don't redeclare
1734         "status".
1735         (examine_prologue): Rename inner "sol" and "sof".
1736         (ia64_extract_return_value): Rename inner "val".  Declare another
1737         "val" in a more inner scope.
1738         * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Declare "buf" in
1739         inner scope.
1740         * guile/scm-symbol.c (gdbscm_lookup_symbol): Rename inner
1741         "except".
1742         * findvar.c (default_read_var_value): Don't redeclare "addr".
1743         * f-exp.y (yylex): Declare "i" in loop header.
1744         * eval.c (evaluate_subexp_standard): Don't redeclare "type".
1745         Rename inner "type", "expect_type".
1746         (evaluate_subexp_for_sizeof): Rename inner "pc".
1747         * elfread.c (elf_symfile_read): Rename inner "abfd".
1748         * dwarf2read.c (read_debug_names_from_section): Don't redeclare
1749         "bytes_read".
1750         (process_psymtab_comp_unit_reader): Don't redeclare "gdbarch".
1751         (add_partial_subprogram): Rename inner "lowpc" and "highpc".
1752         (dwarf_decode_line_header): Rename inner "lh".
1753         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Don't redeclare
1754         "offset".  Declare "i" in loop header.
1755         (disassemble_dwarf_expression): Rename inner "addr_size".
1756         * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Rename
1757         inner "result".
1758         (dwarf_expr_context::execute_stack_op): Rename inner "offset".
1759         * dwarf2-frame.c (decode_frame_entry_1): Rename inner "length"s.
1760         * disasm.c (do_mixed_source_and_assembly_deprecated): Rename inner
1761         "inner_list_emitter".
1762         (do_mixed_source_and_assembly): Rename inner "tuple_emitter".
1763         * disasm-selftests.c (print_one_insn_test): Wrap "bplen"
1764         declaration in a block.
1765         * csky-tdep.c (csky_analyze_prologue): Declare "offset" lower.
1766         * cp-valprint.c (cp_print_value_fields): Don't redeclare
1767         "obstack_final_size".
1768         * cp-support.c (inspect_type): Declare "i" in loop header.
1769         * compile/compile.c (compile_instance::insert_symbol_error):
1770         Rename inner "e".
1771         * common/agent.c (agent_run_command): Remove inner "ret"
1772         declaration.
1773         * coffread.c (coff_symfile_read): Rename inner "name".
1774         (coff_symfile_read): Rename inner "abfd".
1775         * cli/cli-utils.c (get_number_trailer): Rename inner "val".
1776         * cli/cli-cmds.c (print_disassembly): Rename inner "low" and
1777         "high".
1778         * c-exp.y (lex_one_token): Move "len" declaration lower.
1779         * breakpoint.c (create_longjmp_master_breakpoint): Don't redeclare
1780         "gdbarch".
1781         (create_exception_master_breakpoint): Likewise.  Don't redeclare
1782         "b".
1783         (watch_command_1): Declare "mark" later.
1784         (clear_command): Don't shadow "a" or "b".
1785         (delete_command): Rename inner "b".
1786         (delete_trace_command): Likewise.
1787         * arm-tdep.c (thumb_process_displaced_32bit_insn): Rename inner
1788         "op".
1789         (arm_gdbarch_init): Remove inner "e_flags".
1790         * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Declare
1791         "offset" in inner blocks.
1792
1793 2018-10-04  Simon Marchi  <simon.marchi@ericsson.com>
1794
1795         * dwarf-index-write.c (file_write): Don't write if the vector is
1796         empty.
1797
1798 2018-10-05  Tom de Vries  <tdevries@suse.de>
1799
1800         * python/py-progspace.c (pspy_solib_name): Fix type mismatch in
1801         PyArg_ParseTuple call.
1802
1803 2018-10-05  Tom de Vries  <tdevries@suse.de>
1804
1805         * python/py-record-btrace.c (recpy_bt_goto): Fix type mismatch in
1806         PyArg_ParseTuple call.
1807
1808 2018-10-04  Joel Brobecker  <brobecker@adacore.com>
1809
1810         * psymtab.c (recursively_search_psymtabs): Reformat parameters
1811         to avoid exceeding 80 characters per line limit.
1812
1813 2018-10-04  Tom Tromey  <tom@tromey.com>
1814
1815         * symfile.c (syms_from_objfile_1, finish_new_objfile)
1816         (reread_symbols): Update.
1817         * complaints.h (clear_complaints): Remove argument.
1818         * complaints.c (enum complaint_series): Remove.
1819         (series): Remove global.
1820         (complaint_internal): Update.
1821         (clear_complaints): Remove argument.
1822
1823 2018-10-04  Tom Tromey  <tom@tromey.com>
1824
1825         * symfile.c (symbol_file_add_with_addrs): Do not print "no
1826         debugging symbols" message if there is a separate debug objfile.
1827
1828 2018-10-04  Tom Tromey  <tom@tromey.com>
1829
1830         PR cli/19551:
1831         * symfile.c (symbol_file_add_with_addrs): Update output.
1832         * psymtab.c (require_partial_symbols): Update output.
1833
1834 2018-10-04  Tom Tromey  <tom@tromey.com>
1835
1836         PR cli/22234:
1837         * complaints.c: Emit \n.
1838
1839 2018-10-04  Tom Tromey  <tom@tromey.com>
1840
1841         * symfile.c (symbol_file_add_with_addrs, symbol_file_clear)
1842         (separate_debug_file_exists, find_separate_debug_file)
1843         (add_symbol_file_command, reread_symbols, allocate_symtab)
1844         (allocate_compunit_symtab): Use filtered printing, not
1845         unfiltered.
1846         * psymtab.c (require_partial_symbols, dump_psymtab)
1847         (allocate_psymtab): Use filtered printing, not unfiltered.
1848
1849 2018-10-04  Tom Tromey  <tom@tromey.com>
1850
1851         * complaints.c (complaint_internal): Correctly check complaint
1852         count.
1853
1854 2018-10-04  Tom Tromey  <tom@tromey.com>
1855
1856         * complaints.h (struct complaints): Remove declaration.
1857         * complaints.c (clear_complaints): Remove an unused variable.
1858
1859 2018-10-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1860
1861         * MAINTAINERS (Write After Approval): Add self.
1862
1863 2018-10-03  Tom Tromey  <tom@tromey.com>
1864
1865         * guile/scm-value.c (gdbscm_value_to_string): Initialize
1866         "buffer_contents".
1867         * coffread.c (coff_symtab_read): Initialize "newobj".
1868
1869 2018-10-03  Simon Marchi  <simon.marchi@polymtl.ca>
1870
1871         * dwarf2read.c (read_func_scope): Remove struct keyword in
1872         range-based for.
1873
1874 2018-10-03  Tom Tromey  <tom@tromey.com>
1875
1876         * README: Mention --enable-ubsan.
1877         * NEWS: Mention --enable-ubsan.
1878         * acinclude.m4: Include sanitize.m4.
1879         * configure: Rebuild.
1880         * configure.ac: Call AM_GDB_UBSAN.
1881         * sanitize.m4: New file.
1882
1883 2018-10-03  Tom Tromey  <tom@tromey.com>
1884
1885         * expression.h (enum exp_opcode): Use uint8_t as base type.
1886         * expprint.c (op_name): Handle invalid opcodes.
1887
1888 2018-10-03  Tom Tromey  <tom@tromey.com>
1889
1890         * parse.c (prefixify_expression): Add assert.
1891         (parse_exp_in_context_1): Throw exception if the expression is
1892         empty.
1893
1894 2018-10-03  Tom Tromey  <tom@tromey.com>
1895
1896         * dwarf2read.c (read_signed_leb128): Work in ULONGEST.
1897
1898 2018-10-03  Tom Tromey  <tom@tromey.com>
1899
1900         * c-exp.y (parse_number): Work in unsigned.  Remove casts.
1901
1902 2018-10-03  Tom Tromey  <tom@tromey.com>
1903
1904         * dwarf2read.c (read_subrange_type): Make "negative_mask"
1905         unsigned.
1906
1907 2018-10-03  Tom Tromey  <tom@tromey.com>
1908
1909         * findvar.c (extract_integer): Do work in an unsigned type.
1910
1911 2018-10-03  Tom Tromey  <tom@tromey.com>
1912
1913         * common/enum-flags.h (enum_flags::operator~): Add static assert.
1914         * symfile-add-flags.h (enum symfile_add_flag): Use unsigned as
1915         base type.
1916         * objfile-flags.h (enum objfile_flag): Use unsigned as base type.
1917         * gdbtypes.h (enum type_instance_flag_value): Use unsigned as base
1918         type.
1919         * c-lang.h (enum c_string_type_values): Use unsigned as base
1920         type.
1921         * btrace.h (enum btrace_thread_flag): Use unsigned as base type.
1922
1923 2018-10-03  Tom Tromey  <tom@tromey.com>
1924
1925         * dwarf2-frame.h (dwarf2_frame_state_reg_info)
1926         <~dwarf2_frame_state_reg_info>: Update.
1927         <dwarf2_frame_state_reg_info>: Update.
1928         <alloc_regs>: Add assertion.  Update.
1929         <reg>: Now a std::vector.
1930         <num_regs>: Remove.
1931         <swap>: Update.
1932         * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
1933         (execute_cfa_program_test, dwarf2_frame_cache): Update.
1934
1935 2018-10-03  Tom Tromey  <tom@tromey.com>
1936
1937         * namespace.c (add_using_directive): Don't pass NULL to memcpy.
1938
1939 2018-10-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
1940
1941         * tid-parse.c (tid_is_in_list): Fix wrong 'See' comment.
1942
1943 2018-10-02  Tom Tromey  <tom@tromey.com>
1944
1945         * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Use pulongest.
1946
1947 2018-10-02  John Darrington  <john@darrington.wattle.id.au>
1948
1949         * NEWS: Mention changed commands.
1950         * ser-uds.c: New file.
1951         * configure.ac (SER_HARDWIRE): Add ser-uds.o.
1952         * configure: Regenerate.
1953         * Makefile.in: Add new file.
1954         * serial.c (serial_open): Check if filename is a socket
1955         and lookup the appropriate interface accordingly.
1956
1957 2018-10-01  Alan Hayward  <alan.hayward@arm.com>
1958
1959         * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_OFFSET): Add
1960         define.
1961         (AARCH64_EXTRA_MAGIC): Likewise.
1962         (AARCH64_FPSIMD_MAGIC): Likewise.
1963         (AARCH64_SVE_MAGIC): Likewise.
1964         (AARCH64_EXTRA_DATAP_OFFSET): Likewise.
1965         (AARCH64_FPSIMD_FPSR_OFFSET): Likewise.
1966         (AARCH64_FPSIMD_FPCR_OFFSET): Likewise.
1967         (AARCH64_FPSIMD_V0_OFFSET): Likewise.
1968         (AARCH64_FPSIMD_VREG_SIZE): Likewise.
1969         (AARCH64_SVE_CONTEXT_VL_OFFSET): Likewise.
1970         (AARCH64_SVE_CONTEXT_REGS_OFFSET): Likewise.
1971         (AARCH64_SVE_CONTEXT_P_REGS_OFFSET): Likewise.
1972         (AARCH64_SVE_CONTEXT_FFR_OFFSET): Likewise.
1973         (AARCH64_SVE_CONTEXT_SIZE): Likewise.
1974         (read_aarch64_ctx): Add function.
1975         (aarch64_linux_sigframe_init): Detect FP registers.
1976
1977 2018-10-01  Alan Hayward  <alan.hayward@arm.com>
1978
1979         * aarch64-tdep.c (AARCH64_Q0_REGNUM): Move to here.
1980         (AARCH64_D0_REGNUM): Likewise.
1981         (AARCH64_S0_REGNUM): Likewise.
1982         (AARCH64_H0_REGNUM): Likewise.
1983         (AARCH64_B0_REGNUM): Likewise.
1984         (AARCH64_SVE_V0_REGNUM): Likewise.
1985         * arch/aarch64.h (AARCH64_Q0_REGNUM): Move from here.
1986         (AARCH64_D0_REGNUM): Likewise.
1987         (AARCH64_S0_REGNUM): Likewise.
1988         (AARCH64_H0_REGNUM): Likewise.
1989         (AARCH64_B0_REGNUM): Likewise.
1990         (AARCH64_SVE_V0_REGNUM): Likewise.
1991
1992 2018-10-01  Gary Benson <gbenson@redhat.com>
1993
1994         * gdb_proc_service.h (gdb_prfpregset_t): Remove typedef.
1995         * proc-service.c (ps_lgetfpregs, ps_lsetfpregs): Use
1996         prfpregset_t instead of gdb_prfpregset_t.
1997         * configure.ac (PRFPREGSET_T_BROKEN): Remove check.
1998         * configure, config.in: Rebuild.
1999
2000 2018-10-01  Gary Benson <gbenson@redhat.com>
2001
2002         * common/gdb_proc_service.h: New file, factored out from...
2003         * gdb_proc_service.h: Moved common code to the above file.
2004         * Makefile.in (HFILES_NO_SRCDIR): Add the above new file.
2005
2006 2018-10-01  Gary Benson <gbenson@redhat.com>
2007
2008         * gdb_proc_service.h: Use elf_gregset_t if prgregset_t is
2009         undefined.  Use elf_fpregset_t if prfpregset_t is undefined.
2010
2011 2018-10-01  Gary Benson <gbenson@redhat.com>
2012
2013         * configure.ac: Check if sys/procfs.h defines elf_fpregset_t.
2014         (AC_CHECK_HEADERS): Check for linux/elf.h.
2015         * configure, config.in: Rebuild.
2016         * gdb_proc_service.h: Include linux/elf.h if sys/procfs.h
2017         doesn't define elf_fpregset_t.
2018
2019 2018-10-01  Gary Benson <gbenson@redhat.com>
2020
2021         * gdb_proc_service.h: Whitespace change.
2022
2023 2018-10-01  Tom Tromey  <tom@tromey.com>
2024
2025         * unittests/scoped_mmap-selftests.c: Don't check HAVE_UNISTD_H.
2026         * unittests/scoped_fd-selftests.c: Don't check HAVE_UNISTD_H.
2027         * common/scoped_fd.h: Don't check HAVE_UNISTD_H.
2028
2029 2018-10-01  Tom Tromey  <tom@tromey.com>
2030
2031         * README: Minor change.
2032
2033 2018-09-30  Pedro Alves  <palves@redhat.com>
2034
2035         * darwin-nat-info.c (darwin_debug_regions_recurse)
2036         (info_mach_exceptions_command): Remove unused local variables.
2037         * darwin-nat.c (darwin_decode_notify_message)
2038         (darwin_nat_target::resume, darwin_nat_target::mourn_inferior)
2039         (darwin_stop_inferior, darwin_setup_exceptions)
2040         (darwin_nat_target::kill, darwin_attach_pid, darwin_ptrace_him)
2041         (darwin_nat_target::attach, darwin_nat_target::detach)
2042         (darwin_read_write_inferior, darwin_read_dyld_info): Remove unused
2043         local variables.
2044         * i386-darwin-nat.c (i386_darwin_dr_set): Remove unused local
2045         variables.
2046
2047 2018-09-29  Tom Tromey  <tom@tromey.com>
2048
2049         * README: Remove some leftover text.
2050
2051 2018-09-29  Tom Tromey  <tom@tromey.com>
2052
2053         * PROBLEMS: Rewrite.
2054         * README: Update.
2055
2056 2018-09-28  John Baldwin  <jhb@FreeBSD.org>
2057
2058         * disasm-selftests.c (print_one_insn_test): Add bfd_arch_riscv to
2059         case with explicit breakpoint kind.
2060         * riscv-tdep.c (show_use_compressed_breakpoints): Remove
2061         'additional_info' and related logic.
2062         (riscv_debug_breakpoints): New variable.
2063         (riscv_breakpoint_kind_from_pc): Use the length of the existing
2064         instruction to determine the breakpoint kind.
2065         (_initialize_riscv_tdep): Add 'set/show debug riscv breakpoints'
2066         flag.  Update description of 'set/show riscv
2067         use-compressed-breakpoints' flag.
2068
2069 2018-09-28  Andrew Burgess  <andrew.burgess@embecosm.com>
2070
2071         (NEWS): Mention changes to frame related commands.
2072         * cli/cli-decode.c (add_cmd_suppress_notification): New function.
2073         (add_prefix_cmd_suppress_notification): New function.
2074         (add_com_suppress_notification): Call
2075         add_cmd_suppress_notification.
2076         * command.h (add_cmd_suppress_notification): Declare.
2077         (add_prefix_cmd_suppress_notification): Declare.
2078         * mi/mi-cmd-stack.c: Add 'safe-ctype.h' include.
2079         (parse_frame_specification): Moved from stack.c, with
2080         simplification to handle a single argument.
2081         (mi_cmd_stack_select_frame): Use parse_frame_specification, the
2082         switch to the selected frame.  Add a header comment.
2083         * stack.c: Remove 'safe-ctype.h' include.
2084         (find_frame_for_function): Add declaration.
2085         (find_frame_for_address): New function.
2086         (parse_frame_specification): Moved into mi/mi-cmd-stack.c.
2087         (frame_selection_by_function_completer): New function.
2088         (info_frame_command): Rename to...
2089         (info_frame_command_core): ...this, and update parameter types.
2090         (select_frame_command): Rename to...
2091         (select_frame_command_core): ...this, and update parameter types.
2092         (frame_command): Rename to...
2093         (frame_command_core): ...this, and update parameter types.
2094         (class frame_command_helper): New class to wrap implementations of
2095         frame related sub-commands.
2096         (frame_apply_cmd_list): New static global.
2097         (frame_cmd_list): Make static.
2098         (select_frame_cmd_list): New global for sub-commands.
2099         (info_frame_cmd_list): New global for sub-commands.
2100         (_initialize_stack): Register sub-commands for 'frame',
2101         'select-frame', and 'info frame'.  Update 'frame apply' commands
2102         to use frame_apply_cmd_list.  Move function local static
2103         frame_apply_list to file static frame_apply_cmd_list for
2104         consistency.
2105         * stack.h (select_frame_command): Delete declarationn.
2106         (select_frame_for_mi): Declare new function.
2107
2108 2018-09-26  Andrew Burgess  <andrew.burgess@embecosm.com>
2109
2110         * riscv-tdep.c (riscv_insn::decode): Decode c.lui.
2111         (riscv_scan_prologue): Split handling of AUIPC, LUI, ADD, ADDI,
2112         and NOP.
2113
2114 2018-09-26  Simon Marchi  <simon.marchi@ericsson.com>
2115
2116         * elf32-nds32.c (elf32_nds32_allocate_dynrelocs): Remove.
2117
2118 2018-09-26  Tom Tromey  <tom@tromey.com>
2119
2120         * valops.c (auto_abandon): Remove dead code.
2121
2122 2018-09-26  Tom Tromey  <tom@tromey.com>
2123
2124         * tui/tui-win.c (WIN_HEIGHT_USAGE): Remove extra ">"s.
2125
2126 2018-09-24  Tom Tromey  <tom@tromey.com>
2127
2128         * common/pathstuff.c (get_standard_cache_dir): Make
2129         "xdg_cache_home" and "home" const.
2130         * top.c (init_history): Make "tmpenv" const.
2131         * main.c (get_init_files): Make "homedir" const.
2132
2133 2018-09-23  Tom Tromey  <tom@tromey.com>
2134
2135         PR python/18852:
2136         * python/py-param.c (get_set_value): Use gdbpy_handle_exception.
2137
2138 2018-09-23  Tom Tromey  <tom@tromey.com>
2139
2140         * python/py-function.c (fnpy_call): Use gdbpy_handle_exception.
2141         * python/py-cmd.c (cmdpy_function): Use gdbpy_handle_exception.
2142         * python/python-internal.h (gdbpy_handle_exception): Declare.
2143         * python/py-utils.c (gdbpy_handle_exception): New function.
2144
2145 2018-09-23  Tom Tromey  <tom@tromey.com>
2146
2147         PR python/17284:
2148         * python/py-type.c (typy_template_argument): Check for negative
2149         argument number.
2150
2151 2018-09-23  Tom Tromey  <tom@tromey.com>
2152
2153         PR python/14062:
2154         * python/python.c (gdbpy_run_events): Do not ignore exceptions.
2155
2156 2018-09-23  Tom Tromey  <tom@tromey.com>
2157
2158         PR python/18170:
2159         * python/py-value.c (valpy_int): Allow conversion from pointer
2160         type.
2161
2162 2018-09-23  Tom Tromey  <tom@tromey.com>
2163
2164         PR python/20126:
2165         * python/py-value.c (valpy_int): Respect type sign.
2166
2167 2018-09-23  Tom Tromey  <tom@tromey.com>
2168
2169         PR python/18352;
2170         * python/py-value.c (valpy_float): Allow conversions from int or
2171         char.
2172         (valpy_int, valpy_long): Allow conversions from float.
2173
2174 2018-09-23  Tom Tromey  <tom@tromey.com>
2175
2176         * ctf.c (ctf_start): Use gdb_fopen_cloexec.
2177         * common/scoped_mmap.c (mmap_file): Use gdb_open_cloexec.
2178
2179 2018-09-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2180
2181         * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Also recognize
2182         __sighndlr.
2183         * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Likewise.
2184
2185 2018-08-02  Jon Turney  <jon.turney@dronecode.org.uk>
2186
2187         * windows-nat.c (windows_nat_target::wait): Remove a spurious
2188         target_terminal::ours().
2189
2190 2018-09-23  Simon Marchi  <simon.marchi@ericsson.com>
2191
2192         * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): Change type
2193         of vl to ULONGEST.
2194
2195 2018-09-21  Yacov Simhony  <ysimhony@gmail.com>
2196
2197         * breakpoint.c (update_inserted_breakpoint_locations): Remove
2198         redundant condition.
2199
2200 2018-09-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2201
2202         * proc-utils.h (PROC_CTL_WORD_TYPE): Remove.
2203
2204         * procfs.c: Don't check for PR_MODEL_NATIVE definition.
2205         * sparc-sol2-nat.c: Likewise.  Remove Linux, __arch64__ references.
2206         * sol-thread.c (ps_pdmodel): Don't guard definition.
2207
2208         * procfs.c: Fix formatting.
2209
2210         * procfs.c (sysset_t_alloc): Remove.
2211         (create_procinfo): Use XNEW instead of sysset_t_alloc.
2212         (procfs_debug_inferior): Likewise.
2213         (procfs_set_exec_trap): Likewise.
2214         (proc_set_traced_sysentry): Don't allocate argp dynamically.
2215         (proc_set_traced_sysexit): Likewise.
2216
2217         * procfs.c (create_procinfo): Use xsnprintf to fix ARI warning.
2218         (dead_procinfo): Likewise.
2219         (proc_warn): Likewise.
2220         (proc_error): Likewise.
2221         (proc_get_LDT_entry): Likewise.
2222         (do_attach): Likewise.
2223         (procfs_target::pid_to_str): Likewise.
2224         (iterate_over_mappings): Likewise.
2225
2226         * procfs.c (create_procinfo): Fix ARI warning.
2227         (proc_get_status): Likewise.
2228         (proc_stop_process): Likewise.
2229         (proc_run_process): Likewise.
2230         (proc_kill): Likewise.
2231         (proc_get_LDT_entry): Likewise.
2232         (procfs_find_LDT_entry): Likewise.
2233         (proc_update_threads): Likewise.
2234         (proc_iterate_over_threads): Likewise.
2235         (do_attach): Likewise.
2236         (procfs_xfer_memory): Likewise.
2237         (invalidate_cache): Likewise.
2238         (procfs_target::resume): Likewise.
2239         (procfs_init_inferior): Likewise.
2240         (procfs_set_exec_trap): Likewise.
2241         (procfs_target::thread_alive): Likewise.
2242         (procfs_target::pid_to_exec_file): Likewise.
2243         (iterate_over_mappings): Likewise.
2244         (procfs_target::make_corefile_notes): Likewise.
2245         * sol-thread.c (sol_thread_target::thread_alive): Likewise.
2246
2247         * procfs.c (procfs_find_LDT_entry): Silence ARI warning.
2248         (procfs_find_LDT_entry): Likewise.
2249         * sol-thread.c (ps_lgetLDT): Likewise.
2250
2251 2018-09-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2252
2253         PR tdep/17903
2254         * procfs.c (procfs_target): Declare pid_to_exec_file.
2255         (procfs_target::pid_to_exec_file): New.
2256
2257 2018-09-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2258
2259         * auxv.c (default_print_auxv_entry): Reflect AT_SUN_CAP_HW1
2260         renaming.
2261         Handle AT_SUN_EMULATOR, AT_SUN_BRANDNAME, AT_SUN_BRAND_AUX1,
2262         AT_SUN_BRAND_AUX2, AT_SUN_BRAND_AUX3, AT_SUN_CAP_HW2.
2263
2264 2018-09-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2265
2266         * i386-v4-nat.c (regmap, supply_gregset, fill_gregset)
2267         (supply_fpregset, fill_fpregset): Move ...
2268         * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64]: ... here.
2269         Remove HAVE_GREGSET_T, HAVE_FPREGET_T guards.
2270         Remove references to ioctl-based procfs.
2271         Include <sys/reg.h>.
2272         Remove PR_MODEL_NATIVE guards.
2273         * configure.nat <sol2, i386> (NATDEPFILES): Remove i386-v4-nat.o.
2274         * Makefile.in (ALLDEPFILES): Remove i386-v4-nat.c.
2275
2276 2018-09-19  Xavier Roirand  <roirand@adacore.com>
2277
2278         PR gdb/20981:
2279         * solib-darwin.c (darwin_get_dyld_bfd): New function.
2280         (darwin_solib_get_all_image_info_addr_at_init): Update call.
2281         (darwin_solib_create_inferior_hook): Handle unrelocated dyld.
2282
2283 2018-09-19  John Baldwin  <jhb@FreeBSD.org>
2284
2285         * fbsd-tdep.c (fbsd_print_sockaddr_in): Style fix.
2286         (fbsd_print_sockaddr_in6): Likewise.
2287
2288 2018-09-19  Richard Bunt  <richard.bunt@arm.com>
2289             Chris January  <chris.january@arm.com>
2290
2291         * eval.c (skip_undetermined_arglist): Skip argument list helper.
2292         (evaluate_subexp_standard): Return a dummy type when
2293         honoring EVAL_SKIP in OP_VAR_VALUE and handle skipping in the
2294         OP_F77_UNDETERMINED_ARGLIST case.
2295         * expression.h (enum noside): Update comment.
2296
2297 2018-09-19  George Vasick <george.vasick@oracle.com>
2298
2299         * solib-svr4.c (svr4_same_1): Also handle amd64 ld.so.1.
2300
2301 2018-09-19  Stefan Teleman <stefan.teleman@oracle.com>
2302             April Chin <april.chin@oracle.com>
2303             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2304
2305         * procfs.c (MAX_PROC_NAME_SIZE): Allow for 6-digit PID_MAX and
2306         uint_t lwpid_t.
2307         (create_procinfo): Print pids in /proc without leading zeros.
2308
2309 2018-09-18  Sandra Loosemore  <sandra@codesourcery.com>
2310
2311         * nios2-tdep.c (nios2_gcc_target_options): New.
2312         (nios2_gdb_arch_init): Install new hook.
2313
2314 2018-09-18  Simon Marchi  <simon.marchi@ericsson.com>
2315
2316         * patches/0001-Fix-PR-gdb-23558-Use-system-s-getcwd-when-cross-comp.patch:
2317         New file.
2318         * update-gnulib.sh: Apply patch.
2319         * configure: Re-generate.
2320
2321 2018-09-18  John Baldwin  <jhb@FreeBSD.org>
2322
2323         * infcmd.c (_initialize_infcmd): Remove "running" from "info proc"
2324         description.  Make "info proc" command descriptions more
2325         consistent.
2326
2327 2018-09-18  John Baldwin  <jhb@FreeBSD.org>
2328
2329         * NEWS: Mention 'info proc files' command.
2330
2331 2018-09-18  John Baldwin  <jhb@FreeBSD.org>
2332
2333         * fbsd-nat.c (fbsd_nat_target::info_proc): List open file
2334         descriptors for IP_FILES and IP_ALL.
2335
2336 2018-09-18  John Baldwin  <jhb@FreeBSD.org>
2337
2338         * fbsd-tdep.c (KF_FLAGS, KF_OFFSET, KF_VNODE_TYPE, KF_SOCK_DOMAIN)
2339         (KF_SOCK_TYPE, KF_SOCK_PROTOCOL, KF_SA_LOCAL, KF_SA_PEER)
2340         (KINFO_FILE_TYPE_SOCKET, KINFO_FILE_TYPE_PIPE)
2341         (KINFO_FILE_TYPE_FIFO, KINFO_FILE_TYPE_KQUEUE)
2342         (KINFO_FILE_TYPE_CRYPTO, KINFO_FILE_TYPE_MQUEUE)
2343         (KINFO_FILE_TYPE_SHM, KINFO_FILE_TYPE_SEM, KINFO_FILE_TYPE_PTS)
2344         (KINFO_FILE_TYPE_PROCDESC, KINFO_FILE_FD_TYPE_ROOT)
2345         (KINFO_FILE_FD_TYPE_JAIL, KINFO_FILE_FD_TYPE_TRACE)
2346         (KINFO_FILE_FD_TYPE_CTTY, KINFO_FILE_FLAG_READ)
2347         (KINFO_FILE_FLAG_WRITE, KINFO_FILE_FLAG_APPEND)
2348         (KINFO_FILE_FLAG_ASYNC, KINFO_FILE_FLAG_FSYNC)
2349         (KINFO_FILE_FLAG_NONBLOCK, KINFO_FILE_FLAG_DIRECT)
2350         (KINFO_FILE_FLAG_HASLOCK, KINFO_FILE_FLAG_EXEC)
2351         (KINFO_FILE_VTYPE_VREG, KINFO_FILE_VTYPE_VDIR)
2352         (KINFO_FILE_VTYPE_VCHR, KINFO_FILE_VTYPE_VLNK)
2353         (KINFO_FILE_VTYPE_VSOCK, KINFO_FILE_VTYPE_VFIFO, FBSD_AF_UNIX)
2354         (FBSD_AF_INET, FBSD_AF_INET6, FBSD_SOCK_STREAM, FBSD_SOCK_DGRAM)
2355         (FBSD_SOCK_SEQPACKET, FBSD_IPPROTO_ICMP, FBSD_IPPROTO_TCP)
2356         (FBSD_IPPROTO_UDP, FBSD_IPPROTO_SCTP): New defines.
2357         (struct fbsd_sockaddr_in, struct fbsd_sockaddr_in6)
2358         (struct fbsd_sockaddr_un): New types.
2359         (fbsd_file_fd, fbsd_file_type, fbsd_file_flags, fbsd_ipproto)
2360         (fbsd_print_sockaddr_in, fbsd_print_sockaddr_in6)
2361         (fbsd_info_proc_files_header, fbsd_info_proc_files_entry)
2362         (fbsd_core_info_proc_files): New functions.
2363         (fbsd_core_info_proc): List open file descriptors for IP_FILES and
2364         IP_ALL.
2365         * fbsd-tdep.h (fbsd_info_proc_files_header)
2366         (fbsd_info_proc_files_entry): New.
2367
2368 2018-09-18  John Baldwin  <jhb@FreeBSD.org>
2369
2370         * defs.h (enum info_proc_what) [IP_FILES]: New value.
2371         * infcmd.c (info_proc_cmd_files): New function.
2372         (_initialize_infcmd): Register 'info proc files' command.
2373
2374 2018-09-18  John Baldwin  <jhb@FreeBSD.org>
2375
2376         * gnulib/aclocal-m4-deps.mk: Re-generate.
2377         * gnulib/aclocal.m4: Re-generate.
2378         * gnulib/config.in: Re-generate.
2379         * gnulib/configure: Re-generate.
2380         * gnulib/import/Makefile.am: Re-generate.
2381         * gnulib/import/Makefile.in: Re-generate.
2382         * gnulib/import/m4/gnulib-cache.m4: Re-generate.
2383         * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2384         * gnulib/import/arpa_inet.in.h: New file.
2385         * gnulib/import/inet_ntop.c: New file.
2386         * gnulib/import/m4/arpa_inet_h.m4: New file.
2387         * gnulib/import/m4/inet_ntop.m4: New file.
2388         * gnulib/import/m4/netinet_in_h.m4: New file.
2389         * gnulib/import/m4/socklen.m4: New file.
2390         * gnulib/import/m4/sockpfaf.m4: New file.
2391         * gnulib/import/m4/stdalign.m4: New file.
2392         * gnulib/import/m4/sys_uio_h.m4: New file.
2393         * gnulib/import/netinet_in.in.h: New file.
2394         * gnulib/import/stdalign.in.h: New file.
2395         * gnulib/import/sys_socket.c: New file.
2396         * gnulib/import/sys_socket.in.h: New file.
2397         * gnulib/import/sys_uio.in.h: New file.
2398         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add inet_ntop
2399         module.
2400
2401 2018-09-18  John Baldwin  <jhb@FreeBSD.org>
2402
2403         * gnulib/aclocal-m4-deps.mk: New file.
2404         * gnulib/update-gnulib.sh: Generate "aclocal-m4-deps.mk"
2405         deterministically.
2406
2407 2018-09-18  John Baldwin  <jhb@FreeBSD.org>
2408
2409         * fbsd-tdep.c (fbsd_core_vnode_path): Use KF_PATH instead of
2410         KVE_PATH.
2411
2412 2018-09-18  Tom Tromey  <tom@tromey.com>
2413
2414         * compile/compile-object-load.c (struct
2415         link_hash_table_cleanup_data): Add constructor and destructor.
2416         Use DISABLE_COPY_AND_ASSIGN.
2417         (~link_hash_table_cleanup_data): Rename from
2418         link_hash_table_free.  Now a destructor.
2419         (copy_sections): Use gdb::unique_xmalloc_ptr.  Remove cleanups.
2420
2421 2018-09-18  Tom Tromey  <tom@tromey.com>
2422
2423         * compile/compile-object-run.c (do_module_cleanup): Use delete.
2424         * compile/compile-object-load.c (struct munmap_list): Move to
2425         header file.
2426         (munmap_list::add): Rename from munmap_list_add; rewrite.
2427         (munmap_list::~munmap_list): Rename from munmap_list_free.
2428         (munmap_listp_free_cleanup): Remove.
2429         (compile_object_load): Update.
2430         * compile/compile-object-load.h (struct munmap_list): Move from
2431         compile-object-load.c.  Rewrite.
2432
2433 2018-09-18  Alan Hayward  <alan.hayward@arm.com>
2434
2435         * aarch64-tdep.c (pass_in_v): Use register size.
2436         (aarch64_extract_return_value): Likewise.
2437         (aarch64_store_return_value): Likewise.
2438
2439 2018-09-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2440
2441         * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to
2442         rlim_t.
2443
2444 2018-09-17  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
2445
2446         * python/lib/gdb/command/frame_filters.py (EnableFrameFilter):
2447         Fix short help line.
2448
2449 2018-09-17  Tom Tromey  <tom@tromey.com>
2450
2451         PR python/20445:
2452         * configure: Rebuild.
2453         * configure.ac: Conditionally use -DNDEBUG for Python.
2454
2455 2018-09-17  Tom Tromey  <tom@tromey.com>
2456
2457         * configure: Rebuild.
2458         * configure.ac: Use gmp as a library dependency when checking for
2459         mpfr.
2460
2461 2018-09-17  Pedro Alves  <palves@redhat.com>
2462
2463         * python/py-inferior.c (find_inferior_object): Delete.
2464
2465 2018-09-17  Simon Marchi  <simon.marchi@ericsson.com>
2466
2467         * compile/compile-cplus-types.c
2468         (compile_cplus_instance::enter_scope): Don't use new_scope after
2469         std::move.
2470
2471 2018-09-17  Tom Tromey  <tom@tromey.com>
2472
2473         * common/pathstuff.c (get_standard_cache_dir): Use
2474         ~/Library/Caches on macOS.
2475         * common/pathstuff.h (get_standard_cache_dir): Update comment.
2476
2477 2018-09-17  Simon Marchi  <simon.marchi@polymtl.ca>
2478
2479         PR python/23669
2480         * breakpoint.c (commands_cmd_element): New.
2481         (_initialize_breakpoint): Assign commands_cmd_element.
2482         * breakpoint.h (commands_cmd_element): New.
2483         * cli/cli-script.c (while_cmd_element, if_command,
2484         define_cmd_element): New.
2485         (command_name_equals): Remove.
2486         (process_next_line): Compare commands by pointer, not by name.
2487         (_initialize_cli_script): Assign the various cmd_list_element
2488         variables.
2489         * compile/compile.c (compile_cmd_element): New.
2490         (_initialize_compile): Assign compile_cmd_element.
2491         * compile/compile.h (compile_cmd_element): New.
2492         * guile/guile.c (guile_cmd_element): New.
2493         (install_gdb_commands): Assign guile_cmd_element.
2494         * guile/guile.h (guile_cmd_element): New.
2495         * python/python.c (python_cmd_element): New.
2496         (_initialize_python): Assign python_cmd_element.
2497         * python/python.h (python_cmd_element): New.
2498         * tracepoint.c (while_stepping_cmd_element): New.
2499         (_initialize_tracepoint): Assign while_stepping_cmd_element.
2500         * tracepoint.h (while_stepping_cmd_element): New.
2501
2502 2018-09-17  Tom Tromey  <tom@tromey.com>
2503
2504         * infrun.c (save_infcall_suspend_state): Return
2505         infcall_suspend_state_up.
2506         (save_infcall_control_state): Return infcall_control_state_up.
2507         * inferior.h (save_infcall_suspend_state)
2508         (save_infcall_control_state): Declare later.  Return unique
2509         pointers.
2510
2511 2018-09-17  Tom Tromey  <tom@tromey.com>
2512
2513         * infrun.c (struct stop_context): Declare constructor,
2514         destructor, "changed" method.
2515         (stop_context::stop_context): Rename from save_stop_context.
2516         (stop_context::~stop_context): Rename from
2517         release_stop_context_cleanup.
2518         (normal_stop): Update.
2519         (stop_context::changed): Rename from stop_context_changed.  Return
2520         bool.
2521
2522 2018-09-17  Tom Tromey  <tom@tromey.com>
2523
2524         * inferior.h (struct infcall_suspend_state_deleter): New.
2525         (infcall_suspend_state_up): New typedef.
2526         (struct infcall_control_state_deleter): New.
2527         (infcall_control_state_up): New typedef.
2528         (make_cleanup_restore_infcall_suspend_state)
2529         (make_cleanup_restore_infcall_control_state): Don't declare.
2530         * infcall.c (call_function_by_hand_dummy): Update.
2531         * infrun.c (do_restore_infcall_suspend_state_cleanup)
2532         (make_cleanup_restore_infcall_suspend_state): Remove.
2533         (do_restore_infcall_control_state_cleanup)
2534         (make_cleanup_restore_infcall_control_state): Remove.
2535
2536 2018-09-17  Tom Tromey  <tom@tromey.com>
2537
2538         * gdbthread.h (struct thread_control_state): Add initializer.
2539         (class thread_info) <control>: Remove initializer.
2540         * inferior.h (struct inferior_control_state): Add initializer.
2541         (class inferior) <control>: Remove initializer.
2542         (exit_inferior_1): Update.
2543         * infrun.c (struct infcall_control_state): Add constructors.
2544         (save_infcall_control_state): Use new.
2545         (restore_infcall_control_state, discard_infcall_control_state):
2546         Use delete.
2547
2548 2018-09-17  Tom Tromey  <tom@tromey.com>
2549
2550         * infrun.c (struct infcall_suspend_state) <registers>: Now a
2551         unique_ptr.
2552         <siginfo_data>: Now a unique_xmalloc_ptr.
2553         (save_infcall_suspend_state, restore_infcall_suspend_state)
2554         (discard_infcall_suspend_state)
2555         (get_infcall_suspend_state_regcache): Update.
2556
2557 2018-09-17  Tom Tromey  <tom@tromey.com>
2558
2559         * gdbthread.h (struct thread_suspend_state): Add initializers.
2560         (class thread_info) <suspend>: Remove initializer.
2561         * infrun.c (struct infcall_suspend_state): Add initializers.
2562         (save_infcall_suspend_state): Use new.
2563         (discard_infcall_suspend_state): Use delete.
2564
2565 2018-09-16  Tom Tromey  <tom@tromey.com>
2566
2567         * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
2568         Remove.
2569         * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to
2570         rvalue reference.  Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG.
2571         (py_varobj_iter_new): Likewise.
2572         (py_varobj_get_iterator): Use gdbpy_ref.
2573
2574 2018-09-16  Tom Tromey  <tom@tromey.com>
2575
2576         * python/py-threadevent.c (py_get_event_thread): Simplify.
2577         * python/py-inferior.c (infpy_thread_from_thread_handle):
2578         Return immediately after calling thread_to_thread_object.  Use
2579         Py_RETURN_NONE.
2580         (thread_to_thread_object): Set the exception on a NULL return.
2581
2582 2018-09-16  Simon Marchi  <simon.marchi@polymtl.ca>
2583
2584         * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS.
2585
2586 2018-09-16  Tom Tromey  <tom@tromey.com>
2587
2588         * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
2589         Remove.
2590
2591 2018-09-16  Tom Tromey  <tom@tromey.com>
2592
2593         * python/python-internal.h (thread_to_thread_object): Change
2594         return type.
2595         * python/py-inferior.c (thread_to_thread_object): Return a new
2596         reference.
2597         (infpy_thread_from_thread_handle): Update.
2598         * python/py-infthread.c (gdbpy_selected_thread): Update.
2599         * python/py-stopevent.c (create_stop_event_object): Update.
2600         * python/py-threadevent.c (py_get_event_thread): Return a new
2601         reference.
2602         (py_get_event_thread): Update.
2603         * python/py-event.h (py_get_event_thread): Change return type.
2604         * python/py-continueevent.c (create_continue_event_object):
2605         Update.
2606
2607 2018-09-16  Tom Tromey  <tom@tromey.com>
2608
2609         * python/py-progspace.c (pspy_get_objfiles): Update.
2610         * python/python-internal.h (objfile_to_objfile_object): Change
2611         return type.
2612         * python/py-newobjfileevent.c (create_new_objfile_event_object):
2613         Update.
2614         * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
2615         Update.
2616         * python/python.c (gdbpy_get_current_objfile): Update.
2617         (gdbpy_objfiles): Update.
2618         * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile):
2619         Update.
2620         (objfile_to_objfile_object): Return a new reference.
2621         * python/py-symtab.c (stpy_get_objfile): Update.
2622         * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
2623         Update.
2624
2625 2018-09-16  Tom Tromey  <tom@tromey.com>
2626
2627         * python/py-inferior.c (infpy_get_progspace): Update.
2628         * python/python-internal.h (pspace_to_pspace_object): Change
2629         return type.
2630         * python/py-newobjfileevent.c
2631         (create_clear_objfiles_event_object): Update.
2632         * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
2633         Update.
2634         * python/python.c (gdbpy_get_current_progspace): Update.
2635         (gdbpy_progspaces): Update.
2636         * python/py-progspace.c (pspace_to_pspace_object): Return a new
2637         reference.
2638         * python/py-objfile.c (objfpy_get_progspace): Update.
2639         * python/py-prettyprint.c (find_pretty_printer_from_progspace):
2640         Update.
2641
2642 2018-09-16  Tom Tromey  <tom@tromey.com>
2643
2644         * python/lib/gdb/__init__.py (current_progspace, objfiles)
2645         (solib_name, block_for_pc, find_pc_line): New functions.
2646         (execute_unwinders): Update.
2647         * python/py-block.c (gdbpy_block_for_pc): Remove.
2648         * python/py-inferior.c (infpy_get_progspace): New function.
2649         (inferior_object_getset) <progspace>: Add.
2650         * python/py-progspace.c (pspy_objfiles): Rewrite.
2651         (pspy_solib_name, pspy_block_for_pc)
2652         (pspy_find_pc_line, pspy_is_valid): New functions.
2653         (progspace_object_methods): Add entries for solib_name,
2654         block_for_pc, find_pc_line, is_valid.
2655         * python/python-internal.h (gdbpy_block_for_pc)
2656         (build_objfiles_list): Don't declare.
2657         * python/python.c: Don't include solib.h.
2658         (gdbpy_solib_name, gdbpy_find_pc_line)
2659         (gdbpy_get_current_progspace, build_objfiles_list)
2660         (gdbpy_objfiles): Remove.
2661         (GdbMethods) <current_progspace, objfiles, block_for_pc,
2662         solib_name, find_pc_line>: Remove entries.
2663
2664 2018-09-16  Tom Tromey  <tom@tromey.com>
2665
2666         * top.c (new_ui_command): Use GNU style for metasyntactic
2667         variables.
2668         * breakpoint.c (stopat_command): Use GNU style for metasyntactic
2669         variables.
2670         * maint.c (maintenance_translate_address): Remove "<>" around
2671         text.
2672         * interps.c (interpreter_exec_cmd): Use GNU style for
2673         metasyntactic variables.
2674         * nto-procfs.c (nto_procfs_target_info): Use GNU style for
2675         metasyntactic variables.
2676         * tracepoint.c (tfind_range_command): Use GNU style for
2677         metasyntactic variables.
2678         (tfind_outside_command): Likewise.
2679         (_initialize_tracepoint): Likewise.
2680         * remote.c (extended_remote_target::create_inferior): Use GNU
2681         style for metasyntactic variables.
2682         * sparc64-tdep.c (adi_examine_command): Use GNU style for
2683         metasyntactic variables.
2684         (adi_assign_command): Likewise.
2685
2686 2018-09-16  Tom Tromey  <tom@tromey.com>
2687
2688         * disasm.c (show_disassembler_options_sfunc): Use GNU style for
2689         metasyntactic variables.  Print message if no disassembler options
2690         are available.
2691
2692 2018-09-15  Tom Tromey  <tom@tromey.com>
2693
2694         * infcmd.c (get_inferior_args): Return const char *.
2695         * inferior.h (get_inferior_args): Return type now const.
2696         * linux-tdep.c (linux_fill_prpsinfo): Update.
2697         * procfs.c (procfs_target::make_corefile_notes): Update.
2698
2699 2018-09-07  Tom Tromey  <tom@tromey.com>
2700
2701         * python/python.c (execute_gdb_command): Call bpstat_do_actions
2702         inside the TRY.
2703
2704 2018-09-14  Sandra Loosemore  <sandra@codesourcery.com>
2705
2706         * nios2-tdep.c (nios2_type_align): New.
2707         (nios2_gdb_arch_init): Install type_align hook.
2708
2709 2018-09-10  Andrew Burgess  <andrew.burgess@embecosm.com>
2710
2711         * eval.c (fake_method::fake_method): Call xzalloc directly for a
2712         type that is neither object file owned, nor gdbarch owned.
2713         * gdbtypes.c (get_type_gdbarch): Add an assert that returned
2714         gdbarch is non-NULL.
2715         (alloc_type_instance): Allocate non-objfile owned types on the
2716         gdbarch obstack.
2717         (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA
2718         using TYPE_ALLOC to ensure memory is allocated on the correct
2719         obstack.
2720         * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile
2721         obstack, or the gdbarch obstack.
2722         (TYPE_ZALLOC): Rewrite using TYPE_ALLOC.
2723
2724 2018-09-14  Tom Tromey  <tom@tromey.com>
2725
2726         * infcall.c (call_function_by_hand_dummy): Remove unnecessary
2727         block.
2728
2729 2018-09-14  Tom Tromey  <tom@tromey.com>
2730
2731         * nat/fork-inferior.c (get_startup_shell): Remove "static".
2732
2733 2018-09-13  Tom Tromey  <tom@tromey.com>
2734
2735         * python/py-inferior.c (infpy_thread_from_thread_handle): Now
2736         static.
2737
2738 2018-09-13  Tom Tromey  <tom@tromey.com>
2739
2740         * exec.c (try_open_exec_file): Use std::string.
2741
2742 2018-09-13  Tom Tromey  <tom@tromey.com>
2743
2744         * utils.h (gdb_bfd_errmsg): Return std::string.
2745         * exec.c (exec_file_attach): Update.
2746         * compile/compile-object-load.c (compile_object_load): Update.
2747         * utils.c (gdb_bfd_errmsg): Return std::string.
2748
2749 2018-09-13  Tom Tromey  <tom@tromey.com>
2750
2751         * procfs.c (struct procinfo_deleter): New.
2752         (procinfo_up): New typedef.
2753         (do_destroy_procinfo_cleanup): Remove.
2754         (procfs_target::info_proc): Use procinfo_up.  Remove cleanups.
2755
2756 2018-09-13  Tom Tromey  <tom@tromey.com>
2757
2758         * source.c (add_path): Use gdb::unique_xmalloc_ptr.
2759
2760 2018-09-13  Simon Marchi  <simon.marchi@ericsson.com>
2761 2018-09-13  Tom Tromey  <tom@tromey.com>
2762
2763         * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro.
2764         (pspy_get_objfiles): New function.
2765         (progspace_object_methods): New.
2766         (pspace_object_type): Add tp_methods callback.
2767         * python/python-internal.h (build_objfiles_list): New
2768         declaration.
2769         * python/python.c (build_objfiles_list): New function.
2770         (gdbpy_objfiles): Implement using build_objfiles_list.
2771         * NEWS: Mention the Progspace.objfiles method.
2772
2773 2018-09-13  Simon Marchi  <simon.marchi@ericsson.com>
2774
2775         * python/py-inferior.c (infpy_get_progspace): New function.
2776         (inferior_object_getset): Add progspace property.
2777         * NEWS: Mention the new property.
2778
2779 2018-09-13  Tom Tromey  <tom@tromey.com>
2780
2781         PR rust/23650:
2782         * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
2783
2784 2018-09-13  Tom Tromey  <tom@tromey.com>
2785
2786         PR rust/23626:
2787         * rust-lang.c (rust_enum_variant): Now static.
2788         (rust_empty_enum_p): New function.
2789         (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
2790         Handle empty enum.
2791
2792 2018-09-13  Simon Marchi  <simon.marchi@ericsson.com>
2793
2794         * python/py-inferior.c (infpy_repr): New.
2795         (inferior_object_type): Register infpy_repr.
2796         * python/py-objfile.c (objfpy_repr): New.
2797         (objfile_object_type): Register objfpy_repr.
2798
2799 2018-09-12  John Baldwin  <jhb@FreeBSD.org>
2800
2801         * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
2802
2803 2018-09-12  John Baldwin  <jhb@FreeBSD.org>
2804
2805         * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
2806         typo.
2807
2808 2018-09-12  Sergio Durigan Junior  <sergiodj@redhat.com>
2809
2810         * common/common-utils.c: Don't include '<sys/stat.h>'.
2811         (is_regular_file): Move to...
2812         * common/filestuff.c (is_regular_file): ... here.
2813         * common/common-utils.h (is_regular_file): Move to...
2814         * common/filestuff.h (is_regular_file): ... here.
2815
2816 2018-09-12  Simon Marchi  <simon.marchi@ericsson.com>
2817
2818         * skip.c (debug_skip): New variable.
2819         (skiplist_entry::do_skip_file_p): Add debug output.
2820         (skiplist_entry::do_skip_gfile_p): Likewise.
2821         (skiplist_entry::skip_function_p): Likewise.
2822         (_initialize_step_skip): Create debug command.
2823         * NEWS: Mention set/show debug skip.
2824
2825 2018-09-11  Xavier Roirand  <roirand@adacore.com>
2826
2827         * darwin-nat.c (should_disable_startup_with_shell):
2828         New function.
2829         (darwin_nat_target::create_inferior): Add call.
2830
2831 2018-09-11  Xavier Roirand  <roirand@adacore.com>
2832
2833         * darwin-nat.h (struct darwin_thread_info) <gdb_port,
2834         inf_port, msg_state>: Initialize.
2835         (struct darwin_thread_info) <signaled, single_step>: Change
2836         type and initialize.
2837         (struct darwin_thread_info) <event>: Initialize.
2838
2839 2018-09-10  Sergio Durigan Junior  <sergiodj@redhat.com>
2840
2841         PR gdb/23555
2842         PR gdb/23558
2843         * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
2844         guesses.
2845
2846 2018-09-10  Sergio Durigan Junior  <sergiodj@redhat.com>
2847
2848         Revert:
2849         2018-08-29  Sergio Durigan Junior  <sergiodj@redhat.com>
2850
2851         PR gdb/23555
2852         PR gdb/23558
2853         * gnulib/aclocal.m4: Regenerate.
2854         * gnulib/config.in: Regenerate.
2855         * gnulib/configure: Regenerate.
2856         * gnulib/import/Makefile.am: Update.
2857         * gnulib/import/Makefile.in: Update.
2858         * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
2859         * gnulib/import/_Noreturn.h: ... this.
2860         * gnulib/import/alloca.in.h: Update.
2861         * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
2862         * gnulib/import/arg-nonnull.h: ... this.
2863         * gnulib/import/assure.h: Update.
2864         * gnulib/import/at-func.c: Update.
2865         * gnulib/import/basename-lgpl.c: Update.
2866         * gnulib/import/extra/snippet/c++defs.h: Rename to...
2867         * gnulib/import/c++defs.h: ... this.
2868         * gnulib/import/canonicalize-lgpl.c: Update.
2869         * gnulib/import/cdefs.h: Update.
2870         * gnulib/import/chdir-long.c: Update.
2871         * gnulib/import/chdir-long.h: Update.
2872         * gnulib/import/cloexec.c: Update.
2873         * gnulib/import/cloexec.h: Update.
2874         * gnulib/import/close.c: Update.
2875         * gnulib/import/closedir.c: Update.
2876         * gnulib/import/config.charset: Update.
2877         * gnulib/import/dirent-private.h: Update.
2878         * gnulib/import/dirent.in.h: Update.
2879         * gnulib/import/dirfd.c: Update.
2880         * gnulib/import/dirname-lgpl.c: Update.
2881         * gnulib/import/dirname.h: Update.
2882         * gnulib/import/dosname.h: Update.
2883         * gnulib/import/dup-safer-flag.c: Update.
2884         * gnulib/import/dup-safer.c: Update.
2885         * gnulib/import/dup.c: Update.
2886         * gnulib/import/dup2.c: Update.
2887         * gnulib/import/errno.in.h: Update.
2888         * gnulib/import/error.c: Update.
2889         * gnulib/import/error.h: Update.
2890         * gnulib/import/exitfail.c: Update.
2891         * gnulib/import/exitfail.h: Update.
2892         * gnulib/import/extra/update-copyright: Update.
2893         * gnulib/import/fchdir.c: Update.
2894         * gnulib/import/fcntl.c: Update.
2895         * gnulib/import/fcntl.in.h: Update.
2896         * gnulib/import/fd-hook.c: Update.
2897         * gnulib/import/fd-hook.h: Update.
2898         * gnulib/import/fd-safer-flag.c: Update.
2899         * gnulib/import/fd-safer.c: Update.
2900         * gnulib/import/fdopendir.c: Update.
2901         * gnulib/import/filename.h: Update.
2902         * gnulib/import/filenamecat-lgpl.c: Update.
2903         * gnulib/import/filenamecat.h: Update.
2904         * gnulib/import/flexmember.h: Update.
2905         * gnulib/import/float+.h: Update.
2906         * gnulib/import/float.c: Update.
2907         * gnulib/import/float.in.h: Update.
2908         * gnulib/import/fnmatch.c: Update.
2909         * gnulib/import/fnmatch.in.h: Update.
2910         * gnulib/import/fnmatch_loop.c: Update.
2911         * gnulib/import/fpucw.h: Update.
2912         * gnulib/import/frexp.c: Update.
2913         * gnulib/import/frexpl.c: Update.
2914         * gnulib/import/fstat.c: Update.
2915         * gnulib/import/fstatat.c: Update.
2916         * gnulib/import/getcwd-lgpl.c: Update.
2917         * gnulib/import/getcwd.c: Update.
2918         * gnulib/import/getdtablesize.c: Update.
2919         * gnulib/import/getlogin_r.c: Update.
2920         * gnulib/import/getprogname.c: Update.
2921         * gnulib/import/getprogname.h: Update.
2922         * gnulib/import/gettext.h: Update.
2923         * gnulib/import/gettimeofday.c: Update.
2924         * gnulib/import/glob-libc.h: Update.
2925         * gnulib/import/glob.c: Update.
2926         * gnulib/import/glob.in.h: Update.
2927         * gnulib/import/glob_internal.h: Update.
2928         * gnulib/import/glob_pattern_p.c: Update.
2929         * gnulib/import/globfree.c: Update.
2930         * gnulib/import/hard-locale.c: Update.
2931         * gnulib/import/hard-locale.h: Update.
2932         * gnulib/import/intprops.h: Update.
2933         * gnulib/import/inttypes.in.h: Update.
2934         * gnulib/import/isnan.c: Update.
2935         * gnulib/import/isnand-nolibm.h: Update.
2936         * gnulib/import/isnand.c: Update.
2937         * gnulib/import/isnanl-nolibm.h: Update.
2938         * gnulib/import/isnanl.c: Update.
2939         * gnulib/import/itold.c: Update.
2940         * gnulib/import/libc-config.h: Update.
2941         * gnulib/import/limits.in.h: Update.
2942         * gnulib/import/localcharset.c: Update.
2943         * gnulib/import/localcharset.h: Update.
2944         * gnulib/import/localtime-buffer.c: Update.
2945         * gnulib/import/localtime-buffer.h: Update.
2946         * gnulib/import/lstat.c: Update.
2947         * gnulib/import/m4/00gnulib.m4: Update.
2948         * gnulib/import/m4/__inline.m4: Update.
2949         * gnulib/import/m4/absolute-header.m4: Update.
2950         * gnulib/import/m4/alloca.m4: Update.
2951         * gnulib/import/m4/builtin-expect.m4: Update.
2952         * gnulib/import/m4/canonicalize.m4: Update.
2953         * gnulib/import/m4/chdir-long.m4: Update.
2954         * gnulib/import/m4/close.m4: Update.
2955         * gnulib/import/m4/closedir.m4: Update.
2956         * gnulib/import/m4/configmake.m4: Update.
2957         * gnulib/import/m4/d-ino.m4: Update.
2958         * gnulib/import/m4/d-type.m4: Update.
2959         * gnulib/import/m4/dirent_h.m4: Update.
2960         * gnulib/import/m4/dirfd.m4: Update.
2961         * gnulib/import/m4/dirname.m4: Update.
2962         * gnulib/import/m4/double-slash-root.m4: Update.
2963         * gnulib/import/m4/dup.m4: Update.
2964         * gnulib/import/m4/dup2.m4: Update.
2965         * gnulib/import/m4/eealloc.m4: Update.
2966         * gnulib/import/m4/environ.m4: Update.
2967         * gnulib/import/m4/errno_h.m4: Update.
2968         * gnulib/import/m4/error.m4: Update.
2969         * gnulib/import/m4/exponentd.m4: Update.
2970         * gnulib/import/m4/exponentl.m4: Update.
2971         * gnulib/import/m4/extensions.m4: Update.
2972         * gnulib/import/m4/extern-inline.m4: Update.
2973         * gnulib/import/m4/fchdir.m4: Update.
2974         * gnulib/import/m4/fcntl-o.m4: Update.
2975         * gnulib/import/m4/fcntl.m4: Update.
2976         * gnulib/import/m4/fcntl_h.m4: Update.
2977         * gnulib/import/m4/fdopendir.m4: Update.
2978         * gnulib/import/m4/filenamecat.m4: Update.
2979         * gnulib/import/m4/flexmember.m4: Update.
2980         * gnulib/import/m4/float_h.m4: Update.
2981         * gnulib/import/m4/fnmatch.m4: Update.
2982         * gnulib/import/m4/fnmatch_h.m4: Update.
2983         * gnulib/import/m4/fpieee.m4: Update.
2984         * gnulib/import/m4/frexp.m4: Update.
2985         * gnulib/import/m4/frexpl.m4: Update.
2986         * gnulib/import/m4/fstat.m4: Update.
2987         * gnulib/import/m4/fstatat.m4: Update.
2988         * gnulib/import/m4/getcwd-abort-bug.m4: Update.
2989         * gnulib/import/m4/getcwd-path-max.m4: Update.
2990         * gnulib/import/m4/getcwd.m4: Update.
2991         * gnulib/import/m4/getdtablesize.m4: Update.
2992         * gnulib/import/m4/getlogin.m4: Update.
2993         * gnulib/import/m4/getlogin_r.m4: Update.
2994         * gnulib/import/m4/getpagesize.m4: Update.
2995         * gnulib/import/m4/getprogname.m4: Update.
2996         * gnulib/import/m4/gettimeofday.m4: Update.
2997         * gnulib/import/m4/glibc21.m4: Update.
2998         * gnulib/import/m4/glob.m4: Update.
2999         * gnulib/import/m4/glob_h.m4: Update.
3000         * gnulib/import/m4/gnulib-cache.m4: Update.
3001         * gnulib/import/m4/gnulib-common.m4: Update.
3002         * gnulib/import/m4/gnulib-comp.m4: Update.
3003         * gnulib/import/m4/gnulib-tool.m4: Update.
3004         * gnulib/import/m4/hard-locale.m4: Update.
3005         * gnulib/import/m4/include_next.m4: Update.
3006         * gnulib/import/m4/inttypes-pri.m4: Update.
3007         * gnulib/import/m4/inttypes.m4: Update.
3008         * gnulib/import/m4/isnand.m4: Update.
3009         * gnulib/import/m4/isnanl.m4: Update.
3010         * gnulib/import/m4/largefile.m4: Update.
3011         * gnulib/import/m4/limits-h.m4: Update.
3012         * gnulib/import/m4/localcharset.m4: Update.
3013         * gnulib/import/m4/locale-fr.m4: Update.
3014         * gnulib/import/m4/locale-ja.m4: Update.
3015         * gnulib/import/m4/locale-zh.m4: Update.
3016         * gnulib/import/m4/localtime-buffer.m4: Update.
3017         * gnulib/import/m4/longlong.m4: Update.
3018         * gnulib/import/m4/lstat.m4: Update.
3019         * gnulib/import/m4/malloc.m4: Update.
3020         * gnulib/import/m4/malloca.m4: Update.
3021         * gnulib/import/m4/math_h.m4: Update.
3022         * gnulib/import/m4/mbrtowc.m4: Update.
3023         * gnulib/import/m4/mbsinit.m4: Update.
3024         * gnulib/import/m4/mbsrtowcs.m4: Update.
3025         * gnulib/import/m4/mbstate_t.m4: Update.
3026         * gnulib/import/m4/memchr.m4: Update.
3027         * gnulib/import/m4/memmem.m4: Update.
3028         * gnulib/import/m4/mempcpy.m4: Update.
3029         * gnulib/import/m4/memrchr.m4: Update.
3030         * gnulib/import/m4/mkdir.m4: Update.
3031         * gnulib/import/m4/mkstemp.m4: Update.
3032         * gnulib/import/m4/mmap-anon.m4: Update.
3033         * gnulib/import/m4/mode_t.m4: Update.
3034         * gnulib/import/m4/msvc-inval.m4: Update.
3035         * gnulib/import/m4/msvc-nothrow.m4: Update.
3036         * gnulib/import/m4/multiarch.m4: Update.
3037         * gnulib/import/m4/nocrash.m4: Update.
3038         * gnulib/import/m4/off_t.m4: Update.
3039         * gnulib/import/m4/onceonly.m4: Update.
3040         * gnulib/import/m4/open-cloexec.m4: Update.
3041         * gnulib/import/m4/open.m4: Update.
3042         * gnulib/import/m4/openat.m4: Update.
3043         * gnulib/import/m4/opendir.m4: Update.
3044         * gnulib/import/m4/pathmax.m4: Update.
3045         * gnulib/import/m4/rawmemchr.m4: Update.
3046         * gnulib/import/m4/readdir.m4: Update.
3047         * gnulib/import/m4/readlink.m4: Update.
3048         * gnulib/import/m4/realloc.m4: Update.
3049         * gnulib/import/m4/rename.m4: Update.
3050         * gnulib/import/m4/rewinddir.m4: Update.
3051         * gnulib/import/m4/rmdir.m4: Update.
3052         * gnulib/import/m4/save-cwd.m4: Update.
3053         * gnulib/import/m4/secure_getenv.m4: Update.
3054         * gnulib/import/m4/setenv.m4: Update.
3055         * gnulib/import/m4/signal_h.m4: Update.
3056         * gnulib/import/m4/ssize_t.m4: Update.
3057         * gnulib/import/m4/stat-time.m4: Update.
3058         * gnulib/import/m4/stat.m4: Update.
3059         * gnulib/import/m4/std-gnu11.m4: Update.
3060         * gnulib/import/m4/stdbool.m4: Update.
3061         * gnulib/import/m4/stddef_h.m4: Update.
3062         * gnulib/import/m4/stdint.m4: Update.
3063         * gnulib/import/m4/stdio_h.m4: Update.
3064         * gnulib/import/m4/stdlib_h.m4: Update.
3065         * gnulib/import/m4/strchrnul.m4: Update.
3066         * gnulib/import/m4/strdup.m4: Update.
3067         * gnulib/import/m4/strerror.m4: Update.
3068         * gnulib/import/m4/string_h.m4: Update.
3069         * gnulib/import/m4/strstr.m4: Update.
3070         * gnulib/import/m4/strtok_r.m4: Update.
3071         * gnulib/import/m4/sys_socket_h.m4: Update.
3072         * gnulib/import/m4/sys_stat_h.m4: Update.
3073         * gnulib/import/m4/sys_time_h.m4: Update.
3074         * gnulib/import/m4/sys_types_h.m4: Update.
3075         * gnulib/import/m4/tempname.m4: Update.
3076         * gnulib/import/m4/time_h.m4: Update.
3077         * gnulib/import/m4/unistd-safer.m4: Update.
3078         * gnulib/import/m4/unistd_h.m4: Update.
3079         * gnulib/import/m4/warn-on-use.m4: Update.
3080         * gnulib/import/m4/wchar_h.m4: Update.
3081         * gnulib/import/m4/wchar_t.m4: Update.
3082         * gnulib/import/m4/wctype_h.m4: Update.
3083         * gnulib/import/m4/wint_t.m4: Update.
3084         * gnulib/import/malloc.c: Update.
3085         * gnulib/import/malloc/scratch_buffer.h: Update.
3086         * gnulib/import/malloc/scratch_buffer_grow.c: Update.
3087         * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
3088         * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
3089         * gnulib/import/malloca.c: Update.
3090         * gnulib/import/malloca.h: Update.
3091         * gnulib/import/malloca.valgrind: Update.
3092         * gnulib/import/math.in.h: Update.
3093         * gnulib/import/mbrtowc.c: Update.
3094         * gnulib/import/mbsinit.c: Update.
3095         * gnulib/import/mbsrtowcs-impl.h: Update.
3096         * gnulib/import/mbsrtowcs-state.c: Update.
3097         * gnulib/import/mbsrtowcs.c: Update.
3098         * gnulib/import/memchr.c: Update.
3099         * gnulib/import/memmem.c: Update.
3100         * gnulib/import/mempcpy.c: Update.
3101         * gnulib/import/memrchr.c: Update.
3102         * gnulib/import/mkdir.c: Update.
3103         * gnulib/import/mkstemp.c: Update.
3104         * gnulib/import/msvc-inval.c: Update.
3105         * gnulib/import/msvc-inval.h: Update.
3106         * gnulib/import/msvc-nothrow.c: Update.
3107         * gnulib/import/msvc-nothrow.h: Update.
3108         * gnulib/import/open.c: Update.
3109         * gnulib/import/openat-die.c: Update.
3110         * gnulib/import/openat-priv.h: Update.
3111         * gnulib/import/openat-proc.c: Update.
3112         * gnulib/import/openat.c: Update.
3113         * gnulib/import/openat.h: Update.
3114         * gnulib/import/opendir.c: Update.
3115         * gnulib/import/pathmax.h: Update.
3116         * gnulib/import/pipe-safer.c: Update.
3117         * gnulib/import/rawmemchr.c: Update.
3118         * gnulib/import/readdir.c: Update.
3119         * gnulib/import/readlink.c: Update.
3120         * gnulib/import/realloc.c: Update.
3121         * gnulib/import/ref-add.sin: Update.
3122         * gnulib/import/ref-del.sin: Update.
3123         * gnulib/import/rename.c: Update.
3124         * gnulib/import/rewinddir.c: Update.
3125         * gnulib/import/rmdir.c: Update.
3126         * gnulib/import/same-inode.h: Update.
3127         * gnulib/import/save-cwd.c: Update.
3128         * gnulib/import/save-cwd.h: Update.
3129         * gnulib/import/scratch_buffer.h: Update.
3130         * gnulib/import/secure_getenv.c: Update.
3131         * gnulib/import/setenv.c: Update.
3132         * gnulib/import/signal.in.h: Update.
3133         * gnulib/import/stat-time.c: Update.
3134         * gnulib/import/stat-time.h: Update.
3135         * gnulib/import/stat-w32.c: Update.
3136         * gnulib/import/stat-w32.h: Update.
3137         * gnulib/import/stat.c: Update.
3138         * gnulib/import/stdbool.in.h: Update.
3139         * gnulib/import/stddef.in.h: Update.
3140         * gnulib/import/stdint.in.h: Update.
3141         * gnulib/import/stdio.in.h: Update.
3142         * gnulib/import/stdlib.in.h: Update.
3143         * gnulib/import/str-two-way.h: Update.
3144         * gnulib/import/strchrnul.c: Update.
3145         * gnulib/import/strdup.c: Update.
3146         * gnulib/import/streq.h: Update.
3147         * gnulib/import/strerror-override.c: Update.
3148         * gnulib/import/strerror-override.h: Update.
3149         * gnulib/import/strerror.c: Update.
3150         * gnulib/import/string.in.h: Update.
3151         * gnulib/import/stripslash.c: Update.
3152         * gnulib/import/strnlen1.c: Update.
3153         * gnulib/import/strnlen1.h: Update.
3154         * gnulib/import/strstr.c: Update.
3155         * gnulib/import/strtok_r.c: Update.
3156         * gnulib/import/sys_stat.in.h: Update.
3157         * gnulib/import/sys_time.in.h: Update.
3158         * gnulib/import/sys_types.in.h: Update.
3159         * gnulib/import/tempname.c: Update.
3160         * gnulib/import/tempname.h: Update.
3161         * gnulib/import/time.in.h: Update.
3162         * gnulib/import/unistd--.h: Update.
3163         * gnulib/import/unistd-safer.h: Update.
3164         * gnulib/import/unistd.in.h: Update.
3165         * gnulib/import/unsetenv.c: Update.
3166         * gnulib/import/verify.h: Update.
3167         * gnulib/import/extra/snippet/warn-on-use.h: Update.
3168         * gnulib/import/wchar.in.h: Update.
3169         * gnulib/import/wctype.in.h: Update.
3170         * gnulib/import/xalloc-oversized.h: Update.
3171         * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
3172         "53e2c179f26a890fa6685af4b6c1397ee370433b".
3173
3174 2018-09-10  Simon Marchi  <simon.marchi@ericsson.com>
3175
3176         * record-btrace.c (get_thread_current_frame): Remove
3177         old_inferior_ptid.
3178
3179 2018-09-10  Jerome Guitton  <guitton@adacore.com>
3180
3181         * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
3182         with check_tag to 1 if and only if the type is tagged and the
3183         component being searched cannot been found in the current
3184         view. Otherwise, always call ada_to_fixed_type with
3185         check_tag to 0.
3186
3187 2018-09-10  Xavier Roirand  <roirand@adacore.com>
3188
3189         * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
3190         declaration.
3191         * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
3192         * ada-varobj.c (ada_varobj_get_number_of_children,
3193         ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
3194
3195 2018-09-10  Xavier Roirand  <roirand@adacore.com>
3196
3197         * ada-valprint.c (ada_value_print): Use type instead of
3198         enclosing type.
3199
3200 2018-09-10  Xavier Roirand  <roirand@adacore.com>
3201
3202         * ada-lang.c (ada_value_subscript): Handle case when parameter is
3203         an array of access to unconstrained array.
3204
3205 2018-09-10  Xavier Roirand  <roirand@adacore.com>
3206
3207         * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
3208         (ada_check_typedef): Use it.
3209
3210 2018-09-10  Xavier Roirand  <roirand@adacore.com>
3211
3212         * ada-varobj.c (ada_varobj_describe_struct_child)
3213         (ada_varobj_describe_child): Handle union case like struct one.
3214
3215 2018-09-10  Tom Tromey  <tom@tromey.com>
3216
3217         PR python/18380:
3218         * python/python.c (_initialize_python): Make example in "python"
3219         help work in Python 3.
3220
3221 2018-09-10  Eli Zaretskii  <eliz@gnu.org>
3222
3223         * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
3224         INSTALL_PROGRAM to install gdb-add-index.sh.  Don't append
3225         $(EXEEXT) to the script, as it is not a program.
3226
3227 2018-09-09  Simon Marchi  <simon.marchi@ericsson.com>
3228
3229         * python/py-prettyprint.c (pretty_print_one_value): Return
3230         gdbpy_ref<>.
3231         (print_string_repr): Adjust.
3232         (apply_varobj_pretty_printer): Return gdbpy_ref<>.
3233         * python/python-internal.h (apply_varobj_pretty_printer): Return
3234         gdbpy_ref<>.
3235         * varobj.c (varobj_value_get_print_value): Adjust.
3236
3237 2018-09-08  Tom Tromey  <tom@tromey.com>
3238
3239         PR python/16047:
3240         * python/py-prettyprint.c (pretty_print_one_value): Check for
3241         to_string method.
3242
3243 2018-09-08  Joel Brobecker  <brobecker@adacore.com>
3244
3245         * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
3246         replace_operator_with_call.
3247
3248 2018-09-08  Joel Brobecker  <brobecker@adacore.com>
3249
3250         * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
3251
3252 2018-09-08  Joel Brobecker  <brobecker@adacore.com>
3253
3254         * ada-typeprint.c (print_range): Print the bounds using TYPE
3255         rather than its TYPE_TARGET_TYPE.
3256
3257 2018-09-08  Joel Brobecker  <brobecker@adacore.com>
3258
3259         * ada-lang.c (ada_to_fixed_value): Minor reformatting in
3260         call to ada_to_fixed_value_create.
3261
3262 2018-09-08  Jerome Guitton  <guitton@adacore.com>
3263
3264         * ada-lang.c (ada_decode): strip dot prefix in symbol name.
3265
3266 2018-09-08  Joel Brobecker  <brobecker@adacore.com>
3267
3268         * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
3269         by calls to error.
3270
3271 2018-09-08  Joel Brobecker  <brobecker@adacore.com>
3272
3273         * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
3274         Move update of loop variable "fi".
3275
3276 2018-09-08  Joel Brobecker  <brobecker@adacore.com>
3277
3278         * ada-lang.c (value_assign_to_component): In the case of
3279         big-endian targets, extract the bits of the given VAL
3280         using an src_offset of zero if container is not a scalar.
3281
3282 2018-09-06  Simon Ser  <contact@emersion.fr>
3283
3284         PR gdb/23105
3285         * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
3286         TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
3287         * fbsd-tdep.c (fbsd_make_note_desc): New.
3288         (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
3289         NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
3290         * target.h (enum target_object) Add FreeBSD-specific
3291         TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
3292
3293 2018-09-06  Simon Marchi  <simon.marchi@ericsson.com>
3294
3295         * compile/compile-c.h (generate_c_for_variable_locations):
3296         Change reference to pointer.
3297         * compile/compile-c-support.c (compile_program) <compute>:
3298         Likewise.
3299         * compile/compile-c-symbols.c (generate_vla_size): Likewise.
3300         (generate_c_for_for_one_variable): Likewise
3301         (generate_c_for_variable_locations): Likewise
3302         * compile/compile-c-types.c (compile_c_instance::convert_type):
3303         Likewise
3304         * compile/compile-cplus-symbols.c (convert_one_symbol):
3305         std::move the scope passed to enter_scope.
3306         * compile/compile-cplus-types.c
3307         (compile_cplus_instance::enter_scope): Make parameter
3308         rvalue-reference.
3309         (compile_cplus_instance::new_scope): Change reference to
3310         pointer.
3311         (compile_cplus_instance::convert_type): Likewise
3312         (compile_cplus_convert_typedef): std::move the scope passed to
3313         enter_scope.
3314         (compile_cplus_convert_struct_or_union): Likewise.
3315         (compile_cplus_convert_enum): Likewise.
3316         (compile_cplus_convert_namespace): Likewise.
3317         * compile/compile-cplus.h (compile_cplus_instance)
3318         <enter_scope>: Make parameter rvalue-reference.
3319         * compile/compile-internal.h (compile_instance)
3320         <get_cached_type>: Likewise
3321         * compile/compile-loc2c.c (push): Likewise
3322         (pushf): Likewise
3323         (unary): Likewise
3324         (binary): Likewise
3325         (print_label): Likewise
3326         (pushf_register_address): Likewise
3327         (pushf_register): Likewise
3328         (do_compile_dwarf_expr_to_c): Likewise
3329         (compile_dwarf_expr_to_c): Likewise
3330         (compile_dwarf_bounds_to_c): Likewise
3331         * compile/compile.c (compile_instance::get_cached_type):
3332         Likewise
3333         * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
3334         (compile_dwarf_bounds_to_c): Likewise
3335         * dwarf2loc.c (locexpr_generate_c_location): Likewise.
3336         (dwarf2_compile_property_to_c): Likewise
3337         * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
3338         * symtab.h (struct symbol_computed_ops) <generate_c_location>:
3339         Likewise
3340
3341 2018-09-06  Simon Marchi  <simon.marchi@ericsson.com>
3342
3343         * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
3344         * tui/tui-data.c (init_content_element): Don't initialize it.
3345
3346 2018-09-06  Simon Marchi  <simon.marchi@ericsson.com>
3347
3348         * tui/tui-data.h (struct tui_win_info)
3349         <detail::opaque>: Remove.
3350         * tui/tui-data.c (init_win_info): Remove assignment.
3351
3352 2018-09-05  Tom Tromey  <tom@tromey.com>
3353
3354         * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
3355         -Wformat-nonliteral.
3356         * target-float.c (host_float_ops<T>::to_string)
3357         (host_float_ops<T>::from_string): Use
3358         DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
3359         * configure: Rebuild.
3360
3361 2018-09-05  Simon Marchi  <simon.marchi@ericsson.com>
3362
3363         * printcmd.c (printf_c_string): Use
3364         DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
3365         (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
3366
3367 2018-09-05  Tom Tromey  <tom@tromey.com>
3368
3369         * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
3370
3371 2018-09-05  Tom de Vries  <tdevries@suse.de>
3372
3373         * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
3374         with resolve_abstract_p == true.
3375         (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
3376         defaulting to false. Propagate resolve_abstract_p to
3377         dwarf2_fetch_die_loc_sect_off.
3378         * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
3379         parameter, defaulting to false.
3380         * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
3381         (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
3382         parameter.
3383         * dwarf2read.h (struct die_info): Forward-declare.
3384         (die_info_ptr): New typedef.
3385         (struct dwarf2_per_objfile): Add abstract_to_concrete field.
3386
3387 2018-09-05  Joel Brobecker  <brobecker@adacore.com>
3388
3389         GDB 8.2 released.
3390
3391 2018-09-04  Sergio Durigan Junior  <sergiodj@redhat.com>
3392             Pedro Alves  <palves@redhat.com>
3393
3394         * gnulib/Makefile.in (aclocal_m4_deps): Move to
3395         "aclocal-m4-deps.mk".  Include file here.
3396         $(srcdir)/aclocal.m4: Add "configure.ac".
3397         * gnulib/aclocal-m4-deps.mk: New file.
3398         * gnulib/update-gnulib.sh: Automatically update
3399         "aclocal-m4-deps.mk".
3400
3401 2018-09-04  Tom Tromey  <tom@tromey.com>
3402
3403         * configure: Rebuild.
3404         * configure.ac: Remove multi-ice code.
3405
3406 2018-09-04  Tom Tromey  <tom@tromey.com>
3407
3408         * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
3409         (ada-exp.o): Update.
3410
3411 2018-09-04  Tom Tromey  <tom@tromey.com>
3412
3413         * Makefile.in (printcmd.o, target-float.o): Remove.
3414         (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
3415
3416 2018-09-04  Tom Tromey  <tom@tromey.com>
3417
3418         * gnulib/Makefile.in: Remove obsolete comment.
3419         * Makefile.in: Remove obsolete comment.
3420
3421 2018-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
3422
3423         * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
3424         line with '+'.
3425
3426 2018-09-03  Andrew Burgess  <andrew.burgess@embecosm.com>
3427
3428         * riscv-tdep.c: Add 'prologue-value.h' include.
3429         (struct riscv_unwind_cache): New struct.
3430         (riscv_debug_unwinder): New global.
3431         (riscv_scan_prologue): Update arguments, capture register details
3432         from prologue scan.
3433         (riscv_skip_prologue): Reformat arguments line, move end of
3434         prologue calculation into riscv_scan_prologue.
3435         (riscv_frame_cache): Update return type, create
3436         riscv_unwind_cache, scan the prologue, and fill in remaining cache
3437         details.
3438         (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
3439         (riscv_frame_prev_register): Use the trad_frame within the
3440         riscv_unwind_cache.
3441         (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
3442         flag.
3443
3444 2018-09-03  Andrew Burgess  <andrew.burgess@embecosm.com>
3445
3446         * trad-frame.h (trad_frame_set_realreg): Declare.
3447         (trad_frame_set_addr): Declare.
3448         * trad-frame.c (trad_frame_set_realreg): Define new function.
3449         (trad_frame_set_addr): Define new function.
3450         (trad_frame_set_reg_realreg): Use new function.
3451         (trad_frame_set_reg_addr): Use new function.
3452
3453 2018-09-01  Keith Seitz  <keiths@redhat.com>
3454
3455         * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
3456         pulongest instead of "%lld".
3457         * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
3458         ATTRIBUTE_UNUSED.
3459
3460 2018-08-31  Tom Tromey  <tom@tromey.com>
3461
3462         * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
3463         variant part type.
3464
3465 2018-08-31  Pedro Alves  <palves@redhat.com>
3466
3467         * gdbarch.h: Regenerate.
3468
3469 2018-08-31  Pedro Alves  <palves@redhat.com>
3470
3471         * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
3472         * target.h (Hardware watchpoint interfaces): Describe
3473         continuable/steppable/non-steppable watchpoints.
3474         * gdbarch.h, gdbarch.c: Regenerate.
3475
3476 2018-08-31  Pedro Alves  <palves@redhat.com>
3477
3478         * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
3479         Delete.
3480         * s390-linux-nat.c
3481         (s390_linux_nat_target::have_continuable_watchpoint): Delete.
3482         * target.h (target_ops::have_continuable_watchpoint): Delete.
3483         (target_have_continuable_watchpoint): Delete.
3484         * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
3485         * target-delegates.c: Regenerate.
3486
3487 2018-08-31  Sergio Durigan Junior  <sergiodj@redhat.com>
3488
3489         * gnulib/Makefile.in (aclocal_m4_deps): Update according to
3490         the files present in "gnulib/import/m4/".
3491
3492 2018-08-30  Andrew Burgess  <andrew.burgess@embecosm.com>
3493
3494         * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
3495         c.sw, c.swsp, and c.sdsp.
3496
3497 2018-08-30  Andrew Burgess  <andrew.burgess@embecosm.com>
3498
3499         * riscv-tdep.c (struct riscv_inferior_data): Delete.
3500         (riscv_read_misa_reg): Don't cache value read into inferior data.
3501         (riscv_new_inferior_data): Delete.
3502         (riscv_inferior_data_cleanup): Delete.
3503         (riscv_inferior_data): Delete.
3504         (riscv_invalidate_inferior_data): Delete.
3505         (_initialize_riscv_tdep): Remove initialisation of inferior data.
3506
3507 2018-08-30  Simon Marchi  <simon.marchi@ericsson.com>
3508
3509         * compile/compile-cplus-types.c
3510         (compile_cplus_instance::leave_scope): Take the address of scope
3511         object.
3512         (compile_cplus_instance::convert_qualified_base): Compare quals
3513         to 0.
3514
3515 2018-08-30  Keith Seitz  <keiths@redhat.com>
3516
3517         * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
3518         Use "%s" and host_address_to_string instead of "%p" in printf.
3519
3520 2018-08-29  Keith Seitz  <keiths@redhat.com>
3521
3522         * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
3523         and compile-cplus-types.c.
3524         (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
3525         * c-lang.c (cplus_language_defn): Set C++ compile functions.
3526         * c-lang.h (cplus_get_compile_context, cplus_compute_program):
3527         Declare.
3528         * compile/compile-c-support.c: Include compile-cplus.h.
3529         (load_libcompile): Templatize.
3530         (get_compile_context): "New" function.
3531         (c_get_compile_context): Use get_compile_context.
3532         (cplus_get_compile_context): New function.
3533         (cplus_push_user_expression, cplus_pop_user_expression)
3534         (cplus_add_code_header, cplus_add_input, cplus_compile_program)
3535         (cplus_compute_program): Define new structs/functions.
3536         * compile/compile-cplus-symmbols.c: New file.
3537         * compile/compile-cplus-types.c: New file.
3538         * compile/compile-cplus.h: New file.
3539         * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
3540         Declare.
3541         * compile/compile-object-load.c (get_out_value_type): Use
3542         strncmp_iw when comparing symbol names.
3543         (compile_object_load): Add mst_bss and mst_data.
3544         * compile/compile.c (_initialize_compile): Remove
3545         -Wno-implicit-function-declaration from `compile_args'.
3546         * compile/gcc-cp-plugin.h: New file.
3547         * NEWS: Mention C++ compile support and new debug options.
3548
3549 2018-08-29  Keith Seitz  <keiths@redhat.com>
3550
3551         * linespec.c (collect_info::add_symbol): Make virtual.
3552         (struct symbol_searcher_collect_info): New struct.
3553         (symbol_searcher::find_all_symbols): New method.
3554         * symtab.h (class symbol_searcher): New class.
3555
3556 2018-08-29  Keith Seitz  <keiths@redhat.com>
3557
3558         * linespec.c (struct linespec) <function_symbols, label_symbols>:
3559         Change to vector of block_symbol.  Update all users.
3560         (struct collect_info) <symbols>: Likewise.
3561         (collect_info::add_symbol): Take block_symbol as argument.
3562         Update all callers.
3563         (decode_compound_collector) <m_symbols>: Change type to vector
3564         of block_symbol.  Update all users.
3565         (decode_compound_collector::operator ()): Change parameter type
3566         to block_symbol.
3567         (find_method, find_function_symbols, find_linespec_symbols)
3568         (find_label_symbols_in_block, find_label_symbols): Change symbol
3569         vectors to block_symbol vectors.
3570         * symtab.h (symbol_found_callback_ftype): Change parameter type to
3571         block_symbol.
3572
3573 2018-08-29  Keith Seitz  <keiths@redhat.com>
3574
3575         * linespec.c (symbolp): Remove typedef and VEC definitions.
3576         (bound_minimal_symbol_d): Likewise.
3577
3578 2018-08-29  Keith Seitz  <keiths@redhat.com>
3579
3580         * linespec.c (decode_compound_collector::decode_compound_collector):
3581         Remove initialization for `m_symtabs'.
3582         (decode_compound_collector::release_symbols): Change return type
3583         to std::vector.  Update all callers.
3584         (class decode_compound_collector) <m_symbols>: Change type to
3585         std::vector.
3586         (lookup_prefix_sym): Change return type to std::vector.  Update all
3587         callers.
3588         (compare_symbols): Remove.
3589         (std_compare_symbols): Rename to `compare_symbols'.
3590         (find_method): Change `sym_classes' parameter to std::vector.
3591         Update all callers.  Use std::sort to sort sym_classes.
3592         (find_linespec_symbols): Remove cleanup.
3593
3594 2018-08-29  Keith Seitz  <keiths@redhat.com>
3595
3596         * linespec.c (struct linespec) <minimal_symbols>: Change type to
3597         std::vector.  Update all users.
3598         (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
3599         (struct collect_info) <minimal_symbols>: Likewise.
3600         (compare_msymbols): Return bool.  Change parameters to const
3601         bound_minimal_symbol references.
3602         (find_method, find_function_symbols, find_linespec_symbols): Change
3603         `minsyms' parameter to std::vector.  Update all callers.
3604
3605 2018-08-29  Keith Seitz  <keiths@redhat.com>
3606
3607         * linespec.c (struct linespec) <label_symbols>: Change type to
3608         std::vector.  Update all users.
3609         (find_label_symbols_in_block): Change `result' parameter to
3610         std::vector.  Update all callers.
3611         (find_label_symbols): Return std::vector.  Update all callers.
3612
3613 2018-08-29  Keith Seitz  <keiths@redhat.com>
3614
3615         * linespec.c (struct linespec) <function_symbols>: Change type to
3616         std::vector.  Update all users.
3617         (struct collect_info) <function_symbols>: Likewise.
3618         (convert_linespec_to_sals): Use std::sort to sort function_symbols.
3619         (std_compare_symbols): New function.
3620         (find_method, find_function_symbols, find_linespec_symbols)
3621         (find_label_symbols_in_block): Change `symbols' parameter to
3622         std::vector.  Update all callers.
3623         (find_label_symbols): Likewise for `function_symbols' and
3624         `label_funcs_ret'.
3625
3626 2018-08-29  Keith Seitz  <keiths@redhat.com>
3627
3628         * linespec.c (symtab_vector_up): Define.
3629         (struct linespec) <file_symtabs>: Change type to std::vector *.
3630         Update all uses.
3631         (struct collect_info) <file_symtabs>: Likewise.
3632         (collect_symtabs_from_filename): Return symtab_vector_up.
3633         Update all callers.
3634         (decode_objc): Remove cleanup.
3635         (symtab_collector::symtab_collector): Initialize `m_symtabs'.
3636         (symtab_collector::release_symtabs): Return symtab_vector_up.
3637         Update all callers.
3638         (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
3639         Update all users.
3640         (collect_symtabs_from_filename, symtabs_from_filename): Return
3641         symtab_vector_up.  Update all callers.
3642
3643 2018-08-29  Tom Tromey  <tom@tromey.com>
3644
3645         * csky-tdep.c (csky_analyze_prologue): Use
3646         core_addr_to_string_nz.
3647
3648 2018-08-29  Tom Tromey  <tom@tromey.com>
3649
3650         * windows-nat.c (struct xlate_exception) <them>: Change type to
3651         DWORD.
3652         (xlate): Fix formatting.  Remove last entry.
3653         (struct xlate_exception, xlate): Comment out.
3654         (windows_nat_target::resume): Use ranged for.
3655
3656 2018-08-29  Jim Wilson  <jimw@sifive.com>
3657
3658         * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
3659         (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
3660         of NT_PRFPREG.
3661         (riscv_linux_nat_target::store_registers): Likewise.
3662
3663 2018-08-29  Sergio Durigan Junior  <sergiodj@redhat.com>
3664
3665         PR gdb/23555
3666         PR gdb/23558
3667         * gnulib/aclocal.m4: Regenerate.
3668         * gnulib/config.in: Regenerate.
3669         * gnulib/configure: Regenerate.
3670         * gnulib/import/Makefile.am: Update.
3671         * gnulib/import/Makefile.in: Update.
3672         * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
3673         * gnulib/import/_Noreturn.h: ... this.
3674         * gnulib/import/alloca.in.h: Update.
3675         * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
3676         * gnulib/import/arg-nonnull.h: ... this.
3677         * gnulib/import/assure.h: Update.
3678         * gnulib/import/at-func.c: Update.
3679         * gnulib/import/basename-lgpl.c: Update.
3680         * gnulib/import/extra/snippet/c++defs.h: Rename to...
3681         * gnulib/import/c++defs.h: ... this.
3682         * gnulib/import/canonicalize-lgpl.c: Update.
3683         * gnulib/import/cdefs.h: Update.
3684         * gnulib/import/chdir-long.c: Update.
3685         * gnulib/import/chdir-long.h: Update.
3686         * gnulib/import/cloexec.c: Update.
3687         * gnulib/import/cloexec.h: Update.
3688         * gnulib/import/close.c: Update.
3689         * gnulib/import/closedir.c: Update.
3690         * gnulib/import/config.charset: Update.
3691         * gnulib/import/dirent-private.h: Update.
3692         * gnulib/import/dirent.in.h: Update.
3693         * gnulib/import/dirfd.c: Update.
3694         * gnulib/import/dirname-lgpl.c: Update.
3695         * gnulib/import/dirname.h: Update.
3696         * gnulib/import/dosname.h: Update.
3697         * gnulib/import/dup-safer-flag.c: Update.
3698         * gnulib/import/dup-safer.c: Update.
3699         * gnulib/import/dup.c: Update.
3700         * gnulib/import/dup2.c: Update.
3701         * gnulib/import/errno.in.h: Update.
3702         * gnulib/import/error.c: Update.
3703         * gnulib/import/error.h: Update.
3704         * gnulib/import/exitfail.c: Update.
3705         * gnulib/import/exitfail.h: Update.
3706         * gnulib/import/extra/update-copyright: Update.
3707         * gnulib/import/fchdir.c: Update.
3708         * gnulib/import/fcntl.c: Update.
3709         * gnulib/import/fcntl.in.h: Update.
3710         * gnulib/import/fd-hook.c: Update.
3711         * gnulib/import/fd-hook.h: Update.
3712         * gnulib/import/fd-safer-flag.c: Update.
3713         * gnulib/import/fd-safer.c: Update.
3714         * gnulib/import/fdopendir.c: Update.
3715         * gnulib/import/filename.h: Update.
3716         * gnulib/import/filenamecat-lgpl.c: Update.
3717         * gnulib/import/filenamecat.h: Update.
3718         * gnulib/import/flexmember.h: Update.
3719         * gnulib/import/float+.h: Update.
3720         * gnulib/import/float.c: Update.
3721         * gnulib/import/float.in.h: Update.
3722         * gnulib/import/fnmatch.c: Update.
3723         * gnulib/import/fnmatch.in.h: Update.
3724         * gnulib/import/fnmatch_loop.c: Update.
3725         * gnulib/import/fpucw.h: Update.
3726         * gnulib/import/frexp.c: Update.
3727         * gnulib/import/frexpl.c: Update.
3728         * gnulib/import/fstat.c: Update.
3729         * gnulib/import/fstatat.c: Update.
3730         * gnulib/import/getcwd-lgpl.c: Update.
3731         * gnulib/import/getcwd.c: Update.
3732         * gnulib/import/getdtablesize.c: Update.
3733         * gnulib/import/getlogin_r.c: Update.
3734         * gnulib/import/getprogname.c: Update.
3735         * gnulib/import/getprogname.h: Update.
3736         * gnulib/import/gettext.h: Update.
3737         * gnulib/import/gettimeofday.c: Update.
3738         * gnulib/import/glob-libc.h: Update.
3739         * gnulib/import/glob.c: Update.
3740         * gnulib/import/glob.in.h: Update.
3741         * gnulib/import/glob_internal.h: Update.
3742         * gnulib/import/glob_pattern_p.c: Update.
3743         * gnulib/import/globfree.c: Update.
3744         * gnulib/import/hard-locale.c: Update.
3745         * gnulib/import/hard-locale.h: Update.
3746         * gnulib/import/intprops.h: Update.
3747         * gnulib/import/inttypes.in.h: Update.
3748         * gnulib/import/isnan.c: Update.
3749         * gnulib/import/isnand-nolibm.h: Update.
3750         * gnulib/import/isnand.c: Update.
3751         * gnulib/import/isnanl-nolibm.h: Update.
3752         * gnulib/import/isnanl.c: Update.
3753         * gnulib/import/itold.c: Update.
3754         * gnulib/import/libc-config.h: Update.
3755         * gnulib/import/limits.in.h: Update.
3756         * gnulib/import/localcharset.c: Update.
3757         * gnulib/import/localcharset.h: Update.
3758         * gnulib/import/localtime-buffer.c: Update.
3759         * gnulib/import/localtime-buffer.h: Update.
3760         * gnulib/import/lstat.c: Update.
3761         * gnulib/import/m4/00gnulib.m4: Update.
3762         * gnulib/import/m4/__inline.m4: Update.
3763         * gnulib/import/m4/absolute-header.m4: Update.
3764         * gnulib/import/m4/alloca.m4: Update.
3765         * gnulib/import/m4/builtin-expect.m4: Update.
3766         * gnulib/import/m4/canonicalize.m4: Update.
3767         * gnulib/import/m4/chdir-long.m4: Update.
3768         * gnulib/import/m4/close.m4: Update.
3769         * gnulib/import/m4/closedir.m4: Update.
3770         * gnulib/import/m4/configmake.m4: Update.
3771         * gnulib/import/m4/d-ino.m4: Update.
3772         * gnulib/import/m4/d-type.m4: Update.
3773         * gnulib/import/m4/dirent_h.m4: Update.
3774         * gnulib/import/m4/dirfd.m4: Update.
3775         * gnulib/import/m4/dirname.m4: Update.
3776         * gnulib/import/m4/double-slash-root.m4: Update.
3777         * gnulib/import/m4/dup.m4: Update.
3778         * gnulib/import/m4/dup2.m4: Update.
3779         * gnulib/import/m4/eealloc.m4: Update.
3780         * gnulib/import/m4/environ.m4: Update.
3781         * gnulib/import/m4/errno_h.m4: Update.
3782         * gnulib/import/m4/error.m4: Update.
3783         * gnulib/import/m4/exponentd.m4: Update.
3784         * gnulib/import/m4/exponentl.m4: Update.
3785         * gnulib/import/m4/extensions.m4: Update.
3786         * gnulib/import/m4/extern-inline.m4: Update.
3787         * gnulib/import/m4/fchdir.m4: Update.
3788         * gnulib/import/m4/fcntl-o.m4: Update.
3789         * gnulib/import/m4/fcntl.m4: Update.
3790         * gnulib/import/m4/fcntl_h.m4: Update.
3791         * gnulib/import/m4/fdopendir.m4: Update.
3792         * gnulib/import/m4/filenamecat.m4: Update.
3793         * gnulib/import/m4/flexmember.m4: Update.
3794         * gnulib/import/m4/float_h.m4: Update.
3795         * gnulib/import/m4/fnmatch.m4: Update.
3796         * gnulib/import/m4/fnmatch_h.m4: Update.
3797         * gnulib/import/m4/fpieee.m4: Update.
3798         * gnulib/import/m4/frexp.m4: Update.
3799         * gnulib/import/m4/frexpl.m4: Update.
3800         * gnulib/import/m4/fstat.m4: Update.
3801         * gnulib/import/m4/fstatat.m4: Update.
3802         * gnulib/import/m4/getcwd-abort-bug.m4: Update.
3803         * gnulib/import/m4/getcwd-path-max.m4: Update.
3804         * gnulib/import/m4/getcwd.m4: Update.
3805         * gnulib/import/m4/getdtablesize.m4: Update.
3806         * gnulib/import/m4/getlogin.m4: Update.
3807         * gnulib/import/m4/getlogin_r.m4: Update.
3808         * gnulib/import/m4/getpagesize.m4: Update.
3809         * gnulib/import/m4/getprogname.m4: Update.
3810         * gnulib/import/m4/gettimeofday.m4: Update.
3811         * gnulib/import/m4/glibc21.m4: Update.
3812         * gnulib/import/m4/glob.m4: Update.
3813         * gnulib/import/m4/glob_h.m4: Update.
3814         * gnulib/import/m4/gnulib-cache.m4: Update.
3815         * gnulib/import/m4/gnulib-common.m4: Update.
3816         * gnulib/import/m4/gnulib-comp.m4: Update.
3817         * gnulib/import/m4/gnulib-tool.m4: Update.
3818         * gnulib/import/m4/hard-locale.m4: Update.
3819         * gnulib/import/m4/include_next.m4: Update.
3820         * gnulib/import/m4/inttypes-pri.m4: Update.
3821         * gnulib/import/m4/inttypes.m4: Update.
3822         * gnulib/import/m4/isnand.m4: Update.
3823         * gnulib/import/m4/isnanl.m4: Update.
3824         * gnulib/import/m4/largefile.m4: Update.
3825         * gnulib/import/m4/limits-h.m4: Update.
3826         * gnulib/import/m4/localcharset.m4: Update.
3827         * gnulib/import/m4/locale-fr.m4: Update.
3828         * gnulib/import/m4/locale-ja.m4: Update.
3829         * gnulib/import/m4/locale-zh.m4: Update.
3830         * gnulib/import/m4/localtime-buffer.m4: Update.
3831         * gnulib/import/m4/longlong.m4: Update.
3832         * gnulib/import/m4/lstat.m4: Update.
3833         * gnulib/import/m4/malloc.m4: Update.
3834         * gnulib/import/m4/malloca.m4: Update.
3835         * gnulib/import/m4/math_h.m4: Update.
3836         * gnulib/import/m4/mbrtowc.m4: Update.
3837         * gnulib/import/m4/mbsinit.m4: Update.
3838         * gnulib/import/m4/mbsrtowcs.m4: Update.
3839         * gnulib/import/m4/mbstate_t.m4: Update.
3840         * gnulib/import/m4/memchr.m4: Update.
3841         * gnulib/import/m4/memmem.m4: Update.
3842         * gnulib/import/m4/mempcpy.m4: Update.
3843         * gnulib/import/m4/memrchr.m4: Update.
3844         * gnulib/import/m4/mkdir.m4: Update.
3845         * gnulib/import/m4/mkstemp.m4: Update.
3846         * gnulib/import/m4/mmap-anon.m4: Update.
3847         * gnulib/import/m4/mode_t.m4: Update.
3848         * gnulib/import/m4/msvc-inval.m4: Update.
3849         * gnulib/import/m4/msvc-nothrow.m4: Update.
3850         * gnulib/import/m4/multiarch.m4: Update.
3851         * gnulib/import/m4/nocrash.m4: Update.
3852         * gnulib/import/m4/off_t.m4: Update.
3853         * gnulib/import/m4/onceonly.m4: Update.
3854         * gnulib/import/m4/open-cloexec.m4: Update.
3855         * gnulib/import/m4/open.m4: Update.
3856         * gnulib/import/m4/openat.m4: Update.
3857         * gnulib/import/m4/opendir.m4: Update.
3858         * gnulib/import/m4/pathmax.m4: Update.
3859         * gnulib/import/m4/rawmemchr.m4: Update.
3860         * gnulib/import/m4/readdir.m4: Update.
3861         * gnulib/import/m4/readlink.m4: Update.
3862         * gnulib/import/m4/realloc.m4: Update.
3863         * gnulib/import/m4/rename.m4: Update.
3864         * gnulib/import/m4/rewinddir.m4: Update.
3865         * gnulib/import/m4/rmdir.m4: Update.
3866         * gnulib/import/m4/save-cwd.m4: Update.
3867         * gnulib/import/m4/secure_getenv.m4: Update.
3868         * gnulib/import/m4/setenv.m4: Update.
3869         * gnulib/import/m4/signal_h.m4: Update.
3870         * gnulib/import/m4/ssize_t.m4: Update.
3871         * gnulib/import/m4/stat-time.m4: Update.
3872         * gnulib/import/m4/stat.m4: Update.
3873         * gnulib/import/m4/std-gnu11.m4: Update.
3874         * gnulib/import/m4/stdbool.m4: Update.
3875         * gnulib/import/m4/stddef_h.m4: Update.
3876         * gnulib/import/m4/stdint.m4: Update.
3877         * gnulib/import/m4/stdio_h.m4: Update.
3878         * gnulib/import/m4/stdlib_h.m4: Update.
3879         * gnulib/import/m4/strchrnul.m4: Update.
3880         * gnulib/import/m4/strdup.m4: Update.
3881         * gnulib/import/m4/strerror.m4: Update.
3882         * gnulib/import/m4/string_h.m4: Update.
3883         * gnulib/import/m4/strstr.m4: Update.
3884         * gnulib/import/m4/strtok_r.m4: Update.
3885         * gnulib/import/m4/sys_socket_h.m4: Update.
3886         * gnulib/import/m4/sys_stat_h.m4: Update.
3887         * gnulib/import/m4/sys_time_h.m4: Update.
3888         * gnulib/import/m4/sys_types_h.m4: Update.
3889         * gnulib/import/m4/tempname.m4: Update.
3890         * gnulib/import/m4/time_h.m4: Update.
3891         * gnulib/import/m4/unistd-safer.m4: Update.
3892         * gnulib/import/m4/unistd_h.m4: Update.
3893         * gnulib/import/m4/warn-on-use.m4: Update.
3894         * gnulib/import/m4/wchar_h.m4: Update.
3895         * gnulib/import/m4/wchar_t.m4: Update.
3896         * gnulib/import/m4/wctype_h.m4: Update.
3897         * gnulib/import/m4/wint_t.m4: Update.
3898         * gnulib/import/malloc.c: Update.
3899         * gnulib/import/malloc/scratch_buffer.h: Update.
3900         * gnulib/import/malloc/scratch_buffer_grow.c: Update.
3901         * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
3902         * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
3903         * gnulib/import/malloca.c: Update.
3904         * gnulib/import/malloca.h: Update.
3905         * gnulib/import/malloca.valgrind: Update.
3906         * gnulib/import/math.in.h: Update.
3907         * gnulib/import/mbrtowc.c: Update.
3908         * gnulib/import/mbsinit.c: Update.
3909         * gnulib/import/mbsrtowcs-impl.h: Update.
3910         * gnulib/import/mbsrtowcs-state.c: Update.
3911         * gnulib/import/mbsrtowcs.c: Update.
3912         * gnulib/import/memchr.c: Update.
3913         * gnulib/import/memmem.c: Update.
3914         * gnulib/import/mempcpy.c: Update.
3915         * gnulib/import/memrchr.c: Update.
3916         * gnulib/import/mkdir.c: Update.
3917         * gnulib/import/mkstemp.c: Update.
3918         * gnulib/import/msvc-inval.c: Update.
3919         * gnulib/import/msvc-inval.h: Update.
3920         * gnulib/import/msvc-nothrow.c: Update.
3921         * gnulib/import/msvc-nothrow.h: Update.
3922         * gnulib/import/open.c: Update.
3923         * gnulib/import/openat-die.c: Update.
3924         * gnulib/import/openat-priv.h: Update.
3925         * gnulib/import/openat-proc.c: Update.
3926         * gnulib/import/openat.c: Update.
3927         * gnulib/import/openat.h: Update.
3928         * gnulib/import/opendir.c: Update.
3929         * gnulib/import/pathmax.h: Update.
3930         * gnulib/import/pipe-safer.c: Update.
3931         * gnulib/import/rawmemchr.c: Update.
3932         * gnulib/import/readdir.c: Update.
3933         * gnulib/import/readlink.c: Update.
3934         * gnulib/import/realloc.c: Update.
3935         * gnulib/import/ref-add.sin: Update.
3936         * gnulib/import/ref-del.sin: Update.
3937         * gnulib/import/rename.c: Update.
3938         * gnulib/import/rewinddir.c: Update.
3939         * gnulib/import/rmdir.c: Update.
3940         * gnulib/import/same-inode.h: Update.
3941         * gnulib/import/save-cwd.c: Update.
3942         * gnulib/import/save-cwd.h: Update.
3943         * gnulib/import/scratch_buffer.h: Update.
3944         * gnulib/import/secure_getenv.c: Update.
3945         * gnulib/import/setenv.c: Update.
3946         * gnulib/import/signal.in.h: Update.
3947         * gnulib/import/stat-time.c: Update.
3948         * gnulib/import/stat-time.h: Update.
3949         * gnulib/import/stat-w32.c: Update.
3950         * gnulib/import/stat-w32.h: Update.
3951         * gnulib/import/stat.c: Update.
3952         * gnulib/import/stdbool.in.h: Update.
3953         * gnulib/import/stddef.in.h: Update.
3954         * gnulib/import/stdint.in.h: Update.
3955         * gnulib/import/stdio.in.h: Update.
3956         * gnulib/import/stdlib.in.h: Update.
3957         * gnulib/import/str-two-way.h: Update.
3958         * gnulib/import/strchrnul.c: Update.
3959         * gnulib/import/strdup.c: Update.
3960         * gnulib/import/streq.h: Update.
3961         * gnulib/import/strerror-override.c: Update.
3962         * gnulib/import/strerror-override.h: Update.
3963         * gnulib/import/strerror.c: Update.
3964         * gnulib/import/string.in.h: Update.
3965         * gnulib/import/stripslash.c: Update.
3966         * gnulib/import/strnlen1.c: Update.
3967         * gnulib/import/strnlen1.h: Update.
3968         * gnulib/import/strstr.c: Update.
3969         * gnulib/import/strtok_r.c: Update.
3970         * gnulib/import/sys_stat.in.h: Update.
3971         * gnulib/import/sys_time.in.h: Update.
3972         * gnulib/import/sys_types.in.h: Update.
3973         * gnulib/import/tempname.c: Update.
3974         * gnulib/import/tempname.h: Update.
3975         * gnulib/import/time.in.h: Update.
3976         * gnulib/import/unistd--.h: Update.
3977         * gnulib/import/unistd-safer.h: Update.
3978         * gnulib/import/unistd.in.h: Update.
3979         * gnulib/import/unsetenv.c: Update.
3980         * gnulib/import/verify.h: Update.
3981         * gnulib/import/extra/snippet/warn-on-use.h: Update.
3982         * gnulib/import/wchar.in.h: Update.
3983         * gnulib/import/wctype.in.h: Update.
3984         * gnulib/import/xalloc-oversized.h: Update.
3985         * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
3986         "53e2c179f26a890fa6685af4b6c1397ee370433b".
3987
3988 2018-08-16  Gary Benson <gbenson@redhat.com>
3989
3990         PR gdb/13000:
3991         * gdb/main.c (captured_main_1): Exit with nonzero status
3992         in batch mode if the last command to be executed failed.
3993         * NEWS: Mention the above.
3994
3995 2018-08-29  Simon Marchi  <simon.marchi@ericsson.com>
3996
3997         * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
3998         end of warning message.
3999
4000 2018-08-29  Alan Hayward  <alan.hayward@arm.com>
4001
4002         PR gdb/22943:
4003         * aarch64-tdep.c (is_hfa_or_hva): Remove function.
4004         (aarch64_extract_return_value): Use
4005         aapcs_is_vfp_call_or_return_candidate.
4006         (aarch64_return_in_memory): Likewise.
4007         (aarch64_store_return_value): Likewise.
4008
4009 2018-08-29  Alan Hayward  <alan.hayward@arm.com>
4010
4011         * aarch64-tdep.c
4012         (aapcs_is_vfp_call_or_return_candidate): Make static
4013         (pass_in_v_or_stack): Remove function.
4014         (pass_in_v_vfp_candidate): New function.
4015         (aarch64_push_dummy_call): Check for float register candidates.
4016
4017 2018-08-29  Alan Hayward  <alan.hayward@arm.com>
4018
4019         * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
4020         (aapcs_is_vfp_call_or_return_candidate_1): New function.
4021         (aapcs_is_vfp_call_or_return_candidate): Likewise.
4022
4023 2018-08-28  Simon Marchi  <simon.marchi@polymtl.ca>
4024
4025         PR build/23399
4026         * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
4027         (struct ipa_sym_addresses): Rename to...
4028         (struct ipa_sym_addresses_common): ... this.
4029         * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
4030
4031 2018-08-28  Tom Tromey  <tom@tromey.com>
4032
4033         * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
4034         (token_fifo): Now a std::vector.
4035         (yylex, c_parse): Update.
4036         * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
4037         (token_fifo): Now a std::vector.
4038         (yylex, d_parse): Update.
4039         * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
4040         (token_fifo): Now a std::vector.
4041         (yylex, go_parse): Update.
4042
4043 2018-08-28  Simon Marchi  <simon.marchi@ericsson.com>
4044
4045         * parser-defs.h (struct type_stack) <elements>: Change type to
4046         std::vector<union type_stack_elt>.
4047         <depth, size>: Remove.
4048         * parse.c (parse_exp_in_context_1): Adjust.
4049         (type_stack_reserve): Remove.
4050         (check_type_stack_depth): Remove.
4051         (insert_into_type_stack): Adjust to std::vector.
4052         (insert_type): Likewise.
4053         (push_type): Likewise.
4054         (push_type_int): Likewise.
4055         (insert_type_address_space): Likewise.
4056         (pop_type): Likewise.
4057         (pop_type_int): Likewise.
4058         (pop_typelist): Likewise.
4059         (pop_type_stack): Likewise.
4060         (append_type_stack): Likewise.
4061         (push_type_stack): Likewise.
4062         (get_type_stack): Likewise.
4063         (type_stack_cleanup): Likewise.
4064         (push_typelist): Likewise.
4065         (follow_types): Likewise.
4066         (_initialize_parse): Likewise.
4067
4068 2018-08-28  Hafiz Abid Qadeer  <abidh@codesourcery.com>
4069
4070         * NEWS: Mention csky target.
4071
4072 2018-08-28  Jiangshuai Li  <jiangshuai_li@c-sky.com>
4073             Hafiz Abid Qadeer  <abidh@codesourcery.com>
4074             Don Breazeal  <donb@codesourcery.com>
4075
4076         * csky-linux-tdep.c: New file.
4077         * csky-tdep.c: Likewise.
4078         * csky-tdep.h: Likewise.
4079         * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
4080         csky-tdep.o.
4081         (HFILES_NO_SRCDIR): Add csky-tdep.h.
4082         (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
4083         * configure.tgt: Add csky support.
4084
4085 2018-08-27  Jan Vrany  <jan.vrany@fit.cvut.cz>
4086
4087         * python/py-framefilter.c (py_print_frame): Print frame architecture
4088         when printing on an MI output.
4089
4090 2018-08-27  Tom Tromey  <tom@tromey.com>
4091
4092         PR build/23087:
4093         * configure: Rebuild.
4094         * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
4095
4096 2018-08-27  Tom Tromey  <tom@tromey.com>
4097
4098         * aarch64-linux-tdep.c
4099         (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
4100         casts to int.
4101
4102 2018-08-27  Tom Tromey  <tom@tromey.com>
4103
4104         * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
4105         unsigned.
4106         (ppc64_standard_linkage1, ppc64_standard_linkage2)
4107         (ppc64_standard_linkage3, ppc64_standard_linkage4)
4108         (ppc64_standard_linkage5, ppc64_standard_linkage6)
4109         (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
4110         unsigned.
4111
4112 2018-08-27  Tom Tromey  <tom@tromey.com>
4113
4114         * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
4115         (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
4116
4117 2018-08-27  Tom Tromey  <tom@tromey.com>
4118
4119         * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
4120         * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
4121         ULONGEST_MAX.
4122         * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
4123         ULONGEST_MAX.
4124         * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
4125         ULONGEST_MAX.
4126         * sparc-linux-tdep.c (sparc32_linux_sigframe)
4127         (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
4128         * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
4129         ULONGEST_MAX.
4130         * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
4131         (ppc64_linux_sigaction_tramp_frame)
4132         (ppc32_linux_sighandler_tramp_frame)
4133         (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
4134         * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
4135         (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
4136         * mn10300-linux-tdep.c (am33_linux_sigframe)
4137         (am33_linux_rt_sigframe): Use ULONGEST_MAX.
4138         * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
4139         * mips-linux-tdep.c (mips_linux_o32_sigframe)
4140         (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
4141         (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
4142         (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
4143         (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
4144         * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
4145         (mips64_fbsd_sigframe): Use ULONGEST_MAX.
4146         * microblaze-linux-tdep.c
4147         (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
4148         * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
4149         (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
4150         (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
4151         * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
4152         * common/common-types.h (ULONGEST_MAX): New define.
4153         (CORE_ADDR_MAX): Fix formatting.
4154         * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
4155         * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
4156         * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
4157         (arm_linux_rt_sigreturn_tramp_frame)
4158         (arm_eabi_linux_sigreturn_tramp_frame)
4159         (arm_eabi_linux_rt_sigreturn_tramp_frame)
4160         (thumb2_eabi_linux_sigreturn_tramp_frame)
4161         (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
4162         (arm_linux_restart_syscall_tramp_frame)
4163         (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
4164         * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
4165         * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
4166         ULONGEST_MAX.
4167         * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
4168
4169 2018-08-27  Tom Tromey  <tom@tromey.com>
4170
4171         * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
4172         CORE_ADDR_MAX.
4173         * mips-tdep.c (mips_deal_with_atomic_sequence)
4174         (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
4175         * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
4176         (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
4177         * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
4178         CORE_ADDR_MAX.
4179         * aarch64-tdep.c (aarch64_software_single_step): Use
4180         CORE_ADDR_MAX.
4181
4182 2018-08-27  Tom Tromey  <tom@tromey.com>
4183
4184         * linespec.c (complete_linespec_component): Add cast to "char".
4185         * completer.c (completion_tracker::build_completion_result): Add
4186         cast to "char".
4187
4188 2018-08-26  Simon Marchi  <simon.marchi@polymtl.ca>
4189
4190         * solist.h (struct solist, struct target_so_ops): Fix
4191         indentation.
4192
4193 2018-08-26  Simon Marchi  <simon.marchi@polymtl.ca>
4194
4195         * ada-tasks.c (ada_task_info_s): Remove typedef.
4196         (DEF_VEC_O(ada_task_info_s)): Remove.
4197         (struct ada_tasks_inferior_data): Initialize fields.
4198         <task_list>: Make an std::vector.
4199         (get_ada_tasks_inferior_data): Allocate with new.
4200         (ada_get_task_number): Adjust.
4201         (get_task_number_from_id): Likewise.
4202         (valid_task_id): Likewise.
4203         (ada_get_task_info_from_ptid): Likewise.
4204         (iterate_over_live_ada_tasks): Likewise.
4205         (add_ada_task): Likewise.
4206         (read_known_tasks): Likewise.
4207         (ada_build_task_list): Likewise.
4208         (print_ada_task_info): Likewise.
4209         (info_task): Likewise.
4210         (task_command_1): Likewise.
4211
4212 2018-08-26  Simon Marchi  <simon.marchi@polymtl.ca>
4213
4214         * ada-lang.c (add_angle_brackets): Return std::string.
4215
4216 2018-08-25  Simon Marchi  <simon.marchi@polymtl.ca>
4217
4218         * python/py-threadevent.c (py_get_event_thread): Initialize
4219         pythread.
4220
4221 2018-08-24  Pedro Alves  <palves@redhat.com>
4222
4223         * python/py-bpevent.c (create_breakpoint_event_object): Use
4224         copy-initialization.
4225         * python/py-continueevent.c (emit_continue_event): Use
4226         copy-initialization.
4227         * python/py-exitedevent.c (create_exited_event_object): Return a
4228         gdbpy_ref<>.
4229         (emit_exited_event): Use copy-initialization.
4230         * python/py-inferior.c (python_new_inferior)
4231         (python_inferior_deleted, add_thread_object): Use
4232         copy-initialization.
4233         * python/py-infevents.c (create_inferior_call_event_object)
4234         (create_register_changed_event_object)
4235         (create_memory_changed_event_object): Return a gdbpy_ref<>.
4236         (emit_inferior_call_event, emit_memory_changed_event)
4237         (emit_register_changed_event): Use copy-initialization.
4238         * python/py-newobjfileevent.c (create_new_objfile_event_object):
4239         Return a gdbpy_ref<>.
4240         (emit_new_objfile_event): Use copy-initialization.
4241         (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
4242         (emit_clear_objfiles_event): Use copy-initialization.
4243         * python/py-signalevent.c (create_signal_event_object): Use
4244         copy-initialization.
4245         * python/py-threadevent.c (create_thread_event_object): Use
4246         copy-initialization.
4247
4248 2018-08-24  Pedro Alves  <palves@redhat.com>
4249             Simon Marchi  <simon.marchi@ericsson.com>
4250
4251         PR gdb/23379
4252         * python/py-continueevent.c: Include "gdbthread.h".
4253         (create_continue_event_object): Add intro comment.  Add 'ptid'
4254         parameter.  Use it to find thread to pass to
4255         create_thread_event_object.
4256         (emit_continue_event): Pass PTID down to
4257         create_continue_event_object.
4258         * python/py-event.h (py_get_event_thread): Declare.
4259         (create_thread_event_object): Remove default from 'thread'
4260         parameter.
4261         * python/py-stopevent.c (create_stop_event_object): Use
4262         py_get_event_thread.
4263         * python/py-threadevent.c (get_event_thread): Rename to ...
4264         (py_get_event_thread): ... this, make extern, add 'ptid' parameter
4265         and use it to find the thread.
4266         (create_thread_event_object): Assert that THREAD isn't null.
4267         Don't find the event thread here.
4268
4269 2018-08-23  Kevin Buettner  <kevinb@redhat.com>
4270
4271         * block.h (blockrange, blockranges): New struct declarations.
4272         (struct block): Add new field named `ranges'.
4273         (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
4274         (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
4275         macros for accessing ranges in struct block.
4276         (make_blockranges): New declaration.
4277         block.c (make_blockranges): New function.
4278         * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
4279         for block.
4280         * symtab.h (find_pc_partial_function): Add new parameter `block'.
4281         * blockframe.c (cache_pc_function_block): New static global.
4282         (clear_pc_function_cache): Clear cache_pc_function_block.
4283         (find_pc_partial_function): Move comment to symtab.h.  Add
4284         support for non-contiguous blocks.
4285         * cli/cli-cmds.c (block.h): Include.
4286         (print_disassembly): Handle printing of non-contiguous blocks.
4287         (disassemble_current_function): Likewise.
4288         (disassemble_command): Likewise.
4289
4290         * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
4291         BLOCK_START.
4292         * blockframe.c (get_pc_function_start): Likewise.
4293         * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
4294         (gcc_symbol_address): Likewise.
4295         * compile/compile-object-run.c (compile_object_run): Likewise.
4296         * compile/compile.c (get_expr_block_and_pc): Likewise.
4297         * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
4298         (func_addr_to_tail_call_list): Likewise.
4299         * findvar.c (default_read_var_value): Likewise.
4300         * inline-frame.c (inline_frame_this_id): Likewise.
4301         (skip-inline_frames): Likewise.
4302         * infcmd.c (until_next_command): Likewise.
4303         * linespec.c (convert_linespec_to_sals): Likewise.
4304         * parse.c (parse_exp_in_context_1): Likewise.
4305         * printcmd.c (build_address_symbolic): likewise.
4306         (info_address_command): Likewise.
4307         symtab.c (find_function_start_sal): Likewise.
4308         (skip_prologue_sal): Likewise.
4309         (find_function_alias_target): Likewise.
4310         (find_gnu_ifunc): Likewise.
4311         * stack.c (find_frame_funname): Likewise.
4312         * symtab.c (fixup_symbol_section): Likewise.
4313         (find_function_start_sal): Likewise.
4314         (skip_prologue_sal): Likewsie.
4315         (find_function_alias_target): Likewise.
4316         (find_gnu_ifunc): Likewise.
4317         * tracepoint.c (info_scope_command): Likewise.
4318         * value.c (value_fn_field): Likewise.
4319
4320         * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
4321         in place of find_pc_partial_function.
4322         * blockframe.c (find_function_entry_range_from_pc): New function.
4323         * symtab.h (find_function_entry_range_from_pc): Declare and document.
4324         * objfiles.c (objfile_relocate1): Relocate start and end addresses
4325         for each range in a block.
4326
4327
4328 2018-08-23  Xavier Roirand  <roirand@adacore.com>
4329
4330         * machoread.c (macho_symfile_read_all_oso): Remove uneeded
4331         incrementation.
4332
4333 2018-08-22  Simon Marchi  <simon.marchi@polymtl.ca>
4334
4335         * solib-svr4.c (read_program_headers_from_bfd): Return
4336         gdb::optional<gdb::byte_vector>.
4337         (svr4_exec_displacement): Adjust.
4338
4339 2018-08-22  Simon Marchi  <simon.marchi@polymtl.ca>
4340
4341         * solib-svr4.c (read_program_header): Return
4342         gdb::optional<gdb::byte_vector>, remove p_sect_size param.
4343         (find_program_interpreter): Return
4344         gdb::optional<gdb::byte_vector>.
4345         (scan_dyntag_auxv): Adjust.
4346         (enable_break): Adjust.
4347         (svr4_exec_displacement): Adjust.
4348
4349 2018-08-22  Simon Marchi  <simon.marchi@polymtl.ca>
4350
4351         * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
4352         * inf-child.c (inf_child_target::terminal_save_inferior): New.
4353
4354 2018-08-22  Simon Marchi  <simon.marchi@polymtl.ca>
4355
4356         * guile/scm-string.c (gdbscm_scm_from_printf): Use
4357         string_vprintf.
4358         * guile/scm-utils.c (gdbscm_printf): Likewise.
4359         * serial.c (serial_printf): Likewise.
4360         * xml-support.c (gdb_xml_parser::vdebug): Likewise.
4361
4362 2018-08-22  Jan Vrany  <jan.vrany@fit.cvut.cz>
4363
4364         * stack.c (print_frame): Print frame architecture when printing on
4365         an MI output.
4366         * NEWS: Mention new "arch" attribute in frame output.
4367
4368 2018-08-21  Alan Hayward  <alan.hayward@arm.com>
4369
4370         * arch/aarch64.h (aarch64_regnum): Update comment.
4371
4372 2018-08-21  Alan Hayward  <alan.hayward@arm.com>
4373
4374         * NEWS: Add SVE to 8.2 section.
4375
4376 2018-08-21  Pedro Alves  <palves@redhat.com>
4377
4378         * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
4379         out from gdbscm_parse_function_args.
4380         (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
4381         gdbscm_parse_function_args_1.
4382
4383 2018-08-21  Simon Marchi  <simon.marchi@ericsson.com>
4384
4385         PR gdb/17816
4386         * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
4387         operator.
4388
4389 2018-08-19  Simon Marchi  <simon.marchi@polymtl.ca>
4390
4391         * solib-svr4.c (svr4_exec_displacement): Fix formatting.
4392
4393 2018-08-19  Michael Spang  <spang@google.com>
4394
4395         PR gdb/11786
4396         * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
4397         for PT_TLS segments.
4398
4399 2018-08-18  Kevin Buettner  <kevinb@redhat.com>
4400
4401         * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
4402         dwarf_variable_value.
4403         * dwarf2-frame.c (class dwarf_expr_executor):
4404         Add override for dwarf_variable_value.
4405         * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
4406         (class symbol_needs_eval_context): Likewise.
4407         (indirect_synthetic_pointer): Add forward declaration.
4408         (sect_variable_value): New function.
4409         (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
4410         * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
4411         for DW_OP_GNU_variable_value.
4412
4413 2018-08-16  Tom Tromey  <tom@tromey.com>
4414
4415         * top.c (read_command_file): Update.
4416         (command_line_input): Remove "repeat" argument.
4417         * ada-lang.c (get_selections): Update.
4418         * linespec.c (decode_line_2): Update.
4419         * defs.h (command_line_input): Remove argument.
4420         * cli/cli-script.c (read_next_line): Update.
4421         * python/py-gdb-readline.c: Update.
4422
4423 2018-08-17  Tom Tromey  <tom@tromey.com>
4424
4425         * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
4426         command_line_input.
4427
4428 2018-08-15  Tom Tromey  <tom@tromey.com>
4429
4430         * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
4431
4432 2018-08-14  Jan Vrany  <jan.vrany@fit.cvut.cz>
4433
4434         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
4435         If used, use find_pc_partial_function to find address range
4436         to disassemble.
4437         * mi/mi-main.c (mi_cmd_list_features): Report
4438         "data-disassemble-a-option" feature.
4439         * NEWS: Mention new -data-disassemble option -a.
4440
4441 2018-08-13  Tom Tromey  <tom@tromey.com>
4442
4443         * common/common-defs.h (_FORTIFY_SOURCE): Define.
4444
4445 2018-08-13  Alan Hayward  <alan.hayward@arm.com>
4446
4447         * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
4448         (aarch64_linux_collect_sve_regset): Likewise.
4449         (aarch64_linux_iterate_over_regset_sections): Check for SVE.
4450         * regcache.h (regcache_map_entry_size): New function.
4451
4452 2018-08-13  Alan Hayward  <alan.hayward@arm.com>
4453
4454         * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
4455         (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
4456         (SVE_HEADER_VL_LENGTH): Likewise.
4457         (SVE_HEADER_MAX_VL_LENGTH): Likewise.
4458         (SVE_HEADER_FLAGS_LENGTH): Likewise.
4459         (SVE_HEADER_RESERVED_LENGTH): Likewise.
4460         (SVE_HEADER_SIZE_OFFSET): Likewise.
4461         (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
4462         (SVE_HEADER_VL_OFFSET): Likewise.
4463         (SVE_HEADER_MAX_VL_OFFSET): Likewise.
4464         (SVE_HEADER_FLAGS_OFFSET): Likewise.
4465         (SVE_HEADER_RESERVED_OFFSET): Likewise.
4466         (SVE_HEADER_SIZE): Likewise.
4467         (aarch64_linux_core_read_vq): Add function.
4468         (aarch64_linux_core_read_description): Check for SVE section.
4469
4470 2018-08-13  Alan Hayward  <alan.hayward@arm.com>
4471
4472         * aarch64-fbsd-tdep.c
4473         (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
4474         collect_size.
4475         * aarch64-linux-tdep.c
4476         (aarch64_linux_iterate_over_regset_sections): Likewise.
4477         * alpha-linux-tdep.c
4478         (alpha_linux_iterate_over_regset_sections):
4479         * alpha-nbsd-tdep.c
4480         (alphanbsd_iterate_over_regset_sections): Likewise.
4481         * amd64-fbsd-tdep.c
4482         (amd64fbsd_iterate_over_regset_sections): Likewise.
4483         * amd64-linux-tdep.c
4484         (amd64_linux_iterate_over_regset_sections): Likewise.
4485         * arm-bsd-tdep.c
4486         (armbsd_iterate_over_regset_sections): Likewise.
4487         * arm-fbsd-tdep.c
4488         (arm_fbsd_iterate_over_regset_sections): Likewise.
4489         * arm-linux-tdep.c
4490         (arm_linux_iterate_over_regset_sections): Likewise.
4491         * corelow.c (get_core_registers_cb): Likewise.
4492         (core_target::fetch_registers): Likewise.
4493         * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
4494         * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
4495         * gdbarch.h (void): Regenerate.
4496         * gdbarch.sh: Add supply_size and collect_size.
4497         * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
4498         * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
4499         * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
4500         * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
4501         * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
4502         * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
4503         * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
4504         * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
4505         * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
4506         * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
4507         * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
4508         * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
4509         * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
4510         * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
4511         * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections):
4512         Likewise.
4513         * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
4514         * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
4515         * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
4516         * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
4517         * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
4518         * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
4519         * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections):
4520         Likewise.
4521         * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
4522         * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
4523         * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
4524         * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
4525         * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
4526         * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
4527         * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
4528         * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
4529
4530 2018-08-10  Simon Marchi  <simon.marchi@ericsson.com>
4531
4532         * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
4533         with string_printf.
4534
4535 2018-08-10  Keith Seitz  <keiths@redhat.com>
4536
4537         * compile/compile-c-support.c (add_code_header, add_code_footer):
4538         Move into policy class.
4539         (c_push_user_expression, pop_user_expression_nop)
4540         (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
4541         (compile_program): New host class.
4542         (c_compile_program): New typedef.
4543         (c_compute_porgram): Use c_compile_program.
4544
4545 2018-08-10  Keith Seitz  <keiths@redhat.com>
4546
4547         * compile/compile-internal.h (compile_instance::~compile_instance):
4548         Remove calls to htab_delete.
4549         <m_type_map, m_symbol_err_map>: Switch type to htab_up.
4550         * compile.c (compile_instance::compile_instance): Initialize
4551         htab unique pointers.
4552         (compile_instance::get_cached_type, compile_instance::insert_type)
4553         (compile_instance::error_symbol_once): Update for unique_ptr.
4554
4555 2018-08-10  Keith Seitz  <keiths@redhat.com>
4556
4557         * compile/compile-c-symbols.c (struct symbol_error)
4558         (hash_symbol_error, eq_symbol_error, del_symbol_error)
4559         (compile_instance::insert_symbol_error)
4560         (compile_instance::error_symbol_once): Move to ...
4561         * compile/compile.c: ... here.
4562
4563 2018-08-10  Keith Seitz  <keiths@redhat.com>
4564
4565         * compile/compile-c-support.c (c_get_compile_context): Use `new'
4566         instead of `new_compile_instance'.
4567         * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
4568         Update description.
4569         If the symbol error map is not initialized, create it.
4570         (generate_c_for_for_one_symbol): Do not check/initialize
4571         the symbol error map.
4572         * compile/compile-c-types.c (compile_c_instance): Make a class.
4573         Update all callers.
4574         (compile_instance::compile_instance): Initialize the type cache.
4575         (get_cached_type): New function.
4576         (insert_type): Update description.
4577         (compile_c_instance::m_default_cflags): Define.
4578         (convert_type): Update description.  Use get_cached_type.
4579         (delete_instance): Moved to destructor.
4580         (new_compile_instance): Moved to constructor.
4581         * compile/compile-c.h (compile_c_instance): Make class inheriting
4582         from compile_instance.
4583         <base>: Remove field.
4584         <type_map, symbol_err_map>: Move to base class.
4585         <c_plugin>: Rename to `m_plugin' and remove pointer type.
4586         * compile/compile-internal.h (compile_instance): Make class.
4587         <type_map_t, symbol_err_map_t>: Define.
4588         <fe>: Rename to `m_gcc_fe'.
4589         <scope, block, gcc_target_options>: Add `m_' prefix.
4590         <m_type_map, m_symbol_err_map>: New fields, moved from
4591         compile_c_instance.
4592         <destroy>: Remove.
4593         (convert_type, new_compile_instance): Remove.
4594         * compile/compile.c (cleanup_compile_instance): Remove.
4595         (compile_to_object): Use unique_ptr to eliminate cleanups.
4596         (compile_instance::set_print_callback, compile_instance::version)
4597         (compile_instance::set_verbose)
4598         (compile_instance::set_driver_filename)
4599         (compile_instance::set_triplet_regexp)
4600         (compile_instance::set_arguments)
4601         (compile_instance::set_source_file)
4602         (compile_instance::compile): Define.
4603
4604 2018-08-10  Keith Seitz  <keiths@redhat.com>
4605
4606         * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
4607         * compile/compile-c-types.c: Define GCC_METHODN macros and include
4608         gcc-c-fe.def to define C plugin.
4609         (delete_instance): Delete `c_plugin'.
4610         (new_compile_instance): Initialize `c_plugin'.
4611         * compile/compile-c.h: Include gcc_c_plugin.h.
4612         (struct compile_c_instance) <c_plugin>: New member.
4613         * gcc-c-plugin.h: New file.
4614         Update all callers with API change.
4615
4616 2018-08-10  Keith Seitz  <keiths@redhat.com>
4617
4618         * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
4619         (HFILES_NO_SRCDIR): ... to here.
4620         Add compile-internal.h and compile-c.h.
4621         * compile/compile-c-support.c: Include compile-c.h.
4622         * compile/compile-c-symbols.c: Include compile-c.h.
4623         (generate_c_for_variable_locations): Update comment.
4624         * compile/compile-c-types.c: Include compile-c.h.
4625         * compile/compile-c.h: New file -- moved C language declarations
4626         from other files here.
4627         * compile/compile-internal.h: Do not include hashtab.h or
4628         common/enum-flags.h.
4629         (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
4630         (gcc_convert_symbol, gcc_symbol_address)
4631         (generate_c_for_variable_locations, c_get_mode_for_size)
4632         (c_get_range_decl_name): Definitions moved to compile-c.h.
4633         * compile/compile-loc2c.c: Include compile-c.h.
4634
4635 2018-08-10  Keith Seitz  <keiths@redhat.com>
4636
4637         * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
4638         (c_symbol_substitution_name): ... this.
4639         Update all callers.
4640
4641 2018-08-10  Keith Seitz  <keiths@redhat.com>
4642
4643         * compile/compile-c-support.c (c_compute_program): Use
4644         unique_xmalloc_ptr to eliminate cleanup.
4645         * compile/compile-c-symbols.c (generate_c_for_variable_locations):
4646         Return a unique_xmalloc_ptr and eliminate cleanup.
4647         * compile/compile-internal.h (generate_c_for_variable_locations):
4648         Return unique_xmalloc_ptr and update description.
4649
4650 2018-08-10  Alan Hayward  <alan.hayward@arm.com>
4651
4652         * corelow.c (core_target::get_core_register_section): Rename
4653         min_size to section_min_size.
4654
4655 2018-08-09  Jim Wilson  <jimw@sifive.com>
4656
4657         * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
4658         (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
4659         * NEWS: Mention new GNU/Linux RISC-V target.
4660         * configure.host: Add riscv*-*-linux*.
4661         * configure.nat: Add riscv*.
4662         * configure.tgt: Add riscv*-*-linux*.
4663         * riscv-linux-nat.c: New file.
4664         * riscv-linux-tdep.c: New file.
4665
4666 2018-08-09  Andrew Burgess  <andrew.burgess@embecosm.com>
4667
4668         * infrun.c (resume): Make static, add forward declaration.
4669         (proceed): Update header comment.
4670         * infrun.h (resume): Delete declaration.
4671
4672 2018-08-09  Tom Tromey  <tom@tromey.com>
4673
4674         * riscv-tdep.h: Minor formatting fixes.
4675
4676 2018-08-09  Simon Marchi  <simon.marchi@ericsson.com>
4677
4678         * common/scoped_mmap.c (mmap_file): Silence ARI warning.
4679         * dwarf-index-cache.c (create_dir_and_check): Likewise.
4680         (test_mkdir_recursive): Likewise.
4681         * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
4682
4683 2018-08-09  Andrew Burgess  <andrew.burgess@embecosm.com>
4684
4685         * valarith.c (value_subscripted_rvalue): If an array is not in
4686         memory, and we don't know the upper bound, then we can't know that
4687         the requested element exists or not.
4688
4689 2018-08-08  Simon Marchi  <simon.marchi@ericsson.com>
4690
4691         * target.c (str_comma_list_concat_elem): Fix typo in comment.
4692         (target_options_to_string): Add comment.
4693
4694 2018-08-08  Tom Tromey  <tom@tromey.com>
4695
4696         * unittests/scoped_mmap-selftests.c: Check result of "write".
4697
4698 2018-08-08  Jim Wilson  <jimw@sifive.com>
4699
4700         * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
4701         (decode_register_index_short): New.
4702         (decode_j_type_insn, decode_cj_type_insn): New.
4703         (decode_b_type_insn, decode_cb_type_insn): New.
4704         (riscv_insn::decode): Add support for jumps, branches, lr, and sc.  New
4705         local xlen.  Check xlen when decoding ambiguous compressed insns.  In
4706         compressed decode, use is_c_lui_insn instead of is_lui_insn, and
4707         is_c_sw_insn instead of is_sw_insn.
4708         (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
4709         (riscv_software_single_step): New.
4710         * riscv-tdep.h (riscv_software_single_step): Declare.
4711
4712         * riscv-tdep.c (riscv_isa_xlen): Drop static.
4713         * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
4714
4715 2018-08-08  Andrew Burgess  <andrew.burgess@embecosm.com>
4716
4717         PR gdb/18050:
4718         * target.c (dispose_inferior): Don't dispose of inferiors that are
4719         already killed.
4720
4721 2018-08-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4722
4723         * remote.c (remote_target::download_tracepoint): Change char* to
4724         const char*.
4725
4726 2018-08-07  Simon Marchi  <simon.marchi@polymtl.ca>
4727
4728         * target.h (target_options_to_string): Return an std::string.
4729         * target.c (str_comma_list_concat_elem): Return void, use
4730         std::string.
4731         (do_option): Likewise.
4732         (target_options_to_string): Return an std::string.
4733         * linux-nat.c (linux_nat_target::wait): Adjust.
4734         * target-debug.h (target_debug_print_options): Adjust.
4735
4736 2018-08-07  Tom Tromey  <tom@tromey.com>
4737
4738         * Makefile.in (CPPFLAGS): New variable.
4739         (INTERNAL_CPPFLAGS): Use it.
4740
4741 2018-08-07  Simon Marchi  <simon.marchi@ericsson.com>
4742
4743         * NEWS: Mention the index cache.
4744
4745 2018-08-07  Simon Marchi  <simon.marchi@ericsson.com>
4746
4747         * common/pathstuff.h (get_standard_cache_dir): New.
4748         * common/pathstuff.c (get_standard_cache_dir): New.
4749         * build-id.h (build_id_to_string): New.
4750         * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
4751         DEBUG_STR_SUFFIX): Move to here.
4752         * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
4753         DEBUG_STR_SUFFIX): Move from there.
4754         (write_psymtabs_to_index): Make non-static, add basename
4755         parameter.  Write to temporary files, rename when done.
4756         (save_gdb_index_command): Adjust call to
4757         write_psymtabs_to_index.
4758         * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
4759         field.
4760         * dwarf2read.c (dwz_file) <index_cache_res>: New field.
4761         (get_gdb_index_contents_from_cache): New.
4762         (get_gdb_index_contents_from_cache_dwz): New.
4763         (dwarf2_initialize_objfile): Read index from cache.
4764         (dwarf2_build_psymtabs): Save to index.
4765         * dwarf-index-cache.h: New file.
4766         * dwarf-index-cache.c: New file.
4767         * dwarf-index-write.h: New file.
4768
4769 2018-08-07  Simon Marchi  <simon.marchi@ericsson.com>
4770
4771         * gnulib/aclocal.m4: Re-generate.
4772         * gnulib/config.in: Re-generate.
4773         * gnulib/configure: Re-generate.
4774         * gnulib/import/Makefile.am: Re-generate.
4775         * gnulib/import/Makefile.in: Re-generate.
4776         * gnulib/import/m4/gnulib-cache.m4: Re-generate.
4777         * gnulib/import/m4/gnulib-comp.m4: Re-generate.
4778         * gnulib/import/m4/mkdir.m4: New file.
4779         * gnulib/import/mkdir.c: New file.
4780         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
4781         module.
4782
4783 2018-08-07  Simon Marchi  <simon.marchi@ericsson.com>
4784
4785         * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
4786         * common/scoped_mmap.c: New file.
4787         * common/scoped_mmap.h (destroy): New method.
4788         (~scoped_mmap, reset): Use destroy.
4789         (scoped_mmap): New move constructor.
4790         (mmap_file): New declaration.
4791         * unittests/scoped_mmap-selftests.c (test_normal,
4792         test_invalid_filename, run_tests): New functions.
4793         (_initialize_scoped_mmap_selftests): Register selftest.
4794
4795 2018-08-07  Simon Marchi  <simon.marchi@ericsson.com>
4796
4797         * dwarf2read.c (read_gdb_index_from_section): Rename to...
4798         (read_gdb_index_from_buffer): ... this.  Remove section
4799         parameter, add buffer parameter.
4800         (get_gdb_index_contents_ftype,
4801         get_gdb_index_contents_dwz_ftype): New typedefs.
4802         (dwarf2_read_gdb_index): Add callback parameters to get the
4803         index contents.
4804         (get_gdb_index_contents_from_section): New.
4805         (dwarf2_initialize_objfile): Update call to
4806         dwarf2_read_gdb_index.
4807
4808 2018-08-07  Simon Marchi  <simon.marchi@ericsson.com>
4809
4810         * common/filestuff.h (gdb_fopen_cloexec): New overload.
4811         (gdb_open_cloexec): Likewise.
4812         * nat/linux-osdata.c (command_from_pid): Use string_printf.
4813         (commandline_from_pid): Likewise.
4814         (linux_xfer_osdata_threads): Likewise.
4815         (linux_xfer_osdata_fds): Likewise.
4816         * ada-lang.c (is_package_name): Likewise.
4817         * auxv.c (procfs_xfer_auxv): Likewise.
4818         * breakpoint.c (print_one_breakpoint_location): Use
4819         uiout::field_fmt.
4820         (print_one_catch_solib): Use string_printf.
4821         * coff-pe-read.c (add_pe_exported_sym): Likewise.
4822         (add_pe_forwarded_sym): Likewise.
4823         * dwarf2read.c (create_type_unit_group): Likewise.
4824         (build_error_marker_type): Likewise.
4825         * infcall.c (get_function_name): Likewise.
4826         * valprint.c (print_converted_chars_to_obstack): Likewise.
4827         * xtensa-tdep.c (xtensa_register_type): Likewise.
4828
4829 2018-08-06  Simon Marchi  <simon.marchi@ericsson.com>
4830
4831         * remote.c (remote_target::download_tracepoint): Fix format
4832         string errors.
4833
4834 2018-08-06  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
4835
4836         * tracefile.c: Include common/byte-vector.h.
4837         (trace_save): Change type of buf to gdb::byte_vector.  Initialize
4838         with trace_regblock_size if needed.  Update uses of buf.
4839
4840 2018-08-06  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
4841
4842         * tracepoint.h (collection_list) <m_regs_mask>: Change type to
4843         std::vector<unsigned char>.
4844         * tracepoint.c (collection_list::collection_list): Remove
4845         m_regs_mask initializer from initializer list.  Resize
4846         m_regs_mask using the largest remote register number.
4847         (collection_list::add_remote_register): Remove size check on
4848         m_regs_mask.  Use at to access element.
4849         (collection_list::stringify): Change type of temp_buf to
4850         gdb::char_vector.  Update uses of temp_buf.  Resize if needed to
4851         stringify the register mask.  Use pack_hex_byte for the register
4852         mask.
4853
4854 2018-08-06  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
4855
4856         * tracepoint.h (class collection_list) <add_register>: Remove.
4857         <add_remote_register, add_ax_registers, add_local_register>:
4858         Declare.
4859         <add_memrange>: Add scope parameter.
4860         * tracepoint.c (encode_actions_1): Likewise.
4861         (collection_list::add_register): Rename to ...
4862         (collection_list::add_remote_register): ... this.  Update
4863         comment.
4864         (collection_list::add_ax_registers, add_local_register): New
4865         methods.
4866         (collection_list::add_memrange): Add scope parameter.  Call
4867         add_local_register instead of add_register.
4868         (finalize_tracepoint_aexpr): New function.
4869         (collection_list::collect_symbol): Update calls to add_memrange.
4870         Call add_local_register instead of add_register.  Call
4871         add_ax_registers.  Call finalize_tracepoint_aexpr.
4872         (encode_actions_1): Get remote regnos for $reg action.  Call
4873         add_remote_register, add_ax_registers, and add_local_register.
4874         Update call to add_memrange.  Call finalize_tracepoint_aexpr.
4875         (validate_actionline): Call finalize_tracepoint_aexpr.
4876
4877 2018-08-06  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
4878
4879         * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
4880         Replace array buf with gdb::char_vector buf, of size
4881         get_remote_packet_size ().  Replace references to buf and
4882         BUF_SIZE to buf.data () and buf.size ().  Replace strcpy, strcat
4883         and xsnprintf with snprintf.  Raise errors if the buffer is too
4884         small.
4885
4886 2018-08-06  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
4887
4888         * remote.c (remote_target::download_tracepoint): Fix the has_more
4889         predicate in the QTDP action list iteration.
4890
4891 2018-08-06  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
4892
4893         * remote.c (remote_target::download_tracepoint): Fix indentation
4894         in for block.
4895
4896 2018-08-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4897
4898         * proc-api.c (_initialize_proc_api): Remove c, unused.
4899         * procfs.c (procfs_init_inferior): Remove signals, unused.
4900         (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
4901         unused.
4902
4903 2018-08-06  Sergey Korolev  <s.korolev@ndmsystems.com>
4904             Andrew Burgess  <andrew.burgess@embecosm.com>
4905
4906         * linux-nat.c (linux_nat_target::follow_fork): Avoid using
4907         'W_STOPCODE (0)' as this could be ambiguous.
4908
4909 2018-08-03  Sergio Durigan Junior  <sergiodj@redhat.com>
4910
4911         * ser-tcp.c (net_open): Fix thinko when deciding whether to
4912         disable TCP's Nagle algorithm (use "ai_protocol" instead of
4913         "ai_socktype").
4914
4915 2018-08-02  Tom Tromey  <tom@tromey.com>
4916
4917         PR symtab/16842.
4918         * dwarf2read.c (read_func_scope): Set symtab on template parameter
4919         symbols.
4920         (process_structure_scope): Likewise.
4921
4922 2018-08-02  Xavier Roirand  <roirand@adacore.com>
4923
4924         PR gdb/22629:
4925         * darwin-nat.c (darwin_kill_inferior): Fix handling of
4926         kill inferior.
4927
4928 2018-08-02  Tom Tromey  <tom@tromey.com>
4929
4930         * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
4931         (darwin_suspend_inferior, darwin_resume_inferior)
4932         (darwin_decode_notify_message, darwin_resume_inferior_threads)
4933         (darwin_check_new_threads): Check result of get_darwin_inferior.
4934
4935 2018-07-31  Joel Brobecker  <brobecker@adacore.com>
4936
4937         GDB 8.1.1 released.
4938
4939 2018-07-31  Jan Vrany  <jan.vrany@fit.cvut.cz>
4940
4941         * varobj.c (varobj_get_path_expr_parent): Report an error if
4942         parent is a dynamic varobj.
4943
4944 2018-07-31  Simon Marchi  <simon.marchi@ericsson.com>
4945
4946         * gnulib/aclocal.m4: Re-generate.
4947         * gnulib/config.in: Re-generate.
4948         * gnulib/configure: Re-generate.
4949         * gnulib/import/Makefile.in: Re-generate.
4950         * gnulib/import/m4/gnulib-comp.m4: Re-generate.
4951         * gnulib/import/m4/onceonly.m4: Re-generate.
4952
4953 2018-07-31  Simon Marchi  <simon.marchi@ericsson.com>
4954
4955         * target-descriptions.c (struct xml_test_tdesc): New.
4956         (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
4957         (record_xml_tdesc): Update.
4958         (maintenance_check_xml_descriptions): Update.
4959         * target-descriptions.h (record_xml_tdesc): Update comment.
4960
4961 2018-07-30  Andrew Burgess  <andrew.burgess@embecosm.com>
4962
4963         * eval.c (evaluate_subexp_for_sizeof): Check for array type before
4964         checking array bounds are defined.
4965
4966 2018-07-30  Tom Tromey  <tom@tromey.com>
4967
4968         * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
4969         irreflexivity violation.
4970
4971 2018-07-30  Tom Tromey  <tom@tromey.com>
4972
4973         * cli/cli-decode.c (lookup_cmd): Remove lint code.
4974         * value.c (unpack_long): Remove lint code.
4975         * valops.c (value_ind): Remove lint code.
4976         * valarith.c (value_x_binop, value_x_unop, value_equal)
4977         (value_pos): Remove lint code.
4978
4979 2018-07-28  Tom de Vries  <tdevries@suse.de>
4980
4981         * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
4982         with undefined upper bound as <optimized out>.
4983
4984 2018-07-27  Sergio Durigan Junior  <sergiodj@redhat.com>
4985
4986         * gcore.in: Rename variable "name" to "prefix".  Expand
4987         "usage" text.
4988
4989 2018-07-14  Jon Turney  <jon.turney@dronecode.org.uk>
4990
4991         * windows-nat.c (windows_nat_target::create_inferior): Update to
4992         call close() in global namespace.
4993
4994 2018-07-26  Tom Tromey  <tom@tromey.com>
4995
4996         * dwarf-index-write.c (add_address_entry): Don't add objfile
4997         offsets.
4998         * dbxread.c (find_stab_function): Rename from
4999         find_stab_function_addr.  Return a bound_minimal_symbol.
5000         (read_dbx_symtab): Use raw_text_low, raw_text_high.
5001         Don't add objfile offsets.
5002         (end_psymtab): Use raw_text_low, raw_text_high,
5003         MSYMBOL_VALUE_RAW_ADDRESS.
5004         (read_ofile_symtab): Update.
5005         (process_one_symbol): Update.
5006         * dwarf2read.c (create_addrmap_from_index): Don't add objfile
5007         offsets.
5008         (dw2_relocate): Remove.
5009         (dw2_find_pc_sect_symtab): Bias PC by the text offset before
5010         searching addrmap.
5011         (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
5012         Update.
5013         (process_psymtab_comp_unit_reader, add_partial_symbol)
5014         (add_partial_subprogram, dwarf2_ranges_read): Update.
5015         (load_partial_dies): Update.
5016         (add_address_entry): Don't add objfile offsets.
5017         (dwarf2_build_include_psymtabs): Update.
5018         (create_addrmap_from_aranges): Don't add objfile offsets.
5019         (dw2_find_pc_sect_compunit_symtab): Update.
5020         * mdebugread.c (parse_symbol): Don't add objfile offsets.
5021         (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
5022         Update.
5023         (parse_partial_symbols): Don't add objfile offsets.  Use
5024         raw_text_low, raw_text_high.  Update.
5025         (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
5026         * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
5027         or call 'relocate' quick function.  Clear psymbol_map.
5028         * psympriv.h (struct partial_symbol) <address>: Add section
5029         offset.
5030         <set_unrelocated_address>: Rename from set_address.
5031         <raw_text_low, raw_text_high>: New methods.
5032         <text_low, text_high>: Add objfile parameter.
5033         (add_psymbol_to_bcache): Add 'section' parameter.  Call
5034         set_unrelocated_address.
5035         * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
5036         (find_pc_psymbol): Update.
5037         (fixup_psymbol_section, relocate_psymtabs): Remove.
5038         (dump_psymtab, psym_functions): Update.
5039         (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
5040         parameter.
5041         (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
5042         (start_psymtab_common): Update.
5043         * symfile-debug.c (debug_qf_relocate): Remove.
5044         (debug_sym_quick_functions): Update.
5045         * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
5046         * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
5047         Update.
5048
5049 2018-07-26  Tom Tromey  <tromey@redhat.com>
5050
5051         * dbxread.c (end_psymtab): Use text_high_valid and
5052         text_low_valid.
5053         * mdebugread.c (parse_partial_symbols): Use text_low_valid.
5054         (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
5055         * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
5056         Update comment.
5057         <text_low_valid, text_high_valid>: New fields.
5058         <set_text_low, set_text_high>: Update.
5059         * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
5060
5061 2018-07-26  Tom Tromey  <tom@tromey.com>
5062
5063         * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
5064         Update.
5065         * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
5066         textlow and texthigh fields.
5067         (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
5068         Update.
5069         * mdebugread.c (parse_lines, parse_partial_symbols)
5070         (psymtab_to_symtab_1): Update.
5071         * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
5072         Rename fields.  Update comment.  Now private.
5073         <text_low, text_high, set_text_low, set_text_high>: New methods.
5074         * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
5075         (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
5076         (start_psymtab_common, maintenance_info_psymtabs)
5077         (maintenance_check_psymtabs): Update.
5078         * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
5079         texthigh fields.
5080         (scan_xcoff_symtab): Update.
5081
5082 2018-07-26  Tom Tromey  <tromey@redhat.com>
5083
5084         * psympriv.h (struct partial_symbol) <unrelocated_address,
5085         address, set_address>: New methods.
5086         * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
5087         (fixup_psymbol_section, relocate_psymtabs): Update.
5088         (print_partial_symbols): Add 'objfile' parameter.  Update.
5089         (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
5090         Update.
5091
5092 2018-07-26  Tom Tromey  <tom@tromey.com>
5093
5094         * dwarf-index-write.c (write_psymbols, debug_names::insert)
5095         (debug_names::write_psymbols): Update.
5096         * psympriv.h (struct partial_symbol): Derive from
5097         general_symbol_info.
5098         <obj_section>: New method.
5099         (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
5100         * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
5101         (find_pc_sect_psymbol, fixup_psymbol_section)
5102         (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
5103         (print_partial_symbols, recursively_search_psymtabs)
5104         (compare_psymbols, psymbol_hash, psymbol_compare)
5105         (add_psymbol_to_bcache, maintenance_check_psymtabs)
5106         (psymbol_name_matches, psym_fill_psymbol_map): Update.
5107
5108 2018-07-26  Tom Tromey  <tromey@redhat.com>
5109
5110         * dbxread.c (end_psymtab): Remove dead code.
5111
5112 2018-07-26  Andrew Burgess  <andrew.burgess@embecosm.com>
5113
5114         * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
5115         DWARF unwinders are disabled.
5116         * dwarf2-frame.c: Add dwarf2read.h include.
5117         (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
5118         disabled.
5119         (dwarf2_frame_unwinders_enabled_p): Define.
5120         (show_dwarf_unwinders_enabled_p): New function.
5121         (_initialize_dwarf2_frame): Register switch to control DWARF
5122         unwinder use.
5123         * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
5124         * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
5125         (show_dwarf_cmdlist): Remove static keyword.
5126         * dwarf2read.h (set_dwarf_cmdlist): Declare.
5127         (show_dwarf_cmdlist): Declare.
5128         * NEWS: Document new feature.
5129
5130 2018-07-26  Tom de Vries  <tdevries@suse.de>
5131
5132         PR breakpoints/23366
5133         * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
5134
5135 2018-07-26  Tom de Vries  <tdevries@suse.de>
5136
5137         * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
5138         DW_AT_count can't be translated to a dynamic prop.
5139
5140 2018-07-25  Tom de Vries  <tdevries@suse.de>
5141
5142         * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
5143         try/catch.
5144
5145 2018-07-25  Jan Vrany  <jan.vrany@fit.cvut.cz>
5146
5147         * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
5148
5149 2018-07-25  Joel Brobecker  <brobecker@adacore.com>
5150
5151         * MAINTAINERS (Global Maintainers): Add Tom Tromey.
5152
5153 2018-07-24  Keith Seitz  <keiths@redhat.comt
5154
5155         PR symtab/23010
5156         * dwarf2read.c (dw2_add_symbol_to_list): New function.
5157         (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
5158         instead of add_symbol_to_list.
5159         (read_file_scope): Call prepare_one_comp_unit before reading
5160         any other DIEs.
5161
5162 2018-07-24  Simon Marchi  <simon.marchi@ericsson.com>
5163
5164         * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
5165
5166 2018-07-24  Tom Tromey  <tom@tromey.com>
5167
5168         * utils.c (malloc, realloc, free): Don't declare.
5169         * configure, config.in: Rebuild.
5170         * configure.ac: Don't check for declarations of free, malloc, or
5171         realloc.
5172
5173 2018-07-22  Simon Marchi  <simon.marchi@polymtl.ca>
5174
5175         * aarch64-linux-nat.c
5176         (aarch64_linux_nat_target::stopped_data_address): Remove unused
5177         variable.
5178         * arm-linux-nat.c (fetch_regs): Likewise.
5179         (store_regs): Likewise.
5180         (fetch_vfp_regs): Likewise.
5181         (store_vfp_regs): Likewise.
5182         (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
5183         (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
5184         (arm_linux_nat_target::insert_watchpoint): Likewise.
5185         (arm_linux_nat_target::remove_watchpoint): Likewise.
5186         * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
5187         Likewise.
5188         * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
5189         Likewise.
5190         * ppc-linux-nat.c (fetch_register): Likewise.
5191         (fetch_all_gp_regs): Likewise.
5192         (fetch_ppc_registers): Likewise.
5193         (store_all_gp_regs): Likewise.
5194         (store_ppc_registers): Likewise.
5195         (hwdebug_insert_point): Likewise.
5196         (can_use_watchpoint_cond_accel): Likewise.
5197         * remote-sim.c (gdb_os_write_stdout): Likewise.
5198
5199 2018-07-22  Simon Marchi  <simon.marchi@polymtl.ca>
5200             Tom Tromey  <tom@tromey.com>
5201
5202         * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
5203         test for it.
5204         * configure: Rebuild.
5205
5206 2018-07-22  Tom Tromey  <tom@tromey.com>
5207
5208         * regformats/regdat.sh: Define xmltarget_${name} inside
5209         #ifndef IN_PROCESS_AGENT.
5210
5211 2018-07-22  Tom Tromey  <tom@tromey.com>
5212
5213         * value.c (value_fetch_lazy_bitfield): Remove unused variable.
5214
5215 2018-07-22  Tom Tromey  <tom@tromey.com>
5216
5217         * symfile.c (reread_symbols): Notify iter, not objfile.
5218
5219 2018-07-22  Tom Tromey  <tom@tromey.com>
5220
5221         * ravenscar-thread.c (ravenscar_thread_target::store_registers):
5222         Use arch_ops.
5223         (ravenscar_thread_target::prepare_to_store): Likewise.
5224
5225 2018-07-22  Tom Tromey  <tom@tromey.com>
5226
5227         * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
5228         unused variable.  Call value_fetch_lazy when needed.
5229         * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
5230         Remove unused variable.  Call value_fetch_lazy when needed.
5231
5232 2018-07-22  Tom Tromey  <tom@tromey.com>
5233
5234         * m32c-tdep.c (mark_dma): Return void.
5235         (make_regs): Remove unused declarations.
5236
5237 2018-07-22  Tom Tromey  <tom@tromey.com>
5238
5239         * guile/scm-cmd.c (gdbscm_dont_repeat): Call
5240         cmdscm_get_valid_command_smob_arg_unsafe for effect.
5241         * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
5242         bkscm_get_valid_block_smob_arg_unsafe for effect.
5243
5244 2018-07-22  Tom Tromey  <tom@tromey.com>
5245
5246         * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
5247         value_type.
5248
5249 2018-07-22  Tom Tromey  <tom@tromey.com>
5250
5251         * windows-nat.c (saved_context): Conditionally define.
5252         * remote.c (remote_target::remote_btrace_maybe_reopen):
5253         Conditionally declare "warned".
5254         * inflow.c (sigquit_ours): Conditionally define.
5255         (new_tty): Move "tty" declaration inside #if.
5256         * guile/guile.c (guile_datadir): Conditionally define.
5257         * charset.c (set_be_le_names): Move some declarations inside #if.
5258         * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
5259         #if.
5260         (parse_xml_btrace_conf): Likewise.
5261
5262 2018-07-22  Tom Tromey  <tom@tromey.com>
5263
5264         * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
5265
5266 2018-07-22  Tom Tromey  <tom@tromey.com>
5267
5268         * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
5269         * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
5270         (vlscm_convert_typed_value_from_scheme): Remove unused variable.
5271         * buildsym-legacy.c (get_macro_table): Remove unused variable.
5272         * stack.c (frame_apply_level_command): Remove unused variable.
5273         * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
5274         * sparc64-tdep.c (adi_examine_command): Remove unused variable.
5275         * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
5276         unused variable.
5277         * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
5278         * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
5279         * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
5280         variable.
5281         * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
5282         * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
5283         variable.
5284         * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
5285         Remove unused variable.
5286         * cli/cli-script.c (recurse_read_control_structure): Remove unused
5287         variable.
5288         * common/tdesc.c (print_xml_feature::visit): Remove unused
5289         variable.
5290         * compile/compile-object-load.c (store_regs): Remove unused
5291         variables.
5292         * complaints.c (clear_complaints): Remove unused variable.
5293         * corelow.c (core_target_open): Remove unused variable.
5294         * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
5295         variable.
5296         * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
5297         variable.
5298         * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
5299         variable.
5300         * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
5301         variable.
5302         * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
5303         variable.
5304         * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
5305         variable.
5306         * ia64-tdep.c (examine_prologue): Remove unused variable.
5307         * infcall.c (run_inferior_call): Remove unused variable.
5308         * inferior.c (exit_inferior): Remove unused variable.
5309         * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
5310         * linespec.c (decode_line_2): Remove unused variable.
5311         * linux-nat.c (super_close): Remove.
5312         * linux-tdep.c (linux_info_proc): Remove unused variable.
5313         * mi/mi-main.c (mi_execute_command): Remove unused variable.
5314         * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
5315         Remove unused variable.
5316         * parse.c (find_minsym_type_and_address): Remove unused variable.
5317         * printcmd.c (info_symbol_command, printf_floating): Remove unused
5318         variable.
5319         * python/py-breakpoint.c (bppy_set_commands): Remove unused
5320         variable.
5321         * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
5322         variables.
5323         * record-btrace.c (record_btrace_target::store_registers): Remove
5324         unused variable.
5325         (cmd_show_record_btrace_cpu): Remove unused variable.
5326         * riscv-tdep.c (riscv_register_reggroup_p)
5327         (riscv_push_dummy_call, riscv_return_value): Remove unused
5328         variable.
5329         * rust-exp.y (literal): Remove unused variable.
5330         * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
5331         unused variable.
5332         <STRUCTOP_ANONYMOUS>: Likewise.
5333         * s390-linux-tdep.c (s390_linux_init_abi_31)
5334         (s390_linux_init_abi_64): Remove unused variable.
5335         * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
5336         (file_select_thread, net_windows_open, _initialize_ser_windows):
5337         Remove unused variables.
5338         * symtab.c (find_pc_sect_line): Remove unused variable.
5339         * target-memory.c (compute_garbled_blocks): Remove unused
5340         variable.
5341         (target_write_memory_blocks): Remove unused variable.
5342         * target.c (target_stack::unpush): Remove unused variables.
5343         * tracepoint.c (start_tracing, all_tracepoint_actions)
5344         (merge_uploaded_trace_state_variables)
5345         (print_one_static_tracepoint_marker): Remove unused variable.
5346         * unittests/basic_string_view/element_access/char/1.cc (test01):
5347         Remove unused variable.
5348         * windows-nat.c (windows_continue, windows_add_all_dlls)
5349         (do_initial_windows_stuff, windows_nat_target::create_inferior):
5350         Remove unused variables.
5351
5352 2018-07-21  Simon Marchi  <simon.marchi@polymtl.ca>
5353
5354         * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
5355         attr_profile in HAVE_ELF.
5356         * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
5357         HAVE_ELF.
5358
5359 2018-07-20  Simon Marchi  <simon.marchi@polymtl.ca>
5360
5361         * frame.c (frame_register_unwind): Change parameter name.
5362         (frame_unwind_register): Likewise.
5363         (frame_unwind_register_value): Likewise.
5364         (frame_unwind_register_signed): Likewise.
5365         (frame_unwind_register_unsigned): Likewise.
5366         * frame.h (frame_register_unwind): Likewise.
5367         (frame_unwind_register): Likewise.
5368         (frame_unwind_register_value): Likewise.
5369         (frame_unwind_register_signed): Likewise.
5370         (frame_unwind_register_unsigned): Likewise.
5371         (frame_unwind_arch): Likewise.
5372
5373 2018-07-20  Maciej W. Rozycki  <macro@mips.com>
5374
5375         * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
5376         ISA maintenance.
5377
5378 2018-07-20  Maciej W. Rozycki  <macro@mips.com>
5379
5380         * mips-linux-nat.c (mips_linux_nat_target::read_description):
5381         Call `get_ptrace_pid' rather than extracting the ptrace PID by
5382         hand.
5383
5384 2018-07-20  Keith Seitz  <keiths@redhat.com>
5385
5386         * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
5387         m_main_subfile, m_comp_dir, m_producer, m_debugformat,
5388         m_compunit_symtab, m_language>: Add "m_" prefix.
5389         Update all uses.
5390         * buildsym.c: Update all uses.
5391
5392 2018-07-20  Tom Tromey  <tom@tromey.com>
5393
5394         * buildsym-legacy.h (record_line): Don't use record_line_ftype.
5395         * buildsym.h (record_line_ftype): Remove typedef.
5396
5397 2018-07-20  Tom Tromey  <tom@tromey.com>
5398
5399         * buildsym-legacy.h (augment_type_symtab): Don't declare.
5400         (end_expandable_symtab): Likewise.
5401         (end_symtab_get_static_block): Likewise.
5402         (end_symtab_from_static_block): Likewise.
5403         * buildsym-legacy.c (augment_type_symtab): Remove.
5404         (end_expandable_symtab): Remove.
5405         (end_symtab_get_static_block): Remove.
5406         (end_symtab_from_static_block): Remove.
5407
5408 2018-07-20  Tom Tromey  <tom@tromey.com>
5409
5410         * dwarf2read.c: Include buildsym.h.
5411         (struct dwarf2_cu) <builder>: New method.
5412         (fixup_go_packaging): Update.
5413         (process_full_comp_unit, process_full_type_unit): Update.  Don't
5414         use scoped_free_pendings.
5415         (using_directives): Add "cu" parameter, remove "language".
5416         (read_import_statement, setup_type_unit_groups, )
5417         (read_func_scope, read_lexical_block_scope)
5418         (dwarf2_record_block_ranges, read_namespace): Update.
5419         (lnp_state_machine::lnp_state_machine): Add cu parameter.
5420         (lnp_state_machine::handle_end_sequence): Update.
5421         (class lnp_state_machine) <m_cu>: New member.
5422         <m_record_line_callback>: Remove.
5423         <m_currently_recording_lines>: New member.
5424         (lnp_state_machine::handle_set_file): Update.
5425         (noop_record_line): Remove.
5426         (dwarf_record_line_p): Add cu parameter.
5427         (dwarf_record_line_1, dwarf_finish_line): Likewise.
5428         (lnp_state_machine::record_line)
5429         (lnp_state_machine::lnp_state_machine)
5430         (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
5431         (dwarf_decode_lines): Update.
5432         (dwarf2_start_subfile): Add cu parameter.
5433         (dwarf2_start_symtab, new_symbol): Update.
5434         (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
5435         Remove dwarf2_per_objfile parameter.
5436         (dwarf_decode_macros): Update.
5437
5438 2018-07-20  Tom Tromey  <tom@tromey.com>
5439
5440         * stabsread.c (define_symbol): Update.
5441         * buildsym-legacy.h (get_buildsym_compunit): Declare.
5442         * dwarf2read.c (new_symbol): Update.
5443         * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
5444         * cp-namespace.c: Include buildsym.h.
5445         (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
5446         * buildsym-legacy.c (get_buildsym_compunit): New function.
5447
5448 2018-07-20  Tom Tromey  <tom@tromey.com>
5449
5450         * xcoffread.c: Include buildsym-legacy.h.
5451         * windows-nat.c: Include buildsym-legacy.h.
5452         * stabsread.c: Include buildsym-legacy.h.
5453         * mdebugread.c: Include buildsym-legacy.h.
5454         * buildsym-legacy.h: New file.
5455         * buildsym-legacy.c: New file, from buildsym.c.
5456         * go32-nat.c: Include buildsym-legacy.h.
5457         * dwarf2read.c: Include buildsym-legacy.h.
5458         * dbxread.c: Include buildsym-legacy.h.
5459         * cp-namespace.c: Include buildsym-legacy.h.
5460         * coffread.c: Include buildsym-legacy.h.
5461         * buildsym.h: Move some contents to buildsym-legacy.h.
5462         * buildsym.c: Include buildsym-legacy.h.  Move many functions to
5463         buildsym-legacy.c.
5464         * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
5465
5466 2018-07-20  Tom Tromey  <tom@tromey.com>
5467
5468         * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
5469         * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
5470         (buildsym_compunit::buildsym_compunit)
5471         (buildsym_compunit::~buildsym_compunit)
5472         (buildsym_compunit::get_macro_table): Define.
5473
5474 2018-07-20  Tom Tromey  <tom@tromey.com>
5475
5476         * buildsym.c (reset_symtab_globals): Remove.
5477         (buildsym_compunit::end_symtab_from_static_block): Update.
5478         (buildsym_compunit::augment_type_symtab): Update.
5479         (end_symtab_from_static_block): Call free_buildsym_compunit.
5480         (augment_type_symtab, end_symtab, end_expandable_symtab):
5481         Likewise.
5482
5483 2018-07-20  Tom Tromey  <tom@tromey.com>
5484
5485         * arch-utils.c: Do not include buildsym.h.
5486         * mipsread.c: Do not include buildsym.h.
5487         * machoread.c: Do not include buildsym.h.
5488         * elfread.c: Do not include buildsym.h.
5489
5490 2018-07-20  Tom Tromey  <tom@tromey.com>
5491
5492         * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
5493         initialization.
5494         (buildsym_compunit): Add new constructor.
5495         (struct buildsym_compunit) <get_last_source_file, finish_block,
5496         record_block_range, start_subfile, patch_subfile_names,
5497         push_subfile, pop_subfile, record_line, get_compunit_symtab,
5498         set_last_source_start_addr, get_last_source_start_addr,
5499         get_local_using_directives, set_local_using_directives,
5500         get_global_using_directives, outermost_context_p,
5501         get_current_context_stack, get_context_stack_depth,
5502         get_current_subfile, get_local_symbols, get_file_symbols,
5503         get_global_symbols, record_debugformat, record_producer,
5504         push_context, pop_context, end_symtab_get_static_block,
5505         end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
5506         New public methods.
5507         <record_pending_block, finish_block_internal, make_blockvector,
5508         watch_main_source_file_lossage, end_symtab_with_blockvector>: New
5509         private methods.
5510         Update all users.
5511
5512 2018-05-22  Tom Tromey  <tom@tromey.com>
5513
5514         * buildsym.c (record_pending_block): Move earlier.  Remove objfile
5515         parameter.
5516         (finish_block_internal): Update.
5517
5518 2018-07-20  Tom Tromey  <tom@tromey.com>
5519
5520         * buildsym.c (record_pending_block): Move earlier.  Remove objfile
5521         parameter.
5522         (finish_block_internal): Update.
5523
5524 2018-07-20  Tom Tromey  <tom@tromey.com>
5525
5526         * buildsym.h (EXTERN): Don't define or undef.
5527         * buildsym.c (EXTERN): Don't define.
5528
5529 2018-07-20  Tom Tromey  <tom@tromey.com>
5530
5531         * buildsym.c: Remove TODO comment.
5532
5533 2018-07-20  Tom Tromey  <tom@tromey.com>
5534
5535         * coffread.c (coff_symtab_read): Update.
5536         * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
5537         (xcoff_new_init): Update.
5538         * mipsread.c (mipscoff_new_init): Update.
5539         * mdebugread.c (mdebug_build_psymtabs): Update.
5540         * elfread.c (elf_new_init): Update.
5541         * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
5542         Update.
5543         * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
5544         (coffstab_build_psymtabs, elfstab_build_psymtabs)
5545         (stabsect_build_psymtabs): Update.
5546         * buildsym.h (buildsym_init): Don't declare.
5547         * buildsym.c: Update comment.
5548         (prepare_for_building): Remove.
5549         (start_symtab, restart_symtab): Update.
5550         (reset_symtab_globals): Update comment.
5551         (buildsym_init): Remove.
5552
5553 2018-07-20  Tom Tromey  <tom@tromey.com>
5554
5555         * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
5556         * stabsread.c (patch_block_stabs, define_symbol, read_type)
5557         (read_enum_type, common_block_start, common_block_end)
5558         (cleanup_undefined_types_1, finish_global_stabs): Update.
5559         * mdebugread.c (psymtab_to_symtab_1): Update.
5560         * dwarf2read.c (fixup_go_packaging, read_func_scope)
5561         (read_lexical_block_scope, new_symbol): Update.
5562         * dbxread.c (process_one_symbol): Update.
5563         * coffread.c (coff_symtab_read, process_coff_symbol)
5564         (coff_read_enum_type): Update.
5565         * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
5566         declare.
5567         (get_local_symbols, get_file_symbols, get_global_symbols): New
5568         functions.
5569         * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
5570         m_global_symbols.
5571         <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
5572         (~scoped_free_pendings): Update.
5573         (finish_block, prepare_for_building, reset_symtab_globals)
5574         (end_symtab_get_static_block, end_symtab_with_blockvector)
5575         (augment_type_symtab, push_context): Update.
5576         (get_local_symbols, get_file_symbols, get_global_symbols): New
5577         functions.
5578         (buildsym_init): Update.
5579
5580 2018-07-20  Tom Tromey  <tom@tromey.com>
5581
5582         * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
5583         (process_full_type_unit): Likewise.
5584         (dwarf2_start_symtab): Set list_in_scope.
5585
5586 2018-07-20  Tom Tromey  <tom@tromey.com>
5587
5588         * dwarf2read.c (process_psymtab_comp_unit_reader)
5589         (build_type_psymtabs_reader): Do not set list_in_scope.
5590
5591 2018-07-20  Tom Tromey  <tom@tromey.com>
5592
5593         * buildsym.c (free_pendings): Remove.
5594         (add_symbol_to_list, scoped_free_pendings)
5595         (finish_block_internal, buildsym_init): Update.
5596
5597 2018-07-20  Tom Tromey  <tom@tromey.com>
5598
5599         * xcoffread.c (read_xcoff_symtab): Update.
5600         * dwarf2read.c (read_func_scope, read_lexical_block_scope):
5601         Update.
5602         * dbxread.c (process_one_symbol): Update.
5603         * coffread.c (coff_symtab_read): Update.
5604         * buildsym.h (finish_block): Update.
5605         * buildsym.c (finish_block): Remove "listhead" argument.
5606         (end_symtab_get_static_block): Update.
5607
5608 2018-07-20  Tom Tromey  <tom@tromey.com>
5609
5610         * buildsym.h (class scoped_free_pendings): Remove constructor.
5611         * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
5612         method.
5613         <m_pending_block_obstack, m_pending_blocks>: New members.
5614         (pending_block_obstack, pending_blocks): Remove.
5615         (scoped_free_pendings::scoped_free_pendings): Default.
5616         (~scoped_free_pendings): Update.
5617         (free_pending_blocks): Remove.
5618         (finish_block_internal, record_pending_block, make_blockvector)
5619         (end_symtab_get_static_block, augment_type_symtab, push_context)
5620         (buildsym_init): Update.
5621
5622 2018-07-20  Tom Tromey  <tom@tromey.com>
5623
5624         * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
5625         m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
5626         members.
5627         (pending_addrmap, pending_addrmap_obstack)
5628         (pending_addrmap_interesting): Remove.
5629         (scoped_free_pendings, record_block_range, make_blockvector)
5630         (prepare_for_building, reset_symtab_globals, buildsym_init):
5631         Update.
5632
5633 2018-07-20  Tom Tromey  <tom@tromey.com>
5634
5635         * xcoffread.c (process_linenos): Update.
5636         * stabsread.c (define_symbol, read_type, read_enum_type): Update.
5637         * mdebugread.c (psymtab_to_symtab_1): Update.
5638         * dwarf2read.c (setup_type_unit_groups)
5639         (lnp_state_machine::handle_set_file, dwarf_record_line_p)
5640         (lnp_state_machine::record_line, dwarf_decode_lines): Update.
5641         * dbxread.c (process_one_symbol): Update.
5642         * coffread.c (coff_symtab_read, enter_linenos)
5643         (process_coff_symbol): Update.
5644         * buildsym.h (current_subfile): Don't declare.
5645         (get_current_subfile): Declare.
5646         * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
5647         member.
5648         (start_subfile, free_buildsym_compunit, push_subfile)
5649         (prepare_for_building, start_symtab): Update.
5650         (get_current_subfile): New function.
5651
5652 2018-07-20  Tom Tromey  <tom@tromey.com>
5653
5654         * coffread.c (coff_symtab_read): Update.
5655         * xcoffread.c (read_xcoff_symtab): Update.
5656         * dwarf2read.c (new_symbol): Update.
5657         (read_func_scope, read_lexical_block_scope): Update.
5658         * dbxread.c (process_one_symbol): Update.
5659         * buildsym.h (context_stack, context_stack_depth): Don't declare.
5660         (outermost_context_p): Remove macro.
5661         (outermost_context_p, get_current_context_stack)
5662         (get_context_stack_depth): Declare.
5663         (pop_context): Return struct context_stack.
5664         * buildsym.c (struct buildsym_compunit) <m_context_stack: New
5665         member.
5666         (context_stack_size): Remove.
5667         (INITIAL_CONTEXT_STACK_SIZE): Remove.
5668         (prepare_for_building, end_symtab_get_static_block)
5669         (augment_type_symtab, push_context): Update.
5670         (pop_context): Return struct context_stack.
5671         (outermost_context_p, get_current_context_stack)
5672         (get_context_stack_depth): New functions.
5673         (buildsym_init): Update.
5674
5675 2018-07-20  Tom Tromey  <tom@tromey.com>
5676
5677         * rust-exp.y: Now a pure parser.  Update all rules.
5678         (%union): Move earlier.
5679         (current_parser, work_obstack): Remove globals.
5680         (rust_parser, ~rust_parser): Update.
5681         (class rust_parser) <copy_name, concat3, crate_name, super_name,
5682         lex_character, lex_number, lex_string, lex_identifier,
5683         rust_lookup_type, convert_params_to_types, convert_ast_to_type,
5684         convert_name, convert_params_to_expression,
5685         convert_ast_to_expression, ast_basic_type, ast_operation,
5686         ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
5687         ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
5688         ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
5689         ast_array_type, ast_slice_type, ast_reference_type,
5690         ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
5691         (rust_parse): Update.
5692         (rustyyerror, rustyylex): Add parser parameter.
5693         (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
5694         (rust_lex_stringish_test, rust_lex_test_sequence)
5695         (rust_lex_test_trailing_dot, rust_lex_test_completion)
5696         (rust_lex_test_push_back, rust_lex_tests): Update.
5697
5698 2018-07-19  Pedro Alves  <palves@redhat.com>
5699
5700         * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
5701         gdb::unique_xmalloc_ptr.
5702         * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
5703         Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
5704         * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
5705         copy-initialization.
5706         * guile/scm-pretty-print.c (ppscm_print_children): Use
5707         gdb::unique_xmalloc_ptr instead of cleanups.
5708         (gdbscm_apply_val_pretty_printer): Remove cleanups.
5709         * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
5710         gdb::unique_xmalloc_ptr.
5711         * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
5712         Adjust to use gdb::unique_xmalloc_ptr.
5713         * guile/scm-utils.c (extract_arg): Adjust.
5714         * guile/scm-value.c (gdbscm_value_field): Adjust to use
5715         gdb::unique_xmalloc_ptr instead of a cleanup.
5716
5717 2018-07-19  Tom Tromey  <tom@tromey.com>
5718
5719         * utils.c (do_value_free_to_mark)
5720         (make_cleanup_value_free_to_mark): Remove.
5721         * utils.h (make_cleanup_value_free_to_mark): Remove.
5722
5723 2018-07-19  Pedro Alves  <palves@redhat.com>
5724
5725         * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
5726         forwarding reference.
5727
5728 2018-07-18  Pedro Alves  <palves@redhat.com>
5729
5730         * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
5731         gdbscm_wrap.  Use gdb::unique_xmalloc_ptr<char> instead of a
5732         cleanup.
5733
5734 2018-07-18  Pedro Alves  <palves@redhat.com>
5735
5736         * guile/guile-internal.h: Add comment about mixing GDB and Scheme
5737         exceptions.
5738         (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
5739         (gdbscm_wrap): New.
5740         * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
5741         directly instead of a cleanup.
5742         * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
5743         (vlscm_unop): ... this.  Reimplement using gdbscm_wrap.
5744         (vlscm_binop_gdbthrow): New, factored out from ...
5745         (vlscm_binop): ... this.  Reimplement using gdbscm_wrap.
5746         (vlscm_rich_compare): Use gdbscm_wrap.
5747         * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
5748         instead of a cleanup.
5749         (gdbscm_lookup_global_symbol): Use xfree directly instead of a
5750         cleanup.
5751         * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
5752         Use xfree directly instead of a cleanup.
5753         * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
5754         Adjust to use gdbscm_wrap and scoped_value_mark.
5755         (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
5756         (gdbscm_value_address, gdbscm_value_dereference)
5757         (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
5758         scoped_value_mark.
5759         (gdbscm_value_dynamic_type): Use scoped_value_mark.
5760         (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
5761         scoped_value_mark.
5762         (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
5763         gdbscm_wrap and scoped_value_mark.
5764         (gdbscm_value_to_string): Use xfree directly instead of a
5765         cleanup.  Move 'buffer' unique_ptr to TRY scope.
5766         (gdbscm_value_to_lazy_string): Use xfree directly instead of a
5767         cleanup.  Move 'buffer' unique_ptr to TRY scope.  Use
5768         scoped_value_mark.
5769         (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
5770         (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
5771         scoped_value_mark.
5772         (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
5773         gdbscm_wrap.
5774
5775 2018-07-18  Tom de Vries  <tdevries@suse.de>
5776
5777         * findvar.c (default_read_var_value): Also resolve dynamic type for
5778         LOC_OPTIMIZED_OUT vars.
5779
5780 2018-07-18  Maciej W. Rozycki  <macro@mips.com>
5781
5782         * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
5783         decoding.
5784
5785 2018-07-17  Tom Tromey  <tom@tromey.com>
5786
5787         * guile/scm-param.c (pascm_set_func, pascm_show_func)
5788         (compute_enum_list, pascm_set_param_value_x)
5789         (gdbscm_parameter_value): Update.
5790         * guile/guile-internal.h (gdbscm_scm_to_string): Update.
5791         (gdbscm_scm_to_host_string): Update.
5792         * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
5793         Update.
5794         * guile/scm-cmd.c (cmdscm_add_completion): Update.
5795         * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
5796         * guile/scm-string.c (gdbscm_scm_to_string): Return
5797         unique_xmalloc_ptr.
5798         (gdbscm_scm_to_host_string): Likewise.
5799
5800 2018-07-17  Tom Tromey  <tom@tromey.com>
5801
5802         * guile/guile.c (gdbscm_eval_from_control_command): Update.
5803         * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
5804         * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
5805         * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
5806         unique_xmalloc_ptr.
5807
5808 2018-07-17  Tom Tromey  <tom@tromey.com>
5809
5810         * guile/scm-param.c (pascm_signal_setshow_error): Update.
5811         * guile/guile-internal.h (gdbscm_exception_message_to_string):
5812         Update.
5813         * guile/scm-cmd.c (cmdscm_function): Update.
5814         * guile/scm-pretty-print.c
5815         (ppscm_print_exception_unless_memory_error): Update.
5816         * guile/scm-exception.c (gdbscm_exception_message_to_string):
5817         Return unique_xmalloc_ptr.
5818
5819 2018-07-17  Tom Tromey  <tom@tromey.com>
5820
5821         * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
5822         Use string_printf.
5823
5824 2018-07-17  Jim Wilson  <jimw@sifive.com>
5825
5826         * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
5827         set_gdbarch_decr_pc_after_break.  Call riscv_read_misa_reg always.
5828         (riscv_gdbarch_init): Delete local has_compressed_isa.  Delete now
5829         unecessary braces after EF_RISCV_RVC test.  Delete call to
5830         set_gdbarch_decr_pc_after_break.
5831
5832         * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
5833         RISCV_LAST_FP_REGNUM + 1.
5834         (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
5835
5836 2018-07-17  Tom Tromey  <tom@tromey.com>
5837
5838         * configure.ac: Remove --disable-gdbcli.
5839         * configure: Rebuild.
5840         * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
5841         (SUBDIR_CLI_CFLAGS): Remove.
5842         (SFILES): Use SUBDIR_CLI_SRCS.
5843         (COMMON_OBS): Use SUBDIR_CLI_OBS.
5844
5845 2018-07-17  Tom Tromey  <tom@tromey.com>
5846
5847         PR gdb/18624:
5848         * coffread.c (coff_symtab_read): Use scoped_free_pendings.
5849
5850 2018-07-16  Jim Wilson  <jimw@sifive.com>
5851
5852         * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
5853
5854 2018-07-16  Simon Marchi  <simon.marchi@ericsson.com>
5855
5856         * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
5857         variable.
5858         (libunwind_frame_sniffer): Likewise.
5859         (libunwind_frame_prev_register): Likewise.
5860         (libunwind_sigtramp_frame_sniffer): Likewise.
5861         * ia64-tdep.c (ia64_access_reg): Likewise.
5862         (ia64_access_rse_reg): Likewise.
5863         (ia64_libunwind_sigtramp_frame_this_id): Likewise.
5864         * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
5865
5866 2018-07-16  Simon Marchi  <simon.marchi@ericsson.com>
5867
5868         * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
5869
5870 2018-07-16  Simon Marchi  <simon.marchi@ericsson.com>
5871
5872         * remote-sim.c (gdbsim_target::close,
5873         gdbsim_target::mourn_inferior): Remove unused variables.
5874
5875 2018-07-16  Simon Marchi  <simon.marchi@polymtl.ca>
5876
5877         * ia64-tdep.c (ktab_buf): New global.
5878         (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
5879         (get_kernel_table): Adjust.
5880
5881 2018-07-16  Tom Tromey  <tom@tromey.com>
5882
5883         * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
5884         * dwarf2read.c (using_directives, new_symbol): Use
5885         outermost_context_p.
5886         * dbxread.c (process_one_symbol): Use outermost_context_p.
5887         * coffread.c (coff_symtab_read): Use outermost_context_p.
5888
5889 2018-07-16  Tom Tromey  <tom@tromey.com>
5890
5891         * dwarf2read.c (using_directives, read_func_scope)
5892         (read_lexical_block_scope): Update.
5893         * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
5894         * buildsym.h (local_using_directives, global_using_directives):
5895         Don't declare.
5896         (get_local_using_directives, set_local_using_directives)
5897         (get_global_using_directives): Declare.
5898         * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
5899         m_global_using_directives>: New members.
5900         (finish_block_internal, prepare_for_building)
5901         (reset_symtab_globals, end_symtab_get_static_block)
5902         (push_context): Update.
5903         (get_local_using_directives, set_local_using_directives)
5904         (get_global_using_directives): New functions.
5905         (buildsym_init): Update.
5906
5907 2018-07-16  Tom Tromey  <tom@tromey.com>
5908
5909         * xcoffread.c (xcoff_initial_scan): Don't call
5910         free_pending_blocks.
5911         * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
5912         * buildsym.h (class scoped_free_pendings): Add constructor.
5913         (free_pending_blocks): Don't declare.
5914         * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
5915         (free_pending_blocks): Now static.
5916
5917 2018-07-16  Tom Tromey  <tom@tromey.com>
5918
5919         * buildsym.h (push_subfile, pop_subfile): Update declarations.
5920         * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
5921         member.
5922         (struct subfile_stack): Remove.
5923         (subfile_stack): Remove.
5924         (push_subfile, pop_subfile, buildsym_init): Update.
5925
5926 2018-07-16  Tom Tromey  <tom@tromey.com>
5927
5928         * buildsym.c (push_subfile): Use gdb_assert.
5929         (pop_subfile): Use gdb_assert.
5930
5931 2018-07-16  Tom Tromey  <tom@tromey.com>
5932
5933         * buildsym.h (merge_symbol_lists): Remove.
5934         * buildsym.c (merge_symbol_lists): Remove.
5935
5936 2018-07-16  Tom Tromey  <tom@tromey.com>
5937
5938         * stabsread.c (scan_file_globals): Update comment.
5939         * stabsread.h (scan_file_globals): Move from buildsym.h.
5940         * buildsym.h (scan_file_globals): Move to stabsread.h.
5941
5942 2018-07-16  Tom Tromey  <tom@tromey.com>
5943
5944         * xcoffread.c (xcoff_new_init): Update.
5945         * mipsread.c (mipscoff_new_init): Update.
5946         * mdebugread.c (mdebug_build_psymtabs): Update.
5947         * elfread.c (elf_new_init): Update.
5948         * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
5949         (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
5950         * buildsym.h (buildsym_new_init): Don't declare.
5951         * buildsym.c (buildsym_new_init): Remove.
5952
5953 2018-07-16  Tom Tromey  <tom@tromey.com>
5954
5955         * stabsread.h (within_function): Move from buildsym.h.
5956         * stabsread.c (start_stabs): Clear within_function.
5957         * coffread.c (coff_start_symtab): Clear within_function.
5958         * buildsym.h (within_function): Move to stabsread.h.
5959         * buildsym.c (prepare_for_building): Update.
5960
5961 2018-07-16  Tom Tromey  <tom@tromey.com>
5962
5963         * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
5964         * dwarf2read.c (dwarf2_start_symtab): Don't set
5965         processing_gcc_compilation.
5966         * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
5967
5968 2018-07-16  Tom Tromey  <tom@tromey.com>
5969
5970         * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
5971         (next_symbol_text_func): Move from buildsym.h.
5972         * stabsread.c (hashname): Move from buildsym.c.
5973         * buildsym.h (HASHSIZE, symnum, next_symbol_text)
5974         (next_symbol_text_func, hashname): Move to stabsread.h.
5975         * buildsym.c: Don't include bcache.h
5976         (hashname): Move to stasbread.c.
5977
5978 2018-07-16  Tom Tromey  <tom@tromey.com>
5979
5980         * buildsym.h (context_stack_size): Don't declare.
5981         * buildsym.c (context_stack_size): New global.
5982
5983 2018-07-16  Tom Tromey  <tom@tromey.com>
5984
5985         * dbxread.c (processing_acc_compilation): New global.
5986         * buildsym.h (processing_acc_compilation): Don't declare.
5987
5988 2018-07-16  Tom Tromey  <tom@tromey.com>
5989
5990         * xcoffread.c (aix_process_linenos, complete_symtab): Update.
5991         * dbxread.c (read_ofile_symtab): Update.
5992         * coffread.c (coff_start_symtab, coff_end_symtab): Update.
5993         * buildsym.h (last_source_start_addr): Remove.
5994         (set_last_source_start_addr, get_last_source_start_addr):
5995         Declare.
5996         * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
5997         parameter.
5998         (struct buildsym_compunit) <m_last_source_start_addr>: New
5999         member.
6000         (prepare_for_building): Remove start_addr parameter.
6001         (start_symtab, restart_symtab, end_symtab_get_static_block)
6002         (end_symtab_with_blockvector): Update.
6003         (set_last_source_start_addr, get_last_source_start_addr): New
6004         functions.
6005
6006 2018-07-16  Tom Tromey  <tom@tromey.com>
6007
6008         * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
6009         member.
6010         (have_line_numbers): Remove.
6011         (record_line, prepare_for_building, end_symtab_get_static_block)
6012         (augment_type_symtab): Update.
6013
6014 2018-07-16  Tom Tromey  <tom@tromey.com>
6015
6016         * buildsym.c (~buildsym_compunit): Free the macro table.
6017         (struct buildsym_compunit) <get_macro_table, release_macros>: New
6018         methods.
6019         <m_pending_macros>: New member.
6020         (pending_macros): Remove.
6021         (~scoped_free_pendings, get_macro_table, prepare_for_building)
6022         (reset_symtab_globals, end_symtab_get_static_block)
6023         (end_symtab_with_blockvector, augment_type_symtab)
6024         (buildsym_init): Update.
6025
6026 2018-07-16  Tom Tromey  <tom@tromey.com>
6027
6028         * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
6029         parameter.
6030         (buildsym_compunit::set_last_source_file): New method.
6031         <m_last_source_file>: New member.
6032         (prepare_for_building): Remove "name" parameter.
6033         (start_symtab, restart_symtab, reset_symtab_globals): Update.
6034         (last_source_file): Remove.
6035         (set_last_source_file, get_last_source_file): Update.
6036
6037 2018-07-16  Tom Tromey  <tom@tromey.com>
6038
6039         * buildsym.c (prepare_for_building): Add assert.
6040
6041 2018-07-16  Tom Tromey  <tom@tromey.com>
6042
6043         * buildsym.c (~buildsym_compunit): Update.
6044         (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
6045         (start_subfile, patch_subfile_names)
6046         (end_symtab_with_blockvector): Update.
6047
6048 2018-07-16  Tom Tromey  <tom@tromey.com>
6049
6050         * buildsym.c (struct buildsym_compunit): Add constructor,
6051         destructor, initializers.
6052         (start_buildsym_compunit): Remove.
6053         (free_buildsym_compunit): Use "delete".
6054         (start_symtab, restart_symtab): Use "new".
6055
6056 2018-07-13  Simon Marchi  <simon.marchi@polymtl.ca>
6057
6058         * symfile.c (set_objfile_default_section_offset): Remove struct
6059         keyword.
6060
6061 2018-07-14  Stafford Horne  <shorne@gmail.com>
6062
6063         * (Responsible Maintainers): Add myself as or1k maintainer.
6064
6065 2018-07-13  Tom Tromey  <tom@tromey.com>
6066
6067         * symfile.c (set_objfile_default_section_offset): Use extra braces
6068         around initializer.
6069
6070 2018-07-13  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6071
6072         * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
6073         non-branching basr.
6074
6075 2018-07-12  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
6076
6077         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6078         unittests/cli-utils-selftests.c
6079         * unittests/cli-utils-selftests.c: New file.
6080
6081 2018-07-12  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
6082
6083         * NEWS: Mention new commands. Mention change to 'thread apply'.
6084
6085 2018-07-12  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
6086
6087         * thread.c (thr_try_catch_cmd): New function.
6088         (thread_apply_all_command): Handle qcs flags.
6089         (thread_apply_command): Handle qcs flags.
6090         (taas_command): New function.
6091         (tfaas_command): New function.
6092         (_initialize_thread): Update to setup the new commands 'taas
6093         and 'tfaas'. Change doc string for 'thread apply'.
6094
6095 2018-07-12  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
6096
6097         * stack.c: (trailing_outermost_frame): New function, mostly
6098         extracted from backtrace_command_1.
6099         (leading_innermost_frame): New function.
6100         (backtrace_command_1): Update to call trailing_outermost_frame.
6101         (frame_apply_command_count): New function.
6102         (frame_apply_level_command): New function.
6103         (frame_apply_all_command): New function.
6104         (frame_apply_command): New function.
6105         (faas_command): New function.
6106         (frame_cmd_list): New variable.
6107         (_initialize_stack): Update to setup the new commands 'frame apply'
6108         and 'faas'.
6109
6110 2018-07-12  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
6111
6112         * cli-utils.c (number_or_range_parser::get_number): Only handle
6113         numbers or convenience var as numbers.
6114         (parse_flags): New function.
6115         (parse_flags_qcs): New function.
6116         (number_or_range_parser::finished): Ensure parsing end is detected
6117         before end of string.
6118         * cli-utils.h (parse_flags): New function.
6119         (parse_flags_qcs): New function.
6120         (number_or_range_parser): Remove m_finished bool.
6121         (number_or_range_parser::skip_range): Set m_in_range to false.
6122
6123 2018-07-12  Sergio Durigan Junior  <sergiodj@redhat.com>
6124
6125         * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
6126         on Windows.
6127
6128 2018-07-11  Sergio Durigan Junior  <sergiodj@redhat.com>
6129             Jan Kratochvil  <jan.kratochvil@redhat.com>
6130             Paul Fertser  <fercerpav@gmail.com>
6131             Tsutomu Seki  <sekiriki@gmail.com>
6132             Pedro Alves  <palves@redhat.com>
6133
6134         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6135         'unittests/parse-connection-spec-selftests.c'.
6136         (COMMON_SFILES): Add 'common/netstuff.c'.
6137         (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
6138         * NEWS (Changes since GDB 8.2): Mention IPv6 support.
6139         * common/netstuff.c: New file.
6140         * common/netstuff.h: New file.
6141         * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
6142         (wait_for_connect): Update comment.  New parameter
6143         'gdb::optional<int> sock' instead of 'struct serial *scb'.
6144         Use 'sock' directly instead of 'scb->fd'.
6145         (try_connect): New function, with code from 'net_open'.
6146         (net_open): Rewrite main loop to deal with multiple
6147         sockets/addresses.  Handle IPv6-style hostnames; implement
6148         support for IPv6 connections.
6149         * unittests/parse-connection-spec-selftests.c: New file.
6150
6151 2018-07-11  Pedro Alves  <palves@redhat.com>
6152
6153         PR gdb/23377
6154         * remote.c (remote_target::remote_detach_pid): Call
6155         set_current_process.
6156
6157 2018-07-11  Pedro Alves  <palves@redhat.com>
6158
6159         * h8300-tdep.c (h8300_gdbarch_init): Remove
6160         set_gdbarch_ecoff_reg_to_regnum calls.
6161
6162 2018-07-11  Sergio Durigan Junior  <sergiodj@redhat.com>
6163
6164         PR c++/23373
6165         * c-typeprint.c (c_type_print_base_struct_union): Don't print
6166         offsets/sizes for static members of a class/struct.
6167
6168 2018-07-11  Alan Hayward  <alan.hayward@arm.com>
6169
6170         * target-descriptions.c (tdesc_register_bitsize): Rename.
6171         * target-descriptions.h (tdesc_register_bitsize): Likewise.
6172         * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
6173         * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
6174
6175 2018-07-10  Tom Tromey  <tom@tromey.com>
6176
6177         * breakpoint.c (moribund_locations): Now static and a
6178         std::vector.
6179         (breakpoint_init_inferior, moribund_breakpoint_here_p)
6180         (build_bpstat_chain, update_global_location_list)
6181         (breakpoint_retire_moribund): Update.
6182         * breakpoint.h (bp_location_p): Remove typedef.  Don't declare
6183         VEC.
6184
6185 2018-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
6186
6187         * riscv-tdep.c (riscv_is_fp_regno_p): New function.
6188         (riscv_register_reggroup_p): Use new function, remove unneeded
6189         parenthesis.
6190         (riscv_push_dummy_call): Extend assert to compare against xlen or
6191         flen based on register type.
6192
6193 2018-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
6194
6195         * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
6196
6197 2018-07-09  Andrew Burgess  <andrew.burgess@embecosm.com>
6198
6199         * remote.c (show_hardware_watchpoint_limit): New function.
6200         (show_hardware_watchpoint_length_limit): New function.
6201         (show_hardware_breakpoint_limit): New function.
6202         (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
6203         where appropriate, update help text.
6204
6205 2018-07-09  Tom Tromey  <tom@tromey.com>
6206
6207         * Makefile.in (CDEPS): Don't mention XM_CDEPS.
6208         (CLIBS): Don't mention NAT_CLIBS.
6209
6210 2018-07-09  Tom Tromey  <tom@tromey.com>
6211
6212         * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
6213         (LIBGDB_OBS, clean mostlyclean): Update.
6214         (gdb$(EXEEXT), insight$(EXEEXT)): Update.
6215
6216 2018-07-09  Tom Tromey  <tom@tromey.com>
6217
6218         * Makefile.in (%.c: %.y): Use ECHO_YACC.
6219         (%.c: %.l): Use ECHO_LEX.  Just fail if flex not available.
6220         * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
6221
6222 2018-07-09  Tom Tromey  <tom@tromey.com>
6223
6224         * Makefile.in (ALLDEPFILES): Remove exec.c.
6225         (COMMON_OBS): Remove exec.o.
6226         (COMMON_SFILES): Add exec.c.
6227
6228 2018-07-09  Tom Tromey  <tom@tromey.com>
6229
6230         * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
6231
6232 2018-07-09  Tom Tromey  <tom@tromey.com>
6233
6234         * Makefile.in (clean mostlyclean): Remove stamp-version.
6235         (version.c): Depend on stamp-version.
6236         (stamp-version): New rule, from version.c rule.
6237
6238 2018-07-09  Tom Tromey  <tom@tromey.com>
6239
6240         * Makefile.in (init.c): Depend on stamp-init.
6241         (stamp-init): New rule, from init.c rule.
6242         (clean mostlyclean): Remove stamp-init.
6243
6244 2018-07-09  Tom Tromey  <tom@tromey.com>
6245
6246         * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
6247         SUBDIR_GCC_COMPILE_SRCS.
6248
6249 2018-07-09  Tom Tromey  <tom@tromey.com>
6250
6251         * Makefile.in (init.c): Remove some unused sed rules.
6252
6253 2018-07-09  Tom Tromey  <tom@tromey.com>
6254
6255         * Makefile.in (TSOBS): Remove.
6256         (INIT_FILES): Update.
6257         (LIBGDB_OBS): Update.
6258         (COMMON_SFILES): Add inflow.c.
6259         (SFILES): Remove inflow.c.
6260
6261 2018-07-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
6262
6263         * contrib/gdb-add-index.sh ($dwarf5): New, use it.
6264
6265 2018-07-07  Simon Marchi  <simon.marchi@polymtl.ca>
6266
6267         * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
6268         get_saveloc_name, is_signal_frame_name, step_name,
6269         init_remote_name, create_addr_space_name,
6270         destroy_addr_space_name, search_unwind_table_name,
6271         find_dyn_list_name): Constify.
6272
6273 2018-07-05  Simon Marchi  <simon.marchi@polymtl.ca>
6274
6275         * darwin-nat.c (darwin_pthread_kill): New function.
6276         (darwin_resume_thread): Use darwin_pthread_kill.
6277
6278 2018-07-05  Tom de Vries  <tdevries@suse.de>
6279
6280         * macroexp.c (macro_buffer) <operator=>: New member function.
6281
6282 2018-07-04  Tom Tromey  <tom@tromey.com>
6283
6284         * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
6285
6286 2018-07-04  Simon Marchi  <simon.marchi@polymtl.ca>
6287
6288         * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
6289         * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
6290         * maint.c: Likewise.
6291         * top.c: Likewise.
6292
6293 2018-07-04  Joel Brobecker  <brobecker@adacore.com>
6294
6295         * NEWS: Create a new section for the next release branch.
6296         Rename the section of the current branch, now that it has
6297         been cut.
6298
6299 2018-07-04  Joel Brobecker  <brobecker@adacore.com>
6300
6301         GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
6302         * version.in: Bump version to 8.2.50.DATE-git.
6303
6304 2018-07-04  Vyacheslav Barinov  <v.barinov@samsung.com>
6305             Pedro Alves  <palves@redhat.com>
6306
6307         * linux-nat.c (linux_init_ptrace): Rename to ...
6308         (linux_init_ptrace_procfs): ... this.  Call
6309         linux_proc_init_warnings.
6310         (linux_nat_target::post_attach)
6311         (linux_nat_target::post_startup_inferior): Adjust.
6312         * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
6313         * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
6314
6315 2018-07-04  Tom de Vries  <tdevries@suse.de>
6316
6317         * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
6318         check ...
6319         (read_comp_unit_head): ... here.
6320
6321 2018-07-03  Tom Tromey  <tom@tromey.com>
6322
6323         * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
6324         (stop_tracing, tstatus_command)
6325         (find_matching_tracepoint_location, merge_uploaded_tracepoints)
6326         (print_one_static_tracepoint_marker): Update.
6327         * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
6328         std::vector.
6329         * breakpoint.h (breakpoint_p): Remove typedef.  Don't declare
6330         VEC.
6331         (all_tracepoints, static_tracepoints_here): Return std::vector.
6332
6333 2018-07-03  Tom Tromey  <tom@tromey.com>
6334
6335         * common/ptid.c (ptid_equal): Remove.
6336         * common/ptid.h (ptid_equal): Don't declare.
6337         * ada-tasks.c: Update.
6338         * breakpoint.c: Update.
6339         * common/agent.c: Update.
6340         * corelow.c: Update.
6341         * darwin-nat-info.c: Update.
6342         * darwin-nat.c: Update.
6343         * dcache.c: Update.
6344         * dtrace-probe.c: Update.
6345         * dummy-frame.c: Update.
6346         * fbsd-nat.c: Update.
6347         * frame.c: Update.
6348         * gdbthread.h: Update.
6349         * gnu-nat.c: Update.
6350         * go32-nat.c: Update.
6351         * inf-loop.c: Update.
6352         * inf-ptrace.c: Update.
6353         * infcall.c: Update.
6354         * infcmd.c: Update.
6355         * inflow.c: Update.
6356         * infrun.c: Update.
6357         * linux-fork.c: Update.
6358         * linux-nat.c: Update.
6359         * linux-thread-db.c: Update.
6360         * mi/mi-cmd-var.c: Update.
6361         * mi/mi-interp.c: Update.
6362         * mi/mi-main.c: Update.
6363         * nto-procfs.c: Update.
6364         * ppc-linux-tdep.c: Update.
6365         * procfs.c: Update.
6366         * python/py-inferior.c: Update.
6367         * python/py-record-btrace.c: Update.
6368         * python/py-record.c: Update.
6369         * ravenscar-thread.c: Update.
6370         * regcache.c: Update.
6371         * remote-sim.c: Update.
6372         * remote.c: Update.
6373         * sol-thread.c: Update.
6374         * solib.c: Update.
6375         * target.c: Update.
6376         * tui/tui-stack.c: Update.
6377         * varobj.c: Update.
6378         * windows-nat.c: Update.
6379         * windows-tdep.c: Update.
6380
6381 2018-07-03  Tom Tromey  <tom@tromey.com>
6382
6383         * common/ptid.c (ptid_match): Remove.
6384         * common/ptid.h (ptid_match): Don't declare.
6385         * fbsd-nat.c: Update.
6386         * infcmd.c: Update.
6387         * infrun.c: Update.
6388         * linux-nat.c: Update.
6389         * record-btrace.c: Update.
6390         * regcache.c: Update.
6391         * remote.c: Update.
6392
6393 2018-07-03  Tom Tromey  <tom@tromey.com>
6394
6395         * common/ptid.c (ptid_tid_p): Remove.
6396         * common/ptid.h (ptid_tid_p): Don't declare.
6397         * sol-thread.c: Update.
6398
6399 2018-07-03  Tom Tromey  <tom@tromey.com>
6400
6401         * common/ptid.c (ptid_lwp_p): Remove.
6402         * common/ptid.h (ptid_lwp_p): Don't declare.
6403         * fbsd-nat.c: Update.
6404         * linux-nat.c: Update.
6405         * nat/linux-procfs.c: Update.
6406         * nat/x86-linux-dregs.c: Update.
6407         * sol-thread.c: Update.
6408
6409 2018-07-03  Tom Tromey  <tom@tromey.com>
6410
6411         * common/ptid.c (ptid_is_pid): Remove.
6412         * common/ptid.h (ptid_is_pid): Don't declare.
6413         * infrun.c: Update.
6414         * linux-nat.c: Update.
6415         * mi/mi-interp.c: Update.
6416         * remote.c: Update.
6417         * thread.c: Update.
6418
6419 2018-07-03  Tom Tromey  <tom@tromey.com>
6420
6421         * common/ptid.c (ptid_get_tid): Remove.
6422         * common/ptid.h (ptid_get_tid): Don't declare.
6423         * ada-tasks.c: Update.
6424         * aix-thread.c: Update.
6425         * bsd-uthread.c: Update.
6426         * darwin-nat.c: Update.
6427         * fbsd-nat.c: Update.
6428         * i386-darwin-nat.c: Update.
6429         * infrun.c: Update.
6430         * linux-tdep.c: Update.
6431         * nto-procfs.c: Update.
6432         * ppc-ravenscar-thread.c: Update.
6433         * python/py-infthread.c: Update.
6434         * ravenscar-thread.c: Update.
6435         * sol-thread.c: Update.
6436         * sparc-ravenscar-thread.c: Update.
6437         * windows-nat.c: Update.
6438
6439 2018-07-03  Tom Tromey  <tom@tromey.com>
6440
6441         * common/ptid.c (ptid_get_lwp): Remove.
6442         * common/ptid.h (ptid_get_lwp): Don't declare.
6443         * aarch64-linux-nat.c: Update.
6444         * ada-tasks.c: Update.
6445         * aix-thread.c: Update.
6446         * amd64-linux-nat.c: Update.
6447         * arm-linux-nat.c: Update.
6448         * corelow.c: Update.
6449         * fbsd-nat.c: Update.
6450         * fbsd-tdep.c: Update.
6451         * gnu-nat.c: Update.
6452         * i386-cygwin-tdep.c: Update.
6453         * i386-gnu-nat.c: Update.
6454         * i386-linux-nat.c: Update.
6455         * ia64-linux-nat.c: Update.
6456         * inf-ptrace.c: Update.
6457         * infrun.c: Update.
6458         * linux-fork.c: Update.
6459         * linux-nat.c: Update.
6460         * linux-tdep.c: Update.
6461         * linux-thread-db.c: Update.
6462         * mips-linux-nat.c: Update.
6463         * nat/aarch64-linux-hw-point.c: Update.
6464         * nat/aarch64-linux.c: Update.
6465         * nat/linux-btrace.c: Update.
6466         * nat/linux-osdata.c: Update.
6467         * nat/linux-procfs.c: Update.
6468         * nat/x86-linux-dregs.c: Update.
6469         * obsd-nat.c: Update.
6470         * ppc-fbsd-nat.c: Update.
6471         * ppc-linux-nat.c: Update.
6472         * procfs.c: Update.
6473         * python/py-infthread.c: Update.
6474         * ravenscar-thread.c: Update.
6475         * remote.c: Update.
6476         * s390-linux-nat.c: Update.
6477         * sol-thread.c: Update.
6478         * sol2-tdep.c: Update.
6479         * spu-linux-nat.c: Update.
6480         * x86-linux-nat.c: Update.
6481         * xtensa-linux-nat.c: Update.
6482
6483 2018-07-03  Tom Tromey  <tom@tromey.com>
6484
6485         * common/ptid.c (ptid_get_pid): Remove.
6486         * common/ptid.h (ptid_get_pid): Don't declare.
6487         * aarch64-linux-nat.c: Update.
6488         * ada-lang.c: Update.
6489         * aix-thread.c: Update.
6490         * alpha-bsd-nat.c: Update.
6491         * amd64-fbsd-nat.c: Update.
6492         * amd64-linux-nat.c: Update.
6493         * arm-linux-nat.c: Update.
6494         * arm-nbsd-nat.c: Update.
6495         * auxv.c: Update.
6496         * break-catch-syscall.c: Update.
6497         * breakpoint.c: Update.
6498         * bsd-uthread.c: Update.
6499         * corelow.c: Update.
6500         * ctf.c: Update.
6501         * darwin-nat.c: Update.
6502         * fbsd-nat.c: Update.
6503         * fbsd-tdep.c: Update.
6504         * gcore.c: Update.
6505         * gnu-nat.c: Update.
6506         * hppa-nbsd-nat.c: Update.
6507         * hppa-obsd-nat.c: Update.
6508         * i386-fbsd-nat.c: Update.
6509         * ia64-linux-nat.c: Update.
6510         * inf-ptrace.c: Update.
6511         * infcmd.c: Update.
6512         * inferior.c: Update.
6513         * inferior.h: Update.
6514         * inflow.c: Update.
6515         * infrun.c: Update.
6516         * linux-fork.c: Update.
6517         * linux-nat.c: Update.
6518         * linux-tdep.c: Update.
6519         * linux-thread-db.c: Update.
6520         * m68k-bsd-nat.c: Update.
6521         * mi/mi-interp.c: Update.
6522         * mi/mi-main.c: Update.
6523         * mips-linux-nat.c: Update.
6524         * mips-nbsd-nat.c: Update.
6525         * mips64-obsd-nat.c: Update.
6526         * nat/aarch64-linux-hw-point.c: Update.
6527         * nat/aarch64-linux.c: Update.
6528         * nat/linux-btrace.c: Update.
6529         * nat/linux-osdata.c: Update.
6530         * nat/linux-procfs.c: Update.
6531         * nat/x86-linux-dregs.c: Update.
6532         * nto-procfs.c: Update.
6533         * obsd-nat.c: Update.
6534         * ppc-linux-nat.c: Update.
6535         * ppc-nbsd-nat.c: Update.
6536         * ppc-obsd-nat.c: Update.
6537         * proc-service.c: Update.
6538         * procfs.c: Update.
6539         * python/py-inferior.c: Update.
6540         * python/py-infthread.c: Update.
6541         * ravenscar-thread.c: Update.
6542         * record.c: Update.
6543         * remote-sim.c: Update.
6544         * remote.c: Update.
6545         * rs6000-nat.c: Update.
6546         * s390-linux-nat.c: Update.
6547         * sh-nbsd-nat.c: Update.
6548         * sol-thread.c: Update.
6549         * sparc-nat.c: Update.
6550         * sparc64-tdep.c: Update.
6551         * spu-linux-nat.c: Update.
6552         * spu-tdep.c: Update.
6553         * target-debug.h: Update.
6554         * target.c: Update.
6555         * thread.c: Update.
6556         * tid-parse.c: Update.
6557         * tracefile-tfile.c: Update.
6558         * vax-bsd-nat.c: Update.
6559         * windows-nat.c: Update.
6560         * x86-linux-nat.c: Update.
6561         * x86-nat.c: Update.
6562
6563 2018-07-03  Tom Tromey  <tom@tromey.com>
6564
6565         * common/ptid.c (pid_to_ptid): Remove.
6566         * common/ptid.h (pid_to_ptid): Don't declare.
6567         * aix-thread.c: Update.
6568         * arm-linux-nat.c: Update.
6569         * common/ptid.c: Update.
6570         * common/ptid.h: Update.
6571         * corelow.c: Update.
6572         * ctf.c: Update.
6573         * darwin-nat.c: Update.
6574         * fbsd-nat.c: Update.
6575         * fork-child.c: Update.
6576         * gnu-nat.c: Update.
6577         * go32-nat.c: Update.
6578         * inf-ptrace.c: Update.
6579         * infcmd.c: Update.
6580         * inferior.c: Update.
6581         * infrun.c: Update.
6582         * linux-fork.c: Update.
6583         * linux-nat.c: Update.
6584         * nat/aarch64-linux-hw-point.c: Update.
6585         * nat/fork-inferior.c: Update.
6586         * nat/x86-linux-dregs.c: Update.
6587         * nto-procfs.c: Update.
6588         * obsd-nat.c: Update.
6589         * procfs.c: Update.
6590         * progspace.c: Update.
6591         * remote.c: Update.
6592         * rs6000-nat.c: Update.
6593         * s390-linux-nat.c: Update.
6594         * sol-thread.c: Update.
6595         * spu-linux-nat.c: Update.
6596         * target.c: Update.
6597         * top.c: Update.
6598         * tracefile-tfile.c: Update.
6599         * windows-nat.c: Update.
6600
6601 2018-07-03  Tom Tromey  <tom@tromey.com>
6602
6603         * common/ptid.h (ptid_build): Don't declare.
6604         * common/ptid.c (ptid_build): Remove.
6605         * aix-thread.c: Update.
6606         * bsd-kvm.c: Update.
6607         * bsd-uthread.c: Update.
6608         * common/agent.c: Update.
6609         * common/ptid.c: Update.
6610         * common/ptid.h: Update.
6611         * corelow.c: Update.
6612         * darwin-nat.c: Update.
6613         * fbsd-nat.c: Update.
6614         * gnu-nat.c: Update.
6615         * linux-fork.c: Update.
6616         * linux-nat.c: Update.
6617         * linux-thread-db.c: Update.
6618         * nat/linux-osdata.c: Update.
6619         * nat/linux-procfs.c: Update.
6620         * nto-procfs.c: Update.
6621         * obsd-nat.c: Update.
6622         * proc-service.c: Update.
6623         * procfs.c: Update.
6624         * ravenscar-thread.c: Update.
6625         * remote-sim.c: Update.
6626         * remote.c: Update.
6627         * sol-thread.c: Update.
6628         * target.c: Update.
6629         * windows-nat.c: Update.
6630
6631 2018-07-03  Tom Tromey  <tom@tromey.com>
6632
6633         * infrun.c (follow_exec): Use exit_inferior_silent.
6634         * inferior.c (exit_inferior_num_silent): Remove.
6635         * inferior.h (exit_inferior_num_silent): Don't declare.
6636
6637 2018-07-03  Tom Tromey  <tom@tromey.com>
6638
6639         PR cli/23340:
6640         * darwin-nat.c (darwin_attach_pid): Reset inferior and
6641         inferior_ptid on error.
6642
6643 2018-07-02  Maciej W. Rozycki  <macro@mips.com>
6644             Simon Marchi  <simon.marchi@polymtl.ca>
6645
6646         PR tdep/8282
6647         * disasm.h (gdb_disassembler): Add
6648         `m_disassembler_options_holder'. member
6649         * disasm.c (get_all_disassembler_options): New function.
6650         (gdb_disassembler::gdb_disassembler): Use it.
6651         (gdb_buffered_insn_length_init_dis): Likewise.
6652         (gdb_buffered_insn_length): Adjust accordingly.
6653         (set_disassembler_options): Handle options with arguments.
6654         (show_disassembler_options_sfunc): Likewise.  Add a leading new
6655         line if showing options with descriptions.
6656         (disassembler_options_completer): Adapt to using the
6657         `disasm_options_and_args_t' structure.
6658         * mips-tdep.c (mips_disassembler_options): New variable.
6659         (mips_disassembler_options_o32): Likewise.
6660         (mips_disassembler_options_n32): Likewise.
6661         (mips_disassembler_options_n64): Likewise.
6662         (gdb_print_insn_mips): Don't set `disassembler_options'.
6663         (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
6664         functions.
6665         (mips_gdbarch_init): Always set `gdbarch_print_insn' to
6666         `gdb_print_insn_mips'.  Set `gdbarch_disassembler_options',
6667         `gdbarch_disassembler_options_implicit' and
6668         `gdbarch_valid_disassembler_options'.
6669         * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
6670         `disasm_options_and_args_t' structure.
6671         * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
6672         method.
6673         (valid_disassembler_options): Switch from `disasm_options_t' to
6674         the `disasm_options_and_args_t' structure.
6675         * NEWS: Document `set disassembler-options' support for the MIPS
6676         target.
6677         * gdbarch.h: Regenerate.
6678         * gdbarch.c: Regenerate.
6679
6680 2018-07-02  Sebastian Huber  <sebastian.huber@embedded-brains.de>
6681
6682         * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
6683
6684 2018-06-29  Joel Brobecker  <brobecker@adacore.com>
6685
6686         * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
6687         parameter in call to amd64_target_description.
6688         * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
6689         * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
6690         (amd64fbsd_init_abi): Likewise.
6691         * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6692         * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
6693         * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
6694         * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
6695
6696 2018-06-29  Pedro Alves  <palves@redhat.com>
6697
6698         * gdb/amd64-tdep.h (amd64_create_target_description): Add
6699         "segments" parameter.
6700         * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
6701         (_initialize_amd64_tdep): Update call to
6702         amd64_create_target_description.
6703         (amd64_target_description): Add "segments" parameter.  Adjust
6704         the implementation to use it.
6705         * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
6706         call to amd64_create_target_description.
6707         * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
6708         * gdb/arch/amd64.h (amd64_create_target_description): Add
6709         "segments" register.
6710         * gdb/arch/amd64.c (amd64_create_target_description): Add
6711         "segments" parameter.  Call create_feature_i386_64bit_segments
6712         only if SEGMENTS is true.
6713         * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
6714         call to amd64_create_target_description.
6715
6716 2018-06-29  Pedro Alves  <palves@redhat.com>
6717
6718         * thread.c (thread_target_id_str): New, factored out from ...
6719         (print_thread_info_1): ... here.  Use it to compute the max
6720         "Target Id" column width.
6721
6722 2018-06-29  Pedro Alves  <palves@redhat.com>
6723
6724         * remote.c (remote_target::extra_thread_info): Delete
6725         'display_buf' and 'n' locals.  from the cache, regardless of
6726         packet mechanims is in use.  Use cache for qThreadExtra and qP
6727         methods too.
6728
6729 2018-06-29  Pedro Alves  <palves@redhat.com>
6730
6731         * blockframe.c (find_pc_sect_containing_function): New function.
6732         * breakpoint.c (print_breakpoint_location): Don't call
6733         find_pc_sect_function.
6734         * linespec.c (create_sals_line_offset): Record the location's
6735         symbol in the sal.
6736         * linespec.c (convert_address_location_to_sals): Fill in sal's
6737         symbol with find_pc_sect_containing_function.
6738         * symtab.c (find_function_start_sal): Rename to ...
6739         (find_function_start_sal_1): ... this.
6740         (find_function_start_sal): Reimplement as wrapper around
6741         find_function_start_sal_1, and use
6742         find_pc_sect_containing_function to fill in the sal's symbol.
6743         (find_function_start_sal(symbol*, bool)): Adjust.
6744         * symtab.h (find_pc_function, find_pc_sect_function): Adjust
6745         comments.
6746         (find_pc_sect_containing_function): Declare.
6747
6748 2018-06-29  Pedro Alves  <palves@redhat.com>
6749
6750         * inline-frame.c (stopped_by_user_bp_inline_frame): Return
6751         true if the the location has no symbol.
6752
6753 2018-06-28  Tom Tromey  <tom@tromey.com>
6754
6755         * NEWS: Mention --enable-codesign.
6756         * silent-rules.mk (ECHO_SIGN): New variable.
6757         * configure.ac: Add --enable-codesign.
6758         * configure: Rebuild.
6759         * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
6760         (gdb$(EXEEXT)): Optionally invoke codesign.
6761
6762 2018-06-28  Pedro Alves  <palves@redhat.com>
6763
6764         * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
6765         comments.
6766         (switch_to_thread_no_regs): Adjust comment.
6767         * infcmd.c (stop_pc): Delete.
6768         (post_create_inferior, info_program_command): Replace references
6769         to stop_pc with references to thread_info->suspend.stop_pc.
6770         * inferior.h (stop_pc): Delete declaration.
6771         * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
6772         (handle_inferior_event_1, handle_signal_stop)
6773         (process_event_stop_test, keep_going_stepped_thread)
6774         (handle_step_into_function, handle_step_into_function_backward)
6775         (print_stop_location): Replace references to stop_pc with
6776         references to thread_info->suspend.stop_pc.
6777         (struct infcall_suspend_state) <stop_pc>: Delete field.
6778         (save_infcall_suspend_state, restore_infcall_suspend_state):
6779         Remove references to inf_stat->stop_pc.
6780         * linux-fork.c (fork_load_infrun_state): Likewise.
6781         * record-btrace.c (record_btrace_set_replay): Likewise.
6782         * record-full.c (record_full_goto_entry): Likewise.
6783         * remote.c (print_one_stopped_thread): Likewise.
6784         * target.c (target_resume): Extend comment.
6785         * thread.c (set_executing_thread): New.
6786         (set_executing): Use it.
6787         (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
6788         Remove references to stop_pc.
6789
6790 2018-06-28  Pedro Alves  <palves@redhat.com>
6791
6792         * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
6793         Moving fetching stop_pc until after ecs->event_thread is refreshed.
6794
6795 2018-06-28  Tom Tromey  <tom@tromey.com>
6796
6797         * coffread.c (coff_symfile_finish): Update.
6798         * xcoffread.c (xcoff_symfile_finish): Update.
6799         * elfread.c (elf_symfile_finish): Update.
6800         * symfile.h (dwarf2_free_objfile): Don't declare.
6801         * dwarf2read.c (_initialize_dwarf2_read): Use
6802         register_objfile_data_with_cleanup.
6803         (dwarf2_free_objfile): Now static.  Change signature.
6804
6805 2018-06-28  Petr Tesarik  <ptesarik@suse.cz>
6806
6807         * symfile.c (add_symbol_file_command, _initialize_symfile): Add
6808         option "-o" to add-symbol-file-load to add an offset to each
6809         section's load address.
6810         * symfile.c (set_objfile_default_section_offset): New function.
6811
6812 2018-06-28  Petr Tesarik  <ptesarik@suse.cz>
6813
6814         * symfile.c (add_symbol_file_command): Make sure that sections
6815         with the same name are sorted in the same order.
6816
6817 2018-06-28  Petr Tesarik  <ptesarik@suse.cz>
6818
6819         * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
6820         require the second argument.  If omitted, load sections at the
6821         addresses specified in the file.
6822
6823 2018-06-28  Petr Tesarik  <ptesarik@suse.cz>
6824
6825         * symfile.c (symbol_file_command, symbol_file_add_main_1)
6826         (_initialize_symfile): Add option "-o" to symbol-file to add an
6827         offset to each section of the symbol file.
6828
6829 2018-06-28  Petr Tesarik  <ptesarik@suse.cz>
6830
6831         * MAINTAINERS (Write After Approval): Add Petr Tesarik.
6832
6833 2018-06-27  Tom Tromey  <tom@tromey.com>
6834
6835         * stack.c (_initialize_stack): Update "func" help text.
6836
6837 2018-06-27  Tom Tromey  <tom@tromey.com>
6838
6839         * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
6840         std::vector.
6841         (unwind_infopy_str, pyuw_create_unwind_info)
6842         (unwind_infopy_add_saved_register, pyuw_sniffer)
6843         (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
6844         Update.
6845         (struct saved_reg): Add constructor.
6846         <value>: Now a gdbpy_ref<>.
6847
6848 2018-06-27  Tom Tromey  <tom@tromey.com>
6849
6850         * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
6851
6852 2018-06-27  Simon Marchi  <simon.marchi@ericsson.com>
6853
6854         * gdb-gdb.py.in: Format using autopep8.
6855
6856 2018-06-27  Simon Marchi  <simon.marchi@ericsson.com>
6857
6858         * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
6859         (type_lookup_function): Recognize CORE_ADDR values.
6860
6861 2018-06-27  Simon Marchi  <simon.marchi@ericsson.com>
6862
6863         * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
6864         print tag_name.
6865
6866 2018-06-27  Simon Marchi  <simon.marchi@ericsson.com>
6867
6868         * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
6869         <__lt__>: Add.
6870
6871 2018-06-27  Simon Marchi  <simon.marchi@ericsson.com>
6872
6873         * gdb-gdb.py: Move to...
6874         * gdb-gdb.py.in: ... here.
6875         * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
6876         * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
6877         dependencies.
6878         (distclean): Remove gdb-gdb.py when cleaning.
6879         (gdb-gdb.py, gdb-gdb.gdb): New rules.
6880         * configure: Re-generate.
6881
6882 2018-06-27  Pedro Alves  <palves@redhat.com>
6883
6884         * proc-service.c (get_ps_regcache): New.
6885         (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
6886         (ps_lsetfpregs): Use it.
6887
6888 2018-06-27  Omair Javaid  <omair.javaid@linaro.org>
6889
6890         PR gdb/21695
6891         * dwarf2read.c (lnp_state_machine::check_line_address): Update
6892         declaration.
6893         (dwarf_decode_lines_1): Adjust.
6894
6895 2018-06-27  Simon Marchi  <simon.marchi@ericsson.com>
6896
6897         * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
6898         override.
6899         <info_proc>: Likewise.
6900
6901 2018-06-26  Joel Brobecker  <brobecker@adacore.com>
6902
6903         * windows-nat.c (do_windows_fetch_inferior_registers): Rename
6904         to windows_fetch_one_register, and only handle the case of
6905         fetching one register.  Move the code that reloads the context
6906         and iterates over all registers if R is negative to...
6907         (windows_nat_target::fetch_registers): ... here.
6908         (do_windows_store_inferior_registers): Rename to
6909         windows_store_one_register, and only handle the case of storing
6910         one register.  Move the code that handles the case where r is
6911         negative to...
6912         (windows_nat_target::store_registers) ... here.
6913
6914 2018-06-26  Tom Tromey  <tom@tromey.com>
6915
6916         PR rust/22574:
6917         * typeprint.c (whatis_exp): Allow ptype/o for Rust.
6918         * rust-lang.c (rust_print_struct_def): Add podata parameter.
6919         Update.
6920         (rust_internal_print_type): Add podata parameter.
6921         (rust_print_type): Update.
6922
6923 2018-06-26  Tom Tromey  <tom@tromey.com>
6924
6925         * typeprint.h (struct print_offset_data) <update, finish,
6926         maybe_print_hole>: New methods.
6927         <indentation>: New constant.
6928         * typeprint.c (print_offset_data::indentation): Define.
6929         (print_offset_data::maybe_print_hole, print_offset_data::update)
6930         (print_offset_data::finish): Move from c-typeprint.c and rename.
6931         * c-typeprint.c (OFFSET_SPC_LEN): Remove.
6932         (print_spaces_filtered_with_print_options): Update.
6933         (c_print_type_union_field_offset, maybe_print_hole)
6934         (c_print_type_struct_field_offset): Move to typeprint.c and
6935         rename.
6936         (c_type_print_base_struct_union): Update.
6937
6938 2018-06-25  Pedro Alves  <palves@redhat.com>
6939
6940         * gdbthread.h (thread_info_ref, delete_thread)
6941         (delete_thread_silent, first_thread_of_inferior)
6942         (any_thread_of_inferior, switch_to_thread)
6943         (enable_thread_stack_temporaries)
6944         (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
6945         (get_last_thread_stack_temporary)
6946         (value_in_thread_stack_temporaries, can_access_registers_thread):
6947         Spell out "struct thread_info" instead of just "thread_info".
6948         * inferior.h (notice_new_inferior): Likewise.
6949
6950 2018-06-25  Pedro Alves  <palves@redhat.com>
6951
6952         * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
6953         pass thread_info pointer to delete_thread.
6954         (windows_nat_target::detach): Pass inferior pointer to
6955         detach_inferior.
6956         * aix-thread.c (sync_threadlists): Pass thread_info pointer to
6957         delete_thread.
6958         * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
6959         * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
6960         and pass a thread_info pointer to delete_thread.
6961         * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
6962         pass thread_info pointer to delete_thread.
6963         * go32-nat.c (go32_nat_target::mourn_inferior): Remove
6964         delete_thread_silent call.
6965         * procfs.c (procfs_target::detach): Pass inferior pointer to
6966         detach_inferior.
6967         (procfs_target::wait): Pass thread_info pointer to delete_thread.
6968         * remote-sim.c (gdbsim_target::mourn_inferior): Remove
6969         delete_thread_silent call.
6970         * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
6971         pass thread_info pointer to delete_thread.
6972         (windows_nat_target::detach): Pass inferior pointer to
6973         delete_inferior.
6974
6975 2018-06-22  Alan Hayward  <alan.hayward@arm.com>
6976
6977         * regcache.c (readable_regcache::read_part): Fix asserts.
6978         (reg_buffer::raw_collect_part): New function.
6979         (regcache::write_part): Fix asserts.
6980         (reg_buffer::raw_supply_part): New function.
6981         (regcache::transfer_regset_register): New helper function.
6982         (regcache::transfer_regset): Call new functions.
6983         (regcache_supply_regset): Use gdb_byte*.
6984         (regcache::supply_regset): Likewise.
6985         (regcache_collect_regset): Likewise.
6986         (regcache::collect_regset): Likewise.
6987         * regcache.h (reg_buffer::raw_collect_part): New declaration.
6988         (reg_buffer::raw_supply_part): Likewise.
6989         (regcache::transfer_regset_register): Likewise.
6990         (regcache::transfer_regset): Use gdb_byte*.
6991
6992 2018-06-22  Alan Hayward  <alan.hayward@arm.com>
6993
6994         * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
6995
6996 2018-06-21  Pedro Alves  <palves@redhat.com>
6997
6998         * ada-lang.h (ada_get_task_number): Take a thread_info pointer
6999         instead of a ptid_t.  All callers adjusted.
7000         * ada-tasks.c (ada_get_task_number): Likewise.  All callers
7001         adjusted.
7002         (print_ada_task_info, display_current_task_id, task_command_1):
7003         Adjust.
7004         * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
7005         inferior_thread.
7006         (breakpoint_kind): Adjust.
7007         (remove_breakpoints_pid): Rename to ...
7008         (remove_breakpoints_inf): ... this.  Adjust to take an inferior
7009         pointer.  All callers adjusted.
7010         (bpstat_clear_actions): Use inferior_thread.
7011         (get_bpstat_thread): New.
7012         (bpstat_do_actions): Use it.
7013         (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
7014         to take a thread_info pointer.  All callers adjusted.
7015         (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
7016         (breakpoint_re_set_thread): Use inferior_thread.
7017         * breakpoint.h (struct inferior): Forward declare.
7018         (bpstat_stop_status): Update.
7019         (remove_breakpoints_pid): Delete.
7020         (remove_breakpoints_inf): New.
7021         * bsd-uthread.c (bsd_uthread_target::wait)
7022         (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
7023         * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
7024         (maint_btrace_packet_history_cmd)
7025         (maint_btrace_clear_packet_history_cmd): Adjust.
7026         (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
7027         inferior_thread.
7028         * cli/cli-interp.c: Include "inferior.h".
7029         * common/refcounted-object.h (struct
7030         refcounted_object_ref_policy): New.
7031         * compile/compile-object-load.c: Include gdbthread.h.
7032         (store_regs): Use inferior_thread.
7033         * corelow.c (core_target::close): Use current_inferior.
7034         (core_target_open): Adjust to use first_thread_of_inferior and use
7035         the current inferior.
7036         * ctf.c (ctf_target::close): Adjust to use current_inferior.
7037         * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
7038         <thread>: ... this new field.  All references adjusted.
7039         (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
7040         Take a thread_info pointer instead of a ptid_t.
7041         * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
7042         (dummy_frame_discard, register_dummy_frame_dtor): Take a
7043         thread_info pointer instead of a ptid_t.
7044         * elfread.c: Include "inferior.h".
7045         (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
7046         Use inferior_thread.
7047         * eval.c (evaluate_subexp): Likewise.
7048         * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
7049         inferior_thread.
7050         * gdb_proc_service.h (struct thread_info): Forward declare.
7051         (struct ps_prochandle) <ptid>: Delete, replaced by ...
7052         <thread>: ... this new field.  All references adjusted.
7053         * gdbarch.h, gdbarch.c: Regenerate.
7054         * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
7055         'thread' parameter.  All implementations and callers adjusted.
7056         * gdbthread.h (thread_info) <set_running>: New method.
7057         (delete_thread, delete_thread_silent): Take a thread_info pointer
7058         instead of a ptid.
7059         (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
7060         (first_thread_of_process): Delete, replaced by ...
7061         (first_thread_of_inferior): ... this new function.  All callers
7062         adjusted.
7063         (any_live_thread_of_process): Delete, replaced by ...
7064         (any_live_thread_of_inferior): ... this new function.  All callers
7065         adjusted.
7066         (switch_to_thread, switch_to_no_thread): Declare.
7067         (is_executing): Delete.
7068         (enable_thread_stack_temporaries): Update comment.
7069         <enable_thread_stack_temporaries>: Take a thread_info pointer
7070         instead of a ptid_t.  Incref the thread.
7071         <~enable_thread_stack_temporaries>: Decref the thread.
7072         <m_ptid>: Delete
7073         <m_thr>: New.
7074         (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
7075         (get_last_thread_stack_temporary)
7076         (value_in_thread_stack_temporaries, can_access_registers_thread):
7077         Take a thread_info pointer instead of a ptid_t.  All callers
7078         adjusted.
7079         * infcall.c (get_call_return_value): Use inferior_thread.
7080         (run_inferior_call): Work with thread pointers instead of ptid_t.
7081         (call_function_by_hand_dummy): Work with thread pointers instead
7082         of ptid_t.  Use thread_info_ref.
7083         * infcmd.c (proceed_thread_callback): Access thread's state
7084         directly.
7085         (ensure_valid_thread, ensure_not_running): Use inferior_thread,
7086         access thread's state directly.
7087         (continue_command): Use inferior_thread.
7088         (info_program_command): Use find_thread_ptid and access thread
7089         state directly.
7090         (proceed_after_attach_callback): Use thread state directly.
7091         (notice_new_inferior): Take a thread_info pointer instead of a
7092         ptid_t.  All callers adjusted.
7093         (exit_inferior): Take an inferior pointer instead of a pid.  All
7094         callers adjusted.
7095         (exit_inferior_silent): New.
7096         (detach_inferior): Delete.
7097         (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
7098         (gdb_inferior_id_to_pid, in_inferior_list): Delete.
7099         (detach_inferior_command, kill_inferior_command): Use
7100         find_inferior_id instead of valid_gdb_inferior_id and
7101         gdb_inferior_id_to_pid.
7102         (inferior_command): Use inferior and thread pointers.
7103         * inferior.h (struct thread_info): Forward declare.
7104         (notice_new_inferior): Take a thread_info pointer instead of a
7105         ptid_t.  All callers adjusted.
7106         (detach_inferior): Delete declaration.
7107         (exit_inferior, exit_inferior_silent): Take an inferior pointer
7108         instead of a pid.  All callers adjusted.
7109         (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
7110         (valid_gdb_inferior_id): Delete.
7111         * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
7112         (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
7113         (struct displaced_step_inferior_state) <pid>: Delete, replaced by
7114         ...
7115         <inf>: ... this new field.
7116         <step_ptid>: Delete, replaced by ...
7117         <step_thread>: ... this new field.
7118         (get_displaced_stepping_state): Take an inferior pointer instead
7119         of a pid.  All callers adjusted.
7120         (displaced_step_in_progress_any_inferior): Adjust.
7121         (displaced_step_in_progress_thread): Take a thread pointer instead
7122         of a ptid_t.  All callers adjusted.
7123         (displaced_step_in_progress, add_displaced_stepping_state): Take
7124         an inferior pointer instead of a pid.  All callers adjusted.
7125         (get_displaced_step_closure_by_addr): Adjust.
7126         (remove_displaced_stepping_state): Take an inferior pointer
7127         instead of a pid.  All callers adjusted.
7128         (displaced_step_prepare_throw, displaced_step_prepare)
7129         (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
7130         All callers adjusted.
7131         (start_step_over): Adjust.
7132         (infrun_thread_ptid_changed): Remove bit updating ptids in the
7133         displaced step queue.
7134         (do_target_resume): Adjust.
7135         (fetch_inferior_event): Use inferior_thread.
7136         (context_switch, get_inferior_stop_soon): Take an
7137         execution_control_state pointer instead of a ptid_t.  All callers
7138         adjusted.
7139         (switch_to_thread_cleanup): Delete.
7140         (stop_all_threads): Use scoped_restore_current_thread.
7141         * inline-frame.c: Include "gdbthread.h".
7142         (inline_state) <inline_state>: Take a thread pointer instead of a
7143         ptid_t.  All callers adjusted.
7144         <ptid>: Delete, replaced by ...
7145         <thread>: ... this new field.
7146         (find_inline_frame_state): Take a thread pointer instead of a
7147         ptid_t.  All callers adjusted.
7148         (skip_inline_frames, step_into_inline_frame)
7149         (inline_skipped_frames, inline_skipped_symbol): Take a thread
7150         pointer instead of a ptid_t.  All callers adjusted.
7151         * inline-frame.h (skip_inline_frames, step_into_inline_frame)
7152         (inline_skipped_frames, inline_skipped_symbol): Likewise.
7153         * linux-fork.c (delete_checkpoint_command): Adjust to use thread
7154         pointers directly.
7155         * linux-nat.c (get_detach_signal): Likewise.
7156         * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
7157         (thread_db_notice_clone): Adjust.
7158         (thread_db_find_new_threads_silently)
7159         (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
7160         a thread pointer instead of a ptid_t.  All callers adjusted.
7161         * mi/mi-cmd-var.c: Include "inferior.h".
7162         (mi_cmd_var_update_iter): Update to use thread pointers.
7163         * mi/mi-interp.c (mi_new_thread): Update to use the thread's
7164         inferior directly.
7165         (mi_output_running_pid, mi_inferior_count): Delete, bits factored
7166         out to ...
7167         (mi_output_running): ... this new function.
7168         (mi_on_resume_1): Adjust to use it.
7169         (mi_user_selected_context_changed): Adjust to use inferior_thread.
7170         * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
7171         directly.
7172         (interrupt_thread_callback): : Adjust to use thread and inferior
7173         pointers.
7174         * proc-service.c: Include "gdbthread.h".
7175         (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
7176         * progspace-and-thread.c: Include "inferior.h".
7177         * progspace.c: Include "inferior.h".
7178         * python/py-exitedevent.c (create_exited_event_object): Adjust to
7179         hold a reference to an inferior_object.
7180         * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
7181         inferior_thread.
7182         * python/py-inferior.c (struct inferior_object): Give the type a
7183         tag name instead of a typedef.
7184         (python_on_normal_stop): No need to check if the current thread is
7185         listed.
7186         (inferior_to_inferior_object): Change return type to
7187         inferior_object.  All callers adjusted.
7188         (find_thread_object): Delete, bits factored out to ...
7189         (thread_to_thread_object): ... this new function.
7190         * python/py-infthread.c (create_thread_object): Use
7191         inferior_to_inferior_object.
7192         (thpy_is_stopped): Use thread pointer directly.
7193         (gdbpy_selected_thread): Use inferior_thread.
7194         * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
7195         field, replaced with ...
7196         <thread>: ... this new field.  All users adjusted.
7197         (btpy_insn_or_gap_new): Drop const.
7198         (btpy_list_new): Take a thread pointer instead of a ptid_t.  All
7199         callers adjusted.
7200         * python/py-record.c: Include "gdbthread.h".
7201         (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
7202         a ptid_t.  All callers adjusted.
7203         (gdbpy_current_recording): Use inferior_thread.
7204         * python/py-record.h (recpy_record_object) <ptid>: Delete
7205         field, replaced with ...
7206         <thread>: ... this new field.  All users adjusted.
7207         (recpy_element_object) <ptid>: Delete
7208         field, replaced with ...
7209         <thread>: ... this new field.  All users adjusted.
7210         (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
7211         a ptid_t.  All callers adjusted.
7212         * python/py-threadevent.c: Include "gdbthread.h".
7213         (get_event_thread): Use thread_to_thread_object.
7214         * python/python-internal.h (struct inferior_object): Forward
7215         declare.
7216         (find_thread_object, find_inferior_object): Delete declarations.
7217         (thread_to_thread_object, inferior_to_inferior_object): New
7218         declarations.
7219         * record-btrace.c: Include "inferior.h".
7220         (require_btrace_thread): Use inferior_thread.
7221         (record_btrace_frame_sniffer)
7222         (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
7223         (get_thread_current_frame): Use scoped_restore_current_thread and
7224         switch_to_thread.
7225         (get_thread_current_frame): Use thread pointer directly.
7226         (record_btrace_replay_at_breakpoint): Use thread's inferior
7227         pointer directly.
7228         * record-full.c: Include "inferior.h".
7229         * regcache.c: Include "gdbthread.h".
7230         (get_thread_arch_regcache): Use the inferior's address space
7231         directly.
7232         (get_thread_regcache, registers_changed_thread): New.
7233         * regcache.h (get_thread_regcache(thread_info *thread)): New
7234         overload.
7235         (registers_changed_thread): New.
7236         (remote_target) <remote_detach_1>: Swap order of parameters.
7237         (remote_add_thread): <remote_add_thread>: Return the new thread.
7238         (get_remote_thread_info(ptid_t)): New overload.
7239         (remote_target::remote_notice_new_inferior): Use thread pointers
7240         directly.
7241         (remote_target::process_initial_stop_replies): Use
7242         thread_info::set_running.
7243         (remote_target::remote_detach_1, remote_target::detach)
7244         (extended_remote_target::detach): Adjust.
7245         * stack.c (frame_show_address): Use inferior_thread.
7246         * target-debug.h (target_debug_print_thread_info_pp): New.
7247         * target-delegates.c: Regenerate.
7248         * target.c (default_thread_address_space): Delete.
7249         (memory_xfer_partial_1): Use current_inferior.
7250         (target_detach): Use current_inferior.
7251         (target_thread_address_space): Delete.
7252         (generic_mourn_inferior): Use current_inferior.
7253         * target.h (struct target_ops) <thread_address_space>: Delete.
7254         (target_thread_address_space): Delete.
7255         * thread.c (init_thread_list): Use ALL_THREADS_SAFE.  Use thread
7256         pointers directly.
7257         (delete_thread_1, delete_thread, delete_thread_silent): Take a
7258         thread pointer instead of a ptid_t.  Adjust all callers.
7259         (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
7260         (first_thread_of_process): Delete, replaced by ...
7261         (first_thread_of_inferior): ... this new function.  All callers
7262         adjusted.
7263         (any_thread_of_process): Rename to ...
7264         (any_thread_of_inferior): ... this, and take an inferior pointer.
7265         (any_live_thread_of_process): Rename to ...
7266         (any_live_thread_of_inferior): ... this, and take an inferior
7267         pointer.
7268         (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
7269         (value_in_thread_stack_temporaries)
7270         (get_last_thread_stack_temporary): Take a thread pointer instead
7271         of a ptid_t.  Adjust all callers.
7272         (thread_info::set_running): New.
7273         (validate_registers_access): Use inferior_thread.
7274         (can_access_registers_ptid): Rename to ...
7275         (can_access_registers_thread): ... this, and take a thread
7276         pointer.
7277         (print_thread_info_1): Adjust to compare thread pointers instead
7278         of ptids.
7279         (switch_to_no_thread, switch_to_thread): Make extern.
7280         (scoped_restore_current_thread::~scoped_restore_current_thread):
7281         Use m_thread pointer directly.
7282         (scoped_restore_current_thread::scoped_restore_current_thread):
7283         Use inferior_thread.
7284         (thread_command): Use thread pointer directly.
7285         (thread_num_make_value_helper): Use inferior_thread.
7286         * top.c (execute_command): Use inferior_thread.
7287         * tui/tui-interp.c: Include "inferior.h".
7288         * varobj.c (varobj_create): Use inferior_thread.
7289         (value_of_root_1): Use find_thread_global_id instead of
7290         global_thread_id_to_ptid.
7291
7292 2018-06-21  Alan Hayward  <alan.hayward@arm.com>
7293
7294         * regcache.c (readable_regcache::read_part): Avoid memcpy when
7295         possible.
7296         (regcache::write_part): Likewise.
7297         (readable_regcache::cooked_read_part): Update comment.
7298         (readable_regcache::cooked_write_part): Likewise.
7299         * regcache.h: (readable_regcache::read_part): Likewise.
7300         (regcache::write_part): Likewise.
7301
7302 2018-06-21  Richard Bunt  <richard.bunt@arm.com>
7303             Dirk Schubert  <dirk.schubert@arm.com>
7304
7305         * aarch64-linux-nat.c (post_attach): New.
7306         (aarch64_linux_nat_target::post_attach): Override post_attach to
7307         record the number of hardware debug registers.
7308
7309 2018-06-20  Tom Tromey  <tom@tromey.com>
7310
7311         * python/py-param.c (add_setshow_generic): Make parameters const.
7312         (parmpy_init): Update.
7313
7314 2018-06-20  Simon Marchi  <simon.marchi@polymtl.ca>
7315
7316         * regcache.h (regcache_cooked_read_ftype): Rename to...
7317         (register_read_ftype): ...this, change type to function_view.
7318         (class reg_buffer) <save>: Remove src parameter.
7319         (readonly_detached_regcache) <readonly_detached_regcache>: Make
7320         parameter non-const in first overload.  Remove src parameter in
7321         second overload.
7322         * regcache.c (do_cooked_read): Remove.
7323         (readonly_detached_regcache::readonly_detached_regcache): Make
7324         parameter non-const, adjust call to other constructor.
7325         (reg_buffer::save): Remove src parameter.
7326         * frame.c (do_frame_register_read): Remove.
7327         (frame_save_as_regcache): Use lambda function.
7328         * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
7329         parameter to ppu2spu_data *.
7330         (ppu2spu_sniffer): Use lambda function.
7331
7332 2018-06-20  Simon Marchi  <simon.marchi@polymtl.ca>
7333
7334         * record-full.c (record_full_target::insert_breakpoint): Remove
7335         "struct" keyword, add const.
7336
7337 2018-06-19  Simon Marchi  <simon.marchi@ericsson.com>
7338
7339         * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
7340         PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
7341         * configure.ac: Remove AC_PREREQ, add missing quoting.
7342         * gnulib/configure.ac: Modernize usage of
7343         AC_INIT/AM_INIT_AUTOMAKE.  Remove AC_PREREQ.
7344         * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
7345         (AUTOMAKE_VERSION): Bump to 1.15.1.
7346         * configure: Re-generate.
7347         * config.in: Re-generate.
7348         * aclocal.m4: Re-generate.
7349         * gnulib/aclocal.m4: Re-generate.
7350         * gnulib/config.in: Re-generate.
7351         * gnulib/configure: Re-generate.
7352         * gnulib/import/Makefile.in: Re-generate.
7353
7354 2018-06-19  Pedro Alves  <palves@redhat.com>
7355
7356         * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
7357         (lookup_minimal_symbol_by_pc_section): ... here with
7358         gdb_assert_not_reached added.
7359
7360 2018-06-19  Pedro Alves  <palves@redhat.com>
7361
7362         * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
7363         parameter with a block parameter.  Compare location's block symbol
7364         with the frame's block instead of addresses.
7365         (skip_inline_frames): Pass the current block instead of the
7366         frame's address.  Break out as soon as we determine the frame
7367         should not be skipped.
7368
7369 2018-06-18  Tom Tromey  <tom@tromey.com>
7370
7371         * solib-aix.c (solib_aix_get_section_offsets): Return
7372         unique_xmalloc_ptr.
7373         (solib_aix_solib_create_inferior_hook): Update.
7374
7375 2018-06-18  Tom Tromey  <tom@tromey.com>
7376
7377         * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
7378
7379 2018-06-18  Tom Tromey  <tom@tromey.com>
7380
7381         * solib-frv.c (frv_relocate_main_executable): Use
7382         unique_xmalloc_ptr.
7383         * solib-dsbt.c (dsbt_relocate_main_executable): Use
7384         unique_xmalloc_ptr.
7385
7386 2018-06-18  Tom Tromey  <tom@tromey.com>
7387
7388         * objfiles.h (inhibit_section_map_updates): Update.
7389         (resume_section_map_updates, resume_section_map_updates_cleanup):
7390         Remove.
7391         * solib-svr4.c (svr4_handle_solib_event): Update.
7392         * objfiles.c (inhibit_section_map_updates): Return
7393         scoped_restore_tmpl<int>.
7394         (resume_section_map_updates, resume_section_map_updates_cleanup):
7395         Remove.
7396
7397 2018-06-18  Tom Tromey  <tom@tromey.com>
7398
7399         * valprint.h (read_string): Update.
7400         * valprint.c (read_string): Change type of "buffer".
7401         (val_print_string): Update.
7402         * python/py-value.c (valpy_string): Update.
7403         * language.h (struct language_defn) <la_get_string>: Change
7404         type of "buffer".
7405         (default_get_string, c_get_string): Update.
7406         * language.c (default_get_string): Change type of "buffer".
7407         * guile/scm-value.c (gdbscm_value_to_string): Update.
7408         * c-lang.c (c_get_string): Change type of "buffer".
7409
7410 2018-06-18  Tom Tromey  <tom@tromey.com>
7411
7412         * ser-mingw.c (struct pipe_state_destroyer): New.
7413         (pipe_state_up): New typedef.
7414         (cleanup_pipe_state): Remove.
7415         (pipe_windows_open): Use pipe_state_up.  Don't release argv.
7416
7417 2018-06-18  Tom Tromey  <tom@tromey.com>
7418
7419         * rust-lang.h (rust_yyerror): Don't declare.
7420         * rust-lang.c (rust_language_defn): Update.
7421         * rust-exp.y (yyerror): Now static.
7422         * parse.c (parse_exp_in_context_1): Update.
7423         * p-lang.h (p_yyerror): Don't declare.
7424         * p-lang.c (p_language_defn): Update.
7425         * p-exp.y (yyerror): Now static.
7426         * opencl-lang.c (opencl_language_defn): Update.
7427         * objc-lang.c (objc_language_defn): Update.
7428         * m2-lang.h (m2_yyerror): Don't declare.
7429         * m2-lang.c (m2_language_defn): Update.
7430         * m2-exp.y (yyerror): Now static.
7431         * language.h (struct language_defn) <la_error>: Remove.
7432         * language.c (unk_lang_error): Remove.
7433         (unknown_language_defn, auto_language_defn): Remove.
7434         * go-lang.h (go_yyerror): Don't declare.
7435         * go-lang.c (go_language_defn): Update.
7436         * go-exp.y (yyerror): Now static.
7437         * f-lang.h (f_yyerror): Don't declare.
7438         * f-lang.c (f_language_defn): Update.
7439         * f-exp.y (yyerror): Now static.
7440         * d-lang.h (d_yyerror): Don't declare.
7441         * d-lang.c (d_language_defn): Update.
7442         * d-exp.y (yyerror): Now static.
7443         * c-lang.h (c_yyerror): Don't declare.
7444         * c-lang.c (c_language_defn, cplus_language_defn)
7445         (asm_language_defn, minimal_language_defn): Update.
7446         * c-exp.y (yyerror): Now static.
7447         * ada-lang.h (ada_yyerror): Don't declare.
7448         * ada-lang.c (ada_language_defn): Update.
7449         * ada-exp.y (yyerror): Now static.
7450
7451 2018-06-18  Alan Hayward  <alan.hayward@arm.com>
7452
7453         * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
7454         (store_sveregs_to_thread): Likewise.
7455         (aarch64_linux_fetch_inferior_registers): Check for SVE.
7456         (aarch64_linux_store_inferior_registers): Likewise.
7457         * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
7458         function.
7459         (aarch64_sve_regs_copy_to_regcache): Likewise.
7460         (aarch64_sve_regs_copy_from_regcache): Likewise.
7461         * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
7462         declaration.
7463         (aarch64_sve_regs_copy_to_regcache): Likewise.
7464         (aarch64_sve_regs_copy_from_regcache): Likewise.
7465         (sve_context): Structure from Linux headers.
7466         (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
7467         (SVE_SIG_ZREG_SIZE): Likewise.
7468         (SVE_SIG_PREG_SIZE): Likewise.
7469         (SVE_SIG_FFR_SIZE): Likewise.
7470         (SVE_SIG_REGS_OFFSET): Likewise.
7471         (SVE_SIG_ZREGS_OFFSET): Likewise.
7472         (SVE_SIG_ZREG_OFFSET): Likewise.
7473         (SVE_SIG_ZREGS_SIZE): Likewise.
7474         (SVE_SIG_PREGS_OFFSET): Likewise.
7475         (SVE_SIG_PREG_OFFSET): Likewise.
7476         (SVE_SIG_PREGS_SIZE): Likewise.
7477         (SVE_SIG_FFR_OFFSET): Likewise.
7478         (SVE_SIG_REGS_SIZE): Likewise.
7479         (SVE_SIG_CONTEXT_SIZE): Likewise.
7480         (SVE_PT_REGS_MASK): Likewise.
7481         (SVE_PT_REGS_FPSIMD): Likewise.
7482         (SVE_PT_REGS_SVE): Likewise.
7483         (SVE_PT_VL_INHERIT): Likewise.
7484         (SVE_PT_VL_ONEXEC): Likewise.
7485         (SVE_PT_REGS_OFFSET): Likewise.
7486         (SVE_PT_FPSIMD_OFFSET): Likewise.
7487         (SVE_PT_FPSIMD_SIZE): Likewise.
7488         (SVE_PT_SVE_ZREG_SIZE): Likewise.
7489         (SVE_PT_SVE_PREG_SIZE): Likewise.
7490         (SVE_PT_SVE_FFR_SIZE): Likewise.
7491         (SVE_PT_SVE_FPSR_SIZE): Likewise.
7492         (SVE_PT_SVE_FPCR_SIZE): Likewise.
7493         (__SVE_SIG_TO_PT): Likewise.
7494         (SVE_PT_SVE_OFFSET): Likewise.
7495         (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
7496         (SVE_PT_SVE_ZREG_OFFSET): Likewise.
7497         (SVE_PT_SVE_ZREGS_SIZE): Likewise.
7498         (SVE_PT_SVE_PREGS_OFFSET): Likewise.
7499         (SVE_PT_SVE_PREG_OFFSET): Likewise.
7500         (SVE_PT_SVE_PREGS_SIZE): Likewise.
7501         (SVE_PT_SVE_FFR_OFFSET): Likewise.
7502         (SVE_PT_SVE_FPSR_OFFSET): Likewise.
7503         (SVE_PT_SVE_FPCR_OFFSET): Likewise.
7504         (SVE_PT_SVE_SIZE): Likewise.
7505         (SVE_PT_SIZE): Likewise.
7506         (HAS_SVE_STATE): New define.
7507
7508 2018-06-18  Alan Hayward  <alan.hayward@arm.com>
7509
7510         * nat/aarch64-sve-linux-sigcontext.h: New file.
7511         * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
7512         new files.
7513         (SVE_VQ_MIN): Likewise.
7514         (SVE_VQ_MAX): Likewise.
7515         (SVE_VL_MIN): Likewise.
7516         (SVE_VL_MAX): Likewise.
7517         (SVE_NUM_ZREGS): Likewise.
7518         (SVE_NUM_PREGS): Likewise.
7519         (sve_vl_valid): Likewise.
7520         (struct user_sve_header): Likewise.
7521
7522 2018-06-16  Andrew Burgess  <andrew.burgess@embecosm.com>
7523             Richard Bunt <Richard.Bunt@arm.com>
7524
7525         * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
7526         was requested by GDB.
7527
7528 2018-06-15  Tom de Vries  <tdevries@suse.de>
7529
7530         * MAINTAINERS (Write After Approval): Add Tom de Vries.
7531
7532 2018-06-14  Simon Marchi  <simon.marchi@polymtl.ca>
7533
7534         * gnulib/update-gnulib.sh: Print expected versions of
7535         autoconf/aclocal.
7536
7537 2018-06-14  Simon Marchi  <simon.marchi@ericsson.com>
7538
7539         * arch-utils.c (default_type_align): Use type_length_units.
7540         * gdbtypes.c (type_align): Use type_length_units.
7541
7542 2018-06-14  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
7543
7544         * cli/cli-script.c (_initialize_cli_script): Fix online documentation
7545         of 'define' command.
7546
7547 2018-06-14  Tom de Vries  <tdevries@suse.de>
7548
7549         PR cli/22573
7550         * infcmd.c (print_return_value_1): Use get_user_print_options instead of
7551         get_no_prettyformat_print_options.
7552
7553 2018-06-13  Simon Marchi  <simon.marchi@ericsson.com>
7554
7555         * sparc-nat.h: Include target.h.
7556         * sparc64-linux-nat.c (class sparc64_linux_nat_target)
7557         <fetch_registers>: Remove this argument in function call.
7558         <store_registers>: Remove this argument in function call, remove
7559         extra semicolon.
7560         <low_forget_process>: Call sparc64_forget_process instead of
7561         sparc_forget_process.
7562
7563 2018-06-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7564
7565         * procfs.c (_initialize_procfs): Use add_inf_child_target.
7566         (procfs_target::make_corefile_notes): Adjust to new
7567         target_read_alloc return type.
7568
7569 2018-06-12  Andrew Burgess  <andrew.burgess@embecosm.com>
7570             Stephen Roberts  <stephen.roberts@arm.com>
7571
7572         PR gdb/22882
7573         * infrun.c (fetch_inferior_event): If GDB is not proceeding then
7574         run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
7575         Move should_notify_stop local into more inner scope.
7576
7577 2018-06-12  Andrew Burgess  <andrew.burgess@embecosm.com>
7578             Stephen Roberts  <stephen.roberts@arm.com>
7579
7580         PR gdb/22882
7581         * infrun.c (resume_1): Add call to mark_async_event_handler.
7582
7583 2018-06-12  Andrew Burgess  <andrew.burgess@embecosm.com>
7584
7585         * infrun.c (do_target_wait): Change old version of $pc printed.
7586
7587 2018-06-11  Simon Marchi  <simon.marchi@ericsson.com>
7588
7589         * dwarf2read.c (read_index_from_section): Rename to...
7590         (read_gdb_index_from_section): ... this, update all callers.
7591         (dwarf2_read_index): Rename to...
7592         (dwarf2_read_gdb_index): ... this, update all callers.
7593
7594 2018-06-11  John David Anglin  <danglin@gcc.gnu.org>
7595
7596         * hppa-linux-nat.c
7597         (hppa_linux_nat_target::fetch_inferior_registers): Rename to
7598         hppa_linux_nat_target::fetch_registers.
7599
7600 2018-06-11  Alan Hayward  <alan.hayward@arm.com>
7601
7602         * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
7603         * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
7604         (AARCH64_DWARF_SVE_FFR): Likewise.
7605         (AARCH64_DWARF_SVE_P0): Likewise.
7606         (AARCH64_DWARF_SVE_Z0): Likewise.
7607
7608 2018-06-11  Alan Hayward  <alan.hayward@arm.com>
7609
7610         * common/common-regcache.h (raw_compare): New function.
7611         * regcache.c (regcache::raw_compare): Likewise.
7612         * regcache.h (regcache::raw_compare): New declaration.
7613
7614 2018-06-11  Alan Hayward  <alan.hayward@arm.com>
7615
7616         * common/common-regcache.h (reg_buffer_common): New structure.
7617         * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
7618         (reg_buffer::raw_supply): Likewise.
7619         (reg_buffer::raw_supply_integer): Likewise.
7620         (reg_buffer::raw_supply_zeroed): Likewise.
7621         (reg_buffer::raw_collect): Likewise.
7622         (reg_buffer::raw_collect_integer): Likewise.
7623         * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
7624         (reg_buffer::raw_supply): Likewise.
7625         (reg_buffer::raw_supply_integer): Likewise.
7626         (reg_buffer::raw_supply_zeroed): Likewise.
7627         (reg_buffer::raw_collect): Likewise.
7628         (reg_buffer::raw_collect_integer): Likewise.
7629
7630 2018-06-10  Tom Tromey  <tom@tromey.com>
7631
7632         * remote.c (stop_reply_p): Remove typedef.  Don't declare queue.
7633         (class remote_state) <stop_reply_queue>: Now std::vector.
7634         (remote_state::~remote_state)
7635         (remote_target::stop_reply_queue_length): Update.
7636         (struct queue_iter_param, remove_child_of_pending_fork)
7637         (struct check_pending_event_prevents_wildcard_vcont_callback_data)
7638         (check_pending_event_prevents_wildcard_vcont_callback)
7639         (remove_stop_reply_for_inferior)
7640         (remove_stop_reply_of_remote_state)
7641         (remote_notif_remove_once_on_match)
7642         (stop_reply_match_ptid_and_ws)
7643         (remote_kill_child_of_pending_fork): Remove.
7644         (remote_target::remove_new_fork_children)
7645         (remote_target::check_pending_events_prevent_wildcard_vcont)
7646         (remote_target::discard_pending_stop_replies)
7647         (remote_target::discard_pending_stop_replies_in_queue)
7648         (remote_target::remote_notif_remove_queued_reply)
7649         (remote_target::queued_stop_reply)
7650         (remote_target::push_stop_reply, remote_target::peek_stop_reply)
7651         (remote_target::wait, remote_target::kill_new_fork_children)
7652         (remote_target::async): Update.
7653
7654 2018-06-10  Tom Tromey  <tom@tromey.com>
7655
7656         * record-full.c (record_full_arch_list_cleanups): Remove.
7657         (record_full_message): Use try/catch.
7658         (record_full_wait_cleanups): Remove.
7659         (record_full_wait_1): Use try/catch.
7660         (record_full_restore): Likewise.
7661
7662 2018-06-10  Tom Tromey  <tom@tromey.com>
7663
7664         * record-full.c (record_full_breakpoint_p): Remove typedef.  Don't
7665         declare VEC.  Add constructor.
7666         <in_target_beneath>: Now bool.
7667         (record_full_breakpoints): Now a std::vector, static.
7668         (record_full_sync_record_breakpoints)
7669         (record_full_init_record_breakpoints)
7670         (record_full_target::insert_breakpoint)
7671         (record_full_target::remove_breakpoint): Update.  Don't use XNEW.
7672
7673 2018-06-10  Simon Marchi  <simon.marchi@polymtl.ca>
7674
7675         * dwarf2read.c (process_cu_includes): Remove struct keyword.
7676         * serial.c (serial_interface_lookup): Remove struct keyword.
7677
7678 2018-06-10  Tom Tromey  <tom@tromey.com>
7679
7680         * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
7681         method.
7682         * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
7683         a method.
7684         * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
7685         method.
7686         * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
7687         "beneath" as a method.
7688         * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
7689         Use "beneath" as a method.
7690
7691 2018-06-10  Tom Tromey  <tom@tromey.com>
7692
7693         * tracefile.c (struct trace_file_writer_deleter): New.
7694         <operator()>: Rename from trace_file_writer_xfree.
7695         (trace_file_writer_up): New typedef.
7696         (tsave_command, trace_save_tfile, trace_save_ctf): Update.
7697
7698 2018-06-09  Simon Marchi  <simon.marchi@ericsson.com>
7699
7700         * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
7701         <m_registers, m_register_status>: Change type to
7702         std::unique_ptr.
7703         * regcache.c (reg_buffer::reg_buffer): Use new instead of
7704         XCNEWVEC.
7705
7706 2018-06-09  Simon Marchi  <simon.marchi@ericsson.com>
7707
7708         * common/common-regcache.h (enum register_status): Add
7709         underlying type "signed char".
7710         * regcache.h (reg_buffer) <m_register_status>: Change type to
7711         register_status *.
7712         * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
7713         register_status instead of signed char.
7714         (reg_buffer::save): Use REG_UNKNOWN instead of 0.
7715         (reg_buffer::get_register_status): Remove cast.
7716         (readable_regcache::raw_read): Remove cast.
7717         (readable_regcache::cooked_read): Remove cast.
7718
7719 2018-06-09  Tom Tromey  <tom@tromey.com>
7720
7721         * source.c (reverse_search_command, forward_search_command): Use
7722         scoped_fd.
7723
7724 2018-06-09  Tom Tromey  <tom@tromey.com>
7725
7726         * serial.c (serial_ops_p): Remove typedef.  Don't declare VEC.
7727         (serial_ops_list): Now static, std::vector.
7728         (serial_interface_lookup, serial_add_interface): Update.
7729
7730 2018-06-09  Tom Tromey  <tom@tromey.com>
7731
7732         * dwarf2read.c (process_cu_includes): Update.
7733         (process_full_comp_unit): Update.
7734         * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
7735         std::vector.
7736
7737 2018-06-08  Paul Koning  <paul_koning@dell.com>
7738
7739         PR gdb/23252
7740
7741         * python/python.c (do_start_initialization):
7742         Avoid call to internal Python API.
7743         (init__gdb_module): New function.
7744
7745 2018-06-08  Gary Benson <gbenson@redhat.com>
7746
7747         * linux-thread-db.c (valprint.h): New include.
7748         (struct check_thread_db_info): New structure.
7749         (check_thread_db_on_load, tdb_testinfo): New static globals.
7750         (check_thread_db, check_thread_db_callback): New functions.
7751         (try_thread_db_load_1): Run integrity checks if requested.
7752         (maintenance_check_libthread_db): New function.
7753         (_initialize_thread_db): Register "maint check libthread-db"
7754         and "maint set/show check-libthread-db".
7755         * NEWS: Mention the above new commands.
7756
7757 2018-06-08  Tom Tromey  <tom@tromey.com>
7758
7759         * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
7760         now a method.
7761
7762 2018-06-08  Tom Tromey  <tom@tromey.com>
7763
7764         * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
7765
7766 2018-06-08  Tom Tromey  <tom@tromey.com>
7767
7768         * common/btrace-common.h (struct btrace_data): Add constructor,
7769         destructor, move assignment operator.
7770         <empty, clear, fini>: New methods.
7771         <format>: Initialize.
7772         (btrace_data_init, btrace_data_fini, btrace_data_clear)
7773         (btrace_data_empty): Don't declare.
7774         * common/btrace-common.c (btrace_data_init): Remove.
7775         (btrace_data::fini): Rename from btrace_data_fini.
7776         (btrace_data::empty): Rename from btrace_data_empty.
7777         (btrace_data::clear): Rename from btrace_data_clear.  Return
7778         bool.
7779         * btrace.h (make_cleanup_btrace_data): Don't declare.
7780         * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
7781         (parse_xml_btrace): Update.
7782         (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
7783         (maint_btrace_clear_packet_history_cmd): Update.
7784
7785 2018-06-07  Pedro Alves  <palves@redhat.com>
7786
7787         * target.h (target_ops) <beneath>: Now a method.  All references
7788         updated.
7789         (class target_stack): New.
7790         * target.c (g_target_stack): New.
7791         (g_current_top_target): Delete.
7792         (current_top_target): Get the top target out of g_target_stack.
7793         (target_stack::push, target_stack::unpush): New.
7794         (push_target, unpush_target): Reimplement.
7795         (target_is_pushed): Reimplement in terms of g_target_stack.
7796         (target_ops::beneath, target_stack::find_beneath): New.
7797
7798 2018-06-07  Pedro Alves  <palves@redhat.com>
7799
7800         * target.h (find_target_beneath): Delete declaration.
7801         * target.c (find_target_beneath): Delete definition.
7802         * aix-thread.c: All callers of find_target_beneath adjusted to
7803         call target_ops::beneath instead.
7804         * bsd-uthread.c: Likewise.
7805         * linux-thread-db.c: Likewise.
7806         * ravenscar-thread.c: Likewise.
7807         * sol-thread.c: Likewise.
7808         * spu-multiarch.c: Likewise.
7809
7810 2018-06-07  Pedro Alves  <palves@redhat.com>
7811
7812         * target.h (target_ops) <beneath>: Now a method.  All references
7813         updated.
7814         (target_ops) <m_beneath>: New.
7815         * target.c (target_ops::beneath): New.
7816         * corelow.c: Adjust all references to target_ops::beneath.
7817         * linux-thread-db.c: Likewise.
7818         * make-target-delegates: Likewise.
7819         * record-btrace.c: Likewise.
7820         * record-full.c: Likewise.
7821         * remote.c: Likewise.
7822         * target.c: Likewise.
7823         * target-delegates.c: Regenerate.
7824
7825 2018-06-07  Pedro Alves  <palves@redhat.com>
7826
7827         * target.h (target_stack): Delete.
7828         (current_top_target): Declare function.
7829         * target.c (target_stack): Delete.
7830         (g_current_top_target): New.
7831         (current_top_target): New function.
7832         * auxv.c: Use current_top_target instead of target_stack
7833         throughout.
7834         * avr-tdep.c: Likewise.
7835         * breakpoint.c: Likewise.
7836         * corefile.c: Likewise.
7837         * elfread.c: Likewise.
7838         * eval.c: Likewise.
7839         * exceptions.c: Likewise.
7840         * frame.c: Likewise.
7841         * gdbarch-selftests.c: Likewise.
7842         * gnu-v3-abi.c: Likewise.
7843         * ia64-tdep.c: Likewise.
7844         * ia64-vms-tdep.c: Likewise.
7845         * infcall.c: Likewise.
7846         * infcmd.c: Likewise.
7847         * infrun.c: Likewise.
7848         * linespec.c: Likewise.
7849         * linux-tdep.c: Likewise.
7850         * minsyms.c: Likewise.
7851         * ppc-linux-nat.c: Likewise.
7852         * ppc-linux-tdep.c: Likewise.
7853         * procfs.c: Likewise.
7854         * regcache.c: Likewise.
7855         * remote.c: Likewise.
7856         * rs6000-tdep.c: Likewise.
7857         * s390-linux-nat.c: Likewise.
7858         * s390-tdep.c: Likewise.
7859         * solib-aix.c: Likewise.
7860         * solib-darwin.c: Likewise.
7861         * solib-dsbt.c: Likewise.
7862         * solib-spu.c: Likewise.
7863         * solib-svr4.c: Likewise.
7864         * solib-target.c: Likewise.
7865         * sparc-tdep.c: Likewise.
7866         * sparc64-tdep.c: Likewise.
7867         * spu-tdep.c: Likewise.
7868         * symfile.c: Likewise.
7869         * symtab.c: Likewise.
7870         * target-descriptions.c: Likewise.
7871         * target-memory.c: Likewise.
7872         * target.c: Likewise.
7873         * target.h: Likewise.
7874         * tracefile-tfile.c: Likewise.
7875         * tracepoint.c: Likewise.
7876         * valops.c: Likewise.
7877         * valprint.c: Likewise.
7878         * value.c: Likewise.
7879         * windows-tdep.c: Likewise.
7880         * mi/mi-main.c: Likewise.
7881
7882 2018-06-07  Tom Tromey  <tom@tromey.com>
7883
7884         * valprint.h (build_address_symbolic): Declare.
7885         * printcmd.c (print_address_symbolic): Update.
7886         (build_address_symbolic): Change "name" and "filename" to
7887         std::string.
7888         * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
7889         Update.
7890         * defs.h (build_address_symbolic): Remove declaration.
7891
7892 2018-06-07  Alan Hayward  <alan.hayward@arm.com>
7893
7894         * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
7895         (aarch64_vnv_type): Add function.
7896         (aarch64_pseudo_register_name): Add V regs for SVE.
7897         (aarch64_pseudo_register_type): Likewise.
7898         (aarch64_pseudo_register_reggroup_p): Likewise.
7899         (aarch64_pseudo_read_value_2): Use V0 offset for SVE
7900         (aarch64_pseudo_read_value): Add V regs for SVE.
7901         (aarch64_pseudo_write_2): Use V0 offset for SVE
7902         (aarch64_pseudo_write): Add V regs for SVE.
7903         * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
7904
7905 2018-06-06  Sergio Durigan Junior  <sergiodj@redhat.com>
7906
7907         * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
7908         (sve_vl_from_vq): Likewise.
7909
7910 2018-06-05  Tom Tromey  <tom@tromey.com>
7911
7912         * cli/cli-cmds.c (show_version): Update.
7913         * top.c (print_gdb_version): Add "interactive" parameter.
7914         Update.
7915         * main.c (captured_main_1): Update.
7916         * top.h (print_gdb_version): Add "interactive" parameter and a
7917         comment.
7918
7919 2018-06-05  David Malcolm  <dmalcolm@redhat.com>
7920
7921         * common/enum-flags.h: Add trailing semicolon to example in
7922         comment.
7923
7924 2018-06-05  Tom Tromey  <tom@tromey.com>
7925
7926         PR cli/12326:
7927         * NEWS: Add entry about pager.
7928         * utils.c (pagination_disabled_for_command): New global.
7929         (prompt_for_continue): Allow "c" response to prompt.
7930         (reinitialize_more_filter): Clear
7931         pagination_disabled_for_command.
7932         (fputs_maybe_filtered): Check pagination_disabled_for_command.
7933
7934 2018-06-04  Tom Tromey  <tom@tromey.com>
7935
7936         * ada-lang.h (ada_lookup_symbol_list): Update.
7937         * ada-lang.c (resolve_subexp): Update.
7938         (symbols_are_identical_enums): Change type of syms.  Remove nsyms
7939         parameter.
7940         (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
7941         (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
7942         results parameter to std::vector.
7943         (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
7944         Update.
7945         * ada-exp.y (block_lookup): Update.
7946         (select_possible_type_sym): Change type of syms.  Remove nsyms
7947         parameter.
7948         (write_var_or_type, write_name_assoc): Update.
7949
7950 2018-06-04  Joel Brobecker  <brobecker@adacore.com>
7951
7952         * windows-nat.c (windows_nat_target::xfer_partial): Return
7953         TARGET_XFER_E_IO if we need to delegate to the target beneath
7954         but BENEATH is NULL.
7955
7956 2018-06-04  Simon Marchi  <simon.marchi@ericsson.com>
7957
7958         * Makefile.in (config.status): Add configure.nat as a
7959         dependency.
7960
7961 2018-06-04  Tom Tromey  <tom@tromey.com>
7962
7963         * cp-name-parser.y (cpname_state): Add method declarations.
7964         (HANDLE_QUAL): Update.
7965         (cpname_state::d_grab, cpname_state::fill_comp)
7966         (cpname_state::make_operator, cpname_state::make_dtor)
7967         (cpname_state::make_builtin_type, cpname_state::make_name)
7968         (cpname_state::d_qualify, cpname_state::d_int_type)
7969         (cpname_state::d_unary, cpname_state::d_binary): Now methods.
7970         (%union): Move earlier.
7971
7972 2018-06-04  Alan Hayward  <alan.hayward@arm.com>
7973
7974         * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
7975
7976 2018-06-04  Alan Hayward  <alan.hayward@arm.com>
7977
7978         * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
7979         (aarch64_pseudo_write_1): Likewise.
7980         (aarch64_pseudo_read_value): Use helper.
7981         (aarch64_pseudo_write): Likewise.
7982
7983 2018-06-04  Pedro Alves  <palves@redhat.com>
7984
7985         * darwin-nat.c (darwin_ops): Delete.
7986         (darwin_attach_pid): Use get_native_target.
7987
7988 2018-06-04  Alan Hayward  <alan.hayward@arm.com>
7989
7990         * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
7991         * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
7992
7993 2018-06-04  Alan Hayward  <alan.hayward@arm.com>
7994
7995         * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
7996         * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
7997         (aarch64_gdbarch_init): Check for SVE.
7998         * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
7999
8000 2018-06-04  Alan Hayward  <alan.hayward@arm.com>
8001
8002         * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
8003         * aarch64-tdep.h (aarch64_read_description): Likewise.
8004         * arch/aarch64.c (aarch64_create_target_description): Likewise.
8005         * arch/aarch64.h (aarch64_create_target_description): Likewise.
8006         * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
8007         * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
8008         * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
8009
8010 2018-06-02  Simon Marchi  <simon.marchi@ericsson.com>
8011
8012         * value.c (value_fetch_lazy_bitfield): New.
8013         (value_fetch_lazy_memory): New.
8014         (value_fetch_lazy_register): New.
8015         (value_fetch_lazy): Factor out to smaller functions.
8016
8017 2018-06-01  Tom Tromey  <tom@tromey.com>
8018
8019         * cp-name-parser.y (backslashable, represented): Now const.
8020
8021 2018-06-01  Tom Tromey  <tom@tromey.com>
8022
8023         * cp-name-parser.y: Include parser-defs.h.
8024         (parser_fprintf): Remove declaration.
8025
8026 2018-06-01  Tom Tromey  <tom@tromey.com>
8027
8028         * cp-name-parser.y: Use %pure-parser, %lex-param, and
8029         %parse-param.
8030         (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
8031         (global_result): Remove globals.
8032         (struct cpname_state): New.
8033         (yyparse): Don't declare.
8034         (yylex, yyerror): Move declarations after %union.
8035         (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
8036         (make_name): Add state parameter.
8037         Update all callers.
8038         (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
8039         parameter.
8040         (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
8041         Update.
8042         (yylex): Add lvalp, state parameters.
8043         (yyerror): Add state parameter.
8044         (cp_demangled_name_to_comp): Update.
8045
8046 2018-06-01  Tom Tromey  <tom@tromey.com>
8047
8048         * cp-name-parser.y (parser_fprintf): Declare.
8049         (GDB_YY_REMAP_PREFIX): Define.
8050         Include yy-remap.h.  Don't redefine yy* identifiers.
8051
8052 2018-06-01  Tom Tromey  <tom@tromey.com>
8053
8054         * python/py-type.c (typy_legacy_template_argument): Update.
8055         * cp-support.h (cp_demangled_name_to_comp): Update.
8056         * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
8057         parameter to be a "std::string *".
8058         (main): Update.
8059
8060 2018-06-01  H.J. Lu  <hongjiu.lu@intel.com>
8061
8062         * ada-lex.l: Include "diagnostics.h" instead of
8063         "common/diagnostics.h".
8064         * unittests/environ-selftests.c: Likewise.
8065         * common/diagnostics.h: Moved to ../include.
8066
8067 2018-06-01  Joel Brobecker  <brobecker@adacore.com>
8068
8069         * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
8070         to language_mode_manual while calling breakpoint_re_set_one.
8071
8072 2018-06-01  Tom Tromey  <tom@tromey.com>
8073
8074         * valops.c (value_cast_structs, destructor_name_p): Update.
8075         * symtab.c (gdb_mangle_name): Update.
8076         * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
8077         Update.
8078         * p-valprint.c (pascal_object_is_vtbl_ptr_type)
8079         (pascal_object_print_value_fields, pascal_object_print_value):
8080         Update.
8081         * p-typeprint.c (pascal_type_print_derivation_info): Update.
8082         * linespec.c (find_methods): Update.
8083         * gdbtypes.h (type_name_no_tag): Remove.
8084         (type_name_or_error): Rename from type_name_no_tag_or_error.
8085         * gdbtypes.c (type_name_no_tag): Remove.
8086         (type_name_or_error): Rename from type_name_no_tag_or_error.
8087         (lookup_struct_elt_type, check_typedef): Update.
8088         * expprint.c (print_subexp_standard): Update.
8089         * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
8090         * d-namespace.c (d_lookup_nested_symbol): Update.
8091         * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
8092         (cp_print_class_member): Update.
8093         * cp-namespace.c (cp_lookup_nested_symbol): Update.
8094         * completer.c (add_struct_fields): Update.
8095         * c-typeprint.c (cp_type_print_derivation_info)
8096         (c_type_print_varspec_prefix, c_type_print_base_struct_union):
8097         Update.
8098         * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
8099         (ada_prefer_type, ada_is_exception_sym): Update.
8100
8101 2018-06-01  Tom Tromey  <tom@tromey.com>
8102
8103         * valops.c (enum_constant_from_type, value_namespace_elt)
8104         (value_maybe_namespace_elt): Update.
8105         * valarith.c (find_size_for_pointer_math): Update.
8106         * target-descriptions.c (make_gdb_type): Update.
8107         * symmisc.c (print_symbol): Update.
8108         * stabsread.c (define_symbol, read_type)
8109         (complain_about_struct_wipeout, add_undefined_type)
8110         (cleanup_undefined_types_1): Update.
8111         * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
8112         (rust_range_type_p, val_print_struct, rust_print_struct_def)
8113         (rust_internal_print_type, rust_composite_type)
8114         (rust_evaluate_funcall, rust_evaluate_subexp)
8115         (rust_inclusive_range_type_p): Update.
8116         * python/py-type.c (typy_get_tag): Update.
8117         * p-typeprint.c (pascal_type_print_base): Update.
8118         * mdebugread.c (parse_symbol, parse_type): Update.
8119         * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
8120         Update.
8121         * guile/scm-type.c (gdbscm_type_tag): Update.
8122         * go-lang.c (sixg_string_p): Update.
8123         * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
8124         Update.
8125         * gdbtypes.h (struct main_type) <tag_name>: Remove.
8126         (TYPE_TAG_NAME): Remove.
8127         * gdbtypes.c (type_name_no_tag): Simplify.
8128         (check_typedef, check_types_equal, recursive_dump_type)
8129         (copy_type_recursive, arch_composite_type): Update.
8130         * f-typeprint.c (f_type_print_base): Update.  Print "Type" prefix
8131         in summary mode when needed.
8132         * eval.c (evaluate_funcall): Update.
8133         * dwarf2read.c (fixup_go_packaging, read_structure_type)
8134         (process_structure_scope, read_enumeration_type)
8135         (read_namespace_type, read_module_type, determine_prefix): Update.
8136         * cp-support.c (inspect_type): Update.
8137         * coffread.c (process_coff_symbol, decode_base_type): Update.
8138         * c-varobj.c (c_is_path_expr_parent): Update.
8139         * c-typeprint.c (c_type_print_base_struct_union): Update.
8140         (c_type_print_base_1): Update.  Print struct/class/union/enum in
8141         summary when using C language.
8142         * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
8143         (gen_maybe_namespace_elt): Update.
8144         * ada-lang.c (ada_type_name): Simplify.
8145         (empty_record, ada_template_to_fixed_record_type_1)
8146         (template_to_static_fixed_type)
8147         (to_record_with_fixed_variant_part, ada_check_typedef): Update.
8148
8149 2018-06-01  Tom Tromey  <tom@tromey.com>
8150
8151         * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
8152         c_print_type.
8153         * c-typeprint.c (c_print_type_1): Add "language" parameter.
8154         (c_print_type): Update.
8155         (c_print_type): New overload.
8156         (c_type_print_varspec_prefix, c_type_print_args)
8157         (c_type_print_varspec_suffix, c_print_type_no_offsets)
8158         (c_type_print_base_struct_union, c_type_print_base_1)
8159         (cp_type_print_method_args): Add "language" parameter.
8160         (c_type_print_base): Update.
8161         * c-lang.h (c_print_type): Add new overload.
8162
8163 2018-06-01  Tom Tromey  <tom@tromey.com>
8164
8165         * typeprint.h (c_type_print_varspec_suffix): Don't declare.
8166         * c-typeprint.c (c_type_print_varspec_suffix): Now static.
8167
8168 2018-06-01  Alan Hayward  <alan.hayward@arm.com>
8169
8170         * aarch64-tdep.c (aarch64_sve_register_names): New const
8171         var.
8172         * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
8173         (AARCH64_SVE_Z_REGS_NUM): New define.
8174         (AARCH64_SVE_P_REGS_NUM): Likewise.
8175         (AARCH64_SVE_NUM_REGS): Likewise.
8176
8177 2018-05-31  Uros Bizjak  <ubizjak@gmail.com>
8178
8179         * nat/linux-ptrace.h [__alpha__]
8180         (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
8181         definitions.
8182
8183 2018-05-31  Maciej W. Rozycki  <macro@mips.com>
8184
8185         * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
8186         the endianness selected.
8187         * NEWS: Document `set endian auto' mode operation update.
8188
8189 2018-05-31  Alan Hayward  <alan.hayward@arm.com>
8190
8191         * Makefile.in: Add new header.
8192         * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
8193         (sve_vl_from_vg): Likewise.
8194         (sve_vq_from_vl): Likewise.
8195         (sve_vl_from_vq): Likewise.
8196         (sve_vq_from_vg): Likewise.
8197         (sve_vg_from_vq): Likewise.
8198         * configure.nat: Add new c file.
8199         * nat/aarch64-sve-linux-ptrace.c: New file.
8200         * nat/aarch64-sve-linux-ptrace.h: New file.
8201
8202 2018-05-31  Alan Hayward  <alan.hayward@arm.com>
8203
8204         * aarch64-linux-nat.c (aarch64_linux_read_description):
8205         Add parmeter zero.
8206         * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
8207         Likewise.
8208         * aarch64-tdep.c (tdesc_aarch64_list): Add.
8209         (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
8210         (aarch64_gdbarch_init): Add parmeter zero.
8211         * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
8212         * arch/aarch64.c (aarch64_create_target_description): Check VQ.
8213         * arch/aarch64.h (aarch64_create_target_description): Add VQ.
8214         parmeter.
8215         * doc/gdb.texinfo: Describe SVE feature
8216         * features/aarch64-sve.c: New file.
8217
8218 2018-05-31  Omair Javaid  <omair.javaid@linaro.org>
8219
8220         PR gdb/23210
8221         * gdbarch.sh (significant_addr_bit): Default to zero when
8222         not set by target architecture.
8223         * gdbarch.c: Re-generated.
8224         * utils.c (address_significant): Update.
8225
8226 2018-05-30  Joel Brobecker  <brobecker@adacore.com>
8227
8228         * stack.c (func_command): Remove trailing newline in call to error.
8229
8230 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
8231
8232         * regcache.h (regcache_raw_collect): Remove, update callers to
8233         use regcache::raw_collect.
8234         * regcache.c (regcache_raw_collect): Remove.
8235
8236 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
8237
8238         * regcache.h (regcache_raw_supply): Remove, update callers to
8239         use detached_regcache::raw_supply.
8240         * regcache.c (regcache_raw_supply): Remove.
8241
8242 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
8243
8244         * regcache.h (regcache_cooked_write_part): Remove, update
8245         callers to use regcache::cooked_write_part.
8246         * regcache.c (regcache_cooked_write_part): Remove.
8247
8248 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
8249
8250         * regcache.h (regcache_cooked_read_part): Remove, update callers
8251         to use readable_regcache::cooked_read_part.
8252         * regcache.c (regcache_cooked_read_part): Remove.
8253
8254 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
8255
8256         * regcache.h (regcache_cooked_read_value): Remove, update
8257         callers to use readable_regcache::cooked_read_value.
8258         * regcache.c (regcache_cooked_read_value): Remove.
8259
8260 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
8261
8262         * regcache.h (regcache_cooked_write): Remove, update callers to
8263         use regcache::cooked_write.
8264         * regcache.c (regcache_cooked_write): Remove.
8265
8266 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
8267
8268         * regcache.h (regcache_invalidate): Remove, update callers to
8269         use detached_regcache::invalidate instead.
8270         * regcache.c (regcache_invalidate): Remove.
8271
8272 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
8273
8274         * regcache.h (regcache_raw_write_part): Remove, update callers
8275         to use regcache::raw_write_part instead.
8276         * regcache.c (regcache_raw_write_part): Remove.
8277
8278 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
8279
8280         * regcache.h (regcache_raw_read_part): Remove, update callers to
8281         use readable_regcache::raw_read_part instead.
8282         * regcache.c (regcache_raw_read_part): Remove.
8283
8284 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
8285
8286         * regcache.h (regcache_cooked_read): Remove, update callers to
8287         use readable_regcache::cooked_read instead.
8288         * regcache.c (regcache_cooked_read): Remove.
8289
8290 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
8291
8292         * regcache.h (regcache_raw_write): Remove, update callers to use
8293         regcache::raw_write instead.
8294         * regcache.c (regcache_raw_write): Remove.
8295
8296 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
8297
8298         * regcache.h (regcache_raw_read): Remove, update callers to use
8299         readable_regcache::raw_read instead.
8300         * regcache.c (regcache_raw_read): Remove.
8301
8302 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
8303
8304         * regcache.h (regcache_raw_update): Remove, update callers to
8305         use readable_regcache::raw_update instead.
8306         * regcache.c (regcache_raw_update): Remove.
8307
8308 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
8309
8310         * regcache.h (regcache_register_status): Remove, update callers
8311         to use reg_buffer::get_register_status directly instead.
8312         * regcache.c (regcache_register_status): Remove.
8313
8314 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
8315
8316         * regcache.h (regcache_get_ptid): Remove, update all callers to
8317         call regcache::ptid instead.
8318         * regcache.c (regcache_get_ptid): Remove.
8319
8320 2018-05-30  Simon Marchi  <simon.marchi@ericsson.com>
8321
8322         * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
8323
8324 2018-05-30  Pedro Alves  <palves@redhat.com>
8325
8326         * common/common-exceptions.h (exception_rethrow): Use
8327         ATTRIBUTE_NORETURN.
8328
8329 2018-05-29  Simon Marchi  <simon.marchi@polymtl.ca>
8330
8331         * breakpoint.c (print_solib_event, check_status_catch_solib):
8332         Remove struct keyword in range-based for loops.
8333         * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
8334         * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
8335         Likewise.
8336         * linespec.c (find_superclass_methods, search_minsyms_for_name):
8337         Likewise.
8338         * symfile.c (addr_info_make_relative): Likewise.
8339         * thread.c (value_in_thread_stack_temporaries): Likewise.
8340
8341 2018-06-12  Weimin Pan  <weimin.pan@oracle.com>
8342
8343         PR gdb/16841
8344         * valops.c (value_struct_elt_for_reference): Call check_typedef on
8345         aggregate type to get its real type before accessing it.
8346
8347 2018-05-29  Weimin Pan  <weimin.pan@oracle.com>
8348
8349         * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
8350         * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
8351         * coff-pe-read.c (add_pe_forwarded_sym): Replace
8352         lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
8353         * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
8354         * jit.c (jit_breakpoint_re_set_internal): Likewise.
8355         * printcmd.c (info_address_command): Likewise.
8356
8357 2018-05-29  Tom Tromey  <tom@tromey.com>
8358
8359         * windows-nat.c (handle_exception): Update fall-through comment.
8360
8361 2018-05-29  Tom Tromey  <tom@tromey.com>
8362
8363         * progspace.h (so_list_ptr): Remove typedef.  Don't declare VEC.
8364         (struct program_space) <added_solibs>: Now a std::vector.
8365         * breakpoint.c (print_solib_event): Update.
8366         (check_status_catch_solib): Update.
8367         * progspace.c (clear_program_space_solib_cache): Update.
8368         * solib.c (update_solib_list): Update.
8369
8370 2018-05-29  Tom Tromey  <tom@tromey.com>
8371
8372         * python/py-type.c (typy_richcompare): Update.
8373         * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
8374         * gdbtypes.h (types_deeply_equal): Return bool.
8375         (types_equal): Likewise.
8376         * gdbtypes.c (type_equality_entry_d): Remove typedef.  Don't
8377         declare VEC.
8378         (check_types_equal): Change worklist to std::vector.  Return
8379         bool.
8380         (struct type_equality_entry): Add constructor.
8381         (compare_maybe_null_strings): Return bool.
8382         (check_types_worklist): Return bool.  Change worklist to
8383         std::vector.
8384         (types_deeply_equal): Use std::vector.
8385         (types_equal): Return bool.
8386         (compare_maybe_null_strings): Simplify.
8387
8388 2018-05-29  Tom Tromey  <tom@tromey.com>
8389
8390         * record-btrace.c (tp_t): Remove typedef.  Don't declare VEC.
8391
8392 2018-05-29  Tom Tromey  <tom@tromey.com>
8393
8394         * objc-lang.h: Don't include cp-support.h.
8395         * common/gdb_vecs.h (const_char_ptr): Remove typedef.  Don't
8396         declare VEC.
8397
8398 2018-05-27  Tom Tromey  <tom@tromey.com>
8399
8400         * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
8401
8402 2018-05-25  Tom Tromey  <tom@tromey.com>
8403
8404         * value.c (value::location): Initialize.
8405
8406 2018-05-25  Tom Tromey  <tom@tromey.com>
8407
8408         * dbxread.c (init_bincl_list): Remove.
8409         (bincl_list): Now a std::vector.
8410         (bincls_allocated, next_bincl): Remove.
8411         (free_bincl_list, do_free_bincl_list_cleanup)
8412         (make_cleanup_free_bincl_list): Remove.
8413         (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
8414         unique_xmalloc_ptr.
8415         (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
8416         (struct header_file_location): Add constructor.
8417         (add_bincl_to_list): Remove.
8418
8419 2018-05-25  Tom Tromey  <tom@tromey.com>
8420
8421         * tui/tui.c (tui_enable): Update.
8422         * mi/mi-interp.c (mi_interp::init): Update.
8423         * interps.h (class interp) <name>: New method.
8424         <m_name>: Rename from name.
8425         (~scoped_restore_interp): Update.
8426         * interps.c (interp::interp): Update.
8427         (interp_add, interp_set, interp_lookup_existing)
8428         (current_interp_named_p): Update.
8429
8430 2018-05-25  Tom Tromey  <tom@tromey.com>
8431
8432         * interps.c (interp_name): Remove.
8433         * mi/mi-interp.c (mi_interp::init): Update.
8434         * interps.h (interp_name): Remove.
8435         (~scoped_restore_interp): Update.
8436         * tui/tui.c (tui_enable): Update.
8437
8438 2018-05-25  Tom Tromey  <tom@tromey.com>
8439
8440         * utils.c (fputs_maybe_filtered): Update.
8441         * linespec.c (decode_line_full): Update.
8442         * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
8443         (mi_print_breakpoint_for_event, mi_solib_loaded)
8444         (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
8445         (mi_user_selected_context_changed): Update.
8446         * mi/mi-main.c (mi_execute_command): Update.
8447         * cli/cli-script.c (execute_control_command): Update.
8448         * python/python.c (execute_gdb_command): Update.
8449         * solib.c (info_sharedlibrary_command): Update.
8450         * interps.c (interp_ui_out): Remove.
8451         * interps.h (interp_ui_out): Remove.
8452
8453 2018-05-25  Tom Tromey  <tom@tromey.com>
8454
8455         * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
8456         * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
8457         * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
8458
8459 2018-05-25  Tom Tromey  <tom@tromey.com>
8460
8461         * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
8462         * interps.c (interp_exec): Use scoped_restore.
8463
8464 2018-05-25  Tom Tromey  <tom@tromey.com>
8465
8466         * remote.c (remote_target::remote_file_get): Use
8467         gdb::byte_vector.
8468         (remote_target::remote_file_put): Likewise.
8469
8470 2018-05-25  Tom Tromey  <tom@tromey.com>
8471
8472         * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
8473         a std::string.
8474         (get_pe_section_index, add_pe_exported_sym): Update.
8475         (read_pe_exported_syms): Use gdb::def_vector.
8476
8477 2018-05-25  Tom Tromey  <tom@tromey.com>
8478
8479         * frame.c (remove_prev_frame): Remove.
8480         (get_prev_frame_if_no_cycle): Use TRY/CATCH.
8481
8482 2018-05-25  Maciej W. Rozycki  <macro@mips.com>
8483
8484         * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
8485         Remove prototypes.
8486         * mips-linux-nat.c (supply_fpregset): Always call
8487         `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
8488         (fill_fpregset): Always call `mips64_fill_fpregset' rather than
8489         `mips_fill_fpregset'.
8490         * mips-linux-tdep.c (mips_supply_fpregset)
8491         (mips_supply_fpregset_wrapper, mips_fill_fpregset)
8492         (mips_fill_fpregset_wrapper): Remove functions.
8493         (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
8494         (mips_linux_fpregset): Remove variable.
8495         (mips_linux_iterate_over_regset_sections): Use
8496         `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
8497         (mips_linux_o32_sigframe_init): Remove comment.
8498
8499 2018-05-25  Pedro Alves  <palves@redhat.com>
8500
8501         * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
8502         (struct readahead_cache, struct packet_reg, struct
8503         remote_arch_state, class remote_state): Move higher up in the
8504         file.
8505         (remote_target::m_remote_state): Now an object instead of a pointer.
8506         (remote_target::get_remote_state): Adjust.
8507
8508 2018-05-24  Andrew Burgess  <andrew.burgess@embecosm.com>
8509
8510         * stack.c (select_and_print_frame): Delete.
8511         (struct function_bounds): Move struct within function.
8512         (func_command): Most content moved into new function
8513         find_frame_for_function, use new function, print result, add
8514         function comment.
8515         (find_frame_for_function): New function, now returns a result.
8516
8517 2018-05-24  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
8518
8519         * stack.c (iterate_over_block_arg_vars): Fix comment.
8520         (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
8521
8522 2018-05-24  Andrew Burgess  <andrew.burgess@embecosm.com>
8523
8524         PR gdb/23203
8525         * frame.c
8526         (scoped_restore_selected_frame::scoped_restore_selected_frame):
8527         Define.
8528         (scoped_restore_selected_frame::~scoped_restore_selected_frame):
8529         Define.
8530         * frame.h (class scoped_restore_selected_frame): New class.
8531         * stack.c (print_frame_local_vars): Remove catching and rethrowing
8532         of any exception, use scoped_restore_selected_frame to restore the
8533         frame instead.
8534
8535 2018-05-24  Pedro Alves  <palves@redhat.com>
8536
8537         * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
8538         override.
8539
8540 2018-05-23  Tom Tromey  <tom@tromey.com>
8541
8542         * complaints.c (struct complaints): Remove.
8543         (symfile_complaint_book): Remove.
8544         (series): New global.
8545         (complaint_internal): Update.
8546         (clear_complaints): Update.
8547
8548 2018-05-23  Tom Tromey  <tom@tromey.com>
8549
8550         * complaints.c (counters): New global.
8551         (struct complain): Remove.
8552         (struct complaints) <root>: Remove.
8553         (complaint_sentinel): Remove.
8554         (symfile_complaint_book): Update.
8555         (find_complaint) Remove.
8556         (complaint_internal, clear_complaints): Update.
8557
8558 2018-05-23  Tom Tromey  <tom@tromey.com>
8559
8560         * complaints.c (struct complain) <file, line>: Remove.
8561         (find_complaint): Remove file, line parameters.
8562         (complaint_internal): Update.
8563
8564 2018-05-23  Tom Tromey  <tom@tromey.com>
8565
8566         * complaints.c (vcomplaint): Remove.
8567         (complaint_internal) Merge in contents of vcomplaint.
8568
8569 2018-05-23  Tom Tromey  <tom@tromey.com>
8570
8571         * complaints.c (struct complaints) <explanation>: Remove.
8572         (symfile_explanations): Remove.
8573         (symfile_complaint_book): Update.
8574         (vcomplaint): Update.
8575         (struct explanation): Remove.
8576
8577 2018-05-23  Tom Tromey  <tom@tromey.com>
8578
8579         * complaints.c (symfile_complaints): Remove.
8580         (complaint_internal): Remove "complaints" parameter.
8581         (clear_complaints, vcomplaint): Remove "c" parameter.
8582         (get_complaints): Remove.
8583         * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
8584         (dwarf2_debug_line_missing_file_complaint)
8585         (dwarf2_debug_line_missing_end_sequence_complaint)
8586         (dwarf2_complex_location_expr_complaint)
8587         (dwarf2_const_value_length_mismatch_complaint)
8588         (dwarf2_section_buffer_overflow_complaint)
8589         (dwarf2_macro_malformed_definition_complaint)
8590         (dwarf2_invalid_attrib_class_complaint)
8591         (create_addrmap_from_index, dw2_symtab_iter_next)
8592         (dw2_expand_marked_cus)
8593         (dw2_debug_names_iterator::find_vec_in_debug_names)
8594         (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
8595         (create_debug_type_hash_table, init_cutu_and_read_dies)
8596         (partial_die_parent_scope, add_partial_enumeration)
8597         (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
8598         (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
8599         (read_import_statement, read_file_scope, create_dwo_cu_reader)
8600         (create_cus_hash_table, create_dwp_hash_table)
8601         (inherit_abstract_dies, read_func_scope, read_call_site_scope)
8602         (dwarf2_rnglists_process, dwarf2_ranges_process)
8603         (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
8604         (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
8605         (handle_struct_member_die, process_structure_scope)
8606         (read_array_type, read_common_block, read_module_type)
8607         (read_tag_pointer_type, read_typedef, read_base_type)
8608         (read_subrange_type, load_partial_dies, partial_die_info::read)
8609         (partial_die_info::read, partial_die_info::read)
8610         (partial_die_info::read, read_checked_initial_length_and_offset)
8611         (dwarf2_string_attr, read_formatted_entries)
8612         (dwarf_decode_line_header)
8613         (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
8614         (new_symbol, dwarf2_const_value_attr, lookup_die_type)
8615         (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
8616         (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
8617         (get_signatured_type, get_DW_AT_signature_type)
8618         (decode_locdesc, file_file_name, consume_improper_spaces)
8619         (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
8620         (dwarf_decode_macro_bytes, dwarf_decode_macros)
8621         (dwarf2_symbol_mark_computed, set_die_type)
8622         (read_attribute_value): Update.
8623         * stap-probe.c (handle_stap_probe, get_stap_base_address):
8624         Update.
8625         * dbxread.c (unknown_symtype_complaint)
8626         (lbrac_mismatch_complaint, repeated_header_complaint)
8627         (set_namestring, function_outside_compilation_unit_complaint)
8628         (read_dbx_symtab, process_one_symbol): Update.
8629         * gdbtypes.c (stub_noname_complaint): Update.
8630         * windows-nat.c (handle_unload_dll): Update.
8631         * coffread.c (coff_symtab_read, enter_linenos, decode_type)
8632         (decode_base_type): Update.
8633         * xcoffread.c (bf_notfound_complaint, ef_complaint)
8634         (eb_complaint, record_include_begin, record_include_end)
8635         (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
8636         (process_xcoff_symbol, read_symbol)
8637         (function_outside_compilation_unit_complaint)
8638         (scan_xcoff_symtab): Update.
8639         * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
8640         * buildsym.c (finish_block_internal, make_blockvector)
8641         (end_symtab_get_static_block, augment_type_symtab): Update.
8642         * dtrace-probe.c (dtrace_process_dof)
8643         (dtrace_static_probe_ops::get_probes): Update.
8644         * complaints.h (struct complaint): Don't declare.
8645         (symfile_complaints): Remove.
8646         (complaint_internal): Remove "complaints" parameter.
8647         (complaint): Likewise.
8648         (clear_complaints): Likewise.
8649         * symfile.c (syms_from_objfile_1, finish_new_objfile)
8650         (reread_symbols): Update.
8651         * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
8652         (dwarf2_frame_cache, decode_frame_entry): Update.
8653         * dwarf2loc.c (dwarf_reg_to_regnum): Update.
8654         * objc-lang.c (lookup_objc_class, lookup_child_selector)
8655         (info_selectors_command): Update.
8656         * macrotab.c (macro_include, check_for_redefinition)
8657         (macro_undef): Update.
8658         * objfiles.c (filter_overlapping_sections): Update.
8659         * stabsread.c (invalid_cpp_abbrev_complaint)
8660         (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
8661         (define_symbol, error_type, read_type, rs6000_builtin_type)
8662         (stabs_method_name_from_physname, read_member_functions)
8663         (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
8664         (attach_fields_to_type, complain_about_struct_wipeout)
8665         (read_range_type, read_args, common_block_start)
8666         (common_block_end, cleanup_undefined_types_1, scan_file_globals):
8667         Update.
8668         * mdebugread.c (index_complaint, unknown_ext_complaint)
8669         (basic_type_complaint, bad_tag_guess_complaint)
8670         (bad_rfd_entry_complaint, unexpected_type_code_complaint)
8671         (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
8672         (parse_procedure, parse_lines)
8673         (function_outside_compilation_unit_complaint)
8674         (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
8675         (bad_tag_guess_complaint, reg_value_complaint): Update.
8676         * cp-support.c (demangled_name_complaint): Update.
8677         * macroscope.c (sal_macro_scope): Update.
8678         * dwarf-index-write.c (class debug_names): Update.
8679
8680 2018-05-23  Tom Tromey  <tom@tromey.com>
8681
8682         * complaints.c (clear_complaints): Remove "noisy" parameter.
8683         * complaints.h (clear_complaints): Update.
8684         * symfile.c (syms_from_objfile_1, finish_new_objfile)
8685         (reread_symbols): Update.
8686
8687 2018-05-23  Tom Tromey  <tom@tromey.com>
8688
8689         * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
8690         SUBSEQUENT_MESSAGE.
8691         (vcomplaint, clear_complaints): Update.
8692         (symfile_explanations): Remove some messages.
8693
8694 2018-05-23  Tom Tromey  <tom@tromey.com>
8695
8696         * complaints.c (internal_complaint): Remove.
8697         * complaints.h (internal_complaint): Remove.
8698
8699 2018-05-22  Maciej W. Rozycki  <macro@mips.com>
8700
8701         * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
8702
8703 2018-05-22  Pedro Alves  <palves@redhat.com>
8704
8705         * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
8706         (remote_fileio_badfd, remote_fileio_return_errno)
8707         (remote_fileio_return_success, remote_fileio_func_open)
8708         (remote_fileio_func_open, remote_fileio_func_close)
8709         (remote_fileio_func_read, remote_fileio_func_write)
8710         (remote_fileio_func_lseek, remote_fileio_func_rename)
8711         (remote_fileio_func_unlink, remote_fileio_func_stat)
8712         (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
8713         (remote_fileio_func_isatty, remote_fileio_func_system): Add
8714         remote_target parameter.
8715         (remote_fio_func_map) <func>: Add remote_target parameter.
8716         (do_remote_fileio_request, remote_fileio_request):
8717         * remote-fileio.h (remote_fileio_request):
8718         * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
8719         remote_target parameter.
8720         (remote_notif_process, handle_notification): Adjust to pass down
8721         the remote.
8722         (remote_notif_state_allocate): Add remote_target parameter.  Save
8723         it.
8724         * remote-notif.h (struct remote_target): Forward declare.
8725         (struct notif_client) <parse, ack, can_get_pending_events>: Add
8726         remote_target parameter.
8727         (struct remote_notif_state) <remote>: New field.
8728         (remote_notif_ack, remote_notif_parse): Add remote_target
8729         parameter.
8730         (remote_notif_state_allocate, remote_notif_state_allocate): Add
8731         remote_target parameter.
8732         * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
8733         (threads_listing_context, rmt_thread_action, protocol_feature)
8734         (packet_reg, stop_reply, stop_reply_p, enum packet_support)
8735         (packet_result, struct threads_listing_context, remote_state):
8736         Move definitions and declarations higher up.
8737         (remote_target) <~remote_target>: Declare.
8738         (remote_download_command_source, remote_file_put, remote_file_get)
8739         (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
8740         (remote_hostio_pread_vFile, remote_hostio_send_command)
8741         (remote_hostio_set_filesystem, remote_hostio_open)
8742         (remote_hostio_close, remote_hostio_unlink, remote_state)
8743         (get_remote_state, get_remote_packet_size, get_memory_packet_size)
8744         (get_memory_write_packet_size, get_memory_read_packet_size)
8745         (append_pending_thread_resumptions, remote_detach_1)
8746         (append_resumption, remote_resume_with_vcont)
8747         (add_current_inferior_and_thread, wait_ns, wait_as)
8748         (process_stop_reply, remote_notice_new_inferior)
8749         (process_initial_stop_replies, remote_add_thread)
8750         (btrace_sync_conf, remote_btrace_maybe_reopen)
8751         (remove_new_fork_children, kill_new_fork_children)
8752         (discard_pending_stop_replies, stop_reply_queue_length)
8753         (check_pending_events_prevent_wildcard_vcont)
8754         (discard_pending_stop_replies_in_queue, stop_reply)
8755         (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
8756         (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
8757         (remote_interrupt_as, remote_interrupt_ns)
8758         (remote_get_noisy_reply, remote_query_attached)
8759         (remote_add_inferior, remote_current_thread, get_current_thread)
8760         (set_thread, set_general_thread, set_continue_thread)
8761         (set_general_process, write_ptid)
8762         (remote_unpack_thread_info_response, remote_get_threadinfo)
8763         (parse_threadlist_response, remote_get_threadlist)
8764         (remote_threadlist_iterator, remote_get_threads_with_ql)
8765         (remote_get_threads_with_qxfer)
8766         (remote_get_threads_with_qthreadinfo, extended_remote_restart)
8767         (get_offsets, remote_check_symbols, remote_supported_packet)
8768         (remote_query_supported, remote_packet_size)
8769         (remote_serial_quit_handler, remote_detach_pid)
8770         (remote_vcont_probe, remote_resume_with_hc)
8771         (send_interrupt_sequence, interrupt_query)
8772         (remote_notif_get_pending_events, fetch_register_using_p)
8773         (send_g_packet, process_g_packet, fetch_registers_using_g)
8774         (store_register_using_P, store_registers_using_G)
8775         (set_remote_traceframe, check_binary_download)
8776         (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
8777         (remote_xfer_live_readonly_partial, remote_read_bytes)
8778         (remote_send_printf, remote_flash_write, readchar)
8779         (remote_serial_write, putpkt, putpkt_binary, skip_frame)
8780         (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
8781         (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
8782         (extended_remote_disable_randomization, extended_remote_run)
8783         (send_environment_packet, extended_remote_environment_support)
8784         (extended_remote_set_inferior_cwd, remote_write_qxfer)
8785         (remote_read_qxfer, push_stop_reply, vcont_r_supported)
8786         (packet_command): Now methods of ...
8787         (remote_target): ... this class.
8788         (m_remote_state) <remote_target>: New field.
8789         (struct remote_state) <stop_reply_queue,
8790         remote_async_inferior_event_token, wait_forever_enabled_p>: New
8791         fields.
8792         (remote_state::remote_state): Allocate stop_reply_queue.
8793         (remote_state): Delete global.
8794         (get_remote_state_raw): Delete.
8795         (remote_target::get_remote_state): Allocate m_remote_state on
8796         demand.
8797         (get_current_remote_target): New.
8798         (remote_ops, extended_remote_ops): Delete.
8799         (wait_forever_enabled_p, remote_async_inferior_event_token):
8800         Delete, moved to struct remote_state.
8801         (remote_target::close): Delete self.  Destruction bits split to
8802         ...
8803         (remote_target::~remote_target): ... this.
8804         (show_memory_packet_size): Adjust to use
8805         get_current_remote_target.
8806         (struct protocol_feature) <func>: Add remote_target parameter.
8807         All callers adjusted.
8808         (curr_quit_handler_target): New.
8809         (remote_serial_quit_handler): Reimplement.
8810         (remote_target::open_1): Adjust to use get_current_remote_target.
8811         Heap-allocate remote_target/extended_remote_target instances.
8812         (vcont_builder::vcont_builder): Add remote_target parameter, and
8813         save it in m_remote.  All callers adjusted.
8814         (vcont_builder::m_remote): New field.
8815         (vcont_builder::restart, vcont_builder::flush)
8816         (vcont_builder::push_action): Use it.
8817         (remote_target::commit_resume): Use it.
8818         (struct queue_iter_param) <remote>: New field.
8819         (remote_target::remove_new_fork_children): Fill in 'remote' field.
8820         (check_pending_event_prevents_wildcard_vcont_callback_data): New.
8821         (check_pending_event_prevents_wildcard_vcont_callback)
8822         (remote_target::check_pending_events_prevent_wildcard_vcont)
8823         (remote_target::discard_pending_stop_replies)
8824         (remote_target::discard_pending_stop_replies_in_queue)
8825         (remote_target::remote_notif_remove_queued_reply): Fill in
8826         'remote' field.
8827         (remote_notif_get_pending_events): New.
8828         (remote_target::readchar, remote_target::remote_serial_write):
8829         Save/restore curr_quit_handler_target.
8830         (putpkt): New.
8831         (kill_new_fork_children): Fill in 'remote' field.
8832         (packet_command): Use get_current_remote_target, defer to
8833         remote_target method of same name.
8834         (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
8835         parameter, and save it in m_remote.  All callers adjusted.
8836         (scoped_remote_fd::release): Use m_remote.
8837         (scoped_remote_fd::m_remote): New field.
8838         (remote_file_put, remote_file_get, remote_file_delete): Use
8839         get_current_remote_target, defer to remote_target method of same
8840         name.
8841         (remote_btrace_reset): Add remote_state paremeter.  Update all
8842         callers.
8843         (remote_async_inferior_event_handler). Pass down 'data'.
8844         (remote_new_objfile): Use get_current_remote_target.
8845         (remote_target::vcont_r_supported): New.
8846         (set_range_stepping): Use get_current_remote_target and
8847         remote_target::vcont_r_supported.
8848         (_initialize_remote): Don't allocate 'remote_state' and
8849         'stop_reply_queue' globals.
8850         * remote.h (struct remote_target): Forward declare.
8851         (getpkt, putpkt, remote_notif_get_pending_events): Add
8852         'remote_target' parameter.
8853
8854 2018-05-22  Pedro Alves  <palves@redhat.com>
8855
8856         * remote.c (vcont_builder): Now a class.  Make all data members
8857         private.
8858         (vcont_builder) <vcont_builder, restart, flush, push_action>:
8859         Declare methods.
8860         (vcont_builder_restart): Rename to ...
8861         (vcont_builder::restart): ... this.
8862         (vcont_builder_flush): Rename to ...
8863         (vcont_builder::flush): ... this.
8864         (vcont_builder_push_action): Rename to ...
8865         (vcont_builder::push_action): ... this.
8866         (remote_target::commit_resume): Adjust.
8867
8868 2018-05-22  Pedro Alves  <palves@redhat.com>
8869
8870         * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
8871         (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
8872         (get_fixed_memory_packet_size): New.
8873         (get_memory_packet_size): Use it.
8874         (set_memory_packet_size): Don't override the config size with
8875         DEFAULT_MAX_MEMORY_PACKET_SIZE.
8876         (show_memory_packet_size): Use get_fixed_memory_packet_size.
8877         Don't refer to get_memory_packet_size if not connected to a remote
8878         target.  Show "(default)" if configured size is 0.
8879
8880 2018-05-22  Pedro Alves  <palves@redhat.com>
8881
8882         * remote.c (remote_target::mourn_inferior): Move
8883         discard_pending_stop_replies call here from ...
8884         (_initialize_remote): ... here.
8885
8886 2018-05-22  Pedro Alves  <palves@redhat.com>
8887
8888         * remote.c (compare_section_command): Remove set_general_process
8889         call.
8890
8891 2018-05-22  Pedro Alves  <palves@redhat.com>
8892
8893         * remote.c (struct packet_reg, struct remote_arch_state):
8894         Move higher up in the file.
8895         (remote_state) <m_arch_states>: Store remote_arch_state values
8896         instead of remote_arch_state pointers.
8897         (remote_state::get_remote_arch_state): Adjust.
8898
8899 2018-05-22  Pedro Alves  <palves@redhat.com>
8900
8901         * remote.c: Include <unordered_map>.
8902         (remote_state): Now a class.
8903         (remote_state) <get_remote_arch_state>: Declare method.
8904         <get_remote_arch_state>: New field.
8905         (remote_arch_state) <remote_arch_state>: Declare ctor.
8906         <regs>: Now a unique_ptr.
8907         (remote_gdbarch_data_handle): Delete.
8908         (get_remote_arch_state): Delete.
8909         (remote_state::get_remote_arch_state): New.
8910         (get_remote_state): Adjust to call remote_state's
8911         get_remote_arch_state method.
8912         (init_remote_state): Delete, bits factored out to ...
8913         (remote_arch_state::remote_arch_state): ... this new method.
8914         (get_remote_packet_size, get_memory_packet_size)
8915         (process_g_packet, remote_target::fetch_registers)
8916         (remote_target::prepare_to_store, store_registers_using_G)
8917         (remote_target::store_registers, remote_target::get_trace_status):
8918         Adjust to call remote_state's method.
8919         (_initialize_remote): Remove reference to
8920         remote_gdbarch_data_handle.
8921
8922 2018-05-22  Pedro Alves  <palves@redhat.com>
8923
8924         * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
8925         pread>: New method declarations.
8926         (remote_target::open_1): Adjust.
8927         (readahead_cache_invalidate): Rename to ...
8928         (readahead_cache::invalidate): ... this, and adjust to be a class
8929         method.
8930         (readahead_cache_invalidate_fd): Rename to ...
8931         (readahead_cache::invalidate_fd): ... this, and adjust to be a
8932         class method.
8933         (remote_hostio_pwrite): Adjust.
8934         (remote_hostio_pread_from_cache): Rename to ...
8935         (readahead_cache::pread): ... this, and adjust to be a class
8936         method.
8937         (remote_hostio_close): Adjust.
8938
8939 2018-05-22  Pedro Alves  <palves@redhat.com>
8940
8941         * remote.c (remote_hostio_close_cleanup): Delete.
8942         (class scoped_remote_fd): New.
8943         (remote_file_put, remote_file_get): Use it.
8944
8945 2018-05-22  Pedro Alves  <palves@redhat.com>
8946
8947         (struct vCont_action_support): Use bool and initialize all fields.
8948         (struct readahead_cache): Initialize all fields.
8949         (remote_state): Use bool and initialize all fields.
8950         (remote_state::remote_state, remote_state::~remote_state): New.
8951         (new_remote_state): Delete.
8952         (_initialize_remote): Use new to allocate remote_state.
8953
8954 2018-05-22  Pedro Alves  <palves@redhat.com>
8955             張俊芝  <zjz@zjz.name>
8956
8957         PR gdb/22973
8958         * c-exp.y: Include "c-support.h".
8959         (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
8960         of tolower.  Use c_ident_is_alpha to scan names.
8961         * c-lang.c: Include "c-support.h".
8962         (convert_ucn, convert_octal, convert_hex, convert_escape): Use
8963         ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
8964         * c-support.h: New file, with bits factored out from ...
8965         * cp-name-parser.y: ... this file.
8966         Include "c-support.h".
8967         (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
8968         c-support.h and renamed.
8969         (symbol_end, yylex): Adjust.
8970
8971 2018-05-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
8972
8973         * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
8974         parameter type to CORE_ADDR.
8975         * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
8976         parameter type in declaration to CORE_ADDR.
8977         * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
8978         target_auxv_search to get AT_HWCAP and use the result to get the
8979         target description.
8980         * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
8981         to CORE_ADDR. Remove the cast of the return value to unsigned
8982         long. Fix error predicate of target_auxv_search.
8983         (ppc_linux_nat_target::read_description): Change the type of the
8984         hwcap variable to CORE_ADDR.
8985
8986 2018-05-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
8987
8988         * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
8989         if the size of fpscr is larger than 32 bits.
8990
8991 2018-05-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
8992
8993         * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
8994         (ppc32_linux_vsxregmap): New global.
8995         (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
8996         regcache_supply_regset, and regcache_collect_regset.
8997         * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
8998         * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
8999         (fetch_vsx_register, store_vsx_register): Remove.
9000         (fetch_vsx_registers): Add regno parameter. Get regset using
9001         ppc_linux_vsxregset. Use regset to supply registers.
9002         (store_vsx_registers): Add regno parameter. Get regset using
9003         ppc_linux_vsxregset. Use regset to collect registers.
9004         (fetch_register): Call fetch_vsx_registers instead of
9005         fetch_vsx_register.
9006         (store_register): Call store_vsx_registers instead of
9007         store_vsx_register.
9008         (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
9009         new regno parameter.
9010         (store_ppc_registers): Call store_vsx_registers with -1 for the
9011         new regno parameter.
9012         * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
9013         (ppc_collect_vsxregset): Remove.
9014
9015 2018-05-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
9016
9017         * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
9018         offset fields.
9019         * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
9020         for vector register offset fields.
9021         (ppc64_fbsd_reg_offsets): Likewise.
9022         * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
9023         to vector register offset fields.
9024         * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
9025         to vector register offset fields.
9026         * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
9027         vector register offset fields.
9028         * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
9029         initializers for vector register offset fields.
9030         (rs6000_aix64_reg_offsets): Likewise.
9031         * rs6000-tdep.c (ppc_vrreg_offset): Remove.
9032         (ppc_supply_vrregset): Remove.
9033         (ppc_collect_vrregset): Remove.
9034         * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
9035         (ppc_linux_vrregset) : New function.
9036         (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
9037         (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
9038         (ppc32_linux_vrregset): Remove.
9039         (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
9040         and use result instead of ppc32_linux_vrregset.
9041         (ppc32_linux_reg_offsets): Remove initializers for vector register
9042         offset fields.
9043         (ppc64_linux_reg_offsets): Likewise.
9044         * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
9045         * ppc-linux-nat.c: Include regset.h.
9046         (gdb_vrregset_t): Adjust comment to account for little-endian
9047         mode.
9048         (supply_vrregset, fill_vrregset): Remove.
9049         (fetch_altivec_register, store_altivec_register): Remove.
9050         (fetch_altivec_registers): Add regno parameter. Get regset using
9051         ppc_linux_vrregset. Use regset to supply registers.
9052         (store_altivec_registers): Add regno parameter. Get regset using
9053         ppc_linux_vrregset. Use regset to collect registers.
9054         (fetch_register): Call fetch_altivec_registers instead of
9055         fetch_altivec_register.
9056         (store_register): Call store_altivec_registers instead of
9057         store_altivec_register.
9058         (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
9059         the new regno parameter.
9060         (store_ppc_registers): Call store_altivec_registers with -1 for
9061         the new regno parameter.
9062
9063 2018-05-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
9064
9065         * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
9066         (PPC_LINUX_SIZEOF_VSXREGSET): Define.
9067         * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
9068         (gdb_vrregset_t): Change array type size to
9069         PPC_LINUX_SIZEOF_VRREGSET.
9070         (gdb_vsxregset_t): Change array type size to
9071         PPC_LINUX_SIZEOF_VSXREGSET.
9072         * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
9073         Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
9074         PPC_LINUX_SIZEOF_VSXREGSET.
9075
9076 2018-05-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
9077
9078         * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
9079         * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
9080         nat/ppc-linux.c.
9081         (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
9082         ppc_linux_target_wordsize with tid.
9083         (ppc_linux_nat_target::read_description): Call ppc_linux_target
9084         wordsize with tid.
9085         * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
9086         (ppc64_64bit_inferior_p): Add static and inline specifiers.
9087         (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
9088         tid parameter. Remove static specifier.
9089         * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
9090         (ppc_linux_target_wordsize): New declaration.
9091
9092 2018-05-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
9093
9094         * arch/ppc-linux-common.c: New file.
9095         * arch/ppc-linux-common.h: New file.
9096         * arch/ppc-linux-tdesc.h: New file.
9097         * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
9098         * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
9099         (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
9100         arch/ppc-linux-tdesc.h.
9101         * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
9102         arch/ppc-linux-tdesc.h.
9103         (ppc_linux_nat_target::read_description): Remove target
9104         description matching code. Fill a ppc_linux_features struct and
9105         call ppc_linux_match_description with it. Move comment about ISA
9106         2.05 to ppc-linux-common.c.
9107         * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
9108         arch/ppc-linux-tdesc.h.
9109         (ppc_linux_core_read_description): Remove target description
9110         matching code. Fill a ppc_linux_features struct and call
9111         ppc_linux_match_description with it.
9112         * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
9113         (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
9114         (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
9115         (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
9116         (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
9117         (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
9118         (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
9119         (tdesc_powerpc_e500l): Remove.
9120
9121 2018-05-22  Joel Brobecker  <brobecker@adacore.com>
9122
9123         * ada-lang.c (catch_assert_command): Pass empty string instead
9124         of NULL for excep_string argument.
9125
9126 2018-05-22  Maciej W. Rozycki  <macro@mips.com>
9127
9128         * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
9129         the width of the requested register exceeds the width of the
9130         `ptrace' data type.
9131
9132 2018-05-21  Tom Tromey  <tom@tromey.com>
9133
9134         * printcmd.c (output_command): Remove.
9135         (output_command_const): Rename to output_command.
9136         * valprint.h (output_command): Rename from output_command_const.
9137         * tracepoint.c (trace_dump_actions): Call output_command.
9138
9139 2018-05-21  Tom Tromey  <tom@tromey.com>
9140
9141         * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
9142         (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
9143         * ada-lang.h (create_ada_exception_catchpoint): Update.
9144         * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
9145         std::string.
9146         (create_excep_cond_exprs, ~ada_catchpoint)
9147         (should_stop_exception, print_one_exception)
9148         (print_mention_exception, print_recreate_exception): Update.
9149         (ada_get_next_arg): Remove.
9150         (catch_ada_exception_command_split): Use std::string.  Change type
9151         of "excep_string", "cond_string".
9152         (catch_ada_exception_command): Update.
9153         (create_ada_exception_catchpoint): Change type of excep_string.
9154         (ada_exception_sal): Remove excep_string parameter.
9155         (~ada_catchpoint): Remove.
9156
9157 2018-05-21  Tom Tromey  <tom@tromey.com>
9158
9159         * ada-lang.c (ada_collect_symbol_completion_matches): Remove
9160         cleanup.
9161
9162 2018-05-21  Tom Tromey  <tom@tromey.com>
9163
9164         * ada-lang.c (ada_exception_message_1, ada_exception_message):
9165         Return unique_xmalloc_ptr.
9166         (print_it_exception): Update.
9167
9168 2018-05-21  Tom Tromey  <tom@tromey.com>
9169
9170         * tracepoint.c (trace_dump_actions): Use std::string.
9171
9172 2018-05-21  Tom Tromey  <tom@tromey.com>
9173
9174         * symfile.c (reread_symbols): Use std::string for original_name.
9175
9176 2018-05-21  Tom Tromey  <tom@tromey.com>
9177
9178         * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
9179         (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN.  Default
9180         constructor.
9181
9182 2018-05-20  Simon Marchi  <simon.marchi@polymtl.ca>
9183
9184         * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
9185         instance to...
9186         (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
9187         * objfiles.c (get_objfile_bfd_data): Allocate
9188         objfile_per_bfd_storage with obstack_new when allocating on
9189         obstack.
9190
9191 2018-05-20  Simon Marchi  <simon.marchi@ericsson.com>
9192
9193         * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
9194         OBSTACK_ZALLOC.
9195         * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
9196         * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
9197         * mdebugread.c (mdebug_build_psymtabs): Likewise.
9198         (add_pending): Likewise.
9199         (parse_symbol): Likewise.
9200         (parse_partial_symbols): Likewise.
9201         (psymtab_to_symtab_1): Likewise.
9202         (new_psymtab): Likewise.
9203         (elfmdebug_build_psymtabs): Likewise.
9204         * minsyms.c (terminate_minimal_symbol_table): Likewise.
9205         * objfiles.c (get_objfile_bfd_data): Likewise.
9206         (objfile_register_static_link): Likewise.
9207         * psymtab.c (allocate_psymtab): Likewise.
9208         * stabsread.c (read_member_functions): Likewise.
9209         * xcoffread.c (xcoff_end_psymtab): Likewise.
9210
9211 2018-05-20  Simon Marchi  <simon.marchi@ericsson.com>
9212
9213         * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
9214         compiler supports std::is_trivially_constructible.
9215         * common/poison.h: Include obstack.h.
9216         (IsMallocable): Define to is_trivially_constructible if the
9217         compiler supports it, define to true_type otherwise.
9218         (xobnew): New.
9219         (XOBNEW): Redefine.
9220         (xobnewvec): New.
9221         (XOBNEWVEC): Redefine.
9222         * gdb_obstack.h (obstack_zalloc): New.
9223         (OBSTACK_ZALLOC): Redefine.
9224         (obstack_calloc): New.
9225         (OBSTACK_CALLOC): Redefine.
9226         (obstack_new): New.
9227         * gdbarch.sh: Include gdb_obstack in gdbarch.h.
9228         (gdbarch_obstack): New declaration in gdbarch.h, definition in
9229         gdbarch.c.
9230         (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
9231         obstack_calloc/obstack_zalloc.
9232         (gdbarch_obstack_zalloc): Remove.
9233         * target-descriptions.c (tdesc_data_init): Use obstack_new.
9234
9235 2018-05-19  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
9236
9237         * stack.c (backtrace_command_1): Remove useless variable int i.
9238
9239 2018-05-19  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
9240
9241         * stack.c (print_frame_info): Fix comment.
9242
9243 2018-05-18  Tom Tromey  <tom@tromey.com>
9244
9245         * dwarf2read.c (struct dwz_file): Add constructor, initializers.
9246         <dwz_bfd>: Now a gdb_bfd_ref_ptr.
9247         (~dwarf2_per_objfile): Update
9248         (dwarf2_get_dwz_file): Use new.
9249         * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
9250         unique_ptr.
9251
9252 2018-05-18  Tom Tromey  <tom@tromey.com>
9253
9254         * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
9255         unique_ptr.
9256         * dwarf2read.c (struct dwp_file): Add constructor and
9257         initializers.
9258         (open_and_init_dwp_file): Return a unique_ptr.
9259         (dwarf2_per_objfile, create_dwp_hash_table)
9260         (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
9261         (lookup_dwo_unit_in_dwp): Update.
9262         (open_and_init_dwp_file, get_dwp_file): Update.
9263
9264 2018-05-18  Tom Tromey  <tom@tromey.com>
9265
9266         * dwarf2read.c (dwarf2_per_objfile): Update.
9267         (struct mapped_index): Add initializers.
9268         (dwarf2_read_index): Use new.
9269         (dw2_symtab_iter_init): Update.
9270         * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
9271         unique_ptr.
9272
9273 2018-05-18  Simon Marchi  <simon.marchi@ericsson.com>
9274
9275         * dwarf2read.c (mapped_index) <total_size>: Remove.
9276
9277 2018-05-18  Simon Marchi  <simon.marchi@ericsson.com>
9278
9279         * unittests/format_pieces-selftests.c (test_format_specifier):
9280         Add ARI comments.
9281
9282 2018-05-18  Tom Tromey  <tom@tromey.com>
9283
9284         * c-typeprint.c (maybe_print_hole): New function.
9285         (c_print_type_struct_field_offset): Update.
9286         (c_type_print_base_struct_union): Call maybe_print_hole.
9287
9288 2018-05-17  Keith Seitz  <keiths@redhat.com>
9289
9290         * breakpoint.c (build_bpstat_chain): New function, moved from
9291         bpstat_stop_status.
9292         (bpstat_stop_status): Add optional parameter, `stop_chain'.
9293         If no stop chain is passed, call build_bpstat_chain to build it.
9294         * breakpoint.h (build_bpstat_chain): Declare.
9295         (bpstat_stop_status): Move documentation here from breakpoint.c.
9296         * infrun.c (handle_signal_stop): Before eliding inlined frames,
9297         build the stop chain and pass it to skip_inline_frames.
9298         Pass this stop chain to bpstat_stop_status.
9299         * inline-frame.c: Include breakpoint.h.
9300         (stopped_by_user_bp_inline_frame): New function.
9301         (skip_inline_frames): Add parameter `stop_chain'.
9302         Move documention to inline-frame.h.
9303         If non-NULL, use stopped_by_user_bp_inline_frame to determine
9304         whether the frame should be elided.
9305         * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
9306         Add moved documentation and update for new parameter.
9307
9308 2018-05-17  Simon Marchi  <simon.marchi@ericsson.com>
9309
9310         PR cli/14975
9311         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9312         unittests/format_pieces-selftests.c.
9313         * common/format.h (format_piece) <operator==>: New.
9314         (format_pieces) <operator[]>: Remove.
9315         * common/format.c (format_pieces::format_pieces): Handle \e.
9316         * unittests/format_pieces-selftests.c: New.
9317
9318 2018-05-17  Tom Tromey  <tom@tromey.com>
9319
9320         PR symtab/23010:
9321         * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
9322         (dw2_instantiate_symtab): Add skip_partial parameter.
9323         (dw2_find_last_source_symtab, dw2_map_expand_apply)
9324         (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
9325         (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
9326         (dw2_expand_symtabs_matching_one)
9327         (dw2_find_pc_sect_compunit_symtab)
9328         (dw2_debug_names_lookup_symbol)
9329         (dw2_debug_names_expand_symtabs_for_function): Update.
9330         (init_cutu_and_read_dies): Add skip_partial parameter.
9331         (process_psymtab_comp_unit, build_type_psymtabs_1)
9332         (process_skeletonless_type_unit, load_partial_comp_unit)
9333         (psymtab_to_symtab_1): Update.
9334         (load_full_comp_unit): Add skip_partial parameter.
9335         (process_imported_unit_die, dwarf2_read_addr_index)
9336         (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
9337         (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
9338         (read_signatured_type): Update.
9339
9340 2018-05-17  Simon Marchi  <simon.marchi@ericsson.com>
9341
9342         * value.c (release_value): Remove unused variable.
9343         (record_latest_value): Likewise.
9344         (access_value_history): Likewise.
9345         (preserve_values): Likewise.
9346
9347 2018-05-17  Tom Tromey  <tom@tromey.com>
9348
9349         * extension.h (struct ext_lang_type_printers) <py_type_printers>:
9350         Initialize.
9351
9352 2018-05-16  Maciej W. Rozycki  <macro@mips.com>
9353
9354         PR gdb/22286
9355         * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
9356         Also handle registers whose width is not a multiple of
9357         PTRACE_TYPE_RET.
9358         (linux_nat_trad_target::store_register): Likewise.
9359
9360 2018-05-16  Tom Tromey  <tom@tromey.com>
9361
9362         * gdbcore.h (core_bfd): Redefine.
9363         * corelow.c (core_target::close): Update.
9364         (core_target_open): Update.
9365         * progspace.h (struct program_space) <cbfd>: Now a
9366         gdb_bfd_ref_ptr.
9367
9368 2018-05-16  Tom Tromey  <tom@tromey.com>
9369
9370         PR cli/19551:
9371         * symfile-add-flags.h (enum symfile_add_flags)
9372         <SYMFILE_NOT_FILENAME>: New constant.
9373         * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME.  Get
9374         objfile name from BFD.
9375         (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
9376         * minidebug.c (find_separate_debug_file_in_section): Put
9377         ".gnu_debugdata" into BFD's file name.
9378
9379 2018-05-16  Simon Marchi  <simon.marchi@ericsson.com>
9380
9381         * regcache.c (regcache_read_ftype, regcache_write_ftype):
9382         Remove.
9383
9384 2018-05-15  Tamar Christina  <tamar.christina@arm.com>
9385
9386         PR binutils/21446
9387         * aarch64-tdep.c (aarch64_analyze_prologue,
9388         aarch64_software_single_step, aarch64_displaced_step_copy_insn):
9389         Indicate not interested in errors.
9390
9391 2018-05-15  Maciej W. Rozycki  <macro@mips.com>
9392
9393         * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
9394         Supply the MIPS_ZERO_REGNUM register.
9395
9396 2018-05-15  Maciej W. Rozycki  <macro@mips.com>
9397
9398         * mips-tdep.c (mask_address_var): Make variable static.
9399
9400 2018-05-14  Tom Tromey  <tom@tromey.com>
9401
9402         * dwarf2read.c (rust_union_quirks): Clear rust_unions.
9403
9404 2018-05-11  Andrew Burgess  <andrew.burgess@embecosm.com>
9405
9406         * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
9407         FXSAVE_ADDR for the mxcsr register.
9408
9409 2018-05-11  Max Filippov  <jcmvbkbc@gmail.com>
9410
9411         * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
9412
9413 2018-05-11  Pedro Alves  <palves@redhat.com>
9414
9415         * corelow.c (core_target) <core_target>: No longer inline.
9416         Initialize m_core_gdbarch, m_core_vec and build the section table
9417         here.
9418         <~core_target>: New.
9419         <core_gdbarch, get_core_register_section>: New methods.
9420         <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
9421         factored out from ...
9422         <core_data, core_vec, core_gdbarch>: ... these deleted globals.
9423         (core_ops): Delete.
9424         (sniff_core_bfd): Add gdbarch parameter.
9425         (core_close): Delete, merged into ...
9426         (core_target::close): ... here.  Delete self.
9427         (core_close_cleanup): Delete.
9428         (core_target_open): Allocate a core_target on the heap.  Use a
9429         unique_ptr instead of a cleanup.  Bits moved into the core_target
9430         ctor.  Adjust to use core_target methods instead of globals.
9431         (get_core_register_section): Rename to ...
9432         (core_target::get_core_register_section): ... this and adjust.
9433         (struct get_core_registers_cb_data): New.
9434         (get_core_registers_cb): Use it.  Use bool.
9435         (core_target::fetch_registers, core_target::files_info)
9436         (core_target::xfer_partial, core_target::read_description)
9437         (core_target::pid_to, core_target::thread_name): Adjust to
9438         reference class fields instead of globals.
9439         * target.h (struct target_ops_deleter, target_ops_up): New.
9440
9441 2018-05-11  Pedro Alves  <palves@redhat.com>
9442
9443         * corefile.c (core_file_command): Move to corelow.c.
9444         * corelow.c (the_core_target): Delete.
9445         (core_file_command): Moved from corefile.c.  Check exec_bfd
9446         instead of the_core_target.  Use target_detach instead of calling
9447         into the_core_target directly.
9448         (maybe_say_no_core_file_now): New.
9449         (core_target::detach): Use it.
9450         (_initialize_corelow): Remove references to the_core_target.
9451         * gdbcore.h (the_core_target): Delete.
9452
9453 2018-05-11  Tom Tromey  <tromey@redhat.com>
9454             Pedro Alves  <palves@redhat.com>
9455
9456         * corefile.c (core_bfd): Remove.
9457         * gdbcore.h (core_bfd): Now a macro.
9458         * progspace.h (struct program_space) <cbfd>: New field.
9459
9460 2018-05-11  Tom Tromey  <tom@tromey.com>
9461
9462         * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
9463         gdb::def_vector.
9464
9465 2018-05-10  Tom Tromey  <tom@tromey.com>
9466
9467         * configure: Rebuild.
9468         * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
9469
9470 2018-05-10  Joel Brobecker  <brobecker@adacore.com>
9471
9472         PR server/23158:
9473         * regformats/regdat.sh: Adjust script, following the addition
9474         of the new expedite_regs parameter to init_target_desc.
9475
9476 2018-05-10  Omair Javaid  <omair.javaid@linaro.org>
9477     
9478         PR gdb/23127
9479         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
9480         set_gdbarch_significant_addr_bit.
9481         * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
9482         set_gdbarch_significant_addr_bit.
9483         * utils.c (address_significant): Update to sign extend addr.
9484
9485 2018-05-09  Max Filippov  <jcmvbkbc@gmail.com>
9486
9487         * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
9488         (xtensa_linux_init_abi): Limit tdep->num_regs by
9489         tdep->num_nopriv_regs.
9490         * xtensa-tdep.c (xtensa_derive_tdep): Calculate
9491         tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
9492         not initialized.
9493
9494 2018-05-08  Simon Marchi  <simon.marchi@ericsson.com>
9495
9496         * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
9497
9498 2018-05-08  Andrew Burgess  <andrew.burgess@embecosm.com>
9499
9500         * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
9501         (I387_MXCSR_INIT_VAL): New constant.
9502         * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
9503         buffer if it was supplied by the inferior.
9504         * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
9505         (i387_xsave_get_clear_bv): New function.
9506         (i387_supply_xsave): Only read x87 control registers from the
9507         xsave buffer if the feature is enabled, and the state will have
9508         been written, otherwise, provide a suitable default.
9509         (i387_collect_xsave): Pre-clear all registers in xsave buffer,
9510         including x87 control registers.  Update control registers if they
9511         have changed from the default value, and mark features as enabled
9512         as required.
9513         * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
9514
9515 2018-05-08  Ulrich Weigand  <uweigand@de.ibm.com>
9516
9517         * spu-tdep.c (info_spu_event_command): Fix output formatting.
9518
9519 2018-05-07  Tom Tromey  <tom@tromey.com>
9520
9521         * configure: Rebuild.
9522         * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
9523
9524 2018-05-07  Tom Tromey  <tom@tromey.com>
9525
9526         PR tdep/20362:
9527         * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
9528         bit.  Use correct value for VDIV.
9529
9530 2018-05-04  Tom Tromey  <tom@tromey.com>
9531
9532         * configure: Rebuild.
9533         * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
9534
9535 2018-05-04  Tom Tromey  <tom@tromey.com>
9536
9537         * linux-record.c (record_linux_system_call) <case
9538         RECORD_SYS_RECVFROM>: Add "break".
9539
9540 2018-05-04  Tom Tromey  <tom@tromey.com>
9541
9542         * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
9543         Add missing "break".
9544         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
9545         Add missing "break".
9546
9547 2018-05-04  Tom Tromey  <tom@tromey.com>
9548
9549         * rs6000-tdep.c (ppc_process_record_op4)
9550         (ppc_process_record_op63): Add fall-through comment.
9551
9552 2018-05-04  Tom Tromey  <tom@tromey.com>
9553
9554         * i386-tdep.c (i386_process_record): Add fall-through comment.
9555
9556 2018-05-04  Tom Tromey  <tom@tromey.com>
9557
9558         * stabsread.c (define_symbol) <case 'p'>: Add fall-through
9559         comment.
9560
9561 2018-05-04  Tom Tromey  <tom@tromey.com>
9562
9563         * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
9564         * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
9565         * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
9566         comment.
9567         * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
9568         comment.
9569         * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
9570         comment.
9571
9572 2018-05-04  Tom Tromey  <tom@tromey.com>
9573
9574         * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
9575
9576 2018-05-04  Tom Tromey  <tom@tromey.com>
9577
9578         * s390-tdep.c (s390_process_record): Fix fall-through comments.
9579         * xcoffread.c (scan_xcoff_symtab): Move comment later.
9580         * symfile.c (section_is_mapped): Fix fall-through comment.
9581         * stabsread.c (define_symbol, read_member_functions): Fix
9582         fall-through comment.
9583         * s390-linux-tdep.c (s390_process_record): Fix fall-through
9584         comment.
9585         * remote.c (remote_wait_as): Fix fall-through comment.
9586         * p-exp.y (yylex): Fix fall-through comment.
9587         * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
9588         comment.
9589         * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
9590         * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
9591         * jv-exp.y (yylex): Fix fall-through comment.
9592         * go-exp.y (lex_one_token): Fix fall-through comment.
9593         * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
9594         fall-through comment.
9595         * f-exp.y (yylex): Fix fall-through comment.
9596         * dwarf2read.c (process_die): Fix fall-through comments.
9597         * dbxread.c (process_one_symbol): Fix fall-through comment.
9598         * d-exp.y (lex_one_token): Fix fall-through comment.
9599         * cp-name-parser.y (yylex): Fix fall-through comment.
9600         * coffread.c (coff_symtab_read): Fix fall-through comment.
9601         * c-exp.y (lex_one_token): Fix fall-through comment.
9602         * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
9603         comment.
9604         * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
9605         comment.
9606
9607 2018-05-04  Tom Tromey  <tom@tromey.com>
9608
9609         PR python/22730:
9610         * NEWS: Mention gdb.execute change.
9611         * gdbcmd.h (execute_control_command): Don't declare.
9612         * python/python.c (execute_gdb_command): Use read_command_lines_1,
9613         execute_control_commands, execute_control_commands_to_string.
9614         * cli/cli-script.h (execute_control_commands)
9615         (execute_control_commands_to_string): Declare.
9616         (execute_control_command): Add from_tty parameter.
9617         * cli/cli-script.c (execute_control_commands)
9618         (execute_control_commands_to_string): New functions.
9619         (execute_user_command): Use execute_control_commands.
9620         (execute_control_command_1): Add "from_tty" parameter.  Update.
9621         (execute_control_command): Likewise.
9622
9623 2018-05-04  Tom Tromey  <tom@tromey.com>
9624
9625         PR python/22731:
9626         * NEWS: Mention that breakpoint commands are writable.
9627         * python/py-breakpoint.c (bppy_set_commands): New function.
9628         (breakpoint_object_getset) <"commands">: Use it.
9629
9630 2018-05-04  Tom Tromey  <tom@tromey.com>
9631
9632         * tracepoint.c (actions_command): Update.
9633         * mi/mi-cmd-break.c (mi_command_line_array)
9634         (mi_command_line_array_cnt, mi_command_line_array_ptr)
9635         (mi_read_next_line): Remove.
9636         (mi_cmd_break_commands): Update.
9637         * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
9638         function_view.
9639         * cli/cli-script.c (get_command_line): Update.
9640         (process_next_line): Use function_view.  Constify.
9641         (recurse_read_control_structure, read_command_lines)
9642         (read_command_lines_1): Change argument types to function_view.
9643         (do_define_command, document_command): Update.
9644         * breakpoint.h (check_tracepoint_command): Don't declare.
9645         * breakpoint.c (check_tracepoint_command): Remove.
9646         (commands_command_1, create_tracepoint_from_upload): Update.
9647
9648 2018-05-04  Tom Tromey  <tom@tromey.com>
9649
9650         PR gdb/11750:
9651         * cli/cli-script.h (enum command_control_type) <define_control>:
9652         New constant.
9653         * cli/cli-script.c (multi_line_command_p): Handle define_control.
9654         (build_command_line, execute_control_command_1)
9655         (process_next_line): Likewise.
9656         (do_define_command): New function, extracted from define_command.
9657         (define_command): Use it.
9658
9659 2018-05-04  Tom Tromey  <tom@tromey.com>
9660
9661         * tracepoint.c (actions_command): Update.
9662         * cli/cli-script.h (read_command_lines): Update.
9663         * cli/cli-script.c (read_command_lines): Constify prompt_arg.
9664         (MAX_TMPBUF): Remove define.
9665         (define_command): Use string_printf.
9666         (document_command): Likewise.
9667         * breakpoint.c (commands_command_1): Update.
9668
9669 2018-05-04  Tom Tromey  <tom@tromey.com>
9670
9671         * top.c (execute_command): Update.
9672         * cli/cli-script.h (print_command_lines): Now varargs.
9673         * cli/cli-script.c (print_command_lines): Now varargs.
9674         (execute_control_command_1) <case while_control, case if_control>:
9675         Update.
9676
9677 2018-05-04  Tom Tromey  <tom@tromey.com>
9678
9679         * tracepoint.c (all_tracepoint_actions): Rename from
9680         all_tracepoint_actions_and_cleanup.  Change return type.
9681         (actions_command, encode_actions_1, encode_actions)
9682         (trace_dump_actions, tdump_command): Update.
9683         * remote.c (remote_download_command_source): Update.
9684         * python/python.c (gdbpy_eval_from_control_command)
9685         (python_command, python_interactive_command): Update.
9686         * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
9687         * guile/guile.c (guile_command)
9688         (gdbscm_eval_from_control_command, guile_command): Update.
9689         * compile/compile.c (compile_code_command)
9690         (compile_print_command, compile_to_object): Update.
9691         * cli/cli-script.h (struct command_lines_deleter): New.
9692         (counted_command_line): New typedef.
9693         (struct command_line): Add constructor, destructor.
9694         <body_list>: Remove.
9695         <body_list_0, body_list_1>: New members.
9696         (command_line_up): Remove typedef.
9697         (read_command_lines, read_command_lines_1, get_command_line):
9698         Update.
9699         (copy_command_lines): Don't declare.
9700         * cli/cli-script.c (build_command_line): Use "new".
9701         (get_command_line): Return counted_command_line.
9702         (print_command_lines, execute_user_command)
9703         (execute_control_command_1, while_command, if_command): Update.
9704         (realloc_body_list): Remove.
9705         (process_next_line, recurse_read_control_structure): Update.
9706         (read_command_lines, read_command_lines_1): Return counted_command_line.
9707         (free_command_lines): Use "delete".
9708         (copy_command_lines): Remove.
9709         (define_command, document_command, show_user_1): Update.
9710         * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
9711         a counted_command_line.
9712         * breakpoint.h (counted_command_line): Remove typedef.
9713         (breakpoint_set_commands): Update.
9714         * breakpoint.c (check_no_tracepoint_commands)
9715         (validate_commands_for_breakpoint): Update.
9716         (breakpoint_set_commands): Change commands to be a
9717         counted_command_line.
9718         (commands_command_1, update_dprintf_command_list)
9719         (create_tracepoint_from_upload): Update.
9720
9721 2018-05-04  Tom Tromey  <tom@tromey.com>
9722
9723         * cli/cli-decode.h (cmd_list_element): New constructor.
9724         (~cmd_list_element): New destructor.
9725         (struct cmd_list_element): Add initializers.
9726         * cli/cli-decode.c (do_add_cmd): Use "new".
9727         (delete_cmd): Use "delete".
9728
9729 2018-05-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
9730             Pedro Alves <palves@redhat.com>
9731
9732         PR breakpoints/19806 and support for PR external/20207.
9733         * NEWS: Mention Aarch64 watchpoint improvements.
9734         * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
9735         watchpoints and PR external/20207 watchpoints.
9736         * nat/aarch64-linux-hw-point.c
9737         (kernel_supports_any_contiguous_range): New.
9738         (aarch64_watchpoint_offset): New.
9739         (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
9740         (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
9741         (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
9742         (aarch64_align_watchpoint): New parameters aligned_offset_p and
9743         next_addr_orig_p.  Support PR external/20207 watchpoints.
9744         (aarch64_downgrade_regs): New.
9745         (aarch64_dr_state_insert_one_point): New parameters offset and
9746         addr_orig.
9747         (aarch64_dr_state_remove_one_point): Likewise.
9748         (aarch64_handle_breakpoint): Update caller.
9749         (aarch64_handle_aligned_watchpoint): Likewise.
9750         (aarch64_handle_unaligned_watchpoint): Support addr_orig and
9751         aligned_offset.
9752         (aarch64_linux_set_debug_regs): Remove const from state.  Call
9753         aarch64_downgrade_regs.
9754         (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
9755         * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
9756         (DR_CONTROL_MASK): ... this.
9757         (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
9758         (unsigned int aarch64_watchpoint_offset): New prototype.
9759         (aarch64_linux_set_debug_regs): Remove const from state.
9760         * utils.c (align_up, align_down): Move to ...
9761         * common/common-utils.c (align_up, align_down): ... here.
9762         * utils.h (align_up, align_down): Move to ...
9763         * common/common-utils.h (align_up, align_down): ... here.
9764
9765 2018-05-04  Joel Brobecker  <brobecker@adacore.com>
9766
9767         * sparc-tdep.c (sparc_structure_return_p): Re-implement to
9768         match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
9769         (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
9770         Re-implement to match the ABI as summarized in GCC's
9771         gcc/config/sparc/sparc.c.  All callers updated.
9772         (sparc32_store_arguments): Remove assertion.
9773
9774 2018-05-04  Tom Tromey  <tom@tromey.com>
9775
9776         * printcmd.c: Don't include tui.h.
9777         (decode_format): Use skip_spaces.
9778
9779 2018-05-04  Tom Tromey  <tom@tromey.com>
9780
9781         PR gdb/22619:
9782         * printcmd.c (last_count): New global.
9783         (x_command): Use saved count when repeating.
9784
9785 2018-05-04  Tom Tromey  <tom@tromey.com>
9786
9787         * nto-procfs.c (do_closedir_cleanup): Remove.
9788         (procfs_pidlist): Use gdb_dir_up.
9789         * procfs.c (do_closedir_cleanup): Remove.
9790         (proc_update_threads): Use gdb_dir_up.
9791         * common/filestuff.h (struct gdb_dir_deleter): New.
9792         (gdb_dir_up): New typedef.
9793
9794 2018-05-04  Tom Tromey  <tom@tromey.com>
9795
9796         * ada-lang.c (print_mention_exception): Use std::string.
9797
9798 2018-05-04  Tom Tromey  <tom@tromey.com>
9799
9800         * ada-lang.c (create_excep_cond_exprs): Update.
9801         (ada_exception_catchpoint_cond_string): Use std::string.
9802
9803 2018-05-04  Tom Tromey  <tom@tromey.com>
9804
9805         * ada-lang.c (xget_renaming_scope): Return std::string.
9806         (old_renaming_is_invisible): Update.
9807
9808 2018-05-04  Tom Tromey  <tom@tromey.com>
9809
9810         * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
9811         (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
9812
9813 2018-05-04  Ulrich Weigand  <uweigand@de.ibm.com>
9814
9815         * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
9816
9817 2018-05-04  Tom Tromey  <tom@tromey.com>
9818
9819         * remote.c (remote_query_supported_append): Change type.
9820         (remote_check_symbols): Update.
9821
9822 2018-05-04  Paul Pluzhnikov  <ppluzhnikov@google.com>
9823
9824         PR gdb/11420
9825         * configure.ac: Prepend libpython.
9826         * python/python-config.py: Likewise.
9827         * configure: Regenerate.
9828
9829 2018-05-03  Simon Marchi  <simon.marchi@ericsson.com>
9830
9831         * Makefile.in (%.c: %.l): Use -t instead of --stdout.
9832
9833 2018-05-03  Pedro Alves  <palves@redhat.com>
9834
9835         * s390-linux-nat.c
9836         (s390_linux_nat_target::have_continuable_watchpoint): Mark with
9837         override.  Write 'true' instead of '1'.
9838         (s390_linux_nat_target::watchpoint_addr_within_range): Remove
9839         declaration.
9840
9841 2018-05-02  Pedro Alves  <palves@redhat.com>
9842
9843         * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
9844         add_inf_child_target.
9845         * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
9846         add_inf_child_target.
9847         * aix-thread.c (aix_thread_target_info): New.
9848         (aix_thread_target) <shortname, longname, doc>: Delete.
9849         <info>: New.
9850         * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
9851         add_inf_child_target.
9852         * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
9853         add_inf_child_target.
9854         * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
9855         add_inf_child_target.
9856         * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
9857         add_inf_child_target.
9858         * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
9859         add_inf_child_target.
9860         * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
9861         add_inf_child_target.
9862         * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
9863         add_inf_child_target.
9864         * arm-linux-nat.c (_initialize_arm_linux_nat): Use
9865         add_inf_child_target.
9866         * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
9867         add_inf_child_target.
9868         * bfd-target.c (target_bfd_target_info): New.
9869         (target_bfd) <shortname, longname, doc>: Delete.
9870         <info>: New.
9871         * bsd-kvm.c (bsd_kvm_target_info): New.
9872         (bsd_kvm_target) <shortname, longname, doc>: Delete.
9873         <info>: New.
9874         (bsd_kvm_target::open): Rename to ...
9875         (bsd_kvm_target_open): ... this.  Adjust.
9876         * bsd-uthread.c (bsd_uthread_target_info): New.
9877         (bsd_uthread_target) <shortname, longname, doc>: Delete.
9878         <info>: New.
9879         * corefile.c (core_file_command): Adjust.
9880         * corelow.c (core_target_info): New.
9881         (core_target) <shortname, longname, doc>: Delete.
9882         <info>: New.
9883         (core_target::open): Rename to ...
9884         (core_target_open): ... this.  Adjust.
9885         * ctf.c (ctf_target_info): New.
9886         (ctf_target) <shortname, longname, doc>: Delete.
9887         <info>: New.
9888         (ctf_target::open): Rename to ...
9889         (ctf_target_open): ... this.
9890         (_initialize_ctf): Adjust.
9891         * exec.c (exec_target_info): New.
9892         (exec_target) <shortname, longname, doc>: Delete.
9893         <info>: New.
9894         (exec_target::open): Rename to ...
9895         (exec_target_open): ... this.
9896         * gdbcore.h (core_target_open): Declare.
9897         * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
9898         * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
9899         add_inf_child_target.
9900         * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
9901         add_inf_child_target.
9902         * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
9903         add_inf_child_target.
9904         * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
9905         add_inf_child_target.
9906         * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
9907         add_inf_child_target.
9908         * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
9909         add_inf_child_target.
9910         * i386-linux-nat.c (_initialize_i386_linux_nat): Use
9911         add_inf_child_target.
9912         * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
9913         add_inf_child_target.
9914         * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
9915         add_inf_child_target.
9916         * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
9917         add_inf_child_target.
9918         * inf-child.c (inf_child_target_info): New.
9919         (inf_child_target::info): New.
9920         (inf_child_open_target): Remove 'target' parameter.  Use
9921         get_native_target instead.
9922         (inf_child_target::open): Delete.
9923         (add_inf_child_target): New.
9924         * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
9925         Delete.
9926         <info>: New.
9927         (add_inf_child_target): Declare.
9928         (inf_child_open_target): Declare.
9929         * linux-thread-db.c (thread_db_target_info): New.
9930         (thread_db_target) <shortname, longname, doc>: Delete.
9931         <info>: New.
9932         * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
9933         add_inf_child_target.
9934         * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
9935         add_inf_child_target.
9936         * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
9937         add_inf_child_target.
9938         * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
9939         add_inf_child_target.
9940         * make-target-delegates (print_class): Adjust.
9941         * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
9942         add_inf_child_target.
9943         * mips-linux-nat.c (_initialize_mips_linux_nat): Use
9944         add_inf_child_target.
9945         * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
9946         add_inf_child_target.
9947         * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
9948         add_inf_child_target.
9949         * nto-procfs.c (nto_native_target_info): New.
9950         (nto_procfs_target_native) <shortname, longname, doc>:
9951         Delete.
9952         <info>: New.
9953         (nto_procfs_target_info): New.
9954         (nto_procfs_target_procfs) <shortname, longname, doc>:
9955         Delete.
9956         <info>: New.
9957         (init_procfs_targets): Adjust.
9958         * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
9959         add_inf_child_target.
9960         * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
9961         add_inf_child_target.
9962         * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
9963         add_inf_child_target.
9964         * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
9965         add_inf_child_target.
9966         * ravenscar-thread.c (ravenscar_target_info): New.
9967         (ravenscar_thread_target) <shortname, longname, doc>:
9968         Delete.
9969         <info>: New.
9970         * record-btrace.c (record_btrace_target_info):
9971         (record_btrace_target) <shortname, longname, doc>: Delete.
9972         <info>: New.
9973         (record_btrace_target::open): Rename to ...
9974         (record_btrace_target_open): ... this.  Adjust.
9975         * record-full.c (record_longname, record_doc): New.
9976         (record_full_base_target) <shortname, longname, doc>: Delete.
9977         <info>: New.
9978         (record_full_target_info): New.
9979         (record_full_target): <shortname>: Delete.
9980         <info>: New.
9981         (record_full_core_open_1, record_full_open_1): Update comments.
9982         (record_full_base_target::open): Rename to ...
9983         (record_full_open): ... this.
9984         (cmd_record_full_restore): Update.
9985         (_initialize_record_full): Update.
9986         * remote-sim.c (remote_sim_target_info): New.
9987         (gdbsim_target) <shortname, longname, doc>: Delete.
9988         <info>: New.
9989         (gdbsim_target::open): Rename to ...
9990         (gdbsim_target_open): ... this.
9991         (_initialize_remote_sim): Adjust.
9992         * remote.c (remote_doc): New.
9993         (remote_target_info): New.
9994         (remote_target) <shortname, longname, doc>: Delete.
9995         <info>: New.
9996         (extended_remote_target_info): New.
9997         (extended_remote_target) <shortname, longname, doc>: Delete.
9998         <info>: New.
9999         (remote_target::open_1): Make static.  Adjust.
10000         * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
10001         * s390-linux-nat.c (_initialize_s390_nat): Use
10002         add_inf_child_target.
10003         * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
10004         add_inf_child_target.
10005         * sol-thread.c (thread_db_target_info): New.
10006         (sol_thread_target) <shortname, longname, doc>: Delete.
10007         <info>: New.
10008         * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
10009         add_inf_child_target.
10010         * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
10011         add_inf_child_target.
10012         * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
10013         add_inf_child_target.
10014         * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
10015         add_inf_child_target.
10016         * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
10017         add_inf_child_target.
10018         * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
10019         add_inf_child_target.
10020         * spu-linux-nat.c (_initialize_spu_nat): Use
10021         add_inf_child_target.
10022         * spu-multiarch.c (spu_multiarch_target_info): New.
10023         (spu_multiarch_target) <shortname, longname, doc>: Delete.
10024         <info>: New.
10025         * target-delegates.c: Regenerate.
10026         * target.c: Include <unordered_map>.
10027         (target_ops_p): Delete.
10028         (DEF_VEC_P(target_ops_p)): Delete.
10029         (target_factories): New.
10030         (test_target_info): New.
10031         (test_target_ops::info): New.
10032         (open_target): Adjust to use target_factories.
10033         (add_target_with_completer): Rename to ...
10034         (add_target): ... this.  Change prototype.  Register target_info
10035         and open callback in target_factories.  Register target_info in
10036         command context instead of target_ops.
10037         (add_target): Delete old implementation.
10038         (add_deprecated_target_alias): Change prototype.  Adjust.
10039         (the_native_target): New.
10040         (set_native_target, get_native_target): New.
10041         (find_default_run_target): Use the_native_target.
10042         (find_attach_target, find_run_target): Simplify.
10043         (target_ops::open): Delete.
10044         (dummy_target_info): New.
10045         (dummy_target::shortname, dummy_target::longname)
10046         (dummy_target::doc): Delete.
10047         (dummy_target::info): New.
10048         (debug_target::shortname, debug_target::longname)
10049         (debug_target::doc): Delete.
10050         (debug_target::info): New.
10051         * target.h (struct target_info): New.
10052         (target_ops::~target_ops): Add comment.
10053         (target_ops::info): New.
10054         (target_ops::shortname, target_ops::longname, target_ops::doc): No
10055         longer virtual.  Implement in terms of target_info.
10056         (set_native_target, get_native_target): Declare.
10057         (target_open_ftype): New.
10058         (add_target, add_target_with_completer)
10059         (add_deprecated_target_alias): Change prototype.
10060         (test_target) <shortname, longname, doc>: Delete.
10061         <info>: New.
10062         * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
10063         add_inf_child_target.
10064         * tracefile-tfile.c (tfile_target_info): New.
10065         (tfile_target) <shortname, longname, doc>: Delete.
10066         <info>: New.
10067         (tfile_target::open): Rename to ...
10068         (tfile_target_open): ... this.
10069         (_initialize_tracefile_tfile): Adjust.
10070         * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
10071         add_inf_child_target.
10072         * windows-nat.c (_initialize_windows_nat): Use
10073         add_inf_child_target.
10074         * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
10075         add_inf_child_target.
10076
10077 2018-05-02  Pedro Alves  <palves@redhat.com>
10078
10079         * linux-nat.h (linux_nat_target) <low_new_thread,
10080         low_delete_thread, low_new_fork, low_forget_process,
10081         low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
10082         New virtual methods.
10083         (linux_nat_set_new_thread, linux_nat_set_delete_thread)
10084         (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
10085         (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
10086         (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
10087         (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
10088         Delete.
10089         * linux-fork.c (delete_fork): Adjust to call low method.
10090         * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
10091         (linux_nat_new_fork, linux_nat_forget_process_hook)
10092         (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
10093         (linux_nat_status_is_event):
10094         (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
10095         (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
10096         to call low method.
10097         (sigtrap_is_event): Rename to ...
10098         (linux_nat_target::low_status_is_event): ... this.
10099         (linux_nat_set_status_is_event): Delete.
10100         (save_stop_reason, linux_nat_wait_1)
10101         (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
10102         low methods.
10103         (linux_nat_set_new_thread, linux_nat_set_delete_thread)
10104         (linux_nat_set_new_fork, linux_nat_set_forget_process)
10105         (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
10106         (linux_nat_set_prepare_to_resume): Delete.
10107         * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
10108         low virtual methods.
10109         * amd64-linux-nat.c: Likewise.
10110         * arm-linux-nat.c: Likewise.
10111         * i386-linux-nat.c: Likewise.
10112         * ia64-linux-nat.c: Likewise.
10113         * mips-linux-nat.c: Likewise.
10114         * ppc-linux-nat.c: Likewise.
10115         * s390-linux-nat.c: Likewise.
10116         * sparc64-linux-nat.c: Likewise.
10117         * x86-linux-nat.c: Likewise.
10118         * x86-linux-nat.h: Include "nat/x86-linux.h".
10119         (x86_linux_nat_target) <low_new_fork, low_forget_process,
10120         low_prepare_to_resume, low_new_thread, low_delete_thread>:
10121         Override methods.
10122
10123 2018-05-02  Pedro Alves  <palves@redhat.com>
10124
10125         * target.h (target_ops)
10126         <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
10127         stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
10128         stopped_by_watchpoint, have_continuable_watchpoint,
10129         stopped_data_address, watchpoint_addr_within_range,
10130         can_accel_watchpoint_condition, can_run, thread_alive,
10131         has_all_memory, has_memory, has_stack, has_registers,
10132         has_execution, can_async_p, is_async_p, supports_non_stop,
10133         always_non_stop_p, can_execute_reverse, supports_multi_process,
10134         supports_enable_disable_tracepoint,
10135         supports_disable_randomization, supports_string_tracing,
10136         supports_evaluation_of_breakpoint_conditions,
10137         can_run_breakpoint_commands, filesystem_is_local,
10138         can_download_tracepoint, get_trace_state_variable_value,
10139         set_trace_notes, get_tib_address, use_agent, can_use_agent,
10140         record_is_replaying, record_will_replay,
10141         augmented_libraries_svr4_read>: Adjust to return bool.
10142         * aarch64-linux-nat.c: All implementations adjusted.
10143         * aix-thread.c: All implementations adjusted.
10144         * arm-linux-nat.c: All implementations adjusted.
10145         * breakpoint.c: All implementations adjusted.
10146         * bsd-kvm.c: All implementations adjusted.
10147         * bsd-uthread.c: All implementations adjusted.
10148         * corelow.c: All implementations adjusted.
10149         * ctf.c: All implementations adjusted.
10150         * darwin-nat.c: All implementations adjusted.
10151         * darwin-nat.h: All implementations adjusted.
10152         * exec.c: All implementations adjusted.
10153         * fbsd-nat.c: All implementations adjusted.
10154         * fbsd-nat.h: All implementations adjusted.
10155         * gnu-nat.c: All implementations adjusted.
10156         * gnu-nat.h: All implementations adjusted.
10157         * go32-nat.c: All implementations adjusted.
10158         * ia64-linux-nat.c: All implementations adjusted.
10159         * inf-child.c: All implementations adjusted.
10160         * inf-child.h: All implementations adjusted.
10161         * inf-ptrace.c: All implementations adjusted.
10162         * inf-ptrace.h: All implementations adjusted.
10163         * linux-nat.c: All implementations adjusted.
10164         * linux-nat.h: All implementations adjusted.
10165         * mips-linux-nat.c: All implementations adjusted.
10166         * nto-procfs.c: All implementations adjusted.
10167         * ppc-linux-nat.c: All implementations adjusted.
10168         * procfs.c: All implementations adjusted.
10169         * ravenscar-thread.c: All implementations adjusted.
10170         * record-btrace.c: All implementations adjusted.
10171         * record-full.c: All implementations adjusted.
10172         * remote-sim.c: All implementations adjusted.
10173         * remote.c: All implementations adjusted.
10174         * s390-linux-nat.c: All implementations adjusted.
10175         * sol-thread.c: All implementations adjusted.
10176         * spu-multiarch.c: All implementations adjusted.
10177         * target-delegates.c: All implementations adjusted.
10178         * target.c: All implementations adjusted.
10179         * target.h: All implementations adjusted.
10180         * tracefile-tfile.c: All implementations adjusted.
10181         * tracefile.c: All implementations adjusted.
10182         * tracefile.h: All implementations adjusted.
10183         * windows-nat.c: All implementations adjusted.
10184         * x86-linux-nat.h: All implementations adjusted.
10185         * x86-nat.h: All implementations adjusted.
10186
10187 2018-05-02  Pedro Alves  <palves@redhat.com>
10188
10189         * make-target-delegates (scan_target_h): Don't trim lines here.
10190         Replace sequences of tabs and/or whitespace with a single
10191         whitespace.
10192         (top level, parsing methods): Trim each line before processing it
10193         here.
10194
10195 2018-05-02  Pedro Alves  <palves@redhat.com>
10196             John Baldwin  <jhb@freebsd.org>
10197
10198         * target.h (enum strata) <debug_stratum>: New.
10199         (struct target_ops) <all delegation methods>: Replace by C++
10200         virtual methods, and drop "to_" prefix.  All references updated
10201         throughout.
10202         <to_shortname, to_longname, to_doc, to_data,
10203         to_have_steppable_watchpoint, to_have_continuable_watchpoint,
10204         to_has_thread_control, to_attach_no_wait>: Delete, replaced by
10205         virtual methods.  All references updated throughout.
10206         <can_attach, supports_terminal_ours, can_create_inferior,
10207         get_thread_control_capabilities, attach_no_wait>: New
10208         virtual methods.
10209         <insert_breakpoint, remove_breakpoint>: Now
10210         TARGET_DEFAULT_NORETURN methods.
10211         <info_proc>: Now returns bool.
10212         <to_magic>: Delete.
10213         (OPS_MAGIC): Delete.
10214         (current_target): Delete.  All references replaced by references
10215         to ...
10216         (target_stack): ... this.  New.
10217         (target_shortname, target_longname): Adjust.
10218         (target_can_run): Now a function declaration.
10219         (default_child_has_all_memory, default_child_has_memory)
10220         (default_child_has_stack, default_child_has_registers)
10221         (default_child_has_execution): Remove target_ops parameter.
10222         (complete_target_initialization): Delete.
10223         (memory_breakpoint_target): New template class.
10224         (test_target_ops): Refactor as a C++ class with virtual methods.
10225         * make-target-delegates (NAME_PART): Tighten.
10226         (POINTER_PART, CP_SYMBOL): New.
10227         (SIMPLE_RETURN_PART): Reimplement.
10228         (VEC_RETURN_PART): Expect less.
10229         (RETURN_PART, VIRTUAL_PART): New.
10230         (METHOD): Adjust to C++ virtual methods.
10231         (scan_target_h): Remove reference to C99.
10232         (dname): Output "target_ops::" prefix.
10233         (write_function_header): Adjust to output a C++ class method.
10234         (write_declaration): New.
10235         (write_delegator): Adjust to output a C++ class method.
10236         (tdname): Output "dummy_target::" prefix.
10237         (write_tdefault, write_debugmethod): Adjust to output a C++ class
10238         method.
10239         (tdefault_names, debug_names): Delete.
10240         (return_types, tdefaults, styles, argtypes_array): New.
10241         (top level): All methods are delegators.
10242         (print_class): New.
10243         (top level): Print dummy_target and debug_target classes.
10244         * target-delegates.c: Regenerate.
10245         * target-debug.h (target_debug_print_enum_info_proc_what)
10246         (target_debug_print_thread_control_capabilities)
10247         (target_debug_print_thread_info_p): New.
10248         * target.c (dummy_target): Delete.
10249         (the_dummy_target, the_debug_target): New.
10250         (target_stack): Now extern.
10251         (set_targetdebug): Push/unpush debug target.
10252         (default_child_has_all_memory, default_child_has_memory)
10253         (default_child_has_stack, default_child_has_registers)
10254         (default_child_has_execution): Remove target_ops parameter.
10255         (complete_target_initialization): Delete.
10256         (add_target_with_completer): No longer call
10257         complete_target_initialization.
10258         (target_supports_terminal_ours): Use regular delegation.
10259         (update_current_target): Delete.
10260         (push_target): No longer check magic number.  Don't call
10261         update_current_target.
10262         (unpush_target): Don't call update_current_target.
10263         (target_is_pushed): No longer check magic number.
10264         (target_require_runnable): Skip for all stratums over
10265         process_stratum.
10266         (target_ops::info_proc): New.
10267         (target_info_proc): Use find_target_at and
10268         find_default_run_target.
10269         (target_supports_disable_randomization): Use regular delegation.
10270         (target_get_osdata): Use find_target_at.
10271         (target_ops::open, target_ops::close, target_ops::can_attach)
10272         (target_ops::attach, target_ops::can_create_inferior)
10273         (target_ops::create_inferior, target_ops::can_run)
10274         (target_can_run): New.
10275         (default_fileio_target): Use regular delegation.
10276         (target_ops::fileio_open, target_ops::fileio_pwrite)
10277         (target_ops::fileio_pread, target_ops::fileio_fstat)
10278         (target_ops::fileio_close, target_ops::fileio_unlink)
10279         (target_ops::fileio_readlink): New.
10280         (target_fileio_open_1, target_fileio_unlink)
10281         (target_fileio_readlink): Always call the target method.  Handle
10282         FILEIO_ENOSYS.
10283         (return_zero, return_zero_has_execution): Delete.
10284         (init_dummy_target): Delete.
10285         (dummy_target::dummy_target, dummy_target::shortname)
10286         (dummy_target::longname, dummy_target::doc)
10287         (debug_target::debug_target, debug_target::shortname)
10288         (debug_target::longname, debug_target::doc): New.
10289         (target_supports_delete_record): Use regular delegation.
10290         (setup_target_debug): Delete.
10291         (maintenance_print_target_stack): Skip debug_stratum.
10292         (initialize_targets): Instantiate the_dummy_target and
10293         the_debug_target.
10294         * auxv.c (target_auxv_parse): Remove 'ops' parameter.  Adjust to
10295         use target_stack.
10296         (target_auxv_search, fprint_target_auxv): Adjust.
10297         (info_auxv_command): Adjust to use target_stack.
10298         * auxv.h (target_auxv_parse): Remove 'ops' parameter.
10299         * exceptions.c (print_flush): Handle a NULL target_stack.
10300         * regcache.c (target_ops_no_register): Refactor as class with
10301         virtual methods.
10302
10303         * exec.c (exec_target): New class.
10304         (exec_ops): Now an exec_target.
10305         (exec_open, exec_close_1, exec_get_section_table)
10306         (exec_xfer_partial, exec_files_info, exec_has_memory)
10307         (exec_make_note_section): Refactor as exec_target methods.
10308         (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
10309         Delete.
10310         (exec_target::find_memory_regions): New.
10311         (_initialize_exec): Don't call init_exec_ops.
10312         * gdbcore.h (exec_file_clear): Delete.
10313
10314         * corefile.c (core_target): Delete.
10315         (core_file_command): Adjust.
10316         * corelow.c (core_target): New class.
10317         (the_core_target): New.
10318         (core_close): Remove target_ops parameter.
10319         (core_close_cleanup): Adjust.
10320         (core_target::close): New.
10321         (core_open, core_detach, get_core_registers, core_files_info)
10322         (core_xfer_partial, core_thread_alive, core_read_description)
10323         (core_pid_to_str, core_thread_name, core_has_memory)
10324         (core_has_stack, core_has_registers, core_info_proc): Rework as
10325         core_target methods.
10326         (ignore, core_remove_breakpoint, init_core_ops): Delete.
10327         (_initialize_corelow): Initialize the_core_target.
10328         * gdbcore.h (core_target): Delete.
10329         (the_core_target): New.
10330
10331         * ctf.c: (ctf_target): New class.
10332         (ctf_ops): Now a ctf_target.
10333         (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
10334         (ctf_xfer_partial, ctf_get_trace_state_variable_value)
10335         (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
10336         methods.
10337         (init_ctf_ops): Delete.
10338         (_initialize_ctf): Don't call it.
10339         * tracefile-tfile.c (tfile_target): New class.
10340         (tfile_ops): Now a tfile_target.
10341         (tfile_open, tfile_close, tfile_files_info)
10342         (tfile_get_tracepoint_status, tfile_trace_find)
10343         (tfile_fetch_registers, tfile_xfer_partial)
10344         (tfile_get_trace_state_variable_value, tfile_traceframe_info):
10345         Refactor as tfile_target methods.
10346         (tfile_xfer_partial_features): Remove target_ops parameter.
10347         (init_tfile_ops): Delete.
10348         (_initialize_tracefile_tfile): Don't call it.
10349         * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
10350         (tracefile_has_stack, tracefile_has_registers)
10351         (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
10352         tracefile_target methods.
10353         (init_tracefile_ops): Delete.
10354         (tracefile_target::tracefile_target): New.
10355         * tracefile.h: Include "target.h".
10356         (tracefile_target): New class.
10357         (init_tracefile_ops): Delete.
10358
10359         * spu-multiarch.c (spu_multiarch_target): New class.
10360         (spu_ops): Now a spu_multiarch_target.
10361         (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
10362         (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
10363         (spu_search_memory, spu_mourn_inferior): Refactor as
10364         spu_multiarch_target methods.
10365         (init_spu_ops): Delete.
10366         (_initialize_spu_multiarch): Remove references to init_spu_ops,
10367         complete_target_initialization.
10368
10369         * ravenscar-thread.c (ravenscar_thread_target): New class.
10370         (ravenscar_ops): Now a ravenscar_thread_target.
10371         (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
10372         (ravenscar_thread_alive, ravenscar_pid_to_str)
10373         (ravenscar_fetch_registers, ravenscar_store_registers)
10374         (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
10375         (ravenscar_stopped_by_hw_breakpoint)
10376         (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
10377         (ravenscar_mourn_inferior, ravenscar_core_of_thread)
10378         (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
10379         methods.
10380         (init_ravenscar_thread_ops): Delete.
10381         (_initialize_ravenscar): Remove references to
10382         init_ravenscar_thread_ops and complete_target_initialization.
10383
10384         * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
10385         (bsd_uthread_target): New class.
10386         (bsd_uthread_ops): Now a bsd_uthread_target.
10387         (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
10388         (bsd_uthread_close, bsd_uthread_mourn_inferior)
10389         (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
10390         (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
10391         (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
10392         (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
10393         (bsd_uthread_target): Delete function.
10394         (_initialize_bsd_uthread): Remove reference to
10395         complete_target_initialization.
10396
10397         * bfd-target.c (target_bfd_data): Delete.  Fields folded into ...
10398         (target_bfd): ... this new class.
10399         (target_bfd_xfer_partial, target_bfd_get_section_table)
10400         (target_bfd_close): Refactor as target_bfd methods.
10401         (target_bfd::~target_bfd): New.
10402         (target_bfd_reopen): Adjust.
10403         (target_bfd::close): New.
10404
10405         * record-btrace.c (record_btrace_target): New class.
10406         (record_btrace_ops): Now a record_btrace_target.
10407         (record_btrace_open, record_btrace_stop_recording)
10408         (record_btrace_disconnect, record_btrace_close)
10409         (record_btrace_async, record_btrace_info)
10410         (record_btrace_insn_history, record_btrace_insn_history_range)
10411         (record_btrace_insn_history_from, record_btrace_call_history)
10412         (record_btrace_call_history_range)
10413         (record_btrace_call_history_from, record_btrace_record_method)
10414         (record_btrace_is_replaying, record_btrace_will_replay)
10415         (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
10416         (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
10417         (record_btrace_store_registers, record_btrace_prepare_to_store)
10418         (record_btrace_to_get_unwinder)
10419         (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
10420         (record_btrace_commit_resume, record_btrace_wait)
10421         (record_btrace_stop, record_btrace_can_execute_reverse)
10422         (record_btrace_stopped_by_sw_breakpoint)
10423         (record_btrace_supports_stopped_by_sw_breakpoint)
10424         (record_btrace_stopped_by_hw_breakpoint)
10425         (record_btrace_supports_stopped_by_hw_breakpoint)
10426         (record_btrace_update_thread_list, record_btrace_thread_alive)
10427         (record_btrace_goto_begin, record_btrace_goto_end)
10428         (record_btrace_goto, record_btrace_stop_replaying_all)
10429         (record_btrace_execution_direction)
10430         (record_btrace_prepare_to_generate_core)
10431         (record_btrace_done_generating_core): Refactor as
10432         record_btrace_target methods.
10433         (init_record_btrace_ops): Delete.
10434         (_initialize_record_btrace): Remove reference to
10435         init_record_btrace_ops.
10436         * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
10437         the execution_direction global.
10438         (record_full_base_target, record_full_target)
10439         (record_full_core_target): New classes.
10440         (record_full_ops): Now a record_full_target.
10441         (record_full_core_ops): Now a record_full_core_target.
10442         (record_full_target::detach, record_full_target::disconnect)
10443         (record_full_core_target::disconnect)
10444         (record_full_target::mourn_inferior, record_full_target::kill):
10445         New.
10446         (record_full_open, record_full_close, record_full_async): Refactor
10447         as methods of the record_full_base_target class.
10448         (record_full_resume, record_full_commit_resume): Refactor
10449         as methods of the record_full_target class.
10450         (record_full_wait, record_full_stopped_by_watchpoint)
10451         (record_full_stopped_data_address)
10452         (record_full_stopped_by_sw_breakpoint)
10453         (record_full_supports_stopped_by_sw_breakpoint)
10454         (record_full_stopped_by_hw_breakpoint)
10455         (record_full_supports_stopped_by_hw_breakpoint): Refactor as
10456         methods of the record_full_base_target class.
10457         (record_full_store_registers, record_full_xfer_partial)
10458         (record_full_insert_breakpoint, record_full_remove_breakpoint):
10459         Refactor as methods of the record_full_target class.
10460         (record_full_can_execute_reverse, record_full_get_bookmark)
10461         (record_full_goto_bookmark, record_full_execution_direction)
10462         (record_full_record_method, record_full_info, record_full_delete)
10463         (record_full_is_replaying, record_full_will_replay)
10464         (record_full_goto_begin, record_full_goto_end, record_full_goto)
10465         (record_full_stop_replaying): Refactor as methods of the
10466         record_full_base_target class.
10467         (record_full_core_resume, record_full_core_kill)
10468         (record_full_core_fetch_registers)
10469         (record_full_core_prepare_to_store)
10470         (record_full_core_store_registers, record_full_core_xfer_partial)
10471         (record_full_core_insert_breakpoint)
10472         (record_full_core_remove_breakpoint)
10473         (record_full_core_has_execution): Refactor
10474         as methods of the record_full_core_target class.
10475         (record_full_base_target::supports_delete_record): New.
10476         (init_record_full_ops): Delete.
10477         (init_record_full_core_ops): Delete.
10478         (record_full_save): Refactor as method of the
10479         record_full_base_target class.
10480         (_initialize_record_full): Remove references to
10481         init_record_full_ops and init_record_full_core_ops.
10482
10483         * remote.c (remote_target, extended_remote_target): New classes.
10484         (remote_ops): Now a remote_target.
10485         (extended_remote_ops): Now an extended_remote_target.
10486         (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
10487         (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
10488         (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
10489         (remote_pass_signals, remote_set_syscall_catchpoint)
10490         (remote_program_signals, )
10491         (remote_thread_always_alive): Remove target_ops parameter.
10492         (remote_thread_alive, remote_thread_name)
10493         (remote_update_thread_list, remote_threads_extra_info)
10494         (remote_static_tracepoint_marker_at)
10495         (remote_static_tracepoint_markers_by_strid)
10496         (remote_get_ada_task_ptid, remote_close, remote_start_remote)
10497         (remote_open): Refactor as methods of remote_target.
10498         (extended_remote_open, extended_remote_detach)
10499         (extended_remote_attach, extended_remote_post_attach):
10500         (extended_remote_supports_disable_randomization)
10501         (extended_remote_create_inferior): : Refactor as method of
10502         extended_remote_target.
10503         (remote_set_permissions, remote_open_1, remote_detach)
10504         (remote_follow_fork, remote_follow_exec, remote_disconnect)
10505         (remote_resume, remote_commit_resume, remote_stop)
10506         (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
10507         (remote_terminal_ours, remote_wait, remote_fetch_registers)
10508         (remote_prepare_to_store, remote_store_registers)
10509         (remote_flash_erase, remote_flash_done, remote_files_info)
10510         (remote_kill, remote_mourn, remote_insert_breakpoint)
10511         (remote_remove_breakpoint, remote_insert_watchpoint)
10512         (remote_watchpoint_addr_within_range)
10513         (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
10514         (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
10515         (remote_supports_stopped_by_sw_breakpoint)
10516         (remote_stopped_by_hw_breakpoint)
10517         (remote_supports_stopped_by_hw_breakpoint)
10518         (remote_stopped_by_watchpoint, remote_stopped_data_address)
10519         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
10520         (remote_verify_memory): Refactor as methods of remote_target.
10521         (remote_write_qxfer, remote_read_qxfer): Remove target_ops
10522         parameter.
10523         (remote_xfer_partial, remote_get_memory_xfer_limit)
10524         (remote_search_memory, remote_rcmd, remote_memory_map)
10525         (remote_pid_to_str, remote_get_thread_local_address)
10526         (remote_get_tib_address, remote_read_description): Refactor as
10527         methods of remote_target.
10528         (remote_target::fileio_open, remote_target::fileio_pwrite)
10529         (remote_target::fileio_pread, remote_target::fileio_close): New.
10530         (remote_hostio_readlink, remote_hostio_fstat)
10531         (remote_filesystem_is_local, remote_can_execute_reverse)
10532         (remote_supports_non_stop, remote_supports_disable_randomization)
10533         (remote_supports_multi_process, remote_supports_cond_breakpoints)
10534         (remote_supports_enable_disable_tracepoint)
10535         (remote_supports_string_tracing)
10536         (remote_can_run_breakpoint_commands, remote_trace_init)
10537         (remote_download_tracepoint, remote_can_download_tracepoint)
10538         (remote_download_trace_state_variable, remote_enable_tracepoint)
10539         (remote_disable_tracepoint, remote_trace_set_readonly_regions)
10540         (remote_trace_start, remote_get_trace_status)
10541         (remote_get_tracepoint_status, remote_trace_stop)
10542         (remote_trace_find, remote_get_trace_state_variable_value)
10543         (remote_save_trace_data, remote_get_raw_trace_data)
10544         (remote_set_disconnected_tracing, remote_core_of_thread)
10545         (remote_set_circular_trace_buffer, remote_traceframe_info)
10546         (remote_get_min_fast_tracepoint_insn_len)
10547         (remote_set_trace_buffer_size, remote_set_trace_notes)
10548         (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
10549         (remote_disable_btrace, remote_teardown_btrace)
10550         (remote_read_btrace, remote_btrace_conf)
10551         (remote_augmented_libraries_svr4_read, remote_load)
10552         (remote_pid_to_exec_file, remote_can_do_single_step)
10553         (remote_execution_direction, remote_thread_handle_to_thread_info):
10554         Refactor as methods of remote_target.
10555         (init_remote_ops, init_extended_remote_ops): Delete.
10556         (remote_can_async_p, remote_is_async_p, remote_async)
10557         (remote_thread_events, remote_upload_tracepoints)
10558         (remote_upload_trace_state_variables): Refactor as methods of
10559         remote_target.
10560         (_initialize_remote): Remove references to init_remote_ops and
10561         init_extended_remote_ops.
10562
10563         * remote-sim.c (gdbsim_target): New class.
10564         (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
10565         (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
10566         (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
10567         (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
10568         (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
10569         (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
10570         Refactor as methods of gdbsim_target.
10571         (gdbsim_ops): Now a gdbsim_target.
10572         (init_gdbsim_ops): Delete.
10573         (gdbsim_cntrl_c): Adjust.
10574         (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
10575
10576         * amd64-linux-nat.c (amd64_linux_nat_target): New class.
10577         (the_amd64_linux_nat_target): New.
10578         (amd64_linux_fetch_inferior_registers)
10579         (amd64_linux_store_inferior_registers): Refactor as methods of
10580         amd64_linux_nat_target.
10581         (_initialize_amd64_linux_nat): Adjust.  Set linux_target.
10582         * i386-linux-nat.c: Don't include "linux-nat.h".
10583         (i386_linux_nat_target): New class.
10584         (the_i386_linux_nat_target): New.
10585         (i386_linux_fetch_inferior_registers)
10586         (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
10587         as methods of i386_linux_nat_target.
10588         (_initialize_i386_linux_nat): Adjust.  Set linux_target.
10589         * inf-child.c (inf_child_ops): Delete.
10590         (inf_child_fetch_inferior_registers)
10591         (inf_child_store_inferior_registers): Delete.
10592         (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
10593         methods of inf_child_target.
10594         (inf_child_target::supports_terminal_ours)
10595         (inf_child_target::terminal_init)
10596         (inf_child_target::terminal_inferior)
10597         (inf_child_target::terminal_ours_for_output)
10598         (inf_child_target::terminal_ours, inf_child_target::interrupt)
10599         (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
10600         New.
10601         (inf_child_open, inf_child_disconnect, inf_child_close)
10602         (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
10603         (inf_child_post_startup_inferior, inf_child_can_run)
10604         (inf_child_pid_to_exec_file): Refactor as methods of
10605         inf_child_target.
10606         (inf_child_follow_fork): Delete.
10607         (inf_child_target::can_create_inferior)
10608         (inf_child_target::can_attach): New.
10609         (inf_child_target::has_all_memory, inf_child_target::has_memory)
10610         (inf_child_target::has_stack, inf_child_target::has_registers)
10611         (inf_child_target::has_execution): New.
10612         (inf_child_fileio_open, inf_child_fileio_pwrite)
10613         (inf_child_fileio_pread, inf_child_fileio_fstat)
10614         (inf_child_fileio_close, inf_child_fileio_unlink)
10615         (inf_child_fileio_readlink, inf_child_use_agent)
10616         (inf_child_can_use_agent): Refactor as methods of
10617         inf_child_target.
10618         (return_zero, inf_child_target): Delete.
10619         (inf_child_target::inf_child_target): New.
10620         * inf-child.h: Include "target.h".
10621         (inf_child_target): Delete function prototype.
10622         (inf_child_target): New class.
10623         (inf_child_open_target, inf_child_mourn_inferior)
10624         (inf_child_maybe_unpush_target): Delete.
10625         * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
10626         (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
10627         (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
10628         (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
10629         (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
10630         (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
10631         (inf_ptrace_wait, inf_ptrace_xfer_partial)
10632         (inf_ptrace_thread_alive, inf_ptrace_files_info)
10633         (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
10634         methods of inf_ptrace_target.
10635         (inf_ptrace_target): Delete function.
10636         * inf-ptrace.h: Include "inf-child.h".
10637         (inf_ptrace_target): Delete function declaration.
10638         (inf_ptrace_target): New class.
10639         (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
10640         * linux-nat.c (linux_target): New.
10641         (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
10642         (linux_nat_target::~linux_nat_target): New.
10643         (linux_child_post_attach, linux_child_post_startup_inferior)
10644         (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
10645         (linux_child_remove_fork_catchpoint)
10646         (linux_child_insert_vfork_catchpoint)
10647         (linux_child_remove_vfork_catchpoint)
10648         (linux_child_insert_exec_catchpoint)
10649         (linux_child_remove_exec_catchpoint)
10650         (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
10651         (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
10652         (linux_nat_resume, linux_nat_stopped_by_watchpoint)
10653         (linux_nat_stopped_data_address)
10654         (linux_nat_stopped_by_sw_breakpoint)
10655         (linux_nat_supports_stopped_by_sw_breakpoint)
10656         (linux_nat_stopped_by_hw_breakpoint)
10657         (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
10658         (linux_nat_kill, linux_nat_mourn_inferior)
10659         (linux_nat_xfer_partial, linux_nat_thread_alive)
10660         (linux_nat_update_thread_list, linux_nat_pid_to_str)
10661         (linux_nat_thread_name, linux_child_pid_to_exec_file)
10662         (linux_child_static_tracepoint_markers_by_strid)
10663         (linux_nat_is_async_p, linux_nat_can_async_p)
10664         (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
10665         (linux_nat_supports_multi_process)
10666         (linux_nat_supports_disable_randomization, linux_nat_async)
10667         (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
10668         (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
10669         (linux_nat_fileio_open, linux_nat_fileio_readlink)
10670         (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
10671         methods of linux_nat_target.
10672         (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
10673         (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
10674         parameter.
10675         (check_stopped_by_watchpoint): Adjust.
10676         (linux_xfer_partial): Delete.
10677         (linux_target_install_ops, linux_target, linux_nat_add_target):
10678         Delete.
10679         (linux_nat_target::linux_nat_target): New.
10680         * linux-nat.h: Include "inf-ptrace.h".
10681         (linux_nat_target): New.
10682         (linux_target, linux_target_install_ops, linux_nat_add_target):
10683         Delete function declarations.
10684         (linux_target): Declare global.
10685         * linux-thread-db.c (thread_db_target): New.
10686         (thread_db_target::thread_db_target): New.
10687         (thread_db_ops): Delete.
10688         (the_thread_db_target): New.
10689         (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
10690         (thread_db_update_thread_list, thread_db_pid_to_str)
10691         (thread_db_extra_thread_info)
10692         (thread_db_thread_handle_to_thread_info)
10693         (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
10694         (thread_db_resume): Refactor as methods of thread_db_target.
10695         (init_thread_db_ops): Delete.
10696         (_initialize_thread_db): Remove reference to init_thread_db_ops.
10697         * x86-linux-nat.c: Don't include "linux-nat.h".
10698         (super_post_startup_inferior): Delete.
10699         (x86_linux_nat_target::~x86_linux_nat_target): New.
10700         (x86_linux_child_post_startup_inferior)
10701         (x86_linux_read_description, x86_linux_enable_btrace)
10702         (x86_linux_disable_btrace, x86_linux_teardown_btrace)
10703         (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
10704         methods of x86_linux_nat_target.
10705         (x86_linux_create_target): Delete.  Bits folded ...
10706         (x86_linux_add_target): ... here.  Now takes a linux_nat_target
10707         pointer.
10708         * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
10709         (x86_linux_nat_target): New class.
10710         (x86_linux_create_target): Delete.
10711         (x86_linux_add_target): Now takes a linux_nat_target pointer.
10712         * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
10713         (x86_region_ok_for_watchpoint, x86_stopped_data_address)
10714         (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
10715         (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
10716         (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
10717         make extern.
10718         (x86_use_watchpoints): Delete.
10719         * x86-nat.h: Include "breakpoint.h" and "target.h".
10720         (x86_use_watchpoints): Delete.
10721         (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
10722         (x86_stopped_by_watchpoint, x86_stopped_data_address)
10723         (x86_insert_watchpoint, x86_remove_watchpoint)
10724         (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
10725         (x86_stopped_by_hw_breakpoint): New declarations.
10726         (x86_nat_target): New template class.
10727
10728         * ppc-linux-nat.c (ppc_linux_nat_target): New class.
10729         (the_ppc_linux_nat_target): New.
10730         (ppc_linux_fetch_inferior_registers)
10731         (ppc_linux_can_use_hw_breakpoint)
10732         (ppc_linux_region_ok_for_hw_watchpoint)
10733         (ppc_linux_ranged_break_num_registers)
10734         (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
10735         (ppc_linux_insert_mask_watchpoint)
10736         (ppc_linux_remove_mask_watchpoint)
10737         (ppc_linux_can_accel_watchpoint_condition)
10738         (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
10739         (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
10740         (ppc_linux_watchpoint_addr_within_range)
10741         (ppc_linux_masked_watch_num_registers)
10742         (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
10743         (ppc_linux_read_description): Refactor as methods of
10744         ppc_linux_nat_target.
10745         (_initialize_ppc_linux_nat): Adjust.  Set linux_target.
10746
10747         * procfs.c (procfs_xfer_partial): Delete forward declaration.
10748         (procfs_target): New class.
10749         (the_procfs_target): New.
10750         (procfs_target): Delete function.
10751         (procfs_auxv_parse, procfs_attach, procfs_detach)
10752         (procfs_fetch_registers, procfs_store_registers, procfs_wait)
10753         (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
10754         (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
10755         (procfs_create_inferior, procfs_update_thread_list)
10756         (procfs_thread_alive, procfs_pid_to_str)
10757         (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
10758         (procfs_stopped_data_address, procfs_insert_watchpoint)
10759         (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
10760         (proc_find_memory_regions, procfs_info_proc)
10761         (procfs_make_note_section): Refactor as methods of procfs_target.
10762         (_initialize_procfs): Adjust.
10763         * sol-thread.c (sol_thread_target): New class.
10764         (sol_thread_ops): Now a sol_thread_target.
10765         (sol_thread_detach, sol_thread_resume, sol_thread_wait)
10766         (sol_thread_fetch_registers, sol_thread_store_registers)
10767         (sol_thread_xfer_partial, sol_thread_mourn_inferior)
10768         (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
10769         (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
10770         (init_sol_thread_ops): Delete.
10771         (_initialize_sol_thread): Adjust.  Remove references to
10772         init_sol_thread_ops and complete_target_initialization.
10773
10774         * windows-nat.c (windows_nat_target): New class.
10775         (windows_fetch_inferior_registers)
10776         (windows_store_inferior_registers, windows_resume, windows_wait)
10777         (windows_attach, windows_detach, windows_pid_to_exec_file)
10778         (windows_files_info, windows_create_inferior)
10779         (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
10780         (windows_close, windows_pid_to_str, windows_xfer_partial)
10781         (windows_get_tib_address, windows_get_ada_task_ptid)
10782         (windows_thread_name, windows_thread_alive): Refactor as
10783         windows_nat_target methods.
10784         (do_initial_windows_stuff): Adjust.
10785         (windows_target): Delete function.
10786         (_initialize_windows_nat): Adjust.
10787
10788         * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
10789         (darwin_mourn_inferior, darwin_kill_inferior)
10790         (darwin_create_inferior, darwin_attach, darwin_detach)
10791         (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
10792         (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
10793         (darwin_supports_multi_process): Refactor as darwin_nat_target
10794         methods.
10795         (darwin_resume_to, darwin_files_info): Delete.
10796         (_initialize_darwin_inferior): Rename to ...
10797         (_initialize_darwin_nat): ... this.  Adjust to C++ification.
10798         * darwin-nat.h: Include "inf-child.h".
10799         (darwin_nat_target): New class.
10800         (darwin_complete_target): Delete.
10801         * i386-darwin-nat.c (i386_darwin_nat_target): New class.
10802         (darwin_target): New.
10803         (i386_darwin_fetch_inferior_registers)
10804         (i386_darwin_store_inferior_registers): Refactor as methods of
10805         darwin_nat_target.
10806         (darwin_complete_target): Delete, with ...
10807         (_initialize_i386_darwin_nat): ... bits factored out here.
10808
10809         * alpha-linux-nat.c (alpha_linux_nat_target): New class.
10810         (the_alpha_linux_nat_target): New.
10811         (alpha_linux_register_u_offset): Refactor as
10812         alpha_linux_nat_target method.
10813         (_initialize_alpha_linux_nat): Adjust.
10814         * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
10815         (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
10816         (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
10817         methods of linux_nat_trad_target.
10818         (linux_trad_target): Delete.
10819         * linux-nat-trad.h (linux_trad_target): Delete function.
10820         (linux_nat_trad_target): New class.
10821         * mips-linux-nat.c (mips_linux_nat_target): New class.
10822         (super_fetch_registers, super_store_registers, super_close):
10823         Delete.
10824         (the_mips_linux_nat_target): New.
10825         (mips64_linux_regsets_fetch_registers)
10826         (mips64_linux_regsets_store_registers)
10827         (mips64_linux_fetch_registers, mips64_linux_store_registers)
10828         (mips_linux_register_u_offset, mips_linux_read_description)
10829         (mips_linux_can_use_hw_breakpoint)
10830         (mips_linux_stopped_by_watchpoint)
10831         (mips_linux_stopped_data_address)
10832         (mips_linux_region_ok_for_hw_watchpoint)
10833         (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
10834         (mips_linux_close): Refactor as methods of mips_linux_nat.
10835         (_initialize_mips_linux_nat): Adjust to C++ification.
10836
10837         * aix-thread.c (aix_thread_target): New class.
10838         (aix_thread_ops): Now an aix_thread_target.
10839         (aix_thread_detach, aix_thread_resume, aix_thread_wait)
10840         (aix_thread_fetch_registers, aix_thread_store_registers)
10841         (aix_thread_xfer_partial, aix_thread_mourn_inferior)
10842         (aix_thread_thread_alive, aix_thread_pid_to_str)
10843         (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
10844         Refactor as methods of aix_thread_target.
10845         (init_aix_thread_ops): Delete.
10846         (_initialize_aix_thread): Remove references to init_aix_thread_ops
10847         and complete_target_initialization.
10848         * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
10849         (rs6000_nat_target): New class.
10850         (the_rs6000_nat_target): New.
10851         (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
10852         (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
10853         (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
10854         (super_create_inferior): Delete.
10855         (_initialize_rs6000_nat): Adjust to C++ification.
10856
10857         * arm-linux-nat.c (arm_linux_nat_target): New class.
10858         (the_arm_linux_nat_target): New.
10859         (arm_linux_fetch_inferior_registers)
10860         (arm_linux_store_inferior_registers, arm_linux_read_description)
10861         (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
10862         (arm_linux_remove_hw_breakpoint)
10863         (arm_linux_region_ok_for_hw_watchpoint)
10864         (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
10865         (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
10866         (arm_linux_watchpoint_addr_within_range): Refactor as methods of
10867         arm_linux_nat_target.
10868         (_initialize_arm_linux_nat): Adjust to C++ification.
10869
10870         * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
10871         (the_aarch64_linux_nat_target): New.
10872         (aarch64_linux_fetch_inferior_registers)
10873         (aarch64_linux_store_inferior_registers)
10874         (aarch64_linux_child_post_startup_inferior)
10875         (aarch64_linux_read_description)
10876         (aarch64_linux_can_use_hw_breakpoint)
10877         (aarch64_linux_insert_hw_breakpoint)
10878         (aarch64_linux_remove_hw_breakpoint)
10879         (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
10880         (aarch64_linux_region_ok_for_hw_watchpoint)
10881         (aarch64_linux_stopped_data_address)
10882         (aarch64_linux_stopped_by_watchpoint)
10883         (aarch64_linux_watchpoint_addr_within_range)
10884         (aarch64_linux_can_do_single_step): Refactor as methods of
10885         aarch64_linux_nat_target.
10886         (super_post_startup_inferior): Delete.
10887         (_initialize_aarch64_linux_nat): Adjust to C++ification.
10888
10889         * hppa-linux-nat.c (hppa_linux_nat_target): New class.
10890         (the_hppa_linux_nat_target): New.
10891         (hppa_linux_fetch_inferior_registers)
10892         (hppa_linux_store_inferior_registers): Refactor as methods of
10893         hppa_linux_nat_target.
10894         (_initialize_hppa_linux_nat): Adjust to C++ification.
10895
10896         * ia64-linux-nat.c (ia64_linux_nat_target): New class.
10897         (the_ia64_linux_nat_target): New.
10898         (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
10899         (ia64_linux_stopped_data_address)
10900         (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
10901         (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
10902         ia64_linux_nat_target methods.
10903         (super_xfer_partial): Delete.
10904         (_initialize_ia64_linux_nat): Adjust to C++ification.
10905
10906         * m32r-linux-nat.c (m32r_linux_nat_target): New class.
10907         (the_m32r_linux_nat_target): New.
10908         (m32r_linux_fetch_inferior_registers)
10909         (m32r_linux_store_inferior_registers): Refactor as
10910         m32r_linux_nat_target methods.
10911         (_initialize_m32r_linux_nat): Adjust to C++ification.
10912
10913         * m68k-linux-nat.c (m68k_linux_nat_target): New class.
10914         (the_m68k_linux_nat_target): New.
10915         (m68k_linux_fetch_inferior_registers)
10916         (m68k_linux_store_inferior_registers): Refactor as
10917         m68k_linux_nat_target methods.
10918         (_initialize_m68k_linux_nat): Adjust to C++ification.
10919
10920         * s390-linux-nat.c (s390_linux_nat_target): New class.
10921         (the_s390_linux_nat_target): New.
10922         (s390_linux_fetch_inferior_registers)
10923         (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
10924         (s390_insert_watchpoint, s390_remove_watchpoint)
10925         (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
10926         (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
10927         (s390_auxv_parse, s390_read_description): Refactor as methods of
10928         s390_linux_nat_target.
10929         (_initialize_s390_nat): Adjust to C++ification.
10930
10931         * sparc-linux-nat.c (sparc_linux_nat_target): New class.
10932         (the_sparc_linux_nat_target): New.
10933         (_initialize_sparc_linux_nat): Adjust to C++ification.
10934         * sparc-nat.c (sparc_fetch_inferior_registers)
10935         (sparc_store_inferior_registers): Remove target_ops parameter.
10936         * sparc-nat.h (sparc_fetch_inferior_registers)
10937         (sparc_store_inferior_registers): Remove target_ops parameter.
10938         * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
10939         (the_sparc64_linux_nat_target): New.
10940         (_initialize_sparc64_linux_nat): Adjust to C++ification.
10941
10942         * spu-linux-nat.c (spu_linux_nat_target): New class.
10943         (the_spu_linux_nat_target): New.
10944         (spu_child_post_startup_inferior, spu_child_post_attach)
10945         (spu_child_wait, spu_fetch_inferior_registers)
10946         (spu_store_inferior_registers, spu_xfer_partial)
10947         (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
10948         methods.
10949         (_initialize_spu_nat): Adjust to C++ification.
10950
10951         * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
10952         (the_tilegx_linux_nat_target): New.
10953         (fetch_inferior_registers, store_inferior_registers):
10954         Refactor as methods.
10955         (_initialize_tile_linux_nat): Adjust to C++ification.
10956
10957         * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
10958         (the_xtensa_linux_nat_target): New.
10959         (xtensa_linux_fetch_inferior_registers)
10960         (xtensa_linux_store_inferior_registers): Refactor as
10961         xtensa_linux_nat_target methods.
10962         (_initialize_xtensa_linux_nat): Adjust to C++ification.
10963
10964         * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
10965         (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
10966         (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
10967         (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
10968         (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
10969         (fbsd_stopped_by_sw_breakpoint)
10970         (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
10971         (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
10972         (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
10973         (fbsd_post_startup_inferior, fbsd_post_attach)
10974         (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
10975         (fbsd_set_syscall_catchpoint)
10976         (super_xfer_partial, super_resume, super_wait)
10977         (fbsd_supports_stopped_by_hw_breakpoint): Delete.
10978         (fbsd_handle_debug_trap): Remove target_ops parameter.
10979         (fbsd_nat_add_target): Delete.
10980         * fbsd-nat.h: Include "inf-ptrace.h".
10981         (fbsd_nat_add_target): Delete.
10982         (USE_SIGTRAP_SIGINFO): Define.
10983         (fbsd_nat_target): New class.
10984
10985         * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
10986         (amd64bsd_store_inferior_registers): Remove target_ops parameter.
10987         (amd64bsd_target): Delete.
10988         * amd64-bsd-nat.h: New file.
10989         * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
10990         "x86-bsd-nat.h".
10991         (amd64_fbsd_nat_target): New class.
10992         (the_amd64_fbsd_nat_target): New.
10993         (amd64fbsd_read_description): Refactor as method of
10994         amd64_fbsd_nat_target.
10995         (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
10996         (_initialize_amd64fbsd_nat): Adjust to C++ification.
10997         * amd64-nat.h (amd64bsd_target): Delete function declaration.
10998         * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
10999         (i386bsd_store_inferior_registers): Remove target_ops parameter.
11000         (i386bsd_target): Delete.
11001         * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
11002         (i386bsd_fetch_inferior_registers)
11003         (i386bsd_store_inferior_registers): Declare.
11004         (i386_bsd_nat_target): New class.
11005         * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
11006         (the_i386_fbsd_nat_target): New.
11007         (i386fbsd_resume, i386fbsd_read_description): Refactor as
11008         i386_fbsd_nat_target methods.
11009         (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
11010         (_initialize_i386fbsd_nat): Adjust to C++ification.
11011         * x86-bsd-nat.c (super_mourn_inferior): Delete.
11012         (x86bsd_mourn_inferior, x86bsd_target): Delete.
11013         (_initialize_x86_bsd_nat): Adjust to C++ification.
11014         * x86-bsd-nat.h: Include "x86-nat.h".
11015         (x86bsd_target): Delete declaration.
11016         (x86bsd_nat_target): New class.
11017
11018         * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
11019         (the_aarch64_fbsd_nat_target): New.
11020         (aarch64_fbsd_fetch_inferior_registers)
11021         (aarch64_fbsd_store_inferior_registers): Refactor as methods of
11022         aarch64_fbsd_nat_target.
11023         (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
11024         * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
11025         (the_alpha_bsd_nat_target): New.
11026         (alphabsd_fetch_inferior_registers)
11027         (alphabsd_store_inferior_registers): Refactor as
11028         alpha_bsd_nat_target methods.
11029         (_initialize_alphabsd_nat): Refactor as methods of
11030         alpha_bsd_nat_target.
11031         * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
11032         (the_amd64_nbsd_nat_target): New.
11033         (_initialize_amd64nbsd_nat): Adjust to C++ification.
11034         * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
11035         (the_amd64_obsd_nat_target): New.
11036         (_initialize_amd64obsd_nat): Adjust to C++ification.
11037         * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
11038         (the_arm_fbsd_nat_target): New.
11039         (arm_fbsd_fetch_inferior_registers)
11040         (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
11041         (_initialize_arm_fbsd_nat): Refactor as methods of
11042         arm_fbsd_nat_target.
11043         (_initialize_arm_fbsd_nat): Adjust to C++ification.
11044         * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
11045         (the_arm_netbsd_nat_target): New.
11046         (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
11047         arm_netbsd_nat_target.
11048         (_initialize_arm_netbsd_nat): Adjust to C++ification.
11049         * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
11050         (the_hppa_nbsd_nat_target): New.
11051         (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
11052         hppa_nbsd_nat_target methods.
11053         (_initialize_hppanbsd_nat): Adjust to C++ification.
11054         * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
11055         (the_hppa_obsd_nat_target): New.
11056         (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
11057         methods of hppa_obsd_nat_target.
11058         (_initialize_hppaobsd_nat): Adjust to C++ification.  Use
11059         add_target.
11060         * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
11061         (_initialize_i386nbsd_nat): Adjust to C++ification.  Use
11062         add_target.
11063         * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
11064         (_initialize_i386obsd_nat): Use add_target.
11065         * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
11066         (the_m68k_bsd_nat_target): New.
11067         (m68kbsd_fetch_inferior_registers)
11068         (m68kbsd_store_inferior_registers): Refactor as methods of
11069         m68k_bsd_nat_target.
11070         (_initialize_m68kbsd_nat): Adjust to C++ification.
11071         * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
11072         (the_mips_fbsd_nat_target): New.
11073         (mips_fbsd_fetch_inferior_registers)
11074         (mips_fbsd_store_inferior_registers): Refactor as methods of
11075         mips_fbsd_nat_target.
11076         (_initialize_mips_fbsd_nat): Adjust to C++ification.  Use
11077         add_target.
11078         * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
11079         (the_mips_nbsd_nat_target): New.
11080         (mipsnbsd_fetch_inferior_registers)
11081         (mipsnbsd_store_inferior_registers): Refactor as methods of
11082         mips_nbsd_nat_target.
11083         (_initialize_mipsnbsd_nat): Adjust to C++ification.
11084         * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
11085         (the_mips64_obsd_nat_target): New.
11086         (mips64obsd_fetch_inferior_registers)
11087         (mips64obsd_store_inferior_registers): Refactor as methods of
11088         mips64_obsd_nat_target.
11089         (_initialize_mips64obsd_nat): Adjust to C++ification.  Use
11090         add_target.
11091         * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
11092         nbsd_nat_target.
11093         * nbsd-nat.h: Include "inf-ptrace.h".
11094         (nbsd_nat_target): New class.
11095         * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
11096         (obsd_wait): Refactor as methods of obsd_nat_target.
11097         (obsd_add_target): Delete.
11098         * obsd-nat.h: Include "inf-ptrace.h".
11099         (obsd_nat_target): New class.
11100         * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
11101         (the_ppc_fbsd_nat_target): New.
11102         (ppcfbsd_fetch_inferior_registers)
11103         (ppcfbsd_store_inferior_registers): Refactor as methods of
11104         ppc_fbsd_nat_target.
11105         (_initialize_ppcfbsd_nat): Adjust to C++ification.  Use
11106         add_target.
11107         * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
11108         (the_ppc_nbsd_nat_target): New.
11109         (ppcnbsd_fetch_inferior_registers)
11110         (ppcnbsd_store_inferior_registers): Refactor as methods of
11111         ppc_nbsd_nat_target.
11112         (_initialize_ppcnbsd_nat): Adjust to C++ification.
11113         * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
11114         (the_ppc_obsd_nat_target): New.
11115         (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
11116         methods of ppc_obsd_nat_target.
11117         (_initialize_ppcobsd_nat): Adjust to C++ification.  Use
11118         add_target.
11119         * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
11120         (the_sh_nbsd_nat_target): New.
11121         (shnbsd_fetch_inferior_registers)
11122         (shnbsd_store_inferior_registers): Refactor as methods of
11123         sh_nbsd_nat_target.
11124         (_initialize_shnbsd_nat): Adjust to C++ification.
11125         * sparc-nat.c (sparc_xfer_wcookie): Make extern.
11126         (inf_ptrace_xfer_partial): Delete.
11127         (sparc_xfer_partial, sparc_target): Delete.
11128         * sparc-nat.h (sparc_fetch_inferior_registers)
11129         (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
11130         (sparc_target): Delete function declaration.
11131         (sparc_target): New template class.
11132         * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
11133         (_initialize_sparcnbsd_nat): Adjust to C++ification.
11134         * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
11135         (_initialize_sparc64fbsd_nat): Adjust to C++ification.  Use
11136         add_target.
11137         * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
11138         (_initialize_sparc64nbsd_nat): Adjust to C++ification.
11139         * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
11140         (_initialize_sparc64obsd_nat): Adjust to C++ification.  Use
11141         add_target.
11142         * vax-bsd-nat.c (vax_bsd_nat_target): New class.
11143         (the_vax_bsd_nat_target): New.
11144         (vaxbsd_fetch_inferior_registers)
11145         (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
11146         methods.
11147         (_initialize_vaxbsd_nat): Adjust to C++ification.
11148
11149         * bsd-kvm.c (bsd_kvm_target): New class.
11150         (bsd_kvm_ops): Now a bsd_kvm_target.
11151         (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
11152         (bsd_kvm_files_info, bsd_kvm_fetch_registers)
11153         (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
11154         bsd_kvm_target.
11155         (bsd_kvm_return_one): Delete.
11156         (bsd_kvm_add_target): Adjust to C++ification.
11157
11158         * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
11159         (nto_procfs_target_procfs): New classes.
11160         (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
11161         (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
11162         (procfs_post_attach, procfs_wait, procfs_fetch_registers)
11163         (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
11164         (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
11165         (procfs_remove_hw_breakpoint, procfs_resume)
11166         (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
11167         (procfs_kill_inferior, procfs_store_registers)
11168         (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
11169         as methods of nto_procfs_target.
11170         (nto_procfs_ops): Now an nto_procfs_target_procfs.
11171         (nto_native_ops): Delete.
11172         (procfs_open, procfs_native_open): Delete.
11173         (nto_native_ops): Now an nto_procfs_target_native.
11174         (init_procfs_targets): Adjust to C++ification.
11175         (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
11176         (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
11177         Refactor as methods of nto_procfs_target.
11178
11179         * go32-nat.c (go32_nat_target): New class.
11180         (the_go32_nat_target): New.
11181         (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
11182         (go32_store_registers, go32_xfer_partial, go32_files_info)
11183         (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
11184         (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
11185         (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
11186         (go32_pid_to_str): Refactor as methods of go32_nat_target.
11187         (go32_target): Delete.
11188         (_initialize_go32_nat): Adjust to C++ification.
11189
11190         * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
11191         (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
11192         (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
11193         (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
11194         gnu_nat_target.
11195         (gnu_target): Delete.
11196         * gnu-nat.h (gnu_target): Delete.
11197         (gnu_nat_target): New class.
11198         * i386-gnu-nat.c (gnu_base_target): New.
11199         (i386_gnu_nat_target): New class.
11200         (the_i386_gnu_nat_target): New.
11201         (_initialize_i386gnu_nat): Adjust to C++ification.
11202
11203 2018-05-02  Pedro Alves  <palves@redhat.com>
11204
11205         * bfd-target.c (target_bfd_xclose): Rename to ...
11206         (target_bfd_close): ... this.
11207         (target_bfd_reopen): Adjust.
11208         * target.c (target_close): Remove references to to_xclose.
11209         * target.h (target_ops::to_xclose): Delete.
11210         (target_ops::to_close): Update comments.
11211
11212 2018-05-02  Pedro Alves  <palves@redhat.com>
11213
11214         * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
11215         "linux-nat.h".
11216         * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
11217         * inf-ptrace.c (inf_ptrace_register_u_offset)
11218         (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
11219         (inf_ptrace_store_register, inf_ptrace_store_registers)
11220         (inf_ptrace_trad_target): Move to ...
11221         * linux-nat-trad.c: ... this new file.
11222         * linux-nat-trad.h: New file.
11223         * linux-nat.c (linux_target_install_ops): Make extern.
11224         (linux_trad_target): Delete.
11225         * linux-nat.h (linux_trad_target): Delete declaration.
11226         (linux_target_install_ops): Declare.
11227         * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
11228         "linux-nat.h".
11229
11230 2018-05-02  Pedro Alves  <palves@redhat.com>
11231
11232         * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
11233         procfs_target/add_target here.
11234         * procfs.c (procfs_target): Make static.
11235         (_initialize_procfs): Call add_target here.
11236         * procfs.h (struct target_ops): Remove forward declaration.
11237         (procfs_target): Remove declaration.
11238         * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
11239
11240 2018-05-02  Pedro Alves  <palves@redhat.com>
11241
11242         * procfs.c (procfs_stopped_by_watchpoint)
11243         (procfs_insert_watchpoint, procfs_remove_watchpoint)
11244         (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
11245         Forward declare.
11246         (procfs_use_watchpoints): Delete, move contents...
11247         (procfs_target): ... here.
11248         * procfs.h (procfs_use_watchpoints): Delete declaration.
11249         * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
11250         procfs_use_watchpoints.
11251         * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
11252         procfs_use_watchpoints.
11253
11254 2018-05-02  Tom Tromey  <tom@tromey.com>
11255
11256         PR python/20084:
11257         * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
11258         and var_zuinteger_unlimited.
11259         * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
11260         and PARAM_ZUINTEGER_UNLIMITED.
11261         (set_parameter_value): Handle var_zuinteger and
11262         var_zuinteger_unlimited.
11263         (add_setshow_generic): Likewise.
11264         (parmpy_init): Likewise.
11265
11266 2018-04-28  Dan Robertson  <danlrobertson89@gmail.com>
11267
11268         PR rust/23124
11269         * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
11270         pointer is not null before dereferencing it.
11271
11272 2018-04-30  Tom Tromey  <tom@tromey.com>
11273
11274         * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
11275         is_mi_like_p.
11276
11277 2018-04-30  Tom Tromey  <tom@tromey.com>
11278
11279         * breakpoint.c (mention): Remove use of is_mi_like_p.
11280         (print_mention_ranged_breakpoint): Likewise.
11281         * break-catch-throw.c (print_it_exception_catchpoint): Remove use
11282         of is_mi_like_p.
11283
11284 2018-04-30  Tom Tromey  <tom@tromey.com>
11285
11286         * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
11287
11288 2018-04-30  Tom Tromey  <tom@tromey.com>
11289
11290         * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
11291         (info_spu_event_command): Remove some uses of is_mi_like_p.
11292
11293 2018-04-30  Tom Tromey  <tom@tromey.com>
11294
11295         * python/py-framefilter.c (py_print_single_arg)
11296         (enumerate_locals, py_print_args, py_print_frame): Remove some
11297         uses of is_mi_like_p.
11298
11299 2018-04-30  Tom Tromey  <tom@tromey.com>
11300
11301         * ui-out.c: Update.
11302         * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
11303         * ui-out.h (ui_out::is_mi_like_p): Now const.
11304         (ui_out::do_is_mi_like_p): Now const.
11305         * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
11306
11307 2018-04-30  Tom Tromey  <tom@tromey.com>
11308
11309         * varobj.c (varobj_set_visualizer): Use new_reference.
11310         * python/python.c (gdbpy_decode_line): Use new_reference.
11311         * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
11312         new_reference.
11313
11314 2018-04-30  Tom Tromey  <tom@tromey.com>
11315
11316         * varobj.c (install_new_value): Use new_reference.
11317         * value.h (value_incref): Return void.  Swap intro comment with
11318         value_decref.
11319         * value.c (set_value_parent): Use new_reference.
11320         (value_incref): Return void.  Update intro comment.
11321         (release_value): Use new_reference.
11322         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
11323
11324 2018-04-30  Tom Tromey  <tom@tromey.com>
11325
11326         * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
11327         * gdb_bfd.h (new_bfd_ref): Remove.
11328         (gdb_bfd_open): Update comment.
11329         * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
11330         (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
11331         (gdb_bfd_fdopenr): Use new_reference.
11332         * exec.c (exec_file_attach): Use new_reference.
11333
11334 2018-04-30  Tom Tromey  <tom@tromey.com>
11335
11336         * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
11337         method.
11338
11339 2018-04-30  Tom Tromey  <tom@tromey.com>
11340
11341         * jit.c (jit_read_code_entry): Use type_align.
11342         * i386-tdep.c (i386_gdbarch_init): Don't call
11343         set_gdbarch_long_long_align_bit.
11344         * gdbarch.sh: Remove long_long_align_bit.
11345         * gdbarch.c, gdbarch.h: Rebuild.
11346         * arc-tdep.c (arc_type_align): New function.
11347         (arc_gdbarch_init): Use arc_type_align.  Don't call
11348         set_gdbarch_long_long_align_bit.
11349
11350 2018-04-30  Tom Tromey  <tom@tromey.com>
11351
11352         * rust-lang.c (rust_type_alignment): Remove.
11353         (rust_composite_type): Use type_align.
11354
11355 2018-04-30  Tom Tromey  <tom@tromey.com>
11356
11357         * NEWS: Mention Type.align.
11358         * python/py-type.c (typy_get_alignof): New function.
11359         (type_object_getset): Add "alignof".
11360
11361 2018-04-30  Tom Tromey  <tom@tromey.com>
11362
11363         PR exp/17095:
11364         * NEWS: Update.
11365         * std-operator.def (UNOP_ALIGNOF): New operator.
11366         * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
11367         New.
11368         * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
11369         * c-lang.c (c_op_print_tab): Add alignof.
11370         * c-exp.y (ALIGNOF): New token.
11371         (exp): Add "ALIGNOF" production.
11372         (ident_tokens): Add _Alignof and alignof.
11373
11374 2018-04-30  Tom Tromey  <tom@tromey.com>
11375
11376         * i386-tdep.c (i386_type_align): New function.
11377         (i386_gdbarch_init): Update.
11378         * gdbarch.sh (type_align): New method.
11379         * gdbarch.c, gdbarch.h: Rebuild.
11380         * arch-utils.h (default_type_align): Declare.
11381         * arch-utils.c (default_type_align): New function.
11382         * gdbtypes.h (TYPE_ALIGN_BITS): New define.
11383         (struct type) <align_log2>: New field.
11384         <instance_flags>: Now a bitfield.
11385         (TYPE_RAW_ALIGN): New macro.
11386         (type_align, type_raw_align, set_type_align): Declare.
11387         * gdbtypes.c (type_align, type_raw_align, set_type_align): New
11388         functions.
11389         * dwarf2read.c (quirk_rust_enum): Set type alignment.
11390         (get_alignment, maybe_set_alignment): New functions.
11391         (read_structure_type, read_enumeration_type, read_array_type)
11392         (read_set_type, read_tag_pointer_type, read_tag_reference_type)
11393         (read_subrange_type, read_base_type): Set type alignment.
11394
11395 2018-04-30  Simon Marchi  <simon.marchi@ericsson.com>
11396
11397         * dwarf2read.c (read_index_from_section): Use bool.
11398
11399 2018-04-29  Fabian Groffen  <grobian@gentoo.org>
11400
11401         PR gdb/22950
11402         * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
11403         with #ifdef.
11404
11405 2018-04-29  John Reiser  <jreiser@BitWagon.com>
11406
11407         PR build/22873
11408         * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
11409         last step, and do it atomically.
11410
11411 2018-04-27  Alexandre Oliva  <aoliva@redhat.com>
11412
11413         * compile/compile-c-types.c (convert_int, convert_float):
11414         Update for C FE v1.
11415
11416 2018-04-27  Tom Tromey  <tom@tromey.com>
11417
11418         PR rust/22545:
11419         * rust-lang.c (rust_inclusive_range_type_p): New function.
11420         (rust_range): Handle inclusive ranges.
11421         (rust_compute_range): Likewise.
11422         * rust-exp.y (struct rust_op) <inclusive>: New field.
11423         (DOTDOTEQ): New constant.
11424         (range_expr): Add "..=" productions.
11425         (operator_tokens): Add "..=" token.
11426         (ast_range): Add "inclusive" parameter.
11427         (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
11428         ranges.
11429         * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
11430         bounds values.
11431         * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
11432         LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
11433         Update comments.
11434         * expprint.c (print_subexp_standard): Handle new bounds values.
11435         (dump_subexp_body_standard): Likewise.
11436
11437 2018-04-27  Tom Tromey  <tom@tromey.com>
11438
11439         * configure: Rebuild.
11440         * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
11441         * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
11442         "OVERRIDE".
11443         (class symbol_needs_eval_context): Likewise.
11444         * dwarf2read.c (mock_mapped_index::symbol_name_count)
11445         (mock_mapped_index::symbol_name_at): Use "override".  Remove
11446         "virtual".
11447         * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
11448         "override".
11449         (class dwarf_expr_executor): Use "override", not "OVERRIDE".
11450         * aarch64-tdep.c (instruction_reader::read): Use "override".
11451         (instruction_reader_test::read): Likewise.
11452         * arm-tdep.c (instruction_reader::read): Use "override".
11453         (instruction_reader_thumb::read): Likewise.
11454
11455 2018-04-26  Andrzej Kaczmarek  <andrzej.kaczmarek@codecoup.pl>
11456
11457         PR remote/9665
11458         * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
11459         instead of remote_send.
11460         (remote_send): Remove.
11461
11462 2018-04-26  Pedro Alves  <palves@redhat.com>
11463
11464         * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
11465         find_function_start_sal instead of find_pc_line.
11466
11467 2018-04-26  Pedro Alves  <palves@redhat.com>
11468
11469         * breakpoint.c (set_breakpoint_location_function): Handle
11470         mst_data_gnu_ifunc.
11471         * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
11472         * elfread.c (elf_symtab_read): Give data symbols with
11473         BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
11474         (elf_rel_plt_read): Update comment.
11475         * linespec.c (convert_linespec_to_sals): Handle
11476         mst_data_gnu_ifunc.
11477         (minsym_found): Handle mst_data_gnu_ifunc.
11478         * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
11479         (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
11480         * parse.c (find_minsym_type_and_address): Handle
11481         mst_data_gnu_ifunc.
11482         * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
11483         * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
11484         * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
11485         comment.
11486         <mst_data_gnu_ifunc>: New enumerator.
11487
11488 2018-04-26  Pedro Alves  <palves@redhat.com>
11489
11490         * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
11491         (lookup_minimal_symbol_by_pc_section): ... this.  Replace
11492         'want_trampoline' parameter by a lookup_msym_prefer parameter.
11493         Handle it.
11494         (lookup_minimal_symbol_by_pc_section): Delete old implementation.
11495         (lookup_minimal_symbol_by_pc): Adjust.
11496         (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
11497         (lookup_solib_trampoline_symbol_by_pc): Adjust.
11498         * minsyms.h (lookup_msym_prefer): New enum.
11499         (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
11500         parameter by a lookup_msym_prefer parameter.
11501
11502 2018-04-26  Pedro Alves  <palves@redhat.com>
11503
11504         * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
11505         ends in "@plt" instead of looking at the symbol's section.
11506
11507 2018-04-26  Pedro Alves  <palves@redhat.com>
11508
11509         * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete.  Remove
11510         all references.
11511         (find_pc_partial_function_gnu_ifunc): Rename to ...
11512         (find_pc_partial_function): ... this, and remove references to
11513         'is_gnu_ifunc_p'.
11514         (find_pc_partial_function): Delete old implementation.
11515         * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
11516
11517 2018-04-26  Pedro Alves  <palves@redhat.com>
11518
11519         * linespec.c (struct bound_minimal_symbol_search_key): New.
11520         (convert_linespec_to_sals): Sort minimal symbols earlier.  Don't
11521         skip first line if we found a GNU ifunc minimal symbol by name.
11522         (compare_msymbols): Change parameters to work with a destructured
11523         lhs minsym.
11524         (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
11525         functions.
11526
11527 2018-04-26  Pedro Alves  <palves@redhat.com>
11528
11529         * breakpoint.c (set_breakpoint_location_function): Don't resolve
11530         ifunc targets here.  Instead, if we have an ifunc minsym, use its
11531         address/name.
11532         (add_location_to_breakpoint): Store the minsym and the objfile in
11533         the breakpoint location.
11534         * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
11535         * linespec.c (minsym_found): Resolve GNU ifunc targets here.
11536         Record the minsym in the sal.
11537         * symtab.h (symtab_and_line) <msymbol>: New field.
11538
11539 2018-04-26  Pedro Alves  <palves@redhat.com>
11540
11541         * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
11542         unless we actually resolved the ifunc.
11543
11544 2018-04-26  Pedro Alves  <palves@redhat.com>
11545
11546         * c-exp.y (variable production): Prefer ifunc minsyms over
11547         regular function symbols.
11548         * symtab.c (find_gnu_ifunc): New function.
11549         * minsyms.h (lookup_msym_prefer): New enum.
11550         (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
11551         parameter by a lookup_msym_prefer parameter.
11552         * symtab.h (find_gnu_ifunc): New declaration.
11553
11554 2018-04-26  Pedro Alves  <palves@redhat.com>
11555
11556         * blockframe.c (find_gnu_ifunc_target_type): New function.
11557         (find_function_type): New.
11558         * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
11559         return a value with a memory address.
11560         (eval_call): For calls to GNU ifunc functions, try to find the
11561         type of the target function from the type that the resolver
11562         returns.
11563         * gdbtypes.c (objfile_type): Don't install a return type for ifunc
11564         symbols.
11565         * infcall.c (find_function_return_type): Delete.
11566         (find_function_addr): Add 'function_type' parameter.  For calls to
11567         GNU ifunc functions, try to find the type of the target function
11568         from the type that the resolver returns, and return it via
11569         FUNCTION_TYPE.
11570         (call_function_by_hand_dummy): Adjust to use the function type
11571         returned by find_function_addr.
11572         (find_function_addr): Add 'function_type' parameter and move
11573         description here.
11574         * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
11575         declarations.
11576
11577 2018-04-26  Pedro Alves  <palves@redhat.com>
11578
11579         * c-exp.y (variable production): Skip finding an alias for ifunc
11580         symbols.
11581
11582 2018-04-26  Pedro Alves  <palves@redhat.com>
11583
11584         * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
11585
11586 2018-04-25  Pedro Alves  <palves@redhat.com>
11587
11588         * infcmd.c (kill_command): Print the pid as string, not the whole
11589         thread's ptid.  Add comment.  s/has been killed/killed/ in output
11590         message.
11591         * remote.c (remote_detach_1): Print the pid as string, not the
11592         whole thread's ptid.
11593
11594 2018-04-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
11595             Sergio Durigan Junior  <sergiodj@redhat.com>
11596             Pedro Alves  <palves@redhat.com>
11597
11598         * infcmd.c (kill_command): Print message when inferior has
11599         been killed.
11600         * inferior.c (print_inferior_events): Remove 'static'.  Set as
11601         '1'.
11602         (add_inferior): Improve message printed when
11603         'print_inferior_events' is on.
11604         (exit_inferior): Remove message printed when
11605         'print_inferior_events' is on.
11606         (detach_inferior): Improve message printed when
11607         'print_inferior_events' is on.
11608         (initialize_inferiors): Use 'add_inferior_silent' to set
11609         'current_inferior_'.
11610         * inferior.h (print_inferior_events): Declare here as
11611         'extern'.
11612         * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
11613         '[Detaching...]' messages when 'print_inferior_events' is on.
11614         Use 'add_thread_silent' instead of 'add_thread'.  Add '[' and ']'
11615         as prefix/suffix for messages.  Remove periods.  Fix erroneous
11616         'Detaching after fork from child...', replace it by '... from
11617         parent...'.
11618         (handle_vfork_child_exec_or_exit): Add '[' and ']' as
11619         prefix/suffix when printing 'Detaching...' messages.  Print
11620         them when 'print_inferior_events' is on.
11621         * remote.c (remote_detach_1): Print message when detaching
11622         from inferior and '!is_fork_parent'.
11623
11624 2018-04-24  Tom Tromey  <tom@tromey.com>
11625
11626         * cli-out.h: Reindent.
11627
11628 2018-04-24  Tom Tromey  <tom@tromey.com>
11629
11630         * cli-out.c (cli_ui_out::out_field_fmt): Remove.
11631         (cli_ui_out::do_field_string): Use fputs_filtered.
11632         * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
11633
11634 2018-04-23  Tom Tromey  <tom@tromey.com>
11635
11636         * guile/scm-frame.c (gdbscm_frame_read_var): Use
11637         gdb::unique_xmalloc_ptr.
11638
11639 2018-04-23  Tom Tromey  <tom@tromey.com>
11640
11641         * configure: Rebuild.
11642
11643 2018-04-22  Rajendra SY  <rajendra.sy@gmail.com>
11644
11645         PR gdb/23095
11646         * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
11647         prepare_for_testing.  Set normal_bp to r_debug_state if target
11648         is bsd.
11649
11650 2018-04-21  Pedro Alves  <palves@redhat.com>
11651             Rajendra SY  <rajendra.sy@gmail.com>
11652
11653         * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
11654         * remote.c (extended_remote_attach): In all-stop mode, mark the
11655         thread as executing.
11656
11657 2018-04-19  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
11658
11659         * thread.c (thread_apply_all_command): Fix comment.
11660         (thread_command): Fix comment.
11661
11662 2018-04-10  Alan Hayward  <alan.hayward@arm.com>
11663
11664         * common/tdesc.h (tdesc_create_feature): Remove xml filename
11665         parameter.
11666         * features/aarch64-core.c (create_feature_aarch64_core):
11667         Regenerate.
11668         * features/aarch64-fpu.c (create_feature_aarch64_fpu):
11669         Likewise.
11670         * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
11671         Likewise.
11672         * features/i386/32bit-avx512.c
11673         (create_feature_i386_32bit_avx512): Likewise.
11674         * features/i386/32bit-core.c (create_feature_i386_32bit_core):
11675         Likewise.
11676         * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
11677         Likewise.
11678         * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
11679         Likewise.
11680         * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
11681         Likewise.
11682         * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
11683         Likewise.
11684         * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
11685         Likewise.
11686         * features/i386/64bit-avx512.c
11687         (create_feature_i386_64bit_avx512): Likewise.
11688         * features/i386/64bit-core.c (create_feature_i386_64bit_core):
11689         Likewise.
11690         * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
11691         Likewise.
11692         * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
11693         Likewise.
11694         * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
11695         Likewise.
11696         * features/i386/64bit-segments.c
11697         (create_feature_i386_64bit_segments): Likewise.
11698         * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
11699         Likewise.
11700         * features/i386/x32-core.c
11701         (create_feature_i386_x32_core): Likewise.
11702         * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
11703         * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
11704         * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
11705         * target-descriptions.c: In generated code, don't pass xml
11706         filename.
11707
11708 2018-04-18  Alan Hayward  <alan.hayward@arm.com>
11709
11710         * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
11711         (print_xml_feature::visit_post): Likewise.
11712         (print_xml_feature::visit): Likewise.
11713         * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
11714         (print_xml_feature): Add new class.
11715         * regformats/regdat.sh: Null xmltarget on feature targets.
11716         * target-descriptions.c (struct target_desc): Add xmltarget.
11717         (maintenance_check_tdesc_xml_convert): Add unittest function.
11718         (tdesc_get_features_xml): Add function to get xml.
11719         (maintenance_check_xml_descriptions): Test xml generation.
11720         * xml-tdesc.c (string_read_description_xml): Add function.
11721         * xml-tdesc.h (string_read_description_xml): Add declaration.
11722
11723 2018-04-18  Alan Hayward  <alan.hayward@arm.com>
11724
11725         * features/Makefile: Add feature marker to targets with new style
11726         target descriptions.
11727         * regformats/aarch64.dat: Regenerate.
11728         * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
11729         * regformats/i386/amd64-avx-linux.dat: Likewise.
11730         * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
11731         * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
11732         * regformats/i386/amd64-linux.dat: Likewise.
11733         * regformats/i386/amd64-mpx-linux.dat: Likewise.
11734         * regformats/i386/amd64.dat: Likewise.
11735         * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
11736         * regformats/i386/i386-avx-linux.dat: Likewise.
11737         * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
11738         * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
11739         * regformats/i386/i386-linux.dat: Likewise.
11740         * regformats/i386/i386-mmx-linux.dat: Likewise.
11741         * regformats/i386/i386-mpx-linux.dat: Likewise.
11742         * regformats/i386/i386.dat: Likewise.
11743         * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
11744         * regformats/i386/x32-avx-linux.dat: Likewise.
11745         * regformats/i386/x32-linux.dat: Likewise.
11746         * regformats/tic6x-c62x-linux.dat: Likewise.
11747         * regformats/tic6x-c64x-linux.dat: Likewise.
11748         * regformats/tic6x-c64xp-linux.dat: Likewise.
11749         * regformats/regdat.sh: Parse feature marker.
11750
11751 2018-04-18  Alan Hayward  <alan.hayward@arm.com>
11752
11753         * common/tdesc.h (tdesc_architecture_name): Add new declaration.
11754         (tdesc_osabi_name): Likewise.
11755         * target-descriptions.c (tdesc_architecture_name): Add new
11756         function.
11757         (tdesc_osabi_name): Likewise.
11758
11759 2018-04-18  Alan Hayward  <alan.hayward@arm.com>
11760
11761         * common/tdesc.c (tdesc_predefined_type): Move to here.
11762         (tdesc_named_type): Likewise.
11763         (tdesc_create_vector): Likewise.
11764         (tdesc_create_struct): Likewise.
11765         (tdesc_set_struct_size): Likewise.
11766         (tdesc_create_union): Likewise.
11767         (tdesc_create_flags): Likewise.
11768         (tdesc_create_enum): Likewise.
11769         (tdesc_add_field): Likewise.
11770         (tdesc_add_typed_bitfield): Likewise.
11771         (tdesc_add_bitfield): Likewise.
11772         (tdesc_add_flag): Likewise.
11773         (tdesc_add_enum_value): Likewise.
11774         * common/tdesc.h (struct tdesc_type_builtin): Likewise.
11775         (struct tdesc_type_vector): Likewise.
11776         (struct tdesc_type_field): Likewise.
11777         (struct tdesc_type_with_fields): Likewise.
11778         (tdesc_create_enum): Add declaration.
11779         (tdesc_add_typed_bitfield): Likewise.
11780         (tdesc_add_enum_value): Likewise.
11781         * target-descriptions.c (tdesc_type_field): Move from here.
11782         (tdesc_type_builtin): Likewise.
11783         (tdesc_type_vector): Likewise.
11784         (tdesc_type_with_fields): Likewise.
11785         (tdesc_predefined_types): Likewise.
11786         (tdesc_named_type): Likewise.
11787         (tdesc_create_vector): Likewise.
11788         (tdesc_create_struct): Likewise.
11789         (tdesc_set_struct_size): Likewise.
11790         (tdesc_create_union): Likewise.
11791         (tdesc_create_flags): Likewise.
11792         (tdesc_create_enum): Likewise.
11793         (tdesc_add_field): Likewise.
11794         (tdesc_add_typed_bitfield): Likewise.
11795         (tdesc_add_bitfield): Likewise.
11796         (tdesc_add_flag): Likewise.
11797         (tdesc_add_enum_value): Likewise.
11798         * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
11799         (tdesc_add_typed_bitfield): Likewise.
11800         (tdesc_add_enum_value): Likewise.
11801
11802 2018-04-18  Alan Hayward  <alan.hayward@arm.com>
11803
11804         * common/tdesc.c (tdesc_feature::accept): Move to here.
11805         (tdesc_feature::operator==): Likewise.
11806         (tdesc_create_reg): Likewise.
11807         * common/tdesc.h (tdesc_type_kind): Likewise.
11808         (struct tdesc_type): Likewise.
11809         (struct tdesc_feature): Likewise.
11810         * regformats/regdat.sh: Create a feature.
11811         * target-descriptions.c (tdesc_type_kind): Move from here.
11812         (tdesc_type): Likewise.
11813         (tdesc_type_up): Likewise.
11814         (tdesc_feature): Likewise.
11815         (tdesc_create_reg): Likewise.
11816
11817 2018-04-18  Alan Hayward  <alan.hayward@arm.com>
11818
11819         * Makefile.in: Add arch/tdesc.c
11820         * common/tdesc.c: New file.
11821         * common/tdesc.h (tdesc_element_visitor): Move to here.
11822         (tdesc_element): Likewise.
11823         (tdesc_reg): Likewise.
11824         (tdesc_reg_up): Likewise.
11825         * regformats/regdef.h (reg): Add offset to constructors.
11826         * target-descriptions.c (tdesc_element_visitor): Move from here.
11827         (tdesc_element): Likewise.
11828         (tdesc_reg): Likewise.
11829         (tdesc_reg_up): Likewise.
11830
11831 2018-04-17  Tom Tromey  <tom@tromey.com>
11832
11833         * dwarf2read.c (quirk_rust_enum): Conditionally drop the
11834         discriminant field.
11835
11836 2018-04-17  Tom Tromey  <tom@tromey.com>
11837
11838         * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
11839
11840 2018-04-17  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11841
11842         * symtab.c (print_symbol_info): Skip printing filename and line
11843         number when `last' is NULL.
11844         (symtab_symbol_info): Use empty string instead of NULL for first
11845         invocation of print_symbol_info.
11846         (rbreak_command): Pass NULL to `last' parameter of
11847         print_symbol_info.
11848
11849 2018-04-16  Simon Marchi  <simon.marchi@ericsson.com>
11850
11851         * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
11852         instead of nullptr.
11853
11854 2018-04-16  Pedro Alves  <palves@redhat.com>
11855
11856         * MAINTAINERS (sh): Remove.
11857         * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
11858         (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
11859         (ALLDEPFILES): Remove sh64-tdep.c.
11860         * NEWS: Mentions that support for SH-5/SH64 is removed.
11861         * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
11862         (sh*-*-openbsd*): Ditto.
11863         (sh64-*-elf*): Remove.
11864         (sh*): Remove.
11865         * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
11866         * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
11867         * sh-tdep.c: No longer include "sh64-tdep.h".
11868         (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
11869         * sh64-tdep.c, sh64-tdep.h: Remove files.
11870
11871 2018-04-16  Pedro Alves  <palves@redhat.com>
11872
11873         * MAINTAINERS: Remove m88k.
11874         * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
11875         (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
11876         (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
11877         * NEWS: Mention that support for m88k was removed.
11878         * configure.host (m88*-*-*): Remove support.
11879         * configure.nat (m88k-*-*): Remove support.
11880         * configure.tgt (m88*-*-openbsd*): Remove.
11881         * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
11882
11883 2018-04-15  Simon Marchi  <simon.marchi@polymtl.ca>
11884
11885         * configure.tgt (x86_tobjs): New variable.
11886         (amd64_tobjs, i386_tobjs): Use it.
11887
11888 2018-04-13  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11889
11890         * symtab.c (print_symbol_info): Precede the symbol definition by
11891         the line number when available.
11892         * NEWS: Advertise this enhancement.
11893
11894 2018-04-13  Markus Metzger  <markus.t.metzger@intel.com>
11895
11896         * NEWS (New options): announce set/show record btrace cpu.
11897         * btrace.c: Include record-btrace.h.
11898         (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
11899         the vendor is unknown.
11900         (btrace_compute_ftrace_1): Add cpu parameter.  Update callers.
11901         Maybe overwrite the btrace configuration's cpu.
11902         (btrace_compute_ftrace): Add cpu parameter.  Update callers.
11903         (btrace_fetch): Add cpu parameter.  Update callers.
11904         (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
11905         Maybe overwrite the btrace configuration's cpu.  Skip enabling
11906         errata workarounds if the vendor is unknown.
11907         * python/py-record-btrace.c: Include record-btrace.h.
11908         (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
11909         (recpy_bt_function_call_history): Call record_btrace_get_cpu.
11910         * record-btrace.c (record_btrace_cpu_state_kind): New.
11911         (record_btrace_cpu): New.
11912         (set_record_btrace_cpu_cmdlist): New.
11913         (record_btrace_get_cpu): New.
11914         (require_btrace_thread, record_btrace_info)
11915         (record_btrace_resume_thread): Call record_btrace_get_cpu.
11916         (cmd_set_record_btrace_cpu_none): New.
11917         (cmd_set_record_btrace_cpu_auto): New.
11918         (cmd_set_record_btrace_cpu): New.
11919         (cmd_show_record_btrace_cpu): New.
11920         (_initialize_record_btrace): Initialize set/show record btrace cpu
11921         commands.
11922         * record-btrace.h (record_btrace_get_cpu): New.
11923
11924 2018-04-13  Markus Metzger  <markus.t.metzger@intel.com>
11925
11926         * record.c (set_record_command): Fix typo in message.
11927
11928 2018-04-13  Markus Metzger  <markus.t.metzger@intel.com>
11929
11930         * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
11931
11932 2018-04-13  Markus Metzger  <markus.t.metzger@intel.com>
11933
11934         * infrun.c (process_event_stop_test): Call
11935         gdbarch_in_indirect_branch_thunk.
11936         * gdbarch.sh (in_indirect_branch_thunk): New.
11937         * gdbarch.c: Regenerated.
11938         * gdbarch.h: Regenerated.
11939         * x86-tdep.h: New.
11940         * x86-tdep.c: New.
11941         * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
11942         (HFILES_NO_SRCDIR): Add x86-tdep.h.
11943         (ALLDEPFILES): Add x86-tdep.c.
11944         * arch-utils.h (default_in_indirect_branch_thunk): New.
11945         * arch-utils.c (default_in_indirect_branch_thunk): New.
11946         * i386-tdep: Include x86-tdep.h.
11947         (i386_in_indirect_branch_thunk): New.
11948         (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
11949         function.
11950         * amd64-tdep: Include x86-tdep.h.
11951         (amd64_in_indirect_branch_thunk): New.
11952         (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
11953
11954 2018-04-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
11955
11956         PR gdb/23053
11957         * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
11958         (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
11959         (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
11960         regression.
11961
11962 2018-04-12  Tom Tromey  <tom@tromey.com>
11963
11964         * rust-lang.c (rust_print_struct_def): Remove univariant code.
11965         (rust_evaluate_subexp): Likewise.
11966
11967 2018-04-12  Pedro Alves  <palves@redhat.com>
11968
11969         * procfs.c (procfs_detach): Make forward declaration's prototype
11970         match definition's protototype.
11971         (proc_get_LDT_entry): Remove stale do_cleanups call.
11972
11973 2018-04-12  Pedro Alves  <palves@redhat.com>
11974
11975         * target.h (target_ops::to_has_exited): Delete.
11976         (target_has_exited): Delete.
11977         * target-delegates.c: Regenerate.
11978
11979 2018-04-11  Pedro Alves  <palves@redhat.com>
11980
11981         * target.c (fileio_fh_t::t): Add comment.
11982         (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
11983         (target_fileio_close): Handle a NULL target.
11984         (invalidate_fileio_fh): New.
11985         (target_close): Call it.
11986         * remote.c (remote_hostio_send_command): No longer check whether
11987         remote_desc is open.
11988
11989 2018-04-11  Pedro Alves  <palves@redhat.com>
11990
11991         * target.c (fileio_fh_t): Make it a named struct instead of a
11992         typedef.
11993         (fileio_fh_t::is_closed): New method.
11994         (DEF_VEC_O (fileio_fh_t)): Remove.
11995         (fileio_fhandles): Now a std::vector.
11996         (is_closed_fileio_fh): Delete.
11997         (acquire_fileio_fd): Adjust.  Rename parameters.
11998         (release_fileio_fd): Adjust.
11999         (fileio_fd_to_fh): Reimplement as a function instead of a macro.
12000         (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
12001         (target_fileio_close): Adjust.
12002
12003 2018-04-10  Simon Marchi  <simon.marchi@ericsson.com>
12004
12005         * auto-load.c (auto_load_safe_path_vec_update): Iterate by
12006         index.
12007
12008 2018-04-10  Pedro Alves  <palves@redhat.com>
12009
12010         * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
12011         (scoped_finish_thread_state): New class.
12012         * infcmd.c (run_command_1): Use it instead of finish_thread_state
12013         cleanup.
12014         * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
12015         (fetch_inferior_event, normal_stop): Likewise.
12016         * thread.c (finish_thread_state_cleanup): Delete.
12017
12018 2018-04-09  Simon Marchi  <simon.marchi@polymtl.ca>
12019             Pedro Alves  <palves@redhat.com>
12020
12021         * value.c: Include "selftest.h" and "common/array-view.h".
12022         (struct range) <operator ==>: New.
12023         (test_ranges_contain): New.
12024         (check_ranges_vector): New.
12025         (test_insert_into_bit_range_vector): New.
12026         (_initialize_values): Register selftests.
12027         * common/array-view.h (operator==, operator!=): New.
12028
12029 2018-04-09  Simon Marchi  <simon.marchi@polymtl.ca>
12030
12031         * common/gdb_vecs.h (unordered_remove): Add overload that takes
12032         an iterator.
12033         * inline-frame.c: Include <algorithm>.
12034         (struct inline_state): Add constructor.
12035         (inline_state_s): Remove.
12036         (DEF_VEC_O(inline_state_s)): Remove.
12037         (inline_states): Change type to std::vector.
12038         (find_inline_frame_state): Adjust to std::vector.
12039         (allocate_inline_frame_state): Remove.
12040         (clear_inline_frame_state): Adjust to std::vector.
12041         (skip_inline_frames): Adjust to std::vector.
12042
12043 2018-04-09  Simon Marchi  <simon.marchi@polymtl.ca>
12044
12045         * tracepoint.h (struct trace_state_variable): Add constructor.
12046         <name>: Change type to std::string.
12047         * tracepoint.c (tsv_s): Remove.
12048         (DEF_VEC_O(tsv_s)): Remove.
12049         (tvariables): Change to std::vector.
12050         (create_trace_state_variable): Adjust to std::vector.
12051         (find_trace_state_variable): Likewise.
12052         (find_trace_state_variable_by_number): Likewise.
12053         (delete_trace_state_variable): Likewise.
12054         (trace_variable_command): Adjust to std::string.
12055         (delete_trace_variable_command): Likewise.
12056         (tvariables_info_1): Adjust to std::vector.
12057         (save_trace_state_variables): Likewise.
12058         (start_tracing): Likewise.
12059         (merge_uploaded_trace_state_variables): Adjust to std::vector
12060         and std::string.
12061         * target.h (struct target_ops)
12062         <to_download_trace_state_variable>: Pass reference to
12063         trace_state_variable.
12064         * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
12065         * target-delegates.c: Re-generate.
12066         * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
12067         (mi_tsv_deleted): Likewise.
12068         * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
12069         * remote.c (remote_download_trace_state_variable): Change
12070         pointer to reference and adjust.
12071         * make-target-delegates (parse_argtypes): Handle references.
12072         (write_function_header): Likewise.
12073         (munge_type): Likewise.
12074
12075 2018-04-09  Simon Marchi  <simon.marchi@polymtl.ca>
12076
12077         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12078         string_view-selftests.c.
12079         * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
12080         testsuite.
12081         * unittests/basic_string_view/cons/char/1.cc: Likewise.
12082         * unittests/basic_string_view/cons/char/2.cc: Likewise.
12083         * unittests/basic_string_view/cons/char/3.cc: Likewise.
12084         * unittests/basic_string_view/element_access/char/1.cc:
12085         Likewise.
12086         * unittests/basic_string_view/element_access/char/empty.cc:
12087         Likewise.
12088         * unittests/basic_string_view/element_access/char/front_back.cc:
12089         Likewise.
12090         * unittests/basic_string_view/inserters/char/2.cc: Likewise.
12091         * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
12092         Likewise.
12093         * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
12094         Likewise.
12095         * unittests/basic_string_view/modifiers/swap/char/1.cc:
12096         Likewise.
12097         * unittests/basic_string_view/operations/compare/char/1.cc:
12098         Likewise.
12099         * unittests/basic_string_view/operations/compare/char/13650.cc:
12100         Likewise.
12101         * unittests/basic_string_view/operations/copy/char/1.cc:
12102         Likewise.
12103         * unittests/basic_string_view/operations/data/char/1.cc:
12104         Likewise.
12105         * unittests/basic_string_view/operations/find/char/1.cc:
12106         Likewise.
12107         * unittests/basic_string_view/operations/find/char/2.cc:
12108         Likewise.
12109         * unittests/basic_string_view/operations/find/char/3.cc:
12110         Likewise.
12111         * unittests/basic_string_view/operations/find/char/4.cc:
12112         Likewise.
12113         * unittests/basic_string_view/operations/rfind/char/1.cc:
12114         Likewise.
12115         * unittests/basic_string_view/operations/rfind/char/2.cc:
12116         Likewise.
12117         * unittests/basic_string_view/operations/rfind/char/3.cc:
12118         Likewise.
12119         * unittests/basic_string_view/operations/substr/char/1.cc:
12120         Likewise.
12121         * unittests/basic_string_view/operators/char/2.cc: Likewise.
12122         * unittests/string_view-selftests.c: New file.
12123
12124 2018-04-09  Simon Marchi  <simon.marchi@polymtl.ca>
12125
12126         * unittests/basic_string_view/capacity/1.cc: New file.
12127         * unittests/basic_string_view/capacity/empty_neg.cc: New file.
12128         * unittests/basic_string_view/cons/char/1.cc: New file.
12129         * unittests/basic_string_view/cons/char/2.cc: New file.
12130         * unittests/basic_string_view/cons/char/3.cc: New file.
12131         * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
12132         * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
12133         * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
12134         * unittests/basic_string_view/element_access/char/1.cc: New file.
12135         * unittests/basic_string_view/element_access/char/2.cc: New file.
12136         * unittests/basic_string_view/element_access/char/empty.cc: New file.
12137         * unittests/basic_string_view/element_access/char/front_back.cc: New file.
12138         * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
12139         * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
12140         * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
12141         * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
12142         * unittests/basic_string_view/include.cc: New file.
12143         * unittests/basic_string_view/inserters/char/1.cc: New file.
12144         * unittests/basic_string_view/inserters/char/2.cc: New file.
12145         * unittests/basic_string_view/inserters/char/3.cc: New file.
12146         * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
12147         * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
12148         * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
12149         * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
12150         * unittests/basic_string_view/literals/types.cc: New file.
12151         * unittests/basic_string_view/literals/values.cc: New file.
12152         * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
12153         * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
12154         * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
12155         * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
12156         * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
12157         * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
12158         * unittests/basic_string_view/operations/compare/char/1.cc: New file.
12159         * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
12160         * unittests/basic_string_view/operations/compare/char/2.cc: New file.
12161         * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
12162         * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
12163         * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
12164         * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
12165         * unittests/basic_string_view/operations/copy/char/1.cc: New file.
12166         * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
12167         * unittests/basic_string_view/operations/data/char/1.cc: New file.
12168         * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
12169         * unittests/basic_string_view/operations/find/char/1.cc: New file.
12170         * unittests/basic_string_view/operations/find/char/2.cc: New file.
12171         * unittests/basic_string_view/operations/find/char/3.cc: New file.
12172         * unittests/basic_string_view/operations/find/char/4.cc: New file.
12173         * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
12174         * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
12175         * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
12176         * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
12177         * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
12178         * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
12179         * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
12180         * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
12181         * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
12182         * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
12183         * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
12184         * unittests/basic_string_view/operations/substr/char/1.cc: New file.
12185         * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
12186         * unittests/basic_string_view/operators/char/2.cc: New file.
12187         * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
12188         * unittests/basic_string_view/range_access/char/1.cc: New file.
12189         * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
12190         * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
12191         * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
12192         * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
12193         * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
12194         * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
12195         * unittests/basic_string_view/requirements/typedefs.cc: New file.
12196         * unittests/basic_string_view/typedefs.cc: New file.
12197         * unittests/basic_string_view/types/1.cc: New file.
12198
12199 2018-04-09  Simon Marchi  <simon.marchi@polymtl.ca>
12200
12201         * common/gdb_string_view.h: Remove libstdc++ implementation
12202         details, adjust to gdb reality.
12203         * common/gdb_string_view.tcc: Likewise.
12204         * cli/cli-script.c (struct string_view): Remove.
12205         (user_args) <m_args>: Change element type to gdb::string_view.
12206         (user_args::insert_args): Adjust.
12207
12208 2018-04-09  Simon Marchi  <simon.marchi@polymtl.ca>
12209
12210         * common/gdb_string_view.h: New file.
12211         * common/gdb_string_view.tcc: New file.
12212
12213 2018-04-09  Simon Marchi  <simon.marchi@polymtl.ca>
12214
12215         * ax_cxx_compile_stdcxx.m4: Sync with upstream.
12216         * configure: Re-generate.
12217
12218 2018-04-09  Pedro Alves  <palves@redhat.com>
12219
12220         * gdbarch.sh: Include "observable.h" instead of "observer.h".
12221         (set_target_gdbarch): Call
12222         gdb::observers::architecture_changed.notify instead of
12223         observer_notify_architecture_changed.
12224
12225 2018-04-07  Simon Marchi  <simon.marchi@polymtl.ca>
12226
12227         * tracepoint.c (struct current_traceframe_cleanup): Remove.
12228         (do_restore_current_traceframe_cleanup): Remove.
12229         (restore_current_traceframe_cleanup_dtor): Remove.
12230         (make_cleanup_restore_current_traceframe): Remove.
12231         (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
12232         New.
12233         * tracepoint.h (struct scoped_restore_current_traceframe): New.
12234         * infrun.c (fetch_inferior_event): Use
12235         scoped_restore_current_traceframe.
12236
12237 2018-04-07  Simon Marchi  <simon.marchi@polymtl.ca>
12238
12239         * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
12240         Remove.
12241         <n_allocated_type_units>: Remove.
12242         <all_type_units>: Change to std::vector.
12243         * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
12244         to std::vector change.
12245         (dwarf2_per_objfile::get_cutu): Likewise.
12246         (dwarf2_per_objfile::get_tu): Likewise.
12247         (create_signatured_type_table_from_index): Likewise.
12248         (create_signatured_type_table_from_debug_names): Likewise.
12249         (dw2_symtab_iter_next): Likewise.
12250         (dw2_print_stats): Likewise.
12251         (dw2_expand_all_symtabs): Likewise.
12252         (dw2_expand_marked_cus): Likewise.
12253         (dw2_debug_names_iterator::next): Likewise.
12254         (dwarf2_initialize_objfile): Likewise.
12255         (add_signatured_type_cu_to_table): Likewise.
12256         (create_all_type_units): Likewise.
12257         (add_type_unit): Likewise.
12258         (struct tu_abbrev_offset): Add constructor.
12259         (build_type_psymtabs_1): Adjust to std::vector change.
12260         (print_tu_stats): Likewise.
12261         * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
12262         (write_debug_names): Likewise.
12263
12264 2018-04-07  Simon Marchi  <simon.marchi@polymtl.ca>
12265
12266         * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
12267         Make an std::vector.
12268         <n_comp_units>: Remove.
12269         * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
12270         to std::vector change.
12271         (dwarf2_per_objfile::get_cutu): Likewise.
12272         (dwarf2_per_objfile::get_cu): Likewise.
12273         (create_cus_from_index): Likewise.
12274         (create_addrmap_from_index): Likewise.
12275         (create_addrmap_from_aranges): Likewise.
12276         (dwarf2_read_index): Likewise.
12277         (dw2_find_last_source_symtab): Likewise.
12278         (dw2_map_symtabs_matching_filename): Likewise.
12279         (dw2_symtab_iter_next): Likewise.
12280         (dw2_print_stats): Likewise.
12281         (dw2_expand_all_symtabs): Likewise.
12282         (dw2_expand_symtabs_with_fullname): Likewise.
12283         (dw2_expand_marked_cus): Likewise.
12284         (dw2_map_symbol_filenames): Likewise.
12285         (create_cus_from_debug_names): Likewise.
12286         (dwarf2_read_debug_names): Likewise.
12287         (dw2_debug_names_iterator::next): Likewise.
12288         (dwarf2_initialize_objfile): Likewise.
12289         (set_partial_user): Likewise.
12290         (dwarf2_build_psymtabs_hard): Likewise.
12291         (read_comp_units_from_section): Remove arguments, adjust to
12292         std::vector change.
12293         (create_all_comp_units): Adjust to std::vector and
12294         read_comp_units_from_section changes.
12295         (dwarf2_find_containing_comp_unit): Adjust to std::vector
12296         change.
12297         * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
12298         (psyms_seen_size): Likewise.
12299         (write_gdbindex): Likewise.
12300         (write_debug_names): Likewise.
12301
12302 2018-04-07  Simon Marchi  <simon.marchi@polymtl.ca>
12303
12304         * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
12305         with dwarf2_per_objfile.
12306         (create_cus_from_index): Likewise.
12307         (create_signatured_type_table_from_index): Likewise.
12308         (dwarf2_read_index): Likewise.
12309         (dwarf2_initialize_objfile): Likewise.
12310         (dwarf2_fetch_die_loc_sect_off):  Get dwarf2_per_objfile from
12311         per_cu rather than get_dwarf2_per_objfile.
12312
12313 2018-04-07  Simon Marchi  <simon.marchi@polymtl.ca>
12314
12315         * dwarf2read.h (struct signatured_type): Forward declare.
12316         (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
12317         New methods.
12318         * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
12319         (dw2_get_cutu): ...this.
12320         (dwarf2_per_objfile::get_cu): Rename from...
12321         (dw2_get_cu): ...this.
12322         (dwarf2_per_objfile::get_tu): New.
12323         (create_addrmap_from_index): Adjust.
12324         (create_addrmap_from_aranges): Adjust.
12325         (dw2_find_last_source_symtab): Adjust.
12326         (dw2_map_symtabs_matching_filename): Adjust.
12327         (dw2_symtab_iter_next): Adjust.
12328         (dw2_print_stats): Adjust.
12329         (dw2_expand_all_symtabs): Adjust.
12330         (dw2_expand_symtabs_with_fullname): Adjust.
12331         (dw2_expand_marked_cus): Adjust.
12332         (dw_expand_symtabs_matching_file_matcher): Adjust.
12333         (dw2_map_symbol_filenames): Adjust.
12334         (dw2_debug_names_iterator::next): Adjust.
12335         (dwarf2_initialize_objfile): Adjust.
12336         (set_partial_user): Adjust.
12337         (dwarf2_build_psymtabs_hard): Adjust.
12338
12339 2018-04-07  Simon Marchi  <simon.marchi@polymtl.ca>
12340
12341         * dwarf2read.c (create_signatured_type_table_from_debug_names):
12342         Remove unused variables.
12343         (dw2_map_symtabs_matching_filename): Likewise.
12344         (dwarf2_record_block_ranges): Likewise.
12345         (dwarf2_read_addr_index): Likewise.
12346         (follow_die_offset): Likewise.
12347
12348 2018-04-07  Simon Marchi  <simon.marchi@polymtl.ca>
12349
12350         * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
12351         to symbol_file_add_main.
12352
12353 2018-04-07  Simon Marchi  <simon.marchi@polymtl.ca>
12354
12355         PR mi/22299
12356         * mi/mi-console.c (do_fputc_async_safe): New.
12357         (mi_console_file::write_async_safe): New.
12358         (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
12359         * mi/mi-console.h (class mi_console_file) <write_async_safe>:
12360         New.
12361         * ui-file.c (ui_file::putstrn): Adjust call to
12362         fputstrn_unfiltered.
12363         * utils.c (printchar): Replace do_fputs and do_fprintf
12364         parameters by do_fputc.
12365         (fputstr_filtered): Adjust call to printchar.
12366         (fputstr_unfiltered): Likewise.
12367         (fputstrn_filtered): Likewise.
12368         (fputstrn_unfiltered): Add do_fputc parameter, pass to
12369         printchar.
12370         * utils.h (do_fputc_ftype): New typedef.
12371         (fputstrn_unfiltered): Add do_fputc parameter.
12372
12373 2018-04-07  Simon Marchi  <simon.marchi@polymtl.ca>
12374
12375         * regformats/i386/i386-avx.dat: Remove.
12376
12377 2018-04-07  Simon Marchi  <simon.marchi@ericsson.com>
12378
12379         PR gdb/22979
12380         * amd64-tdep.c (amd64_none_init_abi): New function.
12381         (amd64_x32_none_init_abi): New function.
12382         (_initialize_amd64_tdep): Register handlers for x86-64 and
12383         x64_32 with GDB_OSABI_NONE.
12384         * osabi.c (gdbarch_init_osabi): Allow running handlers for the
12385         GDB_OSABI_NONE osabi.
12386
12387 2018-04-07  Simon Marchi  <simon.marchi@ericsson.com>
12388
12389         PR gdb/22980
12390         * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
12391         GDB_OSABI_NONE.
12392         * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
12393         * osabi.c (gdb_osabi_names): Add "unknown" entry.
12394
12395 2018-04-07  Simon Marchi  <simon.marchi@ericsson.com>
12396
12397         * common/byte-vector.h (char_vector): New type.
12398         * target.h (target_read_alloc): Return
12399         gdb::optional<byte_vector>.
12400         (target_read_stralloc): Return gdb::optional<char_vector>.
12401         (target_get_osdata): Return gdb::optional<char_vector>.
12402         * target.c (target_read_alloc_1): Templatize.  Replacement
12403         manual memory management with vector.
12404         (target_read_alloc): Change return type, adjust.
12405         (target_read_stralloc): Change return type, adjust.
12406         (target_get_osdata): Change return type, adjust.
12407         * auxv.c (struct auxv_info) <length>: Remove.
12408         <data>: Change type to gdb::optional<byte_vector>.
12409         (auxv_inferior_data_cleanup): Free auxv_info with delete.
12410         (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
12411         (target_auxv_search): Adjust.
12412         (fprint_target_auxv): Adjust.
12413         * avr-tdep.c (avr_io_reg_read_command): Adjust.
12414         * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
12415         (linux_make_corefile_notes): Adjust.
12416         * osdata.c (get_osdata): Adjust.
12417         * remote.c (remote_get_threads_with_qxfer): Adjust.
12418         (remote_memory_map): Adjust.
12419         (remote_traceframe_info): Adjust.
12420         (btrace_read_config): Adjust.
12421         (remote_read_btrace): Adjust.
12422         (remote_pid_to_exec_file): Adjust.
12423         * solib-aix.c (solib_aix_get_library_list): Adjust.
12424         * solib-dsbt.c (decode_loadmap): Don't free buf.
12425         (dsbt_get_initial_loadmaps): Adjust.
12426         * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
12427         * solib-target.c (solib_target_current_sos): Adjust.
12428         * tracepoint.c (sdata_make_value): Adjust.
12429         * xml-support.c (xinclude_start_include): Adjust.
12430         (xml_fetch_content_from_file): Adjust.
12431         * xml-support.h (xml_fetch_another): Change return type.
12432         (xml_fetch_content_from_file): Change return type.
12433         * xml-syscall.c (xml_init_syscalls_info): Adjust.
12434         * xml-tdesc.c (file_read_description_xml): Adjust.
12435         (fetch_available_features_from_target): Change return type.
12436         (target_fetch_description_xml): Adjust.
12437         (target_read_description_xml): Adjust.
12438
12439 2018-04-06  Tom Tromey  <tom@tromey.com>
12440
12441         * value.c (~value): Update.
12442         (struct value) <contents>: Now unique_xmalloc_ptr.
12443         (value_contents_bits_eq, allocate_value_contents)
12444         (value_contents_raw, value_contents_all_raw)
12445         (value_contents_for_printing, value_contents_for_printing_const)
12446         (set_value_enclosing_type): Update.
12447
12448 2018-04-06  Tom Tromey  <tom@tromey.com>
12449
12450         * value.c (range_s): Remove typedef, VEC.
12451         (struct range): Add operator<.
12452         (range_lessthan): Remove.
12453         (ranges_contain): Change type.
12454         (~value): Update.
12455         (struct value) <unavailable, optimized_out>: Now std::vector.
12456         (value_entirely_available)
12457         (value_entirely_covered_by_range_vector)
12458         (value_entirely_unavailable, value_entirely_optimized_out):
12459         Update.
12460         (insert_into_bit_range_vector): Change argument type.
12461         (find_first_range_overlap): Likewise.
12462         (struct ranges_and_idx, value_contents_bits_eq)
12463         (require_not_optimized_out, require_available): Update.
12464         (ranges_copy_adjusted): Change argument types.
12465         (value_optimized_out, value_copy, value_fetch_lazy): Update.
12466
12467 2018-04-06  Tom Tromey  <tom@tromey.com>
12468
12469         * value.c (~value): Update.
12470         (struct value) <parent>: Now a value_ref_ptr.
12471         (value_parent, set_value_parent, value_address, value_copy):
12472         Update.
12473
12474 2018-04-06  Tom Tromey  <tom@tromey.com>
12475
12476         * value.c (struct value): Add constructor, destructor, and member
12477         initializers.
12478         (allocate_value_lazy, value_decref): Update.
12479
12480 2018-04-06  Tom Tromey  <tom@tromey.com>
12481
12482         * value.c (struct value) <released, next>: Remove.
12483         (all_values): Now a std::vector.
12484         (allocate_value_lazy): Update.
12485         (value_next): Remove.
12486         (value_mark, value_free_to_mark, release_value)
12487         (value_release_to_mark): Update.
12488
12489 2018-04-06  Tom Tromey  <tom@tromey.com>
12490
12491         * value.h (fetch_subexp_value, value_release_to_mark): Update.
12492         (free_value_chain): Remove.
12493         * value.c (free_value_chain): Remove.
12494         (value_release_to_mark): Return a std::vector.
12495         * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
12496         std::vector.
12497         (check_condition): Update.
12498         * eval.c (fetch_subexp_value): Change "val_chain" to a
12499         std::vector.
12500         * breakpoint.c (update_watchpoint): Update.
12501         (can_use_hardware_watchpoint): Change "vals" to a std::vector.
12502
12503 2018-04-06  Tom Tromey  <tom@tromey.com>
12504
12505         * value.h (free_all_values): Remove.
12506         * value.c (free_all_values): Remove.
12507
12508 2018-04-06  Tom Tromey  <tom@tromey.com>
12509
12510         * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
12511         (value_history_chain, value_history_count): Remove.
12512         (value_history): New global.
12513         (record_latest_value, access_value_history, show_values)
12514         (preserve_values): Update.
12515
12516 2018-04-06  Tom Tromey  <tom@tromey.com>
12517
12518         * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
12519         * varobj.c (varobj_set_display_format, varobj_set_value)
12520         (install_default_visualizer, construct_visualizer)
12521         (install_new_value, ~varobj, varobj_get_value_type)
12522         (my_value_of_variable, varobj_editable_p): Update.
12523         * c-varobj.c (c_describe_child, c_value_of_variable)
12524         (cplus_number_of_children, cplus_describe_child): Update.
12525         * ada-varobj.c (ada_number_of_children, ada_name_of_child)
12526         (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
12527         (ada_value_of_variable, ada_value_is_changeable_p): Update.
12528
12529 2018-04-06  Tom Tromey  <tom@tromey.com>
12530
12531         * printcmd.c (last_examine_address): Change type to
12532         value_ref_ptr.
12533         (do_examine, x_command): Update.
12534
12535 2018-04-06  Tom Tromey  <tom@tromey.com>
12536
12537         * value.c (release_value): Update.
12538         * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
12539         (struct bpstats) <val>: Now a value_ref_ptr.
12540         * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
12541         (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
12542         (~watchpoint, print_it_watchpoint, watch_command_1)
12543         (invalidate_bp_value_on_memory_change): Update.
12544
12545 2018-04-06  Tom Tromey  <tom@tromey.com>
12546
12547         * varobj.c (varobj_clear_saved_item)
12548         (update_dynamic_varobj_children, install_new_value, ~varobj):
12549         Update.
12550         * value.h (value_incref): Move declaration earlier.
12551         (value_decref): Rename from value_free.
12552         (struct value_ref_policy): New.
12553         (value_ref_ptr): New typedef.
12554         (struct value_deleter): Remove.
12555         (gdb_value_up): Remove typedef.
12556         (release_value): Change return type.
12557         (release_value_or_incref): Remove.
12558         * value.c (set_value_parent): Update.
12559         (value_incref): Change return type.
12560         (value_decref): Rename from value_free.
12561         (value_free_to_mark, free_all_values, free_value_chain): Update.
12562         (release_value): Return value_ref_ptr.
12563         (release_value_or_incref): Remove.
12564         (record_latest_value, set_internalvar, clear_internalvar):
12565         Update.
12566         * stack.c (info_frame_command): Don't call value_free.
12567         * python/py-value.c (valpy_dealloc, valpy_new)
12568         (value_to_value_object): Update.
12569         * printcmd.c (do_examine): Update.
12570         * opencl-lang.c (lval_func_free_closure): Update.
12571         * mi/mi-main.c (register_changed_p): Don't call value_free.
12572         * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
12573         * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
12574         * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
12575         value_free.
12576         * guile/scm-value.c (vlscm_free_value_smob)
12577         (vlscm_scm_from_value): Update.
12578         * frame.c (frame_register_unwind, frame_unwind_register_signed)
12579         (frame_unwind_register_unsigned, get_frame_register_bytes)
12580         (put_frame_register_bytes): Don't call value_free.
12581         * findvar.c (address_from_register): Don't call value_free.
12582         * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
12583         * dwarf2loc.c (entry_data_value_free_closure)
12584         (value_of_dwarf_reg_entry, free_pieced_value_closure)
12585         (dwarf2_evaluate_loc_desc_full): Update.
12586         * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
12587         (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
12588         (~watchpoint, watch_command_1)
12589         (invalidate_bp_value_on_memory_change): Update.
12590         * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
12591
12592 2018-04-06  Simon Marchi  <simon.marchi@polymtl.ca>
12593
12594         PR gdb/23022
12595         * warning.m4: Add -Wno-error=deprecated-register.
12596         * configure: Re-generate.
12597
12598 2018-04-05  Tom Tromey  <tom@tromey.com>
12599
12600         * linespec.h: Remove include of "vec.h".
12601
12602 2018-04-05  Tom Tromey  <tom@tromey.com>
12603
12604         * linespec.c (typep): Remove typedef.
12605         (find_methods, find_superclass_methods): Take a std::vector.
12606         (find_method): Use std::vector.
12607
12608 2018-04-05  Tom Tromey  <tom@tromey.com>
12609
12610         * utils.c (compare_strings): Remove.
12611         * utils.h (compare_strings): Remove.
12612         * objc-lang.h (find_imps): Update.
12613         * objc-lang.c (find_methods): Take a std::vector.
12614         (uniquify_strings, find_imps): Likewise.
12615         * linespec.c (find_methods): Take a std::vector.
12616         (decode_objc): Use std::vector.
12617         (add_all_symbol_names_from_pspace, find_superclass_methods): Take
12618         a std::vector.
12619         (find_method, find_function_symbols): Use std::vector.
12620
12621 2018-04-05  Tom Tromey  <tom@tromey.com>
12622
12623         * completer.c (completion_tracker::completion_tracker): Remove
12624         cast.
12625         (completion_tracker::discard_completions): Likewise.
12626         * breakpoint.c (ambiguous_names_p): Remove cast.
12627         * ada-lang.c (_initialize_ada_language): Remove cast.
12628         * utils.h (streq): Update.
12629         (streq_hash): Add new declaration.
12630         * utils.c (streq): Return bool.
12631         (streq_hash): New function.
12632
12633 2018-04-05  Tom Tromey  <tom@tromey.com>
12634
12635         * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
12636         Remove a string copy.
12637
12638 2018-04-05  Tom Tromey  <tom@tromey.com>
12639
12640         * linespec.c (filter_results): Use std::vector.
12641         (decode_line_2, decode_line_full): Update.
12642
12643 2018-04-05  Tom Tromey  <tom@tromey.com>
12644
12645         * linespec.c (canonical_to_fullform): Return std::string.
12646         (filter_results): Update.
12647         (struct decode_line_2_item): Add constructor.
12648         <fullform, displayform>: Now std::string.
12649         (decode_line_2_compare_items): Now a std::sort comparator.
12650         (decode_line_2): Update.
12651
12652 2018-04-05  Tom Tromey  <tom@tromey.com>
12653
12654         * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
12655         (unexpected_linespec_error): Update.
12656         (linespec_parse_basic, parse_linespec): Update.
12657
12658 2018-04-05  Tom Tromey  <tom@tromey.com>
12659
12660         * linespec.c (linespec_parse_basic): Reindent.
12661
12662 2018-04-05  Tom Tromey  <tom@tromey.com>
12663
12664         * minsyms.h (iterate_over_minimal_symbols): Update.
12665         * minsyms.c (iterate_over_minimal_symbols): Take a
12666         gdb::function_view.
12667         * linespec.c (struct collect_minsyms): Remove.
12668         (compare_msyms): Now a std::sort comparator.
12669         (add_minsym): Add parameters.
12670         (search_minsyms_for_name): Update.  Use std::vector.
12671
12672 2018-04-03  Tom Tromey  <tom@tromey.com>
12673
12674         * mipsread.c (read_alphacoff_dynamic_symtab): Use
12675         gdb::byte_vector.
12676
12677 2018-04-02  Weimin Pan  <weimin.pan@oracle.com>
12678
12679         * MAINTAINERS (Write After Approval): Add Weimin Pan.
12680
12681 2018-04-02  Weimin Pan  <weimin.pan@oracle.com>
12682
12683         PR gdb/16959
12684         * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when 
12685         printing static type.
12686
12687 2018-04-01  Tom Tromey  <tom@tromey.com>
12688
12689         * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
12690         (rs6000_xfer_shared_libraries): Update.
12691
12692 2018-04-01  Simon Marchi  <simon.marchi@polymtl.ca>
12693
12694         * common/gdb_vecs.h (char_ptr): Remove.
12695         * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
12696
12697 2018-03-30  Simon Marchi  <simon.marchi@polymtl.ca>
12698
12699         * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
12700         with std::vector.
12701         * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
12702
12703 2018-03-30  Simon Marchi  <simon.marchi@polymtl.ca>
12704
12705         * tracepoint.h (struct uploaded_tp): Initialize fields.
12706         <actions, step_actions, cmd_strings>: Change type to
12707         std::vector<char *>.
12708         * tracepoint.c (get_uploaded_tp): Allocate with new.
12709         (free_uploaded_tps): Free with delete.
12710         (parse_tracepoint_definition): Adjust to std::vector change.
12711         * breakpoint.c (read_uploaded_action): Likewise.
12712         (create_tracepoint_from_upload): Likewise.
12713         * ctf.c (ctf_write_uploaded_tp): Likewise.
12714         (SET_ARRAY_FIELD): Likewise.
12715         * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
12716
12717 2018-03-30  Tom Tromey  <tom@tromey.com>
12718
12719         * solib-svr4.c (lm_info_read): Use gdb::byte_vector.  Return
12720         std::unique_ptr.
12721         (svr4_keep_data_in_core): Update.
12722         (svr4_read_so_list): Update.
12723
12724 2018-03-30  Tom Tromey  <tom@tromey.com>
12725
12726         * windows-nat.c (handle_output_debug_string, handle_exception):
12727         Update.
12728         * target.h (target_read_string): Update.
12729         * target.c (target_read_string): Change "string" to
12730         unique_xmalloc_ptr.
12731         * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
12732         Update.
12733         * solib-frv.c (frv_current_sos): Update.
12734         * solib-dsbt.c (dsbt_current_sos): Update.
12735         * solib-darwin.c (darwin_current_sos): Update.
12736         * linux-thread-db.c (inferior_has_bug): Update.
12737         * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
12738         Update.  Remove alloca.
12739         * ada-lang.c (ada_main_name): Update.
12740
12741 2018-03-30  Tom Tromey  <tom@tromey.com>
12742
12743         * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
12744         (struct dwo_file_deleter): New.
12745         (dwo_file_up): New typedef.
12746         (open_and_init_dwo_file): Use dwo_file_up.
12747         (free_dwo_file_cleanup): Remove.
12748
12749 2018-03-30  Tom Tromey  <tom@tromey.com>
12750
12751         * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
12752         (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
12753
12754 2018-03-30  Tom Tromey  <tom@tromey.com>
12755
12756         * dwarf2read.c (class free_cached_comp_units): New class.
12757         (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
12758         (free_cached_comp_units): Remove function.
12759
12760 2018-03-30  Tom Tromey  <tom@tromey.com>
12761
12762         * utils.h (make_cleanup_unpush_target): Remove.
12763         * inf-ptrace.c (struct target_unpusher): New.
12764         (target_unpush_up) New typedef.
12765         (inf_ptrace_create_inferior, inf_ptrace_attach): Use
12766         target_unpush_up.
12767         * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
12768
12769 2018-03-27  Tom Tromey  <tom@tromey.com>
12770
12771         * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
12772
12773 2018-03-27  Pedro Alves  <palves@redhat.com>
12774             Tom Tromey  <tom@tromey.com>
12775
12776         * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
12777         destructor.  Now a class.
12778         (gdb_readline_wrapper_cleanup): Remove function.
12779         (gdb_readline_wrapper): Remove cleanups.
12780
12781 2018-03-27  Tom Tromey  <tom@tromey.com>
12782
12783         * typeprint.h (struct type_print_options) <local_typedefs,
12784         global_typedefs>: Remove "struct" keyword.
12785         (class typedef_hash_table): New class.
12786         (recursively_update_typedef_hash, add_template_parameters)
12787         (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
12788         (find_typedef_in_hash): Don't declare.
12789         * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
12790         (typedef_hash_table::recursively_update): Rename from
12791         recursively_update_typedef_hash.  Now a member.
12792         (typedef_hash_table::add_template_parameters): Rename from
12793         add_template_parameters.  Now a member.
12794         (typedef_hash_table::typedef_hash_table): Now a constructor;
12795         rename from create_typedef_hash.
12796         (typedef_hash_table::~typedef_hash_table): Now a destructor;
12797         rename from free_typedef_hash.
12798         (do_free_typedef_hash, make_cleanup_free_typedef_hash)
12799         (do_free_global_table): Remove.
12800         (typedef_hash_table::typedef_hash_table): New constructor; renamed
12801         from copy_type_recursive.
12802         (create_global_typedef_table): Remove.
12803         (typedef_hash_table::find_global_typedef): Now a member of
12804         typedef_hash_table.
12805         (typedef_hash_table::find_typedef): Rename from
12806         find_typedef_in_hash; now a member.
12807         (whatis_exp): Update.
12808         * extension.h (struct ext_lang_type_printers): Add constructor and
12809         destructor.
12810         (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
12811         declare.
12812         * extension.c (ext_lang_type_printers::ext_lang_type_printers):
12813         Now a constructor; rename from start_ext_lang_type_printers.
12814         (ext_lang_type_printers): Now a destructor; rename from
12815         free_ext_lang_type_printers.
12816         * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
12817         Update.
12818         (c_type_print_base_struct_union): Update.  Remove cleanups.
12819
12820 2018-03-27  Tom Tromey  <tom@tromey.com>
12821
12822         * dwarf-index-write.c: Include <cmath>.
12823
12824 2018-03-27  Joel Brobecker  <brobecker@adacore.com>
12825
12826         * NEWS: Add entry describing new "set|show varsize-limit" command.
12827         * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
12828         command.
12829         * printcmd.c (_initialize_printcmd): Add "set var" alias of
12830         "set variable".
12831
12832 2018-03-27  Simon Marchi  <simon.marchi@ericsson.com>
12833
12834         * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
12835         dwarf-index-write.c
12836         (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
12837         * dwarf-index-common.c: New file.
12838         * dwarf-index-common.h: New file.
12839         * dwarf-index-write.c: New file.
12840         * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
12841         (struct dwarf2_section_info): Move from here.
12842         (dwarf2_section_info_def): Likewise.
12843         (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
12844         (offset_type): Likewise.
12845         (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
12846         (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
12847         (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
12848         (byte_swap): Likewise.
12849         (MAYBE_SWAP): Likewise.
12850         (dwarf2_per_cu_ptr): Likewise.
12851         (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
12852         (struct tu_stats): Likewise.
12853         (struct dwarf2_per_objfile): Likewise.
12854         (struct dwarf2_per_cu_data): Likewise.
12855         (struct signatured_type): Likewise.
12856         (sig_type_ptr): Likewise.
12857         (DEF_VEC_P (sig_type_ptr)): Likewise.
12858         (INDEX4_SUFFIX): Likewise.
12859         (INDEX5_SUFFIX): Likewise.
12860         (DEBUG_STR_SUFFIX): Likewise.
12861         (dwarf2_read_section): Make non-static.
12862         (mapped_index_string_hash): Move from here.
12863         (dwarf5_djb_hash): Likewise.
12864         (file_write): Likewise.
12865         (class data_buf): Likewise.
12866         (struct symtab_index_entry): Likewise.
12867         (struct mapped_symtab): Likewise.
12868         (find_slot): Likewise.
12869         (hash_expand): Likewise.
12870         (add_index_entry): Likewise.
12871         (uniquify_cu_indices): Likewise.
12872         (class c_str_view): Likewise.
12873         (class c_str_view_hasher): Likewise.
12874         (class vector_hasher): Likewise.
12875         (write_hash_table): Likewise.
12876         (psym_index_map): Likewise.
12877         (struct addrmap_index_data): Likewise.
12878         (add_address_entry): Likewise.
12879         (add_address_entry_worker): Likewise.
12880         (write_address_map): Likewise.
12881         (symbol_kind): Likewise.
12882         (write_psymbols): Likewise.
12883         (struct signatured_type_index_data): Likewise.
12884         (write_one_signatured_type): Likewise.
12885         (recursively_count_psymbols): Likewise.
12886         (recursively_write_psymbols): Likewise.
12887         (class debug_names): Likewise.
12888         (check_dwarf64_offsets): Likewise.
12889         (psyms_seen_size): Likewise.
12890         (write_gdbindex): Likewise.
12891         (write_debug_names): Likewise.
12892         (assert_file_size): Likewise.
12893         (write_psymtabs_to_index): Likewise.
12894         (save_gdb_index_command): Likewise.
12895         (_initialize_dwarf2_read): Don't register the "save gdb-index"
12896         command.
12897         * dwarf2read.h: New file.
12898
12899 2018-03-27  Joel Brobecker  <brobecker@adacore.com>
12900
12901         PR gdb/22670
12902         * dwarf2read.c (dwarf2_physname): Do not return the demangled
12903         symbol name if the CU's language stores symbol names in linkage
12904         format.
12905         * language.h (struct language_defn)
12906         <la_store_sym_names_in_linkage_form_p>: New field.  Adjust
12907         all instances of this struct.
12908
12909 2018-03-26  Tom Tromey  <tom@tromey.com>
12910
12911         * stack.c (backtrace_command_1): Remove verbose code.
12912
12913 2018-03-26  Tom Tromey  <tom@tromey.com>
12914
12915         * python/py-framefilter.c (py_print_type): Don't catch
12916         exceptions.  Return void.
12917         (py_print_value): Likewise.
12918         (py_print_single_arg): Likewise.
12919         (enumerate_args): Don't catch exceptions.
12920         (py_print_args): Likewise.
12921         (py_print_frame): Likewise.
12922         (gdbpy_apply_frame_filter): Catch exceptions here.
12923
12924 2018-03-26  Tom Tromey  <tom@tromey.com>
12925
12926         * stack.c (_initialize_stack): Remove trailing newlines from help
12927         text.  Add "Usage" line to "backtrace" help.
12928
12929 2018-03-26  Tom Tromey  <tom@tromey.com>
12930
12931         PR python/16486:
12932         * python/py-framefilter.c (py_print_args): Call wrap_hint.
12933
12934 2018-03-26  Tom Tromey  <tom@tromey.com>
12935
12936         * python/py-framefilter.c (py_print_single_arg): Return
12937         EXT_LANG_BT_ERROR from catch.
12938
12939 2018-03-26  Tom Tromey  <tom@tromey.com>
12940
12941         PR backtrace/15584:
12942         * stack.c (backtrace_command_1): Move some code into no-filters
12943         "if".
12944
12945 2018-03-26  Tom Tromey  <tom@tromey.com>
12946
12947         * python/py-framefilter.c (throw_quit_or_print_exception): New
12948         function.
12949         (gdbpy_apply_frame_filter): Use it.
12950
12951 2018-03-26  Tom Tromey  <tom@tromey.com>
12952
12953         PR cli/17716:
12954         * python/py-framefilter.c (py_print_type, py_print_value)
12955         (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
12956         RETURN_MASK_ERROR.
12957
12958 2018-03-26  Tom Tromey  <tom@tromey.com>
12959
12960         * python/py-framefilter.c (enumerate_args): Use
12961         gdb::unique_xmalloc_ptr.
12962
12963 2018-03-26  Tom Tromey  <tom@tromey.com>
12964
12965         * python/py-framefilter.c (py_print_frame): Return
12966         EXT_LANG_BT_OK.
12967         (gdbpy_apply_frame_filter): Update comment.
12968         * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
12969         Remove.
12970         <EXT_LANG_BT_NO_FILTERS>: Change value.
12971
12972 2018-03-26  Tom Tromey  <tom@tromey.com>
12973
12974         PR backtrace/15582:
12975         * stack.c (backtrace_command): Parse "hide" argument.
12976         * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
12977         * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
12978         constant.
12979
12980 2018-03-26  Tom Tromey  <tom@tromey.com>
12981
12982         * stack.c (backtrace_command_1): Remove "show_locals" parameter,
12983         add "flags".
12984         (backtrace_command): Remove "fulltrace", add "flags".
12985
12986 2018-03-26  Tom Tromey  <tom@tromey.com>
12987
12988         * stack.c (backtrace_command): Rewrite command line parsing.
12989
12990 2018-03-26  Simon Marchi  <simon.marchi@ericsson.com>
12991
12992         * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
12993
12994 2018-03-26  Simon Marchi  <simon.marchi@ericsson.com>
12995
12996         * filename-seen-cache.h: Add include guard.
12997
12998 2018-03-26  Keith Seitz  <keiths@redhat.com>
12999
13000         * symfile.c (place_section): Remove "struct" from section_addr_info
13001         in comment.
13002         * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
13003         "struct" keyword from section_addr_info.
13004
13005 2018-03-26  Alan Hayward  <alan.hayward@arm.com>
13006
13007         * regformats/regdef.h (reg): Add constructors.
13008
13009 2018-03-25  Pedro Alves  <palves@redhat.com>
13010
13011         * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
13012         if then/else bodies in var_func_name extraction.
13013
13014 2018-03-23  Weimin Pan  <weimin.pan@oracle.com>
13015
13016         * minsyms.c (lookup_minimal_symbol_and_objfile): Use
13017         lookup_minimal_symbol() to find symbol entry.
13018         * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
13019
13020 2018-03-23  Keith Seitz  <keiths@redhat.com>
13021
13022         PR c++/22968
13023         * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
13024         nested type definitions for C++, too.
13025
13026 2018-03-23  Tom Tromey  <tom@tromey.com>
13027
13028         * machoread.c (struct oso_el): Add a constructor.  Don't define as
13029         a typedef.
13030         (macho_register_oso): Remove.
13031         (macho_symtab_read): Take a std::vector.
13032         (oso_el_compare_name): Now a std::sort comparator.
13033         (macho_symfile_read_all_oso): Take a std::vector.
13034         (macho_symfile_read): Use std::vector.  Remove cleanups.
13035
13036 2018-03-22  Tom Tromey  <tom@tromey.com>
13037
13038         * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
13039         (record_full_goto_bookmark): Use std::string.
13040
13041 2018-03-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
13042
13043         PR tdep/18295
13044         * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
13045         a single mask.
13046
13047 2018-03-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
13048
13049         * rs6000-tdep.c (store_insn_p): New function.
13050         (skip_prologue): New variable alloca_reg_offset. Set lr_reg
13051         and cr_reg to their unshifted values. Use store_insn_p to
13052         match LR saves using either R1 or fdata->alloca_reg. Use
13053         store_insn_p to match CR saves. Set alloca_reg_offset
13054         when alloca_reg and framep are set. Remove lr_reg shift
13055         when assigning to fdata->lr_register.
13056
13057 2018-03-22  Andreas Arnez  <arnez@linux.vnet.ibm.com>
13058
13059         * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
13060         command line args instead of emitting a warning.
13061
13062 2018-03-22  Simon Marchi  <simon.marchi@polymtl.ca>
13063
13064         * tracepoint.h (struct static_tracepoint_marker): Initialize
13065         fields, define default constructor, move constructor and move
13066         assignment, disable the rest.
13067         <str_id, extra>: Make std::string.
13068         (release_static_tracepoint_marker): Remove.
13069         (free_current_marker): Remove.
13070         * tracepoint.c (free_current_marker): Remove.
13071         (parse_static_tracepoint_marker_definition): Adjust to
13072         std::string, use new hex2str overload.
13073         (release_static_tracepoint_marker): Remove.
13074         (print_one_static_tracepoint_marker): Get marker by reference
13075         and adjust to std::string.
13076         (info_static_tracepoint_markers_command): Adjust to std::vector
13077         changes
13078         * target.h (static_tracepoint_marker_p): Remove typedef.
13079         (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
13080         (struct target_ops) <to_static_tracepoint_marker_at>: Return
13081         bool.
13082         <to_static_tracepoint_markers_by_strid>: Return std::vector.
13083         * target-debug.h
13084         (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
13085         (target_debug_print_std_vector_static_tracepoint_marker): New.
13086         (target_debug_print_struct_static_tracepoint_marker_p): Rename
13087         to...
13088         (target_debug_print_static_tracepoint_marker_p): ... this.
13089         * target-delegates.c: Re-generate.
13090         * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
13091         Make std::string.
13092         * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
13093         (decode_static_tracepoint_spec): Adjust to std::vector.
13094         (tracepoint_print_one_detail): Adjust to std::string.
13095         (strace_marker_decode_location): Adjust to std::string.
13096         (update_static_tracepoint): Adjust to std::string, remove call
13097         to release_static_tracepoint_marker.
13098         * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
13099         Adjust to std::vector.
13100         * remote.c (remote_static_tracepoint_marker_at): Return bool.
13101         (remote_static_tracepoint_markers_by_strid): Adjust to
13102         std::vector.
13103         * common/rsp-low.h (hex2str): New overload with explicit count
13104         of bytes.
13105         * common/rsp-low.c (hex2str): New overload with explicit count
13106         of bytes.
13107         * unittests/rsp-low-selftests.c (test_hex2str): New function.
13108         (_initialize_rsp_low_selftests): Add test_hex2str test.
13109         * unittests/tracepoint-selftests.c
13110         (test_parse_static_tracepoint_marker_definition): Adjust to
13111         std::string.
13112
13113 2018-03-22  Simon Marchi  <simon.marchi@polymtl.ca>
13114
13115         * tracepoint.c (parse_static_tracepoint_marker_definition):
13116         Consider case where the definition is followed by more
13117         definitions.
13118         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13119         tracepoint-selftests.c.
13120         * unittests/tracepoint-selftests.c: New.
13121
13122 2018-03-21  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
13123
13124         * MAINTAINERS (Write After Approval): Add Pedro Franco de
13125         Carvalho.
13126
13127 2018-03-20  Stephen Roberts  <stephen.roberts@arm.com>
13128
13129         * symtab.c (find_pc_sect_line): fixed indentation.
13130
13131 2018-03-20  Stephen Roberts  <stephen.roberts@arm.com>
13132
13133         * symtab.c (find_pc_sect_line): now uses binary search.
13134
13135 2018-03-19  Tom Tromey  <tom@tromey.com>
13136
13137         * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
13138         "IDENT" production.
13139
13140 2018-03-19  Pedro Alves  <palves@redhat.com>
13141             Tom Tromey  <tom@tromey.com>
13142
13143         * unittests/observable-selftests.c: New file.
13144         * common/observable.h: New file.
13145         * observable.h: New file.
13146         * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
13147         arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
13148         breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
13149         corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
13150         extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
13151         infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
13152         linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
13153         mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
13154         ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
13155         python/py-breakpoint.c, python/py-finishbreakpoint.c,
13156         python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
13157         record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
13158         riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
13159         spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
13160         symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
13161         tui/tui-interp.c, valops.c: Update all users.
13162         * tui/tui-hooks.c (tui_bp_created_observer)
13163         (tui_bp_deleted_observer, tui_bp_modified_observer)
13164         (tui_inferior_exit_observer, tui_before_prompt_observer)
13165         (tui_normal_stop_observer, tui_register_changed_observer):
13166         Remove.
13167         (tui_observers_token): New global.
13168         (attach_or_detach, tui_attach_detach_observers): New functions.
13169         (tui_install_hooks, tui_remove_hooks): Use
13170         tui_attach_detach_observers.
13171         * record-btrace.c (record_btrace_thread_observer): Remove.
13172         (record_btrace_thread_observer_token): New global.
13173         * observer.sh: Remove.
13174         * observer.c: Rename to observable.c.
13175         * observable.c (namespace gdb_observers): Define new objects.
13176         (observer_debug): Move into gdb_observers namespace.
13177         (struct observer, struct observer_list, xalloc_observer_list_node)
13178         (xfree_observer_list_node, generic_observer_attach)
13179         (generic_observer_detach, generic_observer_notify): Remove.
13180         (_initialize_observer): Update.
13181         Don't include observer.inc.
13182         * Makefile.in (generated_files): Remove observer.h, observer.inc.
13183         (clean mostlyclean): Likewise.
13184         (observer.h, observer.inc): Remove targets.
13185         (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
13186         (COMMON_SFILES): Use observable.c, not observer.c.
13187         * .gitignore: Remove observer.h.
13188
13189 2018-03-18  Tom Tromey  <tom@tromey.com>
13190
13191         * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
13192         gdb::def_vector.
13193         (bfd_lookup_symbol_from_dyn_symtab): Likewise.
13194
13195 2018-03-17  Tom Tromey  <tom@tromey.com>
13196
13197         * auto-load.c (auto_load_objfile_script_1): Use std::string.
13198
13199 2018-03-17  Tom Tromey  <tom@tromey.com>
13200
13201         * target.c (class scoped_target_fd): New.
13202         (target_fileio_close_cleanup): Remove.
13203         (target_fileio_read_alloc_1): Use scoped_target_fd.
13204
13205 2018-03-16  Simon Marchi  <simon.marchi@polymtl.ca>
13206
13207         * silent-rules.mk: New.
13208         * Makefile.in: Include silent-rules.mk
13209         (srcdir, VPATH, top_srcdir): Move up.
13210         (COMPILE): Add ECHO_CXX.
13211         (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
13212         (init.c): Add ECHO_INIT_C.
13213         (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
13214         (version.c): Add ECHO_GEN.
13215         (printcmd.o): Add ECHO_CXX.
13216         (target-float.o): Add ECHO_CXX.
13217         (ada-exp.o): Add ECHO_CXX.
13218         (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
13219         (insight$(EXEEXT)): Add ECHO_CXXLD.
13220         * gnulib/configure.ac: Add AM_SILENT_RULES.
13221         * gnulib/aclocal.m4: Re-generate.
13222         * gnulib/configure: Re-generate.
13223         * gnulib/import/Makefile.in: Re-generate.
13224
13225 2018-03-16  Tom Tromey  <tom@tromey.com>
13226
13227         * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
13228         * utils.h (make_cleanup_free_section_addr_info): Don't declare.
13229         * utils.c (do_free_section_addr_info)
13230         (make_cleanup_free_section_addr_info): Remove.
13231         * symfile.h (struct other_sections): Add constructor.
13232         (struct section_addr_info): Remove.
13233         (section_addr_info): New typedef.
13234         (struct sym_fns) <sym_offsets>: Change type of parameter.
13235         (build_section_addr_info_from_objfile)
13236         (relative_addr_info_to_section_offsets, addr_info_make_relative)
13237         (default_symfile_offsets, symbol_file_add)
13238         (symbol_file_add_from_bfd)
13239         (build_section_addr_info_from_section_table): Update.
13240         (alloc_section_addr_info, free_section_addr_info): Don't declare.
13241         * symfile.c (alloc_section_addr_info): Remove.
13242         (build_section_addr_info_from_section_table): Change return type.
13243         Update.
13244         (build_section_addr_info_from_bfd)
13245         (build_section_addr_info_from_objfile): Likewise.
13246         (free_section_addr_info): Remove.
13247         (relative_addr_info_to_section_offsets): Change type of "addrs".
13248         (addrs_section_compar): Now a std::sort comparator.
13249         (addrs_section_sort): Change return type.
13250         (addr_info_make_relative): Change type of "addrs".  Update.
13251         (default_symfile_offsets, syms_from_objfile_1)
13252         (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
13253         (symbol_file_add_separate): Update.
13254         (symbol_file_add): Change type of "addrs".  Update.
13255         (add_symbol_file_command): Update.  Remove cleanups.
13256         * symfile-mem.c (symbol_file_add_from_memory): Update.  Remove
13257         cleanups.
13258         * symfile-debug.c (debug_sym_offsets): Change type of "info".
13259         * solib.c (solib_read_symbols): Update.
13260         * objfiles.c (objfile_relocate): Update.  Remove cleanups.
13261         * machoread.c (macho_symfile_offsets): Update.
13262         * jit.c (jit_bfd_try_read_symtab): Update.
13263
13264 2018-03-15  Simon Marchi  <simon.marchi@polymtl.ca>
13265
13266         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13267         unittests/utils-selftests.c.
13268         * unittests/utils-selftests.c: New file.
13269
13270 2018-03-14  Tom Tromey  <tom@tromey.com>
13271
13272         PR cli/14977:
13273         * printcmd.c (printf_c_string, printf_wide_c_string): Special case
13274         for NULL.
13275
13276 2018-03-14  Tom Tromey  <tom@tromey.com>
13277
13278         PR cli/19918:
13279         * printcmd.c (printf_pointer): Allow "-" in format.
13280
13281 2018-03-14  Tom Tromey  <tom@tromey.com>
13282
13283         * printcmd.c (_initialize_printcmd): Add usage to printf.
13284
13285 2018-03-14  Yao Qi  <qiyao@sourceware.org>
13286
13287         * MAINTAINERS: Update my email address.
13288
13289 2018-03-13  Tom Tromey  <tom@tromey.com>
13290
13291         * machoread.c (macho_check_dsym): Change filenamep to a
13292         std::string*.
13293         (macho_symfile_read): Update.
13294         * symfile.c (load_command): Use std::string.
13295
13296 2018-03-12  Andrew Burgess  <andrew.burgess@embecosm.com>
13297
13298         * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
13299         to error message string.
13300         (riscv_register_name): Use xsnprintf instead of sprintf.
13301         (riscv_insn::fetch_instruction): Use gdb_assert instead of
13302         internal_error.
13303         (riscv_print_arg_location): Use gdb_assert_not_reached instead of
13304         error.
13305         (riscv_push_dummy_call): Likewise.
13306
13307 2018-03-12  Tom Tromey  <tom@tromey.com>
13308
13309         * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
13310         Use gdb::byte_vector.
13311         * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
13312
13313 2018-03-12  Yao Qi  <yao.qi@linaro.org>
13314
13315         * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
13316         parameter type to readable_regcache.
13317         * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
13318         the declaration.
13319
13320 2018-03-11  Tom Tromey  <tom@tromey.com>
13321
13322         * dwarf2read.c (struct nextfield): Add initializers.
13323         (struct nextfnfield): Remove.
13324         (struct fnfieldlist): Add initializers.  Remove "length" and
13325         "head", use std::vector.
13326         (struct decl_field_list): Remove.
13327         (struct field_info): Add initializers.
13328         <fields, baseclasses>: Now std::vector.
13329         <nbaseclasses, nfnfields, typedef_field_list_count,
13330         nested_types_list_count>: Remove.
13331         (dwarf2_add_field, dwarf2_add_type_defn)
13332         (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
13333         (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
13334         (process_structure_scope): Update.
13335
13336 2018-03-11  Tom Tromey  <tom@tromey.com>
13337
13338         * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
13339         for use by std::sort.
13340         (build_type_psymtabs_1): Use std::vector.
13341
13342 2018-03-09  Eli Zaretskii  <eliz@gnu.org>
13343
13344         * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
13345         and LIBMPFR in the printed configuration.
13346
13347 2018-03-08  Tom Tromey  <tom@tromey.com>
13348
13349         * source.c (get_filename_and_charpos): Use scoped_fd.
13350         * nto-procfs.c (procfs_open_1): Use scoped_fd.
13351         (procfs_pidlist): Likewise.
13352         * procfs.c (proc_get_LDT_entry): Use scoped_fd.
13353         (iterate_over_mappings): Likewise.
13354
13355 2018-03-08  Tom Tromey  <tom@tromey.com>
13356
13357         * infcall.c (struct call_return_meta_info)
13358         <stack_temporaries_enabled>: Remove.
13359         (get_call_return_value, call_function_by_hand_dummy): Update.
13360         * thread.c (disable_thread_stack_temporaries): Remove.
13361         (enable_thread_stack_temporaries): Remove.
13362         (thread_stack_temporaries_enabled_p): Return bool.
13363         (push_thread_stack_temporary, value_in_thread_stack_temporaries)
13364         (get_last_thread_stack_temporary): Update.
13365         * eval.c (evaluate_subexp): Update.
13366         * gdbthread.h (class enable_thread_stack_temporaries): Now a
13367         class, not a function.
13368         (value_ptr, value_vec): Remove typedefs.
13369         (class thread_info) <stack_temporaries_enabled>: Now bool.
13370         <stack_temporaries>: Now a std::vector.
13371         (thread_stack_temporaries_enabled_p)
13372         (value_in_thread_stack_temporaries): Return bool.
13373
13374 2018-03-08  Simon Marchi  <simon.marchi@ericsson.com>
13375
13376         * remote.c (putpkt_binary): Fix omitted bytes reporting.
13377         (getpkt_or_notif_sane_1): Likewise.
13378
13379 2018-03-08  Simon Marchi  <simon.marchi@polymtl.ca>
13380
13381         * build-id.c (build_id_to_debug_bfd): Use std::string.
13382
13383 2018-03-08  Simon Marchi  <simon.marchi@polymtl.ca>
13384
13385         * build-id.c (find_separate_debug_file_by_buildid): Return
13386         std::string.
13387         * build-id.h (find_separate_debug_file_by_buildid): Return
13388         std::string.
13389         * coffread.c (coff_symfile_read): Adjust to std::string.
13390         * elfread.c (elf_symfile_read): Adjust to std::string.
13391         * symfile.c (separate_debug_file_exists): Change parameter to
13392         std::string.
13393         (find_separate_debug_file): Return std::string.
13394         (find_separate_debug_file_by_debuglink): Return std::string.
13395         * symfile.h (find_separate_debug_file_by_debuglink): Return
13396         std::string.
13397
13398 2018-03-08  Simon Marchi  <simon.marchi@polymtl.ca>
13399
13400         * common/xml-utils.c (xml_escape_text): Move code to...
13401         (xml_escape_text_append): ... this new function.
13402         * common/xml-utils.h (xml_escape_text_append): New declaration.
13403         * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
13404         New function.
13405         (_initialize_xml_utils): register test_xml_escape_text_append as
13406         a selftest.
13407
13408 2018-03-07  Alan Hayward  <alan.hayward@arm.com>
13409
13410         * defs.h: Remove MAX_REGISTER_SIZE.
13411         * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
13412         asserts.
13413         * python/py-unwind.c (pyuw_sniffer): Likewise.
13414
13415 2018-03-07  Tom Tromey  <tom@tromey.com>
13416
13417         * linux-tdep.c (linux_info_proc): Update.
13418         * target.h (struct target_ops) <to_fileio_readlink>: Return
13419         optional<string>.
13420         (target_fileio_readlink): Return optional<string>.
13421         * remote.c (remote_hostio_readlink): Return optional<string>.
13422         * inf-child.c (inf_child_fileio_readlink): Return
13423         optional<string>.
13424         * target.c (target_fileio_readlink): Return optional<string>.
13425
13426 2018-03-07  Andrew Burgess  <andrew.burgess@embecosm.com>
13427
13428         * regcache.c (cooked_read_test): Add riscv to the list of
13429         architectures that have a save_reggroup.
13430
13431 2018-03-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
13432
13433         * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
13434         value is not a dynamic class object.
13435
13436 2018-03-06  Tom Tromey  <tom@tromey.com>
13437
13438         * rust-exp.y: Formatting fixes.
13439
13440 2018-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
13441
13442         * riscv-tdep.c (riscv_register_name): Remove target description
13443         support.
13444         (riscv_gdbarch_init): Remove target description check.
13445
13446 2018-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
13447
13448         * riscv-tdep.c: Remove 'Contributed by ...' lines from header
13449         comment.
13450         * riscv-tdep.h: Likewise.
13451
13452 2018-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
13453
13454         * riscv-tdep.c (riscv_pseudo_register_read): Delete.
13455         (riscv_pseudo_register_write): Delete.
13456         (riscv_gdbarch_init): Remove all use of pseudo registers.
13457
13458 2018-03-06  Simon Marchi  <simon.marchi@polymtl.ca>
13459
13460         * record-btrace.c (btrace_print_lines): Replace cleanup
13461         parameter with RAII equivalents.
13462         (btrace_insn_history): Replace cleanup with RAII equivalents.
13463         * ui-out.h (make_cleanup_ui_out_list_begin_end,
13464         make_cleanup_ui_out_tuple_begin_end): Remove.
13465         * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
13466         make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
13467         make_cleanup_ui_out_list_begin_end): Remove.
13468
13469 2018-03-06  Simon Marchi  <simon.marchi@polymtl.ca>
13470
13471         * record-btrace.c (record_btrace_maybe_mark_async_event): Change
13472         parameter types to std::vector.  Use bool.
13473         (record_btrace_wait): Replace VEC(tp_t) with
13474         std::vector<thread_info *>.
13475         * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
13476
13477 2018-03-06  Simon Marchi  <simon.marchi@polymtl.ca>
13478
13479         * record-btrace.c (record_btrace_disable_callback): Remove.
13480         (struct scoped_btrace_disable): New.
13481         (record_btrace_open): Use scoped_btrace_disable.
13482
13483 2018-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
13484
13485         * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
13486         reading values from registers.
13487
13488 2018-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
13489
13490         * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
13491         where appropriate.
13492
13493 2018-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
13494
13495         * riscv-tdep.c (riscv_print_arg_location): Add header comment,
13496         change parameter type.  Use GDB's print functions, and use
13497         core_addr_to_string where appropriate.
13498         (riscv_push_dummy_call): Use core_addr_to_string where
13499         appropriate, update call to riscv_print_arg_location, and reindent
13500         a few lines.
13501         (riscv_return_value): Update call to riscv_print_arg_location.
13502
13503 2018-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
13504             Tim Newsome <tim@sifive.com>
13505             Albert Ou <a0u@eecs.berkeley.edu>
13506             Darius Rad <darius@bluespec.com>
13507
13508         * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
13509         (HFILES_NO_SRCDIR): Add riscv-tdep.h.
13510         (ALLDEPFILES): Add riscv-tdep.c
13511         * configure.tgt: Add riscv support.
13512         * riscv-tdep.c: New file.
13513         * riscv-tdep.h: New file.
13514         * NEWS: Mention new target.
13515         * MAINTAINERS: Add entry for riscv.
13516
13517 2018-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
13518
13519         * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
13520         fields within aggregates.
13521
13522 2018-03-04  Simon Marchi  <simon.marchi@polymtl.ca>
13523
13524         * record-btrace.c (btrace_print_lines): Change type of flags to
13525         gdb_disassembly_flags.
13526
13527 2018-03-04  John Baldwin  <jhb@FreeBSD.org>
13528
13529         * fbsd-nat.c: Include "inf-ptrace.h".
13530         (USE_SIGTRAP_SIGINFO): Conditionally define.
13531         [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
13532         (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
13533         [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
13534         function.
13535         [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
13536         Likewise.
13537         [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
13538         Likewise.
13539         (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
13540         "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
13541         "supports_stopped_by_hw_breakpoint" target methods.
13542
13543 2018-03-04  John Baldwin  <jhb@FreeBSD.org>
13544
13545         * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
13546         * fbsd-nat.c (debug_fbsd_nat): New variable.
13547         (show_fbsd_nat_debug): New function.
13548         (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
13549         (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
13550
13551 2018-03-04  John Baldwin  <jhb@FreeBSD.org>
13552
13553         * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
13554         * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
13555         prototype.
13556         * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
13557         (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
13558         method.
13559
13560 2018-03-02  Simon Marchi  <simon.marchi@polymtl.ca>
13561
13562         * common/gdb_vecs.c (free_char_ptr_vec): Remove.
13563         * common/gdb_vecs.h (free_char_ptr_vec): Remove.
13564
13565 2018-03-02  Simon Marchi  <simon.marchi@polymtl.ca>
13566
13567         * charset.c (struct charset_vector): New.
13568         (charsets): Change type to charset_vector.
13569         (find_charset_names): Adjust.
13570         (add_one): Adjust.
13571         (_initialize_charset): Adjust.
13572
13573 2018-03-02  Simon Marchi  <simon.marchi@polymtl.ca>
13574
13575         * progspace.h (struct program_space) <deleted_solibs>: Change
13576         type to std::vector<std::string>.
13577         * progspace.c (clear_program_space_solib_cache): Adjust.
13578         * breakpoint.c (print_solib_event): Adjust.
13579         (check_status_catch_solib): Adjust.
13580         * solib.c (update_solib_list): Adjust.
13581         * ui-out.h (class ui_out) <field_string>: New overload.
13582         * ui-out.c (ui_out::field_string): New overload.
13583
13584 2018-03-02  Simon Marchi  <simon.marchi@polymtl.ca>
13585
13586         * progspace.h (struct program_space): Add constructor and
13587         destructor, initialize fields.
13588         (add_program_space): Remove.
13589         * progspace.c (add_program_space): Rename to...
13590         (program_space::program_space): ... this.
13591         (release_program_space): Rename to...
13592         (program_space::~program_space): ... this.
13593         (delete_program_space): Use delete to delete program_space.
13594         (initialize_progspace): Use new to allocate program_space.
13595         * inferior.c (add_inferior_with_spaces): Likewise.
13596         (clone_inferior_command): Likewise.
13597         * infrun.c (follow_fork_inferior): Likewise.
13598         (handle_vfork_child_exec_or_exit): Likewise.
13599
13600 2018-03-02  Simon Marchi  <simon.marchi@polymtl.ca>
13601
13602         * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
13603         (delim_string_to_char_ptr_vec): Return std::vector of
13604         gdb::unique_xmalloc_ptr.
13605         (dirnames_to_char_ptr_vec_append): Take std::vector of
13606         gdb::unique_xmalloc_ptr.
13607         (dirnames_to_char_ptr_vec): Return std::vector of
13608         gdb::unique_xmalloc_ptr.
13609         * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
13610         Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
13611         (delim_string_to_char_ptr_vec): Return an std::vector of
13612         gdb::unique_xmalloc_ptr, adjust the code.
13613         (dirnames_to_char_ptr_vec_append): Take an std::vector of
13614         gdb::unique_xmalloc_ptr, adjust the code.
13615         (dirnames_to_char_ptr_vec): Return an std::vector of
13616         gdb::unique_xmalloc_ptr, adjust the code.
13617         * auto-load.c (auto_load_safe_path_vec): Change type to
13618         std::vector of gdb::unique_xmalloc_ptr.
13619         (auto_load_expand_dir_vars): Return an std::vector of
13620         gdb::unique_xmalloc_ptr, adjust the code.
13621         (auto_load_safe_path_vec_update): Adjust.
13622         (filename_is_in_auto_load_safe_path_vec): Adjust.
13623         (auto_load_objfile_script_1): Adjust.
13624         * build-id.c (build_id_to_debug_bfd): Adjust.
13625         * linux-thread-db.c (thread_db_load_search): Adjust.
13626         * source.c (add_path): Adjust.
13627         (openp): Adjust.
13628         * symfile.c (find_separate_debug_file): Adjust.
13629         * utils.c (do_free_char_ptr_vec): Remove.
13630         (make_cleanup_free_char_ptr_vec): Remove.
13631
13632 2018-03-01  Sergio Durigan Junior  <sergiodj@redhat.com>
13633
13634         PR gdb/22907
13635         * common/pathstuff.c: Conditionally include "<windows.h>".
13636
13637 2018-03-01  Georg Sauthoff  <mail@georg.so>
13638
13639         PR gdb/22888
13640         * gcore.in: Quote variables and switch interpreter to bash.
13641
13642 2018-03-01  Tom Tromey  <tom@tromey.com>
13643
13644         * dwarf2read.c (alloc_discriminant_info): Fix default_index
13645         assertion.  Add assertion for discriminant_index.
13646         (quirk_rust_enum): Use correct base type name in univariant case.
13647
13648 2018-03-01  Simon Marchi  <simon.marchi@ericsson.com>
13649
13650         * record.c (get_call_history_modifiers): Return a
13651         record_print_flags.
13652         (cmd_record_call_history): Adjust.
13653         * record-btrace.c (record_btrace_call_history): Adjust.
13654         (record_btrace_call_history_range): Adjust.
13655         (record_btrace_call_history_from): Adjust.
13656         * target-debug.h (target_debug_print_record_print_flags): New.
13657         * target-delegates.c: Re-generate.
13658         * target.c (target_call_history): Change flags type.
13659         (target_call_history_from): Likewise.
13660         (target_call_history_range): Likewise.
13661         * target.h (struct target_ops) <target_call_history>: Likewise.
13662         (target_call_history_from): Likewise.
13663         (target_call_history_range): Likewise.
13664
13665 2018-02-28  Sergio Durigan Junior  <sergiodj@redhat.com>
13666             Simon Marchi  <simon.marchi@polymtl.ca>
13667
13668         * common/common-utils.c: Include "sys/stat.h".
13669         (is_regular_file): Move here from "source.c"; change return
13670         type to "bool".
13671         * common/common-utils.h (is_regular_file): New prototype.
13672         * common/pathstuff.c (contains_dir_separator): New function.
13673         * common/pathstuff.h (contains_dir_separator): New prototype.
13674         * source.c: Don't include "sys/stat.h".
13675         (is_regular_file): Move to "common/common-utils.c".
13676
13677 2018-02-28  Sergio Durigan Junior  <sergiodj@redhat.com>
13678
13679         * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
13680         (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
13681         * auto-load.c: Include "common/pathstuff.h".
13682         * common/common-def.h (current_directory): Move here.
13683         * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
13684         function.
13685         * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
13686         prototype.
13687         * common/pathstuff.c: New file.
13688         * common/pathstuff.h: New file.
13689         * compile/compile.c: Include "common/pathstuff.h".
13690         * defs.h (current_directory): Move to "common/common-defs.h".
13691         * dwarf2read.c: Include "common/pathstuff.h".
13692         * exec.c: Likewise.
13693         * guile/scm-safe-call.c: Likewise.
13694         * linux-thread-db.c: Likewise.
13695         * main.c: Likewise.
13696         * nto-tdep.c: Likewise.
13697         * objfiles.c: Likewise.
13698         * source.c: Likewise.
13699         * symtab.c: Likewise.
13700         * utils.c: Include "common/pathstuff.h".
13701         (gdb_realpath): Move to "common/pathstuff.c".
13702         (gdb_realpath_keepfile): Likewise.
13703         (gdb_abspath): Likewise.
13704         * utils.h (gdb_realpath): Move to "common/pathstuff.h".
13705         (gdb_realpath_keepfile): Likewise.
13706         (gdb_abspath): Likewise.
13707
13708 2018-02-28  John Baldwin  <jhb@FreeBSD.org>
13709
13710         * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
13711         wildcard process pid for super_resume for kernels with a
13712         specific bug.
13713
13714 2018-02-27  Phil Muldoon  <pmuldoon@redhat.com>
13715
13716         * compile/compile.c (get_args): Add additional comments
13717         explaining function.
13718
13719 2018-02-27  Simon Marchi  <simon.marchi@polymtl.ca>
13720             Tom Tromey  <tom@tromey.com>
13721
13722         * target.h (memory_write_request_s): Remove typedef.  Don't define
13723         VEC.
13724         (target_write_memory_blocks): Change argument to std::vector.
13725         (struct memory_write_request): Add constructor.
13726         * target-memory.c (compare_block_starting_address): Return bool.
13727         Change argument types.
13728         (claim_memory): Change arguments to use std::vector.
13729         (split_regular_and_flash_blocks, blocks_to_erase)
13730         (compute_garbled_blocks): Likewise.
13731         (cleanup_request_data, cleanup_write_requests_vector): Remove.
13732         (target_write_memory_blocks): Change argument to std::vector.
13733         * symfile.c (struct load_section_data): Add constructor and
13734         destructor.  Use std::vector for "requests".
13735         (struct load_progress_data): Add initializers.
13736         (load_section_callback): Update.  Use "new".
13737         (clear_memory_write_data): Remove.
13738         (generic_load): Update.
13739
13740 2018-02-27  Alan Hayward  <alan.hayward@arm.com>
13741
13742         * arch/aarch64.h: Use common/tdesc.h.
13743
13744 2018-02-26  Maciej W. Rozycki  <macro@mips.com>
13745
13746         * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
13747         architecture with a 64-bit ABI.
13748
13749 2018-02-26  Maciej W. Rozycki  <macro@mips.com>
13750
13751         * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
13752         ahead of target description loading.
13753
13754 2018-02-26  Tom Tromey  <tom@tromey.com>
13755
13756         * stack.c (backtrace_command_1): Update.
13757         * python/python-internal.h (gdbpy_apply_frame_filter): Change type
13758         of "flags".
13759         * python/py-framefilter.c (py_print_frame)
13760         (gdbpy_apply_frame_filter): Change type of "flags".
13761         * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
13762         of "flags".
13763         (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
13764         (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
13765         * extension.h (enum frame_filter_flag): Rename from
13766         frame_filter_flags.
13767         (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
13768         (apply_ext_lang_frame_filter): Change type of "flags".
13769         * extension.c (apply_ext_lang_frame_filter): Change type of
13770         "flags".
13771         * extension-priv.h (struct extension_language_ops)
13772         <apply_frame_filter>: Change type of "flags".
13773
13774 2018-02-26  Tom Tromey  <tom@tromey.com>
13775
13776         PR python/16497:
13777         * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag.  Fix
13778         off-by-one in py_end computation.
13779         * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
13780         PRINT_MORE_FRAMES.
13781         * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
13782         constant.
13783
13784 2018-02-26  Tom Tromey  <tom@tromey.com>
13785
13786         * dwarf2read.c (struct variant_field): New.
13787         (struct nextfield) <variant>: New field.
13788         (dwarf2_add_field): Handle DW_TAG_variant_part.
13789         (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
13790         discriminated union.
13791         (read_structure_type): Handle DW_TAG_variant_part.
13792         (handle_struct_member_die): New function, extracted from
13793         process_structure_scope.  Handle DW_TAG_variant.
13794         (process_structure_scope): Handle discriminated unions.  Call
13795         handle_struct_member_die.
13796
13797 2018-02-26  Tom Tromey  <tom@tromey.com>
13798
13799         * rust-lang.h (rust_last_path_segment): Declare.
13800         * rust-lang.c (rust_last_path_segment): Now public.  Change
13801         contract.
13802         (struct disr_info): Remove.
13803         (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
13804         (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
13805         (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
13806         (rust_enum_p, rust_enum_variant): New function.
13807         (rust_underscore_fields): Remove "offset" parameter.
13808         (rust_print_enum): New function.
13809         (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
13810         <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
13811         (rust_print_struct_def): Add "for_rust_enum" parameter.  Handle
13812         enums.
13813         (rust_internal_print_type): New function, from rust_print_type.
13814         Remove enum code.
13815         (rust_print_type): Call rust_internal_print_type.
13816         (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
13817         Update enum handling.
13818         * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
13819         (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
13820         (rust_union_quirks): New functions.
13821         (process_full_comp_unit, process_full_type_unit): Call
13822         rust_union_quirks.
13823         (process_structure_scope): Update rust_unions if necessary.
13824
13825 2018-02-26  Tom Tromey  <tom@tromey.com>
13826
13827         * value.h (value_union_variant): Declare.
13828         * valops.c (value_union_variant): New function.
13829         * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
13830         (struct discriminant_info): New.
13831         (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
13832         enumerator.
13833         (struct main_type) <flag_discriminated_union>: New field.
13834
13835 2018-02-26  Tom Tromey  <tom@tromey.com>
13836
13837         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13838         unittests/unpack-selftests.c.
13839         * unittests/unpack-selftests.c: New file.
13840         * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
13841
13842 2018-02-26  Yao Qi  <yao.qi@linaro.org>
13843
13844         * dwarf2read.c (struct partial_die_info) <read>: New method.
13845         (read_partial_die): Remove the declaration.
13846         (load_partial_dies): Update.
13847         (partial_die_info::partial_die_info):
13848         (read_partial_die): Change it to partial_die_info::read.
13849
13850 2018-02-26  Yao Qi  <yao.qi@linaro.org>
13851
13852         * dwarf2read.c (struct partial_die_info) <fixup>: New method.
13853         (fixup_partial_die): Remove declaration.
13854         (scan_partial_symbols): Update.
13855         (partial_die_parent_scope): Likewise.
13856         (partial_die_full_name): Likewise.
13857         (fixup_partial_die): Change it to partial_die_info::fixup.
13858
13859 2018-02-26  Yao Qi  <yao.qi@linaro.org>
13860
13861         * dwarf2read.c (read_partial_die): Update the declaration.
13862         (load_partial_dies): Caller update.
13863         (read_partial_die): Remove one argument abbrev_len.
13864
13865 2018-02-26  Yao Qi  <yao.qi@linaro.org>
13866
13867         * dwarf2read.c (struct partial_die_info): Add ctor, delete
13868         assignment operator.
13869         (load_partial_dies): Use ctor and copy ctor.
13870         (read_partial_die): Update.
13871         (dwarf2_cu::find_partial_die): Use ctor.
13872
13873 2018-02-26  Yao Qi  <yao.qi@linaro.org>
13874
13875         * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
13876         (find_partial_die_in_comp_unit): Change it to
13877         dwarf2_cu::find_partial_die.
13878         (find_partial_die): Update.
13879
13880 2018-02-26  Yao Qi  <yao.qi@linaro.org>
13881
13882         * dwarf2read.c (read_partial_die): Remove the code checking abbrev
13883         is NULL.
13884
13885 2018-02-26  Yao Qi  <yao.qi@linaro.org>
13886
13887         * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
13888
13889 2018-02-26  Alan Hayward  <alan.hayward@arm.com>
13890
13891         * arch/amd64.h: Use common/tdesc.h.
13892         * arch/i386.c: Likewise.
13893         * arch/i386.h: Likewise.
13894         * arch/tic6x.c: Likewise.
13895         * arch/tdesc.h: Move file from here...
13896         * common/tdesc.h: ...to here.
13897         * features/aarch64-core.c: Regenerate.
13898         * features/aarch64-fpu.c: Regenerate.
13899         * features/i386/32bit-avx.c: Regenerate.
13900         * features/i386/32bit-avx512.c: Regenerate.
13901         * features/i386/32bit-core.c: Regenerate.
13902         * features/i386/32bit-linux.c: Regenerate.
13903         * features/i386/32bit-mpx.c: Regenerate.
13904         * features/i386/32bit-pkeys.c: Regenerate.
13905         * features/i386/32bit-sse.c: Regenerate.
13906         * features/i386/64bit-avx.c: Regenerate.
13907         * features/i386/64bit-avx512.c: Regenerate.
13908         * features/i386/64bit-core.c: Regenerate.
13909         * features/i386/64bit-linux.c: Regenerate.
13910         * features/i386/64bit-mpx.c: Regenerate.
13911         * features/i386/64bit-pkeys.c: Regenerate.
13912         * features/i386/64bit-segments.c: Regenerate.
13913         * features/i386/64bit-sse.c: Regenerate.
13914         * features/i386/x32-core.c: Regenerate.
13915         * features/tic6x-c6xp.c: Regenerate.
13916         * features/tic6x-core.c: Regenerate.
13917         * features/tic6x-gp.c: Regenerate.
13918         * target-descriptions.c: Use common/tdesc.h.
13919         * target-descriptions.h: Likewise.
13920
13921 2018-02-24  Tom Tromey  <tom@tromey.com>
13922
13923         * linux-thread-db.c (try_thread_db_load_from_pdir_1)
13924         (try_thread_db_load_from_dir, thread_db_load_search): Use
13925         std::string.
13926         (info_auto_load_libthread_db_compare): Return bool.  Change
13927         argument types.
13928         (info_auto_load_libthread_db): Use std::vector, std::string.
13929         Remove cleanups.
13930
13931 2018-02-24  Tom Tromey  <tom@tromey.com>
13932
13933         * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
13934         std::string.
13935         * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
13936         std::string*.
13937         * gdbarch.c: Rebuild.
13938         * gdbarch.h: Rebuild.
13939         * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
13940         * arch-utils.h (default_fast_tracepoint_valid_at): Update.
13941         * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
13942         std::string*.
13943
13944 2018-02-23  Simon Marchi  <simon.marchi@polymtl.ca>
13945
13946         * gdbtypes.h (sect_offset): Change type to uint64_t.
13947         (sect_offset_str): New function.
13948         * dwarf2read.c (create_addrmap_from_aranges): Use
13949         sect_offset_str.
13950         (error_check_comp_unit_head): Likewise.
13951         (create_debug_type_hash_table): Likewise.
13952         (read_cutu_die_from_dwo): Likewise.
13953         (init_cutu_and_read_dies): Likewise.
13954         (init_cutu_and_read_dies_no_follow): Likewise.
13955         (process_psymtab_comp_unit_reader): Likewise.
13956         (partial_die_parent_scope): Likewise.
13957         (peek_die_abbrev): Likewise.
13958         (process_queue): Likewise.
13959         (dwarf2_physname): Likewise.
13960         (read_namespace_alias): Likewise.
13961         (read_import_statement): Likewise.
13962         (create_dwo_cu_reader): Likewise.
13963         (create_cus_hash_table): Likewise.
13964         (lookup_dwo_cutu): Likewise.
13965         (inherit_abstract_dies): Likewise.
13966         (read_func_scope): Likewise.
13967         (read_call_site_scope): Likewise.
13968         (dwarf2_add_member_fn): Likewise.
13969         (read_common_block): Likewise.
13970         (read_module_type): Likewise.
13971         (read_typedef): Likewise.
13972         (read_subrange_type): Likewise.
13973         (load_partial_dies): Likewise.
13974         (read_partial_die): Likewise.
13975         (find_partial_die): Likewise.
13976         (read_str_index): Likewise.
13977         (dwarf2_string_attr): Likewise.
13978         (build_error_marker_type): Likewise.
13979         (lookup_die_type): Likewise.
13980         (dump_die_shallow): Likewise.
13981         (follow_die_ref): Likewise.
13982         (dwarf2_fetch_die_loc_sect_off): Likewise.
13983         (dwarf2_fetch_constant_bytes): Likewise.
13984         (follow_die_sig): Likewise.
13985         (get_signatured_type): Likewise.
13986         (get_DW_AT_signature_type): Likewise.
13987         (dwarf2_find_containing_comp_unit): Likewise.
13988         (set_die_type): Likewise.
13989
13990 2018-02-21  John Baldwin  <jhb@FreeBSD.org>
13991
13992         * arch/aarch64.c: Include "common-defs.h".
13993         * arch/amd64.c: Likewise.
13994         * arch/i386.c: Likewise.
13995
13996 2018-02-21  Tom Tromey  <tom@tromey.com>
13997
13998         * value.h: (extract_field_op): Update.
13999         * eval.c (extract_field_op): Return a const char *.
14000         * expression.h (parse_expression_for_completion): Update.
14001         * completer.c (complete_expression): Update.
14002         (add_struct_fields): Make fieldname const.
14003         * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
14004         (mark_completion_tag, parse_exp_in_context_1): Update.
14005         (parse_expression_for_completion): Change "name" to
14006         unique_xmalloc_ptr*.
14007
14008 2018-02-21  Tom Tromey  <tom@tromey.com>
14009
14010         * infcall.c (call_function_by_hand_dummy): Use std::vector.
14011
14012 2018-02-21  Yao Qi  <yao.qi@linaro.org>
14013
14014         * avr-tdep.c (avr_read_pc): Change parameter type to
14015         readable_regcache.
14016         * gdbarch.sh (read_pc): Likewise.
14017         * gdbarch.c: Re-generated.
14018         * gdbarch.h: Re-generated.
14019         * hppa-tdep.c (hppa_read_pc): Change parameter type to
14020         readable_regcache.
14021         * ia64-tdep.c (ia64_read_pc): Likewise.
14022         * mips-tdep.c (mips_read_pc): Likewise.
14023         * spu-tdep.c (spu_read_pc): Likewise.
14024
14025 2018-02-21  Yao Qi  <yao.qi@linaro.org>
14026
14027         * Makefile.in (COMMON_SFILES): Add regcache-dump.c
14028         * regcache-dump.c: New file.
14029         * regcache.c: Move register_dump to regcache-dump.c.
14030         (maintenance_print_registers): Likewise.
14031         (maintenance_print_raw_registers): Likewise.
14032         (maintenance_print_cooked_registers): Likewise.
14033         (maintenance_print_register_groups): Likewise.
14034         (maintenance_print_remote_registers): Likewise.
14035         (_initialize_regcache): Likewise.
14036         * regcache.h (register_dump): Moved from regcache.c.
14037
14038 2018-02-21  Yao Qi  <yao.qi@linaro.org>
14039
14040         * regcache.c (regcache::regcache): Update.
14041         (regcache::invalidate): Move it to detached_regcache::invalidate.
14042         (get_thread_arch_aspace_regcache): Update.
14043         (regcache::raw_update): Update.
14044         (regcache::cooked_read): Remove some code.
14045         (regcache::cooked_read_value): Likewise.
14046         (regcache::raw_write): Remove assert on m_readonly_p.
14047         (regcache::raw_supply_integer): Move it to
14048         detached_regcache::raw_supply_integer.
14049         (regcache::raw_supply_zeroed): Likewise.
14050         * regcache.h (detached_regcache) <raw_supply_integer>: New
14051         declaration.
14052         <raw_supply_zeroed, invalidate>: Likewise.
14053         (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
14054         <invalidate>: Likewise.
14055         <m_readonly_p>: Removed.
14056
14057 2018-02-21  Yao Qi  <yao.qi@linaro.org>
14058
14059         * infcmd.c (get_return_value): Let stop_regs point to
14060         get_current_regcache.
14061         * regcache.c (regcache::regcache): Remove.
14062         (register_dump_reg_buffer): New class.
14063         (regcache_print): Adjust.
14064         * regcache.h (regcache): Remove constructors.
14065
14066 2018-02-21  Yao Qi  <yao.qi@linaro.org>
14067
14068         * regcache.c (class register_dump): New class.
14069         (register_dump_regcache, register_dump_none): New class.
14070         (register_dump_remote, register_dump_groups): New class.
14071         (regcache_print): Update.
14072         * regcache.h (regcache_dump_what): Move it to regcache.c.
14073         (regcache) <dump>: Remove.
14074
14075 2018-02-21  Yao Qi  <yao.qi@linaro.org>
14076
14077         * jit.c (struct jit_unwind_private) <regcache>: Change its type to
14078          reg_buffer_rw *.
14079         (jit_unwind_reg_set_impl): Call raw_supply.
14080         (jit_frame_sniffer): Use reg_buffer_rw.
14081         * record-full.c (record_full_core_regbuf): Change its type.
14082         (record_full_core_open_1): Use reg_buffer_rw.
14083         (record_full_close): Likewise.
14084         (record_full_core_fetch_registers): Use regcache->raw_supply.
14085         (record_full_core_store_registers): Likewise.
14086         * regcache.c (regcache::get_register_status): Move it to
14087         reg_buffer.
14088         (regcache_raw_set_cached_value): Remove.
14089         (regcache::raw_set_cached_value): Remove.
14090         (regcache::raw_write): Call raw_supply.
14091         (regcache::raw_supply): Move it to reg_buffer_rw.
14092         * regcache.h (regcache_raw_set_cached_value): Remove.
14093         (reg_buffer_rw): New class.
14094
14095 2018-02-21  Yao Qi  <yao.qi@linaro.org>
14096
14097         * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
14098         readonly_detached_regcache.
14099         (dummy_frame_prev_register): Use regcache->cooked_read.
14100         * frame.c (frame_save_as_regcache): Change return type.
14101         (frame_pop): Update.
14102         * frame.h (frame_save_as_regcache): Update declaration.
14103         * inferior.h (get_infcall_suspend_state_regcache): Update
14104         declaration.
14105         * infrun.c (infcall_suspend_state) <registers>: use
14106         readonly_detached_regcache.
14107         (save_infcall_suspend_state): Don't use regcache_dup.
14108         (get_infcall_suspend_state_regcache): Change return type.
14109         * linux-fork.c (struct fork_info) <savedregs>: Change to
14110         readonly_detached_regcache.
14111         <pc>: New field.
14112         (fork_save_infrun_state): Don't use regcache_dup.
14113         (info_checkpoints_command): Adjust.
14114         * mi/mi-main.c (register_changed_p): Update declaration.
14115         (mi_cmd_data_list_changed_registers): Use
14116         readonly_detached_regcache.
14117         (register_changed_p): Change parameter type to
14118         readonly_detached_regcache.
14119         * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
14120         readonly_detached_regcache.
14121         (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
14122         * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
14123         New.
14124         (regcache::save): Move it to reg_buffer.
14125         (regcache::restore): Change parameter type.
14126         (regcache_dup): Remove.
14127         * regcache.h (reg_buffer) <save>: New method.
14128         (readonly_detached_regcache): New class.
14129         * spu-tdep.c (spu2ppu_cache) <regcache>: Use
14130         readonly_detached_regcache.
14131         (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
14132
14133 2018-02-21  Yao Qi  <yao.qi@linaro.org>
14134
14135         * frame.c (frame_save_as_regcache): Use regcache method save.
14136         (frame_pop): Use regcache method restore.
14137         * infrun.c (restore_infcall_suspend_state): Likewise.
14138         * linux-fork.c (fork_load_infrun_state): Likewise.
14139         * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
14140         save.
14141         * regcache.c (regcache_save): Remove.
14142         (regcache::restore): More asserts.
14143         (regcache_cpy): Remove.
14144         * regcache.h (regcache_save): Remove the declaration.
14145         (regcache::restore): Move from private to public.
14146         Remove the friend declaration of regcache_cpy.
14147         (regcache_cpy): Remove declaration.
14148
14149 2018-02-21  Yao Qi  <yao.qi@linaro.org>
14150
14151         * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
14152         parameter type to 'readable_regcache *'.
14153         * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
14154         * arm-tdep.c (arm_neon_quad_read): Likewise.
14155         (arm_pseudo_read): Likewise.
14156         * avr-tdep.c (avr_pseudo_register_read): Likewise.
14157         * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
14158         * frv-tdep.c (frv_pseudo_register_read): Likewise.
14159         * gdbarch.c: Re-generated.
14160         * gdbarch.h: Re-generated.
14161         * gdbarch.sh (pseudo_register_read): Change parameter type to
14162         'readable_regcache *'.
14163         (pseudo_register_read_value): Likewise.
14164         * h8300-tdep.c (pseudo_from_raw_register): Likewise.
14165         (h8300_pseudo_register_read): Likewise.
14166         * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
14167         * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
14168         (i386_pseudo_register_read_into_value): Likewise.
14169         (i386_pseudo_register_read_value): Likewise.
14170         * i386-tdep.h (i386_pseudo_register_read_into_value): Update
14171         declaration.
14172         * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
14173         * m32c-tdep.c (m32c_raw_read): Likewise.
14174         (m32c_read_flg): Likewise.
14175         (m32c_banked_register): Likewise.
14176         (m32c_banked_read): Likewise.
14177         (m32c_sb_read): Likewise.
14178         (m32c_part_read): Likewise.
14179         (m32c_cat_read): Likewise.
14180         (m32c_r3r2r1r0_read): Likewise.
14181         (m32c_pseudo_register_read): Likewise.
14182         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
14183         * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
14184         (mep_pseudo_cr64_read): Likewise.
14185         (mep_pseudo_register_read): Likewise.
14186         * mips-tdep.c (mips_pseudo_register_read): Likewise.
14187         * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
14188         * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
14189         * regcache.c (regcache::raw_read): Move it to readable_regcache.
14190         (regcache::cooked_read): Likewise.
14191         (regcache::cooked_read_value): Likewise.
14192         (regcache_cooked_read_signed):
14193         (regcache::cooked_read): Likewise.
14194         * regcache.h (readable_regcache): New class.
14195         (regcache): Inherit readable_regcache.  Move some methods to
14196         readable_regcache.
14197         * rl78-tdep.c (rl78_pseudo_register_read): Change
14198         parameter type to 'readable_regcache *'.
14199         * rs6000-tdep.c (do_regcache_raw_read): Remove.
14200         (e500_pseudo_register_read): Change parameter type to
14201         'readable_regcache *'.
14202         (dfp_pseudo_register_read): Likewise.
14203         (vsx_pseudo_register_read): Likewise.
14204         (efpr_pseudo_register_read): Likewise.
14205         * s390-tdep.c (s390_pseudo_register_read): Likewise.
14206         * sh-tdep.c (sh_pseudo_register_read): Likewise.
14207         * sh64-tdep.c (pseudo_register_read_portions): Likewise.
14208         (sh64_pseudo_register_read): Likewise.
14209         * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
14210         * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
14211         * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
14212         (spu_pseudo_register_read): Likewise.
14213         * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
14214         (xtensa_pseudo_register_read): Likewise.
14215
14216 2018-02-21  Yao Qi  <yao.qi@linaro.org>
14217
14218         * regcache.c (regcache::regcache): Call reg_buffer ctor.
14219         (regcache::arch): Move it to reg_buffer::arch.
14220         (regcache::register_buffer): Likewise.
14221         (regcache::assert_regnum): Likewise.
14222         (regcache::num_raw_registers): Likewise.
14223         * regcache.h (reg_buffer): New class.
14224         (regcache): Inherit reg_buffer.
14225
14226 2018-02-20  Simon Marchi  <simon.marchi@ericsson.com>
14227
14228         * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
14229         gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
14230
14231 2018-02-20  Markus Metzger  <markus.t.metzger@intel.com>
14232
14233         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
14234
14235 2018-02-19  Alan Hayward  <alan.hayward@arm.com>
14236
14237         * Makefile.in: (COMMON_SFILES): Add common/*.c files.
14238         (SFILES): Remove common/*.c files.
14239         (COMMON_OBS): Remove some *.o files built from common/*.c files.
14240         * common/common.host: Add common reference.
14241         * configure.ac: Likewise.
14242         * configure: Regenerate.
14243
14244 2018-02-16  Yao Qi  <yao.qi@linaro.org>
14245
14246         * block.c (block_namespace_info): Inherit allocate_on_obstack.
14247         (block_initialize_namespace): Use new.
14248         * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
14249         (dwarf2_free_objfile): Use delete.
14250         * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
14251         (copy_type_recursive): Use new.
14252         * gdb_obstack.h (allocate_on_obstack): New.
14253
14254 2018-02-15  Yao Qi  <yao.qi@linaro.org>
14255
14256         PR gdb/22849
14257         * inferior.c (exit_inferior_1): Reset inf->control.
14258
14259 2018-02-15  Joel Brobecker  <brobecker@adacore.com>
14260
14261         * ada-lang.c (ada_to_fixed_value_create): Delete advance
14262         declaration.
14263
14264 2018-02-14  Pedro Alves  <palves@redhat.com>
14265
14266         * frame-unwind.c (frame_unwind_try_unwinder): Always call
14267         frame_cleanup_after_sniffer on exception.
14268
14269 2018-02-14  Tom Tromey  <tom@tromey.com>
14270
14271         * solist.h (struct target_so_ops) <bfd_open>: Make pathname
14272         const.
14273         (solib_bfd_open): Make pathname const.
14274         * solib.c (solib_bfd_open): Make pathname const.
14275         * solib-spu.c (spu_bfd_fopen): Make name const.
14276         (spu_bfd_open): Make pathname const.
14277         * solib-darwin.c (darwin_bfd_open): Make pathname const.
14278         * solib-aix.c (solib_aix_bfd_open): Make pathname const.
14279
14280 2018-02-14  Tom Tromey  <tom@tromey.com>
14281
14282         * symfile.c (symfile_bfd_open): Update.
14283         * source.h (openp, source_full_path_of, find_and_open_source):
14284         Change argument type to unique_xmalloc_ptr.
14285         * source.c (openp): Take a unique_xmalloc_ptr.
14286         (source_full_path_of, find_and_open_source): Likewise.
14287         (open_source_file, symtab_to_fullname): Update.
14288         * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
14289         unique_xmalloc_ptr.
14290         * solib.c (solib_find_1): Use unique_xmalloc_ptr.
14291         (exec_file_find): Update.
14292         * psymtab.c (psymtab_to_fullname): Update.
14293         * nto-tdep.h (nto_find_and_open_solib): Update.
14294         * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
14295         unique_xmalloc_ptr.
14296         * exec.c (exec_file_attach): Update.
14297         * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
14298         * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
14299
14300 2018-02-14  Tom Tromey  <tom@tromey.com>
14301
14302         * solib.c: Include source.h.
14303         * nto-tdep.c: Include source.h.
14304         * mi/mi-cmd-env.c: Include source.h.
14305         * infcmd.c: Include source.h.
14306         * exec.c: Include source.h.
14307         * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
14308         (add_path, directory_switch, source_path, init_source_path): Move
14309         declarations...
14310         * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
14311         (add_path, directory_switch, source_path, init_source_path):
14312         ...here.
14313
14314 2018-02-14  Tom Tromey  <tom@tromey.com>
14315
14316         * solist.h (exec_file_find, solib_find): Return
14317         unique_xmalloc_ptr.
14318         (solib_bfd_fopen): Take a const char *.
14319         * solib.c (solib_find_1): Return unique_xmalloc_ptr.
14320         (exec_file_find, solib_find): Likewise.
14321         (solib_bfd_fopen): Do not take ownership of "pathname".
14322         (solib_bfd_open): Use unique_xmalloc_ptr.
14323         * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
14324         * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
14325         * infrun.c (follow_exec): Use unique_xmalloc_ptr.
14326         * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
14327
14328 2018-02-14  Joel Brobecker  <brobecker@adacore.com>
14329
14330         * ada-lang.c (name_match_type_from_name): Remove reference to
14331         ada_name_for_lookup in function's documentation.
14332         * ada-lang.h (ada_name_for_lookup): Delete declaration.
14333
14334 2018-02-13  Simon Marchi  <simon.marchi@polymtl.ca>
14335
14336         * defs.h (enum openp_flags): New enum.
14337         (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
14338         Move to enum openp_flags.
14339         (openp_flags): New enum flags.
14340         (openp): Change parameter type to openp_flags.
14341         * source.c (openp): Change parameter type to openp_flags.
14342         * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
14343         * dwarf2read.c (try_open_dwop_file): Use openp_flags.
14344
14345 2018-02-13  Simon Marchi  <simon.marchi@polymtl.ca>
14346
14347         * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
14348         per-command.
14349
14350 2018-02-12  Andrew Burgess  <andrew.burgess@embecosm.com>
14351
14352         * dwarf2read.c (dwarf2_release_queue): Delete function, move body
14353         into...
14354         (class dwarf2_queue_guard): ...the destructor of this new class.
14355         (dw2_do_instantiate_symtab): Create instance of the new class
14356         dwarf2_queue_guard, remove cleanup.
14357
14358 2018-02-09  Tom Tromey  <tom@tromey.com>
14359
14360         * source.c (find_source_lines): Don't reference past the end of
14361         the vector.
14362
14363 2018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
14364
14365         * remote.c (remote_btrace_maybe_reopen): Change error message.
14366         * btrace.c (btrace_enable): Likewise.
14367         (parse_xml_btrace): Likewise.
14368         (parse_xml_btrace_conf): Likewise.
14369
14370 2018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
14371
14372         * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
14373         (linux_enable_pt, linux_enable_bts): Call
14374         diagnose_perf_event_open_fail.
14375
14376 2018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
14377
14378         * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
14379         Remove parameter and change return type.  Update callers.  Move it.
14380         (linux_enable_bts, linux_enable_pt): Improve error message.
14381         (linux_enable_pt): Remove zero buffer size check.
14382         (linux_enable_btrace): Improve error messages.  Remove NULL return
14383         check.
14384
14385 2018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
14386
14387         * btrace.c (btrace_enable): Remove target_supports_btrace call.
14388         * nat/linux-btrace.c (perf_event_pt_event_type): Move.
14389         (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
14390         (linux_supports_pt, linux_supports_btrace): Remove.
14391         (linux_enable_bts): Call cpu_supports_bts.
14392         * nat/linux-btrace.h (linux_supports_btrace): Remove.
14393         * remote.c (remote_supports_btrace): Remove.
14394         (init_remote_ops): Remove remote_supports_btrace.
14395         * target-delegates.c: Regenerated.
14396         * target.c (target_supports_btrace): Remove.
14397         * target.h (target_ops) <to_supports_btrace>: Remove
14398         (target_supports_btrace): Remove.
14399         * x86-linux-nat.c (x86_linux_create_target): Remove
14400         linux_supports_btrace.
14401
14402 2018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
14403
14404         * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
14405         btrace failed.
14406         * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
14407         exception and use message in own exception.
14408
14409 2018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
14410
14411         * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
14412         (perf_event_pt_event_type): Use gdb_file_up.
14413         (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
14414         scoped_fd, and scoped_mmap.
14415
14416 2018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
14417
14418         * common/scoped_mmap.h: New.
14419         * unittests/scoped_mmap-selftest.c: New.
14420         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14421         unittests/scoped_mmap-selftest.c.
14422
14423 2018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
14424
14425         * common/scoped_fd.h: New.
14426         * unittests/scoped_fd-selftest.c: New.
14427         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14428         unittests/scoped_fd-selftest.c.
14429
14430 2018-02-09  Tom Tromey  <tom@tromey.com>
14431
14432         * auto-load.c (auto_load_section_scripts): Use
14433         gdb::unique_xmalloc_ptr.
14434
14435 2018-02-09  Tom Tromey  <tom@tromey.com>
14436
14437         * auto-load.c (execute_script_contents): Use std::string.
14438
14439 2018-02-09  Joel Brobecker  <brobecker@adacore.com>
14440
14441         * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
14442         Python function, rather than a new command.
14443
14444 2018-02-08  Tom Tromey  <tom@tromey.com>
14445
14446         * solib.c (solib_find_1): Use std::string.
14447         (solib_bfd_fopen): Use unique_xmalloc_ptr.
14448
14449 2018-02-08  Tom Tromey  <tom@tromey.com>
14450
14451         * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
14452
14453 2018-02-08  Tom Tromey  <tom@tromey.com>
14454
14455         * source.c (find_source_lines): Use gdb::def_vector.
14456
14457 2018-02-08  Tom Tromey  <tom@tromey.com>
14458
14459         * macrocmd.c (struct temporary_macro_definition): New.
14460         (macro_define_command): Use temporary_macro_definition.  Remove
14461         cleanups.
14462         (free_macro_definition_ptr): Remove.
14463
14464 2018-02-08  Tom Tromey  <tom@tromey.com>
14465
14466         * macroexp.c (maybe_expand): Use std::string.
14467
14468 2018-02-08  Tom Tromey  <tom@tromey.com>
14469
14470         * macroexp.c (struct macro_buffer): Add initializers for some
14471         members.
14472         (init_buffer, init_shared_buffer, free_buffer)
14473         (free_buffer_return_text): Remove.
14474         (macro_buffer): New constructors.
14475         (~macro_buffer): New destructor.
14476         (macro_buffer::set_shared): New method.
14477         (macro_buffer::resize_buffer, macro_buffer::appendc)
14478         (macro_buffer::appendmem): Now methods, not free functions.
14479         (set_token, append_tokens_without_splicing, stringify)
14480         (macro_stringify): Update.
14481         (gather_arguments): Change return type.  Remove argc_p argument,
14482         add args_ptr argument.  Use std::vector.
14483         (substitute_args): Remove argc argument.  Accept std::vector.
14484         (expand): Update.  Use std::vector.
14485         (scan, macro_expand, macro_expand_next): Update.
14486
14487 2018-02-08  Tom Tromey  <tom@tromey.com>
14488
14489         * symtab.c (default_collect_symbol_completion_matches_break_on):
14490         Use unique_xmalloc_ptr.
14491         * macroscope.h: (sal_macro_scope, user_macro_scope)
14492         (default_macro_scope): Return unique_xmalloc_ptr.
14493         * macroscope.c (sal_macro_scope, user_macro_scope)
14494         (default_macro_scope): Return unique_xmalloc_ptr.
14495         * macroexp.h (macro_expand, macro_expand_once): Return
14496         unique_xmalloc_ptr.
14497         * macroexp.c (macro_expand, macro_expand_once): Return
14498         unique_xmalloc_ptr.
14499         * macrocmd.c (macro_expand_command, macro_expand_once_command)
14500         (info_macro_command, info_macros_command): Use
14501         unique_xmalloc_ptr.
14502         * compile/compile-c-support.c (write_macro_definitions): Use
14503         unique_xmalloc_ptr.
14504         * c-exp.y (c_parse): Use unique_xmalloc_ptr.
14505
14506 2018-02-07  Simon Marchi  <simon.marchi@ericsson.com>
14507
14508         * value.c (value_static_field): Assign field type instead of
14509         containing type when returning an optimized out value.
14510
14511 2018-02-06  Yao Qi  <yao.qi@linaro.org>
14512
14513         * ft32-tdep.c (ft32_read_pc): Remove.
14514         (ft32_write_pc): Remove.
14515         (ft32_gdbarch_init): Update.
14516         * m32r-tdep.c (m32r_read_pc): Remove.
14517         (m32r_gdbarch_init): Update.
14518         * mep-tdep.c (mep_read_pc): Remove.
14519         (mep_gdbarch_init): Update.
14520         * microblaze-tdep.c (microblaze_write_pc): Remove.
14521         (microblaze_gdbarch_init): Update.
14522         * mn10300-tdep.c (mn10300_read_pc): Remove.
14523         (mn10300_write_pc): Remove.
14524         (mn10300_gdbarch_init): Update.
14525         * moxie-tdep.c (moxie_read_pc): Remove.
14526         (moxie_write_pc): Remove.
14527         (moxie_gdbarch_init): Update.
14528
14529 2018-02-06  Yao Qi  <yao.qi@linaro.org>
14530
14531         * expprint.c (print_subexp_standard): Handle
14532         OP_F77_UNDETERMINED_ARGLIST.
14533         (dump_subexp_body_standard): Likewise.
14534
14535 2018-02-05  Alan Hayward  <alan.hayward@arm.com>
14536
14537         * target-descriptions.c (tdesc_element_visitor) Add empty
14538         implementations.
14539         (tdesc_type): Move make_gdb_type from here.
14540         (tdesc_type_builtin): Likewise.
14541         (tdesc_type_vector): Likewise.
14542         (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
14543         (make_gdb_type_struct): Move from tdesc_type_with_fields.
14544         (make_gdb_type_union): Likewise.
14545         (make_gdb_type_flags): Likewise.
14546         (make_gdb_type_enum): Likewise.
14547         (make_gdb_type): New function.
14548         (tdesc_register_type): Use static make_gdb_type.
14549
14550 2018-02-05  Ruslan Kabatsayev <b7.10110111@gmail.com>
14551
14552         * infcmd.c (default_print_one_register_info): Align natural-format
14553         column values consistently one under another.
14554         (pad_to_column): New function.
14555
14556 2018-02-05  Joel Brobecker  <brobecker@adacore.com>
14557
14558         * dwarf2read.c (dwarf2_physname): Move commment.
14559
14560 2018-02-01  Leszek Swirski  <leszeks@google.com>
14561
14562         * varobj.c (varobj_formatted_print_options): Allow recursive
14563         pretty printing if pretty printing is enabled.
14564
14565 2018-02-01  Leszek Swirski  <leszeks@google.com>
14566
14567         * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
14568         names after a structop as a filename.
14569
14570 2018-02-01  Yao Qi  <yao.qi@linaro.org>
14571
14572         * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
14573         (arm_record_coproc_data_proc): Likewise.
14574
14575 2018-02-01  Yao Qi  <yao.qi@linaro.org>
14576
14577         * arm-tdep.c (arm_record_extension_space): Change ret to signed.
14578
14579 2018-01-31  Nikola Prica  <nikola.prica@rt-rk.com>
14580
14581         * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
14582         assign shifted lr_reg to fdata->lr_register when lr_reg is set.
14583
14584 2018-01-31  Pedro Alves  <palves@redhat.com>
14585
14586         * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
14587         * inflow.c (child_terminal_save_inferior): Wrap reference to
14588         tcgetpgrp in HAVE_TERMIOS_H.
14589         (child_interrupt, child_pass_ctrlc): Wrap references to signal in
14590         _WIN32.
14591         * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
14592         always iterate over all inferiors.
14593         (gdbsim_cntrl_c): Adjust.
14594         * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
14595
14596 2018-01-31  Joel Brobecker  <brobecker@adacore.com>
14597
14598         * gdbtypes.c (lookup_array_range_type): Make sure the array's
14599         index type is objfile-owned if the element type is as well.
14600
14601 2018-01-31  Joel Brobecker  <brobecker@adacore.com>
14602
14603         GDB 8.1 released.
14604
14605 2018-01-30  Philipp Rudo  <prudo@linux.vnet.ibm.com>
14606
14607         * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
14608         "features/s390x-linux64.c".
14609         (_initialize_s390_linux_tdep): Remove initialization of tdescs
14610         s390_linux32 and s390x_linux64.
14611         (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
14612         default tdesc.
14613         * s390-tdep.c: Include "features/s390-linux32.c" and
14614         "features/s390x-linux64.c".
14615         (s390_tdesc_valid): Add check for tdesc_has_registers.
14616         (s390_gdbarch_init): Make sure there is always a valid tdesc.
14617         (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
14618         tdesc_s390x_linux64.
14619         * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
14620         tdesc_s390x_linux64 to...
14621         * s390-tdep.h: ...here.
14622
14623 2018-01-30  Pedro Alves  <palves@redhat.com>
14624
14625         PR gdb/13211
14626         * config.in, configure: Regenerate.
14627         * configure.ac: Check for getpgid.
14628         * go32-nat.c (go32_pass_ctrlc): New.
14629         (go32_target): Install it.
14630         * inf-child.c (inf_child_target): Install
14631         child_terminal_save_inferior, child_pass_ctrlc and
14632         child_interrupt.
14633         * inf-ptrace.c (inf_ptrace_interrupt): Delete.
14634         (inf_ptrace_target): No longer install it.
14635         * infcmd.c (interrupt_target_1): Adjust.
14636         * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
14637         (child_interrupt): Declare.
14638         (inferior::terminal_state): New.
14639         * inflow.c (struct terminal_info): Update comments.
14640         (inferior_process_group): Delete.
14641         (terminal_is_ours): Delete.
14642         (gdb_tty_state): New.
14643         (child_terminal_init): Adjust.
14644         (is_gdb_terminal, sharing_input_terminal_1)
14645         (sharing_input_terminal): New functions.
14646         (child_terminal_inferior): Adjust.  Use sharing_input_terminal.
14647         Set the process's actual process group in the foreground if
14648         possible.  Handle is_ours_for_output/is_ours distinction.  Don't
14649         mark terminal as the inferior's if not sharing GDB's terminal.
14650         Don't check attach_flag.
14651         (child_terminal_ours_for_output, child_terminal_ours): Adjust to
14652         pass down a target_terminal_state.
14653         (child_terminal_save_inferior): New, factored out from ...
14654         (child_terminal_ours_1): ... this.  Handle
14655         target_terminal_state::is_ours_for_output.
14656         (child_interrupt, child_pass_ctrlc): New.
14657         (inflow_inferior_exit): Clear the inferior's terminal_state.
14658         (copy_terminal_info): Copy the inferior's terminal state.
14659         (_initialize_inflow): Remove reference to terminal_is_ours.
14660         * inflow.h (inferior_process_group): Delete.
14661         * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
14662         * procfs.c (procfs_target): Don't install procfs_interrupt.
14663         (procfs_interrupt): Delete.
14664         * remote.c (remote_serial_quit_handler): Adjust.
14665         (remote_interrupt): Remove ptid parameter.  Adjust.
14666         * target-delegates.c: Regenerate.
14667         * target.c: Include "terminal.h".
14668         (target_terminal::terminal_state): Rename to ...
14669         (target_terminal::m_terminal_state): ... this.
14670         (target_terminal::init): Adjust.
14671         (target_terminal::inferior): Adjust to per-inferior
14672         terminal_state.
14673         (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
14674         (target_terminal::ours, target_terminal::ours_for_output): Use
14675         target_terminal_is_ours_kind.
14676         (target_interrupt): Remove ptid parameter.  Adjust.
14677         (default_target_pass_ctrlc): Adjust.
14678         * target.h (target_ops::to_terminal_save_inferior): New field.
14679         (target_ops::to_interrupt): Remove ptid_t parameter.
14680         (target_interrupt): Remove ptid_t parameter.  Update comment.
14681         (target_pass_ctrlc): Update comment.
14682         * target/target.h (target_terminal_state): New scoped enum,
14683         factored out of ...
14684         (target_terminal::terminal_state): ... here.
14685         (target_terminal::inferior): Update comments.
14686         (target_terminal::restore_inferior): New.
14687         (target_terminal::is_inferior, target_terminal::is_ours)
14688         (target_terminal::is_ours_for_output): Adjust.
14689         (target_terminal::scoped_restore_terminal_state): Adjust to
14690         rename, and call restore_inferior() instead of inferior().
14691         (target_terminal::scoped_restore_terminal_state::m_state): Change
14692         type.
14693         (target_terminal::terminal_state): Rename to ...
14694         (target_terminal::m_terminal_state): ... this and change type.
14695
14696 2018-01-30  Pedro Alves  <palves@redhat.com>
14697
14698         * linux-nat.c (wait_for_signal): New function.
14699         (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
14700         directly.
14701         (async_terminal_is_ours)
14702         (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
14703         (linux_nat_add_target): Don't override
14704         to_terminal_inferior/to_terminal_ours.
14705
14706 2018-01-29  Sergio Durigan Junior  <sergiodj@redhat.com>
14707
14708         * remote.c (remote_follow_fork): Don't call "detach_inferior".
14709
14710 2018-01-28  Simon Marchi  <simon.marchi@ericsson.com>
14711
14712         * dwarf2read.c (free_dwo_files): Add forward-declaration.
14713         (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
14714         dwarf2_per_objfile_free here.
14715         (dwarf2_per_objfile_free): Remove.
14716         (_initialize_dwarf2_read): Don't register
14717         dwarf2_per_objfile_free as a registry cleanup.
14718
14719 2018-01-27  Eli Zaretskii  <eliz@gnu.org>
14720
14721         Avoid compilation errors in MinGW native builds
14722
14723         The error is triggered by including python-internal.h, and the
14724         error message is:
14725
14726              In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
14727                       from build-gnulib/import/math.h:27,
14728                       from d:/usr/Python26/include/pyport.h:235,
14729                       from d:/usr/Python26/include/Python.h:58,
14730                       from python/python-internal.h:94,
14731                       from python/py-arch.c:24:
14732              d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
14733         using ::hypot;
14734                 ^~~~~
14735
14736         This happens because Python headers define 'hypot' to expand t
14737         '_hypot' in the Windows builds.
14738         * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
14739         'hypoth'.  This avoids a compilation error.
14740
14741 2018-01-26  Alan Hayward  <alan.hayward@arm.com>
14742
14743         * MAINTAINERS (Write After Approval): Fix ordering.
14744
14745 2018-01-26  Alan Hayward  <alan.hayward@arm.com>
14746
14747         * MAINTAINERS (Write After Approval): Add Alan Hayward.
14748
14749 2018-01-26  Alan Modra  <amodra@gmail.com>
14750
14751         * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
14752         (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
14753         Remove nop.  Make const.  Comment.
14754         (powerpc32_plt_stub_so_2): New.
14755         (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
14756         Correct count.  Update uses.
14757         (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
14758         Move common code reading PLT entry word.  Correct
14759         powerpc32_plt_stub PLT address calculation.
14760         * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
14761         (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
14762         (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
14763         (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
14764         (ppc64_standard_linkage8): Likewise.
14765         * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
14766         Correct insns description.
14767         * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
14768
14769 2018-01-24  Pedro Alves  <palves@redhat.com>
14770
14771         GCC PR libstdc++/83906
14772         * gdbtypes.c (operator==(const dynamic_prop &,
14773         const dynamic_prop &)): New.
14774         (operator==(const range_bounds &, const range_bounds &)): New.
14775         (check_types_equal): Use them instead of memcmp.
14776         * gdbtypes.h (operator==(const dynamic_prop &,
14777         const dynamic_prop &)): Declare.
14778         (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
14779         (operator==(const range_bounds &, const range_bounds &)): Declare.
14780         (operator!=(const range_bounds &, const range_bounds &)): Declare.
14781
14782 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
14783
14784         * s390-linux-tdep.c (s390_record_address_mask)
14785         (s390_record_calc_disp_common, s390_record_calc_disp)
14786         (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
14787         (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
14788         (s390_process_record): Move to s390-tdep.c.
14789         (s390_linux_init_abi_any): Adjust.
14790         * s390-tdep.c (s390_record_address_mask)
14791         (s390_record_calc_disp_common, s390_record_calc_disp)
14792         (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
14793         (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
14794         (s390_process_record): Moved from s390-linux-tdep.c
14795         (s390_gdbarch_init): Adjust.
14796
14797 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
14798
14799         * s390-linux-nat.c (s390-tdep.h): New include.
14800         * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
14801         (HFILES_NO_SRCDIR): Add s390-tdep.h.
14802         (ALLDEPFILES): Add s390-tdep.c.
14803         * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
14804         * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
14805         * s390-tdep.h: ...this.  New file.
14806         * s390-linux-tdep.c (s390-tdep.h): New include.
14807         (_initialize_s390_tdep): Rename to...
14808         (_initialize_s390_linux_tdep): ...this and adjust.
14809         (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
14810         (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
14811         s390-tdep.h.
14812         (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
14813         (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
14814         (s390_is_partial_instruction, s390_software_single_step)
14815         (is_non_branch_ril, s390_displaced_step_copy_insn)
14816         (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
14817         (s390_prologue_data, s390_addr, s390_store, s390_load)
14818         (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
14819         (s390_register_call_saved, s390_guess_tracepoint_registers)
14820         (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
14821         (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
14822         (s390_pseudo_register_name, s390_pseudo_register_type)
14823         (s390_pseudo_register_read, s390_pseudo_register_write)
14824         (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
14825         (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
14826         (s390_addr_bits_remove, s390_address_class_type_flags)
14827         (s390_address_class_type_flags_to_name)
14828         (s390_address_class_name_to_type_flags, s390_effective_inner_type)
14829         (s390_function_arg_float, s390_function_arg_vector)
14830         (is_power_of_two, s390_function_arg_integer, s390_arg_state)
14831         (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
14832         (s390_frame_align, s390_register_return_value, s390_return_value)
14833         (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
14834         (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
14835         (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
14836         (s390_trad_frame_prev_register, s390_unwind_cache)
14837         (s390_prologue_frame_unwind_cache)
14838         (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
14839         (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
14840         (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
14841         (s390_stub_frame_this_id, s390_stub_frame_prev_register)
14842         (s390_stub_frame_sniffer, s390_stub_frame_unwind)
14843         (s390_frame_base_address, s390_local_base_address)
14844         (s390_frame_base, s390_gcc_target_options)
14845         (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
14846         (s390_validate_reg_range, s390_tdesc_valid)
14847         (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
14848         * s390-tdep.c: ...this.  New file.
14849
14850 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
14851
14852         * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
14853         (s390_process_record, s390_gdbarch_tdep_alloc)
14854         (s390_linux_init_abi_any): Use/set new hook.
14855
14856 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
14857
14858         * s390-linux-tdep.c (osabi.h): New include.
14859         (s390_linux_init_abi_31, s390_linux_init_abi_64)
14860         (s390_linux_init_abi_any): New functions.
14861         (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
14862
14863 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
14864
14865         * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
14866         tdesc_has_registers check
14867
14868 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
14869
14870         * s390-linux-tdep.c (s390_tdesc_valid): New function.
14871         (s390_validate_reg_range): New macro.
14872         (s390_gdbarch_init): Adjust.
14873
14874 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
14875
14876         * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
14877         (s390_gdbarch_tdep_alloc): Adjust.
14878         (s390_gdbarch_init): Adjust.
14879
14880 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
14881
14882         * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
14883         <have_tdb>: Change type to bool.
14884         (s390_gdbarch_tdep_alloc): Adjust.
14885         (s390_gdbarch_init): Adjust.
14886
14887 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
14888
14889         * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
14890         (gdbarch_tdep) <have_upper, have_vx>: New fields.
14891         (s390_gdbarch_tdep_alloc): New function.
14892         (s390_gdbarch_init): Allocate tdep at start and use its fields
14893         instead of separate variables.
14894
14895 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
14896
14897         * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
14898         when looking for cached gdbarch and add comment for remaining.
14899
14900 2018-01-22  Pedro Alves  <palves@redhat.com>
14901             Sergio Durigan Junior  <sergiodj@redhat.com>
14902
14903         * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
14904         case.
14905
14906 2018-01-22  Maciej W. Rozycki  <macro@mips.com>
14907
14908         * MAINTAINERS: Update my company e-mail address.
14909
14910 2018-01-22  Yao Qi  <yao.qi@linaro.org>
14911
14912         * regcache.c (cooked_write_test): New function.
14913         (_initialize_regcache): Register the test.
14914
14915 2018-01-22  Yao Qi  <yao.qi@linaro.org>
14916
14917         * ia64-tdep.c (ia64_pseudo_register_read): Call
14918         regcache->cooked_read instead of regcache_cooked_read_unsigned.
14919         * m32c-tdep.c (m32c_cat_read): Likewise.
14920         (m32c_r3r2r1r0_read): Likewise.
14921         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
14922         * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
14923
14924 2018-01-22  Yao Qi  <yao.qi@linaro.org>
14925
14926         * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
14927         method raw_read instead of regcache_raw_read.
14928         * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
14929         * arm-tdep.c (arm_neon_quad_read): Likewise.
14930         * avr-tdep.c (avr_pseudo_register_read): Likewise.
14931         * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
14932         * frv-tdep.c (frv_pseudo_register_read): Likewise.
14933         * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
14934         * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
14935         (i386_pseudo_register_read_into_value): Likewise.
14936         * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
14937         * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
14938         * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
14939         * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
14940         * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
14941         * sparc-tdep.c (sparc32_pseudo_register_read):  Likewise.
14942         * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
14943         * spu-tdep.c (spu_pseudo_register_read_spu):  Likewise.
14944         * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
14945
14946 2018-01-22  Yao Qi  <yao.qi@linaro.org>
14947
14948         * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
14949         * configure.tgt: Remove target mt.
14950         * mt-tdep.c: Remove.
14951         * regcache.c (cooked_read_test): Remove the check for mt.
14952
14953 2018-01-22  Yao Qi  <yao.qi@linaro.org>
14954
14955         * jit.c (jit_frame_prev_register): Call regcache::cooked_read
14956         instead of gdbarch_pseudo_register_read_value.
14957
14958 2018-01-22  Joel Brobecker  <brobecker@adacore.com>
14959
14960         * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
14961         language is Ada.
14962
14963 2018-01-22  Joel Brobecker  <brobecker@adacore.com>
14964
14965         * linespec.c (create_sals_line_offset): Remove code that preserved
14966         the symtab_and_line's line number.
14967
14968 2018-01-21  Andrew Burgess  <andrew.burgess@embecosm.com>
14969
14970         * varobj.c (varobj_create): Don't set valid_block when creating a
14971         floating varobj.
14972
14973 2018-01-21  Andrew Burgess  <andrew.burgess@embecosm.com>
14974
14975         * varobj.c (varobj_create): Remove out of date comment.
14976
14977 2018-01-21  Andrew Burgess  <andrew.burgess@embecosm.com>
14978
14979         PR mi/20395
14980         * ada-exp.y (write_var_from_sym): Pass extra parameter when
14981         updating innermost block.
14982         * parse.c (innermost_block_tracker::update): Take extra type
14983         parameter, and check types match before updating innermost block.
14984         (write_dollar_variable): Update innermost block for registers.
14985         * parser-defs.h (enum innermost_block_tracker_type): New enum.
14986         (innermost_block_tracker::innermost_block_tracker): Initialise
14987         m_types member.
14988         (innermost_block_tracker::reset): Take type parameter.
14989         (innermost_block_tracker::update): Take type parameter, and pass
14990         type through as needed.
14991         (innermost_block_tracker::m_types): New member.
14992         * varobj.c (varobj_create): Pass type when reseting innermost
14993         block.
14994
14995 2018-01-21  Andrew Burgess  <andrew.burgess@embecosm.com>
14996
14997         * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
14998         * ada-lang.c (resolve_subexp): Likewise.
14999         * breakpoint.c (set_breakpoint_condition) Likewise.
15000         (watch_command_1) Likewise.
15001         * c-exp.y (variable): Likewise.
15002         * d-exp.y (PrimaryExpression): Likewise.
15003         * f-exp.y (variable): Likewise.
15004         * go-exp.y (variable): Likewise.
15005         * m2-exp.y (variable): Likewise.
15006         * objfiles.c (objfile::~objfile): Likewise.
15007         * p-exp.y (variable): Likewise.
15008         * parse.c (innermost_block): Change type.
15009         * parser-defs.h (class innermost_block_tracker): New.
15010         (innermost_block): Change to innermost_block_tracker.
15011         * printcmd.c (display_command): Switch to innermost_block API.
15012         (do_one_display): Likewise.
15013         * rust-exp.y (do_one_display): Likewise.
15014         * symfile.c (clear_symtab_users): Likewise.
15015         * varobj.c (varobj_create): Switch to innermost_block API, replace
15016         use of innermost_block with block stored on varobj object.
15017
15018 2018-01-21  Andrew Burgess  <andrew.burgess@embecosm.com>
15019
15020         * expression.h (innermost_block): Remove declaration.
15021         * varobj.c: Add 'parser-defs.h' include.
15022
15023 2018-01-19  Tom Tromey  <tom@tromey.com>
15024
15025         * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
15026         symbols in the static and global blocks.
15027
15028 2018-01-19  James Clarke  <jrtc27@jrtc27.com>
15029
15030         * nat/linux-ptrace.c: Remove unnecessary reinclusion of
15031         gdb_ptrace.h, and move including gdb_wait.h ...
15032         * nat/linux-ptrace.h: ... to here.
15033
15034 2018-01-19  Simon Marchi  <simon.marchi@ericsson.com>
15035
15036         * inf-ptrace.c (inf_ptrace_detach): Adjust call to
15037         inf_ptrace_detach_success.
15038         (inf_ptrace_detach_success): Add inferior parameter, use it
15039         instead of inferior_ptid, pass it to detach_inferior.
15040         * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
15041         parameter.
15042         * inferior.c (detach_inferior): Add overload that takes an
15043         inferior object.
15044         * inferior.h (detach_inferior): Likewise.
15045         * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
15046         use inferior_ptid, adjust call to inf_ptrace_detach_success.
15047         * linux-thread-db.c (thread_db_detach): Use inf parameter.
15048
15049 2018-01-19  Simon Marchi  <simon.marchi@ericsson.com>
15050
15051         * target.h (struct target_ops) <to_detach>: Add inferior
15052         parameter.
15053         (target_detach): Likewise.
15054         * target.c (dispose_inferior): Pass inferior down.
15055         (target_detach): Pass inferior down.  Assert that it is equal to
15056         the current inferior.
15057         * aix-thread.c (aix_thread_detach): Pass inferior down.
15058         * corefile.c (core_file_command): Pass current_inferior() down.
15059         * corelow.c (core_detach): Add inferior parameter.
15060         * darwin-nat.c (darwin_detach): Likewise.
15061         * gnu-nat.c (gnu_detach): Likewise.
15062         * inf-ptrace.c (inf_ptrace_detach): Likewise.
15063         * infcmd.c (detach_command): Pass current_inferior() down to
15064         target_detach.
15065         * infrun.c (follow_fork_inferior): Pass parent_inf to
15066         target_detach.
15067         (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
15068         target_detach.
15069         * linux-nat.c (linux_nat_detach): Add inferior parameter.
15070         * linux-thread-db.c (thread_db_detach): Likewise.
15071         * nto-procfs.c (procfs_detach): Likewise.
15072         * procfs.c (procfs_detach): Likewise.
15073         * record.c (record_detach): Likewise.
15074         * record.h (struct inferior): Forward-declare.
15075         (record_detach): Add inferior parameter.
15076         * remote-sim.c (gdbsim_detach): Likewise.
15077         * remote.c (remote_detach_1): Likewise.
15078         (remote_detach): Likewise.
15079         (extended_remote_detach): Likewise.
15080         * sol-thread.c (sol_thread_detach): Likewise.
15081         * target-debug.h (target_debug_print_inferior_p): New macro.
15082         * target-delegates.c: Re-generate.
15083         * top.c (kill_or_detach): Pass inferior down to target_detach.
15084         * windows-nat.c (windows_detach): Add inferior parameter.
15085
15086 2018-01-19  Simon Marchi  <simon.marchi@ericsson.com>
15087
15088         * target.h (struct target_ops) <to_detach>: Remove args
15089         parameter.
15090         (target_detach): Likewise.
15091         * target.c (dispose_inferior): Adjust.
15092         (target_detach): Remove args parameter, adjust.
15093         * aix-thread.c (aix_thread_detach): Adjust.
15094         * corefile.c (core_file_command): Adjust.
15095         * corelow.c (core_detach): Adjust.
15096         * darwin-nat.c (darwin_detach): Adjust.
15097         * gnu-nat.c (gnu_detach): Adjust.
15098         * inf-ptrace.c (inf_ptrace_detach): Adjust.
15099         * infcmd.c (detach_command): Adjust
15100         * infrun.c (follow_fork_inferior): Adjust.
15101         (handle_vfork_child_exec_or_exit): Adjust.
15102         * linux-fork.c (linux_fork_detach): Remove args parameter.
15103         * linux-fork.h (linux_fork_detach): Likewise.
15104         * linux-nat.c (linux_nat_detach): Likewise, and adjust.
15105         * linux-thread-db.c (thread_db_detach): Likewise.
15106         * nto-procfs.c (procfs_detach): Likewise.
15107         * procfs.c (procfs_detach): Likewise.
15108         (do_detach): Remove signo parameter.
15109         * record.c (record_detach): Remove args parameter.
15110         * record.h (record_detach): Likewise.
15111         * remote-sim.c (gdbsim_detach): Likewise.
15112         * remote.c (remote_detach_1): Likewise.
15113         (remote_detach): Likewise.
15114         (extended_remote_detach): Likewise.
15115         * sol-thread.c (sol_thread_detach): Likewise.
15116         * target-delegates.c: Re-generate.
15117         * top.c (struct qt_args) <args>: Remove field.
15118         (kill_or_detach): Don't pass args.
15119         (quit_force): Don't set args.
15120         * windows-nat.c (windows_detach): Remove args parameter.
15121
15122 2018-01-19  Yao Qi  <yao.qi@linaro.org>
15123
15124         * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
15125         (arm_linux_init_abi): Install it.
15126
15127 2018-01-19  Yao Qi  <yao.qi@linaro.org>
15128
15129         * osabi.c (gdb_osabi_names): Extend the regexp for
15130         arm-linux-gnueabihf.
15131
15132 2018-01-18  Yao Qi  <yao.qi@linaro.org>
15133
15134         * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
15135         m_abbrevs.
15136         (abbrev_table::add_abbrev): Update.
15137         (abbrev_table::lookup_abbrev): Update.
15138
15139 2018-01-18  Yao Qi  <yao.qi@linaro.org>
15140
15141         * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
15142
15143 2018-01-17  Sergio Durigan Junior  <sergiodj@redhat.com>
15144
15145         * compile/compile.c (compile_to_object): Convert "triplet_rx"
15146         to "std::string".
15147
15148 2018-01-17  Tom Tromey  <tom@tromey.com>
15149
15150         * dwarf2read.c (symbolp): Remove typedef.  Don't instantiate VEC.
15151
15152 2018-01-17  Tom Tromey  <tom@tromey.com>
15153
15154         * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
15155         * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
15156         (create_array_type_with_stride): Update.
15157         * dwarf2read.c (set_die_type): Update.
15158
15159 2018-01-17  Tom Tromey  <tom@tromey.com>
15160
15161         * dwarf2read.c (delayed_method_info): Remove typedef.
15162         (dwarf2_cu::method_info): Now a std::vector.
15163         (add_to_method_list): Update.
15164         (free_delayed_list): Remove.
15165         (compute_delayed_physnames): Update.
15166         (process_full_comp_unit, process_full_type_unit): Clear the method
15167         list.  Remove cleanups.
15168         (psymtab_include_file_name): Add name_holder parameter.  Use
15169         unique_xmalloc_ptr.
15170         (dwarf_decode_lines): Update.
15171
15172 2018-01-17  Tom Tromey  <tom@tromey.com>
15173             Simon Marchi  <simon.marchi@ericsson.com>
15174
15175         * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
15176         (dwarf2_per_objfile::free_cached_comp_units)
15177         (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
15178         (init_cutu_and_read_dies_no_follow): Update.
15179         (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
15180         (dwarf2_cu::~dwarf2_cu): New.
15181         (free_heap_comp_unit, free_stack_comp_unit): Remove.
15182         (age_cached_comp_units, free_one_cached_comp_unit): Update.
15183
15184 2018-01-17  Tom Tromey  <tom@tromey.com>
15185             Simon Marchi  <simon.marchi@ericsson.com>
15186
15187         * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
15188         (struct die_reader_specs) <abbrev_table>: New member.
15189         (struct abbrev_table): Add constructor.
15190         <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
15191         <abbrev_obstack>: Now an auto_obstack.
15192         (abbrev_table_up): New typedef.
15193         (init_cu_die_reader): Add abbrev_table parameter.
15194         (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
15195         Add result_dwo_abbrev_table.
15196         (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
15197         (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
15198         Update.
15199         (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
15200         parameter.
15201         (skip_children): Update.
15202         (abbrev_table::alloc_abbrev): Rename from
15203         abbrev_table_alloc_abbrev.
15204         (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
15205         (abbrev_table::lookup_abbrev): Rename from
15206         abbrev_table_lookup_abbrev.
15207         (abbrev_table_read_table): Return abbrev_table_up.
15208         (abbrev_table_free, abbrev_table_free_cleanup)
15209         (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
15210         (load_partial_dies): Update.
15211
15212 2018-01-17  Tom Tromey  <tom@tromey.com>
15213
15214         * dwarf2read.c (dwarf2_compute_name): Update comment.
15215         (read_func_scope, read_variable): Update.
15216         (new_symbol): Remove.
15217         (new_symbol_full): Rename to new_symbol.
15218
15219 2018-01-17  Mike Gulick  <mgulick@mathworks.com>
15220
15221         PR gdb/16577
15222         * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
15223         a warning instead of throwing an error, set section size to 0 and return
15224         NULL.
15225         * gdb_bfd.h (gdb_bfd_map_section): Update description.
15226
15227 2018-01-17  Simon Marchi  <simon.marchi@ericsson.com>
15228
15229         * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
15230         std::string.
15231         (linux_ptrace_attach_fail_reason_string): Likewise.
15232         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
15233         Likewise.
15234         (linux_ptrace_attach_fail_reason_string): Likewise.
15235         * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
15236
15237 2018-01-17  Simon Marchi  <simon.marchi@ericsson.com>
15238
15239         * linux-nat.c (linux_nat_attach): Remove xstrdup.
15240
15241 2018-01-17  Eldar Abusalimov  <eldar.abusalimov@jetbrains.com>
15242
15243         PR gdb/21559
15244         * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
15245         checking for fs_base/gs_base fields in struct user_regs_struct.
15246         * configure: Regenerate.
15247
15248 2018-01-17  Yao Qi  <yao.qi@linaro.org>
15249
15250         * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
15251         function.
15252         (aarch64_linux_init_abi): Install it to gdbarch hook
15253         gcc_target_options.
15254
15255 2018-01-15  Pedro Alves  <palves@redhat.com>
15256
15257         * common/signals-state-save-restore.c
15258         (save_original_signals_state): Fix typos.
15259
15260 2017-01-12  Tom Tromey  <tom@tromey.com>
15261             Sergio Durigan Junior  <sergiodj@redhat.com>
15262
15263         * Makefile.in (install-only): Install gdb-add-index.
15264
15265 2018-01-12  John Baldwin  <jhb@FreeBSD.org>
15266
15267         * fbsd-tdep.c (KVE_PROTECTION): Correct value.
15268
15269 2018-01-12  Andreas Arnez  <arnez@linux.vnet.ibm.com>
15270
15271         * infrun.c (keep_going_pass_signal): Clear step-over info when
15272         insert_breakpoints fails.
15273
15274 2018-01-11  Pedro Alves  <palves@redhat.com>
15275
15276         PR gdb/22583
15277         * infrun.c (resume): Rename to ...
15278         (resume_1): ... this.
15279         (resume): Reimplement as wrapper around resume_1.
15280
15281 2018-01-11  Pedro Alves  <palves@redhat.com>
15282
15283         PR remote/22597
15284         * remote.c (remote_parse_stop_reply): Default to the last-set
15285         general thread instead of to 'magic_null_ptid'.
15286
15287 2018-01-10  Pedro Alves  <palves@redhat.com>
15288
15289         * language.h (language_get_symbol_name_matcher): Rename ...
15290         (get_symbol_name_matcher): ... this.
15291         * language.c (language_get_symbol_name_matcher): Ditto.
15292         * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
15293         callers adjusted.
15294
15295 2018-01-10  Pedro Alves  <palves@redhat.com>
15296
15297         PR gdb/22670
15298         * dwarf2read.c
15299         (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
15300         Adjust to use language_get_symbol_name_matcher instead of
15301         language_defn::la_get_symbol_name_matcher.
15302         * language.c (language_get_symbol_name_matcher): If in Ada mode
15303         and the lookup name is a verbatim match, return Ada's matcher.
15304         * language.h (language_get_symbol_name_matcher): Adjust comment.
15305         (ada_lookup_name_info::verbatim_p):: New method.
15306
15307 2018-01-10  Pedro Alves  <palves@redhat.com>
15308
15309         PR gdb/22670
15310         * ada-lang.c (ada_collect_symbol_completion_matches): If the
15311         minsym's language is language_auto or language_cplus, pass down
15312         language_ada instead.
15313         * symtab.c (compare_symbol_name): Don't frob symbol language here.
15314
15315 2018-01-10  Pedro Alves  <palves@redhat.com>
15316
15317         PR gdb/22670
15318         * minsyms.c (linkage_name_str): New function.
15319         (iterate_over_minimal_symbols): Use it.
15320
15321 2018-01-09  John Baldwin  <jhb@FreeBSD.org>
15322
15323         * NEWS: Document that 'info proc' now works on FreeBSD.
15324
15325 2018-01-09  John Baldwin  <jhb@FreeBSD.org>
15326
15327         * configure.ac: Check for kinfo_getfile in libutil.
15328         * configure: Regenerate.
15329         * config.in: Regenerate.
15330         * fbsd-nat.c: Include "fbsd-tdep.h".
15331         (fbsd_fetch_cmdline): New.
15332         (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
15333         rather than calling error.
15334         (fbsd_info_proc): New.
15335         (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
15336         (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
15337         (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
15338
15339 2018-01-09  John Baldwin  <jhb@FreeBSD.org>
15340
15341         * fbsd-nat.c (struct free_deleter): Remove.
15342         (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
15343
15344 2018-01-09  John Baldwin  <jhb@FreeBSD.org>
15345
15346         * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
15347         NULL for an empty pathname.
15348
15349 2018-01-09  John Baldwin  <jhb@FreeBSD.org>
15350
15351         * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
15352         (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
15353         (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
15354         (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
15355         (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
15356         (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
15357         (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
15358         (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
15359         (kinfo_proc_layout_32, kinfo_proc_layout_i386)
15360         (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
15361         (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
15362         (fbsd_core_fetch_timeval, fbsd_print_sigset)
15363         (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
15364         (fbsd_init_abi):  Install gdbarch "core_info_proc" method.
15365         * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
15366
15367 2018-01-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15368
15369         * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
15370         (gnu_xfer_auxv): New function.
15371         (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
15372         TARGET_OBJECT_AUXV.
15373
15374 2018-01-08  Yao Qi  <yao.qi@linaro.org>
15375             Simon Marchi  <simon.marchi@ericsson.com>
15376
15377         * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
15378         common/selftest.c.
15379         (COMMON_OBS): Remove selftest.o.
15380         * configure.ac: Append selftest-arch.c and common/selftest.c to
15381         CONFIG_SRCS.  Append selftest-arch.o and selftest.o to COMMON_OBS.
15382         * configure: Re-generated.
15383         * maint.c (maintenance_selftest): Wrap selftests::run_tests with
15384         GDB_SELF_TEST.
15385         (maintenance_info_selftests): Likewise.
15386
15387 2018-01-08  Xavier Roirand  <roirand@adacore.com>
15388
15389         * ada-valprint.c (val_print_packed_array_elements): Use
15390         proper number of elements when printing an array indexed
15391         by an enumeration type.
15392
15393 2018-01-07  Simon Marchi  <simon.marchi@polymtl.ca>
15394
15395         * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
15396         (dw2_get_file_names_reader): Adjust.
15397         (lookup_dwo_signatured_type): Adjust.
15398         (lookup_dwp_signatured_type): Adjust.
15399         (lookup_signatured_type): Adjust.
15400         (create_type_unit_group): Adjust.
15401         (get_type_unit_group): Adjust.
15402         (process_psymtab_comp_unit_reader): Adjust.
15403         (build_type_psymtabs_reader): Adjust.
15404         (scan_partial_symbols): Adjust.
15405         (add_partial_symbol): Adjust.
15406         (add_partial_subprogram): Adjust.
15407         (peek_die_abbrev): Adjust.
15408         (fixup_go_packaging): Adjust.
15409         (process_imported_unit_die): Adjust.
15410         (dwarf2_compute_name): Adjust.
15411         (dwarf2_physname): Adjust.
15412         (read_import_statement): Adjust.
15413         (handle_DW_AT_stmt_list): Adjust.
15414         (read_file_scope): Adjust.
15415         (read_func_scope): Adjust.
15416         (read_lexical_block_scope): Adjust.
15417         (read_call_site_scope): Adjust.
15418         (read_variable): Adjust.
15419         (dwarf2_rnglists_process): Adjust.
15420         (dwarf2_ranges_process): Adjust.
15421         (dwarf2_ranges_read): Adjust.
15422         (dwarf2_get_pc_bounds): Adjust.
15423         (dwarf2_record_block_ranges): Adjust.
15424         (dwarf2_add_field): Adjust.
15425         (dwarf2_add_member_fn): Adjust.
15426         (read_structure_type): Adjust.
15427         (process_structure_scope): Adjust.
15428         (read_enumeration_type): Adjust.
15429         (read_array_type): Adjust.
15430         (mark_common_block_symbol_computed): Adjust.
15431         (read_common_block): Adjust.
15432         (read_namespace_type): Adjust.
15433         (read_namespace): Adjust.
15434         (read_module_type): Adjust.
15435         (read_tag_pointer_type): Adjust.
15436         (read_tag_ptr_to_member_type): Adjust.
15437         (read_tag_string_type): Adjust.
15438         (read_subroutine_type): Adjust.
15439         (read_typedef): Adjust.
15440         (read_base_type): Adjust.
15441         (attr_to_dynamic_prop): Adjust.
15442         (read_subrange_type): Adjust.
15443         (read_unspecified_type): Adjust.
15444         (dwarf2_read_abbrevs): Adjust.
15445         (load_partial_dies): Adjust.
15446         (read_partial_die): Adjust.
15447         (find_partial_die): Adjust.
15448         (guess_partial_die_structure_name): Adjust.
15449         (fixup_partial_die): Adjust.
15450         (read_attribute_value): Adjust.
15451         (read_addr_index): Adjust.
15452         (read_addr_index_from_leb128): Adjust.
15453         (read_str_index): Adjust.
15454         (dwarf2_string_attr): Adjust.
15455         (get_debug_line_section): Adjust.
15456         (dwarf_decode_line_header): Adjust.
15457         (lnp_state_machine::check_line_address): Adjust.
15458         (dwarf_decode_lines_1): Adjust.
15459         (dwarf_decode_lines): Adjust.
15460         (dwarf2_start_symtab): Adjust.
15461         (var_decode_location): Adjust.
15462         (new_symbol_full): Adjust.
15463         (dwarf2_const_value_data): Adjust.
15464         (dwarf2_const_value_attr): Adjust.
15465         (dwarf2_const_value): Adjust.
15466         (die_type): Adjust.
15467         (die_containing_type): Adjust.
15468         (build_error_marker_type): Adjust.
15469         (lookup_die_type): Adjust.
15470         (guess_full_die_structure_name): Adjust.
15471         (anonymous_struct_prefix): Adjust.
15472         (determine_prefix): Adjust.
15473         (dwarf2_name): Adjust.
15474         (follow_die_ref_or_sig): Adjust.
15475         (follow_die_offset): Adjust.
15476         (follow_die_ref): Adjust.
15477         (follow_die_sig_1): Adjust.
15478         (follow_die_sig): Adjust.
15479         (get_signatured_type): Adjust.
15480         (get_DW_AT_signature_type): Adjust.
15481         (decode_locdesc): Adjust.
15482         (dwarf_decode_macros): Adjust.
15483         (cu_debug_loc_section): Adjust.
15484         (fill_in_loclist_baton): Adjust.
15485         (dwarf2_symbol_mark_computed): Adjust.
15486         (init_one_comp_unit): Don't assign
15487         dwarf2_cu::dwarf2_per_objfile.
15488         (set_die_type): Adjust.
15489
15490 2018-01-07  Simon Marchi  <simon.marchi@ericsson.com>
15491
15492         * dwarf2read.c (struct mapped_debug_names): Add constructor.
15493         <dwarf2_per_objfile>: New field.
15494         (dwarf2_per_objfile): Remove global.
15495         (get_dwarf2_per_objfile): New function.
15496         (set_dwarf2_per_objfile): New function.
15497         (dwarf2_build_psymtabs_hard): Change objfile parameter to
15498         dwarf2_per_objfile.
15499         (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
15500         (read_abbrev_offset): Likewise.
15501         (read_indirect_string): Likewise.
15502         (read_indirect_line_string): Likewise.
15503         (read_indirect_string_at_offset): Likewise.
15504         (read_indirect_string_from_dwz): Likewise.
15505         (dwarf2_find_containing_comp_unit): Change objfile parameter to
15506         dwarf2_per_objfile.
15507         (age_cached_comp_units): Add dwarf2_per_objfile parameter.
15508         (create_all_comp_units): Change objfile parameter to
15509         dwarf2_per_objfile.
15510         (create_all_type_units): Likewise.
15511         (process_queue): Add dwarf2_per_objfile parameter.
15512         (read_and_check_comp_unit_head): Likewise.
15513         (lookup_dwo_unit_in_dwp): Likewise.
15514         (get_dwp_file): Likewise.
15515         (process_cu_includes): Likewise.
15516         (struct free_dwo_file_cleanup_data): New struct.
15517         (dwarf2_has_info): Use get_dwarf2_per_objfile and
15518         set_dwarf2_per_objfile.
15519         (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
15520         (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
15521         context, adjust calls.
15522         (dw2_instantiate_symtab): Likewise.
15523         (dw2_get_cutu): Add dwarf2_per_objfile parameter.
15524         (dw2_get_cu): Likewise.
15525         (create_cu_from_index_list): Change objfile parameter to
15526         dwarf2_per_objfile.
15527         (create_cus_from_index_list): Get dwarf2_per_objfile from
15528         context, adjust calls.
15529         (create_cus_from_index): Likewise.
15530         (create_signatured_type_table_from_index): Change objfile
15531         parameter to dwarf2_per_objfile.
15532         (create_signatured_type_table_from_debug_names): Change objfile
15533         parameter to dwarf2_per_objfile.
15534         (create_addrmap_from_index): Likewise.
15535         (create_addrmap_from_aranges): Likewise.
15536         (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
15537         (dw2_setup): Remove.
15538         (dw2_get_file_names_reader): Get dwarf2_per_objfile from
15539         context.
15540         (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
15541         get_dwarf2_per_objfile.
15542         (dw2_forget_cached_source_info): Likewise.
15543         (dw2_map_symtabs_matching_filename): Likewise.
15544         (struct dw2_symtab_iterator) <index>: Remove.
15545         <dwarf2_per_objfile>: New field.
15546         (dw2_symtab_iter_init): Replace index parameter with
15547         dwarf2_per_objfile.
15548         (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
15549         (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
15550         (dw2_print_stats): Likewise.
15551         (dw2_dump): Likewise.
15552         (dw2_expand_symtabs_for_function): Likewise.
15553         (dw2_expand_all_symtabs): Likewise.
15554         (dw2_expand_symtabs_with_fullname): Likewise.
15555         (dw2_expand_marked_cus): Replace index and objfile parameters
15556         with dwarf2_per_objfile.
15557         (dw_expand_symtabs_matching_file_matcher): Add
15558         dwarf2_per_objfile parameter and adjust calls.
15559         (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
15560         adjust calls.
15561         (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
15562         (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
15563         adjust calls.
15564         (create_cus_from_debug_names_list): Replace objfile parameter
15565         with dwarf2_per_objfile and adjust calls.
15566         (create_cus_from_debug_names): Likewise.
15567         (dwarf2_read_debug_names): Likewise.
15568         (mapped_debug_names::namei_to_name): Adjust call.
15569         (dw2_debug_names_iterator::next): Likewise.
15570         (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
15571         (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
15572         (dw2_debug_names_dump): Likewise.
15573         (dw2_debug_names_expand_symtabs_for_function): Likewise.
15574         (dw2_debug_names_expand_symtabs_matching): Likewise.
15575         (dwarf2_initialize_objfile): Likewise.
15576         (dwarf2_build_psymtabs): Likewise.
15577         (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
15578         this_cu.
15579         (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
15580         (read_and_check_comp_unit_head): Likewise.
15581         (read_abbrev_offset): Likewise.
15582         (create_debug_type_hash_table): Likewise.
15583         (create_debug_types_hash_table): Likewise.
15584         (create_all_type_units): Replace objfile parameter with
15585         dwarf2_per_objfile.
15586         (add_type_unit): Add dwarf2_per_objfile parameter.
15587         (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
15588         with dwarf2_per_objfile.
15589         (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
15590         (lookup_dwp_signatured_type): Likewise.
15591         (lookup_signatured_type): Likewise.
15592         (read_cutu_die_from_dwo): Likewise.
15593         (init_tu_and_read_dwo_dies): Likewise.
15594         (init_cutu_and_read_dies): Likewise.
15595         (init_cutu_and_read_dies_no_follow): Likewise.
15596         (allocate_type_unit_groups_table): Add objfile parameter.
15597         (create_type_unit_group): Use dwarf2_per_objfile from cu.
15598         (get_type_unit_group): Likewise.
15599         (process_psymtab_comp_unit): Update call.
15600         (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
15601         (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
15602         (print_tu_stats): Likewise.
15603         (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
15604         in void* parameter.
15605         (build_type_psymtabs): Change objfile parameter to
15606         dwarf2_per_objfile.
15607         (process_skeletonless_type_unit): Use dwarf2_per_objfile
15608         passed in void* parameter.
15609         (process_skeletonless_type_units): Change objfile parameter to
15610         dwarf2_per_objfile.
15611         (set_partial_user): Likewise.
15612         (dwarf2_build_psymtabs_hard): Likewise.
15613         (read_comp_units_from_section): Likewise.
15614         (create_all_comp_units): Likewise.
15615         (scan_partial_symbols): Update calls.
15616         (add_partial_symbol): Likewise.
15617         (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
15618         (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
15619         (process_queue): Add dwarf2_per_objfile parameter.
15620         (get_compunit_symtab): Use dwarf2_per_objfile from cu.
15621         (compute_compunit_symtab_includes): Likewise.
15622         (process_cu_includes): Add dwarf2_per_objfile parameter.
15623         (process_full_comp_unit): Use dwarf2_per_objfile from cu.
15624         (process_full_type_unit): Likewise.
15625         (process_imported_unit_die): Update call.
15626         (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
15627         (read_file_scope): Likewise.
15628         (allocate_dwo_file_hash_table): Add objfile parameter.
15629         (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
15630         (create_cus_hash_table): Likewise.
15631         (create_dwp_hash_table): Likewise.
15632         (create_dwo_unit_in_dwp_v1): Likewise.
15633         (create_dwp_v2_section): Likewise.
15634         (create_dwo_unit_in_dwp_v2): Likewise.
15635         (lookup_dwo_unit_in_dwp): Likewise.
15636         (try_open_dwop_file): Likewise.
15637         (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
15638         (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
15639         cleanup to include a reference to dwarf2_per_objfile.
15640         (open_dwp_file): Add dwarf2_per_objfile parameter.
15641         (open_and_init_dwp_file): Likewise.
15642         (get_dwp_file): Likewise.
15643         (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
15644         (queue_and_load_all_dwo_tus): Update call.
15645         (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
15646         data.
15647         (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
15648         (dwarf2_ranges_process): Likewise.
15649         (dwarf2_get_pc_bounds): Likewise.
15650         (mark_common_block_symbol_computed): Likewise.
15651         (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
15652         (dwarf2_read_abbrevs): Update call.
15653         (read_partial_die): Use dwarf2_per_objfile from cu.
15654         (find_partial_die): Likewise.
15655         (fixup_partial_die): Likewise.
15656         (read_attribute_value): Likewise.
15657         (read_indirect_string_at_offset_from): Add objfile parameter.
15658         (read_indirect_string_at_offset): Add dwarf2_per_objfile
15659         parameter.
15660         (read_indirect_string_from_dwz): Add objfile parameter.
15661         (read_indirect_string): Add objfile parameter.
15662         (read_addr_index_1): Add dwarf2_per_objfile parameter.
15663         (read_addr_index): Use dwarf2_per_objfile from cu.
15664         (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
15665         call dw2_setup.
15666         (read_str_index): Use dwarf2_per_objfile from cu.
15667         (get_debug_line_section): Likewise.
15668         (read_formatted_entries): Add dwarf2_per_objfile parameter.
15669         (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
15670         (new_symbol_full): Use dwarf2_per_objfile from cu.
15671         (build_error_marker_type): Likewise.
15672         (lookup_die_type): Likewise.
15673         (determine_prefix): Likewise.
15674         (follow_die_offset): Likewise.
15675         (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
15676         (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
15677         (dwarf2_fetch_die_type_sect_off): Likewise.
15678         (dwarf2_get_die_type): Likewise.
15679         (follow_die_sig_1): Use dwarf2_per_objfile from cu.
15680         (get_signatured_type): Likewise.
15681         (get_DW_AT_signature_type): Likewise.
15682         (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
15683         (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
15684         (cu_debug_loc_section): Likewise.
15685         (fill_in_loclist_baton): Likewise.
15686         (dwarf2_symbol_mark_computed): Likewise.
15687         (dwarf2_find_containing_comp_unit): Change objfile parameter to
15688         dwarf2_per_objfile.
15689         (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
15690         parameter.
15691         (age_cached_comp_units): Add dwarf2_per_objfile parameter.
15692         (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
15693         (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
15694         (set_die_type): Use dwarf2_free_objfile from cu.
15695         (get_die_type_at_offset): Likewise.
15696         (dwarf2_per_objfile_free): Don't assign global variable.
15697         (debug_names) <constructor>: Add dwarf2_per_objfile
15698         parameter, update m_debugstrlookup construction.
15699         (debug_names::debug_str_lookup): Add dwarf2_per_objfile
15700         parameter.
15701         <m_dwarf2_per_objfile>: New field.
15702         <lookup>: Use m_dwarf2_per_objfile.
15703         (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
15704         (psyms_seen_size): Likewise.
15705         (write_gdbindex): Replace objfile parameter with
15706         dwarf2_per_objfile.
15707         (write_debug_names): Likewise.
15708         (write_psymtabs_to_index): Likewise.
15709         (save_gdb_index_command): Use get_dwarf2_per_objfile, update
15710         calls.
15711
15712 2018-01-07  Simon Marchi  <simon.marchi@ericsson.com>
15713
15714         * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
15715         <dwarf2_per_objfile>: New field.
15716         (struct dwarf2_per_cu_data) <objfile>: Remove.
15717         <dwarf2_per_objfile>: New field.
15718         (create_cu_from_index_list): Assign dwarf2_per_objfile instead
15719         of objfile.
15720         (create_signatured_type_table_from_index): Likewise.
15721         (create_debug_type_hash_table): Likewise.
15722         (fill_in_sig_entry_from_dwo_entry): Likewise.
15723         (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
15724         (create_type_unit_group): Assign dwarf2_per_objfile instead of
15725         objfile.
15726         (create_partial_symtab): Access objfile through
15727         dwarf2_per_objfile.
15728         (process_psymtab_comp_unit_reader): Likewise.
15729         (read_comp_units_from_section): Likewise.
15730         (scan_partial_symbols): Likewise.
15731         (add_partial_symbol): Likewise.
15732         (add_partial_subprogram): Likewise.
15733         (peek_die_abbrev): Likewise.
15734         (fixup_go_packaging): Likewise.
15735         (process_full_comp_unit): Likewise.
15736         (process_full_type_unit): Likewise.
15737         (process_imported_unit_die): Likewise.
15738         (dwarf2_compute_name): Likewise.
15739         (dwarf2_physname): Likewise.
15740         (read_import_statement): Likewise.
15741         (create_cus_hash_table): Assign dwarf2_physname instead of
15742         objfile.
15743         (read_func_scope): Access objfile through dwarf2_per_objfile.
15744         (read_lexical_block_scope): Likewise.
15745         (read_call_site_scope): Likewise.
15746         (read_variable): Likewise.
15747         (dwarf2_rnglists_process): Likewise.
15748         (dwarf2_ranges_process): Likewise.
15749         (dwarf2_ranges_read): Likewise.
15750         (dwarf2_record_block_ranges): Likewise.
15751         (dwarf2_add_field): Likewise.
15752         (dwarf2_add_member_fn): Likewise.
15753         (read_structure_type): Likewise.
15754         (process_structure_scope): Likewise.
15755         (read_enumeration_type): Likewise.
15756         (read_array_type): Likewise.
15757         (read_common_block): Likewise.
15758         (read_namespace_type): Likewise.
15759         (read_namespace): Likewise.
15760         (read_module_type): Likewise.
15761         (read_tag_pointer_type): Likewise.
15762         (read_tag_ptr_to_member_type): Likewise.
15763         (read_tag_string_type): Likewise.
15764         (read_subroutine_type): Likewise.
15765         (read_typedef): Likewise.
15766         (read_base_type): Likewise.
15767         (attr_to_dynamic_prop): Likewise.
15768         (read_subrange_type): Likewise.
15769         (read_unspecified_type): Likewise.
15770         (load_partial_dies): Likewise.
15771         (read_partial_die): Likewise.
15772         (find_partial_die): Likewise.
15773         (guess_partial_die_structure_name): Likewise.
15774         (fixup_partial_die): Likewise.
15775         (read_attribute_value): Likewise.
15776         (read_addr_index_from_leb128): Likewise.
15777         (dwarf2_read_addr_index): Likewise.
15778         (dwarf2_string_attr): Likewise.
15779         (lnp_state_machine::check_line_address): Likewise.
15780         (dwarf_decode_lines_1): Likewise.
15781         (dwarf_decode_lines): Likewise.
15782         (dwarf2_start_symtab): Likewise.
15783         (var_decode_location): Likewise.
15784         (new_symbol_full): Likewise.
15785         (dwarf2_const_value_data): Likewise.
15786         (dwarf2_const_value_attr): Likewise.
15787         (dwarf2_const_value): Likewise.
15788         (die_type): Likewise.
15789         (die_containing_type): Likewise.
15790         (lookup_die_type): Likewise.
15791         (guess_full_die_structure_name): Likewise.
15792         (anonymous_struct_prefix): Likewise.
15793         (dwarf2_name): Likewise.
15794         (follow_die_ref_or_sig): Likewise.
15795         (follow_die_offset): Likewise.
15796         (follow_die_ref): Likewise.
15797         (dwarf2_fetch_die_loc_sect_off): Likewise.
15798         (dwarf2_fetch_constant_bytes): Likewise.
15799         (dwarf2_fetch_die_type_sect_off): Likewise.
15800         (dwarf2_get_die_type): Likewise.
15801         (follow_die_sig): Likewise.
15802         (decode_locdesc): Likewise.
15803         (dwarf2_per_cu_objfile): Likewise.
15804         (dwarf2_per_cu_text_offset): Likewise.
15805         (init_one_comp_unit): Assign dwarf2_per_objfile instead of
15806         objfile.
15807         (set_die_type): Access objfile through
15808         dwarf2_per_objfile.
15809
15810 2018-01-07  Simon Marchi  <simon.marchi@ericsson.com>
15811
15812         * valprint.c (converted_character_d): Remove typedef.
15813         (DEF_VEC_O (converted_character_d)): Remove.
15814         (count_next_character): Use std::vector.
15815         (print_converted_chars_to_obstack): Likewise.
15816         (generic_printstr): Likewise.
15817
15818 2018-01-07  Simon Marchi  <simon.marchi@polymtl.ca>
15819
15820         * xml-support.h (struct gdb_xml_value): Add constructor.
15821         <value>: Change type to unique_xmalloc_ptr.
15822         (gdb_xml_value_s): Remove typedef.
15823         (DEF_VEC_O (gdb_xml_value_s)): Remove.
15824         (gdb_xml_element_start_handler): Change parameter type to
15825         std::vector.
15826         (xml_find_attribute): Likewise.
15827         * xml-support.c (xml_find_attribute): Change parameter type to
15828         std::vector and adjust.
15829         (gdb_xml_values_cleanup): Remove.
15830         (gdb_xml_parser::start_element): Adjust to std::vector.
15831         (xinclude_start_include): Change paraeter type to std::vector
15832         and adjust.
15833         * btrace.c (check_xml_btrace_version): Likewise.
15834         (parse_xml_btrace_block): Likewise.
15835         (parse_xml_btrace_pt_config_cpu): Likewise.
15836         (parse_xml_btrace_pt): Likewise.
15837         (parse_xml_btrace_conf_bts): Likewise.
15838         (parse_xml_btrace_conf_pt): Likewise.
15839         * memory-map.c (memory_map_start_memory): Likewise.
15840         (memory_map_start_property): Likewise.
15841         * osdata.c (osdata_start_osdata): Likewise.
15842         (osdata_start_item): Likewise.
15843         (osdata_start_column): Likewise.
15844         * remote.c (start_thread): Likewise.
15845         * solib-aix.c (library_list_start_library): Likewise.
15846         (library_list_start_list): Likewise.
15847         * solib-svr4.c (library_list_start_library): Likewise.
15848         (svr4_library_list_start_list): Likewise.
15849         * solib-target.c (library_list_start_segment): Likewise.
15850         (library_list_start_section): Likewise.
15851         (library_list_start_library): Likewise.
15852         (library_list_start_list): Likewise.
15853         * tracepoint.c (traceframe_info_start_memory): Likewise.
15854         (traceframe_info_start_tvar): Likewise.
15855         * xml-syscall.c (syscall_start_syscall): Likewise.
15856         * xml-tdesc.c (tdesc_start_target): Likewise.
15857         (tdesc_start_feature): Likewise.
15858         (tdesc_start_reg): Likewise.
15859         (tdesc_start_union): Likewise.
15860         (tdesc_start_struct): Likewise.
15861         (tdesc_start_flags): Likewise.
15862         (tdesc_start_enum): Likewise.
15863         (tdesc_start_field): Likewise.
15864         (tdesc_start_enum_value): Likewise.
15865         (tdesc_start_vector): Likewise.
15866
15867 2018-01-07  Simon Marchi  <simon.marchi@polymtl.ca>
15868
15869         * extension.h (struct xmethod_worker) <clone>: Remove.
15870         * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
15871         Remove.
15872         (python_xmethod_worker::clone): Remove.
15873         * valops.c (find_overload_match): Use std::move instead of
15874         clone.
15875
15876 2018-01-07  Simon Marchi  <simon.marchi@polymtl.ca>
15877
15878         * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
15879         (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
15880         <free_xmethod_worker_data>: Remove.
15881         <get_matching_xmethod_workers>: Chance VEC to std::vector.
15882         <get_xmethod_arg_types>: Remove.
15883         <get_xmethod_result_type>: Remove.
15884         <invoke_xmethod>: Remove.
15885         * extension.c (new_xmethod_worker): Remove.
15886         (clone_xmethod_worker): Remove.
15887         (get_matching_xmethod_workers): Return void, pass std::vector by
15888         pointer.
15889         (get_xmethod_arg_types): Rename to...
15890         (xmethod_worker::get_arg_types): ... this, and adjust.
15891         (get_xmethod_result_type): Rename to...
15892         (xmethod_worker::get_result_type): ... this, and adjust.
15893         (invoke_xmethod): Remove.
15894         (free_xmethod_worker): Remove.
15895         (free_xmethod_worker_vec): Remove.
15896         * extension.h (enum ext_lang_rc): Move here from
15897         extension-priv.h.
15898         (struct xmethod_worker): Add constructor and destructor.
15899         <data>: Remove.
15900         <value>: Remove.
15901         <invoke, clone, do_get_result_type, do_get_arg_types>: New
15902         virtual pure methods.
15903         <get_arg_types, get_result_type>: New methods.
15904         (xmethod_worker_ptr): Remove typedef.
15905         (DEF_VEC_P (xmethod_worker_ptr)): Remove.
15906         (xmethod_worker_vec): Remove typedef.
15907         (xmethod_worker_up): New typedef.
15908         (invoke_xmethod): Remove.
15909         (clone_xmethod_worker): Remove.
15910         (free_xmethod_worker): Remove.
15911         (free_xmethod_worker_vec): Remove.
15912         (get_xmethod_arg_types): Remove.
15913         (get_xmethod_result_type): Remove.
15914         * valops.c (find_method_list): Use std::vector, don't use
15915         intermediate vector.
15916         (value_find_oload_method_list): Use std::vector.
15917         (find_overload_match): Use std::vector.
15918         (find_oload_champ): Use std::vector.
15919         * value.c (value_free): Use operator delete.
15920         (value_of_xmethod): Rename to...
15921         (value_from_xmethod): ... this.  Don't assign
15922         xmethod_worker::value, take rvalue-reference.
15923         (result_type_of_xmethod): Adjust.
15924         (call_xmethod): Adjust.
15925         * value.h: Include extension.h.
15926         (struct xmethod_worker): Don't forward-declare.
15927         (value_of_xmethod): Rename to...
15928         (value_from_xmethod): ... this, take rvalue-reference.
15929         * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
15930         (struct python_xmethod_worker): ... this, add constructor and
15931         destructor.
15932         <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
15933         (gdbpy_free_xmethod_worker_data): Rename to...
15934         (python_xmethod_worker::~python_xmethod_worker): ... this and
15935         adjust.
15936         (gdbpy_clone_xmethod_worker_data): Rename to...
15937         (python_xmethod_worker::clone): ... this and adjust.
15938         (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
15939         temporary vector.
15940         (gdbpy_get_xmethod_arg_types): Rename to...
15941         (python_xmethod_worker::do_get_arg_types): ... this and adjust.
15942         (gdbpy_get_xmethod_result_type): Rename to...
15943         (python_xmethod_worker::do_get_result_type): ... this and
15944         adjust.
15945         (gdbpy_invoke_xmethod): Rename to...
15946         (python_xmethod_worker::invoke): ... this and adjust.
15947         (new_python_xmethod_worker): Rename to...
15948         (python_xmethod_worker::python_xmethod_worker): ... this and
15949         adjust.
15950         * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
15951         Remove.
15952         (gdbpy_free_xmethod_worker_data): Remove.
15953         (gdbpy_get_matching_xmethod_workers): Use std::vector.
15954         (gdbpy_get_xmethod_arg_types): Remove.
15955         (gdbpy_get_xmethod_result_type): Remove.
15956         (gdbpy_invoke_xmethod): Remove.
15957         * python/python.c (python_extension_ops): Remove obsolete
15958         callbacks.
15959
15960 2018-01-05  Pedro Alves  <palves@redhat.com>
15961
15962         PR gdb/18653
15963         * common/signals-state-save-restore.c
15964         (save_original_signals_state): New parameter 'quiet'.  Warn if we
15965         find a custom handler preinstalled, instead of internal erroring.
15966         But only warn if !quiet.
15967         * common/signals-state-save-restore.h
15968         (save_original_signals_state): New parameter 'quiet'.
15969         * main.c (captured_main_1): Move save_original_signals_state call
15970         after option handling, and pass QUIET.
15971
15972 2018-01-05  Pedro Alves  <palves@redhat.com>
15973
15974         * spu-tdep.c (spu_catch_start): Pass
15975         symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
15976
15977 2018-01-05  Pedro Alves  <palves@redhat.com>
15978
15979         PR gdb/22670
15980         * ada-lang.c (literal_symbol_name_matcher): New function.
15981         (ada_get_symbol_name_matcher): Use it for
15982         symbol_name_match_type::SEARCH_NAME.
15983         * block.c (block_lookup_symbol): New parameter 'match_type'.  Pass
15984         it down instead of assuming symbol_name_match_type::FULL.
15985         * block.h (block_lookup_symbol): New parameter 'match_type'.
15986         * c-valprint.c (print_unpacked_pointer): Use
15987         lookup_symbol_search_name instead of lookup_symbol.
15988         * compile/compile-object-load.c (get_out_value_type): Pass down
15989         symbol_name_match_type::SEARCH_NAME.
15990         * cp-namespace.c (cp_basic_lookup_symbol): Pass down
15991         symbol_name_match_type::FULL.
15992         * cp-support.c (cp_get_symbol_name_matcher): Handle
15993         symbol_name_match_type::SEARCH_NAME.
15994         * infrun.c (insert_exception_resume_breakpoint): Use
15995         lookup_symbol_search_name.
15996         * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
15997         * psymtab.c (maintenance_check_psymtabs): Use
15998         symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
15999         * stack.c (print_frame_args): Use lookup_symbol_search_name and
16000         SYMBOL_SEARCH_NAME.
16001         * symtab.c (lookup_local_symbol): Don't demangle the lookup name
16002         if symbol_name_match_type::SEARCH_NAME.
16003         (lookup_symbol_in_language): Pass down
16004         symbol_name_match_type::FULL.
16005         (lookup_symbol_search_name): New.
16006         (lookup_language_this): Pass down
16007         symbol_name_match_type::SEARCH_NAME.
16008         (lookup_symbol_aux, lookup_local_symbol): New parameter
16009         'match_type'.  Pass it down.
16010         * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
16011         (lookup_symbol_search_name): New declaration.
16012         (lookup_symbol_in_block): New 'match_type' parameter.
16013
16014 2018-01-05  Pedro Alves  <palves@redhat.com>
16015
16016         PR gdb/22670
16017         * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
16018         ada_lookup_symbol.
16019         (ada_lookup_symbol): Reimplement in terms of
16020         ada_lookup_symbol_list, bits factored out from
16021         ada_lookup_encoded_symbol.
16022
16023 2018-01-05  Joel Brobecker  <brobecker@adacore.com>
16024
16025         * ada-exp.y (write_object_renaming): When subscripting an array
16026         using a symbol as the index, pass the block in call to
16027         ada_lookup_encoded_symbol when looking that symbol up.
16028
16029 2018-01-05  Jerome Guitton  <guitton@adacore.com>
16030
16031         * ada-lang.c (ada_array_length): Use ada_index_type instead of
16032         TYPE_INDEX_TYPE.
16033
16034 2018-01-05  Joel Brobecker  <brobecker@adacore.com>
16035
16036         * ada-lang.c (ada_to_fixed_value_create): Add handling of
16037         the case where VALUE_LVAL (val0) is not lval_memory.
16038
16039 2018-01-05  Xavier Roirand  <roirand@adacore.com>
16040
16041         * ada-valprint.c (print_optional_low_bound): Handle
16042         character-indexed array printing like boolean-indexed array
16043         printing.
16044
16045 2018-01-05  Joel Brobecker  <brobecker@adacore.com>
16046
16047         * NEWS: Create a new section for the next release branch.
16048         Rename the section of the current branch, now that it has
16049         been cut.
16050
16051 2018-01-05  Joel Brobecker  <brobecker@adacore.com>
16052
16053         GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
16054         * version.in: Bump version to 8.1.50.DATE-git.
16055
16056 2018-01-03  Xavier Roirand  <roirand@adacore.com>
16057
16058         * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
16059         Add field.
16060         * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
16061         Add field.
16062         (default_exception_support_info) <catch_handlers_sym>: Add field.
16063         (exception_support_info_fallback) <catch_handlers_sym>: Add field.
16064         (ada_exception_name_addr_1): Add "catch handlers" handling.
16065         (ada_exception_catchpoint_cond_string) <ex>: New parameter.
16066         Update all callers.
16067         (create_excep_cond_exprs) <ex>: Add parameter.
16068         (re_set_exception): Update create_excep_cond_exprs call.
16069         (print_it_exception, print_one_exception, print_mention_exception)
16070         (print_recreate_exception): Add "catch handler" handling.
16071         (allocate_location_catch_handlers, re_set_catch_handlers)
16072         (check_status_catch_handlers, print_it_catch_handlers)
16073         (print_one_catch_handlers, print_mention_catch_handlers)
16074         (print_recreate_catch_handlers): New function.
16075         (catch_handlers_breakpoint_ops): New variable.
16076         (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
16077         Add parameter.  Add "catch handler" handling.
16078         (ada_exception_sym_name, ada_exception_breakpoint_ops):
16079         Add "catch handler" handling.
16080         (ada_exception_catchpoint_cond_string): Add "catch handler"
16081         handling.
16082         (create_ada_exception_catchpoint): Update create_excep_cond_exprs
16083         call.
16084         (catch_ada_handlers_command): New function.
16085         (initialize_ada_catchpoint_ops): Initialize "catch handlers"
16086         operations structure.
16087         (_initialize_ada_language): Add "catch handlers" command entry.
16088         * NEWS: Document "catch handlers" feature.
16089
16090 2018-01-02  Joel Brobecker  <brobecker@adacore.com>
16091
16092         * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
16093         account when creating the array type of the slice.
16094         (ada_value_slice): Likewise.
16095
16096 2018-01-02  Joel Brobecker  <brobecker@adacore.com>
16097
16098         * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
16099         New enum value.
16100         (create_array_type_with_stride): Add byte_stride_prop parameter.
16101         * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
16102         New parameter.  Update all callers in this file.
16103         (array_type_has_dynamic_stride): New function.
16104         (is_dynamic_type_internal, resolve_dynamic_array): Add handling
16105         of arrays with dynamic byte strides.
16106         * dwarf2read.c (read_array_type): Add support for dynamic
16107         DW_AT_byte_stride attributes.
16108
16109 2018-01-02  Joel Brobecker  <brobecker@adacore.com>
16110
16111         * dwarf2read.c (read_unspecified_type): Treat
16112         DW_TAG_enumeration_type DIEs from Ada units as stubs.
16113
16114 2018-01-01  Joel Brobecker  <brobecker@adacore.com>
16115
16116         Update copyright year range in all GDB files.
16117
16118 2018-01-01, 18  Joel Brobecker  <brobecker@adacore.com>
16119
16120         * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
16121         and gdb/testsuite/gdb.base/step-line.c.
16122
16123 2018-01-01  Joel Brobecker  <brobecker@adacore.com>
16124
16125         * copyright.py (main): Dump the contents of
16126         MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
16127         even if BY_HAND is empty.
16128
16129 2018-01-01  Joel Brobecker  <brobecker@adacore.com>
16130
16131         * top.c (print_gdb_version): Update Copyright year in version
16132         message.
16133
16134 2018-01-01  Joel Brobecker  <brobecker@adacore.com>
16135
16136         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
16137
16138 For older changes see ChangeLog-2017.
16139 \f
16140 Local Variables:
16141 mode: change-log
16142 left-margin: 8
16143 fill-column: 74
16144 version-control: never
16145 coding: utf-8
16146 End: