Add new search_symbols_multiple API
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
fcaad03c
KS
12018-08-29 Keith Seitz <keiths@redhat.com>
2
3 * linespec.c (collect_info::add_symbol): Make virtual.
4 (struct symbol_searcher_collect_info): New struct.
5 (symbol_searcher::find_all_symbols): New method.
6 * symtab.h (class symbol_searcher): New class.
7
7e41c8db
KS
82018-08-29 Keith Seitz <keiths@redhat.com>
9
10 * linespec.c (struct linespec) <function_symbols, label_symbols>:
11 Change to vector of block_symbol. Update all users.
12 (struct collect_info) <symbols>: Likewise.
13 (collect_info::add_symbol): Take block_symbol as argument.
14 Update all callers.
15 (decode_compound_collector) <m_symbols>: Change type to vector
16 of block_symbol. Update all users.
17 (decode_compound_collector::operator ()): Change parameter type
18 to block_symbol.
19 (find_method, find_function_symbols, find_linespec_symbols)
20 (find_label_symbols_in_block, find_label_symbols): Change symbol
21 vectors to block_symbol vectors.
22 * symtab.h (symbol_found_callback_ftype): Change parameter type to
23 block_symbol.
24
63e8c3da
KS
252018-08-29 Keith Seitz <keiths@redhat.com>
26
27 * linespec.c (symbolp): Remove typedef and VEC definitions.
28 (bound_minimal_symbol_d): Likewise.
29
4dedf84d
KS
302018-08-29 Keith Seitz <keiths@redhat.com>
31
32 * linespec.c (decode_compound_collector::decode_compound_collector):
33 Remove initialization for `m_symtabs'.
34 (decode_compound_collector::release_symbols): Change return type
35 to std::vector. Update all callers.
36 (class decode_compound_collector) <m_symbols>: Change type to
37 std::vector.
38 (lookup_prefix_sym): Change return type to std::vector. Update all
39 callers.
40 (compare_symbols): Remove.
41 (std_compare_symbols): Rename to `compare_symbols'.
42 (find_method): Change `sym_classes' parameter to std::vector.
43 Update all callers. Use std::sort to sort sym_classes.
44 (find_linespec_symbols): Remove cleanup.
45
c2a031c5
KS
462018-08-29 Keith Seitz <keiths@redhat.com>
47
48 * linespec.c (struct linespec) <minimal_symbols>: Change type to
49 std::vector. Update all users.
50 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
51 (struct collect_info) <minimal_symbols>: Likewise.
52 (compare_msymbols): Return bool. Change parameters to const
53 bound_minimal_symbol references.
54 (find_method, find_function_symbols, find_linespec_symbols): Change
55 `minsyms' parameter to std::vector. Update all callers.
56
3553eadc
KS
572018-08-29 Keith Seitz <keiths@redhat.com>
58
59 * linespec.c (struct linespec) <label_symbols>: Change type to
60 std::vector. Update all users.
61 (find_label_symbols_in_block): Change `result' parameter to
62 std::vector. Update all callers.
63 (find_label_symbols): Return std::vector. Update all callers.
64
7243d011
KS
652018-08-29 Keith Seitz <keiths@redhat.com>
66
67 * linespec.c (struct linespec) <function_symbols>: Change type to
68 std::vector. Update all users.
69 (struct collect_info) <function_symbols>: Likewise.
70 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
71 (std_compare_symbols): New function.
72 (find_method, find_function_symbols, find_linespec_symbols)
73 (find_label_symbols_in_block): Change `symbols' parameter to
74 std::vector. Update all callers.
75 (find_label_symbols): Likewise for `function_symbols' and
76 `label_funcs_ret'.
77
2a908241
KS
782018-08-29 Keith Seitz <keiths@redhat.com>
79
80 * linespec.c (symtab_vector_up): Define.
81 (struct linespec) <file_symtabs>: Change type to std::vector *.
82 Update all uses.
83 (struct collect_info) <file_symtabs>: Likewise.
84 (collect_symtabs_from_filename): Return symtab_vector_up.
85 Update all callers.
86 (decode_objc): Remove cleanup.
87 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
88 (symtab_collector::release_symtabs): Return symtab_vector_up.
89 Update all callers.
90 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
91 Update all users.
92 (collect_symtabs_from_filename, symtabs_from_filename): Return
93 symtab_vector_up. Update all callers.
94
f6c4e3e8
TT
952018-08-29 Tom Tromey <tom@tromey.com>
96
97 * csky-tdep.c (csky_analyze_prologue): Use
98 core_addr_to_string_nz.
99
73c13fe6
TT
1002018-08-29 Tom Tromey <tom@tromey.com>
101
102 * windows-nat.c (struct xlate_exception) <them>: Change type to
103 DWORD.
104 (xlate): Fix formatting. Remove last entry.
105 (struct xlate_exception, xlate): Comment out.
106 (windows_nat_target::resume): Use ranged for.
107
4d3928d7
JW
1082018-08-29 Jim Wilson <jimw@sifive.com>
109
110 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
111 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
112 of NT_PRFPREG.
113 (riscv_linux_nat_target::store_registers): Likewise.
114
7a6dbc2f
SDJ
1152018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
116
117 PR gdb/23555
118 PR gdb/23558
119 * gnulib/aclocal.m4: Regenerate.
120 * gnulib/config.in: Regenerate.
121 * gnulib/configure: Regenerate.
122 * gnulib/import/Makefile.am: Update.
123 * gnulib/import/Makefile.in: Update.
124 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
125 * gnulib/import/_Noreturn.h: ... this.
126 * gnulib/import/alloca.in.h: Update.
127 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
128 * gnulib/import/arg-nonnull.h: ... this.
129 * gnulib/import/assure.h: Update.
130 * gnulib/import/at-func.c: Update.
131 * gnulib/import/basename-lgpl.c: Update.
132 * gnulib/import/extra/snippet/c++defs.h: Rename to...
133 * gnulib/import/c++defs.h: ... this.
134 * gnulib/import/canonicalize-lgpl.c: Update.
135 * gnulib/import/cdefs.h: Update.
136 * gnulib/import/chdir-long.c: Update.
137 * gnulib/import/chdir-long.h: Update.
138 * gnulib/import/cloexec.c: Update.
139 * gnulib/import/cloexec.h: Update.
140 * gnulib/import/close.c: Update.
141 * gnulib/import/closedir.c: Update.
142 * gnulib/import/config.charset: Update.
143 * gnulib/import/dirent-private.h: Update.
144 * gnulib/import/dirent.in.h: Update.
145 * gnulib/import/dirfd.c: Update.
146 * gnulib/import/dirname-lgpl.c: Update.
147 * gnulib/import/dirname.h: Update.
148 * gnulib/import/dosname.h: Update.
149 * gnulib/import/dup-safer-flag.c: Update.
150 * gnulib/import/dup-safer.c: Update.
151 * gnulib/import/dup.c: Update.
152 * gnulib/import/dup2.c: Update.
153 * gnulib/import/errno.in.h: Update.
154 * gnulib/import/error.c: Update.
155 * gnulib/import/error.h: Update.
156 * gnulib/import/exitfail.c: Update.
157 * gnulib/import/exitfail.h: Update.
158 * gnulib/import/extra/update-copyright: Update.
159 * gnulib/import/fchdir.c: Update.
160 * gnulib/import/fcntl.c: Update.
161 * gnulib/import/fcntl.in.h: Update.
162 * gnulib/import/fd-hook.c: Update.
163 * gnulib/import/fd-hook.h: Update.
164 * gnulib/import/fd-safer-flag.c: Update.
165 * gnulib/import/fd-safer.c: Update.
166 * gnulib/import/fdopendir.c: Update.
167 * gnulib/import/filename.h: Update.
168 * gnulib/import/filenamecat-lgpl.c: Update.
169 * gnulib/import/filenamecat.h: Update.
170 * gnulib/import/flexmember.h: Update.
171 * gnulib/import/float+.h: Update.
172 * gnulib/import/float.c: Update.
173 * gnulib/import/float.in.h: Update.
174 * gnulib/import/fnmatch.c: Update.
175 * gnulib/import/fnmatch.in.h: Update.
176 * gnulib/import/fnmatch_loop.c: Update.
177 * gnulib/import/fpucw.h: Update.
178 * gnulib/import/frexp.c: Update.
179 * gnulib/import/frexpl.c: Update.
180 * gnulib/import/fstat.c: Update.
181 * gnulib/import/fstatat.c: Update.
182 * gnulib/import/getcwd-lgpl.c: Update.
183 * gnulib/import/getcwd.c: Update.
184 * gnulib/import/getdtablesize.c: Update.
185 * gnulib/import/getlogin_r.c: Update.
186 * gnulib/import/getprogname.c: Update.
187 * gnulib/import/getprogname.h: Update.
188 * gnulib/import/gettext.h: Update.
189 * gnulib/import/gettimeofday.c: Update.
190 * gnulib/import/glob-libc.h: Update.
191 * gnulib/import/glob.c: Update.
192 * gnulib/import/glob.in.h: Update.
193 * gnulib/import/glob_internal.h: Update.
194 * gnulib/import/glob_pattern_p.c: Update.
195 * gnulib/import/globfree.c: Update.
196 * gnulib/import/hard-locale.c: Update.
197 * gnulib/import/hard-locale.h: Update.
198 * gnulib/import/intprops.h: Update.
199 * gnulib/import/inttypes.in.h: Update.
200 * gnulib/import/isnan.c: Update.
201 * gnulib/import/isnand-nolibm.h: Update.
202 * gnulib/import/isnand.c: Update.
203 * gnulib/import/isnanl-nolibm.h: Update.
204 * gnulib/import/isnanl.c: Update.
205 * gnulib/import/itold.c: Update.
206 * gnulib/import/libc-config.h: Update.
207 * gnulib/import/limits.in.h: Update.
208 * gnulib/import/localcharset.c: Update.
209 * gnulib/import/localcharset.h: Update.
210 * gnulib/import/localtime-buffer.c: Update.
211 * gnulib/import/localtime-buffer.h: Update.
212 * gnulib/import/lstat.c: Update.
213 * gnulib/import/m4/00gnulib.m4: Update.
214 * gnulib/import/m4/__inline.m4: Update.
215 * gnulib/import/m4/absolute-header.m4: Update.
216 * gnulib/import/m4/alloca.m4: Update.
217 * gnulib/import/m4/builtin-expect.m4: Update.
218 * gnulib/import/m4/canonicalize.m4: Update.
219 * gnulib/import/m4/chdir-long.m4: Update.
220 * gnulib/import/m4/close.m4: Update.
221 * gnulib/import/m4/closedir.m4: Update.
222 * gnulib/import/m4/configmake.m4: Update.
223 * gnulib/import/m4/d-ino.m4: Update.
224 * gnulib/import/m4/d-type.m4: Update.
225 * gnulib/import/m4/dirent_h.m4: Update.
226 * gnulib/import/m4/dirfd.m4: Update.
227 * gnulib/import/m4/dirname.m4: Update.
228 * gnulib/import/m4/double-slash-root.m4: Update.
229 * gnulib/import/m4/dup.m4: Update.
230 * gnulib/import/m4/dup2.m4: Update.
231 * gnulib/import/m4/eealloc.m4: Update.
232 * gnulib/import/m4/environ.m4: Update.
233 * gnulib/import/m4/errno_h.m4: Update.
234 * gnulib/import/m4/error.m4: Update.
235 * gnulib/import/m4/exponentd.m4: Update.
236 * gnulib/import/m4/exponentl.m4: Update.
237 * gnulib/import/m4/extensions.m4: Update.
238 * gnulib/import/m4/extern-inline.m4: Update.
239 * gnulib/import/m4/fchdir.m4: Update.
240 * gnulib/import/m4/fcntl-o.m4: Update.
241 * gnulib/import/m4/fcntl.m4: Update.
242 * gnulib/import/m4/fcntl_h.m4: Update.
243 * gnulib/import/m4/fdopendir.m4: Update.
244 * gnulib/import/m4/filenamecat.m4: Update.
245 * gnulib/import/m4/flexmember.m4: Update.
246 * gnulib/import/m4/float_h.m4: Update.
247 * gnulib/import/m4/fnmatch.m4: Update.
248 * gnulib/import/m4/fnmatch_h.m4: Update.
249 * gnulib/import/m4/fpieee.m4: Update.
250 * gnulib/import/m4/frexp.m4: Update.
251 * gnulib/import/m4/frexpl.m4: Update.
252 * gnulib/import/m4/fstat.m4: Update.
253 * gnulib/import/m4/fstatat.m4: Update.
254 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
255 * gnulib/import/m4/getcwd-path-max.m4: Update.
256 * gnulib/import/m4/getcwd.m4: Update.
257 * gnulib/import/m4/getdtablesize.m4: Update.
258 * gnulib/import/m4/getlogin.m4: Update.
259 * gnulib/import/m4/getlogin_r.m4: Update.
260 * gnulib/import/m4/getpagesize.m4: Update.
261 * gnulib/import/m4/getprogname.m4: Update.
262 * gnulib/import/m4/gettimeofday.m4: Update.
263 * gnulib/import/m4/glibc21.m4: Update.
264 * gnulib/import/m4/glob.m4: Update.
265 * gnulib/import/m4/glob_h.m4: Update.
266 * gnulib/import/m4/gnulib-cache.m4: Update.
267 * gnulib/import/m4/gnulib-common.m4: Update.
268 * gnulib/import/m4/gnulib-comp.m4: Update.
269 * gnulib/import/m4/gnulib-tool.m4: Update.
270 * gnulib/import/m4/hard-locale.m4: Update.
271 * gnulib/import/m4/include_next.m4: Update.
272 * gnulib/import/m4/inttypes-pri.m4: Update.
273 * gnulib/import/m4/inttypes.m4: Update.
274 * gnulib/import/m4/isnand.m4: Update.
275 * gnulib/import/m4/isnanl.m4: Update.
276 * gnulib/import/m4/largefile.m4: Update.
277 * gnulib/import/m4/limits-h.m4: Update.
278 * gnulib/import/m4/localcharset.m4: Update.
279 * gnulib/import/m4/locale-fr.m4: Update.
280 * gnulib/import/m4/locale-ja.m4: Update.
281 * gnulib/import/m4/locale-zh.m4: Update.
282 * gnulib/import/m4/localtime-buffer.m4: Update.
283 * gnulib/import/m4/longlong.m4: Update.
284 * gnulib/import/m4/lstat.m4: Update.
285 * gnulib/import/m4/malloc.m4: Update.
286 * gnulib/import/m4/malloca.m4: Update.
287 * gnulib/import/m4/math_h.m4: Update.
288 * gnulib/import/m4/mbrtowc.m4: Update.
289 * gnulib/import/m4/mbsinit.m4: Update.
290 * gnulib/import/m4/mbsrtowcs.m4: Update.
291 * gnulib/import/m4/mbstate_t.m4: Update.
292 * gnulib/import/m4/memchr.m4: Update.
293 * gnulib/import/m4/memmem.m4: Update.
294 * gnulib/import/m4/mempcpy.m4: Update.
295 * gnulib/import/m4/memrchr.m4: Update.
296 * gnulib/import/m4/mkdir.m4: Update.
297 * gnulib/import/m4/mkstemp.m4: Update.
298 * gnulib/import/m4/mmap-anon.m4: Update.
299 * gnulib/import/m4/mode_t.m4: Update.
300 * gnulib/import/m4/msvc-inval.m4: Update.
301 * gnulib/import/m4/msvc-nothrow.m4: Update.
302 * gnulib/import/m4/multiarch.m4: Update.
303 * gnulib/import/m4/nocrash.m4: Update.
304 * gnulib/import/m4/off_t.m4: Update.
305 * gnulib/import/m4/onceonly.m4: Update.
306 * gnulib/import/m4/open-cloexec.m4: Update.
307 * gnulib/import/m4/open.m4: Update.
308 * gnulib/import/m4/openat.m4: Update.
309 * gnulib/import/m4/opendir.m4: Update.
310 * gnulib/import/m4/pathmax.m4: Update.
311 * gnulib/import/m4/rawmemchr.m4: Update.
312 * gnulib/import/m4/readdir.m4: Update.
313 * gnulib/import/m4/readlink.m4: Update.
314 * gnulib/import/m4/realloc.m4: Update.
315 * gnulib/import/m4/rename.m4: Update.
316 * gnulib/import/m4/rewinddir.m4: Update.
317 * gnulib/import/m4/rmdir.m4: Update.
318 * gnulib/import/m4/save-cwd.m4: Update.
319 * gnulib/import/m4/secure_getenv.m4: Update.
320 * gnulib/import/m4/setenv.m4: Update.
321 * gnulib/import/m4/signal_h.m4: Update.
322 * gnulib/import/m4/ssize_t.m4: Update.
323 * gnulib/import/m4/stat-time.m4: Update.
324 * gnulib/import/m4/stat.m4: Update.
325 * gnulib/import/m4/std-gnu11.m4: Update.
326 * gnulib/import/m4/stdbool.m4: Update.
327 * gnulib/import/m4/stddef_h.m4: Update.
328 * gnulib/import/m4/stdint.m4: Update.
329 * gnulib/import/m4/stdio_h.m4: Update.
330 * gnulib/import/m4/stdlib_h.m4: Update.
331 * gnulib/import/m4/strchrnul.m4: Update.
332 * gnulib/import/m4/strdup.m4: Update.
333 * gnulib/import/m4/strerror.m4: Update.
334 * gnulib/import/m4/string_h.m4: Update.
335 * gnulib/import/m4/strstr.m4: Update.
336 * gnulib/import/m4/strtok_r.m4: Update.
337 * gnulib/import/m4/sys_socket_h.m4: Update.
338 * gnulib/import/m4/sys_stat_h.m4: Update.
339 * gnulib/import/m4/sys_time_h.m4: Update.
340 * gnulib/import/m4/sys_types_h.m4: Update.
341 * gnulib/import/m4/tempname.m4: Update.
342 * gnulib/import/m4/time_h.m4: Update.
343 * gnulib/import/m4/unistd-safer.m4: Update.
344 * gnulib/import/m4/unistd_h.m4: Update.
345 * gnulib/import/m4/warn-on-use.m4: Update.
346 * gnulib/import/m4/wchar_h.m4: Update.
347 * gnulib/import/m4/wchar_t.m4: Update.
348 * gnulib/import/m4/wctype_h.m4: Update.
349 * gnulib/import/m4/wint_t.m4: Update.
350 * gnulib/import/malloc.c: Update.
351 * gnulib/import/malloc/scratch_buffer.h: Update.
352 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
353 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
354 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
355 * gnulib/import/malloca.c: Update.
356 * gnulib/import/malloca.h: Update.
357 * gnulib/import/malloca.valgrind: Update.
358 * gnulib/import/math.in.h: Update.
359 * gnulib/import/mbrtowc.c: Update.
360 * gnulib/import/mbsinit.c: Update.
361 * gnulib/import/mbsrtowcs-impl.h: Update.
362 * gnulib/import/mbsrtowcs-state.c: Update.
363 * gnulib/import/mbsrtowcs.c: Update.
364 * gnulib/import/memchr.c: Update.
365 * gnulib/import/memmem.c: Update.
366 * gnulib/import/mempcpy.c: Update.
367 * gnulib/import/memrchr.c: Update.
368 * gnulib/import/mkdir.c: Update.
369 * gnulib/import/mkstemp.c: Update.
370 * gnulib/import/msvc-inval.c: Update.
371 * gnulib/import/msvc-inval.h: Update.
372 * gnulib/import/msvc-nothrow.c: Update.
373 * gnulib/import/msvc-nothrow.h: Update.
374 * gnulib/import/open.c: Update.
375 * gnulib/import/openat-die.c: Update.
376 * gnulib/import/openat-priv.h: Update.
377 * gnulib/import/openat-proc.c: Update.
378 * gnulib/import/openat.c: Update.
379 * gnulib/import/openat.h: Update.
380 * gnulib/import/opendir.c: Update.
381 * gnulib/import/pathmax.h: Update.
382 * gnulib/import/pipe-safer.c: Update.
383 * gnulib/import/rawmemchr.c: Update.
384 * gnulib/import/readdir.c: Update.
385 * gnulib/import/readlink.c: Update.
386 * gnulib/import/realloc.c: Update.
387 * gnulib/import/ref-add.sin: Update.
388 * gnulib/import/ref-del.sin: Update.
389 * gnulib/import/rename.c: Update.
390 * gnulib/import/rewinddir.c: Update.
391 * gnulib/import/rmdir.c: Update.
392 * gnulib/import/same-inode.h: Update.
393 * gnulib/import/save-cwd.c: Update.
394 * gnulib/import/save-cwd.h: Update.
395 * gnulib/import/scratch_buffer.h: Update.
396 * gnulib/import/secure_getenv.c: Update.
397 * gnulib/import/setenv.c: Update.
398 * gnulib/import/signal.in.h: Update.
399 * gnulib/import/stat-time.c: Update.
400 * gnulib/import/stat-time.h: Update.
401 * gnulib/import/stat-w32.c: Update.
402 * gnulib/import/stat-w32.h: Update.
403 * gnulib/import/stat.c: Update.
404 * gnulib/import/stdbool.in.h: Update.
405 * gnulib/import/stddef.in.h: Update.
406 * gnulib/import/stdint.in.h: Update.
407 * gnulib/import/stdio.in.h: Update.
408 * gnulib/import/stdlib.in.h: Update.
409 * gnulib/import/str-two-way.h: Update.
410 * gnulib/import/strchrnul.c: Update.
411 * gnulib/import/strdup.c: Update.
412 * gnulib/import/streq.h: Update.
413 * gnulib/import/strerror-override.c: Update.
414 * gnulib/import/strerror-override.h: Update.
415 * gnulib/import/strerror.c: Update.
416 * gnulib/import/string.in.h: Update.
417 * gnulib/import/stripslash.c: Update.
418 * gnulib/import/strnlen1.c: Update.
419 * gnulib/import/strnlen1.h: Update.
420 * gnulib/import/strstr.c: Update.
421 * gnulib/import/strtok_r.c: Update.
422 * gnulib/import/sys_stat.in.h: Update.
423 * gnulib/import/sys_time.in.h: Update.
424 * gnulib/import/sys_types.in.h: Update.
425 * gnulib/import/tempname.c: Update.
426 * gnulib/import/tempname.h: Update.
427 * gnulib/import/time.in.h: Update.
428 * gnulib/import/unistd--.h: Update.
429 * gnulib/import/unistd-safer.h: Update.
430 * gnulib/import/unistd.in.h: Update.
431 * gnulib/import/unsetenv.c: Update.
432 * gnulib/import/verify.h: Update.
433 * gnulib/import/extra/snippet/warn-on-use.h: Update.
434 * gnulib/import/wchar.in.h: Update.
435 * gnulib/import/wctype.in.h: Update.
436 * gnulib/import/xalloc-oversized.h: Update.
437 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
438 "53e2c179f26a890fa6685af4b6c1397ee370433b".
439
b0f492b9
GB
4402018-08-16 Gary Benson <gbenson@redhat.com>
441
442 PR gdb/13000:
443 * gdb/main.c (captured_main_1): Exit with nonzero status
444 in batch mode if the last command to be executed failed.
445 * NEWS: Mention the above.
446
2362e7f7
SM
4472018-08-29 Simon Marchi <simon.marchi@ericsson.com>
448
449 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
450 end of warning message.
451
4f4aedeb
AH
4522018-08-29 Alan Hayward <alan.hayward@arm.com>
453
454 PR gdb/22943:
455 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
456 (aarch64_extract_return_value): Use
457 aapcs_is_vfp_call_or_return_candidate.
458 (aarch64_return_in_memory): Likewise.
459 (aarch64_store_return_value): Likewise.
460
0e745c60
AH
4612018-08-29 Alan Hayward <alan.hayward@arm.com>
462
463 * aarch64-tdep.c
464 (aapcs_is_vfp_call_or_return_candidate): Make static
465 (pass_in_v_or_stack): Remove function.
466 (pass_in_v_vfp_candidate): New function.
467 (aarch64_push_dummy_call): Check for float register candidates.
468
ea92689a
AH
4692018-08-29 Alan Hayward <alan.hayward@arm.com>
470
471 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
472 (aapcs_is_vfp_call_or_return_candidate_1): New function.
473 (aapcs_is_vfp_call_or_return_candidate): Likewise.
474
ad202fcc
SM
4752018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
476
477 PR build/23399
478 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
479 (struct ipa_sym_addresses): Rename to...
480 (struct ipa_sym_addresses_common): ... this.
481 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
482
5fe3f3e4
TT
4832018-08-28 Tom Tromey <tom@tromey.com>
484
485 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
486 (token_fifo): Now a std::vector.
487 (yylex, c_parse): Update.
488 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
489 (token_fifo): Now a std::vector.
490 (yylex, d_parse): Update.
491 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
492 (token_fifo): Now a std::vector.
493 (yylex, go_parse): Update.
494
858d8004
SM
4952018-08-28 Simon Marchi <simon.marchi@ericsson.com>
496
497 * parser-defs.h (struct type_stack) <elements>: Change type to
498 std::vector<union type_stack_elt>.
499 <depth, size>: Remove.
500 * parse.c (parse_exp_in_context_1): Adjust.
501 (type_stack_reserve): Remove.
502 (check_type_stack_depth): Remove.
503 (insert_into_type_stack): Adjust to std::vector.
504 (insert_type): Likewise.
505 (push_type): Likewise.
506 (push_type_int): Likewise.
507 (insert_type_address_space): Likewise.
508 (pop_type): Likewise.
509 (pop_type_int): Likewise.
510 (pop_typelist): Likewise.
511 (pop_type_stack): Likewise.
512 (append_type_stack): Likewise.
513 (push_type_stack): Likewise.
514 (get_type_stack): Likewise.
515 (type_stack_cleanup): Likewise.
516 (push_typelist): Likewise.
517 (follow_types): Likewise.
518 (_initialize_parse): Likewise.
519
416a69af
HAQ
5202018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
521
522 * NEWS: Mention csky target.
523
9d24df82
HAQ
5242018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
525 Hafiz Abid Qadeer <abidh@codesourcery.com>
526 Don Breazeal <donb@codesourcery.com>
527
528 * csky-linux-tdep.c: New file.
529 * csky-tdep.c: Likewise.
530 * csky-tdep.h: Likewise.
531 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
532 csky-tdep.o.
533 (HFILES_NO_SRCDIR): Add csky-tdep.h.
534 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
535 * configure.tgt: Add csky support.
536
3bf9c013
JV
5372018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
538
539 * python/py-framefilter.c (py_print_frame): Print frame architecture
540 when printing on an MI output.
541
d3d8724a
TT
5422018-08-27 Tom Tromey <tom@tromey.com>
543
544 PR build/23087:
545 * configure: Rebuild.
546 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
547
1885053b
TT
5482018-08-27 Tom Tromey <tom@tromey.com>
549
550 * aarch64-linux-tdep.c
551 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
552 casts to int.
553
8406672e
TT
5542018-08-27 Tom Tromey <tom@tromey.com>
555
556 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
557 unsigned.
558 (ppc64_standard_linkage1, ppc64_standard_linkage2)
559 (ppc64_standard_linkage3, ppc64_standard_linkage4)
560 (ppc64_standard_linkage5, ppc64_standard_linkage6)
561 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
562 unsigned.
563
ec40cf90
TT
5642018-08-27 Tom Tromey <tom@tromey.com>
565
566 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
567 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
568
7bc02706
TT
5692018-08-27 Tom Tromey <tom@tromey.com>
570
571 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
572 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
573 ULONGEST_MAX.
574 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
575 ULONGEST_MAX.
576 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
577 ULONGEST_MAX.
578 * sparc-linux-tdep.c (sparc32_linux_sigframe)
579 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
580 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
581 ULONGEST_MAX.
582 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
583 (ppc64_linux_sigaction_tramp_frame)
584 (ppc32_linux_sighandler_tramp_frame)
585 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
586 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
587 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
588 * mn10300-linux-tdep.c (am33_linux_sigframe)
589 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
590 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
591 * mips-linux-tdep.c (mips_linux_o32_sigframe)
592 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
593 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
594 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
595 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
596 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
597 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
598 * microblaze-linux-tdep.c
599 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
600 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
601 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
602 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
603 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
604 * common/common-types.h (ULONGEST_MAX): New define.
605 (CORE_ADDR_MAX): Fix formatting.
606 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
607 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
608 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
609 (arm_linux_rt_sigreturn_tramp_frame)
610 (arm_eabi_linux_sigreturn_tramp_frame)
611 (arm_eabi_linux_rt_sigreturn_tramp_frame)
612 (thumb2_eabi_linux_sigreturn_tramp_frame)
613 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
614 (arm_linux_restart_syscall_tramp_frame)
615 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
616 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
617 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
618 ULONGEST_MAX.
619 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
620
70ab8ccd
TT
6212018-08-27 Tom Tromey <tom@tromey.com>
622
623 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
624 CORE_ADDR_MAX.
625 * mips-tdep.c (mips_deal_with_atomic_sequence)
626 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
627 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
628 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
629 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
630 CORE_ADDR_MAX.
631 * aarch64-tdep.c (aarch64_software_single_step): Use
632 CORE_ADDR_MAX.
633
896a7aa6
TT
6342018-08-27 Tom Tromey <tom@tromey.com>
635
636 * linespec.c (complete_linespec_component): Add cast to "char".
637 * completer.c (completion_tracker::build_completion_result): Add
638 cast to "char".
639
dd33d41d
SM
6402018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
641
642 * solist.h (struct solist, struct target_so_ops): Fix
643 indentation.
644
c645cda4
SM
6452018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
646
647 * ada-tasks.c (ada_task_info_s): Remove typedef.
648 (DEF_VEC_O(ada_task_info_s)): Remove.
649 (struct ada_tasks_inferior_data): Initialize fields.
650 <task_list>: Make an std::vector.
651 (get_ada_tasks_inferior_data): Allocate with new.
652 (ada_get_task_number): Adjust.
653 (get_task_number_from_id): Likewise.
654 (valid_task_id): Likewise.
655 (ada_get_task_info_from_ptid): Likewise.
656 (iterate_over_live_ada_tasks): Likewise.
657 (add_ada_task): Likewise.
658 (read_known_tasks): Likewise.
659 (ada_build_task_list): Likewise.
660 (print_ada_task_info): Likewise.
661 (info_task): Likewise.
662 (task_command_1): Likewise.
663
39e7af3e
SM
6642018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
665
666 * ada-lang.c (add_angle_brackets): Return std::string.
667
bbbbbcee
SM
6682018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
669
670 * python/py-threadevent.c (py_get_event_thread): Initialize
671 pythread.
672
d98fc15b
PA
6732018-08-24 Pedro Alves <palves@redhat.com>
674
675 * python/py-bpevent.c (create_breakpoint_event_object): Use
676 copy-initialization.
677 * python/py-continueevent.c (emit_continue_event): Use
678 copy-initialization.
679 * python/py-exitedevent.c (create_exited_event_object): Return a
680 gdbpy_ref<>.
681 (emit_exited_event): Use copy-initialization.
682 * python/py-inferior.c (python_new_inferior)
683 (python_inferior_deleted, add_thread_object): Use
684 copy-initialization.
685 * python/py-infevents.c (create_inferior_call_event_object)
686 (create_register_changed_event_object)
687 (create_memory_changed_event_object): Return a gdbpy_ref<>.
688 (emit_inferior_call_event, emit_memory_changed_event)
689 (emit_register_changed_event): Use copy-initialization.
690 * python/py-newobjfileevent.c (create_new_objfile_event_object):
691 Return a gdbpy_ref<>.
692 (emit_new_objfile_event): Use copy-initialization.
693 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
694 (emit_clear_objfiles_event): Use copy-initialization.
695 * python/py-signalevent.c (create_signal_event_object): Use
696 copy-initialization.
697 * python/py-threadevent.c (create_thread_event_object): Use
698 copy-initialization.
699
da3c8738
PA
7002018-08-24 Pedro Alves <palves@redhat.com>
701 Simon Marchi <simon.marchi@ericsson.com>
702
703 PR gdb/23379
704 * python/py-continueevent.c: Include "gdbthread.h".
705 (create_continue_event_object): Add intro comment. Add 'ptid'
706 parameter. Use it to find thread to pass to
707 create_thread_event_object.
708 (emit_continue_event): Pass PTID down to
709 create_continue_event_object.
710 * python/py-event.h (py_get_event_thread): Declare.
711 (create_thread_event_object): Remove default from 'thread'
712 parameter.
713 * python/py-stopevent.c (create_stop_event_object): Use
714 py_get_event_thread.
715 * python/py-threadevent.c (get_event_thread): Rename to ...
716 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
717 and use it to find the thread.
718 (create_thread_event_object): Assert that THREAD isn't null.
719 Don't find the event thread here.
720
26457a9c
KB
7212018-08-23 Kevin Buettner <kevinb@redhat.com>
722
723 * block.h (blockrange, blockranges): New struct declarations.
724 (struct block): Add new field named `ranges'.
725 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
726 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
727 macros for accessing ranges in struct block.
728 (make_blockranges): New declaration.
729 block.c (make_blockranges): New function.
2d5f09ec
KB
730 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
731 for block.
fc811edd
KB
732 * symtab.h (find_pc_partial_function): Add new parameter `block'.
733 * blockframe.c (cache_pc_function_block): New static global.
734 (clear_pc_function_cache): Clear cache_pc_function_block.
735 (find_pc_partial_function): Move comment to symtab.h. Add
736 support for non-contiguous blocks.
e9480230
KB
737 * cli/cli-cmds.c (block.h): Include.
738 (print_disassembly): Handle printing of non-contiguous blocks.
739 (disassemble_current_function): Likewise.
740 (disassemble_command): Likewise.
26457a9c 741
2b1ffcfd
KB
742 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
743 BLOCK_START.
744 * blockframe.c (get_pc_function_start): Likewise.
745 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
746 (gcc_symbol_address): Likewise.
747 * compile/compile-object-run.c (compile_object_run): Likewise.
748 * compile/compile.c (get_expr_block_and_pc): Likewise.
749 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
750 (func_addr_to_tail_call_list): Likewise.
751 * findvar.c (default_read_var_value): Likewise.
752 * inline-frame.c (inline_frame_this_id): Likewise.
753 (skip-inline_frames): Likewise.
754 * infcmd.c (until_next_command): Likewise.
755 * linespec.c (convert_linespec_to_sals): Likewise.
756 * parse.c (parse_exp_in_context_1): Likewise.
757 * printcmd.c (build_address_symbolic): likewise.
758 (info_address_command): Likewise.
759 symtab.c (find_function_start_sal): Likewise.
760 (skip_prologue_sal): Likewise.
761 (find_function_alias_target): Likewise.
762 (find_gnu_ifunc): Likewise.
763 * stack.c (find_frame_funname): Likewise.
764 * symtab.c (fixup_symbol_section): Likewise.
765 (find_function_start_sal): Likewise.
766 (skip_prologue_sal): Likewsie.
767 (find_function_alias_target): Likewise.
768 (find_gnu_ifunc): Likewise.
769 * tracepoint.c (info_scope_command): Likewise.
770 * value.c (value_fn_field): Likewise.
771
9644dc3a
KB
772 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
773 in place of find_pc_partial_function.
774 * blockframe.c (find_function_entry_range_from_pc): New function.
775 * symtab.h (find_function_entry_range_from_pc): Declare and document.
776 * objfiles.c (objfile_relocate1): Relocate start and end addresses
777 for each range in a block.
778
779
12a0d0f6
XR
7802018-08-23 Xavier Roirand <roirand@adacore.com>
781
782 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
783 incrementation.
784
d1012b8e
SM
7852018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
786
787 * solib-svr4.c (read_program_headers_from_bfd): Return
788 gdb::optional<gdb::byte_vector>.
789 (svr4_exec_displacement): Adjust.
790
17658d46
SM
7912018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
792
793 * solib-svr4.c (read_program_header): Return
794 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
795 (find_program_interpreter): Return
796 gdb::optional<gdb::byte_vector>.
797 (scan_dyntag_auxv): Adjust.
798 (enable_break): Adjust.
799 (svr4_exec_displacement): Adjust.
800
ae739fe7
SM
8012018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
802
803 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
804 * inf-child.c (inf_child_target::terminal_save_inferior): New.
805
467dc1e2
SM
8062018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
807
808 * guile/scm-string.c (gdbscm_scm_from_printf): Use
809 string_vprintf.
810 * guile/scm-utils.c (gdbscm_printf): Likewise.
811 * serial.c (serial_printf): Likewise.
812 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
813
6d52907e
JV
8142018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
815
816 * stack.c (print_frame): Print frame architecture when printing on
817 an MI output.
818 * NEWS: Mention new "arch" attribute in frame output.
819
9758a8f8
AH
8202018-08-21 Alan Hayward <alan.hayward@arm.com>
821
822 * arch/aarch64.h (aarch64_regnum): Update comment.
823
1461bdac
AH
8242018-08-21 Alan Hayward <alan.hayward@arm.com>
825
826 * NEWS: Add SVE to 8.2 section.
827
4895f384
PA
8282018-08-21 Pedro Alves <palves@redhat.com>
829
830 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
831 out from gdbscm_parse_function_args.
832 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
833 gdbscm_parse_function_args_1.
834
a4497d2f
SM
8352018-08-21 Simon Marchi <simon.marchi@ericsson.com>
836
837 PR gdb/17816
838 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
839 operator.
840
c44deb73
SM
8412018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
842
843 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
844
be2d111a
MS
8452018-08-19 Michael Spang <spang@google.com>
846
847 PR gdb/11786
848 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
849 for PT_TLS segments.
850
a6b786da
KB
8512018-08-18 Kevin Buettner <kevinb@redhat.com>
852
853 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
854 dwarf_variable_value.
855 * dwarf2-frame.c (class dwarf_expr_executor):
856 Add override for dwarf_variable_value.
857 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
858 (class symbol_needs_eval_context): Likewise.
859 (indirect_synthetic_pointer): Add forward declaration.
860 (sect_variable_value): New function.
861 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
862 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
863 for DW_OP_GNU_variable_value.
864
89fbedf3
TT
8652018-08-16 Tom Tromey <tom@tromey.com>
866
867 * top.c (read_command_file): Update.
868 (command_line_input): Remove "repeat" argument.
869 * ada-lang.c (get_selections): Update.
870 * linespec.c (decode_line_2): Update.
871 * defs.h (command_line_input): Remove argument.
872 * cli/cli-script.c (read_next_line): Update.
873 * python/py-gdb-readline.c: Update.
874
12582533
TT
8752018-08-17 Tom Tromey <tom@tromey.com>
876
877 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
878 command_line_input.
879
49514353
TT
8802018-08-15 Tom Tromey <tom@tromey.com>
881
882 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
883
26fb3983
JV
8842018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
885
886 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
887 If used, use find_pc_partial_function to find address range
888 to disassemble.
889 * mi/mi-main.c (mi_cmd_list_features): Report
890 "data-disassemble-a-option" feature.
891 * NEWS: Mention new -data-disassemble option -a.
892
a97b53dd
TT
8932018-08-13 Tom Tromey <tom@tromey.com>
894
895 * common/common-defs.h (_FORTIFY_SOURCE): Define.
896
0c76e06d
AH
8972018-08-13 Alan Hayward <alan.hayward@arm.com>
898
899 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
900 (aarch64_linux_collect_sve_regset): Likewise.
901 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
902 * regcache.h (regcache_map_entry_size): New function.
903
b7fd65b9
AH
9042018-08-13 Alan Hayward <alan.hayward@arm.com>
905
906 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
907 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
908 (SVE_HEADER_VL_LENGTH): Likewise.
909 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
910 (SVE_HEADER_FLAGS_LENGTH): Likewise.
911 (SVE_HEADER_RESERVED_LENGTH): Likewise.
912 (SVE_HEADER_SIZE_OFFSET): Likewise.
913 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
914 (SVE_HEADER_VL_OFFSET): Likewise.
915 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
916 (SVE_HEADER_FLAGS_OFFSET): Likewise.
917 (SVE_HEADER_RESERVED_OFFSET): Likewise.
918 (SVE_HEADER_SIZE): Likewise.
919 (aarch64_linux_core_read_vq): Add function.
920 (aarch64_linux_core_read_description): Check for SVE section.
921
a616bb94
AH
9222018-08-13 Alan Hayward <alan.hayward@arm.com>
923
924 * aarch64-fbsd-tdep.c
925 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
926 collect_size.
927 * aarch64-linux-tdep.c
928 (aarch64_linux_iterate_over_regset_sections): Likewise.
929 * alpha-linux-tdep.c
930 (alpha_linux_iterate_over_regset_sections):
931 * alpha-nbsd-tdep.c
932 (alphanbsd_iterate_over_regset_sections): Likewise.
933 * amd64-fbsd-tdep.c
934 (amd64fbsd_iterate_over_regset_sections): Likewise.
935 * amd64-linux-tdep.c
936 (amd64_linux_iterate_over_regset_sections): Likewise.
937 * arm-bsd-tdep.c
938 (armbsd_iterate_over_regset_sections): Likewise.
939 * arm-fbsd-tdep.c
940 (arm_fbsd_iterate_over_regset_sections): Likewise.
941 * arm-linux-tdep.c
942 (arm_linux_iterate_over_regset_sections): Likewise.
943 * corelow.c (get_core_registers_cb): Likewise.
944 (core_target::fetch_registers): Likewise.
945 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
946 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
947 * gdbarch.h (void): Regenerate.
948 * gdbarch.sh: Add supply_size and collect_size.
949 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
950 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
951 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
952 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
953 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
954 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
955 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
956 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
957 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
958 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
959 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
960 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
961 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
962 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
963 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
964 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
965 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
966 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
967 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
968 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
969 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
970 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
971 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
972 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
973 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
974 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
975 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
976 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
977 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
978 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
979
a9925d4f
SM
9802018-08-10 Simon Marchi <simon.marchi@ericsson.com>
981
982 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
983 with string_printf.
984
ad3a68e9
KS
9852018-08-10 Keith Seitz <keiths@redhat.com>
986
987 * compile/compile-c-support.c (add_code_header, add_code_footer):
988 Move into policy class.
989 (c_push_user_expression, pop_user_expression_nop)
990 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
991 (compile_program): New host class.
992 (c_compile_program): New typedef.
993 (c_compute_porgram): Use c_compile_program.
994
0cfbf430
KS
9952018-08-10 Keith Seitz <keiths@redhat.com>
996
997 * compile/compile-internal.h (compile_instance::~compile_instance):
998 Remove calls to htab_delete.
999 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
1000 * compile.c (compile_instance::compile_instance): Initialize
1001 htab unique pointers.
1002 (compile_instance::get_cached_type, compile_instance::insert_type)
1003 (compile_instance::error_symbol_once): Update for unique_ptr.
1004
946d3d10
KS
10052018-08-10 Keith Seitz <keiths@redhat.com>
1006
1007 * compile/compile-c-symbols.c (struct symbol_error)
1008 (hash_symbol_error, eq_symbol_error, del_symbol_error)
1009 (compile_instance::insert_symbol_error)
1010 (compile_instance::error_symbol_once): Move to ...
1011 * compile/compile.c: ... here.
1012
9cdfd9a2
KS
10132018-08-10 Keith Seitz <keiths@redhat.com>
1014
1015 * compile/compile-c-support.c (c_get_compile_context): Use `new'
1016 instead of `new_compile_instance'.
1017 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
1018 Update description.
1019 If the symbol error map is not initialized, create it.
1020 (generate_c_for_for_one_symbol): Do not check/initialize
1021 the symbol error map.
1022 * compile/compile-c-types.c (compile_c_instance): Make a class.
1023 Update all callers.
1024 (compile_instance::compile_instance): Initialize the type cache.
1025 (get_cached_type): New function.
1026 (insert_type): Update description.
1027 (compile_c_instance::m_default_cflags): Define.
1028 (convert_type): Update description. Use get_cached_type.
1029 (delete_instance): Moved to destructor.
1030 (new_compile_instance): Moved to constructor.
1031 * compile/compile-c.h (compile_c_instance): Make class inheriting
1032 from compile_instance.
1033 <base>: Remove field.
1034 <type_map, symbol_err_map>: Move to base class.
1035 <c_plugin>: Rename to `m_plugin' and remove pointer type.
1036 * compile/compile-internal.h (compile_instance): Make class.
1037 <type_map_t, symbol_err_map_t>: Define.
1038 <fe>: Rename to `m_gcc_fe'.
1039 <scope, block, gcc_target_options>: Add `m_' prefix.
1040 <m_type_map, m_symbol_err_map>: New fields, moved from
1041 compile_c_instance.
1042 <destroy>: Remove.
1043 (convert_type, new_compile_instance): Remove.
1044 * compile/compile.c (cleanup_compile_instance): Remove.
1045 (compile_to_object): Use unique_ptr to eliminate cleanups.
1046 (compile_instance::set_print_callback, compile_instance::version)
1047 (compile_instance::set_verbose)
1048 (compile_instance::set_driver_filename)
1049 (compile_instance::set_triplet_regexp)
1050 (compile_instance::set_arguments)
1051 (compile_instance::set_source_file)
1052 (compile_instance::compile): Define.
1053
18cdc6d8
KS
10542018-08-10 Keith Seitz <keiths@redhat.com>
1055
1056 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
1057 * compile/compile-c-types.c: Define GCC_METHODN macros and include
1058 gcc-c-fe.def to define C plugin.
1059 (delete_instance): Delete `c_plugin'.
1060 (new_compile_instance): Initialize `c_plugin'.
1061 * compile/compile-c.h: Include gcc_c_plugin.h.
1062 (struct compile_c_instance) <c_plugin>: New member.
1063 * gcc-c-plugin.h: New file.
1064 Update all callers with API change.
1065
b7dc48b4
KS
10662018-08-10 Keith Seitz <keiths@redhat.com>
1067
1068 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
1069 (HFILES_NO_SRCDIR): ... to here.
1070 Add compile-internal.h and compile-c.h.
1071 * compile/compile-c-support.c: Include compile-c.h.
1072 * compile/compile-c-symbols.c: Include compile-c.h.
1073 (generate_c_for_variable_locations): Update comment.
1074 * compile/compile-c-types.c: Include compile-c.h.
1075 * compile/compile-c.h: New file -- moved C language declarations
1076 from other files here.
1077 * compile/compile-internal.h: Do not include hashtab.h or
1078 common/enum-flags.h.
1079 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
1080 (gcc_convert_symbol, gcc_symbol_address)
1081 (generate_c_for_variable_locations, c_get_mode_for_size)
1082 (c_get_range_decl_name): Definitions moved to compile-c.h.
1083 * compile/compile-loc2c.c: Include compile-c.h.
1084
6f36b6d2
KS
10852018-08-10 Keith Seitz <keiths@redhat.com>
1086
1087 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
1088 (c_symbol_substitution_name): ... this.
1089 Update all callers.
1090
bd923e51
KS
10912018-08-10 Keith Seitz <keiths@redhat.com>
1092
1093 * compile/compile-c-support.c (c_compute_program): Use
1094 unique_xmalloc_ptr to eliminate cleanup.
1095 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
1096 Return a unique_xmalloc_ptr and eliminate cleanup.
1097 * compile/compile-internal.h (generate_c_for_variable_locations):
1098 Return unique_xmalloc_ptr and update description.
1099
dbd534fe
AH
11002018-08-10 Alan Hayward <alan.hayward@arm.com>
1101
1102 * corelow.c (core_target::get_core_register_section): Rename
1103 min_size to section_min_size.
1104
90ad3654
JW
11052018-08-09 Jim Wilson <jimw@sifive.com>
1106
52a187f8
JW
1107 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
1108 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
1109 * NEWS: Mention new GNU/Linux RISC-V target.
1110 * configure.host: Add riscv*-*-linux*.
1111 * configure.nat: Add riscv*.
1112 * configure.tgt: Add riscv*-*-linux*.
3c77f97e 1113 * riscv-linux-nat.c: New file.
90ad3654
JW
1114 * riscv-linux-tdep.c: New file.
1115
aff4e175
AB
11162018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
1117
1118 * infrun.c (resume): Make static, add forward declaration.
1119 (proceed): Update header comment.
1120 * infrun.h (resume): Delete declaration.
1121
06ab9219
TT
11222018-08-09 Tom Tromey <tom@tromey.com>
1123
1124 * riscv-tdep.h: Minor formatting fixes.
1125
83c8d318
SM
11262018-08-09 Simon Marchi <simon.marchi@ericsson.com>
1127
1128 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
1129 * dwarf-index-cache.c (create_dir_and_check): Likewise.
1130 (test_mkdir_recursive): Likewise.
1131 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
1132
5ff2bbae
AB
11332018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
1134
1135 * valarith.c (value_subscripted_rvalue): If an array is not in
1136 memory, and we don't know the upper bound, then we can't know that
1137 the requested element exists or not.
1138
fdbac7d8
SM
11392018-08-08 Simon Marchi <simon.marchi@ericsson.com>
1140
1141 * target.c (str_comma_list_concat_elem): Fix typo in comment.
1142 (target_options_to_string): Add comment.
1143
83202f7a
TT
11442018-08-08 Tom Tromey <tom@tromey.com>
1145
1146 * unittests/scoped_mmap-selftests.c: Check result of "write".
1147
411baa47
JW
11482018-08-08 Jim Wilson <jimw@sifive.com>
1149
5c720ed8
JW
1150 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
1151 (decode_register_index_short): New.
1152 (decode_j_type_insn, decode_cj_type_insn): New.
1153 (decode_b_type_insn, decode_cb_type_insn): New.
1154 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
1155 local xlen. Check xlen when decoding ambiguous compressed insns. In
1156 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
1157 is_c_sw_insn instead of is_sw_insn.
1158 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
1159 (riscv_software_single_step): New.
1160 * riscv-tdep.h (riscv_software_single_step): Declare.
1161
411baa47
JW
1162 * riscv-tdep.c (riscv_isa_xlen): Drop static.
1163 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
1164
9d4a934c
AB
11652018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
1166
1167 PR gdb/18050:
1168 * target.c (dispose_inferior): Don't dispose of inferiors that are
1169 already killed.
1170
ff36536c
SN
11712018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
1172
1173 * remote.c (remote_target::download_tracepoint): Change char* to
1174 const char*.
1175
09ce46f2
SM
11762018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
1177
1178 * target.h (target_options_to_string): Return an std::string.
1179 * target.c (str_comma_list_concat_elem): Return void, use
1180 std::string.
1181 (do_option): Likewise.
1182 (target_options_to_string): Return an std::string.
1183 * linux-nat.c (linux_nat_target::wait): Adjust.
1184 * target-debug.h (target_debug_print_options): Adjust.
1185
9c612964
TT
11862018-08-07 Tom Tromey <tom@tromey.com>
1187
1188 * Makefile.in (CPPFLAGS): New variable.
1189 (INTERNAL_CPPFLAGS): Use it.
1190
7d11235d
SM
11912018-08-07 Simon Marchi <simon.marchi@ericsson.com>
1192
1193 * NEWS: Mention the index cache.
1194
87d6a7aa
SM
11952018-08-07 Simon Marchi <simon.marchi@ericsson.com>
1196
1197 * common/pathstuff.h (get_standard_cache_dir): New.
1198 * common/pathstuff.c (get_standard_cache_dir): New.
1199 * build-id.h (build_id_to_string): New.
1200 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
1201 DEBUG_STR_SUFFIX): Move to here.
1202 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
1203 DEBUG_STR_SUFFIX): Move from there.
1204 (write_psymtabs_to_index): Make non-static, add basename
1205 parameter. Write to temporary files, rename when done.
1206 (save_gdb_index_command): Adjust call to
1207 write_psymtabs_to_index.
1208 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
1209 field.
1210 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
1211 (get_gdb_index_contents_from_cache): New.
1212 (get_gdb_index_contents_from_cache_dwz): New.
1213 (dwarf2_initialize_objfile): Read index from cache.
1214 (dwarf2_build_psymtabs): Save to index.
1215 * dwarf-index-cache.h: New file.
1216 * dwarf-index-cache.c: New file.
1217 * dwarf-index-write.h: New file.
1218
8a99096f
SM
12192018-08-07 Simon Marchi <simon.marchi@ericsson.com>
1220
1221 * gnulib/aclocal.m4: Re-generate.
1222 * gnulib/config.in: Re-generate.
1223 * gnulib/configure: Re-generate.
1224 * gnulib/import/Makefile.am: Re-generate.
1225 * gnulib/import/Makefile.in: Re-generate.
1226 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
1227 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
1228 * gnulib/import/m4/mkdir.m4: New file.
1229 * gnulib/import/mkdir.c: New file.
1230 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
1231 module.
1232
5c831bb1
SM
12332018-08-07 Simon Marchi <simon.marchi@ericsson.com>
1234
1235 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
1236 * common/scoped_mmap.c: New file.
1237 * common/scoped_mmap.h (destroy): New method.
1238 (~scoped_mmap, reset): Use destroy.
1239 (scoped_mmap): New move constructor.
1240 (mmap_file): New declaration.
1241 * unittests/scoped_mmap-selftests.c (test_normal,
1242 test_invalid_filename, run_tests): New functions.
1243 (_initialize_scoped_mmap_selftests): Register selftest.
1244
4485a1c1
SM
12452018-08-07 Simon Marchi <simon.marchi@ericsson.com>
1246
1247 * dwarf2read.c (read_gdb_index_from_section): Rename to...
1248 (read_gdb_index_from_buffer): ... this. Remove section
1249 parameter, add buffer parameter.
1250 (get_gdb_index_contents_ftype,
1251 get_gdb_index_contents_dwz_ftype): New typedefs.
1252 (dwarf2_read_gdb_index): Add callback parameters to get the
1253 index contents.
1254 (get_gdb_index_contents_from_section): New.
1255 (dwarf2_initialize_objfile): Update call to
1256 dwarf2_read_gdb_index.
1257
528e1572
SM
12582018-08-07 Simon Marchi <simon.marchi@ericsson.com>
1259
1260 * common/filestuff.h (gdb_fopen_cloexec): New overload.
1261 (gdb_open_cloexec): Likewise.
1262 * nat/linux-osdata.c (command_from_pid): Use string_printf.
1263 (commandline_from_pid): Likewise.
1264 (linux_xfer_osdata_threads): Likewise.
1265 (linux_xfer_osdata_fds): Likewise.
1266 * ada-lang.c (is_package_name): Likewise.
1267 * auxv.c (procfs_xfer_auxv): Likewise.
1268 * breakpoint.c (print_one_breakpoint_location): Use
1269 uiout::field_fmt.
1270 (print_one_catch_solib): Use string_printf.
1271 * coff-pe-read.c (add_pe_exported_sym): Likewise.
1272 (add_pe_forwarded_sym): Likewise.
1273 * dwarf2read.c (create_type_unit_group): Likewise.
1274 (build_error_marker_type): Likewise.
1275 * infcall.c (get_function_name): Likewise.
1276 * valprint.c (print_converted_chars_to_obstack): Likewise.
1277 * xtensa-tdep.c (xtensa_register_type): Likewise.
1278
a7f25a84
SM
12792018-08-06 Simon Marchi <simon.marchi@ericsson.com>
1280
1281 * remote.c (remote_target::download_tracepoint): Fix format
1282 string errors.
1283
296956be
PFC
12842018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1285
1286 * tracefile.c: Include common/byte-vector.h.
1287 (trace_save): Change type of buf to gdb::byte_vector. Initialize
1288 with trace_regblock_size if needed. Update uses of buf.
1289
a04b9d62
PFC
12902018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1291
1292 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
1293 std::vector<unsigned char>.
1294 * tracepoint.c (collection_list::collection_list): Remove
1295 m_regs_mask initializer from initializer list. Resize
1296 m_regs_mask using the largest remote register number.
1297 (collection_list::add_remote_register): Remove size check on
1298 m_regs_mask. Use at to access element.
1299 (collection_list::stringify): Change type of temp_buf to
1300 gdb::char_vector. Update uses of temp_buf. Resize if needed to
1301 stringify the register mask. Use pack_hex_byte for the register
1302 mask.
1303
4277c4b8
PFC
13042018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1305
1306 * tracepoint.h (class collection_list) <add_register>: Remove.
1307 <add_remote_register, add_ax_registers, add_local_register>:
1308 Declare.
1309 <add_memrange>: Add scope parameter.
1310 * tracepoint.c (encode_actions_1): Likewise.
1311 (collection_list::add_register): Rename to ...
1312 (collection_list::add_remote_register): ... this. Update
1313 comment.
1314 (collection_list::add_ax_registers, add_local_register): New
1315 methods.
1316 (collection_list::add_memrange): Add scope parameter. Call
1317 add_local_register instead of add_register.
1318 (finalize_tracepoint_aexpr): New function.
1319 (collection_list::collect_symbol): Update calls to add_memrange.
1320 Call add_local_register instead of add_register. Call
1321 add_ax_registers. Call finalize_tracepoint_aexpr.
1322 (encode_actions_1): Get remote regnos for $reg action. Call
1323 add_remote_register, add_ax_registers, and add_local_register.
1324 Update call to add_memrange. Call finalize_tracepoint_aexpr.
1325 (validate_actionline): Call finalize_tracepoint_aexpr.
1326
3df3a985
PFC
13272018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1328
1329 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
1330 Replace array buf with gdb::char_vector buf, of size
1331 get_remote_packet_size (). Replace references to buf and
1332 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
1333 and xsnprintf with snprintf. Raise errors if the buffer is too
1334 small.
1335
aa6f3694
PFC
13362018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1337
1338 * remote.c (remote_target::download_tracepoint): Fix the has_more
1339 predicate in the QTDP action list iteration.
1340
05abfc39
PFC
13412018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1342
1343 * remote.c (remote_target::download_tracepoint): Fix indentation
1344 in for block.
1345
821a2682
RO
13462018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1347
1348 * proc-api.c (_initialize_proc_api): Remove c, unused.
1349 * procfs.c (procfs_init_inferior): Remove signals, unused.
1350 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
1351 unused.
1352
95347337
AB
13532018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
1354 Andrew Burgess <andrew.burgess@embecosm.com>
1355
1356 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
1357 'W_STOPCODE (0)' as this could be ambiguous.
1358
425699f5
SDJ
13592018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
1360
1361 * ser-tcp.c (net_open): Fix thinko when deciding whether to
1362 disable TCP's Nagle algorithm (use "ai_protocol" instead of
1363 "ai_socktype").
1364
3e1d3d8c
TT
13652018-08-02 Tom Tromey <tom@tromey.com>
1366
1367 PR symtab/16842.
1368 * dwarf2read.c (read_func_scope): Set symtab on template parameter
1369 symbols.
1370 (process_structure_scope): Likewise.
1371
15843549
XR
13722018-08-02 Xavier Roirand <roirand@adacore.com>
1373
1374 PR gdb/22629:
1375 * darwin-nat.c (darwin_kill_inferior): Fix handling of
1376 kill inferior.
1377
b5bddbbb
TT
13782018-08-02 Tom Tromey <tom@tromey.com>
1379
1380 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
1381 (darwin_suspend_inferior, darwin_resume_inferior)
1382 (darwin_decode_notify_message, darwin_resume_inferior_threads)
1383 (darwin_check_new_threads): Check result of get_darwin_inferior.
1384
f61cfa07
JB
13852018-07-31 Joel Brobecker <brobecker@adacore.com>
1386
1387 GDB 8.1.1 released.
1388
5abe0f0c
JV
13892018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
1390
1391 * varobj.c (varobj_get_path_expr_parent): Report an error if
1392 parent is a dynamic varobj.
1393
472fa5ee
SM
13942018-07-31 Simon Marchi <simon.marchi@ericsson.com>
1395
1396 * gnulib/aclocal.m4: Re-generate.
1397 * gnulib/config.in: Re-generate.
1398 * gnulib/configure: Re-generate.
1399 * gnulib/import/Makefile.in: Re-generate.
1400 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
1401 * gnulib/import/m4/onceonly.m4: Re-generate.
1402
1c28969e
SM
14032018-07-31 Simon Marchi <simon.marchi@ericsson.com>
1404
1405 * target-descriptions.c (struct xml_test_tdesc): New.
1406 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
1407 (record_xml_tdesc): Update.
1408 (maintenance_check_xml_descriptions): Update.
1409 * target-descriptions.h (record_xml_tdesc): Update comment.
1410
c8f2dc0d
AB
14112018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
1412
1413 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
1414 checking array bounds are defined.
1415
463c08d1
TT
14162018-07-30 Tom Tromey <tom@tromey.com>
1417
1418 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
1419 irreflexivity violation.
1420
dba7455e
TT
14212018-07-30 Tom Tromey <tom@tromey.com>
1422
1423 * cli/cli-decode.c (lookup_cmd): Remove lint code.
1424 * value.c (unpack_long): Remove lint code.
1425 * valops.c (value_ind): Remove lint code.
1426 * valarith.c (value_x_binop, value_x_unop, value_equal)
1427 (value_pos): Remove lint code.
1428
37cc0cae
TV
14292018-07-28 Tom de Vries <tdevries@suse.de>
1430
1431 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
1432 with undefined upper bound as <optimized out>.
1433
129eb0f1
SDJ
14342018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
1435
1436 * gcore.in: Rename variable "name" to "prefix". Expand
1437 "usage" text.
1438
6af79d7b
JT
14392018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
1440
1441 * windows-nat.c (windows_nat_target::create_inferior): Update to
1442 call close() in global namespace.
1443
79748972
TT
14442018-07-26 Tom Tromey <tom@tromey.com>
1445
1446 * dwarf-index-write.c (add_address_entry): Don't add objfile
1447 offsets.
1448 * dbxread.c (find_stab_function): Rename from
1449 find_stab_function_addr. Return a bound_minimal_symbol.
1450 (read_dbx_symtab): Use raw_text_low, raw_text_high.
1451 Don't add objfile offsets.
1452 (end_psymtab): Use raw_text_low, raw_text_high,
1453 MSYMBOL_VALUE_RAW_ADDRESS.
1454 (read_ofile_symtab): Update.
1455 (process_one_symbol): Update.
1456 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
1457 offsets.
1458 (dw2_relocate): Remove.
1459 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
1460 searching addrmap.
1461 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
1462 Update.
1463 (process_psymtab_comp_unit_reader, add_partial_symbol)
1464 (add_partial_subprogram, dwarf2_ranges_read): Update.
1465 (load_partial_dies): Update.
1466 (add_address_entry): Don't add objfile offsets.
1467 (dwarf2_build_include_psymtabs): Update.
1468 (create_addrmap_from_aranges): Don't add objfile offsets.
1469 (dw2_find_pc_sect_compunit_symtab): Update.
1470 * mdebugread.c (parse_symbol): Don't add objfile offsets.
1471 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
1472 Update.
1473 (parse_partial_symbols): Don't add objfile offsets. Use
1474 raw_text_low, raw_text_high. Update.
1475 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
1476 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
1477 or call 'relocate' quick function. Clear psymbol_map.
1478 * psympriv.h (struct partial_symbol) <address>: Add section
1479 offset.
1480 <set_unrelocated_address>: Rename from set_address.
1481 <raw_text_low, raw_text_high>: New methods.
1482 <text_low, text_high>: Add objfile parameter.
1483 (add_psymbol_to_bcache): Add 'section' parameter. Call
1484 set_unrelocated_address.
1485 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
1486 (find_pc_psymbol): Update.
1487 (fixup_psymbol_section, relocate_psymtabs): Remove.
1488 (dump_psymtab, psym_functions): Update.
1489 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
1490 parameter.
1491 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
1492 (start_psymtab_common): Update.
1493 * symfile-debug.c (debug_qf_relocate): Remove.
1494 (debug_sym_quick_functions): Update.
1495 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
1496 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
1497 Update.
1498
52948f01
TT
14992018-07-26 Tom Tromey <tromey@redhat.com>
1500
1501 * dbxread.c (end_psymtab): Use text_high_valid and
1502 text_low_valid.
1503 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
1504 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
1505 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
1506 Update comment.
1507 <text_low_valid, text_high_valid>: New fields.
1508 <set_text_low, set_text_high>: Update.
1509 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
1510
4ae976d1
TT
15112018-07-26 Tom Tromey <tom@tromey.com>
1512
1513 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
1514 Update.
1515 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
1516 textlow and texthigh fields.
1517 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
1518 Update.
1519 * mdebugread.c (parse_lines, parse_partial_symbols)
1520 (psymtab_to_symtab_1): Update.
1521 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
1522 Rename fields. Update comment. Now private.
1523 <text_low, text_high, set_text_low, set_text_high>: New methods.
1524 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
1525 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
1526 (start_psymtab_common, maintenance_info_psymtabs)
1527 (maintenance_check_psymtabs): Update.
1528 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
1529 texthigh fields.
1530 (scan_xcoff_symtab): Update.
1531
02e9e7f7
TT
15322018-07-26 Tom Tromey <tromey@redhat.com>
1533
1534 * psympriv.h (struct partial_symbol) <unrelocated_address,
1535 address, set_address>: New methods.
1536 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
1537 (fixup_psymbol_section, relocate_psymtabs): Update.
1538 (print_partial_symbols): Add 'objfile' parameter. Update.
1539 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
1540 Update.
1541
8a6d4234
TT
15422018-07-26 Tom Tromey <tom@tromey.com>
1543
1544 * dwarf-index-write.c (write_psymbols, debug_names::insert)
1545 (debug_names::write_psymbols): Update.
1546 * psympriv.h (struct partial_symbol): Derive from
1547 general_symbol_info.
1548 <obj_section>: New method.
1549 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
1550 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
1551 (find_pc_sect_psymbol, fixup_psymbol_section)
1552 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
1553 (print_partial_symbols, recursively_search_psymtabs)
1554 (compare_psymbols, psymbol_hash, psymbol_compare)
1555 (add_psymbol_to_bcache, maintenance_check_psymtabs)
1556 (psymbol_name_matches, psym_fill_psymbol_map): Update.
1557
08994e1d
TT
15582018-07-26 Tom Tromey <tromey@redhat.com>
1559
1560 * dbxread.c (end_psymtab): Remove dead code.
1561
3c3bb058
AB
15622018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
1563
1564 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
1565 DWARF unwinders are disabled.
1566 * dwarf2-frame.c: Add dwarf2read.h include.
1567 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
1568 disabled.
1569 (dwarf2_frame_unwinders_enabled_p): Define.
1570 (show_dwarf_unwinders_enabled_p): New function.
1571 (_initialize_dwarf2_frame): Register switch to control DWARF
1572 unwinder use.
1573 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
1574 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
1575 (show_dwarf_cmdlist): Remove static keyword.
1576 * dwarf2read.h (set_dwarf_cmdlist): Declare.
1577 (show_dwarf_cmdlist): Declare.
1578 * NEWS: Document new feature.
1579
9e7f3bbb
TV
15802018-07-26 Tom de Vries <tdevries@suse.de>
1581
1582 PR breakpoints/23366
1583 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
1584
506f5c41
TV
15852018-07-26 Tom de Vries <tdevries@suse.de>
1586
1587 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
1588 DW_AT_count can't be translated to a dynamic prop.
1589
16f808ec
TV
15902018-07-25 Tom de Vries <tdevries@suse.de>
1591
1592 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
1593 try/catch.
1594
d7154a8d
JV
15952018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
1596
1597 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
1598
a45389f6
JB
15992018-07-25 Joel Brobecker <brobecker@adacore.com>
1600
1601 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
1602
380618d6
KS
16032018-07-24 Keith Seitz <keiths@redhat.comt
1604
1605 PR symtab/23010
1606 * dwarf2read.c (dw2_add_symbol_to_list): New function.
1607 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
1608 instead of add_symbol_to_list.
1609 (read_file_scope): Call prepare_one_comp_unit before reading
1610 any other DIEs.
1611
4b17aefe
SM
16122018-07-24 Simon Marchi <simon.marchi@ericsson.com>
1613
1614 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
1615
29d17e47
TT
16162018-07-24 Tom Tromey <tom@tromey.com>
1617
1618 * utils.c (malloc, realloc, free): Don't declare.
1619 * configure, config.in: Rebuild.
1620 * configure.ac: Don't check for declarations of free, malloc, or
1621 realloc.
1622
cf4088a9
SM
16232018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1624
1625 * aarch64-linux-nat.c
1626 (aarch64_linux_nat_target::stopped_data_address): Remove unused
1627 variable.
1628 * arm-linux-nat.c (fetch_regs): Likewise.
1629 (store_regs): Likewise.
1630 (fetch_vfp_regs): Likewise.
1631 (store_vfp_regs): Likewise.
1632 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
1633 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
1634 (arm_linux_nat_target::insert_watchpoint): Likewise.
1635 (arm_linux_nat_target::remove_watchpoint): Likewise.
1636 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
1637 Likewise.
1638 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
1639 Likewise.
1640 * ppc-linux-nat.c (fetch_register): Likewise.
1641 (fetch_all_gp_regs): Likewise.
1642 (fetch_ppc_registers): Likewise.
1643 (store_all_gp_regs): Likewise.
1644 (store_ppc_registers): Likewise.
1645 (hwdebug_insert_point): Likewise.
1646 (can_use_watchpoint_cond_accel): Likewise.
1647 * remote-sim.c (gdb_os_write_stdout): Likewise.
1648
a0de763e
TT
16492018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1650 Tom Tromey <tom@tromey.com>
1651
1652 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
1653 test for it.
1654 * configure: Rebuild.
1655
3b20124b
TT
16562018-07-22 Tom Tromey <tom@tromey.com>
1657
1658 * regformats/regdat.sh: Define xmltarget_${name} inside
1659 #ifndef IN_PROCESS_AGENT.
1660
8c8807f4
TT
16612018-07-22 Tom Tromey <tom@tromey.com>
1662
1663 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
1664
c486b610
TT
16652018-07-22 Tom Tromey <tom@tromey.com>
1666
1667 * symfile.c (reread_symbols): Notify iter, not objfile.
1668
494f80a9
TT
16692018-07-22 Tom Tromey <tom@tromey.com>
1670
1671 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
1672 Use arch_ops.
1673 (ravenscar_thread_target::prepare_to_store): Likewise.
1674
c51f6a54
TT
16752018-07-22 Tom Tromey <tom@tromey.com>
1676
1677 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
1678 unused variable. Call value_fetch_lazy when needed.
1679 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
1680 Remove unused variable. Call value_fetch_lazy when needed.
1681
374fd1fd
TT
16822018-07-22 Tom Tromey <tom@tromey.com>
1683
1684 * m32c-tdep.c (mark_dma): Return void.
1685 (make_regs): Remove unused declarations.
1686
d5e9a511
TT
16872018-07-22 Tom Tromey <tom@tromey.com>
1688
1689 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
1690 cmdscm_get_valid_command_smob_arg_unsafe for effect.
1691 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
1692 bkscm_get_valid_block_smob_arg_unsafe for effect.
1693
996d693a
TT
16942018-07-22 Tom Tromey <tom@tromey.com>
1695
1696 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
1697 value_type.
1698
15766370
TT
16992018-07-22 Tom Tromey <tom@tromey.com>
1700
1701 * windows-nat.c (saved_context): Conditionally define.
1702 * remote.c (remote_target::remote_btrace_maybe_reopen):
1703 Conditionally declare "warned".
1704 * inflow.c (sigquit_ours): Conditionally define.
1705 (new_tty): Move "tty" declaration inside #if.
1706 * guile/guile.c (guile_datadir): Conditionally define.
1707 * charset.c (set_be_le_names): Move some declarations inside #if.
1708 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
1709 #if.
1710 (parse_xml_btrace_conf): Likewise.
1711
f4e80e13
TT
17122018-07-22 Tom Tromey <tom@tromey.com>
1713
1714 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
1715
8d49165d
TT
17162018-07-22 Tom Tromey <tom@tromey.com>
1717
1718 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
1719 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
1720 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
1721 * buildsym-legacy.c (get_macro_table): Remove unused variable.
1722 * stack.c (frame_apply_level_command): Remove unused variable.
1723 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
1724 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
1725 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
1726 unused variable.
1727 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
1728 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
1729 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
1730 variable.
1731 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
1732 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
1733 variable.
1734 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
1735 Remove unused variable.
1736 * cli/cli-script.c (recurse_read_control_structure): Remove unused
1737 variable.
1738 * common/tdesc.c (print_xml_feature::visit): Remove unused
1739 variable.
1740 * compile/compile-object-load.c (store_regs): Remove unused
1741 variables.
1742 * complaints.c (clear_complaints): Remove unused variable.
1743 * corelow.c (core_target_open): Remove unused variable.
1744 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
1745 variable.
1746 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
1747 variable.
1748 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
1749 variable.
1750 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
1751 variable.
1752 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
1753 variable.
1754 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
1755 variable.
1756 * ia64-tdep.c (examine_prologue): Remove unused variable.
1757 * infcall.c (run_inferior_call): Remove unused variable.
1758 * inferior.c (exit_inferior): Remove unused variable.
1759 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
1760 * linespec.c (decode_line_2): Remove unused variable.
1761 * linux-nat.c (super_close): Remove.
1762 * linux-tdep.c (linux_info_proc): Remove unused variable.
1763 * mi/mi-main.c (mi_execute_command): Remove unused variable.
1764 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
1765 Remove unused variable.
1766 * parse.c (find_minsym_type_and_address): Remove unused variable.
1767 * printcmd.c (info_symbol_command, printf_floating): Remove unused
1768 variable.
1769 * python/py-breakpoint.c (bppy_set_commands): Remove unused
1770 variable.
1771 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
1772 variables.
1773 * record-btrace.c (record_btrace_target::store_registers): Remove
1774 unused variable.
1775 (cmd_show_record_btrace_cpu): Remove unused variable.
1776 * riscv-tdep.c (riscv_register_reggroup_p)
1777 (riscv_push_dummy_call, riscv_return_value): Remove unused
1778 variable.
1779 * rust-exp.y (literal): Remove unused variable.
1780 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
1781 unused variable.
1782 <STRUCTOP_ANONYMOUS>: Likewise.
1783 * s390-linux-tdep.c (s390_linux_init_abi_31)
1784 (s390_linux_init_abi_64): Remove unused variable.
1785 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
1786 (file_select_thread, net_windows_open, _initialize_ser_windows):
1787 Remove unused variables.
1788 * symtab.c (find_pc_sect_line): Remove unused variable.
1789 * target-memory.c (compute_garbled_blocks): Remove unused
1790 variable.
1791 (target_write_memory_blocks): Remove unused variable.
1792 * target.c (target_stack::unpush): Remove unused variables.
1793 * tracepoint.c (start_tracing, all_tracepoint_actions)
1794 (merge_uploaded_trace_state_variables)
1795 (print_one_static_tracepoint_marker): Remove unused variable.
1796 * unittests/basic_string_view/element_access/char/1.cc (test01):
1797 Remove unused variable.
1798 * windows-nat.c (windows_continue, windows_add_all_dlls)
1799 (do_initial_windows_stuff, windows_nat_target::create_inferior):
1800 Remove unused variables.
1801
17cbafdb
SM
18022018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
1803
1804 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
1805 attr_profile in HAVE_ELF.
1806 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
1807 HAVE_ELF.
1808
0ee6c332
SM
18092018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
1810
1811 * frame.c (frame_register_unwind): Change parameter name.
1812 (frame_unwind_register): Likewise.
1813 (frame_unwind_register_value): Likewise.
1814 (frame_unwind_register_signed): Likewise.
1815 (frame_unwind_register_unsigned): Likewise.
1816 * frame.h (frame_register_unwind): Likewise.
1817 (frame_unwind_register): Likewise.
1818 (frame_unwind_register_value): Likewise.
1819 (frame_unwind_register_signed): Likewise.
1820 (frame_unwind_register_unsigned): Likewise.
1821 (frame_unwind_arch): Likewise.
1822
e2e31f10
MR
18232018-07-20 Maciej W. Rozycki <macro@mips.com>
1824
1825 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
1826 ISA maintenance.
1827
2d389915
MR
18282018-07-20 Maciej W. Rozycki <macro@mips.com>
1829
1830 * mips-linux-nat.c (mips_linux_nat_target::read_description):
1831 Call `get_ptrace_pid' rather than extracting the ptrace PID by
1832 hand.
1833
cbb09508
KS
18342018-07-20 Keith Seitz <keiths@redhat.com>
1835
1836 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
1837 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
1838 m_compunit_symtab, m_language>: Add "m_" prefix.
1839 Update all uses.
1840 * buildsym.c: Update all uses.
1841
bfe2e011
TT
18422018-07-20 Tom Tromey <tom@tromey.com>
1843
1844 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
1845 * buildsym.h (record_line_ftype): Remove typedef.
1846
0e6f3061
TT
18472018-07-20 Tom Tromey <tom@tromey.com>
1848
1849 * buildsym-legacy.h (augment_type_symtab): Don't declare.
1850 (end_expandable_symtab): Likewise.
1851 (end_symtab_get_static_block): Likewise.
1852 (end_symtab_from_static_block): Likewise.
1853 * buildsym-legacy.c (augment_type_symtab): Remove.
1854 (end_expandable_symtab): Remove.
1855 (end_symtab_get_static_block): Remove.
1856 (end_symtab_from_static_block): Remove.
1857
804d2729
TT
18582018-07-20 Tom Tromey <tom@tromey.com>
1859
1860 * dwarf2read.c: Include buildsym.h.
1861 (struct dwarf2_cu) <builder>: New method.
1862 (fixup_go_packaging): Update.
1863 (process_full_comp_unit, process_full_type_unit): Update. Don't
1864 use scoped_free_pendings.
1865 (using_directives): Add "cu" parameter, remove "language".
1866 (read_import_statement, setup_type_unit_groups, )
1867 (read_func_scope, read_lexical_block_scope)
1868 (dwarf2_record_block_ranges, read_namespace): Update.
1869 (lnp_state_machine::lnp_state_machine): Add cu parameter.
1870 (lnp_state_machine::handle_end_sequence): Update.
1871 (class lnp_state_machine) <m_cu>: New member.
1872 <m_record_line_callback>: Remove.
1873 <m_currently_recording_lines>: New member.
1874 (lnp_state_machine::handle_set_file): Update.
1875 (noop_record_line): Remove.
1876 (dwarf_record_line_p): Add cu parameter.
1877 (dwarf_record_line_1, dwarf_finish_line): Likewise.
1878 (lnp_state_machine::record_line)
1879 (lnp_state_machine::lnp_state_machine)
1880 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
1881 (dwarf_decode_lines): Update.
1882 (dwarf2_start_subfile): Add cu parameter.
1883 (dwarf2_start_symtab, new_symbol): Update.
1884 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
1885 Remove dwarf2_per_objfile parameter.
1886 (dwarf_decode_macros): Update.
1887
80e649fc
TT
18882018-07-20 Tom Tromey <tom@tromey.com>
1889
1890 * stabsread.c (define_symbol): Update.
1891 * buildsym-legacy.h (get_buildsym_compunit): Declare.
1892 * dwarf2read.c (new_symbol): Update.
1893 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
1894 * cp-namespace.c: Include buildsym.h.
1895 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
1896 * buildsym-legacy.c (get_buildsym_compunit): New function.
1897
0baae8db
TT
18982018-07-20 Tom Tromey <tom@tromey.com>
1899
1900 * xcoffread.c: Include buildsym-legacy.h.
1901 * windows-nat.c: Include buildsym-legacy.h.
1902 * stabsread.c: Include buildsym-legacy.h.
1903 * mdebugread.c: Include buildsym-legacy.h.
1904 * buildsym-legacy.h: New file.
1905 * buildsym-legacy.c: New file, from buildsym.c.
1906 * go32-nat.c: Include buildsym-legacy.h.
1907 * dwarf2read.c: Include buildsym-legacy.h.
1908 * dbxread.c: Include buildsym-legacy.h.
1909 * cp-namespace.c: Include buildsym-legacy.h.
1910 * coffread.c: Include buildsym-legacy.h.
1911 * buildsym.h: Move some contents to buildsym-legacy.h.
1912 * buildsym.c: Include buildsym-legacy.h. Move many functions to
1913 buildsym-legacy.c.
1914 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
1915
ab209f6f
TT
19162018-07-20 Tom Tromey <tom@tromey.com>
1917
1918 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
1919 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
1920 (buildsym_compunit::buildsym_compunit)
1921 (buildsym_compunit::~buildsym_compunit)
1922 (buildsym_compunit::get_macro_table): Define.
1923
74c72eac
TT
19242018-07-20 Tom Tromey <tom@tromey.com>
1925
1926 * buildsym.c (reset_symtab_globals): Remove.
1927 (buildsym_compunit::end_symtab_from_static_block): Update.
1928 (buildsym_compunit::augment_type_symtab): Update.
1929 (end_symtab_from_static_block): Call free_buildsym_compunit.
1930 (augment_type_symtab, end_symtab, end_expandable_symtab):
1931 Likewise.
1932
da6580e5
TT
19332018-07-20 Tom Tromey <tom@tromey.com>
1934
1935 * arch-utils.c: Do not include buildsym.h.
1936 * mipsread.c: Do not include buildsym.h.
1937 * machoread.c: Do not include buildsym.h.
1938 * elfread.c: Do not include buildsym.h.
1939
4a2125f5
TT
19402018-07-20 Tom Tromey <tom@tromey.com>
1941
1942 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
1943 initialization.
1944 (buildsym_compunit): Add new constructor.
1945 (struct buildsym_compunit) <get_last_source_file, finish_block,
1946 record_block_range, start_subfile, patch_subfile_names,
1947 push_subfile, pop_subfile, record_line, get_compunit_symtab,
1948 set_last_source_start_addr, get_last_source_start_addr,
1949 get_local_using_directives, set_local_using_directives,
1950 get_global_using_directives, outermost_context_p,
1951 get_current_context_stack, get_context_stack_depth,
1952 get_current_subfile, get_local_symbols, get_file_symbols,
1953 get_global_symbols, record_debugformat, record_producer,
1954 push_context, pop_context, end_symtab_get_static_block,
1955 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
1956 New public methods.
1957 <record_pending_block, finish_block_internal, make_blockvector,
1958 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
1959 private methods.
1960 Update all users.
1961
19622018-05-22 Tom Tromey <tom@tromey.com>
1963
1964 * buildsym.c (record_pending_block): Move earlier. Remove objfile
1965 parameter.
1966 (finish_block_internal): Update.
1967
6b213a47
TT
19682018-07-20 Tom Tromey <tom@tromey.com>
1969
1970 * buildsym.c (record_pending_block): Move earlier. Remove objfile
1971 parameter.
1972 (finish_block_internal): Update.
1973
b80a981d
TT
19742018-07-20 Tom Tromey <tom@tromey.com>
1975
1976 * buildsym.h (EXTERN): Don't define or undef.
1977 * buildsym.c (EXTERN): Don't define.
1978
ddb70602
TT
19792018-07-20 Tom Tromey <tom@tromey.com>
1980
1981 * buildsym.c: Remove TODO comment.
1982
b37dd3bc
TT
19832018-07-20 Tom Tromey <tom@tromey.com>
1984
1985 * coffread.c (coff_symtab_read): Update.
1986 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
1987 (xcoff_new_init): Update.
1988 * mipsread.c (mipscoff_new_init): Update.
1989 * mdebugread.c (mdebug_build_psymtabs): Update.
1990 * elfread.c (elf_new_init): Update.
1991 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
1992 Update.
1993 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
1994 (coffstab_build_psymtabs, elfstab_build_psymtabs)
1995 (stabsect_build_psymtabs): Update.
1996 * buildsym.h (buildsym_init): Don't declare.
1997 * buildsym.c: Update comment.
1998 (prepare_for_building): Remove.
1999 (start_symtab, restart_symtab): Update.
2000 (reset_symtab_globals): Update comment.
2001 (buildsym_init): Remove.
2002
e148f09d
TT
20032018-07-20 Tom Tromey <tom@tromey.com>
2004
2005 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
2006 * stabsread.c (patch_block_stabs, define_symbol, read_type)
2007 (read_enum_type, common_block_start, common_block_end)
2008 (cleanup_undefined_types_1, finish_global_stabs): Update.
2009 * mdebugread.c (psymtab_to_symtab_1): Update.
2010 * dwarf2read.c (fixup_go_packaging, read_func_scope)
2011 (read_lexical_block_scope, new_symbol): Update.
2012 * dbxread.c (process_one_symbol): Update.
2013 * coffread.c (coff_symtab_read, process_coff_symbol)
2014 (coff_read_enum_type): Update.
2015 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
2016 declare.
2017 (get_local_symbols, get_file_symbols, get_global_symbols): New
2018 functions.
2019 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
2020 m_global_symbols.
2021 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
2022 (~scoped_free_pendings): Update.
2023 (finish_block, prepare_for_building, reset_symtab_globals)
2024 (end_symtab_get_static_block, end_symtab_with_blockvector)
2025 (augment_type_symtab, push_context): Update.
2026 (get_local_symbols, get_file_symbols, get_global_symbols): New
2027 functions.
2028 (buildsym_init): Update.
2029
93b8bea4
TT
20302018-07-20 Tom Tromey <tom@tromey.com>
2031
2032 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
2033 (process_full_type_unit): Likewise.
2034 (dwarf2_start_symtab): Set list_in_scope.
2035
f62f6af5
TT
20362018-07-20 Tom Tromey <tom@tromey.com>
2037
2038 * dwarf2read.c (process_psymtab_comp_unit_reader)
2039 (build_type_psymtabs_reader): Do not set list_in_scope.
2040
1d376700
TT
20412018-07-20 Tom Tromey <tom@tromey.com>
2042
2043 * buildsym.c (free_pendings): Remove.
2044 (add_symbol_to_list, scoped_free_pendings)
2045 (finish_block_internal, buildsym_init): Update.
2046
c233e9c6
TT
20472018-07-20 Tom Tromey <tom@tromey.com>
2048
2049 * xcoffread.c (read_xcoff_symtab): Update.
2050 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
2051 Update.
2052 * dbxread.c (process_one_symbol): Update.
2053 * coffread.c (coff_symtab_read): Update.
2054 * buildsym.h (finish_block): Update.
2055 * buildsym.c (finish_block): Remove "listhead" argument.
2056 (end_symtab_get_static_block): Update.
2057
5ac04550
TT
20582018-07-20 Tom Tromey <tom@tromey.com>
2059
2060 * buildsym.h (class scoped_free_pendings): Remove constructor.
2061 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
2062 method.
2063 <m_pending_block_obstack, m_pending_blocks>: New members.
2064 (pending_block_obstack, pending_blocks): Remove.
2065 (scoped_free_pendings::scoped_free_pendings): Default.
2066 (~scoped_free_pendings): Update.
2067 (free_pending_blocks): Remove.
2068 (finish_block_internal, record_pending_block, make_blockvector)
2069 (end_symtab_get_static_block, augment_type_symtab, push_context)
2070 (buildsym_init): Update.
2071
7ea05a7b
TT
20722018-07-20 Tom Tromey <tom@tromey.com>
2073
2074 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
2075 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
2076 members.
2077 (pending_addrmap, pending_addrmap_obstack)
2078 (pending_addrmap_interesting): Remove.
2079 (scoped_free_pendings, record_block_range, make_blockvector)
2080 (prepare_for_building, reset_symtab_globals, buildsym_init):
2081 Update.
2082
3c65e5b3
TT
20832018-07-20 Tom Tromey <tom@tromey.com>
2084
2085 * xcoffread.c (process_linenos): Update.
2086 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
2087 * mdebugread.c (psymtab_to_symtab_1): Update.
2088 * dwarf2read.c (setup_type_unit_groups)
2089 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
2090 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
2091 * dbxread.c (process_one_symbol): Update.
2092 * coffread.c (coff_symtab_read, enter_linenos)
2093 (process_coff_symbol): Update.
2094 * buildsym.h (current_subfile): Don't declare.
2095 (get_current_subfile): Declare.
2096 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
2097 member.
2098 (start_subfile, free_buildsym_compunit, push_subfile)
2099 (prepare_for_building, start_symtab): Update.
2100 (get_current_subfile): New function.
2101
a60f3166
TT
21022018-07-20 Tom Tromey <tom@tromey.com>
2103
2104 * coffread.c (coff_symtab_read): Update.
2105 * xcoffread.c (read_xcoff_symtab): Update.
2106 * dwarf2read.c (new_symbol): Update.
2107 (read_func_scope, read_lexical_block_scope): Update.
2108 * dbxread.c (process_one_symbol): Update.
2109 * buildsym.h (context_stack, context_stack_depth): Don't declare.
2110 (outermost_context_p): Remove macro.
2111 (outermost_context_p, get_current_context_stack)
2112 (get_context_stack_depth): Declare.
2113 (pop_context): Return struct context_stack.
2114 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
2115 member.
2116 (context_stack_size): Remove.
2117 (INITIAL_CONTEXT_STACK_SIZE): Remove.
2118 (prepare_for_building, end_symtab_get_static_block)
2119 (augment_type_symtab, push_context): Update.
2120 (pop_context): Return struct context_stack.
2121 (outermost_context_p, get_current_context_stack)
2122 (get_context_stack_depth): New functions.
2123 (buildsym_init): Update.
2124
56ba65a0
TT
21252018-07-20 Tom Tromey <tom@tromey.com>
2126
2127 * rust-exp.y: Now a pure parser. Update all rules.
2128 (%union): Move earlier.
2129 (current_parser, work_obstack): Remove globals.
2130 (rust_parser, ~rust_parser): Update.
2131 (class rust_parser) <copy_name, concat3, crate_name, super_name,
2132 lex_character, lex_number, lex_string, lex_identifier,
2133 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
2134 convert_name, convert_params_to_expression,
2135 convert_ast_to_expression, ast_basic_type, ast_operation,
2136 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
2137 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
2138 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
2139 ast_array_type, ast_slice_type, ast_reference_type,
2140 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
2141 (rust_parse): Update.
2142 (rustyyerror, rustyylex): Add parser parameter.
2143 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
2144 (rust_lex_stringish_test, rust_lex_test_sequence)
2145 (rust_lex_test_trailing_dot, rust_lex_test_completion)
2146 (rust_lex_test_push_back, rust_lex_tests): Update.
2147
4c693332
PA
21482018-07-19 Pedro Alves <palves@redhat.com>
2149
2150 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
2151 gdb::unique_xmalloc_ptr.
2152 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
2153 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
2154 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
2155 copy-initialization.
2156 * guile/scm-pretty-print.c (ppscm_print_children): Use
2157 gdb::unique_xmalloc_ptr instead of cleanups.
2158 (gdbscm_apply_val_pretty_printer): Remove cleanups.
2159 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
2160 gdb::unique_xmalloc_ptr.
2161 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
2162 Adjust to use gdb::unique_xmalloc_ptr.
2163 * guile/scm-utils.c (extract_arg): Adjust.
2164 * guile/scm-value.c (gdbscm_value_field): Adjust to use
2165 gdb::unique_xmalloc_ptr instead of a cleanup.
2166
4581dc82
TT
21672018-07-19 Tom Tromey <tom@tromey.com>
2168
2169 * utils.c (do_value_free_to_mark)
2170 (make_cleanup_value_free_to_mark): Remove.
2171 * utils.h (make_cleanup_value_free_to_mark): Remove.
2172
43cc6c3a
PA
21732018-07-19 Pedro Alves <palves@redhat.com>
2174
2175 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
2176 forwarding reference.
2177
3a5f2a48
PA
21782018-07-18 Pedro Alves <palves@redhat.com>
2179
2180 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
2181 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
2182 cleanup.
2183
557e56be
PA
21842018-07-18 Pedro Alves <palves@redhat.com>
2185
2186 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
2187 exceptions.
2188 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
2189 (gdbscm_wrap): New.
2190 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
2191 directly instead of a cleanup.
2192 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
2193 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
2194 (vlscm_binop_gdbthrow): New, factored out from ...
2195 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
2196 (vlscm_rich_compare): Use gdbscm_wrap.
2197 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
2198 instead of a cleanup.
2199 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
2200 cleanup.
2201 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
2202 Use xfree directly instead of a cleanup.
2203 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
2204 Adjust to use gdbscm_wrap and scoped_value_mark.
2205 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
2206 (gdbscm_value_address, gdbscm_value_dereference)
2207 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
2208 scoped_value_mark.
2209 (gdbscm_value_dynamic_type): Use scoped_value_mark.
2210 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
2211 scoped_value_mark.
2212 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
2213 gdbscm_wrap and scoped_value_mark.
2214 (gdbscm_value_to_string): Use xfree directly instead of a
2215 cleanup. Move 'buffer' unique_ptr to TRY scope.
2216 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
2217 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
2218 scoped_value_mark.
2219 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
2220 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
2221 scoped_value_mark.
2222 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
2223 gdbscm_wrap.
2224
42dc7699
TV
22252018-07-18 Tom de Vries <tdevries@suse.de>
2226
2227 * findvar.c (default_read_var_value): Also resolve dynamic type for
2228 LOC_OPTIMIZED_OUT vars.
2229
6592ceed
MR
22302018-07-18 Maciej W. Rozycki <macro@mips.com>
2231
2232 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
2233 decoding.
2234
c6c6149a
TT
22352018-07-17 Tom Tromey <tom@tromey.com>
2236
2237 * guile/scm-param.c (pascm_set_func, pascm_show_func)
2238 (compute_enum_list, pascm_set_param_value_x)
2239 (gdbscm_parameter_value): Update.
2240 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
2241 (gdbscm_scm_to_host_string): Update.
2242 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
2243 Update.
2244 * guile/scm-cmd.c (cmdscm_add_completion): Update.
2245 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
2246 * guile/scm-string.c (gdbscm_scm_to_string): Return
2247 unique_xmalloc_ptr.
2248 (gdbscm_scm_to_host_string): Likewise.
2249
a1a31cb8
TT
22502018-07-17 Tom Tromey <tom@tromey.com>
2251
2252 * guile/guile.c (gdbscm_eval_from_control_command): Update.
2253 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
2254 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
2255 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
2256 unique_xmalloc_ptr.
2257
15bf3002
TT
22582018-07-17 Tom Tromey <tom@tromey.com>
2259
2260 * guile/scm-param.c (pascm_signal_setshow_error): Update.
2261 * guile/guile-internal.h (gdbscm_exception_message_to_string):
2262 Update.
2263 * guile/scm-cmd.c (cmdscm_function): Update.
2264 * guile/scm-pretty-print.c
2265 (ppscm_print_exception_unless_memory_error): Update.
2266 * guile/scm-exception.c (gdbscm_exception_message_to_string):
2267 Return unique_xmalloc_ptr.
2268
7eb1a66c
TT
22692018-07-17 Tom Tromey <tom@tromey.com>
2270
2271 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
2272 Use string_printf.
2273
ce73f310
JW
22742018-07-17 Jim Wilson <jimw@sifive.com>
2275
27724bad
JW
2276 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
2277 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
2278 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
2279 unecessary braces after EF_RISCV_RVC test. Delete call to
2280 set_gdbarch_decr_pc_after_break.
2281
ce73f310
JW
2282 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
2283 RISCV_LAST_FP_REGNUM + 1.
2284 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
2285
056dec39
TT
22862018-07-17 Tom Tromey <tom@tromey.com>
2287
2288 * configure.ac: Remove --disable-gdbcli.
2289 * configure: Rebuild.
2290 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
2291 (SUBDIR_CLI_CFLAGS): Remove.
2292 (SFILES): Use SUBDIR_CLI_SRCS.
2293 (COMMON_OBS): Use SUBDIR_CLI_OBS.
2294
4735f0ed
TT
22952018-07-17 Tom Tromey <tom@tromey.com>
2296
2297 PR gdb/18624:
2298 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
2299
117a0e99
JW
23002018-07-16 Jim Wilson <jimw@sifive.com>
2301
2302 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
2303
8a67aaa8
SM
23042018-07-16 Simon Marchi <simon.marchi@ericsson.com>
2305
2306 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
2307 variable.
2308 (libunwind_frame_sniffer): Likewise.
2309 (libunwind_frame_prev_register): Likewise.
2310 (libunwind_sigtramp_frame_sniffer): Likewise.
2311 * ia64-tdep.c (ia64_access_reg): Likewise.
2312 (ia64_access_rse_reg): Likewise.
2313 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
2314 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
2315
ec74dcd8
SM
23162018-07-16 Simon Marchi <simon.marchi@ericsson.com>
2317
2318 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
2319
a700e753
SM
23202018-07-16 Simon Marchi <simon.marchi@ericsson.com>
2321
2322 * remote-sim.c (gdbsim_target::close,
2323 gdbsim_target::mourn_inferior): Remove unused variables.
2324
8b411ff8
SM
23252018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
2326
2327 * ia64-tdep.c (ktab_buf): New global.
2328 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
2329 (get_kernel_table): Adjust.
2330
edb0470b
TT
23312018-07-16 Tom Tromey <tom@tromey.com>
2332
2333 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
2334 * dwarf2read.c (using_directives, new_symbol): Use
2335 outermost_context_p.
2336 * dbxread.c (process_one_symbol): Use outermost_context_p.
2337 * coffread.c (coff_symtab_read): Use outermost_context_p.
2338
6cccc9a8
TT
23392018-07-16 Tom Tromey <tom@tromey.com>
2340
2341 * dwarf2read.c (using_directives, read_func_scope)
2342 (read_lexical_block_scope): Update.
2343 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
2344 * buildsym.h (local_using_directives, global_using_directives):
2345 Don't declare.
2346 (get_local_using_directives, set_local_using_directives)
2347 (get_global_using_directives): Declare.
2348 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
2349 m_global_using_directives>: New members.
2350 (finish_block_internal, prepare_for_building)
2351 (reset_symtab_globals, end_symtab_get_static_block)
2352 (push_context): Update.
2353 (get_local_using_directives, set_local_using_directives)
2354 (get_global_using_directives): New functions.
2355 (buildsym_init): Update.
2356
652788a7
TT
23572018-07-16 Tom Tromey <tom@tromey.com>
2358
2359 * xcoffread.c (xcoff_initial_scan): Don't call
2360 free_pending_blocks.
2361 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
2362 * buildsym.h (class scoped_free_pendings): Add constructor.
2363 (free_pending_blocks): Don't declare.
2364 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
2365 (free_pending_blocks): Now static.
2366
8419ee53
TT
23672018-07-16 Tom Tromey <tom@tromey.com>
2368
2369 * buildsym.h (push_subfile, pop_subfile): Update declarations.
2370 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
2371 member.
2372 (struct subfile_stack): Remove.
2373 (subfile_stack): Remove.
2374 (push_subfile, pop_subfile, buildsym_init): Update.
2375
ccdac490
TT
23762018-07-16 Tom Tromey <tom@tromey.com>
2377
2378 * buildsym.c (push_subfile): Use gdb_assert.
2379 (pop_subfile): Use gdb_assert.
2380
43130d6f
TT
23812018-07-16 Tom Tromey <tom@tromey.com>
2382
2383 * buildsym.h (merge_symbol_lists): Remove.
2384 * buildsym.c (merge_symbol_lists): Remove.
2385
77d6f1aa
TT
23862018-07-16 Tom Tromey <tom@tromey.com>
2387
2388 * stabsread.c (scan_file_globals): Update comment.
2389 * stabsread.h (scan_file_globals): Move from buildsym.h.
2390 * buildsym.h (scan_file_globals): Move to stabsread.h.
2391
2c722d18
TT
23922018-07-16 Tom Tromey <tom@tromey.com>
2393
2394 * xcoffread.c (xcoff_new_init): Update.
2395 * mipsread.c (mipscoff_new_init): Update.
2396 * mdebugread.c (mdebug_build_psymtabs): Update.
2397 * elfread.c (elf_new_init): Update.
2398 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
2399 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
2400 * buildsym.h (buildsym_new_init): Don't declare.
2401 * buildsym.c (buildsym_new_init): Remove.
2402
5985ac61
TT
24032018-07-16 Tom Tromey <tom@tromey.com>
2404
2405 * stabsread.h (within_function): Move from buildsym.h.
2406 * stabsread.c (start_stabs): Clear within_function.
2407 * coffread.c (coff_start_symtab): Clear within_function.
2408 * buildsym.h (within_function): Move to stabsread.h.
2409 * buildsym.c (prepare_for_building): Update.
2410
6b84eeb2
TT
24112018-07-16 Tom Tromey <tom@tromey.com>
2412
2413 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
2414 * dwarf2read.c (dwarf2_start_symtab): Don't set
2415 processing_gcc_compilation.
2416 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
2417
2150c3ef
TT
24182018-07-16 Tom Tromey <tom@tromey.com>
2419
2420 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
2421 (next_symbol_text_func): Move from buildsym.h.
2422 * stabsread.c (hashname): Move from buildsym.c.
2423 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
2424 (next_symbol_text_func, hashname): Move to stabsread.h.
2425 * buildsym.c: Don't include bcache.h
2426 (hashname): Move to stasbread.c.
2427
0ec44fc0
TT
24282018-07-16 Tom Tromey <tom@tromey.com>
2429
2430 * buildsym.h (context_stack_size): Don't declare.
2431 * buildsym.c (context_stack_size): New global.
2432
81cc346d
TT
24332018-07-16 Tom Tromey <tom@tromey.com>
2434
2435 * dbxread.c (processing_acc_compilation): New global.
2436 * buildsym.h (processing_acc_compilation): Don't declare.
2437
2c99ee5c
TT
24382018-07-16 Tom Tromey <tom@tromey.com>
2439
2440 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
2441 * dbxread.c (read_ofile_symtab): Update.
2442 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
2443 * buildsym.h (last_source_start_addr): Remove.
2444 (set_last_source_start_addr, get_last_source_start_addr):
2445 Declare.
2446 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
2447 parameter.
2448 (struct buildsym_compunit) <m_last_source_start_addr>: New
2449 member.
2450 (prepare_for_building): Remove start_addr parameter.
2451 (start_symtab, restart_symtab, end_symtab_get_static_block)
2452 (end_symtab_with_blockvector): Update.
2453 (set_last_source_start_addr, get_last_source_start_addr): New
2454 functions.
2455
530fedbc
TT
24562018-07-16 Tom Tromey <tom@tromey.com>
2457
2458 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
2459 member.
2460 (have_line_numbers): Remove.
2461 (record_line, prepare_for_building, end_symtab_get_static_block)
2462 (augment_type_symtab): Update.
2463
6a976300
TT
24642018-07-16 Tom Tromey <tom@tromey.com>
2465
2466 * buildsym.c (~buildsym_compunit): Free the macro table.
2467 (struct buildsym_compunit) <get_macro_table, release_macros>: New
2468 methods.
2469 <m_pending_macros>: New member.
2470 (pending_macros): Remove.
2471 (~scoped_free_pendings, get_macro_table, prepare_for_building)
2472 (reset_symtab_globals, end_symtab_get_static_block)
2473 (end_symtab_with_blockvector, augment_type_symtab)
2474 (buildsym_init): Update.
2475
c0015d44
TT
24762018-07-16 Tom Tromey <tom@tromey.com>
2477
2478 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
2479 parameter.
2480 (buildsym_compunit::set_last_source_file): New method.
2481 <m_last_source_file>: New member.
2482 (prepare_for_building): Remove "name" parameter.
2483 (start_symtab, restart_symtab, reset_symtab_globals): Update.
2484 (last_source_file): Remove.
2485 (set_last_source_file, get_last_source_file): Update.
2486
e62cca7c
TT
24872018-07-16 Tom Tromey <tom@tromey.com>
2488
2489 * buildsym.c (prepare_for_building): Add assert.
2490
905eb0e2
TT
24912018-07-16 Tom Tromey <tom@tromey.com>
2492
2493 * buildsym.c (~buildsym_compunit): Update.
2494 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
2495 (start_subfile, patch_subfile_names)
2496 (end_symtab_with_blockvector): Update.
2497
b248663f
TT
24982018-07-16 Tom Tromey <tom@tromey.com>
2499
2500 * buildsym.c (struct buildsym_compunit): Add constructor,
2501 destructor, initializers.
2502 (start_buildsym_compunit): Remove.
2503 (free_buildsym_compunit): Use "delete".
2504 (start_symtab, restart_symtab): Use "new".
2505
ff27d073
SM
25062018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
2507
2508 * symfile.c (set_objfile_default_section_offset): Remove struct
2509 keyword.
2510
6a15ecf5
SH
25112018-07-14 Stafford Horne <shorne@gmail.com>
2512
2513 * (Responsible Maintainers): Add myself as or1k maintainer.
2514
027a4c30
TT
25152018-07-13 Tom Tromey <tom@tromey.com>
2516
2517 * symfile.c (set_objfile_default_section_offset): Use extra braces
2518 around initializer.
2519
5c1eda30
AA
25202018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
2521
2522 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
2523 non-branching basr.
2524
bc7b042b
PW
25252018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2526
2527 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2528 unittests/cli-utils-selftests.c
2529 * unittests/cli-utils-selftests.c: New file.
2530
a14c4daa
PW
25312018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2532
2533 * NEWS: Mention new commands. Mention change to 'thread apply'.
2534
1fe75df7
PW
25352018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2536
2537 * thread.c (thr_try_catch_cmd): New function.
2538 (thread_apply_all_command): Handle qcs flags.
2539 (thread_apply_command): Handle qcs flags.
2540 (taas_command): New function.
2541 (tfaas_command): New function.
2542 (_initialize_thread): Update to setup the new commands 'taas
2543 and 'tfaas'. Change doc string for 'thread apply'.
2544
6a70eb7d
PW
25452018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2546
2547 * stack.c: (trailing_outermost_frame): New function, mostly
2548 extracted from backtrace_command_1.
2549 (leading_innermost_frame): New function.
2550 (backtrace_command_1): Update to call trailing_outermost_frame.
2551 (frame_apply_command_count): New function.
2552 (frame_apply_level_command): New function.
2553 (frame_apply_all_command): New function.
2554 (frame_apply_command): New function.
2555 (faas_command): New function.
2556 (frame_cmd_list): New variable.
2557 (_initialize_stack): Update to setup the new commands 'frame apply'
2558 and 'faas'.
2559
529c08b2
PW
25602018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2561
2562 * cli-utils.c (number_or_range_parser::get_number): Only handle
2563 numbers or convenience var as numbers.
2564 (parse_flags): New function.
2565 (parse_flags_qcs): New function.
2566 (number_or_range_parser::finished): Ensure parsing end is detected
2567 before end of string.
2568 * cli-utils.h (parse_flags): New function.
2569 (parse_flags_qcs): New function.
2570 (number_or_range_parser): Remove m_finished bool.
2571 (number_or_range_parser::skip_range): Set m_in_range to false.
2572
64b58472
SDJ
25732018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
2574
2575 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
2576 on Windows.
2577
c7ab0aef
SDJ
25782018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
2579 Jan Kratochvil <jan.kratochvil@redhat.com>
2580 Paul Fertser <fercerpav@gmail.com>
2581 Tsutomu Seki <sekiriki@gmail.com>
2582 Pedro Alves <palves@redhat.com>
2583
2584 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2585 'unittests/parse-connection-spec-selftests.c'.
2586 (COMMON_SFILES): Add 'common/netstuff.c'.
2587 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
2588 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
2589 * common/netstuff.c: New file.
2590 * common/netstuff.h: New file.
2591 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
2592 (wait_for_connect): Update comment. New parameter
2593 'gdb::optional<int> sock' instead of 'struct serial *scb'.
2594 Use 'sock' directly instead of 'scb->fd'.
2595 (try_connect): New function, with code from 'net_open'.
2596 (net_open): Rewrite main loop to deal with multiple
2597 sockets/addresses. Handle IPv6-style hostnames; implement
2598 support for IPv6 connections.
2599 * unittests/parse-connection-spec-selftests.c: New file.
2600
4c7333b3
PA
26012018-07-11 Pedro Alves <palves@redhat.com>
2602
2603 PR gdb/23377
2604 * remote.c (remote_target::remote_detach_pid): Call
2605 set_current_process.
2606
a6f88f6e
PA
26072018-07-11 Pedro Alves <palves@redhat.com>
2608
2609 * h8300-tdep.c (h8300_gdbarch_init): Remove
2610 set_gdbarch_ecoff_reg_to_regnum calls.
2611
16ff70dd
SDJ
26122018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
2613
2614 PR c++/23373
2615 * c-typeprint.c (c_type_print_base_struct_union): Don't print
2616 offsets/sizes for static members of a class/struct.
2617
12863263
AH
26182018-07-11 Alan Hayward <alan.hayward@arm.com>
2619
2620 * target-descriptions.c (tdesc_register_bitsize): Rename.
2621 * target-descriptions.h (tdesc_register_bitsize): Likewise.
2622 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
2623 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
2624
1123588c
TT
26252018-07-10 Tom Tromey <tom@tromey.com>
2626
2627 * breakpoint.c (moribund_locations): Now static and a
2628 std::vector.
2629 (breakpoint_init_inferior, moribund_breakpoint_here_p)
2630 (build_bpstat_chain, update_global_location_list)
2631 (breakpoint_retire_moribund): Update.
2632 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
2633 VEC.
2634
8c49aa89
AB
26352018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
2636
2637 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
2638 (riscv_register_reggroup_p): Use new function, remove unneeded
2639 parenthesis.
2640 (riscv_push_dummy_call): Extend assert to compare against xlen or
2641 flen based on register type.
2642
42ecac17
AB
26432018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
2644
2645 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
2646
055303e2
AB
26472018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2648
2649 * remote.c (show_hardware_watchpoint_limit): New function.
2650 (show_hardware_watchpoint_length_limit): New function.
2651 (show_hardware_breakpoint_limit): New function.
2652 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
2653 where appropriate, update help text.
2654
8fd32c1c
TT
26552018-07-09 Tom Tromey <tom@tromey.com>
2656
2657 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
2658 (CLIBS): Don't mention NAT_CLIBS.
2659
31278b51
TT
26602018-07-09 Tom Tromey <tom@tromey.com>
2661
2662 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
2663 (LIBGDB_OBS, clean mostlyclean): Update.
2664 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
2665
e5fd1493
TT
26662018-07-09 Tom Tromey <tom@tromey.com>
2667
2668 * Makefile.in (%.c: %.y): Use ECHO_YACC.
2669 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
2670 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
2671
981e0c0c
TT
26722018-07-09 Tom Tromey <tom@tromey.com>
2673
2674 * Makefile.in (ALLDEPFILES): Remove exec.c.
2675 (COMMON_OBS): Remove exec.o.
2676 (COMMON_SFILES): Add exec.c.
2677
14ccceb2
TT
26782018-07-09 Tom Tromey <tom@tromey.com>
2679
2680 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
2681
5d3c3a68
TT
26822018-07-09 Tom Tromey <tom@tromey.com>
2683
2684 * Makefile.in (clean mostlyclean): Remove stamp-version.
2685 (version.c): Depend on stamp-version.
2686 (stamp-version): New rule, from version.c rule.
2687
1998086d
TT
26882018-07-09 Tom Tromey <tom@tromey.com>
2689
2690 * Makefile.in (init.c): Depend on stamp-init.
2691 (stamp-init): New rule, from init.c rule.
2692 (clean mostlyclean): Remove stamp-init.
2693
4c754949
TT
26942018-07-09 Tom Tromey <tom@tromey.com>
2695
2696 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
2697 SUBDIR_GCC_COMPILE_SRCS.
2698
6497f1dd
TT
26992018-07-09 Tom Tromey <tom@tromey.com>
2700
2701 * Makefile.in (init.c): Remove some unused sed rules.
2702
97a34db9
TT
27032018-07-09 Tom Tromey <tom@tromey.com>
2704
2705 * Makefile.in (TSOBS): Remove.
2706 (INIT_FILES): Update.
2707 (LIBGDB_OBS): Update.
2708 (COMMON_SFILES): Add inflow.c.
2709 (SFILES): Remove inflow.c.
2710
25289ac1
JK
27112018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2712
2713 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
2714
e83f4d97
SM
27152018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
2716
4869c585
SM
2717 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
2718 get_saveloc_name, is_signal_frame_name, step_name,
2719 init_remote_name, create_addr_space_name,
2720 destroy_addr_space_name, search_unwind_table_name,
2721 find_dyn_list_name): Constify.
e83f4d97 2722
6821842f
SM
27232018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
2724
2725 * darwin-nat.c (darwin_pthread_kill): New function.
2726 (darwin_resume_thread): Use darwin_pthread_kill.
2727
c530603c
TV
27282018-07-05 Tom de Vries <tdevries@suse.de>
2729
2730 * macroexp.c (macro_buffer) <operator=>: New member function.
2731
a7d0f0f0
TT
27322018-07-04 Tom Tromey <tom@tromey.com>
2733
2734 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
2735
6242c6a6
SM
27362018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
2737
2738 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
2739 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
2740 * maint.c: Likewise.
2741 * top.c: Likewise.
2742
4e5b2f89
JB
27432018-07-04 Joel Brobecker <brobecker@adacore.com>
2744
2745 * NEWS: Create a new section for the next release branch.
2746 Rename the section of the current branch, now that it has
2747 been cut.
2748
538ccc4a
JB
27492018-07-04 Joel Brobecker <brobecker@adacore.com>
2750
2751 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
2752 * version.in: Bump version to 8.2.50.DATE-git.
2753
1b919490
VB
27542018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
2755 Pedro Alves <palves@redhat.com>
2756
2757 * linux-nat.c (linux_init_ptrace): Rename to ...
2758 (linux_init_ptrace_procfs): ... this. Call
2759 linux_proc_init_warnings.
2760 (linux_nat_target::post_attach)
2761 (linux_nat_target::post_startup_inferior): Adjust.
2762 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
2763 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
2764
1ea5da02
TV
27652018-07-04 Tom de Vries <tdevries@suse.de>
2766
2767 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
2768 check ...
2769 (read_comp_unit_head): ... here.
2770
f51e0e20
TT
27712018-07-03 Tom Tromey <tom@tromey.com>
2772
2773 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
2774 (stop_tracing, tstatus_command)
2775 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
2776 (print_one_static_tracepoint_marker): Update.
2777 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
2778 std::vector.
2779 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
2780 VEC.
2781 (all_tracepoints, static_tracepoints_here): Return std::vector.
2782
d7e15655
TT
27832018-07-03 Tom Tromey <tom@tromey.com>
2784
2785 * common/ptid.c (ptid_equal): Remove.
2786 * common/ptid.h (ptid_equal): Don't declare.
2787 * ada-tasks.c: Update.
2788 * breakpoint.c: Update.
2789 * common/agent.c: Update.
2790 * corelow.c: Update.
2791 * darwin-nat-info.c: Update.
2792 * darwin-nat.c: Update.
2793 * dcache.c: Update.
2794 * dtrace-probe.c: Update.
2795 * dummy-frame.c: Update.
2796 * fbsd-nat.c: Update.
2797 * frame.c: Update.
2798 * gdbthread.h: Update.
2799 * gnu-nat.c: Update.
2800 * go32-nat.c: Update.
2801 * inf-loop.c: Update.
2802 * inf-ptrace.c: Update.
2803 * infcall.c: Update.
2804 * infcmd.c: Update.
2805 * inflow.c: Update.
2806 * infrun.c: Update.
2807 * linux-fork.c: Update.
2808 * linux-nat.c: Update.
2809 * linux-thread-db.c: Update.
2810 * mi/mi-cmd-var.c: Update.
2811 * mi/mi-interp.c: Update.
2812 * mi/mi-main.c: Update.
2813 * nto-procfs.c: Update.
2814 * ppc-linux-tdep.c: Update.
2815 * procfs.c: Update.
2816 * python/py-inferior.c: Update.
2817 * python/py-record-btrace.c: Update.
2818 * python/py-record.c: Update.
2819 * ravenscar-thread.c: Update.
2820 * regcache.c: Update.
2821 * remote-sim.c: Update.
2822 * remote.c: Update.
2823 * sol-thread.c: Update.
2824 * solib.c: Update.
2825 * target.c: Update.
2826 * tui/tui-stack.c: Update.
2827 * varobj.c: Update.
2828 * windows-nat.c: Update.
2829 * windows-tdep.c: Update.
2830
26a57c92
TT
28312018-07-03 Tom Tromey <tom@tromey.com>
2832
2833 * common/ptid.c (ptid_match): Remove.
2834 * common/ptid.h (ptid_match): Don't declare.
2835 * fbsd-nat.c: Update.
2836 * infcmd.c: Update.
2837 * infrun.c: Update.
2838 * linux-nat.c: Update.
2839 * record-btrace.c: Update.
2840 * regcache.c: Update.
2841 * remote.c: Update.
2842
d2a107e3
TT
28432018-07-03 Tom Tromey <tom@tromey.com>
2844
2845 * common/ptid.c (ptid_tid_p): Remove.
2846 * common/ptid.h (ptid_tid_p): Don't declare.
2847 * sol-thread.c: Update.
2848
15a9e13e
TT
28492018-07-03 Tom Tromey <tom@tromey.com>
2850
2851 * common/ptid.c (ptid_lwp_p): Remove.
2852 * common/ptid.h (ptid_lwp_p): Don't declare.
2853 * fbsd-nat.c: Update.
2854 * linux-nat.c: Update.
2855 * nat/linux-procfs.c: Update.
2856 * nat/x86-linux-dregs.c: Update.
2857 * sol-thread.c: Update.
2858
0e998d96
TT
28592018-07-03 Tom Tromey <tom@tromey.com>
2860
2861 * common/ptid.c (ptid_is_pid): Remove.
2862 * common/ptid.h (ptid_is_pid): Don't declare.
2863 * infrun.c: Update.
2864 * linux-nat.c: Update.
2865 * mi/mi-interp.c: Update.
2866 * remote.c: Update.
2867 * thread.c: Update.
2868
cc6bcb54
TT
28692018-07-03 Tom Tromey <tom@tromey.com>
2870
2871 * common/ptid.c (ptid_get_tid): Remove.
2872 * common/ptid.h (ptid_get_tid): Don't declare.
2873 * ada-tasks.c: Update.
2874 * aix-thread.c: Update.
2875 * bsd-uthread.c: Update.
2876 * darwin-nat.c: Update.
2877 * fbsd-nat.c: Update.
2878 * i386-darwin-nat.c: Update.
2879 * infrun.c: Update.
2880 * linux-tdep.c: Update.
2881 * nto-procfs.c: Update.
2882 * ppc-ravenscar-thread.c: Update.
2883 * python/py-infthread.c: Update.
2884 * ravenscar-thread.c: Update.
2885 * sol-thread.c: Update.
2886 * sparc-ravenscar-thread.c: Update.
2887 * windows-nat.c: Update.
2888
e38504b3
TT
28892018-07-03 Tom Tromey <tom@tromey.com>
2890
2891 * common/ptid.c (ptid_get_lwp): Remove.
2892 * common/ptid.h (ptid_get_lwp): Don't declare.
2893 * aarch64-linux-nat.c: Update.
2894 * ada-tasks.c: Update.
2895 * aix-thread.c: Update.
2896 * amd64-linux-nat.c: Update.
2897 * arm-linux-nat.c: Update.
2898 * corelow.c: Update.
2899 * fbsd-nat.c: Update.
2900 * fbsd-tdep.c: Update.
2901 * gnu-nat.c: Update.
2902 * i386-cygwin-tdep.c: Update.
2903 * i386-gnu-nat.c: Update.
2904 * i386-linux-nat.c: Update.
2905 * ia64-linux-nat.c: Update.
2906 * inf-ptrace.c: Update.
2907 * infrun.c: Update.
2908 * linux-fork.c: Update.
2909 * linux-nat.c: Update.
2910 * linux-tdep.c: Update.
2911 * linux-thread-db.c: Update.
2912 * mips-linux-nat.c: Update.
2913 * nat/aarch64-linux-hw-point.c: Update.
2914 * nat/aarch64-linux.c: Update.
2915 * nat/linux-btrace.c: Update.
2916 * nat/linux-osdata.c: Update.
2917 * nat/linux-procfs.c: Update.
2918 * nat/x86-linux-dregs.c: Update.
2919 * obsd-nat.c: Update.
2920 * ppc-fbsd-nat.c: Update.
2921 * ppc-linux-nat.c: Update.
2922 * procfs.c: Update.
2923 * python/py-infthread.c: Update.
2924 * ravenscar-thread.c: Update.
2925 * remote.c: Update.
2926 * s390-linux-nat.c: Update.
2927 * sol-thread.c: Update.
2928 * sol2-tdep.c: Update.
2929 * spu-linux-nat.c: Update.
2930 * x86-linux-nat.c: Update.
2931 * xtensa-linux-nat.c: Update.
2932
e99b03dc
TT
29332018-07-03 Tom Tromey <tom@tromey.com>
2934
2935 * common/ptid.c (ptid_get_pid): Remove.
2936 * common/ptid.h (ptid_get_pid): Don't declare.
2937 * aarch64-linux-nat.c: Update.
2938 * ada-lang.c: Update.
2939 * aix-thread.c: Update.
2940 * alpha-bsd-nat.c: Update.
2941 * amd64-fbsd-nat.c: Update.
2942 * amd64-linux-nat.c: Update.
2943 * arm-linux-nat.c: Update.
2944 * arm-nbsd-nat.c: Update.
2945 * auxv.c: Update.
2946 * break-catch-syscall.c: Update.
2947 * breakpoint.c: Update.
2948 * bsd-uthread.c: Update.
2949 * corelow.c: Update.
2950 * ctf.c: Update.
2951 * darwin-nat.c: Update.
2952 * fbsd-nat.c: Update.
2953 * fbsd-tdep.c: Update.
2954 * gcore.c: Update.
2955 * gnu-nat.c: Update.
2956 * hppa-nbsd-nat.c: Update.
2957 * hppa-obsd-nat.c: Update.
2958 * i386-fbsd-nat.c: Update.
2959 * ia64-linux-nat.c: Update.
2960 * inf-ptrace.c: Update.
2961 * infcmd.c: Update.
2962 * inferior.c: Update.
2963 * inferior.h: Update.
2964 * inflow.c: Update.
2965 * infrun.c: Update.
2966 * linux-fork.c: Update.
2967 * linux-nat.c: Update.
2968 * linux-tdep.c: Update.
2969 * linux-thread-db.c: Update.
2970 * m68k-bsd-nat.c: Update.
2971 * mi/mi-interp.c: Update.
2972 * mi/mi-main.c: Update.
2973 * mips-linux-nat.c: Update.
2974 * mips-nbsd-nat.c: Update.
2975 * mips64-obsd-nat.c: Update.
2976 * nat/aarch64-linux-hw-point.c: Update.
2977 * nat/aarch64-linux.c: Update.
2978 * nat/linux-btrace.c: Update.
2979 * nat/linux-osdata.c: Update.
2980 * nat/linux-procfs.c: Update.
2981 * nat/x86-linux-dregs.c: Update.
2982 * nto-procfs.c: Update.
2983 * obsd-nat.c: Update.
2984 * ppc-linux-nat.c: Update.
2985 * ppc-nbsd-nat.c: Update.
2986 * ppc-obsd-nat.c: Update.
2987 * proc-service.c: Update.
2988 * procfs.c: Update.
2989 * python/py-inferior.c: Update.
2990 * python/py-infthread.c: Update.
2991 * ravenscar-thread.c: Update.
2992 * record.c: Update.
2993 * remote-sim.c: Update.
2994 * remote.c: Update.
2995 * rs6000-nat.c: Update.
2996 * s390-linux-nat.c: Update.
2997 * sh-nbsd-nat.c: Update.
2998 * sol-thread.c: Update.
2999 * sparc-nat.c: Update.
3000 * sparc64-tdep.c: Update.
3001 * spu-linux-nat.c: Update.
3002 * spu-tdep.c: Update.
3003 * target-debug.h: Update.
3004 * target.c: Update.
3005 * thread.c: Update.
3006 * tid-parse.c: Update.
3007 * tracefile-tfile.c: Update.
3008 * vax-bsd-nat.c: Update.
3009 * windows-nat.c: Update.
3010 * x86-linux-nat.c: Update.
3011 * x86-nat.c: Update.
3012
f2907e49
TT
30132018-07-03 Tom Tromey <tom@tromey.com>
3014
3015 * common/ptid.c (pid_to_ptid): Remove.
3016 * common/ptid.h (pid_to_ptid): Don't declare.
3017 * aix-thread.c: Update.
3018 * arm-linux-nat.c: Update.
3019 * common/ptid.c: Update.
3020 * common/ptid.h: Update.
3021 * corelow.c: Update.
3022 * ctf.c: Update.
3023 * darwin-nat.c: Update.
3024 * fbsd-nat.c: Update.
3025 * fork-child.c: Update.
3026 * gnu-nat.c: Update.
3027 * go32-nat.c: Update.
3028 * inf-ptrace.c: Update.
3029 * infcmd.c: Update.
3030 * inferior.c: Update.
3031 * infrun.c: Update.
3032 * linux-fork.c: Update.
3033 * linux-nat.c: Update.
3034 * nat/aarch64-linux-hw-point.c: Update.
3035 * nat/fork-inferior.c: Update.
3036 * nat/x86-linux-dregs.c: Update.
3037 * nto-procfs.c: Update.
3038 * obsd-nat.c: Update.
3039 * procfs.c: Update.
3040 * progspace.c: Update.
3041 * remote.c: Update.
3042 * rs6000-nat.c: Update.
3043 * s390-linux-nat.c: Update.
3044 * sol-thread.c: Update.
3045 * spu-linux-nat.c: Update.
3046 * target.c: Update.
3047 * top.c: Update.
3048 * tracefile-tfile.c: Update.
3049 * windows-nat.c: Update.
3050
fd79271b
TT
30512018-07-03 Tom Tromey <tom@tromey.com>
3052
3053 * common/ptid.h (ptid_build): Don't declare.
3054 * common/ptid.c (ptid_build): Remove.
3055 * aix-thread.c: Update.
3056 * bsd-kvm.c: Update.
3057 * bsd-uthread.c: Update.
3058 * common/agent.c: Update.
3059 * common/ptid.c: Update.
3060 * common/ptid.h: Update.
3061 * corelow.c: Update.
3062 * darwin-nat.c: Update.
3063 * fbsd-nat.c: Update.
3064 * gnu-nat.c: Update.
3065 * linux-fork.c: Update.
3066 * linux-nat.c: Update.
3067 * linux-thread-db.c: Update.
3068 * nat/linux-osdata.c: Update.
3069 * nat/linux-procfs.c: Update.
3070 * nto-procfs.c: Update.
3071 * obsd-nat.c: Update.
3072 * proc-service.c: Update.
3073 * procfs.c: Update.
3074 * ravenscar-thread.c: Update.
3075 * remote-sim.c: Update.
3076 * remote.c: Update.
3077 * sol-thread.c: Update.
3078 * target.c: Update.
3079 * windows-nat.c: Update.
3080
057302ce
TT
30812018-07-03 Tom Tromey <tom@tromey.com>
3082
3083 * infrun.c (follow_exec): Use exit_inferior_silent.
3084 * inferior.c (exit_inferior_num_silent): Remove.
3085 * inferior.h (exit_inferior_num_silent): Don't declare.
3086
a50c11c6
TT
30872018-07-03 Tom Tromey <tom@tromey.com>
3088
3089 PR cli/23340:
3090 * darwin-nat.c (darwin_attach_pid): Reset inferior and
3091 inferior_ptid on error.
3092
471b9d15
MR
30932018-07-02 Maciej W. Rozycki <macro@mips.com>
3094 Simon Marchi <simon.marchi@polymtl.ca>
3095
3096 PR tdep/8282
3097 * disasm.h (gdb_disassembler): Add
3098 `m_disassembler_options_holder'. member
3099 * disasm.c (get_all_disassembler_options): New function.
3100 (gdb_disassembler::gdb_disassembler): Use it.
3101 (gdb_buffered_insn_length_init_dis): Likewise.
3102 (gdb_buffered_insn_length): Adjust accordingly.
3103 (set_disassembler_options): Handle options with arguments.
3104 (show_disassembler_options_sfunc): Likewise. Add a leading new
3105 line if showing options with descriptions.
3106 (disassembler_options_completer): Adapt to using the
3107 `disasm_options_and_args_t' structure.
3108 * mips-tdep.c (mips_disassembler_options): New variable.
3109 (mips_disassembler_options_o32): Likewise.
3110 (mips_disassembler_options_n32): Likewise.
3111 (mips_disassembler_options_n64): Likewise.
3112 (gdb_print_insn_mips): Don't set `disassembler_options'.
3113 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
3114 functions.
3115 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
3116 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
3117 `gdbarch_disassembler_options_implicit' and
3118 `gdbarch_valid_disassembler_options'.
3119 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
3120 `disasm_options_and_args_t' structure.
3121 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
3122 method.
3123 (valid_disassembler_options): Switch from `disasm_options_t' to
3124 the `disasm_options_and_args_t' structure.
3125 * NEWS: Document `set disassembler-options' support for the MIPS
3126 target.
3127 * gdbarch.h: Regenerate.
3128 * gdbarch.c: Regenerate.
3129
41823f29
SH
31302018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
3131
3132 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
3133
41206e32
JB
31342018-06-29 Joel Brobecker <brobecker@adacore.com>
3135
3136 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
3137 parameter in call to amd64_target_description.
3138 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
3139 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
3140 (amd64fbsd_init_abi): Likewise.
3141 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
3142 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
3143 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
3144 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
3145
de52b960
PA
31462018-06-29 Pedro Alves <palves@redhat.com>
3147
3148 * gdb/amd64-tdep.h (amd64_create_target_description): Add
3149 "segments" parameter.
3150 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
3151 (_initialize_amd64_tdep): Update call to
3152 amd64_create_target_description.
3153 (amd64_target_description): Add "segments" parameter. Adjust
3154 the implementation to use it.
3155 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
3156 call to amd64_create_target_description.
3157 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
3158 * gdb/arch/amd64.h (amd64_create_target_description): Add
3159 "segments" register.
3160 * gdb/arch/amd64.c (amd64_create_target_description): Add
3161 "segments" parameter. Call create_feature_i386_64bit_segments
3162 only if SEGMENTS is true.
3163 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
3164 call to amd64_create_target_description.
3165
75acb486
PA
31662018-06-29 Pedro Alves <palves@redhat.com>
3167
3168 * thread.c (thread_target_id_str): New, factored out from ...
3169 (print_thread_info_1): ... here. Use it to compute the max
3170 "Target Id" column width.
3171
c76a8ea3
PA
31722018-06-29 Pedro Alves <palves@redhat.com>
3173
3174 * remote.c (remote_target::extra_thread_info): Delete
3175 'display_buf' and 'n' locals. from the cache, regardless of
3176 packet mechanims is in use. Use cache for qThreadExtra and qP
3177 methods too.
3178
cd2bb709
PA
31792018-06-29 Pedro Alves <palves@redhat.com>
3180
3181 * blockframe.c (find_pc_sect_containing_function): New function.
3182 * breakpoint.c (print_breakpoint_location): Don't call
3183 find_pc_sect_function.
3184 * linespec.c (create_sals_line_offset): Record the location's
3185 symbol in the sal.
3186 * linespec.c (convert_address_location_to_sals): Fill in sal's
3187 symbol with find_pc_sect_containing_function.
3188 * symtab.c (find_function_start_sal): Rename to ...
3189 (find_function_start_sal_1): ... this.
3190 (find_function_start_sal): Reimplement as wrapper around
3191 find_function_start_sal_1, and use
3192 find_pc_sect_containing_function to fill in the sal's symbol.
3193 (find_function_start_sal(symbol*, bool)): Adjust.
3194 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
3195 comments.
3196 (find_pc_sect_containing_function): Declare.
3197
991ff292
PA
31982018-06-29 Pedro Alves <palves@redhat.com>
3199
3200 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
3201 true if the the location has no symbol.
3202
44cee4fd
TT
32032018-06-28 Tom Tromey <tom@tromey.com>
3204
3205 * NEWS: Mention --enable-codesign.
3206 * silent-rules.mk (ECHO_SIGN): New variable.
3207 * configure.ac: Add --enable-codesign.
3208 * configure: Rebuild.
3209 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
3210 (gdb$(EXEEXT)): Optionally invoke codesign.
3211
f2ffa92b
PA
32122018-06-28 Pedro Alves <palves@redhat.com>
3213
3214 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
3215 comments.
3216 (switch_to_thread_no_regs): Adjust comment.
3217 * infcmd.c (stop_pc): Delete.
3218 (post_create_inferior, info_program_command): Replace references
3219 to stop_pc with references to thread_info->suspend.stop_pc.
3220 * inferior.h (stop_pc): Delete declaration.
3221 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
3222 (handle_inferior_event_1, handle_signal_stop)
3223 (process_event_stop_test, keep_going_stepped_thread)
3224 (handle_step_into_function, handle_step_into_function_backward)
3225 (print_stop_location): Replace references to stop_pc with
3226 references to thread_info->suspend.stop_pc.
3227 (struct infcall_suspend_state) <stop_pc>: Delete field.
3228 (save_infcall_suspend_state, restore_infcall_suspend_state):
3229 Remove references to inf_stat->stop_pc.
3230 * linux-fork.c (fork_load_infrun_state): Likewise.
3231 * record-btrace.c (record_btrace_set_replay): Likewise.
3232 * record-full.c (record_full_goto_entry): Likewise.
3233 * remote.c (print_one_stopped_thread): Likewise.
3234 * target.c (target_resume): Extend comment.
3235 * thread.c (set_executing_thread): New.
3236 (set_executing): Use it.
3237 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
3238 Remove references to stop_pc.
3239
ecdc3a72
PA
32402018-06-28 Pedro Alves <palves@redhat.com>
3241
3242 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
3243 Moving fetching stop_pc until after ecs->event_thread is refreshed.
3244
d95d3aef
TT
32452018-06-28 Tom Tromey <tom@tromey.com>
3246
3247 * coffread.c (coff_symfile_finish): Update.
3248 * xcoffread.c (xcoff_symfile_finish): Update.
3249 * elfread.c (elf_symfile_finish): Update.
3250 * symfile.h (dwarf2_free_objfile): Don't declare.
3251 * dwarf2read.c (_initialize_dwarf2_read): Use
3252 register_objfile_data_with_cleanup.
3253 (dwarf2_free_objfile): Now static. Change signature.
3254
291f9a96
PT
32552018-06-28 Petr Tesarik <ptesarik@suse.cz>
3256
3257 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
3258 option "-o" to add-symbol-file-load to add an offset to each
3259 section's load address.
3260 * symfile.c (set_objfile_default_section_offset): New function.
3261
d81a3eaf
PT
32622018-06-28 Petr Tesarik <ptesarik@suse.cz>
3263
3264 * symfile.c (add_symbol_file_command): Make sure that sections
3265 with the same name are sorted in the same order.
3266
ed6dfe51
PT
32672018-06-28 Petr Tesarik <ptesarik@suse.cz>
3268
3269 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
3270 require the second argument. If omitted, load sections at the
3271 addresses specified in the file.
3272
d4d429d5
PT
32732018-06-28 Petr Tesarik <ptesarik@suse.cz>
3274
3275 * symfile.c (symbol_file_command, symbol_file_add_main_1)
3276 (_initialize_symfile): Add option "-o" to symbol-file to add an
3277 offset to each section of the symbol file.
3278
39b27ab6
PT
32792018-06-28 Petr Tesarik <ptesarik@suse.cz>
3280
3281 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
3282
41827fc3
TT
32832018-06-27 Tom Tromey <tom@tromey.com>
3284
3285 * stack.c (_initialize_stack): Update "func" help text.
3286
0c6aef22
TT
32872018-06-27 Tom Tromey <tom@tromey.com>
3288
3289 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
3290 std::vector.
3291 (unwind_infopy_str, pyuw_create_unwind_info)
3292 (unwind_infopy_add_saved_register, pyuw_sniffer)
3293 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
3294 Update.
3295 (struct saved_reg): Add constructor.
3296 <value>: Now a gdbpy_ref<>.
3297
63177289
TT
32982018-06-27 Tom Tromey <tom@tromey.com>
3299
3300 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
3301
e76f78a0
SM
33022018-06-27 Simon Marchi <simon.marchi@ericsson.com>
3303
3304 * gdb-gdb.py.in: Format using autopep8.
3305
9a14af7b
SM
33062018-06-27 Simon Marchi <simon.marchi@ericsson.com>
3307
3308 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
3309 (type_lookup_function): Recognize CORE_ADDR values.
3310
189366cd
SM
33112018-06-27 Simon Marchi <simon.marchi@ericsson.com>
3312
3313 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
3314 print tag_name.
3315
68ad5fb9
SM
33162018-06-27 Simon Marchi <simon.marchi@ericsson.com>
3317
3318 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
3319 <__lt__>: Add.
3320
141ec9f6
SM
33212018-06-27 Simon Marchi <simon.marchi@ericsson.com>
3322
3323 * gdb-gdb.py: Move to...
3324 * gdb-gdb.py.in: ... here.
3325 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
3326 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
3327 dependencies.
3328 (distclean): Remove gdb-gdb.py when cleaning.
3329 (gdb-gdb.py, gdb-gdb.gdb): New rules.
3330 * configure: Re-generate.
3331
4c4e7ad4
PA
33322018-06-27 Pedro Alves <palves@redhat.com>
3333
3334 * proc-service.c (get_ps_regcache): New.
3335 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
3336 (ps_lsetfpregs): Use it.
3337
7ab6656f
OJ
33382018-06-27 Omair Javaid <omair.javaid@linaro.org>
3339
3340 PR gdb/21695
3341 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
3342 (dwarf_decode_lines_1): Adjust.
3343
bd583225
SM
33442018-06-27 Simon Marchi <simon.marchi@ericsson.com>
3345
3346 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
3347 override.
3348 <info_proc>: Likewise.
3349
9a325b7b
JB
33502018-06-26 Joel Brobecker <brobecker@adacore.com>
3351
3352 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
3353 to windows_fetch_one_register, and only handle the case of
3354 fetching one register. Move the code that reloads the context
3355 and iterates over all registers if R is negative to...
3356 (windows_nat_target::fetch_registers): ... here.
3357 (do_windows_store_inferior_registers): Rename to
3358 windows_store_one_register, and only handle the case of storing
3359 one register. Move the code that handles the case where r is
3360 negative to...
3361 (windows_nat_target::store_registers) ... here.
3362
a33ccfc7
TT
33632018-06-26 Tom Tromey <tom@tromey.com>
3364
3365 PR rust/22574:
3366 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
3367 * rust-lang.c (rust_print_struct_def): Add podata parameter.
3368 Update.
3369 (rust_internal_print_type): Add podata parameter.
3370 (rust_print_type): Update.
3371
e0c547d1
TT
33722018-06-26 Tom Tromey <tom@tromey.com>
3373
3374 * typeprint.h (struct print_offset_data) <update, finish,
3375 maybe_print_hole>: New methods.
3376 <indentation>: New constant.
3377 * typeprint.c (print_offset_data::indentation): Define.
3378 (print_offset_data::maybe_print_hole, print_offset_data::update)
3379 (print_offset_data::finish): Move from c-typeprint.c and rename.
3380 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
3381 (print_spaces_filtered_with_print_options): Update.
3382 (c_print_type_union_field_offset, maybe_print_hole)
3383 (c_print_type_struct_field_offset): Move to typeprint.c and
3384 rename.
3385 (c_type_print_base_struct_union): Update.
3386
75cbc781
PA
33872018-06-25 Pedro Alves <palves@redhat.com>
3388
3389 * gdbthread.h (thread_info_ref, delete_thread)
3390 (delete_thread_silent, first_thread_of_inferior)
3391 (any_thread_of_inferior, switch_to_thread)
3392 (enable_thread_stack_temporaries)
3393 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
3394 (get_last_thread_stack_temporary)
3395 (value_in_thread_stack_temporaries, can_access_registers_thread):
3396 Spell out "struct thread_info" instead of just "thread_info".
3397 * inferior.h (notice_new_inferior): Likewise.
3398
b7a08269
PA
33992018-06-25 Pedro Alves <palves@redhat.com>
3400
3401 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
3402 pass thread_info pointer to delete_thread.
3403 (windows_nat_target::detach): Pass inferior pointer to
3404 detach_inferior.
3405 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
3406 delete_thread.
3407 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
3408 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
3409 and pass a thread_info pointer to delete_thread.
3410 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
3411 pass thread_info pointer to delete_thread.
3412 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
3413 delete_thread_silent call.
3414 * procfs.c (procfs_target::detach): Pass inferior pointer to
3415 detach_inferior.
3416 (procfs_target::wait): Pass thread_info pointer to delete_thread.
3417 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
3418 delete_thread_silent call.
3419 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
3420 pass thread_info pointer to delete_thread.
3421 (windows_nat_target::detach): Pass inferior pointer to
3422 delete_inferior.
3423
8e7767e3
AH
34242018-06-22 Alan Hayward <alan.hayward@arm.com>
3425
3426 * regcache.c (readable_regcache::read_part): Fix asserts.
3427 (reg_buffer::raw_collect_part): New function.
3428 (regcache::write_part): Fix asserts.
3429 (reg_buffer::raw_supply_part): New function.
3430 (regcache::transfer_regset_register): New helper function.
3431 (regcache::transfer_regset): Call new functions.
3432 (regcache_supply_regset): Use gdb_byte*.
3433 (regcache::supply_regset): Likewise.
3434 (regcache_collect_regset): Likewise.
3435 (regcache::collect_regset): Likewise.
3436 * regcache.h (reg_buffer::raw_collect_part): New declaration.
3437 (reg_buffer::raw_supply_part): Likewise.
3438 (regcache::transfer_regset_register): Likewise.
3439 (regcache::transfer_regset): Use gdb_byte*.
3440
bfd60e34
AH
34412018-06-22 Alan Hayward <alan.hayward@arm.com>
3442
3443 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
3444
00431a78
PA
34452018-06-21 Pedro Alves <palves@redhat.com>
3446
3447 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
3448 instead of a ptid_t. All callers adjusted.
3449 * ada-tasks.c (ada_get_task_number): Likewise. All callers
3450 adjusted.
3451 (print_ada_task_info, display_current_task_id, task_command_1):
3452 Adjust.
3453 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
3454 inferior_thread.
3455 (breakpoint_kind): Adjust.
3456 (remove_breakpoints_pid): Rename to ...
3457 (remove_breakpoints_inf): ... this. Adjust to take an inferior
3458 pointer. All callers adjusted.
3459 (bpstat_clear_actions): Use inferior_thread.
3460 (get_bpstat_thread): New.
3461 (bpstat_do_actions): Use it.
3462 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
3463 to take a thread_info pointer. All callers adjusted.
3464 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
3465 (breakpoint_re_set_thread): Use inferior_thread.
3466 * breakpoint.h (struct inferior): Forward declare.
3467 (bpstat_stop_status): Update.
3468 (remove_breakpoints_pid): Delete.
3469 (remove_breakpoints_inf): New.
3470 * bsd-uthread.c (bsd_uthread_target::wait)
3471 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
3472 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
3473 (maint_btrace_packet_history_cmd)
3474 (maint_btrace_clear_packet_history_cmd): Adjust.
3475 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
3476 inferior_thread.
3477 * cli/cli-interp.c: Include "inferior.h".
3478 * common/refcounted-object.h (struct
3479 refcounted_object_ref_policy): New.
3480 * compile/compile-object-load.c: Include gdbthread.h.
3481 (store_regs): Use inferior_thread.
3482 * corelow.c (core_target::close): Use current_inferior.
3483 (core_target_open): Adjust to use first_thread_of_inferior and use
3484 the current inferior.
3485 * ctf.c (ctf_target::close): Adjust to use current_inferior.
3486 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
3487 <thread>: ... this new field. All references adjusted.
3488 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
3489 Take a thread_info pointer instead of a ptid_t.
3490 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
3491 (dummy_frame_discard, register_dummy_frame_dtor): Take a
3492 thread_info pointer instead of a ptid_t.
3493 * elfread.c: Include "inferior.h".
3494 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
3495 Use inferior_thread.
3496 * eval.c (evaluate_subexp): Likewise.
3497 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
3498 inferior_thread.
3499 * gdb_proc_service.h (struct thread_info): Forward declare.
3500 (struct ps_prochandle) <ptid>: Delete, replaced by ...
3501 <thread>: ... this new field. All references adjusted.
3502 * gdbarch.h, gdbarch.c: Regenerate.
3503 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
3504 'thread' parameter. All implementations and callers adjusted.
3505 * gdbthread.h (thread_info) <set_running>: New method.
3506 (delete_thread, delete_thread_silent): Take a thread_info pointer
3507 instead of a ptid.
3508 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
3509 (first_thread_of_process): Delete, replaced by ...
3510 (first_thread_of_inferior): ... this new function. All callers
3511 adjusted.
3512 (any_live_thread_of_process): Delete, replaced by ...
3513 (any_live_thread_of_inferior): ... this new function. All callers
3514 adjusted.
3515 (switch_to_thread, switch_to_no_thread): Declare.
3516 (is_executing): Delete.
3517 (enable_thread_stack_temporaries): Update comment.
3518 <enable_thread_stack_temporaries>: Take a thread_info pointer
3519 instead of a ptid_t. Incref the thread.
3520 <~enable_thread_stack_temporaries>: Decref the thread.
3521 <m_ptid>: Delete
3522 <m_thr>: New.
3523 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
3524 (get_last_thread_stack_temporary)
3525 (value_in_thread_stack_temporaries, can_access_registers_thread):
3526 Take a thread_info pointer instead of a ptid_t. All callers
3527 adjusted.
3528 * infcall.c (get_call_return_value): Use inferior_thread.
3529 (run_inferior_call): Work with thread pointers instead of ptid_t.
3530 (call_function_by_hand_dummy): Work with thread pointers instead
3531 of ptid_t. Use thread_info_ref.
3532 * infcmd.c (proceed_thread_callback): Access thread's state
3533 directly.
3534 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
3535 access thread's state directly.
3536 (continue_command): Use inferior_thread.
3537 (info_program_command): Use find_thread_ptid and access thread
3538 state directly.
3539 (proceed_after_attach_callback): Use thread state directly.
3540 (notice_new_inferior): Take a thread_info pointer instead of a
3541 ptid_t. All callers adjusted.
3542 (exit_inferior): Take an inferior pointer instead of a pid. All
3543 callers adjusted.
3544 (exit_inferior_silent): New.
3545 (detach_inferior): Delete.
3546 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
3547 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
3548 (detach_inferior_command, kill_inferior_command): Use
3549 find_inferior_id instead of valid_gdb_inferior_id and
3550 gdb_inferior_id_to_pid.
3551 (inferior_command): Use inferior and thread pointers.
3552 * inferior.h (struct thread_info): Forward declare.
3553 (notice_new_inferior): Take a thread_info pointer instead of a
3554 ptid_t. All callers adjusted.
3555 (detach_inferior): Delete declaration.
3556 (exit_inferior, exit_inferior_silent): Take an inferior pointer
3557 instead of a pid. All callers adjusted.
3558 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
3559 (valid_gdb_inferior_id): Delete.
3560 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
3561 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
3562 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
3563 ...
3564 <inf>: ... this new field.
3565 <step_ptid>: Delete, replaced by ...
3566 <step_thread>: ... this new field.
3567 (get_displaced_stepping_state): Take an inferior pointer instead
3568 of a pid. All callers adjusted.
3569 (displaced_step_in_progress_any_inferior): Adjust.
3570 (displaced_step_in_progress_thread): Take a thread pointer instead
3571 of a ptid_t. All callers adjusted.
3572 (displaced_step_in_progress, add_displaced_stepping_state): Take
3573 an inferior pointer instead of a pid. All callers adjusted.
3574 (get_displaced_step_closure_by_addr): Adjust.
3575 (remove_displaced_stepping_state): Take an inferior pointer
3576 instead of a pid. All callers adjusted.
3577 (displaced_step_prepare_throw, displaced_step_prepare)
3578 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
3579 All callers adjusted.
3580 (start_step_over): Adjust.
3581 (infrun_thread_ptid_changed): Remove bit updating ptids in the
3582 displaced step queue.
3583 (do_target_resume): Adjust.
3584 (fetch_inferior_event): Use inferior_thread.
3585 (context_switch, get_inferior_stop_soon): Take an
3586 execution_control_state pointer instead of a ptid_t. All callers
3587 adjusted.
3588 (switch_to_thread_cleanup): Delete.
3589 (stop_all_threads): Use scoped_restore_current_thread.
3590 * inline-frame.c: Include "gdbthread.h".
3591 (inline_state) <inline_state>: Take a thread pointer instead of a
3592 ptid_t. All callers adjusted.
3593 <ptid>: Delete, replaced by ...
3594 <thread>: ... this new field.
3595 (find_inline_frame_state): Take a thread pointer instead of a
3596 ptid_t. All callers adjusted.
3597 (skip_inline_frames, step_into_inline_frame)
3598 (inline_skipped_frames, inline_skipped_symbol): Take a thread
3599 pointer instead of a ptid_t. All callers adjusted.
3600 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
3601 (inline_skipped_frames, inline_skipped_symbol): Likewise.
3602 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
3603 pointers directly.
3604 * linux-nat.c (get_detach_signal): Likewise.
3605 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
3606 (thread_db_notice_clone): Adjust.
3607 (thread_db_find_new_threads_silently)
3608 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
3609 a thread pointer instead of a ptid_t. All callers adjusted.
3610 * mi/mi-cmd-var.c: Include "inferior.h".
3611 (mi_cmd_var_update_iter): Update to use thread pointers.
3612 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
3613 inferior directly.
3614 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
3615 out to ...
3616 (mi_output_running): ... this new function.
3617 (mi_on_resume_1): Adjust to use it.
3618 (mi_user_selected_context_changed): Adjust to use inferior_thread.
3619 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
3620 directly.
3621 (interrupt_thread_callback): : Adjust to use thread and inferior
3622 pointers.
3623 * proc-service.c: Include "gdbthread.h".
3624 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
3625 * progspace-and-thread.c: Include "inferior.h".
3626 * progspace.c: Include "inferior.h".
3627 * python/py-exitedevent.c (create_exited_event_object): Adjust to
3628 hold a reference to an inferior_object.
3629 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
3630 inferior_thread.
3631 * python/py-inferior.c (struct inferior_object): Give the type a
3632 tag name instead of a typedef.
3633 (python_on_normal_stop): No need to check if the current thread is
3634 listed.
3635 (inferior_to_inferior_object): Change return type to
3636 inferior_object. All callers adjusted.
3637 (find_thread_object): Delete, bits factored out to ...
3638 (thread_to_thread_object): ... this new function.
3639 * python/py-infthread.c (create_thread_object): Use
3640 inferior_to_inferior_object.
3641 (thpy_is_stopped): Use thread pointer directly.
3642 (gdbpy_selected_thread): Use inferior_thread.
3643 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
3644 field, replaced with ...
3645 <thread>: ... this new field. All users adjusted.
3646 (btpy_insn_or_gap_new): Drop const.
3647 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
3648 callers adjusted.
3649 * python/py-record.c: Include "gdbthread.h".
3650 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
3651 a ptid_t. All callers adjusted.
3652 (gdbpy_current_recording): Use inferior_thread.
3653 * python/py-record.h (recpy_record_object) <ptid>: Delete
3654 field, replaced with ...
3655 <thread>: ... this new field. All users adjusted.
3656 (recpy_element_object) <ptid>: Delete
3657 field, replaced with ...
3658 <thread>: ... this new field. All users adjusted.
3659 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
3660 a ptid_t. All callers adjusted.
3661 * python/py-threadevent.c: Include "gdbthread.h".
3662 (get_event_thread): Use thread_to_thread_object.
3663 * python/python-internal.h (struct inferior_object): Forward
3664 declare.
3665 (find_thread_object, find_inferior_object): Delete declarations.
3666 (thread_to_thread_object, inferior_to_inferior_object): New
3667 declarations.
3668 * record-btrace.c: Include "inferior.h".
3669 (require_btrace_thread): Use inferior_thread.
3670 (record_btrace_frame_sniffer)
3671 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
3672 (get_thread_current_frame): Use scoped_restore_current_thread and
3673 switch_to_thread.
3674 (get_thread_current_frame): Use thread pointer directly.
3675 (record_btrace_replay_at_breakpoint): Use thread's inferior
3676 pointer directly.
3677 * record-full.c: Include "inferior.h".
3678 * regcache.c: Include "gdbthread.h".
3679 (get_thread_arch_regcache): Use the inferior's address space
3680 directly.
3681 (get_thread_regcache, registers_changed_thread): New.
3682 * regcache.h (get_thread_regcache(thread_info *thread)): New
3683 overload.
3684 (registers_changed_thread): New.
3685 (remote_target) <remote_detach_1>: Swap order of parameters.
3686 (remote_add_thread): <remote_add_thread>: Return the new thread.
3687 (get_remote_thread_info(ptid_t)): New overload.
3688 (remote_target::remote_notice_new_inferior): Use thread pointers
3689 directly.
3690 (remote_target::process_initial_stop_replies): Use
3691 thread_info::set_running.
3692 (remote_target::remote_detach_1, remote_target::detach)
3693 (extended_remote_target::detach): Adjust.
3694 * stack.c (frame_show_address): Use inferior_thread.
3695 * target-debug.h (target_debug_print_thread_info_pp): New.
3696 * target-delegates.c: Regenerate.
3697 * target.c (default_thread_address_space): Delete.
3698 (memory_xfer_partial_1): Use current_inferior.
3699 (target_detach): Use current_inferior.
3700 (target_thread_address_space): Delete.
3701 (generic_mourn_inferior): Use current_inferior.
3702 * target.h (struct target_ops) <thread_address_space>: Delete.
3703 (target_thread_address_space): Delete.
3704 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
3705 pointers directly.
3706 (delete_thread_1, delete_thread, delete_thread_silent): Take a
3707 thread pointer instead of a ptid_t. Adjust all callers.
3708 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
3709 (first_thread_of_process): Delete, replaced by ...
3710 (first_thread_of_inferior): ... this new function. All callers
3711 adjusted.
3712 (any_thread_of_process): Rename to ...
3713 (any_thread_of_inferior): ... this, and take an inferior pointer.
3714 (any_live_thread_of_process): Rename to ...
3715 (any_live_thread_of_inferior): ... this, and take an inferior
3716 pointer.
3717 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
3718 (value_in_thread_stack_temporaries)
3719 (get_last_thread_stack_temporary): Take a thread pointer instead
3720 of a ptid_t. Adjust all callers.
3721 (thread_info::set_running): New.
3722 (validate_registers_access): Use inferior_thread.
3723 (can_access_registers_ptid): Rename to ...
3724 (can_access_registers_thread): ... this, and take a thread
3725 pointer.
3726 (print_thread_info_1): Adjust to compare thread pointers instead
3727 of ptids.
3728 (switch_to_no_thread, switch_to_thread): Make extern.
3729 (scoped_restore_current_thread::~scoped_restore_current_thread):
3730 Use m_thread pointer directly.
3731 (scoped_restore_current_thread::scoped_restore_current_thread):
3732 Use inferior_thread.
3733 (thread_command): Use thread pointer directly.
3734 (thread_num_make_value_helper): Use inferior_thread.
3735 * top.c (execute_command): Use inferior_thread.
3736 * tui/tui-interp.c: Include "inferior.h".
3737 * varobj.c (varobj_create): Use inferior_thread.
3738 (value_of_root_1): Use find_thread_global_id instead of
3739 global_thread_id_to_ptid.
3740
33bab475
AH
37412018-06-21 Alan Hayward <alan.hayward@arm.com>
3742
3743 * regcache.c (readable_regcache::read_part): Avoid memcpy when
3744 possible.
3745 (regcache::write_part): Likewise.
3746 (readable_regcache::cooked_read_part): Update comment.
3747 (readable_regcache::cooked_write_part): Likewise.
3748 * regcache.h: (readable_regcache::read_part): Likewise.
3749 (regcache::write_part): Likewise.
3750
8363f9d5
RB
37512018-06-21 Richard Bunt <richard.bunt@arm.com>
3752 Dirk Schubert <dirk.schubert@arm.com>
3753
3754 * aarch64-linux-nat.c (post_attach): New.
3755 (aarch64_linux_nat_target::post_attach): Override post_attach to
3756 record the number of hardware debug registers.
3757
0d0b0ea2
TT
37582018-06-20 Tom Tromey <tom@tromey.com>
3759
3760 * python/py-param.c (add_setshow_generic): Make parameters const.
3761 (parmpy_init): Update.
3762
302abd6e
SM
37632018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
3764
3765 * regcache.h (regcache_cooked_read_ftype): Rename to...
3766 (register_read_ftype): ...this, change type to function_view.
3767 (class reg_buffer) <save>: Remove src parameter.
3768 (readonly_detached_regcache) <readonly_detached_regcache>: Make
3769 parameter non-const in first overload. Remove src parameter in
3770 second overload.
3771 * regcache.c (do_cooked_read): Remove.
3772 (readonly_detached_regcache::readonly_detached_regcache): Make
3773 parameter non-const, adjust call to other constructor.
3774 (reg_buffer::save): Remove src parameter.
3775 * frame.c (do_frame_register_read): Remove.
3776 (frame_save_as_regcache): Use lambda function.
3777 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
3778 parameter to ppu2spu_data *.
3779 (ppu2spu_sniffer): Use lambda function.
3780
19f3f25f
SM
37812018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
3782
3783 * record-full.c (record_full_target::insert_breakpoint): Remove
3784 "struct" keyword, add const.
3785
d0ac1c44
SM
37862018-06-19 Simon Marchi <simon.marchi@ericsson.com>
3787
3788 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
3789 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
3790 * configure.ac: Remove AC_PREREQ, add missing quoting.
3791 * gnulib/configure.ac: Modernize usage of
3792 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
3793 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
3794 (AUTOMAKE_VERSION): Bump to 1.15.1.
3795 * configure: Re-generate.
3796 * config.in: Re-generate.
3797 * aclocal.m4: Re-generate.
3798 * gnulib/aclocal.m4: Re-generate.
3799 * gnulib/config.in: Re-generate.
3800 * gnulib/configure: Re-generate.
3801 * gnulib/import/Makefile.in: Re-generate.
3802
6ae50267
PA
38032018-06-19 Pedro Alves <palves@redhat.com>
3804
3805 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
3806 (lookup_minimal_symbol_by_pc_section): ... here with
3807 gdb_assert_not_reached added.
3808
61b04dd0
PA
38092018-06-19 Pedro Alves <palves@redhat.com>
3810
3811 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
3812 parameter with a block parameter. Compare location's block symbol
3813 with the frame's block instead of addresses.
3814 (skip_inline_frames): Pass the current block instead of the
3815 frame's address. Break out as soon as we determine the frame
3816 should not be skipped.
3817
f709fabb
TT
38182018-06-18 Tom Tromey <tom@tromey.com>
3819
3820 * solib-aix.c (solib_aix_get_section_offsets): Return
3821 unique_xmalloc_ptr.
3822 (solib_aix_solib_create_inferior_hook): Update.
3823
668eb2f0
TT
38242018-06-18 Tom Tromey <tom@tromey.com>
3825
3826 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
3827
309822ca
TT
38282018-06-18 Tom Tromey <tom@tromey.com>
3829
3830 * solib-frv.c (frv_relocate_main_executable): Use
3831 unique_xmalloc_ptr.
3832 * solib-dsbt.c (dsbt_relocate_main_executable): Use
3833 unique_xmalloc_ptr.
3834
06424eac
TT
38352018-06-18 Tom Tromey <tom@tromey.com>
3836
3837 * objfiles.h (inhibit_section_map_updates): Update.
3838 (resume_section_map_updates, resume_section_map_updates_cleanup):
3839 Remove.
3840 * solib-svr4.c (svr4_handle_solib_event): Update.
3841 * objfiles.c (inhibit_section_map_updates): Return
3842 scoped_restore_tmpl<int>.
3843 (resume_section_map_updates, resume_section_map_updates_cleanup):
3844 Remove.
3845
b4be9fad
TT
38462018-06-18 Tom Tromey <tom@tromey.com>
3847
3848 * valprint.h (read_string): Update.
3849 * valprint.c (read_string): Change type of "buffer".
3850 (val_print_string): Update.
3851 * python/py-value.c (valpy_string): Update.
3852 * language.h (struct language_defn) <la_get_string>: Change
3853 type of "buffer".
3854 (default_get_string, c_get_string): Update.
3855 * language.c (default_get_string): Change type of "buffer".
3856 * guile/scm-value.c (gdbscm_value_to_string): Update.
3857 * c-lang.c (c_get_string): Change type of "buffer".
3858
3f0dbd67
TT
38592018-06-18 Tom Tromey <tom@tromey.com>
3860
3861 * ser-mingw.c (struct pipe_state_destroyer): New.
3862 (pipe_state_up): New typedef.
3863 (cleanup_pipe_state): Remove.
3864 (pipe_windows_open): Use pipe_state_up. Don't release argv.
3865
69d340c6
TT
38662018-06-18 Tom Tromey <tom@tromey.com>
3867
3868 * rust-lang.h (rust_yyerror): Don't declare.
3869 * rust-lang.c (rust_language_defn): Update.
3870 * rust-exp.y (yyerror): Now static.
3871 * parse.c (parse_exp_in_context_1): Update.
3872 * p-lang.h (p_yyerror): Don't declare.
3873 * p-lang.c (p_language_defn): Update.
3874 * p-exp.y (yyerror): Now static.
3875 * opencl-lang.c (opencl_language_defn): Update.
3876 * objc-lang.c (objc_language_defn): Update.
3877 * m2-lang.h (m2_yyerror): Don't declare.
3878 * m2-lang.c (m2_language_defn): Update.
3879 * m2-exp.y (yyerror): Now static.
3880 * language.h (struct language_defn) <la_error>: Remove.
3881 * language.c (unk_lang_error): Remove.
3882 (unknown_language_defn, auto_language_defn): Remove.
3883 * go-lang.h (go_yyerror): Don't declare.
3884 * go-lang.c (go_language_defn): Update.
3885 * go-exp.y (yyerror): Now static.
3886 * f-lang.h (f_yyerror): Don't declare.
3887 * f-lang.c (f_language_defn): Update.
3888 * f-exp.y (yyerror): Now static.
3889 * d-lang.h (d_yyerror): Don't declare.
3890 * d-lang.c (d_language_defn): Update.
3891 * d-exp.y (yyerror): Now static.
3892 * c-lang.h (c_yyerror): Don't declare.
3893 * c-lang.c (c_language_defn, cplus_language_defn)
3894 (asm_language_defn, minimal_language_defn): Update.
3895 * c-exp.y (yyerror): Now static.
3896 * ada-lang.h (ada_yyerror): Don't declare.
3897 * ada-lang.c (ada_language_defn): Update.
3898 * ada-exp.y (yyerror): Now static.
3899
e9902bfc
AH
39002018-06-18 Alan Hayward <alan.hayward@arm.com>
3901
3902 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
3903 (store_sveregs_to_thread): Likewise.
3904 (aarch64_linux_fetch_inferior_registers): Check for SVE.
3905 (aarch64_linux_store_inferior_registers): Likewise.
3906 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
3907 function.
3908 (aarch64_sve_regs_copy_to_regcache): Likewise.
3909 (aarch64_sve_regs_copy_from_regcache): Likewise.
3910 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
3911 declaration.
3912 (aarch64_sve_regs_copy_to_regcache): Likewise.
3913 (aarch64_sve_regs_copy_from_regcache): Likewise.
3914 (sve_context): Structure from Linux headers.
3915 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
3916 (SVE_SIG_ZREG_SIZE): Likewise.
3917 (SVE_SIG_PREG_SIZE): Likewise.
3918 (SVE_SIG_FFR_SIZE): Likewise.
3919 (SVE_SIG_REGS_OFFSET): Likewise.
3920 (SVE_SIG_ZREGS_OFFSET): Likewise.
3921 (SVE_SIG_ZREG_OFFSET): Likewise.
3922 (SVE_SIG_ZREGS_SIZE): Likewise.
3923 (SVE_SIG_PREGS_OFFSET): Likewise.
3924 (SVE_SIG_PREG_OFFSET): Likewise.
3925 (SVE_SIG_PREGS_SIZE): Likewise.
3926 (SVE_SIG_FFR_OFFSET): Likewise.
3927 (SVE_SIG_REGS_SIZE): Likewise.
3928 (SVE_SIG_CONTEXT_SIZE): Likewise.
3929 (SVE_PT_REGS_MASK): Likewise.
3930 (SVE_PT_REGS_FPSIMD): Likewise.
3931 (SVE_PT_REGS_SVE): Likewise.
3932 (SVE_PT_VL_INHERIT): Likewise.
3933 (SVE_PT_VL_ONEXEC): Likewise.
3934 (SVE_PT_REGS_OFFSET): Likewise.
3935 (SVE_PT_FPSIMD_OFFSET): Likewise.
3936 (SVE_PT_FPSIMD_SIZE): Likewise.
3937 (SVE_PT_SVE_ZREG_SIZE): Likewise.
3938 (SVE_PT_SVE_PREG_SIZE): Likewise.
3939 (SVE_PT_SVE_FFR_SIZE): Likewise.
3940 (SVE_PT_SVE_FPSR_SIZE): Likewise.
3941 (SVE_PT_SVE_FPCR_SIZE): Likewise.
3942 (__SVE_SIG_TO_PT): Likewise.
3943 (SVE_PT_SVE_OFFSET): Likewise.
3944 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
3945 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
3946 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
3947 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
3948 (SVE_PT_SVE_PREG_OFFSET): Likewise.
3949 (SVE_PT_SVE_PREGS_SIZE): Likewise.
3950 (SVE_PT_SVE_FFR_OFFSET): Likewise.
3951 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
3952 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
3953 (SVE_PT_SVE_SIZE): Likewise.
3954 (SVE_PT_SIZE): Likewise.
3955 (HAS_SVE_STATE): New define.
3956
17a1cc89
AH
39572018-06-18 Alan Hayward <alan.hayward@arm.com>
3958
3959 * nat/aarch64-sve-linux-sigcontext.h: New file.
3960 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
3961 new files.
3962 (SVE_VQ_MIN): Likewise.
3963 (SVE_VQ_MAX): Likewise.
3964 (SVE_VL_MIN): Likewise.
3965 (SVE_VL_MAX): Likewise.
3966 (SVE_NUM_ZREGS): Likewise.
3967 (SVE_NUM_PREGS): Likewise.
3968 (sve_vl_valid): Likewise.
3969 (struct user_sve_header): Likewise.
3970
7010835a
AB
39712018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
3972 Richard Bunt <Richard.Bunt@arm.com>
3973
3974 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
3975 was requested by GDB.
3976
479b3ef4
TV
39772018-06-15 Tom de Vries <tdevries@suse.de>
3978
3979 * MAINTAINERS (Write After Approval): Add Tom de Vries.
3980
8199b8f4
SM
39812018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
3982
3983 * gnulib/update-gnulib.sh: Print expected versions of
3984 autoconf/aclocal.
3985
55c748a1
SM
39862018-06-14 Simon Marchi <simon.marchi@ericsson.com>
3987
3988 * arch-utils.c (default_type_align): Use type_length_units.
3989 * gdbtypes.c (type_align): Use type_length_units.
3990
87a8eca7
PW
39912018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3992
3993 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
3994 of 'define' command.
3995
5d9a0608
TV
39962018-06-14 Tom de Vries <tdevries@suse.de>
3997
3998 PR cli/22573
3999 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
4000 get_no_prettyformat_print_options.
4001
ab89b5a5
SM
40022018-06-13 Simon Marchi <simon.marchi@ericsson.com>
4003
4004 * sparc-nat.h: Include target.h.
4005 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
4006 <fetch_registers>: Remove this argument in function call.
4007 <store_registers>: Remove this argument in function call, remove
4008 extra semicolon.
4009 <low_forget_process>: Call sparc64_forget_process instead of
4010 sparc_forget_process.
4011
62c808ae
RO
40122018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4013
4014 * procfs.c (_initialize_procfs): Use add_inf_child_target.
4015 (procfs_target::make_corefile_notes): Adjust to new
4016 target_read_alloc return type.
4017
1840d81a
AB
40182018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
4019 Stephen Roberts <stephen.roberts@arm.com>
4020
4021 PR gdb/22882
4022 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
4023 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
4024 Move should_notify_stop local into more inner scope.
4025
9516f85a
AB
40262018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
4027 Stephen Roberts <stephen.roberts@arm.com>
4028
4029 PR gdb/22882
4030 * infrun.c (resume_1): Add call to mark_async_event_handler.
4031
defd2172
AB
40322018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
4033
4034 * infrun.c (do_target_wait): Change old version of $pc printed.
4035
7b23e087
SM
40362018-06-11 Simon Marchi <simon.marchi@ericsson.com>
4037
4038 * dwarf2read.c (read_index_from_section): Rename to...
4039 (read_gdb_index_from_section): ... this, update all callers.
4040 (dwarf2_read_index): Rename to...
4041 (dwarf2_read_gdb_index): ... this, update all callers.
4042
69c67a0b
JDA
40432018-06-11 John David Anglin <danglin@gcc.gnu.org>
4044
4045 * gdb/hppa-linux-nat.c
4046 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
4047 hppa_linux_nat_target::fetch_registers.
4048
65d4cada
AH
40492018-06-11 Alan Hayward <alan.hayward@arm.com>
4050
4051 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
4052 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
4053 (AARCH64_DWARF_SVE_FFR): Likewise.
4054 (AARCH64_DWARF_SVE_P0): Likewise.
4055 (AARCH64_DWARF_SVE_Z0): Likewise.
4056
f868386e
AH
40572018-06-11 Alan Hayward <alan.hayward@arm.com>
4058
4059 * common/common-regcache.h (raw_compare): New function.
4060 * regcache.c (regcache::raw_compare): Likewise.
4061 * regcache.h (regcache::raw_compare): New declaration.
4062
9c861883
AH
40632018-06-11 Alan Hayward <alan.hayward@arm.com>
4064
4065 * common/common-regcache.h (reg_buffer_common): New structure.
4066 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
4067 (reg_buffer::raw_supply): Likewise.
4068 (reg_buffer::raw_supply_integer): Likewise.
4069 (reg_buffer::raw_supply_zeroed): Likewise.
4070 (reg_buffer::raw_collect): Likewise.
4071 (reg_buffer::raw_collect_integer): Likewise.
4072 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
4073 (reg_buffer::raw_supply): Likewise.
4074 (reg_buffer::raw_supply_integer): Likewise.
4075 (reg_buffer::raw_supply_zeroed): Likewise.
4076 (reg_buffer::raw_collect): Likewise.
4077 (reg_buffer::raw_collect_integer): Likewise.
4078
953edf2b
TT
40792018-06-10 Tom Tromey <tom@tromey.com>
4080
4081 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
4082 (class remote_state) <stop_reply_queue>: Now std::vector.
4083 (remote_state::~remote_state)
4084 (remote_target::stop_reply_queue_length): Update.
4085 (struct queue_iter_param, remove_child_of_pending_fork)
4086 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
4087 (check_pending_event_prevents_wildcard_vcont_callback)
4088 (remove_stop_reply_for_inferior)
4089 (remove_stop_reply_of_remote_state)
4090 (remote_notif_remove_once_on_match)
4091 (stop_reply_match_ptid_and_ws)
4092 (remote_kill_child_of_pending_fork): Remove.
4093 (remote_target::remove_new_fork_children)
4094 (remote_target::check_pending_events_prevent_wildcard_vcont)
4095 (remote_target::discard_pending_stop_replies)
4096 (remote_target::discard_pending_stop_replies_in_queue)
4097 (remote_target::remote_notif_remove_queued_reply)
4098 (remote_target::queued_stop_reply)
4099 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
4100 (remote_target::wait, remote_target::kill_new_fork_children)
4101 (remote_target::async): Update.
4102
1ddbba9d
TT
41032018-06-10 Tom Tromey <tom@tromey.com>
4104
4105 * record-full.c (record_full_arch_list_cleanups): Remove.
4106 (record_full_message): Use try/catch.
4107 (record_full_wait_cleanups): Remove.
4108 (record_full_wait_1): Use try/catch.
4109 (record_full_restore): Likewise.
4110
219605fd
TT
41112018-06-10 Tom Tromey <tom@tromey.com>
4112
4113 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
4114 declare VEC. Add constructor.
4115 <in_target_beneath>: Now bool.
4116 (record_full_breakpoints): Now a std::vector, static.
4117 (record_full_sync_record_breakpoints)
4118 (record_full_init_record_breakpoints)
4119 (record_full_target::insert_breakpoint)
4120 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
4121
71b73764
SM
41222018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
4123
4124 * dwarf2read.c (process_cu_includes): Remove struct keyword.
4125 * serial.c (serial_interface_lookup): Remove struct keyword.
4126
4360561f
TT
41272018-06-10 Tom Tromey <tom@tromey.com>
4128
4129 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
4130 method.
4131 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
4132 a method.
4133 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
4134 method.
4135 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
4136 "beneath" as a method.
4137 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
4138 Use "beneath" as a method.
4139
d14b92bf
TT
41402018-06-10 Tom Tromey <tom@tromey.com>
4141
4142 * tracefile.c (struct trace_file_writer_deleter): New.
4143 <operator()>: Rename from trace_file_writer_xfree.
4144 (trace_file_writer_up): New typedef.
4145 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
4146
835dcf92
SM
41472018-06-09 Simon Marchi <simon.marchi@ericsson.com>
4148
4149 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
4150 <m_registers, m_register_status>: Change type to
4151 std::unique_ptr.
4152 * regcache.c (reg_buffer::reg_buffer): Use new instead of
4153 XCNEWVEC.
4154
aac0d564
SM
41552018-06-09 Simon Marchi <simon.marchi@ericsson.com>
4156
4157 * common/common-regcache.h (enum register_status): Add
4158 underlying type "signed char".
4159 * regcache.h (reg_buffer) <m_register_status>: Change type to
4160 register_status *.
4161 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
4162 register_status instead of signed char.
4163 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
4164 (reg_buffer::get_register_status): Remove cast.
4165 (readable_regcache::raw_read): Remove cast.
4166 (readable_regcache::cooked_read): Remove cast.
4167
77ad7394
TT
41682018-06-09 Tom Tromey <tom@tromey.com>
4169
4170 * source.c (reverse_search_command, forward_search_command): Use
4171 scoped_fd.
4172
191cca63
TT
41732018-06-09 Tom Tromey <tom@tromey.com>
4174
4175 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
4176 (serial_ops_list): Now static, std::vector.
4177 (serial_interface_lookup, serial_add_interface): Update.
4178
c5d0225d
TT
41792018-06-09 Tom Tromey <tom@tromey.com>
4180
4181 * dwarf2read.c (process_cu_includes): Update.
4182 (process_full_comp_unit): Update.
4183 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
4184 std::vector.
4185
aeab5128
PK
41862018-06-08 Paul Koning <paul_koning@dell.com>
4187
4188 PR gdb/23252
4189
4190 * python/python.c (do_start_initialization):
4191 Avoid call to internal Python API.
4192 (init__gdb_module): New function.
4193
5045b3d7
GB
41942018-06-08 Gary Benson <gbenson@redhat.com>
4195
4196 * linux-thread-db.c (valprint.h): New include.
4197 (struct check_thread_db_info): New structure.
4198 (check_thread_db_on_load, tdb_testinfo): New static globals.
4199 (check_thread_db, check_thread_db_callback): New functions.
4200 (try_thread_db_load_1): Run integrity checks if requested.
4201 (maintenance_check_libthread_db): New function.
4202 (_initialize_thread_db): Register "maint check libthread-db"
4203 and "maint set/show check-libthread-db".
4204 * NEWS: Mention the above new commands.
4205
2f4f025f
TT
42062018-06-08 Tom Tromey <tom@tromey.com>
4207
4208 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
4209 now a method.
4210
343b0027
TT
42112018-06-08 Tom Tromey <tom@tromey.com>
4212
4213 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
4214
8dcc53b3
TT
42152018-06-08 Tom Tromey <tom@tromey.com>
4216
4217 * common/btrace-common.h (struct btrace_data): Add constructor,
4218 destructor, move assignment operator.
4219 <empty, clear, fini>: New methods.
4220 <format>: Initialize.
4221 (btrace_data_init, btrace_data_fini, btrace_data_clear)
4222 (btrace_data_empty): Don't declare.
4223 * common/btrace-common.c (btrace_data_init): Remove.
4224 (btrace_data::fini): Rename from btrace_data_fini.
4225 (btrace_data::empty): Rename from btrace_data_empty.
4226 (btrace_data::clear): Rename from btrace_data_clear. Return
4227 bool.
4228 * btrace.h (make_cleanup_btrace_data): Don't declare.
4229 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
4230 (parse_xml_btrace): Update.
4231 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
4232 (maint_btrace_clear_packet_history_cmd): Update.
4233
a1740ee1
PA
42342018-06-07 Pedro Alves <palves@redhat.com>
4235
4236 * target.h (target_ops) <beneath>: Now a method. All references
4237 updated.
4238 (class target_stack): New.
4239 * target.c (g_target_stack): New.
4240 (g_current_top_target): Delete.
4241 (current_top_target): Get the top target out of g_target_stack.
4242 (target_stack::push, target_stack::unpush): New.
4243 (push_target, unpush_target): Reimplement.
4244 (target_is_pushed): Reimplement in terms of g_target_stack.
4245 (target_ops::beneath, target_stack::find_beneath): New.
4246
d6ca69cd
PA
42472018-06-07 Pedro Alves <palves@redhat.com>
4248
4249 * target.h (find_target_beneath): Delete declaration.
4250 * target.c (find_target_beneath): Delete definition.
4251 * aix-thread.c: All callers of find_target_beneath adjusted to
4252 call target_ops::beneath instead.
4253 * bsd-uthread.c: Likewise.
4254 * linux-thread-db.c: Likewise.
4255 * ravenscar-thread.c: Likewise.
4256 * sol-thread.c: Likewise.
4257 * spu-multiarch.c: Likewise.
4258
b6a8c27b
PA
42592018-06-07 Pedro Alves <palves@redhat.com>
4260
4261 * target.h (target_ops) <beneath>: Now a method. All references
4262 updated.
4263 (target_ops) <m_beneath>: New.
4264 * target.c (target_ops::beneath): New.
4265 * corelow.c: Adjust all references to target_ops::beneath.
4266 * linux-thread-db.c: Likewise.
4267 * make-target-delegates: Likewise.
4268 * record-btrace.c: Likewise.
4269 * record-full.c: Likewise.
4270 * remote.c: Likewise.
4271 * target.c: Likewise.
4272 * target-delegates.c: Regenerate.
4273
8b88a78e
PA
42742018-06-07 Pedro Alves <palves@redhat.com>
4275
4276 * target.h (target_stack): Delete.
4277 (current_top_target): Declare function.
4278 * target.c (target_stack): Delete.
4279 (g_current_top_target): New.
4280 (current_top_target): New function.
4281 * auxv.c: Use current_top_target instead of target_stack
4282 throughout.
4283 * avr-tdep.c: Likewise.
4284 * breakpoint.c: Likewise.
4285 * corefile.c: Likewise.
4286 * elfread.c: Likewise.
4287 * eval.c: Likewise.
4288 * exceptions.c: Likewise.
4289 * frame.c: Likewise.
4290 * gdbarch-selftests.c: Likewise.
4291 * gnu-v3-abi.c: Likewise.
4292 * ia64-tdep.c: Likewise.
4293 * ia64-vms-tdep.c: Likewise.
4294 * infcall.c: Likewise.
4295 * infcmd.c: Likewise.
4296 * infrun.c: Likewise.
4297 * linespec.c: Likewise.
4298 * linux-tdep.c: Likewise.
4299 * minsyms.c: Likewise.
4300 * ppc-linux-nat.c: Likewise.
4301 * ppc-linux-tdep.c: Likewise.
4302 * procfs.c: Likewise.
4303 * regcache.c: Likewise.
4304 * remote.c: Likewise.
4305 * rs6000-tdep.c: Likewise.
4306 * s390-linux-nat.c: Likewise.
4307 * s390-tdep.c: Likewise.
4308 * solib-aix.c: Likewise.
4309 * solib-darwin.c: Likewise.
4310 * solib-dsbt.c: Likewise.
4311 * solib-spu.c: Likewise.
4312 * solib-svr4.c: Likewise.
4313 * solib-target.c: Likewise.
4314 * sparc-tdep.c: Likewise.
4315 * sparc64-tdep.c: Likewise.
4316 * spu-tdep.c: Likewise.
4317 * symfile.c: Likewise.
4318 * symtab.c: Likewise.
4319 * target-descriptions.c: Likewise.
4320 * target-memory.c: Likewise.
4321 * target.c: Likewise.
4322 * target.h: Likewise.
4323 * tracefile-tfile.c: Likewise.
4324 * tracepoint.c: Likewise.
4325 * valops.c: Likewise.
4326 * valprint.c: Likewise.
4327 * value.c: Likewise.
4328 * windows-tdep.c: Likewise.
4329 * mi/mi-main.c: Likewise.
4330
c7110220
TT
43312018-06-07 Tom Tromey <tom@tromey.com>
4332
4333 * valprint.h (build_address_symbolic): Declare.
4334 * printcmd.c (print_address_symbolic): Update.
4335 (build_address_symbolic): Change "name" and "filename" to
4336 std::string.
4337 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4338 Update.
4339 * defs.h (build_address_symbolic): Remove declaration.
4340
63bad7b6
AH
43412018-06-07 Alan Hayward <alan.hayward@arm.com>
4342
4343 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
4344 (aarch64_vnv_type): Add function.
4345 (aarch64_pseudo_register_name): Add V regs for SVE.
4346 (aarch64_pseudo_register_type): Likewise.
4347 (aarch64_pseudo_register_reggroup_p): Likewise.
4348 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
4349 (aarch64_pseudo_read_value): Add V regs for SVE.
4350 (aarch64_pseudo_write_2): Use V0 offset for SVE
4351 (aarch64_pseudo_write): Add V regs for SVE.
4352 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
4353
13e3c608
SDJ
43542018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
4355
4356 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
4357 (sve_vl_from_vq): Likewise.
4358
c61b06a1
TT
43592018-06-05 Tom Tromey <tom@tromey.com>
4360
4361 * cli/cli-cmds.c (show_version): Update.
4362 * top.c (print_gdb_version): Add "interactive" parameter.
4363 Update.
4364 * main.c (captured_main_1): Update.
4365 * top.h (print_gdb_version): Add "interactive" parameter and a
4366 comment.
4367
115f7325
DM
43682018-06-05 David Malcolm <dmalcolm@redhat.com>
4369
4370 * common/enum-flags.h: Add trailing semicolon to example in
4371 comment.
4372
eb6af809
TT
43732018-06-05 Tom Tromey <tom@tromey.com>
4374
4375 PR cli/12326:
4376 * NEWS: Add entry about pager.
4377 * utils.c (pagination_disabled_for_command): New global.
4378 (prompt_for_continue): Allow "c" response to prompt.
4379 (reinitialize_more_filter): Clear
4380 pagination_disabled_for_command.
4381 (fputs_maybe_filtered): Check pagination_disabled_for_command.
4382
54d343a2
TT
43832018-06-04 Tom Tromey <tom@tromey.com>
4384
4385 * ada-lang.h (ada_lookup_symbol_list): Update.
4386 * ada-lang.c (resolve_subexp): Update.
4387 (symbols_are_identical_enums): Change type of syms. Remove nsyms
4388 parameter.
4389 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
4390 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
4391 results parameter to std::vector.
4392 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
4393 Update.
4394 * ada-exp.y (block_lookup): Update.
4395 (select_possible_type_sym): Change type of syms. Remove nsyms
4396 parameter.
4397 (write_var_or_type, write_name_assoc): Update.
4398
178d6a63
JB
43992018-06-04 Joel Brobecker <brobecker@adacore.com>
4400
4401 * windows-nat.c (windows_nat_target::xfer_partial): Return
4402 TARGET_XFER_E_IO if we need to delegate to the target beneath
4403 but BENEATH is NULL.
4404
baf00c2d
SM
44052018-06-04 Simon Marchi <simon.marchi@ericsson.com>
4406
4407 * Makefile.in (config.status): Add configure.nat as a
4408 dependency.
4409
214b073c
TT
44102018-06-04 Tom Tromey <tom@tromey.com>
4411
4412 * cp-name-parser.y (cpname_state): Add method declarations.
4413 (HANDLE_QUAL): Update.
4414 (cpname_state::d_grab, cpname_state::fill_comp)
4415 (cpname_state::make_operator, cpname_state::make_dtor)
4416 (cpname_state::make_builtin_type, cpname_state::make_name)
4417 (cpname_state::d_qualify, cpname_state::d_int_type)
4418 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
4419 (%union): Move earlier.
4420
62b74cb8
AH
44212018-06-04 Alan Hayward <alan.hayward@arm.com>
4422
4423 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
4424
3c5cd5c3
AH
44252018-06-04 Alan Hayward <alan.hayward@arm.com>
4426
4427 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
4428 (aarch64_pseudo_write_1): Likewise.
4429 (aarch64_pseudo_read_value): Use helper.
4430 (aarch64_pseudo_write): Likewise.
4431
59f413d5
PA
44322018-06-04 Pedro Alves <palves@redhat.com>
4433
4434 * darwin-nat.c (darwin_ops): Delete.
4435 (darwin_attach_pid): Use get_native_target.
4436
1332a140
AH
44372018-06-04 Alan Hayward <alan.hayward@arm.com>
4438
4439 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
4440 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
4441
ba2d2bb2
AH
44422018-06-04 Alan Hayward <alan.hayward@arm.com>
4443
4444 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
4445 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
4446 (aarch64_gdbarch_init): Check for SVE.
4447 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
4448
44492018-06-04 Alan Hayward <alan.hayward@arm.com>
39bfb937
AH
4450
4451 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
4452 * aarch64-tdep.h (aarch64_read_description): Likewise.
4453 * arch/aarch64.c (aarch64_create_target_description): Likewise.
4454 * arch/aarch64.h (aarch64_create_target_description): Likewise.
4455 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
4456 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
4457 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
4458
41c60b4b
SM
44592018-06-02 Simon Marchi <simon.marchi@ericsson.com>
4460
4461 * value.c (value_fetch_lazy_bitfield): New.
4462 (value_fetch_lazy_memory): New.
4463 (value_fetch_lazy_register): New.
4464 (value_fetch_lazy): Factor out to smaller functions.
4465
7b640f72
TT
44662018-06-01 Tom Tromey <tom@tromey.com>
4467
4468 * cp-name-parser.y (backslashable, represented): Now const.
4469
98e69eb3
TT
44702018-06-01 Tom Tromey <tom@tromey.com>
4471
4472 * cp-name-parser.y: Include parser-defs.h.
4473 (parser_fprintf): Remove declaration.
4474
49265499
TT
44752018-06-01 Tom Tromey <tom@tromey.com>
4476
4477 * cp-name-parser.y: Use %pure-parser, %lex-param, and
4478 %parse-param.
4479 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
4480 (global_result): Remove globals.
4481 (struct cpname_state): New.
4482 (yyparse): Don't declare.
4483 (yylex, yyerror): Move declarations after %union.
4484 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
4485 (make_name): Add state parameter.
4486 Update all callers.
4487 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
4488 parameter.
4489 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
4490 Update.
4491 (yylex): Add lvalp, state parameters.
4492 (yyerror): Add state parameter.
4493 (cp_demangled_name_to_comp): Update.
4494
55b6c984
TT
44952018-06-01 Tom Tromey <tom@tromey.com>
4496
4497 * cp-name-parser.y (parser_fprintf): Declare.
4498 (GDB_YY_REMAP_PREFIX): Define.
4499 Include yy-remap.h. Don't redefine yy* identifiers.
4500
3513a6bb
TT
45012018-06-01 Tom Tromey <tom@tromey.com>
4502
4503 * python/py-type.c (typy_legacy_template_argument): Update.
4504 * cp-support.h (cp_demangled_name_to_comp): Update.
4505 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
4506 parameter to be a "std::string *".
4507 (main): Update.
4508
e9cb46ab
L
45092018-06-01 H.J. Lu <hongjiu.lu@intel.com>
4510
4511 * ada-lex.l: Include "diagnostics.h" instead of
4512 "common/diagnostics.h".
4513 * unittests/environ-selftests.c: Likewise.
4514 * common/diagnostics.h: Moved to ../include.
4515
8e817061
JB
45162018-06-01 Joel Brobecker <brobecker@adacore.com>
4517
4518 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
4519 to language_mode_manual while calling breakpoint_re_set_one.
4520
a737d952
TT
45212018-06-01 Tom Tromey <tom@tromey.com>
4522
4523 * valops.c (value_cast_structs, destructor_name_p): Update.
4524 * symtab.c (gdb_mangle_name): Update.
4525 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
4526 Update.
4527 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
4528 (pascal_object_print_value_fields, pascal_object_print_value):
4529 Update.
4530 * p-typeprint.c (pascal_type_print_derivation_info): Update.
4531 * linespec.c (find_methods): Update.
4532 * gdbtypes.h (type_name_no_tag): Remove.
4533 (type_name_or_error): Rename from type_name_no_tag_or_error.
4534 * gdbtypes.c (type_name_no_tag): Remove.
4535 (type_name_or_error): Rename from type_name_no_tag_or_error.
4536 (lookup_struct_elt_type, check_typedef): Update.
4537 * expprint.c (print_subexp_standard): Update.
4538 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
4539 * d-namespace.c (d_lookup_nested_symbol): Update.
4540 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
4541 (cp_print_class_member): Update.
4542 * cp-namespace.c (cp_lookup_nested_symbol): Update.
4543 * completer.c (add_struct_fields): Update.
4544 * c-typeprint.c (cp_type_print_derivation_info)
4545 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
4546 Update.
4547 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
4548 (ada_prefer_type, ada_is_exception_sym): Update.
4549
e86ca25f
TT
45502018-06-01 Tom Tromey <tom@tromey.com>
4551
4552 * valops.c (enum_constant_from_type, value_namespace_elt)
4553 (value_maybe_namespace_elt): Update.
4554 * valarith.c (find_size_for_pointer_math): Update.
4555 * target-descriptions.c (make_gdb_type): Update.
4556 * symmisc.c (print_symbol): Update.
4557 * stabsread.c (define_symbol, read_type)
4558 (complain_about_struct_wipeout, add_undefined_type)
4559 (cleanup_undefined_types_1): Update.
4560 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
4561 (rust_range_type_p, val_print_struct, rust_print_struct_def)
4562 (rust_internal_print_type, rust_composite_type)
4563 (rust_evaluate_funcall, rust_evaluate_subexp)
4564 (rust_inclusive_range_type_p): Update.
4565 * python/py-type.c (typy_get_tag): Update.
4566 * p-typeprint.c (pascal_type_print_base): Update.
4567 * mdebugread.c (parse_symbol, parse_type): Update.
4568 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
4569 Update.
4570 * guile/scm-type.c (gdbscm_type_tag): Update.
4571 * go-lang.c (sixg_string_p): Update.
4572 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
4573 Update.
4574 * gdbtypes.h (struct main_type) <tag_name>: Remove.
4575 (TYPE_TAG_NAME): Remove.
4576 * gdbtypes.c (type_name_no_tag): Simplify.
4577 (check_typedef, check_types_equal, recursive_dump_type)
4578 (copy_type_recursive, arch_composite_type): Update.
4579 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
4580 in summary mode when needed.
4581 * eval.c (evaluate_funcall): Update.
4582 * dwarf2read.c (fixup_go_packaging, read_structure_type)
4583 (process_structure_scope, read_enumeration_type)
4584 (read_namespace_type, read_module_type, determine_prefix): Update.
4585 * cp-support.c (inspect_type): Update.
4586 * coffread.c (process_coff_symbol, decode_base_type): Update.
4587 * c-varobj.c (c_is_path_expr_parent): Update.
4588 * c-typeprint.c (c_type_print_base_struct_union): Update.
4589 (c_type_print_base_1): Update. Print struct/class/union/enum in
4590 summary when using C language.
4591 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
4592 (gen_maybe_namespace_elt): Update.
4593 * ada-lang.c (ada_type_name): Simplify.
4594 (empty_record, ada_template_to_fixed_record_type_1)
4595 (template_to_static_fixed_type)
4596 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
4597
c1ec8cea
TT
45982018-06-01 Tom Tromey <tom@tromey.com>
4599
4600 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
4601 c_print_type.
4602 * c-typeprint.c (c_print_type_1): Add "language" parameter.
4603 (c_print_type): Update.
4604 (c_print_type): New overload.
4605 (c_type_print_varspec_prefix, c_type_print_args)
4606 (c_type_print_varspec_suffix, c_print_type_no_offsets)
4607 (c_type_print_base_struct_union, c_type_print_base_1)
4608 (cp_type_print_method_args): Add "language" parameter.
4609 (c_type_print_base): Update.
4610 * c-lang.h (c_print_type): Add new overload.
4611
bc8453a7
TT
46122018-06-01 Tom Tromey <tom@tromey.com>
4613
4614 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
4615 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
4616
739e8682
AH
46172018-06-01 Alan Hayward <alan.hayward@arm.com>
4618
4619 * aarch64-tdep.c (aarch64_sve_register_names): New const
4620 var.
4621 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
4622 (AARCH64_SVE_Z_REGS_NUM): New define.
4623 (AARCH64_SVE_P_REGS_NUM): Likewise.
4624 (AARCH64_SVE_NUM_REGS): Likewise.
4625
8a60efe7
UB
46262018-05-31 Uros Bizjak <ubizjak@gmail.com>
4627
4628 * nat/linux-ptrace.h [__alpha__]
4629 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
4630 definitions.
4631
4b2dfa9d
MR
46322018-05-31 Maciej W. Rozycki <macro@mips.com>
4633
4634 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
4635 the endianness selected.
4636 * NEWS: Document `set endian auto' mode operation update.
4637
122394f1
AH
46382018-05-31 Alan Hayward <alan.hayward@arm.com>
4639
4640 * Makefile.in: Add new header.
4641 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
4642 (sve_vl_from_vg): Likewise.
4643 (sve_vq_from_vl): Likewise.
4644 (sve_vl_from_vq): Likewise.
4645 (sve_vq_from_vg): Likewise.
4646 (sve_vg_from_vq): Likewise.
4647 * configure.nat: Add new c file.
4648 * nat/aarch64-sve-linux-ptrace.c: New file.
4649 * nat/aarch64-sve-linux-ptrace.h: New file.
4650
95228a0d
AH
46512018-05-31 Alan Hayward <alan.hayward@arm.com>
4652
4653 * aarch64-linux-nat.c (aarch64_linux_read_description):
4654 Add parmeter zero.
4655 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
4656 Likewise.
4657 * aarch64-tdep.c (tdesc_aarch64_list): Add.
4658 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
4659 (aarch64_gdbarch_init): Add parmeter zero.
4660 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
4661 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
4662 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
4663 parmeter.
4664 * doc/gdb.texinfo: Describe SVE feature
4665 * features/aarch64-sve.c: New file.
4666
5969f0db
OJ
46672018-05-31 Omair Javaid <omair.javaid@linaro.org>
4668
4669 PR gdb/23210
4670 * gdbarch.sh (significant_addr_bit): Default to zero when
4671 not set by target architecture.
4672 * gdbarch.c: Re-generated.
4673 * utils.c (address_significant): Update.
4674
61367c61
JB
46752018-05-30 Joel Brobecker <brobecker@adacore.com>
4676
4677 * stack.c (func_command): Remove trailing newline in call to error.
4678
34a79281
SM
46792018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4680
4681 * regcache.h (regcache_raw_collect): Remove, update callers to
4682 use regcache::raw_collect.
4683 * regcache.c (regcache_raw_collect): Remove.
4684
73e1c03f
SM
46852018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4686
4687 * regcache.h (regcache_raw_supply): Remove, update callers to
4688 use detached_regcache::raw_supply.
4689 * regcache.c (regcache_raw_supply): Remove.
4690
e4c4a59b
SM
46912018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4692
4693 * regcache.h (regcache_cooked_write_part): Remove, update
4694 callers to use regcache::cooked_write_part.
4695 * regcache.c (regcache_cooked_write_part): Remove.
4696
73bb0000
SM
46972018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4698
4699 * regcache.h (regcache_cooked_read_part): Remove, update callers
4700 to use readable_regcache::cooked_read_part.
4701 * regcache.c (regcache_cooked_read_part): Remove.
4702
46a45e9d
SM
47032018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4704
4705 * regcache.h (regcache_cooked_read_value): Remove, update
4706 callers to use readable_regcache::cooked_read_value.
4707 * regcache.c (regcache_cooked_read_value): Remove.
4708
b66f5587
SM
47092018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4710
4711 * regcache.h (regcache_cooked_write): Remove, update callers to
4712 use regcache::cooked_write.
4713 * regcache.c (regcache_cooked_write): Remove.
4714
6aa7d724
SM
47152018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4716
4717 * regcache.h (regcache_invalidate): Remove, update callers to
4718 use detached_regcache::invalidate instead.
4719 * regcache.c (regcache_invalidate): Remove.
4720
4f0420fd
SM
47212018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4722
4723 * regcache.h (regcache_raw_write_part): Remove, update callers
4724 to use regcache::raw_write_part instead.
4725 * regcache.c (regcache_raw_write_part): Remove.
4726
502fe83e
SM
47272018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4728
4729 * regcache.h (regcache_raw_read_part): Remove, update callers to
4730 use readable_regcache::raw_read_part instead.
4731 * regcache.c (regcache_raw_read_part): Remove.
4732
dca08e1f
SM
47332018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4734
4735 * regcache.h (regcache_cooked_read): Remove, update callers to
4736 use readable_regcache::cooked_read instead.
4737 * regcache.c (regcache_cooked_read): Remove.
4738
10eaee5f
SM
47392018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4740
4741 * regcache.h (regcache_raw_write): Remove, update callers to use
4742 regcache::raw_write instead.
4743 * regcache.c (regcache_raw_write): Remove.
4744
0b883586
SM
47452018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4746
4747 * regcache.h (regcache_raw_read): Remove, update callers to use
4748 readable_regcache::raw_read instead.
4749 * regcache.c (regcache_raw_read): Remove.
4750
0b47d985
SM
47512018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4752
4753 * regcache.h (regcache_raw_update): Remove, update callers to
4754 use readable_regcache::raw_update instead.
4755 * regcache.c (regcache_raw_update): Remove.
4756
0ec9f114
SM
47572018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4758
4759 * regcache.h (regcache_register_status): Remove, update callers
4760 to use reg_buffer::get_register_status directly instead.
4761 * regcache.c (regcache_register_status): Remove.
4762
222312d3
SM
47632018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4764
4765 * regcache.h (regcache_get_ptid): Remove, update all callers to
4766 call regcache::ptid instead.
4767 * regcache.c (regcache_get_ptid): Remove.
4768
fdbe37e3
SM
47692018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4770
4771 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
4772
f7c6f423
PA
47732018-05-30 Pedro Alves <palves@redhat.com>
4774
4775 * common/common-exceptions.h (exception_rethrow): Use
4776 ATTRIBUTE_NORETURN.
4777
52941706
SM
47782018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
4779
4780 * breakpoint.c (print_solib_event, check_status_catch_solib):
4781 Remove struct keyword in range-based for loops.
4782 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
4783 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
4784 Likewise.
4785 * linespec.c (find_superclass_methods, search_minsyms_for_name):
4786 Likewise.
4787 * symfile.c (addr_info_make_relative): Likewise.
4788 * thread.c (value_in_thread_stack_temporaries): Likewise.
4789
bf2977b5
WP
47902018-06-12 Weimin Pan <weimin.pan@oracle.com>
4791
4792 PR gdb/16841
4793 * valops.c (value_struct_elt_for_reference): Call check_typedef on
4794 aggregate type to get its real type before accessing it.
4795
64cc34d8
WP
47962018-05-29 Weimin Pan <weimin.pan@oracle.com>
4797
4798 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
4799 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
4800 * coff-pe-read.c (add_pe_forwarded_sym): Replace
4801 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
4802 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
4803 * jit.c (jit_breakpoint_re_set_internal): Likewise.
4804 * printcmd.c (info_address_command): Likewise.
4805
e7ec8713
TT
48062018-05-29 Tom Tromey <tom@tromey.com>
4807
4808 * windows-nat.c (handle_exception): Update fall-through comment.
4809
bcb430e4
TT
48102018-05-29 Tom Tromey <tom@tromey.com>
4811
4812 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
4813 (struct program_space) <added_solibs>: Now a std::vector.
4814 * breakpoint.c (print_solib_event): Update.
4815 (check_status_catch_solib): Update.
4816 * progspace.c (clear_program_space_solib_cache): Update.
4817 * solib.c (update_solib_list): Update.
4818
894882e3
TT
48192018-05-29 Tom Tromey <tom@tromey.com>
4820
4821 * python/py-type.c (typy_richcompare): Update.
4822 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
4823 * gdbtypes.h (types_deeply_equal): Return bool.
4824 (types_equal): Likewise.
4825 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
4826 declare VEC.
4827 (check_types_equal): Change worklist to std::vector. Return
4828 bool.
4829 (struct type_equality_entry): Add constructor.
4830 (compare_maybe_null_strings): Return bool.
4831 (check_types_worklist): Return bool. Change worklist to
4832 std::vector.
4833 (types_deeply_equal): Use std::vector.
4834 (types_equal): Return bool.
4835 (compare_maybe_null_strings): Simplify.
4836
10b2ded4
TT
48372018-05-29 Tom Tromey <tom@tromey.com>
4838
4839 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
4840
4f7deebe
TT
48412018-05-29 Tom Tromey <tom@tromey.com>
4842
4843 * objc-lang.h: Don't include cp-support.h.
4844 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
4845 declare VEC.
4846
b8283aea
TT
48472018-05-27 Tom Tromey <tom@tromey.com>
4848
4849 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
4850
41a883c8
TT
48512018-05-25 Tom Tromey <tom@tromey.com>
4852
4853 * value.c (value::location): Initialize.
4854
bf259e25
TT
48552018-05-25 Tom Tromey <tom@tromey.com>
4856
4857 * dbxread.c (init_bincl_list): Remove.
4858 (bincl_list): Now a std::vector.
4859 (bincls_allocated, next_bincl): Remove.
4860 (free_bincl_list, do_free_bincl_list_cleanup)
4861 (make_cleanup_free_bincl_list): Remove.
4862 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
4863 unique_xmalloc_ptr.
4864 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
4865 (struct header_file_location): Add constructor.
4866 (add_bincl_to_list): Remove.
4867
d525a99b
TT
48682018-05-25 Tom Tromey <tom@tromey.com>
4869
4870 * tui/tui.c (tui_enable): Update.
4871 * mi/mi-interp.c (mi_interp::init): Update.
4872 * interps.h (class interp) <name>: New method.
4873 <m_name>: Rename from name.
4874 (~scoped_restore_interp): Update.
4875 * interps.c (interp::interp): Update.
4876 (interp_add, interp_set, interp_lookup_existing)
4877 (current_interp_named_p): Update.
4878
da505cff
TT
48792018-05-25 Tom Tromey <tom@tromey.com>
4880
4881 * interps.c (interp_name): Remove.
4882 * mi/mi-interp.c (mi_interp::init): Update.
4883 * interps.h (interp_name): Remove.
4884 (~scoped_restore_interp): Update.
4885 * tui/tui.c (tui_enable): Update.
4886
29f94340
TT
48872018-05-25 Tom Tromey <tom@tromey.com>
4888
4889 * utils.c (fputs_maybe_filtered): Update.
4890 * linespec.c (decode_line_full): Update.
4891 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
4892 (mi_print_breakpoint_for_event, mi_solib_loaded)
4893 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
4894 (mi_user_selected_context_changed): Update.
4895 * mi/mi-main.c (mi_execute_command): Update.
4896 * cli/cli-script.c (execute_control_command): Update.
4897 * python/python.c (execute_gdb_command): Update.
4898 * solib.c (info_sharedlibrary_command): Update.
4899 * interps.c (interp_ui_out): Remove.
4900 * interps.h (interp_ui_out): Remove.
4901
716b8bc5
TT
49022018-05-25 Tom Tromey <tom@tromey.com>
4903
4904 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
4905 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
4906 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
4907
753ff9bd
TT
49082018-05-25 Tom Tromey <tom@tromey.com>
4909
4910 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
4911 * interps.c (interp_exec): Use scoped_restore.
4912
5ca3b260
TT
49132018-05-25 Tom Tromey <tom@tromey.com>
4914
4915 * remote.c (remote_target::remote_file_get): Use
4916 gdb::byte_vector.
4917 (remote_target::remote_file_put): Likewise.
4918
3173aa2f
TT
49192018-05-25 Tom Tromey <tom@tromey.com>
4920
4921 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
4922 a std::string.
4923 (get_pe_section_index, add_pe_exported_sym): Update.
4924 (read_pe_exported_syms): Use gdb::def_vector.
4925
09a5e1b5
TT
49262018-05-25 Tom Tromey <tom@tromey.com>
4927
4928 * frame.c (remove_prev_frame): Remove.
4929 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
4930
d8dab6c3
MR
49312018-05-25 Maciej W. Rozycki <macro@mips.com>
4932
4933 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
4934 Remove prototypes.
4935 * mips-linux-nat.c (supply_fpregset): Always call
4936 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
4937 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
4938 `mips_fill_fpregset'.
4939 * mips-linux-tdep.c (mips_supply_fpregset)
4940 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
4941 (mips_fill_fpregset_wrapper): Remove functions.
4942 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
4943 (mips_linux_fpregset): Remove variable.
4944 (mips_linux_iterate_over_regset_sections): Use
4945 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
4946 (mips_linux_o32_sigframe_init): Remove comment.
4947
3c69da40
PA
49482018-05-25 Pedro Alves <palves@redhat.com>
4949
4950 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
4951 (struct readahead_cache, struct packet_reg, struct
4952 remote_arch_state, class remote_state): Move higher up in the
4953 file.
4954 (remote_target::m_remote_state): Now an object instead of a pointer.
4955 (remote_target::get_remote_state): Adjust.
4956
39f0c204
AB
49572018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
4958
4959 * stack.c (select_and_print_frame): Delete.
4960 (struct function_bounds): Move struct within function.
4961 (func_command): Most content moved into new function
4962 find_frame_for_function, use new function, print result, add
4963 function comment.
4964 (find_frame_for_function): New function, now returns a result.
4965
d392224a
PW
49662018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4967
4968 * stack.c (iterate_over_block_arg_vars): Fix comment.
4969 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
4970
45f25d6c
AB
49712018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
4972
4973 PR gdb/23203
4974 * frame.c
4975 (scoped_restore_selected_frame::scoped_restore_selected_frame):
4976 Define.
4977 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
4978 Define.
4979 * frame.h (class scoped_restore_selected_frame): New class.
4980 * stack.c (print_frame_local_vars): Remove catching and rethrowing
4981 of any exception, use scoped_restore_selected_frame to restore the
4982 frame instead.
4983
da05d921
PA
49842018-05-24 Pedro Alves <palves@redhat.com>
4985
4986 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
4987 override.
4988
a8be540e
TT
49892018-05-23 Tom Tromey <tom@tromey.com>
4990
4991 * complaints.c (struct complaints): Remove.
4992 (symfile_complaint_book): Remove.
4993 (series): New global.
4994 (complaint_internal): Update.
4995 (clear_complaints): Update.
4996
ff1cf532
TT
49972018-05-23 Tom Tromey <tom@tromey.com>
4998
4999 * complaints.c (counters): New global.
5000 (struct complain): Remove.
5001 (struct complaints) <root>: Remove.
5002 (complaint_sentinel): Remove.
5003 (symfile_complaint_book): Update.
5004 (find_complaint) Remove.
5005 (complaint_internal, clear_complaints): Update.
5006
7ff88174
TT
50072018-05-23 Tom Tromey <tom@tromey.com>
5008
5009 * complaints.c (struct complain) <file, line>: Remove.
5010 (find_complaint): Remove file, line parameters.
5011 (complaint_internal): Update.
5012
de54e1a5
TT
50132018-05-23 Tom Tromey <tom@tromey.com>
5014
5015 * complaints.c (vcomplaint): Remove.
5016 (complaint_internal) Merge in contents of vcomplaint.
5017
2ac237e5
TT
50182018-05-23 Tom Tromey <tom@tromey.com>
5019
5020 * complaints.c (struct complaints) <explanation>: Remove.
5021 (symfile_explanations): Remove.
5022 (symfile_complaint_book): Update.
5023 (vcomplaint): Update.
5024 (struct explanation): Remove.
5025
b98664d3
TT
50262018-05-23 Tom Tromey <tom@tromey.com>
5027
5028 * complaints.c (symfile_complaints): Remove.
5029 (complaint_internal): Remove "complaints" parameter.
5030 (clear_complaints, vcomplaint): Remove "c" parameter.
5031 (get_complaints): Remove.
5032 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
5033 (dwarf2_debug_line_missing_file_complaint)
5034 (dwarf2_debug_line_missing_end_sequence_complaint)
5035 (dwarf2_complex_location_expr_complaint)
5036 (dwarf2_const_value_length_mismatch_complaint)
5037 (dwarf2_section_buffer_overflow_complaint)
5038 (dwarf2_macro_malformed_definition_complaint)
5039 (dwarf2_invalid_attrib_class_complaint)
5040 (create_addrmap_from_index, dw2_symtab_iter_next)
5041 (dw2_expand_marked_cus)
5042 (dw2_debug_names_iterator::find_vec_in_debug_names)
5043 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
5044 (create_debug_type_hash_table, init_cutu_and_read_dies)
5045 (partial_die_parent_scope, add_partial_enumeration)
5046 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
5047 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
5048 (read_import_statement, read_file_scope, create_dwo_cu_reader)
5049 (create_cus_hash_table, create_dwp_hash_table)
5050 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
5051 (dwarf2_rnglists_process, dwarf2_ranges_process)
5052 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
5053 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
5054 (handle_struct_member_die, process_structure_scope)
5055 (read_array_type, read_common_block, read_module_type)
5056 (read_tag_pointer_type, read_typedef, read_base_type)
5057 (read_subrange_type, load_partial_dies, partial_die_info::read)
5058 (partial_die_info::read, partial_die_info::read)
5059 (partial_die_info::read, read_checked_initial_length_and_offset)
5060 (dwarf2_string_attr, read_formatted_entries)
5061 (dwarf_decode_line_header)
5062 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
5063 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
5064 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
5065 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
5066 (get_signatured_type, get_DW_AT_signature_type)
5067 (decode_locdesc, file_file_name, consume_improper_spaces)
5068 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
5069 (dwarf_decode_macro_bytes, dwarf_decode_macros)
5070 (dwarf2_symbol_mark_computed, set_die_type)
5071 (read_attribute_value): Update.
5072 * stap-probe.c (handle_stap_probe, get_stap_base_address):
5073 Update.
5074 * dbxread.c (unknown_symtype_complaint)
5075 (lbrac_mismatch_complaint, repeated_header_complaint)
5076 (set_namestring, function_outside_compilation_unit_complaint)
5077 (read_dbx_symtab, process_one_symbol): Update.
5078 * gdbtypes.c (stub_noname_complaint): Update.
5079 * windows-nat.c (handle_unload_dll): Update.
5080 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
5081 (decode_base_type): Update.
5082 * xcoffread.c (bf_notfound_complaint, ef_complaint)
5083 (eb_complaint, record_include_begin, record_include_end)
5084 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
5085 (process_xcoff_symbol, read_symbol)
5086 (function_outside_compilation_unit_complaint)
5087 (scan_xcoff_symtab): Update.
5088 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
5089 * buildsym.c (finish_block_internal, make_blockvector)
5090 (end_symtab_get_static_block, augment_type_symtab): Update.
5091 * dtrace-probe.c (dtrace_process_dof)
5092 (dtrace_static_probe_ops::get_probes): Update.
5093 * complaints.h (struct complaint): Don't declare.
5094 (symfile_complaints): Remove.
5095 (complaint_internal): Remove "complaints" parameter.
5096 (complaint): Likewise.
5097 (clear_complaints): Likewise.
5098 * symfile.c (syms_from_objfile_1, finish_new_objfile)
5099 (reread_symbols): Update.
5100 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
5101 (dwarf2_frame_cache, decode_frame_entry): Update.
5102 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
5103 * objc-lang.c (lookup_objc_class, lookup_child_selector)
5104 (info_selectors_command): Update.
5105 * macrotab.c (macro_include, check_for_redefinition)
5106 (macro_undef): Update.
5107 * objfiles.c (filter_overlapping_sections): Update.
5108 * stabsread.c (invalid_cpp_abbrev_complaint)
5109 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
5110 (define_symbol, error_type, read_type, rs6000_builtin_type)
5111 (stabs_method_name_from_physname, read_member_functions)
5112 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
5113 (attach_fields_to_type, complain_about_struct_wipeout)
5114 (read_range_type, read_args, common_block_start)
5115 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
5116 Update.
5117 * mdebugread.c (index_complaint, unknown_ext_complaint)
5118 (basic_type_complaint, bad_tag_guess_complaint)
5119 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
5120 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
5121 (parse_procedure, parse_lines)
5122 (function_outside_compilation_unit_complaint)
5123 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
5124 (bad_tag_guess_complaint, reg_value_complaint): Update.
5125 * cp-support.c (demangled_name_complaint): Update.
5126 * macroscope.c (sal_macro_scope): Update.
5127 * dwarf-index-write.c (class debug_names): Update.
5128
4e9668d0
TT
51292018-05-23 Tom Tromey <tom@tromey.com>
5130
5131 * complaints.c (clear_complaints): Remove "noisy" parameter.
5132 * complaints.h (clear_complaints): Update.
5133 * symfile.c (syms_from_objfile_1, finish_new_objfile)
5134 (reread_symbols): Update.
5135
43ba33c7
TT
51362018-05-23 Tom Tromey <tom@tromey.com>
5137
5138 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
5139 SUBSEQUENT_MESSAGE.
5140 (vcomplaint, clear_complaints): Update.
5141 (symfile_explanations): Remove some messages.
5142
2b9496b2
TT
51432018-05-23 Tom Tromey <tom@tromey.com>
5144
5145 * complaints.c (internal_complaint): Remove.
5146 * complaints.h (internal_complaint): Remove.
5147
35f1fea3
MR
51482018-05-22 Maciej W. Rozycki <macro@mips.com>
5149
5150 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
5151
6b8edb51
PA
51522018-05-22 Pedro Alves <palves@redhat.com>
5153
5154 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
5155 (remote_fileio_badfd, remote_fileio_return_errno)
5156 (remote_fileio_return_success, remote_fileio_func_open)
5157 (remote_fileio_func_open, remote_fileio_func_close)
5158 (remote_fileio_func_read, remote_fileio_func_write)
5159 (remote_fileio_func_lseek, remote_fileio_func_rename)
5160 (remote_fileio_func_unlink, remote_fileio_func_stat)
5161 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
5162 (remote_fileio_func_isatty, remote_fileio_func_system): Add
5163 remote_target parameter.
5164 (remote_fio_func_map) <func>: Add remote_target parameter.
5165 (do_remote_fileio_request, remote_fileio_request):
5166 * remote-fileio.h (remote_fileio_request):
5167 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
5168 remote_target parameter.
5169 (remote_notif_process, handle_notification): Adjust to pass down
5170 the remote.
5171 (remote_notif_state_allocate): Add remote_target parameter. Save
5172 it.
5173 * remote-notif.h (struct remote_target): Forward declare.
5174 (struct notif_client) <parse, ack, can_get_pending_events>: Add
5175 remote_target parameter.
5176 (struct remote_notif_state) <remote>: New field.
5177 (remote_notif_ack, remote_notif_parse): Add remote_target
5178 parameter.
5179 (remote_notif_state_allocate, remote_notif_state_allocate): Add
5180 remote_target parameter.
5181 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
5182 (threads_listing_context, rmt_thread_action, protocol_feature)
5183 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
5184 (packet_result, struct threads_listing_context, remote_state):
5185 Move definitions and declarations higher up.
5186 (remote_target) <~remote_target>: Declare.
5187 (remote_download_command_source, remote_file_put, remote_file_get)
5188 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
5189 (remote_hostio_pread_vFile, remote_hostio_send_command)
5190 (remote_hostio_set_filesystem, remote_hostio_open)
5191 (remote_hostio_close, remote_hostio_unlink, remote_state)
5192 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
5193 (get_memory_write_packet_size, get_memory_read_packet_size)
5194 (append_pending_thread_resumptions, remote_detach_1)
5195 (append_resumption, remote_resume_with_vcont)
5196 (add_current_inferior_and_thread, wait_ns, wait_as)
5197 (process_stop_reply, remote_notice_new_inferior)
5198 (process_initial_stop_replies, remote_add_thread)
5199 (btrace_sync_conf, remote_btrace_maybe_reopen)
5200 (remove_new_fork_children, kill_new_fork_children)
5201 (discard_pending_stop_replies, stop_reply_queue_length)
5202 (check_pending_events_prevent_wildcard_vcont)
5203 (discard_pending_stop_replies_in_queue, stop_reply)
5204 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
5205 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
5206 (remote_interrupt_as, remote_interrupt_ns)
5207 (remote_get_noisy_reply, remote_query_attached)
5208 (remote_add_inferior, remote_current_thread, get_current_thread)
5209 (set_thread, set_general_thread, set_continue_thread)
5210 (set_general_process, write_ptid)
5211 (remote_unpack_thread_info_response, remote_get_threadinfo)
5212 (parse_threadlist_response, remote_get_threadlist)
5213 (remote_threadlist_iterator, remote_get_threads_with_ql)
5214 (remote_get_threads_with_qxfer)
5215 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
5216 (get_offsets, remote_check_symbols, remote_supported_packet)
5217 (remote_query_supported, remote_packet_size)
5218 (remote_serial_quit_handler, remote_detach_pid)
5219 (remote_vcont_probe, remote_resume_with_hc)
5220 (send_interrupt_sequence, interrupt_query)
5221 (remote_notif_get_pending_events, fetch_register_using_p)
5222 (send_g_packet, process_g_packet, fetch_registers_using_g)
5223 (store_register_using_P, store_registers_using_G)
5224 (set_remote_traceframe, check_binary_download)
5225 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
5226 (remote_xfer_live_readonly_partial, remote_read_bytes)
5227 (remote_send_printf, remote_flash_write, readchar)
5228 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
5229 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
5230 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
5231 (extended_remote_disable_randomization, extended_remote_run)
5232 (send_environment_packet, extended_remote_environment_support)
5233 (extended_remote_set_inferior_cwd, remote_write_qxfer)
5234 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
5235 (packet_command): Now methods of ...
5236 (remote_target): ... this class.
5237 (m_remote_state) <remote_target>: New field.
5238 (struct remote_state) <stop_reply_queue,
5239 remote_async_inferior_event_token, wait_forever_enabled_p>: New
5240 fields.
5241 (remote_state::remote_state): Allocate stop_reply_queue.
5242 (remote_state): Delete global.
5243 (get_remote_state_raw): Delete.
5244 (remote_target::get_remote_state): Allocate m_remote_state on
5245 demand.
5246 (get_current_remote_target): New.
5247 (remote_ops, extended_remote_ops): Delete.
5248 (wait_forever_enabled_p, remote_async_inferior_event_token):
5249 Delete, moved to struct remote_state.
5250 (remote_target::close): Delete self. Destruction bits split to
5251 ...
5252 (remote_target::~remote_target): ... this.
5253 (show_memory_packet_size): Adjust to use
5254 get_current_remote_target.
5255 (struct protocol_feature) <func>: Add remote_target parameter.
5256 All callers adjusted.
5257 (curr_quit_handler_target): New.
5258 (remote_serial_quit_handler): Reimplement.
5259 (remote_target::open_1): Adjust to use get_current_remote_target.
5260 Heap-allocate remote_target/extended_remote_target instances.
5261 (vcont_builder::vcont_builder): Add remote_target parameter, and
5262 save it in m_remote. All callers adjusted.
5263 (vcont_builder::m_remote): New field.
5264 (vcont_builder::restart, vcont_builder::flush)
5265 (vcont_builder::push_action): Use it.
5266 (remote_target::commit_resume): Use it.
5267 (struct queue_iter_param) <remote>: New field.
5268 (remote_target::remove_new_fork_children): Fill in 'remote' field.
5269 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
5270 (check_pending_event_prevents_wildcard_vcont_callback)
5271 (remote_target::check_pending_events_prevent_wildcard_vcont)
5272 (remote_target::discard_pending_stop_replies)
5273 (remote_target::discard_pending_stop_replies_in_queue)
5274 (remote_target::remote_notif_remove_queued_reply): Fill in
5275 'remote' field.
5276 (remote_notif_get_pending_events): New.
5277 (remote_target::readchar, remote_target::remote_serial_write):
5278 Save/restore curr_quit_handler_target.
5279 (putpkt): New.
5280 (kill_new_fork_children): Fill in 'remote' field.
5281 (packet_command): Use get_current_remote_target, defer to
5282 remote_target method of same name.
5283 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
5284 parameter, and save it in m_remote. All callers adjusted.
5285 (scoped_remote_fd::release): Use m_remote.
5286 (scoped_remote_fd::m_remote): New field.
5287 (remote_file_put, remote_file_get, remote_file_delete): Use
5288 get_current_remote_target, defer to remote_target method of same
5289 name.
5290 (remote_btrace_reset): Add remote_state paremeter. Update all
5291 callers.
5292 (remote_async_inferior_event_handler). Pass down 'data'.
5293 (remote_new_objfile): Use get_current_remote_target.
5294 (remote_target::vcont_r_supported): New.
5295 (set_range_stepping): Use get_current_remote_target and
5296 remote_target::vcont_r_supported.
5297 (_initialize_remote): Don't allocate 'remote_state' and
5298 'stop_reply_queue' globals.
5299 * remote.h (struct remote_target): Forward declare.
5300 (getpkt, putpkt, remote_notif_get_pending_events): Add
5301 'remote_target' parameter.
5302
f5db4863
PA
53032018-05-22 Pedro Alves <palves@redhat.com>
5304
5305 * remote.c (vcont_builder): Now a class. Make all data members
5306 private.
5307 (vcont_builder) <vcont_builder, restart, flush, push_action>:
5308 Declare methods.
5309 (vcont_builder_restart): Rename to ...
5310 (vcont_builder::restart): ... this.
5311 (vcont_builder_flush): Rename to ...
5312 (vcont_builder::flush): ... this.
5313 (vcont_builder_push_action): Rename to ...
5314 (vcont_builder::push_action): ... this.
5315 (remote_target::commit_resume): Adjust.
5316
cc0be08f
PA
53172018-05-22 Pedro Alves <palves@redhat.com>
5318
5319 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
5320 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
5321 (get_fixed_memory_packet_size): New.
5322 (get_memory_packet_size): Use it.
5323 (set_memory_packet_size): Don't override the config size with
5324 DEFAULT_MAX_MEMORY_PACKET_SIZE.
5325 (show_memory_packet_size): Use get_fixed_memory_packet_size.
5326 Don't refer to get_memory_packet_size if not connected to a remote
5327 target. Show "(default)" if configured size is 0.
5328
9607784a
PA
53292018-05-22 Pedro Alves <palves@redhat.com>
5330
5331 * remote.c (remote_target::mourn_inferior): Move
5332 discard_pending_stop_replies call here from ...
5333 (_initialize_remote): ... here.
5334
0e9a6b2f
PA
53352018-05-22 Pedro Alves <palves@redhat.com>
5336
5337 * remote.c (compare_section_command): Remove set_general_process
5338 call.
5339
43c3a0e4
PA
53402018-05-22 Pedro Alves <palves@redhat.com>
5341
5342 * remote.c (struct packet_reg, struct remote_arch_state):
5343 Move higher up in the file.
5344 (remote_state) <m_arch_states>: Store remote_arch_state values
5345 instead of remote_arch_state pointers.
5346 (remote_state::get_remote_arch_state): Adjust.
5347
9d6eea31
PA
53482018-05-22 Pedro Alves <palves@redhat.com>
5349
5350 * remote.c: Include <unordered_map>.
5351 (remote_state): Now a class.
5352 (remote_state) <get_remote_arch_state>: Declare method.
5353 <get_remote_arch_state>: New field.
5354 (remote_arch_state) <remote_arch_state>: Declare ctor.
5355 <regs>: Now a unique_ptr.
5356 (remote_gdbarch_data_handle): Delete.
5357 (get_remote_arch_state): Delete.
5358 (remote_state::get_remote_arch_state): New.
5359 (get_remote_state): Adjust to call remote_state's
5360 get_remote_arch_state method.
5361 (init_remote_state): Delete, bits factored out to ...
5362 (remote_arch_state::remote_arch_state): ... this new method.
5363 (get_remote_packet_size, get_memory_packet_size)
5364 (process_g_packet, remote_target::fetch_registers)
5365 (remote_target::prepare_to_store, store_registers_using_G)
5366 (remote_target::store_registers, remote_target::get_trace_status):
5367 Adjust to call remote_state's method.
5368 (_initialize_remote): Remove reference to
5369 remote_gdbarch_data_handle.
5370
dd194f6b
PA
53712018-05-22 Pedro Alves <palves@redhat.com>
5372
5373 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
5374 pread>: New method declarations.
5375 (remote_target::open_1): Adjust.
5376 (readahead_cache_invalidate): Rename to ...
5377 (readahead_cache::invalidate): ... this, and adjust to be a class
5378 method.
5379 (readahead_cache_invalidate_fd): Rename to ...
5380 (readahead_cache::invalidate_fd): ... this, and adjust to be a
5381 class method.
5382 (remote_hostio_pwrite): Adjust.
5383 (remote_hostio_pread_from_cache): Rename to ...
5384 (readahead_cache::pread): ... this, and adjust to be a class
5385 method.
5386 (remote_hostio_close): Adjust.
5387
440b7aec
PA
53882018-05-22 Pedro Alves <palves@redhat.com>
5389
5390 * remote.c (remote_hostio_close_cleanup): Delete.
5391 (class scoped_remote_fd): New.
5392 (remote_file_put, remote_file_get): Use it.
5393
de44f5a7
PA
53942018-05-22 Pedro Alves <palves@redhat.com>
5395
5396 (struct vCont_action_support): Use bool and initialize all fields.
5397 (struct readahead_cache): Initialize all fields.
5398 (remote_state): Use bool and initialize all fields.
5399 (remote_state::remote_state, remote_state::~remote_state): New.
5400 (new_remote_state): Delete.
5401 (_initialize_remote): Use new to allocate remote_state.
5402
b1b60145
PA
54032018-05-22 Pedro Alves <palves@redhat.com>
5404 張俊芝 <zjz@zjz.name>
5405
5406 PR gdb/22973
5407 * c-exp.y: Include "c-support.h".
5408 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
5409 of tolower. Use c_ident_is_alpha to scan names.
5410 * c-lang.c: Include "c-support.h".
5411 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
5412 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
5413 * c-support.h: New file, with bits factored out from ...
5414 * cp-name-parser.y: ... this file.
5415 Include "c-support.h".
5416 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
5417 c-support.h and renamed.
5418 (symbol_end, yylex): Adjust.
5419
0ec848ad
PFC
54202018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5421
5422 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
5423 parameter type to CORE_ADDR.
5424 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
5425 parameter type in declaration to CORE_ADDR.
5426 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
5427 target_auxv_search to get AT_HWCAP and use the result to get the
5428 target description.
5429 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
5430 to CORE_ADDR. Remove the cast of the return value to unsigned
5431 long. Fix error predicate of target_auxv_search.
5432 (ppc_linux_nat_target::read_description): Change the type of the
5433 hwcap variable to CORE_ADDR.
5434
0fb2aaa1
PFC
54352018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5436
5437 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
5438 if the size of fpscr is larger than 32 bits.
5439
2c3305f6
PFC
54402018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5441
5442 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
5443 (ppc32_linux_vsxregmap): New global.
5444 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
5445 regcache_supply_regset, and regcache_collect_regset.
5446 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
5447 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
5448 (fetch_vsx_register, store_vsx_register): Remove.
5449 (fetch_vsx_registers): Add regno parameter. Get regset using
5450 ppc_linux_vsxregset. Use regset to supply registers.
5451 (store_vsx_registers): Add regno parameter. Get regset using
5452 ppc_linux_vsxregset. Use regset to collect registers.
5453 (fetch_register): Call fetch_vsx_registers instead of
5454 fetch_vsx_register.
5455 (store_register): Call store_vsx_registers instead of
5456 store_vsx_register.
5457 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
5458 new regno parameter.
5459 (store_ppc_registers): Call store_vsx_registers with -1 for the
5460 new regno parameter.
5461 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
5462 (ppc_collect_vsxregset): Remove.
5463
1d75a658
PFC
54642018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5465
5466 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
5467 offset fields.
5468 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
5469 for vector register offset fields.
5470 (ppc64_fbsd_reg_offsets): Likewise.
5471 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
5472 to vector register offset fields.
5473 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
5474 to vector register offset fields.
5475 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
5476 vector register offset fields.
5477 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
5478 initializers for vector register offset fields.
5479 (rs6000_aix64_reg_offsets): Likewise.
5480 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
5481 (ppc_supply_vrregset): Remove.
5482 (ppc_collect_vrregset): Remove.
5483 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
5484 (ppc_linux_vrregset) : New function.
5485 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
5486 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
5487 (ppc32_linux_vrregset): Remove.
5488 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
5489 and use result instead of ppc32_linux_vrregset.
5490 (ppc32_linux_reg_offsets): Remove initializers for vector register
5491 offset fields.
5492 (ppc64_linux_reg_offsets): Likewise.
5493 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
5494 * ppc-linux-nat.c: Include regset.h.
5495 (gdb_vrregset_t): Adjust comment to account for little-endian
5496 mode.
5497 (supply_vrregset, fill_vrregset): Remove.
5498 (fetch_altivec_register, store_altivec_register): Remove.
5499 (fetch_altivec_registers): Add regno parameter. Get regset using
5500 ppc_linux_vrregset. Use regset to supply registers.
5501 (store_altivec_registers): Add regno parameter. Get regset using
5502 ppc_linux_vrregset. Use regset to collect registers.
5503 (fetch_register): Call fetch_altivec_registers instead of
5504 fetch_altivec_register.
5505 (store_register): Call store_altivec_registers instead of
5506 store_altivec_register.
5507 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
5508 the new regno parameter.
5509 (store_ppc_registers): Call store_altivec_registers with -1 for
5510 the new regno parameter.
5511
d078308a
PFC
55122018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5513
5514 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
5515 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
5516 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
5517 (gdb_vrregset_t): Change array type size to
5518 PPC_LINUX_SIZEOF_VRREGSET.
5519 (gdb_vsxregset_t): Change array type size to
5520 PPC_LINUX_SIZEOF_VSXREGSET.
5521 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
5522 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
5523 PPC_LINUX_SIZEOF_VSXREGSET.
5524
2e077f5e
PFC
55252018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5526
5527 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
5528 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
5529 nat/ppc-linux.c.
5530 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
5531 ppc_linux_target_wordsize with tid.
5532 (ppc_linux_nat_target::read_description): Call ppc_linux_target
5533 wordsize with tid.
5534 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
5535 (ppc64_64bit_inferior_p): Add static and inline specifiers.
5536 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
5537 tid parameter. Remove static specifier.
5538 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
5539 (ppc_linux_target_wordsize): New declaration.
5540
bd64614e
PFC
55412018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5542
5543 * arch/ppc-linux-common.c: New file.
5544 * arch/ppc-linux-common.h: New file.
5545 * arch/ppc-linux-tdesc.h: New file.
5546 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
5547 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
5548 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
5549 arch/ppc-linux-tdesc.h.
5550 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
5551 arch/ppc-linux-tdesc.h.
5552 (ppc_linux_nat_target::read_description): Remove target
5553 description matching code. Fill a ppc_linux_features struct and
5554 call ppc_linux_match_description with it. Move comment about ISA
5555 2.05 to ppc-linux-common.c.
5556 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
5557 arch/ppc-linux-tdesc.h.
5558 (ppc_linux_core_read_description): Remove target description
5559 matching code. Fill a ppc_linux_features struct and call
5560 ppc_linux_match_description with it.
5561 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
5562 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
5563 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
5564 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
5565 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
5566 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
5567 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
5568 (tdesc_powerpc_e500l): Remove.
5569
241db429
JB
55702018-05-22 Joel Brobecker <brobecker@adacore.com>
5571
5572 * ada-lang.c (catch_assert_command): Pass empty string instead
5573 of NULL for excep_string argument.
5574
75d74cca
MR
55752018-05-22 Maciej W. Rozycki <macro@mips.com>
5576
5577 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
5578 the width of the requested register exceeds the width of the
5579 `ptrace' data type.
5580
122b53ea
TT
55812018-05-21 Tom Tromey <tom@tromey.com>
5582
5583 * printcmd.c (output_command): Remove.
5584 (output_command_const): Rename to output_command.
5585 * valprint.h (output_command): Rename from output_command_const.
5586 * tracepoint.c (trace_dump_actions): Call output_command.
5587
bc18fbb5
TT
55882018-05-21 Tom Tromey <tom@tromey.com>
5589
5590 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
5591 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
5592 * ada-lang.h (create_ada_exception_catchpoint): Update.
5593 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
5594 std::string.
5595 (create_excep_cond_exprs, ~ada_catchpoint)
5596 (should_stop_exception, print_one_exception)
5597 (print_mention_exception, print_recreate_exception): Update.
5598 (ada_get_next_arg): Remove.
5599 (catch_ada_exception_command_split): Use std::string. Change type
5600 of "excep_string", "cond_string".
5601 (catch_ada_exception_command): Update.
5602 (create_ada_exception_catchpoint): Change type of excep_string.
5603 (ada_exception_sal): Remove excep_string parameter.
5604 (~ada_catchpoint): Remove.
5605
790217f6
TT
56062018-05-21 Tom Tromey <tom@tromey.com>
5607
5608 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
5609 cleanup.
5610
6f46ac85
TT
56112018-05-21 Tom Tromey <tom@tromey.com>
5612
5613 * ada-lang.c (ada_exception_message_1, ada_exception_message):
5614 Return unique_xmalloc_ptr.
5615 (print_it_exception): Update.
5616
15b6611c
TT
56172018-05-21 Tom Tromey <tom@tromey.com>
5618
5619 * tracepoint.c (trace_dump_actions): Use std::string.
5620
c0c9f665
TT
56212018-05-21 Tom Tromey <tom@tromey.com>
5622
5623 * symfile.c (reread_symbols): Use std::string for original_name.
5624
22ca247e
TT
56252018-05-21 Tom Tromey <tom@tromey.com>
5626
5627 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
5628 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
5629 constructor.
5630
184cde75
SM
56312018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
5632
5633 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
5634 instance to...
5635 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
5636 * objfiles.c (get_objfile_bfd_data): Allocate
5637 objfile_per_bfd_storage with obstack_new when allocating on
5638 obstack.
5639
e39db4db
SM
56402018-05-20 Simon Marchi <simon.marchi@ericsson.com>
5641
5642 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
5643 OBSTACK_ZALLOC.
5644 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
5645 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
5646 * mdebugread.c (mdebug_build_psymtabs): Likewise.
5647 (add_pending): Likewise.
5648 (parse_symbol): Likewise.
5649 (parse_partial_symbols): Likewise.
5650 (psymtab_to_symtab_1): Likewise.
5651 (new_psymtab): Likewise.
5652 (elfmdebug_build_psymtabs): Likewise.
5653 * minsyms.c (terminate_minimal_symbol_table): Likewise.
5654 * objfiles.c (get_objfile_bfd_data): Likewise.
5655 (objfile_register_static_link): Likewise.
5656 * psymtab.c (allocate_psymtab): Likewise.
5657 * stabsread.c (read_member_functions): Likewise.
5658 * xcoffread.c (xcoff_end_psymtab): Likewise.
5659
284a0e3c
SM
56602018-05-20 Simon Marchi <simon.marchi@ericsson.com>
5661
5662 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
5663 compiler supports std::is_trivially_constructible.
5664 * common/poison.h: Include obstack.h.
5665 (IsMallocable): Define to is_trivially_constructible if the
5666 compiler supports it, define to true_type otherwise.
5667 (xobnew): New.
5668 (XOBNEW): Redefine.
5669 (xobnewvec): New.
5670 (XOBNEWVEC): Redefine.
5671 * gdb_obstack.h (obstack_zalloc): New.
5672 (OBSTACK_ZALLOC): Redefine.
5673 (obstack_calloc): New.
5674 (OBSTACK_CALLOC): Redefine.
5675 (obstack_new): New.
5676 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
5677 (gdbarch_obstack): New declaration in gdbarch.h, definition in
5678 gdbarch.c.
5679 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
5680 obstack_calloc/obstack_zalloc.
5681 (gdbarch_obstack_zalloc): Remove.
5682 * target-descriptions.c (tdesc_data_init): Use obstack_new.
5683
59f66be3
PW
56842018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5685
5686 * stack.c (backtrace_command_1): Remove useless variable int i.
5687
50c65c2d
PW
56882018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5689
5690 * stack.c (print_frame_info): Fix comment.
5691
7ff8cb8c
TT
56922018-05-18 Tom Tromey <tom@tromey.com>
5693
5694 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
5695 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
5696 (~dwarf2_per_objfile): Update
5697 (dwarf2_get_dwz_file): Use new.
5698 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
5699 unique_ptr.
5700
400174b1
TT
57012018-05-18 Tom Tromey <tom@tromey.com>
5702
5703 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
5704 unique_ptr.
5705 * dwarf2read.c (struct dwp_file): Add constructor and
5706 initializers.
5707 (open_and_init_dwp_file): Return a unique_ptr.
5708 (dwarf2_per_objfile, create_dwp_hash_table)
5709 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
5710 (lookup_dwo_unit_in_dwp): Update.
5711 (open_and_init_dwp_file, get_dwp_file): Update.
5712
3063847f
TT
57132018-05-18 Tom Tromey <tom@tromey.com>
5714
5715 * dwarf2read.c (dwarf2_per_objfile): Update.
5716 (struct mapped_index): Add initializers.
5717 (dwarf2_read_index): Use new.
5718 (dw2_symtab_iter_init): Update.
5719 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
5720 unique_ptr.
5721
d3d02dee
SM
57222018-05-18 Simon Marchi <simon.marchi@ericsson.com>
5723
5724 * dwarf2read.c (mapped_index) <total_size>: Remove.
5725
1d143c36
SM
57262018-05-18 Simon Marchi <simon.marchi@ericsson.com>
5727
5728 * unittests/format_pieces-selftests.c (test_format_specifier):
5729 Add ARI comments.
5730
ce1e8424
TT
57312018-05-18 Tom Tromey <tom@tromey.com>
5732
5733 * c-typeprint.c (maybe_print_hole): New function.
5734 (c_print_type_struct_field_offset): Update.
5735 (c_type_print_base_struct_union): Call maybe_print_hole.
5736
ddfe970e
KS
57372018-05-17 Keith Seitz <keiths@redhat.com>
5738
5739 * breakpoint.c (build_bpstat_chain): New function, moved from
5740 bpstat_stop_status.
5741 (bpstat_stop_status): Add optional parameter, `stop_chain'.
5742 If no stop chain is passed, call build_bpstat_chain to build it.
5743 * breakpoint.h (build_bpstat_chain): Declare.
5744 (bpstat_stop_status): Move documentation here from breakpoint.c.
5745 * infrun.c (handle_signal_stop): Before eliding inlined frames,
5746 build the stop chain and pass it to skip_inline_frames.
5747 Pass this stop chain to bpstat_stop_status.
5748 * inline-frame.c: Include breakpoint.h.
5749 (stopped_by_user_bp_inline_frame): New function.
5750 (skip_inline_frames): Add parameter `stop_chain'.
5751 Move documention to inline-frame.h.
5752 If non-NULL, use stopped_by_user_bp_inline_frame to determine
5753 whether the frame should be elided.
5754 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
5755 Add moved documentation and update for new parameter.
5756
b17992c1
SM
57572018-05-17 Simon Marchi <simon.marchi@ericsson.com>
5758
5759 PR cli/14975
5760 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5761 unittests/format_pieces-selftests.c.
5762 * common/format.h (format_piece) <operator==>: New.
5763 (format_pieces) <operator[]>: Remove.
5764 * common/format.c (format_pieces::format_pieces): Handle \e.
5765 * unittests/format_pieces-selftests.c: New.
5766
58f0c718
TT
57672018-05-17 Tom Tromey <tom@tromey.com>
5768
5769 PR symtab/23010:
5770 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
5771 (dw2_instantiate_symtab): Add skip_partial parameter.
5772 (dw2_find_last_source_symtab, dw2_map_expand_apply)
5773 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
5774 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
5775 (dw2_expand_symtabs_matching_one)
5776 (dw2_find_pc_sect_compunit_symtab)
5777 (dw2_debug_names_lookup_symbol)
5778 (dw2_debug_names_expand_symtabs_for_function): Update.
5779 (init_cutu_and_read_dies): Add skip_partial parameter.
5780 (process_psymtab_comp_unit, build_type_psymtabs_1)
5781 (process_skeletonless_type_unit, load_partial_comp_unit)
5782 (psymtab_to_symtab_1): Update.
5783 (load_full_comp_unit): Add skip_partial parameter.
5784 (process_imported_unit_die, dwarf2_read_addr_index)
5785 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
5786 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
5787 (read_signatured_type): Update.
5788
3e618834
SM
57892018-05-17 Simon Marchi <simon.marchi@ericsson.com>
5790
5791 * value.c (release_value): Remove unused variable.
5792 (record_latest_value): Likewise.
5793 (access_value_history): Likewise.
5794 (preserve_values): Likewise.
5795
fe10fe31
TT
57962018-05-17 Tom Tromey <tom@tromey.com>
5797
5798 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
5799 Initialize.
5800
1d761124
MR
58012018-05-16 Maciej W. Rozycki <macro@mips.com>
5802
5803 PR gdb/22286
5804 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
5805 Also handle registers whose width is not a multiple of
5806 PTRACE_TYPE_RET.
5807 (linux_nat_trad_target::store_register): Likewise.
5808
06333fea
TT
58092018-05-16 Tom Tromey <tom@tromey.com>
5810
5811 * gdbcore.h (core_bfd): Redefine.
5812 * corelow.c (core_target::close): Update.
5813 (core_target_open): Update.
5814 * progspace.h (struct program_space) <cbfd>: Now a
5815 gdb_bfd_ref_ptr.
5816
921222e2
TT
58172018-05-16 Tom Tromey <tom@tromey.com>
5818
5819 PR cli/19551:
5820 * symfile-add-flags.h (enum symfile_add_flags)
5821 <SYMFILE_NOT_FILENAME>: New constant.
5822 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
5823 objfile name from BFD.
5824 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
5825 * minidebug.c (find_separate_debug_file_in_section): Put
5826 ".gnu_debugdata" into BFD's file name.
5827
3acb7083
SM
58282018-05-16 Simon Marchi <simon.marchi@ericsson.com>
5829
5830 * regcache.c (regcache_read_ftype, regcache_write_ftype):
5831 Remove.
5832
561a72d4
TC
58332018-05-15 Tamar Christina <tamar.christina@arm.com>
5834
5835 PR binutils/21446
5836 * aarch64-tdep.c (aarch64_analyze_prologue,
5837 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
5838 Indicate not interested in errors.
5839
4e6ff0e1
MR
58402018-05-15 Maciej W. Rozycki <macro@mips.com>
5841
5842 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
5843 Supply the MIPS_ZERO_REGNUM register.
5844
ea33cd92
MR
58452018-05-15 Maciej W. Rozycki <macro@mips.com>
5846
5847 * mips-tdep.c (mask_address_var): Make variable static.
5848
2d79090e
TT
58492018-05-14 Tom Tromey <tom@tromey.com>
5850
5851 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
5852
cf4912ae
AB
58532018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
5854
5855 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
5856 FXSAVE_ADDR for the mxcsr register.
5857
67e6f569
MF
58582018-05-11 Max Filippov <jcmvbkbc@gmail.com>
5859
5860 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
5861
15244507
PA
58622018-05-11 Pedro Alves <palves@redhat.com>
5863
5864 * corelow.c (core_target) <core_target>: No longer inline.
5865 Initialize m_core_gdbarch, m_core_vec and build the section table
5866 here.
5867 <~core_target>: New.
5868 <core_gdbarch, get_core_register_section>: New methods.
5869 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
5870 factored out from ...
5871 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
5872 (core_ops): Delete.
5873 (sniff_core_bfd): Add gdbarch parameter.
5874 (core_close): Delete, merged into ...
5875 (core_target::close): ... here. Delete self.
5876 (core_close_cleanup): Delete.
5877 (core_target_open): Allocate a core_target on the heap. Use a
5878 unique_ptr instead of a cleanup. Bits moved into the core_target
5879 ctor. Adjust to use core_target methods instead of globals.
5880 (get_core_register_section): Rename to ...
5881 (core_target::get_core_register_section): ... this and adjust.
5882 (struct get_core_registers_cb_data): New.
5883 (get_core_registers_cb): Use it. Use bool.
5884 (core_target::fetch_registers, core_target::files_info)
5885 (core_target::xfer_partial, core_target::read_description)
5886 (core_target::pid_to, core_target::thread_name): Adjust to
5887 reference class fields instead of globals.
5888 * target.h (struct target_ops_deleter, target_ops_up): New.
5889
451953fa
PA
58902018-05-11 Pedro Alves <palves@redhat.com>
5891
5892 * corefile.c (core_file_command): Move to corelow.c.
5893 * corelow.c (the_core_target): Delete.
5894 (core_file_command): Moved from corefile.c. Check exec_bfd
5895 instead of the_core_target. Use target_detach instead of calling
5896 into the_core_target directly.
5897 (maybe_say_no_core_file_now): New.
5898 (core_target::detach): Use it.
5899 (_initialize_corelow): Remove references to the_core_target.
5900 * gdbcore.h (the_core_target): Delete.
5901
e540a5a2 59022018-05-11 Tom Tromey <tromey@redhat.com>
3afc23a6 5903 Pedro Alves <palves@redhat.com>
e540a5a2
TT
5904
5905 * corefile.c (core_bfd): Remove.
5906 * gdbcore.h (core_bfd): Now a macro.
5907 * progspace.h (struct program_space) <cbfd>: New field.
5908
633cf254
TT
59092018-05-11 Tom Tromey <tom@tromey.com>
5910
5911 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
5912 gdb::def_vector.
5913
1a34f210
TT
59142018-05-10 Tom Tromey <tom@tromey.com>
5915
5916 * configure: Rebuild.
5917 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
5918
190852c8
JB
59192018-05-10 Joel Brobecker <brobecker@adacore.com>
5920
5921 PR server/23158:
5922 * regformats/regdat.sh: Adjust script, following the addition
5923 of the new expedite_regs parameter to init_target_desc.
5924
8727de56
OJ
59252018-05-10 Omair Javaid <omair.javaid@linaro.org>
5926
5927 PR gdb/23127
5928 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
5929 set_gdbarch_significant_addr_bit.
5930 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
5931 set_gdbarch_significant_addr_bit.
5932 * utils.c (address_significant): Update to sign extend addr.
5933
37d9e062
MF
59342018-05-09 Max Filippov <jcmvbkbc@gmail.com>
5935
5936 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
5937 (xtensa_linux_init_abi): Limit tdep->num_regs by
5938 tdep->num_nopriv_regs.
5939 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
5940 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
5941 not initialized.
5942
7402fbca
SM
59432018-05-08 Simon Marchi <simon.marchi@ericsson.com>
5944
5945 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
5946
8ee22052
AB
59472018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5948
5949 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
5950 (I387_MXCSR_INIT_VAL): New constant.
5951 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
5952 buffer if it was supplied by the inferior.
5953 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
5954 (i387_xsave_get_clear_bv): New function.
5955 (i387_supply_xsave): Only read x87 control registers from the
5956 xsave buffer if the feature is enabled, and the state will have
5957 been written, otherwise, provide a suitable default.
5958 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
5959 including x87 control registers. Update control registers if they
5960 have changed from the default value, and mark features as enabled
5961 as required.
5962 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
5963
968ae51b
UW
59642018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
5965
5966 * spu-tdep.c (info_spu_event_command): Fix output formatting.
5967
aff689d3
TT
59682018-05-07 Tom Tromey <tom@tromey.com>
5969
5970 * configure: Rebuild.
5971 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
5972
ce887586
TT
59732018-05-07 Tom Tromey <tom@tromey.com>
5974
5975 PR tdep/20362:
5976 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
5977 bit. Use correct value for VDIV.
5978
85e26832
TT
59792018-05-04 Tom Tromey <tom@tromey.com>
5980
5981 * configure: Rebuild.
5982 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
5983
449b1ac7
TT
59842018-05-04 Tom Tromey <tom@tromey.com>
5985
5986 * linux-record.c (record_linux_system_call) <case
5987 RECORD_SYS_RECVFROM>: Add "break".
5988
15c9ffd6
TT
59892018-05-04 Tom Tromey <tom@tromey.com>
5990
5991 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
5992 Add missing "break".
5993 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
5994 Add missing "break".
5995
e3829d13
TT
59962018-05-04 Tom Tromey <tom@tromey.com>
5997
5998 * rs6000-tdep.c (ppc_process_record_op4)
5999 (ppc_process_record_op63): Add fall-through comment.
6000
da0e1563
TT
60012018-05-04 Tom Tromey <tom@tromey.com>
6002
6003 * i386-tdep.c (i386_process_record): Add fall-through comment.
6004
0019cd49
TT
60052018-05-04 Tom Tromey <tom@tromey.com>
6006
6007 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
6008 comment.
6009
565e0eda
TT
60102018-05-04 Tom Tromey <tom@tromey.com>
6011
6012 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
6013 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
6014 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
6015 comment.
6016 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
6017 comment.
6018 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
6019 comment.
6020
621846f4
TT
60212018-05-04 Tom Tromey <tom@tromey.com>
6022
6023 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
6024
86a73007
TT
60252018-05-04 Tom Tromey <tom@tromey.com>
6026
6027 * s390-tdep.c (s390_process_record): Fix fall-through comments.
6028 * xcoffread.c (scan_xcoff_symtab): Move comment later.
6029 * symfile.c (section_is_mapped): Fix fall-through comment.
6030 * stabsread.c (define_symbol, read_member_functions): Fix
6031 fall-through comment.
6032 * s390-linux-tdep.c (s390_process_record): Fix fall-through
6033 comment.
6034 * remote.c (remote_wait_as): Fix fall-through comment.
6035 * p-exp.y (yylex): Fix fall-through comment.
6036 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
6037 comment.
6038 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
6039 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
6040 * jv-exp.y (yylex): Fix fall-through comment.
6041 * go-exp.y (lex_one_token): Fix fall-through comment.
6042 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
6043 fall-through comment.
6044 * f-exp.y (yylex): Fix fall-through comment.
6045 * dwarf2read.c (process_die): Fix fall-through comments.
6046 * dbxread.c (process_one_symbol): Fix fall-through comment.
6047 * d-exp.y (lex_one_token): Fix fall-through comment.
6048 * cp-name-parser.y (yylex): Fix fall-through comment.
6049 * coffread.c (coff_symtab_read): Fix fall-through comment.
6050 * c-exp.y (lex_one_token): Fix fall-through comment.
6051 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
6052 comment.
6053 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
6054 comment.
6055
56bcdbea
TT
60562018-05-04 Tom Tromey <tom@tromey.com>
6057
6058 PR python/22730:
6059 * NEWS: Mention gdb.execute change.
6060 * gdbcmd.h (execute_control_command): Don't declare.
6061 * python/python.c (execute_gdb_command): Use read_command_lines_1,
6062 execute_control_commands, execute_control_commands_to_string.
6063 * cli/cli-script.h (execute_control_commands)
6064 (execute_control_commands_to_string): Declare.
6065 (execute_control_command): Add from_tty parameter.
6066 * cli/cli-script.c (execute_control_commands)
6067 (execute_control_commands_to_string): New functions.
6068 (execute_user_command): Use execute_control_commands.
6069 (execute_control_command_1): Add "from_tty" parameter. Update.
6070 (execute_control_command): Likewise.
6071
a913fffb
TT
60722018-05-04 Tom Tromey <tom@tromey.com>
6073
6074 PR python/22731:
6075 * NEWS: Mention that breakpoint commands are writable.
6076 * python/py-breakpoint.c (bppy_set_commands): New function.
6077 (breakpoint_object_getset) <"commands">: Use it.
6078
60b3cef2
TT
60792018-05-04 Tom Tromey <tom@tromey.com>
6080
6081 * tracepoint.c (actions_command): Update.
6082 * mi/mi-cmd-break.c (mi_command_line_array)
6083 (mi_command_line_array_cnt, mi_command_line_array_ptr)
6084 (mi_read_next_line): Remove.
6085 (mi_cmd_break_commands): Update.
6086 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
6087 function_view.
6088 * cli/cli-script.c (get_command_line): Update.
6089 (process_next_line): Use function_view. Constify.
6090 (recurse_read_control_structure, read_command_lines)
6091 (read_command_lines_1): Change argument types to function_view.
6092 (do_define_command, document_command): Update.
6093 * breakpoint.h (check_tracepoint_command): Don't declare.
6094 * breakpoint.c (check_tracepoint_command): Remove.
6095 (commands_command_1, create_tracepoint_from_upload): Update.
6096
7a2c85f2
TT
60972018-05-04 Tom Tromey <tom@tromey.com>
6098
6099 PR gdb/11750:
6100 * cli/cli-script.h (enum command_control_type) <define_control>:
6101 New constant.
6102 * cli/cli-script.c (multi_line_command_p): Handle define_control.
6103 (build_command_line, execute_control_command_1)
6104 (process_next_line): Likewise.
6105 (do_define_command): New function, extracted from define_command.
6106 (define_command): Use it.
6107
295dc222
TT
61082018-05-04 Tom Tromey <tom@tromey.com>
6109
6110 * tracepoint.c (actions_command): Update.
6111 * cli/cli-script.h (read_command_lines): Update.
6112 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
6113 (MAX_TMPBUF): Remove define.
6114 (define_command): Use string_printf.
6115 (document_command): Likewise.
6116 * breakpoint.c (commands_command_1): Update.
6117
1263a9d5
TT
61182018-05-04 Tom Tromey <tom@tromey.com>
6119
6120 * top.c (execute_command): Update.
6121 * cli/cli-script.h (print_command_lines): Now varargs.
6122 * cli/cli-script.c (print_command_lines): Now varargs.
6123 (execute_control_command_1) <case while_control, case if_control>:
6124 Update.
6125
12973681
TT
61262018-05-04 Tom Tromey <tom@tromey.com>
6127
6128 * tracepoint.c (all_tracepoint_actions): Rename from
6129 all_tracepoint_actions_and_cleanup. Change return type.
6130 (actions_command, encode_actions_1, encode_actions)
6131 (trace_dump_actions, tdump_command): Update.
6132 * remote.c (remote_download_command_source): Update.
6133 * python/python.c (gdbpy_eval_from_control_command)
6134 (python_command, python_interactive_command): Update.
6135 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
6136 * guile/guile.c (guile_command)
6137 (gdbscm_eval_from_control_command, guile_command): Update.
6138 * compile/compile.c (compile_code_command)
6139 (compile_print_command, compile_to_object): Update.
6140 * cli/cli-script.h (struct command_lines_deleter): New.
6141 (counted_command_line): New typedef.
6142 (struct command_line): Add constructor, destructor.
6143 <body_list>: Remove.
6144 <body_list_0, body_list_1>: New members.
6145 (command_line_up): Remove typedef.
6146 (read_command_lines, read_command_lines_1, get_command_line):
6147 Update.
6148 (copy_command_lines): Don't declare.
6149 * cli/cli-script.c (build_command_line): Use "new".
6150 (get_command_line): Return counted_command_line.
6151 (print_command_lines, execute_user_command)
6152 (execute_control_command_1, while_command, if_command): Update.
6153 (realloc_body_list): Remove.
6154 (process_next_line, recurse_read_control_structure): Update.
6155 (read_command_lines, read_command_lines_1): Return counted_command_line.
6156 (free_command_lines): Use "delete".
6157 (copy_command_lines): Remove.
6158 (define_command, document_command, show_user_1): Update.
6159 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
6160 a counted_command_line.
6161 * breakpoint.h (counted_command_line): Remove typedef.
6162 (breakpoint_set_commands): Update.
6163 * breakpoint.c (check_no_tracepoint_commands)
6164 (validate_commands_for_breakpoint): Update.
6165 (breakpoint_set_commands): Change commands to be a
6166 counted_command_line.
6167 (commands_command_1, update_dprintf_command_list)
6168 (create_tracepoint_from_upload): Update.
6169
e2fc72e2
TT
61702018-05-04 Tom Tromey <tom@tromey.com>
6171
6172 * cli/cli-decode.h (cmd_list_element): New constructor.
6173 (~cmd_list_element): New destructor.
6174 (struct cmd_list_element): Add initializers.
6175 * cli/cli-decode.c (do_add_cmd): Use "new".
6176 (delete_cmd): Use "delete".
6177
a3b60e45
JK
61782018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6179 Pedro Alves <palves@redhat.com>
6180
6181 PR breakpoints/19806 and support for PR external/20207.
6182 * NEWS: Mention Aarch64 watchpoint improvements.
6183 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
6184 watchpoints and PR external/20207 watchpoints.
6185 * nat/aarch64-linux-hw-point.c
6186 (kernel_supports_any_contiguous_range): New.
6187 (aarch64_watchpoint_offset): New.
6188 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
6189 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
6190 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
6191 (aarch64_align_watchpoint): New parameters aligned_offset_p and
6192 next_addr_orig_p. Support PR external/20207 watchpoints.
6193 (aarch64_downgrade_regs): New.
6194 (aarch64_dr_state_insert_one_point): New parameters offset and
6195 addr_orig.
6196 (aarch64_dr_state_remove_one_point): Likewise.
6197 (aarch64_handle_breakpoint): Update caller.
6198 (aarch64_handle_aligned_watchpoint): Likewise.
6199 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
6200 aligned_offset.
6201 (aarch64_linux_set_debug_regs): Remove const from state. Call
6202 aarch64_downgrade_regs.
6203 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
6204 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
6205 (DR_CONTROL_MASK): ... this.
6206 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
6207 (unsigned int aarch64_watchpoint_offset): New prototype.
6208 (aarch64_linux_set_debug_regs): Remove const from state.
6209 * utils.c (align_up, align_down): Move to ...
6210 * common/common-utils.c (align_up, align_down): ... here.
6211 * utils.h (align_up, align_down): Move to ...
6212 * common/common-utils.h (align_up, align_down): ... here.
6213
05bc7456
JB
62142018-05-04 Joel Brobecker <brobecker@adacore.com>
6215
6216 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
6217 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
6218 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
6219 Re-implement to match the ABI as summarized in GCC's
6220 gcc/config/sparc/sparc.c. All callers updated.
6221 (sparc32_store_arguments): Remove assertion.
6222
2f433492
TT
62232018-05-04 Tom Tromey <tom@tromey.com>
6224
6225 * printcmd.c: Don't include tui.h.
6226 (decode_format): Use skip_spaces.
6227
9be2ae8f
TT
62282018-05-04 Tom Tromey <tom@tromey.com>
6229
6230 PR gdb/22619:
6231 * printcmd.c (last_count): New global.
6232 (x_command): Use saved count when repeating.
6233
f0b3976b
TT
62342018-05-04 Tom Tromey <tom@tromey.com>
6235
6236 * nto-procfs.c (do_closedir_cleanup): Remove.
6237 (procfs_pidlist): Use gdb_dir_up.
6238 * procfs.c (do_closedir_cleanup): Remove.
6239 (proc_update_threads): Use gdb_dir_up.
6240 * common/filestuff.h (struct gdb_dir_deleter): New.
6241 (gdb_dir_up): New typedef.
6242
862d101a
TT
62432018-05-04 Tom Tromey <tom@tromey.com>
6244
6245 * ada-lang.c (print_mention_exception): Use std::string.
6246
cb7de75e
TT
62472018-05-04 Tom Tromey <tom@tromey.com>
6248
6249 * ada-lang.c (create_excep_cond_exprs): Update.
6250 (ada_exception_catchpoint_cond_string): Use std::string.
6251
49d83361
TT
62522018-05-04 Tom Tromey <tom@tromey.com>
6253
6254 * ada-lang.c (xget_renaming_scope): Return std::string.
6255 (old_renaming_is_invisible): Update.
6256
ade72a34
TT
62572018-05-04 Tom Tromey <tom@tromey.com>
6258
6259 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
6260 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
6261
2be4d7f0
UW
62622018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
6263
6264 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
6265
69b6ecb0
TT
62662018-05-04 Tom Tromey <tom@tromey.com>
6267
6268 * remote.c (remote_query_supported_append): Change type.
6269 (remote_check_symbols): Update.
6270
bf27f0e2
PP
62712018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
6272
6273 PR gdb/11420
6274 * configure.ac: Prepend libpython.
6275 * python/python-config.py: Likewise.
6276 * configure: Regenerate.
6277
4ea17de8
SM
62782018-05-03 Simon Marchi <simon.marchi@ericsson.com>
6279
6280 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
6281
bd732259
PA
62822018-05-03 Pedro Alves <palves@redhat.com>
6283
6284 * s390-linux-nat.c
6285 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
6286 override. Write 'true' instead of '1'.
6287 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
6288 declaration.
6289
d9f719f1
PA
62902018-05-02 Pedro Alves <palves@redhat.com>
6291
6292 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
6293 add_inf_child_target.
6294 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
6295 add_inf_child_target.
6296 * aix-thread.c (aix_thread_target_info): New.
6297 (aix_thread_target) <shortname, longname, doc>: Delete.
6298 <info>: New.
6299 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
6300 add_inf_child_target.
6301 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
6302 add_inf_child_target.
6303 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
6304 add_inf_child_target.
6305 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
6306 add_inf_child_target.
6307 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
6308 add_inf_child_target.
6309 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
6310 add_inf_child_target.
6311 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
6312 add_inf_child_target.
6313 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
6314 add_inf_child_target.
6315 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
6316 add_inf_child_target.
6317 * bfd-target.c (target_bfd_target_info): New.
6318 (target_bfd) <shortname, longname, doc>: Delete.
6319 <info>: New.
6320 * bsd-kvm.c (bsd_kvm_target_info): New.
6321 (bsd_kvm_target) <shortname, longname, doc>: Delete.
6322 <info>: New.
6323 (bsd_kvm_target::open): Rename to ...
6324 (bsd_kvm_target_open): ... this. Adjust.
6325 * bsd-uthread.c (bsd_uthread_target_info): New.
6326 (bsd_uthread_target) <shortname, longname, doc>: Delete.
6327 <info>: New.
6328 * corefile.c (core_file_command): Adjust.
6329 * corelow.c (core_target_info): New.
6330 (core_target) <shortname, longname, doc>: Delete.
6331 <info>: New.
6332 (core_target::open): Rename to ...
6333 (core_target_open): ... this. Adjust.
6334 * ctf.c (ctf_target_info): New.
6335 (ctf_target) <shortname, longname, doc>: Delete.
6336 <info>: New.
6337 (ctf_target::open): Rename to ...
6338 (ctf_target_open): ... this.
6339 (_initialize_ctf): Adjust.
6340 * exec.c (exec_target_info): New.
6341 (exec_target) <shortname, longname, doc>: Delete.
6342 <info>: New.
6343 (exec_target::open): Rename to ...
6344 (exec_target_open): ... this.
6345 * gdbcore.h (core_target_open): Declare.
6346 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
6347 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
6348 add_inf_child_target.
6349 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
6350 add_inf_child_target.
6351 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
6352 add_inf_child_target.
6353 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
6354 add_inf_child_target.
6355 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
6356 add_inf_child_target.
6357 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
6358 add_inf_child_target.
6359 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
6360 add_inf_child_target.
6361 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
6362 add_inf_child_target.
6363 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
6364 add_inf_child_target.
6365 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
6366 add_inf_child_target.
6367 * inf-child.c (inf_child_target_info): New.
6368 (inf_child_target::info): New.
6369 (inf_child_open_target): Remove 'target' parameter. Use
6370 get_native_target instead.
6371 (inf_child_target::open): Delete.
6372 (add_inf_child_target): New.
6373 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
6374 Delete.
6375 <info>: New.
6376 (add_inf_child_target): Declare.
6377 (inf_child_open_target): Declare.
6378 * linux-thread-db.c (thread_db_target_info): New.
6379 (thread_db_target) <shortname, longname, doc>: Delete.
6380 <info>: New.
6381 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
6382 add_inf_child_target.
6383 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
6384 add_inf_child_target.
6385 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
6386 add_inf_child_target.
6387 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
6388 add_inf_child_target.
6389 * make-target-delegates (print_class): Adjust.
6390 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
6391 add_inf_child_target.
6392 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
6393 add_inf_child_target.
6394 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
6395 add_inf_child_target.
6396 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
6397 add_inf_child_target.
6398 * nto-procfs.c (nto_native_target_info): New.
6399 (nto_procfs_target_native) <shortname, longname, doc>:
6400 Delete.
6401 <info>: New.
6402 (nto_procfs_target_info): New.
6403 (nto_procfs_target_procfs) <shortname, longname, doc>:
6404 Delete.
6405 <info>: New.
6406 (init_procfs_targets): Adjust.
6407 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
6408 add_inf_child_target.
6409 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
6410 add_inf_child_target.
6411 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
6412 add_inf_child_target.
6413 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
6414 add_inf_child_target.
6415 * ravenscar-thread.c (ravenscar_target_info): New.
6416 (ravenscar_thread_target) <shortname, longname, doc>:
6417 Delete.
6418 <info>: New.
6419 * record-btrace.c (record_btrace_target_info):
6420 (record_btrace_target) <shortname, longname, doc>: Delete.
6421 <info>: New.
6422 (record_btrace_target::open): Rename to ...
6423 (record_btrace_target_open): ... this. Adjust.
6424 * record-full.c (record_longname, record_doc): New.
6425 (record_full_base_target) <shortname, longname, doc>: Delete.
6426 <info>: New.
6427 (record_full_target_info): New.
6428 (record_full_target): <shortname>: Delete.
6429 <info>: New.
6430 (record_full_core_open_1, record_full_open_1): Update comments.
6431 (record_full_base_target::open): Rename to ...
6432 (record_full_open): ... this.
6433 (cmd_record_full_restore): Update.
6434 (_initialize_record_full): Update.
6435 * remote-sim.c (remote_sim_target_info): New.
6436 (gdbsim_target) <shortname, longname, doc>: Delete.
6437 <info>: New.
6438 (gdbsim_target::open): Rename to ...
6439 (gdbsim_target_open): ... this.
6440 (_initialize_remote_sim): Adjust.
6441 * remote.c (remote_doc): New.
6442 (remote_target_info): New.
6443 (remote_target) <shortname, longname, doc>: Delete.
6444 <info>: New.
6445 (extended_remote_target_info): New.
6446 (extended_remote_target) <shortname, longname, doc>: Delete.
6447 <info>: New.
6448 (remote_target::open_1): Make static. Adjust.
6449 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
6450 * s390-linux-nat.c (_initialize_s390_nat): Use
6451 add_inf_child_target.
6452 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
6453 add_inf_child_target.
6454 * sol-thread.c (thread_db_target_info): New.
6455 (sol_thread_target) <shortname, longname, doc>: Delete.
6456 <info>: New.
6457 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
6458 add_inf_child_target.
6459 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
6460 add_inf_child_target.
6461 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
6462 add_inf_child_target.
6463 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
6464 add_inf_child_target.
6465 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
6466 add_inf_child_target.
6467 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
6468 add_inf_child_target.
6469 * spu-linux-nat.c (_initialize_spu_nat): Use
6470 add_inf_child_target.
6471 * spu-multiarch.c (spu_multiarch_target_info): New.
6472 (spu_multiarch_target) <shortname, longname, doc>: Delete.
6473 <info>: New.
6474 * target-delegates.c: Regenerate.
6475 * target.c: Include <unordered_map>.
6476 (target_ops_p): Delete.
6477 (DEF_VEC_P(target_ops_p)): Delete.
6478 (target_factories): New.
6479 (test_target_info): New.
6480 (test_target_ops::info): New.
6481 (open_target): Adjust to use target_factories.
6482 (add_target_with_completer): Rename to ...
6483 (add_target): ... this. Change prototype. Register target_info
6484 and open callback in target_factories. Register target_info in
6485 command context instead of target_ops.
6486 (add_target): Delete old implementation.
6487 (add_deprecated_target_alias): Change prototype. Adjust.
6488 (the_native_target): New.
6489 (set_native_target, get_native_target): New.
6490 (find_default_run_target): Use the_native_target.
6491 (find_attach_target, find_run_target): Simplify.
6492 (target_ops::open): Delete.
6493 (dummy_target_info): New.
6494 (dummy_target::shortname, dummy_target::longname)
6495 (dummy_target::doc): Delete.
6496 (dummy_target::info): New.
6497 (debug_target::shortname, debug_target::longname)
6498 (debug_target::doc): Delete.
6499 (debug_target::info): New.
6500 * target.h (struct target_info): New.
6501 (target_ops::~target_ops): Add comment.
6502 (target_ops::info): New.
6503 (target_ops::shortname, target_ops::longname, target_ops::doc): No
6504 longer virtual. Implement in terms of target_info.
6505 (set_native_target, get_native_target): Declare.
6506 (target_open_ftype): New.
6507 (add_target, add_target_with_completer)
6508 (add_deprecated_target_alias): Change prototype.
6509 (test_target) <shortname, longname, doc>: Delete.
6510 <info>: New.
6511 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
6512 add_inf_child_target.
6513 * tracefile-tfile.c (tfile_target_info): New.
6514 (tfile_target) <shortname, longname, doc>: Delete.
6515 <info>: New.
6516 (tfile_target::open): Rename to ...
6517 (tfile_target_open): ... this.
6518 (_initialize_tracefile_tfile): Adjust.
6519 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
6520 add_inf_child_target.
6521 * windows-nat.c (_initialize_windows_nat): Use
6522 add_inf_child_target.
6523 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
6524 add_inf_child_target.
6525
135340af
PA
65262018-05-02 Pedro Alves <palves@redhat.com>
6527
6528 * linux-nat.h (linux_nat_target) <low_new_thread,
6529 low_delete_thread, low_new_fork, low_forget_process,
6530 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
6531 New virtual methods.
6532 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
6533 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
6534 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
6535 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
6536 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
6537 Delete.
6538 * linux-fork.c (delete_fork): Adjust to call low method.
6539 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
6540 (linux_nat_new_fork, linux_nat_forget_process_hook)
6541 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
6542 (linux_nat_status_is_event):
6543 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
6544 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
6545 to call low method.
6546 (sigtrap_is_event): Rename to ...
6547 (linux_nat_target::low_status_is_event): ... this.
6548 (linux_nat_set_status_is_event): Delete.
6549 (save_stop_reason, linux_nat_wait_1)
6550 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
6551 low methods.
6552 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
6553 (linux_nat_set_new_fork, linux_nat_set_forget_process)
6554 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
6555 (linux_nat_set_prepare_to_resume): Delete.
6556 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
6557 low virtual methods.
6558 * amd64-linux-nat.c: Likewise.
6559 * arm-linux-nat.c: Likewise.
6560 * i386-linux-nat.c: Likewise.
6561 * ia64-linux-nat.c: Likewise.
6562 * mips-linux-nat.c: Likewise.
6563 * ppc-linux-nat.c: Likewise.
6564 * s390-linux-nat.c: Likewise.
6565 * sparc64-linux-nat.c: Likewise.
6566 * x86-linux-nat.c: Likewise.
6567 * x86-linux-nat.h: Include "nat/x86-linux.h".
6568 (x86_linux_nat_target) <low_new_fork, low_forget_process,
6569 low_prepare_to_resume, low_new_thread, low_delete_thread>:
6570 Override methods.
6571
57810aa7
PA
65722018-05-02 Pedro Alves <palves@redhat.com>
6573
6574 * target.h (target_ops)
6575 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
6576 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
6577 stopped_by_watchpoint, have_continuable_watchpoint,
6578 stopped_data_address, watchpoint_addr_within_range,
6579 can_accel_watchpoint_condition, can_run, thread_alive,
6580 has_all_memory, has_memory, has_stack, has_registers,
6581 has_execution, can_async_p, is_async_p, supports_non_stop,
6582 always_non_stop_p, can_execute_reverse, supports_multi_process,
6583 supports_enable_disable_tracepoint,
6584 supports_disable_randomization, supports_string_tracing,
6585 supports_evaluation_of_breakpoint_conditions,
6586 can_run_breakpoint_commands, filesystem_is_local,
6587 can_download_tracepoint, get_trace_state_variable_value,
6588 set_trace_notes, get_tib_address, use_agent, can_use_agent,
6589 record_is_replaying, record_will_replay,
6590 augmented_libraries_svr4_read>: Adjust to return bool.
6591 * aarch64-linux-nat.c: All implementations adjusted.
6592 * aix-thread.c: All implementations adjusted.
6593 * arm-linux-nat.c: All implementations adjusted.
6594 * breakpoint.c: All implementations adjusted.
6595 * bsd-kvm.c: All implementations adjusted.
6596 * bsd-uthread.c: All implementations adjusted.
6597 * corelow.c: All implementations adjusted.
6598 * ctf.c: All implementations adjusted.
6599 * darwin-nat.c: All implementations adjusted.
6600 * darwin-nat.h: All implementations adjusted.
6601 * exec.c: All implementations adjusted.
6602 * fbsd-nat.c: All implementations adjusted.
6603 * fbsd-nat.h: All implementations adjusted.
6604 * gnu-nat.c: All implementations adjusted.
6605 * gnu-nat.h: All implementations adjusted.
6606 * go32-nat.c: All implementations adjusted.
6607 * ia64-linux-nat.c: All implementations adjusted.
6608 * inf-child.c: All implementations adjusted.
6609 * inf-child.h: All implementations adjusted.
6610 * inf-ptrace.c: All implementations adjusted.
6611 * inf-ptrace.h: All implementations adjusted.
6612 * linux-nat.c: All implementations adjusted.
6613 * linux-nat.h: All implementations adjusted.
6614 * mips-linux-nat.c: All implementations adjusted.
6615 * nto-procfs.c: All implementations adjusted.
6616 * ppc-linux-nat.c: All implementations adjusted.
6617 * procfs.c: All implementations adjusted.
6618 * ravenscar-thread.c: All implementations adjusted.
6619 * record-btrace.c: All implementations adjusted.
6620 * record-full.c: All implementations adjusted.
6621 * remote-sim.c: All implementations adjusted.
6622 * remote.c: All implementations adjusted.
6623 * s390-linux-nat.c: All implementations adjusted.
6624 * sol-thread.c: All implementations adjusted.
6625 * spu-multiarch.c: All implementations adjusted.
6626 * target-delegates.c: All implementations adjusted.
6627 * target.c: All implementations adjusted.
6628 * target.h: All implementations adjusted.
6629 * tracefile-tfile.c: All implementations adjusted.
6630 * tracefile.c: All implementations adjusted.
6631 * tracefile.h: All implementations adjusted.
6632 * windows-nat.c: All implementations adjusted.
6633 * x86-linux-nat.h: All implementations adjusted.
6634 * x86-nat.h: All implementations adjusted.
6635
ad6a4e2d
PA
66362018-05-02 Pedro Alves <palves@redhat.com>
6637
6638 * make-target-delegates (scan_target_h): Don't trim lines here.
6639 Replace sequences of tabs and/or whitespace with a single
6640 whitespace.
6641 (top level, parsing methods): Trim each line before processing it
6642 here.
6643
f6ac5f3d
PA
66442018-05-02 Pedro Alves <palves@redhat.com>
6645 John Baldwin <jhb@freebsd.org>
6646
6647 * target.h (enum strata) <debug_stratum>: New.
6648 (struct target_ops) <all delegation methods>: Replace by C++
6649 virtual methods, and drop "to_" prefix. All references updated
6650 throughout.
6651 <to_shortname, to_longname, to_doc, to_data,
6652 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
6653 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
6654 virtual methods. All references updated throughout.
6655 <can_attach, supports_terminal_ours, can_create_inferior,
6656 get_thread_control_capabilities, attach_no_wait>: New
6657 virtual methods.
6658 <insert_breakpoint, remove_breakpoint>: Now
6659 TARGET_DEFAULT_NORETURN methods.
6660 <info_proc>: Now returns bool.
6661 <to_magic>: Delete.
6662 (OPS_MAGIC): Delete.
6663 (current_target): Delete. All references replaced by references
6664 to ...
6665 (target_stack): ... this. New.
6666 (target_shortname, target_longname): Adjust.
6667 (target_can_run): Now a function declaration.
6668 (default_child_has_all_memory, default_child_has_memory)
6669 (default_child_has_stack, default_child_has_registers)
6670 (default_child_has_execution): Remove target_ops parameter.
6671 (complete_target_initialization): Delete.
6672 (memory_breakpoint_target): New template class.
6673 (test_target_ops): Refactor as a C++ class with virtual methods.
6674 * make-target-delegates (NAME_PART): Tighten.
6675 (POINTER_PART, CP_SYMBOL): New.
6676 (SIMPLE_RETURN_PART): Reimplement.
6677 (VEC_RETURN_PART): Expect less.
6678 (RETURN_PART, VIRTUAL_PART): New.
6679 (METHOD): Adjust to C++ virtual methods.
6680 (scan_target_h): Remove reference to C99.
6681 (dname): Output "target_ops::" prefix.
6682 (write_function_header): Adjust to output a C++ class method.
6683 (write_declaration): New.
6684 (write_delegator): Adjust to output a C++ class method.
6685 (tdname): Output "dummy_target::" prefix.
6686 (write_tdefault, write_debugmethod): Adjust to output a C++ class
6687 method.
6688 (tdefault_names, debug_names): Delete.
6689 (return_types, tdefaults, styles, argtypes_array): New.
6690 (top level): All methods are delegators.
6691 (print_class): New.
6692 (top level): Print dummy_target and debug_target classes.
6693 * target-delegates.c: Regenerate.
6694 * target-debug.h (target_debug_print_enum_info_proc_what)
6695 (target_debug_print_thread_control_capabilities)
6696 (target_debug_print_thread_info_p): New.
6697 * target.c (dummy_target): Delete.
6698 (the_dummy_target, the_debug_target): New.
6699 (target_stack): Now extern.
6700 (set_targetdebug): Push/unpush debug target.
6701 (default_child_has_all_memory, default_child_has_memory)
6702 (default_child_has_stack, default_child_has_registers)
6703 (default_child_has_execution): Remove target_ops parameter.
6704 (complete_target_initialization): Delete.
6705 (add_target_with_completer): No longer call
6706 complete_target_initialization.
6707 (target_supports_terminal_ours): Use regular delegation.
6708 (update_current_target): Delete.
6709 (push_target): No longer check magic number. Don't call
6710 update_current_target.
6711 (unpush_target): Don't call update_current_target.
6712 (target_is_pushed): No longer check magic number.
6713 (target_require_runnable): Skip for all stratums over
6714 process_stratum.
6715 (target_ops::info_proc): New.
6716 (target_info_proc): Use find_target_at and
6717 find_default_run_target.
6718 (target_supports_disable_randomization): Use regular delegation.
6719 (target_get_osdata): Use find_target_at.
6720 (target_ops::open, target_ops::close, target_ops::can_attach)
6721 (target_ops::attach, target_ops::can_create_inferior)
6722 (target_ops::create_inferior, target_ops::can_run)
6723 (target_can_run): New.
6724 (default_fileio_target): Use regular delegation.
6725 (target_ops::fileio_open, target_ops::fileio_pwrite)
6726 (target_ops::fileio_pread, target_ops::fileio_fstat)
6727 (target_ops::fileio_close, target_ops::fileio_unlink)
6728 (target_ops::fileio_readlink): New.
6729 (target_fileio_open_1, target_fileio_unlink)
6730 (target_fileio_readlink): Always call the target method. Handle
6731 FILEIO_ENOSYS.
6732 (return_zero, return_zero_has_execution): Delete.
6733 (init_dummy_target): Delete.
6734 (dummy_target::dummy_target, dummy_target::shortname)
6735 (dummy_target::longname, dummy_target::doc)
6736 (debug_target::debug_target, debug_target::shortname)
6737 (debug_target::longname, debug_target::doc): New.
6738 (target_supports_delete_record): Use regular delegation.
6739 (setup_target_debug): Delete.
6740 (maintenance_print_target_stack): Skip debug_stratum.
6741 (initialize_targets): Instantiate the_dummy_target and
6742 the_debug_target.
6743 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
6744 use target_stack.
6745 (target_auxv_search, fprint_target_auxv): Adjust.
6746 (info_auxv_command): Adjust to use target_stack.
6747 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
6748 * exceptions.c (print_flush): Handle a NULL target_stack.
6749 * regcache.c (target_ops_no_register): Refactor as class with
6750 virtual methods.
6751
6752 * exec.c (exec_target): New class.
6753 (exec_ops): Now an exec_target.
6754 (exec_open, exec_close_1, exec_get_section_table)
6755 (exec_xfer_partial, exec_files_info, exec_has_memory)
6756 (exec_make_note_section): Refactor as exec_target methods.
6757 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
6758 Delete.
6759 (exec_target::find_memory_regions): New.
6760 (_initialize_exec): Don't call init_exec_ops.
6761 * gdbcore.h (exec_file_clear): Delete.
6762
6763 * corefile.c (core_target): Delete.
6764 (core_file_command): Adjust.
6765 * corelow.c (core_target): New class.
6766 (the_core_target): New.
6767 (core_close): Remove target_ops parameter.
6768 (core_close_cleanup): Adjust.
6769 (core_target::close): New.
6770 (core_open, core_detach, get_core_registers, core_files_info)
6771 (core_xfer_partial, core_thread_alive, core_read_description)
6772 (core_pid_to_str, core_thread_name, core_has_memory)
6773 (core_has_stack, core_has_registers, core_info_proc): Rework as
6774 core_target methods.
6775 (ignore, core_remove_breakpoint, init_core_ops): Delete.
6776 (_initialize_corelow): Initialize the_core_target.
6777 * gdbcore.h (core_target): Delete.
6778 (the_core_target): New.
6779
6780 * ctf.c: (ctf_target): New class.
6781 (ctf_ops): Now a ctf_target.
6782 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
6783 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
6784 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
6785 methods.
6786 (init_ctf_ops): Delete.
6787 (_initialize_ctf): Don't call it.
6788 * tracefile-tfile.c (tfile_target): New class.
6789 (tfile_ops): Now a tfile_target.
6790 (tfile_open, tfile_close, tfile_files_info)
6791 (tfile_get_tracepoint_status, tfile_trace_find)
6792 (tfile_fetch_registers, tfile_xfer_partial)
6793 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
6794 Refactor as tfile_target methods.
6795 (tfile_xfer_partial_features): Remove target_ops parameter.
6796 (init_tfile_ops): Delete.
6797 (_initialize_tracefile_tfile): Don't call it.
6798 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
6799 (tracefile_has_stack, tracefile_has_registers)
6800 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
6801 tracefile_target methods.
6802 (init_tracefile_ops): Delete.
6803 (tracefile_target::tracefile_target): New.
6804 * tracefile.h: Include "target.h".
6805 (tracefile_target): New class.
6806 (init_tracefile_ops): Delete.
6807
6808 * spu-multiarch.c (spu_multiarch_target): New class.
6809 (spu_ops): Now a spu_multiarch_target.
6810 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
6811 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
6812 (spu_search_memory, spu_mourn_inferior): Refactor as
6813 spu_multiarch_target methods.
6814 (init_spu_ops): Delete.
6815 (_initialize_spu_multiarch): Remove references to init_spu_ops,
6816 complete_target_initialization.
6817
6818 * ravenscar-thread.c (ravenscar_thread_target): New class.
6819 (ravenscar_ops): Now a ravenscar_thread_target.
6820 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
6821 (ravenscar_thread_alive, ravenscar_pid_to_str)
6822 (ravenscar_fetch_registers, ravenscar_store_registers)
6823 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
6824 (ravenscar_stopped_by_hw_breakpoint)
6825 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
6826 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
6827 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
6828 methods.
6829 (init_ravenscar_thread_ops): Delete.
6830 (_initialize_ravenscar): Remove references to
6831 init_ravenscar_thread_ops and complete_target_initialization.
6832
6833 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
6834 (bsd_uthread_target): New class.
6835 (bsd_uthread_ops): Now a bsd_uthread_target.
6836 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
6837 (bsd_uthread_close, bsd_uthread_mourn_inferior)
6838 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
6839 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
6840 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
6841 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
6842 (bsd_uthread_target): Delete function.
6843 (_initialize_bsd_uthread): Remove reference to
6844 complete_target_initialization.
6845
6846 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
6847 (target_bfd): ... this new class.
6848 (target_bfd_xfer_partial, target_bfd_get_section_table)
6849 (target_bfd_close): Refactor as target_bfd methods.
6850 (target_bfd::~target_bfd): New.
6851 (target_bfd_reopen): Adjust.
6852 (target_bfd::close): New.
6853
6854 * record-btrace.c (record_btrace_target): New class.
6855 (record_btrace_ops): Now a record_btrace_target.
6856 (record_btrace_open, record_btrace_stop_recording)
6857 (record_btrace_disconnect, record_btrace_close)
6858 (record_btrace_async, record_btrace_info)
6859 (record_btrace_insn_history, record_btrace_insn_history_range)
6860 (record_btrace_insn_history_from, record_btrace_call_history)
6861 (record_btrace_call_history_range)
6862 (record_btrace_call_history_from, record_btrace_record_method)
6863 (record_btrace_is_replaying, record_btrace_will_replay)
6864 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
6865 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
6866 (record_btrace_store_registers, record_btrace_prepare_to_store)
6867 (record_btrace_to_get_unwinder)
6868 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
6869 (record_btrace_commit_resume, record_btrace_wait)
6870 (record_btrace_stop, record_btrace_can_execute_reverse)
6871 (record_btrace_stopped_by_sw_breakpoint)
6872 (record_btrace_supports_stopped_by_sw_breakpoint)
6873 (record_btrace_stopped_by_hw_breakpoint)
6874 (record_btrace_supports_stopped_by_hw_breakpoint)
6875 (record_btrace_update_thread_list, record_btrace_thread_alive)
6876 (record_btrace_goto_begin, record_btrace_goto_end)
6877 (record_btrace_goto, record_btrace_stop_replaying_all)
6878 (record_btrace_execution_direction)
6879 (record_btrace_prepare_to_generate_core)
6880 (record_btrace_done_generating_core): Refactor as
6881 record_btrace_target methods.
6882 (init_record_btrace_ops): Delete.
6883 (_initialize_record_btrace): Remove reference to
6884 init_record_btrace_ops.
6885 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
6886 the execution_direction global.
6887 (record_full_base_target, record_full_target)
6888 (record_full_core_target): New classes.
6889 (record_full_ops): Now a record_full_target.
6890 (record_full_core_ops): Now a record_full_core_target.
6891 (record_full_target::detach, record_full_target::disconnect)
6892 (record_full_core_target::disconnect)
6893 (record_full_target::mourn_inferior, record_full_target::kill):
6894 New.
6895 (record_full_open, record_full_close, record_full_async): Refactor
6896 as methods of the record_full_base_target class.
6897 (record_full_resume, record_full_commit_resume): Refactor
6898 as methods of the record_full_target class.
6899 (record_full_wait, record_full_stopped_by_watchpoint)
6900 (record_full_stopped_data_address)
6901 (record_full_stopped_by_sw_breakpoint)
6902 (record_full_supports_stopped_by_sw_breakpoint)
6903 (record_full_stopped_by_hw_breakpoint)
6904 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
6905 methods of the record_full_base_target class.
6906 (record_full_store_registers, record_full_xfer_partial)
6907 (record_full_insert_breakpoint, record_full_remove_breakpoint):
6908 Refactor as methods of the record_full_target class.
6909 (record_full_can_execute_reverse, record_full_get_bookmark)
6910 (record_full_goto_bookmark, record_full_execution_direction)
6911 (record_full_record_method, record_full_info, record_full_delete)
6912 (record_full_is_replaying, record_full_will_replay)
6913 (record_full_goto_begin, record_full_goto_end, record_full_goto)
6914 (record_full_stop_replaying): Refactor as methods of the
6915 record_full_base_target class.
6916 (record_full_core_resume, record_full_core_kill)
6917 (record_full_core_fetch_registers)
6918 (record_full_core_prepare_to_store)
6919 (record_full_core_store_registers, record_full_core_xfer_partial)
6920 (record_full_core_insert_breakpoint)
6921 (record_full_core_remove_breakpoint)
6922 (record_full_core_has_execution): Refactor
6923 as methods of the record_full_core_target class.
6924 (record_full_base_target::supports_delete_record): New.
6925 (init_record_full_ops): Delete.
6926 (init_record_full_core_ops): Delete.
6927 (record_full_save): Refactor as method of the
6928 record_full_base_target class.
6929 (_initialize_record_full): Remove references to
6930 init_record_full_ops and init_record_full_core_ops.
6931
6932 * remote.c (remote_target, extended_remote_target): New classes.
6933 (remote_ops): Now a remote_target.
6934 (extended_remote_ops): Now an extended_remote_target.
6935 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
6936 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
6937 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
6938 (remote_pass_signals, remote_set_syscall_catchpoint)
6939 (remote_program_signals, )
6940 (remote_thread_always_alive): Remove target_ops parameter.
6941 (remote_thread_alive, remote_thread_name)
6942 (remote_update_thread_list, remote_threads_extra_info)
6943 (remote_static_tracepoint_marker_at)
6944 (remote_static_tracepoint_markers_by_strid)
6945 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
6946 (remote_open): Refactor as methods of remote_target.
6947 (extended_remote_open, extended_remote_detach)
6948 (extended_remote_attach, extended_remote_post_attach):
6949 (extended_remote_supports_disable_randomization)
6950 (extended_remote_create_inferior): : Refactor as method of
6951 extended_remote_target.
6952 (remote_set_permissions, remote_open_1, remote_detach)
6953 (remote_follow_fork, remote_follow_exec, remote_disconnect)
6954 (remote_resume, remote_commit_resume, remote_stop)
6955 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
6956 (remote_terminal_ours, remote_wait, remote_fetch_registers)
6957 (remote_prepare_to_store, remote_store_registers)
6958 (remote_flash_erase, remote_flash_done, remote_files_info)
6959 (remote_kill, remote_mourn, remote_insert_breakpoint)
6960 (remote_remove_breakpoint, remote_insert_watchpoint)
6961 (remote_watchpoint_addr_within_range)
6962 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
6963 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
6964 (remote_supports_stopped_by_sw_breakpoint)
6965 (remote_stopped_by_hw_breakpoint)
6966 (remote_supports_stopped_by_hw_breakpoint)
6967 (remote_stopped_by_watchpoint, remote_stopped_data_address)
6968 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
6969 (remote_verify_memory): Refactor as methods of remote_target.
6970 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
6971 parameter.
6972 (remote_xfer_partial, remote_get_memory_xfer_limit)
6973 (remote_search_memory, remote_rcmd, remote_memory_map)
6974 (remote_pid_to_str, remote_get_thread_local_address)
6975 (remote_get_tib_address, remote_read_description): Refactor as
6976 methods of remote_target.
6977 (remote_target::fileio_open, remote_target::fileio_pwrite)
6978 (remote_target::fileio_pread, remote_target::fileio_close): New.
6979 (remote_hostio_readlink, remote_hostio_fstat)
6980 (remote_filesystem_is_local, remote_can_execute_reverse)
6981 (remote_supports_non_stop, remote_supports_disable_randomization)
6982 (remote_supports_multi_process, remote_supports_cond_breakpoints)
6983 (remote_supports_enable_disable_tracepoint)
6984 (remote_supports_string_tracing)
6985 (remote_can_run_breakpoint_commands, remote_trace_init)
6986 (remote_download_tracepoint, remote_can_download_tracepoint)
6987 (remote_download_trace_state_variable, remote_enable_tracepoint)
6988 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
6989 (remote_trace_start, remote_get_trace_status)
6990 (remote_get_tracepoint_status, remote_trace_stop)
6991 (remote_trace_find, remote_get_trace_state_variable_value)
6992 (remote_save_trace_data, remote_get_raw_trace_data)
6993 (remote_set_disconnected_tracing, remote_core_of_thread)
6994 (remote_set_circular_trace_buffer, remote_traceframe_info)
6995 (remote_get_min_fast_tracepoint_insn_len)
6996 (remote_set_trace_buffer_size, remote_set_trace_notes)
6997 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
6998 (remote_disable_btrace, remote_teardown_btrace)
6999 (remote_read_btrace, remote_btrace_conf)
7000 (remote_augmented_libraries_svr4_read, remote_load)
7001 (remote_pid_to_exec_file, remote_can_do_single_step)
7002 (remote_execution_direction, remote_thread_handle_to_thread_info):
7003 Refactor as methods of remote_target.
7004 (init_remote_ops, init_extended_remote_ops): Delete.
7005 (remote_can_async_p, remote_is_async_p, remote_async)
7006 (remote_thread_events, remote_upload_tracepoints)
7007 (remote_upload_trace_state_variables): Refactor as methods of
7008 remote_target.
7009 (_initialize_remote): Remove references to init_remote_ops and
7010 init_extended_remote_ops.
7011
7012 * remote-sim.c (gdbsim_target): New class.
7013 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
7014 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
7015 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
7016 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
7017 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
7018 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
7019 Refactor as methods of gdbsim_target.
7020 (gdbsim_ops): Now a gdbsim_target.
7021 (init_gdbsim_ops): Delete.
7022 (gdbsim_cntrl_c): Adjust.
7023 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
7024
7025 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
7026 (the_amd64_linux_nat_target): New.
7027 (amd64_linux_fetch_inferior_registers)
7028 (amd64_linux_store_inferior_registers): Refactor as methods of
7029 amd64_linux_nat_target.
7030 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
7031 * i386-linux-nat.c: Don't include "linux-nat.h".
7032 (i386_linux_nat_target): New class.
7033 (the_i386_linux_nat_target): New.
7034 (i386_linux_fetch_inferior_registers)
7035 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
7036 as methods of i386_linux_nat_target.
7037 (_initialize_i386_linux_nat): Adjust. Set linux_target.
7038 * inf-child.c (inf_child_ops): Delete.
7039 (inf_child_fetch_inferior_registers)
7040 (inf_child_store_inferior_registers): Delete.
7041 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
7042 methods of inf_child_target.
7043 (inf_child_target::supports_terminal_ours)
7044 (inf_child_target::terminal_init)
7045 (inf_child_target::terminal_inferior)
7046 (inf_child_target::terminal_ours_for_output)
7047 (inf_child_target::terminal_ours, inf_child_target::interrupt)
7048 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
7049 New.
7050 (inf_child_open, inf_child_disconnect, inf_child_close)
7051 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
7052 (inf_child_post_startup_inferior, inf_child_can_run)
7053 (inf_child_pid_to_exec_file): Refactor as methods of
7054 inf_child_target.
7055 (inf_child_follow_fork): Delete.
7056 (inf_child_target::can_create_inferior)
7057 (inf_child_target::can_attach): New.
7058 (inf_child_target::has_all_memory, inf_child_target::has_memory)
7059 (inf_child_target::has_stack, inf_child_target::has_registers)
7060 (inf_child_target::has_execution): New.
7061 (inf_child_fileio_open, inf_child_fileio_pwrite)
7062 (inf_child_fileio_pread, inf_child_fileio_fstat)
7063 (inf_child_fileio_close, inf_child_fileio_unlink)
7064 (inf_child_fileio_readlink, inf_child_use_agent)
7065 (inf_child_can_use_agent): Refactor as methods of
7066 inf_child_target.
7067 (return_zero, inf_child_target): Delete.
7068 (inf_child_target::inf_child_target): New.
7069 * inf-child.h: Include "target.h".
7070 (inf_child_target): Delete function prototype.
7071 (inf_child_target): New class.
7072 (inf_child_open_target, inf_child_mourn_inferior)
7073 (inf_child_maybe_unpush_target): Delete.
7074 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
7075 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
7076 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
7077 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
7078 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
7079 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
7080 (inf_ptrace_wait, inf_ptrace_xfer_partial)
7081 (inf_ptrace_thread_alive, inf_ptrace_files_info)
7082 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
7083 methods of inf_ptrace_target.
7084 (inf_ptrace_target): Delete function.
7085 * inf-ptrace.h: Include "inf-child.h".
7086 (inf_ptrace_target): Delete function declaration.
7087 (inf_ptrace_target): New class.
7088 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
7089 * linux-nat.c (linux_target): New.
7090 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
7091 (linux_nat_target::~linux_nat_target): New.
7092 (linux_child_post_attach, linux_child_post_startup_inferior)
7093 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
7094 (linux_child_remove_fork_catchpoint)
7095 (linux_child_insert_vfork_catchpoint)
7096 (linux_child_remove_vfork_catchpoint)
7097 (linux_child_insert_exec_catchpoint)
7098 (linux_child_remove_exec_catchpoint)
7099 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
7100 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
7101 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
7102 (linux_nat_stopped_data_address)
7103 (linux_nat_stopped_by_sw_breakpoint)
7104 (linux_nat_supports_stopped_by_sw_breakpoint)
7105 (linux_nat_stopped_by_hw_breakpoint)
7106 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
7107 (linux_nat_kill, linux_nat_mourn_inferior)
7108 (linux_nat_xfer_partial, linux_nat_thread_alive)
7109 (linux_nat_update_thread_list, linux_nat_pid_to_str)
7110 (linux_nat_thread_name, linux_child_pid_to_exec_file)
7111 (linux_child_static_tracepoint_markers_by_strid)
7112 (linux_nat_is_async_p, linux_nat_can_async_p)
7113 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
7114 (linux_nat_supports_multi_process)
7115 (linux_nat_supports_disable_randomization, linux_nat_async)
7116 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
7117 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
7118 (linux_nat_fileio_open, linux_nat_fileio_readlink)
7119 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
7120 methods of linux_nat_target.
7121 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
7122 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
7123 parameter.
7124 (check_stopped_by_watchpoint): Adjust.
7125 (linux_xfer_partial): Delete.
7126 (linux_target_install_ops, linux_target, linux_nat_add_target):
7127 Delete.
7128 (linux_nat_target::linux_nat_target): New.
7129 * linux-nat.h: Include "inf-ptrace.h".
7130 (linux_nat_target): New.
7131 (linux_target, linux_target_install_ops, linux_nat_add_target):
7132 Delete function declarations.
7133 (linux_target): Declare global.
7134 * linux-thread-db.c (thread_db_target): New.
7135 (thread_db_target::thread_db_target): New.
7136 (thread_db_ops): Delete.
7137 (the_thread_db_target): New.
7138 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
7139 (thread_db_update_thread_list, thread_db_pid_to_str)
7140 (thread_db_extra_thread_info)
7141 (thread_db_thread_handle_to_thread_info)
7142 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
7143 (thread_db_resume): Refactor as methods of thread_db_target.
7144 (init_thread_db_ops): Delete.
7145 (_initialize_thread_db): Remove reference to init_thread_db_ops.
7146 * x86-linux-nat.c: Don't include "linux-nat.h".
7147 (super_post_startup_inferior): Delete.
7148 (x86_linux_nat_target::~x86_linux_nat_target): New.
7149 (x86_linux_child_post_startup_inferior)
7150 (x86_linux_read_description, x86_linux_enable_btrace)
7151 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
7152 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
7153 methods of x86_linux_nat_target.
7154 (x86_linux_create_target): Delete. Bits folded ...
7155 (x86_linux_add_target): ... here. Now takes a linux_nat_target
7156 pointer.
7157 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
7158 (x86_linux_nat_target): New class.
7159 (x86_linux_create_target): Delete.
7160 (x86_linux_add_target): Now takes a linux_nat_target pointer.
7161 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
7162 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
7163 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
7164 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
7165 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
7166 make extern.
7167 (x86_use_watchpoints): Delete.
7168 * x86-nat.h: Include "breakpoint.h" and "target.h".
7169 (x86_use_watchpoints): Delete.
7170 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
7171 (x86_stopped_by_watchpoint, x86_stopped_data_address)
7172 (x86_insert_watchpoint, x86_remove_watchpoint)
7173 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
7174 (x86_stopped_by_hw_breakpoint): New declarations.
7175 (x86_nat_target): New template class.
7176
7177 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
7178 (the_ppc_linux_nat_target): New.
7179 (ppc_linux_fetch_inferior_registers)
7180 (ppc_linux_can_use_hw_breakpoint)
7181 (ppc_linux_region_ok_for_hw_watchpoint)
7182 (ppc_linux_ranged_break_num_registers)
7183 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
7184 (ppc_linux_insert_mask_watchpoint)
7185 (ppc_linux_remove_mask_watchpoint)
7186 (ppc_linux_can_accel_watchpoint_condition)
7187 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
7188 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
7189 (ppc_linux_watchpoint_addr_within_range)
7190 (ppc_linux_masked_watch_num_registers)
7191 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
7192 (ppc_linux_read_description): Refactor as methods of
7193 ppc_linux_nat_target.
7194 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
7195
7196 * procfs.c (procfs_xfer_partial): Delete forward declaration.
7197 (procfs_target): New class.
7198 (the_procfs_target): New.
7199 (procfs_target): Delete function.
7200 (procfs_auxv_parse, procfs_attach, procfs_detach)
7201 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
7202 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
7203 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
7204 (procfs_create_inferior, procfs_update_thread_list)
7205 (procfs_thread_alive, procfs_pid_to_str)
7206 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
7207 (procfs_stopped_data_address, procfs_insert_watchpoint)
7208 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
7209 (proc_find_memory_regions, procfs_info_proc)
7210 (procfs_make_note_section): Refactor as methods of procfs_target.
7211 (_initialize_procfs): Adjust.
7212 * sol-thread.c (sol_thread_target): New class.
7213 (sol_thread_ops): Now a sol_thread_target.
7214 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
7215 (sol_thread_fetch_registers, sol_thread_store_registers)
7216 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
7217 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
7218 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
7219 (init_sol_thread_ops): Delete.
7220 (_initialize_sol_thread): Adjust. Remove references to
7221 init_sol_thread_ops and complete_target_initialization.
7222
7223 * windows-nat.c (windows_nat_target): New class.
7224 (windows_fetch_inferior_registers)
7225 (windows_store_inferior_registers, windows_resume, windows_wait)
7226 (windows_attach, windows_detach, windows_pid_to_exec_file)
7227 (windows_files_info, windows_create_inferior)
7228 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
7229 (windows_close, windows_pid_to_str, windows_xfer_partial)
7230 (windows_get_tib_address, windows_get_ada_task_ptid)
7231 (windows_thread_name, windows_thread_alive): Refactor as
7232 windows_nat_target methods.
7233 (do_initial_windows_stuff): Adjust.
7234 (windows_target): Delete function.
7235 (_initialize_windows_nat): Adjust.
7236
7237 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
7238 (darwin_mourn_inferior, darwin_kill_inferior)
7239 (darwin_create_inferior, darwin_attach, darwin_detach)
7240 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
7241 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
7242 (darwin_supports_multi_process): Refactor as darwin_nat_target
7243 methods.
7244 (darwin_resume_to, darwin_files_info): Delete.
7245 (_initialize_darwin_inferior): Rename to ...
7246 (_initialize_darwin_nat): ... this. Adjust to C++ification.
7247 * darwin-nat.h: Include "inf-child.h".
7248 (darwin_nat_target): New class.
7249 (darwin_complete_target): Delete.
7250 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
7251 (darwin_target): New.
7252 (i386_darwin_fetch_inferior_registers)
7253 (i386_darwin_store_inferior_registers): Refactor as methods of
7254 darwin_nat_target.
7255 (darwin_complete_target): Delete, with ...
7256 (_initialize_i386_darwin_nat): ... bits factored out here.
7257
7258 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
7259 (the_alpha_linux_nat_target): New.
7260 (alpha_linux_register_u_offset): Refactor as
7261 alpha_linux_nat_target method.
7262 (_initialize_alpha_linux_nat): Adjust.
7263 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
7264 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
7265 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
7266 methods of linux_nat_trad_target.
7267 (linux_trad_target): Delete.
7268 * linux-nat-trad.h (linux_trad_target): Delete function.
7269 (linux_nat_trad_target): New class.
7270 * mips-linux-nat.c (mips_linux_nat_target): New class.
7271 (super_fetch_registers, super_store_registers, super_close):
7272 Delete.
7273 (the_mips_linux_nat_target): New.
7274 (mips64_linux_regsets_fetch_registers)
7275 (mips64_linux_regsets_store_registers)
7276 (mips64_linux_fetch_registers, mips64_linux_store_registers)
7277 (mips_linux_register_u_offset, mips_linux_read_description)
7278 (mips_linux_can_use_hw_breakpoint)
7279 (mips_linux_stopped_by_watchpoint)
7280 (mips_linux_stopped_data_address)
7281 (mips_linux_region_ok_for_hw_watchpoint)
7282 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
7283 (mips_linux_close): Refactor as methods of mips_linux_nat.
7284 (_initialize_mips_linux_nat): Adjust to C++ification.
7285
7286 * aix-thread.c (aix_thread_target): New class.
7287 (aix_thread_ops): Now an aix_thread_target.
7288 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
7289 (aix_thread_fetch_registers, aix_thread_store_registers)
7290 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
7291 (aix_thread_thread_alive, aix_thread_pid_to_str)
7292 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
7293 Refactor as methods of aix_thread_target.
7294 (init_aix_thread_ops): Delete.
7295 (_initialize_aix_thread): Remove references to init_aix_thread_ops
7296 and complete_target_initialization.
7297 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
7298 (rs6000_nat_target): New class.
7299 (the_rs6000_nat_target): New.
7300 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
7301 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
7302 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
7303 (super_create_inferior): Delete.
7304 (_initialize_rs6000_nat): Adjust to C++ification.
7305
7306 * arm-linux-nat.c (arm_linux_nat_target): New class.
7307 (the_arm_linux_nat_target): New.
7308 (arm_linux_fetch_inferior_registers)
7309 (arm_linux_store_inferior_registers, arm_linux_read_description)
7310 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
7311 (arm_linux_remove_hw_breakpoint)
7312 (arm_linux_region_ok_for_hw_watchpoint)
7313 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
7314 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
7315 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
7316 arm_linux_nat_target.
7317 (_initialize_arm_linux_nat): Adjust to C++ification.
7318
7319 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
7320 (the_aarch64_linux_nat_target): New.
7321 (aarch64_linux_fetch_inferior_registers)
7322 (aarch64_linux_store_inferior_registers)
7323 (aarch64_linux_child_post_startup_inferior)
7324 (aarch64_linux_read_description)
7325 (aarch64_linux_can_use_hw_breakpoint)
7326 (aarch64_linux_insert_hw_breakpoint)
7327 (aarch64_linux_remove_hw_breakpoint)
7328 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
7329 (aarch64_linux_region_ok_for_hw_watchpoint)
7330 (aarch64_linux_stopped_data_address)
7331 (aarch64_linux_stopped_by_watchpoint)
7332 (aarch64_linux_watchpoint_addr_within_range)
7333 (aarch64_linux_can_do_single_step): Refactor as methods of
7334 aarch64_linux_nat_target.
7335 (super_post_startup_inferior): Delete.
7336 (_initialize_aarch64_linux_nat): Adjust to C++ification.
7337
7338 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
7339 (the_hppa_linux_nat_target): New.
7340 (hppa_linux_fetch_inferior_registers)
7341 (hppa_linux_store_inferior_registers): Refactor as methods of
7342 hppa_linux_nat_target.
7343 (_initialize_hppa_linux_nat): Adjust to C++ification.
7344
7345 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
7346 (the_ia64_linux_nat_target): New.
7347 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
7348 (ia64_linux_stopped_data_address)
7349 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
7350 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
7351 ia64_linux_nat_target methods.
7352 (super_xfer_partial): Delete.
7353 (_initialize_ia64_linux_nat): Adjust to C++ification.
7354
7355 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
7356 (the_m32r_linux_nat_target): New.
7357 (m32r_linux_fetch_inferior_registers)
7358 (m32r_linux_store_inferior_registers): Refactor as
7359 m32r_linux_nat_target methods.
7360 (_initialize_m32r_linux_nat): Adjust to C++ification.
7361
7362 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
7363 (the_m68k_linux_nat_target): New.
7364 (m68k_linux_fetch_inferior_registers)
7365 (m68k_linux_store_inferior_registers): Refactor as
7366 m68k_linux_nat_target methods.
7367 (_initialize_m68k_linux_nat): Adjust to C++ification.
7368
7369 * s390-linux-nat.c (s390_linux_nat_target): New class.
7370 (the_s390_linux_nat_target): New.
7371 (s390_linux_fetch_inferior_registers)
7372 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
7373 (s390_insert_watchpoint, s390_remove_watchpoint)
7374 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
7375 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
7376 (s390_auxv_parse, s390_read_description): Refactor as methods of
7377 s390_linux_nat_target.
7378 (_initialize_s390_nat): Adjust to C++ification.
7379
7380 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
7381 (the_sparc_linux_nat_target): New.
7382 (_initialize_sparc_linux_nat): Adjust to C++ification.
7383 * sparc-nat.c (sparc_fetch_inferior_registers)
7384 (sparc_store_inferior_registers): Remove target_ops parameter.
7385 * sparc-nat.h (sparc_fetch_inferior_registers)
7386 (sparc_store_inferior_registers): Remove target_ops parameter.
7387 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
7388 (the_sparc64_linux_nat_target): New.
7389 (_initialize_sparc64_linux_nat): Adjust to C++ification.
7390
7391 * spu-linux-nat.c (spu_linux_nat_target): New class.
7392 (the_spu_linux_nat_target): New.
7393 (spu_child_post_startup_inferior, spu_child_post_attach)
7394 (spu_child_wait, spu_fetch_inferior_registers)
7395 (spu_store_inferior_registers, spu_xfer_partial)
7396 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
7397 methods.
7398 (_initialize_spu_nat): Adjust to C++ification.
7399
7400 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
7401 (the_tilegx_linux_nat_target): New.
7402 (fetch_inferior_registers, store_inferior_registers):
7403 Refactor as methods.
7404 (_initialize_tile_linux_nat): Adjust to C++ification.
7405
7406 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
7407 (the_xtensa_linux_nat_target): New.
7408 (xtensa_linux_fetch_inferior_registers)
7409 (xtensa_linux_store_inferior_registers): Refactor as
7410 xtensa_linux_nat_target methods.
7411 (_initialize_xtensa_linux_nat): Adjust to C++ification.
7412
7413 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
7414 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
7415 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
7416 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
7417 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
7418 (fbsd_stopped_by_sw_breakpoint)
7419 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
7420 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
7421 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
7422 (fbsd_post_startup_inferior, fbsd_post_attach)
7423 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
7424 (fbsd_set_syscall_catchpoint)
7425 (super_xfer_partial, super_resume, super_wait)
7426 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
7427 (fbsd_handle_debug_trap): Remove target_ops parameter.
7428 (fbsd_nat_add_target): Delete.
7429 * fbsd-nat.h: Include "inf-ptrace.h".
7430 (fbsd_nat_add_target): Delete.
7431 (USE_SIGTRAP_SIGINFO): Define.
7432 (fbsd_nat_target): New class.
7433
7434 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
7435 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
7436 (amd64bsd_target): Delete.
7437 * amd64-bsd-nat.h: New file.
7438 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
7439 "x86-bsd-nat.h".
7440 (amd64_fbsd_nat_target): New class.
7441 (the_amd64_fbsd_nat_target): New.
7442 (amd64fbsd_read_description): Refactor as method of
7443 amd64_fbsd_nat_target.
7444 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
7445 (_initialize_amd64fbsd_nat): Adjust to C++ification.
7446 * amd64-nat.h (amd64bsd_target): Delete function declaration.
7447 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
7448 (i386bsd_store_inferior_registers): Remove target_ops parameter.
7449 (i386bsd_target): Delete.
7450 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
7451 (i386bsd_fetch_inferior_registers)
7452 (i386bsd_store_inferior_registers): Declare.
7453 (i386_bsd_nat_target): New class.
7454 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
7455 (the_i386_fbsd_nat_target): New.
7456 (i386fbsd_resume, i386fbsd_read_description): Refactor as
7457 i386_fbsd_nat_target methods.
7458 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
7459 (_initialize_i386fbsd_nat): Adjust to C++ification.
7460 * x86-bsd-nat.c (super_mourn_inferior): Delete.
7461 (x86bsd_mourn_inferior, x86bsd_target): Delete.
7462 (_initialize_x86_bsd_nat): Adjust to C++ification.
7463 * x86-bsd-nat.h: Include "x86-nat.h".
7464 (x86bsd_target): Delete declaration.
7465 (x86bsd_nat_target): New class.
7466
7467 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
7468 (the_aarch64_fbsd_nat_target): New.
7469 (aarch64_fbsd_fetch_inferior_registers)
7470 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
7471 aarch64_fbsd_nat_target.
7472 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
7473 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
7474 (the_alpha_bsd_nat_target): New.
7475 (alphabsd_fetch_inferior_registers)
7476 (alphabsd_store_inferior_registers): Refactor as
7477 alpha_bsd_nat_target methods.
7478 (_initialize_alphabsd_nat): Refactor as methods of
7479 alpha_bsd_nat_target.
7480 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
7481 (the_amd64_nbsd_nat_target): New.
7482 (_initialize_amd64nbsd_nat): Adjust to C++ification.
7483 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
7484 (the_amd64_obsd_nat_target): New.
7485 (_initialize_amd64obsd_nat): Adjust to C++ification.
7486 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
7487 (the_arm_fbsd_nat_target): New.
7488 (arm_fbsd_fetch_inferior_registers)
7489 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
7490 (_initialize_arm_fbsd_nat): Refactor as methods of
7491 arm_fbsd_nat_target.
7492 (_initialize_arm_fbsd_nat): Adjust to C++ification.
7493 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
7494 (the_arm_netbsd_nat_target): New.
7495 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
7496 arm_netbsd_nat_target.
7497 (_initialize_arm_netbsd_nat): Adjust to C++ification.
7498 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
7499 (the_hppa_nbsd_nat_target): New.
7500 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
7501 hppa_nbsd_nat_target methods.
7502 (_initialize_hppanbsd_nat): Adjust to C++ification.
7503 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
7504 (the_hppa_obsd_nat_target): New.
7505 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
7506 methods of hppa_obsd_nat_target.
7507 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
7508 add_target.
7509 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
7510 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
7511 add_target.
7512 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
7513 (_initialize_i386obsd_nat): Use add_target.
7514 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
7515 (the_m68k_bsd_nat_target): New.
7516 (m68kbsd_fetch_inferior_registers)
7517 (m68kbsd_store_inferior_registers): Refactor as methods of
7518 m68k_bsd_nat_target.
7519 (_initialize_m68kbsd_nat): Adjust to C++ification.
7520 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
7521 (the_mips_fbsd_nat_target): New.
7522 (mips_fbsd_fetch_inferior_registers)
7523 (mips_fbsd_store_inferior_registers): Refactor as methods of
7524 mips_fbsd_nat_target.
7525 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
7526 add_target.
7527 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
7528 (the_mips_nbsd_nat_target): New.
7529 (mipsnbsd_fetch_inferior_registers)
7530 (mipsnbsd_store_inferior_registers): Refactor as methods of
7531 mips_nbsd_nat_target.
7532 (_initialize_mipsnbsd_nat): Adjust to C++ification.
7533 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
7534 (the_mips64_obsd_nat_target): New.
7535 (mips64obsd_fetch_inferior_registers)
7536 (mips64obsd_store_inferior_registers): Refactor as methods of
7537 mips64_obsd_nat_target.
7538 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
7539 add_target.
7540 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
7541 nbsd_nat_target.
7542 * nbsd-nat.h: Include "inf-ptrace.h".
7543 (nbsd_nat_target): New class.
7544 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
7545 (obsd_wait): Refactor as methods of obsd_nat_target.
7546 (obsd_add_target): Delete.
7547 * obsd-nat.h: Include "inf-ptrace.h".
7548 (obsd_nat_target): New class.
7549 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
7550 (the_ppc_fbsd_nat_target): New.
7551 (ppcfbsd_fetch_inferior_registers)
7552 (ppcfbsd_store_inferior_registers): Refactor as methods of
7553 ppc_fbsd_nat_target.
7554 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
7555 add_target.
7556 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
7557 (the_ppc_nbsd_nat_target): New.
7558 (ppcnbsd_fetch_inferior_registers)
7559 (ppcnbsd_store_inferior_registers): Refactor as methods of
7560 ppc_nbsd_nat_target.
7561 (_initialize_ppcnbsd_nat): Adjust to C++ification.
7562 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
7563 (the_ppc_obsd_nat_target): New.
7564 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
7565 methods of ppc_obsd_nat_target.
7566 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
7567 add_target.
7568 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
7569 (the_sh_nbsd_nat_target): New.
7570 (shnbsd_fetch_inferior_registers)
7571 (shnbsd_store_inferior_registers): Refactor as methods of
7572 sh_nbsd_nat_target.
7573 (_initialize_shnbsd_nat): Adjust to C++ification.
7574 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
7575 (inf_ptrace_xfer_partial): Delete.
7576 (sparc_xfer_partial, sparc_target): Delete.
7577 * sparc-nat.h (sparc_fetch_inferior_registers)
7578 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
7579 (sparc_target): Delete function declaration.
7580 (sparc_target): New template class.
7581 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
7582 (_initialize_sparcnbsd_nat): Adjust to C++ification.
7583 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
7584 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
7585 add_target.
7586 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
7587 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
7588 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
7589 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
7590 add_target.
7591 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
7592 (the_vax_bsd_nat_target): New.
7593 (vaxbsd_fetch_inferior_registers)
7594 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
7595 methods.
7596 (_initialize_vaxbsd_nat): Adjust to C++ification.
7597
7598 * bsd-kvm.c (bsd_kvm_target): New class.
7599 (bsd_kvm_ops): Now a bsd_kvm_target.
7600 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
7601 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
7602 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
7603 bsd_kvm_target.
7604 (bsd_kvm_return_one): Delete.
7605 (bsd_kvm_add_target): Adjust to C++ification.
7606
7607 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
7608 (nto_procfs_target_procfs): New classes.
7609 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
7610 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
7611 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
7612 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
7613 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
7614 (procfs_remove_hw_breakpoint, procfs_resume)
7615 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
7616 (procfs_kill_inferior, procfs_store_registers)
7617 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
7618 as methods of nto_procfs_target.
7619 (nto_procfs_ops): Now an nto_procfs_target_procfs.
7620 (nto_native_ops): Delete.
7621 (procfs_open, procfs_native_open): Delete.
7622 (nto_native_ops): Now an nto_procfs_target_native.
7623 (init_procfs_targets): Adjust to C++ification.
7624 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
7625 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
7626 Refactor as methods of nto_procfs_target.
7627
7628 * go32-nat.c (go32_nat_target): New class.
7629 (the_go32_nat_target): New.
7630 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
7631 (go32_store_registers, go32_xfer_partial, go32_files_info)
7632 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
7633 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
7634 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
7635 (go32_pid_to_str): Refactor as methods of go32_nat_target.
7636 (go32_target): Delete.
7637 (_initialize_go32_nat): Adjust to C++ification.
7638
7639 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
7640 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
7641 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
7642 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
7643 gnu_nat_target.
7644 (gnu_target): Delete.
7645 * gnu-nat.h (gnu_target): Delete.
7646 (gnu_nat_target): New class.
7647 * i386-gnu-nat.c (gnu_base_target): New.
7648 (i386_gnu_nat_target): New class.
7649 (the_i386_gnu_nat_target): New.
7650 (_initialize_i386gnu_nat): Adjust to C++ification.
7651
3fffc070
PA
76522018-05-02 Pedro Alves <palves@redhat.com>
7653
7654 * bfd-target.c (target_bfd_xclose): Rename to ...
7655 (target_bfd_close): ... this.
7656 (target_bfd_reopen): Adjust.
7657 * target.c (target_close): Remove references to to_xclose.
7658 * target.h (target_ops::to_xclose): Delete.
7659 (target_ops::to_close): Update comments.
7660
6798487f
PA
76612018-05-02 Pedro Alves <palves@redhat.com>
7662
7663 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
7664 "linux-nat.h".
7665 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
7666 * inf-ptrace.c (inf_ptrace_register_u_offset)
7667 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
7668 (inf_ptrace_store_register, inf_ptrace_store_registers)
7669 (inf_ptrace_trad_target): Move to ...
7670 * linux-nat-trad.c: ... this new file.
7671 * linux-nat-trad.h: New file.
7672 * linux-nat.c (linux_target_install_ops): Make extern.
7673 (linux_trad_target): Delete.
7674 * linux-nat.h (linux_trad_target): Delete declaration.
7675 (linux_target_install_ops): Declare.
7676 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
7677 "linux-nat.h".
7678
c1955e17
PA
76792018-05-02 Pedro Alves <palves@redhat.com>
7680
7681 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
7682 procfs_target/add_target here.
7683 * procfs.c (procfs_target): Make static.
7684 (_initialize_procfs): Call add_target here.
7685 * procfs.h (struct target_ops): Remove forward declaration.
7686 (procfs_target): Remove declaration.
7687 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
7688
b5c8fcb1
PA
76892018-05-02 Pedro Alves <palves@redhat.com>
7690
7691 * procfs.c (procfs_stopped_by_watchpoint)
7692 (procfs_insert_watchpoint, procfs_remove_watchpoint)
7693 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
7694 Forward declare.
7695 (procfs_use_watchpoints): Delete, move contents...
7696 (procfs_target): ... here.
7697 * procfs.h (procfs_use_watchpoints): Delete declaration.
7698 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
7699 procfs_use_watchpoints.
7700 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
7701 procfs_use_watchpoints.
7702
0489430a
TT
77032018-05-02 Tom Tromey <tom@tromey.com>
7704
7705 PR python/20084:
7706 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
7707 and var_zuinteger_unlimited.
7708 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
7709 and PARAM_ZUINTEGER_UNLIMITED.
7710 (set_parameter_value): Handle var_zuinteger and
7711 var_zuinteger_unlimited.
7712 (add_setshow_generic): Likewise.
7713 (parmpy_init): Likewise.
7714
1632f8ba
DR
77152018-04-28 Dan Robertson <danlrobertson89@gmail.com>
7716
7717 PR rust/23124
7718 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
7719 pointer is not null before dereferencing it.
7720
76761936
TT
77212018-04-30 Tom Tromey <tom@tromey.com>
7722
7723 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
7724 is_mi_like_p.
7725
2d33446d
TT
77262018-04-30 Tom Tromey <tom@tromey.com>
7727
7728 * breakpoint.c (mention): Remove use of is_mi_like_p.
7729 (print_mention_ranged_breakpoint): Likewise.
7730 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
7731 of is_mi_like_p.
7732
f3c6abab
TT
77332018-04-30 Tom Tromey <tom@tromey.com>
7734
7735 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
7736
40c03530
TT
77372018-04-30 Tom Tromey <tom@tromey.com>
7738
7739 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
7740 (info_spu_event_command): Remove some uses of is_mi_like_p.
7741
2038b7fd
TT
77422018-04-30 Tom Tromey <tom@tromey.com>
7743
7744 * python/py-framefilter.c (py_print_single_arg)
7745 (enumerate_locals, py_print_args, py_print_frame): Remove some
7746 uses of is_mi_like_p.
7747
4904c3c6
TT
77482018-04-30 Tom Tromey <tom@tromey.com>
7749
7750 * ui-out.c: Update.
7751 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
7752 * ui-out.h (ui_out::is_mi_like_p): Now const.
7753 (ui_out::do_is_mi_like_p): Now const.
7754 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
7755
7c66fffc
TT
77562018-04-30 Tom Tromey <tom@tromey.com>
7757
7758 * varobj.c (varobj_set_visualizer): Use new_reference.
7759 * python/python.c (gdbpy_decode_line): Use new_reference.
7760 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
7761 new_reference.
7762
bbfa6f00
TT
77632018-04-30 Tom Tromey <tom@tromey.com>
7764
7765 * varobj.c (install_new_value): Use new_reference.
7766 * value.h (value_incref): Return void. Swap intro comment with
7767 value_decref.
7768 * value.c (set_value_parent): Use new_reference.
7769 (value_incref): Return void. Update intro comment.
7770 (release_value): Use new_reference.
7771 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
7772
1831a9f9
TT
77732018-04-30 Tom Tromey <tom@tromey.com>
7774
7775 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
7776 * gdb_bfd.h (new_bfd_ref): Remove.
7777 (gdb_bfd_open): Update comment.
7778 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
7779 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
7780 (gdb_bfd_fdopenr): Use new_reference.
7781 * exec.c (exec_file_attach): Use new_reference.
7782
7c1b5f3d
TT
77832018-04-30 Tom Tromey <tom@tromey.com>
7784
7785 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
7786 method.
7787
e11fb955
TT
77882018-04-30 Tom Tromey <tom@tromey.com>
7789
7790 * jit.c (jit_read_code_entry): Use type_align.
7791 * i386-tdep.c (i386_gdbarch_init): Don't call
7792 set_gdbarch_long_long_align_bit.
7793 * gdbarch.sh: Remove long_long_align_bit.
7794 * gdbarch.c, gdbarch.h: Rebuild.
7795 * arc-tdep.c (arc_type_align): New function.
7796 (arc_gdbarch_init): Use arc_type_align. Don't call
7797 set_gdbarch_long_long_align_bit.
7798
2fff16dd
TT
77992018-04-30 Tom Tromey <tom@tromey.com>
7800
7801 * rust-lang.c (rust_type_alignment): Remove.
7802 (rust_composite_type): Use type_align.
7803
6d7bb824
TT
78042018-04-30 Tom Tromey <tom@tromey.com>
7805
7806 * NEWS: Mention Type.align.
7807 * python/py-type.c (typy_get_alignof): New function.
7808 (type_object_getset): Add "alignof".
7809
007e1530
TT
78102018-04-30 Tom Tromey <tom@tromey.com>
7811
7812 PR exp/17095:
7813 * NEWS: Update.
7814 * std-operator.def (UNOP_ALIGNOF): New operator.
7815 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
7816 New.
7817 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
7818 * c-lang.c (c_op_print_tab): Add alignof.
7819 * c-exp.y (ALIGNOF): New token.
7820 (exp): Add "ALIGNOF" production.
7821 (ident_tokens): Add _Alignof and alignof.
7822
2b4424c3
TT
78232018-04-30 Tom Tromey <tom@tromey.com>
7824
7825 * i386-tdep.c (i386_type_align): New function.
7826 (i386_gdbarch_init): Update.
7827 * gdbarch.sh (type_align): New method.
7828 * gdbarch.c, gdbarch.h: Rebuild.
7829 * arch-utils.h (default_type_align): Declare.
7830 * arch-utils.c (default_type_align): New function.
7831 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
7832 (struct type) <align_log2>: New field.
7833 <instance_flags>: Now a bitfield.
7834 (TYPE_RAW_ALIGN): New macro.
7835 (type_align, type_raw_align, set_type_align): Declare.
7836 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
7837 functions.
7838 * dwarf2read.c (quirk_rust_enum): Set type alignment.
7839 (get_alignment, maybe_set_alignment): New functions.
7840 (read_structure_type, read_enumeration_type, read_array_type)
7841 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
7842 (read_subrange_type, read_base_type): Set type alignment.
7843
d33bc52e
SM
78442018-04-30 Simon Marchi <simon.marchi@ericsson.com>
7845
7846 * dwarf2read.c (read_index_from_section): Use bool.
7847
e28b63a9
FG
78482018-04-29 Fabian Groffen <grobian@gentoo.org>
7849
7850 PR gdb/22950
7851 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
7852 with #ifdef.
7853
cd8c76e4
JR
78542018-04-29 John Reiser <jreiser@BitWagon.com>
7855
7856 PR build/22873
7857 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
7858 last step, and do it atomically.
7859
476d250e
AO
78602018-04-27 Alexandre Oliva <aoliva@redhat.com>
7861
7862 * compile/compile-c-types.c (convert_int, convert_float):
7863 Update for C FE v1.
7864
6873858b
TT
78652018-04-27 Tom Tromey <tom@tromey.com>
7866
7867 PR rust/22545:
7868 * rust-lang.c (rust_inclusive_range_type_p): New function.
7869 (rust_range): Handle inclusive ranges.
7870 (rust_compute_range): Likewise.
7871 * rust-exp.y (struct rust_op) <inclusive>: New field.
7872 (DOTDOTEQ): New constant.
7873 (range_expr): Add "..=" productions.
7874 (operator_tokens): Add "..=" token.
7875 (ast_range): Add "inclusive" parameter.
7876 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
7877 ranges.
7878 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
7879 bounds values.
7880 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
7881 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
7882 Update comments.
7883 * expprint.c (print_subexp_standard): Handle new bounds values.
7884 (dump_subexp_body_standard): Likewise.
7885
632e107b
TT
78862018-04-27 Tom Tromey <tom@tromey.com>
7887
7888 * configure: Rebuild.
7889 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
7890 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
7891 "OVERRIDE".
7892 (class symbol_needs_eval_context): Likewise.
7893 * dwarf2read.c (mock_mapped_index::symbol_name_count)
7894 (mock_mapped_index::symbol_name_at): Use "override". Remove
7895 "virtual".
7896 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
7897 "override".
7898 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
7899 * aarch64-tdep.c (instruction_reader::read): Use "override".
7900 (instruction_reader_test::read): Likewise.
7901 * arm-tdep.c (instruction_reader::read): Use "override".
7902 (instruction_reader_thumb::read): Likewise.
7903
b75abf5b
AK
79042018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
7905
7906 PR remote/9665
7907 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
7908 instead of remote_send.
7909 (remote_send): Remove.
7910
79188d8d
PA
79112018-04-26 Pedro Alves <palves@redhat.com>
7912
7913 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
7914 find_function_start_sal instead of find_pc_line.
7915
f50776aa
PA
79162018-04-26 Pedro Alves <palves@redhat.com>
7917
7918 * breakpoint.c (set_breakpoint_location_function): Handle
7919 mst_data_gnu_ifunc.
7920 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
7921 * elfread.c (elf_symtab_read): Give data symbols with
7922 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
7923 (elf_rel_plt_read): Update comment.
7924 * linespec.c (convert_linespec_to_sals): Handle
7925 mst_data_gnu_ifunc.
7926 (minsym_found): Handle mst_data_gnu_ifunc.
7927 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
7928 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
7929 * parse.c (find_minsym_type_and_address): Handle
7930 mst_data_gnu_ifunc.
7931 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
7932 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
7933 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
7934 comment.
7935 <mst_data_gnu_ifunc>: New enumerator.
7936
20944a6e
PA
79372018-04-26 Pedro Alves <palves@redhat.com>
7938
7939 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
7940 (lookup_minimal_symbol_by_pc_section): ... this. Replace
7941 'want_trampoline' parameter by a lookup_msym_prefer parameter.
7942 Handle it.
7943 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
7944 (lookup_minimal_symbol_by_pc): Adjust.
7945 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
7946 (lookup_solib_trampoline_symbol_by_pc): Adjust.
7947 * minsyms.h (lookup_msym_prefer): New enum.
7948 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
7949 parameter by a lookup_msym_prefer parameter.
7950
1adeb822
PA
79512018-04-26 Pedro Alves <palves@redhat.com>
7952
7953 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
7954 ends in "@plt" instead of looking at the symbol's section.
7955
a0aca7b0
PA
79562018-04-26 Pedro Alves <palves@redhat.com>
7957
7958 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
7959 all references.
7960 (find_pc_partial_function_gnu_ifunc): Rename to ...
7961 (find_pc_partial_function): ... this, and remove references to
7962 'is_gnu_ifunc_p'.
7963 (find_pc_partial_function): Delete old implementation.
7964 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
7965
76af0f26
PA
79662018-04-26 Pedro Alves <palves@redhat.com>
7967
7968 * linespec.c (struct bound_minimal_symbol_search_key): New.
7969 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
7970 skip first line if we found a GNU ifunc minimal symbol by name.
7971 (compare_msymbols): Change parameters to work with a destructured
7972 lhs minsym.
7973 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
7974 functions.
7975
3467ec66
PA
79762018-04-26 Pedro Alves <palves@redhat.com>
7977
7978 * breakpoint.c (set_breakpoint_location_function): Don't resolve
7979 ifunc targets here. Instead, if we have an ifunc minsym, use its
7980 address/name.
7981 (add_location_to_breakpoint): Store the minsym and the objfile in
7982 the breakpoint location.
7983 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
7984 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
7985 Record the minsym in the sal.
7986 * symtab.h (symtab_and_line) <msymbol>: New field.
7987
28f4fa4d
PA
79882018-04-26 Pedro Alves <palves@redhat.com>
7989
7990 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
7991 unless we actually resolved the ifunc.
7992
ca31ab1d
PA
79932018-04-26 Pedro Alves <palves@redhat.com>
7994
7995 * c-exp.y (variable production): Prefer ifunc minsyms over
7996 regular function symbols.
7997 * symtab.c (find_gnu_ifunc): New function.
7998 * minsyms.h (lookup_msym_prefer): New enum.
7999 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
8000 parameter by a lookup_msym_prefer parameter.
8001 * symtab.h (find_gnu_ifunc): New declaration.
8002
8388016d
PA
80032018-04-26 Pedro Alves <palves@redhat.com>
8004
8005 * blockframe.c (find_gnu_ifunc_target_type): New function.
8006 (find_function_type): New.
8007 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
8008 return a value with a memory address.
8009 (eval_call): For calls to GNU ifunc functions, try to find the
8010 type of the target function from the type that the resolver
8011 returns.
8012 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
8013 symbols.
8014 * infcall.c (find_function_return_type): Delete.
8015 (find_function_addr): Add 'function_type' parameter. For calls to
8016 GNU ifunc functions, try to find the type of the target function
8017 from the type that the resolver returns, and return it via
8018 FUNCTION_TYPE.
8019 (call_function_by_hand_dummy): Adjust to use the function type
8020 returned by find_function_addr.
8021 (find_function_addr): Add 'function_type' parameter and move
8022 description here.
8023 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
8024 declarations.
8025
a376e11d
PA
80262018-04-26 Pedro Alves <palves@redhat.com>
8027
8028 * c-exp.y (variable production): Skip finding an alias for ifunc
8029 symbols.
8030
02e169e2
PA
80312018-04-26 Pedro Alves <palves@redhat.com>
8032
8033 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
8034
249b5733
PA
80352018-04-25 Pedro Alves <palves@redhat.com>
8036
8037 * infcmd.c (kill_command): Print the pid as string, not the whole
8038 thread's ptid. Add comment. s/has been killed/killed/ in output
8039 message.
8040 * remote.c (remote_detach_1): Print the pid as string, not the
8041 whole thread's ptid.
8042
f67c0c91
SDJ
80432018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8044 Sergio Durigan Junior <sergiodj@redhat.com>
8045 Pedro Alves <palves@redhat.com>
8046
8047 * infcmd.c (kill_command): Print message when inferior has
8048 been killed.
8049 * inferior.c (print_inferior_events): Remove 'static'. Set as
8050 '1'.
8051 (add_inferior): Improve message printed when
8052 'print_inferior_events' is on.
8053 (exit_inferior): Remove message printed when
8054 'print_inferior_events' is on.
8055 (detach_inferior): Improve message printed when
8056 'print_inferior_events' is on.
8057 (initialize_inferiors): Use 'add_inferior_silent' to set
8058 'current_inferior_'.
8059 * inferior.h (print_inferior_events): Declare here as
8060 'extern'.
8061 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
8062 '[Detaching...]' messages when 'print_inferior_events' is on.
8063 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
8064 as prefix/suffix for messages. Remove periods. Fix erroneous
8065 'Detaching after fork from child...', replace it by '... from
8066 parent...'.
8067 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
8068 prefix/suffix when printing 'Detaching...' messages. Print
8069 them when 'print_inferior_events' is on.
8070 * remote.c (remote_detach_1): Print message when detaching
8071 from inferior and '!is_fork_parent'.
8072
e427af18
TT
80732018-04-24 Tom Tromey <tom@tromey.com>
8074
8075 * cli-out.h: Reindent.
8076
05b1d8d6
TT
80772018-04-24 Tom Tromey <tom@tromey.com>
8078
8079 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
8080 (cli_ui_out::do_field_string): Use fputs_filtered.
8081 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
8082
a95c7dab
TT
80832018-04-23 Tom Tromey <tom@tromey.com>
8084
8085 * guile/scm-frame.c (gdbscm_frame_read_var): Use
8086 gdb::unique_xmalloc_ptr.
8087
458412c3
TT
80882018-04-23 Tom Tromey <tom@tromey.com>
8089
8090 * configure: Rebuild.
8091
db86b02b
RS
80922018-04-22 Rajendra SY <rajendra.sy@gmail.com>
8093
8094 PR gdb/23095
8095 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
8096 prepare_for_testing. Set normal_bp to r_debug_state if target
8097 is bsd.
8098
00aecdcf
PA
80992018-04-21 Pedro Alves <palves@redhat.com>
8100 Rajendra SY <rajendra.sy@gmail.com>
8101
8102 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
8103 * remote.c (extended_remote_attach): In all-stop mode, mark the
8104 thread as executing.
8105
224608c3
PW
81062018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8107
8108 * thread.c (thread_apply_all_command): Fix comment.
8109 (thread_command): Fix comment.
8110
3b74854b
AH
81112018-04-10 Alan Hayward <alan.hayward@arm.com>
8112
8113 * common/tdesc.h (tdesc_create_feature): Remove xml filename
8114 parameter.
8115 * features/aarch64-core.c (create_feature_aarch64_core):
8116 Regenerate.
8117 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
8118 Likewise.
8119 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
8120 Likewise.
8121 * features/i386/32bit-avx512.c
8122 (create_feature_i386_32bit_avx512): Likewise.
8123 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
8124 Likewise.
8125 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
8126 Likewise.
8127 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
8128 Likewise.
8129 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
8130 Likewise.
8131 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
8132 Likewise.
8133 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
8134 Likewise.
8135 * features/i386/64bit-avx512.c
8136 (create_feature_i386_64bit_avx512): Likewise.
8137 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
8138 Likewise.
8139 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
8140 Likewise.
8141 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
8142 Likewise.
8143 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
8144 Likewise.
8145 * features/i386/64bit-segments.c
8146 (create_feature_i386_64bit_segments): Likewise.
8147 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
8148 Likewise.
8149 * features/i386/x32-core.c
8150 (create_feature_i386_x32_core): Likewise.
8151 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
8152 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
8153 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
8154 * target-descriptions.c: In generated code, don't pass xml
8155 filename.
8156
e98577a9
AH
81572018-04-18 Alan Hayward <alan.hayward@arm.com>
8158
8159 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
8160 (print_xml_feature::visit_post): Likewise.
8161 (print_xml_feature::visit): Likewise.
8162 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
8163 (print_xml_feature): Add new class.
8164 * regformats/regdat.sh: Null xmltarget on feature targets.
8165 * target-descriptions.c (struct target_desc): Add xmltarget.
8166 (maintenance_check_tdesc_xml_convert): Add unittest function.
8167 (tdesc_get_features_xml): Add function to get xml.
8168 (maintenance_check_xml_descriptions): Test xml generation.
8169 * xml-tdesc.c (string_read_description_xml): Add function.
8170 * xml-tdesc.h (string_read_description_xml): Add declaration.
8171
ad7fc756
AH
81722018-04-18 Alan Hayward <alan.hayward@arm.com>
8173
8174 * features/Makefile: Add feature marker to targets with new style
8175 target descriptions.
8176 * regformats/aarch64.dat: Regenerate.
8177 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
8178 * regformats/i386/amd64-avx-linux.dat: Likewise.
8179 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
8180 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
8181 * regformats/i386/amd64-linux.dat: Likewise.
8182 * regformats/i386/amd64-mpx-linux.dat: Likewise.
8183 * regformats/i386/amd64.dat: Likewise.
8184 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
8185 * regformats/i386/i386-avx-linux.dat: Likewise.
8186 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
8187 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
8188 * regformats/i386/i386-linux.dat: Likewise.
8189 * regformats/i386/i386-mmx-linux.dat: Likewise.
8190 * regformats/i386/i386-mpx-linux.dat: Likewise.
8191 * regformats/i386/i386.dat: Likewise.
8192 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
8193 * regformats/i386/x32-avx-linux.dat: Likewise.
8194 * regformats/i386/x32-linux.dat: Likewise.
8195 * regformats/tic6x-c62x-linux.dat: Likewise.
8196 * regformats/tic6x-c64x-linux.dat: Likewise.
8197 * regformats/tic6x-c64xp-linux.dat: Likewise.
8198 * regformats/regdat.sh: Parse feature marker.
8199
d278f585
AH
82002018-04-18 Alan Hayward <alan.hayward@arm.com>
8201
8202 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
8203 (tdesc_osabi_name): Likewise.
8204 * target-descriptions.c (tdesc_architecture_name): Add new
8205 function.
8206 (tdesc_osabi_name): Likewise.
8207
eee8a18d
AH
82082018-04-18 Alan Hayward <alan.hayward@arm.com>
8209
8210 * common/tdesc.c (tdesc_predefined_type): Move to here.
8211 (tdesc_named_type): Likewise.
8212 (tdesc_create_vector): Likewise.
8213 (tdesc_create_struct): Likewise.
8214 (tdesc_set_struct_size): Likewise.
8215 (tdesc_create_union): Likewise.
8216 (tdesc_create_flags): Likewise.
8217 (tdesc_create_enum): Likewise.
8218 (tdesc_add_field): Likewise.
8219 (tdesc_add_typed_bitfield): Likewise.
8220 (tdesc_add_bitfield): Likewise.
8221 (tdesc_add_flag): Likewise.
8222 (tdesc_add_enum_value): Likewise.
8223 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
8224 (struct tdesc_type_vector): Likewise.
8225 (struct tdesc_type_field): Likewise.
8226 (struct tdesc_type_with_fields): Likewise.
8227 (tdesc_create_enum): Add declaration.
8228 (tdesc_add_typed_bitfield): Likewise.
8229 (tdesc_add_enum_value): Likewise.
8230 * target-descriptions.c (tdesc_type_field): Move from here.
8231 (tdesc_type_builtin): Likewise.
8232 (tdesc_type_vector): Likewise.
8233 (tdesc_type_with_fields): Likewise.
8234 (tdesc_predefined_types): Likewise.
8235 (tdesc_named_type): Likewise.
8236 (tdesc_create_vector): Likewise.
8237 (tdesc_create_struct): Likewise.
8238 (tdesc_set_struct_size): Likewise.
8239 (tdesc_create_union): Likewise.
8240 (tdesc_create_flags): Likewise.
8241 (tdesc_create_enum): Likewise.
8242 (tdesc_add_field): Likewise.
8243 (tdesc_add_typed_bitfield): Likewise.
8244 (tdesc_add_bitfield): Likewise.
8245 (tdesc_add_flag): Likewise.
8246 (tdesc_add_enum_value): Likewise.
8247 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
8248 (tdesc_add_typed_bitfield): Likewise.
8249 (tdesc_add_enum_value): Likewise.
8250
82ec9bc7
AH
82512018-04-18 Alan Hayward <alan.hayward@arm.com>
8252
8253 * common/tdesc.c (tdesc_feature::accept): Move to here.
8254 (tdesc_feature::operator==): Likewise.
8255 (tdesc_create_reg): Likewise.
8256 * common/tdesc.h (tdesc_type_kind): Likewise.
8257 (struct tdesc_type): Likewise.
8258 (struct tdesc_feature): Likewise.
8259 * regformats/regdat.sh: Create a feature.
8260 * target-descriptions.c (tdesc_type_kind): Move from here.
8261 (tdesc_type): Likewise.
8262 (tdesc_type_up): Likewise.
8263 (tdesc_feature): Likewise.
8264 (tdesc_create_reg): Likewise.
8265
ea3e7d71
AH
82662018-04-18 Alan Hayward <alan.hayward@arm.com>
8267
8268 * Makefile.in: Add arch/tdesc.c
8269 * common/tdesc.c: New file.
8270 * common/tdesc.h (tdesc_element_visitor): Move to here.
8271 (tdesc_element): Likewise.
8272 (tdesc_reg): Likewise.
8273 (tdesc_reg_up): Likewise.
8274 * regformats/regdef.h (reg): Add offset to constructors.
8275 * target-descriptions.c (tdesc_element_visitor): Move from here.
8276 (tdesc_element): Likewise.
8277 (tdesc_reg): Likewise.
8278 (tdesc_reg_up): Likewise.
8279
bedda9ac
TT
82802018-04-17 Tom Tromey <tom@tromey.com>
8281
8282 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
8283 discriminant field.
8284
a037790e
TT
82852018-04-17 Tom Tromey <tom@tromey.com>
8286
8287 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
8288
c7dcbf88
AA
82892018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
8290
8291 * symtab.c (print_symbol_info): Skip printing filename and line
8292 number when `last' is NULL.
8293 (symtab_symbol_info): Use empty string instead of NULL for first
8294 invocation of print_symbol_info.
8295 (rbreak_command): Pass NULL to `last' parameter of
8296 print_symbol_info.
8297
07d28c77
SM
82982018-04-16 Simon Marchi <simon.marchi@ericsson.com>
8299
8300 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
8301 instead of nullptr.
8302
8a3de5e1
PA
83032018-04-16 Pedro Alves <palves@redhat.com>
8304
8305 * MAINTAINERS (sh): Remove.
8306 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
8307 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
8308 (ALLDEPFILES): Remove sh64-tdep.c.
8309 * NEWS: Mentions that support for SH-5/SH64 is removed.
8310 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
8311 (sh*-*-openbsd*): Ditto.
8312 (sh64-*-elf*): Remove.
8313 (sh*): Remove.
8314 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
8315 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
8316 * sh-tdep.c: No longer include "sh64-tdep.h".
8317 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
8318 * sh64-tdep.c, sh64-tdep.h: Remove files.
8319
a2a79012
PA
83202018-04-16 Pedro Alves <palves@redhat.com>
8321
8322 * MAINTAINERS: Remove m88k.
8323 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
8324 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
8325 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
8326 * NEWS: Mention that support for m88k was removed.
8327 * configure.host (m88*-*-*): Remove support.
8328 * configure.nat (m88k-*-*): Remove support.
8329 * configure.tgt (m88*-*-openbsd*): Remove.
8330 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
8331
eda4efb1
SM
83322018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
8333
8334 * configure.tgt (x86_tobjs): New variable.
8335 (amd64_tobjs, i386_tobjs): Use it.
8336
b744723f
AA
83372018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8338
8339 * symtab.c (print_symbol_info): Precede the symbol definition by
8340 the line number when available.
8341 * NEWS: Advertise this enhancement.
8342
4a4495d6
MM
83432018-04-13 Markus Metzger <markus.t.metzger@intel.com>
8344
8345 * NEWS (New options): announce set/show record btrace cpu.
8346 * btrace.c: Include record-btrace.h.
8347 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
8348 the vendor is unknown.
8349 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
8350 Maybe overwrite the btrace configuration's cpu.
8351 (btrace_compute_ftrace): Add cpu parameter. Update callers.
8352 (btrace_fetch): Add cpu parameter. Update callers.
8353 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
8354 Maybe overwrite the btrace configuration's cpu. Skip enabling
8355 errata workarounds if the vendor is unknown.
8356 * python/py-record-btrace.c: Include record-btrace.h.
8357 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
8358 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
8359 * record-btrace.c (record_btrace_cpu_state_kind): New.
8360 (record_btrace_cpu): New.
8361 (set_record_btrace_cpu_cmdlist): New.
8362 (record_btrace_get_cpu): New.
8363 (require_btrace_thread, record_btrace_info)
8364 (record_btrace_resume_thread): Call record_btrace_get_cpu.
8365 (cmd_set_record_btrace_cpu_none): New.
8366 (cmd_set_record_btrace_cpu_auto): New.
8367 (cmd_set_record_btrace_cpu): New.
8368 (cmd_show_record_btrace_cpu): New.
8369 (_initialize_record_btrace): Initialize set/show record btrace cpu
8370 commands.
8371 * record-btrace.h (record_btrace_get_cpu): New.
8372
69f90c75
MM
83732018-04-13 Markus Metzger <markus.t.metzger@intel.com>
8374
8375 * record.c (set_record_command): Fix typo in message.
8376
b85310e1
MM
83772018-04-13 Markus Metzger <markus.t.metzger@intel.com>
8378
8379 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
8380
1d509aa6
MM
83812018-04-13 Markus Metzger <markus.t.metzger@intel.com>
8382
8383 * infrun.c (process_event_stop_test): Call
8384 gdbarch_in_indirect_branch_thunk.
8385 * gdbarch.sh (in_indirect_branch_thunk): New.
8386 * gdbarch.c: Regenerated.
8387 * gdbarch.h: Regenerated.
8388 * x86-tdep.h: New.
8389 * x86-tdep.c: New.
8390 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
8391 (HFILES_NO_SRCDIR): Add x86-tdep.h.
8392 (ALLDEPFILES): Add x86-tdep.c.
8393 * arch-utils.h (default_in_indirect_branch_thunk): New.
8394 * arch-utils.c (default_in_indirect_branch_thunk): New.
8395 * i386-tdep: Include x86-tdep.h.
8396 (i386_in_indirect_branch_thunk): New.
8397 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
8398 function.
8399 * amd64-tdep: Include x86-tdep.h.
8400 (amd64_in_indirect_branch_thunk): New.
8401 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
8402
b4be9bfd
JK
84032018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8404
8405 PR gdb/23053
8406 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
8407 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
8408 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
8409 regression.
8410
53d7df28
TT
84112018-04-12 Tom Tromey <tom@tromey.com>
8412
8413 * rust-lang.c (rust_print_struct_def): Remove univariant code.
8414 (rust_evaluate_subexp): Likewise.
8415
70b33f19
PA
84162018-04-12 Pedro Alves <palves@redhat.com>
8417
8418 * procfs.c (procfs_detach): Make forward declaration's prototype
8419 match definition's protototype.
8420 (proc_get_LDT_entry): Remove stale do_cleanups call.
8421
436411b1
PA
84222018-04-12 Pedro Alves <palves@redhat.com>
8423
8424 * target.h (target_ops::to_has_exited): Delete.
8425 (target_has_exited): Delete.
8426 * target-delegates.c: Regenerate.
8427
20db9c52
PA
84282018-04-11 Pedro Alves <palves@redhat.com>
8429
8430 * target.c (fileio_fh_t::t): Add comment.
8431 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
8432 (target_fileio_close): Handle a NULL target.
8433 (invalidate_fileio_fh): New.
8434 (target_close): Call it.
8435 * remote.c (remote_hostio_send_command): No longer check whether
8436 remote_desc is open.
8437
5ff79300
PA
84382018-04-11 Pedro Alves <palves@redhat.com>
8439
8440 * target.c (fileio_fh_t): Make it a named struct instead of a
8441 typedef.
8442 (fileio_fh_t::is_closed): New method.
8443 (DEF_VEC_O (fileio_fh_t)): Remove.
8444 (fileio_fhandles): Now a std::vector.
8445 (is_closed_fileio_fh): Delete.
8446 (acquire_fileio_fd): Adjust. Rename parameters.
8447 (release_fileio_fd): Adjust.
8448 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
8449 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
8450 (target_fileio_close): Adjust.
8451
6e22e10d
SM
84522018-04-10 Simon Marchi <simon.marchi@ericsson.com>
8453
8454 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
8455 index.
8456
731f534f
PA
84572018-04-10 Pedro Alves <palves@redhat.com>
8458
8459 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
8460 (scoped_finish_thread_state): New class.
8461 * infcmd.c (run_command_1): Use it instead of finish_thread_state
8462 cleanup.
8463 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
8464 (fetch_inferior_event, normal_stop): Likewise.
8465 * thread.c (finish_thread_state_cleanup): Delete.
8466
d5f4488f
SM
84672018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8468 Pedro Alves <palves@redhat.com>
8469
8470 * value.c: Include "selftest.h" and "common/array-view.h".
8471 (struct range) <operator ==>: New.
8472 (test_ranges_contain): New.
8473 (check_ranges_vector): New.
8474 (test_insert_into_bit_range_vector): New.
8475 (_initialize_values): Register selftests.
8476 * common/array-view.h (operator==, operator!=): New.
8477
b24531ed
SM
84782018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8479
8480 * common/gdb_vecs.h (unordered_remove): Add overload that takes
8481 an iterator.
8482 * inline-frame.c: Include <algorithm>.
8483 (struct inline_state): Add constructor.
8484 (inline_state_s): Remove.
8485 (DEF_VEC_O(inline_state_s)): Remove.
8486 (inline_states): Change type to std::vector.
8487 (find_inline_frame_state): Adjust to std::vector.
8488 (allocate_inline_frame_state): Remove.
8489 (clear_inline_frame_state): Adjust to std::vector.
8490 (skip_inline_frames): Adjust to std::vector.
8491
c252925c
SM
84922018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8493
8494 * tracepoint.h (struct trace_state_variable): Add constructor.
8495 <name>: Change type to std::string.
8496 * tracepoint.c (tsv_s): Remove.
8497 (DEF_VEC_O(tsv_s)): Remove.
8498 (tvariables): Change to std::vector.
8499 (create_trace_state_variable): Adjust to std::vector.
8500 (find_trace_state_variable): Likewise.
8501 (find_trace_state_variable_by_number): Likewise.
8502 (delete_trace_state_variable): Likewise.
8503 (trace_variable_command): Adjust to std::string.
8504 (delete_trace_variable_command): Likewise.
8505 (tvariables_info_1): Adjust to std::vector.
8506 (save_trace_state_variables): Likewise.
8507 (start_tracing): Likewise.
8508 (merge_uploaded_trace_state_variables): Adjust to std::vector
8509 and std::string.
8510 * target.h (struct target_ops)
8511 <to_download_trace_state_variable>: Pass reference to
8512 trace_state_variable.
8513 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
8514 * target-delegates.c: Re-generate.
8515 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
8516 (mi_tsv_deleted): Likewise.
8517 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
8518 * remote.c (remote_download_trace_state_variable): Change
8519 pointer to reference and adjust.
8520 * make-target-delegates (parse_argtypes): Handle references.
8521 (write_function_header): Likewise.
8522 (munge_type): Likewise.
8523
c9638d26
SM
85242018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8525
8526 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8527 string_view-selftests.c.
8528 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
8529 testsuite.
8530 * unittests/basic_string_view/cons/char/1.cc: Likewise.
8531 * unittests/basic_string_view/cons/char/2.cc: Likewise.
8532 * unittests/basic_string_view/cons/char/3.cc: Likewise.
8533 * unittests/basic_string_view/element_access/char/1.cc:
8534 Likewise.
8535 * unittests/basic_string_view/element_access/char/empty.cc:
8536 Likewise.
8537 * unittests/basic_string_view/element_access/char/front_back.cc:
8538 Likewise.
8539 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
8540 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
8541 Likewise.
8542 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
8543 Likewise.
8544 * unittests/basic_string_view/modifiers/swap/char/1.cc:
8545 Likewise.
8546 * unittests/basic_string_view/operations/compare/char/1.cc:
8547 Likewise.
8548 * unittests/basic_string_view/operations/compare/char/13650.cc:
8549 Likewise.
8550 * unittests/basic_string_view/operations/copy/char/1.cc:
8551 Likewise.
8552 * unittests/basic_string_view/operations/data/char/1.cc:
8553 Likewise.
8554 * unittests/basic_string_view/operations/find/char/1.cc:
8555 Likewise.
8556 * unittests/basic_string_view/operations/find/char/2.cc:
8557 Likewise.
8558 * unittests/basic_string_view/operations/find/char/3.cc:
8559 Likewise.
8560 * unittests/basic_string_view/operations/find/char/4.cc:
8561 Likewise.
8562 * unittests/basic_string_view/operations/rfind/char/1.cc:
8563 Likewise.
8564 * unittests/basic_string_view/operations/rfind/char/2.cc:
8565 Likewise.
8566 * unittests/basic_string_view/operations/rfind/char/3.cc:
8567 Likewise.
8568 * unittests/basic_string_view/operations/substr/char/1.cc:
8569 Likewise.
8570 * unittests/basic_string_view/operators/char/2.cc: Likewise.
8571 * unittests/string_view-selftests.c: New file.
8572
fdc11678
SM
85732018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8574
8575 * unittests/basic_string_view/capacity/1.cc: New file.
8576 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
8577 * unittests/basic_string_view/cons/char/1.cc: New file.
8578 * unittests/basic_string_view/cons/char/2.cc: New file.
8579 * unittests/basic_string_view/cons/char/3.cc: New file.
8580 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
8581 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
8582 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
8583 * unittests/basic_string_view/element_access/char/1.cc: New file.
8584 * unittests/basic_string_view/element_access/char/2.cc: New file.
8585 * unittests/basic_string_view/element_access/char/empty.cc: New file.
8586 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
8587 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
8588 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
8589 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
8590 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
8591 * unittests/basic_string_view/include.cc: New file.
8592 * unittests/basic_string_view/inserters/char/1.cc: New file.
8593 * unittests/basic_string_view/inserters/char/2.cc: New file.
8594 * unittests/basic_string_view/inserters/char/3.cc: New file.
8595 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
8596 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
8597 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
8598 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
8599 * unittests/basic_string_view/literals/types.cc: New file.
8600 * unittests/basic_string_view/literals/values.cc: New file.
8601 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
8602 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
8603 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
8604 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
8605 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
8606 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
8607 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
8608 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
8609 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
8610 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
8611 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
8612 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
8613 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
8614 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
8615 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
8616 * unittests/basic_string_view/operations/data/char/1.cc: New file.
8617 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
8618 * unittests/basic_string_view/operations/find/char/1.cc: New file.
8619 * unittests/basic_string_view/operations/find/char/2.cc: New file.
8620 * unittests/basic_string_view/operations/find/char/3.cc: New file.
8621 * unittests/basic_string_view/operations/find/char/4.cc: New file.
8622 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
8623 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
8624 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
8625 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
8626 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
8627 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
8628 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
8629 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
8630 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
8631 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
8632 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
8633 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
8634 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
8635 * unittests/basic_string_view/operators/char/2.cc: New file.
8636 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
8637 * unittests/basic_string_view/range_access/char/1.cc: New file.
8638 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
8639 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
8640 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
8641 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
8642 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
8643 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
8644 * unittests/basic_string_view/requirements/typedefs.cc: New file.
8645 * unittests/basic_string_view/typedefs.cc: New file.
8646 * unittests/basic_string_view/types/1.cc: New file.
8647
8345c4a2
SM
86482018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8649
8650 * common/gdb_string_view.h: Remove libstdc++ implementation
8651 details, adjust to gdb reality.
8652 * common/gdb_string_view.tcc: Likewise.
8653 * cli/cli-script.c (struct string_view): Remove.
8654 (user_args) <m_args>: Change element type to gdb::string_view.
8655 (user_args::insert_args): Adjust.
8656
7adcdf08
SM
86572018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8658
8659 * common/gdb_string_view.h: New file.
8660 * common/gdb_string_view.tcc: New file.
8661
41260ac2
SM
86622018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8663
8664 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
8665 * configure: Re-generate.
8666
0bee6dd4
PA
86672018-04-09 Pedro Alves <palves@redhat.com>
8668
8669 * gdbarch.sh: Include "observable.h" instead of "observer.h".
8670 (set_target_gdbarch): Call
8671 gdb::observers::architecture_changed.notify instead of
8672 observer_notify_architecture_changed.
8673
6f14adc5
SM
86742018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8675
8676 * tracepoint.c (struct current_traceframe_cleanup): Remove.
8677 (do_restore_current_traceframe_cleanup): Remove.
8678 (restore_current_traceframe_cleanup_dtor): Remove.
8679 (make_cleanup_restore_current_traceframe): Remove.
8680 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
8681 New.
8682 * tracepoint.h (struct scoped_restore_current_traceframe): New.
8683 * infrun.c (fetch_inferior_event): Use
8684 scoped_restore_current_traceframe.
8685
b2bdb8cf
SM
86862018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8687
8688 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
8689 Remove.
8690 <n_allocated_type_units>: Remove.
8691 <all_type_units>: Change to std::vector.
8692 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
8693 to std::vector change.
8694 (dwarf2_per_objfile::get_cutu): Likewise.
8695 (dwarf2_per_objfile::get_tu): Likewise.
8696 (create_signatured_type_table_from_index): Likewise.
8697 (create_signatured_type_table_from_debug_names): Likewise.
8698 (dw2_symtab_iter_next): Likewise.
8699 (dw2_print_stats): Likewise.
8700 (dw2_expand_all_symtabs): Likewise.
8701 (dw2_expand_marked_cus): Likewise.
8702 (dw2_debug_names_iterator::next): Likewise.
8703 (dwarf2_initialize_objfile): Likewise.
8704 (add_signatured_type_cu_to_table): Likewise.
8705 (create_all_type_units): Likewise.
8706 (add_type_unit): Likewise.
8707 (struct tu_abbrev_offset): Add constructor.
8708 (build_type_psymtabs_1): Adjust to std::vector change.
8709 (print_tu_stats): Likewise.
8710 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
8711 (write_debug_names): Likewise.
8712
b76e467d
SM
87132018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8714
8715 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
8716 Make an std::vector.
8717 <n_comp_units>: Remove.
8718 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
8719 to std::vector change.
8720 (dwarf2_per_objfile::get_cutu): Likewise.
8721 (dwarf2_per_objfile::get_cu): Likewise.
8722 (create_cus_from_index): Likewise.
8723 (create_addrmap_from_index): Likewise.
8724 (create_addrmap_from_aranges): Likewise.
8725 (dwarf2_read_index): Likewise.
8726 (dw2_find_last_source_symtab): Likewise.
8727 (dw2_map_symtabs_matching_filename): Likewise.
8728 (dw2_symtab_iter_next): Likewise.
8729 (dw2_print_stats): Likewise.
8730 (dw2_expand_all_symtabs): Likewise.
8731 (dw2_expand_symtabs_with_fullname): Likewise.
8732 (dw2_expand_marked_cus): Likewise.
8733 (dw2_map_symbol_filenames): Likewise.
8734 (create_cus_from_debug_names): Likewise.
8735 (dwarf2_read_debug_names): Likewise.
8736 (dw2_debug_names_iterator::next): Likewise.
8737 (dwarf2_initialize_objfile): Likewise.
8738 (set_partial_user): Likewise.
8739 (dwarf2_build_psymtabs_hard): Likewise.
8740 (read_comp_units_from_section): Remove arguments, adjust to
8741 std::vector change.
8742 (create_all_comp_units): Adjust to std::vector and
8743 read_comp_units_from_section changes.
8744 (dwarf2_find_containing_comp_unit): Adjust to std::vector
8745 change.
8746 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
8747 (psyms_seen_size): Likewise.
8748 (write_gdbindex): Likewise.
8749 (write_debug_names): Likewise.
8750
12359b5e
SM
87512018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8752
8753 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
8754 with dwarf2_per_objfile.
8755 (create_cus_from_index): Likewise.
8756 (create_signatured_type_table_from_index): Likewise.
8757 (dwarf2_read_index): Likewise.
8758 (dwarf2_initialize_objfile): Likewise.
8759 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
8760 per_cu rather than get_dwarf2_per_objfile.
8761
ff4c9fec
SM
87622018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8763
8764 * dwarf2read.h (struct signatured_type): Forward declare.
8765 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
8766 New methods.
8767 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
8768 (dw2_get_cutu): ...this.
8769 (dwarf2_per_objfile::get_cu): Rename from...
8770 (dw2_get_cu): ...this.
8771 (dwarf2_per_objfile::get_tu): New.
8772 (create_addrmap_from_index): Adjust.
8773 (create_addrmap_from_aranges): Adjust.
8774 (dw2_find_last_source_symtab): Adjust.
8775 (dw2_map_symtabs_matching_filename): Adjust.
8776 (dw2_symtab_iter_next): Adjust.
8777 (dw2_print_stats): Adjust.
8778 (dw2_expand_all_symtabs): Adjust.
8779 (dw2_expand_symtabs_with_fullname): Adjust.
8780 (dw2_expand_marked_cus): Adjust.
8781 (dw_expand_symtabs_matching_file_matcher): Adjust.
8782 (dw2_map_symbol_filenames): Adjust.
8783 (dw2_debug_names_iterator::next): Adjust.
8784 (dwarf2_initialize_objfile): Adjust.
8785 (set_partial_user): Adjust.
8786 (dwarf2_build_psymtabs_hard): Adjust.
8787
5ca3fcb6
SM
87882018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8789
8790 * dwarf2read.c (create_signatured_type_table_from_debug_names):
8791 Remove unused variables.
8792 (dw2_map_symtabs_matching_filename): Likewise.
8793 (dwarf2_record_block_ranges): Likewise.
8794 (dwarf2_read_addr_index): Likewise.
8795 (follow_die_offset): Likewise.
8796
b2e586e8
SM
87972018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8798
8799 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
8800 to symbol_file_add_main.
8801
7c4e78cf
SM
88022018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8803
8804 PR mi/22299
8805 * mi/mi-console.c (do_fputc_async_safe): New.
8806 (mi_console_file::write_async_safe): New.
8807 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
8808 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
8809 New.
8810 * ui-file.c (ui_file::putstrn): Adjust call to
8811 fputstrn_unfiltered.
8812 * utils.c (printchar): Replace do_fputs and do_fprintf
8813 parameters by do_fputc.
8814 (fputstr_filtered): Adjust call to printchar.
8815 (fputstr_unfiltered): Likewise.
8816 (fputstrn_filtered): Likewise.
8817 (fputstrn_unfiltered): Add do_fputc parameter, pass to
8818 printchar.
8819 * utils.h (do_fputc_ftype): New typedef.
8820 (fputstrn_unfiltered): Add do_fputc parameter.
8821
5dc026d3
SM
88222018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8823
8824 * regformats/i386/i386-avx.dat: Remove.
8825
c912f608
SM
88262018-04-07 Simon Marchi <simon.marchi@ericsson.com>
8827
8828 PR gdb/22979
8829 * amd64-tdep.c (amd64_none_init_abi): New function.
8830 (amd64_x32_none_init_abi): New function.
8831 (_initialize_amd64_tdep): Register handlers for x86-64 and
8832 x64_32 with GDB_OSABI_NONE.
8833 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
8834 GDB_OSABI_NONE osabi.
8835
26540402
SM
88362018-04-07 Simon Marchi <simon.marchi@ericsson.com>
8837
8838 PR gdb/22980
8839 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
8840 GDB_OSABI_NONE.
8841 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
8842 * osabi.c (gdb_osabi_names): Add "unknown" entry.
8843
9018be22
SM
88442018-04-07 Simon Marchi <simon.marchi@ericsson.com>
8845
8846 * common/byte-vector.h (char_vector): New type.
8847 * target.h (target_read_alloc): Return
8848 gdb::optional<byte_vector>.
8849 (target_read_stralloc): Return gdb::optional<char_vector>.
8850 (target_get_osdata): Return gdb::optional<char_vector>.
8851 * target.c (target_read_alloc_1): Templatize. Replacement
8852 manual memory management with vector.
8853 (target_read_alloc): Change return type, adjust.
8854 (target_read_stralloc): Change return type, adjust.
8855 (target_get_osdata): Change return type, adjust.
8856 * auxv.c (struct auxv_info) <length>: Remove.
8857 <data>: Change type to gdb::optional<byte_vector>.
8858 (auxv_inferior_data_cleanup): Free auxv_info with delete.
8859 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
8860 (target_auxv_search): Adjust.
8861 (fprint_target_auxv): Adjust.
8862 * avr-tdep.c (avr_io_reg_read_command): Adjust.
8863 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
8864 (linux_make_corefile_notes): Adjust.
8865 * osdata.c (get_osdata): Adjust.
8866 * remote.c (remote_get_threads_with_qxfer): Adjust.
8867 (remote_memory_map): Adjust.
8868 (remote_traceframe_info): Adjust.
8869 (btrace_read_config): Adjust.
8870 (remote_read_btrace): Adjust.
8871 (remote_pid_to_exec_file): Adjust.
8872 * solib-aix.c (solib_aix_get_library_list): Adjust.
8873 * solib-dsbt.c (decode_loadmap): Don't free buf.
8874 (dsbt_get_initial_loadmaps): Adjust.
8875 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
8876 * solib-target.c (solib_target_current_sos): Adjust.
8877 * tracepoint.c (sdata_make_value): Adjust.
8878 * xml-support.c (xinclude_start_include): Adjust.
8879 (xml_fetch_content_from_file): Adjust.
8880 * xml-support.h (xml_fetch_another): Change return type.
8881 (xml_fetch_content_from_file): Change return type.
8882 * xml-syscall.c (xml_init_syscalls_info): Adjust.
8883 * xml-tdesc.c (file_read_description_xml): Adjust.
8884 (fetch_available_features_from_target): Change return type.
8885 (target_fetch_description_xml): Adjust.
8886 (target_read_description_xml): Adjust.
8887
14c88955
TT
88882018-04-06 Tom Tromey <tom@tromey.com>
8889
8890 * value.c (~value): Update.
8891 (struct value) <contents>: Now unique_xmalloc_ptr.
8892 (value_contents_bits_eq, allocate_value_contents)
8893 (value_contents_raw, value_contents_all_raw)
8894 (value_contents_for_printing, value_contents_for_printing_const)
8895 (set_value_enclosing_type): Update.
8896
0c7e6dd8
TT
88972018-04-06 Tom Tromey <tom@tromey.com>
8898
8899 * value.c (range_s): Remove typedef, VEC.
8900 (struct range): Add operator<.
8901 (range_lessthan): Remove.
8902 (ranges_contain): Change type.
8903 (~value): Update.
8904 (struct value) <unavailable, optimized_out>: Now std::vector.
8905 (value_entirely_available)
8906 (value_entirely_covered_by_range_vector)
8907 (value_entirely_unavailable, value_entirely_optimized_out):
8908 Update.
8909 (insert_into_bit_range_vector): Change argument type.
8910 (find_first_range_overlap): Likewise.
8911 (struct ranges_and_idx, value_contents_bits_eq)
8912 (require_not_optimized_out, require_available): Update.
8913 (ranges_copy_adjusted): Change argument types.
8914 (value_optimized_out, value_copy, value_fetch_lazy): Update.
8915
2c8331b9
TT
89162018-04-06 Tom Tromey <tom@tromey.com>
8917
8918 * value.c (~value): Update.
8919 (struct value) <parent>: Now a value_ref_ptr.
8920 (value_parent, set_value_parent, value_address, value_copy):
8921 Update.
8922
466ce3ae
TT
89232018-04-06 Tom Tromey <tom@tromey.com>
8924
8925 * value.c (struct value): Add constructor, destructor, and member
8926 initializers.
8927 (allocate_value_lazy, value_decref): Update.
8928
062d818d
TT
89292018-04-06 Tom Tromey <tom@tromey.com>
8930
8931 * value.c (struct value) <released, next>: Remove.
8932 (all_values): Now a std::vector.
8933 (allocate_value_lazy): Update.
8934 (value_next): Remove.
8935 (value_mark, value_free_to_mark, release_value)
8936 (value_release_to_mark): Update.
8937
a6535de1
TT
89382018-04-06 Tom Tromey <tom@tromey.com>
8939
8940 * value.h (fetch_subexp_value, value_release_to_mark): Update.
8941 (free_value_chain): Remove.
8942 * value.c (free_value_chain): Remove.
8943 (value_release_to_mark): Return a std::vector.
8944 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
8945 std::vector.
8946 (check_condition): Update.
8947 * eval.c (fetch_subexp_value): Change "val_chain" to a
8948 std::vector.
8949 * breakpoint.c (update_watchpoint): Update.
8950 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
8951
b5621201
TT
89522018-04-06 Tom Tromey <tom@tromey.com>
8953
8954 * value.h (free_all_values): Remove.
8955 * value.c (free_all_values): Remove.
8956
4d0266a0
TT
89572018-04-06 Tom Tromey <tom@tromey.com>
8958
8959 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
8960 (value_history_chain, value_history_count): Remove.
8961 (value_history): New global.
8962 (record_latest_value, access_value_history, show_values)
8963 (preserve_values): Update.
8964
b4d61099
TT
89652018-04-06 Tom Tromey <tom@tromey.com>
8966
8967 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
8968 * varobj.c (varobj_set_display_format, varobj_set_value)
8969 (install_default_visualizer, construct_visualizer)
8970 (install_new_value, ~varobj, varobj_get_value_type)
8971 (my_value_of_variable, varobj_editable_p): Update.
8972 * c-varobj.c (c_describe_child, c_value_of_variable)
8973 (cplus_number_of_children, cplus_describe_child): Update.
8974 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
8975 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
8976 (ada_value_of_variable, ada_value_is_changeable_p): Update.
8977
9b558729
TT
89782018-04-06 Tom Tromey <tom@tromey.com>
8979
8980 * printcmd.c (last_examine_address): Change type to
8981 value_ref_ptr.
8982 (do_examine, x_command): Update.
8983
850645cf
TT
89842018-04-06 Tom Tromey <tom@tromey.com>
8985
8986 * value.c (release_value): Update.
8987 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
8988 (struct bpstats) <val>: Now a value_ref_ptr.
8989 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
8990 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
8991 (~watchpoint, print_it_watchpoint, watch_command_1)
8992 (invalidate_bp_value_on_memory_change): Update.
8993
22bc8444
TT
89942018-04-06 Tom Tromey <tom@tromey.com>
8995
8996 * varobj.c (varobj_clear_saved_item)
8997 (update_dynamic_varobj_children, install_new_value, ~varobj):
8998 Update.
8999 * value.h (value_incref): Move declaration earlier.
9000 (value_decref): Rename from value_free.
9001 (struct value_ref_policy): New.
9002 (value_ref_ptr): New typedef.
9003 (struct value_deleter): Remove.
9004 (gdb_value_up): Remove typedef.
9005 (release_value): Change return type.
9006 (release_value_or_incref): Remove.
9007 * value.c (set_value_parent): Update.
9008 (value_incref): Change return type.
9009 (value_decref): Rename from value_free.
9010 (value_free_to_mark, free_all_values, free_value_chain): Update.
9011 (release_value): Return value_ref_ptr.
9012 (release_value_or_incref): Remove.
9013 (record_latest_value, set_internalvar, clear_internalvar):
9014 Update.
9015 * stack.c (info_frame_command): Don't call value_free.
9016 * python/py-value.c (valpy_dealloc, valpy_new)
9017 (value_to_value_object): Update.
9018 * printcmd.c (do_examine): Update.
9019 * opencl-lang.c (lval_func_free_closure): Update.
9020 * mi/mi-main.c (register_changed_p): Don't call value_free.
9021 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
9022 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
9023 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
9024 value_free.
9025 * guile/scm-value.c (vlscm_free_value_smob)
9026 (vlscm_scm_from_value): Update.
9027 * frame.c (frame_register_unwind, frame_unwind_register_signed)
9028 (frame_unwind_register_unsigned, get_frame_register_bytes)
9029 (put_frame_register_bytes): Don't call value_free.
9030 * findvar.c (address_from_register): Don't call value_free.
9031 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
9032 * dwarf2loc.c (entry_data_value_free_closure)
9033 (value_of_dwarf_reg_entry, free_pieced_value_closure)
9034 (dwarf2_evaluate_loc_desc_full): Update.
9035 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
9036 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
9037 (~watchpoint, watch_command_1)
9038 (invalidate_bp_value_on_memory_change): Update.
9039 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
9040
7f8a5d38
SM
90412018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
9042
9043 PR gdb/23022
9044 * warning.m4: Add -Wno-error=deprecated-register.
9045 * configure: Re-generate.
9046
8a76bd3b
TT
90472018-04-05 Tom Tromey <tom@tromey.com>
9048
9049 * linespec.h: Remove include of "vec.h".
9050
8e8d776e
TT
90512018-04-05 Tom Tromey <tom@tromey.com>
9052
9053 * linespec.c (typep): Remove typedef.
9054 (find_methods, find_superclass_methods): Take a std::vector.
9055 (find_method): Use std::vector.
9056
9b2f8581
TT
90572018-04-05 Tom Tromey <tom@tromey.com>
9058
9059 * utils.c (compare_strings): Remove.
9060 * utils.h (compare_strings): Remove.
9061 * objc-lang.h (find_imps): Update.
9062 * objc-lang.c (find_methods): Take a std::vector.
9063 (uniquify_strings, find_imps): Likewise.
9064 * linespec.c (find_methods): Take a std::vector.
9065 (decode_objc): Use std::vector.
9066 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
9067 a std::vector.
9068 (find_method, find_function_symbols): Use std::vector.
9069
459a2e4c
TT
90702018-04-05 Tom Tromey <tom@tromey.com>
9071
9072 * completer.c (completion_tracker::completion_tracker): Remove
9073 cast.
9074 (completion_tracker::discard_completions): Likewise.
9075 * breakpoint.c (ambiguous_names_p): Remove cast.
9076 * ada-lang.c (_initialize_ada_language): Remove cast.
9077 * utils.h (streq): Update.
9078 (streq_hash): Add new declaration.
9079 * utils.c (streq): Return bool.
9080 (streq_hash): New function.
9081
9be2c17a
TT
90822018-04-05 Tom Tromey <tom@tromey.com>
9083
9084 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
9085 Remove a string copy.
9086
f73c6ece
TT
90872018-04-05 Tom Tromey <tom@tromey.com>
9088
9089 * linespec.c (filter_results): Use std::vector.
9090 (decode_line_2, decode_line_full): Update.
9091
53a0f8a2
TT
90922018-04-05 Tom Tromey <tom@tromey.com>
9093
9094 * linespec.c (canonical_to_fullform): Return std::string.
9095 (filter_results): Update.
9096 (struct decode_line_2_item): Add constructor.
9097 <fullform, displayform>: Now std::string.
9098 (decode_line_2_compare_items): Now a std::sort comparator.
9099 (decode_line_2): Update.
9100
a5b5adf5
TT
91012018-04-05 Tom Tromey <tom@tromey.com>
9102
9103 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
9104 (unexpected_linespec_error): Update.
9105 (linespec_parse_basic, parse_linespec): Update.
9106
6a307fc5
TT
91072018-04-05 Tom Tromey <tom@tromey.com>
9108
9109 * linespec.c (linespec_parse_basic): Reindent.
9110
41c1efc6
TT
91112018-04-05 Tom Tromey <tom@tromey.com>
9112
9113 * minsyms.h (iterate_over_minimal_symbols): Update.
9114 * minsyms.c (iterate_over_minimal_symbols): Take a
9115 gdb::function_view.
9116 * linespec.c (struct collect_minsyms): Remove.
9117 (compare_msyms): Now a std::sort comparator.
9118 (add_minsym): Add parameters.
9119 (search_minsyms_for_name): Update. Use std::vector.
9120
c5edbf3d
TT
91212018-04-03 Tom Tromey <tom@tromey.com>
9122
9123 * mipsread.c (read_alphacoff_dynamic_symtab): Use
9124 gdb::byte_vector.
9125
b39efc48
WP
91262018-04-02 Weimin Pan <weimin.pan@oracle.com>
9127
9128 * MAINTAINERS (Write After Approval): Add Weimin Pan.
9129
121ad66c 91302018-04-02 Weimin Pan <weimin.pan@oracle.com>
79f18731
WP
9131
9132 PR gdb/16959
9133 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
9134 printing static type.
9135
09473be8
TT
91362018-04-01 Tom Tromey <tom@tromey.com>
9137
9138 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
9139 (rs6000_xfer_shared_libraries): Update.
9140
ec1f2d91
SM
91412018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
9142
9143 * common/gdb_vecs.h (char_ptr): Remove.
9144 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
9145
d8611974
SM
91462018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
9147
9148 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
9149 with std::vector.
9150 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
9151
a18ba4e4
SM
91522018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
9153
9154 * tracepoint.h (struct uploaded_tp): Initialize fields.
9155 <actions, step_actions, cmd_strings>: Change type to
9156 std::vector<char *>.
9157 * tracepoint.c (get_uploaded_tp): Allocate with new.
9158 (free_uploaded_tps): Free with delete.
9159 (parse_tracepoint_definition): Adjust to std::vector change.
9160 * breakpoint.c (read_uploaded_action): Likewise.
9161 (create_tracepoint_from_upload): Likewise.
9162 * ctf.c (ctf_write_uploaded_tp): Likewise.
9163 (SET_ARRAY_FIELD): Likewise.
9164 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
9165
a7961323
TT
91662018-03-30 Tom Tromey <tom@tromey.com>
9167
9168 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
9169 std::unique_ptr.
9170 (svr4_keep_data_in_core): Update.
9171 (svr4_read_so_list): Update.
9172
e83e4e24
TT
91732018-03-30 Tom Tromey <tom@tromey.com>
9174
9175 * windows-nat.c (handle_output_debug_string, handle_exception):
9176 Update.
9177 * target.h (target_read_string): Update.
9178 * target.c (target_read_string): Change "string" to
9179 unique_xmalloc_ptr.
9180 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
9181 Update.
9182 * solib-frv.c (frv_current_sos): Update.
9183 * solib-dsbt.c (dsbt_current_sos): Update.
9184 * solib-darwin.c (darwin_current_sos): Update.
9185 * linux-thread-db.c (inferior_has_bug): Update.
9186 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
9187 Update. Remove alloca.
9188 * ada-lang.c (ada_main_name): Update.
9189
263db9a1
TT
91902018-03-30 Tom Tromey <tom@tromey.com>
9191
9192 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
9193 (struct dwo_file_deleter): New.
9194 (dwo_file_up): New typedef.
9195 (open_and_init_dwo_file): Use dwo_file_up.
9196 (free_dwo_file_cleanup): Remove.
9197
5dafb3d1
TT
91982018-03-30 Tom Tromey <tom@tromey.com>
9199
9200 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
9201 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
9202
11ed8cad
TT
92032018-03-30 Tom Tromey <tom@tromey.com>
9204
9205 * dwarf2read.c (class free_cached_comp_units): New class.
9206 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
9207 (free_cached_comp_units): Remove function.
9208
9ae79dac
TT
92092018-03-30 Tom Tromey <tom@tromey.com>
9210
9211 * utils.h (make_cleanup_unpush_target): Remove.
9212 * inf-ptrace.c (struct target_unpusher): New.
9213 (target_unpush_up) New typedef.
9214 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
9215 target_unpush_up.
9216 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
9217
5aa89276
TT
92182018-03-27 Tom Tromey <tom@tromey.com>
9219
9220 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
9221
1dbeed45
TT
92222018-03-27 Pedro Alves <palves@redhat.com>
9223 Tom Tromey <tom@tromey.com>
9224
9225 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
9226 destructor. Now a class.
9227 (gdb_readline_wrapper_cleanup): Remove function.
9228 (gdb_readline_wrapper): Remove cleanups.
9229
c819b2c0
TT
92302018-03-27 Tom Tromey <tom@tromey.com>
9231
9232 * typeprint.h (struct type_print_options) <local_typedefs,
9233 global_typedefs>: Remove "struct" keyword.
9234 (class typedef_hash_table): New class.
9235 (recursively_update_typedef_hash, add_template_parameters)
9236 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
9237 (find_typedef_in_hash): Don't declare.
9238 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
9239 (typedef_hash_table::recursively_update): Rename from
9240 recursively_update_typedef_hash. Now a member.
9241 (typedef_hash_table::add_template_parameters): Rename from
9242 add_template_parameters. Now a member.
9243 (typedef_hash_table::typedef_hash_table): Now a constructor;
9244 rename from create_typedef_hash.
9245 (typedef_hash_table::~typedef_hash_table): Now a destructor;
9246 rename from free_typedef_hash.
9247 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
9248 (do_free_global_table): Remove.
9249 (typedef_hash_table::typedef_hash_table): New constructor; renamed
9250 from copy_type_recursive.
9251 (create_global_typedef_table): Remove.
9252 (typedef_hash_table::find_global_typedef): Now a member of
9253 typedef_hash_table.
9254 (typedef_hash_table::find_typedef): Rename from
9255 find_typedef_in_hash; now a member.
9256 (whatis_exp): Update.
9257 * extension.h (struct ext_lang_type_printers): Add constructor and
9258 destructor.
9259 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
9260 declare.
9261 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
9262 Now a constructor; rename from start_ext_lang_type_printers.
9263 (ext_lang_type_printers): Now a destructor; rename from
9264 free_ext_lang_type_printers.
9265 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
9266 Update.
9267 (c_type_print_base_struct_union): Update. Remove cleanups.
9268
608219fb
TT
92692018-03-27 Tom Tromey <tom@tromey.com>
9270
9271 * dwarf-index-write.c: Include <cmath>.
9272
3fcded8f
JB
92732018-03-27 Joel Brobecker <brobecker@adacore.com>
9274
9275 * NEWS: Add entry describing new "set|show varsize-limit" command.
9276 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
9277 command.
9278 * printcmd.c (_initialize_printcmd): Add "set var" alias of
9279 "set variable".
9280
cd4fb1b2
SM
92812018-03-27 Simon Marchi <simon.marchi@ericsson.com>
9282
9283 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
9284 dwarf-index-write.c
9285 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
9286 * dwarf-index-common.c: New file.
9287 * dwarf-index-common.h: New file.
9288 * dwarf-index-write.c: New file.
9289 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
9290 (struct dwarf2_section_info): Move from here.
9291 (dwarf2_section_info_def): Likewise.
9292 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
9293 (offset_type): Likewise.
9294 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
9295 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
9296 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
9297 (byte_swap): Likewise.
9298 (MAYBE_SWAP): Likewise.
9299 (dwarf2_per_cu_ptr): Likewise.
9300 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
9301 (struct tu_stats): Likewise.
9302 (struct dwarf2_per_objfile): Likewise.
9303 (struct dwarf2_per_cu_data): Likewise.
9304 (struct signatured_type): Likewise.
9305 (sig_type_ptr): Likewise.
9306 (DEF_VEC_P (sig_type_ptr)): Likewise.
9307 (INDEX4_SUFFIX): Likewise.
9308 (INDEX5_SUFFIX): Likewise.
9309 (DEBUG_STR_SUFFIX): Likewise.
9310 (dwarf2_read_section): Make non-static.
9311 (mapped_index_string_hash): Move from here.
9312 (dwarf5_djb_hash): Likewise.
9313 (file_write): Likewise.
9314 (class data_buf): Likewise.
9315 (struct symtab_index_entry): Likewise.
9316 (struct mapped_symtab): Likewise.
9317 (find_slot): Likewise.
9318 (hash_expand): Likewise.
9319 (add_index_entry): Likewise.
9320 (uniquify_cu_indices): Likewise.
9321 (class c_str_view): Likewise.
9322 (class c_str_view_hasher): Likewise.
9323 (class vector_hasher): Likewise.
9324 (write_hash_table): Likewise.
9325 (psym_index_map): Likewise.
9326 (struct addrmap_index_data): Likewise.
9327 (add_address_entry): Likewise.
9328 (add_address_entry_worker): Likewise.
9329 (write_address_map): Likewise.
9330 (symbol_kind): Likewise.
9331 (write_psymbols): Likewise.
9332 (struct signatured_type_index_data): Likewise.
9333 (write_one_signatured_type): Likewise.
9334 (recursively_count_psymbols): Likewise.
9335 (recursively_write_psymbols): Likewise.
9336 (class debug_names): Likewise.
9337 (check_dwarf64_offsets): Likewise.
9338 (psyms_seen_size): Likewise.
9339 (write_gdbindex): Likewise.
9340 (write_debug_names): Likewise.
9341 (assert_file_size): Likewise.
9342 (write_psymtabs_to_index): Likewise.
9343 (save_gdb_index_command): Likewise.
9344 (_initialize_dwarf2_read): Don't register the "save gdb-index"
9345 command.
9346 * dwarf2read.h: New file.
9347
59cc4834
JB
93482018-03-27 Joel Brobecker <brobecker@adacore.com>
9349
9350 PR gdb/22670
9351 * dwarf2read.c (dwarf2_physname): Do not return the demangled
9352 symbol name if the CU's language stores symbol names in linkage
9353 format.
9354 * language.h (struct language_defn)
9355 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
9356 all instances of this struct.
9357
67501539
TT
93582018-03-26 Tom Tromey <tom@tromey.com>
9359
9360 * stack.c (backtrace_command_1): Remove verbose code.
9361
76c939ac
TT
93622018-03-26 Tom Tromey <tom@tromey.com>
9363
9364 * python/py-framefilter.c (py_print_type): Don't catch
9365 exceptions. Return void.
9366 (py_print_value): Likewise.
9367 (py_print_single_arg): Likewise.
9368 (enumerate_args): Don't catch exceptions.
9369 (py_print_args): Likewise.
9370 (py_print_frame): Likewise.
9371 (gdbpy_apply_frame_filter): Catch exceptions here.
9372
9507b29c
TT
93732018-03-26 Tom Tromey <tom@tromey.com>
9374
9375 * stack.c (_initialize_stack): Remove trailing newlines from help
9376 text. Add "Usage" line to "backtrace" help.
9377
eb68e487
TT
93782018-03-26 Tom Tromey <tom@tromey.com>
9379
9380 PR python/16486:
9381 * python/py-framefilter.c (py_print_args): Call wrap_hint.
9382
1f111921
TT
93832018-03-26 Tom Tromey <tom@tromey.com>
9384
9385 * python/py-framefilter.c (py_print_single_arg): Return
9386 EXT_LANG_BT_ERROR from catch.
9387
fb7eb8b5
TT
93882018-03-26 Tom Tromey <tom@tromey.com>
9389
9390 PR backtrace/15584:
9391 * stack.c (backtrace_command_1): Move some code into no-filters
9392 "if".
9393
4ca59a9f
TT
93942018-03-26 Tom Tromey <tom@tromey.com>
9395
9396 * python/py-framefilter.c (throw_quit_or_print_exception): New
9397 function.
9398 (gdbpy_apply_frame_filter): Use it.
9399
92256134
TT
94002018-03-26 Tom Tromey <tom@tromey.com>
9401
9402 PR cli/17716:
9403 * python/py-framefilter.c (py_print_type, py_print_value)
9404 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
9405 RETURN_MASK_ERROR.
9406
7a630bc2
TT
94072018-03-26 Tom Tromey <tom@tromey.com>
9408
9409 * python/py-framefilter.c (enumerate_args): Use
9410 gdb::unique_xmalloc_ptr.
9411
63283d4a
TT
94122018-03-26 Tom Tromey <tom@tromey.com>
9413
9414 * python/py-framefilter.c (py_print_frame): Return
9415 EXT_LANG_BT_OK.
9416 (gdbpy_apply_frame_filter): Update comment.
9417 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
9418 Remove.
9419 <EXT_LANG_BT_NO_FILTERS>: Change value.
9420
978d6c75
TT
94212018-03-26 Tom Tromey <tom@tromey.com>
9422
9423 PR backtrace/15582:
9424 * stack.c (backtrace_command): Parse "hide" argument.
9425 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
9426 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
9427 constant.
9428
1cf7e640
TT
94292018-03-26 Tom Tromey <tom@tromey.com>
9430
9431 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
9432 add "flags".
9433 (backtrace_command): Remove "fulltrace", add "flags".
9434
ea3b0687
TT
94352018-03-26 Tom Tromey <tom@tromey.com>
9436
9437 * stack.c (backtrace_command): Rewrite command line parsing.
9438
9f034d75
SM
94392018-03-26 Simon Marchi <simon.marchi@ericsson.com>
9440
9441 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
9442
ce1459e5
SM
94432018-03-26 Simon Marchi <simon.marchi@ericsson.com>
9444
9445 * filename-seen-cache.h: Add include guard.
9446
4f7ae6f5
KS
94472018-03-26 Keith Seitz <keiths@redhat.com>
9448
9449 * symfile.c (place_section): Remove "struct" from section_addr_info
9450 in comment.
9451 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
9452 "struct" keyword from section_addr_info.
9453
5cd3e386
AH
94542018-03-26 Alan Hayward <alan.hayward@arm.com>
9455
9456 * regformats/regdef.h (reg): Add constructors.
9457
3e5ef9a4
PA
94582018-03-25 Pedro Alves <palves@redhat.com>
9459
9460 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
9461 if then/else bodies in var_func_name extraction.
9462
c88d2fcc 94632018-03-23 Weimin Pan <weimin.pan@oracle.com>
bce02d88
WP
9464
9465 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
9466 lookup_minimal_symbol() to find symbol entry.
9467 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
9468
b7fee5a3
KS
94692018-03-23 Keith Seitz <keiths@redhat.com>
9470
9471 PR c++/22968
9472 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
9473 nested type definitions for C++, too.
9474
2cc9b304
TT
94752018-03-23 Tom Tromey <tom@tromey.com>
9476
9477 * machoread.c (struct oso_el): Add a constructor. Don't define as
9478 a typedef.
9479 (macho_register_oso): Remove.
9480 (macho_symtab_read): Take a std::vector.
9481 (oso_el_compare_name): Now a std::sort comparator.
9482 (macho_symfile_read_all_oso): Take a std::vector.
9483 (macho_symfile_read): Use std::vector. Remove cleanups.
9484
a2b2bc12
TT
94852018-03-22 Tom Tromey <tom@tromey.com>
9486
9487 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
9488 (record_full_goto_bookmark): Use std::string.
9489
7a8f494c
PFC
94902018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
9491
9492 PR tdep/18295
9493 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
9494 a single mask.
9495
dd6d677f
PFC
94962018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
9497
9498 * rs6000-tdep.c (store_insn_p): New function.
9499 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
9500 and cr_reg to their unshifted values. Use store_insn_p to
9501 match LR saves using either R1 or fdata->alloca_reg. Use
9502 store_insn_p to match CR saves. Set alloca_reg_offset
9503 when alloca_reg and framep are set. Remove lr_reg shift
9504 when assigning to fdata->lr_register.
9505
26d6cec4
AA
95062018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
9507
9508 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
9509 command line args instead of emitting a warning.
9510
5d9310c4
SM
95112018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
9512
9513 * tracepoint.h (struct static_tracepoint_marker): Initialize
9514 fields, define default constructor, move constructor and move
9515 assignment, disable the rest.
9516 <str_id, extra>: Make std::string.
9517 (release_static_tracepoint_marker): Remove.
9518 (free_current_marker): Remove.
9519 * tracepoint.c (free_current_marker): Remove.
9520 (parse_static_tracepoint_marker_definition): Adjust to
9521 std::string, use new hex2str overload.
9522 (release_static_tracepoint_marker): Remove.
9523 (print_one_static_tracepoint_marker): Get marker by reference
9524 and adjust to std::string.
9525 (info_static_tracepoint_markers_command): Adjust to std::vector
9526 changes
9527 * target.h (static_tracepoint_marker_p): Remove typedef.
9528 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
9529 (struct target_ops) <to_static_tracepoint_marker_at>: Return
9530 bool.
9531 <to_static_tracepoint_markers_by_strid>: Return std::vector.
9532 * target-debug.h
9533 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
9534 (target_debug_print_std_vector_static_tracepoint_marker): New.
9535 (target_debug_print_struct_static_tracepoint_marker_p): Rename
9536 to...
9537 (target_debug_print_static_tracepoint_marker_p): ... this.
9538 * target-delegates.c: Re-generate.
9539 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
9540 Make std::string.
9541 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
9542 (decode_static_tracepoint_spec): Adjust to std::vector.
9543 (tracepoint_print_one_detail): Adjust to std::string.
9544 (strace_marker_decode_location): Adjust to std::string.
9545 (update_static_tracepoint): Adjust to std::string, remove call
9546 to release_static_tracepoint_marker.
9547 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
9548 Adjust to std::vector.
9549 * remote.c (remote_static_tracepoint_marker_at): Return bool.
9550 (remote_static_tracepoint_markers_by_strid): Adjust to
9551 std::vector.
9552 * common/rsp-low.h (hex2str): New overload with explicit count
9553 of bytes.
9554 * common/rsp-low.c (hex2str): New overload with explicit count
9555 of bytes.
9556 * unittests/rsp-low-selftests.c (test_hex2str): New function.
9557 (_initialize_rsp_low_selftests): Add test_hex2str test.
9558 * unittests/tracepoint-selftests.c
9559 (test_parse_static_tracepoint_marker_definition): Adjust to
9560 std::string.
9561
62c222b6
SM
95622018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
9563
9564 * tracepoint.c (parse_static_tracepoint_marker_definition):
9565 Consider case where the definition is followed by more
9566 definitions.
9567 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9568 tracepoint-selftests.c.
9569 * unittests/tracepoint-selftests.c: New.
9570
7eb2418f
PFC
95712018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
9572
9573 * MAINTAINERS (Write After Approval): Add Pedro Franco de
9574 Carvalho.
9575
7cbe16e9
SR
95762018-03-20 Stephen Roberts <stephen.roberts@arm.com>
9577
3d6b3b82 9578 * symtab.c (find_pc_sect_line): fixed indentation.
7cbe16e9 9579
4ee89e90
SR
95802018-03-20 Stephen Roberts <stephen.roberts@arm.com>
9581
3d6b3b82 9582 * symtab.c (find_pc_sect_line): now uses binary search.
4ee89e90 9583
92630041
TT
95842018-03-19 Tom Tromey <tom@tromey.com>
9585
9586 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
9587 "IDENT" production.
9588
76727919
TT
95892018-03-19 Pedro Alves <palves@redhat.com>
9590 Tom Tromey <tom@tromey.com>
9591
9592 * unittests/observable-selftests.c: New file.
9593 * common/observable.h: New file.
9594 * observable.h: New file.
9595 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
9596 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
9597 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
9598 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
9599 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
9600 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
9601 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
9602 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
9603 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
9604 python/py-breakpoint.c, python/py-finishbreakpoint.c,
9605 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
9606 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
9607 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
9608 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
9609 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
9610 tui/tui-interp.c, valops.c: Update all users.
9611 * tui/tui-hooks.c (tui_bp_created_observer)
9612 (tui_bp_deleted_observer, tui_bp_modified_observer)
9613 (tui_inferior_exit_observer, tui_before_prompt_observer)
9614 (tui_normal_stop_observer, tui_register_changed_observer):
9615 Remove.
9616 (tui_observers_token): New global.
9617 (attach_or_detach, tui_attach_detach_observers): New functions.
9618 (tui_install_hooks, tui_remove_hooks): Use
9619 tui_attach_detach_observers.
9620 * record-btrace.c (record_btrace_thread_observer): Remove.
9621 (record_btrace_thread_observer_token): New global.
9622 * observer.sh: Remove.
9623 * observer.c: Rename to observable.c.
9624 * observable.c (namespace gdb_observers): Define new objects.
9625 (observer_debug): Move into gdb_observers namespace.
9626 (struct observer, struct observer_list, xalloc_observer_list_node)
9627 (xfree_observer_list_node, generic_observer_attach)
9628 (generic_observer_detach, generic_observer_notify): Remove.
9629 (_initialize_observer): Update.
9630 Don't include observer.inc.
9631 * Makefile.in (generated_files): Remove observer.h, observer.inc.
9632 (clean mostlyclean): Likewise.
9633 (observer.h, observer.inc): Remove targets.
9634 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
9635 (COMMON_SFILES): Use observable.c, not observer.c.
9636 * .gitignore: Remove observer.h.
9637
1cb1f3da
TT
96382018-03-18 Tom Tromey <tom@tromey.com>
9639
9640 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
9641 gdb::def_vector.
9642 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
9643
a06ab151
TT
96442018-03-17 Tom Tromey <tom@tromey.com>
9645
9646 * auto-load.c (auto_load_objfile_script_1): Use std::string.
9647
770623f7
TT
96482018-03-17 Tom Tromey <tom@tromey.com>
9649
9650 * target.c (class scoped_target_fd): New.
9651 (target_fileio_close_cleanup): Remove.
9652 (target_fileio_read_alloc_1): Use scoped_target_fd.
9653
39be3c7e
SM
96542018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
9655
9656 * silent-rules.mk: New.
9657 * Makefile.in: Include silent-rules.mk
9658 (srcdir, VPATH, top_srcdir): Move up.
9659 (COMPILE): Add ECHO_CXX.
9660 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
9661 (init.c): Add ECHO_INIT_C.
9662 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
9663 (version.c): Add ECHO_GEN.
9664 (printcmd.o): Add ECHO_CXX.
9665 (target-float.o): Add ECHO_CXX.
9666 (ada-exp.o): Add ECHO_CXX.
9667 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
9668 (insight$(EXEEXT)): Add ECHO_CXXLD.
9669 * gnulib/configure.ac: Add AM_SILENT_RULES.
9670 * gnulib/aclocal.m4: Re-generate.
9671 * gnulib/configure: Re-generate.
9672 * gnulib/import/Makefile.in: Re-generate.
9673
37e136b1
TT
96742018-03-16 Tom Tromey <tom@tromey.com>
9675
9676 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
9677 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
9678 * utils.c (do_free_section_addr_info)
9679 (make_cleanup_free_section_addr_info): Remove.
9680 * symfile.h (struct other_sections): Add constructor.
9681 (struct section_addr_info): Remove.
9682 (section_addr_info): New typedef.
9683 (struct sym_fns) <sym_offsets>: Change type of parameter.
9684 (build_section_addr_info_from_objfile)
9685 (relative_addr_info_to_section_offsets, addr_info_make_relative)
9686 (default_symfile_offsets, symbol_file_add)
9687 (symbol_file_add_from_bfd)
9688 (build_section_addr_info_from_section_table): Update.
9689 (alloc_section_addr_info, free_section_addr_info): Don't declare.
9690 * symfile.c (alloc_section_addr_info): Remove.
9691 (build_section_addr_info_from_section_table): Change return type.
9692 Update.
9693 (build_section_addr_info_from_bfd)
9694 (build_section_addr_info_from_objfile): Likewise.
9695 (free_section_addr_info): Remove.
9696 (relative_addr_info_to_section_offsets): Change type of "addrs".
9697 (addrs_section_compar): Now a std::sort comparator.
9698 (addrs_section_sort): Change return type.
9699 (addr_info_make_relative): Change type of "addrs". Update.
9700 (default_symfile_offsets, syms_from_objfile_1)
9701 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
9702 (symbol_file_add_separate): Update.
9703 (symbol_file_add): Change type of "addrs". Update.
9704 (add_symbol_file_command): Update. Remove cleanups.
9705 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
9706 cleanups.
9707 * symfile-debug.c (debug_sym_offsets): Change type of "info".
9708 * solib.c (solib_read_symbols): Update.
9709 * objfiles.c (objfile_relocate): Update. Remove cleanups.
9710 * machoread.c (macho_symfile_offsets): Update.
9711 * jit.c (jit_bfd_try_read_symtab): Update.
9712
03afa6ef
SM
97132018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
9714
9715 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9716 unittests/utils-selftests.c.
9717 * unittests/utils-selftests.c: New file.
9718
3ae9ce5d
TT
97192018-03-14 Tom Tromey <tom@tromey.com>
9720
9721 PR cli/14977:
9722 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
9723 for NULL.
9724
b8c2339b
TT
97252018-03-14 Tom Tromey <tom@tromey.com>
9726
9727 PR cli/19918:
9728 * printcmd.c (printf_pointer): Allow "-" in format.
9729
80ae639d
TT
97302018-03-14 Tom Tromey <tom@tromey.com>
9731
9732 * printcmd.c (_initialize_printcmd): Add usage to printf.
9733
0d671d99
YQ
97342018-03-14 Yao Qi <qiyao@sourceware.org>
9735
9736 * MAINTAINERS: Update my email address.
9737
b577b6af
TT
97382018-03-13 Tom Tromey <tom@tromey.com>
9739
9740 * machoread.c (macho_check_dsym): Change filenamep to a
9741 std::string*.
9742 (macho_symfile_read): Update.
9743 * symfile.c (load_command): Use std::string.
9744
89a3b63e
AB
97452018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
9746
9747 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
9748 to error message string.
9749 (riscv_register_name): Use xsnprintf instead of sprintf.
9750 (riscv_insn::fetch_instruction): Use gdb_assert instead of
9751 internal_error.
9752 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
9753 error.
9754 (riscv_push_dummy_call): Likewise.
9755
984c7238
TT
97562018-03-12 Tom Tromey <tom@tromey.com>
9757
9758 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
9759 Use gdb::byte_vector.
9760 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
9761
933522d1
YQ
97622018-03-12 Yao Qi <yao.qi@linaro.org>
9763
9764 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
9765 parameter type to readable_regcache.
9766 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
9767 the declaration.
9768
be2daae6
TT
97692018-03-11 Tom Tromey <tom@tromey.com>
9770
9771 * dwarf2read.c (struct nextfield): Add initializers.
9772 (struct nextfnfield): Remove.
9773 (struct fnfieldlist): Add initializers. Remove "length" and
9774 "head", use std::vector.
9775 (struct decl_field_list): Remove.
9776 (struct field_info): Add initializers.
9777 <fields, baseclasses>: Now std::vector.
9778 <nbaseclasses, nfnfields, typedef_field_list_count,
9779 nested_types_list_count>: Remove.
9780 (dwarf2_add_field, dwarf2_add_type_defn)
9781 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
9782 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
9783 (process_structure_scope): Update.
9784
484cf504
TT
97852018-03-11 Tom Tromey <tom@tromey.com>
9786
9787 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
9788 for use by std::sort.
9789 (build_type_psymtabs_1): Use std::vector.
9790
9bd8e0b0
EZ
97912018-03-09 Eli Zaretskii <eliz@gnu.org>
9792
9793 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
9794 and LIBMPFR in the printed configuration.
9795
5dc1a704
TT
97962018-03-08 Tom Tromey <tom@tromey.com>
9797
9798 * source.c (get_filename_and_charpos): Use scoped_fd.
9799 * nto-procfs.c (procfs_open_1): Use scoped_fd.
9800 (procfs_pidlist): Likewise.
9801 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
9802 (iterate_over_mappings): Likewise.
9803
fdf07f3a
TT
98042018-03-08 Tom Tromey <tom@tromey.com>
9805
9806 * infcall.c (struct call_return_meta_info)
9807 <stack_temporaries_enabled>: Remove.
9808 (get_call_return_value, call_function_by_hand_dummy): Update.
9809 * thread.c (disable_thread_stack_temporaries): Remove.
9810 (enable_thread_stack_temporaries): Remove.
9811 (thread_stack_temporaries_enabled_p): Return bool.
9812 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
9813 (get_last_thread_stack_temporary): Update.
9814 * eval.c (evaluate_subexp): Update.
9815 * gdbthread.h (class enable_thread_stack_temporaries): Now a
9816 class, not a function.
9817 (value_ptr, value_vec): Remove typedefs.
9818 (class thread_info) <stack_temporaries_enabled>: Now bool.
9819 <stack_temporaries>: Now a std::vector.
9820 (thread_stack_temporaries_enabled_p)
9821 (value_in_thread_stack_temporaries): Return bool.
9822
567a3e54
SM
98232018-03-08 Simon Marchi <simon.marchi@ericsson.com>
9824
9825 * remote.c (putpkt_binary): Fix omitted bytes reporting.
9826 (getpkt_or_notif_sane_1): Likewise.
9827
00b40057
SM
98282018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
9829
9830 * build-id.c (build_id_to_debug_bfd): Use std::string.
9831
a8dbfd58
SM
98322018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
9833
9834 * build-id.c (find_separate_debug_file_by_buildid): Return
9835 std::string.
9836 * build-id.h (find_separate_debug_file_by_buildid): Return
9837 std::string.
9838 * coffread.c (coff_symfile_read): Adjust to std::string.
9839 * elfread.c (elf_symfile_read): Adjust to std::string.
9840 * symfile.c (separate_debug_file_exists): Change parameter to
9841 std::string.
9842 (find_separate_debug_file): Return std::string.
9843 (find_separate_debug_file_by_debuglink): Return std::string.
9844 * symfile.h (find_separate_debug_file_by_debuglink): Return
9845 std::string.
9846
e6a58aa8
SM
98472018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
9848
9849 * common/xml-utils.c (xml_escape_text): Move code to...
9850 (xml_escape_text_append): ... this new function.
9851 * common/xml-utils.h (xml_escape_text_append): New declaration.
9852 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
9853 New function.
9854 (_initialize_xml_utils): register test_xml_escape_text_append as
9855 a selftest.
9856
4ef0bef6
AH
98572018-03-07 Alan Hayward <alan.hayward@arm.com>
9858
9859 * defs.h: Remove MAX_REGISTER_SIZE.
9860 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
9861 asserts.
9862 * python/py-unwind.c (pyuw_sniffer): Likewise.
9863
e0d3522b
TT
98642018-03-07 Tom Tromey <tom@tromey.com>
9865
9866 * linux-tdep.c (linux_info_proc): Update.
9867 * target.h (struct target_ops) <to_fileio_readlink>: Return
9868 optional<string>.
9869 (target_fileio_readlink): Return optional<string>.
9870 * remote.c (remote_hostio_readlink): Return optional<string>.
9871 * inf-child.c (inf_child_fileio_readlink): Return
9872 optional<string>.
9873 * target.c (target_fileio_readlink): Return optional<string>.
9874
ea005f31
AB
98752018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
9876
9877 * regcache.c (cooked_read_test): Add riscv to the list of
9878 architectures that have a save_reggroup.
9879
e95a97d4
AA
98802018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
9881
9882 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
9883 value is not a dynamic class object.
9884
d8344f3d
TT
98852018-03-06 Tom Tromey <tom@tromey.com>
9886
9887 * rust-exp.y: Formatting fixes.
9888
9add17f2
AB
98892018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9890
9891 * riscv-tdep.c (riscv_register_name): Remove target description
9892 support.
9893 (riscv_gdbarch_init): Remove target description check.
9894
c9486dfe
AB
98952018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9896
9897 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
9898 comment.
9899 * riscv-tdep.h: Likewise.
9900
d74aff3d
AB
99012018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9902
9903 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
9904 (riscv_pseudo_register_write): Delete.
9905 (riscv_gdbarch_init): Remove all use of pseudo registers.
9906
7ea78b59
SM
99072018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
9908
9909 * record-btrace.c (btrace_print_lines): Replace cleanup
9910 parameter with RAII equivalents.
9911 (btrace_insn_history): Replace cleanup with RAII equivalents.
9912 * ui-out.h (make_cleanup_ui_out_list_begin_end,
9913 make_cleanup_ui_out_tuple_begin_end): Remove.
9914 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
9915 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
9916 make_cleanup_ui_out_list_begin_end): Remove.
9917
53127008
SM
99182018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
9919
9920 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
9921 parameter types to std::vector. Use bool.
9922 (record_btrace_wait): Replace VEC(tp_t) with
9923 std::vector<thread_info *>.
9924 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
9925
228f1508
SM
99262018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
9927
9928 * record-btrace.c (record_btrace_disable_callback): Remove.
9929 (struct scoped_btrace_disable): New.
9930 (record_btrace_open): Use scoped_btrace_disable.
9931
b2970c23
AB
99322018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9933
9934 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
9935 reading values from registers.
9936
fb294655
AB
99372018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9938
9939 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
9940 where appropriate.
9941
cab5bb9d
AB
99422018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9943
9944 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
9945 change parameter type. Use GDB's print functions, and use
9946 core_addr_to_string where appropriate.
9947 (riscv_push_dummy_call): Use core_addr_to_string where
9948 appropriate, update call to riscv_print_arg_location, and reindent
9949 a few lines.
9950 (riscv_return_value): Update call to riscv_print_arg_location.
9951
dbbb1059
AB
99522018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9953 Tim Newsome <tim@sifive.com>
9954 Albert Ou <a0u@eecs.berkeley.edu>
9955 Darius Rad <darius@bluespec.com>
9956
9957 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
9958 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
9959 (ALLDEPFILES): Add riscv-tdep.c
9960 * configure.tgt: Add riscv support.
9961 * riscv-tdep.c: New file.
9962 * riscv-tdep.h: New file.
9963 * NEWS: Mention new target.
9964 * MAINTAINERS: Add entry for riscv.
9965
5dc43913
AB
99662018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9967
9968 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
9969 fields within aggregates.
9970
3dea1ef7
SM
99712018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
9972
9973 * record-btrace.c (btrace_print_lines): Change type of flags to
9974 gdb_disassembly_flags.
9975
7efba073
JB
99762018-03-04 John Baldwin <jhb@FreeBSD.org>
9977
9978 * fbsd-nat.c: Include "inf-ptrace.h".
9979 (USE_SIGTRAP_SIGINFO): Conditionally define.
9980 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
9981 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
9982 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
9983 function.
9984 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
9985 Likewise.
9986 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
9987 Likewise.
9988 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
9989 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
9990 "supports_stopped_by_hw_breakpoint" target methods.
9991
386a8676
JB
99922018-03-04 John Baldwin <jhb@FreeBSD.org>
9993
9994 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
9995 * fbsd-nat.c (debug_fbsd_nat): New variable.
9996 (show_fbsd_nat_debug): New function.
9997 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
9998 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
9999
12279366
JB
100002018-03-04 John Baldwin <jhb@FreeBSD.org>
10001
10002 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
10003 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
10004 prototype.
10005 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
10006 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
10007 method.
10008
54693cf5
SM
100092018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10010
10011 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
10012 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
10013
ccb2231c
SM
100142018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10015
10016 * charset.c (struct charset_vector): New.
10017 (charsets): Change type to charset_vector.
10018 (find_charset_names): Adjust.
10019 (add_one): Adjust.
10020 (_initialize_charset): Adjust.
10021
6fb16ce6
SM
100222018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10023
10024 * progspace.h (struct program_space) <deleted_solibs>: Change
10025 type to std::vector<std::string>.
10026 * progspace.c (clear_program_space_solib_cache): Adjust.
10027 * breakpoint.c (print_solib_event): Adjust.
10028 (check_status_catch_solib): Adjust.
10029 * solib.c (update_solib_list): Adjust.
10030 * ui-out.h (class ui_out) <field_string>: New overload.
10031 * ui-out.c (ui_out::field_string): New overload.
10032
564b1e3f
SM
100332018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10034
10035 * progspace.h (struct program_space): Add constructor and
10036 destructor, initialize fields.
10037 (add_program_space): Remove.
10038 * progspace.c (add_program_space): Rename to...
10039 (program_space::program_space): ... this.
10040 (release_program_space): Rename to...
10041 (program_space::~program_space): ... this.
10042 (delete_program_space): Use delete to delete program_space.
10043 (initialize_progspace): Use new to allocate program_space.
10044 * inferior.c (add_inferior_with_spaces): Likewise.
10045 (clone_inferior_command): Likewise.
10046 * infrun.c (follow_fork_inferior): Likewise.
10047 (handle_vfork_child_exec_or_exit): Likewise.
10048
e80aaf61
SM
100492018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10050
10051 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
10052 (delim_string_to_char_ptr_vec): Return std::vector of
10053 gdb::unique_xmalloc_ptr.
10054 (dirnames_to_char_ptr_vec_append): Take std::vector of
10055 gdb::unique_xmalloc_ptr.
10056 (dirnames_to_char_ptr_vec): Return std::vector of
10057 gdb::unique_xmalloc_ptr.
10058 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
10059 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
10060 (delim_string_to_char_ptr_vec): Return an std::vector of
10061 gdb::unique_xmalloc_ptr, adjust the code.
10062 (dirnames_to_char_ptr_vec_append): Take an std::vector of
10063 gdb::unique_xmalloc_ptr, adjust the code.
10064 (dirnames_to_char_ptr_vec): Return an std::vector of
10065 gdb::unique_xmalloc_ptr, adjust the code.
10066 * auto-load.c (auto_load_safe_path_vec): Change type to
10067 std::vector of gdb::unique_xmalloc_ptr.
10068 (auto_load_expand_dir_vars): Return an std::vector of
10069 gdb::unique_xmalloc_ptr, adjust the code.
10070 (auto_load_safe_path_vec_update): Adjust.
10071 (filename_is_in_auto_load_safe_path_vec): Adjust.
10072 (auto_load_objfile_script_1): Adjust.
10073 * build-id.c (build_id_to_debug_bfd): Adjust.
10074 * linux-thread-db.c (thread_db_load_search): Adjust.
10075 * source.c (add_path): Adjust.
10076 (openp): Adjust.
10077 * symfile.c (find_separate_debug_file): Adjust.
10078 * utils.c (do_free_char_ptr_vec): Remove.
10079 (make_cleanup_free_char_ptr_vec): Remove.
10080
ab818ade
SDJ
100812018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
10082
10083 PR gdb/22907
10084 * common/pathstuff.c: Conditionally include "<windows.h>".
10085
e1e6f073
GS
100862018-03-01 Georg Sauthoff <mail@georg.so>
10087
10088 PR gdb/22888
10089 * gcore.in: Quote variables and switch interpreter to bash.
10090
c7b15a66
TT
100912018-03-01 Tom Tromey <tom@tromey.com>
10092
10093 * dwarf2read.c (alloc_discriminant_info): Fix default_index
10094 assertion. Add assertion for discriminant_index.
10095 (quirk_rust_enum): Use correct base type name in univariant case.
10096
0cb7c7b0
SM
100972018-03-01 Simon Marchi <simon.marchi@ericsson.com>
10098
10099 * record.c (get_call_history_modifiers): Return a
10100 record_print_flags.
10101 (cmd_record_call_history): Adjust.
10102 * record-btrace.c (record_btrace_call_history): Adjust.
10103 (record_btrace_call_history_range): Adjust.
10104 (record_btrace_call_history_from): Adjust.
10105 * target-debug.h (target_debug_print_record_print_flags): New.
10106 * target-delegates.c: Re-generate.
10107 * target.c (target_call_history): Change flags type.
10108 (target_call_history_from): Likewise.
10109 (target_call_history_range): Likewise.
10110 * target.h (struct target_ops) <target_call_history>: Likewise.
10111 (target_call_history_from): Likewise.
10112 (target_call_history_range): Likewise.
10113
25e3c82c
SDJ
101142018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
10115 Simon Marchi <simon.marchi@polymtl.ca>
10116
10117 * common/common-utils.c: Include "sys/stat.h".
10118 (is_regular_file): Move here from "source.c"; change return
10119 type to "bool".
10120 * common/common-utils.h (is_regular_file): New prototype.
10121 * common/pathstuff.c (contains_dir_separator): New function.
10122 * common/pathstuff.h (contains_dir_separator): New prototype.
10123 * source.c: Don't include "sys/stat.h".
10124 (is_regular_file): Move to "common/common-utils.c".
10125
b4987c95
SDJ
101262018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
10127
10128 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
10129 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
10130 * auto-load.c: Include "common/pathstuff.h".
10131 * common/common-def.h (current_directory): Move here.
10132 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
10133 function.
10134 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
10135 prototype.
10136 * common/pathstuff.c: New file.
10137 * common/pathstuff.h: New file.
10138 * compile/compile.c: Include "common/pathstuff.h".
10139 * defs.h (current_directory): Move to "common/common-defs.h".
10140 * dwarf2read.c: Include "common/pathstuff.h".
10141 * exec.c: Likewise.
10142 * guile/scm-safe-call.c: Likewise.
10143 * linux-thread-db.c: Likewise.
10144 * main.c: Likewise.
10145 * nto-tdep.c: Likewise.
10146 * objfiles.c: Likewise.
10147 * source.c: Likewise.
10148 * symtab.c: Likewise.
10149 * utils.c: Include "common/pathstuff.h".
10150 (gdb_realpath): Move to "common/pathstuff.c".
10151 (gdb_realpath_keepfile): Likewise.
10152 (gdb_abspath): Likewise.
10153 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
10154 (gdb_realpath_keepfile): Likewise.
10155 (gdb_abspath): Likewise.
10156
f169cfdc
JB
101572018-02-28 John Baldwin <jhb@FreeBSD.org>
10158
10159 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
10160 wildcard process pid for super_resume for kernels with a
10161 specific bug.
10162
e05cac70
PM
101632018-02-27 Phil Muldoon <pmuldoon@redhat.com>
10164
10165 * compile/compile.c (get_args): Add additional comments
10166 explaining function.
10167
55089490
TT
101682018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
10169 Tom Tromey <tom@tromey.com>
10170
10171 * target.h (memory_write_request_s): Remove typedef. Don't define
10172 VEC.
10173 (target_write_memory_blocks): Change argument to std::vector.
10174 (struct memory_write_request): Add constructor.
10175 * target-memory.c (compare_block_starting_address): Return bool.
10176 Change argument types.
10177 (claim_memory): Change arguments to use std::vector.
10178 (split_regular_and_flash_blocks, blocks_to_erase)
10179 (compute_garbled_blocks): Likewise.
10180 (cleanup_request_data, cleanup_write_requests_vector): Remove.
10181 (target_write_memory_blocks): Change argument to std::vector.
10182 * symfile.c (struct load_section_data): Add constructor and
10183 destructor. Use std::vector for "requests".
10184 (struct load_progress_data): Add initializers.
10185 (load_section_callback): Update. Use "new".
10186 (clear_memory_write_data): Remove.
10187 (generic_load): Update.
10188
0c305b61
AH
101892018-02-27 Alan Hayward <alan.hayward@arm.com>
10190
10191 * arch/aarch64.h: Use common/tdesc.h.
10192
c5196c92
MR
101932018-02-26 Maciej W. Rozycki <macro@mips.com>
10194
10195 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
10196 architecture with a 64-bit ABI.
10197
37c33887
MR
101982018-02-26 Maciej W. Rozycki <macro@mips.com>
10199
10200 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
10201 ahead of target description loading.
10202
d4dd3282
TT
102032018-02-26 Tom Tromey <tom@tromey.com>
10204
10205 * stack.c (backtrace_command_1): Update.
10206 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
10207 of "flags".
10208 * python/py-framefilter.c (py_print_frame)
10209 (gdbpy_apply_frame_filter): Change type of "flags".
10210 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
10211 of "flags".
10212 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
10213 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
10214 * extension.h (enum frame_filter_flag): Rename from
10215 frame_filter_flags.
10216 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
10217 (apply_ext_lang_frame_filter): Change type of "flags".
10218 * extension.c (apply_ext_lang_frame_filter): Change type of
10219 "flags".
10220 * extension-priv.h (struct extension_language_ops)
10221 <apply_frame_filter>: Change type of "flags".
10222
6893c19a
TT
102232018-02-26 Tom Tromey <tom@tromey.com>
10224
10225 PR python/16497:
10226 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
10227 off-by-one in py_end computation.
10228 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
10229 PRINT_MORE_FRAMES.
10230 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
10231 constant.
10232
2ddeaf8a
TT
102332018-02-26 Tom Tromey <tom@tromey.com>
10234
10235 * dwarf2read.c (struct variant_field): New.
10236 (struct nextfield) <variant>: New field.
10237 (dwarf2_add_field): Handle DW_TAG_variant_part.
10238 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
10239 discriminated union.
10240 (read_structure_type): Handle DW_TAG_variant_part.
10241 (handle_struct_member_die): New function, extracted from
10242 process_structure_scope. Handle DW_TAG_variant.
10243 (process_structure_scope): Handle discriminated unions. Call
10244 handle_struct_member_die.
10245
c9317f21
TT
102462018-02-26 Tom Tromey <tom@tromey.com>
10247
10248 * rust-lang.h (rust_last_path_segment): Declare.
10249 * rust-lang.c (rust_last_path_segment): Now public. Change
10250 contract.
10251 (struct disr_info): Remove.
10252 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
10253 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
10254 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
10255 (rust_enum_p, rust_enum_variant): New function.
10256 (rust_underscore_fields): Remove "offset" parameter.
10257 (rust_print_enum): New function.
10258 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
10259 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
10260 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
10261 enums.
10262 (rust_internal_print_type): New function, from rust_print_type.
10263 Remove enum code.
10264 (rust_print_type): Call rust_internal_print_type.
10265 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
10266 Update enum handling.
10267 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
10268 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
10269 (rust_union_quirks): New functions.
10270 (process_full_comp_unit, process_full_type_unit): Call
10271 rust_union_quirks.
10272 (process_structure_scope): Update rust_unions if necessary.
10273
7c22600a
TT
102742018-02-26 Tom Tromey <tom@tromey.com>
10275
10276 * value.h (value_union_variant): Declare.
10277 * valops.c (value_union_variant): New function.
10278 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
10279 (struct discriminant_info): New.
10280 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
10281 enumerator.
10282 (struct main_type) <flag_discriminated_union>: New field.
10283
15ce8941
TT
102842018-02-26 Tom Tromey <tom@tromey.com>
10285
10286 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10287 unittests/unpack-selftests.c.
10288 * unittests/unpack-selftests.c: New file.
10289 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
10290
48fbe735
YQ
102912018-02-26 Yao Qi <yao.qi@linaro.org>
10292
10293 * dwarf2read.c (struct partial_die_info) <read>: New method.
10294 (read_partial_die): Remove the declaration.
10295 (load_partial_dies): Update.
10296 (partial_die_info::partial_die_info):
10297 (read_partial_die): Change it to partial_die_info::read.
10298
52356b79
YQ
102992018-02-26 Yao Qi <yao.qi@linaro.org>
10300
10301 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
10302 (fixup_partial_die): Remove declaration.
10303 (scan_partial_symbols): Update.
10304 (partial_die_parent_scope): Likewise.
10305 (partial_die_full_name): Likewise.
10306 (fixup_partial_die): Change it to partial_die_info::fixup.
10307
35cc7ed7
YQ
103082018-02-26 Yao Qi <yao.qi@linaro.org>
10309
10310 * dwarf2read.c (read_partial_die): Update the declaration.
10311 (load_partial_dies): Caller update.
10312 (read_partial_die): Remove one argument abbrev_len.
10313
6f06d47b
YQ
103142018-02-26 Yao Qi <yao.qi@linaro.org>
10315
10316 * dwarf2read.c (struct partial_die_info): Add ctor, delete
10317 assignment operator.
10318 (load_partial_dies): Use ctor and copy ctor.
10319 (read_partial_die): Update.
10320 (dwarf2_cu::find_partial_die): Use ctor.
10321
d590ff25
YQ
103222018-02-26 Yao Qi <yao.qi@linaro.org>
10323
10324 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
10325 (find_partial_die_in_comp_unit): Change it to
10326 dwarf2_cu::find_partial_die.
10327 (find_partial_die): Update.
10328
fd0a254f
YQ
103292018-02-26 Yao Qi <yao.qi@linaro.org>
10330
10331 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
10332 is NULL.
10333
cd9983dd
YQ
103342018-02-26 Yao Qi <yao.qi@linaro.org>
10335
10336 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
10337
f46cd62a
AH
103382018-02-26 Alan Hayward <alan.hayward@arm.com>
10339
10340 * arch/amd64.h: Use common/tdesc.h.
10341 * arch/i386.c: Likewise.
10342 * arch/i386.h: Likewise.
10343 * arch/tic6x.c: Likewise.
10344 * arch/tdesc.h: Move file from here...
10345 * common/tdesc.h: ...to here.
10346 * features/aarch64-core.c: Regenerate.
10347 * features/aarch64-fpu.c: Regenerate.
10348 * features/i386/32bit-avx.c: Regenerate.
10349 * features/i386/32bit-avx512.c: Regenerate.
10350 * features/i386/32bit-core.c: Regenerate.
10351 * features/i386/32bit-linux.c: Regenerate.
10352 * features/i386/32bit-mpx.c: Regenerate.
10353 * features/i386/32bit-pkeys.c: Regenerate.
10354 * features/i386/32bit-sse.c: Regenerate.
10355 * features/i386/64bit-avx.c: Regenerate.
10356 * features/i386/64bit-avx512.c: Regenerate.
10357 * features/i386/64bit-core.c: Regenerate.
10358 * features/i386/64bit-linux.c: Regenerate.
10359 * features/i386/64bit-mpx.c: Regenerate.
10360 * features/i386/64bit-pkeys.c: Regenerate.
10361 * features/i386/64bit-segments.c: Regenerate.
10362 * features/i386/64bit-sse.c: Regenerate.
10363 * features/i386/x32-core.c: Regenerate.
10364 * features/tic6x-c6xp.c: Regenerate.
10365 * features/tic6x-core.c: Regenerate.
10366 * features/tic6x-gp.c: Regenerate.
10367 * target-descriptions.c: Use common/tdesc.h.
10368 * target-descriptions.h: Likewise.
10369
9b292f68
TT
103702018-02-24 Tom Tromey <tom@tromey.com>
10371
10372 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
10373 (try_thread_db_load_from_dir, thread_db_load_search): Use
10374 std::string.
10375 (info_auto_load_libthread_db_compare): Return bool. Change
10376 argument types.
10377 (info_auto_load_libthread_db): Use std::vector, std::string.
10378 Remove cleanups.
10379
281d762b
TT
103802018-02-24 Tom Tromey <tom@tromey.com>
10381
10382 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
10383 std::string.
10384 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
10385 std::string*.
10386 * gdbarch.c: Rebuild.
10387 * gdbarch.h: Rebuild.
10388 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
10389 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
10390 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
10391 std::string*.
10392
9d8780f0
SM
103932018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
10394
10395 * gdbtypes.h (sect_offset): Change type to uint64_t.
10396 (sect_offset_str): New function.
10397 * dwarf2read.c (create_addrmap_from_aranges): Use
10398 sect_offset_str.
10399 (error_check_comp_unit_head): Likewise.
10400 (create_debug_type_hash_table): Likewise.
10401 (read_cutu_die_from_dwo): Likewise.
10402 (init_cutu_and_read_dies): Likewise.
10403 (init_cutu_and_read_dies_no_follow): Likewise.
10404 (process_psymtab_comp_unit_reader): Likewise.
10405 (partial_die_parent_scope): Likewise.
10406 (peek_die_abbrev): Likewise.
10407 (process_queue): Likewise.
10408 (dwarf2_physname): Likewise.
10409 (read_namespace_alias): Likewise.
10410 (read_import_statement): Likewise.
10411 (create_dwo_cu_reader): Likewise.
10412 (create_cus_hash_table): Likewise.
10413 (lookup_dwo_cutu): Likewise.
10414 (inherit_abstract_dies): Likewise.
10415 (read_func_scope): Likewise.
10416 (read_call_site_scope): Likewise.
10417 (dwarf2_add_member_fn): Likewise.
10418 (read_common_block): Likewise.
10419 (read_module_type): Likewise.
10420 (read_typedef): Likewise.
10421 (read_subrange_type): Likewise.
10422 (load_partial_dies): Likewise.
10423 (read_partial_die): Likewise.
10424 (find_partial_die): Likewise.
10425 (read_str_index): Likewise.
10426 (dwarf2_string_attr): Likewise.
10427 (build_error_marker_type): Likewise.
10428 (lookup_die_type): Likewise.
10429 (dump_die_shallow): Likewise.
10430 (follow_die_ref): Likewise.
10431 (dwarf2_fetch_die_loc_sect_off): Likewise.
10432 (dwarf2_fetch_constant_bytes): Likewise.
10433 (follow_die_sig): Likewise.
10434 (get_signatured_type): Likewise.
10435 (get_DW_AT_signature_type): Likewise.
10436 (dwarf2_find_containing_comp_unit): Likewise.
10437 (set_die_type): Likewise.
10438
8ec57239
JB
104392018-02-21 John Baldwin <jhb@FreeBSD.org>
10440
10441 * arch/aarch64.c: Include "common-defs.h".
10442 * arch/amd64.c: Likewise.
10443 * arch/i386.c: Likewise.
10444
3eac2b65
TT
104452018-02-21 Tom Tromey <tom@tromey.com>
10446
10447 * value.h: (extract_field_op): Update.
10448 * eval.c (extract_field_op): Return a const char *.
10449 * expression.h (parse_expression_for_completion): Update.
10450 * completer.c (complete_expression): Update.
10451 (add_struct_fields): Make fieldname const.
10452 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
10453 (mark_completion_tag, parse_exp_in_context_1): Update.
10454 (parse_expression_for_completion): Change "name" to
10455 unique_xmalloc_ptr*.
10456
6ccb583f
TT
104572018-02-21 Tom Tromey <tom@tromey.com>
10458
10459 * infcall.c (call_function_by_hand_dummy): Use std::vector.
10460
c113ed0c
YQ
104612018-02-21 Yao Qi <yao.qi@linaro.org>
10462
10463 * avr-tdep.c (avr_read_pc): Change parameter type to
10464 readable_regcache.
10465 * gdbarch.sh (read_pc): Likewise.
10466 * gdbarch.c: Re-generated.
10467 * gdbarch.h: Re-generated.
10468 * hppa-tdep.c (hppa_read_pc): Change parameter type to
10469 readable_regcache.
10470 * ia64-tdep.c (ia64_read_pc): Likewise.
10471 * mips-tdep.c (mips_read_pc): Likewise.
10472 * spu-tdep.c (spu_read_pc): Likewise.
10473
4c74fe6b
YQ
104742018-02-21 Yao Qi <yao.qi@linaro.org>
10475
10476 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
10477 * regcache-dump.c: New file.
10478 * regcache.c: Move register_dump to regcache-dump.c.
10479 (maintenance_print_registers): Likewise.
10480 (maintenance_print_raw_registers): Likewise.
10481 (maintenance_print_cooked_registers): Likewise.
10482 (maintenance_print_register_groups): Likewise.
10483 (maintenance_print_remote_registers): Likewise.
10484 (_initialize_regcache): Likewise.
10485 * regcache.h (register_dump): Moved from regcache.c.
10486
796bb026
YQ
104872018-02-21 Yao Qi <yao.qi@linaro.org>
10488
10489 * regcache.c (regcache::regcache): Update.
10490 (regcache::invalidate): Move it to detached_regcache::invalidate.
10491 (get_thread_arch_aspace_regcache): Update.
10492 (regcache::raw_update): Update.
10493 (regcache::cooked_read): Remove some code.
10494 (regcache::cooked_read_value): Likewise.
10495 (regcache::raw_write): Remove assert on m_readonly_p.
10496 (regcache::raw_supply_integer): Move it to
10497 detached_regcache::raw_supply_integer.
10498 (regcache::raw_supply_zeroed): Likewise.
10499 * regcache.h (detached_regcache) <raw_supply_integer>: New
10500 declaration.
10501 <raw_supply_zeroed, invalidate>: Likewise.
10502 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
10503 <invalidate>: Likewise.
10504 <m_readonly_p>: Removed.
10505
215c69dc
YQ
105062018-02-21 Yao Qi <yao.qi@linaro.org>
10507
10508 * infcmd.c (get_return_value): Let stop_regs point to
10509 get_current_regcache.
10510 * regcache.c (regcache::regcache): Remove.
10511 (register_dump_reg_buffer): New class.
10512 (regcache_print): Adjust.
10513 * regcache.h (regcache): Remove constructors.
10514
f3384e66
YQ
105152018-02-21 Yao Qi <yao.qi@linaro.org>
10516
10517 * regcache.c (class register_dump): New class.
10518 (register_dump_regcache, register_dump_none): New class.
10519 (register_dump_remote, register_dump_groups): New class.
10520 (regcache_print): Update.
10521 * regcache.h (regcache_dump_what): Move it to regcache.c.
10522 (regcache) <dump>: Remove.
10523
c8ec2f33
YQ
105242018-02-21 Yao Qi <yao.qi@linaro.org>
10525
10526 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
10527 reg_buffer_rw *.
10528 (jit_unwind_reg_set_impl): Call raw_supply.
10529 (jit_frame_sniffer): Use reg_buffer_rw.
10530 * record-full.c (record_full_core_regbuf): Change its type.
10531 (record_full_core_open_1): Use reg_buffer_rw.
10532 (record_full_close): Likewise.
10533 (record_full_core_fetch_registers): Use regcache->raw_supply.
10534 (record_full_core_store_registers): Likewise.
10535 * regcache.c (regcache::get_register_status): Move it to
10536 reg_buffer.
10537 (regcache_raw_set_cached_value): Remove.
10538 (regcache::raw_set_cached_value): Remove.
10539 (regcache::raw_write): Call raw_supply.
10540 (regcache::raw_supply): Move it to reg_buffer_rw.
10541 * regcache.h (regcache_raw_set_cached_value): Remove.
10542 (reg_buffer_rw): New class.
10543
daf6667d
YQ
105442018-02-21 Yao Qi <yao.qi@linaro.org>
10545
10546 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
10547 readonly_detached_regcache.
10548 (dummy_frame_prev_register): Use regcache->cooked_read.
10549 * frame.c (frame_save_as_regcache): Change return type.
10550 (frame_pop): Update.
10551 * frame.h (frame_save_as_regcache): Update declaration.
10552 * inferior.h (get_infcall_suspend_state_regcache): Update
10553 declaration.
10554 * infrun.c (infcall_suspend_state) <registers>: use
10555 readonly_detached_regcache.
10556 (save_infcall_suspend_state): Don't use regcache_dup.
10557 (get_infcall_suspend_state_regcache): Change return type.
10558 * linux-fork.c (struct fork_info) <savedregs>: Change to
10559 readonly_detached_regcache.
10560 <pc>: New field.
10561 (fork_save_infrun_state): Don't use regcache_dup.
10562 (info_checkpoints_command): Adjust.
10563 * mi/mi-main.c (register_changed_p): Update declaration.
10564 (mi_cmd_data_list_changed_registers): Use
10565 readonly_detached_regcache.
10566 (register_changed_p): Change parameter type to
10567 readonly_detached_regcache.
10568 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
10569 readonly_detached_regcache.
10570 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
10571 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
10572 New.
10573 (regcache::save): Move it to reg_buffer.
10574 (regcache::restore): Change parameter type.
10575 (regcache_dup): Remove.
10576 * regcache.h (reg_buffer) <save>: New method.
10577 (readonly_detached_regcache): New class.
10578 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
10579 readonly_detached_regcache.
10580 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
10581
fc5b8736
YQ
105822018-02-21 Yao Qi <yao.qi@linaro.org>
10583
10584 * frame.c (frame_save_as_regcache): Use regcache method save.
10585 (frame_pop): Use regcache method restore.
10586 * infrun.c (restore_infcall_suspend_state): Likewise.
10587 * linux-fork.c (fork_load_infrun_state): Likewise.
10588 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
10589 save.
10590 * regcache.c (regcache_save): Remove.
10591 (regcache::restore): More asserts.
10592 (regcache_cpy): Remove.
10593 * regcache.h (regcache_save): Remove the declaration.
10594 (regcache::restore): Move from private to public.
10595 Remove the friend declaration of regcache_cpy.
10596 (regcache_cpy): Remove declaration.
10597
849d0ba8
YQ
105982018-02-21 Yao Qi <yao.qi@linaro.org>
10599
10600 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
10601 parameter type to 'readable_regcache *'.
10602 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
10603 * arm-tdep.c (arm_neon_quad_read): Likewise.
10604 (arm_pseudo_read): Likewise.
10605 * avr-tdep.c (avr_pseudo_register_read): Likewise.
10606 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
10607 * frv-tdep.c (frv_pseudo_register_read): Likewise.
10608 * gdbarch.c: Re-generated.
10609 * gdbarch.h: Re-generated.
10610 * gdbarch.sh (pseudo_register_read): Change parameter type to
10611 'readable_regcache *'.
10612 (pseudo_register_read_value): Likewise.
10613 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
10614 (h8300_pseudo_register_read): Likewise.
10615 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
10616 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
10617 (i386_pseudo_register_read_into_value): Likewise.
10618 (i386_pseudo_register_read_value): Likewise.
10619 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
10620 declaration.
10621 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
10622 * m32c-tdep.c (m32c_raw_read): Likewise.
10623 (m32c_read_flg): Likewise.
10624 (m32c_banked_register): Likewise.
10625 (m32c_banked_read): Likewise.
10626 (m32c_sb_read): Likewise.
10627 (m32c_part_read): Likewise.
10628 (m32c_cat_read): Likewise.
10629 (m32c_r3r2r1r0_read): Likewise.
10630 (m32c_pseudo_register_read): Likewise.
10631 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
10632 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
10633 (mep_pseudo_cr64_read): Likewise.
10634 (mep_pseudo_register_read): Likewise.
10635 * mips-tdep.c (mips_pseudo_register_read): Likewise.
10636 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
10637 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
10638 * regcache.c (regcache::raw_read): Move it to readable_regcache.
10639 (regcache::cooked_read): Likewise.
10640 (regcache::cooked_read_value): Likewise.
10641 (regcache_cooked_read_signed):
10642 (regcache::cooked_read): Likewise.
10643 * regcache.h (readable_regcache): New class.
10644 (regcache): Inherit readable_regcache. Move some methods to
10645 readable_regcache.
10646 * rl78-tdep.c (rl78_pseudo_register_read): Change
10647 parameter type to 'readable_regcache *'.
10648 * rs6000-tdep.c (do_regcache_raw_read): Remove.
10649 (e500_pseudo_register_read): Change parameter type to
10650 'readable_regcache *'.
10651 (dfp_pseudo_register_read): Likewise.
10652 (vsx_pseudo_register_read): Likewise.
10653 (efpr_pseudo_register_read): Likewise.
10654 * s390-tdep.c (s390_pseudo_register_read): Likewise.
10655 * sh-tdep.c (sh_pseudo_register_read): Likewise.
10656 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
10657 (sh64_pseudo_register_read): Likewise.
10658 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
10659 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
10660 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
10661 (spu_pseudo_register_read): Likewise.
10662 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
10663 (xtensa_pseudo_register_read): Likewise.
10664
31716595
YQ
106652018-02-21 Yao Qi <yao.qi@linaro.org>
10666
10667 * regcache.c (regcache::regcache): Call reg_buffer ctor.
10668 (regcache::arch): Move it to reg_buffer::arch.
10669 (regcache::register_buffer): Likewise.
10670 (regcache::assert_regnum): Likewise.
10671 (regcache::num_raw_registers): Likewise.
10672 * regcache.h (reg_buffer): New class.
10673 (regcache): Inherit reg_buffer.
10674
7104e59b
SM
106752018-02-20 Simon Marchi <simon.marchi@ericsson.com>
10676
10677 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
10678 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
10679
2d8adcbd
MM
106802018-02-20 Markus Metzger <markus.t.metzger@intel.com>
10681
10682 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
10683
b5884fa7
AH
106842018-02-19 Alan Hayward <alan.hayward@arm.com>
10685
10686 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
10687 (SFILES): Remove common/*.c files.
10688 (COMMON_OBS): Remove some *.o files built from common/*.c files.
10689 * common/common.host: Add common reference.
10690 * configure.ac: Likewise.
10691 * configure: Regenerate.
10692
fd90ace4
YQ
106932018-02-16 Yao Qi <yao.qi@linaro.org>
10694
10695 * block.c (block_namespace_info): Inherit allocate_on_obstack.
10696 (block_initialize_namespace): Use new.
10697 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
10698 (dwarf2_free_objfile): Use delete.
10699 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
10700 (copy_type_recursive): Use new.
10701 * gdb_obstack.h (allocate_on_obstack): New.
10702
85046ae2
YQ
107032018-02-15 Yao Qi <yao.qi@linaro.org>
10704
10705 PR gdb/22849
10706 * inferior.c (exit_inferior_1): Reset inf->control.
10707
355c559b
JB
107082018-02-15 Joel Brobecker <brobecker@adacore.com>
10709
10710 * ada-lang.c (ada_to_fixed_value_create): Delete advance
10711 declaration.
10712
980548fd
PA
107132018-02-14 Pedro Alves <palves@redhat.com>
10714
10715 * frame-unwind.c (frame_unwind_try_unwinder): Always call
10716 frame_cleanup_after_sniffer on exception.
10717
692d6f97
TT
107182018-02-14 Tom Tromey <tom@tromey.com>
10719
10720 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
10721 const.
10722 (solib_bfd_open): Make pathname const.
10723 * solib.c (solib_bfd_open): Make pathname const.
10724 * solib-spu.c (spu_bfd_fopen): Make name const.
10725 (spu_bfd_open): Make pathname const.
10726 * solib-darwin.c (darwin_bfd_open): Make pathname const.
10727 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
10728
e0cc99a6
TT
107292018-02-14 Tom Tromey <tom@tromey.com>
10730
10731 * symfile.c (symfile_bfd_open): Update.
10732 * source.h (openp, source_full_path_of, find_and_open_source):
10733 Change argument type to unique_xmalloc_ptr.
10734 * source.c (openp): Take a unique_xmalloc_ptr.
10735 (source_full_path_of, find_and_open_source): Likewise.
10736 (open_source_file, symtab_to_fullname): Update.
10737 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
10738 unique_xmalloc_ptr.
10739 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
10740 (exec_file_find): Update.
10741 * psymtab.c (psymtab_to_fullname): Update.
10742 * nto-tdep.h (nto_find_and_open_solib): Update.
10743 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
10744 unique_xmalloc_ptr.
10745 * exec.c (exec_file_attach): Update.
10746 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
10747 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
10748
b46a8d7c
TT
107492018-02-14 Tom Tromey <tom@tromey.com>
10750
10751 * solib.c: Include source.h.
10752 * nto-tdep.c: Include source.h.
10753 * mi/mi-cmd-env.c: Include source.h.
10754 * infcmd.c: Include source.h.
10755 * exec.c: Include source.h.
10756 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
10757 (add_path, directory_switch, source_path, init_source_path): Move
10758 declarations...
10759 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
10760 (add_path, directory_switch, source_path, init_source_path):
10761 ...here.
10762
797bc1cb
TT
107632018-02-14 Tom Tromey <tom@tromey.com>
10764
10765 * solist.h (exec_file_find, solib_find): Return
10766 unique_xmalloc_ptr.
10767 (solib_bfd_fopen): Take a const char *.
10768 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
10769 (exec_file_find, solib_find): Likewise.
10770 (solib_bfd_fopen): Do not take ownership of "pathname".
10771 (solib_bfd_open): Use unique_xmalloc_ptr.
10772 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
10773 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
10774 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
10775 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
10776
f98b2e33
JB
107772018-02-14 Joel Brobecker <brobecker@adacore.com>
10778
10779 * ada-lang.c (name_match_type_from_name): Remove reference to
10780 ada_name_for_lookup in function's documentation.
10781 * ada-lang.h (ada_name_for_lookup): Delete declaration.
10782
24b9144d
SM
107832018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
10784
10785 * defs.h (enum openp_flags): New enum.
10786 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
10787 Move to enum openp_flags.
10788 (openp_flags): New enum flags.
10789 (openp): Change parameter type to openp_flags.
10790 * source.c (openp): Change parameter type to openp_flags.
10791 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
10792 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
10793
387cd15b
SM
107942018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
10795
10796 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
10797 per-command.
10798
b303c6f6
AB
107992018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
10800
10801 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
10802 into...
10803 (class dwarf2_queue_guard): ...the destructor of this new class.
10804 (dw2_do_instantiate_symtab): Create instance of the new class
10805 dwarf2_queue_guard, remove cleanup.
10806
9c3630e9
TT
108072018-02-09 Tom Tromey <tom@tromey.com>
10808
10809 * source.c (find_source_lines): Don't reference past the end of
10810 the vector.
10811
c4e12631
MM
108122018-02-09 Markus Metzger <markus.t.metzger@intel.com>
10813
10814 * remote.c (remote_btrace_maybe_reopen): Change error message.
10815 * btrace.c (btrace_enable): Likewise.
10816 (parse_xml_btrace): Likewise.
10817 (parse_xml_btrace_conf): Likewise.
10818
88711fbf
MM
108192018-02-09 Markus Metzger <markus.t.metzger@intel.com>
10820
10821 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
10822 (linux_enable_pt, linux_enable_bts): Call
10823 diagnose_perf_event_open_fail.
10824
17ad2a4f
MM
108252018-02-09 Markus Metzger <markus.t.metzger@intel.com>
10826
10827 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
10828 Remove parameter and change return type. Update callers. Move it.
10829 (linux_enable_bts, linux_enable_pt): Improve error message.
10830 (linux_enable_pt): Remove zero buffer size check.
10831 (linux_enable_btrace): Improve error messages. Remove NULL return
10832 check.
10833
de6242d3
MM
108342018-02-09 Markus Metzger <markus.t.metzger@intel.com>
10835
10836 * btrace.c (btrace_enable): Remove target_supports_btrace call.
10837 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
10838 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
10839 (linux_supports_pt, linux_supports_btrace): Remove.
10840 (linux_enable_bts): Call cpu_supports_bts.
10841 * nat/linux-btrace.h (linux_supports_btrace): Remove.
10842 * remote.c (remote_supports_btrace): Remove.
10843 (init_remote_ops): Remove remote_supports_btrace.
10844 * target-delegates.c: Regenerated.
10845 * target.c (target_supports_btrace): Remove.
10846 * target.h (target_ops) <to_supports_btrace>: Remove
10847 (target_supports_btrace): Remove.
10848 * x86-linux-nat.c (x86_linux_create_target): Remove
10849 linux_supports_btrace.
10850
9ee23a85
MM
108512018-02-09 Markus Metzger <markus.t.metzger@intel.com>
10852
10853 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
10854 btrace failed.
10855 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
10856 exception and use message in own exception.
10857
5c3284c1
MM
108582018-02-09 Markus Metzger <markus.t.metzger@intel.com>
10859
10860 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
10861 (perf_event_pt_event_type): Use gdb_file_up.
10862 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
10863 scoped_fd, and scoped_mmap.
10864
84696f37
MM
108652018-02-09 Markus Metzger <markus.t.metzger@intel.com>
10866
10867 * common/scoped_mmap.h: New.
10868 * unittests/scoped_mmap-selftest.c: New.
10869 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10870 unittests/scoped_mmap-selftest.c.
10871
ea4a0888
MM
108722018-02-09 Markus Metzger <markus.t.metzger@intel.com>
10873
10874 * common/scoped_fd.h: New.
10875 * unittests/scoped_fd-selftest.c: New.
10876 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10877 unittests/scoped_fd-selftest.c.
10878
869e8290
TT
108792018-02-09 Tom Tromey <tom@tromey.com>
10880
10881 * auto-load.c (auto_load_section_scripts): Use
10882 gdb::unique_xmalloc_ptr.
10883
a37a2ae7
TT
108842018-02-09 Tom Tromey <tom@tromey.com>
10885
10886 * auto-load.c (execute_script_contents): Use std::string.
10887
4e725347
JB
108882018-02-09 Joel Brobecker <brobecker@adacore.com>
10889
10890 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
10891 Python function, rather than a new command.
10892
9a897d43
TT
108932018-02-08 Tom Tromey <tom@tromey.com>
10894
10895 * solib.c (solib_find_1): Use std::string.
10896 (solib_bfd_fopen): Use unique_xmalloc_ptr.
10897
58ef3771
TT
108982018-02-08 Tom Tromey <tom@tromey.com>
10899
10900 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
10901
a9abc434
TT
109022018-02-08 Tom Tromey <tom@tromey.com>
10903
10904 * source.c (find_source_lines): Use gdb::def_vector.
10905
84f27c6f
TT
109062018-02-08 Tom Tromey <tom@tromey.com>
10907
10908 * macrocmd.c (struct temporary_macro_definition): New.
10909 (macro_define_command): Use temporary_macro_definition. Remove
10910 cleanups.
10911 (free_macro_definition_ptr): Remove.
10912
0354904b
TT
109132018-02-08 Tom Tromey <tom@tromey.com>
10914
10915 * macroexp.c (maybe_expand): Use std::string.
10916
1739cf24
TT
109172018-02-08 Tom Tromey <tom@tromey.com>
10918
10919 * macroexp.c (struct macro_buffer): Add initializers for some
10920 members.
10921 (init_buffer, init_shared_buffer, free_buffer)
10922 (free_buffer_return_text): Remove.
10923 (macro_buffer): New constructors.
10924 (~macro_buffer): New destructor.
10925 (macro_buffer::set_shared): New method.
10926 (macro_buffer::resize_buffer, macro_buffer::appendc)
10927 (macro_buffer::appendmem): Now methods, not free functions.
10928 (set_token, append_tokens_without_splicing, stringify)
10929 (macro_stringify): Update.
10930 (gather_arguments): Change return type. Remove argc_p argument,
10931 add args_ptr argument. Use std::vector.
10932 (substitute_args): Remove argc argument. Accept std::vector.
10933 (expand): Update. Use std::vector.
10934 (scan, macro_expand, macro_expand_next): Update.
10935
f6c2623e
TT
109362018-02-08 Tom Tromey <tom@tromey.com>
10937
10938 * symtab.c (default_collect_symbol_completion_matches_break_on):
10939 Use unique_xmalloc_ptr.
10940 * macroscope.h: (sal_macro_scope, user_macro_scope)
10941 (default_macro_scope): Return unique_xmalloc_ptr.
10942 * macroscope.c (sal_macro_scope, user_macro_scope)
10943 (default_macro_scope): Return unique_xmalloc_ptr.
10944 * macroexp.h (macro_expand, macro_expand_once): Return
10945 unique_xmalloc_ptr.
10946 * macroexp.c (macro_expand, macro_expand_once): Return
10947 unique_xmalloc_ptr.
10948 * macrocmd.c (macro_expand_command, macro_expand_once_command)
10949 (info_macro_command, info_macros_command): Use
10950 unique_xmalloc_ptr.
10951 * compile/compile-c-support.c (write_macro_definitions): Use
10952 unique_xmalloc_ptr.
10953 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
10954
c2e0e465
SM
109552018-02-07 Simon Marchi <simon.marchi@ericsson.com>
10956
10957 * value.c (value_static_field): Assign field type instead of
10958 containing type when returning an optimized out value.
10959
3f8c94b4
YQ
109602018-02-06 Yao Qi <yao.qi@linaro.org>
10961
10962 * ft32-tdep.c (ft32_read_pc): Remove.
10963 (ft32_write_pc): Remove.
10964 (ft32_gdbarch_init): Update.
10965 * m32r-tdep.c (m32r_read_pc): Remove.
10966 (m32r_gdbarch_init): Update.
10967 * mep-tdep.c (mep_read_pc): Remove.
10968 (mep_gdbarch_init): Update.
10969 * microblaze-tdep.c (microblaze_write_pc): Remove.
10970 (microblaze_gdbarch_init): Update.
10971 * mn10300-tdep.c (mn10300_read_pc): Remove.
10972 (mn10300_write_pc): Remove.
10973 (mn10300_gdbarch_init): Update.
10974 * moxie-tdep.c (moxie_read_pc): Remove.
10975 (moxie_write_pc): Remove.
10976 (moxie_gdbarch_init): Update.
10977
bca65a23
YQ
109782018-02-06 Yao Qi <yao.qi@linaro.org>
10979
10980 * expprint.c (print_subexp_standard): Handle
10981 OP_F77_UNDETERMINED_ARGLIST.
10982 (dump_subexp_body_standard): Likewise.
10983
583e3f90 109842018-02-05 Alan Hayward <alan.hayward@arm.com>
b8df6ca7 10985
583e3f90
YQ
10986 * target-descriptions.c (tdesc_element_visitor) Add empty
10987 implementations.
b8df6ca7
AH
10988 (tdesc_type): Move make_gdb_type from here.
10989 (tdesc_type_builtin): Likewise.
10990 (tdesc_type_vector): Likewise.
10991 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
10992 (make_gdb_type_struct): Move from tdesc_type_with_fields.
10993 (make_gdb_type_union): Likewise.
10994 (make_gdb_type_flags): Likewise.
10995 (make_gdb_type_enum): Likewise.
10996 (make_gdb_type): New function.
10997 (tdesc_register_type): Use static make_gdb_type.
10998
e813d34a
RK
109992018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
11000
11001 * infcmd.c (default_print_one_register_info): Align natural-format
11002 column values consistently one under another.
11003 (pad_to_column): New function.
11004
0eb876f5
JB
110052018-02-05 Joel Brobecker <brobecker@adacore.com>
11006
11007 * dwarf2read.c (dwarf2_physname): Move commment.
11008
0625771b
LS
110092018-02-01 Leszek Swirski <leszeks@google.com>
11010
11011 * varobj.c (varobj_formatted_print_options): Allow recursive
11012 pretty printing if pretty printing is enabled.
11013
59498c30
LS
110142018-02-01 Leszek Swirski <leszeks@google.com>
11015
11016 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
11017 names after a structop as a filename.
11018
2d9e6acb
YQ
110192018-02-01 Yao Qi <yao.qi@linaro.org>
11020
11021 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
11022 (arm_record_coproc_data_proc): Likewise.
11023
df95a9cf
YQ
110242018-02-01 Yao Qi <yao.qi@linaro.org>
11025
11026 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
11027
07e5f5cf
NP
110282018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
11029
11030 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
11031 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
11032
3045b475
PA
110332018-01-31 Pedro Alves <palves@redhat.com>
11034
11035 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
11036 * inflow.c (child_terminal_save_inferior): Wrap reference to
11037 tcgetpgrp in HAVE_TERMIOS_H.
11038 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
11039 _WIN32.
11040 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
11041 always iterate over all inferiors.
11042 (gdbsim_cntrl_c): Adjust.
11043 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
11044
929b5ad4
JB
110452018-01-31 Joel Brobecker <brobecker@adacore.com>
11046
11047 * gdbtypes.c (lookup_array_range_type): Make sure the array's
11048 index type is objfile-owned if the element type is as well.
11049
29236ca2
JB
110502018-01-31 Joel Brobecker <brobecker@adacore.com>
11051
11052 GDB 8.1 released.
11053
c81e8879
PR
110542018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
11055
11056 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
11057 "features/s390x-linux64.c".
11058 (_initialize_s390_linux_tdep): Remove initialization of tdescs
11059 s390_linux32 and s390x_linux64.
11060 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
11061 default tdesc.
11062 * s390-tdep.c: Include "features/s390-linux32.c" and
11063 "features/s390x-linux64.c".
11064 (s390_tdesc_valid): Add check for tdesc_has_registers.
11065 (s390_gdbarch_init): Make sure there is always a valid tdesc.
11066 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
11067 tdesc_s390x_linux64.
11068 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
11069 tdesc_s390x_linux64 to...
11070 * s390-tdep.h: ...here.
11071
e671cd59
PA
110722018-01-30 Pedro Alves <palves@redhat.com>
11073
11074 PR gdb/13211
11075 * config.in, configure: Regenerate.
11076 * configure.ac: Check for getpgid.
11077 * go32-nat.c (go32_pass_ctrlc): New.
11078 (go32_target): Install it.
11079 * inf-child.c (inf_child_target): Install
11080 child_terminal_save_inferior, child_pass_ctrlc and
11081 child_interrupt.
11082 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
11083 (inf_ptrace_target): No longer install it.
11084 * infcmd.c (interrupt_target_1): Adjust.
11085 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
11086 (child_interrupt): Declare.
11087 (inferior::terminal_state): New.
11088 * inflow.c (struct terminal_info): Update comments.
11089 (inferior_process_group): Delete.
11090 (terminal_is_ours): Delete.
11091 (gdb_tty_state): New.
11092 (child_terminal_init): Adjust.
11093 (is_gdb_terminal, sharing_input_terminal_1)
11094 (sharing_input_terminal): New functions.
11095 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
11096 Set the process's actual process group in the foreground if
11097 possible. Handle is_ours_for_output/is_ours distinction. Don't
11098 mark terminal as the inferior's if not sharing GDB's terminal.
11099 Don't check attach_flag.
11100 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
11101 pass down a target_terminal_state.
11102 (child_terminal_save_inferior): New, factored out from ...
11103 (child_terminal_ours_1): ... this. Handle
11104 target_terminal_state::is_ours_for_output.
11105 (child_interrupt, child_pass_ctrlc): New.
11106 (inflow_inferior_exit): Clear the inferior's terminal_state.
11107 (copy_terminal_info): Copy the inferior's terminal state.
11108 (_initialize_inflow): Remove reference to terminal_is_ours.
11109 * inflow.h (inferior_process_group): Delete.
11110 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
11111 * procfs.c (procfs_target): Don't install procfs_interrupt.
11112 (procfs_interrupt): Delete.
11113 * remote.c (remote_serial_quit_handler): Adjust.
11114 (remote_interrupt): Remove ptid parameter. Adjust.
11115 * target-delegates.c: Regenerate.
11116 * target.c: Include "terminal.h".
11117 (target_terminal::terminal_state): Rename to ...
11118 (target_terminal::m_terminal_state): ... this.
11119 (target_terminal::init): Adjust.
11120 (target_terminal::inferior): Adjust to per-inferior
11121 terminal_state.
11122 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
11123 (target_terminal::ours, target_terminal::ours_for_output): Use
11124 target_terminal_is_ours_kind.
11125 (target_interrupt): Remove ptid parameter. Adjust.
11126 (default_target_pass_ctrlc): Adjust.
11127 * target.h (target_ops::to_terminal_save_inferior): New field.
11128 (target_ops::to_interrupt): Remove ptid_t parameter.
11129 (target_interrupt): Remove ptid_t parameter. Update comment.
11130 (target_pass_ctrlc): Update comment.
11131 * target/target.h (target_terminal_state): New scoped enum,
11132 factored out of ...
11133 (target_terminal::terminal_state): ... here.
11134 (target_terminal::inferior): Update comments.
11135 (target_terminal::restore_inferior): New.
11136 (target_terminal::is_inferior, target_terminal::is_ours)
11137 (target_terminal::is_ours_for_output): Adjust.
11138 (target_terminal::scoped_restore_terminal_state): Adjust to
11139 rename, and call restore_inferior() instead of inferior().
11140 (target_terminal::scoped_restore_terminal_state::m_state): Change
11141 type.
11142 (target_terminal::terminal_state): Rename to ...
11143 (target_terminal::m_terminal_state): ... this and change type.
11144
9c3a5d93
PA
111452018-01-30 Pedro Alves <palves@redhat.com>
11146
11147 * linux-nat.c (wait_for_signal): New function.
11148 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
11149 directly.
11150 (async_terminal_is_ours)
11151 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
11152 (linux_nat_add_target): Don't override
11153 to_terminal_inferior/to_terminal_ours.
11154
69ab5edb
SDJ
111552018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
11156
11157 * remote.c (remote_follow_fork): Don't call "detach_inferior".
11158
fc8e7e75
SM
111592018-01-28 Simon Marchi <simon.marchi@ericsson.com>
11160
11161 * dwarf2read.c (free_dwo_files): Add forward-declaration.
11162 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
11163 dwarf2_per_objfile_free here.
11164 (dwarf2_per_objfile_free): Remove.
11165 (_initialize_dwarf2_read): Don't register
11166 dwarf2_per_objfile_free as a registry cleanup.
11167
b2a426e2
EZ
111682018-01-27 Eli Zaretskii <eliz@gnu.org>
11169
11170 Avoid compilation errors in MinGW native builds
11171
11172 The error is triggered by including python-internal.h, and the
11173 error message is:
11174
11175 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
11176 from build-gnulib/import/math.h:27,
11177 from d:/usr/Python26/include/pyport.h:235,
11178 from d:/usr/Python26/include/Python.h:58,
11179 from python/python-internal.h:94,
11180 from python/py-arch.c:24:
11181 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
11182 using ::hypot;
11183 ^~~~~
11184
11185 This happens because Python headers define 'hypot' to expand t
11186 '_hypot' in the Windows builds.
11187 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
11188 'hypoth'. This avoids a compilation error.
11189
0bdd8eac
AH
111902018-01-26 Alan Hayward <alan.hayward@arm.com>
11191
11192 * MAINTAINERS (Write After Approval): Fix ordering.
11193
56ae9dc3
AH
111942018-01-26 Alan Hayward <alan.hayward@arm.com>
11195
11196 * MAINTAINERS (Write After Approval): Add Alan Hayward.
11197
7433498b
AM
111982018-01-26 Alan Modra <amodra@gmail.com>
11199
11200 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
11201 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
11202 Remove nop. Make const. Comment.
11203 (powerpc32_plt_stub_so_2): New.
11204 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
11205 Correct count. Update uses.
11206 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
11207 Move common code reading PLT entry word. Correct
11208 powerpc32_plt_stub PLT address calculation.
11209 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
11210 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
11211 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
11212 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
11213 (ppc64_standard_linkage8): Likewise.
11214 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
11215 Correct insns description.
11216 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
11217
0f59d5fc
PA
112182018-01-24 Pedro Alves <palves@redhat.com>
11219
11220 GCC PR libstdc++/83906
11221 * gdbtypes.c (operator==(const dynamic_prop &,
11222 const dynamic_prop &)): New.
11223 (operator==(const range_bounds &, const range_bounds &)): New.
11224 (check_types_equal): Use them instead of memcmp.
11225 * gdbtypes.h (operator==(const dynamic_prop &,
11226 const dynamic_prop &)): Declare.
11227 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
11228 (operator==(const range_bounds &, const range_bounds &)): Declare.
11229 (operator!=(const range_bounds &, const range_bounds &)): Declare.
11230
ef8914a4
PR
112312018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
11232
11233 * s390-linux-tdep.c (s390_record_address_mask)
11234 (s390_record_calc_disp_common, s390_record_calc_disp)
11235 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
11236 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
11237 (s390_process_record): Move to s390-tdep.c.
11238 (s390_linux_init_abi_any): Adjust.
11239 * s390-tdep.c (s390_record_address_mask)
11240 (s390_record_calc_disp_common, s390_record_calc_disp)
11241 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
11242 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
11243 (s390_process_record): Moved from s390-linux-tdep.c
11244 (s390_gdbarch_init): Adjust.
11245
d6e58945
PR
112462018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
11247
11248 * s390-linux-nat.c (s390-tdep.h): New include.
11249 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
11250 (HFILES_NO_SRCDIR): Add s390-tdep.h.
11251 (ALLDEPFILES): Add s390-tdep.c.
11252 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
11253 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
11254 * s390-tdep.h: ...this. New file.
11255 * s390-linux-tdep.c (s390-tdep.h): New include.
11256 (_initialize_s390_tdep): Rename to...
11257 (_initialize_s390_linux_tdep): ...this and adjust.
11258 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
11259 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
11260 s390-tdep.h.
11261 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
11262 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
11263 (s390_is_partial_instruction, s390_software_single_step)
11264 (is_non_branch_ril, s390_displaced_step_copy_insn)
11265 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
11266 (s390_prologue_data, s390_addr, s390_store, s390_load)
11267 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
11268 (s390_register_call_saved, s390_guess_tracepoint_registers)
11269 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
11270 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
11271 (s390_pseudo_register_name, s390_pseudo_register_type)
11272 (s390_pseudo_register_read, s390_pseudo_register_write)
11273 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
11274 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
11275 (s390_addr_bits_remove, s390_address_class_type_flags)
11276 (s390_address_class_type_flags_to_name)
11277 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
11278 (s390_function_arg_float, s390_function_arg_vector)
11279 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
11280 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
11281 (s390_frame_align, s390_register_return_value, s390_return_value)
11282 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
11283 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
11284 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
11285 (s390_trad_frame_prev_register, s390_unwind_cache)
11286 (s390_prologue_frame_unwind_cache)
11287 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
11288 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
11289 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
11290 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
11291 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
11292 (s390_frame_base_address, s390_local_base_address)
11293 (s390_frame_base, s390_gcc_target_options)
11294 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
11295 (s390_validate_reg_range, s390_tdesc_valid)
11296 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
11297 * s390-tdep.c: ...this. New file.
11298
9c0b896e
PR
112992018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
11300
11301 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
11302 (s390_process_record, s390_gdbarch_tdep_alloc)
11303 (s390_linux_init_abi_any): Use/set new hook.
11304
7042632b
PR
113052018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
11306
11307 * s390-linux-tdep.c (osabi.h): New include.
11308 (s390_linux_init_abi_31, s390_linux_init_abi_64)
11309 (s390_linux_init_abi_any): New functions.
11310 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
11311
650f5e13
PR
113122018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
11313
11314 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
11315 tdesc_has_registers check
11316
47c9317e
PR
113172018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
11318
11319 * s390-linux-tdep.c (s390_tdesc_valid): New function.
11320 (s390_validate_reg_range): New macro.
11321 (s390_gdbarch_init): Adjust.
11322
095085d8
PR
113232018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
11324
11325 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
11326 (s390_gdbarch_tdep_alloc): Adjust.
11327 (s390_gdbarch_init): Adjust.
11328
ab9bcc67
PR
113292018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
11330
11331 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
11332 <have_tdb>: Change type to bool.
11333 (s390_gdbarch_tdep_alloc): Adjust.
11334 (s390_gdbarch_init): Adjust.
11335
21f6f5ff
PR
113362018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
11337
11338 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
11339 (gdbarch_tdep) <have_upper, have_vx>: New fields.
11340 (s390_gdbarch_tdep_alloc): New function.
11341 (s390_gdbarch_init): Allocate tdep at start and use its fields
11342 instead of separate variables.
11343
0eb97953
PR
113442018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
11345
11346 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
11347 when looking for cached gdbarch and add comment for remaining.
11348
5c319bb2
PA
113492018-01-22 Pedro Alves <palves@redhat.com>
11350 Sergio Durigan Junior <sergiodj@redhat.com>
11351
11352 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
11353 case.
11354
d65ce302
MR
113552018-01-22 Maciej W. Rozycki <macro@mips.com>
11356
11357 * MAINTAINERS: Update my company e-mail address.
11358
ec7a5fcb
YQ
113592018-01-22 Yao Qi <yao.qi@linaro.org>
11360
11361 * regcache.c (cooked_write_test): New function.
11362 (_initialize_regcache): Register the test.
11363
11f57cb6
YQ
113642018-01-22 Yao Qi <yao.qi@linaro.org>
11365
11366 * ia64-tdep.c (ia64_pseudo_register_read): Call
11367 regcache->cooked_read instead of regcache_cooked_read_unsigned.
11368 * m32c-tdep.c (m32c_cat_read): Likewise.
11369 (m32c_r3r2r1r0_read): Likewise.
11370 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
11371 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
11372
03f50fc8
YQ
113732018-01-22 Yao Qi <yao.qi@linaro.org>
11374
11375 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
11376 method raw_read instead of regcache_raw_read.
11377 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
11378 * arm-tdep.c (arm_neon_quad_read): Likewise.
11379 * avr-tdep.c (avr_pseudo_register_read): Likewise.
11380 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
11381 * frv-tdep.c (frv_pseudo_register_read): Likewise.
11382 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
11383 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
11384 (i386_pseudo_register_read_into_value): Likewise.
11385 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
11386 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
11387 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
11388 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
11389 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
11390 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
11391 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
11392 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
11393 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
11394
dc711524
YQ
113952018-01-22 Yao Qi <yao.qi@linaro.org>
11396
11397 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
11398 * configure.tgt: Remove target mt.
11399 * mt-tdep.c: Remove.
11400 * regcache.c (cooked_read_test): Remove the check for mt.
11401
3f5a868b
YQ
114022018-01-22 Yao Qi <yao.qi@linaro.org>
11403
11404 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
11405 instead of gdbarch_pseudo_register_read_value.
11406
de4cb04a
JB
114072018-01-22 Joel Brobecker <brobecker@adacore.com>
11408
11409 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
11410 language is Ada.
11411
a9e40818
JB
114122018-01-22 Joel Brobecker <brobecker@adacore.com>
11413
11414 * linespec.c (create_sals_line_offset): Remove code that preserved
11415 the symtab_and_line's line number.
11416
e707fc44
AB
114172018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
11418
11419 * varobj.c (varobj_create): Don't set valid_block when creating a
11420 floating varobj.
11421
03d0bf7b
AB
114222018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
11423
11424 * varobj.c (varobj_create): Remove out of date comment.
11425
ae451627
AB
114262018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
11427
11428 PR mi/20395
11429 * ada-exp.y (write_var_from_sym): Pass extra parameter when
11430 updating innermost block.
11431 * parse.c (innermost_block_tracker::update): Take extra type
11432 parameter, and check types match before updating innermost block.
11433 (write_dollar_variable): Update innermost block for registers.
11434 * parser-defs.h (enum innermost_block_tracker_type): New enum.
11435 (innermost_block_tracker::innermost_block_tracker): Initialise
11436 m_types member.
11437 (innermost_block_tracker::reset): Take type parameter.
11438 (innermost_block_tracker::update): Take type parameter, and pass
11439 type through as needed.
11440 (innermost_block_tracker::m_types): New member.
11441 * varobj.c (varobj_create): Pass type when reseting innermost
11442 block.
11443
aee1fcdf
AB
114442018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
11445
11446 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
11447 * ada-lang.c (resolve_subexp): Likewise.
11448 * breakpoint.c (set_breakpoint_condition) Likewise.
11449 (watch_command_1) Likewise.
11450 * c-exp.y (variable): Likewise.
11451 * d-exp.y (PrimaryExpression): Likewise.
11452 * f-exp.y (variable): Likewise.
11453 * go-exp.y (variable): Likewise.
11454 * m2-exp.y (variable): Likewise.
11455 * objfiles.c (objfile::~objfile): Likewise.
11456 * p-exp.y (variable): Likewise.
11457 * parse.c (innermost_block): Change type.
11458 * parser-defs.h (class innermost_block_tracker): New.
11459 (innermost_block): Change to innermost_block_tracker.
11460 * printcmd.c (display_command): Switch to innermost_block API.
11461 (do_one_display): Likewise.
11462 * rust-exp.y (do_one_display): Likewise.
11463 * symfile.c (clear_symtab_users): Likewise.
11464 * varobj.c (varobj_create): Switch to innermost_block API, replace
11465 use of innermost_block with block stored on varobj object.
11466
396af9a1
AB
114672018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
11468
11469 * expression.h (innermost_block): Remove declaration.
11470 * varobj.c: Add 'parser-defs.h' include.
11471
fcfcc376
TT
114722018-01-19 Tom Tromey <tom@tromey.com>
11473
11474 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
11475 symbols in the static and global blocks.
11476
5a6c3296
JC
114772018-01-19 James Clarke <jrtc27@jrtc27.com>
11478
11479 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
11480 gdb_ptrace.h, and move including gdb_wait.h ...
11481 * nat/linux-ptrace.h: ... to here.
11482
bc09b0c1
SM
114832018-01-19 Simon Marchi <simon.marchi@ericsson.com>
11484
11485 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
11486 inf_ptrace_detach_success.
11487 (inf_ptrace_detach_success): Add inferior parameter, use it
11488 instead of inferior_ptid, pass it to detach_inferior.
11489 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
11490 parameter.
11491 * inferior.c (detach_inferior): Add overload that takes an
11492 inferior object.
11493 * inferior.h (detach_inferior): Likewise.
11494 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
11495 use inferior_ptid, adjust call to inf_ptrace_detach_success.
11496 * linux-thread-db.c (thread_db_detach): Use inf parameter.
11497
6e1e1966
SM
114982018-01-19 Simon Marchi <simon.marchi@ericsson.com>
11499
11500 * target.h (struct target_ops) <to_detach>: Add inferior
11501 parameter.
11502 (target_detach): Likewise.
11503 * target.c (dispose_inferior): Pass inferior down.
11504 (target_detach): Pass inferior down. Assert that it is equal to
11505 the current inferior.
11506 * aix-thread.c (aix_thread_detach): Pass inferior down.
11507 * corefile.c (core_file_command): Pass current_inferior() down.
11508 * corelow.c (core_detach): Add inferior parameter.
11509 * darwin-nat.c (darwin_detach): Likewise.
11510 * gnu-nat.c (gnu_detach): Likewise.
11511 * inf-ptrace.c (inf_ptrace_detach): Likewise.
11512 * infcmd.c (detach_command): Pass current_inferior() down to
11513 target_detach.
11514 * infrun.c (follow_fork_inferior): Pass parent_inf to
11515 target_detach.
11516 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
11517 target_detach.
11518 * linux-nat.c (linux_nat_detach): Add inferior parameter.
11519 * linux-thread-db.c (thread_db_detach): Likewise.
11520 * nto-procfs.c (procfs_detach): Likewise.
11521 * procfs.c (procfs_detach): Likewise.
11522 * record.c (record_detach): Likewise.
11523 * record.h (struct inferior): Forward-declare.
11524 (record_detach): Add inferior parameter.
11525 * remote-sim.c (gdbsim_detach): Likewise.
11526 * remote.c (remote_detach_1): Likewise.
11527 (remote_detach): Likewise.
11528 (extended_remote_detach): Likewise.
11529 * sol-thread.c (sol_thread_detach): Likewise.
11530 * target-debug.h (target_debug_print_inferior_p): New macro.
11531 * target-delegates.c: Re-generate.
11532 * top.c (kill_or_detach): Pass inferior down to target_detach.
11533 * windows-nat.c (windows_detach): Add inferior parameter.
11534
6bd6f3b6
SM
115352018-01-19 Simon Marchi <simon.marchi@ericsson.com>
11536
11537 * target.h (struct target_ops) <to_detach>: Remove args
11538 parameter.
11539 (target_detach): Likewise.
11540 * target.c (dispose_inferior): Adjust.
11541 (target_detach): Remove args parameter, adjust.
11542 * aix-thread.c (aix_thread_detach): Adjust.
11543 * corefile.c (core_file_command): Adjust.
11544 * corelow.c (core_detach): Adjust.
11545 * darwin-nat.c (darwin_detach): Adjust.
11546 * gnu-nat.c (gnu_detach): Adjust.
11547 * inf-ptrace.c (inf_ptrace_detach): Adjust.
11548 * infcmd.c (detach_command): Adjust
11549 * infrun.c (follow_fork_inferior): Adjust.
11550 (handle_vfork_child_exec_or_exit): Adjust.
11551 * linux-fork.c (linux_fork_detach): Remove args parameter.
11552 * linux-fork.h (linux_fork_detach): Likewise.
11553 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
11554 * linux-thread-db.c (thread_db_detach): Likewise.
11555 * nto-procfs.c (procfs_detach): Likewise.
11556 * procfs.c (procfs_detach): Likewise.
11557 (do_detach): Remove signo parameter.
11558 * record.c (record_detach): Remove args parameter.
11559 * record.h (record_detach): Likewise.
11560 * remote-sim.c (gdbsim_detach): Likewise.
11561 * remote.c (remote_detach_1): Likewise.
11562 (remote_detach): Likewise.
11563 (extended_remote_detach): Likewise.
11564 * sol-thread.c (sol_thread_detach): Likewise.
11565 * target-delegates.c: Re-generate.
11566 * top.c (struct qt_args) <args>: Remove field.
11567 (kill_or_detach): Don't pass args.
11568 (quit_force): Don't set args.
11569 * windows-nat.c (windows_detach): Remove args parameter.
11570
88af8ea8
YQ
115712018-01-19 Yao Qi <yao.qi@linaro.org>
11572
11573 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
11574 (arm_linux_init_abi): Install it.
11575
dea445b9
YQ
115762018-01-19 Yao Qi <yao.qi@linaro.org>
11577
11578 * osabi.c (gdb_osabi_names): Extend the regexp for
11579 arm-linux-gnueabihf.
11580
4a17f768
YQ
115812018-01-18 Yao Qi <yao.qi@linaro.org>
11582
11583 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
11584 m_abbrevs.
11585 (abbrev_table::add_abbrev): Update.
11586 (abbrev_table::lookup_abbrev): Update.
11587
d679c21a
YQ
115882018-01-18 Yao Qi <yao.qi@linaro.org>
11589
11590 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
11591
7d937cad
SDJ
115922018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11593
11594 * compile/compile.c (compile_to_object): Convert "triplet_rx"
11595 to "std::string".
11596
9e14690d
TT
115972018-01-17 Tom Tromey <tom@tromey.com>
11598
11599 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
11600
50a82047
TT
116012018-01-17 Tom Tromey <tom@tromey.com>
11602
11603 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
11604 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
11605 (create_array_type_with_stride): Update.
11606 * dwarf2read.c (set_die_type): Update.
11607
c89b44cd
TT
116082018-01-17 Tom Tromey <tom@tromey.com>
11609
11610 * dwarf2read.c (delayed_method_info): Remove typedef.
11611 (dwarf2_cu::method_info): Now a std::vector.
11612 (add_to_method_list): Update.
11613 (free_delayed_list): Remove.
11614 (compute_delayed_physnames): Update.
11615 (process_full_comp_unit, process_full_type_unit): Clear the method
11616 list. Remove cleanups.
11617 (psymtab_include_file_name): Add name_holder parameter. Use
11618 unique_xmalloc_ptr.
11619 (dwarf_decode_lines): Update.
11620
fcd3b13d
SM
116212018-01-17 Tom Tromey <tom@tromey.com>
11622 Simon Marchi <simon.marchi@ericsson.com>
11623
11624 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
11625 (dwarf2_per_objfile::free_cached_comp_units)
11626 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
11627 (init_cutu_and_read_dies_no_follow): Update.
11628 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
11629 (dwarf2_cu::~dwarf2_cu): New.
11630 (free_heap_comp_unit, free_stack_comp_unit): Remove.
11631 (age_cached_comp_units, free_one_cached_comp_unit): Update.
11632
685af9cd
TT
116332018-01-17 Tom Tromey <tom@tromey.com>
11634 Simon Marchi <simon.marchi@ericsson.com>
11635
11636 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
11637 (struct die_reader_specs) <abbrev_table>: New member.
11638 (struct abbrev_table): Add constructor.
11639 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
11640 <abbrev_obstack>: Now an auto_obstack.
11641 (abbrev_table_up): New typedef.
11642 (init_cu_die_reader): Add abbrev_table parameter.
11643 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
11644 Add result_dwo_abbrev_table.
11645 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
11646 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
11647 Update.
11648 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
11649 parameter.
11650 (skip_children): Update.
11651 (abbrev_table::alloc_abbrev): Rename from
11652 abbrev_table_alloc_abbrev.
11653 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
11654 (abbrev_table::lookup_abbrev): Rename from
11655 abbrev_table_lookup_abbrev.
11656 (abbrev_table_read_table): Return abbrev_table_up.
11657 (abbrev_table_free, abbrev_table_free_cleanup)
11658 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
11659 (load_partial_dies): Update.
11660
5e2db402
TT
116612018-01-17 Tom Tromey <tom@tromey.com>
11662
11663 * dwarf2read.c (dwarf2_compute_name): Update comment.
11664 (read_func_scope, read_variable): Update.
11665 (new_symbol): Remove.
11666 (new_symbol_full): Rename to new_symbol.
11667
ee7f689e 116682018-01-17 Mike Gulick <mgulick@mathworks.com>
41667530
MG
11669
11670 PR gdb/16577
11671 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
11672 a warning instead of throwing an error, set section size to 0 and return
11673 NULL.
11674 * gdb_bfd.h (gdb_bfd_map_section): Update description.
11675
4d9b86e1
SM
116762018-01-17 Simon Marchi <simon.marchi@ericsson.com>
11677
11678 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
11679 std::string.
11680 (linux_ptrace_attach_fail_reason_string): Likewise.
11681 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
11682 Likewise.
11683 (linux_ptrace_attach_fail_reason_string): Likewise.
11684 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
11685
a7b2d0fb
SM
116862018-01-17 Simon Marchi <simon.marchi@ericsson.com>
11687
11688 * linux-nat.c (linux_nat_attach): Remove xstrdup.
11689
f517c180
EA
116902018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
11691
11692 PR gdb/21559
11693 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
11694 checking for fs_base/gs_base fields in struct user_regs_struct.
11695 * configure: Regenerate.
11696
7045b1ca
YQ
116972018-01-17 Yao Qi <yao.qi@linaro.org>
11698
11699 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
11700 function.
11701 (aarch64_linux_init_abi): Install it to gdbarch hook
11702 gcc_target_options.
11703
db422fb2
PA
117042018-01-15 Pedro Alves <palves@redhat.com>
11705
11706 * common/signals-state-save-restore.c
11707 (save_original_signals_state): Fix typos.
11708
ba643918
SDJ
117092017-01-12 Tom Tromey <tom@tromey.com>
11710 Sergio Durigan Junior <sergiodj@redhat.com>
11711
11712 * Makefile.in (install-only): Install gdb-add-index.
11713
906b4aac
JB
117142018-01-12 John Baldwin <jhb@FreeBSD.org>
11715
11716 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
11717
bdf2a94a
AA
117182018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11719
11720 * infrun.c (keep_going_pass_signal): Clear step-over info when
11721 insert_breakpoints fails.
11722
71d378ae
PA
117232018-01-11 Pedro Alves <palves@redhat.com>
11724
11725 PR gdb/22583
11726 * infrun.c (resume): Rename to ...
11727 (resume_1): ... this.
11728 (resume): Reimplement as wrapper around resume_1.
11729
3cada740
PA
117302018-01-11 Pedro Alves <palves@redhat.com>
11731
11732 PR remote/22597
11733 * remote.c (remote_parse_stop_reply): Default to the last-set
11734 general thread instead of to 'magic_null_ptid'.
11735
618daa93
PA
117362018-01-10 Pedro Alves <palves@redhat.com>
11737
11738 * language.h (language_get_symbol_name_matcher): Rename ...
11739 (get_symbol_name_matcher): ... this.
11740 * language.c (language_get_symbol_name_matcher): Ditto.
11741 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
11742 callers adjusted.
11743
c63d3e8d
PA
117442018-01-10 Pedro Alves <palves@redhat.com>
11745
11746 PR gdb/22670
11747 * dwarf2read.c
11748 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
11749 Adjust to use language_get_symbol_name_matcher instead of
11750 language_defn::la_get_symbol_name_matcher.
11751 * language.c (language_get_symbol_name_matcher): If in Ada mode
11752 and the lookup name is a verbatim match, return Ada's matcher.
11753 * language.h (language_get_symbol_name_matcher): Adjust comment.
11754 (ada_lookup_name_info::verbatim_p):: New method.
11755
d4c2a405
PA
117562018-01-10 Pedro Alves <palves@redhat.com>
11757
11758 PR gdb/22670
11759 * ada-lang.c (ada_collect_symbol_completion_matches): If the
11760 minsym's language is language_auto or language_cplus, pass down
11761 language_ada instead.
11762 * symtab.c (compare_symbol_name): Don't frob symbol language here.
11763
8825213e
PA
117642018-01-10 Pedro Alves <palves@redhat.com>
11765
11766 PR gdb/22670
11767 * minsyms.c (linkage_name_str): New function.
11768 (iterate_over_minimal_symbols): Use it.
11769
2d97a5d9
JB
117702018-01-09 John Baldwin <jhb@FreeBSD.org>
11771
11772 * NEWS: Document that 'info proc' now works on FreeBSD.
11773
92fce24d
JB
117742018-01-09 John Baldwin <jhb@FreeBSD.org>
11775
11776 * configure.ac: Check for kinfo_getfile in libutil.
11777 * configure: Regenerate.
11778 * config.in: Regenerate.
11779 * fbsd-nat.c: Include "fbsd-tdep.h".
11780 (fbsd_fetch_cmdline): New.
11781 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
11782 rather than calling error.
11783 (fbsd_info_proc): New.
11784 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
11785 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
11786 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
11787
262f62f5
JB
117882018-01-09 John Baldwin <jhb@FreeBSD.org>
11789
11790 * fbsd-nat.c (struct free_deleter): Remove.
11791 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
11792
b999e203
JB
117932018-01-09 John Baldwin <jhb@FreeBSD.org>
11794
11795 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
11796 NULL for an empty pathname.
11797
d2176225
JB
117982018-01-09 John Baldwin <jhb@FreeBSD.org>
11799
11800 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
11801 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
11802 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
11803 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
11804 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
11805 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
11806 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
11807 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
11808 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
11809 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
11810 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
11811 (fbsd_core_fetch_timeval, fbsd_print_sigset)
11812 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
11813 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
11814 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
11815
9c4ac400
ST
118162018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
11817
11818 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
11819 (gnu_xfer_auxv): New function.
11820 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
11821 TARGET_OBJECT_AUXV.
11822
1e5ded6c
YQ
118232018-01-08 Yao Qi <yao.qi@linaro.org>
11824 Simon Marchi <simon.marchi@ericsson.com>
11825
11826 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
11827 common/selftest.c.
11828 (COMMON_OBS): Remove selftest.o.
11829 * configure.ac: Append selftest-arch.c and common/selftest.c to
11830 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
11831 * configure: Re-generated.
11832 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
11833 GDB_SELF_TEST.
11834 (maintenance_info_selftests): Likewise.
11835
04bafb1e
XR
118362018-01-08 Xavier Roirand <roirand@adacore.com>
11837
11838 * ada-valprint.c (val_print_packed_array_elements): Use
11839 proper number of elements when printing an array indexed
11840 by an enumeration type.
11841
518817b3
SM
118422018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
11843
11844 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
11845 (dw2_get_file_names_reader): Adjust.
11846 (lookup_dwo_signatured_type): Adjust.
11847 (lookup_dwp_signatured_type): Adjust.
11848 (lookup_signatured_type): Adjust.
11849 (create_type_unit_group): Adjust.
11850 (get_type_unit_group): Adjust.
11851 (process_psymtab_comp_unit_reader): Adjust.
11852 (build_type_psymtabs_reader): Adjust.
11853 (scan_partial_symbols): Adjust.
11854 (add_partial_symbol): Adjust.
11855 (add_partial_subprogram): Adjust.
11856 (peek_die_abbrev): Adjust.
11857 (fixup_go_packaging): Adjust.
11858 (process_imported_unit_die): Adjust.
11859 (dwarf2_compute_name): Adjust.
11860 (dwarf2_physname): Adjust.
11861 (read_import_statement): Adjust.
11862 (handle_DW_AT_stmt_list): Adjust.
11863 (read_file_scope): Adjust.
11864 (read_func_scope): Adjust.
11865 (read_lexical_block_scope): Adjust.
11866 (read_call_site_scope): Adjust.
11867 (read_variable): Adjust.
11868 (dwarf2_rnglists_process): Adjust.
11869 (dwarf2_ranges_process): Adjust.
11870 (dwarf2_ranges_read): Adjust.
11871 (dwarf2_get_pc_bounds): Adjust.
11872 (dwarf2_record_block_ranges): Adjust.
11873 (dwarf2_add_field): Adjust.
11874 (dwarf2_add_member_fn): Adjust.
11875 (read_structure_type): Adjust.
11876 (process_structure_scope): Adjust.
11877 (read_enumeration_type): Adjust.
11878 (read_array_type): Adjust.
11879 (mark_common_block_symbol_computed): Adjust.
11880 (read_common_block): Adjust.
11881 (read_namespace_type): Adjust.
11882 (read_namespace): Adjust.
11883 (read_module_type): Adjust.
11884 (read_tag_pointer_type): Adjust.
11885 (read_tag_ptr_to_member_type): Adjust.
11886 (read_tag_string_type): Adjust.
11887 (read_subroutine_type): Adjust.
11888 (read_typedef): Adjust.
11889 (read_base_type): Adjust.
11890 (attr_to_dynamic_prop): Adjust.
11891 (read_subrange_type): Adjust.
11892 (read_unspecified_type): Adjust.
11893 (dwarf2_read_abbrevs): Adjust.
11894 (load_partial_dies): Adjust.
11895 (read_partial_die): Adjust.
11896 (find_partial_die): Adjust.
11897 (guess_partial_die_structure_name): Adjust.
11898 (fixup_partial_die): Adjust.
11899 (read_attribute_value): Adjust.
11900 (read_addr_index): Adjust.
11901 (read_addr_index_from_leb128): Adjust.
11902 (read_str_index): Adjust.
11903 (dwarf2_string_attr): Adjust.
11904 (get_debug_line_section): Adjust.
11905 (dwarf_decode_line_header): Adjust.
11906 (lnp_state_machine::check_line_address): Adjust.
11907 (dwarf_decode_lines_1): Adjust.
11908 (dwarf_decode_lines): Adjust.
11909 (dwarf2_start_symtab): Adjust.
11910 (var_decode_location): Adjust.
11911 (new_symbol_full): Adjust.
11912 (dwarf2_const_value_data): Adjust.
11913 (dwarf2_const_value_attr): Adjust.
11914 (dwarf2_const_value): Adjust.
11915 (die_type): Adjust.
11916 (die_containing_type): Adjust.
11917 (build_error_marker_type): Adjust.
11918 (lookup_die_type): Adjust.
11919 (guess_full_die_structure_name): Adjust.
11920 (anonymous_struct_prefix): Adjust.
11921 (determine_prefix): Adjust.
11922 (dwarf2_name): Adjust.
11923 (follow_die_ref_or_sig): Adjust.
11924 (follow_die_offset): Adjust.
11925 (follow_die_ref): Adjust.
11926 (follow_die_sig_1): Adjust.
11927 (follow_die_sig): Adjust.
11928 (get_signatured_type): Adjust.
11929 (get_DW_AT_signature_type): Adjust.
11930 (decode_locdesc): Adjust.
11931 (dwarf_decode_macros): Adjust.
11932 (cu_debug_loc_section): Adjust.
11933 (fill_in_loclist_baton): Adjust.
11934 (dwarf2_symbol_mark_computed): Adjust.
11935 (init_one_comp_unit): Don't assign
11936 dwarf2_cu::dwarf2_per_objfile.
11937 (set_die_type): Adjust.
11938
ed2dc618
SM
119392018-01-07 Simon Marchi <simon.marchi@ericsson.com>
11940
11941 * dwarf2read.c (struct mapped_debug_names): Add constructor.
11942 <dwarf2_per_objfile>: New field.
11943 (dwarf2_per_objfile): Remove global.
11944 (get_dwarf2_per_objfile): New function.
11945 (set_dwarf2_per_objfile): New function.
11946 (dwarf2_build_psymtabs_hard): Change objfile parameter to
11947 dwarf2_per_objfile.
11948 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
11949 (read_abbrev_offset): Likewise.
11950 (read_indirect_string): Likewise.
11951 (read_indirect_line_string): Likewise.
11952 (read_indirect_string_at_offset): Likewise.
11953 (read_indirect_string_from_dwz): Likewise.
11954 (dwarf2_find_containing_comp_unit): Change objfile parameter to
11955 dwarf2_per_objfile.
11956 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
11957 (create_all_comp_units): Change objfile parameter to
11958 dwarf2_per_objfile.
11959 (create_all_type_units): Likewise.
11960 (process_queue): Add dwarf2_per_objfile parameter.
11961 (read_and_check_comp_unit_head): Likewise.
11962 (lookup_dwo_unit_in_dwp): Likewise.
11963 (get_dwp_file): Likewise.
11964 (process_cu_includes): Likewise.
11965 (struct free_dwo_file_cleanup_data): New struct.
11966 (dwarf2_has_info): Use get_dwarf2_per_objfile and
11967 set_dwarf2_per_objfile.
11968 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
11969 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
11970 context, adjust calls.
11971 (dw2_instantiate_symtab): Likewise.
11972 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
11973 (dw2_get_cu): Likewise.
11974 (create_cu_from_index_list): Change objfile parameter to
11975 dwarf2_per_objfile.
11976 (create_cus_from_index_list): Get dwarf2_per_objfile from
11977 context, adjust calls.
11978 (create_cus_from_index): Likewise.
11979 (create_signatured_type_table_from_index): Change objfile
11980 parameter to dwarf2_per_objfile.
11981 (create_signatured_type_table_from_debug_names): Change objfile
11982 parameter to dwarf2_per_objfile.
11983 (create_addrmap_from_index): Likewise.
11984 (create_addrmap_from_aranges): Likewise.
11985 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
11986 (dw2_setup): Remove.
11987 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
11988 context.
11989 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
11990 get_dwarf2_per_objfile.
11991 (dw2_forget_cached_source_info): Likewise.
11992 (dw2_map_symtabs_matching_filename): Likewise.
11993 (struct dw2_symtab_iterator) <index>: Remove.
11994 <dwarf2_per_objfile>: New field.
11995 (dw2_symtab_iter_init): Replace index parameter with
11996 dwarf2_per_objfile.
11997 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
11998 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
11999 (dw2_print_stats): Likewise.
12000 (dw2_dump): Likewise.
12001 (dw2_expand_symtabs_for_function): Likewise.
12002 (dw2_expand_all_symtabs): Likewise.
12003 (dw2_expand_symtabs_with_fullname): Likewise.
12004 (dw2_expand_marked_cus): Replace index and objfile parameters
12005 with dwarf2_per_objfile.
12006 (dw_expand_symtabs_matching_file_matcher): Add
12007 dwarf2_per_objfile parameter and adjust calls.
12008 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
12009 adjust calls.
12010 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
12011 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
12012 adjust calls.
12013 (create_cus_from_debug_names_list): Replace objfile parameter
12014 with dwarf2_per_objfile and adjust calls.
12015 (create_cus_from_debug_names): Likewise.
12016 (dwarf2_read_debug_names): Likewise.
12017 (mapped_debug_names::namei_to_name): Adjust call.
12018 (dw2_debug_names_iterator::next): Likewise.
12019 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
12020 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
12021 (dw2_debug_names_dump): Likewise.
12022 (dw2_debug_names_expand_symtabs_for_function): Likewise.
12023 (dw2_debug_names_expand_symtabs_matching): Likewise.
12024 (dwarf2_initialize_objfile): Likewise.
12025 (dwarf2_build_psymtabs): Likewise.
12026 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
12027 this_cu.
12028 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
12029 (read_and_check_comp_unit_head): Likewise.
12030 (read_abbrev_offset): Likewise.
12031 (create_debug_type_hash_table): Likewise.
12032 (create_debug_types_hash_table): Likewise.
12033 (create_all_type_units): Replace objfile parameter with
12034 dwarf2_per_objfile.
12035 (add_type_unit): Add dwarf2_per_objfile parameter.
12036 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
12037 with dwarf2_per_objfile.
12038 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
12039 (lookup_dwp_signatured_type): Likewise.
12040 (lookup_signatured_type): Likewise.
12041 (read_cutu_die_from_dwo): Likewise.
12042 (init_tu_and_read_dwo_dies): Likewise.
12043 (init_cutu_and_read_dies): Likewise.
12044 (init_cutu_and_read_dies_no_follow): Likewise.
12045 (allocate_type_unit_groups_table): Add objfile parameter.
12046 (create_type_unit_group): Use dwarf2_per_objfile from cu.
12047 (get_type_unit_group): Likewise.
12048 (process_psymtab_comp_unit): Update call.
12049 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
12050 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
12051 (print_tu_stats): Likewise.
12052 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
12053 in void* parameter.
12054 (build_type_psymtabs): Change objfile parameter to
12055 dwarf2_per_objfile.
12056 (process_skeletonless_type_unit): Use dwarf2_per_objfile
12057 passed in void* parameter.
12058 (process_skeletonless_type_units): Change objfile parameter to
12059 dwarf2_per_objfile.
12060 (set_partial_user): Likewise.
12061 (dwarf2_build_psymtabs_hard): Likewise.
12062 (read_comp_units_from_section): Likewise.
12063 (create_all_comp_units): Likewise.
12064 (scan_partial_symbols): Update calls.
12065 (add_partial_symbol): Likewise.
12066 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
12067 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
12068 (process_queue): Add dwarf2_per_objfile parameter.
12069 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
12070 (compute_compunit_symtab_includes): Likewise.
12071 (process_cu_includes): Add dwarf2_per_objfile parameter.
12072 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
12073 (process_full_type_unit): Likewise.
12074 (process_imported_unit_die): Update call.
12075 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
12076 (read_file_scope): Likewise.
12077 (allocate_dwo_file_hash_table): Add objfile parameter.
12078 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
12079 (create_cus_hash_table): Likewise.
12080 (create_dwp_hash_table): Likewise.
12081 (create_dwo_unit_in_dwp_v1): Likewise.
12082 (create_dwp_v2_section): Likewise.
12083 (create_dwo_unit_in_dwp_v2): Likewise.
12084 (lookup_dwo_unit_in_dwp): Likewise.
12085 (try_open_dwop_file): Likewise.
12086 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
12087 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
12088 cleanup to include a reference to dwarf2_per_objfile.
12089 (open_dwp_file): Add dwarf2_per_objfile parameter.
12090 (open_and_init_dwp_file): Likewise.
12091 (get_dwp_file): Likewise.
12092 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
12093 (queue_and_load_all_dwo_tus): Update call.
12094 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
12095 data.
12096 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
12097 (dwarf2_ranges_process): Likewise.
12098 (dwarf2_get_pc_bounds): Likewise.
12099 (mark_common_block_symbol_computed): Likewise.
12100 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
12101 (dwarf2_read_abbrevs): Update call.
12102 (read_partial_die): Use dwarf2_per_objfile from cu.
12103 (find_partial_die): Likewise.
12104 (fixup_partial_die): Likewise.
12105 (read_attribute_value): Likewise.
12106 (read_indirect_string_at_offset_from): Add objfile parameter.
12107 (read_indirect_string_at_offset): Add dwarf2_per_objfile
12108 parameter.
12109 (read_indirect_string_from_dwz): Add objfile parameter.
12110 (read_indirect_string): Add objfile parameter.
12111 (read_addr_index_1): Add dwarf2_per_objfile parameter.
12112 (read_addr_index): Use dwarf2_per_objfile from cu.
12113 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
12114 call dw2_setup.
12115 (read_str_index): Use dwarf2_per_objfile from cu.
12116 (get_debug_line_section): Likewise.
12117 (read_formatted_entries): Add dwarf2_per_objfile parameter.
12118 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
12119 (new_symbol_full): Use dwarf2_per_objfile from cu.
12120 (build_error_marker_type): Likewise.
12121 (lookup_die_type): Likewise.
12122 (determine_prefix): Likewise.
12123 (follow_die_offset): Likewise.
12124 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
12125 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
12126 (dwarf2_fetch_die_type_sect_off): Likewise.
12127 (dwarf2_get_die_type): Likewise.
12128 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
12129 (get_signatured_type): Likewise.
12130 (get_DW_AT_signature_type): Likewise.
12131 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
12132 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
12133 (cu_debug_loc_section): Likewise.
12134 (fill_in_loclist_baton): Likewise.
12135 (dwarf2_symbol_mark_computed): Likewise.
12136 (dwarf2_find_containing_comp_unit): Change objfile parameter to
12137 dwarf2_per_objfile.
12138 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
12139 parameter.
12140 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
12141 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
12142 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
12143 (set_die_type): Use dwarf2_free_objfile from cu.
12144 (get_die_type_at_offset): Likewise.
12145 (dwarf2_per_objfile_free): Don't assign global variable.
12146 (debug_names) <constructor>: Add dwarf2_per_objfile
12147 parameter, update m_debugstrlookup construction.
12148 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
12149 parameter.
12150 <m_dwarf2_per_objfile>: New field.
12151 <lookup>: Use m_dwarf2_per_objfile.
12152 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
12153 (psyms_seen_size): Likewise.
12154 (write_gdbindex): Replace objfile parameter with
12155 dwarf2_per_objfile.
12156 (write_debug_names): Likewise.
12157 (write_psymtabs_to_index): Likewise.
12158 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
12159 calls.
12160
e3b94546
SM
121612018-01-07 Simon Marchi <simon.marchi@ericsson.com>
12162
12163 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
12164 <dwarf2_per_objfile>: New field.
12165 (struct dwarf2_per_cu_data) <objfile>: Remove.
12166 <dwarf2_per_objfile>: New field.
12167 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
12168 of objfile.
12169 (create_signatured_type_table_from_index): Likewise.
12170 (create_debug_type_hash_table): Likewise.
12171 (fill_in_sig_entry_from_dwo_entry): Likewise.
12172 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
12173 (create_type_unit_group): Assign dwarf2_per_objfile instead of
12174 objfile.
12175 (create_partial_symtab): Access objfile through
12176 dwarf2_per_objfile.
12177 (process_psymtab_comp_unit_reader): Likewise.
12178 (read_comp_units_from_section): Likewise.
12179 (scan_partial_symbols): Likewise.
12180 (add_partial_symbol): Likewise.
12181 (add_partial_subprogram): Likewise.
12182 (peek_die_abbrev): Likewise.
12183 (fixup_go_packaging): Likewise.
12184 (process_full_comp_unit): Likewise.
12185 (process_full_type_unit): Likewise.
12186 (process_imported_unit_die): Likewise.
12187 (dwarf2_compute_name): Likewise.
12188 (dwarf2_physname): Likewise.
12189 (read_import_statement): Likewise.
12190 (create_cus_hash_table): Assign dwarf2_physname instead of
12191 objfile.
12192 (read_func_scope): Access objfile through dwarf2_per_objfile.
12193 (read_lexical_block_scope): Likewise.
12194 (read_call_site_scope): Likewise.
12195 (read_variable): Likewise.
12196 (dwarf2_rnglists_process): Likewise.
12197 (dwarf2_ranges_process): Likewise.
12198 (dwarf2_ranges_read): Likewise.
12199 (dwarf2_record_block_ranges): Likewise.
12200 (dwarf2_add_field): Likewise.
12201 (dwarf2_add_member_fn): Likewise.
12202 (read_structure_type): Likewise.
12203 (process_structure_scope): Likewise.
12204 (read_enumeration_type): Likewise.
12205 (read_array_type): Likewise.
12206 (read_common_block): Likewise.
12207 (read_namespace_type): Likewise.
12208 (read_namespace): Likewise.
12209 (read_module_type): Likewise.
12210 (read_tag_pointer_type): Likewise.
12211 (read_tag_ptr_to_member_type): Likewise.
12212 (read_tag_string_type): Likewise.
12213 (read_subroutine_type): Likewise.
12214 (read_typedef): Likewise.
12215 (read_base_type): Likewise.
12216 (attr_to_dynamic_prop): Likewise.
12217 (read_subrange_type): Likewise.
12218 (read_unspecified_type): Likewise.
12219 (load_partial_dies): Likewise.
12220 (read_partial_die): Likewise.
12221 (find_partial_die): Likewise.
12222 (guess_partial_die_structure_name): Likewise.
12223 (fixup_partial_die): Likewise.
12224 (read_attribute_value): Likewise.
12225 (read_addr_index_from_leb128): Likewise.
12226 (dwarf2_read_addr_index): Likewise.
12227 (dwarf2_string_attr): Likewise.
12228 (lnp_state_machine::check_line_address): Likewise.
12229 (dwarf_decode_lines_1): Likewise.
12230 (dwarf_decode_lines): Likewise.
12231 (dwarf2_start_symtab): Likewise.
12232 (var_decode_location): Likewise.
12233 (new_symbol_full): Likewise.
12234 (dwarf2_const_value_data): Likewise.
12235 (dwarf2_const_value_attr): Likewise.
12236 (dwarf2_const_value): Likewise.
12237 (die_type): Likewise.
12238 (die_containing_type): Likewise.
12239 (lookup_die_type): Likewise.
12240 (guess_full_die_structure_name): Likewise.
12241 (anonymous_struct_prefix): Likewise.
12242 (dwarf2_name): Likewise.
12243 (follow_die_ref_or_sig): Likewise.
12244 (follow_die_offset): Likewise.
12245 (follow_die_ref): Likewise.
12246 (dwarf2_fetch_die_loc_sect_off): Likewise.
12247 (dwarf2_fetch_constant_bytes): Likewise.
12248 (dwarf2_fetch_die_type_sect_off): Likewise.
12249 (dwarf2_get_die_type): Likewise.
12250 (follow_die_sig): Likewise.
12251 (decode_locdesc): Likewise.
12252 (dwarf2_per_cu_objfile): Likewise.
12253 (dwarf2_per_cu_text_offset): Likewise.
12254 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
12255 objfile.
12256 (set_die_type): Access objfile through
12257 dwarf2_per_objfile.
12258
b01ba14d
SM
122592018-01-07 Simon Marchi <simon.marchi@ericsson.com>
12260
12261 * valprint.c (converted_character_d): Remove typedef.
12262 (DEF_VEC_O (converted_character_d)): Remove.
12263 (count_next_character): Use std::vector.
12264 (print_converted_chars_to_obstack): Likewise.
12265 (generic_printstr): Likewise.
12266
4d0fdd9b
SM
122672018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
12268
12269 * xml-support.h (struct gdb_xml_value): Add constructor.
12270 <value>: Change type to unique_xmalloc_ptr.
12271 (gdb_xml_value_s): Remove typedef.
12272 (DEF_VEC_O (gdb_xml_value_s)): Remove.
12273 (gdb_xml_element_start_handler): Change parameter type to
12274 std::vector.
12275 (xml_find_attribute): Likewise.
12276 * xml-support.c (xml_find_attribute): Change parameter type to
12277 std::vector and adjust.
12278 (gdb_xml_values_cleanup): Remove.
12279 (gdb_xml_parser::start_element): Adjust to std::vector.
12280 (xinclude_start_include): Change paraeter type to std::vector
12281 and adjust.
12282 * btrace.c (check_xml_btrace_version): Likewise.
12283 (parse_xml_btrace_block): Likewise.
12284 (parse_xml_btrace_pt_config_cpu): Likewise.
12285 (parse_xml_btrace_pt): Likewise.
12286 (parse_xml_btrace_conf_bts): Likewise.
12287 (parse_xml_btrace_conf_pt): Likewise.
12288 * memory-map.c (memory_map_start_memory): Likewise.
12289 (memory_map_start_property): Likewise.
12290 * osdata.c (osdata_start_osdata): Likewise.
12291 (osdata_start_item): Likewise.
12292 (osdata_start_column): Likewise.
12293 * remote.c (start_thread): Likewise.
12294 * solib-aix.c (library_list_start_library): Likewise.
12295 (library_list_start_list): Likewise.
12296 * solib-svr4.c (library_list_start_library): Likewise.
12297 (svr4_library_list_start_list): Likewise.
12298 * solib-target.c (library_list_start_segment): Likewise.
12299 (library_list_start_section): Likewise.
12300 (library_list_start_library): Likewise.
12301 (library_list_start_list): Likewise.
12302 * tracepoint.c (traceframe_info_start_memory): Likewise.
12303 (traceframe_info_start_tvar): Likewise.
12304 * xml-syscall.c (syscall_start_syscall): Likewise.
12305 * xml-tdesc.c (tdesc_start_target): Likewise.
12306 (tdesc_start_feature): Likewise.
12307 (tdesc_start_reg): Likewise.
12308 (tdesc_start_union): Likewise.
12309 (tdesc_start_struct): Likewise.
12310 (tdesc_start_flags): Likewise.
12311 (tdesc_start_enum): Likewise.
12312 (tdesc_start_field): Likewise.
12313 (tdesc_start_enum_value): Likewise.
12314 (tdesc_start_vector): Likewise.
12315
f979c73f
SM
123162018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
12317
12318 * extension.h (struct xmethod_worker) <clone>: Remove.
12319 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
12320 Remove.
12321 (python_xmethod_worker::clone): Remove.
12322 * valops.c (find_overload_match): Use std::move instead of
12323 clone.
12324
ba18742c
SM
123252018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
12326
12327 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
12328 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
12329 <free_xmethod_worker_data>: Remove.
12330 <get_matching_xmethod_workers>: Chance VEC to std::vector.
12331 <get_xmethod_arg_types>: Remove.
12332 <get_xmethod_result_type>: Remove.
12333 <invoke_xmethod>: Remove.
12334 * extension.c (new_xmethod_worker): Remove.
12335 (clone_xmethod_worker): Remove.
12336 (get_matching_xmethod_workers): Return void, pass std::vector by
12337 pointer.
12338 (get_xmethod_arg_types): Rename to...
12339 (xmethod_worker::get_arg_types): ... this, and adjust.
12340 (get_xmethod_result_type): Rename to...
12341 (xmethod_worker::get_result_type): ... this, and adjust.
12342 (invoke_xmethod): Remove.
12343 (free_xmethod_worker): Remove.
12344 (free_xmethod_worker_vec): Remove.
12345 * extension.h (enum ext_lang_rc): Move here from
12346 extension-priv.h.
12347 (struct xmethod_worker): Add constructor and destructor.
12348 <data>: Remove.
12349 <value>: Remove.
12350 <invoke, clone, do_get_result_type, do_get_arg_types>: New
12351 virtual pure methods.
12352 <get_arg_types, get_result_type>: New methods.
12353 (xmethod_worker_ptr): Remove typedef.
12354 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
12355 (xmethod_worker_vec): Remove typedef.
12356 (xmethod_worker_up): New typedef.
12357 (invoke_xmethod): Remove.
12358 (clone_xmethod_worker): Remove.
12359 (free_xmethod_worker): Remove.
12360 (free_xmethod_worker_vec): Remove.
12361 (get_xmethod_arg_types): Remove.
12362 (get_xmethod_result_type): Remove.
12363 * valops.c (find_method_list): Use std::vector, don't use
12364 intermediate vector.
12365 (value_find_oload_method_list): Use std::vector.
12366 (find_overload_match): Use std::vector.
12367 (find_oload_champ): Use std::vector.
12368 * value.c (value_free): Use operator delete.
12369 (value_of_xmethod): Rename to...
12370 (value_from_xmethod): ... this. Don't assign
12371 xmethod_worker::value, take rvalue-reference.
12372 (result_type_of_xmethod): Adjust.
12373 (call_xmethod): Adjust.
12374 * value.h: Include extension.h.
12375 (struct xmethod_worker): Don't forward-declare.
12376 (value_of_xmethod): Rename to...
12377 (value_from_xmethod): ... this, take rvalue-reference.
12378 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
12379 (struct python_xmethod_worker): ... this, add constructor and
12380 destructor.
12381 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
12382 (gdbpy_free_xmethod_worker_data): Rename to...
12383 (python_xmethod_worker::~python_xmethod_worker): ... this and
12384 adjust.
12385 (gdbpy_clone_xmethod_worker_data): Rename to...
12386 (python_xmethod_worker::clone): ... this and adjust.
12387 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
12388 temporary vector.
12389 (gdbpy_get_xmethod_arg_types): Rename to...
12390 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
12391 (gdbpy_get_xmethod_result_type): Rename to...
12392 (python_xmethod_worker::do_get_result_type): ... this and
12393 adjust.
12394 (gdbpy_invoke_xmethod): Rename to...
12395 (python_xmethod_worker::invoke): ... this and adjust.
12396 (new_python_xmethod_worker): Rename to...
12397 (python_xmethod_worker::python_xmethod_worker): ... this and
12398 adjust.
12399 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
12400 Remove.
12401 (gdbpy_free_xmethod_worker_data): Remove.
12402 (gdbpy_get_matching_xmethod_workers): Use std::vector.
12403 (gdbpy_get_xmethod_arg_types): Remove.
12404 (gdbpy_get_xmethod_result_type): Remove.
12405 (gdbpy_invoke_xmethod): Remove.
12406 * python/python.c (python_extension_ops): Remove obsolete
12407 callbacks.
12408
e379cee6
PA
124092018-01-05 Pedro Alves <palves@redhat.com>
12410
12411 PR gdb/18653
12412 * common/signals-state-save-restore.c
12413 (save_original_signals_state): New parameter 'quiet'. Warn if we
12414 find a custom handler preinstalled, instead of internal erroring.
12415 But only warn if !quiet.
12416 * common/signals-state-save-restore.h
12417 (save_original_signals_state): New parameter 'quiet'.
12418 * main.c (captured_main_1): Move save_original_signals_state call
12419 after option handling, and pass QUIET.
12420
a655456c
PA
124212018-01-05 Pedro Alves <palves@redhat.com>
12422
12423 * spu-tdep.c (spu_catch_start): Pass
12424 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
12425
de63c46b
PA
124262018-01-05 Pedro Alves <palves@redhat.com>
12427
12428 PR gdb/22670
12429 * ada-lang.c (literal_symbol_name_matcher): New function.
12430 (ada_get_symbol_name_matcher): Use it for
12431 symbol_name_match_type::SEARCH_NAME.
12432 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
12433 it down instead of assuming symbol_name_match_type::FULL.
12434 * block.h (block_lookup_symbol): New parameter 'match_type'.
12435 * c-valprint.c (print_unpacked_pointer): Use
12436 lookup_symbol_search_name instead of lookup_symbol.
12437 * compile/compile-object-load.c (get_out_value_type): Pass down
12438 symbol_name_match_type::SEARCH_NAME.
12439 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
12440 symbol_name_match_type::FULL.
12441 * cp-support.c (cp_get_symbol_name_matcher): Handle
12442 symbol_name_match_type::SEARCH_NAME.
12443 * infrun.c (insert_exception_resume_breakpoint): Use
12444 lookup_symbol_search_name.
12445 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
12446 * psymtab.c (maintenance_check_psymtabs): Use
12447 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
12448 * stack.c (print_frame_args): Use lookup_symbol_search_name and
12449 SYMBOL_SEARCH_NAME.
12450 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
12451 if symbol_name_match_type::SEARCH_NAME.
12452 (lookup_symbol_in_language): Pass down
12453 symbol_name_match_type::FULL.
12454 (lookup_symbol_search_name): New.
12455 (lookup_language_this): Pass down
12456 symbol_name_match_type::SEARCH_NAME.
12457 (lookup_symbol_aux, lookup_local_symbol): New parameter
12458 'match_type'. Pass it down.
12459 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
12460 (lookup_symbol_search_name): New declaration.
12461 (lookup_symbol_in_block): New 'match_type' parameter.
12462
f98fc17b
PA
124632018-01-05 Pedro Alves <palves@redhat.com>
12464
12465 PR gdb/22670
12466 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
12467 ada_lookup_symbol.
12468 (ada_lookup_symbol): Reimplement in terms of
12469 ada_lookup_symbol_list, bits factored out from
12470 ada_lookup_encoded_symbol.
12471
342f8240
JB
124722018-01-05 Joel Brobecker <brobecker@adacore.com>
12473
12474 * ada-exp.y (write_object_renaming): When subscripting an array
12475 using a symbol as the index, pass the block in call to
12476 ada_lookup_encoded_symbol when looking that symbol up.
12477
7150d33c
JG
124782018-01-05 Jerome Guitton <guitton@adacore.com>
12479
12480 * ada-lang.c (ada_array_length): Use ada_index_type instead of
12481 TYPE_INDEX_TYPE.
12482
cc0e770c
JB
124832018-01-05 Joel Brobecker <brobecker@adacore.com>
12484
12485 * ada-lang.c (ada_to_fixed_value_create): Add handling of
12486 the case where VALUE_LVAL (val0) is not lval_memory.
12487
f79da888 124882018-01-05 Xavier Roirand <roirand@adacore.com>
e3861a03
XR
12489
12490 * ada-valprint.c (print_optional_low_bound): Handle
12491 character-indexed array printing like boolean-indexed array
12492 printing.
12493
cd385f94
JB
124942018-01-05 Joel Brobecker <brobecker@adacore.com>
12495
12496 * NEWS: Create a new section for the next release branch.
12497 Rename the section of the current branch, now that it has
12498 been cut.
12499
09aca949
JB
125002018-01-05 Joel Brobecker <brobecker@adacore.com>
12501
12502 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
12503 * version.in: Bump version to 8.1.50.DATE-git.
12504
9f757bf7
XR
125052018-01-03 Xavier Roirand <roirand@adacore.com>
12506
12507 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
12508 Add field.
12509 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
12510 Add field.
12511 (default_exception_support_info) <catch_handlers_sym>: Add field.
12512 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
12513 (ada_exception_name_addr_1): Add "catch handlers" handling.
12514 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
12515 Update all callers.
12516 (create_excep_cond_exprs) <ex>: Add parameter.
12517 (re_set_exception): Update create_excep_cond_exprs call.
12518 (print_it_exception, print_one_exception, print_mention_exception)
12519 (print_recreate_exception): Add "catch handler" handling.
12520 (allocate_location_catch_handlers, re_set_catch_handlers)
12521 (check_status_catch_handlers, print_it_catch_handlers)
12522 (print_one_catch_handlers, print_mention_catch_handlers)
12523 (print_recreate_catch_handlers): New function.
12524 (catch_handlers_breakpoint_ops): New variable.
12525 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
12526 Add parameter. Add "catch handler" handling.
12527 (ada_exception_sym_name, ada_exception_breakpoint_ops):
12528 Add "catch handler" handling.
12529 (ada_exception_catchpoint_cond_string): Add "catch handler"
12530 handling.
12531 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
12532 call.
12533 (catch_ada_handlers_command): New function.
12534 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
12535 operations structure.
12536 (_initialize_ada_language): Add "catch handlers" command entry.
12537 * NEWS: Document "catch handlers" feature.
12538
9fe561ab
JB
125392018-01-02 Joel Brobecker <brobecker@adacore.com>
12540
12541 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
12542 account when creating the array type of the slice.
12543 (ada_value_slice): Likewise.
12544
a405673c
JB
125452018-01-02 Joel Brobecker <brobecker@adacore.com>
12546
12547 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
12548 New enum value.
12549 (create_array_type_with_stride): Add byte_stride_prop parameter.
12550 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
12551 New parameter. Update all callers in this file.
12552 (array_type_has_dynamic_stride): New function.
12553 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
12554 of arrays with dynamic byte strides.
12555 * dwarf2read.c (read_array_type): Add support for dynamic
12556 DW_AT_byte_stride attributes.
12557
74a2f8ff
JB
125582018-01-02 Joel Brobecker <brobecker@adacore.com>
12559
12560 * dwarf2read.c (read_unspecified_type): Treat
12561 DW_TAG_enumeration_type DIEs from Ada units as stubs.
12562
e2882c85
JB
125632018-01-01 Joel Brobecker <brobecker@adacore.com>
12564
12565 Update copyright year range in all GDB files.
12566
1690bb24
JB
125672018-01-01 Joel Brobecker <brobecker@adacore.com>
12568
12569 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
12570 and gdb/testsuite/gdb.base/step-line.c.
12571
0f0c98a8
JB
125722018-01-01 Joel Brobecker <brobecker@adacore.com>
12573
12574 * copyright.py (main): Dump the contents of
12575 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
12576 even if BY_HAND is empty.
12577
82e1e79a
JB
125782018-01-01 Joel Brobecker <brobecker@adacore.com>
12579
12580 * top.c (print_gdb_version): Update Copyright year in version
12581 message.
12582
053f54e5 125832018-01-01 Joel Brobecker <brobecker@adacore.com>
47fea877 12584
053f54e5 12585 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
47fea877 12586
053f54e5 12587For older changes see ChangeLog-2017.
c906108c
SS
12588\f
12589Local Variables:
12590mode: change-log
12591left-margin: 8
12592fill-column: 74
12593version-control: never
57da7796 12594coding: utf-8
c906108c 12595End:
This page took 3.251632 seconds and 4 git commands to generate.