a6738bdc95d899c3eb60e3c95355e2cca782f529
[binutils-gdb.git] / gdb / ChangeLog
1 2018-11-22 Pedro Alves <palves@redhat.com>
2
3 * cli/cli-interp.c (cli_on_user_selected_context_changed): Use
4 inferior_thread instead of find_thread_ptid, and only when
5 inferior_ptid is not null_ptid.
6 * inferior.c (add_inferior): Don't include target_pid_to_str
7 output when the inferior is not started.
8 * python/py-inferior.c (python_on_normal_stop): Don't use
9 find_thread_ptid.
10 (tui_on_user_selected_context_changed): Use inferior_thread
11 instead of find_thread_ptid, and only when inferior_ptid is not
12 null_ptid.
13
14 2018-11-21 Benno Fünfstück <benno.fuenfstueck@gmail.com>
15
16 PR python/23714
17 * gdb/python/python.c (execute_gdb_command): Call
18 prevent_dont_repeat earlier to avoid affecting dont_repeat.
19
20 2018-11-21 Andrew Burgess <andrew.burgess@embecosm.com>
21
22 * Makefile.in (ALL_TARGET_OBS): Add arch/riscv.o.
23 (HFILES_NO_SRCDIR): Add arch/riscv.h.
24 * arch/riscv.c: New file.
25 * arch/riscv.h: New file.
26 * configure.tgt: Add cpu_obs list of riscv, move riscv-tdep.o into
27 this list, and add arch/riscv.o.
28 * features/Makefile: Add riscv features.
29 * features/riscv/32bit-cpu.c: New file.
30 * features/riscv/32bit-cpu.xml: New file.
31 * features/riscv/32bit-csr.c: New file.
32 * features/riscv/32bit-csr.xml: New file.
33 * features/riscv/32bit-fpu.c: New file.
34 * features/riscv/32bit-fpu.xml: New file.
35 * features/riscv/64bit-cpu.c: New file.
36 * features/riscv/64bit-cpu.xml: New file.
37 * features/riscv/64bit-csr.c: New file.
38 * features/riscv/64bit-csr.xml: New file.
39 * features/riscv/64bit-fpu.c: New file.
40 * features/riscv/64bit-fpu.xml: New file.
41 * features/riscv/rebuild-csr-xml.sh: New file.
42 * riscv-tdep.c: Add 'arch/riscv.h' include.
43 (riscv_gdb_reg_names): Delete.
44 (csr_reggroup): New global.
45 (struct riscv_register_alias): Delete.
46 (struct riscv_register_feature): New structure.
47 (riscv_register_aliases): Delete.
48 (riscv_xreg_feature): New global.
49 (riscv_freg_feature): New global.
50 (riscv_virtual_feature): New global.
51 (riscv_csr_feature): New global.
52 (riscv_create_csr_aliases): New function.
53 (riscv_read_misa_reg): Delete.
54 (riscv_has_feature): Delete.
55 (riscv_isa_xlen): Simplify, just return cached xlen.
56 (riscv_isa_flen): Simplify, just return cached flen.
57 (riscv_has_fp_abi): Update for changes in struct gdbarch_tdep.
58 (riscv_register_name): Update to make use of tdesc_register_name.
59 Look up xreg and freg names in the new globals riscv_xreg_feature
60 and riscv_freg_feature. Don't supply csr aliases here.
61 (riscv_fpreg_q_type): Delete.
62 (riscv_register_type): Use tdesc_register_type in almost all
63 cases, override the returned type in a few specific cases only.
64 (riscv_print_one_register_info): Handle errors reading registers.
65 (riscv_register_reggroup_p): Use tdesc_register_in_reggroup_p for
66 registers that are otherwise unknown to GDB. Also check the
67 csr_reggroup.
68 (riscv_print_registers_info): Remove assert about upper register
69 number, and use gdbarch_register_reggroup_p instead of
70 short-cutting.
71 (riscv_find_default_target_description): New function.
72 (riscv_check_tdesc_feature): New function.
73 (riscv_add_reggroups): New function.
74 (riscv_setup_register_aliases): New function.
75 (riscv_init_reggroups): New function.
76 (_initialize_riscv_tdep): Add calls to setup CSR aliases, and
77 setup register groups. Register new riscv debug variable.
78 * riscv-tdep.h: Add 'arch/riscv.h' include.
79 (struct gdbarch_tdep): Remove abi union, and add
80 riscv_gdbarch_features field. Remove cached quad floating point
81 type, and provide initialisation for double type field.
82 * target-descriptions.c (maint_print_c_tdesc_cmd): Add riscv to
83 the list of targets using the feature based target descriptions.
84 * NEWS: Mention target description support.
85
86 2018-11-21 Pedro Alves <palves@redhat.com>
87
88 * valops.c (find_method_list, value_find_oload_method_list)
89 (find_overload_match, find_oload_champ): Rename parameters and
90 locals.
91
92 2018-11-21 Pedro Alves <palves@redhat.com>
93
94 * valops.c (find_method_list): Replace pointer and length
95 parameters with an gdb::array_view. Adjust.
96 (value_find_oload_method_list): Likewise.
97 (find_overload_match): Use gdb::array_view for methods list.
98 Adjust to find_oload_champ interface change.
99 (find_oload_champ): 'xm_worker_vec' parameter now a pointer/array.
100 'num_fns' parameter now a size_t. Eliminate 'fn_count' local.
101
102 2018-11-21 Pedro Alves <palves@redhat.com>
103
104 * gdbtypes.c (compare_badness): Change type of parameters to const
105 reference. Adjust to badness_vector being a std::vector now.
106 (rank_function): Adjust to badness_vector being a std::vector now.
107 * gdbtypes.h (badness_vector): Now a typedef to std::vector.
108 (LENGTH_MATCH): Delete.
109 (compare_badness): Change type of parameters to const reference.
110 (rank_function): Return a badness_vector by value now.
111 (find_overload_match): Adjust to badness_vector being a
112 std::vector now. Remove cleanups.
113 (find_oload_champ_namespace): 'oload_champ_bv' parameter now a
114 badness_vector pointer.
115 (find_oload_champ_namespace_loop): 'oload_champ_bv' parameter now
116 a badness_vector pointer. Adjust to badness_vector being a
117 std::vector now. Remove cleanups.
118 (find_oload_champ): 'oload_champ_bv' parameter now
119 a badness_vector pointer. Adjust to badness_vector being a
120 std::vector now. Remove cleanups.
121
122 2018-11-21 Pedro Alves <palves@redhat.com>
123
124 * cp-support.c (sym_return_val_size, sym_return_val_index)
125 (sym_return_val): Delete.
126 (overload_list_add_symbol): Add std::vector parameter. Adjust to
127 add to the vector.
128 (make_symbol_overload_list): Adjust to return a std::vector
129 instead of maintaining a global open coded vector.
130 (make_symbol_overload_list_block): Add std::vector parameter.
131 (make_symbol_overload_list_block): Rename to ...
132 (add_symbol_overload_list_block): ... this and add std::vector
133 parameter.
134 (make_symbol_overload_list_namespace): Rename to ...
135 (add_symbol_overload_list_namespace): ... this and add std::vector
136 parameter.
137 (make_symbol_overload_list_adl_namespace): Rename to ...
138 (add_symbol_overload_list_adl_namespace): ... this and add
139 std::vector parameter.
140 (make_symbol_overload_list_adl): Delete.
141 (add_symbol_overload_list_adl): New.
142 (make_symbol_overload_list_using): Rename to ...
143 (add_symbol_overload_list_using): ... this and add std::vector
144 parameter.
145 (make_symbol_overload_list_qualified): Rename to ...
146 (add_symbol_overload_list_qualified): ... this and add std::vector
147 parameter.
148 * cp-support.h: Include "common/array-view.h" and <vector>.
149 (make_symbol_overload_list): Change return type to std::vector.
150 (make_symbol_overload_list_adl): Delete declaration.
151 (add_symbol_overload_list_adl): New declaration.
152 * valops.c (find_overload_match): Local 'oload_syms' now a
153 std::vector.
154 (find_oload_champ_namespace): 'oload_syms' parameter now a
155 std::vector pointer.
156 (find_oload_champ_namespace_loop): 'oload_syms' parameter now a
157 std::vector pointer. Adjust to new make_symbol_overload_list
158 interface.
159
160 2018-11-21 Pedro Alves <palves@redhat.com>
161
162 * common/array-view.h (array_view::splice(size_type, size_t)): New.
163 (array_view::splice(size_type)): New.
164 * eval.c (eval_call, evaluate_funcall): Adjust to use array_view.
165 * extension.c (xmethod_worker::get_arg_types): Adjust to return an
166 std::vector.
167 (xmethod_worker::get_result_type): Adjust to use gdb::array_view.
168 * extension.h: Include "common/array-view.h".
169 (xmethod_worker::invoke): Adjust to use gdb::array_view.
170 (xmethod_worker::get_arg_types): Adjust to return an std::vector.
171 (xmethod_worker::get_result_type): Adjust to use gdb::array_view.
172 (xmethod_worker::do_get_arg_types): Adjust to use std::vector.
173 (xmethod_worker::do_get_result_type): Adjust to use
174 gdb::array_view.
175 * gdbtypes.c (rank_function): Adjust to use gdb::array_view.
176 * gdbtypes.h: Include "common/array-view.h".
177 (rank_function): Adjust to use gdb::array_view.
178 * python/py-xmethods.c (python_xmethod_worker::invoke)
179 (python_xmethod_worker::do_get_arg_types)
180 (python_xmethod_worker::do_get_result_type)
181 (python_xmethod_worker::invoke): Adjust to new interfaces.
182 * valarith.c (value_user_defined_cpp_op, value_user_defined_op)
183 (value_x_binop, value_x_unop): Adjust to use gdb::array_view.
184 * valops.c (find_overload_match, find_oload_champ_namespace)
185 (find_oload_champ_namespace_loop, find_oload_champ): Adjust to use
186 gdb:array_view and the new xmethod_worker interfaces.
187 * value.c (result_type_of_xmethod, call_xmethod): Adjust to use
188 gdb::array_view.
189 * value.h (find_overload_match, result_type_of_xmethod)
190 (call_xmethod): Adjust to use gdb::array_view.
191 * unittests/array-view-selftests.c: Add slicing tests.
192
193 2018-11-21 Pedro Alves <palves@redhat.com>
194
195 * ada-lang.c (ada_evaluate_subexp): Adjust to pass an array_view.
196 * common/array-view.h (make_array_view): New.
197 * compile/compile-object-run.c (compile_object_run): Adjust to
198 pass an array_view.
199 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust.
200 * eval.c (eval_call): Adjust to pass an array_view.
201 (evaluate_subexp_standard): Adjust to pass an array_view.
202 * gcore.c (call_target_sbrk): Adjust to pass an array_view.
203 * guile/scm-value.c (gdbscm_value_call): Likewise.
204 * infcall.c (push_dummy_code): Replace pointer + size parameters
205 with an array_view parameter.
206 (call_function_by_hand, call_function_by_hand_dummy): Likewise and
207 adjust.
208 * infcall.h: Include "common/array-view.h".
209 (call_function_by_hand, call_function_by_hand_dummy): Replace
210 pointer + size parameters with an array_view parameter.
211 * linux-fork.c (inferior_call_waitpid): Adjust to use array_view.
212 * linux-tdep.c (linux_infcall_mmap): Likewise.
213 * objc-lang.c (lookup_objc_class, lookup_child_selector)
214 (value_nsstring, print_object_command): Likewise.
215 * python/py-value.c (valpy_call): Likewise.
216 * rust-lang.c (rust_evaluate_funcall): Likewise.
217 * spu-tdep.c (flush_ea_cache): Likewise.
218 * valarith.c (value_x_binop, value_x_unop): Likewise.
219 * valops.c (value_allocate_space_in_inferior): Likewise.
220 * unittests/array-view-selftests.c (run_tests): Add
221 gdb::make_array_view test.
222
223 2018-11-20 Andrew Burgess <andrew.burgess@embecosm.com>
224
225 * cli-out.c (cli_ui_out::do_field_int): Use string_printf rather
226 than a fixed size buffer.
227
228 2018-11-20 Andrew Burgess <andrew.burgess@embecosm.com>
229
230 * breakpoint.c (print_one_breakpoint_location): Reduce whitespace,
231 and remove insertion of extra spaces in GDB's output.
232 * cli-out.c (cli_ui_out::do_field_fmt): Update header comment.
233 Layout field into a temporary buffer, and then output it as a
234 string field.
235
236 2018-11-20 Philippe Waroquiers <philippe.waroquiers@skynet.be>
237
238 * NEWS: Document the language choice done by
239 'info [types|functions|variables]|rbreak'.
240
241 2018-11-20 Philippe Waroquiers <philippe.waroquiers@skynet.be>
242
243 * symtab.c (treg_matches_sym_type_name): Use
244 scoped_switch_to_sym_language_if_auto instead of local logic.
245 (print_symbol_info): Use scoped_switch_to_sym_language_if_auto
246 to switch to SYM language when language mode is auto.
247
248 2018-11-20 Philippe Waroquiers <philippe.waroquiers@skynet.be>
249
250 * language.h (scoped_switch_to_sym_language_if_auto): New class.
251
252 2018-11-20 Philippe Waroquiers <philippe.waroquiers@skynet.be>
253
254 * symtab.c (search_symbols): Properly check absence of type regexp
255 before entering the loop scanning the minimal symbols.
256
257 2018-11-20 John Darrington <john@darrington.wattle.id.au>
258
259 * s12z-tdep.c (s12z_extract_return_value): New function.
260 (inv_reg_perm) New array.
261 (s12z_return_value): Populate readbuf if non-null.
262
263 2018-11-20 Eli Zaretskii <eliz@gnu.org>
264
265 * common/filestuff.c (gdb_fopen_cloexec): Disable use of "e" mode
266 with 'fopen' also if O_CLOEXEC is equal to O_NOINHERIT, to cater
267 to MinGW fixed by Gnulib.
268 (O_NOINHERIT): Define if not defined.
269
270 2018-11-19 John Darrington <john@darrington.wattle.id.au>
271
272 * s12z-tdep.c (s12z_frame_cache): Add an assertion.
273
274 2018-11-19 Simon Marchi <simon.marchi@polymtl.ca>
275
276 * infrun.c (displaced_step_inferior_state) <next>: Remove.
277
278 2018-11-19 Tom Tromey <tom@tromey.com>
279
280 * source.c (get_filename_and_charpos): Return void.
281
282 2018-11-19 Simon Marchi <simon.marchi@polymtl.ca>
283
284 * skip.c (_initialize_step_skip): Fix "info skip" help.
285
286 2018-11-16 Tom Tromey <tom@tromey.com>
287
288 PR rust/23625:
289 * rust-lang.c (rust_internal_print_type): Handle TYPE_CODE_PTR.
290
291 2018-11-19 Simon Marchi <simon.marchi@ericsson.com>
292
293 * infrun.c (displaced_step_inferior_states): Change type to
294 std::forward_list.
295 (get_displaced_stepping_state): Adjust.
296 (displaced_step_in_progress_any_inferior): Adjust.
297 (add_displaced_stepping_state): Adjust.
298 (remove_displaced_stepping_state): Adjust.
299
300 2018-11-18 Tom Tromey <tom@tromey.com>
301
302 PR build/23814:
303 * target-delegates.c: Rebuild.
304 * ia64-linux-nat.c (class ia64_linux_nat_target)
305 <have_steppable_watchpoint>: Use override. Return true, not 1.
306 (ia64_linux_nat_target::can_use_hw_breakpoint): Rename. Remove
307 "self" argument.
308 (ia64_linux_nat_target::low_new_thread): Rename.
309 (class ia64_linux_nat_target) <read_description>: Don't declare.
310 * target.h (struct target_ops) <have_steppable_watchpoint>: Return
311 bool.
312
313 2018-11-16 Alan Hayward <alan.hayward@arm.com>
314
315 PR gdb/22736:
316 * aarch64-tdep.c (aarch64_push_dummy_call): Remove
317 lang_struct_return code.
318
319 2018-11-16 Alan Hayward <alan.hayward@arm.com>
320
321 * aarch64-tdep.c (aarch64_push_dummy_call): Replace arg with
322 return_method.
323 * alpha-tdep.c (alpha_push_dummy_call): Likewise.
324 * amd64-tdep.c (amd64_push_arguments): Likewise.
325 (amd64_push_dummy_call): Likewise.
326 * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
327 * arc-tdep.c (arc_push_dummy_call): Likewise.
328 * arm-tdep.c (arm_push_dummy_call): Likewise.
329 * avr-tdep.c (avr_push_dummy_call): Likewise.
330 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
331 * cris-tdep.c (cris_push_dummy_call): Likewise.
332 * csky-tdep.c (csky_push_dummy_call): Likewise.
333 * frv-tdep.c (frv_push_dummy_call): Likewise.
334 * gdbarch.c: Regenerate.
335 * gdbarch.h: Regenerate.
336 * gdbarch.sh (gdbarch_push_dummy_call): Replace arg with
337 return_method.
338 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
339 * hppa-tdep.c (hppa32_push_dummy_call): Likewise.
340 (hppa64_push_dummy_call): Likewise.
341 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
342 * i386-tdep.c (i386_push_dummy_call): Likewise.
343 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
344 * infcall.c (call_function_by_hand_dummy): Likewise.
345 * iq2000-tdep.c (iq2000_push_dummy_call): Likewise.
346 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
347 * m32c-tdep.c (m32c_push_dummy_call): Likewise.
348 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
349 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
350 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
351 * mep-tdep.c (mep_push_dummy_call): Likewise.
352 * mips-tdep.c (mips_eabi_push_dummy_call): Likewise.
353 (mips_n32n64_push_dummy_call): Likewise.
354 (mips_o32_push_dummy_call): Likewise.
355 (mips_o64_push_dummy_call): Likewise.
356 * mn10300-tdep.c (mn10300_push_dummy_call): Likewise.
357 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
358 * nds32-tdep.c (nds32_push_dummy_call): Likewise.
359 * nios2-tdep.c (nios2_push_dummy_call): Likewise.
360 * or1k-tdep.c (or1k_push_dummy_call): Likewise.
361 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
362 (ppc64_sysv_abi_push_dummy_call): Likewise.
363 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Likewise.
364 (ppc64_sysv_abi_push_dummy_call): Likewise.
365 * riscv-tdep.c (riscv_push_dummy_call): Likewise.
366 * rl78-tdep.c (rl78_push_dummy_call): Likewise.
367 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
368 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
369 * rx-tdep.c (rx_push_dummy_call): Likewise.
370 * s390-tdep.c (s390_push_dummy_call): Likewise.
371 * score-tdep.c (score_push_dummy_call): Likewise.
372 * sh-tdep.c (sh_push_dummy_call_fpu): Likewise.
373 (sh_push_dummy_call_nofpu): Likewise.
374 * sparc-tdep.c (sparc32_store_arguments): Likewise.
375 (sparc32_push_dummy_call): Likewise.
376 * sparc64-tdep.c (sparc64_store_arguments): Likewise.
377 (sparc64_push_dummy_call): Likewise.
378 * spu-tdep.c (spu_push_dummy_call): Likewise.
379 * tic6x-tdep.c (tic6x_push_dummy_call): Likewise.
380 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
381 * v850-tdep.c (v850_push_dummy_call): Likewise.
382 * vax-tdep.c (vax_push_dummy_call): Likewise.
383 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
384 * xtensa-tdep.c (xtensa_push_dummy_call): Likewise.
385
386 2018-11-16 Alan Hayward <alan.hayward@arm.com>
387
388 * gdbarch.sh (enum function_call_return_method): Add enum.
389 * gdbarch.h: Regenerate.
390 * infcall.c (call_function_by_hand_dummy): Replace vars with enum.
391
392 2018-11-15 Joel Brobecker <brobecker@adacore.com>
393
394 * unittests/copy_bitwise-selftests.c: New file.
395 * utils.c (selftests::bits_to_str, selftests::check_copy_bitwise)
396 (selftests::copy_bitwise_tests): Delete, moving this code to
397 unittests/copy_bitwise-selftests.c instead.
398 (_initialize_utils): Do not register copy_bitwise tests.
399 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
400 unittests/copy_bitwise-selftests.c.
401
402 2018-11-14 Joel Brobecker <brobecker@adacore.com>
403
404 * ada-lang.c (move_bits): Delete. Update all callers to use
405 copy_bitwise instead.
406 * dwarf2loc.c (copy_bitwise, bits_to_str::bits_to_str)
407 (selftests::check_copy_bitwise, selftests::copy_bitwise_tests):
408 Move from here to utils.c.
409 (_initialize_dwarf2loc): Remove call to register copy_bitwise
410 selftests.
411 * utils.h (copy_bitwise): Add declaration.
412 * utils.c (copy_bitwise, bits_to_str::bits_to_str)
413 (selftests::check_copy_bitwise, selftests::copy_bitwise_tests):
414 Moved here from dwarf2loc.c.
415 (_initialize_utils): Register copy_bitwise selftests.
416
417 2018-11-14 Jim Wilson <jimw@sifive.com>
418
419 * riscv-tdep.c (struct riscv_arg_info): New field is_unnamed.
420 (riscv_call_arg_scalar_int): If unnamed arg with twice xlen alignment,
421 then increment next_regnum if odd.
422 (riscv_arg_location): New arg is_unnamed. Set ainfo->is_unnamed.
423 (riscv_push_dummy_call): New local ftype. Call check_typedef to set
424 function type. Pass new arg to riscv_arg_location based on function
425 type.
426 (riscv_return_value): Pass new arg to riscv_arg_location.
427
428 * riscv-tdep.c (BIGGEST_ALIGNMENT): New.
429 (riscv_type_alignment) <TYPE_CODE_ARRAY>: If TYPE_VECTOR, return min
430 of TYPE_LENGTH and BIGGEST_ALIGNMENT.
431
432 * riscv-tdep.c (riscv_call_arg_scalar_int): Use std::min when
433 setting len. New local align, set to max of arg align and xlen,
434 and pass to first riscv_assign_stack_location call.
435
436 2018-11-12 Simon Marchi <simon.marchi@polymtl.ca>
437
438 * skip.c (complete_skip_number): New function.
439 (_initialize_step_skip): Add completers to some skip commands.
440
441 2018-11-09 Tom Tromey <tom@tromey.com>
442
443 * remote.c (remote_g_packet_guess_s): Remove typedef and DEF_VEC.
444 (struct remote_g_packet_data): Derive from allocate_on_obstack.
445 <guesses>: Now a std::vector.
446 (remote_g_packet_data_init, register_remote_g_packet_guess):
447 Update.
448 (remote_read_description_p): Update. Return bool.
449 (remote_target::read_description): Update.
450 (struct remote_g_packet_guess): Add constructor.
451
452 2018-11-09 Tom Tromey <tom@tromey.com>
453
454 * common/scoped_fd.h (class scoped_fd): Add move constructor and
455 move assignment operator.
456 * psymtab.c (psymtab_to_fullname): Update.
457 * source.h (open_source_file): Return scoped_fd.
458 (find_and_open_source): Likewise.
459 * source.c (open_source_file): Return scoped_fd.
460 (get_filename_and_charpos): Update.
461 (print_source_lines_base): Update. Use scoped_fd::to_file.
462 (forward_search_command): Likewise.
463 (reverse_search_command): Likewise.
464 (find_and_open_source): Return scoped_fd.
465 * tui/tui-source.c (tui_set_source_content): Update. Use
466 gdb_file_up.
467
468 2018-11-09 John Baldwin <jhb@FreeBSD.org>
469
470 * minsyms.c (minimal_symbol_reader::install): Fix unsigned
471 overflow.
472
473 2018-11-09 Hafiz Abid Qadeer <abidh@codesourcery.com>
474
475 * configure: Regenerate.
476
477 2018-11-09 Tom de Vries <tdevries@suse.de>
478
479 * symtab.c (symbol_set_names): Call symbol_find_demangled_name
480 unconditionally, to set the language of the symbol. Manage freeing
481 returned pointer using gdb::unique_xmalloc_ptr.
482
483 2018-11-08 Tom Tromey <tom@tromey.com>
484
485 * record.c (require_record_target): Upper-case "<TAB>".
486
487 2018-11-08 Tom Tromey <tom@tromey.com>
488
489 * python/lib/gdb/command/pretty_printers.py
490 (InfoPrettyPrinter.invoke): Don't indent "objfile" heading.
491
492 2018-11-08 Tom Tromey <tom@tromey.com>
493
494 PR gdb/23555:
495 PR gdb/23838:
496 * target.h (target_supports_terminal_ours): Return bool.
497 * target.c (target_supports_terminal_ours): Handle case where
498 current_top_target returns nullptr. Return bool.
499
500 2018-11-08 Joel Brobecker <brobecker@adacore.com>
501
502 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1):
503 return the correct count for potential HFAs.
504
505 2018-11-08 Jan Beulich <jbeulich@suse.com>
506
507 * i387-tdep.c (i387_supply_xsave): Split handling of
508 X86_XSTATE_ZMM_H and X86_XSTATE_ZMM.
509 (i387_collect_xsave): Likewise.
510
511 2018-11-08 Andrew Burgess <andrew.burgess@embecosm.com>
512
513 * riscv-tdep.c (riscv_insn::decode): Update header comment.
514 (riscv_frame_this_id): Catch errors thrown while building the
515 frame cache, leave the frame id as the default, which is the outer
516 frame id.
517
518 2018-11-07 Joel Brobecker <brobecker@adacore.com>
519
520 * ada-lang.c (read_atcb): Only set task_info->called_task if
521 task_info->state == Entry_Caller_Sleep.
522 (print_ada_task_info): Do not check task_info->state before
523 checking task_info->called_task.
524 (info_task): Likewise.
525
526 2018-11-07 Joel Brobecker <brobecker@adacore.com>
527
528 * ada-tasks.c (read_atcb): Clear task_info before computing
529 the value of each of its fields.
530
531 2018-11-07 Andrew Burgess <andrew.burgess@embecosm.com>
532
533 * dwarf2read.c (dwarf2_init_integer_type): Check for name being
534 NULL before dereferencing it.
535
536 2018-11-06 Tom de Vries <tdevries@suse.de>
537
538 * linux-tdep.c (linux_vsyscall_range_raw): Use xmalloc to allocate
539 program headers.
540
541 2018-11-06 Max Filippov <jcmvbkbc@gmail.com>
542
543 * configure.tgt (xtensa*-*-linux*): Change to xtensa*-*-*linux*
544 so that it applies to uclinux as well.
545
546 2018-11-06 Marius Muench <marius.muench@eurecom.fr>
547
548 * arm-tdep.c (arm_scan_prologue): Don't dereference FP reg
549 when on AAPCS.
550
551 2018-11-06 John Baldwin <jhb@FreeBSD.org>
552
553 * riscv-fbsd-nat.c (getregs_supplies): Return true for
554 RISCV_CSR_SSTATUS_REGNUM.
555
556 2018-11-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
557
558 * source.c (open_source_file): Fix leak by transferring the
559 current s->fullname to the unique_xmalloc_ptr fullname given
560 to find_and_open_source.
561
562 2018-11-04 Tom Tromey <tom@tromey.com>
563
564 * varobj.c (install_default_visualizer): Update.
565 * python/python-internal.h (gdbpy_get_varobj_pretty_printer):
566 Return gdbpy_ref.
567 * python/py-prettyprint.c (search_pp_list): Return gdbpy_ref.
568 (find_pretty_printer_from_progspace)
569 (find_pretty_printer_from_gdb, find_pretty_printer)
570 (gdbpy_get_varobj_pretty_printer): Return gdbpy_ref.
571 (gdbpy_get_varobj_pretty_printer, gdbpy_default_visualizer):
572 Update.
573
574 2018-11-04 Tom Tromey <tom@tromey.com>
575
576 * python/python.c (gdbpy_parameter_value): Update.
577 * python/python-internal.h (python_string_to_unicode)
578 (python_string_to_target_python_string)
579 (host_string_to_python_string): Return gdbpy_ref.
580 * python/py-utils.c (python_string_to_unicode)
581 (unicode_to_encoded_python_string)
582 (unicode_to_target_python_string)
583 (python_string_to_target_string)
584 (python_string_to_target_python_string): Return gdbpy_ref.
585 (python_string_to_host_string): Update.
586 (host_string_to_python_string): Return gdbpy_ref.
587 * python/py-symtab.c (stpy_get_filename, stpy_get_producer)
588 (stpy_fullname): Update.
589 * python/py-progspace.c (pspy_get_filename, pspy_solib_name):
590 Update.
591 * python/py-prettyprint.c (print_string_repr): Update.
592 * python/py-objfile.c (objfpy_get_filename, objfpy_get_username)
593 (objfpy_get_build_id): Update.
594 * python/py-breakpoint.c (bppy_get_location)
595 (bppy_get_expression, bppy_get_condition, bppy_get_commands):
596 Update.
597
598 2018-11-04 Tom Tromey <tom@tromey.com>
599
600 * python/python-internal.h (gdb_py_object_from_longest)
601 (gdb_py_object_from_ulongest): Return gdbpy_ref.
602 * python/py-value.c (valpy_int): Update.
603 * python/py-utils.c (gdb_py_object_from_longest): Return
604 gdbpy_ref.
605 (gdb_py_object_from_ulongest): Likewise.
606 * python/py-type.c (typy_get_alignof): Update.
607 * python/py-linetable.c (ltpy_get_all_source_lines)
608 (ltpy_entry_get_line, ltpy_entry_get_pc): Update.
609 * python/py-block.c (blpy_get_start, blpy_get_end): Update.
610
611 2018-11-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
612
613 * ada-lang.c (_initialize_ada_language): Fix typo.
614
615 2018-11-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
616
617 * language.c (type): Remove.
618 (_initialize_language): Remove assignment to type.
619
620 2018-11-02 Joel Brobecker <brobecker@adacore.com>
621
622 * aarch64-ravenscar-thread.h, aarch64-ravenscar-thread.c: New files.
623 * aarch64-tdep.c: #include "aarch64-ravenscar-thread.h".
624 (aarch64_gdbarch_init): Add call to register_aarch64_ravenscar_ops.
625 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-ravenscar-thread.o.
626 (HFILES_NO_SRCDIR): Add aarch64-ravenscar-thread.h.
627 (ALLDEPFILES): Add aarch64-ravenscar-thread.c.
628 * configure.tgt (cpu_obs) [aarch64*-*-*]: Add ravenscar-thread.o
629 and aarch64-ravenscar-thread.o.
630 * NEWS: Add entry documenting Ravenscar tasking support
631 on AArch64 ELF.
632
633 2018-11-02 Matthew Malcomson <matthew.malcomson@arm.com>
634
635 * symtab.c (info_functions_command): Initialize quiet flag.
636 * stack.c (info_args_command): Likewise.
637
638 2018-11-01 Jim Wilson <jimw@sifive.com>
639
640 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): New local unaligned_p.
641 Set if pcptr if unaligned. Return 2 if unaligned_p true. Update
642 debugging messages.
643
644 2018-11-01 Joel Brobecker <brobecker@adacore.com>
645
646 * ada-lang.c (ada_watch_location_expression): New function.
647 (ada_language_defn): Set la_watch_location_expression to
648 ada_watch_location_expression.
649
650 2018-11-01 Joel Brobecker <brobecker@adacore.com>
651
652 * print-utils.c (int_string): Remove unnecessary trailing spaces.
653
654 2018-11-01 Joel Brobecker <brobecker@adacore.com>
655
656 * rs6000-tdep.c (skip_prologue): Fix potential negative left
657 shifting.
658
659 2018-11-01 Jerome Guitton <guitton@adacore.com>
660 Joel Brobecker <brobecker@adacore.com>
661
662 * defs.h (enum gdb_osabi): Add GDB_OSABI_PIKEOS.
663 * osabi.c (gdb_osabi_names): Add name for GDB_OSABI_PIKEOS.
664 * arm-pikeos-tdep.c: New file.
665 * configure.tgt: Add arm-pikeos-tdep.o to the case of ARM
666 embedded system.
667 * Makefile.in (ALL_TARGET_OBS): Add arm-pikeos-tdep.o.
668
669 2018-11-01 Simon Marchi <simon.marchi@ericsson.com>
670
671 * common/pathstuff.c (get_standard_temp_dir): New.
672 * common/pathstuff.h (get_standard_temp_dir): New.
673 * config.in: Re-generate.
674 * configure: Re-generate.
675 * configure.ac: Don't check for mkdtemp.
676 * gnulib/aclocal-m4-deps.mk: Re-generate.
677 * gnulib/aclocal.m4: Re-generate.
678 * gnulib/config.in: Re-generate.
679 * gnulib/configure: Re-generate.
680 * gnulib/import/Makefile.am: Re-generate.
681 * gnulib/import/Makefile.in: Re-generate.
682 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
683 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
684 * gnulib/import/m4/mkdtemp.m4: New file.
685 * gnulib/import/mkdtemp.c: New file.
686 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES):
687 Add mkdtemp module.
688 * unittests/mkdir-recursive-selftests.c (test): Use
689 get_standard_temp_dir.
690 (_initialize_mkdir_recursive_selftests): Remove HAVE_MKDTEMP
691 ifdef.
692 * compile/compile.c (get_compile_file_tempdir): Likewise.
693
694 2018-11-01 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
695
696 * rs6000-aix-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
697 (SIG_FRAME_LR_OFFSET64): New define.
698 (SIG_FRAME_FP_OFFSET64): New define.
699 (aix_sighandle_frame_cache): New Function.
700 (aix_sighandle_frame_this_id): New Function.
701 (aix_sighandle_frame_prev_register): New Function.
702 (aix_sighandle_frame_sniffer): New Function.
703 (aix_sighandle_frame_unwind): New global variable.
704 (rs6000_aix_init_osabi): Install new frame unwinder.
705
706 2018-10-31 Sergio Durigan Junior <sergiodj@redhat.com>
707
708 PR gdb/23835
709 * common/common-defs.h: Don't redefine _FORTIFY_SOURCE if it's
710 already defined.
711
712 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
713
714 * ppc-linux-nat.c: Include nat/linux-ptrace.h.
715
716 2018-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
717
718 * dwarf2read.c (struct dwarf2_cu): Add producer_is_icc field.
719 (producer_is_icc): New function.
720 (check_producer): Set producer_is_icc field on dwarf2_cu.
721 (dwarf2_init_integer_type): New function.
722 (read_base_type): Call dwarf2_init_integer_type instead of
723 init_integer_type in all cases.
724 (dwarf2_cu::dwarf2_cu): Initialise producer_is_icc field.
725 * valprint.c (maybe_negate_by_bytes): Add an assertion that the
726 LEN is greater than 0.
727
728 2018-10-30 Tom Tromey <tom@tromey.com>
729
730 * main.c (captured_main_1): Check return value of bfd_init.
731
732 2018-10-29 Sergio Durigan Junior <sergiodj@redhat.com>
733
734 * common/offset-type.h (DEFINE_OFFSET_REL_OP): Delete.
735 Adjust comments.
736
737 2018-10-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
738
739 * procfs.c: Include common/pathstuff.h.
740
741 2018-10-28 Andrew Burgess <andrew.burgess@embecosm.com>
742
743 * riscv-linux-nat.c (riscv_linux_nat_target::fetch_registers):
744 Add missing braces. No functional change.
745
746 2018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
747
748 * macrocmd.c (info_macro_command): Use report_unrecognized_option_error
749 to report a bad option and fix indentation.
750 * demangle.c (demangle_command): Use report_unrecognized_option_error
751 to report a bad option and correctly report the bad option.
752
753 2018-10-27 Tom Tromey <tom@tromey.com>
754
755 PR cli/23364:
756 * darwin-nat.c (copied_shell): New global.
757 (may_have_sip): Rename from should_disable_startup_with_shell.
758 (copy_shell_to_cache, maybe_cache_shell): New functions.
759 (darwin_nat_target::create_inferior): Update. Use
760 copied_shell.
761
762 2018-10-27 Tom Tromey <tom@tromey.com>
763
764 * unittests/scoped_fd-selftests.c (test_to_file): New function.
765 (run_tests): Call test_to_file.
766 * dwarf-index-write.c (write_psymtabs_to_index): Do not reopen
767 temporary files.
768 * common/scoped_fd.h (scoped_fd::to_file): New method.
769
770 2018-10-27 Tom Tromey <tom@tromey.com>
771
772 * unittests/scoped_mmap-selftests.c (test_normal): Use
773 gdb_mkostemp_cloexec.
774 * unittests/scoped_fd-selftests.c (test_destroy, test_release):
775 Use gdb_mkostemp_cloexec.
776 * gnulib/aclocal-m4-deps.mk, gnulib/aclocal.m4,
777 gnulib/config.in, gnulib/configure,
778 gnulib/import/Makefile.am, gnulib/import/Makefile.in,
779 gnulib/import/m4/gnulib-cache.m4,
780 gnulib/import/m4/gnulib-comp.m4: Update.
781 * gnulib/import/m4/mkostemp.m4: New file.
782 * gnulib/import/m4/mkstemp.m4: Remove.
783 * gnulib/import/mkostemp.c: New file.
784 * gnulib/import/mkstemp.m4: Remove.
785 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove
786 mkstemp, add mkostemp. Apply new patch.
787 * gnulib/import/stdlib.in.h: Apply patch.
788 * gnulib/patches/0002-mkostemp-mkostemps-Fix-compilation-error-in-C-mode-o.patch:
789 New file.
790 * dwarf-index-write.c (write_psymtabs_to_index): Use
791 gdb_mkostemp_cloexec.
792 * common/filestuff.h (gdb_mkostemp_cloexec): New function.
793
794 2018-10-27 Tom Tromey <tom@tromey.com>
795
796 * unittests/mkdir-recursive-selftests.c: New file.
797 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
798 unittests/mkdir-recursive-selftests.c.
799 * dwarf-index-cache.c (mkdir_recursive): Move to
800 common/filestuff.c.
801 (index_cache::store): Check return value of mkdir_recursive.
802 (create_dir_and_check, test_mkdir_recursive): Move to new file.
803 (_initialize_index_cache): Don't register test.
804 * common/filestuff.h (mkdir_recursive): Declare.
805 * common/filestuff.c (mkdir_recursive): Move from
806 dwarf-index-cache.c. Return bool.
807
808 2018-10-27 Tom Tromey <tom@tromey.com>
809
810 * dwarf-index-write.c (write_psymtabs_to_index): Move
811 make_temp_filename to common/pathstuff.c.
812 * common/pathstuff.h (make_temp_filename): Declare.
813 * common/pathstuff.c (make_temp_filename): New function, moved
814 from dwarf-index-write.c.
815
816 2018-10-27 Tom Tromey <tom@tromey.com>
817
818 * procfs.c (procfs_target::create_inferior): Use get_shell.
819 * cli/cli-cmds.c (shell_escape): Use get_shell.
820 * windows-nat.c (windows_nat_target::create_inferior): Use
821 get_shell.
822 * common/pathstuff.c (get_shell): New function.
823 * nat/fork-inferior.c (SHELL_FILE, get_startup_shell): Remove.
824 (fork_inferior): Use get_shell.
825 * common/pathstuff.h (get_shell): Declare.
826
827 2018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
828
829 * NEWS: Mention changes to 'info [args|functions|locals|variables]'
830
831 2018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
832
833 * stack.c (print_variable_and_value_data): Add preg and treg.
834 (print_frame_local_vars): Add quiet, regexp and t_regexp arguments,
835 and update callers.
836 (print_frame_arg_vars): Likewise.
837 (prepare_reg): New function.
838 (info_locals_command): Extract info print args and use them.
839 (info_args_command): Likewise.
840 (_initialize_stack): Modify on-line help.
841 * symtab.c (treg_matches_sym_type_name): New function.
842 (search_symbols): New arg t_regexp.
843 (symtab_symbol_info): New args quiet, regexp, t_regexp.
844 (info_variables_command): Extract info print args and use them.
845 (info_functions_command): Likewise.
846 (info_types_command): Update call to symtab_symbol_info.
847 (_initialize_symtab): Modify on-line help.
848 * symtab.h (treg_matches_sym_type_name): New function.
849 (search_symbols): New t_regexp arg.
850
851 2018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
852
853 * cli-utils.c (extract_arg_maybe_quoted): New function.
854 (extract_info_print_args): New function.
855 (info_print_args_help): New function.
856 (report_unrecognized_option_error): New function.
857 * cli-utils.h (extract_arg_maybe_quoted): New function.
858 (extract_info_print_args): New function.
859 (info_print_args_help): New function.
860 (report_unrecognized_option_error): New function.
861
862 2018-10-26 Tom Tromey <tom@tromey.com>
863
864 * dwarf2read.c (recursively_compute_inclusions): Use std::vector.
865 (compute_compunit_symtab_includes): Update.
866 * symtab.h: (symtab_ptr): Remove typedef. Don't define a VEC.
867 (compunit_symtab_ptr): Likewise.
868
869 2018-10-26 John Baldwin <jhb@FreeBSD.org>
870
871 * fbsd-tdep.c (fbsd_print_auxv_entry): Only use
872 default_print_auxv_entry for specific tag values.
873
874 2018-10-26 John Baldwin <jhb@FreeBSD.org>
875
876 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_HWCAP2.
877
878 2018-10-26 Jim Wilson <jimw@sifive.com>
879
880 * riscv-linux-tdep.c: Include tramp-frame.h and trad-frame.h.
881 (riscv_linux_sigframe_init): Declare.
882 (RISCV_INST_LI_A7_SIGRETURN, RISCV_INT_ECALL): New.
883 (riscv_linux_sigframe): New.
884 (SIGFRAME_SIGINFO_SIZE, UCONTEXT_MCONTEXT_OFFSET): New.
885 (riscv_linux_sigframe_init): Define.
886 (riscv_linux_init_abi): Call tramp_frame_prepend_unwinder.
887
888 * riscv-tdep.c (riscv_isa_xlen): Refer to riscv-tdep.h comment.
889 (riscv_isa_flen): Likewise. Drop static.
890 * riscv-tdep.h (riscv_isa_xlen): Move riscv-tdep.c comment to here.
891 (riscv_isa_flen): Likewise. Declare.
892
893 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
894 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
895
896 * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa207_htm_vsx32l)
897 (tdesc_powerpc_isa207_htm_vsx64l): Declare.
898 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_TM_SPRREGSET)
899 (PPC32_LINUX_SIZEOF_CGPRREGSET, PPC64_LINUX_SIZEOF_CGPRREGSET)
900 (PPC_LINUX_SIZEOF_CFPRREGSET, PPC_LINUX_SIZEOF_CVMXREGSET)
901 (PPC_LINUX_SIZEOF_CVSXREGSET, PPC_LINUX_SIZEOF_CPPRREGSET)
902 (PPC_LINUX_SIZEOF_CDSCRREGSET, PPC_LINUX_SIZEOF_CTARREGSET):
903 Define.
904 (struct ppc_linux_features) <htm>: New field.
905 (ppc_linux_no_features): Add initializer for htm field.
906 * arch/ppc-linux-common.c (ppc_linux_match_description): Return
907 new tdescs.
908 * nat/ppc-linux.h (PPC_FEATURE2_HTM, NT_PPC_TM_CGPR)
909 (NT_PPC_TM_CFPR, NT_PPC_TM_CVMX, NT_PPC_TM_CVSX)
910 (NT_PPC_TM_SPR, NT_PPC_TM_CTAR, NT_PPC_TM_CPPR, NT_PPC_TM_CDSCR):
911 Define if not already defined.
912 * features/Makefile (WHICH): Add rs6000/powerpc-isa207-htm-vsx32l
913 and rs6000/powerpc-isa207-htm-vsx64l.
914 (XMLTOC): Add rs6000/powerpc-isa207-htm-vsx32l.xml and
915 rs6000/powerpc-isa207-htm-vsx64l.xml.
916 * features/rs6000/power-htm-spr.xml: New file.
917 * features/rs6000/power-htm-core.xml: New file.
918 * features/rs6000/power64-htm-core.xml: New file.
919 * features/rs6000/power-htm-fpu.xml: New file.
920 * features/rs6000/power-htm-altivec.xml: New file.
921 * features/rs6000/power-htm-vsx.xml: New file.
922 * features/rs6000/power-htm-ppr.xml: New file.
923 * features/rs6000/power-htm-dscr.xml: New file.
924 * features/rs6000/power-htm-tar.xml: New file.
925 * features/rs6000/powerpc-isa207-htm-vsx32l.xml: New file.
926 * features/rs6000/powerpc-isa207-htm-vsx64l.xml: New file.
927 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Generate.
928 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Generate.
929 * regformats/rs6000/powerpc-isa207-htm-vsx32l.dat: Generate.
930 * regformats/rs6000/powerpc-isa207-htm-vsx64l.dat: Generate.
931 * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call
932 fetch_regset with HTM regsets.
933 (store_register, store_ppc_registers): Call store_regset with HTM
934 regsets.
935 (ppc_linux_nat_target::read_description): Set htm field in the
936 features struct if needed.
937 * ppc-linux-tdep.c: Include
938 features/rs6000/powerpc-isa207-htm-vsx32l.c and
939 features/rs6000/powerpc-isa207-htm-vsx64l.c.
940 (ppc32_regmap_tm_spr, ppc32_regmap_cgpr, ppc64_le_regmap_cgpr)
941 (ppc64_be_regmap_cgpr, ppc32_regmap_cfpr, ppc32_le_regmap_cvmx)
942 (ppc32_be_regmap_cvmx, ppc32_regmap_cvsx, ppc32_regmap_cppr)
943 (ppc32_regmap_cdscr, ppc32_regmap_ctar): New globals.
944 (ppc32_linux_tm_sprregset, ppc32_linux_cgprregset)
945 (ppc64_be_linux_cgprregset, ppc64_le_linux_cgprregset)
946 (ppc32_linux_cfprregset, ppc32_le_linux_cvmxregset)
947 (ppc32_be_linux_cvmxregset, ppc32_linux_cvsxregset)
948 (ppc32_linux_cpprregset, ppc32_linux_cdscrregset)
949 (ppc32_linux_ctarregset): New globals.
950 (ppc_linux_cgprregset, ppc_linux_cvmxregset): New functions.
951 (ppc_linux_collect_core_cpgrregset): New function.
952 (ppc_linux_iterate_over_regset_sections): Call back with the htm
953 regsets.
954 (ppc_linux_core_read_description): Check if the tm spr section is
955 present and set htm in the features struct.
956 (_initialize_ppc_linux_tdep): Call
957 initialize_tdesc_powerpc_isa207_htm_vsx32l and
958 initialize_tdesc_powerpc_isa207_htm_vsx64l.
959 * ppc-linux-tdep.h (ppc_linux_cgprregset, ppc_linux_cvmxregset):
960 Declare.
961 (ppc32_linux_tm_sprregset, ppc32_linux_cfprregset)
962 (ppc32_linux_cvsxregset, ppc32_linux_cpprregset)
963 (ppc32_linux_cdscrregset, ppc32_linux_ctarregset): Declare.
964 * ppc-tdep.h (struct gdbarch_tdep) <have_htm_spr, have_htm_core>:
965 New fields.
966 <have_htm_fpu, have_htm_altivec, have_htm_vsx>:
967 Likewise.
968 <ppc_cppr_regnum, ppc_cdscr_regnum, ppc_ctar_regnum>: Likewise.
969 <ppc_cdl0_regnum, ppc_cvsr0_regnum, ppc_cefpr0_regnum>: Likewise.
970 (enum) <PPC_TFHAR_REGNUM, PPC_TEXASR_REGNUM, PPC_TFIAR_REGNUM>:
971 New enum fields.
972 <PPC_CR0_REGNUM, PPC_CCR_REGNUM, PPC_CXER_REGNUM>: Likewise.
973 <PPC_CLR_REGNUM, PPC_CCTR_REGNUM, PPC_CF0_REGNUM>: Likewise.
974 <PPC_CFPSCR_REGNUM, PPC_CVR0_REGNUM, PPC_CVSCR_REGNUM>: Likewise.
975 <PPC_CVRSAVE_REGNUM, PPC_CVSR0_UPPER_REGNUM>: Likewise.
976 <PPC_CPPR_REGNUM, PPC_CDSCR_REGNUM>: Likewise.
977 <PPC_CTAR_REGNUM>: Likewise.
978 (PPC_IS_TMSPR_REGNUM, PPC_IS_CKPTGP_REGNUM, PPC_IS_CKPTFP_REGNUM)
979 (PPC_IS_CKPTVMX_REGNUM, PPC_IS_CKPTVSX_REGNUM): Define.
980 * rs6000-tdep.c (IS_CDFP_PSEUDOREG, IS_CVSX_PSEUDOREG)
981 (IS_CEFP_PSEUDOREG): Define.
982 (rs6000_register_name): Hide the upper halves of checkpointed VSX
983 registers. Return names for the checkpointed DFP, VSX, and EFP
984 pseudo registers.
985 (rs6000_pseudo_register_type): Remove initial assert and raise an
986 internal error in the else clause instead. Return types for the
987 checkpointed DFP, VSX, and EFP pseudo registers.
988 (dfp_pseudo_register_read, dfp_pseudo_register_write): Handle
989 checkpointed DFP pseudo registers.
990 (vsx_pseudo_register_read, vsx_pseudo_register_write): Handle
991 checkpointed VSX pseudo registers.
992 (efp_pseudo_register_read, efp_pseudo_register_write): Rename
993 from efpr_pseudo_register_read and
994 efpr_pseudo_register_write. Handle checkpointed EFP pseudo
995 registers.
996 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
997 Handle checkpointed DFP, VSX, and EFP registers.
998 (dfp_ax_pseudo_register_collect, vsx_ax_pseudo_register_collect)
999 (efp_ax_pseudo_register_collect): New functions.
1000 (rs6000_ax_pseudo_register_collect): Move DFP, VSX and EFP pseudo
1001 register logic to new functions. Handle checkpointed DFP, VSX,
1002 and EFP pseudo registers.
1003 (rs6000_gdbarch_init): Look for and validate the htm features.
1004 Include checkpointed DFP, VSX and EFP pseudo-registers.
1005 * NEWS: Mention access to PPR, DSCR, TAR, EBB/PMU registers and
1006 HTM registers.
1007
1008 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1009
1010 * rs6000-tdep.c (rs6000_gdbarch_init): Reject tdescs with vsx but
1011 without altivec or fpu.
1012
1013 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1014 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1015
1016 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_EBBREGSET)
1017 (PPC_LINUX_SIZEOF_PMUREGSET): Declare.
1018 * nat/ppc-linux.h (PPC_FEATURE2_EBB, NT_PPC_EBB, NT_PPC_PMU):
1019 Define if not already defined.
1020 * features/rs6000/power-ebb.xml: New file.
1021 * features/rs6000/power-linux-pmu.xml: New file.
1022 * features/rs6000/powerpc-isa207-vsx32l.xml: Include ebb and pmu
1023 features.
1024 * features/rs6000/powerpc-isa207-vsx64l.xml: Likewise.
1025 * features/rs6000/powerpc-isa207-vsx32l.c: Re-generate.
1026 * features/rs6000/powerpc-isa207-vsx64l.c: Re-generate.
1027 * regformats/rs6000/powerpc-isa207-vsx32l.dat: Re-generate.
1028 * regformats/rs6000/powerpc-isa207-vsx64l.dat: Re-generate.
1029 * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call
1030 fetch_regset with ebb and pmu regsets.
1031 (store_register, store_ppc_registers): Call store_regset with ebb
1032 and pmu regsets.
1033 (ppc_linux_nat_target::read_description): Set isa207 field in the
1034 features struct if ebb and pmu are avaiable.
1035 * ppc-linux-tdep.c (ppc32_regmap_ebb, ppc32_regmap_pmu)
1036 (ppc32_linux_ebbregset, ppc32_linux_pmuregset): New globals.
1037 (ppc_linux_iterate_over_regset_sections): Call back with the ebb
1038 and pmu regsets.
1039 (ppc_linux_core_read_description): Check if the pmu section is
1040 present and set isa207 in the features struct.
1041 * ppc-linux-tdep.h (ppc32_linux_ebbregset)
1042 (ppc32_linux_pmuregset): Declare.
1043 * ppc-tdep.h (struct gdbarch_tdep) <ppc_mmcr0_regnum>: New field.
1044 <ppc_mmcr2_regnum, ppc_siar_regnum, ppc_sdar_regnum>: New fields.
1045 <ppc_sier_regnum>: New field.
1046 (enum): <PPC_BESCR_REGNUM, PPC_EBBHR_REGNUM, PPC_EBBRR_REGNUM>:
1047 New enum values.
1048 <PPC_MMCR0_REGNUM, PPC_MMCR2_REGNUM, PPC_SIAR_REGNUM>: New enum
1049 values.
1050 <PPC_SDAR_REGNUM, PPC_SIER_REGNUM>: New enum values.
1051 (PPC_IS_EBB_REGNUM, PPC_IS_PMU_REGNUM): Define.
1052 * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate the
1053 ebb and pmu features.
1054
1055 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1056 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1057
1058 * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa207_vsx32l)
1059 (tdesc_powerpc_isa207_vsx64l): Declare.
1060 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_TARREGSET): Define.
1061 (struct ppc_linux_features) <isa207>: New field.
1062 (ppc_linux_no_features): Add initializer for isa207 field.
1063 * arch/ppc-linux-common.c (ppc_linux_match_description): Return
1064 new tdescs.
1065 * nat/ppc-linux.h (PPC_FEATURE2_ARCH_2_07, PPC_FEATURE2_TAR)
1066 (NT_PPC_TAR): Define if not already defined.
1067 * features/Makefile (WHICH): Add rs6000/powerpc-isa207-vsx32l and
1068 rs6000/powerpc-isa207-vsx64l.
1069 (XMLTOC): Add rs6000/powerpc-isa207-vsx32l.xml and
1070 rs6000/powerpc-isa207-vsx64l.xml.
1071 * features/rs6000/power-tar.xml: New file.
1072 * features/rs6000/powerpc-isa207-vsx32l.xml: New file.
1073 * features/rs6000/powerpc-isa207-vsx64l.xml: New file.
1074 * features/rs6000/powerpc-isa207-vsx32l.c: Generate.
1075 * features/rs6000/powerpc-isa207-vsx64l.c: Generate.
1076 * regformats/rs6000/powerpc-isa207-vsx32l.dat: Generate.
1077 * regformats/rs6000/powerpc-isa207-vsx64l.dat: Generate.
1078 * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call
1079 fetch_regset with the TAR regset.
1080 (store_register, store_ppc_registers): Call store_regset with the
1081 TAR regset.
1082 (ppc_linux_nat_target::read_description): Set isa207 field in the
1083 features struct if needed.
1084 * ppc-linux-tdep.c: Include
1085 features/rs6000/powerpc-isa207-vsx32l.c and
1086 features/rs6000/powerpc-isa207-vsx64l.c.
1087 (ppc32_regmap_tar, ppc32_linux_tarregset): New globals.
1088 (ppc_linux_iterate_over_regset_sections): Call back with the tar
1089 regset.
1090 (ppc_linux_core_read_description): Check if the tar section is
1091 present and set isa207 in the features struct.
1092 (_initialize_ppc_linux_tdep): Call
1093 initialize_tdesc_powerpc_isa207_vsx32l and
1094 initialize_tdesc_powerpc_isa207_vsx64l.
1095 * ppc-linux-tdep.h (ppc32_linux_tarregset): Declare.
1096 * ppc-tdep.h (gdbarch_tdep) <ppc_tar_regnum>: New field.
1097 (enum) <PPC_TAR_REGNUM>: New enum value.
1098 * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate tar
1099 feature.
1100 (ppc_process_record_op31): Record changes to TAR.
1101
1102 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1103 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1104
1105 * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa205_ppr_dscr_vsx32l)
1106 (tdesc_powerpc_isa205_ppr_dscr_vsx64l): Declare.
1107 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_PPRREGSET)
1108 (PPC_LINUX_SIZEOF_DSCRREGSET): Define.
1109 (struct ppc_linux_features) <ppr_dscr>: New field.
1110 (ppc_linux_no_features): Add initializer for ppr_dscr field.
1111 * arch/ppc-linux-common.c (ppc_linux_match_description): Return
1112 new tdescs.
1113 * nat/ppc-linux.h (PPC_FEATURE2_DSCR, NT_PPC_PPR, NT_PPC_DSCR):
1114 Define if not already defined.
1115 * features/Makefile (WHICH): Add
1116 rs6000/powerpc-isa205-ppr-dscr-vsx32l and
1117 rs6000/powerpc-isa205-ppr-dscr-vsx64l.
1118 (XMLTOC): Add rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
1119 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml.
1120 * features/rs6000/power-dscr.xml: New file.
1121 * features/rs6000/power-ppr.xml: New file.
1122 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml: New file.
1123 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml: New file.
1124 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Generate.
1125 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Generate.
1126 * regformats/rs6000/powerpc-isa205-ppr-dscr-vsx32l.dat: Generate.
1127 * regformats/rs6000/powerpc-isa205-ppr-dscr-vsx64l.dat: Generate.
1128 * ppc-linux-nat.c: Include <sys/uio.h>.
1129 (fetch_regset, store_regset, check_regset): New functions.
1130 (fetch_register, fetch_ppc_registers): Call fetch_regset with
1131 DSCR and PPR regsets.
1132 (store_register, store_ppc_registers): Call store_regset with
1133 DSCR and PPR regsets.
1134 (ppc_linux_get_hwcap2): New function.
1135 (ppc_linux_nat_target::read_description): Call
1136 ppc_linux_get_hwcap2 and check_regset, set ppr_dscr field in the
1137 features struct if needed.
1138 * ppc-linux-tdep.c: Include
1139 features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c and
1140 features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c.
1141 (ppc32_regmap_ppr, ppc32_regmap_dscr, ppc32_linux_pprregset)
1142 (ppc32_linux_dscrregset): New globals.
1143 (ppc_linux_iterate_over_regset_sections): Call back with the ppr
1144 and dscr regsets.
1145 (ppc_linux_core_read_description): Check if the ppr and dscr
1146 sections are present and set ppr_dscr in the features struct.
1147 (_initialize_ppc_linux_tdep): Call
1148 initialize_tdesc_powerpc_isa205_ppr_dscr_vsx32l and
1149 initialize_tdesc_powerpc_isa205_ppr_dscr_vsx64l.
1150 * ppc-linux-tdep.h (ppc32_linux_pprregset)
1151 (ppc32_linux_dscrregset): Declare.
1152 * ppc-tdep.h (struct gdbarch_tdep) <ppc_ppr_regnum>: New field.
1153 <ppc_dscr_regnum>: New field.
1154 (enum) <PPC_PPR_REGNUM, PPC_DSCR_REGNUM>: New enum values.
1155 * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate ppr
1156 and dscr features.
1157 (ppc_process_record_op31): Record changes to PPR and DSCR.
1158
1159 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1160
1161 * rs6000-tdep.c (rs6000_gdbarch_init): Replace line wrapping by a
1162 second initializer line for the have_* variables. Initialize
1163 have_fpu to 0 instead of 1.
1164
1165 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1166
1167 * arch/ppc-linux-common.c (ppc_linux_match_description):
1168 Parenthesize tdesc assignements and indent them properly.
1169
1170 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1171
1172 * ppc-linux-nat.c (fetch_register): Change if statement to else
1173 if.
1174 (store_register): Likewise.
1175
1176 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1177
1178 * rs6000-tdep.c: Remove reggroups.h include.
1179 (rs6000_pseudo_register_reggroup_p): Remove.
1180 (rs6000_gdbarch_init): Remove call to
1181 set_tdesc_pseudo_register_reggroup_p.
1182
1183 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1184
1185 * reggroups.c (default_register_reggroup_p): Return true for
1186 decfloat registers and float_reggroup.
1187
1188 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1189
1190 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): Remove.
1191 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): Replace
1192 ppc_linux_collect_vrregset by regcache_collect_regset.
1193
1194 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1195
1196 * linux-tdep.c (linux_collect_regset_section_cb): Use
1197 std::vector<gdb_byte> instead of char * and malloc for buf.
1198 Remove xfree.
1199
1200 2018-10-26 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
1201
1202 * xcoffread.c (read_xcoff_symtab): Pass deduced language to
1203 symtab_start instead of always using language_unknown.
1204
1205 2018-10-26 Andrew Burgess <andrew.burgess@embecosm.com>
1206
1207 * riscv-tdep.c (riscv_read_misa_reg): Update comment, remove
1208 READ_P parameter, catch and ignore register access errors from
1209 either the old or new MISA location.
1210 (riscv_has_feature): Update call to riscv_read_misa_reg.
1211
1212 2018-10-25 Andrew Burgess <andrew.burgess@embecosm.com>
1213
1214 * python/py-function.c (convert_values_to_python): Return
1215 gdbpy_ref<>. Add header comment.
1216 (fnpy_call): Adjust.
1217
1218 2018-10-25 Andrew Burgess <andrew.burgess@embecosm.com>
1219
1220 * python/py-cmd.c (cmdpy_completer_helper): Return gdbpy_ref<>.
1221 (cmdpy_completer_handle_brkchars): Adjust.
1222 (cmdpy_completer): Adjust.
1223
1224 2018-10-25 Andrew Burgess <andrew.burgess@embecosm.com>
1225
1226 * riscv-linux-nat.c (riscv_linux_nat_target::fetch_registers):
1227 Pass correct regnum to raw_supply_zeroed.
1228
1229 2018-10-23 Hafiz Abid Qadeer <abidh@codesourcery.com>
1230
1231 * regcache.c (cooked_read_test): Add CSKY to the list of
1232 architectures with a save_reggroup
1233
1234 2018-10-23 Simon Marchi <simon.marchi@polymtl.ca>
1235
1236 PR gdb/23368
1237 * infrun.c (follow_exec): In the follow_exec_mode_new case,
1238 transfer terminal state from old new new inferior.
1239 * terminal.h (swap_terminal_info): New function.
1240 * inflow.c (swap_terminal_info): New function.
1241
1242 2018-10-23 Tom Tromey <tom@tromey.com>
1243
1244 * record-btrace.c (get_thread_current_frame_id): Rename from
1245 get_thread_current_frame. Return a frame_id.
1246 (record_btrace_start_replaying): Update.
1247
1248 2018-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1249
1250 * riscv-tdep.c (riscv_register_name): Use the user-friendly names
1251 for CSRs.
1252
1253 2018-10-23 Joel Brobecker <brobecker@adacore.com>
1254
1255 * riscv-tdep.c (riscv_gdbarch_init): Set the gdbarch's
1256 have_nonsteppable_watchpoint attribute to 1.
1257
1258 2018-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1259
1260 * riscv-tdep.c (riscv_gdb_reg_names): Update comment, and all
1261 register names.
1262 (struct register_alias): Rename to...
1263 (struct riscv_register_alias): ...this, and update comment.
1264 (riscv_register_aliases): Update type, and alias names. Remove
1265 CSR names from this list.
1266 (riscv_register_name): Use riscv_gdb_reg_names for int and float
1267 register names. Add an extra assertion.
1268 (riscv_is_regnum_a_named_csr): New function.
1269 (riscv_register_reggroup_p): Use riscv_is_regnum_a_named_csr.
1270
1271 2018-10-23 John Darrington <john@darrington.wattle.id.au>
1272
1273 * configure.tgt: Add configuration for s12z.
1274 * s12z-tdep.c: New file.
1275 * NEWS: Mention new target.
1276
1277 2018-10-22 Jim Wilson <jimw@sifive.com>
1278
1279 * riscv-tdep.c (riscv_push_dummy_call) <in_reg>: Check for value in
1280 FP reg smaller than FP reg size, and fill with -1 instead of 0.
1281
1282 * riscv-tdep.c (riscv_fpreg_d_type, riscv_fpreg_q_type): New.
1283 (riscv_register_type): Use them.
1284 (riscv_print_one_register_info): Handle union of floats same as float.
1285 * riscv-tdep.h (struct gdbarch_tdep): Add riscv_fpreg_d_type and
1286 riscv_fpreg_q_type fields.
1287
1288 2018-10-21 Simon Marchi <simon.marchi@ericsson.com>
1289
1290 * gdbarch.sh (gdbarch_num_cooked_regs): New.
1291 * gdbarch.h: Re-generate.
1292 * ax-gdb.c (gen_expr): Use gdbarch_num_cooked_regs.
1293 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
1294 * eval.c (evaluate_subexp_standard): Likewise.
1295 * findvar.c (value_of_register): Likewise.
1296 (value_of_register_lazy): Likewise.
1297 (address_from_register): Likewise.
1298 * frame.c (get_frame_register_bytes): Likewise.
1299 * gdbarch-selftests.c (register_to_value_test): Likewise.
1300 * h8300-tdep.c (h8300_register_type): Likewise.
1301 * i386-tdep.c (i386_dbx_reg_to_regnum): Likewise.
1302 (i386_svr4_reg_to_regnum): Likewise.
1303 * infcmd.c (default_print_registers_info): Likewise.
1304 (registers_info): Likewise.
1305 (print_vector_info): Likewise.
1306 (default_print_float_info): Likewise.
1307 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1308 * mdebugread.c (mdebug_reg_to_regnum): Likewise.
1309 * mi/mi-main.c (mi_cmd_data_list_register_names): Likewise.
1310 (mi_cmd_data_list_changed_registers): Likewise.
1311 (mi_cmd_data_list_register_values): Likewise.
1312 (mi_cmd_data_write_register_values): Likewise.
1313 (mi_cmd_trace_frame_collected): Likewise.
1314 * mips-tdep.c (print_gp_register_row): Likewise.
1315 (mips_print_registers_info): Likewise.
1316 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
1317 * regcache.c (init_regcache_descr): Likewise.
1318 (register_size): Likewise.
1319 (register_dump::dump): Likewise.
1320 (cooked_read_test): Likewise.
1321 (cooked_write_test): Likewise.
1322 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
1323 (rs6000_gdbarch_init): Likewise.
1324 * stabsread.c (stab_reg_to_regnum): Likewise.
1325 * stack.c (info_frame_command): Likewise.
1326 * target-descriptions.c (tdesc_register_name): Likewise.
1327 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
1328 * tui/tui-regs.c (tui_show_register_group): Likewise.
1329 * user-regs.c (user_reg_map_name_to_regnum): Likewise.
1330 (user_reg_map_regnum_to_name): Likewise.
1331 (value_of_user_reg): Likewise.
1332 (maintenance_print_user_registers): Likewise.
1333 * xtensa-tdep.c (xtensa_find_register_by_name): Likewise.
1334 (xtensa_register_name): Likewise.
1335 (xtensa_register_type): Likewise.
1336 (xtensa_reg_to_regnum): Likewise.
1337 (xtensa_pseudo_register_read): Likewise.
1338 (xtensa_pseudo_register_write): Likewise.
1339
1340 2018-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1341
1342 * amd64-tdep.c (amd64_pseudo_register_read_value): Use
1343 correctly-sized buffer with raw_read.
1344 (amd64_pseudo_register_write): Use correctly-sized buffer for
1345 raw_read/raw_write.
1346
1347 2018-10-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1348
1349 * typeprint.c (_initialize_typeprint): Fix wrong prefixname arg
1350 in add_prefix_cmd of set print type.
1351
1352 2018-10-19 Tom Tromey <tom@tromey.com>
1353
1354 PR tui/18388:
1355 * NEWS: Mention tabset deprecation.
1356 * tui/tui-win.c (tui_tab_width, internal_tab_width): New globals.
1357 (update_tab_width): New function.
1358 (tui_set_tab_width, tui_show_tab_width): New functions.
1359 (tui_set_tab_width_command): Use update_tab_width.
1360 (_initialize_tui_win): Move to end of file. Deprecate "tabset".
1361 Add new "set tui tab-width" command.
1362 * tui/tui-source.c (tui_set_source_content): Update.
1363 * tui/tui-disasm.c (tui_set_disassem_content): Update.
1364 * tui/tui-data.h (tui_default_tab_len, tui_set_default_tab_len):
1365 Don't declare.
1366 (tui_tab_width): Declare.
1367 * tui/tui-data.c (default_tab_len, tui_default_tab_len)
1368 (tui_set_default_tab_len): Remove.
1369
1370 2018-10-19 Tom Tromey <tom@tromey.com>
1371
1372 * tui/tui-io.h (key_is_start_sequence, key_is_end_sequence)
1373 (key_is_backspace, tui_getc): Don't declare.
1374 * tui/tui-io.c (key_is_start_sequence): Now static.
1375 (key_is_end_sequence, key_is_backspace): Remove.
1376 (tui_getc): Now static.
1377
1378 2018-10-19 Tom Tromey <tom@tromey.com>
1379
1380 * symfile.c (reread_symbols): Clear "static_links".
1381
1382 2018-10-19 Alan Hayward <alan.hayward@arm.com>
1383
1384 * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_SIZE): New
1385 define.
1386 (aarch64_linux_sigframe_init): Extra boundary checks.
1387
1388 2018-10-19 Andreas Arnez <arnez@linux.ibm.com>
1389
1390 * s390-tdep.c (s390_pseudo_register_type): For v0-v15 don't yield
1391 the possibly non-existent tdesc type 'vec128', but the type of raw
1392 register v16 instead.
1393
1394 2018-10-19 Gary Benson <gbenson@redhat.com>
1395
1396 * cli/cli-interp.c (cli_interp::~cli_interp): New function.
1397
1398 2018-10-18 Sergio Durigan Junior <sergiodj@redhat.com>
1399
1400 PR cli/23785
1401 * cli/cli-dump.c (restore_binary_file): Check if "file" is
1402 NULL.
1403
1404 2018-10-17 Paul Koning <paul_koning@dell.com>
1405
1406 * charset.c (convert_between_encodings): Fix unsigned overflow.
1407
1408 2018-10-17 John Baldwin <jhb@FreeBSD.org>
1409
1410 * fbsd-nat.c (fbsd_nat_target::info_proc) Use
1411 fbsd_info_proc_mappings_header and fbsd_info_proc_mappings_entry.
1412 * fbsd-tdep.c (fbsd_vm_map_entry_flags): Mark static.
1413 (fbsd_info_proc_mappings_header, fbsd_info_proc_mappings_entry):
1414 New functions.
1415 (fbsd_core_info_proc_mappings): Use fbsd_info_proc_mappings_header
1416 and fbsd_info_proc_mappings_header.
1417 * fbsd-tdep.h (fbsd_vm_map_entry_flags): Remove.
1418 (fbsd_info_proc_mappings_header, fbsd_info_proc_mappings_entry):
1419 New.
1420
1421 2018-10-17 Joel Brobecker <brobecker@adacore.com>
1422
1423 * MAINTAINERS (Responsible Maintainers): Add Rainer Orth as
1424 Solaris Maintainer.
1425
1426 2018-10-15 Tom Tromey <tom@tromey.com>
1427
1428 * tui/tui.c (strcat_to_buf): Remove casts.
1429 * tui/tui-winsource.c (tui_show_source_line)
1430 (tui_set_is_exec_point_at, tui_line_is_displayed): Remove casts.
1431 * tui/tui-wingeneral.c (tui_refresh_win, box_win): Remove casts.
1432 * tui/tui-windata.c (tui_first_data_item_displayed)
1433 (tui_delete_data_content_windows, tui_erase_data_content)
1434 (tui_display_all_data, tui_display_data_from)
1435 (tui_refresh_data_win, tui_vertical_data_scroll): Remove casts.
1436 * tui/tui-win.c (tui_set_win_height)
1437 (make_invisible_and_set_new_height, parse_scrolling_args): Remove
1438 casts.
1439 * tui/tui-win.c (tui_resize_all): Remove casts.
1440 (tui_scroll_backward_command, tui_set_focus)
1441 (tui_set_tab_width_command): Likewise.
1442 * tui/tui-source.c (tui_vertical_source_scroll): Remove cast.
1443 * tui/tui-regs.c (tui_show_register_group): Remove cast.
1444 * tui/tui-layout.c (tui_set_layout_by_name): Remove cast.
1445 * tui/tui-disasm.c (tui_vertical_disassem_scroll): Remove cast.
1446 * tui/tui-data.c (tui_partial_win_by_name, tui_free_win_content):
1447 Remove casts.
1448
1449 2018-10-15 Simon Marchi <simon.marchi@ericsson.com>
1450
1451 * MAINTAINERS (Responsible Maintainers): Add Alan Hayward as
1452 AArch64/ARM maintainer.
1453
1454 2018-10-11 Gary Benson <gbenson@redhat.com>
1455
1456 * interps.h (interp::m_name): Make private and mutable.
1457 * interps.c (interp::~interp): Free m_name.
1458
1459 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
1460 Simon Marchi <simark@simark.ca>
1461
1462 * README (`configure' options): Add documentation for new
1463 "--enable-unit-tests" option.
1464 * acinclude.m4: Include "selftest.m4".
1465 * configure: Regenerate.
1466 * configure.ac: Use "GDB_AC_SELFTEST".
1467 * maint.c (maintenance_selftest): Update message informing
1468 that selftests have been disabled.
1469 (maintenance_info_selftests): Likewise.
1470 * selftest.m4: New file.
1471
1472 2018-10-10 Gary Benson <gbenson@redhat.com>
1473
1474 * remote.c (remote_target::remote_send_printf): Add
1475 missing va_end found by Coverity.
1476
1477 2018-10-10 Markus Metzger <markus.t.metzger@intel.com>
1478
1479 * btrace.c (ftrace_update_function): Add indirect jump heuristic.
1480
1481 2018-10-09 Tom Tromey <tom@tromey.com>
1482
1483 * configure: Rebuild.
1484 * sanitize.m4 (AM_GDB_UBSAN): Default to no.
1485 * NEWS: Update --enable-ubsan documentation.
1486
1487 2018-10-09 Gary Benson <gbenson@redhat.com>
1488
1489 * dwarf2read.c (create_dwp_hash_table): Fix buffer overrun
1490 found by Coverity.
1491
1492 2018-10-08 Tom Tromey <tom@tromey.com>
1493
1494 * riscv-fbsd-tdep.c (riscv_fbsd_sigframe_init): Remove unused
1495 variable.
1496 (riscv_fbsd_init_abi): Likewise.
1497
1498 2018-10-08 Weimin Pan <weimin.pan@oracle.com>
1499 * valops.c (value_struct_elt_for_reference): Rename local variable
1500 to work around the shadowing a previous local warning.
1501
1502 2018-10-08 John Baldwin <jhb@FreeBSD.org>
1503
1504 * Makefile.in (ALLDEPFILES): Add riscv-fbsd-nat.c.
1505 * NEWS: Mention new FreeBSD/riscv native configuration.
1506 * configure.host: Add riscv*-*-freebsd*.
1507 * configure.nat: Likewise.
1508 * riscv-fbsd-nat.c: New file.
1509
1510 2018-10-08 John Baldwin <jhb@FreeBSD.org>
1511
1512 * Makefile.in (ALL_TARGET_OBS): Add riscv-fbsd-tdep.o.
1513 (HFILES_NO_SRCDIR): Add riscv-fbsd-tdep.h.
1514 (ALLDEPFILES): Add riscv-fbsd-tdep.c.
1515 * NEWS: Mention new FreeBSD/riscv target.
1516 * configure.tgt: Add riscv*-*-freebsd*.
1517 * riscv-fbsd-tdep.c: New file.
1518 * riscv-fbsd-tdep.h: New file.
1519
1520 2018-10-08 John Baldwin <jhb@FreeBSD.org>
1521
1522 * regcache.h (struct regcache_map_entry): Note that this type can
1523 be used with traditional frame caches.
1524 * trad-frame.c (trad_frame_set_reg_regmap): New.
1525 * trad-frame.h (trad_frame_set_reg_regmap): New.
1526
1527 2018-10-08 Weimin Pan <weimin.pan@oracle.com>
1528
1529 PR c++/16841
1530 * valops.c (get_virtual_base_offset): New function.
1531 (value_struct_elt_for_reference): Use it to get virtual base offset
1532 and add it in calculating class member address.
1533
1534 2018-10-08 John Darrington <john@darrington.wattle.id.au>
1535
1536 * dwarf2read.c (dwarf2_cu) <producer_is_codewarrior>: New field.
1537 (check_producer): Check if the producer is codewarrior.
1538 (producer_is_codewarrior): New function.
1539 (lnp_state_machine::record_line): Ignore is_stmt flag for records
1540 produced by codewarrior.
1541 (dwarf2_cu::dwarf2_cu): Initialize producer_is_codewarrior.
1542
1543 2018-10-06 Tom Tromey <tom@tromey.com>
1544
1545 PR python/19399:
1546 * python/py-inferior.c: Add "architecture" entry.
1547 (infpy_architecture): New function.
1548
1549 2018-10-06 Tom Tromey <tom@tromey.com>
1550
1551 PR python/21765:
1552 * python/py-symbol.c (gdbpy_initialize_symbols): Redefine
1553 SYMBOL_VARIABLES_DOMAIN, SYMBOL_FUNCTIONS_DOMAIN,
1554 SYMBOL_TYPES_DOMAIN. Define SYMBOL_MODULE_DOMAIN,
1555 SYMBOL_COMMON_BLOCK_DOMAIN, SYMBOL_LOC_COMMON_BLOCK.
1556
1557 2018-10-06 Tom Tromey <tom@tromey.com>
1558
1559 PR build/17077:
1560 * Makefile.in (OPCODES_CFLAGS): Remove "-I$(OPCODES_SRC)/..".
1561 * arc-tdep.c, frv-tdep.c, lm32-tdep.c, mep-tdep.c,
1562 microblaze-tdep.c, or1k-tdep.h: Use ../opcodes, not opcodes, in
1563 #include.
1564
1565 2018-10-06 Tom Tromey <tom@tromey.com>
1566
1567 * python/py-breakpoint.c (bppy_get_location): Handle a
1568 bp_breakpoint without a location.
1569
1570 2018-10-06 Tom Tromey <tom@tromey.com>
1571
1572 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq)
1573 (_RegEx): Reformat help text.
1574 * python/lib/gdb/function/caller_is.py (CallerIs, CallerMatches)
1575 (AnyCallerIs, AnyCallerMatches): Reformat help text.
1576 * python/lib/gdb/function/as_string.py (_AsString): Reformat help
1577 text.
1578 * python/lib/gdb/command/xmethods.py (InfoXMethod)
1579 (EnableXMethod, DisableXMethod): Remove help indentation.
1580 Capitalize meta-syntactic variables.
1581 * python/lib/gdb/command/unwinders.py (InfoUnwinder)
1582 (EnableUnwinder, DisableUnwinder): Remove help indentation.
1583 Capitalize meta-syntactic variables.
1584 * python/lib/gdb/command/explore.py (ExploreCommand)
1585 (ExploreValueCommand, ExploreTypeCommand): Reformat help text.
1586 * python/lib/gdb/command/type_printers.py (InfoTypePrinter)
1587 (EnableTypePrinter, DisableTypePrinter): Remove help indentation.
1588 * python/lib/gdb/command/pretty_printers.py (InfoPrettyPrinter):
1589 Remove help indentation.
1590 (EnablePrettyPrinter, DisablePrettyPrinter): Likewise.
1591 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter)
1592 (DisableFrameFilter, SetFrameFilterPriority)
1593 (ShowFrameFilterPriority, InfoFrameFilter): Reword help text.
1594
1595 2018-10-06 Tom Tromey <tom@tromey.com>
1596
1597 PR tui/28819:
1598 * tui/tui-io.c (gdb_wgetch): New function.
1599 (tui_mld_getc, tui_getc): Use it.
1600
1601 2018-10-05 Tom Tromey <tom@tromey.com>
1602
1603 * sol-thread.c (sol_thread_target::wait): Rename inner
1604 "save_ptid".
1605
1606 2018-10-04 Tom Tromey <tom@tromey.com>
1607
1608 * configure: Rebuild.
1609 * warning.m4 (AM_GDB_WARNINGS): Add -Wshadow=local.
1610
1611 2018-10-04 Tom Tromey <tom@tromey.com>
1612
1613 * guile/scm-frame.c (gdbscm_frame_read_var): Remove inner
1614 declaration of "block".
1615
1616 2018-10-04 Tom Tromey <tom@tromey.com>
1617
1618 * common/filestuff.c (fdwalk): Remove inner declaration of
1619 "result".
1620
1621 2018-10-04 Tom Tromey <tom@tromey.com>
1622
1623 * msp430-tdep.c (msp430_push_dummy_call): Rename inner
1624 "structs_addr" and hoist declaration.
1625
1626 2018-10-04 Tom Tromey <tom@tromey.com>
1627
1628 * linux-tdep.c (linux_make_mappings_corefile_notes): Introduce new
1629 variable "size".
1630
1631 2018-10-04 Tom Tromey <tom@tromey.com>
1632
1633 * mdebugread.c (parse_partial_symbols): Use std::string.
1634
1635 2018-10-04 Tom Tromey <tom@tromey.com>
1636
1637 * ctf.c (SET_ARRAY_FIELD): Rename "u32".
1638 * p-valprint.c (pascal_val_print): Split inner "i" variable.
1639 * xtensa-tdep.c (xtensa_push_dummy_call): Declare "i" in loop
1640 header.
1641 * xstormy16-tdep.c (xstormy16_push_dummy_call): Declare "val" in
1642 more inner scope.
1643 * xcoffread.c (read_xcoff_symtab): Rename inner "symbol".
1644 * varobj.c (varobj_update): Rename inner "newobj",
1645 "type_changed".
1646 * valprint.c (generic_emit_char): Rename inner "buf".
1647 * valops.c (find_overload_match): Rename inner "temp".
1648 (value_struct_elt_for_reference): Declare "v" in more inner
1649 scope.
1650 * v850-tdep.c (v850_push_dummy_call): Rename "len".
1651 * unittests/array-view-selftests.c (run_tests): Rename inner
1652 "vec".
1653 * tui/tui-stack.c (tui_show_frame_info): Declare "i" in loop
1654 header.
1655 * tracepoint.c (merge_uploaded_trace_state_variables): Declare
1656 "tsv" in more inner scope.
1657 (print_one_static_tracepoint_marker): Rename inner
1658 "tuple_emitter".
1659 * tic6x-tdep.c (tic6x_analyze_prologue): Declare "inst" lower.
1660 (tic6x_push_dummy_call): Don't redeclare "addr".
1661 * target-float.c: Declare "dto" lower.
1662 * symtab.c (lookup_local_symbol): Rename inner "sym".
1663 (find_pc_sect_line): Rename inner "pc".
1664 * stack.c (print_frame): Don't redeclare "gdbarch".
1665 (return_command): Rename inner "gdbarch".
1666 * s390-tdep.c (s390_prologue_frame_unwind_cache): Renam inner
1667 "sp".
1668 * rust-lang.c (rust_internal_print_type): Declare "i" in loop
1669 header.
1670 * rs6000-tdep.c (ppc_process_record): Rename inner "addr".
1671 * riscv-tdep.c (riscv_push_dummy_call): Declare "info" in inner
1672 scope.
1673 * remote.c (remote_target::update_thread_list): Don't redeclare
1674 "tp".
1675 (remote_target::process_initial_stop_replies): Rename inner
1676 "thread".
1677 (remote_target::remote_parse_stop_reply): Don't redeclare "p".
1678 (remote_target::wait_as): Don't redeclare "stop_reply".
1679 (remote_target::get_thread_local_address): Rename inner
1680 "result".
1681 (remote_target::get_tib_address): Likewise.
1682
1683 * regcache.c (cooked_read_test): Rename "regnum".
1684 * record-btrace.c (cmd_record_btrace_start): Rename inner
1685 "exception".
1686 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Declare "i" in
1687 loop header.
1688 * ppc-linux-tdep.c (ppc_linux_syscall_record): Declare "i" in loop
1689 header.
1690 (ppu2spu_sniffer): Rename inner "buf".
1691 * parse.c (operator_check_standard): Rename inner "type",
1692 "objfile".
1693 * p-valprint.c (pascal_val_print): Introduce new scope for
1694 "low_bound", "high_bound".
1695 * p-exp.y (yylex): Declare "i" in loop header.
1696 * objfiles.c (objfile_relocate1): Declare "i" in loop header.
1697 Lower declaration of "s".
1698 * nios2-tdep.c (nios2_analyze_prologue): Declare "i" in loop
1699 header.
1700 (nios2_push_dummy_call): Rename "len".
1701 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Rename static
1702 "buf".
1703 (linux_xfer_osdata_fds, linux_xfer_osdata_shm)
1704 (linux_xfer_osdata_sem, linux_xfer_osdata_msg)
1705 (linux_xfer_osdata_modules): Likewise.
1706 * mips-tdep.c (mips_eabi_push_dummy_call): Rename outer "len".
1707 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
1708 (mips_o64_push_dummy_call): Likewise.
1709 * microblaze-tdep.c (microblaze_analyze_prologue): Rename inner
1710 "op".
1711 * mi/mi-main.c (list_available_thread_groups): Rename inner
1712 "tuple_emitter".
1713 (mi_cmd_data_read_memory): Rename inner "opts".
1714 * mi/mi-cmd-var.c (varobj_update_one): Rename inner
1715 "tuple_emitter".
1716 * mep-tdep.c (mep_analyze_prologue): Declare "rn" in loop header.
1717 * mdebugread.c (parse_symbol): Rename inner "b". Declare "f" in
1718 more inner scope.
1719 (parse_partial_symbols): Rename inner "pst", "p", "name"
1720 * main.c (captured_main_1): Rename inner "i"s.
1721 * machoread.c (macho_symfile_read_all_oso): Don't redeclare
1722 "oso2".
1723 * linux-tdep.c (linux_info_proc): Rename inner "filename".
1724 * linespec.c (linespec_lexer_lex_string): Rename inner "p".
1725 * infrun.c (handle_no_resumed): Don't redeclare "thread".
1726 (handle_signal_stop): Rename inner "gdbarch".
1727 (handle_command): Declare "signum" in loop header.
1728 * ia64-tdep.c (ia64_pseudo_register_read): Don't redeclare
1729 "status".
1730 (examine_prologue): Rename inner "sol" and "sof".
1731 (ia64_extract_return_value): Rename inner "val". Declare another
1732 "val" in a more inner scope.
1733 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Declare "buf" in
1734 inner scope.
1735 * guile/scm-symbol.c (gdbscm_lookup_symbol): Rename inner
1736 "except".
1737 * findvar.c (default_read_var_value): Don't redeclare "addr".
1738 * f-exp.y (yylex): Declare "i" in loop header.
1739 * eval.c (evaluate_subexp_standard): Don't redeclare "type".
1740 Rename inner "type", "expect_type".
1741 (evaluate_subexp_for_sizeof): Rename inner "pc".
1742 * elfread.c (elf_symfile_read): Rename inner "abfd".
1743 * dwarf2read.c (read_debug_names_from_section): Don't redeclare
1744 "bytes_read".
1745 (process_psymtab_comp_unit_reader): Don't redeclare "gdbarch".
1746 (add_partial_subprogram): Rename inner "lowpc" and "highpc".
1747 (dwarf_decode_line_header): Rename inner "lh".
1748 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Don't redeclare
1749 "offset". Declare "i" in loop header.
1750 (disassemble_dwarf_expression): Rename inner "addr_size".
1751 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Rename
1752 inner "result".
1753 (dwarf_expr_context::execute_stack_op): Rename inner "offset".
1754 * dwarf2-frame.c (decode_frame_entry_1): Rename inner "length"s.
1755 * disasm.c (do_mixed_source_and_assembly_deprecated): Rename inner
1756 "inner_list_emitter".
1757 (do_mixed_source_and_assembly): Rename inner "tuple_emitter".
1758 * disasm-selftests.c (print_one_insn_test): Wrap "bplen"
1759 declaration in a block.
1760 * csky-tdep.c (csky_analyze_prologue): Declare "offset" lower.
1761 * cp-valprint.c (cp_print_value_fields): Don't redeclare
1762 "obstack_final_size".
1763 * cp-support.c (inspect_type): Declare "i" in loop header.
1764 * compile/compile.c (compile_instance::insert_symbol_error):
1765 Rename inner "e".
1766 * common/agent.c (agent_run_command): Remove inner "ret"
1767 declaration.
1768 * coffread.c (coff_symfile_read): Rename inner "name".
1769 (coff_symfile_read): Rename inner "abfd".
1770 * cli/cli-utils.c (get_number_trailer): Rename inner "val".
1771 * cli/cli-cmds.c (print_disassembly): Rename inner "low" and
1772 "high".
1773 * c-exp.y (lex_one_token): Move "len" declaration lower.
1774 * breakpoint.c (create_longjmp_master_breakpoint): Don't redeclare
1775 "gdbarch".
1776 (create_exception_master_breakpoint): Likewise. Don't redeclare
1777 "b".
1778 (watch_command_1): Declare "mark" later.
1779 (clear_command): Don't shadow "a" or "b".
1780 (delete_command): Rename inner "b".
1781 (delete_trace_command): Likewise.
1782 * arm-tdep.c (thumb_process_displaced_32bit_insn): Rename inner
1783 "op".
1784 (arm_gdbarch_init): Remove inner "e_flags".
1785 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Declare
1786 "offset" in inner blocks.
1787
1788 2018-10-04 Simon Marchi <simon.marchi@ericsson.com>
1789
1790 * dwarf-index-write.c (file_write): Don't write if the vector is
1791 empty.
1792
1793 2018-10-05 Tom de Vries <tdevries@suse.de>
1794
1795 * python/py-progspace.c (pspy_solib_name): Fix type mismatch in
1796 PyArg_ParseTuple call.
1797
1798 2018-10-05 Tom de Vries <tdevries@suse.de>
1799
1800 * python/py-record-btrace.c (recpy_bt_goto): Fix type mismatch in
1801 PyArg_ParseTuple call.
1802
1803 2018-10-04 Joel Brobecker <brobecker@adacore.com>
1804
1805 * psymtab.c (recursively_search_psymtabs): Reformat parameters
1806 to avoid exceeding 80 characters per line limit.
1807
1808 2018-10-04 Tom Tromey <tom@tromey.com>
1809
1810 * symfile.c (syms_from_objfile_1, finish_new_objfile)
1811 (reread_symbols): Update.
1812 * complaints.h (clear_complaints): Remove argument.
1813 * complaints.c (enum complaint_series): Remove.
1814 (series): Remove global.
1815 (complaint_internal): Update.
1816 (clear_complaints): Remove argument.
1817
1818 2018-10-04 Tom Tromey <tom@tromey.com>
1819
1820 * symfile.c (symbol_file_add_with_addrs): Do not print "no
1821 debugging symbols" message if there is a separate debug objfile.
1822
1823 2018-10-04 Tom Tromey <tom@tromey.com>
1824
1825 PR cli/19551:
1826 * symfile.c (symbol_file_add_with_addrs): Update output.
1827 * psymtab.c (require_partial_symbols): Update output.
1828
1829 2018-10-04 Tom Tromey <tom@tromey.com>
1830
1831 PR cli/22234:
1832 * complaints.c: Emit \n.
1833
1834 2018-10-04 Tom Tromey <tom@tromey.com>
1835
1836 * symfile.c (symbol_file_add_with_addrs, symbol_file_clear)
1837 (separate_debug_file_exists, find_separate_debug_file)
1838 (add_symbol_file_command, reread_symbols, allocate_symtab)
1839 (allocate_compunit_symtab): Use filtered printing, not
1840 unfiltered.
1841 * psymtab.c (require_partial_symbols, dump_psymtab)
1842 (allocate_psymtab): Use filtered printing, not unfiltered.
1843
1844 2018-10-04 Tom Tromey <tom@tromey.com>
1845
1846 * complaints.c (complaint_internal): Correctly check complaint
1847 count.
1848
1849 2018-10-04 Tom Tromey <tom@tromey.com>
1850
1851 * complaints.h (struct complaints): Remove declaration.
1852 * complaints.c (clear_complaints): Remove an unused variable.
1853
1854 2018-10-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1855
1856 * MAINTAINERS (Write After Approval): Add self.
1857
1858 2018-10-03 Tom Tromey <tom@tromey.com>
1859
1860 * guile/scm-value.c (gdbscm_value_to_string): Initialize
1861 "buffer_contents".
1862 * coffread.c (coff_symtab_read): Initialize "newobj".
1863
1864 2018-10-03 Simon Marchi <simon.marchi@polymtl.ca>
1865
1866 * dwarf2read.c (read_func_scope): Remove struct keyword in
1867 range-based for.
1868
1869 2018-10-03 Tom Tromey <tom@tromey.com>
1870
1871 * README: Mention --enable-ubsan.
1872 * NEWS: Mention --enable-ubsan.
1873 * acinclude.m4: Include sanitize.m4.
1874 * configure: Rebuild.
1875 * configure.ac: Call AM_GDB_UBSAN.
1876 * sanitize.m4: New file.
1877
1878 2018-10-03 Tom Tromey <tom@tromey.com>
1879
1880 * expression.h (enum exp_opcode): Use uint8_t as base type.
1881 * expprint.c (op_name): Handle invalid opcodes.
1882
1883 2018-10-03 Tom Tromey <tom@tromey.com>
1884
1885 * parse.c (prefixify_expression): Add assert.
1886 (parse_exp_in_context_1): Throw exception if the expression is
1887 empty.
1888
1889 2018-10-03 Tom Tromey <tom@tromey.com>
1890
1891 * dwarf2read.c (read_signed_leb128): Work in ULONGEST.
1892
1893 2018-10-03 Tom Tromey <tom@tromey.com>
1894
1895 * c-exp.y (parse_number): Work in unsigned. Remove casts.
1896
1897 2018-10-03 Tom Tromey <tom@tromey.com>
1898
1899 * dwarf2read.c (read_subrange_type): Make "negative_mask"
1900 unsigned.
1901
1902 2018-10-03 Tom Tromey <tom@tromey.com>
1903
1904 * findvar.c (extract_integer): Do work in an unsigned type.
1905
1906 2018-10-03 Tom Tromey <tom@tromey.com>
1907
1908 * common/enum-flags.h (enum_flags::operator~): Add static assert.
1909 * symfile-add-flags.h (enum symfile_add_flag): Use unsigned as
1910 base type.
1911 * objfile-flags.h (enum objfile_flag): Use unsigned as base type.
1912 * gdbtypes.h (enum type_instance_flag_value): Use unsigned as base
1913 type.
1914 * c-lang.h (enum c_string_type_values): Use unsigned as base
1915 type.
1916 * btrace.h (enum btrace_thread_flag): Use unsigned as base type.
1917
1918 2018-10-03 Tom Tromey <tom@tromey.com>
1919
1920 * dwarf2-frame.h (dwarf2_frame_state_reg_info)
1921 <~dwarf2_frame_state_reg_info>: Update.
1922 <dwarf2_frame_state_reg_info>: Update.
1923 <alloc_regs>: Add assertion. Update.
1924 <reg>: Now a std::vector.
1925 <num_regs>: Remove.
1926 <swap>: Update.
1927 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
1928 (execute_cfa_program_test, dwarf2_frame_cache): Update.
1929
1930 2018-10-03 Tom Tromey <tom@tromey.com>
1931
1932 * namespace.c (add_using_directive): Don't pass NULL to memcpy.
1933
1934 2018-10-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1935
1936 * tid-parse.c (tid_is_in_list): Fix wrong 'See' comment.
1937
1938 2018-10-02 Tom Tromey <tom@tromey.com>
1939
1940 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Use pulongest.
1941
1942 2018-10-02 John Darrington <john@darrington.wattle.id.au>
1943
1944 * NEWS: Mention changed commands.
1945 * ser-uds.c: New file.
1946 * configure.ac (SER_HARDWIRE): Add ser-uds.o.
1947 * configure: Regenerate.
1948 * Makefile.in: Add new file.
1949 * serial.c (serial_open): Check if filename is a socket
1950 and lookup the appropriate interface accordingly.
1951
1952 2018-10-01 Alan Hayward <alan.hayward@arm.com>
1953
1954 * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_OFFSET): Add
1955 define.
1956 (AARCH64_EXTRA_MAGIC): Likewise.
1957 (AARCH64_FPSIMD_MAGIC): Likewise.
1958 (AARCH64_SVE_MAGIC): Likewise.
1959 (AARCH64_EXTRA_DATAP_OFFSET): Likewise.
1960 (AARCH64_FPSIMD_FPSR_OFFSET): Likewise.
1961 (AARCH64_FPSIMD_FPCR_OFFSET): Likewise.
1962 (AARCH64_FPSIMD_V0_OFFSET): Likewise.
1963 (AARCH64_FPSIMD_VREG_SIZE): Likewise.
1964 (AARCH64_SVE_CONTEXT_VL_OFFSET): Likewise.
1965 (AARCH64_SVE_CONTEXT_REGS_OFFSET): Likewise.
1966 (AARCH64_SVE_CONTEXT_P_REGS_OFFSET): Likewise.
1967 (AARCH64_SVE_CONTEXT_FFR_OFFSET): Likewise.
1968 (AARCH64_SVE_CONTEXT_SIZE): Likewise.
1969 (read_aarch64_ctx): Add function.
1970 (aarch64_linux_sigframe_init): Detect FP registers.
1971
1972 2018-10-01 Alan Hayward <alan.hayward@arm.com>
1973
1974 * aarch64-tdep.c (AARCH64_Q0_REGNUM): Move to here.
1975 (AARCH64_D0_REGNUM): Likewise.
1976 (AARCH64_S0_REGNUM): Likewise.
1977 (AARCH64_H0_REGNUM): Likewise.
1978 (AARCH64_B0_REGNUM): Likewise.
1979 (AARCH64_SVE_V0_REGNUM): Likewise.
1980 * arch/aarch64.h (AARCH64_Q0_REGNUM): Move from here.
1981 (AARCH64_D0_REGNUM): Likewise.
1982 (AARCH64_S0_REGNUM): Likewise.
1983 (AARCH64_H0_REGNUM): Likewise.
1984 (AARCH64_B0_REGNUM): Likewise.
1985 (AARCH64_SVE_V0_REGNUM): Likewise.
1986
1987 2018-10-01 Gary Benson <gbenson@redhat.com>
1988
1989 * gdb_proc_service.h (gdb_prfpregset_t): Remove typedef.
1990 * proc-service.c (ps_lgetfpregs, ps_lsetfpregs): Use
1991 prfpregset_t instead of gdb_prfpregset_t.
1992 * configure.ac (PRFPREGSET_T_BROKEN): Remove check.
1993 * configure, config.in: Rebuild.
1994
1995 2018-10-01 Gary Benson <gbenson@redhat.com>
1996
1997 * common/gdb_proc_service.h: New file, factored out from...
1998 * gdb_proc_service.h: Moved common code to the above file.
1999 * Makefile.in (HFILES_NO_SRCDIR): Add the above new file.
2000
2001 2018-10-01 Gary Benson <gbenson@redhat.com>
2002
2003 * gdb_proc_service.h: Use elf_gregset_t if prgregset_t is
2004 undefined. Use elf_fpregset_t if prfpregset_t is undefined.
2005
2006 2018-10-01 Gary Benson <gbenson@redhat.com>
2007
2008 * configure.ac: Check if sys/procfs.h defines elf_fpregset_t.
2009 (AC_CHECK_HEADERS): Check for linux/elf.h.
2010 * configure, config.in: Rebuild.
2011 * gdb_proc_service.h: Include linux/elf.h if sys/procfs.h
2012 doesn't define elf_fpregset_t.
2013
2014 2018-10-01 Gary Benson <gbenson@redhat.com>
2015
2016 * gdb_proc_service.h: Whitespace change.
2017
2018 2018-10-01 Tom Tromey <tom@tromey.com>
2019
2020 * unittests/scoped_mmap-selftests.c: Don't check HAVE_UNISTD_H.
2021 * unittests/scoped_fd-selftests.c: Don't check HAVE_UNISTD_H.
2022 * common/scoped_fd.h: Don't check HAVE_UNISTD_H.
2023
2024 2018-10-01 Tom Tromey <tom@tromey.com>
2025
2026 * README: Minor change.
2027
2028 2018-09-30 Pedro Alves <palves@redhat.com>
2029
2030 * darwin-nat-info.c (darwin_debug_regions_recurse)
2031 (info_mach_exceptions_command): Remove unused local variables.
2032 * darwin-nat.c (darwin_decode_notify_message)
2033 (darwin_nat_target::resume, darwin_nat_target::mourn_inferior)
2034 (darwin_stop_inferior, darwin_setup_exceptions)
2035 (darwin_nat_target::kill, darwin_attach_pid, darwin_ptrace_him)
2036 (darwin_nat_target::attach, darwin_nat_target::detach)
2037 (darwin_read_write_inferior, darwin_read_dyld_info): Remove unused
2038 local variables.
2039 * i386-darwin-nat.c (i386_darwin_dr_set): Remove unused local
2040 variables.
2041
2042 2018-09-29 Tom Tromey <tom@tromey.com>
2043
2044 * README: Remove some leftover text.
2045
2046 2018-09-29 Tom Tromey <tom@tromey.com>
2047
2048 * PROBLEMS: Rewrite.
2049 * README: Update.
2050
2051 2018-09-28 John Baldwin <jhb@FreeBSD.org>
2052
2053 * disasm-selftests.c (print_one_insn_test): Add bfd_arch_riscv to
2054 case with explicit breakpoint kind.
2055 * riscv-tdep.c (show_use_compressed_breakpoints): Remove
2056 'additional_info' and related logic.
2057 (riscv_debug_breakpoints): New variable.
2058 (riscv_breakpoint_kind_from_pc): Use the length of the existing
2059 instruction to determine the breakpoint kind.
2060 (_initialize_riscv_tdep): Add 'set/show debug riscv breakpoints'
2061 flag. Update description of 'set/show riscv
2062 use-compressed-breakpoints' flag.
2063
2064 2018-09-28 Andrew Burgess <andrew.burgess@embecosm.com>
2065
2066 (NEWS): Mention changes to frame related commands.
2067 * cli/cli-decode.c (add_cmd_suppress_notification): New function.
2068 (add_prefix_cmd_suppress_notification): New function.
2069 (add_com_suppress_notification): Call
2070 add_cmd_suppress_notification.
2071 * command.h (add_cmd_suppress_notification): Declare.
2072 (add_prefix_cmd_suppress_notification): Declare.
2073 * mi/mi-cmd-stack.c: Add 'safe-ctype.h' include.
2074 (parse_frame_specification): Moved from stack.c, with
2075 simplification to handle a single argument.
2076 (mi_cmd_stack_select_frame): Use parse_frame_specification, the
2077 switch to the selected frame. Add a header comment.
2078 * stack.c: Remove 'safe-ctype.h' include.
2079 (find_frame_for_function): Add declaration.
2080 (find_frame_for_address): New function.
2081 (parse_frame_specification): Moved into mi/mi-cmd-stack.c.
2082 (frame_selection_by_function_completer): New function.
2083 (info_frame_command): Rename to...
2084 (info_frame_command_core): ...this, and update parameter types.
2085 (select_frame_command): Rename to...
2086 (select_frame_command_core): ...this, and update parameter types.
2087 (frame_command): Rename to...
2088 (frame_command_core): ...this, and update parameter types.
2089 (class frame_command_helper): New class to wrap implementations of
2090 frame related sub-commands.
2091 (frame_apply_cmd_list): New static global.
2092 (frame_cmd_list): Make static.
2093 (select_frame_cmd_list): New global for sub-commands.
2094 (info_frame_cmd_list): New global for sub-commands.
2095 (_initialize_stack): Register sub-commands for 'frame',
2096 'select-frame', and 'info frame'. Update 'frame apply' commands
2097 to use frame_apply_cmd_list. Move function local static
2098 frame_apply_list to file static frame_apply_cmd_list for
2099 consistency.
2100 * stack.h (select_frame_command): Delete declarationn.
2101 (select_frame_for_mi): Declare new function.
2102
2103 2018-09-26 Andrew Burgess <andrew.burgess@embecosm.com>
2104
2105 * riscv-tdep.c (riscv_insn::decode): Decode c.lui.
2106 (riscv_scan_prologue): Split handling of AUIPC, LUI, ADD, ADDI,
2107 and NOP.
2108
2109 2018-09-26 Simon Marchi <simon.marchi@ericsson.com>
2110
2111 * elf32-nds32.c (elf32_nds32_allocate_dynrelocs): Remove.
2112
2113 2018-09-26 Tom Tromey <tom@tromey.com>
2114
2115 * valops.c (auto_abandon): Remove dead code.
2116
2117 2018-09-26 Tom Tromey <tom@tromey.com>
2118
2119 * tui/tui-win.c (WIN_HEIGHT_USAGE): Remove extra ">"s.
2120
2121 2018-09-24 Tom Tromey <tom@tromey.com>
2122
2123 * common/pathstuff.c (get_standard_cache_dir): Make
2124 "xdg_cache_home" and "home" const.
2125 * top.c (init_history): Make "tmpenv" const.
2126 * main.c (get_init_files): Make "homedir" const.
2127
2128 2018-09-23 Tom Tromey <tom@tromey.com>
2129
2130 PR python/18852:
2131 * python/py-param.c (get_set_value): Use gdbpy_handle_exception.
2132
2133 2018-09-23 Tom Tromey <tom@tromey.com>
2134
2135 * python/py-function.c (fnpy_call): Use gdbpy_handle_exception.
2136 * python/py-cmd.c (cmdpy_function): Use gdbpy_handle_exception.
2137 * python/python-internal.h (gdbpy_handle_exception): Declare.
2138 * python/py-utils.c (gdbpy_handle_exception): New function.
2139
2140 2018-09-23 Tom Tromey <tom@tromey.com>
2141
2142 PR python/17284:
2143 * python/py-type.c (typy_template_argument): Check for negative
2144 argument number.
2145
2146 2018-09-23 Tom Tromey <tom@tromey.com>
2147
2148 PR python/14062:
2149 * python/python.c (gdbpy_run_events): Do not ignore exceptions.
2150
2151 2018-09-23 Tom Tromey <tom@tromey.com>
2152
2153 PR python/18170:
2154 * python/py-value.c (valpy_int): Allow conversion from pointer
2155 type.
2156
2157 2018-09-23 Tom Tromey <tom@tromey.com>
2158
2159 PR python/20126:
2160 * python/py-value.c (valpy_int): Respect type sign.
2161
2162 2018-09-23 Tom Tromey <tom@tromey.com>
2163
2164 PR python/18352;
2165 * python/py-value.c (valpy_float): Allow conversions from int or
2166 char.
2167 (valpy_int, valpy_long): Allow conversions from float.
2168
2169 2018-09-23 Tom Tromey <tom@tromey.com>
2170
2171 * ctf.c (ctf_start): Use gdb_fopen_cloexec.
2172 * common/scoped_mmap.c (mmap_file): Use gdb_open_cloexec.
2173
2174 2018-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2175
2176 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Also recognize
2177 __sighndlr.
2178 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Likewise.
2179
2180 2018-08-02 Jon Turney <jon.turney@dronecode.org.uk>
2181
2182 * windows-nat.c (windows_nat_target::wait): Remove a spurious
2183 target_terminal::ours().
2184
2185 2018-09-23 Simon Marchi <simon.marchi@ericsson.com>
2186
2187 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): Change type
2188 of vl to ULONGEST.
2189
2190 2018-09-21 Yacov Simhony <ysimhony@gmail.com>
2191
2192 * breakpoint.c (update_inserted_breakpoint_locations): Remove
2193 redundant condition.
2194
2195 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2196
2197 * proc-utils.h (PROC_CTL_WORD_TYPE): Remove.
2198
2199 * procfs.c: Don't check for PR_MODEL_NATIVE definition.
2200 * sparc-sol2-nat.c: Likewise. Remove Linux, __arch64__ references.
2201 * sol-thread.c (ps_pdmodel): Don't guard definition.
2202
2203 * procfs.c: Fix formatting.
2204
2205 * procfs.c (sysset_t_alloc): Remove.
2206 (create_procinfo): Use XNEW instead of sysset_t_alloc.
2207 (procfs_debug_inferior): Likewise.
2208 (procfs_set_exec_trap): Likewise.
2209 (proc_set_traced_sysentry): Don't allocate argp dynamically.
2210 (proc_set_traced_sysexit): Likewise.
2211
2212 * procfs.c (create_procinfo): Use xsnprintf to fix ARI warning.
2213 (dead_procinfo): Likewise.
2214 (proc_warn): Likewise.
2215 (proc_error): Likewise.
2216 (proc_get_LDT_entry): Likewise.
2217 (do_attach): Likewise.
2218 (procfs_target::pid_to_str): Likewise.
2219 (iterate_over_mappings): Likewise.
2220
2221 * procfs.c (create_procinfo): Fix ARI warning.
2222 (proc_get_status): Likewise.
2223 (proc_stop_process): Likewise.
2224 (proc_run_process): Likewise.
2225 (proc_kill): Likewise.
2226 (proc_get_LDT_entry): Likewise.
2227 (procfs_find_LDT_entry): Likewise.
2228 (proc_update_threads): Likewise.
2229 (proc_iterate_over_threads): Likewise.
2230 (do_attach): Likewise.
2231 (procfs_xfer_memory): Likewise.
2232 (invalidate_cache): Likewise.
2233 (procfs_target::resume): Likewise.
2234 (procfs_init_inferior): Likewise.
2235 (procfs_set_exec_trap): Likewise.
2236 (procfs_target::thread_alive): Likewise.
2237 (procfs_target::pid_to_exec_file): Likewise.
2238 (iterate_over_mappings): Likewise.
2239 (procfs_target::make_corefile_notes): Likewise.
2240 * sol-thread.c (sol_thread_target::thread_alive): Likewise.
2241
2242 * procfs.c (procfs_find_LDT_entry): Silence ARI warning.
2243 (procfs_find_LDT_entry): Likewise.
2244 * sol-thread.c (ps_lgetLDT): Likewise.
2245
2246 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2247
2248 PR tdep/17903
2249 * procfs.c (procfs_target): Declare pid_to_exec_file.
2250 (procfs_target::pid_to_exec_file): New.
2251
2252 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2253
2254 * auxv.c (default_print_auxv_entry): Reflect AT_SUN_CAP_HW1
2255 renaming.
2256 Handle AT_SUN_EMULATOR, AT_SUN_BRANDNAME, AT_SUN_BRAND_AUX1,
2257 AT_SUN_BRAND_AUX2, AT_SUN_BRAND_AUX3, AT_SUN_CAP_HW2.
2258
2259 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2260
2261 * i386-v4-nat.c (regmap, supply_gregset, fill_gregset)
2262 (supply_fpregset, fill_fpregset): Move ...
2263 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64]: ... here.
2264 Remove HAVE_GREGSET_T, HAVE_FPREGET_T guards.
2265 Remove references to ioctl-based procfs.
2266 Include <sys/reg.h>.
2267 Remove PR_MODEL_NATIVE guards.
2268 * configure.nat <sol2, i386> (NATDEPFILES): Remove i386-v4-nat.o.
2269 * Makefile.in (ALLDEPFILES): Remove i386-v4-nat.c.
2270
2271 2018-09-19 Xavier Roirand <roirand@adacore.com>
2272
2273 PR gdb/20981:
2274 * solib-darwin.c (darwin_get_dyld_bfd): New function.
2275 (darwin_solib_get_all_image_info_addr_at_init): Update call.
2276 (darwin_solib_create_inferior_hook): Handle unrelocated dyld.
2277
2278 2018-09-19 John Baldwin <jhb@FreeBSD.org>
2279
2280 * fbsd-tdep.c (fbsd_print_sockaddr_in): Style fix.
2281 (fbsd_print_sockaddr_in6): Likewise.
2282
2283 2018-09-19 Richard Bunt <richard.bunt@arm.com>
2284 Chris January <chris.january@arm.com>
2285
2286 * eval.c (skip_undetermined_arglist): Skip argument list helper.
2287 (evaluate_subexp_standard): Return a dummy type when
2288 honoring EVAL_SKIP in OP_VAR_VALUE and handle skipping in the
2289 OP_F77_UNDETERMINED_ARGLIST case.
2290 * expression.h (enum noside): Update comment.
2291
2292 2018-09-19 George Vasick <george.vasick@oracle.com>
2293
2294 * solib-svr4.c (svr4_same_1): Also handle amd64 ld.so.1.
2295
2296 2018-09-19 Stefan Teleman <stefan.teleman@oracle.com>
2297 April Chin <april.chin@oracle.com>
2298 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2299
2300 * procfs.c (MAX_PROC_NAME_SIZE): Allow for 6-digit PID_MAX and
2301 uint_t lwpid_t.
2302 (create_procinfo): Print pids in /proc without leading zeros.
2303
2304 2018-09-18 Sandra Loosemore <sandra@codesourcery.com>
2305
2306 * nios2-tdep.c (nios2_gcc_target_options): New.
2307 (nios2_gdb_arch_init): Install new hook.
2308
2309 2018-09-18 Simon Marchi <simon.marchi@ericsson.com>
2310
2311 * patches/0001-Fix-PR-gdb-23558-Use-system-s-getcwd-when-cross-comp.patch:
2312 New file.
2313 * update-gnulib.sh: Apply patch.
2314 * configure: Re-generate.
2315
2316 2018-09-18 John Baldwin <jhb@FreeBSD.org>
2317
2318 * infcmd.c (_initialize_infcmd): Remove "running" from "info proc"
2319 description. Make "info proc" command descriptions more
2320 consistent.
2321
2322 2018-09-18 John Baldwin <jhb@FreeBSD.org>
2323
2324 * NEWS: Mention 'info proc files' command.
2325
2326 2018-09-18 John Baldwin <jhb@FreeBSD.org>
2327
2328 * fbsd-nat.c (fbsd_nat_target::info_proc): List open file
2329 descriptors for IP_FILES and IP_ALL.
2330
2331 2018-09-18 John Baldwin <jhb@FreeBSD.org>
2332
2333 * fbsd-tdep.c (KF_FLAGS, KF_OFFSET, KF_VNODE_TYPE, KF_SOCK_DOMAIN)
2334 (KF_SOCK_TYPE, KF_SOCK_PROTOCOL, KF_SA_LOCAL, KF_SA_PEER)
2335 (KINFO_FILE_TYPE_SOCKET, KINFO_FILE_TYPE_PIPE)
2336 (KINFO_FILE_TYPE_FIFO, KINFO_FILE_TYPE_KQUEUE)
2337 (KINFO_FILE_TYPE_CRYPTO, KINFO_FILE_TYPE_MQUEUE)
2338 (KINFO_FILE_TYPE_SHM, KINFO_FILE_TYPE_SEM, KINFO_FILE_TYPE_PTS)
2339 (KINFO_FILE_TYPE_PROCDESC, KINFO_FILE_FD_TYPE_ROOT)
2340 (KINFO_FILE_FD_TYPE_JAIL, KINFO_FILE_FD_TYPE_TRACE)
2341 (KINFO_FILE_FD_TYPE_CTTY, KINFO_FILE_FLAG_READ)
2342 (KINFO_FILE_FLAG_WRITE, KINFO_FILE_FLAG_APPEND)
2343 (KINFO_FILE_FLAG_ASYNC, KINFO_FILE_FLAG_FSYNC)
2344 (KINFO_FILE_FLAG_NONBLOCK, KINFO_FILE_FLAG_DIRECT)
2345 (KINFO_FILE_FLAG_HASLOCK, KINFO_FILE_FLAG_EXEC)
2346 (KINFO_FILE_VTYPE_VREG, KINFO_FILE_VTYPE_VDIR)
2347 (KINFO_FILE_VTYPE_VCHR, KINFO_FILE_VTYPE_VLNK)
2348 (KINFO_FILE_VTYPE_VSOCK, KINFO_FILE_VTYPE_VFIFO, FBSD_AF_UNIX)
2349 (FBSD_AF_INET, FBSD_AF_INET6, FBSD_SOCK_STREAM, FBSD_SOCK_DGRAM)
2350 (FBSD_SOCK_SEQPACKET, FBSD_IPPROTO_ICMP, FBSD_IPPROTO_TCP)
2351 (FBSD_IPPROTO_UDP, FBSD_IPPROTO_SCTP): New defines.
2352 (struct fbsd_sockaddr_in, struct fbsd_sockaddr_in6)
2353 (struct fbsd_sockaddr_un): New types.
2354 (fbsd_file_fd, fbsd_file_type, fbsd_file_flags, fbsd_ipproto)
2355 (fbsd_print_sockaddr_in, fbsd_print_sockaddr_in6)
2356 (fbsd_info_proc_files_header, fbsd_info_proc_files_entry)
2357 (fbsd_core_info_proc_files): New functions.
2358 (fbsd_core_info_proc): List open file descriptors for IP_FILES and
2359 IP_ALL.
2360 * fbsd-tdep.h (fbsd_info_proc_files_header)
2361 (fbsd_info_proc_files_entry): New.
2362
2363 2018-09-18 John Baldwin <jhb@FreeBSD.org>
2364
2365 * defs.h (enum info_proc_what) [IP_FILES]: New value.
2366 * infcmd.c (info_proc_cmd_files): New function.
2367 (_initialize_infcmd): Register 'info proc files' command.
2368
2369 2018-09-18 John Baldwin <jhb@FreeBSD.org>
2370
2371 * gnulib/aclocal-m4-deps.mk: Re-generate.
2372 * gnulib/aclocal.m4: Re-generate.
2373 * gnulib/config.in: Re-generate.
2374 * gnulib/configure: Re-generate.
2375 * gnulib/import/Makefile.am: Re-generate.
2376 * gnulib/import/Makefile.in: Re-generate.
2377 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
2378 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2379 * gnulib/import/arpa_inet.in.h: New file.
2380 * gnulib/import/inet_ntop.c: New file.
2381 * gnulib/import/m4/arpa_inet_h.m4: New file.
2382 * gnulib/import/m4/inet_ntop.m4: New file.
2383 * gnulib/import/m4/netinet_in_h.m4: New file.
2384 * gnulib/import/m4/socklen.m4: New file.
2385 * gnulib/import/m4/sockpfaf.m4: New file.
2386 * gnulib/import/m4/stdalign.m4: New file.
2387 * gnulib/import/m4/sys_uio_h.m4: New file.
2388 * gnulib/import/netinet_in.in.h: New file.
2389 * gnulib/import/stdalign.in.h: New file.
2390 * gnulib/import/sys_socket.c: New file.
2391 * gnulib/import/sys_socket.in.h: New file.
2392 * gnulib/import/sys_uio.in.h: New file.
2393 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add inet_ntop
2394 module.
2395
2396 2018-09-18 John Baldwin <jhb@FreeBSD.org>
2397
2398 * gnulib/aclocal-m4-deps.mk: New file.
2399 * gnulib/update-gnulib.sh: Generate "aclocal-m4-deps.mk"
2400 deterministically.
2401
2402 2018-09-18 John Baldwin <jhb@FreeBSD.org>
2403
2404 * fbsd-tdep.c (fbsd_core_vnode_path): Use KF_PATH instead of
2405 KVE_PATH.
2406
2407 2018-09-18 Tom Tromey <tom@tromey.com>
2408
2409 * compile/compile-object-load.c (struct
2410 link_hash_table_cleanup_data): Add constructor and destructor.
2411 Use DISABLE_COPY_AND_ASSIGN.
2412 (~link_hash_table_cleanup_data): Rename from
2413 link_hash_table_free. Now a destructor.
2414 (copy_sections): Use gdb::unique_xmalloc_ptr. Remove cleanups.
2415
2416 2018-09-18 Tom Tromey <tom@tromey.com>
2417
2418 * compile/compile-object-run.c (do_module_cleanup): Use delete.
2419 * compile/compile-object-load.c (struct munmap_list): Move to
2420 header file.
2421 (munmap_list::add): Rename from munmap_list_add; rewrite.
2422 (munmap_list::~munmap_list): Rename from munmap_list_free.
2423 (munmap_listp_free_cleanup): Remove.
2424 (compile_object_load): Update.
2425 * compile/compile-object-load.h (struct munmap_list): Move from
2426 compile-object-load.c. Rewrite.
2427
2428 2018-09-18 Alan Hayward <alan.hayward@arm.com>
2429
2430 * aarch64-tdep.c (pass_in_v): Use register size.
2431 (aarch64_extract_return_value): Likewise.
2432 (aarch64_store_return_value): Likewise.
2433
2434 2018-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2435
2436 * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to
2437 rlim_t.
2438
2439 2018-09-17 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2440
2441 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter):
2442 Fix short help line.
2443
2444 2018-09-17 Tom Tromey <tom@tromey.com>
2445
2446 PR python/20445:
2447 * configure: Rebuild.
2448 * configure.ac: Conditionally use -DNDEBUG for Python.
2449
2450 2018-09-17 Tom Tromey <tom@tromey.com>
2451
2452 * configure: Rebuild.
2453 * configure.ac: Use gmp as a library dependency when checking for
2454 mpfr.
2455
2456 2018-09-17 Pedro Alves <palves@redhat.com>
2457
2458 * python/py-inferior.c (find_inferior_object): Delete.
2459
2460 2018-09-17 Simon Marchi <simon.marchi@ericsson.com>
2461
2462 * compile/compile-cplus-types.c
2463 (compile_cplus_instance::enter_scope): Don't use new_scope after
2464 std::move.
2465
2466 2018-09-17 Tom Tromey <tom@tromey.com>
2467
2468 * common/pathstuff.c (get_standard_cache_dir): Use
2469 ~/Library/Caches on macOS.
2470 * common/pathstuff.h (get_standard_cache_dir): Update comment.
2471
2472 2018-09-17 Simon Marchi <simon.marchi@polymtl.ca>
2473
2474 PR python/23669
2475 * breakpoint.c (commands_cmd_element): New.
2476 (_initialize_breakpoint): Assign commands_cmd_element.
2477 * breakpoint.h (commands_cmd_element): New.
2478 * cli/cli-script.c (while_cmd_element, if_command,
2479 define_cmd_element): New.
2480 (command_name_equals): Remove.
2481 (process_next_line): Compare commands by pointer, not by name.
2482 (_initialize_cli_script): Assign the various cmd_list_element
2483 variables.
2484 * compile/compile.c (compile_cmd_element): New.
2485 (_initialize_compile): Assign compile_cmd_element.
2486 * compile/compile.h (compile_cmd_element): New.
2487 * guile/guile.c (guile_cmd_element): New.
2488 (install_gdb_commands): Assign guile_cmd_element.
2489 * guile/guile.h (guile_cmd_element): New.
2490 * python/python.c (python_cmd_element): New.
2491 (_initialize_python): Assign python_cmd_element.
2492 * python/python.h (python_cmd_element): New.
2493 * tracepoint.c (while_stepping_cmd_element): New.
2494 (_initialize_tracepoint): Assign while_stepping_cmd_element.
2495 * tracepoint.h (while_stepping_cmd_element): New.
2496
2497 2018-09-17 Tom Tromey <tom@tromey.com>
2498
2499 * infrun.c (save_infcall_suspend_state): Return
2500 infcall_suspend_state_up.
2501 (save_infcall_control_state): Return infcall_control_state_up.
2502 * inferior.h (save_infcall_suspend_state)
2503 (save_infcall_control_state): Declare later. Return unique
2504 pointers.
2505
2506 2018-09-17 Tom Tromey <tom@tromey.com>
2507
2508 * infrun.c (struct stop_context): Declare constructor,
2509 destructor, "changed" method.
2510 (stop_context::stop_context): Rename from save_stop_context.
2511 (stop_context::~stop_context): Rename from
2512 release_stop_context_cleanup.
2513 (normal_stop): Update.
2514 (stop_context::changed): Rename from stop_context_changed. Return
2515 bool.
2516
2517 2018-09-17 Tom Tromey <tom@tromey.com>
2518
2519 * inferior.h (struct infcall_suspend_state_deleter): New.
2520 (infcall_suspend_state_up): New typedef.
2521 (struct infcall_control_state_deleter): New.
2522 (infcall_control_state_up): New typedef.
2523 (make_cleanup_restore_infcall_suspend_state)
2524 (make_cleanup_restore_infcall_control_state): Don't declare.
2525 * infcall.c (call_function_by_hand_dummy): Update.
2526 * infrun.c (do_restore_infcall_suspend_state_cleanup)
2527 (make_cleanup_restore_infcall_suspend_state): Remove.
2528 (do_restore_infcall_control_state_cleanup)
2529 (make_cleanup_restore_infcall_control_state): Remove.
2530
2531 2018-09-17 Tom Tromey <tom@tromey.com>
2532
2533 * gdbthread.h (struct thread_control_state): Add initializer.
2534 (class thread_info) <control>: Remove initializer.
2535 * inferior.h (struct inferior_control_state): Add initializer.
2536 (class inferior) <control>: Remove initializer.
2537 (exit_inferior_1): Update.
2538 * infrun.c (struct infcall_control_state): Add constructors.
2539 (save_infcall_control_state): Use new.
2540 (restore_infcall_control_state, discard_infcall_control_state):
2541 Use delete.
2542
2543 2018-09-17 Tom Tromey <tom@tromey.com>
2544
2545 * infrun.c (struct infcall_suspend_state) <registers>: Now a
2546 unique_ptr.
2547 <siginfo_data>: Now a unique_xmalloc_ptr.
2548 (save_infcall_suspend_state, restore_infcall_suspend_state)
2549 (discard_infcall_suspend_state)
2550 (get_infcall_suspend_state_regcache): Update.
2551
2552 2018-09-17 Tom Tromey <tom@tromey.com>
2553
2554 * gdbthread.h (struct thread_suspend_state): Add initializers.
2555 (class thread_info) <suspend>: Remove initializer.
2556 * infrun.c (struct infcall_suspend_state): Add initializers.
2557 (save_infcall_suspend_state): Use new.
2558 (discard_infcall_suspend_state): Use delete.
2559
2560 2018-09-16 Tom Tromey <tom@tromey.com>
2561
2562 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
2563 Remove.
2564 * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to
2565 rvalue reference. Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG.
2566 (py_varobj_iter_new): Likewise.
2567 (py_varobj_get_iterator): Use gdbpy_ref.
2568
2569 2018-09-16 Tom Tromey <tom@tromey.com>
2570
2571 * python/py-threadevent.c (py_get_event_thread): Simplify.
2572 * python/py-inferior.c (infpy_thread_from_thread_handle):
2573 Return immediately after calling thread_to_thread_object. Use
2574 Py_RETURN_NONE.
2575 (thread_to_thread_object): Set the exception on a NULL return.
2576
2577 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
2578
2579 * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS.
2580
2581 2018-09-16 Tom Tromey <tom@tromey.com>
2582
2583 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
2584 Remove.
2585
2586 2018-09-16 Tom Tromey <tom@tromey.com>
2587
2588 * python/python-internal.h (thread_to_thread_object): Change
2589 return type.
2590 * python/py-inferior.c (thread_to_thread_object): Return a new
2591 reference.
2592 (infpy_thread_from_thread_handle): Update.
2593 * python/py-infthread.c (gdbpy_selected_thread): Update.
2594 * python/py-stopevent.c (create_stop_event_object): Update.
2595 * python/py-threadevent.c (py_get_event_thread): Return a new
2596 reference.
2597 (py_get_event_thread): Update.
2598 * python/py-event.h (py_get_event_thread): Change return type.
2599 * python/py-continueevent.c (create_continue_event_object):
2600 Update.
2601
2602 2018-09-16 Tom Tromey <tom@tromey.com>
2603
2604 * python/py-progspace.c (pspy_get_objfiles): Update.
2605 * python/python-internal.h (objfile_to_objfile_object): Change
2606 return type.
2607 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2608 Update.
2609 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
2610 Update.
2611 * python/python.c (gdbpy_get_current_objfile): Update.
2612 (gdbpy_objfiles): Update.
2613 * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile):
2614 Update.
2615 (objfile_to_objfile_object): Return a new reference.
2616 * python/py-symtab.c (stpy_get_objfile): Update.
2617 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
2618 Update.
2619
2620 2018-09-16 Tom Tromey <tom@tromey.com>
2621
2622 * python/py-inferior.c (infpy_get_progspace): Update.
2623 * python/python-internal.h (pspace_to_pspace_object): Change
2624 return type.
2625 * python/py-newobjfileevent.c
2626 (create_clear_objfiles_event_object): Update.
2627 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
2628 Update.
2629 * python/python.c (gdbpy_get_current_progspace): Update.
2630 (gdbpy_progspaces): Update.
2631 * python/py-progspace.c (pspace_to_pspace_object): Return a new
2632 reference.
2633 * python/py-objfile.c (objfpy_get_progspace): Update.
2634 * python/py-prettyprint.c (find_pretty_printer_from_progspace):
2635 Update.
2636
2637 2018-09-16 Tom Tromey <tom@tromey.com>
2638
2639 * python/lib/gdb/__init__.py (current_progspace, objfiles)
2640 (solib_name, block_for_pc, find_pc_line): New functions.
2641 (execute_unwinders): Update.
2642 * python/py-block.c (gdbpy_block_for_pc): Remove.
2643 * python/py-inferior.c (infpy_get_progspace): New function.
2644 (inferior_object_getset) <progspace>: Add.
2645 * python/py-progspace.c (pspy_objfiles): Rewrite.
2646 (pspy_solib_name, pspy_block_for_pc)
2647 (pspy_find_pc_line, pspy_is_valid): New functions.
2648 (progspace_object_methods): Add entries for solib_name,
2649 block_for_pc, find_pc_line, is_valid.
2650 * python/python-internal.h (gdbpy_block_for_pc)
2651 (build_objfiles_list): Don't declare.
2652 * python/python.c: Don't include solib.h.
2653 (gdbpy_solib_name, gdbpy_find_pc_line)
2654 (gdbpy_get_current_progspace, build_objfiles_list)
2655 (gdbpy_objfiles): Remove.
2656 (GdbMethods) <current_progspace, objfiles, block_for_pc,
2657 solib_name, find_pc_line>: Remove entries.
2658
2659 2018-09-16 Tom Tromey <tom@tromey.com>
2660
2661 * top.c (new_ui_command): Use GNU style for metasyntactic
2662 variables.
2663 * breakpoint.c (stopat_command): Use GNU style for metasyntactic
2664 variables.
2665 * maint.c (maintenance_translate_address): Remove "<>" around
2666 text.
2667 * interps.c (interpreter_exec_cmd): Use GNU style for
2668 metasyntactic variables.
2669 * nto-procfs.c (nto_procfs_target_info): Use GNU style for
2670 metasyntactic variables.
2671 * tracepoint.c (tfind_range_command): Use GNU style for
2672 metasyntactic variables.
2673 (tfind_outside_command): Likewise.
2674 (_initialize_tracepoint): Likewise.
2675 * remote.c (extended_remote_target::create_inferior): Use GNU
2676 style for metasyntactic variables.
2677 * sparc64-tdep.c (adi_examine_command): Use GNU style for
2678 metasyntactic variables.
2679 (adi_assign_command): Likewise.
2680
2681 2018-09-16 Tom Tromey <tom@tromey.com>
2682
2683 * disasm.c (show_disassembler_options_sfunc): Use GNU style for
2684 metasyntactic variables. Print message if no disassembler options
2685 are available.
2686
2687 2018-09-15 Tom Tromey <tom@tromey.com>
2688
2689 * infcmd.c (get_inferior_args): Return const char *.
2690 * inferior.h (get_inferior_args): Return type now const.
2691 * linux-tdep.c (linux_fill_prpsinfo): Update.
2692 * procfs.c (procfs_target::make_corefile_notes): Update.
2693
2694 2018-09-07 Tom Tromey <tom@tromey.com>
2695
2696 * python/python.c (execute_gdb_command): Call bpstat_do_actions
2697 inside the TRY.
2698
2699 2018-09-14 Sandra Loosemore <sandra@codesourcery.com>
2700
2701 * nios2-tdep.c (nios2_type_align): New.
2702 (nios2_gdb_arch_init): Install type_align hook.
2703
2704 2018-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
2705
2706 * eval.c (fake_method::fake_method): Call xzalloc directly for a
2707 type that is neither object file owned, nor gdbarch owned.
2708 * gdbtypes.c (get_type_gdbarch): Add an assert that returned
2709 gdbarch is non-NULL.
2710 (alloc_type_instance): Allocate non-objfile owned types on the
2711 gdbarch obstack.
2712 (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA
2713 using TYPE_ALLOC to ensure memory is allocated on the correct
2714 obstack.
2715 * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile
2716 obstack, or the gdbarch obstack.
2717 (TYPE_ZALLOC): Rewrite using TYPE_ALLOC.
2718
2719 2018-09-14 Tom Tromey <tom@tromey.com>
2720
2721 * infcall.c (call_function_by_hand_dummy): Remove unnecessary
2722 block.
2723
2724 2018-09-14 Tom Tromey <tom@tromey.com>
2725
2726 * nat/fork-inferior.c (get_startup_shell): Remove "static".
2727
2728 2018-09-13 Tom Tromey <tom@tromey.com>
2729
2730 * python/py-inferior.c (infpy_thread_from_thread_handle): Now
2731 static.
2732
2733 2018-09-13 Tom Tromey <tom@tromey.com>
2734
2735 * exec.c (try_open_exec_file): Use std::string.
2736
2737 2018-09-13 Tom Tromey <tom@tromey.com>
2738
2739 * utils.h (gdb_bfd_errmsg): Return std::string.
2740 * exec.c (exec_file_attach): Update.
2741 * compile/compile-object-load.c (compile_object_load): Update.
2742 * utils.c (gdb_bfd_errmsg): Return std::string.
2743
2744 2018-09-13 Tom Tromey <tom@tromey.com>
2745
2746 * procfs.c (struct procinfo_deleter): New.
2747 (procinfo_up): New typedef.
2748 (do_destroy_procinfo_cleanup): Remove.
2749 (procfs_target::info_proc): Use procinfo_up. Remove cleanups.
2750
2751 2018-09-13 Tom Tromey <tom@tromey.com>
2752
2753 * source.c (add_path): Use gdb::unique_xmalloc_ptr.
2754
2755 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
2756 2018-09-13 Tom Tromey <tom@tromey.com>
2757
2758 * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro.
2759 (pspy_get_objfiles): New function.
2760 (progspace_object_methods): New.
2761 (pspace_object_type): Add tp_methods callback.
2762 * python/python-internal.h (build_objfiles_list): New
2763 declaration.
2764 * python/python.c (build_objfiles_list): New function.
2765 (gdbpy_objfiles): Implement using build_objfiles_list.
2766 * NEWS: Mention the Progspace.objfiles method.
2767
2768 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
2769
2770 * python/py-inferior.c (infpy_get_progspace): New function.
2771 (inferior_object_getset): Add progspace property.
2772 * NEWS: Mention the new property.
2773
2774 2018-09-13 Tom Tromey <tom@tromey.com>
2775
2776 PR rust/23650:
2777 * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
2778
2779 2018-09-13 Tom Tromey <tom@tromey.com>
2780
2781 PR rust/23626:
2782 * rust-lang.c (rust_enum_variant): Now static.
2783 (rust_empty_enum_p): New function.
2784 (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
2785 Handle empty enum.
2786
2787 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
2788
2789 * python/py-inferior.c (infpy_repr): New.
2790 (inferior_object_type): Register infpy_repr.
2791 * python/py-objfile.c (objfpy_repr): New.
2792 (objfile_object_type): Register objfpy_repr.
2793
2794 2018-09-12 John Baldwin <jhb@FreeBSD.org>
2795
2796 * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
2797
2798 2018-09-12 John Baldwin <jhb@FreeBSD.org>
2799
2800 * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
2801 typo.
2802
2803 2018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
2804
2805 * common/common-utils.c: Don't include '<sys/stat.h>'.
2806 (is_regular_file): Move to...
2807 * common/filestuff.c (is_regular_file): ... here.
2808 * common/common-utils.h (is_regular_file): Move to...
2809 * common/filestuff.h (is_regular_file): ... here.
2810
2811 2018-09-12 Simon Marchi <simon.marchi@ericsson.com>
2812
2813 * skip.c (debug_skip): New variable.
2814 (skiplist_entry::do_skip_file_p): Add debug output.
2815 (skiplist_entry::do_skip_gfile_p): Likewise.
2816 (skiplist_entry::skip_function_p): Likewise.
2817 (_initialize_step_skip): Create debug command.
2818 * NEWS: Mention set/show debug skip.
2819
2820 2018-09-11 Xavier Roirand <roirand@adacore.com>
2821
2822 * darwin-nat.c (should_disable_startup_with_shell):
2823 New function.
2824 (darwin_nat_target::create_inferior): Add call.
2825
2826 2018-09-11 Xavier Roirand <roirand@adacore.com>
2827
2828 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
2829 inf_port, msg_state>: Initialize.
2830 (struct darwin_thread_info) <signaled, single_step>: Change
2831 type and initialize.
2832 (struct darwin_thread_info) <event>: Initialize.
2833
2834 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
2835
2836 PR gdb/23555
2837 PR gdb/23558
2838 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
2839 guesses.
2840
2841 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
2842
2843 Revert:
2844 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
2845
2846 PR gdb/23555
2847 PR gdb/23558
2848 * gnulib/aclocal.m4: Regenerate.
2849 * gnulib/config.in: Regenerate.
2850 * gnulib/configure: Regenerate.
2851 * gnulib/import/Makefile.am: Update.
2852 * gnulib/import/Makefile.in: Update.
2853 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
2854 * gnulib/import/_Noreturn.h: ... this.
2855 * gnulib/import/alloca.in.h: Update.
2856 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
2857 * gnulib/import/arg-nonnull.h: ... this.
2858 * gnulib/import/assure.h: Update.
2859 * gnulib/import/at-func.c: Update.
2860 * gnulib/import/basename-lgpl.c: Update.
2861 * gnulib/import/extra/snippet/c++defs.h: Rename to...
2862 * gnulib/import/c++defs.h: ... this.
2863 * gnulib/import/canonicalize-lgpl.c: Update.
2864 * gnulib/import/cdefs.h: Update.
2865 * gnulib/import/chdir-long.c: Update.
2866 * gnulib/import/chdir-long.h: Update.
2867 * gnulib/import/cloexec.c: Update.
2868 * gnulib/import/cloexec.h: Update.
2869 * gnulib/import/close.c: Update.
2870 * gnulib/import/closedir.c: Update.
2871 * gnulib/import/config.charset: Update.
2872 * gnulib/import/dirent-private.h: Update.
2873 * gnulib/import/dirent.in.h: Update.
2874 * gnulib/import/dirfd.c: Update.
2875 * gnulib/import/dirname-lgpl.c: Update.
2876 * gnulib/import/dirname.h: Update.
2877 * gnulib/import/dosname.h: Update.
2878 * gnulib/import/dup-safer-flag.c: Update.
2879 * gnulib/import/dup-safer.c: Update.
2880 * gnulib/import/dup.c: Update.
2881 * gnulib/import/dup2.c: Update.
2882 * gnulib/import/errno.in.h: Update.
2883 * gnulib/import/error.c: Update.
2884 * gnulib/import/error.h: Update.
2885 * gnulib/import/exitfail.c: Update.
2886 * gnulib/import/exitfail.h: Update.
2887 * gnulib/import/extra/update-copyright: Update.
2888 * gnulib/import/fchdir.c: Update.
2889 * gnulib/import/fcntl.c: Update.
2890 * gnulib/import/fcntl.in.h: Update.
2891 * gnulib/import/fd-hook.c: Update.
2892 * gnulib/import/fd-hook.h: Update.
2893 * gnulib/import/fd-safer-flag.c: Update.
2894 * gnulib/import/fd-safer.c: Update.
2895 * gnulib/import/fdopendir.c: Update.
2896 * gnulib/import/filename.h: Update.
2897 * gnulib/import/filenamecat-lgpl.c: Update.
2898 * gnulib/import/filenamecat.h: Update.
2899 * gnulib/import/flexmember.h: Update.
2900 * gnulib/import/float+.h: Update.
2901 * gnulib/import/float.c: Update.
2902 * gnulib/import/float.in.h: Update.
2903 * gnulib/import/fnmatch.c: Update.
2904 * gnulib/import/fnmatch.in.h: Update.
2905 * gnulib/import/fnmatch_loop.c: Update.
2906 * gnulib/import/fpucw.h: Update.
2907 * gnulib/import/frexp.c: Update.
2908 * gnulib/import/frexpl.c: Update.
2909 * gnulib/import/fstat.c: Update.
2910 * gnulib/import/fstatat.c: Update.
2911 * gnulib/import/getcwd-lgpl.c: Update.
2912 * gnulib/import/getcwd.c: Update.
2913 * gnulib/import/getdtablesize.c: Update.
2914 * gnulib/import/getlogin_r.c: Update.
2915 * gnulib/import/getprogname.c: Update.
2916 * gnulib/import/getprogname.h: Update.
2917 * gnulib/import/gettext.h: Update.
2918 * gnulib/import/gettimeofday.c: Update.
2919 * gnulib/import/glob-libc.h: Update.
2920 * gnulib/import/glob.c: Update.
2921 * gnulib/import/glob.in.h: Update.
2922 * gnulib/import/glob_internal.h: Update.
2923 * gnulib/import/glob_pattern_p.c: Update.
2924 * gnulib/import/globfree.c: Update.
2925 * gnulib/import/hard-locale.c: Update.
2926 * gnulib/import/hard-locale.h: Update.
2927 * gnulib/import/intprops.h: Update.
2928 * gnulib/import/inttypes.in.h: Update.
2929 * gnulib/import/isnan.c: Update.
2930 * gnulib/import/isnand-nolibm.h: Update.
2931 * gnulib/import/isnand.c: Update.
2932 * gnulib/import/isnanl-nolibm.h: Update.
2933 * gnulib/import/isnanl.c: Update.
2934 * gnulib/import/itold.c: Update.
2935 * gnulib/import/libc-config.h: Update.
2936 * gnulib/import/limits.in.h: Update.
2937 * gnulib/import/localcharset.c: Update.
2938 * gnulib/import/localcharset.h: Update.
2939 * gnulib/import/localtime-buffer.c: Update.
2940 * gnulib/import/localtime-buffer.h: Update.
2941 * gnulib/import/lstat.c: Update.
2942 * gnulib/import/m4/00gnulib.m4: Update.
2943 * gnulib/import/m4/__inline.m4: Update.
2944 * gnulib/import/m4/absolute-header.m4: Update.
2945 * gnulib/import/m4/alloca.m4: Update.
2946 * gnulib/import/m4/builtin-expect.m4: Update.
2947 * gnulib/import/m4/canonicalize.m4: Update.
2948 * gnulib/import/m4/chdir-long.m4: Update.
2949 * gnulib/import/m4/close.m4: Update.
2950 * gnulib/import/m4/closedir.m4: Update.
2951 * gnulib/import/m4/configmake.m4: Update.
2952 * gnulib/import/m4/d-ino.m4: Update.
2953 * gnulib/import/m4/d-type.m4: Update.
2954 * gnulib/import/m4/dirent_h.m4: Update.
2955 * gnulib/import/m4/dirfd.m4: Update.
2956 * gnulib/import/m4/dirname.m4: Update.
2957 * gnulib/import/m4/double-slash-root.m4: Update.
2958 * gnulib/import/m4/dup.m4: Update.
2959 * gnulib/import/m4/dup2.m4: Update.
2960 * gnulib/import/m4/eealloc.m4: Update.
2961 * gnulib/import/m4/environ.m4: Update.
2962 * gnulib/import/m4/errno_h.m4: Update.
2963 * gnulib/import/m4/error.m4: Update.
2964 * gnulib/import/m4/exponentd.m4: Update.
2965 * gnulib/import/m4/exponentl.m4: Update.
2966 * gnulib/import/m4/extensions.m4: Update.
2967 * gnulib/import/m4/extern-inline.m4: Update.
2968 * gnulib/import/m4/fchdir.m4: Update.
2969 * gnulib/import/m4/fcntl-o.m4: Update.
2970 * gnulib/import/m4/fcntl.m4: Update.
2971 * gnulib/import/m4/fcntl_h.m4: Update.
2972 * gnulib/import/m4/fdopendir.m4: Update.
2973 * gnulib/import/m4/filenamecat.m4: Update.
2974 * gnulib/import/m4/flexmember.m4: Update.
2975 * gnulib/import/m4/float_h.m4: Update.
2976 * gnulib/import/m4/fnmatch.m4: Update.
2977 * gnulib/import/m4/fnmatch_h.m4: Update.
2978 * gnulib/import/m4/fpieee.m4: Update.
2979 * gnulib/import/m4/frexp.m4: Update.
2980 * gnulib/import/m4/frexpl.m4: Update.
2981 * gnulib/import/m4/fstat.m4: Update.
2982 * gnulib/import/m4/fstatat.m4: Update.
2983 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
2984 * gnulib/import/m4/getcwd-path-max.m4: Update.
2985 * gnulib/import/m4/getcwd.m4: Update.
2986 * gnulib/import/m4/getdtablesize.m4: Update.
2987 * gnulib/import/m4/getlogin.m4: Update.
2988 * gnulib/import/m4/getlogin_r.m4: Update.
2989 * gnulib/import/m4/getpagesize.m4: Update.
2990 * gnulib/import/m4/getprogname.m4: Update.
2991 * gnulib/import/m4/gettimeofday.m4: Update.
2992 * gnulib/import/m4/glibc21.m4: Update.
2993 * gnulib/import/m4/glob.m4: Update.
2994 * gnulib/import/m4/glob_h.m4: Update.
2995 * gnulib/import/m4/gnulib-cache.m4: Update.
2996 * gnulib/import/m4/gnulib-common.m4: Update.
2997 * gnulib/import/m4/gnulib-comp.m4: Update.
2998 * gnulib/import/m4/gnulib-tool.m4: Update.
2999 * gnulib/import/m4/hard-locale.m4: Update.
3000 * gnulib/import/m4/include_next.m4: Update.
3001 * gnulib/import/m4/inttypes-pri.m4: Update.
3002 * gnulib/import/m4/inttypes.m4: Update.
3003 * gnulib/import/m4/isnand.m4: Update.
3004 * gnulib/import/m4/isnanl.m4: Update.
3005 * gnulib/import/m4/largefile.m4: Update.
3006 * gnulib/import/m4/limits-h.m4: Update.
3007 * gnulib/import/m4/localcharset.m4: Update.
3008 * gnulib/import/m4/locale-fr.m4: Update.
3009 * gnulib/import/m4/locale-ja.m4: Update.
3010 * gnulib/import/m4/locale-zh.m4: Update.
3011 * gnulib/import/m4/localtime-buffer.m4: Update.
3012 * gnulib/import/m4/longlong.m4: Update.
3013 * gnulib/import/m4/lstat.m4: Update.
3014 * gnulib/import/m4/malloc.m4: Update.
3015 * gnulib/import/m4/malloca.m4: Update.
3016 * gnulib/import/m4/math_h.m4: Update.
3017 * gnulib/import/m4/mbrtowc.m4: Update.
3018 * gnulib/import/m4/mbsinit.m4: Update.
3019 * gnulib/import/m4/mbsrtowcs.m4: Update.
3020 * gnulib/import/m4/mbstate_t.m4: Update.
3021 * gnulib/import/m4/memchr.m4: Update.
3022 * gnulib/import/m4/memmem.m4: Update.
3023 * gnulib/import/m4/mempcpy.m4: Update.
3024 * gnulib/import/m4/memrchr.m4: Update.
3025 * gnulib/import/m4/mkdir.m4: Update.
3026 * gnulib/import/m4/mkstemp.m4: Update.
3027 * gnulib/import/m4/mmap-anon.m4: Update.
3028 * gnulib/import/m4/mode_t.m4: Update.
3029 * gnulib/import/m4/msvc-inval.m4: Update.
3030 * gnulib/import/m4/msvc-nothrow.m4: Update.
3031 * gnulib/import/m4/multiarch.m4: Update.
3032 * gnulib/import/m4/nocrash.m4: Update.
3033 * gnulib/import/m4/off_t.m4: Update.
3034 * gnulib/import/m4/onceonly.m4: Update.
3035 * gnulib/import/m4/open-cloexec.m4: Update.
3036 * gnulib/import/m4/open.m4: Update.
3037 * gnulib/import/m4/openat.m4: Update.
3038 * gnulib/import/m4/opendir.m4: Update.
3039 * gnulib/import/m4/pathmax.m4: Update.
3040 * gnulib/import/m4/rawmemchr.m4: Update.
3041 * gnulib/import/m4/readdir.m4: Update.
3042 * gnulib/import/m4/readlink.m4: Update.
3043 * gnulib/import/m4/realloc.m4: Update.
3044 * gnulib/import/m4/rename.m4: Update.
3045 * gnulib/import/m4/rewinddir.m4: Update.
3046 * gnulib/import/m4/rmdir.m4: Update.
3047 * gnulib/import/m4/save-cwd.m4: Update.
3048 * gnulib/import/m4/secure_getenv.m4: Update.
3049 * gnulib/import/m4/setenv.m4: Update.
3050 * gnulib/import/m4/signal_h.m4: Update.
3051 * gnulib/import/m4/ssize_t.m4: Update.
3052 * gnulib/import/m4/stat-time.m4: Update.
3053 * gnulib/import/m4/stat.m4: Update.
3054 * gnulib/import/m4/std-gnu11.m4: Update.
3055 * gnulib/import/m4/stdbool.m4: Update.
3056 * gnulib/import/m4/stddef_h.m4: Update.
3057 * gnulib/import/m4/stdint.m4: Update.
3058 * gnulib/import/m4/stdio_h.m4: Update.
3059 * gnulib/import/m4/stdlib_h.m4: Update.
3060 * gnulib/import/m4/strchrnul.m4: Update.
3061 * gnulib/import/m4/strdup.m4: Update.
3062 * gnulib/import/m4/strerror.m4: Update.
3063 * gnulib/import/m4/string_h.m4: Update.
3064 * gnulib/import/m4/strstr.m4: Update.
3065 * gnulib/import/m4/strtok_r.m4: Update.
3066 * gnulib/import/m4/sys_socket_h.m4: Update.
3067 * gnulib/import/m4/sys_stat_h.m4: Update.
3068 * gnulib/import/m4/sys_time_h.m4: Update.
3069 * gnulib/import/m4/sys_types_h.m4: Update.
3070 * gnulib/import/m4/tempname.m4: Update.
3071 * gnulib/import/m4/time_h.m4: Update.
3072 * gnulib/import/m4/unistd-safer.m4: Update.
3073 * gnulib/import/m4/unistd_h.m4: Update.
3074 * gnulib/import/m4/warn-on-use.m4: Update.
3075 * gnulib/import/m4/wchar_h.m4: Update.
3076 * gnulib/import/m4/wchar_t.m4: Update.
3077 * gnulib/import/m4/wctype_h.m4: Update.
3078 * gnulib/import/m4/wint_t.m4: Update.
3079 * gnulib/import/malloc.c: Update.
3080 * gnulib/import/malloc/scratch_buffer.h: Update.
3081 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
3082 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
3083 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
3084 * gnulib/import/malloca.c: Update.
3085 * gnulib/import/malloca.h: Update.
3086 * gnulib/import/malloca.valgrind: Update.
3087 * gnulib/import/math.in.h: Update.
3088 * gnulib/import/mbrtowc.c: Update.
3089 * gnulib/import/mbsinit.c: Update.
3090 * gnulib/import/mbsrtowcs-impl.h: Update.
3091 * gnulib/import/mbsrtowcs-state.c: Update.
3092 * gnulib/import/mbsrtowcs.c: Update.
3093 * gnulib/import/memchr.c: Update.
3094 * gnulib/import/memmem.c: Update.
3095 * gnulib/import/mempcpy.c: Update.
3096 * gnulib/import/memrchr.c: Update.
3097 * gnulib/import/mkdir.c: Update.
3098 * gnulib/import/mkstemp.c: Update.
3099 * gnulib/import/msvc-inval.c: Update.
3100 * gnulib/import/msvc-inval.h: Update.
3101 * gnulib/import/msvc-nothrow.c: Update.
3102 * gnulib/import/msvc-nothrow.h: Update.
3103 * gnulib/import/open.c: Update.
3104 * gnulib/import/openat-die.c: Update.
3105 * gnulib/import/openat-priv.h: Update.
3106 * gnulib/import/openat-proc.c: Update.
3107 * gnulib/import/openat.c: Update.
3108 * gnulib/import/openat.h: Update.
3109 * gnulib/import/opendir.c: Update.
3110 * gnulib/import/pathmax.h: Update.
3111 * gnulib/import/pipe-safer.c: Update.
3112 * gnulib/import/rawmemchr.c: Update.
3113 * gnulib/import/readdir.c: Update.
3114 * gnulib/import/readlink.c: Update.
3115 * gnulib/import/realloc.c: Update.
3116 * gnulib/import/ref-add.sin: Update.
3117 * gnulib/import/ref-del.sin: Update.
3118 * gnulib/import/rename.c: Update.
3119 * gnulib/import/rewinddir.c: Update.
3120 * gnulib/import/rmdir.c: Update.
3121 * gnulib/import/same-inode.h: Update.
3122 * gnulib/import/save-cwd.c: Update.
3123 * gnulib/import/save-cwd.h: Update.
3124 * gnulib/import/scratch_buffer.h: Update.
3125 * gnulib/import/secure_getenv.c: Update.
3126 * gnulib/import/setenv.c: Update.
3127 * gnulib/import/signal.in.h: Update.
3128 * gnulib/import/stat-time.c: Update.
3129 * gnulib/import/stat-time.h: Update.
3130 * gnulib/import/stat-w32.c: Update.
3131 * gnulib/import/stat-w32.h: Update.
3132 * gnulib/import/stat.c: Update.
3133 * gnulib/import/stdbool.in.h: Update.
3134 * gnulib/import/stddef.in.h: Update.
3135 * gnulib/import/stdint.in.h: Update.
3136 * gnulib/import/stdio.in.h: Update.
3137 * gnulib/import/stdlib.in.h: Update.
3138 * gnulib/import/str-two-way.h: Update.
3139 * gnulib/import/strchrnul.c: Update.
3140 * gnulib/import/strdup.c: Update.
3141 * gnulib/import/streq.h: Update.
3142 * gnulib/import/strerror-override.c: Update.
3143 * gnulib/import/strerror-override.h: Update.
3144 * gnulib/import/strerror.c: Update.
3145 * gnulib/import/string.in.h: Update.
3146 * gnulib/import/stripslash.c: Update.
3147 * gnulib/import/strnlen1.c: Update.
3148 * gnulib/import/strnlen1.h: Update.
3149 * gnulib/import/strstr.c: Update.
3150 * gnulib/import/strtok_r.c: Update.
3151 * gnulib/import/sys_stat.in.h: Update.
3152 * gnulib/import/sys_time.in.h: Update.
3153 * gnulib/import/sys_types.in.h: Update.
3154 * gnulib/import/tempname.c: Update.
3155 * gnulib/import/tempname.h: Update.
3156 * gnulib/import/time.in.h: Update.
3157 * gnulib/import/unistd--.h: Update.
3158 * gnulib/import/unistd-safer.h: Update.
3159 * gnulib/import/unistd.in.h: Update.
3160 * gnulib/import/unsetenv.c: Update.
3161 * gnulib/import/verify.h: Update.
3162 * gnulib/import/extra/snippet/warn-on-use.h: Update.
3163 * gnulib/import/wchar.in.h: Update.
3164 * gnulib/import/wctype.in.h: Update.
3165 * gnulib/import/xalloc-oversized.h: Update.
3166 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
3167 "53e2c179f26a890fa6685af4b6c1397ee370433b".
3168
3169 2018-09-10 Simon Marchi <simon.marchi@ericsson.com>
3170
3171 * record-btrace.c (get_thread_current_frame): Remove
3172 old_inferior_ptid.
3173
3174 2018-09-10 Jerome Guitton <guitton@adacore.com>
3175
3176 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
3177 with check_tag to 1 if and only if the type is tagged and the
3178 component being searched cannot been found in the current
3179 view. Otherwise, always call ada_to_fixed_type with
3180 check_tag to 0.
3181
3182 2018-09-10 Xavier Roirand <roirand@adacore.com>
3183
3184 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
3185 declaration.
3186 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
3187 * ada-varobj.c (ada_varobj_get_number_of_children,
3188 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
3189
3190 2018-09-10 Xavier Roirand <roirand@adacore.com>
3191
3192 * ada-valprint.c (ada_value_print): Use type instead of
3193 enclosing type.
3194
3195 2018-09-10 Xavier Roirand <roirand@adacore.com>
3196
3197 * ada-lang.c (ada_value_subscript): Handle case when parameter is
3198 an array of access to unconstrained array.
3199
3200 2018-09-10 Xavier Roirand <roirand@adacore.com>
3201
3202 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
3203 (ada_check_typedef): Use it.
3204
3205 2018-09-10 Xavier Roirand <roirand@adacore.com>
3206
3207 * ada-varobj.c (ada_varobj_describe_struct_child)
3208 (ada_varobj_describe_child): Handle union case like struct one.
3209
3210 2018-09-10 Tom Tromey <tom@tromey.com>
3211
3212 PR python/18380:
3213 * python/python.c (_initialize_python): Make example in "python"
3214 help work in Python 3.
3215
3216 2018-09-10 Eli Zaretskii <eliz@gnu.org>
3217
3218 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
3219 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
3220 $(EXEEXT) to the script, as it is not a program.
3221
3222 2018-09-09 Simon Marchi <simon.marchi@ericsson.com>
3223
3224 * python/py-prettyprint.c (pretty_print_one_value): Return
3225 gdbpy_ref<>.
3226 (print_string_repr): Adjust.
3227 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
3228 * python/python-internal.h (apply_varobj_pretty_printer): Return
3229 gdbpy_ref<>.
3230 * varobj.c (varobj_value_get_print_value): Adjust.
3231
3232 2018-09-08 Tom Tromey <tom@tromey.com>
3233
3234 PR python/16047:
3235 * python/py-prettyprint.c (pretty_print_one_value): Check for
3236 to_string method.
3237
3238 2018-09-08 Joel Brobecker <brobecker@adacore.com>
3239
3240 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
3241 replace_operator_with_call.
3242
3243 2018-09-08 Joel Brobecker <brobecker@adacore.com>
3244
3245 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
3246
3247 2018-09-08 Joel Brobecker <brobecker@adacore.com>
3248
3249 * ada-typeprint.c (print_range): Print the bounds using TYPE
3250 rather than its TYPE_TARGET_TYPE.
3251
3252 2018-09-08 Joel Brobecker <brobecker@adacore.com>
3253
3254 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
3255 call to ada_to_fixed_value_create.
3256
3257 2018-09-08 Jerome Guitton <guitton@adacore.com>
3258
3259 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
3260
3261 2018-09-08 Joel Brobecker <brobecker@adacore.com>
3262
3263 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
3264 by calls to error.
3265
3266 2018-09-08 Joel Brobecker <brobecker@adacore.com>
3267
3268 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
3269 Move update of loop variable "fi".
3270
3271 2018-09-08 Joel Brobecker <brobecker@adacore.com>
3272
3273 * ada-lang.c (value_assign_to_component): In the case of
3274 big-endian targets, extract the bits of the given VAL
3275 using an src_offset of zero if container is not a scalar.
3276
3277 2018-09-06 Simon Ser <contact@emersion.fr>
3278
3279 PR gdb/23105
3280 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
3281 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
3282 * fbsd-tdep.c (fbsd_make_note_desc): New.
3283 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
3284 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
3285 * target.h (enum target_object) Add FreeBSD-specific
3286 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
3287
3288 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
3289
3290 * compile/compile-c.h (generate_c_for_variable_locations):
3291 Change reference to pointer.
3292 * compile/compile-c-support.c (compile_program) <compute>:
3293 Likewise.
3294 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
3295 (generate_c_for_for_one_variable): Likewise
3296 (generate_c_for_variable_locations): Likewise
3297 * compile/compile-c-types.c (compile_c_instance::convert_type):
3298 Likewise
3299 * compile/compile-cplus-symbols.c (convert_one_symbol):
3300 std::move the scope passed to enter_scope.
3301 * compile/compile-cplus-types.c
3302 (compile_cplus_instance::enter_scope): Make parameter
3303 rvalue-reference.
3304 (compile_cplus_instance::new_scope): Change reference to
3305 pointer.
3306 (compile_cplus_instance::convert_type): Likewise
3307 (compile_cplus_convert_typedef): std::move the scope passed to
3308 enter_scope.
3309 (compile_cplus_convert_struct_or_union): Likewise.
3310 (compile_cplus_convert_enum): Likewise.
3311 (compile_cplus_convert_namespace): Likewise.
3312 * compile/compile-cplus.h (compile_cplus_instance)
3313 <enter_scope>: Make parameter rvalue-reference.
3314 * compile/compile-internal.h (compile_instance)
3315 <get_cached_type>: Likewise
3316 * compile/compile-loc2c.c (push): Likewise
3317 (pushf): Likewise
3318 (unary): Likewise
3319 (binary): Likewise
3320 (print_label): Likewise
3321 (pushf_register_address): Likewise
3322 (pushf_register): Likewise
3323 (do_compile_dwarf_expr_to_c): Likewise
3324 (compile_dwarf_expr_to_c): Likewise
3325 (compile_dwarf_bounds_to_c): Likewise
3326 * compile/compile.c (compile_instance::get_cached_type):
3327 Likewise
3328 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
3329 (compile_dwarf_bounds_to_c): Likewise
3330 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
3331 (dwarf2_compile_property_to_c): Likewise
3332 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
3333 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
3334 Likewise
3335
3336 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
3337
3338 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
3339 * tui/tui-data.c (init_content_element): Don't initialize it.
3340
3341 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
3342
3343 * tui/tui-data.h (struct tui_win_info)
3344 <detail::opaque>: Remove.
3345 * tui/tui-data.c (init_win_info): Remove assignment.
3346
3347 2018-09-05 Tom Tromey <tom@tromey.com>
3348
3349 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
3350 -Wformat-nonliteral.
3351 * target-float.c (host_float_ops<T>::to_string)
3352 (host_float_ops<T>::from_string): Use
3353 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
3354 * configure: Rebuild.
3355
3356 2018-09-05 Simon Marchi <simon.marchi@ericsson.com>
3357
3358 * printcmd.c (printf_c_string): Use
3359 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
3360 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
3361
3362 2018-09-05 Tom Tromey <tom@tromey.com>
3363
3364 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
3365
3366 2018-09-05 Tom de Vries <tdevries@suse.de>
3367
3368 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
3369 with resolve_abstract_p == true.
3370 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
3371 defaulting to false. Propagate resolve_abstract_p to
3372 dwarf2_fetch_die_loc_sect_off.
3373 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
3374 parameter, defaulting to false.
3375 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
3376 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
3377 parameter.
3378 * dwarf2read.h (struct die_info): Forward-declare.
3379 (die_info_ptr): New typedef.
3380 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
3381
3382 2018-09-05 Joel Brobecker <brobecker@adacore.com>
3383
3384 GDB 8.2 released.
3385
3386 2018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
3387 Pedro Alves <palves@redhat.com>
3388
3389 * gnulib/Makefile.in (aclocal_m4_deps): Move to
3390 "aclocal-m4-deps.mk". Include file here.
3391 $(srcdir)/aclocal.m4: Add "configure.ac".
3392 * gnulib/aclocal-m4-deps.mk: New file.
3393 * gnulib/update-gnulib.sh: Automatically update
3394 "aclocal-m4-deps.mk".
3395
3396 2018-09-04 Tom Tromey <tom@tromey.com>
3397
3398 * configure: Rebuild.
3399 * configure.ac: Remove multi-ice code.
3400
3401 2018-09-04 Tom Tromey <tom@tromey.com>
3402
3403 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
3404 (ada-exp.o): Update.
3405
3406 2018-09-04 Tom Tromey <tom@tromey.com>
3407
3408 * Makefile.in (printcmd.o, target-float.o): Remove.
3409 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
3410
3411 2018-09-04 Tom Tromey <tom@tromey.com>
3412
3413 * gnulib/Makefile.in: Remove obsolete comment.
3414 * Makefile.in: Remove obsolete comment.
3415
3416 2018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
3417
3418 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
3419 line with '+'.
3420
3421 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
3422
3423 * riscv-tdep.c: Add 'prologue-value.h' include.
3424 (struct riscv_unwind_cache): New struct.
3425 (riscv_debug_unwinder): New global.
3426 (riscv_scan_prologue): Update arguments, capture register details
3427 from prologue scan.
3428 (riscv_skip_prologue): Reformat arguments line, move end of
3429 prologue calculation into riscv_scan_prologue.
3430 (riscv_frame_cache): Update return type, create
3431 riscv_unwind_cache, scan the prologue, and fill in remaining cache
3432 details.
3433 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
3434 (riscv_frame_prev_register): Use the trad_frame within the
3435 riscv_unwind_cache.
3436 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
3437 flag.
3438
3439 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
3440
3441 * trad-frame.h (trad_frame_set_realreg): Declare.
3442 (trad_frame_set_addr): Declare.
3443 * trad-frame.c (trad_frame_set_realreg): Define new function.
3444 (trad_frame_set_addr): Define new function.
3445 (trad_frame_set_reg_realreg): Use new function.
3446 (trad_frame_set_reg_addr): Use new function.
3447
3448 2018-09-01 Keith Seitz <keiths@redhat.com>
3449
3450 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
3451 pulongest instead of "%lld".
3452 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
3453 ATTRIBUTE_UNUSED.
3454
3455 2018-08-31 Tom Tromey <tom@tromey.com>
3456
3457 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
3458 variant part type.
3459
3460 2018-08-31 Pedro Alves <palves@redhat.com>
3461
3462 * gdbarch.h: Regenerate.
3463
3464 2018-08-31 Pedro Alves <palves@redhat.com>
3465
3466 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
3467 * target.h (Hardware watchpoint interfaces): Describe
3468 continuable/steppable/non-steppable watchpoints.
3469 * gdbarch.h, gdbarch.c: Regenerate.
3470
3471 2018-08-31 Pedro Alves <palves@redhat.com>
3472
3473 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
3474 Delete.
3475 * s390-linux-nat.c
3476 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
3477 * target.h (target_ops::have_continuable_watchpoint): Delete.
3478 (target_have_continuable_watchpoint): Delete.
3479 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
3480 * target-delegates.c: Regenerate.
3481
3482 2018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
3483
3484 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
3485 the files present in "gnulib/import/m4/".
3486
3487 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
3488
3489 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
3490 c.sw, c.swsp, and c.sdsp.
3491
3492 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
3493
3494 * riscv-tdep.c (struct riscv_inferior_data): Delete.
3495 (riscv_read_misa_reg): Don't cache value read into inferior data.
3496 (riscv_new_inferior_data): Delete.
3497 (riscv_inferior_data_cleanup): Delete.
3498 (riscv_inferior_data): Delete.
3499 (riscv_invalidate_inferior_data): Delete.
3500 (_initialize_riscv_tdep): Remove initialisation of inferior data.
3501
3502 2018-08-30 Simon Marchi <simon.marchi@ericsson.com>
3503
3504 * compile/compile-cplus-types.c
3505 (compile_cplus_instance::leave_scope): Take the address of scope
3506 object.
3507 (compile_cplus_instance::convert_qualified_base): Compare quals
3508 to 0.
3509
3510 2018-08-30 Keith Seitz <keiths@redhat.com>
3511
3512 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
3513 Use "%s" and host_address_to_string instead of "%p" in printf.
3514
3515 2018-08-29 Keith Seitz <keiths@redhat.com>
3516
3517 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
3518 and compile-cplus-types.c.
3519 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
3520 * c-lang.c (cplus_language_defn): Set C++ compile functions.
3521 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
3522 Declare.
3523 * compile/compile-c-support.c: Include compile-cplus.h.
3524 (load_libcompile): Templatize.
3525 (get_compile_context): "New" function.
3526 (c_get_compile_context): Use get_compile_context.
3527 (cplus_get_compile_context): New function.
3528 (cplus_push_user_expression, cplus_pop_user_expression)
3529 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
3530 (cplus_compute_program): Define new structs/functions.
3531 * compile/compile-cplus-symmbols.c: New file.
3532 * compile/compile-cplus-types.c: New file.
3533 * compile/compile-cplus.h: New file.
3534 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
3535 Declare.
3536 * compile/compile-object-load.c (get_out_value_type): Use
3537 strncmp_iw when comparing symbol names.
3538 (compile_object_load): Add mst_bss and mst_data.
3539 * compile/compile.c (_initialize_compile): Remove
3540 -Wno-implicit-function-declaration from `compile_args'.
3541 * compile/gcc-cp-plugin.h: New file.
3542 * NEWS: Mention C++ compile support and new debug options.
3543
3544 2018-08-29 Keith Seitz <keiths@redhat.com>
3545
3546 * linespec.c (collect_info::add_symbol): Make virtual.
3547 (struct symbol_searcher_collect_info): New struct.
3548 (symbol_searcher::find_all_symbols): New method.
3549 * symtab.h (class symbol_searcher): New class.
3550
3551 2018-08-29 Keith Seitz <keiths@redhat.com>
3552
3553 * linespec.c (struct linespec) <function_symbols, label_symbols>:
3554 Change to vector of block_symbol. Update all users.
3555 (struct collect_info) <symbols>: Likewise.
3556 (collect_info::add_symbol): Take block_symbol as argument.
3557 Update all callers.
3558 (decode_compound_collector) <m_symbols>: Change type to vector
3559 of block_symbol. Update all users.
3560 (decode_compound_collector::operator ()): Change parameter type
3561 to block_symbol.
3562 (find_method, find_function_symbols, find_linespec_symbols)
3563 (find_label_symbols_in_block, find_label_symbols): Change symbol
3564 vectors to block_symbol vectors.
3565 * symtab.h (symbol_found_callback_ftype): Change parameter type to
3566 block_symbol.
3567
3568 2018-08-29 Keith Seitz <keiths@redhat.com>
3569
3570 * linespec.c (symbolp): Remove typedef and VEC definitions.
3571 (bound_minimal_symbol_d): Likewise.
3572
3573 2018-08-29 Keith Seitz <keiths@redhat.com>
3574
3575 * linespec.c (decode_compound_collector::decode_compound_collector):
3576 Remove initialization for `m_symtabs'.
3577 (decode_compound_collector::release_symbols): Change return type
3578 to std::vector. Update all callers.
3579 (class decode_compound_collector) <m_symbols>: Change type to
3580 std::vector.
3581 (lookup_prefix_sym): Change return type to std::vector. Update all
3582 callers.
3583 (compare_symbols): Remove.
3584 (std_compare_symbols): Rename to `compare_symbols'.
3585 (find_method): Change `sym_classes' parameter to std::vector.
3586 Update all callers. Use std::sort to sort sym_classes.
3587 (find_linespec_symbols): Remove cleanup.
3588
3589 2018-08-29 Keith Seitz <keiths@redhat.com>
3590
3591 * linespec.c (struct linespec) <minimal_symbols>: Change type to
3592 std::vector. Update all users.
3593 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
3594 (struct collect_info) <minimal_symbols>: Likewise.
3595 (compare_msymbols): Return bool. Change parameters to const
3596 bound_minimal_symbol references.
3597 (find_method, find_function_symbols, find_linespec_symbols): Change
3598 `minsyms' parameter to std::vector. Update all callers.
3599
3600 2018-08-29 Keith Seitz <keiths@redhat.com>
3601
3602 * linespec.c (struct linespec) <label_symbols>: Change type to
3603 std::vector. Update all users.
3604 (find_label_symbols_in_block): Change `result' parameter to
3605 std::vector. Update all callers.
3606 (find_label_symbols): Return std::vector. Update all callers.
3607
3608 2018-08-29 Keith Seitz <keiths@redhat.com>
3609
3610 * linespec.c (struct linespec) <function_symbols>: Change type to
3611 std::vector. Update all users.
3612 (struct collect_info) <function_symbols>: Likewise.
3613 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
3614 (std_compare_symbols): New function.
3615 (find_method, find_function_symbols, find_linespec_symbols)
3616 (find_label_symbols_in_block): Change `symbols' parameter to
3617 std::vector. Update all callers.
3618 (find_label_symbols): Likewise for `function_symbols' and
3619 `label_funcs_ret'.
3620
3621 2018-08-29 Keith Seitz <keiths@redhat.com>
3622
3623 * linespec.c (symtab_vector_up): Define.
3624 (struct linespec) <file_symtabs>: Change type to std::vector *.
3625 Update all uses.
3626 (struct collect_info) <file_symtabs>: Likewise.
3627 (collect_symtabs_from_filename): Return symtab_vector_up.
3628 Update all callers.
3629 (decode_objc): Remove cleanup.
3630 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
3631 (symtab_collector::release_symtabs): Return symtab_vector_up.
3632 Update all callers.
3633 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
3634 Update all users.
3635 (collect_symtabs_from_filename, symtabs_from_filename): Return
3636 symtab_vector_up. Update all callers.
3637
3638 2018-08-29 Tom Tromey <tom@tromey.com>
3639
3640 * csky-tdep.c (csky_analyze_prologue): Use
3641 core_addr_to_string_nz.
3642
3643 2018-08-29 Tom Tromey <tom@tromey.com>
3644
3645 * windows-nat.c (struct xlate_exception) <them>: Change type to
3646 DWORD.
3647 (xlate): Fix formatting. Remove last entry.
3648 (struct xlate_exception, xlate): Comment out.
3649 (windows_nat_target::resume): Use ranged for.
3650
3651 2018-08-29 Jim Wilson <jimw@sifive.com>
3652
3653 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
3654 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
3655 of NT_PRFPREG.
3656 (riscv_linux_nat_target::store_registers): Likewise.
3657
3658 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
3659
3660 PR gdb/23555
3661 PR gdb/23558
3662 * gnulib/aclocal.m4: Regenerate.
3663 * gnulib/config.in: Regenerate.
3664 * gnulib/configure: Regenerate.
3665 * gnulib/import/Makefile.am: Update.
3666 * gnulib/import/Makefile.in: Update.
3667 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
3668 * gnulib/import/_Noreturn.h: ... this.
3669 * gnulib/import/alloca.in.h: Update.
3670 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
3671 * gnulib/import/arg-nonnull.h: ... this.
3672 * gnulib/import/assure.h: Update.
3673 * gnulib/import/at-func.c: Update.
3674 * gnulib/import/basename-lgpl.c: Update.
3675 * gnulib/import/extra/snippet/c++defs.h: Rename to...
3676 * gnulib/import/c++defs.h: ... this.
3677 * gnulib/import/canonicalize-lgpl.c: Update.
3678 * gnulib/import/cdefs.h: Update.
3679 * gnulib/import/chdir-long.c: Update.
3680 * gnulib/import/chdir-long.h: Update.
3681 * gnulib/import/cloexec.c: Update.
3682 * gnulib/import/cloexec.h: Update.
3683 * gnulib/import/close.c: Update.
3684 * gnulib/import/closedir.c: Update.
3685 * gnulib/import/config.charset: Update.
3686 * gnulib/import/dirent-private.h: Update.
3687 * gnulib/import/dirent.in.h: Update.
3688 * gnulib/import/dirfd.c: Update.
3689 * gnulib/import/dirname-lgpl.c: Update.
3690 * gnulib/import/dirname.h: Update.
3691 * gnulib/import/dosname.h: Update.
3692 * gnulib/import/dup-safer-flag.c: Update.
3693 * gnulib/import/dup-safer.c: Update.
3694 * gnulib/import/dup.c: Update.
3695 * gnulib/import/dup2.c: Update.
3696 * gnulib/import/errno.in.h: Update.
3697 * gnulib/import/error.c: Update.
3698 * gnulib/import/error.h: Update.
3699 * gnulib/import/exitfail.c: Update.
3700 * gnulib/import/exitfail.h: Update.
3701 * gnulib/import/extra/update-copyright: Update.
3702 * gnulib/import/fchdir.c: Update.
3703 * gnulib/import/fcntl.c: Update.
3704 * gnulib/import/fcntl.in.h: Update.
3705 * gnulib/import/fd-hook.c: Update.
3706 * gnulib/import/fd-hook.h: Update.
3707 * gnulib/import/fd-safer-flag.c: Update.
3708 * gnulib/import/fd-safer.c: Update.
3709 * gnulib/import/fdopendir.c: Update.
3710 * gnulib/import/filename.h: Update.
3711 * gnulib/import/filenamecat-lgpl.c: Update.
3712 * gnulib/import/filenamecat.h: Update.
3713 * gnulib/import/flexmember.h: Update.
3714 * gnulib/import/float+.h: Update.
3715 * gnulib/import/float.c: Update.
3716 * gnulib/import/float.in.h: Update.
3717 * gnulib/import/fnmatch.c: Update.
3718 * gnulib/import/fnmatch.in.h: Update.
3719 * gnulib/import/fnmatch_loop.c: Update.
3720 * gnulib/import/fpucw.h: Update.
3721 * gnulib/import/frexp.c: Update.
3722 * gnulib/import/frexpl.c: Update.
3723 * gnulib/import/fstat.c: Update.
3724 * gnulib/import/fstatat.c: Update.
3725 * gnulib/import/getcwd-lgpl.c: Update.
3726 * gnulib/import/getcwd.c: Update.
3727 * gnulib/import/getdtablesize.c: Update.
3728 * gnulib/import/getlogin_r.c: Update.
3729 * gnulib/import/getprogname.c: Update.
3730 * gnulib/import/getprogname.h: Update.
3731 * gnulib/import/gettext.h: Update.
3732 * gnulib/import/gettimeofday.c: Update.
3733 * gnulib/import/glob-libc.h: Update.
3734 * gnulib/import/glob.c: Update.
3735 * gnulib/import/glob.in.h: Update.
3736 * gnulib/import/glob_internal.h: Update.
3737 * gnulib/import/glob_pattern_p.c: Update.
3738 * gnulib/import/globfree.c: Update.
3739 * gnulib/import/hard-locale.c: Update.
3740 * gnulib/import/hard-locale.h: Update.
3741 * gnulib/import/intprops.h: Update.
3742 * gnulib/import/inttypes.in.h: Update.
3743 * gnulib/import/isnan.c: Update.
3744 * gnulib/import/isnand-nolibm.h: Update.
3745 * gnulib/import/isnand.c: Update.
3746 * gnulib/import/isnanl-nolibm.h: Update.
3747 * gnulib/import/isnanl.c: Update.
3748 * gnulib/import/itold.c: Update.
3749 * gnulib/import/libc-config.h: Update.
3750 * gnulib/import/limits.in.h: Update.
3751 * gnulib/import/localcharset.c: Update.
3752 * gnulib/import/localcharset.h: Update.
3753 * gnulib/import/localtime-buffer.c: Update.
3754 * gnulib/import/localtime-buffer.h: Update.
3755 * gnulib/import/lstat.c: Update.
3756 * gnulib/import/m4/00gnulib.m4: Update.
3757 * gnulib/import/m4/__inline.m4: Update.
3758 * gnulib/import/m4/absolute-header.m4: Update.
3759 * gnulib/import/m4/alloca.m4: Update.
3760 * gnulib/import/m4/builtin-expect.m4: Update.
3761 * gnulib/import/m4/canonicalize.m4: Update.
3762 * gnulib/import/m4/chdir-long.m4: Update.
3763 * gnulib/import/m4/close.m4: Update.
3764 * gnulib/import/m4/closedir.m4: Update.
3765 * gnulib/import/m4/configmake.m4: Update.
3766 * gnulib/import/m4/d-ino.m4: Update.
3767 * gnulib/import/m4/d-type.m4: Update.
3768 * gnulib/import/m4/dirent_h.m4: Update.
3769 * gnulib/import/m4/dirfd.m4: Update.
3770 * gnulib/import/m4/dirname.m4: Update.
3771 * gnulib/import/m4/double-slash-root.m4: Update.
3772 * gnulib/import/m4/dup.m4: Update.
3773 * gnulib/import/m4/dup2.m4: Update.
3774 * gnulib/import/m4/eealloc.m4: Update.
3775 * gnulib/import/m4/environ.m4: Update.
3776 * gnulib/import/m4/errno_h.m4: Update.
3777 * gnulib/import/m4/error.m4: Update.
3778 * gnulib/import/m4/exponentd.m4: Update.
3779 * gnulib/import/m4/exponentl.m4: Update.
3780 * gnulib/import/m4/extensions.m4: Update.
3781 * gnulib/import/m4/extern-inline.m4: Update.
3782 * gnulib/import/m4/fchdir.m4: Update.
3783 * gnulib/import/m4/fcntl-o.m4: Update.
3784 * gnulib/import/m4/fcntl.m4: Update.
3785 * gnulib/import/m4/fcntl_h.m4: Update.
3786 * gnulib/import/m4/fdopendir.m4: Update.
3787 * gnulib/import/m4/filenamecat.m4: Update.
3788 * gnulib/import/m4/flexmember.m4: Update.
3789 * gnulib/import/m4/float_h.m4: Update.
3790 * gnulib/import/m4/fnmatch.m4: Update.
3791 * gnulib/import/m4/fnmatch_h.m4: Update.
3792 * gnulib/import/m4/fpieee.m4: Update.
3793 * gnulib/import/m4/frexp.m4: Update.
3794 * gnulib/import/m4/frexpl.m4: Update.
3795 * gnulib/import/m4/fstat.m4: Update.
3796 * gnulib/import/m4/fstatat.m4: Update.
3797 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
3798 * gnulib/import/m4/getcwd-path-max.m4: Update.
3799 * gnulib/import/m4/getcwd.m4: Update.
3800 * gnulib/import/m4/getdtablesize.m4: Update.
3801 * gnulib/import/m4/getlogin.m4: Update.
3802 * gnulib/import/m4/getlogin_r.m4: Update.
3803 * gnulib/import/m4/getpagesize.m4: Update.
3804 * gnulib/import/m4/getprogname.m4: Update.
3805 * gnulib/import/m4/gettimeofday.m4: Update.
3806 * gnulib/import/m4/glibc21.m4: Update.
3807 * gnulib/import/m4/glob.m4: Update.
3808 * gnulib/import/m4/glob_h.m4: Update.
3809 * gnulib/import/m4/gnulib-cache.m4: Update.
3810 * gnulib/import/m4/gnulib-common.m4: Update.
3811 * gnulib/import/m4/gnulib-comp.m4: Update.
3812 * gnulib/import/m4/gnulib-tool.m4: Update.
3813 * gnulib/import/m4/hard-locale.m4: Update.
3814 * gnulib/import/m4/include_next.m4: Update.
3815 * gnulib/import/m4/inttypes-pri.m4: Update.
3816 * gnulib/import/m4/inttypes.m4: Update.
3817 * gnulib/import/m4/isnand.m4: Update.
3818 * gnulib/import/m4/isnanl.m4: Update.
3819 * gnulib/import/m4/largefile.m4: Update.
3820 * gnulib/import/m4/limits-h.m4: Update.
3821 * gnulib/import/m4/localcharset.m4: Update.
3822 * gnulib/import/m4/locale-fr.m4: Update.
3823 * gnulib/import/m4/locale-ja.m4: Update.
3824 * gnulib/import/m4/locale-zh.m4: Update.
3825 * gnulib/import/m4/localtime-buffer.m4: Update.
3826 * gnulib/import/m4/longlong.m4: Update.
3827 * gnulib/import/m4/lstat.m4: Update.
3828 * gnulib/import/m4/malloc.m4: Update.
3829 * gnulib/import/m4/malloca.m4: Update.
3830 * gnulib/import/m4/math_h.m4: Update.
3831 * gnulib/import/m4/mbrtowc.m4: Update.
3832 * gnulib/import/m4/mbsinit.m4: Update.
3833 * gnulib/import/m4/mbsrtowcs.m4: Update.
3834 * gnulib/import/m4/mbstate_t.m4: Update.
3835 * gnulib/import/m4/memchr.m4: Update.
3836 * gnulib/import/m4/memmem.m4: Update.
3837 * gnulib/import/m4/mempcpy.m4: Update.
3838 * gnulib/import/m4/memrchr.m4: Update.
3839 * gnulib/import/m4/mkdir.m4: Update.
3840 * gnulib/import/m4/mkstemp.m4: Update.
3841 * gnulib/import/m4/mmap-anon.m4: Update.
3842 * gnulib/import/m4/mode_t.m4: Update.
3843 * gnulib/import/m4/msvc-inval.m4: Update.
3844 * gnulib/import/m4/msvc-nothrow.m4: Update.
3845 * gnulib/import/m4/multiarch.m4: Update.
3846 * gnulib/import/m4/nocrash.m4: Update.
3847 * gnulib/import/m4/off_t.m4: Update.
3848 * gnulib/import/m4/onceonly.m4: Update.
3849 * gnulib/import/m4/open-cloexec.m4: Update.
3850 * gnulib/import/m4/open.m4: Update.
3851 * gnulib/import/m4/openat.m4: Update.
3852 * gnulib/import/m4/opendir.m4: Update.
3853 * gnulib/import/m4/pathmax.m4: Update.
3854 * gnulib/import/m4/rawmemchr.m4: Update.
3855 * gnulib/import/m4/readdir.m4: Update.
3856 * gnulib/import/m4/readlink.m4: Update.
3857 * gnulib/import/m4/realloc.m4: Update.
3858 * gnulib/import/m4/rename.m4: Update.
3859 * gnulib/import/m4/rewinddir.m4: Update.
3860 * gnulib/import/m4/rmdir.m4: Update.
3861 * gnulib/import/m4/save-cwd.m4: Update.
3862 * gnulib/import/m4/secure_getenv.m4: Update.
3863 * gnulib/import/m4/setenv.m4: Update.
3864 * gnulib/import/m4/signal_h.m4: Update.
3865 * gnulib/import/m4/ssize_t.m4: Update.
3866 * gnulib/import/m4/stat-time.m4: Update.
3867 * gnulib/import/m4/stat.m4: Update.
3868 * gnulib/import/m4/std-gnu11.m4: Update.
3869 * gnulib/import/m4/stdbool.m4: Update.
3870 * gnulib/import/m4/stddef_h.m4: Update.
3871 * gnulib/import/m4/stdint.m4: Update.
3872 * gnulib/import/m4/stdio_h.m4: Update.
3873 * gnulib/import/m4/stdlib_h.m4: Update.
3874 * gnulib/import/m4/strchrnul.m4: Update.
3875 * gnulib/import/m4/strdup.m4: Update.
3876 * gnulib/import/m4/strerror.m4: Update.
3877 * gnulib/import/m4/string_h.m4: Update.
3878 * gnulib/import/m4/strstr.m4: Update.
3879 * gnulib/import/m4/strtok_r.m4: Update.
3880 * gnulib/import/m4/sys_socket_h.m4: Update.
3881 * gnulib/import/m4/sys_stat_h.m4: Update.
3882 * gnulib/import/m4/sys_time_h.m4: Update.
3883 * gnulib/import/m4/sys_types_h.m4: Update.
3884 * gnulib/import/m4/tempname.m4: Update.
3885 * gnulib/import/m4/time_h.m4: Update.
3886 * gnulib/import/m4/unistd-safer.m4: Update.
3887 * gnulib/import/m4/unistd_h.m4: Update.
3888 * gnulib/import/m4/warn-on-use.m4: Update.
3889 * gnulib/import/m4/wchar_h.m4: Update.
3890 * gnulib/import/m4/wchar_t.m4: Update.
3891 * gnulib/import/m4/wctype_h.m4: Update.
3892 * gnulib/import/m4/wint_t.m4: Update.
3893 * gnulib/import/malloc.c: Update.
3894 * gnulib/import/malloc/scratch_buffer.h: Update.
3895 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
3896 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
3897 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
3898 * gnulib/import/malloca.c: Update.
3899 * gnulib/import/malloca.h: Update.
3900 * gnulib/import/malloca.valgrind: Update.
3901 * gnulib/import/math.in.h: Update.
3902 * gnulib/import/mbrtowc.c: Update.
3903 * gnulib/import/mbsinit.c: Update.
3904 * gnulib/import/mbsrtowcs-impl.h: Update.
3905 * gnulib/import/mbsrtowcs-state.c: Update.
3906 * gnulib/import/mbsrtowcs.c: Update.
3907 * gnulib/import/memchr.c: Update.
3908 * gnulib/import/memmem.c: Update.
3909 * gnulib/import/mempcpy.c: Update.
3910 * gnulib/import/memrchr.c: Update.
3911 * gnulib/import/mkdir.c: Update.
3912 * gnulib/import/mkstemp.c: Update.
3913 * gnulib/import/msvc-inval.c: Update.
3914 * gnulib/import/msvc-inval.h: Update.
3915 * gnulib/import/msvc-nothrow.c: Update.
3916 * gnulib/import/msvc-nothrow.h: Update.
3917 * gnulib/import/open.c: Update.
3918 * gnulib/import/openat-die.c: Update.
3919 * gnulib/import/openat-priv.h: Update.
3920 * gnulib/import/openat-proc.c: Update.
3921 * gnulib/import/openat.c: Update.
3922 * gnulib/import/openat.h: Update.
3923 * gnulib/import/opendir.c: Update.
3924 * gnulib/import/pathmax.h: Update.
3925 * gnulib/import/pipe-safer.c: Update.
3926 * gnulib/import/rawmemchr.c: Update.
3927 * gnulib/import/readdir.c: Update.
3928 * gnulib/import/readlink.c: Update.
3929 * gnulib/import/realloc.c: Update.
3930 * gnulib/import/ref-add.sin: Update.
3931 * gnulib/import/ref-del.sin: Update.
3932 * gnulib/import/rename.c: Update.
3933 * gnulib/import/rewinddir.c: Update.
3934 * gnulib/import/rmdir.c: Update.
3935 * gnulib/import/same-inode.h: Update.
3936 * gnulib/import/save-cwd.c: Update.
3937 * gnulib/import/save-cwd.h: Update.
3938 * gnulib/import/scratch_buffer.h: Update.
3939 * gnulib/import/secure_getenv.c: Update.
3940 * gnulib/import/setenv.c: Update.
3941 * gnulib/import/signal.in.h: Update.
3942 * gnulib/import/stat-time.c: Update.
3943 * gnulib/import/stat-time.h: Update.
3944 * gnulib/import/stat-w32.c: Update.
3945 * gnulib/import/stat-w32.h: Update.
3946 * gnulib/import/stat.c: Update.
3947 * gnulib/import/stdbool.in.h: Update.
3948 * gnulib/import/stddef.in.h: Update.
3949 * gnulib/import/stdint.in.h: Update.
3950 * gnulib/import/stdio.in.h: Update.
3951 * gnulib/import/stdlib.in.h: Update.
3952 * gnulib/import/str-two-way.h: Update.
3953 * gnulib/import/strchrnul.c: Update.
3954 * gnulib/import/strdup.c: Update.
3955 * gnulib/import/streq.h: Update.
3956 * gnulib/import/strerror-override.c: Update.
3957 * gnulib/import/strerror-override.h: Update.
3958 * gnulib/import/strerror.c: Update.
3959 * gnulib/import/string.in.h: Update.
3960 * gnulib/import/stripslash.c: Update.
3961 * gnulib/import/strnlen1.c: Update.
3962 * gnulib/import/strnlen1.h: Update.
3963 * gnulib/import/strstr.c: Update.
3964 * gnulib/import/strtok_r.c: Update.
3965 * gnulib/import/sys_stat.in.h: Update.
3966 * gnulib/import/sys_time.in.h: Update.
3967 * gnulib/import/sys_types.in.h: Update.
3968 * gnulib/import/tempname.c: Update.
3969 * gnulib/import/tempname.h: Update.
3970 * gnulib/import/time.in.h: Update.
3971 * gnulib/import/unistd--.h: Update.
3972 * gnulib/import/unistd-safer.h: Update.
3973 * gnulib/import/unistd.in.h: Update.
3974 * gnulib/import/unsetenv.c: Update.
3975 * gnulib/import/verify.h: Update.
3976 * gnulib/import/extra/snippet/warn-on-use.h: Update.
3977 * gnulib/import/wchar.in.h: Update.
3978 * gnulib/import/wctype.in.h: Update.
3979 * gnulib/import/xalloc-oversized.h: Update.
3980 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
3981 "53e2c179f26a890fa6685af4b6c1397ee370433b".
3982
3983 2018-08-16 Gary Benson <gbenson@redhat.com>
3984
3985 PR gdb/13000:
3986 * gdb/main.c (captured_main_1): Exit with nonzero status
3987 in batch mode if the last command to be executed failed.
3988 * NEWS: Mention the above.
3989
3990 2018-08-29 Simon Marchi <simon.marchi@ericsson.com>
3991
3992 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
3993 end of warning message.
3994
3995 2018-08-29 Alan Hayward <alan.hayward@arm.com>
3996
3997 PR gdb/22943:
3998 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
3999 (aarch64_extract_return_value): Use
4000 aapcs_is_vfp_call_or_return_candidate.
4001 (aarch64_return_in_memory): Likewise.
4002 (aarch64_store_return_value): Likewise.
4003
4004 2018-08-29 Alan Hayward <alan.hayward@arm.com>
4005
4006 * aarch64-tdep.c
4007 (aapcs_is_vfp_call_or_return_candidate): Make static
4008 (pass_in_v_or_stack): Remove function.
4009 (pass_in_v_vfp_candidate): New function.
4010 (aarch64_push_dummy_call): Check for float register candidates.
4011
4012 2018-08-29 Alan Hayward <alan.hayward@arm.com>
4013
4014 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
4015 (aapcs_is_vfp_call_or_return_candidate_1): New function.
4016 (aapcs_is_vfp_call_or_return_candidate): Likewise.
4017
4018 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
4019
4020 PR build/23399
4021 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
4022 (struct ipa_sym_addresses): Rename to...
4023 (struct ipa_sym_addresses_common): ... this.
4024 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
4025
4026 2018-08-28 Tom Tromey <tom@tromey.com>
4027
4028 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
4029 (token_fifo): Now a std::vector.
4030 (yylex, c_parse): Update.
4031 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
4032 (token_fifo): Now a std::vector.
4033 (yylex, d_parse): Update.
4034 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
4035 (token_fifo): Now a std::vector.
4036 (yylex, go_parse): Update.
4037
4038 2018-08-28 Simon Marchi <simon.marchi@ericsson.com>
4039
4040 * parser-defs.h (struct type_stack) <elements>: Change type to
4041 std::vector<union type_stack_elt>.
4042 <depth, size>: Remove.
4043 * parse.c (parse_exp_in_context_1): Adjust.
4044 (type_stack_reserve): Remove.
4045 (check_type_stack_depth): Remove.
4046 (insert_into_type_stack): Adjust to std::vector.
4047 (insert_type): Likewise.
4048 (push_type): Likewise.
4049 (push_type_int): Likewise.
4050 (insert_type_address_space): Likewise.
4051 (pop_type): Likewise.
4052 (pop_type_int): Likewise.
4053 (pop_typelist): Likewise.
4054 (pop_type_stack): Likewise.
4055 (append_type_stack): Likewise.
4056 (push_type_stack): Likewise.
4057 (get_type_stack): Likewise.
4058 (type_stack_cleanup): Likewise.
4059 (push_typelist): Likewise.
4060 (follow_types): Likewise.
4061 (_initialize_parse): Likewise.
4062
4063 2018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
4064
4065 * NEWS: Mention csky target.
4066
4067 2018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
4068 Hafiz Abid Qadeer <abidh@codesourcery.com>
4069 Don Breazeal <donb@codesourcery.com>
4070
4071 * csky-linux-tdep.c: New file.
4072 * csky-tdep.c: Likewise.
4073 * csky-tdep.h: Likewise.
4074 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
4075 csky-tdep.o.
4076 (HFILES_NO_SRCDIR): Add csky-tdep.h.
4077 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
4078 * configure.tgt: Add csky support.
4079
4080 2018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
4081
4082 * python/py-framefilter.c (py_print_frame): Print frame architecture
4083 when printing on an MI output.
4084
4085 2018-08-27 Tom Tromey <tom@tromey.com>
4086
4087 PR build/23087:
4088 * configure: Rebuild.
4089 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
4090
4091 2018-08-27 Tom Tromey <tom@tromey.com>
4092
4093 * aarch64-linux-tdep.c
4094 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
4095 casts to int.
4096
4097 2018-08-27 Tom Tromey <tom@tromey.com>
4098
4099 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
4100 unsigned.
4101 (ppc64_standard_linkage1, ppc64_standard_linkage2)
4102 (ppc64_standard_linkage3, ppc64_standard_linkage4)
4103 (ppc64_standard_linkage5, ppc64_standard_linkage6)
4104 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
4105 unsigned.
4106
4107 2018-08-27 Tom Tromey <tom@tromey.com>
4108
4109 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
4110 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
4111
4112 2018-08-27 Tom Tromey <tom@tromey.com>
4113
4114 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
4115 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
4116 ULONGEST_MAX.
4117 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
4118 ULONGEST_MAX.
4119 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
4120 ULONGEST_MAX.
4121 * sparc-linux-tdep.c (sparc32_linux_sigframe)
4122 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
4123 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
4124 ULONGEST_MAX.
4125 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
4126 (ppc64_linux_sigaction_tramp_frame)
4127 (ppc32_linux_sighandler_tramp_frame)
4128 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
4129 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
4130 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
4131 * mn10300-linux-tdep.c (am33_linux_sigframe)
4132 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
4133 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
4134 * mips-linux-tdep.c (mips_linux_o32_sigframe)
4135 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
4136 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
4137 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
4138 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
4139 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
4140 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
4141 * microblaze-linux-tdep.c
4142 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
4143 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
4144 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
4145 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
4146 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
4147 * common/common-types.h (ULONGEST_MAX): New define.
4148 (CORE_ADDR_MAX): Fix formatting.
4149 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
4150 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
4151 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
4152 (arm_linux_rt_sigreturn_tramp_frame)
4153 (arm_eabi_linux_sigreturn_tramp_frame)
4154 (arm_eabi_linux_rt_sigreturn_tramp_frame)
4155 (thumb2_eabi_linux_sigreturn_tramp_frame)
4156 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
4157 (arm_linux_restart_syscall_tramp_frame)
4158 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
4159 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
4160 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
4161 ULONGEST_MAX.
4162 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
4163
4164 2018-08-27 Tom Tromey <tom@tromey.com>
4165
4166 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
4167 CORE_ADDR_MAX.
4168 * mips-tdep.c (mips_deal_with_atomic_sequence)
4169 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
4170 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
4171 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
4172 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
4173 CORE_ADDR_MAX.
4174 * aarch64-tdep.c (aarch64_software_single_step): Use
4175 CORE_ADDR_MAX.
4176
4177 2018-08-27 Tom Tromey <tom@tromey.com>
4178
4179 * linespec.c (complete_linespec_component): Add cast to "char".
4180 * completer.c (completion_tracker::build_completion_result): Add
4181 cast to "char".
4182
4183 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
4184
4185 * solist.h (struct solist, struct target_so_ops): Fix
4186 indentation.
4187
4188 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
4189
4190 * ada-tasks.c (ada_task_info_s): Remove typedef.
4191 (DEF_VEC_O(ada_task_info_s)): Remove.
4192 (struct ada_tasks_inferior_data): Initialize fields.
4193 <task_list>: Make an std::vector.
4194 (get_ada_tasks_inferior_data): Allocate with new.
4195 (ada_get_task_number): Adjust.
4196 (get_task_number_from_id): Likewise.
4197 (valid_task_id): Likewise.
4198 (ada_get_task_info_from_ptid): Likewise.
4199 (iterate_over_live_ada_tasks): Likewise.
4200 (add_ada_task): Likewise.
4201 (read_known_tasks): Likewise.
4202 (ada_build_task_list): Likewise.
4203 (print_ada_task_info): Likewise.
4204 (info_task): Likewise.
4205 (task_command_1): Likewise.
4206
4207 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
4208
4209 * ada-lang.c (add_angle_brackets): Return std::string.
4210
4211 2018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
4212
4213 * python/py-threadevent.c (py_get_event_thread): Initialize
4214 pythread.
4215
4216 2018-08-24 Pedro Alves <palves@redhat.com>
4217
4218 * python/py-bpevent.c (create_breakpoint_event_object): Use
4219 copy-initialization.
4220 * python/py-continueevent.c (emit_continue_event): Use
4221 copy-initialization.
4222 * python/py-exitedevent.c (create_exited_event_object): Return a
4223 gdbpy_ref<>.
4224 (emit_exited_event): Use copy-initialization.
4225 * python/py-inferior.c (python_new_inferior)
4226 (python_inferior_deleted, add_thread_object): Use
4227 copy-initialization.
4228 * python/py-infevents.c (create_inferior_call_event_object)
4229 (create_register_changed_event_object)
4230 (create_memory_changed_event_object): Return a gdbpy_ref<>.
4231 (emit_inferior_call_event, emit_memory_changed_event)
4232 (emit_register_changed_event): Use copy-initialization.
4233 * python/py-newobjfileevent.c (create_new_objfile_event_object):
4234 Return a gdbpy_ref<>.
4235 (emit_new_objfile_event): Use copy-initialization.
4236 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
4237 (emit_clear_objfiles_event): Use copy-initialization.
4238 * python/py-signalevent.c (create_signal_event_object): Use
4239 copy-initialization.
4240 * python/py-threadevent.c (create_thread_event_object): Use
4241 copy-initialization.
4242
4243 2018-08-24 Pedro Alves <palves@redhat.com>
4244 Simon Marchi <simon.marchi@ericsson.com>
4245
4246 PR gdb/23379
4247 * python/py-continueevent.c: Include "gdbthread.h".
4248 (create_continue_event_object): Add intro comment. Add 'ptid'
4249 parameter. Use it to find thread to pass to
4250 create_thread_event_object.
4251 (emit_continue_event): Pass PTID down to
4252 create_continue_event_object.
4253 * python/py-event.h (py_get_event_thread): Declare.
4254 (create_thread_event_object): Remove default from 'thread'
4255 parameter.
4256 * python/py-stopevent.c (create_stop_event_object): Use
4257 py_get_event_thread.
4258 * python/py-threadevent.c (get_event_thread): Rename to ...
4259 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
4260 and use it to find the thread.
4261 (create_thread_event_object): Assert that THREAD isn't null.
4262 Don't find the event thread here.
4263
4264 2018-08-23 Kevin Buettner <kevinb@redhat.com>
4265
4266 * block.h (blockrange, blockranges): New struct declarations.
4267 (struct block): Add new field named `ranges'.
4268 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
4269 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
4270 macros for accessing ranges in struct block.
4271 (make_blockranges): New declaration.
4272 block.c (make_blockranges): New function.
4273 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
4274 for block.
4275 * symtab.h (find_pc_partial_function): Add new parameter `block'.
4276 * blockframe.c (cache_pc_function_block): New static global.
4277 (clear_pc_function_cache): Clear cache_pc_function_block.
4278 (find_pc_partial_function): Move comment to symtab.h. Add
4279 support for non-contiguous blocks.
4280 * cli/cli-cmds.c (block.h): Include.
4281 (print_disassembly): Handle printing of non-contiguous blocks.
4282 (disassemble_current_function): Likewise.
4283 (disassemble_command): Likewise.
4284
4285 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
4286 BLOCK_START.
4287 * blockframe.c (get_pc_function_start): Likewise.
4288 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
4289 (gcc_symbol_address): Likewise.
4290 * compile/compile-object-run.c (compile_object_run): Likewise.
4291 * compile/compile.c (get_expr_block_and_pc): Likewise.
4292 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
4293 (func_addr_to_tail_call_list): Likewise.
4294 * findvar.c (default_read_var_value): Likewise.
4295 * inline-frame.c (inline_frame_this_id): Likewise.
4296 (skip-inline_frames): Likewise.
4297 * infcmd.c (until_next_command): Likewise.
4298 * linespec.c (convert_linespec_to_sals): Likewise.
4299 * parse.c (parse_exp_in_context_1): Likewise.
4300 * printcmd.c (build_address_symbolic): likewise.
4301 (info_address_command): Likewise.
4302 symtab.c (find_function_start_sal): Likewise.
4303 (skip_prologue_sal): Likewise.
4304 (find_function_alias_target): Likewise.
4305 (find_gnu_ifunc): Likewise.
4306 * stack.c (find_frame_funname): Likewise.
4307 * symtab.c (fixup_symbol_section): Likewise.
4308 (find_function_start_sal): Likewise.
4309 (skip_prologue_sal): Likewsie.
4310 (find_function_alias_target): Likewise.
4311 (find_gnu_ifunc): Likewise.
4312 * tracepoint.c (info_scope_command): Likewise.
4313 * value.c (value_fn_field): Likewise.
4314
4315 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
4316 in place of find_pc_partial_function.
4317 * blockframe.c (find_function_entry_range_from_pc): New function.
4318 * symtab.h (find_function_entry_range_from_pc): Declare and document.
4319 * objfiles.c (objfile_relocate1): Relocate start and end addresses
4320 for each range in a block.
4321
4322
4323 2018-08-23 Xavier Roirand <roirand@adacore.com>
4324
4325 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
4326 incrementation.
4327
4328 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
4329
4330 * solib-svr4.c (read_program_headers_from_bfd): Return
4331 gdb::optional<gdb::byte_vector>.
4332 (svr4_exec_displacement): Adjust.
4333
4334 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
4335
4336 * solib-svr4.c (read_program_header): Return
4337 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
4338 (find_program_interpreter): Return
4339 gdb::optional<gdb::byte_vector>.
4340 (scan_dyntag_auxv): Adjust.
4341 (enable_break): Adjust.
4342 (svr4_exec_displacement): Adjust.
4343
4344 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
4345
4346 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
4347 * inf-child.c (inf_child_target::terminal_save_inferior): New.
4348
4349 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
4350
4351 * guile/scm-string.c (gdbscm_scm_from_printf): Use
4352 string_vprintf.
4353 * guile/scm-utils.c (gdbscm_printf): Likewise.
4354 * serial.c (serial_printf): Likewise.
4355 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
4356
4357 2018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
4358
4359 * stack.c (print_frame): Print frame architecture when printing on
4360 an MI output.
4361 * NEWS: Mention new "arch" attribute in frame output.
4362
4363 2018-08-21 Alan Hayward <alan.hayward@arm.com>
4364
4365 * arch/aarch64.h (aarch64_regnum): Update comment.
4366
4367 2018-08-21 Alan Hayward <alan.hayward@arm.com>
4368
4369 * NEWS: Add SVE to 8.2 section.
4370
4371 2018-08-21 Pedro Alves <palves@redhat.com>
4372
4373 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
4374 out from gdbscm_parse_function_args.
4375 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
4376 gdbscm_parse_function_args_1.
4377
4378 2018-08-21 Simon Marchi <simon.marchi@ericsson.com>
4379
4380 PR gdb/17816
4381 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
4382 operator.
4383
4384 2018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
4385
4386 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
4387
4388 2018-08-19 Michael Spang <spang@google.com>
4389
4390 PR gdb/11786
4391 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
4392 for PT_TLS segments.
4393
4394 2018-08-18 Kevin Buettner <kevinb@redhat.com>
4395
4396 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
4397 dwarf_variable_value.
4398 * dwarf2-frame.c (class dwarf_expr_executor):
4399 Add override for dwarf_variable_value.
4400 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
4401 (class symbol_needs_eval_context): Likewise.
4402 (indirect_synthetic_pointer): Add forward declaration.
4403 (sect_variable_value): New function.
4404 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
4405 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
4406 for DW_OP_GNU_variable_value.
4407
4408 2018-08-16 Tom Tromey <tom@tromey.com>
4409
4410 * top.c (read_command_file): Update.
4411 (command_line_input): Remove "repeat" argument.
4412 * ada-lang.c (get_selections): Update.
4413 * linespec.c (decode_line_2): Update.
4414 * defs.h (command_line_input): Remove argument.
4415 * cli/cli-script.c (read_next_line): Update.
4416 * python/py-gdb-readline.c: Update.
4417
4418 2018-08-17 Tom Tromey <tom@tromey.com>
4419
4420 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
4421 command_line_input.
4422
4423 2018-08-15 Tom Tromey <tom@tromey.com>
4424
4425 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
4426
4427 2018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
4428
4429 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
4430 If used, use find_pc_partial_function to find address range
4431 to disassemble.
4432 * mi/mi-main.c (mi_cmd_list_features): Report
4433 "data-disassemble-a-option" feature.
4434 * NEWS: Mention new -data-disassemble option -a.
4435
4436 2018-08-13 Tom Tromey <tom@tromey.com>
4437
4438 * common/common-defs.h (_FORTIFY_SOURCE): Define.
4439
4440 2018-08-13 Alan Hayward <alan.hayward@arm.com>
4441
4442 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
4443 (aarch64_linux_collect_sve_regset): Likewise.
4444 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
4445 * regcache.h (regcache_map_entry_size): New function.
4446
4447 2018-08-13 Alan Hayward <alan.hayward@arm.com>
4448
4449 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
4450 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
4451 (SVE_HEADER_VL_LENGTH): Likewise.
4452 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
4453 (SVE_HEADER_FLAGS_LENGTH): Likewise.
4454 (SVE_HEADER_RESERVED_LENGTH): Likewise.
4455 (SVE_HEADER_SIZE_OFFSET): Likewise.
4456 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
4457 (SVE_HEADER_VL_OFFSET): Likewise.
4458 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
4459 (SVE_HEADER_FLAGS_OFFSET): Likewise.
4460 (SVE_HEADER_RESERVED_OFFSET): Likewise.
4461 (SVE_HEADER_SIZE): Likewise.
4462 (aarch64_linux_core_read_vq): Add function.
4463 (aarch64_linux_core_read_description): Check for SVE section.
4464
4465 2018-08-13 Alan Hayward <alan.hayward@arm.com>
4466
4467 * aarch64-fbsd-tdep.c
4468 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
4469 collect_size.
4470 * aarch64-linux-tdep.c
4471 (aarch64_linux_iterate_over_regset_sections): Likewise.
4472 * alpha-linux-tdep.c
4473 (alpha_linux_iterate_over_regset_sections):
4474 * alpha-nbsd-tdep.c
4475 (alphanbsd_iterate_over_regset_sections): Likewise.
4476 * amd64-fbsd-tdep.c
4477 (amd64fbsd_iterate_over_regset_sections): Likewise.
4478 * amd64-linux-tdep.c
4479 (amd64_linux_iterate_over_regset_sections): Likewise.
4480 * arm-bsd-tdep.c
4481 (armbsd_iterate_over_regset_sections): Likewise.
4482 * arm-fbsd-tdep.c
4483 (arm_fbsd_iterate_over_regset_sections): Likewise.
4484 * arm-linux-tdep.c
4485 (arm_linux_iterate_over_regset_sections): Likewise.
4486 * corelow.c (get_core_registers_cb): Likewise.
4487 (core_target::fetch_registers): Likewise.
4488 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
4489 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
4490 * gdbarch.h (void): Regenerate.
4491 * gdbarch.sh: Add supply_size and collect_size.
4492 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
4493 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
4494 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
4495 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
4496 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
4497 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
4498 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
4499 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
4500 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
4501 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
4502 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
4503 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
4504 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
4505 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
4506 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections):
4507 Likewise.
4508 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
4509 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
4510 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
4511 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
4512 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
4513 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
4514 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections):
4515 Likewise.
4516 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
4517 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
4518 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
4519 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
4520 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
4521 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
4522 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
4523 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
4524
4525 2018-08-10 Simon Marchi <simon.marchi@ericsson.com>
4526
4527 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
4528 with string_printf.
4529
4530 2018-08-10 Keith Seitz <keiths@redhat.com>
4531
4532 * compile/compile-c-support.c (add_code_header, add_code_footer):
4533 Move into policy class.
4534 (c_push_user_expression, pop_user_expression_nop)
4535 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
4536 (compile_program): New host class.
4537 (c_compile_program): New typedef.
4538 (c_compute_porgram): Use c_compile_program.
4539
4540 2018-08-10 Keith Seitz <keiths@redhat.com>
4541
4542 * compile/compile-internal.h (compile_instance::~compile_instance):
4543 Remove calls to htab_delete.
4544 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
4545 * compile.c (compile_instance::compile_instance): Initialize
4546 htab unique pointers.
4547 (compile_instance::get_cached_type, compile_instance::insert_type)
4548 (compile_instance::error_symbol_once): Update for unique_ptr.
4549
4550 2018-08-10 Keith Seitz <keiths@redhat.com>
4551
4552 * compile/compile-c-symbols.c (struct symbol_error)
4553 (hash_symbol_error, eq_symbol_error, del_symbol_error)
4554 (compile_instance::insert_symbol_error)
4555 (compile_instance::error_symbol_once): Move to ...
4556 * compile/compile.c: ... here.
4557
4558 2018-08-10 Keith Seitz <keiths@redhat.com>
4559
4560 * compile/compile-c-support.c (c_get_compile_context): Use `new'
4561 instead of `new_compile_instance'.
4562 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
4563 Update description.
4564 If the symbol error map is not initialized, create it.
4565 (generate_c_for_for_one_symbol): Do not check/initialize
4566 the symbol error map.
4567 * compile/compile-c-types.c (compile_c_instance): Make a class.
4568 Update all callers.
4569 (compile_instance::compile_instance): Initialize the type cache.
4570 (get_cached_type): New function.
4571 (insert_type): Update description.
4572 (compile_c_instance::m_default_cflags): Define.
4573 (convert_type): Update description. Use get_cached_type.
4574 (delete_instance): Moved to destructor.
4575 (new_compile_instance): Moved to constructor.
4576 * compile/compile-c.h (compile_c_instance): Make class inheriting
4577 from compile_instance.
4578 <base>: Remove field.
4579 <type_map, symbol_err_map>: Move to base class.
4580 <c_plugin>: Rename to `m_plugin' and remove pointer type.
4581 * compile/compile-internal.h (compile_instance): Make class.
4582 <type_map_t, symbol_err_map_t>: Define.
4583 <fe>: Rename to `m_gcc_fe'.
4584 <scope, block, gcc_target_options>: Add `m_' prefix.
4585 <m_type_map, m_symbol_err_map>: New fields, moved from
4586 compile_c_instance.
4587 <destroy>: Remove.
4588 (convert_type, new_compile_instance): Remove.
4589 * compile/compile.c (cleanup_compile_instance): Remove.
4590 (compile_to_object): Use unique_ptr to eliminate cleanups.
4591 (compile_instance::set_print_callback, compile_instance::version)
4592 (compile_instance::set_verbose)
4593 (compile_instance::set_driver_filename)
4594 (compile_instance::set_triplet_regexp)
4595 (compile_instance::set_arguments)
4596 (compile_instance::set_source_file)
4597 (compile_instance::compile): Define.
4598
4599 2018-08-10 Keith Seitz <keiths@redhat.com>
4600
4601 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
4602 * compile/compile-c-types.c: Define GCC_METHODN macros and include
4603 gcc-c-fe.def to define C plugin.
4604 (delete_instance): Delete `c_plugin'.
4605 (new_compile_instance): Initialize `c_plugin'.
4606 * compile/compile-c.h: Include gcc_c_plugin.h.
4607 (struct compile_c_instance) <c_plugin>: New member.
4608 * gcc-c-plugin.h: New file.
4609 Update all callers with API change.
4610
4611 2018-08-10 Keith Seitz <keiths@redhat.com>
4612
4613 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
4614 (HFILES_NO_SRCDIR): ... to here.
4615 Add compile-internal.h and compile-c.h.
4616 * compile/compile-c-support.c: Include compile-c.h.
4617 * compile/compile-c-symbols.c: Include compile-c.h.
4618 (generate_c_for_variable_locations): Update comment.
4619 * compile/compile-c-types.c: Include compile-c.h.
4620 * compile/compile-c.h: New file -- moved C language declarations
4621 from other files here.
4622 * compile/compile-internal.h: Do not include hashtab.h or
4623 common/enum-flags.h.
4624 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
4625 (gcc_convert_symbol, gcc_symbol_address)
4626 (generate_c_for_variable_locations, c_get_mode_for_size)
4627 (c_get_range_decl_name): Definitions moved to compile-c.h.
4628 * compile/compile-loc2c.c: Include compile-c.h.
4629
4630 2018-08-10 Keith Seitz <keiths@redhat.com>
4631
4632 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
4633 (c_symbol_substitution_name): ... this.
4634 Update all callers.
4635
4636 2018-08-10 Keith Seitz <keiths@redhat.com>
4637
4638 * compile/compile-c-support.c (c_compute_program): Use
4639 unique_xmalloc_ptr to eliminate cleanup.
4640 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
4641 Return a unique_xmalloc_ptr and eliminate cleanup.
4642 * compile/compile-internal.h (generate_c_for_variable_locations):
4643 Return unique_xmalloc_ptr and update description.
4644
4645 2018-08-10 Alan Hayward <alan.hayward@arm.com>
4646
4647 * corelow.c (core_target::get_core_register_section): Rename
4648 min_size to section_min_size.
4649
4650 2018-08-09 Jim Wilson <jimw@sifive.com>
4651
4652 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
4653 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
4654 * NEWS: Mention new GNU/Linux RISC-V target.
4655 * configure.host: Add riscv*-*-linux*.
4656 * configure.nat: Add riscv*.
4657 * configure.tgt: Add riscv*-*-linux*.
4658 * riscv-linux-nat.c: New file.
4659 * riscv-linux-tdep.c: New file.
4660
4661 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
4662
4663 * infrun.c (resume): Make static, add forward declaration.
4664 (proceed): Update header comment.
4665 * infrun.h (resume): Delete declaration.
4666
4667 2018-08-09 Tom Tromey <tom@tromey.com>
4668
4669 * riscv-tdep.h: Minor formatting fixes.
4670
4671 2018-08-09 Simon Marchi <simon.marchi@ericsson.com>
4672
4673 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
4674 * dwarf-index-cache.c (create_dir_and_check): Likewise.
4675 (test_mkdir_recursive): Likewise.
4676 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
4677
4678 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
4679
4680 * valarith.c (value_subscripted_rvalue): If an array is not in
4681 memory, and we don't know the upper bound, then we can't know that
4682 the requested element exists or not.
4683
4684 2018-08-08 Simon Marchi <simon.marchi@ericsson.com>
4685
4686 * target.c (str_comma_list_concat_elem): Fix typo in comment.
4687 (target_options_to_string): Add comment.
4688
4689 2018-08-08 Tom Tromey <tom@tromey.com>
4690
4691 * unittests/scoped_mmap-selftests.c: Check result of "write".
4692
4693 2018-08-08 Jim Wilson <jimw@sifive.com>
4694
4695 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
4696 (decode_register_index_short): New.
4697 (decode_j_type_insn, decode_cj_type_insn): New.
4698 (decode_b_type_insn, decode_cb_type_insn): New.
4699 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
4700 local xlen. Check xlen when decoding ambiguous compressed insns. In
4701 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
4702 is_c_sw_insn instead of is_sw_insn.
4703 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
4704 (riscv_software_single_step): New.
4705 * riscv-tdep.h (riscv_software_single_step): Declare.
4706
4707 * riscv-tdep.c (riscv_isa_xlen): Drop static.
4708 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
4709
4710 2018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
4711
4712 PR gdb/18050:
4713 * target.c (dispose_inferior): Don't dispose of inferiors that are
4714 already killed.
4715
4716 2018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
4717
4718 * remote.c (remote_target::download_tracepoint): Change char* to
4719 const char*.
4720
4721 2018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
4722
4723 * target.h (target_options_to_string): Return an std::string.
4724 * target.c (str_comma_list_concat_elem): Return void, use
4725 std::string.
4726 (do_option): Likewise.
4727 (target_options_to_string): Return an std::string.
4728 * linux-nat.c (linux_nat_target::wait): Adjust.
4729 * target-debug.h (target_debug_print_options): Adjust.
4730
4731 2018-08-07 Tom Tromey <tom@tromey.com>
4732
4733 * Makefile.in (CPPFLAGS): New variable.
4734 (INTERNAL_CPPFLAGS): Use it.
4735
4736 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
4737
4738 * NEWS: Mention the index cache.
4739
4740 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
4741
4742 * common/pathstuff.h (get_standard_cache_dir): New.
4743 * common/pathstuff.c (get_standard_cache_dir): New.
4744 * build-id.h (build_id_to_string): New.
4745 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
4746 DEBUG_STR_SUFFIX): Move to here.
4747 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
4748 DEBUG_STR_SUFFIX): Move from there.
4749 (write_psymtabs_to_index): Make non-static, add basename
4750 parameter. Write to temporary files, rename when done.
4751 (save_gdb_index_command): Adjust call to
4752 write_psymtabs_to_index.
4753 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
4754 field.
4755 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
4756 (get_gdb_index_contents_from_cache): New.
4757 (get_gdb_index_contents_from_cache_dwz): New.
4758 (dwarf2_initialize_objfile): Read index from cache.
4759 (dwarf2_build_psymtabs): Save to index.
4760 * dwarf-index-cache.h: New file.
4761 * dwarf-index-cache.c: New file.
4762 * dwarf-index-write.h: New file.
4763
4764 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
4765
4766 * gnulib/aclocal.m4: Re-generate.
4767 * gnulib/config.in: Re-generate.
4768 * gnulib/configure: Re-generate.
4769 * gnulib/import/Makefile.am: Re-generate.
4770 * gnulib/import/Makefile.in: Re-generate.
4771 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
4772 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
4773 * gnulib/import/m4/mkdir.m4: New file.
4774 * gnulib/import/mkdir.c: New file.
4775 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
4776 module.
4777
4778 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
4779
4780 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
4781 * common/scoped_mmap.c: New file.
4782 * common/scoped_mmap.h (destroy): New method.
4783 (~scoped_mmap, reset): Use destroy.
4784 (scoped_mmap): New move constructor.
4785 (mmap_file): New declaration.
4786 * unittests/scoped_mmap-selftests.c (test_normal,
4787 test_invalid_filename, run_tests): New functions.
4788 (_initialize_scoped_mmap_selftests): Register selftest.
4789
4790 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
4791
4792 * dwarf2read.c (read_gdb_index_from_section): Rename to...
4793 (read_gdb_index_from_buffer): ... this. Remove section
4794 parameter, add buffer parameter.
4795 (get_gdb_index_contents_ftype,
4796 get_gdb_index_contents_dwz_ftype): New typedefs.
4797 (dwarf2_read_gdb_index): Add callback parameters to get the
4798 index contents.
4799 (get_gdb_index_contents_from_section): New.
4800 (dwarf2_initialize_objfile): Update call to
4801 dwarf2_read_gdb_index.
4802
4803 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
4804
4805 * common/filestuff.h (gdb_fopen_cloexec): New overload.
4806 (gdb_open_cloexec): Likewise.
4807 * nat/linux-osdata.c (command_from_pid): Use string_printf.
4808 (commandline_from_pid): Likewise.
4809 (linux_xfer_osdata_threads): Likewise.
4810 (linux_xfer_osdata_fds): Likewise.
4811 * ada-lang.c (is_package_name): Likewise.
4812 * auxv.c (procfs_xfer_auxv): Likewise.
4813 * breakpoint.c (print_one_breakpoint_location): Use
4814 uiout::field_fmt.
4815 (print_one_catch_solib): Use string_printf.
4816 * coff-pe-read.c (add_pe_exported_sym): Likewise.
4817 (add_pe_forwarded_sym): Likewise.
4818 * dwarf2read.c (create_type_unit_group): Likewise.
4819 (build_error_marker_type): Likewise.
4820 * infcall.c (get_function_name): Likewise.
4821 * valprint.c (print_converted_chars_to_obstack): Likewise.
4822 * xtensa-tdep.c (xtensa_register_type): Likewise.
4823
4824 2018-08-06 Simon Marchi <simon.marchi@ericsson.com>
4825
4826 * remote.c (remote_target::download_tracepoint): Fix format
4827 string errors.
4828
4829 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4830
4831 * tracefile.c: Include common/byte-vector.h.
4832 (trace_save): Change type of buf to gdb::byte_vector. Initialize
4833 with trace_regblock_size if needed. Update uses of buf.
4834
4835 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4836
4837 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
4838 std::vector<unsigned char>.
4839 * tracepoint.c (collection_list::collection_list): Remove
4840 m_regs_mask initializer from initializer list. Resize
4841 m_regs_mask using the largest remote register number.
4842 (collection_list::add_remote_register): Remove size check on
4843 m_regs_mask. Use at to access element.
4844 (collection_list::stringify): Change type of temp_buf to
4845 gdb::char_vector. Update uses of temp_buf. Resize if needed to
4846 stringify the register mask. Use pack_hex_byte for the register
4847 mask.
4848
4849 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4850
4851 * tracepoint.h (class collection_list) <add_register>: Remove.
4852 <add_remote_register, add_ax_registers, add_local_register>:
4853 Declare.
4854 <add_memrange>: Add scope parameter.
4855 * tracepoint.c (encode_actions_1): Likewise.
4856 (collection_list::add_register): Rename to ...
4857 (collection_list::add_remote_register): ... this. Update
4858 comment.
4859 (collection_list::add_ax_registers, add_local_register): New
4860 methods.
4861 (collection_list::add_memrange): Add scope parameter. Call
4862 add_local_register instead of add_register.
4863 (finalize_tracepoint_aexpr): New function.
4864 (collection_list::collect_symbol): Update calls to add_memrange.
4865 Call add_local_register instead of add_register. Call
4866 add_ax_registers. Call finalize_tracepoint_aexpr.
4867 (encode_actions_1): Get remote regnos for $reg action. Call
4868 add_remote_register, add_ax_registers, and add_local_register.
4869 Update call to add_memrange. Call finalize_tracepoint_aexpr.
4870 (validate_actionline): Call finalize_tracepoint_aexpr.
4871
4872 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4873
4874 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
4875 Replace array buf with gdb::char_vector buf, of size
4876 get_remote_packet_size (). Replace references to buf and
4877 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
4878 and xsnprintf with snprintf. Raise errors if the buffer is too
4879 small.
4880
4881 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4882
4883 * remote.c (remote_target::download_tracepoint): Fix the has_more
4884 predicate in the QTDP action list iteration.
4885
4886 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4887
4888 * remote.c (remote_target::download_tracepoint): Fix indentation
4889 in for block.
4890
4891 2018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4892
4893 * proc-api.c (_initialize_proc_api): Remove c, unused.
4894 * procfs.c (procfs_init_inferior): Remove signals, unused.
4895 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
4896 unused.
4897
4898 2018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
4899 Andrew Burgess <andrew.burgess@embecosm.com>
4900
4901 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
4902 'W_STOPCODE (0)' as this could be ambiguous.
4903
4904 2018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
4905
4906 * ser-tcp.c (net_open): Fix thinko when deciding whether to
4907 disable TCP's Nagle algorithm (use "ai_protocol" instead of
4908 "ai_socktype").
4909
4910 2018-08-02 Tom Tromey <tom@tromey.com>
4911
4912 PR symtab/16842.
4913 * dwarf2read.c (read_func_scope): Set symtab on template parameter
4914 symbols.
4915 (process_structure_scope): Likewise.
4916
4917 2018-08-02 Xavier Roirand <roirand@adacore.com>
4918
4919 PR gdb/22629:
4920 * darwin-nat.c (darwin_kill_inferior): Fix handling of
4921 kill inferior.
4922
4923 2018-08-02 Tom Tromey <tom@tromey.com>
4924
4925 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
4926 (darwin_suspend_inferior, darwin_resume_inferior)
4927 (darwin_decode_notify_message, darwin_resume_inferior_threads)
4928 (darwin_check_new_threads): Check result of get_darwin_inferior.
4929
4930 2018-07-31 Joel Brobecker <brobecker@adacore.com>
4931
4932 GDB 8.1.1 released.
4933
4934 2018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
4935
4936 * varobj.c (varobj_get_path_expr_parent): Report an error if
4937 parent is a dynamic varobj.
4938
4939 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
4940
4941 * gnulib/aclocal.m4: Re-generate.
4942 * gnulib/config.in: Re-generate.
4943 * gnulib/configure: Re-generate.
4944 * gnulib/import/Makefile.in: Re-generate.
4945 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
4946 * gnulib/import/m4/onceonly.m4: Re-generate.
4947
4948 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
4949
4950 * target-descriptions.c (struct xml_test_tdesc): New.
4951 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
4952 (record_xml_tdesc): Update.
4953 (maintenance_check_xml_descriptions): Update.
4954 * target-descriptions.h (record_xml_tdesc): Update comment.
4955
4956 2018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
4957
4958 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
4959 checking array bounds are defined.
4960
4961 2018-07-30 Tom Tromey <tom@tromey.com>
4962
4963 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
4964 irreflexivity violation.
4965
4966 2018-07-30 Tom Tromey <tom@tromey.com>
4967
4968 * cli/cli-decode.c (lookup_cmd): Remove lint code.
4969 * value.c (unpack_long): Remove lint code.
4970 * valops.c (value_ind): Remove lint code.
4971 * valarith.c (value_x_binop, value_x_unop, value_equal)
4972 (value_pos): Remove lint code.
4973
4974 2018-07-28 Tom de Vries <tdevries@suse.de>
4975
4976 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
4977 with undefined upper bound as <optimized out>.
4978
4979 2018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
4980
4981 * gcore.in: Rename variable "name" to "prefix". Expand
4982 "usage" text.
4983
4984 2018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
4985
4986 * windows-nat.c (windows_nat_target::create_inferior): Update to
4987 call close() in global namespace.
4988
4989 2018-07-26 Tom Tromey <tom@tromey.com>
4990
4991 * dwarf-index-write.c (add_address_entry): Don't add objfile
4992 offsets.
4993 * dbxread.c (find_stab_function): Rename from
4994 find_stab_function_addr. Return a bound_minimal_symbol.
4995 (read_dbx_symtab): Use raw_text_low, raw_text_high.
4996 Don't add objfile offsets.
4997 (end_psymtab): Use raw_text_low, raw_text_high,
4998 MSYMBOL_VALUE_RAW_ADDRESS.
4999 (read_ofile_symtab): Update.
5000 (process_one_symbol): Update.
5001 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
5002 offsets.
5003 (dw2_relocate): Remove.
5004 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
5005 searching addrmap.
5006 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
5007 Update.
5008 (process_psymtab_comp_unit_reader, add_partial_symbol)
5009 (add_partial_subprogram, dwarf2_ranges_read): Update.
5010 (load_partial_dies): Update.
5011 (add_address_entry): Don't add objfile offsets.
5012 (dwarf2_build_include_psymtabs): Update.
5013 (create_addrmap_from_aranges): Don't add objfile offsets.
5014 (dw2_find_pc_sect_compunit_symtab): Update.
5015 * mdebugread.c (parse_symbol): Don't add objfile offsets.
5016 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
5017 Update.
5018 (parse_partial_symbols): Don't add objfile offsets. Use
5019 raw_text_low, raw_text_high. Update.
5020 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
5021 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
5022 or call 'relocate' quick function. Clear psymbol_map.
5023 * psympriv.h (struct partial_symbol) <address>: Add section
5024 offset.
5025 <set_unrelocated_address>: Rename from set_address.
5026 <raw_text_low, raw_text_high>: New methods.
5027 <text_low, text_high>: Add objfile parameter.
5028 (add_psymbol_to_bcache): Add 'section' parameter. Call
5029 set_unrelocated_address.
5030 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
5031 (find_pc_psymbol): Update.
5032 (fixup_psymbol_section, relocate_psymtabs): Remove.
5033 (dump_psymtab, psym_functions): Update.
5034 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
5035 parameter.
5036 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
5037 (start_psymtab_common): Update.
5038 * symfile-debug.c (debug_qf_relocate): Remove.
5039 (debug_sym_quick_functions): Update.
5040 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
5041 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
5042 Update.
5043
5044 2018-07-26 Tom Tromey <tromey@redhat.com>
5045
5046 * dbxread.c (end_psymtab): Use text_high_valid and
5047 text_low_valid.
5048 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
5049 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
5050 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
5051 Update comment.
5052 <text_low_valid, text_high_valid>: New fields.
5053 <set_text_low, set_text_high>: Update.
5054 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
5055
5056 2018-07-26 Tom Tromey <tom@tromey.com>
5057
5058 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
5059 Update.
5060 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
5061 textlow and texthigh fields.
5062 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
5063 Update.
5064 * mdebugread.c (parse_lines, parse_partial_symbols)
5065 (psymtab_to_symtab_1): Update.
5066 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
5067 Rename fields. Update comment. Now private.
5068 <text_low, text_high, set_text_low, set_text_high>: New methods.
5069 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
5070 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
5071 (start_psymtab_common, maintenance_info_psymtabs)
5072 (maintenance_check_psymtabs): Update.
5073 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
5074 texthigh fields.
5075 (scan_xcoff_symtab): Update.
5076
5077 2018-07-26 Tom Tromey <tromey@redhat.com>
5078
5079 * psympriv.h (struct partial_symbol) <unrelocated_address,
5080 address, set_address>: New methods.
5081 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
5082 (fixup_psymbol_section, relocate_psymtabs): Update.
5083 (print_partial_symbols): Add 'objfile' parameter. Update.
5084 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
5085 Update.
5086
5087 2018-07-26 Tom Tromey <tom@tromey.com>
5088
5089 * dwarf-index-write.c (write_psymbols, debug_names::insert)
5090 (debug_names::write_psymbols): Update.
5091 * psympriv.h (struct partial_symbol): Derive from
5092 general_symbol_info.
5093 <obj_section>: New method.
5094 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
5095 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
5096 (find_pc_sect_psymbol, fixup_psymbol_section)
5097 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
5098 (print_partial_symbols, recursively_search_psymtabs)
5099 (compare_psymbols, psymbol_hash, psymbol_compare)
5100 (add_psymbol_to_bcache, maintenance_check_psymtabs)
5101 (psymbol_name_matches, psym_fill_psymbol_map): Update.
5102
5103 2018-07-26 Tom Tromey <tromey@redhat.com>
5104
5105 * dbxread.c (end_psymtab): Remove dead code.
5106
5107 2018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
5108
5109 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
5110 DWARF unwinders are disabled.
5111 * dwarf2-frame.c: Add dwarf2read.h include.
5112 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
5113 disabled.
5114 (dwarf2_frame_unwinders_enabled_p): Define.
5115 (show_dwarf_unwinders_enabled_p): New function.
5116 (_initialize_dwarf2_frame): Register switch to control DWARF
5117 unwinder use.
5118 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
5119 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
5120 (show_dwarf_cmdlist): Remove static keyword.
5121 * dwarf2read.h (set_dwarf_cmdlist): Declare.
5122 (show_dwarf_cmdlist): Declare.
5123 * NEWS: Document new feature.
5124
5125 2018-07-26 Tom de Vries <tdevries@suse.de>
5126
5127 PR breakpoints/23366
5128 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
5129
5130 2018-07-26 Tom de Vries <tdevries@suse.de>
5131
5132 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
5133 DW_AT_count can't be translated to a dynamic prop.
5134
5135 2018-07-25 Tom de Vries <tdevries@suse.de>
5136
5137 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
5138 try/catch.
5139
5140 2018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
5141
5142 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
5143
5144 2018-07-25 Joel Brobecker <brobecker@adacore.com>
5145
5146 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
5147
5148 2018-07-24 Keith Seitz <keiths@redhat.comt
5149
5150 PR symtab/23010
5151 * dwarf2read.c (dw2_add_symbol_to_list): New function.
5152 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
5153 instead of add_symbol_to_list.
5154 (read_file_scope): Call prepare_one_comp_unit before reading
5155 any other DIEs.
5156
5157 2018-07-24 Simon Marchi <simon.marchi@ericsson.com>
5158
5159 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
5160
5161 2018-07-24 Tom Tromey <tom@tromey.com>
5162
5163 * utils.c (malloc, realloc, free): Don't declare.
5164 * configure, config.in: Rebuild.
5165 * configure.ac: Don't check for declarations of free, malloc, or
5166 realloc.
5167
5168 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5169
5170 * aarch64-linux-nat.c
5171 (aarch64_linux_nat_target::stopped_data_address): Remove unused
5172 variable.
5173 * arm-linux-nat.c (fetch_regs): Likewise.
5174 (store_regs): Likewise.
5175 (fetch_vfp_regs): Likewise.
5176 (store_vfp_regs): Likewise.
5177 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
5178 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
5179 (arm_linux_nat_target::insert_watchpoint): Likewise.
5180 (arm_linux_nat_target::remove_watchpoint): Likewise.
5181 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
5182 Likewise.
5183 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
5184 Likewise.
5185 * ppc-linux-nat.c (fetch_register): Likewise.
5186 (fetch_all_gp_regs): Likewise.
5187 (fetch_ppc_registers): Likewise.
5188 (store_all_gp_regs): Likewise.
5189 (store_ppc_registers): Likewise.
5190 (hwdebug_insert_point): Likewise.
5191 (can_use_watchpoint_cond_accel): Likewise.
5192 * remote-sim.c (gdb_os_write_stdout): Likewise.
5193
5194 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5195 Tom Tromey <tom@tromey.com>
5196
5197 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
5198 test for it.
5199 * configure: Rebuild.
5200
5201 2018-07-22 Tom Tromey <tom@tromey.com>
5202
5203 * regformats/regdat.sh: Define xmltarget_${name} inside
5204 #ifndef IN_PROCESS_AGENT.
5205
5206 2018-07-22 Tom Tromey <tom@tromey.com>
5207
5208 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
5209
5210 2018-07-22 Tom Tromey <tom@tromey.com>
5211
5212 * symfile.c (reread_symbols): Notify iter, not objfile.
5213
5214 2018-07-22 Tom Tromey <tom@tromey.com>
5215
5216 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
5217 Use arch_ops.
5218 (ravenscar_thread_target::prepare_to_store): Likewise.
5219
5220 2018-07-22 Tom Tromey <tom@tromey.com>
5221
5222 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
5223 unused variable. Call value_fetch_lazy when needed.
5224 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
5225 Remove unused variable. Call value_fetch_lazy when needed.
5226
5227 2018-07-22 Tom Tromey <tom@tromey.com>
5228
5229 * m32c-tdep.c (mark_dma): Return void.
5230 (make_regs): Remove unused declarations.
5231
5232 2018-07-22 Tom Tromey <tom@tromey.com>
5233
5234 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
5235 cmdscm_get_valid_command_smob_arg_unsafe for effect.
5236 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
5237 bkscm_get_valid_block_smob_arg_unsafe for effect.
5238
5239 2018-07-22 Tom Tromey <tom@tromey.com>
5240
5241 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
5242 value_type.
5243
5244 2018-07-22 Tom Tromey <tom@tromey.com>
5245
5246 * windows-nat.c (saved_context): Conditionally define.
5247 * remote.c (remote_target::remote_btrace_maybe_reopen):
5248 Conditionally declare "warned".
5249 * inflow.c (sigquit_ours): Conditionally define.
5250 (new_tty): Move "tty" declaration inside #if.
5251 * guile/guile.c (guile_datadir): Conditionally define.
5252 * charset.c (set_be_le_names): Move some declarations inside #if.
5253 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
5254 #if.
5255 (parse_xml_btrace_conf): Likewise.
5256
5257 2018-07-22 Tom Tromey <tom@tromey.com>
5258
5259 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
5260
5261 2018-07-22 Tom Tromey <tom@tromey.com>
5262
5263 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
5264 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
5265 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
5266 * buildsym-legacy.c (get_macro_table): Remove unused variable.
5267 * stack.c (frame_apply_level_command): Remove unused variable.
5268 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
5269 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
5270 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
5271 unused variable.
5272 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
5273 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
5274 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
5275 variable.
5276 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
5277 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
5278 variable.
5279 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
5280 Remove unused variable.
5281 * cli/cli-script.c (recurse_read_control_structure): Remove unused
5282 variable.
5283 * common/tdesc.c (print_xml_feature::visit): Remove unused
5284 variable.
5285 * compile/compile-object-load.c (store_regs): Remove unused
5286 variables.
5287 * complaints.c (clear_complaints): Remove unused variable.
5288 * corelow.c (core_target_open): Remove unused variable.
5289 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
5290 variable.
5291 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
5292 variable.
5293 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
5294 variable.
5295 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
5296 variable.
5297 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
5298 variable.
5299 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
5300 variable.
5301 * ia64-tdep.c (examine_prologue): Remove unused variable.
5302 * infcall.c (run_inferior_call): Remove unused variable.
5303 * inferior.c (exit_inferior): Remove unused variable.
5304 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
5305 * linespec.c (decode_line_2): Remove unused variable.
5306 * linux-nat.c (super_close): Remove.
5307 * linux-tdep.c (linux_info_proc): Remove unused variable.
5308 * mi/mi-main.c (mi_execute_command): Remove unused variable.
5309 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
5310 Remove unused variable.
5311 * parse.c (find_minsym_type_and_address): Remove unused variable.
5312 * printcmd.c (info_symbol_command, printf_floating): Remove unused
5313 variable.
5314 * python/py-breakpoint.c (bppy_set_commands): Remove unused
5315 variable.
5316 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
5317 variables.
5318 * record-btrace.c (record_btrace_target::store_registers): Remove
5319 unused variable.
5320 (cmd_show_record_btrace_cpu): Remove unused variable.
5321 * riscv-tdep.c (riscv_register_reggroup_p)
5322 (riscv_push_dummy_call, riscv_return_value): Remove unused
5323 variable.
5324 * rust-exp.y (literal): Remove unused variable.
5325 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
5326 unused variable.
5327 <STRUCTOP_ANONYMOUS>: Likewise.
5328 * s390-linux-tdep.c (s390_linux_init_abi_31)
5329 (s390_linux_init_abi_64): Remove unused variable.
5330 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
5331 (file_select_thread, net_windows_open, _initialize_ser_windows):
5332 Remove unused variables.
5333 * symtab.c (find_pc_sect_line): Remove unused variable.
5334 * target-memory.c (compute_garbled_blocks): Remove unused
5335 variable.
5336 (target_write_memory_blocks): Remove unused variable.
5337 * target.c (target_stack::unpush): Remove unused variables.
5338 * tracepoint.c (start_tracing, all_tracepoint_actions)
5339 (merge_uploaded_trace_state_variables)
5340 (print_one_static_tracepoint_marker): Remove unused variable.
5341 * unittests/basic_string_view/element_access/char/1.cc (test01):
5342 Remove unused variable.
5343 * windows-nat.c (windows_continue, windows_add_all_dlls)
5344 (do_initial_windows_stuff, windows_nat_target::create_inferior):
5345 Remove unused variables.
5346
5347 2018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
5348
5349 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
5350 attr_profile in HAVE_ELF.
5351 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
5352 HAVE_ELF.
5353
5354 2018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
5355
5356 * frame.c (frame_register_unwind): Change parameter name.
5357 (frame_unwind_register): Likewise.
5358 (frame_unwind_register_value): Likewise.
5359 (frame_unwind_register_signed): Likewise.
5360 (frame_unwind_register_unsigned): Likewise.
5361 * frame.h (frame_register_unwind): Likewise.
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_unwind_arch): Likewise.
5367
5368 2018-07-20 Maciej W. Rozycki <macro@mips.com>
5369
5370 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
5371 ISA maintenance.
5372
5373 2018-07-20 Maciej W. Rozycki <macro@mips.com>
5374
5375 * mips-linux-nat.c (mips_linux_nat_target::read_description):
5376 Call `get_ptrace_pid' rather than extracting the ptrace PID by
5377 hand.
5378
5379 2018-07-20 Keith Seitz <keiths@redhat.com>
5380
5381 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
5382 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
5383 m_compunit_symtab, m_language>: Add "m_" prefix.
5384 Update all uses.
5385 * buildsym.c: Update all uses.
5386
5387 2018-07-20 Tom Tromey <tom@tromey.com>
5388
5389 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
5390 * buildsym.h (record_line_ftype): Remove typedef.
5391
5392 2018-07-20 Tom Tromey <tom@tromey.com>
5393
5394 * buildsym-legacy.h (augment_type_symtab): Don't declare.
5395 (end_expandable_symtab): Likewise.
5396 (end_symtab_get_static_block): Likewise.
5397 (end_symtab_from_static_block): Likewise.
5398 * buildsym-legacy.c (augment_type_symtab): Remove.
5399 (end_expandable_symtab): Remove.
5400 (end_symtab_get_static_block): Remove.
5401 (end_symtab_from_static_block): Remove.
5402
5403 2018-07-20 Tom Tromey <tom@tromey.com>
5404
5405 * dwarf2read.c: Include buildsym.h.
5406 (struct dwarf2_cu) <builder>: New method.
5407 (fixup_go_packaging): Update.
5408 (process_full_comp_unit, process_full_type_unit): Update. Don't
5409 use scoped_free_pendings.
5410 (using_directives): Add "cu" parameter, remove "language".
5411 (read_import_statement, setup_type_unit_groups, )
5412 (read_func_scope, read_lexical_block_scope)
5413 (dwarf2_record_block_ranges, read_namespace): Update.
5414 (lnp_state_machine::lnp_state_machine): Add cu parameter.
5415 (lnp_state_machine::handle_end_sequence): Update.
5416 (class lnp_state_machine) <m_cu>: New member.
5417 <m_record_line_callback>: Remove.
5418 <m_currently_recording_lines>: New member.
5419 (lnp_state_machine::handle_set_file): Update.
5420 (noop_record_line): Remove.
5421 (dwarf_record_line_p): Add cu parameter.
5422 (dwarf_record_line_1, dwarf_finish_line): Likewise.
5423 (lnp_state_machine::record_line)
5424 (lnp_state_machine::lnp_state_machine)
5425 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
5426 (dwarf_decode_lines): Update.
5427 (dwarf2_start_subfile): Add cu parameter.
5428 (dwarf2_start_symtab, new_symbol): Update.
5429 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
5430 Remove dwarf2_per_objfile parameter.
5431 (dwarf_decode_macros): Update.
5432
5433 2018-07-20 Tom Tromey <tom@tromey.com>
5434
5435 * stabsread.c (define_symbol): Update.
5436 * buildsym-legacy.h (get_buildsym_compunit): Declare.
5437 * dwarf2read.c (new_symbol): Update.
5438 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
5439 * cp-namespace.c: Include buildsym.h.
5440 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
5441 * buildsym-legacy.c (get_buildsym_compunit): New function.
5442
5443 2018-07-20 Tom Tromey <tom@tromey.com>
5444
5445 * xcoffread.c: Include buildsym-legacy.h.
5446 * windows-nat.c: Include buildsym-legacy.h.
5447 * stabsread.c: Include buildsym-legacy.h.
5448 * mdebugread.c: Include buildsym-legacy.h.
5449 * buildsym-legacy.h: New file.
5450 * buildsym-legacy.c: New file, from buildsym.c.
5451 * go32-nat.c: Include buildsym-legacy.h.
5452 * dwarf2read.c: Include buildsym-legacy.h.
5453 * dbxread.c: Include buildsym-legacy.h.
5454 * cp-namespace.c: Include buildsym-legacy.h.
5455 * coffread.c: Include buildsym-legacy.h.
5456 * buildsym.h: Move some contents to buildsym-legacy.h.
5457 * buildsym.c: Include buildsym-legacy.h. Move many functions to
5458 buildsym-legacy.c.
5459 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
5460
5461 2018-07-20 Tom Tromey <tom@tromey.com>
5462
5463 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
5464 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
5465 (buildsym_compunit::buildsym_compunit)
5466 (buildsym_compunit::~buildsym_compunit)
5467 (buildsym_compunit::get_macro_table): Define.
5468
5469 2018-07-20 Tom Tromey <tom@tromey.com>
5470
5471 * buildsym.c (reset_symtab_globals): Remove.
5472 (buildsym_compunit::end_symtab_from_static_block): Update.
5473 (buildsym_compunit::augment_type_symtab): Update.
5474 (end_symtab_from_static_block): Call free_buildsym_compunit.
5475 (augment_type_symtab, end_symtab, end_expandable_symtab):
5476 Likewise.
5477
5478 2018-07-20 Tom Tromey <tom@tromey.com>
5479
5480 * arch-utils.c: Do not include buildsym.h.
5481 * mipsread.c: Do not include buildsym.h.
5482 * machoread.c: Do not include buildsym.h.
5483 * elfread.c: Do not include buildsym.h.
5484
5485 2018-07-20 Tom Tromey <tom@tromey.com>
5486
5487 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
5488 initialization.
5489 (buildsym_compunit): Add new constructor.
5490 (struct buildsym_compunit) <get_last_source_file, finish_block,
5491 record_block_range, start_subfile, patch_subfile_names,
5492 push_subfile, pop_subfile, record_line, get_compunit_symtab,
5493 set_last_source_start_addr, get_last_source_start_addr,
5494 get_local_using_directives, set_local_using_directives,
5495 get_global_using_directives, outermost_context_p,
5496 get_current_context_stack, get_context_stack_depth,
5497 get_current_subfile, get_local_symbols, get_file_symbols,
5498 get_global_symbols, record_debugformat, record_producer,
5499 push_context, pop_context, end_symtab_get_static_block,
5500 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
5501 New public methods.
5502 <record_pending_block, finish_block_internal, make_blockvector,
5503 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
5504 private methods.
5505 Update all users.
5506
5507 2018-05-22 Tom Tromey <tom@tromey.com>
5508
5509 * buildsym.c (record_pending_block): Move earlier. Remove objfile
5510 parameter.
5511 (finish_block_internal): Update.
5512
5513 2018-07-20 Tom Tromey <tom@tromey.com>
5514
5515 * buildsym.c (record_pending_block): Move earlier. Remove objfile
5516 parameter.
5517 (finish_block_internal): Update.
5518
5519 2018-07-20 Tom Tromey <tom@tromey.com>
5520
5521 * buildsym.h (EXTERN): Don't define or undef.
5522 * buildsym.c (EXTERN): Don't define.
5523
5524 2018-07-20 Tom Tromey <tom@tromey.com>
5525
5526 * buildsym.c: Remove TODO comment.
5527
5528 2018-07-20 Tom Tromey <tom@tromey.com>
5529
5530 * coffread.c (coff_symtab_read): Update.
5531 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
5532 (xcoff_new_init): Update.
5533 * mipsread.c (mipscoff_new_init): Update.
5534 * mdebugread.c (mdebug_build_psymtabs): Update.
5535 * elfread.c (elf_new_init): Update.
5536 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
5537 Update.
5538 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
5539 (coffstab_build_psymtabs, elfstab_build_psymtabs)
5540 (stabsect_build_psymtabs): Update.
5541 * buildsym.h (buildsym_init): Don't declare.
5542 * buildsym.c: Update comment.
5543 (prepare_for_building): Remove.
5544 (start_symtab, restart_symtab): Update.
5545 (reset_symtab_globals): Update comment.
5546 (buildsym_init): Remove.
5547
5548 2018-07-20 Tom Tromey <tom@tromey.com>
5549
5550 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
5551 * stabsread.c (patch_block_stabs, define_symbol, read_type)
5552 (read_enum_type, common_block_start, common_block_end)
5553 (cleanup_undefined_types_1, finish_global_stabs): Update.
5554 * mdebugread.c (psymtab_to_symtab_1): Update.
5555 * dwarf2read.c (fixup_go_packaging, read_func_scope)
5556 (read_lexical_block_scope, new_symbol): Update.
5557 * dbxread.c (process_one_symbol): Update.
5558 * coffread.c (coff_symtab_read, process_coff_symbol)
5559 (coff_read_enum_type): Update.
5560 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
5561 declare.
5562 (get_local_symbols, get_file_symbols, get_global_symbols): New
5563 functions.
5564 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
5565 m_global_symbols.
5566 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
5567 (~scoped_free_pendings): Update.
5568 (finish_block, prepare_for_building, reset_symtab_globals)
5569 (end_symtab_get_static_block, end_symtab_with_blockvector)
5570 (augment_type_symtab, push_context): Update.
5571 (get_local_symbols, get_file_symbols, get_global_symbols): New
5572 functions.
5573 (buildsym_init): Update.
5574
5575 2018-07-20 Tom Tromey <tom@tromey.com>
5576
5577 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
5578 (process_full_type_unit): Likewise.
5579 (dwarf2_start_symtab): Set list_in_scope.
5580
5581 2018-07-20 Tom Tromey <tom@tromey.com>
5582
5583 * dwarf2read.c (process_psymtab_comp_unit_reader)
5584 (build_type_psymtabs_reader): Do not set list_in_scope.
5585
5586 2018-07-20 Tom Tromey <tom@tromey.com>
5587
5588 * buildsym.c (free_pendings): Remove.
5589 (add_symbol_to_list, scoped_free_pendings)
5590 (finish_block_internal, buildsym_init): Update.
5591
5592 2018-07-20 Tom Tromey <tom@tromey.com>
5593
5594 * xcoffread.c (read_xcoff_symtab): Update.
5595 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
5596 Update.
5597 * dbxread.c (process_one_symbol): Update.
5598 * coffread.c (coff_symtab_read): Update.
5599 * buildsym.h (finish_block): Update.
5600 * buildsym.c (finish_block): Remove "listhead" argument.
5601 (end_symtab_get_static_block): Update.
5602
5603 2018-07-20 Tom Tromey <tom@tromey.com>
5604
5605 * buildsym.h (class scoped_free_pendings): Remove constructor.
5606 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
5607 method.
5608 <m_pending_block_obstack, m_pending_blocks>: New members.
5609 (pending_block_obstack, pending_blocks): Remove.
5610 (scoped_free_pendings::scoped_free_pendings): Default.
5611 (~scoped_free_pendings): Update.
5612 (free_pending_blocks): Remove.
5613 (finish_block_internal, record_pending_block, make_blockvector)
5614 (end_symtab_get_static_block, augment_type_symtab, push_context)
5615 (buildsym_init): Update.
5616
5617 2018-07-20 Tom Tromey <tom@tromey.com>
5618
5619 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
5620 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
5621 members.
5622 (pending_addrmap, pending_addrmap_obstack)
5623 (pending_addrmap_interesting): Remove.
5624 (scoped_free_pendings, record_block_range, make_blockvector)
5625 (prepare_for_building, reset_symtab_globals, buildsym_init):
5626 Update.
5627
5628 2018-07-20 Tom Tromey <tom@tromey.com>
5629
5630 * xcoffread.c (process_linenos): Update.
5631 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
5632 * mdebugread.c (psymtab_to_symtab_1): Update.
5633 * dwarf2read.c (setup_type_unit_groups)
5634 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
5635 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
5636 * dbxread.c (process_one_symbol): Update.
5637 * coffread.c (coff_symtab_read, enter_linenos)
5638 (process_coff_symbol): Update.
5639 * buildsym.h (current_subfile): Don't declare.
5640 (get_current_subfile): Declare.
5641 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
5642 member.
5643 (start_subfile, free_buildsym_compunit, push_subfile)
5644 (prepare_for_building, start_symtab): Update.
5645 (get_current_subfile): New function.
5646
5647 2018-07-20 Tom Tromey <tom@tromey.com>
5648
5649 * coffread.c (coff_symtab_read): Update.
5650 * xcoffread.c (read_xcoff_symtab): Update.
5651 * dwarf2read.c (new_symbol): Update.
5652 (read_func_scope, read_lexical_block_scope): Update.
5653 * dbxread.c (process_one_symbol): Update.
5654 * buildsym.h (context_stack, context_stack_depth): Don't declare.
5655 (outermost_context_p): Remove macro.
5656 (outermost_context_p, get_current_context_stack)
5657 (get_context_stack_depth): Declare.
5658 (pop_context): Return struct context_stack.
5659 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
5660 member.
5661 (context_stack_size): Remove.
5662 (INITIAL_CONTEXT_STACK_SIZE): Remove.
5663 (prepare_for_building, end_symtab_get_static_block)
5664 (augment_type_symtab, push_context): Update.
5665 (pop_context): Return struct context_stack.
5666 (outermost_context_p, get_current_context_stack)
5667 (get_context_stack_depth): New functions.
5668 (buildsym_init): Update.
5669
5670 2018-07-20 Tom Tromey <tom@tromey.com>
5671
5672 * rust-exp.y: Now a pure parser. Update all rules.
5673 (%union): Move earlier.
5674 (current_parser, work_obstack): Remove globals.
5675 (rust_parser, ~rust_parser): Update.
5676 (class rust_parser) <copy_name, concat3, crate_name, super_name,
5677 lex_character, lex_number, lex_string, lex_identifier,
5678 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
5679 convert_name, convert_params_to_expression,
5680 convert_ast_to_expression, ast_basic_type, ast_operation,
5681 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
5682 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
5683 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
5684 ast_array_type, ast_slice_type, ast_reference_type,
5685 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
5686 (rust_parse): Update.
5687 (rustyyerror, rustyylex): Add parser parameter.
5688 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
5689 (rust_lex_stringish_test, rust_lex_test_sequence)
5690 (rust_lex_test_trailing_dot, rust_lex_test_completion)
5691 (rust_lex_test_push_back, rust_lex_tests): Update.
5692
5693 2018-07-19 Pedro Alves <palves@redhat.com>
5694
5695 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
5696 gdb::unique_xmalloc_ptr.
5697 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
5698 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
5699 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
5700 copy-initialization.
5701 * guile/scm-pretty-print.c (ppscm_print_children): Use
5702 gdb::unique_xmalloc_ptr instead of cleanups.
5703 (gdbscm_apply_val_pretty_printer): Remove cleanups.
5704 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
5705 gdb::unique_xmalloc_ptr.
5706 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
5707 Adjust to use gdb::unique_xmalloc_ptr.
5708 * guile/scm-utils.c (extract_arg): Adjust.
5709 * guile/scm-value.c (gdbscm_value_field): Adjust to use
5710 gdb::unique_xmalloc_ptr instead of a cleanup.
5711
5712 2018-07-19 Tom Tromey <tom@tromey.com>
5713
5714 * utils.c (do_value_free_to_mark)
5715 (make_cleanup_value_free_to_mark): Remove.
5716 * utils.h (make_cleanup_value_free_to_mark): Remove.
5717
5718 2018-07-19 Pedro Alves <palves@redhat.com>
5719
5720 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
5721 forwarding reference.
5722
5723 2018-07-18 Pedro Alves <palves@redhat.com>
5724
5725 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
5726 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
5727 cleanup.
5728
5729 2018-07-18 Pedro Alves <palves@redhat.com>
5730
5731 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
5732 exceptions.
5733 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
5734 (gdbscm_wrap): New.
5735 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
5736 directly instead of a cleanup.
5737 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
5738 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
5739 (vlscm_binop_gdbthrow): New, factored out from ...
5740 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
5741 (vlscm_rich_compare): Use gdbscm_wrap.
5742 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
5743 instead of a cleanup.
5744 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
5745 cleanup.
5746 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
5747 Use xfree directly instead of a cleanup.
5748 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
5749 Adjust to use gdbscm_wrap and scoped_value_mark.
5750 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
5751 (gdbscm_value_address, gdbscm_value_dereference)
5752 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
5753 scoped_value_mark.
5754 (gdbscm_value_dynamic_type): Use scoped_value_mark.
5755 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
5756 scoped_value_mark.
5757 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
5758 gdbscm_wrap and scoped_value_mark.
5759 (gdbscm_value_to_string): Use xfree directly instead of a
5760 cleanup. Move 'buffer' unique_ptr to TRY scope.
5761 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
5762 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
5763 scoped_value_mark.
5764 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
5765 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
5766 scoped_value_mark.
5767 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
5768 gdbscm_wrap.
5769
5770 2018-07-18 Tom de Vries <tdevries@suse.de>
5771
5772 * findvar.c (default_read_var_value): Also resolve dynamic type for
5773 LOC_OPTIMIZED_OUT vars.
5774
5775 2018-07-18 Maciej W. Rozycki <macro@mips.com>
5776
5777 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
5778 decoding.
5779
5780 2018-07-17 Tom Tromey <tom@tromey.com>
5781
5782 * guile/scm-param.c (pascm_set_func, pascm_show_func)
5783 (compute_enum_list, pascm_set_param_value_x)
5784 (gdbscm_parameter_value): Update.
5785 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
5786 (gdbscm_scm_to_host_string): Update.
5787 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
5788 Update.
5789 * guile/scm-cmd.c (cmdscm_add_completion): Update.
5790 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
5791 * guile/scm-string.c (gdbscm_scm_to_string): Return
5792 unique_xmalloc_ptr.
5793 (gdbscm_scm_to_host_string): Likewise.
5794
5795 2018-07-17 Tom Tromey <tom@tromey.com>
5796
5797 * guile/guile.c (gdbscm_eval_from_control_command): Update.
5798 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
5799 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
5800 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
5801 unique_xmalloc_ptr.
5802
5803 2018-07-17 Tom Tromey <tom@tromey.com>
5804
5805 * guile/scm-param.c (pascm_signal_setshow_error): Update.
5806 * guile/guile-internal.h (gdbscm_exception_message_to_string):
5807 Update.
5808 * guile/scm-cmd.c (cmdscm_function): Update.
5809 * guile/scm-pretty-print.c
5810 (ppscm_print_exception_unless_memory_error): Update.
5811 * guile/scm-exception.c (gdbscm_exception_message_to_string):
5812 Return unique_xmalloc_ptr.
5813
5814 2018-07-17 Tom Tromey <tom@tromey.com>
5815
5816 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
5817 Use string_printf.
5818
5819 2018-07-17 Jim Wilson <jimw@sifive.com>
5820
5821 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
5822 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
5823 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
5824 unecessary braces after EF_RISCV_RVC test. Delete call to
5825 set_gdbarch_decr_pc_after_break.
5826
5827 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
5828 RISCV_LAST_FP_REGNUM + 1.
5829 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
5830
5831 2018-07-17 Tom Tromey <tom@tromey.com>
5832
5833 * configure.ac: Remove --disable-gdbcli.
5834 * configure: Rebuild.
5835 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
5836 (SUBDIR_CLI_CFLAGS): Remove.
5837 (SFILES): Use SUBDIR_CLI_SRCS.
5838 (COMMON_OBS): Use SUBDIR_CLI_OBS.
5839
5840 2018-07-17 Tom Tromey <tom@tromey.com>
5841
5842 PR gdb/18624:
5843 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
5844
5845 2018-07-16 Jim Wilson <jimw@sifive.com>
5846
5847 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
5848
5849 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
5850
5851 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
5852 variable.
5853 (libunwind_frame_sniffer): Likewise.
5854 (libunwind_frame_prev_register): Likewise.
5855 (libunwind_sigtramp_frame_sniffer): Likewise.
5856 * ia64-tdep.c (ia64_access_reg): Likewise.
5857 (ia64_access_rse_reg): Likewise.
5858 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
5859 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
5860
5861 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
5862
5863 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
5864
5865 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
5866
5867 * remote-sim.c (gdbsim_target::close,
5868 gdbsim_target::mourn_inferior): Remove unused variables.
5869
5870 2018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
5871
5872 * ia64-tdep.c (ktab_buf): New global.
5873 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
5874 (get_kernel_table): Adjust.
5875
5876 2018-07-16 Tom Tromey <tom@tromey.com>
5877
5878 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
5879 * dwarf2read.c (using_directives, new_symbol): Use
5880 outermost_context_p.
5881 * dbxread.c (process_one_symbol): Use outermost_context_p.
5882 * coffread.c (coff_symtab_read): Use outermost_context_p.
5883
5884 2018-07-16 Tom Tromey <tom@tromey.com>
5885
5886 * dwarf2read.c (using_directives, read_func_scope)
5887 (read_lexical_block_scope): Update.
5888 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
5889 * buildsym.h (local_using_directives, global_using_directives):
5890 Don't declare.
5891 (get_local_using_directives, set_local_using_directives)
5892 (get_global_using_directives): Declare.
5893 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
5894 m_global_using_directives>: New members.
5895 (finish_block_internal, prepare_for_building)
5896 (reset_symtab_globals, end_symtab_get_static_block)
5897 (push_context): Update.
5898 (get_local_using_directives, set_local_using_directives)
5899 (get_global_using_directives): New functions.
5900 (buildsym_init): Update.
5901
5902 2018-07-16 Tom Tromey <tom@tromey.com>
5903
5904 * xcoffread.c (xcoff_initial_scan): Don't call
5905 free_pending_blocks.
5906 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
5907 * buildsym.h (class scoped_free_pendings): Add constructor.
5908 (free_pending_blocks): Don't declare.
5909 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
5910 (free_pending_blocks): Now static.
5911
5912 2018-07-16 Tom Tromey <tom@tromey.com>
5913
5914 * buildsym.h (push_subfile, pop_subfile): Update declarations.
5915 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
5916 member.
5917 (struct subfile_stack): Remove.
5918 (subfile_stack): Remove.
5919 (push_subfile, pop_subfile, buildsym_init): Update.
5920
5921 2018-07-16 Tom Tromey <tom@tromey.com>
5922
5923 * buildsym.c (push_subfile): Use gdb_assert.
5924 (pop_subfile): Use gdb_assert.
5925
5926 2018-07-16 Tom Tromey <tom@tromey.com>
5927
5928 * buildsym.h (merge_symbol_lists): Remove.
5929 * buildsym.c (merge_symbol_lists): Remove.
5930
5931 2018-07-16 Tom Tromey <tom@tromey.com>
5932
5933 * stabsread.c (scan_file_globals): Update comment.
5934 * stabsread.h (scan_file_globals): Move from buildsym.h.
5935 * buildsym.h (scan_file_globals): Move to stabsread.h.
5936
5937 2018-07-16 Tom Tromey <tom@tromey.com>
5938
5939 * xcoffread.c (xcoff_new_init): Update.
5940 * mipsread.c (mipscoff_new_init): Update.
5941 * mdebugread.c (mdebug_build_psymtabs): Update.
5942 * elfread.c (elf_new_init): Update.
5943 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
5944 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
5945 * buildsym.h (buildsym_new_init): Don't declare.
5946 * buildsym.c (buildsym_new_init): Remove.
5947
5948 2018-07-16 Tom Tromey <tom@tromey.com>
5949
5950 * stabsread.h (within_function): Move from buildsym.h.
5951 * stabsread.c (start_stabs): Clear within_function.
5952 * coffread.c (coff_start_symtab): Clear within_function.
5953 * buildsym.h (within_function): Move to stabsread.h.
5954 * buildsym.c (prepare_for_building): Update.
5955
5956 2018-07-16 Tom Tromey <tom@tromey.com>
5957
5958 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
5959 * dwarf2read.c (dwarf2_start_symtab): Don't set
5960 processing_gcc_compilation.
5961 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
5962
5963 2018-07-16 Tom Tromey <tom@tromey.com>
5964
5965 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
5966 (next_symbol_text_func): Move from buildsym.h.
5967 * stabsread.c (hashname): Move from buildsym.c.
5968 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
5969 (next_symbol_text_func, hashname): Move to stabsread.h.
5970 * buildsym.c: Don't include bcache.h
5971 (hashname): Move to stasbread.c.
5972
5973 2018-07-16 Tom Tromey <tom@tromey.com>
5974
5975 * buildsym.h (context_stack_size): Don't declare.
5976 * buildsym.c (context_stack_size): New global.
5977
5978 2018-07-16 Tom Tromey <tom@tromey.com>
5979
5980 * dbxread.c (processing_acc_compilation): New global.
5981 * buildsym.h (processing_acc_compilation): Don't declare.
5982
5983 2018-07-16 Tom Tromey <tom@tromey.com>
5984
5985 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
5986 * dbxread.c (read_ofile_symtab): Update.
5987 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
5988 * buildsym.h (last_source_start_addr): Remove.
5989 (set_last_source_start_addr, get_last_source_start_addr):
5990 Declare.
5991 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
5992 parameter.
5993 (struct buildsym_compunit) <m_last_source_start_addr>: New
5994 member.
5995 (prepare_for_building): Remove start_addr parameter.
5996 (start_symtab, restart_symtab, end_symtab_get_static_block)
5997 (end_symtab_with_blockvector): Update.
5998 (set_last_source_start_addr, get_last_source_start_addr): New
5999 functions.
6000
6001 2018-07-16 Tom Tromey <tom@tromey.com>
6002
6003 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
6004 member.
6005 (have_line_numbers): Remove.
6006 (record_line, prepare_for_building, end_symtab_get_static_block)
6007 (augment_type_symtab): Update.
6008
6009 2018-07-16 Tom Tromey <tom@tromey.com>
6010
6011 * buildsym.c (~buildsym_compunit): Free the macro table.
6012 (struct buildsym_compunit) <get_macro_table, release_macros>: New
6013 methods.
6014 <m_pending_macros>: New member.
6015 (pending_macros): Remove.
6016 (~scoped_free_pendings, get_macro_table, prepare_for_building)
6017 (reset_symtab_globals, end_symtab_get_static_block)
6018 (end_symtab_with_blockvector, augment_type_symtab)
6019 (buildsym_init): Update.
6020
6021 2018-07-16 Tom Tromey <tom@tromey.com>
6022
6023 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
6024 parameter.
6025 (buildsym_compunit::set_last_source_file): New method.
6026 <m_last_source_file>: New member.
6027 (prepare_for_building): Remove "name" parameter.
6028 (start_symtab, restart_symtab, reset_symtab_globals): Update.
6029 (last_source_file): Remove.
6030 (set_last_source_file, get_last_source_file): Update.
6031
6032 2018-07-16 Tom Tromey <tom@tromey.com>
6033
6034 * buildsym.c (prepare_for_building): Add assert.
6035
6036 2018-07-16 Tom Tromey <tom@tromey.com>
6037
6038 * buildsym.c (~buildsym_compunit): Update.
6039 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
6040 (start_subfile, patch_subfile_names)
6041 (end_symtab_with_blockvector): Update.
6042
6043 2018-07-16 Tom Tromey <tom@tromey.com>
6044
6045 * buildsym.c (struct buildsym_compunit): Add constructor,
6046 destructor, initializers.
6047 (start_buildsym_compunit): Remove.
6048 (free_buildsym_compunit): Use "delete".
6049 (start_symtab, restart_symtab): Use "new".
6050
6051 2018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
6052
6053 * symfile.c (set_objfile_default_section_offset): Remove struct
6054 keyword.
6055
6056 2018-07-14 Stafford Horne <shorne@gmail.com>
6057
6058 * (Responsible Maintainers): Add myself as or1k maintainer.
6059
6060 2018-07-13 Tom Tromey <tom@tromey.com>
6061
6062 * symfile.c (set_objfile_default_section_offset): Use extra braces
6063 around initializer.
6064
6065 2018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6066
6067 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
6068 non-branching basr.
6069
6070 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6071
6072 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6073 unittests/cli-utils-selftests.c
6074 * unittests/cli-utils-selftests.c: New file.
6075
6076 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6077
6078 * NEWS: Mention new commands. Mention change to 'thread apply'.
6079
6080 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6081
6082 * thread.c (thr_try_catch_cmd): New function.
6083 (thread_apply_all_command): Handle qcs flags.
6084 (thread_apply_command): Handle qcs flags.
6085 (taas_command): New function.
6086 (tfaas_command): New function.
6087 (_initialize_thread): Update to setup the new commands 'taas
6088 and 'tfaas'. Change doc string for 'thread apply'.
6089
6090 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6091
6092 * stack.c: (trailing_outermost_frame): New function, mostly
6093 extracted from backtrace_command_1.
6094 (leading_innermost_frame): New function.
6095 (backtrace_command_1): Update to call trailing_outermost_frame.
6096 (frame_apply_command_count): New function.
6097 (frame_apply_level_command): New function.
6098 (frame_apply_all_command): New function.
6099 (frame_apply_command): New function.
6100 (faas_command): New function.
6101 (frame_cmd_list): New variable.
6102 (_initialize_stack): Update to setup the new commands 'frame apply'
6103 and 'faas'.
6104
6105 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6106
6107 * cli-utils.c (number_or_range_parser::get_number): Only handle
6108 numbers or convenience var as numbers.
6109 (parse_flags): New function.
6110 (parse_flags_qcs): New function.
6111 (number_or_range_parser::finished): Ensure parsing end is detected
6112 before end of string.
6113 * cli-utils.h (parse_flags): New function.
6114 (parse_flags_qcs): New function.
6115 (number_or_range_parser): Remove m_finished bool.
6116 (number_or_range_parser::skip_range): Set m_in_range to false.
6117
6118 2018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
6119
6120 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
6121 on Windows.
6122
6123 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
6124 Jan Kratochvil <jan.kratochvil@redhat.com>
6125 Paul Fertser <fercerpav@gmail.com>
6126 Tsutomu Seki <sekiriki@gmail.com>
6127 Pedro Alves <palves@redhat.com>
6128
6129 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6130 'unittests/parse-connection-spec-selftests.c'.
6131 (COMMON_SFILES): Add 'common/netstuff.c'.
6132 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
6133 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
6134 * common/netstuff.c: New file.
6135 * common/netstuff.h: New file.
6136 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
6137 (wait_for_connect): Update comment. New parameter
6138 'gdb::optional<int> sock' instead of 'struct serial *scb'.
6139 Use 'sock' directly instead of 'scb->fd'.
6140 (try_connect): New function, with code from 'net_open'.
6141 (net_open): Rewrite main loop to deal with multiple
6142 sockets/addresses. Handle IPv6-style hostnames; implement
6143 support for IPv6 connections.
6144 * unittests/parse-connection-spec-selftests.c: New file.
6145
6146 2018-07-11 Pedro Alves <palves@redhat.com>
6147
6148 PR gdb/23377
6149 * remote.c (remote_target::remote_detach_pid): Call
6150 set_current_process.
6151
6152 2018-07-11 Pedro Alves <palves@redhat.com>
6153
6154 * h8300-tdep.c (h8300_gdbarch_init): Remove
6155 set_gdbarch_ecoff_reg_to_regnum calls.
6156
6157 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
6158
6159 PR c++/23373
6160 * c-typeprint.c (c_type_print_base_struct_union): Don't print
6161 offsets/sizes for static members of a class/struct.
6162
6163 2018-07-11 Alan Hayward <alan.hayward@arm.com>
6164
6165 * target-descriptions.c (tdesc_register_bitsize): Rename.
6166 * target-descriptions.h (tdesc_register_bitsize): Likewise.
6167 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
6168 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
6169
6170 2018-07-10 Tom Tromey <tom@tromey.com>
6171
6172 * breakpoint.c (moribund_locations): Now static and a
6173 std::vector.
6174 (breakpoint_init_inferior, moribund_breakpoint_here_p)
6175 (build_bpstat_chain, update_global_location_list)
6176 (breakpoint_retire_moribund): Update.
6177 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
6178 VEC.
6179
6180 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6181
6182 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
6183 (riscv_register_reggroup_p): Use new function, remove unneeded
6184 parenthesis.
6185 (riscv_push_dummy_call): Extend assert to compare against xlen or
6186 flen based on register type.
6187
6188 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6189
6190 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
6191
6192 2018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6193
6194 * remote.c (show_hardware_watchpoint_limit): New function.
6195 (show_hardware_watchpoint_length_limit): New function.
6196 (show_hardware_breakpoint_limit): New function.
6197 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
6198 where appropriate, update help text.
6199
6200 2018-07-09 Tom Tromey <tom@tromey.com>
6201
6202 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
6203 (CLIBS): Don't mention NAT_CLIBS.
6204
6205 2018-07-09 Tom Tromey <tom@tromey.com>
6206
6207 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
6208 (LIBGDB_OBS, clean mostlyclean): Update.
6209 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
6210
6211 2018-07-09 Tom Tromey <tom@tromey.com>
6212
6213 * Makefile.in (%.c: %.y): Use ECHO_YACC.
6214 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
6215 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
6216
6217 2018-07-09 Tom Tromey <tom@tromey.com>
6218
6219 * Makefile.in (ALLDEPFILES): Remove exec.c.
6220 (COMMON_OBS): Remove exec.o.
6221 (COMMON_SFILES): Add exec.c.
6222
6223 2018-07-09 Tom Tromey <tom@tromey.com>
6224
6225 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
6226
6227 2018-07-09 Tom Tromey <tom@tromey.com>
6228
6229 * Makefile.in (clean mostlyclean): Remove stamp-version.
6230 (version.c): Depend on stamp-version.
6231 (stamp-version): New rule, from version.c rule.
6232
6233 2018-07-09 Tom Tromey <tom@tromey.com>
6234
6235 * Makefile.in (init.c): Depend on stamp-init.
6236 (stamp-init): New rule, from init.c rule.
6237 (clean mostlyclean): Remove stamp-init.
6238
6239 2018-07-09 Tom Tromey <tom@tromey.com>
6240
6241 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
6242 SUBDIR_GCC_COMPILE_SRCS.
6243
6244 2018-07-09 Tom Tromey <tom@tromey.com>
6245
6246 * Makefile.in (init.c): Remove some unused sed rules.
6247
6248 2018-07-09 Tom Tromey <tom@tromey.com>
6249
6250 * Makefile.in (TSOBS): Remove.
6251 (INIT_FILES): Update.
6252 (LIBGDB_OBS): Update.
6253 (COMMON_SFILES): Add inflow.c.
6254 (SFILES): Remove inflow.c.
6255
6256 2018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
6257
6258 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
6259
6260 2018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
6261
6262 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
6263 get_saveloc_name, is_signal_frame_name, step_name,
6264 init_remote_name, create_addr_space_name,
6265 destroy_addr_space_name, search_unwind_table_name,
6266 find_dyn_list_name): Constify.
6267
6268 2018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
6269
6270 * darwin-nat.c (darwin_pthread_kill): New function.
6271 (darwin_resume_thread): Use darwin_pthread_kill.
6272
6273 2018-07-05 Tom de Vries <tdevries@suse.de>
6274
6275 * macroexp.c (macro_buffer) <operator=>: New member function.
6276
6277 2018-07-04 Tom Tromey <tom@tromey.com>
6278
6279 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
6280
6281 2018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
6282
6283 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
6284 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
6285 * maint.c: Likewise.
6286 * top.c: Likewise.
6287
6288 2018-07-04 Joel Brobecker <brobecker@adacore.com>
6289
6290 * NEWS: Create a new section for the next release branch.
6291 Rename the section of the current branch, now that it has
6292 been cut.
6293
6294 2018-07-04 Joel Brobecker <brobecker@adacore.com>
6295
6296 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
6297 * version.in: Bump version to 8.2.50.DATE-git.
6298
6299 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
6300 Pedro Alves <palves@redhat.com>
6301
6302 * linux-nat.c (linux_init_ptrace): Rename to ...
6303 (linux_init_ptrace_procfs): ... this. Call
6304 linux_proc_init_warnings.
6305 (linux_nat_target::post_attach)
6306 (linux_nat_target::post_startup_inferior): Adjust.
6307 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
6308 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
6309
6310 2018-07-04 Tom de Vries <tdevries@suse.de>
6311
6312 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
6313 check ...
6314 (read_comp_unit_head): ... here.
6315
6316 2018-07-03 Tom Tromey <tom@tromey.com>
6317
6318 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
6319 (stop_tracing, tstatus_command)
6320 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
6321 (print_one_static_tracepoint_marker): Update.
6322 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
6323 std::vector.
6324 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
6325 VEC.
6326 (all_tracepoints, static_tracepoints_here): Return std::vector.
6327
6328 2018-07-03 Tom Tromey <tom@tromey.com>
6329
6330 * common/ptid.c (ptid_equal): Remove.
6331 * common/ptid.h (ptid_equal): Don't declare.
6332 * ada-tasks.c: Update.
6333 * breakpoint.c: Update.
6334 * common/agent.c: Update.
6335 * corelow.c: Update.
6336 * darwin-nat-info.c: Update.
6337 * darwin-nat.c: Update.
6338 * dcache.c: Update.
6339 * dtrace-probe.c: Update.
6340 * dummy-frame.c: Update.
6341 * fbsd-nat.c: Update.
6342 * frame.c: Update.
6343 * gdbthread.h: Update.
6344 * gnu-nat.c: Update.
6345 * go32-nat.c: Update.
6346 * inf-loop.c: Update.
6347 * inf-ptrace.c: Update.
6348 * infcall.c: Update.
6349 * infcmd.c: Update.
6350 * inflow.c: Update.
6351 * infrun.c: Update.
6352 * linux-fork.c: Update.
6353 * linux-nat.c: Update.
6354 * linux-thread-db.c: Update.
6355 * mi/mi-cmd-var.c: Update.
6356 * mi/mi-interp.c: Update.
6357 * mi/mi-main.c: Update.
6358 * nto-procfs.c: Update.
6359 * ppc-linux-tdep.c: Update.
6360 * procfs.c: Update.
6361 * python/py-inferior.c: Update.
6362 * python/py-record-btrace.c: Update.
6363 * python/py-record.c: Update.
6364 * ravenscar-thread.c: Update.
6365 * regcache.c: Update.
6366 * remote-sim.c: Update.
6367 * remote.c: Update.
6368 * sol-thread.c: Update.
6369 * solib.c: Update.
6370 * target.c: Update.
6371 * tui/tui-stack.c: Update.
6372 * varobj.c: Update.
6373 * windows-nat.c: Update.
6374 * windows-tdep.c: Update.
6375
6376 2018-07-03 Tom Tromey <tom@tromey.com>
6377
6378 * common/ptid.c (ptid_match): Remove.
6379 * common/ptid.h (ptid_match): Don't declare.
6380 * fbsd-nat.c: Update.
6381 * infcmd.c: Update.
6382 * infrun.c: Update.
6383 * linux-nat.c: Update.
6384 * record-btrace.c: Update.
6385 * regcache.c: Update.
6386 * remote.c: Update.
6387
6388 2018-07-03 Tom Tromey <tom@tromey.com>
6389
6390 * common/ptid.c (ptid_tid_p): Remove.
6391 * common/ptid.h (ptid_tid_p): Don't declare.
6392 * sol-thread.c: Update.
6393
6394 2018-07-03 Tom Tromey <tom@tromey.com>
6395
6396 * common/ptid.c (ptid_lwp_p): Remove.
6397 * common/ptid.h (ptid_lwp_p): Don't declare.
6398 * fbsd-nat.c: Update.
6399 * linux-nat.c: Update.
6400 * nat/linux-procfs.c: Update.
6401 * nat/x86-linux-dregs.c: Update.
6402 * sol-thread.c: Update.
6403
6404 2018-07-03 Tom Tromey <tom@tromey.com>
6405
6406 * common/ptid.c (ptid_is_pid): Remove.
6407 * common/ptid.h (ptid_is_pid): Don't declare.
6408 * infrun.c: Update.
6409 * linux-nat.c: Update.
6410 * mi/mi-interp.c: Update.
6411 * remote.c: Update.
6412 * thread.c: Update.
6413
6414 2018-07-03 Tom Tromey <tom@tromey.com>
6415
6416 * common/ptid.c (ptid_get_tid): Remove.
6417 * common/ptid.h (ptid_get_tid): Don't declare.
6418 * ada-tasks.c: Update.
6419 * aix-thread.c: Update.
6420 * bsd-uthread.c: Update.
6421 * darwin-nat.c: Update.
6422 * fbsd-nat.c: Update.
6423 * i386-darwin-nat.c: Update.
6424 * infrun.c: Update.
6425 * linux-tdep.c: Update.
6426 * nto-procfs.c: Update.
6427 * ppc-ravenscar-thread.c: Update.
6428 * python/py-infthread.c: Update.
6429 * ravenscar-thread.c: Update.
6430 * sol-thread.c: Update.
6431 * sparc-ravenscar-thread.c: Update.
6432 * windows-nat.c: Update.
6433
6434 2018-07-03 Tom Tromey <tom@tromey.com>
6435
6436 * common/ptid.c (ptid_get_lwp): Remove.
6437 * common/ptid.h (ptid_get_lwp): Don't declare.
6438 * aarch64-linux-nat.c: Update.
6439 * ada-tasks.c: Update.
6440 * aix-thread.c: Update.
6441 * amd64-linux-nat.c: Update.
6442 * arm-linux-nat.c: Update.
6443 * corelow.c: Update.
6444 * fbsd-nat.c: Update.
6445 * fbsd-tdep.c: Update.
6446 * gnu-nat.c: Update.
6447 * i386-cygwin-tdep.c: Update.
6448 * i386-gnu-nat.c: Update.
6449 * i386-linux-nat.c: Update.
6450 * ia64-linux-nat.c: Update.
6451 * inf-ptrace.c: Update.
6452 * infrun.c: Update.
6453 * linux-fork.c: Update.
6454 * linux-nat.c: Update.
6455 * linux-tdep.c: Update.
6456 * linux-thread-db.c: Update.
6457 * mips-linux-nat.c: Update.
6458 * nat/aarch64-linux-hw-point.c: Update.
6459 * nat/aarch64-linux.c: Update.
6460 * nat/linux-btrace.c: Update.
6461 * nat/linux-osdata.c: Update.
6462 * nat/linux-procfs.c: Update.
6463 * nat/x86-linux-dregs.c: Update.
6464 * obsd-nat.c: Update.
6465 * ppc-fbsd-nat.c: Update.
6466 * ppc-linux-nat.c: Update.
6467 * procfs.c: Update.
6468 * python/py-infthread.c: Update.
6469 * ravenscar-thread.c: Update.
6470 * remote.c: Update.
6471 * s390-linux-nat.c: Update.
6472 * sol-thread.c: Update.
6473 * sol2-tdep.c: Update.
6474 * spu-linux-nat.c: Update.
6475 * x86-linux-nat.c: Update.
6476 * xtensa-linux-nat.c: Update.
6477
6478 2018-07-03 Tom Tromey <tom@tromey.com>
6479
6480 * common/ptid.c (ptid_get_pid): Remove.
6481 * common/ptid.h (ptid_get_pid): Don't declare.
6482 * aarch64-linux-nat.c: Update.
6483 * ada-lang.c: Update.
6484 * aix-thread.c: Update.
6485 * alpha-bsd-nat.c: Update.
6486 * amd64-fbsd-nat.c: Update.
6487 * amd64-linux-nat.c: Update.
6488 * arm-linux-nat.c: Update.
6489 * arm-nbsd-nat.c: Update.
6490 * auxv.c: Update.
6491 * break-catch-syscall.c: Update.
6492 * breakpoint.c: Update.
6493 * bsd-uthread.c: Update.
6494 * corelow.c: Update.
6495 * ctf.c: Update.
6496 * darwin-nat.c: Update.
6497 * fbsd-nat.c: Update.
6498 * fbsd-tdep.c: Update.
6499 * gcore.c: Update.
6500 * gnu-nat.c: Update.
6501 * hppa-nbsd-nat.c: Update.
6502 * hppa-obsd-nat.c: Update.
6503 * i386-fbsd-nat.c: Update.
6504 * ia64-linux-nat.c: Update.
6505 * inf-ptrace.c: Update.
6506 * infcmd.c: Update.
6507 * inferior.c: Update.
6508 * inferior.h: Update.
6509 * inflow.c: Update.
6510 * infrun.c: Update.
6511 * linux-fork.c: Update.
6512 * linux-nat.c: Update.
6513 * linux-tdep.c: Update.
6514 * linux-thread-db.c: Update.
6515 * m68k-bsd-nat.c: Update.
6516 * mi/mi-interp.c: Update.
6517 * mi/mi-main.c: Update.
6518 * mips-linux-nat.c: Update.
6519 * mips-nbsd-nat.c: Update.
6520 * mips64-obsd-nat.c: Update.
6521 * nat/aarch64-linux-hw-point.c: Update.
6522 * nat/aarch64-linux.c: Update.
6523 * nat/linux-btrace.c: Update.
6524 * nat/linux-osdata.c: Update.
6525 * nat/linux-procfs.c: Update.
6526 * nat/x86-linux-dregs.c: Update.
6527 * nto-procfs.c: Update.
6528 * obsd-nat.c: Update.
6529 * ppc-linux-nat.c: Update.
6530 * ppc-nbsd-nat.c: Update.
6531 * ppc-obsd-nat.c: Update.
6532 * proc-service.c: Update.
6533 * procfs.c: Update.
6534 * python/py-inferior.c: Update.
6535 * python/py-infthread.c: Update.
6536 * ravenscar-thread.c: Update.
6537 * record.c: Update.
6538 * remote-sim.c: Update.
6539 * remote.c: Update.
6540 * rs6000-nat.c: Update.
6541 * s390-linux-nat.c: Update.
6542 * sh-nbsd-nat.c: Update.
6543 * sol-thread.c: Update.
6544 * sparc-nat.c: Update.
6545 * sparc64-tdep.c: Update.
6546 * spu-linux-nat.c: Update.
6547 * spu-tdep.c: Update.
6548 * target-debug.h: Update.
6549 * target.c: Update.
6550 * thread.c: Update.
6551 * tid-parse.c: Update.
6552 * tracefile-tfile.c: Update.
6553 * vax-bsd-nat.c: Update.
6554 * windows-nat.c: Update.
6555 * x86-linux-nat.c: Update.
6556 * x86-nat.c: Update.
6557
6558 2018-07-03 Tom Tromey <tom@tromey.com>
6559
6560 * common/ptid.c (pid_to_ptid): Remove.
6561 * common/ptid.h (pid_to_ptid): Don't declare.
6562 * aix-thread.c: Update.
6563 * arm-linux-nat.c: Update.
6564 * common/ptid.c: Update.
6565 * common/ptid.h: Update.
6566 * corelow.c: Update.
6567 * ctf.c: Update.
6568 * darwin-nat.c: Update.
6569 * fbsd-nat.c: Update.
6570 * fork-child.c: Update.
6571 * gnu-nat.c: Update.
6572 * go32-nat.c: Update.
6573 * inf-ptrace.c: Update.
6574 * infcmd.c: Update.
6575 * inferior.c: Update.
6576 * infrun.c: Update.
6577 * linux-fork.c: Update.
6578 * linux-nat.c: Update.
6579 * nat/aarch64-linux-hw-point.c: Update.
6580 * nat/fork-inferior.c: Update.
6581 * nat/x86-linux-dregs.c: Update.
6582 * nto-procfs.c: Update.
6583 * obsd-nat.c: Update.
6584 * procfs.c: Update.
6585 * progspace.c: Update.
6586 * remote.c: Update.
6587 * rs6000-nat.c: Update.
6588 * s390-linux-nat.c: Update.
6589 * sol-thread.c: Update.
6590 * spu-linux-nat.c: Update.
6591 * target.c: Update.
6592 * top.c: Update.
6593 * tracefile-tfile.c: Update.
6594 * windows-nat.c: Update.
6595
6596 2018-07-03 Tom Tromey <tom@tromey.com>
6597
6598 * common/ptid.h (ptid_build): Don't declare.
6599 * common/ptid.c (ptid_build): Remove.
6600 * aix-thread.c: Update.
6601 * bsd-kvm.c: Update.
6602 * bsd-uthread.c: Update.
6603 * common/agent.c: Update.
6604 * common/ptid.c: Update.
6605 * common/ptid.h: Update.
6606 * corelow.c: Update.
6607 * darwin-nat.c: Update.
6608 * fbsd-nat.c: Update.
6609 * gnu-nat.c: Update.
6610 * linux-fork.c: Update.
6611 * linux-nat.c: Update.
6612 * linux-thread-db.c: Update.
6613 * nat/linux-osdata.c: Update.
6614 * nat/linux-procfs.c: Update.
6615 * nto-procfs.c: Update.
6616 * obsd-nat.c: Update.
6617 * proc-service.c: Update.
6618 * procfs.c: Update.
6619 * ravenscar-thread.c: Update.
6620 * remote-sim.c: Update.
6621 * remote.c: Update.
6622 * sol-thread.c: Update.
6623 * target.c: Update.
6624 * windows-nat.c: Update.
6625
6626 2018-07-03 Tom Tromey <tom@tromey.com>
6627
6628 * infrun.c (follow_exec): Use exit_inferior_silent.
6629 * inferior.c (exit_inferior_num_silent): Remove.
6630 * inferior.h (exit_inferior_num_silent): Don't declare.
6631
6632 2018-07-03 Tom Tromey <tom@tromey.com>
6633
6634 PR cli/23340:
6635 * darwin-nat.c (darwin_attach_pid): Reset inferior and
6636 inferior_ptid on error.
6637
6638 2018-07-02 Maciej W. Rozycki <macro@mips.com>
6639 Simon Marchi <simon.marchi@polymtl.ca>
6640
6641 PR tdep/8282
6642 * disasm.h (gdb_disassembler): Add
6643 `m_disassembler_options_holder'. member
6644 * disasm.c (get_all_disassembler_options): New function.
6645 (gdb_disassembler::gdb_disassembler): Use it.
6646 (gdb_buffered_insn_length_init_dis): Likewise.
6647 (gdb_buffered_insn_length): Adjust accordingly.
6648 (set_disassembler_options): Handle options with arguments.
6649 (show_disassembler_options_sfunc): Likewise. Add a leading new
6650 line if showing options with descriptions.
6651 (disassembler_options_completer): Adapt to using the
6652 `disasm_options_and_args_t' structure.
6653 * mips-tdep.c (mips_disassembler_options): New variable.
6654 (mips_disassembler_options_o32): Likewise.
6655 (mips_disassembler_options_n32): Likewise.
6656 (mips_disassembler_options_n64): Likewise.
6657 (gdb_print_insn_mips): Don't set `disassembler_options'.
6658 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
6659 functions.
6660 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
6661 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
6662 `gdbarch_disassembler_options_implicit' and
6663 `gdbarch_valid_disassembler_options'.
6664 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
6665 `disasm_options_and_args_t' structure.
6666 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
6667 method.
6668 (valid_disassembler_options): Switch from `disasm_options_t' to
6669 the `disasm_options_and_args_t' structure.
6670 * NEWS: Document `set disassembler-options' support for the MIPS
6671 target.
6672 * gdbarch.h: Regenerate.
6673 * gdbarch.c: Regenerate.
6674
6675 2018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
6676
6677 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
6678
6679 2018-06-29 Joel Brobecker <brobecker@adacore.com>
6680
6681 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
6682 parameter in call to amd64_target_description.
6683 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
6684 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
6685 (amd64fbsd_init_abi): Likewise.
6686 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6687 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
6688 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
6689 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
6690
6691 2018-06-29 Pedro Alves <palves@redhat.com>
6692
6693 * gdb/amd64-tdep.h (amd64_create_target_description): Add
6694 "segments" parameter.
6695 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
6696 (_initialize_amd64_tdep): Update call to
6697 amd64_create_target_description.
6698 (amd64_target_description): Add "segments" parameter. Adjust
6699 the implementation to use it.
6700 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
6701 call to amd64_create_target_description.
6702 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
6703 * gdb/arch/amd64.h (amd64_create_target_description): Add
6704 "segments" register.
6705 * gdb/arch/amd64.c (amd64_create_target_description): Add
6706 "segments" parameter. Call create_feature_i386_64bit_segments
6707 only if SEGMENTS is true.
6708 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
6709 call to amd64_create_target_description.
6710
6711 2018-06-29 Pedro Alves <palves@redhat.com>
6712
6713 * thread.c (thread_target_id_str): New, factored out from ...
6714 (print_thread_info_1): ... here. Use it to compute the max
6715 "Target Id" column width.
6716
6717 2018-06-29 Pedro Alves <palves@redhat.com>
6718
6719 * remote.c (remote_target::extra_thread_info): Delete
6720 'display_buf' and 'n' locals. from the cache, regardless of
6721 packet mechanims is in use. Use cache for qThreadExtra and qP
6722 methods too.
6723
6724 2018-06-29 Pedro Alves <palves@redhat.com>
6725
6726 * blockframe.c (find_pc_sect_containing_function): New function.
6727 * breakpoint.c (print_breakpoint_location): Don't call
6728 find_pc_sect_function.
6729 * linespec.c (create_sals_line_offset): Record the location's
6730 symbol in the sal.
6731 * linespec.c (convert_address_location_to_sals): Fill in sal's
6732 symbol with find_pc_sect_containing_function.
6733 * symtab.c (find_function_start_sal): Rename to ...
6734 (find_function_start_sal_1): ... this.
6735 (find_function_start_sal): Reimplement as wrapper around
6736 find_function_start_sal_1, and use
6737 find_pc_sect_containing_function to fill in the sal's symbol.
6738 (find_function_start_sal(symbol*, bool)): Adjust.
6739 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
6740 comments.
6741 (find_pc_sect_containing_function): Declare.
6742
6743 2018-06-29 Pedro Alves <palves@redhat.com>
6744
6745 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
6746 true if the the location has no symbol.
6747
6748 2018-06-28 Tom Tromey <tom@tromey.com>
6749
6750 * NEWS: Mention --enable-codesign.
6751 * silent-rules.mk (ECHO_SIGN): New variable.
6752 * configure.ac: Add --enable-codesign.
6753 * configure: Rebuild.
6754 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
6755 (gdb$(EXEEXT)): Optionally invoke codesign.
6756
6757 2018-06-28 Pedro Alves <palves@redhat.com>
6758
6759 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
6760 comments.
6761 (switch_to_thread_no_regs): Adjust comment.
6762 * infcmd.c (stop_pc): Delete.
6763 (post_create_inferior, info_program_command): Replace references
6764 to stop_pc with references to thread_info->suspend.stop_pc.
6765 * inferior.h (stop_pc): Delete declaration.
6766 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
6767 (handle_inferior_event_1, handle_signal_stop)
6768 (process_event_stop_test, keep_going_stepped_thread)
6769 (handle_step_into_function, handle_step_into_function_backward)
6770 (print_stop_location): Replace references to stop_pc with
6771 references to thread_info->suspend.stop_pc.
6772 (struct infcall_suspend_state) <stop_pc>: Delete field.
6773 (save_infcall_suspend_state, restore_infcall_suspend_state):
6774 Remove references to inf_stat->stop_pc.
6775 * linux-fork.c (fork_load_infrun_state): Likewise.
6776 * record-btrace.c (record_btrace_set_replay): Likewise.
6777 * record-full.c (record_full_goto_entry): Likewise.
6778 * remote.c (print_one_stopped_thread): Likewise.
6779 * target.c (target_resume): Extend comment.
6780 * thread.c (set_executing_thread): New.
6781 (set_executing): Use it.
6782 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
6783 Remove references to stop_pc.
6784
6785 2018-06-28 Pedro Alves <palves@redhat.com>
6786
6787 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
6788 Moving fetching stop_pc until after ecs->event_thread is refreshed.
6789
6790 2018-06-28 Tom Tromey <tom@tromey.com>
6791
6792 * coffread.c (coff_symfile_finish): Update.
6793 * xcoffread.c (xcoff_symfile_finish): Update.
6794 * elfread.c (elf_symfile_finish): Update.
6795 * symfile.h (dwarf2_free_objfile): Don't declare.
6796 * dwarf2read.c (_initialize_dwarf2_read): Use
6797 register_objfile_data_with_cleanup.
6798 (dwarf2_free_objfile): Now static. Change signature.
6799
6800 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
6801
6802 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
6803 option "-o" to add-symbol-file-load to add an offset to each
6804 section's load address.
6805 * symfile.c (set_objfile_default_section_offset): New function.
6806
6807 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
6808
6809 * symfile.c (add_symbol_file_command): Make sure that sections
6810 with the same name are sorted in the same order.
6811
6812 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
6813
6814 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
6815 require the second argument. If omitted, load sections at the
6816 addresses specified in the file.
6817
6818 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
6819
6820 * symfile.c (symbol_file_command, symbol_file_add_main_1)
6821 (_initialize_symfile): Add option "-o" to symbol-file to add an
6822 offset to each section of the symbol file.
6823
6824 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
6825
6826 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
6827
6828 2018-06-27 Tom Tromey <tom@tromey.com>
6829
6830 * stack.c (_initialize_stack): Update "func" help text.
6831
6832 2018-06-27 Tom Tromey <tom@tromey.com>
6833
6834 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
6835 std::vector.
6836 (unwind_infopy_str, pyuw_create_unwind_info)
6837 (unwind_infopy_add_saved_register, pyuw_sniffer)
6838 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
6839 Update.
6840 (struct saved_reg): Add constructor.
6841 <value>: Now a gdbpy_ref<>.
6842
6843 2018-06-27 Tom Tromey <tom@tromey.com>
6844
6845 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
6846
6847 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
6848
6849 * gdb-gdb.py.in: Format using autopep8.
6850
6851 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
6852
6853 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
6854 (type_lookup_function): Recognize CORE_ADDR values.
6855
6856 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
6857
6858 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
6859 print tag_name.
6860
6861 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
6862
6863 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
6864 <__lt__>: Add.
6865
6866 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
6867
6868 * gdb-gdb.py: Move to...
6869 * gdb-gdb.py.in: ... here.
6870 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
6871 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
6872 dependencies.
6873 (distclean): Remove gdb-gdb.py when cleaning.
6874 (gdb-gdb.py, gdb-gdb.gdb): New rules.
6875 * configure: Re-generate.
6876
6877 2018-06-27 Pedro Alves <palves@redhat.com>
6878
6879 * proc-service.c (get_ps_regcache): New.
6880 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
6881 (ps_lsetfpregs): Use it.
6882
6883 2018-06-27 Omair Javaid <omair.javaid@linaro.org>
6884
6885 PR gdb/21695
6886 * dwarf2read.c (lnp_state_machine::check_line_address): Update
6887 declaration.
6888 (dwarf_decode_lines_1): Adjust.
6889
6890 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
6891
6892 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
6893 override.
6894 <info_proc>: Likewise.
6895
6896 2018-06-26 Joel Brobecker <brobecker@adacore.com>
6897
6898 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
6899 to windows_fetch_one_register, and only handle the case of
6900 fetching one register. Move the code that reloads the context
6901 and iterates over all registers if R is negative to...
6902 (windows_nat_target::fetch_registers): ... here.
6903 (do_windows_store_inferior_registers): Rename to
6904 windows_store_one_register, and only handle the case of storing
6905 one register. Move the code that handles the case where r is
6906 negative to...
6907 (windows_nat_target::store_registers) ... here.
6908
6909 2018-06-26 Tom Tromey <tom@tromey.com>
6910
6911 PR rust/22574:
6912 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
6913 * rust-lang.c (rust_print_struct_def): Add podata parameter.
6914 Update.
6915 (rust_internal_print_type): Add podata parameter.
6916 (rust_print_type): Update.
6917
6918 2018-06-26 Tom Tromey <tom@tromey.com>
6919
6920 * typeprint.h (struct print_offset_data) <update, finish,
6921 maybe_print_hole>: New methods.
6922 <indentation>: New constant.
6923 * typeprint.c (print_offset_data::indentation): Define.
6924 (print_offset_data::maybe_print_hole, print_offset_data::update)
6925 (print_offset_data::finish): Move from c-typeprint.c and rename.
6926 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
6927 (print_spaces_filtered_with_print_options): Update.
6928 (c_print_type_union_field_offset, maybe_print_hole)
6929 (c_print_type_struct_field_offset): Move to typeprint.c and
6930 rename.
6931 (c_type_print_base_struct_union): Update.
6932
6933 2018-06-25 Pedro Alves <palves@redhat.com>
6934
6935 * gdbthread.h (thread_info_ref, delete_thread)
6936 (delete_thread_silent, first_thread_of_inferior)
6937 (any_thread_of_inferior, switch_to_thread)
6938 (enable_thread_stack_temporaries)
6939 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
6940 (get_last_thread_stack_temporary)
6941 (value_in_thread_stack_temporaries, can_access_registers_thread):
6942 Spell out "struct thread_info" instead of just "thread_info".
6943 * inferior.h (notice_new_inferior): Likewise.
6944
6945 2018-06-25 Pedro Alves <palves@redhat.com>
6946
6947 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
6948 pass thread_info pointer to delete_thread.
6949 (windows_nat_target::detach): Pass inferior pointer to
6950 detach_inferior.
6951 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
6952 delete_thread.
6953 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
6954 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
6955 and pass a thread_info pointer to delete_thread.
6956 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
6957 pass thread_info pointer to delete_thread.
6958 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
6959 delete_thread_silent call.
6960 * procfs.c (procfs_target::detach): Pass inferior pointer to
6961 detach_inferior.
6962 (procfs_target::wait): Pass thread_info pointer to delete_thread.
6963 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
6964 delete_thread_silent call.
6965 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
6966 pass thread_info pointer to delete_thread.
6967 (windows_nat_target::detach): Pass inferior pointer to
6968 delete_inferior.
6969
6970 2018-06-22 Alan Hayward <alan.hayward@arm.com>
6971
6972 * regcache.c (readable_regcache::read_part): Fix asserts.
6973 (reg_buffer::raw_collect_part): New function.
6974 (regcache::write_part): Fix asserts.
6975 (reg_buffer::raw_supply_part): New function.
6976 (regcache::transfer_regset_register): New helper function.
6977 (regcache::transfer_regset): Call new functions.
6978 (regcache_supply_regset): Use gdb_byte*.
6979 (regcache::supply_regset): Likewise.
6980 (regcache_collect_regset): Likewise.
6981 (regcache::collect_regset): Likewise.
6982 * regcache.h (reg_buffer::raw_collect_part): New declaration.
6983 (reg_buffer::raw_supply_part): Likewise.
6984 (regcache::transfer_regset_register): Likewise.
6985 (regcache::transfer_regset): Use gdb_byte*.
6986
6987 2018-06-22 Alan Hayward <alan.hayward@arm.com>
6988
6989 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
6990
6991 2018-06-21 Pedro Alves <palves@redhat.com>
6992
6993 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
6994 instead of a ptid_t. All callers adjusted.
6995 * ada-tasks.c (ada_get_task_number): Likewise. All callers
6996 adjusted.
6997 (print_ada_task_info, display_current_task_id, task_command_1):
6998 Adjust.
6999 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
7000 inferior_thread.
7001 (breakpoint_kind): Adjust.
7002 (remove_breakpoints_pid): Rename to ...
7003 (remove_breakpoints_inf): ... this. Adjust to take an inferior
7004 pointer. All callers adjusted.
7005 (bpstat_clear_actions): Use inferior_thread.
7006 (get_bpstat_thread): New.
7007 (bpstat_do_actions): Use it.
7008 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
7009 to take a thread_info pointer. All callers adjusted.
7010 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
7011 (breakpoint_re_set_thread): Use inferior_thread.
7012 * breakpoint.h (struct inferior): Forward declare.
7013 (bpstat_stop_status): Update.
7014 (remove_breakpoints_pid): Delete.
7015 (remove_breakpoints_inf): New.
7016 * bsd-uthread.c (bsd_uthread_target::wait)
7017 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
7018 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
7019 (maint_btrace_packet_history_cmd)
7020 (maint_btrace_clear_packet_history_cmd): Adjust.
7021 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
7022 inferior_thread.
7023 * cli/cli-interp.c: Include "inferior.h".
7024 * common/refcounted-object.h (struct
7025 refcounted_object_ref_policy): New.
7026 * compile/compile-object-load.c: Include gdbthread.h.
7027 (store_regs): Use inferior_thread.
7028 * corelow.c (core_target::close): Use current_inferior.
7029 (core_target_open): Adjust to use first_thread_of_inferior and use
7030 the current inferior.
7031 * ctf.c (ctf_target::close): Adjust to use current_inferior.
7032 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
7033 <thread>: ... this new field. All references adjusted.
7034 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
7035 Take a thread_info pointer instead of a ptid_t.
7036 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
7037 (dummy_frame_discard, register_dummy_frame_dtor): Take a
7038 thread_info pointer instead of a ptid_t.
7039 * elfread.c: Include "inferior.h".
7040 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
7041 Use inferior_thread.
7042 * eval.c (evaluate_subexp): Likewise.
7043 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
7044 inferior_thread.
7045 * gdb_proc_service.h (struct thread_info): Forward declare.
7046 (struct ps_prochandle) <ptid>: Delete, replaced by ...
7047 <thread>: ... this new field. All references adjusted.
7048 * gdbarch.h, gdbarch.c: Regenerate.
7049 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
7050 'thread' parameter. All implementations and callers adjusted.
7051 * gdbthread.h (thread_info) <set_running>: New method.
7052 (delete_thread, delete_thread_silent): Take a thread_info pointer
7053 instead of a ptid.
7054 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
7055 (first_thread_of_process): Delete, replaced by ...
7056 (first_thread_of_inferior): ... this new function. All callers
7057 adjusted.
7058 (any_live_thread_of_process): Delete, replaced by ...
7059 (any_live_thread_of_inferior): ... this new function. All callers
7060 adjusted.
7061 (switch_to_thread, switch_to_no_thread): Declare.
7062 (is_executing): Delete.
7063 (enable_thread_stack_temporaries): Update comment.
7064 <enable_thread_stack_temporaries>: Take a thread_info pointer
7065 instead of a ptid_t. Incref the thread.
7066 <~enable_thread_stack_temporaries>: Decref the thread.
7067 <m_ptid>: Delete
7068 <m_thr>: New.
7069 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
7070 (get_last_thread_stack_temporary)
7071 (value_in_thread_stack_temporaries, can_access_registers_thread):
7072 Take a thread_info pointer instead of a ptid_t. All callers
7073 adjusted.
7074 * infcall.c (get_call_return_value): Use inferior_thread.
7075 (run_inferior_call): Work with thread pointers instead of ptid_t.
7076 (call_function_by_hand_dummy): Work with thread pointers instead
7077 of ptid_t. Use thread_info_ref.
7078 * infcmd.c (proceed_thread_callback): Access thread's state
7079 directly.
7080 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
7081 access thread's state directly.
7082 (continue_command): Use inferior_thread.
7083 (info_program_command): Use find_thread_ptid and access thread
7084 state directly.
7085 (proceed_after_attach_callback): Use thread state directly.
7086 (notice_new_inferior): Take a thread_info pointer instead of a
7087 ptid_t. All callers adjusted.
7088 (exit_inferior): Take an inferior pointer instead of a pid. All
7089 callers adjusted.
7090 (exit_inferior_silent): New.
7091 (detach_inferior): Delete.
7092 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
7093 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
7094 (detach_inferior_command, kill_inferior_command): Use
7095 find_inferior_id instead of valid_gdb_inferior_id and
7096 gdb_inferior_id_to_pid.
7097 (inferior_command): Use inferior and thread pointers.
7098 * inferior.h (struct thread_info): Forward declare.
7099 (notice_new_inferior): Take a thread_info pointer instead of a
7100 ptid_t. All callers adjusted.
7101 (detach_inferior): Delete declaration.
7102 (exit_inferior, exit_inferior_silent): Take an inferior pointer
7103 instead of a pid. All callers adjusted.
7104 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
7105 (valid_gdb_inferior_id): Delete.
7106 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
7107 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
7108 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
7109 ...
7110 <inf>: ... this new field.
7111 <step_ptid>: Delete, replaced by ...
7112 <step_thread>: ... this new field.
7113 (get_displaced_stepping_state): Take an inferior pointer instead
7114 of a pid. All callers adjusted.
7115 (displaced_step_in_progress_any_inferior): Adjust.
7116 (displaced_step_in_progress_thread): Take a thread pointer instead
7117 of a ptid_t. All callers adjusted.
7118 (displaced_step_in_progress, add_displaced_stepping_state): Take
7119 an inferior pointer instead of a pid. All callers adjusted.
7120 (get_displaced_step_closure_by_addr): Adjust.
7121 (remove_displaced_stepping_state): Take an inferior pointer
7122 instead of a pid. All callers adjusted.
7123 (displaced_step_prepare_throw, displaced_step_prepare)
7124 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
7125 All callers adjusted.
7126 (start_step_over): Adjust.
7127 (infrun_thread_ptid_changed): Remove bit updating ptids in the
7128 displaced step queue.
7129 (do_target_resume): Adjust.
7130 (fetch_inferior_event): Use inferior_thread.
7131 (context_switch, get_inferior_stop_soon): Take an
7132 execution_control_state pointer instead of a ptid_t. All callers
7133 adjusted.
7134 (switch_to_thread_cleanup): Delete.
7135 (stop_all_threads): Use scoped_restore_current_thread.
7136 * inline-frame.c: Include "gdbthread.h".
7137 (inline_state) <inline_state>: Take a thread pointer instead of a
7138 ptid_t. All callers adjusted.
7139 <ptid>: Delete, replaced by ...
7140 <thread>: ... this new field.
7141 (find_inline_frame_state): Take a thread pointer instead of a
7142 ptid_t. All callers adjusted.
7143 (skip_inline_frames, step_into_inline_frame)
7144 (inline_skipped_frames, inline_skipped_symbol): Take a thread
7145 pointer instead of a ptid_t. All callers adjusted.
7146 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
7147 (inline_skipped_frames, inline_skipped_symbol): Likewise.
7148 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
7149 pointers directly.
7150 * linux-nat.c (get_detach_signal): Likewise.
7151 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
7152 (thread_db_notice_clone): Adjust.
7153 (thread_db_find_new_threads_silently)
7154 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
7155 a thread pointer instead of a ptid_t. All callers adjusted.
7156 * mi/mi-cmd-var.c: Include "inferior.h".
7157 (mi_cmd_var_update_iter): Update to use thread pointers.
7158 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
7159 inferior directly.
7160 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
7161 out to ...
7162 (mi_output_running): ... this new function.
7163 (mi_on_resume_1): Adjust to use it.
7164 (mi_user_selected_context_changed): Adjust to use inferior_thread.
7165 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
7166 directly.
7167 (interrupt_thread_callback): : Adjust to use thread and inferior
7168 pointers.
7169 * proc-service.c: Include "gdbthread.h".
7170 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
7171 * progspace-and-thread.c: Include "inferior.h".
7172 * progspace.c: Include "inferior.h".
7173 * python/py-exitedevent.c (create_exited_event_object): Adjust to
7174 hold a reference to an inferior_object.
7175 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
7176 inferior_thread.
7177 * python/py-inferior.c (struct inferior_object): Give the type a
7178 tag name instead of a typedef.
7179 (python_on_normal_stop): No need to check if the current thread is
7180 listed.
7181 (inferior_to_inferior_object): Change return type to
7182 inferior_object. All callers adjusted.
7183 (find_thread_object): Delete, bits factored out to ...
7184 (thread_to_thread_object): ... this new function.
7185 * python/py-infthread.c (create_thread_object): Use
7186 inferior_to_inferior_object.
7187 (thpy_is_stopped): Use thread pointer directly.
7188 (gdbpy_selected_thread): Use inferior_thread.
7189 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
7190 field, replaced with ...
7191 <thread>: ... this new field. All users adjusted.
7192 (btpy_insn_or_gap_new): Drop const.
7193 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
7194 callers adjusted.
7195 * python/py-record.c: Include "gdbthread.h".
7196 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
7197 a ptid_t. All callers adjusted.
7198 (gdbpy_current_recording): Use inferior_thread.
7199 * python/py-record.h (recpy_record_object) <ptid>: Delete
7200 field, replaced with ...
7201 <thread>: ... this new field. All users adjusted.
7202 (recpy_element_object) <ptid>: Delete
7203 field, replaced with ...
7204 <thread>: ... this new field. All users adjusted.
7205 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
7206 a ptid_t. All callers adjusted.
7207 * python/py-threadevent.c: Include "gdbthread.h".
7208 (get_event_thread): Use thread_to_thread_object.
7209 * python/python-internal.h (struct inferior_object): Forward
7210 declare.
7211 (find_thread_object, find_inferior_object): Delete declarations.
7212 (thread_to_thread_object, inferior_to_inferior_object): New
7213 declarations.
7214 * record-btrace.c: Include "inferior.h".
7215 (require_btrace_thread): Use inferior_thread.
7216 (record_btrace_frame_sniffer)
7217 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
7218 (get_thread_current_frame): Use scoped_restore_current_thread and
7219 switch_to_thread.
7220 (get_thread_current_frame): Use thread pointer directly.
7221 (record_btrace_replay_at_breakpoint): Use thread's inferior
7222 pointer directly.
7223 * record-full.c: Include "inferior.h".
7224 * regcache.c: Include "gdbthread.h".
7225 (get_thread_arch_regcache): Use the inferior's address space
7226 directly.
7227 (get_thread_regcache, registers_changed_thread): New.
7228 * regcache.h (get_thread_regcache(thread_info *thread)): New
7229 overload.
7230 (registers_changed_thread): New.
7231 (remote_target) <remote_detach_1>: Swap order of parameters.
7232 (remote_add_thread): <remote_add_thread>: Return the new thread.
7233 (get_remote_thread_info(ptid_t)): New overload.
7234 (remote_target::remote_notice_new_inferior): Use thread pointers
7235 directly.
7236 (remote_target::process_initial_stop_replies): Use
7237 thread_info::set_running.
7238 (remote_target::remote_detach_1, remote_target::detach)
7239 (extended_remote_target::detach): Adjust.
7240 * stack.c (frame_show_address): Use inferior_thread.
7241 * target-debug.h (target_debug_print_thread_info_pp): New.
7242 * target-delegates.c: Regenerate.
7243 * target.c (default_thread_address_space): Delete.
7244 (memory_xfer_partial_1): Use current_inferior.
7245 (target_detach): Use current_inferior.
7246 (target_thread_address_space): Delete.
7247 (generic_mourn_inferior): Use current_inferior.
7248 * target.h (struct target_ops) <thread_address_space>: Delete.
7249 (target_thread_address_space): Delete.
7250 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
7251 pointers directly.
7252 (delete_thread_1, delete_thread, delete_thread_silent): Take a
7253 thread pointer instead of a ptid_t. Adjust all callers.
7254 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
7255 (first_thread_of_process): Delete, replaced by ...
7256 (first_thread_of_inferior): ... this new function. All callers
7257 adjusted.
7258 (any_thread_of_process): Rename to ...
7259 (any_thread_of_inferior): ... this, and take an inferior pointer.
7260 (any_live_thread_of_process): Rename to ...
7261 (any_live_thread_of_inferior): ... this, and take an inferior
7262 pointer.
7263 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
7264 (value_in_thread_stack_temporaries)
7265 (get_last_thread_stack_temporary): Take a thread pointer instead
7266 of a ptid_t. Adjust all callers.
7267 (thread_info::set_running): New.
7268 (validate_registers_access): Use inferior_thread.
7269 (can_access_registers_ptid): Rename to ...
7270 (can_access_registers_thread): ... this, and take a thread
7271 pointer.
7272 (print_thread_info_1): Adjust to compare thread pointers instead
7273 of ptids.
7274 (switch_to_no_thread, switch_to_thread): Make extern.
7275 (scoped_restore_current_thread::~scoped_restore_current_thread):
7276 Use m_thread pointer directly.
7277 (scoped_restore_current_thread::scoped_restore_current_thread):
7278 Use inferior_thread.
7279 (thread_command): Use thread pointer directly.
7280 (thread_num_make_value_helper): Use inferior_thread.
7281 * top.c (execute_command): Use inferior_thread.
7282 * tui/tui-interp.c: Include "inferior.h".
7283 * varobj.c (varobj_create): Use inferior_thread.
7284 (value_of_root_1): Use find_thread_global_id instead of
7285 global_thread_id_to_ptid.
7286
7287 2018-06-21 Alan Hayward <alan.hayward@arm.com>
7288
7289 * regcache.c (readable_regcache::read_part): Avoid memcpy when
7290 possible.
7291 (regcache::write_part): Likewise.
7292 (readable_regcache::cooked_read_part): Update comment.
7293 (readable_regcache::cooked_write_part): Likewise.
7294 * regcache.h: (readable_regcache::read_part): Likewise.
7295 (regcache::write_part): Likewise.
7296
7297 2018-06-21 Richard Bunt <richard.bunt@arm.com>
7298 Dirk Schubert <dirk.schubert@arm.com>
7299
7300 * aarch64-linux-nat.c (post_attach): New.
7301 (aarch64_linux_nat_target::post_attach): Override post_attach to
7302 record the number of hardware debug registers.
7303
7304 2018-06-20 Tom Tromey <tom@tromey.com>
7305
7306 * python/py-param.c (add_setshow_generic): Make parameters const.
7307 (parmpy_init): Update.
7308
7309 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
7310
7311 * regcache.h (regcache_cooked_read_ftype): Rename to...
7312 (register_read_ftype): ...this, change type to function_view.
7313 (class reg_buffer) <save>: Remove src parameter.
7314 (readonly_detached_regcache) <readonly_detached_regcache>: Make
7315 parameter non-const in first overload. Remove src parameter in
7316 second overload.
7317 * regcache.c (do_cooked_read): Remove.
7318 (readonly_detached_regcache::readonly_detached_regcache): Make
7319 parameter non-const, adjust call to other constructor.
7320 (reg_buffer::save): Remove src parameter.
7321 * frame.c (do_frame_register_read): Remove.
7322 (frame_save_as_regcache): Use lambda function.
7323 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
7324 parameter to ppu2spu_data *.
7325 (ppu2spu_sniffer): Use lambda function.
7326
7327 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
7328
7329 * record-full.c (record_full_target::insert_breakpoint): Remove
7330 "struct" keyword, add const.
7331
7332 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
7333
7334 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
7335 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
7336 * configure.ac: Remove AC_PREREQ, add missing quoting.
7337 * gnulib/configure.ac: Modernize usage of
7338 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
7339 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
7340 (AUTOMAKE_VERSION): Bump to 1.15.1.
7341 * configure: Re-generate.
7342 * config.in: Re-generate.
7343 * aclocal.m4: Re-generate.
7344 * gnulib/aclocal.m4: Re-generate.
7345 * gnulib/config.in: Re-generate.
7346 * gnulib/configure: Re-generate.
7347 * gnulib/import/Makefile.in: Re-generate.
7348
7349 2018-06-19 Pedro Alves <palves@redhat.com>
7350
7351 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
7352 (lookup_minimal_symbol_by_pc_section): ... here with
7353 gdb_assert_not_reached added.
7354
7355 2018-06-19 Pedro Alves <palves@redhat.com>
7356
7357 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
7358 parameter with a block parameter. Compare location's block symbol
7359 with the frame's block instead of addresses.
7360 (skip_inline_frames): Pass the current block instead of the
7361 frame's address. Break out as soon as we determine the frame
7362 should not be skipped.
7363
7364 2018-06-18 Tom Tromey <tom@tromey.com>
7365
7366 * solib-aix.c (solib_aix_get_section_offsets): Return
7367 unique_xmalloc_ptr.
7368 (solib_aix_solib_create_inferior_hook): Update.
7369
7370 2018-06-18 Tom Tromey <tom@tromey.com>
7371
7372 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
7373
7374 2018-06-18 Tom Tromey <tom@tromey.com>
7375
7376 * solib-frv.c (frv_relocate_main_executable): Use
7377 unique_xmalloc_ptr.
7378 * solib-dsbt.c (dsbt_relocate_main_executable): Use
7379 unique_xmalloc_ptr.
7380
7381 2018-06-18 Tom Tromey <tom@tromey.com>
7382
7383 * objfiles.h (inhibit_section_map_updates): Update.
7384 (resume_section_map_updates, resume_section_map_updates_cleanup):
7385 Remove.
7386 * solib-svr4.c (svr4_handle_solib_event): Update.
7387 * objfiles.c (inhibit_section_map_updates): Return
7388 scoped_restore_tmpl<int>.
7389 (resume_section_map_updates, resume_section_map_updates_cleanup):
7390 Remove.
7391
7392 2018-06-18 Tom Tromey <tom@tromey.com>
7393
7394 * valprint.h (read_string): Update.
7395 * valprint.c (read_string): Change type of "buffer".
7396 (val_print_string): Update.
7397 * python/py-value.c (valpy_string): Update.
7398 * language.h (struct language_defn) <la_get_string>: Change
7399 type of "buffer".
7400 (default_get_string, c_get_string): Update.
7401 * language.c (default_get_string): Change type of "buffer".
7402 * guile/scm-value.c (gdbscm_value_to_string): Update.
7403 * c-lang.c (c_get_string): Change type of "buffer".
7404
7405 2018-06-18 Tom Tromey <tom@tromey.com>
7406
7407 * ser-mingw.c (struct pipe_state_destroyer): New.
7408 (pipe_state_up): New typedef.
7409 (cleanup_pipe_state): Remove.
7410 (pipe_windows_open): Use pipe_state_up. Don't release argv.
7411
7412 2018-06-18 Tom Tromey <tom@tromey.com>
7413
7414 * rust-lang.h (rust_yyerror): Don't declare.
7415 * rust-lang.c (rust_language_defn): Update.
7416 * rust-exp.y (yyerror): Now static.
7417 * parse.c (parse_exp_in_context_1): Update.
7418 * p-lang.h (p_yyerror): Don't declare.
7419 * p-lang.c (p_language_defn): Update.
7420 * p-exp.y (yyerror): Now static.
7421 * opencl-lang.c (opencl_language_defn): Update.
7422 * objc-lang.c (objc_language_defn): Update.
7423 * m2-lang.h (m2_yyerror): Don't declare.
7424 * m2-lang.c (m2_language_defn): Update.
7425 * m2-exp.y (yyerror): Now static.
7426 * language.h (struct language_defn) <la_error>: Remove.
7427 * language.c (unk_lang_error): Remove.
7428 (unknown_language_defn, auto_language_defn): Remove.
7429 * go-lang.h (go_yyerror): Don't declare.
7430 * go-lang.c (go_language_defn): Update.
7431 * go-exp.y (yyerror): Now static.
7432 * f-lang.h (f_yyerror): Don't declare.
7433 * f-lang.c (f_language_defn): Update.
7434 * f-exp.y (yyerror): Now static.
7435 * d-lang.h (d_yyerror): Don't declare.
7436 * d-lang.c (d_language_defn): Update.
7437 * d-exp.y (yyerror): Now static.
7438 * c-lang.h (c_yyerror): Don't declare.
7439 * c-lang.c (c_language_defn, cplus_language_defn)
7440 (asm_language_defn, minimal_language_defn): Update.
7441 * c-exp.y (yyerror): Now static.
7442 * ada-lang.h (ada_yyerror): Don't declare.
7443 * ada-lang.c (ada_language_defn): Update.
7444 * ada-exp.y (yyerror): Now static.
7445
7446 2018-06-18 Alan Hayward <alan.hayward@arm.com>
7447
7448 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
7449 (store_sveregs_to_thread): Likewise.
7450 (aarch64_linux_fetch_inferior_registers): Check for SVE.
7451 (aarch64_linux_store_inferior_registers): Likewise.
7452 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
7453 function.
7454 (aarch64_sve_regs_copy_to_regcache): Likewise.
7455 (aarch64_sve_regs_copy_from_regcache): Likewise.
7456 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
7457 declaration.
7458 (aarch64_sve_regs_copy_to_regcache): Likewise.
7459 (aarch64_sve_regs_copy_from_regcache): Likewise.
7460 (sve_context): Structure from Linux headers.
7461 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
7462 (SVE_SIG_ZREG_SIZE): Likewise.
7463 (SVE_SIG_PREG_SIZE): Likewise.
7464 (SVE_SIG_FFR_SIZE): Likewise.
7465 (SVE_SIG_REGS_OFFSET): Likewise.
7466 (SVE_SIG_ZREGS_OFFSET): Likewise.
7467 (SVE_SIG_ZREG_OFFSET): Likewise.
7468 (SVE_SIG_ZREGS_SIZE): Likewise.
7469 (SVE_SIG_PREGS_OFFSET): Likewise.
7470 (SVE_SIG_PREG_OFFSET): Likewise.
7471 (SVE_SIG_PREGS_SIZE): Likewise.
7472 (SVE_SIG_FFR_OFFSET): Likewise.
7473 (SVE_SIG_REGS_SIZE): Likewise.
7474 (SVE_SIG_CONTEXT_SIZE): Likewise.
7475 (SVE_PT_REGS_MASK): Likewise.
7476 (SVE_PT_REGS_FPSIMD): Likewise.
7477 (SVE_PT_REGS_SVE): Likewise.
7478 (SVE_PT_VL_INHERIT): Likewise.
7479 (SVE_PT_VL_ONEXEC): Likewise.
7480 (SVE_PT_REGS_OFFSET): Likewise.
7481 (SVE_PT_FPSIMD_OFFSET): Likewise.
7482 (SVE_PT_FPSIMD_SIZE): Likewise.
7483 (SVE_PT_SVE_ZREG_SIZE): Likewise.
7484 (SVE_PT_SVE_PREG_SIZE): Likewise.
7485 (SVE_PT_SVE_FFR_SIZE): Likewise.
7486 (SVE_PT_SVE_FPSR_SIZE): Likewise.
7487 (SVE_PT_SVE_FPCR_SIZE): Likewise.
7488 (__SVE_SIG_TO_PT): Likewise.
7489 (SVE_PT_SVE_OFFSET): Likewise.
7490 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
7491 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
7492 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
7493 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
7494 (SVE_PT_SVE_PREG_OFFSET): Likewise.
7495 (SVE_PT_SVE_PREGS_SIZE): Likewise.
7496 (SVE_PT_SVE_FFR_OFFSET): Likewise.
7497 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
7498 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
7499 (SVE_PT_SVE_SIZE): Likewise.
7500 (SVE_PT_SIZE): Likewise.
7501 (HAS_SVE_STATE): New define.
7502
7503 2018-06-18 Alan Hayward <alan.hayward@arm.com>
7504
7505 * nat/aarch64-sve-linux-sigcontext.h: New file.
7506 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
7507 new files.
7508 (SVE_VQ_MIN): Likewise.
7509 (SVE_VQ_MAX): Likewise.
7510 (SVE_VL_MIN): Likewise.
7511 (SVE_VL_MAX): Likewise.
7512 (SVE_NUM_ZREGS): Likewise.
7513 (SVE_NUM_PREGS): Likewise.
7514 (sve_vl_valid): Likewise.
7515 (struct user_sve_header): Likewise.
7516
7517 2018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
7518 Richard Bunt <Richard.Bunt@arm.com>
7519
7520 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
7521 was requested by GDB.
7522
7523 2018-06-15 Tom de Vries <tdevries@suse.de>
7524
7525 * MAINTAINERS (Write After Approval): Add Tom de Vries.
7526
7527 2018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
7528
7529 * gnulib/update-gnulib.sh: Print expected versions of
7530 autoconf/aclocal.
7531
7532 2018-06-14 Simon Marchi <simon.marchi@ericsson.com>
7533
7534 * arch-utils.c (default_type_align): Use type_length_units.
7535 * gdbtypes.c (type_align): Use type_length_units.
7536
7537 2018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7538
7539 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
7540 of 'define' command.
7541
7542 2018-06-14 Tom de Vries <tdevries@suse.de>
7543
7544 PR cli/22573
7545 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
7546 get_no_prettyformat_print_options.
7547
7548 2018-06-13 Simon Marchi <simon.marchi@ericsson.com>
7549
7550 * sparc-nat.h: Include target.h.
7551 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
7552 <fetch_registers>: Remove this argument in function call.
7553 <store_registers>: Remove this argument in function call, remove
7554 extra semicolon.
7555 <low_forget_process>: Call sparc64_forget_process instead of
7556 sparc_forget_process.
7557
7558 2018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7559
7560 * procfs.c (_initialize_procfs): Use add_inf_child_target.
7561 (procfs_target::make_corefile_notes): Adjust to new
7562 target_read_alloc return type.
7563
7564 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
7565 Stephen Roberts <stephen.roberts@arm.com>
7566
7567 PR gdb/22882
7568 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
7569 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
7570 Move should_notify_stop local into more inner scope.
7571
7572 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
7573 Stephen Roberts <stephen.roberts@arm.com>
7574
7575 PR gdb/22882
7576 * infrun.c (resume_1): Add call to mark_async_event_handler.
7577
7578 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
7579
7580 * infrun.c (do_target_wait): Change old version of $pc printed.
7581
7582 2018-06-11 Simon Marchi <simon.marchi@ericsson.com>
7583
7584 * dwarf2read.c (read_index_from_section): Rename to...
7585 (read_gdb_index_from_section): ... this, update all callers.
7586 (dwarf2_read_index): Rename to...
7587 (dwarf2_read_gdb_index): ... this, update all callers.
7588
7589 2018-06-11 John David Anglin <danglin@gcc.gnu.org>
7590
7591 * hppa-linux-nat.c
7592 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
7593 hppa_linux_nat_target::fetch_registers.
7594
7595 2018-06-11 Alan Hayward <alan.hayward@arm.com>
7596
7597 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
7598 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
7599 (AARCH64_DWARF_SVE_FFR): Likewise.
7600 (AARCH64_DWARF_SVE_P0): Likewise.
7601 (AARCH64_DWARF_SVE_Z0): Likewise.
7602
7603 2018-06-11 Alan Hayward <alan.hayward@arm.com>
7604
7605 * common/common-regcache.h (raw_compare): New function.
7606 * regcache.c (regcache::raw_compare): Likewise.
7607 * regcache.h (regcache::raw_compare): New declaration.
7608
7609 2018-06-11 Alan Hayward <alan.hayward@arm.com>
7610
7611 * common/common-regcache.h (reg_buffer_common): New structure.
7612 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
7613 (reg_buffer::raw_supply): Likewise.
7614 (reg_buffer::raw_supply_integer): Likewise.
7615 (reg_buffer::raw_supply_zeroed): Likewise.
7616 (reg_buffer::raw_collect): Likewise.
7617 (reg_buffer::raw_collect_integer): Likewise.
7618 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
7619 (reg_buffer::raw_supply): Likewise.
7620 (reg_buffer::raw_supply_integer): Likewise.
7621 (reg_buffer::raw_supply_zeroed): Likewise.
7622 (reg_buffer::raw_collect): Likewise.
7623 (reg_buffer::raw_collect_integer): Likewise.
7624
7625 2018-06-10 Tom Tromey <tom@tromey.com>
7626
7627 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
7628 (class remote_state) <stop_reply_queue>: Now std::vector.
7629 (remote_state::~remote_state)
7630 (remote_target::stop_reply_queue_length): Update.
7631 (struct queue_iter_param, remove_child_of_pending_fork)
7632 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
7633 (check_pending_event_prevents_wildcard_vcont_callback)
7634 (remove_stop_reply_for_inferior)
7635 (remove_stop_reply_of_remote_state)
7636 (remote_notif_remove_once_on_match)
7637 (stop_reply_match_ptid_and_ws)
7638 (remote_kill_child_of_pending_fork): Remove.
7639 (remote_target::remove_new_fork_children)
7640 (remote_target::check_pending_events_prevent_wildcard_vcont)
7641 (remote_target::discard_pending_stop_replies)
7642 (remote_target::discard_pending_stop_replies_in_queue)
7643 (remote_target::remote_notif_remove_queued_reply)
7644 (remote_target::queued_stop_reply)
7645 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
7646 (remote_target::wait, remote_target::kill_new_fork_children)
7647 (remote_target::async): Update.
7648
7649 2018-06-10 Tom Tromey <tom@tromey.com>
7650
7651 * record-full.c (record_full_arch_list_cleanups): Remove.
7652 (record_full_message): Use try/catch.
7653 (record_full_wait_cleanups): Remove.
7654 (record_full_wait_1): Use try/catch.
7655 (record_full_restore): Likewise.
7656
7657 2018-06-10 Tom Tromey <tom@tromey.com>
7658
7659 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
7660 declare VEC. Add constructor.
7661 <in_target_beneath>: Now bool.
7662 (record_full_breakpoints): Now a std::vector, static.
7663 (record_full_sync_record_breakpoints)
7664 (record_full_init_record_breakpoints)
7665 (record_full_target::insert_breakpoint)
7666 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
7667
7668 2018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
7669
7670 * dwarf2read.c (process_cu_includes): Remove struct keyword.
7671 * serial.c (serial_interface_lookup): Remove struct keyword.
7672
7673 2018-06-10 Tom Tromey <tom@tromey.com>
7674
7675 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
7676 method.
7677 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
7678 a method.
7679 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
7680 method.
7681 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
7682 "beneath" as a method.
7683 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
7684 Use "beneath" as a method.
7685
7686 2018-06-10 Tom Tromey <tom@tromey.com>
7687
7688 * tracefile.c (struct trace_file_writer_deleter): New.
7689 <operator()>: Rename from trace_file_writer_xfree.
7690 (trace_file_writer_up): New typedef.
7691 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
7692
7693 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
7694
7695 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
7696 <m_registers, m_register_status>: Change type to
7697 std::unique_ptr.
7698 * regcache.c (reg_buffer::reg_buffer): Use new instead of
7699 XCNEWVEC.
7700
7701 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
7702
7703 * common/common-regcache.h (enum register_status): Add
7704 underlying type "signed char".
7705 * regcache.h (reg_buffer) <m_register_status>: Change type to
7706 register_status *.
7707 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
7708 register_status instead of signed char.
7709 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
7710 (reg_buffer::get_register_status): Remove cast.
7711 (readable_regcache::raw_read): Remove cast.
7712 (readable_regcache::cooked_read): Remove cast.
7713
7714 2018-06-09 Tom Tromey <tom@tromey.com>
7715
7716 * source.c (reverse_search_command, forward_search_command): Use
7717 scoped_fd.
7718
7719 2018-06-09 Tom Tromey <tom@tromey.com>
7720
7721 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
7722 (serial_ops_list): Now static, std::vector.
7723 (serial_interface_lookup, serial_add_interface): Update.
7724
7725 2018-06-09 Tom Tromey <tom@tromey.com>
7726
7727 * dwarf2read.c (process_cu_includes): Update.
7728 (process_full_comp_unit): Update.
7729 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
7730 std::vector.
7731
7732 2018-06-08 Paul Koning <paul_koning@dell.com>
7733
7734 PR gdb/23252
7735
7736 * python/python.c (do_start_initialization):
7737 Avoid call to internal Python API.
7738 (init__gdb_module): New function.
7739
7740 2018-06-08 Gary Benson <gbenson@redhat.com>
7741
7742 * linux-thread-db.c (valprint.h): New include.
7743 (struct check_thread_db_info): New structure.
7744 (check_thread_db_on_load, tdb_testinfo): New static globals.
7745 (check_thread_db, check_thread_db_callback): New functions.
7746 (try_thread_db_load_1): Run integrity checks if requested.
7747 (maintenance_check_libthread_db): New function.
7748 (_initialize_thread_db): Register "maint check libthread-db"
7749 and "maint set/show check-libthread-db".
7750 * NEWS: Mention the above new commands.
7751
7752 2018-06-08 Tom Tromey <tom@tromey.com>
7753
7754 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
7755 now a method.
7756
7757 2018-06-08 Tom Tromey <tom@tromey.com>
7758
7759 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
7760
7761 2018-06-08 Tom Tromey <tom@tromey.com>
7762
7763 * common/btrace-common.h (struct btrace_data): Add constructor,
7764 destructor, move assignment operator.
7765 <empty, clear, fini>: New methods.
7766 <format>: Initialize.
7767 (btrace_data_init, btrace_data_fini, btrace_data_clear)
7768 (btrace_data_empty): Don't declare.
7769 * common/btrace-common.c (btrace_data_init): Remove.
7770 (btrace_data::fini): Rename from btrace_data_fini.
7771 (btrace_data::empty): Rename from btrace_data_empty.
7772 (btrace_data::clear): Rename from btrace_data_clear. Return
7773 bool.
7774 * btrace.h (make_cleanup_btrace_data): Don't declare.
7775 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
7776 (parse_xml_btrace): Update.
7777 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
7778 (maint_btrace_clear_packet_history_cmd): Update.
7779
7780 2018-06-07 Pedro Alves <palves@redhat.com>
7781
7782 * target.h (target_ops) <beneath>: Now a method. All references
7783 updated.
7784 (class target_stack): New.
7785 * target.c (g_target_stack): New.
7786 (g_current_top_target): Delete.
7787 (current_top_target): Get the top target out of g_target_stack.
7788 (target_stack::push, target_stack::unpush): New.
7789 (push_target, unpush_target): Reimplement.
7790 (target_is_pushed): Reimplement in terms of g_target_stack.
7791 (target_ops::beneath, target_stack::find_beneath): New.
7792
7793 2018-06-07 Pedro Alves <palves@redhat.com>
7794
7795 * target.h (find_target_beneath): Delete declaration.
7796 * target.c (find_target_beneath): Delete definition.
7797 * aix-thread.c: All callers of find_target_beneath adjusted to
7798 call target_ops::beneath instead.
7799 * bsd-uthread.c: Likewise.
7800 * linux-thread-db.c: Likewise.
7801 * ravenscar-thread.c: Likewise.
7802 * sol-thread.c: Likewise.
7803 * spu-multiarch.c: Likewise.
7804
7805 2018-06-07 Pedro Alves <palves@redhat.com>
7806
7807 * target.h (target_ops) <beneath>: Now a method. All references
7808 updated.
7809 (target_ops) <m_beneath>: New.
7810 * target.c (target_ops::beneath): New.
7811 * corelow.c: Adjust all references to target_ops::beneath.
7812 * linux-thread-db.c: Likewise.
7813 * make-target-delegates: Likewise.
7814 * record-btrace.c: Likewise.
7815 * record-full.c: Likewise.
7816 * remote.c: Likewise.
7817 * target.c: Likewise.
7818 * target-delegates.c: Regenerate.
7819
7820 2018-06-07 Pedro Alves <palves@redhat.com>
7821
7822 * target.h (target_stack): Delete.
7823 (current_top_target): Declare function.
7824 * target.c (target_stack): Delete.
7825 (g_current_top_target): New.
7826 (current_top_target): New function.
7827 * auxv.c: Use current_top_target instead of target_stack
7828 throughout.
7829 * avr-tdep.c: Likewise.
7830 * breakpoint.c: Likewise.
7831 * corefile.c: Likewise.
7832 * elfread.c: Likewise.
7833 * eval.c: Likewise.
7834 * exceptions.c: Likewise.
7835 * frame.c: Likewise.
7836 * gdbarch-selftests.c: Likewise.
7837 * gnu-v3-abi.c: Likewise.
7838 * ia64-tdep.c: Likewise.
7839 * ia64-vms-tdep.c: Likewise.
7840 * infcall.c: Likewise.
7841 * infcmd.c: Likewise.
7842 * infrun.c: Likewise.
7843 * linespec.c: Likewise.
7844 * linux-tdep.c: Likewise.
7845 * minsyms.c: Likewise.
7846 * ppc-linux-nat.c: Likewise.
7847 * ppc-linux-tdep.c: Likewise.
7848 * procfs.c: Likewise.
7849 * regcache.c: Likewise.
7850 * remote.c: Likewise.
7851 * rs6000-tdep.c: Likewise.
7852 * s390-linux-nat.c: Likewise.
7853 * s390-tdep.c: Likewise.
7854 * solib-aix.c: Likewise.
7855 * solib-darwin.c: Likewise.
7856 * solib-dsbt.c: Likewise.
7857 * solib-spu.c: Likewise.
7858 * solib-svr4.c: Likewise.
7859 * solib-target.c: Likewise.
7860 * sparc-tdep.c: Likewise.
7861 * sparc64-tdep.c: Likewise.
7862 * spu-tdep.c: Likewise.
7863 * symfile.c: Likewise.
7864 * symtab.c: Likewise.
7865 * target-descriptions.c: Likewise.
7866 * target-memory.c: Likewise.
7867 * target.c: Likewise.
7868 * target.h: Likewise.
7869 * tracefile-tfile.c: Likewise.
7870 * tracepoint.c: Likewise.
7871 * valops.c: Likewise.
7872 * valprint.c: Likewise.
7873 * value.c: Likewise.
7874 * windows-tdep.c: Likewise.
7875 * mi/mi-main.c: Likewise.
7876
7877 2018-06-07 Tom Tromey <tom@tromey.com>
7878
7879 * valprint.h (build_address_symbolic): Declare.
7880 * printcmd.c (print_address_symbolic): Update.
7881 (build_address_symbolic): Change "name" and "filename" to
7882 std::string.
7883 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
7884 Update.
7885 * defs.h (build_address_symbolic): Remove declaration.
7886
7887 2018-06-07 Alan Hayward <alan.hayward@arm.com>
7888
7889 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
7890 (aarch64_vnv_type): Add function.
7891 (aarch64_pseudo_register_name): Add V regs for SVE.
7892 (aarch64_pseudo_register_type): Likewise.
7893 (aarch64_pseudo_register_reggroup_p): Likewise.
7894 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
7895 (aarch64_pseudo_read_value): Add V regs for SVE.
7896 (aarch64_pseudo_write_2): Use V0 offset for SVE
7897 (aarch64_pseudo_write): Add V regs for SVE.
7898 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
7899
7900 2018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
7901
7902 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
7903 (sve_vl_from_vq): Likewise.
7904
7905 2018-06-05 Tom Tromey <tom@tromey.com>
7906
7907 * cli/cli-cmds.c (show_version): Update.
7908 * top.c (print_gdb_version): Add "interactive" parameter.
7909 Update.
7910 * main.c (captured_main_1): Update.
7911 * top.h (print_gdb_version): Add "interactive" parameter and a
7912 comment.
7913
7914 2018-06-05 David Malcolm <dmalcolm@redhat.com>
7915
7916 * common/enum-flags.h: Add trailing semicolon to example in
7917 comment.
7918
7919 2018-06-05 Tom Tromey <tom@tromey.com>
7920
7921 PR cli/12326:
7922 * NEWS: Add entry about pager.
7923 * utils.c (pagination_disabled_for_command): New global.
7924 (prompt_for_continue): Allow "c" response to prompt.
7925 (reinitialize_more_filter): Clear
7926 pagination_disabled_for_command.
7927 (fputs_maybe_filtered): Check pagination_disabled_for_command.
7928
7929 2018-06-04 Tom Tromey <tom@tromey.com>
7930
7931 * ada-lang.h (ada_lookup_symbol_list): Update.
7932 * ada-lang.c (resolve_subexp): Update.
7933 (symbols_are_identical_enums): Change type of syms. Remove nsyms
7934 parameter.
7935 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
7936 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
7937 results parameter to std::vector.
7938 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
7939 Update.
7940 * ada-exp.y (block_lookup): Update.
7941 (select_possible_type_sym): Change type of syms. Remove nsyms
7942 parameter.
7943 (write_var_or_type, write_name_assoc): Update.
7944
7945 2018-06-04 Joel Brobecker <brobecker@adacore.com>
7946
7947 * windows-nat.c (windows_nat_target::xfer_partial): Return
7948 TARGET_XFER_E_IO if we need to delegate to the target beneath
7949 but BENEATH is NULL.
7950
7951 2018-06-04 Simon Marchi <simon.marchi@ericsson.com>
7952
7953 * Makefile.in (config.status): Add configure.nat as a
7954 dependency.
7955
7956 2018-06-04 Tom Tromey <tom@tromey.com>
7957
7958 * cp-name-parser.y (cpname_state): Add method declarations.
7959 (HANDLE_QUAL): Update.
7960 (cpname_state::d_grab, cpname_state::fill_comp)
7961 (cpname_state::make_operator, cpname_state::make_dtor)
7962 (cpname_state::make_builtin_type, cpname_state::make_name)
7963 (cpname_state::d_qualify, cpname_state::d_int_type)
7964 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
7965 (%union): Move earlier.
7966
7967 2018-06-04 Alan Hayward <alan.hayward@arm.com>
7968
7969 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
7970
7971 2018-06-04 Alan Hayward <alan.hayward@arm.com>
7972
7973 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
7974 (aarch64_pseudo_write_1): Likewise.
7975 (aarch64_pseudo_read_value): Use helper.
7976 (aarch64_pseudo_write): Likewise.
7977
7978 2018-06-04 Pedro Alves <palves@redhat.com>
7979
7980 * darwin-nat.c (darwin_ops): Delete.
7981 (darwin_attach_pid): Use get_native_target.
7982
7983 2018-06-04 Alan Hayward <alan.hayward@arm.com>
7984
7985 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
7986 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
7987
7988 2018-06-04 Alan Hayward <alan.hayward@arm.com>
7989
7990 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
7991 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
7992 (aarch64_gdbarch_init): Check for SVE.
7993 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
7994
7995 2018-06-04 Alan Hayward <alan.hayward@arm.com>
7996
7997 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
7998 * aarch64-tdep.h (aarch64_read_description): Likewise.
7999 * arch/aarch64.c (aarch64_create_target_description): Likewise.
8000 * arch/aarch64.h (aarch64_create_target_description): Likewise.
8001 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
8002 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
8003 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
8004
8005 2018-06-02 Simon Marchi <simon.marchi@ericsson.com>
8006
8007 * value.c (value_fetch_lazy_bitfield): New.
8008 (value_fetch_lazy_memory): New.
8009 (value_fetch_lazy_register): New.
8010 (value_fetch_lazy): Factor out to smaller functions.
8011
8012 2018-06-01 Tom Tromey <tom@tromey.com>
8013
8014 * cp-name-parser.y (backslashable, represented): Now const.
8015
8016 2018-06-01 Tom Tromey <tom@tromey.com>
8017
8018 * cp-name-parser.y: Include parser-defs.h.
8019 (parser_fprintf): Remove declaration.
8020
8021 2018-06-01 Tom Tromey <tom@tromey.com>
8022
8023 * cp-name-parser.y: Use %pure-parser, %lex-param, and
8024 %parse-param.
8025 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
8026 (global_result): Remove globals.
8027 (struct cpname_state): New.
8028 (yyparse): Don't declare.
8029 (yylex, yyerror): Move declarations after %union.
8030 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
8031 (make_name): Add state parameter.
8032 Update all callers.
8033 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
8034 parameter.
8035 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
8036 Update.
8037 (yylex): Add lvalp, state parameters.
8038 (yyerror): Add state parameter.
8039 (cp_demangled_name_to_comp): Update.
8040
8041 2018-06-01 Tom Tromey <tom@tromey.com>
8042
8043 * cp-name-parser.y (parser_fprintf): Declare.
8044 (GDB_YY_REMAP_PREFIX): Define.
8045 Include yy-remap.h. Don't redefine yy* identifiers.
8046
8047 2018-06-01 Tom Tromey <tom@tromey.com>
8048
8049 * python/py-type.c (typy_legacy_template_argument): Update.
8050 * cp-support.h (cp_demangled_name_to_comp): Update.
8051 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
8052 parameter to be a "std::string *".
8053 (main): Update.
8054
8055 2018-06-01 H.J. Lu <hongjiu.lu@intel.com>
8056
8057 * ada-lex.l: Include "diagnostics.h" instead of
8058 "common/diagnostics.h".
8059 * unittests/environ-selftests.c: Likewise.
8060 * common/diagnostics.h: Moved to ../include.
8061
8062 2018-06-01 Joel Brobecker <brobecker@adacore.com>
8063
8064 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
8065 to language_mode_manual while calling breakpoint_re_set_one.
8066
8067 2018-06-01 Tom Tromey <tom@tromey.com>
8068
8069 * valops.c (value_cast_structs, destructor_name_p): Update.
8070 * symtab.c (gdb_mangle_name): Update.
8071 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
8072 Update.
8073 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
8074 (pascal_object_print_value_fields, pascal_object_print_value):
8075 Update.
8076 * p-typeprint.c (pascal_type_print_derivation_info): Update.
8077 * linespec.c (find_methods): Update.
8078 * gdbtypes.h (type_name_no_tag): Remove.
8079 (type_name_or_error): Rename from type_name_no_tag_or_error.
8080 * gdbtypes.c (type_name_no_tag): Remove.
8081 (type_name_or_error): Rename from type_name_no_tag_or_error.
8082 (lookup_struct_elt_type, check_typedef): Update.
8083 * expprint.c (print_subexp_standard): Update.
8084 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
8085 * d-namespace.c (d_lookup_nested_symbol): Update.
8086 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
8087 (cp_print_class_member): Update.
8088 * cp-namespace.c (cp_lookup_nested_symbol): Update.
8089 * completer.c (add_struct_fields): Update.
8090 * c-typeprint.c (cp_type_print_derivation_info)
8091 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
8092 Update.
8093 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
8094 (ada_prefer_type, ada_is_exception_sym): Update.
8095
8096 2018-06-01 Tom Tromey <tom@tromey.com>
8097
8098 * valops.c (enum_constant_from_type, value_namespace_elt)
8099 (value_maybe_namespace_elt): Update.
8100 * valarith.c (find_size_for_pointer_math): Update.
8101 * target-descriptions.c (make_gdb_type): Update.
8102 * symmisc.c (print_symbol): Update.
8103 * stabsread.c (define_symbol, read_type)
8104 (complain_about_struct_wipeout, add_undefined_type)
8105 (cleanup_undefined_types_1): Update.
8106 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
8107 (rust_range_type_p, val_print_struct, rust_print_struct_def)
8108 (rust_internal_print_type, rust_composite_type)
8109 (rust_evaluate_funcall, rust_evaluate_subexp)
8110 (rust_inclusive_range_type_p): Update.
8111 * python/py-type.c (typy_get_tag): Update.
8112 * p-typeprint.c (pascal_type_print_base): Update.
8113 * mdebugread.c (parse_symbol, parse_type): Update.
8114 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
8115 Update.
8116 * guile/scm-type.c (gdbscm_type_tag): Update.
8117 * go-lang.c (sixg_string_p): Update.
8118 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
8119 Update.
8120 * gdbtypes.h (struct main_type) <tag_name>: Remove.
8121 (TYPE_TAG_NAME): Remove.
8122 * gdbtypes.c (type_name_no_tag): Simplify.
8123 (check_typedef, check_types_equal, recursive_dump_type)
8124 (copy_type_recursive, arch_composite_type): Update.
8125 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
8126 in summary mode when needed.
8127 * eval.c (evaluate_funcall): Update.
8128 * dwarf2read.c (fixup_go_packaging, read_structure_type)
8129 (process_structure_scope, read_enumeration_type)
8130 (read_namespace_type, read_module_type, determine_prefix): Update.
8131 * cp-support.c (inspect_type): Update.
8132 * coffread.c (process_coff_symbol, decode_base_type): Update.
8133 * c-varobj.c (c_is_path_expr_parent): Update.
8134 * c-typeprint.c (c_type_print_base_struct_union): Update.
8135 (c_type_print_base_1): Update. Print struct/class/union/enum in
8136 summary when using C language.
8137 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
8138 (gen_maybe_namespace_elt): Update.
8139 * ada-lang.c (ada_type_name): Simplify.
8140 (empty_record, ada_template_to_fixed_record_type_1)
8141 (template_to_static_fixed_type)
8142 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
8143
8144 2018-06-01 Tom Tromey <tom@tromey.com>
8145
8146 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
8147 c_print_type.
8148 * c-typeprint.c (c_print_type_1): Add "language" parameter.
8149 (c_print_type): Update.
8150 (c_print_type): New overload.
8151 (c_type_print_varspec_prefix, c_type_print_args)
8152 (c_type_print_varspec_suffix, c_print_type_no_offsets)
8153 (c_type_print_base_struct_union, c_type_print_base_1)
8154 (cp_type_print_method_args): Add "language" parameter.
8155 (c_type_print_base): Update.
8156 * c-lang.h (c_print_type): Add new overload.
8157
8158 2018-06-01 Tom Tromey <tom@tromey.com>
8159
8160 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
8161 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
8162
8163 2018-06-01 Alan Hayward <alan.hayward@arm.com>
8164
8165 * aarch64-tdep.c (aarch64_sve_register_names): New const
8166 var.
8167 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
8168 (AARCH64_SVE_Z_REGS_NUM): New define.
8169 (AARCH64_SVE_P_REGS_NUM): Likewise.
8170 (AARCH64_SVE_NUM_REGS): Likewise.
8171
8172 2018-05-31 Uros Bizjak <ubizjak@gmail.com>
8173
8174 * nat/linux-ptrace.h [__alpha__]
8175 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
8176 definitions.
8177
8178 2018-05-31 Maciej W. Rozycki <macro@mips.com>
8179
8180 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
8181 the endianness selected.
8182 * NEWS: Document `set endian auto' mode operation update.
8183
8184 2018-05-31 Alan Hayward <alan.hayward@arm.com>
8185
8186 * Makefile.in: Add new header.
8187 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
8188 (sve_vl_from_vg): Likewise.
8189 (sve_vq_from_vl): Likewise.
8190 (sve_vl_from_vq): Likewise.
8191 (sve_vq_from_vg): Likewise.
8192 (sve_vg_from_vq): Likewise.
8193 * configure.nat: Add new c file.
8194 * nat/aarch64-sve-linux-ptrace.c: New file.
8195 * nat/aarch64-sve-linux-ptrace.h: New file.
8196
8197 2018-05-31 Alan Hayward <alan.hayward@arm.com>
8198
8199 * aarch64-linux-nat.c (aarch64_linux_read_description):
8200 Add parmeter zero.
8201 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
8202 Likewise.
8203 * aarch64-tdep.c (tdesc_aarch64_list): Add.
8204 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
8205 (aarch64_gdbarch_init): Add parmeter zero.
8206 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
8207 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
8208 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
8209 parmeter.
8210 * doc/gdb.texinfo: Describe SVE feature
8211 * features/aarch64-sve.c: New file.
8212
8213 2018-05-31 Omair Javaid <omair.javaid@linaro.org>
8214
8215 PR gdb/23210
8216 * gdbarch.sh (significant_addr_bit): Default to zero when
8217 not set by target architecture.
8218 * gdbarch.c: Re-generated.
8219 * utils.c (address_significant): Update.
8220
8221 2018-05-30 Joel Brobecker <brobecker@adacore.com>
8222
8223 * stack.c (func_command): Remove trailing newline in call to error.
8224
8225 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8226
8227 * regcache.h (regcache_raw_collect): Remove, update callers to
8228 use regcache::raw_collect.
8229 * regcache.c (regcache_raw_collect): Remove.
8230
8231 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8232
8233 * regcache.h (regcache_raw_supply): Remove, update callers to
8234 use detached_regcache::raw_supply.
8235 * regcache.c (regcache_raw_supply): Remove.
8236
8237 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8238
8239 * regcache.h (regcache_cooked_write_part): Remove, update
8240 callers to use regcache::cooked_write_part.
8241 * regcache.c (regcache_cooked_write_part): Remove.
8242
8243 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8244
8245 * regcache.h (regcache_cooked_read_part): Remove, update callers
8246 to use readable_regcache::cooked_read_part.
8247 * regcache.c (regcache_cooked_read_part): Remove.
8248
8249 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8250
8251 * regcache.h (regcache_cooked_read_value): Remove, update
8252 callers to use readable_regcache::cooked_read_value.
8253 * regcache.c (regcache_cooked_read_value): Remove.
8254
8255 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8256
8257 * regcache.h (regcache_cooked_write): Remove, update callers to
8258 use regcache::cooked_write.
8259 * regcache.c (regcache_cooked_write): Remove.
8260
8261 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8262
8263 * regcache.h (regcache_invalidate): Remove, update callers to
8264 use detached_regcache::invalidate instead.
8265 * regcache.c (regcache_invalidate): Remove.
8266
8267 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8268
8269 * regcache.h (regcache_raw_write_part): Remove, update callers
8270 to use regcache::raw_write_part instead.
8271 * regcache.c (regcache_raw_write_part): Remove.
8272
8273 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8274
8275 * regcache.h (regcache_raw_read_part): Remove, update callers to
8276 use readable_regcache::raw_read_part instead.
8277 * regcache.c (regcache_raw_read_part): Remove.
8278
8279 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8280
8281 * regcache.h (regcache_cooked_read): Remove, update callers to
8282 use readable_regcache::cooked_read instead.
8283 * regcache.c (regcache_cooked_read): Remove.
8284
8285 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8286
8287 * regcache.h (regcache_raw_write): Remove, update callers to use
8288 regcache::raw_write instead.
8289 * regcache.c (regcache_raw_write): Remove.
8290
8291 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8292
8293 * regcache.h (regcache_raw_read): Remove, update callers to use
8294 readable_regcache::raw_read instead.
8295 * regcache.c (regcache_raw_read): Remove.
8296
8297 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8298
8299 * regcache.h (regcache_raw_update): Remove, update callers to
8300 use readable_regcache::raw_update instead.
8301 * regcache.c (regcache_raw_update): Remove.
8302
8303 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8304
8305 * regcache.h (regcache_register_status): Remove, update callers
8306 to use reg_buffer::get_register_status directly instead.
8307 * regcache.c (regcache_register_status): Remove.
8308
8309 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8310
8311 * regcache.h (regcache_get_ptid): Remove, update all callers to
8312 call regcache::ptid instead.
8313 * regcache.c (regcache_get_ptid): Remove.
8314
8315 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
8316
8317 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
8318
8319 2018-05-30 Pedro Alves <palves@redhat.com>
8320
8321 * common/common-exceptions.h (exception_rethrow): Use
8322 ATTRIBUTE_NORETURN.
8323
8324 2018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
8325
8326 * breakpoint.c (print_solib_event, check_status_catch_solib):
8327 Remove struct keyword in range-based for loops.
8328 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
8329 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
8330 Likewise.
8331 * linespec.c (find_superclass_methods, search_minsyms_for_name):
8332 Likewise.
8333 * symfile.c (addr_info_make_relative): Likewise.
8334 * thread.c (value_in_thread_stack_temporaries): Likewise.
8335
8336 2018-06-12 Weimin Pan <weimin.pan@oracle.com>
8337
8338 PR gdb/16841
8339 * valops.c (value_struct_elt_for_reference): Call check_typedef on
8340 aggregate type to get its real type before accessing it.
8341
8342 2018-05-29 Weimin Pan <weimin.pan@oracle.com>
8343
8344 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
8345 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
8346 * coff-pe-read.c (add_pe_forwarded_sym): Replace
8347 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
8348 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
8349 * jit.c (jit_breakpoint_re_set_internal): Likewise.
8350 * printcmd.c (info_address_command): Likewise.
8351
8352 2018-05-29 Tom Tromey <tom@tromey.com>
8353
8354 * windows-nat.c (handle_exception): Update fall-through comment.
8355
8356 2018-05-29 Tom Tromey <tom@tromey.com>
8357
8358 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
8359 (struct program_space) <added_solibs>: Now a std::vector.
8360 * breakpoint.c (print_solib_event): Update.
8361 (check_status_catch_solib): Update.
8362 * progspace.c (clear_program_space_solib_cache): Update.
8363 * solib.c (update_solib_list): Update.
8364
8365 2018-05-29 Tom Tromey <tom@tromey.com>
8366
8367 * python/py-type.c (typy_richcompare): Update.
8368 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
8369 * gdbtypes.h (types_deeply_equal): Return bool.
8370 (types_equal): Likewise.
8371 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
8372 declare VEC.
8373 (check_types_equal): Change worklist to std::vector. Return
8374 bool.
8375 (struct type_equality_entry): Add constructor.
8376 (compare_maybe_null_strings): Return bool.
8377 (check_types_worklist): Return bool. Change worklist to
8378 std::vector.
8379 (types_deeply_equal): Use std::vector.
8380 (types_equal): Return bool.
8381 (compare_maybe_null_strings): Simplify.
8382
8383 2018-05-29 Tom Tromey <tom@tromey.com>
8384
8385 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
8386
8387 2018-05-29 Tom Tromey <tom@tromey.com>
8388
8389 * objc-lang.h: Don't include cp-support.h.
8390 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
8391 declare VEC.
8392
8393 2018-05-27 Tom Tromey <tom@tromey.com>
8394
8395 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
8396
8397 2018-05-25 Tom Tromey <tom@tromey.com>
8398
8399 * value.c (value::location): Initialize.
8400
8401 2018-05-25 Tom Tromey <tom@tromey.com>
8402
8403 * dbxread.c (init_bincl_list): Remove.
8404 (bincl_list): Now a std::vector.
8405 (bincls_allocated, next_bincl): Remove.
8406 (free_bincl_list, do_free_bincl_list_cleanup)
8407 (make_cleanup_free_bincl_list): Remove.
8408 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
8409 unique_xmalloc_ptr.
8410 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
8411 (struct header_file_location): Add constructor.
8412 (add_bincl_to_list): Remove.
8413
8414 2018-05-25 Tom Tromey <tom@tromey.com>
8415
8416 * tui/tui.c (tui_enable): Update.
8417 * mi/mi-interp.c (mi_interp::init): Update.
8418 * interps.h (class interp) <name>: New method.
8419 <m_name>: Rename from name.
8420 (~scoped_restore_interp): Update.
8421 * interps.c (interp::interp): Update.
8422 (interp_add, interp_set, interp_lookup_existing)
8423 (current_interp_named_p): Update.
8424
8425 2018-05-25 Tom Tromey <tom@tromey.com>
8426
8427 * interps.c (interp_name): Remove.
8428 * mi/mi-interp.c (mi_interp::init): Update.
8429 * interps.h (interp_name): Remove.
8430 (~scoped_restore_interp): Update.
8431 * tui/tui.c (tui_enable): Update.
8432
8433 2018-05-25 Tom Tromey <tom@tromey.com>
8434
8435 * utils.c (fputs_maybe_filtered): Update.
8436 * linespec.c (decode_line_full): Update.
8437 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
8438 (mi_print_breakpoint_for_event, mi_solib_loaded)
8439 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
8440 (mi_user_selected_context_changed): Update.
8441 * mi/mi-main.c (mi_execute_command): Update.
8442 * cli/cli-script.c (execute_control_command): Update.
8443 * python/python.c (execute_gdb_command): Update.
8444 * solib.c (info_sharedlibrary_command): Update.
8445 * interps.c (interp_ui_out): Remove.
8446 * interps.h (interp_ui_out): Remove.
8447
8448 2018-05-25 Tom Tromey <tom@tromey.com>
8449
8450 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
8451 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
8452 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
8453
8454 2018-05-25 Tom Tromey <tom@tromey.com>
8455
8456 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
8457 * interps.c (interp_exec): Use scoped_restore.
8458
8459 2018-05-25 Tom Tromey <tom@tromey.com>
8460
8461 * remote.c (remote_target::remote_file_get): Use
8462 gdb::byte_vector.
8463 (remote_target::remote_file_put): Likewise.
8464
8465 2018-05-25 Tom Tromey <tom@tromey.com>
8466
8467 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
8468 a std::string.
8469 (get_pe_section_index, add_pe_exported_sym): Update.
8470 (read_pe_exported_syms): Use gdb::def_vector.
8471
8472 2018-05-25 Tom Tromey <tom@tromey.com>
8473
8474 * frame.c (remove_prev_frame): Remove.
8475 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
8476
8477 2018-05-25 Maciej W. Rozycki <macro@mips.com>
8478
8479 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
8480 Remove prototypes.
8481 * mips-linux-nat.c (supply_fpregset): Always call
8482 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
8483 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
8484 `mips_fill_fpregset'.
8485 * mips-linux-tdep.c (mips_supply_fpregset)
8486 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
8487 (mips_fill_fpregset_wrapper): Remove functions.
8488 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
8489 (mips_linux_fpregset): Remove variable.
8490 (mips_linux_iterate_over_regset_sections): Use
8491 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
8492 (mips_linux_o32_sigframe_init): Remove comment.
8493
8494 2018-05-25 Pedro Alves <palves@redhat.com>
8495
8496 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
8497 (struct readahead_cache, struct packet_reg, struct
8498 remote_arch_state, class remote_state): Move higher up in the
8499 file.
8500 (remote_target::m_remote_state): Now an object instead of a pointer.
8501 (remote_target::get_remote_state): Adjust.
8502
8503 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
8504
8505 * stack.c (select_and_print_frame): Delete.
8506 (struct function_bounds): Move struct within function.
8507 (func_command): Most content moved into new function
8508 find_frame_for_function, use new function, print result, add
8509 function comment.
8510 (find_frame_for_function): New function, now returns a result.
8511
8512 2018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8513
8514 * stack.c (iterate_over_block_arg_vars): Fix comment.
8515 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
8516
8517 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
8518
8519 PR gdb/23203
8520 * frame.c
8521 (scoped_restore_selected_frame::scoped_restore_selected_frame):
8522 Define.
8523 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
8524 Define.
8525 * frame.h (class scoped_restore_selected_frame): New class.
8526 * stack.c (print_frame_local_vars): Remove catching and rethrowing
8527 of any exception, use scoped_restore_selected_frame to restore the
8528 frame instead.
8529
8530 2018-05-24 Pedro Alves <palves@redhat.com>
8531
8532 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
8533 override.
8534
8535 2018-05-23 Tom Tromey <tom@tromey.com>
8536
8537 * complaints.c (struct complaints): Remove.
8538 (symfile_complaint_book): Remove.
8539 (series): New global.
8540 (complaint_internal): Update.
8541 (clear_complaints): Update.
8542
8543 2018-05-23 Tom Tromey <tom@tromey.com>
8544
8545 * complaints.c (counters): New global.
8546 (struct complain): Remove.
8547 (struct complaints) <root>: Remove.
8548 (complaint_sentinel): Remove.
8549 (symfile_complaint_book): Update.
8550 (find_complaint) Remove.
8551 (complaint_internal, clear_complaints): Update.
8552
8553 2018-05-23 Tom Tromey <tom@tromey.com>
8554
8555 * complaints.c (struct complain) <file, line>: Remove.
8556 (find_complaint): Remove file, line parameters.
8557 (complaint_internal): Update.
8558
8559 2018-05-23 Tom Tromey <tom@tromey.com>
8560
8561 * complaints.c (vcomplaint): Remove.
8562 (complaint_internal) Merge in contents of vcomplaint.
8563
8564 2018-05-23 Tom Tromey <tom@tromey.com>
8565
8566 * complaints.c (struct complaints) <explanation>: Remove.
8567 (symfile_explanations): Remove.
8568 (symfile_complaint_book): Update.
8569 (vcomplaint): Update.
8570 (struct explanation): Remove.
8571
8572 2018-05-23 Tom Tromey <tom@tromey.com>
8573
8574 * complaints.c (symfile_complaints): Remove.
8575 (complaint_internal): Remove "complaints" parameter.
8576 (clear_complaints, vcomplaint): Remove "c" parameter.
8577 (get_complaints): Remove.
8578 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
8579 (dwarf2_debug_line_missing_file_complaint)
8580 (dwarf2_debug_line_missing_end_sequence_complaint)
8581 (dwarf2_complex_location_expr_complaint)
8582 (dwarf2_const_value_length_mismatch_complaint)
8583 (dwarf2_section_buffer_overflow_complaint)
8584 (dwarf2_macro_malformed_definition_complaint)
8585 (dwarf2_invalid_attrib_class_complaint)
8586 (create_addrmap_from_index, dw2_symtab_iter_next)
8587 (dw2_expand_marked_cus)
8588 (dw2_debug_names_iterator::find_vec_in_debug_names)
8589 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
8590 (create_debug_type_hash_table, init_cutu_and_read_dies)
8591 (partial_die_parent_scope, add_partial_enumeration)
8592 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
8593 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
8594 (read_import_statement, read_file_scope, create_dwo_cu_reader)
8595 (create_cus_hash_table, create_dwp_hash_table)
8596 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
8597 (dwarf2_rnglists_process, dwarf2_ranges_process)
8598 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
8599 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
8600 (handle_struct_member_die, process_structure_scope)
8601 (read_array_type, read_common_block, read_module_type)
8602 (read_tag_pointer_type, read_typedef, read_base_type)
8603 (read_subrange_type, load_partial_dies, partial_die_info::read)
8604 (partial_die_info::read, partial_die_info::read)
8605 (partial_die_info::read, read_checked_initial_length_and_offset)
8606 (dwarf2_string_attr, read_formatted_entries)
8607 (dwarf_decode_line_header)
8608 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
8609 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
8610 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
8611 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
8612 (get_signatured_type, get_DW_AT_signature_type)
8613 (decode_locdesc, file_file_name, consume_improper_spaces)
8614 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
8615 (dwarf_decode_macro_bytes, dwarf_decode_macros)
8616 (dwarf2_symbol_mark_computed, set_die_type)
8617 (read_attribute_value): Update.
8618 * stap-probe.c (handle_stap_probe, get_stap_base_address):
8619 Update.
8620 * dbxread.c (unknown_symtype_complaint)
8621 (lbrac_mismatch_complaint, repeated_header_complaint)
8622 (set_namestring, function_outside_compilation_unit_complaint)
8623 (read_dbx_symtab, process_one_symbol): Update.
8624 * gdbtypes.c (stub_noname_complaint): Update.
8625 * windows-nat.c (handle_unload_dll): Update.
8626 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
8627 (decode_base_type): Update.
8628 * xcoffread.c (bf_notfound_complaint, ef_complaint)
8629 (eb_complaint, record_include_begin, record_include_end)
8630 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
8631 (process_xcoff_symbol, read_symbol)
8632 (function_outside_compilation_unit_complaint)
8633 (scan_xcoff_symtab): Update.
8634 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
8635 * buildsym.c (finish_block_internal, make_blockvector)
8636 (end_symtab_get_static_block, augment_type_symtab): Update.
8637 * dtrace-probe.c (dtrace_process_dof)
8638 (dtrace_static_probe_ops::get_probes): Update.
8639 * complaints.h (struct complaint): Don't declare.
8640 (symfile_complaints): Remove.
8641 (complaint_internal): Remove "complaints" parameter.
8642 (complaint): Likewise.
8643 (clear_complaints): Likewise.
8644 * symfile.c (syms_from_objfile_1, finish_new_objfile)
8645 (reread_symbols): Update.
8646 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
8647 (dwarf2_frame_cache, decode_frame_entry): Update.
8648 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
8649 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8650 (info_selectors_command): Update.
8651 * macrotab.c (macro_include, check_for_redefinition)
8652 (macro_undef): Update.
8653 * objfiles.c (filter_overlapping_sections): Update.
8654 * stabsread.c (invalid_cpp_abbrev_complaint)
8655 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
8656 (define_symbol, error_type, read_type, rs6000_builtin_type)
8657 (stabs_method_name_from_physname, read_member_functions)
8658 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
8659 (attach_fields_to_type, complain_about_struct_wipeout)
8660 (read_range_type, read_args, common_block_start)
8661 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
8662 Update.
8663 * mdebugread.c (index_complaint, unknown_ext_complaint)
8664 (basic_type_complaint, bad_tag_guess_complaint)
8665 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
8666 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
8667 (parse_procedure, parse_lines)
8668 (function_outside_compilation_unit_complaint)
8669 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
8670 (bad_tag_guess_complaint, reg_value_complaint): Update.
8671 * cp-support.c (demangled_name_complaint): Update.
8672 * macroscope.c (sal_macro_scope): Update.
8673 * dwarf-index-write.c (class debug_names): Update.
8674
8675 2018-05-23 Tom Tromey <tom@tromey.com>
8676
8677 * complaints.c (clear_complaints): Remove "noisy" parameter.
8678 * complaints.h (clear_complaints): Update.
8679 * symfile.c (syms_from_objfile_1, finish_new_objfile)
8680 (reread_symbols): Update.
8681
8682 2018-05-23 Tom Tromey <tom@tromey.com>
8683
8684 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
8685 SUBSEQUENT_MESSAGE.
8686 (vcomplaint, clear_complaints): Update.
8687 (symfile_explanations): Remove some messages.
8688
8689 2018-05-23 Tom Tromey <tom@tromey.com>
8690
8691 * complaints.c (internal_complaint): Remove.
8692 * complaints.h (internal_complaint): Remove.
8693
8694 2018-05-22 Maciej W. Rozycki <macro@mips.com>
8695
8696 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
8697
8698 2018-05-22 Pedro Alves <palves@redhat.com>
8699
8700 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
8701 (remote_fileio_badfd, remote_fileio_return_errno)
8702 (remote_fileio_return_success, remote_fileio_func_open)
8703 (remote_fileio_func_open, remote_fileio_func_close)
8704 (remote_fileio_func_read, remote_fileio_func_write)
8705 (remote_fileio_func_lseek, remote_fileio_func_rename)
8706 (remote_fileio_func_unlink, remote_fileio_func_stat)
8707 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
8708 (remote_fileio_func_isatty, remote_fileio_func_system): Add
8709 remote_target parameter.
8710 (remote_fio_func_map) <func>: Add remote_target parameter.
8711 (do_remote_fileio_request, remote_fileio_request):
8712 * remote-fileio.h (remote_fileio_request):
8713 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
8714 remote_target parameter.
8715 (remote_notif_process, handle_notification): Adjust to pass down
8716 the remote.
8717 (remote_notif_state_allocate): Add remote_target parameter. Save
8718 it.
8719 * remote-notif.h (struct remote_target): Forward declare.
8720 (struct notif_client) <parse, ack, can_get_pending_events>: Add
8721 remote_target parameter.
8722 (struct remote_notif_state) <remote>: New field.
8723 (remote_notif_ack, remote_notif_parse): Add remote_target
8724 parameter.
8725 (remote_notif_state_allocate, remote_notif_state_allocate): Add
8726 remote_target parameter.
8727 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
8728 (threads_listing_context, rmt_thread_action, protocol_feature)
8729 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
8730 (packet_result, struct threads_listing_context, remote_state):
8731 Move definitions and declarations higher up.
8732 (remote_target) <~remote_target>: Declare.
8733 (remote_download_command_source, remote_file_put, remote_file_get)
8734 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
8735 (remote_hostio_pread_vFile, remote_hostio_send_command)
8736 (remote_hostio_set_filesystem, remote_hostio_open)
8737 (remote_hostio_close, remote_hostio_unlink, remote_state)
8738 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
8739 (get_memory_write_packet_size, get_memory_read_packet_size)
8740 (append_pending_thread_resumptions, remote_detach_1)
8741 (append_resumption, remote_resume_with_vcont)
8742 (add_current_inferior_and_thread, wait_ns, wait_as)
8743 (process_stop_reply, remote_notice_new_inferior)
8744 (process_initial_stop_replies, remote_add_thread)
8745 (btrace_sync_conf, remote_btrace_maybe_reopen)
8746 (remove_new_fork_children, kill_new_fork_children)
8747 (discard_pending_stop_replies, stop_reply_queue_length)
8748 (check_pending_events_prevent_wildcard_vcont)
8749 (discard_pending_stop_replies_in_queue, stop_reply)
8750 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
8751 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
8752 (remote_interrupt_as, remote_interrupt_ns)
8753 (remote_get_noisy_reply, remote_query_attached)
8754 (remote_add_inferior, remote_current_thread, get_current_thread)
8755 (set_thread, set_general_thread, set_continue_thread)
8756 (set_general_process, write_ptid)
8757 (remote_unpack_thread_info_response, remote_get_threadinfo)
8758 (parse_threadlist_response, remote_get_threadlist)
8759 (remote_threadlist_iterator, remote_get_threads_with_ql)
8760 (remote_get_threads_with_qxfer)
8761 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
8762 (get_offsets, remote_check_symbols, remote_supported_packet)
8763 (remote_query_supported, remote_packet_size)
8764 (remote_serial_quit_handler, remote_detach_pid)
8765 (remote_vcont_probe, remote_resume_with_hc)
8766 (send_interrupt_sequence, interrupt_query)
8767 (remote_notif_get_pending_events, fetch_register_using_p)
8768 (send_g_packet, process_g_packet, fetch_registers_using_g)
8769 (store_register_using_P, store_registers_using_G)
8770 (set_remote_traceframe, check_binary_download)
8771 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
8772 (remote_xfer_live_readonly_partial, remote_read_bytes)
8773 (remote_send_printf, remote_flash_write, readchar)
8774 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
8775 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
8776 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
8777 (extended_remote_disable_randomization, extended_remote_run)
8778 (send_environment_packet, extended_remote_environment_support)
8779 (extended_remote_set_inferior_cwd, remote_write_qxfer)
8780 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
8781 (packet_command): Now methods of ...
8782 (remote_target): ... this class.
8783 (m_remote_state) <remote_target>: New field.
8784 (struct remote_state) <stop_reply_queue,
8785 remote_async_inferior_event_token, wait_forever_enabled_p>: New
8786 fields.
8787 (remote_state::remote_state): Allocate stop_reply_queue.
8788 (remote_state): Delete global.
8789 (get_remote_state_raw): Delete.
8790 (remote_target::get_remote_state): Allocate m_remote_state on
8791 demand.
8792 (get_current_remote_target): New.
8793 (remote_ops, extended_remote_ops): Delete.
8794 (wait_forever_enabled_p, remote_async_inferior_event_token):
8795 Delete, moved to struct remote_state.
8796 (remote_target::close): Delete self. Destruction bits split to
8797 ...
8798 (remote_target::~remote_target): ... this.
8799 (show_memory_packet_size): Adjust to use
8800 get_current_remote_target.
8801 (struct protocol_feature) <func>: Add remote_target parameter.
8802 All callers adjusted.
8803 (curr_quit_handler_target): New.
8804 (remote_serial_quit_handler): Reimplement.
8805 (remote_target::open_1): Adjust to use get_current_remote_target.
8806 Heap-allocate remote_target/extended_remote_target instances.
8807 (vcont_builder::vcont_builder): Add remote_target parameter, and
8808 save it in m_remote. All callers adjusted.
8809 (vcont_builder::m_remote): New field.
8810 (vcont_builder::restart, vcont_builder::flush)
8811 (vcont_builder::push_action): Use it.
8812 (remote_target::commit_resume): Use it.
8813 (struct queue_iter_param) <remote>: New field.
8814 (remote_target::remove_new_fork_children): Fill in 'remote' field.
8815 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
8816 (check_pending_event_prevents_wildcard_vcont_callback)
8817 (remote_target::check_pending_events_prevent_wildcard_vcont)
8818 (remote_target::discard_pending_stop_replies)
8819 (remote_target::discard_pending_stop_replies_in_queue)
8820 (remote_target::remote_notif_remove_queued_reply): Fill in
8821 'remote' field.
8822 (remote_notif_get_pending_events): New.
8823 (remote_target::readchar, remote_target::remote_serial_write):
8824 Save/restore curr_quit_handler_target.
8825 (putpkt): New.
8826 (kill_new_fork_children): Fill in 'remote' field.
8827 (packet_command): Use get_current_remote_target, defer to
8828 remote_target method of same name.
8829 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
8830 parameter, and save it in m_remote. All callers adjusted.
8831 (scoped_remote_fd::release): Use m_remote.
8832 (scoped_remote_fd::m_remote): New field.
8833 (remote_file_put, remote_file_get, remote_file_delete): Use
8834 get_current_remote_target, defer to remote_target method of same
8835 name.
8836 (remote_btrace_reset): Add remote_state paremeter. Update all
8837 callers.
8838 (remote_async_inferior_event_handler). Pass down 'data'.
8839 (remote_new_objfile): Use get_current_remote_target.
8840 (remote_target::vcont_r_supported): New.
8841 (set_range_stepping): Use get_current_remote_target and
8842 remote_target::vcont_r_supported.
8843 (_initialize_remote): Don't allocate 'remote_state' and
8844 'stop_reply_queue' globals.
8845 * remote.h (struct remote_target): Forward declare.
8846 (getpkt, putpkt, remote_notif_get_pending_events): Add
8847 'remote_target' parameter.
8848
8849 2018-05-22 Pedro Alves <palves@redhat.com>
8850
8851 * remote.c (vcont_builder): Now a class. Make all data members
8852 private.
8853 (vcont_builder) <vcont_builder, restart, flush, push_action>:
8854 Declare methods.
8855 (vcont_builder_restart): Rename to ...
8856 (vcont_builder::restart): ... this.
8857 (vcont_builder_flush): Rename to ...
8858 (vcont_builder::flush): ... this.
8859 (vcont_builder_push_action): Rename to ...
8860 (vcont_builder::push_action): ... this.
8861 (remote_target::commit_resume): Adjust.
8862
8863 2018-05-22 Pedro Alves <palves@redhat.com>
8864
8865 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
8866 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
8867 (get_fixed_memory_packet_size): New.
8868 (get_memory_packet_size): Use it.
8869 (set_memory_packet_size): Don't override the config size with
8870 DEFAULT_MAX_MEMORY_PACKET_SIZE.
8871 (show_memory_packet_size): Use get_fixed_memory_packet_size.
8872 Don't refer to get_memory_packet_size if not connected to a remote
8873 target. Show "(default)" if configured size is 0.
8874
8875 2018-05-22 Pedro Alves <palves@redhat.com>
8876
8877 * remote.c (remote_target::mourn_inferior): Move
8878 discard_pending_stop_replies call here from ...
8879 (_initialize_remote): ... here.
8880
8881 2018-05-22 Pedro Alves <palves@redhat.com>
8882
8883 * remote.c (compare_section_command): Remove set_general_process
8884 call.
8885
8886 2018-05-22 Pedro Alves <palves@redhat.com>
8887
8888 * remote.c (struct packet_reg, struct remote_arch_state):
8889 Move higher up in the file.
8890 (remote_state) <m_arch_states>: Store remote_arch_state values
8891 instead of remote_arch_state pointers.
8892 (remote_state::get_remote_arch_state): Adjust.
8893
8894 2018-05-22 Pedro Alves <palves@redhat.com>
8895
8896 * remote.c: Include <unordered_map>.
8897 (remote_state): Now a class.
8898 (remote_state) <get_remote_arch_state>: Declare method.
8899 <get_remote_arch_state>: New field.
8900 (remote_arch_state) <remote_arch_state>: Declare ctor.
8901 <regs>: Now a unique_ptr.
8902 (remote_gdbarch_data_handle): Delete.
8903 (get_remote_arch_state): Delete.
8904 (remote_state::get_remote_arch_state): New.
8905 (get_remote_state): Adjust to call remote_state's
8906 get_remote_arch_state method.
8907 (init_remote_state): Delete, bits factored out to ...
8908 (remote_arch_state::remote_arch_state): ... this new method.
8909 (get_remote_packet_size, get_memory_packet_size)
8910 (process_g_packet, remote_target::fetch_registers)
8911 (remote_target::prepare_to_store, store_registers_using_G)
8912 (remote_target::store_registers, remote_target::get_trace_status):
8913 Adjust to call remote_state's method.
8914 (_initialize_remote): Remove reference to
8915 remote_gdbarch_data_handle.
8916
8917 2018-05-22 Pedro Alves <palves@redhat.com>
8918
8919 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
8920 pread>: New method declarations.
8921 (remote_target::open_1): Adjust.
8922 (readahead_cache_invalidate): Rename to ...
8923 (readahead_cache::invalidate): ... this, and adjust to be a class
8924 method.
8925 (readahead_cache_invalidate_fd): Rename to ...
8926 (readahead_cache::invalidate_fd): ... this, and adjust to be a
8927 class method.
8928 (remote_hostio_pwrite): Adjust.
8929 (remote_hostio_pread_from_cache): Rename to ...
8930 (readahead_cache::pread): ... this, and adjust to be a class
8931 method.
8932 (remote_hostio_close): Adjust.
8933
8934 2018-05-22 Pedro Alves <palves@redhat.com>
8935
8936 * remote.c (remote_hostio_close_cleanup): Delete.
8937 (class scoped_remote_fd): New.
8938 (remote_file_put, remote_file_get): Use it.
8939
8940 2018-05-22 Pedro Alves <palves@redhat.com>
8941
8942 (struct vCont_action_support): Use bool and initialize all fields.
8943 (struct readahead_cache): Initialize all fields.
8944 (remote_state): Use bool and initialize all fields.
8945 (remote_state::remote_state, remote_state::~remote_state): New.
8946 (new_remote_state): Delete.
8947 (_initialize_remote): Use new to allocate remote_state.
8948
8949 2018-05-22 Pedro Alves <palves@redhat.com>
8950 張俊芝 <zjz@zjz.name>
8951
8952 PR gdb/22973
8953 * c-exp.y: Include "c-support.h".
8954 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
8955 of tolower. Use c_ident_is_alpha to scan names.
8956 * c-lang.c: Include "c-support.h".
8957 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
8958 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
8959 * c-support.h: New file, with bits factored out from ...
8960 * cp-name-parser.y: ... this file.
8961 Include "c-support.h".
8962 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
8963 c-support.h and renamed.
8964 (symbol_end, yylex): Adjust.
8965
8966 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
8967
8968 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
8969 parameter type to CORE_ADDR.
8970 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
8971 parameter type in declaration to CORE_ADDR.
8972 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
8973 target_auxv_search to get AT_HWCAP and use the result to get the
8974 target description.
8975 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
8976 to CORE_ADDR. Remove the cast of the return value to unsigned
8977 long. Fix error predicate of target_auxv_search.
8978 (ppc_linux_nat_target::read_description): Change the type of the
8979 hwcap variable to CORE_ADDR.
8980
8981 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
8982
8983 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
8984 if the size of fpscr is larger than 32 bits.
8985
8986 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
8987
8988 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
8989 (ppc32_linux_vsxregmap): New global.
8990 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
8991 regcache_supply_regset, and regcache_collect_regset.
8992 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
8993 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
8994 (fetch_vsx_register, store_vsx_register): Remove.
8995 (fetch_vsx_registers): Add regno parameter. Get regset using
8996 ppc_linux_vsxregset. Use regset to supply registers.
8997 (store_vsx_registers): Add regno parameter. Get regset using
8998 ppc_linux_vsxregset. Use regset to collect registers.
8999 (fetch_register): Call fetch_vsx_registers instead of
9000 fetch_vsx_register.
9001 (store_register): Call store_vsx_registers instead of
9002 store_vsx_register.
9003 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
9004 new regno parameter.
9005 (store_ppc_registers): Call store_vsx_registers with -1 for the
9006 new regno parameter.
9007 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
9008 (ppc_collect_vsxregset): Remove.
9009
9010 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
9011
9012 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
9013 offset fields.
9014 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
9015 for vector register offset fields.
9016 (ppc64_fbsd_reg_offsets): Likewise.
9017 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
9018 to vector register offset fields.
9019 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
9020 to vector register offset fields.
9021 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
9022 vector register offset fields.
9023 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
9024 initializers for vector register offset fields.
9025 (rs6000_aix64_reg_offsets): Likewise.
9026 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
9027 (ppc_supply_vrregset): Remove.
9028 (ppc_collect_vrregset): Remove.
9029 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
9030 (ppc_linux_vrregset) : New function.
9031 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
9032 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
9033 (ppc32_linux_vrregset): Remove.
9034 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
9035 and use result instead of ppc32_linux_vrregset.
9036 (ppc32_linux_reg_offsets): Remove initializers for vector register
9037 offset fields.
9038 (ppc64_linux_reg_offsets): Likewise.
9039 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
9040 * ppc-linux-nat.c: Include regset.h.
9041 (gdb_vrregset_t): Adjust comment to account for little-endian
9042 mode.
9043 (supply_vrregset, fill_vrregset): Remove.
9044 (fetch_altivec_register, store_altivec_register): Remove.
9045 (fetch_altivec_registers): Add regno parameter. Get regset using
9046 ppc_linux_vrregset. Use regset to supply registers.
9047 (store_altivec_registers): Add regno parameter. Get regset using
9048 ppc_linux_vrregset. Use regset to collect registers.
9049 (fetch_register): Call fetch_altivec_registers instead of
9050 fetch_altivec_register.
9051 (store_register): Call store_altivec_registers instead of
9052 store_altivec_register.
9053 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
9054 the new regno parameter.
9055 (store_ppc_registers): Call store_altivec_registers with -1 for
9056 the new regno parameter.
9057
9058 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
9059
9060 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
9061 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
9062 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
9063 (gdb_vrregset_t): Change array type size to
9064 PPC_LINUX_SIZEOF_VRREGSET.
9065 (gdb_vsxregset_t): Change array type size to
9066 PPC_LINUX_SIZEOF_VSXREGSET.
9067 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
9068 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
9069 PPC_LINUX_SIZEOF_VSXREGSET.
9070
9071 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
9072
9073 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
9074 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
9075 nat/ppc-linux.c.
9076 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
9077 ppc_linux_target_wordsize with tid.
9078 (ppc_linux_nat_target::read_description): Call ppc_linux_target
9079 wordsize with tid.
9080 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
9081 (ppc64_64bit_inferior_p): Add static and inline specifiers.
9082 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
9083 tid parameter. Remove static specifier.
9084 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
9085 (ppc_linux_target_wordsize): New declaration.
9086
9087 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
9088
9089 * arch/ppc-linux-common.c: New file.
9090 * arch/ppc-linux-common.h: New file.
9091 * arch/ppc-linux-tdesc.h: New file.
9092 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
9093 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
9094 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
9095 arch/ppc-linux-tdesc.h.
9096 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
9097 arch/ppc-linux-tdesc.h.
9098 (ppc_linux_nat_target::read_description): Remove target
9099 description matching code. Fill a ppc_linux_features struct and
9100 call ppc_linux_match_description with it. Move comment about ISA
9101 2.05 to ppc-linux-common.c.
9102 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
9103 arch/ppc-linux-tdesc.h.
9104 (ppc_linux_core_read_description): Remove target description
9105 matching code. Fill a ppc_linux_features struct and call
9106 ppc_linux_match_description with it.
9107 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
9108 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
9109 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
9110 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
9111 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
9112 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
9113 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
9114 (tdesc_powerpc_e500l): Remove.
9115
9116 2018-05-22 Joel Brobecker <brobecker@adacore.com>
9117
9118 * ada-lang.c (catch_assert_command): Pass empty string instead
9119 of NULL for excep_string argument.
9120
9121 2018-05-22 Maciej W. Rozycki <macro@mips.com>
9122
9123 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
9124 the width of the requested register exceeds the width of the
9125 `ptrace' data type.
9126
9127 2018-05-21 Tom Tromey <tom@tromey.com>
9128
9129 * printcmd.c (output_command): Remove.
9130 (output_command_const): Rename to output_command.
9131 * valprint.h (output_command): Rename from output_command_const.
9132 * tracepoint.c (trace_dump_actions): Call output_command.
9133
9134 2018-05-21 Tom Tromey <tom@tromey.com>
9135
9136 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
9137 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
9138 * ada-lang.h (create_ada_exception_catchpoint): Update.
9139 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
9140 std::string.
9141 (create_excep_cond_exprs, ~ada_catchpoint)
9142 (should_stop_exception, print_one_exception)
9143 (print_mention_exception, print_recreate_exception): Update.
9144 (ada_get_next_arg): Remove.
9145 (catch_ada_exception_command_split): Use std::string. Change type
9146 of "excep_string", "cond_string".
9147 (catch_ada_exception_command): Update.
9148 (create_ada_exception_catchpoint): Change type of excep_string.
9149 (ada_exception_sal): Remove excep_string parameter.
9150 (~ada_catchpoint): Remove.
9151
9152 2018-05-21 Tom Tromey <tom@tromey.com>
9153
9154 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
9155 cleanup.
9156
9157 2018-05-21 Tom Tromey <tom@tromey.com>
9158
9159 * ada-lang.c (ada_exception_message_1, ada_exception_message):
9160 Return unique_xmalloc_ptr.
9161 (print_it_exception): Update.
9162
9163 2018-05-21 Tom Tromey <tom@tromey.com>
9164
9165 * tracepoint.c (trace_dump_actions): Use std::string.
9166
9167 2018-05-21 Tom Tromey <tom@tromey.com>
9168
9169 * symfile.c (reread_symbols): Use std::string for original_name.
9170
9171 2018-05-21 Tom Tromey <tom@tromey.com>
9172
9173 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
9174 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
9175 constructor.
9176
9177 2018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
9178
9179 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
9180 instance to...
9181 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
9182 * objfiles.c (get_objfile_bfd_data): Allocate
9183 objfile_per_bfd_storage with obstack_new when allocating on
9184 obstack.
9185
9186 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
9187
9188 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
9189 OBSTACK_ZALLOC.
9190 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
9191 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
9192 * mdebugread.c (mdebug_build_psymtabs): Likewise.
9193 (add_pending): Likewise.
9194 (parse_symbol): Likewise.
9195 (parse_partial_symbols): Likewise.
9196 (psymtab_to_symtab_1): Likewise.
9197 (new_psymtab): Likewise.
9198 (elfmdebug_build_psymtabs): Likewise.
9199 * minsyms.c (terminate_minimal_symbol_table): Likewise.
9200 * objfiles.c (get_objfile_bfd_data): Likewise.
9201 (objfile_register_static_link): Likewise.
9202 * psymtab.c (allocate_psymtab): Likewise.
9203 * stabsread.c (read_member_functions): Likewise.
9204 * xcoffread.c (xcoff_end_psymtab): Likewise.
9205
9206 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
9207
9208 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
9209 compiler supports std::is_trivially_constructible.
9210 * common/poison.h: Include obstack.h.
9211 (IsMallocable): Define to is_trivially_constructible if the
9212 compiler supports it, define to true_type otherwise.
9213 (xobnew): New.
9214 (XOBNEW): Redefine.
9215 (xobnewvec): New.
9216 (XOBNEWVEC): Redefine.
9217 * gdb_obstack.h (obstack_zalloc): New.
9218 (OBSTACK_ZALLOC): Redefine.
9219 (obstack_calloc): New.
9220 (OBSTACK_CALLOC): Redefine.
9221 (obstack_new): New.
9222 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
9223 (gdbarch_obstack): New declaration in gdbarch.h, definition in
9224 gdbarch.c.
9225 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
9226 obstack_calloc/obstack_zalloc.
9227 (gdbarch_obstack_zalloc): Remove.
9228 * target-descriptions.c (tdesc_data_init): Use obstack_new.
9229
9230 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9231
9232 * stack.c (backtrace_command_1): Remove useless variable int i.
9233
9234 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9235
9236 * stack.c (print_frame_info): Fix comment.
9237
9238 2018-05-18 Tom Tromey <tom@tromey.com>
9239
9240 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
9241 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
9242 (~dwarf2_per_objfile): Update
9243 (dwarf2_get_dwz_file): Use new.
9244 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
9245 unique_ptr.
9246
9247 2018-05-18 Tom Tromey <tom@tromey.com>
9248
9249 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
9250 unique_ptr.
9251 * dwarf2read.c (struct dwp_file): Add constructor and
9252 initializers.
9253 (open_and_init_dwp_file): Return a unique_ptr.
9254 (dwarf2_per_objfile, create_dwp_hash_table)
9255 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
9256 (lookup_dwo_unit_in_dwp): Update.
9257 (open_and_init_dwp_file, get_dwp_file): Update.
9258
9259 2018-05-18 Tom Tromey <tom@tromey.com>
9260
9261 * dwarf2read.c (dwarf2_per_objfile): Update.
9262 (struct mapped_index): Add initializers.
9263 (dwarf2_read_index): Use new.
9264 (dw2_symtab_iter_init): Update.
9265 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
9266 unique_ptr.
9267
9268 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
9269
9270 * dwarf2read.c (mapped_index) <total_size>: Remove.
9271
9272 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
9273
9274 * unittests/format_pieces-selftests.c (test_format_specifier):
9275 Add ARI comments.
9276
9277 2018-05-18 Tom Tromey <tom@tromey.com>
9278
9279 * c-typeprint.c (maybe_print_hole): New function.
9280 (c_print_type_struct_field_offset): Update.
9281 (c_type_print_base_struct_union): Call maybe_print_hole.
9282
9283 2018-05-17 Keith Seitz <keiths@redhat.com>
9284
9285 * breakpoint.c (build_bpstat_chain): New function, moved from
9286 bpstat_stop_status.
9287 (bpstat_stop_status): Add optional parameter, `stop_chain'.
9288 If no stop chain is passed, call build_bpstat_chain to build it.
9289 * breakpoint.h (build_bpstat_chain): Declare.
9290 (bpstat_stop_status): Move documentation here from breakpoint.c.
9291 * infrun.c (handle_signal_stop): Before eliding inlined frames,
9292 build the stop chain and pass it to skip_inline_frames.
9293 Pass this stop chain to bpstat_stop_status.
9294 * inline-frame.c: Include breakpoint.h.
9295 (stopped_by_user_bp_inline_frame): New function.
9296 (skip_inline_frames): Add parameter `stop_chain'.
9297 Move documention to inline-frame.h.
9298 If non-NULL, use stopped_by_user_bp_inline_frame to determine
9299 whether the frame should be elided.
9300 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
9301 Add moved documentation and update for new parameter.
9302
9303 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
9304
9305 PR cli/14975
9306 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9307 unittests/format_pieces-selftests.c.
9308 * common/format.h (format_piece) <operator==>: New.
9309 (format_pieces) <operator[]>: Remove.
9310 * common/format.c (format_pieces::format_pieces): Handle \e.
9311 * unittests/format_pieces-selftests.c: New.
9312
9313 2018-05-17 Tom Tromey <tom@tromey.com>
9314
9315 PR symtab/23010:
9316 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
9317 (dw2_instantiate_symtab): Add skip_partial parameter.
9318 (dw2_find_last_source_symtab, dw2_map_expand_apply)
9319 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
9320 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
9321 (dw2_expand_symtabs_matching_one)
9322 (dw2_find_pc_sect_compunit_symtab)
9323 (dw2_debug_names_lookup_symbol)
9324 (dw2_debug_names_expand_symtabs_for_function): Update.
9325 (init_cutu_and_read_dies): Add skip_partial parameter.
9326 (process_psymtab_comp_unit, build_type_psymtabs_1)
9327 (process_skeletonless_type_unit, load_partial_comp_unit)
9328 (psymtab_to_symtab_1): Update.
9329 (load_full_comp_unit): Add skip_partial parameter.
9330 (process_imported_unit_die, dwarf2_read_addr_index)
9331 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
9332 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
9333 (read_signatured_type): Update.
9334
9335 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
9336
9337 * value.c (release_value): Remove unused variable.
9338 (record_latest_value): Likewise.
9339 (access_value_history): Likewise.
9340 (preserve_values): Likewise.
9341
9342 2018-05-17 Tom Tromey <tom@tromey.com>
9343
9344 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
9345 Initialize.
9346
9347 2018-05-16 Maciej W. Rozycki <macro@mips.com>
9348
9349 PR gdb/22286
9350 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
9351 Also handle registers whose width is not a multiple of
9352 PTRACE_TYPE_RET.
9353 (linux_nat_trad_target::store_register): Likewise.
9354
9355 2018-05-16 Tom Tromey <tom@tromey.com>
9356
9357 * gdbcore.h (core_bfd): Redefine.
9358 * corelow.c (core_target::close): Update.
9359 (core_target_open): Update.
9360 * progspace.h (struct program_space) <cbfd>: Now a
9361 gdb_bfd_ref_ptr.
9362
9363 2018-05-16 Tom Tromey <tom@tromey.com>
9364
9365 PR cli/19551:
9366 * symfile-add-flags.h (enum symfile_add_flags)
9367 <SYMFILE_NOT_FILENAME>: New constant.
9368 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
9369 objfile name from BFD.
9370 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
9371 * minidebug.c (find_separate_debug_file_in_section): Put
9372 ".gnu_debugdata" into BFD's file name.
9373
9374 2018-05-16 Simon Marchi <simon.marchi@ericsson.com>
9375
9376 * regcache.c (regcache_read_ftype, regcache_write_ftype):
9377 Remove.
9378
9379 2018-05-15 Tamar Christina <tamar.christina@arm.com>
9380
9381 PR binutils/21446
9382 * aarch64-tdep.c (aarch64_analyze_prologue,
9383 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
9384 Indicate not interested in errors.
9385
9386 2018-05-15 Maciej W. Rozycki <macro@mips.com>
9387
9388 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
9389 Supply the MIPS_ZERO_REGNUM register.
9390
9391 2018-05-15 Maciej W. Rozycki <macro@mips.com>
9392
9393 * mips-tdep.c (mask_address_var): Make variable static.
9394
9395 2018-05-14 Tom Tromey <tom@tromey.com>
9396
9397 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
9398
9399 2018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
9400
9401 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
9402 FXSAVE_ADDR for the mxcsr register.
9403
9404 2018-05-11 Max Filippov <jcmvbkbc@gmail.com>
9405
9406 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
9407
9408 2018-05-11 Pedro Alves <palves@redhat.com>
9409
9410 * corelow.c (core_target) <core_target>: No longer inline.
9411 Initialize m_core_gdbarch, m_core_vec and build the section table
9412 here.
9413 <~core_target>: New.
9414 <core_gdbarch, get_core_register_section>: New methods.
9415 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
9416 factored out from ...
9417 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
9418 (core_ops): Delete.
9419 (sniff_core_bfd): Add gdbarch parameter.
9420 (core_close): Delete, merged into ...
9421 (core_target::close): ... here. Delete self.
9422 (core_close_cleanup): Delete.
9423 (core_target_open): Allocate a core_target on the heap. Use a
9424 unique_ptr instead of a cleanup. Bits moved into the core_target
9425 ctor. Adjust to use core_target methods instead of globals.
9426 (get_core_register_section): Rename to ...
9427 (core_target::get_core_register_section): ... this and adjust.
9428 (struct get_core_registers_cb_data): New.
9429 (get_core_registers_cb): Use it. Use bool.
9430 (core_target::fetch_registers, core_target::files_info)
9431 (core_target::xfer_partial, core_target::read_description)
9432 (core_target::pid_to, core_target::thread_name): Adjust to
9433 reference class fields instead of globals.
9434 * target.h (struct target_ops_deleter, target_ops_up): New.
9435
9436 2018-05-11 Pedro Alves <palves@redhat.com>
9437
9438 * corefile.c (core_file_command): Move to corelow.c.
9439 * corelow.c (the_core_target): Delete.
9440 (core_file_command): Moved from corefile.c. Check exec_bfd
9441 instead of the_core_target. Use target_detach instead of calling
9442 into the_core_target directly.
9443 (maybe_say_no_core_file_now): New.
9444 (core_target::detach): Use it.
9445 (_initialize_corelow): Remove references to the_core_target.
9446 * gdbcore.h (the_core_target): Delete.
9447
9448 2018-05-11 Tom Tromey <tromey@redhat.com>
9449 Pedro Alves <palves@redhat.com>
9450
9451 * corefile.c (core_bfd): Remove.
9452 * gdbcore.h (core_bfd): Now a macro.
9453 * progspace.h (struct program_space) <cbfd>: New field.
9454
9455 2018-05-11 Tom Tromey <tom@tromey.com>
9456
9457 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
9458 gdb::def_vector.
9459
9460 2018-05-10 Tom Tromey <tom@tromey.com>
9461
9462 * configure: Rebuild.
9463 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
9464
9465 2018-05-10 Joel Brobecker <brobecker@adacore.com>
9466
9467 PR server/23158:
9468 * regformats/regdat.sh: Adjust script, following the addition
9469 of the new expedite_regs parameter to init_target_desc.
9470
9471 2018-05-10 Omair Javaid <omair.javaid@linaro.org>
9472
9473 PR gdb/23127
9474 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
9475 set_gdbarch_significant_addr_bit.
9476 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
9477 set_gdbarch_significant_addr_bit.
9478 * utils.c (address_significant): Update to sign extend addr.
9479
9480 2018-05-09 Max Filippov <jcmvbkbc@gmail.com>
9481
9482 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
9483 (xtensa_linux_init_abi): Limit tdep->num_regs by
9484 tdep->num_nopriv_regs.
9485 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
9486 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
9487 not initialized.
9488
9489 2018-05-08 Simon Marchi <simon.marchi@ericsson.com>
9490
9491 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
9492
9493 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
9494
9495 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
9496 (I387_MXCSR_INIT_VAL): New constant.
9497 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
9498 buffer if it was supplied by the inferior.
9499 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
9500 (i387_xsave_get_clear_bv): New function.
9501 (i387_supply_xsave): Only read x87 control registers from the
9502 xsave buffer if the feature is enabled, and the state will have
9503 been written, otherwise, provide a suitable default.
9504 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
9505 including x87 control registers. Update control registers if they
9506 have changed from the default value, and mark features as enabled
9507 as required.
9508 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
9509
9510 2018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
9511
9512 * spu-tdep.c (info_spu_event_command): Fix output formatting.
9513
9514 2018-05-07 Tom Tromey <tom@tromey.com>
9515
9516 * configure: Rebuild.
9517 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
9518
9519 2018-05-07 Tom Tromey <tom@tromey.com>
9520
9521 PR tdep/20362:
9522 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
9523 bit. Use correct value for VDIV.
9524
9525 2018-05-04 Tom Tromey <tom@tromey.com>
9526
9527 * configure: Rebuild.
9528 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
9529
9530 2018-05-04 Tom Tromey <tom@tromey.com>
9531
9532 * linux-record.c (record_linux_system_call) <case
9533 RECORD_SYS_RECVFROM>: Add "break".
9534
9535 2018-05-04 Tom Tromey <tom@tromey.com>
9536
9537 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
9538 Add missing "break".
9539 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
9540 Add missing "break".
9541
9542 2018-05-04 Tom Tromey <tom@tromey.com>
9543
9544 * rs6000-tdep.c (ppc_process_record_op4)
9545 (ppc_process_record_op63): Add fall-through comment.
9546
9547 2018-05-04 Tom Tromey <tom@tromey.com>
9548
9549 * i386-tdep.c (i386_process_record): Add fall-through comment.
9550
9551 2018-05-04 Tom Tromey <tom@tromey.com>
9552
9553 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
9554 comment.
9555
9556 2018-05-04 Tom Tromey <tom@tromey.com>
9557
9558 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
9559 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
9560 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
9561 comment.
9562 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
9563 comment.
9564 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
9565 comment.
9566
9567 2018-05-04 Tom Tromey <tom@tromey.com>
9568
9569 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
9570
9571 2018-05-04 Tom Tromey <tom@tromey.com>
9572
9573 * s390-tdep.c (s390_process_record): Fix fall-through comments.
9574 * xcoffread.c (scan_xcoff_symtab): Move comment later.
9575 * symfile.c (section_is_mapped): Fix fall-through comment.
9576 * stabsread.c (define_symbol, read_member_functions): Fix
9577 fall-through comment.
9578 * s390-linux-tdep.c (s390_process_record): Fix fall-through
9579 comment.
9580 * remote.c (remote_wait_as): Fix fall-through comment.
9581 * p-exp.y (yylex): Fix fall-through comment.
9582 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
9583 comment.
9584 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
9585 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
9586 * jv-exp.y (yylex): Fix fall-through comment.
9587 * go-exp.y (lex_one_token): Fix fall-through comment.
9588 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
9589 fall-through comment.
9590 * f-exp.y (yylex): Fix fall-through comment.
9591 * dwarf2read.c (process_die): Fix fall-through comments.
9592 * dbxread.c (process_one_symbol): Fix fall-through comment.
9593 * d-exp.y (lex_one_token): Fix fall-through comment.
9594 * cp-name-parser.y (yylex): Fix fall-through comment.
9595 * coffread.c (coff_symtab_read): Fix fall-through comment.
9596 * c-exp.y (lex_one_token): Fix fall-through comment.
9597 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
9598 comment.
9599 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
9600 comment.
9601
9602 2018-05-04 Tom Tromey <tom@tromey.com>
9603
9604 PR python/22730:
9605 * NEWS: Mention gdb.execute change.
9606 * gdbcmd.h (execute_control_command): Don't declare.
9607 * python/python.c (execute_gdb_command): Use read_command_lines_1,
9608 execute_control_commands, execute_control_commands_to_string.
9609 * cli/cli-script.h (execute_control_commands)
9610 (execute_control_commands_to_string): Declare.
9611 (execute_control_command): Add from_tty parameter.
9612 * cli/cli-script.c (execute_control_commands)
9613 (execute_control_commands_to_string): New functions.
9614 (execute_user_command): Use execute_control_commands.
9615 (execute_control_command_1): Add "from_tty" parameter. Update.
9616 (execute_control_command): Likewise.
9617
9618 2018-05-04 Tom Tromey <tom@tromey.com>
9619
9620 PR python/22731:
9621 * NEWS: Mention that breakpoint commands are writable.
9622 * python/py-breakpoint.c (bppy_set_commands): New function.
9623 (breakpoint_object_getset) <"commands">: Use it.
9624
9625 2018-05-04 Tom Tromey <tom@tromey.com>
9626
9627 * tracepoint.c (actions_command): Update.
9628 * mi/mi-cmd-break.c (mi_command_line_array)
9629 (mi_command_line_array_cnt, mi_command_line_array_ptr)
9630 (mi_read_next_line): Remove.
9631 (mi_cmd_break_commands): Update.
9632 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
9633 function_view.
9634 * cli/cli-script.c (get_command_line): Update.
9635 (process_next_line): Use function_view. Constify.
9636 (recurse_read_control_structure, read_command_lines)
9637 (read_command_lines_1): Change argument types to function_view.
9638 (do_define_command, document_command): Update.
9639 * breakpoint.h (check_tracepoint_command): Don't declare.
9640 * breakpoint.c (check_tracepoint_command): Remove.
9641 (commands_command_1, create_tracepoint_from_upload): Update.
9642
9643 2018-05-04 Tom Tromey <tom@tromey.com>
9644
9645 PR gdb/11750:
9646 * cli/cli-script.h (enum command_control_type) <define_control>:
9647 New constant.
9648 * cli/cli-script.c (multi_line_command_p): Handle define_control.
9649 (build_command_line, execute_control_command_1)
9650 (process_next_line): Likewise.
9651 (do_define_command): New function, extracted from define_command.
9652 (define_command): Use it.
9653
9654 2018-05-04 Tom Tromey <tom@tromey.com>
9655
9656 * tracepoint.c (actions_command): Update.
9657 * cli/cli-script.h (read_command_lines): Update.
9658 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
9659 (MAX_TMPBUF): Remove define.
9660 (define_command): Use string_printf.
9661 (document_command): Likewise.
9662 * breakpoint.c (commands_command_1): Update.
9663
9664 2018-05-04 Tom Tromey <tom@tromey.com>
9665
9666 * top.c (execute_command): Update.
9667 * cli/cli-script.h (print_command_lines): Now varargs.
9668 * cli/cli-script.c (print_command_lines): Now varargs.
9669 (execute_control_command_1) <case while_control, case if_control>:
9670 Update.
9671
9672 2018-05-04 Tom Tromey <tom@tromey.com>
9673
9674 * tracepoint.c (all_tracepoint_actions): Rename from
9675 all_tracepoint_actions_and_cleanup. Change return type.
9676 (actions_command, encode_actions_1, encode_actions)
9677 (trace_dump_actions, tdump_command): Update.
9678 * remote.c (remote_download_command_source): Update.
9679 * python/python.c (gdbpy_eval_from_control_command)
9680 (python_command, python_interactive_command): Update.
9681 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
9682 * guile/guile.c (guile_command)
9683 (gdbscm_eval_from_control_command, guile_command): Update.
9684 * compile/compile.c (compile_code_command)
9685 (compile_print_command, compile_to_object): Update.
9686 * cli/cli-script.h (struct command_lines_deleter): New.
9687 (counted_command_line): New typedef.
9688 (struct command_line): Add constructor, destructor.
9689 <body_list>: Remove.
9690 <body_list_0, body_list_1>: New members.
9691 (command_line_up): Remove typedef.
9692 (read_command_lines, read_command_lines_1, get_command_line):
9693 Update.
9694 (copy_command_lines): Don't declare.
9695 * cli/cli-script.c (build_command_line): Use "new".
9696 (get_command_line): Return counted_command_line.
9697 (print_command_lines, execute_user_command)
9698 (execute_control_command_1, while_command, if_command): Update.
9699 (realloc_body_list): Remove.
9700 (process_next_line, recurse_read_control_structure): Update.
9701 (read_command_lines, read_command_lines_1): Return counted_command_line.
9702 (free_command_lines): Use "delete".
9703 (copy_command_lines): Remove.
9704 (define_command, document_command, show_user_1): Update.
9705 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
9706 a counted_command_line.
9707 * breakpoint.h (counted_command_line): Remove typedef.
9708 (breakpoint_set_commands): Update.
9709 * breakpoint.c (check_no_tracepoint_commands)
9710 (validate_commands_for_breakpoint): Update.
9711 (breakpoint_set_commands): Change commands to be a
9712 counted_command_line.
9713 (commands_command_1, update_dprintf_command_list)
9714 (create_tracepoint_from_upload): Update.
9715
9716 2018-05-04 Tom Tromey <tom@tromey.com>
9717
9718 * cli/cli-decode.h (cmd_list_element): New constructor.
9719 (~cmd_list_element): New destructor.
9720 (struct cmd_list_element): Add initializers.
9721 * cli/cli-decode.c (do_add_cmd): Use "new".
9722 (delete_cmd): Use "delete".
9723
9724 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9725 Pedro Alves <palves@redhat.com>
9726
9727 PR breakpoints/19806 and support for PR external/20207.
9728 * NEWS: Mention Aarch64 watchpoint improvements.
9729 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
9730 watchpoints and PR external/20207 watchpoints.
9731 * nat/aarch64-linux-hw-point.c
9732 (kernel_supports_any_contiguous_range): New.
9733 (aarch64_watchpoint_offset): New.
9734 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
9735 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
9736 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
9737 (aarch64_align_watchpoint): New parameters aligned_offset_p and
9738 next_addr_orig_p. Support PR external/20207 watchpoints.
9739 (aarch64_downgrade_regs): New.
9740 (aarch64_dr_state_insert_one_point): New parameters offset and
9741 addr_orig.
9742 (aarch64_dr_state_remove_one_point): Likewise.
9743 (aarch64_handle_breakpoint): Update caller.
9744 (aarch64_handle_aligned_watchpoint): Likewise.
9745 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
9746 aligned_offset.
9747 (aarch64_linux_set_debug_regs): Remove const from state. Call
9748 aarch64_downgrade_regs.
9749 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
9750 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
9751 (DR_CONTROL_MASK): ... this.
9752 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
9753 (unsigned int aarch64_watchpoint_offset): New prototype.
9754 (aarch64_linux_set_debug_regs): Remove const from state.
9755 * utils.c (align_up, align_down): Move to ...
9756 * common/common-utils.c (align_up, align_down): ... here.
9757 * utils.h (align_up, align_down): Move to ...
9758 * common/common-utils.h (align_up, align_down): ... here.
9759
9760 2018-05-04 Joel Brobecker <brobecker@adacore.com>
9761
9762 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
9763 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
9764 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
9765 Re-implement to match the ABI as summarized in GCC's
9766 gcc/config/sparc/sparc.c. All callers updated.
9767 (sparc32_store_arguments): Remove assertion.
9768
9769 2018-05-04 Tom Tromey <tom@tromey.com>
9770
9771 * printcmd.c: Don't include tui.h.
9772 (decode_format): Use skip_spaces.
9773
9774 2018-05-04 Tom Tromey <tom@tromey.com>
9775
9776 PR gdb/22619:
9777 * printcmd.c (last_count): New global.
9778 (x_command): Use saved count when repeating.
9779
9780 2018-05-04 Tom Tromey <tom@tromey.com>
9781
9782 * nto-procfs.c (do_closedir_cleanup): Remove.
9783 (procfs_pidlist): Use gdb_dir_up.
9784 * procfs.c (do_closedir_cleanup): Remove.
9785 (proc_update_threads): Use gdb_dir_up.
9786 * common/filestuff.h (struct gdb_dir_deleter): New.
9787 (gdb_dir_up): New typedef.
9788
9789 2018-05-04 Tom Tromey <tom@tromey.com>
9790
9791 * ada-lang.c (print_mention_exception): Use std::string.
9792
9793 2018-05-04 Tom Tromey <tom@tromey.com>
9794
9795 * ada-lang.c (create_excep_cond_exprs): Update.
9796 (ada_exception_catchpoint_cond_string): Use std::string.
9797
9798 2018-05-04 Tom Tromey <tom@tromey.com>
9799
9800 * ada-lang.c (xget_renaming_scope): Return std::string.
9801 (old_renaming_is_invisible): Update.
9802
9803 2018-05-04 Tom Tromey <tom@tromey.com>
9804
9805 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
9806 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
9807
9808 2018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
9809
9810 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
9811
9812 2018-05-04 Tom Tromey <tom@tromey.com>
9813
9814 * remote.c (remote_query_supported_append): Change type.
9815 (remote_check_symbols): Update.
9816
9817 2018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
9818
9819 PR gdb/11420
9820 * configure.ac: Prepend libpython.
9821 * python/python-config.py: Likewise.
9822 * configure: Regenerate.
9823
9824 2018-05-03 Simon Marchi <simon.marchi@ericsson.com>
9825
9826 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
9827
9828 2018-05-03 Pedro Alves <palves@redhat.com>
9829
9830 * s390-linux-nat.c
9831 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
9832 override. Write 'true' instead of '1'.
9833 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
9834 declaration.
9835
9836 2018-05-02 Pedro Alves <palves@redhat.com>
9837
9838 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
9839 add_inf_child_target.
9840 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
9841 add_inf_child_target.
9842 * aix-thread.c (aix_thread_target_info): New.
9843 (aix_thread_target) <shortname, longname, doc>: Delete.
9844 <info>: New.
9845 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
9846 add_inf_child_target.
9847 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
9848 add_inf_child_target.
9849 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
9850 add_inf_child_target.
9851 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
9852 add_inf_child_target.
9853 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
9854 add_inf_child_target.
9855 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
9856 add_inf_child_target.
9857 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
9858 add_inf_child_target.
9859 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
9860 add_inf_child_target.
9861 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
9862 add_inf_child_target.
9863 * bfd-target.c (target_bfd_target_info): New.
9864 (target_bfd) <shortname, longname, doc>: Delete.
9865 <info>: New.
9866 * bsd-kvm.c (bsd_kvm_target_info): New.
9867 (bsd_kvm_target) <shortname, longname, doc>: Delete.
9868 <info>: New.
9869 (bsd_kvm_target::open): Rename to ...
9870 (bsd_kvm_target_open): ... this. Adjust.
9871 * bsd-uthread.c (bsd_uthread_target_info): New.
9872 (bsd_uthread_target) <shortname, longname, doc>: Delete.
9873 <info>: New.
9874 * corefile.c (core_file_command): Adjust.
9875 * corelow.c (core_target_info): New.
9876 (core_target) <shortname, longname, doc>: Delete.
9877 <info>: New.
9878 (core_target::open): Rename to ...
9879 (core_target_open): ... this. Adjust.
9880 * ctf.c (ctf_target_info): New.
9881 (ctf_target) <shortname, longname, doc>: Delete.
9882 <info>: New.
9883 (ctf_target::open): Rename to ...
9884 (ctf_target_open): ... this.
9885 (_initialize_ctf): Adjust.
9886 * exec.c (exec_target_info): New.
9887 (exec_target) <shortname, longname, doc>: Delete.
9888 <info>: New.
9889 (exec_target::open): Rename to ...
9890 (exec_target_open): ... this.
9891 * gdbcore.h (core_target_open): Declare.
9892 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
9893 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
9894 add_inf_child_target.
9895 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
9896 add_inf_child_target.
9897 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
9898 add_inf_child_target.
9899 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
9900 add_inf_child_target.
9901 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
9902 add_inf_child_target.
9903 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
9904 add_inf_child_target.
9905 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
9906 add_inf_child_target.
9907 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
9908 add_inf_child_target.
9909 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
9910 add_inf_child_target.
9911 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
9912 add_inf_child_target.
9913 * inf-child.c (inf_child_target_info): New.
9914 (inf_child_target::info): New.
9915 (inf_child_open_target): Remove 'target' parameter. Use
9916 get_native_target instead.
9917 (inf_child_target::open): Delete.
9918 (add_inf_child_target): New.
9919 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
9920 Delete.
9921 <info>: New.
9922 (add_inf_child_target): Declare.
9923 (inf_child_open_target): Declare.
9924 * linux-thread-db.c (thread_db_target_info): New.
9925 (thread_db_target) <shortname, longname, doc>: Delete.
9926 <info>: New.
9927 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
9928 add_inf_child_target.
9929 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
9930 add_inf_child_target.
9931 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
9932 add_inf_child_target.
9933 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
9934 add_inf_child_target.
9935 * make-target-delegates (print_class): Adjust.
9936 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
9937 add_inf_child_target.
9938 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
9939 add_inf_child_target.
9940 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
9941 add_inf_child_target.
9942 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
9943 add_inf_child_target.
9944 * nto-procfs.c (nto_native_target_info): New.
9945 (nto_procfs_target_native) <shortname, longname, doc>:
9946 Delete.
9947 <info>: New.
9948 (nto_procfs_target_info): New.
9949 (nto_procfs_target_procfs) <shortname, longname, doc>:
9950 Delete.
9951 <info>: New.
9952 (init_procfs_targets): Adjust.
9953 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
9954 add_inf_child_target.
9955 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
9956 add_inf_child_target.
9957 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
9958 add_inf_child_target.
9959 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
9960 add_inf_child_target.
9961 * ravenscar-thread.c (ravenscar_target_info): New.
9962 (ravenscar_thread_target) <shortname, longname, doc>:
9963 Delete.
9964 <info>: New.
9965 * record-btrace.c (record_btrace_target_info):
9966 (record_btrace_target) <shortname, longname, doc>: Delete.
9967 <info>: New.
9968 (record_btrace_target::open): Rename to ...
9969 (record_btrace_target_open): ... this. Adjust.
9970 * record-full.c (record_longname, record_doc): New.
9971 (record_full_base_target) <shortname, longname, doc>: Delete.
9972 <info>: New.
9973 (record_full_target_info): New.
9974 (record_full_target): <shortname>: Delete.
9975 <info>: New.
9976 (record_full_core_open_1, record_full_open_1): Update comments.
9977 (record_full_base_target::open): Rename to ...
9978 (record_full_open): ... this.
9979 (cmd_record_full_restore): Update.
9980 (_initialize_record_full): Update.
9981 * remote-sim.c (remote_sim_target_info): New.
9982 (gdbsim_target) <shortname, longname, doc>: Delete.
9983 <info>: New.
9984 (gdbsim_target::open): Rename to ...
9985 (gdbsim_target_open): ... this.
9986 (_initialize_remote_sim): Adjust.
9987 * remote.c (remote_doc): New.
9988 (remote_target_info): New.
9989 (remote_target) <shortname, longname, doc>: Delete.
9990 <info>: New.
9991 (extended_remote_target_info): New.
9992 (extended_remote_target) <shortname, longname, doc>: Delete.
9993 <info>: New.
9994 (remote_target::open_1): Make static. Adjust.
9995 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
9996 * s390-linux-nat.c (_initialize_s390_nat): Use
9997 add_inf_child_target.
9998 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
9999 add_inf_child_target.
10000 * sol-thread.c (thread_db_target_info): New.
10001 (sol_thread_target) <shortname, longname, doc>: Delete.
10002 <info>: New.
10003 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
10004 add_inf_child_target.
10005 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
10006 add_inf_child_target.
10007 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
10008 add_inf_child_target.
10009 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
10010 add_inf_child_target.
10011 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
10012 add_inf_child_target.
10013 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
10014 add_inf_child_target.
10015 * spu-linux-nat.c (_initialize_spu_nat): Use
10016 add_inf_child_target.
10017 * spu-multiarch.c (spu_multiarch_target_info): New.
10018 (spu_multiarch_target) <shortname, longname, doc>: Delete.
10019 <info>: New.
10020 * target-delegates.c: Regenerate.
10021 * target.c: Include <unordered_map>.
10022 (target_ops_p): Delete.
10023 (DEF_VEC_P(target_ops_p)): Delete.
10024 (target_factories): New.
10025 (test_target_info): New.
10026 (test_target_ops::info): New.
10027 (open_target): Adjust to use target_factories.
10028 (add_target_with_completer): Rename to ...
10029 (add_target): ... this. Change prototype. Register target_info
10030 and open callback in target_factories. Register target_info in
10031 command context instead of target_ops.
10032 (add_target): Delete old implementation.
10033 (add_deprecated_target_alias): Change prototype. Adjust.
10034 (the_native_target): New.
10035 (set_native_target, get_native_target): New.
10036 (find_default_run_target): Use the_native_target.
10037 (find_attach_target, find_run_target): Simplify.
10038 (target_ops::open): Delete.
10039 (dummy_target_info): New.
10040 (dummy_target::shortname, dummy_target::longname)
10041 (dummy_target::doc): Delete.
10042 (dummy_target::info): New.
10043 (debug_target::shortname, debug_target::longname)
10044 (debug_target::doc): Delete.
10045 (debug_target::info): New.
10046 * target.h (struct target_info): New.
10047 (target_ops::~target_ops): Add comment.
10048 (target_ops::info): New.
10049 (target_ops::shortname, target_ops::longname, target_ops::doc): No
10050 longer virtual. Implement in terms of target_info.
10051 (set_native_target, get_native_target): Declare.
10052 (target_open_ftype): New.
10053 (add_target, add_target_with_completer)
10054 (add_deprecated_target_alias): Change prototype.
10055 (test_target) <shortname, longname, doc>: Delete.
10056 <info>: New.
10057 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
10058 add_inf_child_target.
10059 * tracefile-tfile.c (tfile_target_info): New.
10060 (tfile_target) <shortname, longname, doc>: Delete.
10061 <info>: New.
10062 (tfile_target::open): Rename to ...
10063 (tfile_target_open): ... this.
10064 (_initialize_tracefile_tfile): Adjust.
10065 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
10066 add_inf_child_target.
10067 * windows-nat.c (_initialize_windows_nat): Use
10068 add_inf_child_target.
10069 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
10070 add_inf_child_target.
10071
10072 2018-05-02 Pedro Alves <palves@redhat.com>
10073
10074 * linux-nat.h (linux_nat_target) <low_new_thread,
10075 low_delete_thread, low_new_fork, low_forget_process,
10076 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
10077 New virtual methods.
10078 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
10079 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
10080 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
10081 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
10082 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
10083 Delete.
10084 * linux-fork.c (delete_fork): Adjust to call low method.
10085 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
10086 (linux_nat_new_fork, linux_nat_forget_process_hook)
10087 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
10088 (linux_nat_status_is_event):
10089 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
10090 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
10091 to call low method.
10092 (sigtrap_is_event): Rename to ...
10093 (linux_nat_target::low_status_is_event): ... this.
10094 (linux_nat_set_status_is_event): Delete.
10095 (save_stop_reason, linux_nat_wait_1)
10096 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
10097 low methods.
10098 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
10099 (linux_nat_set_new_fork, linux_nat_set_forget_process)
10100 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
10101 (linux_nat_set_prepare_to_resume): Delete.
10102 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
10103 low virtual methods.
10104 * amd64-linux-nat.c: Likewise.
10105 * arm-linux-nat.c: Likewise.
10106 * i386-linux-nat.c: Likewise.
10107 * ia64-linux-nat.c: Likewise.
10108 * mips-linux-nat.c: Likewise.
10109 * ppc-linux-nat.c: Likewise.
10110 * s390-linux-nat.c: Likewise.
10111 * sparc64-linux-nat.c: Likewise.
10112 * x86-linux-nat.c: Likewise.
10113 * x86-linux-nat.h: Include "nat/x86-linux.h".
10114 (x86_linux_nat_target) <low_new_fork, low_forget_process,
10115 low_prepare_to_resume, low_new_thread, low_delete_thread>:
10116 Override methods.
10117
10118 2018-05-02 Pedro Alves <palves@redhat.com>
10119
10120 * target.h (target_ops)
10121 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
10122 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
10123 stopped_by_watchpoint, have_continuable_watchpoint,
10124 stopped_data_address, watchpoint_addr_within_range,
10125 can_accel_watchpoint_condition, can_run, thread_alive,
10126 has_all_memory, has_memory, has_stack, has_registers,
10127 has_execution, can_async_p, is_async_p, supports_non_stop,
10128 always_non_stop_p, can_execute_reverse, supports_multi_process,
10129 supports_enable_disable_tracepoint,
10130 supports_disable_randomization, supports_string_tracing,
10131 supports_evaluation_of_breakpoint_conditions,
10132 can_run_breakpoint_commands, filesystem_is_local,
10133 can_download_tracepoint, get_trace_state_variable_value,
10134 set_trace_notes, get_tib_address, use_agent, can_use_agent,
10135 record_is_replaying, record_will_replay,
10136 augmented_libraries_svr4_read>: Adjust to return bool.
10137 * aarch64-linux-nat.c: All implementations adjusted.
10138 * aix-thread.c: All implementations adjusted.
10139 * arm-linux-nat.c: All implementations adjusted.
10140 * breakpoint.c: All implementations adjusted.
10141 * bsd-kvm.c: All implementations adjusted.
10142 * bsd-uthread.c: All implementations adjusted.
10143 * corelow.c: All implementations adjusted.
10144 * ctf.c: All implementations adjusted.
10145 * darwin-nat.c: All implementations adjusted.
10146 * darwin-nat.h: All implementations adjusted.
10147 * exec.c: All implementations adjusted.
10148 * fbsd-nat.c: All implementations adjusted.
10149 * fbsd-nat.h: All implementations adjusted.
10150 * gnu-nat.c: All implementations adjusted.
10151 * gnu-nat.h: All implementations adjusted.
10152 * go32-nat.c: All implementations adjusted.
10153 * ia64-linux-nat.c: All implementations adjusted.
10154 * inf-child.c: All implementations adjusted.
10155 * inf-child.h: All implementations adjusted.
10156 * inf-ptrace.c: All implementations adjusted.
10157 * inf-ptrace.h: All implementations adjusted.
10158 * linux-nat.c: All implementations adjusted.
10159 * linux-nat.h: All implementations adjusted.
10160 * mips-linux-nat.c: All implementations adjusted.
10161 * nto-procfs.c: All implementations adjusted.
10162 * ppc-linux-nat.c: All implementations adjusted.
10163 * procfs.c: All implementations adjusted.
10164 * ravenscar-thread.c: All implementations adjusted.
10165 * record-btrace.c: All implementations adjusted.
10166 * record-full.c: All implementations adjusted.
10167 * remote-sim.c: All implementations adjusted.
10168 * remote.c: All implementations adjusted.
10169 * s390-linux-nat.c: All implementations adjusted.
10170 * sol-thread.c: All implementations adjusted.
10171 * spu-multiarch.c: All implementations adjusted.
10172 * target-delegates.c: All implementations adjusted.
10173 * target.c: All implementations adjusted.
10174 * target.h: All implementations adjusted.
10175 * tracefile-tfile.c: All implementations adjusted.
10176 * tracefile.c: All implementations adjusted.
10177 * tracefile.h: All implementations adjusted.
10178 * windows-nat.c: All implementations adjusted.
10179 * x86-linux-nat.h: All implementations adjusted.
10180 * x86-nat.h: All implementations adjusted.
10181
10182 2018-05-02 Pedro Alves <palves@redhat.com>
10183
10184 * make-target-delegates (scan_target_h): Don't trim lines here.
10185 Replace sequences of tabs and/or whitespace with a single
10186 whitespace.
10187 (top level, parsing methods): Trim each line before processing it
10188 here.
10189
10190 2018-05-02 Pedro Alves <palves@redhat.com>
10191 John Baldwin <jhb@freebsd.org>
10192
10193 * target.h (enum strata) <debug_stratum>: New.
10194 (struct target_ops) <all delegation methods>: Replace by C++
10195 virtual methods, and drop "to_" prefix. All references updated
10196 throughout.
10197 <to_shortname, to_longname, to_doc, to_data,
10198 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
10199 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
10200 virtual methods. All references updated throughout.
10201 <can_attach, supports_terminal_ours, can_create_inferior,
10202 get_thread_control_capabilities, attach_no_wait>: New
10203 virtual methods.
10204 <insert_breakpoint, remove_breakpoint>: Now
10205 TARGET_DEFAULT_NORETURN methods.
10206 <info_proc>: Now returns bool.
10207 <to_magic>: Delete.
10208 (OPS_MAGIC): Delete.
10209 (current_target): Delete. All references replaced by references
10210 to ...
10211 (target_stack): ... this. New.
10212 (target_shortname, target_longname): Adjust.
10213 (target_can_run): Now a function declaration.
10214 (default_child_has_all_memory, default_child_has_memory)
10215 (default_child_has_stack, default_child_has_registers)
10216 (default_child_has_execution): Remove target_ops parameter.
10217 (complete_target_initialization): Delete.
10218 (memory_breakpoint_target): New template class.
10219 (test_target_ops): Refactor as a C++ class with virtual methods.
10220 * make-target-delegates (NAME_PART): Tighten.
10221 (POINTER_PART, CP_SYMBOL): New.
10222 (SIMPLE_RETURN_PART): Reimplement.
10223 (VEC_RETURN_PART): Expect less.
10224 (RETURN_PART, VIRTUAL_PART): New.
10225 (METHOD): Adjust to C++ virtual methods.
10226 (scan_target_h): Remove reference to C99.
10227 (dname): Output "target_ops::" prefix.
10228 (write_function_header): Adjust to output a C++ class method.
10229 (write_declaration): New.
10230 (write_delegator): Adjust to output a C++ class method.
10231 (tdname): Output "dummy_target::" prefix.
10232 (write_tdefault, write_debugmethod): Adjust to output a C++ class
10233 method.
10234 (tdefault_names, debug_names): Delete.
10235 (return_types, tdefaults, styles, argtypes_array): New.
10236 (top level): All methods are delegators.
10237 (print_class): New.
10238 (top level): Print dummy_target and debug_target classes.
10239 * target-delegates.c: Regenerate.
10240 * target-debug.h (target_debug_print_enum_info_proc_what)
10241 (target_debug_print_thread_control_capabilities)
10242 (target_debug_print_thread_info_p): New.
10243 * target.c (dummy_target): Delete.
10244 (the_dummy_target, the_debug_target): New.
10245 (target_stack): Now extern.
10246 (set_targetdebug): Push/unpush debug target.
10247 (default_child_has_all_memory, default_child_has_memory)
10248 (default_child_has_stack, default_child_has_registers)
10249 (default_child_has_execution): Remove target_ops parameter.
10250 (complete_target_initialization): Delete.
10251 (add_target_with_completer): No longer call
10252 complete_target_initialization.
10253 (target_supports_terminal_ours): Use regular delegation.
10254 (update_current_target): Delete.
10255 (push_target): No longer check magic number. Don't call
10256 update_current_target.
10257 (unpush_target): Don't call update_current_target.
10258 (target_is_pushed): No longer check magic number.
10259 (target_require_runnable): Skip for all stratums over
10260 process_stratum.
10261 (target_ops::info_proc): New.
10262 (target_info_proc): Use find_target_at and
10263 find_default_run_target.
10264 (target_supports_disable_randomization): Use regular delegation.
10265 (target_get_osdata): Use find_target_at.
10266 (target_ops::open, target_ops::close, target_ops::can_attach)
10267 (target_ops::attach, target_ops::can_create_inferior)
10268 (target_ops::create_inferior, target_ops::can_run)
10269 (target_can_run): New.
10270 (default_fileio_target): Use regular delegation.
10271 (target_ops::fileio_open, target_ops::fileio_pwrite)
10272 (target_ops::fileio_pread, target_ops::fileio_fstat)
10273 (target_ops::fileio_close, target_ops::fileio_unlink)
10274 (target_ops::fileio_readlink): New.
10275 (target_fileio_open_1, target_fileio_unlink)
10276 (target_fileio_readlink): Always call the target method. Handle
10277 FILEIO_ENOSYS.
10278 (return_zero, return_zero_has_execution): Delete.
10279 (init_dummy_target): Delete.
10280 (dummy_target::dummy_target, dummy_target::shortname)
10281 (dummy_target::longname, dummy_target::doc)
10282 (debug_target::debug_target, debug_target::shortname)
10283 (debug_target::longname, debug_target::doc): New.
10284 (target_supports_delete_record): Use regular delegation.
10285 (setup_target_debug): Delete.
10286 (maintenance_print_target_stack): Skip debug_stratum.
10287 (initialize_targets): Instantiate the_dummy_target and
10288 the_debug_target.
10289 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
10290 use target_stack.
10291 (target_auxv_search, fprint_target_auxv): Adjust.
10292 (info_auxv_command): Adjust to use target_stack.
10293 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
10294 * exceptions.c (print_flush): Handle a NULL target_stack.
10295 * regcache.c (target_ops_no_register): Refactor as class with
10296 virtual methods.
10297
10298 * exec.c (exec_target): New class.
10299 (exec_ops): Now an exec_target.
10300 (exec_open, exec_close_1, exec_get_section_table)
10301 (exec_xfer_partial, exec_files_info, exec_has_memory)
10302 (exec_make_note_section): Refactor as exec_target methods.
10303 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
10304 Delete.
10305 (exec_target::find_memory_regions): New.
10306 (_initialize_exec): Don't call init_exec_ops.
10307 * gdbcore.h (exec_file_clear): Delete.
10308
10309 * corefile.c (core_target): Delete.
10310 (core_file_command): Adjust.
10311 * corelow.c (core_target): New class.
10312 (the_core_target): New.
10313 (core_close): Remove target_ops parameter.
10314 (core_close_cleanup): Adjust.
10315 (core_target::close): New.
10316 (core_open, core_detach, get_core_registers, core_files_info)
10317 (core_xfer_partial, core_thread_alive, core_read_description)
10318 (core_pid_to_str, core_thread_name, core_has_memory)
10319 (core_has_stack, core_has_registers, core_info_proc): Rework as
10320 core_target methods.
10321 (ignore, core_remove_breakpoint, init_core_ops): Delete.
10322 (_initialize_corelow): Initialize the_core_target.
10323 * gdbcore.h (core_target): Delete.
10324 (the_core_target): New.
10325
10326 * ctf.c: (ctf_target): New class.
10327 (ctf_ops): Now a ctf_target.
10328 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
10329 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
10330 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
10331 methods.
10332 (init_ctf_ops): Delete.
10333 (_initialize_ctf): Don't call it.
10334 * tracefile-tfile.c (tfile_target): New class.
10335 (tfile_ops): Now a tfile_target.
10336 (tfile_open, tfile_close, tfile_files_info)
10337 (tfile_get_tracepoint_status, tfile_trace_find)
10338 (tfile_fetch_registers, tfile_xfer_partial)
10339 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
10340 Refactor as tfile_target methods.
10341 (tfile_xfer_partial_features): Remove target_ops parameter.
10342 (init_tfile_ops): Delete.
10343 (_initialize_tracefile_tfile): Don't call it.
10344 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
10345 (tracefile_has_stack, tracefile_has_registers)
10346 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
10347 tracefile_target methods.
10348 (init_tracefile_ops): Delete.
10349 (tracefile_target::tracefile_target): New.
10350 * tracefile.h: Include "target.h".
10351 (tracefile_target): New class.
10352 (init_tracefile_ops): Delete.
10353
10354 * spu-multiarch.c (spu_multiarch_target): New class.
10355 (spu_ops): Now a spu_multiarch_target.
10356 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
10357 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
10358 (spu_search_memory, spu_mourn_inferior): Refactor as
10359 spu_multiarch_target methods.
10360 (init_spu_ops): Delete.
10361 (_initialize_spu_multiarch): Remove references to init_spu_ops,
10362 complete_target_initialization.
10363
10364 * ravenscar-thread.c (ravenscar_thread_target): New class.
10365 (ravenscar_ops): Now a ravenscar_thread_target.
10366 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
10367 (ravenscar_thread_alive, ravenscar_pid_to_str)
10368 (ravenscar_fetch_registers, ravenscar_store_registers)
10369 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
10370 (ravenscar_stopped_by_hw_breakpoint)
10371 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
10372 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
10373 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
10374 methods.
10375 (init_ravenscar_thread_ops): Delete.
10376 (_initialize_ravenscar): Remove references to
10377 init_ravenscar_thread_ops and complete_target_initialization.
10378
10379 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
10380 (bsd_uthread_target): New class.
10381 (bsd_uthread_ops): Now a bsd_uthread_target.
10382 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
10383 (bsd_uthread_close, bsd_uthread_mourn_inferior)
10384 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
10385 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
10386 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
10387 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
10388 (bsd_uthread_target): Delete function.
10389 (_initialize_bsd_uthread): Remove reference to
10390 complete_target_initialization.
10391
10392 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
10393 (target_bfd): ... this new class.
10394 (target_bfd_xfer_partial, target_bfd_get_section_table)
10395 (target_bfd_close): Refactor as target_bfd methods.
10396 (target_bfd::~target_bfd): New.
10397 (target_bfd_reopen): Adjust.
10398 (target_bfd::close): New.
10399
10400 * record-btrace.c (record_btrace_target): New class.
10401 (record_btrace_ops): Now a record_btrace_target.
10402 (record_btrace_open, record_btrace_stop_recording)
10403 (record_btrace_disconnect, record_btrace_close)
10404 (record_btrace_async, record_btrace_info)
10405 (record_btrace_insn_history, record_btrace_insn_history_range)
10406 (record_btrace_insn_history_from, record_btrace_call_history)
10407 (record_btrace_call_history_range)
10408 (record_btrace_call_history_from, record_btrace_record_method)
10409 (record_btrace_is_replaying, record_btrace_will_replay)
10410 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
10411 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
10412 (record_btrace_store_registers, record_btrace_prepare_to_store)
10413 (record_btrace_to_get_unwinder)
10414 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
10415 (record_btrace_commit_resume, record_btrace_wait)
10416 (record_btrace_stop, record_btrace_can_execute_reverse)
10417 (record_btrace_stopped_by_sw_breakpoint)
10418 (record_btrace_supports_stopped_by_sw_breakpoint)
10419 (record_btrace_stopped_by_hw_breakpoint)
10420 (record_btrace_supports_stopped_by_hw_breakpoint)
10421 (record_btrace_update_thread_list, record_btrace_thread_alive)
10422 (record_btrace_goto_begin, record_btrace_goto_end)
10423 (record_btrace_goto, record_btrace_stop_replaying_all)
10424 (record_btrace_execution_direction)
10425 (record_btrace_prepare_to_generate_core)
10426 (record_btrace_done_generating_core): Refactor as
10427 record_btrace_target methods.
10428 (init_record_btrace_ops): Delete.
10429 (_initialize_record_btrace): Remove reference to
10430 init_record_btrace_ops.
10431 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
10432 the execution_direction global.
10433 (record_full_base_target, record_full_target)
10434 (record_full_core_target): New classes.
10435 (record_full_ops): Now a record_full_target.
10436 (record_full_core_ops): Now a record_full_core_target.
10437 (record_full_target::detach, record_full_target::disconnect)
10438 (record_full_core_target::disconnect)
10439 (record_full_target::mourn_inferior, record_full_target::kill):
10440 New.
10441 (record_full_open, record_full_close, record_full_async): Refactor
10442 as methods of the record_full_base_target class.
10443 (record_full_resume, record_full_commit_resume): Refactor
10444 as methods of the record_full_target class.
10445 (record_full_wait, record_full_stopped_by_watchpoint)
10446 (record_full_stopped_data_address)
10447 (record_full_stopped_by_sw_breakpoint)
10448 (record_full_supports_stopped_by_sw_breakpoint)
10449 (record_full_stopped_by_hw_breakpoint)
10450 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
10451 methods of the record_full_base_target class.
10452 (record_full_store_registers, record_full_xfer_partial)
10453 (record_full_insert_breakpoint, record_full_remove_breakpoint):
10454 Refactor as methods of the record_full_target class.
10455 (record_full_can_execute_reverse, record_full_get_bookmark)
10456 (record_full_goto_bookmark, record_full_execution_direction)
10457 (record_full_record_method, record_full_info, record_full_delete)
10458 (record_full_is_replaying, record_full_will_replay)
10459 (record_full_goto_begin, record_full_goto_end, record_full_goto)
10460 (record_full_stop_replaying): Refactor as methods of the
10461 record_full_base_target class.
10462 (record_full_core_resume, record_full_core_kill)
10463 (record_full_core_fetch_registers)
10464 (record_full_core_prepare_to_store)
10465 (record_full_core_store_registers, record_full_core_xfer_partial)
10466 (record_full_core_insert_breakpoint)
10467 (record_full_core_remove_breakpoint)
10468 (record_full_core_has_execution): Refactor
10469 as methods of the record_full_core_target class.
10470 (record_full_base_target::supports_delete_record): New.
10471 (init_record_full_ops): Delete.
10472 (init_record_full_core_ops): Delete.
10473 (record_full_save): Refactor as method of the
10474 record_full_base_target class.
10475 (_initialize_record_full): Remove references to
10476 init_record_full_ops and init_record_full_core_ops.
10477
10478 * remote.c (remote_target, extended_remote_target): New classes.
10479 (remote_ops): Now a remote_target.
10480 (extended_remote_ops): Now an extended_remote_target.
10481 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
10482 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
10483 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
10484 (remote_pass_signals, remote_set_syscall_catchpoint)
10485 (remote_program_signals, )
10486 (remote_thread_always_alive): Remove target_ops parameter.
10487 (remote_thread_alive, remote_thread_name)
10488 (remote_update_thread_list, remote_threads_extra_info)
10489 (remote_static_tracepoint_marker_at)
10490 (remote_static_tracepoint_markers_by_strid)
10491 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
10492 (remote_open): Refactor as methods of remote_target.
10493 (extended_remote_open, extended_remote_detach)
10494 (extended_remote_attach, extended_remote_post_attach):
10495 (extended_remote_supports_disable_randomization)
10496 (extended_remote_create_inferior): : Refactor as method of
10497 extended_remote_target.
10498 (remote_set_permissions, remote_open_1, remote_detach)
10499 (remote_follow_fork, remote_follow_exec, remote_disconnect)
10500 (remote_resume, remote_commit_resume, remote_stop)
10501 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
10502 (remote_terminal_ours, remote_wait, remote_fetch_registers)
10503 (remote_prepare_to_store, remote_store_registers)
10504 (remote_flash_erase, remote_flash_done, remote_files_info)
10505 (remote_kill, remote_mourn, remote_insert_breakpoint)
10506 (remote_remove_breakpoint, remote_insert_watchpoint)
10507 (remote_watchpoint_addr_within_range)
10508 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
10509 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
10510 (remote_supports_stopped_by_sw_breakpoint)
10511 (remote_stopped_by_hw_breakpoint)
10512 (remote_supports_stopped_by_hw_breakpoint)
10513 (remote_stopped_by_watchpoint, remote_stopped_data_address)
10514 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
10515 (remote_verify_memory): Refactor as methods of remote_target.
10516 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
10517 parameter.
10518 (remote_xfer_partial, remote_get_memory_xfer_limit)
10519 (remote_search_memory, remote_rcmd, remote_memory_map)
10520 (remote_pid_to_str, remote_get_thread_local_address)
10521 (remote_get_tib_address, remote_read_description): Refactor as
10522 methods of remote_target.
10523 (remote_target::fileio_open, remote_target::fileio_pwrite)
10524 (remote_target::fileio_pread, remote_target::fileio_close): New.
10525 (remote_hostio_readlink, remote_hostio_fstat)
10526 (remote_filesystem_is_local, remote_can_execute_reverse)
10527 (remote_supports_non_stop, remote_supports_disable_randomization)
10528 (remote_supports_multi_process, remote_supports_cond_breakpoints)
10529 (remote_supports_enable_disable_tracepoint)
10530 (remote_supports_string_tracing)
10531 (remote_can_run_breakpoint_commands, remote_trace_init)
10532 (remote_download_tracepoint, remote_can_download_tracepoint)
10533 (remote_download_trace_state_variable, remote_enable_tracepoint)
10534 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
10535 (remote_trace_start, remote_get_trace_status)
10536 (remote_get_tracepoint_status, remote_trace_stop)
10537 (remote_trace_find, remote_get_trace_state_variable_value)
10538 (remote_save_trace_data, remote_get_raw_trace_data)
10539 (remote_set_disconnected_tracing, remote_core_of_thread)
10540 (remote_set_circular_trace_buffer, remote_traceframe_info)
10541 (remote_get_min_fast_tracepoint_insn_len)
10542 (remote_set_trace_buffer_size, remote_set_trace_notes)
10543 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
10544 (remote_disable_btrace, remote_teardown_btrace)
10545 (remote_read_btrace, remote_btrace_conf)
10546 (remote_augmented_libraries_svr4_read, remote_load)
10547 (remote_pid_to_exec_file, remote_can_do_single_step)
10548 (remote_execution_direction, remote_thread_handle_to_thread_info):
10549 Refactor as methods of remote_target.
10550 (init_remote_ops, init_extended_remote_ops): Delete.
10551 (remote_can_async_p, remote_is_async_p, remote_async)
10552 (remote_thread_events, remote_upload_tracepoints)
10553 (remote_upload_trace_state_variables): Refactor as methods of
10554 remote_target.
10555 (_initialize_remote): Remove references to init_remote_ops and
10556 init_extended_remote_ops.
10557
10558 * remote-sim.c (gdbsim_target): New class.
10559 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
10560 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
10561 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
10562 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
10563 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
10564 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
10565 Refactor as methods of gdbsim_target.
10566 (gdbsim_ops): Now a gdbsim_target.
10567 (init_gdbsim_ops): Delete.
10568 (gdbsim_cntrl_c): Adjust.
10569 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
10570
10571 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
10572 (the_amd64_linux_nat_target): New.
10573 (amd64_linux_fetch_inferior_registers)
10574 (amd64_linux_store_inferior_registers): Refactor as methods of
10575 amd64_linux_nat_target.
10576 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
10577 * i386-linux-nat.c: Don't include "linux-nat.h".
10578 (i386_linux_nat_target): New class.
10579 (the_i386_linux_nat_target): New.
10580 (i386_linux_fetch_inferior_registers)
10581 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
10582 as methods of i386_linux_nat_target.
10583 (_initialize_i386_linux_nat): Adjust. Set linux_target.
10584 * inf-child.c (inf_child_ops): Delete.
10585 (inf_child_fetch_inferior_registers)
10586 (inf_child_store_inferior_registers): Delete.
10587 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
10588 methods of inf_child_target.
10589 (inf_child_target::supports_terminal_ours)
10590 (inf_child_target::terminal_init)
10591 (inf_child_target::terminal_inferior)
10592 (inf_child_target::terminal_ours_for_output)
10593 (inf_child_target::terminal_ours, inf_child_target::interrupt)
10594 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
10595 New.
10596 (inf_child_open, inf_child_disconnect, inf_child_close)
10597 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
10598 (inf_child_post_startup_inferior, inf_child_can_run)
10599 (inf_child_pid_to_exec_file): Refactor as methods of
10600 inf_child_target.
10601 (inf_child_follow_fork): Delete.
10602 (inf_child_target::can_create_inferior)
10603 (inf_child_target::can_attach): New.
10604 (inf_child_target::has_all_memory, inf_child_target::has_memory)
10605 (inf_child_target::has_stack, inf_child_target::has_registers)
10606 (inf_child_target::has_execution): New.
10607 (inf_child_fileio_open, inf_child_fileio_pwrite)
10608 (inf_child_fileio_pread, inf_child_fileio_fstat)
10609 (inf_child_fileio_close, inf_child_fileio_unlink)
10610 (inf_child_fileio_readlink, inf_child_use_agent)
10611 (inf_child_can_use_agent): Refactor as methods of
10612 inf_child_target.
10613 (return_zero, inf_child_target): Delete.
10614 (inf_child_target::inf_child_target): New.
10615 * inf-child.h: Include "target.h".
10616 (inf_child_target): Delete function prototype.
10617 (inf_child_target): New class.
10618 (inf_child_open_target, inf_child_mourn_inferior)
10619 (inf_child_maybe_unpush_target): Delete.
10620 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
10621 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
10622 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
10623 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
10624 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
10625 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
10626 (inf_ptrace_wait, inf_ptrace_xfer_partial)
10627 (inf_ptrace_thread_alive, inf_ptrace_files_info)
10628 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
10629 methods of inf_ptrace_target.
10630 (inf_ptrace_target): Delete function.
10631 * inf-ptrace.h: Include "inf-child.h".
10632 (inf_ptrace_target): Delete function declaration.
10633 (inf_ptrace_target): New class.
10634 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
10635 * linux-nat.c (linux_target): New.
10636 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
10637 (linux_nat_target::~linux_nat_target): New.
10638 (linux_child_post_attach, linux_child_post_startup_inferior)
10639 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
10640 (linux_child_remove_fork_catchpoint)
10641 (linux_child_insert_vfork_catchpoint)
10642 (linux_child_remove_vfork_catchpoint)
10643 (linux_child_insert_exec_catchpoint)
10644 (linux_child_remove_exec_catchpoint)
10645 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
10646 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
10647 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
10648 (linux_nat_stopped_data_address)
10649 (linux_nat_stopped_by_sw_breakpoint)
10650 (linux_nat_supports_stopped_by_sw_breakpoint)
10651 (linux_nat_stopped_by_hw_breakpoint)
10652 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
10653 (linux_nat_kill, linux_nat_mourn_inferior)
10654 (linux_nat_xfer_partial, linux_nat_thread_alive)
10655 (linux_nat_update_thread_list, linux_nat_pid_to_str)
10656 (linux_nat_thread_name, linux_child_pid_to_exec_file)
10657 (linux_child_static_tracepoint_markers_by_strid)
10658 (linux_nat_is_async_p, linux_nat_can_async_p)
10659 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
10660 (linux_nat_supports_multi_process)
10661 (linux_nat_supports_disable_randomization, linux_nat_async)
10662 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
10663 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
10664 (linux_nat_fileio_open, linux_nat_fileio_readlink)
10665 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
10666 methods of linux_nat_target.
10667 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
10668 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
10669 parameter.
10670 (check_stopped_by_watchpoint): Adjust.
10671 (linux_xfer_partial): Delete.
10672 (linux_target_install_ops, linux_target, linux_nat_add_target):
10673 Delete.
10674 (linux_nat_target::linux_nat_target): New.
10675 * linux-nat.h: Include "inf-ptrace.h".
10676 (linux_nat_target): New.
10677 (linux_target, linux_target_install_ops, linux_nat_add_target):
10678 Delete function declarations.
10679 (linux_target): Declare global.
10680 * linux-thread-db.c (thread_db_target): New.
10681 (thread_db_target::thread_db_target): New.
10682 (thread_db_ops): Delete.
10683 (the_thread_db_target): New.
10684 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
10685 (thread_db_update_thread_list, thread_db_pid_to_str)
10686 (thread_db_extra_thread_info)
10687 (thread_db_thread_handle_to_thread_info)
10688 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
10689 (thread_db_resume): Refactor as methods of thread_db_target.
10690 (init_thread_db_ops): Delete.
10691 (_initialize_thread_db): Remove reference to init_thread_db_ops.
10692 * x86-linux-nat.c: Don't include "linux-nat.h".
10693 (super_post_startup_inferior): Delete.
10694 (x86_linux_nat_target::~x86_linux_nat_target): New.
10695 (x86_linux_child_post_startup_inferior)
10696 (x86_linux_read_description, x86_linux_enable_btrace)
10697 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
10698 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
10699 methods of x86_linux_nat_target.
10700 (x86_linux_create_target): Delete. Bits folded ...
10701 (x86_linux_add_target): ... here. Now takes a linux_nat_target
10702 pointer.
10703 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
10704 (x86_linux_nat_target): New class.
10705 (x86_linux_create_target): Delete.
10706 (x86_linux_add_target): Now takes a linux_nat_target pointer.
10707 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
10708 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
10709 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
10710 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
10711 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
10712 make extern.
10713 (x86_use_watchpoints): Delete.
10714 * x86-nat.h: Include "breakpoint.h" and "target.h".
10715 (x86_use_watchpoints): Delete.
10716 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
10717 (x86_stopped_by_watchpoint, x86_stopped_data_address)
10718 (x86_insert_watchpoint, x86_remove_watchpoint)
10719 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
10720 (x86_stopped_by_hw_breakpoint): New declarations.
10721 (x86_nat_target): New template class.
10722
10723 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
10724 (the_ppc_linux_nat_target): New.
10725 (ppc_linux_fetch_inferior_registers)
10726 (ppc_linux_can_use_hw_breakpoint)
10727 (ppc_linux_region_ok_for_hw_watchpoint)
10728 (ppc_linux_ranged_break_num_registers)
10729 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
10730 (ppc_linux_insert_mask_watchpoint)
10731 (ppc_linux_remove_mask_watchpoint)
10732 (ppc_linux_can_accel_watchpoint_condition)
10733 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
10734 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
10735 (ppc_linux_watchpoint_addr_within_range)
10736 (ppc_linux_masked_watch_num_registers)
10737 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
10738 (ppc_linux_read_description): Refactor as methods of
10739 ppc_linux_nat_target.
10740 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
10741
10742 * procfs.c (procfs_xfer_partial): Delete forward declaration.
10743 (procfs_target): New class.
10744 (the_procfs_target): New.
10745 (procfs_target): Delete function.
10746 (procfs_auxv_parse, procfs_attach, procfs_detach)
10747 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
10748 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
10749 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
10750 (procfs_create_inferior, procfs_update_thread_list)
10751 (procfs_thread_alive, procfs_pid_to_str)
10752 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
10753 (procfs_stopped_data_address, procfs_insert_watchpoint)
10754 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
10755 (proc_find_memory_regions, procfs_info_proc)
10756 (procfs_make_note_section): Refactor as methods of procfs_target.
10757 (_initialize_procfs): Adjust.
10758 * sol-thread.c (sol_thread_target): New class.
10759 (sol_thread_ops): Now a sol_thread_target.
10760 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
10761 (sol_thread_fetch_registers, sol_thread_store_registers)
10762 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
10763 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
10764 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
10765 (init_sol_thread_ops): Delete.
10766 (_initialize_sol_thread): Adjust. Remove references to
10767 init_sol_thread_ops and complete_target_initialization.
10768
10769 * windows-nat.c (windows_nat_target): New class.
10770 (windows_fetch_inferior_registers)
10771 (windows_store_inferior_registers, windows_resume, windows_wait)
10772 (windows_attach, windows_detach, windows_pid_to_exec_file)
10773 (windows_files_info, windows_create_inferior)
10774 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
10775 (windows_close, windows_pid_to_str, windows_xfer_partial)
10776 (windows_get_tib_address, windows_get_ada_task_ptid)
10777 (windows_thread_name, windows_thread_alive): Refactor as
10778 windows_nat_target methods.
10779 (do_initial_windows_stuff): Adjust.
10780 (windows_target): Delete function.
10781 (_initialize_windows_nat): Adjust.
10782
10783 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
10784 (darwin_mourn_inferior, darwin_kill_inferior)
10785 (darwin_create_inferior, darwin_attach, darwin_detach)
10786 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
10787 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
10788 (darwin_supports_multi_process): Refactor as darwin_nat_target
10789 methods.
10790 (darwin_resume_to, darwin_files_info): Delete.
10791 (_initialize_darwin_inferior): Rename to ...
10792 (_initialize_darwin_nat): ... this. Adjust to C++ification.
10793 * darwin-nat.h: Include "inf-child.h".
10794 (darwin_nat_target): New class.
10795 (darwin_complete_target): Delete.
10796 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
10797 (darwin_target): New.
10798 (i386_darwin_fetch_inferior_registers)
10799 (i386_darwin_store_inferior_registers): Refactor as methods of
10800 darwin_nat_target.
10801 (darwin_complete_target): Delete, with ...
10802 (_initialize_i386_darwin_nat): ... bits factored out here.
10803
10804 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
10805 (the_alpha_linux_nat_target): New.
10806 (alpha_linux_register_u_offset): Refactor as
10807 alpha_linux_nat_target method.
10808 (_initialize_alpha_linux_nat): Adjust.
10809 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
10810 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
10811 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
10812 methods of linux_nat_trad_target.
10813 (linux_trad_target): Delete.
10814 * linux-nat-trad.h (linux_trad_target): Delete function.
10815 (linux_nat_trad_target): New class.
10816 * mips-linux-nat.c (mips_linux_nat_target): New class.
10817 (super_fetch_registers, super_store_registers, super_close):
10818 Delete.
10819 (the_mips_linux_nat_target): New.
10820 (mips64_linux_regsets_fetch_registers)
10821 (mips64_linux_regsets_store_registers)
10822 (mips64_linux_fetch_registers, mips64_linux_store_registers)
10823 (mips_linux_register_u_offset, mips_linux_read_description)
10824 (mips_linux_can_use_hw_breakpoint)
10825 (mips_linux_stopped_by_watchpoint)
10826 (mips_linux_stopped_data_address)
10827 (mips_linux_region_ok_for_hw_watchpoint)
10828 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
10829 (mips_linux_close): Refactor as methods of mips_linux_nat.
10830 (_initialize_mips_linux_nat): Adjust to C++ification.
10831
10832 * aix-thread.c (aix_thread_target): New class.
10833 (aix_thread_ops): Now an aix_thread_target.
10834 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
10835 (aix_thread_fetch_registers, aix_thread_store_registers)
10836 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
10837 (aix_thread_thread_alive, aix_thread_pid_to_str)
10838 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
10839 Refactor as methods of aix_thread_target.
10840 (init_aix_thread_ops): Delete.
10841 (_initialize_aix_thread): Remove references to init_aix_thread_ops
10842 and complete_target_initialization.
10843 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
10844 (rs6000_nat_target): New class.
10845 (the_rs6000_nat_target): New.
10846 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
10847 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
10848 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
10849 (super_create_inferior): Delete.
10850 (_initialize_rs6000_nat): Adjust to C++ification.
10851
10852 * arm-linux-nat.c (arm_linux_nat_target): New class.
10853 (the_arm_linux_nat_target): New.
10854 (arm_linux_fetch_inferior_registers)
10855 (arm_linux_store_inferior_registers, arm_linux_read_description)
10856 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
10857 (arm_linux_remove_hw_breakpoint)
10858 (arm_linux_region_ok_for_hw_watchpoint)
10859 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
10860 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
10861 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
10862 arm_linux_nat_target.
10863 (_initialize_arm_linux_nat): Adjust to C++ification.
10864
10865 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
10866 (the_aarch64_linux_nat_target): New.
10867 (aarch64_linux_fetch_inferior_registers)
10868 (aarch64_linux_store_inferior_registers)
10869 (aarch64_linux_child_post_startup_inferior)
10870 (aarch64_linux_read_description)
10871 (aarch64_linux_can_use_hw_breakpoint)
10872 (aarch64_linux_insert_hw_breakpoint)
10873 (aarch64_linux_remove_hw_breakpoint)
10874 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
10875 (aarch64_linux_region_ok_for_hw_watchpoint)
10876 (aarch64_linux_stopped_data_address)
10877 (aarch64_linux_stopped_by_watchpoint)
10878 (aarch64_linux_watchpoint_addr_within_range)
10879 (aarch64_linux_can_do_single_step): Refactor as methods of
10880 aarch64_linux_nat_target.
10881 (super_post_startup_inferior): Delete.
10882 (_initialize_aarch64_linux_nat): Adjust to C++ification.
10883
10884 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
10885 (the_hppa_linux_nat_target): New.
10886 (hppa_linux_fetch_inferior_registers)
10887 (hppa_linux_store_inferior_registers): Refactor as methods of
10888 hppa_linux_nat_target.
10889 (_initialize_hppa_linux_nat): Adjust to C++ification.
10890
10891 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
10892 (the_ia64_linux_nat_target): New.
10893 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
10894 (ia64_linux_stopped_data_address)
10895 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
10896 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
10897 ia64_linux_nat_target methods.
10898 (super_xfer_partial): Delete.
10899 (_initialize_ia64_linux_nat): Adjust to C++ification.
10900
10901 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
10902 (the_m32r_linux_nat_target): New.
10903 (m32r_linux_fetch_inferior_registers)
10904 (m32r_linux_store_inferior_registers): Refactor as
10905 m32r_linux_nat_target methods.
10906 (_initialize_m32r_linux_nat): Adjust to C++ification.
10907
10908 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
10909 (the_m68k_linux_nat_target): New.
10910 (m68k_linux_fetch_inferior_registers)
10911 (m68k_linux_store_inferior_registers): Refactor as
10912 m68k_linux_nat_target methods.
10913 (_initialize_m68k_linux_nat): Adjust to C++ification.
10914
10915 * s390-linux-nat.c (s390_linux_nat_target): New class.
10916 (the_s390_linux_nat_target): New.
10917 (s390_linux_fetch_inferior_registers)
10918 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
10919 (s390_insert_watchpoint, s390_remove_watchpoint)
10920 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
10921 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
10922 (s390_auxv_parse, s390_read_description): Refactor as methods of
10923 s390_linux_nat_target.
10924 (_initialize_s390_nat): Adjust to C++ification.
10925
10926 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
10927 (the_sparc_linux_nat_target): New.
10928 (_initialize_sparc_linux_nat): Adjust to C++ification.
10929 * sparc-nat.c (sparc_fetch_inferior_registers)
10930 (sparc_store_inferior_registers): Remove target_ops parameter.
10931 * sparc-nat.h (sparc_fetch_inferior_registers)
10932 (sparc_store_inferior_registers): Remove target_ops parameter.
10933 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
10934 (the_sparc64_linux_nat_target): New.
10935 (_initialize_sparc64_linux_nat): Adjust to C++ification.
10936
10937 * spu-linux-nat.c (spu_linux_nat_target): New class.
10938 (the_spu_linux_nat_target): New.
10939 (spu_child_post_startup_inferior, spu_child_post_attach)
10940 (spu_child_wait, spu_fetch_inferior_registers)
10941 (spu_store_inferior_registers, spu_xfer_partial)
10942 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
10943 methods.
10944 (_initialize_spu_nat): Adjust to C++ification.
10945
10946 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
10947 (the_tilegx_linux_nat_target): New.
10948 (fetch_inferior_registers, store_inferior_registers):
10949 Refactor as methods.
10950 (_initialize_tile_linux_nat): Adjust to C++ification.
10951
10952 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
10953 (the_xtensa_linux_nat_target): New.
10954 (xtensa_linux_fetch_inferior_registers)
10955 (xtensa_linux_store_inferior_registers): Refactor as
10956 xtensa_linux_nat_target methods.
10957 (_initialize_xtensa_linux_nat): Adjust to C++ification.
10958
10959 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
10960 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
10961 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
10962 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
10963 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
10964 (fbsd_stopped_by_sw_breakpoint)
10965 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
10966 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
10967 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
10968 (fbsd_post_startup_inferior, fbsd_post_attach)
10969 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
10970 (fbsd_set_syscall_catchpoint)
10971 (super_xfer_partial, super_resume, super_wait)
10972 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
10973 (fbsd_handle_debug_trap): Remove target_ops parameter.
10974 (fbsd_nat_add_target): Delete.
10975 * fbsd-nat.h: Include "inf-ptrace.h".
10976 (fbsd_nat_add_target): Delete.
10977 (USE_SIGTRAP_SIGINFO): Define.
10978 (fbsd_nat_target): New class.
10979
10980 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
10981 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
10982 (amd64bsd_target): Delete.
10983 * amd64-bsd-nat.h: New file.
10984 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
10985 "x86-bsd-nat.h".
10986 (amd64_fbsd_nat_target): New class.
10987 (the_amd64_fbsd_nat_target): New.
10988 (amd64fbsd_read_description): Refactor as method of
10989 amd64_fbsd_nat_target.
10990 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
10991 (_initialize_amd64fbsd_nat): Adjust to C++ification.
10992 * amd64-nat.h (amd64bsd_target): Delete function declaration.
10993 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
10994 (i386bsd_store_inferior_registers): Remove target_ops parameter.
10995 (i386bsd_target): Delete.
10996 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
10997 (i386bsd_fetch_inferior_registers)
10998 (i386bsd_store_inferior_registers): Declare.
10999 (i386_bsd_nat_target): New class.
11000 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
11001 (the_i386_fbsd_nat_target): New.
11002 (i386fbsd_resume, i386fbsd_read_description): Refactor as
11003 i386_fbsd_nat_target methods.
11004 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
11005 (_initialize_i386fbsd_nat): Adjust to C++ification.
11006 * x86-bsd-nat.c (super_mourn_inferior): Delete.
11007 (x86bsd_mourn_inferior, x86bsd_target): Delete.
11008 (_initialize_x86_bsd_nat): Adjust to C++ification.
11009 * x86-bsd-nat.h: Include "x86-nat.h".
11010 (x86bsd_target): Delete declaration.
11011 (x86bsd_nat_target): New class.
11012
11013 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
11014 (the_aarch64_fbsd_nat_target): New.
11015 (aarch64_fbsd_fetch_inferior_registers)
11016 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
11017 aarch64_fbsd_nat_target.
11018 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
11019 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
11020 (the_alpha_bsd_nat_target): New.
11021 (alphabsd_fetch_inferior_registers)
11022 (alphabsd_store_inferior_registers): Refactor as
11023 alpha_bsd_nat_target methods.
11024 (_initialize_alphabsd_nat): Refactor as methods of
11025 alpha_bsd_nat_target.
11026 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
11027 (the_amd64_nbsd_nat_target): New.
11028 (_initialize_amd64nbsd_nat): Adjust to C++ification.
11029 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
11030 (the_amd64_obsd_nat_target): New.
11031 (_initialize_amd64obsd_nat): Adjust to C++ification.
11032 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
11033 (the_arm_fbsd_nat_target): New.
11034 (arm_fbsd_fetch_inferior_registers)
11035 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
11036 (_initialize_arm_fbsd_nat): Refactor as methods of
11037 arm_fbsd_nat_target.
11038 (_initialize_arm_fbsd_nat): Adjust to C++ification.
11039 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
11040 (the_arm_netbsd_nat_target): New.
11041 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
11042 arm_netbsd_nat_target.
11043 (_initialize_arm_netbsd_nat): Adjust to C++ification.
11044 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
11045 (the_hppa_nbsd_nat_target): New.
11046 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
11047 hppa_nbsd_nat_target methods.
11048 (_initialize_hppanbsd_nat): Adjust to C++ification.
11049 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
11050 (the_hppa_obsd_nat_target): New.
11051 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
11052 methods of hppa_obsd_nat_target.
11053 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
11054 add_target.
11055 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
11056 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
11057 add_target.
11058 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
11059 (_initialize_i386obsd_nat): Use add_target.
11060 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
11061 (the_m68k_bsd_nat_target): New.
11062 (m68kbsd_fetch_inferior_registers)
11063 (m68kbsd_store_inferior_registers): Refactor as methods of
11064 m68k_bsd_nat_target.
11065 (_initialize_m68kbsd_nat): Adjust to C++ification.
11066 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
11067 (the_mips_fbsd_nat_target): New.
11068 (mips_fbsd_fetch_inferior_registers)
11069 (mips_fbsd_store_inferior_registers): Refactor as methods of
11070 mips_fbsd_nat_target.
11071 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
11072 add_target.
11073 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
11074 (the_mips_nbsd_nat_target): New.
11075 (mipsnbsd_fetch_inferior_registers)
11076 (mipsnbsd_store_inferior_registers): Refactor as methods of
11077 mips_nbsd_nat_target.
11078 (_initialize_mipsnbsd_nat): Adjust to C++ification.
11079 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
11080 (the_mips64_obsd_nat_target): New.
11081 (mips64obsd_fetch_inferior_registers)
11082 (mips64obsd_store_inferior_registers): Refactor as methods of
11083 mips64_obsd_nat_target.
11084 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
11085 add_target.
11086 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
11087 nbsd_nat_target.
11088 * nbsd-nat.h: Include "inf-ptrace.h".
11089 (nbsd_nat_target): New class.
11090 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
11091 (obsd_wait): Refactor as methods of obsd_nat_target.
11092 (obsd_add_target): Delete.
11093 * obsd-nat.h: Include "inf-ptrace.h".
11094 (obsd_nat_target): New class.
11095 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
11096 (the_ppc_fbsd_nat_target): New.
11097 (ppcfbsd_fetch_inferior_registers)
11098 (ppcfbsd_store_inferior_registers): Refactor as methods of
11099 ppc_fbsd_nat_target.
11100 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
11101 add_target.
11102 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
11103 (the_ppc_nbsd_nat_target): New.
11104 (ppcnbsd_fetch_inferior_registers)
11105 (ppcnbsd_store_inferior_registers): Refactor as methods of
11106 ppc_nbsd_nat_target.
11107 (_initialize_ppcnbsd_nat): Adjust to C++ification.
11108 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
11109 (the_ppc_obsd_nat_target): New.
11110 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
11111 methods of ppc_obsd_nat_target.
11112 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
11113 add_target.
11114 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
11115 (the_sh_nbsd_nat_target): New.
11116 (shnbsd_fetch_inferior_registers)
11117 (shnbsd_store_inferior_registers): Refactor as methods of
11118 sh_nbsd_nat_target.
11119 (_initialize_shnbsd_nat): Adjust to C++ification.
11120 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
11121 (inf_ptrace_xfer_partial): Delete.
11122 (sparc_xfer_partial, sparc_target): Delete.
11123 * sparc-nat.h (sparc_fetch_inferior_registers)
11124 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
11125 (sparc_target): Delete function declaration.
11126 (sparc_target): New template class.
11127 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
11128 (_initialize_sparcnbsd_nat): Adjust to C++ification.
11129 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
11130 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
11131 add_target.
11132 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
11133 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
11134 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
11135 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
11136 add_target.
11137 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
11138 (the_vax_bsd_nat_target): New.
11139 (vaxbsd_fetch_inferior_registers)
11140 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
11141 methods.
11142 (_initialize_vaxbsd_nat): Adjust to C++ification.
11143
11144 * bsd-kvm.c (bsd_kvm_target): New class.
11145 (bsd_kvm_ops): Now a bsd_kvm_target.
11146 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
11147 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
11148 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
11149 bsd_kvm_target.
11150 (bsd_kvm_return_one): Delete.
11151 (bsd_kvm_add_target): Adjust to C++ification.
11152
11153 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
11154 (nto_procfs_target_procfs): New classes.
11155 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
11156 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
11157 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
11158 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
11159 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
11160 (procfs_remove_hw_breakpoint, procfs_resume)
11161 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
11162 (procfs_kill_inferior, procfs_store_registers)
11163 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
11164 as methods of nto_procfs_target.
11165 (nto_procfs_ops): Now an nto_procfs_target_procfs.
11166 (nto_native_ops): Delete.
11167 (procfs_open, procfs_native_open): Delete.
11168 (nto_native_ops): Now an nto_procfs_target_native.
11169 (init_procfs_targets): Adjust to C++ification.
11170 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
11171 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
11172 Refactor as methods of nto_procfs_target.
11173
11174 * go32-nat.c (go32_nat_target): New class.
11175 (the_go32_nat_target): New.
11176 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
11177 (go32_store_registers, go32_xfer_partial, go32_files_info)
11178 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
11179 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
11180 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
11181 (go32_pid_to_str): Refactor as methods of go32_nat_target.
11182 (go32_target): Delete.
11183 (_initialize_go32_nat): Adjust to C++ification.
11184
11185 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
11186 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
11187 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
11188 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
11189 gnu_nat_target.
11190 (gnu_target): Delete.
11191 * gnu-nat.h (gnu_target): Delete.
11192 (gnu_nat_target): New class.
11193 * i386-gnu-nat.c (gnu_base_target): New.
11194 (i386_gnu_nat_target): New class.
11195 (the_i386_gnu_nat_target): New.
11196 (_initialize_i386gnu_nat): Adjust to C++ification.
11197
11198 2018-05-02 Pedro Alves <palves@redhat.com>
11199
11200 * bfd-target.c (target_bfd_xclose): Rename to ...
11201 (target_bfd_close): ... this.
11202 (target_bfd_reopen): Adjust.
11203 * target.c (target_close): Remove references to to_xclose.
11204 * target.h (target_ops::to_xclose): Delete.
11205 (target_ops::to_close): Update comments.
11206
11207 2018-05-02 Pedro Alves <palves@redhat.com>
11208
11209 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
11210 "linux-nat.h".
11211 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
11212 * inf-ptrace.c (inf_ptrace_register_u_offset)
11213 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
11214 (inf_ptrace_store_register, inf_ptrace_store_registers)
11215 (inf_ptrace_trad_target): Move to ...
11216 * linux-nat-trad.c: ... this new file.
11217 * linux-nat-trad.h: New file.
11218 * linux-nat.c (linux_target_install_ops): Make extern.
11219 (linux_trad_target): Delete.
11220 * linux-nat.h (linux_trad_target): Delete declaration.
11221 (linux_target_install_ops): Declare.
11222 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
11223 "linux-nat.h".
11224
11225 2018-05-02 Pedro Alves <palves@redhat.com>
11226
11227 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
11228 procfs_target/add_target here.
11229 * procfs.c (procfs_target): Make static.
11230 (_initialize_procfs): Call add_target here.
11231 * procfs.h (struct target_ops): Remove forward declaration.
11232 (procfs_target): Remove declaration.
11233 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
11234
11235 2018-05-02 Pedro Alves <palves@redhat.com>
11236
11237 * procfs.c (procfs_stopped_by_watchpoint)
11238 (procfs_insert_watchpoint, procfs_remove_watchpoint)
11239 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
11240 Forward declare.
11241 (procfs_use_watchpoints): Delete, move contents...
11242 (procfs_target): ... here.
11243 * procfs.h (procfs_use_watchpoints): Delete declaration.
11244 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
11245 procfs_use_watchpoints.
11246 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
11247 procfs_use_watchpoints.
11248
11249 2018-05-02 Tom Tromey <tom@tromey.com>
11250
11251 PR python/20084:
11252 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
11253 and var_zuinteger_unlimited.
11254 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
11255 and PARAM_ZUINTEGER_UNLIMITED.
11256 (set_parameter_value): Handle var_zuinteger and
11257 var_zuinteger_unlimited.
11258 (add_setshow_generic): Likewise.
11259 (parmpy_init): Likewise.
11260
11261 2018-04-28 Dan Robertson <danlrobertson89@gmail.com>
11262
11263 PR rust/23124
11264 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
11265 pointer is not null before dereferencing it.
11266
11267 2018-04-30 Tom Tromey <tom@tromey.com>
11268
11269 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
11270 is_mi_like_p.
11271
11272 2018-04-30 Tom Tromey <tom@tromey.com>
11273
11274 * breakpoint.c (mention): Remove use of is_mi_like_p.
11275 (print_mention_ranged_breakpoint): Likewise.
11276 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
11277 of is_mi_like_p.
11278
11279 2018-04-30 Tom Tromey <tom@tromey.com>
11280
11281 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
11282
11283 2018-04-30 Tom Tromey <tom@tromey.com>
11284
11285 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
11286 (info_spu_event_command): Remove some uses of is_mi_like_p.
11287
11288 2018-04-30 Tom Tromey <tom@tromey.com>
11289
11290 * python/py-framefilter.c (py_print_single_arg)
11291 (enumerate_locals, py_print_args, py_print_frame): Remove some
11292 uses of is_mi_like_p.
11293
11294 2018-04-30 Tom Tromey <tom@tromey.com>
11295
11296 * ui-out.c: Update.
11297 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
11298 * ui-out.h (ui_out::is_mi_like_p): Now const.
11299 (ui_out::do_is_mi_like_p): Now const.
11300 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
11301
11302 2018-04-30 Tom Tromey <tom@tromey.com>
11303
11304 * varobj.c (varobj_set_visualizer): Use new_reference.
11305 * python/python.c (gdbpy_decode_line): Use new_reference.
11306 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
11307 new_reference.
11308
11309 2018-04-30 Tom Tromey <tom@tromey.com>
11310
11311 * varobj.c (install_new_value): Use new_reference.
11312 * value.h (value_incref): Return void. Swap intro comment with
11313 value_decref.
11314 * value.c (set_value_parent): Use new_reference.
11315 (value_incref): Return void. Update intro comment.
11316 (release_value): Use new_reference.
11317 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
11318
11319 2018-04-30 Tom Tromey <tom@tromey.com>
11320
11321 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
11322 * gdb_bfd.h (new_bfd_ref): Remove.
11323 (gdb_bfd_open): Update comment.
11324 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
11325 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
11326 (gdb_bfd_fdopenr): Use new_reference.
11327 * exec.c (exec_file_attach): Use new_reference.
11328
11329 2018-04-30 Tom Tromey <tom@tromey.com>
11330
11331 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
11332 method.
11333
11334 2018-04-30 Tom Tromey <tom@tromey.com>
11335
11336 * jit.c (jit_read_code_entry): Use type_align.
11337 * i386-tdep.c (i386_gdbarch_init): Don't call
11338 set_gdbarch_long_long_align_bit.
11339 * gdbarch.sh: Remove long_long_align_bit.
11340 * gdbarch.c, gdbarch.h: Rebuild.
11341 * arc-tdep.c (arc_type_align): New function.
11342 (arc_gdbarch_init): Use arc_type_align. Don't call
11343 set_gdbarch_long_long_align_bit.
11344
11345 2018-04-30 Tom Tromey <tom@tromey.com>
11346
11347 * rust-lang.c (rust_type_alignment): Remove.
11348 (rust_composite_type): Use type_align.
11349
11350 2018-04-30 Tom Tromey <tom@tromey.com>
11351
11352 * NEWS: Mention Type.align.
11353 * python/py-type.c (typy_get_alignof): New function.
11354 (type_object_getset): Add "alignof".
11355
11356 2018-04-30 Tom Tromey <tom@tromey.com>
11357
11358 PR exp/17095:
11359 * NEWS: Update.
11360 * std-operator.def (UNOP_ALIGNOF): New operator.
11361 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
11362 New.
11363 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
11364 * c-lang.c (c_op_print_tab): Add alignof.
11365 * c-exp.y (ALIGNOF): New token.
11366 (exp): Add "ALIGNOF" production.
11367 (ident_tokens): Add _Alignof and alignof.
11368
11369 2018-04-30 Tom Tromey <tom@tromey.com>
11370
11371 * i386-tdep.c (i386_type_align): New function.
11372 (i386_gdbarch_init): Update.
11373 * gdbarch.sh (type_align): New method.
11374 * gdbarch.c, gdbarch.h: Rebuild.
11375 * arch-utils.h (default_type_align): Declare.
11376 * arch-utils.c (default_type_align): New function.
11377 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
11378 (struct type) <align_log2>: New field.
11379 <instance_flags>: Now a bitfield.
11380 (TYPE_RAW_ALIGN): New macro.
11381 (type_align, type_raw_align, set_type_align): Declare.
11382 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
11383 functions.
11384 * dwarf2read.c (quirk_rust_enum): Set type alignment.
11385 (get_alignment, maybe_set_alignment): New functions.
11386 (read_structure_type, read_enumeration_type, read_array_type)
11387 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
11388 (read_subrange_type, read_base_type): Set type alignment.
11389
11390 2018-04-30 Simon Marchi <simon.marchi@ericsson.com>
11391
11392 * dwarf2read.c (read_index_from_section): Use bool.
11393
11394 2018-04-29 Fabian Groffen <grobian@gentoo.org>
11395
11396 PR gdb/22950
11397 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
11398 with #ifdef.
11399
11400 2018-04-29 John Reiser <jreiser@BitWagon.com>
11401
11402 PR build/22873
11403 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
11404 last step, and do it atomically.
11405
11406 2018-04-27 Alexandre Oliva <aoliva@redhat.com>
11407
11408 * compile/compile-c-types.c (convert_int, convert_float):
11409 Update for C FE v1.
11410
11411 2018-04-27 Tom Tromey <tom@tromey.com>
11412
11413 PR rust/22545:
11414 * rust-lang.c (rust_inclusive_range_type_p): New function.
11415 (rust_range): Handle inclusive ranges.
11416 (rust_compute_range): Likewise.
11417 * rust-exp.y (struct rust_op) <inclusive>: New field.
11418 (DOTDOTEQ): New constant.
11419 (range_expr): Add "..=" productions.
11420 (operator_tokens): Add "..=" token.
11421 (ast_range): Add "inclusive" parameter.
11422 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
11423 ranges.
11424 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
11425 bounds values.
11426 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
11427 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
11428 Update comments.
11429 * expprint.c (print_subexp_standard): Handle new bounds values.
11430 (dump_subexp_body_standard): Likewise.
11431
11432 2018-04-27 Tom Tromey <tom@tromey.com>
11433
11434 * configure: Rebuild.
11435 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
11436 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
11437 "OVERRIDE".
11438 (class symbol_needs_eval_context): Likewise.
11439 * dwarf2read.c (mock_mapped_index::symbol_name_count)
11440 (mock_mapped_index::symbol_name_at): Use "override". Remove
11441 "virtual".
11442 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
11443 "override".
11444 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
11445 * aarch64-tdep.c (instruction_reader::read): Use "override".
11446 (instruction_reader_test::read): Likewise.
11447 * arm-tdep.c (instruction_reader::read): Use "override".
11448 (instruction_reader_thumb::read): Likewise.
11449
11450 2018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
11451
11452 PR remote/9665
11453 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
11454 instead of remote_send.
11455 (remote_send): Remove.
11456
11457 2018-04-26 Pedro Alves <palves@redhat.com>
11458
11459 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
11460 find_function_start_sal instead of find_pc_line.
11461
11462 2018-04-26 Pedro Alves <palves@redhat.com>
11463
11464 * breakpoint.c (set_breakpoint_location_function): Handle
11465 mst_data_gnu_ifunc.
11466 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
11467 * elfread.c (elf_symtab_read): Give data symbols with
11468 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
11469 (elf_rel_plt_read): Update comment.
11470 * linespec.c (convert_linespec_to_sals): Handle
11471 mst_data_gnu_ifunc.
11472 (minsym_found): Handle mst_data_gnu_ifunc.
11473 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
11474 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
11475 * parse.c (find_minsym_type_and_address): Handle
11476 mst_data_gnu_ifunc.
11477 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
11478 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
11479 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
11480 comment.
11481 <mst_data_gnu_ifunc>: New enumerator.
11482
11483 2018-04-26 Pedro Alves <palves@redhat.com>
11484
11485 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
11486 (lookup_minimal_symbol_by_pc_section): ... this. Replace
11487 'want_trampoline' parameter by a lookup_msym_prefer parameter.
11488 Handle it.
11489 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
11490 (lookup_minimal_symbol_by_pc): Adjust.
11491 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
11492 (lookup_solib_trampoline_symbol_by_pc): Adjust.
11493 * minsyms.h (lookup_msym_prefer): New enum.
11494 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
11495 parameter by a lookup_msym_prefer parameter.
11496
11497 2018-04-26 Pedro Alves <palves@redhat.com>
11498
11499 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
11500 ends in "@plt" instead of looking at the symbol's section.
11501
11502 2018-04-26 Pedro Alves <palves@redhat.com>
11503
11504 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
11505 all references.
11506 (find_pc_partial_function_gnu_ifunc): Rename to ...
11507 (find_pc_partial_function): ... this, and remove references to
11508 'is_gnu_ifunc_p'.
11509 (find_pc_partial_function): Delete old implementation.
11510 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
11511
11512 2018-04-26 Pedro Alves <palves@redhat.com>
11513
11514 * linespec.c (struct bound_minimal_symbol_search_key): New.
11515 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
11516 skip first line if we found a GNU ifunc minimal symbol by name.
11517 (compare_msymbols): Change parameters to work with a destructured
11518 lhs minsym.
11519 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
11520 functions.
11521
11522 2018-04-26 Pedro Alves <palves@redhat.com>
11523
11524 * breakpoint.c (set_breakpoint_location_function): Don't resolve
11525 ifunc targets here. Instead, if we have an ifunc minsym, use its
11526 address/name.
11527 (add_location_to_breakpoint): Store the minsym and the objfile in
11528 the breakpoint location.
11529 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
11530 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
11531 Record the minsym in the sal.
11532 * symtab.h (symtab_and_line) <msymbol>: New field.
11533
11534 2018-04-26 Pedro Alves <palves@redhat.com>
11535
11536 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
11537 unless we actually resolved the ifunc.
11538
11539 2018-04-26 Pedro Alves <palves@redhat.com>
11540
11541 * c-exp.y (variable production): Prefer ifunc minsyms over
11542 regular function symbols.
11543 * symtab.c (find_gnu_ifunc): New function.
11544 * minsyms.h (lookup_msym_prefer): New enum.
11545 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
11546 parameter by a lookup_msym_prefer parameter.
11547 * symtab.h (find_gnu_ifunc): New declaration.
11548
11549 2018-04-26 Pedro Alves <palves@redhat.com>
11550
11551 * blockframe.c (find_gnu_ifunc_target_type): New function.
11552 (find_function_type): New.
11553 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
11554 return a value with a memory address.
11555 (eval_call): For calls to GNU ifunc functions, try to find the
11556 type of the target function from the type that the resolver
11557 returns.
11558 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
11559 symbols.
11560 * infcall.c (find_function_return_type): Delete.
11561 (find_function_addr): Add 'function_type' parameter. For calls to
11562 GNU ifunc functions, try to find the type of the target function
11563 from the type that the resolver returns, and return it via
11564 FUNCTION_TYPE.
11565 (call_function_by_hand_dummy): Adjust to use the function type
11566 returned by find_function_addr.
11567 (find_function_addr): Add 'function_type' parameter and move
11568 description here.
11569 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
11570 declarations.
11571
11572 2018-04-26 Pedro Alves <palves@redhat.com>
11573
11574 * c-exp.y (variable production): Skip finding an alias for ifunc
11575 symbols.
11576
11577 2018-04-26 Pedro Alves <palves@redhat.com>
11578
11579 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
11580
11581 2018-04-25 Pedro Alves <palves@redhat.com>
11582
11583 * infcmd.c (kill_command): Print the pid as string, not the whole
11584 thread's ptid. Add comment. s/has been killed/killed/ in output
11585 message.
11586 * remote.c (remote_detach_1): Print the pid as string, not the
11587 whole thread's ptid.
11588
11589 2018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11590 Sergio Durigan Junior <sergiodj@redhat.com>
11591 Pedro Alves <palves@redhat.com>
11592
11593 * infcmd.c (kill_command): Print message when inferior has
11594 been killed.
11595 * inferior.c (print_inferior_events): Remove 'static'. Set as
11596 '1'.
11597 (add_inferior): Improve message printed when
11598 'print_inferior_events' is on.
11599 (exit_inferior): Remove message printed when
11600 'print_inferior_events' is on.
11601 (detach_inferior): Improve message printed when
11602 'print_inferior_events' is on.
11603 (initialize_inferiors): Use 'add_inferior_silent' to set
11604 'current_inferior_'.
11605 * inferior.h (print_inferior_events): Declare here as
11606 'extern'.
11607 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
11608 '[Detaching...]' messages when 'print_inferior_events' is on.
11609 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
11610 as prefix/suffix for messages. Remove periods. Fix erroneous
11611 'Detaching after fork from child...', replace it by '... from
11612 parent...'.
11613 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
11614 prefix/suffix when printing 'Detaching...' messages. Print
11615 them when 'print_inferior_events' is on.
11616 * remote.c (remote_detach_1): Print message when detaching
11617 from inferior and '!is_fork_parent'.
11618
11619 2018-04-24 Tom Tromey <tom@tromey.com>
11620
11621 * cli-out.h: Reindent.
11622
11623 2018-04-24 Tom Tromey <tom@tromey.com>
11624
11625 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
11626 (cli_ui_out::do_field_string): Use fputs_filtered.
11627 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
11628
11629 2018-04-23 Tom Tromey <tom@tromey.com>
11630
11631 * guile/scm-frame.c (gdbscm_frame_read_var): Use
11632 gdb::unique_xmalloc_ptr.
11633
11634 2018-04-23 Tom Tromey <tom@tromey.com>
11635
11636 * configure: Rebuild.
11637
11638 2018-04-22 Rajendra SY <rajendra.sy@gmail.com>
11639
11640 PR gdb/23095
11641 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
11642 prepare_for_testing. Set normal_bp to r_debug_state if target
11643 is bsd.
11644
11645 2018-04-21 Pedro Alves <palves@redhat.com>
11646 Rajendra SY <rajendra.sy@gmail.com>
11647
11648 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
11649 * remote.c (extended_remote_attach): In all-stop mode, mark the
11650 thread as executing.
11651
11652 2018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11653
11654 * thread.c (thread_apply_all_command): Fix comment.
11655 (thread_command): Fix comment.
11656
11657 2018-04-10 Alan Hayward <alan.hayward@arm.com>
11658
11659 * common/tdesc.h (tdesc_create_feature): Remove xml filename
11660 parameter.
11661 * features/aarch64-core.c (create_feature_aarch64_core):
11662 Regenerate.
11663 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
11664 Likewise.
11665 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
11666 Likewise.
11667 * features/i386/32bit-avx512.c
11668 (create_feature_i386_32bit_avx512): Likewise.
11669 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
11670 Likewise.
11671 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
11672 Likewise.
11673 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
11674 Likewise.
11675 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
11676 Likewise.
11677 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
11678 Likewise.
11679 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
11680 Likewise.
11681 * features/i386/64bit-avx512.c
11682 (create_feature_i386_64bit_avx512): Likewise.
11683 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
11684 Likewise.
11685 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
11686 Likewise.
11687 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
11688 Likewise.
11689 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
11690 Likewise.
11691 * features/i386/64bit-segments.c
11692 (create_feature_i386_64bit_segments): Likewise.
11693 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
11694 Likewise.
11695 * features/i386/x32-core.c
11696 (create_feature_i386_x32_core): Likewise.
11697 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
11698 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
11699 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
11700 * target-descriptions.c: In generated code, don't pass xml
11701 filename.
11702
11703 2018-04-18 Alan Hayward <alan.hayward@arm.com>
11704
11705 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
11706 (print_xml_feature::visit_post): Likewise.
11707 (print_xml_feature::visit): Likewise.
11708 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
11709 (print_xml_feature): Add new class.
11710 * regformats/regdat.sh: Null xmltarget on feature targets.
11711 * target-descriptions.c (struct target_desc): Add xmltarget.
11712 (maintenance_check_tdesc_xml_convert): Add unittest function.
11713 (tdesc_get_features_xml): Add function to get xml.
11714 (maintenance_check_xml_descriptions): Test xml generation.
11715 * xml-tdesc.c (string_read_description_xml): Add function.
11716 * xml-tdesc.h (string_read_description_xml): Add declaration.
11717
11718 2018-04-18 Alan Hayward <alan.hayward@arm.com>
11719
11720 * features/Makefile: Add feature marker to targets with new style
11721 target descriptions.
11722 * regformats/aarch64.dat: Regenerate.
11723 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
11724 * regformats/i386/amd64-avx-linux.dat: Likewise.
11725 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
11726 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
11727 * regformats/i386/amd64-linux.dat: Likewise.
11728 * regformats/i386/amd64-mpx-linux.dat: Likewise.
11729 * regformats/i386/amd64.dat: Likewise.
11730 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
11731 * regformats/i386/i386-avx-linux.dat: Likewise.
11732 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
11733 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
11734 * regformats/i386/i386-linux.dat: Likewise.
11735 * regformats/i386/i386-mmx-linux.dat: Likewise.
11736 * regformats/i386/i386-mpx-linux.dat: Likewise.
11737 * regformats/i386/i386.dat: Likewise.
11738 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
11739 * regformats/i386/x32-avx-linux.dat: Likewise.
11740 * regformats/i386/x32-linux.dat: Likewise.
11741 * regformats/tic6x-c62x-linux.dat: Likewise.
11742 * regformats/tic6x-c64x-linux.dat: Likewise.
11743 * regformats/tic6x-c64xp-linux.dat: Likewise.
11744 * regformats/regdat.sh: Parse feature marker.
11745
11746 2018-04-18 Alan Hayward <alan.hayward@arm.com>
11747
11748 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
11749 (tdesc_osabi_name): Likewise.
11750 * target-descriptions.c (tdesc_architecture_name): Add new
11751 function.
11752 (tdesc_osabi_name): Likewise.
11753
11754 2018-04-18 Alan Hayward <alan.hayward@arm.com>
11755
11756 * common/tdesc.c (tdesc_predefined_type): Move to here.
11757 (tdesc_named_type): Likewise.
11758 (tdesc_create_vector): Likewise.
11759 (tdesc_create_struct): Likewise.
11760 (tdesc_set_struct_size): Likewise.
11761 (tdesc_create_union): Likewise.
11762 (tdesc_create_flags): Likewise.
11763 (tdesc_create_enum): Likewise.
11764 (tdesc_add_field): Likewise.
11765 (tdesc_add_typed_bitfield): Likewise.
11766 (tdesc_add_bitfield): Likewise.
11767 (tdesc_add_flag): Likewise.
11768 (tdesc_add_enum_value): Likewise.
11769 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
11770 (struct tdesc_type_vector): Likewise.
11771 (struct tdesc_type_field): Likewise.
11772 (struct tdesc_type_with_fields): Likewise.
11773 (tdesc_create_enum): Add declaration.
11774 (tdesc_add_typed_bitfield): Likewise.
11775 (tdesc_add_enum_value): Likewise.
11776 * target-descriptions.c (tdesc_type_field): Move from here.
11777 (tdesc_type_builtin): Likewise.
11778 (tdesc_type_vector): Likewise.
11779 (tdesc_type_with_fields): Likewise.
11780 (tdesc_predefined_types): Likewise.
11781 (tdesc_named_type): Likewise.
11782 (tdesc_create_vector): Likewise.
11783 (tdesc_create_struct): Likewise.
11784 (tdesc_set_struct_size): Likewise.
11785 (tdesc_create_union): Likewise.
11786 (tdesc_create_flags): Likewise.
11787 (tdesc_create_enum): Likewise.
11788 (tdesc_add_field): Likewise.
11789 (tdesc_add_typed_bitfield): Likewise.
11790 (tdesc_add_bitfield): Likewise.
11791 (tdesc_add_flag): Likewise.
11792 (tdesc_add_enum_value): Likewise.
11793 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
11794 (tdesc_add_typed_bitfield): Likewise.
11795 (tdesc_add_enum_value): Likewise.
11796
11797 2018-04-18 Alan Hayward <alan.hayward@arm.com>
11798
11799 * common/tdesc.c (tdesc_feature::accept): Move to here.
11800 (tdesc_feature::operator==): Likewise.
11801 (tdesc_create_reg): Likewise.
11802 * common/tdesc.h (tdesc_type_kind): Likewise.
11803 (struct tdesc_type): Likewise.
11804 (struct tdesc_feature): Likewise.
11805 * regformats/regdat.sh: Create a feature.
11806 * target-descriptions.c (tdesc_type_kind): Move from here.
11807 (tdesc_type): Likewise.
11808 (tdesc_type_up): Likewise.
11809 (tdesc_feature): Likewise.
11810 (tdesc_create_reg): Likewise.
11811
11812 2018-04-18 Alan Hayward <alan.hayward@arm.com>
11813
11814 * Makefile.in: Add arch/tdesc.c
11815 * common/tdesc.c: New file.
11816 * common/tdesc.h (tdesc_element_visitor): Move to here.
11817 (tdesc_element): Likewise.
11818 (tdesc_reg): Likewise.
11819 (tdesc_reg_up): Likewise.
11820 * regformats/regdef.h (reg): Add offset to constructors.
11821 * target-descriptions.c (tdesc_element_visitor): Move from here.
11822 (tdesc_element): Likewise.
11823 (tdesc_reg): Likewise.
11824 (tdesc_reg_up): Likewise.
11825
11826 2018-04-17 Tom Tromey <tom@tromey.com>
11827
11828 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
11829 discriminant field.
11830
11831 2018-04-17 Tom Tromey <tom@tromey.com>
11832
11833 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
11834
11835 2018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
11836
11837 * symtab.c (print_symbol_info): Skip printing filename and line
11838 number when `last' is NULL.
11839 (symtab_symbol_info): Use empty string instead of NULL for first
11840 invocation of print_symbol_info.
11841 (rbreak_command): Pass NULL to `last' parameter of
11842 print_symbol_info.
11843
11844 2018-04-16 Simon Marchi <simon.marchi@ericsson.com>
11845
11846 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
11847 instead of nullptr.
11848
11849 2018-04-16 Pedro Alves <palves@redhat.com>
11850
11851 * MAINTAINERS (sh): Remove.
11852 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
11853 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
11854 (ALLDEPFILES): Remove sh64-tdep.c.
11855 * NEWS: Mentions that support for SH-5/SH64 is removed.
11856 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
11857 (sh*-*-openbsd*): Ditto.
11858 (sh64-*-elf*): Remove.
11859 (sh*): Remove.
11860 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
11861 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
11862 * sh-tdep.c: No longer include "sh64-tdep.h".
11863 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
11864 * sh64-tdep.c, sh64-tdep.h: Remove files.
11865
11866 2018-04-16 Pedro Alves <palves@redhat.com>
11867
11868 * MAINTAINERS: Remove m88k.
11869 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
11870 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
11871 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
11872 * NEWS: Mention that support for m88k was removed.
11873 * configure.host (m88*-*-*): Remove support.
11874 * configure.nat (m88k-*-*): Remove support.
11875 * configure.tgt (m88*-*-openbsd*): Remove.
11876 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
11877
11878 2018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
11879
11880 * configure.tgt (x86_tobjs): New variable.
11881 (amd64_tobjs, i386_tobjs): Use it.
11882
11883 2018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11884
11885 * symtab.c (print_symbol_info): Precede the symbol definition by
11886 the line number when available.
11887 * NEWS: Advertise this enhancement.
11888
11889 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
11890
11891 * NEWS (New options): announce set/show record btrace cpu.
11892 * btrace.c: Include record-btrace.h.
11893 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
11894 the vendor is unknown.
11895 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
11896 Maybe overwrite the btrace configuration's cpu.
11897 (btrace_compute_ftrace): Add cpu parameter. Update callers.
11898 (btrace_fetch): Add cpu parameter. Update callers.
11899 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
11900 Maybe overwrite the btrace configuration's cpu. Skip enabling
11901 errata workarounds if the vendor is unknown.
11902 * python/py-record-btrace.c: Include record-btrace.h.
11903 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
11904 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
11905 * record-btrace.c (record_btrace_cpu_state_kind): New.
11906 (record_btrace_cpu): New.
11907 (set_record_btrace_cpu_cmdlist): New.
11908 (record_btrace_get_cpu): New.
11909 (require_btrace_thread, record_btrace_info)
11910 (record_btrace_resume_thread): Call record_btrace_get_cpu.
11911 (cmd_set_record_btrace_cpu_none): New.
11912 (cmd_set_record_btrace_cpu_auto): New.
11913 (cmd_set_record_btrace_cpu): New.
11914 (cmd_show_record_btrace_cpu): New.
11915 (_initialize_record_btrace): Initialize set/show record btrace cpu
11916 commands.
11917 * record-btrace.h (record_btrace_get_cpu): New.
11918
11919 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
11920
11921 * record.c (set_record_command): Fix typo in message.
11922
11923 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
11924
11925 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
11926
11927 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
11928
11929 * infrun.c (process_event_stop_test): Call
11930 gdbarch_in_indirect_branch_thunk.
11931 * gdbarch.sh (in_indirect_branch_thunk): New.
11932 * gdbarch.c: Regenerated.
11933 * gdbarch.h: Regenerated.
11934 * x86-tdep.h: New.
11935 * x86-tdep.c: New.
11936 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
11937 (HFILES_NO_SRCDIR): Add x86-tdep.h.
11938 (ALLDEPFILES): Add x86-tdep.c.
11939 * arch-utils.h (default_in_indirect_branch_thunk): New.
11940 * arch-utils.c (default_in_indirect_branch_thunk): New.
11941 * i386-tdep: Include x86-tdep.h.
11942 (i386_in_indirect_branch_thunk): New.
11943 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
11944 function.
11945 * amd64-tdep: Include x86-tdep.h.
11946 (amd64_in_indirect_branch_thunk): New.
11947 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
11948
11949 2018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11950
11951 PR gdb/23053
11952 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
11953 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
11954 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
11955 regression.
11956
11957 2018-04-12 Tom Tromey <tom@tromey.com>
11958
11959 * rust-lang.c (rust_print_struct_def): Remove univariant code.
11960 (rust_evaluate_subexp): Likewise.
11961
11962 2018-04-12 Pedro Alves <palves@redhat.com>
11963
11964 * procfs.c (procfs_detach): Make forward declaration's prototype
11965 match definition's protototype.
11966 (proc_get_LDT_entry): Remove stale do_cleanups call.
11967
11968 2018-04-12 Pedro Alves <palves@redhat.com>
11969
11970 * target.h (target_ops::to_has_exited): Delete.
11971 (target_has_exited): Delete.
11972 * target-delegates.c: Regenerate.
11973
11974 2018-04-11 Pedro Alves <palves@redhat.com>
11975
11976 * target.c (fileio_fh_t::t): Add comment.
11977 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
11978 (target_fileio_close): Handle a NULL target.
11979 (invalidate_fileio_fh): New.
11980 (target_close): Call it.
11981 * remote.c (remote_hostio_send_command): No longer check whether
11982 remote_desc is open.
11983
11984 2018-04-11 Pedro Alves <palves@redhat.com>
11985
11986 * target.c (fileio_fh_t): Make it a named struct instead of a
11987 typedef.
11988 (fileio_fh_t::is_closed): New method.
11989 (DEF_VEC_O (fileio_fh_t)): Remove.
11990 (fileio_fhandles): Now a std::vector.
11991 (is_closed_fileio_fh): Delete.
11992 (acquire_fileio_fd): Adjust. Rename parameters.
11993 (release_fileio_fd): Adjust.
11994 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
11995 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
11996 (target_fileio_close): Adjust.
11997
11998 2018-04-10 Simon Marchi <simon.marchi@ericsson.com>
11999
12000 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
12001 index.
12002
12003 2018-04-10 Pedro Alves <palves@redhat.com>
12004
12005 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
12006 (scoped_finish_thread_state): New class.
12007 * infcmd.c (run_command_1): Use it instead of finish_thread_state
12008 cleanup.
12009 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
12010 (fetch_inferior_event, normal_stop): Likewise.
12011 * thread.c (finish_thread_state_cleanup): Delete.
12012
12013 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12014 Pedro Alves <palves@redhat.com>
12015
12016 * value.c: Include "selftest.h" and "common/array-view.h".
12017 (struct range) <operator ==>: New.
12018 (test_ranges_contain): New.
12019 (check_ranges_vector): New.
12020 (test_insert_into_bit_range_vector): New.
12021 (_initialize_values): Register selftests.
12022 * common/array-view.h (operator==, operator!=): New.
12023
12024 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12025
12026 * common/gdb_vecs.h (unordered_remove): Add overload that takes
12027 an iterator.
12028 * inline-frame.c: Include <algorithm>.
12029 (struct inline_state): Add constructor.
12030 (inline_state_s): Remove.
12031 (DEF_VEC_O(inline_state_s)): Remove.
12032 (inline_states): Change type to std::vector.
12033 (find_inline_frame_state): Adjust to std::vector.
12034 (allocate_inline_frame_state): Remove.
12035 (clear_inline_frame_state): Adjust to std::vector.
12036 (skip_inline_frames): Adjust to std::vector.
12037
12038 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12039
12040 * tracepoint.h (struct trace_state_variable): Add constructor.
12041 <name>: Change type to std::string.
12042 * tracepoint.c (tsv_s): Remove.
12043 (DEF_VEC_O(tsv_s)): Remove.
12044 (tvariables): Change to std::vector.
12045 (create_trace_state_variable): Adjust to std::vector.
12046 (find_trace_state_variable): Likewise.
12047 (find_trace_state_variable_by_number): Likewise.
12048 (delete_trace_state_variable): Likewise.
12049 (trace_variable_command): Adjust to std::string.
12050 (delete_trace_variable_command): Likewise.
12051 (tvariables_info_1): Adjust to std::vector.
12052 (save_trace_state_variables): Likewise.
12053 (start_tracing): Likewise.
12054 (merge_uploaded_trace_state_variables): Adjust to std::vector
12055 and std::string.
12056 * target.h (struct target_ops)
12057 <to_download_trace_state_variable>: Pass reference to
12058 trace_state_variable.
12059 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
12060 * target-delegates.c: Re-generate.
12061 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
12062 (mi_tsv_deleted): Likewise.
12063 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
12064 * remote.c (remote_download_trace_state_variable): Change
12065 pointer to reference and adjust.
12066 * make-target-delegates (parse_argtypes): Handle references.
12067 (write_function_header): Likewise.
12068 (munge_type): Likewise.
12069
12070 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12071
12072 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12073 string_view-selftests.c.
12074 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
12075 testsuite.
12076 * unittests/basic_string_view/cons/char/1.cc: Likewise.
12077 * unittests/basic_string_view/cons/char/2.cc: Likewise.
12078 * unittests/basic_string_view/cons/char/3.cc: Likewise.
12079 * unittests/basic_string_view/element_access/char/1.cc:
12080 Likewise.
12081 * unittests/basic_string_view/element_access/char/empty.cc:
12082 Likewise.
12083 * unittests/basic_string_view/element_access/char/front_back.cc:
12084 Likewise.
12085 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
12086 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
12087 Likewise.
12088 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
12089 Likewise.
12090 * unittests/basic_string_view/modifiers/swap/char/1.cc:
12091 Likewise.
12092 * unittests/basic_string_view/operations/compare/char/1.cc:
12093 Likewise.
12094 * unittests/basic_string_view/operations/compare/char/13650.cc:
12095 Likewise.
12096 * unittests/basic_string_view/operations/copy/char/1.cc:
12097 Likewise.
12098 * unittests/basic_string_view/operations/data/char/1.cc:
12099 Likewise.
12100 * unittests/basic_string_view/operations/find/char/1.cc:
12101 Likewise.
12102 * unittests/basic_string_view/operations/find/char/2.cc:
12103 Likewise.
12104 * unittests/basic_string_view/operations/find/char/3.cc:
12105 Likewise.
12106 * unittests/basic_string_view/operations/find/char/4.cc:
12107 Likewise.
12108 * unittests/basic_string_view/operations/rfind/char/1.cc:
12109 Likewise.
12110 * unittests/basic_string_view/operations/rfind/char/2.cc:
12111 Likewise.
12112 * unittests/basic_string_view/operations/rfind/char/3.cc:
12113 Likewise.
12114 * unittests/basic_string_view/operations/substr/char/1.cc:
12115 Likewise.
12116 * unittests/basic_string_view/operators/char/2.cc: Likewise.
12117 * unittests/string_view-selftests.c: New file.
12118
12119 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12120
12121 * unittests/basic_string_view/capacity/1.cc: New file.
12122 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
12123 * unittests/basic_string_view/cons/char/1.cc: New file.
12124 * unittests/basic_string_view/cons/char/2.cc: New file.
12125 * unittests/basic_string_view/cons/char/3.cc: New file.
12126 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
12127 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
12128 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
12129 * unittests/basic_string_view/element_access/char/1.cc: New file.
12130 * unittests/basic_string_view/element_access/char/2.cc: New file.
12131 * unittests/basic_string_view/element_access/char/empty.cc: New file.
12132 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
12133 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
12134 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
12135 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
12136 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
12137 * unittests/basic_string_view/include.cc: New file.
12138 * unittests/basic_string_view/inserters/char/1.cc: New file.
12139 * unittests/basic_string_view/inserters/char/2.cc: New file.
12140 * unittests/basic_string_view/inserters/char/3.cc: New file.
12141 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
12142 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
12143 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
12144 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
12145 * unittests/basic_string_view/literals/types.cc: New file.
12146 * unittests/basic_string_view/literals/values.cc: New file.
12147 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
12148 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
12149 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
12150 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
12151 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
12152 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
12153 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
12154 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
12155 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
12156 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
12157 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
12158 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
12159 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
12160 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
12161 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
12162 * unittests/basic_string_view/operations/data/char/1.cc: New file.
12163 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
12164 * unittests/basic_string_view/operations/find/char/1.cc: New file.
12165 * unittests/basic_string_view/operations/find/char/2.cc: New file.
12166 * unittests/basic_string_view/operations/find/char/3.cc: New file.
12167 * unittests/basic_string_view/operations/find/char/4.cc: New file.
12168 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
12169 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
12170 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
12171 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
12172 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
12173 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
12174 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
12175 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
12176 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
12177 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
12178 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
12179 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
12180 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
12181 * unittests/basic_string_view/operators/char/2.cc: New file.
12182 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
12183 * unittests/basic_string_view/range_access/char/1.cc: New file.
12184 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
12185 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
12186 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
12187 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
12188 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
12189 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
12190 * unittests/basic_string_view/requirements/typedefs.cc: New file.
12191 * unittests/basic_string_view/typedefs.cc: New file.
12192 * unittests/basic_string_view/types/1.cc: New file.
12193
12194 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12195
12196 * common/gdb_string_view.h: Remove libstdc++ implementation
12197 details, adjust to gdb reality.
12198 * common/gdb_string_view.tcc: Likewise.
12199 * cli/cli-script.c (struct string_view): Remove.
12200 (user_args) <m_args>: Change element type to gdb::string_view.
12201 (user_args::insert_args): Adjust.
12202
12203 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12204
12205 * common/gdb_string_view.h: New file.
12206 * common/gdb_string_view.tcc: New file.
12207
12208 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
12209
12210 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
12211 * configure: Re-generate.
12212
12213 2018-04-09 Pedro Alves <palves@redhat.com>
12214
12215 * gdbarch.sh: Include "observable.h" instead of "observer.h".
12216 (set_target_gdbarch): Call
12217 gdb::observers::architecture_changed.notify instead of
12218 observer_notify_architecture_changed.
12219
12220 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12221
12222 * tracepoint.c (struct current_traceframe_cleanup): Remove.
12223 (do_restore_current_traceframe_cleanup): Remove.
12224 (restore_current_traceframe_cleanup_dtor): Remove.
12225 (make_cleanup_restore_current_traceframe): Remove.
12226 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
12227 New.
12228 * tracepoint.h (struct scoped_restore_current_traceframe): New.
12229 * infrun.c (fetch_inferior_event): Use
12230 scoped_restore_current_traceframe.
12231
12232 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12233
12234 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
12235 Remove.
12236 <n_allocated_type_units>: Remove.
12237 <all_type_units>: Change to std::vector.
12238 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
12239 to std::vector change.
12240 (dwarf2_per_objfile::get_cutu): Likewise.
12241 (dwarf2_per_objfile::get_tu): Likewise.
12242 (create_signatured_type_table_from_index): Likewise.
12243 (create_signatured_type_table_from_debug_names): Likewise.
12244 (dw2_symtab_iter_next): Likewise.
12245 (dw2_print_stats): Likewise.
12246 (dw2_expand_all_symtabs): Likewise.
12247 (dw2_expand_marked_cus): Likewise.
12248 (dw2_debug_names_iterator::next): Likewise.
12249 (dwarf2_initialize_objfile): Likewise.
12250 (add_signatured_type_cu_to_table): Likewise.
12251 (create_all_type_units): Likewise.
12252 (add_type_unit): Likewise.
12253 (struct tu_abbrev_offset): Add constructor.
12254 (build_type_psymtabs_1): Adjust to std::vector change.
12255 (print_tu_stats): Likewise.
12256 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
12257 (write_debug_names): Likewise.
12258
12259 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12260
12261 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
12262 Make an std::vector.
12263 <n_comp_units>: Remove.
12264 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
12265 to std::vector change.
12266 (dwarf2_per_objfile::get_cutu): Likewise.
12267 (dwarf2_per_objfile::get_cu): Likewise.
12268 (create_cus_from_index): Likewise.
12269 (create_addrmap_from_index): Likewise.
12270 (create_addrmap_from_aranges): Likewise.
12271 (dwarf2_read_index): Likewise.
12272 (dw2_find_last_source_symtab): Likewise.
12273 (dw2_map_symtabs_matching_filename): Likewise.
12274 (dw2_symtab_iter_next): Likewise.
12275 (dw2_print_stats): Likewise.
12276 (dw2_expand_all_symtabs): Likewise.
12277 (dw2_expand_symtabs_with_fullname): Likewise.
12278 (dw2_expand_marked_cus): Likewise.
12279 (dw2_map_symbol_filenames): Likewise.
12280 (create_cus_from_debug_names): Likewise.
12281 (dwarf2_read_debug_names): Likewise.
12282 (dw2_debug_names_iterator::next): Likewise.
12283 (dwarf2_initialize_objfile): Likewise.
12284 (set_partial_user): Likewise.
12285 (dwarf2_build_psymtabs_hard): Likewise.
12286 (read_comp_units_from_section): Remove arguments, adjust to
12287 std::vector change.
12288 (create_all_comp_units): Adjust to std::vector and
12289 read_comp_units_from_section changes.
12290 (dwarf2_find_containing_comp_unit): Adjust to std::vector
12291 change.
12292 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
12293 (psyms_seen_size): Likewise.
12294 (write_gdbindex): Likewise.
12295 (write_debug_names): Likewise.
12296
12297 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12298
12299 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
12300 with dwarf2_per_objfile.
12301 (create_cus_from_index): Likewise.
12302 (create_signatured_type_table_from_index): Likewise.
12303 (dwarf2_read_index): Likewise.
12304 (dwarf2_initialize_objfile): Likewise.
12305 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
12306 per_cu rather than get_dwarf2_per_objfile.
12307
12308 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12309
12310 * dwarf2read.h (struct signatured_type): Forward declare.
12311 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
12312 New methods.
12313 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
12314 (dw2_get_cutu): ...this.
12315 (dwarf2_per_objfile::get_cu): Rename from...
12316 (dw2_get_cu): ...this.
12317 (dwarf2_per_objfile::get_tu): New.
12318 (create_addrmap_from_index): Adjust.
12319 (create_addrmap_from_aranges): Adjust.
12320 (dw2_find_last_source_symtab): Adjust.
12321 (dw2_map_symtabs_matching_filename): Adjust.
12322 (dw2_symtab_iter_next): Adjust.
12323 (dw2_print_stats): Adjust.
12324 (dw2_expand_all_symtabs): Adjust.
12325 (dw2_expand_symtabs_with_fullname): Adjust.
12326 (dw2_expand_marked_cus): Adjust.
12327 (dw_expand_symtabs_matching_file_matcher): Adjust.
12328 (dw2_map_symbol_filenames): Adjust.
12329 (dw2_debug_names_iterator::next): Adjust.
12330 (dwarf2_initialize_objfile): Adjust.
12331 (set_partial_user): Adjust.
12332 (dwarf2_build_psymtabs_hard): Adjust.
12333
12334 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12335
12336 * dwarf2read.c (create_signatured_type_table_from_debug_names):
12337 Remove unused variables.
12338 (dw2_map_symtabs_matching_filename): Likewise.
12339 (dwarf2_record_block_ranges): Likewise.
12340 (dwarf2_read_addr_index): Likewise.
12341 (follow_die_offset): Likewise.
12342
12343 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12344
12345 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
12346 to symbol_file_add_main.
12347
12348 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12349
12350 PR mi/22299
12351 * mi/mi-console.c (do_fputc_async_safe): New.
12352 (mi_console_file::write_async_safe): New.
12353 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
12354 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
12355 New.
12356 * ui-file.c (ui_file::putstrn): Adjust call to
12357 fputstrn_unfiltered.
12358 * utils.c (printchar): Replace do_fputs and do_fprintf
12359 parameters by do_fputc.
12360 (fputstr_filtered): Adjust call to printchar.
12361 (fputstr_unfiltered): Likewise.
12362 (fputstrn_filtered): Likewise.
12363 (fputstrn_unfiltered): Add do_fputc parameter, pass to
12364 printchar.
12365 * utils.h (do_fputc_ftype): New typedef.
12366 (fputstrn_unfiltered): Add do_fputc parameter.
12367
12368 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12369
12370 * regformats/i386/i386-avx.dat: Remove.
12371
12372 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
12373
12374 PR gdb/22979
12375 * amd64-tdep.c (amd64_none_init_abi): New function.
12376 (amd64_x32_none_init_abi): New function.
12377 (_initialize_amd64_tdep): Register handlers for x86-64 and
12378 x64_32 with GDB_OSABI_NONE.
12379 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
12380 GDB_OSABI_NONE osabi.
12381
12382 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
12383
12384 PR gdb/22980
12385 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
12386 GDB_OSABI_NONE.
12387 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
12388 * osabi.c (gdb_osabi_names): Add "unknown" entry.
12389
12390 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
12391
12392 * common/byte-vector.h (char_vector): New type.
12393 * target.h (target_read_alloc): Return
12394 gdb::optional<byte_vector>.
12395 (target_read_stralloc): Return gdb::optional<char_vector>.
12396 (target_get_osdata): Return gdb::optional<char_vector>.
12397 * target.c (target_read_alloc_1): Templatize. Replacement
12398 manual memory management with vector.
12399 (target_read_alloc): Change return type, adjust.
12400 (target_read_stralloc): Change return type, adjust.
12401 (target_get_osdata): Change return type, adjust.
12402 * auxv.c (struct auxv_info) <length>: Remove.
12403 <data>: Change type to gdb::optional<byte_vector>.
12404 (auxv_inferior_data_cleanup): Free auxv_info with delete.
12405 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
12406 (target_auxv_search): Adjust.
12407 (fprint_target_auxv): Adjust.
12408 * avr-tdep.c (avr_io_reg_read_command): Adjust.
12409 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
12410 (linux_make_corefile_notes): Adjust.
12411 * osdata.c (get_osdata): Adjust.
12412 * remote.c (remote_get_threads_with_qxfer): Adjust.
12413 (remote_memory_map): Adjust.
12414 (remote_traceframe_info): Adjust.
12415 (btrace_read_config): Adjust.
12416 (remote_read_btrace): Adjust.
12417 (remote_pid_to_exec_file): Adjust.
12418 * solib-aix.c (solib_aix_get_library_list): Adjust.
12419 * solib-dsbt.c (decode_loadmap): Don't free buf.
12420 (dsbt_get_initial_loadmaps): Adjust.
12421 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
12422 * solib-target.c (solib_target_current_sos): Adjust.
12423 * tracepoint.c (sdata_make_value): Adjust.
12424 * xml-support.c (xinclude_start_include): Adjust.
12425 (xml_fetch_content_from_file): Adjust.
12426 * xml-support.h (xml_fetch_another): Change return type.
12427 (xml_fetch_content_from_file): Change return type.
12428 * xml-syscall.c (xml_init_syscalls_info): Adjust.
12429 * xml-tdesc.c (file_read_description_xml): Adjust.
12430 (fetch_available_features_from_target): Change return type.
12431 (target_fetch_description_xml): Adjust.
12432 (target_read_description_xml): Adjust.
12433
12434 2018-04-06 Tom Tromey <tom@tromey.com>
12435
12436 * value.c (~value): Update.
12437 (struct value) <contents>: Now unique_xmalloc_ptr.
12438 (value_contents_bits_eq, allocate_value_contents)
12439 (value_contents_raw, value_contents_all_raw)
12440 (value_contents_for_printing, value_contents_for_printing_const)
12441 (set_value_enclosing_type): Update.
12442
12443 2018-04-06 Tom Tromey <tom@tromey.com>
12444
12445 * value.c (range_s): Remove typedef, VEC.
12446 (struct range): Add operator<.
12447 (range_lessthan): Remove.
12448 (ranges_contain): Change type.
12449 (~value): Update.
12450 (struct value) <unavailable, optimized_out>: Now std::vector.
12451 (value_entirely_available)
12452 (value_entirely_covered_by_range_vector)
12453 (value_entirely_unavailable, value_entirely_optimized_out):
12454 Update.
12455 (insert_into_bit_range_vector): Change argument type.
12456 (find_first_range_overlap): Likewise.
12457 (struct ranges_and_idx, value_contents_bits_eq)
12458 (require_not_optimized_out, require_available): Update.
12459 (ranges_copy_adjusted): Change argument types.
12460 (value_optimized_out, value_copy, value_fetch_lazy): Update.
12461
12462 2018-04-06 Tom Tromey <tom@tromey.com>
12463
12464 * value.c (~value): Update.
12465 (struct value) <parent>: Now a value_ref_ptr.
12466 (value_parent, set_value_parent, value_address, value_copy):
12467 Update.
12468
12469 2018-04-06 Tom Tromey <tom@tromey.com>
12470
12471 * value.c (struct value): Add constructor, destructor, and member
12472 initializers.
12473 (allocate_value_lazy, value_decref): Update.
12474
12475 2018-04-06 Tom Tromey <tom@tromey.com>
12476
12477 * value.c (struct value) <released, next>: Remove.
12478 (all_values): Now a std::vector.
12479 (allocate_value_lazy): Update.
12480 (value_next): Remove.
12481 (value_mark, value_free_to_mark, release_value)
12482 (value_release_to_mark): Update.
12483
12484 2018-04-06 Tom Tromey <tom@tromey.com>
12485
12486 * value.h (fetch_subexp_value, value_release_to_mark): Update.
12487 (free_value_chain): Remove.
12488 * value.c (free_value_chain): Remove.
12489 (value_release_to_mark): Return a std::vector.
12490 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
12491 std::vector.
12492 (check_condition): Update.
12493 * eval.c (fetch_subexp_value): Change "val_chain" to a
12494 std::vector.
12495 * breakpoint.c (update_watchpoint): Update.
12496 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
12497
12498 2018-04-06 Tom Tromey <tom@tromey.com>
12499
12500 * value.h (free_all_values): Remove.
12501 * value.c (free_all_values): Remove.
12502
12503 2018-04-06 Tom Tromey <tom@tromey.com>
12504
12505 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
12506 (value_history_chain, value_history_count): Remove.
12507 (value_history): New global.
12508 (record_latest_value, access_value_history, show_values)
12509 (preserve_values): Update.
12510
12511 2018-04-06 Tom Tromey <tom@tromey.com>
12512
12513 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
12514 * varobj.c (varobj_set_display_format, varobj_set_value)
12515 (install_default_visualizer, construct_visualizer)
12516 (install_new_value, ~varobj, varobj_get_value_type)
12517 (my_value_of_variable, varobj_editable_p): Update.
12518 * c-varobj.c (c_describe_child, c_value_of_variable)
12519 (cplus_number_of_children, cplus_describe_child): Update.
12520 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
12521 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
12522 (ada_value_of_variable, ada_value_is_changeable_p): Update.
12523
12524 2018-04-06 Tom Tromey <tom@tromey.com>
12525
12526 * printcmd.c (last_examine_address): Change type to
12527 value_ref_ptr.
12528 (do_examine, x_command): Update.
12529
12530 2018-04-06 Tom Tromey <tom@tromey.com>
12531
12532 * value.c (release_value): Update.
12533 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
12534 (struct bpstats) <val>: Now a value_ref_ptr.
12535 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
12536 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
12537 (~watchpoint, print_it_watchpoint, watch_command_1)
12538 (invalidate_bp_value_on_memory_change): Update.
12539
12540 2018-04-06 Tom Tromey <tom@tromey.com>
12541
12542 * varobj.c (varobj_clear_saved_item)
12543 (update_dynamic_varobj_children, install_new_value, ~varobj):
12544 Update.
12545 * value.h (value_incref): Move declaration earlier.
12546 (value_decref): Rename from value_free.
12547 (struct value_ref_policy): New.
12548 (value_ref_ptr): New typedef.
12549 (struct value_deleter): Remove.
12550 (gdb_value_up): Remove typedef.
12551 (release_value): Change return type.
12552 (release_value_or_incref): Remove.
12553 * value.c (set_value_parent): Update.
12554 (value_incref): Change return type.
12555 (value_decref): Rename from value_free.
12556 (value_free_to_mark, free_all_values, free_value_chain): Update.
12557 (release_value): Return value_ref_ptr.
12558 (release_value_or_incref): Remove.
12559 (record_latest_value, set_internalvar, clear_internalvar):
12560 Update.
12561 * stack.c (info_frame_command): Don't call value_free.
12562 * python/py-value.c (valpy_dealloc, valpy_new)
12563 (value_to_value_object): Update.
12564 * printcmd.c (do_examine): Update.
12565 * opencl-lang.c (lval_func_free_closure): Update.
12566 * mi/mi-main.c (register_changed_p): Don't call value_free.
12567 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
12568 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
12569 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
12570 value_free.
12571 * guile/scm-value.c (vlscm_free_value_smob)
12572 (vlscm_scm_from_value): Update.
12573 * frame.c (frame_register_unwind, frame_unwind_register_signed)
12574 (frame_unwind_register_unsigned, get_frame_register_bytes)
12575 (put_frame_register_bytes): Don't call value_free.
12576 * findvar.c (address_from_register): Don't call value_free.
12577 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
12578 * dwarf2loc.c (entry_data_value_free_closure)
12579 (value_of_dwarf_reg_entry, free_pieced_value_closure)
12580 (dwarf2_evaluate_loc_desc_full): Update.
12581 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
12582 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
12583 (~watchpoint, watch_command_1)
12584 (invalidate_bp_value_on_memory_change): Update.
12585 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
12586
12587 2018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
12588
12589 PR gdb/23022
12590 * warning.m4: Add -Wno-error=deprecated-register.
12591 * configure: Re-generate.
12592
12593 2018-04-05 Tom Tromey <tom@tromey.com>
12594
12595 * linespec.h: Remove include of "vec.h".
12596
12597 2018-04-05 Tom Tromey <tom@tromey.com>
12598
12599 * linespec.c (typep): Remove typedef.
12600 (find_methods, find_superclass_methods): Take a std::vector.
12601 (find_method): Use std::vector.
12602
12603 2018-04-05 Tom Tromey <tom@tromey.com>
12604
12605 * utils.c (compare_strings): Remove.
12606 * utils.h (compare_strings): Remove.
12607 * objc-lang.h (find_imps): Update.
12608 * objc-lang.c (find_methods): Take a std::vector.
12609 (uniquify_strings, find_imps): Likewise.
12610 * linespec.c (find_methods): Take a std::vector.
12611 (decode_objc): Use std::vector.
12612 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
12613 a std::vector.
12614 (find_method, find_function_symbols): Use std::vector.
12615
12616 2018-04-05 Tom Tromey <tom@tromey.com>
12617
12618 * completer.c (completion_tracker::completion_tracker): Remove
12619 cast.
12620 (completion_tracker::discard_completions): Likewise.
12621 * breakpoint.c (ambiguous_names_p): Remove cast.
12622 * ada-lang.c (_initialize_ada_language): Remove cast.
12623 * utils.h (streq): Update.
12624 (streq_hash): Add new declaration.
12625 * utils.c (streq): Return bool.
12626 (streq_hash): New function.
12627
12628 2018-04-05 Tom Tromey <tom@tromey.com>
12629
12630 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
12631 Remove a string copy.
12632
12633 2018-04-05 Tom Tromey <tom@tromey.com>
12634
12635 * linespec.c (filter_results): Use std::vector.
12636 (decode_line_2, decode_line_full): Update.
12637
12638 2018-04-05 Tom Tromey <tom@tromey.com>
12639
12640 * linespec.c (canonical_to_fullform): Return std::string.
12641 (filter_results): Update.
12642 (struct decode_line_2_item): Add constructor.
12643 <fullform, displayform>: Now std::string.
12644 (decode_line_2_compare_items): Now a std::sort comparator.
12645 (decode_line_2): Update.
12646
12647 2018-04-05 Tom Tromey <tom@tromey.com>
12648
12649 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
12650 (unexpected_linespec_error): Update.
12651 (linespec_parse_basic, parse_linespec): Update.
12652
12653 2018-04-05 Tom Tromey <tom@tromey.com>
12654
12655 * linespec.c (linespec_parse_basic): Reindent.
12656
12657 2018-04-05 Tom Tromey <tom@tromey.com>
12658
12659 * minsyms.h (iterate_over_minimal_symbols): Update.
12660 * minsyms.c (iterate_over_minimal_symbols): Take a
12661 gdb::function_view.
12662 * linespec.c (struct collect_minsyms): Remove.
12663 (compare_msyms): Now a std::sort comparator.
12664 (add_minsym): Add parameters.
12665 (search_minsyms_for_name): Update. Use std::vector.
12666
12667 2018-04-03 Tom Tromey <tom@tromey.com>
12668
12669 * mipsread.c (read_alphacoff_dynamic_symtab): Use
12670 gdb::byte_vector.
12671
12672 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
12673
12674 * MAINTAINERS (Write After Approval): Add Weimin Pan.
12675
12676 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
12677
12678 PR gdb/16959
12679 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
12680 printing static type.
12681
12682 2018-04-01 Tom Tromey <tom@tromey.com>
12683
12684 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
12685 (rs6000_xfer_shared_libraries): Update.
12686
12687 2018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
12688
12689 * common/gdb_vecs.h (char_ptr): Remove.
12690 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
12691
12692 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
12693
12694 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
12695 with std::vector.
12696 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
12697
12698 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
12699
12700 * tracepoint.h (struct uploaded_tp): Initialize fields.
12701 <actions, step_actions, cmd_strings>: Change type to
12702 std::vector<char *>.
12703 * tracepoint.c (get_uploaded_tp): Allocate with new.
12704 (free_uploaded_tps): Free with delete.
12705 (parse_tracepoint_definition): Adjust to std::vector change.
12706 * breakpoint.c (read_uploaded_action): Likewise.
12707 (create_tracepoint_from_upload): Likewise.
12708 * ctf.c (ctf_write_uploaded_tp): Likewise.
12709 (SET_ARRAY_FIELD): Likewise.
12710 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
12711
12712 2018-03-30 Tom Tromey <tom@tromey.com>
12713
12714 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
12715 std::unique_ptr.
12716 (svr4_keep_data_in_core): Update.
12717 (svr4_read_so_list): Update.
12718
12719 2018-03-30 Tom Tromey <tom@tromey.com>
12720
12721 * windows-nat.c (handle_output_debug_string, handle_exception):
12722 Update.
12723 * target.h (target_read_string): Update.
12724 * target.c (target_read_string): Change "string" to
12725 unique_xmalloc_ptr.
12726 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
12727 Update.
12728 * solib-frv.c (frv_current_sos): Update.
12729 * solib-dsbt.c (dsbt_current_sos): Update.
12730 * solib-darwin.c (darwin_current_sos): Update.
12731 * linux-thread-db.c (inferior_has_bug): Update.
12732 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
12733 Update. Remove alloca.
12734 * ada-lang.c (ada_main_name): Update.
12735
12736 2018-03-30 Tom Tromey <tom@tromey.com>
12737
12738 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
12739 (struct dwo_file_deleter): New.
12740 (dwo_file_up): New typedef.
12741 (open_and_init_dwo_file): Use dwo_file_up.
12742 (free_dwo_file_cleanup): Remove.
12743
12744 2018-03-30 Tom Tromey <tom@tromey.com>
12745
12746 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
12747 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
12748
12749 2018-03-30 Tom Tromey <tom@tromey.com>
12750
12751 * dwarf2read.c (class free_cached_comp_units): New class.
12752 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
12753 (free_cached_comp_units): Remove function.
12754
12755 2018-03-30 Tom Tromey <tom@tromey.com>
12756
12757 * utils.h (make_cleanup_unpush_target): Remove.
12758 * inf-ptrace.c (struct target_unpusher): New.
12759 (target_unpush_up) New typedef.
12760 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
12761 target_unpush_up.
12762 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
12763
12764 2018-03-27 Tom Tromey <tom@tromey.com>
12765
12766 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
12767
12768 2018-03-27 Pedro Alves <palves@redhat.com>
12769 Tom Tromey <tom@tromey.com>
12770
12771 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
12772 destructor. Now a class.
12773 (gdb_readline_wrapper_cleanup): Remove function.
12774 (gdb_readline_wrapper): Remove cleanups.
12775
12776 2018-03-27 Tom Tromey <tom@tromey.com>
12777
12778 * typeprint.h (struct type_print_options) <local_typedefs,
12779 global_typedefs>: Remove "struct" keyword.
12780 (class typedef_hash_table): New class.
12781 (recursively_update_typedef_hash, add_template_parameters)
12782 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
12783 (find_typedef_in_hash): Don't declare.
12784 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
12785 (typedef_hash_table::recursively_update): Rename from
12786 recursively_update_typedef_hash. Now a member.
12787 (typedef_hash_table::add_template_parameters): Rename from
12788 add_template_parameters. Now a member.
12789 (typedef_hash_table::typedef_hash_table): Now a constructor;
12790 rename from create_typedef_hash.
12791 (typedef_hash_table::~typedef_hash_table): Now a destructor;
12792 rename from free_typedef_hash.
12793 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
12794 (do_free_global_table): Remove.
12795 (typedef_hash_table::typedef_hash_table): New constructor; renamed
12796 from copy_type_recursive.
12797 (create_global_typedef_table): Remove.
12798 (typedef_hash_table::find_global_typedef): Now a member of
12799 typedef_hash_table.
12800 (typedef_hash_table::find_typedef): Rename from
12801 find_typedef_in_hash; now a member.
12802 (whatis_exp): Update.
12803 * extension.h (struct ext_lang_type_printers): Add constructor and
12804 destructor.
12805 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
12806 declare.
12807 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
12808 Now a constructor; rename from start_ext_lang_type_printers.
12809 (ext_lang_type_printers): Now a destructor; rename from
12810 free_ext_lang_type_printers.
12811 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
12812 Update.
12813 (c_type_print_base_struct_union): Update. Remove cleanups.
12814
12815 2018-03-27 Tom Tromey <tom@tromey.com>
12816
12817 * dwarf-index-write.c: Include <cmath>.
12818
12819 2018-03-27 Joel Brobecker <brobecker@adacore.com>
12820
12821 * NEWS: Add entry describing new "set|show varsize-limit" command.
12822 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
12823 command.
12824 * printcmd.c (_initialize_printcmd): Add "set var" alias of
12825 "set variable".
12826
12827 2018-03-27 Simon Marchi <simon.marchi@ericsson.com>
12828
12829 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
12830 dwarf-index-write.c
12831 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
12832 * dwarf-index-common.c: New file.
12833 * dwarf-index-common.h: New file.
12834 * dwarf-index-write.c: New file.
12835 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
12836 (struct dwarf2_section_info): Move from here.
12837 (dwarf2_section_info_def): Likewise.
12838 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
12839 (offset_type): Likewise.
12840 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
12841 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
12842 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
12843 (byte_swap): Likewise.
12844 (MAYBE_SWAP): Likewise.
12845 (dwarf2_per_cu_ptr): Likewise.
12846 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
12847 (struct tu_stats): Likewise.
12848 (struct dwarf2_per_objfile): Likewise.
12849 (struct dwarf2_per_cu_data): Likewise.
12850 (struct signatured_type): Likewise.
12851 (sig_type_ptr): Likewise.
12852 (DEF_VEC_P (sig_type_ptr)): Likewise.
12853 (INDEX4_SUFFIX): Likewise.
12854 (INDEX5_SUFFIX): Likewise.
12855 (DEBUG_STR_SUFFIX): Likewise.
12856 (dwarf2_read_section): Make non-static.
12857 (mapped_index_string_hash): Move from here.
12858 (dwarf5_djb_hash): Likewise.
12859 (file_write): Likewise.
12860 (class data_buf): Likewise.
12861 (struct symtab_index_entry): Likewise.
12862 (struct mapped_symtab): Likewise.
12863 (find_slot): Likewise.
12864 (hash_expand): Likewise.
12865 (add_index_entry): Likewise.
12866 (uniquify_cu_indices): Likewise.
12867 (class c_str_view): Likewise.
12868 (class c_str_view_hasher): Likewise.
12869 (class vector_hasher): Likewise.
12870 (write_hash_table): Likewise.
12871 (psym_index_map): Likewise.
12872 (struct addrmap_index_data): Likewise.
12873 (add_address_entry): Likewise.
12874 (add_address_entry_worker): Likewise.
12875 (write_address_map): Likewise.
12876 (symbol_kind): Likewise.
12877 (write_psymbols): Likewise.
12878 (struct signatured_type_index_data): Likewise.
12879 (write_one_signatured_type): Likewise.
12880 (recursively_count_psymbols): Likewise.
12881 (recursively_write_psymbols): Likewise.
12882 (class debug_names): Likewise.
12883 (check_dwarf64_offsets): Likewise.
12884 (psyms_seen_size): Likewise.
12885 (write_gdbindex): Likewise.
12886 (write_debug_names): Likewise.
12887 (assert_file_size): Likewise.
12888 (write_psymtabs_to_index): Likewise.
12889 (save_gdb_index_command): Likewise.
12890 (_initialize_dwarf2_read): Don't register the "save gdb-index"
12891 command.
12892 * dwarf2read.h: New file.
12893
12894 2018-03-27 Joel Brobecker <brobecker@adacore.com>
12895
12896 PR gdb/22670
12897 * dwarf2read.c (dwarf2_physname): Do not return the demangled
12898 symbol name if the CU's language stores symbol names in linkage
12899 format.
12900 * language.h (struct language_defn)
12901 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
12902 all instances of this struct.
12903
12904 2018-03-26 Tom Tromey <tom@tromey.com>
12905
12906 * stack.c (backtrace_command_1): Remove verbose code.
12907
12908 2018-03-26 Tom Tromey <tom@tromey.com>
12909
12910 * python/py-framefilter.c (py_print_type): Don't catch
12911 exceptions. Return void.
12912 (py_print_value): Likewise.
12913 (py_print_single_arg): Likewise.
12914 (enumerate_args): Don't catch exceptions.
12915 (py_print_args): Likewise.
12916 (py_print_frame): Likewise.
12917 (gdbpy_apply_frame_filter): Catch exceptions here.
12918
12919 2018-03-26 Tom Tromey <tom@tromey.com>
12920
12921 * stack.c (_initialize_stack): Remove trailing newlines from help
12922 text. Add "Usage" line to "backtrace" help.
12923
12924 2018-03-26 Tom Tromey <tom@tromey.com>
12925
12926 PR python/16486:
12927 * python/py-framefilter.c (py_print_args): Call wrap_hint.
12928
12929 2018-03-26 Tom Tromey <tom@tromey.com>
12930
12931 * python/py-framefilter.c (py_print_single_arg): Return
12932 EXT_LANG_BT_ERROR from catch.
12933
12934 2018-03-26 Tom Tromey <tom@tromey.com>
12935
12936 PR backtrace/15584:
12937 * stack.c (backtrace_command_1): Move some code into no-filters
12938 "if".
12939
12940 2018-03-26 Tom Tromey <tom@tromey.com>
12941
12942 * python/py-framefilter.c (throw_quit_or_print_exception): New
12943 function.
12944 (gdbpy_apply_frame_filter): Use it.
12945
12946 2018-03-26 Tom Tromey <tom@tromey.com>
12947
12948 PR cli/17716:
12949 * python/py-framefilter.c (py_print_type, py_print_value)
12950 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
12951 RETURN_MASK_ERROR.
12952
12953 2018-03-26 Tom Tromey <tom@tromey.com>
12954
12955 * python/py-framefilter.c (enumerate_args): Use
12956 gdb::unique_xmalloc_ptr.
12957
12958 2018-03-26 Tom Tromey <tom@tromey.com>
12959
12960 * python/py-framefilter.c (py_print_frame): Return
12961 EXT_LANG_BT_OK.
12962 (gdbpy_apply_frame_filter): Update comment.
12963 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
12964 Remove.
12965 <EXT_LANG_BT_NO_FILTERS>: Change value.
12966
12967 2018-03-26 Tom Tromey <tom@tromey.com>
12968
12969 PR backtrace/15582:
12970 * stack.c (backtrace_command): Parse "hide" argument.
12971 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
12972 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
12973 constant.
12974
12975 2018-03-26 Tom Tromey <tom@tromey.com>
12976
12977 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
12978 add "flags".
12979 (backtrace_command): Remove "fulltrace", add "flags".
12980
12981 2018-03-26 Tom Tromey <tom@tromey.com>
12982
12983 * stack.c (backtrace_command): Rewrite command line parsing.
12984
12985 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
12986
12987 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
12988
12989 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
12990
12991 * filename-seen-cache.h: Add include guard.
12992
12993 2018-03-26 Keith Seitz <keiths@redhat.com>
12994
12995 * symfile.c (place_section): Remove "struct" from section_addr_info
12996 in comment.
12997 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
12998 "struct" keyword from section_addr_info.
12999
13000 2018-03-26 Alan Hayward <alan.hayward@arm.com>
13001
13002 * regformats/regdef.h (reg): Add constructors.
13003
13004 2018-03-25 Pedro Alves <palves@redhat.com>
13005
13006 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
13007 if then/else bodies in var_func_name extraction.
13008
13009 2018-03-23 Weimin Pan <weimin.pan@oracle.com>
13010
13011 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
13012 lookup_minimal_symbol() to find symbol entry.
13013 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
13014
13015 2018-03-23 Keith Seitz <keiths@redhat.com>
13016
13017 PR c++/22968
13018 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
13019 nested type definitions for C++, too.
13020
13021 2018-03-23 Tom Tromey <tom@tromey.com>
13022
13023 * machoread.c (struct oso_el): Add a constructor. Don't define as
13024 a typedef.
13025 (macho_register_oso): Remove.
13026 (macho_symtab_read): Take a std::vector.
13027 (oso_el_compare_name): Now a std::sort comparator.
13028 (macho_symfile_read_all_oso): Take a std::vector.
13029 (macho_symfile_read): Use std::vector. Remove cleanups.
13030
13031 2018-03-22 Tom Tromey <tom@tromey.com>
13032
13033 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
13034 (record_full_goto_bookmark): Use std::string.
13035
13036 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
13037
13038 PR tdep/18295
13039 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
13040 a single mask.
13041
13042 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
13043
13044 * rs6000-tdep.c (store_insn_p): New function.
13045 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
13046 and cr_reg to their unshifted values. Use store_insn_p to
13047 match LR saves using either R1 or fdata->alloca_reg. Use
13048 store_insn_p to match CR saves. Set alloca_reg_offset
13049 when alloca_reg and framep are set. Remove lr_reg shift
13050 when assigning to fdata->lr_register.
13051
13052 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
13053
13054 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
13055 command line args instead of emitting a warning.
13056
13057 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
13058
13059 * tracepoint.h (struct static_tracepoint_marker): Initialize
13060 fields, define default constructor, move constructor and move
13061 assignment, disable the rest.
13062 <str_id, extra>: Make std::string.
13063 (release_static_tracepoint_marker): Remove.
13064 (free_current_marker): Remove.
13065 * tracepoint.c (free_current_marker): Remove.
13066 (parse_static_tracepoint_marker_definition): Adjust to
13067 std::string, use new hex2str overload.
13068 (release_static_tracepoint_marker): Remove.
13069 (print_one_static_tracepoint_marker): Get marker by reference
13070 and adjust to std::string.
13071 (info_static_tracepoint_markers_command): Adjust to std::vector
13072 changes
13073 * target.h (static_tracepoint_marker_p): Remove typedef.
13074 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
13075 (struct target_ops) <to_static_tracepoint_marker_at>: Return
13076 bool.
13077 <to_static_tracepoint_markers_by_strid>: Return std::vector.
13078 * target-debug.h
13079 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
13080 (target_debug_print_std_vector_static_tracepoint_marker): New.
13081 (target_debug_print_struct_static_tracepoint_marker_p): Rename
13082 to...
13083 (target_debug_print_static_tracepoint_marker_p): ... this.
13084 * target-delegates.c: Re-generate.
13085 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
13086 Make std::string.
13087 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
13088 (decode_static_tracepoint_spec): Adjust to std::vector.
13089 (tracepoint_print_one_detail): Adjust to std::string.
13090 (strace_marker_decode_location): Adjust to std::string.
13091 (update_static_tracepoint): Adjust to std::string, remove call
13092 to release_static_tracepoint_marker.
13093 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
13094 Adjust to std::vector.
13095 * remote.c (remote_static_tracepoint_marker_at): Return bool.
13096 (remote_static_tracepoint_markers_by_strid): Adjust to
13097 std::vector.
13098 * common/rsp-low.h (hex2str): New overload with explicit count
13099 of bytes.
13100 * common/rsp-low.c (hex2str): New overload with explicit count
13101 of bytes.
13102 * unittests/rsp-low-selftests.c (test_hex2str): New function.
13103 (_initialize_rsp_low_selftests): Add test_hex2str test.
13104 * unittests/tracepoint-selftests.c
13105 (test_parse_static_tracepoint_marker_definition): Adjust to
13106 std::string.
13107
13108 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
13109
13110 * tracepoint.c (parse_static_tracepoint_marker_definition):
13111 Consider case where the definition is followed by more
13112 definitions.
13113 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13114 tracepoint-selftests.c.
13115 * unittests/tracepoint-selftests.c: New.
13116
13117 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
13118
13119 * MAINTAINERS (Write After Approval): Add Pedro Franco de
13120 Carvalho.
13121
13122 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
13123
13124 * symtab.c (find_pc_sect_line): fixed indentation.
13125
13126 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
13127
13128 * symtab.c (find_pc_sect_line): now uses binary search.
13129
13130 2018-03-19 Tom Tromey <tom@tromey.com>
13131
13132 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
13133 "IDENT" production.
13134
13135 2018-03-19 Pedro Alves <palves@redhat.com>
13136 Tom Tromey <tom@tromey.com>
13137
13138 * unittests/observable-selftests.c: New file.
13139 * common/observable.h: New file.
13140 * observable.h: New file.
13141 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
13142 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
13143 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
13144 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
13145 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
13146 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
13147 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
13148 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
13149 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
13150 python/py-breakpoint.c, python/py-finishbreakpoint.c,
13151 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
13152 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
13153 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
13154 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
13155 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
13156 tui/tui-interp.c, valops.c: Update all users.
13157 * tui/tui-hooks.c (tui_bp_created_observer)
13158 (tui_bp_deleted_observer, tui_bp_modified_observer)
13159 (tui_inferior_exit_observer, tui_before_prompt_observer)
13160 (tui_normal_stop_observer, tui_register_changed_observer):
13161 Remove.
13162 (tui_observers_token): New global.
13163 (attach_or_detach, tui_attach_detach_observers): New functions.
13164 (tui_install_hooks, tui_remove_hooks): Use
13165 tui_attach_detach_observers.
13166 * record-btrace.c (record_btrace_thread_observer): Remove.
13167 (record_btrace_thread_observer_token): New global.
13168 * observer.sh: Remove.
13169 * observer.c: Rename to observable.c.
13170 * observable.c (namespace gdb_observers): Define new objects.
13171 (observer_debug): Move into gdb_observers namespace.
13172 (struct observer, struct observer_list, xalloc_observer_list_node)
13173 (xfree_observer_list_node, generic_observer_attach)
13174 (generic_observer_detach, generic_observer_notify): Remove.
13175 (_initialize_observer): Update.
13176 Don't include observer.inc.
13177 * Makefile.in (generated_files): Remove observer.h, observer.inc.
13178 (clean mostlyclean): Likewise.
13179 (observer.h, observer.inc): Remove targets.
13180 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
13181 (COMMON_SFILES): Use observable.c, not observer.c.
13182 * .gitignore: Remove observer.h.
13183
13184 2018-03-18 Tom Tromey <tom@tromey.com>
13185
13186 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
13187 gdb::def_vector.
13188 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
13189
13190 2018-03-17 Tom Tromey <tom@tromey.com>
13191
13192 * auto-load.c (auto_load_objfile_script_1): Use std::string.
13193
13194 2018-03-17 Tom Tromey <tom@tromey.com>
13195
13196 * target.c (class scoped_target_fd): New.
13197 (target_fileio_close_cleanup): Remove.
13198 (target_fileio_read_alloc_1): Use scoped_target_fd.
13199
13200 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
13201
13202 * silent-rules.mk: New.
13203 * Makefile.in: Include silent-rules.mk
13204 (srcdir, VPATH, top_srcdir): Move up.
13205 (COMPILE): Add ECHO_CXX.
13206 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
13207 (init.c): Add ECHO_INIT_C.
13208 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
13209 (version.c): Add ECHO_GEN.
13210 (printcmd.o): Add ECHO_CXX.
13211 (target-float.o): Add ECHO_CXX.
13212 (ada-exp.o): Add ECHO_CXX.
13213 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
13214 (insight$(EXEEXT)): Add ECHO_CXXLD.
13215 * gnulib/configure.ac: Add AM_SILENT_RULES.
13216 * gnulib/aclocal.m4: Re-generate.
13217 * gnulib/configure: Re-generate.
13218 * gnulib/import/Makefile.in: Re-generate.
13219
13220 2018-03-16 Tom Tromey <tom@tromey.com>
13221
13222 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
13223 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
13224 * utils.c (do_free_section_addr_info)
13225 (make_cleanup_free_section_addr_info): Remove.
13226 * symfile.h (struct other_sections): Add constructor.
13227 (struct section_addr_info): Remove.
13228 (section_addr_info): New typedef.
13229 (struct sym_fns) <sym_offsets>: Change type of parameter.
13230 (build_section_addr_info_from_objfile)
13231 (relative_addr_info_to_section_offsets, addr_info_make_relative)
13232 (default_symfile_offsets, symbol_file_add)
13233 (symbol_file_add_from_bfd)
13234 (build_section_addr_info_from_section_table): Update.
13235 (alloc_section_addr_info, free_section_addr_info): Don't declare.
13236 * symfile.c (alloc_section_addr_info): Remove.
13237 (build_section_addr_info_from_section_table): Change return type.
13238 Update.
13239 (build_section_addr_info_from_bfd)
13240 (build_section_addr_info_from_objfile): Likewise.
13241 (free_section_addr_info): Remove.
13242 (relative_addr_info_to_section_offsets): Change type of "addrs".
13243 (addrs_section_compar): Now a std::sort comparator.
13244 (addrs_section_sort): Change return type.
13245 (addr_info_make_relative): Change type of "addrs". Update.
13246 (default_symfile_offsets, syms_from_objfile_1)
13247 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
13248 (symbol_file_add_separate): Update.
13249 (symbol_file_add): Change type of "addrs". Update.
13250 (add_symbol_file_command): Update. Remove cleanups.
13251 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
13252 cleanups.
13253 * symfile-debug.c (debug_sym_offsets): Change type of "info".
13254 * solib.c (solib_read_symbols): Update.
13255 * objfiles.c (objfile_relocate): Update. Remove cleanups.
13256 * machoread.c (macho_symfile_offsets): Update.
13257 * jit.c (jit_bfd_try_read_symtab): Update.
13258
13259 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
13260
13261 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13262 unittests/utils-selftests.c.
13263 * unittests/utils-selftests.c: New file.
13264
13265 2018-03-14 Tom Tromey <tom@tromey.com>
13266
13267 PR cli/14977:
13268 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
13269 for NULL.
13270
13271 2018-03-14 Tom Tromey <tom@tromey.com>
13272
13273 PR cli/19918:
13274 * printcmd.c (printf_pointer): Allow "-" in format.
13275
13276 2018-03-14 Tom Tromey <tom@tromey.com>
13277
13278 * printcmd.c (_initialize_printcmd): Add usage to printf.
13279
13280 2018-03-14 Yao Qi <qiyao@sourceware.org>
13281
13282 * MAINTAINERS: Update my email address.
13283
13284 2018-03-13 Tom Tromey <tom@tromey.com>
13285
13286 * machoread.c (macho_check_dsym): Change filenamep to a
13287 std::string*.
13288 (macho_symfile_read): Update.
13289 * symfile.c (load_command): Use std::string.
13290
13291 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
13292
13293 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
13294 to error message string.
13295 (riscv_register_name): Use xsnprintf instead of sprintf.
13296 (riscv_insn::fetch_instruction): Use gdb_assert instead of
13297 internal_error.
13298 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
13299 error.
13300 (riscv_push_dummy_call): Likewise.
13301
13302 2018-03-12 Tom Tromey <tom@tromey.com>
13303
13304 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
13305 Use gdb::byte_vector.
13306 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
13307
13308 2018-03-12 Yao Qi <yao.qi@linaro.org>
13309
13310 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
13311 parameter type to readable_regcache.
13312 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
13313 the declaration.
13314
13315 2018-03-11 Tom Tromey <tom@tromey.com>
13316
13317 * dwarf2read.c (struct nextfield): Add initializers.
13318 (struct nextfnfield): Remove.
13319 (struct fnfieldlist): Add initializers. Remove "length" and
13320 "head", use std::vector.
13321 (struct decl_field_list): Remove.
13322 (struct field_info): Add initializers.
13323 <fields, baseclasses>: Now std::vector.
13324 <nbaseclasses, nfnfields, typedef_field_list_count,
13325 nested_types_list_count>: Remove.
13326 (dwarf2_add_field, dwarf2_add_type_defn)
13327 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
13328 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
13329 (process_structure_scope): Update.
13330
13331 2018-03-11 Tom Tromey <tom@tromey.com>
13332
13333 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
13334 for use by std::sort.
13335 (build_type_psymtabs_1): Use std::vector.
13336
13337 2018-03-09 Eli Zaretskii <eliz@gnu.org>
13338
13339 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
13340 and LIBMPFR in the printed configuration.
13341
13342 2018-03-08 Tom Tromey <tom@tromey.com>
13343
13344 * source.c (get_filename_and_charpos): Use scoped_fd.
13345 * nto-procfs.c (procfs_open_1): Use scoped_fd.
13346 (procfs_pidlist): Likewise.
13347 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
13348 (iterate_over_mappings): Likewise.
13349
13350 2018-03-08 Tom Tromey <tom@tromey.com>
13351
13352 * infcall.c (struct call_return_meta_info)
13353 <stack_temporaries_enabled>: Remove.
13354 (get_call_return_value, call_function_by_hand_dummy): Update.
13355 * thread.c (disable_thread_stack_temporaries): Remove.
13356 (enable_thread_stack_temporaries): Remove.
13357 (thread_stack_temporaries_enabled_p): Return bool.
13358 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
13359 (get_last_thread_stack_temporary): Update.
13360 * eval.c (evaluate_subexp): Update.
13361 * gdbthread.h (class enable_thread_stack_temporaries): Now a
13362 class, not a function.
13363 (value_ptr, value_vec): Remove typedefs.
13364 (class thread_info) <stack_temporaries_enabled>: Now bool.
13365 <stack_temporaries>: Now a std::vector.
13366 (thread_stack_temporaries_enabled_p)
13367 (value_in_thread_stack_temporaries): Return bool.
13368
13369 2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
13370
13371 * remote.c (putpkt_binary): Fix omitted bytes reporting.
13372 (getpkt_or_notif_sane_1): Likewise.
13373
13374 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
13375
13376 * build-id.c (build_id_to_debug_bfd): Use std::string.
13377
13378 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
13379
13380 * build-id.c (find_separate_debug_file_by_buildid): Return
13381 std::string.
13382 * build-id.h (find_separate_debug_file_by_buildid): Return
13383 std::string.
13384 * coffread.c (coff_symfile_read): Adjust to std::string.
13385 * elfread.c (elf_symfile_read): Adjust to std::string.
13386 * symfile.c (separate_debug_file_exists): Change parameter to
13387 std::string.
13388 (find_separate_debug_file): Return std::string.
13389 (find_separate_debug_file_by_debuglink): Return std::string.
13390 * symfile.h (find_separate_debug_file_by_debuglink): Return
13391 std::string.
13392
13393 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
13394
13395 * common/xml-utils.c (xml_escape_text): Move code to...
13396 (xml_escape_text_append): ... this new function.
13397 * common/xml-utils.h (xml_escape_text_append): New declaration.
13398 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
13399 New function.
13400 (_initialize_xml_utils): register test_xml_escape_text_append as
13401 a selftest.
13402
13403 2018-03-07 Alan Hayward <alan.hayward@arm.com>
13404
13405 * defs.h: Remove MAX_REGISTER_SIZE.
13406 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
13407 asserts.
13408 * python/py-unwind.c (pyuw_sniffer): Likewise.
13409
13410 2018-03-07 Tom Tromey <tom@tromey.com>
13411
13412 * linux-tdep.c (linux_info_proc): Update.
13413 * target.h (struct target_ops) <to_fileio_readlink>: Return
13414 optional<string>.
13415 (target_fileio_readlink): Return optional<string>.
13416 * remote.c (remote_hostio_readlink): Return optional<string>.
13417 * inf-child.c (inf_child_fileio_readlink): Return
13418 optional<string>.
13419 * target.c (target_fileio_readlink): Return optional<string>.
13420
13421 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
13422
13423 * regcache.c (cooked_read_test): Add riscv to the list of
13424 architectures that have a save_reggroup.
13425
13426 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
13427
13428 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
13429 value is not a dynamic class object.
13430
13431 2018-03-06 Tom Tromey <tom@tromey.com>
13432
13433 * rust-exp.y: Formatting fixes.
13434
13435 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13436
13437 * riscv-tdep.c (riscv_register_name): Remove target description
13438 support.
13439 (riscv_gdbarch_init): Remove target description check.
13440
13441 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13442
13443 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
13444 comment.
13445 * riscv-tdep.h: Likewise.
13446
13447 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13448
13449 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
13450 (riscv_pseudo_register_write): Delete.
13451 (riscv_gdbarch_init): Remove all use of pseudo registers.
13452
13453 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13454
13455 * record-btrace.c (btrace_print_lines): Replace cleanup
13456 parameter with RAII equivalents.
13457 (btrace_insn_history): Replace cleanup with RAII equivalents.
13458 * ui-out.h (make_cleanup_ui_out_list_begin_end,
13459 make_cleanup_ui_out_tuple_begin_end): Remove.
13460 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
13461 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
13462 make_cleanup_ui_out_list_begin_end): Remove.
13463
13464 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13465
13466 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
13467 parameter types to std::vector. Use bool.
13468 (record_btrace_wait): Replace VEC(tp_t) with
13469 std::vector<thread_info *>.
13470 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
13471
13472 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13473
13474 * record-btrace.c (record_btrace_disable_callback): Remove.
13475 (struct scoped_btrace_disable): New.
13476 (record_btrace_open): Use scoped_btrace_disable.
13477
13478 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13479
13480 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
13481 reading values from registers.
13482
13483 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13484
13485 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
13486 where appropriate.
13487
13488 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13489
13490 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
13491 change parameter type. Use GDB's print functions, and use
13492 core_addr_to_string where appropriate.
13493 (riscv_push_dummy_call): Use core_addr_to_string where
13494 appropriate, update call to riscv_print_arg_location, and reindent
13495 a few lines.
13496 (riscv_return_value): Update call to riscv_print_arg_location.
13497
13498 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13499 Tim Newsome <tim@sifive.com>
13500 Albert Ou <a0u@eecs.berkeley.edu>
13501 Darius Rad <darius@bluespec.com>
13502
13503 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
13504 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
13505 (ALLDEPFILES): Add riscv-tdep.c
13506 * configure.tgt: Add riscv support.
13507 * riscv-tdep.c: New file.
13508 * riscv-tdep.h: New file.
13509 * NEWS: Mention new target.
13510 * MAINTAINERS: Add entry for riscv.
13511
13512 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13513
13514 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
13515 fields within aggregates.
13516
13517 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
13518
13519 * record-btrace.c (btrace_print_lines): Change type of flags to
13520 gdb_disassembly_flags.
13521
13522 2018-03-04 John Baldwin <jhb@FreeBSD.org>
13523
13524 * fbsd-nat.c: Include "inf-ptrace.h".
13525 (USE_SIGTRAP_SIGINFO): Conditionally define.
13526 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
13527 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
13528 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
13529 function.
13530 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
13531 Likewise.
13532 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
13533 Likewise.
13534 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
13535 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
13536 "supports_stopped_by_hw_breakpoint" target methods.
13537
13538 2018-03-04 John Baldwin <jhb@FreeBSD.org>
13539
13540 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
13541 * fbsd-nat.c (debug_fbsd_nat): New variable.
13542 (show_fbsd_nat_debug): New function.
13543 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
13544 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
13545
13546 2018-03-04 John Baldwin <jhb@FreeBSD.org>
13547
13548 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
13549 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
13550 prototype.
13551 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
13552 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
13553 method.
13554
13555 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13556
13557 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
13558 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
13559
13560 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13561
13562 * charset.c (struct charset_vector): New.
13563 (charsets): Change type to charset_vector.
13564 (find_charset_names): Adjust.
13565 (add_one): Adjust.
13566 (_initialize_charset): Adjust.
13567
13568 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13569
13570 * progspace.h (struct program_space) <deleted_solibs>: Change
13571 type to std::vector<std::string>.
13572 * progspace.c (clear_program_space_solib_cache): Adjust.
13573 * breakpoint.c (print_solib_event): Adjust.
13574 (check_status_catch_solib): Adjust.
13575 * solib.c (update_solib_list): Adjust.
13576 * ui-out.h (class ui_out) <field_string>: New overload.
13577 * ui-out.c (ui_out::field_string): New overload.
13578
13579 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13580
13581 * progspace.h (struct program_space): Add constructor and
13582 destructor, initialize fields.
13583 (add_program_space): Remove.
13584 * progspace.c (add_program_space): Rename to...
13585 (program_space::program_space): ... this.
13586 (release_program_space): Rename to...
13587 (program_space::~program_space): ... this.
13588 (delete_program_space): Use delete to delete program_space.
13589 (initialize_progspace): Use new to allocate program_space.
13590 * inferior.c (add_inferior_with_spaces): Likewise.
13591 (clone_inferior_command): Likewise.
13592 * infrun.c (follow_fork_inferior): Likewise.
13593 (handle_vfork_child_exec_or_exit): Likewise.
13594
13595 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13596
13597 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
13598 (delim_string_to_char_ptr_vec): Return std::vector of
13599 gdb::unique_xmalloc_ptr.
13600 (dirnames_to_char_ptr_vec_append): Take std::vector of
13601 gdb::unique_xmalloc_ptr.
13602 (dirnames_to_char_ptr_vec): Return std::vector of
13603 gdb::unique_xmalloc_ptr.
13604 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
13605 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
13606 (delim_string_to_char_ptr_vec): Return an std::vector of
13607 gdb::unique_xmalloc_ptr, adjust the code.
13608 (dirnames_to_char_ptr_vec_append): Take an std::vector of
13609 gdb::unique_xmalloc_ptr, adjust the code.
13610 (dirnames_to_char_ptr_vec): Return an std::vector of
13611 gdb::unique_xmalloc_ptr, adjust the code.
13612 * auto-load.c (auto_load_safe_path_vec): Change type to
13613 std::vector of gdb::unique_xmalloc_ptr.
13614 (auto_load_expand_dir_vars): Return an std::vector of
13615 gdb::unique_xmalloc_ptr, adjust the code.
13616 (auto_load_safe_path_vec_update): Adjust.
13617 (filename_is_in_auto_load_safe_path_vec): Adjust.
13618 (auto_load_objfile_script_1): Adjust.
13619 * build-id.c (build_id_to_debug_bfd): Adjust.
13620 * linux-thread-db.c (thread_db_load_search): Adjust.
13621 * source.c (add_path): Adjust.
13622 (openp): Adjust.
13623 * symfile.c (find_separate_debug_file): Adjust.
13624 * utils.c (do_free_char_ptr_vec): Remove.
13625 (make_cleanup_free_char_ptr_vec): Remove.
13626
13627 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
13628
13629 PR gdb/22907
13630 * common/pathstuff.c: Conditionally include "<windows.h>".
13631
13632 2018-03-01 Georg Sauthoff <mail@georg.so>
13633
13634 PR gdb/22888
13635 * gcore.in: Quote variables and switch interpreter to bash.
13636
13637 2018-03-01 Tom Tromey <tom@tromey.com>
13638
13639 * dwarf2read.c (alloc_discriminant_info): Fix default_index
13640 assertion. Add assertion for discriminant_index.
13641 (quirk_rust_enum): Use correct base type name in univariant case.
13642
13643 2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
13644
13645 * record.c (get_call_history_modifiers): Return a
13646 record_print_flags.
13647 (cmd_record_call_history): Adjust.
13648 * record-btrace.c (record_btrace_call_history): Adjust.
13649 (record_btrace_call_history_range): Adjust.
13650 (record_btrace_call_history_from): Adjust.
13651 * target-debug.h (target_debug_print_record_print_flags): New.
13652 * target-delegates.c: Re-generate.
13653 * target.c (target_call_history): Change flags type.
13654 (target_call_history_from): Likewise.
13655 (target_call_history_range): Likewise.
13656 * target.h (struct target_ops) <target_call_history>: Likewise.
13657 (target_call_history_from): Likewise.
13658 (target_call_history_range): Likewise.
13659
13660 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
13661 Simon Marchi <simon.marchi@polymtl.ca>
13662
13663 * common/common-utils.c: Include "sys/stat.h".
13664 (is_regular_file): Move here from "source.c"; change return
13665 type to "bool".
13666 * common/common-utils.h (is_regular_file): New prototype.
13667 * common/pathstuff.c (contains_dir_separator): New function.
13668 * common/pathstuff.h (contains_dir_separator): New prototype.
13669 * source.c: Don't include "sys/stat.h".
13670 (is_regular_file): Move to "common/common-utils.c".
13671
13672 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
13673
13674 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
13675 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
13676 * auto-load.c: Include "common/pathstuff.h".
13677 * common/common-def.h (current_directory): Move here.
13678 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
13679 function.
13680 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
13681 prototype.
13682 * common/pathstuff.c: New file.
13683 * common/pathstuff.h: New file.
13684 * compile/compile.c: Include "common/pathstuff.h".
13685 * defs.h (current_directory): Move to "common/common-defs.h".
13686 * dwarf2read.c: Include "common/pathstuff.h".
13687 * exec.c: Likewise.
13688 * guile/scm-safe-call.c: Likewise.
13689 * linux-thread-db.c: Likewise.
13690 * main.c: Likewise.
13691 * nto-tdep.c: Likewise.
13692 * objfiles.c: Likewise.
13693 * source.c: Likewise.
13694 * symtab.c: Likewise.
13695 * utils.c: Include "common/pathstuff.h".
13696 (gdb_realpath): Move to "common/pathstuff.c".
13697 (gdb_realpath_keepfile): Likewise.
13698 (gdb_abspath): Likewise.
13699 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
13700 (gdb_realpath_keepfile): Likewise.
13701 (gdb_abspath): Likewise.
13702
13703 2018-02-28 John Baldwin <jhb@FreeBSD.org>
13704
13705 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
13706 wildcard process pid for super_resume for kernels with a
13707 specific bug.
13708
13709 2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
13710
13711 * compile/compile.c (get_args): Add additional comments
13712 explaining function.
13713
13714 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
13715 Tom Tromey <tom@tromey.com>
13716
13717 * target.h (memory_write_request_s): Remove typedef. Don't define
13718 VEC.
13719 (target_write_memory_blocks): Change argument to std::vector.
13720 (struct memory_write_request): Add constructor.
13721 * target-memory.c (compare_block_starting_address): Return bool.
13722 Change argument types.
13723 (claim_memory): Change arguments to use std::vector.
13724 (split_regular_and_flash_blocks, blocks_to_erase)
13725 (compute_garbled_blocks): Likewise.
13726 (cleanup_request_data, cleanup_write_requests_vector): Remove.
13727 (target_write_memory_blocks): Change argument to std::vector.
13728 * symfile.c (struct load_section_data): Add constructor and
13729 destructor. Use std::vector for "requests".
13730 (struct load_progress_data): Add initializers.
13731 (load_section_callback): Update. Use "new".
13732 (clear_memory_write_data): Remove.
13733 (generic_load): Update.
13734
13735 2018-02-27 Alan Hayward <alan.hayward@arm.com>
13736
13737 * arch/aarch64.h: Use common/tdesc.h.
13738
13739 2018-02-26 Maciej W. Rozycki <macro@mips.com>
13740
13741 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
13742 architecture with a 64-bit ABI.
13743
13744 2018-02-26 Maciej W. Rozycki <macro@mips.com>
13745
13746 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
13747 ahead of target description loading.
13748
13749 2018-02-26 Tom Tromey <tom@tromey.com>
13750
13751 * stack.c (backtrace_command_1): Update.
13752 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
13753 of "flags".
13754 * python/py-framefilter.c (py_print_frame)
13755 (gdbpy_apply_frame_filter): Change type of "flags".
13756 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
13757 of "flags".
13758 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
13759 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
13760 * extension.h (enum frame_filter_flag): Rename from
13761 frame_filter_flags.
13762 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
13763 (apply_ext_lang_frame_filter): Change type of "flags".
13764 * extension.c (apply_ext_lang_frame_filter): Change type of
13765 "flags".
13766 * extension-priv.h (struct extension_language_ops)
13767 <apply_frame_filter>: Change type of "flags".
13768
13769 2018-02-26 Tom Tromey <tom@tromey.com>
13770
13771 PR python/16497:
13772 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
13773 off-by-one in py_end computation.
13774 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
13775 PRINT_MORE_FRAMES.
13776 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
13777 constant.
13778
13779 2018-02-26 Tom Tromey <tom@tromey.com>
13780
13781 * dwarf2read.c (struct variant_field): New.
13782 (struct nextfield) <variant>: New field.
13783 (dwarf2_add_field): Handle DW_TAG_variant_part.
13784 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
13785 discriminated union.
13786 (read_structure_type): Handle DW_TAG_variant_part.
13787 (handle_struct_member_die): New function, extracted from
13788 process_structure_scope. Handle DW_TAG_variant.
13789 (process_structure_scope): Handle discriminated unions. Call
13790 handle_struct_member_die.
13791
13792 2018-02-26 Tom Tromey <tom@tromey.com>
13793
13794 * rust-lang.h (rust_last_path_segment): Declare.
13795 * rust-lang.c (rust_last_path_segment): Now public. Change
13796 contract.
13797 (struct disr_info): Remove.
13798 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
13799 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
13800 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
13801 (rust_enum_p, rust_enum_variant): New function.
13802 (rust_underscore_fields): Remove "offset" parameter.
13803 (rust_print_enum): New function.
13804 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
13805 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
13806 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
13807 enums.
13808 (rust_internal_print_type): New function, from rust_print_type.
13809 Remove enum code.
13810 (rust_print_type): Call rust_internal_print_type.
13811 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
13812 Update enum handling.
13813 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
13814 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
13815 (rust_union_quirks): New functions.
13816 (process_full_comp_unit, process_full_type_unit): Call
13817 rust_union_quirks.
13818 (process_structure_scope): Update rust_unions if necessary.
13819
13820 2018-02-26 Tom Tromey <tom@tromey.com>
13821
13822 * value.h (value_union_variant): Declare.
13823 * valops.c (value_union_variant): New function.
13824 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
13825 (struct discriminant_info): New.
13826 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
13827 enumerator.
13828 (struct main_type) <flag_discriminated_union>: New field.
13829
13830 2018-02-26 Tom Tromey <tom@tromey.com>
13831
13832 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13833 unittests/unpack-selftests.c.
13834 * unittests/unpack-selftests.c: New file.
13835 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
13836
13837 2018-02-26 Yao Qi <yao.qi@linaro.org>
13838
13839 * dwarf2read.c (struct partial_die_info) <read>: New method.
13840 (read_partial_die): Remove the declaration.
13841 (load_partial_dies): Update.
13842 (partial_die_info::partial_die_info):
13843 (read_partial_die): Change it to partial_die_info::read.
13844
13845 2018-02-26 Yao Qi <yao.qi@linaro.org>
13846
13847 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
13848 (fixup_partial_die): Remove declaration.
13849 (scan_partial_symbols): Update.
13850 (partial_die_parent_scope): Likewise.
13851 (partial_die_full_name): Likewise.
13852 (fixup_partial_die): Change it to partial_die_info::fixup.
13853
13854 2018-02-26 Yao Qi <yao.qi@linaro.org>
13855
13856 * dwarf2read.c (read_partial_die): Update the declaration.
13857 (load_partial_dies): Caller update.
13858 (read_partial_die): Remove one argument abbrev_len.
13859
13860 2018-02-26 Yao Qi <yao.qi@linaro.org>
13861
13862 * dwarf2read.c (struct partial_die_info): Add ctor, delete
13863 assignment operator.
13864 (load_partial_dies): Use ctor and copy ctor.
13865 (read_partial_die): Update.
13866 (dwarf2_cu::find_partial_die): Use ctor.
13867
13868 2018-02-26 Yao Qi <yao.qi@linaro.org>
13869
13870 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
13871 (find_partial_die_in_comp_unit): Change it to
13872 dwarf2_cu::find_partial_die.
13873 (find_partial_die): Update.
13874
13875 2018-02-26 Yao Qi <yao.qi@linaro.org>
13876
13877 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
13878 is NULL.
13879
13880 2018-02-26 Yao Qi <yao.qi@linaro.org>
13881
13882 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
13883
13884 2018-02-26 Alan Hayward <alan.hayward@arm.com>
13885
13886 * arch/amd64.h: Use common/tdesc.h.
13887 * arch/i386.c: Likewise.
13888 * arch/i386.h: Likewise.
13889 * arch/tic6x.c: Likewise.
13890 * arch/tdesc.h: Move file from here...
13891 * common/tdesc.h: ...to here.
13892 * features/aarch64-core.c: Regenerate.
13893 * features/aarch64-fpu.c: Regenerate.
13894 * features/i386/32bit-avx.c: Regenerate.
13895 * features/i386/32bit-avx512.c: Regenerate.
13896 * features/i386/32bit-core.c: Regenerate.
13897 * features/i386/32bit-linux.c: Regenerate.
13898 * features/i386/32bit-mpx.c: Regenerate.
13899 * features/i386/32bit-pkeys.c: Regenerate.
13900 * features/i386/32bit-sse.c: Regenerate.
13901 * features/i386/64bit-avx.c: Regenerate.
13902 * features/i386/64bit-avx512.c: Regenerate.
13903 * features/i386/64bit-core.c: Regenerate.
13904 * features/i386/64bit-linux.c: Regenerate.
13905 * features/i386/64bit-mpx.c: Regenerate.
13906 * features/i386/64bit-pkeys.c: Regenerate.
13907 * features/i386/64bit-segments.c: Regenerate.
13908 * features/i386/64bit-sse.c: Regenerate.
13909 * features/i386/x32-core.c: Regenerate.
13910 * features/tic6x-c6xp.c: Regenerate.
13911 * features/tic6x-core.c: Regenerate.
13912 * features/tic6x-gp.c: Regenerate.
13913 * target-descriptions.c: Use common/tdesc.h.
13914 * target-descriptions.h: Likewise.
13915
13916 2018-02-24 Tom Tromey <tom@tromey.com>
13917
13918 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
13919 (try_thread_db_load_from_dir, thread_db_load_search): Use
13920 std::string.
13921 (info_auto_load_libthread_db_compare): Return bool. Change
13922 argument types.
13923 (info_auto_load_libthread_db): Use std::vector, std::string.
13924 Remove cleanups.
13925
13926 2018-02-24 Tom Tromey <tom@tromey.com>
13927
13928 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
13929 std::string.
13930 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
13931 std::string*.
13932 * gdbarch.c: Rebuild.
13933 * gdbarch.h: Rebuild.
13934 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
13935 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
13936 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
13937 std::string*.
13938
13939 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
13940
13941 * gdbtypes.h (sect_offset): Change type to uint64_t.
13942 (sect_offset_str): New function.
13943 * dwarf2read.c (create_addrmap_from_aranges): Use
13944 sect_offset_str.
13945 (error_check_comp_unit_head): Likewise.
13946 (create_debug_type_hash_table): Likewise.
13947 (read_cutu_die_from_dwo): Likewise.
13948 (init_cutu_and_read_dies): Likewise.
13949 (init_cutu_and_read_dies_no_follow): Likewise.
13950 (process_psymtab_comp_unit_reader): Likewise.
13951 (partial_die_parent_scope): Likewise.
13952 (peek_die_abbrev): Likewise.
13953 (process_queue): Likewise.
13954 (dwarf2_physname): Likewise.
13955 (read_namespace_alias): Likewise.
13956 (read_import_statement): Likewise.
13957 (create_dwo_cu_reader): Likewise.
13958 (create_cus_hash_table): Likewise.
13959 (lookup_dwo_cutu): Likewise.
13960 (inherit_abstract_dies): Likewise.
13961 (read_func_scope): Likewise.
13962 (read_call_site_scope): Likewise.
13963 (dwarf2_add_member_fn): Likewise.
13964 (read_common_block): Likewise.
13965 (read_module_type): Likewise.
13966 (read_typedef): Likewise.
13967 (read_subrange_type): Likewise.
13968 (load_partial_dies): Likewise.
13969 (read_partial_die): Likewise.
13970 (find_partial_die): Likewise.
13971 (read_str_index): Likewise.
13972 (dwarf2_string_attr): Likewise.
13973 (build_error_marker_type): Likewise.
13974 (lookup_die_type): Likewise.
13975 (dump_die_shallow): Likewise.
13976 (follow_die_ref): Likewise.
13977 (dwarf2_fetch_die_loc_sect_off): Likewise.
13978 (dwarf2_fetch_constant_bytes): Likewise.
13979 (follow_die_sig): Likewise.
13980 (get_signatured_type): Likewise.
13981 (get_DW_AT_signature_type): Likewise.
13982 (dwarf2_find_containing_comp_unit): Likewise.
13983 (set_die_type): Likewise.
13984
13985 2018-02-21 John Baldwin <jhb@FreeBSD.org>
13986
13987 * arch/aarch64.c: Include "common-defs.h".
13988 * arch/amd64.c: Likewise.
13989 * arch/i386.c: Likewise.
13990
13991 2018-02-21 Tom Tromey <tom@tromey.com>
13992
13993 * value.h: (extract_field_op): Update.
13994 * eval.c (extract_field_op): Return a const char *.
13995 * expression.h (parse_expression_for_completion): Update.
13996 * completer.c (complete_expression): Update.
13997 (add_struct_fields): Make fieldname const.
13998 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
13999 (mark_completion_tag, parse_exp_in_context_1): Update.
14000 (parse_expression_for_completion): Change "name" to
14001 unique_xmalloc_ptr*.
14002
14003 2018-02-21 Tom Tromey <tom@tromey.com>
14004
14005 * infcall.c (call_function_by_hand_dummy): Use std::vector.
14006
14007 2018-02-21 Yao Qi <yao.qi@linaro.org>
14008
14009 * avr-tdep.c (avr_read_pc): Change parameter type to
14010 readable_regcache.
14011 * gdbarch.sh (read_pc): Likewise.
14012 * gdbarch.c: Re-generated.
14013 * gdbarch.h: Re-generated.
14014 * hppa-tdep.c (hppa_read_pc): Change parameter type to
14015 readable_regcache.
14016 * ia64-tdep.c (ia64_read_pc): Likewise.
14017 * mips-tdep.c (mips_read_pc): Likewise.
14018 * spu-tdep.c (spu_read_pc): Likewise.
14019
14020 2018-02-21 Yao Qi <yao.qi@linaro.org>
14021
14022 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
14023 * regcache-dump.c: New file.
14024 * regcache.c: Move register_dump to regcache-dump.c.
14025 (maintenance_print_registers): Likewise.
14026 (maintenance_print_raw_registers): Likewise.
14027 (maintenance_print_cooked_registers): Likewise.
14028 (maintenance_print_register_groups): Likewise.
14029 (maintenance_print_remote_registers): Likewise.
14030 (_initialize_regcache): Likewise.
14031 * regcache.h (register_dump): Moved from regcache.c.
14032
14033 2018-02-21 Yao Qi <yao.qi@linaro.org>
14034
14035 * regcache.c (regcache::regcache): Update.
14036 (regcache::invalidate): Move it to detached_regcache::invalidate.
14037 (get_thread_arch_aspace_regcache): Update.
14038 (regcache::raw_update): Update.
14039 (regcache::cooked_read): Remove some code.
14040 (regcache::cooked_read_value): Likewise.
14041 (regcache::raw_write): Remove assert on m_readonly_p.
14042 (regcache::raw_supply_integer): Move it to
14043 detached_regcache::raw_supply_integer.
14044 (regcache::raw_supply_zeroed): Likewise.
14045 * regcache.h (detached_regcache) <raw_supply_integer>: New
14046 declaration.
14047 <raw_supply_zeroed, invalidate>: Likewise.
14048 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
14049 <invalidate>: Likewise.
14050 <m_readonly_p>: Removed.
14051
14052 2018-02-21 Yao Qi <yao.qi@linaro.org>
14053
14054 * infcmd.c (get_return_value): Let stop_regs point to
14055 get_current_regcache.
14056 * regcache.c (regcache::regcache): Remove.
14057 (register_dump_reg_buffer): New class.
14058 (regcache_print): Adjust.
14059 * regcache.h (regcache): Remove constructors.
14060
14061 2018-02-21 Yao Qi <yao.qi@linaro.org>
14062
14063 * regcache.c (class register_dump): New class.
14064 (register_dump_regcache, register_dump_none): New class.
14065 (register_dump_remote, register_dump_groups): New class.
14066 (regcache_print): Update.
14067 * regcache.h (regcache_dump_what): Move it to regcache.c.
14068 (regcache) <dump>: Remove.
14069
14070 2018-02-21 Yao Qi <yao.qi@linaro.org>
14071
14072 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
14073 reg_buffer_rw *.
14074 (jit_unwind_reg_set_impl): Call raw_supply.
14075 (jit_frame_sniffer): Use reg_buffer_rw.
14076 * record-full.c (record_full_core_regbuf): Change its type.
14077 (record_full_core_open_1): Use reg_buffer_rw.
14078 (record_full_close): Likewise.
14079 (record_full_core_fetch_registers): Use regcache->raw_supply.
14080 (record_full_core_store_registers): Likewise.
14081 * regcache.c (regcache::get_register_status): Move it to
14082 reg_buffer.
14083 (regcache_raw_set_cached_value): Remove.
14084 (regcache::raw_set_cached_value): Remove.
14085 (regcache::raw_write): Call raw_supply.
14086 (regcache::raw_supply): Move it to reg_buffer_rw.
14087 * regcache.h (regcache_raw_set_cached_value): Remove.
14088 (reg_buffer_rw): New class.
14089
14090 2018-02-21 Yao Qi <yao.qi@linaro.org>
14091
14092 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
14093 readonly_detached_regcache.
14094 (dummy_frame_prev_register): Use regcache->cooked_read.
14095 * frame.c (frame_save_as_regcache): Change return type.
14096 (frame_pop): Update.
14097 * frame.h (frame_save_as_regcache): Update declaration.
14098 * inferior.h (get_infcall_suspend_state_regcache): Update
14099 declaration.
14100 * infrun.c (infcall_suspend_state) <registers>: use
14101 readonly_detached_regcache.
14102 (save_infcall_suspend_state): Don't use regcache_dup.
14103 (get_infcall_suspend_state_regcache): Change return type.
14104 * linux-fork.c (struct fork_info) <savedregs>: Change to
14105 readonly_detached_regcache.
14106 <pc>: New field.
14107 (fork_save_infrun_state): Don't use regcache_dup.
14108 (info_checkpoints_command): Adjust.
14109 * mi/mi-main.c (register_changed_p): Update declaration.
14110 (mi_cmd_data_list_changed_registers): Use
14111 readonly_detached_regcache.
14112 (register_changed_p): Change parameter type to
14113 readonly_detached_regcache.
14114 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
14115 readonly_detached_regcache.
14116 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
14117 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
14118 New.
14119 (regcache::save): Move it to reg_buffer.
14120 (regcache::restore): Change parameter type.
14121 (regcache_dup): Remove.
14122 * regcache.h (reg_buffer) <save>: New method.
14123 (readonly_detached_regcache): New class.
14124 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
14125 readonly_detached_regcache.
14126 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
14127
14128 2018-02-21 Yao Qi <yao.qi@linaro.org>
14129
14130 * frame.c (frame_save_as_regcache): Use regcache method save.
14131 (frame_pop): Use regcache method restore.
14132 * infrun.c (restore_infcall_suspend_state): Likewise.
14133 * linux-fork.c (fork_load_infrun_state): Likewise.
14134 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
14135 save.
14136 * regcache.c (regcache_save): Remove.
14137 (regcache::restore): More asserts.
14138 (regcache_cpy): Remove.
14139 * regcache.h (regcache_save): Remove the declaration.
14140 (regcache::restore): Move from private to public.
14141 Remove the friend declaration of regcache_cpy.
14142 (regcache_cpy): Remove declaration.
14143
14144 2018-02-21 Yao Qi <yao.qi@linaro.org>
14145
14146 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
14147 parameter type to 'readable_regcache *'.
14148 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
14149 * arm-tdep.c (arm_neon_quad_read): Likewise.
14150 (arm_pseudo_read): Likewise.
14151 * avr-tdep.c (avr_pseudo_register_read): Likewise.
14152 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
14153 * frv-tdep.c (frv_pseudo_register_read): Likewise.
14154 * gdbarch.c: Re-generated.
14155 * gdbarch.h: Re-generated.
14156 * gdbarch.sh (pseudo_register_read): Change parameter type to
14157 'readable_regcache *'.
14158 (pseudo_register_read_value): Likewise.
14159 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
14160 (h8300_pseudo_register_read): Likewise.
14161 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
14162 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
14163 (i386_pseudo_register_read_into_value): Likewise.
14164 (i386_pseudo_register_read_value): Likewise.
14165 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
14166 declaration.
14167 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
14168 * m32c-tdep.c (m32c_raw_read): Likewise.
14169 (m32c_read_flg): Likewise.
14170 (m32c_banked_register): Likewise.
14171 (m32c_banked_read): Likewise.
14172 (m32c_sb_read): Likewise.
14173 (m32c_part_read): Likewise.
14174 (m32c_cat_read): Likewise.
14175 (m32c_r3r2r1r0_read): Likewise.
14176 (m32c_pseudo_register_read): Likewise.
14177 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
14178 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
14179 (mep_pseudo_cr64_read): Likewise.
14180 (mep_pseudo_register_read): Likewise.
14181 * mips-tdep.c (mips_pseudo_register_read): Likewise.
14182 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
14183 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
14184 * regcache.c (regcache::raw_read): Move it to readable_regcache.
14185 (regcache::cooked_read): Likewise.
14186 (regcache::cooked_read_value): Likewise.
14187 (regcache_cooked_read_signed):
14188 (regcache::cooked_read): Likewise.
14189 * regcache.h (readable_regcache): New class.
14190 (regcache): Inherit readable_regcache. Move some methods to
14191 readable_regcache.
14192 * rl78-tdep.c (rl78_pseudo_register_read): Change
14193 parameter type to 'readable_regcache *'.
14194 * rs6000-tdep.c (do_regcache_raw_read): Remove.
14195 (e500_pseudo_register_read): Change parameter type to
14196 'readable_regcache *'.
14197 (dfp_pseudo_register_read): Likewise.
14198 (vsx_pseudo_register_read): Likewise.
14199 (efpr_pseudo_register_read): Likewise.
14200 * s390-tdep.c (s390_pseudo_register_read): Likewise.
14201 * sh-tdep.c (sh_pseudo_register_read): Likewise.
14202 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
14203 (sh64_pseudo_register_read): Likewise.
14204 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
14205 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
14206 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
14207 (spu_pseudo_register_read): Likewise.
14208 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
14209 (xtensa_pseudo_register_read): Likewise.
14210
14211 2018-02-21 Yao Qi <yao.qi@linaro.org>
14212
14213 * regcache.c (regcache::regcache): Call reg_buffer ctor.
14214 (regcache::arch): Move it to reg_buffer::arch.
14215 (regcache::register_buffer): Likewise.
14216 (regcache::assert_regnum): Likewise.
14217 (regcache::num_raw_registers): Likewise.
14218 * regcache.h (reg_buffer): New class.
14219 (regcache): Inherit reg_buffer.
14220
14221 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
14222
14223 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
14224 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
14225
14226 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
14227
14228 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
14229
14230 2018-02-19 Alan Hayward <alan.hayward@arm.com>
14231
14232 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
14233 (SFILES): Remove common/*.c files.
14234 (COMMON_OBS): Remove some *.o files built from common/*.c files.
14235 * common/common.host: Add common reference.
14236 * configure.ac: Likewise.
14237 * configure: Regenerate.
14238
14239 2018-02-16 Yao Qi <yao.qi@linaro.org>
14240
14241 * block.c (block_namespace_info): Inherit allocate_on_obstack.
14242 (block_initialize_namespace): Use new.
14243 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
14244 (dwarf2_free_objfile): Use delete.
14245 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
14246 (copy_type_recursive): Use new.
14247 * gdb_obstack.h (allocate_on_obstack): New.
14248
14249 2018-02-15 Yao Qi <yao.qi@linaro.org>
14250
14251 PR gdb/22849
14252 * inferior.c (exit_inferior_1): Reset inf->control.
14253
14254 2018-02-15 Joel Brobecker <brobecker@adacore.com>
14255
14256 * ada-lang.c (ada_to_fixed_value_create): Delete advance
14257 declaration.
14258
14259 2018-02-14 Pedro Alves <palves@redhat.com>
14260
14261 * frame-unwind.c (frame_unwind_try_unwinder): Always call
14262 frame_cleanup_after_sniffer on exception.
14263
14264 2018-02-14 Tom Tromey <tom@tromey.com>
14265
14266 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
14267 const.
14268 (solib_bfd_open): Make pathname const.
14269 * solib.c (solib_bfd_open): Make pathname const.
14270 * solib-spu.c (spu_bfd_fopen): Make name const.
14271 (spu_bfd_open): Make pathname const.
14272 * solib-darwin.c (darwin_bfd_open): Make pathname const.
14273 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
14274
14275 2018-02-14 Tom Tromey <tom@tromey.com>
14276
14277 * symfile.c (symfile_bfd_open): Update.
14278 * source.h (openp, source_full_path_of, find_and_open_source):
14279 Change argument type to unique_xmalloc_ptr.
14280 * source.c (openp): Take a unique_xmalloc_ptr.
14281 (source_full_path_of, find_and_open_source): Likewise.
14282 (open_source_file, symtab_to_fullname): Update.
14283 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
14284 unique_xmalloc_ptr.
14285 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
14286 (exec_file_find): Update.
14287 * psymtab.c (psymtab_to_fullname): Update.
14288 * nto-tdep.h (nto_find_and_open_solib): Update.
14289 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
14290 unique_xmalloc_ptr.
14291 * exec.c (exec_file_attach): Update.
14292 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
14293 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
14294
14295 2018-02-14 Tom Tromey <tom@tromey.com>
14296
14297 * solib.c: Include source.h.
14298 * nto-tdep.c: Include source.h.
14299 * mi/mi-cmd-env.c: Include source.h.
14300 * infcmd.c: Include source.h.
14301 * exec.c: Include source.h.
14302 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
14303 (add_path, directory_switch, source_path, init_source_path): Move
14304 declarations...
14305 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
14306 (add_path, directory_switch, source_path, init_source_path):
14307 ...here.
14308
14309 2018-02-14 Tom Tromey <tom@tromey.com>
14310
14311 * solist.h (exec_file_find, solib_find): Return
14312 unique_xmalloc_ptr.
14313 (solib_bfd_fopen): Take a const char *.
14314 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
14315 (exec_file_find, solib_find): Likewise.
14316 (solib_bfd_fopen): Do not take ownership of "pathname".
14317 (solib_bfd_open): Use unique_xmalloc_ptr.
14318 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
14319 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
14320 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
14321 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
14322
14323 2018-02-14 Joel Brobecker <brobecker@adacore.com>
14324
14325 * ada-lang.c (name_match_type_from_name): Remove reference to
14326 ada_name_for_lookup in function's documentation.
14327 * ada-lang.h (ada_name_for_lookup): Delete declaration.
14328
14329 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
14330
14331 * defs.h (enum openp_flags): New enum.
14332 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
14333 Move to enum openp_flags.
14334 (openp_flags): New enum flags.
14335 (openp): Change parameter type to openp_flags.
14336 * source.c (openp): Change parameter type to openp_flags.
14337 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
14338 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
14339
14340 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
14341
14342 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
14343 per-command.
14344
14345 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
14346
14347 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
14348 into...
14349 (class dwarf2_queue_guard): ...the destructor of this new class.
14350 (dw2_do_instantiate_symtab): Create instance of the new class
14351 dwarf2_queue_guard, remove cleanup.
14352
14353 2018-02-09 Tom Tromey <tom@tromey.com>
14354
14355 * source.c (find_source_lines): Don't reference past the end of
14356 the vector.
14357
14358 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
14359
14360 * remote.c (remote_btrace_maybe_reopen): Change error message.
14361 * btrace.c (btrace_enable): Likewise.
14362 (parse_xml_btrace): Likewise.
14363 (parse_xml_btrace_conf): Likewise.
14364
14365 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
14366
14367 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
14368 (linux_enable_pt, linux_enable_bts): Call
14369 diagnose_perf_event_open_fail.
14370
14371 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
14372
14373 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
14374 Remove parameter and change return type. Update callers. Move it.
14375 (linux_enable_bts, linux_enable_pt): Improve error message.
14376 (linux_enable_pt): Remove zero buffer size check.
14377 (linux_enable_btrace): Improve error messages. Remove NULL return
14378 check.
14379
14380 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
14381
14382 * btrace.c (btrace_enable): Remove target_supports_btrace call.
14383 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
14384 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
14385 (linux_supports_pt, linux_supports_btrace): Remove.
14386 (linux_enable_bts): Call cpu_supports_bts.
14387 * nat/linux-btrace.h (linux_supports_btrace): Remove.
14388 * remote.c (remote_supports_btrace): Remove.
14389 (init_remote_ops): Remove remote_supports_btrace.
14390 * target-delegates.c: Regenerated.
14391 * target.c (target_supports_btrace): Remove.
14392 * target.h (target_ops) <to_supports_btrace>: Remove
14393 (target_supports_btrace): Remove.
14394 * x86-linux-nat.c (x86_linux_create_target): Remove
14395 linux_supports_btrace.
14396
14397 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
14398
14399 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
14400 btrace failed.
14401 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
14402 exception and use message in own exception.
14403
14404 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
14405
14406 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
14407 (perf_event_pt_event_type): Use gdb_file_up.
14408 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
14409 scoped_fd, and scoped_mmap.
14410
14411 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
14412
14413 * common/scoped_mmap.h: New.
14414 * unittests/scoped_mmap-selftest.c: New.
14415 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14416 unittests/scoped_mmap-selftest.c.
14417
14418 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
14419
14420 * common/scoped_fd.h: New.
14421 * unittests/scoped_fd-selftest.c: New.
14422 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14423 unittests/scoped_fd-selftest.c.
14424
14425 2018-02-09 Tom Tromey <tom@tromey.com>
14426
14427 * auto-load.c (auto_load_section_scripts): Use
14428 gdb::unique_xmalloc_ptr.
14429
14430 2018-02-09 Tom Tromey <tom@tromey.com>
14431
14432 * auto-load.c (execute_script_contents): Use std::string.
14433
14434 2018-02-09 Joel Brobecker <brobecker@adacore.com>
14435
14436 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
14437 Python function, rather than a new command.
14438
14439 2018-02-08 Tom Tromey <tom@tromey.com>
14440
14441 * solib.c (solib_find_1): Use std::string.
14442 (solib_bfd_fopen): Use unique_xmalloc_ptr.
14443
14444 2018-02-08 Tom Tromey <tom@tromey.com>
14445
14446 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
14447
14448 2018-02-08 Tom Tromey <tom@tromey.com>
14449
14450 * source.c (find_source_lines): Use gdb::def_vector.
14451
14452 2018-02-08 Tom Tromey <tom@tromey.com>
14453
14454 * macrocmd.c (struct temporary_macro_definition): New.
14455 (macro_define_command): Use temporary_macro_definition. Remove
14456 cleanups.
14457 (free_macro_definition_ptr): Remove.
14458
14459 2018-02-08 Tom Tromey <tom@tromey.com>
14460
14461 * macroexp.c (maybe_expand): Use std::string.
14462
14463 2018-02-08 Tom Tromey <tom@tromey.com>
14464
14465 * macroexp.c (struct macro_buffer): Add initializers for some
14466 members.
14467 (init_buffer, init_shared_buffer, free_buffer)
14468 (free_buffer_return_text): Remove.
14469 (macro_buffer): New constructors.
14470 (~macro_buffer): New destructor.
14471 (macro_buffer::set_shared): New method.
14472 (macro_buffer::resize_buffer, macro_buffer::appendc)
14473 (macro_buffer::appendmem): Now methods, not free functions.
14474 (set_token, append_tokens_without_splicing, stringify)
14475 (macro_stringify): Update.
14476 (gather_arguments): Change return type. Remove argc_p argument,
14477 add args_ptr argument. Use std::vector.
14478 (substitute_args): Remove argc argument. Accept std::vector.
14479 (expand): Update. Use std::vector.
14480 (scan, macro_expand, macro_expand_next): Update.
14481
14482 2018-02-08 Tom Tromey <tom@tromey.com>
14483
14484 * symtab.c (default_collect_symbol_completion_matches_break_on):
14485 Use unique_xmalloc_ptr.
14486 * macroscope.h: (sal_macro_scope, user_macro_scope)
14487 (default_macro_scope): Return unique_xmalloc_ptr.
14488 * macroscope.c (sal_macro_scope, user_macro_scope)
14489 (default_macro_scope): Return unique_xmalloc_ptr.
14490 * macroexp.h (macro_expand, macro_expand_once): Return
14491 unique_xmalloc_ptr.
14492 * macroexp.c (macro_expand, macro_expand_once): Return
14493 unique_xmalloc_ptr.
14494 * macrocmd.c (macro_expand_command, macro_expand_once_command)
14495 (info_macro_command, info_macros_command): Use
14496 unique_xmalloc_ptr.
14497 * compile/compile-c-support.c (write_macro_definitions): Use
14498 unique_xmalloc_ptr.
14499 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
14500
14501 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
14502
14503 * value.c (value_static_field): Assign field type instead of
14504 containing type when returning an optimized out value.
14505
14506 2018-02-06 Yao Qi <yao.qi@linaro.org>
14507
14508 * ft32-tdep.c (ft32_read_pc): Remove.
14509 (ft32_write_pc): Remove.
14510 (ft32_gdbarch_init): Update.
14511 * m32r-tdep.c (m32r_read_pc): Remove.
14512 (m32r_gdbarch_init): Update.
14513 * mep-tdep.c (mep_read_pc): Remove.
14514 (mep_gdbarch_init): Update.
14515 * microblaze-tdep.c (microblaze_write_pc): Remove.
14516 (microblaze_gdbarch_init): Update.
14517 * mn10300-tdep.c (mn10300_read_pc): Remove.
14518 (mn10300_write_pc): Remove.
14519 (mn10300_gdbarch_init): Update.
14520 * moxie-tdep.c (moxie_read_pc): Remove.
14521 (moxie_write_pc): Remove.
14522 (moxie_gdbarch_init): Update.
14523
14524 2018-02-06 Yao Qi <yao.qi@linaro.org>
14525
14526 * expprint.c (print_subexp_standard): Handle
14527 OP_F77_UNDETERMINED_ARGLIST.
14528 (dump_subexp_body_standard): Likewise.
14529
14530 2018-02-05 Alan Hayward <alan.hayward@arm.com>
14531
14532 * target-descriptions.c (tdesc_element_visitor) Add empty
14533 implementations.
14534 (tdesc_type): Move make_gdb_type from here.
14535 (tdesc_type_builtin): Likewise.
14536 (tdesc_type_vector): Likewise.
14537 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
14538 (make_gdb_type_struct): Move from tdesc_type_with_fields.
14539 (make_gdb_type_union): Likewise.
14540 (make_gdb_type_flags): Likewise.
14541 (make_gdb_type_enum): Likewise.
14542 (make_gdb_type): New function.
14543 (tdesc_register_type): Use static make_gdb_type.
14544
14545 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
14546
14547 * infcmd.c (default_print_one_register_info): Align natural-format
14548 column values consistently one under another.
14549 (pad_to_column): New function.
14550
14551 2018-02-05 Joel Brobecker <brobecker@adacore.com>
14552
14553 * dwarf2read.c (dwarf2_physname): Move commment.
14554
14555 2018-02-01 Leszek Swirski <leszeks@google.com>
14556
14557 * varobj.c (varobj_formatted_print_options): Allow recursive
14558 pretty printing if pretty printing is enabled.
14559
14560 2018-02-01 Leszek Swirski <leszeks@google.com>
14561
14562 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
14563 names after a structop as a filename.
14564
14565 2018-02-01 Yao Qi <yao.qi@linaro.org>
14566
14567 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
14568 (arm_record_coproc_data_proc): Likewise.
14569
14570 2018-02-01 Yao Qi <yao.qi@linaro.org>
14571
14572 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
14573
14574 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
14575
14576 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
14577 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
14578
14579 2018-01-31 Pedro Alves <palves@redhat.com>
14580
14581 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
14582 * inflow.c (child_terminal_save_inferior): Wrap reference to
14583 tcgetpgrp in HAVE_TERMIOS_H.
14584 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
14585 _WIN32.
14586 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
14587 always iterate over all inferiors.
14588 (gdbsim_cntrl_c): Adjust.
14589 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
14590
14591 2018-01-31 Joel Brobecker <brobecker@adacore.com>
14592
14593 * gdbtypes.c (lookup_array_range_type): Make sure the array's
14594 index type is objfile-owned if the element type is as well.
14595
14596 2018-01-31 Joel Brobecker <brobecker@adacore.com>
14597
14598 GDB 8.1 released.
14599
14600 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
14601
14602 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
14603 "features/s390x-linux64.c".
14604 (_initialize_s390_linux_tdep): Remove initialization of tdescs
14605 s390_linux32 and s390x_linux64.
14606 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
14607 default tdesc.
14608 * s390-tdep.c: Include "features/s390-linux32.c" and
14609 "features/s390x-linux64.c".
14610 (s390_tdesc_valid): Add check for tdesc_has_registers.
14611 (s390_gdbarch_init): Make sure there is always a valid tdesc.
14612 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
14613 tdesc_s390x_linux64.
14614 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
14615 tdesc_s390x_linux64 to...
14616 * s390-tdep.h: ...here.
14617
14618 2018-01-30 Pedro Alves <palves@redhat.com>
14619
14620 PR gdb/13211
14621 * config.in, configure: Regenerate.
14622 * configure.ac: Check for getpgid.
14623 * go32-nat.c (go32_pass_ctrlc): New.
14624 (go32_target): Install it.
14625 * inf-child.c (inf_child_target): Install
14626 child_terminal_save_inferior, child_pass_ctrlc and
14627 child_interrupt.
14628 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
14629 (inf_ptrace_target): No longer install it.
14630 * infcmd.c (interrupt_target_1): Adjust.
14631 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
14632 (child_interrupt): Declare.
14633 (inferior::terminal_state): New.
14634 * inflow.c (struct terminal_info): Update comments.
14635 (inferior_process_group): Delete.
14636 (terminal_is_ours): Delete.
14637 (gdb_tty_state): New.
14638 (child_terminal_init): Adjust.
14639 (is_gdb_terminal, sharing_input_terminal_1)
14640 (sharing_input_terminal): New functions.
14641 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
14642 Set the process's actual process group in the foreground if
14643 possible. Handle is_ours_for_output/is_ours distinction. Don't
14644 mark terminal as the inferior's if not sharing GDB's terminal.
14645 Don't check attach_flag.
14646 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
14647 pass down a target_terminal_state.
14648 (child_terminal_save_inferior): New, factored out from ...
14649 (child_terminal_ours_1): ... this. Handle
14650 target_terminal_state::is_ours_for_output.
14651 (child_interrupt, child_pass_ctrlc): New.
14652 (inflow_inferior_exit): Clear the inferior's terminal_state.
14653 (copy_terminal_info): Copy the inferior's terminal state.
14654 (_initialize_inflow): Remove reference to terminal_is_ours.
14655 * inflow.h (inferior_process_group): Delete.
14656 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
14657 * procfs.c (procfs_target): Don't install procfs_interrupt.
14658 (procfs_interrupt): Delete.
14659 * remote.c (remote_serial_quit_handler): Adjust.
14660 (remote_interrupt): Remove ptid parameter. Adjust.
14661 * target-delegates.c: Regenerate.
14662 * target.c: Include "terminal.h".
14663 (target_terminal::terminal_state): Rename to ...
14664 (target_terminal::m_terminal_state): ... this.
14665 (target_terminal::init): Adjust.
14666 (target_terminal::inferior): Adjust to per-inferior
14667 terminal_state.
14668 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
14669 (target_terminal::ours, target_terminal::ours_for_output): Use
14670 target_terminal_is_ours_kind.
14671 (target_interrupt): Remove ptid parameter. Adjust.
14672 (default_target_pass_ctrlc): Adjust.
14673 * target.h (target_ops::to_terminal_save_inferior): New field.
14674 (target_ops::to_interrupt): Remove ptid_t parameter.
14675 (target_interrupt): Remove ptid_t parameter. Update comment.
14676 (target_pass_ctrlc): Update comment.
14677 * target/target.h (target_terminal_state): New scoped enum,
14678 factored out of ...
14679 (target_terminal::terminal_state): ... here.
14680 (target_terminal::inferior): Update comments.
14681 (target_terminal::restore_inferior): New.
14682 (target_terminal::is_inferior, target_terminal::is_ours)
14683 (target_terminal::is_ours_for_output): Adjust.
14684 (target_terminal::scoped_restore_terminal_state): Adjust to
14685 rename, and call restore_inferior() instead of inferior().
14686 (target_terminal::scoped_restore_terminal_state::m_state): Change
14687 type.
14688 (target_terminal::terminal_state): Rename to ...
14689 (target_terminal::m_terminal_state): ... this and change type.
14690
14691 2018-01-30 Pedro Alves <palves@redhat.com>
14692
14693 * linux-nat.c (wait_for_signal): New function.
14694 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
14695 directly.
14696 (async_terminal_is_ours)
14697 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
14698 (linux_nat_add_target): Don't override
14699 to_terminal_inferior/to_terminal_ours.
14700
14701 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
14702
14703 * remote.c (remote_follow_fork): Don't call "detach_inferior".
14704
14705 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
14706
14707 * dwarf2read.c (free_dwo_files): Add forward-declaration.
14708 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
14709 dwarf2_per_objfile_free here.
14710 (dwarf2_per_objfile_free): Remove.
14711 (_initialize_dwarf2_read): Don't register
14712 dwarf2_per_objfile_free as a registry cleanup.
14713
14714 2018-01-27 Eli Zaretskii <eliz@gnu.org>
14715
14716 Avoid compilation errors in MinGW native builds
14717
14718 The error is triggered by including python-internal.h, and the
14719 error message is:
14720
14721 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
14722 from build-gnulib/import/math.h:27,
14723 from d:/usr/Python26/include/pyport.h:235,
14724 from d:/usr/Python26/include/Python.h:58,
14725 from python/python-internal.h:94,
14726 from python/py-arch.c:24:
14727 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
14728 using ::hypot;
14729 ^~~~~
14730
14731 This happens because Python headers define 'hypot' to expand t
14732 '_hypot' in the Windows builds.
14733 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
14734 'hypoth'. This avoids a compilation error.
14735
14736 2018-01-26 Alan Hayward <alan.hayward@arm.com>
14737
14738 * MAINTAINERS (Write After Approval): Fix ordering.
14739
14740 2018-01-26 Alan Hayward <alan.hayward@arm.com>
14741
14742 * MAINTAINERS (Write After Approval): Add Alan Hayward.
14743
14744 2018-01-26 Alan Modra <amodra@gmail.com>
14745
14746 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
14747 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
14748 Remove nop. Make const. Comment.
14749 (powerpc32_plt_stub_so_2): New.
14750 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
14751 Correct count. Update uses.
14752 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
14753 Move common code reading PLT entry word. Correct
14754 powerpc32_plt_stub PLT address calculation.
14755 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
14756 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
14757 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
14758 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
14759 (ppc64_standard_linkage8): Likewise.
14760 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
14761 Correct insns description.
14762 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
14763
14764 2018-01-24 Pedro Alves <palves@redhat.com>
14765
14766 GCC PR libstdc++/83906
14767 * gdbtypes.c (operator==(const dynamic_prop &,
14768 const dynamic_prop &)): New.
14769 (operator==(const range_bounds &, const range_bounds &)): New.
14770 (check_types_equal): Use them instead of memcmp.
14771 * gdbtypes.h (operator==(const dynamic_prop &,
14772 const dynamic_prop &)): Declare.
14773 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
14774 (operator==(const range_bounds &, const range_bounds &)): Declare.
14775 (operator!=(const range_bounds &, const range_bounds &)): Declare.
14776
14777 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14778
14779 * s390-linux-tdep.c (s390_record_address_mask)
14780 (s390_record_calc_disp_common, s390_record_calc_disp)
14781 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
14782 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
14783 (s390_process_record): Move to s390-tdep.c.
14784 (s390_linux_init_abi_any): Adjust.
14785 * s390-tdep.c (s390_record_address_mask)
14786 (s390_record_calc_disp_common, s390_record_calc_disp)
14787 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
14788 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
14789 (s390_process_record): Moved from s390-linux-tdep.c
14790 (s390_gdbarch_init): Adjust.
14791
14792 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14793
14794 * s390-linux-nat.c (s390-tdep.h): New include.
14795 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
14796 (HFILES_NO_SRCDIR): Add s390-tdep.h.
14797 (ALLDEPFILES): Add s390-tdep.c.
14798 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
14799 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
14800 * s390-tdep.h: ...this. New file.
14801 * s390-linux-tdep.c (s390-tdep.h): New include.
14802 (_initialize_s390_tdep): Rename to...
14803 (_initialize_s390_linux_tdep): ...this and adjust.
14804 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
14805 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
14806 s390-tdep.h.
14807 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
14808 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
14809 (s390_is_partial_instruction, s390_software_single_step)
14810 (is_non_branch_ril, s390_displaced_step_copy_insn)
14811 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
14812 (s390_prologue_data, s390_addr, s390_store, s390_load)
14813 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
14814 (s390_register_call_saved, s390_guess_tracepoint_registers)
14815 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
14816 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
14817 (s390_pseudo_register_name, s390_pseudo_register_type)
14818 (s390_pseudo_register_read, s390_pseudo_register_write)
14819 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
14820 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
14821 (s390_addr_bits_remove, s390_address_class_type_flags)
14822 (s390_address_class_type_flags_to_name)
14823 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
14824 (s390_function_arg_float, s390_function_arg_vector)
14825 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
14826 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
14827 (s390_frame_align, s390_register_return_value, s390_return_value)
14828 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
14829 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
14830 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
14831 (s390_trad_frame_prev_register, s390_unwind_cache)
14832 (s390_prologue_frame_unwind_cache)
14833 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
14834 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
14835 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
14836 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
14837 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
14838 (s390_frame_base_address, s390_local_base_address)
14839 (s390_frame_base, s390_gcc_target_options)
14840 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
14841 (s390_validate_reg_range, s390_tdesc_valid)
14842 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
14843 * s390-tdep.c: ...this. New file.
14844
14845 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14846
14847 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
14848 (s390_process_record, s390_gdbarch_tdep_alloc)
14849 (s390_linux_init_abi_any): Use/set new hook.
14850
14851 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14852
14853 * s390-linux-tdep.c (osabi.h): New include.
14854 (s390_linux_init_abi_31, s390_linux_init_abi_64)
14855 (s390_linux_init_abi_any): New functions.
14856 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
14857
14858 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14859
14860 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
14861 tdesc_has_registers check
14862
14863 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14864
14865 * s390-linux-tdep.c (s390_tdesc_valid): New function.
14866 (s390_validate_reg_range): New macro.
14867 (s390_gdbarch_init): Adjust.
14868
14869 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14870
14871 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
14872 (s390_gdbarch_tdep_alloc): Adjust.
14873 (s390_gdbarch_init): Adjust.
14874
14875 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14876
14877 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
14878 <have_tdb>: Change type to bool.
14879 (s390_gdbarch_tdep_alloc): Adjust.
14880 (s390_gdbarch_init): Adjust.
14881
14882 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14883
14884 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
14885 (gdbarch_tdep) <have_upper, have_vx>: New fields.
14886 (s390_gdbarch_tdep_alloc): New function.
14887 (s390_gdbarch_init): Allocate tdep at start and use its fields
14888 instead of separate variables.
14889
14890 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14891
14892 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
14893 when looking for cached gdbarch and add comment for remaining.
14894
14895 2018-01-22 Pedro Alves <palves@redhat.com>
14896 Sergio Durigan Junior <sergiodj@redhat.com>
14897
14898 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
14899 case.
14900
14901 2018-01-22 Maciej W. Rozycki <macro@mips.com>
14902
14903 * MAINTAINERS: Update my company e-mail address.
14904
14905 2018-01-22 Yao Qi <yao.qi@linaro.org>
14906
14907 * regcache.c (cooked_write_test): New function.
14908 (_initialize_regcache): Register the test.
14909
14910 2018-01-22 Yao Qi <yao.qi@linaro.org>
14911
14912 * ia64-tdep.c (ia64_pseudo_register_read): Call
14913 regcache->cooked_read instead of regcache_cooked_read_unsigned.
14914 * m32c-tdep.c (m32c_cat_read): Likewise.
14915 (m32c_r3r2r1r0_read): Likewise.
14916 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
14917 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
14918
14919 2018-01-22 Yao Qi <yao.qi@linaro.org>
14920
14921 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
14922 method raw_read instead of regcache_raw_read.
14923 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
14924 * arm-tdep.c (arm_neon_quad_read): Likewise.
14925 * avr-tdep.c (avr_pseudo_register_read): Likewise.
14926 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
14927 * frv-tdep.c (frv_pseudo_register_read): Likewise.
14928 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
14929 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
14930 (i386_pseudo_register_read_into_value): Likewise.
14931 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
14932 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
14933 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
14934 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
14935 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
14936 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
14937 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
14938 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
14939 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
14940
14941 2018-01-22 Yao Qi <yao.qi@linaro.org>
14942
14943 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
14944 * configure.tgt: Remove target mt.
14945 * mt-tdep.c: Remove.
14946 * regcache.c (cooked_read_test): Remove the check for mt.
14947
14948 2018-01-22 Yao Qi <yao.qi@linaro.org>
14949
14950 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
14951 instead of gdbarch_pseudo_register_read_value.
14952
14953 2018-01-22 Joel Brobecker <brobecker@adacore.com>
14954
14955 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
14956 language is Ada.
14957
14958 2018-01-22 Joel Brobecker <brobecker@adacore.com>
14959
14960 * linespec.c (create_sals_line_offset): Remove code that preserved
14961 the symtab_and_line's line number.
14962
14963 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
14964
14965 * varobj.c (varobj_create): Don't set valid_block when creating a
14966 floating varobj.
14967
14968 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
14969
14970 * varobj.c (varobj_create): Remove out of date comment.
14971
14972 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
14973
14974 PR mi/20395
14975 * ada-exp.y (write_var_from_sym): Pass extra parameter when
14976 updating innermost block.
14977 * parse.c (innermost_block_tracker::update): Take extra type
14978 parameter, and check types match before updating innermost block.
14979 (write_dollar_variable): Update innermost block for registers.
14980 * parser-defs.h (enum innermost_block_tracker_type): New enum.
14981 (innermost_block_tracker::innermost_block_tracker): Initialise
14982 m_types member.
14983 (innermost_block_tracker::reset): Take type parameter.
14984 (innermost_block_tracker::update): Take type parameter, and pass
14985 type through as needed.
14986 (innermost_block_tracker::m_types): New member.
14987 * varobj.c (varobj_create): Pass type when reseting innermost
14988 block.
14989
14990 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
14991
14992 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
14993 * ada-lang.c (resolve_subexp): Likewise.
14994 * breakpoint.c (set_breakpoint_condition) Likewise.
14995 (watch_command_1) Likewise.
14996 * c-exp.y (variable): Likewise.
14997 * d-exp.y (PrimaryExpression): Likewise.
14998 * f-exp.y (variable): Likewise.
14999 * go-exp.y (variable): Likewise.
15000 * m2-exp.y (variable): Likewise.
15001 * objfiles.c (objfile::~objfile): Likewise.
15002 * p-exp.y (variable): Likewise.
15003 * parse.c (innermost_block): Change type.
15004 * parser-defs.h (class innermost_block_tracker): New.
15005 (innermost_block): Change to innermost_block_tracker.
15006 * printcmd.c (display_command): Switch to innermost_block API.
15007 (do_one_display): Likewise.
15008 * rust-exp.y (do_one_display): Likewise.
15009 * symfile.c (clear_symtab_users): Likewise.
15010 * varobj.c (varobj_create): Switch to innermost_block API, replace
15011 use of innermost_block with block stored on varobj object.
15012
15013 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
15014
15015 * expression.h (innermost_block): Remove declaration.
15016 * varobj.c: Add 'parser-defs.h' include.
15017
15018 2018-01-19 Tom Tromey <tom@tromey.com>
15019
15020 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
15021 symbols in the static and global blocks.
15022
15023 2018-01-19 James Clarke <jrtc27@jrtc27.com>
15024
15025 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
15026 gdb_ptrace.h, and move including gdb_wait.h ...
15027 * nat/linux-ptrace.h: ... to here.
15028
15029 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
15030
15031 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
15032 inf_ptrace_detach_success.
15033 (inf_ptrace_detach_success): Add inferior parameter, use it
15034 instead of inferior_ptid, pass it to detach_inferior.
15035 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
15036 parameter.
15037 * inferior.c (detach_inferior): Add overload that takes an
15038 inferior object.
15039 * inferior.h (detach_inferior): Likewise.
15040 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
15041 use inferior_ptid, adjust call to inf_ptrace_detach_success.
15042 * linux-thread-db.c (thread_db_detach): Use inf parameter.
15043
15044 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
15045
15046 * target.h (struct target_ops) <to_detach>: Add inferior
15047 parameter.
15048 (target_detach): Likewise.
15049 * target.c (dispose_inferior): Pass inferior down.
15050 (target_detach): Pass inferior down. Assert that it is equal to
15051 the current inferior.
15052 * aix-thread.c (aix_thread_detach): Pass inferior down.
15053 * corefile.c (core_file_command): Pass current_inferior() down.
15054 * corelow.c (core_detach): Add inferior parameter.
15055 * darwin-nat.c (darwin_detach): Likewise.
15056 * gnu-nat.c (gnu_detach): Likewise.
15057 * inf-ptrace.c (inf_ptrace_detach): Likewise.
15058 * infcmd.c (detach_command): Pass current_inferior() down to
15059 target_detach.
15060 * infrun.c (follow_fork_inferior): Pass parent_inf to
15061 target_detach.
15062 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
15063 target_detach.
15064 * linux-nat.c (linux_nat_detach): Add inferior parameter.
15065 * linux-thread-db.c (thread_db_detach): Likewise.
15066 * nto-procfs.c (procfs_detach): Likewise.
15067 * procfs.c (procfs_detach): Likewise.
15068 * record.c (record_detach): Likewise.
15069 * record.h (struct inferior): Forward-declare.
15070 (record_detach): Add inferior parameter.
15071 * remote-sim.c (gdbsim_detach): Likewise.
15072 * remote.c (remote_detach_1): Likewise.
15073 (remote_detach): Likewise.
15074 (extended_remote_detach): Likewise.
15075 * sol-thread.c (sol_thread_detach): Likewise.
15076 * target-debug.h (target_debug_print_inferior_p): New macro.
15077 * target-delegates.c: Re-generate.
15078 * top.c (kill_or_detach): Pass inferior down to target_detach.
15079 * windows-nat.c (windows_detach): Add inferior parameter.
15080
15081 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
15082
15083 * target.h (struct target_ops) <to_detach>: Remove args
15084 parameter.
15085 (target_detach): Likewise.
15086 * target.c (dispose_inferior): Adjust.
15087 (target_detach): Remove args parameter, adjust.
15088 * aix-thread.c (aix_thread_detach): Adjust.
15089 * corefile.c (core_file_command): Adjust.
15090 * corelow.c (core_detach): Adjust.
15091 * darwin-nat.c (darwin_detach): Adjust.
15092 * gnu-nat.c (gnu_detach): Adjust.
15093 * inf-ptrace.c (inf_ptrace_detach): Adjust.
15094 * infcmd.c (detach_command): Adjust
15095 * infrun.c (follow_fork_inferior): Adjust.
15096 (handle_vfork_child_exec_or_exit): Adjust.
15097 * linux-fork.c (linux_fork_detach): Remove args parameter.
15098 * linux-fork.h (linux_fork_detach): Likewise.
15099 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
15100 * linux-thread-db.c (thread_db_detach): Likewise.
15101 * nto-procfs.c (procfs_detach): Likewise.
15102 * procfs.c (procfs_detach): Likewise.
15103 (do_detach): Remove signo parameter.
15104 * record.c (record_detach): Remove args parameter.
15105 * record.h (record_detach): Likewise.
15106 * remote-sim.c (gdbsim_detach): Likewise.
15107 * remote.c (remote_detach_1): Likewise.
15108 (remote_detach): Likewise.
15109 (extended_remote_detach): Likewise.
15110 * sol-thread.c (sol_thread_detach): Likewise.
15111 * target-delegates.c: Re-generate.
15112 * top.c (struct qt_args) <args>: Remove field.
15113 (kill_or_detach): Don't pass args.
15114 (quit_force): Don't set args.
15115 * windows-nat.c (windows_detach): Remove args parameter.
15116
15117 2018-01-19 Yao Qi <yao.qi@linaro.org>
15118
15119 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
15120 (arm_linux_init_abi): Install it.
15121
15122 2018-01-19 Yao Qi <yao.qi@linaro.org>
15123
15124 * osabi.c (gdb_osabi_names): Extend the regexp for
15125 arm-linux-gnueabihf.
15126
15127 2018-01-18 Yao Qi <yao.qi@linaro.org>
15128
15129 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
15130 m_abbrevs.
15131 (abbrev_table::add_abbrev): Update.
15132 (abbrev_table::lookup_abbrev): Update.
15133
15134 2018-01-18 Yao Qi <yao.qi@linaro.org>
15135
15136 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
15137
15138 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
15139
15140 * compile/compile.c (compile_to_object): Convert "triplet_rx"
15141 to "std::string".
15142
15143 2018-01-17 Tom Tromey <tom@tromey.com>
15144
15145 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
15146
15147 2018-01-17 Tom Tromey <tom@tromey.com>
15148
15149 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
15150 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
15151 (create_array_type_with_stride): Update.
15152 * dwarf2read.c (set_die_type): Update.
15153
15154 2018-01-17 Tom Tromey <tom@tromey.com>
15155
15156 * dwarf2read.c (delayed_method_info): Remove typedef.
15157 (dwarf2_cu::method_info): Now a std::vector.
15158 (add_to_method_list): Update.
15159 (free_delayed_list): Remove.
15160 (compute_delayed_physnames): Update.
15161 (process_full_comp_unit, process_full_type_unit): Clear the method
15162 list. Remove cleanups.
15163 (psymtab_include_file_name): Add name_holder parameter. Use
15164 unique_xmalloc_ptr.
15165 (dwarf_decode_lines): Update.
15166
15167 2018-01-17 Tom Tromey <tom@tromey.com>
15168 Simon Marchi <simon.marchi@ericsson.com>
15169
15170 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
15171 (dwarf2_per_objfile::free_cached_comp_units)
15172 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
15173 (init_cutu_and_read_dies_no_follow): Update.
15174 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
15175 (dwarf2_cu::~dwarf2_cu): New.
15176 (free_heap_comp_unit, free_stack_comp_unit): Remove.
15177 (age_cached_comp_units, free_one_cached_comp_unit): Update.
15178
15179 2018-01-17 Tom Tromey <tom@tromey.com>
15180 Simon Marchi <simon.marchi@ericsson.com>
15181
15182 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
15183 (struct die_reader_specs) <abbrev_table>: New member.
15184 (struct abbrev_table): Add constructor.
15185 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
15186 <abbrev_obstack>: Now an auto_obstack.
15187 (abbrev_table_up): New typedef.
15188 (init_cu_die_reader): Add abbrev_table parameter.
15189 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
15190 Add result_dwo_abbrev_table.
15191 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
15192 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
15193 Update.
15194 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
15195 parameter.
15196 (skip_children): Update.
15197 (abbrev_table::alloc_abbrev): Rename from
15198 abbrev_table_alloc_abbrev.
15199 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
15200 (abbrev_table::lookup_abbrev): Rename from
15201 abbrev_table_lookup_abbrev.
15202 (abbrev_table_read_table): Return abbrev_table_up.
15203 (abbrev_table_free, abbrev_table_free_cleanup)
15204 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
15205 (load_partial_dies): Update.
15206
15207 2018-01-17 Tom Tromey <tom@tromey.com>
15208
15209 * dwarf2read.c (dwarf2_compute_name): Update comment.
15210 (read_func_scope, read_variable): Update.
15211 (new_symbol): Remove.
15212 (new_symbol_full): Rename to new_symbol.
15213
15214 2018-01-17 Mike Gulick <mgulick@mathworks.com>
15215
15216 PR gdb/16577
15217 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
15218 a warning instead of throwing an error, set section size to 0 and return
15219 NULL.
15220 * gdb_bfd.h (gdb_bfd_map_section): Update description.
15221
15222 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
15223
15224 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
15225 std::string.
15226 (linux_ptrace_attach_fail_reason_string): Likewise.
15227 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
15228 Likewise.
15229 (linux_ptrace_attach_fail_reason_string): Likewise.
15230 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
15231
15232 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
15233
15234 * linux-nat.c (linux_nat_attach): Remove xstrdup.
15235
15236 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
15237
15238 PR gdb/21559
15239 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
15240 checking for fs_base/gs_base fields in struct user_regs_struct.
15241 * configure: Regenerate.
15242
15243 2018-01-17 Yao Qi <yao.qi@linaro.org>
15244
15245 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
15246 function.
15247 (aarch64_linux_init_abi): Install it to gdbarch hook
15248 gcc_target_options.
15249
15250 2018-01-15 Pedro Alves <palves@redhat.com>
15251
15252 * common/signals-state-save-restore.c
15253 (save_original_signals_state): Fix typos.
15254
15255 2017-01-12 Tom Tromey <tom@tromey.com>
15256 Sergio Durigan Junior <sergiodj@redhat.com>
15257
15258 * Makefile.in (install-only): Install gdb-add-index.
15259
15260 2018-01-12 John Baldwin <jhb@FreeBSD.org>
15261
15262 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
15263
15264 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
15265
15266 * infrun.c (keep_going_pass_signal): Clear step-over info when
15267 insert_breakpoints fails.
15268
15269 2018-01-11 Pedro Alves <palves@redhat.com>
15270
15271 PR gdb/22583
15272 * infrun.c (resume): Rename to ...
15273 (resume_1): ... this.
15274 (resume): Reimplement as wrapper around resume_1.
15275
15276 2018-01-11 Pedro Alves <palves@redhat.com>
15277
15278 PR remote/22597
15279 * remote.c (remote_parse_stop_reply): Default to the last-set
15280 general thread instead of to 'magic_null_ptid'.
15281
15282 2018-01-10 Pedro Alves <palves@redhat.com>
15283
15284 * language.h (language_get_symbol_name_matcher): Rename ...
15285 (get_symbol_name_matcher): ... this.
15286 * language.c (language_get_symbol_name_matcher): Ditto.
15287 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
15288 callers adjusted.
15289
15290 2018-01-10 Pedro Alves <palves@redhat.com>
15291
15292 PR gdb/22670
15293 * dwarf2read.c
15294 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
15295 Adjust to use language_get_symbol_name_matcher instead of
15296 language_defn::la_get_symbol_name_matcher.
15297 * language.c (language_get_symbol_name_matcher): If in Ada mode
15298 and the lookup name is a verbatim match, return Ada's matcher.
15299 * language.h (language_get_symbol_name_matcher): Adjust comment.
15300 (ada_lookup_name_info::verbatim_p):: New method.
15301
15302 2018-01-10 Pedro Alves <palves@redhat.com>
15303
15304 PR gdb/22670
15305 * ada-lang.c (ada_collect_symbol_completion_matches): If the
15306 minsym's language is language_auto or language_cplus, pass down
15307 language_ada instead.
15308 * symtab.c (compare_symbol_name): Don't frob symbol language here.
15309
15310 2018-01-10 Pedro Alves <palves@redhat.com>
15311
15312 PR gdb/22670
15313 * minsyms.c (linkage_name_str): New function.
15314 (iterate_over_minimal_symbols): Use it.
15315
15316 2018-01-09 John Baldwin <jhb@FreeBSD.org>
15317
15318 * NEWS: Document that 'info proc' now works on FreeBSD.
15319
15320 2018-01-09 John Baldwin <jhb@FreeBSD.org>
15321
15322 * configure.ac: Check for kinfo_getfile in libutil.
15323 * configure: Regenerate.
15324 * config.in: Regenerate.
15325 * fbsd-nat.c: Include "fbsd-tdep.h".
15326 (fbsd_fetch_cmdline): New.
15327 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
15328 rather than calling error.
15329 (fbsd_info_proc): New.
15330 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
15331 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
15332 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
15333
15334 2018-01-09 John Baldwin <jhb@FreeBSD.org>
15335
15336 * fbsd-nat.c (struct free_deleter): Remove.
15337 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
15338
15339 2018-01-09 John Baldwin <jhb@FreeBSD.org>
15340
15341 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
15342 NULL for an empty pathname.
15343
15344 2018-01-09 John Baldwin <jhb@FreeBSD.org>
15345
15346 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
15347 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
15348 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
15349 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
15350 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
15351 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
15352 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
15353 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
15354 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
15355 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
15356 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
15357 (fbsd_core_fetch_timeval, fbsd_print_sigset)
15358 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
15359 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
15360 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
15361
15362 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
15363
15364 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
15365 (gnu_xfer_auxv): New function.
15366 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
15367 TARGET_OBJECT_AUXV.
15368
15369 2018-01-08 Yao Qi <yao.qi@linaro.org>
15370 Simon Marchi <simon.marchi@ericsson.com>
15371
15372 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
15373 common/selftest.c.
15374 (COMMON_OBS): Remove selftest.o.
15375 * configure.ac: Append selftest-arch.c and common/selftest.c to
15376 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
15377 * configure: Re-generated.
15378 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
15379 GDB_SELF_TEST.
15380 (maintenance_info_selftests): Likewise.
15381
15382 2018-01-08 Xavier Roirand <roirand@adacore.com>
15383
15384 * ada-valprint.c (val_print_packed_array_elements): Use
15385 proper number of elements when printing an array indexed
15386 by an enumeration type.
15387
15388 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
15389
15390 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
15391 (dw2_get_file_names_reader): Adjust.
15392 (lookup_dwo_signatured_type): Adjust.
15393 (lookup_dwp_signatured_type): Adjust.
15394 (lookup_signatured_type): Adjust.
15395 (create_type_unit_group): Adjust.
15396 (get_type_unit_group): Adjust.
15397 (process_psymtab_comp_unit_reader): Adjust.
15398 (build_type_psymtabs_reader): Adjust.
15399 (scan_partial_symbols): Adjust.
15400 (add_partial_symbol): Adjust.
15401 (add_partial_subprogram): Adjust.
15402 (peek_die_abbrev): Adjust.
15403 (fixup_go_packaging): Adjust.
15404 (process_imported_unit_die): Adjust.
15405 (dwarf2_compute_name): Adjust.
15406 (dwarf2_physname): Adjust.
15407 (read_import_statement): Adjust.
15408 (handle_DW_AT_stmt_list): Adjust.
15409 (read_file_scope): Adjust.
15410 (read_func_scope): Adjust.
15411 (read_lexical_block_scope): Adjust.
15412 (read_call_site_scope): Adjust.
15413 (read_variable): Adjust.
15414 (dwarf2_rnglists_process): Adjust.
15415 (dwarf2_ranges_process): Adjust.
15416 (dwarf2_ranges_read): Adjust.
15417 (dwarf2_get_pc_bounds): Adjust.
15418 (dwarf2_record_block_ranges): Adjust.
15419 (dwarf2_add_field): Adjust.
15420 (dwarf2_add_member_fn): Adjust.
15421 (read_structure_type): Adjust.
15422 (process_structure_scope): Adjust.
15423 (read_enumeration_type): Adjust.
15424 (read_array_type): Adjust.
15425 (mark_common_block_symbol_computed): Adjust.
15426 (read_common_block): Adjust.
15427 (read_namespace_type): Adjust.
15428 (read_namespace): Adjust.
15429 (read_module_type): Adjust.
15430 (read_tag_pointer_type): Adjust.
15431 (read_tag_ptr_to_member_type): Adjust.
15432 (read_tag_string_type): Adjust.
15433 (read_subroutine_type): Adjust.
15434 (read_typedef): Adjust.
15435 (read_base_type): Adjust.
15436 (attr_to_dynamic_prop): Adjust.
15437 (read_subrange_type): Adjust.
15438 (read_unspecified_type): Adjust.
15439 (dwarf2_read_abbrevs): Adjust.
15440 (load_partial_dies): Adjust.
15441 (read_partial_die): Adjust.
15442 (find_partial_die): Adjust.
15443 (guess_partial_die_structure_name): Adjust.
15444 (fixup_partial_die): Adjust.
15445 (read_attribute_value): Adjust.
15446 (read_addr_index): Adjust.
15447 (read_addr_index_from_leb128): Adjust.
15448 (read_str_index): Adjust.
15449 (dwarf2_string_attr): Adjust.
15450 (get_debug_line_section): Adjust.
15451 (dwarf_decode_line_header): Adjust.
15452 (lnp_state_machine::check_line_address): Adjust.
15453 (dwarf_decode_lines_1): Adjust.
15454 (dwarf_decode_lines): Adjust.
15455 (dwarf2_start_symtab): Adjust.
15456 (var_decode_location): Adjust.
15457 (new_symbol_full): Adjust.
15458 (dwarf2_const_value_data): Adjust.
15459 (dwarf2_const_value_attr): Adjust.
15460 (dwarf2_const_value): Adjust.
15461 (die_type): Adjust.
15462 (die_containing_type): Adjust.
15463 (build_error_marker_type): Adjust.
15464 (lookup_die_type): Adjust.
15465 (guess_full_die_structure_name): Adjust.
15466 (anonymous_struct_prefix): Adjust.
15467 (determine_prefix): Adjust.
15468 (dwarf2_name): Adjust.
15469 (follow_die_ref_or_sig): Adjust.
15470 (follow_die_offset): Adjust.
15471 (follow_die_ref): Adjust.
15472 (follow_die_sig_1): Adjust.
15473 (follow_die_sig): Adjust.
15474 (get_signatured_type): Adjust.
15475 (get_DW_AT_signature_type): Adjust.
15476 (decode_locdesc): Adjust.
15477 (dwarf_decode_macros): Adjust.
15478 (cu_debug_loc_section): Adjust.
15479 (fill_in_loclist_baton): Adjust.
15480 (dwarf2_symbol_mark_computed): Adjust.
15481 (init_one_comp_unit): Don't assign
15482 dwarf2_cu::dwarf2_per_objfile.
15483 (set_die_type): Adjust.
15484
15485 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
15486
15487 * dwarf2read.c (struct mapped_debug_names): Add constructor.
15488 <dwarf2_per_objfile>: New field.
15489 (dwarf2_per_objfile): Remove global.
15490 (get_dwarf2_per_objfile): New function.
15491 (set_dwarf2_per_objfile): New function.
15492 (dwarf2_build_psymtabs_hard): Change objfile parameter to
15493 dwarf2_per_objfile.
15494 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
15495 (read_abbrev_offset): Likewise.
15496 (read_indirect_string): Likewise.
15497 (read_indirect_line_string): Likewise.
15498 (read_indirect_string_at_offset): Likewise.
15499 (read_indirect_string_from_dwz): Likewise.
15500 (dwarf2_find_containing_comp_unit): Change objfile parameter to
15501 dwarf2_per_objfile.
15502 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
15503 (create_all_comp_units): Change objfile parameter to
15504 dwarf2_per_objfile.
15505 (create_all_type_units): Likewise.
15506 (process_queue): Add dwarf2_per_objfile parameter.
15507 (read_and_check_comp_unit_head): Likewise.
15508 (lookup_dwo_unit_in_dwp): Likewise.
15509 (get_dwp_file): Likewise.
15510 (process_cu_includes): Likewise.
15511 (struct free_dwo_file_cleanup_data): New struct.
15512 (dwarf2_has_info): Use get_dwarf2_per_objfile and
15513 set_dwarf2_per_objfile.
15514 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
15515 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
15516 context, adjust calls.
15517 (dw2_instantiate_symtab): Likewise.
15518 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
15519 (dw2_get_cu): Likewise.
15520 (create_cu_from_index_list): Change objfile parameter to
15521 dwarf2_per_objfile.
15522 (create_cus_from_index_list): Get dwarf2_per_objfile from
15523 context, adjust calls.
15524 (create_cus_from_index): Likewise.
15525 (create_signatured_type_table_from_index): Change objfile
15526 parameter to dwarf2_per_objfile.
15527 (create_signatured_type_table_from_debug_names): Change objfile
15528 parameter to dwarf2_per_objfile.
15529 (create_addrmap_from_index): Likewise.
15530 (create_addrmap_from_aranges): Likewise.
15531 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
15532 (dw2_setup): Remove.
15533 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
15534 context.
15535 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
15536 get_dwarf2_per_objfile.
15537 (dw2_forget_cached_source_info): Likewise.
15538 (dw2_map_symtabs_matching_filename): Likewise.
15539 (struct dw2_symtab_iterator) <index>: Remove.
15540 <dwarf2_per_objfile>: New field.
15541 (dw2_symtab_iter_init): Replace index parameter with
15542 dwarf2_per_objfile.
15543 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
15544 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
15545 (dw2_print_stats): Likewise.
15546 (dw2_dump): Likewise.
15547 (dw2_expand_symtabs_for_function): Likewise.
15548 (dw2_expand_all_symtabs): Likewise.
15549 (dw2_expand_symtabs_with_fullname): Likewise.
15550 (dw2_expand_marked_cus): Replace index and objfile parameters
15551 with dwarf2_per_objfile.
15552 (dw_expand_symtabs_matching_file_matcher): Add
15553 dwarf2_per_objfile parameter and adjust calls.
15554 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
15555 adjust calls.
15556 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
15557 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
15558 adjust calls.
15559 (create_cus_from_debug_names_list): Replace objfile parameter
15560 with dwarf2_per_objfile and adjust calls.
15561 (create_cus_from_debug_names): Likewise.
15562 (dwarf2_read_debug_names): Likewise.
15563 (mapped_debug_names::namei_to_name): Adjust call.
15564 (dw2_debug_names_iterator::next): Likewise.
15565 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
15566 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
15567 (dw2_debug_names_dump): Likewise.
15568 (dw2_debug_names_expand_symtabs_for_function): Likewise.
15569 (dw2_debug_names_expand_symtabs_matching): Likewise.
15570 (dwarf2_initialize_objfile): Likewise.
15571 (dwarf2_build_psymtabs): Likewise.
15572 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
15573 this_cu.
15574 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
15575 (read_and_check_comp_unit_head): Likewise.
15576 (read_abbrev_offset): Likewise.
15577 (create_debug_type_hash_table): Likewise.
15578 (create_debug_types_hash_table): Likewise.
15579 (create_all_type_units): Replace objfile parameter with
15580 dwarf2_per_objfile.
15581 (add_type_unit): Add dwarf2_per_objfile parameter.
15582 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
15583 with dwarf2_per_objfile.
15584 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
15585 (lookup_dwp_signatured_type): Likewise.
15586 (lookup_signatured_type): Likewise.
15587 (read_cutu_die_from_dwo): Likewise.
15588 (init_tu_and_read_dwo_dies): Likewise.
15589 (init_cutu_and_read_dies): Likewise.
15590 (init_cutu_and_read_dies_no_follow): Likewise.
15591 (allocate_type_unit_groups_table): Add objfile parameter.
15592 (create_type_unit_group): Use dwarf2_per_objfile from cu.
15593 (get_type_unit_group): Likewise.
15594 (process_psymtab_comp_unit): Update call.
15595 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
15596 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
15597 (print_tu_stats): Likewise.
15598 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
15599 in void* parameter.
15600 (build_type_psymtabs): Change objfile parameter to
15601 dwarf2_per_objfile.
15602 (process_skeletonless_type_unit): Use dwarf2_per_objfile
15603 passed in void* parameter.
15604 (process_skeletonless_type_units): Change objfile parameter to
15605 dwarf2_per_objfile.
15606 (set_partial_user): Likewise.
15607 (dwarf2_build_psymtabs_hard): Likewise.
15608 (read_comp_units_from_section): Likewise.
15609 (create_all_comp_units): Likewise.
15610 (scan_partial_symbols): Update calls.
15611 (add_partial_symbol): Likewise.
15612 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
15613 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
15614 (process_queue): Add dwarf2_per_objfile parameter.
15615 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
15616 (compute_compunit_symtab_includes): Likewise.
15617 (process_cu_includes): Add dwarf2_per_objfile parameter.
15618 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
15619 (process_full_type_unit): Likewise.
15620 (process_imported_unit_die): Update call.
15621 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
15622 (read_file_scope): Likewise.
15623 (allocate_dwo_file_hash_table): Add objfile parameter.
15624 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
15625 (create_cus_hash_table): Likewise.
15626 (create_dwp_hash_table): Likewise.
15627 (create_dwo_unit_in_dwp_v1): Likewise.
15628 (create_dwp_v2_section): Likewise.
15629 (create_dwo_unit_in_dwp_v2): Likewise.
15630 (lookup_dwo_unit_in_dwp): Likewise.
15631 (try_open_dwop_file): Likewise.
15632 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
15633 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
15634 cleanup to include a reference to dwarf2_per_objfile.
15635 (open_dwp_file): Add dwarf2_per_objfile parameter.
15636 (open_and_init_dwp_file): Likewise.
15637 (get_dwp_file): Likewise.
15638 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
15639 (queue_and_load_all_dwo_tus): Update call.
15640 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
15641 data.
15642 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
15643 (dwarf2_ranges_process): Likewise.
15644 (dwarf2_get_pc_bounds): Likewise.
15645 (mark_common_block_symbol_computed): Likewise.
15646 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
15647 (dwarf2_read_abbrevs): Update call.
15648 (read_partial_die): Use dwarf2_per_objfile from cu.
15649 (find_partial_die): Likewise.
15650 (fixup_partial_die): Likewise.
15651 (read_attribute_value): Likewise.
15652 (read_indirect_string_at_offset_from): Add objfile parameter.
15653 (read_indirect_string_at_offset): Add dwarf2_per_objfile
15654 parameter.
15655 (read_indirect_string_from_dwz): Add objfile parameter.
15656 (read_indirect_string): Add objfile parameter.
15657 (read_addr_index_1): Add dwarf2_per_objfile parameter.
15658 (read_addr_index): Use dwarf2_per_objfile from cu.
15659 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
15660 call dw2_setup.
15661 (read_str_index): Use dwarf2_per_objfile from cu.
15662 (get_debug_line_section): Likewise.
15663 (read_formatted_entries): Add dwarf2_per_objfile parameter.
15664 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
15665 (new_symbol_full): Use dwarf2_per_objfile from cu.
15666 (build_error_marker_type): Likewise.
15667 (lookup_die_type): Likewise.
15668 (determine_prefix): Likewise.
15669 (follow_die_offset): Likewise.
15670 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
15671 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
15672 (dwarf2_fetch_die_type_sect_off): Likewise.
15673 (dwarf2_get_die_type): Likewise.
15674 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
15675 (get_signatured_type): Likewise.
15676 (get_DW_AT_signature_type): Likewise.
15677 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
15678 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
15679 (cu_debug_loc_section): Likewise.
15680 (fill_in_loclist_baton): Likewise.
15681 (dwarf2_symbol_mark_computed): Likewise.
15682 (dwarf2_find_containing_comp_unit): Change objfile parameter to
15683 dwarf2_per_objfile.
15684 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
15685 parameter.
15686 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
15687 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
15688 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
15689 (set_die_type): Use dwarf2_free_objfile from cu.
15690 (get_die_type_at_offset): Likewise.
15691 (dwarf2_per_objfile_free): Don't assign global variable.
15692 (debug_names) <constructor>: Add dwarf2_per_objfile
15693 parameter, update m_debugstrlookup construction.
15694 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
15695 parameter.
15696 <m_dwarf2_per_objfile>: New field.
15697 <lookup>: Use m_dwarf2_per_objfile.
15698 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
15699 (psyms_seen_size): Likewise.
15700 (write_gdbindex): Replace objfile parameter with
15701 dwarf2_per_objfile.
15702 (write_debug_names): Likewise.
15703 (write_psymtabs_to_index): Likewise.
15704 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
15705 calls.
15706
15707 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
15708
15709 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
15710 <dwarf2_per_objfile>: New field.
15711 (struct dwarf2_per_cu_data) <objfile>: Remove.
15712 <dwarf2_per_objfile>: New field.
15713 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
15714 of objfile.
15715 (create_signatured_type_table_from_index): Likewise.
15716 (create_debug_type_hash_table): Likewise.
15717 (fill_in_sig_entry_from_dwo_entry): Likewise.
15718 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
15719 (create_type_unit_group): Assign dwarf2_per_objfile instead of
15720 objfile.
15721 (create_partial_symtab): Access objfile through
15722 dwarf2_per_objfile.
15723 (process_psymtab_comp_unit_reader): Likewise.
15724 (read_comp_units_from_section): Likewise.
15725 (scan_partial_symbols): Likewise.
15726 (add_partial_symbol): Likewise.
15727 (add_partial_subprogram): Likewise.
15728 (peek_die_abbrev): Likewise.
15729 (fixup_go_packaging): Likewise.
15730 (process_full_comp_unit): Likewise.
15731 (process_full_type_unit): Likewise.
15732 (process_imported_unit_die): Likewise.
15733 (dwarf2_compute_name): Likewise.
15734 (dwarf2_physname): Likewise.
15735 (read_import_statement): Likewise.
15736 (create_cus_hash_table): Assign dwarf2_physname instead of
15737 objfile.
15738 (read_func_scope): Access objfile through dwarf2_per_objfile.
15739 (read_lexical_block_scope): Likewise.
15740 (read_call_site_scope): Likewise.
15741 (read_variable): Likewise.
15742 (dwarf2_rnglists_process): Likewise.
15743 (dwarf2_ranges_process): Likewise.
15744 (dwarf2_ranges_read): Likewise.
15745 (dwarf2_record_block_ranges): Likewise.
15746 (dwarf2_add_field): Likewise.
15747 (dwarf2_add_member_fn): Likewise.
15748 (read_structure_type): Likewise.
15749 (process_structure_scope): Likewise.
15750 (read_enumeration_type): Likewise.
15751 (read_array_type): Likewise.
15752 (read_common_block): Likewise.
15753 (read_namespace_type): Likewise.
15754 (read_namespace): Likewise.
15755 (read_module_type): Likewise.
15756 (read_tag_pointer_type): Likewise.
15757 (read_tag_ptr_to_member_type): Likewise.
15758 (read_tag_string_type): Likewise.
15759 (read_subroutine_type): Likewise.
15760 (read_typedef): Likewise.
15761 (read_base_type): Likewise.
15762 (attr_to_dynamic_prop): Likewise.
15763 (read_subrange_type): Likewise.
15764 (read_unspecified_type): Likewise.
15765 (load_partial_dies): Likewise.
15766 (read_partial_die): Likewise.
15767 (find_partial_die): Likewise.
15768 (guess_partial_die_structure_name): Likewise.
15769 (fixup_partial_die): Likewise.
15770 (read_attribute_value): Likewise.
15771 (read_addr_index_from_leb128): Likewise.
15772 (dwarf2_read_addr_index): Likewise.
15773 (dwarf2_string_attr): Likewise.
15774 (lnp_state_machine::check_line_address): Likewise.
15775 (dwarf_decode_lines_1): Likewise.
15776 (dwarf_decode_lines): Likewise.
15777 (dwarf2_start_symtab): Likewise.
15778 (var_decode_location): Likewise.
15779 (new_symbol_full): Likewise.
15780 (dwarf2_const_value_data): Likewise.
15781 (dwarf2_const_value_attr): Likewise.
15782 (dwarf2_const_value): Likewise.
15783 (die_type): Likewise.
15784 (die_containing_type): Likewise.
15785 (lookup_die_type): Likewise.
15786 (guess_full_die_structure_name): Likewise.
15787 (anonymous_struct_prefix): Likewise.
15788 (dwarf2_name): Likewise.
15789 (follow_die_ref_or_sig): Likewise.
15790 (follow_die_offset): Likewise.
15791 (follow_die_ref): Likewise.
15792 (dwarf2_fetch_die_loc_sect_off): Likewise.
15793 (dwarf2_fetch_constant_bytes): Likewise.
15794 (dwarf2_fetch_die_type_sect_off): Likewise.
15795 (dwarf2_get_die_type): Likewise.
15796 (follow_die_sig): Likewise.
15797 (decode_locdesc): Likewise.
15798 (dwarf2_per_cu_objfile): Likewise.
15799 (dwarf2_per_cu_text_offset): Likewise.
15800 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
15801 objfile.
15802 (set_die_type): Access objfile through
15803 dwarf2_per_objfile.
15804
15805 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
15806
15807 * valprint.c (converted_character_d): Remove typedef.
15808 (DEF_VEC_O (converted_character_d)): Remove.
15809 (count_next_character): Use std::vector.
15810 (print_converted_chars_to_obstack): Likewise.
15811 (generic_printstr): Likewise.
15812
15813 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
15814
15815 * xml-support.h (struct gdb_xml_value): Add constructor.
15816 <value>: Change type to unique_xmalloc_ptr.
15817 (gdb_xml_value_s): Remove typedef.
15818 (DEF_VEC_O (gdb_xml_value_s)): Remove.
15819 (gdb_xml_element_start_handler): Change parameter type to
15820 std::vector.
15821 (xml_find_attribute): Likewise.
15822 * xml-support.c (xml_find_attribute): Change parameter type to
15823 std::vector and adjust.
15824 (gdb_xml_values_cleanup): Remove.
15825 (gdb_xml_parser::start_element): Adjust to std::vector.
15826 (xinclude_start_include): Change paraeter type to std::vector
15827 and adjust.
15828 * btrace.c (check_xml_btrace_version): Likewise.
15829 (parse_xml_btrace_block): Likewise.
15830 (parse_xml_btrace_pt_config_cpu): Likewise.
15831 (parse_xml_btrace_pt): Likewise.
15832 (parse_xml_btrace_conf_bts): Likewise.
15833 (parse_xml_btrace_conf_pt): Likewise.
15834 * memory-map.c (memory_map_start_memory): Likewise.
15835 (memory_map_start_property): Likewise.
15836 * osdata.c (osdata_start_osdata): Likewise.
15837 (osdata_start_item): Likewise.
15838 (osdata_start_column): Likewise.
15839 * remote.c (start_thread): Likewise.
15840 * solib-aix.c (library_list_start_library): Likewise.
15841 (library_list_start_list): Likewise.
15842 * solib-svr4.c (library_list_start_library): Likewise.
15843 (svr4_library_list_start_list): Likewise.
15844 * solib-target.c (library_list_start_segment): Likewise.
15845 (library_list_start_section): Likewise.
15846 (library_list_start_library): Likewise.
15847 (library_list_start_list): Likewise.
15848 * tracepoint.c (traceframe_info_start_memory): Likewise.
15849 (traceframe_info_start_tvar): Likewise.
15850 * xml-syscall.c (syscall_start_syscall): Likewise.
15851 * xml-tdesc.c (tdesc_start_target): Likewise.
15852 (tdesc_start_feature): Likewise.
15853 (tdesc_start_reg): Likewise.
15854 (tdesc_start_union): Likewise.
15855 (tdesc_start_struct): Likewise.
15856 (tdesc_start_flags): Likewise.
15857 (tdesc_start_enum): Likewise.
15858 (tdesc_start_field): Likewise.
15859 (tdesc_start_enum_value): Likewise.
15860 (tdesc_start_vector): Likewise.
15861
15862 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
15863
15864 * extension.h (struct xmethod_worker) <clone>: Remove.
15865 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
15866 Remove.
15867 (python_xmethod_worker::clone): Remove.
15868 * valops.c (find_overload_match): Use std::move instead of
15869 clone.
15870
15871 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
15872
15873 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
15874 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
15875 <free_xmethod_worker_data>: Remove.
15876 <get_matching_xmethod_workers>: Chance VEC to std::vector.
15877 <get_xmethod_arg_types>: Remove.
15878 <get_xmethod_result_type>: Remove.
15879 <invoke_xmethod>: Remove.
15880 * extension.c (new_xmethod_worker): Remove.
15881 (clone_xmethod_worker): Remove.
15882 (get_matching_xmethod_workers): Return void, pass std::vector by
15883 pointer.
15884 (get_xmethod_arg_types): Rename to...
15885 (xmethod_worker::get_arg_types): ... this, and adjust.
15886 (get_xmethod_result_type): Rename to...
15887 (xmethod_worker::get_result_type): ... this, and adjust.
15888 (invoke_xmethod): Remove.
15889 (free_xmethod_worker): Remove.
15890 (free_xmethod_worker_vec): Remove.
15891 * extension.h (enum ext_lang_rc): Move here from
15892 extension-priv.h.
15893 (struct xmethod_worker): Add constructor and destructor.
15894 <data>: Remove.
15895 <value>: Remove.
15896 <invoke, clone, do_get_result_type, do_get_arg_types>: New
15897 virtual pure methods.
15898 <get_arg_types, get_result_type>: New methods.
15899 (xmethod_worker_ptr): Remove typedef.
15900 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
15901 (xmethod_worker_vec): Remove typedef.
15902 (xmethod_worker_up): New typedef.
15903 (invoke_xmethod): Remove.
15904 (clone_xmethod_worker): Remove.
15905 (free_xmethod_worker): Remove.
15906 (free_xmethod_worker_vec): Remove.
15907 (get_xmethod_arg_types): Remove.
15908 (get_xmethod_result_type): Remove.
15909 * valops.c (find_method_list): Use std::vector, don't use
15910 intermediate vector.
15911 (value_find_oload_method_list): Use std::vector.
15912 (find_overload_match): Use std::vector.
15913 (find_oload_champ): Use std::vector.
15914 * value.c (value_free): Use operator delete.
15915 (value_of_xmethod): Rename to...
15916 (value_from_xmethod): ... this. Don't assign
15917 xmethod_worker::value, take rvalue-reference.
15918 (result_type_of_xmethod): Adjust.
15919 (call_xmethod): Adjust.
15920 * value.h: Include extension.h.
15921 (struct xmethod_worker): Don't forward-declare.
15922 (value_of_xmethod): Rename to...
15923 (value_from_xmethod): ... this, take rvalue-reference.
15924 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
15925 (struct python_xmethod_worker): ... this, add constructor and
15926 destructor.
15927 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
15928 (gdbpy_free_xmethod_worker_data): Rename to...
15929 (python_xmethod_worker::~python_xmethod_worker): ... this and
15930 adjust.
15931 (gdbpy_clone_xmethod_worker_data): Rename to...
15932 (python_xmethod_worker::clone): ... this and adjust.
15933 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
15934 temporary vector.
15935 (gdbpy_get_xmethod_arg_types): Rename to...
15936 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
15937 (gdbpy_get_xmethod_result_type): Rename to...
15938 (python_xmethod_worker::do_get_result_type): ... this and
15939 adjust.
15940 (gdbpy_invoke_xmethod): Rename to...
15941 (python_xmethod_worker::invoke): ... this and adjust.
15942 (new_python_xmethod_worker): Rename to...
15943 (python_xmethod_worker::python_xmethod_worker): ... this and
15944 adjust.
15945 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
15946 Remove.
15947 (gdbpy_free_xmethod_worker_data): Remove.
15948 (gdbpy_get_matching_xmethod_workers): Use std::vector.
15949 (gdbpy_get_xmethod_arg_types): Remove.
15950 (gdbpy_get_xmethod_result_type): Remove.
15951 (gdbpy_invoke_xmethod): Remove.
15952 * python/python.c (python_extension_ops): Remove obsolete
15953 callbacks.
15954
15955 2018-01-05 Pedro Alves <palves@redhat.com>
15956
15957 PR gdb/18653
15958 * common/signals-state-save-restore.c
15959 (save_original_signals_state): New parameter 'quiet'. Warn if we
15960 find a custom handler preinstalled, instead of internal erroring.
15961 But only warn if !quiet.
15962 * common/signals-state-save-restore.h
15963 (save_original_signals_state): New parameter 'quiet'.
15964 * main.c (captured_main_1): Move save_original_signals_state call
15965 after option handling, and pass QUIET.
15966
15967 2018-01-05 Pedro Alves <palves@redhat.com>
15968
15969 * spu-tdep.c (spu_catch_start): Pass
15970 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
15971
15972 2018-01-05 Pedro Alves <palves@redhat.com>
15973
15974 PR gdb/22670
15975 * ada-lang.c (literal_symbol_name_matcher): New function.
15976 (ada_get_symbol_name_matcher): Use it for
15977 symbol_name_match_type::SEARCH_NAME.
15978 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
15979 it down instead of assuming symbol_name_match_type::FULL.
15980 * block.h (block_lookup_symbol): New parameter 'match_type'.
15981 * c-valprint.c (print_unpacked_pointer): Use
15982 lookup_symbol_search_name instead of lookup_symbol.
15983 * compile/compile-object-load.c (get_out_value_type): Pass down
15984 symbol_name_match_type::SEARCH_NAME.
15985 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
15986 symbol_name_match_type::FULL.
15987 * cp-support.c (cp_get_symbol_name_matcher): Handle
15988 symbol_name_match_type::SEARCH_NAME.
15989 * infrun.c (insert_exception_resume_breakpoint): Use
15990 lookup_symbol_search_name.
15991 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
15992 * psymtab.c (maintenance_check_psymtabs): Use
15993 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
15994 * stack.c (print_frame_args): Use lookup_symbol_search_name and
15995 SYMBOL_SEARCH_NAME.
15996 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
15997 if symbol_name_match_type::SEARCH_NAME.
15998 (lookup_symbol_in_language): Pass down
15999 symbol_name_match_type::FULL.
16000 (lookup_symbol_search_name): New.
16001 (lookup_language_this): Pass down
16002 symbol_name_match_type::SEARCH_NAME.
16003 (lookup_symbol_aux, lookup_local_symbol): New parameter
16004 'match_type'. Pass it down.
16005 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
16006 (lookup_symbol_search_name): New declaration.
16007 (lookup_symbol_in_block): New 'match_type' parameter.
16008
16009 2018-01-05 Pedro Alves <palves@redhat.com>
16010
16011 PR gdb/22670
16012 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
16013 ada_lookup_symbol.
16014 (ada_lookup_symbol): Reimplement in terms of
16015 ada_lookup_symbol_list, bits factored out from
16016 ada_lookup_encoded_symbol.
16017
16018 2018-01-05 Joel Brobecker <brobecker@adacore.com>
16019
16020 * ada-exp.y (write_object_renaming): When subscripting an array
16021 using a symbol as the index, pass the block in call to
16022 ada_lookup_encoded_symbol when looking that symbol up.
16023
16024 2018-01-05 Jerome Guitton <guitton@adacore.com>
16025
16026 * ada-lang.c (ada_array_length): Use ada_index_type instead of
16027 TYPE_INDEX_TYPE.
16028
16029 2018-01-05 Joel Brobecker <brobecker@adacore.com>
16030
16031 * ada-lang.c (ada_to_fixed_value_create): Add handling of
16032 the case where VALUE_LVAL (val0) is not lval_memory.
16033
16034 2018-01-05 Xavier Roirand <roirand@adacore.com>
16035
16036 * ada-valprint.c (print_optional_low_bound): Handle
16037 character-indexed array printing like boolean-indexed array
16038 printing.
16039
16040 2018-01-05 Joel Brobecker <brobecker@adacore.com>
16041
16042 * NEWS: Create a new section for the next release branch.
16043 Rename the section of the current branch, now that it has
16044 been cut.
16045
16046 2018-01-05 Joel Brobecker <brobecker@adacore.com>
16047
16048 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
16049 * version.in: Bump version to 8.1.50.DATE-git.
16050
16051 2018-01-03 Xavier Roirand <roirand@adacore.com>
16052
16053 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
16054 Add field.
16055 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
16056 Add field.
16057 (default_exception_support_info) <catch_handlers_sym>: Add field.
16058 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
16059 (ada_exception_name_addr_1): Add "catch handlers" handling.
16060 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
16061 Update all callers.
16062 (create_excep_cond_exprs) <ex>: Add parameter.
16063 (re_set_exception): Update create_excep_cond_exprs call.
16064 (print_it_exception, print_one_exception, print_mention_exception)
16065 (print_recreate_exception): Add "catch handler" handling.
16066 (allocate_location_catch_handlers, re_set_catch_handlers)
16067 (check_status_catch_handlers, print_it_catch_handlers)
16068 (print_one_catch_handlers, print_mention_catch_handlers)
16069 (print_recreate_catch_handlers): New function.
16070 (catch_handlers_breakpoint_ops): New variable.
16071 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
16072 Add parameter. Add "catch handler" handling.
16073 (ada_exception_sym_name, ada_exception_breakpoint_ops):
16074 Add "catch handler" handling.
16075 (ada_exception_catchpoint_cond_string): Add "catch handler"
16076 handling.
16077 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
16078 call.
16079 (catch_ada_handlers_command): New function.
16080 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
16081 operations structure.
16082 (_initialize_ada_language): Add "catch handlers" command entry.
16083 * NEWS: Document "catch handlers" feature.
16084
16085 2018-01-02 Joel Brobecker <brobecker@adacore.com>
16086
16087 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
16088 account when creating the array type of the slice.
16089 (ada_value_slice): Likewise.
16090
16091 2018-01-02 Joel Brobecker <brobecker@adacore.com>
16092
16093 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
16094 New enum value.
16095 (create_array_type_with_stride): Add byte_stride_prop parameter.
16096 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
16097 New parameter. Update all callers in this file.
16098 (array_type_has_dynamic_stride): New function.
16099 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
16100 of arrays with dynamic byte strides.
16101 * dwarf2read.c (read_array_type): Add support for dynamic
16102 DW_AT_byte_stride attributes.
16103
16104 2018-01-02 Joel Brobecker <brobecker@adacore.com>
16105
16106 * dwarf2read.c (read_unspecified_type): Treat
16107 DW_TAG_enumeration_type DIEs from Ada units as stubs.
16108
16109 2018-01-01 Joel Brobecker <brobecker@adacore.com>
16110
16111 Update copyright year range in all GDB files.
16112
16113 2018-01-01, 18 Joel Brobecker <brobecker@adacore.com>
16114
16115 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
16116 and gdb/testsuite/gdb.base/step-line.c.
16117
16118 2018-01-01 Joel Brobecker <brobecker@adacore.com>
16119
16120 * copyright.py (main): Dump the contents of
16121 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
16122 even if BY_HAND is empty.
16123
16124 2018-01-01 Joel Brobecker <brobecker@adacore.com>
16125
16126 * top.c (print_gdb_version): Update Copyright year in version
16127 message.
16128
16129 2018-01-01 Joel Brobecker <brobecker@adacore.com>
16130
16131 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
16132
16133 For older changes see ChangeLog-2017.
16134 \f
16135 Local Variables:
16136 mode: change-log
16137 left-margin: 8
16138 fill-column: 74
16139 version-control: never
16140 coding: utf-8
16141 End: