ada-lang.c::ada_value_cast: remove unnecessary parentheses
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2018-09-08 Joel Brobecker <brobecker@adacore.com>
2
3 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
4
5 2018-09-08 Joel Brobecker <brobecker@adacore.com>
6
7 * ada-typeprint.c (print_range): Print the bounds using TYPE
8 rather than its TYPE_TARGET_TYPE.
9
10 2018-09-08 Joel Brobecker <brobecker@adacore.com>
11
12 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
13 call to ada_to_fixed_value_create.
14
15 2018-09-08 Jerome Guitton <guitton@adacore.com>
16
17 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
18
19 2018-09-08 Joel Brobecker <brobecker@adacore.com>
20
21 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
22 by calls to error.
23
24 2018-09-08 Joel Brobecker <brobecker@adacore.com>
25
26 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
27 Move update of loop variable "fi".
28
29 2018-09-08 Joel Brobecker <brobecker@adacore.com>
30
31 * ada-lang.c (value_assign_to_component): In the case of
32 big-endian targets, extract the bits of the given VAL
33 using an src_offset of zero if container is not a scalar.
34
35 2018-09-06 Simon Ser <contact@emersion.fr>
36
37 PR gdb/23105
38 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
39 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
40 * fbsd-tdep.c (fbsd_make_note_desc): New.
41 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
42 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
43 * target.h (enum target_object) Add FreeBSD-specific
44 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
45
46 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
47
48 * compile/compile-c.h (generate_c_for_variable_locations):
49 Change reference to pointer.
50 * compile/compile-c-support.c (compile_program) <compute>:
51 Likewise.
52 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
53 (generate_c_for_for_one_variable): Likewise
54 (generate_c_for_variable_locations): Likewise
55 * compile/compile-c-types.c (compile_c_instance::convert_type):
56 Likewise
57 * compile/compile-cplus-symbols.c (convert_one_symbol):
58 std::move the scope passed to enter_scope.
59 * compile/compile-cplus-types.c
60 (compile_cplus_instance::enter_scope): Make parameter
61 rvalue-reference.
62 (compile_cplus_instance::new_scope): Change reference to
63 pointer.
64 (compile_cplus_instance::convert_type): Likewise
65 (compile_cplus_convert_typedef): std::move the scope passed to
66 enter_scope.
67 (compile_cplus_convert_struct_or_union): Likewise.
68 (compile_cplus_convert_enum): Likewise.
69 (compile_cplus_convert_namespace): Likewise.
70 * compile/compile-cplus.h (compile_cplus_instance)
71 <enter_scope>: Make parameter rvalue-reference.
72 * compile/compile-internal.h (compile_instance)
73 <get_cached_type>: Likewise
74 * compile/compile-loc2c.c (push): Likewise
75 (pushf): Likewise
76 (unary): Likewise
77 (binary): Likewise
78 (print_label): Likewise
79 (pushf_register_address): Likewise
80 (pushf_register): Likewise
81 (do_compile_dwarf_expr_to_c): Likewise
82 (compile_dwarf_expr_to_c): Likewise
83 (compile_dwarf_bounds_to_c): Likewise
84 * compile/compile.c (compile_instance::get_cached_type):
85 Likewise
86 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
87 (compile_dwarf_bounds_to_c): Likewise
88 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
89 (dwarf2_compile_property_to_c): Likewise
90 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
91 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
92 Likewise
93
94 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
95
96 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
97 * tui/tui-data.c (init_content_element): Don't initialize it.
98
99 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
100
101 * tui/tui-data.h (struct tui_win_info)
102 <detail::opaque>: Remove.
103 * tui/tui-data.c (init_win_info): Remove assignment.
104
105 2018-09-05 Tom Tromey <tom@tromey.com>
106
107 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
108 -Wformat-nonliteral.
109 * target-float.c (host_float_ops<T>::to_string)
110 (host_float_ops<T>::from_string): Use
111 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
112 * configure: Rebuild.
113
114 2018-09-05 Simon Marchi <simon.marchi@ericsson.com>
115
116 * printcmd.c (printf_c_string): Use
117 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
118 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
119
120 2018-09-05 Tom Tromey <tom@tromey.com>
121
122 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
123
124 2018-09-05 Tom de Vries <tdevries@suse.de>
125
126 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
127 with resolve_abstract_p == true.
128 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
129 defaulting to false. Propagate resolve_abstract_p to
130 dwarf2_fetch_die_loc_sect_off.
131 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
132 parameter, defaulting to false.
133 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
134 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
135 parameter.
136 * dwarf2read.h (struct die_info): Forward-declare.
137 (die_info_ptr): New typedef.
138 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
139
140 2018-09-05 Joel Brobecker <brobecker@adacore.com>
141
142 GDB 8.2 released.
143
144 2018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
145 Pedro Alves <palves@redhat.com>
146
147 * gnulib/Makefile.in (aclocal_m4_deps): Move to
148 "aclocal-m4-deps.mk". Include file here.
149 $(srcdir)/aclocal.m4: Add "configure.ac".
150 * gnulib/aclocal-m4-deps.mk: New file.
151 * gnulib/update-gnulib.sh: Automatically update
152 "aclocal-m4-deps.mk".
153
154 2018-09-04 Tom Tromey <tom@tromey.com>
155
156 * configure: Rebuild.
157 * configure.ac: Remove multi-ice code.
158
159 2018-09-04 Tom Tromey <tom@tromey.com>
160
161 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
162 (ada-exp.o): Update.
163
164 2018-09-04 Tom Tromey <tom@tromey.com>
165
166 * Makefile.in (printcmd.o, target-float.o): Remove.
167 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
168
169 2018-09-04 Tom Tromey <tom@tromey.com>
170
171 * gnulib/Makefile.in: Remove obsolete comment.
172 * Makefile.in: Remove obsolete comment.
173
174 2018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
175
176 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
177 line with '+'.
178
179 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
180
181 * riscv-tdep.c: Add 'prologue-value.h' include.
182 (struct riscv_unwind_cache): New struct.
183 (riscv_debug_unwinder): New global.
184 (riscv_scan_prologue): Update arguments, capture register details
185 from prologue scan.
186 (riscv_skip_prologue): Reformat arguments line, move end of
187 prologue calculation into riscv_scan_prologue.
188 (riscv_frame_cache): Update return type, create
189 riscv_unwind_cache, scan the prologue, and fill in remaining cache
190 details.
191 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
192 (riscv_frame_prev_register): Use the trad_frame within the
193 riscv_unwind_cache.
194 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
195 flag.
196
197 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
198
199 * trad-frame.h (trad_frame_set_realreg): Declare.
200 (trad_frame_set_addr): Declare.
201 * trad-frame.c (trad_frame_set_realreg): Define new function.
202 (trad_frame_set_addr): Define new function.
203 (trad_frame_set_reg_realreg): Use new function.
204 (trad_frame_set_reg_addr): Use new function.
205
206 2018-09-01 Keith Seitz <keiths@redhat.com>
207
208 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
209 pulongest instead of "%lld".
210 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
211 ATTRIBUTE_UNUSED.
212
213 2018-08-31 Tom Tromey <tom@tromey.com>
214
215 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
216 variant part type.
217
218 2018-08-31 Pedro Alves <palves@redhat.com>
219
220 * gdbarch.h: Regenerate.
221
222 2018-08-31 Pedro Alves <palves@redhat.com>
223
224 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
225 * target.h (Hardware watchpoint interfaces): Describe
226 continuable/steppable/non-steppable watchpoints.
227 * gdbarch.h, gdbarch.c: Regenerate.
228
229 2018-08-31 Pedro Alves <palves@redhat.com>
230
231 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
232 Delete.
233 * s390-linux-nat.c
234 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
235 * target.h (target_ops::have_continuable_watchpoint): Delete.
236 (target_have_continuable_watchpoint): Delete.
237 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
238 * target-delegates.c: Regenerate.
239
240 2018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
241
242 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
243 the files present in "gnulib/import/m4/".
244
245 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
246
247 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
248 c.sw, c.swsp, and c.sdsp.
249
250 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
251
252 * riscv-tdep.c (struct riscv_inferior_data): Delete.
253 (riscv_read_misa_reg): Don't cache value read into inferior data.
254 (riscv_new_inferior_data): Delete.
255 (riscv_inferior_data_cleanup): Delete.
256 (riscv_inferior_data): Delete.
257 (riscv_invalidate_inferior_data): Delete.
258 (_initialize_riscv_tdep): Remove initialisation of inferior data.
259
260 2018-08-30 Simon Marchi <simon.marchi@ericsson.com>
261
262 * compile/compile-cplus-types.c
263 (compile_cplus_instance::leave_scope): Take the address of scope
264 object.
265 (compile_cplus_instance::convert_qualified_base): Compare quals
266 to 0.
267
268 2018-08-30 Keith Seitz <keiths@redhat.com>
269
270 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
271 Use "%s" and host_address_to_string instead of "%p" in printf.
272
273 2018-08-29 Keith Seitz <keiths@redhat.com>
274
275 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
276 and compile-cplus-types.c.
277 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
278 * c-lang.c (cplus_language_defn): Set C++ compile functions.
279 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
280 Declare.
281 * compile/compile-c-support.c: Include compile-cplus.h.
282 (load_libcompile): Templatize.
283 (get_compile_context): "New" function.
284 (c_get_compile_context): Use get_compile_context.
285 (cplus_get_compile_context): New function.
286 (cplus_push_user_expression, cplus_pop_user_expression)
287 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
288 (cplus_compute_program): Define new structs/functions.
289 * compile/compile-cplus-symmbols.c: New file.
290 * compile/compile-cplus-types.c: New file.
291 * compile/compile-cplus.h: New file.
292 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
293 Declare.
294 * compile/compile-object-load.c (get_out_value_type): Use
295 strncmp_iw when comparing symbol names.
296 (compile_object_load): Add mst_bss and mst_data.
297 * compile/compile.c (_initialize_compile): Remove
298 -Wno-implicit-function-declaration from `compile_args'.
299 * compile/gcc-cp-plugin.h: New file.
300 * NEWS: Mention C++ compile support and new debug options.
301
302 2018-08-29 Keith Seitz <keiths@redhat.com>
303
304 * linespec.c (collect_info::add_symbol): Make virtual.
305 (struct symbol_searcher_collect_info): New struct.
306 (symbol_searcher::find_all_symbols): New method.
307 * symtab.h (class symbol_searcher): New class.
308
309 2018-08-29 Keith Seitz <keiths@redhat.com>
310
311 * linespec.c (struct linespec) <function_symbols, label_symbols>:
312 Change to vector of block_symbol. Update all users.
313 (struct collect_info) <symbols>: Likewise.
314 (collect_info::add_symbol): Take block_symbol as argument.
315 Update all callers.
316 (decode_compound_collector) <m_symbols>: Change type to vector
317 of block_symbol. Update all users.
318 (decode_compound_collector::operator ()): Change parameter type
319 to block_symbol.
320 (find_method, find_function_symbols, find_linespec_symbols)
321 (find_label_symbols_in_block, find_label_symbols): Change symbol
322 vectors to block_symbol vectors.
323 * symtab.h (symbol_found_callback_ftype): Change parameter type to
324 block_symbol.
325
326 2018-08-29 Keith Seitz <keiths@redhat.com>
327
328 * linespec.c (symbolp): Remove typedef and VEC definitions.
329 (bound_minimal_symbol_d): Likewise.
330
331 2018-08-29 Keith Seitz <keiths@redhat.com>
332
333 * linespec.c (decode_compound_collector::decode_compound_collector):
334 Remove initialization for `m_symtabs'.
335 (decode_compound_collector::release_symbols): Change return type
336 to std::vector. Update all callers.
337 (class decode_compound_collector) <m_symbols>: Change type to
338 std::vector.
339 (lookup_prefix_sym): Change return type to std::vector. Update all
340 callers.
341 (compare_symbols): Remove.
342 (std_compare_symbols): Rename to `compare_symbols'.
343 (find_method): Change `sym_classes' parameter to std::vector.
344 Update all callers. Use std::sort to sort sym_classes.
345 (find_linespec_symbols): Remove cleanup.
346
347 2018-08-29 Keith Seitz <keiths@redhat.com>
348
349 * linespec.c (struct linespec) <minimal_symbols>: Change type to
350 std::vector. Update all users.
351 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
352 (struct collect_info) <minimal_symbols>: Likewise.
353 (compare_msymbols): Return bool. Change parameters to const
354 bound_minimal_symbol references.
355 (find_method, find_function_symbols, find_linespec_symbols): Change
356 `minsyms' parameter to std::vector. Update all callers.
357
358 2018-08-29 Keith Seitz <keiths@redhat.com>
359
360 * linespec.c (struct linespec) <label_symbols>: Change type to
361 std::vector. Update all users.
362 (find_label_symbols_in_block): Change `result' parameter to
363 std::vector. Update all callers.
364 (find_label_symbols): Return std::vector. Update all callers.
365
366 2018-08-29 Keith Seitz <keiths@redhat.com>
367
368 * linespec.c (struct linespec) <function_symbols>: Change type to
369 std::vector. Update all users.
370 (struct collect_info) <function_symbols>: Likewise.
371 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
372 (std_compare_symbols): New function.
373 (find_method, find_function_symbols, find_linespec_symbols)
374 (find_label_symbols_in_block): Change `symbols' parameter to
375 std::vector. Update all callers.
376 (find_label_symbols): Likewise for `function_symbols' and
377 `label_funcs_ret'.
378
379 2018-08-29 Keith Seitz <keiths@redhat.com>
380
381 * linespec.c (symtab_vector_up): Define.
382 (struct linespec) <file_symtabs>: Change type to std::vector *.
383 Update all uses.
384 (struct collect_info) <file_symtabs>: Likewise.
385 (collect_symtabs_from_filename): Return symtab_vector_up.
386 Update all callers.
387 (decode_objc): Remove cleanup.
388 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
389 (symtab_collector::release_symtabs): Return symtab_vector_up.
390 Update all callers.
391 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
392 Update all users.
393 (collect_symtabs_from_filename, symtabs_from_filename): Return
394 symtab_vector_up. Update all callers.
395
396 2018-08-29 Tom Tromey <tom@tromey.com>
397
398 * csky-tdep.c (csky_analyze_prologue): Use
399 core_addr_to_string_nz.
400
401 2018-08-29 Tom Tromey <tom@tromey.com>
402
403 * windows-nat.c (struct xlate_exception) <them>: Change type to
404 DWORD.
405 (xlate): Fix formatting. Remove last entry.
406 (struct xlate_exception, xlate): Comment out.
407 (windows_nat_target::resume): Use ranged for.
408
409 2018-08-29 Jim Wilson <jimw@sifive.com>
410
411 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
412 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
413 of NT_PRFPREG.
414 (riscv_linux_nat_target::store_registers): Likewise.
415
416 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
417
418 PR gdb/23555
419 PR gdb/23558
420 * gnulib/aclocal.m4: Regenerate.
421 * gnulib/config.in: Regenerate.
422 * gnulib/configure: Regenerate.
423 * gnulib/import/Makefile.am: Update.
424 * gnulib/import/Makefile.in: Update.
425 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
426 * gnulib/import/_Noreturn.h: ... this.
427 * gnulib/import/alloca.in.h: Update.
428 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
429 * gnulib/import/arg-nonnull.h: ... this.
430 * gnulib/import/assure.h: Update.
431 * gnulib/import/at-func.c: Update.
432 * gnulib/import/basename-lgpl.c: Update.
433 * gnulib/import/extra/snippet/c++defs.h: Rename to...
434 * gnulib/import/c++defs.h: ... this.
435 * gnulib/import/canonicalize-lgpl.c: Update.
436 * gnulib/import/cdefs.h: Update.
437 * gnulib/import/chdir-long.c: Update.
438 * gnulib/import/chdir-long.h: Update.
439 * gnulib/import/cloexec.c: Update.
440 * gnulib/import/cloexec.h: Update.
441 * gnulib/import/close.c: Update.
442 * gnulib/import/closedir.c: Update.
443 * gnulib/import/config.charset: Update.
444 * gnulib/import/dirent-private.h: Update.
445 * gnulib/import/dirent.in.h: Update.
446 * gnulib/import/dirfd.c: Update.
447 * gnulib/import/dirname-lgpl.c: Update.
448 * gnulib/import/dirname.h: Update.
449 * gnulib/import/dosname.h: Update.
450 * gnulib/import/dup-safer-flag.c: Update.
451 * gnulib/import/dup-safer.c: Update.
452 * gnulib/import/dup.c: Update.
453 * gnulib/import/dup2.c: Update.
454 * gnulib/import/errno.in.h: Update.
455 * gnulib/import/error.c: Update.
456 * gnulib/import/error.h: Update.
457 * gnulib/import/exitfail.c: Update.
458 * gnulib/import/exitfail.h: Update.
459 * gnulib/import/extra/update-copyright: Update.
460 * gnulib/import/fchdir.c: Update.
461 * gnulib/import/fcntl.c: Update.
462 * gnulib/import/fcntl.in.h: Update.
463 * gnulib/import/fd-hook.c: Update.
464 * gnulib/import/fd-hook.h: Update.
465 * gnulib/import/fd-safer-flag.c: Update.
466 * gnulib/import/fd-safer.c: Update.
467 * gnulib/import/fdopendir.c: Update.
468 * gnulib/import/filename.h: Update.
469 * gnulib/import/filenamecat-lgpl.c: Update.
470 * gnulib/import/filenamecat.h: Update.
471 * gnulib/import/flexmember.h: Update.
472 * gnulib/import/float+.h: Update.
473 * gnulib/import/float.c: Update.
474 * gnulib/import/float.in.h: Update.
475 * gnulib/import/fnmatch.c: Update.
476 * gnulib/import/fnmatch.in.h: Update.
477 * gnulib/import/fnmatch_loop.c: Update.
478 * gnulib/import/fpucw.h: Update.
479 * gnulib/import/frexp.c: Update.
480 * gnulib/import/frexpl.c: Update.
481 * gnulib/import/fstat.c: Update.
482 * gnulib/import/fstatat.c: Update.
483 * gnulib/import/getcwd-lgpl.c: Update.
484 * gnulib/import/getcwd.c: Update.
485 * gnulib/import/getdtablesize.c: Update.
486 * gnulib/import/getlogin_r.c: Update.
487 * gnulib/import/getprogname.c: Update.
488 * gnulib/import/getprogname.h: Update.
489 * gnulib/import/gettext.h: Update.
490 * gnulib/import/gettimeofday.c: Update.
491 * gnulib/import/glob-libc.h: Update.
492 * gnulib/import/glob.c: Update.
493 * gnulib/import/glob.in.h: Update.
494 * gnulib/import/glob_internal.h: Update.
495 * gnulib/import/glob_pattern_p.c: Update.
496 * gnulib/import/globfree.c: Update.
497 * gnulib/import/hard-locale.c: Update.
498 * gnulib/import/hard-locale.h: Update.
499 * gnulib/import/intprops.h: Update.
500 * gnulib/import/inttypes.in.h: Update.
501 * gnulib/import/isnan.c: Update.
502 * gnulib/import/isnand-nolibm.h: Update.
503 * gnulib/import/isnand.c: Update.
504 * gnulib/import/isnanl-nolibm.h: Update.
505 * gnulib/import/isnanl.c: Update.
506 * gnulib/import/itold.c: Update.
507 * gnulib/import/libc-config.h: Update.
508 * gnulib/import/limits.in.h: Update.
509 * gnulib/import/localcharset.c: Update.
510 * gnulib/import/localcharset.h: Update.
511 * gnulib/import/localtime-buffer.c: Update.
512 * gnulib/import/localtime-buffer.h: Update.
513 * gnulib/import/lstat.c: Update.
514 * gnulib/import/m4/00gnulib.m4: Update.
515 * gnulib/import/m4/__inline.m4: Update.
516 * gnulib/import/m4/absolute-header.m4: Update.
517 * gnulib/import/m4/alloca.m4: Update.
518 * gnulib/import/m4/builtin-expect.m4: Update.
519 * gnulib/import/m4/canonicalize.m4: Update.
520 * gnulib/import/m4/chdir-long.m4: Update.
521 * gnulib/import/m4/close.m4: Update.
522 * gnulib/import/m4/closedir.m4: Update.
523 * gnulib/import/m4/configmake.m4: Update.
524 * gnulib/import/m4/d-ino.m4: Update.
525 * gnulib/import/m4/d-type.m4: Update.
526 * gnulib/import/m4/dirent_h.m4: Update.
527 * gnulib/import/m4/dirfd.m4: Update.
528 * gnulib/import/m4/dirname.m4: Update.
529 * gnulib/import/m4/double-slash-root.m4: Update.
530 * gnulib/import/m4/dup.m4: Update.
531 * gnulib/import/m4/dup2.m4: Update.
532 * gnulib/import/m4/eealloc.m4: Update.
533 * gnulib/import/m4/environ.m4: Update.
534 * gnulib/import/m4/errno_h.m4: Update.
535 * gnulib/import/m4/error.m4: Update.
536 * gnulib/import/m4/exponentd.m4: Update.
537 * gnulib/import/m4/exponentl.m4: Update.
538 * gnulib/import/m4/extensions.m4: Update.
539 * gnulib/import/m4/extern-inline.m4: Update.
540 * gnulib/import/m4/fchdir.m4: Update.
541 * gnulib/import/m4/fcntl-o.m4: Update.
542 * gnulib/import/m4/fcntl.m4: Update.
543 * gnulib/import/m4/fcntl_h.m4: Update.
544 * gnulib/import/m4/fdopendir.m4: Update.
545 * gnulib/import/m4/filenamecat.m4: Update.
546 * gnulib/import/m4/flexmember.m4: Update.
547 * gnulib/import/m4/float_h.m4: Update.
548 * gnulib/import/m4/fnmatch.m4: Update.
549 * gnulib/import/m4/fnmatch_h.m4: Update.
550 * gnulib/import/m4/fpieee.m4: Update.
551 * gnulib/import/m4/frexp.m4: Update.
552 * gnulib/import/m4/frexpl.m4: Update.
553 * gnulib/import/m4/fstat.m4: Update.
554 * gnulib/import/m4/fstatat.m4: Update.
555 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
556 * gnulib/import/m4/getcwd-path-max.m4: Update.
557 * gnulib/import/m4/getcwd.m4: Update.
558 * gnulib/import/m4/getdtablesize.m4: Update.
559 * gnulib/import/m4/getlogin.m4: Update.
560 * gnulib/import/m4/getlogin_r.m4: Update.
561 * gnulib/import/m4/getpagesize.m4: Update.
562 * gnulib/import/m4/getprogname.m4: Update.
563 * gnulib/import/m4/gettimeofday.m4: Update.
564 * gnulib/import/m4/glibc21.m4: Update.
565 * gnulib/import/m4/glob.m4: Update.
566 * gnulib/import/m4/glob_h.m4: Update.
567 * gnulib/import/m4/gnulib-cache.m4: Update.
568 * gnulib/import/m4/gnulib-common.m4: Update.
569 * gnulib/import/m4/gnulib-comp.m4: Update.
570 * gnulib/import/m4/gnulib-tool.m4: Update.
571 * gnulib/import/m4/hard-locale.m4: Update.
572 * gnulib/import/m4/include_next.m4: Update.
573 * gnulib/import/m4/inttypes-pri.m4: Update.
574 * gnulib/import/m4/inttypes.m4: Update.
575 * gnulib/import/m4/isnand.m4: Update.
576 * gnulib/import/m4/isnanl.m4: Update.
577 * gnulib/import/m4/largefile.m4: Update.
578 * gnulib/import/m4/limits-h.m4: Update.
579 * gnulib/import/m4/localcharset.m4: Update.
580 * gnulib/import/m4/locale-fr.m4: Update.
581 * gnulib/import/m4/locale-ja.m4: Update.
582 * gnulib/import/m4/locale-zh.m4: Update.
583 * gnulib/import/m4/localtime-buffer.m4: Update.
584 * gnulib/import/m4/longlong.m4: Update.
585 * gnulib/import/m4/lstat.m4: Update.
586 * gnulib/import/m4/malloc.m4: Update.
587 * gnulib/import/m4/malloca.m4: Update.
588 * gnulib/import/m4/math_h.m4: Update.
589 * gnulib/import/m4/mbrtowc.m4: Update.
590 * gnulib/import/m4/mbsinit.m4: Update.
591 * gnulib/import/m4/mbsrtowcs.m4: Update.
592 * gnulib/import/m4/mbstate_t.m4: Update.
593 * gnulib/import/m4/memchr.m4: Update.
594 * gnulib/import/m4/memmem.m4: Update.
595 * gnulib/import/m4/mempcpy.m4: Update.
596 * gnulib/import/m4/memrchr.m4: Update.
597 * gnulib/import/m4/mkdir.m4: Update.
598 * gnulib/import/m4/mkstemp.m4: Update.
599 * gnulib/import/m4/mmap-anon.m4: Update.
600 * gnulib/import/m4/mode_t.m4: Update.
601 * gnulib/import/m4/msvc-inval.m4: Update.
602 * gnulib/import/m4/msvc-nothrow.m4: Update.
603 * gnulib/import/m4/multiarch.m4: Update.
604 * gnulib/import/m4/nocrash.m4: Update.
605 * gnulib/import/m4/off_t.m4: Update.
606 * gnulib/import/m4/onceonly.m4: Update.
607 * gnulib/import/m4/open-cloexec.m4: Update.
608 * gnulib/import/m4/open.m4: Update.
609 * gnulib/import/m4/openat.m4: Update.
610 * gnulib/import/m4/opendir.m4: Update.
611 * gnulib/import/m4/pathmax.m4: Update.
612 * gnulib/import/m4/rawmemchr.m4: Update.
613 * gnulib/import/m4/readdir.m4: Update.
614 * gnulib/import/m4/readlink.m4: Update.
615 * gnulib/import/m4/realloc.m4: Update.
616 * gnulib/import/m4/rename.m4: Update.
617 * gnulib/import/m4/rewinddir.m4: Update.
618 * gnulib/import/m4/rmdir.m4: Update.
619 * gnulib/import/m4/save-cwd.m4: Update.
620 * gnulib/import/m4/secure_getenv.m4: Update.
621 * gnulib/import/m4/setenv.m4: Update.
622 * gnulib/import/m4/signal_h.m4: Update.
623 * gnulib/import/m4/ssize_t.m4: Update.
624 * gnulib/import/m4/stat-time.m4: Update.
625 * gnulib/import/m4/stat.m4: Update.
626 * gnulib/import/m4/std-gnu11.m4: Update.
627 * gnulib/import/m4/stdbool.m4: Update.
628 * gnulib/import/m4/stddef_h.m4: Update.
629 * gnulib/import/m4/stdint.m4: Update.
630 * gnulib/import/m4/stdio_h.m4: Update.
631 * gnulib/import/m4/stdlib_h.m4: Update.
632 * gnulib/import/m4/strchrnul.m4: Update.
633 * gnulib/import/m4/strdup.m4: Update.
634 * gnulib/import/m4/strerror.m4: Update.
635 * gnulib/import/m4/string_h.m4: Update.
636 * gnulib/import/m4/strstr.m4: Update.
637 * gnulib/import/m4/strtok_r.m4: Update.
638 * gnulib/import/m4/sys_socket_h.m4: Update.
639 * gnulib/import/m4/sys_stat_h.m4: Update.
640 * gnulib/import/m4/sys_time_h.m4: Update.
641 * gnulib/import/m4/sys_types_h.m4: Update.
642 * gnulib/import/m4/tempname.m4: Update.
643 * gnulib/import/m4/time_h.m4: Update.
644 * gnulib/import/m4/unistd-safer.m4: Update.
645 * gnulib/import/m4/unistd_h.m4: Update.
646 * gnulib/import/m4/warn-on-use.m4: Update.
647 * gnulib/import/m4/wchar_h.m4: Update.
648 * gnulib/import/m4/wchar_t.m4: Update.
649 * gnulib/import/m4/wctype_h.m4: Update.
650 * gnulib/import/m4/wint_t.m4: Update.
651 * gnulib/import/malloc.c: Update.
652 * gnulib/import/malloc/scratch_buffer.h: Update.
653 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
654 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
655 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
656 * gnulib/import/malloca.c: Update.
657 * gnulib/import/malloca.h: Update.
658 * gnulib/import/malloca.valgrind: Update.
659 * gnulib/import/math.in.h: Update.
660 * gnulib/import/mbrtowc.c: Update.
661 * gnulib/import/mbsinit.c: Update.
662 * gnulib/import/mbsrtowcs-impl.h: Update.
663 * gnulib/import/mbsrtowcs-state.c: Update.
664 * gnulib/import/mbsrtowcs.c: Update.
665 * gnulib/import/memchr.c: Update.
666 * gnulib/import/memmem.c: Update.
667 * gnulib/import/mempcpy.c: Update.
668 * gnulib/import/memrchr.c: Update.
669 * gnulib/import/mkdir.c: Update.
670 * gnulib/import/mkstemp.c: Update.
671 * gnulib/import/msvc-inval.c: Update.
672 * gnulib/import/msvc-inval.h: Update.
673 * gnulib/import/msvc-nothrow.c: Update.
674 * gnulib/import/msvc-nothrow.h: Update.
675 * gnulib/import/open.c: Update.
676 * gnulib/import/openat-die.c: Update.
677 * gnulib/import/openat-priv.h: Update.
678 * gnulib/import/openat-proc.c: Update.
679 * gnulib/import/openat.c: Update.
680 * gnulib/import/openat.h: Update.
681 * gnulib/import/opendir.c: Update.
682 * gnulib/import/pathmax.h: Update.
683 * gnulib/import/pipe-safer.c: Update.
684 * gnulib/import/rawmemchr.c: Update.
685 * gnulib/import/readdir.c: Update.
686 * gnulib/import/readlink.c: Update.
687 * gnulib/import/realloc.c: Update.
688 * gnulib/import/ref-add.sin: Update.
689 * gnulib/import/ref-del.sin: Update.
690 * gnulib/import/rename.c: Update.
691 * gnulib/import/rewinddir.c: Update.
692 * gnulib/import/rmdir.c: Update.
693 * gnulib/import/same-inode.h: Update.
694 * gnulib/import/save-cwd.c: Update.
695 * gnulib/import/save-cwd.h: Update.
696 * gnulib/import/scratch_buffer.h: Update.
697 * gnulib/import/secure_getenv.c: Update.
698 * gnulib/import/setenv.c: Update.
699 * gnulib/import/signal.in.h: Update.
700 * gnulib/import/stat-time.c: Update.
701 * gnulib/import/stat-time.h: Update.
702 * gnulib/import/stat-w32.c: Update.
703 * gnulib/import/stat-w32.h: Update.
704 * gnulib/import/stat.c: Update.
705 * gnulib/import/stdbool.in.h: Update.
706 * gnulib/import/stddef.in.h: Update.
707 * gnulib/import/stdint.in.h: Update.
708 * gnulib/import/stdio.in.h: Update.
709 * gnulib/import/stdlib.in.h: Update.
710 * gnulib/import/str-two-way.h: Update.
711 * gnulib/import/strchrnul.c: Update.
712 * gnulib/import/strdup.c: Update.
713 * gnulib/import/streq.h: Update.
714 * gnulib/import/strerror-override.c: Update.
715 * gnulib/import/strerror-override.h: Update.
716 * gnulib/import/strerror.c: Update.
717 * gnulib/import/string.in.h: Update.
718 * gnulib/import/stripslash.c: Update.
719 * gnulib/import/strnlen1.c: Update.
720 * gnulib/import/strnlen1.h: Update.
721 * gnulib/import/strstr.c: Update.
722 * gnulib/import/strtok_r.c: Update.
723 * gnulib/import/sys_stat.in.h: Update.
724 * gnulib/import/sys_time.in.h: Update.
725 * gnulib/import/sys_types.in.h: Update.
726 * gnulib/import/tempname.c: Update.
727 * gnulib/import/tempname.h: Update.
728 * gnulib/import/time.in.h: Update.
729 * gnulib/import/unistd--.h: Update.
730 * gnulib/import/unistd-safer.h: Update.
731 * gnulib/import/unistd.in.h: Update.
732 * gnulib/import/unsetenv.c: Update.
733 * gnulib/import/verify.h: Update.
734 * gnulib/import/extra/snippet/warn-on-use.h: Update.
735 * gnulib/import/wchar.in.h: Update.
736 * gnulib/import/wctype.in.h: Update.
737 * gnulib/import/xalloc-oversized.h: Update.
738 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
739 "53e2c179f26a890fa6685af4b6c1397ee370433b".
740
741 2018-08-16 Gary Benson <gbenson@redhat.com>
742
743 PR gdb/13000:
744 * gdb/main.c (captured_main_1): Exit with nonzero status
745 in batch mode if the last command to be executed failed.
746 * NEWS: Mention the above.
747
748 2018-08-29 Simon Marchi <simon.marchi@ericsson.com>
749
750 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
751 end of warning message.
752
753 2018-08-29 Alan Hayward <alan.hayward@arm.com>
754
755 PR gdb/22943:
756 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
757 (aarch64_extract_return_value): Use
758 aapcs_is_vfp_call_or_return_candidate.
759 (aarch64_return_in_memory): Likewise.
760 (aarch64_store_return_value): Likewise.
761
762 2018-08-29 Alan Hayward <alan.hayward@arm.com>
763
764 * aarch64-tdep.c
765 (aapcs_is_vfp_call_or_return_candidate): Make static
766 (pass_in_v_or_stack): Remove function.
767 (pass_in_v_vfp_candidate): New function.
768 (aarch64_push_dummy_call): Check for float register candidates.
769
770 2018-08-29 Alan Hayward <alan.hayward@arm.com>
771
772 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
773 (aapcs_is_vfp_call_or_return_candidate_1): New function.
774 (aapcs_is_vfp_call_or_return_candidate): Likewise.
775
776 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
777
778 PR build/23399
779 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
780 (struct ipa_sym_addresses): Rename to...
781 (struct ipa_sym_addresses_common): ... this.
782 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
783
784 2018-08-28 Tom Tromey <tom@tromey.com>
785
786 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
787 (token_fifo): Now a std::vector.
788 (yylex, c_parse): Update.
789 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
790 (token_fifo): Now a std::vector.
791 (yylex, d_parse): Update.
792 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
793 (token_fifo): Now a std::vector.
794 (yylex, go_parse): Update.
795
796 2018-08-28 Simon Marchi <simon.marchi@ericsson.com>
797
798 * parser-defs.h (struct type_stack) <elements>: Change type to
799 std::vector<union type_stack_elt>.
800 <depth, size>: Remove.
801 * parse.c (parse_exp_in_context_1): Adjust.
802 (type_stack_reserve): Remove.
803 (check_type_stack_depth): Remove.
804 (insert_into_type_stack): Adjust to std::vector.
805 (insert_type): Likewise.
806 (push_type): Likewise.
807 (push_type_int): Likewise.
808 (insert_type_address_space): Likewise.
809 (pop_type): Likewise.
810 (pop_type_int): Likewise.
811 (pop_typelist): Likewise.
812 (pop_type_stack): Likewise.
813 (append_type_stack): Likewise.
814 (push_type_stack): Likewise.
815 (get_type_stack): Likewise.
816 (type_stack_cleanup): Likewise.
817 (push_typelist): Likewise.
818 (follow_types): Likewise.
819 (_initialize_parse): Likewise.
820
821 2018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
822
823 * NEWS: Mention csky target.
824
825 2018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
826 Hafiz Abid Qadeer <abidh@codesourcery.com>
827 Don Breazeal <donb@codesourcery.com>
828
829 * csky-linux-tdep.c: New file.
830 * csky-tdep.c: Likewise.
831 * csky-tdep.h: Likewise.
832 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
833 csky-tdep.o.
834 (HFILES_NO_SRCDIR): Add csky-tdep.h.
835 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
836 * configure.tgt: Add csky support.
837
838 2018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
839
840 * python/py-framefilter.c (py_print_frame): Print frame architecture
841 when printing on an MI output.
842
843 2018-08-27 Tom Tromey <tom@tromey.com>
844
845 PR build/23087:
846 * configure: Rebuild.
847 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
848
849 2018-08-27 Tom Tromey <tom@tromey.com>
850
851 * aarch64-linux-tdep.c
852 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
853 casts to int.
854
855 2018-08-27 Tom Tromey <tom@tromey.com>
856
857 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
858 unsigned.
859 (ppc64_standard_linkage1, ppc64_standard_linkage2)
860 (ppc64_standard_linkage3, ppc64_standard_linkage4)
861 (ppc64_standard_linkage5, ppc64_standard_linkage6)
862 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
863 unsigned.
864
865 2018-08-27 Tom Tromey <tom@tromey.com>
866
867 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
868 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
869
870 2018-08-27 Tom Tromey <tom@tromey.com>
871
872 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
873 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
874 ULONGEST_MAX.
875 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
876 ULONGEST_MAX.
877 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
878 ULONGEST_MAX.
879 * sparc-linux-tdep.c (sparc32_linux_sigframe)
880 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
881 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
882 ULONGEST_MAX.
883 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
884 (ppc64_linux_sigaction_tramp_frame)
885 (ppc32_linux_sighandler_tramp_frame)
886 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
887 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
888 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
889 * mn10300-linux-tdep.c (am33_linux_sigframe)
890 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
891 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
892 * mips-linux-tdep.c (mips_linux_o32_sigframe)
893 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
894 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
895 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
896 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
897 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
898 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
899 * microblaze-linux-tdep.c
900 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
901 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
902 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
903 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
904 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
905 * common/common-types.h (ULONGEST_MAX): New define.
906 (CORE_ADDR_MAX): Fix formatting.
907 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
908 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
909 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
910 (arm_linux_rt_sigreturn_tramp_frame)
911 (arm_eabi_linux_sigreturn_tramp_frame)
912 (arm_eabi_linux_rt_sigreturn_tramp_frame)
913 (thumb2_eabi_linux_sigreturn_tramp_frame)
914 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
915 (arm_linux_restart_syscall_tramp_frame)
916 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
917 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
918 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
919 ULONGEST_MAX.
920 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
921
922 2018-08-27 Tom Tromey <tom@tromey.com>
923
924 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
925 CORE_ADDR_MAX.
926 * mips-tdep.c (mips_deal_with_atomic_sequence)
927 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
928 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
929 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
930 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
931 CORE_ADDR_MAX.
932 * aarch64-tdep.c (aarch64_software_single_step): Use
933 CORE_ADDR_MAX.
934
935 2018-08-27 Tom Tromey <tom@tromey.com>
936
937 * linespec.c (complete_linespec_component): Add cast to "char".
938 * completer.c (completion_tracker::build_completion_result): Add
939 cast to "char".
940
941 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
942
943 * solist.h (struct solist, struct target_so_ops): Fix
944 indentation.
945
946 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
947
948 * ada-tasks.c (ada_task_info_s): Remove typedef.
949 (DEF_VEC_O(ada_task_info_s)): Remove.
950 (struct ada_tasks_inferior_data): Initialize fields.
951 <task_list>: Make an std::vector.
952 (get_ada_tasks_inferior_data): Allocate with new.
953 (ada_get_task_number): Adjust.
954 (get_task_number_from_id): Likewise.
955 (valid_task_id): Likewise.
956 (ada_get_task_info_from_ptid): Likewise.
957 (iterate_over_live_ada_tasks): Likewise.
958 (add_ada_task): Likewise.
959 (read_known_tasks): Likewise.
960 (ada_build_task_list): Likewise.
961 (print_ada_task_info): Likewise.
962 (info_task): Likewise.
963 (task_command_1): Likewise.
964
965 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
966
967 * ada-lang.c (add_angle_brackets): Return std::string.
968
969 2018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
970
971 * python/py-threadevent.c (py_get_event_thread): Initialize
972 pythread.
973
974 2018-08-24 Pedro Alves <palves@redhat.com>
975
976 * python/py-bpevent.c (create_breakpoint_event_object): Use
977 copy-initialization.
978 * python/py-continueevent.c (emit_continue_event): Use
979 copy-initialization.
980 * python/py-exitedevent.c (create_exited_event_object): Return a
981 gdbpy_ref<>.
982 (emit_exited_event): Use copy-initialization.
983 * python/py-inferior.c (python_new_inferior)
984 (python_inferior_deleted, add_thread_object): Use
985 copy-initialization.
986 * python/py-infevents.c (create_inferior_call_event_object)
987 (create_register_changed_event_object)
988 (create_memory_changed_event_object): Return a gdbpy_ref<>.
989 (emit_inferior_call_event, emit_memory_changed_event)
990 (emit_register_changed_event): Use copy-initialization.
991 * python/py-newobjfileevent.c (create_new_objfile_event_object):
992 Return a gdbpy_ref<>.
993 (emit_new_objfile_event): Use copy-initialization.
994 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
995 (emit_clear_objfiles_event): Use copy-initialization.
996 * python/py-signalevent.c (create_signal_event_object): Use
997 copy-initialization.
998 * python/py-threadevent.c (create_thread_event_object): Use
999 copy-initialization.
1000
1001 2018-08-24 Pedro Alves <palves@redhat.com>
1002 Simon Marchi <simon.marchi@ericsson.com>
1003
1004 PR gdb/23379
1005 * python/py-continueevent.c: Include "gdbthread.h".
1006 (create_continue_event_object): Add intro comment. Add 'ptid'
1007 parameter. Use it to find thread to pass to
1008 create_thread_event_object.
1009 (emit_continue_event): Pass PTID down to
1010 create_continue_event_object.
1011 * python/py-event.h (py_get_event_thread): Declare.
1012 (create_thread_event_object): Remove default from 'thread'
1013 parameter.
1014 * python/py-stopevent.c (create_stop_event_object): Use
1015 py_get_event_thread.
1016 * python/py-threadevent.c (get_event_thread): Rename to ...
1017 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
1018 and use it to find the thread.
1019 (create_thread_event_object): Assert that THREAD isn't null.
1020 Don't find the event thread here.
1021
1022 2018-08-23 Kevin Buettner <kevinb@redhat.com>
1023
1024 * block.h (blockrange, blockranges): New struct declarations.
1025 (struct block): Add new field named `ranges'.
1026 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
1027 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
1028 macros for accessing ranges in struct block.
1029 (make_blockranges): New declaration.
1030 block.c (make_blockranges): New function.
1031 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
1032 for block.
1033 * symtab.h (find_pc_partial_function): Add new parameter `block'.
1034 * blockframe.c (cache_pc_function_block): New static global.
1035 (clear_pc_function_cache): Clear cache_pc_function_block.
1036 (find_pc_partial_function): Move comment to symtab.h. Add
1037 support for non-contiguous blocks.
1038 * cli/cli-cmds.c (block.h): Include.
1039 (print_disassembly): Handle printing of non-contiguous blocks.
1040 (disassemble_current_function): Likewise.
1041 (disassemble_command): Likewise.
1042
1043 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
1044 BLOCK_START.
1045 * blockframe.c (get_pc_function_start): Likewise.
1046 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
1047 (gcc_symbol_address): Likewise.
1048 * compile/compile-object-run.c (compile_object_run): Likewise.
1049 * compile/compile.c (get_expr_block_and_pc): Likewise.
1050 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
1051 (func_addr_to_tail_call_list): Likewise.
1052 * findvar.c (default_read_var_value): Likewise.
1053 * inline-frame.c (inline_frame_this_id): Likewise.
1054 (skip-inline_frames): Likewise.
1055 * infcmd.c (until_next_command): Likewise.
1056 * linespec.c (convert_linespec_to_sals): Likewise.
1057 * parse.c (parse_exp_in_context_1): Likewise.
1058 * printcmd.c (build_address_symbolic): likewise.
1059 (info_address_command): Likewise.
1060 symtab.c (find_function_start_sal): Likewise.
1061 (skip_prologue_sal): Likewise.
1062 (find_function_alias_target): Likewise.
1063 (find_gnu_ifunc): Likewise.
1064 * stack.c (find_frame_funname): Likewise.
1065 * symtab.c (fixup_symbol_section): Likewise.
1066 (find_function_start_sal): Likewise.
1067 (skip_prologue_sal): Likewsie.
1068 (find_function_alias_target): Likewise.
1069 (find_gnu_ifunc): Likewise.
1070 * tracepoint.c (info_scope_command): Likewise.
1071 * value.c (value_fn_field): Likewise.
1072
1073 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
1074 in place of find_pc_partial_function.
1075 * blockframe.c (find_function_entry_range_from_pc): New function.
1076 * symtab.h (find_function_entry_range_from_pc): Declare and document.
1077 * objfiles.c (objfile_relocate1): Relocate start and end addresses
1078 for each range in a block.
1079
1080
1081 2018-08-23 Xavier Roirand <roirand@adacore.com>
1082
1083 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
1084 incrementation.
1085
1086 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
1087
1088 * solib-svr4.c (read_program_headers_from_bfd): Return
1089 gdb::optional<gdb::byte_vector>.
1090 (svr4_exec_displacement): Adjust.
1091
1092 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
1093
1094 * solib-svr4.c (read_program_header): Return
1095 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
1096 (find_program_interpreter): Return
1097 gdb::optional<gdb::byte_vector>.
1098 (scan_dyntag_auxv): Adjust.
1099 (enable_break): Adjust.
1100 (svr4_exec_displacement): Adjust.
1101
1102 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
1103
1104 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
1105 * inf-child.c (inf_child_target::terminal_save_inferior): New.
1106
1107 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
1108
1109 * guile/scm-string.c (gdbscm_scm_from_printf): Use
1110 string_vprintf.
1111 * guile/scm-utils.c (gdbscm_printf): Likewise.
1112 * serial.c (serial_printf): Likewise.
1113 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
1114
1115 2018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
1116
1117 * stack.c (print_frame): Print frame architecture when printing on
1118 an MI output.
1119 * NEWS: Mention new "arch" attribute in frame output.
1120
1121 2018-08-21 Alan Hayward <alan.hayward@arm.com>
1122
1123 * arch/aarch64.h (aarch64_regnum): Update comment.
1124
1125 2018-08-21 Alan Hayward <alan.hayward@arm.com>
1126
1127 * NEWS: Add SVE to 8.2 section.
1128
1129 2018-08-21 Pedro Alves <palves@redhat.com>
1130
1131 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
1132 out from gdbscm_parse_function_args.
1133 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
1134 gdbscm_parse_function_args_1.
1135
1136 2018-08-21 Simon Marchi <simon.marchi@ericsson.com>
1137
1138 PR gdb/17816
1139 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
1140 operator.
1141
1142 2018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
1143
1144 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
1145
1146 2018-08-19 Michael Spang <spang@google.com>
1147
1148 PR gdb/11786
1149 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
1150 for PT_TLS segments.
1151
1152 2018-08-18 Kevin Buettner <kevinb@redhat.com>
1153
1154 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
1155 dwarf_variable_value.
1156 * dwarf2-frame.c (class dwarf_expr_executor):
1157 Add override for dwarf_variable_value.
1158 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
1159 (class symbol_needs_eval_context): Likewise.
1160 (indirect_synthetic_pointer): Add forward declaration.
1161 (sect_variable_value): New function.
1162 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
1163 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
1164 for DW_OP_GNU_variable_value.
1165
1166 2018-08-16 Tom Tromey <tom@tromey.com>
1167
1168 * top.c (read_command_file): Update.
1169 (command_line_input): Remove "repeat" argument.
1170 * ada-lang.c (get_selections): Update.
1171 * linespec.c (decode_line_2): Update.
1172 * defs.h (command_line_input): Remove argument.
1173 * cli/cli-script.c (read_next_line): Update.
1174 * python/py-gdb-readline.c: Update.
1175
1176 2018-08-17 Tom Tromey <tom@tromey.com>
1177
1178 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
1179 command_line_input.
1180
1181 2018-08-15 Tom Tromey <tom@tromey.com>
1182
1183 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
1184
1185 2018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
1186
1187 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
1188 If used, use find_pc_partial_function to find address range
1189 to disassemble.
1190 * mi/mi-main.c (mi_cmd_list_features): Report
1191 "data-disassemble-a-option" feature.
1192 * NEWS: Mention new -data-disassemble option -a.
1193
1194 2018-08-13 Tom Tromey <tom@tromey.com>
1195
1196 * common/common-defs.h (_FORTIFY_SOURCE): Define.
1197
1198 2018-08-13 Alan Hayward <alan.hayward@arm.com>
1199
1200 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
1201 (aarch64_linux_collect_sve_regset): Likewise.
1202 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
1203 * regcache.h (regcache_map_entry_size): New function.
1204
1205 2018-08-13 Alan Hayward <alan.hayward@arm.com>
1206
1207 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
1208 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
1209 (SVE_HEADER_VL_LENGTH): Likewise.
1210 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
1211 (SVE_HEADER_FLAGS_LENGTH): Likewise.
1212 (SVE_HEADER_RESERVED_LENGTH): Likewise.
1213 (SVE_HEADER_SIZE_OFFSET): Likewise.
1214 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
1215 (SVE_HEADER_VL_OFFSET): Likewise.
1216 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
1217 (SVE_HEADER_FLAGS_OFFSET): Likewise.
1218 (SVE_HEADER_RESERVED_OFFSET): Likewise.
1219 (SVE_HEADER_SIZE): Likewise.
1220 (aarch64_linux_core_read_vq): Add function.
1221 (aarch64_linux_core_read_description): Check for SVE section.
1222
1223 2018-08-13 Alan Hayward <alan.hayward@arm.com>
1224
1225 * aarch64-fbsd-tdep.c
1226 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
1227 collect_size.
1228 * aarch64-linux-tdep.c
1229 (aarch64_linux_iterate_over_regset_sections): Likewise.
1230 * alpha-linux-tdep.c
1231 (alpha_linux_iterate_over_regset_sections):
1232 * alpha-nbsd-tdep.c
1233 (alphanbsd_iterate_over_regset_sections): Likewise.
1234 * amd64-fbsd-tdep.c
1235 (amd64fbsd_iterate_over_regset_sections): Likewise.
1236 * amd64-linux-tdep.c
1237 (amd64_linux_iterate_over_regset_sections): Likewise.
1238 * arm-bsd-tdep.c
1239 (armbsd_iterate_over_regset_sections): Likewise.
1240 * arm-fbsd-tdep.c
1241 (arm_fbsd_iterate_over_regset_sections): Likewise.
1242 * arm-linux-tdep.c
1243 (arm_linux_iterate_over_regset_sections): Likewise.
1244 * corelow.c (get_core_registers_cb): Likewise.
1245 (core_target::fetch_registers): Likewise.
1246 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
1247 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
1248 * gdbarch.h (void): Regenerate.
1249 * gdbarch.sh: Add supply_size and collect_size.
1250 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
1251 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
1252 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
1253 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
1254 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
1255 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
1256 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
1257 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
1258 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
1259 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
1260 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
1261 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
1262 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
1263 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
1264 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
1265 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
1266 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
1267 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
1268 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
1269 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
1270 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
1271 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
1272 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
1273 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
1274 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
1275 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
1276 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
1277 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
1278 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
1279 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
1280
1281 2018-08-10 Simon Marchi <simon.marchi@ericsson.com>
1282
1283 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
1284 with string_printf.
1285
1286 2018-08-10 Keith Seitz <keiths@redhat.com>
1287
1288 * compile/compile-c-support.c (add_code_header, add_code_footer):
1289 Move into policy class.
1290 (c_push_user_expression, pop_user_expression_nop)
1291 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
1292 (compile_program): New host class.
1293 (c_compile_program): New typedef.
1294 (c_compute_porgram): Use c_compile_program.
1295
1296 2018-08-10 Keith Seitz <keiths@redhat.com>
1297
1298 * compile/compile-internal.h (compile_instance::~compile_instance):
1299 Remove calls to htab_delete.
1300 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
1301 * compile.c (compile_instance::compile_instance): Initialize
1302 htab unique pointers.
1303 (compile_instance::get_cached_type, compile_instance::insert_type)
1304 (compile_instance::error_symbol_once): Update for unique_ptr.
1305
1306 2018-08-10 Keith Seitz <keiths@redhat.com>
1307
1308 * compile/compile-c-symbols.c (struct symbol_error)
1309 (hash_symbol_error, eq_symbol_error, del_symbol_error)
1310 (compile_instance::insert_symbol_error)
1311 (compile_instance::error_symbol_once): Move to ...
1312 * compile/compile.c: ... here.
1313
1314 2018-08-10 Keith Seitz <keiths@redhat.com>
1315
1316 * compile/compile-c-support.c (c_get_compile_context): Use `new'
1317 instead of `new_compile_instance'.
1318 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
1319 Update description.
1320 If the symbol error map is not initialized, create it.
1321 (generate_c_for_for_one_symbol): Do not check/initialize
1322 the symbol error map.
1323 * compile/compile-c-types.c (compile_c_instance): Make a class.
1324 Update all callers.
1325 (compile_instance::compile_instance): Initialize the type cache.
1326 (get_cached_type): New function.
1327 (insert_type): Update description.
1328 (compile_c_instance::m_default_cflags): Define.
1329 (convert_type): Update description. Use get_cached_type.
1330 (delete_instance): Moved to destructor.
1331 (new_compile_instance): Moved to constructor.
1332 * compile/compile-c.h (compile_c_instance): Make class inheriting
1333 from compile_instance.
1334 <base>: Remove field.
1335 <type_map, symbol_err_map>: Move to base class.
1336 <c_plugin>: Rename to `m_plugin' and remove pointer type.
1337 * compile/compile-internal.h (compile_instance): Make class.
1338 <type_map_t, symbol_err_map_t>: Define.
1339 <fe>: Rename to `m_gcc_fe'.
1340 <scope, block, gcc_target_options>: Add `m_' prefix.
1341 <m_type_map, m_symbol_err_map>: New fields, moved from
1342 compile_c_instance.
1343 <destroy>: Remove.
1344 (convert_type, new_compile_instance): Remove.
1345 * compile/compile.c (cleanup_compile_instance): Remove.
1346 (compile_to_object): Use unique_ptr to eliminate cleanups.
1347 (compile_instance::set_print_callback, compile_instance::version)
1348 (compile_instance::set_verbose)
1349 (compile_instance::set_driver_filename)
1350 (compile_instance::set_triplet_regexp)
1351 (compile_instance::set_arguments)
1352 (compile_instance::set_source_file)
1353 (compile_instance::compile): Define.
1354
1355 2018-08-10 Keith Seitz <keiths@redhat.com>
1356
1357 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
1358 * compile/compile-c-types.c: Define GCC_METHODN macros and include
1359 gcc-c-fe.def to define C plugin.
1360 (delete_instance): Delete `c_plugin'.
1361 (new_compile_instance): Initialize `c_plugin'.
1362 * compile/compile-c.h: Include gcc_c_plugin.h.
1363 (struct compile_c_instance) <c_plugin>: New member.
1364 * gcc-c-plugin.h: New file.
1365 Update all callers with API change.
1366
1367 2018-08-10 Keith Seitz <keiths@redhat.com>
1368
1369 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
1370 (HFILES_NO_SRCDIR): ... to here.
1371 Add compile-internal.h and compile-c.h.
1372 * compile/compile-c-support.c: Include compile-c.h.
1373 * compile/compile-c-symbols.c: Include compile-c.h.
1374 (generate_c_for_variable_locations): Update comment.
1375 * compile/compile-c-types.c: Include compile-c.h.
1376 * compile/compile-c.h: New file -- moved C language declarations
1377 from other files here.
1378 * compile/compile-internal.h: Do not include hashtab.h or
1379 common/enum-flags.h.
1380 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
1381 (gcc_convert_symbol, gcc_symbol_address)
1382 (generate_c_for_variable_locations, c_get_mode_for_size)
1383 (c_get_range_decl_name): Definitions moved to compile-c.h.
1384 * compile/compile-loc2c.c: Include compile-c.h.
1385
1386 2018-08-10 Keith Seitz <keiths@redhat.com>
1387
1388 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
1389 (c_symbol_substitution_name): ... this.
1390 Update all callers.
1391
1392 2018-08-10 Keith Seitz <keiths@redhat.com>
1393
1394 * compile/compile-c-support.c (c_compute_program): Use
1395 unique_xmalloc_ptr to eliminate cleanup.
1396 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
1397 Return a unique_xmalloc_ptr and eliminate cleanup.
1398 * compile/compile-internal.h (generate_c_for_variable_locations):
1399 Return unique_xmalloc_ptr and update description.
1400
1401 2018-08-10 Alan Hayward <alan.hayward@arm.com>
1402
1403 * corelow.c (core_target::get_core_register_section): Rename
1404 min_size to section_min_size.
1405
1406 2018-08-09 Jim Wilson <jimw@sifive.com>
1407
1408 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
1409 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
1410 * NEWS: Mention new GNU/Linux RISC-V target.
1411 * configure.host: Add riscv*-*-linux*.
1412 * configure.nat: Add riscv*.
1413 * configure.tgt: Add riscv*-*-linux*.
1414 * riscv-linux-nat.c: New file.
1415 * riscv-linux-tdep.c: New file.
1416
1417 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
1418
1419 * infrun.c (resume): Make static, add forward declaration.
1420 (proceed): Update header comment.
1421 * infrun.h (resume): Delete declaration.
1422
1423 2018-08-09 Tom Tromey <tom@tromey.com>
1424
1425 * riscv-tdep.h: Minor formatting fixes.
1426
1427 2018-08-09 Simon Marchi <simon.marchi@ericsson.com>
1428
1429 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
1430 * dwarf-index-cache.c (create_dir_and_check): Likewise.
1431 (test_mkdir_recursive): Likewise.
1432 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
1433
1434 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
1435
1436 * valarith.c (value_subscripted_rvalue): If an array is not in
1437 memory, and we don't know the upper bound, then we can't know that
1438 the requested element exists or not.
1439
1440 2018-08-08 Simon Marchi <simon.marchi@ericsson.com>
1441
1442 * target.c (str_comma_list_concat_elem): Fix typo in comment.
1443 (target_options_to_string): Add comment.
1444
1445 2018-08-08 Tom Tromey <tom@tromey.com>
1446
1447 * unittests/scoped_mmap-selftests.c: Check result of "write".
1448
1449 2018-08-08 Jim Wilson <jimw@sifive.com>
1450
1451 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
1452 (decode_register_index_short): New.
1453 (decode_j_type_insn, decode_cj_type_insn): New.
1454 (decode_b_type_insn, decode_cb_type_insn): New.
1455 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
1456 local xlen. Check xlen when decoding ambiguous compressed insns. In
1457 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
1458 is_c_sw_insn instead of is_sw_insn.
1459 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
1460 (riscv_software_single_step): New.
1461 * riscv-tdep.h (riscv_software_single_step): Declare.
1462
1463 * riscv-tdep.c (riscv_isa_xlen): Drop static.
1464 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
1465
1466 2018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
1467
1468 PR gdb/18050:
1469 * target.c (dispose_inferior): Don't dispose of inferiors that are
1470 already killed.
1471
1472 2018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
1473
1474 * remote.c (remote_target::download_tracepoint): Change char* to
1475 const char*.
1476
1477 2018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
1478
1479 * target.h (target_options_to_string): Return an std::string.
1480 * target.c (str_comma_list_concat_elem): Return void, use
1481 std::string.
1482 (do_option): Likewise.
1483 (target_options_to_string): Return an std::string.
1484 * linux-nat.c (linux_nat_target::wait): Adjust.
1485 * target-debug.h (target_debug_print_options): Adjust.
1486
1487 2018-08-07 Tom Tromey <tom@tromey.com>
1488
1489 * Makefile.in (CPPFLAGS): New variable.
1490 (INTERNAL_CPPFLAGS): Use it.
1491
1492 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
1493
1494 * NEWS: Mention the index cache.
1495
1496 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
1497
1498 * common/pathstuff.h (get_standard_cache_dir): New.
1499 * common/pathstuff.c (get_standard_cache_dir): New.
1500 * build-id.h (build_id_to_string): New.
1501 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
1502 DEBUG_STR_SUFFIX): Move to here.
1503 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
1504 DEBUG_STR_SUFFIX): Move from there.
1505 (write_psymtabs_to_index): Make non-static, add basename
1506 parameter. Write to temporary files, rename when done.
1507 (save_gdb_index_command): Adjust call to
1508 write_psymtabs_to_index.
1509 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
1510 field.
1511 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
1512 (get_gdb_index_contents_from_cache): New.
1513 (get_gdb_index_contents_from_cache_dwz): New.
1514 (dwarf2_initialize_objfile): Read index from cache.
1515 (dwarf2_build_psymtabs): Save to index.
1516 * dwarf-index-cache.h: New file.
1517 * dwarf-index-cache.c: New file.
1518 * dwarf-index-write.h: New file.
1519
1520 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
1521
1522 * gnulib/aclocal.m4: Re-generate.
1523 * gnulib/config.in: Re-generate.
1524 * gnulib/configure: Re-generate.
1525 * gnulib/import/Makefile.am: Re-generate.
1526 * gnulib/import/Makefile.in: Re-generate.
1527 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
1528 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
1529 * gnulib/import/m4/mkdir.m4: New file.
1530 * gnulib/import/mkdir.c: New file.
1531 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
1532 module.
1533
1534 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
1535
1536 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
1537 * common/scoped_mmap.c: New file.
1538 * common/scoped_mmap.h (destroy): New method.
1539 (~scoped_mmap, reset): Use destroy.
1540 (scoped_mmap): New move constructor.
1541 (mmap_file): New declaration.
1542 * unittests/scoped_mmap-selftests.c (test_normal,
1543 test_invalid_filename, run_tests): New functions.
1544 (_initialize_scoped_mmap_selftests): Register selftest.
1545
1546 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
1547
1548 * dwarf2read.c (read_gdb_index_from_section): Rename to...
1549 (read_gdb_index_from_buffer): ... this. Remove section
1550 parameter, add buffer parameter.
1551 (get_gdb_index_contents_ftype,
1552 get_gdb_index_contents_dwz_ftype): New typedefs.
1553 (dwarf2_read_gdb_index): Add callback parameters to get the
1554 index contents.
1555 (get_gdb_index_contents_from_section): New.
1556 (dwarf2_initialize_objfile): Update call to
1557 dwarf2_read_gdb_index.
1558
1559 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
1560
1561 * common/filestuff.h (gdb_fopen_cloexec): New overload.
1562 (gdb_open_cloexec): Likewise.
1563 * nat/linux-osdata.c (command_from_pid): Use string_printf.
1564 (commandline_from_pid): Likewise.
1565 (linux_xfer_osdata_threads): Likewise.
1566 (linux_xfer_osdata_fds): Likewise.
1567 * ada-lang.c (is_package_name): Likewise.
1568 * auxv.c (procfs_xfer_auxv): Likewise.
1569 * breakpoint.c (print_one_breakpoint_location): Use
1570 uiout::field_fmt.
1571 (print_one_catch_solib): Use string_printf.
1572 * coff-pe-read.c (add_pe_exported_sym): Likewise.
1573 (add_pe_forwarded_sym): Likewise.
1574 * dwarf2read.c (create_type_unit_group): Likewise.
1575 (build_error_marker_type): Likewise.
1576 * infcall.c (get_function_name): Likewise.
1577 * valprint.c (print_converted_chars_to_obstack): Likewise.
1578 * xtensa-tdep.c (xtensa_register_type): Likewise.
1579
1580 2018-08-06 Simon Marchi <simon.marchi@ericsson.com>
1581
1582 * remote.c (remote_target::download_tracepoint): Fix format
1583 string errors.
1584
1585 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1586
1587 * tracefile.c: Include common/byte-vector.h.
1588 (trace_save): Change type of buf to gdb::byte_vector. Initialize
1589 with trace_regblock_size if needed. Update uses of buf.
1590
1591 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1592
1593 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
1594 std::vector<unsigned char>.
1595 * tracepoint.c (collection_list::collection_list): Remove
1596 m_regs_mask initializer from initializer list. Resize
1597 m_regs_mask using the largest remote register number.
1598 (collection_list::add_remote_register): Remove size check on
1599 m_regs_mask. Use at to access element.
1600 (collection_list::stringify): Change type of temp_buf to
1601 gdb::char_vector. Update uses of temp_buf. Resize if needed to
1602 stringify the register mask. Use pack_hex_byte for the register
1603 mask.
1604
1605 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1606
1607 * tracepoint.h (class collection_list) <add_register>: Remove.
1608 <add_remote_register, add_ax_registers, add_local_register>:
1609 Declare.
1610 <add_memrange>: Add scope parameter.
1611 * tracepoint.c (encode_actions_1): Likewise.
1612 (collection_list::add_register): Rename to ...
1613 (collection_list::add_remote_register): ... this. Update
1614 comment.
1615 (collection_list::add_ax_registers, add_local_register): New
1616 methods.
1617 (collection_list::add_memrange): Add scope parameter. Call
1618 add_local_register instead of add_register.
1619 (finalize_tracepoint_aexpr): New function.
1620 (collection_list::collect_symbol): Update calls to add_memrange.
1621 Call add_local_register instead of add_register. Call
1622 add_ax_registers. Call finalize_tracepoint_aexpr.
1623 (encode_actions_1): Get remote regnos for $reg action. Call
1624 add_remote_register, add_ax_registers, and add_local_register.
1625 Update call to add_memrange. Call finalize_tracepoint_aexpr.
1626 (validate_actionline): Call finalize_tracepoint_aexpr.
1627
1628 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1629
1630 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
1631 Replace array buf with gdb::char_vector buf, of size
1632 get_remote_packet_size (). Replace references to buf and
1633 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
1634 and xsnprintf with snprintf. Raise errors if the buffer is too
1635 small.
1636
1637 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1638
1639 * remote.c (remote_target::download_tracepoint): Fix the has_more
1640 predicate in the QTDP action list iteration.
1641
1642 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1643
1644 * remote.c (remote_target::download_tracepoint): Fix indentation
1645 in for block.
1646
1647 2018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1648
1649 * proc-api.c (_initialize_proc_api): Remove c, unused.
1650 * procfs.c (procfs_init_inferior): Remove signals, unused.
1651 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
1652 unused.
1653
1654 2018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
1655 Andrew Burgess <andrew.burgess@embecosm.com>
1656
1657 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
1658 'W_STOPCODE (0)' as this could be ambiguous.
1659
1660 2018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
1661
1662 * ser-tcp.c (net_open): Fix thinko when deciding whether to
1663 disable TCP's Nagle algorithm (use "ai_protocol" instead of
1664 "ai_socktype").
1665
1666 2018-08-02 Tom Tromey <tom@tromey.com>
1667
1668 PR symtab/16842.
1669 * dwarf2read.c (read_func_scope): Set symtab on template parameter
1670 symbols.
1671 (process_structure_scope): Likewise.
1672
1673 2018-08-02 Xavier Roirand <roirand@adacore.com>
1674
1675 PR gdb/22629:
1676 * darwin-nat.c (darwin_kill_inferior): Fix handling of
1677 kill inferior.
1678
1679 2018-08-02 Tom Tromey <tom@tromey.com>
1680
1681 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
1682 (darwin_suspend_inferior, darwin_resume_inferior)
1683 (darwin_decode_notify_message, darwin_resume_inferior_threads)
1684 (darwin_check_new_threads): Check result of get_darwin_inferior.
1685
1686 2018-07-31 Joel Brobecker <brobecker@adacore.com>
1687
1688 GDB 8.1.1 released.
1689
1690 2018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
1691
1692 * varobj.c (varobj_get_path_expr_parent): Report an error if
1693 parent is a dynamic varobj.
1694
1695 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
1696
1697 * gnulib/aclocal.m4: Re-generate.
1698 * gnulib/config.in: Re-generate.
1699 * gnulib/configure: Re-generate.
1700 * gnulib/import/Makefile.in: Re-generate.
1701 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
1702 * gnulib/import/m4/onceonly.m4: Re-generate.
1703
1704 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
1705
1706 * target-descriptions.c (struct xml_test_tdesc): New.
1707 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
1708 (record_xml_tdesc): Update.
1709 (maintenance_check_xml_descriptions): Update.
1710 * target-descriptions.h (record_xml_tdesc): Update comment.
1711
1712 2018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
1713
1714 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
1715 checking array bounds are defined.
1716
1717 2018-07-30 Tom Tromey <tom@tromey.com>
1718
1719 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
1720 irreflexivity violation.
1721
1722 2018-07-30 Tom Tromey <tom@tromey.com>
1723
1724 * cli/cli-decode.c (lookup_cmd): Remove lint code.
1725 * value.c (unpack_long): Remove lint code.
1726 * valops.c (value_ind): Remove lint code.
1727 * valarith.c (value_x_binop, value_x_unop, value_equal)
1728 (value_pos): Remove lint code.
1729
1730 2018-07-28 Tom de Vries <tdevries@suse.de>
1731
1732 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
1733 with undefined upper bound as <optimized out>.
1734
1735 2018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
1736
1737 * gcore.in: Rename variable "name" to "prefix". Expand
1738 "usage" text.
1739
1740 2018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
1741
1742 * windows-nat.c (windows_nat_target::create_inferior): Update to
1743 call close() in global namespace.
1744
1745 2018-07-26 Tom Tromey <tom@tromey.com>
1746
1747 * dwarf-index-write.c (add_address_entry): Don't add objfile
1748 offsets.
1749 * dbxread.c (find_stab_function): Rename from
1750 find_stab_function_addr. Return a bound_minimal_symbol.
1751 (read_dbx_symtab): Use raw_text_low, raw_text_high.
1752 Don't add objfile offsets.
1753 (end_psymtab): Use raw_text_low, raw_text_high,
1754 MSYMBOL_VALUE_RAW_ADDRESS.
1755 (read_ofile_symtab): Update.
1756 (process_one_symbol): Update.
1757 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
1758 offsets.
1759 (dw2_relocate): Remove.
1760 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
1761 searching addrmap.
1762 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
1763 Update.
1764 (process_psymtab_comp_unit_reader, add_partial_symbol)
1765 (add_partial_subprogram, dwarf2_ranges_read): Update.
1766 (load_partial_dies): Update.
1767 (add_address_entry): Don't add objfile offsets.
1768 (dwarf2_build_include_psymtabs): Update.
1769 (create_addrmap_from_aranges): Don't add objfile offsets.
1770 (dw2_find_pc_sect_compunit_symtab): Update.
1771 * mdebugread.c (parse_symbol): Don't add objfile offsets.
1772 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
1773 Update.
1774 (parse_partial_symbols): Don't add objfile offsets. Use
1775 raw_text_low, raw_text_high. Update.
1776 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
1777 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
1778 or call 'relocate' quick function. Clear psymbol_map.
1779 * psympriv.h (struct partial_symbol) <address>: Add section
1780 offset.
1781 <set_unrelocated_address>: Rename from set_address.
1782 <raw_text_low, raw_text_high>: New methods.
1783 <text_low, text_high>: Add objfile parameter.
1784 (add_psymbol_to_bcache): Add 'section' parameter. Call
1785 set_unrelocated_address.
1786 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
1787 (find_pc_psymbol): Update.
1788 (fixup_psymbol_section, relocate_psymtabs): Remove.
1789 (dump_psymtab, psym_functions): Update.
1790 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
1791 parameter.
1792 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
1793 (start_psymtab_common): Update.
1794 * symfile-debug.c (debug_qf_relocate): Remove.
1795 (debug_sym_quick_functions): Update.
1796 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
1797 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
1798 Update.
1799
1800 2018-07-26 Tom Tromey <tromey@redhat.com>
1801
1802 * dbxread.c (end_psymtab): Use text_high_valid and
1803 text_low_valid.
1804 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
1805 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
1806 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
1807 Update comment.
1808 <text_low_valid, text_high_valid>: New fields.
1809 <set_text_low, set_text_high>: Update.
1810 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
1811
1812 2018-07-26 Tom Tromey <tom@tromey.com>
1813
1814 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
1815 Update.
1816 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
1817 textlow and texthigh fields.
1818 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
1819 Update.
1820 * mdebugread.c (parse_lines, parse_partial_symbols)
1821 (psymtab_to_symtab_1): Update.
1822 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
1823 Rename fields. Update comment. Now private.
1824 <text_low, text_high, set_text_low, set_text_high>: New methods.
1825 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
1826 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
1827 (start_psymtab_common, maintenance_info_psymtabs)
1828 (maintenance_check_psymtabs): Update.
1829 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
1830 texthigh fields.
1831 (scan_xcoff_symtab): Update.
1832
1833 2018-07-26 Tom Tromey <tromey@redhat.com>
1834
1835 * psympriv.h (struct partial_symbol) <unrelocated_address,
1836 address, set_address>: New methods.
1837 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
1838 (fixup_psymbol_section, relocate_psymtabs): Update.
1839 (print_partial_symbols): Add 'objfile' parameter. Update.
1840 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
1841 Update.
1842
1843 2018-07-26 Tom Tromey <tom@tromey.com>
1844
1845 * dwarf-index-write.c (write_psymbols, debug_names::insert)
1846 (debug_names::write_psymbols): Update.
1847 * psympriv.h (struct partial_symbol): Derive from
1848 general_symbol_info.
1849 <obj_section>: New method.
1850 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
1851 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
1852 (find_pc_sect_psymbol, fixup_psymbol_section)
1853 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
1854 (print_partial_symbols, recursively_search_psymtabs)
1855 (compare_psymbols, psymbol_hash, psymbol_compare)
1856 (add_psymbol_to_bcache, maintenance_check_psymtabs)
1857 (psymbol_name_matches, psym_fill_psymbol_map): Update.
1858
1859 2018-07-26 Tom Tromey <tromey@redhat.com>
1860
1861 * dbxread.c (end_psymtab): Remove dead code.
1862
1863 2018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
1864
1865 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
1866 DWARF unwinders are disabled.
1867 * dwarf2-frame.c: Add dwarf2read.h include.
1868 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
1869 disabled.
1870 (dwarf2_frame_unwinders_enabled_p): Define.
1871 (show_dwarf_unwinders_enabled_p): New function.
1872 (_initialize_dwarf2_frame): Register switch to control DWARF
1873 unwinder use.
1874 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
1875 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
1876 (show_dwarf_cmdlist): Remove static keyword.
1877 * dwarf2read.h (set_dwarf_cmdlist): Declare.
1878 (show_dwarf_cmdlist): Declare.
1879 * NEWS: Document new feature.
1880
1881 2018-07-26 Tom de Vries <tdevries@suse.de>
1882
1883 PR breakpoints/23366
1884 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
1885
1886 2018-07-26 Tom de Vries <tdevries@suse.de>
1887
1888 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
1889 DW_AT_count can't be translated to a dynamic prop.
1890
1891 2018-07-25 Tom de Vries <tdevries@suse.de>
1892
1893 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
1894 try/catch.
1895
1896 2018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
1897
1898 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
1899
1900 2018-07-25 Joel Brobecker <brobecker@adacore.com>
1901
1902 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
1903
1904 2018-07-24 Keith Seitz <keiths@redhat.comt
1905
1906 PR symtab/23010
1907 * dwarf2read.c (dw2_add_symbol_to_list): New function.
1908 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
1909 instead of add_symbol_to_list.
1910 (read_file_scope): Call prepare_one_comp_unit before reading
1911 any other DIEs.
1912
1913 2018-07-24 Simon Marchi <simon.marchi@ericsson.com>
1914
1915 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
1916
1917 2018-07-24 Tom Tromey <tom@tromey.com>
1918
1919 * utils.c (malloc, realloc, free): Don't declare.
1920 * configure, config.in: Rebuild.
1921 * configure.ac: Don't check for declarations of free, malloc, or
1922 realloc.
1923
1924 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1925
1926 * aarch64-linux-nat.c
1927 (aarch64_linux_nat_target::stopped_data_address): Remove unused
1928 variable.
1929 * arm-linux-nat.c (fetch_regs): Likewise.
1930 (store_regs): Likewise.
1931 (fetch_vfp_regs): Likewise.
1932 (store_vfp_regs): Likewise.
1933 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
1934 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
1935 (arm_linux_nat_target::insert_watchpoint): Likewise.
1936 (arm_linux_nat_target::remove_watchpoint): Likewise.
1937 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
1938 Likewise.
1939 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
1940 Likewise.
1941 * ppc-linux-nat.c (fetch_register): Likewise.
1942 (fetch_all_gp_regs): Likewise.
1943 (fetch_ppc_registers): Likewise.
1944 (store_all_gp_regs): Likewise.
1945 (store_ppc_registers): Likewise.
1946 (hwdebug_insert_point): Likewise.
1947 (can_use_watchpoint_cond_accel): Likewise.
1948 * remote-sim.c (gdb_os_write_stdout): Likewise.
1949
1950 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1951 Tom Tromey <tom@tromey.com>
1952
1953 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
1954 test for it.
1955 * configure: Rebuild.
1956
1957 2018-07-22 Tom Tromey <tom@tromey.com>
1958
1959 * regformats/regdat.sh: Define xmltarget_${name} inside
1960 #ifndef IN_PROCESS_AGENT.
1961
1962 2018-07-22 Tom Tromey <tom@tromey.com>
1963
1964 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
1965
1966 2018-07-22 Tom Tromey <tom@tromey.com>
1967
1968 * symfile.c (reread_symbols): Notify iter, not objfile.
1969
1970 2018-07-22 Tom Tromey <tom@tromey.com>
1971
1972 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
1973 Use arch_ops.
1974 (ravenscar_thread_target::prepare_to_store): Likewise.
1975
1976 2018-07-22 Tom Tromey <tom@tromey.com>
1977
1978 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
1979 unused variable. Call value_fetch_lazy when needed.
1980 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
1981 Remove unused variable. Call value_fetch_lazy when needed.
1982
1983 2018-07-22 Tom Tromey <tom@tromey.com>
1984
1985 * m32c-tdep.c (mark_dma): Return void.
1986 (make_regs): Remove unused declarations.
1987
1988 2018-07-22 Tom Tromey <tom@tromey.com>
1989
1990 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
1991 cmdscm_get_valid_command_smob_arg_unsafe for effect.
1992 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
1993 bkscm_get_valid_block_smob_arg_unsafe for effect.
1994
1995 2018-07-22 Tom Tromey <tom@tromey.com>
1996
1997 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
1998 value_type.
1999
2000 2018-07-22 Tom Tromey <tom@tromey.com>
2001
2002 * windows-nat.c (saved_context): Conditionally define.
2003 * remote.c (remote_target::remote_btrace_maybe_reopen):
2004 Conditionally declare "warned".
2005 * inflow.c (sigquit_ours): Conditionally define.
2006 (new_tty): Move "tty" declaration inside #if.
2007 * guile/guile.c (guile_datadir): Conditionally define.
2008 * charset.c (set_be_le_names): Move some declarations inside #if.
2009 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
2010 #if.
2011 (parse_xml_btrace_conf): Likewise.
2012
2013 2018-07-22 Tom Tromey <tom@tromey.com>
2014
2015 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
2016
2017 2018-07-22 Tom Tromey <tom@tromey.com>
2018
2019 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
2020 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
2021 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
2022 * buildsym-legacy.c (get_macro_table): Remove unused variable.
2023 * stack.c (frame_apply_level_command): Remove unused variable.
2024 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
2025 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
2026 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
2027 unused variable.
2028 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
2029 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
2030 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
2031 variable.
2032 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
2033 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
2034 variable.
2035 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
2036 Remove unused variable.
2037 * cli/cli-script.c (recurse_read_control_structure): Remove unused
2038 variable.
2039 * common/tdesc.c (print_xml_feature::visit): Remove unused
2040 variable.
2041 * compile/compile-object-load.c (store_regs): Remove unused
2042 variables.
2043 * complaints.c (clear_complaints): Remove unused variable.
2044 * corelow.c (core_target_open): Remove unused variable.
2045 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
2046 variable.
2047 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
2048 variable.
2049 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
2050 variable.
2051 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
2052 variable.
2053 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
2054 variable.
2055 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
2056 variable.
2057 * ia64-tdep.c (examine_prologue): Remove unused variable.
2058 * infcall.c (run_inferior_call): Remove unused variable.
2059 * inferior.c (exit_inferior): Remove unused variable.
2060 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
2061 * linespec.c (decode_line_2): Remove unused variable.
2062 * linux-nat.c (super_close): Remove.
2063 * linux-tdep.c (linux_info_proc): Remove unused variable.
2064 * mi/mi-main.c (mi_execute_command): Remove unused variable.
2065 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
2066 Remove unused variable.
2067 * parse.c (find_minsym_type_and_address): Remove unused variable.
2068 * printcmd.c (info_symbol_command, printf_floating): Remove unused
2069 variable.
2070 * python/py-breakpoint.c (bppy_set_commands): Remove unused
2071 variable.
2072 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
2073 variables.
2074 * record-btrace.c (record_btrace_target::store_registers): Remove
2075 unused variable.
2076 (cmd_show_record_btrace_cpu): Remove unused variable.
2077 * riscv-tdep.c (riscv_register_reggroup_p)
2078 (riscv_push_dummy_call, riscv_return_value): Remove unused
2079 variable.
2080 * rust-exp.y (literal): Remove unused variable.
2081 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
2082 unused variable.
2083 <STRUCTOP_ANONYMOUS>: Likewise.
2084 * s390-linux-tdep.c (s390_linux_init_abi_31)
2085 (s390_linux_init_abi_64): Remove unused variable.
2086 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
2087 (file_select_thread, net_windows_open, _initialize_ser_windows):
2088 Remove unused variables.
2089 * symtab.c (find_pc_sect_line): Remove unused variable.
2090 * target-memory.c (compute_garbled_blocks): Remove unused
2091 variable.
2092 (target_write_memory_blocks): Remove unused variable.
2093 * target.c (target_stack::unpush): Remove unused variables.
2094 * tracepoint.c (start_tracing, all_tracepoint_actions)
2095 (merge_uploaded_trace_state_variables)
2096 (print_one_static_tracepoint_marker): Remove unused variable.
2097 * unittests/basic_string_view/element_access/char/1.cc (test01):
2098 Remove unused variable.
2099 * windows-nat.c (windows_continue, windows_add_all_dlls)
2100 (do_initial_windows_stuff, windows_nat_target::create_inferior):
2101 Remove unused variables.
2102
2103 2018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
2104
2105 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
2106 attr_profile in HAVE_ELF.
2107 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
2108 HAVE_ELF.
2109
2110 2018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
2111
2112 * frame.c (frame_register_unwind): Change parameter name.
2113 (frame_unwind_register): Likewise.
2114 (frame_unwind_register_value): Likewise.
2115 (frame_unwind_register_signed): Likewise.
2116 (frame_unwind_register_unsigned): Likewise.
2117 * frame.h (frame_register_unwind): Likewise.
2118 (frame_unwind_register): Likewise.
2119 (frame_unwind_register_value): Likewise.
2120 (frame_unwind_register_signed): Likewise.
2121 (frame_unwind_register_unsigned): Likewise.
2122 (frame_unwind_arch): Likewise.
2123
2124 2018-07-20 Maciej W. Rozycki <macro@mips.com>
2125
2126 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
2127 ISA maintenance.
2128
2129 2018-07-20 Maciej W. Rozycki <macro@mips.com>
2130
2131 * mips-linux-nat.c (mips_linux_nat_target::read_description):
2132 Call `get_ptrace_pid' rather than extracting the ptrace PID by
2133 hand.
2134
2135 2018-07-20 Keith Seitz <keiths@redhat.com>
2136
2137 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
2138 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
2139 m_compunit_symtab, m_language>: Add "m_" prefix.
2140 Update all uses.
2141 * buildsym.c: Update all uses.
2142
2143 2018-07-20 Tom Tromey <tom@tromey.com>
2144
2145 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
2146 * buildsym.h (record_line_ftype): Remove typedef.
2147
2148 2018-07-20 Tom Tromey <tom@tromey.com>
2149
2150 * buildsym-legacy.h (augment_type_symtab): Don't declare.
2151 (end_expandable_symtab): Likewise.
2152 (end_symtab_get_static_block): Likewise.
2153 (end_symtab_from_static_block): Likewise.
2154 * buildsym-legacy.c (augment_type_symtab): Remove.
2155 (end_expandable_symtab): Remove.
2156 (end_symtab_get_static_block): Remove.
2157 (end_symtab_from_static_block): Remove.
2158
2159 2018-07-20 Tom Tromey <tom@tromey.com>
2160
2161 * dwarf2read.c: Include buildsym.h.
2162 (struct dwarf2_cu) <builder>: New method.
2163 (fixup_go_packaging): Update.
2164 (process_full_comp_unit, process_full_type_unit): Update. Don't
2165 use scoped_free_pendings.
2166 (using_directives): Add "cu" parameter, remove "language".
2167 (read_import_statement, setup_type_unit_groups, )
2168 (read_func_scope, read_lexical_block_scope)
2169 (dwarf2_record_block_ranges, read_namespace): Update.
2170 (lnp_state_machine::lnp_state_machine): Add cu parameter.
2171 (lnp_state_machine::handle_end_sequence): Update.
2172 (class lnp_state_machine) <m_cu>: New member.
2173 <m_record_line_callback>: Remove.
2174 <m_currently_recording_lines>: New member.
2175 (lnp_state_machine::handle_set_file): Update.
2176 (noop_record_line): Remove.
2177 (dwarf_record_line_p): Add cu parameter.
2178 (dwarf_record_line_1, dwarf_finish_line): Likewise.
2179 (lnp_state_machine::record_line)
2180 (lnp_state_machine::lnp_state_machine)
2181 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
2182 (dwarf_decode_lines): Update.
2183 (dwarf2_start_subfile): Add cu parameter.
2184 (dwarf2_start_symtab, new_symbol): Update.
2185 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
2186 Remove dwarf2_per_objfile parameter.
2187 (dwarf_decode_macros): Update.
2188
2189 2018-07-20 Tom Tromey <tom@tromey.com>
2190
2191 * stabsread.c (define_symbol): Update.
2192 * buildsym-legacy.h (get_buildsym_compunit): Declare.
2193 * dwarf2read.c (new_symbol): Update.
2194 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
2195 * cp-namespace.c: Include buildsym.h.
2196 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
2197 * buildsym-legacy.c (get_buildsym_compunit): New function.
2198
2199 2018-07-20 Tom Tromey <tom@tromey.com>
2200
2201 * xcoffread.c: Include buildsym-legacy.h.
2202 * windows-nat.c: Include buildsym-legacy.h.
2203 * stabsread.c: Include buildsym-legacy.h.
2204 * mdebugread.c: Include buildsym-legacy.h.
2205 * buildsym-legacy.h: New file.
2206 * buildsym-legacy.c: New file, from buildsym.c.
2207 * go32-nat.c: Include buildsym-legacy.h.
2208 * dwarf2read.c: Include buildsym-legacy.h.
2209 * dbxread.c: Include buildsym-legacy.h.
2210 * cp-namespace.c: Include buildsym-legacy.h.
2211 * coffread.c: Include buildsym-legacy.h.
2212 * buildsym.h: Move some contents to buildsym-legacy.h.
2213 * buildsym.c: Include buildsym-legacy.h. Move many functions to
2214 buildsym-legacy.c.
2215 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
2216
2217 2018-07-20 Tom Tromey <tom@tromey.com>
2218
2219 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
2220 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
2221 (buildsym_compunit::buildsym_compunit)
2222 (buildsym_compunit::~buildsym_compunit)
2223 (buildsym_compunit::get_macro_table): Define.
2224
2225 2018-07-20 Tom Tromey <tom@tromey.com>
2226
2227 * buildsym.c (reset_symtab_globals): Remove.
2228 (buildsym_compunit::end_symtab_from_static_block): Update.
2229 (buildsym_compunit::augment_type_symtab): Update.
2230 (end_symtab_from_static_block): Call free_buildsym_compunit.
2231 (augment_type_symtab, end_symtab, end_expandable_symtab):
2232 Likewise.
2233
2234 2018-07-20 Tom Tromey <tom@tromey.com>
2235
2236 * arch-utils.c: Do not include buildsym.h.
2237 * mipsread.c: Do not include buildsym.h.
2238 * machoread.c: Do not include buildsym.h.
2239 * elfread.c: Do not include buildsym.h.
2240
2241 2018-07-20 Tom Tromey <tom@tromey.com>
2242
2243 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
2244 initialization.
2245 (buildsym_compunit): Add new constructor.
2246 (struct buildsym_compunit) <get_last_source_file, finish_block,
2247 record_block_range, start_subfile, patch_subfile_names,
2248 push_subfile, pop_subfile, record_line, get_compunit_symtab,
2249 set_last_source_start_addr, get_last_source_start_addr,
2250 get_local_using_directives, set_local_using_directives,
2251 get_global_using_directives, outermost_context_p,
2252 get_current_context_stack, get_context_stack_depth,
2253 get_current_subfile, get_local_symbols, get_file_symbols,
2254 get_global_symbols, record_debugformat, record_producer,
2255 push_context, pop_context, end_symtab_get_static_block,
2256 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
2257 New public methods.
2258 <record_pending_block, finish_block_internal, make_blockvector,
2259 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
2260 private methods.
2261 Update all users.
2262
2263 2018-05-22 Tom Tromey <tom@tromey.com>
2264
2265 * buildsym.c (record_pending_block): Move earlier. Remove objfile
2266 parameter.
2267 (finish_block_internal): Update.
2268
2269 2018-07-20 Tom Tromey <tom@tromey.com>
2270
2271 * buildsym.c (record_pending_block): Move earlier. Remove objfile
2272 parameter.
2273 (finish_block_internal): Update.
2274
2275 2018-07-20 Tom Tromey <tom@tromey.com>
2276
2277 * buildsym.h (EXTERN): Don't define or undef.
2278 * buildsym.c (EXTERN): Don't define.
2279
2280 2018-07-20 Tom Tromey <tom@tromey.com>
2281
2282 * buildsym.c: Remove TODO comment.
2283
2284 2018-07-20 Tom Tromey <tom@tromey.com>
2285
2286 * coffread.c (coff_symtab_read): Update.
2287 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
2288 (xcoff_new_init): Update.
2289 * mipsread.c (mipscoff_new_init): Update.
2290 * mdebugread.c (mdebug_build_psymtabs): Update.
2291 * elfread.c (elf_new_init): Update.
2292 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
2293 Update.
2294 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
2295 (coffstab_build_psymtabs, elfstab_build_psymtabs)
2296 (stabsect_build_psymtabs): Update.
2297 * buildsym.h (buildsym_init): Don't declare.
2298 * buildsym.c: Update comment.
2299 (prepare_for_building): Remove.
2300 (start_symtab, restart_symtab): Update.
2301 (reset_symtab_globals): Update comment.
2302 (buildsym_init): Remove.
2303
2304 2018-07-20 Tom Tromey <tom@tromey.com>
2305
2306 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
2307 * stabsread.c (patch_block_stabs, define_symbol, read_type)
2308 (read_enum_type, common_block_start, common_block_end)
2309 (cleanup_undefined_types_1, finish_global_stabs): Update.
2310 * mdebugread.c (psymtab_to_symtab_1): Update.
2311 * dwarf2read.c (fixup_go_packaging, read_func_scope)
2312 (read_lexical_block_scope, new_symbol): Update.
2313 * dbxread.c (process_one_symbol): Update.
2314 * coffread.c (coff_symtab_read, process_coff_symbol)
2315 (coff_read_enum_type): Update.
2316 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
2317 declare.
2318 (get_local_symbols, get_file_symbols, get_global_symbols): New
2319 functions.
2320 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
2321 m_global_symbols.
2322 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
2323 (~scoped_free_pendings): Update.
2324 (finish_block, prepare_for_building, reset_symtab_globals)
2325 (end_symtab_get_static_block, end_symtab_with_blockvector)
2326 (augment_type_symtab, push_context): Update.
2327 (get_local_symbols, get_file_symbols, get_global_symbols): New
2328 functions.
2329 (buildsym_init): Update.
2330
2331 2018-07-20 Tom Tromey <tom@tromey.com>
2332
2333 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
2334 (process_full_type_unit): Likewise.
2335 (dwarf2_start_symtab): Set list_in_scope.
2336
2337 2018-07-20 Tom Tromey <tom@tromey.com>
2338
2339 * dwarf2read.c (process_psymtab_comp_unit_reader)
2340 (build_type_psymtabs_reader): Do not set list_in_scope.
2341
2342 2018-07-20 Tom Tromey <tom@tromey.com>
2343
2344 * buildsym.c (free_pendings): Remove.
2345 (add_symbol_to_list, scoped_free_pendings)
2346 (finish_block_internal, buildsym_init): Update.
2347
2348 2018-07-20 Tom Tromey <tom@tromey.com>
2349
2350 * xcoffread.c (read_xcoff_symtab): Update.
2351 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
2352 Update.
2353 * dbxread.c (process_one_symbol): Update.
2354 * coffread.c (coff_symtab_read): Update.
2355 * buildsym.h (finish_block): Update.
2356 * buildsym.c (finish_block): Remove "listhead" argument.
2357 (end_symtab_get_static_block): Update.
2358
2359 2018-07-20 Tom Tromey <tom@tromey.com>
2360
2361 * buildsym.h (class scoped_free_pendings): Remove constructor.
2362 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
2363 method.
2364 <m_pending_block_obstack, m_pending_blocks>: New members.
2365 (pending_block_obstack, pending_blocks): Remove.
2366 (scoped_free_pendings::scoped_free_pendings): Default.
2367 (~scoped_free_pendings): Update.
2368 (free_pending_blocks): Remove.
2369 (finish_block_internal, record_pending_block, make_blockvector)
2370 (end_symtab_get_static_block, augment_type_symtab, push_context)
2371 (buildsym_init): Update.
2372
2373 2018-07-20 Tom Tromey <tom@tromey.com>
2374
2375 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
2376 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
2377 members.
2378 (pending_addrmap, pending_addrmap_obstack)
2379 (pending_addrmap_interesting): Remove.
2380 (scoped_free_pendings, record_block_range, make_blockvector)
2381 (prepare_for_building, reset_symtab_globals, buildsym_init):
2382 Update.
2383
2384 2018-07-20 Tom Tromey <tom@tromey.com>
2385
2386 * xcoffread.c (process_linenos): Update.
2387 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
2388 * mdebugread.c (psymtab_to_symtab_1): Update.
2389 * dwarf2read.c (setup_type_unit_groups)
2390 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
2391 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
2392 * dbxread.c (process_one_symbol): Update.
2393 * coffread.c (coff_symtab_read, enter_linenos)
2394 (process_coff_symbol): Update.
2395 * buildsym.h (current_subfile): Don't declare.
2396 (get_current_subfile): Declare.
2397 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
2398 member.
2399 (start_subfile, free_buildsym_compunit, push_subfile)
2400 (prepare_for_building, start_symtab): Update.
2401 (get_current_subfile): New function.
2402
2403 2018-07-20 Tom Tromey <tom@tromey.com>
2404
2405 * coffread.c (coff_symtab_read): Update.
2406 * xcoffread.c (read_xcoff_symtab): Update.
2407 * dwarf2read.c (new_symbol): Update.
2408 (read_func_scope, read_lexical_block_scope): Update.
2409 * dbxread.c (process_one_symbol): Update.
2410 * buildsym.h (context_stack, context_stack_depth): Don't declare.
2411 (outermost_context_p): Remove macro.
2412 (outermost_context_p, get_current_context_stack)
2413 (get_context_stack_depth): Declare.
2414 (pop_context): Return struct context_stack.
2415 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
2416 member.
2417 (context_stack_size): Remove.
2418 (INITIAL_CONTEXT_STACK_SIZE): Remove.
2419 (prepare_for_building, end_symtab_get_static_block)
2420 (augment_type_symtab, push_context): Update.
2421 (pop_context): Return struct context_stack.
2422 (outermost_context_p, get_current_context_stack)
2423 (get_context_stack_depth): New functions.
2424 (buildsym_init): Update.
2425
2426 2018-07-20 Tom Tromey <tom@tromey.com>
2427
2428 * rust-exp.y: Now a pure parser. Update all rules.
2429 (%union): Move earlier.
2430 (current_parser, work_obstack): Remove globals.
2431 (rust_parser, ~rust_parser): Update.
2432 (class rust_parser) <copy_name, concat3, crate_name, super_name,
2433 lex_character, lex_number, lex_string, lex_identifier,
2434 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
2435 convert_name, convert_params_to_expression,
2436 convert_ast_to_expression, ast_basic_type, ast_operation,
2437 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
2438 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
2439 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
2440 ast_array_type, ast_slice_type, ast_reference_type,
2441 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
2442 (rust_parse): Update.
2443 (rustyyerror, rustyylex): Add parser parameter.
2444 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
2445 (rust_lex_stringish_test, rust_lex_test_sequence)
2446 (rust_lex_test_trailing_dot, rust_lex_test_completion)
2447 (rust_lex_test_push_back, rust_lex_tests): Update.
2448
2449 2018-07-19 Pedro Alves <palves@redhat.com>
2450
2451 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
2452 gdb::unique_xmalloc_ptr.
2453 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
2454 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
2455 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
2456 copy-initialization.
2457 * guile/scm-pretty-print.c (ppscm_print_children): Use
2458 gdb::unique_xmalloc_ptr instead of cleanups.
2459 (gdbscm_apply_val_pretty_printer): Remove cleanups.
2460 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
2461 gdb::unique_xmalloc_ptr.
2462 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
2463 Adjust to use gdb::unique_xmalloc_ptr.
2464 * guile/scm-utils.c (extract_arg): Adjust.
2465 * guile/scm-value.c (gdbscm_value_field): Adjust to use
2466 gdb::unique_xmalloc_ptr instead of a cleanup.
2467
2468 2018-07-19 Tom Tromey <tom@tromey.com>
2469
2470 * utils.c (do_value_free_to_mark)
2471 (make_cleanup_value_free_to_mark): Remove.
2472 * utils.h (make_cleanup_value_free_to_mark): Remove.
2473
2474 2018-07-19 Pedro Alves <palves@redhat.com>
2475
2476 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
2477 forwarding reference.
2478
2479 2018-07-18 Pedro Alves <palves@redhat.com>
2480
2481 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
2482 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
2483 cleanup.
2484
2485 2018-07-18 Pedro Alves <palves@redhat.com>
2486
2487 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
2488 exceptions.
2489 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
2490 (gdbscm_wrap): New.
2491 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
2492 directly instead of a cleanup.
2493 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
2494 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
2495 (vlscm_binop_gdbthrow): New, factored out from ...
2496 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
2497 (vlscm_rich_compare): Use gdbscm_wrap.
2498 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
2499 instead of a cleanup.
2500 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
2501 cleanup.
2502 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
2503 Use xfree directly instead of a cleanup.
2504 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
2505 Adjust to use gdbscm_wrap and scoped_value_mark.
2506 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
2507 (gdbscm_value_address, gdbscm_value_dereference)
2508 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
2509 scoped_value_mark.
2510 (gdbscm_value_dynamic_type): Use scoped_value_mark.
2511 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
2512 scoped_value_mark.
2513 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
2514 gdbscm_wrap and scoped_value_mark.
2515 (gdbscm_value_to_string): Use xfree directly instead of a
2516 cleanup. Move 'buffer' unique_ptr to TRY scope.
2517 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
2518 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
2519 scoped_value_mark.
2520 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
2521 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
2522 scoped_value_mark.
2523 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
2524 gdbscm_wrap.
2525
2526 2018-07-18 Tom de Vries <tdevries@suse.de>
2527
2528 * findvar.c (default_read_var_value): Also resolve dynamic type for
2529 LOC_OPTIMIZED_OUT vars.
2530
2531 2018-07-18 Maciej W. Rozycki <macro@mips.com>
2532
2533 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
2534 decoding.
2535
2536 2018-07-17 Tom Tromey <tom@tromey.com>
2537
2538 * guile/scm-param.c (pascm_set_func, pascm_show_func)
2539 (compute_enum_list, pascm_set_param_value_x)
2540 (gdbscm_parameter_value): Update.
2541 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
2542 (gdbscm_scm_to_host_string): Update.
2543 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
2544 Update.
2545 * guile/scm-cmd.c (cmdscm_add_completion): Update.
2546 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
2547 * guile/scm-string.c (gdbscm_scm_to_string): Return
2548 unique_xmalloc_ptr.
2549 (gdbscm_scm_to_host_string): Likewise.
2550
2551 2018-07-17 Tom Tromey <tom@tromey.com>
2552
2553 * guile/guile.c (gdbscm_eval_from_control_command): Update.
2554 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
2555 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
2556 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
2557 unique_xmalloc_ptr.
2558
2559 2018-07-17 Tom Tromey <tom@tromey.com>
2560
2561 * guile/scm-param.c (pascm_signal_setshow_error): Update.
2562 * guile/guile-internal.h (gdbscm_exception_message_to_string):
2563 Update.
2564 * guile/scm-cmd.c (cmdscm_function): Update.
2565 * guile/scm-pretty-print.c
2566 (ppscm_print_exception_unless_memory_error): Update.
2567 * guile/scm-exception.c (gdbscm_exception_message_to_string):
2568 Return unique_xmalloc_ptr.
2569
2570 2018-07-17 Tom Tromey <tom@tromey.com>
2571
2572 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
2573 Use string_printf.
2574
2575 2018-07-17 Jim Wilson <jimw@sifive.com>
2576
2577 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
2578 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
2579 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
2580 unecessary braces after EF_RISCV_RVC test. Delete call to
2581 set_gdbarch_decr_pc_after_break.
2582
2583 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
2584 RISCV_LAST_FP_REGNUM + 1.
2585 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
2586
2587 2018-07-17 Tom Tromey <tom@tromey.com>
2588
2589 * configure.ac: Remove --disable-gdbcli.
2590 * configure: Rebuild.
2591 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
2592 (SUBDIR_CLI_CFLAGS): Remove.
2593 (SFILES): Use SUBDIR_CLI_SRCS.
2594 (COMMON_OBS): Use SUBDIR_CLI_OBS.
2595
2596 2018-07-17 Tom Tromey <tom@tromey.com>
2597
2598 PR gdb/18624:
2599 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
2600
2601 2018-07-16 Jim Wilson <jimw@sifive.com>
2602
2603 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
2604
2605 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
2606
2607 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
2608 variable.
2609 (libunwind_frame_sniffer): Likewise.
2610 (libunwind_frame_prev_register): Likewise.
2611 (libunwind_sigtramp_frame_sniffer): Likewise.
2612 * ia64-tdep.c (ia64_access_reg): Likewise.
2613 (ia64_access_rse_reg): Likewise.
2614 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
2615 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
2616
2617 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
2618
2619 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
2620
2621 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
2622
2623 * remote-sim.c (gdbsim_target::close,
2624 gdbsim_target::mourn_inferior): Remove unused variables.
2625
2626 2018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
2627
2628 * ia64-tdep.c (ktab_buf): New global.
2629 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
2630 (get_kernel_table): Adjust.
2631
2632 2018-07-16 Tom Tromey <tom@tromey.com>
2633
2634 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
2635 * dwarf2read.c (using_directives, new_symbol): Use
2636 outermost_context_p.
2637 * dbxread.c (process_one_symbol): Use outermost_context_p.
2638 * coffread.c (coff_symtab_read): Use outermost_context_p.
2639
2640 2018-07-16 Tom Tromey <tom@tromey.com>
2641
2642 * dwarf2read.c (using_directives, read_func_scope)
2643 (read_lexical_block_scope): Update.
2644 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
2645 * buildsym.h (local_using_directives, global_using_directives):
2646 Don't declare.
2647 (get_local_using_directives, set_local_using_directives)
2648 (get_global_using_directives): Declare.
2649 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
2650 m_global_using_directives>: New members.
2651 (finish_block_internal, prepare_for_building)
2652 (reset_symtab_globals, end_symtab_get_static_block)
2653 (push_context): Update.
2654 (get_local_using_directives, set_local_using_directives)
2655 (get_global_using_directives): New functions.
2656 (buildsym_init): Update.
2657
2658 2018-07-16 Tom Tromey <tom@tromey.com>
2659
2660 * xcoffread.c (xcoff_initial_scan): Don't call
2661 free_pending_blocks.
2662 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
2663 * buildsym.h (class scoped_free_pendings): Add constructor.
2664 (free_pending_blocks): Don't declare.
2665 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
2666 (free_pending_blocks): Now static.
2667
2668 2018-07-16 Tom Tromey <tom@tromey.com>
2669
2670 * buildsym.h (push_subfile, pop_subfile): Update declarations.
2671 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
2672 member.
2673 (struct subfile_stack): Remove.
2674 (subfile_stack): Remove.
2675 (push_subfile, pop_subfile, buildsym_init): Update.
2676
2677 2018-07-16 Tom Tromey <tom@tromey.com>
2678
2679 * buildsym.c (push_subfile): Use gdb_assert.
2680 (pop_subfile): Use gdb_assert.
2681
2682 2018-07-16 Tom Tromey <tom@tromey.com>
2683
2684 * buildsym.h (merge_symbol_lists): Remove.
2685 * buildsym.c (merge_symbol_lists): Remove.
2686
2687 2018-07-16 Tom Tromey <tom@tromey.com>
2688
2689 * stabsread.c (scan_file_globals): Update comment.
2690 * stabsread.h (scan_file_globals): Move from buildsym.h.
2691 * buildsym.h (scan_file_globals): Move to stabsread.h.
2692
2693 2018-07-16 Tom Tromey <tom@tromey.com>
2694
2695 * xcoffread.c (xcoff_new_init): Update.
2696 * mipsread.c (mipscoff_new_init): Update.
2697 * mdebugread.c (mdebug_build_psymtabs): Update.
2698 * elfread.c (elf_new_init): Update.
2699 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
2700 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
2701 * buildsym.h (buildsym_new_init): Don't declare.
2702 * buildsym.c (buildsym_new_init): Remove.
2703
2704 2018-07-16 Tom Tromey <tom@tromey.com>
2705
2706 * stabsread.h (within_function): Move from buildsym.h.
2707 * stabsread.c (start_stabs): Clear within_function.
2708 * coffread.c (coff_start_symtab): Clear within_function.
2709 * buildsym.h (within_function): Move to stabsread.h.
2710 * buildsym.c (prepare_for_building): Update.
2711
2712 2018-07-16 Tom Tromey <tom@tromey.com>
2713
2714 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
2715 * dwarf2read.c (dwarf2_start_symtab): Don't set
2716 processing_gcc_compilation.
2717 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
2718
2719 2018-07-16 Tom Tromey <tom@tromey.com>
2720
2721 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
2722 (next_symbol_text_func): Move from buildsym.h.
2723 * stabsread.c (hashname): Move from buildsym.c.
2724 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
2725 (next_symbol_text_func, hashname): Move to stabsread.h.
2726 * buildsym.c: Don't include bcache.h
2727 (hashname): Move to stasbread.c.
2728
2729 2018-07-16 Tom Tromey <tom@tromey.com>
2730
2731 * buildsym.h (context_stack_size): Don't declare.
2732 * buildsym.c (context_stack_size): New global.
2733
2734 2018-07-16 Tom Tromey <tom@tromey.com>
2735
2736 * dbxread.c (processing_acc_compilation): New global.
2737 * buildsym.h (processing_acc_compilation): Don't declare.
2738
2739 2018-07-16 Tom Tromey <tom@tromey.com>
2740
2741 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
2742 * dbxread.c (read_ofile_symtab): Update.
2743 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
2744 * buildsym.h (last_source_start_addr): Remove.
2745 (set_last_source_start_addr, get_last_source_start_addr):
2746 Declare.
2747 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
2748 parameter.
2749 (struct buildsym_compunit) <m_last_source_start_addr>: New
2750 member.
2751 (prepare_for_building): Remove start_addr parameter.
2752 (start_symtab, restart_symtab, end_symtab_get_static_block)
2753 (end_symtab_with_blockvector): Update.
2754 (set_last_source_start_addr, get_last_source_start_addr): New
2755 functions.
2756
2757 2018-07-16 Tom Tromey <tom@tromey.com>
2758
2759 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
2760 member.
2761 (have_line_numbers): Remove.
2762 (record_line, prepare_for_building, end_symtab_get_static_block)
2763 (augment_type_symtab): Update.
2764
2765 2018-07-16 Tom Tromey <tom@tromey.com>
2766
2767 * buildsym.c (~buildsym_compunit): Free the macro table.
2768 (struct buildsym_compunit) <get_macro_table, release_macros>: New
2769 methods.
2770 <m_pending_macros>: New member.
2771 (pending_macros): Remove.
2772 (~scoped_free_pendings, get_macro_table, prepare_for_building)
2773 (reset_symtab_globals, end_symtab_get_static_block)
2774 (end_symtab_with_blockvector, augment_type_symtab)
2775 (buildsym_init): Update.
2776
2777 2018-07-16 Tom Tromey <tom@tromey.com>
2778
2779 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
2780 parameter.
2781 (buildsym_compunit::set_last_source_file): New method.
2782 <m_last_source_file>: New member.
2783 (prepare_for_building): Remove "name" parameter.
2784 (start_symtab, restart_symtab, reset_symtab_globals): Update.
2785 (last_source_file): Remove.
2786 (set_last_source_file, get_last_source_file): Update.
2787
2788 2018-07-16 Tom Tromey <tom@tromey.com>
2789
2790 * buildsym.c (prepare_for_building): Add assert.
2791
2792 2018-07-16 Tom Tromey <tom@tromey.com>
2793
2794 * buildsym.c (~buildsym_compunit): Update.
2795 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
2796 (start_subfile, patch_subfile_names)
2797 (end_symtab_with_blockvector): Update.
2798
2799 2018-07-16 Tom Tromey <tom@tromey.com>
2800
2801 * buildsym.c (struct buildsym_compunit): Add constructor,
2802 destructor, initializers.
2803 (start_buildsym_compunit): Remove.
2804 (free_buildsym_compunit): Use "delete".
2805 (start_symtab, restart_symtab): Use "new".
2806
2807 2018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
2808
2809 * symfile.c (set_objfile_default_section_offset): Remove struct
2810 keyword.
2811
2812 2018-07-14 Stafford Horne <shorne@gmail.com>
2813
2814 * (Responsible Maintainers): Add myself as or1k maintainer.
2815
2816 2018-07-13 Tom Tromey <tom@tromey.com>
2817
2818 * symfile.c (set_objfile_default_section_offset): Use extra braces
2819 around initializer.
2820
2821 2018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
2822
2823 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
2824 non-branching basr.
2825
2826 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2827
2828 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2829 unittests/cli-utils-selftests.c
2830 * unittests/cli-utils-selftests.c: New file.
2831
2832 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2833
2834 * NEWS: Mention new commands. Mention change to 'thread apply'.
2835
2836 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2837
2838 * thread.c (thr_try_catch_cmd): New function.
2839 (thread_apply_all_command): Handle qcs flags.
2840 (thread_apply_command): Handle qcs flags.
2841 (taas_command): New function.
2842 (tfaas_command): New function.
2843 (_initialize_thread): Update to setup the new commands 'taas
2844 and 'tfaas'. Change doc string for 'thread apply'.
2845
2846 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2847
2848 * stack.c: (trailing_outermost_frame): New function, mostly
2849 extracted from backtrace_command_1.
2850 (leading_innermost_frame): New function.
2851 (backtrace_command_1): Update to call trailing_outermost_frame.
2852 (frame_apply_command_count): New function.
2853 (frame_apply_level_command): New function.
2854 (frame_apply_all_command): New function.
2855 (frame_apply_command): New function.
2856 (faas_command): New function.
2857 (frame_cmd_list): New variable.
2858 (_initialize_stack): Update to setup the new commands 'frame apply'
2859 and 'faas'.
2860
2861 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2862
2863 * cli-utils.c (number_or_range_parser::get_number): Only handle
2864 numbers or convenience var as numbers.
2865 (parse_flags): New function.
2866 (parse_flags_qcs): New function.
2867 (number_or_range_parser::finished): Ensure parsing end is detected
2868 before end of string.
2869 * cli-utils.h (parse_flags): New function.
2870 (parse_flags_qcs): New function.
2871 (number_or_range_parser): Remove m_finished bool.
2872 (number_or_range_parser::skip_range): Set m_in_range to false.
2873
2874 2018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
2875
2876 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
2877 on Windows.
2878
2879 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
2880 Jan Kratochvil <jan.kratochvil@redhat.com>
2881 Paul Fertser <fercerpav@gmail.com>
2882 Tsutomu Seki <sekiriki@gmail.com>
2883 Pedro Alves <palves@redhat.com>
2884
2885 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2886 'unittests/parse-connection-spec-selftests.c'.
2887 (COMMON_SFILES): Add 'common/netstuff.c'.
2888 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
2889 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
2890 * common/netstuff.c: New file.
2891 * common/netstuff.h: New file.
2892 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
2893 (wait_for_connect): Update comment. New parameter
2894 'gdb::optional<int> sock' instead of 'struct serial *scb'.
2895 Use 'sock' directly instead of 'scb->fd'.
2896 (try_connect): New function, with code from 'net_open'.
2897 (net_open): Rewrite main loop to deal with multiple
2898 sockets/addresses. Handle IPv6-style hostnames; implement
2899 support for IPv6 connections.
2900 * unittests/parse-connection-spec-selftests.c: New file.
2901
2902 2018-07-11 Pedro Alves <palves@redhat.com>
2903
2904 PR gdb/23377
2905 * remote.c (remote_target::remote_detach_pid): Call
2906 set_current_process.
2907
2908 2018-07-11 Pedro Alves <palves@redhat.com>
2909
2910 * h8300-tdep.c (h8300_gdbarch_init): Remove
2911 set_gdbarch_ecoff_reg_to_regnum calls.
2912
2913 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
2914
2915 PR c++/23373
2916 * c-typeprint.c (c_type_print_base_struct_union): Don't print
2917 offsets/sizes for static members of a class/struct.
2918
2919 2018-07-11 Alan Hayward <alan.hayward@arm.com>
2920
2921 * target-descriptions.c (tdesc_register_bitsize): Rename.
2922 * target-descriptions.h (tdesc_register_bitsize): Likewise.
2923 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
2924 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
2925
2926 2018-07-10 Tom Tromey <tom@tromey.com>
2927
2928 * breakpoint.c (moribund_locations): Now static and a
2929 std::vector.
2930 (breakpoint_init_inferior, moribund_breakpoint_here_p)
2931 (build_bpstat_chain, update_global_location_list)
2932 (breakpoint_retire_moribund): Update.
2933 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
2934 VEC.
2935
2936 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
2937
2938 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
2939 (riscv_register_reggroup_p): Use new function, remove unneeded
2940 parenthesis.
2941 (riscv_push_dummy_call): Extend assert to compare against xlen or
2942 flen based on register type.
2943
2944 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
2945
2946 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
2947
2948 2018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2949
2950 * remote.c (show_hardware_watchpoint_limit): New function.
2951 (show_hardware_watchpoint_length_limit): New function.
2952 (show_hardware_breakpoint_limit): New function.
2953 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
2954 where appropriate, update help text.
2955
2956 2018-07-09 Tom Tromey <tom@tromey.com>
2957
2958 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
2959 (CLIBS): Don't mention NAT_CLIBS.
2960
2961 2018-07-09 Tom Tromey <tom@tromey.com>
2962
2963 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
2964 (LIBGDB_OBS, clean mostlyclean): Update.
2965 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
2966
2967 2018-07-09 Tom Tromey <tom@tromey.com>
2968
2969 * Makefile.in (%.c: %.y): Use ECHO_YACC.
2970 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
2971 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
2972
2973 2018-07-09 Tom Tromey <tom@tromey.com>
2974
2975 * Makefile.in (ALLDEPFILES): Remove exec.c.
2976 (COMMON_OBS): Remove exec.o.
2977 (COMMON_SFILES): Add exec.c.
2978
2979 2018-07-09 Tom Tromey <tom@tromey.com>
2980
2981 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
2982
2983 2018-07-09 Tom Tromey <tom@tromey.com>
2984
2985 * Makefile.in (clean mostlyclean): Remove stamp-version.
2986 (version.c): Depend on stamp-version.
2987 (stamp-version): New rule, from version.c rule.
2988
2989 2018-07-09 Tom Tromey <tom@tromey.com>
2990
2991 * Makefile.in (init.c): Depend on stamp-init.
2992 (stamp-init): New rule, from init.c rule.
2993 (clean mostlyclean): Remove stamp-init.
2994
2995 2018-07-09 Tom Tromey <tom@tromey.com>
2996
2997 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
2998 SUBDIR_GCC_COMPILE_SRCS.
2999
3000 2018-07-09 Tom Tromey <tom@tromey.com>
3001
3002 * Makefile.in (init.c): Remove some unused sed rules.
3003
3004 2018-07-09 Tom Tromey <tom@tromey.com>
3005
3006 * Makefile.in (TSOBS): Remove.
3007 (INIT_FILES): Update.
3008 (LIBGDB_OBS): Update.
3009 (COMMON_SFILES): Add inflow.c.
3010 (SFILES): Remove inflow.c.
3011
3012 2018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3013
3014 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
3015
3016 2018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
3017
3018 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
3019 get_saveloc_name, is_signal_frame_name, step_name,
3020 init_remote_name, create_addr_space_name,
3021 destroy_addr_space_name, search_unwind_table_name,
3022 find_dyn_list_name): Constify.
3023
3024 2018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
3025
3026 * darwin-nat.c (darwin_pthread_kill): New function.
3027 (darwin_resume_thread): Use darwin_pthread_kill.
3028
3029 2018-07-05 Tom de Vries <tdevries@suse.de>
3030
3031 * macroexp.c (macro_buffer) <operator=>: New member function.
3032
3033 2018-07-04 Tom Tromey <tom@tromey.com>
3034
3035 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
3036
3037 2018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
3038
3039 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
3040 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
3041 * maint.c: Likewise.
3042 * top.c: Likewise.
3043
3044 2018-07-04 Joel Brobecker <brobecker@adacore.com>
3045
3046 * NEWS: Create a new section for the next release branch.
3047 Rename the section of the current branch, now that it has
3048 been cut.
3049
3050 2018-07-04 Joel Brobecker <brobecker@adacore.com>
3051
3052 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
3053 * version.in: Bump version to 8.2.50.DATE-git.
3054
3055 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
3056 Pedro Alves <palves@redhat.com>
3057
3058 * linux-nat.c (linux_init_ptrace): Rename to ...
3059 (linux_init_ptrace_procfs): ... this. Call
3060 linux_proc_init_warnings.
3061 (linux_nat_target::post_attach)
3062 (linux_nat_target::post_startup_inferior): Adjust.
3063 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
3064 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
3065
3066 2018-07-04 Tom de Vries <tdevries@suse.de>
3067
3068 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
3069 check ...
3070 (read_comp_unit_head): ... here.
3071
3072 2018-07-03 Tom Tromey <tom@tromey.com>
3073
3074 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
3075 (stop_tracing, tstatus_command)
3076 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
3077 (print_one_static_tracepoint_marker): Update.
3078 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
3079 std::vector.
3080 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
3081 VEC.
3082 (all_tracepoints, static_tracepoints_here): Return std::vector.
3083
3084 2018-07-03 Tom Tromey <tom@tromey.com>
3085
3086 * common/ptid.c (ptid_equal): Remove.
3087 * common/ptid.h (ptid_equal): Don't declare.
3088 * ada-tasks.c: Update.
3089 * breakpoint.c: Update.
3090 * common/agent.c: Update.
3091 * corelow.c: Update.
3092 * darwin-nat-info.c: Update.
3093 * darwin-nat.c: Update.
3094 * dcache.c: Update.
3095 * dtrace-probe.c: Update.
3096 * dummy-frame.c: Update.
3097 * fbsd-nat.c: Update.
3098 * frame.c: Update.
3099 * gdbthread.h: Update.
3100 * gnu-nat.c: Update.
3101 * go32-nat.c: Update.
3102 * inf-loop.c: Update.
3103 * inf-ptrace.c: Update.
3104 * infcall.c: Update.
3105 * infcmd.c: Update.
3106 * inflow.c: Update.
3107 * infrun.c: Update.
3108 * linux-fork.c: Update.
3109 * linux-nat.c: Update.
3110 * linux-thread-db.c: Update.
3111 * mi/mi-cmd-var.c: Update.
3112 * mi/mi-interp.c: Update.
3113 * mi/mi-main.c: Update.
3114 * nto-procfs.c: Update.
3115 * ppc-linux-tdep.c: Update.
3116 * procfs.c: Update.
3117 * python/py-inferior.c: Update.
3118 * python/py-record-btrace.c: Update.
3119 * python/py-record.c: Update.
3120 * ravenscar-thread.c: Update.
3121 * regcache.c: Update.
3122 * remote-sim.c: Update.
3123 * remote.c: Update.
3124 * sol-thread.c: Update.
3125 * solib.c: Update.
3126 * target.c: Update.
3127 * tui/tui-stack.c: Update.
3128 * varobj.c: Update.
3129 * windows-nat.c: Update.
3130 * windows-tdep.c: Update.
3131
3132 2018-07-03 Tom Tromey <tom@tromey.com>
3133
3134 * common/ptid.c (ptid_match): Remove.
3135 * common/ptid.h (ptid_match): Don't declare.
3136 * fbsd-nat.c: Update.
3137 * infcmd.c: Update.
3138 * infrun.c: Update.
3139 * linux-nat.c: Update.
3140 * record-btrace.c: Update.
3141 * regcache.c: Update.
3142 * remote.c: Update.
3143
3144 2018-07-03 Tom Tromey <tom@tromey.com>
3145
3146 * common/ptid.c (ptid_tid_p): Remove.
3147 * common/ptid.h (ptid_tid_p): Don't declare.
3148 * sol-thread.c: Update.
3149
3150 2018-07-03 Tom Tromey <tom@tromey.com>
3151
3152 * common/ptid.c (ptid_lwp_p): Remove.
3153 * common/ptid.h (ptid_lwp_p): Don't declare.
3154 * fbsd-nat.c: Update.
3155 * linux-nat.c: Update.
3156 * nat/linux-procfs.c: Update.
3157 * nat/x86-linux-dregs.c: Update.
3158 * sol-thread.c: Update.
3159
3160 2018-07-03 Tom Tromey <tom@tromey.com>
3161
3162 * common/ptid.c (ptid_is_pid): Remove.
3163 * common/ptid.h (ptid_is_pid): Don't declare.
3164 * infrun.c: Update.
3165 * linux-nat.c: Update.
3166 * mi/mi-interp.c: Update.
3167 * remote.c: Update.
3168 * thread.c: Update.
3169
3170 2018-07-03 Tom Tromey <tom@tromey.com>
3171
3172 * common/ptid.c (ptid_get_tid): Remove.
3173 * common/ptid.h (ptid_get_tid): Don't declare.
3174 * ada-tasks.c: Update.
3175 * aix-thread.c: Update.
3176 * bsd-uthread.c: Update.
3177 * darwin-nat.c: Update.
3178 * fbsd-nat.c: Update.
3179 * i386-darwin-nat.c: Update.
3180 * infrun.c: Update.
3181 * linux-tdep.c: Update.
3182 * nto-procfs.c: Update.
3183 * ppc-ravenscar-thread.c: Update.
3184 * python/py-infthread.c: Update.
3185 * ravenscar-thread.c: Update.
3186 * sol-thread.c: Update.
3187 * sparc-ravenscar-thread.c: Update.
3188 * windows-nat.c: Update.
3189
3190 2018-07-03 Tom Tromey <tom@tromey.com>
3191
3192 * common/ptid.c (ptid_get_lwp): Remove.
3193 * common/ptid.h (ptid_get_lwp): Don't declare.
3194 * aarch64-linux-nat.c: Update.
3195 * ada-tasks.c: Update.
3196 * aix-thread.c: Update.
3197 * amd64-linux-nat.c: Update.
3198 * arm-linux-nat.c: Update.
3199 * corelow.c: Update.
3200 * fbsd-nat.c: Update.
3201 * fbsd-tdep.c: Update.
3202 * gnu-nat.c: Update.
3203 * i386-cygwin-tdep.c: Update.
3204 * i386-gnu-nat.c: Update.
3205 * i386-linux-nat.c: Update.
3206 * ia64-linux-nat.c: Update.
3207 * inf-ptrace.c: Update.
3208 * infrun.c: Update.
3209 * linux-fork.c: Update.
3210 * linux-nat.c: Update.
3211 * linux-tdep.c: Update.
3212 * linux-thread-db.c: Update.
3213 * mips-linux-nat.c: Update.
3214 * nat/aarch64-linux-hw-point.c: Update.
3215 * nat/aarch64-linux.c: Update.
3216 * nat/linux-btrace.c: Update.
3217 * nat/linux-osdata.c: Update.
3218 * nat/linux-procfs.c: Update.
3219 * nat/x86-linux-dregs.c: Update.
3220 * obsd-nat.c: Update.
3221 * ppc-fbsd-nat.c: Update.
3222 * ppc-linux-nat.c: Update.
3223 * procfs.c: Update.
3224 * python/py-infthread.c: Update.
3225 * ravenscar-thread.c: Update.
3226 * remote.c: Update.
3227 * s390-linux-nat.c: Update.
3228 * sol-thread.c: Update.
3229 * sol2-tdep.c: Update.
3230 * spu-linux-nat.c: Update.
3231 * x86-linux-nat.c: Update.
3232 * xtensa-linux-nat.c: Update.
3233
3234 2018-07-03 Tom Tromey <tom@tromey.com>
3235
3236 * common/ptid.c (ptid_get_pid): Remove.
3237 * common/ptid.h (ptid_get_pid): Don't declare.
3238 * aarch64-linux-nat.c: Update.
3239 * ada-lang.c: Update.
3240 * aix-thread.c: Update.
3241 * alpha-bsd-nat.c: Update.
3242 * amd64-fbsd-nat.c: Update.
3243 * amd64-linux-nat.c: Update.
3244 * arm-linux-nat.c: Update.
3245 * arm-nbsd-nat.c: Update.
3246 * auxv.c: Update.
3247 * break-catch-syscall.c: Update.
3248 * breakpoint.c: Update.
3249 * bsd-uthread.c: Update.
3250 * corelow.c: Update.
3251 * ctf.c: Update.
3252 * darwin-nat.c: Update.
3253 * fbsd-nat.c: Update.
3254 * fbsd-tdep.c: Update.
3255 * gcore.c: Update.
3256 * gnu-nat.c: Update.
3257 * hppa-nbsd-nat.c: Update.
3258 * hppa-obsd-nat.c: Update.
3259 * i386-fbsd-nat.c: Update.
3260 * ia64-linux-nat.c: Update.
3261 * inf-ptrace.c: Update.
3262 * infcmd.c: Update.
3263 * inferior.c: Update.
3264 * inferior.h: Update.
3265 * inflow.c: Update.
3266 * infrun.c: Update.
3267 * linux-fork.c: Update.
3268 * linux-nat.c: Update.
3269 * linux-tdep.c: Update.
3270 * linux-thread-db.c: Update.
3271 * m68k-bsd-nat.c: Update.
3272 * mi/mi-interp.c: Update.
3273 * mi/mi-main.c: Update.
3274 * mips-linux-nat.c: Update.
3275 * mips-nbsd-nat.c: Update.
3276 * mips64-obsd-nat.c: Update.
3277 * nat/aarch64-linux-hw-point.c: Update.
3278 * nat/aarch64-linux.c: Update.
3279 * nat/linux-btrace.c: Update.
3280 * nat/linux-osdata.c: Update.
3281 * nat/linux-procfs.c: Update.
3282 * nat/x86-linux-dregs.c: Update.
3283 * nto-procfs.c: Update.
3284 * obsd-nat.c: Update.
3285 * ppc-linux-nat.c: Update.
3286 * ppc-nbsd-nat.c: Update.
3287 * ppc-obsd-nat.c: Update.
3288 * proc-service.c: Update.
3289 * procfs.c: Update.
3290 * python/py-inferior.c: Update.
3291 * python/py-infthread.c: Update.
3292 * ravenscar-thread.c: Update.
3293 * record.c: Update.
3294 * remote-sim.c: Update.
3295 * remote.c: Update.
3296 * rs6000-nat.c: Update.
3297 * s390-linux-nat.c: Update.
3298 * sh-nbsd-nat.c: Update.
3299 * sol-thread.c: Update.
3300 * sparc-nat.c: Update.
3301 * sparc64-tdep.c: Update.
3302 * spu-linux-nat.c: Update.
3303 * spu-tdep.c: Update.
3304 * target-debug.h: Update.
3305 * target.c: Update.
3306 * thread.c: Update.
3307 * tid-parse.c: Update.
3308 * tracefile-tfile.c: Update.
3309 * vax-bsd-nat.c: Update.
3310 * windows-nat.c: Update.
3311 * x86-linux-nat.c: Update.
3312 * x86-nat.c: Update.
3313
3314 2018-07-03 Tom Tromey <tom@tromey.com>
3315
3316 * common/ptid.c (pid_to_ptid): Remove.
3317 * common/ptid.h (pid_to_ptid): Don't declare.
3318 * aix-thread.c: Update.
3319 * arm-linux-nat.c: Update.
3320 * common/ptid.c: Update.
3321 * common/ptid.h: Update.
3322 * corelow.c: Update.
3323 * ctf.c: Update.
3324 * darwin-nat.c: Update.
3325 * fbsd-nat.c: Update.
3326 * fork-child.c: Update.
3327 * gnu-nat.c: Update.
3328 * go32-nat.c: Update.
3329 * inf-ptrace.c: Update.
3330 * infcmd.c: Update.
3331 * inferior.c: Update.
3332 * infrun.c: Update.
3333 * linux-fork.c: Update.
3334 * linux-nat.c: Update.
3335 * nat/aarch64-linux-hw-point.c: Update.
3336 * nat/fork-inferior.c: Update.
3337 * nat/x86-linux-dregs.c: Update.
3338 * nto-procfs.c: Update.
3339 * obsd-nat.c: Update.
3340 * procfs.c: Update.
3341 * progspace.c: Update.
3342 * remote.c: Update.
3343 * rs6000-nat.c: Update.
3344 * s390-linux-nat.c: Update.
3345 * sol-thread.c: Update.
3346 * spu-linux-nat.c: Update.
3347 * target.c: Update.
3348 * top.c: Update.
3349 * tracefile-tfile.c: Update.
3350 * windows-nat.c: Update.
3351
3352 2018-07-03 Tom Tromey <tom@tromey.com>
3353
3354 * common/ptid.h (ptid_build): Don't declare.
3355 * common/ptid.c (ptid_build): Remove.
3356 * aix-thread.c: Update.
3357 * bsd-kvm.c: Update.
3358 * bsd-uthread.c: Update.
3359 * common/agent.c: Update.
3360 * common/ptid.c: Update.
3361 * common/ptid.h: Update.
3362 * corelow.c: Update.
3363 * darwin-nat.c: Update.
3364 * fbsd-nat.c: Update.
3365 * gnu-nat.c: Update.
3366 * linux-fork.c: Update.
3367 * linux-nat.c: Update.
3368 * linux-thread-db.c: Update.
3369 * nat/linux-osdata.c: Update.
3370 * nat/linux-procfs.c: Update.
3371 * nto-procfs.c: Update.
3372 * obsd-nat.c: Update.
3373 * proc-service.c: Update.
3374 * procfs.c: Update.
3375 * ravenscar-thread.c: Update.
3376 * remote-sim.c: Update.
3377 * remote.c: Update.
3378 * sol-thread.c: Update.
3379 * target.c: Update.
3380 * windows-nat.c: Update.
3381
3382 2018-07-03 Tom Tromey <tom@tromey.com>
3383
3384 * infrun.c (follow_exec): Use exit_inferior_silent.
3385 * inferior.c (exit_inferior_num_silent): Remove.
3386 * inferior.h (exit_inferior_num_silent): Don't declare.
3387
3388 2018-07-03 Tom Tromey <tom@tromey.com>
3389
3390 PR cli/23340:
3391 * darwin-nat.c (darwin_attach_pid): Reset inferior and
3392 inferior_ptid on error.
3393
3394 2018-07-02 Maciej W. Rozycki <macro@mips.com>
3395 Simon Marchi <simon.marchi@polymtl.ca>
3396
3397 PR tdep/8282
3398 * disasm.h (gdb_disassembler): Add
3399 `m_disassembler_options_holder'. member
3400 * disasm.c (get_all_disassembler_options): New function.
3401 (gdb_disassembler::gdb_disassembler): Use it.
3402 (gdb_buffered_insn_length_init_dis): Likewise.
3403 (gdb_buffered_insn_length): Adjust accordingly.
3404 (set_disassembler_options): Handle options with arguments.
3405 (show_disassembler_options_sfunc): Likewise. Add a leading new
3406 line if showing options with descriptions.
3407 (disassembler_options_completer): Adapt to using the
3408 `disasm_options_and_args_t' structure.
3409 * mips-tdep.c (mips_disassembler_options): New variable.
3410 (mips_disassembler_options_o32): Likewise.
3411 (mips_disassembler_options_n32): Likewise.
3412 (mips_disassembler_options_n64): Likewise.
3413 (gdb_print_insn_mips): Don't set `disassembler_options'.
3414 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
3415 functions.
3416 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
3417 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
3418 `gdbarch_disassembler_options_implicit' and
3419 `gdbarch_valid_disassembler_options'.
3420 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
3421 `disasm_options_and_args_t' structure.
3422 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
3423 method.
3424 (valid_disassembler_options): Switch from `disasm_options_t' to
3425 the `disasm_options_and_args_t' structure.
3426 * NEWS: Document `set disassembler-options' support for the MIPS
3427 target.
3428 * gdbarch.h: Regenerate.
3429 * gdbarch.c: Regenerate.
3430
3431 2018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
3432
3433 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
3434
3435 2018-06-29 Joel Brobecker <brobecker@adacore.com>
3436
3437 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
3438 parameter in call to amd64_target_description.
3439 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
3440 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
3441 (amd64fbsd_init_abi): Likewise.
3442 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
3443 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
3444 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
3445 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
3446
3447 2018-06-29 Pedro Alves <palves@redhat.com>
3448
3449 * gdb/amd64-tdep.h (amd64_create_target_description): Add
3450 "segments" parameter.
3451 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
3452 (_initialize_amd64_tdep): Update call to
3453 amd64_create_target_description.
3454 (amd64_target_description): Add "segments" parameter. Adjust
3455 the implementation to use it.
3456 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
3457 call to amd64_create_target_description.
3458 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
3459 * gdb/arch/amd64.h (amd64_create_target_description): Add
3460 "segments" register.
3461 * gdb/arch/amd64.c (amd64_create_target_description): Add
3462 "segments" parameter. Call create_feature_i386_64bit_segments
3463 only if SEGMENTS is true.
3464 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
3465 call to amd64_create_target_description.
3466
3467 2018-06-29 Pedro Alves <palves@redhat.com>
3468
3469 * thread.c (thread_target_id_str): New, factored out from ...
3470 (print_thread_info_1): ... here. Use it to compute the max
3471 "Target Id" column width.
3472
3473 2018-06-29 Pedro Alves <palves@redhat.com>
3474
3475 * remote.c (remote_target::extra_thread_info): Delete
3476 'display_buf' and 'n' locals. from the cache, regardless of
3477 packet mechanims is in use. Use cache for qThreadExtra and qP
3478 methods too.
3479
3480 2018-06-29 Pedro Alves <palves@redhat.com>
3481
3482 * blockframe.c (find_pc_sect_containing_function): New function.
3483 * breakpoint.c (print_breakpoint_location): Don't call
3484 find_pc_sect_function.
3485 * linespec.c (create_sals_line_offset): Record the location's
3486 symbol in the sal.
3487 * linespec.c (convert_address_location_to_sals): Fill in sal's
3488 symbol with find_pc_sect_containing_function.
3489 * symtab.c (find_function_start_sal): Rename to ...
3490 (find_function_start_sal_1): ... this.
3491 (find_function_start_sal): Reimplement as wrapper around
3492 find_function_start_sal_1, and use
3493 find_pc_sect_containing_function to fill in the sal's symbol.
3494 (find_function_start_sal(symbol*, bool)): Adjust.
3495 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
3496 comments.
3497 (find_pc_sect_containing_function): Declare.
3498
3499 2018-06-29 Pedro Alves <palves@redhat.com>
3500
3501 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
3502 true if the the location has no symbol.
3503
3504 2018-06-28 Tom Tromey <tom@tromey.com>
3505
3506 * NEWS: Mention --enable-codesign.
3507 * silent-rules.mk (ECHO_SIGN): New variable.
3508 * configure.ac: Add --enable-codesign.
3509 * configure: Rebuild.
3510 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
3511 (gdb$(EXEEXT)): Optionally invoke codesign.
3512
3513 2018-06-28 Pedro Alves <palves@redhat.com>
3514
3515 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
3516 comments.
3517 (switch_to_thread_no_regs): Adjust comment.
3518 * infcmd.c (stop_pc): Delete.
3519 (post_create_inferior, info_program_command): Replace references
3520 to stop_pc with references to thread_info->suspend.stop_pc.
3521 * inferior.h (stop_pc): Delete declaration.
3522 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
3523 (handle_inferior_event_1, handle_signal_stop)
3524 (process_event_stop_test, keep_going_stepped_thread)
3525 (handle_step_into_function, handle_step_into_function_backward)
3526 (print_stop_location): Replace references to stop_pc with
3527 references to thread_info->suspend.stop_pc.
3528 (struct infcall_suspend_state) <stop_pc>: Delete field.
3529 (save_infcall_suspend_state, restore_infcall_suspend_state):
3530 Remove references to inf_stat->stop_pc.
3531 * linux-fork.c (fork_load_infrun_state): Likewise.
3532 * record-btrace.c (record_btrace_set_replay): Likewise.
3533 * record-full.c (record_full_goto_entry): Likewise.
3534 * remote.c (print_one_stopped_thread): Likewise.
3535 * target.c (target_resume): Extend comment.
3536 * thread.c (set_executing_thread): New.
3537 (set_executing): Use it.
3538 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
3539 Remove references to stop_pc.
3540
3541 2018-06-28 Pedro Alves <palves@redhat.com>
3542
3543 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
3544 Moving fetching stop_pc until after ecs->event_thread is refreshed.
3545
3546 2018-06-28 Tom Tromey <tom@tromey.com>
3547
3548 * coffread.c (coff_symfile_finish): Update.
3549 * xcoffread.c (xcoff_symfile_finish): Update.
3550 * elfread.c (elf_symfile_finish): Update.
3551 * symfile.h (dwarf2_free_objfile): Don't declare.
3552 * dwarf2read.c (_initialize_dwarf2_read): Use
3553 register_objfile_data_with_cleanup.
3554 (dwarf2_free_objfile): Now static. Change signature.
3555
3556 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
3557
3558 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
3559 option "-o" to add-symbol-file-load to add an offset to each
3560 section's load address.
3561 * symfile.c (set_objfile_default_section_offset): New function.
3562
3563 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
3564
3565 * symfile.c (add_symbol_file_command): Make sure that sections
3566 with the same name are sorted in the same order.
3567
3568 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
3569
3570 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
3571 require the second argument. If omitted, load sections at the
3572 addresses specified in the file.
3573
3574 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
3575
3576 * symfile.c (symbol_file_command, symbol_file_add_main_1)
3577 (_initialize_symfile): Add option "-o" to symbol-file to add an
3578 offset to each section of the symbol file.
3579
3580 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
3581
3582 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
3583
3584 2018-06-27 Tom Tromey <tom@tromey.com>
3585
3586 * stack.c (_initialize_stack): Update "func" help text.
3587
3588 2018-06-27 Tom Tromey <tom@tromey.com>
3589
3590 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
3591 std::vector.
3592 (unwind_infopy_str, pyuw_create_unwind_info)
3593 (unwind_infopy_add_saved_register, pyuw_sniffer)
3594 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
3595 Update.
3596 (struct saved_reg): Add constructor.
3597 <value>: Now a gdbpy_ref<>.
3598
3599 2018-06-27 Tom Tromey <tom@tromey.com>
3600
3601 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
3602
3603 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
3604
3605 * gdb-gdb.py.in: Format using autopep8.
3606
3607 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
3608
3609 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
3610 (type_lookup_function): Recognize CORE_ADDR values.
3611
3612 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
3613
3614 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
3615 print tag_name.
3616
3617 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
3618
3619 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
3620 <__lt__>: Add.
3621
3622 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
3623
3624 * gdb-gdb.py: Move to...
3625 * gdb-gdb.py.in: ... here.
3626 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
3627 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
3628 dependencies.
3629 (distclean): Remove gdb-gdb.py when cleaning.
3630 (gdb-gdb.py, gdb-gdb.gdb): New rules.
3631 * configure: Re-generate.
3632
3633 2018-06-27 Pedro Alves <palves@redhat.com>
3634
3635 * proc-service.c (get_ps_regcache): New.
3636 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
3637 (ps_lsetfpregs): Use it.
3638
3639 2018-06-27 Omair Javaid <omair.javaid@linaro.org>
3640
3641 PR gdb/21695
3642 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
3643 (dwarf_decode_lines_1): Adjust.
3644
3645 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
3646
3647 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
3648 override.
3649 <info_proc>: Likewise.
3650
3651 2018-06-26 Joel Brobecker <brobecker@adacore.com>
3652
3653 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
3654 to windows_fetch_one_register, and only handle the case of
3655 fetching one register. Move the code that reloads the context
3656 and iterates over all registers if R is negative to...
3657 (windows_nat_target::fetch_registers): ... here.
3658 (do_windows_store_inferior_registers): Rename to
3659 windows_store_one_register, and only handle the case of storing
3660 one register. Move the code that handles the case where r is
3661 negative to...
3662 (windows_nat_target::store_registers) ... here.
3663
3664 2018-06-26 Tom Tromey <tom@tromey.com>
3665
3666 PR rust/22574:
3667 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
3668 * rust-lang.c (rust_print_struct_def): Add podata parameter.
3669 Update.
3670 (rust_internal_print_type): Add podata parameter.
3671 (rust_print_type): Update.
3672
3673 2018-06-26 Tom Tromey <tom@tromey.com>
3674
3675 * typeprint.h (struct print_offset_data) <update, finish,
3676 maybe_print_hole>: New methods.
3677 <indentation>: New constant.
3678 * typeprint.c (print_offset_data::indentation): Define.
3679 (print_offset_data::maybe_print_hole, print_offset_data::update)
3680 (print_offset_data::finish): Move from c-typeprint.c and rename.
3681 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
3682 (print_spaces_filtered_with_print_options): Update.
3683 (c_print_type_union_field_offset, maybe_print_hole)
3684 (c_print_type_struct_field_offset): Move to typeprint.c and
3685 rename.
3686 (c_type_print_base_struct_union): Update.
3687
3688 2018-06-25 Pedro Alves <palves@redhat.com>
3689
3690 * gdbthread.h (thread_info_ref, delete_thread)
3691 (delete_thread_silent, first_thread_of_inferior)
3692 (any_thread_of_inferior, switch_to_thread)
3693 (enable_thread_stack_temporaries)
3694 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
3695 (get_last_thread_stack_temporary)
3696 (value_in_thread_stack_temporaries, can_access_registers_thread):
3697 Spell out "struct thread_info" instead of just "thread_info".
3698 * inferior.h (notice_new_inferior): Likewise.
3699
3700 2018-06-25 Pedro Alves <palves@redhat.com>
3701
3702 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
3703 pass thread_info pointer to delete_thread.
3704 (windows_nat_target::detach): Pass inferior pointer to
3705 detach_inferior.
3706 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
3707 delete_thread.
3708 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
3709 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
3710 and pass a thread_info pointer to delete_thread.
3711 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
3712 pass thread_info pointer to delete_thread.
3713 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
3714 delete_thread_silent call.
3715 * procfs.c (procfs_target::detach): Pass inferior pointer to
3716 detach_inferior.
3717 (procfs_target::wait): Pass thread_info pointer to delete_thread.
3718 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
3719 delete_thread_silent call.
3720 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
3721 pass thread_info pointer to delete_thread.
3722 (windows_nat_target::detach): Pass inferior pointer to
3723 delete_inferior.
3724
3725 2018-06-22 Alan Hayward <alan.hayward@arm.com>
3726
3727 * regcache.c (readable_regcache::read_part): Fix asserts.
3728 (reg_buffer::raw_collect_part): New function.
3729 (regcache::write_part): Fix asserts.
3730 (reg_buffer::raw_supply_part): New function.
3731 (regcache::transfer_regset_register): New helper function.
3732 (regcache::transfer_regset): Call new functions.
3733 (regcache_supply_regset): Use gdb_byte*.
3734 (regcache::supply_regset): Likewise.
3735 (regcache_collect_regset): Likewise.
3736 (regcache::collect_regset): Likewise.
3737 * regcache.h (reg_buffer::raw_collect_part): New declaration.
3738 (reg_buffer::raw_supply_part): Likewise.
3739 (regcache::transfer_regset_register): Likewise.
3740 (regcache::transfer_regset): Use gdb_byte*.
3741
3742 2018-06-22 Alan Hayward <alan.hayward@arm.com>
3743
3744 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
3745
3746 2018-06-21 Pedro Alves <palves@redhat.com>
3747
3748 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
3749 instead of a ptid_t. All callers adjusted.
3750 * ada-tasks.c (ada_get_task_number): Likewise. All callers
3751 adjusted.
3752 (print_ada_task_info, display_current_task_id, task_command_1):
3753 Adjust.
3754 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
3755 inferior_thread.
3756 (breakpoint_kind): Adjust.
3757 (remove_breakpoints_pid): Rename to ...
3758 (remove_breakpoints_inf): ... this. Adjust to take an inferior
3759 pointer. All callers adjusted.
3760 (bpstat_clear_actions): Use inferior_thread.
3761 (get_bpstat_thread): New.
3762 (bpstat_do_actions): Use it.
3763 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
3764 to take a thread_info pointer. All callers adjusted.
3765 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
3766 (breakpoint_re_set_thread): Use inferior_thread.
3767 * breakpoint.h (struct inferior): Forward declare.
3768 (bpstat_stop_status): Update.
3769 (remove_breakpoints_pid): Delete.
3770 (remove_breakpoints_inf): New.
3771 * bsd-uthread.c (bsd_uthread_target::wait)
3772 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
3773 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
3774 (maint_btrace_packet_history_cmd)
3775 (maint_btrace_clear_packet_history_cmd): Adjust.
3776 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
3777 inferior_thread.
3778 * cli/cli-interp.c: Include "inferior.h".
3779 * common/refcounted-object.h (struct
3780 refcounted_object_ref_policy): New.
3781 * compile/compile-object-load.c: Include gdbthread.h.
3782 (store_regs): Use inferior_thread.
3783 * corelow.c (core_target::close): Use current_inferior.
3784 (core_target_open): Adjust to use first_thread_of_inferior and use
3785 the current inferior.
3786 * ctf.c (ctf_target::close): Adjust to use current_inferior.
3787 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
3788 <thread>: ... this new field. All references adjusted.
3789 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
3790 Take a thread_info pointer instead of a ptid_t.
3791 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
3792 (dummy_frame_discard, register_dummy_frame_dtor): Take a
3793 thread_info pointer instead of a ptid_t.
3794 * elfread.c: Include "inferior.h".
3795 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
3796 Use inferior_thread.
3797 * eval.c (evaluate_subexp): Likewise.
3798 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
3799 inferior_thread.
3800 * gdb_proc_service.h (struct thread_info): Forward declare.
3801 (struct ps_prochandle) <ptid>: Delete, replaced by ...
3802 <thread>: ... this new field. All references adjusted.
3803 * gdbarch.h, gdbarch.c: Regenerate.
3804 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
3805 'thread' parameter. All implementations and callers adjusted.
3806 * gdbthread.h (thread_info) <set_running>: New method.
3807 (delete_thread, delete_thread_silent): Take a thread_info pointer
3808 instead of a ptid.
3809 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
3810 (first_thread_of_process): Delete, replaced by ...
3811 (first_thread_of_inferior): ... this new function. All callers
3812 adjusted.
3813 (any_live_thread_of_process): Delete, replaced by ...
3814 (any_live_thread_of_inferior): ... this new function. All callers
3815 adjusted.
3816 (switch_to_thread, switch_to_no_thread): Declare.
3817 (is_executing): Delete.
3818 (enable_thread_stack_temporaries): Update comment.
3819 <enable_thread_stack_temporaries>: Take a thread_info pointer
3820 instead of a ptid_t. Incref the thread.
3821 <~enable_thread_stack_temporaries>: Decref the thread.
3822 <m_ptid>: Delete
3823 <m_thr>: New.
3824 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
3825 (get_last_thread_stack_temporary)
3826 (value_in_thread_stack_temporaries, can_access_registers_thread):
3827 Take a thread_info pointer instead of a ptid_t. All callers
3828 adjusted.
3829 * infcall.c (get_call_return_value): Use inferior_thread.
3830 (run_inferior_call): Work with thread pointers instead of ptid_t.
3831 (call_function_by_hand_dummy): Work with thread pointers instead
3832 of ptid_t. Use thread_info_ref.
3833 * infcmd.c (proceed_thread_callback): Access thread's state
3834 directly.
3835 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
3836 access thread's state directly.
3837 (continue_command): Use inferior_thread.
3838 (info_program_command): Use find_thread_ptid and access thread
3839 state directly.
3840 (proceed_after_attach_callback): Use thread state directly.
3841 (notice_new_inferior): Take a thread_info pointer instead of a
3842 ptid_t. All callers adjusted.
3843 (exit_inferior): Take an inferior pointer instead of a pid. All
3844 callers adjusted.
3845 (exit_inferior_silent): New.
3846 (detach_inferior): Delete.
3847 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
3848 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
3849 (detach_inferior_command, kill_inferior_command): Use
3850 find_inferior_id instead of valid_gdb_inferior_id and
3851 gdb_inferior_id_to_pid.
3852 (inferior_command): Use inferior and thread pointers.
3853 * inferior.h (struct thread_info): Forward declare.
3854 (notice_new_inferior): Take a thread_info pointer instead of a
3855 ptid_t. All callers adjusted.
3856 (detach_inferior): Delete declaration.
3857 (exit_inferior, exit_inferior_silent): Take an inferior pointer
3858 instead of a pid. All callers adjusted.
3859 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
3860 (valid_gdb_inferior_id): Delete.
3861 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
3862 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
3863 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
3864 ...
3865 <inf>: ... this new field.
3866 <step_ptid>: Delete, replaced by ...
3867 <step_thread>: ... this new field.
3868 (get_displaced_stepping_state): Take an inferior pointer instead
3869 of a pid. All callers adjusted.
3870 (displaced_step_in_progress_any_inferior): Adjust.
3871 (displaced_step_in_progress_thread): Take a thread pointer instead
3872 of a ptid_t. All callers adjusted.
3873 (displaced_step_in_progress, add_displaced_stepping_state): Take
3874 an inferior pointer instead of a pid. All callers adjusted.
3875 (get_displaced_step_closure_by_addr): Adjust.
3876 (remove_displaced_stepping_state): Take an inferior pointer
3877 instead of a pid. All callers adjusted.
3878 (displaced_step_prepare_throw, displaced_step_prepare)
3879 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
3880 All callers adjusted.
3881 (start_step_over): Adjust.
3882 (infrun_thread_ptid_changed): Remove bit updating ptids in the
3883 displaced step queue.
3884 (do_target_resume): Adjust.
3885 (fetch_inferior_event): Use inferior_thread.
3886 (context_switch, get_inferior_stop_soon): Take an
3887 execution_control_state pointer instead of a ptid_t. All callers
3888 adjusted.
3889 (switch_to_thread_cleanup): Delete.
3890 (stop_all_threads): Use scoped_restore_current_thread.
3891 * inline-frame.c: Include "gdbthread.h".
3892 (inline_state) <inline_state>: Take a thread pointer instead of a
3893 ptid_t. All callers adjusted.
3894 <ptid>: Delete, replaced by ...
3895 <thread>: ... this new field.
3896 (find_inline_frame_state): Take a thread pointer instead of a
3897 ptid_t. All callers adjusted.
3898 (skip_inline_frames, step_into_inline_frame)
3899 (inline_skipped_frames, inline_skipped_symbol): Take a thread
3900 pointer instead of a ptid_t. All callers adjusted.
3901 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
3902 (inline_skipped_frames, inline_skipped_symbol): Likewise.
3903 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
3904 pointers directly.
3905 * linux-nat.c (get_detach_signal): Likewise.
3906 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
3907 (thread_db_notice_clone): Adjust.
3908 (thread_db_find_new_threads_silently)
3909 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
3910 a thread pointer instead of a ptid_t. All callers adjusted.
3911 * mi/mi-cmd-var.c: Include "inferior.h".
3912 (mi_cmd_var_update_iter): Update to use thread pointers.
3913 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
3914 inferior directly.
3915 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
3916 out to ...
3917 (mi_output_running): ... this new function.
3918 (mi_on_resume_1): Adjust to use it.
3919 (mi_user_selected_context_changed): Adjust to use inferior_thread.
3920 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
3921 directly.
3922 (interrupt_thread_callback): : Adjust to use thread and inferior
3923 pointers.
3924 * proc-service.c: Include "gdbthread.h".
3925 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
3926 * progspace-and-thread.c: Include "inferior.h".
3927 * progspace.c: Include "inferior.h".
3928 * python/py-exitedevent.c (create_exited_event_object): Adjust to
3929 hold a reference to an inferior_object.
3930 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
3931 inferior_thread.
3932 * python/py-inferior.c (struct inferior_object): Give the type a
3933 tag name instead of a typedef.
3934 (python_on_normal_stop): No need to check if the current thread is
3935 listed.
3936 (inferior_to_inferior_object): Change return type to
3937 inferior_object. All callers adjusted.
3938 (find_thread_object): Delete, bits factored out to ...
3939 (thread_to_thread_object): ... this new function.
3940 * python/py-infthread.c (create_thread_object): Use
3941 inferior_to_inferior_object.
3942 (thpy_is_stopped): Use thread pointer directly.
3943 (gdbpy_selected_thread): Use inferior_thread.
3944 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
3945 field, replaced with ...
3946 <thread>: ... this new field. All users adjusted.
3947 (btpy_insn_or_gap_new): Drop const.
3948 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
3949 callers adjusted.
3950 * python/py-record.c: Include "gdbthread.h".
3951 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
3952 a ptid_t. All callers adjusted.
3953 (gdbpy_current_recording): Use inferior_thread.
3954 * python/py-record.h (recpy_record_object) <ptid>: Delete
3955 field, replaced with ...
3956 <thread>: ... this new field. All users adjusted.
3957 (recpy_element_object) <ptid>: Delete
3958 field, replaced with ...
3959 <thread>: ... this new field. All users adjusted.
3960 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
3961 a ptid_t. All callers adjusted.
3962 * python/py-threadevent.c: Include "gdbthread.h".
3963 (get_event_thread): Use thread_to_thread_object.
3964 * python/python-internal.h (struct inferior_object): Forward
3965 declare.
3966 (find_thread_object, find_inferior_object): Delete declarations.
3967 (thread_to_thread_object, inferior_to_inferior_object): New
3968 declarations.
3969 * record-btrace.c: Include "inferior.h".
3970 (require_btrace_thread): Use inferior_thread.
3971 (record_btrace_frame_sniffer)
3972 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
3973 (get_thread_current_frame): Use scoped_restore_current_thread and
3974 switch_to_thread.
3975 (get_thread_current_frame): Use thread pointer directly.
3976 (record_btrace_replay_at_breakpoint): Use thread's inferior
3977 pointer directly.
3978 * record-full.c: Include "inferior.h".
3979 * regcache.c: Include "gdbthread.h".
3980 (get_thread_arch_regcache): Use the inferior's address space
3981 directly.
3982 (get_thread_regcache, registers_changed_thread): New.
3983 * regcache.h (get_thread_regcache(thread_info *thread)): New
3984 overload.
3985 (registers_changed_thread): New.
3986 (remote_target) <remote_detach_1>: Swap order of parameters.
3987 (remote_add_thread): <remote_add_thread>: Return the new thread.
3988 (get_remote_thread_info(ptid_t)): New overload.
3989 (remote_target::remote_notice_new_inferior): Use thread pointers
3990 directly.
3991 (remote_target::process_initial_stop_replies): Use
3992 thread_info::set_running.
3993 (remote_target::remote_detach_1, remote_target::detach)
3994 (extended_remote_target::detach): Adjust.
3995 * stack.c (frame_show_address): Use inferior_thread.
3996 * target-debug.h (target_debug_print_thread_info_pp): New.
3997 * target-delegates.c: Regenerate.
3998 * target.c (default_thread_address_space): Delete.
3999 (memory_xfer_partial_1): Use current_inferior.
4000 (target_detach): Use current_inferior.
4001 (target_thread_address_space): Delete.
4002 (generic_mourn_inferior): Use current_inferior.
4003 * target.h (struct target_ops) <thread_address_space>: Delete.
4004 (target_thread_address_space): Delete.
4005 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
4006 pointers directly.
4007 (delete_thread_1, delete_thread, delete_thread_silent): Take a
4008 thread pointer instead of a ptid_t. Adjust all callers.
4009 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
4010 (first_thread_of_process): Delete, replaced by ...
4011 (first_thread_of_inferior): ... this new function. All callers
4012 adjusted.
4013 (any_thread_of_process): Rename to ...
4014 (any_thread_of_inferior): ... this, and take an inferior pointer.
4015 (any_live_thread_of_process): Rename to ...
4016 (any_live_thread_of_inferior): ... this, and take an inferior
4017 pointer.
4018 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4019 (value_in_thread_stack_temporaries)
4020 (get_last_thread_stack_temporary): Take a thread pointer instead
4021 of a ptid_t. Adjust all callers.
4022 (thread_info::set_running): New.
4023 (validate_registers_access): Use inferior_thread.
4024 (can_access_registers_ptid): Rename to ...
4025 (can_access_registers_thread): ... this, and take a thread
4026 pointer.
4027 (print_thread_info_1): Adjust to compare thread pointers instead
4028 of ptids.
4029 (switch_to_no_thread, switch_to_thread): Make extern.
4030 (scoped_restore_current_thread::~scoped_restore_current_thread):
4031 Use m_thread pointer directly.
4032 (scoped_restore_current_thread::scoped_restore_current_thread):
4033 Use inferior_thread.
4034 (thread_command): Use thread pointer directly.
4035 (thread_num_make_value_helper): Use inferior_thread.
4036 * top.c (execute_command): Use inferior_thread.
4037 * tui/tui-interp.c: Include "inferior.h".
4038 * varobj.c (varobj_create): Use inferior_thread.
4039 (value_of_root_1): Use find_thread_global_id instead of
4040 global_thread_id_to_ptid.
4041
4042 2018-06-21 Alan Hayward <alan.hayward@arm.com>
4043
4044 * regcache.c (readable_regcache::read_part): Avoid memcpy when
4045 possible.
4046 (regcache::write_part): Likewise.
4047 (readable_regcache::cooked_read_part): Update comment.
4048 (readable_regcache::cooked_write_part): Likewise.
4049 * regcache.h: (readable_regcache::read_part): Likewise.
4050 (regcache::write_part): Likewise.
4051
4052 2018-06-21 Richard Bunt <richard.bunt@arm.com>
4053 Dirk Schubert <dirk.schubert@arm.com>
4054
4055 * aarch64-linux-nat.c (post_attach): New.
4056 (aarch64_linux_nat_target::post_attach): Override post_attach to
4057 record the number of hardware debug registers.
4058
4059 2018-06-20 Tom Tromey <tom@tromey.com>
4060
4061 * python/py-param.c (add_setshow_generic): Make parameters const.
4062 (parmpy_init): Update.
4063
4064 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
4065
4066 * regcache.h (regcache_cooked_read_ftype): Rename to...
4067 (register_read_ftype): ...this, change type to function_view.
4068 (class reg_buffer) <save>: Remove src parameter.
4069 (readonly_detached_regcache) <readonly_detached_regcache>: Make
4070 parameter non-const in first overload. Remove src parameter in
4071 second overload.
4072 * regcache.c (do_cooked_read): Remove.
4073 (readonly_detached_regcache::readonly_detached_regcache): Make
4074 parameter non-const, adjust call to other constructor.
4075 (reg_buffer::save): Remove src parameter.
4076 * frame.c (do_frame_register_read): Remove.
4077 (frame_save_as_regcache): Use lambda function.
4078 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
4079 parameter to ppu2spu_data *.
4080 (ppu2spu_sniffer): Use lambda function.
4081
4082 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
4083
4084 * record-full.c (record_full_target::insert_breakpoint): Remove
4085 "struct" keyword, add const.
4086
4087 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
4088
4089 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
4090 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
4091 * configure.ac: Remove AC_PREREQ, add missing quoting.
4092 * gnulib/configure.ac: Modernize usage of
4093 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
4094 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
4095 (AUTOMAKE_VERSION): Bump to 1.15.1.
4096 * configure: Re-generate.
4097 * config.in: Re-generate.
4098 * aclocal.m4: Re-generate.
4099 * gnulib/aclocal.m4: Re-generate.
4100 * gnulib/config.in: Re-generate.
4101 * gnulib/configure: Re-generate.
4102 * gnulib/import/Makefile.in: Re-generate.
4103
4104 2018-06-19 Pedro Alves <palves@redhat.com>
4105
4106 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
4107 (lookup_minimal_symbol_by_pc_section): ... here with
4108 gdb_assert_not_reached added.
4109
4110 2018-06-19 Pedro Alves <palves@redhat.com>
4111
4112 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
4113 parameter with a block parameter. Compare location's block symbol
4114 with the frame's block instead of addresses.
4115 (skip_inline_frames): Pass the current block instead of the
4116 frame's address. Break out as soon as we determine the frame
4117 should not be skipped.
4118
4119 2018-06-18 Tom Tromey <tom@tromey.com>
4120
4121 * solib-aix.c (solib_aix_get_section_offsets): Return
4122 unique_xmalloc_ptr.
4123 (solib_aix_solib_create_inferior_hook): Update.
4124
4125 2018-06-18 Tom Tromey <tom@tromey.com>
4126
4127 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
4128
4129 2018-06-18 Tom Tromey <tom@tromey.com>
4130
4131 * solib-frv.c (frv_relocate_main_executable): Use
4132 unique_xmalloc_ptr.
4133 * solib-dsbt.c (dsbt_relocate_main_executable): Use
4134 unique_xmalloc_ptr.
4135
4136 2018-06-18 Tom Tromey <tom@tromey.com>
4137
4138 * objfiles.h (inhibit_section_map_updates): Update.
4139 (resume_section_map_updates, resume_section_map_updates_cleanup):
4140 Remove.
4141 * solib-svr4.c (svr4_handle_solib_event): Update.
4142 * objfiles.c (inhibit_section_map_updates): Return
4143 scoped_restore_tmpl<int>.
4144 (resume_section_map_updates, resume_section_map_updates_cleanup):
4145 Remove.
4146
4147 2018-06-18 Tom Tromey <tom@tromey.com>
4148
4149 * valprint.h (read_string): Update.
4150 * valprint.c (read_string): Change type of "buffer".
4151 (val_print_string): Update.
4152 * python/py-value.c (valpy_string): Update.
4153 * language.h (struct language_defn) <la_get_string>: Change
4154 type of "buffer".
4155 (default_get_string, c_get_string): Update.
4156 * language.c (default_get_string): Change type of "buffer".
4157 * guile/scm-value.c (gdbscm_value_to_string): Update.
4158 * c-lang.c (c_get_string): Change type of "buffer".
4159
4160 2018-06-18 Tom Tromey <tom@tromey.com>
4161
4162 * ser-mingw.c (struct pipe_state_destroyer): New.
4163 (pipe_state_up): New typedef.
4164 (cleanup_pipe_state): Remove.
4165 (pipe_windows_open): Use pipe_state_up. Don't release argv.
4166
4167 2018-06-18 Tom Tromey <tom@tromey.com>
4168
4169 * rust-lang.h (rust_yyerror): Don't declare.
4170 * rust-lang.c (rust_language_defn): Update.
4171 * rust-exp.y (yyerror): Now static.
4172 * parse.c (parse_exp_in_context_1): Update.
4173 * p-lang.h (p_yyerror): Don't declare.
4174 * p-lang.c (p_language_defn): Update.
4175 * p-exp.y (yyerror): Now static.
4176 * opencl-lang.c (opencl_language_defn): Update.
4177 * objc-lang.c (objc_language_defn): Update.
4178 * m2-lang.h (m2_yyerror): Don't declare.
4179 * m2-lang.c (m2_language_defn): Update.
4180 * m2-exp.y (yyerror): Now static.
4181 * language.h (struct language_defn) <la_error>: Remove.
4182 * language.c (unk_lang_error): Remove.
4183 (unknown_language_defn, auto_language_defn): Remove.
4184 * go-lang.h (go_yyerror): Don't declare.
4185 * go-lang.c (go_language_defn): Update.
4186 * go-exp.y (yyerror): Now static.
4187 * f-lang.h (f_yyerror): Don't declare.
4188 * f-lang.c (f_language_defn): Update.
4189 * f-exp.y (yyerror): Now static.
4190 * d-lang.h (d_yyerror): Don't declare.
4191 * d-lang.c (d_language_defn): Update.
4192 * d-exp.y (yyerror): Now static.
4193 * c-lang.h (c_yyerror): Don't declare.
4194 * c-lang.c (c_language_defn, cplus_language_defn)
4195 (asm_language_defn, minimal_language_defn): Update.
4196 * c-exp.y (yyerror): Now static.
4197 * ada-lang.h (ada_yyerror): Don't declare.
4198 * ada-lang.c (ada_language_defn): Update.
4199 * ada-exp.y (yyerror): Now static.
4200
4201 2018-06-18 Alan Hayward <alan.hayward@arm.com>
4202
4203 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
4204 (store_sveregs_to_thread): Likewise.
4205 (aarch64_linux_fetch_inferior_registers): Check for SVE.
4206 (aarch64_linux_store_inferior_registers): Likewise.
4207 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
4208 function.
4209 (aarch64_sve_regs_copy_to_regcache): Likewise.
4210 (aarch64_sve_regs_copy_from_regcache): Likewise.
4211 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
4212 declaration.
4213 (aarch64_sve_regs_copy_to_regcache): Likewise.
4214 (aarch64_sve_regs_copy_from_regcache): Likewise.
4215 (sve_context): Structure from Linux headers.
4216 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
4217 (SVE_SIG_ZREG_SIZE): Likewise.
4218 (SVE_SIG_PREG_SIZE): Likewise.
4219 (SVE_SIG_FFR_SIZE): Likewise.
4220 (SVE_SIG_REGS_OFFSET): Likewise.
4221 (SVE_SIG_ZREGS_OFFSET): Likewise.
4222 (SVE_SIG_ZREG_OFFSET): Likewise.
4223 (SVE_SIG_ZREGS_SIZE): Likewise.
4224 (SVE_SIG_PREGS_OFFSET): Likewise.
4225 (SVE_SIG_PREG_OFFSET): Likewise.
4226 (SVE_SIG_PREGS_SIZE): Likewise.
4227 (SVE_SIG_FFR_OFFSET): Likewise.
4228 (SVE_SIG_REGS_SIZE): Likewise.
4229 (SVE_SIG_CONTEXT_SIZE): Likewise.
4230 (SVE_PT_REGS_MASK): Likewise.
4231 (SVE_PT_REGS_FPSIMD): Likewise.
4232 (SVE_PT_REGS_SVE): Likewise.
4233 (SVE_PT_VL_INHERIT): Likewise.
4234 (SVE_PT_VL_ONEXEC): Likewise.
4235 (SVE_PT_REGS_OFFSET): Likewise.
4236 (SVE_PT_FPSIMD_OFFSET): Likewise.
4237 (SVE_PT_FPSIMD_SIZE): Likewise.
4238 (SVE_PT_SVE_ZREG_SIZE): Likewise.
4239 (SVE_PT_SVE_PREG_SIZE): Likewise.
4240 (SVE_PT_SVE_FFR_SIZE): Likewise.
4241 (SVE_PT_SVE_FPSR_SIZE): Likewise.
4242 (SVE_PT_SVE_FPCR_SIZE): Likewise.
4243 (__SVE_SIG_TO_PT): Likewise.
4244 (SVE_PT_SVE_OFFSET): Likewise.
4245 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
4246 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
4247 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
4248 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
4249 (SVE_PT_SVE_PREG_OFFSET): Likewise.
4250 (SVE_PT_SVE_PREGS_SIZE): Likewise.
4251 (SVE_PT_SVE_FFR_OFFSET): Likewise.
4252 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
4253 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
4254 (SVE_PT_SVE_SIZE): Likewise.
4255 (SVE_PT_SIZE): Likewise.
4256 (HAS_SVE_STATE): New define.
4257
4258 2018-06-18 Alan Hayward <alan.hayward@arm.com>
4259
4260 * nat/aarch64-sve-linux-sigcontext.h: New file.
4261 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
4262 new files.
4263 (SVE_VQ_MIN): Likewise.
4264 (SVE_VQ_MAX): Likewise.
4265 (SVE_VL_MIN): Likewise.
4266 (SVE_VL_MAX): Likewise.
4267 (SVE_NUM_ZREGS): Likewise.
4268 (SVE_NUM_PREGS): Likewise.
4269 (sve_vl_valid): Likewise.
4270 (struct user_sve_header): Likewise.
4271
4272 2018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
4273 Richard Bunt <Richard.Bunt@arm.com>
4274
4275 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
4276 was requested by GDB.
4277
4278 2018-06-15 Tom de Vries <tdevries@suse.de>
4279
4280 * MAINTAINERS (Write After Approval): Add Tom de Vries.
4281
4282 2018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
4283
4284 * gnulib/update-gnulib.sh: Print expected versions of
4285 autoconf/aclocal.
4286
4287 2018-06-14 Simon Marchi <simon.marchi@ericsson.com>
4288
4289 * arch-utils.c (default_type_align): Use type_length_units.
4290 * gdbtypes.c (type_align): Use type_length_units.
4291
4292 2018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4293
4294 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
4295 of 'define' command.
4296
4297 2018-06-14 Tom de Vries <tdevries@suse.de>
4298
4299 PR cli/22573
4300 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
4301 get_no_prettyformat_print_options.
4302
4303 2018-06-13 Simon Marchi <simon.marchi@ericsson.com>
4304
4305 * sparc-nat.h: Include target.h.
4306 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
4307 <fetch_registers>: Remove this argument in function call.
4308 <store_registers>: Remove this argument in function call, remove
4309 extra semicolon.
4310 <low_forget_process>: Call sparc64_forget_process instead of
4311 sparc_forget_process.
4312
4313 2018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4314
4315 * procfs.c (_initialize_procfs): Use add_inf_child_target.
4316 (procfs_target::make_corefile_notes): Adjust to new
4317 target_read_alloc return type.
4318
4319 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
4320 Stephen Roberts <stephen.roberts@arm.com>
4321
4322 PR gdb/22882
4323 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
4324 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
4325 Move should_notify_stop local into more inner scope.
4326
4327 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
4328 Stephen Roberts <stephen.roberts@arm.com>
4329
4330 PR gdb/22882
4331 * infrun.c (resume_1): Add call to mark_async_event_handler.
4332
4333 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
4334
4335 * infrun.c (do_target_wait): Change old version of $pc printed.
4336
4337 2018-06-11 Simon Marchi <simon.marchi@ericsson.com>
4338
4339 * dwarf2read.c (read_index_from_section): Rename to...
4340 (read_gdb_index_from_section): ... this, update all callers.
4341 (dwarf2_read_index): Rename to...
4342 (dwarf2_read_gdb_index): ... this, update all callers.
4343
4344 2018-06-11 John David Anglin <danglin@gcc.gnu.org>
4345
4346 * gdb/hppa-linux-nat.c
4347 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
4348 hppa_linux_nat_target::fetch_registers.
4349
4350 2018-06-11 Alan Hayward <alan.hayward@arm.com>
4351
4352 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
4353 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
4354 (AARCH64_DWARF_SVE_FFR): Likewise.
4355 (AARCH64_DWARF_SVE_P0): Likewise.
4356 (AARCH64_DWARF_SVE_Z0): Likewise.
4357
4358 2018-06-11 Alan Hayward <alan.hayward@arm.com>
4359
4360 * common/common-regcache.h (raw_compare): New function.
4361 * regcache.c (regcache::raw_compare): Likewise.
4362 * regcache.h (regcache::raw_compare): New declaration.
4363
4364 2018-06-11 Alan Hayward <alan.hayward@arm.com>
4365
4366 * common/common-regcache.h (reg_buffer_common): New structure.
4367 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
4368 (reg_buffer::raw_supply): Likewise.
4369 (reg_buffer::raw_supply_integer): Likewise.
4370 (reg_buffer::raw_supply_zeroed): Likewise.
4371 (reg_buffer::raw_collect): Likewise.
4372 (reg_buffer::raw_collect_integer): Likewise.
4373 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
4374 (reg_buffer::raw_supply): Likewise.
4375 (reg_buffer::raw_supply_integer): Likewise.
4376 (reg_buffer::raw_supply_zeroed): Likewise.
4377 (reg_buffer::raw_collect): Likewise.
4378 (reg_buffer::raw_collect_integer): Likewise.
4379
4380 2018-06-10 Tom Tromey <tom@tromey.com>
4381
4382 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
4383 (class remote_state) <stop_reply_queue>: Now std::vector.
4384 (remote_state::~remote_state)
4385 (remote_target::stop_reply_queue_length): Update.
4386 (struct queue_iter_param, remove_child_of_pending_fork)
4387 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
4388 (check_pending_event_prevents_wildcard_vcont_callback)
4389 (remove_stop_reply_for_inferior)
4390 (remove_stop_reply_of_remote_state)
4391 (remote_notif_remove_once_on_match)
4392 (stop_reply_match_ptid_and_ws)
4393 (remote_kill_child_of_pending_fork): Remove.
4394 (remote_target::remove_new_fork_children)
4395 (remote_target::check_pending_events_prevent_wildcard_vcont)
4396 (remote_target::discard_pending_stop_replies)
4397 (remote_target::discard_pending_stop_replies_in_queue)
4398 (remote_target::remote_notif_remove_queued_reply)
4399 (remote_target::queued_stop_reply)
4400 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
4401 (remote_target::wait, remote_target::kill_new_fork_children)
4402 (remote_target::async): Update.
4403
4404 2018-06-10 Tom Tromey <tom@tromey.com>
4405
4406 * record-full.c (record_full_arch_list_cleanups): Remove.
4407 (record_full_message): Use try/catch.
4408 (record_full_wait_cleanups): Remove.
4409 (record_full_wait_1): Use try/catch.
4410 (record_full_restore): Likewise.
4411
4412 2018-06-10 Tom Tromey <tom@tromey.com>
4413
4414 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
4415 declare VEC. Add constructor.
4416 <in_target_beneath>: Now bool.
4417 (record_full_breakpoints): Now a std::vector, static.
4418 (record_full_sync_record_breakpoints)
4419 (record_full_init_record_breakpoints)
4420 (record_full_target::insert_breakpoint)
4421 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
4422
4423 2018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
4424
4425 * dwarf2read.c (process_cu_includes): Remove struct keyword.
4426 * serial.c (serial_interface_lookup): Remove struct keyword.
4427
4428 2018-06-10 Tom Tromey <tom@tromey.com>
4429
4430 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
4431 method.
4432 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
4433 a method.
4434 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
4435 method.
4436 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
4437 "beneath" as a method.
4438 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
4439 Use "beneath" as a method.
4440
4441 2018-06-10 Tom Tromey <tom@tromey.com>
4442
4443 * tracefile.c (struct trace_file_writer_deleter): New.
4444 <operator()>: Rename from trace_file_writer_xfree.
4445 (trace_file_writer_up): New typedef.
4446 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
4447
4448 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
4449
4450 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
4451 <m_registers, m_register_status>: Change type to
4452 std::unique_ptr.
4453 * regcache.c (reg_buffer::reg_buffer): Use new instead of
4454 XCNEWVEC.
4455
4456 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
4457
4458 * common/common-regcache.h (enum register_status): Add
4459 underlying type "signed char".
4460 * regcache.h (reg_buffer) <m_register_status>: Change type to
4461 register_status *.
4462 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
4463 register_status instead of signed char.
4464 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
4465 (reg_buffer::get_register_status): Remove cast.
4466 (readable_regcache::raw_read): Remove cast.
4467 (readable_regcache::cooked_read): Remove cast.
4468
4469 2018-06-09 Tom Tromey <tom@tromey.com>
4470
4471 * source.c (reverse_search_command, forward_search_command): Use
4472 scoped_fd.
4473
4474 2018-06-09 Tom Tromey <tom@tromey.com>
4475
4476 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
4477 (serial_ops_list): Now static, std::vector.
4478 (serial_interface_lookup, serial_add_interface): Update.
4479
4480 2018-06-09 Tom Tromey <tom@tromey.com>
4481
4482 * dwarf2read.c (process_cu_includes): Update.
4483 (process_full_comp_unit): Update.
4484 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
4485 std::vector.
4486
4487 2018-06-08 Paul Koning <paul_koning@dell.com>
4488
4489 PR gdb/23252
4490
4491 * python/python.c (do_start_initialization):
4492 Avoid call to internal Python API.
4493 (init__gdb_module): New function.
4494
4495 2018-06-08 Gary Benson <gbenson@redhat.com>
4496
4497 * linux-thread-db.c (valprint.h): New include.
4498 (struct check_thread_db_info): New structure.
4499 (check_thread_db_on_load, tdb_testinfo): New static globals.
4500 (check_thread_db, check_thread_db_callback): New functions.
4501 (try_thread_db_load_1): Run integrity checks if requested.
4502 (maintenance_check_libthread_db): New function.
4503 (_initialize_thread_db): Register "maint check libthread-db"
4504 and "maint set/show check-libthread-db".
4505 * NEWS: Mention the above new commands.
4506
4507 2018-06-08 Tom Tromey <tom@tromey.com>
4508
4509 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
4510 now a method.
4511
4512 2018-06-08 Tom Tromey <tom@tromey.com>
4513
4514 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
4515
4516 2018-06-08 Tom Tromey <tom@tromey.com>
4517
4518 * common/btrace-common.h (struct btrace_data): Add constructor,
4519 destructor, move assignment operator.
4520 <empty, clear, fini>: New methods.
4521 <format>: Initialize.
4522 (btrace_data_init, btrace_data_fini, btrace_data_clear)
4523 (btrace_data_empty): Don't declare.
4524 * common/btrace-common.c (btrace_data_init): Remove.
4525 (btrace_data::fini): Rename from btrace_data_fini.
4526 (btrace_data::empty): Rename from btrace_data_empty.
4527 (btrace_data::clear): Rename from btrace_data_clear. Return
4528 bool.
4529 * btrace.h (make_cleanup_btrace_data): Don't declare.
4530 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
4531 (parse_xml_btrace): Update.
4532 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
4533 (maint_btrace_clear_packet_history_cmd): Update.
4534
4535 2018-06-07 Pedro Alves <palves@redhat.com>
4536
4537 * target.h (target_ops) <beneath>: Now a method. All references
4538 updated.
4539 (class target_stack): New.
4540 * target.c (g_target_stack): New.
4541 (g_current_top_target): Delete.
4542 (current_top_target): Get the top target out of g_target_stack.
4543 (target_stack::push, target_stack::unpush): New.
4544 (push_target, unpush_target): Reimplement.
4545 (target_is_pushed): Reimplement in terms of g_target_stack.
4546 (target_ops::beneath, target_stack::find_beneath): New.
4547
4548 2018-06-07 Pedro Alves <palves@redhat.com>
4549
4550 * target.h (find_target_beneath): Delete declaration.
4551 * target.c (find_target_beneath): Delete definition.
4552 * aix-thread.c: All callers of find_target_beneath adjusted to
4553 call target_ops::beneath instead.
4554 * bsd-uthread.c: Likewise.
4555 * linux-thread-db.c: Likewise.
4556 * ravenscar-thread.c: Likewise.
4557 * sol-thread.c: Likewise.
4558 * spu-multiarch.c: Likewise.
4559
4560 2018-06-07 Pedro Alves <palves@redhat.com>
4561
4562 * target.h (target_ops) <beneath>: Now a method. All references
4563 updated.
4564 (target_ops) <m_beneath>: New.
4565 * target.c (target_ops::beneath): New.
4566 * corelow.c: Adjust all references to target_ops::beneath.
4567 * linux-thread-db.c: Likewise.
4568 * make-target-delegates: Likewise.
4569 * record-btrace.c: Likewise.
4570 * record-full.c: Likewise.
4571 * remote.c: Likewise.
4572 * target.c: Likewise.
4573 * target-delegates.c: Regenerate.
4574
4575 2018-06-07 Pedro Alves <palves@redhat.com>
4576
4577 * target.h (target_stack): Delete.
4578 (current_top_target): Declare function.
4579 * target.c (target_stack): Delete.
4580 (g_current_top_target): New.
4581 (current_top_target): New function.
4582 * auxv.c: Use current_top_target instead of target_stack
4583 throughout.
4584 * avr-tdep.c: Likewise.
4585 * breakpoint.c: Likewise.
4586 * corefile.c: Likewise.
4587 * elfread.c: Likewise.
4588 * eval.c: Likewise.
4589 * exceptions.c: Likewise.
4590 * frame.c: Likewise.
4591 * gdbarch-selftests.c: Likewise.
4592 * gnu-v3-abi.c: Likewise.
4593 * ia64-tdep.c: Likewise.
4594 * ia64-vms-tdep.c: Likewise.
4595 * infcall.c: Likewise.
4596 * infcmd.c: Likewise.
4597 * infrun.c: Likewise.
4598 * linespec.c: Likewise.
4599 * linux-tdep.c: Likewise.
4600 * minsyms.c: Likewise.
4601 * ppc-linux-nat.c: Likewise.
4602 * ppc-linux-tdep.c: Likewise.
4603 * procfs.c: Likewise.
4604 * regcache.c: Likewise.
4605 * remote.c: Likewise.
4606 * rs6000-tdep.c: Likewise.
4607 * s390-linux-nat.c: Likewise.
4608 * s390-tdep.c: Likewise.
4609 * solib-aix.c: Likewise.
4610 * solib-darwin.c: Likewise.
4611 * solib-dsbt.c: Likewise.
4612 * solib-spu.c: Likewise.
4613 * solib-svr4.c: Likewise.
4614 * solib-target.c: Likewise.
4615 * sparc-tdep.c: Likewise.
4616 * sparc64-tdep.c: Likewise.
4617 * spu-tdep.c: Likewise.
4618 * symfile.c: Likewise.
4619 * symtab.c: Likewise.
4620 * target-descriptions.c: Likewise.
4621 * target-memory.c: Likewise.
4622 * target.c: Likewise.
4623 * target.h: Likewise.
4624 * tracefile-tfile.c: Likewise.
4625 * tracepoint.c: Likewise.
4626 * valops.c: Likewise.
4627 * valprint.c: Likewise.
4628 * value.c: Likewise.
4629 * windows-tdep.c: Likewise.
4630 * mi/mi-main.c: Likewise.
4631
4632 2018-06-07 Tom Tromey <tom@tromey.com>
4633
4634 * valprint.h (build_address_symbolic): Declare.
4635 * printcmd.c (print_address_symbolic): Update.
4636 (build_address_symbolic): Change "name" and "filename" to
4637 std::string.
4638 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4639 Update.
4640 * defs.h (build_address_symbolic): Remove declaration.
4641
4642 2018-06-07 Alan Hayward <alan.hayward@arm.com>
4643
4644 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
4645 (aarch64_vnv_type): Add function.
4646 (aarch64_pseudo_register_name): Add V regs for SVE.
4647 (aarch64_pseudo_register_type): Likewise.
4648 (aarch64_pseudo_register_reggroup_p): Likewise.
4649 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
4650 (aarch64_pseudo_read_value): Add V regs for SVE.
4651 (aarch64_pseudo_write_2): Use V0 offset for SVE
4652 (aarch64_pseudo_write): Add V regs for SVE.
4653 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
4654
4655 2018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
4656
4657 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
4658 (sve_vl_from_vq): Likewise.
4659
4660 2018-06-05 Tom Tromey <tom@tromey.com>
4661
4662 * cli/cli-cmds.c (show_version): Update.
4663 * top.c (print_gdb_version): Add "interactive" parameter.
4664 Update.
4665 * main.c (captured_main_1): Update.
4666 * top.h (print_gdb_version): Add "interactive" parameter and a
4667 comment.
4668
4669 2018-06-05 David Malcolm <dmalcolm@redhat.com>
4670
4671 * common/enum-flags.h: Add trailing semicolon to example in
4672 comment.
4673
4674 2018-06-05 Tom Tromey <tom@tromey.com>
4675
4676 PR cli/12326:
4677 * NEWS: Add entry about pager.
4678 * utils.c (pagination_disabled_for_command): New global.
4679 (prompt_for_continue): Allow "c" response to prompt.
4680 (reinitialize_more_filter): Clear
4681 pagination_disabled_for_command.
4682 (fputs_maybe_filtered): Check pagination_disabled_for_command.
4683
4684 2018-06-04 Tom Tromey <tom@tromey.com>
4685
4686 * ada-lang.h (ada_lookup_symbol_list): Update.
4687 * ada-lang.c (resolve_subexp): Update.
4688 (symbols_are_identical_enums): Change type of syms. Remove nsyms
4689 parameter.
4690 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
4691 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
4692 results parameter to std::vector.
4693 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
4694 Update.
4695 * ada-exp.y (block_lookup): Update.
4696 (select_possible_type_sym): Change type of syms. Remove nsyms
4697 parameter.
4698 (write_var_or_type, write_name_assoc): Update.
4699
4700 2018-06-04 Joel Brobecker <brobecker@adacore.com>
4701
4702 * windows-nat.c (windows_nat_target::xfer_partial): Return
4703 TARGET_XFER_E_IO if we need to delegate to the target beneath
4704 but BENEATH is NULL.
4705
4706 2018-06-04 Simon Marchi <simon.marchi@ericsson.com>
4707
4708 * Makefile.in (config.status): Add configure.nat as a
4709 dependency.
4710
4711 2018-06-04 Tom Tromey <tom@tromey.com>
4712
4713 * cp-name-parser.y (cpname_state): Add method declarations.
4714 (HANDLE_QUAL): Update.
4715 (cpname_state::d_grab, cpname_state::fill_comp)
4716 (cpname_state::make_operator, cpname_state::make_dtor)
4717 (cpname_state::make_builtin_type, cpname_state::make_name)
4718 (cpname_state::d_qualify, cpname_state::d_int_type)
4719 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
4720 (%union): Move earlier.
4721
4722 2018-06-04 Alan Hayward <alan.hayward@arm.com>
4723
4724 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
4725
4726 2018-06-04 Alan Hayward <alan.hayward@arm.com>
4727
4728 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
4729 (aarch64_pseudo_write_1): Likewise.
4730 (aarch64_pseudo_read_value): Use helper.
4731 (aarch64_pseudo_write): Likewise.
4732
4733 2018-06-04 Pedro Alves <palves@redhat.com>
4734
4735 * darwin-nat.c (darwin_ops): Delete.
4736 (darwin_attach_pid): Use get_native_target.
4737
4738 2018-06-04 Alan Hayward <alan.hayward@arm.com>
4739
4740 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
4741 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
4742
4743 2018-06-04 Alan Hayward <alan.hayward@arm.com>
4744
4745 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
4746 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
4747 (aarch64_gdbarch_init): Check for SVE.
4748 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
4749
4750 2018-06-04 Alan Hayward <alan.hayward@arm.com>
4751
4752 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
4753 * aarch64-tdep.h (aarch64_read_description): Likewise.
4754 * arch/aarch64.c (aarch64_create_target_description): Likewise.
4755 * arch/aarch64.h (aarch64_create_target_description): Likewise.
4756 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
4757 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
4758 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
4759
4760 2018-06-02 Simon Marchi <simon.marchi@ericsson.com>
4761
4762 * value.c (value_fetch_lazy_bitfield): New.
4763 (value_fetch_lazy_memory): New.
4764 (value_fetch_lazy_register): New.
4765 (value_fetch_lazy): Factor out to smaller functions.
4766
4767 2018-06-01 Tom Tromey <tom@tromey.com>
4768
4769 * cp-name-parser.y (backslashable, represented): Now const.
4770
4771 2018-06-01 Tom Tromey <tom@tromey.com>
4772
4773 * cp-name-parser.y: Include parser-defs.h.
4774 (parser_fprintf): Remove declaration.
4775
4776 2018-06-01 Tom Tromey <tom@tromey.com>
4777
4778 * cp-name-parser.y: Use %pure-parser, %lex-param, and
4779 %parse-param.
4780 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
4781 (global_result): Remove globals.
4782 (struct cpname_state): New.
4783 (yyparse): Don't declare.
4784 (yylex, yyerror): Move declarations after %union.
4785 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
4786 (make_name): Add state parameter.
4787 Update all callers.
4788 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
4789 parameter.
4790 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
4791 Update.
4792 (yylex): Add lvalp, state parameters.
4793 (yyerror): Add state parameter.
4794 (cp_demangled_name_to_comp): Update.
4795
4796 2018-06-01 Tom Tromey <tom@tromey.com>
4797
4798 * cp-name-parser.y (parser_fprintf): Declare.
4799 (GDB_YY_REMAP_PREFIX): Define.
4800 Include yy-remap.h. Don't redefine yy* identifiers.
4801
4802 2018-06-01 Tom Tromey <tom@tromey.com>
4803
4804 * python/py-type.c (typy_legacy_template_argument): Update.
4805 * cp-support.h (cp_demangled_name_to_comp): Update.
4806 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
4807 parameter to be a "std::string *".
4808 (main): Update.
4809
4810 2018-06-01 H.J. Lu <hongjiu.lu@intel.com>
4811
4812 * ada-lex.l: Include "diagnostics.h" instead of
4813 "common/diagnostics.h".
4814 * unittests/environ-selftests.c: Likewise.
4815 * common/diagnostics.h: Moved to ../include.
4816
4817 2018-06-01 Joel Brobecker <brobecker@adacore.com>
4818
4819 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
4820 to language_mode_manual while calling breakpoint_re_set_one.
4821
4822 2018-06-01 Tom Tromey <tom@tromey.com>
4823
4824 * valops.c (value_cast_structs, destructor_name_p): Update.
4825 * symtab.c (gdb_mangle_name): Update.
4826 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
4827 Update.
4828 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
4829 (pascal_object_print_value_fields, pascal_object_print_value):
4830 Update.
4831 * p-typeprint.c (pascal_type_print_derivation_info): Update.
4832 * linespec.c (find_methods): Update.
4833 * gdbtypes.h (type_name_no_tag): Remove.
4834 (type_name_or_error): Rename from type_name_no_tag_or_error.
4835 * gdbtypes.c (type_name_no_tag): Remove.
4836 (type_name_or_error): Rename from type_name_no_tag_or_error.
4837 (lookup_struct_elt_type, check_typedef): Update.
4838 * expprint.c (print_subexp_standard): Update.
4839 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
4840 * d-namespace.c (d_lookup_nested_symbol): Update.
4841 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
4842 (cp_print_class_member): Update.
4843 * cp-namespace.c (cp_lookup_nested_symbol): Update.
4844 * completer.c (add_struct_fields): Update.
4845 * c-typeprint.c (cp_type_print_derivation_info)
4846 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
4847 Update.
4848 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
4849 (ada_prefer_type, ada_is_exception_sym): Update.
4850
4851 2018-06-01 Tom Tromey <tom@tromey.com>
4852
4853 * valops.c (enum_constant_from_type, value_namespace_elt)
4854 (value_maybe_namespace_elt): Update.
4855 * valarith.c (find_size_for_pointer_math): Update.
4856 * target-descriptions.c (make_gdb_type): Update.
4857 * symmisc.c (print_symbol): Update.
4858 * stabsread.c (define_symbol, read_type)
4859 (complain_about_struct_wipeout, add_undefined_type)
4860 (cleanup_undefined_types_1): Update.
4861 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
4862 (rust_range_type_p, val_print_struct, rust_print_struct_def)
4863 (rust_internal_print_type, rust_composite_type)
4864 (rust_evaluate_funcall, rust_evaluate_subexp)
4865 (rust_inclusive_range_type_p): Update.
4866 * python/py-type.c (typy_get_tag): Update.
4867 * p-typeprint.c (pascal_type_print_base): Update.
4868 * mdebugread.c (parse_symbol, parse_type): Update.
4869 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
4870 Update.
4871 * guile/scm-type.c (gdbscm_type_tag): Update.
4872 * go-lang.c (sixg_string_p): Update.
4873 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
4874 Update.
4875 * gdbtypes.h (struct main_type) <tag_name>: Remove.
4876 (TYPE_TAG_NAME): Remove.
4877 * gdbtypes.c (type_name_no_tag): Simplify.
4878 (check_typedef, check_types_equal, recursive_dump_type)
4879 (copy_type_recursive, arch_composite_type): Update.
4880 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
4881 in summary mode when needed.
4882 * eval.c (evaluate_funcall): Update.
4883 * dwarf2read.c (fixup_go_packaging, read_structure_type)
4884 (process_structure_scope, read_enumeration_type)
4885 (read_namespace_type, read_module_type, determine_prefix): Update.
4886 * cp-support.c (inspect_type): Update.
4887 * coffread.c (process_coff_symbol, decode_base_type): Update.
4888 * c-varobj.c (c_is_path_expr_parent): Update.
4889 * c-typeprint.c (c_type_print_base_struct_union): Update.
4890 (c_type_print_base_1): Update. Print struct/class/union/enum in
4891 summary when using C language.
4892 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
4893 (gen_maybe_namespace_elt): Update.
4894 * ada-lang.c (ada_type_name): Simplify.
4895 (empty_record, ada_template_to_fixed_record_type_1)
4896 (template_to_static_fixed_type)
4897 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
4898
4899 2018-06-01 Tom Tromey <tom@tromey.com>
4900
4901 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
4902 c_print_type.
4903 * c-typeprint.c (c_print_type_1): Add "language" parameter.
4904 (c_print_type): Update.
4905 (c_print_type): New overload.
4906 (c_type_print_varspec_prefix, c_type_print_args)
4907 (c_type_print_varspec_suffix, c_print_type_no_offsets)
4908 (c_type_print_base_struct_union, c_type_print_base_1)
4909 (cp_type_print_method_args): Add "language" parameter.
4910 (c_type_print_base): Update.
4911 * c-lang.h (c_print_type): Add new overload.
4912
4913 2018-06-01 Tom Tromey <tom@tromey.com>
4914
4915 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
4916 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
4917
4918 2018-06-01 Alan Hayward <alan.hayward@arm.com>
4919
4920 * aarch64-tdep.c (aarch64_sve_register_names): New const
4921 var.
4922 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
4923 (AARCH64_SVE_Z_REGS_NUM): New define.
4924 (AARCH64_SVE_P_REGS_NUM): Likewise.
4925 (AARCH64_SVE_NUM_REGS): Likewise.
4926
4927 2018-05-31 Uros Bizjak <ubizjak@gmail.com>
4928
4929 * nat/linux-ptrace.h [__alpha__]
4930 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
4931 definitions.
4932
4933 2018-05-31 Maciej W. Rozycki <macro@mips.com>
4934
4935 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
4936 the endianness selected.
4937 * NEWS: Document `set endian auto' mode operation update.
4938
4939 2018-05-31 Alan Hayward <alan.hayward@arm.com>
4940
4941 * Makefile.in: Add new header.
4942 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
4943 (sve_vl_from_vg): Likewise.
4944 (sve_vq_from_vl): Likewise.
4945 (sve_vl_from_vq): Likewise.
4946 (sve_vq_from_vg): Likewise.
4947 (sve_vg_from_vq): Likewise.
4948 * configure.nat: Add new c file.
4949 * nat/aarch64-sve-linux-ptrace.c: New file.
4950 * nat/aarch64-sve-linux-ptrace.h: New file.
4951
4952 2018-05-31 Alan Hayward <alan.hayward@arm.com>
4953
4954 * aarch64-linux-nat.c (aarch64_linux_read_description):
4955 Add parmeter zero.
4956 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
4957 Likewise.
4958 * aarch64-tdep.c (tdesc_aarch64_list): Add.
4959 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
4960 (aarch64_gdbarch_init): Add parmeter zero.
4961 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
4962 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
4963 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
4964 parmeter.
4965 * doc/gdb.texinfo: Describe SVE feature
4966 * features/aarch64-sve.c: New file.
4967
4968 2018-05-31 Omair Javaid <omair.javaid@linaro.org>
4969
4970 PR gdb/23210
4971 * gdbarch.sh (significant_addr_bit): Default to zero when
4972 not set by target architecture.
4973 * gdbarch.c: Re-generated.
4974 * utils.c (address_significant): Update.
4975
4976 2018-05-30 Joel Brobecker <brobecker@adacore.com>
4977
4978 * stack.c (func_command): Remove trailing newline in call to error.
4979
4980 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4981
4982 * regcache.h (regcache_raw_collect): Remove, update callers to
4983 use regcache::raw_collect.
4984 * regcache.c (regcache_raw_collect): Remove.
4985
4986 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4987
4988 * regcache.h (regcache_raw_supply): Remove, update callers to
4989 use detached_regcache::raw_supply.
4990 * regcache.c (regcache_raw_supply): Remove.
4991
4992 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4993
4994 * regcache.h (regcache_cooked_write_part): Remove, update
4995 callers to use regcache::cooked_write_part.
4996 * regcache.c (regcache_cooked_write_part): Remove.
4997
4998 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4999
5000 * regcache.h (regcache_cooked_read_part): Remove, update callers
5001 to use readable_regcache::cooked_read_part.
5002 * regcache.c (regcache_cooked_read_part): Remove.
5003
5004 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5005
5006 * regcache.h (regcache_cooked_read_value): Remove, update
5007 callers to use readable_regcache::cooked_read_value.
5008 * regcache.c (regcache_cooked_read_value): Remove.
5009
5010 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5011
5012 * regcache.h (regcache_cooked_write): Remove, update callers to
5013 use regcache::cooked_write.
5014 * regcache.c (regcache_cooked_write): Remove.
5015
5016 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5017
5018 * regcache.h (regcache_invalidate): Remove, update callers to
5019 use detached_regcache::invalidate instead.
5020 * regcache.c (regcache_invalidate): Remove.
5021
5022 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5023
5024 * regcache.h (regcache_raw_write_part): Remove, update callers
5025 to use regcache::raw_write_part instead.
5026 * regcache.c (regcache_raw_write_part): Remove.
5027
5028 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5029
5030 * regcache.h (regcache_raw_read_part): Remove, update callers to
5031 use readable_regcache::raw_read_part instead.
5032 * regcache.c (regcache_raw_read_part): Remove.
5033
5034 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5035
5036 * regcache.h (regcache_cooked_read): Remove, update callers to
5037 use readable_regcache::cooked_read instead.
5038 * regcache.c (regcache_cooked_read): Remove.
5039
5040 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5041
5042 * regcache.h (regcache_raw_write): Remove, update callers to use
5043 regcache::raw_write instead.
5044 * regcache.c (regcache_raw_write): Remove.
5045
5046 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5047
5048 * regcache.h (regcache_raw_read): Remove, update callers to use
5049 readable_regcache::raw_read instead.
5050 * regcache.c (regcache_raw_read): Remove.
5051
5052 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5053
5054 * regcache.h (regcache_raw_update): Remove, update callers to
5055 use readable_regcache::raw_update instead.
5056 * regcache.c (regcache_raw_update): Remove.
5057
5058 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5059
5060 * regcache.h (regcache_register_status): Remove, update callers
5061 to use reg_buffer::get_register_status directly instead.
5062 * regcache.c (regcache_register_status): Remove.
5063
5064 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5065
5066 * regcache.h (regcache_get_ptid): Remove, update all callers to
5067 call regcache::ptid instead.
5068 * regcache.c (regcache_get_ptid): Remove.
5069
5070 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5071
5072 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
5073
5074 2018-05-30 Pedro Alves <palves@redhat.com>
5075
5076 * common/common-exceptions.h (exception_rethrow): Use
5077 ATTRIBUTE_NORETURN.
5078
5079 2018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
5080
5081 * breakpoint.c (print_solib_event, check_status_catch_solib):
5082 Remove struct keyword in range-based for loops.
5083 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
5084 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
5085 Likewise.
5086 * linespec.c (find_superclass_methods, search_minsyms_for_name):
5087 Likewise.
5088 * symfile.c (addr_info_make_relative): Likewise.
5089 * thread.c (value_in_thread_stack_temporaries): Likewise.
5090
5091 2018-06-12 Weimin Pan <weimin.pan@oracle.com>
5092
5093 PR gdb/16841
5094 * valops.c (value_struct_elt_for_reference): Call check_typedef on
5095 aggregate type to get its real type before accessing it.
5096
5097 2018-05-29 Weimin Pan <weimin.pan@oracle.com>
5098
5099 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
5100 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
5101 * coff-pe-read.c (add_pe_forwarded_sym): Replace
5102 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
5103 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
5104 * jit.c (jit_breakpoint_re_set_internal): Likewise.
5105 * printcmd.c (info_address_command): Likewise.
5106
5107 2018-05-29 Tom Tromey <tom@tromey.com>
5108
5109 * windows-nat.c (handle_exception): Update fall-through comment.
5110
5111 2018-05-29 Tom Tromey <tom@tromey.com>
5112
5113 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
5114 (struct program_space) <added_solibs>: Now a std::vector.
5115 * breakpoint.c (print_solib_event): Update.
5116 (check_status_catch_solib): Update.
5117 * progspace.c (clear_program_space_solib_cache): Update.
5118 * solib.c (update_solib_list): Update.
5119
5120 2018-05-29 Tom Tromey <tom@tromey.com>
5121
5122 * python/py-type.c (typy_richcompare): Update.
5123 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
5124 * gdbtypes.h (types_deeply_equal): Return bool.
5125 (types_equal): Likewise.
5126 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
5127 declare VEC.
5128 (check_types_equal): Change worklist to std::vector. Return
5129 bool.
5130 (struct type_equality_entry): Add constructor.
5131 (compare_maybe_null_strings): Return bool.
5132 (check_types_worklist): Return bool. Change worklist to
5133 std::vector.
5134 (types_deeply_equal): Use std::vector.
5135 (types_equal): Return bool.
5136 (compare_maybe_null_strings): Simplify.
5137
5138 2018-05-29 Tom Tromey <tom@tromey.com>
5139
5140 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
5141
5142 2018-05-29 Tom Tromey <tom@tromey.com>
5143
5144 * objc-lang.h: Don't include cp-support.h.
5145 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
5146 declare VEC.
5147
5148 2018-05-27 Tom Tromey <tom@tromey.com>
5149
5150 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
5151
5152 2018-05-25 Tom Tromey <tom@tromey.com>
5153
5154 * value.c (value::location): Initialize.
5155
5156 2018-05-25 Tom Tromey <tom@tromey.com>
5157
5158 * dbxread.c (init_bincl_list): Remove.
5159 (bincl_list): Now a std::vector.
5160 (bincls_allocated, next_bincl): Remove.
5161 (free_bincl_list, do_free_bincl_list_cleanup)
5162 (make_cleanup_free_bincl_list): Remove.
5163 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
5164 unique_xmalloc_ptr.
5165 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
5166 (struct header_file_location): Add constructor.
5167 (add_bincl_to_list): Remove.
5168
5169 2018-05-25 Tom Tromey <tom@tromey.com>
5170
5171 * tui/tui.c (tui_enable): Update.
5172 * mi/mi-interp.c (mi_interp::init): Update.
5173 * interps.h (class interp) <name>: New method.
5174 <m_name>: Rename from name.
5175 (~scoped_restore_interp): Update.
5176 * interps.c (interp::interp): Update.
5177 (interp_add, interp_set, interp_lookup_existing)
5178 (current_interp_named_p): Update.
5179
5180 2018-05-25 Tom Tromey <tom@tromey.com>
5181
5182 * interps.c (interp_name): Remove.
5183 * mi/mi-interp.c (mi_interp::init): Update.
5184 * interps.h (interp_name): Remove.
5185 (~scoped_restore_interp): Update.
5186 * tui/tui.c (tui_enable): Update.
5187
5188 2018-05-25 Tom Tromey <tom@tromey.com>
5189
5190 * utils.c (fputs_maybe_filtered): Update.
5191 * linespec.c (decode_line_full): Update.
5192 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
5193 (mi_print_breakpoint_for_event, mi_solib_loaded)
5194 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
5195 (mi_user_selected_context_changed): Update.
5196 * mi/mi-main.c (mi_execute_command): Update.
5197 * cli/cli-script.c (execute_control_command): Update.
5198 * python/python.c (execute_gdb_command): Update.
5199 * solib.c (info_sharedlibrary_command): Update.
5200 * interps.c (interp_ui_out): Remove.
5201 * interps.h (interp_ui_out): Remove.
5202
5203 2018-05-25 Tom Tromey <tom@tromey.com>
5204
5205 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
5206 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
5207 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
5208
5209 2018-05-25 Tom Tromey <tom@tromey.com>
5210
5211 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
5212 * interps.c (interp_exec): Use scoped_restore.
5213
5214 2018-05-25 Tom Tromey <tom@tromey.com>
5215
5216 * remote.c (remote_target::remote_file_get): Use
5217 gdb::byte_vector.
5218 (remote_target::remote_file_put): Likewise.
5219
5220 2018-05-25 Tom Tromey <tom@tromey.com>
5221
5222 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
5223 a std::string.
5224 (get_pe_section_index, add_pe_exported_sym): Update.
5225 (read_pe_exported_syms): Use gdb::def_vector.
5226
5227 2018-05-25 Tom Tromey <tom@tromey.com>
5228
5229 * frame.c (remove_prev_frame): Remove.
5230 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
5231
5232 2018-05-25 Maciej W. Rozycki <macro@mips.com>
5233
5234 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
5235 Remove prototypes.
5236 * mips-linux-nat.c (supply_fpregset): Always call
5237 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
5238 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
5239 `mips_fill_fpregset'.
5240 * mips-linux-tdep.c (mips_supply_fpregset)
5241 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
5242 (mips_fill_fpregset_wrapper): Remove functions.
5243 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
5244 (mips_linux_fpregset): Remove variable.
5245 (mips_linux_iterate_over_regset_sections): Use
5246 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
5247 (mips_linux_o32_sigframe_init): Remove comment.
5248
5249 2018-05-25 Pedro Alves <palves@redhat.com>
5250
5251 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
5252 (struct readahead_cache, struct packet_reg, struct
5253 remote_arch_state, class remote_state): Move higher up in the
5254 file.
5255 (remote_target::m_remote_state): Now an object instead of a pointer.
5256 (remote_target::get_remote_state): Adjust.
5257
5258 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
5259
5260 * stack.c (select_and_print_frame): Delete.
5261 (struct function_bounds): Move struct within function.
5262 (func_command): Most content moved into new function
5263 find_frame_for_function, use new function, print result, add
5264 function comment.
5265 (find_frame_for_function): New function, now returns a result.
5266
5267 2018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5268
5269 * stack.c (iterate_over_block_arg_vars): Fix comment.
5270 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
5271
5272 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
5273
5274 PR gdb/23203
5275 * frame.c
5276 (scoped_restore_selected_frame::scoped_restore_selected_frame):
5277 Define.
5278 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
5279 Define.
5280 * frame.h (class scoped_restore_selected_frame): New class.
5281 * stack.c (print_frame_local_vars): Remove catching and rethrowing
5282 of any exception, use scoped_restore_selected_frame to restore the
5283 frame instead.
5284
5285 2018-05-24 Pedro Alves <palves@redhat.com>
5286
5287 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
5288 override.
5289
5290 2018-05-23 Tom Tromey <tom@tromey.com>
5291
5292 * complaints.c (struct complaints): Remove.
5293 (symfile_complaint_book): Remove.
5294 (series): New global.
5295 (complaint_internal): Update.
5296 (clear_complaints): Update.
5297
5298 2018-05-23 Tom Tromey <tom@tromey.com>
5299
5300 * complaints.c (counters): New global.
5301 (struct complain): Remove.
5302 (struct complaints) <root>: Remove.
5303 (complaint_sentinel): Remove.
5304 (symfile_complaint_book): Update.
5305 (find_complaint) Remove.
5306 (complaint_internal, clear_complaints): Update.
5307
5308 2018-05-23 Tom Tromey <tom@tromey.com>
5309
5310 * complaints.c (struct complain) <file, line>: Remove.
5311 (find_complaint): Remove file, line parameters.
5312 (complaint_internal): Update.
5313
5314 2018-05-23 Tom Tromey <tom@tromey.com>
5315
5316 * complaints.c (vcomplaint): Remove.
5317 (complaint_internal) Merge in contents of vcomplaint.
5318
5319 2018-05-23 Tom Tromey <tom@tromey.com>
5320
5321 * complaints.c (struct complaints) <explanation>: Remove.
5322 (symfile_explanations): Remove.
5323 (symfile_complaint_book): Update.
5324 (vcomplaint): Update.
5325 (struct explanation): Remove.
5326
5327 2018-05-23 Tom Tromey <tom@tromey.com>
5328
5329 * complaints.c (symfile_complaints): Remove.
5330 (complaint_internal): Remove "complaints" parameter.
5331 (clear_complaints, vcomplaint): Remove "c" parameter.
5332 (get_complaints): Remove.
5333 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
5334 (dwarf2_debug_line_missing_file_complaint)
5335 (dwarf2_debug_line_missing_end_sequence_complaint)
5336 (dwarf2_complex_location_expr_complaint)
5337 (dwarf2_const_value_length_mismatch_complaint)
5338 (dwarf2_section_buffer_overflow_complaint)
5339 (dwarf2_macro_malformed_definition_complaint)
5340 (dwarf2_invalid_attrib_class_complaint)
5341 (create_addrmap_from_index, dw2_symtab_iter_next)
5342 (dw2_expand_marked_cus)
5343 (dw2_debug_names_iterator::find_vec_in_debug_names)
5344 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
5345 (create_debug_type_hash_table, init_cutu_and_read_dies)
5346 (partial_die_parent_scope, add_partial_enumeration)
5347 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
5348 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
5349 (read_import_statement, read_file_scope, create_dwo_cu_reader)
5350 (create_cus_hash_table, create_dwp_hash_table)
5351 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
5352 (dwarf2_rnglists_process, dwarf2_ranges_process)
5353 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
5354 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
5355 (handle_struct_member_die, process_structure_scope)
5356 (read_array_type, read_common_block, read_module_type)
5357 (read_tag_pointer_type, read_typedef, read_base_type)
5358 (read_subrange_type, load_partial_dies, partial_die_info::read)
5359 (partial_die_info::read, partial_die_info::read)
5360 (partial_die_info::read, read_checked_initial_length_and_offset)
5361 (dwarf2_string_attr, read_formatted_entries)
5362 (dwarf_decode_line_header)
5363 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
5364 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
5365 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
5366 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
5367 (get_signatured_type, get_DW_AT_signature_type)
5368 (decode_locdesc, file_file_name, consume_improper_spaces)
5369 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
5370 (dwarf_decode_macro_bytes, dwarf_decode_macros)
5371 (dwarf2_symbol_mark_computed, set_die_type)
5372 (read_attribute_value): Update.
5373 * stap-probe.c (handle_stap_probe, get_stap_base_address):
5374 Update.
5375 * dbxread.c (unknown_symtype_complaint)
5376 (lbrac_mismatch_complaint, repeated_header_complaint)
5377 (set_namestring, function_outside_compilation_unit_complaint)
5378 (read_dbx_symtab, process_one_symbol): Update.
5379 * gdbtypes.c (stub_noname_complaint): Update.
5380 * windows-nat.c (handle_unload_dll): Update.
5381 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
5382 (decode_base_type): Update.
5383 * xcoffread.c (bf_notfound_complaint, ef_complaint)
5384 (eb_complaint, record_include_begin, record_include_end)
5385 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
5386 (process_xcoff_symbol, read_symbol)
5387 (function_outside_compilation_unit_complaint)
5388 (scan_xcoff_symtab): Update.
5389 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
5390 * buildsym.c (finish_block_internal, make_blockvector)
5391 (end_symtab_get_static_block, augment_type_symtab): Update.
5392 * dtrace-probe.c (dtrace_process_dof)
5393 (dtrace_static_probe_ops::get_probes): Update.
5394 * complaints.h (struct complaint): Don't declare.
5395 (symfile_complaints): Remove.
5396 (complaint_internal): Remove "complaints" parameter.
5397 (complaint): Likewise.
5398 (clear_complaints): Likewise.
5399 * symfile.c (syms_from_objfile_1, finish_new_objfile)
5400 (reread_symbols): Update.
5401 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
5402 (dwarf2_frame_cache, decode_frame_entry): Update.
5403 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
5404 * objc-lang.c (lookup_objc_class, lookup_child_selector)
5405 (info_selectors_command): Update.
5406 * macrotab.c (macro_include, check_for_redefinition)
5407 (macro_undef): Update.
5408 * objfiles.c (filter_overlapping_sections): Update.
5409 * stabsread.c (invalid_cpp_abbrev_complaint)
5410 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
5411 (define_symbol, error_type, read_type, rs6000_builtin_type)
5412 (stabs_method_name_from_physname, read_member_functions)
5413 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
5414 (attach_fields_to_type, complain_about_struct_wipeout)
5415 (read_range_type, read_args, common_block_start)
5416 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
5417 Update.
5418 * mdebugread.c (index_complaint, unknown_ext_complaint)
5419 (basic_type_complaint, bad_tag_guess_complaint)
5420 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
5421 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
5422 (parse_procedure, parse_lines)
5423 (function_outside_compilation_unit_complaint)
5424 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
5425 (bad_tag_guess_complaint, reg_value_complaint): Update.
5426 * cp-support.c (demangled_name_complaint): Update.
5427 * macroscope.c (sal_macro_scope): Update.
5428 * dwarf-index-write.c (class debug_names): Update.
5429
5430 2018-05-23 Tom Tromey <tom@tromey.com>
5431
5432 * complaints.c (clear_complaints): Remove "noisy" parameter.
5433 * complaints.h (clear_complaints): Update.
5434 * symfile.c (syms_from_objfile_1, finish_new_objfile)
5435 (reread_symbols): Update.
5436
5437 2018-05-23 Tom Tromey <tom@tromey.com>
5438
5439 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
5440 SUBSEQUENT_MESSAGE.
5441 (vcomplaint, clear_complaints): Update.
5442 (symfile_explanations): Remove some messages.
5443
5444 2018-05-23 Tom Tromey <tom@tromey.com>
5445
5446 * complaints.c (internal_complaint): Remove.
5447 * complaints.h (internal_complaint): Remove.
5448
5449 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5450
5451 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
5452
5453 2018-05-22 Pedro Alves <palves@redhat.com>
5454
5455 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
5456 (remote_fileio_badfd, remote_fileio_return_errno)
5457 (remote_fileio_return_success, remote_fileio_func_open)
5458 (remote_fileio_func_open, remote_fileio_func_close)
5459 (remote_fileio_func_read, remote_fileio_func_write)
5460 (remote_fileio_func_lseek, remote_fileio_func_rename)
5461 (remote_fileio_func_unlink, remote_fileio_func_stat)
5462 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
5463 (remote_fileio_func_isatty, remote_fileio_func_system): Add
5464 remote_target parameter.
5465 (remote_fio_func_map) <func>: Add remote_target parameter.
5466 (do_remote_fileio_request, remote_fileio_request):
5467 * remote-fileio.h (remote_fileio_request):
5468 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
5469 remote_target parameter.
5470 (remote_notif_process, handle_notification): Adjust to pass down
5471 the remote.
5472 (remote_notif_state_allocate): Add remote_target parameter. Save
5473 it.
5474 * remote-notif.h (struct remote_target): Forward declare.
5475 (struct notif_client) <parse, ack, can_get_pending_events>: Add
5476 remote_target parameter.
5477 (struct remote_notif_state) <remote>: New field.
5478 (remote_notif_ack, remote_notif_parse): Add remote_target
5479 parameter.
5480 (remote_notif_state_allocate, remote_notif_state_allocate): Add
5481 remote_target parameter.
5482 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
5483 (threads_listing_context, rmt_thread_action, protocol_feature)
5484 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
5485 (packet_result, struct threads_listing_context, remote_state):
5486 Move definitions and declarations higher up.
5487 (remote_target) <~remote_target>: Declare.
5488 (remote_download_command_source, remote_file_put, remote_file_get)
5489 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
5490 (remote_hostio_pread_vFile, remote_hostio_send_command)
5491 (remote_hostio_set_filesystem, remote_hostio_open)
5492 (remote_hostio_close, remote_hostio_unlink, remote_state)
5493 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
5494 (get_memory_write_packet_size, get_memory_read_packet_size)
5495 (append_pending_thread_resumptions, remote_detach_1)
5496 (append_resumption, remote_resume_with_vcont)
5497 (add_current_inferior_and_thread, wait_ns, wait_as)
5498 (process_stop_reply, remote_notice_new_inferior)
5499 (process_initial_stop_replies, remote_add_thread)
5500 (btrace_sync_conf, remote_btrace_maybe_reopen)
5501 (remove_new_fork_children, kill_new_fork_children)
5502 (discard_pending_stop_replies, stop_reply_queue_length)
5503 (check_pending_events_prevent_wildcard_vcont)
5504 (discard_pending_stop_replies_in_queue, stop_reply)
5505 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
5506 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
5507 (remote_interrupt_as, remote_interrupt_ns)
5508 (remote_get_noisy_reply, remote_query_attached)
5509 (remote_add_inferior, remote_current_thread, get_current_thread)
5510 (set_thread, set_general_thread, set_continue_thread)
5511 (set_general_process, write_ptid)
5512 (remote_unpack_thread_info_response, remote_get_threadinfo)
5513 (parse_threadlist_response, remote_get_threadlist)
5514 (remote_threadlist_iterator, remote_get_threads_with_ql)
5515 (remote_get_threads_with_qxfer)
5516 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
5517 (get_offsets, remote_check_symbols, remote_supported_packet)
5518 (remote_query_supported, remote_packet_size)
5519 (remote_serial_quit_handler, remote_detach_pid)
5520 (remote_vcont_probe, remote_resume_with_hc)
5521 (send_interrupt_sequence, interrupt_query)
5522 (remote_notif_get_pending_events, fetch_register_using_p)
5523 (send_g_packet, process_g_packet, fetch_registers_using_g)
5524 (store_register_using_P, store_registers_using_G)
5525 (set_remote_traceframe, check_binary_download)
5526 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
5527 (remote_xfer_live_readonly_partial, remote_read_bytes)
5528 (remote_send_printf, remote_flash_write, readchar)
5529 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
5530 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
5531 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
5532 (extended_remote_disable_randomization, extended_remote_run)
5533 (send_environment_packet, extended_remote_environment_support)
5534 (extended_remote_set_inferior_cwd, remote_write_qxfer)
5535 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
5536 (packet_command): Now methods of ...
5537 (remote_target): ... this class.
5538 (m_remote_state) <remote_target>: New field.
5539 (struct remote_state) <stop_reply_queue,
5540 remote_async_inferior_event_token, wait_forever_enabled_p>: New
5541 fields.
5542 (remote_state::remote_state): Allocate stop_reply_queue.
5543 (remote_state): Delete global.
5544 (get_remote_state_raw): Delete.
5545 (remote_target::get_remote_state): Allocate m_remote_state on
5546 demand.
5547 (get_current_remote_target): New.
5548 (remote_ops, extended_remote_ops): Delete.
5549 (wait_forever_enabled_p, remote_async_inferior_event_token):
5550 Delete, moved to struct remote_state.
5551 (remote_target::close): Delete self. Destruction bits split to
5552 ...
5553 (remote_target::~remote_target): ... this.
5554 (show_memory_packet_size): Adjust to use
5555 get_current_remote_target.
5556 (struct protocol_feature) <func>: Add remote_target parameter.
5557 All callers adjusted.
5558 (curr_quit_handler_target): New.
5559 (remote_serial_quit_handler): Reimplement.
5560 (remote_target::open_1): Adjust to use get_current_remote_target.
5561 Heap-allocate remote_target/extended_remote_target instances.
5562 (vcont_builder::vcont_builder): Add remote_target parameter, and
5563 save it in m_remote. All callers adjusted.
5564 (vcont_builder::m_remote): New field.
5565 (vcont_builder::restart, vcont_builder::flush)
5566 (vcont_builder::push_action): Use it.
5567 (remote_target::commit_resume): Use it.
5568 (struct queue_iter_param) <remote>: New field.
5569 (remote_target::remove_new_fork_children): Fill in 'remote' field.
5570 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
5571 (check_pending_event_prevents_wildcard_vcont_callback)
5572 (remote_target::check_pending_events_prevent_wildcard_vcont)
5573 (remote_target::discard_pending_stop_replies)
5574 (remote_target::discard_pending_stop_replies_in_queue)
5575 (remote_target::remote_notif_remove_queued_reply): Fill in
5576 'remote' field.
5577 (remote_notif_get_pending_events): New.
5578 (remote_target::readchar, remote_target::remote_serial_write):
5579 Save/restore curr_quit_handler_target.
5580 (putpkt): New.
5581 (kill_new_fork_children): Fill in 'remote' field.
5582 (packet_command): Use get_current_remote_target, defer to
5583 remote_target method of same name.
5584 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
5585 parameter, and save it in m_remote. All callers adjusted.
5586 (scoped_remote_fd::release): Use m_remote.
5587 (scoped_remote_fd::m_remote): New field.
5588 (remote_file_put, remote_file_get, remote_file_delete): Use
5589 get_current_remote_target, defer to remote_target method of same
5590 name.
5591 (remote_btrace_reset): Add remote_state paremeter. Update all
5592 callers.
5593 (remote_async_inferior_event_handler). Pass down 'data'.
5594 (remote_new_objfile): Use get_current_remote_target.
5595 (remote_target::vcont_r_supported): New.
5596 (set_range_stepping): Use get_current_remote_target and
5597 remote_target::vcont_r_supported.
5598 (_initialize_remote): Don't allocate 'remote_state' and
5599 'stop_reply_queue' globals.
5600 * remote.h (struct remote_target): Forward declare.
5601 (getpkt, putpkt, remote_notif_get_pending_events): Add
5602 'remote_target' parameter.
5603
5604 2018-05-22 Pedro Alves <palves@redhat.com>
5605
5606 * remote.c (vcont_builder): Now a class. Make all data members
5607 private.
5608 (vcont_builder) <vcont_builder, restart, flush, push_action>:
5609 Declare methods.
5610 (vcont_builder_restart): Rename to ...
5611 (vcont_builder::restart): ... this.
5612 (vcont_builder_flush): Rename to ...
5613 (vcont_builder::flush): ... this.
5614 (vcont_builder_push_action): Rename to ...
5615 (vcont_builder::push_action): ... this.
5616 (remote_target::commit_resume): Adjust.
5617
5618 2018-05-22 Pedro Alves <palves@redhat.com>
5619
5620 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
5621 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
5622 (get_fixed_memory_packet_size): New.
5623 (get_memory_packet_size): Use it.
5624 (set_memory_packet_size): Don't override the config size with
5625 DEFAULT_MAX_MEMORY_PACKET_SIZE.
5626 (show_memory_packet_size): Use get_fixed_memory_packet_size.
5627 Don't refer to get_memory_packet_size if not connected to a remote
5628 target. Show "(default)" if configured size is 0.
5629
5630 2018-05-22 Pedro Alves <palves@redhat.com>
5631
5632 * remote.c (remote_target::mourn_inferior): Move
5633 discard_pending_stop_replies call here from ...
5634 (_initialize_remote): ... here.
5635
5636 2018-05-22 Pedro Alves <palves@redhat.com>
5637
5638 * remote.c (compare_section_command): Remove set_general_process
5639 call.
5640
5641 2018-05-22 Pedro Alves <palves@redhat.com>
5642
5643 * remote.c (struct packet_reg, struct remote_arch_state):
5644 Move higher up in the file.
5645 (remote_state) <m_arch_states>: Store remote_arch_state values
5646 instead of remote_arch_state pointers.
5647 (remote_state::get_remote_arch_state): Adjust.
5648
5649 2018-05-22 Pedro Alves <palves@redhat.com>
5650
5651 * remote.c: Include <unordered_map>.
5652 (remote_state): Now a class.
5653 (remote_state) <get_remote_arch_state>: Declare method.
5654 <get_remote_arch_state>: New field.
5655 (remote_arch_state) <remote_arch_state>: Declare ctor.
5656 <regs>: Now a unique_ptr.
5657 (remote_gdbarch_data_handle): Delete.
5658 (get_remote_arch_state): Delete.
5659 (remote_state::get_remote_arch_state): New.
5660 (get_remote_state): Adjust to call remote_state's
5661 get_remote_arch_state method.
5662 (init_remote_state): Delete, bits factored out to ...
5663 (remote_arch_state::remote_arch_state): ... this new method.
5664 (get_remote_packet_size, get_memory_packet_size)
5665 (process_g_packet, remote_target::fetch_registers)
5666 (remote_target::prepare_to_store, store_registers_using_G)
5667 (remote_target::store_registers, remote_target::get_trace_status):
5668 Adjust to call remote_state's method.
5669 (_initialize_remote): Remove reference to
5670 remote_gdbarch_data_handle.
5671
5672 2018-05-22 Pedro Alves <palves@redhat.com>
5673
5674 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
5675 pread>: New method declarations.
5676 (remote_target::open_1): Adjust.
5677 (readahead_cache_invalidate): Rename to ...
5678 (readahead_cache::invalidate): ... this, and adjust to be a class
5679 method.
5680 (readahead_cache_invalidate_fd): Rename to ...
5681 (readahead_cache::invalidate_fd): ... this, and adjust to be a
5682 class method.
5683 (remote_hostio_pwrite): Adjust.
5684 (remote_hostio_pread_from_cache): Rename to ...
5685 (readahead_cache::pread): ... this, and adjust to be a class
5686 method.
5687 (remote_hostio_close): Adjust.
5688
5689 2018-05-22 Pedro Alves <palves@redhat.com>
5690
5691 * remote.c (remote_hostio_close_cleanup): Delete.
5692 (class scoped_remote_fd): New.
5693 (remote_file_put, remote_file_get): Use it.
5694
5695 2018-05-22 Pedro Alves <palves@redhat.com>
5696
5697 (struct vCont_action_support): Use bool and initialize all fields.
5698 (struct readahead_cache): Initialize all fields.
5699 (remote_state): Use bool and initialize all fields.
5700 (remote_state::remote_state, remote_state::~remote_state): New.
5701 (new_remote_state): Delete.
5702 (_initialize_remote): Use new to allocate remote_state.
5703
5704 2018-05-22 Pedro Alves <palves@redhat.com>
5705 張俊芝 <zjz@zjz.name>
5706
5707 PR gdb/22973
5708 * c-exp.y: Include "c-support.h".
5709 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
5710 of tolower. Use c_ident_is_alpha to scan names.
5711 * c-lang.c: Include "c-support.h".
5712 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
5713 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
5714 * c-support.h: New file, with bits factored out from ...
5715 * cp-name-parser.y: ... this file.
5716 Include "c-support.h".
5717 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
5718 c-support.h and renamed.
5719 (symbol_end, yylex): Adjust.
5720
5721 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5722
5723 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
5724 parameter type to CORE_ADDR.
5725 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
5726 parameter type in declaration to CORE_ADDR.
5727 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
5728 target_auxv_search to get AT_HWCAP and use the result to get the
5729 target description.
5730 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
5731 to CORE_ADDR. Remove the cast of the return value to unsigned
5732 long. Fix error predicate of target_auxv_search.
5733 (ppc_linux_nat_target::read_description): Change the type of the
5734 hwcap variable to CORE_ADDR.
5735
5736 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5737
5738 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
5739 if the size of fpscr is larger than 32 bits.
5740
5741 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5742
5743 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
5744 (ppc32_linux_vsxregmap): New global.
5745 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
5746 regcache_supply_regset, and regcache_collect_regset.
5747 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
5748 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
5749 (fetch_vsx_register, store_vsx_register): Remove.
5750 (fetch_vsx_registers): Add regno parameter. Get regset using
5751 ppc_linux_vsxregset. Use regset to supply registers.
5752 (store_vsx_registers): Add regno parameter. Get regset using
5753 ppc_linux_vsxregset. Use regset to collect registers.
5754 (fetch_register): Call fetch_vsx_registers instead of
5755 fetch_vsx_register.
5756 (store_register): Call store_vsx_registers instead of
5757 store_vsx_register.
5758 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
5759 new regno parameter.
5760 (store_ppc_registers): Call store_vsx_registers with -1 for the
5761 new regno parameter.
5762 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
5763 (ppc_collect_vsxregset): Remove.
5764
5765 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5766
5767 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
5768 offset fields.
5769 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
5770 for vector register offset fields.
5771 (ppc64_fbsd_reg_offsets): Likewise.
5772 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
5773 to vector register offset fields.
5774 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
5775 to vector register offset fields.
5776 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
5777 vector register offset fields.
5778 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
5779 initializers for vector register offset fields.
5780 (rs6000_aix64_reg_offsets): Likewise.
5781 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
5782 (ppc_supply_vrregset): Remove.
5783 (ppc_collect_vrregset): Remove.
5784 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
5785 (ppc_linux_vrregset) : New function.
5786 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
5787 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
5788 (ppc32_linux_vrregset): Remove.
5789 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
5790 and use result instead of ppc32_linux_vrregset.
5791 (ppc32_linux_reg_offsets): Remove initializers for vector register
5792 offset fields.
5793 (ppc64_linux_reg_offsets): Likewise.
5794 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
5795 * ppc-linux-nat.c: Include regset.h.
5796 (gdb_vrregset_t): Adjust comment to account for little-endian
5797 mode.
5798 (supply_vrregset, fill_vrregset): Remove.
5799 (fetch_altivec_register, store_altivec_register): Remove.
5800 (fetch_altivec_registers): Add regno parameter. Get regset using
5801 ppc_linux_vrregset. Use regset to supply registers.
5802 (store_altivec_registers): Add regno parameter. Get regset using
5803 ppc_linux_vrregset. Use regset to collect registers.
5804 (fetch_register): Call fetch_altivec_registers instead of
5805 fetch_altivec_register.
5806 (store_register): Call store_altivec_registers instead of
5807 store_altivec_register.
5808 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
5809 the new regno parameter.
5810 (store_ppc_registers): Call store_altivec_registers with -1 for
5811 the new regno parameter.
5812
5813 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5814
5815 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
5816 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
5817 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
5818 (gdb_vrregset_t): Change array type size to
5819 PPC_LINUX_SIZEOF_VRREGSET.
5820 (gdb_vsxregset_t): Change array type size to
5821 PPC_LINUX_SIZEOF_VSXREGSET.
5822 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
5823 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
5824 PPC_LINUX_SIZEOF_VSXREGSET.
5825
5826 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5827
5828 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
5829 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
5830 nat/ppc-linux.c.
5831 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
5832 ppc_linux_target_wordsize with tid.
5833 (ppc_linux_nat_target::read_description): Call ppc_linux_target
5834 wordsize with tid.
5835 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
5836 (ppc64_64bit_inferior_p): Add static and inline specifiers.
5837 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
5838 tid parameter. Remove static specifier.
5839 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
5840 (ppc_linux_target_wordsize): New declaration.
5841
5842 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5843
5844 * arch/ppc-linux-common.c: New file.
5845 * arch/ppc-linux-common.h: New file.
5846 * arch/ppc-linux-tdesc.h: New file.
5847 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
5848 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
5849 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
5850 arch/ppc-linux-tdesc.h.
5851 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
5852 arch/ppc-linux-tdesc.h.
5853 (ppc_linux_nat_target::read_description): Remove target
5854 description matching code. Fill a ppc_linux_features struct and
5855 call ppc_linux_match_description with it. Move comment about ISA
5856 2.05 to ppc-linux-common.c.
5857 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
5858 arch/ppc-linux-tdesc.h.
5859 (ppc_linux_core_read_description): Remove target description
5860 matching code. Fill a ppc_linux_features struct and call
5861 ppc_linux_match_description with it.
5862 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
5863 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
5864 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
5865 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
5866 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
5867 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
5868 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
5869 (tdesc_powerpc_e500l): Remove.
5870
5871 2018-05-22 Joel Brobecker <brobecker@adacore.com>
5872
5873 * ada-lang.c (catch_assert_command): Pass empty string instead
5874 of NULL for excep_string argument.
5875
5876 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5877
5878 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
5879 the width of the requested register exceeds the width of the
5880 `ptrace' data type.
5881
5882 2018-05-21 Tom Tromey <tom@tromey.com>
5883
5884 * printcmd.c (output_command): Remove.
5885 (output_command_const): Rename to output_command.
5886 * valprint.h (output_command): Rename from output_command_const.
5887 * tracepoint.c (trace_dump_actions): Call output_command.
5888
5889 2018-05-21 Tom Tromey <tom@tromey.com>
5890
5891 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
5892 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
5893 * ada-lang.h (create_ada_exception_catchpoint): Update.
5894 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
5895 std::string.
5896 (create_excep_cond_exprs, ~ada_catchpoint)
5897 (should_stop_exception, print_one_exception)
5898 (print_mention_exception, print_recreate_exception): Update.
5899 (ada_get_next_arg): Remove.
5900 (catch_ada_exception_command_split): Use std::string. Change type
5901 of "excep_string", "cond_string".
5902 (catch_ada_exception_command): Update.
5903 (create_ada_exception_catchpoint): Change type of excep_string.
5904 (ada_exception_sal): Remove excep_string parameter.
5905 (~ada_catchpoint): Remove.
5906
5907 2018-05-21 Tom Tromey <tom@tromey.com>
5908
5909 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
5910 cleanup.
5911
5912 2018-05-21 Tom Tromey <tom@tromey.com>
5913
5914 * ada-lang.c (ada_exception_message_1, ada_exception_message):
5915 Return unique_xmalloc_ptr.
5916 (print_it_exception): Update.
5917
5918 2018-05-21 Tom Tromey <tom@tromey.com>
5919
5920 * tracepoint.c (trace_dump_actions): Use std::string.
5921
5922 2018-05-21 Tom Tromey <tom@tromey.com>
5923
5924 * symfile.c (reread_symbols): Use std::string for original_name.
5925
5926 2018-05-21 Tom Tromey <tom@tromey.com>
5927
5928 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
5929 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
5930 constructor.
5931
5932 2018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
5933
5934 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
5935 instance to...
5936 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
5937 * objfiles.c (get_objfile_bfd_data): Allocate
5938 objfile_per_bfd_storage with obstack_new when allocating on
5939 obstack.
5940
5941 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
5942
5943 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
5944 OBSTACK_ZALLOC.
5945 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
5946 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
5947 * mdebugread.c (mdebug_build_psymtabs): Likewise.
5948 (add_pending): Likewise.
5949 (parse_symbol): Likewise.
5950 (parse_partial_symbols): Likewise.
5951 (psymtab_to_symtab_1): Likewise.
5952 (new_psymtab): Likewise.
5953 (elfmdebug_build_psymtabs): Likewise.
5954 * minsyms.c (terminate_minimal_symbol_table): Likewise.
5955 * objfiles.c (get_objfile_bfd_data): Likewise.
5956 (objfile_register_static_link): Likewise.
5957 * psymtab.c (allocate_psymtab): Likewise.
5958 * stabsread.c (read_member_functions): Likewise.
5959 * xcoffread.c (xcoff_end_psymtab): Likewise.
5960
5961 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
5962
5963 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
5964 compiler supports std::is_trivially_constructible.
5965 * common/poison.h: Include obstack.h.
5966 (IsMallocable): Define to is_trivially_constructible if the
5967 compiler supports it, define to true_type otherwise.
5968 (xobnew): New.
5969 (XOBNEW): Redefine.
5970 (xobnewvec): New.
5971 (XOBNEWVEC): Redefine.
5972 * gdb_obstack.h (obstack_zalloc): New.
5973 (OBSTACK_ZALLOC): Redefine.
5974 (obstack_calloc): New.
5975 (OBSTACK_CALLOC): Redefine.
5976 (obstack_new): New.
5977 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
5978 (gdbarch_obstack): New declaration in gdbarch.h, definition in
5979 gdbarch.c.
5980 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
5981 obstack_calloc/obstack_zalloc.
5982 (gdbarch_obstack_zalloc): Remove.
5983 * target-descriptions.c (tdesc_data_init): Use obstack_new.
5984
5985 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5986
5987 * stack.c (backtrace_command_1): Remove useless variable int i.
5988
5989 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5990
5991 * stack.c (print_frame_info): Fix comment.
5992
5993 2018-05-18 Tom Tromey <tom@tromey.com>
5994
5995 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
5996 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
5997 (~dwarf2_per_objfile): Update
5998 (dwarf2_get_dwz_file): Use new.
5999 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
6000 unique_ptr.
6001
6002 2018-05-18 Tom Tromey <tom@tromey.com>
6003
6004 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
6005 unique_ptr.
6006 * dwarf2read.c (struct dwp_file): Add constructor and
6007 initializers.
6008 (open_and_init_dwp_file): Return a unique_ptr.
6009 (dwarf2_per_objfile, create_dwp_hash_table)
6010 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
6011 (lookup_dwo_unit_in_dwp): Update.
6012 (open_and_init_dwp_file, get_dwp_file): Update.
6013
6014 2018-05-18 Tom Tromey <tom@tromey.com>
6015
6016 * dwarf2read.c (dwarf2_per_objfile): Update.
6017 (struct mapped_index): Add initializers.
6018 (dwarf2_read_index): Use new.
6019 (dw2_symtab_iter_init): Update.
6020 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
6021 unique_ptr.
6022
6023 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
6024
6025 * dwarf2read.c (mapped_index) <total_size>: Remove.
6026
6027 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
6028
6029 * unittests/format_pieces-selftests.c (test_format_specifier):
6030 Add ARI comments.
6031
6032 2018-05-18 Tom Tromey <tom@tromey.com>
6033
6034 * c-typeprint.c (maybe_print_hole): New function.
6035 (c_print_type_struct_field_offset): Update.
6036 (c_type_print_base_struct_union): Call maybe_print_hole.
6037
6038 2018-05-17 Keith Seitz <keiths@redhat.com>
6039
6040 * breakpoint.c (build_bpstat_chain): New function, moved from
6041 bpstat_stop_status.
6042 (bpstat_stop_status): Add optional parameter, `stop_chain'.
6043 If no stop chain is passed, call build_bpstat_chain to build it.
6044 * breakpoint.h (build_bpstat_chain): Declare.
6045 (bpstat_stop_status): Move documentation here from breakpoint.c.
6046 * infrun.c (handle_signal_stop): Before eliding inlined frames,
6047 build the stop chain and pass it to skip_inline_frames.
6048 Pass this stop chain to bpstat_stop_status.
6049 * inline-frame.c: Include breakpoint.h.
6050 (stopped_by_user_bp_inline_frame): New function.
6051 (skip_inline_frames): Add parameter `stop_chain'.
6052 Move documention to inline-frame.h.
6053 If non-NULL, use stopped_by_user_bp_inline_frame to determine
6054 whether the frame should be elided.
6055 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
6056 Add moved documentation and update for new parameter.
6057
6058 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
6059
6060 PR cli/14975
6061 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6062 unittests/format_pieces-selftests.c.
6063 * common/format.h (format_piece) <operator==>: New.
6064 (format_pieces) <operator[]>: Remove.
6065 * common/format.c (format_pieces::format_pieces): Handle \e.
6066 * unittests/format_pieces-selftests.c: New.
6067
6068 2018-05-17 Tom Tromey <tom@tromey.com>
6069
6070 PR symtab/23010:
6071 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
6072 (dw2_instantiate_symtab): Add skip_partial parameter.
6073 (dw2_find_last_source_symtab, dw2_map_expand_apply)
6074 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
6075 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
6076 (dw2_expand_symtabs_matching_one)
6077 (dw2_find_pc_sect_compunit_symtab)
6078 (dw2_debug_names_lookup_symbol)
6079 (dw2_debug_names_expand_symtabs_for_function): Update.
6080 (init_cutu_and_read_dies): Add skip_partial parameter.
6081 (process_psymtab_comp_unit, build_type_psymtabs_1)
6082 (process_skeletonless_type_unit, load_partial_comp_unit)
6083 (psymtab_to_symtab_1): Update.
6084 (load_full_comp_unit): Add skip_partial parameter.
6085 (process_imported_unit_die, dwarf2_read_addr_index)
6086 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
6087 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
6088 (read_signatured_type): Update.
6089
6090 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
6091
6092 * value.c (release_value): Remove unused variable.
6093 (record_latest_value): Likewise.
6094 (access_value_history): Likewise.
6095 (preserve_values): Likewise.
6096
6097 2018-05-17 Tom Tromey <tom@tromey.com>
6098
6099 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
6100 Initialize.
6101
6102 2018-05-16 Maciej W. Rozycki <macro@mips.com>
6103
6104 PR gdb/22286
6105 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
6106 Also handle registers whose width is not a multiple of
6107 PTRACE_TYPE_RET.
6108 (linux_nat_trad_target::store_register): Likewise.
6109
6110 2018-05-16 Tom Tromey <tom@tromey.com>
6111
6112 * gdbcore.h (core_bfd): Redefine.
6113 * corelow.c (core_target::close): Update.
6114 (core_target_open): Update.
6115 * progspace.h (struct program_space) <cbfd>: Now a
6116 gdb_bfd_ref_ptr.
6117
6118 2018-05-16 Tom Tromey <tom@tromey.com>
6119
6120 PR cli/19551:
6121 * symfile-add-flags.h (enum symfile_add_flags)
6122 <SYMFILE_NOT_FILENAME>: New constant.
6123 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
6124 objfile name from BFD.
6125 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
6126 * minidebug.c (find_separate_debug_file_in_section): Put
6127 ".gnu_debugdata" into BFD's file name.
6128
6129 2018-05-16 Simon Marchi <simon.marchi@ericsson.com>
6130
6131 * regcache.c (regcache_read_ftype, regcache_write_ftype):
6132 Remove.
6133
6134 2018-05-15 Tamar Christina <tamar.christina@arm.com>
6135
6136 PR binutils/21446
6137 * aarch64-tdep.c (aarch64_analyze_prologue,
6138 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
6139 Indicate not interested in errors.
6140
6141 2018-05-15 Maciej W. Rozycki <macro@mips.com>
6142
6143 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
6144 Supply the MIPS_ZERO_REGNUM register.
6145
6146 2018-05-15 Maciej W. Rozycki <macro@mips.com>
6147
6148 * mips-tdep.c (mask_address_var): Make variable static.
6149
6150 2018-05-14 Tom Tromey <tom@tromey.com>
6151
6152 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
6153
6154 2018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
6155
6156 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
6157 FXSAVE_ADDR for the mxcsr register.
6158
6159 2018-05-11 Max Filippov <jcmvbkbc@gmail.com>
6160
6161 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
6162
6163 2018-05-11 Pedro Alves <palves@redhat.com>
6164
6165 * corelow.c (core_target) <core_target>: No longer inline.
6166 Initialize m_core_gdbarch, m_core_vec and build the section table
6167 here.
6168 <~core_target>: New.
6169 <core_gdbarch, get_core_register_section>: New methods.
6170 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
6171 factored out from ...
6172 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
6173 (core_ops): Delete.
6174 (sniff_core_bfd): Add gdbarch parameter.
6175 (core_close): Delete, merged into ...
6176 (core_target::close): ... here. Delete self.
6177 (core_close_cleanup): Delete.
6178 (core_target_open): Allocate a core_target on the heap. Use a
6179 unique_ptr instead of a cleanup. Bits moved into the core_target
6180 ctor. Adjust to use core_target methods instead of globals.
6181 (get_core_register_section): Rename to ...
6182 (core_target::get_core_register_section): ... this and adjust.
6183 (struct get_core_registers_cb_data): New.
6184 (get_core_registers_cb): Use it. Use bool.
6185 (core_target::fetch_registers, core_target::files_info)
6186 (core_target::xfer_partial, core_target::read_description)
6187 (core_target::pid_to, core_target::thread_name): Adjust to
6188 reference class fields instead of globals.
6189 * target.h (struct target_ops_deleter, target_ops_up): New.
6190
6191 2018-05-11 Pedro Alves <palves@redhat.com>
6192
6193 * corefile.c (core_file_command): Move to corelow.c.
6194 * corelow.c (the_core_target): Delete.
6195 (core_file_command): Moved from corefile.c. Check exec_bfd
6196 instead of the_core_target. Use target_detach instead of calling
6197 into the_core_target directly.
6198 (maybe_say_no_core_file_now): New.
6199 (core_target::detach): Use it.
6200 (_initialize_corelow): Remove references to the_core_target.
6201 * gdbcore.h (the_core_target): Delete.
6202
6203 2018-05-11 Tom Tromey <tromey@redhat.com>
6204 Pedro Alves <palves@redhat.com>
6205
6206 * corefile.c (core_bfd): Remove.
6207 * gdbcore.h (core_bfd): Now a macro.
6208 * progspace.h (struct program_space) <cbfd>: New field.
6209
6210 2018-05-11 Tom Tromey <tom@tromey.com>
6211
6212 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
6213 gdb::def_vector.
6214
6215 2018-05-10 Tom Tromey <tom@tromey.com>
6216
6217 * configure: Rebuild.
6218 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
6219
6220 2018-05-10 Joel Brobecker <brobecker@adacore.com>
6221
6222 PR server/23158:
6223 * regformats/regdat.sh: Adjust script, following the addition
6224 of the new expedite_regs parameter to init_target_desc.
6225
6226 2018-05-10 Omair Javaid <omair.javaid@linaro.org>
6227
6228 PR gdb/23127
6229 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
6230 set_gdbarch_significant_addr_bit.
6231 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
6232 set_gdbarch_significant_addr_bit.
6233 * utils.c (address_significant): Update to sign extend addr.
6234
6235 2018-05-09 Max Filippov <jcmvbkbc@gmail.com>
6236
6237 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
6238 (xtensa_linux_init_abi): Limit tdep->num_regs by
6239 tdep->num_nopriv_regs.
6240 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
6241 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
6242 not initialized.
6243
6244 2018-05-08 Simon Marchi <simon.marchi@ericsson.com>
6245
6246 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
6247
6248 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
6249
6250 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
6251 (I387_MXCSR_INIT_VAL): New constant.
6252 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
6253 buffer if it was supplied by the inferior.
6254 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
6255 (i387_xsave_get_clear_bv): New function.
6256 (i387_supply_xsave): Only read x87 control registers from the
6257 xsave buffer if the feature is enabled, and the state will have
6258 been written, otherwise, provide a suitable default.
6259 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
6260 including x87 control registers. Update control registers if they
6261 have changed from the default value, and mark features as enabled
6262 as required.
6263 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
6264
6265 2018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
6266
6267 * spu-tdep.c (info_spu_event_command): Fix output formatting.
6268
6269 2018-05-07 Tom Tromey <tom@tromey.com>
6270
6271 * configure: Rebuild.
6272 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
6273
6274 2018-05-07 Tom Tromey <tom@tromey.com>
6275
6276 PR tdep/20362:
6277 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
6278 bit. Use correct value for VDIV.
6279
6280 2018-05-04 Tom Tromey <tom@tromey.com>
6281
6282 * configure: Rebuild.
6283 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
6284
6285 2018-05-04 Tom Tromey <tom@tromey.com>
6286
6287 * linux-record.c (record_linux_system_call) <case
6288 RECORD_SYS_RECVFROM>: Add "break".
6289
6290 2018-05-04 Tom Tromey <tom@tromey.com>
6291
6292 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
6293 Add missing "break".
6294 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
6295 Add missing "break".
6296
6297 2018-05-04 Tom Tromey <tom@tromey.com>
6298
6299 * rs6000-tdep.c (ppc_process_record_op4)
6300 (ppc_process_record_op63): Add fall-through comment.
6301
6302 2018-05-04 Tom Tromey <tom@tromey.com>
6303
6304 * i386-tdep.c (i386_process_record): Add fall-through comment.
6305
6306 2018-05-04 Tom Tromey <tom@tromey.com>
6307
6308 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
6309 comment.
6310
6311 2018-05-04 Tom Tromey <tom@tromey.com>
6312
6313 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
6314 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
6315 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
6316 comment.
6317 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
6318 comment.
6319 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
6320 comment.
6321
6322 2018-05-04 Tom Tromey <tom@tromey.com>
6323
6324 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
6325
6326 2018-05-04 Tom Tromey <tom@tromey.com>
6327
6328 * s390-tdep.c (s390_process_record): Fix fall-through comments.
6329 * xcoffread.c (scan_xcoff_symtab): Move comment later.
6330 * symfile.c (section_is_mapped): Fix fall-through comment.
6331 * stabsread.c (define_symbol, read_member_functions): Fix
6332 fall-through comment.
6333 * s390-linux-tdep.c (s390_process_record): Fix fall-through
6334 comment.
6335 * remote.c (remote_wait_as): Fix fall-through comment.
6336 * p-exp.y (yylex): Fix fall-through comment.
6337 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
6338 comment.
6339 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
6340 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
6341 * jv-exp.y (yylex): Fix fall-through comment.
6342 * go-exp.y (lex_one_token): Fix fall-through comment.
6343 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
6344 fall-through comment.
6345 * f-exp.y (yylex): Fix fall-through comment.
6346 * dwarf2read.c (process_die): Fix fall-through comments.
6347 * dbxread.c (process_one_symbol): Fix fall-through comment.
6348 * d-exp.y (lex_one_token): Fix fall-through comment.
6349 * cp-name-parser.y (yylex): Fix fall-through comment.
6350 * coffread.c (coff_symtab_read): Fix fall-through comment.
6351 * c-exp.y (lex_one_token): Fix fall-through comment.
6352 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
6353 comment.
6354 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
6355 comment.
6356
6357 2018-05-04 Tom Tromey <tom@tromey.com>
6358
6359 PR python/22730:
6360 * NEWS: Mention gdb.execute change.
6361 * gdbcmd.h (execute_control_command): Don't declare.
6362 * python/python.c (execute_gdb_command): Use read_command_lines_1,
6363 execute_control_commands, execute_control_commands_to_string.
6364 * cli/cli-script.h (execute_control_commands)
6365 (execute_control_commands_to_string): Declare.
6366 (execute_control_command): Add from_tty parameter.
6367 * cli/cli-script.c (execute_control_commands)
6368 (execute_control_commands_to_string): New functions.
6369 (execute_user_command): Use execute_control_commands.
6370 (execute_control_command_1): Add "from_tty" parameter. Update.
6371 (execute_control_command): Likewise.
6372
6373 2018-05-04 Tom Tromey <tom@tromey.com>
6374
6375 PR python/22731:
6376 * NEWS: Mention that breakpoint commands are writable.
6377 * python/py-breakpoint.c (bppy_set_commands): New function.
6378 (breakpoint_object_getset) <"commands">: Use it.
6379
6380 2018-05-04 Tom Tromey <tom@tromey.com>
6381
6382 * tracepoint.c (actions_command): Update.
6383 * mi/mi-cmd-break.c (mi_command_line_array)
6384 (mi_command_line_array_cnt, mi_command_line_array_ptr)
6385 (mi_read_next_line): Remove.
6386 (mi_cmd_break_commands): Update.
6387 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
6388 function_view.
6389 * cli/cli-script.c (get_command_line): Update.
6390 (process_next_line): Use function_view. Constify.
6391 (recurse_read_control_structure, read_command_lines)
6392 (read_command_lines_1): Change argument types to function_view.
6393 (do_define_command, document_command): Update.
6394 * breakpoint.h (check_tracepoint_command): Don't declare.
6395 * breakpoint.c (check_tracepoint_command): Remove.
6396 (commands_command_1, create_tracepoint_from_upload): Update.
6397
6398 2018-05-04 Tom Tromey <tom@tromey.com>
6399
6400 PR gdb/11750:
6401 * cli/cli-script.h (enum command_control_type) <define_control>:
6402 New constant.
6403 * cli/cli-script.c (multi_line_command_p): Handle define_control.
6404 (build_command_line, execute_control_command_1)
6405 (process_next_line): Likewise.
6406 (do_define_command): New function, extracted from define_command.
6407 (define_command): Use it.
6408
6409 2018-05-04 Tom Tromey <tom@tromey.com>
6410
6411 * tracepoint.c (actions_command): Update.
6412 * cli/cli-script.h (read_command_lines): Update.
6413 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
6414 (MAX_TMPBUF): Remove define.
6415 (define_command): Use string_printf.
6416 (document_command): Likewise.
6417 * breakpoint.c (commands_command_1): Update.
6418
6419 2018-05-04 Tom Tromey <tom@tromey.com>
6420
6421 * top.c (execute_command): Update.
6422 * cli/cli-script.h (print_command_lines): Now varargs.
6423 * cli/cli-script.c (print_command_lines): Now varargs.
6424 (execute_control_command_1) <case while_control, case if_control>:
6425 Update.
6426
6427 2018-05-04 Tom Tromey <tom@tromey.com>
6428
6429 * tracepoint.c (all_tracepoint_actions): Rename from
6430 all_tracepoint_actions_and_cleanup. Change return type.
6431 (actions_command, encode_actions_1, encode_actions)
6432 (trace_dump_actions, tdump_command): Update.
6433 * remote.c (remote_download_command_source): Update.
6434 * python/python.c (gdbpy_eval_from_control_command)
6435 (python_command, python_interactive_command): Update.
6436 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
6437 * guile/guile.c (guile_command)
6438 (gdbscm_eval_from_control_command, guile_command): Update.
6439 * compile/compile.c (compile_code_command)
6440 (compile_print_command, compile_to_object): Update.
6441 * cli/cli-script.h (struct command_lines_deleter): New.
6442 (counted_command_line): New typedef.
6443 (struct command_line): Add constructor, destructor.
6444 <body_list>: Remove.
6445 <body_list_0, body_list_1>: New members.
6446 (command_line_up): Remove typedef.
6447 (read_command_lines, read_command_lines_1, get_command_line):
6448 Update.
6449 (copy_command_lines): Don't declare.
6450 * cli/cli-script.c (build_command_line): Use "new".
6451 (get_command_line): Return counted_command_line.
6452 (print_command_lines, execute_user_command)
6453 (execute_control_command_1, while_command, if_command): Update.
6454 (realloc_body_list): Remove.
6455 (process_next_line, recurse_read_control_structure): Update.
6456 (read_command_lines, read_command_lines_1): Return counted_command_line.
6457 (free_command_lines): Use "delete".
6458 (copy_command_lines): Remove.
6459 (define_command, document_command, show_user_1): Update.
6460 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
6461 a counted_command_line.
6462 * breakpoint.h (counted_command_line): Remove typedef.
6463 (breakpoint_set_commands): Update.
6464 * breakpoint.c (check_no_tracepoint_commands)
6465 (validate_commands_for_breakpoint): Update.
6466 (breakpoint_set_commands): Change commands to be a
6467 counted_command_line.
6468 (commands_command_1, update_dprintf_command_list)
6469 (create_tracepoint_from_upload): Update.
6470
6471 2018-05-04 Tom Tromey <tom@tromey.com>
6472
6473 * cli/cli-decode.h (cmd_list_element): New constructor.
6474 (~cmd_list_element): New destructor.
6475 (struct cmd_list_element): Add initializers.
6476 * cli/cli-decode.c (do_add_cmd): Use "new".
6477 (delete_cmd): Use "delete".
6478
6479 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6480 Pedro Alves <palves@redhat.com>
6481
6482 PR breakpoints/19806 and support for PR external/20207.
6483 * NEWS: Mention Aarch64 watchpoint improvements.
6484 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
6485 watchpoints and PR external/20207 watchpoints.
6486 * nat/aarch64-linux-hw-point.c
6487 (kernel_supports_any_contiguous_range): New.
6488 (aarch64_watchpoint_offset): New.
6489 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
6490 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
6491 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
6492 (aarch64_align_watchpoint): New parameters aligned_offset_p and
6493 next_addr_orig_p. Support PR external/20207 watchpoints.
6494 (aarch64_downgrade_regs): New.
6495 (aarch64_dr_state_insert_one_point): New parameters offset and
6496 addr_orig.
6497 (aarch64_dr_state_remove_one_point): Likewise.
6498 (aarch64_handle_breakpoint): Update caller.
6499 (aarch64_handle_aligned_watchpoint): Likewise.
6500 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
6501 aligned_offset.
6502 (aarch64_linux_set_debug_regs): Remove const from state. Call
6503 aarch64_downgrade_regs.
6504 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
6505 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
6506 (DR_CONTROL_MASK): ... this.
6507 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
6508 (unsigned int aarch64_watchpoint_offset): New prototype.
6509 (aarch64_linux_set_debug_regs): Remove const from state.
6510 * utils.c (align_up, align_down): Move to ...
6511 * common/common-utils.c (align_up, align_down): ... here.
6512 * utils.h (align_up, align_down): Move to ...
6513 * common/common-utils.h (align_up, align_down): ... here.
6514
6515 2018-05-04 Joel Brobecker <brobecker@adacore.com>
6516
6517 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
6518 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
6519 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
6520 Re-implement to match the ABI as summarized in GCC's
6521 gcc/config/sparc/sparc.c. All callers updated.
6522 (sparc32_store_arguments): Remove assertion.
6523
6524 2018-05-04 Tom Tromey <tom@tromey.com>
6525
6526 * printcmd.c: Don't include tui.h.
6527 (decode_format): Use skip_spaces.
6528
6529 2018-05-04 Tom Tromey <tom@tromey.com>
6530
6531 PR gdb/22619:
6532 * printcmd.c (last_count): New global.
6533 (x_command): Use saved count when repeating.
6534
6535 2018-05-04 Tom Tromey <tom@tromey.com>
6536
6537 * nto-procfs.c (do_closedir_cleanup): Remove.
6538 (procfs_pidlist): Use gdb_dir_up.
6539 * procfs.c (do_closedir_cleanup): Remove.
6540 (proc_update_threads): Use gdb_dir_up.
6541 * common/filestuff.h (struct gdb_dir_deleter): New.
6542 (gdb_dir_up): New typedef.
6543
6544 2018-05-04 Tom Tromey <tom@tromey.com>
6545
6546 * ada-lang.c (print_mention_exception): Use std::string.
6547
6548 2018-05-04 Tom Tromey <tom@tromey.com>
6549
6550 * ada-lang.c (create_excep_cond_exprs): Update.
6551 (ada_exception_catchpoint_cond_string): Use std::string.
6552
6553 2018-05-04 Tom Tromey <tom@tromey.com>
6554
6555 * ada-lang.c (xget_renaming_scope): Return std::string.
6556 (old_renaming_is_invisible): Update.
6557
6558 2018-05-04 Tom Tromey <tom@tromey.com>
6559
6560 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
6561 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
6562
6563 2018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
6564
6565 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
6566
6567 2018-05-04 Tom Tromey <tom@tromey.com>
6568
6569 * remote.c (remote_query_supported_append): Change type.
6570 (remote_check_symbols): Update.
6571
6572 2018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
6573
6574 PR gdb/11420
6575 * configure.ac: Prepend libpython.
6576 * python/python-config.py: Likewise.
6577 * configure: Regenerate.
6578
6579 2018-05-03 Simon Marchi <simon.marchi@ericsson.com>
6580
6581 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
6582
6583 2018-05-03 Pedro Alves <palves@redhat.com>
6584
6585 * s390-linux-nat.c
6586 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
6587 override. Write 'true' instead of '1'.
6588 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
6589 declaration.
6590
6591 2018-05-02 Pedro Alves <palves@redhat.com>
6592
6593 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
6594 add_inf_child_target.
6595 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
6596 add_inf_child_target.
6597 * aix-thread.c (aix_thread_target_info): New.
6598 (aix_thread_target) <shortname, longname, doc>: Delete.
6599 <info>: New.
6600 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
6601 add_inf_child_target.
6602 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
6603 add_inf_child_target.
6604 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
6605 add_inf_child_target.
6606 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
6607 add_inf_child_target.
6608 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
6609 add_inf_child_target.
6610 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
6611 add_inf_child_target.
6612 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
6613 add_inf_child_target.
6614 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
6615 add_inf_child_target.
6616 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
6617 add_inf_child_target.
6618 * bfd-target.c (target_bfd_target_info): New.
6619 (target_bfd) <shortname, longname, doc>: Delete.
6620 <info>: New.
6621 * bsd-kvm.c (bsd_kvm_target_info): New.
6622 (bsd_kvm_target) <shortname, longname, doc>: Delete.
6623 <info>: New.
6624 (bsd_kvm_target::open): Rename to ...
6625 (bsd_kvm_target_open): ... this. Adjust.
6626 * bsd-uthread.c (bsd_uthread_target_info): New.
6627 (bsd_uthread_target) <shortname, longname, doc>: Delete.
6628 <info>: New.
6629 * corefile.c (core_file_command): Adjust.
6630 * corelow.c (core_target_info): New.
6631 (core_target) <shortname, longname, doc>: Delete.
6632 <info>: New.
6633 (core_target::open): Rename to ...
6634 (core_target_open): ... this. Adjust.
6635 * ctf.c (ctf_target_info): New.
6636 (ctf_target) <shortname, longname, doc>: Delete.
6637 <info>: New.
6638 (ctf_target::open): Rename to ...
6639 (ctf_target_open): ... this.
6640 (_initialize_ctf): Adjust.
6641 * exec.c (exec_target_info): New.
6642 (exec_target) <shortname, longname, doc>: Delete.
6643 <info>: New.
6644 (exec_target::open): Rename to ...
6645 (exec_target_open): ... this.
6646 * gdbcore.h (core_target_open): Declare.
6647 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
6648 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
6649 add_inf_child_target.
6650 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
6651 add_inf_child_target.
6652 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
6653 add_inf_child_target.
6654 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
6655 add_inf_child_target.
6656 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
6657 add_inf_child_target.
6658 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
6659 add_inf_child_target.
6660 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
6661 add_inf_child_target.
6662 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
6663 add_inf_child_target.
6664 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
6665 add_inf_child_target.
6666 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
6667 add_inf_child_target.
6668 * inf-child.c (inf_child_target_info): New.
6669 (inf_child_target::info): New.
6670 (inf_child_open_target): Remove 'target' parameter. Use
6671 get_native_target instead.
6672 (inf_child_target::open): Delete.
6673 (add_inf_child_target): New.
6674 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
6675 Delete.
6676 <info>: New.
6677 (add_inf_child_target): Declare.
6678 (inf_child_open_target): Declare.
6679 * linux-thread-db.c (thread_db_target_info): New.
6680 (thread_db_target) <shortname, longname, doc>: Delete.
6681 <info>: New.
6682 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
6683 add_inf_child_target.
6684 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
6685 add_inf_child_target.
6686 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
6687 add_inf_child_target.
6688 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
6689 add_inf_child_target.
6690 * make-target-delegates (print_class): Adjust.
6691 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
6692 add_inf_child_target.
6693 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
6694 add_inf_child_target.
6695 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
6696 add_inf_child_target.
6697 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
6698 add_inf_child_target.
6699 * nto-procfs.c (nto_native_target_info): New.
6700 (nto_procfs_target_native) <shortname, longname, doc>:
6701 Delete.
6702 <info>: New.
6703 (nto_procfs_target_info): New.
6704 (nto_procfs_target_procfs) <shortname, longname, doc>:
6705 Delete.
6706 <info>: New.
6707 (init_procfs_targets): Adjust.
6708 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
6709 add_inf_child_target.
6710 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
6711 add_inf_child_target.
6712 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
6713 add_inf_child_target.
6714 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
6715 add_inf_child_target.
6716 * ravenscar-thread.c (ravenscar_target_info): New.
6717 (ravenscar_thread_target) <shortname, longname, doc>:
6718 Delete.
6719 <info>: New.
6720 * record-btrace.c (record_btrace_target_info):
6721 (record_btrace_target) <shortname, longname, doc>: Delete.
6722 <info>: New.
6723 (record_btrace_target::open): Rename to ...
6724 (record_btrace_target_open): ... this. Adjust.
6725 * record-full.c (record_longname, record_doc): New.
6726 (record_full_base_target) <shortname, longname, doc>: Delete.
6727 <info>: New.
6728 (record_full_target_info): New.
6729 (record_full_target): <shortname>: Delete.
6730 <info>: New.
6731 (record_full_core_open_1, record_full_open_1): Update comments.
6732 (record_full_base_target::open): Rename to ...
6733 (record_full_open): ... this.
6734 (cmd_record_full_restore): Update.
6735 (_initialize_record_full): Update.
6736 * remote-sim.c (remote_sim_target_info): New.
6737 (gdbsim_target) <shortname, longname, doc>: Delete.
6738 <info>: New.
6739 (gdbsim_target::open): Rename to ...
6740 (gdbsim_target_open): ... this.
6741 (_initialize_remote_sim): Adjust.
6742 * remote.c (remote_doc): New.
6743 (remote_target_info): New.
6744 (remote_target) <shortname, longname, doc>: Delete.
6745 <info>: New.
6746 (extended_remote_target_info): New.
6747 (extended_remote_target) <shortname, longname, doc>: Delete.
6748 <info>: New.
6749 (remote_target::open_1): Make static. Adjust.
6750 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
6751 * s390-linux-nat.c (_initialize_s390_nat): Use
6752 add_inf_child_target.
6753 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
6754 add_inf_child_target.
6755 * sol-thread.c (thread_db_target_info): New.
6756 (sol_thread_target) <shortname, longname, doc>: Delete.
6757 <info>: New.
6758 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
6759 add_inf_child_target.
6760 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
6761 add_inf_child_target.
6762 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
6763 add_inf_child_target.
6764 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
6765 add_inf_child_target.
6766 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
6767 add_inf_child_target.
6768 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
6769 add_inf_child_target.
6770 * spu-linux-nat.c (_initialize_spu_nat): Use
6771 add_inf_child_target.
6772 * spu-multiarch.c (spu_multiarch_target_info): New.
6773 (spu_multiarch_target) <shortname, longname, doc>: Delete.
6774 <info>: New.
6775 * target-delegates.c: Regenerate.
6776 * target.c: Include <unordered_map>.
6777 (target_ops_p): Delete.
6778 (DEF_VEC_P(target_ops_p)): Delete.
6779 (target_factories): New.
6780 (test_target_info): New.
6781 (test_target_ops::info): New.
6782 (open_target): Adjust to use target_factories.
6783 (add_target_with_completer): Rename to ...
6784 (add_target): ... this. Change prototype. Register target_info
6785 and open callback in target_factories. Register target_info in
6786 command context instead of target_ops.
6787 (add_target): Delete old implementation.
6788 (add_deprecated_target_alias): Change prototype. Adjust.
6789 (the_native_target): New.
6790 (set_native_target, get_native_target): New.
6791 (find_default_run_target): Use the_native_target.
6792 (find_attach_target, find_run_target): Simplify.
6793 (target_ops::open): Delete.
6794 (dummy_target_info): New.
6795 (dummy_target::shortname, dummy_target::longname)
6796 (dummy_target::doc): Delete.
6797 (dummy_target::info): New.
6798 (debug_target::shortname, debug_target::longname)
6799 (debug_target::doc): Delete.
6800 (debug_target::info): New.
6801 * target.h (struct target_info): New.
6802 (target_ops::~target_ops): Add comment.
6803 (target_ops::info): New.
6804 (target_ops::shortname, target_ops::longname, target_ops::doc): No
6805 longer virtual. Implement in terms of target_info.
6806 (set_native_target, get_native_target): Declare.
6807 (target_open_ftype): New.
6808 (add_target, add_target_with_completer)
6809 (add_deprecated_target_alias): Change prototype.
6810 (test_target) <shortname, longname, doc>: Delete.
6811 <info>: New.
6812 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
6813 add_inf_child_target.
6814 * tracefile-tfile.c (tfile_target_info): New.
6815 (tfile_target) <shortname, longname, doc>: Delete.
6816 <info>: New.
6817 (tfile_target::open): Rename to ...
6818 (tfile_target_open): ... this.
6819 (_initialize_tracefile_tfile): Adjust.
6820 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
6821 add_inf_child_target.
6822 * windows-nat.c (_initialize_windows_nat): Use
6823 add_inf_child_target.
6824 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
6825 add_inf_child_target.
6826
6827 2018-05-02 Pedro Alves <palves@redhat.com>
6828
6829 * linux-nat.h (linux_nat_target) <low_new_thread,
6830 low_delete_thread, low_new_fork, low_forget_process,
6831 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
6832 New virtual methods.
6833 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
6834 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
6835 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
6836 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
6837 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
6838 Delete.
6839 * linux-fork.c (delete_fork): Adjust to call low method.
6840 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
6841 (linux_nat_new_fork, linux_nat_forget_process_hook)
6842 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
6843 (linux_nat_status_is_event):
6844 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
6845 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
6846 to call low method.
6847 (sigtrap_is_event): Rename to ...
6848 (linux_nat_target::low_status_is_event): ... this.
6849 (linux_nat_set_status_is_event): Delete.
6850 (save_stop_reason, linux_nat_wait_1)
6851 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
6852 low methods.
6853 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
6854 (linux_nat_set_new_fork, linux_nat_set_forget_process)
6855 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
6856 (linux_nat_set_prepare_to_resume): Delete.
6857 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
6858 low virtual methods.
6859 * amd64-linux-nat.c: Likewise.
6860 * arm-linux-nat.c: Likewise.
6861 * i386-linux-nat.c: Likewise.
6862 * ia64-linux-nat.c: Likewise.
6863 * mips-linux-nat.c: Likewise.
6864 * ppc-linux-nat.c: Likewise.
6865 * s390-linux-nat.c: Likewise.
6866 * sparc64-linux-nat.c: Likewise.
6867 * x86-linux-nat.c: Likewise.
6868 * x86-linux-nat.h: Include "nat/x86-linux.h".
6869 (x86_linux_nat_target) <low_new_fork, low_forget_process,
6870 low_prepare_to_resume, low_new_thread, low_delete_thread>:
6871 Override methods.
6872
6873 2018-05-02 Pedro Alves <palves@redhat.com>
6874
6875 * target.h (target_ops)
6876 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
6877 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
6878 stopped_by_watchpoint, have_continuable_watchpoint,
6879 stopped_data_address, watchpoint_addr_within_range,
6880 can_accel_watchpoint_condition, can_run, thread_alive,
6881 has_all_memory, has_memory, has_stack, has_registers,
6882 has_execution, can_async_p, is_async_p, supports_non_stop,
6883 always_non_stop_p, can_execute_reverse, supports_multi_process,
6884 supports_enable_disable_tracepoint,
6885 supports_disable_randomization, supports_string_tracing,
6886 supports_evaluation_of_breakpoint_conditions,
6887 can_run_breakpoint_commands, filesystem_is_local,
6888 can_download_tracepoint, get_trace_state_variable_value,
6889 set_trace_notes, get_tib_address, use_agent, can_use_agent,
6890 record_is_replaying, record_will_replay,
6891 augmented_libraries_svr4_read>: Adjust to return bool.
6892 * aarch64-linux-nat.c: All implementations adjusted.
6893 * aix-thread.c: All implementations adjusted.
6894 * arm-linux-nat.c: All implementations adjusted.
6895 * breakpoint.c: All implementations adjusted.
6896 * bsd-kvm.c: All implementations adjusted.
6897 * bsd-uthread.c: All implementations adjusted.
6898 * corelow.c: All implementations adjusted.
6899 * ctf.c: All implementations adjusted.
6900 * darwin-nat.c: All implementations adjusted.
6901 * darwin-nat.h: All implementations adjusted.
6902 * exec.c: All implementations adjusted.
6903 * fbsd-nat.c: All implementations adjusted.
6904 * fbsd-nat.h: All implementations adjusted.
6905 * gnu-nat.c: All implementations adjusted.
6906 * gnu-nat.h: All implementations adjusted.
6907 * go32-nat.c: All implementations adjusted.
6908 * ia64-linux-nat.c: All implementations adjusted.
6909 * inf-child.c: All implementations adjusted.
6910 * inf-child.h: All implementations adjusted.
6911 * inf-ptrace.c: All implementations adjusted.
6912 * inf-ptrace.h: All implementations adjusted.
6913 * linux-nat.c: All implementations adjusted.
6914 * linux-nat.h: All implementations adjusted.
6915 * mips-linux-nat.c: All implementations adjusted.
6916 * nto-procfs.c: All implementations adjusted.
6917 * ppc-linux-nat.c: All implementations adjusted.
6918 * procfs.c: All implementations adjusted.
6919 * ravenscar-thread.c: All implementations adjusted.
6920 * record-btrace.c: All implementations adjusted.
6921 * record-full.c: All implementations adjusted.
6922 * remote-sim.c: All implementations adjusted.
6923 * remote.c: All implementations adjusted.
6924 * s390-linux-nat.c: All implementations adjusted.
6925 * sol-thread.c: All implementations adjusted.
6926 * spu-multiarch.c: All implementations adjusted.
6927 * target-delegates.c: All implementations adjusted.
6928 * target.c: All implementations adjusted.
6929 * target.h: All implementations adjusted.
6930 * tracefile-tfile.c: All implementations adjusted.
6931 * tracefile.c: All implementations adjusted.
6932 * tracefile.h: All implementations adjusted.
6933 * windows-nat.c: All implementations adjusted.
6934 * x86-linux-nat.h: All implementations adjusted.
6935 * x86-nat.h: All implementations adjusted.
6936
6937 2018-05-02 Pedro Alves <palves@redhat.com>
6938
6939 * make-target-delegates (scan_target_h): Don't trim lines here.
6940 Replace sequences of tabs and/or whitespace with a single
6941 whitespace.
6942 (top level, parsing methods): Trim each line before processing it
6943 here.
6944
6945 2018-05-02 Pedro Alves <palves@redhat.com>
6946 John Baldwin <jhb@freebsd.org>
6947
6948 * target.h (enum strata) <debug_stratum>: New.
6949 (struct target_ops) <all delegation methods>: Replace by C++
6950 virtual methods, and drop "to_" prefix. All references updated
6951 throughout.
6952 <to_shortname, to_longname, to_doc, to_data,
6953 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
6954 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
6955 virtual methods. All references updated throughout.
6956 <can_attach, supports_terminal_ours, can_create_inferior,
6957 get_thread_control_capabilities, attach_no_wait>: New
6958 virtual methods.
6959 <insert_breakpoint, remove_breakpoint>: Now
6960 TARGET_DEFAULT_NORETURN methods.
6961 <info_proc>: Now returns bool.
6962 <to_magic>: Delete.
6963 (OPS_MAGIC): Delete.
6964 (current_target): Delete. All references replaced by references
6965 to ...
6966 (target_stack): ... this. New.
6967 (target_shortname, target_longname): Adjust.
6968 (target_can_run): Now a function declaration.
6969 (default_child_has_all_memory, default_child_has_memory)
6970 (default_child_has_stack, default_child_has_registers)
6971 (default_child_has_execution): Remove target_ops parameter.
6972 (complete_target_initialization): Delete.
6973 (memory_breakpoint_target): New template class.
6974 (test_target_ops): Refactor as a C++ class with virtual methods.
6975 * make-target-delegates (NAME_PART): Tighten.
6976 (POINTER_PART, CP_SYMBOL): New.
6977 (SIMPLE_RETURN_PART): Reimplement.
6978 (VEC_RETURN_PART): Expect less.
6979 (RETURN_PART, VIRTUAL_PART): New.
6980 (METHOD): Adjust to C++ virtual methods.
6981 (scan_target_h): Remove reference to C99.
6982 (dname): Output "target_ops::" prefix.
6983 (write_function_header): Adjust to output a C++ class method.
6984 (write_declaration): New.
6985 (write_delegator): Adjust to output a C++ class method.
6986 (tdname): Output "dummy_target::" prefix.
6987 (write_tdefault, write_debugmethod): Adjust to output a C++ class
6988 method.
6989 (tdefault_names, debug_names): Delete.
6990 (return_types, tdefaults, styles, argtypes_array): New.
6991 (top level): All methods are delegators.
6992 (print_class): New.
6993 (top level): Print dummy_target and debug_target classes.
6994 * target-delegates.c: Regenerate.
6995 * target-debug.h (target_debug_print_enum_info_proc_what)
6996 (target_debug_print_thread_control_capabilities)
6997 (target_debug_print_thread_info_p): New.
6998 * target.c (dummy_target): Delete.
6999 (the_dummy_target, the_debug_target): New.
7000 (target_stack): Now extern.
7001 (set_targetdebug): Push/unpush debug target.
7002 (default_child_has_all_memory, default_child_has_memory)
7003 (default_child_has_stack, default_child_has_registers)
7004 (default_child_has_execution): Remove target_ops parameter.
7005 (complete_target_initialization): Delete.
7006 (add_target_with_completer): No longer call
7007 complete_target_initialization.
7008 (target_supports_terminal_ours): Use regular delegation.
7009 (update_current_target): Delete.
7010 (push_target): No longer check magic number. Don't call
7011 update_current_target.
7012 (unpush_target): Don't call update_current_target.
7013 (target_is_pushed): No longer check magic number.
7014 (target_require_runnable): Skip for all stratums over
7015 process_stratum.
7016 (target_ops::info_proc): New.
7017 (target_info_proc): Use find_target_at and
7018 find_default_run_target.
7019 (target_supports_disable_randomization): Use regular delegation.
7020 (target_get_osdata): Use find_target_at.
7021 (target_ops::open, target_ops::close, target_ops::can_attach)
7022 (target_ops::attach, target_ops::can_create_inferior)
7023 (target_ops::create_inferior, target_ops::can_run)
7024 (target_can_run): New.
7025 (default_fileio_target): Use regular delegation.
7026 (target_ops::fileio_open, target_ops::fileio_pwrite)
7027 (target_ops::fileio_pread, target_ops::fileio_fstat)
7028 (target_ops::fileio_close, target_ops::fileio_unlink)
7029 (target_ops::fileio_readlink): New.
7030 (target_fileio_open_1, target_fileio_unlink)
7031 (target_fileio_readlink): Always call the target method. Handle
7032 FILEIO_ENOSYS.
7033 (return_zero, return_zero_has_execution): Delete.
7034 (init_dummy_target): Delete.
7035 (dummy_target::dummy_target, dummy_target::shortname)
7036 (dummy_target::longname, dummy_target::doc)
7037 (debug_target::debug_target, debug_target::shortname)
7038 (debug_target::longname, debug_target::doc): New.
7039 (target_supports_delete_record): Use regular delegation.
7040 (setup_target_debug): Delete.
7041 (maintenance_print_target_stack): Skip debug_stratum.
7042 (initialize_targets): Instantiate the_dummy_target and
7043 the_debug_target.
7044 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
7045 use target_stack.
7046 (target_auxv_search, fprint_target_auxv): Adjust.
7047 (info_auxv_command): Adjust to use target_stack.
7048 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
7049 * exceptions.c (print_flush): Handle a NULL target_stack.
7050 * regcache.c (target_ops_no_register): Refactor as class with
7051 virtual methods.
7052
7053 * exec.c (exec_target): New class.
7054 (exec_ops): Now an exec_target.
7055 (exec_open, exec_close_1, exec_get_section_table)
7056 (exec_xfer_partial, exec_files_info, exec_has_memory)
7057 (exec_make_note_section): Refactor as exec_target methods.
7058 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
7059 Delete.
7060 (exec_target::find_memory_regions): New.
7061 (_initialize_exec): Don't call init_exec_ops.
7062 * gdbcore.h (exec_file_clear): Delete.
7063
7064 * corefile.c (core_target): Delete.
7065 (core_file_command): Adjust.
7066 * corelow.c (core_target): New class.
7067 (the_core_target): New.
7068 (core_close): Remove target_ops parameter.
7069 (core_close_cleanup): Adjust.
7070 (core_target::close): New.
7071 (core_open, core_detach, get_core_registers, core_files_info)
7072 (core_xfer_partial, core_thread_alive, core_read_description)
7073 (core_pid_to_str, core_thread_name, core_has_memory)
7074 (core_has_stack, core_has_registers, core_info_proc): Rework as
7075 core_target methods.
7076 (ignore, core_remove_breakpoint, init_core_ops): Delete.
7077 (_initialize_corelow): Initialize the_core_target.
7078 * gdbcore.h (core_target): Delete.
7079 (the_core_target): New.
7080
7081 * ctf.c: (ctf_target): New class.
7082 (ctf_ops): Now a ctf_target.
7083 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
7084 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
7085 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
7086 methods.
7087 (init_ctf_ops): Delete.
7088 (_initialize_ctf): Don't call it.
7089 * tracefile-tfile.c (tfile_target): New class.
7090 (tfile_ops): Now a tfile_target.
7091 (tfile_open, tfile_close, tfile_files_info)
7092 (tfile_get_tracepoint_status, tfile_trace_find)
7093 (tfile_fetch_registers, tfile_xfer_partial)
7094 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
7095 Refactor as tfile_target methods.
7096 (tfile_xfer_partial_features): Remove target_ops parameter.
7097 (init_tfile_ops): Delete.
7098 (_initialize_tracefile_tfile): Don't call it.
7099 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
7100 (tracefile_has_stack, tracefile_has_registers)
7101 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
7102 tracefile_target methods.
7103 (init_tracefile_ops): Delete.
7104 (tracefile_target::tracefile_target): New.
7105 * tracefile.h: Include "target.h".
7106 (tracefile_target): New class.
7107 (init_tracefile_ops): Delete.
7108
7109 * spu-multiarch.c (spu_multiarch_target): New class.
7110 (spu_ops): Now a spu_multiarch_target.
7111 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
7112 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
7113 (spu_search_memory, spu_mourn_inferior): Refactor as
7114 spu_multiarch_target methods.
7115 (init_spu_ops): Delete.
7116 (_initialize_spu_multiarch): Remove references to init_spu_ops,
7117 complete_target_initialization.
7118
7119 * ravenscar-thread.c (ravenscar_thread_target): New class.
7120 (ravenscar_ops): Now a ravenscar_thread_target.
7121 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
7122 (ravenscar_thread_alive, ravenscar_pid_to_str)
7123 (ravenscar_fetch_registers, ravenscar_store_registers)
7124 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
7125 (ravenscar_stopped_by_hw_breakpoint)
7126 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
7127 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
7128 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
7129 methods.
7130 (init_ravenscar_thread_ops): Delete.
7131 (_initialize_ravenscar): Remove references to
7132 init_ravenscar_thread_ops and complete_target_initialization.
7133
7134 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
7135 (bsd_uthread_target): New class.
7136 (bsd_uthread_ops): Now a bsd_uthread_target.
7137 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
7138 (bsd_uthread_close, bsd_uthread_mourn_inferior)
7139 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
7140 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
7141 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
7142 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
7143 (bsd_uthread_target): Delete function.
7144 (_initialize_bsd_uthread): Remove reference to
7145 complete_target_initialization.
7146
7147 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
7148 (target_bfd): ... this new class.
7149 (target_bfd_xfer_partial, target_bfd_get_section_table)
7150 (target_bfd_close): Refactor as target_bfd methods.
7151 (target_bfd::~target_bfd): New.
7152 (target_bfd_reopen): Adjust.
7153 (target_bfd::close): New.
7154
7155 * record-btrace.c (record_btrace_target): New class.
7156 (record_btrace_ops): Now a record_btrace_target.
7157 (record_btrace_open, record_btrace_stop_recording)
7158 (record_btrace_disconnect, record_btrace_close)
7159 (record_btrace_async, record_btrace_info)
7160 (record_btrace_insn_history, record_btrace_insn_history_range)
7161 (record_btrace_insn_history_from, record_btrace_call_history)
7162 (record_btrace_call_history_range)
7163 (record_btrace_call_history_from, record_btrace_record_method)
7164 (record_btrace_is_replaying, record_btrace_will_replay)
7165 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7166 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
7167 (record_btrace_store_registers, record_btrace_prepare_to_store)
7168 (record_btrace_to_get_unwinder)
7169 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
7170 (record_btrace_commit_resume, record_btrace_wait)
7171 (record_btrace_stop, record_btrace_can_execute_reverse)
7172 (record_btrace_stopped_by_sw_breakpoint)
7173 (record_btrace_supports_stopped_by_sw_breakpoint)
7174 (record_btrace_stopped_by_hw_breakpoint)
7175 (record_btrace_supports_stopped_by_hw_breakpoint)
7176 (record_btrace_update_thread_list, record_btrace_thread_alive)
7177 (record_btrace_goto_begin, record_btrace_goto_end)
7178 (record_btrace_goto, record_btrace_stop_replaying_all)
7179 (record_btrace_execution_direction)
7180 (record_btrace_prepare_to_generate_core)
7181 (record_btrace_done_generating_core): Refactor as
7182 record_btrace_target methods.
7183 (init_record_btrace_ops): Delete.
7184 (_initialize_record_btrace): Remove reference to
7185 init_record_btrace_ops.
7186 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
7187 the execution_direction global.
7188 (record_full_base_target, record_full_target)
7189 (record_full_core_target): New classes.
7190 (record_full_ops): Now a record_full_target.
7191 (record_full_core_ops): Now a record_full_core_target.
7192 (record_full_target::detach, record_full_target::disconnect)
7193 (record_full_core_target::disconnect)
7194 (record_full_target::mourn_inferior, record_full_target::kill):
7195 New.
7196 (record_full_open, record_full_close, record_full_async): Refactor
7197 as methods of the record_full_base_target class.
7198 (record_full_resume, record_full_commit_resume): Refactor
7199 as methods of the record_full_target class.
7200 (record_full_wait, record_full_stopped_by_watchpoint)
7201 (record_full_stopped_data_address)
7202 (record_full_stopped_by_sw_breakpoint)
7203 (record_full_supports_stopped_by_sw_breakpoint)
7204 (record_full_stopped_by_hw_breakpoint)
7205 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
7206 methods of the record_full_base_target class.
7207 (record_full_store_registers, record_full_xfer_partial)
7208 (record_full_insert_breakpoint, record_full_remove_breakpoint):
7209 Refactor as methods of the record_full_target class.
7210 (record_full_can_execute_reverse, record_full_get_bookmark)
7211 (record_full_goto_bookmark, record_full_execution_direction)
7212 (record_full_record_method, record_full_info, record_full_delete)
7213 (record_full_is_replaying, record_full_will_replay)
7214 (record_full_goto_begin, record_full_goto_end, record_full_goto)
7215 (record_full_stop_replaying): Refactor as methods of the
7216 record_full_base_target class.
7217 (record_full_core_resume, record_full_core_kill)
7218 (record_full_core_fetch_registers)
7219 (record_full_core_prepare_to_store)
7220 (record_full_core_store_registers, record_full_core_xfer_partial)
7221 (record_full_core_insert_breakpoint)
7222 (record_full_core_remove_breakpoint)
7223 (record_full_core_has_execution): Refactor
7224 as methods of the record_full_core_target class.
7225 (record_full_base_target::supports_delete_record): New.
7226 (init_record_full_ops): Delete.
7227 (init_record_full_core_ops): Delete.
7228 (record_full_save): Refactor as method of the
7229 record_full_base_target class.
7230 (_initialize_record_full): Remove references to
7231 init_record_full_ops and init_record_full_core_ops.
7232
7233 * remote.c (remote_target, extended_remote_target): New classes.
7234 (remote_ops): Now a remote_target.
7235 (extended_remote_ops): Now an extended_remote_target.
7236 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
7237 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
7238 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
7239 (remote_pass_signals, remote_set_syscall_catchpoint)
7240 (remote_program_signals, )
7241 (remote_thread_always_alive): Remove target_ops parameter.
7242 (remote_thread_alive, remote_thread_name)
7243 (remote_update_thread_list, remote_threads_extra_info)
7244 (remote_static_tracepoint_marker_at)
7245 (remote_static_tracepoint_markers_by_strid)
7246 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
7247 (remote_open): Refactor as methods of remote_target.
7248 (extended_remote_open, extended_remote_detach)
7249 (extended_remote_attach, extended_remote_post_attach):
7250 (extended_remote_supports_disable_randomization)
7251 (extended_remote_create_inferior): : Refactor as method of
7252 extended_remote_target.
7253 (remote_set_permissions, remote_open_1, remote_detach)
7254 (remote_follow_fork, remote_follow_exec, remote_disconnect)
7255 (remote_resume, remote_commit_resume, remote_stop)
7256 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
7257 (remote_terminal_ours, remote_wait, remote_fetch_registers)
7258 (remote_prepare_to_store, remote_store_registers)
7259 (remote_flash_erase, remote_flash_done, remote_files_info)
7260 (remote_kill, remote_mourn, remote_insert_breakpoint)
7261 (remote_remove_breakpoint, remote_insert_watchpoint)
7262 (remote_watchpoint_addr_within_range)
7263 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
7264 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
7265 (remote_supports_stopped_by_sw_breakpoint)
7266 (remote_stopped_by_hw_breakpoint)
7267 (remote_supports_stopped_by_hw_breakpoint)
7268 (remote_stopped_by_watchpoint, remote_stopped_data_address)
7269 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
7270 (remote_verify_memory): Refactor as methods of remote_target.
7271 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
7272 parameter.
7273 (remote_xfer_partial, remote_get_memory_xfer_limit)
7274 (remote_search_memory, remote_rcmd, remote_memory_map)
7275 (remote_pid_to_str, remote_get_thread_local_address)
7276 (remote_get_tib_address, remote_read_description): Refactor as
7277 methods of remote_target.
7278 (remote_target::fileio_open, remote_target::fileio_pwrite)
7279 (remote_target::fileio_pread, remote_target::fileio_close): New.
7280 (remote_hostio_readlink, remote_hostio_fstat)
7281 (remote_filesystem_is_local, remote_can_execute_reverse)
7282 (remote_supports_non_stop, remote_supports_disable_randomization)
7283 (remote_supports_multi_process, remote_supports_cond_breakpoints)
7284 (remote_supports_enable_disable_tracepoint)
7285 (remote_supports_string_tracing)
7286 (remote_can_run_breakpoint_commands, remote_trace_init)
7287 (remote_download_tracepoint, remote_can_download_tracepoint)
7288 (remote_download_trace_state_variable, remote_enable_tracepoint)
7289 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
7290 (remote_trace_start, remote_get_trace_status)
7291 (remote_get_tracepoint_status, remote_trace_stop)
7292 (remote_trace_find, remote_get_trace_state_variable_value)
7293 (remote_save_trace_data, remote_get_raw_trace_data)
7294 (remote_set_disconnected_tracing, remote_core_of_thread)
7295 (remote_set_circular_trace_buffer, remote_traceframe_info)
7296 (remote_get_min_fast_tracepoint_insn_len)
7297 (remote_set_trace_buffer_size, remote_set_trace_notes)
7298 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
7299 (remote_disable_btrace, remote_teardown_btrace)
7300 (remote_read_btrace, remote_btrace_conf)
7301 (remote_augmented_libraries_svr4_read, remote_load)
7302 (remote_pid_to_exec_file, remote_can_do_single_step)
7303 (remote_execution_direction, remote_thread_handle_to_thread_info):
7304 Refactor as methods of remote_target.
7305 (init_remote_ops, init_extended_remote_ops): Delete.
7306 (remote_can_async_p, remote_is_async_p, remote_async)
7307 (remote_thread_events, remote_upload_tracepoints)
7308 (remote_upload_trace_state_variables): Refactor as methods of
7309 remote_target.
7310 (_initialize_remote): Remove references to init_remote_ops and
7311 init_extended_remote_ops.
7312
7313 * remote-sim.c (gdbsim_target): New class.
7314 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
7315 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
7316 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
7317 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
7318 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
7319 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
7320 Refactor as methods of gdbsim_target.
7321 (gdbsim_ops): Now a gdbsim_target.
7322 (init_gdbsim_ops): Delete.
7323 (gdbsim_cntrl_c): Adjust.
7324 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
7325
7326 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
7327 (the_amd64_linux_nat_target): New.
7328 (amd64_linux_fetch_inferior_registers)
7329 (amd64_linux_store_inferior_registers): Refactor as methods of
7330 amd64_linux_nat_target.
7331 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
7332 * i386-linux-nat.c: Don't include "linux-nat.h".
7333 (i386_linux_nat_target): New class.
7334 (the_i386_linux_nat_target): New.
7335 (i386_linux_fetch_inferior_registers)
7336 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
7337 as methods of i386_linux_nat_target.
7338 (_initialize_i386_linux_nat): Adjust. Set linux_target.
7339 * inf-child.c (inf_child_ops): Delete.
7340 (inf_child_fetch_inferior_registers)
7341 (inf_child_store_inferior_registers): Delete.
7342 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
7343 methods of inf_child_target.
7344 (inf_child_target::supports_terminal_ours)
7345 (inf_child_target::terminal_init)
7346 (inf_child_target::terminal_inferior)
7347 (inf_child_target::terminal_ours_for_output)
7348 (inf_child_target::terminal_ours, inf_child_target::interrupt)
7349 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
7350 New.
7351 (inf_child_open, inf_child_disconnect, inf_child_close)
7352 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
7353 (inf_child_post_startup_inferior, inf_child_can_run)
7354 (inf_child_pid_to_exec_file): Refactor as methods of
7355 inf_child_target.
7356 (inf_child_follow_fork): Delete.
7357 (inf_child_target::can_create_inferior)
7358 (inf_child_target::can_attach): New.
7359 (inf_child_target::has_all_memory, inf_child_target::has_memory)
7360 (inf_child_target::has_stack, inf_child_target::has_registers)
7361 (inf_child_target::has_execution): New.
7362 (inf_child_fileio_open, inf_child_fileio_pwrite)
7363 (inf_child_fileio_pread, inf_child_fileio_fstat)
7364 (inf_child_fileio_close, inf_child_fileio_unlink)
7365 (inf_child_fileio_readlink, inf_child_use_agent)
7366 (inf_child_can_use_agent): Refactor as methods of
7367 inf_child_target.
7368 (return_zero, inf_child_target): Delete.
7369 (inf_child_target::inf_child_target): New.
7370 * inf-child.h: Include "target.h".
7371 (inf_child_target): Delete function prototype.
7372 (inf_child_target): New class.
7373 (inf_child_open_target, inf_child_mourn_inferior)
7374 (inf_child_maybe_unpush_target): Delete.
7375 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
7376 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
7377 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
7378 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
7379 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
7380 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
7381 (inf_ptrace_wait, inf_ptrace_xfer_partial)
7382 (inf_ptrace_thread_alive, inf_ptrace_files_info)
7383 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
7384 methods of inf_ptrace_target.
7385 (inf_ptrace_target): Delete function.
7386 * inf-ptrace.h: Include "inf-child.h".
7387 (inf_ptrace_target): Delete function declaration.
7388 (inf_ptrace_target): New class.
7389 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
7390 * linux-nat.c (linux_target): New.
7391 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
7392 (linux_nat_target::~linux_nat_target): New.
7393 (linux_child_post_attach, linux_child_post_startup_inferior)
7394 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
7395 (linux_child_remove_fork_catchpoint)
7396 (linux_child_insert_vfork_catchpoint)
7397 (linux_child_remove_vfork_catchpoint)
7398 (linux_child_insert_exec_catchpoint)
7399 (linux_child_remove_exec_catchpoint)
7400 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
7401 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
7402 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
7403 (linux_nat_stopped_data_address)
7404 (linux_nat_stopped_by_sw_breakpoint)
7405 (linux_nat_supports_stopped_by_sw_breakpoint)
7406 (linux_nat_stopped_by_hw_breakpoint)
7407 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
7408 (linux_nat_kill, linux_nat_mourn_inferior)
7409 (linux_nat_xfer_partial, linux_nat_thread_alive)
7410 (linux_nat_update_thread_list, linux_nat_pid_to_str)
7411 (linux_nat_thread_name, linux_child_pid_to_exec_file)
7412 (linux_child_static_tracepoint_markers_by_strid)
7413 (linux_nat_is_async_p, linux_nat_can_async_p)
7414 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
7415 (linux_nat_supports_multi_process)
7416 (linux_nat_supports_disable_randomization, linux_nat_async)
7417 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
7418 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
7419 (linux_nat_fileio_open, linux_nat_fileio_readlink)
7420 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
7421 methods of linux_nat_target.
7422 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
7423 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
7424 parameter.
7425 (check_stopped_by_watchpoint): Adjust.
7426 (linux_xfer_partial): Delete.
7427 (linux_target_install_ops, linux_target, linux_nat_add_target):
7428 Delete.
7429 (linux_nat_target::linux_nat_target): New.
7430 * linux-nat.h: Include "inf-ptrace.h".
7431 (linux_nat_target): New.
7432 (linux_target, linux_target_install_ops, linux_nat_add_target):
7433 Delete function declarations.
7434 (linux_target): Declare global.
7435 * linux-thread-db.c (thread_db_target): New.
7436 (thread_db_target::thread_db_target): New.
7437 (thread_db_ops): Delete.
7438 (the_thread_db_target): New.
7439 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
7440 (thread_db_update_thread_list, thread_db_pid_to_str)
7441 (thread_db_extra_thread_info)
7442 (thread_db_thread_handle_to_thread_info)
7443 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
7444 (thread_db_resume): Refactor as methods of thread_db_target.
7445 (init_thread_db_ops): Delete.
7446 (_initialize_thread_db): Remove reference to init_thread_db_ops.
7447 * x86-linux-nat.c: Don't include "linux-nat.h".
7448 (super_post_startup_inferior): Delete.
7449 (x86_linux_nat_target::~x86_linux_nat_target): New.
7450 (x86_linux_child_post_startup_inferior)
7451 (x86_linux_read_description, x86_linux_enable_btrace)
7452 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
7453 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
7454 methods of x86_linux_nat_target.
7455 (x86_linux_create_target): Delete. Bits folded ...
7456 (x86_linux_add_target): ... here. Now takes a linux_nat_target
7457 pointer.
7458 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
7459 (x86_linux_nat_target): New class.
7460 (x86_linux_create_target): Delete.
7461 (x86_linux_add_target): Now takes a linux_nat_target pointer.
7462 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
7463 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
7464 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
7465 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
7466 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
7467 make extern.
7468 (x86_use_watchpoints): Delete.
7469 * x86-nat.h: Include "breakpoint.h" and "target.h".
7470 (x86_use_watchpoints): Delete.
7471 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
7472 (x86_stopped_by_watchpoint, x86_stopped_data_address)
7473 (x86_insert_watchpoint, x86_remove_watchpoint)
7474 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
7475 (x86_stopped_by_hw_breakpoint): New declarations.
7476 (x86_nat_target): New template class.
7477
7478 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
7479 (the_ppc_linux_nat_target): New.
7480 (ppc_linux_fetch_inferior_registers)
7481 (ppc_linux_can_use_hw_breakpoint)
7482 (ppc_linux_region_ok_for_hw_watchpoint)
7483 (ppc_linux_ranged_break_num_registers)
7484 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
7485 (ppc_linux_insert_mask_watchpoint)
7486 (ppc_linux_remove_mask_watchpoint)
7487 (ppc_linux_can_accel_watchpoint_condition)
7488 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
7489 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
7490 (ppc_linux_watchpoint_addr_within_range)
7491 (ppc_linux_masked_watch_num_registers)
7492 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
7493 (ppc_linux_read_description): Refactor as methods of
7494 ppc_linux_nat_target.
7495 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
7496
7497 * procfs.c (procfs_xfer_partial): Delete forward declaration.
7498 (procfs_target): New class.
7499 (the_procfs_target): New.
7500 (procfs_target): Delete function.
7501 (procfs_auxv_parse, procfs_attach, procfs_detach)
7502 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
7503 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
7504 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
7505 (procfs_create_inferior, procfs_update_thread_list)
7506 (procfs_thread_alive, procfs_pid_to_str)
7507 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
7508 (procfs_stopped_data_address, procfs_insert_watchpoint)
7509 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
7510 (proc_find_memory_regions, procfs_info_proc)
7511 (procfs_make_note_section): Refactor as methods of procfs_target.
7512 (_initialize_procfs): Adjust.
7513 * sol-thread.c (sol_thread_target): New class.
7514 (sol_thread_ops): Now a sol_thread_target.
7515 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
7516 (sol_thread_fetch_registers, sol_thread_store_registers)
7517 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
7518 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
7519 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
7520 (init_sol_thread_ops): Delete.
7521 (_initialize_sol_thread): Adjust. Remove references to
7522 init_sol_thread_ops and complete_target_initialization.
7523
7524 * windows-nat.c (windows_nat_target): New class.
7525 (windows_fetch_inferior_registers)
7526 (windows_store_inferior_registers, windows_resume, windows_wait)
7527 (windows_attach, windows_detach, windows_pid_to_exec_file)
7528 (windows_files_info, windows_create_inferior)
7529 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
7530 (windows_close, windows_pid_to_str, windows_xfer_partial)
7531 (windows_get_tib_address, windows_get_ada_task_ptid)
7532 (windows_thread_name, windows_thread_alive): Refactor as
7533 windows_nat_target methods.
7534 (do_initial_windows_stuff): Adjust.
7535 (windows_target): Delete function.
7536 (_initialize_windows_nat): Adjust.
7537
7538 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
7539 (darwin_mourn_inferior, darwin_kill_inferior)
7540 (darwin_create_inferior, darwin_attach, darwin_detach)
7541 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
7542 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
7543 (darwin_supports_multi_process): Refactor as darwin_nat_target
7544 methods.
7545 (darwin_resume_to, darwin_files_info): Delete.
7546 (_initialize_darwin_inferior): Rename to ...
7547 (_initialize_darwin_nat): ... this. Adjust to C++ification.
7548 * darwin-nat.h: Include "inf-child.h".
7549 (darwin_nat_target): New class.
7550 (darwin_complete_target): Delete.
7551 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
7552 (darwin_target): New.
7553 (i386_darwin_fetch_inferior_registers)
7554 (i386_darwin_store_inferior_registers): Refactor as methods of
7555 darwin_nat_target.
7556 (darwin_complete_target): Delete, with ...
7557 (_initialize_i386_darwin_nat): ... bits factored out here.
7558
7559 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
7560 (the_alpha_linux_nat_target): New.
7561 (alpha_linux_register_u_offset): Refactor as
7562 alpha_linux_nat_target method.
7563 (_initialize_alpha_linux_nat): Adjust.
7564 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
7565 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
7566 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
7567 methods of linux_nat_trad_target.
7568 (linux_trad_target): Delete.
7569 * linux-nat-trad.h (linux_trad_target): Delete function.
7570 (linux_nat_trad_target): New class.
7571 * mips-linux-nat.c (mips_linux_nat_target): New class.
7572 (super_fetch_registers, super_store_registers, super_close):
7573 Delete.
7574 (the_mips_linux_nat_target): New.
7575 (mips64_linux_regsets_fetch_registers)
7576 (mips64_linux_regsets_store_registers)
7577 (mips64_linux_fetch_registers, mips64_linux_store_registers)
7578 (mips_linux_register_u_offset, mips_linux_read_description)
7579 (mips_linux_can_use_hw_breakpoint)
7580 (mips_linux_stopped_by_watchpoint)
7581 (mips_linux_stopped_data_address)
7582 (mips_linux_region_ok_for_hw_watchpoint)
7583 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
7584 (mips_linux_close): Refactor as methods of mips_linux_nat.
7585 (_initialize_mips_linux_nat): Adjust to C++ification.
7586
7587 * aix-thread.c (aix_thread_target): New class.
7588 (aix_thread_ops): Now an aix_thread_target.
7589 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
7590 (aix_thread_fetch_registers, aix_thread_store_registers)
7591 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
7592 (aix_thread_thread_alive, aix_thread_pid_to_str)
7593 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
7594 Refactor as methods of aix_thread_target.
7595 (init_aix_thread_ops): Delete.
7596 (_initialize_aix_thread): Remove references to init_aix_thread_ops
7597 and complete_target_initialization.
7598 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
7599 (rs6000_nat_target): New class.
7600 (the_rs6000_nat_target): New.
7601 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
7602 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
7603 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
7604 (super_create_inferior): Delete.
7605 (_initialize_rs6000_nat): Adjust to C++ification.
7606
7607 * arm-linux-nat.c (arm_linux_nat_target): New class.
7608 (the_arm_linux_nat_target): New.
7609 (arm_linux_fetch_inferior_registers)
7610 (arm_linux_store_inferior_registers, arm_linux_read_description)
7611 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
7612 (arm_linux_remove_hw_breakpoint)
7613 (arm_linux_region_ok_for_hw_watchpoint)
7614 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
7615 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
7616 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
7617 arm_linux_nat_target.
7618 (_initialize_arm_linux_nat): Adjust to C++ification.
7619
7620 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
7621 (the_aarch64_linux_nat_target): New.
7622 (aarch64_linux_fetch_inferior_registers)
7623 (aarch64_linux_store_inferior_registers)
7624 (aarch64_linux_child_post_startup_inferior)
7625 (aarch64_linux_read_description)
7626 (aarch64_linux_can_use_hw_breakpoint)
7627 (aarch64_linux_insert_hw_breakpoint)
7628 (aarch64_linux_remove_hw_breakpoint)
7629 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
7630 (aarch64_linux_region_ok_for_hw_watchpoint)
7631 (aarch64_linux_stopped_data_address)
7632 (aarch64_linux_stopped_by_watchpoint)
7633 (aarch64_linux_watchpoint_addr_within_range)
7634 (aarch64_linux_can_do_single_step): Refactor as methods of
7635 aarch64_linux_nat_target.
7636 (super_post_startup_inferior): Delete.
7637 (_initialize_aarch64_linux_nat): Adjust to C++ification.
7638
7639 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
7640 (the_hppa_linux_nat_target): New.
7641 (hppa_linux_fetch_inferior_registers)
7642 (hppa_linux_store_inferior_registers): Refactor as methods of
7643 hppa_linux_nat_target.
7644 (_initialize_hppa_linux_nat): Adjust to C++ification.
7645
7646 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
7647 (the_ia64_linux_nat_target): New.
7648 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
7649 (ia64_linux_stopped_data_address)
7650 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
7651 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
7652 ia64_linux_nat_target methods.
7653 (super_xfer_partial): Delete.
7654 (_initialize_ia64_linux_nat): Adjust to C++ification.
7655
7656 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
7657 (the_m32r_linux_nat_target): New.
7658 (m32r_linux_fetch_inferior_registers)
7659 (m32r_linux_store_inferior_registers): Refactor as
7660 m32r_linux_nat_target methods.
7661 (_initialize_m32r_linux_nat): Adjust to C++ification.
7662
7663 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
7664 (the_m68k_linux_nat_target): New.
7665 (m68k_linux_fetch_inferior_registers)
7666 (m68k_linux_store_inferior_registers): Refactor as
7667 m68k_linux_nat_target methods.
7668 (_initialize_m68k_linux_nat): Adjust to C++ification.
7669
7670 * s390-linux-nat.c (s390_linux_nat_target): New class.
7671 (the_s390_linux_nat_target): New.
7672 (s390_linux_fetch_inferior_registers)
7673 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
7674 (s390_insert_watchpoint, s390_remove_watchpoint)
7675 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
7676 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
7677 (s390_auxv_parse, s390_read_description): Refactor as methods of
7678 s390_linux_nat_target.
7679 (_initialize_s390_nat): Adjust to C++ification.
7680
7681 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
7682 (the_sparc_linux_nat_target): New.
7683 (_initialize_sparc_linux_nat): Adjust to C++ification.
7684 * sparc-nat.c (sparc_fetch_inferior_registers)
7685 (sparc_store_inferior_registers): Remove target_ops parameter.
7686 * sparc-nat.h (sparc_fetch_inferior_registers)
7687 (sparc_store_inferior_registers): Remove target_ops parameter.
7688 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
7689 (the_sparc64_linux_nat_target): New.
7690 (_initialize_sparc64_linux_nat): Adjust to C++ification.
7691
7692 * spu-linux-nat.c (spu_linux_nat_target): New class.
7693 (the_spu_linux_nat_target): New.
7694 (spu_child_post_startup_inferior, spu_child_post_attach)
7695 (spu_child_wait, spu_fetch_inferior_registers)
7696 (spu_store_inferior_registers, spu_xfer_partial)
7697 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
7698 methods.
7699 (_initialize_spu_nat): Adjust to C++ification.
7700
7701 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
7702 (the_tilegx_linux_nat_target): New.
7703 (fetch_inferior_registers, store_inferior_registers):
7704 Refactor as methods.
7705 (_initialize_tile_linux_nat): Adjust to C++ification.
7706
7707 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
7708 (the_xtensa_linux_nat_target): New.
7709 (xtensa_linux_fetch_inferior_registers)
7710 (xtensa_linux_store_inferior_registers): Refactor as
7711 xtensa_linux_nat_target methods.
7712 (_initialize_xtensa_linux_nat): Adjust to C++ification.
7713
7714 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
7715 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
7716 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
7717 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
7718 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
7719 (fbsd_stopped_by_sw_breakpoint)
7720 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
7721 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
7722 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
7723 (fbsd_post_startup_inferior, fbsd_post_attach)
7724 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
7725 (fbsd_set_syscall_catchpoint)
7726 (super_xfer_partial, super_resume, super_wait)
7727 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
7728 (fbsd_handle_debug_trap): Remove target_ops parameter.
7729 (fbsd_nat_add_target): Delete.
7730 * fbsd-nat.h: Include "inf-ptrace.h".
7731 (fbsd_nat_add_target): Delete.
7732 (USE_SIGTRAP_SIGINFO): Define.
7733 (fbsd_nat_target): New class.
7734
7735 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
7736 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
7737 (amd64bsd_target): Delete.
7738 * amd64-bsd-nat.h: New file.
7739 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
7740 "x86-bsd-nat.h".
7741 (amd64_fbsd_nat_target): New class.
7742 (the_amd64_fbsd_nat_target): New.
7743 (amd64fbsd_read_description): Refactor as method of
7744 amd64_fbsd_nat_target.
7745 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
7746 (_initialize_amd64fbsd_nat): Adjust to C++ification.
7747 * amd64-nat.h (amd64bsd_target): Delete function declaration.
7748 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
7749 (i386bsd_store_inferior_registers): Remove target_ops parameter.
7750 (i386bsd_target): Delete.
7751 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
7752 (i386bsd_fetch_inferior_registers)
7753 (i386bsd_store_inferior_registers): Declare.
7754 (i386_bsd_nat_target): New class.
7755 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
7756 (the_i386_fbsd_nat_target): New.
7757 (i386fbsd_resume, i386fbsd_read_description): Refactor as
7758 i386_fbsd_nat_target methods.
7759 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
7760 (_initialize_i386fbsd_nat): Adjust to C++ification.
7761 * x86-bsd-nat.c (super_mourn_inferior): Delete.
7762 (x86bsd_mourn_inferior, x86bsd_target): Delete.
7763 (_initialize_x86_bsd_nat): Adjust to C++ification.
7764 * x86-bsd-nat.h: Include "x86-nat.h".
7765 (x86bsd_target): Delete declaration.
7766 (x86bsd_nat_target): New class.
7767
7768 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
7769 (the_aarch64_fbsd_nat_target): New.
7770 (aarch64_fbsd_fetch_inferior_registers)
7771 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
7772 aarch64_fbsd_nat_target.
7773 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
7774 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
7775 (the_alpha_bsd_nat_target): New.
7776 (alphabsd_fetch_inferior_registers)
7777 (alphabsd_store_inferior_registers): Refactor as
7778 alpha_bsd_nat_target methods.
7779 (_initialize_alphabsd_nat): Refactor as methods of
7780 alpha_bsd_nat_target.
7781 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
7782 (the_amd64_nbsd_nat_target): New.
7783 (_initialize_amd64nbsd_nat): Adjust to C++ification.
7784 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
7785 (the_amd64_obsd_nat_target): New.
7786 (_initialize_amd64obsd_nat): Adjust to C++ification.
7787 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
7788 (the_arm_fbsd_nat_target): New.
7789 (arm_fbsd_fetch_inferior_registers)
7790 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
7791 (_initialize_arm_fbsd_nat): Refactor as methods of
7792 arm_fbsd_nat_target.
7793 (_initialize_arm_fbsd_nat): Adjust to C++ification.
7794 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
7795 (the_arm_netbsd_nat_target): New.
7796 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
7797 arm_netbsd_nat_target.
7798 (_initialize_arm_netbsd_nat): Adjust to C++ification.
7799 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
7800 (the_hppa_nbsd_nat_target): New.
7801 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
7802 hppa_nbsd_nat_target methods.
7803 (_initialize_hppanbsd_nat): Adjust to C++ification.
7804 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
7805 (the_hppa_obsd_nat_target): New.
7806 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
7807 methods of hppa_obsd_nat_target.
7808 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
7809 add_target.
7810 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
7811 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
7812 add_target.
7813 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
7814 (_initialize_i386obsd_nat): Use add_target.
7815 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
7816 (the_m68k_bsd_nat_target): New.
7817 (m68kbsd_fetch_inferior_registers)
7818 (m68kbsd_store_inferior_registers): Refactor as methods of
7819 m68k_bsd_nat_target.
7820 (_initialize_m68kbsd_nat): Adjust to C++ification.
7821 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
7822 (the_mips_fbsd_nat_target): New.
7823 (mips_fbsd_fetch_inferior_registers)
7824 (mips_fbsd_store_inferior_registers): Refactor as methods of
7825 mips_fbsd_nat_target.
7826 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
7827 add_target.
7828 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
7829 (the_mips_nbsd_nat_target): New.
7830 (mipsnbsd_fetch_inferior_registers)
7831 (mipsnbsd_store_inferior_registers): Refactor as methods of
7832 mips_nbsd_nat_target.
7833 (_initialize_mipsnbsd_nat): Adjust to C++ification.
7834 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
7835 (the_mips64_obsd_nat_target): New.
7836 (mips64obsd_fetch_inferior_registers)
7837 (mips64obsd_store_inferior_registers): Refactor as methods of
7838 mips64_obsd_nat_target.
7839 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
7840 add_target.
7841 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
7842 nbsd_nat_target.
7843 * nbsd-nat.h: Include "inf-ptrace.h".
7844 (nbsd_nat_target): New class.
7845 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
7846 (obsd_wait): Refactor as methods of obsd_nat_target.
7847 (obsd_add_target): Delete.
7848 * obsd-nat.h: Include "inf-ptrace.h".
7849 (obsd_nat_target): New class.
7850 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
7851 (the_ppc_fbsd_nat_target): New.
7852 (ppcfbsd_fetch_inferior_registers)
7853 (ppcfbsd_store_inferior_registers): Refactor as methods of
7854 ppc_fbsd_nat_target.
7855 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
7856 add_target.
7857 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
7858 (the_ppc_nbsd_nat_target): New.
7859 (ppcnbsd_fetch_inferior_registers)
7860 (ppcnbsd_store_inferior_registers): Refactor as methods of
7861 ppc_nbsd_nat_target.
7862 (_initialize_ppcnbsd_nat): Adjust to C++ification.
7863 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
7864 (the_ppc_obsd_nat_target): New.
7865 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
7866 methods of ppc_obsd_nat_target.
7867 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
7868 add_target.
7869 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
7870 (the_sh_nbsd_nat_target): New.
7871 (shnbsd_fetch_inferior_registers)
7872 (shnbsd_store_inferior_registers): Refactor as methods of
7873 sh_nbsd_nat_target.
7874 (_initialize_shnbsd_nat): Adjust to C++ification.
7875 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
7876 (inf_ptrace_xfer_partial): Delete.
7877 (sparc_xfer_partial, sparc_target): Delete.
7878 * sparc-nat.h (sparc_fetch_inferior_registers)
7879 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
7880 (sparc_target): Delete function declaration.
7881 (sparc_target): New template class.
7882 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
7883 (_initialize_sparcnbsd_nat): Adjust to C++ification.
7884 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
7885 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
7886 add_target.
7887 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
7888 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
7889 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
7890 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
7891 add_target.
7892 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
7893 (the_vax_bsd_nat_target): New.
7894 (vaxbsd_fetch_inferior_registers)
7895 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
7896 methods.
7897 (_initialize_vaxbsd_nat): Adjust to C++ification.
7898
7899 * bsd-kvm.c (bsd_kvm_target): New class.
7900 (bsd_kvm_ops): Now a bsd_kvm_target.
7901 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
7902 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
7903 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
7904 bsd_kvm_target.
7905 (bsd_kvm_return_one): Delete.
7906 (bsd_kvm_add_target): Adjust to C++ification.
7907
7908 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
7909 (nto_procfs_target_procfs): New classes.
7910 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
7911 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
7912 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
7913 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
7914 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
7915 (procfs_remove_hw_breakpoint, procfs_resume)
7916 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
7917 (procfs_kill_inferior, procfs_store_registers)
7918 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
7919 as methods of nto_procfs_target.
7920 (nto_procfs_ops): Now an nto_procfs_target_procfs.
7921 (nto_native_ops): Delete.
7922 (procfs_open, procfs_native_open): Delete.
7923 (nto_native_ops): Now an nto_procfs_target_native.
7924 (init_procfs_targets): Adjust to C++ification.
7925 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
7926 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
7927 Refactor as methods of nto_procfs_target.
7928
7929 * go32-nat.c (go32_nat_target): New class.
7930 (the_go32_nat_target): New.
7931 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
7932 (go32_store_registers, go32_xfer_partial, go32_files_info)
7933 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
7934 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
7935 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
7936 (go32_pid_to_str): Refactor as methods of go32_nat_target.
7937 (go32_target): Delete.
7938 (_initialize_go32_nat): Adjust to C++ification.
7939
7940 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
7941 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
7942 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
7943 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
7944 gnu_nat_target.
7945 (gnu_target): Delete.
7946 * gnu-nat.h (gnu_target): Delete.
7947 (gnu_nat_target): New class.
7948 * i386-gnu-nat.c (gnu_base_target): New.
7949 (i386_gnu_nat_target): New class.
7950 (the_i386_gnu_nat_target): New.
7951 (_initialize_i386gnu_nat): Adjust to C++ification.
7952
7953 2018-05-02 Pedro Alves <palves@redhat.com>
7954
7955 * bfd-target.c (target_bfd_xclose): Rename to ...
7956 (target_bfd_close): ... this.
7957 (target_bfd_reopen): Adjust.
7958 * target.c (target_close): Remove references to to_xclose.
7959 * target.h (target_ops::to_xclose): Delete.
7960 (target_ops::to_close): Update comments.
7961
7962 2018-05-02 Pedro Alves <palves@redhat.com>
7963
7964 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
7965 "linux-nat.h".
7966 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
7967 * inf-ptrace.c (inf_ptrace_register_u_offset)
7968 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
7969 (inf_ptrace_store_register, inf_ptrace_store_registers)
7970 (inf_ptrace_trad_target): Move to ...
7971 * linux-nat-trad.c: ... this new file.
7972 * linux-nat-trad.h: New file.
7973 * linux-nat.c (linux_target_install_ops): Make extern.
7974 (linux_trad_target): Delete.
7975 * linux-nat.h (linux_trad_target): Delete declaration.
7976 (linux_target_install_ops): Declare.
7977 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
7978 "linux-nat.h".
7979
7980 2018-05-02 Pedro Alves <palves@redhat.com>
7981
7982 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
7983 procfs_target/add_target here.
7984 * procfs.c (procfs_target): Make static.
7985 (_initialize_procfs): Call add_target here.
7986 * procfs.h (struct target_ops): Remove forward declaration.
7987 (procfs_target): Remove declaration.
7988 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
7989
7990 2018-05-02 Pedro Alves <palves@redhat.com>
7991
7992 * procfs.c (procfs_stopped_by_watchpoint)
7993 (procfs_insert_watchpoint, procfs_remove_watchpoint)
7994 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
7995 Forward declare.
7996 (procfs_use_watchpoints): Delete, move contents...
7997 (procfs_target): ... here.
7998 * procfs.h (procfs_use_watchpoints): Delete declaration.
7999 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
8000 procfs_use_watchpoints.
8001 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
8002 procfs_use_watchpoints.
8003
8004 2018-05-02 Tom Tromey <tom@tromey.com>
8005
8006 PR python/20084:
8007 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
8008 and var_zuinteger_unlimited.
8009 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
8010 and PARAM_ZUINTEGER_UNLIMITED.
8011 (set_parameter_value): Handle var_zuinteger and
8012 var_zuinteger_unlimited.
8013 (add_setshow_generic): Likewise.
8014 (parmpy_init): Likewise.
8015
8016 2018-04-28 Dan Robertson <danlrobertson89@gmail.com>
8017
8018 PR rust/23124
8019 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
8020 pointer is not null before dereferencing it.
8021
8022 2018-04-30 Tom Tromey <tom@tromey.com>
8023
8024 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
8025 is_mi_like_p.
8026
8027 2018-04-30 Tom Tromey <tom@tromey.com>
8028
8029 * breakpoint.c (mention): Remove use of is_mi_like_p.
8030 (print_mention_ranged_breakpoint): Likewise.
8031 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
8032 of is_mi_like_p.
8033
8034 2018-04-30 Tom Tromey <tom@tromey.com>
8035
8036 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
8037
8038 2018-04-30 Tom Tromey <tom@tromey.com>
8039
8040 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
8041 (info_spu_event_command): Remove some uses of is_mi_like_p.
8042
8043 2018-04-30 Tom Tromey <tom@tromey.com>
8044
8045 * python/py-framefilter.c (py_print_single_arg)
8046 (enumerate_locals, py_print_args, py_print_frame): Remove some
8047 uses of is_mi_like_p.
8048
8049 2018-04-30 Tom Tromey <tom@tromey.com>
8050
8051 * ui-out.c: Update.
8052 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
8053 * ui-out.h (ui_out::is_mi_like_p): Now const.
8054 (ui_out::do_is_mi_like_p): Now const.
8055 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
8056
8057 2018-04-30 Tom Tromey <tom@tromey.com>
8058
8059 * varobj.c (varobj_set_visualizer): Use new_reference.
8060 * python/python.c (gdbpy_decode_line): Use new_reference.
8061 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
8062 new_reference.
8063
8064 2018-04-30 Tom Tromey <tom@tromey.com>
8065
8066 * varobj.c (install_new_value): Use new_reference.
8067 * value.h (value_incref): Return void. Swap intro comment with
8068 value_decref.
8069 * value.c (set_value_parent): Use new_reference.
8070 (value_incref): Return void. Update intro comment.
8071 (release_value): Use new_reference.
8072 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
8073
8074 2018-04-30 Tom Tromey <tom@tromey.com>
8075
8076 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
8077 * gdb_bfd.h (new_bfd_ref): Remove.
8078 (gdb_bfd_open): Update comment.
8079 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
8080 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
8081 (gdb_bfd_fdopenr): Use new_reference.
8082 * exec.c (exec_file_attach): Use new_reference.
8083
8084 2018-04-30 Tom Tromey <tom@tromey.com>
8085
8086 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
8087 method.
8088
8089 2018-04-30 Tom Tromey <tom@tromey.com>
8090
8091 * jit.c (jit_read_code_entry): Use type_align.
8092 * i386-tdep.c (i386_gdbarch_init): Don't call
8093 set_gdbarch_long_long_align_bit.
8094 * gdbarch.sh: Remove long_long_align_bit.
8095 * gdbarch.c, gdbarch.h: Rebuild.
8096 * arc-tdep.c (arc_type_align): New function.
8097 (arc_gdbarch_init): Use arc_type_align. Don't call
8098 set_gdbarch_long_long_align_bit.
8099
8100 2018-04-30 Tom Tromey <tom@tromey.com>
8101
8102 * rust-lang.c (rust_type_alignment): Remove.
8103 (rust_composite_type): Use type_align.
8104
8105 2018-04-30 Tom Tromey <tom@tromey.com>
8106
8107 * NEWS: Mention Type.align.
8108 * python/py-type.c (typy_get_alignof): New function.
8109 (type_object_getset): Add "alignof".
8110
8111 2018-04-30 Tom Tromey <tom@tromey.com>
8112
8113 PR exp/17095:
8114 * NEWS: Update.
8115 * std-operator.def (UNOP_ALIGNOF): New operator.
8116 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
8117 New.
8118 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
8119 * c-lang.c (c_op_print_tab): Add alignof.
8120 * c-exp.y (ALIGNOF): New token.
8121 (exp): Add "ALIGNOF" production.
8122 (ident_tokens): Add _Alignof and alignof.
8123
8124 2018-04-30 Tom Tromey <tom@tromey.com>
8125
8126 * i386-tdep.c (i386_type_align): New function.
8127 (i386_gdbarch_init): Update.
8128 * gdbarch.sh (type_align): New method.
8129 * gdbarch.c, gdbarch.h: Rebuild.
8130 * arch-utils.h (default_type_align): Declare.
8131 * arch-utils.c (default_type_align): New function.
8132 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
8133 (struct type) <align_log2>: New field.
8134 <instance_flags>: Now a bitfield.
8135 (TYPE_RAW_ALIGN): New macro.
8136 (type_align, type_raw_align, set_type_align): Declare.
8137 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
8138 functions.
8139 * dwarf2read.c (quirk_rust_enum): Set type alignment.
8140 (get_alignment, maybe_set_alignment): New functions.
8141 (read_structure_type, read_enumeration_type, read_array_type)
8142 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
8143 (read_subrange_type, read_base_type): Set type alignment.
8144
8145 2018-04-30 Simon Marchi <simon.marchi@ericsson.com>
8146
8147 * dwarf2read.c (read_index_from_section): Use bool.
8148
8149 2018-04-29 Fabian Groffen <grobian@gentoo.org>
8150
8151 PR gdb/22950
8152 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
8153 with #ifdef.
8154
8155 2018-04-29 John Reiser <jreiser@BitWagon.com>
8156
8157 PR build/22873
8158 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
8159 last step, and do it atomically.
8160
8161 2018-04-27 Alexandre Oliva <aoliva@redhat.com>
8162
8163 * compile/compile-c-types.c (convert_int, convert_float):
8164 Update for C FE v1.
8165
8166 2018-04-27 Tom Tromey <tom@tromey.com>
8167
8168 PR rust/22545:
8169 * rust-lang.c (rust_inclusive_range_type_p): New function.
8170 (rust_range): Handle inclusive ranges.
8171 (rust_compute_range): Likewise.
8172 * rust-exp.y (struct rust_op) <inclusive>: New field.
8173 (DOTDOTEQ): New constant.
8174 (range_expr): Add "..=" productions.
8175 (operator_tokens): Add "..=" token.
8176 (ast_range): Add "inclusive" parameter.
8177 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
8178 ranges.
8179 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
8180 bounds values.
8181 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
8182 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
8183 Update comments.
8184 * expprint.c (print_subexp_standard): Handle new bounds values.
8185 (dump_subexp_body_standard): Likewise.
8186
8187 2018-04-27 Tom Tromey <tom@tromey.com>
8188
8189 * configure: Rebuild.
8190 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
8191 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
8192 "OVERRIDE".
8193 (class symbol_needs_eval_context): Likewise.
8194 * dwarf2read.c (mock_mapped_index::symbol_name_count)
8195 (mock_mapped_index::symbol_name_at): Use "override". Remove
8196 "virtual".
8197 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
8198 "override".
8199 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
8200 * aarch64-tdep.c (instruction_reader::read): Use "override".
8201 (instruction_reader_test::read): Likewise.
8202 * arm-tdep.c (instruction_reader::read): Use "override".
8203 (instruction_reader_thumb::read): Likewise.
8204
8205 2018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
8206
8207 PR remote/9665
8208 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
8209 instead of remote_send.
8210 (remote_send): Remove.
8211
8212 2018-04-26 Pedro Alves <palves@redhat.com>
8213
8214 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
8215 find_function_start_sal instead of find_pc_line.
8216
8217 2018-04-26 Pedro Alves <palves@redhat.com>
8218
8219 * breakpoint.c (set_breakpoint_location_function): Handle
8220 mst_data_gnu_ifunc.
8221 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
8222 * elfread.c (elf_symtab_read): Give data symbols with
8223 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
8224 (elf_rel_plt_read): Update comment.
8225 * linespec.c (convert_linespec_to_sals): Handle
8226 mst_data_gnu_ifunc.
8227 (minsym_found): Handle mst_data_gnu_ifunc.
8228 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
8229 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
8230 * parse.c (find_minsym_type_and_address): Handle
8231 mst_data_gnu_ifunc.
8232 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
8233 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
8234 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
8235 comment.
8236 <mst_data_gnu_ifunc>: New enumerator.
8237
8238 2018-04-26 Pedro Alves <palves@redhat.com>
8239
8240 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
8241 (lookup_minimal_symbol_by_pc_section): ... this. Replace
8242 'want_trampoline' parameter by a lookup_msym_prefer parameter.
8243 Handle it.
8244 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
8245 (lookup_minimal_symbol_by_pc): Adjust.
8246 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
8247 (lookup_solib_trampoline_symbol_by_pc): Adjust.
8248 * minsyms.h (lookup_msym_prefer): New enum.
8249 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
8250 parameter by a lookup_msym_prefer parameter.
8251
8252 2018-04-26 Pedro Alves <palves@redhat.com>
8253
8254 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
8255 ends in "@plt" instead of looking at the symbol's section.
8256
8257 2018-04-26 Pedro Alves <palves@redhat.com>
8258
8259 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
8260 all references.
8261 (find_pc_partial_function_gnu_ifunc): Rename to ...
8262 (find_pc_partial_function): ... this, and remove references to
8263 'is_gnu_ifunc_p'.
8264 (find_pc_partial_function): Delete old implementation.
8265 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
8266
8267 2018-04-26 Pedro Alves <palves@redhat.com>
8268
8269 * linespec.c (struct bound_minimal_symbol_search_key): New.
8270 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
8271 skip first line if we found a GNU ifunc minimal symbol by name.
8272 (compare_msymbols): Change parameters to work with a destructured
8273 lhs minsym.
8274 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
8275 functions.
8276
8277 2018-04-26 Pedro Alves <palves@redhat.com>
8278
8279 * breakpoint.c (set_breakpoint_location_function): Don't resolve
8280 ifunc targets here. Instead, if we have an ifunc minsym, use its
8281 address/name.
8282 (add_location_to_breakpoint): Store the minsym and the objfile in
8283 the breakpoint location.
8284 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
8285 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
8286 Record the minsym in the sal.
8287 * symtab.h (symtab_and_line) <msymbol>: New field.
8288
8289 2018-04-26 Pedro Alves <palves@redhat.com>
8290
8291 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
8292 unless we actually resolved the ifunc.
8293
8294 2018-04-26 Pedro Alves <palves@redhat.com>
8295
8296 * c-exp.y (variable production): Prefer ifunc minsyms over
8297 regular function symbols.
8298 * symtab.c (find_gnu_ifunc): New function.
8299 * minsyms.h (lookup_msym_prefer): New enum.
8300 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
8301 parameter by a lookup_msym_prefer parameter.
8302 * symtab.h (find_gnu_ifunc): New declaration.
8303
8304 2018-04-26 Pedro Alves <palves@redhat.com>
8305
8306 * blockframe.c (find_gnu_ifunc_target_type): New function.
8307 (find_function_type): New.
8308 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
8309 return a value with a memory address.
8310 (eval_call): For calls to GNU ifunc functions, try to find the
8311 type of the target function from the type that the resolver
8312 returns.
8313 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
8314 symbols.
8315 * infcall.c (find_function_return_type): Delete.
8316 (find_function_addr): Add 'function_type' parameter. For calls to
8317 GNU ifunc functions, try to find the type of the target function
8318 from the type that the resolver returns, and return it via
8319 FUNCTION_TYPE.
8320 (call_function_by_hand_dummy): Adjust to use the function type
8321 returned by find_function_addr.
8322 (find_function_addr): Add 'function_type' parameter and move
8323 description here.
8324 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
8325 declarations.
8326
8327 2018-04-26 Pedro Alves <palves@redhat.com>
8328
8329 * c-exp.y (variable production): Skip finding an alias for ifunc
8330 symbols.
8331
8332 2018-04-26 Pedro Alves <palves@redhat.com>
8333
8334 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
8335
8336 2018-04-25 Pedro Alves <palves@redhat.com>
8337
8338 * infcmd.c (kill_command): Print the pid as string, not the whole
8339 thread's ptid. Add comment. s/has been killed/killed/ in output
8340 message.
8341 * remote.c (remote_detach_1): Print the pid as string, not the
8342 whole thread's ptid.
8343
8344 2018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8345 Sergio Durigan Junior <sergiodj@redhat.com>
8346 Pedro Alves <palves@redhat.com>
8347
8348 * infcmd.c (kill_command): Print message when inferior has
8349 been killed.
8350 * inferior.c (print_inferior_events): Remove 'static'. Set as
8351 '1'.
8352 (add_inferior): Improve message printed when
8353 'print_inferior_events' is on.
8354 (exit_inferior): Remove message printed when
8355 'print_inferior_events' is on.
8356 (detach_inferior): Improve message printed when
8357 'print_inferior_events' is on.
8358 (initialize_inferiors): Use 'add_inferior_silent' to set
8359 'current_inferior_'.
8360 * inferior.h (print_inferior_events): Declare here as
8361 'extern'.
8362 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
8363 '[Detaching...]' messages when 'print_inferior_events' is on.
8364 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
8365 as prefix/suffix for messages. Remove periods. Fix erroneous
8366 'Detaching after fork from child...', replace it by '... from
8367 parent...'.
8368 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
8369 prefix/suffix when printing 'Detaching...' messages. Print
8370 them when 'print_inferior_events' is on.
8371 * remote.c (remote_detach_1): Print message when detaching
8372 from inferior and '!is_fork_parent'.
8373
8374 2018-04-24 Tom Tromey <tom@tromey.com>
8375
8376 * cli-out.h: Reindent.
8377
8378 2018-04-24 Tom Tromey <tom@tromey.com>
8379
8380 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
8381 (cli_ui_out::do_field_string): Use fputs_filtered.
8382 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
8383
8384 2018-04-23 Tom Tromey <tom@tromey.com>
8385
8386 * guile/scm-frame.c (gdbscm_frame_read_var): Use
8387 gdb::unique_xmalloc_ptr.
8388
8389 2018-04-23 Tom Tromey <tom@tromey.com>
8390
8391 * configure: Rebuild.
8392
8393 2018-04-22 Rajendra SY <rajendra.sy@gmail.com>
8394
8395 PR gdb/23095
8396 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
8397 prepare_for_testing. Set normal_bp to r_debug_state if target
8398 is bsd.
8399
8400 2018-04-21 Pedro Alves <palves@redhat.com>
8401 Rajendra SY <rajendra.sy@gmail.com>
8402
8403 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
8404 * remote.c (extended_remote_attach): In all-stop mode, mark the
8405 thread as executing.
8406
8407 2018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8408
8409 * thread.c (thread_apply_all_command): Fix comment.
8410 (thread_command): Fix comment.
8411
8412 2018-04-10 Alan Hayward <alan.hayward@arm.com>
8413
8414 * common/tdesc.h (tdesc_create_feature): Remove xml filename
8415 parameter.
8416 * features/aarch64-core.c (create_feature_aarch64_core):
8417 Regenerate.
8418 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
8419 Likewise.
8420 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
8421 Likewise.
8422 * features/i386/32bit-avx512.c
8423 (create_feature_i386_32bit_avx512): Likewise.
8424 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
8425 Likewise.
8426 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
8427 Likewise.
8428 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
8429 Likewise.
8430 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
8431 Likewise.
8432 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
8433 Likewise.
8434 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
8435 Likewise.
8436 * features/i386/64bit-avx512.c
8437 (create_feature_i386_64bit_avx512): Likewise.
8438 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
8439 Likewise.
8440 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
8441 Likewise.
8442 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
8443 Likewise.
8444 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
8445 Likewise.
8446 * features/i386/64bit-segments.c
8447 (create_feature_i386_64bit_segments): Likewise.
8448 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
8449 Likewise.
8450 * features/i386/x32-core.c
8451 (create_feature_i386_x32_core): Likewise.
8452 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
8453 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
8454 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
8455 * target-descriptions.c: In generated code, don't pass xml
8456 filename.
8457
8458 2018-04-18 Alan Hayward <alan.hayward@arm.com>
8459
8460 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
8461 (print_xml_feature::visit_post): Likewise.
8462 (print_xml_feature::visit): Likewise.
8463 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
8464 (print_xml_feature): Add new class.
8465 * regformats/regdat.sh: Null xmltarget on feature targets.
8466 * target-descriptions.c (struct target_desc): Add xmltarget.
8467 (maintenance_check_tdesc_xml_convert): Add unittest function.
8468 (tdesc_get_features_xml): Add function to get xml.
8469 (maintenance_check_xml_descriptions): Test xml generation.
8470 * xml-tdesc.c (string_read_description_xml): Add function.
8471 * xml-tdesc.h (string_read_description_xml): Add declaration.
8472
8473 2018-04-18 Alan Hayward <alan.hayward@arm.com>
8474
8475 * features/Makefile: Add feature marker to targets with new style
8476 target descriptions.
8477 * regformats/aarch64.dat: Regenerate.
8478 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
8479 * regformats/i386/amd64-avx-linux.dat: Likewise.
8480 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
8481 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
8482 * regformats/i386/amd64-linux.dat: Likewise.
8483 * regformats/i386/amd64-mpx-linux.dat: Likewise.
8484 * regformats/i386/amd64.dat: Likewise.
8485 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
8486 * regformats/i386/i386-avx-linux.dat: Likewise.
8487 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
8488 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
8489 * regformats/i386/i386-linux.dat: Likewise.
8490 * regformats/i386/i386-mmx-linux.dat: Likewise.
8491 * regformats/i386/i386-mpx-linux.dat: Likewise.
8492 * regformats/i386/i386.dat: Likewise.
8493 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
8494 * regformats/i386/x32-avx-linux.dat: Likewise.
8495 * regformats/i386/x32-linux.dat: Likewise.
8496 * regformats/tic6x-c62x-linux.dat: Likewise.
8497 * regformats/tic6x-c64x-linux.dat: Likewise.
8498 * regformats/tic6x-c64xp-linux.dat: Likewise.
8499 * regformats/regdat.sh: Parse feature marker.
8500
8501 2018-04-18 Alan Hayward <alan.hayward@arm.com>
8502
8503 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
8504 (tdesc_osabi_name): Likewise.
8505 * target-descriptions.c (tdesc_architecture_name): Add new
8506 function.
8507 (tdesc_osabi_name): Likewise.
8508
8509 2018-04-18 Alan Hayward <alan.hayward@arm.com>
8510
8511 * common/tdesc.c (tdesc_predefined_type): Move to here.
8512 (tdesc_named_type): Likewise.
8513 (tdesc_create_vector): Likewise.
8514 (tdesc_create_struct): Likewise.
8515 (tdesc_set_struct_size): Likewise.
8516 (tdesc_create_union): Likewise.
8517 (tdesc_create_flags): Likewise.
8518 (tdesc_create_enum): Likewise.
8519 (tdesc_add_field): Likewise.
8520 (tdesc_add_typed_bitfield): Likewise.
8521 (tdesc_add_bitfield): Likewise.
8522 (tdesc_add_flag): Likewise.
8523 (tdesc_add_enum_value): Likewise.
8524 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
8525 (struct tdesc_type_vector): Likewise.
8526 (struct tdesc_type_field): Likewise.
8527 (struct tdesc_type_with_fields): Likewise.
8528 (tdesc_create_enum): Add declaration.
8529 (tdesc_add_typed_bitfield): Likewise.
8530 (tdesc_add_enum_value): Likewise.
8531 * target-descriptions.c (tdesc_type_field): Move from here.
8532 (tdesc_type_builtin): Likewise.
8533 (tdesc_type_vector): Likewise.
8534 (tdesc_type_with_fields): Likewise.
8535 (tdesc_predefined_types): Likewise.
8536 (tdesc_named_type): Likewise.
8537 (tdesc_create_vector): Likewise.
8538 (tdesc_create_struct): Likewise.
8539 (tdesc_set_struct_size): Likewise.
8540 (tdesc_create_union): Likewise.
8541 (tdesc_create_flags): Likewise.
8542 (tdesc_create_enum): Likewise.
8543 (tdesc_add_field): Likewise.
8544 (tdesc_add_typed_bitfield): Likewise.
8545 (tdesc_add_bitfield): Likewise.
8546 (tdesc_add_flag): Likewise.
8547 (tdesc_add_enum_value): Likewise.
8548 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
8549 (tdesc_add_typed_bitfield): Likewise.
8550 (tdesc_add_enum_value): Likewise.
8551
8552 2018-04-18 Alan Hayward <alan.hayward@arm.com>
8553
8554 * common/tdesc.c (tdesc_feature::accept): Move to here.
8555 (tdesc_feature::operator==): Likewise.
8556 (tdesc_create_reg): Likewise.
8557 * common/tdesc.h (tdesc_type_kind): Likewise.
8558 (struct tdesc_type): Likewise.
8559 (struct tdesc_feature): Likewise.
8560 * regformats/regdat.sh: Create a feature.
8561 * target-descriptions.c (tdesc_type_kind): Move from here.
8562 (tdesc_type): Likewise.
8563 (tdesc_type_up): Likewise.
8564 (tdesc_feature): Likewise.
8565 (tdesc_create_reg): Likewise.
8566
8567 2018-04-18 Alan Hayward <alan.hayward@arm.com>
8568
8569 * Makefile.in: Add arch/tdesc.c
8570 * common/tdesc.c: New file.
8571 * common/tdesc.h (tdesc_element_visitor): Move to here.
8572 (tdesc_element): Likewise.
8573 (tdesc_reg): Likewise.
8574 (tdesc_reg_up): Likewise.
8575 * regformats/regdef.h (reg): Add offset to constructors.
8576 * target-descriptions.c (tdesc_element_visitor): Move from here.
8577 (tdesc_element): Likewise.
8578 (tdesc_reg): Likewise.
8579 (tdesc_reg_up): Likewise.
8580
8581 2018-04-17 Tom Tromey <tom@tromey.com>
8582
8583 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
8584 discriminant field.
8585
8586 2018-04-17 Tom Tromey <tom@tromey.com>
8587
8588 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
8589
8590 2018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
8591
8592 * symtab.c (print_symbol_info): Skip printing filename and line
8593 number when `last' is NULL.
8594 (symtab_symbol_info): Use empty string instead of NULL for first
8595 invocation of print_symbol_info.
8596 (rbreak_command): Pass NULL to `last' parameter of
8597 print_symbol_info.
8598
8599 2018-04-16 Simon Marchi <simon.marchi@ericsson.com>
8600
8601 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
8602 instead of nullptr.
8603
8604 2018-04-16 Pedro Alves <palves@redhat.com>
8605
8606 * MAINTAINERS (sh): Remove.
8607 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
8608 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
8609 (ALLDEPFILES): Remove sh64-tdep.c.
8610 * NEWS: Mentions that support for SH-5/SH64 is removed.
8611 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
8612 (sh*-*-openbsd*): Ditto.
8613 (sh64-*-elf*): Remove.
8614 (sh*): Remove.
8615 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
8616 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
8617 * sh-tdep.c: No longer include "sh64-tdep.h".
8618 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
8619 * sh64-tdep.c, sh64-tdep.h: Remove files.
8620
8621 2018-04-16 Pedro Alves <palves@redhat.com>
8622
8623 * MAINTAINERS: Remove m88k.
8624 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
8625 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
8626 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
8627 * NEWS: Mention that support for m88k was removed.
8628 * configure.host (m88*-*-*): Remove support.
8629 * configure.nat (m88k-*-*): Remove support.
8630 * configure.tgt (m88*-*-openbsd*): Remove.
8631 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
8632
8633 2018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
8634
8635 * configure.tgt (x86_tobjs): New variable.
8636 (amd64_tobjs, i386_tobjs): Use it.
8637
8638 2018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8639
8640 * symtab.c (print_symbol_info): Precede the symbol definition by
8641 the line number when available.
8642 * NEWS: Advertise this enhancement.
8643
8644 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
8645
8646 * NEWS (New options): announce set/show record btrace cpu.
8647 * btrace.c: Include record-btrace.h.
8648 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
8649 the vendor is unknown.
8650 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
8651 Maybe overwrite the btrace configuration's cpu.
8652 (btrace_compute_ftrace): Add cpu parameter. Update callers.
8653 (btrace_fetch): Add cpu parameter. Update callers.
8654 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
8655 Maybe overwrite the btrace configuration's cpu. Skip enabling
8656 errata workarounds if the vendor is unknown.
8657 * python/py-record-btrace.c: Include record-btrace.h.
8658 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
8659 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
8660 * record-btrace.c (record_btrace_cpu_state_kind): New.
8661 (record_btrace_cpu): New.
8662 (set_record_btrace_cpu_cmdlist): New.
8663 (record_btrace_get_cpu): New.
8664 (require_btrace_thread, record_btrace_info)
8665 (record_btrace_resume_thread): Call record_btrace_get_cpu.
8666 (cmd_set_record_btrace_cpu_none): New.
8667 (cmd_set_record_btrace_cpu_auto): New.
8668 (cmd_set_record_btrace_cpu): New.
8669 (cmd_show_record_btrace_cpu): New.
8670 (_initialize_record_btrace): Initialize set/show record btrace cpu
8671 commands.
8672 * record-btrace.h (record_btrace_get_cpu): New.
8673
8674 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
8675
8676 * record.c (set_record_command): Fix typo in message.
8677
8678 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
8679
8680 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
8681
8682 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
8683
8684 * infrun.c (process_event_stop_test): Call
8685 gdbarch_in_indirect_branch_thunk.
8686 * gdbarch.sh (in_indirect_branch_thunk): New.
8687 * gdbarch.c: Regenerated.
8688 * gdbarch.h: Regenerated.
8689 * x86-tdep.h: New.
8690 * x86-tdep.c: New.
8691 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
8692 (HFILES_NO_SRCDIR): Add x86-tdep.h.
8693 (ALLDEPFILES): Add x86-tdep.c.
8694 * arch-utils.h (default_in_indirect_branch_thunk): New.
8695 * arch-utils.c (default_in_indirect_branch_thunk): New.
8696 * i386-tdep: Include x86-tdep.h.
8697 (i386_in_indirect_branch_thunk): New.
8698 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
8699 function.
8700 * amd64-tdep: Include x86-tdep.h.
8701 (amd64_in_indirect_branch_thunk): New.
8702 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
8703
8704 2018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8705
8706 PR gdb/23053
8707 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
8708 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
8709 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
8710 regression.
8711
8712 2018-04-12 Tom Tromey <tom@tromey.com>
8713
8714 * rust-lang.c (rust_print_struct_def): Remove univariant code.
8715 (rust_evaluate_subexp): Likewise.
8716
8717 2018-04-12 Pedro Alves <palves@redhat.com>
8718
8719 * procfs.c (procfs_detach): Make forward declaration's prototype
8720 match definition's protototype.
8721 (proc_get_LDT_entry): Remove stale do_cleanups call.
8722
8723 2018-04-12 Pedro Alves <palves@redhat.com>
8724
8725 * target.h (target_ops::to_has_exited): Delete.
8726 (target_has_exited): Delete.
8727 * target-delegates.c: Regenerate.
8728
8729 2018-04-11 Pedro Alves <palves@redhat.com>
8730
8731 * target.c (fileio_fh_t::t): Add comment.
8732 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
8733 (target_fileio_close): Handle a NULL target.
8734 (invalidate_fileio_fh): New.
8735 (target_close): Call it.
8736 * remote.c (remote_hostio_send_command): No longer check whether
8737 remote_desc is open.
8738
8739 2018-04-11 Pedro Alves <palves@redhat.com>
8740
8741 * target.c (fileio_fh_t): Make it a named struct instead of a
8742 typedef.
8743 (fileio_fh_t::is_closed): New method.
8744 (DEF_VEC_O (fileio_fh_t)): Remove.
8745 (fileio_fhandles): Now a std::vector.
8746 (is_closed_fileio_fh): Delete.
8747 (acquire_fileio_fd): Adjust. Rename parameters.
8748 (release_fileio_fd): Adjust.
8749 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
8750 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
8751 (target_fileio_close): Adjust.
8752
8753 2018-04-10 Simon Marchi <simon.marchi@ericsson.com>
8754
8755 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
8756 index.
8757
8758 2018-04-10 Pedro Alves <palves@redhat.com>
8759
8760 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
8761 (scoped_finish_thread_state): New class.
8762 * infcmd.c (run_command_1): Use it instead of finish_thread_state
8763 cleanup.
8764 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
8765 (fetch_inferior_event, normal_stop): Likewise.
8766 * thread.c (finish_thread_state_cleanup): Delete.
8767
8768 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8769 Pedro Alves <palves@redhat.com>
8770
8771 * value.c: Include "selftest.h" and "common/array-view.h".
8772 (struct range) <operator ==>: New.
8773 (test_ranges_contain): New.
8774 (check_ranges_vector): New.
8775 (test_insert_into_bit_range_vector): New.
8776 (_initialize_values): Register selftests.
8777 * common/array-view.h (operator==, operator!=): New.
8778
8779 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8780
8781 * common/gdb_vecs.h (unordered_remove): Add overload that takes
8782 an iterator.
8783 * inline-frame.c: Include <algorithm>.
8784 (struct inline_state): Add constructor.
8785 (inline_state_s): Remove.
8786 (DEF_VEC_O(inline_state_s)): Remove.
8787 (inline_states): Change type to std::vector.
8788 (find_inline_frame_state): Adjust to std::vector.
8789 (allocate_inline_frame_state): Remove.
8790 (clear_inline_frame_state): Adjust to std::vector.
8791 (skip_inline_frames): Adjust to std::vector.
8792
8793 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8794
8795 * tracepoint.h (struct trace_state_variable): Add constructor.
8796 <name>: Change type to std::string.
8797 * tracepoint.c (tsv_s): Remove.
8798 (DEF_VEC_O(tsv_s)): Remove.
8799 (tvariables): Change to std::vector.
8800 (create_trace_state_variable): Adjust to std::vector.
8801 (find_trace_state_variable): Likewise.
8802 (find_trace_state_variable_by_number): Likewise.
8803 (delete_trace_state_variable): Likewise.
8804 (trace_variable_command): Adjust to std::string.
8805 (delete_trace_variable_command): Likewise.
8806 (tvariables_info_1): Adjust to std::vector.
8807 (save_trace_state_variables): Likewise.
8808 (start_tracing): Likewise.
8809 (merge_uploaded_trace_state_variables): Adjust to std::vector
8810 and std::string.
8811 * target.h (struct target_ops)
8812 <to_download_trace_state_variable>: Pass reference to
8813 trace_state_variable.
8814 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
8815 * target-delegates.c: Re-generate.
8816 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
8817 (mi_tsv_deleted): Likewise.
8818 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
8819 * remote.c (remote_download_trace_state_variable): Change
8820 pointer to reference and adjust.
8821 * make-target-delegates (parse_argtypes): Handle references.
8822 (write_function_header): Likewise.
8823 (munge_type): Likewise.
8824
8825 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8826
8827 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8828 string_view-selftests.c.
8829 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
8830 testsuite.
8831 * unittests/basic_string_view/cons/char/1.cc: Likewise.
8832 * unittests/basic_string_view/cons/char/2.cc: Likewise.
8833 * unittests/basic_string_view/cons/char/3.cc: Likewise.
8834 * unittests/basic_string_view/element_access/char/1.cc:
8835 Likewise.
8836 * unittests/basic_string_view/element_access/char/empty.cc:
8837 Likewise.
8838 * unittests/basic_string_view/element_access/char/front_back.cc:
8839 Likewise.
8840 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
8841 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
8842 Likewise.
8843 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
8844 Likewise.
8845 * unittests/basic_string_view/modifiers/swap/char/1.cc:
8846 Likewise.
8847 * unittests/basic_string_view/operations/compare/char/1.cc:
8848 Likewise.
8849 * unittests/basic_string_view/operations/compare/char/13650.cc:
8850 Likewise.
8851 * unittests/basic_string_view/operations/copy/char/1.cc:
8852 Likewise.
8853 * unittests/basic_string_view/operations/data/char/1.cc:
8854 Likewise.
8855 * unittests/basic_string_view/operations/find/char/1.cc:
8856 Likewise.
8857 * unittests/basic_string_view/operations/find/char/2.cc:
8858 Likewise.
8859 * unittests/basic_string_view/operations/find/char/3.cc:
8860 Likewise.
8861 * unittests/basic_string_view/operations/find/char/4.cc:
8862 Likewise.
8863 * unittests/basic_string_view/operations/rfind/char/1.cc:
8864 Likewise.
8865 * unittests/basic_string_view/operations/rfind/char/2.cc:
8866 Likewise.
8867 * unittests/basic_string_view/operations/rfind/char/3.cc:
8868 Likewise.
8869 * unittests/basic_string_view/operations/substr/char/1.cc:
8870 Likewise.
8871 * unittests/basic_string_view/operators/char/2.cc: Likewise.
8872 * unittests/string_view-selftests.c: New file.
8873
8874 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8875
8876 * unittests/basic_string_view/capacity/1.cc: New file.
8877 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
8878 * unittests/basic_string_view/cons/char/1.cc: New file.
8879 * unittests/basic_string_view/cons/char/2.cc: New file.
8880 * unittests/basic_string_view/cons/char/3.cc: New file.
8881 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
8882 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
8883 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
8884 * unittests/basic_string_view/element_access/char/1.cc: New file.
8885 * unittests/basic_string_view/element_access/char/2.cc: New file.
8886 * unittests/basic_string_view/element_access/char/empty.cc: New file.
8887 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
8888 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
8889 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
8890 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
8891 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
8892 * unittests/basic_string_view/include.cc: New file.
8893 * unittests/basic_string_view/inserters/char/1.cc: New file.
8894 * unittests/basic_string_view/inserters/char/2.cc: New file.
8895 * unittests/basic_string_view/inserters/char/3.cc: New file.
8896 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
8897 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
8898 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
8899 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
8900 * unittests/basic_string_view/literals/types.cc: New file.
8901 * unittests/basic_string_view/literals/values.cc: New file.
8902 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
8903 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
8904 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
8905 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
8906 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
8907 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
8908 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
8909 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
8910 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
8911 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
8912 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
8913 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
8914 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
8915 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
8916 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
8917 * unittests/basic_string_view/operations/data/char/1.cc: New file.
8918 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
8919 * unittests/basic_string_view/operations/find/char/1.cc: New file.
8920 * unittests/basic_string_view/operations/find/char/2.cc: New file.
8921 * unittests/basic_string_view/operations/find/char/3.cc: New file.
8922 * unittests/basic_string_view/operations/find/char/4.cc: New file.
8923 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
8924 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
8925 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
8926 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
8927 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
8928 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
8929 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
8930 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
8931 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
8932 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
8933 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
8934 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
8935 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
8936 * unittests/basic_string_view/operators/char/2.cc: New file.
8937 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
8938 * unittests/basic_string_view/range_access/char/1.cc: New file.
8939 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
8940 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
8941 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
8942 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
8943 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
8944 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
8945 * unittests/basic_string_view/requirements/typedefs.cc: New file.
8946 * unittests/basic_string_view/typedefs.cc: New file.
8947 * unittests/basic_string_view/types/1.cc: New file.
8948
8949 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8950
8951 * common/gdb_string_view.h: Remove libstdc++ implementation
8952 details, adjust to gdb reality.
8953 * common/gdb_string_view.tcc: Likewise.
8954 * cli/cli-script.c (struct string_view): Remove.
8955 (user_args) <m_args>: Change element type to gdb::string_view.
8956 (user_args::insert_args): Adjust.
8957
8958 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8959
8960 * common/gdb_string_view.h: New file.
8961 * common/gdb_string_view.tcc: New file.
8962
8963 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8964
8965 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
8966 * configure: Re-generate.
8967
8968 2018-04-09 Pedro Alves <palves@redhat.com>
8969
8970 * gdbarch.sh: Include "observable.h" instead of "observer.h".
8971 (set_target_gdbarch): Call
8972 gdb::observers::architecture_changed.notify instead of
8973 observer_notify_architecture_changed.
8974
8975 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8976
8977 * tracepoint.c (struct current_traceframe_cleanup): Remove.
8978 (do_restore_current_traceframe_cleanup): Remove.
8979 (restore_current_traceframe_cleanup_dtor): Remove.
8980 (make_cleanup_restore_current_traceframe): Remove.
8981 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
8982 New.
8983 * tracepoint.h (struct scoped_restore_current_traceframe): New.
8984 * infrun.c (fetch_inferior_event): Use
8985 scoped_restore_current_traceframe.
8986
8987 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8988
8989 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
8990 Remove.
8991 <n_allocated_type_units>: Remove.
8992 <all_type_units>: Change to std::vector.
8993 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
8994 to std::vector change.
8995 (dwarf2_per_objfile::get_cutu): Likewise.
8996 (dwarf2_per_objfile::get_tu): Likewise.
8997 (create_signatured_type_table_from_index): Likewise.
8998 (create_signatured_type_table_from_debug_names): Likewise.
8999 (dw2_symtab_iter_next): Likewise.
9000 (dw2_print_stats): Likewise.
9001 (dw2_expand_all_symtabs): Likewise.
9002 (dw2_expand_marked_cus): Likewise.
9003 (dw2_debug_names_iterator::next): Likewise.
9004 (dwarf2_initialize_objfile): Likewise.
9005 (add_signatured_type_cu_to_table): Likewise.
9006 (create_all_type_units): Likewise.
9007 (add_type_unit): Likewise.
9008 (struct tu_abbrev_offset): Add constructor.
9009 (build_type_psymtabs_1): Adjust to std::vector change.
9010 (print_tu_stats): Likewise.
9011 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
9012 (write_debug_names): Likewise.
9013
9014 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9015
9016 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
9017 Make an std::vector.
9018 <n_comp_units>: Remove.
9019 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
9020 to std::vector change.
9021 (dwarf2_per_objfile::get_cutu): Likewise.
9022 (dwarf2_per_objfile::get_cu): Likewise.
9023 (create_cus_from_index): Likewise.
9024 (create_addrmap_from_index): Likewise.
9025 (create_addrmap_from_aranges): Likewise.
9026 (dwarf2_read_index): Likewise.
9027 (dw2_find_last_source_symtab): Likewise.
9028 (dw2_map_symtabs_matching_filename): Likewise.
9029 (dw2_symtab_iter_next): Likewise.
9030 (dw2_print_stats): Likewise.
9031 (dw2_expand_all_symtabs): Likewise.
9032 (dw2_expand_symtabs_with_fullname): Likewise.
9033 (dw2_expand_marked_cus): Likewise.
9034 (dw2_map_symbol_filenames): Likewise.
9035 (create_cus_from_debug_names): Likewise.
9036 (dwarf2_read_debug_names): Likewise.
9037 (dw2_debug_names_iterator::next): Likewise.
9038 (dwarf2_initialize_objfile): Likewise.
9039 (set_partial_user): Likewise.
9040 (dwarf2_build_psymtabs_hard): Likewise.
9041 (read_comp_units_from_section): Remove arguments, adjust to
9042 std::vector change.
9043 (create_all_comp_units): Adjust to std::vector and
9044 read_comp_units_from_section changes.
9045 (dwarf2_find_containing_comp_unit): Adjust to std::vector
9046 change.
9047 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
9048 (psyms_seen_size): Likewise.
9049 (write_gdbindex): Likewise.
9050 (write_debug_names): Likewise.
9051
9052 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9053
9054 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
9055 with dwarf2_per_objfile.
9056 (create_cus_from_index): Likewise.
9057 (create_signatured_type_table_from_index): Likewise.
9058 (dwarf2_read_index): Likewise.
9059 (dwarf2_initialize_objfile): Likewise.
9060 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
9061 per_cu rather than get_dwarf2_per_objfile.
9062
9063 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9064
9065 * dwarf2read.h (struct signatured_type): Forward declare.
9066 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
9067 New methods.
9068 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
9069 (dw2_get_cutu): ...this.
9070 (dwarf2_per_objfile::get_cu): Rename from...
9071 (dw2_get_cu): ...this.
9072 (dwarf2_per_objfile::get_tu): New.
9073 (create_addrmap_from_index): Adjust.
9074 (create_addrmap_from_aranges): Adjust.
9075 (dw2_find_last_source_symtab): Adjust.
9076 (dw2_map_symtabs_matching_filename): Adjust.
9077 (dw2_symtab_iter_next): Adjust.
9078 (dw2_print_stats): Adjust.
9079 (dw2_expand_all_symtabs): Adjust.
9080 (dw2_expand_symtabs_with_fullname): Adjust.
9081 (dw2_expand_marked_cus): Adjust.
9082 (dw_expand_symtabs_matching_file_matcher): Adjust.
9083 (dw2_map_symbol_filenames): Adjust.
9084 (dw2_debug_names_iterator::next): Adjust.
9085 (dwarf2_initialize_objfile): Adjust.
9086 (set_partial_user): Adjust.
9087 (dwarf2_build_psymtabs_hard): Adjust.
9088
9089 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9090
9091 * dwarf2read.c (create_signatured_type_table_from_debug_names):
9092 Remove unused variables.
9093 (dw2_map_symtabs_matching_filename): Likewise.
9094 (dwarf2_record_block_ranges): Likewise.
9095 (dwarf2_read_addr_index): Likewise.
9096 (follow_die_offset): Likewise.
9097
9098 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9099
9100 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
9101 to symbol_file_add_main.
9102
9103 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9104
9105 PR mi/22299
9106 * mi/mi-console.c (do_fputc_async_safe): New.
9107 (mi_console_file::write_async_safe): New.
9108 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
9109 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
9110 New.
9111 * ui-file.c (ui_file::putstrn): Adjust call to
9112 fputstrn_unfiltered.
9113 * utils.c (printchar): Replace do_fputs and do_fprintf
9114 parameters by do_fputc.
9115 (fputstr_filtered): Adjust call to printchar.
9116 (fputstr_unfiltered): Likewise.
9117 (fputstrn_filtered): Likewise.
9118 (fputstrn_unfiltered): Add do_fputc parameter, pass to
9119 printchar.
9120 * utils.h (do_fputc_ftype): New typedef.
9121 (fputstrn_unfiltered): Add do_fputc parameter.
9122
9123 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9124
9125 * regformats/i386/i386-avx.dat: Remove.
9126
9127 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
9128
9129 PR gdb/22979
9130 * amd64-tdep.c (amd64_none_init_abi): New function.
9131 (amd64_x32_none_init_abi): New function.
9132 (_initialize_amd64_tdep): Register handlers for x86-64 and
9133 x64_32 with GDB_OSABI_NONE.
9134 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
9135 GDB_OSABI_NONE osabi.
9136
9137 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
9138
9139 PR gdb/22980
9140 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
9141 GDB_OSABI_NONE.
9142 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
9143 * osabi.c (gdb_osabi_names): Add "unknown" entry.
9144
9145 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
9146
9147 * common/byte-vector.h (char_vector): New type.
9148 * target.h (target_read_alloc): Return
9149 gdb::optional<byte_vector>.
9150 (target_read_stralloc): Return gdb::optional<char_vector>.
9151 (target_get_osdata): Return gdb::optional<char_vector>.
9152 * target.c (target_read_alloc_1): Templatize. Replacement
9153 manual memory management with vector.
9154 (target_read_alloc): Change return type, adjust.
9155 (target_read_stralloc): Change return type, adjust.
9156 (target_get_osdata): Change return type, adjust.
9157 * auxv.c (struct auxv_info) <length>: Remove.
9158 <data>: Change type to gdb::optional<byte_vector>.
9159 (auxv_inferior_data_cleanup): Free auxv_info with delete.
9160 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
9161 (target_auxv_search): Adjust.
9162 (fprint_target_auxv): Adjust.
9163 * avr-tdep.c (avr_io_reg_read_command): Adjust.
9164 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
9165 (linux_make_corefile_notes): Adjust.
9166 * osdata.c (get_osdata): Adjust.
9167 * remote.c (remote_get_threads_with_qxfer): Adjust.
9168 (remote_memory_map): Adjust.
9169 (remote_traceframe_info): Adjust.
9170 (btrace_read_config): Adjust.
9171 (remote_read_btrace): Adjust.
9172 (remote_pid_to_exec_file): Adjust.
9173 * solib-aix.c (solib_aix_get_library_list): Adjust.
9174 * solib-dsbt.c (decode_loadmap): Don't free buf.
9175 (dsbt_get_initial_loadmaps): Adjust.
9176 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
9177 * solib-target.c (solib_target_current_sos): Adjust.
9178 * tracepoint.c (sdata_make_value): Adjust.
9179 * xml-support.c (xinclude_start_include): Adjust.
9180 (xml_fetch_content_from_file): Adjust.
9181 * xml-support.h (xml_fetch_another): Change return type.
9182 (xml_fetch_content_from_file): Change return type.
9183 * xml-syscall.c (xml_init_syscalls_info): Adjust.
9184 * xml-tdesc.c (file_read_description_xml): Adjust.
9185 (fetch_available_features_from_target): Change return type.
9186 (target_fetch_description_xml): Adjust.
9187 (target_read_description_xml): Adjust.
9188
9189 2018-04-06 Tom Tromey <tom@tromey.com>
9190
9191 * value.c (~value): Update.
9192 (struct value) <contents>: Now unique_xmalloc_ptr.
9193 (value_contents_bits_eq, allocate_value_contents)
9194 (value_contents_raw, value_contents_all_raw)
9195 (value_contents_for_printing, value_contents_for_printing_const)
9196 (set_value_enclosing_type): Update.
9197
9198 2018-04-06 Tom Tromey <tom@tromey.com>
9199
9200 * value.c (range_s): Remove typedef, VEC.
9201 (struct range): Add operator<.
9202 (range_lessthan): Remove.
9203 (ranges_contain): Change type.
9204 (~value): Update.
9205 (struct value) <unavailable, optimized_out>: Now std::vector.
9206 (value_entirely_available)
9207 (value_entirely_covered_by_range_vector)
9208 (value_entirely_unavailable, value_entirely_optimized_out):
9209 Update.
9210 (insert_into_bit_range_vector): Change argument type.
9211 (find_first_range_overlap): Likewise.
9212 (struct ranges_and_idx, value_contents_bits_eq)
9213 (require_not_optimized_out, require_available): Update.
9214 (ranges_copy_adjusted): Change argument types.
9215 (value_optimized_out, value_copy, value_fetch_lazy): Update.
9216
9217 2018-04-06 Tom Tromey <tom@tromey.com>
9218
9219 * value.c (~value): Update.
9220 (struct value) <parent>: Now a value_ref_ptr.
9221 (value_parent, set_value_parent, value_address, value_copy):
9222 Update.
9223
9224 2018-04-06 Tom Tromey <tom@tromey.com>
9225
9226 * value.c (struct value): Add constructor, destructor, and member
9227 initializers.
9228 (allocate_value_lazy, value_decref): Update.
9229
9230 2018-04-06 Tom Tromey <tom@tromey.com>
9231
9232 * value.c (struct value) <released, next>: Remove.
9233 (all_values): Now a std::vector.
9234 (allocate_value_lazy): Update.
9235 (value_next): Remove.
9236 (value_mark, value_free_to_mark, release_value)
9237 (value_release_to_mark): Update.
9238
9239 2018-04-06 Tom Tromey <tom@tromey.com>
9240
9241 * value.h (fetch_subexp_value, value_release_to_mark): Update.
9242 (free_value_chain): Remove.
9243 * value.c (free_value_chain): Remove.
9244 (value_release_to_mark): Return a std::vector.
9245 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
9246 std::vector.
9247 (check_condition): Update.
9248 * eval.c (fetch_subexp_value): Change "val_chain" to a
9249 std::vector.
9250 * breakpoint.c (update_watchpoint): Update.
9251 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
9252
9253 2018-04-06 Tom Tromey <tom@tromey.com>
9254
9255 * value.h (free_all_values): Remove.
9256 * value.c (free_all_values): Remove.
9257
9258 2018-04-06 Tom Tromey <tom@tromey.com>
9259
9260 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
9261 (value_history_chain, value_history_count): Remove.
9262 (value_history): New global.
9263 (record_latest_value, access_value_history, show_values)
9264 (preserve_values): Update.
9265
9266 2018-04-06 Tom Tromey <tom@tromey.com>
9267
9268 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
9269 * varobj.c (varobj_set_display_format, varobj_set_value)
9270 (install_default_visualizer, construct_visualizer)
9271 (install_new_value, ~varobj, varobj_get_value_type)
9272 (my_value_of_variable, varobj_editable_p): Update.
9273 * c-varobj.c (c_describe_child, c_value_of_variable)
9274 (cplus_number_of_children, cplus_describe_child): Update.
9275 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
9276 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
9277 (ada_value_of_variable, ada_value_is_changeable_p): Update.
9278
9279 2018-04-06 Tom Tromey <tom@tromey.com>
9280
9281 * printcmd.c (last_examine_address): Change type to
9282 value_ref_ptr.
9283 (do_examine, x_command): Update.
9284
9285 2018-04-06 Tom Tromey <tom@tromey.com>
9286
9287 * value.c (release_value): Update.
9288 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
9289 (struct bpstats) <val>: Now a value_ref_ptr.
9290 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
9291 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
9292 (~watchpoint, print_it_watchpoint, watch_command_1)
9293 (invalidate_bp_value_on_memory_change): Update.
9294
9295 2018-04-06 Tom Tromey <tom@tromey.com>
9296
9297 * varobj.c (varobj_clear_saved_item)
9298 (update_dynamic_varobj_children, install_new_value, ~varobj):
9299 Update.
9300 * value.h (value_incref): Move declaration earlier.
9301 (value_decref): Rename from value_free.
9302 (struct value_ref_policy): New.
9303 (value_ref_ptr): New typedef.
9304 (struct value_deleter): Remove.
9305 (gdb_value_up): Remove typedef.
9306 (release_value): Change return type.
9307 (release_value_or_incref): Remove.
9308 * value.c (set_value_parent): Update.
9309 (value_incref): Change return type.
9310 (value_decref): Rename from value_free.
9311 (value_free_to_mark, free_all_values, free_value_chain): Update.
9312 (release_value): Return value_ref_ptr.
9313 (release_value_or_incref): Remove.
9314 (record_latest_value, set_internalvar, clear_internalvar):
9315 Update.
9316 * stack.c (info_frame_command): Don't call value_free.
9317 * python/py-value.c (valpy_dealloc, valpy_new)
9318 (value_to_value_object): Update.
9319 * printcmd.c (do_examine): Update.
9320 * opencl-lang.c (lval_func_free_closure): Update.
9321 * mi/mi-main.c (register_changed_p): Don't call value_free.
9322 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
9323 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
9324 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
9325 value_free.
9326 * guile/scm-value.c (vlscm_free_value_smob)
9327 (vlscm_scm_from_value): Update.
9328 * frame.c (frame_register_unwind, frame_unwind_register_signed)
9329 (frame_unwind_register_unsigned, get_frame_register_bytes)
9330 (put_frame_register_bytes): Don't call value_free.
9331 * findvar.c (address_from_register): Don't call value_free.
9332 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
9333 * dwarf2loc.c (entry_data_value_free_closure)
9334 (value_of_dwarf_reg_entry, free_pieced_value_closure)
9335 (dwarf2_evaluate_loc_desc_full): Update.
9336 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
9337 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
9338 (~watchpoint, watch_command_1)
9339 (invalidate_bp_value_on_memory_change): Update.
9340 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
9341
9342 2018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
9343
9344 PR gdb/23022
9345 * warning.m4: Add -Wno-error=deprecated-register.
9346 * configure: Re-generate.
9347
9348 2018-04-05 Tom Tromey <tom@tromey.com>
9349
9350 * linespec.h: Remove include of "vec.h".
9351
9352 2018-04-05 Tom Tromey <tom@tromey.com>
9353
9354 * linespec.c (typep): Remove typedef.
9355 (find_methods, find_superclass_methods): Take a std::vector.
9356 (find_method): Use std::vector.
9357
9358 2018-04-05 Tom Tromey <tom@tromey.com>
9359
9360 * utils.c (compare_strings): Remove.
9361 * utils.h (compare_strings): Remove.
9362 * objc-lang.h (find_imps): Update.
9363 * objc-lang.c (find_methods): Take a std::vector.
9364 (uniquify_strings, find_imps): Likewise.
9365 * linespec.c (find_methods): Take a std::vector.
9366 (decode_objc): Use std::vector.
9367 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
9368 a std::vector.
9369 (find_method, find_function_symbols): Use std::vector.
9370
9371 2018-04-05 Tom Tromey <tom@tromey.com>
9372
9373 * completer.c (completion_tracker::completion_tracker): Remove
9374 cast.
9375 (completion_tracker::discard_completions): Likewise.
9376 * breakpoint.c (ambiguous_names_p): Remove cast.
9377 * ada-lang.c (_initialize_ada_language): Remove cast.
9378 * utils.h (streq): Update.
9379 (streq_hash): Add new declaration.
9380 * utils.c (streq): Return bool.
9381 (streq_hash): New function.
9382
9383 2018-04-05 Tom Tromey <tom@tromey.com>
9384
9385 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
9386 Remove a string copy.
9387
9388 2018-04-05 Tom Tromey <tom@tromey.com>
9389
9390 * linespec.c (filter_results): Use std::vector.
9391 (decode_line_2, decode_line_full): Update.
9392
9393 2018-04-05 Tom Tromey <tom@tromey.com>
9394
9395 * linespec.c (canonical_to_fullform): Return std::string.
9396 (filter_results): Update.
9397 (struct decode_line_2_item): Add constructor.
9398 <fullform, displayform>: Now std::string.
9399 (decode_line_2_compare_items): Now a std::sort comparator.
9400 (decode_line_2): Update.
9401
9402 2018-04-05 Tom Tromey <tom@tromey.com>
9403
9404 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
9405 (unexpected_linespec_error): Update.
9406 (linespec_parse_basic, parse_linespec): Update.
9407
9408 2018-04-05 Tom Tromey <tom@tromey.com>
9409
9410 * linespec.c (linespec_parse_basic): Reindent.
9411
9412 2018-04-05 Tom Tromey <tom@tromey.com>
9413
9414 * minsyms.h (iterate_over_minimal_symbols): Update.
9415 * minsyms.c (iterate_over_minimal_symbols): Take a
9416 gdb::function_view.
9417 * linespec.c (struct collect_minsyms): Remove.
9418 (compare_msyms): Now a std::sort comparator.
9419 (add_minsym): Add parameters.
9420 (search_minsyms_for_name): Update. Use std::vector.
9421
9422 2018-04-03 Tom Tromey <tom@tromey.com>
9423
9424 * mipsread.c (read_alphacoff_dynamic_symtab): Use
9425 gdb::byte_vector.
9426
9427 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
9428
9429 * MAINTAINERS (Write After Approval): Add Weimin Pan.
9430
9431 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
9432
9433 PR gdb/16959
9434 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
9435 printing static type.
9436
9437 2018-04-01 Tom Tromey <tom@tromey.com>
9438
9439 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
9440 (rs6000_xfer_shared_libraries): Update.
9441
9442 2018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
9443
9444 * common/gdb_vecs.h (char_ptr): Remove.
9445 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
9446
9447 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
9448
9449 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
9450 with std::vector.
9451 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
9452
9453 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
9454
9455 * tracepoint.h (struct uploaded_tp): Initialize fields.
9456 <actions, step_actions, cmd_strings>: Change type to
9457 std::vector<char *>.
9458 * tracepoint.c (get_uploaded_tp): Allocate with new.
9459 (free_uploaded_tps): Free with delete.
9460 (parse_tracepoint_definition): Adjust to std::vector change.
9461 * breakpoint.c (read_uploaded_action): Likewise.
9462 (create_tracepoint_from_upload): Likewise.
9463 * ctf.c (ctf_write_uploaded_tp): Likewise.
9464 (SET_ARRAY_FIELD): Likewise.
9465 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
9466
9467 2018-03-30 Tom Tromey <tom@tromey.com>
9468
9469 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
9470 std::unique_ptr.
9471 (svr4_keep_data_in_core): Update.
9472 (svr4_read_so_list): Update.
9473
9474 2018-03-30 Tom Tromey <tom@tromey.com>
9475
9476 * windows-nat.c (handle_output_debug_string, handle_exception):
9477 Update.
9478 * target.h (target_read_string): Update.
9479 * target.c (target_read_string): Change "string" to
9480 unique_xmalloc_ptr.
9481 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
9482 Update.
9483 * solib-frv.c (frv_current_sos): Update.
9484 * solib-dsbt.c (dsbt_current_sos): Update.
9485 * solib-darwin.c (darwin_current_sos): Update.
9486 * linux-thread-db.c (inferior_has_bug): Update.
9487 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
9488 Update. Remove alloca.
9489 * ada-lang.c (ada_main_name): Update.
9490
9491 2018-03-30 Tom Tromey <tom@tromey.com>
9492
9493 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
9494 (struct dwo_file_deleter): New.
9495 (dwo_file_up): New typedef.
9496 (open_and_init_dwo_file): Use dwo_file_up.
9497 (free_dwo_file_cleanup): Remove.
9498
9499 2018-03-30 Tom Tromey <tom@tromey.com>
9500
9501 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
9502 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
9503
9504 2018-03-30 Tom Tromey <tom@tromey.com>
9505
9506 * dwarf2read.c (class free_cached_comp_units): New class.
9507 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
9508 (free_cached_comp_units): Remove function.
9509
9510 2018-03-30 Tom Tromey <tom@tromey.com>
9511
9512 * utils.h (make_cleanup_unpush_target): Remove.
9513 * inf-ptrace.c (struct target_unpusher): New.
9514 (target_unpush_up) New typedef.
9515 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
9516 target_unpush_up.
9517 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
9518
9519 2018-03-27 Tom Tromey <tom@tromey.com>
9520
9521 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
9522
9523 2018-03-27 Pedro Alves <palves@redhat.com>
9524 Tom Tromey <tom@tromey.com>
9525
9526 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
9527 destructor. Now a class.
9528 (gdb_readline_wrapper_cleanup): Remove function.
9529 (gdb_readline_wrapper): Remove cleanups.
9530
9531 2018-03-27 Tom Tromey <tom@tromey.com>
9532
9533 * typeprint.h (struct type_print_options) <local_typedefs,
9534 global_typedefs>: Remove "struct" keyword.
9535 (class typedef_hash_table): New class.
9536 (recursively_update_typedef_hash, add_template_parameters)
9537 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
9538 (find_typedef_in_hash): Don't declare.
9539 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
9540 (typedef_hash_table::recursively_update): Rename from
9541 recursively_update_typedef_hash. Now a member.
9542 (typedef_hash_table::add_template_parameters): Rename from
9543 add_template_parameters. Now a member.
9544 (typedef_hash_table::typedef_hash_table): Now a constructor;
9545 rename from create_typedef_hash.
9546 (typedef_hash_table::~typedef_hash_table): Now a destructor;
9547 rename from free_typedef_hash.
9548 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
9549 (do_free_global_table): Remove.
9550 (typedef_hash_table::typedef_hash_table): New constructor; renamed
9551 from copy_type_recursive.
9552 (create_global_typedef_table): Remove.
9553 (typedef_hash_table::find_global_typedef): Now a member of
9554 typedef_hash_table.
9555 (typedef_hash_table::find_typedef): Rename from
9556 find_typedef_in_hash; now a member.
9557 (whatis_exp): Update.
9558 * extension.h (struct ext_lang_type_printers): Add constructor and
9559 destructor.
9560 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
9561 declare.
9562 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
9563 Now a constructor; rename from start_ext_lang_type_printers.
9564 (ext_lang_type_printers): Now a destructor; rename from
9565 free_ext_lang_type_printers.
9566 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
9567 Update.
9568 (c_type_print_base_struct_union): Update. Remove cleanups.
9569
9570 2018-03-27 Tom Tromey <tom@tromey.com>
9571
9572 * dwarf-index-write.c: Include <cmath>.
9573
9574 2018-03-27 Joel Brobecker <brobecker@adacore.com>
9575
9576 * NEWS: Add entry describing new "set|show varsize-limit" command.
9577 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
9578 command.
9579 * printcmd.c (_initialize_printcmd): Add "set var" alias of
9580 "set variable".
9581
9582 2018-03-27 Simon Marchi <simon.marchi@ericsson.com>
9583
9584 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
9585 dwarf-index-write.c
9586 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
9587 * dwarf-index-common.c: New file.
9588 * dwarf-index-common.h: New file.
9589 * dwarf-index-write.c: New file.
9590 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
9591 (struct dwarf2_section_info): Move from here.
9592 (dwarf2_section_info_def): Likewise.
9593 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
9594 (offset_type): Likewise.
9595 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
9596 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
9597 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
9598 (byte_swap): Likewise.
9599 (MAYBE_SWAP): Likewise.
9600 (dwarf2_per_cu_ptr): Likewise.
9601 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
9602 (struct tu_stats): Likewise.
9603 (struct dwarf2_per_objfile): Likewise.
9604 (struct dwarf2_per_cu_data): Likewise.
9605 (struct signatured_type): Likewise.
9606 (sig_type_ptr): Likewise.
9607 (DEF_VEC_P (sig_type_ptr)): Likewise.
9608 (INDEX4_SUFFIX): Likewise.
9609 (INDEX5_SUFFIX): Likewise.
9610 (DEBUG_STR_SUFFIX): Likewise.
9611 (dwarf2_read_section): Make non-static.
9612 (mapped_index_string_hash): Move from here.
9613 (dwarf5_djb_hash): Likewise.
9614 (file_write): Likewise.
9615 (class data_buf): Likewise.
9616 (struct symtab_index_entry): Likewise.
9617 (struct mapped_symtab): Likewise.
9618 (find_slot): Likewise.
9619 (hash_expand): Likewise.
9620 (add_index_entry): Likewise.
9621 (uniquify_cu_indices): Likewise.
9622 (class c_str_view): Likewise.
9623 (class c_str_view_hasher): Likewise.
9624 (class vector_hasher): Likewise.
9625 (write_hash_table): Likewise.
9626 (psym_index_map): Likewise.
9627 (struct addrmap_index_data): Likewise.
9628 (add_address_entry): Likewise.
9629 (add_address_entry_worker): Likewise.
9630 (write_address_map): Likewise.
9631 (symbol_kind): Likewise.
9632 (write_psymbols): Likewise.
9633 (struct signatured_type_index_data): Likewise.
9634 (write_one_signatured_type): Likewise.
9635 (recursively_count_psymbols): Likewise.
9636 (recursively_write_psymbols): Likewise.
9637 (class debug_names): Likewise.
9638 (check_dwarf64_offsets): Likewise.
9639 (psyms_seen_size): Likewise.
9640 (write_gdbindex): Likewise.
9641 (write_debug_names): Likewise.
9642 (assert_file_size): Likewise.
9643 (write_psymtabs_to_index): Likewise.
9644 (save_gdb_index_command): Likewise.
9645 (_initialize_dwarf2_read): Don't register the "save gdb-index"
9646 command.
9647 * dwarf2read.h: New file.
9648
9649 2018-03-27 Joel Brobecker <brobecker@adacore.com>
9650
9651 PR gdb/22670
9652 * dwarf2read.c (dwarf2_physname): Do not return the demangled
9653 symbol name if the CU's language stores symbol names in linkage
9654 format.
9655 * language.h (struct language_defn)
9656 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
9657 all instances of this struct.
9658
9659 2018-03-26 Tom Tromey <tom@tromey.com>
9660
9661 * stack.c (backtrace_command_1): Remove verbose code.
9662
9663 2018-03-26 Tom Tromey <tom@tromey.com>
9664
9665 * python/py-framefilter.c (py_print_type): Don't catch
9666 exceptions. Return void.
9667 (py_print_value): Likewise.
9668 (py_print_single_arg): Likewise.
9669 (enumerate_args): Don't catch exceptions.
9670 (py_print_args): Likewise.
9671 (py_print_frame): Likewise.
9672 (gdbpy_apply_frame_filter): Catch exceptions here.
9673
9674 2018-03-26 Tom Tromey <tom@tromey.com>
9675
9676 * stack.c (_initialize_stack): Remove trailing newlines from help
9677 text. Add "Usage" line to "backtrace" help.
9678
9679 2018-03-26 Tom Tromey <tom@tromey.com>
9680
9681 PR python/16486:
9682 * python/py-framefilter.c (py_print_args): Call wrap_hint.
9683
9684 2018-03-26 Tom Tromey <tom@tromey.com>
9685
9686 * python/py-framefilter.c (py_print_single_arg): Return
9687 EXT_LANG_BT_ERROR from catch.
9688
9689 2018-03-26 Tom Tromey <tom@tromey.com>
9690
9691 PR backtrace/15584:
9692 * stack.c (backtrace_command_1): Move some code into no-filters
9693 "if".
9694
9695 2018-03-26 Tom Tromey <tom@tromey.com>
9696
9697 * python/py-framefilter.c (throw_quit_or_print_exception): New
9698 function.
9699 (gdbpy_apply_frame_filter): Use it.
9700
9701 2018-03-26 Tom Tromey <tom@tromey.com>
9702
9703 PR cli/17716:
9704 * python/py-framefilter.c (py_print_type, py_print_value)
9705 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
9706 RETURN_MASK_ERROR.
9707
9708 2018-03-26 Tom Tromey <tom@tromey.com>
9709
9710 * python/py-framefilter.c (enumerate_args): Use
9711 gdb::unique_xmalloc_ptr.
9712
9713 2018-03-26 Tom Tromey <tom@tromey.com>
9714
9715 * python/py-framefilter.c (py_print_frame): Return
9716 EXT_LANG_BT_OK.
9717 (gdbpy_apply_frame_filter): Update comment.
9718 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
9719 Remove.
9720 <EXT_LANG_BT_NO_FILTERS>: Change value.
9721
9722 2018-03-26 Tom Tromey <tom@tromey.com>
9723
9724 PR backtrace/15582:
9725 * stack.c (backtrace_command): Parse "hide" argument.
9726 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
9727 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
9728 constant.
9729
9730 2018-03-26 Tom Tromey <tom@tromey.com>
9731
9732 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
9733 add "flags".
9734 (backtrace_command): Remove "fulltrace", add "flags".
9735
9736 2018-03-26 Tom Tromey <tom@tromey.com>
9737
9738 * stack.c (backtrace_command): Rewrite command line parsing.
9739
9740 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
9741
9742 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
9743
9744 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
9745
9746 * filename-seen-cache.h: Add include guard.
9747
9748 2018-03-26 Keith Seitz <keiths@redhat.com>
9749
9750 * symfile.c (place_section): Remove "struct" from section_addr_info
9751 in comment.
9752 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
9753 "struct" keyword from section_addr_info.
9754
9755 2018-03-26 Alan Hayward <alan.hayward@arm.com>
9756
9757 * regformats/regdef.h (reg): Add constructors.
9758
9759 2018-03-25 Pedro Alves <palves@redhat.com>
9760
9761 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
9762 if then/else bodies in var_func_name extraction.
9763
9764 2018-03-23 Weimin Pan <weimin.pan@oracle.com>
9765
9766 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
9767 lookup_minimal_symbol() to find symbol entry.
9768 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
9769
9770 2018-03-23 Keith Seitz <keiths@redhat.com>
9771
9772 PR c++/22968
9773 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
9774 nested type definitions for C++, too.
9775
9776 2018-03-23 Tom Tromey <tom@tromey.com>
9777
9778 * machoread.c (struct oso_el): Add a constructor. Don't define as
9779 a typedef.
9780 (macho_register_oso): Remove.
9781 (macho_symtab_read): Take a std::vector.
9782 (oso_el_compare_name): Now a std::sort comparator.
9783 (macho_symfile_read_all_oso): Take a std::vector.
9784 (macho_symfile_read): Use std::vector. Remove cleanups.
9785
9786 2018-03-22 Tom Tromey <tom@tromey.com>
9787
9788 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
9789 (record_full_goto_bookmark): Use std::string.
9790
9791 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
9792
9793 PR tdep/18295
9794 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
9795 a single mask.
9796
9797 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
9798
9799 * rs6000-tdep.c (store_insn_p): New function.
9800 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
9801 and cr_reg to their unshifted values. Use store_insn_p to
9802 match LR saves using either R1 or fdata->alloca_reg. Use
9803 store_insn_p to match CR saves. Set alloca_reg_offset
9804 when alloca_reg and framep are set. Remove lr_reg shift
9805 when assigning to fdata->lr_register.
9806
9807 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
9808
9809 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
9810 command line args instead of emitting a warning.
9811
9812 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
9813
9814 * tracepoint.h (struct static_tracepoint_marker): Initialize
9815 fields, define default constructor, move constructor and move
9816 assignment, disable the rest.
9817 <str_id, extra>: Make std::string.
9818 (release_static_tracepoint_marker): Remove.
9819 (free_current_marker): Remove.
9820 * tracepoint.c (free_current_marker): Remove.
9821 (parse_static_tracepoint_marker_definition): Adjust to
9822 std::string, use new hex2str overload.
9823 (release_static_tracepoint_marker): Remove.
9824 (print_one_static_tracepoint_marker): Get marker by reference
9825 and adjust to std::string.
9826 (info_static_tracepoint_markers_command): Adjust to std::vector
9827 changes
9828 * target.h (static_tracepoint_marker_p): Remove typedef.
9829 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
9830 (struct target_ops) <to_static_tracepoint_marker_at>: Return
9831 bool.
9832 <to_static_tracepoint_markers_by_strid>: Return std::vector.
9833 * target-debug.h
9834 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
9835 (target_debug_print_std_vector_static_tracepoint_marker): New.
9836 (target_debug_print_struct_static_tracepoint_marker_p): Rename
9837 to...
9838 (target_debug_print_static_tracepoint_marker_p): ... this.
9839 * target-delegates.c: Re-generate.
9840 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
9841 Make std::string.
9842 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
9843 (decode_static_tracepoint_spec): Adjust to std::vector.
9844 (tracepoint_print_one_detail): Adjust to std::string.
9845 (strace_marker_decode_location): Adjust to std::string.
9846 (update_static_tracepoint): Adjust to std::string, remove call
9847 to release_static_tracepoint_marker.
9848 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
9849 Adjust to std::vector.
9850 * remote.c (remote_static_tracepoint_marker_at): Return bool.
9851 (remote_static_tracepoint_markers_by_strid): Adjust to
9852 std::vector.
9853 * common/rsp-low.h (hex2str): New overload with explicit count
9854 of bytes.
9855 * common/rsp-low.c (hex2str): New overload with explicit count
9856 of bytes.
9857 * unittests/rsp-low-selftests.c (test_hex2str): New function.
9858 (_initialize_rsp_low_selftests): Add test_hex2str test.
9859 * unittests/tracepoint-selftests.c
9860 (test_parse_static_tracepoint_marker_definition): Adjust to
9861 std::string.
9862
9863 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
9864
9865 * tracepoint.c (parse_static_tracepoint_marker_definition):
9866 Consider case where the definition is followed by more
9867 definitions.
9868 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9869 tracepoint-selftests.c.
9870 * unittests/tracepoint-selftests.c: New.
9871
9872 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
9873
9874 * MAINTAINERS (Write After Approval): Add Pedro Franco de
9875 Carvalho.
9876
9877 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
9878
9879 * symtab.c (find_pc_sect_line): fixed indentation.
9880
9881 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
9882
9883 * symtab.c (find_pc_sect_line): now uses binary search.
9884
9885 2018-03-19 Tom Tromey <tom@tromey.com>
9886
9887 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
9888 "IDENT" production.
9889
9890 2018-03-19 Pedro Alves <palves@redhat.com>
9891 Tom Tromey <tom@tromey.com>
9892
9893 * unittests/observable-selftests.c: New file.
9894 * common/observable.h: New file.
9895 * observable.h: New file.
9896 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
9897 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
9898 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
9899 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
9900 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
9901 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
9902 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
9903 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
9904 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
9905 python/py-breakpoint.c, python/py-finishbreakpoint.c,
9906 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
9907 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
9908 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
9909 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
9910 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
9911 tui/tui-interp.c, valops.c: Update all users.
9912 * tui/tui-hooks.c (tui_bp_created_observer)
9913 (tui_bp_deleted_observer, tui_bp_modified_observer)
9914 (tui_inferior_exit_observer, tui_before_prompt_observer)
9915 (tui_normal_stop_observer, tui_register_changed_observer):
9916 Remove.
9917 (tui_observers_token): New global.
9918 (attach_or_detach, tui_attach_detach_observers): New functions.
9919 (tui_install_hooks, tui_remove_hooks): Use
9920 tui_attach_detach_observers.
9921 * record-btrace.c (record_btrace_thread_observer): Remove.
9922 (record_btrace_thread_observer_token): New global.
9923 * observer.sh: Remove.
9924 * observer.c: Rename to observable.c.
9925 * observable.c (namespace gdb_observers): Define new objects.
9926 (observer_debug): Move into gdb_observers namespace.
9927 (struct observer, struct observer_list, xalloc_observer_list_node)
9928 (xfree_observer_list_node, generic_observer_attach)
9929 (generic_observer_detach, generic_observer_notify): Remove.
9930 (_initialize_observer): Update.
9931 Don't include observer.inc.
9932 * Makefile.in (generated_files): Remove observer.h, observer.inc.
9933 (clean mostlyclean): Likewise.
9934 (observer.h, observer.inc): Remove targets.
9935 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
9936 (COMMON_SFILES): Use observable.c, not observer.c.
9937 * .gitignore: Remove observer.h.
9938
9939 2018-03-18 Tom Tromey <tom@tromey.com>
9940
9941 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
9942 gdb::def_vector.
9943 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
9944
9945 2018-03-17 Tom Tromey <tom@tromey.com>
9946
9947 * auto-load.c (auto_load_objfile_script_1): Use std::string.
9948
9949 2018-03-17 Tom Tromey <tom@tromey.com>
9950
9951 * target.c (class scoped_target_fd): New.
9952 (target_fileio_close_cleanup): Remove.
9953 (target_fileio_read_alloc_1): Use scoped_target_fd.
9954
9955 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
9956
9957 * silent-rules.mk: New.
9958 * Makefile.in: Include silent-rules.mk
9959 (srcdir, VPATH, top_srcdir): Move up.
9960 (COMPILE): Add ECHO_CXX.
9961 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
9962 (init.c): Add ECHO_INIT_C.
9963 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
9964 (version.c): Add ECHO_GEN.
9965 (printcmd.o): Add ECHO_CXX.
9966 (target-float.o): Add ECHO_CXX.
9967 (ada-exp.o): Add ECHO_CXX.
9968 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
9969 (insight$(EXEEXT)): Add ECHO_CXXLD.
9970 * gnulib/configure.ac: Add AM_SILENT_RULES.
9971 * gnulib/aclocal.m4: Re-generate.
9972 * gnulib/configure: Re-generate.
9973 * gnulib/import/Makefile.in: Re-generate.
9974
9975 2018-03-16 Tom Tromey <tom@tromey.com>
9976
9977 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
9978 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
9979 * utils.c (do_free_section_addr_info)
9980 (make_cleanup_free_section_addr_info): Remove.
9981 * symfile.h (struct other_sections): Add constructor.
9982 (struct section_addr_info): Remove.
9983 (section_addr_info): New typedef.
9984 (struct sym_fns) <sym_offsets>: Change type of parameter.
9985 (build_section_addr_info_from_objfile)
9986 (relative_addr_info_to_section_offsets, addr_info_make_relative)
9987 (default_symfile_offsets, symbol_file_add)
9988 (symbol_file_add_from_bfd)
9989 (build_section_addr_info_from_section_table): Update.
9990 (alloc_section_addr_info, free_section_addr_info): Don't declare.
9991 * symfile.c (alloc_section_addr_info): Remove.
9992 (build_section_addr_info_from_section_table): Change return type.
9993 Update.
9994 (build_section_addr_info_from_bfd)
9995 (build_section_addr_info_from_objfile): Likewise.
9996 (free_section_addr_info): Remove.
9997 (relative_addr_info_to_section_offsets): Change type of "addrs".
9998 (addrs_section_compar): Now a std::sort comparator.
9999 (addrs_section_sort): Change return type.
10000 (addr_info_make_relative): Change type of "addrs". Update.
10001 (default_symfile_offsets, syms_from_objfile_1)
10002 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
10003 (symbol_file_add_separate): Update.
10004 (symbol_file_add): Change type of "addrs". Update.
10005 (add_symbol_file_command): Update. Remove cleanups.
10006 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
10007 cleanups.
10008 * symfile-debug.c (debug_sym_offsets): Change type of "info".
10009 * solib.c (solib_read_symbols): Update.
10010 * objfiles.c (objfile_relocate): Update. Remove cleanups.
10011 * machoread.c (macho_symfile_offsets): Update.
10012 * jit.c (jit_bfd_try_read_symtab): Update.
10013
10014 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
10015
10016 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10017 unittests/utils-selftests.c.
10018 * unittests/utils-selftests.c: New file.
10019
10020 2018-03-14 Tom Tromey <tom@tromey.com>
10021
10022 PR cli/14977:
10023 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
10024 for NULL.
10025
10026 2018-03-14 Tom Tromey <tom@tromey.com>
10027
10028 PR cli/19918:
10029 * printcmd.c (printf_pointer): Allow "-" in format.
10030
10031 2018-03-14 Tom Tromey <tom@tromey.com>
10032
10033 * printcmd.c (_initialize_printcmd): Add usage to printf.
10034
10035 2018-03-14 Yao Qi <qiyao@sourceware.org>
10036
10037 * MAINTAINERS: Update my email address.
10038
10039 2018-03-13 Tom Tromey <tom@tromey.com>
10040
10041 * machoread.c (macho_check_dsym): Change filenamep to a
10042 std::string*.
10043 (macho_symfile_read): Update.
10044 * symfile.c (load_command): Use std::string.
10045
10046 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
10047
10048 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
10049 to error message string.
10050 (riscv_register_name): Use xsnprintf instead of sprintf.
10051 (riscv_insn::fetch_instruction): Use gdb_assert instead of
10052 internal_error.
10053 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
10054 error.
10055 (riscv_push_dummy_call): Likewise.
10056
10057 2018-03-12 Tom Tromey <tom@tromey.com>
10058
10059 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
10060 Use gdb::byte_vector.
10061 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
10062
10063 2018-03-12 Yao Qi <yao.qi@linaro.org>
10064
10065 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
10066 parameter type to readable_regcache.
10067 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
10068 the declaration.
10069
10070 2018-03-11 Tom Tromey <tom@tromey.com>
10071
10072 * dwarf2read.c (struct nextfield): Add initializers.
10073 (struct nextfnfield): Remove.
10074 (struct fnfieldlist): Add initializers. Remove "length" and
10075 "head", use std::vector.
10076 (struct decl_field_list): Remove.
10077 (struct field_info): Add initializers.
10078 <fields, baseclasses>: Now std::vector.
10079 <nbaseclasses, nfnfields, typedef_field_list_count,
10080 nested_types_list_count>: Remove.
10081 (dwarf2_add_field, dwarf2_add_type_defn)
10082 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
10083 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
10084 (process_structure_scope): Update.
10085
10086 2018-03-11 Tom Tromey <tom@tromey.com>
10087
10088 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
10089 for use by std::sort.
10090 (build_type_psymtabs_1): Use std::vector.
10091
10092 2018-03-09 Eli Zaretskii <eliz@gnu.org>
10093
10094 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
10095 and LIBMPFR in the printed configuration.
10096
10097 2018-03-08 Tom Tromey <tom@tromey.com>
10098
10099 * source.c (get_filename_and_charpos): Use scoped_fd.
10100 * nto-procfs.c (procfs_open_1): Use scoped_fd.
10101 (procfs_pidlist): Likewise.
10102 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
10103 (iterate_over_mappings): Likewise.
10104
10105 2018-03-08 Tom Tromey <tom@tromey.com>
10106
10107 * infcall.c (struct call_return_meta_info)
10108 <stack_temporaries_enabled>: Remove.
10109 (get_call_return_value, call_function_by_hand_dummy): Update.
10110 * thread.c (disable_thread_stack_temporaries): Remove.
10111 (enable_thread_stack_temporaries): Remove.
10112 (thread_stack_temporaries_enabled_p): Return bool.
10113 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
10114 (get_last_thread_stack_temporary): Update.
10115 * eval.c (evaluate_subexp): Update.
10116 * gdbthread.h (class enable_thread_stack_temporaries): Now a
10117 class, not a function.
10118 (value_ptr, value_vec): Remove typedefs.
10119 (class thread_info) <stack_temporaries_enabled>: Now bool.
10120 <stack_temporaries>: Now a std::vector.
10121 (thread_stack_temporaries_enabled_p)
10122 (value_in_thread_stack_temporaries): Return bool.
10123
10124 2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
10125
10126 * remote.c (putpkt_binary): Fix omitted bytes reporting.
10127 (getpkt_or_notif_sane_1): Likewise.
10128
10129 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
10130
10131 * build-id.c (build_id_to_debug_bfd): Use std::string.
10132
10133 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
10134
10135 * build-id.c (find_separate_debug_file_by_buildid): Return
10136 std::string.
10137 * build-id.h (find_separate_debug_file_by_buildid): Return
10138 std::string.
10139 * coffread.c (coff_symfile_read): Adjust to std::string.
10140 * elfread.c (elf_symfile_read): Adjust to std::string.
10141 * symfile.c (separate_debug_file_exists): Change parameter to
10142 std::string.
10143 (find_separate_debug_file): Return std::string.
10144 (find_separate_debug_file_by_debuglink): Return std::string.
10145 * symfile.h (find_separate_debug_file_by_debuglink): Return
10146 std::string.
10147
10148 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
10149
10150 * common/xml-utils.c (xml_escape_text): Move code to...
10151 (xml_escape_text_append): ... this new function.
10152 * common/xml-utils.h (xml_escape_text_append): New declaration.
10153 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
10154 New function.
10155 (_initialize_xml_utils): register test_xml_escape_text_append as
10156 a selftest.
10157
10158 2018-03-07 Alan Hayward <alan.hayward@arm.com>
10159
10160 * defs.h: Remove MAX_REGISTER_SIZE.
10161 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
10162 asserts.
10163 * python/py-unwind.c (pyuw_sniffer): Likewise.
10164
10165 2018-03-07 Tom Tromey <tom@tromey.com>
10166
10167 * linux-tdep.c (linux_info_proc): Update.
10168 * target.h (struct target_ops) <to_fileio_readlink>: Return
10169 optional<string>.
10170 (target_fileio_readlink): Return optional<string>.
10171 * remote.c (remote_hostio_readlink): Return optional<string>.
10172 * inf-child.c (inf_child_fileio_readlink): Return
10173 optional<string>.
10174 * target.c (target_fileio_readlink): Return optional<string>.
10175
10176 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
10177
10178 * regcache.c (cooked_read_test): Add riscv to the list of
10179 architectures that have a save_reggroup.
10180
10181 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
10182
10183 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
10184 value is not a dynamic class object.
10185
10186 2018-03-06 Tom Tromey <tom@tromey.com>
10187
10188 * rust-exp.y: Formatting fixes.
10189
10190 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10191
10192 * riscv-tdep.c (riscv_register_name): Remove target description
10193 support.
10194 (riscv_gdbarch_init): Remove target description check.
10195
10196 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10197
10198 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
10199 comment.
10200 * riscv-tdep.h: Likewise.
10201
10202 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10203
10204 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
10205 (riscv_pseudo_register_write): Delete.
10206 (riscv_gdbarch_init): Remove all use of pseudo registers.
10207
10208 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10209
10210 * record-btrace.c (btrace_print_lines): Replace cleanup
10211 parameter with RAII equivalents.
10212 (btrace_insn_history): Replace cleanup with RAII equivalents.
10213 * ui-out.h (make_cleanup_ui_out_list_begin_end,
10214 make_cleanup_ui_out_tuple_begin_end): Remove.
10215 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
10216 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
10217 make_cleanup_ui_out_list_begin_end): Remove.
10218
10219 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10220
10221 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
10222 parameter types to std::vector. Use bool.
10223 (record_btrace_wait): Replace VEC(tp_t) with
10224 std::vector<thread_info *>.
10225 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
10226
10227 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10228
10229 * record-btrace.c (record_btrace_disable_callback): Remove.
10230 (struct scoped_btrace_disable): New.
10231 (record_btrace_open): Use scoped_btrace_disable.
10232
10233 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10234
10235 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
10236 reading values from registers.
10237
10238 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10239
10240 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
10241 where appropriate.
10242
10243 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10244
10245 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
10246 change parameter type. Use GDB's print functions, and use
10247 core_addr_to_string where appropriate.
10248 (riscv_push_dummy_call): Use core_addr_to_string where
10249 appropriate, update call to riscv_print_arg_location, and reindent
10250 a few lines.
10251 (riscv_return_value): Update call to riscv_print_arg_location.
10252
10253 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10254 Tim Newsome <tim@sifive.com>
10255 Albert Ou <a0u@eecs.berkeley.edu>
10256 Darius Rad <darius@bluespec.com>
10257
10258 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
10259 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
10260 (ALLDEPFILES): Add riscv-tdep.c
10261 * configure.tgt: Add riscv support.
10262 * riscv-tdep.c: New file.
10263 * riscv-tdep.h: New file.
10264 * NEWS: Mention new target.
10265 * MAINTAINERS: Add entry for riscv.
10266
10267 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10268
10269 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
10270 fields within aggregates.
10271
10272 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
10273
10274 * record-btrace.c (btrace_print_lines): Change type of flags to
10275 gdb_disassembly_flags.
10276
10277 2018-03-04 John Baldwin <jhb@FreeBSD.org>
10278
10279 * fbsd-nat.c: Include "inf-ptrace.h".
10280 (USE_SIGTRAP_SIGINFO): Conditionally define.
10281 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
10282 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
10283 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
10284 function.
10285 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
10286 Likewise.
10287 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
10288 Likewise.
10289 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
10290 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
10291 "supports_stopped_by_hw_breakpoint" target methods.
10292
10293 2018-03-04 John Baldwin <jhb@FreeBSD.org>
10294
10295 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
10296 * fbsd-nat.c (debug_fbsd_nat): New variable.
10297 (show_fbsd_nat_debug): New function.
10298 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
10299 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
10300
10301 2018-03-04 John Baldwin <jhb@FreeBSD.org>
10302
10303 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
10304 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
10305 prototype.
10306 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
10307 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
10308 method.
10309
10310 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10311
10312 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
10313 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
10314
10315 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10316
10317 * charset.c (struct charset_vector): New.
10318 (charsets): Change type to charset_vector.
10319 (find_charset_names): Adjust.
10320 (add_one): Adjust.
10321 (_initialize_charset): Adjust.
10322
10323 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10324
10325 * progspace.h (struct program_space) <deleted_solibs>: Change
10326 type to std::vector<std::string>.
10327 * progspace.c (clear_program_space_solib_cache): Adjust.
10328 * breakpoint.c (print_solib_event): Adjust.
10329 (check_status_catch_solib): Adjust.
10330 * solib.c (update_solib_list): Adjust.
10331 * ui-out.h (class ui_out) <field_string>: New overload.
10332 * ui-out.c (ui_out::field_string): New overload.
10333
10334 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10335
10336 * progspace.h (struct program_space): Add constructor and
10337 destructor, initialize fields.
10338 (add_program_space): Remove.
10339 * progspace.c (add_program_space): Rename to...
10340 (program_space::program_space): ... this.
10341 (release_program_space): Rename to...
10342 (program_space::~program_space): ... this.
10343 (delete_program_space): Use delete to delete program_space.
10344 (initialize_progspace): Use new to allocate program_space.
10345 * inferior.c (add_inferior_with_spaces): Likewise.
10346 (clone_inferior_command): Likewise.
10347 * infrun.c (follow_fork_inferior): Likewise.
10348 (handle_vfork_child_exec_or_exit): Likewise.
10349
10350 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10351
10352 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
10353 (delim_string_to_char_ptr_vec): Return std::vector of
10354 gdb::unique_xmalloc_ptr.
10355 (dirnames_to_char_ptr_vec_append): Take std::vector of
10356 gdb::unique_xmalloc_ptr.
10357 (dirnames_to_char_ptr_vec): Return std::vector of
10358 gdb::unique_xmalloc_ptr.
10359 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
10360 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
10361 (delim_string_to_char_ptr_vec): Return an std::vector of
10362 gdb::unique_xmalloc_ptr, adjust the code.
10363 (dirnames_to_char_ptr_vec_append): Take an std::vector of
10364 gdb::unique_xmalloc_ptr, adjust the code.
10365 (dirnames_to_char_ptr_vec): Return an std::vector of
10366 gdb::unique_xmalloc_ptr, adjust the code.
10367 * auto-load.c (auto_load_safe_path_vec): Change type to
10368 std::vector of gdb::unique_xmalloc_ptr.
10369 (auto_load_expand_dir_vars): Return an std::vector of
10370 gdb::unique_xmalloc_ptr, adjust the code.
10371 (auto_load_safe_path_vec_update): Adjust.
10372 (filename_is_in_auto_load_safe_path_vec): Adjust.
10373 (auto_load_objfile_script_1): Adjust.
10374 * build-id.c (build_id_to_debug_bfd): Adjust.
10375 * linux-thread-db.c (thread_db_load_search): Adjust.
10376 * source.c (add_path): Adjust.
10377 (openp): Adjust.
10378 * symfile.c (find_separate_debug_file): Adjust.
10379 * utils.c (do_free_char_ptr_vec): Remove.
10380 (make_cleanup_free_char_ptr_vec): Remove.
10381
10382 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
10383
10384 PR gdb/22907
10385 * common/pathstuff.c: Conditionally include "<windows.h>".
10386
10387 2018-03-01 Georg Sauthoff <mail@georg.so>
10388
10389 PR gdb/22888
10390 * gcore.in: Quote variables and switch interpreter to bash.
10391
10392 2018-03-01 Tom Tromey <tom@tromey.com>
10393
10394 * dwarf2read.c (alloc_discriminant_info): Fix default_index
10395 assertion. Add assertion for discriminant_index.
10396 (quirk_rust_enum): Use correct base type name in univariant case.
10397
10398 2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
10399
10400 * record.c (get_call_history_modifiers): Return a
10401 record_print_flags.
10402 (cmd_record_call_history): Adjust.
10403 * record-btrace.c (record_btrace_call_history): Adjust.
10404 (record_btrace_call_history_range): Adjust.
10405 (record_btrace_call_history_from): Adjust.
10406 * target-debug.h (target_debug_print_record_print_flags): New.
10407 * target-delegates.c: Re-generate.
10408 * target.c (target_call_history): Change flags type.
10409 (target_call_history_from): Likewise.
10410 (target_call_history_range): Likewise.
10411 * target.h (struct target_ops) <target_call_history>: Likewise.
10412 (target_call_history_from): Likewise.
10413 (target_call_history_range): Likewise.
10414
10415 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
10416 Simon Marchi <simon.marchi@polymtl.ca>
10417
10418 * common/common-utils.c: Include "sys/stat.h".
10419 (is_regular_file): Move here from "source.c"; change return
10420 type to "bool".
10421 * common/common-utils.h (is_regular_file): New prototype.
10422 * common/pathstuff.c (contains_dir_separator): New function.
10423 * common/pathstuff.h (contains_dir_separator): New prototype.
10424 * source.c: Don't include "sys/stat.h".
10425 (is_regular_file): Move to "common/common-utils.c".
10426
10427 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
10428
10429 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
10430 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
10431 * auto-load.c: Include "common/pathstuff.h".
10432 * common/common-def.h (current_directory): Move here.
10433 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
10434 function.
10435 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
10436 prototype.
10437 * common/pathstuff.c: New file.
10438 * common/pathstuff.h: New file.
10439 * compile/compile.c: Include "common/pathstuff.h".
10440 * defs.h (current_directory): Move to "common/common-defs.h".
10441 * dwarf2read.c: Include "common/pathstuff.h".
10442 * exec.c: Likewise.
10443 * guile/scm-safe-call.c: Likewise.
10444 * linux-thread-db.c: Likewise.
10445 * main.c: Likewise.
10446 * nto-tdep.c: Likewise.
10447 * objfiles.c: Likewise.
10448 * source.c: Likewise.
10449 * symtab.c: Likewise.
10450 * utils.c: Include "common/pathstuff.h".
10451 (gdb_realpath): Move to "common/pathstuff.c".
10452 (gdb_realpath_keepfile): Likewise.
10453 (gdb_abspath): Likewise.
10454 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
10455 (gdb_realpath_keepfile): Likewise.
10456 (gdb_abspath): Likewise.
10457
10458 2018-02-28 John Baldwin <jhb@FreeBSD.org>
10459
10460 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
10461 wildcard process pid for super_resume for kernels with a
10462 specific bug.
10463
10464 2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
10465
10466 * compile/compile.c (get_args): Add additional comments
10467 explaining function.
10468
10469 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
10470 Tom Tromey <tom@tromey.com>
10471
10472 * target.h (memory_write_request_s): Remove typedef. Don't define
10473 VEC.
10474 (target_write_memory_blocks): Change argument to std::vector.
10475 (struct memory_write_request): Add constructor.
10476 * target-memory.c (compare_block_starting_address): Return bool.
10477 Change argument types.
10478 (claim_memory): Change arguments to use std::vector.
10479 (split_regular_and_flash_blocks, blocks_to_erase)
10480 (compute_garbled_blocks): Likewise.
10481 (cleanup_request_data, cleanup_write_requests_vector): Remove.
10482 (target_write_memory_blocks): Change argument to std::vector.
10483 * symfile.c (struct load_section_data): Add constructor and
10484 destructor. Use std::vector for "requests".
10485 (struct load_progress_data): Add initializers.
10486 (load_section_callback): Update. Use "new".
10487 (clear_memory_write_data): Remove.
10488 (generic_load): Update.
10489
10490 2018-02-27 Alan Hayward <alan.hayward@arm.com>
10491
10492 * arch/aarch64.h: Use common/tdesc.h.
10493
10494 2018-02-26 Maciej W. Rozycki <macro@mips.com>
10495
10496 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
10497 architecture with a 64-bit ABI.
10498
10499 2018-02-26 Maciej W. Rozycki <macro@mips.com>
10500
10501 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
10502 ahead of target description loading.
10503
10504 2018-02-26 Tom Tromey <tom@tromey.com>
10505
10506 * stack.c (backtrace_command_1): Update.
10507 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
10508 of "flags".
10509 * python/py-framefilter.c (py_print_frame)
10510 (gdbpy_apply_frame_filter): Change type of "flags".
10511 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
10512 of "flags".
10513 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
10514 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
10515 * extension.h (enum frame_filter_flag): Rename from
10516 frame_filter_flags.
10517 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
10518 (apply_ext_lang_frame_filter): Change type of "flags".
10519 * extension.c (apply_ext_lang_frame_filter): Change type of
10520 "flags".
10521 * extension-priv.h (struct extension_language_ops)
10522 <apply_frame_filter>: Change type of "flags".
10523
10524 2018-02-26 Tom Tromey <tom@tromey.com>
10525
10526 PR python/16497:
10527 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
10528 off-by-one in py_end computation.
10529 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
10530 PRINT_MORE_FRAMES.
10531 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
10532 constant.
10533
10534 2018-02-26 Tom Tromey <tom@tromey.com>
10535
10536 * dwarf2read.c (struct variant_field): New.
10537 (struct nextfield) <variant>: New field.
10538 (dwarf2_add_field): Handle DW_TAG_variant_part.
10539 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
10540 discriminated union.
10541 (read_structure_type): Handle DW_TAG_variant_part.
10542 (handle_struct_member_die): New function, extracted from
10543 process_structure_scope. Handle DW_TAG_variant.
10544 (process_structure_scope): Handle discriminated unions. Call
10545 handle_struct_member_die.
10546
10547 2018-02-26 Tom Tromey <tom@tromey.com>
10548
10549 * rust-lang.h (rust_last_path_segment): Declare.
10550 * rust-lang.c (rust_last_path_segment): Now public. Change
10551 contract.
10552 (struct disr_info): Remove.
10553 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
10554 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
10555 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
10556 (rust_enum_p, rust_enum_variant): New function.
10557 (rust_underscore_fields): Remove "offset" parameter.
10558 (rust_print_enum): New function.
10559 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
10560 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
10561 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
10562 enums.
10563 (rust_internal_print_type): New function, from rust_print_type.
10564 Remove enum code.
10565 (rust_print_type): Call rust_internal_print_type.
10566 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
10567 Update enum handling.
10568 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
10569 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
10570 (rust_union_quirks): New functions.
10571 (process_full_comp_unit, process_full_type_unit): Call
10572 rust_union_quirks.
10573 (process_structure_scope): Update rust_unions if necessary.
10574
10575 2018-02-26 Tom Tromey <tom@tromey.com>
10576
10577 * value.h (value_union_variant): Declare.
10578 * valops.c (value_union_variant): New function.
10579 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
10580 (struct discriminant_info): New.
10581 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
10582 enumerator.
10583 (struct main_type) <flag_discriminated_union>: New field.
10584
10585 2018-02-26 Tom Tromey <tom@tromey.com>
10586
10587 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10588 unittests/unpack-selftests.c.
10589 * unittests/unpack-selftests.c: New file.
10590 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
10591
10592 2018-02-26 Yao Qi <yao.qi@linaro.org>
10593
10594 * dwarf2read.c (struct partial_die_info) <read>: New method.
10595 (read_partial_die): Remove the declaration.
10596 (load_partial_dies): Update.
10597 (partial_die_info::partial_die_info):
10598 (read_partial_die): Change it to partial_die_info::read.
10599
10600 2018-02-26 Yao Qi <yao.qi@linaro.org>
10601
10602 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
10603 (fixup_partial_die): Remove declaration.
10604 (scan_partial_symbols): Update.
10605 (partial_die_parent_scope): Likewise.
10606 (partial_die_full_name): Likewise.
10607 (fixup_partial_die): Change it to partial_die_info::fixup.
10608
10609 2018-02-26 Yao Qi <yao.qi@linaro.org>
10610
10611 * dwarf2read.c (read_partial_die): Update the declaration.
10612 (load_partial_dies): Caller update.
10613 (read_partial_die): Remove one argument abbrev_len.
10614
10615 2018-02-26 Yao Qi <yao.qi@linaro.org>
10616
10617 * dwarf2read.c (struct partial_die_info): Add ctor, delete
10618 assignment operator.
10619 (load_partial_dies): Use ctor and copy ctor.
10620 (read_partial_die): Update.
10621 (dwarf2_cu::find_partial_die): Use ctor.
10622
10623 2018-02-26 Yao Qi <yao.qi@linaro.org>
10624
10625 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
10626 (find_partial_die_in_comp_unit): Change it to
10627 dwarf2_cu::find_partial_die.
10628 (find_partial_die): Update.
10629
10630 2018-02-26 Yao Qi <yao.qi@linaro.org>
10631
10632 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
10633 is NULL.
10634
10635 2018-02-26 Yao Qi <yao.qi@linaro.org>
10636
10637 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
10638
10639 2018-02-26 Alan Hayward <alan.hayward@arm.com>
10640
10641 * arch/amd64.h: Use common/tdesc.h.
10642 * arch/i386.c: Likewise.
10643 * arch/i386.h: Likewise.
10644 * arch/tic6x.c: Likewise.
10645 * arch/tdesc.h: Move file from here...
10646 * common/tdesc.h: ...to here.
10647 * features/aarch64-core.c: Regenerate.
10648 * features/aarch64-fpu.c: Regenerate.
10649 * features/i386/32bit-avx.c: Regenerate.
10650 * features/i386/32bit-avx512.c: Regenerate.
10651 * features/i386/32bit-core.c: Regenerate.
10652 * features/i386/32bit-linux.c: Regenerate.
10653 * features/i386/32bit-mpx.c: Regenerate.
10654 * features/i386/32bit-pkeys.c: Regenerate.
10655 * features/i386/32bit-sse.c: Regenerate.
10656 * features/i386/64bit-avx.c: Regenerate.
10657 * features/i386/64bit-avx512.c: Regenerate.
10658 * features/i386/64bit-core.c: Regenerate.
10659 * features/i386/64bit-linux.c: Regenerate.
10660 * features/i386/64bit-mpx.c: Regenerate.
10661 * features/i386/64bit-pkeys.c: Regenerate.
10662 * features/i386/64bit-segments.c: Regenerate.
10663 * features/i386/64bit-sse.c: Regenerate.
10664 * features/i386/x32-core.c: Regenerate.
10665 * features/tic6x-c6xp.c: Regenerate.
10666 * features/tic6x-core.c: Regenerate.
10667 * features/tic6x-gp.c: Regenerate.
10668 * target-descriptions.c: Use common/tdesc.h.
10669 * target-descriptions.h: Likewise.
10670
10671 2018-02-24 Tom Tromey <tom@tromey.com>
10672
10673 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
10674 (try_thread_db_load_from_dir, thread_db_load_search): Use
10675 std::string.
10676 (info_auto_load_libthread_db_compare): Return bool. Change
10677 argument types.
10678 (info_auto_load_libthread_db): Use std::vector, std::string.
10679 Remove cleanups.
10680
10681 2018-02-24 Tom Tromey <tom@tromey.com>
10682
10683 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
10684 std::string.
10685 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
10686 std::string*.
10687 * gdbarch.c: Rebuild.
10688 * gdbarch.h: Rebuild.
10689 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
10690 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
10691 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
10692 std::string*.
10693
10694 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
10695
10696 * gdbtypes.h (sect_offset): Change type to uint64_t.
10697 (sect_offset_str): New function.
10698 * dwarf2read.c (create_addrmap_from_aranges): Use
10699 sect_offset_str.
10700 (error_check_comp_unit_head): Likewise.
10701 (create_debug_type_hash_table): Likewise.
10702 (read_cutu_die_from_dwo): Likewise.
10703 (init_cutu_and_read_dies): Likewise.
10704 (init_cutu_and_read_dies_no_follow): Likewise.
10705 (process_psymtab_comp_unit_reader): Likewise.
10706 (partial_die_parent_scope): Likewise.
10707 (peek_die_abbrev): Likewise.
10708 (process_queue): Likewise.
10709 (dwarf2_physname): Likewise.
10710 (read_namespace_alias): Likewise.
10711 (read_import_statement): Likewise.
10712 (create_dwo_cu_reader): Likewise.
10713 (create_cus_hash_table): Likewise.
10714 (lookup_dwo_cutu): Likewise.
10715 (inherit_abstract_dies): Likewise.
10716 (read_func_scope): Likewise.
10717 (read_call_site_scope): Likewise.
10718 (dwarf2_add_member_fn): Likewise.
10719 (read_common_block): Likewise.
10720 (read_module_type): Likewise.
10721 (read_typedef): Likewise.
10722 (read_subrange_type): Likewise.
10723 (load_partial_dies): Likewise.
10724 (read_partial_die): Likewise.
10725 (find_partial_die): Likewise.
10726 (read_str_index): Likewise.
10727 (dwarf2_string_attr): Likewise.
10728 (build_error_marker_type): Likewise.
10729 (lookup_die_type): Likewise.
10730 (dump_die_shallow): Likewise.
10731 (follow_die_ref): Likewise.
10732 (dwarf2_fetch_die_loc_sect_off): Likewise.
10733 (dwarf2_fetch_constant_bytes): Likewise.
10734 (follow_die_sig): Likewise.
10735 (get_signatured_type): Likewise.
10736 (get_DW_AT_signature_type): Likewise.
10737 (dwarf2_find_containing_comp_unit): Likewise.
10738 (set_die_type): Likewise.
10739
10740 2018-02-21 John Baldwin <jhb@FreeBSD.org>
10741
10742 * arch/aarch64.c: Include "common-defs.h".
10743 * arch/amd64.c: Likewise.
10744 * arch/i386.c: Likewise.
10745
10746 2018-02-21 Tom Tromey <tom@tromey.com>
10747
10748 * value.h: (extract_field_op): Update.
10749 * eval.c (extract_field_op): Return a const char *.
10750 * expression.h (parse_expression_for_completion): Update.
10751 * completer.c (complete_expression): Update.
10752 (add_struct_fields): Make fieldname const.
10753 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
10754 (mark_completion_tag, parse_exp_in_context_1): Update.
10755 (parse_expression_for_completion): Change "name" to
10756 unique_xmalloc_ptr*.
10757
10758 2018-02-21 Tom Tromey <tom@tromey.com>
10759
10760 * infcall.c (call_function_by_hand_dummy): Use std::vector.
10761
10762 2018-02-21 Yao Qi <yao.qi@linaro.org>
10763
10764 * avr-tdep.c (avr_read_pc): Change parameter type to
10765 readable_regcache.
10766 * gdbarch.sh (read_pc): Likewise.
10767 * gdbarch.c: Re-generated.
10768 * gdbarch.h: Re-generated.
10769 * hppa-tdep.c (hppa_read_pc): Change parameter type to
10770 readable_regcache.
10771 * ia64-tdep.c (ia64_read_pc): Likewise.
10772 * mips-tdep.c (mips_read_pc): Likewise.
10773 * spu-tdep.c (spu_read_pc): Likewise.
10774
10775 2018-02-21 Yao Qi <yao.qi@linaro.org>
10776
10777 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
10778 * regcache-dump.c: New file.
10779 * regcache.c: Move register_dump to regcache-dump.c.
10780 (maintenance_print_registers): Likewise.
10781 (maintenance_print_raw_registers): Likewise.
10782 (maintenance_print_cooked_registers): Likewise.
10783 (maintenance_print_register_groups): Likewise.
10784 (maintenance_print_remote_registers): Likewise.
10785 (_initialize_regcache): Likewise.
10786 * regcache.h (register_dump): Moved from regcache.c.
10787
10788 2018-02-21 Yao Qi <yao.qi@linaro.org>
10789
10790 * regcache.c (regcache::regcache): Update.
10791 (regcache::invalidate): Move it to detached_regcache::invalidate.
10792 (get_thread_arch_aspace_regcache): Update.
10793 (regcache::raw_update): Update.
10794 (regcache::cooked_read): Remove some code.
10795 (regcache::cooked_read_value): Likewise.
10796 (regcache::raw_write): Remove assert on m_readonly_p.
10797 (regcache::raw_supply_integer): Move it to
10798 detached_regcache::raw_supply_integer.
10799 (regcache::raw_supply_zeroed): Likewise.
10800 * regcache.h (detached_regcache) <raw_supply_integer>: New
10801 declaration.
10802 <raw_supply_zeroed, invalidate>: Likewise.
10803 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
10804 <invalidate>: Likewise.
10805 <m_readonly_p>: Removed.
10806
10807 2018-02-21 Yao Qi <yao.qi@linaro.org>
10808
10809 * infcmd.c (get_return_value): Let stop_regs point to
10810 get_current_regcache.
10811 * regcache.c (regcache::regcache): Remove.
10812 (register_dump_reg_buffer): New class.
10813 (regcache_print): Adjust.
10814 * regcache.h (regcache): Remove constructors.
10815
10816 2018-02-21 Yao Qi <yao.qi@linaro.org>
10817
10818 * regcache.c (class register_dump): New class.
10819 (register_dump_regcache, register_dump_none): New class.
10820 (register_dump_remote, register_dump_groups): New class.
10821 (regcache_print): Update.
10822 * regcache.h (regcache_dump_what): Move it to regcache.c.
10823 (regcache) <dump>: Remove.
10824
10825 2018-02-21 Yao Qi <yao.qi@linaro.org>
10826
10827 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
10828 reg_buffer_rw *.
10829 (jit_unwind_reg_set_impl): Call raw_supply.
10830 (jit_frame_sniffer): Use reg_buffer_rw.
10831 * record-full.c (record_full_core_regbuf): Change its type.
10832 (record_full_core_open_1): Use reg_buffer_rw.
10833 (record_full_close): Likewise.
10834 (record_full_core_fetch_registers): Use regcache->raw_supply.
10835 (record_full_core_store_registers): Likewise.
10836 * regcache.c (regcache::get_register_status): Move it to
10837 reg_buffer.
10838 (regcache_raw_set_cached_value): Remove.
10839 (regcache::raw_set_cached_value): Remove.
10840 (regcache::raw_write): Call raw_supply.
10841 (regcache::raw_supply): Move it to reg_buffer_rw.
10842 * regcache.h (regcache_raw_set_cached_value): Remove.
10843 (reg_buffer_rw): New class.
10844
10845 2018-02-21 Yao Qi <yao.qi@linaro.org>
10846
10847 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
10848 readonly_detached_regcache.
10849 (dummy_frame_prev_register): Use regcache->cooked_read.
10850 * frame.c (frame_save_as_regcache): Change return type.
10851 (frame_pop): Update.
10852 * frame.h (frame_save_as_regcache): Update declaration.
10853 * inferior.h (get_infcall_suspend_state_regcache): Update
10854 declaration.
10855 * infrun.c (infcall_suspend_state) <registers>: use
10856 readonly_detached_regcache.
10857 (save_infcall_suspend_state): Don't use regcache_dup.
10858 (get_infcall_suspend_state_regcache): Change return type.
10859 * linux-fork.c (struct fork_info) <savedregs>: Change to
10860 readonly_detached_regcache.
10861 <pc>: New field.
10862 (fork_save_infrun_state): Don't use regcache_dup.
10863 (info_checkpoints_command): Adjust.
10864 * mi/mi-main.c (register_changed_p): Update declaration.
10865 (mi_cmd_data_list_changed_registers): Use
10866 readonly_detached_regcache.
10867 (register_changed_p): Change parameter type to
10868 readonly_detached_regcache.
10869 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
10870 readonly_detached_regcache.
10871 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
10872 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
10873 New.
10874 (regcache::save): Move it to reg_buffer.
10875 (regcache::restore): Change parameter type.
10876 (regcache_dup): Remove.
10877 * regcache.h (reg_buffer) <save>: New method.
10878 (readonly_detached_regcache): New class.
10879 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
10880 readonly_detached_regcache.
10881 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
10882
10883 2018-02-21 Yao Qi <yao.qi@linaro.org>
10884
10885 * frame.c (frame_save_as_regcache): Use regcache method save.
10886 (frame_pop): Use regcache method restore.
10887 * infrun.c (restore_infcall_suspend_state): Likewise.
10888 * linux-fork.c (fork_load_infrun_state): Likewise.
10889 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
10890 save.
10891 * regcache.c (regcache_save): Remove.
10892 (regcache::restore): More asserts.
10893 (regcache_cpy): Remove.
10894 * regcache.h (regcache_save): Remove the declaration.
10895 (regcache::restore): Move from private to public.
10896 Remove the friend declaration of regcache_cpy.
10897 (regcache_cpy): Remove declaration.
10898
10899 2018-02-21 Yao Qi <yao.qi@linaro.org>
10900
10901 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
10902 parameter type to 'readable_regcache *'.
10903 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
10904 * arm-tdep.c (arm_neon_quad_read): Likewise.
10905 (arm_pseudo_read): Likewise.
10906 * avr-tdep.c (avr_pseudo_register_read): Likewise.
10907 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
10908 * frv-tdep.c (frv_pseudo_register_read): Likewise.
10909 * gdbarch.c: Re-generated.
10910 * gdbarch.h: Re-generated.
10911 * gdbarch.sh (pseudo_register_read): Change parameter type to
10912 'readable_regcache *'.
10913 (pseudo_register_read_value): Likewise.
10914 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
10915 (h8300_pseudo_register_read): Likewise.
10916 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
10917 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
10918 (i386_pseudo_register_read_into_value): Likewise.
10919 (i386_pseudo_register_read_value): Likewise.
10920 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
10921 declaration.
10922 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
10923 * m32c-tdep.c (m32c_raw_read): Likewise.
10924 (m32c_read_flg): Likewise.
10925 (m32c_banked_register): Likewise.
10926 (m32c_banked_read): Likewise.
10927 (m32c_sb_read): Likewise.
10928 (m32c_part_read): Likewise.
10929 (m32c_cat_read): Likewise.
10930 (m32c_r3r2r1r0_read): Likewise.
10931 (m32c_pseudo_register_read): Likewise.
10932 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
10933 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
10934 (mep_pseudo_cr64_read): Likewise.
10935 (mep_pseudo_register_read): Likewise.
10936 * mips-tdep.c (mips_pseudo_register_read): Likewise.
10937 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
10938 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
10939 * regcache.c (regcache::raw_read): Move it to readable_regcache.
10940 (regcache::cooked_read): Likewise.
10941 (regcache::cooked_read_value): Likewise.
10942 (regcache_cooked_read_signed):
10943 (regcache::cooked_read): Likewise.
10944 * regcache.h (readable_regcache): New class.
10945 (regcache): Inherit readable_regcache. Move some methods to
10946 readable_regcache.
10947 * rl78-tdep.c (rl78_pseudo_register_read): Change
10948 parameter type to 'readable_regcache *'.
10949 * rs6000-tdep.c (do_regcache_raw_read): Remove.
10950 (e500_pseudo_register_read): Change parameter type to
10951 'readable_regcache *'.
10952 (dfp_pseudo_register_read): Likewise.
10953 (vsx_pseudo_register_read): Likewise.
10954 (efpr_pseudo_register_read): Likewise.
10955 * s390-tdep.c (s390_pseudo_register_read): Likewise.
10956 * sh-tdep.c (sh_pseudo_register_read): Likewise.
10957 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
10958 (sh64_pseudo_register_read): Likewise.
10959 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
10960 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
10961 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
10962 (spu_pseudo_register_read): Likewise.
10963 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
10964 (xtensa_pseudo_register_read): Likewise.
10965
10966 2018-02-21 Yao Qi <yao.qi@linaro.org>
10967
10968 * regcache.c (regcache::regcache): Call reg_buffer ctor.
10969 (regcache::arch): Move it to reg_buffer::arch.
10970 (regcache::register_buffer): Likewise.
10971 (regcache::assert_regnum): Likewise.
10972 (regcache::num_raw_registers): Likewise.
10973 * regcache.h (reg_buffer): New class.
10974 (regcache): Inherit reg_buffer.
10975
10976 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
10977
10978 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
10979 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
10980
10981 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
10982
10983 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
10984
10985 2018-02-19 Alan Hayward <alan.hayward@arm.com>
10986
10987 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
10988 (SFILES): Remove common/*.c files.
10989 (COMMON_OBS): Remove some *.o files built from common/*.c files.
10990 * common/common.host: Add common reference.
10991 * configure.ac: Likewise.
10992 * configure: Regenerate.
10993
10994 2018-02-16 Yao Qi <yao.qi@linaro.org>
10995
10996 * block.c (block_namespace_info): Inherit allocate_on_obstack.
10997 (block_initialize_namespace): Use new.
10998 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
10999 (dwarf2_free_objfile): Use delete.
11000 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
11001 (copy_type_recursive): Use new.
11002 * gdb_obstack.h (allocate_on_obstack): New.
11003
11004 2018-02-15 Yao Qi <yao.qi@linaro.org>
11005
11006 PR gdb/22849
11007 * inferior.c (exit_inferior_1): Reset inf->control.
11008
11009 2018-02-15 Joel Brobecker <brobecker@adacore.com>
11010
11011 * ada-lang.c (ada_to_fixed_value_create): Delete advance
11012 declaration.
11013
11014 2018-02-14 Pedro Alves <palves@redhat.com>
11015
11016 * frame-unwind.c (frame_unwind_try_unwinder): Always call
11017 frame_cleanup_after_sniffer on exception.
11018
11019 2018-02-14 Tom Tromey <tom@tromey.com>
11020
11021 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
11022 const.
11023 (solib_bfd_open): Make pathname const.
11024 * solib.c (solib_bfd_open): Make pathname const.
11025 * solib-spu.c (spu_bfd_fopen): Make name const.
11026 (spu_bfd_open): Make pathname const.
11027 * solib-darwin.c (darwin_bfd_open): Make pathname const.
11028 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
11029
11030 2018-02-14 Tom Tromey <tom@tromey.com>
11031
11032 * symfile.c (symfile_bfd_open): Update.
11033 * source.h (openp, source_full_path_of, find_and_open_source):
11034 Change argument type to unique_xmalloc_ptr.
11035 * source.c (openp): Take a unique_xmalloc_ptr.
11036 (source_full_path_of, find_and_open_source): Likewise.
11037 (open_source_file, symtab_to_fullname): Update.
11038 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
11039 unique_xmalloc_ptr.
11040 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
11041 (exec_file_find): Update.
11042 * psymtab.c (psymtab_to_fullname): Update.
11043 * nto-tdep.h (nto_find_and_open_solib): Update.
11044 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
11045 unique_xmalloc_ptr.
11046 * exec.c (exec_file_attach): Update.
11047 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
11048 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
11049
11050 2018-02-14 Tom Tromey <tom@tromey.com>
11051
11052 * solib.c: Include source.h.
11053 * nto-tdep.c: Include source.h.
11054 * mi/mi-cmd-env.c: Include source.h.
11055 * infcmd.c: Include source.h.
11056 * exec.c: Include source.h.
11057 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
11058 (add_path, directory_switch, source_path, init_source_path): Move
11059 declarations...
11060 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
11061 (add_path, directory_switch, source_path, init_source_path):
11062 ...here.
11063
11064 2018-02-14 Tom Tromey <tom@tromey.com>
11065
11066 * solist.h (exec_file_find, solib_find): Return
11067 unique_xmalloc_ptr.
11068 (solib_bfd_fopen): Take a const char *.
11069 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
11070 (exec_file_find, solib_find): Likewise.
11071 (solib_bfd_fopen): Do not take ownership of "pathname".
11072 (solib_bfd_open): Use unique_xmalloc_ptr.
11073 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
11074 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
11075 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
11076 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
11077
11078 2018-02-14 Joel Brobecker <brobecker@adacore.com>
11079
11080 * ada-lang.c (name_match_type_from_name): Remove reference to
11081 ada_name_for_lookup in function's documentation.
11082 * ada-lang.h (ada_name_for_lookup): Delete declaration.
11083
11084 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
11085
11086 * defs.h (enum openp_flags): New enum.
11087 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
11088 Move to enum openp_flags.
11089 (openp_flags): New enum flags.
11090 (openp): Change parameter type to openp_flags.
11091 * source.c (openp): Change parameter type to openp_flags.
11092 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
11093 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
11094
11095 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
11096
11097 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
11098 per-command.
11099
11100 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
11101
11102 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
11103 into...
11104 (class dwarf2_queue_guard): ...the destructor of this new class.
11105 (dw2_do_instantiate_symtab): Create instance of the new class
11106 dwarf2_queue_guard, remove cleanup.
11107
11108 2018-02-09 Tom Tromey <tom@tromey.com>
11109
11110 * source.c (find_source_lines): Don't reference past the end of
11111 the vector.
11112
11113 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11114
11115 * remote.c (remote_btrace_maybe_reopen): Change error message.
11116 * btrace.c (btrace_enable): Likewise.
11117 (parse_xml_btrace): Likewise.
11118 (parse_xml_btrace_conf): Likewise.
11119
11120 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11121
11122 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
11123 (linux_enable_pt, linux_enable_bts): Call
11124 diagnose_perf_event_open_fail.
11125
11126 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11127
11128 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
11129 Remove parameter and change return type. Update callers. Move it.
11130 (linux_enable_bts, linux_enable_pt): Improve error message.
11131 (linux_enable_pt): Remove zero buffer size check.
11132 (linux_enable_btrace): Improve error messages. Remove NULL return
11133 check.
11134
11135 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11136
11137 * btrace.c (btrace_enable): Remove target_supports_btrace call.
11138 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
11139 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
11140 (linux_supports_pt, linux_supports_btrace): Remove.
11141 (linux_enable_bts): Call cpu_supports_bts.
11142 * nat/linux-btrace.h (linux_supports_btrace): Remove.
11143 * remote.c (remote_supports_btrace): Remove.
11144 (init_remote_ops): Remove remote_supports_btrace.
11145 * target-delegates.c: Regenerated.
11146 * target.c (target_supports_btrace): Remove.
11147 * target.h (target_ops) <to_supports_btrace>: Remove
11148 (target_supports_btrace): Remove.
11149 * x86-linux-nat.c (x86_linux_create_target): Remove
11150 linux_supports_btrace.
11151
11152 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11153
11154 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
11155 btrace failed.
11156 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
11157 exception and use message in own exception.
11158
11159 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11160
11161 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
11162 (perf_event_pt_event_type): Use gdb_file_up.
11163 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
11164 scoped_fd, and scoped_mmap.
11165
11166 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11167
11168 * common/scoped_mmap.h: New.
11169 * unittests/scoped_mmap-selftest.c: New.
11170 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11171 unittests/scoped_mmap-selftest.c.
11172
11173 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11174
11175 * common/scoped_fd.h: New.
11176 * unittests/scoped_fd-selftest.c: New.
11177 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11178 unittests/scoped_fd-selftest.c.
11179
11180 2018-02-09 Tom Tromey <tom@tromey.com>
11181
11182 * auto-load.c (auto_load_section_scripts): Use
11183 gdb::unique_xmalloc_ptr.
11184
11185 2018-02-09 Tom Tromey <tom@tromey.com>
11186
11187 * auto-load.c (execute_script_contents): Use std::string.
11188
11189 2018-02-09 Joel Brobecker <brobecker@adacore.com>
11190
11191 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
11192 Python function, rather than a new command.
11193
11194 2018-02-08 Tom Tromey <tom@tromey.com>
11195
11196 * solib.c (solib_find_1): Use std::string.
11197 (solib_bfd_fopen): Use unique_xmalloc_ptr.
11198
11199 2018-02-08 Tom Tromey <tom@tromey.com>
11200
11201 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
11202
11203 2018-02-08 Tom Tromey <tom@tromey.com>
11204
11205 * source.c (find_source_lines): Use gdb::def_vector.
11206
11207 2018-02-08 Tom Tromey <tom@tromey.com>
11208
11209 * macrocmd.c (struct temporary_macro_definition): New.
11210 (macro_define_command): Use temporary_macro_definition. Remove
11211 cleanups.
11212 (free_macro_definition_ptr): Remove.
11213
11214 2018-02-08 Tom Tromey <tom@tromey.com>
11215
11216 * macroexp.c (maybe_expand): Use std::string.
11217
11218 2018-02-08 Tom Tromey <tom@tromey.com>
11219
11220 * macroexp.c (struct macro_buffer): Add initializers for some
11221 members.
11222 (init_buffer, init_shared_buffer, free_buffer)
11223 (free_buffer_return_text): Remove.
11224 (macro_buffer): New constructors.
11225 (~macro_buffer): New destructor.
11226 (macro_buffer::set_shared): New method.
11227 (macro_buffer::resize_buffer, macro_buffer::appendc)
11228 (macro_buffer::appendmem): Now methods, not free functions.
11229 (set_token, append_tokens_without_splicing, stringify)
11230 (macro_stringify): Update.
11231 (gather_arguments): Change return type. Remove argc_p argument,
11232 add args_ptr argument. Use std::vector.
11233 (substitute_args): Remove argc argument. Accept std::vector.
11234 (expand): Update. Use std::vector.
11235 (scan, macro_expand, macro_expand_next): Update.
11236
11237 2018-02-08 Tom Tromey <tom@tromey.com>
11238
11239 * symtab.c (default_collect_symbol_completion_matches_break_on):
11240 Use unique_xmalloc_ptr.
11241 * macroscope.h: (sal_macro_scope, user_macro_scope)
11242 (default_macro_scope): Return unique_xmalloc_ptr.
11243 * macroscope.c (sal_macro_scope, user_macro_scope)
11244 (default_macro_scope): Return unique_xmalloc_ptr.
11245 * macroexp.h (macro_expand, macro_expand_once): Return
11246 unique_xmalloc_ptr.
11247 * macroexp.c (macro_expand, macro_expand_once): Return
11248 unique_xmalloc_ptr.
11249 * macrocmd.c (macro_expand_command, macro_expand_once_command)
11250 (info_macro_command, info_macros_command): Use
11251 unique_xmalloc_ptr.
11252 * compile/compile-c-support.c (write_macro_definitions): Use
11253 unique_xmalloc_ptr.
11254 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
11255
11256 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
11257
11258 * value.c (value_static_field): Assign field type instead of
11259 containing type when returning an optimized out value.
11260
11261 2018-02-06 Yao Qi <yao.qi@linaro.org>
11262
11263 * ft32-tdep.c (ft32_read_pc): Remove.
11264 (ft32_write_pc): Remove.
11265 (ft32_gdbarch_init): Update.
11266 * m32r-tdep.c (m32r_read_pc): Remove.
11267 (m32r_gdbarch_init): Update.
11268 * mep-tdep.c (mep_read_pc): Remove.
11269 (mep_gdbarch_init): Update.
11270 * microblaze-tdep.c (microblaze_write_pc): Remove.
11271 (microblaze_gdbarch_init): Update.
11272 * mn10300-tdep.c (mn10300_read_pc): Remove.
11273 (mn10300_write_pc): Remove.
11274 (mn10300_gdbarch_init): Update.
11275 * moxie-tdep.c (moxie_read_pc): Remove.
11276 (moxie_write_pc): Remove.
11277 (moxie_gdbarch_init): Update.
11278
11279 2018-02-06 Yao Qi <yao.qi@linaro.org>
11280
11281 * expprint.c (print_subexp_standard): Handle
11282 OP_F77_UNDETERMINED_ARGLIST.
11283 (dump_subexp_body_standard): Likewise.
11284
11285 2018-02-05 Alan Hayward <alan.hayward@arm.com>
11286
11287 * target-descriptions.c (tdesc_element_visitor) Add empty
11288 implementations.
11289 (tdesc_type): Move make_gdb_type from here.
11290 (tdesc_type_builtin): Likewise.
11291 (tdesc_type_vector): Likewise.
11292 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
11293 (make_gdb_type_struct): Move from tdesc_type_with_fields.
11294 (make_gdb_type_union): Likewise.
11295 (make_gdb_type_flags): Likewise.
11296 (make_gdb_type_enum): Likewise.
11297 (make_gdb_type): New function.
11298 (tdesc_register_type): Use static make_gdb_type.
11299
11300 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
11301
11302 * infcmd.c (default_print_one_register_info): Align natural-format
11303 column values consistently one under another.
11304 (pad_to_column): New function.
11305
11306 2018-02-05 Joel Brobecker <brobecker@adacore.com>
11307
11308 * dwarf2read.c (dwarf2_physname): Move commment.
11309
11310 2018-02-01 Leszek Swirski <leszeks@google.com>
11311
11312 * varobj.c (varobj_formatted_print_options): Allow recursive
11313 pretty printing if pretty printing is enabled.
11314
11315 2018-02-01 Leszek Swirski <leszeks@google.com>
11316
11317 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
11318 names after a structop as a filename.
11319
11320 2018-02-01 Yao Qi <yao.qi@linaro.org>
11321
11322 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
11323 (arm_record_coproc_data_proc): Likewise.
11324
11325 2018-02-01 Yao Qi <yao.qi@linaro.org>
11326
11327 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
11328
11329 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
11330
11331 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
11332 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
11333
11334 2018-01-31 Pedro Alves <palves@redhat.com>
11335
11336 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
11337 * inflow.c (child_terminal_save_inferior): Wrap reference to
11338 tcgetpgrp in HAVE_TERMIOS_H.
11339 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
11340 _WIN32.
11341 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
11342 always iterate over all inferiors.
11343 (gdbsim_cntrl_c): Adjust.
11344 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
11345
11346 2018-01-31 Joel Brobecker <brobecker@adacore.com>
11347
11348 * gdbtypes.c (lookup_array_range_type): Make sure the array's
11349 index type is objfile-owned if the element type is as well.
11350
11351 2018-01-31 Joel Brobecker <brobecker@adacore.com>
11352
11353 GDB 8.1 released.
11354
11355 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
11356
11357 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
11358 "features/s390x-linux64.c".
11359 (_initialize_s390_linux_tdep): Remove initialization of tdescs
11360 s390_linux32 and s390x_linux64.
11361 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
11362 default tdesc.
11363 * s390-tdep.c: Include "features/s390-linux32.c" and
11364 "features/s390x-linux64.c".
11365 (s390_tdesc_valid): Add check for tdesc_has_registers.
11366 (s390_gdbarch_init): Make sure there is always a valid tdesc.
11367 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
11368 tdesc_s390x_linux64.
11369 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
11370 tdesc_s390x_linux64 to...
11371 * s390-tdep.h: ...here.
11372
11373 2018-01-30 Pedro Alves <palves@redhat.com>
11374
11375 PR gdb/13211
11376 * config.in, configure: Regenerate.
11377 * configure.ac: Check for getpgid.
11378 * go32-nat.c (go32_pass_ctrlc): New.
11379 (go32_target): Install it.
11380 * inf-child.c (inf_child_target): Install
11381 child_terminal_save_inferior, child_pass_ctrlc and
11382 child_interrupt.
11383 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
11384 (inf_ptrace_target): No longer install it.
11385 * infcmd.c (interrupt_target_1): Adjust.
11386 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
11387 (child_interrupt): Declare.
11388 (inferior::terminal_state): New.
11389 * inflow.c (struct terminal_info): Update comments.
11390 (inferior_process_group): Delete.
11391 (terminal_is_ours): Delete.
11392 (gdb_tty_state): New.
11393 (child_terminal_init): Adjust.
11394 (is_gdb_terminal, sharing_input_terminal_1)
11395 (sharing_input_terminal): New functions.
11396 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
11397 Set the process's actual process group in the foreground if
11398 possible. Handle is_ours_for_output/is_ours distinction. Don't
11399 mark terminal as the inferior's if not sharing GDB's terminal.
11400 Don't check attach_flag.
11401 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
11402 pass down a target_terminal_state.
11403 (child_terminal_save_inferior): New, factored out from ...
11404 (child_terminal_ours_1): ... this. Handle
11405 target_terminal_state::is_ours_for_output.
11406 (child_interrupt, child_pass_ctrlc): New.
11407 (inflow_inferior_exit): Clear the inferior's terminal_state.
11408 (copy_terminal_info): Copy the inferior's terminal state.
11409 (_initialize_inflow): Remove reference to terminal_is_ours.
11410 * inflow.h (inferior_process_group): Delete.
11411 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
11412 * procfs.c (procfs_target): Don't install procfs_interrupt.
11413 (procfs_interrupt): Delete.
11414 * remote.c (remote_serial_quit_handler): Adjust.
11415 (remote_interrupt): Remove ptid parameter. Adjust.
11416 * target-delegates.c: Regenerate.
11417 * target.c: Include "terminal.h".
11418 (target_terminal::terminal_state): Rename to ...
11419 (target_terminal::m_terminal_state): ... this.
11420 (target_terminal::init): Adjust.
11421 (target_terminal::inferior): Adjust to per-inferior
11422 terminal_state.
11423 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
11424 (target_terminal::ours, target_terminal::ours_for_output): Use
11425 target_terminal_is_ours_kind.
11426 (target_interrupt): Remove ptid parameter. Adjust.
11427 (default_target_pass_ctrlc): Adjust.
11428 * target.h (target_ops::to_terminal_save_inferior): New field.
11429 (target_ops::to_interrupt): Remove ptid_t parameter.
11430 (target_interrupt): Remove ptid_t parameter. Update comment.
11431 (target_pass_ctrlc): Update comment.
11432 * target/target.h (target_terminal_state): New scoped enum,
11433 factored out of ...
11434 (target_terminal::terminal_state): ... here.
11435 (target_terminal::inferior): Update comments.
11436 (target_terminal::restore_inferior): New.
11437 (target_terminal::is_inferior, target_terminal::is_ours)
11438 (target_terminal::is_ours_for_output): Adjust.
11439 (target_terminal::scoped_restore_terminal_state): Adjust to
11440 rename, and call restore_inferior() instead of inferior().
11441 (target_terminal::scoped_restore_terminal_state::m_state): Change
11442 type.
11443 (target_terminal::terminal_state): Rename to ...
11444 (target_terminal::m_terminal_state): ... this and change type.
11445
11446 2018-01-30 Pedro Alves <palves@redhat.com>
11447
11448 * linux-nat.c (wait_for_signal): New function.
11449 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
11450 directly.
11451 (async_terminal_is_ours)
11452 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
11453 (linux_nat_add_target): Don't override
11454 to_terminal_inferior/to_terminal_ours.
11455
11456 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
11457
11458 * remote.c (remote_follow_fork): Don't call "detach_inferior".
11459
11460 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
11461
11462 * dwarf2read.c (free_dwo_files): Add forward-declaration.
11463 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
11464 dwarf2_per_objfile_free here.
11465 (dwarf2_per_objfile_free): Remove.
11466 (_initialize_dwarf2_read): Don't register
11467 dwarf2_per_objfile_free as a registry cleanup.
11468
11469 2018-01-27 Eli Zaretskii <eliz@gnu.org>
11470
11471 Avoid compilation errors in MinGW native builds
11472
11473 The error is triggered by including python-internal.h, and the
11474 error message is:
11475
11476 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
11477 from build-gnulib/import/math.h:27,
11478 from d:/usr/Python26/include/pyport.h:235,
11479 from d:/usr/Python26/include/Python.h:58,
11480 from python/python-internal.h:94,
11481 from python/py-arch.c:24:
11482 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
11483 using ::hypot;
11484 ^~~~~
11485
11486 This happens because Python headers define 'hypot' to expand t
11487 '_hypot' in the Windows builds.
11488 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
11489 'hypoth'. This avoids a compilation error.
11490
11491 2018-01-26 Alan Hayward <alan.hayward@arm.com>
11492
11493 * MAINTAINERS (Write After Approval): Fix ordering.
11494
11495 2018-01-26 Alan Hayward <alan.hayward@arm.com>
11496
11497 * MAINTAINERS (Write After Approval): Add Alan Hayward.
11498
11499 2018-01-26 Alan Modra <amodra@gmail.com>
11500
11501 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
11502 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
11503 Remove nop. Make const. Comment.
11504 (powerpc32_plt_stub_so_2): New.
11505 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
11506 Correct count. Update uses.
11507 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
11508 Move common code reading PLT entry word. Correct
11509 powerpc32_plt_stub PLT address calculation.
11510 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
11511 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
11512 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
11513 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
11514 (ppc64_standard_linkage8): Likewise.
11515 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
11516 Correct insns description.
11517 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
11518
11519 2018-01-24 Pedro Alves <palves@redhat.com>
11520
11521 GCC PR libstdc++/83906
11522 * gdbtypes.c (operator==(const dynamic_prop &,
11523 const dynamic_prop &)): New.
11524 (operator==(const range_bounds &, const range_bounds &)): New.
11525 (check_types_equal): Use them instead of memcmp.
11526 * gdbtypes.h (operator==(const dynamic_prop &,
11527 const dynamic_prop &)): Declare.
11528 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
11529 (operator==(const range_bounds &, const range_bounds &)): Declare.
11530 (operator!=(const range_bounds &, const range_bounds &)): Declare.
11531
11532 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
11533
11534 * s390-linux-tdep.c (s390_record_address_mask)
11535 (s390_record_calc_disp_common, s390_record_calc_disp)
11536 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
11537 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
11538 (s390_process_record): Move to s390-tdep.c.
11539 (s390_linux_init_abi_any): Adjust.
11540 * s390-tdep.c (s390_record_address_mask)
11541 (s390_record_calc_disp_common, s390_record_calc_disp)
11542 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
11543 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
11544 (s390_process_record): Moved from s390-linux-tdep.c
11545 (s390_gdbarch_init): Adjust.
11546
11547 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
11548
11549 * s390-linux-nat.c (s390-tdep.h): New include.
11550 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
11551 (HFILES_NO_SRCDIR): Add s390-tdep.h.
11552 (ALLDEPFILES): Add s390-tdep.c.
11553 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
11554 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
11555 * s390-tdep.h: ...this. New file.
11556 * s390-linux-tdep.c (s390-tdep.h): New include.
11557 (_initialize_s390_tdep): Rename to...
11558 (_initialize_s390_linux_tdep): ...this and adjust.
11559 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
11560 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
11561 s390-tdep.h.
11562 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
11563 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
11564 (s390_is_partial_instruction, s390_software_single_step)
11565 (is_non_branch_ril, s390_displaced_step_copy_insn)
11566 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
11567 (s390_prologue_data, s390_addr, s390_store, s390_load)
11568 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
11569 (s390_register_call_saved, s390_guess_tracepoint_registers)
11570 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
11571 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
11572 (s390_pseudo_register_name, s390_pseudo_register_type)
11573 (s390_pseudo_register_read, s390_pseudo_register_write)
11574 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
11575 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
11576 (s390_addr_bits_remove, s390_address_class_type_flags)
11577 (s390_address_class_type_flags_to_name)
11578 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
11579 (s390_function_arg_float, s390_function_arg_vector)
11580 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
11581 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
11582 (s390_frame_align, s390_register_return_value, s390_return_value)
11583 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
11584 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
11585 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
11586 (s390_trad_frame_prev_register, s390_unwind_cache)
11587 (s390_prologue_frame_unwind_cache)
11588 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
11589 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
11590 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
11591 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
11592 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
11593 (s390_frame_base_address, s390_local_base_address)
11594 (s390_frame_base, s390_gcc_target_options)
11595 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
11596 (s390_validate_reg_range, s390_tdesc_valid)
11597 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
11598 * s390-tdep.c: ...this. New file.
11599
11600 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
11601
11602 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
11603 (s390_process_record, s390_gdbarch_tdep_alloc)
11604 (s390_linux_init_abi_any): Use/set new hook.
11605
11606 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
11607
11608 * s390-linux-tdep.c (osabi.h): New include.
11609 (s390_linux_init_abi_31, s390_linux_init_abi_64)
11610 (s390_linux_init_abi_any): New functions.
11611 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
11612
11613 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
11614
11615 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
11616 tdesc_has_registers check
11617
11618 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
11619
11620 * s390-linux-tdep.c (s390_tdesc_valid): New function.
11621 (s390_validate_reg_range): New macro.
11622 (s390_gdbarch_init): Adjust.
11623
11624 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
11625
11626 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
11627 (s390_gdbarch_tdep_alloc): Adjust.
11628 (s390_gdbarch_init): Adjust.
11629
11630 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
11631
11632 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
11633 <have_tdb>: Change type to bool.
11634 (s390_gdbarch_tdep_alloc): Adjust.
11635 (s390_gdbarch_init): Adjust.
11636
11637 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
11638
11639 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
11640 (gdbarch_tdep) <have_upper, have_vx>: New fields.
11641 (s390_gdbarch_tdep_alloc): New function.
11642 (s390_gdbarch_init): Allocate tdep at start and use its fields
11643 instead of separate variables.
11644
11645 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
11646
11647 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
11648 when looking for cached gdbarch and add comment for remaining.
11649
11650 2018-01-22 Pedro Alves <palves@redhat.com>
11651 Sergio Durigan Junior <sergiodj@redhat.com>
11652
11653 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
11654 case.
11655
11656 2018-01-22 Maciej W. Rozycki <macro@mips.com>
11657
11658 * MAINTAINERS: Update my company e-mail address.
11659
11660 2018-01-22 Yao Qi <yao.qi@linaro.org>
11661
11662 * regcache.c (cooked_write_test): New function.
11663 (_initialize_regcache): Register the test.
11664
11665 2018-01-22 Yao Qi <yao.qi@linaro.org>
11666
11667 * ia64-tdep.c (ia64_pseudo_register_read): Call
11668 regcache->cooked_read instead of regcache_cooked_read_unsigned.
11669 * m32c-tdep.c (m32c_cat_read): Likewise.
11670 (m32c_r3r2r1r0_read): Likewise.
11671 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
11672 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
11673
11674 2018-01-22 Yao Qi <yao.qi@linaro.org>
11675
11676 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
11677 method raw_read instead of regcache_raw_read.
11678 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
11679 * arm-tdep.c (arm_neon_quad_read): Likewise.
11680 * avr-tdep.c (avr_pseudo_register_read): Likewise.
11681 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
11682 * frv-tdep.c (frv_pseudo_register_read): Likewise.
11683 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
11684 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
11685 (i386_pseudo_register_read_into_value): Likewise.
11686 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
11687 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
11688 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
11689 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
11690 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
11691 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
11692 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
11693 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
11694 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
11695
11696 2018-01-22 Yao Qi <yao.qi@linaro.org>
11697
11698 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
11699 * configure.tgt: Remove target mt.
11700 * mt-tdep.c: Remove.
11701 * regcache.c (cooked_read_test): Remove the check for mt.
11702
11703 2018-01-22 Yao Qi <yao.qi@linaro.org>
11704
11705 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
11706 instead of gdbarch_pseudo_register_read_value.
11707
11708 2018-01-22 Joel Brobecker <brobecker@adacore.com>
11709
11710 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
11711 language is Ada.
11712
11713 2018-01-22 Joel Brobecker <brobecker@adacore.com>
11714
11715 * linespec.c (create_sals_line_offset): Remove code that preserved
11716 the symtab_and_line's line number.
11717
11718 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
11719
11720 * varobj.c (varobj_create): Don't set valid_block when creating a
11721 floating varobj.
11722
11723 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
11724
11725 * varobj.c (varobj_create): Remove out of date comment.
11726
11727 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
11728
11729 PR mi/20395
11730 * ada-exp.y (write_var_from_sym): Pass extra parameter when
11731 updating innermost block.
11732 * parse.c (innermost_block_tracker::update): Take extra type
11733 parameter, and check types match before updating innermost block.
11734 (write_dollar_variable): Update innermost block for registers.
11735 * parser-defs.h (enum innermost_block_tracker_type): New enum.
11736 (innermost_block_tracker::innermost_block_tracker): Initialise
11737 m_types member.
11738 (innermost_block_tracker::reset): Take type parameter.
11739 (innermost_block_tracker::update): Take type parameter, and pass
11740 type through as needed.
11741 (innermost_block_tracker::m_types): New member.
11742 * varobj.c (varobj_create): Pass type when reseting innermost
11743 block.
11744
11745 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
11746
11747 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
11748 * ada-lang.c (resolve_subexp): Likewise.
11749 * breakpoint.c (set_breakpoint_condition) Likewise.
11750 (watch_command_1) Likewise.
11751 * c-exp.y (variable): Likewise.
11752 * d-exp.y (PrimaryExpression): Likewise.
11753 * f-exp.y (variable): Likewise.
11754 * go-exp.y (variable): Likewise.
11755 * m2-exp.y (variable): Likewise.
11756 * objfiles.c (objfile::~objfile): Likewise.
11757 * p-exp.y (variable): Likewise.
11758 * parse.c (innermost_block): Change type.
11759 * parser-defs.h (class innermost_block_tracker): New.
11760 (innermost_block): Change to innermost_block_tracker.
11761 * printcmd.c (display_command): Switch to innermost_block API.
11762 (do_one_display): Likewise.
11763 * rust-exp.y (do_one_display): Likewise.
11764 * symfile.c (clear_symtab_users): Likewise.
11765 * varobj.c (varobj_create): Switch to innermost_block API, replace
11766 use of innermost_block with block stored on varobj object.
11767
11768 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
11769
11770 * expression.h (innermost_block): Remove declaration.
11771 * varobj.c: Add 'parser-defs.h' include.
11772
11773 2018-01-19 Tom Tromey <tom@tromey.com>
11774
11775 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
11776 symbols in the static and global blocks.
11777
11778 2018-01-19 James Clarke <jrtc27@jrtc27.com>
11779
11780 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
11781 gdb_ptrace.h, and move including gdb_wait.h ...
11782 * nat/linux-ptrace.h: ... to here.
11783
11784 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
11785
11786 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
11787 inf_ptrace_detach_success.
11788 (inf_ptrace_detach_success): Add inferior parameter, use it
11789 instead of inferior_ptid, pass it to detach_inferior.
11790 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
11791 parameter.
11792 * inferior.c (detach_inferior): Add overload that takes an
11793 inferior object.
11794 * inferior.h (detach_inferior): Likewise.
11795 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
11796 use inferior_ptid, adjust call to inf_ptrace_detach_success.
11797 * linux-thread-db.c (thread_db_detach): Use inf parameter.
11798
11799 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
11800
11801 * target.h (struct target_ops) <to_detach>: Add inferior
11802 parameter.
11803 (target_detach): Likewise.
11804 * target.c (dispose_inferior): Pass inferior down.
11805 (target_detach): Pass inferior down. Assert that it is equal to
11806 the current inferior.
11807 * aix-thread.c (aix_thread_detach): Pass inferior down.
11808 * corefile.c (core_file_command): Pass current_inferior() down.
11809 * corelow.c (core_detach): Add inferior parameter.
11810 * darwin-nat.c (darwin_detach): Likewise.
11811 * gnu-nat.c (gnu_detach): Likewise.
11812 * inf-ptrace.c (inf_ptrace_detach): Likewise.
11813 * infcmd.c (detach_command): Pass current_inferior() down to
11814 target_detach.
11815 * infrun.c (follow_fork_inferior): Pass parent_inf to
11816 target_detach.
11817 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
11818 target_detach.
11819 * linux-nat.c (linux_nat_detach): Add inferior parameter.
11820 * linux-thread-db.c (thread_db_detach): Likewise.
11821 * nto-procfs.c (procfs_detach): Likewise.
11822 * procfs.c (procfs_detach): Likewise.
11823 * record.c (record_detach): Likewise.
11824 * record.h (struct inferior): Forward-declare.
11825 (record_detach): Add inferior parameter.
11826 * remote-sim.c (gdbsim_detach): Likewise.
11827 * remote.c (remote_detach_1): Likewise.
11828 (remote_detach): Likewise.
11829 (extended_remote_detach): Likewise.
11830 * sol-thread.c (sol_thread_detach): Likewise.
11831 * target-debug.h (target_debug_print_inferior_p): New macro.
11832 * target-delegates.c: Re-generate.
11833 * top.c (kill_or_detach): Pass inferior down to target_detach.
11834 * windows-nat.c (windows_detach): Add inferior parameter.
11835
11836 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
11837
11838 * target.h (struct target_ops) <to_detach>: Remove args
11839 parameter.
11840 (target_detach): Likewise.
11841 * target.c (dispose_inferior): Adjust.
11842 (target_detach): Remove args parameter, adjust.
11843 * aix-thread.c (aix_thread_detach): Adjust.
11844 * corefile.c (core_file_command): Adjust.
11845 * corelow.c (core_detach): Adjust.
11846 * darwin-nat.c (darwin_detach): Adjust.
11847 * gnu-nat.c (gnu_detach): Adjust.
11848 * inf-ptrace.c (inf_ptrace_detach): Adjust.
11849 * infcmd.c (detach_command): Adjust
11850 * infrun.c (follow_fork_inferior): Adjust.
11851 (handle_vfork_child_exec_or_exit): Adjust.
11852 * linux-fork.c (linux_fork_detach): Remove args parameter.
11853 * linux-fork.h (linux_fork_detach): Likewise.
11854 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
11855 * linux-thread-db.c (thread_db_detach): Likewise.
11856 * nto-procfs.c (procfs_detach): Likewise.
11857 * procfs.c (procfs_detach): Likewise.
11858 (do_detach): Remove signo parameter.
11859 * record.c (record_detach): Remove args parameter.
11860 * record.h (record_detach): Likewise.
11861 * remote-sim.c (gdbsim_detach): Likewise.
11862 * remote.c (remote_detach_1): Likewise.
11863 (remote_detach): Likewise.
11864 (extended_remote_detach): Likewise.
11865 * sol-thread.c (sol_thread_detach): Likewise.
11866 * target-delegates.c: Re-generate.
11867 * top.c (struct qt_args) <args>: Remove field.
11868 (kill_or_detach): Don't pass args.
11869 (quit_force): Don't set args.
11870 * windows-nat.c (windows_detach): Remove args parameter.
11871
11872 2018-01-19 Yao Qi <yao.qi@linaro.org>
11873
11874 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
11875 (arm_linux_init_abi): Install it.
11876
11877 2018-01-19 Yao Qi <yao.qi@linaro.org>
11878
11879 * osabi.c (gdb_osabi_names): Extend the regexp for
11880 arm-linux-gnueabihf.
11881
11882 2018-01-18 Yao Qi <yao.qi@linaro.org>
11883
11884 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
11885 m_abbrevs.
11886 (abbrev_table::add_abbrev): Update.
11887 (abbrev_table::lookup_abbrev): Update.
11888
11889 2018-01-18 Yao Qi <yao.qi@linaro.org>
11890
11891 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
11892
11893 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11894
11895 * compile/compile.c (compile_to_object): Convert "triplet_rx"
11896 to "std::string".
11897
11898 2018-01-17 Tom Tromey <tom@tromey.com>
11899
11900 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
11901
11902 2018-01-17 Tom Tromey <tom@tromey.com>
11903
11904 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
11905 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
11906 (create_array_type_with_stride): Update.
11907 * dwarf2read.c (set_die_type): Update.
11908
11909 2018-01-17 Tom Tromey <tom@tromey.com>
11910
11911 * dwarf2read.c (delayed_method_info): Remove typedef.
11912 (dwarf2_cu::method_info): Now a std::vector.
11913 (add_to_method_list): Update.
11914 (free_delayed_list): Remove.
11915 (compute_delayed_physnames): Update.
11916 (process_full_comp_unit, process_full_type_unit): Clear the method
11917 list. Remove cleanups.
11918 (psymtab_include_file_name): Add name_holder parameter. Use
11919 unique_xmalloc_ptr.
11920 (dwarf_decode_lines): Update.
11921
11922 2018-01-17 Tom Tromey <tom@tromey.com>
11923 Simon Marchi <simon.marchi@ericsson.com>
11924
11925 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
11926 (dwarf2_per_objfile::free_cached_comp_units)
11927 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
11928 (init_cutu_and_read_dies_no_follow): Update.
11929 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
11930 (dwarf2_cu::~dwarf2_cu): New.
11931 (free_heap_comp_unit, free_stack_comp_unit): Remove.
11932 (age_cached_comp_units, free_one_cached_comp_unit): Update.
11933
11934 2018-01-17 Tom Tromey <tom@tromey.com>
11935 Simon Marchi <simon.marchi@ericsson.com>
11936
11937 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
11938 (struct die_reader_specs) <abbrev_table>: New member.
11939 (struct abbrev_table): Add constructor.
11940 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
11941 <abbrev_obstack>: Now an auto_obstack.
11942 (abbrev_table_up): New typedef.
11943 (init_cu_die_reader): Add abbrev_table parameter.
11944 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
11945 Add result_dwo_abbrev_table.
11946 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
11947 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
11948 Update.
11949 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
11950 parameter.
11951 (skip_children): Update.
11952 (abbrev_table::alloc_abbrev): Rename from
11953 abbrev_table_alloc_abbrev.
11954 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
11955 (abbrev_table::lookup_abbrev): Rename from
11956 abbrev_table_lookup_abbrev.
11957 (abbrev_table_read_table): Return abbrev_table_up.
11958 (abbrev_table_free, abbrev_table_free_cleanup)
11959 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
11960 (load_partial_dies): Update.
11961
11962 2018-01-17 Tom Tromey <tom@tromey.com>
11963
11964 * dwarf2read.c (dwarf2_compute_name): Update comment.
11965 (read_func_scope, read_variable): Update.
11966 (new_symbol): Remove.
11967 (new_symbol_full): Rename to new_symbol.
11968
11969 2018-01-17 Mike Gulick <mgulick@mathworks.com>
11970
11971 PR gdb/16577
11972 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
11973 a warning instead of throwing an error, set section size to 0 and return
11974 NULL.
11975 * gdb_bfd.h (gdb_bfd_map_section): Update description.
11976
11977 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
11978
11979 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
11980 std::string.
11981 (linux_ptrace_attach_fail_reason_string): Likewise.
11982 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
11983 Likewise.
11984 (linux_ptrace_attach_fail_reason_string): Likewise.
11985 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
11986
11987 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
11988
11989 * linux-nat.c (linux_nat_attach): Remove xstrdup.
11990
11991 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
11992
11993 PR gdb/21559
11994 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
11995 checking for fs_base/gs_base fields in struct user_regs_struct.
11996 * configure: Regenerate.
11997
11998 2018-01-17 Yao Qi <yao.qi@linaro.org>
11999
12000 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
12001 function.
12002 (aarch64_linux_init_abi): Install it to gdbarch hook
12003 gcc_target_options.
12004
12005 2018-01-15 Pedro Alves <palves@redhat.com>
12006
12007 * common/signals-state-save-restore.c
12008 (save_original_signals_state): Fix typos.
12009
12010 2017-01-12 Tom Tromey <tom@tromey.com>
12011 Sergio Durigan Junior <sergiodj@redhat.com>
12012
12013 * Makefile.in (install-only): Install gdb-add-index.
12014
12015 2018-01-12 John Baldwin <jhb@FreeBSD.org>
12016
12017 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
12018
12019 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12020
12021 * infrun.c (keep_going_pass_signal): Clear step-over info when
12022 insert_breakpoints fails.
12023
12024 2018-01-11 Pedro Alves <palves@redhat.com>
12025
12026 PR gdb/22583
12027 * infrun.c (resume): Rename to ...
12028 (resume_1): ... this.
12029 (resume): Reimplement as wrapper around resume_1.
12030
12031 2018-01-11 Pedro Alves <palves@redhat.com>
12032
12033 PR remote/22597
12034 * remote.c (remote_parse_stop_reply): Default to the last-set
12035 general thread instead of to 'magic_null_ptid'.
12036
12037 2018-01-10 Pedro Alves <palves@redhat.com>
12038
12039 * language.h (language_get_symbol_name_matcher): Rename ...
12040 (get_symbol_name_matcher): ... this.
12041 * language.c (language_get_symbol_name_matcher): Ditto.
12042 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
12043 callers adjusted.
12044
12045 2018-01-10 Pedro Alves <palves@redhat.com>
12046
12047 PR gdb/22670
12048 * dwarf2read.c
12049 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
12050 Adjust to use language_get_symbol_name_matcher instead of
12051 language_defn::la_get_symbol_name_matcher.
12052 * language.c (language_get_symbol_name_matcher): If in Ada mode
12053 and the lookup name is a verbatim match, return Ada's matcher.
12054 * language.h (language_get_symbol_name_matcher): Adjust comment.
12055 (ada_lookup_name_info::verbatim_p):: New method.
12056
12057 2018-01-10 Pedro Alves <palves@redhat.com>
12058
12059 PR gdb/22670
12060 * ada-lang.c (ada_collect_symbol_completion_matches): If the
12061 minsym's language is language_auto or language_cplus, pass down
12062 language_ada instead.
12063 * symtab.c (compare_symbol_name): Don't frob symbol language here.
12064
12065 2018-01-10 Pedro Alves <palves@redhat.com>
12066
12067 PR gdb/22670
12068 * minsyms.c (linkage_name_str): New function.
12069 (iterate_over_minimal_symbols): Use it.
12070
12071 2018-01-09 John Baldwin <jhb@FreeBSD.org>
12072
12073 * NEWS: Document that 'info proc' now works on FreeBSD.
12074
12075 2018-01-09 John Baldwin <jhb@FreeBSD.org>
12076
12077 * configure.ac: Check for kinfo_getfile in libutil.
12078 * configure: Regenerate.
12079 * config.in: Regenerate.
12080 * fbsd-nat.c: Include "fbsd-tdep.h".
12081 (fbsd_fetch_cmdline): New.
12082 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
12083 rather than calling error.
12084 (fbsd_info_proc): New.
12085 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
12086 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
12087 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
12088
12089 2018-01-09 John Baldwin <jhb@FreeBSD.org>
12090
12091 * fbsd-nat.c (struct free_deleter): Remove.
12092 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
12093
12094 2018-01-09 John Baldwin <jhb@FreeBSD.org>
12095
12096 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
12097 NULL for an empty pathname.
12098
12099 2018-01-09 John Baldwin <jhb@FreeBSD.org>
12100
12101 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
12102 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
12103 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12104 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12105 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
12106 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
12107 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
12108 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
12109 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
12110 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
12111 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
12112 (fbsd_core_fetch_timeval, fbsd_print_sigset)
12113 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
12114 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
12115 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
12116
12117 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
12118
12119 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
12120 (gnu_xfer_auxv): New function.
12121 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
12122 TARGET_OBJECT_AUXV.
12123
12124 2018-01-08 Yao Qi <yao.qi@linaro.org>
12125 Simon Marchi <simon.marchi@ericsson.com>
12126
12127 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
12128 common/selftest.c.
12129 (COMMON_OBS): Remove selftest.o.
12130 * configure.ac: Append selftest-arch.c and common/selftest.c to
12131 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
12132 * configure: Re-generated.
12133 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
12134 GDB_SELF_TEST.
12135 (maintenance_info_selftests): Likewise.
12136
12137 2018-01-08 Xavier Roirand <roirand@adacore.com>
12138
12139 * ada-valprint.c (val_print_packed_array_elements): Use
12140 proper number of elements when printing an array indexed
12141 by an enumeration type.
12142
12143 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
12144
12145 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
12146 (dw2_get_file_names_reader): Adjust.
12147 (lookup_dwo_signatured_type): Adjust.
12148 (lookup_dwp_signatured_type): Adjust.
12149 (lookup_signatured_type): Adjust.
12150 (create_type_unit_group): Adjust.
12151 (get_type_unit_group): Adjust.
12152 (process_psymtab_comp_unit_reader): Adjust.
12153 (build_type_psymtabs_reader): Adjust.
12154 (scan_partial_symbols): Adjust.
12155 (add_partial_symbol): Adjust.
12156 (add_partial_subprogram): Adjust.
12157 (peek_die_abbrev): Adjust.
12158 (fixup_go_packaging): Adjust.
12159 (process_imported_unit_die): Adjust.
12160 (dwarf2_compute_name): Adjust.
12161 (dwarf2_physname): Adjust.
12162 (read_import_statement): Adjust.
12163 (handle_DW_AT_stmt_list): Adjust.
12164 (read_file_scope): Adjust.
12165 (read_func_scope): Adjust.
12166 (read_lexical_block_scope): Adjust.
12167 (read_call_site_scope): Adjust.
12168 (read_variable): Adjust.
12169 (dwarf2_rnglists_process): Adjust.
12170 (dwarf2_ranges_process): Adjust.
12171 (dwarf2_ranges_read): Adjust.
12172 (dwarf2_get_pc_bounds): Adjust.
12173 (dwarf2_record_block_ranges): Adjust.
12174 (dwarf2_add_field): Adjust.
12175 (dwarf2_add_member_fn): Adjust.
12176 (read_structure_type): Adjust.
12177 (process_structure_scope): Adjust.
12178 (read_enumeration_type): Adjust.
12179 (read_array_type): Adjust.
12180 (mark_common_block_symbol_computed): Adjust.
12181 (read_common_block): Adjust.
12182 (read_namespace_type): Adjust.
12183 (read_namespace): Adjust.
12184 (read_module_type): Adjust.
12185 (read_tag_pointer_type): Adjust.
12186 (read_tag_ptr_to_member_type): Adjust.
12187 (read_tag_string_type): Adjust.
12188 (read_subroutine_type): Adjust.
12189 (read_typedef): Adjust.
12190 (read_base_type): Adjust.
12191 (attr_to_dynamic_prop): Adjust.
12192 (read_subrange_type): Adjust.
12193 (read_unspecified_type): Adjust.
12194 (dwarf2_read_abbrevs): Adjust.
12195 (load_partial_dies): Adjust.
12196 (read_partial_die): Adjust.
12197 (find_partial_die): Adjust.
12198 (guess_partial_die_structure_name): Adjust.
12199 (fixup_partial_die): Adjust.
12200 (read_attribute_value): Adjust.
12201 (read_addr_index): Adjust.
12202 (read_addr_index_from_leb128): Adjust.
12203 (read_str_index): Adjust.
12204 (dwarf2_string_attr): Adjust.
12205 (get_debug_line_section): Adjust.
12206 (dwarf_decode_line_header): Adjust.
12207 (lnp_state_machine::check_line_address): Adjust.
12208 (dwarf_decode_lines_1): Adjust.
12209 (dwarf_decode_lines): Adjust.
12210 (dwarf2_start_symtab): Adjust.
12211 (var_decode_location): Adjust.
12212 (new_symbol_full): Adjust.
12213 (dwarf2_const_value_data): Adjust.
12214 (dwarf2_const_value_attr): Adjust.
12215 (dwarf2_const_value): Adjust.
12216 (die_type): Adjust.
12217 (die_containing_type): Adjust.
12218 (build_error_marker_type): Adjust.
12219 (lookup_die_type): Adjust.
12220 (guess_full_die_structure_name): Adjust.
12221 (anonymous_struct_prefix): Adjust.
12222 (determine_prefix): Adjust.
12223 (dwarf2_name): Adjust.
12224 (follow_die_ref_or_sig): Adjust.
12225 (follow_die_offset): Adjust.
12226 (follow_die_ref): Adjust.
12227 (follow_die_sig_1): Adjust.
12228 (follow_die_sig): Adjust.
12229 (get_signatured_type): Adjust.
12230 (get_DW_AT_signature_type): Adjust.
12231 (decode_locdesc): Adjust.
12232 (dwarf_decode_macros): Adjust.
12233 (cu_debug_loc_section): Adjust.
12234 (fill_in_loclist_baton): Adjust.
12235 (dwarf2_symbol_mark_computed): Adjust.
12236 (init_one_comp_unit): Don't assign
12237 dwarf2_cu::dwarf2_per_objfile.
12238 (set_die_type): Adjust.
12239
12240 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
12241
12242 * dwarf2read.c (struct mapped_debug_names): Add constructor.
12243 <dwarf2_per_objfile>: New field.
12244 (dwarf2_per_objfile): Remove global.
12245 (get_dwarf2_per_objfile): New function.
12246 (set_dwarf2_per_objfile): New function.
12247 (dwarf2_build_psymtabs_hard): Change objfile parameter to
12248 dwarf2_per_objfile.
12249 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
12250 (read_abbrev_offset): Likewise.
12251 (read_indirect_string): Likewise.
12252 (read_indirect_line_string): Likewise.
12253 (read_indirect_string_at_offset): Likewise.
12254 (read_indirect_string_from_dwz): Likewise.
12255 (dwarf2_find_containing_comp_unit): Change objfile parameter to
12256 dwarf2_per_objfile.
12257 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
12258 (create_all_comp_units): Change objfile parameter to
12259 dwarf2_per_objfile.
12260 (create_all_type_units): Likewise.
12261 (process_queue): Add dwarf2_per_objfile parameter.
12262 (read_and_check_comp_unit_head): Likewise.
12263 (lookup_dwo_unit_in_dwp): Likewise.
12264 (get_dwp_file): Likewise.
12265 (process_cu_includes): Likewise.
12266 (struct free_dwo_file_cleanup_data): New struct.
12267 (dwarf2_has_info): Use get_dwarf2_per_objfile and
12268 set_dwarf2_per_objfile.
12269 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
12270 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
12271 context, adjust calls.
12272 (dw2_instantiate_symtab): Likewise.
12273 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
12274 (dw2_get_cu): Likewise.
12275 (create_cu_from_index_list): Change objfile parameter to
12276 dwarf2_per_objfile.
12277 (create_cus_from_index_list): Get dwarf2_per_objfile from
12278 context, adjust calls.
12279 (create_cus_from_index): Likewise.
12280 (create_signatured_type_table_from_index): Change objfile
12281 parameter to dwarf2_per_objfile.
12282 (create_signatured_type_table_from_debug_names): Change objfile
12283 parameter to dwarf2_per_objfile.
12284 (create_addrmap_from_index): Likewise.
12285 (create_addrmap_from_aranges): Likewise.
12286 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
12287 (dw2_setup): Remove.
12288 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
12289 context.
12290 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
12291 get_dwarf2_per_objfile.
12292 (dw2_forget_cached_source_info): Likewise.
12293 (dw2_map_symtabs_matching_filename): Likewise.
12294 (struct dw2_symtab_iterator) <index>: Remove.
12295 <dwarf2_per_objfile>: New field.
12296 (dw2_symtab_iter_init): Replace index parameter with
12297 dwarf2_per_objfile.
12298 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
12299 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
12300 (dw2_print_stats): Likewise.
12301 (dw2_dump): Likewise.
12302 (dw2_expand_symtabs_for_function): Likewise.
12303 (dw2_expand_all_symtabs): Likewise.
12304 (dw2_expand_symtabs_with_fullname): Likewise.
12305 (dw2_expand_marked_cus): Replace index and objfile parameters
12306 with dwarf2_per_objfile.
12307 (dw_expand_symtabs_matching_file_matcher): Add
12308 dwarf2_per_objfile parameter and adjust calls.
12309 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
12310 adjust calls.
12311 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
12312 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
12313 adjust calls.
12314 (create_cus_from_debug_names_list): Replace objfile parameter
12315 with dwarf2_per_objfile and adjust calls.
12316 (create_cus_from_debug_names): Likewise.
12317 (dwarf2_read_debug_names): Likewise.
12318 (mapped_debug_names::namei_to_name): Adjust call.
12319 (dw2_debug_names_iterator::next): Likewise.
12320 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
12321 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
12322 (dw2_debug_names_dump): Likewise.
12323 (dw2_debug_names_expand_symtabs_for_function): Likewise.
12324 (dw2_debug_names_expand_symtabs_matching): Likewise.
12325 (dwarf2_initialize_objfile): Likewise.
12326 (dwarf2_build_psymtabs): Likewise.
12327 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
12328 this_cu.
12329 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
12330 (read_and_check_comp_unit_head): Likewise.
12331 (read_abbrev_offset): Likewise.
12332 (create_debug_type_hash_table): Likewise.
12333 (create_debug_types_hash_table): Likewise.
12334 (create_all_type_units): Replace objfile parameter with
12335 dwarf2_per_objfile.
12336 (add_type_unit): Add dwarf2_per_objfile parameter.
12337 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
12338 with dwarf2_per_objfile.
12339 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
12340 (lookup_dwp_signatured_type): Likewise.
12341 (lookup_signatured_type): Likewise.
12342 (read_cutu_die_from_dwo): Likewise.
12343 (init_tu_and_read_dwo_dies): Likewise.
12344 (init_cutu_and_read_dies): Likewise.
12345 (init_cutu_and_read_dies_no_follow): Likewise.
12346 (allocate_type_unit_groups_table): Add objfile parameter.
12347 (create_type_unit_group): Use dwarf2_per_objfile from cu.
12348 (get_type_unit_group): Likewise.
12349 (process_psymtab_comp_unit): Update call.
12350 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
12351 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
12352 (print_tu_stats): Likewise.
12353 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
12354 in void* parameter.
12355 (build_type_psymtabs): Change objfile parameter to
12356 dwarf2_per_objfile.
12357 (process_skeletonless_type_unit): Use dwarf2_per_objfile
12358 passed in void* parameter.
12359 (process_skeletonless_type_units): Change objfile parameter to
12360 dwarf2_per_objfile.
12361 (set_partial_user): Likewise.
12362 (dwarf2_build_psymtabs_hard): Likewise.
12363 (read_comp_units_from_section): Likewise.
12364 (create_all_comp_units): Likewise.
12365 (scan_partial_symbols): Update calls.
12366 (add_partial_symbol): Likewise.
12367 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
12368 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
12369 (process_queue): Add dwarf2_per_objfile parameter.
12370 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
12371 (compute_compunit_symtab_includes): Likewise.
12372 (process_cu_includes): Add dwarf2_per_objfile parameter.
12373 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
12374 (process_full_type_unit): Likewise.
12375 (process_imported_unit_die): Update call.
12376 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
12377 (read_file_scope): Likewise.
12378 (allocate_dwo_file_hash_table): Add objfile parameter.
12379 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
12380 (create_cus_hash_table): Likewise.
12381 (create_dwp_hash_table): Likewise.
12382 (create_dwo_unit_in_dwp_v1): Likewise.
12383 (create_dwp_v2_section): Likewise.
12384 (create_dwo_unit_in_dwp_v2): Likewise.
12385 (lookup_dwo_unit_in_dwp): Likewise.
12386 (try_open_dwop_file): Likewise.
12387 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
12388 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
12389 cleanup to include a reference to dwarf2_per_objfile.
12390 (open_dwp_file): Add dwarf2_per_objfile parameter.
12391 (open_and_init_dwp_file): Likewise.
12392 (get_dwp_file): Likewise.
12393 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
12394 (queue_and_load_all_dwo_tus): Update call.
12395 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
12396 data.
12397 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
12398 (dwarf2_ranges_process): Likewise.
12399 (dwarf2_get_pc_bounds): Likewise.
12400 (mark_common_block_symbol_computed): Likewise.
12401 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
12402 (dwarf2_read_abbrevs): Update call.
12403 (read_partial_die): Use dwarf2_per_objfile from cu.
12404 (find_partial_die): Likewise.
12405 (fixup_partial_die): Likewise.
12406 (read_attribute_value): Likewise.
12407 (read_indirect_string_at_offset_from): Add objfile parameter.
12408 (read_indirect_string_at_offset): Add dwarf2_per_objfile
12409 parameter.
12410 (read_indirect_string_from_dwz): Add objfile parameter.
12411 (read_indirect_string): Add objfile parameter.
12412 (read_addr_index_1): Add dwarf2_per_objfile parameter.
12413 (read_addr_index): Use dwarf2_per_objfile from cu.
12414 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
12415 call dw2_setup.
12416 (read_str_index): Use dwarf2_per_objfile from cu.
12417 (get_debug_line_section): Likewise.
12418 (read_formatted_entries): Add dwarf2_per_objfile parameter.
12419 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
12420 (new_symbol_full): Use dwarf2_per_objfile from cu.
12421 (build_error_marker_type): Likewise.
12422 (lookup_die_type): Likewise.
12423 (determine_prefix): Likewise.
12424 (follow_die_offset): Likewise.
12425 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
12426 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
12427 (dwarf2_fetch_die_type_sect_off): Likewise.
12428 (dwarf2_get_die_type): Likewise.
12429 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
12430 (get_signatured_type): Likewise.
12431 (get_DW_AT_signature_type): Likewise.
12432 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
12433 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
12434 (cu_debug_loc_section): Likewise.
12435 (fill_in_loclist_baton): Likewise.
12436 (dwarf2_symbol_mark_computed): Likewise.
12437 (dwarf2_find_containing_comp_unit): Change objfile parameter to
12438 dwarf2_per_objfile.
12439 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
12440 parameter.
12441 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
12442 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
12443 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
12444 (set_die_type): Use dwarf2_free_objfile from cu.
12445 (get_die_type_at_offset): Likewise.
12446 (dwarf2_per_objfile_free): Don't assign global variable.
12447 (debug_names) <constructor>: Add dwarf2_per_objfile
12448 parameter, update m_debugstrlookup construction.
12449 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
12450 parameter.
12451 <m_dwarf2_per_objfile>: New field.
12452 <lookup>: Use m_dwarf2_per_objfile.
12453 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
12454 (psyms_seen_size): Likewise.
12455 (write_gdbindex): Replace objfile parameter with
12456 dwarf2_per_objfile.
12457 (write_debug_names): Likewise.
12458 (write_psymtabs_to_index): Likewise.
12459 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
12460 calls.
12461
12462 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
12463
12464 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
12465 <dwarf2_per_objfile>: New field.
12466 (struct dwarf2_per_cu_data) <objfile>: Remove.
12467 <dwarf2_per_objfile>: New field.
12468 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
12469 of objfile.
12470 (create_signatured_type_table_from_index): Likewise.
12471 (create_debug_type_hash_table): Likewise.
12472 (fill_in_sig_entry_from_dwo_entry): Likewise.
12473 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
12474 (create_type_unit_group): Assign dwarf2_per_objfile instead of
12475 objfile.
12476 (create_partial_symtab): Access objfile through
12477 dwarf2_per_objfile.
12478 (process_psymtab_comp_unit_reader): Likewise.
12479 (read_comp_units_from_section): Likewise.
12480 (scan_partial_symbols): Likewise.
12481 (add_partial_symbol): Likewise.
12482 (add_partial_subprogram): Likewise.
12483 (peek_die_abbrev): Likewise.
12484 (fixup_go_packaging): Likewise.
12485 (process_full_comp_unit): Likewise.
12486 (process_full_type_unit): Likewise.
12487 (process_imported_unit_die): Likewise.
12488 (dwarf2_compute_name): Likewise.
12489 (dwarf2_physname): Likewise.
12490 (read_import_statement): Likewise.
12491 (create_cus_hash_table): Assign dwarf2_physname instead of
12492 objfile.
12493 (read_func_scope): Access objfile through dwarf2_per_objfile.
12494 (read_lexical_block_scope): Likewise.
12495 (read_call_site_scope): Likewise.
12496 (read_variable): Likewise.
12497 (dwarf2_rnglists_process): Likewise.
12498 (dwarf2_ranges_process): Likewise.
12499 (dwarf2_ranges_read): Likewise.
12500 (dwarf2_record_block_ranges): Likewise.
12501 (dwarf2_add_field): Likewise.
12502 (dwarf2_add_member_fn): Likewise.
12503 (read_structure_type): Likewise.
12504 (process_structure_scope): Likewise.
12505 (read_enumeration_type): Likewise.
12506 (read_array_type): Likewise.
12507 (read_common_block): Likewise.
12508 (read_namespace_type): Likewise.
12509 (read_namespace): Likewise.
12510 (read_module_type): Likewise.
12511 (read_tag_pointer_type): Likewise.
12512 (read_tag_ptr_to_member_type): Likewise.
12513 (read_tag_string_type): Likewise.
12514 (read_subroutine_type): Likewise.
12515 (read_typedef): Likewise.
12516 (read_base_type): Likewise.
12517 (attr_to_dynamic_prop): Likewise.
12518 (read_subrange_type): Likewise.
12519 (read_unspecified_type): Likewise.
12520 (load_partial_dies): Likewise.
12521 (read_partial_die): Likewise.
12522 (find_partial_die): Likewise.
12523 (guess_partial_die_structure_name): Likewise.
12524 (fixup_partial_die): Likewise.
12525 (read_attribute_value): Likewise.
12526 (read_addr_index_from_leb128): Likewise.
12527 (dwarf2_read_addr_index): Likewise.
12528 (dwarf2_string_attr): Likewise.
12529 (lnp_state_machine::check_line_address): Likewise.
12530 (dwarf_decode_lines_1): Likewise.
12531 (dwarf_decode_lines): Likewise.
12532 (dwarf2_start_symtab): Likewise.
12533 (var_decode_location): Likewise.
12534 (new_symbol_full): Likewise.
12535 (dwarf2_const_value_data): Likewise.
12536 (dwarf2_const_value_attr): Likewise.
12537 (dwarf2_const_value): Likewise.
12538 (die_type): Likewise.
12539 (die_containing_type): Likewise.
12540 (lookup_die_type): Likewise.
12541 (guess_full_die_structure_name): Likewise.
12542 (anonymous_struct_prefix): Likewise.
12543 (dwarf2_name): Likewise.
12544 (follow_die_ref_or_sig): Likewise.
12545 (follow_die_offset): Likewise.
12546 (follow_die_ref): Likewise.
12547 (dwarf2_fetch_die_loc_sect_off): Likewise.
12548 (dwarf2_fetch_constant_bytes): Likewise.
12549 (dwarf2_fetch_die_type_sect_off): Likewise.
12550 (dwarf2_get_die_type): Likewise.
12551 (follow_die_sig): Likewise.
12552 (decode_locdesc): Likewise.
12553 (dwarf2_per_cu_objfile): Likewise.
12554 (dwarf2_per_cu_text_offset): Likewise.
12555 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
12556 objfile.
12557 (set_die_type): Access objfile through
12558 dwarf2_per_objfile.
12559
12560 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
12561
12562 * valprint.c (converted_character_d): Remove typedef.
12563 (DEF_VEC_O (converted_character_d)): Remove.
12564 (count_next_character): Use std::vector.
12565 (print_converted_chars_to_obstack): Likewise.
12566 (generic_printstr): Likewise.
12567
12568 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
12569
12570 * xml-support.h (struct gdb_xml_value): Add constructor.
12571 <value>: Change type to unique_xmalloc_ptr.
12572 (gdb_xml_value_s): Remove typedef.
12573 (DEF_VEC_O (gdb_xml_value_s)): Remove.
12574 (gdb_xml_element_start_handler): Change parameter type to
12575 std::vector.
12576 (xml_find_attribute): Likewise.
12577 * xml-support.c (xml_find_attribute): Change parameter type to
12578 std::vector and adjust.
12579 (gdb_xml_values_cleanup): Remove.
12580 (gdb_xml_parser::start_element): Adjust to std::vector.
12581 (xinclude_start_include): Change paraeter type to std::vector
12582 and adjust.
12583 * btrace.c (check_xml_btrace_version): Likewise.
12584 (parse_xml_btrace_block): Likewise.
12585 (parse_xml_btrace_pt_config_cpu): Likewise.
12586 (parse_xml_btrace_pt): Likewise.
12587 (parse_xml_btrace_conf_bts): Likewise.
12588 (parse_xml_btrace_conf_pt): Likewise.
12589 * memory-map.c (memory_map_start_memory): Likewise.
12590 (memory_map_start_property): Likewise.
12591 * osdata.c (osdata_start_osdata): Likewise.
12592 (osdata_start_item): Likewise.
12593 (osdata_start_column): Likewise.
12594 * remote.c (start_thread): Likewise.
12595 * solib-aix.c (library_list_start_library): Likewise.
12596 (library_list_start_list): Likewise.
12597 * solib-svr4.c (library_list_start_library): Likewise.
12598 (svr4_library_list_start_list): Likewise.
12599 * solib-target.c (library_list_start_segment): Likewise.
12600 (library_list_start_section): Likewise.
12601 (library_list_start_library): Likewise.
12602 (library_list_start_list): Likewise.
12603 * tracepoint.c (traceframe_info_start_memory): Likewise.
12604 (traceframe_info_start_tvar): Likewise.
12605 * xml-syscall.c (syscall_start_syscall): Likewise.
12606 * xml-tdesc.c (tdesc_start_target): Likewise.
12607 (tdesc_start_feature): Likewise.
12608 (tdesc_start_reg): Likewise.
12609 (tdesc_start_union): Likewise.
12610 (tdesc_start_struct): Likewise.
12611 (tdesc_start_flags): Likewise.
12612 (tdesc_start_enum): Likewise.
12613 (tdesc_start_field): Likewise.
12614 (tdesc_start_enum_value): Likewise.
12615 (tdesc_start_vector): Likewise.
12616
12617 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
12618
12619 * extension.h (struct xmethod_worker) <clone>: Remove.
12620 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
12621 Remove.
12622 (python_xmethod_worker::clone): Remove.
12623 * valops.c (find_overload_match): Use std::move instead of
12624 clone.
12625
12626 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
12627
12628 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
12629 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
12630 <free_xmethod_worker_data>: Remove.
12631 <get_matching_xmethod_workers>: Chance VEC to std::vector.
12632 <get_xmethod_arg_types>: Remove.
12633 <get_xmethod_result_type>: Remove.
12634 <invoke_xmethod>: Remove.
12635 * extension.c (new_xmethod_worker): Remove.
12636 (clone_xmethod_worker): Remove.
12637 (get_matching_xmethod_workers): Return void, pass std::vector by
12638 pointer.
12639 (get_xmethod_arg_types): Rename to...
12640 (xmethod_worker::get_arg_types): ... this, and adjust.
12641 (get_xmethod_result_type): Rename to...
12642 (xmethod_worker::get_result_type): ... this, and adjust.
12643 (invoke_xmethod): Remove.
12644 (free_xmethod_worker): Remove.
12645 (free_xmethod_worker_vec): Remove.
12646 * extension.h (enum ext_lang_rc): Move here from
12647 extension-priv.h.
12648 (struct xmethod_worker): Add constructor and destructor.
12649 <data>: Remove.
12650 <value>: Remove.
12651 <invoke, clone, do_get_result_type, do_get_arg_types>: New
12652 virtual pure methods.
12653 <get_arg_types, get_result_type>: New methods.
12654 (xmethod_worker_ptr): Remove typedef.
12655 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
12656 (xmethod_worker_vec): Remove typedef.
12657 (xmethod_worker_up): New typedef.
12658 (invoke_xmethod): Remove.
12659 (clone_xmethod_worker): Remove.
12660 (free_xmethod_worker): Remove.
12661 (free_xmethod_worker_vec): Remove.
12662 (get_xmethod_arg_types): Remove.
12663 (get_xmethod_result_type): Remove.
12664 * valops.c (find_method_list): Use std::vector, don't use
12665 intermediate vector.
12666 (value_find_oload_method_list): Use std::vector.
12667 (find_overload_match): Use std::vector.
12668 (find_oload_champ): Use std::vector.
12669 * value.c (value_free): Use operator delete.
12670 (value_of_xmethod): Rename to...
12671 (value_from_xmethod): ... this. Don't assign
12672 xmethod_worker::value, take rvalue-reference.
12673 (result_type_of_xmethod): Adjust.
12674 (call_xmethod): Adjust.
12675 * value.h: Include extension.h.
12676 (struct xmethod_worker): Don't forward-declare.
12677 (value_of_xmethod): Rename to...
12678 (value_from_xmethod): ... this, take rvalue-reference.
12679 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
12680 (struct python_xmethod_worker): ... this, add constructor and
12681 destructor.
12682 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
12683 (gdbpy_free_xmethod_worker_data): Rename to...
12684 (python_xmethod_worker::~python_xmethod_worker): ... this and
12685 adjust.
12686 (gdbpy_clone_xmethod_worker_data): Rename to...
12687 (python_xmethod_worker::clone): ... this and adjust.
12688 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
12689 temporary vector.
12690 (gdbpy_get_xmethod_arg_types): Rename to...
12691 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
12692 (gdbpy_get_xmethod_result_type): Rename to...
12693 (python_xmethod_worker::do_get_result_type): ... this and
12694 adjust.
12695 (gdbpy_invoke_xmethod): Rename to...
12696 (python_xmethod_worker::invoke): ... this and adjust.
12697 (new_python_xmethod_worker): Rename to...
12698 (python_xmethod_worker::python_xmethod_worker): ... this and
12699 adjust.
12700 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
12701 Remove.
12702 (gdbpy_free_xmethod_worker_data): Remove.
12703 (gdbpy_get_matching_xmethod_workers): Use std::vector.
12704 (gdbpy_get_xmethod_arg_types): Remove.
12705 (gdbpy_get_xmethod_result_type): Remove.
12706 (gdbpy_invoke_xmethod): Remove.
12707 * python/python.c (python_extension_ops): Remove obsolete
12708 callbacks.
12709
12710 2018-01-05 Pedro Alves <palves@redhat.com>
12711
12712 PR gdb/18653
12713 * common/signals-state-save-restore.c
12714 (save_original_signals_state): New parameter 'quiet'. Warn if we
12715 find a custom handler preinstalled, instead of internal erroring.
12716 But only warn if !quiet.
12717 * common/signals-state-save-restore.h
12718 (save_original_signals_state): New parameter 'quiet'.
12719 * main.c (captured_main_1): Move save_original_signals_state call
12720 after option handling, and pass QUIET.
12721
12722 2018-01-05 Pedro Alves <palves@redhat.com>
12723
12724 * spu-tdep.c (spu_catch_start): Pass
12725 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
12726
12727 2018-01-05 Pedro Alves <palves@redhat.com>
12728
12729 PR gdb/22670
12730 * ada-lang.c (literal_symbol_name_matcher): New function.
12731 (ada_get_symbol_name_matcher): Use it for
12732 symbol_name_match_type::SEARCH_NAME.
12733 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
12734 it down instead of assuming symbol_name_match_type::FULL.
12735 * block.h (block_lookup_symbol): New parameter 'match_type'.
12736 * c-valprint.c (print_unpacked_pointer): Use
12737 lookup_symbol_search_name instead of lookup_symbol.
12738 * compile/compile-object-load.c (get_out_value_type): Pass down
12739 symbol_name_match_type::SEARCH_NAME.
12740 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
12741 symbol_name_match_type::FULL.
12742 * cp-support.c (cp_get_symbol_name_matcher): Handle
12743 symbol_name_match_type::SEARCH_NAME.
12744 * infrun.c (insert_exception_resume_breakpoint): Use
12745 lookup_symbol_search_name.
12746 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
12747 * psymtab.c (maintenance_check_psymtabs): Use
12748 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
12749 * stack.c (print_frame_args): Use lookup_symbol_search_name and
12750 SYMBOL_SEARCH_NAME.
12751 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
12752 if symbol_name_match_type::SEARCH_NAME.
12753 (lookup_symbol_in_language): Pass down
12754 symbol_name_match_type::FULL.
12755 (lookup_symbol_search_name): New.
12756 (lookup_language_this): Pass down
12757 symbol_name_match_type::SEARCH_NAME.
12758 (lookup_symbol_aux, lookup_local_symbol): New parameter
12759 'match_type'. Pass it down.
12760 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
12761 (lookup_symbol_search_name): New declaration.
12762 (lookup_symbol_in_block): New 'match_type' parameter.
12763
12764 2018-01-05 Pedro Alves <palves@redhat.com>
12765
12766 PR gdb/22670
12767 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
12768 ada_lookup_symbol.
12769 (ada_lookup_symbol): Reimplement in terms of
12770 ada_lookup_symbol_list, bits factored out from
12771 ada_lookup_encoded_symbol.
12772
12773 2018-01-05 Joel Brobecker <brobecker@adacore.com>
12774
12775 * ada-exp.y (write_object_renaming): When subscripting an array
12776 using a symbol as the index, pass the block in call to
12777 ada_lookup_encoded_symbol when looking that symbol up.
12778
12779 2018-01-05 Jerome Guitton <guitton@adacore.com>
12780
12781 * ada-lang.c (ada_array_length): Use ada_index_type instead of
12782 TYPE_INDEX_TYPE.
12783
12784 2018-01-05 Joel Brobecker <brobecker@adacore.com>
12785
12786 * ada-lang.c (ada_to_fixed_value_create): Add handling of
12787 the case where VALUE_LVAL (val0) is not lval_memory.
12788
12789 2018-01-05 Xavier Roirand <roirand@adacore.com>
12790
12791 * ada-valprint.c (print_optional_low_bound): Handle
12792 character-indexed array printing like boolean-indexed array
12793 printing.
12794
12795 2018-01-05 Joel Brobecker <brobecker@adacore.com>
12796
12797 * NEWS: Create a new section for the next release branch.
12798 Rename the section of the current branch, now that it has
12799 been cut.
12800
12801 2018-01-05 Joel Brobecker <brobecker@adacore.com>
12802
12803 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
12804 * version.in: Bump version to 8.1.50.DATE-git.
12805
12806 2018-01-03 Xavier Roirand <roirand@adacore.com>
12807
12808 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
12809 Add field.
12810 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
12811 Add field.
12812 (default_exception_support_info) <catch_handlers_sym>: Add field.
12813 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
12814 (ada_exception_name_addr_1): Add "catch handlers" handling.
12815 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
12816 Update all callers.
12817 (create_excep_cond_exprs) <ex>: Add parameter.
12818 (re_set_exception): Update create_excep_cond_exprs call.
12819 (print_it_exception, print_one_exception, print_mention_exception)
12820 (print_recreate_exception): Add "catch handler" handling.
12821 (allocate_location_catch_handlers, re_set_catch_handlers)
12822 (check_status_catch_handlers, print_it_catch_handlers)
12823 (print_one_catch_handlers, print_mention_catch_handlers)
12824 (print_recreate_catch_handlers): New function.
12825 (catch_handlers_breakpoint_ops): New variable.
12826 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
12827 Add parameter. Add "catch handler" handling.
12828 (ada_exception_sym_name, ada_exception_breakpoint_ops):
12829 Add "catch handler" handling.
12830 (ada_exception_catchpoint_cond_string): Add "catch handler"
12831 handling.
12832 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
12833 call.
12834 (catch_ada_handlers_command): New function.
12835 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
12836 operations structure.
12837 (_initialize_ada_language): Add "catch handlers" command entry.
12838 * NEWS: Document "catch handlers" feature.
12839
12840 2018-01-02 Joel Brobecker <brobecker@adacore.com>
12841
12842 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
12843 account when creating the array type of the slice.
12844 (ada_value_slice): Likewise.
12845
12846 2018-01-02 Joel Brobecker <brobecker@adacore.com>
12847
12848 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
12849 New enum value.
12850 (create_array_type_with_stride): Add byte_stride_prop parameter.
12851 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
12852 New parameter. Update all callers in this file.
12853 (array_type_has_dynamic_stride): New function.
12854 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
12855 of arrays with dynamic byte strides.
12856 * dwarf2read.c (read_array_type): Add support for dynamic
12857 DW_AT_byte_stride attributes.
12858
12859 2018-01-02 Joel Brobecker <brobecker@adacore.com>
12860
12861 * dwarf2read.c (read_unspecified_type): Treat
12862 DW_TAG_enumeration_type DIEs from Ada units as stubs.
12863
12864 2018-01-01 Joel Brobecker <brobecker@adacore.com>
12865
12866 Update copyright year range in all GDB files.
12867
12868 2018-01-01 Joel Brobecker <brobecker@adacore.com>
12869
12870 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
12871 and gdb/testsuite/gdb.base/step-line.c.
12872
12873 2018-01-01 Joel Brobecker <brobecker@adacore.com>
12874
12875 * copyright.py (main): Dump the contents of
12876 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
12877 even if BY_HAND is empty.
12878
12879 2018-01-01 Joel Brobecker <brobecker@adacore.com>
12880
12881 * top.c (print_gdb_version): Update Copyright year in version
12882 message.
12883
12884 2018-01-01 Joel Brobecker <brobecker@adacore.com>
12885
12886 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
12887
12888 For older changes see ChangeLog-2017.
12889 \f
12890 Local Variables:
12891 mode: change-log
12892 left-margin: 8
12893 fill-column: 74
12894 version-control: never
12895 coding: utf-8
12896 End:
This page took 0.490608 seconds and 4 git commands to generate.