Regenerate gdbarch.h
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2018-08-31 Pedro Alves <palves@redhat.com>
2
3 * gdbarch.h: Regenerate.
4
5 2018-08-31 Pedro Alves <palves@redhat.com>
6
7 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
8 * target.h (Hardware watchpoint interfaces): Describe
9 continuable/steppable/non-steppable watchpoints.
10 * gdbarch.h, gdbarch.c: Regenerate.
11
12 2018-08-31 Pedro Alves <palves@redhat.com>
13
14 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
15 Delete.
16 * s390-linux-nat.c
17 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
18 * target.h (target_ops::have_continuable_watchpoint): Delete.
19 (target_have_continuable_watchpoint): Delete.
20 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
21 * target-delegates.c: Regenerate.
22
23 2018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
24
25 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
26 the files present in "gnulib/import/m4/".
27
28 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
29
30 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
31 c.sw, c.swsp, and c.sdsp.
32
33 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
34
35 * riscv-tdep.c (struct riscv_inferior_data): Delete.
36 (riscv_read_misa_reg): Don't cache value read into inferior data.
37 (riscv_new_inferior_data): Delete.
38 (riscv_inferior_data_cleanup): Delete.
39 (riscv_inferior_data): Delete.
40 (riscv_invalidate_inferior_data): Delete.
41 (_initialize_riscv_tdep): Remove initialisation of inferior data.
42
43 2018-08-30 Simon Marchi <simon.marchi@ericsson.com>
44
45 * compile/compile-cplus-types.c
46 (compile_cplus_instance::leave_scope): Take the address of scope
47 object.
48 (compile_cplus_instance::convert_qualified_base): Compare quals
49 to 0.
50
51 2018-08-30 Keith Seitz <keiths@redhat.com>
52
53 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
54 Use "%s" and host_address_to_string instead of "%p" in printf.
55
56 2018-08-29 Keith Seitz <keiths@redhat.com>
57
58 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
59 and compile-cplus-types.c.
60 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
61 * c-lang.c (cplus_language_defn): Set C++ compile functions.
62 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
63 Declare.
64 * compile/compile-c-support.c: Include compile-cplus.h.
65 (load_libcompile): Templatize.
66 (get_compile_context): "New" function.
67 (c_get_compile_context): Use get_compile_context.
68 (cplus_get_compile_context): New function.
69 (cplus_push_user_expression, cplus_pop_user_expression)
70 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
71 (cplus_compute_program): Define new structs/functions.
72 * compile/compile-cplus-symmbols.c: New file.
73 * compile/compile-cplus-types.c: New file.
74 * compile/compile-cplus.h: New file.
75 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
76 Declare.
77 * compile/compile-object-load.c (get_out_value_type): Use
78 strncmp_iw when comparing symbol names.
79 (compile_object_load): Add mst_bss and mst_data.
80 * compile/compile.c (_initialize_compile): Remove
81 -Wno-implicit-function-declaration from `compile_args'.
82 * compile/gcc-cp-plugin.h: New file.
83 * NEWS: Mention C++ compile support and new debug options.
84
85 2018-08-29 Keith Seitz <keiths@redhat.com>
86
87 * linespec.c (collect_info::add_symbol): Make virtual.
88 (struct symbol_searcher_collect_info): New struct.
89 (symbol_searcher::find_all_symbols): New method.
90 * symtab.h (class symbol_searcher): New class.
91
92 2018-08-29 Keith Seitz <keiths@redhat.com>
93
94 * linespec.c (struct linespec) <function_symbols, label_symbols>:
95 Change to vector of block_symbol. Update all users.
96 (struct collect_info) <symbols>: Likewise.
97 (collect_info::add_symbol): Take block_symbol as argument.
98 Update all callers.
99 (decode_compound_collector) <m_symbols>: Change type to vector
100 of block_symbol. Update all users.
101 (decode_compound_collector::operator ()): Change parameter type
102 to block_symbol.
103 (find_method, find_function_symbols, find_linespec_symbols)
104 (find_label_symbols_in_block, find_label_symbols): Change symbol
105 vectors to block_symbol vectors.
106 * symtab.h (symbol_found_callback_ftype): Change parameter type to
107 block_symbol.
108
109 2018-08-29 Keith Seitz <keiths@redhat.com>
110
111 * linespec.c (symbolp): Remove typedef and VEC definitions.
112 (bound_minimal_symbol_d): Likewise.
113
114 2018-08-29 Keith Seitz <keiths@redhat.com>
115
116 * linespec.c (decode_compound_collector::decode_compound_collector):
117 Remove initialization for `m_symtabs'.
118 (decode_compound_collector::release_symbols): Change return type
119 to std::vector. Update all callers.
120 (class decode_compound_collector) <m_symbols>: Change type to
121 std::vector.
122 (lookup_prefix_sym): Change return type to std::vector. Update all
123 callers.
124 (compare_symbols): Remove.
125 (std_compare_symbols): Rename to `compare_symbols'.
126 (find_method): Change `sym_classes' parameter to std::vector.
127 Update all callers. Use std::sort to sort sym_classes.
128 (find_linespec_symbols): Remove cleanup.
129
130 2018-08-29 Keith Seitz <keiths@redhat.com>
131
132 * linespec.c (struct linespec) <minimal_symbols>: Change type to
133 std::vector. Update all users.
134 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
135 (struct collect_info) <minimal_symbols>: Likewise.
136 (compare_msymbols): Return bool. Change parameters to const
137 bound_minimal_symbol references.
138 (find_method, find_function_symbols, find_linespec_symbols): Change
139 `minsyms' parameter to std::vector. Update all callers.
140
141 2018-08-29 Keith Seitz <keiths@redhat.com>
142
143 * linespec.c (struct linespec) <label_symbols>: Change type to
144 std::vector. Update all users.
145 (find_label_symbols_in_block): Change `result' parameter to
146 std::vector. Update all callers.
147 (find_label_symbols): Return std::vector. Update all callers.
148
149 2018-08-29 Keith Seitz <keiths@redhat.com>
150
151 * linespec.c (struct linespec) <function_symbols>: Change type to
152 std::vector. Update all users.
153 (struct collect_info) <function_symbols>: Likewise.
154 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
155 (std_compare_symbols): New function.
156 (find_method, find_function_symbols, find_linespec_symbols)
157 (find_label_symbols_in_block): Change `symbols' parameter to
158 std::vector. Update all callers.
159 (find_label_symbols): Likewise for `function_symbols' and
160 `label_funcs_ret'.
161
162 2018-08-29 Keith Seitz <keiths@redhat.com>
163
164 * linespec.c (symtab_vector_up): Define.
165 (struct linespec) <file_symtabs>: Change type to std::vector *.
166 Update all uses.
167 (struct collect_info) <file_symtabs>: Likewise.
168 (collect_symtabs_from_filename): Return symtab_vector_up.
169 Update all callers.
170 (decode_objc): Remove cleanup.
171 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
172 (symtab_collector::release_symtabs): Return symtab_vector_up.
173 Update all callers.
174 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
175 Update all users.
176 (collect_symtabs_from_filename, symtabs_from_filename): Return
177 symtab_vector_up. Update all callers.
178
179 2018-08-29 Tom Tromey <tom@tromey.com>
180
181 * csky-tdep.c (csky_analyze_prologue): Use
182 core_addr_to_string_nz.
183
184 2018-08-29 Tom Tromey <tom@tromey.com>
185
186 * windows-nat.c (struct xlate_exception) <them>: Change type to
187 DWORD.
188 (xlate): Fix formatting. Remove last entry.
189 (struct xlate_exception, xlate): Comment out.
190 (windows_nat_target::resume): Use ranged for.
191
192 2018-08-29 Jim Wilson <jimw@sifive.com>
193
194 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
195 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
196 of NT_PRFPREG.
197 (riscv_linux_nat_target::store_registers): Likewise.
198
199 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
200
201 PR gdb/23555
202 PR gdb/23558
203 * gnulib/aclocal.m4: Regenerate.
204 * gnulib/config.in: Regenerate.
205 * gnulib/configure: Regenerate.
206 * gnulib/import/Makefile.am: Update.
207 * gnulib/import/Makefile.in: Update.
208 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
209 * gnulib/import/_Noreturn.h: ... this.
210 * gnulib/import/alloca.in.h: Update.
211 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
212 * gnulib/import/arg-nonnull.h: ... this.
213 * gnulib/import/assure.h: Update.
214 * gnulib/import/at-func.c: Update.
215 * gnulib/import/basename-lgpl.c: Update.
216 * gnulib/import/extra/snippet/c++defs.h: Rename to...
217 * gnulib/import/c++defs.h: ... this.
218 * gnulib/import/canonicalize-lgpl.c: Update.
219 * gnulib/import/cdefs.h: Update.
220 * gnulib/import/chdir-long.c: Update.
221 * gnulib/import/chdir-long.h: Update.
222 * gnulib/import/cloexec.c: Update.
223 * gnulib/import/cloexec.h: Update.
224 * gnulib/import/close.c: Update.
225 * gnulib/import/closedir.c: Update.
226 * gnulib/import/config.charset: Update.
227 * gnulib/import/dirent-private.h: Update.
228 * gnulib/import/dirent.in.h: Update.
229 * gnulib/import/dirfd.c: Update.
230 * gnulib/import/dirname-lgpl.c: Update.
231 * gnulib/import/dirname.h: Update.
232 * gnulib/import/dosname.h: Update.
233 * gnulib/import/dup-safer-flag.c: Update.
234 * gnulib/import/dup-safer.c: Update.
235 * gnulib/import/dup.c: Update.
236 * gnulib/import/dup2.c: Update.
237 * gnulib/import/errno.in.h: Update.
238 * gnulib/import/error.c: Update.
239 * gnulib/import/error.h: Update.
240 * gnulib/import/exitfail.c: Update.
241 * gnulib/import/exitfail.h: Update.
242 * gnulib/import/extra/update-copyright: Update.
243 * gnulib/import/fchdir.c: Update.
244 * gnulib/import/fcntl.c: Update.
245 * gnulib/import/fcntl.in.h: Update.
246 * gnulib/import/fd-hook.c: Update.
247 * gnulib/import/fd-hook.h: Update.
248 * gnulib/import/fd-safer-flag.c: Update.
249 * gnulib/import/fd-safer.c: Update.
250 * gnulib/import/fdopendir.c: Update.
251 * gnulib/import/filename.h: Update.
252 * gnulib/import/filenamecat-lgpl.c: Update.
253 * gnulib/import/filenamecat.h: Update.
254 * gnulib/import/flexmember.h: Update.
255 * gnulib/import/float+.h: Update.
256 * gnulib/import/float.c: Update.
257 * gnulib/import/float.in.h: Update.
258 * gnulib/import/fnmatch.c: Update.
259 * gnulib/import/fnmatch.in.h: Update.
260 * gnulib/import/fnmatch_loop.c: Update.
261 * gnulib/import/fpucw.h: Update.
262 * gnulib/import/frexp.c: Update.
263 * gnulib/import/frexpl.c: Update.
264 * gnulib/import/fstat.c: Update.
265 * gnulib/import/fstatat.c: Update.
266 * gnulib/import/getcwd-lgpl.c: Update.
267 * gnulib/import/getcwd.c: Update.
268 * gnulib/import/getdtablesize.c: Update.
269 * gnulib/import/getlogin_r.c: Update.
270 * gnulib/import/getprogname.c: Update.
271 * gnulib/import/getprogname.h: Update.
272 * gnulib/import/gettext.h: Update.
273 * gnulib/import/gettimeofday.c: Update.
274 * gnulib/import/glob-libc.h: Update.
275 * gnulib/import/glob.c: Update.
276 * gnulib/import/glob.in.h: Update.
277 * gnulib/import/glob_internal.h: Update.
278 * gnulib/import/glob_pattern_p.c: Update.
279 * gnulib/import/globfree.c: Update.
280 * gnulib/import/hard-locale.c: Update.
281 * gnulib/import/hard-locale.h: Update.
282 * gnulib/import/intprops.h: Update.
283 * gnulib/import/inttypes.in.h: Update.
284 * gnulib/import/isnan.c: Update.
285 * gnulib/import/isnand-nolibm.h: Update.
286 * gnulib/import/isnand.c: Update.
287 * gnulib/import/isnanl-nolibm.h: Update.
288 * gnulib/import/isnanl.c: Update.
289 * gnulib/import/itold.c: Update.
290 * gnulib/import/libc-config.h: Update.
291 * gnulib/import/limits.in.h: Update.
292 * gnulib/import/localcharset.c: Update.
293 * gnulib/import/localcharset.h: Update.
294 * gnulib/import/localtime-buffer.c: Update.
295 * gnulib/import/localtime-buffer.h: Update.
296 * gnulib/import/lstat.c: Update.
297 * gnulib/import/m4/00gnulib.m4: Update.
298 * gnulib/import/m4/__inline.m4: Update.
299 * gnulib/import/m4/absolute-header.m4: Update.
300 * gnulib/import/m4/alloca.m4: Update.
301 * gnulib/import/m4/builtin-expect.m4: Update.
302 * gnulib/import/m4/canonicalize.m4: Update.
303 * gnulib/import/m4/chdir-long.m4: Update.
304 * gnulib/import/m4/close.m4: Update.
305 * gnulib/import/m4/closedir.m4: Update.
306 * gnulib/import/m4/configmake.m4: Update.
307 * gnulib/import/m4/d-ino.m4: Update.
308 * gnulib/import/m4/d-type.m4: Update.
309 * gnulib/import/m4/dirent_h.m4: Update.
310 * gnulib/import/m4/dirfd.m4: Update.
311 * gnulib/import/m4/dirname.m4: Update.
312 * gnulib/import/m4/double-slash-root.m4: Update.
313 * gnulib/import/m4/dup.m4: Update.
314 * gnulib/import/m4/dup2.m4: Update.
315 * gnulib/import/m4/eealloc.m4: Update.
316 * gnulib/import/m4/environ.m4: Update.
317 * gnulib/import/m4/errno_h.m4: Update.
318 * gnulib/import/m4/error.m4: Update.
319 * gnulib/import/m4/exponentd.m4: Update.
320 * gnulib/import/m4/exponentl.m4: Update.
321 * gnulib/import/m4/extensions.m4: Update.
322 * gnulib/import/m4/extern-inline.m4: Update.
323 * gnulib/import/m4/fchdir.m4: Update.
324 * gnulib/import/m4/fcntl-o.m4: Update.
325 * gnulib/import/m4/fcntl.m4: Update.
326 * gnulib/import/m4/fcntl_h.m4: Update.
327 * gnulib/import/m4/fdopendir.m4: Update.
328 * gnulib/import/m4/filenamecat.m4: Update.
329 * gnulib/import/m4/flexmember.m4: Update.
330 * gnulib/import/m4/float_h.m4: Update.
331 * gnulib/import/m4/fnmatch.m4: Update.
332 * gnulib/import/m4/fnmatch_h.m4: Update.
333 * gnulib/import/m4/fpieee.m4: Update.
334 * gnulib/import/m4/frexp.m4: Update.
335 * gnulib/import/m4/frexpl.m4: Update.
336 * gnulib/import/m4/fstat.m4: Update.
337 * gnulib/import/m4/fstatat.m4: Update.
338 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
339 * gnulib/import/m4/getcwd-path-max.m4: Update.
340 * gnulib/import/m4/getcwd.m4: Update.
341 * gnulib/import/m4/getdtablesize.m4: Update.
342 * gnulib/import/m4/getlogin.m4: Update.
343 * gnulib/import/m4/getlogin_r.m4: Update.
344 * gnulib/import/m4/getpagesize.m4: Update.
345 * gnulib/import/m4/getprogname.m4: Update.
346 * gnulib/import/m4/gettimeofday.m4: Update.
347 * gnulib/import/m4/glibc21.m4: Update.
348 * gnulib/import/m4/glob.m4: Update.
349 * gnulib/import/m4/glob_h.m4: Update.
350 * gnulib/import/m4/gnulib-cache.m4: Update.
351 * gnulib/import/m4/gnulib-common.m4: Update.
352 * gnulib/import/m4/gnulib-comp.m4: Update.
353 * gnulib/import/m4/gnulib-tool.m4: Update.
354 * gnulib/import/m4/hard-locale.m4: Update.
355 * gnulib/import/m4/include_next.m4: Update.
356 * gnulib/import/m4/inttypes-pri.m4: Update.
357 * gnulib/import/m4/inttypes.m4: Update.
358 * gnulib/import/m4/isnand.m4: Update.
359 * gnulib/import/m4/isnanl.m4: Update.
360 * gnulib/import/m4/largefile.m4: Update.
361 * gnulib/import/m4/limits-h.m4: Update.
362 * gnulib/import/m4/localcharset.m4: Update.
363 * gnulib/import/m4/locale-fr.m4: Update.
364 * gnulib/import/m4/locale-ja.m4: Update.
365 * gnulib/import/m4/locale-zh.m4: Update.
366 * gnulib/import/m4/localtime-buffer.m4: Update.
367 * gnulib/import/m4/longlong.m4: Update.
368 * gnulib/import/m4/lstat.m4: Update.
369 * gnulib/import/m4/malloc.m4: Update.
370 * gnulib/import/m4/malloca.m4: Update.
371 * gnulib/import/m4/math_h.m4: Update.
372 * gnulib/import/m4/mbrtowc.m4: Update.
373 * gnulib/import/m4/mbsinit.m4: Update.
374 * gnulib/import/m4/mbsrtowcs.m4: Update.
375 * gnulib/import/m4/mbstate_t.m4: Update.
376 * gnulib/import/m4/memchr.m4: Update.
377 * gnulib/import/m4/memmem.m4: Update.
378 * gnulib/import/m4/mempcpy.m4: Update.
379 * gnulib/import/m4/memrchr.m4: Update.
380 * gnulib/import/m4/mkdir.m4: Update.
381 * gnulib/import/m4/mkstemp.m4: Update.
382 * gnulib/import/m4/mmap-anon.m4: Update.
383 * gnulib/import/m4/mode_t.m4: Update.
384 * gnulib/import/m4/msvc-inval.m4: Update.
385 * gnulib/import/m4/msvc-nothrow.m4: Update.
386 * gnulib/import/m4/multiarch.m4: Update.
387 * gnulib/import/m4/nocrash.m4: Update.
388 * gnulib/import/m4/off_t.m4: Update.
389 * gnulib/import/m4/onceonly.m4: Update.
390 * gnulib/import/m4/open-cloexec.m4: Update.
391 * gnulib/import/m4/open.m4: Update.
392 * gnulib/import/m4/openat.m4: Update.
393 * gnulib/import/m4/opendir.m4: Update.
394 * gnulib/import/m4/pathmax.m4: Update.
395 * gnulib/import/m4/rawmemchr.m4: Update.
396 * gnulib/import/m4/readdir.m4: Update.
397 * gnulib/import/m4/readlink.m4: Update.
398 * gnulib/import/m4/realloc.m4: Update.
399 * gnulib/import/m4/rename.m4: Update.
400 * gnulib/import/m4/rewinddir.m4: Update.
401 * gnulib/import/m4/rmdir.m4: Update.
402 * gnulib/import/m4/save-cwd.m4: Update.
403 * gnulib/import/m4/secure_getenv.m4: Update.
404 * gnulib/import/m4/setenv.m4: Update.
405 * gnulib/import/m4/signal_h.m4: Update.
406 * gnulib/import/m4/ssize_t.m4: Update.
407 * gnulib/import/m4/stat-time.m4: Update.
408 * gnulib/import/m4/stat.m4: Update.
409 * gnulib/import/m4/std-gnu11.m4: Update.
410 * gnulib/import/m4/stdbool.m4: Update.
411 * gnulib/import/m4/stddef_h.m4: Update.
412 * gnulib/import/m4/stdint.m4: Update.
413 * gnulib/import/m4/stdio_h.m4: Update.
414 * gnulib/import/m4/stdlib_h.m4: Update.
415 * gnulib/import/m4/strchrnul.m4: Update.
416 * gnulib/import/m4/strdup.m4: Update.
417 * gnulib/import/m4/strerror.m4: Update.
418 * gnulib/import/m4/string_h.m4: Update.
419 * gnulib/import/m4/strstr.m4: Update.
420 * gnulib/import/m4/strtok_r.m4: Update.
421 * gnulib/import/m4/sys_socket_h.m4: Update.
422 * gnulib/import/m4/sys_stat_h.m4: Update.
423 * gnulib/import/m4/sys_time_h.m4: Update.
424 * gnulib/import/m4/sys_types_h.m4: Update.
425 * gnulib/import/m4/tempname.m4: Update.
426 * gnulib/import/m4/time_h.m4: Update.
427 * gnulib/import/m4/unistd-safer.m4: Update.
428 * gnulib/import/m4/unistd_h.m4: Update.
429 * gnulib/import/m4/warn-on-use.m4: Update.
430 * gnulib/import/m4/wchar_h.m4: Update.
431 * gnulib/import/m4/wchar_t.m4: Update.
432 * gnulib/import/m4/wctype_h.m4: Update.
433 * gnulib/import/m4/wint_t.m4: Update.
434 * gnulib/import/malloc.c: Update.
435 * gnulib/import/malloc/scratch_buffer.h: Update.
436 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
437 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
438 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
439 * gnulib/import/malloca.c: Update.
440 * gnulib/import/malloca.h: Update.
441 * gnulib/import/malloca.valgrind: Update.
442 * gnulib/import/math.in.h: Update.
443 * gnulib/import/mbrtowc.c: Update.
444 * gnulib/import/mbsinit.c: Update.
445 * gnulib/import/mbsrtowcs-impl.h: Update.
446 * gnulib/import/mbsrtowcs-state.c: Update.
447 * gnulib/import/mbsrtowcs.c: Update.
448 * gnulib/import/memchr.c: Update.
449 * gnulib/import/memmem.c: Update.
450 * gnulib/import/mempcpy.c: Update.
451 * gnulib/import/memrchr.c: Update.
452 * gnulib/import/mkdir.c: Update.
453 * gnulib/import/mkstemp.c: Update.
454 * gnulib/import/msvc-inval.c: Update.
455 * gnulib/import/msvc-inval.h: Update.
456 * gnulib/import/msvc-nothrow.c: Update.
457 * gnulib/import/msvc-nothrow.h: Update.
458 * gnulib/import/open.c: Update.
459 * gnulib/import/openat-die.c: Update.
460 * gnulib/import/openat-priv.h: Update.
461 * gnulib/import/openat-proc.c: Update.
462 * gnulib/import/openat.c: Update.
463 * gnulib/import/openat.h: Update.
464 * gnulib/import/opendir.c: Update.
465 * gnulib/import/pathmax.h: Update.
466 * gnulib/import/pipe-safer.c: Update.
467 * gnulib/import/rawmemchr.c: Update.
468 * gnulib/import/readdir.c: Update.
469 * gnulib/import/readlink.c: Update.
470 * gnulib/import/realloc.c: Update.
471 * gnulib/import/ref-add.sin: Update.
472 * gnulib/import/ref-del.sin: Update.
473 * gnulib/import/rename.c: Update.
474 * gnulib/import/rewinddir.c: Update.
475 * gnulib/import/rmdir.c: Update.
476 * gnulib/import/same-inode.h: Update.
477 * gnulib/import/save-cwd.c: Update.
478 * gnulib/import/save-cwd.h: Update.
479 * gnulib/import/scratch_buffer.h: Update.
480 * gnulib/import/secure_getenv.c: Update.
481 * gnulib/import/setenv.c: Update.
482 * gnulib/import/signal.in.h: Update.
483 * gnulib/import/stat-time.c: Update.
484 * gnulib/import/stat-time.h: Update.
485 * gnulib/import/stat-w32.c: Update.
486 * gnulib/import/stat-w32.h: Update.
487 * gnulib/import/stat.c: Update.
488 * gnulib/import/stdbool.in.h: Update.
489 * gnulib/import/stddef.in.h: Update.
490 * gnulib/import/stdint.in.h: Update.
491 * gnulib/import/stdio.in.h: Update.
492 * gnulib/import/stdlib.in.h: Update.
493 * gnulib/import/str-two-way.h: Update.
494 * gnulib/import/strchrnul.c: Update.
495 * gnulib/import/strdup.c: Update.
496 * gnulib/import/streq.h: Update.
497 * gnulib/import/strerror-override.c: Update.
498 * gnulib/import/strerror-override.h: Update.
499 * gnulib/import/strerror.c: Update.
500 * gnulib/import/string.in.h: Update.
501 * gnulib/import/stripslash.c: Update.
502 * gnulib/import/strnlen1.c: Update.
503 * gnulib/import/strnlen1.h: Update.
504 * gnulib/import/strstr.c: Update.
505 * gnulib/import/strtok_r.c: Update.
506 * gnulib/import/sys_stat.in.h: Update.
507 * gnulib/import/sys_time.in.h: Update.
508 * gnulib/import/sys_types.in.h: Update.
509 * gnulib/import/tempname.c: Update.
510 * gnulib/import/tempname.h: Update.
511 * gnulib/import/time.in.h: Update.
512 * gnulib/import/unistd--.h: Update.
513 * gnulib/import/unistd-safer.h: Update.
514 * gnulib/import/unistd.in.h: Update.
515 * gnulib/import/unsetenv.c: Update.
516 * gnulib/import/verify.h: Update.
517 * gnulib/import/extra/snippet/warn-on-use.h: Update.
518 * gnulib/import/wchar.in.h: Update.
519 * gnulib/import/wctype.in.h: Update.
520 * gnulib/import/xalloc-oversized.h: Update.
521 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
522 "53e2c179f26a890fa6685af4b6c1397ee370433b".
523
524 2018-08-16 Gary Benson <gbenson@redhat.com>
525
526 PR gdb/13000:
527 * gdb/main.c (captured_main_1): Exit with nonzero status
528 in batch mode if the last command to be executed failed.
529 * NEWS: Mention the above.
530
531 2018-08-29 Simon Marchi <simon.marchi@ericsson.com>
532
533 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
534 end of warning message.
535
536 2018-08-29 Alan Hayward <alan.hayward@arm.com>
537
538 PR gdb/22943:
539 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
540 (aarch64_extract_return_value): Use
541 aapcs_is_vfp_call_or_return_candidate.
542 (aarch64_return_in_memory): Likewise.
543 (aarch64_store_return_value): Likewise.
544
545 2018-08-29 Alan Hayward <alan.hayward@arm.com>
546
547 * aarch64-tdep.c
548 (aapcs_is_vfp_call_or_return_candidate): Make static
549 (pass_in_v_or_stack): Remove function.
550 (pass_in_v_vfp_candidate): New function.
551 (aarch64_push_dummy_call): Check for float register candidates.
552
553 2018-08-29 Alan Hayward <alan.hayward@arm.com>
554
555 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
556 (aapcs_is_vfp_call_or_return_candidate_1): New function.
557 (aapcs_is_vfp_call_or_return_candidate): Likewise.
558
559 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
560
561 PR build/23399
562 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
563 (struct ipa_sym_addresses): Rename to...
564 (struct ipa_sym_addresses_common): ... this.
565 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
566
567 2018-08-28 Tom Tromey <tom@tromey.com>
568
569 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
570 (token_fifo): Now a std::vector.
571 (yylex, c_parse): Update.
572 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
573 (token_fifo): Now a std::vector.
574 (yylex, d_parse): Update.
575 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
576 (token_fifo): Now a std::vector.
577 (yylex, go_parse): Update.
578
579 2018-08-28 Simon Marchi <simon.marchi@ericsson.com>
580
581 * parser-defs.h (struct type_stack) <elements>: Change type to
582 std::vector<union type_stack_elt>.
583 <depth, size>: Remove.
584 * parse.c (parse_exp_in_context_1): Adjust.
585 (type_stack_reserve): Remove.
586 (check_type_stack_depth): Remove.
587 (insert_into_type_stack): Adjust to std::vector.
588 (insert_type): Likewise.
589 (push_type): Likewise.
590 (push_type_int): Likewise.
591 (insert_type_address_space): Likewise.
592 (pop_type): Likewise.
593 (pop_type_int): Likewise.
594 (pop_typelist): Likewise.
595 (pop_type_stack): Likewise.
596 (append_type_stack): Likewise.
597 (push_type_stack): Likewise.
598 (get_type_stack): Likewise.
599 (type_stack_cleanup): Likewise.
600 (push_typelist): Likewise.
601 (follow_types): Likewise.
602 (_initialize_parse): Likewise.
603
604 2018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
605
606 * NEWS: Mention csky target.
607
608 2018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
609 Hafiz Abid Qadeer <abidh@codesourcery.com>
610 Don Breazeal <donb@codesourcery.com>
611
612 * csky-linux-tdep.c: New file.
613 * csky-tdep.c: Likewise.
614 * csky-tdep.h: Likewise.
615 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
616 csky-tdep.o.
617 (HFILES_NO_SRCDIR): Add csky-tdep.h.
618 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
619 * configure.tgt: Add csky support.
620
621 2018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
622
623 * python/py-framefilter.c (py_print_frame): Print frame architecture
624 when printing on an MI output.
625
626 2018-08-27 Tom Tromey <tom@tromey.com>
627
628 PR build/23087:
629 * configure: Rebuild.
630 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
631
632 2018-08-27 Tom Tromey <tom@tromey.com>
633
634 * aarch64-linux-tdep.c
635 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
636 casts to int.
637
638 2018-08-27 Tom Tromey <tom@tromey.com>
639
640 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
641 unsigned.
642 (ppc64_standard_linkage1, ppc64_standard_linkage2)
643 (ppc64_standard_linkage3, ppc64_standard_linkage4)
644 (ppc64_standard_linkage5, ppc64_standard_linkage6)
645 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
646 unsigned.
647
648 2018-08-27 Tom Tromey <tom@tromey.com>
649
650 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
651 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
652
653 2018-08-27 Tom Tromey <tom@tromey.com>
654
655 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
656 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
657 ULONGEST_MAX.
658 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
659 ULONGEST_MAX.
660 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
661 ULONGEST_MAX.
662 * sparc-linux-tdep.c (sparc32_linux_sigframe)
663 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
664 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
665 ULONGEST_MAX.
666 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
667 (ppc64_linux_sigaction_tramp_frame)
668 (ppc32_linux_sighandler_tramp_frame)
669 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
670 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
671 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
672 * mn10300-linux-tdep.c (am33_linux_sigframe)
673 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
674 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
675 * mips-linux-tdep.c (mips_linux_o32_sigframe)
676 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
677 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
678 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
679 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
680 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
681 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
682 * microblaze-linux-tdep.c
683 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
684 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
685 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
686 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
687 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
688 * common/common-types.h (ULONGEST_MAX): New define.
689 (CORE_ADDR_MAX): Fix formatting.
690 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
691 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
692 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
693 (arm_linux_rt_sigreturn_tramp_frame)
694 (arm_eabi_linux_sigreturn_tramp_frame)
695 (arm_eabi_linux_rt_sigreturn_tramp_frame)
696 (thumb2_eabi_linux_sigreturn_tramp_frame)
697 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
698 (arm_linux_restart_syscall_tramp_frame)
699 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
700 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
701 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
702 ULONGEST_MAX.
703 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
704
705 2018-08-27 Tom Tromey <tom@tromey.com>
706
707 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
708 CORE_ADDR_MAX.
709 * mips-tdep.c (mips_deal_with_atomic_sequence)
710 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
711 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
712 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
713 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
714 CORE_ADDR_MAX.
715 * aarch64-tdep.c (aarch64_software_single_step): Use
716 CORE_ADDR_MAX.
717
718 2018-08-27 Tom Tromey <tom@tromey.com>
719
720 * linespec.c (complete_linespec_component): Add cast to "char".
721 * completer.c (completion_tracker::build_completion_result): Add
722 cast to "char".
723
724 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
725
726 * solist.h (struct solist, struct target_so_ops): Fix
727 indentation.
728
729 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
730
731 * ada-tasks.c (ada_task_info_s): Remove typedef.
732 (DEF_VEC_O(ada_task_info_s)): Remove.
733 (struct ada_tasks_inferior_data): Initialize fields.
734 <task_list>: Make an std::vector.
735 (get_ada_tasks_inferior_data): Allocate with new.
736 (ada_get_task_number): Adjust.
737 (get_task_number_from_id): Likewise.
738 (valid_task_id): Likewise.
739 (ada_get_task_info_from_ptid): Likewise.
740 (iterate_over_live_ada_tasks): Likewise.
741 (add_ada_task): Likewise.
742 (read_known_tasks): Likewise.
743 (ada_build_task_list): Likewise.
744 (print_ada_task_info): Likewise.
745 (info_task): Likewise.
746 (task_command_1): Likewise.
747
748 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
749
750 * ada-lang.c (add_angle_brackets): Return std::string.
751
752 2018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
753
754 * python/py-threadevent.c (py_get_event_thread): Initialize
755 pythread.
756
757 2018-08-24 Pedro Alves <palves@redhat.com>
758
759 * python/py-bpevent.c (create_breakpoint_event_object): Use
760 copy-initialization.
761 * python/py-continueevent.c (emit_continue_event): Use
762 copy-initialization.
763 * python/py-exitedevent.c (create_exited_event_object): Return a
764 gdbpy_ref<>.
765 (emit_exited_event): Use copy-initialization.
766 * python/py-inferior.c (python_new_inferior)
767 (python_inferior_deleted, add_thread_object): Use
768 copy-initialization.
769 * python/py-infevents.c (create_inferior_call_event_object)
770 (create_register_changed_event_object)
771 (create_memory_changed_event_object): Return a gdbpy_ref<>.
772 (emit_inferior_call_event, emit_memory_changed_event)
773 (emit_register_changed_event): Use copy-initialization.
774 * python/py-newobjfileevent.c (create_new_objfile_event_object):
775 Return a gdbpy_ref<>.
776 (emit_new_objfile_event): Use copy-initialization.
777 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
778 (emit_clear_objfiles_event): Use copy-initialization.
779 * python/py-signalevent.c (create_signal_event_object): Use
780 copy-initialization.
781 * python/py-threadevent.c (create_thread_event_object): Use
782 copy-initialization.
783
784 2018-08-24 Pedro Alves <palves@redhat.com>
785 Simon Marchi <simon.marchi@ericsson.com>
786
787 PR gdb/23379
788 * python/py-continueevent.c: Include "gdbthread.h".
789 (create_continue_event_object): Add intro comment. Add 'ptid'
790 parameter. Use it to find thread to pass to
791 create_thread_event_object.
792 (emit_continue_event): Pass PTID down to
793 create_continue_event_object.
794 * python/py-event.h (py_get_event_thread): Declare.
795 (create_thread_event_object): Remove default from 'thread'
796 parameter.
797 * python/py-stopevent.c (create_stop_event_object): Use
798 py_get_event_thread.
799 * python/py-threadevent.c (get_event_thread): Rename to ...
800 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
801 and use it to find the thread.
802 (create_thread_event_object): Assert that THREAD isn't null.
803 Don't find the event thread here.
804
805 2018-08-23 Kevin Buettner <kevinb@redhat.com>
806
807 * block.h (blockrange, blockranges): New struct declarations.
808 (struct block): Add new field named `ranges'.
809 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
810 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
811 macros for accessing ranges in struct block.
812 (make_blockranges): New declaration.
813 block.c (make_blockranges): New function.
814 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
815 for block.
816 * symtab.h (find_pc_partial_function): Add new parameter `block'.
817 * blockframe.c (cache_pc_function_block): New static global.
818 (clear_pc_function_cache): Clear cache_pc_function_block.
819 (find_pc_partial_function): Move comment to symtab.h. Add
820 support for non-contiguous blocks.
821 * cli/cli-cmds.c (block.h): Include.
822 (print_disassembly): Handle printing of non-contiguous blocks.
823 (disassemble_current_function): Likewise.
824 (disassemble_command): Likewise.
825
826 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
827 BLOCK_START.
828 * blockframe.c (get_pc_function_start): Likewise.
829 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
830 (gcc_symbol_address): Likewise.
831 * compile/compile-object-run.c (compile_object_run): Likewise.
832 * compile/compile.c (get_expr_block_and_pc): Likewise.
833 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
834 (func_addr_to_tail_call_list): Likewise.
835 * findvar.c (default_read_var_value): Likewise.
836 * inline-frame.c (inline_frame_this_id): Likewise.
837 (skip-inline_frames): Likewise.
838 * infcmd.c (until_next_command): Likewise.
839 * linespec.c (convert_linespec_to_sals): Likewise.
840 * parse.c (parse_exp_in_context_1): Likewise.
841 * printcmd.c (build_address_symbolic): likewise.
842 (info_address_command): Likewise.
843 symtab.c (find_function_start_sal): Likewise.
844 (skip_prologue_sal): Likewise.
845 (find_function_alias_target): Likewise.
846 (find_gnu_ifunc): Likewise.
847 * stack.c (find_frame_funname): Likewise.
848 * symtab.c (fixup_symbol_section): Likewise.
849 (find_function_start_sal): Likewise.
850 (skip_prologue_sal): Likewsie.
851 (find_function_alias_target): Likewise.
852 (find_gnu_ifunc): Likewise.
853 * tracepoint.c (info_scope_command): Likewise.
854 * value.c (value_fn_field): Likewise.
855
856 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
857 in place of find_pc_partial_function.
858 * blockframe.c (find_function_entry_range_from_pc): New function.
859 * symtab.h (find_function_entry_range_from_pc): Declare and document.
860 * objfiles.c (objfile_relocate1): Relocate start and end addresses
861 for each range in a block.
862
863
864 2018-08-23 Xavier Roirand <roirand@adacore.com>
865
866 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
867 incrementation.
868
869 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
870
871 * solib-svr4.c (read_program_headers_from_bfd): Return
872 gdb::optional<gdb::byte_vector>.
873 (svr4_exec_displacement): Adjust.
874
875 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
876
877 * solib-svr4.c (read_program_header): Return
878 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
879 (find_program_interpreter): Return
880 gdb::optional<gdb::byte_vector>.
881 (scan_dyntag_auxv): Adjust.
882 (enable_break): Adjust.
883 (svr4_exec_displacement): Adjust.
884
885 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
886
887 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
888 * inf-child.c (inf_child_target::terminal_save_inferior): New.
889
890 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
891
892 * guile/scm-string.c (gdbscm_scm_from_printf): Use
893 string_vprintf.
894 * guile/scm-utils.c (gdbscm_printf): Likewise.
895 * serial.c (serial_printf): Likewise.
896 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
897
898 2018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
899
900 * stack.c (print_frame): Print frame architecture when printing on
901 an MI output.
902 * NEWS: Mention new "arch" attribute in frame output.
903
904 2018-08-21 Alan Hayward <alan.hayward@arm.com>
905
906 * arch/aarch64.h (aarch64_regnum): Update comment.
907
908 2018-08-21 Alan Hayward <alan.hayward@arm.com>
909
910 * NEWS: Add SVE to 8.2 section.
911
912 2018-08-21 Pedro Alves <palves@redhat.com>
913
914 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
915 out from gdbscm_parse_function_args.
916 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
917 gdbscm_parse_function_args_1.
918
919 2018-08-21 Simon Marchi <simon.marchi@ericsson.com>
920
921 PR gdb/17816
922 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
923 operator.
924
925 2018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
926
927 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
928
929 2018-08-19 Michael Spang <spang@google.com>
930
931 PR gdb/11786
932 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
933 for PT_TLS segments.
934
935 2018-08-18 Kevin Buettner <kevinb@redhat.com>
936
937 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
938 dwarf_variable_value.
939 * dwarf2-frame.c (class dwarf_expr_executor):
940 Add override for dwarf_variable_value.
941 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
942 (class symbol_needs_eval_context): Likewise.
943 (indirect_synthetic_pointer): Add forward declaration.
944 (sect_variable_value): New function.
945 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
946 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
947 for DW_OP_GNU_variable_value.
948
949 2018-08-16 Tom Tromey <tom@tromey.com>
950
951 * top.c (read_command_file): Update.
952 (command_line_input): Remove "repeat" argument.
953 * ada-lang.c (get_selections): Update.
954 * linespec.c (decode_line_2): Update.
955 * defs.h (command_line_input): Remove argument.
956 * cli/cli-script.c (read_next_line): Update.
957 * python/py-gdb-readline.c: Update.
958
959 2018-08-17 Tom Tromey <tom@tromey.com>
960
961 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
962 command_line_input.
963
964 2018-08-15 Tom Tromey <tom@tromey.com>
965
966 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
967
968 2018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
969
970 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
971 If used, use find_pc_partial_function to find address range
972 to disassemble.
973 * mi/mi-main.c (mi_cmd_list_features): Report
974 "data-disassemble-a-option" feature.
975 * NEWS: Mention new -data-disassemble option -a.
976
977 2018-08-13 Tom Tromey <tom@tromey.com>
978
979 * common/common-defs.h (_FORTIFY_SOURCE): Define.
980
981 2018-08-13 Alan Hayward <alan.hayward@arm.com>
982
983 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
984 (aarch64_linux_collect_sve_regset): Likewise.
985 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
986 * regcache.h (regcache_map_entry_size): New function.
987
988 2018-08-13 Alan Hayward <alan.hayward@arm.com>
989
990 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
991 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
992 (SVE_HEADER_VL_LENGTH): Likewise.
993 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
994 (SVE_HEADER_FLAGS_LENGTH): Likewise.
995 (SVE_HEADER_RESERVED_LENGTH): Likewise.
996 (SVE_HEADER_SIZE_OFFSET): Likewise.
997 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
998 (SVE_HEADER_VL_OFFSET): Likewise.
999 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
1000 (SVE_HEADER_FLAGS_OFFSET): Likewise.
1001 (SVE_HEADER_RESERVED_OFFSET): Likewise.
1002 (SVE_HEADER_SIZE): Likewise.
1003 (aarch64_linux_core_read_vq): Add function.
1004 (aarch64_linux_core_read_description): Check for SVE section.
1005
1006 2018-08-13 Alan Hayward <alan.hayward@arm.com>
1007
1008 * aarch64-fbsd-tdep.c
1009 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
1010 collect_size.
1011 * aarch64-linux-tdep.c
1012 (aarch64_linux_iterate_over_regset_sections): Likewise.
1013 * alpha-linux-tdep.c
1014 (alpha_linux_iterate_over_regset_sections):
1015 * alpha-nbsd-tdep.c
1016 (alphanbsd_iterate_over_regset_sections): Likewise.
1017 * amd64-fbsd-tdep.c
1018 (amd64fbsd_iterate_over_regset_sections): Likewise.
1019 * amd64-linux-tdep.c
1020 (amd64_linux_iterate_over_regset_sections): Likewise.
1021 * arm-bsd-tdep.c
1022 (armbsd_iterate_over_regset_sections): Likewise.
1023 * arm-fbsd-tdep.c
1024 (arm_fbsd_iterate_over_regset_sections): Likewise.
1025 * arm-linux-tdep.c
1026 (arm_linux_iterate_over_regset_sections): Likewise.
1027 * corelow.c (get_core_registers_cb): Likewise.
1028 (core_target::fetch_registers): Likewise.
1029 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
1030 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
1031 * gdbarch.h (void): Regenerate.
1032 * gdbarch.sh: Add supply_size and collect_size.
1033 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
1034 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
1035 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
1036 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
1037 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
1038 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
1039 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
1040 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
1041 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
1042 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
1043 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
1044 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
1045 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
1046 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
1047 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
1048 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
1049 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
1050 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
1051 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
1052 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
1053 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
1054 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
1055 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
1056 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
1057 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
1058 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
1059 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
1060 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
1061 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
1062 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
1063
1064 2018-08-10 Simon Marchi <simon.marchi@ericsson.com>
1065
1066 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
1067 with string_printf.
1068
1069 2018-08-10 Keith Seitz <keiths@redhat.com>
1070
1071 * compile/compile-c-support.c (add_code_header, add_code_footer):
1072 Move into policy class.
1073 (c_push_user_expression, pop_user_expression_nop)
1074 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
1075 (compile_program): New host class.
1076 (c_compile_program): New typedef.
1077 (c_compute_porgram): Use c_compile_program.
1078
1079 2018-08-10 Keith Seitz <keiths@redhat.com>
1080
1081 * compile/compile-internal.h (compile_instance::~compile_instance):
1082 Remove calls to htab_delete.
1083 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
1084 * compile.c (compile_instance::compile_instance): Initialize
1085 htab unique pointers.
1086 (compile_instance::get_cached_type, compile_instance::insert_type)
1087 (compile_instance::error_symbol_once): Update for unique_ptr.
1088
1089 2018-08-10 Keith Seitz <keiths@redhat.com>
1090
1091 * compile/compile-c-symbols.c (struct symbol_error)
1092 (hash_symbol_error, eq_symbol_error, del_symbol_error)
1093 (compile_instance::insert_symbol_error)
1094 (compile_instance::error_symbol_once): Move to ...
1095 * compile/compile.c: ... here.
1096
1097 2018-08-10 Keith Seitz <keiths@redhat.com>
1098
1099 * compile/compile-c-support.c (c_get_compile_context): Use `new'
1100 instead of `new_compile_instance'.
1101 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
1102 Update description.
1103 If the symbol error map is not initialized, create it.
1104 (generate_c_for_for_one_symbol): Do not check/initialize
1105 the symbol error map.
1106 * compile/compile-c-types.c (compile_c_instance): Make a class.
1107 Update all callers.
1108 (compile_instance::compile_instance): Initialize the type cache.
1109 (get_cached_type): New function.
1110 (insert_type): Update description.
1111 (compile_c_instance::m_default_cflags): Define.
1112 (convert_type): Update description. Use get_cached_type.
1113 (delete_instance): Moved to destructor.
1114 (new_compile_instance): Moved to constructor.
1115 * compile/compile-c.h (compile_c_instance): Make class inheriting
1116 from compile_instance.
1117 <base>: Remove field.
1118 <type_map, symbol_err_map>: Move to base class.
1119 <c_plugin>: Rename to `m_plugin' and remove pointer type.
1120 * compile/compile-internal.h (compile_instance): Make class.
1121 <type_map_t, symbol_err_map_t>: Define.
1122 <fe>: Rename to `m_gcc_fe'.
1123 <scope, block, gcc_target_options>: Add `m_' prefix.
1124 <m_type_map, m_symbol_err_map>: New fields, moved from
1125 compile_c_instance.
1126 <destroy>: Remove.
1127 (convert_type, new_compile_instance): Remove.
1128 * compile/compile.c (cleanup_compile_instance): Remove.
1129 (compile_to_object): Use unique_ptr to eliminate cleanups.
1130 (compile_instance::set_print_callback, compile_instance::version)
1131 (compile_instance::set_verbose)
1132 (compile_instance::set_driver_filename)
1133 (compile_instance::set_triplet_regexp)
1134 (compile_instance::set_arguments)
1135 (compile_instance::set_source_file)
1136 (compile_instance::compile): Define.
1137
1138 2018-08-10 Keith Seitz <keiths@redhat.com>
1139
1140 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
1141 * compile/compile-c-types.c: Define GCC_METHODN macros and include
1142 gcc-c-fe.def to define C plugin.
1143 (delete_instance): Delete `c_plugin'.
1144 (new_compile_instance): Initialize `c_plugin'.
1145 * compile/compile-c.h: Include gcc_c_plugin.h.
1146 (struct compile_c_instance) <c_plugin>: New member.
1147 * gcc-c-plugin.h: New file.
1148 Update all callers with API change.
1149
1150 2018-08-10 Keith Seitz <keiths@redhat.com>
1151
1152 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
1153 (HFILES_NO_SRCDIR): ... to here.
1154 Add compile-internal.h and compile-c.h.
1155 * compile/compile-c-support.c: Include compile-c.h.
1156 * compile/compile-c-symbols.c: Include compile-c.h.
1157 (generate_c_for_variable_locations): Update comment.
1158 * compile/compile-c-types.c: Include compile-c.h.
1159 * compile/compile-c.h: New file -- moved C language declarations
1160 from other files here.
1161 * compile/compile-internal.h: Do not include hashtab.h or
1162 common/enum-flags.h.
1163 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
1164 (gcc_convert_symbol, gcc_symbol_address)
1165 (generate_c_for_variable_locations, c_get_mode_for_size)
1166 (c_get_range_decl_name): Definitions moved to compile-c.h.
1167 * compile/compile-loc2c.c: Include compile-c.h.
1168
1169 2018-08-10 Keith Seitz <keiths@redhat.com>
1170
1171 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
1172 (c_symbol_substitution_name): ... this.
1173 Update all callers.
1174
1175 2018-08-10 Keith Seitz <keiths@redhat.com>
1176
1177 * compile/compile-c-support.c (c_compute_program): Use
1178 unique_xmalloc_ptr to eliminate cleanup.
1179 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
1180 Return a unique_xmalloc_ptr and eliminate cleanup.
1181 * compile/compile-internal.h (generate_c_for_variable_locations):
1182 Return unique_xmalloc_ptr and update description.
1183
1184 2018-08-10 Alan Hayward <alan.hayward@arm.com>
1185
1186 * corelow.c (core_target::get_core_register_section): Rename
1187 min_size to section_min_size.
1188
1189 2018-08-09 Jim Wilson <jimw@sifive.com>
1190
1191 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
1192 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
1193 * NEWS: Mention new GNU/Linux RISC-V target.
1194 * configure.host: Add riscv*-*-linux*.
1195 * configure.nat: Add riscv*.
1196 * configure.tgt: Add riscv*-*-linux*.
1197 * riscv-linux-nat.c: New file.
1198 * riscv-linux-tdep.c: New file.
1199
1200 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
1201
1202 * infrun.c (resume): Make static, add forward declaration.
1203 (proceed): Update header comment.
1204 * infrun.h (resume): Delete declaration.
1205
1206 2018-08-09 Tom Tromey <tom@tromey.com>
1207
1208 * riscv-tdep.h: Minor formatting fixes.
1209
1210 2018-08-09 Simon Marchi <simon.marchi@ericsson.com>
1211
1212 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
1213 * dwarf-index-cache.c (create_dir_and_check): Likewise.
1214 (test_mkdir_recursive): Likewise.
1215 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
1216
1217 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
1218
1219 * valarith.c (value_subscripted_rvalue): If an array is not in
1220 memory, and we don't know the upper bound, then we can't know that
1221 the requested element exists or not.
1222
1223 2018-08-08 Simon Marchi <simon.marchi@ericsson.com>
1224
1225 * target.c (str_comma_list_concat_elem): Fix typo in comment.
1226 (target_options_to_string): Add comment.
1227
1228 2018-08-08 Tom Tromey <tom@tromey.com>
1229
1230 * unittests/scoped_mmap-selftests.c: Check result of "write".
1231
1232 2018-08-08 Jim Wilson <jimw@sifive.com>
1233
1234 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
1235 (decode_register_index_short): New.
1236 (decode_j_type_insn, decode_cj_type_insn): New.
1237 (decode_b_type_insn, decode_cb_type_insn): New.
1238 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
1239 local xlen. Check xlen when decoding ambiguous compressed insns. In
1240 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
1241 is_c_sw_insn instead of is_sw_insn.
1242 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
1243 (riscv_software_single_step): New.
1244 * riscv-tdep.h (riscv_software_single_step): Declare.
1245
1246 * riscv-tdep.c (riscv_isa_xlen): Drop static.
1247 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
1248
1249 2018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
1250
1251 PR gdb/18050:
1252 * target.c (dispose_inferior): Don't dispose of inferiors that are
1253 already killed.
1254
1255 2018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
1256
1257 * remote.c (remote_target::download_tracepoint): Change char* to
1258 const char*.
1259
1260 2018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
1261
1262 * target.h (target_options_to_string): Return an std::string.
1263 * target.c (str_comma_list_concat_elem): Return void, use
1264 std::string.
1265 (do_option): Likewise.
1266 (target_options_to_string): Return an std::string.
1267 * linux-nat.c (linux_nat_target::wait): Adjust.
1268 * target-debug.h (target_debug_print_options): Adjust.
1269
1270 2018-08-07 Tom Tromey <tom@tromey.com>
1271
1272 * Makefile.in (CPPFLAGS): New variable.
1273 (INTERNAL_CPPFLAGS): Use it.
1274
1275 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
1276
1277 * NEWS: Mention the index cache.
1278
1279 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
1280
1281 * common/pathstuff.h (get_standard_cache_dir): New.
1282 * common/pathstuff.c (get_standard_cache_dir): New.
1283 * build-id.h (build_id_to_string): New.
1284 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
1285 DEBUG_STR_SUFFIX): Move to here.
1286 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
1287 DEBUG_STR_SUFFIX): Move from there.
1288 (write_psymtabs_to_index): Make non-static, add basename
1289 parameter. Write to temporary files, rename when done.
1290 (save_gdb_index_command): Adjust call to
1291 write_psymtabs_to_index.
1292 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
1293 field.
1294 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
1295 (get_gdb_index_contents_from_cache): New.
1296 (get_gdb_index_contents_from_cache_dwz): New.
1297 (dwarf2_initialize_objfile): Read index from cache.
1298 (dwarf2_build_psymtabs): Save to index.
1299 * dwarf-index-cache.h: New file.
1300 * dwarf-index-cache.c: New file.
1301 * dwarf-index-write.h: New file.
1302
1303 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
1304
1305 * gnulib/aclocal.m4: Re-generate.
1306 * gnulib/config.in: Re-generate.
1307 * gnulib/configure: Re-generate.
1308 * gnulib/import/Makefile.am: Re-generate.
1309 * gnulib/import/Makefile.in: Re-generate.
1310 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
1311 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
1312 * gnulib/import/m4/mkdir.m4: New file.
1313 * gnulib/import/mkdir.c: New file.
1314 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
1315 module.
1316
1317 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
1318
1319 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
1320 * common/scoped_mmap.c: New file.
1321 * common/scoped_mmap.h (destroy): New method.
1322 (~scoped_mmap, reset): Use destroy.
1323 (scoped_mmap): New move constructor.
1324 (mmap_file): New declaration.
1325 * unittests/scoped_mmap-selftests.c (test_normal,
1326 test_invalid_filename, run_tests): New functions.
1327 (_initialize_scoped_mmap_selftests): Register selftest.
1328
1329 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
1330
1331 * dwarf2read.c (read_gdb_index_from_section): Rename to...
1332 (read_gdb_index_from_buffer): ... this. Remove section
1333 parameter, add buffer parameter.
1334 (get_gdb_index_contents_ftype,
1335 get_gdb_index_contents_dwz_ftype): New typedefs.
1336 (dwarf2_read_gdb_index): Add callback parameters to get the
1337 index contents.
1338 (get_gdb_index_contents_from_section): New.
1339 (dwarf2_initialize_objfile): Update call to
1340 dwarf2_read_gdb_index.
1341
1342 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
1343
1344 * common/filestuff.h (gdb_fopen_cloexec): New overload.
1345 (gdb_open_cloexec): Likewise.
1346 * nat/linux-osdata.c (command_from_pid): Use string_printf.
1347 (commandline_from_pid): Likewise.
1348 (linux_xfer_osdata_threads): Likewise.
1349 (linux_xfer_osdata_fds): Likewise.
1350 * ada-lang.c (is_package_name): Likewise.
1351 * auxv.c (procfs_xfer_auxv): Likewise.
1352 * breakpoint.c (print_one_breakpoint_location): Use
1353 uiout::field_fmt.
1354 (print_one_catch_solib): Use string_printf.
1355 * coff-pe-read.c (add_pe_exported_sym): Likewise.
1356 (add_pe_forwarded_sym): Likewise.
1357 * dwarf2read.c (create_type_unit_group): Likewise.
1358 (build_error_marker_type): Likewise.
1359 * infcall.c (get_function_name): Likewise.
1360 * valprint.c (print_converted_chars_to_obstack): Likewise.
1361 * xtensa-tdep.c (xtensa_register_type): Likewise.
1362
1363 2018-08-06 Simon Marchi <simon.marchi@ericsson.com>
1364
1365 * remote.c (remote_target::download_tracepoint): Fix format
1366 string errors.
1367
1368 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1369
1370 * tracefile.c: Include common/byte-vector.h.
1371 (trace_save): Change type of buf to gdb::byte_vector. Initialize
1372 with trace_regblock_size if needed. Update uses of buf.
1373
1374 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1375
1376 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
1377 std::vector<unsigned char>.
1378 * tracepoint.c (collection_list::collection_list): Remove
1379 m_regs_mask initializer from initializer list. Resize
1380 m_regs_mask using the largest remote register number.
1381 (collection_list::add_remote_register): Remove size check on
1382 m_regs_mask. Use at to access element.
1383 (collection_list::stringify): Change type of temp_buf to
1384 gdb::char_vector. Update uses of temp_buf. Resize if needed to
1385 stringify the register mask. Use pack_hex_byte for the register
1386 mask.
1387
1388 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1389
1390 * tracepoint.h (class collection_list) <add_register>: Remove.
1391 <add_remote_register, add_ax_registers, add_local_register>:
1392 Declare.
1393 <add_memrange>: Add scope parameter.
1394 * tracepoint.c (encode_actions_1): Likewise.
1395 (collection_list::add_register): Rename to ...
1396 (collection_list::add_remote_register): ... this. Update
1397 comment.
1398 (collection_list::add_ax_registers, add_local_register): New
1399 methods.
1400 (collection_list::add_memrange): Add scope parameter. Call
1401 add_local_register instead of add_register.
1402 (finalize_tracepoint_aexpr): New function.
1403 (collection_list::collect_symbol): Update calls to add_memrange.
1404 Call add_local_register instead of add_register. Call
1405 add_ax_registers. Call finalize_tracepoint_aexpr.
1406 (encode_actions_1): Get remote regnos for $reg action. Call
1407 add_remote_register, add_ax_registers, and add_local_register.
1408 Update call to add_memrange. Call finalize_tracepoint_aexpr.
1409 (validate_actionline): Call finalize_tracepoint_aexpr.
1410
1411 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1412
1413 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
1414 Replace array buf with gdb::char_vector buf, of size
1415 get_remote_packet_size (). Replace references to buf and
1416 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
1417 and xsnprintf with snprintf. Raise errors if the buffer is too
1418 small.
1419
1420 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1421
1422 * remote.c (remote_target::download_tracepoint): Fix the has_more
1423 predicate in the QTDP action list iteration.
1424
1425 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1426
1427 * remote.c (remote_target::download_tracepoint): Fix indentation
1428 in for block.
1429
1430 2018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1431
1432 * proc-api.c (_initialize_proc_api): Remove c, unused.
1433 * procfs.c (procfs_init_inferior): Remove signals, unused.
1434 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
1435 unused.
1436
1437 2018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
1438 Andrew Burgess <andrew.burgess@embecosm.com>
1439
1440 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
1441 'W_STOPCODE (0)' as this could be ambiguous.
1442
1443 2018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
1444
1445 * ser-tcp.c (net_open): Fix thinko when deciding whether to
1446 disable TCP's Nagle algorithm (use "ai_protocol" instead of
1447 "ai_socktype").
1448
1449 2018-08-02 Tom Tromey <tom@tromey.com>
1450
1451 PR symtab/16842.
1452 * dwarf2read.c (read_func_scope): Set symtab on template parameter
1453 symbols.
1454 (process_structure_scope): Likewise.
1455
1456 2018-08-02 Xavier Roirand <roirand@adacore.com>
1457
1458 PR gdb/22629:
1459 * darwin-nat.c (darwin_kill_inferior): Fix handling of
1460 kill inferior.
1461
1462 2018-08-02 Tom Tromey <tom@tromey.com>
1463
1464 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
1465 (darwin_suspend_inferior, darwin_resume_inferior)
1466 (darwin_decode_notify_message, darwin_resume_inferior_threads)
1467 (darwin_check_new_threads): Check result of get_darwin_inferior.
1468
1469 2018-07-31 Joel Brobecker <brobecker@adacore.com>
1470
1471 GDB 8.1.1 released.
1472
1473 2018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
1474
1475 * varobj.c (varobj_get_path_expr_parent): Report an error if
1476 parent is a dynamic varobj.
1477
1478 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
1479
1480 * gnulib/aclocal.m4: Re-generate.
1481 * gnulib/config.in: Re-generate.
1482 * gnulib/configure: Re-generate.
1483 * gnulib/import/Makefile.in: Re-generate.
1484 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
1485 * gnulib/import/m4/onceonly.m4: Re-generate.
1486
1487 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
1488
1489 * target-descriptions.c (struct xml_test_tdesc): New.
1490 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
1491 (record_xml_tdesc): Update.
1492 (maintenance_check_xml_descriptions): Update.
1493 * target-descriptions.h (record_xml_tdesc): Update comment.
1494
1495 2018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
1496
1497 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
1498 checking array bounds are defined.
1499
1500 2018-07-30 Tom Tromey <tom@tromey.com>
1501
1502 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
1503 irreflexivity violation.
1504
1505 2018-07-30 Tom Tromey <tom@tromey.com>
1506
1507 * cli/cli-decode.c (lookup_cmd): Remove lint code.
1508 * value.c (unpack_long): Remove lint code.
1509 * valops.c (value_ind): Remove lint code.
1510 * valarith.c (value_x_binop, value_x_unop, value_equal)
1511 (value_pos): Remove lint code.
1512
1513 2018-07-28 Tom de Vries <tdevries@suse.de>
1514
1515 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
1516 with undefined upper bound as <optimized out>.
1517
1518 2018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
1519
1520 * gcore.in: Rename variable "name" to "prefix". Expand
1521 "usage" text.
1522
1523 2018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
1524
1525 * windows-nat.c (windows_nat_target::create_inferior): Update to
1526 call close() in global namespace.
1527
1528 2018-07-26 Tom Tromey <tom@tromey.com>
1529
1530 * dwarf-index-write.c (add_address_entry): Don't add objfile
1531 offsets.
1532 * dbxread.c (find_stab_function): Rename from
1533 find_stab_function_addr. Return a bound_minimal_symbol.
1534 (read_dbx_symtab): Use raw_text_low, raw_text_high.
1535 Don't add objfile offsets.
1536 (end_psymtab): Use raw_text_low, raw_text_high,
1537 MSYMBOL_VALUE_RAW_ADDRESS.
1538 (read_ofile_symtab): Update.
1539 (process_one_symbol): Update.
1540 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
1541 offsets.
1542 (dw2_relocate): Remove.
1543 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
1544 searching addrmap.
1545 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
1546 Update.
1547 (process_psymtab_comp_unit_reader, add_partial_symbol)
1548 (add_partial_subprogram, dwarf2_ranges_read): Update.
1549 (load_partial_dies): Update.
1550 (add_address_entry): Don't add objfile offsets.
1551 (dwarf2_build_include_psymtabs): Update.
1552 (create_addrmap_from_aranges): Don't add objfile offsets.
1553 (dw2_find_pc_sect_compunit_symtab): Update.
1554 * mdebugread.c (parse_symbol): Don't add objfile offsets.
1555 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
1556 Update.
1557 (parse_partial_symbols): Don't add objfile offsets. Use
1558 raw_text_low, raw_text_high. Update.
1559 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
1560 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
1561 or call 'relocate' quick function. Clear psymbol_map.
1562 * psympriv.h (struct partial_symbol) <address>: Add section
1563 offset.
1564 <set_unrelocated_address>: Rename from set_address.
1565 <raw_text_low, raw_text_high>: New methods.
1566 <text_low, text_high>: Add objfile parameter.
1567 (add_psymbol_to_bcache): Add 'section' parameter. Call
1568 set_unrelocated_address.
1569 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
1570 (find_pc_psymbol): Update.
1571 (fixup_psymbol_section, relocate_psymtabs): Remove.
1572 (dump_psymtab, psym_functions): Update.
1573 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
1574 parameter.
1575 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
1576 (start_psymtab_common): Update.
1577 * symfile-debug.c (debug_qf_relocate): Remove.
1578 (debug_sym_quick_functions): Update.
1579 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
1580 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
1581 Update.
1582
1583 2018-07-26 Tom Tromey <tromey@redhat.com>
1584
1585 * dbxread.c (end_psymtab): Use text_high_valid and
1586 text_low_valid.
1587 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
1588 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
1589 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
1590 Update comment.
1591 <text_low_valid, text_high_valid>: New fields.
1592 <set_text_low, set_text_high>: Update.
1593 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
1594
1595 2018-07-26 Tom Tromey <tom@tromey.com>
1596
1597 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
1598 Update.
1599 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
1600 textlow and texthigh fields.
1601 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
1602 Update.
1603 * mdebugread.c (parse_lines, parse_partial_symbols)
1604 (psymtab_to_symtab_1): Update.
1605 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
1606 Rename fields. Update comment. Now private.
1607 <text_low, text_high, set_text_low, set_text_high>: New methods.
1608 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
1609 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
1610 (start_psymtab_common, maintenance_info_psymtabs)
1611 (maintenance_check_psymtabs): Update.
1612 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
1613 texthigh fields.
1614 (scan_xcoff_symtab): Update.
1615
1616 2018-07-26 Tom Tromey <tromey@redhat.com>
1617
1618 * psympriv.h (struct partial_symbol) <unrelocated_address,
1619 address, set_address>: New methods.
1620 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
1621 (fixup_psymbol_section, relocate_psymtabs): Update.
1622 (print_partial_symbols): Add 'objfile' parameter. Update.
1623 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
1624 Update.
1625
1626 2018-07-26 Tom Tromey <tom@tromey.com>
1627
1628 * dwarf-index-write.c (write_psymbols, debug_names::insert)
1629 (debug_names::write_psymbols): Update.
1630 * psympriv.h (struct partial_symbol): Derive from
1631 general_symbol_info.
1632 <obj_section>: New method.
1633 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
1634 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
1635 (find_pc_sect_psymbol, fixup_psymbol_section)
1636 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
1637 (print_partial_symbols, recursively_search_psymtabs)
1638 (compare_psymbols, psymbol_hash, psymbol_compare)
1639 (add_psymbol_to_bcache, maintenance_check_psymtabs)
1640 (psymbol_name_matches, psym_fill_psymbol_map): Update.
1641
1642 2018-07-26 Tom Tromey <tromey@redhat.com>
1643
1644 * dbxread.c (end_psymtab): Remove dead code.
1645
1646 2018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
1647
1648 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
1649 DWARF unwinders are disabled.
1650 * dwarf2-frame.c: Add dwarf2read.h include.
1651 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
1652 disabled.
1653 (dwarf2_frame_unwinders_enabled_p): Define.
1654 (show_dwarf_unwinders_enabled_p): New function.
1655 (_initialize_dwarf2_frame): Register switch to control DWARF
1656 unwinder use.
1657 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
1658 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
1659 (show_dwarf_cmdlist): Remove static keyword.
1660 * dwarf2read.h (set_dwarf_cmdlist): Declare.
1661 (show_dwarf_cmdlist): Declare.
1662 * NEWS: Document new feature.
1663
1664 2018-07-26 Tom de Vries <tdevries@suse.de>
1665
1666 PR breakpoints/23366
1667 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
1668
1669 2018-07-26 Tom de Vries <tdevries@suse.de>
1670
1671 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
1672 DW_AT_count can't be translated to a dynamic prop.
1673
1674 2018-07-25 Tom de Vries <tdevries@suse.de>
1675
1676 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
1677 try/catch.
1678
1679 2018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
1680
1681 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
1682
1683 2018-07-25 Joel Brobecker <brobecker@adacore.com>
1684
1685 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
1686
1687 2018-07-24 Keith Seitz <keiths@redhat.comt
1688
1689 PR symtab/23010
1690 * dwarf2read.c (dw2_add_symbol_to_list): New function.
1691 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
1692 instead of add_symbol_to_list.
1693 (read_file_scope): Call prepare_one_comp_unit before reading
1694 any other DIEs.
1695
1696 2018-07-24 Simon Marchi <simon.marchi@ericsson.com>
1697
1698 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
1699
1700 2018-07-24 Tom Tromey <tom@tromey.com>
1701
1702 * utils.c (malloc, realloc, free): Don't declare.
1703 * configure, config.in: Rebuild.
1704 * configure.ac: Don't check for declarations of free, malloc, or
1705 realloc.
1706
1707 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1708
1709 * aarch64-linux-nat.c
1710 (aarch64_linux_nat_target::stopped_data_address): Remove unused
1711 variable.
1712 * arm-linux-nat.c (fetch_regs): Likewise.
1713 (store_regs): Likewise.
1714 (fetch_vfp_regs): Likewise.
1715 (store_vfp_regs): Likewise.
1716 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
1717 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
1718 (arm_linux_nat_target::insert_watchpoint): Likewise.
1719 (arm_linux_nat_target::remove_watchpoint): Likewise.
1720 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
1721 Likewise.
1722 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
1723 Likewise.
1724 * ppc-linux-nat.c (fetch_register): Likewise.
1725 (fetch_all_gp_regs): Likewise.
1726 (fetch_ppc_registers): Likewise.
1727 (store_all_gp_regs): Likewise.
1728 (store_ppc_registers): Likewise.
1729 (hwdebug_insert_point): Likewise.
1730 (can_use_watchpoint_cond_accel): Likewise.
1731 * remote-sim.c (gdb_os_write_stdout): Likewise.
1732
1733 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1734 Tom Tromey <tom@tromey.com>
1735
1736 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
1737 test for it.
1738 * configure: Rebuild.
1739
1740 2018-07-22 Tom Tromey <tom@tromey.com>
1741
1742 * regformats/regdat.sh: Define xmltarget_${name} inside
1743 #ifndef IN_PROCESS_AGENT.
1744
1745 2018-07-22 Tom Tromey <tom@tromey.com>
1746
1747 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
1748
1749 2018-07-22 Tom Tromey <tom@tromey.com>
1750
1751 * symfile.c (reread_symbols): Notify iter, not objfile.
1752
1753 2018-07-22 Tom Tromey <tom@tromey.com>
1754
1755 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
1756 Use arch_ops.
1757 (ravenscar_thread_target::prepare_to_store): Likewise.
1758
1759 2018-07-22 Tom Tromey <tom@tromey.com>
1760
1761 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
1762 unused variable. Call value_fetch_lazy when needed.
1763 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
1764 Remove unused variable. Call value_fetch_lazy when needed.
1765
1766 2018-07-22 Tom Tromey <tom@tromey.com>
1767
1768 * m32c-tdep.c (mark_dma): Return void.
1769 (make_regs): Remove unused declarations.
1770
1771 2018-07-22 Tom Tromey <tom@tromey.com>
1772
1773 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
1774 cmdscm_get_valid_command_smob_arg_unsafe for effect.
1775 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
1776 bkscm_get_valid_block_smob_arg_unsafe for effect.
1777
1778 2018-07-22 Tom Tromey <tom@tromey.com>
1779
1780 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
1781 value_type.
1782
1783 2018-07-22 Tom Tromey <tom@tromey.com>
1784
1785 * windows-nat.c (saved_context): Conditionally define.
1786 * remote.c (remote_target::remote_btrace_maybe_reopen):
1787 Conditionally declare "warned".
1788 * inflow.c (sigquit_ours): Conditionally define.
1789 (new_tty): Move "tty" declaration inside #if.
1790 * guile/guile.c (guile_datadir): Conditionally define.
1791 * charset.c (set_be_le_names): Move some declarations inside #if.
1792 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
1793 #if.
1794 (parse_xml_btrace_conf): Likewise.
1795
1796 2018-07-22 Tom Tromey <tom@tromey.com>
1797
1798 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
1799
1800 2018-07-22 Tom Tromey <tom@tromey.com>
1801
1802 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
1803 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
1804 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
1805 * buildsym-legacy.c (get_macro_table): Remove unused variable.
1806 * stack.c (frame_apply_level_command): Remove unused variable.
1807 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
1808 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
1809 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
1810 unused variable.
1811 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
1812 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
1813 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
1814 variable.
1815 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
1816 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
1817 variable.
1818 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
1819 Remove unused variable.
1820 * cli/cli-script.c (recurse_read_control_structure): Remove unused
1821 variable.
1822 * common/tdesc.c (print_xml_feature::visit): Remove unused
1823 variable.
1824 * compile/compile-object-load.c (store_regs): Remove unused
1825 variables.
1826 * complaints.c (clear_complaints): Remove unused variable.
1827 * corelow.c (core_target_open): Remove unused variable.
1828 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
1829 variable.
1830 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
1831 variable.
1832 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
1833 variable.
1834 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
1835 variable.
1836 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
1837 variable.
1838 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
1839 variable.
1840 * ia64-tdep.c (examine_prologue): Remove unused variable.
1841 * infcall.c (run_inferior_call): Remove unused variable.
1842 * inferior.c (exit_inferior): Remove unused variable.
1843 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
1844 * linespec.c (decode_line_2): Remove unused variable.
1845 * linux-nat.c (super_close): Remove.
1846 * linux-tdep.c (linux_info_proc): Remove unused variable.
1847 * mi/mi-main.c (mi_execute_command): Remove unused variable.
1848 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
1849 Remove unused variable.
1850 * parse.c (find_minsym_type_and_address): Remove unused variable.
1851 * printcmd.c (info_symbol_command, printf_floating): Remove unused
1852 variable.
1853 * python/py-breakpoint.c (bppy_set_commands): Remove unused
1854 variable.
1855 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
1856 variables.
1857 * record-btrace.c (record_btrace_target::store_registers): Remove
1858 unused variable.
1859 (cmd_show_record_btrace_cpu): Remove unused variable.
1860 * riscv-tdep.c (riscv_register_reggroup_p)
1861 (riscv_push_dummy_call, riscv_return_value): Remove unused
1862 variable.
1863 * rust-exp.y (literal): Remove unused variable.
1864 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
1865 unused variable.
1866 <STRUCTOP_ANONYMOUS>: Likewise.
1867 * s390-linux-tdep.c (s390_linux_init_abi_31)
1868 (s390_linux_init_abi_64): Remove unused variable.
1869 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
1870 (file_select_thread, net_windows_open, _initialize_ser_windows):
1871 Remove unused variables.
1872 * symtab.c (find_pc_sect_line): Remove unused variable.
1873 * target-memory.c (compute_garbled_blocks): Remove unused
1874 variable.
1875 (target_write_memory_blocks): Remove unused variable.
1876 * target.c (target_stack::unpush): Remove unused variables.
1877 * tracepoint.c (start_tracing, all_tracepoint_actions)
1878 (merge_uploaded_trace_state_variables)
1879 (print_one_static_tracepoint_marker): Remove unused variable.
1880 * unittests/basic_string_view/element_access/char/1.cc (test01):
1881 Remove unused variable.
1882 * windows-nat.c (windows_continue, windows_add_all_dlls)
1883 (do_initial_windows_stuff, windows_nat_target::create_inferior):
1884 Remove unused variables.
1885
1886 2018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
1887
1888 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
1889 attr_profile in HAVE_ELF.
1890 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
1891 HAVE_ELF.
1892
1893 2018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
1894
1895 * frame.c (frame_register_unwind): Change parameter name.
1896 (frame_unwind_register): Likewise.
1897 (frame_unwind_register_value): Likewise.
1898 (frame_unwind_register_signed): Likewise.
1899 (frame_unwind_register_unsigned): Likewise.
1900 * frame.h (frame_register_unwind): Likewise.
1901 (frame_unwind_register): Likewise.
1902 (frame_unwind_register_value): Likewise.
1903 (frame_unwind_register_signed): Likewise.
1904 (frame_unwind_register_unsigned): Likewise.
1905 (frame_unwind_arch): Likewise.
1906
1907 2018-07-20 Maciej W. Rozycki <macro@mips.com>
1908
1909 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
1910 ISA maintenance.
1911
1912 2018-07-20 Maciej W. Rozycki <macro@mips.com>
1913
1914 * mips-linux-nat.c (mips_linux_nat_target::read_description):
1915 Call `get_ptrace_pid' rather than extracting the ptrace PID by
1916 hand.
1917
1918 2018-07-20 Keith Seitz <keiths@redhat.com>
1919
1920 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
1921 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
1922 m_compunit_symtab, m_language>: Add "m_" prefix.
1923 Update all uses.
1924 * buildsym.c: Update all uses.
1925
1926 2018-07-20 Tom Tromey <tom@tromey.com>
1927
1928 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
1929 * buildsym.h (record_line_ftype): Remove typedef.
1930
1931 2018-07-20 Tom Tromey <tom@tromey.com>
1932
1933 * buildsym-legacy.h (augment_type_symtab): Don't declare.
1934 (end_expandable_symtab): Likewise.
1935 (end_symtab_get_static_block): Likewise.
1936 (end_symtab_from_static_block): Likewise.
1937 * buildsym-legacy.c (augment_type_symtab): Remove.
1938 (end_expandable_symtab): Remove.
1939 (end_symtab_get_static_block): Remove.
1940 (end_symtab_from_static_block): Remove.
1941
1942 2018-07-20 Tom Tromey <tom@tromey.com>
1943
1944 * dwarf2read.c: Include buildsym.h.
1945 (struct dwarf2_cu) <builder>: New method.
1946 (fixup_go_packaging): Update.
1947 (process_full_comp_unit, process_full_type_unit): Update. Don't
1948 use scoped_free_pendings.
1949 (using_directives): Add "cu" parameter, remove "language".
1950 (read_import_statement, setup_type_unit_groups, )
1951 (read_func_scope, read_lexical_block_scope)
1952 (dwarf2_record_block_ranges, read_namespace): Update.
1953 (lnp_state_machine::lnp_state_machine): Add cu parameter.
1954 (lnp_state_machine::handle_end_sequence): Update.
1955 (class lnp_state_machine) <m_cu>: New member.
1956 <m_record_line_callback>: Remove.
1957 <m_currently_recording_lines>: New member.
1958 (lnp_state_machine::handle_set_file): Update.
1959 (noop_record_line): Remove.
1960 (dwarf_record_line_p): Add cu parameter.
1961 (dwarf_record_line_1, dwarf_finish_line): Likewise.
1962 (lnp_state_machine::record_line)
1963 (lnp_state_machine::lnp_state_machine)
1964 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
1965 (dwarf_decode_lines): Update.
1966 (dwarf2_start_subfile): Add cu parameter.
1967 (dwarf2_start_symtab, new_symbol): Update.
1968 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
1969 Remove dwarf2_per_objfile parameter.
1970 (dwarf_decode_macros): Update.
1971
1972 2018-07-20 Tom Tromey <tom@tromey.com>
1973
1974 * stabsread.c (define_symbol): Update.
1975 * buildsym-legacy.h (get_buildsym_compunit): Declare.
1976 * dwarf2read.c (new_symbol): Update.
1977 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
1978 * cp-namespace.c: Include buildsym.h.
1979 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
1980 * buildsym-legacy.c (get_buildsym_compunit): New function.
1981
1982 2018-07-20 Tom Tromey <tom@tromey.com>
1983
1984 * xcoffread.c: Include buildsym-legacy.h.
1985 * windows-nat.c: Include buildsym-legacy.h.
1986 * stabsread.c: Include buildsym-legacy.h.
1987 * mdebugread.c: Include buildsym-legacy.h.
1988 * buildsym-legacy.h: New file.
1989 * buildsym-legacy.c: New file, from buildsym.c.
1990 * go32-nat.c: Include buildsym-legacy.h.
1991 * dwarf2read.c: Include buildsym-legacy.h.
1992 * dbxread.c: Include buildsym-legacy.h.
1993 * cp-namespace.c: Include buildsym-legacy.h.
1994 * coffread.c: Include buildsym-legacy.h.
1995 * buildsym.h: Move some contents to buildsym-legacy.h.
1996 * buildsym.c: Include buildsym-legacy.h. Move many functions to
1997 buildsym-legacy.c.
1998 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
1999
2000 2018-07-20 Tom Tromey <tom@tromey.com>
2001
2002 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
2003 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
2004 (buildsym_compunit::buildsym_compunit)
2005 (buildsym_compunit::~buildsym_compunit)
2006 (buildsym_compunit::get_macro_table): Define.
2007
2008 2018-07-20 Tom Tromey <tom@tromey.com>
2009
2010 * buildsym.c (reset_symtab_globals): Remove.
2011 (buildsym_compunit::end_symtab_from_static_block): Update.
2012 (buildsym_compunit::augment_type_symtab): Update.
2013 (end_symtab_from_static_block): Call free_buildsym_compunit.
2014 (augment_type_symtab, end_symtab, end_expandable_symtab):
2015 Likewise.
2016
2017 2018-07-20 Tom Tromey <tom@tromey.com>
2018
2019 * arch-utils.c: Do not include buildsym.h.
2020 * mipsread.c: Do not include buildsym.h.
2021 * machoread.c: Do not include buildsym.h.
2022 * elfread.c: Do not include buildsym.h.
2023
2024 2018-07-20 Tom Tromey <tom@tromey.com>
2025
2026 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
2027 initialization.
2028 (buildsym_compunit): Add new constructor.
2029 (struct buildsym_compunit) <get_last_source_file, finish_block,
2030 record_block_range, start_subfile, patch_subfile_names,
2031 push_subfile, pop_subfile, record_line, get_compunit_symtab,
2032 set_last_source_start_addr, get_last_source_start_addr,
2033 get_local_using_directives, set_local_using_directives,
2034 get_global_using_directives, outermost_context_p,
2035 get_current_context_stack, get_context_stack_depth,
2036 get_current_subfile, get_local_symbols, get_file_symbols,
2037 get_global_symbols, record_debugformat, record_producer,
2038 push_context, pop_context, end_symtab_get_static_block,
2039 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
2040 New public methods.
2041 <record_pending_block, finish_block_internal, make_blockvector,
2042 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
2043 private methods.
2044 Update all users.
2045
2046 2018-05-22 Tom Tromey <tom@tromey.com>
2047
2048 * buildsym.c (record_pending_block): Move earlier. Remove objfile
2049 parameter.
2050 (finish_block_internal): Update.
2051
2052 2018-07-20 Tom Tromey <tom@tromey.com>
2053
2054 * buildsym.c (record_pending_block): Move earlier. Remove objfile
2055 parameter.
2056 (finish_block_internal): Update.
2057
2058 2018-07-20 Tom Tromey <tom@tromey.com>
2059
2060 * buildsym.h (EXTERN): Don't define or undef.
2061 * buildsym.c (EXTERN): Don't define.
2062
2063 2018-07-20 Tom Tromey <tom@tromey.com>
2064
2065 * buildsym.c: Remove TODO comment.
2066
2067 2018-07-20 Tom Tromey <tom@tromey.com>
2068
2069 * coffread.c (coff_symtab_read): Update.
2070 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
2071 (xcoff_new_init): Update.
2072 * mipsread.c (mipscoff_new_init): Update.
2073 * mdebugread.c (mdebug_build_psymtabs): Update.
2074 * elfread.c (elf_new_init): Update.
2075 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
2076 Update.
2077 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
2078 (coffstab_build_psymtabs, elfstab_build_psymtabs)
2079 (stabsect_build_psymtabs): Update.
2080 * buildsym.h (buildsym_init): Don't declare.
2081 * buildsym.c: Update comment.
2082 (prepare_for_building): Remove.
2083 (start_symtab, restart_symtab): Update.
2084 (reset_symtab_globals): Update comment.
2085 (buildsym_init): Remove.
2086
2087 2018-07-20 Tom Tromey <tom@tromey.com>
2088
2089 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
2090 * stabsread.c (patch_block_stabs, define_symbol, read_type)
2091 (read_enum_type, common_block_start, common_block_end)
2092 (cleanup_undefined_types_1, finish_global_stabs): Update.
2093 * mdebugread.c (psymtab_to_symtab_1): Update.
2094 * dwarf2read.c (fixup_go_packaging, read_func_scope)
2095 (read_lexical_block_scope, new_symbol): Update.
2096 * dbxread.c (process_one_symbol): Update.
2097 * coffread.c (coff_symtab_read, process_coff_symbol)
2098 (coff_read_enum_type): Update.
2099 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
2100 declare.
2101 (get_local_symbols, get_file_symbols, get_global_symbols): New
2102 functions.
2103 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
2104 m_global_symbols.
2105 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
2106 (~scoped_free_pendings): Update.
2107 (finish_block, prepare_for_building, reset_symtab_globals)
2108 (end_symtab_get_static_block, end_symtab_with_blockvector)
2109 (augment_type_symtab, push_context): Update.
2110 (get_local_symbols, get_file_symbols, get_global_symbols): New
2111 functions.
2112 (buildsym_init): Update.
2113
2114 2018-07-20 Tom Tromey <tom@tromey.com>
2115
2116 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
2117 (process_full_type_unit): Likewise.
2118 (dwarf2_start_symtab): Set list_in_scope.
2119
2120 2018-07-20 Tom Tromey <tom@tromey.com>
2121
2122 * dwarf2read.c (process_psymtab_comp_unit_reader)
2123 (build_type_psymtabs_reader): Do not set list_in_scope.
2124
2125 2018-07-20 Tom Tromey <tom@tromey.com>
2126
2127 * buildsym.c (free_pendings): Remove.
2128 (add_symbol_to_list, scoped_free_pendings)
2129 (finish_block_internal, buildsym_init): Update.
2130
2131 2018-07-20 Tom Tromey <tom@tromey.com>
2132
2133 * xcoffread.c (read_xcoff_symtab): Update.
2134 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
2135 Update.
2136 * dbxread.c (process_one_symbol): Update.
2137 * coffread.c (coff_symtab_read): Update.
2138 * buildsym.h (finish_block): Update.
2139 * buildsym.c (finish_block): Remove "listhead" argument.
2140 (end_symtab_get_static_block): Update.
2141
2142 2018-07-20 Tom Tromey <tom@tromey.com>
2143
2144 * buildsym.h (class scoped_free_pendings): Remove constructor.
2145 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
2146 method.
2147 <m_pending_block_obstack, m_pending_blocks>: New members.
2148 (pending_block_obstack, pending_blocks): Remove.
2149 (scoped_free_pendings::scoped_free_pendings): Default.
2150 (~scoped_free_pendings): Update.
2151 (free_pending_blocks): Remove.
2152 (finish_block_internal, record_pending_block, make_blockvector)
2153 (end_symtab_get_static_block, augment_type_symtab, push_context)
2154 (buildsym_init): Update.
2155
2156 2018-07-20 Tom Tromey <tom@tromey.com>
2157
2158 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
2159 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
2160 members.
2161 (pending_addrmap, pending_addrmap_obstack)
2162 (pending_addrmap_interesting): Remove.
2163 (scoped_free_pendings, record_block_range, make_blockvector)
2164 (prepare_for_building, reset_symtab_globals, buildsym_init):
2165 Update.
2166
2167 2018-07-20 Tom Tromey <tom@tromey.com>
2168
2169 * xcoffread.c (process_linenos): Update.
2170 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
2171 * mdebugread.c (psymtab_to_symtab_1): Update.
2172 * dwarf2read.c (setup_type_unit_groups)
2173 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
2174 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
2175 * dbxread.c (process_one_symbol): Update.
2176 * coffread.c (coff_symtab_read, enter_linenos)
2177 (process_coff_symbol): Update.
2178 * buildsym.h (current_subfile): Don't declare.
2179 (get_current_subfile): Declare.
2180 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
2181 member.
2182 (start_subfile, free_buildsym_compunit, push_subfile)
2183 (prepare_for_building, start_symtab): Update.
2184 (get_current_subfile): New function.
2185
2186 2018-07-20 Tom Tromey <tom@tromey.com>
2187
2188 * coffread.c (coff_symtab_read): Update.
2189 * xcoffread.c (read_xcoff_symtab): Update.
2190 * dwarf2read.c (new_symbol): Update.
2191 (read_func_scope, read_lexical_block_scope): Update.
2192 * dbxread.c (process_one_symbol): Update.
2193 * buildsym.h (context_stack, context_stack_depth): Don't declare.
2194 (outermost_context_p): Remove macro.
2195 (outermost_context_p, get_current_context_stack)
2196 (get_context_stack_depth): Declare.
2197 (pop_context): Return struct context_stack.
2198 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
2199 member.
2200 (context_stack_size): Remove.
2201 (INITIAL_CONTEXT_STACK_SIZE): Remove.
2202 (prepare_for_building, end_symtab_get_static_block)
2203 (augment_type_symtab, push_context): Update.
2204 (pop_context): Return struct context_stack.
2205 (outermost_context_p, get_current_context_stack)
2206 (get_context_stack_depth): New functions.
2207 (buildsym_init): Update.
2208
2209 2018-07-20 Tom Tromey <tom@tromey.com>
2210
2211 * rust-exp.y: Now a pure parser. Update all rules.
2212 (%union): Move earlier.
2213 (current_parser, work_obstack): Remove globals.
2214 (rust_parser, ~rust_parser): Update.
2215 (class rust_parser) <copy_name, concat3, crate_name, super_name,
2216 lex_character, lex_number, lex_string, lex_identifier,
2217 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
2218 convert_name, convert_params_to_expression,
2219 convert_ast_to_expression, ast_basic_type, ast_operation,
2220 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
2221 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
2222 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
2223 ast_array_type, ast_slice_type, ast_reference_type,
2224 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
2225 (rust_parse): Update.
2226 (rustyyerror, rustyylex): Add parser parameter.
2227 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
2228 (rust_lex_stringish_test, rust_lex_test_sequence)
2229 (rust_lex_test_trailing_dot, rust_lex_test_completion)
2230 (rust_lex_test_push_back, rust_lex_tests): Update.
2231
2232 2018-07-19 Pedro Alves <palves@redhat.com>
2233
2234 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
2235 gdb::unique_xmalloc_ptr.
2236 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
2237 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
2238 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
2239 copy-initialization.
2240 * guile/scm-pretty-print.c (ppscm_print_children): Use
2241 gdb::unique_xmalloc_ptr instead of cleanups.
2242 (gdbscm_apply_val_pretty_printer): Remove cleanups.
2243 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
2244 gdb::unique_xmalloc_ptr.
2245 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
2246 Adjust to use gdb::unique_xmalloc_ptr.
2247 * guile/scm-utils.c (extract_arg): Adjust.
2248 * guile/scm-value.c (gdbscm_value_field): Adjust to use
2249 gdb::unique_xmalloc_ptr instead of a cleanup.
2250
2251 2018-07-19 Tom Tromey <tom@tromey.com>
2252
2253 * utils.c (do_value_free_to_mark)
2254 (make_cleanup_value_free_to_mark): Remove.
2255 * utils.h (make_cleanup_value_free_to_mark): Remove.
2256
2257 2018-07-19 Pedro Alves <palves@redhat.com>
2258
2259 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
2260 forwarding reference.
2261
2262 2018-07-18 Pedro Alves <palves@redhat.com>
2263
2264 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
2265 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
2266 cleanup.
2267
2268 2018-07-18 Pedro Alves <palves@redhat.com>
2269
2270 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
2271 exceptions.
2272 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
2273 (gdbscm_wrap): New.
2274 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
2275 directly instead of a cleanup.
2276 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
2277 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
2278 (vlscm_binop_gdbthrow): New, factored out from ...
2279 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
2280 (vlscm_rich_compare): Use gdbscm_wrap.
2281 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
2282 instead of a cleanup.
2283 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
2284 cleanup.
2285 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
2286 Use xfree directly instead of a cleanup.
2287 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
2288 Adjust to use gdbscm_wrap and scoped_value_mark.
2289 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
2290 (gdbscm_value_address, gdbscm_value_dereference)
2291 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
2292 scoped_value_mark.
2293 (gdbscm_value_dynamic_type): Use scoped_value_mark.
2294 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
2295 scoped_value_mark.
2296 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
2297 gdbscm_wrap and scoped_value_mark.
2298 (gdbscm_value_to_string): Use xfree directly instead of a
2299 cleanup. Move 'buffer' unique_ptr to TRY scope.
2300 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
2301 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
2302 scoped_value_mark.
2303 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
2304 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
2305 scoped_value_mark.
2306 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
2307 gdbscm_wrap.
2308
2309 2018-07-18 Tom de Vries <tdevries@suse.de>
2310
2311 * findvar.c (default_read_var_value): Also resolve dynamic type for
2312 LOC_OPTIMIZED_OUT vars.
2313
2314 2018-07-18 Maciej W. Rozycki <macro@mips.com>
2315
2316 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
2317 decoding.
2318
2319 2018-07-17 Tom Tromey <tom@tromey.com>
2320
2321 * guile/scm-param.c (pascm_set_func, pascm_show_func)
2322 (compute_enum_list, pascm_set_param_value_x)
2323 (gdbscm_parameter_value): Update.
2324 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
2325 (gdbscm_scm_to_host_string): Update.
2326 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
2327 Update.
2328 * guile/scm-cmd.c (cmdscm_add_completion): Update.
2329 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
2330 * guile/scm-string.c (gdbscm_scm_to_string): Return
2331 unique_xmalloc_ptr.
2332 (gdbscm_scm_to_host_string): Likewise.
2333
2334 2018-07-17 Tom Tromey <tom@tromey.com>
2335
2336 * guile/guile.c (gdbscm_eval_from_control_command): Update.
2337 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
2338 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
2339 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
2340 unique_xmalloc_ptr.
2341
2342 2018-07-17 Tom Tromey <tom@tromey.com>
2343
2344 * guile/scm-param.c (pascm_signal_setshow_error): Update.
2345 * guile/guile-internal.h (gdbscm_exception_message_to_string):
2346 Update.
2347 * guile/scm-cmd.c (cmdscm_function): Update.
2348 * guile/scm-pretty-print.c
2349 (ppscm_print_exception_unless_memory_error): Update.
2350 * guile/scm-exception.c (gdbscm_exception_message_to_string):
2351 Return unique_xmalloc_ptr.
2352
2353 2018-07-17 Tom Tromey <tom@tromey.com>
2354
2355 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
2356 Use string_printf.
2357
2358 2018-07-17 Jim Wilson <jimw@sifive.com>
2359
2360 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
2361 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
2362 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
2363 unecessary braces after EF_RISCV_RVC test. Delete call to
2364 set_gdbarch_decr_pc_after_break.
2365
2366 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
2367 RISCV_LAST_FP_REGNUM + 1.
2368 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
2369
2370 2018-07-17 Tom Tromey <tom@tromey.com>
2371
2372 * configure.ac: Remove --disable-gdbcli.
2373 * configure: Rebuild.
2374 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
2375 (SUBDIR_CLI_CFLAGS): Remove.
2376 (SFILES): Use SUBDIR_CLI_SRCS.
2377 (COMMON_OBS): Use SUBDIR_CLI_OBS.
2378
2379 2018-07-17 Tom Tromey <tom@tromey.com>
2380
2381 PR gdb/18624:
2382 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
2383
2384 2018-07-16 Jim Wilson <jimw@sifive.com>
2385
2386 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
2387
2388 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
2389
2390 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
2391 variable.
2392 (libunwind_frame_sniffer): Likewise.
2393 (libunwind_frame_prev_register): Likewise.
2394 (libunwind_sigtramp_frame_sniffer): Likewise.
2395 * ia64-tdep.c (ia64_access_reg): Likewise.
2396 (ia64_access_rse_reg): Likewise.
2397 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
2398 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
2399
2400 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
2401
2402 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
2403
2404 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
2405
2406 * remote-sim.c (gdbsim_target::close,
2407 gdbsim_target::mourn_inferior): Remove unused variables.
2408
2409 2018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
2410
2411 * ia64-tdep.c (ktab_buf): New global.
2412 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
2413 (get_kernel_table): Adjust.
2414
2415 2018-07-16 Tom Tromey <tom@tromey.com>
2416
2417 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
2418 * dwarf2read.c (using_directives, new_symbol): Use
2419 outermost_context_p.
2420 * dbxread.c (process_one_symbol): Use outermost_context_p.
2421 * coffread.c (coff_symtab_read): Use outermost_context_p.
2422
2423 2018-07-16 Tom Tromey <tom@tromey.com>
2424
2425 * dwarf2read.c (using_directives, read_func_scope)
2426 (read_lexical_block_scope): Update.
2427 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
2428 * buildsym.h (local_using_directives, global_using_directives):
2429 Don't declare.
2430 (get_local_using_directives, set_local_using_directives)
2431 (get_global_using_directives): Declare.
2432 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
2433 m_global_using_directives>: New members.
2434 (finish_block_internal, prepare_for_building)
2435 (reset_symtab_globals, end_symtab_get_static_block)
2436 (push_context): Update.
2437 (get_local_using_directives, set_local_using_directives)
2438 (get_global_using_directives): New functions.
2439 (buildsym_init): Update.
2440
2441 2018-07-16 Tom Tromey <tom@tromey.com>
2442
2443 * xcoffread.c (xcoff_initial_scan): Don't call
2444 free_pending_blocks.
2445 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
2446 * buildsym.h (class scoped_free_pendings): Add constructor.
2447 (free_pending_blocks): Don't declare.
2448 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
2449 (free_pending_blocks): Now static.
2450
2451 2018-07-16 Tom Tromey <tom@tromey.com>
2452
2453 * buildsym.h (push_subfile, pop_subfile): Update declarations.
2454 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
2455 member.
2456 (struct subfile_stack): Remove.
2457 (subfile_stack): Remove.
2458 (push_subfile, pop_subfile, buildsym_init): Update.
2459
2460 2018-07-16 Tom Tromey <tom@tromey.com>
2461
2462 * buildsym.c (push_subfile): Use gdb_assert.
2463 (pop_subfile): Use gdb_assert.
2464
2465 2018-07-16 Tom Tromey <tom@tromey.com>
2466
2467 * buildsym.h (merge_symbol_lists): Remove.
2468 * buildsym.c (merge_symbol_lists): Remove.
2469
2470 2018-07-16 Tom Tromey <tom@tromey.com>
2471
2472 * stabsread.c (scan_file_globals): Update comment.
2473 * stabsread.h (scan_file_globals): Move from buildsym.h.
2474 * buildsym.h (scan_file_globals): Move to stabsread.h.
2475
2476 2018-07-16 Tom Tromey <tom@tromey.com>
2477
2478 * xcoffread.c (xcoff_new_init): Update.
2479 * mipsread.c (mipscoff_new_init): Update.
2480 * mdebugread.c (mdebug_build_psymtabs): Update.
2481 * elfread.c (elf_new_init): Update.
2482 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
2483 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
2484 * buildsym.h (buildsym_new_init): Don't declare.
2485 * buildsym.c (buildsym_new_init): Remove.
2486
2487 2018-07-16 Tom Tromey <tom@tromey.com>
2488
2489 * stabsread.h (within_function): Move from buildsym.h.
2490 * stabsread.c (start_stabs): Clear within_function.
2491 * coffread.c (coff_start_symtab): Clear within_function.
2492 * buildsym.h (within_function): Move to stabsread.h.
2493 * buildsym.c (prepare_for_building): Update.
2494
2495 2018-07-16 Tom Tromey <tom@tromey.com>
2496
2497 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
2498 * dwarf2read.c (dwarf2_start_symtab): Don't set
2499 processing_gcc_compilation.
2500 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
2501
2502 2018-07-16 Tom Tromey <tom@tromey.com>
2503
2504 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
2505 (next_symbol_text_func): Move from buildsym.h.
2506 * stabsread.c (hashname): Move from buildsym.c.
2507 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
2508 (next_symbol_text_func, hashname): Move to stabsread.h.
2509 * buildsym.c: Don't include bcache.h
2510 (hashname): Move to stasbread.c.
2511
2512 2018-07-16 Tom Tromey <tom@tromey.com>
2513
2514 * buildsym.h (context_stack_size): Don't declare.
2515 * buildsym.c (context_stack_size): New global.
2516
2517 2018-07-16 Tom Tromey <tom@tromey.com>
2518
2519 * dbxread.c (processing_acc_compilation): New global.
2520 * buildsym.h (processing_acc_compilation): Don't declare.
2521
2522 2018-07-16 Tom Tromey <tom@tromey.com>
2523
2524 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
2525 * dbxread.c (read_ofile_symtab): Update.
2526 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
2527 * buildsym.h (last_source_start_addr): Remove.
2528 (set_last_source_start_addr, get_last_source_start_addr):
2529 Declare.
2530 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
2531 parameter.
2532 (struct buildsym_compunit) <m_last_source_start_addr>: New
2533 member.
2534 (prepare_for_building): Remove start_addr parameter.
2535 (start_symtab, restart_symtab, end_symtab_get_static_block)
2536 (end_symtab_with_blockvector): Update.
2537 (set_last_source_start_addr, get_last_source_start_addr): New
2538 functions.
2539
2540 2018-07-16 Tom Tromey <tom@tromey.com>
2541
2542 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
2543 member.
2544 (have_line_numbers): Remove.
2545 (record_line, prepare_for_building, end_symtab_get_static_block)
2546 (augment_type_symtab): Update.
2547
2548 2018-07-16 Tom Tromey <tom@tromey.com>
2549
2550 * buildsym.c (~buildsym_compunit): Free the macro table.
2551 (struct buildsym_compunit) <get_macro_table, release_macros>: New
2552 methods.
2553 <m_pending_macros>: New member.
2554 (pending_macros): Remove.
2555 (~scoped_free_pendings, get_macro_table, prepare_for_building)
2556 (reset_symtab_globals, end_symtab_get_static_block)
2557 (end_symtab_with_blockvector, augment_type_symtab)
2558 (buildsym_init): Update.
2559
2560 2018-07-16 Tom Tromey <tom@tromey.com>
2561
2562 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
2563 parameter.
2564 (buildsym_compunit::set_last_source_file): New method.
2565 <m_last_source_file>: New member.
2566 (prepare_for_building): Remove "name" parameter.
2567 (start_symtab, restart_symtab, reset_symtab_globals): Update.
2568 (last_source_file): Remove.
2569 (set_last_source_file, get_last_source_file): Update.
2570
2571 2018-07-16 Tom Tromey <tom@tromey.com>
2572
2573 * buildsym.c (prepare_for_building): Add assert.
2574
2575 2018-07-16 Tom Tromey <tom@tromey.com>
2576
2577 * buildsym.c (~buildsym_compunit): Update.
2578 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
2579 (start_subfile, patch_subfile_names)
2580 (end_symtab_with_blockvector): Update.
2581
2582 2018-07-16 Tom Tromey <tom@tromey.com>
2583
2584 * buildsym.c (struct buildsym_compunit): Add constructor,
2585 destructor, initializers.
2586 (start_buildsym_compunit): Remove.
2587 (free_buildsym_compunit): Use "delete".
2588 (start_symtab, restart_symtab): Use "new".
2589
2590 2018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
2591
2592 * symfile.c (set_objfile_default_section_offset): Remove struct
2593 keyword.
2594
2595 2018-07-14 Stafford Horne <shorne@gmail.com>
2596
2597 * (Responsible Maintainers): Add myself as or1k maintainer.
2598
2599 2018-07-13 Tom Tromey <tom@tromey.com>
2600
2601 * symfile.c (set_objfile_default_section_offset): Use extra braces
2602 around initializer.
2603
2604 2018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
2605
2606 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
2607 non-branching basr.
2608
2609 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2610
2611 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2612 unittests/cli-utils-selftests.c
2613 * unittests/cli-utils-selftests.c: New file.
2614
2615 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2616
2617 * NEWS: Mention new commands. Mention change to 'thread apply'.
2618
2619 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2620
2621 * thread.c (thr_try_catch_cmd): New function.
2622 (thread_apply_all_command): Handle qcs flags.
2623 (thread_apply_command): Handle qcs flags.
2624 (taas_command): New function.
2625 (tfaas_command): New function.
2626 (_initialize_thread): Update to setup the new commands 'taas
2627 and 'tfaas'. Change doc string for 'thread apply'.
2628
2629 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2630
2631 * stack.c: (trailing_outermost_frame): New function, mostly
2632 extracted from backtrace_command_1.
2633 (leading_innermost_frame): New function.
2634 (backtrace_command_1): Update to call trailing_outermost_frame.
2635 (frame_apply_command_count): New function.
2636 (frame_apply_level_command): New function.
2637 (frame_apply_all_command): New function.
2638 (frame_apply_command): New function.
2639 (faas_command): New function.
2640 (frame_cmd_list): New variable.
2641 (_initialize_stack): Update to setup the new commands 'frame apply'
2642 and 'faas'.
2643
2644 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2645
2646 * cli-utils.c (number_or_range_parser::get_number): Only handle
2647 numbers or convenience var as numbers.
2648 (parse_flags): New function.
2649 (parse_flags_qcs): New function.
2650 (number_or_range_parser::finished): Ensure parsing end is detected
2651 before end of string.
2652 * cli-utils.h (parse_flags): New function.
2653 (parse_flags_qcs): New function.
2654 (number_or_range_parser): Remove m_finished bool.
2655 (number_or_range_parser::skip_range): Set m_in_range to false.
2656
2657 2018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
2658
2659 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
2660 on Windows.
2661
2662 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
2663 Jan Kratochvil <jan.kratochvil@redhat.com>
2664 Paul Fertser <fercerpav@gmail.com>
2665 Tsutomu Seki <sekiriki@gmail.com>
2666 Pedro Alves <palves@redhat.com>
2667
2668 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2669 'unittests/parse-connection-spec-selftests.c'.
2670 (COMMON_SFILES): Add 'common/netstuff.c'.
2671 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
2672 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
2673 * common/netstuff.c: New file.
2674 * common/netstuff.h: New file.
2675 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
2676 (wait_for_connect): Update comment. New parameter
2677 'gdb::optional<int> sock' instead of 'struct serial *scb'.
2678 Use 'sock' directly instead of 'scb->fd'.
2679 (try_connect): New function, with code from 'net_open'.
2680 (net_open): Rewrite main loop to deal with multiple
2681 sockets/addresses. Handle IPv6-style hostnames; implement
2682 support for IPv6 connections.
2683 * unittests/parse-connection-spec-selftests.c: New file.
2684
2685 2018-07-11 Pedro Alves <palves@redhat.com>
2686
2687 PR gdb/23377
2688 * remote.c (remote_target::remote_detach_pid): Call
2689 set_current_process.
2690
2691 2018-07-11 Pedro Alves <palves@redhat.com>
2692
2693 * h8300-tdep.c (h8300_gdbarch_init): Remove
2694 set_gdbarch_ecoff_reg_to_regnum calls.
2695
2696 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
2697
2698 PR c++/23373
2699 * c-typeprint.c (c_type_print_base_struct_union): Don't print
2700 offsets/sizes for static members of a class/struct.
2701
2702 2018-07-11 Alan Hayward <alan.hayward@arm.com>
2703
2704 * target-descriptions.c (tdesc_register_bitsize): Rename.
2705 * target-descriptions.h (tdesc_register_bitsize): Likewise.
2706 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
2707 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
2708
2709 2018-07-10 Tom Tromey <tom@tromey.com>
2710
2711 * breakpoint.c (moribund_locations): Now static and a
2712 std::vector.
2713 (breakpoint_init_inferior, moribund_breakpoint_here_p)
2714 (build_bpstat_chain, update_global_location_list)
2715 (breakpoint_retire_moribund): Update.
2716 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
2717 VEC.
2718
2719 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
2720
2721 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
2722 (riscv_register_reggroup_p): Use new function, remove unneeded
2723 parenthesis.
2724 (riscv_push_dummy_call): Extend assert to compare against xlen or
2725 flen based on register type.
2726
2727 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
2728
2729 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
2730
2731 2018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2732
2733 * remote.c (show_hardware_watchpoint_limit): New function.
2734 (show_hardware_watchpoint_length_limit): New function.
2735 (show_hardware_breakpoint_limit): New function.
2736 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
2737 where appropriate, update help text.
2738
2739 2018-07-09 Tom Tromey <tom@tromey.com>
2740
2741 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
2742 (CLIBS): Don't mention NAT_CLIBS.
2743
2744 2018-07-09 Tom Tromey <tom@tromey.com>
2745
2746 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
2747 (LIBGDB_OBS, clean mostlyclean): Update.
2748 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
2749
2750 2018-07-09 Tom Tromey <tom@tromey.com>
2751
2752 * Makefile.in (%.c: %.y): Use ECHO_YACC.
2753 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
2754 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
2755
2756 2018-07-09 Tom Tromey <tom@tromey.com>
2757
2758 * Makefile.in (ALLDEPFILES): Remove exec.c.
2759 (COMMON_OBS): Remove exec.o.
2760 (COMMON_SFILES): Add exec.c.
2761
2762 2018-07-09 Tom Tromey <tom@tromey.com>
2763
2764 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
2765
2766 2018-07-09 Tom Tromey <tom@tromey.com>
2767
2768 * Makefile.in (clean mostlyclean): Remove stamp-version.
2769 (version.c): Depend on stamp-version.
2770 (stamp-version): New rule, from version.c rule.
2771
2772 2018-07-09 Tom Tromey <tom@tromey.com>
2773
2774 * Makefile.in (init.c): Depend on stamp-init.
2775 (stamp-init): New rule, from init.c rule.
2776 (clean mostlyclean): Remove stamp-init.
2777
2778 2018-07-09 Tom Tromey <tom@tromey.com>
2779
2780 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
2781 SUBDIR_GCC_COMPILE_SRCS.
2782
2783 2018-07-09 Tom Tromey <tom@tromey.com>
2784
2785 * Makefile.in (init.c): Remove some unused sed rules.
2786
2787 2018-07-09 Tom Tromey <tom@tromey.com>
2788
2789 * Makefile.in (TSOBS): Remove.
2790 (INIT_FILES): Update.
2791 (LIBGDB_OBS): Update.
2792 (COMMON_SFILES): Add inflow.c.
2793 (SFILES): Remove inflow.c.
2794
2795 2018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2796
2797 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
2798
2799 2018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
2800
2801 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
2802 get_saveloc_name, is_signal_frame_name, step_name,
2803 init_remote_name, create_addr_space_name,
2804 destroy_addr_space_name, search_unwind_table_name,
2805 find_dyn_list_name): Constify.
2806
2807 2018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
2808
2809 * darwin-nat.c (darwin_pthread_kill): New function.
2810 (darwin_resume_thread): Use darwin_pthread_kill.
2811
2812 2018-07-05 Tom de Vries <tdevries@suse.de>
2813
2814 * macroexp.c (macro_buffer) <operator=>: New member function.
2815
2816 2018-07-04 Tom Tromey <tom@tromey.com>
2817
2818 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
2819
2820 2018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
2821
2822 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
2823 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
2824 * maint.c: Likewise.
2825 * top.c: Likewise.
2826
2827 2018-07-04 Joel Brobecker <brobecker@adacore.com>
2828
2829 * NEWS: Create a new section for the next release branch.
2830 Rename the section of the current branch, now that it has
2831 been cut.
2832
2833 2018-07-04 Joel Brobecker <brobecker@adacore.com>
2834
2835 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
2836 * version.in: Bump version to 8.2.50.DATE-git.
2837
2838 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
2839 Pedro Alves <palves@redhat.com>
2840
2841 * linux-nat.c (linux_init_ptrace): Rename to ...
2842 (linux_init_ptrace_procfs): ... this. Call
2843 linux_proc_init_warnings.
2844 (linux_nat_target::post_attach)
2845 (linux_nat_target::post_startup_inferior): Adjust.
2846 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
2847 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
2848
2849 2018-07-04 Tom de Vries <tdevries@suse.de>
2850
2851 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
2852 check ...
2853 (read_comp_unit_head): ... here.
2854
2855 2018-07-03 Tom Tromey <tom@tromey.com>
2856
2857 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
2858 (stop_tracing, tstatus_command)
2859 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
2860 (print_one_static_tracepoint_marker): Update.
2861 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
2862 std::vector.
2863 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
2864 VEC.
2865 (all_tracepoints, static_tracepoints_here): Return std::vector.
2866
2867 2018-07-03 Tom Tromey <tom@tromey.com>
2868
2869 * common/ptid.c (ptid_equal): Remove.
2870 * common/ptid.h (ptid_equal): Don't declare.
2871 * ada-tasks.c: Update.
2872 * breakpoint.c: Update.
2873 * common/agent.c: Update.
2874 * corelow.c: Update.
2875 * darwin-nat-info.c: Update.
2876 * darwin-nat.c: Update.
2877 * dcache.c: Update.
2878 * dtrace-probe.c: Update.
2879 * dummy-frame.c: Update.
2880 * fbsd-nat.c: Update.
2881 * frame.c: Update.
2882 * gdbthread.h: Update.
2883 * gnu-nat.c: Update.
2884 * go32-nat.c: Update.
2885 * inf-loop.c: Update.
2886 * inf-ptrace.c: Update.
2887 * infcall.c: Update.
2888 * infcmd.c: Update.
2889 * inflow.c: Update.
2890 * infrun.c: Update.
2891 * linux-fork.c: Update.
2892 * linux-nat.c: Update.
2893 * linux-thread-db.c: Update.
2894 * mi/mi-cmd-var.c: Update.
2895 * mi/mi-interp.c: Update.
2896 * mi/mi-main.c: Update.
2897 * nto-procfs.c: Update.
2898 * ppc-linux-tdep.c: Update.
2899 * procfs.c: Update.
2900 * python/py-inferior.c: Update.
2901 * python/py-record-btrace.c: Update.
2902 * python/py-record.c: Update.
2903 * ravenscar-thread.c: Update.
2904 * regcache.c: Update.
2905 * remote-sim.c: Update.
2906 * remote.c: Update.
2907 * sol-thread.c: Update.
2908 * solib.c: Update.
2909 * target.c: Update.
2910 * tui/tui-stack.c: Update.
2911 * varobj.c: Update.
2912 * windows-nat.c: Update.
2913 * windows-tdep.c: Update.
2914
2915 2018-07-03 Tom Tromey <tom@tromey.com>
2916
2917 * common/ptid.c (ptid_match): Remove.
2918 * common/ptid.h (ptid_match): Don't declare.
2919 * fbsd-nat.c: Update.
2920 * infcmd.c: Update.
2921 * infrun.c: Update.
2922 * linux-nat.c: Update.
2923 * record-btrace.c: Update.
2924 * regcache.c: Update.
2925 * remote.c: Update.
2926
2927 2018-07-03 Tom Tromey <tom@tromey.com>
2928
2929 * common/ptid.c (ptid_tid_p): Remove.
2930 * common/ptid.h (ptid_tid_p): Don't declare.
2931 * sol-thread.c: Update.
2932
2933 2018-07-03 Tom Tromey <tom@tromey.com>
2934
2935 * common/ptid.c (ptid_lwp_p): Remove.
2936 * common/ptid.h (ptid_lwp_p): Don't declare.
2937 * fbsd-nat.c: Update.
2938 * linux-nat.c: Update.
2939 * nat/linux-procfs.c: Update.
2940 * nat/x86-linux-dregs.c: Update.
2941 * sol-thread.c: Update.
2942
2943 2018-07-03 Tom Tromey <tom@tromey.com>
2944
2945 * common/ptid.c (ptid_is_pid): Remove.
2946 * common/ptid.h (ptid_is_pid): Don't declare.
2947 * infrun.c: Update.
2948 * linux-nat.c: Update.
2949 * mi/mi-interp.c: Update.
2950 * remote.c: Update.
2951 * thread.c: Update.
2952
2953 2018-07-03 Tom Tromey <tom@tromey.com>
2954
2955 * common/ptid.c (ptid_get_tid): Remove.
2956 * common/ptid.h (ptid_get_tid): Don't declare.
2957 * ada-tasks.c: Update.
2958 * aix-thread.c: Update.
2959 * bsd-uthread.c: Update.
2960 * darwin-nat.c: Update.
2961 * fbsd-nat.c: Update.
2962 * i386-darwin-nat.c: Update.
2963 * infrun.c: Update.
2964 * linux-tdep.c: Update.
2965 * nto-procfs.c: Update.
2966 * ppc-ravenscar-thread.c: Update.
2967 * python/py-infthread.c: Update.
2968 * ravenscar-thread.c: Update.
2969 * sol-thread.c: Update.
2970 * sparc-ravenscar-thread.c: Update.
2971 * windows-nat.c: Update.
2972
2973 2018-07-03 Tom Tromey <tom@tromey.com>
2974
2975 * common/ptid.c (ptid_get_lwp): Remove.
2976 * common/ptid.h (ptid_get_lwp): Don't declare.
2977 * aarch64-linux-nat.c: Update.
2978 * ada-tasks.c: Update.
2979 * aix-thread.c: Update.
2980 * amd64-linux-nat.c: Update.
2981 * arm-linux-nat.c: Update.
2982 * corelow.c: Update.
2983 * fbsd-nat.c: Update.
2984 * fbsd-tdep.c: Update.
2985 * gnu-nat.c: Update.
2986 * i386-cygwin-tdep.c: Update.
2987 * i386-gnu-nat.c: Update.
2988 * i386-linux-nat.c: Update.
2989 * ia64-linux-nat.c: Update.
2990 * inf-ptrace.c: Update.
2991 * infrun.c: Update.
2992 * linux-fork.c: Update.
2993 * linux-nat.c: Update.
2994 * linux-tdep.c: Update.
2995 * linux-thread-db.c: Update.
2996 * mips-linux-nat.c: Update.
2997 * nat/aarch64-linux-hw-point.c: Update.
2998 * nat/aarch64-linux.c: Update.
2999 * nat/linux-btrace.c: Update.
3000 * nat/linux-osdata.c: Update.
3001 * nat/linux-procfs.c: Update.
3002 * nat/x86-linux-dregs.c: Update.
3003 * obsd-nat.c: Update.
3004 * ppc-fbsd-nat.c: Update.
3005 * ppc-linux-nat.c: Update.
3006 * procfs.c: Update.
3007 * python/py-infthread.c: Update.
3008 * ravenscar-thread.c: Update.
3009 * remote.c: Update.
3010 * s390-linux-nat.c: Update.
3011 * sol-thread.c: Update.
3012 * sol2-tdep.c: Update.
3013 * spu-linux-nat.c: Update.
3014 * x86-linux-nat.c: Update.
3015 * xtensa-linux-nat.c: Update.
3016
3017 2018-07-03 Tom Tromey <tom@tromey.com>
3018
3019 * common/ptid.c (ptid_get_pid): Remove.
3020 * common/ptid.h (ptid_get_pid): Don't declare.
3021 * aarch64-linux-nat.c: Update.
3022 * ada-lang.c: Update.
3023 * aix-thread.c: Update.
3024 * alpha-bsd-nat.c: Update.
3025 * amd64-fbsd-nat.c: Update.
3026 * amd64-linux-nat.c: Update.
3027 * arm-linux-nat.c: Update.
3028 * arm-nbsd-nat.c: Update.
3029 * auxv.c: Update.
3030 * break-catch-syscall.c: Update.
3031 * breakpoint.c: Update.
3032 * bsd-uthread.c: Update.
3033 * corelow.c: Update.
3034 * ctf.c: Update.
3035 * darwin-nat.c: Update.
3036 * fbsd-nat.c: Update.
3037 * fbsd-tdep.c: Update.
3038 * gcore.c: Update.
3039 * gnu-nat.c: Update.
3040 * hppa-nbsd-nat.c: Update.
3041 * hppa-obsd-nat.c: Update.
3042 * i386-fbsd-nat.c: Update.
3043 * ia64-linux-nat.c: Update.
3044 * inf-ptrace.c: Update.
3045 * infcmd.c: Update.
3046 * inferior.c: Update.
3047 * inferior.h: Update.
3048 * inflow.c: Update.
3049 * infrun.c: Update.
3050 * linux-fork.c: Update.
3051 * linux-nat.c: Update.
3052 * linux-tdep.c: Update.
3053 * linux-thread-db.c: Update.
3054 * m68k-bsd-nat.c: Update.
3055 * mi/mi-interp.c: Update.
3056 * mi/mi-main.c: Update.
3057 * mips-linux-nat.c: Update.
3058 * mips-nbsd-nat.c: Update.
3059 * mips64-obsd-nat.c: Update.
3060 * nat/aarch64-linux-hw-point.c: Update.
3061 * nat/aarch64-linux.c: Update.
3062 * nat/linux-btrace.c: Update.
3063 * nat/linux-osdata.c: Update.
3064 * nat/linux-procfs.c: Update.
3065 * nat/x86-linux-dregs.c: Update.
3066 * nto-procfs.c: Update.
3067 * obsd-nat.c: Update.
3068 * ppc-linux-nat.c: Update.
3069 * ppc-nbsd-nat.c: Update.
3070 * ppc-obsd-nat.c: Update.
3071 * proc-service.c: Update.
3072 * procfs.c: Update.
3073 * python/py-inferior.c: Update.
3074 * python/py-infthread.c: Update.
3075 * ravenscar-thread.c: Update.
3076 * record.c: Update.
3077 * remote-sim.c: Update.
3078 * remote.c: Update.
3079 * rs6000-nat.c: Update.
3080 * s390-linux-nat.c: Update.
3081 * sh-nbsd-nat.c: Update.
3082 * sol-thread.c: Update.
3083 * sparc-nat.c: Update.
3084 * sparc64-tdep.c: Update.
3085 * spu-linux-nat.c: Update.
3086 * spu-tdep.c: Update.
3087 * target-debug.h: Update.
3088 * target.c: Update.
3089 * thread.c: Update.
3090 * tid-parse.c: Update.
3091 * tracefile-tfile.c: Update.
3092 * vax-bsd-nat.c: Update.
3093 * windows-nat.c: Update.
3094 * x86-linux-nat.c: Update.
3095 * x86-nat.c: Update.
3096
3097 2018-07-03 Tom Tromey <tom@tromey.com>
3098
3099 * common/ptid.c (pid_to_ptid): Remove.
3100 * common/ptid.h (pid_to_ptid): Don't declare.
3101 * aix-thread.c: Update.
3102 * arm-linux-nat.c: Update.
3103 * common/ptid.c: Update.
3104 * common/ptid.h: Update.
3105 * corelow.c: Update.
3106 * ctf.c: Update.
3107 * darwin-nat.c: Update.
3108 * fbsd-nat.c: Update.
3109 * fork-child.c: Update.
3110 * gnu-nat.c: Update.
3111 * go32-nat.c: Update.
3112 * inf-ptrace.c: Update.
3113 * infcmd.c: Update.
3114 * inferior.c: Update.
3115 * infrun.c: Update.
3116 * linux-fork.c: Update.
3117 * linux-nat.c: Update.
3118 * nat/aarch64-linux-hw-point.c: Update.
3119 * nat/fork-inferior.c: Update.
3120 * nat/x86-linux-dregs.c: Update.
3121 * nto-procfs.c: Update.
3122 * obsd-nat.c: Update.
3123 * procfs.c: Update.
3124 * progspace.c: Update.
3125 * remote.c: Update.
3126 * rs6000-nat.c: Update.
3127 * s390-linux-nat.c: Update.
3128 * sol-thread.c: Update.
3129 * spu-linux-nat.c: Update.
3130 * target.c: Update.
3131 * top.c: Update.
3132 * tracefile-tfile.c: Update.
3133 * windows-nat.c: Update.
3134
3135 2018-07-03 Tom Tromey <tom@tromey.com>
3136
3137 * common/ptid.h (ptid_build): Don't declare.
3138 * common/ptid.c (ptid_build): Remove.
3139 * aix-thread.c: Update.
3140 * bsd-kvm.c: Update.
3141 * bsd-uthread.c: Update.
3142 * common/agent.c: Update.
3143 * common/ptid.c: Update.
3144 * common/ptid.h: Update.
3145 * corelow.c: Update.
3146 * darwin-nat.c: Update.
3147 * fbsd-nat.c: Update.
3148 * gnu-nat.c: Update.
3149 * linux-fork.c: Update.
3150 * linux-nat.c: Update.
3151 * linux-thread-db.c: Update.
3152 * nat/linux-osdata.c: Update.
3153 * nat/linux-procfs.c: Update.
3154 * nto-procfs.c: Update.
3155 * obsd-nat.c: Update.
3156 * proc-service.c: Update.
3157 * procfs.c: Update.
3158 * ravenscar-thread.c: Update.
3159 * remote-sim.c: Update.
3160 * remote.c: Update.
3161 * sol-thread.c: Update.
3162 * target.c: Update.
3163 * windows-nat.c: Update.
3164
3165 2018-07-03 Tom Tromey <tom@tromey.com>
3166
3167 * infrun.c (follow_exec): Use exit_inferior_silent.
3168 * inferior.c (exit_inferior_num_silent): Remove.
3169 * inferior.h (exit_inferior_num_silent): Don't declare.
3170
3171 2018-07-03 Tom Tromey <tom@tromey.com>
3172
3173 PR cli/23340:
3174 * darwin-nat.c (darwin_attach_pid): Reset inferior and
3175 inferior_ptid on error.
3176
3177 2018-07-02 Maciej W. Rozycki <macro@mips.com>
3178 Simon Marchi <simon.marchi@polymtl.ca>
3179
3180 PR tdep/8282
3181 * disasm.h (gdb_disassembler): Add
3182 `m_disassembler_options_holder'. member
3183 * disasm.c (get_all_disassembler_options): New function.
3184 (gdb_disassembler::gdb_disassembler): Use it.
3185 (gdb_buffered_insn_length_init_dis): Likewise.
3186 (gdb_buffered_insn_length): Adjust accordingly.
3187 (set_disassembler_options): Handle options with arguments.
3188 (show_disassembler_options_sfunc): Likewise. Add a leading new
3189 line if showing options with descriptions.
3190 (disassembler_options_completer): Adapt to using the
3191 `disasm_options_and_args_t' structure.
3192 * mips-tdep.c (mips_disassembler_options): New variable.
3193 (mips_disassembler_options_o32): Likewise.
3194 (mips_disassembler_options_n32): Likewise.
3195 (mips_disassembler_options_n64): Likewise.
3196 (gdb_print_insn_mips): Don't set `disassembler_options'.
3197 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
3198 functions.
3199 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
3200 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
3201 `gdbarch_disassembler_options_implicit' and
3202 `gdbarch_valid_disassembler_options'.
3203 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
3204 `disasm_options_and_args_t' structure.
3205 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
3206 method.
3207 (valid_disassembler_options): Switch from `disasm_options_t' to
3208 the `disasm_options_and_args_t' structure.
3209 * NEWS: Document `set disassembler-options' support for the MIPS
3210 target.
3211 * gdbarch.h: Regenerate.
3212 * gdbarch.c: Regenerate.
3213
3214 2018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
3215
3216 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
3217
3218 2018-06-29 Joel Brobecker <brobecker@adacore.com>
3219
3220 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
3221 parameter in call to amd64_target_description.
3222 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
3223 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
3224 (amd64fbsd_init_abi): Likewise.
3225 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
3226 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
3227 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
3228 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
3229
3230 2018-06-29 Pedro Alves <palves@redhat.com>
3231
3232 * gdb/amd64-tdep.h (amd64_create_target_description): Add
3233 "segments" parameter.
3234 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
3235 (_initialize_amd64_tdep): Update call to
3236 amd64_create_target_description.
3237 (amd64_target_description): Add "segments" parameter. Adjust
3238 the implementation to use it.
3239 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
3240 call to amd64_create_target_description.
3241 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
3242 * gdb/arch/amd64.h (amd64_create_target_description): Add
3243 "segments" register.
3244 * gdb/arch/amd64.c (amd64_create_target_description): Add
3245 "segments" parameter. Call create_feature_i386_64bit_segments
3246 only if SEGMENTS is true.
3247 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
3248 call to amd64_create_target_description.
3249
3250 2018-06-29 Pedro Alves <palves@redhat.com>
3251
3252 * thread.c (thread_target_id_str): New, factored out from ...
3253 (print_thread_info_1): ... here. Use it to compute the max
3254 "Target Id" column width.
3255
3256 2018-06-29 Pedro Alves <palves@redhat.com>
3257
3258 * remote.c (remote_target::extra_thread_info): Delete
3259 'display_buf' and 'n' locals. from the cache, regardless of
3260 packet mechanims is in use. Use cache for qThreadExtra and qP
3261 methods too.
3262
3263 2018-06-29 Pedro Alves <palves@redhat.com>
3264
3265 * blockframe.c (find_pc_sect_containing_function): New function.
3266 * breakpoint.c (print_breakpoint_location): Don't call
3267 find_pc_sect_function.
3268 * linespec.c (create_sals_line_offset): Record the location's
3269 symbol in the sal.
3270 * linespec.c (convert_address_location_to_sals): Fill in sal's
3271 symbol with find_pc_sect_containing_function.
3272 * symtab.c (find_function_start_sal): Rename to ...
3273 (find_function_start_sal_1): ... this.
3274 (find_function_start_sal): Reimplement as wrapper around
3275 find_function_start_sal_1, and use
3276 find_pc_sect_containing_function to fill in the sal's symbol.
3277 (find_function_start_sal(symbol*, bool)): Adjust.
3278 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
3279 comments.
3280 (find_pc_sect_containing_function): Declare.
3281
3282 2018-06-29 Pedro Alves <palves@redhat.com>
3283
3284 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
3285 true if the the location has no symbol.
3286
3287 2018-06-28 Tom Tromey <tom@tromey.com>
3288
3289 * NEWS: Mention --enable-codesign.
3290 * silent-rules.mk (ECHO_SIGN): New variable.
3291 * configure.ac: Add --enable-codesign.
3292 * configure: Rebuild.
3293 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
3294 (gdb$(EXEEXT)): Optionally invoke codesign.
3295
3296 2018-06-28 Pedro Alves <palves@redhat.com>
3297
3298 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
3299 comments.
3300 (switch_to_thread_no_regs): Adjust comment.
3301 * infcmd.c (stop_pc): Delete.
3302 (post_create_inferior, info_program_command): Replace references
3303 to stop_pc with references to thread_info->suspend.stop_pc.
3304 * inferior.h (stop_pc): Delete declaration.
3305 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
3306 (handle_inferior_event_1, handle_signal_stop)
3307 (process_event_stop_test, keep_going_stepped_thread)
3308 (handle_step_into_function, handle_step_into_function_backward)
3309 (print_stop_location): Replace references to stop_pc with
3310 references to thread_info->suspend.stop_pc.
3311 (struct infcall_suspend_state) <stop_pc>: Delete field.
3312 (save_infcall_suspend_state, restore_infcall_suspend_state):
3313 Remove references to inf_stat->stop_pc.
3314 * linux-fork.c (fork_load_infrun_state): Likewise.
3315 * record-btrace.c (record_btrace_set_replay): Likewise.
3316 * record-full.c (record_full_goto_entry): Likewise.
3317 * remote.c (print_one_stopped_thread): Likewise.
3318 * target.c (target_resume): Extend comment.
3319 * thread.c (set_executing_thread): New.
3320 (set_executing): Use it.
3321 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
3322 Remove references to stop_pc.
3323
3324 2018-06-28 Pedro Alves <palves@redhat.com>
3325
3326 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
3327 Moving fetching stop_pc until after ecs->event_thread is refreshed.
3328
3329 2018-06-28 Tom Tromey <tom@tromey.com>
3330
3331 * coffread.c (coff_symfile_finish): Update.
3332 * xcoffread.c (xcoff_symfile_finish): Update.
3333 * elfread.c (elf_symfile_finish): Update.
3334 * symfile.h (dwarf2_free_objfile): Don't declare.
3335 * dwarf2read.c (_initialize_dwarf2_read): Use
3336 register_objfile_data_with_cleanup.
3337 (dwarf2_free_objfile): Now static. Change signature.
3338
3339 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
3340
3341 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
3342 option "-o" to add-symbol-file-load to add an offset to each
3343 section's load address.
3344 * symfile.c (set_objfile_default_section_offset): New function.
3345
3346 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
3347
3348 * symfile.c (add_symbol_file_command): Make sure that sections
3349 with the same name are sorted in the same order.
3350
3351 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
3352
3353 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
3354 require the second argument. If omitted, load sections at the
3355 addresses specified in the file.
3356
3357 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
3358
3359 * symfile.c (symbol_file_command, symbol_file_add_main_1)
3360 (_initialize_symfile): Add option "-o" to symbol-file to add an
3361 offset to each section of the symbol file.
3362
3363 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
3364
3365 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
3366
3367 2018-06-27 Tom Tromey <tom@tromey.com>
3368
3369 * stack.c (_initialize_stack): Update "func" help text.
3370
3371 2018-06-27 Tom Tromey <tom@tromey.com>
3372
3373 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
3374 std::vector.
3375 (unwind_infopy_str, pyuw_create_unwind_info)
3376 (unwind_infopy_add_saved_register, pyuw_sniffer)
3377 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
3378 Update.
3379 (struct saved_reg): Add constructor.
3380 <value>: Now a gdbpy_ref<>.
3381
3382 2018-06-27 Tom Tromey <tom@tromey.com>
3383
3384 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
3385
3386 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
3387
3388 * gdb-gdb.py.in: Format using autopep8.
3389
3390 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
3391
3392 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
3393 (type_lookup_function): Recognize CORE_ADDR values.
3394
3395 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
3396
3397 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
3398 print tag_name.
3399
3400 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
3401
3402 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
3403 <__lt__>: Add.
3404
3405 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
3406
3407 * gdb-gdb.py: Move to...
3408 * gdb-gdb.py.in: ... here.
3409 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
3410 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
3411 dependencies.
3412 (distclean): Remove gdb-gdb.py when cleaning.
3413 (gdb-gdb.py, gdb-gdb.gdb): New rules.
3414 * configure: Re-generate.
3415
3416 2018-06-27 Pedro Alves <palves@redhat.com>
3417
3418 * proc-service.c (get_ps_regcache): New.
3419 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
3420 (ps_lsetfpregs): Use it.
3421
3422 2018-06-27 Omair Javaid <omair.javaid@linaro.org>
3423
3424 PR gdb/21695
3425 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
3426 (dwarf_decode_lines_1): Adjust.
3427
3428 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
3429
3430 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
3431 override.
3432 <info_proc>: Likewise.
3433
3434 2018-06-26 Joel Brobecker <brobecker@adacore.com>
3435
3436 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
3437 to windows_fetch_one_register, and only handle the case of
3438 fetching one register. Move the code that reloads the context
3439 and iterates over all registers if R is negative to...
3440 (windows_nat_target::fetch_registers): ... here.
3441 (do_windows_store_inferior_registers): Rename to
3442 windows_store_one_register, and only handle the case of storing
3443 one register. Move the code that handles the case where r is
3444 negative to...
3445 (windows_nat_target::store_registers) ... here.
3446
3447 2018-06-26 Tom Tromey <tom@tromey.com>
3448
3449 PR rust/22574:
3450 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
3451 * rust-lang.c (rust_print_struct_def): Add podata parameter.
3452 Update.
3453 (rust_internal_print_type): Add podata parameter.
3454 (rust_print_type): Update.
3455
3456 2018-06-26 Tom Tromey <tom@tromey.com>
3457
3458 * typeprint.h (struct print_offset_data) <update, finish,
3459 maybe_print_hole>: New methods.
3460 <indentation>: New constant.
3461 * typeprint.c (print_offset_data::indentation): Define.
3462 (print_offset_data::maybe_print_hole, print_offset_data::update)
3463 (print_offset_data::finish): Move from c-typeprint.c and rename.
3464 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
3465 (print_spaces_filtered_with_print_options): Update.
3466 (c_print_type_union_field_offset, maybe_print_hole)
3467 (c_print_type_struct_field_offset): Move to typeprint.c and
3468 rename.
3469 (c_type_print_base_struct_union): Update.
3470
3471 2018-06-25 Pedro Alves <palves@redhat.com>
3472
3473 * gdbthread.h (thread_info_ref, delete_thread)
3474 (delete_thread_silent, first_thread_of_inferior)
3475 (any_thread_of_inferior, switch_to_thread)
3476 (enable_thread_stack_temporaries)
3477 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
3478 (get_last_thread_stack_temporary)
3479 (value_in_thread_stack_temporaries, can_access_registers_thread):
3480 Spell out "struct thread_info" instead of just "thread_info".
3481 * inferior.h (notice_new_inferior): Likewise.
3482
3483 2018-06-25 Pedro Alves <palves@redhat.com>
3484
3485 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
3486 pass thread_info pointer to delete_thread.
3487 (windows_nat_target::detach): Pass inferior pointer to
3488 detach_inferior.
3489 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
3490 delete_thread.
3491 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
3492 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
3493 and pass a thread_info pointer to delete_thread.
3494 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
3495 pass thread_info pointer to delete_thread.
3496 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
3497 delete_thread_silent call.
3498 * procfs.c (procfs_target::detach): Pass inferior pointer to
3499 detach_inferior.
3500 (procfs_target::wait): Pass thread_info pointer to delete_thread.
3501 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
3502 delete_thread_silent call.
3503 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
3504 pass thread_info pointer to delete_thread.
3505 (windows_nat_target::detach): Pass inferior pointer to
3506 delete_inferior.
3507
3508 2018-06-22 Alan Hayward <alan.hayward@arm.com>
3509
3510 * regcache.c (readable_regcache::read_part): Fix asserts.
3511 (reg_buffer::raw_collect_part): New function.
3512 (regcache::write_part): Fix asserts.
3513 (reg_buffer::raw_supply_part): New function.
3514 (regcache::transfer_regset_register): New helper function.
3515 (regcache::transfer_regset): Call new functions.
3516 (regcache_supply_regset): Use gdb_byte*.
3517 (regcache::supply_regset): Likewise.
3518 (regcache_collect_regset): Likewise.
3519 (regcache::collect_regset): Likewise.
3520 * regcache.h (reg_buffer::raw_collect_part): New declaration.
3521 (reg_buffer::raw_supply_part): Likewise.
3522 (regcache::transfer_regset_register): Likewise.
3523 (regcache::transfer_regset): Use gdb_byte*.
3524
3525 2018-06-22 Alan Hayward <alan.hayward@arm.com>
3526
3527 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
3528
3529 2018-06-21 Pedro Alves <palves@redhat.com>
3530
3531 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
3532 instead of a ptid_t. All callers adjusted.
3533 * ada-tasks.c (ada_get_task_number): Likewise. All callers
3534 adjusted.
3535 (print_ada_task_info, display_current_task_id, task_command_1):
3536 Adjust.
3537 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
3538 inferior_thread.
3539 (breakpoint_kind): Adjust.
3540 (remove_breakpoints_pid): Rename to ...
3541 (remove_breakpoints_inf): ... this. Adjust to take an inferior
3542 pointer. All callers adjusted.
3543 (bpstat_clear_actions): Use inferior_thread.
3544 (get_bpstat_thread): New.
3545 (bpstat_do_actions): Use it.
3546 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
3547 to take a thread_info pointer. All callers adjusted.
3548 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
3549 (breakpoint_re_set_thread): Use inferior_thread.
3550 * breakpoint.h (struct inferior): Forward declare.
3551 (bpstat_stop_status): Update.
3552 (remove_breakpoints_pid): Delete.
3553 (remove_breakpoints_inf): New.
3554 * bsd-uthread.c (bsd_uthread_target::wait)
3555 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
3556 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
3557 (maint_btrace_packet_history_cmd)
3558 (maint_btrace_clear_packet_history_cmd): Adjust.
3559 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
3560 inferior_thread.
3561 * cli/cli-interp.c: Include "inferior.h".
3562 * common/refcounted-object.h (struct
3563 refcounted_object_ref_policy): New.
3564 * compile/compile-object-load.c: Include gdbthread.h.
3565 (store_regs): Use inferior_thread.
3566 * corelow.c (core_target::close): Use current_inferior.
3567 (core_target_open): Adjust to use first_thread_of_inferior and use
3568 the current inferior.
3569 * ctf.c (ctf_target::close): Adjust to use current_inferior.
3570 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
3571 <thread>: ... this new field. All references adjusted.
3572 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
3573 Take a thread_info pointer instead of a ptid_t.
3574 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
3575 (dummy_frame_discard, register_dummy_frame_dtor): Take a
3576 thread_info pointer instead of a ptid_t.
3577 * elfread.c: Include "inferior.h".
3578 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
3579 Use inferior_thread.
3580 * eval.c (evaluate_subexp): Likewise.
3581 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
3582 inferior_thread.
3583 * gdb_proc_service.h (struct thread_info): Forward declare.
3584 (struct ps_prochandle) <ptid>: Delete, replaced by ...
3585 <thread>: ... this new field. All references adjusted.
3586 * gdbarch.h, gdbarch.c: Regenerate.
3587 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
3588 'thread' parameter. All implementations and callers adjusted.
3589 * gdbthread.h (thread_info) <set_running>: New method.
3590 (delete_thread, delete_thread_silent): Take a thread_info pointer
3591 instead of a ptid.
3592 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
3593 (first_thread_of_process): Delete, replaced by ...
3594 (first_thread_of_inferior): ... this new function. All callers
3595 adjusted.
3596 (any_live_thread_of_process): Delete, replaced by ...
3597 (any_live_thread_of_inferior): ... this new function. All callers
3598 adjusted.
3599 (switch_to_thread, switch_to_no_thread): Declare.
3600 (is_executing): Delete.
3601 (enable_thread_stack_temporaries): Update comment.
3602 <enable_thread_stack_temporaries>: Take a thread_info pointer
3603 instead of a ptid_t. Incref the thread.
3604 <~enable_thread_stack_temporaries>: Decref the thread.
3605 <m_ptid>: Delete
3606 <m_thr>: New.
3607 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
3608 (get_last_thread_stack_temporary)
3609 (value_in_thread_stack_temporaries, can_access_registers_thread):
3610 Take a thread_info pointer instead of a ptid_t. All callers
3611 adjusted.
3612 * infcall.c (get_call_return_value): Use inferior_thread.
3613 (run_inferior_call): Work with thread pointers instead of ptid_t.
3614 (call_function_by_hand_dummy): Work with thread pointers instead
3615 of ptid_t. Use thread_info_ref.
3616 * infcmd.c (proceed_thread_callback): Access thread's state
3617 directly.
3618 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
3619 access thread's state directly.
3620 (continue_command): Use inferior_thread.
3621 (info_program_command): Use find_thread_ptid and access thread
3622 state directly.
3623 (proceed_after_attach_callback): Use thread state directly.
3624 (notice_new_inferior): Take a thread_info pointer instead of a
3625 ptid_t. All callers adjusted.
3626 (exit_inferior): Take an inferior pointer instead of a pid. All
3627 callers adjusted.
3628 (exit_inferior_silent): New.
3629 (detach_inferior): Delete.
3630 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
3631 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
3632 (detach_inferior_command, kill_inferior_command): Use
3633 find_inferior_id instead of valid_gdb_inferior_id and
3634 gdb_inferior_id_to_pid.
3635 (inferior_command): Use inferior and thread pointers.
3636 * inferior.h (struct thread_info): Forward declare.
3637 (notice_new_inferior): Take a thread_info pointer instead of a
3638 ptid_t. All callers adjusted.
3639 (detach_inferior): Delete declaration.
3640 (exit_inferior, exit_inferior_silent): Take an inferior pointer
3641 instead of a pid. All callers adjusted.
3642 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
3643 (valid_gdb_inferior_id): Delete.
3644 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
3645 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
3646 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
3647 ...
3648 <inf>: ... this new field.
3649 <step_ptid>: Delete, replaced by ...
3650 <step_thread>: ... this new field.
3651 (get_displaced_stepping_state): Take an inferior pointer instead
3652 of a pid. All callers adjusted.
3653 (displaced_step_in_progress_any_inferior): Adjust.
3654 (displaced_step_in_progress_thread): Take a thread pointer instead
3655 of a ptid_t. All callers adjusted.
3656 (displaced_step_in_progress, add_displaced_stepping_state): Take
3657 an inferior pointer instead of a pid. All callers adjusted.
3658 (get_displaced_step_closure_by_addr): Adjust.
3659 (remove_displaced_stepping_state): Take an inferior pointer
3660 instead of a pid. All callers adjusted.
3661 (displaced_step_prepare_throw, displaced_step_prepare)
3662 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
3663 All callers adjusted.
3664 (start_step_over): Adjust.
3665 (infrun_thread_ptid_changed): Remove bit updating ptids in the
3666 displaced step queue.
3667 (do_target_resume): Adjust.
3668 (fetch_inferior_event): Use inferior_thread.
3669 (context_switch, get_inferior_stop_soon): Take an
3670 execution_control_state pointer instead of a ptid_t. All callers
3671 adjusted.
3672 (switch_to_thread_cleanup): Delete.
3673 (stop_all_threads): Use scoped_restore_current_thread.
3674 * inline-frame.c: Include "gdbthread.h".
3675 (inline_state) <inline_state>: Take a thread pointer instead of a
3676 ptid_t. All callers adjusted.
3677 <ptid>: Delete, replaced by ...
3678 <thread>: ... this new field.
3679 (find_inline_frame_state): Take a thread pointer instead of a
3680 ptid_t. All callers adjusted.
3681 (skip_inline_frames, step_into_inline_frame)
3682 (inline_skipped_frames, inline_skipped_symbol): Take a thread
3683 pointer instead of a ptid_t. All callers adjusted.
3684 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
3685 (inline_skipped_frames, inline_skipped_symbol): Likewise.
3686 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
3687 pointers directly.
3688 * linux-nat.c (get_detach_signal): Likewise.
3689 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
3690 (thread_db_notice_clone): Adjust.
3691 (thread_db_find_new_threads_silently)
3692 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
3693 a thread pointer instead of a ptid_t. All callers adjusted.
3694 * mi/mi-cmd-var.c: Include "inferior.h".
3695 (mi_cmd_var_update_iter): Update to use thread pointers.
3696 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
3697 inferior directly.
3698 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
3699 out to ...
3700 (mi_output_running): ... this new function.
3701 (mi_on_resume_1): Adjust to use it.
3702 (mi_user_selected_context_changed): Adjust to use inferior_thread.
3703 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
3704 directly.
3705 (interrupt_thread_callback): : Adjust to use thread and inferior
3706 pointers.
3707 * proc-service.c: Include "gdbthread.h".
3708 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
3709 * progspace-and-thread.c: Include "inferior.h".
3710 * progspace.c: Include "inferior.h".
3711 * python/py-exitedevent.c (create_exited_event_object): Adjust to
3712 hold a reference to an inferior_object.
3713 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
3714 inferior_thread.
3715 * python/py-inferior.c (struct inferior_object): Give the type a
3716 tag name instead of a typedef.
3717 (python_on_normal_stop): No need to check if the current thread is
3718 listed.
3719 (inferior_to_inferior_object): Change return type to
3720 inferior_object. All callers adjusted.
3721 (find_thread_object): Delete, bits factored out to ...
3722 (thread_to_thread_object): ... this new function.
3723 * python/py-infthread.c (create_thread_object): Use
3724 inferior_to_inferior_object.
3725 (thpy_is_stopped): Use thread pointer directly.
3726 (gdbpy_selected_thread): Use inferior_thread.
3727 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
3728 field, replaced with ...
3729 <thread>: ... this new field. All users adjusted.
3730 (btpy_insn_or_gap_new): Drop const.
3731 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
3732 callers adjusted.
3733 * python/py-record.c: Include "gdbthread.h".
3734 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
3735 a ptid_t. All callers adjusted.
3736 (gdbpy_current_recording): Use inferior_thread.
3737 * python/py-record.h (recpy_record_object) <ptid>: Delete
3738 field, replaced with ...
3739 <thread>: ... this new field. All users adjusted.
3740 (recpy_element_object) <ptid>: Delete
3741 field, replaced with ...
3742 <thread>: ... this new field. All users adjusted.
3743 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
3744 a ptid_t. All callers adjusted.
3745 * python/py-threadevent.c: Include "gdbthread.h".
3746 (get_event_thread): Use thread_to_thread_object.
3747 * python/python-internal.h (struct inferior_object): Forward
3748 declare.
3749 (find_thread_object, find_inferior_object): Delete declarations.
3750 (thread_to_thread_object, inferior_to_inferior_object): New
3751 declarations.
3752 * record-btrace.c: Include "inferior.h".
3753 (require_btrace_thread): Use inferior_thread.
3754 (record_btrace_frame_sniffer)
3755 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
3756 (get_thread_current_frame): Use scoped_restore_current_thread and
3757 switch_to_thread.
3758 (get_thread_current_frame): Use thread pointer directly.
3759 (record_btrace_replay_at_breakpoint): Use thread's inferior
3760 pointer directly.
3761 * record-full.c: Include "inferior.h".
3762 * regcache.c: Include "gdbthread.h".
3763 (get_thread_arch_regcache): Use the inferior's address space
3764 directly.
3765 (get_thread_regcache, registers_changed_thread): New.
3766 * regcache.h (get_thread_regcache(thread_info *thread)): New
3767 overload.
3768 (registers_changed_thread): New.
3769 (remote_target) <remote_detach_1>: Swap order of parameters.
3770 (remote_add_thread): <remote_add_thread>: Return the new thread.
3771 (get_remote_thread_info(ptid_t)): New overload.
3772 (remote_target::remote_notice_new_inferior): Use thread pointers
3773 directly.
3774 (remote_target::process_initial_stop_replies): Use
3775 thread_info::set_running.
3776 (remote_target::remote_detach_1, remote_target::detach)
3777 (extended_remote_target::detach): Adjust.
3778 * stack.c (frame_show_address): Use inferior_thread.
3779 * target-debug.h (target_debug_print_thread_info_pp): New.
3780 * target-delegates.c: Regenerate.
3781 * target.c (default_thread_address_space): Delete.
3782 (memory_xfer_partial_1): Use current_inferior.
3783 (target_detach): Use current_inferior.
3784 (target_thread_address_space): Delete.
3785 (generic_mourn_inferior): Use current_inferior.
3786 * target.h (struct target_ops) <thread_address_space>: Delete.
3787 (target_thread_address_space): Delete.
3788 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
3789 pointers directly.
3790 (delete_thread_1, delete_thread, delete_thread_silent): Take a
3791 thread pointer instead of a ptid_t. Adjust all callers.
3792 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
3793 (first_thread_of_process): Delete, replaced by ...
3794 (first_thread_of_inferior): ... this new function. All callers
3795 adjusted.
3796 (any_thread_of_process): Rename to ...
3797 (any_thread_of_inferior): ... this, and take an inferior pointer.
3798 (any_live_thread_of_process): Rename to ...
3799 (any_live_thread_of_inferior): ... this, and take an inferior
3800 pointer.
3801 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
3802 (value_in_thread_stack_temporaries)
3803 (get_last_thread_stack_temporary): Take a thread pointer instead
3804 of a ptid_t. Adjust all callers.
3805 (thread_info::set_running): New.
3806 (validate_registers_access): Use inferior_thread.
3807 (can_access_registers_ptid): Rename to ...
3808 (can_access_registers_thread): ... this, and take a thread
3809 pointer.
3810 (print_thread_info_1): Adjust to compare thread pointers instead
3811 of ptids.
3812 (switch_to_no_thread, switch_to_thread): Make extern.
3813 (scoped_restore_current_thread::~scoped_restore_current_thread):
3814 Use m_thread pointer directly.
3815 (scoped_restore_current_thread::scoped_restore_current_thread):
3816 Use inferior_thread.
3817 (thread_command): Use thread pointer directly.
3818 (thread_num_make_value_helper): Use inferior_thread.
3819 * top.c (execute_command): Use inferior_thread.
3820 * tui/tui-interp.c: Include "inferior.h".
3821 * varobj.c (varobj_create): Use inferior_thread.
3822 (value_of_root_1): Use find_thread_global_id instead of
3823 global_thread_id_to_ptid.
3824
3825 2018-06-21 Alan Hayward <alan.hayward@arm.com>
3826
3827 * regcache.c (readable_regcache::read_part): Avoid memcpy when
3828 possible.
3829 (regcache::write_part): Likewise.
3830 (readable_regcache::cooked_read_part): Update comment.
3831 (readable_regcache::cooked_write_part): Likewise.
3832 * regcache.h: (readable_regcache::read_part): Likewise.
3833 (regcache::write_part): Likewise.
3834
3835 2018-06-21 Richard Bunt <richard.bunt@arm.com>
3836 Dirk Schubert <dirk.schubert@arm.com>
3837
3838 * aarch64-linux-nat.c (post_attach): New.
3839 (aarch64_linux_nat_target::post_attach): Override post_attach to
3840 record the number of hardware debug registers.
3841
3842 2018-06-20 Tom Tromey <tom@tromey.com>
3843
3844 * python/py-param.c (add_setshow_generic): Make parameters const.
3845 (parmpy_init): Update.
3846
3847 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
3848
3849 * regcache.h (regcache_cooked_read_ftype): Rename to...
3850 (register_read_ftype): ...this, change type to function_view.
3851 (class reg_buffer) <save>: Remove src parameter.
3852 (readonly_detached_regcache) <readonly_detached_regcache>: Make
3853 parameter non-const in first overload. Remove src parameter in
3854 second overload.
3855 * regcache.c (do_cooked_read): Remove.
3856 (readonly_detached_regcache::readonly_detached_regcache): Make
3857 parameter non-const, adjust call to other constructor.
3858 (reg_buffer::save): Remove src parameter.
3859 * frame.c (do_frame_register_read): Remove.
3860 (frame_save_as_regcache): Use lambda function.
3861 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
3862 parameter to ppu2spu_data *.
3863 (ppu2spu_sniffer): Use lambda function.
3864
3865 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
3866
3867 * record-full.c (record_full_target::insert_breakpoint): Remove
3868 "struct" keyword, add const.
3869
3870 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
3871
3872 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
3873 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
3874 * configure.ac: Remove AC_PREREQ, add missing quoting.
3875 * gnulib/configure.ac: Modernize usage of
3876 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
3877 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
3878 (AUTOMAKE_VERSION): Bump to 1.15.1.
3879 * configure: Re-generate.
3880 * config.in: Re-generate.
3881 * aclocal.m4: Re-generate.
3882 * gnulib/aclocal.m4: Re-generate.
3883 * gnulib/config.in: Re-generate.
3884 * gnulib/configure: Re-generate.
3885 * gnulib/import/Makefile.in: Re-generate.
3886
3887 2018-06-19 Pedro Alves <palves@redhat.com>
3888
3889 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
3890 (lookup_minimal_symbol_by_pc_section): ... here with
3891 gdb_assert_not_reached added.
3892
3893 2018-06-19 Pedro Alves <palves@redhat.com>
3894
3895 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
3896 parameter with a block parameter. Compare location's block symbol
3897 with the frame's block instead of addresses.
3898 (skip_inline_frames): Pass the current block instead of the
3899 frame's address. Break out as soon as we determine the frame
3900 should not be skipped.
3901
3902 2018-06-18 Tom Tromey <tom@tromey.com>
3903
3904 * solib-aix.c (solib_aix_get_section_offsets): Return
3905 unique_xmalloc_ptr.
3906 (solib_aix_solib_create_inferior_hook): Update.
3907
3908 2018-06-18 Tom Tromey <tom@tromey.com>
3909
3910 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
3911
3912 2018-06-18 Tom Tromey <tom@tromey.com>
3913
3914 * solib-frv.c (frv_relocate_main_executable): Use
3915 unique_xmalloc_ptr.
3916 * solib-dsbt.c (dsbt_relocate_main_executable): Use
3917 unique_xmalloc_ptr.
3918
3919 2018-06-18 Tom Tromey <tom@tromey.com>
3920
3921 * objfiles.h (inhibit_section_map_updates): Update.
3922 (resume_section_map_updates, resume_section_map_updates_cleanup):
3923 Remove.
3924 * solib-svr4.c (svr4_handle_solib_event): Update.
3925 * objfiles.c (inhibit_section_map_updates): Return
3926 scoped_restore_tmpl<int>.
3927 (resume_section_map_updates, resume_section_map_updates_cleanup):
3928 Remove.
3929
3930 2018-06-18 Tom Tromey <tom@tromey.com>
3931
3932 * valprint.h (read_string): Update.
3933 * valprint.c (read_string): Change type of "buffer".
3934 (val_print_string): Update.
3935 * python/py-value.c (valpy_string): Update.
3936 * language.h (struct language_defn) <la_get_string>: Change
3937 type of "buffer".
3938 (default_get_string, c_get_string): Update.
3939 * language.c (default_get_string): Change type of "buffer".
3940 * guile/scm-value.c (gdbscm_value_to_string): Update.
3941 * c-lang.c (c_get_string): Change type of "buffer".
3942
3943 2018-06-18 Tom Tromey <tom@tromey.com>
3944
3945 * ser-mingw.c (struct pipe_state_destroyer): New.
3946 (pipe_state_up): New typedef.
3947 (cleanup_pipe_state): Remove.
3948 (pipe_windows_open): Use pipe_state_up. Don't release argv.
3949
3950 2018-06-18 Tom Tromey <tom@tromey.com>
3951
3952 * rust-lang.h (rust_yyerror): Don't declare.
3953 * rust-lang.c (rust_language_defn): Update.
3954 * rust-exp.y (yyerror): Now static.
3955 * parse.c (parse_exp_in_context_1): Update.
3956 * p-lang.h (p_yyerror): Don't declare.
3957 * p-lang.c (p_language_defn): Update.
3958 * p-exp.y (yyerror): Now static.
3959 * opencl-lang.c (opencl_language_defn): Update.
3960 * objc-lang.c (objc_language_defn): Update.
3961 * m2-lang.h (m2_yyerror): Don't declare.
3962 * m2-lang.c (m2_language_defn): Update.
3963 * m2-exp.y (yyerror): Now static.
3964 * language.h (struct language_defn) <la_error>: Remove.
3965 * language.c (unk_lang_error): Remove.
3966 (unknown_language_defn, auto_language_defn): Remove.
3967 * go-lang.h (go_yyerror): Don't declare.
3968 * go-lang.c (go_language_defn): Update.
3969 * go-exp.y (yyerror): Now static.
3970 * f-lang.h (f_yyerror): Don't declare.
3971 * f-lang.c (f_language_defn): Update.
3972 * f-exp.y (yyerror): Now static.
3973 * d-lang.h (d_yyerror): Don't declare.
3974 * d-lang.c (d_language_defn): Update.
3975 * d-exp.y (yyerror): Now static.
3976 * c-lang.h (c_yyerror): Don't declare.
3977 * c-lang.c (c_language_defn, cplus_language_defn)
3978 (asm_language_defn, minimal_language_defn): Update.
3979 * c-exp.y (yyerror): Now static.
3980 * ada-lang.h (ada_yyerror): Don't declare.
3981 * ada-lang.c (ada_language_defn): Update.
3982 * ada-exp.y (yyerror): Now static.
3983
3984 2018-06-18 Alan Hayward <alan.hayward@arm.com>
3985
3986 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
3987 (store_sveregs_to_thread): Likewise.
3988 (aarch64_linux_fetch_inferior_registers): Check for SVE.
3989 (aarch64_linux_store_inferior_registers): Likewise.
3990 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
3991 function.
3992 (aarch64_sve_regs_copy_to_regcache): Likewise.
3993 (aarch64_sve_regs_copy_from_regcache): Likewise.
3994 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
3995 declaration.
3996 (aarch64_sve_regs_copy_to_regcache): Likewise.
3997 (aarch64_sve_regs_copy_from_regcache): Likewise.
3998 (sve_context): Structure from Linux headers.
3999 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
4000 (SVE_SIG_ZREG_SIZE): Likewise.
4001 (SVE_SIG_PREG_SIZE): Likewise.
4002 (SVE_SIG_FFR_SIZE): Likewise.
4003 (SVE_SIG_REGS_OFFSET): Likewise.
4004 (SVE_SIG_ZREGS_OFFSET): Likewise.
4005 (SVE_SIG_ZREG_OFFSET): Likewise.
4006 (SVE_SIG_ZREGS_SIZE): Likewise.
4007 (SVE_SIG_PREGS_OFFSET): Likewise.
4008 (SVE_SIG_PREG_OFFSET): Likewise.
4009 (SVE_SIG_PREGS_SIZE): Likewise.
4010 (SVE_SIG_FFR_OFFSET): Likewise.
4011 (SVE_SIG_REGS_SIZE): Likewise.
4012 (SVE_SIG_CONTEXT_SIZE): Likewise.
4013 (SVE_PT_REGS_MASK): Likewise.
4014 (SVE_PT_REGS_FPSIMD): Likewise.
4015 (SVE_PT_REGS_SVE): Likewise.
4016 (SVE_PT_VL_INHERIT): Likewise.
4017 (SVE_PT_VL_ONEXEC): Likewise.
4018 (SVE_PT_REGS_OFFSET): Likewise.
4019 (SVE_PT_FPSIMD_OFFSET): Likewise.
4020 (SVE_PT_FPSIMD_SIZE): Likewise.
4021 (SVE_PT_SVE_ZREG_SIZE): Likewise.
4022 (SVE_PT_SVE_PREG_SIZE): Likewise.
4023 (SVE_PT_SVE_FFR_SIZE): Likewise.
4024 (SVE_PT_SVE_FPSR_SIZE): Likewise.
4025 (SVE_PT_SVE_FPCR_SIZE): Likewise.
4026 (__SVE_SIG_TO_PT): Likewise.
4027 (SVE_PT_SVE_OFFSET): Likewise.
4028 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
4029 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
4030 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
4031 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
4032 (SVE_PT_SVE_PREG_OFFSET): Likewise.
4033 (SVE_PT_SVE_PREGS_SIZE): Likewise.
4034 (SVE_PT_SVE_FFR_OFFSET): Likewise.
4035 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
4036 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
4037 (SVE_PT_SVE_SIZE): Likewise.
4038 (SVE_PT_SIZE): Likewise.
4039 (HAS_SVE_STATE): New define.
4040
4041 2018-06-18 Alan Hayward <alan.hayward@arm.com>
4042
4043 * nat/aarch64-sve-linux-sigcontext.h: New file.
4044 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
4045 new files.
4046 (SVE_VQ_MIN): Likewise.
4047 (SVE_VQ_MAX): Likewise.
4048 (SVE_VL_MIN): Likewise.
4049 (SVE_VL_MAX): Likewise.
4050 (SVE_NUM_ZREGS): Likewise.
4051 (SVE_NUM_PREGS): Likewise.
4052 (sve_vl_valid): Likewise.
4053 (struct user_sve_header): Likewise.
4054
4055 2018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
4056 Richard Bunt <Richard.Bunt@arm.com>
4057
4058 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
4059 was requested by GDB.
4060
4061 2018-06-15 Tom de Vries <tdevries@suse.de>
4062
4063 * MAINTAINERS (Write After Approval): Add Tom de Vries.
4064
4065 2018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
4066
4067 * gnulib/update-gnulib.sh: Print expected versions of
4068 autoconf/aclocal.
4069
4070 2018-06-14 Simon Marchi <simon.marchi@ericsson.com>
4071
4072 * arch-utils.c (default_type_align): Use type_length_units.
4073 * gdbtypes.c (type_align): Use type_length_units.
4074
4075 2018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4076
4077 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
4078 of 'define' command.
4079
4080 2018-06-14 Tom de Vries <tdevries@suse.de>
4081
4082 PR cli/22573
4083 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
4084 get_no_prettyformat_print_options.
4085
4086 2018-06-13 Simon Marchi <simon.marchi@ericsson.com>
4087
4088 * sparc-nat.h: Include target.h.
4089 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
4090 <fetch_registers>: Remove this argument in function call.
4091 <store_registers>: Remove this argument in function call, remove
4092 extra semicolon.
4093 <low_forget_process>: Call sparc64_forget_process instead of
4094 sparc_forget_process.
4095
4096 2018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4097
4098 * procfs.c (_initialize_procfs): Use add_inf_child_target.
4099 (procfs_target::make_corefile_notes): Adjust to new
4100 target_read_alloc return type.
4101
4102 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
4103 Stephen Roberts <stephen.roberts@arm.com>
4104
4105 PR gdb/22882
4106 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
4107 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
4108 Move should_notify_stop local into more inner scope.
4109
4110 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
4111 Stephen Roberts <stephen.roberts@arm.com>
4112
4113 PR gdb/22882
4114 * infrun.c (resume_1): Add call to mark_async_event_handler.
4115
4116 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
4117
4118 * infrun.c (do_target_wait): Change old version of $pc printed.
4119
4120 2018-06-11 Simon Marchi <simon.marchi@ericsson.com>
4121
4122 * dwarf2read.c (read_index_from_section): Rename to...
4123 (read_gdb_index_from_section): ... this, update all callers.
4124 (dwarf2_read_index): Rename to...
4125 (dwarf2_read_gdb_index): ... this, update all callers.
4126
4127 2018-06-11 John David Anglin <danglin@gcc.gnu.org>
4128
4129 * gdb/hppa-linux-nat.c
4130 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
4131 hppa_linux_nat_target::fetch_registers.
4132
4133 2018-06-11 Alan Hayward <alan.hayward@arm.com>
4134
4135 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
4136 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
4137 (AARCH64_DWARF_SVE_FFR): Likewise.
4138 (AARCH64_DWARF_SVE_P0): Likewise.
4139 (AARCH64_DWARF_SVE_Z0): Likewise.
4140
4141 2018-06-11 Alan Hayward <alan.hayward@arm.com>
4142
4143 * common/common-regcache.h (raw_compare): New function.
4144 * regcache.c (regcache::raw_compare): Likewise.
4145 * regcache.h (regcache::raw_compare): New declaration.
4146
4147 2018-06-11 Alan Hayward <alan.hayward@arm.com>
4148
4149 * common/common-regcache.h (reg_buffer_common): New structure.
4150 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
4151 (reg_buffer::raw_supply): Likewise.
4152 (reg_buffer::raw_supply_integer): Likewise.
4153 (reg_buffer::raw_supply_zeroed): Likewise.
4154 (reg_buffer::raw_collect): Likewise.
4155 (reg_buffer::raw_collect_integer): Likewise.
4156 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
4157 (reg_buffer::raw_supply): Likewise.
4158 (reg_buffer::raw_supply_integer): Likewise.
4159 (reg_buffer::raw_supply_zeroed): Likewise.
4160 (reg_buffer::raw_collect): Likewise.
4161 (reg_buffer::raw_collect_integer): Likewise.
4162
4163 2018-06-10 Tom Tromey <tom@tromey.com>
4164
4165 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
4166 (class remote_state) <stop_reply_queue>: Now std::vector.
4167 (remote_state::~remote_state)
4168 (remote_target::stop_reply_queue_length): Update.
4169 (struct queue_iter_param, remove_child_of_pending_fork)
4170 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
4171 (check_pending_event_prevents_wildcard_vcont_callback)
4172 (remove_stop_reply_for_inferior)
4173 (remove_stop_reply_of_remote_state)
4174 (remote_notif_remove_once_on_match)
4175 (stop_reply_match_ptid_and_ws)
4176 (remote_kill_child_of_pending_fork): Remove.
4177 (remote_target::remove_new_fork_children)
4178 (remote_target::check_pending_events_prevent_wildcard_vcont)
4179 (remote_target::discard_pending_stop_replies)
4180 (remote_target::discard_pending_stop_replies_in_queue)
4181 (remote_target::remote_notif_remove_queued_reply)
4182 (remote_target::queued_stop_reply)
4183 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
4184 (remote_target::wait, remote_target::kill_new_fork_children)
4185 (remote_target::async): Update.
4186
4187 2018-06-10 Tom Tromey <tom@tromey.com>
4188
4189 * record-full.c (record_full_arch_list_cleanups): Remove.
4190 (record_full_message): Use try/catch.
4191 (record_full_wait_cleanups): Remove.
4192 (record_full_wait_1): Use try/catch.
4193 (record_full_restore): Likewise.
4194
4195 2018-06-10 Tom Tromey <tom@tromey.com>
4196
4197 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
4198 declare VEC. Add constructor.
4199 <in_target_beneath>: Now bool.
4200 (record_full_breakpoints): Now a std::vector, static.
4201 (record_full_sync_record_breakpoints)
4202 (record_full_init_record_breakpoints)
4203 (record_full_target::insert_breakpoint)
4204 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
4205
4206 2018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
4207
4208 * dwarf2read.c (process_cu_includes): Remove struct keyword.
4209 * serial.c (serial_interface_lookup): Remove struct keyword.
4210
4211 2018-06-10 Tom Tromey <tom@tromey.com>
4212
4213 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
4214 method.
4215 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
4216 a method.
4217 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
4218 method.
4219 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
4220 "beneath" as a method.
4221 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
4222 Use "beneath" as a method.
4223
4224 2018-06-10 Tom Tromey <tom@tromey.com>
4225
4226 * tracefile.c (struct trace_file_writer_deleter): New.
4227 <operator()>: Rename from trace_file_writer_xfree.
4228 (trace_file_writer_up): New typedef.
4229 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
4230
4231 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
4232
4233 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
4234 <m_registers, m_register_status>: Change type to
4235 std::unique_ptr.
4236 * regcache.c (reg_buffer::reg_buffer): Use new instead of
4237 XCNEWVEC.
4238
4239 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
4240
4241 * common/common-regcache.h (enum register_status): Add
4242 underlying type "signed char".
4243 * regcache.h (reg_buffer) <m_register_status>: Change type to
4244 register_status *.
4245 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
4246 register_status instead of signed char.
4247 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
4248 (reg_buffer::get_register_status): Remove cast.
4249 (readable_regcache::raw_read): Remove cast.
4250 (readable_regcache::cooked_read): Remove cast.
4251
4252 2018-06-09 Tom Tromey <tom@tromey.com>
4253
4254 * source.c (reverse_search_command, forward_search_command): Use
4255 scoped_fd.
4256
4257 2018-06-09 Tom Tromey <tom@tromey.com>
4258
4259 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
4260 (serial_ops_list): Now static, std::vector.
4261 (serial_interface_lookup, serial_add_interface): Update.
4262
4263 2018-06-09 Tom Tromey <tom@tromey.com>
4264
4265 * dwarf2read.c (process_cu_includes): Update.
4266 (process_full_comp_unit): Update.
4267 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
4268 std::vector.
4269
4270 2018-06-08 Paul Koning <paul_koning@dell.com>
4271
4272 PR gdb/23252
4273
4274 * python/python.c (do_start_initialization):
4275 Avoid call to internal Python API.
4276 (init__gdb_module): New function.
4277
4278 2018-06-08 Gary Benson <gbenson@redhat.com>
4279
4280 * linux-thread-db.c (valprint.h): New include.
4281 (struct check_thread_db_info): New structure.
4282 (check_thread_db_on_load, tdb_testinfo): New static globals.
4283 (check_thread_db, check_thread_db_callback): New functions.
4284 (try_thread_db_load_1): Run integrity checks if requested.
4285 (maintenance_check_libthread_db): New function.
4286 (_initialize_thread_db): Register "maint check libthread-db"
4287 and "maint set/show check-libthread-db".
4288 * NEWS: Mention the above new commands.
4289
4290 2018-06-08 Tom Tromey <tom@tromey.com>
4291
4292 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
4293 now a method.
4294
4295 2018-06-08 Tom Tromey <tom@tromey.com>
4296
4297 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
4298
4299 2018-06-08 Tom Tromey <tom@tromey.com>
4300
4301 * common/btrace-common.h (struct btrace_data): Add constructor,
4302 destructor, move assignment operator.
4303 <empty, clear, fini>: New methods.
4304 <format>: Initialize.
4305 (btrace_data_init, btrace_data_fini, btrace_data_clear)
4306 (btrace_data_empty): Don't declare.
4307 * common/btrace-common.c (btrace_data_init): Remove.
4308 (btrace_data::fini): Rename from btrace_data_fini.
4309 (btrace_data::empty): Rename from btrace_data_empty.
4310 (btrace_data::clear): Rename from btrace_data_clear. Return
4311 bool.
4312 * btrace.h (make_cleanup_btrace_data): Don't declare.
4313 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
4314 (parse_xml_btrace): Update.
4315 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
4316 (maint_btrace_clear_packet_history_cmd): Update.
4317
4318 2018-06-07 Pedro Alves <palves@redhat.com>
4319
4320 * target.h (target_ops) <beneath>: Now a method. All references
4321 updated.
4322 (class target_stack): New.
4323 * target.c (g_target_stack): New.
4324 (g_current_top_target): Delete.
4325 (current_top_target): Get the top target out of g_target_stack.
4326 (target_stack::push, target_stack::unpush): New.
4327 (push_target, unpush_target): Reimplement.
4328 (target_is_pushed): Reimplement in terms of g_target_stack.
4329 (target_ops::beneath, target_stack::find_beneath): New.
4330
4331 2018-06-07 Pedro Alves <palves@redhat.com>
4332
4333 * target.h (find_target_beneath): Delete declaration.
4334 * target.c (find_target_beneath): Delete definition.
4335 * aix-thread.c: All callers of find_target_beneath adjusted to
4336 call target_ops::beneath instead.
4337 * bsd-uthread.c: Likewise.
4338 * linux-thread-db.c: Likewise.
4339 * ravenscar-thread.c: Likewise.
4340 * sol-thread.c: Likewise.
4341 * spu-multiarch.c: Likewise.
4342
4343 2018-06-07 Pedro Alves <palves@redhat.com>
4344
4345 * target.h (target_ops) <beneath>: Now a method. All references
4346 updated.
4347 (target_ops) <m_beneath>: New.
4348 * target.c (target_ops::beneath): New.
4349 * corelow.c: Adjust all references to target_ops::beneath.
4350 * linux-thread-db.c: Likewise.
4351 * make-target-delegates: Likewise.
4352 * record-btrace.c: Likewise.
4353 * record-full.c: Likewise.
4354 * remote.c: Likewise.
4355 * target.c: Likewise.
4356 * target-delegates.c: Regenerate.
4357
4358 2018-06-07 Pedro Alves <palves@redhat.com>
4359
4360 * target.h (target_stack): Delete.
4361 (current_top_target): Declare function.
4362 * target.c (target_stack): Delete.
4363 (g_current_top_target): New.
4364 (current_top_target): New function.
4365 * auxv.c: Use current_top_target instead of target_stack
4366 throughout.
4367 * avr-tdep.c: Likewise.
4368 * breakpoint.c: Likewise.
4369 * corefile.c: Likewise.
4370 * elfread.c: Likewise.
4371 * eval.c: Likewise.
4372 * exceptions.c: Likewise.
4373 * frame.c: Likewise.
4374 * gdbarch-selftests.c: Likewise.
4375 * gnu-v3-abi.c: Likewise.
4376 * ia64-tdep.c: Likewise.
4377 * ia64-vms-tdep.c: Likewise.
4378 * infcall.c: Likewise.
4379 * infcmd.c: Likewise.
4380 * infrun.c: Likewise.
4381 * linespec.c: Likewise.
4382 * linux-tdep.c: Likewise.
4383 * minsyms.c: Likewise.
4384 * ppc-linux-nat.c: Likewise.
4385 * ppc-linux-tdep.c: Likewise.
4386 * procfs.c: Likewise.
4387 * regcache.c: Likewise.
4388 * remote.c: Likewise.
4389 * rs6000-tdep.c: Likewise.
4390 * s390-linux-nat.c: Likewise.
4391 * s390-tdep.c: Likewise.
4392 * solib-aix.c: Likewise.
4393 * solib-darwin.c: Likewise.
4394 * solib-dsbt.c: Likewise.
4395 * solib-spu.c: Likewise.
4396 * solib-svr4.c: Likewise.
4397 * solib-target.c: Likewise.
4398 * sparc-tdep.c: Likewise.
4399 * sparc64-tdep.c: Likewise.
4400 * spu-tdep.c: Likewise.
4401 * symfile.c: Likewise.
4402 * symtab.c: Likewise.
4403 * target-descriptions.c: Likewise.
4404 * target-memory.c: Likewise.
4405 * target.c: Likewise.
4406 * target.h: Likewise.
4407 * tracefile-tfile.c: Likewise.
4408 * tracepoint.c: Likewise.
4409 * valops.c: Likewise.
4410 * valprint.c: Likewise.
4411 * value.c: Likewise.
4412 * windows-tdep.c: Likewise.
4413 * mi/mi-main.c: Likewise.
4414
4415 2018-06-07 Tom Tromey <tom@tromey.com>
4416
4417 * valprint.h (build_address_symbolic): Declare.
4418 * printcmd.c (print_address_symbolic): Update.
4419 (build_address_symbolic): Change "name" and "filename" to
4420 std::string.
4421 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4422 Update.
4423 * defs.h (build_address_symbolic): Remove declaration.
4424
4425 2018-06-07 Alan Hayward <alan.hayward@arm.com>
4426
4427 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
4428 (aarch64_vnv_type): Add function.
4429 (aarch64_pseudo_register_name): Add V regs for SVE.
4430 (aarch64_pseudo_register_type): Likewise.
4431 (aarch64_pseudo_register_reggroup_p): Likewise.
4432 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
4433 (aarch64_pseudo_read_value): Add V regs for SVE.
4434 (aarch64_pseudo_write_2): Use V0 offset for SVE
4435 (aarch64_pseudo_write): Add V regs for SVE.
4436 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
4437
4438 2018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
4439
4440 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
4441 (sve_vl_from_vq): Likewise.
4442
4443 2018-06-05 Tom Tromey <tom@tromey.com>
4444
4445 * cli/cli-cmds.c (show_version): Update.
4446 * top.c (print_gdb_version): Add "interactive" parameter.
4447 Update.
4448 * main.c (captured_main_1): Update.
4449 * top.h (print_gdb_version): Add "interactive" parameter and a
4450 comment.
4451
4452 2018-06-05 David Malcolm <dmalcolm@redhat.com>
4453
4454 * common/enum-flags.h: Add trailing semicolon to example in
4455 comment.
4456
4457 2018-06-05 Tom Tromey <tom@tromey.com>
4458
4459 PR cli/12326:
4460 * NEWS: Add entry about pager.
4461 * utils.c (pagination_disabled_for_command): New global.
4462 (prompt_for_continue): Allow "c" response to prompt.
4463 (reinitialize_more_filter): Clear
4464 pagination_disabled_for_command.
4465 (fputs_maybe_filtered): Check pagination_disabled_for_command.
4466
4467 2018-06-04 Tom Tromey <tom@tromey.com>
4468
4469 * ada-lang.h (ada_lookup_symbol_list): Update.
4470 * ada-lang.c (resolve_subexp): Update.
4471 (symbols_are_identical_enums): Change type of syms. Remove nsyms
4472 parameter.
4473 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
4474 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
4475 results parameter to std::vector.
4476 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
4477 Update.
4478 * ada-exp.y (block_lookup): Update.
4479 (select_possible_type_sym): Change type of syms. Remove nsyms
4480 parameter.
4481 (write_var_or_type, write_name_assoc): Update.
4482
4483 2018-06-04 Joel Brobecker <brobecker@adacore.com>
4484
4485 * windows-nat.c (windows_nat_target::xfer_partial): Return
4486 TARGET_XFER_E_IO if we need to delegate to the target beneath
4487 but BENEATH is NULL.
4488
4489 2018-06-04 Simon Marchi <simon.marchi@ericsson.com>
4490
4491 * Makefile.in (config.status): Add configure.nat as a
4492 dependency.
4493
4494 2018-06-04 Tom Tromey <tom@tromey.com>
4495
4496 * cp-name-parser.y (cpname_state): Add method declarations.
4497 (HANDLE_QUAL): Update.
4498 (cpname_state::d_grab, cpname_state::fill_comp)
4499 (cpname_state::make_operator, cpname_state::make_dtor)
4500 (cpname_state::make_builtin_type, cpname_state::make_name)
4501 (cpname_state::d_qualify, cpname_state::d_int_type)
4502 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
4503 (%union): Move earlier.
4504
4505 2018-06-04 Alan Hayward <alan.hayward@arm.com>
4506
4507 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
4508
4509 2018-06-04 Alan Hayward <alan.hayward@arm.com>
4510
4511 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
4512 (aarch64_pseudo_write_1): Likewise.
4513 (aarch64_pseudo_read_value): Use helper.
4514 (aarch64_pseudo_write): Likewise.
4515
4516 2018-06-04 Pedro Alves <palves@redhat.com>
4517
4518 * darwin-nat.c (darwin_ops): Delete.
4519 (darwin_attach_pid): Use get_native_target.
4520
4521 2018-06-04 Alan Hayward <alan.hayward@arm.com>
4522
4523 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
4524 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
4525
4526 2018-06-04 Alan Hayward <alan.hayward@arm.com>
4527
4528 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
4529 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
4530 (aarch64_gdbarch_init): Check for SVE.
4531 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
4532
4533 2018-06-04 Alan Hayward <alan.hayward@arm.com>
4534
4535 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
4536 * aarch64-tdep.h (aarch64_read_description): Likewise.
4537 * arch/aarch64.c (aarch64_create_target_description): Likewise.
4538 * arch/aarch64.h (aarch64_create_target_description): Likewise.
4539 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
4540 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
4541 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
4542
4543 2018-06-02 Simon Marchi <simon.marchi@ericsson.com>
4544
4545 * value.c (value_fetch_lazy_bitfield): New.
4546 (value_fetch_lazy_memory): New.
4547 (value_fetch_lazy_register): New.
4548 (value_fetch_lazy): Factor out to smaller functions.
4549
4550 2018-06-01 Tom Tromey <tom@tromey.com>
4551
4552 * cp-name-parser.y (backslashable, represented): Now const.
4553
4554 2018-06-01 Tom Tromey <tom@tromey.com>
4555
4556 * cp-name-parser.y: Include parser-defs.h.
4557 (parser_fprintf): Remove declaration.
4558
4559 2018-06-01 Tom Tromey <tom@tromey.com>
4560
4561 * cp-name-parser.y: Use %pure-parser, %lex-param, and
4562 %parse-param.
4563 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
4564 (global_result): Remove globals.
4565 (struct cpname_state): New.
4566 (yyparse): Don't declare.
4567 (yylex, yyerror): Move declarations after %union.
4568 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
4569 (make_name): Add state parameter.
4570 Update all callers.
4571 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
4572 parameter.
4573 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
4574 Update.
4575 (yylex): Add lvalp, state parameters.
4576 (yyerror): Add state parameter.
4577 (cp_demangled_name_to_comp): Update.
4578
4579 2018-06-01 Tom Tromey <tom@tromey.com>
4580
4581 * cp-name-parser.y (parser_fprintf): Declare.
4582 (GDB_YY_REMAP_PREFIX): Define.
4583 Include yy-remap.h. Don't redefine yy* identifiers.
4584
4585 2018-06-01 Tom Tromey <tom@tromey.com>
4586
4587 * python/py-type.c (typy_legacy_template_argument): Update.
4588 * cp-support.h (cp_demangled_name_to_comp): Update.
4589 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
4590 parameter to be a "std::string *".
4591 (main): Update.
4592
4593 2018-06-01 H.J. Lu <hongjiu.lu@intel.com>
4594
4595 * ada-lex.l: Include "diagnostics.h" instead of
4596 "common/diagnostics.h".
4597 * unittests/environ-selftests.c: Likewise.
4598 * common/diagnostics.h: Moved to ../include.
4599
4600 2018-06-01 Joel Brobecker <brobecker@adacore.com>
4601
4602 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
4603 to language_mode_manual while calling breakpoint_re_set_one.
4604
4605 2018-06-01 Tom Tromey <tom@tromey.com>
4606
4607 * valops.c (value_cast_structs, destructor_name_p): Update.
4608 * symtab.c (gdb_mangle_name): Update.
4609 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
4610 Update.
4611 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
4612 (pascal_object_print_value_fields, pascal_object_print_value):
4613 Update.
4614 * p-typeprint.c (pascal_type_print_derivation_info): Update.
4615 * linespec.c (find_methods): Update.
4616 * gdbtypes.h (type_name_no_tag): Remove.
4617 (type_name_or_error): Rename from type_name_no_tag_or_error.
4618 * gdbtypes.c (type_name_no_tag): Remove.
4619 (type_name_or_error): Rename from type_name_no_tag_or_error.
4620 (lookup_struct_elt_type, check_typedef): Update.
4621 * expprint.c (print_subexp_standard): Update.
4622 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
4623 * d-namespace.c (d_lookup_nested_symbol): Update.
4624 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
4625 (cp_print_class_member): Update.
4626 * cp-namespace.c (cp_lookup_nested_symbol): Update.
4627 * completer.c (add_struct_fields): Update.
4628 * c-typeprint.c (cp_type_print_derivation_info)
4629 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
4630 Update.
4631 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
4632 (ada_prefer_type, ada_is_exception_sym): Update.
4633
4634 2018-06-01 Tom Tromey <tom@tromey.com>
4635
4636 * valops.c (enum_constant_from_type, value_namespace_elt)
4637 (value_maybe_namespace_elt): Update.
4638 * valarith.c (find_size_for_pointer_math): Update.
4639 * target-descriptions.c (make_gdb_type): Update.
4640 * symmisc.c (print_symbol): Update.
4641 * stabsread.c (define_symbol, read_type)
4642 (complain_about_struct_wipeout, add_undefined_type)
4643 (cleanup_undefined_types_1): Update.
4644 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
4645 (rust_range_type_p, val_print_struct, rust_print_struct_def)
4646 (rust_internal_print_type, rust_composite_type)
4647 (rust_evaluate_funcall, rust_evaluate_subexp)
4648 (rust_inclusive_range_type_p): Update.
4649 * python/py-type.c (typy_get_tag): Update.
4650 * p-typeprint.c (pascal_type_print_base): Update.
4651 * mdebugread.c (parse_symbol, parse_type): Update.
4652 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
4653 Update.
4654 * guile/scm-type.c (gdbscm_type_tag): Update.
4655 * go-lang.c (sixg_string_p): Update.
4656 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
4657 Update.
4658 * gdbtypes.h (struct main_type) <tag_name>: Remove.
4659 (TYPE_TAG_NAME): Remove.
4660 * gdbtypes.c (type_name_no_tag): Simplify.
4661 (check_typedef, check_types_equal, recursive_dump_type)
4662 (copy_type_recursive, arch_composite_type): Update.
4663 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
4664 in summary mode when needed.
4665 * eval.c (evaluate_funcall): Update.
4666 * dwarf2read.c (fixup_go_packaging, read_structure_type)
4667 (process_structure_scope, read_enumeration_type)
4668 (read_namespace_type, read_module_type, determine_prefix): Update.
4669 * cp-support.c (inspect_type): Update.
4670 * coffread.c (process_coff_symbol, decode_base_type): Update.
4671 * c-varobj.c (c_is_path_expr_parent): Update.
4672 * c-typeprint.c (c_type_print_base_struct_union): Update.
4673 (c_type_print_base_1): Update. Print struct/class/union/enum in
4674 summary when using C language.
4675 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
4676 (gen_maybe_namespace_elt): Update.
4677 * ada-lang.c (ada_type_name): Simplify.
4678 (empty_record, ada_template_to_fixed_record_type_1)
4679 (template_to_static_fixed_type)
4680 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
4681
4682 2018-06-01 Tom Tromey <tom@tromey.com>
4683
4684 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
4685 c_print_type.
4686 * c-typeprint.c (c_print_type_1): Add "language" parameter.
4687 (c_print_type): Update.
4688 (c_print_type): New overload.
4689 (c_type_print_varspec_prefix, c_type_print_args)
4690 (c_type_print_varspec_suffix, c_print_type_no_offsets)
4691 (c_type_print_base_struct_union, c_type_print_base_1)
4692 (cp_type_print_method_args): Add "language" parameter.
4693 (c_type_print_base): Update.
4694 * c-lang.h (c_print_type): Add new overload.
4695
4696 2018-06-01 Tom Tromey <tom@tromey.com>
4697
4698 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
4699 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
4700
4701 2018-06-01 Alan Hayward <alan.hayward@arm.com>
4702
4703 * aarch64-tdep.c (aarch64_sve_register_names): New const
4704 var.
4705 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
4706 (AARCH64_SVE_Z_REGS_NUM): New define.
4707 (AARCH64_SVE_P_REGS_NUM): Likewise.
4708 (AARCH64_SVE_NUM_REGS): Likewise.
4709
4710 2018-05-31 Uros Bizjak <ubizjak@gmail.com>
4711
4712 * nat/linux-ptrace.h [__alpha__]
4713 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
4714 definitions.
4715
4716 2018-05-31 Maciej W. Rozycki <macro@mips.com>
4717
4718 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
4719 the endianness selected.
4720 * NEWS: Document `set endian auto' mode operation update.
4721
4722 2018-05-31 Alan Hayward <alan.hayward@arm.com>
4723
4724 * Makefile.in: Add new header.
4725 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
4726 (sve_vl_from_vg): Likewise.
4727 (sve_vq_from_vl): Likewise.
4728 (sve_vl_from_vq): Likewise.
4729 (sve_vq_from_vg): Likewise.
4730 (sve_vg_from_vq): Likewise.
4731 * configure.nat: Add new c file.
4732 * nat/aarch64-sve-linux-ptrace.c: New file.
4733 * nat/aarch64-sve-linux-ptrace.h: New file.
4734
4735 2018-05-31 Alan Hayward <alan.hayward@arm.com>
4736
4737 * aarch64-linux-nat.c (aarch64_linux_read_description):
4738 Add parmeter zero.
4739 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
4740 Likewise.
4741 * aarch64-tdep.c (tdesc_aarch64_list): Add.
4742 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
4743 (aarch64_gdbarch_init): Add parmeter zero.
4744 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
4745 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
4746 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
4747 parmeter.
4748 * doc/gdb.texinfo: Describe SVE feature
4749 * features/aarch64-sve.c: New file.
4750
4751 2018-05-31 Omair Javaid <omair.javaid@linaro.org>
4752
4753 PR gdb/23210
4754 * gdbarch.sh (significant_addr_bit): Default to zero when
4755 not set by target architecture.
4756 * gdbarch.c: Re-generated.
4757 * utils.c (address_significant): Update.
4758
4759 2018-05-30 Joel Brobecker <brobecker@adacore.com>
4760
4761 * stack.c (func_command): Remove trailing newline in call to error.
4762
4763 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4764
4765 * regcache.h (regcache_raw_collect): Remove, update callers to
4766 use regcache::raw_collect.
4767 * regcache.c (regcache_raw_collect): Remove.
4768
4769 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4770
4771 * regcache.h (regcache_raw_supply): Remove, update callers to
4772 use detached_regcache::raw_supply.
4773 * regcache.c (regcache_raw_supply): Remove.
4774
4775 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4776
4777 * regcache.h (regcache_cooked_write_part): Remove, update
4778 callers to use regcache::cooked_write_part.
4779 * regcache.c (regcache_cooked_write_part): Remove.
4780
4781 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4782
4783 * regcache.h (regcache_cooked_read_part): Remove, update callers
4784 to use readable_regcache::cooked_read_part.
4785 * regcache.c (regcache_cooked_read_part): Remove.
4786
4787 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4788
4789 * regcache.h (regcache_cooked_read_value): Remove, update
4790 callers to use readable_regcache::cooked_read_value.
4791 * regcache.c (regcache_cooked_read_value): Remove.
4792
4793 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4794
4795 * regcache.h (regcache_cooked_write): Remove, update callers to
4796 use regcache::cooked_write.
4797 * regcache.c (regcache_cooked_write): Remove.
4798
4799 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4800
4801 * regcache.h (regcache_invalidate): Remove, update callers to
4802 use detached_regcache::invalidate instead.
4803 * regcache.c (regcache_invalidate): Remove.
4804
4805 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4806
4807 * regcache.h (regcache_raw_write_part): Remove, update callers
4808 to use regcache::raw_write_part instead.
4809 * regcache.c (regcache_raw_write_part): Remove.
4810
4811 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4812
4813 * regcache.h (regcache_raw_read_part): Remove, update callers to
4814 use readable_regcache::raw_read_part instead.
4815 * regcache.c (regcache_raw_read_part): Remove.
4816
4817 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4818
4819 * regcache.h (regcache_cooked_read): Remove, update callers to
4820 use readable_regcache::cooked_read instead.
4821 * regcache.c (regcache_cooked_read): Remove.
4822
4823 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4824
4825 * regcache.h (regcache_raw_write): Remove, update callers to use
4826 regcache::raw_write instead.
4827 * regcache.c (regcache_raw_write): Remove.
4828
4829 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4830
4831 * regcache.h (regcache_raw_read): Remove, update callers to use
4832 readable_regcache::raw_read instead.
4833 * regcache.c (regcache_raw_read): Remove.
4834
4835 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4836
4837 * regcache.h (regcache_raw_update): Remove, update callers to
4838 use readable_regcache::raw_update instead.
4839 * regcache.c (regcache_raw_update): Remove.
4840
4841 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4842
4843 * regcache.h (regcache_register_status): Remove, update callers
4844 to use reg_buffer::get_register_status directly instead.
4845 * regcache.c (regcache_register_status): Remove.
4846
4847 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4848
4849 * regcache.h (regcache_get_ptid): Remove, update all callers to
4850 call regcache::ptid instead.
4851 * regcache.c (regcache_get_ptid): Remove.
4852
4853 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4854
4855 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
4856
4857 2018-05-30 Pedro Alves <palves@redhat.com>
4858
4859 * common/common-exceptions.h (exception_rethrow): Use
4860 ATTRIBUTE_NORETURN.
4861
4862 2018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
4863
4864 * breakpoint.c (print_solib_event, check_status_catch_solib):
4865 Remove struct keyword in range-based for loops.
4866 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
4867 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
4868 Likewise.
4869 * linespec.c (find_superclass_methods, search_minsyms_for_name):
4870 Likewise.
4871 * symfile.c (addr_info_make_relative): Likewise.
4872 * thread.c (value_in_thread_stack_temporaries): Likewise.
4873
4874 2018-06-12 Weimin Pan <weimin.pan@oracle.com>
4875
4876 PR gdb/16841
4877 * valops.c (value_struct_elt_for_reference): Call check_typedef on
4878 aggregate type to get its real type before accessing it.
4879
4880 2018-05-29 Weimin Pan <weimin.pan@oracle.com>
4881
4882 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
4883 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
4884 * coff-pe-read.c (add_pe_forwarded_sym): Replace
4885 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
4886 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
4887 * jit.c (jit_breakpoint_re_set_internal): Likewise.
4888 * printcmd.c (info_address_command): Likewise.
4889
4890 2018-05-29 Tom Tromey <tom@tromey.com>
4891
4892 * windows-nat.c (handle_exception): Update fall-through comment.
4893
4894 2018-05-29 Tom Tromey <tom@tromey.com>
4895
4896 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
4897 (struct program_space) <added_solibs>: Now a std::vector.
4898 * breakpoint.c (print_solib_event): Update.
4899 (check_status_catch_solib): Update.
4900 * progspace.c (clear_program_space_solib_cache): Update.
4901 * solib.c (update_solib_list): Update.
4902
4903 2018-05-29 Tom Tromey <tom@tromey.com>
4904
4905 * python/py-type.c (typy_richcompare): Update.
4906 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
4907 * gdbtypes.h (types_deeply_equal): Return bool.
4908 (types_equal): Likewise.
4909 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
4910 declare VEC.
4911 (check_types_equal): Change worklist to std::vector. Return
4912 bool.
4913 (struct type_equality_entry): Add constructor.
4914 (compare_maybe_null_strings): Return bool.
4915 (check_types_worklist): Return bool. Change worklist to
4916 std::vector.
4917 (types_deeply_equal): Use std::vector.
4918 (types_equal): Return bool.
4919 (compare_maybe_null_strings): Simplify.
4920
4921 2018-05-29 Tom Tromey <tom@tromey.com>
4922
4923 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
4924
4925 2018-05-29 Tom Tromey <tom@tromey.com>
4926
4927 * objc-lang.h: Don't include cp-support.h.
4928 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
4929 declare VEC.
4930
4931 2018-05-27 Tom Tromey <tom@tromey.com>
4932
4933 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
4934
4935 2018-05-25 Tom Tromey <tom@tromey.com>
4936
4937 * value.c (value::location): Initialize.
4938
4939 2018-05-25 Tom Tromey <tom@tromey.com>
4940
4941 * dbxread.c (init_bincl_list): Remove.
4942 (bincl_list): Now a std::vector.
4943 (bincls_allocated, next_bincl): Remove.
4944 (free_bincl_list, do_free_bincl_list_cleanup)
4945 (make_cleanup_free_bincl_list): Remove.
4946 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
4947 unique_xmalloc_ptr.
4948 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
4949 (struct header_file_location): Add constructor.
4950 (add_bincl_to_list): Remove.
4951
4952 2018-05-25 Tom Tromey <tom@tromey.com>
4953
4954 * tui/tui.c (tui_enable): Update.
4955 * mi/mi-interp.c (mi_interp::init): Update.
4956 * interps.h (class interp) <name>: New method.
4957 <m_name>: Rename from name.
4958 (~scoped_restore_interp): Update.
4959 * interps.c (interp::interp): Update.
4960 (interp_add, interp_set, interp_lookup_existing)
4961 (current_interp_named_p): Update.
4962
4963 2018-05-25 Tom Tromey <tom@tromey.com>
4964
4965 * interps.c (interp_name): Remove.
4966 * mi/mi-interp.c (mi_interp::init): Update.
4967 * interps.h (interp_name): Remove.
4968 (~scoped_restore_interp): Update.
4969 * tui/tui.c (tui_enable): Update.
4970
4971 2018-05-25 Tom Tromey <tom@tromey.com>
4972
4973 * utils.c (fputs_maybe_filtered): Update.
4974 * linespec.c (decode_line_full): Update.
4975 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
4976 (mi_print_breakpoint_for_event, mi_solib_loaded)
4977 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
4978 (mi_user_selected_context_changed): Update.
4979 * mi/mi-main.c (mi_execute_command): Update.
4980 * cli/cli-script.c (execute_control_command): Update.
4981 * python/python.c (execute_gdb_command): Update.
4982 * solib.c (info_sharedlibrary_command): Update.
4983 * interps.c (interp_ui_out): Remove.
4984 * interps.h (interp_ui_out): Remove.
4985
4986 2018-05-25 Tom Tromey <tom@tromey.com>
4987
4988 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
4989 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
4990 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
4991
4992 2018-05-25 Tom Tromey <tom@tromey.com>
4993
4994 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
4995 * interps.c (interp_exec): Use scoped_restore.
4996
4997 2018-05-25 Tom Tromey <tom@tromey.com>
4998
4999 * remote.c (remote_target::remote_file_get): Use
5000 gdb::byte_vector.
5001 (remote_target::remote_file_put): Likewise.
5002
5003 2018-05-25 Tom Tromey <tom@tromey.com>
5004
5005 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
5006 a std::string.
5007 (get_pe_section_index, add_pe_exported_sym): Update.
5008 (read_pe_exported_syms): Use gdb::def_vector.
5009
5010 2018-05-25 Tom Tromey <tom@tromey.com>
5011
5012 * frame.c (remove_prev_frame): Remove.
5013 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
5014
5015 2018-05-25 Maciej W. Rozycki <macro@mips.com>
5016
5017 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
5018 Remove prototypes.
5019 * mips-linux-nat.c (supply_fpregset): Always call
5020 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
5021 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
5022 `mips_fill_fpregset'.
5023 * mips-linux-tdep.c (mips_supply_fpregset)
5024 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
5025 (mips_fill_fpregset_wrapper): Remove functions.
5026 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
5027 (mips_linux_fpregset): Remove variable.
5028 (mips_linux_iterate_over_regset_sections): Use
5029 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
5030 (mips_linux_o32_sigframe_init): Remove comment.
5031
5032 2018-05-25 Pedro Alves <palves@redhat.com>
5033
5034 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
5035 (struct readahead_cache, struct packet_reg, struct
5036 remote_arch_state, class remote_state): Move higher up in the
5037 file.
5038 (remote_target::m_remote_state): Now an object instead of a pointer.
5039 (remote_target::get_remote_state): Adjust.
5040
5041 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
5042
5043 * stack.c (select_and_print_frame): Delete.
5044 (struct function_bounds): Move struct within function.
5045 (func_command): Most content moved into new function
5046 find_frame_for_function, use new function, print result, add
5047 function comment.
5048 (find_frame_for_function): New function, now returns a result.
5049
5050 2018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5051
5052 * stack.c (iterate_over_block_arg_vars): Fix comment.
5053 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
5054
5055 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
5056
5057 PR gdb/23203
5058 * frame.c
5059 (scoped_restore_selected_frame::scoped_restore_selected_frame):
5060 Define.
5061 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
5062 Define.
5063 * frame.h (class scoped_restore_selected_frame): New class.
5064 * stack.c (print_frame_local_vars): Remove catching and rethrowing
5065 of any exception, use scoped_restore_selected_frame to restore the
5066 frame instead.
5067
5068 2018-05-24 Pedro Alves <palves@redhat.com>
5069
5070 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
5071 override.
5072
5073 2018-05-23 Tom Tromey <tom@tromey.com>
5074
5075 * complaints.c (struct complaints): Remove.
5076 (symfile_complaint_book): Remove.
5077 (series): New global.
5078 (complaint_internal): Update.
5079 (clear_complaints): Update.
5080
5081 2018-05-23 Tom Tromey <tom@tromey.com>
5082
5083 * complaints.c (counters): New global.
5084 (struct complain): Remove.
5085 (struct complaints) <root>: Remove.
5086 (complaint_sentinel): Remove.
5087 (symfile_complaint_book): Update.
5088 (find_complaint) Remove.
5089 (complaint_internal, clear_complaints): Update.
5090
5091 2018-05-23 Tom Tromey <tom@tromey.com>
5092
5093 * complaints.c (struct complain) <file, line>: Remove.
5094 (find_complaint): Remove file, line parameters.
5095 (complaint_internal): Update.
5096
5097 2018-05-23 Tom Tromey <tom@tromey.com>
5098
5099 * complaints.c (vcomplaint): Remove.
5100 (complaint_internal) Merge in contents of vcomplaint.
5101
5102 2018-05-23 Tom Tromey <tom@tromey.com>
5103
5104 * complaints.c (struct complaints) <explanation>: Remove.
5105 (symfile_explanations): Remove.
5106 (symfile_complaint_book): Update.
5107 (vcomplaint): Update.
5108 (struct explanation): Remove.
5109
5110 2018-05-23 Tom Tromey <tom@tromey.com>
5111
5112 * complaints.c (symfile_complaints): Remove.
5113 (complaint_internal): Remove "complaints" parameter.
5114 (clear_complaints, vcomplaint): Remove "c" parameter.
5115 (get_complaints): Remove.
5116 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
5117 (dwarf2_debug_line_missing_file_complaint)
5118 (dwarf2_debug_line_missing_end_sequence_complaint)
5119 (dwarf2_complex_location_expr_complaint)
5120 (dwarf2_const_value_length_mismatch_complaint)
5121 (dwarf2_section_buffer_overflow_complaint)
5122 (dwarf2_macro_malformed_definition_complaint)
5123 (dwarf2_invalid_attrib_class_complaint)
5124 (create_addrmap_from_index, dw2_symtab_iter_next)
5125 (dw2_expand_marked_cus)
5126 (dw2_debug_names_iterator::find_vec_in_debug_names)
5127 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
5128 (create_debug_type_hash_table, init_cutu_and_read_dies)
5129 (partial_die_parent_scope, add_partial_enumeration)
5130 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
5131 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
5132 (read_import_statement, read_file_scope, create_dwo_cu_reader)
5133 (create_cus_hash_table, create_dwp_hash_table)
5134 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
5135 (dwarf2_rnglists_process, dwarf2_ranges_process)
5136 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
5137 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
5138 (handle_struct_member_die, process_structure_scope)
5139 (read_array_type, read_common_block, read_module_type)
5140 (read_tag_pointer_type, read_typedef, read_base_type)
5141 (read_subrange_type, load_partial_dies, partial_die_info::read)
5142 (partial_die_info::read, partial_die_info::read)
5143 (partial_die_info::read, read_checked_initial_length_and_offset)
5144 (dwarf2_string_attr, read_formatted_entries)
5145 (dwarf_decode_line_header)
5146 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
5147 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
5148 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
5149 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
5150 (get_signatured_type, get_DW_AT_signature_type)
5151 (decode_locdesc, file_file_name, consume_improper_spaces)
5152 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
5153 (dwarf_decode_macro_bytes, dwarf_decode_macros)
5154 (dwarf2_symbol_mark_computed, set_die_type)
5155 (read_attribute_value): Update.
5156 * stap-probe.c (handle_stap_probe, get_stap_base_address):
5157 Update.
5158 * dbxread.c (unknown_symtype_complaint)
5159 (lbrac_mismatch_complaint, repeated_header_complaint)
5160 (set_namestring, function_outside_compilation_unit_complaint)
5161 (read_dbx_symtab, process_one_symbol): Update.
5162 * gdbtypes.c (stub_noname_complaint): Update.
5163 * windows-nat.c (handle_unload_dll): Update.
5164 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
5165 (decode_base_type): Update.
5166 * xcoffread.c (bf_notfound_complaint, ef_complaint)
5167 (eb_complaint, record_include_begin, record_include_end)
5168 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
5169 (process_xcoff_symbol, read_symbol)
5170 (function_outside_compilation_unit_complaint)
5171 (scan_xcoff_symtab): Update.
5172 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
5173 * buildsym.c (finish_block_internal, make_blockvector)
5174 (end_symtab_get_static_block, augment_type_symtab): Update.
5175 * dtrace-probe.c (dtrace_process_dof)
5176 (dtrace_static_probe_ops::get_probes): Update.
5177 * complaints.h (struct complaint): Don't declare.
5178 (symfile_complaints): Remove.
5179 (complaint_internal): Remove "complaints" parameter.
5180 (complaint): Likewise.
5181 (clear_complaints): Likewise.
5182 * symfile.c (syms_from_objfile_1, finish_new_objfile)
5183 (reread_symbols): Update.
5184 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
5185 (dwarf2_frame_cache, decode_frame_entry): Update.
5186 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
5187 * objc-lang.c (lookup_objc_class, lookup_child_selector)
5188 (info_selectors_command): Update.
5189 * macrotab.c (macro_include, check_for_redefinition)
5190 (macro_undef): Update.
5191 * objfiles.c (filter_overlapping_sections): Update.
5192 * stabsread.c (invalid_cpp_abbrev_complaint)
5193 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
5194 (define_symbol, error_type, read_type, rs6000_builtin_type)
5195 (stabs_method_name_from_physname, read_member_functions)
5196 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
5197 (attach_fields_to_type, complain_about_struct_wipeout)
5198 (read_range_type, read_args, common_block_start)
5199 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
5200 Update.
5201 * mdebugread.c (index_complaint, unknown_ext_complaint)
5202 (basic_type_complaint, bad_tag_guess_complaint)
5203 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
5204 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
5205 (parse_procedure, parse_lines)
5206 (function_outside_compilation_unit_complaint)
5207 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
5208 (bad_tag_guess_complaint, reg_value_complaint): Update.
5209 * cp-support.c (demangled_name_complaint): Update.
5210 * macroscope.c (sal_macro_scope): Update.
5211 * dwarf-index-write.c (class debug_names): Update.
5212
5213 2018-05-23 Tom Tromey <tom@tromey.com>
5214
5215 * complaints.c (clear_complaints): Remove "noisy" parameter.
5216 * complaints.h (clear_complaints): Update.
5217 * symfile.c (syms_from_objfile_1, finish_new_objfile)
5218 (reread_symbols): Update.
5219
5220 2018-05-23 Tom Tromey <tom@tromey.com>
5221
5222 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
5223 SUBSEQUENT_MESSAGE.
5224 (vcomplaint, clear_complaints): Update.
5225 (symfile_explanations): Remove some messages.
5226
5227 2018-05-23 Tom Tromey <tom@tromey.com>
5228
5229 * complaints.c (internal_complaint): Remove.
5230 * complaints.h (internal_complaint): Remove.
5231
5232 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5233
5234 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
5235
5236 2018-05-22 Pedro Alves <palves@redhat.com>
5237
5238 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
5239 (remote_fileio_badfd, remote_fileio_return_errno)
5240 (remote_fileio_return_success, remote_fileio_func_open)
5241 (remote_fileio_func_open, remote_fileio_func_close)
5242 (remote_fileio_func_read, remote_fileio_func_write)
5243 (remote_fileio_func_lseek, remote_fileio_func_rename)
5244 (remote_fileio_func_unlink, remote_fileio_func_stat)
5245 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
5246 (remote_fileio_func_isatty, remote_fileio_func_system): Add
5247 remote_target parameter.
5248 (remote_fio_func_map) <func>: Add remote_target parameter.
5249 (do_remote_fileio_request, remote_fileio_request):
5250 * remote-fileio.h (remote_fileio_request):
5251 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
5252 remote_target parameter.
5253 (remote_notif_process, handle_notification): Adjust to pass down
5254 the remote.
5255 (remote_notif_state_allocate): Add remote_target parameter. Save
5256 it.
5257 * remote-notif.h (struct remote_target): Forward declare.
5258 (struct notif_client) <parse, ack, can_get_pending_events>: Add
5259 remote_target parameter.
5260 (struct remote_notif_state) <remote>: New field.
5261 (remote_notif_ack, remote_notif_parse): Add remote_target
5262 parameter.
5263 (remote_notif_state_allocate, remote_notif_state_allocate): Add
5264 remote_target parameter.
5265 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
5266 (threads_listing_context, rmt_thread_action, protocol_feature)
5267 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
5268 (packet_result, struct threads_listing_context, remote_state):
5269 Move definitions and declarations higher up.
5270 (remote_target) <~remote_target>: Declare.
5271 (remote_download_command_source, remote_file_put, remote_file_get)
5272 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
5273 (remote_hostio_pread_vFile, remote_hostio_send_command)
5274 (remote_hostio_set_filesystem, remote_hostio_open)
5275 (remote_hostio_close, remote_hostio_unlink, remote_state)
5276 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
5277 (get_memory_write_packet_size, get_memory_read_packet_size)
5278 (append_pending_thread_resumptions, remote_detach_1)
5279 (append_resumption, remote_resume_with_vcont)
5280 (add_current_inferior_and_thread, wait_ns, wait_as)
5281 (process_stop_reply, remote_notice_new_inferior)
5282 (process_initial_stop_replies, remote_add_thread)
5283 (btrace_sync_conf, remote_btrace_maybe_reopen)
5284 (remove_new_fork_children, kill_new_fork_children)
5285 (discard_pending_stop_replies, stop_reply_queue_length)
5286 (check_pending_events_prevent_wildcard_vcont)
5287 (discard_pending_stop_replies_in_queue, stop_reply)
5288 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
5289 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
5290 (remote_interrupt_as, remote_interrupt_ns)
5291 (remote_get_noisy_reply, remote_query_attached)
5292 (remote_add_inferior, remote_current_thread, get_current_thread)
5293 (set_thread, set_general_thread, set_continue_thread)
5294 (set_general_process, write_ptid)
5295 (remote_unpack_thread_info_response, remote_get_threadinfo)
5296 (parse_threadlist_response, remote_get_threadlist)
5297 (remote_threadlist_iterator, remote_get_threads_with_ql)
5298 (remote_get_threads_with_qxfer)
5299 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
5300 (get_offsets, remote_check_symbols, remote_supported_packet)
5301 (remote_query_supported, remote_packet_size)
5302 (remote_serial_quit_handler, remote_detach_pid)
5303 (remote_vcont_probe, remote_resume_with_hc)
5304 (send_interrupt_sequence, interrupt_query)
5305 (remote_notif_get_pending_events, fetch_register_using_p)
5306 (send_g_packet, process_g_packet, fetch_registers_using_g)
5307 (store_register_using_P, store_registers_using_G)
5308 (set_remote_traceframe, check_binary_download)
5309 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
5310 (remote_xfer_live_readonly_partial, remote_read_bytes)
5311 (remote_send_printf, remote_flash_write, readchar)
5312 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
5313 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
5314 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
5315 (extended_remote_disable_randomization, extended_remote_run)
5316 (send_environment_packet, extended_remote_environment_support)
5317 (extended_remote_set_inferior_cwd, remote_write_qxfer)
5318 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
5319 (packet_command): Now methods of ...
5320 (remote_target): ... this class.
5321 (m_remote_state) <remote_target>: New field.
5322 (struct remote_state) <stop_reply_queue,
5323 remote_async_inferior_event_token, wait_forever_enabled_p>: New
5324 fields.
5325 (remote_state::remote_state): Allocate stop_reply_queue.
5326 (remote_state): Delete global.
5327 (get_remote_state_raw): Delete.
5328 (remote_target::get_remote_state): Allocate m_remote_state on
5329 demand.
5330 (get_current_remote_target): New.
5331 (remote_ops, extended_remote_ops): Delete.
5332 (wait_forever_enabled_p, remote_async_inferior_event_token):
5333 Delete, moved to struct remote_state.
5334 (remote_target::close): Delete self. Destruction bits split to
5335 ...
5336 (remote_target::~remote_target): ... this.
5337 (show_memory_packet_size): Adjust to use
5338 get_current_remote_target.
5339 (struct protocol_feature) <func>: Add remote_target parameter.
5340 All callers adjusted.
5341 (curr_quit_handler_target): New.
5342 (remote_serial_quit_handler): Reimplement.
5343 (remote_target::open_1): Adjust to use get_current_remote_target.
5344 Heap-allocate remote_target/extended_remote_target instances.
5345 (vcont_builder::vcont_builder): Add remote_target parameter, and
5346 save it in m_remote. All callers adjusted.
5347 (vcont_builder::m_remote): New field.
5348 (vcont_builder::restart, vcont_builder::flush)
5349 (vcont_builder::push_action): Use it.
5350 (remote_target::commit_resume): Use it.
5351 (struct queue_iter_param) <remote>: New field.
5352 (remote_target::remove_new_fork_children): Fill in 'remote' field.
5353 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
5354 (check_pending_event_prevents_wildcard_vcont_callback)
5355 (remote_target::check_pending_events_prevent_wildcard_vcont)
5356 (remote_target::discard_pending_stop_replies)
5357 (remote_target::discard_pending_stop_replies_in_queue)
5358 (remote_target::remote_notif_remove_queued_reply): Fill in
5359 'remote' field.
5360 (remote_notif_get_pending_events): New.
5361 (remote_target::readchar, remote_target::remote_serial_write):
5362 Save/restore curr_quit_handler_target.
5363 (putpkt): New.
5364 (kill_new_fork_children): Fill in 'remote' field.
5365 (packet_command): Use get_current_remote_target, defer to
5366 remote_target method of same name.
5367 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
5368 parameter, and save it in m_remote. All callers adjusted.
5369 (scoped_remote_fd::release): Use m_remote.
5370 (scoped_remote_fd::m_remote): New field.
5371 (remote_file_put, remote_file_get, remote_file_delete): Use
5372 get_current_remote_target, defer to remote_target method of same
5373 name.
5374 (remote_btrace_reset): Add remote_state paremeter. Update all
5375 callers.
5376 (remote_async_inferior_event_handler). Pass down 'data'.
5377 (remote_new_objfile): Use get_current_remote_target.
5378 (remote_target::vcont_r_supported): New.
5379 (set_range_stepping): Use get_current_remote_target and
5380 remote_target::vcont_r_supported.
5381 (_initialize_remote): Don't allocate 'remote_state' and
5382 'stop_reply_queue' globals.
5383 * remote.h (struct remote_target): Forward declare.
5384 (getpkt, putpkt, remote_notif_get_pending_events): Add
5385 'remote_target' parameter.
5386
5387 2018-05-22 Pedro Alves <palves@redhat.com>
5388
5389 * remote.c (vcont_builder): Now a class. Make all data members
5390 private.
5391 (vcont_builder) <vcont_builder, restart, flush, push_action>:
5392 Declare methods.
5393 (vcont_builder_restart): Rename to ...
5394 (vcont_builder::restart): ... this.
5395 (vcont_builder_flush): Rename to ...
5396 (vcont_builder::flush): ... this.
5397 (vcont_builder_push_action): Rename to ...
5398 (vcont_builder::push_action): ... this.
5399 (remote_target::commit_resume): Adjust.
5400
5401 2018-05-22 Pedro Alves <palves@redhat.com>
5402
5403 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
5404 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
5405 (get_fixed_memory_packet_size): New.
5406 (get_memory_packet_size): Use it.
5407 (set_memory_packet_size): Don't override the config size with
5408 DEFAULT_MAX_MEMORY_PACKET_SIZE.
5409 (show_memory_packet_size): Use get_fixed_memory_packet_size.
5410 Don't refer to get_memory_packet_size if not connected to a remote
5411 target. Show "(default)" if configured size is 0.
5412
5413 2018-05-22 Pedro Alves <palves@redhat.com>
5414
5415 * remote.c (remote_target::mourn_inferior): Move
5416 discard_pending_stop_replies call here from ...
5417 (_initialize_remote): ... here.
5418
5419 2018-05-22 Pedro Alves <palves@redhat.com>
5420
5421 * remote.c (compare_section_command): Remove set_general_process
5422 call.
5423
5424 2018-05-22 Pedro Alves <palves@redhat.com>
5425
5426 * remote.c (struct packet_reg, struct remote_arch_state):
5427 Move higher up in the file.
5428 (remote_state) <m_arch_states>: Store remote_arch_state values
5429 instead of remote_arch_state pointers.
5430 (remote_state::get_remote_arch_state): Adjust.
5431
5432 2018-05-22 Pedro Alves <palves@redhat.com>
5433
5434 * remote.c: Include <unordered_map>.
5435 (remote_state): Now a class.
5436 (remote_state) <get_remote_arch_state>: Declare method.
5437 <get_remote_arch_state>: New field.
5438 (remote_arch_state) <remote_arch_state>: Declare ctor.
5439 <regs>: Now a unique_ptr.
5440 (remote_gdbarch_data_handle): Delete.
5441 (get_remote_arch_state): Delete.
5442 (remote_state::get_remote_arch_state): New.
5443 (get_remote_state): Adjust to call remote_state's
5444 get_remote_arch_state method.
5445 (init_remote_state): Delete, bits factored out to ...
5446 (remote_arch_state::remote_arch_state): ... this new method.
5447 (get_remote_packet_size, get_memory_packet_size)
5448 (process_g_packet, remote_target::fetch_registers)
5449 (remote_target::prepare_to_store, store_registers_using_G)
5450 (remote_target::store_registers, remote_target::get_trace_status):
5451 Adjust to call remote_state's method.
5452 (_initialize_remote): Remove reference to
5453 remote_gdbarch_data_handle.
5454
5455 2018-05-22 Pedro Alves <palves@redhat.com>
5456
5457 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
5458 pread>: New method declarations.
5459 (remote_target::open_1): Adjust.
5460 (readahead_cache_invalidate): Rename to ...
5461 (readahead_cache::invalidate): ... this, and adjust to be a class
5462 method.
5463 (readahead_cache_invalidate_fd): Rename to ...
5464 (readahead_cache::invalidate_fd): ... this, and adjust to be a
5465 class method.
5466 (remote_hostio_pwrite): Adjust.
5467 (remote_hostio_pread_from_cache): Rename to ...
5468 (readahead_cache::pread): ... this, and adjust to be a class
5469 method.
5470 (remote_hostio_close): Adjust.
5471
5472 2018-05-22 Pedro Alves <palves@redhat.com>
5473
5474 * remote.c (remote_hostio_close_cleanup): Delete.
5475 (class scoped_remote_fd): New.
5476 (remote_file_put, remote_file_get): Use it.
5477
5478 2018-05-22 Pedro Alves <palves@redhat.com>
5479
5480 (struct vCont_action_support): Use bool and initialize all fields.
5481 (struct readahead_cache): Initialize all fields.
5482 (remote_state): Use bool and initialize all fields.
5483 (remote_state::remote_state, remote_state::~remote_state): New.
5484 (new_remote_state): Delete.
5485 (_initialize_remote): Use new to allocate remote_state.
5486
5487 2018-05-22 Pedro Alves <palves@redhat.com>
5488 張俊芝 <zjz@zjz.name>
5489
5490 PR gdb/22973
5491 * c-exp.y: Include "c-support.h".
5492 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
5493 of tolower. Use c_ident_is_alpha to scan names.
5494 * c-lang.c: Include "c-support.h".
5495 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
5496 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
5497 * c-support.h: New file, with bits factored out from ...
5498 * cp-name-parser.y: ... this file.
5499 Include "c-support.h".
5500 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
5501 c-support.h and renamed.
5502 (symbol_end, yylex): Adjust.
5503
5504 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5505
5506 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
5507 parameter type to CORE_ADDR.
5508 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
5509 parameter type in declaration to CORE_ADDR.
5510 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
5511 target_auxv_search to get AT_HWCAP and use the result to get the
5512 target description.
5513 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
5514 to CORE_ADDR. Remove the cast of the return value to unsigned
5515 long. Fix error predicate of target_auxv_search.
5516 (ppc_linux_nat_target::read_description): Change the type of the
5517 hwcap variable to CORE_ADDR.
5518
5519 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5520
5521 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
5522 if the size of fpscr is larger than 32 bits.
5523
5524 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5525
5526 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
5527 (ppc32_linux_vsxregmap): New global.
5528 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
5529 regcache_supply_regset, and regcache_collect_regset.
5530 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
5531 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
5532 (fetch_vsx_register, store_vsx_register): Remove.
5533 (fetch_vsx_registers): Add regno parameter. Get regset using
5534 ppc_linux_vsxregset. Use regset to supply registers.
5535 (store_vsx_registers): Add regno parameter. Get regset using
5536 ppc_linux_vsxregset. Use regset to collect registers.
5537 (fetch_register): Call fetch_vsx_registers instead of
5538 fetch_vsx_register.
5539 (store_register): Call store_vsx_registers instead of
5540 store_vsx_register.
5541 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
5542 new regno parameter.
5543 (store_ppc_registers): Call store_vsx_registers with -1 for the
5544 new regno parameter.
5545 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
5546 (ppc_collect_vsxregset): Remove.
5547
5548 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5549
5550 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
5551 offset fields.
5552 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
5553 for vector register offset fields.
5554 (ppc64_fbsd_reg_offsets): Likewise.
5555 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
5556 to vector register offset fields.
5557 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
5558 to vector register offset fields.
5559 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
5560 vector register offset fields.
5561 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
5562 initializers for vector register offset fields.
5563 (rs6000_aix64_reg_offsets): Likewise.
5564 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
5565 (ppc_supply_vrregset): Remove.
5566 (ppc_collect_vrregset): Remove.
5567 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
5568 (ppc_linux_vrregset) : New function.
5569 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
5570 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
5571 (ppc32_linux_vrregset): Remove.
5572 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
5573 and use result instead of ppc32_linux_vrregset.
5574 (ppc32_linux_reg_offsets): Remove initializers for vector register
5575 offset fields.
5576 (ppc64_linux_reg_offsets): Likewise.
5577 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
5578 * ppc-linux-nat.c: Include regset.h.
5579 (gdb_vrregset_t): Adjust comment to account for little-endian
5580 mode.
5581 (supply_vrregset, fill_vrregset): Remove.
5582 (fetch_altivec_register, store_altivec_register): Remove.
5583 (fetch_altivec_registers): Add regno parameter. Get regset using
5584 ppc_linux_vrregset. Use regset to supply registers.
5585 (store_altivec_registers): Add regno parameter. Get regset using
5586 ppc_linux_vrregset. Use regset to collect registers.
5587 (fetch_register): Call fetch_altivec_registers instead of
5588 fetch_altivec_register.
5589 (store_register): Call store_altivec_registers instead of
5590 store_altivec_register.
5591 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
5592 the new regno parameter.
5593 (store_ppc_registers): Call store_altivec_registers with -1 for
5594 the new regno parameter.
5595
5596 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5597
5598 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
5599 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
5600 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
5601 (gdb_vrregset_t): Change array type size to
5602 PPC_LINUX_SIZEOF_VRREGSET.
5603 (gdb_vsxregset_t): Change array type size to
5604 PPC_LINUX_SIZEOF_VSXREGSET.
5605 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
5606 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
5607 PPC_LINUX_SIZEOF_VSXREGSET.
5608
5609 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5610
5611 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
5612 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
5613 nat/ppc-linux.c.
5614 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
5615 ppc_linux_target_wordsize with tid.
5616 (ppc_linux_nat_target::read_description): Call ppc_linux_target
5617 wordsize with tid.
5618 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
5619 (ppc64_64bit_inferior_p): Add static and inline specifiers.
5620 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
5621 tid parameter. Remove static specifier.
5622 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
5623 (ppc_linux_target_wordsize): New declaration.
5624
5625 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5626
5627 * arch/ppc-linux-common.c: New file.
5628 * arch/ppc-linux-common.h: New file.
5629 * arch/ppc-linux-tdesc.h: New file.
5630 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
5631 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
5632 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
5633 arch/ppc-linux-tdesc.h.
5634 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
5635 arch/ppc-linux-tdesc.h.
5636 (ppc_linux_nat_target::read_description): Remove target
5637 description matching code. Fill a ppc_linux_features struct and
5638 call ppc_linux_match_description with it. Move comment about ISA
5639 2.05 to ppc-linux-common.c.
5640 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
5641 arch/ppc-linux-tdesc.h.
5642 (ppc_linux_core_read_description): Remove target description
5643 matching code. Fill a ppc_linux_features struct and call
5644 ppc_linux_match_description with it.
5645 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
5646 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
5647 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
5648 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
5649 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
5650 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
5651 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
5652 (tdesc_powerpc_e500l): Remove.
5653
5654 2018-05-22 Joel Brobecker <brobecker@adacore.com>
5655
5656 * ada-lang.c (catch_assert_command): Pass empty string instead
5657 of NULL for excep_string argument.
5658
5659 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5660
5661 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
5662 the width of the requested register exceeds the width of the
5663 `ptrace' data type.
5664
5665 2018-05-21 Tom Tromey <tom@tromey.com>
5666
5667 * printcmd.c (output_command): Remove.
5668 (output_command_const): Rename to output_command.
5669 * valprint.h (output_command): Rename from output_command_const.
5670 * tracepoint.c (trace_dump_actions): Call output_command.
5671
5672 2018-05-21 Tom Tromey <tom@tromey.com>
5673
5674 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
5675 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
5676 * ada-lang.h (create_ada_exception_catchpoint): Update.
5677 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
5678 std::string.
5679 (create_excep_cond_exprs, ~ada_catchpoint)
5680 (should_stop_exception, print_one_exception)
5681 (print_mention_exception, print_recreate_exception): Update.
5682 (ada_get_next_arg): Remove.
5683 (catch_ada_exception_command_split): Use std::string. Change type
5684 of "excep_string", "cond_string".
5685 (catch_ada_exception_command): Update.
5686 (create_ada_exception_catchpoint): Change type of excep_string.
5687 (ada_exception_sal): Remove excep_string parameter.
5688 (~ada_catchpoint): Remove.
5689
5690 2018-05-21 Tom Tromey <tom@tromey.com>
5691
5692 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
5693 cleanup.
5694
5695 2018-05-21 Tom Tromey <tom@tromey.com>
5696
5697 * ada-lang.c (ada_exception_message_1, ada_exception_message):
5698 Return unique_xmalloc_ptr.
5699 (print_it_exception): Update.
5700
5701 2018-05-21 Tom Tromey <tom@tromey.com>
5702
5703 * tracepoint.c (trace_dump_actions): Use std::string.
5704
5705 2018-05-21 Tom Tromey <tom@tromey.com>
5706
5707 * symfile.c (reread_symbols): Use std::string for original_name.
5708
5709 2018-05-21 Tom Tromey <tom@tromey.com>
5710
5711 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
5712 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
5713 constructor.
5714
5715 2018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
5716
5717 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
5718 instance to...
5719 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
5720 * objfiles.c (get_objfile_bfd_data): Allocate
5721 objfile_per_bfd_storage with obstack_new when allocating on
5722 obstack.
5723
5724 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
5725
5726 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
5727 OBSTACK_ZALLOC.
5728 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
5729 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
5730 * mdebugread.c (mdebug_build_psymtabs): Likewise.
5731 (add_pending): Likewise.
5732 (parse_symbol): Likewise.
5733 (parse_partial_symbols): Likewise.
5734 (psymtab_to_symtab_1): Likewise.
5735 (new_psymtab): Likewise.
5736 (elfmdebug_build_psymtabs): Likewise.
5737 * minsyms.c (terminate_minimal_symbol_table): Likewise.
5738 * objfiles.c (get_objfile_bfd_data): Likewise.
5739 (objfile_register_static_link): Likewise.
5740 * psymtab.c (allocate_psymtab): Likewise.
5741 * stabsread.c (read_member_functions): Likewise.
5742 * xcoffread.c (xcoff_end_psymtab): Likewise.
5743
5744 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
5745
5746 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
5747 compiler supports std::is_trivially_constructible.
5748 * common/poison.h: Include obstack.h.
5749 (IsMallocable): Define to is_trivially_constructible if the
5750 compiler supports it, define to true_type otherwise.
5751 (xobnew): New.
5752 (XOBNEW): Redefine.
5753 (xobnewvec): New.
5754 (XOBNEWVEC): Redefine.
5755 * gdb_obstack.h (obstack_zalloc): New.
5756 (OBSTACK_ZALLOC): Redefine.
5757 (obstack_calloc): New.
5758 (OBSTACK_CALLOC): Redefine.
5759 (obstack_new): New.
5760 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
5761 (gdbarch_obstack): New declaration in gdbarch.h, definition in
5762 gdbarch.c.
5763 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
5764 obstack_calloc/obstack_zalloc.
5765 (gdbarch_obstack_zalloc): Remove.
5766 * target-descriptions.c (tdesc_data_init): Use obstack_new.
5767
5768 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5769
5770 * stack.c (backtrace_command_1): Remove useless variable int i.
5771
5772 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5773
5774 * stack.c (print_frame_info): Fix comment.
5775
5776 2018-05-18 Tom Tromey <tom@tromey.com>
5777
5778 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
5779 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
5780 (~dwarf2_per_objfile): Update
5781 (dwarf2_get_dwz_file): Use new.
5782 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
5783 unique_ptr.
5784
5785 2018-05-18 Tom Tromey <tom@tromey.com>
5786
5787 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
5788 unique_ptr.
5789 * dwarf2read.c (struct dwp_file): Add constructor and
5790 initializers.
5791 (open_and_init_dwp_file): Return a unique_ptr.
5792 (dwarf2_per_objfile, create_dwp_hash_table)
5793 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
5794 (lookup_dwo_unit_in_dwp): Update.
5795 (open_and_init_dwp_file, get_dwp_file): Update.
5796
5797 2018-05-18 Tom Tromey <tom@tromey.com>
5798
5799 * dwarf2read.c (dwarf2_per_objfile): Update.
5800 (struct mapped_index): Add initializers.
5801 (dwarf2_read_index): Use new.
5802 (dw2_symtab_iter_init): Update.
5803 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
5804 unique_ptr.
5805
5806 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
5807
5808 * dwarf2read.c (mapped_index) <total_size>: Remove.
5809
5810 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
5811
5812 * unittests/format_pieces-selftests.c (test_format_specifier):
5813 Add ARI comments.
5814
5815 2018-05-18 Tom Tromey <tom@tromey.com>
5816
5817 * c-typeprint.c (maybe_print_hole): New function.
5818 (c_print_type_struct_field_offset): Update.
5819 (c_type_print_base_struct_union): Call maybe_print_hole.
5820
5821 2018-05-17 Keith Seitz <keiths@redhat.com>
5822
5823 * breakpoint.c (build_bpstat_chain): New function, moved from
5824 bpstat_stop_status.
5825 (bpstat_stop_status): Add optional parameter, `stop_chain'.
5826 If no stop chain is passed, call build_bpstat_chain to build it.
5827 * breakpoint.h (build_bpstat_chain): Declare.
5828 (bpstat_stop_status): Move documentation here from breakpoint.c.
5829 * infrun.c (handle_signal_stop): Before eliding inlined frames,
5830 build the stop chain and pass it to skip_inline_frames.
5831 Pass this stop chain to bpstat_stop_status.
5832 * inline-frame.c: Include breakpoint.h.
5833 (stopped_by_user_bp_inline_frame): New function.
5834 (skip_inline_frames): Add parameter `stop_chain'.
5835 Move documention to inline-frame.h.
5836 If non-NULL, use stopped_by_user_bp_inline_frame to determine
5837 whether the frame should be elided.
5838 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
5839 Add moved documentation and update for new parameter.
5840
5841 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
5842
5843 PR cli/14975
5844 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5845 unittests/format_pieces-selftests.c.
5846 * common/format.h (format_piece) <operator==>: New.
5847 (format_pieces) <operator[]>: Remove.
5848 * common/format.c (format_pieces::format_pieces): Handle \e.
5849 * unittests/format_pieces-selftests.c: New.
5850
5851 2018-05-17 Tom Tromey <tom@tromey.com>
5852
5853 PR symtab/23010:
5854 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
5855 (dw2_instantiate_symtab): Add skip_partial parameter.
5856 (dw2_find_last_source_symtab, dw2_map_expand_apply)
5857 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
5858 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
5859 (dw2_expand_symtabs_matching_one)
5860 (dw2_find_pc_sect_compunit_symtab)
5861 (dw2_debug_names_lookup_symbol)
5862 (dw2_debug_names_expand_symtabs_for_function): Update.
5863 (init_cutu_and_read_dies): Add skip_partial parameter.
5864 (process_psymtab_comp_unit, build_type_psymtabs_1)
5865 (process_skeletonless_type_unit, load_partial_comp_unit)
5866 (psymtab_to_symtab_1): Update.
5867 (load_full_comp_unit): Add skip_partial parameter.
5868 (process_imported_unit_die, dwarf2_read_addr_index)
5869 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
5870 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
5871 (read_signatured_type): Update.
5872
5873 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
5874
5875 * value.c (release_value): Remove unused variable.
5876 (record_latest_value): Likewise.
5877 (access_value_history): Likewise.
5878 (preserve_values): Likewise.
5879
5880 2018-05-17 Tom Tromey <tom@tromey.com>
5881
5882 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
5883 Initialize.
5884
5885 2018-05-16 Maciej W. Rozycki <macro@mips.com>
5886
5887 PR gdb/22286
5888 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
5889 Also handle registers whose width is not a multiple of
5890 PTRACE_TYPE_RET.
5891 (linux_nat_trad_target::store_register): Likewise.
5892
5893 2018-05-16 Tom Tromey <tom@tromey.com>
5894
5895 * gdbcore.h (core_bfd): Redefine.
5896 * corelow.c (core_target::close): Update.
5897 (core_target_open): Update.
5898 * progspace.h (struct program_space) <cbfd>: Now a
5899 gdb_bfd_ref_ptr.
5900
5901 2018-05-16 Tom Tromey <tom@tromey.com>
5902
5903 PR cli/19551:
5904 * symfile-add-flags.h (enum symfile_add_flags)
5905 <SYMFILE_NOT_FILENAME>: New constant.
5906 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
5907 objfile name from BFD.
5908 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
5909 * minidebug.c (find_separate_debug_file_in_section): Put
5910 ".gnu_debugdata" into BFD's file name.
5911
5912 2018-05-16 Simon Marchi <simon.marchi@ericsson.com>
5913
5914 * regcache.c (regcache_read_ftype, regcache_write_ftype):
5915 Remove.
5916
5917 2018-05-15 Tamar Christina <tamar.christina@arm.com>
5918
5919 PR binutils/21446
5920 * aarch64-tdep.c (aarch64_analyze_prologue,
5921 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
5922 Indicate not interested in errors.
5923
5924 2018-05-15 Maciej W. Rozycki <macro@mips.com>
5925
5926 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
5927 Supply the MIPS_ZERO_REGNUM register.
5928
5929 2018-05-15 Maciej W. Rozycki <macro@mips.com>
5930
5931 * mips-tdep.c (mask_address_var): Make variable static.
5932
5933 2018-05-14 Tom Tromey <tom@tromey.com>
5934
5935 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
5936
5937 2018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
5938
5939 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
5940 FXSAVE_ADDR for the mxcsr register.
5941
5942 2018-05-11 Max Filippov <jcmvbkbc@gmail.com>
5943
5944 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
5945
5946 2018-05-11 Pedro Alves <palves@redhat.com>
5947
5948 * corelow.c (core_target) <core_target>: No longer inline.
5949 Initialize m_core_gdbarch, m_core_vec and build the section table
5950 here.
5951 <~core_target>: New.
5952 <core_gdbarch, get_core_register_section>: New methods.
5953 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
5954 factored out from ...
5955 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
5956 (core_ops): Delete.
5957 (sniff_core_bfd): Add gdbarch parameter.
5958 (core_close): Delete, merged into ...
5959 (core_target::close): ... here. Delete self.
5960 (core_close_cleanup): Delete.
5961 (core_target_open): Allocate a core_target on the heap. Use a
5962 unique_ptr instead of a cleanup. Bits moved into the core_target
5963 ctor. Adjust to use core_target methods instead of globals.
5964 (get_core_register_section): Rename to ...
5965 (core_target::get_core_register_section): ... this and adjust.
5966 (struct get_core_registers_cb_data): New.
5967 (get_core_registers_cb): Use it. Use bool.
5968 (core_target::fetch_registers, core_target::files_info)
5969 (core_target::xfer_partial, core_target::read_description)
5970 (core_target::pid_to, core_target::thread_name): Adjust to
5971 reference class fields instead of globals.
5972 * target.h (struct target_ops_deleter, target_ops_up): New.
5973
5974 2018-05-11 Pedro Alves <palves@redhat.com>
5975
5976 * corefile.c (core_file_command): Move to corelow.c.
5977 * corelow.c (the_core_target): Delete.
5978 (core_file_command): Moved from corefile.c. Check exec_bfd
5979 instead of the_core_target. Use target_detach instead of calling
5980 into the_core_target directly.
5981 (maybe_say_no_core_file_now): New.
5982 (core_target::detach): Use it.
5983 (_initialize_corelow): Remove references to the_core_target.
5984 * gdbcore.h (the_core_target): Delete.
5985
5986 2018-05-11 Tom Tromey <tromey@redhat.com>
5987 Pedro Alves <palves@redhat.com>
5988
5989 * corefile.c (core_bfd): Remove.
5990 * gdbcore.h (core_bfd): Now a macro.
5991 * progspace.h (struct program_space) <cbfd>: New field.
5992
5993 2018-05-11 Tom Tromey <tom@tromey.com>
5994
5995 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
5996 gdb::def_vector.
5997
5998 2018-05-10 Tom Tromey <tom@tromey.com>
5999
6000 * configure: Rebuild.
6001 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
6002
6003 2018-05-10 Joel Brobecker <brobecker@adacore.com>
6004
6005 PR server/23158:
6006 * regformats/regdat.sh: Adjust script, following the addition
6007 of the new expedite_regs parameter to init_target_desc.
6008
6009 2018-05-10 Omair Javaid <omair.javaid@linaro.org>
6010
6011 PR gdb/23127
6012 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
6013 set_gdbarch_significant_addr_bit.
6014 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
6015 set_gdbarch_significant_addr_bit.
6016 * utils.c (address_significant): Update to sign extend addr.
6017
6018 2018-05-09 Max Filippov <jcmvbkbc@gmail.com>
6019
6020 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
6021 (xtensa_linux_init_abi): Limit tdep->num_regs by
6022 tdep->num_nopriv_regs.
6023 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
6024 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
6025 not initialized.
6026
6027 2018-05-08 Simon Marchi <simon.marchi@ericsson.com>
6028
6029 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
6030
6031 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
6032
6033 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
6034 (I387_MXCSR_INIT_VAL): New constant.
6035 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
6036 buffer if it was supplied by the inferior.
6037 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
6038 (i387_xsave_get_clear_bv): New function.
6039 (i387_supply_xsave): Only read x87 control registers from the
6040 xsave buffer if the feature is enabled, and the state will have
6041 been written, otherwise, provide a suitable default.
6042 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
6043 including x87 control registers. Update control registers if they
6044 have changed from the default value, and mark features as enabled
6045 as required.
6046 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
6047
6048 2018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
6049
6050 * spu-tdep.c (info_spu_event_command): Fix output formatting.
6051
6052 2018-05-07 Tom Tromey <tom@tromey.com>
6053
6054 * configure: Rebuild.
6055 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
6056
6057 2018-05-07 Tom Tromey <tom@tromey.com>
6058
6059 PR tdep/20362:
6060 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
6061 bit. Use correct value for VDIV.
6062
6063 2018-05-04 Tom Tromey <tom@tromey.com>
6064
6065 * configure: Rebuild.
6066 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
6067
6068 2018-05-04 Tom Tromey <tom@tromey.com>
6069
6070 * linux-record.c (record_linux_system_call) <case
6071 RECORD_SYS_RECVFROM>: Add "break".
6072
6073 2018-05-04 Tom Tromey <tom@tromey.com>
6074
6075 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
6076 Add missing "break".
6077 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
6078 Add missing "break".
6079
6080 2018-05-04 Tom Tromey <tom@tromey.com>
6081
6082 * rs6000-tdep.c (ppc_process_record_op4)
6083 (ppc_process_record_op63): Add fall-through comment.
6084
6085 2018-05-04 Tom Tromey <tom@tromey.com>
6086
6087 * i386-tdep.c (i386_process_record): Add fall-through comment.
6088
6089 2018-05-04 Tom Tromey <tom@tromey.com>
6090
6091 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
6092 comment.
6093
6094 2018-05-04 Tom Tromey <tom@tromey.com>
6095
6096 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
6097 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
6098 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
6099 comment.
6100 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
6101 comment.
6102 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
6103 comment.
6104
6105 2018-05-04 Tom Tromey <tom@tromey.com>
6106
6107 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
6108
6109 2018-05-04 Tom Tromey <tom@tromey.com>
6110
6111 * s390-tdep.c (s390_process_record): Fix fall-through comments.
6112 * xcoffread.c (scan_xcoff_symtab): Move comment later.
6113 * symfile.c (section_is_mapped): Fix fall-through comment.
6114 * stabsread.c (define_symbol, read_member_functions): Fix
6115 fall-through comment.
6116 * s390-linux-tdep.c (s390_process_record): Fix fall-through
6117 comment.
6118 * remote.c (remote_wait_as): Fix fall-through comment.
6119 * p-exp.y (yylex): Fix fall-through comment.
6120 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
6121 comment.
6122 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
6123 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
6124 * jv-exp.y (yylex): Fix fall-through comment.
6125 * go-exp.y (lex_one_token): Fix fall-through comment.
6126 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
6127 fall-through comment.
6128 * f-exp.y (yylex): Fix fall-through comment.
6129 * dwarf2read.c (process_die): Fix fall-through comments.
6130 * dbxread.c (process_one_symbol): Fix fall-through comment.
6131 * d-exp.y (lex_one_token): Fix fall-through comment.
6132 * cp-name-parser.y (yylex): Fix fall-through comment.
6133 * coffread.c (coff_symtab_read): Fix fall-through comment.
6134 * c-exp.y (lex_one_token): Fix fall-through comment.
6135 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
6136 comment.
6137 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
6138 comment.
6139
6140 2018-05-04 Tom Tromey <tom@tromey.com>
6141
6142 PR python/22730:
6143 * NEWS: Mention gdb.execute change.
6144 * gdbcmd.h (execute_control_command): Don't declare.
6145 * python/python.c (execute_gdb_command): Use read_command_lines_1,
6146 execute_control_commands, execute_control_commands_to_string.
6147 * cli/cli-script.h (execute_control_commands)
6148 (execute_control_commands_to_string): Declare.
6149 (execute_control_command): Add from_tty parameter.
6150 * cli/cli-script.c (execute_control_commands)
6151 (execute_control_commands_to_string): New functions.
6152 (execute_user_command): Use execute_control_commands.
6153 (execute_control_command_1): Add "from_tty" parameter. Update.
6154 (execute_control_command): Likewise.
6155
6156 2018-05-04 Tom Tromey <tom@tromey.com>
6157
6158 PR python/22731:
6159 * NEWS: Mention that breakpoint commands are writable.
6160 * python/py-breakpoint.c (bppy_set_commands): New function.
6161 (breakpoint_object_getset) <"commands">: Use it.
6162
6163 2018-05-04 Tom Tromey <tom@tromey.com>
6164
6165 * tracepoint.c (actions_command): Update.
6166 * mi/mi-cmd-break.c (mi_command_line_array)
6167 (mi_command_line_array_cnt, mi_command_line_array_ptr)
6168 (mi_read_next_line): Remove.
6169 (mi_cmd_break_commands): Update.
6170 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
6171 function_view.
6172 * cli/cli-script.c (get_command_line): Update.
6173 (process_next_line): Use function_view. Constify.
6174 (recurse_read_control_structure, read_command_lines)
6175 (read_command_lines_1): Change argument types to function_view.
6176 (do_define_command, document_command): Update.
6177 * breakpoint.h (check_tracepoint_command): Don't declare.
6178 * breakpoint.c (check_tracepoint_command): Remove.
6179 (commands_command_1, create_tracepoint_from_upload): Update.
6180
6181 2018-05-04 Tom Tromey <tom@tromey.com>
6182
6183 PR gdb/11750:
6184 * cli/cli-script.h (enum command_control_type) <define_control>:
6185 New constant.
6186 * cli/cli-script.c (multi_line_command_p): Handle define_control.
6187 (build_command_line, execute_control_command_1)
6188 (process_next_line): Likewise.
6189 (do_define_command): New function, extracted from define_command.
6190 (define_command): Use it.
6191
6192 2018-05-04 Tom Tromey <tom@tromey.com>
6193
6194 * tracepoint.c (actions_command): Update.
6195 * cli/cli-script.h (read_command_lines): Update.
6196 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
6197 (MAX_TMPBUF): Remove define.
6198 (define_command): Use string_printf.
6199 (document_command): Likewise.
6200 * breakpoint.c (commands_command_1): Update.
6201
6202 2018-05-04 Tom Tromey <tom@tromey.com>
6203
6204 * top.c (execute_command): Update.
6205 * cli/cli-script.h (print_command_lines): Now varargs.
6206 * cli/cli-script.c (print_command_lines): Now varargs.
6207 (execute_control_command_1) <case while_control, case if_control>:
6208 Update.
6209
6210 2018-05-04 Tom Tromey <tom@tromey.com>
6211
6212 * tracepoint.c (all_tracepoint_actions): Rename from
6213 all_tracepoint_actions_and_cleanup. Change return type.
6214 (actions_command, encode_actions_1, encode_actions)
6215 (trace_dump_actions, tdump_command): Update.
6216 * remote.c (remote_download_command_source): Update.
6217 * python/python.c (gdbpy_eval_from_control_command)
6218 (python_command, python_interactive_command): Update.
6219 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
6220 * guile/guile.c (guile_command)
6221 (gdbscm_eval_from_control_command, guile_command): Update.
6222 * compile/compile.c (compile_code_command)
6223 (compile_print_command, compile_to_object): Update.
6224 * cli/cli-script.h (struct command_lines_deleter): New.
6225 (counted_command_line): New typedef.
6226 (struct command_line): Add constructor, destructor.
6227 <body_list>: Remove.
6228 <body_list_0, body_list_1>: New members.
6229 (command_line_up): Remove typedef.
6230 (read_command_lines, read_command_lines_1, get_command_line):
6231 Update.
6232 (copy_command_lines): Don't declare.
6233 * cli/cli-script.c (build_command_line): Use "new".
6234 (get_command_line): Return counted_command_line.
6235 (print_command_lines, execute_user_command)
6236 (execute_control_command_1, while_command, if_command): Update.
6237 (realloc_body_list): Remove.
6238 (process_next_line, recurse_read_control_structure): Update.
6239 (read_command_lines, read_command_lines_1): Return counted_command_line.
6240 (free_command_lines): Use "delete".
6241 (copy_command_lines): Remove.
6242 (define_command, document_command, show_user_1): Update.
6243 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
6244 a counted_command_line.
6245 * breakpoint.h (counted_command_line): Remove typedef.
6246 (breakpoint_set_commands): Update.
6247 * breakpoint.c (check_no_tracepoint_commands)
6248 (validate_commands_for_breakpoint): Update.
6249 (breakpoint_set_commands): Change commands to be a
6250 counted_command_line.
6251 (commands_command_1, update_dprintf_command_list)
6252 (create_tracepoint_from_upload): Update.
6253
6254 2018-05-04 Tom Tromey <tom@tromey.com>
6255
6256 * cli/cli-decode.h (cmd_list_element): New constructor.
6257 (~cmd_list_element): New destructor.
6258 (struct cmd_list_element): Add initializers.
6259 * cli/cli-decode.c (do_add_cmd): Use "new".
6260 (delete_cmd): Use "delete".
6261
6262 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6263 Pedro Alves <palves@redhat.com>
6264
6265 PR breakpoints/19806 and support for PR external/20207.
6266 * NEWS: Mention Aarch64 watchpoint improvements.
6267 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
6268 watchpoints and PR external/20207 watchpoints.
6269 * nat/aarch64-linux-hw-point.c
6270 (kernel_supports_any_contiguous_range): New.
6271 (aarch64_watchpoint_offset): New.
6272 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
6273 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
6274 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
6275 (aarch64_align_watchpoint): New parameters aligned_offset_p and
6276 next_addr_orig_p. Support PR external/20207 watchpoints.
6277 (aarch64_downgrade_regs): New.
6278 (aarch64_dr_state_insert_one_point): New parameters offset and
6279 addr_orig.
6280 (aarch64_dr_state_remove_one_point): Likewise.
6281 (aarch64_handle_breakpoint): Update caller.
6282 (aarch64_handle_aligned_watchpoint): Likewise.
6283 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
6284 aligned_offset.
6285 (aarch64_linux_set_debug_regs): Remove const from state. Call
6286 aarch64_downgrade_regs.
6287 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
6288 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
6289 (DR_CONTROL_MASK): ... this.
6290 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
6291 (unsigned int aarch64_watchpoint_offset): New prototype.
6292 (aarch64_linux_set_debug_regs): Remove const from state.
6293 * utils.c (align_up, align_down): Move to ...
6294 * common/common-utils.c (align_up, align_down): ... here.
6295 * utils.h (align_up, align_down): Move to ...
6296 * common/common-utils.h (align_up, align_down): ... here.
6297
6298 2018-05-04 Joel Brobecker <brobecker@adacore.com>
6299
6300 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
6301 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
6302 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
6303 Re-implement to match the ABI as summarized in GCC's
6304 gcc/config/sparc/sparc.c. All callers updated.
6305 (sparc32_store_arguments): Remove assertion.
6306
6307 2018-05-04 Tom Tromey <tom@tromey.com>
6308
6309 * printcmd.c: Don't include tui.h.
6310 (decode_format): Use skip_spaces.
6311
6312 2018-05-04 Tom Tromey <tom@tromey.com>
6313
6314 PR gdb/22619:
6315 * printcmd.c (last_count): New global.
6316 (x_command): Use saved count when repeating.
6317
6318 2018-05-04 Tom Tromey <tom@tromey.com>
6319
6320 * nto-procfs.c (do_closedir_cleanup): Remove.
6321 (procfs_pidlist): Use gdb_dir_up.
6322 * procfs.c (do_closedir_cleanup): Remove.
6323 (proc_update_threads): Use gdb_dir_up.
6324 * common/filestuff.h (struct gdb_dir_deleter): New.
6325 (gdb_dir_up): New typedef.
6326
6327 2018-05-04 Tom Tromey <tom@tromey.com>
6328
6329 * ada-lang.c (print_mention_exception): Use std::string.
6330
6331 2018-05-04 Tom Tromey <tom@tromey.com>
6332
6333 * ada-lang.c (create_excep_cond_exprs): Update.
6334 (ada_exception_catchpoint_cond_string): Use std::string.
6335
6336 2018-05-04 Tom Tromey <tom@tromey.com>
6337
6338 * ada-lang.c (xget_renaming_scope): Return std::string.
6339 (old_renaming_is_invisible): Update.
6340
6341 2018-05-04 Tom Tromey <tom@tromey.com>
6342
6343 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
6344 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
6345
6346 2018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
6347
6348 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
6349
6350 2018-05-04 Tom Tromey <tom@tromey.com>
6351
6352 * remote.c (remote_query_supported_append): Change type.
6353 (remote_check_symbols): Update.
6354
6355 2018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
6356
6357 PR gdb/11420
6358 * configure.ac: Prepend libpython.
6359 * python/python-config.py: Likewise.
6360 * configure: Regenerate.
6361
6362 2018-05-03 Simon Marchi <simon.marchi@ericsson.com>
6363
6364 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
6365
6366 2018-05-03 Pedro Alves <palves@redhat.com>
6367
6368 * s390-linux-nat.c
6369 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
6370 override. Write 'true' instead of '1'.
6371 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
6372 declaration.
6373
6374 2018-05-02 Pedro Alves <palves@redhat.com>
6375
6376 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
6377 add_inf_child_target.
6378 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
6379 add_inf_child_target.
6380 * aix-thread.c (aix_thread_target_info): New.
6381 (aix_thread_target) <shortname, longname, doc>: Delete.
6382 <info>: New.
6383 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
6384 add_inf_child_target.
6385 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
6386 add_inf_child_target.
6387 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
6388 add_inf_child_target.
6389 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
6390 add_inf_child_target.
6391 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
6392 add_inf_child_target.
6393 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
6394 add_inf_child_target.
6395 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
6396 add_inf_child_target.
6397 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
6398 add_inf_child_target.
6399 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
6400 add_inf_child_target.
6401 * bfd-target.c (target_bfd_target_info): New.
6402 (target_bfd) <shortname, longname, doc>: Delete.
6403 <info>: New.
6404 * bsd-kvm.c (bsd_kvm_target_info): New.
6405 (bsd_kvm_target) <shortname, longname, doc>: Delete.
6406 <info>: New.
6407 (bsd_kvm_target::open): Rename to ...
6408 (bsd_kvm_target_open): ... this. Adjust.
6409 * bsd-uthread.c (bsd_uthread_target_info): New.
6410 (bsd_uthread_target) <shortname, longname, doc>: Delete.
6411 <info>: New.
6412 * corefile.c (core_file_command): Adjust.
6413 * corelow.c (core_target_info): New.
6414 (core_target) <shortname, longname, doc>: Delete.
6415 <info>: New.
6416 (core_target::open): Rename to ...
6417 (core_target_open): ... this. Adjust.
6418 * ctf.c (ctf_target_info): New.
6419 (ctf_target) <shortname, longname, doc>: Delete.
6420 <info>: New.
6421 (ctf_target::open): Rename to ...
6422 (ctf_target_open): ... this.
6423 (_initialize_ctf): Adjust.
6424 * exec.c (exec_target_info): New.
6425 (exec_target) <shortname, longname, doc>: Delete.
6426 <info>: New.
6427 (exec_target::open): Rename to ...
6428 (exec_target_open): ... this.
6429 * gdbcore.h (core_target_open): Declare.
6430 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
6431 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
6432 add_inf_child_target.
6433 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
6434 add_inf_child_target.
6435 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
6436 add_inf_child_target.
6437 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
6438 add_inf_child_target.
6439 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
6440 add_inf_child_target.
6441 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
6442 add_inf_child_target.
6443 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
6444 add_inf_child_target.
6445 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
6446 add_inf_child_target.
6447 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
6448 add_inf_child_target.
6449 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
6450 add_inf_child_target.
6451 * inf-child.c (inf_child_target_info): New.
6452 (inf_child_target::info): New.
6453 (inf_child_open_target): Remove 'target' parameter. Use
6454 get_native_target instead.
6455 (inf_child_target::open): Delete.
6456 (add_inf_child_target): New.
6457 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
6458 Delete.
6459 <info>: New.
6460 (add_inf_child_target): Declare.
6461 (inf_child_open_target): Declare.
6462 * linux-thread-db.c (thread_db_target_info): New.
6463 (thread_db_target) <shortname, longname, doc>: Delete.
6464 <info>: New.
6465 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
6466 add_inf_child_target.
6467 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
6468 add_inf_child_target.
6469 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
6470 add_inf_child_target.
6471 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
6472 add_inf_child_target.
6473 * make-target-delegates (print_class): Adjust.
6474 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
6475 add_inf_child_target.
6476 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
6477 add_inf_child_target.
6478 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
6479 add_inf_child_target.
6480 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
6481 add_inf_child_target.
6482 * nto-procfs.c (nto_native_target_info): New.
6483 (nto_procfs_target_native) <shortname, longname, doc>:
6484 Delete.
6485 <info>: New.
6486 (nto_procfs_target_info): New.
6487 (nto_procfs_target_procfs) <shortname, longname, doc>:
6488 Delete.
6489 <info>: New.
6490 (init_procfs_targets): Adjust.
6491 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
6492 add_inf_child_target.
6493 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
6494 add_inf_child_target.
6495 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
6496 add_inf_child_target.
6497 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
6498 add_inf_child_target.
6499 * ravenscar-thread.c (ravenscar_target_info): New.
6500 (ravenscar_thread_target) <shortname, longname, doc>:
6501 Delete.
6502 <info>: New.
6503 * record-btrace.c (record_btrace_target_info):
6504 (record_btrace_target) <shortname, longname, doc>: Delete.
6505 <info>: New.
6506 (record_btrace_target::open): Rename to ...
6507 (record_btrace_target_open): ... this. Adjust.
6508 * record-full.c (record_longname, record_doc): New.
6509 (record_full_base_target) <shortname, longname, doc>: Delete.
6510 <info>: New.
6511 (record_full_target_info): New.
6512 (record_full_target): <shortname>: Delete.
6513 <info>: New.
6514 (record_full_core_open_1, record_full_open_1): Update comments.
6515 (record_full_base_target::open): Rename to ...
6516 (record_full_open): ... this.
6517 (cmd_record_full_restore): Update.
6518 (_initialize_record_full): Update.
6519 * remote-sim.c (remote_sim_target_info): New.
6520 (gdbsim_target) <shortname, longname, doc>: Delete.
6521 <info>: New.
6522 (gdbsim_target::open): Rename to ...
6523 (gdbsim_target_open): ... this.
6524 (_initialize_remote_sim): Adjust.
6525 * remote.c (remote_doc): New.
6526 (remote_target_info): New.
6527 (remote_target) <shortname, longname, doc>: Delete.
6528 <info>: New.
6529 (extended_remote_target_info): New.
6530 (extended_remote_target) <shortname, longname, doc>: Delete.
6531 <info>: New.
6532 (remote_target::open_1): Make static. Adjust.
6533 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
6534 * s390-linux-nat.c (_initialize_s390_nat): Use
6535 add_inf_child_target.
6536 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
6537 add_inf_child_target.
6538 * sol-thread.c (thread_db_target_info): New.
6539 (sol_thread_target) <shortname, longname, doc>: Delete.
6540 <info>: New.
6541 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
6542 add_inf_child_target.
6543 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
6544 add_inf_child_target.
6545 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
6546 add_inf_child_target.
6547 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
6548 add_inf_child_target.
6549 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
6550 add_inf_child_target.
6551 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
6552 add_inf_child_target.
6553 * spu-linux-nat.c (_initialize_spu_nat): Use
6554 add_inf_child_target.
6555 * spu-multiarch.c (spu_multiarch_target_info): New.
6556 (spu_multiarch_target) <shortname, longname, doc>: Delete.
6557 <info>: New.
6558 * target-delegates.c: Regenerate.
6559 * target.c: Include <unordered_map>.
6560 (target_ops_p): Delete.
6561 (DEF_VEC_P(target_ops_p)): Delete.
6562 (target_factories): New.
6563 (test_target_info): New.
6564 (test_target_ops::info): New.
6565 (open_target): Adjust to use target_factories.
6566 (add_target_with_completer): Rename to ...
6567 (add_target): ... this. Change prototype. Register target_info
6568 and open callback in target_factories. Register target_info in
6569 command context instead of target_ops.
6570 (add_target): Delete old implementation.
6571 (add_deprecated_target_alias): Change prototype. Adjust.
6572 (the_native_target): New.
6573 (set_native_target, get_native_target): New.
6574 (find_default_run_target): Use the_native_target.
6575 (find_attach_target, find_run_target): Simplify.
6576 (target_ops::open): Delete.
6577 (dummy_target_info): New.
6578 (dummy_target::shortname, dummy_target::longname)
6579 (dummy_target::doc): Delete.
6580 (dummy_target::info): New.
6581 (debug_target::shortname, debug_target::longname)
6582 (debug_target::doc): Delete.
6583 (debug_target::info): New.
6584 * target.h (struct target_info): New.
6585 (target_ops::~target_ops): Add comment.
6586 (target_ops::info): New.
6587 (target_ops::shortname, target_ops::longname, target_ops::doc): No
6588 longer virtual. Implement in terms of target_info.
6589 (set_native_target, get_native_target): Declare.
6590 (target_open_ftype): New.
6591 (add_target, add_target_with_completer)
6592 (add_deprecated_target_alias): Change prototype.
6593 (test_target) <shortname, longname, doc>: Delete.
6594 <info>: New.
6595 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
6596 add_inf_child_target.
6597 * tracefile-tfile.c (tfile_target_info): New.
6598 (tfile_target) <shortname, longname, doc>: Delete.
6599 <info>: New.
6600 (tfile_target::open): Rename to ...
6601 (tfile_target_open): ... this.
6602 (_initialize_tracefile_tfile): Adjust.
6603 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
6604 add_inf_child_target.
6605 * windows-nat.c (_initialize_windows_nat): Use
6606 add_inf_child_target.
6607 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
6608 add_inf_child_target.
6609
6610 2018-05-02 Pedro Alves <palves@redhat.com>
6611
6612 * linux-nat.h (linux_nat_target) <low_new_thread,
6613 low_delete_thread, low_new_fork, low_forget_process,
6614 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
6615 New virtual methods.
6616 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
6617 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
6618 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
6619 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
6620 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
6621 Delete.
6622 * linux-fork.c (delete_fork): Adjust to call low method.
6623 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
6624 (linux_nat_new_fork, linux_nat_forget_process_hook)
6625 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
6626 (linux_nat_status_is_event):
6627 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
6628 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
6629 to call low method.
6630 (sigtrap_is_event): Rename to ...
6631 (linux_nat_target::low_status_is_event): ... this.
6632 (linux_nat_set_status_is_event): Delete.
6633 (save_stop_reason, linux_nat_wait_1)
6634 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
6635 low methods.
6636 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
6637 (linux_nat_set_new_fork, linux_nat_set_forget_process)
6638 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
6639 (linux_nat_set_prepare_to_resume): Delete.
6640 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
6641 low virtual methods.
6642 * amd64-linux-nat.c: Likewise.
6643 * arm-linux-nat.c: Likewise.
6644 * i386-linux-nat.c: Likewise.
6645 * ia64-linux-nat.c: Likewise.
6646 * mips-linux-nat.c: Likewise.
6647 * ppc-linux-nat.c: Likewise.
6648 * s390-linux-nat.c: Likewise.
6649 * sparc64-linux-nat.c: Likewise.
6650 * x86-linux-nat.c: Likewise.
6651 * x86-linux-nat.h: Include "nat/x86-linux.h".
6652 (x86_linux_nat_target) <low_new_fork, low_forget_process,
6653 low_prepare_to_resume, low_new_thread, low_delete_thread>:
6654 Override methods.
6655
6656 2018-05-02 Pedro Alves <palves@redhat.com>
6657
6658 * target.h (target_ops)
6659 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
6660 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
6661 stopped_by_watchpoint, have_continuable_watchpoint,
6662 stopped_data_address, watchpoint_addr_within_range,
6663 can_accel_watchpoint_condition, can_run, thread_alive,
6664 has_all_memory, has_memory, has_stack, has_registers,
6665 has_execution, can_async_p, is_async_p, supports_non_stop,
6666 always_non_stop_p, can_execute_reverse, supports_multi_process,
6667 supports_enable_disable_tracepoint,
6668 supports_disable_randomization, supports_string_tracing,
6669 supports_evaluation_of_breakpoint_conditions,
6670 can_run_breakpoint_commands, filesystem_is_local,
6671 can_download_tracepoint, get_trace_state_variable_value,
6672 set_trace_notes, get_tib_address, use_agent, can_use_agent,
6673 record_is_replaying, record_will_replay,
6674 augmented_libraries_svr4_read>: Adjust to return bool.
6675 * aarch64-linux-nat.c: All implementations adjusted.
6676 * aix-thread.c: All implementations adjusted.
6677 * arm-linux-nat.c: All implementations adjusted.
6678 * breakpoint.c: All implementations adjusted.
6679 * bsd-kvm.c: All implementations adjusted.
6680 * bsd-uthread.c: All implementations adjusted.
6681 * corelow.c: All implementations adjusted.
6682 * ctf.c: All implementations adjusted.
6683 * darwin-nat.c: All implementations adjusted.
6684 * darwin-nat.h: All implementations adjusted.
6685 * exec.c: All implementations adjusted.
6686 * fbsd-nat.c: All implementations adjusted.
6687 * fbsd-nat.h: All implementations adjusted.
6688 * gnu-nat.c: All implementations adjusted.
6689 * gnu-nat.h: All implementations adjusted.
6690 * go32-nat.c: All implementations adjusted.
6691 * ia64-linux-nat.c: All implementations adjusted.
6692 * inf-child.c: All implementations adjusted.
6693 * inf-child.h: All implementations adjusted.
6694 * inf-ptrace.c: All implementations adjusted.
6695 * inf-ptrace.h: All implementations adjusted.
6696 * linux-nat.c: All implementations adjusted.
6697 * linux-nat.h: All implementations adjusted.
6698 * mips-linux-nat.c: All implementations adjusted.
6699 * nto-procfs.c: All implementations adjusted.
6700 * ppc-linux-nat.c: All implementations adjusted.
6701 * procfs.c: All implementations adjusted.
6702 * ravenscar-thread.c: All implementations adjusted.
6703 * record-btrace.c: All implementations adjusted.
6704 * record-full.c: All implementations adjusted.
6705 * remote-sim.c: All implementations adjusted.
6706 * remote.c: All implementations adjusted.
6707 * s390-linux-nat.c: All implementations adjusted.
6708 * sol-thread.c: All implementations adjusted.
6709 * spu-multiarch.c: All implementations adjusted.
6710 * target-delegates.c: All implementations adjusted.
6711 * target.c: All implementations adjusted.
6712 * target.h: All implementations adjusted.
6713 * tracefile-tfile.c: All implementations adjusted.
6714 * tracefile.c: All implementations adjusted.
6715 * tracefile.h: All implementations adjusted.
6716 * windows-nat.c: All implementations adjusted.
6717 * x86-linux-nat.h: All implementations adjusted.
6718 * x86-nat.h: All implementations adjusted.
6719
6720 2018-05-02 Pedro Alves <palves@redhat.com>
6721
6722 * make-target-delegates (scan_target_h): Don't trim lines here.
6723 Replace sequences of tabs and/or whitespace with a single
6724 whitespace.
6725 (top level, parsing methods): Trim each line before processing it
6726 here.
6727
6728 2018-05-02 Pedro Alves <palves@redhat.com>
6729 John Baldwin <jhb@freebsd.org>
6730
6731 * target.h (enum strata) <debug_stratum>: New.
6732 (struct target_ops) <all delegation methods>: Replace by C++
6733 virtual methods, and drop "to_" prefix. All references updated
6734 throughout.
6735 <to_shortname, to_longname, to_doc, to_data,
6736 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
6737 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
6738 virtual methods. All references updated throughout.
6739 <can_attach, supports_terminal_ours, can_create_inferior,
6740 get_thread_control_capabilities, attach_no_wait>: New
6741 virtual methods.
6742 <insert_breakpoint, remove_breakpoint>: Now
6743 TARGET_DEFAULT_NORETURN methods.
6744 <info_proc>: Now returns bool.
6745 <to_magic>: Delete.
6746 (OPS_MAGIC): Delete.
6747 (current_target): Delete. All references replaced by references
6748 to ...
6749 (target_stack): ... this. New.
6750 (target_shortname, target_longname): Adjust.
6751 (target_can_run): Now a function declaration.
6752 (default_child_has_all_memory, default_child_has_memory)
6753 (default_child_has_stack, default_child_has_registers)
6754 (default_child_has_execution): Remove target_ops parameter.
6755 (complete_target_initialization): Delete.
6756 (memory_breakpoint_target): New template class.
6757 (test_target_ops): Refactor as a C++ class with virtual methods.
6758 * make-target-delegates (NAME_PART): Tighten.
6759 (POINTER_PART, CP_SYMBOL): New.
6760 (SIMPLE_RETURN_PART): Reimplement.
6761 (VEC_RETURN_PART): Expect less.
6762 (RETURN_PART, VIRTUAL_PART): New.
6763 (METHOD): Adjust to C++ virtual methods.
6764 (scan_target_h): Remove reference to C99.
6765 (dname): Output "target_ops::" prefix.
6766 (write_function_header): Adjust to output a C++ class method.
6767 (write_declaration): New.
6768 (write_delegator): Adjust to output a C++ class method.
6769 (tdname): Output "dummy_target::" prefix.
6770 (write_tdefault, write_debugmethod): Adjust to output a C++ class
6771 method.
6772 (tdefault_names, debug_names): Delete.
6773 (return_types, tdefaults, styles, argtypes_array): New.
6774 (top level): All methods are delegators.
6775 (print_class): New.
6776 (top level): Print dummy_target and debug_target classes.
6777 * target-delegates.c: Regenerate.
6778 * target-debug.h (target_debug_print_enum_info_proc_what)
6779 (target_debug_print_thread_control_capabilities)
6780 (target_debug_print_thread_info_p): New.
6781 * target.c (dummy_target): Delete.
6782 (the_dummy_target, the_debug_target): New.
6783 (target_stack): Now extern.
6784 (set_targetdebug): Push/unpush debug target.
6785 (default_child_has_all_memory, default_child_has_memory)
6786 (default_child_has_stack, default_child_has_registers)
6787 (default_child_has_execution): Remove target_ops parameter.
6788 (complete_target_initialization): Delete.
6789 (add_target_with_completer): No longer call
6790 complete_target_initialization.
6791 (target_supports_terminal_ours): Use regular delegation.
6792 (update_current_target): Delete.
6793 (push_target): No longer check magic number. Don't call
6794 update_current_target.
6795 (unpush_target): Don't call update_current_target.
6796 (target_is_pushed): No longer check magic number.
6797 (target_require_runnable): Skip for all stratums over
6798 process_stratum.
6799 (target_ops::info_proc): New.
6800 (target_info_proc): Use find_target_at and
6801 find_default_run_target.
6802 (target_supports_disable_randomization): Use regular delegation.
6803 (target_get_osdata): Use find_target_at.
6804 (target_ops::open, target_ops::close, target_ops::can_attach)
6805 (target_ops::attach, target_ops::can_create_inferior)
6806 (target_ops::create_inferior, target_ops::can_run)
6807 (target_can_run): New.
6808 (default_fileio_target): Use regular delegation.
6809 (target_ops::fileio_open, target_ops::fileio_pwrite)
6810 (target_ops::fileio_pread, target_ops::fileio_fstat)
6811 (target_ops::fileio_close, target_ops::fileio_unlink)
6812 (target_ops::fileio_readlink): New.
6813 (target_fileio_open_1, target_fileio_unlink)
6814 (target_fileio_readlink): Always call the target method. Handle
6815 FILEIO_ENOSYS.
6816 (return_zero, return_zero_has_execution): Delete.
6817 (init_dummy_target): Delete.
6818 (dummy_target::dummy_target, dummy_target::shortname)
6819 (dummy_target::longname, dummy_target::doc)
6820 (debug_target::debug_target, debug_target::shortname)
6821 (debug_target::longname, debug_target::doc): New.
6822 (target_supports_delete_record): Use regular delegation.
6823 (setup_target_debug): Delete.
6824 (maintenance_print_target_stack): Skip debug_stratum.
6825 (initialize_targets): Instantiate the_dummy_target and
6826 the_debug_target.
6827 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
6828 use target_stack.
6829 (target_auxv_search, fprint_target_auxv): Adjust.
6830 (info_auxv_command): Adjust to use target_stack.
6831 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
6832 * exceptions.c (print_flush): Handle a NULL target_stack.
6833 * regcache.c (target_ops_no_register): Refactor as class with
6834 virtual methods.
6835
6836 * exec.c (exec_target): New class.
6837 (exec_ops): Now an exec_target.
6838 (exec_open, exec_close_1, exec_get_section_table)
6839 (exec_xfer_partial, exec_files_info, exec_has_memory)
6840 (exec_make_note_section): Refactor as exec_target methods.
6841 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
6842 Delete.
6843 (exec_target::find_memory_regions): New.
6844 (_initialize_exec): Don't call init_exec_ops.
6845 * gdbcore.h (exec_file_clear): Delete.
6846
6847 * corefile.c (core_target): Delete.
6848 (core_file_command): Adjust.
6849 * corelow.c (core_target): New class.
6850 (the_core_target): New.
6851 (core_close): Remove target_ops parameter.
6852 (core_close_cleanup): Adjust.
6853 (core_target::close): New.
6854 (core_open, core_detach, get_core_registers, core_files_info)
6855 (core_xfer_partial, core_thread_alive, core_read_description)
6856 (core_pid_to_str, core_thread_name, core_has_memory)
6857 (core_has_stack, core_has_registers, core_info_proc): Rework as
6858 core_target methods.
6859 (ignore, core_remove_breakpoint, init_core_ops): Delete.
6860 (_initialize_corelow): Initialize the_core_target.
6861 * gdbcore.h (core_target): Delete.
6862 (the_core_target): New.
6863
6864 * ctf.c: (ctf_target): New class.
6865 (ctf_ops): Now a ctf_target.
6866 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
6867 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
6868 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
6869 methods.
6870 (init_ctf_ops): Delete.
6871 (_initialize_ctf): Don't call it.
6872 * tracefile-tfile.c (tfile_target): New class.
6873 (tfile_ops): Now a tfile_target.
6874 (tfile_open, tfile_close, tfile_files_info)
6875 (tfile_get_tracepoint_status, tfile_trace_find)
6876 (tfile_fetch_registers, tfile_xfer_partial)
6877 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
6878 Refactor as tfile_target methods.
6879 (tfile_xfer_partial_features): Remove target_ops parameter.
6880 (init_tfile_ops): Delete.
6881 (_initialize_tracefile_tfile): Don't call it.
6882 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
6883 (tracefile_has_stack, tracefile_has_registers)
6884 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
6885 tracefile_target methods.
6886 (init_tracefile_ops): Delete.
6887 (tracefile_target::tracefile_target): New.
6888 * tracefile.h: Include "target.h".
6889 (tracefile_target): New class.
6890 (init_tracefile_ops): Delete.
6891
6892 * spu-multiarch.c (spu_multiarch_target): New class.
6893 (spu_ops): Now a spu_multiarch_target.
6894 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
6895 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
6896 (spu_search_memory, spu_mourn_inferior): Refactor as
6897 spu_multiarch_target methods.
6898 (init_spu_ops): Delete.
6899 (_initialize_spu_multiarch): Remove references to init_spu_ops,
6900 complete_target_initialization.
6901
6902 * ravenscar-thread.c (ravenscar_thread_target): New class.
6903 (ravenscar_ops): Now a ravenscar_thread_target.
6904 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
6905 (ravenscar_thread_alive, ravenscar_pid_to_str)
6906 (ravenscar_fetch_registers, ravenscar_store_registers)
6907 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
6908 (ravenscar_stopped_by_hw_breakpoint)
6909 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
6910 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
6911 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
6912 methods.
6913 (init_ravenscar_thread_ops): Delete.
6914 (_initialize_ravenscar): Remove references to
6915 init_ravenscar_thread_ops and complete_target_initialization.
6916
6917 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
6918 (bsd_uthread_target): New class.
6919 (bsd_uthread_ops): Now a bsd_uthread_target.
6920 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
6921 (bsd_uthread_close, bsd_uthread_mourn_inferior)
6922 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
6923 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
6924 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
6925 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
6926 (bsd_uthread_target): Delete function.
6927 (_initialize_bsd_uthread): Remove reference to
6928 complete_target_initialization.
6929
6930 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
6931 (target_bfd): ... this new class.
6932 (target_bfd_xfer_partial, target_bfd_get_section_table)
6933 (target_bfd_close): Refactor as target_bfd methods.
6934 (target_bfd::~target_bfd): New.
6935 (target_bfd_reopen): Adjust.
6936 (target_bfd::close): New.
6937
6938 * record-btrace.c (record_btrace_target): New class.
6939 (record_btrace_ops): Now a record_btrace_target.
6940 (record_btrace_open, record_btrace_stop_recording)
6941 (record_btrace_disconnect, record_btrace_close)
6942 (record_btrace_async, record_btrace_info)
6943 (record_btrace_insn_history, record_btrace_insn_history_range)
6944 (record_btrace_insn_history_from, record_btrace_call_history)
6945 (record_btrace_call_history_range)
6946 (record_btrace_call_history_from, record_btrace_record_method)
6947 (record_btrace_is_replaying, record_btrace_will_replay)
6948 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
6949 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
6950 (record_btrace_store_registers, record_btrace_prepare_to_store)
6951 (record_btrace_to_get_unwinder)
6952 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
6953 (record_btrace_commit_resume, record_btrace_wait)
6954 (record_btrace_stop, record_btrace_can_execute_reverse)
6955 (record_btrace_stopped_by_sw_breakpoint)
6956 (record_btrace_supports_stopped_by_sw_breakpoint)
6957 (record_btrace_stopped_by_hw_breakpoint)
6958 (record_btrace_supports_stopped_by_hw_breakpoint)
6959 (record_btrace_update_thread_list, record_btrace_thread_alive)
6960 (record_btrace_goto_begin, record_btrace_goto_end)
6961 (record_btrace_goto, record_btrace_stop_replaying_all)
6962 (record_btrace_execution_direction)
6963 (record_btrace_prepare_to_generate_core)
6964 (record_btrace_done_generating_core): Refactor as
6965 record_btrace_target methods.
6966 (init_record_btrace_ops): Delete.
6967 (_initialize_record_btrace): Remove reference to
6968 init_record_btrace_ops.
6969 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
6970 the execution_direction global.
6971 (record_full_base_target, record_full_target)
6972 (record_full_core_target): New classes.
6973 (record_full_ops): Now a record_full_target.
6974 (record_full_core_ops): Now a record_full_core_target.
6975 (record_full_target::detach, record_full_target::disconnect)
6976 (record_full_core_target::disconnect)
6977 (record_full_target::mourn_inferior, record_full_target::kill):
6978 New.
6979 (record_full_open, record_full_close, record_full_async): Refactor
6980 as methods of the record_full_base_target class.
6981 (record_full_resume, record_full_commit_resume): Refactor
6982 as methods of the record_full_target class.
6983 (record_full_wait, record_full_stopped_by_watchpoint)
6984 (record_full_stopped_data_address)
6985 (record_full_stopped_by_sw_breakpoint)
6986 (record_full_supports_stopped_by_sw_breakpoint)
6987 (record_full_stopped_by_hw_breakpoint)
6988 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
6989 methods of the record_full_base_target class.
6990 (record_full_store_registers, record_full_xfer_partial)
6991 (record_full_insert_breakpoint, record_full_remove_breakpoint):
6992 Refactor as methods of the record_full_target class.
6993 (record_full_can_execute_reverse, record_full_get_bookmark)
6994 (record_full_goto_bookmark, record_full_execution_direction)
6995 (record_full_record_method, record_full_info, record_full_delete)
6996 (record_full_is_replaying, record_full_will_replay)
6997 (record_full_goto_begin, record_full_goto_end, record_full_goto)
6998 (record_full_stop_replaying): Refactor as methods of the
6999 record_full_base_target class.
7000 (record_full_core_resume, record_full_core_kill)
7001 (record_full_core_fetch_registers)
7002 (record_full_core_prepare_to_store)
7003 (record_full_core_store_registers, record_full_core_xfer_partial)
7004 (record_full_core_insert_breakpoint)
7005 (record_full_core_remove_breakpoint)
7006 (record_full_core_has_execution): Refactor
7007 as methods of the record_full_core_target class.
7008 (record_full_base_target::supports_delete_record): New.
7009 (init_record_full_ops): Delete.
7010 (init_record_full_core_ops): Delete.
7011 (record_full_save): Refactor as method of the
7012 record_full_base_target class.
7013 (_initialize_record_full): Remove references to
7014 init_record_full_ops and init_record_full_core_ops.
7015
7016 * remote.c (remote_target, extended_remote_target): New classes.
7017 (remote_ops): Now a remote_target.
7018 (extended_remote_ops): Now an extended_remote_target.
7019 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
7020 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
7021 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
7022 (remote_pass_signals, remote_set_syscall_catchpoint)
7023 (remote_program_signals, )
7024 (remote_thread_always_alive): Remove target_ops parameter.
7025 (remote_thread_alive, remote_thread_name)
7026 (remote_update_thread_list, remote_threads_extra_info)
7027 (remote_static_tracepoint_marker_at)
7028 (remote_static_tracepoint_markers_by_strid)
7029 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
7030 (remote_open): Refactor as methods of remote_target.
7031 (extended_remote_open, extended_remote_detach)
7032 (extended_remote_attach, extended_remote_post_attach):
7033 (extended_remote_supports_disable_randomization)
7034 (extended_remote_create_inferior): : Refactor as method of
7035 extended_remote_target.
7036 (remote_set_permissions, remote_open_1, remote_detach)
7037 (remote_follow_fork, remote_follow_exec, remote_disconnect)
7038 (remote_resume, remote_commit_resume, remote_stop)
7039 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
7040 (remote_terminal_ours, remote_wait, remote_fetch_registers)
7041 (remote_prepare_to_store, remote_store_registers)
7042 (remote_flash_erase, remote_flash_done, remote_files_info)
7043 (remote_kill, remote_mourn, remote_insert_breakpoint)
7044 (remote_remove_breakpoint, remote_insert_watchpoint)
7045 (remote_watchpoint_addr_within_range)
7046 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
7047 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
7048 (remote_supports_stopped_by_sw_breakpoint)
7049 (remote_stopped_by_hw_breakpoint)
7050 (remote_supports_stopped_by_hw_breakpoint)
7051 (remote_stopped_by_watchpoint, remote_stopped_data_address)
7052 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
7053 (remote_verify_memory): Refactor as methods of remote_target.
7054 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
7055 parameter.
7056 (remote_xfer_partial, remote_get_memory_xfer_limit)
7057 (remote_search_memory, remote_rcmd, remote_memory_map)
7058 (remote_pid_to_str, remote_get_thread_local_address)
7059 (remote_get_tib_address, remote_read_description): Refactor as
7060 methods of remote_target.
7061 (remote_target::fileio_open, remote_target::fileio_pwrite)
7062 (remote_target::fileio_pread, remote_target::fileio_close): New.
7063 (remote_hostio_readlink, remote_hostio_fstat)
7064 (remote_filesystem_is_local, remote_can_execute_reverse)
7065 (remote_supports_non_stop, remote_supports_disable_randomization)
7066 (remote_supports_multi_process, remote_supports_cond_breakpoints)
7067 (remote_supports_enable_disable_tracepoint)
7068 (remote_supports_string_tracing)
7069 (remote_can_run_breakpoint_commands, remote_trace_init)
7070 (remote_download_tracepoint, remote_can_download_tracepoint)
7071 (remote_download_trace_state_variable, remote_enable_tracepoint)
7072 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
7073 (remote_trace_start, remote_get_trace_status)
7074 (remote_get_tracepoint_status, remote_trace_stop)
7075 (remote_trace_find, remote_get_trace_state_variable_value)
7076 (remote_save_trace_data, remote_get_raw_trace_data)
7077 (remote_set_disconnected_tracing, remote_core_of_thread)
7078 (remote_set_circular_trace_buffer, remote_traceframe_info)
7079 (remote_get_min_fast_tracepoint_insn_len)
7080 (remote_set_trace_buffer_size, remote_set_trace_notes)
7081 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
7082 (remote_disable_btrace, remote_teardown_btrace)
7083 (remote_read_btrace, remote_btrace_conf)
7084 (remote_augmented_libraries_svr4_read, remote_load)
7085 (remote_pid_to_exec_file, remote_can_do_single_step)
7086 (remote_execution_direction, remote_thread_handle_to_thread_info):
7087 Refactor as methods of remote_target.
7088 (init_remote_ops, init_extended_remote_ops): Delete.
7089 (remote_can_async_p, remote_is_async_p, remote_async)
7090 (remote_thread_events, remote_upload_tracepoints)
7091 (remote_upload_trace_state_variables): Refactor as methods of
7092 remote_target.
7093 (_initialize_remote): Remove references to init_remote_ops and
7094 init_extended_remote_ops.
7095
7096 * remote-sim.c (gdbsim_target): New class.
7097 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
7098 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
7099 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
7100 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
7101 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
7102 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
7103 Refactor as methods of gdbsim_target.
7104 (gdbsim_ops): Now a gdbsim_target.
7105 (init_gdbsim_ops): Delete.
7106 (gdbsim_cntrl_c): Adjust.
7107 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
7108
7109 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
7110 (the_amd64_linux_nat_target): New.
7111 (amd64_linux_fetch_inferior_registers)
7112 (amd64_linux_store_inferior_registers): Refactor as methods of
7113 amd64_linux_nat_target.
7114 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
7115 * i386-linux-nat.c: Don't include "linux-nat.h".
7116 (i386_linux_nat_target): New class.
7117 (the_i386_linux_nat_target): New.
7118 (i386_linux_fetch_inferior_registers)
7119 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
7120 as methods of i386_linux_nat_target.
7121 (_initialize_i386_linux_nat): Adjust. Set linux_target.
7122 * inf-child.c (inf_child_ops): Delete.
7123 (inf_child_fetch_inferior_registers)
7124 (inf_child_store_inferior_registers): Delete.
7125 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
7126 methods of inf_child_target.
7127 (inf_child_target::supports_terminal_ours)
7128 (inf_child_target::terminal_init)
7129 (inf_child_target::terminal_inferior)
7130 (inf_child_target::terminal_ours_for_output)
7131 (inf_child_target::terminal_ours, inf_child_target::interrupt)
7132 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
7133 New.
7134 (inf_child_open, inf_child_disconnect, inf_child_close)
7135 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
7136 (inf_child_post_startup_inferior, inf_child_can_run)
7137 (inf_child_pid_to_exec_file): Refactor as methods of
7138 inf_child_target.
7139 (inf_child_follow_fork): Delete.
7140 (inf_child_target::can_create_inferior)
7141 (inf_child_target::can_attach): New.
7142 (inf_child_target::has_all_memory, inf_child_target::has_memory)
7143 (inf_child_target::has_stack, inf_child_target::has_registers)
7144 (inf_child_target::has_execution): New.
7145 (inf_child_fileio_open, inf_child_fileio_pwrite)
7146 (inf_child_fileio_pread, inf_child_fileio_fstat)
7147 (inf_child_fileio_close, inf_child_fileio_unlink)
7148 (inf_child_fileio_readlink, inf_child_use_agent)
7149 (inf_child_can_use_agent): Refactor as methods of
7150 inf_child_target.
7151 (return_zero, inf_child_target): Delete.
7152 (inf_child_target::inf_child_target): New.
7153 * inf-child.h: Include "target.h".
7154 (inf_child_target): Delete function prototype.
7155 (inf_child_target): New class.
7156 (inf_child_open_target, inf_child_mourn_inferior)
7157 (inf_child_maybe_unpush_target): Delete.
7158 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
7159 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
7160 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
7161 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
7162 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
7163 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
7164 (inf_ptrace_wait, inf_ptrace_xfer_partial)
7165 (inf_ptrace_thread_alive, inf_ptrace_files_info)
7166 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
7167 methods of inf_ptrace_target.
7168 (inf_ptrace_target): Delete function.
7169 * inf-ptrace.h: Include "inf-child.h".
7170 (inf_ptrace_target): Delete function declaration.
7171 (inf_ptrace_target): New class.
7172 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
7173 * linux-nat.c (linux_target): New.
7174 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
7175 (linux_nat_target::~linux_nat_target): New.
7176 (linux_child_post_attach, linux_child_post_startup_inferior)
7177 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
7178 (linux_child_remove_fork_catchpoint)
7179 (linux_child_insert_vfork_catchpoint)
7180 (linux_child_remove_vfork_catchpoint)
7181 (linux_child_insert_exec_catchpoint)
7182 (linux_child_remove_exec_catchpoint)
7183 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
7184 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
7185 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
7186 (linux_nat_stopped_data_address)
7187 (linux_nat_stopped_by_sw_breakpoint)
7188 (linux_nat_supports_stopped_by_sw_breakpoint)
7189 (linux_nat_stopped_by_hw_breakpoint)
7190 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
7191 (linux_nat_kill, linux_nat_mourn_inferior)
7192 (linux_nat_xfer_partial, linux_nat_thread_alive)
7193 (linux_nat_update_thread_list, linux_nat_pid_to_str)
7194 (linux_nat_thread_name, linux_child_pid_to_exec_file)
7195 (linux_child_static_tracepoint_markers_by_strid)
7196 (linux_nat_is_async_p, linux_nat_can_async_p)
7197 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
7198 (linux_nat_supports_multi_process)
7199 (linux_nat_supports_disable_randomization, linux_nat_async)
7200 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
7201 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
7202 (linux_nat_fileio_open, linux_nat_fileio_readlink)
7203 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
7204 methods of linux_nat_target.
7205 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
7206 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
7207 parameter.
7208 (check_stopped_by_watchpoint): Adjust.
7209 (linux_xfer_partial): Delete.
7210 (linux_target_install_ops, linux_target, linux_nat_add_target):
7211 Delete.
7212 (linux_nat_target::linux_nat_target): New.
7213 * linux-nat.h: Include "inf-ptrace.h".
7214 (linux_nat_target): New.
7215 (linux_target, linux_target_install_ops, linux_nat_add_target):
7216 Delete function declarations.
7217 (linux_target): Declare global.
7218 * linux-thread-db.c (thread_db_target): New.
7219 (thread_db_target::thread_db_target): New.
7220 (thread_db_ops): Delete.
7221 (the_thread_db_target): New.
7222 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
7223 (thread_db_update_thread_list, thread_db_pid_to_str)
7224 (thread_db_extra_thread_info)
7225 (thread_db_thread_handle_to_thread_info)
7226 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
7227 (thread_db_resume): Refactor as methods of thread_db_target.
7228 (init_thread_db_ops): Delete.
7229 (_initialize_thread_db): Remove reference to init_thread_db_ops.
7230 * x86-linux-nat.c: Don't include "linux-nat.h".
7231 (super_post_startup_inferior): Delete.
7232 (x86_linux_nat_target::~x86_linux_nat_target): New.
7233 (x86_linux_child_post_startup_inferior)
7234 (x86_linux_read_description, x86_linux_enable_btrace)
7235 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
7236 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
7237 methods of x86_linux_nat_target.
7238 (x86_linux_create_target): Delete. Bits folded ...
7239 (x86_linux_add_target): ... here. Now takes a linux_nat_target
7240 pointer.
7241 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
7242 (x86_linux_nat_target): New class.
7243 (x86_linux_create_target): Delete.
7244 (x86_linux_add_target): Now takes a linux_nat_target pointer.
7245 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
7246 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
7247 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
7248 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
7249 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
7250 make extern.
7251 (x86_use_watchpoints): Delete.
7252 * x86-nat.h: Include "breakpoint.h" and "target.h".
7253 (x86_use_watchpoints): Delete.
7254 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
7255 (x86_stopped_by_watchpoint, x86_stopped_data_address)
7256 (x86_insert_watchpoint, x86_remove_watchpoint)
7257 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
7258 (x86_stopped_by_hw_breakpoint): New declarations.
7259 (x86_nat_target): New template class.
7260
7261 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
7262 (the_ppc_linux_nat_target): New.
7263 (ppc_linux_fetch_inferior_registers)
7264 (ppc_linux_can_use_hw_breakpoint)
7265 (ppc_linux_region_ok_for_hw_watchpoint)
7266 (ppc_linux_ranged_break_num_registers)
7267 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
7268 (ppc_linux_insert_mask_watchpoint)
7269 (ppc_linux_remove_mask_watchpoint)
7270 (ppc_linux_can_accel_watchpoint_condition)
7271 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
7272 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
7273 (ppc_linux_watchpoint_addr_within_range)
7274 (ppc_linux_masked_watch_num_registers)
7275 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
7276 (ppc_linux_read_description): Refactor as methods of
7277 ppc_linux_nat_target.
7278 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
7279
7280 * procfs.c (procfs_xfer_partial): Delete forward declaration.
7281 (procfs_target): New class.
7282 (the_procfs_target): New.
7283 (procfs_target): Delete function.
7284 (procfs_auxv_parse, procfs_attach, procfs_detach)
7285 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
7286 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
7287 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
7288 (procfs_create_inferior, procfs_update_thread_list)
7289 (procfs_thread_alive, procfs_pid_to_str)
7290 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
7291 (procfs_stopped_data_address, procfs_insert_watchpoint)
7292 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
7293 (proc_find_memory_regions, procfs_info_proc)
7294 (procfs_make_note_section): Refactor as methods of procfs_target.
7295 (_initialize_procfs): Adjust.
7296 * sol-thread.c (sol_thread_target): New class.
7297 (sol_thread_ops): Now a sol_thread_target.
7298 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
7299 (sol_thread_fetch_registers, sol_thread_store_registers)
7300 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
7301 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
7302 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
7303 (init_sol_thread_ops): Delete.
7304 (_initialize_sol_thread): Adjust. Remove references to
7305 init_sol_thread_ops and complete_target_initialization.
7306
7307 * windows-nat.c (windows_nat_target): New class.
7308 (windows_fetch_inferior_registers)
7309 (windows_store_inferior_registers, windows_resume, windows_wait)
7310 (windows_attach, windows_detach, windows_pid_to_exec_file)
7311 (windows_files_info, windows_create_inferior)
7312 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
7313 (windows_close, windows_pid_to_str, windows_xfer_partial)
7314 (windows_get_tib_address, windows_get_ada_task_ptid)
7315 (windows_thread_name, windows_thread_alive): Refactor as
7316 windows_nat_target methods.
7317 (do_initial_windows_stuff): Adjust.
7318 (windows_target): Delete function.
7319 (_initialize_windows_nat): Adjust.
7320
7321 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
7322 (darwin_mourn_inferior, darwin_kill_inferior)
7323 (darwin_create_inferior, darwin_attach, darwin_detach)
7324 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
7325 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
7326 (darwin_supports_multi_process): Refactor as darwin_nat_target
7327 methods.
7328 (darwin_resume_to, darwin_files_info): Delete.
7329 (_initialize_darwin_inferior): Rename to ...
7330 (_initialize_darwin_nat): ... this. Adjust to C++ification.
7331 * darwin-nat.h: Include "inf-child.h".
7332 (darwin_nat_target): New class.
7333 (darwin_complete_target): Delete.
7334 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
7335 (darwin_target): New.
7336 (i386_darwin_fetch_inferior_registers)
7337 (i386_darwin_store_inferior_registers): Refactor as methods of
7338 darwin_nat_target.
7339 (darwin_complete_target): Delete, with ...
7340 (_initialize_i386_darwin_nat): ... bits factored out here.
7341
7342 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
7343 (the_alpha_linux_nat_target): New.
7344 (alpha_linux_register_u_offset): Refactor as
7345 alpha_linux_nat_target method.
7346 (_initialize_alpha_linux_nat): Adjust.
7347 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
7348 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
7349 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
7350 methods of linux_nat_trad_target.
7351 (linux_trad_target): Delete.
7352 * linux-nat-trad.h (linux_trad_target): Delete function.
7353 (linux_nat_trad_target): New class.
7354 * mips-linux-nat.c (mips_linux_nat_target): New class.
7355 (super_fetch_registers, super_store_registers, super_close):
7356 Delete.
7357 (the_mips_linux_nat_target): New.
7358 (mips64_linux_regsets_fetch_registers)
7359 (mips64_linux_regsets_store_registers)
7360 (mips64_linux_fetch_registers, mips64_linux_store_registers)
7361 (mips_linux_register_u_offset, mips_linux_read_description)
7362 (mips_linux_can_use_hw_breakpoint)
7363 (mips_linux_stopped_by_watchpoint)
7364 (mips_linux_stopped_data_address)
7365 (mips_linux_region_ok_for_hw_watchpoint)
7366 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
7367 (mips_linux_close): Refactor as methods of mips_linux_nat.
7368 (_initialize_mips_linux_nat): Adjust to C++ification.
7369
7370 * aix-thread.c (aix_thread_target): New class.
7371 (aix_thread_ops): Now an aix_thread_target.
7372 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
7373 (aix_thread_fetch_registers, aix_thread_store_registers)
7374 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
7375 (aix_thread_thread_alive, aix_thread_pid_to_str)
7376 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
7377 Refactor as methods of aix_thread_target.
7378 (init_aix_thread_ops): Delete.
7379 (_initialize_aix_thread): Remove references to init_aix_thread_ops
7380 and complete_target_initialization.
7381 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
7382 (rs6000_nat_target): New class.
7383 (the_rs6000_nat_target): New.
7384 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
7385 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
7386 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
7387 (super_create_inferior): Delete.
7388 (_initialize_rs6000_nat): Adjust to C++ification.
7389
7390 * arm-linux-nat.c (arm_linux_nat_target): New class.
7391 (the_arm_linux_nat_target): New.
7392 (arm_linux_fetch_inferior_registers)
7393 (arm_linux_store_inferior_registers, arm_linux_read_description)
7394 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
7395 (arm_linux_remove_hw_breakpoint)
7396 (arm_linux_region_ok_for_hw_watchpoint)
7397 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
7398 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
7399 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
7400 arm_linux_nat_target.
7401 (_initialize_arm_linux_nat): Adjust to C++ification.
7402
7403 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
7404 (the_aarch64_linux_nat_target): New.
7405 (aarch64_linux_fetch_inferior_registers)
7406 (aarch64_linux_store_inferior_registers)
7407 (aarch64_linux_child_post_startup_inferior)
7408 (aarch64_linux_read_description)
7409 (aarch64_linux_can_use_hw_breakpoint)
7410 (aarch64_linux_insert_hw_breakpoint)
7411 (aarch64_linux_remove_hw_breakpoint)
7412 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
7413 (aarch64_linux_region_ok_for_hw_watchpoint)
7414 (aarch64_linux_stopped_data_address)
7415 (aarch64_linux_stopped_by_watchpoint)
7416 (aarch64_linux_watchpoint_addr_within_range)
7417 (aarch64_linux_can_do_single_step): Refactor as methods of
7418 aarch64_linux_nat_target.
7419 (super_post_startup_inferior): Delete.
7420 (_initialize_aarch64_linux_nat): Adjust to C++ification.
7421
7422 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
7423 (the_hppa_linux_nat_target): New.
7424 (hppa_linux_fetch_inferior_registers)
7425 (hppa_linux_store_inferior_registers): Refactor as methods of
7426 hppa_linux_nat_target.
7427 (_initialize_hppa_linux_nat): Adjust to C++ification.
7428
7429 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
7430 (the_ia64_linux_nat_target): New.
7431 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
7432 (ia64_linux_stopped_data_address)
7433 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
7434 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
7435 ia64_linux_nat_target methods.
7436 (super_xfer_partial): Delete.
7437 (_initialize_ia64_linux_nat): Adjust to C++ification.
7438
7439 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
7440 (the_m32r_linux_nat_target): New.
7441 (m32r_linux_fetch_inferior_registers)
7442 (m32r_linux_store_inferior_registers): Refactor as
7443 m32r_linux_nat_target methods.
7444 (_initialize_m32r_linux_nat): Adjust to C++ification.
7445
7446 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
7447 (the_m68k_linux_nat_target): New.
7448 (m68k_linux_fetch_inferior_registers)
7449 (m68k_linux_store_inferior_registers): Refactor as
7450 m68k_linux_nat_target methods.
7451 (_initialize_m68k_linux_nat): Adjust to C++ification.
7452
7453 * s390-linux-nat.c (s390_linux_nat_target): New class.
7454 (the_s390_linux_nat_target): New.
7455 (s390_linux_fetch_inferior_registers)
7456 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
7457 (s390_insert_watchpoint, s390_remove_watchpoint)
7458 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
7459 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
7460 (s390_auxv_parse, s390_read_description): Refactor as methods of
7461 s390_linux_nat_target.
7462 (_initialize_s390_nat): Adjust to C++ification.
7463
7464 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
7465 (the_sparc_linux_nat_target): New.
7466 (_initialize_sparc_linux_nat): Adjust to C++ification.
7467 * sparc-nat.c (sparc_fetch_inferior_registers)
7468 (sparc_store_inferior_registers): Remove target_ops parameter.
7469 * sparc-nat.h (sparc_fetch_inferior_registers)
7470 (sparc_store_inferior_registers): Remove target_ops parameter.
7471 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
7472 (the_sparc64_linux_nat_target): New.
7473 (_initialize_sparc64_linux_nat): Adjust to C++ification.
7474
7475 * spu-linux-nat.c (spu_linux_nat_target): New class.
7476 (the_spu_linux_nat_target): New.
7477 (spu_child_post_startup_inferior, spu_child_post_attach)
7478 (spu_child_wait, spu_fetch_inferior_registers)
7479 (spu_store_inferior_registers, spu_xfer_partial)
7480 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
7481 methods.
7482 (_initialize_spu_nat): Adjust to C++ification.
7483
7484 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
7485 (the_tilegx_linux_nat_target): New.
7486 (fetch_inferior_registers, store_inferior_registers):
7487 Refactor as methods.
7488 (_initialize_tile_linux_nat): Adjust to C++ification.
7489
7490 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
7491 (the_xtensa_linux_nat_target): New.
7492 (xtensa_linux_fetch_inferior_registers)
7493 (xtensa_linux_store_inferior_registers): Refactor as
7494 xtensa_linux_nat_target methods.
7495 (_initialize_xtensa_linux_nat): Adjust to C++ification.
7496
7497 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
7498 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
7499 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
7500 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
7501 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
7502 (fbsd_stopped_by_sw_breakpoint)
7503 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
7504 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
7505 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
7506 (fbsd_post_startup_inferior, fbsd_post_attach)
7507 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
7508 (fbsd_set_syscall_catchpoint)
7509 (super_xfer_partial, super_resume, super_wait)
7510 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
7511 (fbsd_handle_debug_trap): Remove target_ops parameter.
7512 (fbsd_nat_add_target): Delete.
7513 * fbsd-nat.h: Include "inf-ptrace.h".
7514 (fbsd_nat_add_target): Delete.
7515 (USE_SIGTRAP_SIGINFO): Define.
7516 (fbsd_nat_target): New class.
7517
7518 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
7519 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
7520 (amd64bsd_target): Delete.
7521 * amd64-bsd-nat.h: New file.
7522 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
7523 "x86-bsd-nat.h".
7524 (amd64_fbsd_nat_target): New class.
7525 (the_amd64_fbsd_nat_target): New.
7526 (amd64fbsd_read_description): Refactor as method of
7527 amd64_fbsd_nat_target.
7528 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
7529 (_initialize_amd64fbsd_nat): Adjust to C++ification.
7530 * amd64-nat.h (amd64bsd_target): Delete function declaration.
7531 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
7532 (i386bsd_store_inferior_registers): Remove target_ops parameter.
7533 (i386bsd_target): Delete.
7534 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
7535 (i386bsd_fetch_inferior_registers)
7536 (i386bsd_store_inferior_registers): Declare.
7537 (i386_bsd_nat_target): New class.
7538 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
7539 (the_i386_fbsd_nat_target): New.
7540 (i386fbsd_resume, i386fbsd_read_description): Refactor as
7541 i386_fbsd_nat_target methods.
7542 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
7543 (_initialize_i386fbsd_nat): Adjust to C++ification.
7544 * x86-bsd-nat.c (super_mourn_inferior): Delete.
7545 (x86bsd_mourn_inferior, x86bsd_target): Delete.
7546 (_initialize_x86_bsd_nat): Adjust to C++ification.
7547 * x86-bsd-nat.h: Include "x86-nat.h".
7548 (x86bsd_target): Delete declaration.
7549 (x86bsd_nat_target): New class.
7550
7551 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
7552 (the_aarch64_fbsd_nat_target): New.
7553 (aarch64_fbsd_fetch_inferior_registers)
7554 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
7555 aarch64_fbsd_nat_target.
7556 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
7557 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
7558 (the_alpha_bsd_nat_target): New.
7559 (alphabsd_fetch_inferior_registers)
7560 (alphabsd_store_inferior_registers): Refactor as
7561 alpha_bsd_nat_target methods.
7562 (_initialize_alphabsd_nat): Refactor as methods of
7563 alpha_bsd_nat_target.
7564 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
7565 (the_amd64_nbsd_nat_target): New.
7566 (_initialize_amd64nbsd_nat): Adjust to C++ification.
7567 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
7568 (the_amd64_obsd_nat_target): New.
7569 (_initialize_amd64obsd_nat): Adjust to C++ification.
7570 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
7571 (the_arm_fbsd_nat_target): New.
7572 (arm_fbsd_fetch_inferior_registers)
7573 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
7574 (_initialize_arm_fbsd_nat): Refactor as methods of
7575 arm_fbsd_nat_target.
7576 (_initialize_arm_fbsd_nat): Adjust to C++ification.
7577 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
7578 (the_arm_netbsd_nat_target): New.
7579 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
7580 arm_netbsd_nat_target.
7581 (_initialize_arm_netbsd_nat): Adjust to C++ification.
7582 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
7583 (the_hppa_nbsd_nat_target): New.
7584 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
7585 hppa_nbsd_nat_target methods.
7586 (_initialize_hppanbsd_nat): Adjust to C++ification.
7587 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
7588 (the_hppa_obsd_nat_target): New.
7589 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
7590 methods of hppa_obsd_nat_target.
7591 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
7592 add_target.
7593 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
7594 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
7595 add_target.
7596 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
7597 (_initialize_i386obsd_nat): Use add_target.
7598 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
7599 (the_m68k_bsd_nat_target): New.
7600 (m68kbsd_fetch_inferior_registers)
7601 (m68kbsd_store_inferior_registers): Refactor as methods of
7602 m68k_bsd_nat_target.
7603 (_initialize_m68kbsd_nat): Adjust to C++ification.
7604 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
7605 (the_mips_fbsd_nat_target): New.
7606 (mips_fbsd_fetch_inferior_registers)
7607 (mips_fbsd_store_inferior_registers): Refactor as methods of
7608 mips_fbsd_nat_target.
7609 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
7610 add_target.
7611 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
7612 (the_mips_nbsd_nat_target): New.
7613 (mipsnbsd_fetch_inferior_registers)
7614 (mipsnbsd_store_inferior_registers): Refactor as methods of
7615 mips_nbsd_nat_target.
7616 (_initialize_mipsnbsd_nat): Adjust to C++ification.
7617 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
7618 (the_mips64_obsd_nat_target): New.
7619 (mips64obsd_fetch_inferior_registers)
7620 (mips64obsd_store_inferior_registers): Refactor as methods of
7621 mips64_obsd_nat_target.
7622 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
7623 add_target.
7624 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
7625 nbsd_nat_target.
7626 * nbsd-nat.h: Include "inf-ptrace.h".
7627 (nbsd_nat_target): New class.
7628 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
7629 (obsd_wait): Refactor as methods of obsd_nat_target.
7630 (obsd_add_target): Delete.
7631 * obsd-nat.h: Include "inf-ptrace.h".
7632 (obsd_nat_target): New class.
7633 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
7634 (the_ppc_fbsd_nat_target): New.
7635 (ppcfbsd_fetch_inferior_registers)
7636 (ppcfbsd_store_inferior_registers): Refactor as methods of
7637 ppc_fbsd_nat_target.
7638 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
7639 add_target.
7640 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
7641 (the_ppc_nbsd_nat_target): New.
7642 (ppcnbsd_fetch_inferior_registers)
7643 (ppcnbsd_store_inferior_registers): Refactor as methods of
7644 ppc_nbsd_nat_target.
7645 (_initialize_ppcnbsd_nat): Adjust to C++ification.
7646 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
7647 (the_ppc_obsd_nat_target): New.
7648 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
7649 methods of ppc_obsd_nat_target.
7650 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
7651 add_target.
7652 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
7653 (the_sh_nbsd_nat_target): New.
7654 (shnbsd_fetch_inferior_registers)
7655 (shnbsd_store_inferior_registers): Refactor as methods of
7656 sh_nbsd_nat_target.
7657 (_initialize_shnbsd_nat): Adjust to C++ification.
7658 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
7659 (inf_ptrace_xfer_partial): Delete.
7660 (sparc_xfer_partial, sparc_target): Delete.
7661 * sparc-nat.h (sparc_fetch_inferior_registers)
7662 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
7663 (sparc_target): Delete function declaration.
7664 (sparc_target): New template class.
7665 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
7666 (_initialize_sparcnbsd_nat): Adjust to C++ification.
7667 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
7668 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
7669 add_target.
7670 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
7671 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
7672 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
7673 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
7674 add_target.
7675 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
7676 (the_vax_bsd_nat_target): New.
7677 (vaxbsd_fetch_inferior_registers)
7678 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
7679 methods.
7680 (_initialize_vaxbsd_nat): Adjust to C++ification.
7681
7682 * bsd-kvm.c (bsd_kvm_target): New class.
7683 (bsd_kvm_ops): Now a bsd_kvm_target.
7684 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
7685 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
7686 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
7687 bsd_kvm_target.
7688 (bsd_kvm_return_one): Delete.
7689 (bsd_kvm_add_target): Adjust to C++ification.
7690
7691 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
7692 (nto_procfs_target_procfs): New classes.
7693 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
7694 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
7695 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
7696 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
7697 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
7698 (procfs_remove_hw_breakpoint, procfs_resume)
7699 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
7700 (procfs_kill_inferior, procfs_store_registers)
7701 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
7702 as methods of nto_procfs_target.
7703 (nto_procfs_ops): Now an nto_procfs_target_procfs.
7704 (nto_native_ops): Delete.
7705 (procfs_open, procfs_native_open): Delete.
7706 (nto_native_ops): Now an nto_procfs_target_native.
7707 (init_procfs_targets): Adjust to C++ification.
7708 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
7709 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
7710 Refactor as methods of nto_procfs_target.
7711
7712 * go32-nat.c (go32_nat_target): New class.
7713 (the_go32_nat_target): New.
7714 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
7715 (go32_store_registers, go32_xfer_partial, go32_files_info)
7716 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
7717 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
7718 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
7719 (go32_pid_to_str): Refactor as methods of go32_nat_target.
7720 (go32_target): Delete.
7721 (_initialize_go32_nat): Adjust to C++ification.
7722
7723 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
7724 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
7725 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
7726 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
7727 gnu_nat_target.
7728 (gnu_target): Delete.
7729 * gnu-nat.h (gnu_target): Delete.
7730 (gnu_nat_target): New class.
7731 * i386-gnu-nat.c (gnu_base_target): New.
7732 (i386_gnu_nat_target): New class.
7733 (the_i386_gnu_nat_target): New.
7734 (_initialize_i386gnu_nat): Adjust to C++ification.
7735
7736 2018-05-02 Pedro Alves <palves@redhat.com>
7737
7738 * bfd-target.c (target_bfd_xclose): Rename to ...
7739 (target_bfd_close): ... this.
7740 (target_bfd_reopen): Adjust.
7741 * target.c (target_close): Remove references to to_xclose.
7742 * target.h (target_ops::to_xclose): Delete.
7743 (target_ops::to_close): Update comments.
7744
7745 2018-05-02 Pedro Alves <palves@redhat.com>
7746
7747 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
7748 "linux-nat.h".
7749 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
7750 * inf-ptrace.c (inf_ptrace_register_u_offset)
7751 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
7752 (inf_ptrace_store_register, inf_ptrace_store_registers)
7753 (inf_ptrace_trad_target): Move to ...
7754 * linux-nat-trad.c: ... this new file.
7755 * linux-nat-trad.h: New file.
7756 * linux-nat.c (linux_target_install_ops): Make extern.
7757 (linux_trad_target): Delete.
7758 * linux-nat.h (linux_trad_target): Delete declaration.
7759 (linux_target_install_ops): Declare.
7760 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
7761 "linux-nat.h".
7762
7763 2018-05-02 Pedro Alves <palves@redhat.com>
7764
7765 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
7766 procfs_target/add_target here.
7767 * procfs.c (procfs_target): Make static.
7768 (_initialize_procfs): Call add_target here.
7769 * procfs.h (struct target_ops): Remove forward declaration.
7770 (procfs_target): Remove declaration.
7771 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
7772
7773 2018-05-02 Pedro Alves <palves@redhat.com>
7774
7775 * procfs.c (procfs_stopped_by_watchpoint)
7776 (procfs_insert_watchpoint, procfs_remove_watchpoint)
7777 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
7778 Forward declare.
7779 (procfs_use_watchpoints): Delete, move contents...
7780 (procfs_target): ... here.
7781 * procfs.h (procfs_use_watchpoints): Delete declaration.
7782 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
7783 procfs_use_watchpoints.
7784 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
7785 procfs_use_watchpoints.
7786
7787 2018-05-02 Tom Tromey <tom@tromey.com>
7788
7789 PR python/20084:
7790 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
7791 and var_zuinteger_unlimited.
7792 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
7793 and PARAM_ZUINTEGER_UNLIMITED.
7794 (set_parameter_value): Handle var_zuinteger and
7795 var_zuinteger_unlimited.
7796 (add_setshow_generic): Likewise.
7797 (parmpy_init): Likewise.
7798
7799 2018-04-28 Dan Robertson <danlrobertson89@gmail.com>
7800
7801 PR rust/23124
7802 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
7803 pointer is not null before dereferencing it.
7804
7805 2018-04-30 Tom Tromey <tom@tromey.com>
7806
7807 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
7808 is_mi_like_p.
7809
7810 2018-04-30 Tom Tromey <tom@tromey.com>
7811
7812 * breakpoint.c (mention): Remove use of is_mi_like_p.
7813 (print_mention_ranged_breakpoint): Likewise.
7814 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
7815 of is_mi_like_p.
7816
7817 2018-04-30 Tom Tromey <tom@tromey.com>
7818
7819 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
7820
7821 2018-04-30 Tom Tromey <tom@tromey.com>
7822
7823 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
7824 (info_spu_event_command): Remove some uses of is_mi_like_p.
7825
7826 2018-04-30 Tom Tromey <tom@tromey.com>
7827
7828 * python/py-framefilter.c (py_print_single_arg)
7829 (enumerate_locals, py_print_args, py_print_frame): Remove some
7830 uses of is_mi_like_p.
7831
7832 2018-04-30 Tom Tromey <tom@tromey.com>
7833
7834 * ui-out.c: Update.
7835 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
7836 * ui-out.h (ui_out::is_mi_like_p): Now const.
7837 (ui_out::do_is_mi_like_p): Now const.
7838 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
7839
7840 2018-04-30 Tom Tromey <tom@tromey.com>
7841
7842 * varobj.c (varobj_set_visualizer): Use new_reference.
7843 * python/python.c (gdbpy_decode_line): Use new_reference.
7844 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
7845 new_reference.
7846
7847 2018-04-30 Tom Tromey <tom@tromey.com>
7848
7849 * varobj.c (install_new_value): Use new_reference.
7850 * value.h (value_incref): Return void. Swap intro comment with
7851 value_decref.
7852 * value.c (set_value_parent): Use new_reference.
7853 (value_incref): Return void. Update intro comment.
7854 (release_value): Use new_reference.
7855 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
7856
7857 2018-04-30 Tom Tromey <tom@tromey.com>
7858
7859 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
7860 * gdb_bfd.h (new_bfd_ref): Remove.
7861 (gdb_bfd_open): Update comment.
7862 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
7863 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
7864 (gdb_bfd_fdopenr): Use new_reference.
7865 * exec.c (exec_file_attach): Use new_reference.
7866
7867 2018-04-30 Tom Tromey <tom@tromey.com>
7868
7869 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
7870 method.
7871
7872 2018-04-30 Tom Tromey <tom@tromey.com>
7873
7874 * jit.c (jit_read_code_entry): Use type_align.
7875 * i386-tdep.c (i386_gdbarch_init): Don't call
7876 set_gdbarch_long_long_align_bit.
7877 * gdbarch.sh: Remove long_long_align_bit.
7878 * gdbarch.c, gdbarch.h: Rebuild.
7879 * arc-tdep.c (arc_type_align): New function.
7880 (arc_gdbarch_init): Use arc_type_align. Don't call
7881 set_gdbarch_long_long_align_bit.
7882
7883 2018-04-30 Tom Tromey <tom@tromey.com>
7884
7885 * rust-lang.c (rust_type_alignment): Remove.
7886 (rust_composite_type): Use type_align.
7887
7888 2018-04-30 Tom Tromey <tom@tromey.com>
7889
7890 * NEWS: Mention Type.align.
7891 * python/py-type.c (typy_get_alignof): New function.
7892 (type_object_getset): Add "alignof".
7893
7894 2018-04-30 Tom Tromey <tom@tromey.com>
7895
7896 PR exp/17095:
7897 * NEWS: Update.
7898 * std-operator.def (UNOP_ALIGNOF): New operator.
7899 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
7900 New.
7901 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
7902 * c-lang.c (c_op_print_tab): Add alignof.
7903 * c-exp.y (ALIGNOF): New token.
7904 (exp): Add "ALIGNOF" production.
7905 (ident_tokens): Add _Alignof and alignof.
7906
7907 2018-04-30 Tom Tromey <tom@tromey.com>
7908
7909 * i386-tdep.c (i386_type_align): New function.
7910 (i386_gdbarch_init): Update.
7911 * gdbarch.sh (type_align): New method.
7912 * gdbarch.c, gdbarch.h: Rebuild.
7913 * arch-utils.h (default_type_align): Declare.
7914 * arch-utils.c (default_type_align): New function.
7915 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
7916 (struct type) <align_log2>: New field.
7917 <instance_flags>: Now a bitfield.
7918 (TYPE_RAW_ALIGN): New macro.
7919 (type_align, type_raw_align, set_type_align): Declare.
7920 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
7921 functions.
7922 * dwarf2read.c (quirk_rust_enum): Set type alignment.
7923 (get_alignment, maybe_set_alignment): New functions.
7924 (read_structure_type, read_enumeration_type, read_array_type)
7925 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
7926 (read_subrange_type, read_base_type): Set type alignment.
7927
7928 2018-04-30 Simon Marchi <simon.marchi@ericsson.com>
7929
7930 * dwarf2read.c (read_index_from_section): Use bool.
7931
7932 2018-04-29 Fabian Groffen <grobian@gentoo.org>
7933
7934 PR gdb/22950
7935 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
7936 with #ifdef.
7937
7938 2018-04-29 John Reiser <jreiser@BitWagon.com>
7939
7940 PR build/22873
7941 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
7942 last step, and do it atomically.
7943
7944 2018-04-27 Alexandre Oliva <aoliva@redhat.com>
7945
7946 * compile/compile-c-types.c (convert_int, convert_float):
7947 Update for C FE v1.
7948
7949 2018-04-27 Tom Tromey <tom@tromey.com>
7950
7951 PR rust/22545:
7952 * rust-lang.c (rust_inclusive_range_type_p): New function.
7953 (rust_range): Handle inclusive ranges.
7954 (rust_compute_range): Likewise.
7955 * rust-exp.y (struct rust_op) <inclusive>: New field.
7956 (DOTDOTEQ): New constant.
7957 (range_expr): Add "..=" productions.
7958 (operator_tokens): Add "..=" token.
7959 (ast_range): Add "inclusive" parameter.
7960 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
7961 ranges.
7962 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
7963 bounds values.
7964 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
7965 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
7966 Update comments.
7967 * expprint.c (print_subexp_standard): Handle new bounds values.
7968 (dump_subexp_body_standard): Likewise.
7969
7970 2018-04-27 Tom Tromey <tom@tromey.com>
7971
7972 * configure: Rebuild.
7973 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
7974 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
7975 "OVERRIDE".
7976 (class symbol_needs_eval_context): Likewise.
7977 * dwarf2read.c (mock_mapped_index::symbol_name_count)
7978 (mock_mapped_index::symbol_name_at): Use "override". Remove
7979 "virtual".
7980 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
7981 "override".
7982 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
7983 * aarch64-tdep.c (instruction_reader::read): Use "override".
7984 (instruction_reader_test::read): Likewise.
7985 * arm-tdep.c (instruction_reader::read): Use "override".
7986 (instruction_reader_thumb::read): Likewise.
7987
7988 2018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
7989
7990 PR remote/9665
7991 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
7992 instead of remote_send.
7993 (remote_send): Remove.
7994
7995 2018-04-26 Pedro Alves <palves@redhat.com>
7996
7997 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
7998 find_function_start_sal instead of find_pc_line.
7999
8000 2018-04-26 Pedro Alves <palves@redhat.com>
8001
8002 * breakpoint.c (set_breakpoint_location_function): Handle
8003 mst_data_gnu_ifunc.
8004 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
8005 * elfread.c (elf_symtab_read): Give data symbols with
8006 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
8007 (elf_rel_plt_read): Update comment.
8008 * linespec.c (convert_linespec_to_sals): Handle
8009 mst_data_gnu_ifunc.
8010 (minsym_found): Handle mst_data_gnu_ifunc.
8011 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
8012 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
8013 * parse.c (find_minsym_type_and_address): Handle
8014 mst_data_gnu_ifunc.
8015 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
8016 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
8017 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
8018 comment.
8019 <mst_data_gnu_ifunc>: New enumerator.
8020
8021 2018-04-26 Pedro Alves <palves@redhat.com>
8022
8023 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
8024 (lookup_minimal_symbol_by_pc_section): ... this. Replace
8025 'want_trampoline' parameter by a lookup_msym_prefer parameter.
8026 Handle it.
8027 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
8028 (lookup_minimal_symbol_by_pc): Adjust.
8029 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
8030 (lookup_solib_trampoline_symbol_by_pc): Adjust.
8031 * minsyms.h (lookup_msym_prefer): New enum.
8032 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
8033 parameter by a lookup_msym_prefer parameter.
8034
8035 2018-04-26 Pedro Alves <palves@redhat.com>
8036
8037 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
8038 ends in "@plt" instead of looking at the symbol's section.
8039
8040 2018-04-26 Pedro Alves <palves@redhat.com>
8041
8042 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
8043 all references.
8044 (find_pc_partial_function_gnu_ifunc): Rename to ...
8045 (find_pc_partial_function): ... this, and remove references to
8046 'is_gnu_ifunc_p'.
8047 (find_pc_partial_function): Delete old implementation.
8048 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
8049
8050 2018-04-26 Pedro Alves <palves@redhat.com>
8051
8052 * linespec.c (struct bound_minimal_symbol_search_key): New.
8053 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
8054 skip first line if we found a GNU ifunc minimal symbol by name.
8055 (compare_msymbols): Change parameters to work with a destructured
8056 lhs minsym.
8057 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
8058 functions.
8059
8060 2018-04-26 Pedro Alves <palves@redhat.com>
8061
8062 * breakpoint.c (set_breakpoint_location_function): Don't resolve
8063 ifunc targets here. Instead, if we have an ifunc minsym, use its
8064 address/name.
8065 (add_location_to_breakpoint): Store the minsym and the objfile in
8066 the breakpoint location.
8067 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
8068 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
8069 Record the minsym in the sal.
8070 * symtab.h (symtab_and_line) <msymbol>: New field.
8071
8072 2018-04-26 Pedro Alves <palves@redhat.com>
8073
8074 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
8075 unless we actually resolved the ifunc.
8076
8077 2018-04-26 Pedro Alves <palves@redhat.com>
8078
8079 * c-exp.y (variable production): Prefer ifunc minsyms over
8080 regular function symbols.
8081 * symtab.c (find_gnu_ifunc): New function.
8082 * minsyms.h (lookup_msym_prefer): New enum.
8083 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
8084 parameter by a lookup_msym_prefer parameter.
8085 * symtab.h (find_gnu_ifunc): New declaration.
8086
8087 2018-04-26 Pedro Alves <palves@redhat.com>
8088
8089 * blockframe.c (find_gnu_ifunc_target_type): New function.
8090 (find_function_type): New.
8091 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
8092 return a value with a memory address.
8093 (eval_call): For calls to GNU ifunc functions, try to find the
8094 type of the target function from the type that the resolver
8095 returns.
8096 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
8097 symbols.
8098 * infcall.c (find_function_return_type): Delete.
8099 (find_function_addr): Add 'function_type' parameter. For calls to
8100 GNU ifunc functions, try to find the type of the target function
8101 from the type that the resolver returns, and return it via
8102 FUNCTION_TYPE.
8103 (call_function_by_hand_dummy): Adjust to use the function type
8104 returned by find_function_addr.
8105 (find_function_addr): Add 'function_type' parameter and move
8106 description here.
8107 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
8108 declarations.
8109
8110 2018-04-26 Pedro Alves <palves@redhat.com>
8111
8112 * c-exp.y (variable production): Skip finding an alias for ifunc
8113 symbols.
8114
8115 2018-04-26 Pedro Alves <palves@redhat.com>
8116
8117 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
8118
8119 2018-04-25 Pedro Alves <palves@redhat.com>
8120
8121 * infcmd.c (kill_command): Print the pid as string, not the whole
8122 thread's ptid. Add comment. s/has been killed/killed/ in output
8123 message.
8124 * remote.c (remote_detach_1): Print the pid as string, not the
8125 whole thread's ptid.
8126
8127 2018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8128 Sergio Durigan Junior <sergiodj@redhat.com>
8129 Pedro Alves <palves@redhat.com>
8130
8131 * infcmd.c (kill_command): Print message when inferior has
8132 been killed.
8133 * inferior.c (print_inferior_events): Remove 'static'. Set as
8134 '1'.
8135 (add_inferior): Improve message printed when
8136 'print_inferior_events' is on.
8137 (exit_inferior): Remove message printed when
8138 'print_inferior_events' is on.
8139 (detach_inferior): Improve message printed when
8140 'print_inferior_events' is on.
8141 (initialize_inferiors): Use 'add_inferior_silent' to set
8142 'current_inferior_'.
8143 * inferior.h (print_inferior_events): Declare here as
8144 'extern'.
8145 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
8146 '[Detaching...]' messages when 'print_inferior_events' is on.
8147 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
8148 as prefix/suffix for messages. Remove periods. Fix erroneous
8149 'Detaching after fork from child...', replace it by '... from
8150 parent...'.
8151 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
8152 prefix/suffix when printing 'Detaching...' messages. Print
8153 them when 'print_inferior_events' is on.
8154 * remote.c (remote_detach_1): Print message when detaching
8155 from inferior and '!is_fork_parent'.
8156
8157 2018-04-24 Tom Tromey <tom@tromey.com>
8158
8159 * cli-out.h: Reindent.
8160
8161 2018-04-24 Tom Tromey <tom@tromey.com>
8162
8163 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
8164 (cli_ui_out::do_field_string): Use fputs_filtered.
8165 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
8166
8167 2018-04-23 Tom Tromey <tom@tromey.com>
8168
8169 * guile/scm-frame.c (gdbscm_frame_read_var): Use
8170 gdb::unique_xmalloc_ptr.
8171
8172 2018-04-23 Tom Tromey <tom@tromey.com>
8173
8174 * configure: Rebuild.
8175
8176 2018-04-22 Rajendra SY <rajendra.sy@gmail.com>
8177
8178 PR gdb/23095
8179 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
8180 prepare_for_testing. Set normal_bp to r_debug_state if target
8181 is bsd.
8182
8183 2018-04-21 Pedro Alves <palves@redhat.com>
8184 Rajendra SY <rajendra.sy@gmail.com>
8185
8186 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
8187 * remote.c (extended_remote_attach): In all-stop mode, mark the
8188 thread as executing.
8189
8190 2018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8191
8192 * thread.c (thread_apply_all_command): Fix comment.
8193 (thread_command): Fix comment.
8194
8195 2018-04-10 Alan Hayward <alan.hayward@arm.com>
8196
8197 * common/tdesc.h (tdesc_create_feature): Remove xml filename
8198 parameter.
8199 * features/aarch64-core.c (create_feature_aarch64_core):
8200 Regenerate.
8201 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
8202 Likewise.
8203 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
8204 Likewise.
8205 * features/i386/32bit-avx512.c
8206 (create_feature_i386_32bit_avx512): Likewise.
8207 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
8208 Likewise.
8209 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
8210 Likewise.
8211 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
8212 Likewise.
8213 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
8214 Likewise.
8215 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
8216 Likewise.
8217 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
8218 Likewise.
8219 * features/i386/64bit-avx512.c
8220 (create_feature_i386_64bit_avx512): Likewise.
8221 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
8222 Likewise.
8223 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
8224 Likewise.
8225 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
8226 Likewise.
8227 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
8228 Likewise.
8229 * features/i386/64bit-segments.c
8230 (create_feature_i386_64bit_segments): Likewise.
8231 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
8232 Likewise.
8233 * features/i386/x32-core.c
8234 (create_feature_i386_x32_core): Likewise.
8235 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
8236 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
8237 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
8238 * target-descriptions.c: In generated code, don't pass xml
8239 filename.
8240
8241 2018-04-18 Alan Hayward <alan.hayward@arm.com>
8242
8243 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
8244 (print_xml_feature::visit_post): Likewise.
8245 (print_xml_feature::visit): Likewise.
8246 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
8247 (print_xml_feature): Add new class.
8248 * regformats/regdat.sh: Null xmltarget on feature targets.
8249 * target-descriptions.c (struct target_desc): Add xmltarget.
8250 (maintenance_check_tdesc_xml_convert): Add unittest function.
8251 (tdesc_get_features_xml): Add function to get xml.
8252 (maintenance_check_xml_descriptions): Test xml generation.
8253 * xml-tdesc.c (string_read_description_xml): Add function.
8254 * xml-tdesc.h (string_read_description_xml): Add declaration.
8255
8256 2018-04-18 Alan Hayward <alan.hayward@arm.com>
8257
8258 * features/Makefile: Add feature marker to targets with new style
8259 target descriptions.
8260 * regformats/aarch64.dat: Regenerate.
8261 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
8262 * regformats/i386/amd64-avx-linux.dat: Likewise.
8263 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
8264 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
8265 * regformats/i386/amd64-linux.dat: Likewise.
8266 * regformats/i386/amd64-mpx-linux.dat: Likewise.
8267 * regformats/i386/amd64.dat: Likewise.
8268 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
8269 * regformats/i386/i386-avx-linux.dat: Likewise.
8270 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
8271 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
8272 * regformats/i386/i386-linux.dat: Likewise.
8273 * regformats/i386/i386-mmx-linux.dat: Likewise.
8274 * regformats/i386/i386-mpx-linux.dat: Likewise.
8275 * regformats/i386/i386.dat: Likewise.
8276 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
8277 * regformats/i386/x32-avx-linux.dat: Likewise.
8278 * regformats/i386/x32-linux.dat: Likewise.
8279 * regformats/tic6x-c62x-linux.dat: Likewise.
8280 * regformats/tic6x-c64x-linux.dat: Likewise.
8281 * regformats/tic6x-c64xp-linux.dat: Likewise.
8282 * regformats/regdat.sh: Parse feature marker.
8283
8284 2018-04-18 Alan Hayward <alan.hayward@arm.com>
8285
8286 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
8287 (tdesc_osabi_name): Likewise.
8288 * target-descriptions.c (tdesc_architecture_name): Add new
8289 function.
8290 (tdesc_osabi_name): Likewise.
8291
8292 2018-04-18 Alan Hayward <alan.hayward@arm.com>
8293
8294 * common/tdesc.c (tdesc_predefined_type): Move to here.
8295 (tdesc_named_type): Likewise.
8296 (tdesc_create_vector): Likewise.
8297 (tdesc_create_struct): Likewise.
8298 (tdesc_set_struct_size): Likewise.
8299 (tdesc_create_union): Likewise.
8300 (tdesc_create_flags): Likewise.
8301 (tdesc_create_enum): Likewise.
8302 (tdesc_add_field): Likewise.
8303 (tdesc_add_typed_bitfield): Likewise.
8304 (tdesc_add_bitfield): Likewise.
8305 (tdesc_add_flag): Likewise.
8306 (tdesc_add_enum_value): Likewise.
8307 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
8308 (struct tdesc_type_vector): Likewise.
8309 (struct tdesc_type_field): Likewise.
8310 (struct tdesc_type_with_fields): Likewise.
8311 (tdesc_create_enum): Add declaration.
8312 (tdesc_add_typed_bitfield): Likewise.
8313 (tdesc_add_enum_value): Likewise.
8314 * target-descriptions.c (tdesc_type_field): Move from here.
8315 (tdesc_type_builtin): Likewise.
8316 (tdesc_type_vector): Likewise.
8317 (tdesc_type_with_fields): Likewise.
8318 (tdesc_predefined_types): Likewise.
8319 (tdesc_named_type): Likewise.
8320 (tdesc_create_vector): Likewise.
8321 (tdesc_create_struct): Likewise.
8322 (tdesc_set_struct_size): Likewise.
8323 (tdesc_create_union): Likewise.
8324 (tdesc_create_flags): Likewise.
8325 (tdesc_create_enum): Likewise.
8326 (tdesc_add_field): Likewise.
8327 (tdesc_add_typed_bitfield): Likewise.
8328 (tdesc_add_bitfield): Likewise.
8329 (tdesc_add_flag): Likewise.
8330 (tdesc_add_enum_value): Likewise.
8331 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
8332 (tdesc_add_typed_bitfield): Likewise.
8333 (tdesc_add_enum_value): Likewise.
8334
8335 2018-04-18 Alan Hayward <alan.hayward@arm.com>
8336
8337 * common/tdesc.c (tdesc_feature::accept): Move to here.
8338 (tdesc_feature::operator==): Likewise.
8339 (tdesc_create_reg): Likewise.
8340 * common/tdesc.h (tdesc_type_kind): Likewise.
8341 (struct tdesc_type): Likewise.
8342 (struct tdesc_feature): Likewise.
8343 * regformats/regdat.sh: Create a feature.
8344 * target-descriptions.c (tdesc_type_kind): Move from here.
8345 (tdesc_type): Likewise.
8346 (tdesc_type_up): Likewise.
8347 (tdesc_feature): Likewise.
8348 (tdesc_create_reg): Likewise.
8349
8350 2018-04-18 Alan Hayward <alan.hayward@arm.com>
8351
8352 * Makefile.in: Add arch/tdesc.c
8353 * common/tdesc.c: New file.
8354 * common/tdesc.h (tdesc_element_visitor): Move to here.
8355 (tdesc_element): Likewise.
8356 (tdesc_reg): Likewise.
8357 (tdesc_reg_up): Likewise.
8358 * regformats/regdef.h (reg): Add offset to constructors.
8359 * target-descriptions.c (tdesc_element_visitor): Move from here.
8360 (tdesc_element): Likewise.
8361 (tdesc_reg): Likewise.
8362 (tdesc_reg_up): Likewise.
8363
8364 2018-04-17 Tom Tromey <tom@tromey.com>
8365
8366 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
8367 discriminant field.
8368
8369 2018-04-17 Tom Tromey <tom@tromey.com>
8370
8371 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
8372
8373 2018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
8374
8375 * symtab.c (print_symbol_info): Skip printing filename and line
8376 number when `last' is NULL.
8377 (symtab_symbol_info): Use empty string instead of NULL for first
8378 invocation of print_symbol_info.
8379 (rbreak_command): Pass NULL to `last' parameter of
8380 print_symbol_info.
8381
8382 2018-04-16 Simon Marchi <simon.marchi@ericsson.com>
8383
8384 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
8385 instead of nullptr.
8386
8387 2018-04-16 Pedro Alves <palves@redhat.com>
8388
8389 * MAINTAINERS (sh): Remove.
8390 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
8391 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
8392 (ALLDEPFILES): Remove sh64-tdep.c.
8393 * NEWS: Mentions that support for SH-5/SH64 is removed.
8394 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
8395 (sh*-*-openbsd*): Ditto.
8396 (sh64-*-elf*): Remove.
8397 (sh*): Remove.
8398 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
8399 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
8400 * sh-tdep.c: No longer include "sh64-tdep.h".
8401 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
8402 * sh64-tdep.c, sh64-tdep.h: Remove files.
8403
8404 2018-04-16 Pedro Alves <palves@redhat.com>
8405
8406 * MAINTAINERS: Remove m88k.
8407 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
8408 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
8409 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
8410 * NEWS: Mention that support for m88k was removed.
8411 * configure.host (m88*-*-*): Remove support.
8412 * configure.nat (m88k-*-*): Remove support.
8413 * configure.tgt (m88*-*-openbsd*): Remove.
8414 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
8415
8416 2018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
8417
8418 * configure.tgt (x86_tobjs): New variable.
8419 (amd64_tobjs, i386_tobjs): Use it.
8420
8421 2018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8422
8423 * symtab.c (print_symbol_info): Precede the symbol definition by
8424 the line number when available.
8425 * NEWS: Advertise this enhancement.
8426
8427 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
8428
8429 * NEWS (New options): announce set/show record btrace cpu.
8430 * btrace.c: Include record-btrace.h.
8431 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
8432 the vendor is unknown.
8433 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
8434 Maybe overwrite the btrace configuration's cpu.
8435 (btrace_compute_ftrace): Add cpu parameter. Update callers.
8436 (btrace_fetch): Add cpu parameter. Update callers.
8437 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
8438 Maybe overwrite the btrace configuration's cpu. Skip enabling
8439 errata workarounds if the vendor is unknown.
8440 * python/py-record-btrace.c: Include record-btrace.h.
8441 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
8442 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
8443 * record-btrace.c (record_btrace_cpu_state_kind): New.
8444 (record_btrace_cpu): New.
8445 (set_record_btrace_cpu_cmdlist): New.
8446 (record_btrace_get_cpu): New.
8447 (require_btrace_thread, record_btrace_info)
8448 (record_btrace_resume_thread): Call record_btrace_get_cpu.
8449 (cmd_set_record_btrace_cpu_none): New.
8450 (cmd_set_record_btrace_cpu_auto): New.
8451 (cmd_set_record_btrace_cpu): New.
8452 (cmd_show_record_btrace_cpu): New.
8453 (_initialize_record_btrace): Initialize set/show record btrace cpu
8454 commands.
8455 * record-btrace.h (record_btrace_get_cpu): New.
8456
8457 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
8458
8459 * record.c (set_record_command): Fix typo in message.
8460
8461 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
8462
8463 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
8464
8465 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
8466
8467 * infrun.c (process_event_stop_test): Call
8468 gdbarch_in_indirect_branch_thunk.
8469 * gdbarch.sh (in_indirect_branch_thunk): New.
8470 * gdbarch.c: Regenerated.
8471 * gdbarch.h: Regenerated.
8472 * x86-tdep.h: New.
8473 * x86-tdep.c: New.
8474 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
8475 (HFILES_NO_SRCDIR): Add x86-tdep.h.
8476 (ALLDEPFILES): Add x86-tdep.c.
8477 * arch-utils.h (default_in_indirect_branch_thunk): New.
8478 * arch-utils.c (default_in_indirect_branch_thunk): New.
8479 * i386-tdep: Include x86-tdep.h.
8480 (i386_in_indirect_branch_thunk): New.
8481 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
8482 function.
8483 * amd64-tdep: Include x86-tdep.h.
8484 (amd64_in_indirect_branch_thunk): New.
8485 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
8486
8487 2018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8488
8489 PR gdb/23053
8490 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
8491 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
8492 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
8493 regression.
8494
8495 2018-04-12 Tom Tromey <tom@tromey.com>
8496
8497 * rust-lang.c (rust_print_struct_def): Remove univariant code.
8498 (rust_evaluate_subexp): Likewise.
8499
8500 2018-04-12 Pedro Alves <palves@redhat.com>
8501
8502 * procfs.c (procfs_detach): Make forward declaration's prototype
8503 match definition's protototype.
8504 (proc_get_LDT_entry): Remove stale do_cleanups call.
8505
8506 2018-04-12 Pedro Alves <palves@redhat.com>
8507
8508 * target.h (target_ops::to_has_exited): Delete.
8509 (target_has_exited): Delete.
8510 * target-delegates.c: Regenerate.
8511
8512 2018-04-11 Pedro Alves <palves@redhat.com>
8513
8514 * target.c (fileio_fh_t::t): Add comment.
8515 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
8516 (target_fileio_close): Handle a NULL target.
8517 (invalidate_fileio_fh): New.
8518 (target_close): Call it.
8519 * remote.c (remote_hostio_send_command): No longer check whether
8520 remote_desc is open.
8521
8522 2018-04-11 Pedro Alves <palves@redhat.com>
8523
8524 * target.c (fileio_fh_t): Make it a named struct instead of a
8525 typedef.
8526 (fileio_fh_t::is_closed): New method.
8527 (DEF_VEC_O (fileio_fh_t)): Remove.
8528 (fileio_fhandles): Now a std::vector.
8529 (is_closed_fileio_fh): Delete.
8530 (acquire_fileio_fd): Adjust. Rename parameters.
8531 (release_fileio_fd): Adjust.
8532 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
8533 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
8534 (target_fileio_close): Adjust.
8535
8536 2018-04-10 Simon Marchi <simon.marchi@ericsson.com>
8537
8538 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
8539 index.
8540
8541 2018-04-10 Pedro Alves <palves@redhat.com>
8542
8543 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
8544 (scoped_finish_thread_state): New class.
8545 * infcmd.c (run_command_1): Use it instead of finish_thread_state
8546 cleanup.
8547 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
8548 (fetch_inferior_event, normal_stop): Likewise.
8549 * thread.c (finish_thread_state_cleanup): Delete.
8550
8551 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8552 Pedro Alves <palves@redhat.com>
8553
8554 * value.c: Include "selftest.h" and "common/array-view.h".
8555 (struct range) <operator ==>: New.
8556 (test_ranges_contain): New.
8557 (check_ranges_vector): New.
8558 (test_insert_into_bit_range_vector): New.
8559 (_initialize_values): Register selftests.
8560 * common/array-view.h (operator==, operator!=): New.
8561
8562 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8563
8564 * common/gdb_vecs.h (unordered_remove): Add overload that takes
8565 an iterator.
8566 * inline-frame.c: Include <algorithm>.
8567 (struct inline_state): Add constructor.
8568 (inline_state_s): Remove.
8569 (DEF_VEC_O(inline_state_s)): Remove.
8570 (inline_states): Change type to std::vector.
8571 (find_inline_frame_state): Adjust to std::vector.
8572 (allocate_inline_frame_state): Remove.
8573 (clear_inline_frame_state): Adjust to std::vector.
8574 (skip_inline_frames): Adjust to std::vector.
8575
8576 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8577
8578 * tracepoint.h (struct trace_state_variable): Add constructor.
8579 <name>: Change type to std::string.
8580 * tracepoint.c (tsv_s): Remove.
8581 (DEF_VEC_O(tsv_s)): Remove.
8582 (tvariables): Change to std::vector.
8583 (create_trace_state_variable): Adjust to std::vector.
8584 (find_trace_state_variable): Likewise.
8585 (find_trace_state_variable_by_number): Likewise.
8586 (delete_trace_state_variable): Likewise.
8587 (trace_variable_command): Adjust to std::string.
8588 (delete_trace_variable_command): Likewise.
8589 (tvariables_info_1): Adjust to std::vector.
8590 (save_trace_state_variables): Likewise.
8591 (start_tracing): Likewise.
8592 (merge_uploaded_trace_state_variables): Adjust to std::vector
8593 and std::string.
8594 * target.h (struct target_ops)
8595 <to_download_trace_state_variable>: Pass reference to
8596 trace_state_variable.
8597 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
8598 * target-delegates.c: Re-generate.
8599 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
8600 (mi_tsv_deleted): Likewise.
8601 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
8602 * remote.c (remote_download_trace_state_variable): Change
8603 pointer to reference and adjust.
8604 * make-target-delegates (parse_argtypes): Handle references.
8605 (write_function_header): Likewise.
8606 (munge_type): Likewise.
8607
8608 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8609
8610 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8611 string_view-selftests.c.
8612 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
8613 testsuite.
8614 * unittests/basic_string_view/cons/char/1.cc: Likewise.
8615 * unittests/basic_string_view/cons/char/2.cc: Likewise.
8616 * unittests/basic_string_view/cons/char/3.cc: Likewise.
8617 * unittests/basic_string_view/element_access/char/1.cc:
8618 Likewise.
8619 * unittests/basic_string_view/element_access/char/empty.cc:
8620 Likewise.
8621 * unittests/basic_string_view/element_access/char/front_back.cc:
8622 Likewise.
8623 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
8624 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
8625 Likewise.
8626 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
8627 Likewise.
8628 * unittests/basic_string_view/modifiers/swap/char/1.cc:
8629 Likewise.
8630 * unittests/basic_string_view/operations/compare/char/1.cc:
8631 Likewise.
8632 * unittests/basic_string_view/operations/compare/char/13650.cc:
8633 Likewise.
8634 * unittests/basic_string_view/operations/copy/char/1.cc:
8635 Likewise.
8636 * unittests/basic_string_view/operations/data/char/1.cc:
8637 Likewise.
8638 * unittests/basic_string_view/operations/find/char/1.cc:
8639 Likewise.
8640 * unittests/basic_string_view/operations/find/char/2.cc:
8641 Likewise.
8642 * unittests/basic_string_view/operations/find/char/3.cc:
8643 Likewise.
8644 * unittests/basic_string_view/operations/find/char/4.cc:
8645 Likewise.
8646 * unittests/basic_string_view/operations/rfind/char/1.cc:
8647 Likewise.
8648 * unittests/basic_string_view/operations/rfind/char/2.cc:
8649 Likewise.
8650 * unittests/basic_string_view/operations/rfind/char/3.cc:
8651 Likewise.
8652 * unittests/basic_string_view/operations/substr/char/1.cc:
8653 Likewise.
8654 * unittests/basic_string_view/operators/char/2.cc: Likewise.
8655 * unittests/string_view-selftests.c: New file.
8656
8657 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8658
8659 * unittests/basic_string_view/capacity/1.cc: New file.
8660 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
8661 * unittests/basic_string_view/cons/char/1.cc: New file.
8662 * unittests/basic_string_view/cons/char/2.cc: New file.
8663 * unittests/basic_string_view/cons/char/3.cc: New file.
8664 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
8665 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
8666 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
8667 * unittests/basic_string_view/element_access/char/1.cc: New file.
8668 * unittests/basic_string_view/element_access/char/2.cc: New file.
8669 * unittests/basic_string_view/element_access/char/empty.cc: New file.
8670 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
8671 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
8672 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
8673 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
8674 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
8675 * unittests/basic_string_view/include.cc: New file.
8676 * unittests/basic_string_view/inserters/char/1.cc: New file.
8677 * unittests/basic_string_view/inserters/char/2.cc: New file.
8678 * unittests/basic_string_view/inserters/char/3.cc: New file.
8679 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
8680 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
8681 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
8682 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
8683 * unittests/basic_string_view/literals/types.cc: New file.
8684 * unittests/basic_string_view/literals/values.cc: New file.
8685 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
8686 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
8687 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
8688 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
8689 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
8690 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
8691 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
8692 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
8693 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
8694 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
8695 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
8696 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
8697 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
8698 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
8699 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
8700 * unittests/basic_string_view/operations/data/char/1.cc: New file.
8701 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
8702 * unittests/basic_string_view/operations/find/char/1.cc: New file.
8703 * unittests/basic_string_view/operations/find/char/2.cc: New file.
8704 * unittests/basic_string_view/operations/find/char/3.cc: New file.
8705 * unittests/basic_string_view/operations/find/char/4.cc: New file.
8706 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
8707 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
8708 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
8709 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
8710 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
8711 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
8712 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
8713 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
8714 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
8715 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
8716 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
8717 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
8718 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
8719 * unittests/basic_string_view/operators/char/2.cc: New file.
8720 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
8721 * unittests/basic_string_view/range_access/char/1.cc: New file.
8722 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
8723 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
8724 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
8725 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
8726 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
8727 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
8728 * unittests/basic_string_view/requirements/typedefs.cc: New file.
8729 * unittests/basic_string_view/typedefs.cc: New file.
8730 * unittests/basic_string_view/types/1.cc: New file.
8731
8732 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8733
8734 * common/gdb_string_view.h: Remove libstdc++ implementation
8735 details, adjust to gdb reality.
8736 * common/gdb_string_view.tcc: Likewise.
8737 * cli/cli-script.c (struct string_view): Remove.
8738 (user_args) <m_args>: Change element type to gdb::string_view.
8739 (user_args::insert_args): Adjust.
8740
8741 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8742
8743 * common/gdb_string_view.h: New file.
8744 * common/gdb_string_view.tcc: New file.
8745
8746 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8747
8748 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
8749 * configure: Re-generate.
8750
8751 2018-04-09 Pedro Alves <palves@redhat.com>
8752
8753 * gdbarch.sh: Include "observable.h" instead of "observer.h".
8754 (set_target_gdbarch): Call
8755 gdb::observers::architecture_changed.notify instead of
8756 observer_notify_architecture_changed.
8757
8758 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8759
8760 * tracepoint.c (struct current_traceframe_cleanup): Remove.
8761 (do_restore_current_traceframe_cleanup): Remove.
8762 (restore_current_traceframe_cleanup_dtor): Remove.
8763 (make_cleanup_restore_current_traceframe): Remove.
8764 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
8765 New.
8766 * tracepoint.h (struct scoped_restore_current_traceframe): New.
8767 * infrun.c (fetch_inferior_event): Use
8768 scoped_restore_current_traceframe.
8769
8770 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8771
8772 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
8773 Remove.
8774 <n_allocated_type_units>: Remove.
8775 <all_type_units>: Change to std::vector.
8776 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
8777 to std::vector change.
8778 (dwarf2_per_objfile::get_cutu): Likewise.
8779 (dwarf2_per_objfile::get_tu): Likewise.
8780 (create_signatured_type_table_from_index): Likewise.
8781 (create_signatured_type_table_from_debug_names): Likewise.
8782 (dw2_symtab_iter_next): Likewise.
8783 (dw2_print_stats): Likewise.
8784 (dw2_expand_all_symtabs): Likewise.
8785 (dw2_expand_marked_cus): Likewise.
8786 (dw2_debug_names_iterator::next): Likewise.
8787 (dwarf2_initialize_objfile): Likewise.
8788 (add_signatured_type_cu_to_table): Likewise.
8789 (create_all_type_units): Likewise.
8790 (add_type_unit): Likewise.
8791 (struct tu_abbrev_offset): Add constructor.
8792 (build_type_psymtabs_1): Adjust to std::vector change.
8793 (print_tu_stats): Likewise.
8794 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
8795 (write_debug_names): Likewise.
8796
8797 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8798
8799 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
8800 Make an std::vector.
8801 <n_comp_units>: Remove.
8802 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
8803 to std::vector change.
8804 (dwarf2_per_objfile::get_cutu): Likewise.
8805 (dwarf2_per_objfile::get_cu): Likewise.
8806 (create_cus_from_index): Likewise.
8807 (create_addrmap_from_index): Likewise.
8808 (create_addrmap_from_aranges): Likewise.
8809 (dwarf2_read_index): Likewise.
8810 (dw2_find_last_source_symtab): Likewise.
8811 (dw2_map_symtabs_matching_filename): Likewise.
8812 (dw2_symtab_iter_next): Likewise.
8813 (dw2_print_stats): Likewise.
8814 (dw2_expand_all_symtabs): Likewise.
8815 (dw2_expand_symtabs_with_fullname): Likewise.
8816 (dw2_expand_marked_cus): Likewise.
8817 (dw2_map_symbol_filenames): Likewise.
8818 (create_cus_from_debug_names): Likewise.
8819 (dwarf2_read_debug_names): Likewise.
8820 (dw2_debug_names_iterator::next): Likewise.
8821 (dwarf2_initialize_objfile): Likewise.
8822 (set_partial_user): Likewise.
8823 (dwarf2_build_psymtabs_hard): Likewise.
8824 (read_comp_units_from_section): Remove arguments, adjust to
8825 std::vector change.
8826 (create_all_comp_units): Adjust to std::vector and
8827 read_comp_units_from_section changes.
8828 (dwarf2_find_containing_comp_unit): Adjust to std::vector
8829 change.
8830 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
8831 (psyms_seen_size): Likewise.
8832 (write_gdbindex): Likewise.
8833 (write_debug_names): Likewise.
8834
8835 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8836
8837 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
8838 with dwarf2_per_objfile.
8839 (create_cus_from_index): Likewise.
8840 (create_signatured_type_table_from_index): Likewise.
8841 (dwarf2_read_index): Likewise.
8842 (dwarf2_initialize_objfile): Likewise.
8843 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
8844 per_cu rather than get_dwarf2_per_objfile.
8845
8846 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8847
8848 * dwarf2read.h (struct signatured_type): Forward declare.
8849 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
8850 New methods.
8851 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
8852 (dw2_get_cutu): ...this.
8853 (dwarf2_per_objfile::get_cu): Rename from...
8854 (dw2_get_cu): ...this.
8855 (dwarf2_per_objfile::get_tu): New.
8856 (create_addrmap_from_index): Adjust.
8857 (create_addrmap_from_aranges): Adjust.
8858 (dw2_find_last_source_symtab): Adjust.
8859 (dw2_map_symtabs_matching_filename): Adjust.
8860 (dw2_symtab_iter_next): Adjust.
8861 (dw2_print_stats): Adjust.
8862 (dw2_expand_all_symtabs): Adjust.
8863 (dw2_expand_symtabs_with_fullname): Adjust.
8864 (dw2_expand_marked_cus): Adjust.
8865 (dw_expand_symtabs_matching_file_matcher): Adjust.
8866 (dw2_map_symbol_filenames): Adjust.
8867 (dw2_debug_names_iterator::next): Adjust.
8868 (dwarf2_initialize_objfile): Adjust.
8869 (set_partial_user): Adjust.
8870 (dwarf2_build_psymtabs_hard): Adjust.
8871
8872 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8873
8874 * dwarf2read.c (create_signatured_type_table_from_debug_names):
8875 Remove unused variables.
8876 (dw2_map_symtabs_matching_filename): Likewise.
8877 (dwarf2_record_block_ranges): Likewise.
8878 (dwarf2_read_addr_index): Likewise.
8879 (follow_die_offset): Likewise.
8880
8881 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8882
8883 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
8884 to symbol_file_add_main.
8885
8886 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8887
8888 PR mi/22299
8889 * mi/mi-console.c (do_fputc_async_safe): New.
8890 (mi_console_file::write_async_safe): New.
8891 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
8892 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
8893 New.
8894 * ui-file.c (ui_file::putstrn): Adjust call to
8895 fputstrn_unfiltered.
8896 * utils.c (printchar): Replace do_fputs and do_fprintf
8897 parameters by do_fputc.
8898 (fputstr_filtered): Adjust call to printchar.
8899 (fputstr_unfiltered): Likewise.
8900 (fputstrn_filtered): Likewise.
8901 (fputstrn_unfiltered): Add do_fputc parameter, pass to
8902 printchar.
8903 * utils.h (do_fputc_ftype): New typedef.
8904 (fputstrn_unfiltered): Add do_fputc parameter.
8905
8906 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8907
8908 * regformats/i386/i386-avx.dat: Remove.
8909
8910 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
8911
8912 PR gdb/22979
8913 * amd64-tdep.c (amd64_none_init_abi): New function.
8914 (amd64_x32_none_init_abi): New function.
8915 (_initialize_amd64_tdep): Register handlers for x86-64 and
8916 x64_32 with GDB_OSABI_NONE.
8917 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
8918 GDB_OSABI_NONE osabi.
8919
8920 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
8921
8922 PR gdb/22980
8923 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
8924 GDB_OSABI_NONE.
8925 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
8926 * osabi.c (gdb_osabi_names): Add "unknown" entry.
8927
8928 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
8929
8930 * common/byte-vector.h (char_vector): New type.
8931 * target.h (target_read_alloc): Return
8932 gdb::optional<byte_vector>.
8933 (target_read_stralloc): Return gdb::optional<char_vector>.
8934 (target_get_osdata): Return gdb::optional<char_vector>.
8935 * target.c (target_read_alloc_1): Templatize. Replacement
8936 manual memory management with vector.
8937 (target_read_alloc): Change return type, adjust.
8938 (target_read_stralloc): Change return type, adjust.
8939 (target_get_osdata): Change return type, adjust.
8940 * auxv.c (struct auxv_info) <length>: Remove.
8941 <data>: Change type to gdb::optional<byte_vector>.
8942 (auxv_inferior_data_cleanup): Free auxv_info with delete.
8943 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
8944 (target_auxv_search): Adjust.
8945 (fprint_target_auxv): Adjust.
8946 * avr-tdep.c (avr_io_reg_read_command): Adjust.
8947 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
8948 (linux_make_corefile_notes): Adjust.
8949 * osdata.c (get_osdata): Adjust.
8950 * remote.c (remote_get_threads_with_qxfer): Adjust.
8951 (remote_memory_map): Adjust.
8952 (remote_traceframe_info): Adjust.
8953 (btrace_read_config): Adjust.
8954 (remote_read_btrace): Adjust.
8955 (remote_pid_to_exec_file): Adjust.
8956 * solib-aix.c (solib_aix_get_library_list): Adjust.
8957 * solib-dsbt.c (decode_loadmap): Don't free buf.
8958 (dsbt_get_initial_loadmaps): Adjust.
8959 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
8960 * solib-target.c (solib_target_current_sos): Adjust.
8961 * tracepoint.c (sdata_make_value): Adjust.
8962 * xml-support.c (xinclude_start_include): Adjust.
8963 (xml_fetch_content_from_file): Adjust.
8964 * xml-support.h (xml_fetch_another): Change return type.
8965 (xml_fetch_content_from_file): Change return type.
8966 * xml-syscall.c (xml_init_syscalls_info): Adjust.
8967 * xml-tdesc.c (file_read_description_xml): Adjust.
8968 (fetch_available_features_from_target): Change return type.
8969 (target_fetch_description_xml): Adjust.
8970 (target_read_description_xml): Adjust.
8971
8972 2018-04-06 Tom Tromey <tom@tromey.com>
8973
8974 * value.c (~value): Update.
8975 (struct value) <contents>: Now unique_xmalloc_ptr.
8976 (value_contents_bits_eq, allocate_value_contents)
8977 (value_contents_raw, value_contents_all_raw)
8978 (value_contents_for_printing, value_contents_for_printing_const)
8979 (set_value_enclosing_type): Update.
8980
8981 2018-04-06 Tom Tromey <tom@tromey.com>
8982
8983 * value.c (range_s): Remove typedef, VEC.
8984 (struct range): Add operator<.
8985 (range_lessthan): Remove.
8986 (ranges_contain): Change type.
8987 (~value): Update.
8988 (struct value) <unavailable, optimized_out>: Now std::vector.
8989 (value_entirely_available)
8990 (value_entirely_covered_by_range_vector)
8991 (value_entirely_unavailable, value_entirely_optimized_out):
8992 Update.
8993 (insert_into_bit_range_vector): Change argument type.
8994 (find_first_range_overlap): Likewise.
8995 (struct ranges_and_idx, value_contents_bits_eq)
8996 (require_not_optimized_out, require_available): Update.
8997 (ranges_copy_adjusted): Change argument types.
8998 (value_optimized_out, value_copy, value_fetch_lazy): Update.
8999
9000 2018-04-06 Tom Tromey <tom@tromey.com>
9001
9002 * value.c (~value): Update.
9003 (struct value) <parent>: Now a value_ref_ptr.
9004 (value_parent, set_value_parent, value_address, value_copy):
9005 Update.
9006
9007 2018-04-06 Tom Tromey <tom@tromey.com>
9008
9009 * value.c (struct value): Add constructor, destructor, and member
9010 initializers.
9011 (allocate_value_lazy, value_decref): Update.
9012
9013 2018-04-06 Tom Tromey <tom@tromey.com>
9014
9015 * value.c (struct value) <released, next>: Remove.
9016 (all_values): Now a std::vector.
9017 (allocate_value_lazy): Update.
9018 (value_next): Remove.
9019 (value_mark, value_free_to_mark, release_value)
9020 (value_release_to_mark): Update.
9021
9022 2018-04-06 Tom Tromey <tom@tromey.com>
9023
9024 * value.h (fetch_subexp_value, value_release_to_mark): Update.
9025 (free_value_chain): Remove.
9026 * value.c (free_value_chain): Remove.
9027 (value_release_to_mark): Return a std::vector.
9028 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
9029 std::vector.
9030 (check_condition): Update.
9031 * eval.c (fetch_subexp_value): Change "val_chain" to a
9032 std::vector.
9033 * breakpoint.c (update_watchpoint): Update.
9034 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
9035
9036 2018-04-06 Tom Tromey <tom@tromey.com>
9037
9038 * value.h (free_all_values): Remove.
9039 * value.c (free_all_values): Remove.
9040
9041 2018-04-06 Tom Tromey <tom@tromey.com>
9042
9043 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
9044 (value_history_chain, value_history_count): Remove.
9045 (value_history): New global.
9046 (record_latest_value, access_value_history, show_values)
9047 (preserve_values): Update.
9048
9049 2018-04-06 Tom Tromey <tom@tromey.com>
9050
9051 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
9052 * varobj.c (varobj_set_display_format, varobj_set_value)
9053 (install_default_visualizer, construct_visualizer)
9054 (install_new_value, ~varobj, varobj_get_value_type)
9055 (my_value_of_variable, varobj_editable_p): Update.
9056 * c-varobj.c (c_describe_child, c_value_of_variable)
9057 (cplus_number_of_children, cplus_describe_child): Update.
9058 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
9059 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
9060 (ada_value_of_variable, ada_value_is_changeable_p): Update.
9061
9062 2018-04-06 Tom Tromey <tom@tromey.com>
9063
9064 * printcmd.c (last_examine_address): Change type to
9065 value_ref_ptr.
9066 (do_examine, x_command): Update.
9067
9068 2018-04-06 Tom Tromey <tom@tromey.com>
9069
9070 * value.c (release_value): Update.
9071 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
9072 (struct bpstats) <val>: Now a value_ref_ptr.
9073 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
9074 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
9075 (~watchpoint, print_it_watchpoint, watch_command_1)
9076 (invalidate_bp_value_on_memory_change): Update.
9077
9078 2018-04-06 Tom Tromey <tom@tromey.com>
9079
9080 * varobj.c (varobj_clear_saved_item)
9081 (update_dynamic_varobj_children, install_new_value, ~varobj):
9082 Update.
9083 * value.h (value_incref): Move declaration earlier.
9084 (value_decref): Rename from value_free.
9085 (struct value_ref_policy): New.
9086 (value_ref_ptr): New typedef.
9087 (struct value_deleter): Remove.
9088 (gdb_value_up): Remove typedef.
9089 (release_value): Change return type.
9090 (release_value_or_incref): Remove.
9091 * value.c (set_value_parent): Update.
9092 (value_incref): Change return type.
9093 (value_decref): Rename from value_free.
9094 (value_free_to_mark, free_all_values, free_value_chain): Update.
9095 (release_value): Return value_ref_ptr.
9096 (release_value_or_incref): Remove.
9097 (record_latest_value, set_internalvar, clear_internalvar):
9098 Update.
9099 * stack.c (info_frame_command): Don't call value_free.
9100 * python/py-value.c (valpy_dealloc, valpy_new)
9101 (value_to_value_object): Update.
9102 * printcmd.c (do_examine): Update.
9103 * opencl-lang.c (lval_func_free_closure): Update.
9104 * mi/mi-main.c (register_changed_p): Don't call value_free.
9105 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
9106 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
9107 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
9108 value_free.
9109 * guile/scm-value.c (vlscm_free_value_smob)
9110 (vlscm_scm_from_value): Update.
9111 * frame.c (frame_register_unwind, frame_unwind_register_signed)
9112 (frame_unwind_register_unsigned, get_frame_register_bytes)
9113 (put_frame_register_bytes): Don't call value_free.
9114 * findvar.c (address_from_register): Don't call value_free.
9115 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
9116 * dwarf2loc.c (entry_data_value_free_closure)
9117 (value_of_dwarf_reg_entry, free_pieced_value_closure)
9118 (dwarf2_evaluate_loc_desc_full): Update.
9119 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
9120 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
9121 (~watchpoint, watch_command_1)
9122 (invalidate_bp_value_on_memory_change): Update.
9123 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
9124
9125 2018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
9126
9127 PR gdb/23022
9128 * warning.m4: Add -Wno-error=deprecated-register.
9129 * configure: Re-generate.
9130
9131 2018-04-05 Tom Tromey <tom@tromey.com>
9132
9133 * linespec.h: Remove include of "vec.h".
9134
9135 2018-04-05 Tom Tromey <tom@tromey.com>
9136
9137 * linespec.c (typep): Remove typedef.
9138 (find_methods, find_superclass_methods): Take a std::vector.
9139 (find_method): Use std::vector.
9140
9141 2018-04-05 Tom Tromey <tom@tromey.com>
9142
9143 * utils.c (compare_strings): Remove.
9144 * utils.h (compare_strings): Remove.
9145 * objc-lang.h (find_imps): Update.
9146 * objc-lang.c (find_methods): Take a std::vector.
9147 (uniquify_strings, find_imps): Likewise.
9148 * linespec.c (find_methods): Take a std::vector.
9149 (decode_objc): Use std::vector.
9150 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
9151 a std::vector.
9152 (find_method, find_function_symbols): Use std::vector.
9153
9154 2018-04-05 Tom Tromey <tom@tromey.com>
9155
9156 * completer.c (completion_tracker::completion_tracker): Remove
9157 cast.
9158 (completion_tracker::discard_completions): Likewise.
9159 * breakpoint.c (ambiguous_names_p): Remove cast.
9160 * ada-lang.c (_initialize_ada_language): Remove cast.
9161 * utils.h (streq): Update.
9162 (streq_hash): Add new declaration.
9163 * utils.c (streq): Return bool.
9164 (streq_hash): New function.
9165
9166 2018-04-05 Tom Tromey <tom@tromey.com>
9167
9168 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
9169 Remove a string copy.
9170
9171 2018-04-05 Tom Tromey <tom@tromey.com>
9172
9173 * linespec.c (filter_results): Use std::vector.
9174 (decode_line_2, decode_line_full): Update.
9175
9176 2018-04-05 Tom Tromey <tom@tromey.com>
9177
9178 * linespec.c (canonical_to_fullform): Return std::string.
9179 (filter_results): Update.
9180 (struct decode_line_2_item): Add constructor.
9181 <fullform, displayform>: Now std::string.
9182 (decode_line_2_compare_items): Now a std::sort comparator.
9183 (decode_line_2): Update.
9184
9185 2018-04-05 Tom Tromey <tom@tromey.com>
9186
9187 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
9188 (unexpected_linespec_error): Update.
9189 (linespec_parse_basic, parse_linespec): Update.
9190
9191 2018-04-05 Tom Tromey <tom@tromey.com>
9192
9193 * linespec.c (linespec_parse_basic): Reindent.
9194
9195 2018-04-05 Tom Tromey <tom@tromey.com>
9196
9197 * minsyms.h (iterate_over_minimal_symbols): Update.
9198 * minsyms.c (iterate_over_minimal_symbols): Take a
9199 gdb::function_view.
9200 * linespec.c (struct collect_minsyms): Remove.
9201 (compare_msyms): Now a std::sort comparator.
9202 (add_minsym): Add parameters.
9203 (search_minsyms_for_name): Update. Use std::vector.
9204
9205 2018-04-03 Tom Tromey <tom@tromey.com>
9206
9207 * mipsread.c (read_alphacoff_dynamic_symtab): Use
9208 gdb::byte_vector.
9209
9210 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
9211
9212 * MAINTAINERS (Write After Approval): Add Weimin Pan.
9213
9214 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
9215
9216 PR gdb/16959
9217 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
9218 printing static type.
9219
9220 2018-04-01 Tom Tromey <tom@tromey.com>
9221
9222 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
9223 (rs6000_xfer_shared_libraries): Update.
9224
9225 2018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
9226
9227 * common/gdb_vecs.h (char_ptr): Remove.
9228 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
9229
9230 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
9231
9232 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
9233 with std::vector.
9234 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
9235
9236 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
9237
9238 * tracepoint.h (struct uploaded_tp): Initialize fields.
9239 <actions, step_actions, cmd_strings>: Change type to
9240 std::vector<char *>.
9241 * tracepoint.c (get_uploaded_tp): Allocate with new.
9242 (free_uploaded_tps): Free with delete.
9243 (parse_tracepoint_definition): Adjust to std::vector change.
9244 * breakpoint.c (read_uploaded_action): Likewise.
9245 (create_tracepoint_from_upload): Likewise.
9246 * ctf.c (ctf_write_uploaded_tp): Likewise.
9247 (SET_ARRAY_FIELD): Likewise.
9248 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
9249
9250 2018-03-30 Tom Tromey <tom@tromey.com>
9251
9252 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
9253 std::unique_ptr.
9254 (svr4_keep_data_in_core): Update.
9255 (svr4_read_so_list): Update.
9256
9257 2018-03-30 Tom Tromey <tom@tromey.com>
9258
9259 * windows-nat.c (handle_output_debug_string, handle_exception):
9260 Update.
9261 * target.h (target_read_string): Update.
9262 * target.c (target_read_string): Change "string" to
9263 unique_xmalloc_ptr.
9264 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
9265 Update.
9266 * solib-frv.c (frv_current_sos): Update.
9267 * solib-dsbt.c (dsbt_current_sos): Update.
9268 * solib-darwin.c (darwin_current_sos): Update.
9269 * linux-thread-db.c (inferior_has_bug): Update.
9270 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
9271 Update. Remove alloca.
9272 * ada-lang.c (ada_main_name): Update.
9273
9274 2018-03-30 Tom Tromey <tom@tromey.com>
9275
9276 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
9277 (struct dwo_file_deleter): New.
9278 (dwo_file_up): New typedef.
9279 (open_and_init_dwo_file): Use dwo_file_up.
9280 (free_dwo_file_cleanup): Remove.
9281
9282 2018-03-30 Tom Tromey <tom@tromey.com>
9283
9284 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
9285 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
9286
9287 2018-03-30 Tom Tromey <tom@tromey.com>
9288
9289 * dwarf2read.c (class free_cached_comp_units): New class.
9290 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
9291 (free_cached_comp_units): Remove function.
9292
9293 2018-03-30 Tom Tromey <tom@tromey.com>
9294
9295 * utils.h (make_cleanup_unpush_target): Remove.
9296 * inf-ptrace.c (struct target_unpusher): New.
9297 (target_unpush_up) New typedef.
9298 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
9299 target_unpush_up.
9300 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
9301
9302 2018-03-27 Tom Tromey <tom@tromey.com>
9303
9304 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
9305
9306 2018-03-27 Pedro Alves <palves@redhat.com>
9307 Tom Tromey <tom@tromey.com>
9308
9309 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
9310 destructor. Now a class.
9311 (gdb_readline_wrapper_cleanup): Remove function.
9312 (gdb_readline_wrapper): Remove cleanups.
9313
9314 2018-03-27 Tom Tromey <tom@tromey.com>
9315
9316 * typeprint.h (struct type_print_options) <local_typedefs,
9317 global_typedefs>: Remove "struct" keyword.
9318 (class typedef_hash_table): New class.
9319 (recursively_update_typedef_hash, add_template_parameters)
9320 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
9321 (find_typedef_in_hash): Don't declare.
9322 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
9323 (typedef_hash_table::recursively_update): Rename from
9324 recursively_update_typedef_hash. Now a member.
9325 (typedef_hash_table::add_template_parameters): Rename from
9326 add_template_parameters. Now a member.
9327 (typedef_hash_table::typedef_hash_table): Now a constructor;
9328 rename from create_typedef_hash.
9329 (typedef_hash_table::~typedef_hash_table): Now a destructor;
9330 rename from free_typedef_hash.
9331 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
9332 (do_free_global_table): Remove.
9333 (typedef_hash_table::typedef_hash_table): New constructor; renamed
9334 from copy_type_recursive.
9335 (create_global_typedef_table): Remove.
9336 (typedef_hash_table::find_global_typedef): Now a member of
9337 typedef_hash_table.
9338 (typedef_hash_table::find_typedef): Rename from
9339 find_typedef_in_hash; now a member.
9340 (whatis_exp): Update.
9341 * extension.h (struct ext_lang_type_printers): Add constructor and
9342 destructor.
9343 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
9344 declare.
9345 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
9346 Now a constructor; rename from start_ext_lang_type_printers.
9347 (ext_lang_type_printers): Now a destructor; rename from
9348 free_ext_lang_type_printers.
9349 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
9350 Update.
9351 (c_type_print_base_struct_union): Update. Remove cleanups.
9352
9353 2018-03-27 Tom Tromey <tom@tromey.com>
9354
9355 * dwarf-index-write.c: Include <cmath>.
9356
9357 2018-03-27 Joel Brobecker <brobecker@adacore.com>
9358
9359 * NEWS: Add entry describing new "set|show varsize-limit" command.
9360 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
9361 command.
9362 * printcmd.c (_initialize_printcmd): Add "set var" alias of
9363 "set variable".
9364
9365 2018-03-27 Simon Marchi <simon.marchi@ericsson.com>
9366
9367 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
9368 dwarf-index-write.c
9369 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
9370 * dwarf-index-common.c: New file.
9371 * dwarf-index-common.h: New file.
9372 * dwarf-index-write.c: New file.
9373 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
9374 (struct dwarf2_section_info): Move from here.
9375 (dwarf2_section_info_def): Likewise.
9376 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
9377 (offset_type): Likewise.
9378 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
9379 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
9380 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
9381 (byte_swap): Likewise.
9382 (MAYBE_SWAP): Likewise.
9383 (dwarf2_per_cu_ptr): Likewise.
9384 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
9385 (struct tu_stats): Likewise.
9386 (struct dwarf2_per_objfile): Likewise.
9387 (struct dwarf2_per_cu_data): Likewise.
9388 (struct signatured_type): Likewise.
9389 (sig_type_ptr): Likewise.
9390 (DEF_VEC_P (sig_type_ptr)): Likewise.
9391 (INDEX4_SUFFIX): Likewise.
9392 (INDEX5_SUFFIX): Likewise.
9393 (DEBUG_STR_SUFFIX): Likewise.
9394 (dwarf2_read_section): Make non-static.
9395 (mapped_index_string_hash): Move from here.
9396 (dwarf5_djb_hash): Likewise.
9397 (file_write): Likewise.
9398 (class data_buf): Likewise.
9399 (struct symtab_index_entry): Likewise.
9400 (struct mapped_symtab): Likewise.
9401 (find_slot): Likewise.
9402 (hash_expand): Likewise.
9403 (add_index_entry): Likewise.
9404 (uniquify_cu_indices): Likewise.
9405 (class c_str_view): Likewise.
9406 (class c_str_view_hasher): Likewise.
9407 (class vector_hasher): Likewise.
9408 (write_hash_table): Likewise.
9409 (psym_index_map): Likewise.
9410 (struct addrmap_index_data): Likewise.
9411 (add_address_entry): Likewise.
9412 (add_address_entry_worker): Likewise.
9413 (write_address_map): Likewise.
9414 (symbol_kind): Likewise.
9415 (write_psymbols): Likewise.
9416 (struct signatured_type_index_data): Likewise.
9417 (write_one_signatured_type): Likewise.
9418 (recursively_count_psymbols): Likewise.
9419 (recursively_write_psymbols): Likewise.
9420 (class debug_names): Likewise.
9421 (check_dwarf64_offsets): Likewise.
9422 (psyms_seen_size): Likewise.
9423 (write_gdbindex): Likewise.
9424 (write_debug_names): Likewise.
9425 (assert_file_size): Likewise.
9426 (write_psymtabs_to_index): Likewise.
9427 (save_gdb_index_command): Likewise.
9428 (_initialize_dwarf2_read): Don't register the "save gdb-index"
9429 command.
9430 * dwarf2read.h: New file.
9431
9432 2018-03-27 Joel Brobecker <brobecker@adacore.com>
9433
9434 PR gdb/22670
9435 * dwarf2read.c (dwarf2_physname): Do not return the demangled
9436 symbol name if the CU's language stores symbol names in linkage
9437 format.
9438 * language.h (struct language_defn)
9439 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
9440 all instances of this struct.
9441
9442 2018-03-26 Tom Tromey <tom@tromey.com>
9443
9444 * stack.c (backtrace_command_1): Remove verbose code.
9445
9446 2018-03-26 Tom Tromey <tom@tromey.com>
9447
9448 * python/py-framefilter.c (py_print_type): Don't catch
9449 exceptions. Return void.
9450 (py_print_value): Likewise.
9451 (py_print_single_arg): Likewise.
9452 (enumerate_args): Don't catch exceptions.
9453 (py_print_args): Likewise.
9454 (py_print_frame): Likewise.
9455 (gdbpy_apply_frame_filter): Catch exceptions here.
9456
9457 2018-03-26 Tom Tromey <tom@tromey.com>
9458
9459 * stack.c (_initialize_stack): Remove trailing newlines from help
9460 text. Add "Usage" line to "backtrace" help.
9461
9462 2018-03-26 Tom Tromey <tom@tromey.com>
9463
9464 PR python/16486:
9465 * python/py-framefilter.c (py_print_args): Call wrap_hint.
9466
9467 2018-03-26 Tom Tromey <tom@tromey.com>
9468
9469 * python/py-framefilter.c (py_print_single_arg): Return
9470 EXT_LANG_BT_ERROR from catch.
9471
9472 2018-03-26 Tom Tromey <tom@tromey.com>
9473
9474 PR backtrace/15584:
9475 * stack.c (backtrace_command_1): Move some code into no-filters
9476 "if".
9477
9478 2018-03-26 Tom Tromey <tom@tromey.com>
9479
9480 * python/py-framefilter.c (throw_quit_or_print_exception): New
9481 function.
9482 (gdbpy_apply_frame_filter): Use it.
9483
9484 2018-03-26 Tom Tromey <tom@tromey.com>
9485
9486 PR cli/17716:
9487 * python/py-framefilter.c (py_print_type, py_print_value)
9488 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
9489 RETURN_MASK_ERROR.
9490
9491 2018-03-26 Tom Tromey <tom@tromey.com>
9492
9493 * python/py-framefilter.c (enumerate_args): Use
9494 gdb::unique_xmalloc_ptr.
9495
9496 2018-03-26 Tom Tromey <tom@tromey.com>
9497
9498 * python/py-framefilter.c (py_print_frame): Return
9499 EXT_LANG_BT_OK.
9500 (gdbpy_apply_frame_filter): Update comment.
9501 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
9502 Remove.
9503 <EXT_LANG_BT_NO_FILTERS>: Change value.
9504
9505 2018-03-26 Tom Tromey <tom@tromey.com>
9506
9507 PR backtrace/15582:
9508 * stack.c (backtrace_command): Parse "hide" argument.
9509 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
9510 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
9511 constant.
9512
9513 2018-03-26 Tom Tromey <tom@tromey.com>
9514
9515 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
9516 add "flags".
9517 (backtrace_command): Remove "fulltrace", add "flags".
9518
9519 2018-03-26 Tom Tromey <tom@tromey.com>
9520
9521 * stack.c (backtrace_command): Rewrite command line parsing.
9522
9523 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
9524
9525 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
9526
9527 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
9528
9529 * filename-seen-cache.h: Add include guard.
9530
9531 2018-03-26 Keith Seitz <keiths@redhat.com>
9532
9533 * symfile.c (place_section): Remove "struct" from section_addr_info
9534 in comment.
9535 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
9536 "struct" keyword from section_addr_info.
9537
9538 2018-03-26 Alan Hayward <alan.hayward@arm.com>
9539
9540 * regformats/regdef.h (reg): Add constructors.
9541
9542 2018-03-25 Pedro Alves <palves@redhat.com>
9543
9544 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
9545 if then/else bodies in var_func_name extraction.
9546
9547 2018-03-23 Weimin Pan <weimin.pan@oracle.com>
9548
9549 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
9550 lookup_minimal_symbol() to find symbol entry.
9551 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
9552
9553 2018-03-23 Keith Seitz <keiths@redhat.com>
9554
9555 PR c++/22968
9556 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
9557 nested type definitions for C++, too.
9558
9559 2018-03-23 Tom Tromey <tom@tromey.com>
9560
9561 * machoread.c (struct oso_el): Add a constructor. Don't define as
9562 a typedef.
9563 (macho_register_oso): Remove.
9564 (macho_symtab_read): Take a std::vector.
9565 (oso_el_compare_name): Now a std::sort comparator.
9566 (macho_symfile_read_all_oso): Take a std::vector.
9567 (macho_symfile_read): Use std::vector. Remove cleanups.
9568
9569 2018-03-22 Tom Tromey <tom@tromey.com>
9570
9571 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
9572 (record_full_goto_bookmark): Use std::string.
9573
9574 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
9575
9576 PR tdep/18295
9577 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
9578 a single mask.
9579
9580 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
9581
9582 * rs6000-tdep.c (store_insn_p): New function.
9583 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
9584 and cr_reg to their unshifted values. Use store_insn_p to
9585 match LR saves using either R1 or fdata->alloca_reg. Use
9586 store_insn_p to match CR saves. Set alloca_reg_offset
9587 when alloca_reg and framep are set. Remove lr_reg shift
9588 when assigning to fdata->lr_register.
9589
9590 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
9591
9592 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
9593 command line args instead of emitting a warning.
9594
9595 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
9596
9597 * tracepoint.h (struct static_tracepoint_marker): Initialize
9598 fields, define default constructor, move constructor and move
9599 assignment, disable the rest.
9600 <str_id, extra>: Make std::string.
9601 (release_static_tracepoint_marker): Remove.
9602 (free_current_marker): Remove.
9603 * tracepoint.c (free_current_marker): Remove.
9604 (parse_static_tracepoint_marker_definition): Adjust to
9605 std::string, use new hex2str overload.
9606 (release_static_tracepoint_marker): Remove.
9607 (print_one_static_tracepoint_marker): Get marker by reference
9608 and adjust to std::string.
9609 (info_static_tracepoint_markers_command): Adjust to std::vector
9610 changes
9611 * target.h (static_tracepoint_marker_p): Remove typedef.
9612 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
9613 (struct target_ops) <to_static_tracepoint_marker_at>: Return
9614 bool.
9615 <to_static_tracepoint_markers_by_strid>: Return std::vector.
9616 * target-debug.h
9617 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
9618 (target_debug_print_std_vector_static_tracepoint_marker): New.
9619 (target_debug_print_struct_static_tracepoint_marker_p): Rename
9620 to...
9621 (target_debug_print_static_tracepoint_marker_p): ... this.
9622 * target-delegates.c: Re-generate.
9623 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
9624 Make std::string.
9625 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
9626 (decode_static_tracepoint_spec): Adjust to std::vector.
9627 (tracepoint_print_one_detail): Adjust to std::string.
9628 (strace_marker_decode_location): Adjust to std::string.
9629 (update_static_tracepoint): Adjust to std::string, remove call
9630 to release_static_tracepoint_marker.
9631 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
9632 Adjust to std::vector.
9633 * remote.c (remote_static_tracepoint_marker_at): Return bool.
9634 (remote_static_tracepoint_markers_by_strid): Adjust to
9635 std::vector.
9636 * common/rsp-low.h (hex2str): New overload with explicit count
9637 of bytes.
9638 * common/rsp-low.c (hex2str): New overload with explicit count
9639 of bytes.
9640 * unittests/rsp-low-selftests.c (test_hex2str): New function.
9641 (_initialize_rsp_low_selftests): Add test_hex2str test.
9642 * unittests/tracepoint-selftests.c
9643 (test_parse_static_tracepoint_marker_definition): Adjust to
9644 std::string.
9645
9646 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
9647
9648 * tracepoint.c (parse_static_tracepoint_marker_definition):
9649 Consider case where the definition is followed by more
9650 definitions.
9651 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9652 tracepoint-selftests.c.
9653 * unittests/tracepoint-selftests.c: New.
9654
9655 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
9656
9657 * MAINTAINERS (Write After Approval): Add Pedro Franco de
9658 Carvalho.
9659
9660 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
9661
9662 * symtab.c (find_pc_sect_line): fixed indentation.
9663
9664 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
9665
9666 * symtab.c (find_pc_sect_line): now uses binary search.
9667
9668 2018-03-19 Tom Tromey <tom@tromey.com>
9669
9670 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
9671 "IDENT" production.
9672
9673 2018-03-19 Pedro Alves <palves@redhat.com>
9674 Tom Tromey <tom@tromey.com>
9675
9676 * unittests/observable-selftests.c: New file.
9677 * common/observable.h: New file.
9678 * observable.h: New file.
9679 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
9680 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
9681 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
9682 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
9683 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
9684 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
9685 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
9686 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
9687 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
9688 python/py-breakpoint.c, python/py-finishbreakpoint.c,
9689 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
9690 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
9691 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
9692 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
9693 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
9694 tui/tui-interp.c, valops.c: Update all users.
9695 * tui/tui-hooks.c (tui_bp_created_observer)
9696 (tui_bp_deleted_observer, tui_bp_modified_observer)
9697 (tui_inferior_exit_observer, tui_before_prompt_observer)
9698 (tui_normal_stop_observer, tui_register_changed_observer):
9699 Remove.
9700 (tui_observers_token): New global.
9701 (attach_or_detach, tui_attach_detach_observers): New functions.
9702 (tui_install_hooks, tui_remove_hooks): Use
9703 tui_attach_detach_observers.
9704 * record-btrace.c (record_btrace_thread_observer): Remove.
9705 (record_btrace_thread_observer_token): New global.
9706 * observer.sh: Remove.
9707 * observer.c: Rename to observable.c.
9708 * observable.c (namespace gdb_observers): Define new objects.
9709 (observer_debug): Move into gdb_observers namespace.
9710 (struct observer, struct observer_list, xalloc_observer_list_node)
9711 (xfree_observer_list_node, generic_observer_attach)
9712 (generic_observer_detach, generic_observer_notify): Remove.
9713 (_initialize_observer): Update.
9714 Don't include observer.inc.
9715 * Makefile.in (generated_files): Remove observer.h, observer.inc.
9716 (clean mostlyclean): Likewise.
9717 (observer.h, observer.inc): Remove targets.
9718 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
9719 (COMMON_SFILES): Use observable.c, not observer.c.
9720 * .gitignore: Remove observer.h.
9721
9722 2018-03-18 Tom Tromey <tom@tromey.com>
9723
9724 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
9725 gdb::def_vector.
9726 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
9727
9728 2018-03-17 Tom Tromey <tom@tromey.com>
9729
9730 * auto-load.c (auto_load_objfile_script_1): Use std::string.
9731
9732 2018-03-17 Tom Tromey <tom@tromey.com>
9733
9734 * target.c (class scoped_target_fd): New.
9735 (target_fileio_close_cleanup): Remove.
9736 (target_fileio_read_alloc_1): Use scoped_target_fd.
9737
9738 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
9739
9740 * silent-rules.mk: New.
9741 * Makefile.in: Include silent-rules.mk
9742 (srcdir, VPATH, top_srcdir): Move up.
9743 (COMPILE): Add ECHO_CXX.
9744 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
9745 (init.c): Add ECHO_INIT_C.
9746 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
9747 (version.c): Add ECHO_GEN.
9748 (printcmd.o): Add ECHO_CXX.
9749 (target-float.o): Add ECHO_CXX.
9750 (ada-exp.o): Add ECHO_CXX.
9751 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
9752 (insight$(EXEEXT)): Add ECHO_CXXLD.
9753 * gnulib/configure.ac: Add AM_SILENT_RULES.
9754 * gnulib/aclocal.m4: Re-generate.
9755 * gnulib/configure: Re-generate.
9756 * gnulib/import/Makefile.in: Re-generate.
9757
9758 2018-03-16 Tom Tromey <tom@tromey.com>
9759
9760 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
9761 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
9762 * utils.c (do_free_section_addr_info)
9763 (make_cleanup_free_section_addr_info): Remove.
9764 * symfile.h (struct other_sections): Add constructor.
9765 (struct section_addr_info): Remove.
9766 (section_addr_info): New typedef.
9767 (struct sym_fns) <sym_offsets>: Change type of parameter.
9768 (build_section_addr_info_from_objfile)
9769 (relative_addr_info_to_section_offsets, addr_info_make_relative)
9770 (default_symfile_offsets, symbol_file_add)
9771 (symbol_file_add_from_bfd)
9772 (build_section_addr_info_from_section_table): Update.
9773 (alloc_section_addr_info, free_section_addr_info): Don't declare.
9774 * symfile.c (alloc_section_addr_info): Remove.
9775 (build_section_addr_info_from_section_table): Change return type.
9776 Update.
9777 (build_section_addr_info_from_bfd)
9778 (build_section_addr_info_from_objfile): Likewise.
9779 (free_section_addr_info): Remove.
9780 (relative_addr_info_to_section_offsets): Change type of "addrs".
9781 (addrs_section_compar): Now a std::sort comparator.
9782 (addrs_section_sort): Change return type.
9783 (addr_info_make_relative): Change type of "addrs". Update.
9784 (default_symfile_offsets, syms_from_objfile_1)
9785 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
9786 (symbol_file_add_separate): Update.
9787 (symbol_file_add): Change type of "addrs". Update.
9788 (add_symbol_file_command): Update. Remove cleanups.
9789 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
9790 cleanups.
9791 * symfile-debug.c (debug_sym_offsets): Change type of "info".
9792 * solib.c (solib_read_symbols): Update.
9793 * objfiles.c (objfile_relocate): Update. Remove cleanups.
9794 * machoread.c (macho_symfile_offsets): Update.
9795 * jit.c (jit_bfd_try_read_symtab): Update.
9796
9797 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
9798
9799 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9800 unittests/utils-selftests.c.
9801 * unittests/utils-selftests.c: New file.
9802
9803 2018-03-14 Tom Tromey <tom@tromey.com>
9804
9805 PR cli/14977:
9806 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
9807 for NULL.
9808
9809 2018-03-14 Tom Tromey <tom@tromey.com>
9810
9811 PR cli/19918:
9812 * printcmd.c (printf_pointer): Allow "-" in format.
9813
9814 2018-03-14 Tom Tromey <tom@tromey.com>
9815
9816 * printcmd.c (_initialize_printcmd): Add usage to printf.
9817
9818 2018-03-14 Yao Qi <qiyao@sourceware.org>
9819
9820 * MAINTAINERS: Update my email address.
9821
9822 2018-03-13 Tom Tromey <tom@tromey.com>
9823
9824 * machoread.c (macho_check_dsym): Change filenamep to a
9825 std::string*.
9826 (macho_symfile_read): Update.
9827 * symfile.c (load_command): Use std::string.
9828
9829 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
9830
9831 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
9832 to error message string.
9833 (riscv_register_name): Use xsnprintf instead of sprintf.
9834 (riscv_insn::fetch_instruction): Use gdb_assert instead of
9835 internal_error.
9836 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
9837 error.
9838 (riscv_push_dummy_call): Likewise.
9839
9840 2018-03-12 Tom Tromey <tom@tromey.com>
9841
9842 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
9843 Use gdb::byte_vector.
9844 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
9845
9846 2018-03-12 Yao Qi <yao.qi@linaro.org>
9847
9848 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
9849 parameter type to readable_regcache.
9850 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
9851 the declaration.
9852
9853 2018-03-11 Tom Tromey <tom@tromey.com>
9854
9855 * dwarf2read.c (struct nextfield): Add initializers.
9856 (struct nextfnfield): Remove.
9857 (struct fnfieldlist): Add initializers. Remove "length" and
9858 "head", use std::vector.
9859 (struct decl_field_list): Remove.
9860 (struct field_info): Add initializers.
9861 <fields, baseclasses>: Now std::vector.
9862 <nbaseclasses, nfnfields, typedef_field_list_count,
9863 nested_types_list_count>: Remove.
9864 (dwarf2_add_field, dwarf2_add_type_defn)
9865 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
9866 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
9867 (process_structure_scope): Update.
9868
9869 2018-03-11 Tom Tromey <tom@tromey.com>
9870
9871 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
9872 for use by std::sort.
9873 (build_type_psymtabs_1): Use std::vector.
9874
9875 2018-03-09 Eli Zaretskii <eliz@gnu.org>
9876
9877 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
9878 and LIBMPFR in the printed configuration.
9879
9880 2018-03-08 Tom Tromey <tom@tromey.com>
9881
9882 * source.c (get_filename_and_charpos): Use scoped_fd.
9883 * nto-procfs.c (procfs_open_1): Use scoped_fd.
9884 (procfs_pidlist): Likewise.
9885 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
9886 (iterate_over_mappings): Likewise.
9887
9888 2018-03-08 Tom Tromey <tom@tromey.com>
9889
9890 * infcall.c (struct call_return_meta_info)
9891 <stack_temporaries_enabled>: Remove.
9892 (get_call_return_value, call_function_by_hand_dummy): Update.
9893 * thread.c (disable_thread_stack_temporaries): Remove.
9894 (enable_thread_stack_temporaries): Remove.
9895 (thread_stack_temporaries_enabled_p): Return bool.
9896 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
9897 (get_last_thread_stack_temporary): Update.
9898 * eval.c (evaluate_subexp): Update.
9899 * gdbthread.h (class enable_thread_stack_temporaries): Now a
9900 class, not a function.
9901 (value_ptr, value_vec): Remove typedefs.
9902 (class thread_info) <stack_temporaries_enabled>: Now bool.
9903 <stack_temporaries>: Now a std::vector.
9904 (thread_stack_temporaries_enabled_p)
9905 (value_in_thread_stack_temporaries): Return bool.
9906
9907 2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
9908
9909 * remote.c (putpkt_binary): Fix omitted bytes reporting.
9910 (getpkt_or_notif_sane_1): Likewise.
9911
9912 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
9913
9914 * build-id.c (build_id_to_debug_bfd): Use std::string.
9915
9916 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
9917
9918 * build-id.c (find_separate_debug_file_by_buildid): Return
9919 std::string.
9920 * build-id.h (find_separate_debug_file_by_buildid): Return
9921 std::string.
9922 * coffread.c (coff_symfile_read): Adjust to std::string.
9923 * elfread.c (elf_symfile_read): Adjust to std::string.
9924 * symfile.c (separate_debug_file_exists): Change parameter to
9925 std::string.
9926 (find_separate_debug_file): Return std::string.
9927 (find_separate_debug_file_by_debuglink): Return std::string.
9928 * symfile.h (find_separate_debug_file_by_debuglink): Return
9929 std::string.
9930
9931 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
9932
9933 * common/xml-utils.c (xml_escape_text): Move code to...
9934 (xml_escape_text_append): ... this new function.
9935 * common/xml-utils.h (xml_escape_text_append): New declaration.
9936 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
9937 New function.
9938 (_initialize_xml_utils): register test_xml_escape_text_append as
9939 a selftest.
9940
9941 2018-03-07 Alan Hayward <alan.hayward@arm.com>
9942
9943 * defs.h: Remove MAX_REGISTER_SIZE.
9944 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
9945 asserts.
9946 * python/py-unwind.c (pyuw_sniffer): Likewise.
9947
9948 2018-03-07 Tom Tromey <tom@tromey.com>
9949
9950 * linux-tdep.c (linux_info_proc): Update.
9951 * target.h (struct target_ops) <to_fileio_readlink>: Return
9952 optional<string>.
9953 (target_fileio_readlink): Return optional<string>.
9954 * remote.c (remote_hostio_readlink): Return optional<string>.
9955 * inf-child.c (inf_child_fileio_readlink): Return
9956 optional<string>.
9957 * target.c (target_fileio_readlink): Return optional<string>.
9958
9959 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
9960
9961 * regcache.c (cooked_read_test): Add riscv to the list of
9962 architectures that have a save_reggroup.
9963
9964 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
9965
9966 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
9967 value is not a dynamic class object.
9968
9969 2018-03-06 Tom Tromey <tom@tromey.com>
9970
9971 * rust-exp.y: Formatting fixes.
9972
9973 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9974
9975 * riscv-tdep.c (riscv_register_name): Remove target description
9976 support.
9977 (riscv_gdbarch_init): Remove target description check.
9978
9979 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9980
9981 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
9982 comment.
9983 * riscv-tdep.h: Likewise.
9984
9985 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9986
9987 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
9988 (riscv_pseudo_register_write): Delete.
9989 (riscv_gdbarch_init): Remove all use of pseudo registers.
9990
9991 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
9992
9993 * record-btrace.c (btrace_print_lines): Replace cleanup
9994 parameter with RAII equivalents.
9995 (btrace_insn_history): Replace cleanup with RAII equivalents.
9996 * ui-out.h (make_cleanup_ui_out_list_begin_end,
9997 make_cleanup_ui_out_tuple_begin_end): Remove.
9998 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
9999 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
10000 make_cleanup_ui_out_list_begin_end): Remove.
10001
10002 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10003
10004 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
10005 parameter types to std::vector. Use bool.
10006 (record_btrace_wait): Replace VEC(tp_t) with
10007 std::vector<thread_info *>.
10008 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
10009
10010 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10011
10012 * record-btrace.c (record_btrace_disable_callback): Remove.
10013 (struct scoped_btrace_disable): New.
10014 (record_btrace_open): Use scoped_btrace_disable.
10015
10016 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10017
10018 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
10019 reading values from registers.
10020
10021 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10022
10023 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
10024 where appropriate.
10025
10026 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10027
10028 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
10029 change parameter type. Use GDB's print functions, and use
10030 core_addr_to_string where appropriate.
10031 (riscv_push_dummy_call): Use core_addr_to_string where
10032 appropriate, update call to riscv_print_arg_location, and reindent
10033 a few lines.
10034 (riscv_return_value): Update call to riscv_print_arg_location.
10035
10036 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10037 Tim Newsome <tim@sifive.com>
10038 Albert Ou <a0u@eecs.berkeley.edu>
10039 Darius Rad <darius@bluespec.com>
10040
10041 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
10042 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
10043 (ALLDEPFILES): Add riscv-tdep.c
10044 * configure.tgt: Add riscv support.
10045 * riscv-tdep.c: New file.
10046 * riscv-tdep.h: New file.
10047 * NEWS: Mention new target.
10048 * MAINTAINERS: Add entry for riscv.
10049
10050 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10051
10052 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
10053 fields within aggregates.
10054
10055 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
10056
10057 * record-btrace.c (btrace_print_lines): Change type of flags to
10058 gdb_disassembly_flags.
10059
10060 2018-03-04 John Baldwin <jhb@FreeBSD.org>
10061
10062 * fbsd-nat.c: Include "inf-ptrace.h".
10063 (USE_SIGTRAP_SIGINFO): Conditionally define.
10064 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
10065 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
10066 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
10067 function.
10068 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
10069 Likewise.
10070 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
10071 Likewise.
10072 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
10073 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
10074 "supports_stopped_by_hw_breakpoint" target methods.
10075
10076 2018-03-04 John Baldwin <jhb@FreeBSD.org>
10077
10078 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
10079 * fbsd-nat.c (debug_fbsd_nat): New variable.
10080 (show_fbsd_nat_debug): New function.
10081 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
10082 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
10083
10084 2018-03-04 John Baldwin <jhb@FreeBSD.org>
10085
10086 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
10087 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
10088 prototype.
10089 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
10090 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
10091 method.
10092
10093 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10094
10095 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
10096 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
10097
10098 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10099
10100 * charset.c (struct charset_vector): New.
10101 (charsets): Change type to charset_vector.
10102 (find_charset_names): Adjust.
10103 (add_one): Adjust.
10104 (_initialize_charset): Adjust.
10105
10106 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10107
10108 * progspace.h (struct program_space) <deleted_solibs>: Change
10109 type to std::vector<std::string>.
10110 * progspace.c (clear_program_space_solib_cache): Adjust.
10111 * breakpoint.c (print_solib_event): Adjust.
10112 (check_status_catch_solib): Adjust.
10113 * solib.c (update_solib_list): Adjust.
10114 * ui-out.h (class ui_out) <field_string>: New overload.
10115 * ui-out.c (ui_out::field_string): New overload.
10116
10117 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10118
10119 * progspace.h (struct program_space): Add constructor and
10120 destructor, initialize fields.
10121 (add_program_space): Remove.
10122 * progspace.c (add_program_space): Rename to...
10123 (program_space::program_space): ... this.
10124 (release_program_space): Rename to...
10125 (program_space::~program_space): ... this.
10126 (delete_program_space): Use delete to delete program_space.
10127 (initialize_progspace): Use new to allocate program_space.
10128 * inferior.c (add_inferior_with_spaces): Likewise.
10129 (clone_inferior_command): Likewise.
10130 * infrun.c (follow_fork_inferior): Likewise.
10131 (handle_vfork_child_exec_or_exit): Likewise.
10132
10133 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10134
10135 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
10136 (delim_string_to_char_ptr_vec): Return std::vector of
10137 gdb::unique_xmalloc_ptr.
10138 (dirnames_to_char_ptr_vec_append): Take std::vector of
10139 gdb::unique_xmalloc_ptr.
10140 (dirnames_to_char_ptr_vec): Return std::vector of
10141 gdb::unique_xmalloc_ptr.
10142 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
10143 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
10144 (delim_string_to_char_ptr_vec): Return an std::vector of
10145 gdb::unique_xmalloc_ptr, adjust the code.
10146 (dirnames_to_char_ptr_vec_append): Take an std::vector of
10147 gdb::unique_xmalloc_ptr, adjust the code.
10148 (dirnames_to_char_ptr_vec): Return an std::vector of
10149 gdb::unique_xmalloc_ptr, adjust the code.
10150 * auto-load.c (auto_load_safe_path_vec): Change type to
10151 std::vector of gdb::unique_xmalloc_ptr.
10152 (auto_load_expand_dir_vars): Return an std::vector of
10153 gdb::unique_xmalloc_ptr, adjust the code.
10154 (auto_load_safe_path_vec_update): Adjust.
10155 (filename_is_in_auto_load_safe_path_vec): Adjust.
10156 (auto_load_objfile_script_1): Adjust.
10157 * build-id.c (build_id_to_debug_bfd): Adjust.
10158 * linux-thread-db.c (thread_db_load_search): Adjust.
10159 * source.c (add_path): Adjust.
10160 (openp): Adjust.
10161 * symfile.c (find_separate_debug_file): Adjust.
10162 * utils.c (do_free_char_ptr_vec): Remove.
10163 (make_cleanup_free_char_ptr_vec): Remove.
10164
10165 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
10166
10167 PR gdb/22907
10168 * common/pathstuff.c: Conditionally include "<windows.h>".
10169
10170 2018-03-01 Georg Sauthoff <mail@georg.so>
10171
10172 PR gdb/22888
10173 * gcore.in: Quote variables and switch interpreter to bash.
10174
10175 2018-03-01 Tom Tromey <tom@tromey.com>
10176
10177 * dwarf2read.c (alloc_discriminant_info): Fix default_index
10178 assertion. Add assertion for discriminant_index.
10179 (quirk_rust_enum): Use correct base type name in univariant case.
10180
10181 2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
10182
10183 * record.c (get_call_history_modifiers): Return a
10184 record_print_flags.
10185 (cmd_record_call_history): Adjust.
10186 * record-btrace.c (record_btrace_call_history): Adjust.
10187 (record_btrace_call_history_range): Adjust.
10188 (record_btrace_call_history_from): Adjust.
10189 * target-debug.h (target_debug_print_record_print_flags): New.
10190 * target-delegates.c: Re-generate.
10191 * target.c (target_call_history): Change flags type.
10192 (target_call_history_from): Likewise.
10193 (target_call_history_range): Likewise.
10194 * target.h (struct target_ops) <target_call_history>: Likewise.
10195 (target_call_history_from): Likewise.
10196 (target_call_history_range): Likewise.
10197
10198 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
10199 Simon Marchi <simon.marchi@polymtl.ca>
10200
10201 * common/common-utils.c: Include "sys/stat.h".
10202 (is_regular_file): Move here from "source.c"; change return
10203 type to "bool".
10204 * common/common-utils.h (is_regular_file): New prototype.
10205 * common/pathstuff.c (contains_dir_separator): New function.
10206 * common/pathstuff.h (contains_dir_separator): New prototype.
10207 * source.c: Don't include "sys/stat.h".
10208 (is_regular_file): Move to "common/common-utils.c".
10209
10210 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
10211
10212 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
10213 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
10214 * auto-load.c: Include "common/pathstuff.h".
10215 * common/common-def.h (current_directory): Move here.
10216 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
10217 function.
10218 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
10219 prototype.
10220 * common/pathstuff.c: New file.
10221 * common/pathstuff.h: New file.
10222 * compile/compile.c: Include "common/pathstuff.h".
10223 * defs.h (current_directory): Move to "common/common-defs.h".
10224 * dwarf2read.c: Include "common/pathstuff.h".
10225 * exec.c: Likewise.
10226 * guile/scm-safe-call.c: Likewise.
10227 * linux-thread-db.c: Likewise.
10228 * main.c: Likewise.
10229 * nto-tdep.c: Likewise.
10230 * objfiles.c: Likewise.
10231 * source.c: Likewise.
10232 * symtab.c: Likewise.
10233 * utils.c: Include "common/pathstuff.h".
10234 (gdb_realpath): Move to "common/pathstuff.c".
10235 (gdb_realpath_keepfile): Likewise.
10236 (gdb_abspath): Likewise.
10237 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
10238 (gdb_realpath_keepfile): Likewise.
10239 (gdb_abspath): Likewise.
10240
10241 2018-02-28 John Baldwin <jhb@FreeBSD.org>
10242
10243 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
10244 wildcard process pid for super_resume for kernels with a
10245 specific bug.
10246
10247 2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
10248
10249 * compile/compile.c (get_args): Add additional comments
10250 explaining function.
10251
10252 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
10253 Tom Tromey <tom@tromey.com>
10254
10255 * target.h (memory_write_request_s): Remove typedef. Don't define
10256 VEC.
10257 (target_write_memory_blocks): Change argument to std::vector.
10258 (struct memory_write_request): Add constructor.
10259 * target-memory.c (compare_block_starting_address): Return bool.
10260 Change argument types.
10261 (claim_memory): Change arguments to use std::vector.
10262 (split_regular_and_flash_blocks, blocks_to_erase)
10263 (compute_garbled_blocks): Likewise.
10264 (cleanup_request_data, cleanup_write_requests_vector): Remove.
10265 (target_write_memory_blocks): Change argument to std::vector.
10266 * symfile.c (struct load_section_data): Add constructor and
10267 destructor. Use std::vector for "requests".
10268 (struct load_progress_data): Add initializers.
10269 (load_section_callback): Update. Use "new".
10270 (clear_memory_write_data): Remove.
10271 (generic_load): Update.
10272
10273 2018-02-27 Alan Hayward <alan.hayward@arm.com>
10274
10275 * arch/aarch64.h: Use common/tdesc.h.
10276
10277 2018-02-26 Maciej W. Rozycki <macro@mips.com>
10278
10279 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
10280 architecture with a 64-bit ABI.
10281
10282 2018-02-26 Maciej W. Rozycki <macro@mips.com>
10283
10284 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
10285 ahead of target description loading.
10286
10287 2018-02-26 Tom Tromey <tom@tromey.com>
10288
10289 * stack.c (backtrace_command_1): Update.
10290 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
10291 of "flags".
10292 * python/py-framefilter.c (py_print_frame)
10293 (gdbpy_apply_frame_filter): Change type of "flags".
10294 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
10295 of "flags".
10296 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
10297 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
10298 * extension.h (enum frame_filter_flag): Rename from
10299 frame_filter_flags.
10300 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
10301 (apply_ext_lang_frame_filter): Change type of "flags".
10302 * extension.c (apply_ext_lang_frame_filter): Change type of
10303 "flags".
10304 * extension-priv.h (struct extension_language_ops)
10305 <apply_frame_filter>: Change type of "flags".
10306
10307 2018-02-26 Tom Tromey <tom@tromey.com>
10308
10309 PR python/16497:
10310 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
10311 off-by-one in py_end computation.
10312 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
10313 PRINT_MORE_FRAMES.
10314 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
10315 constant.
10316
10317 2018-02-26 Tom Tromey <tom@tromey.com>
10318
10319 * dwarf2read.c (struct variant_field): New.
10320 (struct nextfield) <variant>: New field.
10321 (dwarf2_add_field): Handle DW_TAG_variant_part.
10322 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
10323 discriminated union.
10324 (read_structure_type): Handle DW_TAG_variant_part.
10325 (handle_struct_member_die): New function, extracted from
10326 process_structure_scope. Handle DW_TAG_variant.
10327 (process_structure_scope): Handle discriminated unions. Call
10328 handle_struct_member_die.
10329
10330 2018-02-26 Tom Tromey <tom@tromey.com>
10331
10332 * rust-lang.h (rust_last_path_segment): Declare.
10333 * rust-lang.c (rust_last_path_segment): Now public. Change
10334 contract.
10335 (struct disr_info): Remove.
10336 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
10337 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
10338 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
10339 (rust_enum_p, rust_enum_variant): New function.
10340 (rust_underscore_fields): Remove "offset" parameter.
10341 (rust_print_enum): New function.
10342 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
10343 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
10344 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
10345 enums.
10346 (rust_internal_print_type): New function, from rust_print_type.
10347 Remove enum code.
10348 (rust_print_type): Call rust_internal_print_type.
10349 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
10350 Update enum handling.
10351 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
10352 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
10353 (rust_union_quirks): New functions.
10354 (process_full_comp_unit, process_full_type_unit): Call
10355 rust_union_quirks.
10356 (process_structure_scope): Update rust_unions if necessary.
10357
10358 2018-02-26 Tom Tromey <tom@tromey.com>
10359
10360 * value.h (value_union_variant): Declare.
10361 * valops.c (value_union_variant): New function.
10362 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
10363 (struct discriminant_info): New.
10364 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
10365 enumerator.
10366 (struct main_type) <flag_discriminated_union>: New field.
10367
10368 2018-02-26 Tom Tromey <tom@tromey.com>
10369
10370 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10371 unittests/unpack-selftests.c.
10372 * unittests/unpack-selftests.c: New file.
10373 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
10374
10375 2018-02-26 Yao Qi <yao.qi@linaro.org>
10376
10377 * dwarf2read.c (struct partial_die_info) <read>: New method.
10378 (read_partial_die): Remove the declaration.
10379 (load_partial_dies): Update.
10380 (partial_die_info::partial_die_info):
10381 (read_partial_die): Change it to partial_die_info::read.
10382
10383 2018-02-26 Yao Qi <yao.qi@linaro.org>
10384
10385 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
10386 (fixup_partial_die): Remove declaration.
10387 (scan_partial_symbols): Update.
10388 (partial_die_parent_scope): Likewise.
10389 (partial_die_full_name): Likewise.
10390 (fixup_partial_die): Change it to partial_die_info::fixup.
10391
10392 2018-02-26 Yao Qi <yao.qi@linaro.org>
10393
10394 * dwarf2read.c (read_partial_die): Update the declaration.
10395 (load_partial_dies): Caller update.
10396 (read_partial_die): Remove one argument abbrev_len.
10397
10398 2018-02-26 Yao Qi <yao.qi@linaro.org>
10399
10400 * dwarf2read.c (struct partial_die_info): Add ctor, delete
10401 assignment operator.
10402 (load_partial_dies): Use ctor and copy ctor.
10403 (read_partial_die): Update.
10404 (dwarf2_cu::find_partial_die): Use ctor.
10405
10406 2018-02-26 Yao Qi <yao.qi@linaro.org>
10407
10408 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
10409 (find_partial_die_in_comp_unit): Change it to
10410 dwarf2_cu::find_partial_die.
10411 (find_partial_die): Update.
10412
10413 2018-02-26 Yao Qi <yao.qi@linaro.org>
10414
10415 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
10416 is NULL.
10417
10418 2018-02-26 Yao Qi <yao.qi@linaro.org>
10419
10420 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
10421
10422 2018-02-26 Alan Hayward <alan.hayward@arm.com>
10423
10424 * arch/amd64.h: Use common/tdesc.h.
10425 * arch/i386.c: Likewise.
10426 * arch/i386.h: Likewise.
10427 * arch/tic6x.c: Likewise.
10428 * arch/tdesc.h: Move file from here...
10429 * common/tdesc.h: ...to here.
10430 * features/aarch64-core.c: Regenerate.
10431 * features/aarch64-fpu.c: Regenerate.
10432 * features/i386/32bit-avx.c: Regenerate.
10433 * features/i386/32bit-avx512.c: Regenerate.
10434 * features/i386/32bit-core.c: Regenerate.
10435 * features/i386/32bit-linux.c: Regenerate.
10436 * features/i386/32bit-mpx.c: Regenerate.
10437 * features/i386/32bit-pkeys.c: Regenerate.
10438 * features/i386/32bit-sse.c: Regenerate.
10439 * features/i386/64bit-avx.c: Regenerate.
10440 * features/i386/64bit-avx512.c: Regenerate.
10441 * features/i386/64bit-core.c: Regenerate.
10442 * features/i386/64bit-linux.c: Regenerate.
10443 * features/i386/64bit-mpx.c: Regenerate.
10444 * features/i386/64bit-pkeys.c: Regenerate.
10445 * features/i386/64bit-segments.c: Regenerate.
10446 * features/i386/64bit-sse.c: Regenerate.
10447 * features/i386/x32-core.c: Regenerate.
10448 * features/tic6x-c6xp.c: Regenerate.
10449 * features/tic6x-core.c: Regenerate.
10450 * features/tic6x-gp.c: Regenerate.
10451 * target-descriptions.c: Use common/tdesc.h.
10452 * target-descriptions.h: Likewise.
10453
10454 2018-02-24 Tom Tromey <tom@tromey.com>
10455
10456 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
10457 (try_thread_db_load_from_dir, thread_db_load_search): Use
10458 std::string.
10459 (info_auto_load_libthread_db_compare): Return bool. Change
10460 argument types.
10461 (info_auto_load_libthread_db): Use std::vector, std::string.
10462 Remove cleanups.
10463
10464 2018-02-24 Tom Tromey <tom@tromey.com>
10465
10466 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
10467 std::string.
10468 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
10469 std::string*.
10470 * gdbarch.c: Rebuild.
10471 * gdbarch.h: Rebuild.
10472 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
10473 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
10474 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
10475 std::string*.
10476
10477 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
10478
10479 * gdbtypes.h (sect_offset): Change type to uint64_t.
10480 (sect_offset_str): New function.
10481 * dwarf2read.c (create_addrmap_from_aranges): Use
10482 sect_offset_str.
10483 (error_check_comp_unit_head): Likewise.
10484 (create_debug_type_hash_table): Likewise.
10485 (read_cutu_die_from_dwo): Likewise.
10486 (init_cutu_and_read_dies): Likewise.
10487 (init_cutu_and_read_dies_no_follow): Likewise.
10488 (process_psymtab_comp_unit_reader): Likewise.
10489 (partial_die_parent_scope): Likewise.
10490 (peek_die_abbrev): Likewise.
10491 (process_queue): Likewise.
10492 (dwarf2_physname): Likewise.
10493 (read_namespace_alias): Likewise.
10494 (read_import_statement): Likewise.
10495 (create_dwo_cu_reader): Likewise.
10496 (create_cus_hash_table): Likewise.
10497 (lookup_dwo_cutu): Likewise.
10498 (inherit_abstract_dies): Likewise.
10499 (read_func_scope): Likewise.
10500 (read_call_site_scope): Likewise.
10501 (dwarf2_add_member_fn): Likewise.
10502 (read_common_block): Likewise.
10503 (read_module_type): Likewise.
10504 (read_typedef): Likewise.
10505 (read_subrange_type): Likewise.
10506 (load_partial_dies): Likewise.
10507 (read_partial_die): Likewise.
10508 (find_partial_die): Likewise.
10509 (read_str_index): Likewise.
10510 (dwarf2_string_attr): Likewise.
10511 (build_error_marker_type): Likewise.
10512 (lookup_die_type): Likewise.
10513 (dump_die_shallow): Likewise.
10514 (follow_die_ref): Likewise.
10515 (dwarf2_fetch_die_loc_sect_off): Likewise.
10516 (dwarf2_fetch_constant_bytes): Likewise.
10517 (follow_die_sig): Likewise.
10518 (get_signatured_type): Likewise.
10519 (get_DW_AT_signature_type): Likewise.
10520 (dwarf2_find_containing_comp_unit): Likewise.
10521 (set_die_type): Likewise.
10522
10523 2018-02-21 John Baldwin <jhb@FreeBSD.org>
10524
10525 * arch/aarch64.c: Include "common-defs.h".
10526 * arch/amd64.c: Likewise.
10527 * arch/i386.c: Likewise.
10528
10529 2018-02-21 Tom Tromey <tom@tromey.com>
10530
10531 * value.h: (extract_field_op): Update.
10532 * eval.c (extract_field_op): Return a const char *.
10533 * expression.h (parse_expression_for_completion): Update.
10534 * completer.c (complete_expression): Update.
10535 (add_struct_fields): Make fieldname const.
10536 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
10537 (mark_completion_tag, parse_exp_in_context_1): Update.
10538 (parse_expression_for_completion): Change "name" to
10539 unique_xmalloc_ptr*.
10540
10541 2018-02-21 Tom Tromey <tom@tromey.com>
10542
10543 * infcall.c (call_function_by_hand_dummy): Use std::vector.
10544
10545 2018-02-21 Yao Qi <yao.qi@linaro.org>
10546
10547 * avr-tdep.c (avr_read_pc): Change parameter type to
10548 readable_regcache.
10549 * gdbarch.sh (read_pc): Likewise.
10550 * gdbarch.c: Re-generated.
10551 * gdbarch.h: Re-generated.
10552 * hppa-tdep.c (hppa_read_pc): Change parameter type to
10553 readable_regcache.
10554 * ia64-tdep.c (ia64_read_pc): Likewise.
10555 * mips-tdep.c (mips_read_pc): Likewise.
10556 * spu-tdep.c (spu_read_pc): Likewise.
10557
10558 2018-02-21 Yao Qi <yao.qi@linaro.org>
10559
10560 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
10561 * regcache-dump.c: New file.
10562 * regcache.c: Move register_dump to regcache-dump.c.
10563 (maintenance_print_registers): Likewise.
10564 (maintenance_print_raw_registers): Likewise.
10565 (maintenance_print_cooked_registers): Likewise.
10566 (maintenance_print_register_groups): Likewise.
10567 (maintenance_print_remote_registers): Likewise.
10568 (_initialize_regcache): Likewise.
10569 * regcache.h (register_dump): Moved from regcache.c.
10570
10571 2018-02-21 Yao Qi <yao.qi@linaro.org>
10572
10573 * regcache.c (regcache::regcache): Update.
10574 (regcache::invalidate): Move it to detached_regcache::invalidate.
10575 (get_thread_arch_aspace_regcache): Update.
10576 (regcache::raw_update): Update.
10577 (regcache::cooked_read): Remove some code.
10578 (regcache::cooked_read_value): Likewise.
10579 (regcache::raw_write): Remove assert on m_readonly_p.
10580 (regcache::raw_supply_integer): Move it to
10581 detached_regcache::raw_supply_integer.
10582 (regcache::raw_supply_zeroed): Likewise.
10583 * regcache.h (detached_regcache) <raw_supply_integer>: New
10584 declaration.
10585 <raw_supply_zeroed, invalidate>: Likewise.
10586 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
10587 <invalidate>: Likewise.
10588 <m_readonly_p>: Removed.
10589
10590 2018-02-21 Yao Qi <yao.qi@linaro.org>
10591
10592 * infcmd.c (get_return_value): Let stop_regs point to
10593 get_current_regcache.
10594 * regcache.c (regcache::regcache): Remove.
10595 (register_dump_reg_buffer): New class.
10596 (regcache_print): Adjust.
10597 * regcache.h (regcache): Remove constructors.
10598
10599 2018-02-21 Yao Qi <yao.qi@linaro.org>
10600
10601 * regcache.c (class register_dump): New class.
10602 (register_dump_regcache, register_dump_none): New class.
10603 (register_dump_remote, register_dump_groups): New class.
10604 (regcache_print): Update.
10605 * regcache.h (regcache_dump_what): Move it to regcache.c.
10606 (regcache) <dump>: Remove.
10607
10608 2018-02-21 Yao Qi <yao.qi@linaro.org>
10609
10610 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
10611 reg_buffer_rw *.
10612 (jit_unwind_reg_set_impl): Call raw_supply.
10613 (jit_frame_sniffer): Use reg_buffer_rw.
10614 * record-full.c (record_full_core_regbuf): Change its type.
10615 (record_full_core_open_1): Use reg_buffer_rw.
10616 (record_full_close): Likewise.
10617 (record_full_core_fetch_registers): Use regcache->raw_supply.
10618 (record_full_core_store_registers): Likewise.
10619 * regcache.c (regcache::get_register_status): Move it to
10620 reg_buffer.
10621 (regcache_raw_set_cached_value): Remove.
10622 (regcache::raw_set_cached_value): Remove.
10623 (regcache::raw_write): Call raw_supply.
10624 (regcache::raw_supply): Move it to reg_buffer_rw.
10625 * regcache.h (regcache_raw_set_cached_value): Remove.
10626 (reg_buffer_rw): New class.
10627
10628 2018-02-21 Yao Qi <yao.qi@linaro.org>
10629
10630 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
10631 readonly_detached_regcache.
10632 (dummy_frame_prev_register): Use regcache->cooked_read.
10633 * frame.c (frame_save_as_regcache): Change return type.
10634 (frame_pop): Update.
10635 * frame.h (frame_save_as_regcache): Update declaration.
10636 * inferior.h (get_infcall_suspend_state_regcache): Update
10637 declaration.
10638 * infrun.c (infcall_suspend_state) <registers>: use
10639 readonly_detached_regcache.
10640 (save_infcall_suspend_state): Don't use regcache_dup.
10641 (get_infcall_suspend_state_regcache): Change return type.
10642 * linux-fork.c (struct fork_info) <savedregs>: Change to
10643 readonly_detached_regcache.
10644 <pc>: New field.
10645 (fork_save_infrun_state): Don't use regcache_dup.
10646 (info_checkpoints_command): Adjust.
10647 * mi/mi-main.c (register_changed_p): Update declaration.
10648 (mi_cmd_data_list_changed_registers): Use
10649 readonly_detached_regcache.
10650 (register_changed_p): Change parameter type to
10651 readonly_detached_regcache.
10652 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
10653 readonly_detached_regcache.
10654 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
10655 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
10656 New.
10657 (regcache::save): Move it to reg_buffer.
10658 (regcache::restore): Change parameter type.
10659 (regcache_dup): Remove.
10660 * regcache.h (reg_buffer) <save>: New method.
10661 (readonly_detached_regcache): New class.
10662 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
10663 readonly_detached_regcache.
10664 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
10665
10666 2018-02-21 Yao Qi <yao.qi@linaro.org>
10667
10668 * frame.c (frame_save_as_regcache): Use regcache method save.
10669 (frame_pop): Use regcache method restore.
10670 * infrun.c (restore_infcall_suspend_state): Likewise.
10671 * linux-fork.c (fork_load_infrun_state): Likewise.
10672 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
10673 save.
10674 * regcache.c (regcache_save): Remove.
10675 (regcache::restore): More asserts.
10676 (regcache_cpy): Remove.
10677 * regcache.h (regcache_save): Remove the declaration.
10678 (regcache::restore): Move from private to public.
10679 Remove the friend declaration of regcache_cpy.
10680 (regcache_cpy): Remove declaration.
10681
10682 2018-02-21 Yao Qi <yao.qi@linaro.org>
10683
10684 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
10685 parameter type to 'readable_regcache *'.
10686 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
10687 * arm-tdep.c (arm_neon_quad_read): Likewise.
10688 (arm_pseudo_read): Likewise.
10689 * avr-tdep.c (avr_pseudo_register_read): Likewise.
10690 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
10691 * frv-tdep.c (frv_pseudo_register_read): Likewise.
10692 * gdbarch.c: Re-generated.
10693 * gdbarch.h: Re-generated.
10694 * gdbarch.sh (pseudo_register_read): Change parameter type to
10695 'readable_regcache *'.
10696 (pseudo_register_read_value): Likewise.
10697 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
10698 (h8300_pseudo_register_read): Likewise.
10699 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
10700 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
10701 (i386_pseudo_register_read_into_value): Likewise.
10702 (i386_pseudo_register_read_value): Likewise.
10703 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
10704 declaration.
10705 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
10706 * m32c-tdep.c (m32c_raw_read): Likewise.
10707 (m32c_read_flg): Likewise.
10708 (m32c_banked_register): Likewise.
10709 (m32c_banked_read): Likewise.
10710 (m32c_sb_read): Likewise.
10711 (m32c_part_read): Likewise.
10712 (m32c_cat_read): Likewise.
10713 (m32c_r3r2r1r0_read): Likewise.
10714 (m32c_pseudo_register_read): Likewise.
10715 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
10716 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
10717 (mep_pseudo_cr64_read): Likewise.
10718 (mep_pseudo_register_read): Likewise.
10719 * mips-tdep.c (mips_pseudo_register_read): Likewise.
10720 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
10721 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
10722 * regcache.c (regcache::raw_read): Move it to readable_regcache.
10723 (regcache::cooked_read): Likewise.
10724 (regcache::cooked_read_value): Likewise.
10725 (regcache_cooked_read_signed):
10726 (regcache::cooked_read): Likewise.
10727 * regcache.h (readable_regcache): New class.
10728 (regcache): Inherit readable_regcache. Move some methods to
10729 readable_regcache.
10730 * rl78-tdep.c (rl78_pseudo_register_read): Change
10731 parameter type to 'readable_regcache *'.
10732 * rs6000-tdep.c (do_regcache_raw_read): Remove.
10733 (e500_pseudo_register_read): Change parameter type to
10734 'readable_regcache *'.
10735 (dfp_pseudo_register_read): Likewise.
10736 (vsx_pseudo_register_read): Likewise.
10737 (efpr_pseudo_register_read): Likewise.
10738 * s390-tdep.c (s390_pseudo_register_read): Likewise.
10739 * sh-tdep.c (sh_pseudo_register_read): Likewise.
10740 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
10741 (sh64_pseudo_register_read): Likewise.
10742 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
10743 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
10744 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
10745 (spu_pseudo_register_read): Likewise.
10746 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
10747 (xtensa_pseudo_register_read): Likewise.
10748
10749 2018-02-21 Yao Qi <yao.qi@linaro.org>
10750
10751 * regcache.c (regcache::regcache): Call reg_buffer ctor.
10752 (regcache::arch): Move it to reg_buffer::arch.
10753 (regcache::register_buffer): Likewise.
10754 (regcache::assert_regnum): Likewise.
10755 (regcache::num_raw_registers): Likewise.
10756 * regcache.h (reg_buffer): New class.
10757 (regcache): Inherit reg_buffer.
10758
10759 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
10760
10761 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
10762 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
10763
10764 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
10765
10766 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
10767
10768 2018-02-19 Alan Hayward <alan.hayward@arm.com>
10769
10770 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
10771 (SFILES): Remove common/*.c files.
10772 (COMMON_OBS): Remove some *.o files built from common/*.c files.
10773 * common/common.host: Add common reference.
10774 * configure.ac: Likewise.
10775 * configure: Regenerate.
10776
10777 2018-02-16 Yao Qi <yao.qi@linaro.org>
10778
10779 * block.c (block_namespace_info): Inherit allocate_on_obstack.
10780 (block_initialize_namespace): Use new.
10781 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
10782 (dwarf2_free_objfile): Use delete.
10783 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
10784 (copy_type_recursive): Use new.
10785 * gdb_obstack.h (allocate_on_obstack): New.
10786
10787 2018-02-15 Yao Qi <yao.qi@linaro.org>
10788
10789 PR gdb/22849
10790 * inferior.c (exit_inferior_1): Reset inf->control.
10791
10792 2018-02-15 Joel Brobecker <brobecker@adacore.com>
10793
10794 * ada-lang.c (ada_to_fixed_value_create): Delete advance
10795 declaration.
10796
10797 2018-02-14 Pedro Alves <palves@redhat.com>
10798
10799 * frame-unwind.c (frame_unwind_try_unwinder): Always call
10800 frame_cleanup_after_sniffer on exception.
10801
10802 2018-02-14 Tom Tromey <tom@tromey.com>
10803
10804 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
10805 const.
10806 (solib_bfd_open): Make pathname const.
10807 * solib.c (solib_bfd_open): Make pathname const.
10808 * solib-spu.c (spu_bfd_fopen): Make name const.
10809 (spu_bfd_open): Make pathname const.
10810 * solib-darwin.c (darwin_bfd_open): Make pathname const.
10811 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
10812
10813 2018-02-14 Tom Tromey <tom@tromey.com>
10814
10815 * symfile.c (symfile_bfd_open): Update.
10816 * source.h (openp, source_full_path_of, find_and_open_source):
10817 Change argument type to unique_xmalloc_ptr.
10818 * source.c (openp): Take a unique_xmalloc_ptr.
10819 (source_full_path_of, find_and_open_source): Likewise.
10820 (open_source_file, symtab_to_fullname): Update.
10821 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
10822 unique_xmalloc_ptr.
10823 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
10824 (exec_file_find): Update.
10825 * psymtab.c (psymtab_to_fullname): Update.
10826 * nto-tdep.h (nto_find_and_open_solib): Update.
10827 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
10828 unique_xmalloc_ptr.
10829 * exec.c (exec_file_attach): Update.
10830 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
10831 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
10832
10833 2018-02-14 Tom Tromey <tom@tromey.com>
10834
10835 * solib.c: Include source.h.
10836 * nto-tdep.c: Include source.h.
10837 * mi/mi-cmd-env.c: Include source.h.
10838 * infcmd.c: Include source.h.
10839 * exec.c: Include source.h.
10840 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
10841 (add_path, directory_switch, source_path, init_source_path): Move
10842 declarations...
10843 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
10844 (add_path, directory_switch, source_path, init_source_path):
10845 ...here.
10846
10847 2018-02-14 Tom Tromey <tom@tromey.com>
10848
10849 * solist.h (exec_file_find, solib_find): Return
10850 unique_xmalloc_ptr.
10851 (solib_bfd_fopen): Take a const char *.
10852 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
10853 (exec_file_find, solib_find): Likewise.
10854 (solib_bfd_fopen): Do not take ownership of "pathname".
10855 (solib_bfd_open): Use unique_xmalloc_ptr.
10856 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
10857 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
10858 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
10859 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
10860
10861 2018-02-14 Joel Brobecker <brobecker@adacore.com>
10862
10863 * ada-lang.c (name_match_type_from_name): Remove reference to
10864 ada_name_for_lookup in function's documentation.
10865 * ada-lang.h (ada_name_for_lookup): Delete declaration.
10866
10867 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
10868
10869 * defs.h (enum openp_flags): New enum.
10870 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
10871 Move to enum openp_flags.
10872 (openp_flags): New enum flags.
10873 (openp): Change parameter type to openp_flags.
10874 * source.c (openp): Change parameter type to openp_flags.
10875 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
10876 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
10877
10878 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
10879
10880 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
10881 per-command.
10882
10883 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
10884
10885 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
10886 into...
10887 (class dwarf2_queue_guard): ...the destructor of this new class.
10888 (dw2_do_instantiate_symtab): Create instance of the new class
10889 dwarf2_queue_guard, remove cleanup.
10890
10891 2018-02-09 Tom Tromey <tom@tromey.com>
10892
10893 * source.c (find_source_lines): Don't reference past the end of
10894 the vector.
10895
10896 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
10897
10898 * remote.c (remote_btrace_maybe_reopen): Change error message.
10899 * btrace.c (btrace_enable): Likewise.
10900 (parse_xml_btrace): Likewise.
10901 (parse_xml_btrace_conf): Likewise.
10902
10903 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
10904
10905 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
10906 (linux_enable_pt, linux_enable_bts): Call
10907 diagnose_perf_event_open_fail.
10908
10909 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
10910
10911 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
10912 Remove parameter and change return type. Update callers. Move it.
10913 (linux_enable_bts, linux_enable_pt): Improve error message.
10914 (linux_enable_pt): Remove zero buffer size check.
10915 (linux_enable_btrace): Improve error messages. Remove NULL return
10916 check.
10917
10918 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
10919
10920 * btrace.c (btrace_enable): Remove target_supports_btrace call.
10921 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
10922 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
10923 (linux_supports_pt, linux_supports_btrace): Remove.
10924 (linux_enable_bts): Call cpu_supports_bts.
10925 * nat/linux-btrace.h (linux_supports_btrace): Remove.
10926 * remote.c (remote_supports_btrace): Remove.
10927 (init_remote_ops): Remove remote_supports_btrace.
10928 * target-delegates.c: Regenerated.
10929 * target.c (target_supports_btrace): Remove.
10930 * target.h (target_ops) <to_supports_btrace>: Remove
10931 (target_supports_btrace): Remove.
10932 * x86-linux-nat.c (x86_linux_create_target): Remove
10933 linux_supports_btrace.
10934
10935 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
10936
10937 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
10938 btrace failed.
10939 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
10940 exception and use message in own exception.
10941
10942 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
10943
10944 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
10945 (perf_event_pt_event_type): Use gdb_file_up.
10946 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
10947 scoped_fd, and scoped_mmap.
10948
10949 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
10950
10951 * common/scoped_mmap.h: New.
10952 * unittests/scoped_mmap-selftest.c: New.
10953 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10954 unittests/scoped_mmap-selftest.c.
10955
10956 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
10957
10958 * common/scoped_fd.h: New.
10959 * unittests/scoped_fd-selftest.c: New.
10960 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10961 unittests/scoped_fd-selftest.c.
10962
10963 2018-02-09 Tom Tromey <tom@tromey.com>
10964
10965 * auto-load.c (auto_load_section_scripts): Use
10966 gdb::unique_xmalloc_ptr.
10967
10968 2018-02-09 Tom Tromey <tom@tromey.com>
10969
10970 * auto-load.c (execute_script_contents): Use std::string.
10971
10972 2018-02-09 Joel Brobecker <brobecker@adacore.com>
10973
10974 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
10975 Python function, rather than a new command.
10976
10977 2018-02-08 Tom Tromey <tom@tromey.com>
10978
10979 * solib.c (solib_find_1): Use std::string.
10980 (solib_bfd_fopen): Use unique_xmalloc_ptr.
10981
10982 2018-02-08 Tom Tromey <tom@tromey.com>
10983
10984 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
10985
10986 2018-02-08 Tom Tromey <tom@tromey.com>
10987
10988 * source.c (find_source_lines): Use gdb::def_vector.
10989
10990 2018-02-08 Tom Tromey <tom@tromey.com>
10991
10992 * macrocmd.c (struct temporary_macro_definition): New.
10993 (macro_define_command): Use temporary_macro_definition. Remove
10994 cleanups.
10995 (free_macro_definition_ptr): Remove.
10996
10997 2018-02-08 Tom Tromey <tom@tromey.com>
10998
10999 * macroexp.c (maybe_expand): Use std::string.
11000
11001 2018-02-08 Tom Tromey <tom@tromey.com>
11002
11003 * macroexp.c (struct macro_buffer): Add initializers for some
11004 members.
11005 (init_buffer, init_shared_buffer, free_buffer)
11006 (free_buffer_return_text): Remove.
11007 (macro_buffer): New constructors.
11008 (~macro_buffer): New destructor.
11009 (macro_buffer::set_shared): New method.
11010 (macro_buffer::resize_buffer, macro_buffer::appendc)
11011 (macro_buffer::appendmem): Now methods, not free functions.
11012 (set_token, append_tokens_without_splicing, stringify)
11013 (macro_stringify): Update.
11014 (gather_arguments): Change return type. Remove argc_p argument,
11015 add args_ptr argument. Use std::vector.
11016 (substitute_args): Remove argc argument. Accept std::vector.
11017 (expand): Update. Use std::vector.
11018 (scan, macro_expand, macro_expand_next): Update.
11019
11020 2018-02-08 Tom Tromey <tom@tromey.com>
11021
11022 * symtab.c (default_collect_symbol_completion_matches_break_on):
11023 Use unique_xmalloc_ptr.
11024 * macroscope.h: (sal_macro_scope, user_macro_scope)
11025 (default_macro_scope): Return unique_xmalloc_ptr.
11026 * macroscope.c (sal_macro_scope, user_macro_scope)
11027 (default_macro_scope): Return unique_xmalloc_ptr.
11028 * macroexp.h (macro_expand, macro_expand_once): Return
11029 unique_xmalloc_ptr.
11030 * macroexp.c (macro_expand, macro_expand_once): Return
11031 unique_xmalloc_ptr.
11032 * macrocmd.c (macro_expand_command, macro_expand_once_command)
11033 (info_macro_command, info_macros_command): Use
11034 unique_xmalloc_ptr.
11035 * compile/compile-c-support.c (write_macro_definitions): Use
11036 unique_xmalloc_ptr.
11037 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
11038
11039 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
11040
11041 * value.c (value_static_field): Assign field type instead of
11042 containing type when returning an optimized out value.
11043
11044 2018-02-06 Yao Qi <yao.qi@linaro.org>
11045
11046 * ft32-tdep.c (ft32_read_pc): Remove.
11047 (ft32_write_pc): Remove.
11048 (ft32_gdbarch_init): Update.
11049 * m32r-tdep.c (m32r_read_pc): Remove.
11050 (m32r_gdbarch_init): Update.
11051 * mep-tdep.c (mep_read_pc): Remove.
11052 (mep_gdbarch_init): Update.
11053 * microblaze-tdep.c (microblaze_write_pc): Remove.
11054 (microblaze_gdbarch_init): Update.
11055 * mn10300-tdep.c (mn10300_read_pc): Remove.
11056 (mn10300_write_pc): Remove.
11057 (mn10300_gdbarch_init): Update.
11058 * moxie-tdep.c (moxie_read_pc): Remove.
11059 (moxie_write_pc): Remove.
11060 (moxie_gdbarch_init): Update.
11061
11062 2018-02-06 Yao Qi <yao.qi@linaro.org>
11063
11064 * expprint.c (print_subexp_standard): Handle
11065 OP_F77_UNDETERMINED_ARGLIST.
11066 (dump_subexp_body_standard): Likewise.
11067
11068 2018-02-05 Alan Hayward <alan.hayward@arm.com>
11069
11070 * target-descriptions.c (tdesc_element_visitor) Add empty
11071 implementations.
11072 (tdesc_type): Move make_gdb_type from here.
11073 (tdesc_type_builtin): Likewise.
11074 (tdesc_type_vector): Likewise.
11075 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
11076 (make_gdb_type_struct): Move from tdesc_type_with_fields.
11077 (make_gdb_type_union): Likewise.
11078 (make_gdb_type_flags): Likewise.
11079 (make_gdb_type_enum): Likewise.
11080 (make_gdb_type): New function.
11081 (tdesc_register_type): Use static make_gdb_type.
11082
11083 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
11084
11085 * infcmd.c (default_print_one_register_info): Align natural-format
11086 column values consistently one under another.
11087 (pad_to_column): New function.
11088
11089 2018-02-05 Joel Brobecker <brobecker@adacore.com>
11090
11091 * dwarf2read.c (dwarf2_physname): Move commment.
11092
11093 2018-02-01 Leszek Swirski <leszeks@google.com>
11094
11095 * varobj.c (varobj_formatted_print_options): Allow recursive
11096 pretty printing if pretty printing is enabled.
11097
11098 2018-02-01 Leszek Swirski <leszeks@google.com>
11099
11100 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
11101 names after a structop as a filename.
11102
11103 2018-02-01 Yao Qi <yao.qi@linaro.org>
11104
11105 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
11106 (arm_record_coproc_data_proc): Likewise.
11107
11108 2018-02-01 Yao Qi <yao.qi@linaro.org>
11109
11110 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
11111
11112 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
11113
11114 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
11115 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
11116
11117 2018-01-31 Pedro Alves <palves@redhat.com>
11118
11119 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
11120 * inflow.c (child_terminal_save_inferior): Wrap reference to
11121 tcgetpgrp in HAVE_TERMIOS_H.
11122 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
11123 _WIN32.
11124 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
11125 always iterate over all inferiors.
11126 (gdbsim_cntrl_c): Adjust.
11127 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
11128
11129 2018-01-31 Joel Brobecker <brobecker@adacore.com>
11130
11131 * gdbtypes.c (lookup_array_range_type): Make sure the array's
11132 index type is objfile-owned if the element type is as well.
11133
11134 2018-01-31 Joel Brobecker <brobecker@adacore.com>
11135
11136 GDB 8.1 released.
11137
11138 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
11139
11140 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
11141 "features/s390x-linux64.c".
11142 (_initialize_s390_linux_tdep): Remove initialization of tdescs
11143 s390_linux32 and s390x_linux64.
11144 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
11145 default tdesc.
11146 * s390-tdep.c: Include "features/s390-linux32.c" and
11147 "features/s390x-linux64.c".
11148 (s390_tdesc_valid): Add check for tdesc_has_registers.
11149 (s390_gdbarch_init): Make sure there is always a valid tdesc.
11150 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
11151 tdesc_s390x_linux64.
11152 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
11153 tdesc_s390x_linux64 to...
11154 * s390-tdep.h: ...here.
11155
11156 2018-01-30 Pedro Alves <palves@redhat.com>
11157
11158 PR gdb/13211
11159 * config.in, configure: Regenerate.
11160 * configure.ac: Check for getpgid.
11161 * go32-nat.c (go32_pass_ctrlc): New.
11162 (go32_target): Install it.
11163 * inf-child.c (inf_child_target): Install
11164 child_terminal_save_inferior, child_pass_ctrlc and
11165 child_interrupt.
11166 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
11167 (inf_ptrace_target): No longer install it.
11168 * infcmd.c (interrupt_target_1): Adjust.
11169 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
11170 (child_interrupt): Declare.
11171 (inferior::terminal_state): New.
11172 * inflow.c (struct terminal_info): Update comments.
11173 (inferior_process_group): Delete.
11174 (terminal_is_ours): Delete.
11175 (gdb_tty_state): New.
11176 (child_terminal_init): Adjust.
11177 (is_gdb_terminal, sharing_input_terminal_1)
11178 (sharing_input_terminal): New functions.
11179 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
11180 Set the process's actual process group in the foreground if
11181 possible. Handle is_ours_for_output/is_ours distinction. Don't
11182 mark terminal as the inferior's if not sharing GDB's terminal.
11183 Don't check attach_flag.
11184 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
11185 pass down a target_terminal_state.
11186 (child_terminal_save_inferior): New, factored out from ...
11187 (child_terminal_ours_1): ... this. Handle
11188 target_terminal_state::is_ours_for_output.
11189 (child_interrupt, child_pass_ctrlc): New.
11190 (inflow_inferior_exit): Clear the inferior's terminal_state.
11191 (copy_terminal_info): Copy the inferior's terminal state.
11192 (_initialize_inflow): Remove reference to terminal_is_ours.
11193 * inflow.h (inferior_process_group): Delete.
11194 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
11195 * procfs.c (procfs_target): Don't install procfs_interrupt.
11196 (procfs_interrupt): Delete.
11197 * remote.c (remote_serial_quit_handler): Adjust.
11198 (remote_interrupt): Remove ptid parameter. Adjust.
11199 * target-delegates.c: Regenerate.
11200 * target.c: Include "terminal.h".
11201 (target_terminal::terminal_state): Rename to ...
11202 (target_terminal::m_terminal_state): ... this.
11203 (target_terminal::init): Adjust.
11204 (target_terminal::inferior): Adjust to per-inferior
11205 terminal_state.
11206 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
11207 (target_terminal::ours, target_terminal::ours_for_output): Use
11208 target_terminal_is_ours_kind.
11209 (target_interrupt): Remove ptid parameter. Adjust.
11210 (default_target_pass_ctrlc): Adjust.
11211 * target.h (target_ops::to_terminal_save_inferior): New field.
11212 (target_ops::to_interrupt): Remove ptid_t parameter.
11213 (target_interrupt): Remove ptid_t parameter. Update comment.
11214 (target_pass_ctrlc): Update comment.
11215 * target/target.h (target_terminal_state): New scoped enum,
11216 factored out of ...
11217 (target_terminal::terminal_state): ... here.
11218 (target_terminal::inferior): Update comments.
11219 (target_terminal::restore_inferior): New.
11220 (target_terminal::is_inferior, target_terminal::is_ours)
11221 (target_terminal::is_ours_for_output): Adjust.
11222 (target_terminal::scoped_restore_terminal_state): Adjust to
11223 rename, and call restore_inferior() instead of inferior().
11224 (target_terminal::scoped_restore_terminal_state::m_state): Change
11225 type.
11226 (target_terminal::terminal_state): Rename to ...
11227 (target_terminal::m_terminal_state): ... this and change type.
11228
11229 2018-01-30 Pedro Alves <palves@redhat.com>
11230
11231 * linux-nat.c (wait_for_signal): New function.
11232 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
11233 directly.
11234 (async_terminal_is_ours)
11235 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
11236 (linux_nat_add_target): Don't override
11237 to_terminal_inferior/to_terminal_ours.
11238
11239 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
11240
11241 * remote.c (remote_follow_fork): Don't call "detach_inferior".
11242
11243 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
11244
11245 * dwarf2read.c (free_dwo_files): Add forward-declaration.
11246 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
11247 dwarf2_per_objfile_free here.
11248 (dwarf2_per_objfile_free): Remove.
11249 (_initialize_dwarf2_read): Don't register
11250 dwarf2_per_objfile_free as a registry cleanup.
11251
11252 2018-01-27 Eli Zaretskii <eliz@gnu.org>
11253
11254 Avoid compilation errors in MinGW native builds
11255
11256 The error is triggered by including python-internal.h, and the
11257 error message is:
11258
11259 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
11260 from build-gnulib/import/math.h:27,
11261 from d:/usr/Python26/include/pyport.h:235,
11262 from d:/usr/Python26/include/Python.h:58,
11263 from python/python-internal.h:94,
11264 from python/py-arch.c:24:
11265 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
11266 using ::hypot;
11267 ^~~~~
11268
11269 This happens because Python headers define 'hypot' to expand t
11270 '_hypot' in the Windows builds.
11271 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
11272 'hypoth'. This avoids a compilation error.
11273
11274 2018-01-26 Alan Hayward <alan.hayward@arm.com>
11275
11276 * MAINTAINERS (Write After Approval): Fix ordering.
11277
11278 2018-01-26 Alan Hayward <alan.hayward@arm.com>
11279
11280 * MAINTAINERS (Write After Approval): Add Alan Hayward.
11281
11282 2018-01-26 Alan Modra <amodra@gmail.com>
11283
11284 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
11285 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
11286 Remove nop. Make const. Comment.
11287 (powerpc32_plt_stub_so_2): New.
11288 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
11289 Correct count. Update uses.
11290 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
11291 Move common code reading PLT entry word. Correct
11292 powerpc32_plt_stub PLT address calculation.
11293 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
11294 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
11295 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
11296 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
11297 (ppc64_standard_linkage8): Likewise.
11298 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
11299 Correct insns description.
11300 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
11301
11302 2018-01-24 Pedro Alves <palves@redhat.com>
11303
11304 GCC PR libstdc++/83906
11305 * gdbtypes.c (operator==(const dynamic_prop &,
11306 const dynamic_prop &)): New.
11307 (operator==(const range_bounds &, const range_bounds &)): New.
11308 (check_types_equal): Use them instead of memcmp.
11309 * gdbtypes.h (operator==(const dynamic_prop &,
11310 const dynamic_prop &)): Declare.
11311 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
11312 (operator==(const range_bounds &, const range_bounds &)): Declare.
11313 (operator!=(const range_bounds &, const range_bounds &)): Declare.
11314
11315 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
11316
11317 * s390-linux-tdep.c (s390_record_address_mask)
11318 (s390_record_calc_disp_common, s390_record_calc_disp)
11319 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
11320 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
11321 (s390_process_record): Move to s390-tdep.c.
11322 (s390_linux_init_abi_any): Adjust.
11323 * s390-tdep.c (s390_record_address_mask)
11324 (s390_record_calc_disp_common, s390_record_calc_disp)
11325 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
11326 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
11327 (s390_process_record): Moved from s390-linux-tdep.c
11328 (s390_gdbarch_init): Adjust.
11329
11330 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
11331
11332 * s390-linux-nat.c (s390-tdep.h): New include.
11333 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
11334 (HFILES_NO_SRCDIR): Add s390-tdep.h.
11335 (ALLDEPFILES): Add s390-tdep.c.
11336 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
11337 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
11338 * s390-tdep.h: ...this. New file.
11339 * s390-linux-tdep.c (s390-tdep.h): New include.
11340 (_initialize_s390_tdep): Rename to...
11341 (_initialize_s390_linux_tdep): ...this and adjust.
11342 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
11343 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
11344 s390-tdep.h.
11345 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
11346 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
11347 (s390_is_partial_instruction, s390_software_single_step)
11348 (is_non_branch_ril, s390_displaced_step_copy_insn)
11349 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
11350 (s390_prologue_data, s390_addr, s390_store, s390_load)
11351 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
11352 (s390_register_call_saved, s390_guess_tracepoint_registers)
11353 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
11354 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
11355 (s390_pseudo_register_name, s390_pseudo_register_type)
11356 (s390_pseudo_register_read, s390_pseudo_register_write)
11357 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
11358 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
11359 (s390_addr_bits_remove, s390_address_class_type_flags)
11360 (s390_address_class_type_flags_to_name)
11361 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
11362 (s390_function_arg_float, s390_function_arg_vector)
11363 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
11364 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
11365 (s390_frame_align, s390_register_return_value, s390_return_value)
11366 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
11367 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
11368 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
11369 (s390_trad_frame_prev_register, s390_unwind_cache)
11370 (s390_prologue_frame_unwind_cache)
11371 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
11372 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
11373 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
11374 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
11375 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
11376 (s390_frame_base_address, s390_local_base_address)
11377 (s390_frame_base, s390_gcc_target_options)
11378 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
11379 (s390_validate_reg_range, s390_tdesc_valid)
11380 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
11381 * s390-tdep.c: ...this. New file.
11382
11383 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
11384
11385 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
11386 (s390_process_record, s390_gdbarch_tdep_alloc)
11387 (s390_linux_init_abi_any): Use/set new hook.
11388
11389 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
11390
11391 * s390-linux-tdep.c (osabi.h): New include.
11392 (s390_linux_init_abi_31, s390_linux_init_abi_64)
11393 (s390_linux_init_abi_any): New functions.
11394 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
11395
11396 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
11397
11398 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
11399 tdesc_has_registers check
11400
11401 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
11402
11403 * s390-linux-tdep.c (s390_tdesc_valid): New function.
11404 (s390_validate_reg_range): New macro.
11405 (s390_gdbarch_init): Adjust.
11406
11407 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
11408
11409 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
11410 (s390_gdbarch_tdep_alloc): Adjust.
11411 (s390_gdbarch_init): Adjust.
11412
11413 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
11414
11415 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
11416 <have_tdb>: Change type to bool.
11417 (s390_gdbarch_tdep_alloc): Adjust.
11418 (s390_gdbarch_init): Adjust.
11419
11420 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
11421
11422 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
11423 (gdbarch_tdep) <have_upper, have_vx>: New fields.
11424 (s390_gdbarch_tdep_alloc): New function.
11425 (s390_gdbarch_init): Allocate tdep at start and use its fields
11426 instead of separate variables.
11427
11428 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
11429
11430 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
11431 when looking for cached gdbarch and add comment for remaining.
11432
11433 2018-01-22 Pedro Alves <palves@redhat.com>
11434 Sergio Durigan Junior <sergiodj@redhat.com>
11435
11436 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
11437 case.
11438
11439 2018-01-22 Maciej W. Rozycki <macro@mips.com>
11440
11441 * MAINTAINERS: Update my company e-mail address.
11442
11443 2018-01-22 Yao Qi <yao.qi@linaro.org>
11444
11445 * regcache.c (cooked_write_test): New function.
11446 (_initialize_regcache): Register the test.
11447
11448 2018-01-22 Yao Qi <yao.qi@linaro.org>
11449
11450 * ia64-tdep.c (ia64_pseudo_register_read): Call
11451 regcache->cooked_read instead of regcache_cooked_read_unsigned.
11452 * m32c-tdep.c (m32c_cat_read): Likewise.
11453 (m32c_r3r2r1r0_read): Likewise.
11454 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
11455 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
11456
11457 2018-01-22 Yao Qi <yao.qi@linaro.org>
11458
11459 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
11460 method raw_read instead of regcache_raw_read.
11461 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
11462 * arm-tdep.c (arm_neon_quad_read): Likewise.
11463 * avr-tdep.c (avr_pseudo_register_read): Likewise.
11464 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
11465 * frv-tdep.c (frv_pseudo_register_read): Likewise.
11466 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
11467 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
11468 (i386_pseudo_register_read_into_value): Likewise.
11469 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
11470 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
11471 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
11472 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
11473 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
11474 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
11475 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
11476 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
11477 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
11478
11479 2018-01-22 Yao Qi <yao.qi@linaro.org>
11480
11481 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
11482 * configure.tgt: Remove target mt.
11483 * mt-tdep.c: Remove.
11484 * regcache.c (cooked_read_test): Remove the check for mt.
11485
11486 2018-01-22 Yao Qi <yao.qi@linaro.org>
11487
11488 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
11489 instead of gdbarch_pseudo_register_read_value.
11490
11491 2018-01-22 Joel Brobecker <brobecker@adacore.com>
11492
11493 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
11494 language is Ada.
11495
11496 2018-01-22 Joel Brobecker <brobecker@adacore.com>
11497
11498 * linespec.c (create_sals_line_offset): Remove code that preserved
11499 the symtab_and_line's line number.
11500
11501 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
11502
11503 * varobj.c (varobj_create): Don't set valid_block when creating a
11504 floating varobj.
11505
11506 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
11507
11508 * varobj.c (varobj_create): Remove out of date comment.
11509
11510 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
11511
11512 PR mi/20395
11513 * ada-exp.y (write_var_from_sym): Pass extra parameter when
11514 updating innermost block.
11515 * parse.c (innermost_block_tracker::update): Take extra type
11516 parameter, and check types match before updating innermost block.
11517 (write_dollar_variable): Update innermost block for registers.
11518 * parser-defs.h (enum innermost_block_tracker_type): New enum.
11519 (innermost_block_tracker::innermost_block_tracker): Initialise
11520 m_types member.
11521 (innermost_block_tracker::reset): Take type parameter.
11522 (innermost_block_tracker::update): Take type parameter, and pass
11523 type through as needed.
11524 (innermost_block_tracker::m_types): New member.
11525 * varobj.c (varobj_create): Pass type when reseting innermost
11526 block.
11527
11528 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
11529
11530 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
11531 * ada-lang.c (resolve_subexp): Likewise.
11532 * breakpoint.c (set_breakpoint_condition) Likewise.
11533 (watch_command_1) Likewise.
11534 * c-exp.y (variable): Likewise.
11535 * d-exp.y (PrimaryExpression): Likewise.
11536 * f-exp.y (variable): Likewise.
11537 * go-exp.y (variable): Likewise.
11538 * m2-exp.y (variable): Likewise.
11539 * objfiles.c (objfile::~objfile): Likewise.
11540 * p-exp.y (variable): Likewise.
11541 * parse.c (innermost_block): Change type.
11542 * parser-defs.h (class innermost_block_tracker): New.
11543 (innermost_block): Change to innermost_block_tracker.
11544 * printcmd.c (display_command): Switch to innermost_block API.
11545 (do_one_display): Likewise.
11546 * rust-exp.y (do_one_display): Likewise.
11547 * symfile.c (clear_symtab_users): Likewise.
11548 * varobj.c (varobj_create): Switch to innermost_block API, replace
11549 use of innermost_block with block stored on varobj object.
11550
11551 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
11552
11553 * expression.h (innermost_block): Remove declaration.
11554 * varobj.c: Add 'parser-defs.h' include.
11555
11556 2018-01-19 Tom Tromey <tom@tromey.com>
11557
11558 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
11559 symbols in the static and global blocks.
11560
11561 2018-01-19 James Clarke <jrtc27@jrtc27.com>
11562
11563 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
11564 gdb_ptrace.h, and move including gdb_wait.h ...
11565 * nat/linux-ptrace.h: ... to here.
11566
11567 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
11568
11569 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
11570 inf_ptrace_detach_success.
11571 (inf_ptrace_detach_success): Add inferior parameter, use it
11572 instead of inferior_ptid, pass it to detach_inferior.
11573 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
11574 parameter.
11575 * inferior.c (detach_inferior): Add overload that takes an
11576 inferior object.
11577 * inferior.h (detach_inferior): Likewise.
11578 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
11579 use inferior_ptid, adjust call to inf_ptrace_detach_success.
11580 * linux-thread-db.c (thread_db_detach): Use inf parameter.
11581
11582 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
11583
11584 * target.h (struct target_ops) <to_detach>: Add inferior
11585 parameter.
11586 (target_detach): Likewise.
11587 * target.c (dispose_inferior): Pass inferior down.
11588 (target_detach): Pass inferior down. Assert that it is equal to
11589 the current inferior.
11590 * aix-thread.c (aix_thread_detach): Pass inferior down.
11591 * corefile.c (core_file_command): Pass current_inferior() down.
11592 * corelow.c (core_detach): Add inferior parameter.
11593 * darwin-nat.c (darwin_detach): Likewise.
11594 * gnu-nat.c (gnu_detach): Likewise.
11595 * inf-ptrace.c (inf_ptrace_detach): Likewise.
11596 * infcmd.c (detach_command): Pass current_inferior() down to
11597 target_detach.
11598 * infrun.c (follow_fork_inferior): Pass parent_inf to
11599 target_detach.
11600 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
11601 target_detach.
11602 * linux-nat.c (linux_nat_detach): Add inferior parameter.
11603 * linux-thread-db.c (thread_db_detach): Likewise.
11604 * nto-procfs.c (procfs_detach): Likewise.
11605 * procfs.c (procfs_detach): Likewise.
11606 * record.c (record_detach): Likewise.
11607 * record.h (struct inferior): Forward-declare.
11608 (record_detach): Add inferior parameter.
11609 * remote-sim.c (gdbsim_detach): Likewise.
11610 * remote.c (remote_detach_1): Likewise.
11611 (remote_detach): Likewise.
11612 (extended_remote_detach): Likewise.
11613 * sol-thread.c (sol_thread_detach): Likewise.
11614 * target-debug.h (target_debug_print_inferior_p): New macro.
11615 * target-delegates.c: Re-generate.
11616 * top.c (kill_or_detach): Pass inferior down to target_detach.
11617 * windows-nat.c (windows_detach): Add inferior parameter.
11618
11619 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
11620
11621 * target.h (struct target_ops) <to_detach>: Remove args
11622 parameter.
11623 (target_detach): Likewise.
11624 * target.c (dispose_inferior): Adjust.
11625 (target_detach): Remove args parameter, adjust.
11626 * aix-thread.c (aix_thread_detach): Adjust.
11627 * corefile.c (core_file_command): Adjust.
11628 * corelow.c (core_detach): Adjust.
11629 * darwin-nat.c (darwin_detach): Adjust.
11630 * gnu-nat.c (gnu_detach): Adjust.
11631 * inf-ptrace.c (inf_ptrace_detach): Adjust.
11632 * infcmd.c (detach_command): Adjust
11633 * infrun.c (follow_fork_inferior): Adjust.
11634 (handle_vfork_child_exec_or_exit): Adjust.
11635 * linux-fork.c (linux_fork_detach): Remove args parameter.
11636 * linux-fork.h (linux_fork_detach): Likewise.
11637 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
11638 * linux-thread-db.c (thread_db_detach): Likewise.
11639 * nto-procfs.c (procfs_detach): Likewise.
11640 * procfs.c (procfs_detach): Likewise.
11641 (do_detach): Remove signo parameter.
11642 * record.c (record_detach): Remove args parameter.
11643 * record.h (record_detach): Likewise.
11644 * remote-sim.c (gdbsim_detach): Likewise.
11645 * remote.c (remote_detach_1): Likewise.
11646 (remote_detach): Likewise.
11647 (extended_remote_detach): Likewise.
11648 * sol-thread.c (sol_thread_detach): Likewise.
11649 * target-delegates.c: Re-generate.
11650 * top.c (struct qt_args) <args>: Remove field.
11651 (kill_or_detach): Don't pass args.
11652 (quit_force): Don't set args.
11653 * windows-nat.c (windows_detach): Remove args parameter.
11654
11655 2018-01-19 Yao Qi <yao.qi@linaro.org>
11656
11657 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
11658 (arm_linux_init_abi): Install it.
11659
11660 2018-01-19 Yao Qi <yao.qi@linaro.org>
11661
11662 * osabi.c (gdb_osabi_names): Extend the regexp for
11663 arm-linux-gnueabihf.
11664
11665 2018-01-18 Yao Qi <yao.qi@linaro.org>
11666
11667 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
11668 m_abbrevs.
11669 (abbrev_table::add_abbrev): Update.
11670 (abbrev_table::lookup_abbrev): Update.
11671
11672 2018-01-18 Yao Qi <yao.qi@linaro.org>
11673
11674 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
11675
11676 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11677
11678 * compile/compile.c (compile_to_object): Convert "triplet_rx"
11679 to "std::string".
11680
11681 2018-01-17 Tom Tromey <tom@tromey.com>
11682
11683 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
11684
11685 2018-01-17 Tom Tromey <tom@tromey.com>
11686
11687 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
11688 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
11689 (create_array_type_with_stride): Update.
11690 * dwarf2read.c (set_die_type): Update.
11691
11692 2018-01-17 Tom Tromey <tom@tromey.com>
11693
11694 * dwarf2read.c (delayed_method_info): Remove typedef.
11695 (dwarf2_cu::method_info): Now a std::vector.
11696 (add_to_method_list): Update.
11697 (free_delayed_list): Remove.
11698 (compute_delayed_physnames): Update.
11699 (process_full_comp_unit, process_full_type_unit): Clear the method
11700 list. Remove cleanups.
11701 (psymtab_include_file_name): Add name_holder parameter. Use
11702 unique_xmalloc_ptr.
11703 (dwarf_decode_lines): Update.
11704
11705 2018-01-17 Tom Tromey <tom@tromey.com>
11706 Simon Marchi <simon.marchi@ericsson.com>
11707
11708 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
11709 (dwarf2_per_objfile::free_cached_comp_units)
11710 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
11711 (init_cutu_and_read_dies_no_follow): Update.
11712 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
11713 (dwarf2_cu::~dwarf2_cu): New.
11714 (free_heap_comp_unit, free_stack_comp_unit): Remove.
11715 (age_cached_comp_units, free_one_cached_comp_unit): Update.
11716
11717 2018-01-17 Tom Tromey <tom@tromey.com>
11718 Simon Marchi <simon.marchi@ericsson.com>
11719
11720 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
11721 (struct die_reader_specs) <abbrev_table>: New member.
11722 (struct abbrev_table): Add constructor.
11723 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
11724 <abbrev_obstack>: Now an auto_obstack.
11725 (abbrev_table_up): New typedef.
11726 (init_cu_die_reader): Add abbrev_table parameter.
11727 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
11728 Add result_dwo_abbrev_table.
11729 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
11730 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
11731 Update.
11732 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
11733 parameter.
11734 (skip_children): Update.
11735 (abbrev_table::alloc_abbrev): Rename from
11736 abbrev_table_alloc_abbrev.
11737 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
11738 (abbrev_table::lookup_abbrev): Rename from
11739 abbrev_table_lookup_abbrev.
11740 (abbrev_table_read_table): Return abbrev_table_up.
11741 (abbrev_table_free, abbrev_table_free_cleanup)
11742 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
11743 (load_partial_dies): Update.
11744
11745 2018-01-17 Tom Tromey <tom@tromey.com>
11746
11747 * dwarf2read.c (dwarf2_compute_name): Update comment.
11748 (read_func_scope, read_variable): Update.
11749 (new_symbol): Remove.
11750 (new_symbol_full): Rename to new_symbol.
11751
11752 2018-01-17 Mike Gulick <mgulick@mathworks.com>
11753
11754 PR gdb/16577
11755 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
11756 a warning instead of throwing an error, set section size to 0 and return
11757 NULL.
11758 * gdb_bfd.h (gdb_bfd_map_section): Update description.
11759
11760 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
11761
11762 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
11763 std::string.
11764 (linux_ptrace_attach_fail_reason_string): Likewise.
11765 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
11766 Likewise.
11767 (linux_ptrace_attach_fail_reason_string): Likewise.
11768 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
11769
11770 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
11771
11772 * linux-nat.c (linux_nat_attach): Remove xstrdup.
11773
11774 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
11775
11776 PR gdb/21559
11777 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
11778 checking for fs_base/gs_base fields in struct user_regs_struct.
11779 * configure: Regenerate.
11780
11781 2018-01-17 Yao Qi <yao.qi@linaro.org>
11782
11783 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
11784 function.
11785 (aarch64_linux_init_abi): Install it to gdbarch hook
11786 gcc_target_options.
11787
11788 2018-01-15 Pedro Alves <palves@redhat.com>
11789
11790 * common/signals-state-save-restore.c
11791 (save_original_signals_state): Fix typos.
11792
11793 2017-01-12 Tom Tromey <tom@tromey.com>
11794 Sergio Durigan Junior <sergiodj@redhat.com>
11795
11796 * Makefile.in (install-only): Install gdb-add-index.
11797
11798 2018-01-12 John Baldwin <jhb@FreeBSD.org>
11799
11800 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
11801
11802 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11803
11804 * infrun.c (keep_going_pass_signal): Clear step-over info when
11805 insert_breakpoints fails.
11806
11807 2018-01-11 Pedro Alves <palves@redhat.com>
11808
11809 PR gdb/22583
11810 * infrun.c (resume): Rename to ...
11811 (resume_1): ... this.
11812 (resume): Reimplement as wrapper around resume_1.
11813
11814 2018-01-11 Pedro Alves <palves@redhat.com>
11815
11816 PR remote/22597
11817 * remote.c (remote_parse_stop_reply): Default to the last-set
11818 general thread instead of to 'magic_null_ptid'.
11819
11820 2018-01-10 Pedro Alves <palves@redhat.com>
11821
11822 * language.h (language_get_symbol_name_matcher): Rename ...
11823 (get_symbol_name_matcher): ... this.
11824 * language.c (language_get_symbol_name_matcher): Ditto.
11825 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
11826 callers adjusted.
11827
11828 2018-01-10 Pedro Alves <palves@redhat.com>
11829
11830 PR gdb/22670
11831 * dwarf2read.c
11832 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
11833 Adjust to use language_get_symbol_name_matcher instead of
11834 language_defn::la_get_symbol_name_matcher.
11835 * language.c (language_get_symbol_name_matcher): If in Ada mode
11836 and the lookup name is a verbatim match, return Ada's matcher.
11837 * language.h (language_get_symbol_name_matcher): Adjust comment.
11838 (ada_lookup_name_info::verbatim_p):: New method.
11839
11840 2018-01-10 Pedro Alves <palves@redhat.com>
11841
11842 PR gdb/22670
11843 * ada-lang.c (ada_collect_symbol_completion_matches): If the
11844 minsym's language is language_auto or language_cplus, pass down
11845 language_ada instead.
11846 * symtab.c (compare_symbol_name): Don't frob symbol language here.
11847
11848 2018-01-10 Pedro Alves <palves@redhat.com>
11849
11850 PR gdb/22670
11851 * minsyms.c (linkage_name_str): New function.
11852 (iterate_over_minimal_symbols): Use it.
11853
11854 2018-01-09 John Baldwin <jhb@FreeBSD.org>
11855
11856 * NEWS: Document that 'info proc' now works on FreeBSD.
11857
11858 2018-01-09 John Baldwin <jhb@FreeBSD.org>
11859
11860 * configure.ac: Check for kinfo_getfile in libutil.
11861 * configure: Regenerate.
11862 * config.in: Regenerate.
11863 * fbsd-nat.c: Include "fbsd-tdep.h".
11864 (fbsd_fetch_cmdline): New.
11865 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
11866 rather than calling error.
11867 (fbsd_info_proc): New.
11868 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
11869 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
11870 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
11871
11872 2018-01-09 John Baldwin <jhb@FreeBSD.org>
11873
11874 * fbsd-nat.c (struct free_deleter): Remove.
11875 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
11876
11877 2018-01-09 John Baldwin <jhb@FreeBSD.org>
11878
11879 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
11880 NULL for an empty pathname.
11881
11882 2018-01-09 John Baldwin <jhb@FreeBSD.org>
11883
11884 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
11885 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
11886 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
11887 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
11888 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
11889 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
11890 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
11891 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
11892 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
11893 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
11894 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
11895 (fbsd_core_fetch_timeval, fbsd_print_sigset)
11896 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
11897 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
11898 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
11899
11900 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
11901
11902 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
11903 (gnu_xfer_auxv): New function.
11904 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
11905 TARGET_OBJECT_AUXV.
11906
11907 2018-01-08 Yao Qi <yao.qi@linaro.org>
11908 Simon Marchi <simon.marchi@ericsson.com>
11909
11910 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
11911 common/selftest.c.
11912 (COMMON_OBS): Remove selftest.o.
11913 * configure.ac: Append selftest-arch.c and common/selftest.c to
11914 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
11915 * configure: Re-generated.
11916 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
11917 GDB_SELF_TEST.
11918 (maintenance_info_selftests): Likewise.
11919
11920 2018-01-08 Xavier Roirand <roirand@adacore.com>
11921
11922 * ada-valprint.c (val_print_packed_array_elements): Use
11923 proper number of elements when printing an array indexed
11924 by an enumeration type.
11925
11926 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
11927
11928 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
11929 (dw2_get_file_names_reader): Adjust.
11930 (lookup_dwo_signatured_type): Adjust.
11931 (lookup_dwp_signatured_type): Adjust.
11932 (lookup_signatured_type): Adjust.
11933 (create_type_unit_group): Adjust.
11934 (get_type_unit_group): Adjust.
11935 (process_psymtab_comp_unit_reader): Adjust.
11936 (build_type_psymtabs_reader): Adjust.
11937 (scan_partial_symbols): Adjust.
11938 (add_partial_symbol): Adjust.
11939 (add_partial_subprogram): Adjust.
11940 (peek_die_abbrev): Adjust.
11941 (fixup_go_packaging): Adjust.
11942 (process_imported_unit_die): Adjust.
11943 (dwarf2_compute_name): Adjust.
11944 (dwarf2_physname): Adjust.
11945 (read_import_statement): Adjust.
11946 (handle_DW_AT_stmt_list): Adjust.
11947 (read_file_scope): Adjust.
11948 (read_func_scope): Adjust.
11949 (read_lexical_block_scope): Adjust.
11950 (read_call_site_scope): Adjust.
11951 (read_variable): Adjust.
11952 (dwarf2_rnglists_process): Adjust.
11953 (dwarf2_ranges_process): Adjust.
11954 (dwarf2_ranges_read): Adjust.
11955 (dwarf2_get_pc_bounds): Adjust.
11956 (dwarf2_record_block_ranges): Adjust.
11957 (dwarf2_add_field): Adjust.
11958 (dwarf2_add_member_fn): Adjust.
11959 (read_structure_type): Adjust.
11960 (process_structure_scope): Adjust.
11961 (read_enumeration_type): Adjust.
11962 (read_array_type): Adjust.
11963 (mark_common_block_symbol_computed): Adjust.
11964 (read_common_block): Adjust.
11965 (read_namespace_type): Adjust.
11966 (read_namespace): Adjust.
11967 (read_module_type): Adjust.
11968 (read_tag_pointer_type): Adjust.
11969 (read_tag_ptr_to_member_type): Adjust.
11970 (read_tag_string_type): Adjust.
11971 (read_subroutine_type): Adjust.
11972 (read_typedef): Adjust.
11973 (read_base_type): Adjust.
11974 (attr_to_dynamic_prop): Adjust.
11975 (read_subrange_type): Adjust.
11976 (read_unspecified_type): Adjust.
11977 (dwarf2_read_abbrevs): Adjust.
11978 (load_partial_dies): Adjust.
11979 (read_partial_die): Adjust.
11980 (find_partial_die): Adjust.
11981 (guess_partial_die_structure_name): Adjust.
11982 (fixup_partial_die): Adjust.
11983 (read_attribute_value): Adjust.
11984 (read_addr_index): Adjust.
11985 (read_addr_index_from_leb128): Adjust.
11986 (read_str_index): Adjust.
11987 (dwarf2_string_attr): Adjust.
11988 (get_debug_line_section): Adjust.
11989 (dwarf_decode_line_header): Adjust.
11990 (lnp_state_machine::check_line_address): Adjust.
11991 (dwarf_decode_lines_1): Adjust.
11992 (dwarf_decode_lines): Adjust.
11993 (dwarf2_start_symtab): Adjust.
11994 (var_decode_location): Adjust.
11995 (new_symbol_full): Adjust.
11996 (dwarf2_const_value_data): Adjust.
11997 (dwarf2_const_value_attr): Adjust.
11998 (dwarf2_const_value): Adjust.
11999 (die_type): Adjust.
12000 (die_containing_type): Adjust.
12001 (build_error_marker_type): Adjust.
12002 (lookup_die_type): Adjust.
12003 (guess_full_die_structure_name): Adjust.
12004 (anonymous_struct_prefix): Adjust.
12005 (determine_prefix): Adjust.
12006 (dwarf2_name): Adjust.
12007 (follow_die_ref_or_sig): Adjust.
12008 (follow_die_offset): Adjust.
12009 (follow_die_ref): Adjust.
12010 (follow_die_sig_1): Adjust.
12011 (follow_die_sig): Adjust.
12012 (get_signatured_type): Adjust.
12013 (get_DW_AT_signature_type): Adjust.
12014 (decode_locdesc): Adjust.
12015 (dwarf_decode_macros): Adjust.
12016 (cu_debug_loc_section): Adjust.
12017 (fill_in_loclist_baton): Adjust.
12018 (dwarf2_symbol_mark_computed): Adjust.
12019 (init_one_comp_unit): Don't assign
12020 dwarf2_cu::dwarf2_per_objfile.
12021 (set_die_type): Adjust.
12022
12023 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
12024
12025 * dwarf2read.c (struct mapped_debug_names): Add constructor.
12026 <dwarf2_per_objfile>: New field.
12027 (dwarf2_per_objfile): Remove global.
12028 (get_dwarf2_per_objfile): New function.
12029 (set_dwarf2_per_objfile): New function.
12030 (dwarf2_build_psymtabs_hard): Change objfile parameter to
12031 dwarf2_per_objfile.
12032 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
12033 (read_abbrev_offset): Likewise.
12034 (read_indirect_string): Likewise.
12035 (read_indirect_line_string): Likewise.
12036 (read_indirect_string_at_offset): Likewise.
12037 (read_indirect_string_from_dwz): Likewise.
12038 (dwarf2_find_containing_comp_unit): Change objfile parameter to
12039 dwarf2_per_objfile.
12040 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
12041 (create_all_comp_units): Change objfile parameter to
12042 dwarf2_per_objfile.
12043 (create_all_type_units): Likewise.
12044 (process_queue): Add dwarf2_per_objfile parameter.
12045 (read_and_check_comp_unit_head): Likewise.
12046 (lookup_dwo_unit_in_dwp): Likewise.
12047 (get_dwp_file): Likewise.
12048 (process_cu_includes): Likewise.
12049 (struct free_dwo_file_cleanup_data): New struct.
12050 (dwarf2_has_info): Use get_dwarf2_per_objfile and
12051 set_dwarf2_per_objfile.
12052 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
12053 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
12054 context, adjust calls.
12055 (dw2_instantiate_symtab): Likewise.
12056 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
12057 (dw2_get_cu): Likewise.
12058 (create_cu_from_index_list): Change objfile parameter to
12059 dwarf2_per_objfile.
12060 (create_cus_from_index_list): Get dwarf2_per_objfile from
12061 context, adjust calls.
12062 (create_cus_from_index): Likewise.
12063 (create_signatured_type_table_from_index): Change objfile
12064 parameter to dwarf2_per_objfile.
12065 (create_signatured_type_table_from_debug_names): Change objfile
12066 parameter to dwarf2_per_objfile.
12067 (create_addrmap_from_index): Likewise.
12068 (create_addrmap_from_aranges): Likewise.
12069 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
12070 (dw2_setup): Remove.
12071 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
12072 context.
12073 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
12074 get_dwarf2_per_objfile.
12075 (dw2_forget_cached_source_info): Likewise.
12076 (dw2_map_symtabs_matching_filename): Likewise.
12077 (struct dw2_symtab_iterator) <index>: Remove.
12078 <dwarf2_per_objfile>: New field.
12079 (dw2_symtab_iter_init): Replace index parameter with
12080 dwarf2_per_objfile.
12081 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
12082 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
12083 (dw2_print_stats): Likewise.
12084 (dw2_dump): Likewise.
12085 (dw2_expand_symtabs_for_function): Likewise.
12086 (dw2_expand_all_symtabs): Likewise.
12087 (dw2_expand_symtabs_with_fullname): Likewise.
12088 (dw2_expand_marked_cus): Replace index and objfile parameters
12089 with dwarf2_per_objfile.
12090 (dw_expand_symtabs_matching_file_matcher): Add
12091 dwarf2_per_objfile parameter and adjust calls.
12092 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
12093 adjust calls.
12094 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
12095 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
12096 adjust calls.
12097 (create_cus_from_debug_names_list): Replace objfile parameter
12098 with dwarf2_per_objfile and adjust calls.
12099 (create_cus_from_debug_names): Likewise.
12100 (dwarf2_read_debug_names): Likewise.
12101 (mapped_debug_names::namei_to_name): Adjust call.
12102 (dw2_debug_names_iterator::next): Likewise.
12103 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
12104 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
12105 (dw2_debug_names_dump): Likewise.
12106 (dw2_debug_names_expand_symtabs_for_function): Likewise.
12107 (dw2_debug_names_expand_symtabs_matching): Likewise.
12108 (dwarf2_initialize_objfile): Likewise.
12109 (dwarf2_build_psymtabs): Likewise.
12110 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
12111 this_cu.
12112 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
12113 (read_and_check_comp_unit_head): Likewise.
12114 (read_abbrev_offset): Likewise.
12115 (create_debug_type_hash_table): Likewise.
12116 (create_debug_types_hash_table): Likewise.
12117 (create_all_type_units): Replace objfile parameter with
12118 dwarf2_per_objfile.
12119 (add_type_unit): Add dwarf2_per_objfile parameter.
12120 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
12121 with dwarf2_per_objfile.
12122 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
12123 (lookup_dwp_signatured_type): Likewise.
12124 (lookup_signatured_type): Likewise.
12125 (read_cutu_die_from_dwo): Likewise.
12126 (init_tu_and_read_dwo_dies): Likewise.
12127 (init_cutu_and_read_dies): Likewise.
12128 (init_cutu_and_read_dies_no_follow): Likewise.
12129 (allocate_type_unit_groups_table): Add objfile parameter.
12130 (create_type_unit_group): Use dwarf2_per_objfile from cu.
12131 (get_type_unit_group): Likewise.
12132 (process_psymtab_comp_unit): Update call.
12133 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
12134 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
12135 (print_tu_stats): Likewise.
12136 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
12137 in void* parameter.
12138 (build_type_psymtabs): Change objfile parameter to
12139 dwarf2_per_objfile.
12140 (process_skeletonless_type_unit): Use dwarf2_per_objfile
12141 passed in void* parameter.
12142 (process_skeletonless_type_units): Change objfile parameter to
12143 dwarf2_per_objfile.
12144 (set_partial_user): Likewise.
12145 (dwarf2_build_psymtabs_hard): Likewise.
12146 (read_comp_units_from_section): Likewise.
12147 (create_all_comp_units): Likewise.
12148 (scan_partial_symbols): Update calls.
12149 (add_partial_symbol): Likewise.
12150 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
12151 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
12152 (process_queue): Add dwarf2_per_objfile parameter.
12153 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
12154 (compute_compunit_symtab_includes): Likewise.
12155 (process_cu_includes): Add dwarf2_per_objfile parameter.
12156 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
12157 (process_full_type_unit): Likewise.
12158 (process_imported_unit_die): Update call.
12159 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
12160 (read_file_scope): Likewise.
12161 (allocate_dwo_file_hash_table): Add objfile parameter.
12162 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
12163 (create_cus_hash_table): Likewise.
12164 (create_dwp_hash_table): Likewise.
12165 (create_dwo_unit_in_dwp_v1): Likewise.
12166 (create_dwp_v2_section): Likewise.
12167 (create_dwo_unit_in_dwp_v2): Likewise.
12168 (lookup_dwo_unit_in_dwp): Likewise.
12169 (try_open_dwop_file): Likewise.
12170 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
12171 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
12172 cleanup to include a reference to dwarf2_per_objfile.
12173 (open_dwp_file): Add dwarf2_per_objfile parameter.
12174 (open_and_init_dwp_file): Likewise.
12175 (get_dwp_file): Likewise.
12176 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
12177 (queue_and_load_all_dwo_tus): Update call.
12178 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
12179 data.
12180 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
12181 (dwarf2_ranges_process): Likewise.
12182 (dwarf2_get_pc_bounds): Likewise.
12183 (mark_common_block_symbol_computed): Likewise.
12184 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
12185 (dwarf2_read_abbrevs): Update call.
12186 (read_partial_die): Use dwarf2_per_objfile from cu.
12187 (find_partial_die): Likewise.
12188 (fixup_partial_die): Likewise.
12189 (read_attribute_value): Likewise.
12190 (read_indirect_string_at_offset_from): Add objfile parameter.
12191 (read_indirect_string_at_offset): Add dwarf2_per_objfile
12192 parameter.
12193 (read_indirect_string_from_dwz): Add objfile parameter.
12194 (read_indirect_string): Add objfile parameter.
12195 (read_addr_index_1): Add dwarf2_per_objfile parameter.
12196 (read_addr_index): Use dwarf2_per_objfile from cu.
12197 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
12198 call dw2_setup.
12199 (read_str_index): Use dwarf2_per_objfile from cu.
12200 (get_debug_line_section): Likewise.
12201 (read_formatted_entries): Add dwarf2_per_objfile parameter.
12202 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
12203 (new_symbol_full): Use dwarf2_per_objfile from cu.
12204 (build_error_marker_type): Likewise.
12205 (lookup_die_type): Likewise.
12206 (determine_prefix): Likewise.
12207 (follow_die_offset): Likewise.
12208 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
12209 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
12210 (dwarf2_fetch_die_type_sect_off): Likewise.
12211 (dwarf2_get_die_type): Likewise.
12212 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
12213 (get_signatured_type): Likewise.
12214 (get_DW_AT_signature_type): Likewise.
12215 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
12216 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
12217 (cu_debug_loc_section): Likewise.
12218 (fill_in_loclist_baton): Likewise.
12219 (dwarf2_symbol_mark_computed): Likewise.
12220 (dwarf2_find_containing_comp_unit): Change objfile parameter to
12221 dwarf2_per_objfile.
12222 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
12223 parameter.
12224 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
12225 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
12226 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
12227 (set_die_type): Use dwarf2_free_objfile from cu.
12228 (get_die_type_at_offset): Likewise.
12229 (dwarf2_per_objfile_free): Don't assign global variable.
12230 (debug_names) <constructor>: Add dwarf2_per_objfile
12231 parameter, update m_debugstrlookup construction.
12232 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
12233 parameter.
12234 <m_dwarf2_per_objfile>: New field.
12235 <lookup>: Use m_dwarf2_per_objfile.
12236 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
12237 (psyms_seen_size): Likewise.
12238 (write_gdbindex): Replace objfile parameter with
12239 dwarf2_per_objfile.
12240 (write_debug_names): Likewise.
12241 (write_psymtabs_to_index): Likewise.
12242 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
12243 calls.
12244
12245 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
12246
12247 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
12248 <dwarf2_per_objfile>: New field.
12249 (struct dwarf2_per_cu_data) <objfile>: Remove.
12250 <dwarf2_per_objfile>: New field.
12251 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
12252 of objfile.
12253 (create_signatured_type_table_from_index): Likewise.
12254 (create_debug_type_hash_table): Likewise.
12255 (fill_in_sig_entry_from_dwo_entry): Likewise.
12256 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
12257 (create_type_unit_group): Assign dwarf2_per_objfile instead of
12258 objfile.
12259 (create_partial_symtab): Access objfile through
12260 dwarf2_per_objfile.
12261 (process_psymtab_comp_unit_reader): Likewise.
12262 (read_comp_units_from_section): Likewise.
12263 (scan_partial_symbols): Likewise.
12264 (add_partial_symbol): Likewise.
12265 (add_partial_subprogram): Likewise.
12266 (peek_die_abbrev): Likewise.
12267 (fixup_go_packaging): Likewise.
12268 (process_full_comp_unit): Likewise.
12269 (process_full_type_unit): Likewise.
12270 (process_imported_unit_die): Likewise.
12271 (dwarf2_compute_name): Likewise.
12272 (dwarf2_physname): Likewise.
12273 (read_import_statement): Likewise.
12274 (create_cus_hash_table): Assign dwarf2_physname instead of
12275 objfile.
12276 (read_func_scope): Access objfile through dwarf2_per_objfile.
12277 (read_lexical_block_scope): Likewise.
12278 (read_call_site_scope): Likewise.
12279 (read_variable): Likewise.
12280 (dwarf2_rnglists_process): Likewise.
12281 (dwarf2_ranges_process): Likewise.
12282 (dwarf2_ranges_read): Likewise.
12283 (dwarf2_record_block_ranges): Likewise.
12284 (dwarf2_add_field): Likewise.
12285 (dwarf2_add_member_fn): Likewise.
12286 (read_structure_type): Likewise.
12287 (process_structure_scope): Likewise.
12288 (read_enumeration_type): Likewise.
12289 (read_array_type): Likewise.
12290 (read_common_block): Likewise.
12291 (read_namespace_type): Likewise.
12292 (read_namespace): Likewise.
12293 (read_module_type): Likewise.
12294 (read_tag_pointer_type): Likewise.
12295 (read_tag_ptr_to_member_type): Likewise.
12296 (read_tag_string_type): Likewise.
12297 (read_subroutine_type): Likewise.
12298 (read_typedef): Likewise.
12299 (read_base_type): Likewise.
12300 (attr_to_dynamic_prop): Likewise.
12301 (read_subrange_type): Likewise.
12302 (read_unspecified_type): Likewise.
12303 (load_partial_dies): Likewise.
12304 (read_partial_die): Likewise.
12305 (find_partial_die): Likewise.
12306 (guess_partial_die_structure_name): Likewise.
12307 (fixup_partial_die): Likewise.
12308 (read_attribute_value): Likewise.
12309 (read_addr_index_from_leb128): Likewise.
12310 (dwarf2_read_addr_index): Likewise.
12311 (dwarf2_string_attr): Likewise.
12312 (lnp_state_machine::check_line_address): Likewise.
12313 (dwarf_decode_lines_1): Likewise.
12314 (dwarf_decode_lines): Likewise.
12315 (dwarf2_start_symtab): Likewise.
12316 (var_decode_location): Likewise.
12317 (new_symbol_full): Likewise.
12318 (dwarf2_const_value_data): Likewise.
12319 (dwarf2_const_value_attr): Likewise.
12320 (dwarf2_const_value): Likewise.
12321 (die_type): Likewise.
12322 (die_containing_type): Likewise.
12323 (lookup_die_type): Likewise.
12324 (guess_full_die_structure_name): Likewise.
12325 (anonymous_struct_prefix): Likewise.
12326 (dwarf2_name): Likewise.
12327 (follow_die_ref_or_sig): Likewise.
12328 (follow_die_offset): Likewise.
12329 (follow_die_ref): Likewise.
12330 (dwarf2_fetch_die_loc_sect_off): Likewise.
12331 (dwarf2_fetch_constant_bytes): Likewise.
12332 (dwarf2_fetch_die_type_sect_off): Likewise.
12333 (dwarf2_get_die_type): Likewise.
12334 (follow_die_sig): Likewise.
12335 (decode_locdesc): Likewise.
12336 (dwarf2_per_cu_objfile): Likewise.
12337 (dwarf2_per_cu_text_offset): Likewise.
12338 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
12339 objfile.
12340 (set_die_type): Access objfile through
12341 dwarf2_per_objfile.
12342
12343 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
12344
12345 * valprint.c (converted_character_d): Remove typedef.
12346 (DEF_VEC_O (converted_character_d)): Remove.
12347 (count_next_character): Use std::vector.
12348 (print_converted_chars_to_obstack): Likewise.
12349 (generic_printstr): Likewise.
12350
12351 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
12352
12353 * xml-support.h (struct gdb_xml_value): Add constructor.
12354 <value>: Change type to unique_xmalloc_ptr.
12355 (gdb_xml_value_s): Remove typedef.
12356 (DEF_VEC_O (gdb_xml_value_s)): Remove.
12357 (gdb_xml_element_start_handler): Change parameter type to
12358 std::vector.
12359 (xml_find_attribute): Likewise.
12360 * xml-support.c (xml_find_attribute): Change parameter type to
12361 std::vector and adjust.
12362 (gdb_xml_values_cleanup): Remove.
12363 (gdb_xml_parser::start_element): Adjust to std::vector.
12364 (xinclude_start_include): Change paraeter type to std::vector
12365 and adjust.
12366 * btrace.c (check_xml_btrace_version): Likewise.
12367 (parse_xml_btrace_block): Likewise.
12368 (parse_xml_btrace_pt_config_cpu): Likewise.
12369 (parse_xml_btrace_pt): Likewise.
12370 (parse_xml_btrace_conf_bts): Likewise.
12371 (parse_xml_btrace_conf_pt): Likewise.
12372 * memory-map.c (memory_map_start_memory): Likewise.
12373 (memory_map_start_property): Likewise.
12374 * osdata.c (osdata_start_osdata): Likewise.
12375 (osdata_start_item): Likewise.
12376 (osdata_start_column): Likewise.
12377 * remote.c (start_thread): Likewise.
12378 * solib-aix.c (library_list_start_library): Likewise.
12379 (library_list_start_list): Likewise.
12380 * solib-svr4.c (library_list_start_library): Likewise.
12381 (svr4_library_list_start_list): Likewise.
12382 * solib-target.c (library_list_start_segment): Likewise.
12383 (library_list_start_section): Likewise.
12384 (library_list_start_library): Likewise.
12385 (library_list_start_list): Likewise.
12386 * tracepoint.c (traceframe_info_start_memory): Likewise.
12387 (traceframe_info_start_tvar): Likewise.
12388 * xml-syscall.c (syscall_start_syscall): Likewise.
12389 * xml-tdesc.c (tdesc_start_target): Likewise.
12390 (tdesc_start_feature): Likewise.
12391 (tdesc_start_reg): Likewise.
12392 (tdesc_start_union): Likewise.
12393 (tdesc_start_struct): Likewise.
12394 (tdesc_start_flags): Likewise.
12395 (tdesc_start_enum): Likewise.
12396 (tdesc_start_field): Likewise.
12397 (tdesc_start_enum_value): Likewise.
12398 (tdesc_start_vector): Likewise.
12399
12400 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
12401
12402 * extension.h (struct xmethod_worker) <clone>: Remove.
12403 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
12404 Remove.
12405 (python_xmethod_worker::clone): Remove.
12406 * valops.c (find_overload_match): Use std::move instead of
12407 clone.
12408
12409 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
12410
12411 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
12412 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
12413 <free_xmethod_worker_data>: Remove.
12414 <get_matching_xmethod_workers>: Chance VEC to std::vector.
12415 <get_xmethod_arg_types>: Remove.
12416 <get_xmethod_result_type>: Remove.
12417 <invoke_xmethod>: Remove.
12418 * extension.c (new_xmethod_worker): Remove.
12419 (clone_xmethod_worker): Remove.
12420 (get_matching_xmethod_workers): Return void, pass std::vector by
12421 pointer.
12422 (get_xmethod_arg_types): Rename to...
12423 (xmethod_worker::get_arg_types): ... this, and adjust.
12424 (get_xmethod_result_type): Rename to...
12425 (xmethod_worker::get_result_type): ... this, and adjust.
12426 (invoke_xmethod): Remove.
12427 (free_xmethod_worker): Remove.
12428 (free_xmethod_worker_vec): Remove.
12429 * extension.h (enum ext_lang_rc): Move here from
12430 extension-priv.h.
12431 (struct xmethod_worker): Add constructor and destructor.
12432 <data>: Remove.
12433 <value>: Remove.
12434 <invoke, clone, do_get_result_type, do_get_arg_types>: New
12435 virtual pure methods.
12436 <get_arg_types, get_result_type>: New methods.
12437 (xmethod_worker_ptr): Remove typedef.
12438 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
12439 (xmethod_worker_vec): Remove typedef.
12440 (xmethod_worker_up): New typedef.
12441 (invoke_xmethod): Remove.
12442 (clone_xmethod_worker): Remove.
12443 (free_xmethod_worker): Remove.
12444 (free_xmethod_worker_vec): Remove.
12445 (get_xmethod_arg_types): Remove.
12446 (get_xmethod_result_type): Remove.
12447 * valops.c (find_method_list): Use std::vector, don't use
12448 intermediate vector.
12449 (value_find_oload_method_list): Use std::vector.
12450 (find_overload_match): Use std::vector.
12451 (find_oload_champ): Use std::vector.
12452 * value.c (value_free): Use operator delete.
12453 (value_of_xmethod): Rename to...
12454 (value_from_xmethod): ... this. Don't assign
12455 xmethod_worker::value, take rvalue-reference.
12456 (result_type_of_xmethod): Adjust.
12457 (call_xmethod): Adjust.
12458 * value.h: Include extension.h.
12459 (struct xmethod_worker): Don't forward-declare.
12460 (value_of_xmethod): Rename to...
12461 (value_from_xmethod): ... this, take rvalue-reference.
12462 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
12463 (struct python_xmethod_worker): ... this, add constructor and
12464 destructor.
12465 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
12466 (gdbpy_free_xmethod_worker_data): Rename to...
12467 (python_xmethod_worker::~python_xmethod_worker): ... this and
12468 adjust.
12469 (gdbpy_clone_xmethod_worker_data): Rename to...
12470 (python_xmethod_worker::clone): ... this and adjust.
12471 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
12472 temporary vector.
12473 (gdbpy_get_xmethod_arg_types): Rename to...
12474 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
12475 (gdbpy_get_xmethod_result_type): Rename to...
12476 (python_xmethod_worker::do_get_result_type): ... this and
12477 adjust.
12478 (gdbpy_invoke_xmethod): Rename to...
12479 (python_xmethod_worker::invoke): ... this and adjust.
12480 (new_python_xmethod_worker): Rename to...
12481 (python_xmethod_worker::python_xmethod_worker): ... this and
12482 adjust.
12483 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
12484 Remove.
12485 (gdbpy_free_xmethod_worker_data): Remove.
12486 (gdbpy_get_matching_xmethod_workers): Use std::vector.
12487 (gdbpy_get_xmethod_arg_types): Remove.
12488 (gdbpy_get_xmethod_result_type): Remove.
12489 (gdbpy_invoke_xmethod): Remove.
12490 * python/python.c (python_extension_ops): Remove obsolete
12491 callbacks.
12492
12493 2018-01-05 Pedro Alves <palves@redhat.com>
12494
12495 PR gdb/18653
12496 * common/signals-state-save-restore.c
12497 (save_original_signals_state): New parameter 'quiet'. Warn if we
12498 find a custom handler preinstalled, instead of internal erroring.
12499 But only warn if !quiet.
12500 * common/signals-state-save-restore.h
12501 (save_original_signals_state): New parameter 'quiet'.
12502 * main.c (captured_main_1): Move save_original_signals_state call
12503 after option handling, and pass QUIET.
12504
12505 2018-01-05 Pedro Alves <palves@redhat.com>
12506
12507 * spu-tdep.c (spu_catch_start): Pass
12508 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
12509
12510 2018-01-05 Pedro Alves <palves@redhat.com>
12511
12512 PR gdb/22670
12513 * ada-lang.c (literal_symbol_name_matcher): New function.
12514 (ada_get_symbol_name_matcher): Use it for
12515 symbol_name_match_type::SEARCH_NAME.
12516 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
12517 it down instead of assuming symbol_name_match_type::FULL.
12518 * block.h (block_lookup_symbol): New parameter 'match_type'.
12519 * c-valprint.c (print_unpacked_pointer): Use
12520 lookup_symbol_search_name instead of lookup_symbol.
12521 * compile/compile-object-load.c (get_out_value_type): Pass down
12522 symbol_name_match_type::SEARCH_NAME.
12523 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
12524 symbol_name_match_type::FULL.
12525 * cp-support.c (cp_get_symbol_name_matcher): Handle
12526 symbol_name_match_type::SEARCH_NAME.
12527 * infrun.c (insert_exception_resume_breakpoint): Use
12528 lookup_symbol_search_name.
12529 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
12530 * psymtab.c (maintenance_check_psymtabs): Use
12531 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
12532 * stack.c (print_frame_args): Use lookup_symbol_search_name and
12533 SYMBOL_SEARCH_NAME.
12534 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
12535 if symbol_name_match_type::SEARCH_NAME.
12536 (lookup_symbol_in_language): Pass down
12537 symbol_name_match_type::FULL.
12538 (lookup_symbol_search_name): New.
12539 (lookup_language_this): Pass down
12540 symbol_name_match_type::SEARCH_NAME.
12541 (lookup_symbol_aux, lookup_local_symbol): New parameter
12542 'match_type'. Pass it down.
12543 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
12544 (lookup_symbol_search_name): New declaration.
12545 (lookup_symbol_in_block): New 'match_type' parameter.
12546
12547 2018-01-05 Pedro Alves <palves@redhat.com>
12548
12549 PR gdb/22670
12550 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
12551 ada_lookup_symbol.
12552 (ada_lookup_symbol): Reimplement in terms of
12553 ada_lookup_symbol_list, bits factored out from
12554 ada_lookup_encoded_symbol.
12555
12556 2018-01-05 Joel Brobecker <brobecker@adacore.com>
12557
12558 * ada-exp.y (write_object_renaming): When subscripting an array
12559 using a symbol as the index, pass the block in call to
12560 ada_lookup_encoded_symbol when looking that symbol up.
12561
12562 2018-01-05 Jerome Guitton <guitton@adacore.com>
12563
12564 * ada-lang.c (ada_array_length): Use ada_index_type instead of
12565 TYPE_INDEX_TYPE.
12566
12567 2018-01-05 Joel Brobecker <brobecker@adacore.com>
12568
12569 * ada-lang.c (ada_to_fixed_value_create): Add handling of
12570 the case where VALUE_LVAL (val0) is not lval_memory.
12571
12572 2018-01-05 Xavier Roirand <roirand@adacore.com>
12573
12574 * ada-valprint.c (print_optional_low_bound): Handle
12575 character-indexed array printing like boolean-indexed array
12576 printing.
12577
12578 2018-01-05 Joel Brobecker <brobecker@adacore.com>
12579
12580 * NEWS: Create a new section for the next release branch.
12581 Rename the section of the current branch, now that it has
12582 been cut.
12583
12584 2018-01-05 Joel Brobecker <brobecker@adacore.com>
12585
12586 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
12587 * version.in: Bump version to 8.1.50.DATE-git.
12588
12589 2018-01-03 Xavier Roirand <roirand@adacore.com>
12590
12591 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
12592 Add field.
12593 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
12594 Add field.
12595 (default_exception_support_info) <catch_handlers_sym>: Add field.
12596 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
12597 (ada_exception_name_addr_1): Add "catch handlers" handling.
12598 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
12599 Update all callers.
12600 (create_excep_cond_exprs) <ex>: Add parameter.
12601 (re_set_exception): Update create_excep_cond_exprs call.
12602 (print_it_exception, print_one_exception, print_mention_exception)
12603 (print_recreate_exception): Add "catch handler" handling.
12604 (allocate_location_catch_handlers, re_set_catch_handlers)
12605 (check_status_catch_handlers, print_it_catch_handlers)
12606 (print_one_catch_handlers, print_mention_catch_handlers)
12607 (print_recreate_catch_handlers): New function.
12608 (catch_handlers_breakpoint_ops): New variable.
12609 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
12610 Add parameter. Add "catch handler" handling.
12611 (ada_exception_sym_name, ada_exception_breakpoint_ops):
12612 Add "catch handler" handling.
12613 (ada_exception_catchpoint_cond_string): Add "catch handler"
12614 handling.
12615 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
12616 call.
12617 (catch_ada_handlers_command): New function.
12618 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
12619 operations structure.
12620 (_initialize_ada_language): Add "catch handlers" command entry.
12621 * NEWS: Document "catch handlers" feature.
12622
12623 2018-01-02 Joel Brobecker <brobecker@adacore.com>
12624
12625 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
12626 account when creating the array type of the slice.
12627 (ada_value_slice): Likewise.
12628
12629 2018-01-02 Joel Brobecker <brobecker@adacore.com>
12630
12631 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
12632 New enum value.
12633 (create_array_type_with_stride): Add byte_stride_prop parameter.
12634 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
12635 New parameter. Update all callers in this file.
12636 (array_type_has_dynamic_stride): New function.
12637 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
12638 of arrays with dynamic byte strides.
12639 * dwarf2read.c (read_array_type): Add support for dynamic
12640 DW_AT_byte_stride attributes.
12641
12642 2018-01-02 Joel Brobecker <brobecker@adacore.com>
12643
12644 * dwarf2read.c (read_unspecified_type): Treat
12645 DW_TAG_enumeration_type DIEs from Ada units as stubs.
12646
12647 2018-01-01 Joel Brobecker <brobecker@adacore.com>
12648
12649 Update copyright year range in all GDB files.
12650
12651 2018-01-01 Joel Brobecker <brobecker@adacore.com>
12652
12653 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
12654 and gdb/testsuite/gdb.base/step-line.c.
12655
12656 2018-01-01 Joel Brobecker <brobecker@adacore.com>
12657
12658 * copyright.py (main): Dump the contents of
12659 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
12660 even if BY_HAND is empty.
12661
12662 2018-01-01 Joel Brobecker <brobecker@adacore.com>
12663
12664 * top.c (print_gdb_version): Update Copyright year in version
12665 message.
12666
12667 2018-01-01 Joel Brobecker <brobecker@adacore.com>
12668
12669 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
12670
12671 For older changes see ChangeLog-2017.
12672 \f
12673 Local Variables:
12674 mode: change-log
12675 left-margin: 8
12676 fill-column: 74
12677 version-control: never
12678 coding: utf-8
12679 End:
This page took 0.26853 seconds and 5 git commands to generate.