1 2018-09-04 Tom Tromey <tom@tromey.com>
3 * Makefile.in (printcmd.o, target-float.o): Remove.
4 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
6 2018-09-04 Tom Tromey <tom@tromey.com>
8 * gnulib/Makefile.in: Remove obsolete comment.
9 * Makefile.in: Remove obsolete comment.
11 2018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
13 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
16 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
18 * riscv-tdep.c: Add 'prologue-value.h' include.
19 (struct riscv_unwind_cache): New struct.
20 (riscv_debug_unwinder): New global.
21 (riscv_scan_prologue): Update arguments, capture register details
23 (riscv_skip_prologue): Reformat arguments line, move end of
24 prologue calculation into riscv_scan_prologue.
25 (riscv_frame_cache): Update return type, create
26 riscv_unwind_cache, scan the prologue, and fill in remaining cache
28 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
29 (riscv_frame_prev_register): Use the trad_frame within the
31 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
34 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
36 * trad-frame.h (trad_frame_set_realreg): Declare.
37 (trad_frame_set_addr): Declare.
38 * trad-frame.c (trad_frame_set_realreg): Define new function.
39 (trad_frame_set_addr): Define new function.
40 (trad_frame_set_reg_realreg): Use new function.
41 (trad_frame_set_reg_addr): Use new function.
43 2018-09-01 Keith Seitz <keiths@redhat.com>
45 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
46 pulongest instead of "%lld".
47 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
50 2018-08-31 Tom Tromey <tom@tromey.com>
52 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
55 2018-08-31 Pedro Alves <palves@redhat.com>
57 * gdbarch.h: Regenerate.
59 2018-08-31 Pedro Alves <palves@redhat.com>
61 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
62 * target.h (Hardware watchpoint interfaces): Describe
63 continuable/steppable/non-steppable watchpoints.
64 * gdbarch.h, gdbarch.c: Regenerate.
66 2018-08-31 Pedro Alves <palves@redhat.com>
68 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
71 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
72 * target.h (target_ops::have_continuable_watchpoint): Delete.
73 (target_have_continuable_watchpoint): Delete.
74 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
75 * target-delegates.c: Regenerate.
77 2018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
79 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
80 the files present in "gnulib/import/m4/".
82 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
84 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
85 c.sw, c.swsp, and c.sdsp.
87 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
89 * riscv-tdep.c (struct riscv_inferior_data): Delete.
90 (riscv_read_misa_reg): Don't cache value read into inferior data.
91 (riscv_new_inferior_data): Delete.
92 (riscv_inferior_data_cleanup): Delete.
93 (riscv_inferior_data): Delete.
94 (riscv_invalidate_inferior_data): Delete.
95 (_initialize_riscv_tdep): Remove initialisation of inferior data.
97 2018-08-30 Simon Marchi <simon.marchi@ericsson.com>
99 * compile/compile-cplus-types.c
100 (compile_cplus_instance::leave_scope): Take the address of scope
102 (compile_cplus_instance::convert_qualified_base): Compare quals
105 2018-08-30 Keith Seitz <keiths@redhat.com>
107 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
108 Use "%s" and host_address_to_string instead of "%p" in printf.
110 2018-08-29 Keith Seitz <keiths@redhat.com>
112 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
113 and compile-cplus-types.c.
114 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
115 * c-lang.c (cplus_language_defn): Set C++ compile functions.
116 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
118 * compile/compile-c-support.c: Include compile-cplus.h.
119 (load_libcompile): Templatize.
120 (get_compile_context): "New" function.
121 (c_get_compile_context): Use get_compile_context.
122 (cplus_get_compile_context): New function.
123 (cplus_push_user_expression, cplus_pop_user_expression)
124 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
125 (cplus_compute_program): Define new structs/functions.
126 * compile/compile-cplus-symmbols.c: New file.
127 * compile/compile-cplus-types.c: New file.
128 * compile/compile-cplus.h: New file.
129 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
131 * compile/compile-object-load.c (get_out_value_type): Use
132 strncmp_iw when comparing symbol names.
133 (compile_object_load): Add mst_bss and mst_data.
134 * compile/compile.c (_initialize_compile): Remove
135 -Wno-implicit-function-declaration from `compile_args'.
136 * compile/gcc-cp-plugin.h: New file.
137 * NEWS: Mention C++ compile support and new debug options.
139 2018-08-29 Keith Seitz <keiths@redhat.com>
141 * linespec.c (collect_info::add_symbol): Make virtual.
142 (struct symbol_searcher_collect_info): New struct.
143 (symbol_searcher::find_all_symbols): New method.
144 * symtab.h (class symbol_searcher): New class.
146 2018-08-29 Keith Seitz <keiths@redhat.com>
148 * linespec.c (struct linespec) <function_symbols, label_symbols>:
149 Change to vector of block_symbol. Update all users.
150 (struct collect_info) <symbols>: Likewise.
151 (collect_info::add_symbol): Take block_symbol as argument.
153 (decode_compound_collector) <m_symbols>: Change type to vector
154 of block_symbol. Update all users.
155 (decode_compound_collector::operator ()): Change parameter type
157 (find_method, find_function_symbols, find_linespec_symbols)
158 (find_label_symbols_in_block, find_label_symbols): Change symbol
159 vectors to block_symbol vectors.
160 * symtab.h (symbol_found_callback_ftype): Change parameter type to
163 2018-08-29 Keith Seitz <keiths@redhat.com>
165 * linespec.c (symbolp): Remove typedef and VEC definitions.
166 (bound_minimal_symbol_d): Likewise.
168 2018-08-29 Keith Seitz <keiths@redhat.com>
170 * linespec.c (decode_compound_collector::decode_compound_collector):
171 Remove initialization for `m_symtabs'.
172 (decode_compound_collector::release_symbols): Change return type
173 to std::vector. Update all callers.
174 (class decode_compound_collector) <m_symbols>: Change type to
176 (lookup_prefix_sym): Change return type to std::vector. Update all
178 (compare_symbols): Remove.
179 (std_compare_symbols): Rename to `compare_symbols'.
180 (find_method): Change `sym_classes' parameter to std::vector.
181 Update all callers. Use std::sort to sort sym_classes.
182 (find_linespec_symbols): Remove cleanup.
184 2018-08-29 Keith Seitz <keiths@redhat.com>
186 * linespec.c (struct linespec) <minimal_symbols>: Change type to
187 std::vector. Update all users.
188 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
189 (struct collect_info) <minimal_symbols>: Likewise.
190 (compare_msymbols): Return bool. Change parameters to const
191 bound_minimal_symbol references.
192 (find_method, find_function_symbols, find_linespec_symbols): Change
193 `minsyms' parameter to std::vector. Update all callers.
195 2018-08-29 Keith Seitz <keiths@redhat.com>
197 * linespec.c (struct linespec) <label_symbols>: Change type to
198 std::vector. Update all users.
199 (find_label_symbols_in_block): Change `result' parameter to
200 std::vector. Update all callers.
201 (find_label_symbols): Return std::vector. Update all callers.
203 2018-08-29 Keith Seitz <keiths@redhat.com>
205 * linespec.c (struct linespec) <function_symbols>: Change type to
206 std::vector. Update all users.
207 (struct collect_info) <function_symbols>: Likewise.
208 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
209 (std_compare_symbols): New function.
210 (find_method, find_function_symbols, find_linespec_symbols)
211 (find_label_symbols_in_block): Change `symbols' parameter to
212 std::vector. Update all callers.
213 (find_label_symbols): Likewise for `function_symbols' and
216 2018-08-29 Keith Seitz <keiths@redhat.com>
218 * linespec.c (symtab_vector_up): Define.
219 (struct linespec) <file_symtabs>: Change type to std::vector *.
221 (struct collect_info) <file_symtabs>: Likewise.
222 (collect_symtabs_from_filename): Return symtab_vector_up.
224 (decode_objc): Remove cleanup.
225 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
226 (symtab_collector::release_symtabs): Return symtab_vector_up.
228 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
230 (collect_symtabs_from_filename, symtabs_from_filename): Return
231 symtab_vector_up. Update all callers.
233 2018-08-29 Tom Tromey <tom@tromey.com>
235 * csky-tdep.c (csky_analyze_prologue): Use
236 core_addr_to_string_nz.
238 2018-08-29 Tom Tromey <tom@tromey.com>
240 * windows-nat.c (struct xlate_exception) <them>: Change type to
242 (xlate): Fix formatting. Remove last entry.
243 (struct xlate_exception, xlate): Comment out.
244 (windows_nat_target::resume): Use ranged for.
246 2018-08-29 Jim Wilson <jimw@sifive.com>
248 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
249 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
251 (riscv_linux_nat_target::store_registers): Likewise.
253 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
257 * gnulib/aclocal.m4: Regenerate.
258 * gnulib/config.in: Regenerate.
259 * gnulib/configure: Regenerate.
260 * gnulib/import/Makefile.am: Update.
261 * gnulib/import/Makefile.in: Update.
262 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
263 * gnulib/import/_Noreturn.h: ... this.
264 * gnulib/import/alloca.in.h: Update.
265 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
266 * gnulib/import/arg-nonnull.h: ... this.
267 * gnulib/import/assure.h: Update.
268 * gnulib/import/at-func.c: Update.
269 * gnulib/import/basename-lgpl.c: Update.
270 * gnulib/import/extra/snippet/c++defs.h: Rename to...
271 * gnulib/import/c++defs.h: ... this.
272 * gnulib/import/canonicalize-lgpl.c: Update.
273 * gnulib/import/cdefs.h: Update.
274 * gnulib/import/chdir-long.c: Update.
275 * gnulib/import/chdir-long.h: Update.
276 * gnulib/import/cloexec.c: Update.
277 * gnulib/import/cloexec.h: Update.
278 * gnulib/import/close.c: Update.
279 * gnulib/import/closedir.c: Update.
280 * gnulib/import/config.charset: Update.
281 * gnulib/import/dirent-private.h: Update.
282 * gnulib/import/dirent.in.h: Update.
283 * gnulib/import/dirfd.c: Update.
284 * gnulib/import/dirname-lgpl.c: Update.
285 * gnulib/import/dirname.h: Update.
286 * gnulib/import/dosname.h: Update.
287 * gnulib/import/dup-safer-flag.c: Update.
288 * gnulib/import/dup-safer.c: Update.
289 * gnulib/import/dup.c: Update.
290 * gnulib/import/dup2.c: Update.
291 * gnulib/import/errno.in.h: Update.
292 * gnulib/import/error.c: Update.
293 * gnulib/import/error.h: Update.
294 * gnulib/import/exitfail.c: Update.
295 * gnulib/import/exitfail.h: Update.
296 * gnulib/import/extra/update-copyright: Update.
297 * gnulib/import/fchdir.c: Update.
298 * gnulib/import/fcntl.c: Update.
299 * gnulib/import/fcntl.in.h: Update.
300 * gnulib/import/fd-hook.c: Update.
301 * gnulib/import/fd-hook.h: Update.
302 * gnulib/import/fd-safer-flag.c: Update.
303 * gnulib/import/fd-safer.c: Update.
304 * gnulib/import/fdopendir.c: Update.
305 * gnulib/import/filename.h: Update.
306 * gnulib/import/filenamecat-lgpl.c: Update.
307 * gnulib/import/filenamecat.h: Update.
308 * gnulib/import/flexmember.h: Update.
309 * gnulib/import/float+.h: Update.
310 * gnulib/import/float.c: Update.
311 * gnulib/import/float.in.h: Update.
312 * gnulib/import/fnmatch.c: Update.
313 * gnulib/import/fnmatch.in.h: Update.
314 * gnulib/import/fnmatch_loop.c: Update.
315 * gnulib/import/fpucw.h: Update.
316 * gnulib/import/frexp.c: Update.
317 * gnulib/import/frexpl.c: Update.
318 * gnulib/import/fstat.c: Update.
319 * gnulib/import/fstatat.c: Update.
320 * gnulib/import/getcwd-lgpl.c: Update.
321 * gnulib/import/getcwd.c: Update.
322 * gnulib/import/getdtablesize.c: Update.
323 * gnulib/import/getlogin_r.c: Update.
324 * gnulib/import/getprogname.c: Update.
325 * gnulib/import/getprogname.h: Update.
326 * gnulib/import/gettext.h: Update.
327 * gnulib/import/gettimeofday.c: Update.
328 * gnulib/import/glob-libc.h: Update.
329 * gnulib/import/glob.c: Update.
330 * gnulib/import/glob.in.h: Update.
331 * gnulib/import/glob_internal.h: Update.
332 * gnulib/import/glob_pattern_p.c: Update.
333 * gnulib/import/globfree.c: Update.
334 * gnulib/import/hard-locale.c: Update.
335 * gnulib/import/hard-locale.h: Update.
336 * gnulib/import/intprops.h: Update.
337 * gnulib/import/inttypes.in.h: Update.
338 * gnulib/import/isnan.c: Update.
339 * gnulib/import/isnand-nolibm.h: Update.
340 * gnulib/import/isnand.c: Update.
341 * gnulib/import/isnanl-nolibm.h: Update.
342 * gnulib/import/isnanl.c: Update.
343 * gnulib/import/itold.c: Update.
344 * gnulib/import/libc-config.h: Update.
345 * gnulib/import/limits.in.h: Update.
346 * gnulib/import/localcharset.c: Update.
347 * gnulib/import/localcharset.h: Update.
348 * gnulib/import/localtime-buffer.c: Update.
349 * gnulib/import/localtime-buffer.h: Update.
350 * gnulib/import/lstat.c: Update.
351 * gnulib/import/m4/00gnulib.m4: Update.
352 * gnulib/import/m4/__inline.m4: Update.
353 * gnulib/import/m4/absolute-header.m4: Update.
354 * gnulib/import/m4/alloca.m4: Update.
355 * gnulib/import/m4/builtin-expect.m4: Update.
356 * gnulib/import/m4/canonicalize.m4: Update.
357 * gnulib/import/m4/chdir-long.m4: Update.
358 * gnulib/import/m4/close.m4: Update.
359 * gnulib/import/m4/closedir.m4: Update.
360 * gnulib/import/m4/configmake.m4: Update.
361 * gnulib/import/m4/d-ino.m4: Update.
362 * gnulib/import/m4/d-type.m4: Update.
363 * gnulib/import/m4/dirent_h.m4: Update.
364 * gnulib/import/m4/dirfd.m4: Update.
365 * gnulib/import/m4/dirname.m4: Update.
366 * gnulib/import/m4/double-slash-root.m4: Update.
367 * gnulib/import/m4/dup.m4: Update.
368 * gnulib/import/m4/dup2.m4: Update.
369 * gnulib/import/m4/eealloc.m4: Update.
370 * gnulib/import/m4/environ.m4: Update.
371 * gnulib/import/m4/errno_h.m4: Update.
372 * gnulib/import/m4/error.m4: Update.
373 * gnulib/import/m4/exponentd.m4: Update.
374 * gnulib/import/m4/exponentl.m4: Update.
375 * gnulib/import/m4/extensions.m4: Update.
376 * gnulib/import/m4/extern-inline.m4: Update.
377 * gnulib/import/m4/fchdir.m4: Update.
378 * gnulib/import/m4/fcntl-o.m4: Update.
379 * gnulib/import/m4/fcntl.m4: Update.
380 * gnulib/import/m4/fcntl_h.m4: Update.
381 * gnulib/import/m4/fdopendir.m4: Update.
382 * gnulib/import/m4/filenamecat.m4: Update.
383 * gnulib/import/m4/flexmember.m4: Update.
384 * gnulib/import/m4/float_h.m4: Update.
385 * gnulib/import/m4/fnmatch.m4: Update.
386 * gnulib/import/m4/fnmatch_h.m4: Update.
387 * gnulib/import/m4/fpieee.m4: Update.
388 * gnulib/import/m4/frexp.m4: Update.
389 * gnulib/import/m4/frexpl.m4: Update.
390 * gnulib/import/m4/fstat.m4: Update.
391 * gnulib/import/m4/fstatat.m4: Update.
392 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
393 * gnulib/import/m4/getcwd-path-max.m4: Update.
394 * gnulib/import/m4/getcwd.m4: Update.
395 * gnulib/import/m4/getdtablesize.m4: Update.
396 * gnulib/import/m4/getlogin.m4: Update.
397 * gnulib/import/m4/getlogin_r.m4: Update.
398 * gnulib/import/m4/getpagesize.m4: Update.
399 * gnulib/import/m4/getprogname.m4: Update.
400 * gnulib/import/m4/gettimeofday.m4: Update.
401 * gnulib/import/m4/glibc21.m4: Update.
402 * gnulib/import/m4/glob.m4: Update.
403 * gnulib/import/m4/glob_h.m4: Update.
404 * gnulib/import/m4/gnulib-cache.m4: Update.
405 * gnulib/import/m4/gnulib-common.m4: Update.
406 * gnulib/import/m4/gnulib-comp.m4: Update.
407 * gnulib/import/m4/gnulib-tool.m4: Update.
408 * gnulib/import/m4/hard-locale.m4: Update.
409 * gnulib/import/m4/include_next.m4: Update.
410 * gnulib/import/m4/inttypes-pri.m4: Update.
411 * gnulib/import/m4/inttypes.m4: Update.
412 * gnulib/import/m4/isnand.m4: Update.
413 * gnulib/import/m4/isnanl.m4: Update.
414 * gnulib/import/m4/largefile.m4: Update.
415 * gnulib/import/m4/limits-h.m4: Update.
416 * gnulib/import/m4/localcharset.m4: Update.
417 * gnulib/import/m4/locale-fr.m4: Update.
418 * gnulib/import/m4/locale-ja.m4: Update.
419 * gnulib/import/m4/locale-zh.m4: Update.
420 * gnulib/import/m4/localtime-buffer.m4: Update.
421 * gnulib/import/m4/longlong.m4: Update.
422 * gnulib/import/m4/lstat.m4: Update.
423 * gnulib/import/m4/malloc.m4: Update.
424 * gnulib/import/m4/malloca.m4: Update.
425 * gnulib/import/m4/math_h.m4: Update.
426 * gnulib/import/m4/mbrtowc.m4: Update.
427 * gnulib/import/m4/mbsinit.m4: Update.
428 * gnulib/import/m4/mbsrtowcs.m4: Update.
429 * gnulib/import/m4/mbstate_t.m4: Update.
430 * gnulib/import/m4/memchr.m4: Update.
431 * gnulib/import/m4/memmem.m4: Update.
432 * gnulib/import/m4/mempcpy.m4: Update.
433 * gnulib/import/m4/memrchr.m4: Update.
434 * gnulib/import/m4/mkdir.m4: Update.
435 * gnulib/import/m4/mkstemp.m4: Update.
436 * gnulib/import/m4/mmap-anon.m4: Update.
437 * gnulib/import/m4/mode_t.m4: Update.
438 * gnulib/import/m4/msvc-inval.m4: Update.
439 * gnulib/import/m4/msvc-nothrow.m4: Update.
440 * gnulib/import/m4/multiarch.m4: Update.
441 * gnulib/import/m4/nocrash.m4: Update.
442 * gnulib/import/m4/off_t.m4: Update.
443 * gnulib/import/m4/onceonly.m4: Update.
444 * gnulib/import/m4/open-cloexec.m4: Update.
445 * gnulib/import/m4/open.m4: Update.
446 * gnulib/import/m4/openat.m4: Update.
447 * gnulib/import/m4/opendir.m4: Update.
448 * gnulib/import/m4/pathmax.m4: Update.
449 * gnulib/import/m4/rawmemchr.m4: Update.
450 * gnulib/import/m4/readdir.m4: Update.
451 * gnulib/import/m4/readlink.m4: Update.
452 * gnulib/import/m4/realloc.m4: Update.
453 * gnulib/import/m4/rename.m4: Update.
454 * gnulib/import/m4/rewinddir.m4: Update.
455 * gnulib/import/m4/rmdir.m4: Update.
456 * gnulib/import/m4/save-cwd.m4: Update.
457 * gnulib/import/m4/secure_getenv.m4: Update.
458 * gnulib/import/m4/setenv.m4: Update.
459 * gnulib/import/m4/signal_h.m4: Update.
460 * gnulib/import/m4/ssize_t.m4: Update.
461 * gnulib/import/m4/stat-time.m4: Update.
462 * gnulib/import/m4/stat.m4: Update.
463 * gnulib/import/m4/std-gnu11.m4: Update.
464 * gnulib/import/m4/stdbool.m4: Update.
465 * gnulib/import/m4/stddef_h.m4: Update.
466 * gnulib/import/m4/stdint.m4: Update.
467 * gnulib/import/m4/stdio_h.m4: Update.
468 * gnulib/import/m4/stdlib_h.m4: Update.
469 * gnulib/import/m4/strchrnul.m4: Update.
470 * gnulib/import/m4/strdup.m4: Update.
471 * gnulib/import/m4/strerror.m4: Update.
472 * gnulib/import/m4/string_h.m4: Update.
473 * gnulib/import/m4/strstr.m4: Update.
474 * gnulib/import/m4/strtok_r.m4: Update.
475 * gnulib/import/m4/sys_socket_h.m4: Update.
476 * gnulib/import/m4/sys_stat_h.m4: Update.
477 * gnulib/import/m4/sys_time_h.m4: Update.
478 * gnulib/import/m4/sys_types_h.m4: Update.
479 * gnulib/import/m4/tempname.m4: Update.
480 * gnulib/import/m4/time_h.m4: Update.
481 * gnulib/import/m4/unistd-safer.m4: Update.
482 * gnulib/import/m4/unistd_h.m4: Update.
483 * gnulib/import/m4/warn-on-use.m4: Update.
484 * gnulib/import/m4/wchar_h.m4: Update.
485 * gnulib/import/m4/wchar_t.m4: Update.
486 * gnulib/import/m4/wctype_h.m4: Update.
487 * gnulib/import/m4/wint_t.m4: Update.
488 * gnulib/import/malloc.c: Update.
489 * gnulib/import/malloc/scratch_buffer.h: Update.
490 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
491 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
492 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
493 * gnulib/import/malloca.c: Update.
494 * gnulib/import/malloca.h: Update.
495 * gnulib/import/malloca.valgrind: Update.
496 * gnulib/import/math.in.h: Update.
497 * gnulib/import/mbrtowc.c: Update.
498 * gnulib/import/mbsinit.c: Update.
499 * gnulib/import/mbsrtowcs-impl.h: Update.
500 * gnulib/import/mbsrtowcs-state.c: Update.
501 * gnulib/import/mbsrtowcs.c: Update.
502 * gnulib/import/memchr.c: Update.
503 * gnulib/import/memmem.c: Update.
504 * gnulib/import/mempcpy.c: Update.
505 * gnulib/import/memrchr.c: Update.
506 * gnulib/import/mkdir.c: Update.
507 * gnulib/import/mkstemp.c: Update.
508 * gnulib/import/msvc-inval.c: Update.
509 * gnulib/import/msvc-inval.h: Update.
510 * gnulib/import/msvc-nothrow.c: Update.
511 * gnulib/import/msvc-nothrow.h: Update.
512 * gnulib/import/open.c: Update.
513 * gnulib/import/openat-die.c: Update.
514 * gnulib/import/openat-priv.h: Update.
515 * gnulib/import/openat-proc.c: Update.
516 * gnulib/import/openat.c: Update.
517 * gnulib/import/openat.h: Update.
518 * gnulib/import/opendir.c: Update.
519 * gnulib/import/pathmax.h: Update.
520 * gnulib/import/pipe-safer.c: Update.
521 * gnulib/import/rawmemchr.c: Update.
522 * gnulib/import/readdir.c: Update.
523 * gnulib/import/readlink.c: Update.
524 * gnulib/import/realloc.c: Update.
525 * gnulib/import/ref-add.sin: Update.
526 * gnulib/import/ref-del.sin: Update.
527 * gnulib/import/rename.c: Update.
528 * gnulib/import/rewinddir.c: Update.
529 * gnulib/import/rmdir.c: Update.
530 * gnulib/import/same-inode.h: Update.
531 * gnulib/import/save-cwd.c: Update.
532 * gnulib/import/save-cwd.h: Update.
533 * gnulib/import/scratch_buffer.h: Update.
534 * gnulib/import/secure_getenv.c: Update.
535 * gnulib/import/setenv.c: Update.
536 * gnulib/import/signal.in.h: Update.
537 * gnulib/import/stat-time.c: Update.
538 * gnulib/import/stat-time.h: Update.
539 * gnulib/import/stat-w32.c: Update.
540 * gnulib/import/stat-w32.h: Update.
541 * gnulib/import/stat.c: Update.
542 * gnulib/import/stdbool.in.h: Update.
543 * gnulib/import/stddef.in.h: Update.
544 * gnulib/import/stdint.in.h: Update.
545 * gnulib/import/stdio.in.h: Update.
546 * gnulib/import/stdlib.in.h: Update.
547 * gnulib/import/str-two-way.h: Update.
548 * gnulib/import/strchrnul.c: Update.
549 * gnulib/import/strdup.c: Update.
550 * gnulib/import/streq.h: Update.
551 * gnulib/import/strerror-override.c: Update.
552 * gnulib/import/strerror-override.h: Update.
553 * gnulib/import/strerror.c: Update.
554 * gnulib/import/string.in.h: Update.
555 * gnulib/import/stripslash.c: Update.
556 * gnulib/import/strnlen1.c: Update.
557 * gnulib/import/strnlen1.h: Update.
558 * gnulib/import/strstr.c: Update.
559 * gnulib/import/strtok_r.c: Update.
560 * gnulib/import/sys_stat.in.h: Update.
561 * gnulib/import/sys_time.in.h: Update.
562 * gnulib/import/sys_types.in.h: Update.
563 * gnulib/import/tempname.c: Update.
564 * gnulib/import/tempname.h: Update.
565 * gnulib/import/time.in.h: Update.
566 * gnulib/import/unistd--.h: Update.
567 * gnulib/import/unistd-safer.h: Update.
568 * gnulib/import/unistd.in.h: Update.
569 * gnulib/import/unsetenv.c: Update.
570 * gnulib/import/verify.h: Update.
571 * gnulib/import/extra/snippet/warn-on-use.h: Update.
572 * gnulib/import/wchar.in.h: Update.
573 * gnulib/import/wctype.in.h: Update.
574 * gnulib/import/xalloc-oversized.h: Update.
575 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
576 "53e2c179f26a890fa6685af4b6c1397ee370433b".
578 2018-08-16 Gary Benson <gbenson@redhat.com>
581 * gdb/main.c (captured_main_1): Exit with nonzero status
582 in batch mode if the last command to be executed failed.
583 * NEWS: Mention the above.
585 2018-08-29 Simon Marchi <simon.marchi@ericsson.com>
587 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
588 end of warning message.
590 2018-08-29 Alan Hayward <alan.hayward@arm.com>
593 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
594 (aarch64_extract_return_value): Use
595 aapcs_is_vfp_call_or_return_candidate.
596 (aarch64_return_in_memory): Likewise.
597 (aarch64_store_return_value): Likewise.
599 2018-08-29 Alan Hayward <alan.hayward@arm.com>
602 (aapcs_is_vfp_call_or_return_candidate): Make static
603 (pass_in_v_or_stack): Remove function.
604 (pass_in_v_vfp_candidate): New function.
605 (aarch64_push_dummy_call): Check for float register candidates.
607 2018-08-29 Alan Hayward <alan.hayward@arm.com>
609 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
610 (aapcs_is_vfp_call_or_return_candidate_1): New function.
611 (aapcs_is_vfp_call_or_return_candidate): Likewise.
613 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
616 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
617 (struct ipa_sym_addresses): Rename to...
618 (struct ipa_sym_addresses_common): ... this.
619 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
621 2018-08-28 Tom Tromey <tom@tromey.com>
623 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
624 (token_fifo): Now a std::vector.
625 (yylex, c_parse): Update.
626 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
627 (token_fifo): Now a std::vector.
628 (yylex, d_parse): Update.
629 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
630 (token_fifo): Now a std::vector.
631 (yylex, go_parse): Update.
633 2018-08-28 Simon Marchi <simon.marchi@ericsson.com>
635 * parser-defs.h (struct type_stack) <elements>: Change type to
636 std::vector<union type_stack_elt>.
637 <depth, size>: Remove.
638 * parse.c (parse_exp_in_context_1): Adjust.
639 (type_stack_reserve): Remove.
640 (check_type_stack_depth): Remove.
641 (insert_into_type_stack): Adjust to std::vector.
642 (insert_type): Likewise.
643 (push_type): Likewise.
644 (push_type_int): Likewise.
645 (insert_type_address_space): Likewise.
646 (pop_type): Likewise.
647 (pop_type_int): Likewise.
648 (pop_typelist): Likewise.
649 (pop_type_stack): Likewise.
650 (append_type_stack): Likewise.
651 (push_type_stack): Likewise.
652 (get_type_stack): Likewise.
653 (type_stack_cleanup): Likewise.
654 (push_typelist): Likewise.
655 (follow_types): Likewise.
656 (_initialize_parse): Likewise.
658 2018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
660 * NEWS: Mention csky target.
662 2018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
663 Hafiz Abid Qadeer <abidh@codesourcery.com>
664 Don Breazeal <donb@codesourcery.com>
666 * csky-linux-tdep.c: New file.
667 * csky-tdep.c: Likewise.
668 * csky-tdep.h: Likewise.
669 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
671 (HFILES_NO_SRCDIR): Add csky-tdep.h.
672 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
673 * configure.tgt: Add csky support.
675 2018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
677 * python/py-framefilter.c (py_print_frame): Print frame architecture
678 when printing on an MI output.
680 2018-08-27 Tom Tromey <tom@tromey.com>
683 * configure: Rebuild.
684 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
686 2018-08-27 Tom Tromey <tom@tromey.com>
688 * aarch64-linux-tdep.c
689 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
692 2018-08-27 Tom Tromey <tom@tromey.com>
694 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
696 (ppc64_standard_linkage1, ppc64_standard_linkage2)
697 (ppc64_standard_linkage3, ppc64_standard_linkage4)
698 (ppc64_standard_linkage5, ppc64_standard_linkage6)
699 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
702 2018-08-27 Tom Tromey <tom@tromey.com>
704 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
705 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
707 2018-08-27 Tom Tromey <tom@tromey.com>
709 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
710 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
712 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
714 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
716 * sparc-linux-tdep.c (sparc32_linux_sigframe)
717 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
718 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
720 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
721 (ppc64_linux_sigaction_tramp_frame)
722 (ppc32_linux_sighandler_tramp_frame)
723 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
724 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
725 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
726 * mn10300-linux-tdep.c (am33_linux_sigframe)
727 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
728 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
729 * mips-linux-tdep.c (mips_linux_o32_sigframe)
730 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
731 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
732 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
733 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
734 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
735 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
736 * microblaze-linux-tdep.c
737 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
738 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
739 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
740 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
741 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
742 * common/common-types.h (ULONGEST_MAX): New define.
743 (CORE_ADDR_MAX): Fix formatting.
744 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
745 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
746 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
747 (arm_linux_rt_sigreturn_tramp_frame)
748 (arm_eabi_linux_sigreturn_tramp_frame)
749 (arm_eabi_linux_rt_sigreturn_tramp_frame)
750 (thumb2_eabi_linux_sigreturn_tramp_frame)
751 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
752 (arm_linux_restart_syscall_tramp_frame)
753 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
754 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
755 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
757 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
759 2018-08-27 Tom Tromey <tom@tromey.com>
761 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
763 * mips-tdep.c (mips_deal_with_atomic_sequence)
764 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
765 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
766 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
767 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
769 * aarch64-tdep.c (aarch64_software_single_step): Use
772 2018-08-27 Tom Tromey <tom@tromey.com>
774 * linespec.c (complete_linespec_component): Add cast to "char".
775 * completer.c (completion_tracker::build_completion_result): Add
778 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
780 * solist.h (struct solist, struct target_so_ops): Fix
783 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
785 * ada-tasks.c (ada_task_info_s): Remove typedef.
786 (DEF_VEC_O(ada_task_info_s)): Remove.
787 (struct ada_tasks_inferior_data): Initialize fields.
788 <task_list>: Make an std::vector.
789 (get_ada_tasks_inferior_data): Allocate with new.
790 (ada_get_task_number): Adjust.
791 (get_task_number_from_id): Likewise.
792 (valid_task_id): Likewise.
793 (ada_get_task_info_from_ptid): Likewise.
794 (iterate_over_live_ada_tasks): Likewise.
795 (add_ada_task): Likewise.
796 (read_known_tasks): Likewise.
797 (ada_build_task_list): Likewise.
798 (print_ada_task_info): Likewise.
799 (info_task): Likewise.
800 (task_command_1): Likewise.
802 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
804 * ada-lang.c (add_angle_brackets): Return std::string.
806 2018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
808 * python/py-threadevent.c (py_get_event_thread): Initialize
811 2018-08-24 Pedro Alves <palves@redhat.com>
813 * python/py-bpevent.c (create_breakpoint_event_object): Use
815 * python/py-continueevent.c (emit_continue_event): Use
817 * python/py-exitedevent.c (create_exited_event_object): Return a
819 (emit_exited_event): Use copy-initialization.
820 * python/py-inferior.c (python_new_inferior)
821 (python_inferior_deleted, add_thread_object): Use
823 * python/py-infevents.c (create_inferior_call_event_object)
824 (create_register_changed_event_object)
825 (create_memory_changed_event_object): Return a gdbpy_ref<>.
826 (emit_inferior_call_event, emit_memory_changed_event)
827 (emit_register_changed_event): Use copy-initialization.
828 * python/py-newobjfileevent.c (create_new_objfile_event_object):
829 Return a gdbpy_ref<>.
830 (emit_new_objfile_event): Use copy-initialization.
831 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
832 (emit_clear_objfiles_event): Use copy-initialization.
833 * python/py-signalevent.c (create_signal_event_object): Use
835 * python/py-threadevent.c (create_thread_event_object): Use
838 2018-08-24 Pedro Alves <palves@redhat.com>
839 Simon Marchi <simon.marchi@ericsson.com>
842 * python/py-continueevent.c: Include "gdbthread.h".
843 (create_continue_event_object): Add intro comment. Add 'ptid'
844 parameter. Use it to find thread to pass to
845 create_thread_event_object.
846 (emit_continue_event): Pass PTID down to
847 create_continue_event_object.
848 * python/py-event.h (py_get_event_thread): Declare.
849 (create_thread_event_object): Remove default from 'thread'
851 * python/py-stopevent.c (create_stop_event_object): Use
853 * python/py-threadevent.c (get_event_thread): Rename to ...
854 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
855 and use it to find the thread.
856 (create_thread_event_object): Assert that THREAD isn't null.
857 Don't find the event thread here.
859 2018-08-23 Kevin Buettner <kevinb@redhat.com>
861 * block.h (blockrange, blockranges): New struct declarations.
862 (struct block): Add new field named `ranges'.
863 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
864 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
865 macros for accessing ranges in struct block.
866 (make_blockranges): New declaration.
867 block.c (make_blockranges): New function.
868 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
870 * symtab.h (find_pc_partial_function): Add new parameter `block'.
871 * blockframe.c (cache_pc_function_block): New static global.
872 (clear_pc_function_cache): Clear cache_pc_function_block.
873 (find_pc_partial_function): Move comment to symtab.h. Add
874 support for non-contiguous blocks.
875 * cli/cli-cmds.c (block.h): Include.
876 (print_disassembly): Handle printing of non-contiguous blocks.
877 (disassemble_current_function): Likewise.
878 (disassemble_command): Likewise.
880 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
882 * blockframe.c (get_pc_function_start): Likewise.
883 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
884 (gcc_symbol_address): Likewise.
885 * compile/compile-object-run.c (compile_object_run): Likewise.
886 * compile/compile.c (get_expr_block_and_pc): Likewise.
887 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
888 (func_addr_to_tail_call_list): Likewise.
889 * findvar.c (default_read_var_value): Likewise.
890 * inline-frame.c (inline_frame_this_id): Likewise.
891 (skip-inline_frames): Likewise.
892 * infcmd.c (until_next_command): Likewise.
893 * linespec.c (convert_linespec_to_sals): Likewise.
894 * parse.c (parse_exp_in_context_1): Likewise.
895 * printcmd.c (build_address_symbolic): likewise.
896 (info_address_command): Likewise.
897 symtab.c (find_function_start_sal): Likewise.
898 (skip_prologue_sal): Likewise.
899 (find_function_alias_target): Likewise.
900 (find_gnu_ifunc): Likewise.
901 * stack.c (find_frame_funname): Likewise.
902 * symtab.c (fixup_symbol_section): Likewise.
903 (find_function_start_sal): Likewise.
904 (skip_prologue_sal): Likewsie.
905 (find_function_alias_target): Likewise.
906 (find_gnu_ifunc): Likewise.
907 * tracepoint.c (info_scope_command): Likewise.
908 * value.c (value_fn_field): Likewise.
910 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
911 in place of find_pc_partial_function.
912 * blockframe.c (find_function_entry_range_from_pc): New function.
913 * symtab.h (find_function_entry_range_from_pc): Declare and document.
914 * objfiles.c (objfile_relocate1): Relocate start and end addresses
915 for each range in a block.
918 2018-08-23 Xavier Roirand <roirand@adacore.com>
920 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
923 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
925 * solib-svr4.c (read_program_headers_from_bfd): Return
926 gdb::optional<gdb::byte_vector>.
927 (svr4_exec_displacement): Adjust.
929 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
931 * solib-svr4.c (read_program_header): Return
932 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
933 (find_program_interpreter): Return
934 gdb::optional<gdb::byte_vector>.
935 (scan_dyntag_auxv): Adjust.
936 (enable_break): Adjust.
937 (svr4_exec_displacement): Adjust.
939 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
941 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
942 * inf-child.c (inf_child_target::terminal_save_inferior): New.
944 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
946 * guile/scm-string.c (gdbscm_scm_from_printf): Use
948 * guile/scm-utils.c (gdbscm_printf): Likewise.
949 * serial.c (serial_printf): Likewise.
950 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
952 2018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
954 * stack.c (print_frame): Print frame architecture when printing on
956 * NEWS: Mention new "arch" attribute in frame output.
958 2018-08-21 Alan Hayward <alan.hayward@arm.com>
960 * arch/aarch64.h (aarch64_regnum): Update comment.
962 2018-08-21 Alan Hayward <alan.hayward@arm.com>
964 * NEWS: Add SVE to 8.2 section.
966 2018-08-21 Pedro Alves <palves@redhat.com>
968 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
969 out from gdbscm_parse_function_args.
970 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
971 gdbscm_parse_function_args_1.
973 2018-08-21 Simon Marchi <simon.marchi@ericsson.com>
976 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
979 2018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
981 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
983 2018-08-19 Michael Spang <spang@google.com>
986 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
989 2018-08-18 Kevin Buettner <kevinb@redhat.com>
991 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
992 dwarf_variable_value.
993 * dwarf2-frame.c (class dwarf_expr_executor):
994 Add override for dwarf_variable_value.
995 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
996 (class symbol_needs_eval_context): Likewise.
997 (indirect_synthetic_pointer): Add forward declaration.
998 (sect_variable_value): New function.
999 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
1000 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
1001 for DW_OP_GNU_variable_value.
1003 2018-08-16 Tom Tromey <tom@tromey.com>
1005 * top.c (read_command_file): Update.
1006 (command_line_input): Remove "repeat" argument.
1007 * ada-lang.c (get_selections): Update.
1008 * linespec.c (decode_line_2): Update.
1009 * defs.h (command_line_input): Remove argument.
1010 * cli/cli-script.c (read_next_line): Update.
1011 * python/py-gdb-readline.c: Update.
1013 2018-08-17 Tom Tromey <tom@tromey.com>
1015 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
1018 2018-08-15 Tom Tromey <tom@tromey.com>
1020 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
1022 2018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
1024 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
1025 If used, use find_pc_partial_function to find address range
1027 * mi/mi-main.c (mi_cmd_list_features): Report
1028 "data-disassemble-a-option" feature.
1029 * NEWS: Mention new -data-disassemble option -a.
1031 2018-08-13 Tom Tromey <tom@tromey.com>
1033 * common/common-defs.h (_FORTIFY_SOURCE): Define.
1035 2018-08-13 Alan Hayward <alan.hayward@arm.com>
1037 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
1038 (aarch64_linux_collect_sve_regset): Likewise.
1039 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
1040 * regcache.h (regcache_map_entry_size): New function.
1042 2018-08-13 Alan Hayward <alan.hayward@arm.com>
1044 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
1045 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
1046 (SVE_HEADER_VL_LENGTH): Likewise.
1047 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
1048 (SVE_HEADER_FLAGS_LENGTH): Likewise.
1049 (SVE_HEADER_RESERVED_LENGTH): Likewise.
1050 (SVE_HEADER_SIZE_OFFSET): Likewise.
1051 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
1052 (SVE_HEADER_VL_OFFSET): Likewise.
1053 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
1054 (SVE_HEADER_FLAGS_OFFSET): Likewise.
1055 (SVE_HEADER_RESERVED_OFFSET): Likewise.
1056 (SVE_HEADER_SIZE): Likewise.
1057 (aarch64_linux_core_read_vq): Add function.
1058 (aarch64_linux_core_read_description): Check for SVE section.
1060 2018-08-13 Alan Hayward <alan.hayward@arm.com>
1062 * aarch64-fbsd-tdep.c
1063 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
1065 * aarch64-linux-tdep.c
1066 (aarch64_linux_iterate_over_regset_sections): Likewise.
1067 * alpha-linux-tdep.c
1068 (alpha_linux_iterate_over_regset_sections):
1070 (alphanbsd_iterate_over_regset_sections): Likewise.
1072 (amd64fbsd_iterate_over_regset_sections): Likewise.
1073 * amd64-linux-tdep.c
1074 (amd64_linux_iterate_over_regset_sections): Likewise.
1076 (armbsd_iterate_over_regset_sections): Likewise.
1078 (arm_fbsd_iterate_over_regset_sections): Likewise.
1080 (arm_linux_iterate_over_regset_sections): Likewise.
1081 * corelow.c (get_core_registers_cb): Likewise.
1082 (core_target::fetch_registers): Likewise.
1083 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
1084 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
1085 * gdbarch.h (void): Regenerate.
1086 * gdbarch.sh: Add supply_size and collect_size.
1087 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
1088 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
1089 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
1090 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
1091 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
1092 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
1093 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
1094 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
1095 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
1096 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
1097 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
1098 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
1099 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
1100 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
1101 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
1102 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
1103 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
1104 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
1105 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
1106 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
1107 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
1108 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
1109 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
1110 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
1111 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
1112 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
1113 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
1114 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
1115 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
1116 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
1118 2018-08-10 Simon Marchi <simon.marchi@ericsson.com>
1120 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
1123 2018-08-10 Keith Seitz <keiths@redhat.com>
1125 * compile/compile-c-support.c (add_code_header, add_code_footer):
1126 Move into policy class.
1127 (c_push_user_expression, pop_user_expression_nop)
1128 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
1129 (compile_program): New host class.
1130 (c_compile_program): New typedef.
1131 (c_compute_porgram): Use c_compile_program.
1133 2018-08-10 Keith Seitz <keiths@redhat.com>
1135 * compile/compile-internal.h (compile_instance::~compile_instance):
1136 Remove calls to htab_delete.
1137 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
1138 * compile.c (compile_instance::compile_instance): Initialize
1139 htab unique pointers.
1140 (compile_instance::get_cached_type, compile_instance::insert_type)
1141 (compile_instance::error_symbol_once): Update for unique_ptr.
1143 2018-08-10 Keith Seitz <keiths@redhat.com>
1145 * compile/compile-c-symbols.c (struct symbol_error)
1146 (hash_symbol_error, eq_symbol_error, del_symbol_error)
1147 (compile_instance::insert_symbol_error)
1148 (compile_instance::error_symbol_once): Move to ...
1149 * compile/compile.c: ... here.
1151 2018-08-10 Keith Seitz <keiths@redhat.com>
1153 * compile/compile-c-support.c (c_get_compile_context): Use `new'
1154 instead of `new_compile_instance'.
1155 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
1157 If the symbol error map is not initialized, create it.
1158 (generate_c_for_for_one_symbol): Do not check/initialize
1159 the symbol error map.
1160 * compile/compile-c-types.c (compile_c_instance): Make a class.
1162 (compile_instance::compile_instance): Initialize the type cache.
1163 (get_cached_type): New function.
1164 (insert_type): Update description.
1165 (compile_c_instance::m_default_cflags): Define.
1166 (convert_type): Update description. Use get_cached_type.
1167 (delete_instance): Moved to destructor.
1168 (new_compile_instance): Moved to constructor.
1169 * compile/compile-c.h (compile_c_instance): Make class inheriting
1170 from compile_instance.
1171 <base>: Remove field.
1172 <type_map, symbol_err_map>: Move to base class.
1173 <c_plugin>: Rename to `m_plugin' and remove pointer type.
1174 * compile/compile-internal.h (compile_instance): Make class.
1175 <type_map_t, symbol_err_map_t>: Define.
1176 <fe>: Rename to `m_gcc_fe'.
1177 <scope, block, gcc_target_options>: Add `m_' prefix.
1178 <m_type_map, m_symbol_err_map>: New fields, moved from
1181 (convert_type, new_compile_instance): Remove.
1182 * compile/compile.c (cleanup_compile_instance): Remove.
1183 (compile_to_object): Use unique_ptr to eliminate cleanups.
1184 (compile_instance::set_print_callback, compile_instance::version)
1185 (compile_instance::set_verbose)
1186 (compile_instance::set_driver_filename)
1187 (compile_instance::set_triplet_regexp)
1188 (compile_instance::set_arguments)
1189 (compile_instance::set_source_file)
1190 (compile_instance::compile): Define.
1192 2018-08-10 Keith Seitz <keiths@redhat.com>
1194 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
1195 * compile/compile-c-types.c: Define GCC_METHODN macros and include
1196 gcc-c-fe.def to define C plugin.
1197 (delete_instance): Delete `c_plugin'.
1198 (new_compile_instance): Initialize `c_plugin'.
1199 * compile/compile-c.h: Include gcc_c_plugin.h.
1200 (struct compile_c_instance) <c_plugin>: New member.
1201 * gcc-c-plugin.h: New file.
1202 Update all callers with API change.
1204 2018-08-10 Keith Seitz <keiths@redhat.com>
1206 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
1207 (HFILES_NO_SRCDIR): ... to here.
1208 Add compile-internal.h and compile-c.h.
1209 * compile/compile-c-support.c: Include compile-c.h.
1210 * compile/compile-c-symbols.c: Include compile-c.h.
1211 (generate_c_for_variable_locations): Update comment.
1212 * compile/compile-c-types.c: Include compile-c.h.
1213 * compile/compile-c.h: New file -- moved C language declarations
1214 from other files here.
1215 * compile/compile-internal.h: Do not include hashtab.h or
1216 common/enum-flags.h.
1217 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
1218 (gcc_convert_symbol, gcc_symbol_address)
1219 (generate_c_for_variable_locations, c_get_mode_for_size)
1220 (c_get_range_decl_name): Definitions moved to compile-c.h.
1221 * compile/compile-loc2c.c: Include compile-c.h.
1223 2018-08-10 Keith Seitz <keiths@redhat.com>
1225 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
1226 (c_symbol_substitution_name): ... this.
1229 2018-08-10 Keith Seitz <keiths@redhat.com>
1231 * compile/compile-c-support.c (c_compute_program): Use
1232 unique_xmalloc_ptr to eliminate cleanup.
1233 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
1234 Return a unique_xmalloc_ptr and eliminate cleanup.
1235 * compile/compile-internal.h (generate_c_for_variable_locations):
1236 Return unique_xmalloc_ptr and update description.
1238 2018-08-10 Alan Hayward <alan.hayward@arm.com>
1240 * corelow.c (core_target::get_core_register_section): Rename
1241 min_size to section_min_size.
1243 2018-08-09 Jim Wilson <jimw@sifive.com>
1245 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
1246 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
1247 * NEWS: Mention new GNU/Linux RISC-V target.
1248 * configure.host: Add riscv*-*-linux*.
1249 * configure.nat: Add riscv*.
1250 * configure.tgt: Add riscv*-*-linux*.
1251 * riscv-linux-nat.c: New file.
1252 * riscv-linux-tdep.c: New file.
1254 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
1256 * infrun.c (resume): Make static, add forward declaration.
1257 (proceed): Update header comment.
1258 * infrun.h (resume): Delete declaration.
1260 2018-08-09 Tom Tromey <tom@tromey.com>
1262 * riscv-tdep.h: Minor formatting fixes.
1264 2018-08-09 Simon Marchi <simon.marchi@ericsson.com>
1266 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
1267 * dwarf-index-cache.c (create_dir_and_check): Likewise.
1268 (test_mkdir_recursive): Likewise.
1269 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
1271 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
1273 * valarith.c (value_subscripted_rvalue): If an array is not in
1274 memory, and we don't know the upper bound, then we can't know that
1275 the requested element exists or not.
1277 2018-08-08 Simon Marchi <simon.marchi@ericsson.com>
1279 * target.c (str_comma_list_concat_elem): Fix typo in comment.
1280 (target_options_to_string): Add comment.
1282 2018-08-08 Tom Tromey <tom@tromey.com>
1284 * unittests/scoped_mmap-selftests.c: Check result of "write".
1286 2018-08-08 Jim Wilson <jimw@sifive.com>
1288 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
1289 (decode_register_index_short): New.
1290 (decode_j_type_insn, decode_cj_type_insn): New.
1291 (decode_b_type_insn, decode_cb_type_insn): New.
1292 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
1293 local xlen. Check xlen when decoding ambiguous compressed insns. In
1294 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
1295 is_c_sw_insn instead of is_sw_insn.
1296 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
1297 (riscv_software_single_step): New.
1298 * riscv-tdep.h (riscv_software_single_step): Declare.
1300 * riscv-tdep.c (riscv_isa_xlen): Drop static.
1301 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
1303 2018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
1306 * target.c (dispose_inferior): Don't dispose of inferiors that are
1309 2018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
1311 * remote.c (remote_target::download_tracepoint): Change char* to
1314 2018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
1316 * target.h (target_options_to_string): Return an std::string.
1317 * target.c (str_comma_list_concat_elem): Return void, use
1319 (do_option): Likewise.
1320 (target_options_to_string): Return an std::string.
1321 * linux-nat.c (linux_nat_target::wait): Adjust.
1322 * target-debug.h (target_debug_print_options): Adjust.
1324 2018-08-07 Tom Tromey <tom@tromey.com>
1326 * Makefile.in (CPPFLAGS): New variable.
1327 (INTERNAL_CPPFLAGS): Use it.
1329 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
1331 * NEWS: Mention the index cache.
1333 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
1335 * common/pathstuff.h (get_standard_cache_dir): New.
1336 * common/pathstuff.c (get_standard_cache_dir): New.
1337 * build-id.h (build_id_to_string): New.
1338 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
1339 DEBUG_STR_SUFFIX): Move to here.
1340 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
1341 DEBUG_STR_SUFFIX): Move from there.
1342 (write_psymtabs_to_index): Make non-static, add basename
1343 parameter. Write to temporary files, rename when done.
1344 (save_gdb_index_command): Adjust call to
1345 write_psymtabs_to_index.
1346 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
1348 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
1349 (get_gdb_index_contents_from_cache): New.
1350 (get_gdb_index_contents_from_cache_dwz): New.
1351 (dwarf2_initialize_objfile): Read index from cache.
1352 (dwarf2_build_psymtabs): Save to index.
1353 * dwarf-index-cache.h: New file.
1354 * dwarf-index-cache.c: New file.
1355 * dwarf-index-write.h: New file.
1357 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
1359 * gnulib/aclocal.m4: Re-generate.
1360 * gnulib/config.in: Re-generate.
1361 * gnulib/configure: Re-generate.
1362 * gnulib/import/Makefile.am: Re-generate.
1363 * gnulib/import/Makefile.in: Re-generate.
1364 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
1365 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
1366 * gnulib/import/m4/mkdir.m4: New file.
1367 * gnulib/import/mkdir.c: New file.
1368 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
1371 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
1373 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
1374 * common/scoped_mmap.c: New file.
1375 * common/scoped_mmap.h (destroy): New method.
1376 (~scoped_mmap, reset): Use destroy.
1377 (scoped_mmap): New move constructor.
1378 (mmap_file): New declaration.
1379 * unittests/scoped_mmap-selftests.c (test_normal,
1380 test_invalid_filename, run_tests): New functions.
1381 (_initialize_scoped_mmap_selftests): Register selftest.
1383 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
1385 * dwarf2read.c (read_gdb_index_from_section): Rename to...
1386 (read_gdb_index_from_buffer): ... this. Remove section
1387 parameter, add buffer parameter.
1388 (get_gdb_index_contents_ftype,
1389 get_gdb_index_contents_dwz_ftype): New typedefs.
1390 (dwarf2_read_gdb_index): Add callback parameters to get the
1392 (get_gdb_index_contents_from_section): New.
1393 (dwarf2_initialize_objfile): Update call to
1394 dwarf2_read_gdb_index.
1396 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
1398 * common/filestuff.h (gdb_fopen_cloexec): New overload.
1399 (gdb_open_cloexec): Likewise.
1400 * nat/linux-osdata.c (command_from_pid): Use string_printf.
1401 (commandline_from_pid): Likewise.
1402 (linux_xfer_osdata_threads): Likewise.
1403 (linux_xfer_osdata_fds): Likewise.
1404 * ada-lang.c (is_package_name): Likewise.
1405 * auxv.c (procfs_xfer_auxv): Likewise.
1406 * breakpoint.c (print_one_breakpoint_location): Use
1408 (print_one_catch_solib): Use string_printf.
1409 * coff-pe-read.c (add_pe_exported_sym): Likewise.
1410 (add_pe_forwarded_sym): Likewise.
1411 * dwarf2read.c (create_type_unit_group): Likewise.
1412 (build_error_marker_type): Likewise.
1413 * infcall.c (get_function_name): Likewise.
1414 * valprint.c (print_converted_chars_to_obstack): Likewise.
1415 * xtensa-tdep.c (xtensa_register_type): Likewise.
1417 2018-08-06 Simon Marchi <simon.marchi@ericsson.com>
1419 * remote.c (remote_target::download_tracepoint): Fix format
1422 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1424 * tracefile.c: Include common/byte-vector.h.
1425 (trace_save): Change type of buf to gdb::byte_vector. Initialize
1426 with trace_regblock_size if needed. Update uses of buf.
1428 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1430 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
1431 std::vector<unsigned char>.
1432 * tracepoint.c (collection_list::collection_list): Remove
1433 m_regs_mask initializer from initializer list. Resize
1434 m_regs_mask using the largest remote register number.
1435 (collection_list::add_remote_register): Remove size check on
1436 m_regs_mask. Use at to access element.
1437 (collection_list::stringify): Change type of temp_buf to
1438 gdb::char_vector. Update uses of temp_buf. Resize if needed to
1439 stringify the register mask. Use pack_hex_byte for the register
1442 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1444 * tracepoint.h (class collection_list) <add_register>: Remove.
1445 <add_remote_register, add_ax_registers, add_local_register>:
1447 <add_memrange>: Add scope parameter.
1448 * tracepoint.c (encode_actions_1): Likewise.
1449 (collection_list::add_register): Rename to ...
1450 (collection_list::add_remote_register): ... this. Update
1452 (collection_list::add_ax_registers, add_local_register): New
1454 (collection_list::add_memrange): Add scope parameter. Call
1455 add_local_register instead of add_register.
1456 (finalize_tracepoint_aexpr): New function.
1457 (collection_list::collect_symbol): Update calls to add_memrange.
1458 Call add_local_register instead of add_register. Call
1459 add_ax_registers. Call finalize_tracepoint_aexpr.
1460 (encode_actions_1): Get remote regnos for $reg action. Call
1461 add_remote_register, add_ax_registers, and add_local_register.
1462 Update call to add_memrange. Call finalize_tracepoint_aexpr.
1463 (validate_actionline): Call finalize_tracepoint_aexpr.
1465 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1467 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
1468 Replace array buf with gdb::char_vector buf, of size
1469 get_remote_packet_size (). Replace references to buf and
1470 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
1471 and xsnprintf with snprintf. Raise errors if the buffer is too
1474 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1476 * remote.c (remote_target::download_tracepoint): Fix the has_more
1477 predicate in the QTDP action list iteration.
1479 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1481 * remote.c (remote_target::download_tracepoint): Fix indentation
1484 2018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1486 * proc-api.c (_initialize_proc_api): Remove c, unused.
1487 * procfs.c (procfs_init_inferior): Remove signals, unused.
1488 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
1491 2018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
1492 Andrew Burgess <andrew.burgess@embecosm.com>
1494 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
1495 'W_STOPCODE (0)' as this could be ambiguous.
1497 2018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
1499 * ser-tcp.c (net_open): Fix thinko when deciding whether to
1500 disable TCP's Nagle algorithm (use "ai_protocol" instead of
1503 2018-08-02 Tom Tromey <tom@tromey.com>
1506 * dwarf2read.c (read_func_scope): Set symtab on template parameter
1508 (process_structure_scope): Likewise.
1510 2018-08-02 Xavier Roirand <roirand@adacore.com>
1513 * darwin-nat.c (darwin_kill_inferior): Fix handling of
1516 2018-08-02 Tom Tromey <tom@tromey.com>
1518 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
1519 (darwin_suspend_inferior, darwin_resume_inferior)
1520 (darwin_decode_notify_message, darwin_resume_inferior_threads)
1521 (darwin_check_new_threads): Check result of get_darwin_inferior.
1523 2018-07-31 Joel Brobecker <brobecker@adacore.com>
1527 2018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
1529 * varobj.c (varobj_get_path_expr_parent): Report an error if
1530 parent is a dynamic varobj.
1532 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
1534 * gnulib/aclocal.m4: Re-generate.
1535 * gnulib/config.in: Re-generate.
1536 * gnulib/configure: Re-generate.
1537 * gnulib/import/Makefile.in: Re-generate.
1538 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
1539 * gnulib/import/m4/onceonly.m4: Re-generate.
1541 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
1543 * target-descriptions.c (struct xml_test_tdesc): New.
1544 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
1545 (record_xml_tdesc): Update.
1546 (maintenance_check_xml_descriptions): Update.
1547 * target-descriptions.h (record_xml_tdesc): Update comment.
1549 2018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
1551 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
1552 checking array bounds are defined.
1554 2018-07-30 Tom Tromey <tom@tromey.com>
1556 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
1557 irreflexivity violation.
1559 2018-07-30 Tom Tromey <tom@tromey.com>
1561 * cli/cli-decode.c (lookup_cmd): Remove lint code.
1562 * value.c (unpack_long): Remove lint code.
1563 * valops.c (value_ind): Remove lint code.
1564 * valarith.c (value_x_binop, value_x_unop, value_equal)
1565 (value_pos): Remove lint code.
1567 2018-07-28 Tom de Vries <tdevries@suse.de>
1569 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
1570 with undefined upper bound as <optimized out>.
1572 2018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
1574 * gcore.in: Rename variable "name" to "prefix". Expand
1577 2018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
1579 * windows-nat.c (windows_nat_target::create_inferior): Update to
1580 call close() in global namespace.
1582 2018-07-26 Tom Tromey <tom@tromey.com>
1584 * dwarf-index-write.c (add_address_entry): Don't add objfile
1586 * dbxread.c (find_stab_function): Rename from
1587 find_stab_function_addr. Return a bound_minimal_symbol.
1588 (read_dbx_symtab): Use raw_text_low, raw_text_high.
1589 Don't add objfile offsets.
1590 (end_psymtab): Use raw_text_low, raw_text_high,
1591 MSYMBOL_VALUE_RAW_ADDRESS.
1592 (read_ofile_symtab): Update.
1593 (process_one_symbol): Update.
1594 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
1596 (dw2_relocate): Remove.
1597 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
1599 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
1601 (process_psymtab_comp_unit_reader, add_partial_symbol)
1602 (add_partial_subprogram, dwarf2_ranges_read): Update.
1603 (load_partial_dies): Update.
1604 (add_address_entry): Don't add objfile offsets.
1605 (dwarf2_build_include_psymtabs): Update.
1606 (create_addrmap_from_aranges): Don't add objfile offsets.
1607 (dw2_find_pc_sect_compunit_symtab): Update.
1608 * mdebugread.c (parse_symbol): Don't add objfile offsets.
1609 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
1611 (parse_partial_symbols): Don't add objfile offsets. Use
1612 raw_text_low, raw_text_high. Update.
1613 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
1614 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
1615 or call 'relocate' quick function. Clear psymbol_map.
1616 * psympriv.h (struct partial_symbol) <address>: Add section
1618 <set_unrelocated_address>: Rename from set_address.
1619 <raw_text_low, raw_text_high>: New methods.
1620 <text_low, text_high>: Add objfile parameter.
1621 (add_psymbol_to_bcache): Add 'section' parameter. Call
1622 set_unrelocated_address.
1623 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
1624 (find_pc_psymbol): Update.
1625 (fixup_psymbol_section, relocate_psymtabs): Remove.
1626 (dump_psymtab, psym_functions): Update.
1627 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
1629 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
1630 (start_psymtab_common): Update.
1631 * symfile-debug.c (debug_qf_relocate): Remove.
1632 (debug_sym_quick_functions): Update.
1633 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
1634 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
1637 2018-07-26 Tom Tromey <tromey@redhat.com>
1639 * dbxread.c (end_psymtab): Use text_high_valid and
1641 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
1642 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
1643 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
1645 <text_low_valid, text_high_valid>: New fields.
1646 <set_text_low, set_text_high>: Update.
1647 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
1649 2018-07-26 Tom Tromey <tom@tromey.com>
1651 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
1653 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
1654 textlow and texthigh fields.
1655 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
1657 * mdebugread.c (parse_lines, parse_partial_symbols)
1658 (psymtab_to_symtab_1): Update.
1659 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
1660 Rename fields. Update comment. Now private.
1661 <text_low, text_high, set_text_low, set_text_high>: New methods.
1662 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
1663 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
1664 (start_psymtab_common, maintenance_info_psymtabs)
1665 (maintenance_check_psymtabs): Update.
1666 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
1668 (scan_xcoff_symtab): Update.
1670 2018-07-26 Tom Tromey <tromey@redhat.com>
1672 * psympriv.h (struct partial_symbol) <unrelocated_address,
1673 address, set_address>: New methods.
1674 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
1675 (fixup_psymbol_section, relocate_psymtabs): Update.
1676 (print_partial_symbols): Add 'objfile' parameter. Update.
1677 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
1680 2018-07-26 Tom Tromey <tom@tromey.com>
1682 * dwarf-index-write.c (write_psymbols, debug_names::insert)
1683 (debug_names::write_psymbols): Update.
1684 * psympriv.h (struct partial_symbol): Derive from
1685 general_symbol_info.
1686 <obj_section>: New method.
1687 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
1688 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
1689 (find_pc_sect_psymbol, fixup_psymbol_section)
1690 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
1691 (print_partial_symbols, recursively_search_psymtabs)
1692 (compare_psymbols, psymbol_hash, psymbol_compare)
1693 (add_psymbol_to_bcache, maintenance_check_psymtabs)
1694 (psymbol_name_matches, psym_fill_psymbol_map): Update.
1696 2018-07-26 Tom Tromey <tromey@redhat.com>
1698 * dbxread.c (end_psymtab): Remove dead code.
1700 2018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
1702 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
1703 DWARF unwinders are disabled.
1704 * dwarf2-frame.c: Add dwarf2read.h include.
1705 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
1707 (dwarf2_frame_unwinders_enabled_p): Define.
1708 (show_dwarf_unwinders_enabled_p): New function.
1709 (_initialize_dwarf2_frame): Register switch to control DWARF
1711 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
1712 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
1713 (show_dwarf_cmdlist): Remove static keyword.
1714 * dwarf2read.h (set_dwarf_cmdlist): Declare.
1715 (show_dwarf_cmdlist): Declare.
1716 * NEWS: Document new feature.
1718 2018-07-26 Tom de Vries <tdevries@suse.de>
1720 PR breakpoints/23366
1721 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
1723 2018-07-26 Tom de Vries <tdevries@suse.de>
1725 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
1726 DW_AT_count can't be translated to a dynamic prop.
1728 2018-07-25 Tom de Vries <tdevries@suse.de>
1730 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
1733 2018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
1735 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
1737 2018-07-25 Joel Brobecker <brobecker@adacore.com>
1739 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
1741 2018-07-24 Keith Seitz <keiths@redhat.comt
1744 * dwarf2read.c (dw2_add_symbol_to_list): New function.
1745 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
1746 instead of add_symbol_to_list.
1747 (read_file_scope): Call prepare_one_comp_unit before reading
1750 2018-07-24 Simon Marchi <simon.marchi@ericsson.com>
1752 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
1754 2018-07-24 Tom Tromey <tom@tromey.com>
1756 * utils.c (malloc, realloc, free): Don't declare.
1757 * configure, config.in: Rebuild.
1758 * configure.ac: Don't check for declarations of free, malloc, or
1761 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1763 * aarch64-linux-nat.c
1764 (aarch64_linux_nat_target::stopped_data_address): Remove unused
1766 * arm-linux-nat.c (fetch_regs): Likewise.
1767 (store_regs): Likewise.
1768 (fetch_vfp_regs): Likewise.
1769 (store_vfp_regs): Likewise.
1770 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
1771 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
1772 (arm_linux_nat_target::insert_watchpoint): Likewise.
1773 (arm_linux_nat_target::remove_watchpoint): Likewise.
1774 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
1776 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
1778 * ppc-linux-nat.c (fetch_register): Likewise.
1779 (fetch_all_gp_regs): Likewise.
1780 (fetch_ppc_registers): Likewise.
1781 (store_all_gp_regs): Likewise.
1782 (store_ppc_registers): Likewise.
1783 (hwdebug_insert_point): Likewise.
1784 (can_use_watchpoint_cond_accel): Likewise.
1785 * remote-sim.c (gdb_os_write_stdout): Likewise.
1787 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1788 Tom Tromey <tom@tromey.com>
1790 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
1792 * configure: Rebuild.
1794 2018-07-22 Tom Tromey <tom@tromey.com>
1796 * regformats/regdat.sh: Define xmltarget_${name} inside
1797 #ifndef IN_PROCESS_AGENT.
1799 2018-07-22 Tom Tromey <tom@tromey.com>
1801 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
1803 2018-07-22 Tom Tromey <tom@tromey.com>
1805 * symfile.c (reread_symbols): Notify iter, not objfile.
1807 2018-07-22 Tom Tromey <tom@tromey.com>
1809 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
1811 (ravenscar_thread_target::prepare_to_store): Likewise.
1813 2018-07-22 Tom Tromey <tom@tromey.com>
1815 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
1816 unused variable. Call value_fetch_lazy when needed.
1817 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
1818 Remove unused variable. Call value_fetch_lazy when needed.
1820 2018-07-22 Tom Tromey <tom@tromey.com>
1822 * m32c-tdep.c (mark_dma): Return void.
1823 (make_regs): Remove unused declarations.
1825 2018-07-22 Tom Tromey <tom@tromey.com>
1827 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
1828 cmdscm_get_valid_command_smob_arg_unsafe for effect.
1829 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
1830 bkscm_get_valid_block_smob_arg_unsafe for effect.
1832 2018-07-22 Tom Tromey <tom@tromey.com>
1834 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
1837 2018-07-22 Tom Tromey <tom@tromey.com>
1839 * windows-nat.c (saved_context): Conditionally define.
1840 * remote.c (remote_target::remote_btrace_maybe_reopen):
1841 Conditionally declare "warned".
1842 * inflow.c (sigquit_ours): Conditionally define.
1843 (new_tty): Move "tty" declaration inside #if.
1844 * guile/guile.c (guile_datadir): Conditionally define.
1845 * charset.c (set_be_le_names): Move some declarations inside #if.
1846 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
1848 (parse_xml_btrace_conf): Likewise.
1850 2018-07-22 Tom Tromey <tom@tromey.com>
1852 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
1854 2018-07-22 Tom Tromey <tom@tromey.com>
1856 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
1857 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
1858 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
1859 * buildsym-legacy.c (get_macro_table): Remove unused variable.
1860 * stack.c (frame_apply_level_command): Remove unused variable.
1861 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
1862 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
1863 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
1865 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
1866 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
1867 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
1869 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
1870 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
1872 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
1873 Remove unused variable.
1874 * cli/cli-script.c (recurse_read_control_structure): Remove unused
1876 * common/tdesc.c (print_xml_feature::visit): Remove unused
1878 * compile/compile-object-load.c (store_regs): Remove unused
1880 * complaints.c (clear_complaints): Remove unused variable.
1881 * corelow.c (core_target_open): Remove unused variable.
1882 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
1884 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
1886 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
1888 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
1890 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
1892 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
1894 * ia64-tdep.c (examine_prologue): Remove unused variable.
1895 * infcall.c (run_inferior_call): Remove unused variable.
1896 * inferior.c (exit_inferior): Remove unused variable.
1897 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
1898 * linespec.c (decode_line_2): Remove unused variable.
1899 * linux-nat.c (super_close): Remove.
1900 * linux-tdep.c (linux_info_proc): Remove unused variable.
1901 * mi/mi-main.c (mi_execute_command): Remove unused variable.
1902 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
1903 Remove unused variable.
1904 * parse.c (find_minsym_type_and_address): Remove unused variable.
1905 * printcmd.c (info_symbol_command, printf_floating): Remove unused
1907 * python/py-breakpoint.c (bppy_set_commands): Remove unused
1909 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
1911 * record-btrace.c (record_btrace_target::store_registers): Remove
1913 (cmd_show_record_btrace_cpu): Remove unused variable.
1914 * riscv-tdep.c (riscv_register_reggroup_p)
1915 (riscv_push_dummy_call, riscv_return_value): Remove unused
1917 * rust-exp.y (literal): Remove unused variable.
1918 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
1920 <STRUCTOP_ANONYMOUS>: Likewise.
1921 * s390-linux-tdep.c (s390_linux_init_abi_31)
1922 (s390_linux_init_abi_64): Remove unused variable.
1923 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
1924 (file_select_thread, net_windows_open, _initialize_ser_windows):
1925 Remove unused variables.
1926 * symtab.c (find_pc_sect_line): Remove unused variable.
1927 * target-memory.c (compute_garbled_blocks): Remove unused
1929 (target_write_memory_blocks): Remove unused variable.
1930 * target.c (target_stack::unpush): Remove unused variables.
1931 * tracepoint.c (start_tracing, all_tracepoint_actions)
1932 (merge_uploaded_trace_state_variables)
1933 (print_one_static_tracepoint_marker): Remove unused variable.
1934 * unittests/basic_string_view/element_access/char/1.cc (test01):
1935 Remove unused variable.
1936 * windows-nat.c (windows_continue, windows_add_all_dlls)
1937 (do_initial_windows_stuff, windows_nat_target::create_inferior):
1938 Remove unused variables.
1940 2018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
1942 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
1943 attr_profile in HAVE_ELF.
1944 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
1947 2018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
1949 * frame.c (frame_register_unwind): Change parameter name.
1950 (frame_unwind_register): Likewise.
1951 (frame_unwind_register_value): Likewise.
1952 (frame_unwind_register_signed): Likewise.
1953 (frame_unwind_register_unsigned): Likewise.
1954 * frame.h (frame_register_unwind): Likewise.
1955 (frame_unwind_register): Likewise.
1956 (frame_unwind_register_value): Likewise.
1957 (frame_unwind_register_signed): Likewise.
1958 (frame_unwind_register_unsigned): Likewise.
1959 (frame_unwind_arch): Likewise.
1961 2018-07-20 Maciej W. Rozycki <macro@mips.com>
1963 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
1966 2018-07-20 Maciej W. Rozycki <macro@mips.com>
1968 * mips-linux-nat.c (mips_linux_nat_target::read_description):
1969 Call `get_ptrace_pid' rather than extracting the ptrace PID by
1972 2018-07-20 Keith Seitz <keiths@redhat.com>
1974 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
1975 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
1976 m_compunit_symtab, m_language>: Add "m_" prefix.
1978 * buildsym.c: Update all uses.
1980 2018-07-20 Tom Tromey <tom@tromey.com>
1982 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
1983 * buildsym.h (record_line_ftype): Remove typedef.
1985 2018-07-20 Tom Tromey <tom@tromey.com>
1987 * buildsym-legacy.h (augment_type_symtab): Don't declare.
1988 (end_expandable_symtab): Likewise.
1989 (end_symtab_get_static_block): Likewise.
1990 (end_symtab_from_static_block): Likewise.
1991 * buildsym-legacy.c (augment_type_symtab): Remove.
1992 (end_expandable_symtab): Remove.
1993 (end_symtab_get_static_block): Remove.
1994 (end_symtab_from_static_block): Remove.
1996 2018-07-20 Tom Tromey <tom@tromey.com>
1998 * dwarf2read.c: Include buildsym.h.
1999 (struct dwarf2_cu) <builder>: New method.
2000 (fixup_go_packaging): Update.
2001 (process_full_comp_unit, process_full_type_unit): Update. Don't
2002 use scoped_free_pendings.
2003 (using_directives): Add "cu" parameter, remove "language".
2004 (read_import_statement, setup_type_unit_groups, )
2005 (read_func_scope, read_lexical_block_scope)
2006 (dwarf2_record_block_ranges, read_namespace): Update.
2007 (lnp_state_machine::lnp_state_machine): Add cu parameter.
2008 (lnp_state_machine::handle_end_sequence): Update.
2009 (class lnp_state_machine) <m_cu>: New member.
2010 <m_record_line_callback>: Remove.
2011 <m_currently_recording_lines>: New member.
2012 (lnp_state_machine::handle_set_file): Update.
2013 (noop_record_line): Remove.
2014 (dwarf_record_line_p): Add cu parameter.
2015 (dwarf_record_line_1, dwarf_finish_line): Likewise.
2016 (lnp_state_machine::record_line)
2017 (lnp_state_machine::lnp_state_machine)
2018 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
2019 (dwarf_decode_lines): Update.
2020 (dwarf2_start_subfile): Add cu parameter.
2021 (dwarf2_start_symtab, new_symbol): Update.
2022 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
2023 Remove dwarf2_per_objfile parameter.
2024 (dwarf_decode_macros): Update.
2026 2018-07-20 Tom Tromey <tom@tromey.com>
2028 * stabsread.c (define_symbol): Update.
2029 * buildsym-legacy.h (get_buildsym_compunit): Declare.
2030 * dwarf2read.c (new_symbol): Update.
2031 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
2032 * cp-namespace.c: Include buildsym.h.
2033 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
2034 * buildsym-legacy.c (get_buildsym_compunit): New function.
2036 2018-07-20 Tom Tromey <tom@tromey.com>
2038 * xcoffread.c: Include buildsym-legacy.h.
2039 * windows-nat.c: Include buildsym-legacy.h.
2040 * stabsread.c: Include buildsym-legacy.h.
2041 * mdebugread.c: Include buildsym-legacy.h.
2042 * buildsym-legacy.h: New file.
2043 * buildsym-legacy.c: New file, from buildsym.c.
2044 * go32-nat.c: Include buildsym-legacy.h.
2045 * dwarf2read.c: Include buildsym-legacy.h.
2046 * dbxread.c: Include buildsym-legacy.h.
2047 * cp-namespace.c: Include buildsym-legacy.h.
2048 * coffread.c: Include buildsym-legacy.h.
2049 * buildsym.h: Move some contents to buildsym-legacy.h.
2050 * buildsym.c: Include buildsym-legacy.h. Move many functions to
2052 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
2054 2018-07-20 Tom Tromey <tom@tromey.com>
2056 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
2057 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
2058 (buildsym_compunit::buildsym_compunit)
2059 (buildsym_compunit::~buildsym_compunit)
2060 (buildsym_compunit::get_macro_table): Define.
2062 2018-07-20 Tom Tromey <tom@tromey.com>
2064 * buildsym.c (reset_symtab_globals): Remove.
2065 (buildsym_compunit::end_symtab_from_static_block): Update.
2066 (buildsym_compunit::augment_type_symtab): Update.
2067 (end_symtab_from_static_block): Call free_buildsym_compunit.
2068 (augment_type_symtab, end_symtab, end_expandable_symtab):
2071 2018-07-20 Tom Tromey <tom@tromey.com>
2073 * arch-utils.c: Do not include buildsym.h.
2074 * mipsread.c: Do not include buildsym.h.
2075 * machoread.c: Do not include buildsym.h.
2076 * elfread.c: Do not include buildsym.h.
2078 2018-07-20 Tom Tromey <tom@tromey.com>
2080 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
2082 (buildsym_compunit): Add new constructor.
2083 (struct buildsym_compunit) <get_last_source_file, finish_block,
2084 record_block_range, start_subfile, patch_subfile_names,
2085 push_subfile, pop_subfile, record_line, get_compunit_symtab,
2086 set_last_source_start_addr, get_last_source_start_addr,
2087 get_local_using_directives, set_local_using_directives,
2088 get_global_using_directives, outermost_context_p,
2089 get_current_context_stack, get_context_stack_depth,
2090 get_current_subfile, get_local_symbols, get_file_symbols,
2091 get_global_symbols, record_debugformat, record_producer,
2092 push_context, pop_context, end_symtab_get_static_block,
2093 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
2095 <record_pending_block, finish_block_internal, make_blockvector,
2096 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
2100 2018-05-22 Tom Tromey <tom@tromey.com>
2102 * buildsym.c (record_pending_block): Move earlier. Remove objfile
2104 (finish_block_internal): Update.
2106 2018-07-20 Tom Tromey <tom@tromey.com>
2108 * buildsym.c (record_pending_block): Move earlier. Remove objfile
2110 (finish_block_internal): Update.
2112 2018-07-20 Tom Tromey <tom@tromey.com>
2114 * buildsym.h (EXTERN): Don't define or undef.
2115 * buildsym.c (EXTERN): Don't define.
2117 2018-07-20 Tom Tromey <tom@tromey.com>
2119 * buildsym.c: Remove TODO comment.
2121 2018-07-20 Tom Tromey <tom@tromey.com>
2123 * coffread.c (coff_symtab_read): Update.
2124 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
2125 (xcoff_new_init): Update.
2126 * mipsread.c (mipscoff_new_init): Update.
2127 * mdebugread.c (mdebug_build_psymtabs): Update.
2128 * elfread.c (elf_new_init): Update.
2129 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
2131 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
2132 (coffstab_build_psymtabs, elfstab_build_psymtabs)
2133 (stabsect_build_psymtabs): Update.
2134 * buildsym.h (buildsym_init): Don't declare.
2135 * buildsym.c: Update comment.
2136 (prepare_for_building): Remove.
2137 (start_symtab, restart_symtab): Update.
2138 (reset_symtab_globals): Update comment.
2139 (buildsym_init): Remove.
2141 2018-07-20 Tom Tromey <tom@tromey.com>
2143 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
2144 * stabsread.c (patch_block_stabs, define_symbol, read_type)
2145 (read_enum_type, common_block_start, common_block_end)
2146 (cleanup_undefined_types_1, finish_global_stabs): Update.
2147 * mdebugread.c (psymtab_to_symtab_1): Update.
2148 * dwarf2read.c (fixup_go_packaging, read_func_scope)
2149 (read_lexical_block_scope, new_symbol): Update.
2150 * dbxread.c (process_one_symbol): Update.
2151 * coffread.c (coff_symtab_read, process_coff_symbol)
2152 (coff_read_enum_type): Update.
2153 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
2155 (get_local_symbols, get_file_symbols, get_global_symbols): New
2157 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
2159 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
2160 (~scoped_free_pendings): Update.
2161 (finish_block, prepare_for_building, reset_symtab_globals)
2162 (end_symtab_get_static_block, end_symtab_with_blockvector)
2163 (augment_type_symtab, push_context): Update.
2164 (get_local_symbols, get_file_symbols, get_global_symbols): New
2166 (buildsym_init): Update.
2168 2018-07-20 Tom Tromey <tom@tromey.com>
2170 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
2171 (process_full_type_unit): Likewise.
2172 (dwarf2_start_symtab): Set list_in_scope.
2174 2018-07-20 Tom Tromey <tom@tromey.com>
2176 * dwarf2read.c (process_psymtab_comp_unit_reader)
2177 (build_type_psymtabs_reader): Do not set list_in_scope.
2179 2018-07-20 Tom Tromey <tom@tromey.com>
2181 * buildsym.c (free_pendings): Remove.
2182 (add_symbol_to_list, scoped_free_pendings)
2183 (finish_block_internal, buildsym_init): Update.
2185 2018-07-20 Tom Tromey <tom@tromey.com>
2187 * xcoffread.c (read_xcoff_symtab): Update.
2188 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
2190 * dbxread.c (process_one_symbol): Update.
2191 * coffread.c (coff_symtab_read): Update.
2192 * buildsym.h (finish_block): Update.
2193 * buildsym.c (finish_block): Remove "listhead" argument.
2194 (end_symtab_get_static_block): Update.
2196 2018-07-20 Tom Tromey <tom@tromey.com>
2198 * buildsym.h (class scoped_free_pendings): Remove constructor.
2199 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
2201 <m_pending_block_obstack, m_pending_blocks>: New members.
2202 (pending_block_obstack, pending_blocks): Remove.
2203 (scoped_free_pendings::scoped_free_pendings): Default.
2204 (~scoped_free_pendings): Update.
2205 (free_pending_blocks): Remove.
2206 (finish_block_internal, record_pending_block, make_blockvector)
2207 (end_symtab_get_static_block, augment_type_symtab, push_context)
2208 (buildsym_init): Update.
2210 2018-07-20 Tom Tromey <tom@tromey.com>
2212 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
2213 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
2215 (pending_addrmap, pending_addrmap_obstack)
2216 (pending_addrmap_interesting): Remove.
2217 (scoped_free_pendings, record_block_range, make_blockvector)
2218 (prepare_for_building, reset_symtab_globals, buildsym_init):
2221 2018-07-20 Tom Tromey <tom@tromey.com>
2223 * xcoffread.c (process_linenos): Update.
2224 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
2225 * mdebugread.c (psymtab_to_symtab_1): Update.
2226 * dwarf2read.c (setup_type_unit_groups)
2227 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
2228 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
2229 * dbxread.c (process_one_symbol): Update.
2230 * coffread.c (coff_symtab_read, enter_linenos)
2231 (process_coff_symbol): Update.
2232 * buildsym.h (current_subfile): Don't declare.
2233 (get_current_subfile): Declare.
2234 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
2236 (start_subfile, free_buildsym_compunit, push_subfile)
2237 (prepare_for_building, start_symtab): Update.
2238 (get_current_subfile): New function.
2240 2018-07-20 Tom Tromey <tom@tromey.com>
2242 * coffread.c (coff_symtab_read): Update.
2243 * xcoffread.c (read_xcoff_symtab): Update.
2244 * dwarf2read.c (new_symbol): Update.
2245 (read_func_scope, read_lexical_block_scope): Update.
2246 * dbxread.c (process_one_symbol): Update.
2247 * buildsym.h (context_stack, context_stack_depth): Don't declare.
2248 (outermost_context_p): Remove macro.
2249 (outermost_context_p, get_current_context_stack)
2250 (get_context_stack_depth): Declare.
2251 (pop_context): Return struct context_stack.
2252 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
2254 (context_stack_size): Remove.
2255 (INITIAL_CONTEXT_STACK_SIZE): Remove.
2256 (prepare_for_building, end_symtab_get_static_block)
2257 (augment_type_symtab, push_context): Update.
2258 (pop_context): Return struct context_stack.
2259 (outermost_context_p, get_current_context_stack)
2260 (get_context_stack_depth): New functions.
2261 (buildsym_init): Update.
2263 2018-07-20 Tom Tromey <tom@tromey.com>
2265 * rust-exp.y: Now a pure parser. Update all rules.
2266 (%union): Move earlier.
2267 (current_parser, work_obstack): Remove globals.
2268 (rust_parser, ~rust_parser): Update.
2269 (class rust_parser) <copy_name, concat3, crate_name, super_name,
2270 lex_character, lex_number, lex_string, lex_identifier,
2271 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
2272 convert_name, convert_params_to_expression,
2273 convert_ast_to_expression, ast_basic_type, ast_operation,
2274 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
2275 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
2276 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
2277 ast_array_type, ast_slice_type, ast_reference_type,
2278 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
2279 (rust_parse): Update.
2280 (rustyyerror, rustyylex): Add parser parameter.
2281 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
2282 (rust_lex_stringish_test, rust_lex_test_sequence)
2283 (rust_lex_test_trailing_dot, rust_lex_test_completion)
2284 (rust_lex_test_push_back, rust_lex_tests): Update.
2286 2018-07-19 Pedro Alves <palves@redhat.com>
2288 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
2289 gdb::unique_xmalloc_ptr.
2290 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
2291 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
2292 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
2293 copy-initialization.
2294 * guile/scm-pretty-print.c (ppscm_print_children): Use
2295 gdb::unique_xmalloc_ptr instead of cleanups.
2296 (gdbscm_apply_val_pretty_printer): Remove cleanups.
2297 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
2298 gdb::unique_xmalloc_ptr.
2299 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
2300 Adjust to use gdb::unique_xmalloc_ptr.
2301 * guile/scm-utils.c (extract_arg): Adjust.
2302 * guile/scm-value.c (gdbscm_value_field): Adjust to use
2303 gdb::unique_xmalloc_ptr instead of a cleanup.
2305 2018-07-19 Tom Tromey <tom@tromey.com>
2307 * utils.c (do_value_free_to_mark)
2308 (make_cleanup_value_free_to_mark): Remove.
2309 * utils.h (make_cleanup_value_free_to_mark): Remove.
2311 2018-07-19 Pedro Alves <palves@redhat.com>
2313 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
2314 forwarding reference.
2316 2018-07-18 Pedro Alves <palves@redhat.com>
2318 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
2319 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
2322 2018-07-18 Pedro Alves <palves@redhat.com>
2324 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
2326 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
2328 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
2329 directly instead of a cleanup.
2330 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
2331 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
2332 (vlscm_binop_gdbthrow): New, factored out from ...
2333 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
2334 (vlscm_rich_compare): Use gdbscm_wrap.
2335 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
2336 instead of a cleanup.
2337 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
2339 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
2340 Use xfree directly instead of a cleanup.
2341 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
2342 Adjust to use gdbscm_wrap and scoped_value_mark.
2343 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
2344 (gdbscm_value_address, gdbscm_value_dereference)
2345 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
2347 (gdbscm_value_dynamic_type): Use scoped_value_mark.
2348 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
2350 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
2351 gdbscm_wrap and scoped_value_mark.
2352 (gdbscm_value_to_string): Use xfree directly instead of a
2353 cleanup. Move 'buffer' unique_ptr to TRY scope.
2354 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
2355 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
2357 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
2358 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
2360 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
2363 2018-07-18 Tom de Vries <tdevries@suse.de>
2365 * findvar.c (default_read_var_value): Also resolve dynamic type for
2366 LOC_OPTIMIZED_OUT vars.
2368 2018-07-18 Maciej W. Rozycki <macro@mips.com>
2370 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
2373 2018-07-17 Tom Tromey <tom@tromey.com>
2375 * guile/scm-param.c (pascm_set_func, pascm_show_func)
2376 (compute_enum_list, pascm_set_param_value_x)
2377 (gdbscm_parameter_value): Update.
2378 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
2379 (gdbscm_scm_to_host_string): Update.
2380 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
2382 * guile/scm-cmd.c (cmdscm_add_completion): Update.
2383 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
2384 * guile/scm-string.c (gdbscm_scm_to_string): Return
2386 (gdbscm_scm_to_host_string): Likewise.
2388 2018-07-17 Tom Tromey <tom@tromey.com>
2390 * guile/guile.c (gdbscm_eval_from_control_command): Update.
2391 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
2392 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
2393 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
2396 2018-07-17 Tom Tromey <tom@tromey.com>
2398 * guile/scm-param.c (pascm_signal_setshow_error): Update.
2399 * guile/guile-internal.h (gdbscm_exception_message_to_string):
2401 * guile/scm-cmd.c (cmdscm_function): Update.
2402 * guile/scm-pretty-print.c
2403 (ppscm_print_exception_unless_memory_error): Update.
2404 * guile/scm-exception.c (gdbscm_exception_message_to_string):
2405 Return unique_xmalloc_ptr.
2407 2018-07-17 Tom Tromey <tom@tromey.com>
2409 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
2412 2018-07-17 Jim Wilson <jimw@sifive.com>
2414 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
2415 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
2416 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
2417 unecessary braces after EF_RISCV_RVC test. Delete call to
2418 set_gdbarch_decr_pc_after_break.
2420 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
2421 RISCV_LAST_FP_REGNUM + 1.
2422 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
2424 2018-07-17 Tom Tromey <tom@tromey.com>
2426 * configure.ac: Remove --disable-gdbcli.
2427 * configure: Rebuild.
2428 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
2429 (SUBDIR_CLI_CFLAGS): Remove.
2430 (SFILES): Use SUBDIR_CLI_SRCS.
2431 (COMMON_OBS): Use SUBDIR_CLI_OBS.
2433 2018-07-17 Tom Tromey <tom@tromey.com>
2436 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
2438 2018-07-16 Jim Wilson <jimw@sifive.com>
2440 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
2442 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
2444 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
2446 (libunwind_frame_sniffer): Likewise.
2447 (libunwind_frame_prev_register): Likewise.
2448 (libunwind_sigtramp_frame_sniffer): Likewise.
2449 * ia64-tdep.c (ia64_access_reg): Likewise.
2450 (ia64_access_rse_reg): Likewise.
2451 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
2452 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
2454 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
2456 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
2458 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
2460 * remote-sim.c (gdbsim_target::close,
2461 gdbsim_target::mourn_inferior): Remove unused variables.
2463 2018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
2465 * ia64-tdep.c (ktab_buf): New global.
2466 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
2467 (get_kernel_table): Adjust.
2469 2018-07-16 Tom Tromey <tom@tromey.com>
2471 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
2472 * dwarf2read.c (using_directives, new_symbol): Use
2473 outermost_context_p.
2474 * dbxread.c (process_one_symbol): Use outermost_context_p.
2475 * coffread.c (coff_symtab_read): Use outermost_context_p.
2477 2018-07-16 Tom Tromey <tom@tromey.com>
2479 * dwarf2read.c (using_directives, read_func_scope)
2480 (read_lexical_block_scope): Update.
2481 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
2482 * buildsym.h (local_using_directives, global_using_directives):
2484 (get_local_using_directives, set_local_using_directives)
2485 (get_global_using_directives): Declare.
2486 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
2487 m_global_using_directives>: New members.
2488 (finish_block_internal, prepare_for_building)
2489 (reset_symtab_globals, end_symtab_get_static_block)
2490 (push_context): Update.
2491 (get_local_using_directives, set_local_using_directives)
2492 (get_global_using_directives): New functions.
2493 (buildsym_init): Update.
2495 2018-07-16 Tom Tromey <tom@tromey.com>
2497 * xcoffread.c (xcoff_initial_scan): Don't call
2498 free_pending_blocks.
2499 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
2500 * buildsym.h (class scoped_free_pendings): Add constructor.
2501 (free_pending_blocks): Don't declare.
2502 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
2503 (free_pending_blocks): Now static.
2505 2018-07-16 Tom Tromey <tom@tromey.com>
2507 * buildsym.h (push_subfile, pop_subfile): Update declarations.
2508 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
2510 (struct subfile_stack): Remove.
2511 (subfile_stack): Remove.
2512 (push_subfile, pop_subfile, buildsym_init): Update.
2514 2018-07-16 Tom Tromey <tom@tromey.com>
2516 * buildsym.c (push_subfile): Use gdb_assert.
2517 (pop_subfile): Use gdb_assert.
2519 2018-07-16 Tom Tromey <tom@tromey.com>
2521 * buildsym.h (merge_symbol_lists): Remove.
2522 * buildsym.c (merge_symbol_lists): Remove.
2524 2018-07-16 Tom Tromey <tom@tromey.com>
2526 * stabsread.c (scan_file_globals): Update comment.
2527 * stabsread.h (scan_file_globals): Move from buildsym.h.
2528 * buildsym.h (scan_file_globals): Move to stabsread.h.
2530 2018-07-16 Tom Tromey <tom@tromey.com>
2532 * xcoffread.c (xcoff_new_init): Update.
2533 * mipsread.c (mipscoff_new_init): Update.
2534 * mdebugread.c (mdebug_build_psymtabs): Update.
2535 * elfread.c (elf_new_init): Update.
2536 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
2537 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
2538 * buildsym.h (buildsym_new_init): Don't declare.
2539 * buildsym.c (buildsym_new_init): Remove.
2541 2018-07-16 Tom Tromey <tom@tromey.com>
2543 * stabsread.h (within_function): Move from buildsym.h.
2544 * stabsread.c (start_stabs): Clear within_function.
2545 * coffread.c (coff_start_symtab): Clear within_function.
2546 * buildsym.h (within_function): Move to stabsread.h.
2547 * buildsym.c (prepare_for_building): Update.
2549 2018-07-16 Tom Tromey <tom@tromey.com>
2551 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
2552 * dwarf2read.c (dwarf2_start_symtab): Don't set
2553 processing_gcc_compilation.
2554 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
2556 2018-07-16 Tom Tromey <tom@tromey.com>
2558 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
2559 (next_symbol_text_func): Move from buildsym.h.
2560 * stabsread.c (hashname): Move from buildsym.c.
2561 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
2562 (next_symbol_text_func, hashname): Move to stabsread.h.
2563 * buildsym.c: Don't include bcache.h
2564 (hashname): Move to stasbread.c.
2566 2018-07-16 Tom Tromey <tom@tromey.com>
2568 * buildsym.h (context_stack_size): Don't declare.
2569 * buildsym.c (context_stack_size): New global.
2571 2018-07-16 Tom Tromey <tom@tromey.com>
2573 * dbxread.c (processing_acc_compilation): New global.
2574 * buildsym.h (processing_acc_compilation): Don't declare.
2576 2018-07-16 Tom Tromey <tom@tromey.com>
2578 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
2579 * dbxread.c (read_ofile_symtab): Update.
2580 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
2581 * buildsym.h (last_source_start_addr): Remove.
2582 (set_last_source_start_addr, get_last_source_start_addr):
2584 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
2586 (struct buildsym_compunit) <m_last_source_start_addr>: New
2588 (prepare_for_building): Remove start_addr parameter.
2589 (start_symtab, restart_symtab, end_symtab_get_static_block)
2590 (end_symtab_with_blockvector): Update.
2591 (set_last_source_start_addr, get_last_source_start_addr): New
2594 2018-07-16 Tom Tromey <tom@tromey.com>
2596 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
2598 (have_line_numbers): Remove.
2599 (record_line, prepare_for_building, end_symtab_get_static_block)
2600 (augment_type_symtab): Update.
2602 2018-07-16 Tom Tromey <tom@tromey.com>
2604 * buildsym.c (~buildsym_compunit): Free the macro table.
2605 (struct buildsym_compunit) <get_macro_table, release_macros>: New
2607 <m_pending_macros>: New member.
2608 (pending_macros): Remove.
2609 (~scoped_free_pendings, get_macro_table, prepare_for_building)
2610 (reset_symtab_globals, end_symtab_get_static_block)
2611 (end_symtab_with_blockvector, augment_type_symtab)
2612 (buildsym_init): Update.
2614 2018-07-16 Tom Tromey <tom@tromey.com>
2616 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
2618 (buildsym_compunit::set_last_source_file): New method.
2619 <m_last_source_file>: New member.
2620 (prepare_for_building): Remove "name" parameter.
2621 (start_symtab, restart_symtab, reset_symtab_globals): Update.
2622 (last_source_file): Remove.
2623 (set_last_source_file, get_last_source_file): Update.
2625 2018-07-16 Tom Tromey <tom@tromey.com>
2627 * buildsym.c (prepare_for_building): Add assert.
2629 2018-07-16 Tom Tromey <tom@tromey.com>
2631 * buildsym.c (~buildsym_compunit): Update.
2632 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
2633 (start_subfile, patch_subfile_names)
2634 (end_symtab_with_blockvector): Update.
2636 2018-07-16 Tom Tromey <tom@tromey.com>
2638 * buildsym.c (struct buildsym_compunit): Add constructor,
2639 destructor, initializers.
2640 (start_buildsym_compunit): Remove.
2641 (free_buildsym_compunit): Use "delete".
2642 (start_symtab, restart_symtab): Use "new".
2644 2018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
2646 * symfile.c (set_objfile_default_section_offset): Remove struct
2649 2018-07-14 Stafford Horne <shorne@gmail.com>
2651 * (Responsible Maintainers): Add myself as or1k maintainer.
2653 2018-07-13 Tom Tromey <tom@tromey.com>
2655 * symfile.c (set_objfile_default_section_offset): Use extra braces
2658 2018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
2660 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
2663 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2665 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2666 unittests/cli-utils-selftests.c
2667 * unittests/cli-utils-selftests.c: New file.
2669 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2671 * NEWS: Mention new commands. Mention change to 'thread apply'.
2673 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2675 * thread.c (thr_try_catch_cmd): New function.
2676 (thread_apply_all_command): Handle qcs flags.
2677 (thread_apply_command): Handle qcs flags.
2678 (taas_command): New function.
2679 (tfaas_command): New function.
2680 (_initialize_thread): Update to setup the new commands 'taas
2681 and 'tfaas'. Change doc string for 'thread apply'.
2683 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2685 * stack.c: (trailing_outermost_frame): New function, mostly
2686 extracted from backtrace_command_1.
2687 (leading_innermost_frame): New function.
2688 (backtrace_command_1): Update to call trailing_outermost_frame.
2689 (frame_apply_command_count): New function.
2690 (frame_apply_level_command): New function.
2691 (frame_apply_all_command): New function.
2692 (frame_apply_command): New function.
2693 (faas_command): New function.
2694 (frame_cmd_list): New variable.
2695 (_initialize_stack): Update to setup the new commands 'frame apply'
2698 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2700 * cli-utils.c (number_or_range_parser::get_number): Only handle
2701 numbers or convenience var as numbers.
2702 (parse_flags): New function.
2703 (parse_flags_qcs): New function.
2704 (number_or_range_parser::finished): Ensure parsing end is detected
2705 before end of string.
2706 * cli-utils.h (parse_flags): New function.
2707 (parse_flags_qcs): New function.
2708 (number_or_range_parser): Remove m_finished bool.
2709 (number_or_range_parser::skip_range): Set m_in_range to false.
2711 2018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
2713 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
2716 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
2717 Jan Kratochvil <jan.kratochvil@redhat.com>
2718 Paul Fertser <fercerpav@gmail.com>
2719 Tsutomu Seki <sekiriki@gmail.com>
2720 Pedro Alves <palves@redhat.com>
2722 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2723 'unittests/parse-connection-spec-selftests.c'.
2724 (COMMON_SFILES): Add 'common/netstuff.c'.
2725 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
2726 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
2727 * common/netstuff.c: New file.
2728 * common/netstuff.h: New file.
2729 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
2730 (wait_for_connect): Update comment. New parameter
2731 'gdb::optional<int> sock' instead of 'struct serial *scb'.
2732 Use 'sock' directly instead of 'scb->fd'.
2733 (try_connect): New function, with code from 'net_open'.
2734 (net_open): Rewrite main loop to deal with multiple
2735 sockets/addresses. Handle IPv6-style hostnames; implement
2736 support for IPv6 connections.
2737 * unittests/parse-connection-spec-selftests.c: New file.
2739 2018-07-11 Pedro Alves <palves@redhat.com>
2742 * remote.c (remote_target::remote_detach_pid): Call
2743 set_current_process.
2745 2018-07-11 Pedro Alves <palves@redhat.com>
2747 * h8300-tdep.c (h8300_gdbarch_init): Remove
2748 set_gdbarch_ecoff_reg_to_regnum calls.
2750 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
2753 * c-typeprint.c (c_type_print_base_struct_union): Don't print
2754 offsets/sizes for static members of a class/struct.
2756 2018-07-11 Alan Hayward <alan.hayward@arm.com>
2758 * target-descriptions.c (tdesc_register_bitsize): Rename.
2759 * target-descriptions.h (tdesc_register_bitsize): Likewise.
2760 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
2761 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
2763 2018-07-10 Tom Tromey <tom@tromey.com>
2765 * breakpoint.c (moribund_locations): Now static and a
2767 (breakpoint_init_inferior, moribund_breakpoint_here_p)
2768 (build_bpstat_chain, update_global_location_list)
2769 (breakpoint_retire_moribund): Update.
2770 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
2773 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
2775 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
2776 (riscv_register_reggroup_p): Use new function, remove unneeded
2778 (riscv_push_dummy_call): Extend assert to compare against xlen or
2779 flen based on register type.
2781 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
2783 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
2785 2018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2787 * remote.c (show_hardware_watchpoint_limit): New function.
2788 (show_hardware_watchpoint_length_limit): New function.
2789 (show_hardware_breakpoint_limit): New function.
2790 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
2791 where appropriate, update help text.
2793 2018-07-09 Tom Tromey <tom@tromey.com>
2795 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
2796 (CLIBS): Don't mention NAT_CLIBS.
2798 2018-07-09 Tom Tromey <tom@tromey.com>
2800 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
2801 (LIBGDB_OBS, clean mostlyclean): Update.
2802 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
2804 2018-07-09 Tom Tromey <tom@tromey.com>
2806 * Makefile.in (%.c: %.y): Use ECHO_YACC.
2807 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
2808 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
2810 2018-07-09 Tom Tromey <tom@tromey.com>
2812 * Makefile.in (ALLDEPFILES): Remove exec.c.
2813 (COMMON_OBS): Remove exec.o.
2814 (COMMON_SFILES): Add exec.c.
2816 2018-07-09 Tom Tromey <tom@tromey.com>
2818 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
2820 2018-07-09 Tom Tromey <tom@tromey.com>
2822 * Makefile.in (clean mostlyclean): Remove stamp-version.
2823 (version.c): Depend on stamp-version.
2824 (stamp-version): New rule, from version.c rule.
2826 2018-07-09 Tom Tromey <tom@tromey.com>
2828 * Makefile.in (init.c): Depend on stamp-init.
2829 (stamp-init): New rule, from init.c rule.
2830 (clean mostlyclean): Remove stamp-init.
2832 2018-07-09 Tom Tromey <tom@tromey.com>
2834 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
2835 SUBDIR_GCC_COMPILE_SRCS.
2837 2018-07-09 Tom Tromey <tom@tromey.com>
2839 * Makefile.in (init.c): Remove some unused sed rules.
2841 2018-07-09 Tom Tromey <tom@tromey.com>
2843 * Makefile.in (TSOBS): Remove.
2844 (INIT_FILES): Update.
2845 (LIBGDB_OBS): Update.
2846 (COMMON_SFILES): Add inflow.c.
2847 (SFILES): Remove inflow.c.
2849 2018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2851 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
2853 2018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
2855 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
2856 get_saveloc_name, is_signal_frame_name, step_name,
2857 init_remote_name, create_addr_space_name,
2858 destroy_addr_space_name, search_unwind_table_name,
2859 find_dyn_list_name): Constify.
2861 2018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
2863 * darwin-nat.c (darwin_pthread_kill): New function.
2864 (darwin_resume_thread): Use darwin_pthread_kill.
2866 2018-07-05 Tom de Vries <tdevries@suse.de>
2868 * macroexp.c (macro_buffer) <operator=>: New member function.
2870 2018-07-04 Tom Tromey <tom@tromey.com>
2872 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
2874 2018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
2876 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
2877 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
2878 * maint.c: Likewise.
2881 2018-07-04 Joel Brobecker <brobecker@adacore.com>
2883 * NEWS: Create a new section for the next release branch.
2884 Rename the section of the current branch, now that it has
2887 2018-07-04 Joel Brobecker <brobecker@adacore.com>
2889 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
2890 * version.in: Bump version to 8.2.50.DATE-git.
2892 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
2893 Pedro Alves <palves@redhat.com>
2895 * linux-nat.c (linux_init_ptrace): Rename to ...
2896 (linux_init_ptrace_procfs): ... this. Call
2897 linux_proc_init_warnings.
2898 (linux_nat_target::post_attach)
2899 (linux_nat_target::post_startup_inferior): Adjust.
2900 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
2901 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
2903 2018-07-04 Tom de Vries <tdevries@suse.de>
2905 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
2907 (read_comp_unit_head): ... here.
2909 2018-07-03 Tom Tromey <tom@tromey.com>
2911 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
2912 (stop_tracing, tstatus_command)
2913 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
2914 (print_one_static_tracepoint_marker): Update.
2915 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
2917 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
2919 (all_tracepoints, static_tracepoints_here): Return std::vector.
2921 2018-07-03 Tom Tromey <tom@tromey.com>
2923 * common/ptid.c (ptid_equal): Remove.
2924 * common/ptid.h (ptid_equal): Don't declare.
2925 * ada-tasks.c: Update.
2926 * breakpoint.c: Update.
2927 * common/agent.c: Update.
2928 * corelow.c: Update.
2929 * darwin-nat-info.c: Update.
2930 * darwin-nat.c: Update.
2932 * dtrace-probe.c: Update.
2933 * dummy-frame.c: Update.
2934 * fbsd-nat.c: Update.
2936 * gdbthread.h: Update.
2937 * gnu-nat.c: Update.
2938 * go32-nat.c: Update.
2939 * inf-loop.c: Update.
2940 * inf-ptrace.c: Update.
2941 * infcall.c: Update.
2945 * linux-fork.c: Update.
2946 * linux-nat.c: Update.
2947 * linux-thread-db.c: Update.
2948 * mi/mi-cmd-var.c: Update.
2949 * mi/mi-interp.c: Update.
2950 * mi/mi-main.c: Update.
2951 * nto-procfs.c: Update.
2952 * ppc-linux-tdep.c: Update.
2954 * python/py-inferior.c: Update.
2955 * python/py-record-btrace.c: Update.
2956 * python/py-record.c: Update.
2957 * ravenscar-thread.c: Update.
2958 * regcache.c: Update.
2959 * remote-sim.c: Update.
2961 * sol-thread.c: Update.
2964 * tui/tui-stack.c: Update.
2966 * windows-nat.c: Update.
2967 * windows-tdep.c: Update.
2969 2018-07-03 Tom Tromey <tom@tromey.com>
2971 * common/ptid.c (ptid_match): Remove.
2972 * common/ptid.h (ptid_match): Don't declare.
2973 * fbsd-nat.c: Update.
2976 * linux-nat.c: Update.
2977 * record-btrace.c: Update.
2978 * regcache.c: Update.
2981 2018-07-03 Tom Tromey <tom@tromey.com>
2983 * common/ptid.c (ptid_tid_p): Remove.
2984 * common/ptid.h (ptid_tid_p): Don't declare.
2985 * sol-thread.c: Update.
2987 2018-07-03 Tom Tromey <tom@tromey.com>
2989 * common/ptid.c (ptid_lwp_p): Remove.
2990 * common/ptid.h (ptid_lwp_p): Don't declare.
2991 * fbsd-nat.c: Update.
2992 * linux-nat.c: Update.
2993 * nat/linux-procfs.c: Update.
2994 * nat/x86-linux-dregs.c: Update.
2995 * sol-thread.c: Update.
2997 2018-07-03 Tom Tromey <tom@tromey.com>
2999 * common/ptid.c (ptid_is_pid): Remove.
3000 * common/ptid.h (ptid_is_pid): Don't declare.
3002 * linux-nat.c: Update.
3003 * mi/mi-interp.c: Update.
3007 2018-07-03 Tom Tromey <tom@tromey.com>
3009 * common/ptid.c (ptid_get_tid): Remove.
3010 * common/ptid.h (ptid_get_tid): Don't declare.
3011 * ada-tasks.c: Update.
3012 * aix-thread.c: Update.
3013 * bsd-uthread.c: Update.
3014 * darwin-nat.c: Update.
3015 * fbsd-nat.c: Update.
3016 * i386-darwin-nat.c: Update.
3018 * linux-tdep.c: Update.
3019 * nto-procfs.c: Update.
3020 * ppc-ravenscar-thread.c: Update.
3021 * python/py-infthread.c: Update.
3022 * ravenscar-thread.c: Update.
3023 * sol-thread.c: Update.
3024 * sparc-ravenscar-thread.c: Update.
3025 * windows-nat.c: Update.
3027 2018-07-03 Tom Tromey <tom@tromey.com>
3029 * common/ptid.c (ptid_get_lwp): Remove.
3030 * common/ptid.h (ptid_get_lwp): Don't declare.
3031 * aarch64-linux-nat.c: Update.
3032 * ada-tasks.c: Update.
3033 * aix-thread.c: Update.
3034 * amd64-linux-nat.c: Update.
3035 * arm-linux-nat.c: Update.
3036 * corelow.c: Update.
3037 * fbsd-nat.c: Update.
3038 * fbsd-tdep.c: Update.
3039 * gnu-nat.c: Update.
3040 * i386-cygwin-tdep.c: Update.
3041 * i386-gnu-nat.c: Update.
3042 * i386-linux-nat.c: Update.
3043 * ia64-linux-nat.c: Update.
3044 * inf-ptrace.c: Update.
3046 * linux-fork.c: Update.
3047 * linux-nat.c: Update.
3048 * linux-tdep.c: Update.
3049 * linux-thread-db.c: Update.
3050 * mips-linux-nat.c: Update.
3051 * nat/aarch64-linux-hw-point.c: Update.
3052 * nat/aarch64-linux.c: Update.
3053 * nat/linux-btrace.c: Update.
3054 * nat/linux-osdata.c: Update.
3055 * nat/linux-procfs.c: Update.
3056 * nat/x86-linux-dregs.c: Update.
3057 * obsd-nat.c: Update.
3058 * ppc-fbsd-nat.c: Update.
3059 * ppc-linux-nat.c: Update.
3061 * python/py-infthread.c: Update.
3062 * ravenscar-thread.c: Update.
3064 * s390-linux-nat.c: Update.
3065 * sol-thread.c: Update.
3066 * sol2-tdep.c: Update.
3067 * spu-linux-nat.c: Update.
3068 * x86-linux-nat.c: Update.
3069 * xtensa-linux-nat.c: Update.
3071 2018-07-03 Tom Tromey <tom@tromey.com>
3073 * common/ptid.c (ptid_get_pid): Remove.
3074 * common/ptid.h (ptid_get_pid): Don't declare.
3075 * aarch64-linux-nat.c: Update.
3076 * ada-lang.c: Update.
3077 * aix-thread.c: Update.
3078 * alpha-bsd-nat.c: Update.
3079 * amd64-fbsd-nat.c: Update.
3080 * amd64-linux-nat.c: Update.
3081 * arm-linux-nat.c: Update.
3082 * arm-nbsd-nat.c: Update.
3084 * break-catch-syscall.c: Update.
3085 * breakpoint.c: Update.
3086 * bsd-uthread.c: Update.
3087 * corelow.c: Update.
3089 * darwin-nat.c: Update.
3090 * fbsd-nat.c: Update.
3091 * fbsd-tdep.c: Update.
3093 * gnu-nat.c: Update.
3094 * hppa-nbsd-nat.c: Update.
3095 * hppa-obsd-nat.c: Update.
3096 * i386-fbsd-nat.c: Update.
3097 * ia64-linux-nat.c: Update.
3098 * inf-ptrace.c: Update.
3100 * inferior.c: Update.
3101 * inferior.h: Update.
3104 * linux-fork.c: Update.
3105 * linux-nat.c: Update.
3106 * linux-tdep.c: Update.
3107 * linux-thread-db.c: Update.
3108 * m68k-bsd-nat.c: Update.
3109 * mi/mi-interp.c: Update.
3110 * mi/mi-main.c: Update.
3111 * mips-linux-nat.c: Update.
3112 * mips-nbsd-nat.c: Update.
3113 * mips64-obsd-nat.c: Update.
3114 * nat/aarch64-linux-hw-point.c: Update.
3115 * nat/aarch64-linux.c: Update.
3116 * nat/linux-btrace.c: Update.
3117 * nat/linux-osdata.c: Update.
3118 * nat/linux-procfs.c: Update.
3119 * nat/x86-linux-dregs.c: Update.
3120 * nto-procfs.c: Update.
3121 * obsd-nat.c: Update.
3122 * ppc-linux-nat.c: Update.
3123 * ppc-nbsd-nat.c: Update.
3124 * ppc-obsd-nat.c: Update.
3125 * proc-service.c: Update.
3127 * python/py-inferior.c: Update.
3128 * python/py-infthread.c: Update.
3129 * ravenscar-thread.c: Update.
3131 * remote-sim.c: Update.
3133 * rs6000-nat.c: Update.
3134 * s390-linux-nat.c: Update.
3135 * sh-nbsd-nat.c: Update.
3136 * sol-thread.c: Update.
3137 * sparc-nat.c: Update.
3138 * sparc64-tdep.c: Update.
3139 * spu-linux-nat.c: Update.
3140 * spu-tdep.c: Update.
3141 * target-debug.h: Update.
3144 * tid-parse.c: Update.
3145 * tracefile-tfile.c: Update.
3146 * vax-bsd-nat.c: Update.
3147 * windows-nat.c: Update.
3148 * x86-linux-nat.c: Update.
3149 * x86-nat.c: Update.
3151 2018-07-03 Tom Tromey <tom@tromey.com>
3153 * common/ptid.c (pid_to_ptid): Remove.
3154 * common/ptid.h (pid_to_ptid): Don't declare.
3155 * aix-thread.c: Update.
3156 * arm-linux-nat.c: Update.
3157 * common/ptid.c: Update.
3158 * common/ptid.h: Update.
3159 * corelow.c: Update.
3161 * darwin-nat.c: Update.
3162 * fbsd-nat.c: Update.
3163 * fork-child.c: Update.
3164 * gnu-nat.c: Update.
3165 * go32-nat.c: Update.
3166 * inf-ptrace.c: Update.
3168 * inferior.c: Update.
3170 * linux-fork.c: Update.
3171 * linux-nat.c: Update.
3172 * nat/aarch64-linux-hw-point.c: Update.
3173 * nat/fork-inferior.c: Update.
3174 * nat/x86-linux-dregs.c: Update.
3175 * nto-procfs.c: Update.
3176 * obsd-nat.c: Update.
3178 * progspace.c: Update.
3180 * rs6000-nat.c: Update.
3181 * s390-linux-nat.c: Update.
3182 * sol-thread.c: Update.
3183 * spu-linux-nat.c: Update.
3186 * tracefile-tfile.c: Update.
3187 * windows-nat.c: Update.
3189 2018-07-03 Tom Tromey <tom@tromey.com>
3191 * common/ptid.h (ptid_build): Don't declare.
3192 * common/ptid.c (ptid_build): Remove.
3193 * aix-thread.c: Update.
3194 * bsd-kvm.c: Update.
3195 * bsd-uthread.c: Update.
3196 * common/agent.c: Update.
3197 * common/ptid.c: Update.
3198 * common/ptid.h: Update.
3199 * corelow.c: Update.
3200 * darwin-nat.c: Update.
3201 * fbsd-nat.c: Update.
3202 * gnu-nat.c: Update.
3203 * linux-fork.c: Update.
3204 * linux-nat.c: Update.
3205 * linux-thread-db.c: Update.
3206 * nat/linux-osdata.c: Update.
3207 * nat/linux-procfs.c: Update.
3208 * nto-procfs.c: Update.
3209 * obsd-nat.c: Update.
3210 * proc-service.c: Update.
3212 * ravenscar-thread.c: Update.
3213 * remote-sim.c: Update.
3215 * sol-thread.c: Update.
3217 * windows-nat.c: Update.
3219 2018-07-03 Tom Tromey <tom@tromey.com>
3221 * infrun.c (follow_exec): Use exit_inferior_silent.
3222 * inferior.c (exit_inferior_num_silent): Remove.
3223 * inferior.h (exit_inferior_num_silent): Don't declare.
3225 2018-07-03 Tom Tromey <tom@tromey.com>
3228 * darwin-nat.c (darwin_attach_pid): Reset inferior and
3229 inferior_ptid on error.
3231 2018-07-02 Maciej W. Rozycki <macro@mips.com>
3232 Simon Marchi <simon.marchi@polymtl.ca>
3235 * disasm.h (gdb_disassembler): Add
3236 `m_disassembler_options_holder'. member
3237 * disasm.c (get_all_disassembler_options): New function.
3238 (gdb_disassembler::gdb_disassembler): Use it.
3239 (gdb_buffered_insn_length_init_dis): Likewise.
3240 (gdb_buffered_insn_length): Adjust accordingly.
3241 (set_disassembler_options): Handle options with arguments.
3242 (show_disassembler_options_sfunc): Likewise. Add a leading new
3243 line if showing options with descriptions.
3244 (disassembler_options_completer): Adapt to using the
3245 `disasm_options_and_args_t' structure.
3246 * mips-tdep.c (mips_disassembler_options): New variable.
3247 (mips_disassembler_options_o32): Likewise.
3248 (mips_disassembler_options_n32): Likewise.
3249 (mips_disassembler_options_n64): Likewise.
3250 (gdb_print_insn_mips): Don't set `disassembler_options'.
3251 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
3253 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
3254 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
3255 `gdbarch_disassembler_options_implicit' and
3256 `gdbarch_valid_disassembler_options'.
3257 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
3258 `disasm_options_and_args_t' structure.
3259 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
3261 (valid_disassembler_options): Switch from `disasm_options_t' to
3262 the `disasm_options_and_args_t' structure.
3263 * NEWS: Document `set disassembler-options' support for the MIPS
3265 * gdbarch.h: Regenerate.
3266 * gdbarch.c: Regenerate.
3268 2018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
3270 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
3272 2018-06-29 Joel Brobecker <brobecker@adacore.com>
3274 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
3275 parameter in call to amd64_target_description.
3276 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
3277 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
3278 (amd64fbsd_init_abi): Likewise.
3279 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
3280 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
3281 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
3282 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
3284 2018-06-29 Pedro Alves <palves@redhat.com>
3286 * gdb/amd64-tdep.h (amd64_create_target_description): Add
3287 "segments" parameter.
3288 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
3289 (_initialize_amd64_tdep): Update call to
3290 amd64_create_target_description.
3291 (amd64_target_description): Add "segments" parameter. Adjust
3292 the implementation to use it.
3293 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
3294 call to amd64_create_target_description.
3295 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
3296 * gdb/arch/amd64.h (amd64_create_target_description): Add
3297 "segments" register.
3298 * gdb/arch/amd64.c (amd64_create_target_description): Add
3299 "segments" parameter. Call create_feature_i386_64bit_segments
3300 only if SEGMENTS is true.
3301 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
3302 call to amd64_create_target_description.
3304 2018-06-29 Pedro Alves <palves@redhat.com>
3306 * thread.c (thread_target_id_str): New, factored out from ...
3307 (print_thread_info_1): ... here. Use it to compute the max
3308 "Target Id" column width.
3310 2018-06-29 Pedro Alves <palves@redhat.com>
3312 * remote.c (remote_target::extra_thread_info): Delete
3313 'display_buf' and 'n' locals. from the cache, regardless of
3314 packet mechanims is in use. Use cache for qThreadExtra and qP
3317 2018-06-29 Pedro Alves <palves@redhat.com>
3319 * blockframe.c (find_pc_sect_containing_function): New function.
3320 * breakpoint.c (print_breakpoint_location): Don't call
3321 find_pc_sect_function.
3322 * linespec.c (create_sals_line_offset): Record the location's
3324 * linespec.c (convert_address_location_to_sals): Fill in sal's
3325 symbol with find_pc_sect_containing_function.
3326 * symtab.c (find_function_start_sal): Rename to ...
3327 (find_function_start_sal_1): ... this.
3328 (find_function_start_sal): Reimplement as wrapper around
3329 find_function_start_sal_1, and use
3330 find_pc_sect_containing_function to fill in the sal's symbol.
3331 (find_function_start_sal(symbol*, bool)): Adjust.
3332 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
3334 (find_pc_sect_containing_function): Declare.
3336 2018-06-29 Pedro Alves <palves@redhat.com>
3338 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
3339 true if the the location has no symbol.
3341 2018-06-28 Tom Tromey <tom@tromey.com>
3343 * NEWS: Mention --enable-codesign.
3344 * silent-rules.mk (ECHO_SIGN): New variable.
3345 * configure.ac: Add --enable-codesign.
3346 * configure: Rebuild.
3347 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
3348 (gdb$(EXEEXT)): Optionally invoke codesign.
3350 2018-06-28 Pedro Alves <palves@redhat.com>
3352 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
3354 (switch_to_thread_no_regs): Adjust comment.
3355 * infcmd.c (stop_pc): Delete.
3356 (post_create_inferior, info_program_command): Replace references
3357 to stop_pc with references to thread_info->suspend.stop_pc.
3358 * inferior.h (stop_pc): Delete declaration.
3359 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
3360 (handle_inferior_event_1, handle_signal_stop)
3361 (process_event_stop_test, keep_going_stepped_thread)
3362 (handle_step_into_function, handle_step_into_function_backward)
3363 (print_stop_location): Replace references to stop_pc with
3364 references to thread_info->suspend.stop_pc.
3365 (struct infcall_suspend_state) <stop_pc>: Delete field.
3366 (save_infcall_suspend_state, restore_infcall_suspend_state):
3367 Remove references to inf_stat->stop_pc.
3368 * linux-fork.c (fork_load_infrun_state): Likewise.
3369 * record-btrace.c (record_btrace_set_replay): Likewise.
3370 * record-full.c (record_full_goto_entry): Likewise.
3371 * remote.c (print_one_stopped_thread): Likewise.
3372 * target.c (target_resume): Extend comment.
3373 * thread.c (set_executing_thread): New.
3374 (set_executing): Use it.
3375 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
3376 Remove references to stop_pc.
3378 2018-06-28 Pedro Alves <palves@redhat.com>
3380 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
3381 Moving fetching stop_pc until after ecs->event_thread is refreshed.
3383 2018-06-28 Tom Tromey <tom@tromey.com>
3385 * coffread.c (coff_symfile_finish): Update.
3386 * xcoffread.c (xcoff_symfile_finish): Update.
3387 * elfread.c (elf_symfile_finish): Update.
3388 * symfile.h (dwarf2_free_objfile): Don't declare.
3389 * dwarf2read.c (_initialize_dwarf2_read): Use
3390 register_objfile_data_with_cleanup.
3391 (dwarf2_free_objfile): Now static. Change signature.
3393 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
3395 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
3396 option "-o" to add-symbol-file-load to add an offset to each
3397 section's load address.
3398 * symfile.c (set_objfile_default_section_offset): New function.
3400 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
3402 * symfile.c (add_symbol_file_command): Make sure that sections
3403 with the same name are sorted in the same order.
3405 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
3407 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
3408 require the second argument. If omitted, load sections at the
3409 addresses specified in the file.
3411 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
3413 * symfile.c (symbol_file_command, symbol_file_add_main_1)
3414 (_initialize_symfile): Add option "-o" to symbol-file to add an
3415 offset to each section of the symbol file.
3417 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
3419 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
3421 2018-06-27 Tom Tromey <tom@tromey.com>
3423 * stack.c (_initialize_stack): Update "func" help text.
3425 2018-06-27 Tom Tromey <tom@tromey.com>
3427 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
3429 (unwind_infopy_str, pyuw_create_unwind_info)
3430 (unwind_infopy_add_saved_register, pyuw_sniffer)
3431 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
3433 (struct saved_reg): Add constructor.
3434 <value>: Now a gdbpy_ref<>.
3436 2018-06-27 Tom Tromey <tom@tromey.com>
3438 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
3440 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
3442 * gdb-gdb.py.in: Format using autopep8.
3444 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
3446 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
3447 (type_lookup_function): Recognize CORE_ADDR values.
3449 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
3451 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
3454 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
3456 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
3459 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
3461 * gdb-gdb.py: Move to...
3462 * gdb-gdb.py.in: ... here.
3463 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
3464 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
3466 (distclean): Remove gdb-gdb.py when cleaning.
3467 (gdb-gdb.py, gdb-gdb.gdb): New rules.
3468 * configure: Re-generate.
3470 2018-06-27 Pedro Alves <palves@redhat.com>
3472 * proc-service.c (get_ps_regcache): New.
3473 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
3474 (ps_lsetfpregs): Use it.
3476 2018-06-27 Omair Javaid <omair.javaid@linaro.org>
3479 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
3480 (dwarf_decode_lines_1): Adjust.
3482 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
3484 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
3486 <info_proc>: Likewise.
3488 2018-06-26 Joel Brobecker <brobecker@adacore.com>
3490 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
3491 to windows_fetch_one_register, and only handle the case of
3492 fetching one register. Move the code that reloads the context
3493 and iterates over all registers if R is negative to...
3494 (windows_nat_target::fetch_registers): ... here.
3495 (do_windows_store_inferior_registers): Rename to
3496 windows_store_one_register, and only handle the case of storing
3497 one register. Move the code that handles the case where r is
3499 (windows_nat_target::store_registers) ... here.
3501 2018-06-26 Tom Tromey <tom@tromey.com>
3504 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
3505 * rust-lang.c (rust_print_struct_def): Add podata parameter.
3507 (rust_internal_print_type): Add podata parameter.
3508 (rust_print_type): Update.
3510 2018-06-26 Tom Tromey <tom@tromey.com>
3512 * typeprint.h (struct print_offset_data) <update, finish,
3513 maybe_print_hole>: New methods.
3514 <indentation>: New constant.
3515 * typeprint.c (print_offset_data::indentation): Define.
3516 (print_offset_data::maybe_print_hole, print_offset_data::update)
3517 (print_offset_data::finish): Move from c-typeprint.c and rename.
3518 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
3519 (print_spaces_filtered_with_print_options): Update.
3520 (c_print_type_union_field_offset, maybe_print_hole)
3521 (c_print_type_struct_field_offset): Move to typeprint.c and
3523 (c_type_print_base_struct_union): Update.
3525 2018-06-25 Pedro Alves <palves@redhat.com>
3527 * gdbthread.h (thread_info_ref, delete_thread)
3528 (delete_thread_silent, first_thread_of_inferior)
3529 (any_thread_of_inferior, switch_to_thread)
3530 (enable_thread_stack_temporaries)
3531 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
3532 (get_last_thread_stack_temporary)
3533 (value_in_thread_stack_temporaries, can_access_registers_thread):
3534 Spell out "struct thread_info" instead of just "thread_info".
3535 * inferior.h (notice_new_inferior): Likewise.
3537 2018-06-25 Pedro Alves <palves@redhat.com>
3539 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
3540 pass thread_info pointer to delete_thread.
3541 (windows_nat_target::detach): Pass inferior pointer to
3543 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
3545 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
3546 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
3547 and pass a thread_info pointer to delete_thread.
3548 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
3549 pass thread_info pointer to delete_thread.
3550 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
3551 delete_thread_silent call.
3552 * procfs.c (procfs_target::detach): Pass inferior pointer to
3554 (procfs_target::wait): Pass thread_info pointer to delete_thread.
3555 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
3556 delete_thread_silent call.
3557 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
3558 pass thread_info pointer to delete_thread.
3559 (windows_nat_target::detach): Pass inferior pointer to
3562 2018-06-22 Alan Hayward <alan.hayward@arm.com>
3564 * regcache.c (readable_regcache::read_part): Fix asserts.
3565 (reg_buffer::raw_collect_part): New function.
3566 (regcache::write_part): Fix asserts.
3567 (reg_buffer::raw_supply_part): New function.
3568 (regcache::transfer_regset_register): New helper function.
3569 (regcache::transfer_regset): Call new functions.
3570 (regcache_supply_regset): Use gdb_byte*.
3571 (regcache::supply_regset): Likewise.
3572 (regcache_collect_regset): Likewise.
3573 (regcache::collect_regset): Likewise.
3574 * regcache.h (reg_buffer::raw_collect_part): New declaration.
3575 (reg_buffer::raw_supply_part): Likewise.
3576 (regcache::transfer_regset_register): Likewise.
3577 (regcache::transfer_regset): Use gdb_byte*.
3579 2018-06-22 Alan Hayward <alan.hayward@arm.com>
3581 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
3583 2018-06-21 Pedro Alves <palves@redhat.com>
3585 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
3586 instead of a ptid_t. All callers adjusted.
3587 * ada-tasks.c (ada_get_task_number): Likewise. All callers
3589 (print_ada_task_info, display_current_task_id, task_command_1):
3591 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
3593 (breakpoint_kind): Adjust.
3594 (remove_breakpoints_pid): Rename to ...
3595 (remove_breakpoints_inf): ... this. Adjust to take an inferior
3596 pointer. All callers adjusted.
3597 (bpstat_clear_actions): Use inferior_thread.
3598 (get_bpstat_thread): New.
3599 (bpstat_do_actions): Use it.
3600 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
3601 to take a thread_info pointer. All callers adjusted.
3602 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
3603 (breakpoint_re_set_thread): Use inferior_thread.
3604 * breakpoint.h (struct inferior): Forward declare.
3605 (bpstat_stop_status): Update.
3606 (remove_breakpoints_pid): Delete.
3607 (remove_breakpoints_inf): New.
3608 * bsd-uthread.c (bsd_uthread_target::wait)
3609 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
3610 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
3611 (maint_btrace_packet_history_cmd)
3612 (maint_btrace_clear_packet_history_cmd): Adjust.
3613 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
3615 * cli/cli-interp.c: Include "inferior.h".
3616 * common/refcounted-object.h (struct
3617 refcounted_object_ref_policy): New.
3618 * compile/compile-object-load.c: Include gdbthread.h.
3619 (store_regs): Use inferior_thread.
3620 * corelow.c (core_target::close): Use current_inferior.
3621 (core_target_open): Adjust to use first_thread_of_inferior and use
3622 the current inferior.
3623 * ctf.c (ctf_target::close): Adjust to use current_inferior.
3624 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
3625 <thread>: ... this new field. All references adjusted.
3626 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
3627 Take a thread_info pointer instead of a ptid_t.
3628 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
3629 (dummy_frame_discard, register_dummy_frame_dtor): Take a
3630 thread_info pointer instead of a ptid_t.
3631 * elfread.c: Include "inferior.h".
3632 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
3633 Use inferior_thread.
3634 * eval.c (evaluate_subexp): Likewise.
3635 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
3637 * gdb_proc_service.h (struct thread_info): Forward declare.
3638 (struct ps_prochandle) <ptid>: Delete, replaced by ...
3639 <thread>: ... this new field. All references adjusted.
3640 * gdbarch.h, gdbarch.c: Regenerate.
3641 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
3642 'thread' parameter. All implementations and callers adjusted.
3643 * gdbthread.h (thread_info) <set_running>: New method.
3644 (delete_thread, delete_thread_silent): Take a thread_info pointer
3646 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
3647 (first_thread_of_process): Delete, replaced by ...
3648 (first_thread_of_inferior): ... this new function. All callers
3650 (any_live_thread_of_process): Delete, replaced by ...
3651 (any_live_thread_of_inferior): ... this new function. All callers
3653 (switch_to_thread, switch_to_no_thread): Declare.
3654 (is_executing): Delete.
3655 (enable_thread_stack_temporaries): Update comment.
3656 <enable_thread_stack_temporaries>: Take a thread_info pointer
3657 instead of a ptid_t. Incref the thread.
3658 <~enable_thread_stack_temporaries>: Decref the thread.
3661 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
3662 (get_last_thread_stack_temporary)
3663 (value_in_thread_stack_temporaries, can_access_registers_thread):
3664 Take a thread_info pointer instead of a ptid_t. All callers
3666 * infcall.c (get_call_return_value): Use inferior_thread.
3667 (run_inferior_call): Work with thread pointers instead of ptid_t.
3668 (call_function_by_hand_dummy): Work with thread pointers instead
3669 of ptid_t. Use thread_info_ref.
3670 * infcmd.c (proceed_thread_callback): Access thread's state
3672 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
3673 access thread's state directly.
3674 (continue_command): Use inferior_thread.
3675 (info_program_command): Use find_thread_ptid and access thread
3677 (proceed_after_attach_callback): Use thread state directly.
3678 (notice_new_inferior): Take a thread_info pointer instead of a
3679 ptid_t. All callers adjusted.
3680 (exit_inferior): Take an inferior pointer instead of a pid. All
3682 (exit_inferior_silent): New.
3683 (detach_inferior): Delete.
3684 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
3685 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
3686 (detach_inferior_command, kill_inferior_command): Use
3687 find_inferior_id instead of valid_gdb_inferior_id and
3688 gdb_inferior_id_to_pid.
3689 (inferior_command): Use inferior and thread pointers.
3690 * inferior.h (struct thread_info): Forward declare.
3691 (notice_new_inferior): Take a thread_info pointer instead of a
3692 ptid_t. All callers adjusted.
3693 (detach_inferior): Delete declaration.
3694 (exit_inferior, exit_inferior_silent): Take an inferior pointer
3695 instead of a pid. All callers adjusted.
3696 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
3697 (valid_gdb_inferior_id): Delete.
3698 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
3699 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
3700 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
3702 <inf>: ... this new field.
3703 <step_ptid>: Delete, replaced by ...
3704 <step_thread>: ... this new field.
3705 (get_displaced_stepping_state): Take an inferior pointer instead
3706 of a pid. All callers adjusted.
3707 (displaced_step_in_progress_any_inferior): Adjust.
3708 (displaced_step_in_progress_thread): Take a thread pointer instead
3709 of a ptid_t. All callers adjusted.
3710 (displaced_step_in_progress, add_displaced_stepping_state): Take
3711 an inferior pointer instead of a pid. All callers adjusted.
3712 (get_displaced_step_closure_by_addr): Adjust.
3713 (remove_displaced_stepping_state): Take an inferior pointer
3714 instead of a pid. All callers adjusted.
3715 (displaced_step_prepare_throw, displaced_step_prepare)
3716 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
3717 All callers adjusted.
3718 (start_step_over): Adjust.
3719 (infrun_thread_ptid_changed): Remove bit updating ptids in the
3720 displaced step queue.
3721 (do_target_resume): Adjust.
3722 (fetch_inferior_event): Use inferior_thread.
3723 (context_switch, get_inferior_stop_soon): Take an
3724 execution_control_state pointer instead of a ptid_t. All callers
3726 (switch_to_thread_cleanup): Delete.
3727 (stop_all_threads): Use scoped_restore_current_thread.
3728 * inline-frame.c: Include "gdbthread.h".
3729 (inline_state) <inline_state>: Take a thread pointer instead of a
3730 ptid_t. All callers adjusted.
3731 <ptid>: Delete, replaced by ...
3732 <thread>: ... this new field.
3733 (find_inline_frame_state): Take a thread pointer instead of a
3734 ptid_t. All callers adjusted.
3735 (skip_inline_frames, step_into_inline_frame)
3736 (inline_skipped_frames, inline_skipped_symbol): Take a thread
3737 pointer instead of a ptid_t. All callers adjusted.
3738 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
3739 (inline_skipped_frames, inline_skipped_symbol): Likewise.
3740 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
3742 * linux-nat.c (get_detach_signal): Likewise.
3743 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
3744 (thread_db_notice_clone): Adjust.
3745 (thread_db_find_new_threads_silently)
3746 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
3747 a thread pointer instead of a ptid_t. All callers adjusted.
3748 * mi/mi-cmd-var.c: Include "inferior.h".
3749 (mi_cmd_var_update_iter): Update to use thread pointers.
3750 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
3752 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
3754 (mi_output_running): ... this new function.
3755 (mi_on_resume_1): Adjust to use it.
3756 (mi_user_selected_context_changed): Adjust to use inferior_thread.
3757 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
3759 (interrupt_thread_callback): : Adjust to use thread and inferior
3761 * proc-service.c: Include "gdbthread.h".
3762 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
3763 * progspace-and-thread.c: Include "inferior.h".
3764 * progspace.c: Include "inferior.h".
3765 * python/py-exitedevent.c (create_exited_event_object): Adjust to
3766 hold a reference to an inferior_object.
3767 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
3769 * python/py-inferior.c (struct inferior_object): Give the type a
3770 tag name instead of a typedef.
3771 (python_on_normal_stop): No need to check if the current thread is
3773 (inferior_to_inferior_object): Change return type to
3774 inferior_object. All callers adjusted.
3775 (find_thread_object): Delete, bits factored out to ...
3776 (thread_to_thread_object): ... this new function.
3777 * python/py-infthread.c (create_thread_object): Use
3778 inferior_to_inferior_object.
3779 (thpy_is_stopped): Use thread pointer directly.
3780 (gdbpy_selected_thread): Use inferior_thread.
3781 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
3782 field, replaced with ...
3783 <thread>: ... this new field. All users adjusted.
3784 (btpy_insn_or_gap_new): Drop const.
3785 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
3787 * python/py-record.c: Include "gdbthread.h".
3788 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
3789 a ptid_t. All callers adjusted.
3790 (gdbpy_current_recording): Use inferior_thread.
3791 * python/py-record.h (recpy_record_object) <ptid>: Delete
3792 field, replaced with ...
3793 <thread>: ... this new field. All users adjusted.
3794 (recpy_element_object) <ptid>: Delete
3795 field, replaced with ...
3796 <thread>: ... this new field. All users adjusted.
3797 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
3798 a ptid_t. All callers adjusted.
3799 * python/py-threadevent.c: Include "gdbthread.h".
3800 (get_event_thread): Use thread_to_thread_object.
3801 * python/python-internal.h (struct inferior_object): Forward
3803 (find_thread_object, find_inferior_object): Delete declarations.
3804 (thread_to_thread_object, inferior_to_inferior_object): New
3806 * record-btrace.c: Include "inferior.h".
3807 (require_btrace_thread): Use inferior_thread.
3808 (record_btrace_frame_sniffer)
3809 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
3810 (get_thread_current_frame): Use scoped_restore_current_thread and
3812 (get_thread_current_frame): Use thread pointer directly.
3813 (record_btrace_replay_at_breakpoint): Use thread's inferior
3815 * record-full.c: Include "inferior.h".
3816 * regcache.c: Include "gdbthread.h".
3817 (get_thread_arch_regcache): Use the inferior's address space
3819 (get_thread_regcache, registers_changed_thread): New.
3820 * regcache.h (get_thread_regcache(thread_info *thread)): New
3822 (registers_changed_thread): New.
3823 (remote_target) <remote_detach_1>: Swap order of parameters.
3824 (remote_add_thread): <remote_add_thread>: Return the new thread.
3825 (get_remote_thread_info(ptid_t)): New overload.
3826 (remote_target::remote_notice_new_inferior): Use thread pointers
3828 (remote_target::process_initial_stop_replies): Use
3829 thread_info::set_running.
3830 (remote_target::remote_detach_1, remote_target::detach)
3831 (extended_remote_target::detach): Adjust.
3832 * stack.c (frame_show_address): Use inferior_thread.
3833 * target-debug.h (target_debug_print_thread_info_pp): New.
3834 * target-delegates.c: Regenerate.
3835 * target.c (default_thread_address_space): Delete.
3836 (memory_xfer_partial_1): Use current_inferior.
3837 (target_detach): Use current_inferior.
3838 (target_thread_address_space): Delete.
3839 (generic_mourn_inferior): Use current_inferior.
3840 * target.h (struct target_ops) <thread_address_space>: Delete.
3841 (target_thread_address_space): Delete.
3842 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
3844 (delete_thread_1, delete_thread, delete_thread_silent): Take a
3845 thread pointer instead of a ptid_t. Adjust all callers.
3846 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
3847 (first_thread_of_process): Delete, replaced by ...
3848 (first_thread_of_inferior): ... this new function. All callers
3850 (any_thread_of_process): Rename to ...
3851 (any_thread_of_inferior): ... this, and take an inferior pointer.
3852 (any_live_thread_of_process): Rename to ...
3853 (any_live_thread_of_inferior): ... this, and take an inferior
3855 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
3856 (value_in_thread_stack_temporaries)
3857 (get_last_thread_stack_temporary): Take a thread pointer instead
3858 of a ptid_t. Adjust all callers.
3859 (thread_info::set_running): New.
3860 (validate_registers_access): Use inferior_thread.
3861 (can_access_registers_ptid): Rename to ...
3862 (can_access_registers_thread): ... this, and take a thread
3864 (print_thread_info_1): Adjust to compare thread pointers instead
3866 (switch_to_no_thread, switch_to_thread): Make extern.
3867 (scoped_restore_current_thread::~scoped_restore_current_thread):
3868 Use m_thread pointer directly.
3869 (scoped_restore_current_thread::scoped_restore_current_thread):
3870 Use inferior_thread.
3871 (thread_command): Use thread pointer directly.
3872 (thread_num_make_value_helper): Use inferior_thread.
3873 * top.c (execute_command): Use inferior_thread.
3874 * tui/tui-interp.c: Include "inferior.h".
3875 * varobj.c (varobj_create): Use inferior_thread.
3876 (value_of_root_1): Use find_thread_global_id instead of
3877 global_thread_id_to_ptid.
3879 2018-06-21 Alan Hayward <alan.hayward@arm.com>
3881 * regcache.c (readable_regcache::read_part): Avoid memcpy when
3883 (regcache::write_part): Likewise.
3884 (readable_regcache::cooked_read_part): Update comment.
3885 (readable_regcache::cooked_write_part): Likewise.
3886 * regcache.h: (readable_regcache::read_part): Likewise.
3887 (regcache::write_part): Likewise.
3889 2018-06-21 Richard Bunt <richard.bunt@arm.com>
3890 Dirk Schubert <dirk.schubert@arm.com>
3892 * aarch64-linux-nat.c (post_attach): New.
3893 (aarch64_linux_nat_target::post_attach): Override post_attach to
3894 record the number of hardware debug registers.
3896 2018-06-20 Tom Tromey <tom@tromey.com>
3898 * python/py-param.c (add_setshow_generic): Make parameters const.
3899 (parmpy_init): Update.
3901 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
3903 * regcache.h (regcache_cooked_read_ftype): Rename to...
3904 (register_read_ftype): ...this, change type to function_view.
3905 (class reg_buffer) <save>: Remove src parameter.
3906 (readonly_detached_regcache) <readonly_detached_regcache>: Make
3907 parameter non-const in first overload. Remove src parameter in
3909 * regcache.c (do_cooked_read): Remove.
3910 (readonly_detached_regcache::readonly_detached_regcache): Make
3911 parameter non-const, adjust call to other constructor.
3912 (reg_buffer::save): Remove src parameter.
3913 * frame.c (do_frame_register_read): Remove.
3914 (frame_save_as_regcache): Use lambda function.
3915 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
3916 parameter to ppu2spu_data *.
3917 (ppu2spu_sniffer): Use lambda function.
3919 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
3921 * record-full.c (record_full_target::insert_breakpoint): Remove
3922 "struct" keyword, add const.
3924 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
3926 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
3927 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
3928 * configure.ac: Remove AC_PREREQ, add missing quoting.
3929 * gnulib/configure.ac: Modernize usage of
3930 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
3931 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
3932 (AUTOMAKE_VERSION): Bump to 1.15.1.
3933 * configure: Re-generate.
3934 * config.in: Re-generate.
3935 * aclocal.m4: Re-generate.
3936 * gnulib/aclocal.m4: Re-generate.
3937 * gnulib/config.in: Re-generate.
3938 * gnulib/configure: Re-generate.
3939 * gnulib/import/Makefile.in: Re-generate.
3941 2018-06-19 Pedro Alves <palves@redhat.com>
3943 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
3944 (lookup_minimal_symbol_by_pc_section): ... here with
3945 gdb_assert_not_reached added.
3947 2018-06-19 Pedro Alves <palves@redhat.com>
3949 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
3950 parameter with a block parameter. Compare location's block symbol
3951 with the frame's block instead of addresses.
3952 (skip_inline_frames): Pass the current block instead of the
3953 frame's address. Break out as soon as we determine the frame
3954 should not be skipped.
3956 2018-06-18 Tom Tromey <tom@tromey.com>
3958 * solib-aix.c (solib_aix_get_section_offsets): Return
3960 (solib_aix_solib_create_inferior_hook): Update.
3962 2018-06-18 Tom Tromey <tom@tromey.com>
3964 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
3966 2018-06-18 Tom Tromey <tom@tromey.com>
3968 * solib-frv.c (frv_relocate_main_executable): Use
3970 * solib-dsbt.c (dsbt_relocate_main_executable): Use
3973 2018-06-18 Tom Tromey <tom@tromey.com>
3975 * objfiles.h (inhibit_section_map_updates): Update.
3976 (resume_section_map_updates, resume_section_map_updates_cleanup):
3978 * solib-svr4.c (svr4_handle_solib_event): Update.
3979 * objfiles.c (inhibit_section_map_updates): Return
3980 scoped_restore_tmpl<int>.
3981 (resume_section_map_updates, resume_section_map_updates_cleanup):
3984 2018-06-18 Tom Tromey <tom@tromey.com>
3986 * valprint.h (read_string): Update.
3987 * valprint.c (read_string): Change type of "buffer".
3988 (val_print_string): Update.
3989 * python/py-value.c (valpy_string): Update.
3990 * language.h (struct language_defn) <la_get_string>: Change
3992 (default_get_string, c_get_string): Update.
3993 * language.c (default_get_string): Change type of "buffer".
3994 * guile/scm-value.c (gdbscm_value_to_string): Update.
3995 * c-lang.c (c_get_string): Change type of "buffer".
3997 2018-06-18 Tom Tromey <tom@tromey.com>
3999 * ser-mingw.c (struct pipe_state_destroyer): New.
4000 (pipe_state_up): New typedef.
4001 (cleanup_pipe_state): Remove.
4002 (pipe_windows_open): Use pipe_state_up. Don't release argv.
4004 2018-06-18 Tom Tromey <tom@tromey.com>
4006 * rust-lang.h (rust_yyerror): Don't declare.
4007 * rust-lang.c (rust_language_defn): Update.
4008 * rust-exp.y (yyerror): Now static.
4009 * parse.c (parse_exp_in_context_1): Update.
4010 * p-lang.h (p_yyerror): Don't declare.
4011 * p-lang.c (p_language_defn): Update.
4012 * p-exp.y (yyerror): Now static.
4013 * opencl-lang.c (opencl_language_defn): Update.
4014 * objc-lang.c (objc_language_defn): Update.
4015 * m2-lang.h (m2_yyerror): Don't declare.
4016 * m2-lang.c (m2_language_defn): Update.
4017 * m2-exp.y (yyerror): Now static.
4018 * language.h (struct language_defn) <la_error>: Remove.
4019 * language.c (unk_lang_error): Remove.
4020 (unknown_language_defn, auto_language_defn): Remove.
4021 * go-lang.h (go_yyerror): Don't declare.
4022 * go-lang.c (go_language_defn): Update.
4023 * go-exp.y (yyerror): Now static.
4024 * f-lang.h (f_yyerror): Don't declare.
4025 * f-lang.c (f_language_defn): Update.
4026 * f-exp.y (yyerror): Now static.
4027 * d-lang.h (d_yyerror): Don't declare.
4028 * d-lang.c (d_language_defn): Update.
4029 * d-exp.y (yyerror): Now static.
4030 * c-lang.h (c_yyerror): Don't declare.
4031 * c-lang.c (c_language_defn, cplus_language_defn)
4032 (asm_language_defn, minimal_language_defn): Update.
4033 * c-exp.y (yyerror): Now static.
4034 * ada-lang.h (ada_yyerror): Don't declare.
4035 * ada-lang.c (ada_language_defn): Update.
4036 * ada-exp.y (yyerror): Now static.
4038 2018-06-18 Alan Hayward <alan.hayward@arm.com>
4040 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
4041 (store_sveregs_to_thread): Likewise.
4042 (aarch64_linux_fetch_inferior_registers): Check for SVE.
4043 (aarch64_linux_store_inferior_registers): Likewise.
4044 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
4046 (aarch64_sve_regs_copy_to_regcache): Likewise.
4047 (aarch64_sve_regs_copy_from_regcache): Likewise.
4048 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
4050 (aarch64_sve_regs_copy_to_regcache): Likewise.
4051 (aarch64_sve_regs_copy_from_regcache): Likewise.
4052 (sve_context): Structure from Linux headers.
4053 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
4054 (SVE_SIG_ZREG_SIZE): Likewise.
4055 (SVE_SIG_PREG_SIZE): Likewise.
4056 (SVE_SIG_FFR_SIZE): Likewise.
4057 (SVE_SIG_REGS_OFFSET): Likewise.
4058 (SVE_SIG_ZREGS_OFFSET): Likewise.
4059 (SVE_SIG_ZREG_OFFSET): Likewise.
4060 (SVE_SIG_ZREGS_SIZE): Likewise.
4061 (SVE_SIG_PREGS_OFFSET): Likewise.
4062 (SVE_SIG_PREG_OFFSET): Likewise.
4063 (SVE_SIG_PREGS_SIZE): Likewise.
4064 (SVE_SIG_FFR_OFFSET): Likewise.
4065 (SVE_SIG_REGS_SIZE): Likewise.
4066 (SVE_SIG_CONTEXT_SIZE): Likewise.
4067 (SVE_PT_REGS_MASK): Likewise.
4068 (SVE_PT_REGS_FPSIMD): Likewise.
4069 (SVE_PT_REGS_SVE): Likewise.
4070 (SVE_PT_VL_INHERIT): Likewise.
4071 (SVE_PT_VL_ONEXEC): Likewise.
4072 (SVE_PT_REGS_OFFSET): Likewise.
4073 (SVE_PT_FPSIMD_OFFSET): Likewise.
4074 (SVE_PT_FPSIMD_SIZE): Likewise.
4075 (SVE_PT_SVE_ZREG_SIZE): Likewise.
4076 (SVE_PT_SVE_PREG_SIZE): Likewise.
4077 (SVE_PT_SVE_FFR_SIZE): Likewise.
4078 (SVE_PT_SVE_FPSR_SIZE): Likewise.
4079 (SVE_PT_SVE_FPCR_SIZE): Likewise.
4080 (__SVE_SIG_TO_PT): Likewise.
4081 (SVE_PT_SVE_OFFSET): Likewise.
4082 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
4083 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
4084 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
4085 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
4086 (SVE_PT_SVE_PREG_OFFSET): Likewise.
4087 (SVE_PT_SVE_PREGS_SIZE): Likewise.
4088 (SVE_PT_SVE_FFR_OFFSET): Likewise.
4089 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
4090 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
4091 (SVE_PT_SVE_SIZE): Likewise.
4092 (SVE_PT_SIZE): Likewise.
4093 (HAS_SVE_STATE): New define.
4095 2018-06-18 Alan Hayward <alan.hayward@arm.com>
4097 * nat/aarch64-sve-linux-sigcontext.h: New file.
4098 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
4100 (SVE_VQ_MIN): Likewise.
4101 (SVE_VQ_MAX): Likewise.
4102 (SVE_VL_MIN): Likewise.
4103 (SVE_VL_MAX): Likewise.
4104 (SVE_NUM_ZREGS): Likewise.
4105 (SVE_NUM_PREGS): Likewise.
4106 (sve_vl_valid): Likewise.
4107 (struct user_sve_header): Likewise.
4109 2018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
4110 Richard Bunt <Richard.Bunt@arm.com>
4112 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
4113 was requested by GDB.
4115 2018-06-15 Tom de Vries <tdevries@suse.de>
4117 * MAINTAINERS (Write After Approval): Add Tom de Vries.
4119 2018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
4121 * gnulib/update-gnulib.sh: Print expected versions of
4124 2018-06-14 Simon Marchi <simon.marchi@ericsson.com>
4126 * arch-utils.c (default_type_align): Use type_length_units.
4127 * gdbtypes.c (type_align): Use type_length_units.
4129 2018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4131 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
4132 of 'define' command.
4134 2018-06-14 Tom de Vries <tdevries@suse.de>
4137 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
4138 get_no_prettyformat_print_options.
4140 2018-06-13 Simon Marchi <simon.marchi@ericsson.com>
4142 * sparc-nat.h: Include target.h.
4143 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
4144 <fetch_registers>: Remove this argument in function call.
4145 <store_registers>: Remove this argument in function call, remove
4147 <low_forget_process>: Call sparc64_forget_process instead of
4148 sparc_forget_process.
4150 2018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4152 * procfs.c (_initialize_procfs): Use add_inf_child_target.
4153 (procfs_target::make_corefile_notes): Adjust to new
4154 target_read_alloc return type.
4156 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
4157 Stephen Roberts <stephen.roberts@arm.com>
4160 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
4161 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
4162 Move should_notify_stop local into more inner scope.
4164 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
4165 Stephen Roberts <stephen.roberts@arm.com>
4168 * infrun.c (resume_1): Add call to mark_async_event_handler.
4170 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
4172 * infrun.c (do_target_wait): Change old version of $pc printed.
4174 2018-06-11 Simon Marchi <simon.marchi@ericsson.com>
4176 * dwarf2read.c (read_index_from_section): Rename to...
4177 (read_gdb_index_from_section): ... this, update all callers.
4178 (dwarf2_read_index): Rename to...
4179 (dwarf2_read_gdb_index): ... this, update all callers.
4181 2018-06-11 John David Anglin <danglin@gcc.gnu.org>
4183 * gdb/hppa-linux-nat.c
4184 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
4185 hppa_linux_nat_target::fetch_registers.
4187 2018-06-11 Alan Hayward <alan.hayward@arm.com>
4189 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
4190 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
4191 (AARCH64_DWARF_SVE_FFR): Likewise.
4192 (AARCH64_DWARF_SVE_P0): Likewise.
4193 (AARCH64_DWARF_SVE_Z0): Likewise.
4195 2018-06-11 Alan Hayward <alan.hayward@arm.com>
4197 * common/common-regcache.h (raw_compare): New function.
4198 * regcache.c (regcache::raw_compare): Likewise.
4199 * regcache.h (regcache::raw_compare): New declaration.
4201 2018-06-11 Alan Hayward <alan.hayward@arm.com>
4203 * common/common-regcache.h (reg_buffer_common): New structure.
4204 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
4205 (reg_buffer::raw_supply): Likewise.
4206 (reg_buffer::raw_supply_integer): Likewise.
4207 (reg_buffer::raw_supply_zeroed): Likewise.
4208 (reg_buffer::raw_collect): Likewise.
4209 (reg_buffer::raw_collect_integer): Likewise.
4210 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
4211 (reg_buffer::raw_supply): Likewise.
4212 (reg_buffer::raw_supply_integer): Likewise.
4213 (reg_buffer::raw_supply_zeroed): Likewise.
4214 (reg_buffer::raw_collect): Likewise.
4215 (reg_buffer::raw_collect_integer): Likewise.
4217 2018-06-10 Tom Tromey <tom@tromey.com>
4219 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
4220 (class remote_state) <stop_reply_queue>: Now std::vector.
4221 (remote_state::~remote_state)
4222 (remote_target::stop_reply_queue_length): Update.
4223 (struct queue_iter_param, remove_child_of_pending_fork)
4224 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
4225 (check_pending_event_prevents_wildcard_vcont_callback)
4226 (remove_stop_reply_for_inferior)
4227 (remove_stop_reply_of_remote_state)
4228 (remote_notif_remove_once_on_match)
4229 (stop_reply_match_ptid_and_ws)
4230 (remote_kill_child_of_pending_fork): Remove.
4231 (remote_target::remove_new_fork_children)
4232 (remote_target::check_pending_events_prevent_wildcard_vcont)
4233 (remote_target::discard_pending_stop_replies)
4234 (remote_target::discard_pending_stop_replies_in_queue)
4235 (remote_target::remote_notif_remove_queued_reply)
4236 (remote_target::queued_stop_reply)
4237 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
4238 (remote_target::wait, remote_target::kill_new_fork_children)
4239 (remote_target::async): Update.
4241 2018-06-10 Tom Tromey <tom@tromey.com>
4243 * record-full.c (record_full_arch_list_cleanups): Remove.
4244 (record_full_message): Use try/catch.
4245 (record_full_wait_cleanups): Remove.
4246 (record_full_wait_1): Use try/catch.
4247 (record_full_restore): Likewise.
4249 2018-06-10 Tom Tromey <tom@tromey.com>
4251 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
4252 declare VEC. Add constructor.
4253 <in_target_beneath>: Now bool.
4254 (record_full_breakpoints): Now a std::vector, static.
4255 (record_full_sync_record_breakpoints)
4256 (record_full_init_record_breakpoints)
4257 (record_full_target::insert_breakpoint)
4258 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
4260 2018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
4262 * dwarf2read.c (process_cu_includes): Remove struct keyword.
4263 * serial.c (serial_interface_lookup): Remove struct keyword.
4265 2018-06-10 Tom Tromey <tom@tromey.com>
4267 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
4269 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
4271 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
4273 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
4274 "beneath" as a method.
4275 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
4276 Use "beneath" as a method.
4278 2018-06-10 Tom Tromey <tom@tromey.com>
4280 * tracefile.c (struct trace_file_writer_deleter): New.
4281 <operator()>: Rename from trace_file_writer_xfree.
4282 (trace_file_writer_up): New typedef.
4283 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
4285 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
4287 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
4288 <m_registers, m_register_status>: Change type to
4290 * regcache.c (reg_buffer::reg_buffer): Use new instead of
4293 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
4295 * common/common-regcache.h (enum register_status): Add
4296 underlying type "signed char".
4297 * regcache.h (reg_buffer) <m_register_status>: Change type to
4299 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
4300 register_status instead of signed char.
4301 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
4302 (reg_buffer::get_register_status): Remove cast.
4303 (readable_regcache::raw_read): Remove cast.
4304 (readable_regcache::cooked_read): Remove cast.
4306 2018-06-09 Tom Tromey <tom@tromey.com>
4308 * source.c (reverse_search_command, forward_search_command): Use
4311 2018-06-09 Tom Tromey <tom@tromey.com>
4313 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
4314 (serial_ops_list): Now static, std::vector.
4315 (serial_interface_lookup, serial_add_interface): Update.
4317 2018-06-09 Tom Tromey <tom@tromey.com>
4319 * dwarf2read.c (process_cu_includes): Update.
4320 (process_full_comp_unit): Update.
4321 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
4324 2018-06-08 Paul Koning <paul_koning@dell.com>
4328 * python/python.c (do_start_initialization):
4329 Avoid call to internal Python API.
4330 (init__gdb_module): New function.
4332 2018-06-08 Gary Benson <gbenson@redhat.com>
4334 * linux-thread-db.c (valprint.h): New include.
4335 (struct check_thread_db_info): New structure.
4336 (check_thread_db_on_load, tdb_testinfo): New static globals.
4337 (check_thread_db, check_thread_db_callback): New functions.
4338 (try_thread_db_load_1): Run integrity checks if requested.
4339 (maintenance_check_libthread_db): New function.
4340 (_initialize_thread_db): Register "maint check libthread-db"
4341 and "maint set/show check-libthread-db".
4342 * NEWS: Mention the above new commands.
4344 2018-06-08 Tom Tromey <tom@tromey.com>
4346 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
4349 2018-06-08 Tom Tromey <tom@tromey.com>
4351 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
4353 2018-06-08 Tom Tromey <tom@tromey.com>
4355 * common/btrace-common.h (struct btrace_data): Add constructor,
4356 destructor, move assignment operator.
4357 <empty, clear, fini>: New methods.
4358 <format>: Initialize.
4359 (btrace_data_init, btrace_data_fini, btrace_data_clear)
4360 (btrace_data_empty): Don't declare.
4361 * common/btrace-common.c (btrace_data_init): Remove.
4362 (btrace_data::fini): Rename from btrace_data_fini.
4363 (btrace_data::empty): Rename from btrace_data_empty.
4364 (btrace_data::clear): Rename from btrace_data_clear. Return
4366 * btrace.h (make_cleanup_btrace_data): Don't declare.
4367 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
4368 (parse_xml_btrace): Update.
4369 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
4370 (maint_btrace_clear_packet_history_cmd): Update.
4372 2018-06-07 Pedro Alves <palves@redhat.com>
4374 * target.h (target_ops) <beneath>: Now a method. All references
4376 (class target_stack): New.
4377 * target.c (g_target_stack): New.
4378 (g_current_top_target): Delete.
4379 (current_top_target): Get the top target out of g_target_stack.
4380 (target_stack::push, target_stack::unpush): New.
4381 (push_target, unpush_target): Reimplement.
4382 (target_is_pushed): Reimplement in terms of g_target_stack.
4383 (target_ops::beneath, target_stack::find_beneath): New.
4385 2018-06-07 Pedro Alves <palves@redhat.com>
4387 * target.h (find_target_beneath): Delete declaration.
4388 * target.c (find_target_beneath): Delete definition.
4389 * aix-thread.c: All callers of find_target_beneath adjusted to
4390 call target_ops::beneath instead.
4391 * bsd-uthread.c: Likewise.
4392 * linux-thread-db.c: Likewise.
4393 * ravenscar-thread.c: Likewise.
4394 * sol-thread.c: Likewise.
4395 * spu-multiarch.c: Likewise.
4397 2018-06-07 Pedro Alves <palves@redhat.com>
4399 * target.h (target_ops) <beneath>: Now a method. All references
4401 (target_ops) <m_beneath>: New.
4402 * target.c (target_ops::beneath): New.
4403 * corelow.c: Adjust all references to target_ops::beneath.
4404 * linux-thread-db.c: Likewise.
4405 * make-target-delegates: Likewise.
4406 * record-btrace.c: Likewise.
4407 * record-full.c: Likewise.
4408 * remote.c: Likewise.
4409 * target.c: Likewise.
4410 * target-delegates.c: Regenerate.
4412 2018-06-07 Pedro Alves <palves@redhat.com>
4414 * target.h (target_stack): Delete.
4415 (current_top_target): Declare function.
4416 * target.c (target_stack): Delete.
4417 (g_current_top_target): New.
4418 (current_top_target): New function.
4419 * auxv.c: Use current_top_target instead of target_stack
4421 * avr-tdep.c: Likewise.
4422 * breakpoint.c: Likewise.
4423 * corefile.c: Likewise.
4424 * elfread.c: Likewise.
4426 * exceptions.c: Likewise.
4427 * frame.c: Likewise.
4428 * gdbarch-selftests.c: Likewise.
4429 * gnu-v3-abi.c: Likewise.
4430 * ia64-tdep.c: Likewise.
4431 * ia64-vms-tdep.c: Likewise.
4432 * infcall.c: Likewise.
4433 * infcmd.c: Likewise.
4434 * infrun.c: Likewise.
4435 * linespec.c: Likewise.
4436 * linux-tdep.c: Likewise.
4437 * minsyms.c: Likewise.
4438 * ppc-linux-nat.c: Likewise.
4439 * ppc-linux-tdep.c: Likewise.
4440 * procfs.c: Likewise.
4441 * regcache.c: Likewise.
4442 * remote.c: Likewise.
4443 * rs6000-tdep.c: Likewise.
4444 * s390-linux-nat.c: Likewise.
4445 * s390-tdep.c: Likewise.
4446 * solib-aix.c: Likewise.
4447 * solib-darwin.c: Likewise.
4448 * solib-dsbt.c: Likewise.
4449 * solib-spu.c: Likewise.
4450 * solib-svr4.c: Likewise.
4451 * solib-target.c: Likewise.
4452 * sparc-tdep.c: Likewise.
4453 * sparc64-tdep.c: Likewise.
4454 * spu-tdep.c: Likewise.
4455 * symfile.c: Likewise.
4456 * symtab.c: Likewise.
4457 * target-descriptions.c: Likewise.
4458 * target-memory.c: Likewise.
4459 * target.c: Likewise.
4460 * target.h: Likewise.
4461 * tracefile-tfile.c: Likewise.
4462 * tracepoint.c: Likewise.
4463 * valops.c: Likewise.
4464 * valprint.c: Likewise.
4465 * value.c: Likewise.
4466 * windows-tdep.c: Likewise.
4467 * mi/mi-main.c: Likewise.
4469 2018-06-07 Tom Tromey <tom@tromey.com>
4471 * valprint.h (build_address_symbolic): Declare.
4472 * printcmd.c (print_address_symbolic): Update.
4473 (build_address_symbolic): Change "name" and "filename" to
4475 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4477 * defs.h (build_address_symbolic): Remove declaration.
4479 2018-06-07 Alan Hayward <alan.hayward@arm.com>
4481 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
4482 (aarch64_vnv_type): Add function.
4483 (aarch64_pseudo_register_name): Add V regs for SVE.
4484 (aarch64_pseudo_register_type): Likewise.
4485 (aarch64_pseudo_register_reggroup_p): Likewise.
4486 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
4487 (aarch64_pseudo_read_value): Add V regs for SVE.
4488 (aarch64_pseudo_write_2): Use V0 offset for SVE
4489 (aarch64_pseudo_write): Add V regs for SVE.
4490 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
4492 2018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
4494 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
4495 (sve_vl_from_vq): Likewise.
4497 2018-06-05 Tom Tromey <tom@tromey.com>
4499 * cli/cli-cmds.c (show_version): Update.
4500 * top.c (print_gdb_version): Add "interactive" parameter.
4502 * main.c (captured_main_1): Update.
4503 * top.h (print_gdb_version): Add "interactive" parameter and a
4506 2018-06-05 David Malcolm <dmalcolm@redhat.com>
4508 * common/enum-flags.h: Add trailing semicolon to example in
4511 2018-06-05 Tom Tromey <tom@tromey.com>
4514 * NEWS: Add entry about pager.
4515 * utils.c (pagination_disabled_for_command): New global.
4516 (prompt_for_continue): Allow "c" response to prompt.
4517 (reinitialize_more_filter): Clear
4518 pagination_disabled_for_command.
4519 (fputs_maybe_filtered): Check pagination_disabled_for_command.
4521 2018-06-04 Tom Tromey <tom@tromey.com>
4523 * ada-lang.h (ada_lookup_symbol_list): Update.
4524 * ada-lang.c (resolve_subexp): Update.
4525 (symbols_are_identical_enums): Change type of syms. Remove nsyms
4527 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
4528 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
4529 results parameter to std::vector.
4530 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
4532 * ada-exp.y (block_lookup): Update.
4533 (select_possible_type_sym): Change type of syms. Remove nsyms
4535 (write_var_or_type, write_name_assoc): Update.
4537 2018-06-04 Joel Brobecker <brobecker@adacore.com>
4539 * windows-nat.c (windows_nat_target::xfer_partial): Return
4540 TARGET_XFER_E_IO if we need to delegate to the target beneath
4541 but BENEATH is NULL.
4543 2018-06-04 Simon Marchi <simon.marchi@ericsson.com>
4545 * Makefile.in (config.status): Add configure.nat as a
4548 2018-06-04 Tom Tromey <tom@tromey.com>
4550 * cp-name-parser.y (cpname_state): Add method declarations.
4551 (HANDLE_QUAL): Update.
4552 (cpname_state::d_grab, cpname_state::fill_comp)
4553 (cpname_state::make_operator, cpname_state::make_dtor)
4554 (cpname_state::make_builtin_type, cpname_state::make_name)
4555 (cpname_state::d_qualify, cpname_state::d_int_type)
4556 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
4557 (%union): Move earlier.
4559 2018-06-04 Alan Hayward <alan.hayward@arm.com>
4561 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
4563 2018-06-04 Alan Hayward <alan.hayward@arm.com>
4565 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
4566 (aarch64_pseudo_write_1): Likewise.
4567 (aarch64_pseudo_read_value): Use helper.
4568 (aarch64_pseudo_write): Likewise.
4570 2018-06-04 Pedro Alves <palves@redhat.com>
4572 * darwin-nat.c (darwin_ops): Delete.
4573 (darwin_attach_pid): Use get_native_target.
4575 2018-06-04 Alan Hayward <alan.hayward@arm.com>
4577 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
4578 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
4580 2018-06-04 Alan Hayward <alan.hayward@arm.com>
4582 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
4583 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
4584 (aarch64_gdbarch_init): Check for SVE.
4585 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
4587 2018-06-04 Alan Hayward <alan.hayward@arm.com>
4589 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
4590 * aarch64-tdep.h (aarch64_read_description): Likewise.
4591 * arch/aarch64.c (aarch64_create_target_description): Likewise.
4592 * arch/aarch64.h (aarch64_create_target_description): Likewise.
4593 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
4594 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
4595 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
4597 2018-06-02 Simon Marchi <simon.marchi@ericsson.com>
4599 * value.c (value_fetch_lazy_bitfield): New.
4600 (value_fetch_lazy_memory): New.
4601 (value_fetch_lazy_register): New.
4602 (value_fetch_lazy): Factor out to smaller functions.
4604 2018-06-01 Tom Tromey <tom@tromey.com>
4606 * cp-name-parser.y (backslashable, represented): Now const.
4608 2018-06-01 Tom Tromey <tom@tromey.com>
4610 * cp-name-parser.y: Include parser-defs.h.
4611 (parser_fprintf): Remove declaration.
4613 2018-06-01 Tom Tromey <tom@tromey.com>
4615 * cp-name-parser.y: Use %pure-parser, %lex-param, and
4617 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
4618 (global_result): Remove globals.
4619 (struct cpname_state): New.
4620 (yyparse): Don't declare.
4621 (yylex, yyerror): Move declarations after %union.
4622 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
4623 (make_name): Add state parameter.
4625 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
4627 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
4629 (yylex): Add lvalp, state parameters.
4630 (yyerror): Add state parameter.
4631 (cp_demangled_name_to_comp): Update.
4633 2018-06-01 Tom Tromey <tom@tromey.com>
4635 * cp-name-parser.y (parser_fprintf): Declare.
4636 (GDB_YY_REMAP_PREFIX): Define.
4637 Include yy-remap.h. Don't redefine yy* identifiers.
4639 2018-06-01 Tom Tromey <tom@tromey.com>
4641 * python/py-type.c (typy_legacy_template_argument): Update.
4642 * cp-support.h (cp_demangled_name_to_comp): Update.
4643 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
4644 parameter to be a "std::string *".
4647 2018-06-01 H.J. Lu <hongjiu.lu@intel.com>
4649 * ada-lex.l: Include "diagnostics.h" instead of
4650 "common/diagnostics.h".
4651 * unittests/environ-selftests.c: Likewise.
4652 * common/diagnostics.h: Moved to ../include.
4654 2018-06-01 Joel Brobecker <brobecker@adacore.com>
4656 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
4657 to language_mode_manual while calling breakpoint_re_set_one.
4659 2018-06-01 Tom Tromey <tom@tromey.com>
4661 * valops.c (value_cast_structs, destructor_name_p): Update.
4662 * symtab.c (gdb_mangle_name): Update.
4663 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
4665 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
4666 (pascal_object_print_value_fields, pascal_object_print_value):
4668 * p-typeprint.c (pascal_type_print_derivation_info): Update.
4669 * linespec.c (find_methods): Update.
4670 * gdbtypes.h (type_name_no_tag): Remove.
4671 (type_name_or_error): Rename from type_name_no_tag_or_error.
4672 * gdbtypes.c (type_name_no_tag): Remove.
4673 (type_name_or_error): Rename from type_name_no_tag_or_error.
4674 (lookup_struct_elt_type, check_typedef): Update.
4675 * expprint.c (print_subexp_standard): Update.
4676 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
4677 * d-namespace.c (d_lookup_nested_symbol): Update.
4678 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
4679 (cp_print_class_member): Update.
4680 * cp-namespace.c (cp_lookup_nested_symbol): Update.
4681 * completer.c (add_struct_fields): Update.
4682 * c-typeprint.c (cp_type_print_derivation_info)
4683 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
4685 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
4686 (ada_prefer_type, ada_is_exception_sym): Update.
4688 2018-06-01 Tom Tromey <tom@tromey.com>
4690 * valops.c (enum_constant_from_type, value_namespace_elt)
4691 (value_maybe_namespace_elt): Update.
4692 * valarith.c (find_size_for_pointer_math): Update.
4693 * target-descriptions.c (make_gdb_type): Update.
4694 * symmisc.c (print_symbol): Update.
4695 * stabsread.c (define_symbol, read_type)
4696 (complain_about_struct_wipeout, add_undefined_type)
4697 (cleanup_undefined_types_1): Update.
4698 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
4699 (rust_range_type_p, val_print_struct, rust_print_struct_def)
4700 (rust_internal_print_type, rust_composite_type)
4701 (rust_evaluate_funcall, rust_evaluate_subexp)
4702 (rust_inclusive_range_type_p): Update.
4703 * python/py-type.c (typy_get_tag): Update.
4704 * p-typeprint.c (pascal_type_print_base): Update.
4705 * mdebugread.c (parse_symbol, parse_type): Update.
4706 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
4708 * guile/scm-type.c (gdbscm_type_tag): Update.
4709 * go-lang.c (sixg_string_p): Update.
4710 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
4712 * gdbtypes.h (struct main_type) <tag_name>: Remove.
4713 (TYPE_TAG_NAME): Remove.
4714 * gdbtypes.c (type_name_no_tag): Simplify.
4715 (check_typedef, check_types_equal, recursive_dump_type)
4716 (copy_type_recursive, arch_composite_type): Update.
4717 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
4718 in summary mode when needed.
4719 * eval.c (evaluate_funcall): Update.
4720 * dwarf2read.c (fixup_go_packaging, read_structure_type)
4721 (process_structure_scope, read_enumeration_type)
4722 (read_namespace_type, read_module_type, determine_prefix): Update.
4723 * cp-support.c (inspect_type): Update.
4724 * coffread.c (process_coff_symbol, decode_base_type): Update.
4725 * c-varobj.c (c_is_path_expr_parent): Update.
4726 * c-typeprint.c (c_type_print_base_struct_union): Update.
4727 (c_type_print_base_1): Update. Print struct/class/union/enum in
4728 summary when using C language.
4729 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
4730 (gen_maybe_namespace_elt): Update.
4731 * ada-lang.c (ada_type_name): Simplify.
4732 (empty_record, ada_template_to_fixed_record_type_1)
4733 (template_to_static_fixed_type)
4734 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
4736 2018-06-01 Tom Tromey <tom@tromey.com>
4738 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
4740 * c-typeprint.c (c_print_type_1): Add "language" parameter.
4741 (c_print_type): Update.
4742 (c_print_type): New overload.
4743 (c_type_print_varspec_prefix, c_type_print_args)
4744 (c_type_print_varspec_suffix, c_print_type_no_offsets)
4745 (c_type_print_base_struct_union, c_type_print_base_1)
4746 (cp_type_print_method_args): Add "language" parameter.
4747 (c_type_print_base): Update.
4748 * c-lang.h (c_print_type): Add new overload.
4750 2018-06-01 Tom Tromey <tom@tromey.com>
4752 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
4753 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
4755 2018-06-01 Alan Hayward <alan.hayward@arm.com>
4757 * aarch64-tdep.c (aarch64_sve_register_names): New const
4759 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
4760 (AARCH64_SVE_Z_REGS_NUM): New define.
4761 (AARCH64_SVE_P_REGS_NUM): Likewise.
4762 (AARCH64_SVE_NUM_REGS): Likewise.
4764 2018-05-31 Uros Bizjak <ubizjak@gmail.com>
4766 * nat/linux-ptrace.h [__alpha__]
4767 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
4770 2018-05-31 Maciej W. Rozycki <macro@mips.com>
4772 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
4773 the endianness selected.
4774 * NEWS: Document `set endian auto' mode operation update.
4776 2018-05-31 Alan Hayward <alan.hayward@arm.com>
4778 * Makefile.in: Add new header.
4779 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
4780 (sve_vl_from_vg): Likewise.
4781 (sve_vq_from_vl): Likewise.
4782 (sve_vl_from_vq): Likewise.
4783 (sve_vq_from_vg): Likewise.
4784 (sve_vg_from_vq): Likewise.
4785 * configure.nat: Add new c file.
4786 * nat/aarch64-sve-linux-ptrace.c: New file.
4787 * nat/aarch64-sve-linux-ptrace.h: New file.
4789 2018-05-31 Alan Hayward <alan.hayward@arm.com>
4791 * aarch64-linux-nat.c (aarch64_linux_read_description):
4793 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
4795 * aarch64-tdep.c (tdesc_aarch64_list): Add.
4796 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
4797 (aarch64_gdbarch_init): Add parmeter zero.
4798 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
4799 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
4800 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
4802 * doc/gdb.texinfo: Describe SVE feature
4803 * features/aarch64-sve.c: New file.
4805 2018-05-31 Omair Javaid <omair.javaid@linaro.org>
4808 * gdbarch.sh (significant_addr_bit): Default to zero when
4809 not set by target architecture.
4810 * gdbarch.c: Re-generated.
4811 * utils.c (address_significant): Update.
4813 2018-05-30 Joel Brobecker <brobecker@adacore.com>
4815 * stack.c (func_command): Remove trailing newline in call to error.
4817 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4819 * regcache.h (regcache_raw_collect): Remove, update callers to
4820 use regcache::raw_collect.
4821 * regcache.c (regcache_raw_collect): Remove.
4823 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4825 * regcache.h (regcache_raw_supply): Remove, update callers to
4826 use detached_regcache::raw_supply.
4827 * regcache.c (regcache_raw_supply): Remove.
4829 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4831 * regcache.h (regcache_cooked_write_part): Remove, update
4832 callers to use regcache::cooked_write_part.
4833 * regcache.c (regcache_cooked_write_part): Remove.
4835 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4837 * regcache.h (regcache_cooked_read_part): Remove, update callers
4838 to use readable_regcache::cooked_read_part.
4839 * regcache.c (regcache_cooked_read_part): Remove.
4841 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4843 * regcache.h (regcache_cooked_read_value): Remove, update
4844 callers to use readable_regcache::cooked_read_value.
4845 * regcache.c (regcache_cooked_read_value): Remove.
4847 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4849 * regcache.h (regcache_cooked_write): Remove, update callers to
4850 use regcache::cooked_write.
4851 * regcache.c (regcache_cooked_write): Remove.
4853 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4855 * regcache.h (regcache_invalidate): Remove, update callers to
4856 use detached_regcache::invalidate instead.
4857 * regcache.c (regcache_invalidate): Remove.
4859 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4861 * regcache.h (regcache_raw_write_part): Remove, update callers
4862 to use regcache::raw_write_part instead.
4863 * regcache.c (regcache_raw_write_part): Remove.
4865 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4867 * regcache.h (regcache_raw_read_part): Remove, update callers to
4868 use readable_regcache::raw_read_part instead.
4869 * regcache.c (regcache_raw_read_part): Remove.
4871 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4873 * regcache.h (regcache_cooked_read): Remove, update callers to
4874 use readable_regcache::cooked_read instead.
4875 * regcache.c (regcache_cooked_read): Remove.
4877 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4879 * regcache.h (regcache_raw_write): Remove, update callers to use
4880 regcache::raw_write instead.
4881 * regcache.c (regcache_raw_write): Remove.
4883 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4885 * regcache.h (regcache_raw_read): Remove, update callers to use
4886 readable_regcache::raw_read instead.
4887 * regcache.c (regcache_raw_read): Remove.
4889 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4891 * regcache.h (regcache_raw_update): Remove, update callers to
4892 use readable_regcache::raw_update instead.
4893 * regcache.c (regcache_raw_update): Remove.
4895 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4897 * regcache.h (regcache_register_status): Remove, update callers
4898 to use reg_buffer::get_register_status directly instead.
4899 * regcache.c (regcache_register_status): Remove.
4901 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4903 * regcache.h (regcache_get_ptid): Remove, update all callers to
4904 call regcache::ptid instead.
4905 * regcache.c (regcache_get_ptid): Remove.
4907 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
4909 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
4911 2018-05-30 Pedro Alves <palves@redhat.com>
4913 * common/common-exceptions.h (exception_rethrow): Use
4916 2018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
4918 * breakpoint.c (print_solib_event, check_status_catch_solib):
4919 Remove struct keyword in range-based for loops.
4920 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
4921 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
4923 * linespec.c (find_superclass_methods, search_minsyms_for_name):
4925 * symfile.c (addr_info_make_relative): Likewise.
4926 * thread.c (value_in_thread_stack_temporaries): Likewise.
4928 2018-06-12 Weimin Pan <weimin.pan@oracle.com>
4931 * valops.c (value_struct_elt_for_reference): Call check_typedef on
4932 aggregate type to get its real type before accessing it.
4934 2018-05-29 Weimin Pan <weimin.pan@oracle.com>
4936 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
4937 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
4938 * coff-pe-read.c (add_pe_forwarded_sym): Replace
4939 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
4940 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
4941 * jit.c (jit_breakpoint_re_set_internal): Likewise.
4942 * printcmd.c (info_address_command): Likewise.
4944 2018-05-29 Tom Tromey <tom@tromey.com>
4946 * windows-nat.c (handle_exception): Update fall-through comment.
4948 2018-05-29 Tom Tromey <tom@tromey.com>
4950 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
4951 (struct program_space) <added_solibs>: Now a std::vector.
4952 * breakpoint.c (print_solib_event): Update.
4953 (check_status_catch_solib): Update.
4954 * progspace.c (clear_program_space_solib_cache): Update.
4955 * solib.c (update_solib_list): Update.
4957 2018-05-29 Tom Tromey <tom@tromey.com>
4959 * python/py-type.c (typy_richcompare): Update.
4960 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
4961 * gdbtypes.h (types_deeply_equal): Return bool.
4962 (types_equal): Likewise.
4963 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
4965 (check_types_equal): Change worklist to std::vector. Return
4967 (struct type_equality_entry): Add constructor.
4968 (compare_maybe_null_strings): Return bool.
4969 (check_types_worklist): Return bool. Change worklist to
4971 (types_deeply_equal): Use std::vector.
4972 (types_equal): Return bool.
4973 (compare_maybe_null_strings): Simplify.
4975 2018-05-29 Tom Tromey <tom@tromey.com>
4977 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
4979 2018-05-29 Tom Tromey <tom@tromey.com>
4981 * objc-lang.h: Don't include cp-support.h.
4982 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
4985 2018-05-27 Tom Tromey <tom@tromey.com>
4987 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
4989 2018-05-25 Tom Tromey <tom@tromey.com>
4991 * value.c (value::location): Initialize.
4993 2018-05-25 Tom Tromey <tom@tromey.com>
4995 * dbxread.c (init_bincl_list): Remove.
4996 (bincl_list): Now a std::vector.
4997 (bincls_allocated, next_bincl): Remove.
4998 (free_bincl_list, do_free_bincl_list_cleanup)
4999 (make_cleanup_free_bincl_list): Remove.
5000 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
5002 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
5003 (struct header_file_location): Add constructor.
5004 (add_bincl_to_list): Remove.
5006 2018-05-25 Tom Tromey <tom@tromey.com>
5008 * tui/tui.c (tui_enable): Update.
5009 * mi/mi-interp.c (mi_interp::init): Update.
5010 * interps.h (class interp) <name>: New method.
5011 <m_name>: Rename from name.
5012 (~scoped_restore_interp): Update.
5013 * interps.c (interp::interp): Update.
5014 (interp_add, interp_set, interp_lookup_existing)
5015 (current_interp_named_p): Update.
5017 2018-05-25 Tom Tromey <tom@tromey.com>
5019 * interps.c (interp_name): Remove.
5020 * mi/mi-interp.c (mi_interp::init): Update.
5021 * interps.h (interp_name): Remove.
5022 (~scoped_restore_interp): Update.
5023 * tui/tui.c (tui_enable): Update.
5025 2018-05-25 Tom Tromey <tom@tromey.com>
5027 * utils.c (fputs_maybe_filtered): Update.
5028 * linespec.c (decode_line_full): Update.
5029 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
5030 (mi_print_breakpoint_for_event, mi_solib_loaded)
5031 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
5032 (mi_user_selected_context_changed): Update.
5033 * mi/mi-main.c (mi_execute_command): Update.
5034 * cli/cli-script.c (execute_control_command): Update.
5035 * python/python.c (execute_gdb_command): Update.
5036 * solib.c (info_sharedlibrary_command): Update.
5037 * interps.c (interp_ui_out): Remove.
5038 * interps.h (interp_ui_out): Remove.
5040 2018-05-25 Tom Tromey <tom@tromey.com>
5042 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
5043 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
5044 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
5046 2018-05-25 Tom Tromey <tom@tromey.com>
5048 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
5049 * interps.c (interp_exec): Use scoped_restore.
5051 2018-05-25 Tom Tromey <tom@tromey.com>
5053 * remote.c (remote_target::remote_file_get): Use
5055 (remote_target::remote_file_put): Likewise.
5057 2018-05-25 Tom Tromey <tom@tromey.com>
5059 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
5061 (get_pe_section_index, add_pe_exported_sym): Update.
5062 (read_pe_exported_syms): Use gdb::def_vector.
5064 2018-05-25 Tom Tromey <tom@tromey.com>
5066 * frame.c (remove_prev_frame): Remove.
5067 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
5069 2018-05-25 Maciej W. Rozycki <macro@mips.com>
5071 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
5073 * mips-linux-nat.c (supply_fpregset): Always call
5074 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
5075 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
5076 `mips_fill_fpregset'.
5077 * mips-linux-tdep.c (mips_supply_fpregset)
5078 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
5079 (mips_fill_fpregset_wrapper): Remove functions.
5080 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
5081 (mips_linux_fpregset): Remove variable.
5082 (mips_linux_iterate_over_regset_sections): Use
5083 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
5084 (mips_linux_o32_sigframe_init): Remove comment.
5086 2018-05-25 Pedro Alves <palves@redhat.com>
5088 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
5089 (struct readahead_cache, struct packet_reg, struct
5090 remote_arch_state, class remote_state): Move higher up in the
5092 (remote_target::m_remote_state): Now an object instead of a pointer.
5093 (remote_target::get_remote_state): Adjust.
5095 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
5097 * stack.c (select_and_print_frame): Delete.
5098 (struct function_bounds): Move struct within function.
5099 (func_command): Most content moved into new function
5100 find_frame_for_function, use new function, print result, add
5102 (find_frame_for_function): New function, now returns a result.
5104 2018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5106 * stack.c (iterate_over_block_arg_vars): Fix comment.
5107 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
5109 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
5113 (scoped_restore_selected_frame::scoped_restore_selected_frame):
5115 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
5117 * frame.h (class scoped_restore_selected_frame): New class.
5118 * stack.c (print_frame_local_vars): Remove catching and rethrowing
5119 of any exception, use scoped_restore_selected_frame to restore the
5122 2018-05-24 Pedro Alves <palves@redhat.com>
5124 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
5127 2018-05-23 Tom Tromey <tom@tromey.com>
5129 * complaints.c (struct complaints): Remove.
5130 (symfile_complaint_book): Remove.
5131 (series): New global.
5132 (complaint_internal): Update.
5133 (clear_complaints): Update.
5135 2018-05-23 Tom Tromey <tom@tromey.com>
5137 * complaints.c (counters): New global.
5138 (struct complain): Remove.
5139 (struct complaints) <root>: Remove.
5140 (complaint_sentinel): Remove.
5141 (symfile_complaint_book): Update.
5142 (find_complaint) Remove.
5143 (complaint_internal, clear_complaints): Update.
5145 2018-05-23 Tom Tromey <tom@tromey.com>
5147 * complaints.c (struct complain) <file, line>: Remove.
5148 (find_complaint): Remove file, line parameters.
5149 (complaint_internal): Update.
5151 2018-05-23 Tom Tromey <tom@tromey.com>
5153 * complaints.c (vcomplaint): Remove.
5154 (complaint_internal) Merge in contents of vcomplaint.
5156 2018-05-23 Tom Tromey <tom@tromey.com>
5158 * complaints.c (struct complaints) <explanation>: Remove.
5159 (symfile_explanations): Remove.
5160 (symfile_complaint_book): Update.
5161 (vcomplaint): Update.
5162 (struct explanation): Remove.
5164 2018-05-23 Tom Tromey <tom@tromey.com>
5166 * complaints.c (symfile_complaints): Remove.
5167 (complaint_internal): Remove "complaints" parameter.
5168 (clear_complaints, vcomplaint): Remove "c" parameter.
5169 (get_complaints): Remove.
5170 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
5171 (dwarf2_debug_line_missing_file_complaint)
5172 (dwarf2_debug_line_missing_end_sequence_complaint)
5173 (dwarf2_complex_location_expr_complaint)
5174 (dwarf2_const_value_length_mismatch_complaint)
5175 (dwarf2_section_buffer_overflow_complaint)
5176 (dwarf2_macro_malformed_definition_complaint)
5177 (dwarf2_invalid_attrib_class_complaint)
5178 (create_addrmap_from_index, dw2_symtab_iter_next)
5179 (dw2_expand_marked_cus)
5180 (dw2_debug_names_iterator::find_vec_in_debug_names)
5181 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
5182 (create_debug_type_hash_table, init_cutu_and_read_dies)
5183 (partial_die_parent_scope, add_partial_enumeration)
5184 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
5185 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
5186 (read_import_statement, read_file_scope, create_dwo_cu_reader)
5187 (create_cus_hash_table, create_dwp_hash_table)
5188 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
5189 (dwarf2_rnglists_process, dwarf2_ranges_process)
5190 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
5191 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
5192 (handle_struct_member_die, process_structure_scope)
5193 (read_array_type, read_common_block, read_module_type)
5194 (read_tag_pointer_type, read_typedef, read_base_type)
5195 (read_subrange_type, load_partial_dies, partial_die_info::read)
5196 (partial_die_info::read, partial_die_info::read)
5197 (partial_die_info::read, read_checked_initial_length_and_offset)
5198 (dwarf2_string_attr, read_formatted_entries)
5199 (dwarf_decode_line_header)
5200 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
5201 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
5202 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
5203 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
5204 (get_signatured_type, get_DW_AT_signature_type)
5205 (decode_locdesc, file_file_name, consume_improper_spaces)
5206 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
5207 (dwarf_decode_macro_bytes, dwarf_decode_macros)
5208 (dwarf2_symbol_mark_computed, set_die_type)
5209 (read_attribute_value): Update.
5210 * stap-probe.c (handle_stap_probe, get_stap_base_address):
5212 * dbxread.c (unknown_symtype_complaint)
5213 (lbrac_mismatch_complaint, repeated_header_complaint)
5214 (set_namestring, function_outside_compilation_unit_complaint)
5215 (read_dbx_symtab, process_one_symbol): Update.
5216 * gdbtypes.c (stub_noname_complaint): Update.
5217 * windows-nat.c (handle_unload_dll): Update.
5218 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
5219 (decode_base_type): Update.
5220 * xcoffread.c (bf_notfound_complaint, ef_complaint)
5221 (eb_complaint, record_include_begin, record_include_end)
5222 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
5223 (process_xcoff_symbol, read_symbol)
5224 (function_outside_compilation_unit_complaint)
5225 (scan_xcoff_symtab): Update.
5226 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
5227 * buildsym.c (finish_block_internal, make_blockvector)
5228 (end_symtab_get_static_block, augment_type_symtab): Update.
5229 * dtrace-probe.c (dtrace_process_dof)
5230 (dtrace_static_probe_ops::get_probes): Update.
5231 * complaints.h (struct complaint): Don't declare.
5232 (symfile_complaints): Remove.
5233 (complaint_internal): Remove "complaints" parameter.
5234 (complaint): Likewise.
5235 (clear_complaints): Likewise.
5236 * symfile.c (syms_from_objfile_1, finish_new_objfile)
5237 (reread_symbols): Update.
5238 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
5239 (dwarf2_frame_cache, decode_frame_entry): Update.
5240 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
5241 * objc-lang.c (lookup_objc_class, lookup_child_selector)
5242 (info_selectors_command): Update.
5243 * macrotab.c (macro_include, check_for_redefinition)
5244 (macro_undef): Update.
5245 * objfiles.c (filter_overlapping_sections): Update.
5246 * stabsread.c (invalid_cpp_abbrev_complaint)
5247 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
5248 (define_symbol, error_type, read_type, rs6000_builtin_type)
5249 (stabs_method_name_from_physname, read_member_functions)
5250 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
5251 (attach_fields_to_type, complain_about_struct_wipeout)
5252 (read_range_type, read_args, common_block_start)
5253 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
5255 * mdebugread.c (index_complaint, unknown_ext_complaint)
5256 (basic_type_complaint, bad_tag_guess_complaint)
5257 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
5258 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
5259 (parse_procedure, parse_lines)
5260 (function_outside_compilation_unit_complaint)
5261 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
5262 (bad_tag_guess_complaint, reg_value_complaint): Update.
5263 * cp-support.c (demangled_name_complaint): Update.
5264 * macroscope.c (sal_macro_scope): Update.
5265 * dwarf-index-write.c (class debug_names): Update.
5267 2018-05-23 Tom Tromey <tom@tromey.com>
5269 * complaints.c (clear_complaints): Remove "noisy" parameter.
5270 * complaints.h (clear_complaints): Update.
5271 * symfile.c (syms_from_objfile_1, finish_new_objfile)
5272 (reread_symbols): Update.
5274 2018-05-23 Tom Tromey <tom@tromey.com>
5276 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
5278 (vcomplaint, clear_complaints): Update.
5279 (symfile_explanations): Remove some messages.
5281 2018-05-23 Tom Tromey <tom@tromey.com>
5283 * complaints.c (internal_complaint): Remove.
5284 * complaints.h (internal_complaint): Remove.
5286 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5288 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
5290 2018-05-22 Pedro Alves <palves@redhat.com>
5292 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
5293 (remote_fileio_badfd, remote_fileio_return_errno)
5294 (remote_fileio_return_success, remote_fileio_func_open)
5295 (remote_fileio_func_open, remote_fileio_func_close)
5296 (remote_fileio_func_read, remote_fileio_func_write)
5297 (remote_fileio_func_lseek, remote_fileio_func_rename)
5298 (remote_fileio_func_unlink, remote_fileio_func_stat)
5299 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
5300 (remote_fileio_func_isatty, remote_fileio_func_system): Add
5301 remote_target parameter.
5302 (remote_fio_func_map) <func>: Add remote_target parameter.
5303 (do_remote_fileio_request, remote_fileio_request):
5304 * remote-fileio.h (remote_fileio_request):
5305 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
5306 remote_target parameter.
5307 (remote_notif_process, handle_notification): Adjust to pass down
5309 (remote_notif_state_allocate): Add remote_target parameter. Save
5311 * remote-notif.h (struct remote_target): Forward declare.
5312 (struct notif_client) <parse, ack, can_get_pending_events>: Add
5313 remote_target parameter.
5314 (struct remote_notif_state) <remote>: New field.
5315 (remote_notif_ack, remote_notif_parse): Add remote_target
5317 (remote_notif_state_allocate, remote_notif_state_allocate): Add
5318 remote_target parameter.
5319 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
5320 (threads_listing_context, rmt_thread_action, protocol_feature)
5321 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
5322 (packet_result, struct threads_listing_context, remote_state):
5323 Move definitions and declarations higher up.
5324 (remote_target) <~remote_target>: Declare.
5325 (remote_download_command_source, remote_file_put, remote_file_get)
5326 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
5327 (remote_hostio_pread_vFile, remote_hostio_send_command)
5328 (remote_hostio_set_filesystem, remote_hostio_open)
5329 (remote_hostio_close, remote_hostio_unlink, remote_state)
5330 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
5331 (get_memory_write_packet_size, get_memory_read_packet_size)
5332 (append_pending_thread_resumptions, remote_detach_1)
5333 (append_resumption, remote_resume_with_vcont)
5334 (add_current_inferior_and_thread, wait_ns, wait_as)
5335 (process_stop_reply, remote_notice_new_inferior)
5336 (process_initial_stop_replies, remote_add_thread)
5337 (btrace_sync_conf, remote_btrace_maybe_reopen)
5338 (remove_new_fork_children, kill_new_fork_children)
5339 (discard_pending_stop_replies, stop_reply_queue_length)
5340 (check_pending_events_prevent_wildcard_vcont)
5341 (discard_pending_stop_replies_in_queue, stop_reply)
5342 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
5343 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
5344 (remote_interrupt_as, remote_interrupt_ns)
5345 (remote_get_noisy_reply, remote_query_attached)
5346 (remote_add_inferior, remote_current_thread, get_current_thread)
5347 (set_thread, set_general_thread, set_continue_thread)
5348 (set_general_process, write_ptid)
5349 (remote_unpack_thread_info_response, remote_get_threadinfo)
5350 (parse_threadlist_response, remote_get_threadlist)
5351 (remote_threadlist_iterator, remote_get_threads_with_ql)
5352 (remote_get_threads_with_qxfer)
5353 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
5354 (get_offsets, remote_check_symbols, remote_supported_packet)
5355 (remote_query_supported, remote_packet_size)
5356 (remote_serial_quit_handler, remote_detach_pid)
5357 (remote_vcont_probe, remote_resume_with_hc)
5358 (send_interrupt_sequence, interrupt_query)
5359 (remote_notif_get_pending_events, fetch_register_using_p)
5360 (send_g_packet, process_g_packet, fetch_registers_using_g)
5361 (store_register_using_P, store_registers_using_G)
5362 (set_remote_traceframe, check_binary_download)
5363 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
5364 (remote_xfer_live_readonly_partial, remote_read_bytes)
5365 (remote_send_printf, remote_flash_write, readchar)
5366 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
5367 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
5368 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
5369 (extended_remote_disable_randomization, extended_remote_run)
5370 (send_environment_packet, extended_remote_environment_support)
5371 (extended_remote_set_inferior_cwd, remote_write_qxfer)
5372 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
5373 (packet_command): Now methods of ...
5374 (remote_target): ... this class.
5375 (m_remote_state) <remote_target>: New field.
5376 (struct remote_state) <stop_reply_queue,
5377 remote_async_inferior_event_token, wait_forever_enabled_p>: New
5379 (remote_state::remote_state): Allocate stop_reply_queue.
5380 (remote_state): Delete global.
5381 (get_remote_state_raw): Delete.
5382 (remote_target::get_remote_state): Allocate m_remote_state on
5384 (get_current_remote_target): New.
5385 (remote_ops, extended_remote_ops): Delete.
5386 (wait_forever_enabled_p, remote_async_inferior_event_token):
5387 Delete, moved to struct remote_state.
5388 (remote_target::close): Delete self. Destruction bits split to
5390 (remote_target::~remote_target): ... this.
5391 (show_memory_packet_size): Adjust to use
5392 get_current_remote_target.
5393 (struct protocol_feature) <func>: Add remote_target parameter.
5394 All callers adjusted.
5395 (curr_quit_handler_target): New.
5396 (remote_serial_quit_handler): Reimplement.
5397 (remote_target::open_1): Adjust to use get_current_remote_target.
5398 Heap-allocate remote_target/extended_remote_target instances.
5399 (vcont_builder::vcont_builder): Add remote_target parameter, and
5400 save it in m_remote. All callers adjusted.
5401 (vcont_builder::m_remote): New field.
5402 (vcont_builder::restart, vcont_builder::flush)
5403 (vcont_builder::push_action): Use it.
5404 (remote_target::commit_resume): Use it.
5405 (struct queue_iter_param) <remote>: New field.
5406 (remote_target::remove_new_fork_children): Fill in 'remote' field.
5407 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
5408 (check_pending_event_prevents_wildcard_vcont_callback)
5409 (remote_target::check_pending_events_prevent_wildcard_vcont)
5410 (remote_target::discard_pending_stop_replies)
5411 (remote_target::discard_pending_stop_replies_in_queue)
5412 (remote_target::remote_notif_remove_queued_reply): Fill in
5414 (remote_notif_get_pending_events): New.
5415 (remote_target::readchar, remote_target::remote_serial_write):
5416 Save/restore curr_quit_handler_target.
5418 (kill_new_fork_children): Fill in 'remote' field.
5419 (packet_command): Use get_current_remote_target, defer to
5420 remote_target method of same name.
5421 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
5422 parameter, and save it in m_remote. All callers adjusted.
5423 (scoped_remote_fd::release): Use m_remote.
5424 (scoped_remote_fd::m_remote): New field.
5425 (remote_file_put, remote_file_get, remote_file_delete): Use
5426 get_current_remote_target, defer to remote_target method of same
5428 (remote_btrace_reset): Add remote_state paremeter. Update all
5430 (remote_async_inferior_event_handler). Pass down 'data'.
5431 (remote_new_objfile): Use get_current_remote_target.
5432 (remote_target::vcont_r_supported): New.
5433 (set_range_stepping): Use get_current_remote_target and
5434 remote_target::vcont_r_supported.
5435 (_initialize_remote): Don't allocate 'remote_state' and
5436 'stop_reply_queue' globals.
5437 * remote.h (struct remote_target): Forward declare.
5438 (getpkt, putpkt, remote_notif_get_pending_events): Add
5439 'remote_target' parameter.
5441 2018-05-22 Pedro Alves <palves@redhat.com>
5443 * remote.c (vcont_builder): Now a class. Make all data members
5445 (vcont_builder) <vcont_builder, restart, flush, push_action>:
5447 (vcont_builder_restart): Rename to ...
5448 (vcont_builder::restart): ... this.
5449 (vcont_builder_flush): Rename to ...
5450 (vcont_builder::flush): ... this.
5451 (vcont_builder_push_action): Rename to ...
5452 (vcont_builder::push_action): ... this.
5453 (remote_target::commit_resume): Adjust.
5455 2018-05-22 Pedro Alves <palves@redhat.com>
5457 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
5458 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
5459 (get_fixed_memory_packet_size): New.
5460 (get_memory_packet_size): Use it.
5461 (set_memory_packet_size): Don't override the config size with
5462 DEFAULT_MAX_MEMORY_PACKET_SIZE.
5463 (show_memory_packet_size): Use get_fixed_memory_packet_size.
5464 Don't refer to get_memory_packet_size if not connected to a remote
5465 target. Show "(default)" if configured size is 0.
5467 2018-05-22 Pedro Alves <palves@redhat.com>
5469 * remote.c (remote_target::mourn_inferior): Move
5470 discard_pending_stop_replies call here from ...
5471 (_initialize_remote): ... here.
5473 2018-05-22 Pedro Alves <palves@redhat.com>
5475 * remote.c (compare_section_command): Remove set_general_process
5478 2018-05-22 Pedro Alves <palves@redhat.com>
5480 * remote.c (struct packet_reg, struct remote_arch_state):
5481 Move higher up in the file.
5482 (remote_state) <m_arch_states>: Store remote_arch_state values
5483 instead of remote_arch_state pointers.
5484 (remote_state::get_remote_arch_state): Adjust.
5486 2018-05-22 Pedro Alves <palves@redhat.com>
5488 * remote.c: Include <unordered_map>.
5489 (remote_state): Now a class.
5490 (remote_state) <get_remote_arch_state>: Declare method.
5491 <get_remote_arch_state>: New field.
5492 (remote_arch_state) <remote_arch_state>: Declare ctor.
5493 <regs>: Now a unique_ptr.
5494 (remote_gdbarch_data_handle): Delete.
5495 (get_remote_arch_state): Delete.
5496 (remote_state::get_remote_arch_state): New.
5497 (get_remote_state): Adjust to call remote_state's
5498 get_remote_arch_state method.
5499 (init_remote_state): Delete, bits factored out to ...
5500 (remote_arch_state::remote_arch_state): ... this new method.
5501 (get_remote_packet_size, get_memory_packet_size)
5502 (process_g_packet, remote_target::fetch_registers)
5503 (remote_target::prepare_to_store, store_registers_using_G)
5504 (remote_target::store_registers, remote_target::get_trace_status):
5505 Adjust to call remote_state's method.
5506 (_initialize_remote): Remove reference to
5507 remote_gdbarch_data_handle.
5509 2018-05-22 Pedro Alves <palves@redhat.com>
5511 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
5512 pread>: New method declarations.
5513 (remote_target::open_1): Adjust.
5514 (readahead_cache_invalidate): Rename to ...
5515 (readahead_cache::invalidate): ... this, and adjust to be a class
5517 (readahead_cache_invalidate_fd): Rename to ...
5518 (readahead_cache::invalidate_fd): ... this, and adjust to be a
5520 (remote_hostio_pwrite): Adjust.
5521 (remote_hostio_pread_from_cache): Rename to ...
5522 (readahead_cache::pread): ... this, and adjust to be a class
5524 (remote_hostio_close): Adjust.
5526 2018-05-22 Pedro Alves <palves@redhat.com>
5528 * remote.c (remote_hostio_close_cleanup): Delete.
5529 (class scoped_remote_fd): New.
5530 (remote_file_put, remote_file_get): Use it.
5532 2018-05-22 Pedro Alves <palves@redhat.com>
5534 (struct vCont_action_support): Use bool and initialize all fields.
5535 (struct readahead_cache): Initialize all fields.
5536 (remote_state): Use bool and initialize all fields.
5537 (remote_state::remote_state, remote_state::~remote_state): New.
5538 (new_remote_state): Delete.
5539 (_initialize_remote): Use new to allocate remote_state.
5541 2018-05-22 Pedro Alves <palves@redhat.com>
5545 * c-exp.y: Include "c-support.h".
5546 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
5547 of tolower. Use c_ident_is_alpha to scan names.
5548 * c-lang.c: Include "c-support.h".
5549 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
5550 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
5551 * c-support.h: New file, with bits factored out from ...
5552 * cp-name-parser.y: ... this file.
5553 Include "c-support.h".
5554 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
5555 c-support.h and renamed.
5556 (symbol_end, yylex): Adjust.
5558 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5560 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
5561 parameter type to CORE_ADDR.
5562 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
5563 parameter type in declaration to CORE_ADDR.
5564 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
5565 target_auxv_search to get AT_HWCAP and use the result to get the
5567 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
5568 to CORE_ADDR. Remove the cast of the return value to unsigned
5569 long. Fix error predicate of target_auxv_search.
5570 (ppc_linux_nat_target::read_description): Change the type of the
5571 hwcap variable to CORE_ADDR.
5573 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5575 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
5576 if the size of fpscr is larger than 32 bits.
5578 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5580 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
5581 (ppc32_linux_vsxregmap): New global.
5582 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
5583 regcache_supply_regset, and regcache_collect_regset.
5584 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
5585 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
5586 (fetch_vsx_register, store_vsx_register): Remove.
5587 (fetch_vsx_registers): Add regno parameter. Get regset using
5588 ppc_linux_vsxregset. Use regset to supply registers.
5589 (store_vsx_registers): Add regno parameter. Get regset using
5590 ppc_linux_vsxregset. Use regset to collect registers.
5591 (fetch_register): Call fetch_vsx_registers instead of
5593 (store_register): Call store_vsx_registers instead of
5595 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
5596 new regno parameter.
5597 (store_ppc_registers): Call store_vsx_registers with -1 for the
5598 new regno parameter.
5599 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
5600 (ppc_collect_vsxregset): Remove.
5602 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5604 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
5606 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
5607 for vector register offset fields.
5608 (ppc64_fbsd_reg_offsets): Likewise.
5609 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
5610 to vector register offset fields.
5611 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
5612 to vector register offset fields.
5613 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
5614 vector register offset fields.
5615 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
5616 initializers for vector register offset fields.
5617 (rs6000_aix64_reg_offsets): Likewise.
5618 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
5619 (ppc_supply_vrregset): Remove.
5620 (ppc_collect_vrregset): Remove.
5621 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
5622 (ppc_linux_vrregset) : New function.
5623 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
5624 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
5625 (ppc32_linux_vrregset): Remove.
5626 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
5627 and use result instead of ppc32_linux_vrregset.
5628 (ppc32_linux_reg_offsets): Remove initializers for vector register
5630 (ppc64_linux_reg_offsets): Likewise.
5631 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
5632 * ppc-linux-nat.c: Include regset.h.
5633 (gdb_vrregset_t): Adjust comment to account for little-endian
5635 (supply_vrregset, fill_vrregset): Remove.
5636 (fetch_altivec_register, store_altivec_register): Remove.
5637 (fetch_altivec_registers): Add regno parameter. Get regset using
5638 ppc_linux_vrregset. Use regset to supply registers.
5639 (store_altivec_registers): Add regno parameter. Get regset using
5640 ppc_linux_vrregset. Use regset to collect registers.
5641 (fetch_register): Call fetch_altivec_registers instead of
5642 fetch_altivec_register.
5643 (store_register): Call store_altivec_registers instead of
5644 store_altivec_register.
5645 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
5646 the new regno parameter.
5647 (store_ppc_registers): Call store_altivec_registers with -1 for
5648 the new regno parameter.
5650 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5652 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
5653 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
5654 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
5655 (gdb_vrregset_t): Change array type size to
5656 PPC_LINUX_SIZEOF_VRREGSET.
5657 (gdb_vsxregset_t): Change array type size to
5658 PPC_LINUX_SIZEOF_VSXREGSET.
5659 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
5660 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
5661 PPC_LINUX_SIZEOF_VSXREGSET.
5663 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5665 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
5666 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
5668 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
5669 ppc_linux_target_wordsize with tid.
5670 (ppc_linux_nat_target::read_description): Call ppc_linux_target
5672 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
5673 (ppc64_64bit_inferior_p): Add static and inline specifiers.
5674 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
5675 tid parameter. Remove static specifier.
5676 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
5677 (ppc_linux_target_wordsize): New declaration.
5679 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5681 * arch/ppc-linux-common.c: New file.
5682 * arch/ppc-linux-common.h: New file.
5683 * arch/ppc-linux-tdesc.h: New file.
5684 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
5685 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
5686 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
5687 arch/ppc-linux-tdesc.h.
5688 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
5689 arch/ppc-linux-tdesc.h.
5690 (ppc_linux_nat_target::read_description): Remove target
5691 description matching code. Fill a ppc_linux_features struct and
5692 call ppc_linux_match_description with it. Move comment about ISA
5693 2.05 to ppc-linux-common.c.
5694 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
5695 arch/ppc-linux-tdesc.h.
5696 (ppc_linux_core_read_description): Remove target description
5697 matching code. Fill a ppc_linux_features struct and call
5698 ppc_linux_match_description with it.
5699 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
5700 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
5701 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
5702 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
5703 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
5704 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
5705 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
5706 (tdesc_powerpc_e500l): Remove.
5708 2018-05-22 Joel Brobecker <brobecker@adacore.com>
5710 * ada-lang.c (catch_assert_command): Pass empty string instead
5711 of NULL for excep_string argument.
5713 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5715 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
5716 the width of the requested register exceeds the width of the
5719 2018-05-21 Tom Tromey <tom@tromey.com>
5721 * printcmd.c (output_command): Remove.
5722 (output_command_const): Rename to output_command.
5723 * valprint.h (output_command): Rename from output_command_const.
5724 * tracepoint.c (trace_dump_actions): Call output_command.
5726 2018-05-21 Tom Tromey <tom@tromey.com>
5728 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
5729 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
5730 * ada-lang.h (create_ada_exception_catchpoint): Update.
5731 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
5733 (create_excep_cond_exprs, ~ada_catchpoint)
5734 (should_stop_exception, print_one_exception)
5735 (print_mention_exception, print_recreate_exception): Update.
5736 (ada_get_next_arg): Remove.
5737 (catch_ada_exception_command_split): Use std::string. Change type
5738 of "excep_string", "cond_string".
5739 (catch_ada_exception_command): Update.
5740 (create_ada_exception_catchpoint): Change type of excep_string.
5741 (ada_exception_sal): Remove excep_string parameter.
5742 (~ada_catchpoint): Remove.
5744 2018-05-21 Tom Tromey <tom@tromey.com>
5746 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
5749 2018-05-21 Tom Tromey <tom@tromey.com>
5751 * ada-lang.c (ada_exception_message_1, ada_exception_message):
5752 Return unique_xmalloc_ptr.
5753 (print_it_exception): Update.
5755 2018-05-21 Tom Tromey <tom@tromey.com>
5757 * tracepoint.c (trace_dump_actions): Use std::string.
5759 2018-05-21 Tom Tromey <tom@tromey.com>
5761 * symfile.c (reread_symbols): Use std::string for original_name.
5763 2018-05-21 Tom Tromey <tom@tromey.com>
5765 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
5766 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
5769 2018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
5771 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
5773 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
5774 * objfiles.c (get_objfile_bfd_data): Allocate
5775 objfile_per_bfd_storage with obstack_new when allocating on
5778 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
5780 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
5782 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
5783 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
5784 * mdebugread.c (mdebug_build_psymtabs): Likewise.
5785 (add_pending): Likewise.
5786 (parse_symbol): Likewise.
5787 (parse_partial_symbols): Likewise.
5788 (psymtab_to_symtab_1): Likewise.
5789 (new_psymtab): Likewise.
5790 (elfmdebug_build_psymtabs): Likewise.
5791 * minsyms.c (terminate_minimal_symbol_table): Likewise.
5792 * objfiles.c (get_objfile_bfd_data): Likewise.
5793 (objfile_register_static_link): Likewise.
5794 * psymtab.c (allocate_psymtab): Likewise.
5795 * stabsread.c (read_member_functions): Likewise.
5796 * xcoffread.c (xcoff_end_psymtab): Likewise.
5798 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
5800 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
5801 compiler supports std::is_trivially_constructible.
5802 * common/poison.h: Include obstack.h.
5803 (IsMallocable): Define to is_trivially_constructible if the
5804 compiler supports it, define to true_type otherwise.
5808 (XOBNEWVEC): Redefine.
5809 * gdb_obstack.h (obstack_zalloc): New.
5810 (OBSTACK_ZALLOC): Redefine.
5811 (obstack_calloc): New.
5812 (OBSTACK_CALLOC): Redefine.
5814 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
5815 (gdbarch_obstack): New declaration in gdbarch.h, definition in
5817 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
5818 obstack_calloc/obstack_zalloc.
5819 (gdbarch_obstack_zalloc): Remove.
5820 * target-descriptions.c (tdesc_data_init): Use obstack_new.
5822 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5824 * stack.c (backtrace_command_1): Remove useless variable int i.
5826 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5828 * stack.c (print_frame_info): Fix comment.
5830 2018-05-18 Tom Tromey <tom@tromey.com>
5832 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
5833 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
5834 (~dwarf2_per_objfile): Update
5835 (dwarf2_get_dwz_file): Use new.
5836 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
5839 2018-05-18 Tom Tromey <tom@tromey.com>
5841 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
5843 * dwarf2read.c (struct dwp_file): Add constructor and
5845 (open_and_init_dwp_file): Return a unique_ptr.
5846 (dwarf2_per_objfile, create_dwp_hash_table)
5847 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
5848 (lookup_dwo_unit_in_dwp): Update.
5849 (open_and_init_dwp_file, get_dwp_file): Update.
5851 2018-05-18 Tom Tromey <tom@tromey.com>
5853 * dwarf2read.c (dwarf2_per_objfile): Update.
5854 (struct mapped_index): Add initializers.
5855 (dwarf2_read_index): Use new.
5856 (dw2_symtab_iter_init): Update.
5857 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
5860 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
5862 * dwarf2read.c (mapped_index) <total_size>: Remove.
5864 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
5866 * unittests/format_pieces-selftests.c (test_format_specifier):
5869 2018-05-18 Tom Tromey <tom@tromey.com>
5871 * c-typeprint.c (maybe_print_hole): New function.
5872 (c_print_type_struct_field_offset): Update.
5873 (c_type_print_base_struct_union): Call maybe_print_hole.
5875 2018-05-17 Keith Seitz <keiths@redhat.com>
5877 * breakpoint.c (build_bpstat_chain): New function, moved from
5879 (bpstat_stop_status): Add optional parameter, `stop_chain'.
5880 If no stop chain is passed, call build_bpstat_chain to build it.
5881 * breakpoint.h (build_bpstat_chain): Declare.
5882 (bpstat_stop_status): Move documentation here from breakpoint.c.
5883 * infrun.c (handle_signal_stop): Before eliding inlined frames,
5884 build the stop chain and pass it to skip_inline_frames.
5885 Pass this stop chain to bpstat_stop_status.
5886 * inline-frame.c: Include breakpoint.h.
5887 (stopped_by_user_bp_inline_frame): New function.
5888 (skip_inline_frames): Add parameter `stop_chain'.
5889 Move documention to inline-frame.h.
5890 If non-NULL, use stopped_by_user_bp_inline_frame to determine
5891 whether the frame should be elided.
5892 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
5893 Add moved documentation and update for new parameter.
5895 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
5898 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5899 unittests/format_pieces-selftests.c.
5900 * common/format.h (format_piece) <operator==>: New.
5901 (format_pieces) <operator[]>: Remove.
5902 * common/format.c (format_pieces::format_pieces): Handle \e.
5903 * unittests/format_pieces-selftests.c: New.
5905 2018-05-17 Tom Tromey <tom@tromey.com>
5908 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
5909 (dw2_instantiate_symtab): Add skip_partial parameter.
5910 (dw2_find_last_source_symtab, dw2_map_expand_apply)
5911 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
5912 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
5913 (dw2_expand_symtabs_matching_one)
5914 (dw2_find_pc_sect_compunit_symtab)
5915 (dw2_debug_names_lookup_symbol)
5916 (dw2_debug_names_expand_symtabs_for_function): Update.
5917 (init_cutu_and_read_dies): Add skip_partial parameter.
5918 (process_psymtab_comp_unit, build_type_psymtabs_1)
5919 (process_skeletonless_type_unit, load_partial_comp_unit)
5920 (psymtab_to_symtab_1): Update.
5921 (load_full_comp_unit): Add skip_partial parameter.
5922 (process_imported_unit_die, dwarf2_read_addr_index)
5923 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
5924 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
5925 (read_signatured_type): Update.
5927 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
5929 * value.c (release_value): Remove unused variable.
5930 (record_latest_value): Likewise.
5931 (access_value_history): Likewise.
5932 (preserve_values): Likewise.
5934 2018-05-17 Tom Tromey <tom@tromey.com>
5936 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
5939 2018-05-16 Maciej W. Rozycki <macro@mips.com>
5942 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
5943 Also handle registers whose width is not a multiple of
5945 (linux_nat_trad_target::store_register): Likewise.
5947 2018-05-16 Tom Tromey <tom@tromey.com>
5949 * gdbcore.h (core_bfd): Redefine.
5950 * corelow.c (core_target::close): Update.
5951 (core_target_open): Update.
5952 * progspace.h (struct program_space) <cbfd>: Now a
5955 2018-05-16 Tom Tromey <tom@tromey.com>
5958 * symfile-add-flags.h (enum symfile_add_flags)
5959 <SYMFILE_NOT_FILENAME>: New constant.
5960 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
5961 objfile name from BFD.
5962 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
5963 * minidebug.c (find_separate_debug_file_in_section): Put
5964 ".gnu_debugdata" into BFD's file name.
5966 2018-05-16 Simon Marchi <simon.marchi@ericsson.com>
5968 * regcache.c (regcache_read_ftype, regcache_write_ftype):
5971 2018-05-15 Tamar Christina <tamar.christina@arm.com>
5974 * aarch64-tdep.c (aarch64_analyze_prologue,
5975 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
5976 Indicate not interested in errors.
5978 2018-05-15 Maciej W. Rozycki <macro@mips.com>
5980 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
5981 Supply the MIPS_ZERO_REGNUM register.
5983 2018-05-15 Maciej W. Rozycki <macro@mips.com>
5985 * mips-tdep.c (mask_address_var): Make variable static.
5987 2018-05-14 Tom Tromey <tom@tromey.com>
5989 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
5991 2018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
5993 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
5994 FXSAVE_ADDR for the mxcsr register.
5996 2018-05-11 Max Filippov <jcmvbkbc@gmail.com>
5998 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
6000 2018-05-11 Pedro Alves <palves@redhat.com>
6002 * corelow.c (core_target) <core_target>: No longer inline.
6003 Initialize m_core_gdbarch, m_core_vec and build the section table
6005 <~core_target>: New.
6006 <core_gdbarch, get_core_register_section>: New methods.
6007 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
6008 factored out from ...
6009 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
6011 (sniff_core_bfd): Add gdbarch parameter.
6012 (core_close): Delete, merged into ...
6013 (core_target::close): ... here. Delete self.
6014 (core_close_cleanup): Delete.
6015 (core_target_open): Allocate a core_target on the heap. Use a
6016 unique_ptr instead of a cleanup. Bits moved into the core_target
6017 ctor. Adjust to use core_target methods instead of globals.
6018 (get_core_register_section): Rename to ...
6019 (core_target::get_core_register_section): ... this and adjust.
6020 (struct get_core_registers_cb_data): New.
6021 (get_core_registers_cb): Use it. Use bool.
6022 (core_target::fetch_registers, core_target::files_info)
6023 (core_target::xfer_partial, core_target::read_description)
6024 (core_target::pid_to, core_target::thread_name): Adjust to
6025 reference class fields instead of globals.
6026 * target.h (struct target_ops_deleter, target_ops_up): New.
6028 2018-05-11 Pedro Alves <palves@redhat.com>
6030 * corefile.c (core_file_command): Move to corelow.c.
6031 * corelow.c (the_core_target): Delete.
6032 (core_file_command): Moved from corefile.c. Check exec_bfd
6033 instead of the_core_target. Use target_detach instead of calling
6034 into the_core_target directly.
6035 (maybe_say_no_core_file_now): New.
6036 (core_target::detach): Use it.
6037 (_initialize_corelow): Remove references to the_core_target.
6038 * gdbcore.h (the_core_target): Delete.
6040 2018-05-11 Tom Tromey <tromey@redhat.com>
6041 Pedro Alves <palves@redhat.com>
6043 * corefile.c (core_bfd): Remove.
6044 * gdbcore.h (core_bfd): Now a macro.
6045 * progspace.h (struct program_space) <cbfd>: New field.
6047 2018-05-11 Tom Tromey <tom@tromey.com>
6049 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
6052 2018-05-10 Tom Tromey <tom@tromey.com>
6054 * configure: Rebuild.
6055 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
6057 2018-05-10 Joel Brobecker <brobecker@adacore.com>
6060 * regformats/regdat.sh: Adjust script, following the addition
6061 of the new expedite_regs parameter to init_target_desc.
6063 2018-05-10 Omair Javaid <omair.javaid@linaro.org>
6066 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
6067 set_gdbarch_significant_addr_bit.
6068 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
6069 set_gdbarch_significant_addr_bit.
6070 * utils.c (address_significant): Update to sign extend addr.
6072 2018-05-09 Max Filippov <jcmvbkbc@gmail.com>
6074 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
6075 (xtensa_linux_init_abi): Limit tdep->num_regs by
6076 tdep->num_nopriv_regs.
6077 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
6078 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
6081 2018-05-08 Simon Marchi <simon.marchi@ericsson.com>
6083 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
6085 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
6087 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
6088 (I387_MXCSR_INIT_VAL): New constant.
6089 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
6090 buffer if it was supplied by the inferior.
6091 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
6092 (i387_xsave_get_clear_bv): New function.
6093 (i387_supply_xsave): Only read x87 control registers from the
6094 xsave buffer if the feature is enabled, and the state will have
6095 been written, otherwise, provide a suitable default.
6096 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
6097 including x87 control registers. Update control registers if they
6098 have changed from the default value, and mark features as enabled
6100 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
6102 2018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
6104 * spu-tdep.c (info_spu_event_command): Fix output formatting.
6106 2018-05-07 Tom Tromey <tom@tromey.com>
6108 * configure: Rebuild.
6109 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
6111 2018-05-07 Tom Tromey <tom@tromey.com>
6114 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
6115 bit. Use correct value for VDIV.
6117 2018-05-04 Tom Tromey <tom@tromey.com>
6119 * configure: Rebuild.
6120 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
6122 2018-05-04 Tom Tromey <tom@tromey.com>
6124 * linux-record.c (record_linux_system_call) <case
6125 RECORD_SYS_RECVFROM>: Add "break".
6127 2018-05-04 Tom Tromey <tom@tromey.com>
6129 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
6130 Add missing "break".
6131 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
6132 Add missing "break".
6134 2018-05-04 Tom Tromey <tom@tromey.com>
6136 * rs6000-tdep.c (ppc_process_record_op4)
6137 (ppc_process_record_op63): Add fall-through comment.
6139 2018-05-04 Tom Tromey <tom@tromey.com>
6141 * i386-tdep.c (i386_process_record): Add fall-through comment.
6143 2018-05-04 Tom Tromey <tom@tromey.com>
6145 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
6148 2018-05-04 Tom Tromey <tom@tromey.com>
6150 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
6151 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
6152 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
6154 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
6156 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
6159 2018-05-04 Tom Tromey <tom@tromey.com>
6161 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
6163 2018-05-04 Tom Tromey <tom@tromey.com>
6165 * s390-tdep.c (s390_process_record): Fix fall-through comments.
6166 * xcoffread.c (scan_xcoff_symtab): Move comment later.
6167 * symfile.c (section_is_mapped): Fix fall-through comment.
6168 * stabsread.c (define_symbol, read_member_functions): Fix
6169 fall-through comment.
6170 * s390-linux-tdep.c (s390_process_record): Fix fall-through
6172 * remote.c (remote_wait_as): Fix fall-through comment.
6173 * p-exp.y (yylex): Fix fall-through comment.
6174 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
6176 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
6177 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
6178 * jv-exp.y (yylex): Fix fall-through comment.
6179 * go-exp.y (lex_one_token): Fix fall-through comment.
6180 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
6181 fall-through comment.
6182 * f-exp.y (yylex): Fix fall-through comment.
6183 * dwarf2read.c (process_die): Fix fall-through comments.
6184 * dbxread.c (process_one_symbol): Fix fall-through comment.
6185 * d-exp.y (lex_one_token): Fix fall-through comment.
6186 * cp-name-parser.y (yylex): Fix fall-through comment.
6187 * coffread.c (coff_symtab_read): Fix fall-through comment.
6188 * c-exp.y (lex_one_token): Fix fall-through comment.
6189 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
6191 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
6194 2018-05-04 Tom Tromey <tom@tromey.com>
6197 * NEWS: Mention gdb.execute change.
6198 * gdbcmd.h (execute_control_command): Don't declare.
6199 * python/python.c (execute_gdb_command): Use read_command_lines_1,
6200 execute_control_commands, execute_control_commands_to_string.
6201 * cli/cli-script.h (execute_control_commands)
6202 (execute_control_commands_to_string): Declare.
6203 (execute_control_command): Add from_tty parameter.
6204 * cli/cli-script.c (execute_control_commands)
6205 (execute_control_commands_to_string): New functions.
6206 (execute_user_command): Use execute_control_commands.
6207 (execute_control_command_1): Add "from_tty" parameter. Update.
6208 (execute_control_command): Likewise.
6210 2018-05-04 Tom Tromey <tom@tromey.com>
6213 * NEWS: Mention that breakpoint commands are writable.
6214 * python/py-breakpoint.c (bppy_set_commands): New function.
6215 (breakpoint_object_getset) <"commands">: Use it.
6217 2018-05-04 Tom Tromey <tom@tromey.com>
6219 * tracepoint.c (actions_command): Update.
6220 * mi/mi-cmd-break.c (mi_command_line_array)
6221 (mi_command_line_array_cnt, mi_command_line_array_ptr)
6222 (mi_read_next_line): Remove.
6223 (mi_cmd_break_commands): Update.
6224 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
6226 * cli/cli-script.c (get_command_line): Update.
6227 (process_next_line): Use function_view. Constify.
6228 (recurse_read_control_structure, read_command_lines)
6229 (read_command_lines_1): Change argument types to function_view.
6230 (do_define_command, document_command): Update.
6231 * breakpoint.h (check_tracepoint_command): Don't declare.
6232 * breakpoint.c (check_tracepoint_command): Remove.
6233 (commands_command_1, create_tracepoint_from_upload): Update.
6235 2018-05-04 Tom Tromey <tom@tromey.com>
6238 * cli/cli-script.h (enum command_control_type) <define_control>:
6240 * cli/cli-script.c (multi_line_command_p): Handle define_control.
6241 (build_command_line, execute_control_command_1)
6242 (process_next_line): Likewise.
6243 (do_define_command): New function, extracted from define_command.
6244 (define_command): Use it.
6246 2018-05-04 Tom Tromey <tom@tromey.com>
6248 * tracepoint.c (actions_command): Update.
6249 * cli/cli-script.h (read_command_lines): Update.
6250 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
6251 (MAX_TMPBUF): Remove define.
6252 (define_command): Use string_printf.
6253 (document_command): Likewise.
6254 * breakpoint.c (commands_command_1): Update.
6256 2018-05-04 Tom Tromey <tom@tromey.com>
6258 * top.c (execute_command): Update.
6259 * cli/cli-script.h (print_command_lines): Now varargs.
6260 * cli/cli-script.c (print_command_lines): Now varargs.
6261 (execute_control_command_1) <case while_control, case if_control>:
6264 2018-05-04 Tom Tromey <tom@tromey.com>
6266 * tracepoint.c (all_tracepoint_actions): Rename from
6267 all_tracepoint_actions_and_cleanup. Change return type.
6268 (actions_command, encode_actions_1, encode_actions)
6269 (trace_dump_actions, tdump_command): Update.
6270 * remote.c (remote_download_command_source): Update.
6271 * python/python.c (gdbpy_eval_from_control_command)
6272 (python_command, python_interactive_command): Update.
6273 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
6274 * guile/guile.c (guile_command)
6275 (gdbscm_eval_from_control_command, guile_command): Update.
6276 * compile/compile.c (compile_code_command)
6277 (compile_print_command, compile_to_object): Update.
6278 * cli/cli-script.h (struct command_lines_deleter): New.
6279 (counted_command_line): New typedef.
6280 (struct command_line): Add constructor, destructor.
6281 <body_list>: Remove.
6282 <body_list_0, body_list_1>: New members.
6283 (command_line_up): Remove typedef.
6284 (read_command_lines, read_command_lines_1, get_command_line):
6286 (copy_command_lines): Don't declare.
6287 * cli/cli-script.c (build_command_line): Use "new".
6288 (get_command_line): Return counted_command_line.
6289 (print_command_lines, execute_user_command)
6290 (execute_control_command_1, while_command, if_command): Update.
6291 (realloc_body_list): Remove.
6292 (process_next_line, recurse_read_control_structure): Update.
6293 (read_command_lines, read_command_lines_1): Return counted_command_line.
6294 (free_command_lines): Use "delete".
6295 (copy_command_lines): Remove.
6296 (define_command, document_command, show_user_1): Update.
6297 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
6298 a counted_command_line.
6299 * breakpoint.h (counted_command_line): Remove typedef.
6300 (breakpoint_set_commands): Update.
6301 * breakpoint.c (check_no_tracepoint_commands)
6302 (validate_commands_for_breakpoint): Update.
6303 (breakpoint_set_commands): Change commands to be a
6304 counted_command_line.
6305 (commands_command_1, update_dprintf_command_list)
6306 (create_tracepoint_from_upload): Update.
6308 2018-05-04 Tom Tromey <tom@tromey.com>
6310 * cli/cli-decode.h (cmd_list_element): New constructor.
6311 (~cmd_list_element): New destructor.
6312 (struct cmd_list_element): Add initializers.
6313 * cli/cli-decode.c (do_add_cmd): Use "new".
6314 (delete_cmd): Use "delete".
6316 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6317 Pedro Alves <palves@redhat.com>
6319 PR breakpoints/19806 and support for PR external/20207.
6320 * NEWS: Mention Aarch64 watchpoint improvements.
6321 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
6322 watchpoints and PR external/20207 watchpoints.
6323 * nat/aarch64-linux-hw-point.c
6324 (kernel_supports_any_contiguous_range): New.
6325 (aarch64_watchpoint_offset): New.
6326 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
6327 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
6328 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
6329 (aarch64_align_watchpoint): New parameters aligned_offset_p and
6330 next_addr_orig_p. Support PR external/20207 watchpoints.
6331 (aarch64_downgrade_regs): New.
6332 (aarch64_dr_state_insert_one_point): New parameters offset and
6334 (aarch64_dr_state_remove_one_point): Likewise.
6335 (aarch64_handle_breakpoint): Update caller.
6336 (aarch64_handle_aligned_watchpoint): Likewise.
6337 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
6339 (aarch64_linux_set_debug_regs): Remove const from state. Call
6340 aarch64_downgrade_regs.
6341 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
6342 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
6343 (DR_CONTROL_MASK): ... this.
6344 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
6345 (unsigned int aarch64_watchpoint_offset): New prototype.
6346 (aarch64_linux_set_debug_regs): Remove const from state.
6347 * utils.c (align_up, align_down): Move to ...
6348 * common/common-utils.c (align_up, align_down): ... here.
6349 * utils.h (align_up, align_down): Move to ...
6350 * common/common-utils.h (align_up, align_down): ... here.
6352 2018-05-04 Joel Brobecker <brobecker@adacore.com>
6354 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
6355 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
6356 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
6357 Re-implement to match the ABI as summarized in GCC's
6358 gcc/config/sparc/sparc.c. All callers updated.
6359 (sparc32_store_arguments): Remove assertion.
6361 2018-05-04 Tom Tromey <tom@tromey.com>
6363 * printcmd.c: Don't include tui.h.
6364 (decode_format): Use skip_spaces.
6366 2018-05-04 Tom Tromey <tom@tromey.com>
6369 * printcmd.c (last_count): New global.
6370 (x_command): Use saved count when repeating.
6372 2018-05-04 Tom Tromey <tom@tromey.com>
6374 * nto-procfs.c (do_closedir_cleanup): Remove.
6375 (procfs_pidlist): Use gdb_dir_up.
6376 * procfs.c (do_closedir_cleanup): Remove.
6377 (proc_update_threads): Use gdb_dir_up.
6378 * common/filestuff.h (struct gdb_dir_deleter): New.
6379 (gdb_dir_up): New typedef.
6381 2018-05-04 Tom Tromey <tom@tromey.com>
6383 * ada-lang.c (print_mention_exception): Use std::string.
6385 2018-05-04 Tom Tromey <tom@tromey.com>
6387 * ada-lang.c (create_excep_cond_exprs): Update.
6388 (ada_exception_catchpoint_cond_string): Use std::string.
6390 2018-05-04 Tom Tromey <tom@tromey.com>
6392 * ada-lang.c (xget_renaming_scope): Return std::string.
6393 (old_renaming_is_invisible): Update.
6395 2018-05-04 Tom Tromey <tom@tromey.com>
6397 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
6398 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
6400 2018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
6402 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
6404 2018-05-04 Tom Tromey <tom@tromey.com>
6406 * remote.c (remote_query_supported_append): Change type.
6407 (remote_check_symbols): Update.
6409 2018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
6412 * configure.ac: Prepend libpython.
6413 * python/python-config.py: Likewise.
6414 * configure: Regenerate.
6416 2018-05-03 Simon Marchi <simon.marchi@ericsson.com>
6418 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
6420 2018-05-03 Pedro Alves <palves@redhat.com>
6423 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
6424 override. Write 'true' instead of '1'.
6425 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
6428 2018-05-02 Pedro Alves <palves@redhat.com>
6430 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
6431 add_inf_child_target.
6432 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
6433 add_inf_child_target.
6434 * aix-thread.c (aix_thread_target_info): New.
6435 (aix_thread_target) <shortname, longname, doc>: Delete.
6437 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
6438 add_inf_child_target.
6439 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
6440 add_inf_child_target.
6441 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
6442 add_inf_child_target.
6443 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
6444 add_inf_child_target.
6445 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
6446 add_inf_child_target.
6447 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
6448 add_inf_child_target.
6449 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
6450 add_inf_child_target.
6451 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
6452 add_inf_child_target.
6453 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
6454 add_inf_child_target.
6455 * bfd-target.c (target_bfd_target_info): New.
6456 (target_bfd) <shortname, longname, doc>: Delete.
6458 * bsd-kvm.c (bsd_kvm_target_info): New.
6459 (bsd_kvm_target) <shortname, longname, doc>: Delete.
6461 (bsd_kvm_target::open): Rename to ...
6462 (bsd_kvm_target_open): ... this. Adjust.
6463 * bsd-uthread.c (bsd_uthread_target_info): New.
6464 (bsd_uthread_target) <shortname, longname, doc>: Delete.
6466 * corefile.c (core_file_command): Adjust.
6467 * corelow.c (core_target_info): New.
6468 (core_target) <shortname, longname, doc>: Delete.
6470 (core_target::open): Rename to ...
6471 (core_target_open): ... this. Adjust.
6472 * ctf.c (ctf_target_info): New.
6473 (ctf_target) <shortname, longname, doc>: Delete.
6475 (ctf_target::open): Rename to ...
6476 (ctf_target_open): ... this.
6477 (_initialize_ctf): Adjust.
6478 * exec.c (exec_target_info): New.
6479 (exec_target) <shortname, longname, doc>: Delete.
6481 (exec_target::open): Rename to ...
6482 (exec_target_open): ... this.
6483 * gdbcore.h (core_target_open): Declare.
6484 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
6485 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
6486 add_inf_child_target.
6487 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
6488 add_inf_child_target.
6489 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
6490 add_inf_child_target.
6491 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
6492 add_inf_child_target.
6493 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
6494 add_inf_child_target.
6495 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
6496 add_inf_child_target.
6497 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
6498 add_inf_child_target.
6499 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
6500 add_inf_child_target.
6501 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
6502 add_inf_child_target.
6503 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
6504 add_inf_child_target.
6505 * inf-child.c (inf_child_target_info): New.
6506 (inf_child_target::info): New.
6507 (inf_child_open_target): Remove 'target' parameter. Use
6508 get_native_target instead.
6509 (inf_child_target::open): Delete.
6510 (add_inf_child_target): New.
6511 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
6514 (add_inf_child_target): Declare.
6515 (inf_child_open_target): Declare.
6516 * linux-thread-db.c (thread_db_target_info): New.
6517 (thread_db_target) <shortname, longname, doc>: Delete.
6519 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
6520 add_inf_child_target.
6521 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
6522 add_inf_child_target.
6523 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
6524 add_inf_child_target.
6525 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
6526 add_inf_child_target.
6527 * make-target-delegates (print_class): Adjust.
6528 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
6529 add_inf_child_target.
6530 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
6531 add_inf_child_target.
6532 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
6533 add_inf_child_target.
6534 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
6535 add_inf_child_target.
6536 * nto-procfs.c (nto_native_target_info): New.
6537 (nto_procfs_target_native) <shortname, longname, doc>:
6540 (nto_procfs_target_info): New.
6541 (nto_procfs_target_procfs) <shortname, longname, doc>:
6544 (init_procfs_targets): Adjust.
6545 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
6546 add_inf_child_target.
6547 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
6548 add_inf_child_target.
6549 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
6550 add_inf_child_target.
6551 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
6552 add_inf_child_target.
6553 * ravenscar-thread.c (ravenscar_target_info): New.
6554 (ravenscar_thread_target) <shortname, longname, doc>:
6557 * record-btrace.c (record_btrace_target_info):
6558 (record_btrace_target) <shortname, longname, doc>: Delete.
6560 (record_btrace_target::open): Rename to ...
6561 (record_btrace_target_open): ... this. Adjust.
6562 * record-full.c (record_longname, record_doc): New.
6563 (record_full_base_target) <shortname, longname, doc>: Delete.
6565 (record_full_target_info): New.
6566 (record_full_target): <shortname>: Delete.
6568 (record_full_core_open_1, record_full_open_1): Update comments.
6569 (record_full_base_target::open): Rename to ...
6570 (record_full_open): ... this.
6571 (cmd_record_full_restore): Update.
6572 (_initialize_record_full): Update.
6573 * remote-sim.c (remote_sim_target_info): New.
6574 (gdbsim_target) <shortname, longname, doc>: Delete.
6576 (gdbsim_target::open): Rename to ...
6577 (gdbsim_target_open): ... this.
6578 (_initialize_remote_sim): Adjust.
6579 * remote.c (remote_doc): New.
6580 (remote_target_info): New.
6581 (remote_target) <shortname, longname, doc>: Delete.
6583 (extended_remote_target_info): New.
6584 (extended_remote_target) <shortname, longname, doc>: Delete.
6586 (remote_target::open_1): Make static. Adjust.
6587 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
6588 * s390-linux-nat.c (_initialize_s390_nat): Use
6589 add_inf_child_target.
6590 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
6591 add_inf_child_target.
6592 * sol-thread.c (thread_db_target_info): New.
6593 (sol_thread_target) <shortname, longname, doc>: Delete.
6595 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
6596 add_inf_child_target.
6597 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
6598 add_inf_child_target.
6599 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
6600 add_inf_child_target.
6601 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
6602 add_inf_child_target.
6603 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
6604 add_inf_child_target.
6605 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
6606 add_inf_child_target.
6607 * spu-linux-nat.c (_initialize_spu_nat): Use
6608 add_inf_child_target.
6609 * spu-multiarch.c (spu_multiarch_target_info): New.
6610 (spu_multiarch_target) <shortname, longname, doc>: Delete.
6612 * target-delegates.c: Regenerate.
6613 * target.c: Include <unordered_map>.
6614 (target_ops_p): Delete.
6615 (DEF_VEC_P(target_ops_p)): Delete.
6616 (target_factories): New.
6617 (test_target_info): New.
6618 (test_target_ops::info): New.
6619 (open_target): Adjust to use target_factories.
6620 (add_target_with_completer): Rename to ...
6621 (add_target): ... this. Change prototype. Register target_info
6622 and open callback in target_factories. Register target_info in
6623 command context instead of target_ops.
6624 (add_target): Delete old implementation.
6625 (add_deprecated_target_alias): Change prototype. Adjust.
6626 (the_native_target): New.
6627 (set_native_target, get_native_target): New.
6628 (find_default_run_target): Use the_native_target.
6629 (find_attach_target, find_run_target): Simplify.
6630 (target_ops::open): Delete.
6631 (dummy_target_info): New.
6632 (dummy_target::shortname, dummy_target::longname)
6633 (dummy_target::doc): Delete.
6634 (dummy_target::info): New.
6635 (debug_target::shortname, debug_target::longname)
6636 (debug_target::doc): Delete.
6637 (debug_target::info): New.
6638 * target.h (struct target_info): New.
6639 (target_ops::~target_ops): Add comment.
6640 (target_ops::info): New.
6641 (target_ops::shortname, target_ops::longname, target_ops::doc): No
6642 longer virtual. Implement in terms of target_info.
6643 (set_native_target, get_native_target): Declare.
6644 (target_open_ftype): New.
6645 (add_target, add_target_with_completer)
6646 (add_deprecated_target_alias): Change prototype.
6647 (test_target) <shortname, longname, doc>: Delete.
6649 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
6650 add_inf_child_target.
6651 * tracefile-tfile.c (tfile_target_info): New.
6652 (tfile_target) <shortname, longname, doc>: Delete.
6654 (tfile_target::open): Rename to ...
6655 (tfile_target_open): ... this.
6656 (_initialize_tracefile_tfile): Adjust.
6657 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
6658 add_inf_child_target.
6659 * windows-nat.c (_initialize_windows_nat): Use
6660 add_inf_child_target.
6661 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
6662 add_inf_child_target.
6664 2018-05-02 Pedro Alves <palves@redhat.com>
6666 * linux-nat.h (linux_nat_target) <low_new_thread,
6667 low_delete_thread, low_new_fork, low_forget_process,
6668 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
6669 New virtual methods.
6670 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
6671 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
6672 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
6673 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
6674 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
6676 * linux-fork.c (delete_fork): Adjust to call low method.
6677 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
6678 (linux_nat_new_fork, linux_nat_forget_process_hook)
6679 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
6680 (linux_nat_status_is_event):
6681 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
6682 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
6684 (sigtrap_is_event): Rename to ...
6685 (linux_nat_target::low_status_is_event): ... this.
6686 (linux_nat_set_status_is_event): Delete.
6687 (save_stop_reason, linux_nat_wait_1)
6688 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
6690 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
6691 (linux_nat_set_new_fork, linux_nat_set_forget_process)
6692 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
6693 (linux_nat_set_prepare_to_resume): Delete.
6694 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
6695 low virtual methods.
6696 * amd64-linux-nat.c: Likewise.
6697 * arm-linux-nat.c: Likewise.
6698 * i386-linux-nat.c: Likewise.
6699 * ia64-linux-nat.c: Likewise.
6700 * mips-linux-nat.c: Likewise.
6701 * ppc-linux-nat.c: Likewise.
6702 * s390-linux-nat.c: Likewise.
6703 * sparc64-linux-nat.c: Likewise.
6704 * x86-linux-nat.c: Likewise.
6705 * x86-linux-nat.h: Include "nat/x86-linux.h".
6706 (x86_linux_nat_target) <low_new_fork, low_forget_process,
6707 low_prepare_to_resume, low_new_thread, low_delete_thread>:
6710 2018-05-02 Pedro Alves <palves@redhat.com>
6712 * target.h (target_ops)
6713 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
6714 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
6715 stopped_by_watchpoint, have_continuable_watchpoint,
6716 stopped_data_address, watchpoint_addr_within_range,
6717 can_accel_watchpoint_condition, can_run, thread_alive,
6718 has_all_memory, has_memory, has_stack, has_registers,
6719 has_execution, can_async_p, is_async_p, supports_non_stop,
6720 always_non_stop_p, can_execute_reverse, supports_multi_process,
6721 supports_enable_disable_tracepoint,
6722 supports_disable_randomization, supports_string_tracing,
6723 supports_evaluation_of_breakpoint_conditions,
6724 can_run_breakpoint_commands, filesystem_is_local,
6725 can_download_tracepoint, get_trace_state_variable_value,
6726 set_trace_notes, get_tib_address, use_agent, can_use_agent,
6727 record_is_replaying, record_will_replay,
6728 augmented_libraries_svr4_read>: Adjust to return bool.
6729 * aarch64-linux-nat.c: All implementations adjusted.
6730 * aix-thread.c: All implementations adjusted.
6731 * arm-linux-nat.c: All implementations adjusted.
6732 * breakpoint.c: All implementations adjusted.
6733 * bsd-kvm.c: All implementations adjusted.
6734 * bsd-uthread.c: All implementations adjusted.
6735 * corelow.c: All implementations adjusted.
6736 * ctf.c: All implementations adjusted.
6737 * darwin-nat.c: All implementations adjusted.
6738 * darwin-nat.h: All implementations adjusted.
6739 * exec.c: All implementations adjusted.
6740 * fbsd-nat.c: All implementations adjusted.
6741 * fbsd-nat.h: All implementations adjusted.
6742 * gnu-nat.c: All implementations adjusted.
6743 * gnu-nat.h: All implementations adjusted.
6744 * go32-nat.c: All implementations adjusted.
6745 * ia64-linux-nat.c: All implementations adjusted.
6746 * inf-child.c: All implementations adjusted.
6747 * inf-child.h: All implementations adjusted.
6748 * inf-ptrace.c: All implementations adjusted.
6749 * inf-ptrace.h: All implementations adjusted.
6750 * linux-nat.c: All implementations adjusted.
6751 * linux-nat.h: All implementations adjusted.
6752 * mips-linux-nat.c: All implementations adjusted.
6753 * nto-procfs.c: All implementations adjusted.
6754 * ppc-linux-nat.c: All implementations adjusted.
6755 * procfs.c: All implementations adjusted.
6756 * ravenscar-thread.c: All implementations adjusted.
6757 * record-btrace.c: All implementations adjusted.
6758 * record-full.c: All implementations adjusted.
6759 * remote-sim.c: All implementations adjusted.
6760 * remote.c: All implementations adjusted.
6761 * s390-linux-nat.c: All implementations adjusted.
6762 * sol-thread.c: All implementations adjusted.
6763 * spu-multiarch.c: All implementations adjusted.
6764 * target-delegates.c: All implementations adjusted.
6765 * target.c: All implementations adjusted.
6766 * target.h: All implementations adjusted.
6767 * tracefile-tfile.c: All implementations adjusted.
6768 * tracefile.c: All implementations adjusted.
6769 * tracefile.h: All implementations adjusted.
6770 * windows-nat.c: All implementations adjusted.
6771 * x86-linux-nat.h: All implementations adjusted.
6772 * x86-nat.h: All implementations adjusted.
6774 2018-05-02 Pedro Alves <palves@redhat.com>
6776 * make-target-delegates (scan_target_h): Don't trim lines here.
6777 Replace sequences of tabs and/or whitespace with a single
6779 (top level, parsing methods): Trim each line before processing it
6782 2018-05-02 Pedro Alves <palves@redhat.com>
6783 John Baldwin <jhb@freebsd.org>
6785 * target.h (enum strata) <debug_stratum>: New.
6786 (struct target_ops) <all delegation methods>: Replace by C++
6787 virtual methods, and drop "to_" prefix. All references updated
6789 <to_shortname, to_longname, to_doc, to_data,
6790 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
6791 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
6792 virtual methods. All references updated throughout.
6793 <can_attach, supports_terminal_ours, can_create_inferior,
6794 get_thread_control_capabilities, attach_no_wait>: New
6796 <insert_breakpoint, remove_breakpoint>: Now
6797 TARGET_DEFAULT_NORETURN methods.
6798 <info_proc>: Now returns bool.
6800 (OPS_MAGIC): Delete.
6801 (current_target): Delete. All references replaced by references
6803 (target_stack): ... this. New.
6804 (target_shortname, target_longname): Adjust.
6805 (target_can_run): Now a function declaration.
6806 (default_child_has_all_memory, default_child_has_memory)
6807 (default_child_has_stack, default_child_has_registers)
6808 (default_child_has_execution): Remove target_ops parameter.
6809 (complete_target_initialization): Delete.
6810 (memory_breakpoint_target): New template class.
6811 (test_target_ops): Refactor as a C++ class with virtual methods.
6812 * make-target-delegates (NAME_PART): Tighten.
6813 (POINTER_PART, CP_SYMBOL): New.
6814 (SIMPLE_RETURN_PART): Reimplement.
6815 (VEC_RETURN_PART): Expect less.
6816 (RETURN_PART, VIRTUAL_PART): New.
6817 (METHOD): Adjust to C++ virtual methods.
6818 (scan_target_h): Remove reference to C99.
6819 (dname): Output "target_ops::" prefix.
6820 (write_function_header): Adjust to output a C++ class method.
6821 (write_declaration): New.
6822 (write_delegator): Adjust to output a C++ class method.
6823 (tdname): Output "dummy_target::" prefix.
6824 (write_tdefault, write_debugmethod): Adjust to output a C++ class
6826 (tdefault_names, debug_names): Delete.
6827 (return_types, tdefaults, styles, argtypes_array): New.
6828 (top level): All methods are delegators.
6830 (top level): Print dummy_target and debug_target classes.
6831 * target-delegates.c: Regenerate.
6832 * target-debug.h (target_debug_print_enum_info_proc_what)
6833 (target_debug_print_thread_control_capabilities)
6834 (target_debug_print_thread_info_p): New.
6835 * target.c (dummy_target): Delete.
6836 (the_dummy_target, the_debug_target): New.
6837 (target_stack): Now extern.
6838 (set_targetdebug): Push/unpush debug target.
6839 (default_child_has_all_memory, default_child_has_memory)
6840 (default_child_has_stack, default_child_has_registers)
6841 (default_child_has_execution): Remove target_ops parameter.
6842 (complete_target_initialization): Delete.
6843 (add_target_with_completer): No longer call
6844 complete_target_initialization.
6845 (target_supports_terminal_ours): Use regular delegation.
6846 (update_current_target): Delete.
6847 (push_target): No longer check magic number. Don't call
6848 update_current_target.
6849 (unpush_target): Don't call update_current_target.
6850 (target_is_pushed): No longer check magic number.
6851 (target_require_runnable): Skip for all stratums over
6853 (target_ops::info_proc): New.
6854 (target_info_proc): Use find_target_at and
6855 find_default_run_target.
6856 (target_supports_disable_randomization): Use regular delegation.
6857 (target_get_osdata): Use find_target_at.
6858 (target_ops::open, target_ops::close, target_ops::can_attach)
6859 (target_ops::attach, target_ops::can_create_inferior)
6860 (target_ops::create_inferior, target_ops::can_run)
6861 (target_can_run): New.
6862 (default_fileio_target): Use regular delegation.
6863 (target_ops::fileio_open, target_ops::fileio_pwrite)
6864 (target_ops::fileio_pread, target_ops::fileio_fstat)
6865 (target_ops::fileio_close, target_ops::fileio_unlink)
6866 (target_ops::fileio_readlink): New.
6867 (target_fileio_open_1, target_fileio_unlink)
6868 (target_fileio_readlink): Always call the target method. Handle
6870 (return_zero, return_zero_has_execution): Delete.
6871 (init_dummy_target): Delete.
6872 (dummy_target::dummy_target, dummy_target::shortname)
6873 (dummy_target::longname, dummy_target::doc)
6874 (debug_target::debug_target, debug_target::shortname)
6875 (debug_target::longname, debug_target::doc): New.
6876 (target_supports_delete_record): Use regular delegation.
6877 (setup_target_debug): Delete.
6878 (maintenance_print_target_stack): Skip debug_stratum.
6879 (initialize_targets): Instantiate the_dummy_target and
6881 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
6883 (target_auxv_search, fprint_target_auxv): Adjust.
6884 (info_auxv_command): Adjust to use target_stack.
6885 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
6886 * exceptions.c (print_flush): Handle a NULL target_stack.
6887 * regcache.c (target_ops_no_register): Refactor as class with
6890 * exec.c (exec_target): New class.
6891 (exec_ops): Now an exec_target.
6892 (exec_open, exec_close_1, exec_get_section_table)
6893 (exec_xfer_partial, exec_files_info, exec_has_memory)
6894 (exec_make_note_section): Refactor as exec_target methods.
6895 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
6897 (exec_target::find_memory_regions): New.
6898 (_initialize_exec): Don't call init_exec_ops.
6899 * gdbcore.h (exec_file_clear): Delete.
6901 * corefile.c (core_target): Delete.
6902 (core_file_command): Adjust.
6903 * corelow.c (core_target): New class.
6904 (the_core_target): New.
6905 (core_close): Remove target_ops parameter.
6906 (core_close_cleanup): Adjust.
6907 (core_target::close): New.
6908 (core_open, core_detach, get_core_registers, core_files_info)
6909 (core_xfer_partial, core_thread_alive, core_read_description)
6910 (core_pid_to_str, core_thread_name, core_has_memory)
6911 (core_has_stack, core_has_registers, core_info_proc): Rework as
6912 core_target methods.
6913 (ignore, core_remove_breakpoint, init_core_ops): Delete.
6914 (_initialize_corelow): Initialize the_core_target.
6915 * gdbcore.h (core_target): Delete.
6916 (the_core_target): New.
6918 * ctf.c: (ctf_target): New class.
6919 (ctf_ops): Now a ctf_target.
6920 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
6921 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
6922 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
6924 (init_ctf_ops): Delete.
6925 (_initialize_ctf): Don't call it.
6926 * tracefile-tfile.c (tfile_target): New class.
6927 (tfile_ops): Now a tfile_target.
6928 (tfile_open, tfile_close, tfile_files_info)
6929 (tfile_get_tracepoint_status, tfile_trace_find)
6930 (tfile_fetch_registers, tfile_xfer_partial)
6931 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
6932 Refactor as tfile_target methods.
6933 (tfile_xfer_partial_features): Remove target_ops parameter.
6934 (init_tfile_ops): Delete.
6935 (_initialize_tracefile_tfile): Don't call it.
6936 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
6937 (tracefile_has_stack, tracefile_has_registers)
6938 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
6939 tracefile_target methods.
6940 (init_tracefile_ops): Delete.
6941 (tracefile_target::tracefile_target): New.
6942 * tracefile.h: Include "target.h".
6943 (tracefile_target): New class.
6944 (init_tracefile_ops): Delete.
6946 * spu-multiarch.c (spu_multiarch_target): New class.
6947 (spu_ops): Now a spu_multiarch_target.
6948 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
6949 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
6950 (spu_search_memory, spu_mourn_inferior): Refactor as
6951 spu_multiarch_target methods.
6952 (init_spu_ops): Delete.
6953 (_initialize_spu_multiarch): Remove references to init_spu_ops,
6954 complete_target_initialization.
6956 * ravenscar-thread.c (ravenscar_thread_target): New class.
6957 (ravenscar_ops): Now a ravenscar_thread_target.
6958 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
6959 (ravenscar_thread_alive, ravenscar_pid_to_str)
6960 (ravenscar_fetch_registers, ravenscar_store_registers)
6961 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
6962 (ravenscar_stopped_by_hw_breakpoint)
6963 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
6964 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
6965 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
6967 (init_ravenscar_thread_ops): Delete.
6968 (_initialize_ravenscar): Remove references to
6969 init_ravenscar_thread_ops and complete_target_initialization.
6971 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
6972 (bsd_uthread_target): New class.
6973 (bsd_uthread_ops): Now a bsd_uthread_target.
6974 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
6975 (bsd_uthread_close, bsd_uthread_mourn_inferior)
6976 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
6977 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
6978 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
6979 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
6980 (bsd_uthread_target): Delete function.
6981 (_initialize_bsd_uthread): Remove reference to
6982 complete_target_initialization.
6984 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
6985 (target_bfd): ... this new class.
6986 (target_bfd_xfer_partial, target_bfd_get_section_table)
6987 (target_bfd_close): Refactor as target_bfd methods.
6988 (target_bfd::~target_bfd): New.
6989 (target_bfd_reopen): Adjust.
6990 (target_bfd::close): New.
6992 * record-btrace.c (record_btrace_target): New class.
6993 (record_btrace_ops): Now a record_btrace_target.
6994 (record_btrace_open, record_btrace_stop_recording)
6995 (record_btrace_disconnect, record_btrace_close)
6996 (record_btrace_async, record_btrace_info)
6997 (record_btrace_insn_history, record_btrace_insn_history_range)
6998 (record_btrace_insn_history_from, record_btrace_call_history)
6999 (record_btrace_call_history_range)
7000 (record_btrace_call_history_from, record_btrace_record_method)
7001 (record_btrace_is_replaying, record_btrace_will_replay)
7002 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7003 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
7004 (record_btrace_store_registers, record_btrace_prepare_to_store)
7005 (record_btrace_to_get_unwinder)
7006 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
7007 (record_btrace_commit_resume, record_btrace_wait)
7008 (record_btrace_stop, record_btrace_can_execute_reverse)
7009 (record_btrace_stopped_by_sw_breakpoint)
7010 (record_btrace_supports_stopped_by_sw_breakpoint)
7011 (record_btrace_stopped_by_hw_breakpoint)
7012 (record_btrace_supports_stopped_by_hw_breakpoint)
7013 (record_btrace_update_thread_list, record_btrace_thread_alive)
7014 (record_btrace_goto_begin, record_btrace_goto_end)
7015 (record_btrace_goto, record_btrace_stop_replaying_all)
7016 (record_btrace_execution_direction)
7017 (record_btrace_prepare_to_generate_core)
7018 (record_btrace_done_generating_core): Refactor as
7019 record_btrace_target methods.
7020 (init_record_btrace_ops): Delete.
7021 (_initialize_record_btrace): Remove reference to
7022 init_record_btrace_ops.
7023 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
7024 the execution_direction global.
7025 (record_full_base_target, record_full_target)
7026 (record_full_core_target): New classes.
7027 (record_full_ops): Now a record_full_target.
7028 (record_full_core_ops): Now a record_full_core_target.
7029 (record_full_target::detach, record_full_target::disconnect)
7030 (record_full_core_target::disconnect)
7031 (record_full_target::mourn_inferior, record_full_target::kill):
7033 (record_full_open, record_full_close, record_full_async): Refactor
7034 as methods of the record_full_base_target class.
7035 (record_full_resume, record_full_commit_resume): Refactor
7036 as methods of the record_full_target class.
7037 (record_full_wait, record_full_stopped_by_watchpoint)
7038 (record_full_stopped_data_address)
7039 (record_full_stopped_by_sw_breakpoint)
7040 (record_full_supports_stopped_by_sw_breakpoint)
7041 (record_full_stopped_by_hw_breakpoint)
7042 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
7043 methods of the record_full_base_target class.
7044 (record_full_store_registers, record_full_xfer_partial)
7045 (record_full_insert_breakpoint, record_full_remove_breakpoint):
7046 Refactor as methods of the record_full_target class.
7047 (record_full_can_execute_reverse, record_full_get_bookmark)
7048 (record_full_goto_bookmark, record_full_execution_direction)
7049 (record_full_record_method, record_full_info, record_full_delete)
7050 (record_full_is_replaying, record_full_will_replay)
7051 (record_full_goto_begin, record_full_goto_end, record_full_goto)
7052 (record_full_stop_replaying): Refactor as methods of the
7053 record_full_base_target class.
7054 (record_full_core_resume, record_full_core_kill)
7055 (record_full_core_fetch_registers)
7056 (record_full_core_prepare_to_store)
7057 (record_full_core_store_registers, record_full_core_xfer_partial)
7058 (record_full_core_insert_breakpoint)
7059 (record_full_core_remove_breakpoint)
7060 (record_full_core_has_execution): Refactor
7061 as methods of the record_full_core_target class.
7062 (record_full_base_target::supports_delete_record): New.
7063 (init_record_full_ops): Delete.
7064 (init_record_full_core_ops): Delete.
7065 (record_full_save): Refactor as method of the
7066 record_full_base_target class.
7067 (_initialize_record_full): Remove references to
7068 init_record_full_ops and init_record_full_core_ops.
7070 * remote.c (remote_target, extended_remote_target): New classes.
7071 (remote_ops): Now a remote_target.
7072 (extended_remote_ops): Now an extended_remote_target.
7073 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
7074 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
7075 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
7076 (remote_pass_signals, remote_set_syscall_catchpoint)
7077 (remote_program_signals, )
7078 (remote_thread_always_alive): Remove target_ops parameter.
7079 (remote_thread_alive, remote_thread_name)
7080 (remote_update_thread_list, remote_threads_extra_info)
7081 (remote_static_tracepoint_marker_at)
7082 (remote_static_tracepoint_markers_by_strid)
7083 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
7084 (remote_open): Refactor as methods of remote_target.
7085 (extended_remote_open, extended_remote_detach)
7086 (extended_remote_attach, extended_remote_post_attach):
7087 (extended_remote_supports_disable_randomization)
7088 (extended_remote_create_inferior): : Refactor as method of
7089 extended_remote_target.
7090 (remote_set_permissions, remote_open_1, remote_detach)
7091 (remote_follow_fork, remote_follow_exec, remote_disconnect)
7092 (remote_resume, remote_commit_resume, remote_stop)
7093 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
7094 (remote_terminal_ours, remote_wait, remote_fetch_registers)
7095 (remote_prepare_to_store, remote_store_registers)
7096 (remote_flash_erase, remote_flash_done, remote_files_info)
7097 (remote_kill, remote_mourn, remote_insert_breakpoint)
7098 (remote_remove_breakpoint, remote_insert_watchpoint)
7099 (remote_watchpoint_addr_within_range)
7100 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
7101 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
7102 (remote_supports_stopped_by_sw_breakpoint)
7103 (remote_stopped_by_hw_breakpoint)
7104 (remote_supports_stopped_by_hw_breakpoint)
7105 (remote_stopped_by_watchpoint, remote_stopped_data_address)
7106 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
7107 (remote_verify_memory): Refactor as methods of remote_target.
7108 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
7110 (remote_xfer_partial, remote_get_memory_xfer_limit)
7111 (remote_search_memory, remote_rcmd, remote_memory_map)
7112 (remote_pid_to_str, remote_get_thread_local_address)
7113 (remote_get_tib_address, remote_read_description): Refactor as
7114 methods of remote_target.
7115 (remote_target::fileio_open, remote_target::fileio_pwrite)
7116 (remote_target::fileio_pread, remote_target::fileio_close): New.
7117 (remote_hostio_readlink, remote_hostio_fstat)
7118 (remote_filesystem_is_local, remote_can_execute_reverse)
7119 (remote_supports_non_stop, remote_supports_disable_randomization)
7120 (remote_supports_multi_process, remote_supports_cond_breakpoints)
7121 (remote_supports_enable_disable_tracepoint)
7122 (remote_supports_string_tracing)
7123 (remote_can_run_breakpoint_commands, remote_trace_init)
7124 (remote_download_tracepoint, remote_can_download_tracepoint)
7125 (remote_download_trace_state_variable, remote_enable_tracepoint)
7126 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
7127 (remote_trace_start, remote_get_trace_status)
7128 (remote_get_tracepoint_status, remote_trace_stop)
7129 (remote_trace_find, remote_get_trace_state_variable_value)
7130 (remote_save_trace_data, remote_get_raw_trace_data)
7131 (remote_set_disconnected_tracing, remote_core_of_thread)
7132 (remote_set_circular_trace_buffer, remote_traceframe_info)
7133 (remote_get_min_fast_tracepoint_insn_len)
7134 (remote_set_trace_buffer_size, remote_set_trace_notes)
7135 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
7136 (remote_disable_btrace, remote_teardown_btrace)
7137 (remote_read_btrace, remote_btrace_conf)
7138 (remote_augmented_libraries_svr4_read, remote_load)
7139 (remote_pid_to_exec_file, remote_can_do_single_step)
7140 (remote_execution_direction, remote_thread_handle_to_thread_info):
7141 Refactor as methods of remote_target.
7142 (init_remote_ops, init_extended_remote_ops): Delete.
7143 (remote_can_async_p, remote_is_async_p, remote_async)
7144 (remote_thread_events, remote_upload_tracepoints)
7145 (remote_upload_trace_state_variables): Refactor as methods of
7147 (_initialize_remote): Remove references to init_remote_ops and
7148 init_extended_remote_ops.
7150 * remote-sim.c (gdbsim_target): New class.
7151 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
7152 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
7153 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
7154 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
7155 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
7156 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
7157 Refactor as methods of gdbsim_target.
7158 (gdbsim_ops): Now a gdbsim_target.
7159 (init_gdbsim_ops): Delete.
7160 (gdbsim_cntrl_c): Adjust.
7161 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
7163 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
7164 (the_amd64_linux_nat_target): New.
7165 (amd64_linux_fetch_inferior_registers)
7166 (amd64_linux_store_inferior_registers): Refactor as methods of
7167 amd64_linux_nat_target.
7168 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
7169 * i386-linux-nat.c: Don't include "linux-nat.h".
7170 (i386_linux_nat_target): New class.
7171 (the_i386_linux_nat_target): New.
7172 (i386_linux_fetch_inferior_registers)
7173 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
7174 as methods of i386_linux_nat_target.
7175 (_initialize_i386_linux_nat): Adjust. Set linux_target.
7176 * inf-child.c (inf_child_ops): Delete.
7177 (inf_child_fetch_inferior_registers)
7178 (inf_child_store_inferior_registers): Delete.
7179 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
7180 methods of inf_child_target.
7181 (inf_child_target::supports_terminal_ours)
7182 (inf_child_target::terminal_init)
7183 (inf_child_target::terminal_inferior)
7184 (inf_child_target::terminal_ours_for_output)
7185 (inf_child_target::terminal_ours, inf_child_target::interrupt)
7186 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
7188 (inf_child_open, inf_child_disconnect, inf_child_close)
7189 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
7190 (inf_child_post_startup_inferior, inf_child_can_run)
7191 (inf_child_pid_to_exec_file): Refactor as methods of
7193 (inf_child_follow_fork): Delete.
7194 (inf_child_target::can_create_inferior)
7195 (inf_child_target::can_attach): New.
7196 (inf_child_target::has_all_memory, inf_child_target::has_memory)
7197 (inf_child_target::has_stack, inf_child_target::has_registers)
7198 (inf_child_target::has_execution): New.
7199 (inf_child_fileio_open, inf_child_fileio_pwrite)
7200 (inf_child_fileio_pread, inf_child_fileio_fstat)
7201 (inf_child_fileio_close, inf_child_fileio_unlink)
7202 (inf_child_fileio_readlink, inf_child_use_agent)
7203 (inf_child_can_use_agent): Refactor as methods of
7205 (return_zero, inf_child_target): Delete.
7206 (inf_child_target::inf_child_target): New.
7207 * inf-child.h: Include "target.h".
7208 (inf_child_target): Delete function prototype.
7209 (inf_child_target): New class.
7210 (inf_child_open_target, inf_child_mourn_inferior)
7211 (inf_child_maybe_unpush_target): Delete.
7212 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
7213 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
7214 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
7215 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
7216 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
7217 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
7218 (inf_ptrace_wait, inf_ptrace_xfer_partial)
7219 (inf_ptrace_thread_alive, inf_ptrace_files_info)
7220 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
7221 methods of inf_ptrace_target.
7222 (inf_ptrace_target): Delete function.
7223 * inf-ptrace.h: Include "inf-child.h".
7224 (inf_ptrace_target): Delete function declaration.
7225 (inf_ptrace_target): New class.
7226 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
7227 * linux-nat.c (linux_target): New.
7228 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
7229 (linux_nat_target::~linux_nat_target): New.
7230 (linux_child_post_attach, linux_child_post_startup_inferior)
7231 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
7232 (linux_child_remove_fork_catchpoint)
7233 (linux_child_insert_vfork_catchpoint)
7234 (linux_child_remove_vfork_catchpoint)
7235 (linux_child_insert_exec_catchpoint)
7236 (linux_child_remove_exec_catchpoint)
7237 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
7238 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
7239 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
7240 (linux_nat_stopped_data_address)
7241 (linux_nat_stopped_by_sw_breakpoint)
7242 (linux_nat_supports_stopped_by_sw_breakpoint)
7243 (linux_nat_stopped_by_hw_breakpoint)
7244 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
7245 (linux_nat_kill, linux_nat_mourn_inferior)
7246 (linux_nat_xfer_partial, linux_nat_thread_alive)
7247 (linux_nat_update_thread_list, linux_nat_pid_to_str)
7248 (linux_nat_thread_name, linux_child_pid_to_exec_file)
7249 (linux_child_static_tracepoint_markers_by_strid)
7250 (linux_nat_is_async_p, linux_nat_can_async_p)
7251 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
7252 (linux_nat_supports_multi_process)
7253 (linux_nat_supports_disable_randomization, linux_nat_async)
7254 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
7255 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
7256 (linux_nat_fileio_open, linux_nat_fileio_readlink)
7257 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
7258 methods of linux_nat_target.
7259 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
7260 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
7262 (check_stopped_by_watchpoint): Adjust.
7263 (linux_xfer_partial): Delete.
7264 (linux_target_install_ops, linux_target, linux_nat_add_target):
7266 (linux_nat_target::linux_nat_target): New.
7267 * linux-nat.h: Include "inf-ptrace.h".
7268 (linux_nat_target): New.
7269 (linux_target, linux_target_install_ops, linux_nat_add_target):
7270 Delete function declarations.
7271 (linux_target): Declare global.
7272 * linux-thread-db.c (thread_db_target): New.
7273 (thread_db_target::thread_db_target): New.
7274 (thread_db_ops): Delete.
7275 (the_thread_db_target): New.
7276 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
7277 (thread_db_update_thread_list, thread_db_pid_to_str)
7278 (thread_db_extra_thread_info)
7279 (thread_db_thread_handle_to_thread_info)
7280 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
7281 (thread_db_resume): Refactor as methods of thread_db_target.
7282 (init_thread_db_ops): Delete.
7283 (_initialize_thread_db): Remove reference to init_thread_db_ops.
7284 * x86-linux-nat.c: Don't include "linux-nat.h".
7285 (super_post_startup_inferior): Delete.
7286 (x86_linux_nat_target::~x86_linux_nat_target): New.
7287 (x86_linux_child_post_startup_inferior)
7288 (x86_linux_read_description, x86_linux_enable_btrace)
7289 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
7290 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
7291 methods of x86_linux_nat_target.
7292 (x86_linux_create_target): Delete. Bits folded ...
7293 (x86_linux_add_target): ... here. Now takes a linux_nat_target
7295 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
7296 (x86_linux_nat_target): New class.
7297 (x86_linux_create_target): Delete.
7298 (x86_linux_add_target): Now takes a linux_nat_target pointer.
7299 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
7300 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
7301 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
7302 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
7303 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
7305 (x86_use_watchpoints): Delete.
7306 * x86-nat.h: Include "breakpoint.h" and "target.h".
7307 (x86_use_watchpoints): Delete.
7308 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
7309 (x86_stopped_by_watchpoint, x86_stopped_data_address)
7310 (x86_insert_watchpoint, x86_remove_watchpoint)
7311 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
7312 (x86_stopped_by_hw_breakpoint): New declarations.
7313 (x86_nat_target): New template class.
7315 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
7316 (the_ppc_linux_nat_target): New.
7317 (ppc_linux_fetch_inferior_registers)
7318 (ppc_linux_can_use_hw_breakpoint)
7319 (ppc_linux_region_ok_for_hw_watchpoint)
7320 (ppc_linux_ranged_break_num_registers)
7321 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
7322 (ppc_linux_insert_mask_watchpoint)
7323 (ppc_linux_remove_mask_watchpoint)
7324 (ppc_linux_can_accel_watchpoint_condition)
7325 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
7326 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
7327 (ppc_linux_watchpoint_addr_within_range)
7328 (ppc_linux_masked_watch_num_registers)
7329 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
7330 (ppc_linux_read_description): Refactor as methods of
7331 ppc_linux_nat_target.
7332 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
7334 * procfs.c (procfs_xfer_partial): Delete forward declaration.
7335 (procfs_target): New class.
7336 (the_procfs_target): New.
7337 (procfs_target): Delete function.
7338 (procfs_auxv_parse, procfs_attach, procfs_detach)
7339 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
7340 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
7341 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
7342 (procfs_create_inferior, procfs_update_thread_list)
7343 (procfs_thread_alive, procfs_pid_to_str)
7344 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
7345 (procfs_stopped_data_address, procfs_insert_watchpoint)
7346 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
7347 (proc_find_memory_regions, procfs_info_proc)
7348 (procfs_make_note_section): Refactor as methods of procfs_target.
7349 (_initialize_procfs): Adjust.
7350 * sol-thread.c (sol_thread_target): New class.
7351 (sol_thread_ops): Now a sol_thread_target.
7352 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
7353 (sol_thread_fetch_registers, sol_thread_store_registers)
7354 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
7355 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
7356 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
7357 (init_sol_thread_ops): Delete.
7358 (_initialize_sol_thread): Adjust. Remove references to
7359 init_sol_thread_ops and complete_target_initialization.
7361 * windows-nat.c (windows_nat_target): New class.
7362 (windows_fetch_inferior_registers)
7363 (windows_store_inferior_registers, windows_resume, windows_wait)
7364 (windows_attach, windows_detach, windows_pid_to_exec_file)
7365 (windows_files_info, windows_create_inferior)
7366 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
7367 (windows_close, windows_pid_to_str, windows_xfer_partial)
7368 (windows_get_tib_address, windows_get_ada_task_ptid)
7369 (windows_thread_name, windows_thread_alive): Refactor as
7370 windows_nat_target methods.
7371 (do_initial_windows_stuff): Adjust.
7372 (windows_target): Delete function.
7373 (_initialize_windows_nat): Adjust.
7375 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
7376 (darwin_mourn_inferior, darwin_kill_inferior)
7377 (darwin_create_inferior, darwin_attach, darwin_detach)
7378 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
7379 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
7380 (darwin_supports_multi_process): Refactor as darwin_nat_target
7382 (darwin_resume_to, darwin_files_info): Delete.
7383 (_initialize_darwin_inferior): Rename to ...
7384 (_initialize_darwin_nat): ... this. Adjust to C++ification.
7385 * darwin-nat.h: Include "inf-child.h".
7386 (darwin_nat_target): New class.
7387 (darwin_complete_target): Delete.
7388 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
7389 (darwin_target): New.
7390 (i386_darwin_fetch_inferior_registers)
7391 (i386_darwin_store_inferior_registers): Refactor as methods of
7393 (darwin_complete_target): Delete, with ...
7394 (_initialize_i386_darwin_nat): ... bits factored out here.
7396 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
7397 (the_alpha_linux_nat_target): New.
7398 (alpha_linux_register_u_offset): Refactor as
7399 alpha_linux_nat_target method.
7400 (_initialize_alpha_linux_nat): Adjust.
7401 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
7402 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
7403 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
7404 methods of linux_nat_trad_target.
7405 (linux_trad_target): Delete.
7406 * linux-nat-trad.h (linux_trad_target): Delete function.
7407 (linux_nat_trad_target): New class.
7408 * mips-linux-nat.c (mips_linux_nat_target): New class.
7409 (super_fetch_registers, super_store_registers, super_close):
7411 (the_mips_linux_nat_target): New.
7412 (mips64_linux_regsets_fetch_registers)
7413 (mips64_linux_regsets_store_registers)
7414 (mips64_linux_fetch_registers, mips64_linux_store_registers)
7415 (mips_linux_register_u_offset, mips_linux_read_description)
7416 (mips_linux_can_use_hw_breakpoint)
7417 (mips_linux_stopped_by_watchpoint)
7418 (mips_linux_stopped_data_address)
7419 (mips_linux_region_ok_for_hw_watchpoint)
7420 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
7421 (mips_linux_close): Refactor as methods of mips_linux_nat.
7422 (_initialize_mips_linux_nat): Adjust to C++ification.
7424 * aix-thread.c (aix_thread_target): New class.
7425 (aix_thread_ops): Now an aix_thread_target.
7426 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
7427 (aix_thread_fetch_registers, aix_thread_store_registers)
7428 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
7429 (aix_thread_thread_alive, aix_thread_pid_to_str)
7430 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
7431 Refactor as methods of aix_thread_target.
7432 (init_aix_thread_ops): Delete.
7433 (_initialize_aix_thread): Remove references to init_aix_thread_ops
7434 and complete_target_initialization.
7435 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
7436 (rs6000_nat_target): New class.
7437 (the_rs6000_nat_target): New.
7438 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
7439 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
7440 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
7441 (super_create_inferior): Delete.
7442 (_initialize_rs6000_nat): Adjust to C++ification.
7444 * arm-linux-nat.c (arm_linux_nat_target): New class.
7445 (the_arm_linux_nat_target): New.
7446 (arm_linux_fetch_inferior_registers)
7447 (arm_linux_store_inferior_registers, arm_linux_read_description)
7448 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
7449 (arm_linux_remove_hw_breakpoint)
7450 (arm_linux_region_ok_for_hw_watchpoint)
7451 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
7452 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
7453 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
7454 arm_linux_nat_target.
7455 (_initialize_arm_linux_nat): Adjust to C++ification.
7457 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
7458 (the_aarch64_linux_nat_target): New.
7459 (aarch64_linux_fetch_inferior_registers)
7460 (aarch64_linux_store_inferior_registers)
7461 (aarch64_linux_child_post_startup_inferior)
7462 (aarch64_linux_read_description)
7463 (aarch64_linux_can_use_hw_breakpoint)
7464 (aarch64_linux_insert_hw_breakpoint)
7465 (aarch64_linux_remove_hw_breakpoint)
7466 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
7467 (aarch64_linux_region_ok_for_hw_watchpoint)
7468 (aarch64_linux_stopped_data_address)
7469 (aarch64_linux_stopped_by_watchpoint)
7470 (aarch64_linux_watchpoint_addr_within_range)
7471 (aarch64_linux_can_do_single_step): Refactor as methods of
7472 aarch64_linux_nat_target.
7473 (super_post_startup_inferior): Delete.
7474 (_initialize_aarch64_linux_nat): Adjust to C++ification.
7476 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
7477 (the_hppa_linux_nat_target): New.
7478 (hppa_linux_fetch_inferior_registers)
7479 (hppa_linux_store_inferior_registers): Refactor as methods of
7480 hppa_linux_nat_target.
7481 (_initialize_hppa_linux_nat): Adjust to C++ification.
7483 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
7484 (the_ia64_linux_nat_target): New.
7485 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
7486 (ia64_linux_stopped_data_address)
7487 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
7488 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
7489 ia64_linux_nat_target methods.
7490 (super_xfer_partial): Delete.
7491 (_initialize_ia64_linux_nat): Adjust to C++ification.
7493 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
7494 (the_m32r_linux_nat_target): New.
7495 (m32r_linux_fetch_inferior_registers)
7496 (m32r_linux_store_inferior_registers): Refactor as
7497 m32r_linux_nat_target methods.
7498 (_initialize_m32r_linux_nat): Adjust to C++ification.
7500 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
7501 (the_m68k_linux_nat_target): New.
7502 (m68k_linux_fetch_inferior_registers)
7503 (m68k_linux_store_inferior_registers): Refactor as
7504 m68k_linux_nat_target methods.
7505 (_initialize_m68k_linux_nat): Adjust to C++ification.
7507 * s390-linux-nat.c (s390_linux_nat_target): New class.
7508 (the_s390_linux_nat_target): New.
7509 (s390_linux_fetch_inferior_registers)
7510 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
7511 (s390_insert_watchpoint, s390_remove_watchpoint)
7512 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
7513 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
7514 (s390_auxv_parse, s390_read_description): Refactor as methods of
7515 s390_linux_nat_target.
7516 (_initialize_s390_nat): Adjust to C++ification.
7518 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
7519 (the_sparc_linux_nat_target): New.
7520 (_initialize_sparc_linux_nat): Adjust to C++ification.
7521 * sparc-nat.c (sparc_fetch_inferior_registers)
7522 (sparc_store_inferior_registers): Remove target_ops parameter.
7523 * sparc-nat.h (sparc_fetch_inferior_registers)
7524 (sparc_store_inferior_registers): Remove target_ops parameter.
7525 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
7526 (the_sparc64_linux_nat_target): New.
7527 (_initialize_sparc64_linux_nat): Adjust to C++ification.
7529 * spu-linux-nat.c (spu_linux_nat_target): New class.
7530 (the_spu_linux_nat_target): New.
7531 (spu_child_post_startup_inferior, spu_child_post_attach)
7532 (spu_child_wait, spu_fetch_inferior_registers)
7533 (spu_store_inferior_registers, spu_xfer_partial)
7534 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
7536 (_initialize_spu_nat): Adjust to C++ification.
7538 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
7539 (the_tilegx_linux_nat_target): New.
7540 (fetch_inferior_registers, store_inferior_registers):
7541 Refactor as methods.
7542 (_initialize_tile_linux_nat): Adjust to C++ification.
7544 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
7545 (the_xtensa_linux_nat_target): New.
7546 (xtensa_linux_fetch_inferior_registers)
7547 (xtensa_linux_store_inferior_registers): Refactor as
7548 xtensa_linux_nat_target methods.
7549 (_initialize_xtensa_linux_nat): Adjust to C++ification.
7551 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
7552 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
7553 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
7554 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
7555 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
7556 (fbsd_stopped_by_sw_breakpoint)
7557 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
7558 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
7559 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
7560 (fbsd_post_startup_inferior, fbsd_post_attach)
7561 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
7562 (fbsd_set_syscall_catchpoint)
7563 (super_xfer_partial, super_resume, super_wait)
7564 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
7565 (fbsd_handle_debug_trap): Remove target_ops parameter.
7566 (fbsd_nat_add_target): Delete.
7567 * fbsd-nat.h: Include "inf-ptrace.h".
7568 (fbsd_nat_add_target): Delete.
7569 (USE_SIGTRAP_SIGINFO): Define.
7570 (fbsd_nat_target): New class.
7572 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
7573 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
7574 (amd64bsd_target): Delete.
7575 * amd64-bsd-nat.h: New file.
7576 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
7578 (amd64_fbsd_nat_target): New class.
7579 (the_amd64_fbsd_nat_target): New.
7580 (amd64fbsd_read_description): Refactor as method of
7581 amd64_fbsd_nat_target.
7582 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
7583 (_initialize_amd64fbsd_nat): Adjust to C++ification.
7584 * amd64-nat.h (amd64bsd_target): Delete function declaration.
7585 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
7586 (i386bsd_store_inferior_registers): Remove target_ops parameter.
7587 (i386bsd_target): Delete.
7588 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
7589 (i386bsd_fetch_inferior_registers)
7590 (i386bsd_store_inferior_registers): Declare.
7591 (i386_bsd_nat_target): New class.
7592 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
7593 (the_i386_fbsd_nat_target): New.
7594 (i386fbsd_resume, i386fbsd_read_description): Refactor as
7595 i386_fbsd_nat_target methods.
7596 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
7597 (_initialize_i386fbsd_nat): Adjust to C++ification.
7598 * x86-bsd-nat.c (super_mourn_inferior): Delete.
7599 (x86bsd_mourn_inferior, x86bsd_target): Delete.
7600 (_initialize_x86_bsd_nat): Adjust to C++ification.
7601 * x86-bsd-nat.h: Include "x86-nat.h".
7602 (x86bsd_target): Delete declaration.
7603 (x86bsd_nat_target): New class.
7605 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
7606 (the_aarch64_fbsd_nat_target): New.
7607 (aarch64_fbsd_fetch_inferior_registers)
7608 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
7609 aarch64_fbsd_nat_target.
7610 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
7611 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
7612 (the_alpha_bsd_nat_target): New.
7613 (alphabsd_fetch_inferior_registers)
7614 (alphabsd_store_inferior_registers): Refactor as
7615 alpha_bsd_nat_target methods.
7616 (_initialize_alphabsd_nat): Refactor as methods of
7617 alpha_bsd_nat_target.
7618 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
7619 (the_amd64_nbsd_nat_target): New.
7620 (_initialize_amd64nbsd_nat): Adjust to C++ification.
7621 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
7622 (the_amd64_obsd_nat_target): New.
7623 (_initialize_amd64obsd_nat): Adjust to C++ification.
7624 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
7625 (the_arm_fbsd_nat_target): New.
7626 (arm_fbsd_fetch_inferior_registers)
7627 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
7628 (_initialize_arm_fbsd_nat): Refactor as methods of
7629 arm_fbsd_nat_target.
7630 (_initialize_arm_fbsd_nat): Adjust to C++ification.
7631 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
7632 (the_arm_netbsd_nat_target): New.
7633 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
7634 arm_netbsd_nat_target.
7635 (_initialize_arm_netbsd_nat): Adjust to C++ification.
7636 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
7637 (the_hppa_nbsd_nat_target): New.
7638 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
7639 hppa_nbsd_nat_target methods.
7640 (_initialize_hppanbsd_nat): Adjust to C++ification.
7641 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
7642 (the_hppa_obsd_nat_target): New.
7643 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
7644 methods of hppa_obsd_nat_target.
7645 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
7647 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
7648 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
7650 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
7651 (_initialize_i386obsd_nat): Use add_target.
7652 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
7653 (the_m68k_bsd_nat_target): New.
7654 (m68kbsd_fetch_inferior_registers)
7655 (m68kbsd_store_inferior_registers): Refactor as methods of
7656 m68k_bsd_nat_target.
7657 (_initialize_m68kbsd_nat): Adjust to C++ification.
7658 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
7659 (the_mips_fbsd_nat_target): New.
7660 (mips_fbsd_fetch_inferior_registers)
7661 (mips_fbsd_store_inferior_registers): Refactor as methods of
7662 mips_fbsd_nat_target.
7663 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
7665 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
7666 (the_mips_nbsd_nat_target): New.
7667 (mipsnbsd_fetch_inferior_registers)
7668 (mipsnbsd_store_inferior_registers): Refactor as methods of
7669 mips_nbsd_nat_target.
7670 (_initialize_mipsnbsd_nat): Adjust to C++ification.
7671 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
7672 (the_mips64_obsd_nat_target): New.
7673 (mips64obsd_fetch_inferior_registers)
7674 (mips64obsd_store_inferior_registers): Refactor as methods of
7675 mips64_obsd_nat_target.
7676 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
7678 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
7680 * nbsd-nat.h: Include "inf-ptrace.h".
7681 (nbsd_nat_target): New class.
7682 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
7683 (obsd_wait): Refactor as methods of obsd_nat_target.
7684 (obsd_add_target): Delete.
7685 * obsd-nat.h: Include "inf-ptrace.h".
7686 (obsd_nat_target): New class.
7687 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
7688 (the_ppc_fbsd_nat_target): New.
7689 (ppcfbsd_fetch_inferior_registers)
7690 (ppcfbsd_store_inferior_registers): Refactor as methods of
7691 ppc_fbsd_nat_target.
7692 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
7694 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
7695 (the_ppc_nbsd_nat_target): New.
7696 (ppcnbsd_fetch_inferior_registers)
7697 (ppcnbsd_store_inferior_registers): Refactor as methods of
7698 ppc_nbsd_nat_target.
7699 (_initialize_ppcnbsd_nat): Adjust to C++ification.
7700 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
7701 (the_ppc_obsd_nat_target): New.
7702 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
7703 methods of ppc_obsd_nat_target.
7704 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
7706 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
7707 (the_sh_nbsd_nat_target): New.
7708 (shnbsd_fetch_inferior_registers)
7709 (shnbsd_store_inferior_registers): Refactor as methods of
7711 (_initialize_shnbsd_nat): Adjust to C++ification.
7712 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
7713 (inf_ptrace_xfer_partial): Delete.
7714 (sparc_xfer_partial, sparc_target): Delete.
7715 * sparc-nat.h (sparc_fetch_inferior_registers)
7716 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
7717 (sparc_target): Delete function declaration.
7718 (sparc_target): New template class.
7719 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
7720 (_initialize_sparcnbsd_nat): Adjust to C++ification.
7721 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
7722 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
7724 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
7725 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
7726 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
7727 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
7729 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
7730 (the_vax_bsd_nat_target): New.
7731 (vaxbsd_fetch_inferior_registers)
7732 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
7734 (_initialize_vaxbsd_nat): Adjust to C++ification.
7736 * bsd-kvm.c (bsd_kvm_target): New class.
7737 (bsd_kvm_ops): Now a bsd_kvm_target.
7738 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
7739 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
7740 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
7742 (bsd_kvm_return_one): Delete.
7743 (bsd_kvm_add_target): Adjust to C++ification.
7745 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
7746 (nto_procfs_target_procfs): New classes.
7747 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
7748 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
7749 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
7750 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
7751 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
7752 (procfs_remove_hw_breakpoint, procfs_resume)
7753 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
7754 (procfs_kill_inferior, procfs_store_registers)
7755 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
7756 as methods of nto_procfs_target.
7757 (nto_procfs_ops): Now an nto_procfs_target_procfs.
7758 (nto_native_ops): Delete.
7759 (procfs_open, procfs_native_open): Delete.
7760 (nto_native_ops): Now an nto_procfs_target_native.
7761 (init_procfs_targets): Adjust to C++ification.
7762 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
7763 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
7764 Refactor as methods of nto_procfs_target.
7766 * go32-nat.c (go32_nat_target): New class.
7767 (the_go32_nat_target): New.
7768 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
7769 (go32_store_registers, go32_xfer_partial, go32_files_info)
7770 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
7771 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
7772 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
7773 (go32_pid_to_str): Refactor as methods of go32_nat_target.
7774 (go32_target): Delete.
7775 (_initialize_go32_nat): Adjust to C++ification.
7777 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
7778 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
7779 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
7780 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
7782 (gnu_target): Delete.
7783 * gnu-nat.h (gnu_target): Delete.
7784 (gnu_nat_target): New class.
7785 * i386-gnu-nat.c (gnu_base_target): New.
7786 (i386_gnu_nat_target): New class.
7787 (the_i386_gnu_nat_target): New.
7788 (_initialize_i386gnu_nat): Adjust to C++ification.
7790 2018-05-02 Pedro Alves <palves@redhat.com>
7792 * bfd-target.c (target_bfd_xclose): Rename to ...
7793 (target_bfd_close): ... this.
7794 (target_bfd_reopen): Adjust.
7795 * target.c (target_close): Remove references to to_xclose.
7796 * target.h (target_ops::to_xclose): Delete.
7797 (target_ops::to_close): Update comments.
7799 2018-05-02 Pedro Alves <palves@redhat.com>
7801 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
7803 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
7804 * inf-ptrace.c (inf_ptrace_register_u_offset)
7805 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
7806 (inf_ptrace_store_register, inf_ptrace_store_registers)
7807 (inf_ptrace_trad_target): Move to ...
7808 * linux-nat-trad.c: ... this new file.
7809 * linux-nat-trad.h: New file.
7810 * linux-nat.c (linux_target_install_ops): Make extern.
7811 (linux_trad_target): Delete.
7812 * linux-nat.h (linux_trad_target): Delete declaration.
7813 (linux_target_install_ops): Declare.
7814 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
7817 2018-05-02 Pedro Alves <palves@redhat.com>
7819 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
7820 procfs_target/add_target here.
7821 * procfs.c (procfs_target): Make static.
7822 (_initialize_procfs): Call add_target here.
7823 * procfs.h (struct target_ops): Remove forward declaration.
7824 (procfs_target): Remove declaration.
7825 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
7827 2018-05-02 Pedro Alves <palves@redhat.com>
7829 * procfs.c (procfs_stopped_by_watchpoint)
7830 (procfs_insert_watchpoint, procfs_remove_watchpoint)
7831 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
7833 (procfs_use_watchpoints): Delete, move contents...
7834 (procfs_target): ... here.
7835 * procfs.h (procfs_use_watchpoints): Delete declaration.
7836 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
7837 procfs_use_watchpoints.
7838 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
7839 procfs_use_watchpoints.
7841 2018-05-02 Tom Tromey <tom@tromey.com>
7844 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
7845 and var_zuinteger_unlimited.
7846 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
7847 and PARAM_ZUINTEGER_UNLIMITED.
7848 (set_parameter_value): Handle var_zuinteger and
7849 var_zuinteger_unlimited.
7850 (add_setshow_generic): Likewise.
7851 (parmpy_init): Likewise.
7853 2018-04-28 Dan Robertson <danlrobertson89@gmail.com>
7856 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
7857 pointer is not null before dereferencing it.
7859 2018-04-30 Tom Tromey <tom@tromey.com>
7861 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
7864 2018-04-30 Tom Tromey <tom@tromey.com>
7866 * breakpoint.c (mention): Remove use of is_mi_like_p.
7867 (print_mention_ranged_breakpoint): Likewise.
7868 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
7871 2018-04-30 Tom Tromey <tom@tromey.com>
7873 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
7875 2018-04-30 Tom Tromey <tom@tromey.com>
7877 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
7878 (info_spu_event_command): Remove some uses of is_mi_like_p.
7880 2018-04-30 Tom Tromey <tom@tromey.com>
7882 * python/py-framefilter.c (py_print_single_arg)
7883 (enumerate_locals, py_print_args, py_print_frame): Remove some
7884 uses of is_mi_like_p.
7886 2018-04-30 Tom Tromey <tom@tromey.com>
7889 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
7890 * ui-out.h (ui_out::is_mi_like_p): Now const.
7891 (ui_out::do_is_mi_like_p): Now const.
7892 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
7894 2018-04-30 Tom Tromey <tom@tromey.com>
7896 * varobj.c (varobj_set_visualizer): Use new_reference.
7897 * python/python.c (gdbpy_decode_line): Use new_reference.
7898 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
7901 2018-04-30 Tom Tromey <tom@tromey.com>
7903 * varobj.c (install_new_value): Use new_reference.
7904 * value.h (value_incref): Return void. Swap intro comment with
7906 * value.c (set_value_parent): Use new_reference.
7907 (value_incref): Return void. Update intro comment.
7908 (release_value): Use new_reference.
7909 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
7911 2018-04-30 Tom Tromey <tom@tromey.com>
7913 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
7914 * gdb_bfd.h (new_bfd_ref): Remove.
7915 (gdb_bfd_open): Update comment.
7916 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
7917 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
7918 (gdb_bfd_fdopenr): Use new_reference.
7919 * exec.c (exec_file_attach): Use new_reference.
7921 2018-04-30 Tom Tromey <tom@tromey.com>
7923 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
7926 2018-04-30 Tom Tromey <tom@tromey.com>
7928 * jit.c (jit_read_code_entry): Use type_align.
7929 * i386-tdep.c (i386_gdbarch_init): Don't call
7930 set_gdbarch_long_long_align_bit.
7931 * gdbarch.sh: Remove long_long_align_bit.
7932 * gdbarch.c, gdbarch.h: Rebuild.
7933 * arc-tdep.c (arc_type_align): New function.
7934 (arc_gdbarch_init): Use arc_type_align. Don't call
7935 set_gdbarch_long_long_align_bit.
7937 2018-04-30 Tom Tromey <tom@tromey.com>
7939 * rust-lang.c (rust_type_alignment): Remove.
7940 (rust_composite_type): Use type_align.
7942 2018-04-30 Tom Tromey <tom@tromey.com>
7944 * NEWS: Mention Type.align.
7945 * python/py-type.c (typy_get_alignof): New function.
7946 (type_object_getset): Add "alignof".
7948 2018-04-30 Tom Tromey <tom@tromey.com>
7952 * std-operator.def (UNOP_ALIGNOF): New operator.
7953 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
7955 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
7956 * c-lang.c (c_op_print_tab): Add alignof.
7957 * c-exp.y (ALIGNOF): New token.
7958 (exp): Add "ALIGNOF" production.
7959 (ident_tokens): Add _Alignof and alignof.
7961 2018-04-30 Tom Tromey <tom@tromey.com>
7963 * i386-tdep.c (i386_type_align): New function.
7964 (i386_gdbarch_init): Update.
7965 * gdbarch.sh (type_align): New method.
7966 * gdbarch.c, gdbarch.h: Rebuild.
7967 * arch-utils.h (default_type_align): Declare.
7968 * arch-utils.c (default_type_align): New function.
7969 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
7970 (struct type) <align_log2>: New field.
7971 <instance_flags>: Now a bitfield.
7972 (TYPE_RAW_ALIGN): New macro.
7973 (type_align, type_raw_align, set_type_align): Declare.
7974 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
7976 * dwarf2read.c (quirk_rust_enum): Set type alignment.
7977 (get_alignment, maybe_set_alignment): New functions.
7978 (read_structure_type, read_enumeration_type, read_array_type)
7979 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
7980 (read_subrange_type, read_base_type): Set type alignment.
7982 2018-04-30 Simon Marchi <simon.marchi@ericsson.com>
7984 * dwarf2read.c (read_index_from_section): Use bool.
7986 2018-04-29 Fabian Groffen <grobian@gentoo.org>
7989 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
7992 2018-04-29 John Reiser <jreiser@BitWagon.com>
7995 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
7996 last step, and do it atomically.
7998 2018-04-27 Alexandre Oliva <aoliva@redhat.com>
8000 * compile/compile-c-types.c (convert_int, convert_float):
8003 2018-04-27 Tom Tromey <tom@tromey.com>
8006 * rust-lang.c (rust_inclusive_range_type_p): New function.
8007 (rust_range): Handle inclusive ranges.
8008 (rust_compute_range): Likewise.
8009 * rust-exp.y (struct rust_op) <inclusive>: New field.
8010 (DOTDOTEQ): New constant.
8011 (range_expr): Add "..=" productions.
8012 (operator_tokens): Add "..=" token.
8013 (ast_range): Add "inclusive" parameter.
8014 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
8016 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
8018 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
8019 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
8021 * expprint.c (print_subexp_standard): Handle new bounds values.
8022 (dump_subexp_body_standard): Likewise.
8024 2018-04-27 Tom Tromey <tom@tromey.com>
8026 * configure: Rebuild.
8027 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
8028 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
8030 (class symbol_needs_eval_context): Likewise.
8031 * dwarf2read.c (mock_mapped_index::symbol_name_count)
8032 (mock_mapped_index::symbol_name_at): Use "override". Remove
8034 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
8036 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
8037 * aarch64-tdep.c (instruction_reader::read): Use "override".
8038 (instruction_reader_test::read): Likewise.
8039 * arm-tdep.c (instruction_reader::read): Use "override".
8040 (instruction_reader_thumb::read): Likewise.
8042 2018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
8045 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
8046 instead of remote_send.
8047 (remote_send): Remove.
8049 2018-04-26 Pedro Alves <palves@redhat.com>
8051 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
8052 find_function_start_sal instead of find_pc_line.
8054 2018-04-26 Pedro Alves <palves@redhat.com>
8056 * breakpoint.c (set_breakpoint_location_function): Handle
8058 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
8059 * elfread.c (elf_symtab_read): Give data symbols with
8060 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
8061 (elf_rel_plt_read): Update comment.
8062 * linespec.c (convert_linespec_to_sals): Handle
8064 (minsym_found): Handle mst_data_gnu_ifunc.
8065 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
8066 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
8067 * parse.c (find_minsym_type_and_address): Handle
8069 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
8070 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
8071 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
8073 <mst_data_gnu_ifunc>: New enumerator.
8075 2018-04-26 Pedro Alves <palves@redhat.com>
8077 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
8078 (lookup_minimal_symbol_by_pc_section): ... this. Replace
8079 'want_trampoline' parameter by a lookup_msym_prefer parameter.
8081 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
8082 (lookup_minimal_symbol_by_pc): Adjust.
8083 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
8084 (lookup_solib_trampoline_symbol_by_pc): Adjust.
8085 * minsyms.h (lookup_msym_prefer): New enum.
8086 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
8087 parameter by a lookup_msym_prefer parameter.
8089 2018-04-26 Pedro Alves <palves@redhat.com>
8091 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
8092 ends in "@plt" instead of looking at the symbol's section.
8094 2018-04-26 Pedro Alves <palves@redhat.com>
8096 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
8098 (find_pc_partial_function_gnu_ifunc): Rename to ...
8099 (find_pc_partial_function): ... this, and remove references to
8101 (find_pc_partial_function): Delete old implementation.
8102 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
8104 2018-04-26 Pedro Alves <palves@redhat.com>
8106 * linespec.c (struct bound_minimal_symbol_search_key): New.
8107 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
8108 skip first line if we found a GNU ifunc minimal symbol by name.
8109 (compare_msymbols): Change parameters to work with a destructured
8111 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
8114 2018-04-26 Pedro Alves <palves@redhat.com>
8116 * breakpoint.c (set_breakpoint_location_function): Don't resolve
8117 ifunc targets here. Instead, if we have an ifunc minsym, use its
8119 (add_location_to_breakpoint): Store the minsym and the objfile in
8120 the breakpoint location.
8121 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
8122 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
8123 Record the minsym in the sal.
8124 * symtab.h (symtab_and_line) <msymbol>: New field.
8126 2018-04-26 Pedro Alves <palves@redhat.com>
8128 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
8129 unless we actually resolved the ifunc.
8131 2018-04-26 Pedro Alves <palves@redhat.com>
8133 * c-exp.y (variable production): Prefer ifunc minsyms over
8134 regular function symbols.
8135 * symtab.c (find_gnu_ifunc): New function.
8136 * minsyms.h (lookup_msym_prefer): New enum.
8137 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
8138 parameter by a lookup_msym_prefer parameter.
8139 * symtab.h (find_gnu_ifunc): New declaration.
8141 2018-04-26 Pedro Alves <palves@redhat.com>
8143 * blockframe.c (find_gnu_ifunc_target_type): New function.
8144 (find_function_type): New.
8145 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
8146 return a value with a memory address.
8147 (eval_call): For calls to GNU ifunc functions, try to find the
8148 type of the target function from the type that the resolver
8150 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
8152 * infcall.c (find_function_return_type): Delete.
8153 (find_function_addr): Add 'function_type' parameter. For calls to
8154 GNU ifunc functions, try to find the type of the target function
8155 from the type that the resolver returns, and return it via
8157 (call_function_by_hand_dummy): Adjust to use the function type
8158 returned by find_function_addr.
8159 (find_function_addr): Add 'function_type' parameter and move
8161 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
8164 2018-04-26 Pedro Alves <palves@redhat.com>
8166 * c-exp.y (variable production): Skip finding an alias for ifunc
8169 2018-04-26 Pedro Alves <palves@redhat.com>
8171 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
8173 2018-04-25 Pedro Alves <palves@redhat.com>
8175 * infcmd.c (kill_command): Print the pid as string, not the whole
8176 thread's ptid. Add comment. s/has been killed/killed/ in output
8178 * remote.c (remote_detach_1): Print the pid as string, not the
8179 whole thread's ptid.
8181 2018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8182 Sergio Durigan Junior <sergiodj@redhat.com>
8183 Pedro Alves <palves@redhat.com>
8185 * infcmd.c (kill_command): Print message when inferior has
8187 * inferior.c (print_inferior_events): Remove 'static'. Set as
8189 (add_inferior): Improve message printed when
8190 'print_inferior_events' is on.
8191 (exit_inferior): Remove message printed when
8192 'print_inferior_events' is on.
8193 (detach_inferior): Improve message printed when
8194 'print_inferior_events' is on.
8195 (initialize_inferiors): Use 'add_inferior_silent' to set
8196 'current_inferior_'.
8197 * inferior.h (print_inferior_events): Declare here as
8199 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
8200 '[Detaching...]' messages when 'print_inferior_events' is on.
8201 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
8202 as prefix/suffix for messages. Remove periods. Fix erroneous
8203 'Detaching after fork from child...', replace it by '... from
8205 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
8206 prefix/suffix when printing 'Detaching...' messages. Print
8207 them when 'print_inferior_events' is on.
8208 * remote.c (remote_detach_1): Print message when detaching
8209 from inferior and '!is_fork_parent'.
8211 2018-04-24 Tom Tromey <tom@tromey.com>
8213 * cli-out.h: Reindent.
8215 2018-04-24 Tom Tromey <tom@tromey.com>
8217 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
8218 (cli_ui_out::do_field_string): Use fputs_filtered.
8219 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
8221 2018-04-23 Tom Tromey <tom@tromey.com>
8223 * guile/scm-frame.c (gdbscm_frame_read_var): Use
8224 gdb::unique_xmalloc_ptr.
8226 2018-04-23 Tom Tromey <tom@tromey.com>
8228 * configure: Rebuild.
8230 2018-04-22 Rajendra SY <rajendra.sy@gmail.com>
8233 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
8234 prepare_for_testing. Set normal_bp to r_debug_state if target
8237 2018-04-21 Pedro Alves <palves@redhat.com>
8238 Rajendra SY <rajendra.sy@gmail.com>
8240 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
8241 * remote.c (extended_remote_attach): In all-stop mode, mark the
8242 thread as executing.
8244 2018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8246 * thread.c (thread_apply_all_command): Fix comment.
8247 (thread_command): Fix comment.
8249 2018-04-10 Alan Hayward <alan.hayward@arm.com>
8251 * common/tdesc.h (tdesc_create_feature): Remove xml filename
8253 * features/aarch64-core.c (create_feature_aarch64_core):
8255 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
8257 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
8259 * features/i386/32bit-avx512.c
8260 (create_feature_i386_32bit_avx512): Likewise.
8261 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
8263 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
8265 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
8267 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
8269 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
8271 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
8273 * features/i386/64bit-avx512.c
8274 (create_feature_i386_64bit_avx512): Likewise.
8275 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
8277 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
8279 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
8281 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
8283 * features/i386/64bit-segments.c
8284 (create_feature_i386_64bit_segments): Likewise.
8285 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
8287 * features/i386/x32-core.c
8288 (create_feature_i386_x32_core): Likewise.
8289 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
8290 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
8291 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
8292 * target-descriptions.c: In generated code, don't pass xml
8295 2018-04-18 Alan Hayward <alan.hayward@arm.com>
8297 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
8298 (print_xml_feature::visit_post): Likewise.
8299 (print_xml_feature::visit): Likewise.
8300 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
8301 (print_xml_feature): Add new class.
8302 * regformats/regdat.sh: Null xmltarget on feature targets.
8303 * target-descriptions.c (struct target_desc): Add xmltarget.
8304 (maintenance_check_tdesc_xml_convert): Add unittest function.
8305 (tdesc_get_features_xml): Add function to get xml.
8306 (maintenance_check_xml_descriptions): Test xml generation.
8307 * xml-tdesc.c (string_read_description_xml): Add function.
8308 * xml-tdesc.h (string_read_description_xml): Add declaration.
8310 2018-04-18 Alan Hayward <alan.hayward@arm.com>
8312 * features/Makefile: Add feature marker to targets with new style
8313 target descriptions.
8314 * regformats/aarch64.dat: Regenerate.
8315 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
8316 * regformats/i386/amd64-avx-linux.dat: Likewise.
8317 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
8318 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
8319 * regformats/i386/amd64-linux.dat: Likewise.
8320 * regformats/i386/amd64-mpx-linux.dat: Likewise.
8321 * regformats/i386/amd64.dat: Likewise.
8322 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
8323 * regformats/i386/i386-avx-linux.dat: Likewise.
8324 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
8325 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
8326 * regformats/i386/i386-linux.dat: Likewise.
8327 * regformats/i386/i386-mmx-linux.dat: Likewise.
8328 * regformats/i386/i386-mpx-linux.dat: Likewise.
8329 * regformats/i386/i386.dat: Likewise.
8330 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
8331 * regformats/i386/x32-avx-linux.dat: Likewise.
8332 * regformats/i386/x32-linux.dat: Likewise.
8333 * regformats/tic6x-c62x-linux.dat: Likewise.
8334 * regformats/tic6x-c64x-linux.dat: Likewise.
8335 * regformats/tic6x-c64xp-linux.dat: Likewise.
8336 * regformats/regdat.sh: Parse feature marker.
8338 2018-04-18 Alan Hayward <alan.hayward@arm.com>
8340 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
8341 (tdesc_osabi_name): Likewise.
8342 * target-descriptions.c (tdesc_architecture_name): Add new
8344 (tdesc_osabi_name): Likewise.
8346 2018-04-18 Alan Hayward <alan.hayward@arm.com>
8348 * common/tdesc.c (tdesc_predefined_type): Move to here.
8349 (tdesc_named_type): Likewise.
8350 (tdesc_create_vector): Likewise.
8351 (tdesc_create_struct): Likewise.
8352 (tdesc_set_struct_size): Likewise.
8353 (tdesc_create_union): Likewise.
8354 (tdesc_create_flags): Likewise.
8355 (tdesc_create_enum): Likewise.
8356 (tdesc_add_field): Likewise.
8357 (tdesc_add_typed_bitfield): Likewise.
8358 (tdesc_add_bitfield): Likewise.
8359 (tdesc_add_flag): Likewise.
8360 (tdesc_add_enum_value): Likewise.
8361 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
8362 (struct tdesc_type_vector): Likewise.
8363 (struct tdesc_type_field): Likewise.
8364 (struct tdesc_type_with_fields): Likewise.
8365 (tdesc_create_enum): Add declaration.
8366 (tdesc_add_typed_bitfield): Likewise.
8367 (tdesc_add_enum_value): Likewise.
8368 * target-descriptions.c (tdesc_type_field): Move from here.
8369 (tdesc_type_builtin): Likewise.
8370 (tdesc_type_vector): Likewise.
8371 (tdesc_type_with_fields): Likewise.
8372 (tdesc_predefined_types): Likewise.
8373 (tdesc_named_type): Likewise.
8374 (tdesc_create_vector): Likewise.
8375 (tdesc_create_struct): Likewise.
8376 (tdesc_set_struct_size): Likewise.
8377 (tdesc_create_union): Likewise.
8378 (tdesc_create_flags): Likewise.
8379 (tdesc_create_enum): Likewise.
8380 (tdesc_add_field): Likewise.
8381 (tdesc_add_typed_bitfield): Likewise.
8382 (tdesc_add_bitfield): Likewise.
8383 (tdesc_add_flag): Likewise.
8384 (tdesc_add_enum_value): Likewise.
8385 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
8386 (tdesc_add_typed_bitfield): Likewise.
8387 (tdesc_add_enum_value): Likewise.
8389 2018-04-18 Alan Hayward <alan.hayward@arm.com>
8391 * common/tdesc.c (tdesc_feature::accept): Move to here.
8392 (tdesc_feature::operator==): Likewise.
8393 (tdesc_create_reg): Likewise.
8394 * common/tdesc.h (tdesc_type_kind): Likewise.
8395 (struct tdesc_type): Likewise.
8396 (struct tdesc_feature): Likewise.
8397 * regformats/regdat.sh: Create a feature.
8398 * target-descriptions.c (tdesc_type_kind): Move from here.
8399 (tdesc_type): Likewise.
8400 (tdesc_type_up): Likewise.
8401 (tdesc_feature): Likewise.
8402 (tdesc_create_reg): Likewise.
8404 2018-04-18 Alan Hayward <alan.hayward@arm.com>
8406 * Makefile.in: Add arch/tdesc.c
8407 * common/tdesc.c: New file.
8408 * common/tdesc.h (tdesc_element_visitor): Move to here.
8409 (tdesc_element): Likewise.
8410 (tdesc_reg): Likewise.
8411 (tdesc_reg_up): Likewise.
8412 * regformats/regdef.h (reg): Add offset to constructors.
8413 * target-descriptions.c (tdesc_element_visitor): Move from here.
8414 (tdesc_element): Likewise.
8415 (tdesc_reg): Likewise.
8416 (tdesc_reg_up): Likewise.
8418 2018-04-17 Tom Tromey <tom@tromey.com>
8420 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
8423 2018-04-17 Tom Tromey <tom@tromey.com>
8425 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
8427 2018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
8429 * symtab.c (print_symbol_info): Skip printing filename and line
8430 number when `last' is NULL.
8431 (symtab_symbol_info): Use empty string instead of NULL for first
8432 invocation of print_symbol_info.
8433 (rbreak_command): Pass NULL to `last' parameter of
8436 2018-04-16 Simon Marchi <simon.marchi@ericsson.com>
8438 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
8441 2018-04-16 Pedro Alves <palves@redhat.com>
8443 * MAINTAINERS (sh): Remove.
8444 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
8445 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
8446 (ALLDEPFILES): Remove sh64-tdep.c.
8447 * NEWS: Mentions that support for SH-5/SH64 is removed.
8448 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
8449 (sh*-*-openbsd*): Ditto.
8450 (sh64-*-elf*): Remove.
8452 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
8453 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
8454 * sh-tdep.c: No longer include "sh64-tdep.h".
8455 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
8456 * sh64-tdep.c, sh64-tdep.h: Remove files.
8458 2018-04-16 Pedro Alves <palves@redhat.com>
8460 * MAINTAINERS: Remove m88k.
8461 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
8462 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
8463 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
8464 * NEWS: Mention that support for m88k was removed.
8465 * configure.host (m88*-*-*): Remove support.
8466 * configure.nat (m88k-*-*): Remove support.
8467 * configure.tgt (m88*-*-openbsd*): Remove.
8468 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
8470 2018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
8472 * configure.tgt (x86_tobjs): New variable.
8473 (amd64_tobjs, i386_tobjs): Use it.
8475 2018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8477 * symtab.c (print_symbol_info): Precede the symbol definition by
8478 the line number when available.
8479 * NEWS: Advertise this enhancement.
8481 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
8483 * NEWS (New options): announce set/show record btrace cpu.
8484 * btrace.c: Include record-btrace.h.
8485 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
8486 the vendor is unknown.
8487 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
8488 Maybe overwrite the btrace configuration's cpu.
8489 (btrace_compute_ftrace): Add cpu parameter. Update callers.
8490 (btrace_fetch): Add cpu parameter. Update callers.
8491 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
8492 Maybe overwrite the btrace configuration's cpu. Skip enabling
8493 errata workarounds if the vendor is unknown.
8494 * python/py-record-btrace.c: Include record-btrace.h.
8495 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
8496 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
8497 * record-btrace.c (record_btrace_cpu_state_kind): New.
8498 (record_btrace_cpu): New.
8499 (set_record_btrace_cpu_cmdlist): New.
8500 (record_btrace_get_cpu): New.
8501 (require_btrace_thread, record_btrace_info)
8502 (record_btrace_resume_thread): Call record_btrace_get_cpu.
8503 (cmd_set_record_btrace_cpu_none): New.
8504 (cmd_set_record_btrace_cpu_auto): New.
8505 (cmd_set_record_btrace_cpu): New.
8506 (cmd_show_record_btrace_cpu): New.
8507 (_initialize_record_btrace): Initialize set/show record btrace cpu
8509 * record-btrace.h (record_btrace_get_cpu): New.
8511 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
8513 * record.c (set_record_command): Fix typo in message.
8515 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
8517 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
8519 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
8521 * infrun.c (process_event_stop_test): Call
8522 gdbarch_in_indirect_branch_thunk.
8523 * gdbarch.sh (in_indirect_branch_thunk): New.
8524 * gdbarch.c: Regenerated.
8525 * gdbarch.h: Regenerated.
8528 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
8529 (HFILES_NO_SRCDIR): Add x86-tdep.h.
8530 (ALLDEPFILES): Add x86-tdep.c.
8531 * arch-utils.h (default_in_indirect_branch_thunk): New.
8532 * arch-utils.c (default_in_indirect_branch_thunk): New.
8533 * i386-tdep: Include x86-tdep.h.
8534 (i386_in_indirect_branch_thunk): New.
8535 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
8537 * amd64-tdep: Include x86-tdep.h.
8538 (amd64_in_indirect_branch_thunk): New.
8539 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
8541 2018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8544 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
8545 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
8546 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
8549 2018-04-12 Tom Tromey <tom@tromey.com>
8551 * rust-lang.c (rust_print_struct_def): Remove univariant code.
8552 (rust_evaluate_subexp): Likewise.
8554 2018-04-12 Pedro Alves <palves@redhat.com>
8556 * procfs.c (procfs_detach): Make forward declaration's prototype
8557 match definition's protototype.
8558 (proc_get_LDT_entry): Remove stale do_cleanups call.
8560 2018-04-12 Pedro Alves <palves@redhat.com>
8562 * target.h (target_ops::to_has_exited): Delete.
8563 (target_has_exited): Delete.
8564 * target-delegates.c: Regenerate.
8566 2018-04-11 Pedro Alves <palves@redhat.com>
8568 * target.c (fileio_fh_t::t): Add comment.
8569 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
8570 (target_fileio_close): Handle a NULL target.
8571 (invalidate_fileio_fh): New.
8572 (target_close): Call it.
8573 * remote.c (remote_hostio_send_command): No longer check whether
8574 remote_desc is open.
8576 2018-04-11 Pedro Alves <palves@redhat.com>
8578 * target.c (fileio_fh_t): Make it a named struct instead of a
8580 (fileio_fh_t::is_closed): New method.
8581 (DEF_VEC_O (fileio_fh_t)): Remove.
8582 (fileio_fhandles): Now a std::vector.
8583 (is_closed_fileio_fh): Delete.
8584 (acquire_fileio_fd): Adjust. Rename parameters.
8585 (release_fileio_fd): Adjust.
8586 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
8587 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
8588 (target_fileio_close): Adjust.
8590 2018-04-10 Simon Marchi <simon.marchi@ericsson.com>
8592 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
8595 2018-04-10 Pedro Alves <palves@redhat.com>
8597 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
8598 (scoped_finish_thread_state): New class.
8599 * infcmd.c (run_command_1): Use it instead of finish_thread_state
8601 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
8602 (fetch_inferior_event, normal_stop): Likewise.
8603 * thread.c (finish_thread_state_cleanup): Delete.
8605 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8606 Pedro Alves <palves@redhat.com>
8608 * value.c: Include "selftest.h" and "common/array-view.h".
8609 (struct range) <operator ==>: New.
8610 (test_ranges_contain): New.
8611 (check_ranges_vector): New.
8612 (test_insert_into_bit_range_vector): New.
8613 (_initialize_values): Register selftests.
8614 * common/array-view.h (operator==, operator!=): New.
8616 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8618 * common/gdb_vecs.h (unordered_remove): Add overload that takes
8620 * inline-frame.c: Include <algorithm>.
8621 (struct inline_state): Add constructor.
8622 (inline_state_s): Remove.
8623 (DEF_VEC_O(inline_state_s)): Remove.
8624 (inline_states): Change type to std::vector.
8625 (find_inline_frame_state): Adjust to std::vector.
8626 (allocate_inline_frame_state): Remove.
8627 (clear_inline_frame_state): Adjust to std::vector.
8628 (skip_inline_frames): Adjust to std::vector.
8630 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8632 * tracepoint.h (struct trace_state_variable): Add constructor.
8633 <name>: Change type to std::string.
8634 * tracepoint.c (tsv_s): Remove.
8635 (DEF_VEC_O(tsv_s)): Remove.
8636 (tvariables): Change to std::vector.
8637 (create_trace_state_variable): Adjust to std::vector.
8638 (find_trace_state_variable): Likewise.
8639 (find_trace_state_variable_by_number): Likewise.
8640 (delete_trace_state_variable): Likewise.
8641 (trace_variable_command): Adjust to std::string.
8642 (delete_trace_variable_command): Likewise.
8643 (tvariables_info_1): Adjust to std::vector.
8644 (save_trace_state_variables): Likewise.
8645 (start_tracing): Likewise.
8646 (merge_uploaded_trace_state_variables): Adjust to std::vector
8648 * target.h (struct target_ops)
8649 <to_download_trace_state_variable>: Pass reference to
8650 trace_state_variable.
8651 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
8652 * target-delegates.c: Re-generate.
8653 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
8654 (mi_tsv_deleted): Likewise.
8655 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
8656 * remote.c (remote_download_trace_state_variable): Change
8657 pointer to reference and adjust.
8658 * make-target-delegates (parse_argtypes): Handle references.
8659 (write_function_header): Likewise.
8660 (munge_type): Likewise.
8662 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8664 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8665 string_view-selftests.c.
8666 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
8668 * unittests/basic_string_view/cons/char/1.cc: Likewise.
8669 * unittests/basic_string_view/cons/char/2.cc: Likewise.
8670 * unittests/basic_string_view/cons/char/3.cc: Likewise.
8671 * unittests/basic_string_view/element_access/char/1.cc:
8673 * unittests/basic_string_view/element_access/char/empty.cc:
8675 * unittests/basic_string_view/element_access/char/front_back.cc:
8677 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
8678 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
8680 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
8682 * unittests/basic_string_view/modifiers/swap/char/1.cc:
8684 * unittests/basic_string_view/operations/compare/char/1.cc:
8686 * unittests/basic_string_view/operations/compare/char/13650.cc:
8688 * unittests/basic_string_view/operations/copy/char/1.cc:
8690 * unittests/basic_string_view/operations/data/char/1.cc:
8692 * unittests/basic_string_view/operations/find/char/1.cc:
8694 * unittests/basic_string_view/operations/find/char/2.cc:
8696 * unittests/basic_string_view/operations/find/char/3.cc:
8698 * unittests/basic_string_view/operations/find/char/4.cc:
8700 * unittests/basic_string_view/operations/rfind/char/1.cc:
8702 * unittests/basic_string_view/operations/rfind/char/2.cc:
8704 * unittests/basic_string_view/operations/rfind/char/3.cc:
8706 * unittests/basic_string_view/operations/substr/char/1.cc:
8708 * unittests/basic_string_view/operators/char/2.cc: Likewise.
8709 * unittests/string_view-selftests.c: New file.
8711 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8713 * unittests/basic_string_view/capacity/1.cc: New file.
8714 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
8715 * unittests/basic_string_view/cons/char/1.cc: New file.
8716 * unittests/basic_string_view/cons/char/2.cc: New file.
8717 * unittests/basic_string_view/cons/char/3.cc: New file.
8718 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
8719 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
8720 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
8721 * unittests/basic_string_view/element_access/char/1.cc: New file.
8722 * unittests/basic_string_view/element_access/char/2.cc: New file.
8723 * unittests/basic_string_view/element_access/char/empty.cc: New file.
8724 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
8725 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
8726 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
8727 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
8728 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
8729 * unittests/basic_string_view/include.cc: New file.
8730 * unittests/basic_string_view/inserters/char/1.cc: New file.
8731 * unittests/basic_string_view/inserters/char/2.cc: New file.
8732 * unittests/basic_string_view/inserters/char/3.cc: New file.
8733 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
8734 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
8735 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
8736 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
8737 * unittests/basic_string_view/literals/types.cc: New file.
8738 * unittests/basic_string_view/literals/values.cc: New file.
8739 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
8740 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
8741 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
8742 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
8743 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
8744 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
8745 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
8746 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
8747 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
8748 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
8749 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
8750 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
8751 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
8752 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
8753 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
8754 * unittests/basic_string_view/operations/data/char/1.cc: New file.
8755 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
8756 * unittests/basic_string_view/operations/find/char/1.cc: New file.
8757 * unittests/basic_string_view/operations/find/char/2.cc: New file.
8758 * unittests/basic_string_view/operations/find/char/3.cc: New file.
8759 * unittests/basic_string_view/operations/find/char/4.cc: New file.
8760 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
8761 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
8762 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
8763 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
8764 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
8765 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
8766 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
8767 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
8768 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
8769 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
8770 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
8771 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
8772 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
8773 * unittests/basic_string_view/operators/char/2.cc: New file.
8774 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
8775 * unittests/basic_string_view/range_access/char/1.cc: New file.
8776 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
8777 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
8778 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
8779 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
8780 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
8781 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
8782 * unittests/basic_string_view/requirements/typedefs.cc: New file.
8783 * unittests/basic_string_view/typedefs.cc: New file.
8784 * unittests/basic_string_view/types/1.cc: New file.
8786 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8788 * common/gdb_string_view.h: Remove libstdc++ implementation
8789 details, adjust to gdb reality.
8790 * common/gdb_string_view.tcc: Likewise.
8791 * cli/cli-script.c (struct string_view): Remove.
8792 (user_args) <m_args>: Change element type to gdb::string_view.
8793 (user_args::insert_args): Adjust.
8795 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8797 * common/gdb_string_view.h: New file.
8798 * common/gdb_string_view.tcc: New file.
8800 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8802 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
8803 * configure: Re-generate.
8805 2018-04-09 Pedro Alves <palves@redhat.com>
8807 * gdbarch.sh: Include "observable.h" instead of "observer.h".
8808 (set_target_gdbarch): Call
8809 gdb::observers::architecture_changed.notify instead of
8810 observer_notify_architecture_changed.
8812 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8814 * tracepoint.c (struct current_traceframe_cleanup): Remove.
8815 (do_restore_current_traceframe_cleanup): Remove.
8816 (restore_current_traceframe_cleanup_dtor): Remove.
8817 (make_cleanup_restore_current_traceframe): Remove.
8818 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
8820 * tracepoint.h (struct scoped_restore_current_traceframe): New.
8821 * infrun.c (fetch_inferior_event): Use
8822 scoped_restore_current_traceframe.
8824 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8826 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
8828 <n_allocated_type_units>: Remove.
8829 <all_type_units>: Change to std::vector.
8830 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
8831 to std::vector change.
8832 (dwarf2_per_objfile::get_cutu): Likewise.
8833 (dwarf2_per_objfile::get_tu): Likewise.
8834 (create_signatured_type_table_from_index): Likewise.
8835 (create_signatured_type_table_from_debug_names): Likewise.
8836 (dw2_symtab_iter_next): Likewise.
8837 (dw2_print_stats): Likewise.
8838 (dw2_expand_all_symtabs): Likewise.
8839 (dw2_expand_marked_cus): Likewise.
8840 (dw2_debug_names_iterator::next): Likewise.
8841 (dwarf2_initialize_objfile): Likewise.
8842 (add_signatured_type_cu_to_table): Likewise.
8843 (create_all_type_units): Likewise.
8844 (add_type_unit): Likewise.
8845 (struct tu_abbrev_offset): Add constructor.
8846 (build_type_psymtabs_1): Adjust to std::vector change.
8847 (print_tu_stats): Likewise.
8848 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
8849 (write_debug_names): Likewise.
8851 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8853 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
8854 Make an std::vector.
8855 <n_comp_units>: Remove.
8856 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
8857 to std::vector change.
8858 (dwarf2_per_objfile::get_cutu): Likewise.
8859 (dwarf2_per_objfile::get_cu): Likewise.
8860 (create_cus_from_index): Likewise.
8861 (create_addrmap_from_index): Likewise.
8862 (create_addrmap_from_aranges): Likewise.
8863 (dwarf2_read_index): Likewise.
8864 (dw2_find_last_source_symtab): Likewise.
8865 (dw2_map_symtabs_matching_filename): Likewise.
8866 (dw2_symtab_iter_next): Likewise.
8867 (dw2_print_stats): Likewise.
8868 (dw2_expand_all_symtabs): Likewise.
8869 (dw2_expand_symtabs_with_fullname): Likewise.
8870 (dw2_expand_marked_cus): Likewise.
8871 (dw2_map_symbol_filenames): Likewise.
8872 (create_cus_from_debug_names): Likewise.
8873 (dwarf2_read_debug_names): Likewise.
8874 (dw2_debug_names_iterator::next): Likewise.
8875 (dwarf2_initialize_objfile): Likewise.
8876 (set_partial_user): Likewise.
8877 (dwarf2_build_psymtabs_hard): Likewise.
8878 (read_comp_units_from_section): Remove arguments, adjust to
8880 (create_all_comp_units): Adjust to std::vector and
8881 read_comp_units_from_section changes.
8882 (dwarf2_find_containing_comp_unit): Adjust to std::vector
8884 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
8885 (psyms_seen_size): Likewise.
8886 (write_gdbindex): Likewise.
8887 (write_debug_names): Likewise.
8889 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8891 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
8892 with dwarf2_per_objfile.
8893 (create_cus_from_index): Likewise.
8894 (create_signatured_type_table_from_index): Likewise.
8895 (dwarf2_read_index): Likewise.
8896 (dwarf2_initialize_objfile): Likewise.
8897 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
8898 per_cu rather than get_dwarf2_per_objfile.
8900 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8902 * dwarf2read.h (struct signatured_type): Forward declare.
8903 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
8905 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
8906 (dw2_get_cutu): ...this.
8907 (dwarf2_per_objfile::get_cu): Rename from...
8908 (dw2_get_cu): ...this.
8909 (dwarf2_per_objfile::get_tu): New.
8910 (create_addrmap_from_index): Adjust.
8911 (create_addrmap_from_aranges): Adjust.
8912 (dw2_find_last_source_symtab): Adjust.
8913 (dw2_map_symtabs_matching_filename): Adjust.
8914 (dw2_symtab_iter_next): Adjust.
8915 (dw2_print_stats): Adjust.
8916 (dw2_expand_all_symtabs): Adjust.
8917 (dw2_expand_symtabs_with_fullname): Adjust.
8918 (dw2_expand_marked_cus): Adjust.
8919 (dw_expand_symtabs_matching_file_matcher): Adjust.
8920 (dw2_map_symbol_filenames): Adjust.
8921 (dw2_debug_names_iterator::next): Adjust.
8922 (dwarf2_initialize_objfile): Adjust.
8923 (set_partial_user): Adjust.
8924 (dwarf2_build_psymtabs_hard): Adjust.
8926 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8928 * dwarf2read.c (create_signatured_type_table_from_debug_names):
8929 Remove unused variables.
8930 (dw2_map_symtabs_matching_filename): Likewise.
8931 (dwarf2_record_block_ranges): Likewise.
8932 (dwarf2_read_addr_index): Likewise.
8933 (follow_die_offset): Likewise.
8935 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8937 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
8938 to symbol_file_add_main.
8940 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8943 * mi/mi-console.c (do_fputc_async_safe): New.
8944 (mi_console_file::write_async_safe): New.
8945 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
8946 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
8948 * ui-file.c (ui_file::putstrn): Adjust call to
8949 fputstrn_unfiltered.
8950 * utils.c (printchar): Replace do_fputs and do_fprintf
8951 parameters by do_fputc.
8952 (fputstr_filtered): Adjust call to printchar.
8953 (fputstr_unfiltered): Likewise.
8954 (fputstrn_filtered): Likewise.
8955 (fputstrn_unfiltered): Add do_fputc parameter, pass to
8957 * utils.h (do_fputc_ftype): New typedef.
8958 (fputstrn_unfiltered): Add do_fputc parameter.
8960 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8962 * regformats/i386/i386-avx.dat: Remove.
8964 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
8967 * amd64-tdep.c (amd64_none_init_abi): New function.
8968 (amd64_x32_none_init_abi): New function.
8969 (_initialize_amd64_tdep): Register handlers for x86-64 and
8970 x64_32 with GDB_OSABI_NONE.
8971 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
8972 GDB_OSABI_NONE osabi.
8974 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
8977 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
8979 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
8980 * osabi.c (gdb_osabi_names): Add "unknown" entry.
8982 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
8984 * common/byte-vector.h (char_vector): New type.
8985 * target.h (target_read_alloc): Return
8986 gdb::optional<byte_vector>.
8987 (target_read_stralloc): Return gdb::optional<char_vector>.
8988 (target_get_osdata): Return gdb::optional<char_vector>.
8989 * target.c (target_read_alloc_1): Templatize. Replacement
8990 manual memory management with vector.
8991 (target_read_alloc): Change return type, adjust.
8992 (target_read_stralloc): Change return type, adjust.
8993 (target_get_osdata): Change return type, adjust.
8994 * auxv.c (struct auxv_info) <length>: Remove.
8995 <data>: Change type to gdb::optional<byte_vector>.
8996 (auxv_inferior_data_cleanup): Free auxv_info with delete.
8997 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
8998 (target_auxv_search): Adjust.
8999 (fprint_target_auxv): Adjust.
9000 * avr-tdep.c (avr_io_reg_read_command): Adjust.
9001 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
9002 (linux_make_corefile_notes): Adjust.
9003 * osdata.c (get_osdata): Adjust.
9004 * remote.c (remote_get_threads_with_qxfer): Adjust.
9005 (remote_memory_map): Adjust.
9006 (remote_traceframe_info): Adjust.
9007 (btrace_read_config): Adjust.
9008 (remote_read_btrace): Adjust.
9009 (remote_pid_to_exec_file): Adjust.
9010 * solib-aix.c (solib_aix_get_library_list): Adjust.
9011 * solib-dsbt.c (decode_loadmap): Don't free buf.
9012 (dsbt_get_initial_loadmaps): Adjust.
9013 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
9014 * solib-target.c (solib_target_current_sos): Adjust.
9015 * tracepoint.c (sdata_make_value): Adjust.
9016 * xml-support.c (xinclude_start_include): Adjust.
9017 (xml_fetch_content_from_file): Adjust.
9018 * xml-support.h (xml_fetch_another): Change return type.
9019 (xml_fetch_content_from_file): Change return type.
9020 * xml-syscall.c (xml_init_syscalls_info): Adjust.
9021 * xml-tdesc.c (file_read_description_xml): Adjust.
9022 (fetch_available_features_from_target): Change return type.
9023 (target_fetch_description_xml): Adjust.
9024 (target_read_description_xml): Adjust.
9026 2018-04-06 Tom Tromey <tom@tromey.com>
9028 * value.c (~value): Update.
9029 (struct value) <contents>: Now unique_xmalloc_ptr.
9030 (value_contents_bits_eq, allocate_value_contents)
9031 (value_contents_raw, value_contents_all_raw)
9032 (value_contents_for_printing, value_contents_for_printing_const)
9033 (set_value_enclosing_type): Update.
9035 2018-04-06 Tom Tromey <tom@tromey.com>
9037 * value.c (range_s): Remove typedef, VEC.
9038 (struct range): Add operator<.
9039 (range_lessthan): Remove.
9040 (ranges_contain): Change type.
9042 (struct value) <unavailable, optimized_out>: Now std::vector.
9043 (value_entirely_available)
9044 (value_entirely_covered_by_range_vector)
9045 (value_entirely_unavailable, value_entirely_optimized_out):
9047 (insert_into_bit_range_vector): Change argument type.
9048 (find_first_range_overlap): Likewise.
9049 (struct ranges_and_idx, value_contents_bits_eq)
9050 (require_not_optimized_out, require_available): Update.
9051 (ranges_copy_adjusted): Change argument types.
9052 (value_optimized_out, value_copy, value_fetch_lazy): Update.
9054 2018-04-06 Tom Tromey <tom@tromey.com>
9056 * value.c (~value): Update.
9057 (struct value) <parent>: Now a value_ref_ptr.
9058 (value_parent, set_value_parent, value_address, value_copy):
9061 2018-04-06 Tom Tromey <tom@tromey.com>
9063 * value.c (struct value): Add constructor, destructor, and member
9065 (allocate_value_lazy, value_decref): Update.
9067 2018-04-06 Tom Tromey <tom@tromey.com>
9069 * value.c (struct value) <released, next>: Remove.
9070 (all_values): Now a std::vector.
9071 (allocate_value_lazy): Update.
9072 (value_next): Remove.
9073 (value_mark, value_free_to_mark, release_value)
9074 (value_release_to_mark): Update.
9076 2018-04-06 Tom Tromey <tom@tromey.com>
9078 * value.h (fetch_subexp_value, value_release_to_mark): Update.
9079 (free_value_chain): Remove.
9080 * value.c (free_value_chain): Remove.
9081 (value_release_to_mark): Return a std::vector.
9082 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
9084 (check_condition): Update.
9085 * eval.c (fetch_subexp_value): Change "val_chain" to a
9087 * breakpoint.c (update_watchpoint): Update.
9088 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
9090 2018-04-06 Tom Tromey <tom@tromey.com>
9092 * value.h (free_all_values): Remove.
9093 * value.c (free_all_values): Remove.
9095 2018-04-06 Tom Tromey <tom@tromey.com>
9097 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
9098 (value_history_chain, value_history_count): Remove.
9099 (value_history): New global.
9100 (record_latest_value, access_value_history, show_values)
9101 (preserve_values): Update.
9103 2018-04-06 Tom Tromey <tom@tromey.com>
9105 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
9106 * varobj.c (varobj_set_display_format, varobj_set_value)
9107 (install_default_visualizer, construct_visualizer)
9108 (install_new_value, ~varobj, varobj_get_value_type)
9109 (my_value_of_variable, varobj_editable_p): Update.
9110 * c-varobj.c (c_describe_child, c_value_of_variable)
9111 (cplus_number_of_children, cplus_describe_child): Update.
9112 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
9113 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
9114 (ada_value_of_variable, ada_value_is_changeable_p): Update.
9116 2018-04-06 Tom Tromey <tom@tromey.com>
9118 * printcmd.c (last_examine_address): Change type to
9120 (do_examine, x_command): Update.
9122 2018-04-06 Tom Tromey <tom@tromey.com>
9124 * value.c (release_value): Update.
9125 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
9126 (struct bpstats) <val>: Now a value_ref_ptr.
9127 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
9128 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
9129 (~watchpoint, print_it_watchpoint, watch_command_1)
9130 (invalidate_bp_value_on_memory_change): Update.
9132 2018-04-06 Tom Tromey <tom@tromey.com>
9134 * varobj.c (varobj_clear_saved_item)
9135 (update_dynamic_varobj_children, install_new_value, ~varobj):
9137 * value.h (value_incref): Move declaration earlier.
9138 (value_decref): Rename from value_free.
9139 (struct value_ref_policy): New.
9140 (value_ref_ptr): New typedef.
9141 (struct value_deleter): Remove.
9142 (gdb_value_up): Remove typedef.
9143 (release_value): Change return type.
9144 (release_value_or_incref): Remove.
9145 * value.c (set_value_parent): Update.
9146 (value_incref): Change return type.
9147 (value_decref): Rename from value_free.
9148 (value_free_to_mark, free_all_values, free_value_chain): Update.
9149 (release_value): Return value_ref_ptr.
9150 (release_value_or_incref): Remove.
9151 (record_latest_value, set_internalvar, clear_internalvar):
9153 * stack.c (info_frame_command): Don't call value_free.
9154 * python/py-value.c (valpy_dealloc, valpy_new)
9155 (value_to_value_object): Update.
9156 * printcmd.c (do_examine): Update.
9157 * opencl-lang.c (lval_func_free_closure): Update.
9158 * mi/mi-main.c (register_changed_p): Don't call value_free.
9159 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
9160 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
9161 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
9163 * guile/scm-value.c (vlscm_free_value_smob)
9164 (vlscm_scm_from_value): Update.
9165 * frame.c (frame_register_unwind, frame_unwind_register_signed)
9166 (frame_unwind_register_unsigned, get_frame_register_bytes)
9167 (put_frame_register_bytes): Don't call value_free.
9168 * findvar.c (address_from_register): Don't call value_free.
9169 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
9170 * dwarf2loc.c (entry_data_value_free_closure)
9171 (value_of_dwarf_reg_entry, free_pieced_value_closure)
9172 (dwarf2_evaluate_loc_desc_full): Update.
9173 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
9174 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
9175 (~watchpoint, watch_command_1)
9176 (invalidate_bp_value_on_memory_change): Update.
9177 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
9179 2018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
9182 * warning.m4: Add -Wno-error=deprecated-register.
9183 * configure: Re-generate.
9185 2018-04-05 Tom Tromey <tom@tromey.com>
9187 * linespec.h: Remove include of "vec.h".
9189 2018-04-05 Tom Tromey <tom@tromey.com>
9191 * linespec.c (typep): Remove typedef.
9192 (find_methods, find_superclass_methods): Take a std::vector.
9193 (find_method): Use std::vector.
9195 2018-04-05 Tom Tromey <tom@tromey.com>
9197 * utils.c (compare_strings): Remove.
9198 * utils.h (compare_strings): Remove.
9199 * objc-lang.h (find_imps): Update.
9200 * objc-lang.c (find_methods): Take a std::vector.
9201 (uniquify_strings, find_imps): Likewise.
9202 * linespec.c (find_methods): Take a std::vector.
9203 (decode_objc): Use std::vector.
9204 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
9206 (find_method, find_function_symbols): Use std::vector.
9208 2018-04-05 Tom Tromey <tom@tromey.com>
9210 * completer.c (completion_tracker::completion_tracker): Remove
9212 (completion_tracker::discard_completions): Likewise.
9213 * breakpoint.c (ambiguous_names_p): Remove cast.
9214 * ada-lang.c (_initialize_ada_language): Remove cast.
9215 * utils.h (streq): Update.
9216 (streq_hash): Add new declaration.
9217 * utils.c (streq): Return bool.
9218 (streq_hash): New function.
9220 2018-04-05 Tom Tromey <tom@tromey.com>
9222 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
9223 Remove a string copy.
9225 2018-04-05 Tom Tromey <tom@tromey.com>
9227 * linespec.c (filter_results): Use std::vector.
9228 (decode_line_2, decode_line_full): Update.
9230 2018-04-05 Tom Tromey <tom@tromey.com>
9232 * linespec.c (canonical_to_fullform): Return std::string.
9233 (filter_results): Update.
9234 (struct decode_line_2_item): Add constructor.
9235 <fullform, displayform>: Now std::string.
9236 (decode_line_2_compare_items): Now a std::sort comparator.
9237 (decode_line_2): Update.
9239 2018-04-05 Tom Tromey <tom@tromey.com>
9241 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
9242 (unexpected_linespec_error): Update.
9243 (linespec_parse_basic, parse_linespec): Update.
9245 2018-04-05 Tom Tromey <tom@tromey.com>
9247 * linespec.c (linespec_parse_basic): Reindent.
9249 2018-04-05 Tom Tromey <tom@tromey.com>
9251 * minsyms.h (iterate_over_minimal_symbols): Update.
9252 * minsyms.c (iterate_over_minimal_symbols): Take a
9254 * linespec.c (struct collect_minsyms): Remove.
9255 (compare_msyms): Now a std::sort comparator.
9256 (add_minsym): Add parameters.
9257 (search_minsyms_for_name): Update. Use std::vector.
9259 2018-04-03 Tom Tromey <tom@tromey.com>
9261 * mipsread.c (read_alphacoff_dynamic_symtab): Use
9264 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
9266 * MAINTAINERS (Write After Approval): Add Weimin Pan.
9268 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
9271 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
9272 printing static type.
9274 2018-04-01 Tom Tromey <tom@tromey.com>
9276 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
9277 (rs6000_xfer_shared_libraries): Update.
9279 2018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
9281 * common/gdb_vecs.h (char_ptr): Remove.
9282 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
9284 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
9286 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
9288 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
9290 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
9292 * tracepoint.h (struct uploaded_tp): Initialize fields.
9293 <actions, step_actions, cmd_strings>: Change type to
9294 std::vector<char *>.
9295 * tracepoint.c (get_uploaded_tp): Allocate with new.
9296 (free_uploaded_tps): Free with delete.
9297 (parse_tracepoint_definition): Adjust to std::vector change.
9298 * breakpoint.c (read_uploaded_action): Likewise.
9299 (create_tracepoint_from_upload): Likewise.
9300 * ctf.c (ctf_write_uploaded_tp): Likewise.
9301 (SET_ARRAY_FIELD): Likewise.
9302 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
9304 2018-03-30 Tom Tromey <tom@tromey.com>
9306 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
9308 (svr4_keep_data_in_core): Update.
9309 (svr4_read_so_list): Update.
9311 2018-03-30 Tom Tromey <tom@tromey.com>
9313 * windows-nat.c (handle_output_debug_string, handle_exception):
9315 * target.h (target_read_string): Update.
9316 * target.c (target_read_string): Change "string" to
9318 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
9320 * solib-frv.c (frv_current_sos): Update.
9321 * solib-dsbt.c (dsbt_current_sos): Update.
9322 * solib-darwin.c (darwin_current_sos): Update.
9323 * linux-thread-db.c (inferior_has_bug): Update.
9324 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
9325 Update. Remove alloca.
9326 * ada-lang.c (ada_main_name): Update.
9328 2018-03-30 Tom Tromey <tom@tromey.com>
9330 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
9331 (struct dwo_file_deleter): New.
9332 (dwo_file_up): New typedef.
9333 (open_and_init_dwo_file): Use dwo_file_up.
9334 (free_dwo_file_cleanup): Remove.
9336 2018-03-30 Tom Tromey <tom@tromey.com>
9338 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
9339 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
9341 2018-03-30 Tom Tromey <tom@tromey.com>
9343 * dwarf2read.c (class free_cached_comp_units): New class.
9344 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
9345 (free_cached_comp_units): Remove function.
9347 2018-03-30 Tom Tromey <tom@tromey.com>
9349 * utils.h (make_cleanup_unpush_target): Remove.
9350 * inf-ptrace.c (struct target_unpusher): New.
9351 (target_unpush_up) New typedef.
9352 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
9354 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
9356 2018-03-27 Tom Tromey <tom@tromey.com>
9358 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
9360 2018-03-27 Pedro Alves <palves@redhat.com>
9361 Tom Tromey <tom@tromey.com>
9363 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
9364 destructor. Now a class.
9365 (gdb_readline_wrapper_cleanup): Remove function.
9366 (gdb_readline_wrapper): Remove cleanups.
9368 2018-03-27 Tom Tromey <tom@tromey.com>
9370 * typeprint.h (struct type_print_options) <local_typedefs,
9371 global_typedefs>: Remove "struct" keyword.
9372 (class typedef_hash_table): New class.
9373 (recursively_update_typedef_hash, add_template_parameters)
9374 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
9375 (find_typedef_in_hash): Don't declare.
9376 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
9377 (typedef_hash_table::recursively_update): Rename from
9378 recursively_update_typedef_hash. Now a member.
9379 (typedef_hash_table::add_template_parameters): Rename from
9380 add_template_parameters. Now a member.
9381 (typedef_hash_table::typedef_hash_table): Now a constructor;
9382 rename from create_typedef_hash.
9383 (typedef_hash_table::~typedef_hash_table): Now a destructor;
9384 rename from free_typedef_hash.
9385 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
9386 (do_free_global_table): Remove.
9387 (typedef_hash_table::typedef_hash_table): New constructor; renamed
9388 from copy_type_recursive.
9389 (create_global_typedef_table): Remove.
9390 (typedef_hash_table::find_global_typedef): Now a member of
9392 (typedef_hash_table::find_typedef): Rename from
9393 find_typedef_in_hash; now a member.
9394 (whatis_exp): Update.
9395 * extension.h (struct ext_lang_type_printers): Add constructor and
9397 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
9399 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
9400 Now a constructor; rename from start_ext_lang_type_printers.
9401 (ext_lang_type_printers): Now a destructor; rename from
9402 free_ext_lang_type_printers.
9403 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
9405 (c_type_print_base_struct_union): Update. Remove cleanups.
9407 2018-03-27 Tom Tromey <tom@tromey.com>
9409 * dwarf-index-write.c: Include <cmath>.
9411 2018-03-27 Joel Brobecker <brobecker@adacore.com>
9413 * NEWS: Add entry describing new "set|show varsize-limit" command.
9414 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
9416 * printcmd.c (_initialize_printcmd): Add "set var" alias of
9419 2018-03-27 Simon Marchi <simon.marchi@ericsson.com>
9421 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
9423 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
9424 * dwarf-index-common.c: New file.
9425 * dwarf-index-common.h: New file.
9426 * dwarf-index-write.c: New file.
9427 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
9428 (struct dwarf2_section_info): Move from here.
9429 (dwarf2_section_info_def): Likewise.
9430 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
9431 (offset_type): Likewise.
9432 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
9433 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
9434 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
9435 (byte_swap): Likewise.
9436 (MAYBE_SWAP): Likewise.
9437 (dwarf2_per_cu_ptr): Likewise.
9438 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
9439 (struct tu_stats): Likewise.
9440 (struct dwarf2_per_objfile): Likewise.
9441 (struct dwarf2_per_cu_data): Likewise.
9442 (struct signatured_type): Likewise.
9443 (sig_type_ptr): Likewise.
9444 (DEF_VEC_P (sig_type_ptr)): Likewise.
9445 (INDEX4_SUFFIX): Likewise.
9446 (INDEX5_SUFFIX): Likewise.
9447 (DEBUG_STR_SUFFIX): Likewise.
9448 (dwarf2_read_section): Make non-static.
9449 (mapped_index_string_hash): Move from here.
9450 (dwarf5_djb_hash): Likewise.
9451 (file_write): Likewise.
9452 (class data_buf): Likewise.
9453 (struct symtab_index_entry): Likewise.
9454 (struct mapped_symtab): Likewise.
9455 (find_slot): Likewise.
9456 (hash_expand): Likewise.
9457 (add_index_entry): Likewise.
9458 (uniquify_cu_indices): Likewise.
9459 (class c_str_view): Likewise.
9460 (class c_str_view_hasher): Likewise.
9461 (class vector_hasher): Likewise.
9462 (write_hash_table): Likewise.
9463 (psym_index_map): Likewise.
9464 (struct addrmap_index_data): Likewise.
9465 (add_address_entry): Likewise.
9466 (add_address_entry_worker): Likewise.
9467 (write_address_map): Likewise.
9468 (symbol_kind): Likewise.
9469 (write_psymbols): Likewise.
9470 (struct signatured_type_index_data): Likewise.
9471 (write_one_signatured_type): Likewise.
9472 (recursively_count_psymbols): Likewise.
9473 (recursively_write_psymbols): Likewise.
9474 (class debug_names): Likewise.
9475 (check_dwarf64_offsets): Likewise.
9476 (psyms_seen_size): Likewise.
9477 (write_gdbindex): Likewise.
9478 (write_debug_names): Likewise.
9479 (assert_file_size): Likewise.
9480 (write_psymtabs_to_index): Likewise.
9481 (save_gdb_index_command): Likewise.
9482 (_initialize_dwarf2_read): Don't register the "save gdb-index"
9484 * dwarf2read.h: New file.
9486 2018-03-27 Joel Brobecker <brobecker@adacore.com>
9489 * dwarf2read.c (dwarf2_physname): Do not return the demangled
9490 symbol name if the CU's language stores symbol names in linkage
9492 * language.h (struct language_defn)
9493 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
9494 all instances of this struct.
9496 2018-03-26 Tom Tromey <tom@tromey.com>
9498 * stack.c (backtrace_command_1): Remove verbose code.
9500 2018-03-26 Tom Tromey <tom@tromey.com>
9502 * python/py-framefilter.c (py_print_type): Don't catch
9503 exceptions. Return void.
9504 (py_print_value): Likewise.
9505 (py_print_single_arg): Likewise.
9506 (enumerate_args): Don't catch exceptions.
9507 (py_print_args): Likewise.
9508 (py_print_frame): Likewise.
9509 (gdbpy_apply_frame_filter): Catch exceptions here.
9511 2018-03-26 Tom Tromey <tom@tromey.com>
9513 * stack.c (_initialize_stack): Remove trailing newlines from help
9514 text. Add "Usage" line to "backtrace" help.
9516 2018-03-26 Tom Tromey <tom@tromey.com>
9519 * python/py-framefilter.c (py_print_args): Call wrap_hint.
9521 2018-03-26 Tom Tromey <tom@tromey.com>
9523 * python/py-framefilter.c (py_print_single_arg): Return
9524 EXT_LANG_BT_ERROR from catch.
9526 2018-03-26 Tom Tromey <tom@tromey.com>
9529 * stack.c (backtrace_command_1): Move some code into no-filters
9532 2018-03-26 Tom Tromey <tom@tromey.com>
9534 * python/py-framefilter.c (throw_quit_or_print_exception): New
9536 (gdbpy_apply_frame_filter): Use it.
9538 2018-03-26 Tom Tromey <tom@tromey.com>
9541 * python/py-framefilter.c (py_print_type, py_print_value)
9542 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
9545 2018-03-26 Tom Tromey <tom@tromey.com>
9547 * python/py-framefilter.c (enumerate_args): Use
9548 gdb::unique_xmalloc_ptr.
9550 2018-03-26 Tom Tromey <tom@tromey.com>
9552 * python/py-framefilter.c (py_print_frame): Return
9554 (gdbpy_apply_frame_filter): Update comment.
9555 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
9557 <EXT_LANG_BT_NO_FILTERS>: Change value.
9559 2018-03-26 Tom Tromey <tom@tromey.com>
9562 * stack.c (backtrace_command): Parse "hide" argument.
9563 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
9564 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
9567 2018-03-26 Tom Tromey <tom@tromey.com>
9569 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
9571 (backtrace_command): Remove "fulltrace", add "flags".
9573 2018-03-26 Tom Tromey <tom@tromey.com>
9575 * stack.c (backtrace_command): Rewrite command line parsing.
9577 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
9579 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
9581 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
9583 * filename-seen-cache.h: Add include guard.
9585 2018-03-26 Keith Seitz <keiths@redhat.com>
9587 * symfile.c (place_section): Remove "struct" from section_addr_info
9589 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
9590 "struct" keyword from section_addr_info.
9592 2018-03-26 Alan Hayward <alan.hayward@arm.com>
9594 * regformats/regdef.h (reg): Add constructors.
9596 2018-03-25 Pedro Alves <palves@redhat.com>
9598 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
9599 if then/else bodies in var_func_name extraction.
9601 2018-03-23 Weimin Pan <weimin.pan@oracle.com>
9603 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
9604 lookup_minimal_symbol() to find symbol entry.
9605 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
9607 2018-03-23 Keith Seitz <keiths@redhat.com>
9610 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
9611 nested type definitions for C++, too.
9613 2018-03-23 Tom Tromey <tom@tromey.com>
9615 * machoread.c (struct oso_el): Add a constructor. Don't define as
9617 (macho_register_oso): Remove.
9618 (macho_symtab_read): Take a std::vector.
9619 (oso_el_compare_name): Now a std::sort comparator.
9620 (macho_symfile_read_all_oso): Take a std::vector.
9621 (macho_symfile_read): Use std::vector. Remove cleanups.
9623 2018-03-22 Tom Tromey <tom@tromey.com>
9625 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
9626 (record_full_goto_bookmark): Use std::string.
9628 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
9631 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
9634 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
9636 * rs6000-tdep.c (store_insn_p): New function.
9637 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
9638 and cr_reg to their unshifted values. Use store_insn_p to
9639 match LR saves using either R1 or fdata->alloca_reg. Use
9640 store_insn_p to match CR saves. Set alloca_reg_offset
9641 when alloca_reg and framep are set. Remove lr_reg shift
9642 when assigning to fdata->lr_register.
9644 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
9646 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
9647 command line args instead of emitting a warning.
9649 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
9651 * tracepoint.h (struct static_tracepoint_marker): Initialize
9652 fields, define default constructor, move constructor and move
9653 assignment, disable the rest.
9654 <str_id, extra>: Make std::string.
9655 (release_static_tracepoint_marker): Remove.
9656 (free_current_marker): Remove.
9657 * tracepoint.c (free_current_marker): Remove.
9658 (parse_static_tracepoint_marker_definition): Adjust to
9659 std::string, use new hex2str overload.
9660 (release_static_tracepoint_marker): Remove.
9661 (print_one_static_tracepoint_marker): Get marker by reference
9662 and adjust to std::string.
9663 (info_static_tracepoint_markers_command): Adjust to std::vector
9665 * target.h (static_tracepoint_marker_p): Remove typedef.
9666 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
9667 (struct target_ops) <to_static_tracepoint_marker_at>: Return
9669 <to_static_tracepoint_markers_by_strid>: Return std::vector.
9671 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
9672 (target_debug_print_std_vector_static_tracepoint_marker): New.
9673 (target_debug_print_struct_static_tracepoint_marker_p): Rename
9675 (target_debug_print_static_tracepoint_marker_p): ... this.
9676 * target-delegates.c: Re-generate.
9677 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
9679 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
9680 (decode_static_tracepoint_spec): Adjust to std::vector.
9681 (tracepoint_print_one_detail): Adjust to std::string.
9682 (strace_marker_decode_location): Adjust to std::string.
9683 (update_static_tracepoint): Adjust to std::string, remove call
9684 to release_static_tracepoint_marker.
9685 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
9686 Adjust to std::vector.
9687 * remote.c (remote_static_tracepoint_marker_at): Return bool.
9688 (remote_static_tracepoint_markers_by_strid): Adjust to
9690 * common/rsp-low.h (hex2str): New overload with explicit count
9692 * common/rsp-low.c (hex2str): New overload with explicit count
9694 * unittests/rsp-low-selftests.c (test_hex2str): New function.
9695 (_initialize_rsp_low_selftests): Add test_hex2str test.
9696 * unittests/tracepoint-selftests.c
9697 (test_parse_static_tracepoint_marker_definition): Adjust to
9700 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
9702 * tracepoint.c (parse_static_tracepoint_marker_definition):
9703 Consider case where the definition is followed by more
9705 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9706 tracepoint-selftests.c.
9707 * unittests/tracepoint-selftests.c: New.
9709 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
9711 * MAINTAINERS (Write After Approval): Add Pedro Franco de
9714 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
9716 * symtab.c (find_pc_sect_line): fixed indentation.
9718 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
9720 * symtab.c (find_pc_sect_line): now uses binary search.
9722 2018-03-19 Tom Tromey <tom@tromey.com>
9724 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
9727 2018-03-19 Pedro Alves <palves@redhat.com>
9728 Tom Tromey <tom@tromey.com>
9730 * unittests/observable-selftests.c: New file.
9731 * common/observable.h: New file.
9732 * observable.h: New file.
9733 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
9734 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
9735 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
9736 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
9737 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
9738 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
9739 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
9740 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
9741 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
9742 python/py-breakpoint.c, python/py-finishbreakpoint.c,
9743 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
9744 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
9745 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
9746 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
9747 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
9748 tui/tui-interp.c, valops.c: Update all users.
9749 * tui/tui-hooks.c (tui_bp_created_observer)
9750 (tui_bp_deleted_observer, tui_bp_modified_observer)
9751 (tui_inferior_exit_observer, tui_before_prompt_observer)
9752 (tui_normal_stop_observer, tui_register_changed_observer):
9754 (tui_observers_token): New global.
9755 (attach_or_detach, tui_attach_detach_observers): New functions.
9756 (tui_install_hooks, tui_remove_hooks): Use
9757 tui_attach_detach_observers.
9758 * record-btrace.c (record_btrace_thread_observer): Remove.
9759 (record_btrace_thread_observer_token): New global.
9760 * observer.sh: Remove.
9761 * observer.c: Rename to observable.c.
9762 * observable.c (namespace gdb_observers): Define new objects.
9763 (observer_debug): Move into gdb_observers namespace.
9764 (struct observer, struct observer_list, xalloc_observer_list_node)
9765 (xfree_observer_list_node, generic_observer_attach)
9766 (generic_observer_detach, generic_observer_notify): Remove.
9767 (_initialize_observer): Update.
9768 Don't include observer.inc.
9769 * Makefile.in (generated_files): Remove observer.h, observer.inc.
9770 (clean mostlyclean): Likewise.
9771 (observer.h, observer.inc): Remove targets.
9772 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
9773 (COMMON_SFILES): Use observable.c, not observer.c.
9774 * .gitignore: Remove observer.h.
9776 2018-03-18 Tom Tromey <tom@tromey.com>
9778 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
9780 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
9782 2018-03-17 Tom Tromey <tom@tromey.com>
9784 * auto-load.c (auto_load_objfile_script_1): Use std::string.
9786 2018-03-17 Tom Tromey <tom@tromey.com>
9788 * target.c (class scoped_target_fd): New.
9789 (target_fileio_close_cleanup): Remove.
9790 (target_fileio_read_alloc_1): Use scoped_target_fd.
9792 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
9794 * silent-rules.mk: New.
9795 * Makefile.in: Include silent-rules.mk
9796 (srcdir, VPATH, top_srcdir): Move up.
9797 (COMPILE): Add ECHO_CXX.
9798 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
9799 (init.c): Add ECHO_INIT_C.
9800 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
9801 (version.c): Add ECHO_GEN.
9802 (printcmd.o): Add ECHO_CXX.
9803 (target-float.o): Add ECHO_CXX.
9804 (ada-exp.o): Add ECHO_CXX.
9805 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
9806 (insight$(EXEEXT)): Add ECHO_CXXLD.
9807 * gnulib/configure.ac: Add AM_SILENT_RULES.
9808 * gnulib/aclocal.m4: Re-generate.
9809 * gnulib/configure: Re-generate.
9810 * gnulib/import/Makefile.in: Re-generate.
9812 2018-03-16 Tom Tromey <tom@tromey.com>
9814 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
9815 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
9816 * utils.c (do_free_section_addr_info)
9817 (make_cleanup_free_section_addr_info): Remove.
9818 * symfile.h (struct other_sections): Add constructor.
9819 (struct section_addr_info): Remove.
9820 (section_addr_info): New typedef.
9821 (struct sym_fns) <sym_offsets>: Change type of parameter.
9822 (build_section_addr_info_from_objfile)
9823 (relative_addr_info_to_section_offsets, addr_info_make_relative)
9824 (default_symfile_offsets, symbol_file_add)
9825 (symbol_file_add_from_bfd)
9826 (build_section_addr_info_from_section_table): Update.
9827 (alloc_section_addr_info, free_section_addr_info): Don't declare.
9828 * symfile.c (alloc_section_addr_info): Remove.
9829 (build_section_addr_info_from_section_table): Change return type.
9831 (build_section_addr_info_from_bfd)
9832 (build_section_addr_info_from_objfile): Likewise.
9833 (free_section_addr_info): Remove.
9834 (relative_addr_info_to_section_offsets): Change type of "addrs".
9835 (addrs_section_compar): Now a std::sort comparator.
9836 (addrs_section_sort): Change return type.
9837 (addr_info_make_relative): Change type of "addrs". Update.
9838 (default_symfile_offsets, syms_from_objfile_1)
9839 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
9840 (symbol_file_add_separate): Update.
9841 (symbol_file_add): Change type of "addrs". Update.
9842 (add_symbol_file_command): Update. Remove cleanups.
9843 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
9845 * symfile-debug.c (debug_sym_offsets): Change type of "info".
9846 * solib.c (solib_read_symbols): Update.
9847 * objfiles.c (objfile_relocate): Update. Remove cleanups.
9848 * machoread.c (macho_symfile_offsets): Update.
9849 * jit.c (jit_bfd_try_read_symtab): Update.
9851 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
9853 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9854 unittests/utils-selftests.c.
9855 * unittests/utils-selftests.c: New file.
9857 2018-03-14 Tom Tromey <tom@tromey.com>
9860 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
9863 2018-03-14 Tom Tromey <tom@tromey.com>
9866 * printcmd.c (printf_pointer): Allow "-" in format.
9868 2018-03-14 Tom Tromey <tom@tromey.com>
9870 * printcmd.c (_initialize_printcmd): Add usage to printf.
9872 2018-03-14 Yao Qi <qiyao@sourceware.org>
9874 * MAINTAINERS: Update my email address.
9876 2018-03-13 Tom Tromey <tom@tromey.com>
9878 * machoread.c (macho_check_dsym): Change filenamep to a
9880 (macho_symfile_read): Update.
9881 * symfile.c (load_command): Use std::string.
9883 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
9885 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
9886 to error message string.
9887 (riscv_register_name): Use xsnprintf instead of sprintf.
9888 (riscv_insn::fetch_instruction): Use gdb_assert instead of
9890 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
9892 (riscv_push_dummy_call): Likewise.
9894 2018-03-12 Tom Tromey <tom@tromey.com>
9896 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
9897 Use gdb::byte_vector.
9898 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
9900 2018-03-12 Yao Qi <yao.qi@linaro.org>
9902 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
9903 parameter type to readable_regcache.
9904 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
9907 2018-03-11 Tom Tromey <tom@tromey.com>
9909 * dwarf2read.c (struct nextfield): Add initializers.
9910 (struct nextfnfield): Remove.
9911 (struct fnfieldlist): Add initializers. Remove "length" and
9912 "head", use std::vector.
9913 (struct decl_field_list): Remove.
9914 (struct field_info): Add initializers.
9915 <fields, baseclasses>: Now std::vector.
9916 <nbaseclasses, nfnfields, typedef_field_list_count,
9917 nested_types_list_count>: Remove.
9918 (dwarf2_add_field, dwarf2_add_type_defn)
9919 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
9920 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
9921 (process_structure_scope): Update.
9923 2018-03-11 Tom Tromey <tom@tromey.com>
9925 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
9926 for use by std::sort.
9927 (build_type_psymtabs_1): Use std::vector.
9929 2018-03-09 Eli Zaretskii <eliz@gnu.org>
9931 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
9932 and LIBMPFR in the printed configuration.
9934 2018-03-08 Tom Tromey <tom@tromey.com>
9936 * source.c (get_filename_and_charpos): Use scoped_fd.
9937 * nto-procfs.c (procfs_open_1): Use scoped_fd.
9938 (procfs_pidlist): Likewise.
9939 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
9940 (iterate_over_mappings): Likewise.
9942 2018-03-08 Tom Tromey <tom@tromey.com>
9944 * infcall.c (struct call_return_meta_info)
9945 <stack_temporaries_enabled>: Remove.
9946 (get_call_return_value, call_function_by_hand_dummy): Update.
9947 * thread.c (disable_thread_stack_temporaries): Remove.
9948 (enable_thread_stack_temporaries): Remove.
9949 (thread_stack_temporaries_enabled_p): Return bool.
9950 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
9951 (get_last_thread_stack_temporary): Update.
9952 * eval.c (evaluate_subexp): Update.
9953 * gdbthread.h (class enable_thread_stack_temporaries): Now a
9954 class, not a function.
9955 (value_ptr, value_vec): Remove typedefs.
9956 (class thread_info) <stack_temporaries_enabled>: Now bool.
9957 <stack_temporaries>: Now a std::vector.
9958 (thread_stack_temporaries_enabled_p)
9959 (value_in_thread_stack_temporaries): Return bool.
9961 2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
9963 * remote.c (putpkt_binary): Fix omitted bytes reporting.
9964 (getpkt_or_notif_sane_1): Likewise.
9966 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
9968 * build-id.c (build_id_to_debug_bfd): Use std::string.
9970 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
9972 * build-id.c (find_separate_debug_file_by_buildid): Return
9974 * build-id.h (find_separate_debug_file_by_buildid): Return
9976 * coffread.c (coff_symfile_read): Adjust to std::string.
9977 * elfread.c (elf_symfile_read): Adjust to std::string.
9978 * symfile.c (separate_debug_file_exists): Change parameter to
9980 (find_separate_debug_file): Return std::string.
9981 (find_separate_debug_file_by_debuglink): Return std::string.
9982 * symfile.h (find_separate_debug_file_by_debuglink): Return
9985 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
9987 * common/xml-utils.c (xml_escape_text): Move code to...
9988 (xml_escape_text_append): ... this new function.
9989 * common/xml-utils.h (xml_escape_text_append): New declaration.
9990 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
9992 (_initialize_xml_utils): register test_xml_escape_text_append as
9995 2018-03-07 Alan Hayward <alan.hayward@arm.com>
9997 * defs.h: Remove MAX_REGISTER_SIZE.
9998 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
10000 * python/py-unwind.c (pyuw_sniffer): Likewise.
10002 2018-03-07 Tom Tromey <tom@tromey.com>
10004 * linux-tdep.c (linux_info_proc): Update.
10005 * target.h (struct target_ops) <to_fileio_readlink>: Return
10007 (target_fileio_readlink): Return optional<string>.
10008 * remote.c (remote_hostio_readlink): Return optional<string>.
10009 * inf-child.c (inf_child_fileio_readlink): Return
10011 * target.c (target_fileio_readlink): Return optional<string>.
10013 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
10015 * regcache.c (cooked_read_test): Add riscv to the list of
10016 architectures that have a save_reggroup.
10018 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
10020 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
10021 value is not a dynamic class object.
10023 2018-03-06 Tom Tromey <tom@tromey.com>
10025 * rust-exp.y: Formatting fixes.
10027 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10029 * riscv-tdep.c (riscv_register_name): Remove target description
10031 (riscv_gdbarch_init): Remove target description check.
10033 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10035 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
10037 * riscv-tdep.h: Likewise.
10039 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10041 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
10042 (riscv_pseudo_register_write): Delete.
10043 (riscv_gdbarch_init): Remove all use of pseudo registers.
10045 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10047 * record-btrace.c (btrace_print_lines): Replace cleanup
10048 parameter with RAII equivalents.
10049 (btrace_insn_history): Replace cleanup with RAII equivalents.
10050 * ui-out.h (make_cleanup_ui_out_list_begin_end,
10051 make_cleanup_ui_out_tuple_begin_end): Remove.
10052 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
10053 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
10054 make_cleanup_ui_out_list_begin_end): Remove.
10056 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10058 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
10059 parameter types to std::vector. Use bool.
10060 (record_btrace_wait): Replace VEC(tp_t) with
10061 std::vector<thread_info *>.
10062 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
10064 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10066 * record-btrace.c (record_btrace_disable_callback): Remove.
10067 (struct scoped_btrace_disable): New.
10068 (record_btrace_open): Use scoped_btrace_disable.
10070 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10072 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
10073 reading values from registers.
10075 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10077 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
10080 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10082 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
10083 change parameter type. Use GDB's print functions, and use
10084 core_addr_to_string where appropriate.
10085 (riscv_push_dummy_call): Use core_addr_to_string where
10086 appropriate, update call to riscv_print_arg_location, and reindent
10088 (riscv_return_value): Update call to riscv_print_arg_location.
10090 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10091 Tim Newsome <tim@sifive.com>
10092 Albert Ou <a0u@eecs.berkeley.edu>
10093 Darius Rad <darius@bluespec.com>
10095 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
10096 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
10097 (ALLDEPFILES): Add riscv-tdep.c
10098 * configure.tgt: Add riscv support.
10099 * riscv-tdep.c: New file.
10100 * riscv-tdep.h: New file.
10101 * NEWS: Mention new target.
10102 * MAINTAINERS: Add entry for riscv.
10104 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10106 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
10107 fields within aggregates.
10109 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
10111 * record-btrace.c (btrace_print_lines): Change type of flags to
10112 gdb_disassembly_flags.
10114 2018-03-04 John Baldwin <jhb@FreeBSD.org>
10116 * fbsd-nat.c: Include "inf-ptrace.h".
10117 (USE_SIGTRAP_SIGINFO): Conditionally define.
10118 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
10119 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
10120 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
10122 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
10124 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
10126 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
10127 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
10128 "supports_stopped_by_hw_breakpoint" target methods.
10130 2018-03-04 John Baldwin <jhb@FreeBSD.org>
10132 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
10133 * fbsd-nat.c (debug_fbsd_nat): New variable.
10134 (show_fbsd_nat_debug): New function.
10135 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
10136 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
10138 2018-03-04 John Baldwin <jhb@FreeBSD.org>
10140 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
10141 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
10143 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
10144 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
10147 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10149 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
10150 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
10152 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10154 * charset.c (struct charset_vector): New.
10155 (charsets): Change type to charset_vector.
10156 (find_charset_names): Adjust.
10158 (_initialize_charset): Adjust.
10160 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10162 * progspace.h (struct program_space) <deleted_solibs>: Change
10163 type to std::vector<std::string>.
10164 * progspace.c (clear_program_space_solib_cache): Adjust.
10165 * breakpoint.c (print_solib_event): Adjust.
10166 (check_status_catch_solib): Adjust.
10167 * solib.c (update_solib_list): Adjust.
10168 * ui-out.h (class ui_out) <field_string>: New overload.
10169 * ui-out.c (ui_out::field_string): New overload.
10171 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10173 * progspace.h (struct program_space): Add constructor and
10174 destructor, initialize fields.
10175 (add_program_space): Remove.
10176 * progspace.c (add_program_space): Rename to...
10177 (program_space::program_space): ... this.
10178 (release_program_space): Rename to...
10179 (program_space::~program_space): ... this.
10180 (delete_program_space): Use delete to delete program_space.
10181 (initialize_progspace): Use new to allocate program_space.
10182 * inferior.c (add_inferior_with_spaces): Likewise.
10183 (clone_inferior_command): Likewise.
10184 * infrun.c (follow_fork_inferior): Likewise.
10185 (handle_vfork_child_exec_or_exit): Likewise.
10187 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10189 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
10190 (delim_string_to_char_ptr_vec): Return std::vector of
10191 gdb::unique_xmalloc_ptr.
10192 (dirnames_to_char_ptr_vec_append): Take std::vector of
10193 gdb::unique_xmalloc_ptr.
10194 (dirnames_to_char_ptr_vec): Return std::vector of
10195 gdb::unique_xmalloc_ptr.
10196 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
10197 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
10198 (delim_string_to_char_ptr_vec): Return an std::vector of
10199 gdb::unique_xmalloc_ptr, adjust the code.
10200 (dirnames_to_char_ptr_vec_append): Take an std::vector of
10201 gdb::unique_xmalloc_ptr, adjust the code.
10202 (dirnames_to_char_ptr_vec): Return an std::vector of
10203 gdb::unique_xmalloc_ptr, adjust the code.
10204 * auto-load.c (auto_load_safe_path_vec): Change type to
10205 std::vector of gdb::unique_xmalloc_ptr.
10206 (auto_load_expand_dir_vars): Return an std::vector of
10207 gdb::unique_xmalloc_ptr, adjust the code.
10208 (auto_load_safe_path_vec_update): Adjust.
10209 (filename_is_in_auto_load_safe_path_vec): Adjust.
10210 (auto_load_objfile_script_1): Adjust.
10211 * build-id.c (build_id_to_debug_bfd): Adjust.
10212 * linux-thread-db.c (thread_db_load_search): Adjust.
10213 * source.c (add_path): Adjust.
10215 * symfile.c (find_separate_debug_file): Adjust.
10216 * utils.c (do_free_char_ptr_vec): Remove.
10217 (make_cleanup_free_char_ptr_vec): Remove.
10219 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
10222 * common/pathstuff.c: Conditionally include "<windows.h>".
10224 2018-03-01 Georg Sauthoff <mail@georg.so>
10227 * gcore.in: Quote variables and switch interpreter to bash.
10229 2018-03-01 Tom Tromey <tom@tromey.com>
10231 * dwarf2read.c (alloc_discriminant_info): Fix default_index
10232 assertion. Add assertion for discriminant_index.
10233 (quirk_rust_enum): Use correct base type name in univariant case.
10235 2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
10237 * record.c (get_call_history_modifiers): Return a
10238 record_print_flags.
10239 (cmd_record_call_history): Adjust.
10240 * record-btrace.c (record_btrace_call_history): Adjust.
10241 (record_btrace_call_history_range): Adjust.
10242 (record_btrace_call_history_from): Adjust.
10243 * target-debug.h (target_debug_print_record_print_flags): New.
10244 * target-delegates.c: Re-generate.
10245 * target.c (target_call_history): Change flags type.
10246 (target_call_history_from): Likewise.
10247 (target_call_history_range): Likewise.
10248 * target.h (struct target_ops) <target_call_history>: Likewise.
10249 (target_call_history_from): Likewise.
10250 (target_call_history_range): Likewise.
10252 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
10253 Simon Marchi <simon.marchi@polymtl.ca>
10255 * common/common-utils.c: Include "sys/stat.h".
10256 (is_regular_file): Move here from "source.c"; change return
10258 * common/common-utils.h (is_regular_file): New prototype.
10259 * common/pathstuff.c (contains_dir_separator): New function.
10260 * common/pathstuff.h (contains_dir_separator): New prototype.
10261 * source.c: Don't include "sys/stat.h".
10262 (is_regular_file): Move to "common/common-utils.c".
10264 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
10266 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
10267 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
10268 * auto-load.c: Include "common/pathstuff.h".
10269 * common/common-def.h (current_directory): Move here.
10270 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
10272 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
10274 * common/pathstuff.c: New file.
10275 * common/pathstuff.h: New file.
10276 * compile/compile.c: Include "common/pathstuff.h".
10277 * defs.h (current_directory): Move to "common/common-defs.h".
10278 * dwarf2read.c: Include "common/pathstuff.h".
10279 * exec.c: Likewise.
10280 * guile/scm-safe-call.c: Likewise.
10281 * linux-thread-db.c: Likewise.
10282 * main.c: Likewise.
10283 * nto-tdep.c: Likewise.
10284 * objfiles.c: Likewise.
10285 * source.c: Likewise.
10286 * symtab.c: Likewise.
10287 * utils.c: Include "common/pathstuff.h".
10288 (gdb_realpath): Move to "common/pathstuff.c".
10289 (gdb_realpath_keepfile): Likewise.
10290 (gdb_abspath): Likewise.
10291 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
10292 (gdb_realpath_keepfile): Likewise.
10293 (gdb_abspath): Likewise.
10295 2018-02-28 John Baldwin <jhb@FreeBSD.org>
10297 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
10298 wildcard process pid for super_resume for kernels with a
10301 2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
10303 * compile/compile.c (get_args): Add additional comments
10304 explaining function.
10306 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
10307 Tom Tromey <tom@tromey.com>
10309 * target.h (memory_write_request_s): Remove typedef. Don't define
10311 (target_write_memory_blocks): Change argument to std::vector.
10312 (struct memory_write_request): Add constructor.
10313 * target-memory.c (compare_block_starting_address): Return bool.
10314 Change argument types.
10315 (claim_memory): Change arguments to use std::vector.
10316 (split_regular_and_flash_blocks, blocks_to_erase)
10317 (compute_garbled_blocks): Likewise.
10318 (cleanup_request_data, cleanup_write_requests_vector): Remove.
10319 (target_write_memory_blocks): Change argument to std::vector.
10320 * symfile.c (struct load_section_data): Add constructor and
10321 destructor. Use std::vector for "requests".
10322 (struct load_progress_data): Add initializers.
10323 (load_section_callback): Update. Use "new".
10324 (clear_memory_write_data): Remove.
10325 (generic_load): Update.
10327 2018-02-27 Alan Hayward <alan.hayward@arm.com>
10329 * arch/aarch64.h: Use common/tdesc.h.
10331 2018-02-26 Maciej W. Rozycki <macro@mips.com>
10333 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
10334 architecture with a 64-bit ABI.
10336 2018-02-26 Maciej W. Rozycki <macro@mips.com>
10338 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
10339 ahead of target description loading.
10341 2018-02-26 Tom Tromey <tom@tromey.com>
10343 * stack.c (backtrace_command_1): Update.
10344 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
10346 * python/py-framefilter.c (py_print_frame)
10347 (gdbpy_apply_frame_filter): Change type of "flags".
10348 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
10350 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
10351 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
10352 * extension.h (enum frame_filter_flag): Rename from
10353 frame_filter_flags.
10354 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
10355 (apply_ext_lang_frame_filter): Change type of "flags".
10356 * extension.c (apply_ext_lang_frame_filter): Change type of
10358 * extension-priv.h (struct extension_language_ops)
10359 <apply_frame_filter>: Change type of "flags".
10361 2018-02-26 Tom Tromey <tom@tromey.com>
10364 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
10365 off-by-one in py_end computation.
10366 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
10368 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
10371 2018-02-26 Tom Tromey <tom@tromey.com>
10373 * dwarf2read.c (struct variant_field): New.
10374 (struct nextfield) <variant>: New field.
10375 (dwarf2_add_field): Handle DW_TAG_variant_part.
10376 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
10377 discriminated union.
10378 (read_structure_type): Handle DW_TAG_variant_part.
10379 (handle_struct_member_die): New function, extracted from
10380 process_structure_scope. Handle DW_TAG_variant.
10381 (process_structure_scope): Handle discriminated unions. Call
10382 handle_struct_member_die.
10384 2018-02-26 Tom Tromey <tom@tromey.com>
10386 * rust-lang.h (rust_last_path_segment): Declare.
10387 * rust-lang.c (rust_last_path_segment): Now public. Change
10389 (struct disr_info): Remove.
10390 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
10391 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
10392 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
10393 (rust_enum_p, rust_enum_variant): New function.
10394 (rust_underscore_fields): Remove "offset" parameter.
10395 (rust_print_enum): New function.
10396 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
10397 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
10398 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
10400 (rust_internal_print_type): New function, from rust_print_type.
10402 (rust_print_type): Call rust_internal_print_type.
10403 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
10404 Update enum handling.
10405 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
10406 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
10407 (rust_union_quirks): New functions.
10408 (process_full_comp_unit, process_full_type_unit): Call
10410 (process_structure_scope): Update rust_unions if necessary.
10412 2018-02-26 Tom Tromey <tom@tromey.com>
10414 * value.h (value_union_variant): Declare.
10415 * valops.c (value_union_variant): New function.
10416 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
10417 (struct discriminant_info): New.
10418 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
10420 (struct main_type) <flag_discriminated_union>: New field.
10422 2018-02-26 Tom Tromey <tom@tromey.com>
10424 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10425 unittests/unpack-selftests.c.
10426 * unittests/unpack-selftests.c: New file.
10427 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
10429 2018-02-26 Yao Qi <yao.qi@linaro.org>
10431 * dwarf2read.c (struct partial_die_info) <read>: New method.
10432 (read_partial_die): Remove the declaration.
10433 (load_partial_dies): Update.
10434 (partial_die_info::partial_die_info):
10435 (read_partial_die): Change it to partial_die_info::read.
10437 2018-02-26 Yao Qi <yao.qi@linaro.org>
10439 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
10440 (fixup_partial_die): Remove declaration.
10441 (scan_partial_symbols): Update.
10442 (partial_die_parent_scope): Likewise.
10443 (partial_die_full_name): Likewise.
10444 (fixup_partial_die): Change it to partial_die_info::fixup.
10446 2018-02-26 Yao Qi <yao.qi@linaro.org>
10448 * dwarf2read.c (read_partial_die): Update the declaration.
10449 (load_partial_dies): Caller update.
10450 (read_partial_die): Remove one argument abbrev_len.
10452 2018-02-26 Yao Qi <yao.qi@linaro.org>
10454 * dwarf2read.c (struct partial_die_info): Add ctor, delete
10455 assignment operator.
10456 (load_partial_dies): Use ctor and copy ctor.
10457 (read_partial_die): Update.
10458 (dwarf2_cu::find_partial_die): Use ctor.
10460 2018-02-26 Yao Qi <yao.qi@linaro.org>
10462 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
10463 (find_partial_die_in_comp_unit): Change it to
10464 dwarf2_cu::find_partial_die.
10465 (find_partial_die): Update.
10467 2018-02-26 Yao Qi <yao.qi@linaro.org>
10469 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
10472 2018-02-26 Yao Qi <yao.qi@linaro.org>
10474 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
10476 2018-02-26 Alan Hayward <alan.hayward@arm.com>
10478 * arch/amd64.h: Use common/tdesc.h.
10479 * arch/i386.c: Likewise.
10480 * arch/i386.h: Likewise.
10481 * arch/tic6x.c: Likewise.
10482 * arch/tdesc.h: Move file from here...
10483 * common/tdesc.h: ...to here.
10484 * features/aarch64-core.c: Regenerate.
10485 * features/aarch64-fpu.c: Regenerate.
10486 * features/i386/32bit-avx.c: Regenerate.
10487 * features/i386/32bit-avx512.c: Regenerate.
10488 * features/i386/32bit-core.c: Regenerate.
10489 * features/i386/32bit-linux.c: Regenerate.
10490 * features/i386/32bit-mpx.c: Regenerate.
10491 * features/i386/32bit-pkeys.c: Regenerate.
10492 * features/i386/32bit-sse.c: Regenerate.
10493 * features/i386/64bit-avx.c: Regenerate.
10494 * features/i386/64bit-avx512.c: Regenerate.
10495 * features/i386/64bit-core.c: Regenerate.
10496 * features/i386/64bit-linux.c: Regenerate.
10497 * features/i386/64bit-mpx.c: Regenerate.
10498 * features/i386/64bit-pkeys.c: Regenerate.
10499 * features/i386/64bit-segments.c: Regenerate.
10500 * features/i386/64bit-sse.c: Regenerate.
10501 * features/i386/x32-core.c: Regenerate.
10502 * features/tic6x-c6xp.c: Regenerate.
10503 * features/tic6x-core.c: Regenerate.
10504 * features/tic6x-gp.c: Regenerate.
10505 * target-descriptions.c: Use common/tdesc.h.
10506 * target-descriptions.h: Likewise.
10508 2018-02-24 Tom Tromey <tom@tromey.com>
10510 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
10511 (try_thread_db_load_from_dir, thread_db_load_search): Use
10513 (info_auto_load_libthread_db_compare): Return bool. Change
10515 (info_auto_load_libthread_db): Use std::vector, std::string.
10518 2018-02-24 Tom Tromey <tom@tromey.com>
10520 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
10522 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
10524 * gdbarch.c: Rebuild.
10525 * gdbarch.h: Rebuild.
10526 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
10527 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
10528 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
10531 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
10533 * gdbtypes.h (sect_offset): Change type to uint64_t.
10534 (sect_offset_str): New function.
10535 * dwarf2read.c (create_addrmap_from_aranges): Use
10537 (error_check_comp_unit_head): Likewise.
10538 (create_debug_type_hash_table): Likewise.
10539 (read_cutu_die_from_dwo): Likewise.
10540 (init_cutu_and_read_dies): Likewise.
10541 (init_cutu_and_read_dies_no_follow): Likewise.
10542 (process_psymtab_comp_unit_reader): Likewise.
10543 (partial_die_parent_scope): Likewise.
10544 (peek_die_abbrev): Likewise.
10545 (process_queue): Likewise.
10546 (dwarf2_physname): Likewise.
10547 (read_namespace_alias): Likewise.
10548 (read_import_statement): Likewise.
10549 (create_dwo_cu_reader): Likewise.
10550 (create_cus_hash_table): Likewise.
10551 (lookup_dwo_cutu): Likewise.
10552 (inherit_abstract_dies): Likewise.
10553 (read_func_scope): Likewise.
10554 (read_call_site_scope): Likewise.
10555 (dwarf2_add_member_fn): Likewise.
10556 (read_common_block): Likewise.
10557 (read_module_type): Likewise.
10558 (read_typedef): Likewise.
10559 (read_subrange_type): Likewise.
10560 (load_partial_dies): Likewise.
10561 (read_partial_die): Likewise.
10562 (find_partial_die): Likewise.
10563 (read_str_index): Likewise.
10564 (dwarf2_string_attr): Likewise.
10565 (build_error_marker_type): Likewise.
10566 (lookup_die_type): Likewise.
10567 (dump_die_shallow): Likewise.
10568 (follow_die_ref): Likewise.
10569 (dwarf2_fetch_die_loc_sect_off): Likewise.
10570 (dwarf2_fetch_constant_bytes): Likewise.
10571 (follow_die_sig): Likewise.
10572 (get_signatured_type): Likewise.
10573 (get_DW_AT_signature_type): Likewise.
10574 (dwarf2_find_containing_comp_unit): Likewise.
10575 (set_die_type): Likewise.
10577 2018-02-21 John Baldwin <jhb@FreeBSD.org>
10579 * arch/aarch64.c: Include "common-defs.h".
10580 * arch/amd64.c: Likewise.
10581 * arch/i386.c: Likewise.
10583 2018-02-21 Tom Tromey <tom@tromey.com>
10585 * value.h: (extract_field_op): Update.
10586 * eval.c (extract_field_op): Return a const char *.
10587 * expression.h (parse_expression_for_completion): Update.
10588 * completer.c (complete_expression): Update.
10589 (add_struct_fields): Make fieldname const.
10590 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
10591 (mark_completion_tag, parse_exp_in_context_1): Update.
10592 (parse_expression_for_completion): Change "name" to
10593 unique_xmalloc_ptr*.
10595 2018-02-21 Tom Tromey <tom@tromey.com>
10597 * infcall.c (call_function_by_hand_dummy): Use std::vector.
10599 2018-02-21 Yao Qi <yao.qi@linaro.org>
10601 * avr-tdep.c (avr_read_pc): Change parameter type to
10603 * gdbarch.sh (read_pc): Likewise.
10604 * gdbarch.c: Re-generated.
10605 * gdbarch.h: Re-generated.
10606 * hppa-tdep.c (hppa_read_pc): Change parameter type to
10608 * ia64-tdep.c (ia64_read_pc): Likewise.
10609 * mips-tdep.c (mips_read_pc): Likewise.
10610 * spu-tdep.c (spu_read_pc): Likewise.
10612 2018-02-21 Yao Qi <yao.qi@linaro.org>
10614 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
10615 * regcache-dump.c: New file.
10616 * regcache.c: Move register_dump to regcache-dump.c.
10617 (maintenance_print_registers): Likewise.
10618 (maintenance_print_raw_registers): Likewise.
10619 (maintenance_print_cooked_registers): Likewise.
10620 (maintenance_print_register_groups): Likewise.
10621 (maintenance_print_remote_registers): Likewise.
10622 (_initialize_regcache): Likewise.
10623 * regcache.h (register_dump): Moved from regcache.c.
10625 2018-02-21 Yao Qi <yao.qi@linaro.org>
10627 * regcache.c (regcache::regcache): Update.
10628 (regcache::invalidate): Move it to detached_regcache::invalidate.
10629 (get_thread_arch_aspace_regcache): Update.
10630 (regcache::raw_update): Update.
10631 (regcache::cooked_read): Remove some code.
10632 (regcache::cooked_read_value): Likewise.
10633 (regcache::raw_write): Remove assert on m_readonly_p.
10634 (regcache::raw_supply_integer): Move it to
10635 detached_regcache::raw_supply_integer.
10636 (regcache::raw_supply_zeroed): Likewise.
10637 * regcache.h (detached_regcache) <raw_supply_integer>: New
10639 <raw_supply_zeroed, invalidate>: Likewise.
10640 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
10641 <invalidate>: Likewise.
10642 <m_readonly_p>: Removed.
10644 2018-02-21 Yao Qi <yao.qi@linaro.org>
10646 * infcmd.c (get_return_value): Let stop_regs point to
10647 get_current_regcache.
10648 * regcache.c (regcache::regcache): Remove.
10649 (register_dump_reg_buffer): New class.
10650 (regcache_print): Adjust.
10651 * regcache.h (regcache): Remove constructors.
10653 2018-02-21 Yao Qi <yao.qi@linaro.org>
10655 * regcache.c (class register_dump): New class.
10656 (register_dump_regcache, register_dump_none): New class.
10657 (register_dump_remote, register_dump_groups): New class.
10658 (regcache_print): Update.
10659 * regcache.h (regcache_dump_what): Move it to regcache.c.
10660 (regcache) <dump>: Remove.
10662 2018-02-21 Yao Qi <yao.qi@linaro.org>
10664 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
10666 (jit_unwind_reg_set_impl): Call raw_supply.
10667 (jit_frame_sniffer): Use reg_buffer_rw.
10668 * record-full.c (record_full_core_regbuf): Change its type.
10669 (record_full_core_open_1): Use reg_buffer_rw.
10670 (record_full_close): Likewise.
10671 (record_full_core_fetch_registers): Use regcache->raw_supply.
10672 (record_full_core_store_registers): Likewise.
10673 * regcache.c (regcache::get_register_status): Move it to
10675 (regcache_raw_set_cached_value): Remove.
10676 (regcache::raw_set_cached_value): Remove.
10677 (regcache::raw_write): Call raw_supply.
10678 (regcache::raw_supply): Move it to reg_buffer_rw.
10679 * regcache.h (regcache_raw_set_cached_value): Remove.
10680 (reg_buffer_rw): New class.
10682 2018-02-21 Yao Qi <yao.qi@linaro.org>
10684 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
10685 readonly_detached_regcache.
10686 (dummy_frame_prev_register): Use regcache->cooked_read.
10687 * frame.c (frame_save_as_regcache): Change return type.
10688 (frame_pop): Update.
10689 * frame.h (frame_save_as_regcache): Update declaration.
10690 * inferior.h (get_infcall_suspend_state_regcache): Update
10692 * infrun.c (infcall_suspend_state) <registers>: use
10693 readonly_detached_regcache.
10694 (save_infcall_suspend_state): Don't use regcache_dup.
10695 (get_infcall_suspend_state_regcache): Change return type.
10696 * linux-fork.c (struct fork_info) <savedregs>: Change to
10697 readonly_detached_regcache.
10699 (fork_save_infrun_state): Don't use regcache_dup.
10700 (info_checkpoints_command): Adjust.
10701 * mi/mi-main.c (register_changed_p): Update declaration.
10702 (mi_cmd_data_list_changed_registers): Use
10703 readonly_detached_regcache.
10704 (register_changed_p): Change parameter type to
10705 readonly_detached_regcache.
10706 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
10707 readonly_detached_regcache.
10708 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
10709 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
10711 (regcache::save): Move it to reg_buffer.
10712 (regcache::restore): Change parameter type.
10713 (regcache_dup): Remove.
10714 * regcache.h (reg_buffer) <save>: New method.
10715 (readonly_detached_regcache): New class.
10716 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
10717 readonly_detached_regcache.
10718 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
10720 2018-02-21 Yao Qi <yao.qi@linaro.org>
10722 * frame.c (frame_save_as_regcache): Use regcache method save.
10723 (frame_pop): Use regcache method restore.
10724 * infrun.c (restore_infcall_suspend_state): Likewise.
10725 * linux-fork.c (fork_load_infrun_state): Likewise.
10726 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
10728 * regcache.c (regcache_save): Remove.
10729 (regcache::restore): More asserts.
10730 (regcache_cpy): Remove.
10731 * regcache.h (regcache_save): Remove the declaration.
10732 (regcache::restore): Move from private to public.
10733 Remove the friend declaration of regcache_cpy.
10734 (regcache_cpy): Remove declaration.
10736 2018-02-21 Yao Qi <yao.qi@linaro.org>
10738 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
10739 parameter type to 'readable_regcache *'.
10740 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
10741 * arm-tdep.c (arm_neon_quad_read): Likewise.
10742 (arm_pseudo_read): Likewise.
10743 * avr-tdep.c (avr_pseudo_register_read): Likewise.
10744 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
10745 * frv-tdep.c (frv_pseudo_register_read): Likewise.
10746 * gdbarch.c: Re-generated.
10747 * gdbarch.h: Re-generated.
10748 * gdbarch.sh (pseudo_register_read): Change parameter type to
10749 'readable_regcache *'.
10750 (pseudo_register_read_value): Likewise.
10751 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
10752 (h8300_pseudo_register_read): Likewise.
10753 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
10754 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
10755 (i386_pseudo_register_read_into_value): Likewise.
10756 (i386_pseudo_register_read_value): Likewise.
10757 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
10759 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
10760 * m32c-tdep.c (m32c_raw_read): Likewise.
10761 (m32c_read_flg): Likewise.
10762 (m32c_banked_register): Likewise.
10763 (m32c_banked_read): Likewise.
10764 (m32c_sb_read): Likewise.
10765 (m32c_part_read): Likewise.
10766 (m32c_cat_read): Likewise.
10767 (m32c_r3r2r1r0_read): Likewise.
10768 (m32c_pseudo_register_read): Likewise.
10769 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
10770 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
10771 (mep_pseudo_cr64_read): Likewise.
10772 (mep_pseudo_register_read): Likewise.
10773 * mips-tdep.c (mips_pseudo_register_read): Likewise.
10774 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
10775 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
10776 * regcache.c (regcache::raw_read): Move it to readable_regcache.
10777 (regcache::cooked_read): Likewise.
10778 (regcache::cooked_read_value): Likewise.
10779 (regcache_cooked_read_signed):
10780 (regcache::cooked_read): Likewise.
10781 * regcache.h (readable_regcache): New class.
10782 (regcache): Inherit readable_regcache. Move some methods to
10784 * rl78-tdep.c (rl78_pseudo_register_read): Change
10785 parameter type to 'readable_regcache *'.
10786 * rs6000-tdep.c (do_regcache_raw_read): Remove.
10787 (e500_pseudo_register_read): Change parameter type to
10788 'readable_regcache *'.
10789 (dfp_pseudo_register_read): Likewise.
10790 (vsx_pseudo_register_read): Likewise.
10791 (efpr_pseudo_register_read): Likewise.
10792 * s390-tdep.c (s390_pseudo_register_read): Likewise.
10793 * sh-tdep.c (sh_pseudo_register_read): Likewise.
10794 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
10795 (sh64_pseudo_register_read): Likewise.
10796 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
10797 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
10798 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
10799 (spu_pseudo_register_read): Likewise.
10800 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
10801 (xtensa_pseudo_register_read): Likewise.
10803 2018-02-21 Yao Qi <yao.qi@linaro.org>
10805 * regcache.c (regcache::regcache): Call reg_buffer ctor.
10806 (regcache::arch): Move it to reg_buffer::arch.
10807 (regcache::register_buffer): Likewise.
10808 (regcache::assert_regnum): Likewise.
10809 (regcache::num_raw_registers): Likewise.
10810 * regcache.h (reg_buffer): New class.
10811 (regcache): Inherit reg_buffer.
10813 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
10815 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
10816 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
10818 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
10820 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
10822 2018-02-19 Alan Hayward <alan.hayward@arm.com>
10824 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
10825 (SFILES): Remove common/*.c files.
10826 (COMMON_OBS): Remove some *.o files built from common/*.c files.
10827 * common/common.host: Add common reference.
10828 * configure.ac: Likewise.
10829 * configure: Regenerate.
10831 2018-02-16 Yao Qi <yao.qi@linaro.org>
10833 * block.c (block_namespace_info): Inherit allocate_on_obstack.
10834 (block_initialize_namespace): Use new.
10835 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
10836 (dwarf2_free_objfile): Use delete.
10837 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
10838 (copy_type_recursive): Use new.
10839 * gdb_obstack.h (allocate_on_obstack): New.
10841 2018-02-15 Yao Qi <yao.qi@linaro.org>
10844 * inferior.c (exit_inferior_1): Reset inf->control.
10846 2018-02-15 Joel Brobecker <brobecker@adacore.com>
10848 * ada-lang.c (ada_to_fixed_value_create): Delete advance
10851 2018-02-14 Pedro Alves <palves@redhat.com>
10853 * frame-unwind.c (frame_unwind_try_unwinder): Always call
10854 frame_cleanup_after_sniffer on exception.
10856 2018-02-14 Tom Tromey <tom@tromey.com>
10858 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
10860 (solib_bfd_open): Make pathname const.
10861 * solib.c (solib_bfd_open): Make pathname const.
10862 * solib-spu.c (spu_bfd_fopen): Make name const.
10863 (spu_bfd_open): Make pathname const.
10864 * solib-darwin.c (darwin_bfd_open): Make pathname const.
10865 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
10867 2018-02-14 Tom Tromey <tom@tromey.com>
10869 * symfile.c (symfile_bfd_open): Update.
10870 * source.h (openp, source_full_path_of, find_and_open_source):
10871 Change argument type to unique_xmalloc_ptr.
10872 * source.c (openp): Take a unique_xmalloc_ptr.
10873 (source_full_path_of, find_and_open_source): Likewise.
10874 (open_source_file, symtab_to_fullname): Update.
10875 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
10876 unique_xmalloc_ptr.
10877 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
10878 (exec_file_find): Update.
10879 * psymtab.c (psymtab_to_fullname): Update.
10880 * nto-tdep.h (nto_find_and_open_solib): Update.
10881 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
10882 unique_xmalloc_ptr.
10883 * exec.c (exec_file_attach): Update.
10884 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
10885 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
10887 2018-02-14 Tom Tromey <tom@tromey.com>
10889 * solib.c: Include source.h.
10890 * nto-tdep.c: Include source.h.
10891 * mi/mi-cmd-env.c: Include source.h.
10892 * infcmd.c: Include source.h.
10893 * exec.c: Include source.h.
10894 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
10895 (add_path, directory_switch, source_path, init_source_path): Move
10897 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
10898 (add_path, directory_switch, source_path, init_source_path):
10901 2018-02-14 Tom Tromey <tom@tromey.com>
10903 * solist.h (exec_file_find, solib_find): Return
10904 unique_xmalloc_ptr.
10905 (solib_bfd_fopen): Take a const char *.
10906 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
10907 (exec_file_find, solib_find): Likewise.
10908 (solib_bfd_fopen): Do not take ownership of "pathname".
10909 (solib_bfd_open): Use unique_xmalloc_ptr.
10910 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
10911 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
10912 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
10913 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
10915 2018-02-14 Joel Brobecker <brobecker@adacore.com>
10917 * ada-lang.c (name_match_type_from_name): Remove reference to
10918 ada_name_for_lookup in function's documentation.
10919 * ada-lang.h (ada_name_for_lookup): Delete declaration.
10921 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
10923 * defs.h (enum openp_flags): New enum.
10924 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
10925 Move to enum openp_flags.
10926 (openp_flags): New enum flags.
10927 (openp): Change parameter type to openp_flags.
10928 * source.c (openp): Change parameter type to openp_flags.
10929 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
10930 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
10932 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
10934 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
10937 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
10939 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
10941 (class dwarf2_queue_guard): ...the destructor of this new class.
10942 (dw2_do_instantiate_symtab): Create instance of the new class
10943 dwarf2_queue_guard, remove cleanup.
10945 2018-02-09 Tom Tromey <tom@tromey.com>
10947 * source.c (find_source_lines): Don't reference past the end of
10950 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
10952 * remote.c (remote_btrace_maybe_reopen): Change error message.
10953 * btrace.c (btrace_enable): Likewise.
10954 (parse_xml_btrace): Likewise.
10955 (parse_xml_btrace_conf): Likewise.
10957 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
10959 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
10960 (linux_enable_pt, linux_enable_bts): Call
10961 diagnose_perf_event_open_fail.
10963 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
10965 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
10966 Remove parameter and change return type. Update callers. Move it.
10967 (linux_enable_bts, linux_enable_pt): Improve error message.
10968 (linux_enable_pt): Remove zero buffer size check.
10969 (linux_enable_btrace): Improve error messages. Remove NULL return
10972 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
10974 * btrace.c (btrace_enable): Remove target_supports_btrace call.
10975 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
10976 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
10977 (linux_supports_pt, linux_supports_btrace): Remove.
10978 (linux_enable_bts): Call cpu_supports_bts.
10979 * nat/linux-btrace.h (linux_supports_btrace): Remove.
10980 * remote.c (remote_supports_btrace): Remove.
10981 (init_remote_ops): Remove remote_supports_btrace.
10982 * target-delegates.c: Regenerated.
10983 * target.c (target_supports_btrace): Remove.
10984 * target.h (target_ops) <to_supports_btrace>: Remove
10985 (target_supports_btrace): Remove.
10986 * x86-linux-nat.c (x86_linux_create_target): Remove
10987 linux_supports_btrace.
10989 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
10991 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
10993 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
10994 exception and use message in own exception.
10996 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
10998 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
10999 (perf_event_pt_event_type): Use gdb_file_up.
11000 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
11001 scoped_fd, and scoped_mmap.
11003 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11005 * common/scoped_mmap.h: New.
11006 * unittests/scoped_mmap-selftest.c: New.
11007 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11008 unittests/scoped_mmap-selftest.c.
11010 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11012 * common/scoped_fd.h: New.
11013 * unittests/scoped_fd-selftest.c: New.
11014 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11015 unittests/scoped_fd-selftest.c.
11017 2018-02-09 Tom Tromey <tom@tromey.com>
11019 * auto-load.c (auto_load_section_scripts): Use
11020 gdb::unique_xmalloc_ptr.
11022 2018-02-09 Tom Tromey <tom@tromey.com>
11024 * auto-load.c (execute_script_contents): Use std::string.
11026 2018-02-09 Joel Brobecker <brobecker@adacore.com>
11028 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
11029 Python function, rather than a new command.
11031 2018-02-08 Tom Tromey <tom@tromey.com>
11033 * solib.c (solib_find_1): Use std::string.
11034 (solib_bfd_fopen): Use unique_xmalloc_ptr.
11036 2018-02-08 Tom Tromey <tom@tromey.com>
11038 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
11040 2018-02-08 Tom Tromey <tom@tromey.com>
11042 * source.c (find_source_lines): Use gdb::def_vector.
11044 2018-02-08 Tom Tromey <tom@tromey.com>
11046 * macrocmd.c (struct temporary_macro_definition): New.
11047 (macro_define_command): Use temporary_macro_definition. Remove
11049 (free_macro_definition_ptr): Remove.
11051 2018-02-08 Tom Tromey <tom@tromey.com>
11053 * macroexp.c (maybe_expand): Use std::string.
11055 2018-02-08 Tom Tromey <tom@tromey.com>
11057 * macroexp.c (struct macro_buffer): Add initializers for some
11059 (init_buffer, init_shared_buffer, free_buffer)
11060 (free_buffer_return_text): Remove.
11061 (macro_buffer): New constructors.
11062 (~macro_buffer): New destructor.
11063 (macro_buffer::set_shared): New method.
11064 (macro_buffer::resize_buffer, macro_buffer::appendc)
11065 (macro_buffer::appendmem): Now methods, not free functions.
11066 (set_token, append_tokens_without_splicing, stringify)
11067 (macro_stringify): Update.
11068 (gather_arguments): Change return type. Remove argc_p argument,
11069 add args_ptr argument. Use std::vector.
11070 (substitute_args): Remove argc argument. Accept std::vector.
11071 (expand): Update. Use std::vector.
11072 (scan, macro_expand, macro_expand_next): Update.
11074 2018-02-08 Tom Tromey <tom@tromey.com>
11076 * symtab.c (default_collect_symbol_completion_matches_break_on):
11077 Use unique_xmalloc_ptr.
11078 * macroscope.h: (sal_macro_scope, user_macro_scope)
11079 (default_macro_scope): Return unique_xmalloc_ptr.
11080 * macroscope.c (sal_macro_scope, user_macro_scope)
11081 (default_macro_scope): Return unique_xmalloc_ptr.
11082 * macroexp.h (macro_expand, macro_expand_once): Return
11083 unique_xmalloc_ptr.
11084 * macroexp.c (macro_expand, macro_expand_once): Return
11085 unique_xmalloc_ptr.
11086 * macrocmd.c (macro_expand_command, macro_expand_once_command)
11087 (info_macro_command, info_macros_command): Use
11088 unique_xmalloc_ptr.
11089 * compile/compile-c-support.c (write_macro_definitions): Use
11090 unique_xmalloc_ptr.
11091 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
11093 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
11095 * value.c (value_static_field): Assign field type instead of
11096 containing type when returning an optimized out value.
11098 2018-02-06 Yao Qi <yao.qi@linaro.org>
11100 * ft32-tdep.c (ft32_read_pc): Remove.
11101 (ft32_write_pc): Remove.
11102 (ft32_gdbarch_init): Update.
11103 * m32r-tdep.c (m32r_read_pc): Remove.
11104 (m32r_gdbarch_init): Update.
11105 * mep-tdep.c (mep_read_pc): Remove.
11106 (mep_gdbarch_init): Update.
11107 * microblaze-tdep.c (microblaze_write_pc): Remove.
11108 (microblaze_gdbarch_init): Update.
11109 * mn10300-tdep.c (mn10300_read_pc): Remove.
11110 (mn10300_write_pc): Remove.
11111 (mn10300_gdbarch_init): Update.
11112 * moxie-tdep.c (moxie_read_pc): Remove.
11113 (moxie_write_pc): Remove.
11114 (moxie_gdbarch_init): Update.
11116 2018-02-06 Yao Qi <yao.qi@linaro.org>
11118 * expprint.c (print_subexp_standard): Handle
11119 OP_F77_UNDETERMINED_ARGLIST.
11120 (dump_subexp_body_standard): Likewise.
11122 2018-02-05 Alan Hayward <alan.hayward@arm.com>
11124 * target-descriptions.c (tdesc_element_visitor) Add empty
11126 (tdesc_type): Move make_gdb_type from here.
11127 (tdesc_type_builtin): Likewise.
11128 (tdesc_type_vector): Likewise.
11129 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
11130 (make_gdb_type_struct): Move from tdesc_type_with_fields.
11131 (make_gdb_type_union): Likewise.
11132 (make_gdb_type_flags): Likewise.
11133 (make_gdb_type_enum): Likewise.
11134 (make_gdb_type): New function.
11135 (tdesc_register_type): Use static make_gdb_type.
11137 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
11139 * infcmd.c (default_print_one_register_info): Align natural-format
11140 column values consistently one under another.
11141 (pad_to_column): New function.
11143 2018-02-05 Joel Brobecker <brobecker@adacore.com>
11145 * dwarf2read.c (dwarf2_physname): Move commment.
11147 2018-02-01 Leszek Swirski <leszeks@google.com>
11149 * varobj.c (varobj_formatted_print_options): Allow recursive
11150 pretty printing if pretty printing is enabled.
11152 2018-02-01 Leszek Swirski <leszeks@google.com>
11154 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
11155 names after a structop as a filename.
11157 2018-02-01 Yao Qi <yao.qi@linaro.org>
11159 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
11160 (arm_record_coproc_data_proc): Likewise.
11162 2018-02-01 Yao Qi <yao.qi@linaro.org>
11164 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
11166 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
11168 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
11169 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
11171 2018-01-31 Pedro Alves <palves@redhat.com>
11173 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
11174 * inflow.c (child_terminal_save_inferior): Wrap reference to
11175 tcgetpgrp in HAVE_TERMIOS_H.
11176 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
11178 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
11179 always iterate over all inferiors.
11180 (gdbsim_cntrl_c): Adjust.
11181 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
11183 2018-01-31 Joel Brobecker <brobecker@adacore.com>
11185 * gdbtypes.c (lookup_array_range_type): Make sure the array's
11186 index type is objfile-owned if the element type is as well.
11188 2018-01-31 Joel Brobecker <brobecker@adacore.com>
11192 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
11194 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
11195 "features/s390x-linux64.c".
11196 (_initialize_s390_linux_tdep): Remove initialization of tdescs
11197 s390_linux32 and s390x_linux64.
11198 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
11200 * s390-tdep.c: Include "features/s390-linux32.c" and
11201 "features/s390x-linux64.c".
11202 (s390_tdesc_valid): Add check for tdesc_has_registers.
11203 (s390_gdbarch_init): Make sure there is always a valid tdesc.
11204 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
11205 tdesc_s390x_linux64.
11206 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
11207 tdesc_s390x_linux64 to...
11208 * s390-tdep.h: ...here.
11210 2018-01-30 Pedro Alves <palves@redhat.com>
11213 * config.in, configure: Regenerate.
11214 * configure.ac: Check for getpgid.
11215 * go32-nat.c (go32_pass_ctrlc): New.
11216 (go32_target): Install it.
11217 * inf-child.c (inf_child_target): Install
11218 child_terminal_save_inferior, child_pass_ctrlc and
11220 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
11221 (inf_ptrace_target): No longer install it.
11222 * infcmd.c (interrupt_target_1): Adjust.
11223 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
11224 (child_interrupt): Declare.
11225 (inferior::terminal_state): New.
11226 * inflow.c (struct terminal_info): Update comments.
11227 (inferior_process_group): Delete.
11228 (terminal_is_ours): Delete.
11229 (gdb_tty_state): New.
11230 (child_terminal_init): Adjust.
11231 (is_gdb_terminal, sharing_input_terminal_1)
11232 (sharing_input_terminal): New functions.
11233 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
11234 Set the process's actual process group in the foreground if
11235 possible. Handle is_ours_for_output/is_ours distinction. Don't
11236 mark terminal as the inferior's if not sharing GDB's terminal.
11237 Don't check attach_flag.
11238 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
11239 pass down a target_terminal_state.
11240 (child_terminal_save_inferior): New, factored out from ...
11241 (child_terminal_ours_1): ... this. Handle
11242 target_terminal_state::is_ours_for_output.
11243 (child_interrupt, child_pass_ctrlc): New.
11244 (inflow_inferior_exit): Clear the inferior's terminal_state.
11245 (copy_terminal_info): Copy the inferior's terminal state.
11246 (_initialize_inflow): Remove reference to terminal_is_ours.
11247 * inflow.h (inferior_process_group): Delete.
11248 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
11249 * procfs.c (procfs_target): Don't install procfs_interrupt.
11250 (procfs_interrupt): Delete.
11251 * remote.c (remote_serial_quit_handler): Adjust.
11252 (remote_interrupt): Remove ptid parameter. Adjust.
11253 * target-delegates.c: Regenerate.
11254 * target.c: Include "terminal.h".
11255 (target_terminal::terminal_state): Rename to ...
11256 (target_terminal::m_terminal_state): ... this.
11257 (target_terminal::init): Adjust.
11258 (target_terminal::inferior): Adjust to per-inferior
11260 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
11261 (target_terminal::ours, target_terminal::ours_for_output): Use
11262 target_terminal_is_ours_kind.
11263 (target_interrupt): Remove ptid parameter. Adjust.
11264 (default_target_pass_ctrlc): Adjust.
11265 * target.h (target_ops::to_terminal_save_inferior): New field.
11266 (target_ops::to_interrupt): Remove ptid_t parameter.
11267 (target_interrupt): Remove ptid_t parameter. Update comment.
11268 (target_pass_ctrlc): Update comment.
11269 * target/target.h (target_terminal_state): New scoped enum,
11270 factored out of ...
11271 (target_terminal::terminal_state): ... here.
11272 (target_terminal::inferior): Update comments.
11273 (target_terminal::restore_inferior): New.
11274 (target_terminal::is_inferior, target_terminal::is_ours)
11275 (target_terminal::is_ours_for_output): Adjust.
11276 (target_terminal::scoped_restore_terminal_state): Adjust to
11277 rename, and call restore_inferior() instead of inferior().
11278 (target_terminal::scoped_restore_terminal_state::m_state): Change
11280 (target_terminal::terminal_state): Rename to ...
11281 (target_terminal::m_terminal_state): ... this and change type.
11283 2018-01-30 Pedro Alves <palves@redhat.com>
11285 * linux-nat.c (wait_for_signal): New function.
11286 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
11288 (async_terminal_is_ours)
11289 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
11290 (linux_nat_add_target): Don't override
11291 to_terminal_inferior/to_terminal_ours.
11293 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
11295 * remote.c (remote_follow_fork): Don't call "detach_inferior".
11297 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
11299 * dwarf2read.c (free_dwo_files): Add forward-declaration.
11300 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
11301 dwarf2_per_objfile_free here.
11302 (dwarf2_per_objfile_free): Remove.
11303 (_initialize_dwarf2_read): Don't register
11304 dwarf2_per_objfile_free as a registry cleanup.
11306 2018-01-27 Eli Zaretskii <eliz@gnu.org>
11308 Avoid compilation errors in MinGW native builds
11310 The error is triggered by including python-internal.h, and the
11313 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
11314 from build-gnulib/import/math.h:27,
11315 from d:/usr/Python26/include/pyport.h:235,
11316 from d:/usr/Python26/include/Python.h:58,
11317 from python/python-internal.h:94,
11318 from python/py-arch.c:24:
11319 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
11323 This happens because Python headers define 'hypot' to expand t
11324 '_hypot' in the Windows builds.
11325 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
11326 'hypoth'. This avoids a compilation error.
11328 2018-01-26 Alan Hayward <alan.hayward@arm.com>
11330 * MAINTAINERS (Write After Approval): Fix ordering.
11332 2018-01-26 Alan Hayward <alan.hayward@arm.com>
11334 * MAINTAINERS (Write After Approval): Add Alan Hayward.
11336 2018-01-26 Alan Modra <amodra@gmail.com>
11338 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
11339 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
11340 Remove nop. Make const. Comment.
11341 (powerpc32_plt_stub_so_2): New.
11342 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
11343 Correct count. Update uses.
11344 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
11345 Move common code reading PLT entry word. Correct
11346 powerpc32_plt_stub PLT address calculation.
11347 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
11348 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
11349 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
11350 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
11351 (ppc64_standard_linkage8): Likewise.
11352 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
11353 Correct insns description.
11354 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
11356 2018-01-24 Pedro Alves <palves@redhat.com>
11358 GCC PR libstdc++/83906
11359 * gdbtypes.c (operator==(const dynamic_prop &,
11360 const dynamic_prop &)): New.
11361 (operator==(const range_bounds &, const range_bounds &)): New.
11362 (check_types_equal): Use them instead of memcmp.
11363 * gdbtypes.h (operator==(const dynamic_prop &,
11364 const dynamic_prop &)): Declare.
11365 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
11366 (operator==(const range_bounds &, const range_bounds &)): Declare.
11367 (operator!=(const range_bounds &, const range_bounds &)): Declare.
11369 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
11371 * s390-linux-tdep.c (s390_record_address_mask)
11372 (s390_record_calc_disp_common, s390_record_calc_disp)
11373 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
11374 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
11375 (s390_process_record): Move to s390-tdep.c.
11376 (s390_linux_init_abi_any): Adjust.
11377 * s390-tdep.c (s390_record_address_mask)
11378 (s390_record_calc_disp_common, s390_record_calc_disp)
11379 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
11380 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
11381 (s390_process_record): Moved from s390-linux-tdep.c
11382 (s390_gdbarch_init): Adjust.
11384 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
11386 * s390-linux-nat.c (s390-tdep.h): New include.
11387 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
11388 (HFILES_NO_SRCDIR): Add s390-tdep.h.
11389 (ALLDEPFILES): Add s390-tdep.c.
11390 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
11391 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
11392 * s390-tdep.h: ...this. New file.
11393 * s390-linux-tdep.c (s390-tdep.h): New include.
11394 (_initialize_s390_tdep): Rename to...
11395 (_initialize_s390_linux_tdep): ...this and adjust.
11396 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
11397 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
11399 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
11400 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
11401 (s390_is_partial_instruction, s390_software_single_step)
11402 (is_non_branch_ril, s390_displaced_step_copy_insn)
11403 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
11404 (s390_prologue_data, s390_addr, s390_store, s390_load)
11405 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
11406 (s390_register_call_saved, s390_guess_tracepoint_registers)
11407 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
11408 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
11409 (s390_pseudo_register_name, s390_pseudo_register_type)
11410 (s390_pseudo_register_read, s390_pseudo_register_write)
11411 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
11412 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
11413 (s390_addr_bits_remove, s390_address_class_type_flags)
11414 (s390_address_class_type_flags_to_name)
11415 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
11416 (s390_function_arg_float, s390_function_arg_vector)
11417 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
11418 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
11419 (s390_frame_align, s390_register_return_value, s390_return_value)
11420 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
11421 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
11422 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
11423 (s390_trad_frame_prev_register, s390_unwind_cache)
11424 (s390_prologue_frame_unwind_cache)
11425 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
11426 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
11427 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
11428 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
11429 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
11430 (s390_frame_base_address, s390_local_base_address)
11431 (s390_frame_base, s390_gcc_target_options)
11432 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
11433 (s390_validate_reg_range, s390_tdesc_valid)
11434 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
11435 * s390-tdep.c: ...this. New file.
11437 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
11439 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
11440 (s390_process_record, s390_gdbarch_tdep_alloc)
11441 (s390_linux_init_abi_any): Use/set new hook.
11443 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
11445 * s390-linux-tdep.c (osabi.h): New include.
11446 (s390_linux_init_abi_31, s390_linux_init_abi_64)
11447 (s390_linux_init_abi_any): New functions.
11448 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
11450 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
11452 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
11453 tdesc_has_registers check
11455 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
11457 * s390-linux-tdep.c (s390_tdesc_valid): New function.
11458 (s390_validate_reg_range): New macro.
11459 (s390_gdbarch_init): Adjust.
11461 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
11463 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
11464 (s390_gdbarch_tdep_alloc): Adjust.
11465 (s390_gdbarch_init): Adjust.
11467 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
11469 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
11470 <have_tdb>: Change type to bool.
11471 (s390_gdbarch_tdep_alloc): Adjust.
11472 (s390_gdbarch_init): Adjust.
11474 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
11476 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
11477 (gdbarch_tdep) <have_upper, have_vx>: New fields.
11478 (s390_gdbarch_tdep_alloc): New function.
11479 (s390_gdbarch_init): Allocate tdep at start and use its fields
11480 instead of separate variables.
11482 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
11484 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
11485 when looking for cached gdbarch and add comment for remaining.
11487 2018-01-22 Pedro Alves <palves@redhat.com>
11488 Sergio Durigan Junior <sergiodj@redhat.com>
11490 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
11493 2018-01-22 Maciej W. Rozycki <macro@mips.com>
11495 * MAINTAINERS: Update my company e-mail address.
11497 2018-01-22 Yao Qi <yao.qi@linaro.org>
11499 * regcache.c (cooked_write_test): New function.
11500 (_initialize_regcache): Register the test.
11502 2018-01-22 Yao Qi <yao.qi@linaro.org>
11504 * ia64-tdep.c (ia64_pseudo_register_read): Call
11505 regcache->cooked_read instead of regcache_cooked_read_unsigned.
11506 * m32c-tdep.c (m32c_cat_read): Likewise.
11507 (m32c_r3r2r1r0_read): Likewise.
11508 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
11509 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
11511 2018-01-22 Yao Qi <yao.qi@linaro.org>
11513 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
11514 method raw_read instead of regcache_raw_read.
11515 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
11516 * arm-tdep.c (arm_neon_quad_read): Likewise.
11517 * avr-tdep.c (avr_pseudo_register_read): Likewise.
11518 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
11519 * frv-tdep.c (frv_pseudo_register_read): Likewise.
11520 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
11521 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
11522 (i386_pseudo_register_read_into_value): Likewise.
11523 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
11524 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
11525 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
11526 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
11527 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
11528 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
11529 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
11530 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
11531 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
11533 2018-01-22 Yao Qi <yao.qi@linaro.org>
11535 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
11536 * configure.tgt: Remove target mt.
11537 * mt-tdep.c: Remove.
11538 * regcache.c (cooked_read_test): Remove the check for mt.
11540 2018-01-22 Yao Qi <yao.qi@linaro.org>
11542 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
11543 instead of gdbarch_pseudo_register_read_value.
11545 2018-01-22 Joel Brobecker <brobecker@adacore.com>
11547 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
11550 2018-01-22 Joel Brobecker <brobecker@adacore.com>
11552 * linespec.c (create_sals_line_offset): Remove code that preserved
11553 the symtab_and_line's line number.
11555 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
11557 * varobj.c (varobj_create): Don't set valid_block when creating a
11560 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
11562 * varobj.c (varobj_create): Remove out of date comment.
11564 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
11567 * ada-exp.y (write_var_from_sym): Pass extra parameter when
11568 updating innermost block.
11569 * parse.c (innermost_block_tracker::update): Take extra type
11570 parameter, and check types match before updating innermost block.
11571 (write_dollar_variable): Update innermost block for registers.
11572 * parser-defs.h (enum innermost_block_tracker_type): New enum.
11573 (innermost_block_tracker::innermost_block_tracker): Initialise
11575 (innermost_block_tracker::reset): Take type parameter.
11576 (innermost_block_tracker::update): Take type parameter, and pass
11577 type through as needed.
11578 (innermost_block_tracker::m_types): New member.
11579 * varobj.c (varobj_create): Pass type when reseting innermost
11582 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
11584 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
11585 * ada-lang.c (resolve_subexp): Likewise.
11586 * breakpoint.c (set_breakpoint_condition) Likewise.
11587 (watch_command_1) Likewise.
11588 * c-exp.y (variable): Likewise.
11589 * d-exp.y (PrimaryExpression): Likewise.
11590 * f-exp.y (variable): Likewise.
11591 * go-exp.y (variable): Likewise.
11592 * m2-exp.y (variable): Likewise.
11593 * objfiles.c (objfile::~objfile): Likewise.
11594 * p-exp.y (variable): Likewise.
11595 * parse.c (innermost_block): Change type.
11596 * parser-defs.h (class innermost_block_tracker): New.
11597 (innermost_block): Change to innermost_block_tracker.
11598 * printcmd.c (display_command): Switch to innermost_block API.
11599 (do_one_display): Likewise.
11600 * rust-exp.y (do_one_display): Likewise.
11601 * symfile.c (clear_symtab_users): Likewise.
11602 * varobj.c (varobj_create): Switch to innermost_block API, replace
11603 use of innermost_block with block stored on varobj object.
11605 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
11607 * expression.h (innermost_block): Remove declaration.
11608 * varobj.c: Add 'parser-defs.h' include.
11610 2018-01-19 Tom Tromey <tom@tromey.com>
11612 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
11613 symbols in the static and global blocks.
11615 2018-01-19 James Clarke <jrtc27@jrtc27.com>
11617 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
11618 gdb_ptrace.h, and move including gdb_wait.h ...
11619 * nat/linux-ptrace.h: ... to here.
11621 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
11623 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
11624 inf_ptrace_detach_success.
11625 (inf_ptrace_detach_success): Add inferior parameter, use it
11626 instead of inferior_ptid, pass it to detach_inferior.
11627 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
11629 * inferior.c (detach_inferior): Add overload that takes an
11631 * inferior.h (detach_inferior): Likewise.
11632 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
11633 use inferior_ptid, adjust call to inf_ptrace_detach_success.
11634 * linux-thread-db.c (thread_db_detach): Use inf parameter.
11636 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
11638 * target.h (struct target_ops) <to_detach>: Add inferior
11640 (target_detach): Likewise.
11641 * target.c (dispose_inferior): Pass inferior down.
11642 (target_detach): Pass inferior down. Assert that it is equal to
11643 the current inferior.
11644 * aix-thread.c (aix_thread_detach): Pass inferior down.
11645 * corefile.c (core_file_command): Pass current_inferior() down.
11646 * corelow.c (core_detach): Add inferior parameter.
11647 * darwin-nat.c (darwin_detach): Likewise.
11648 * gnu-nat.c (gnu_detach): Likewise.
11649 * inf-ptrace.c (inf_ptrace_detach): Likewise.
11650 * infcmd.c (detach_command): Pass current_inferior() down to
11652 * infrun.c (follow_fork_inferior): Pass parent_inf to
11654 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
11656 * linux-nat.c (linux_nat_detach): Add inferior parameter.
11657 * linux-thread-db.c (thread_db_detach): Likewise.
11658 * nto-procfs.c (procfs_detach): Likewise.
11659 * procfs.c (procfs_detach): Likewise.
11660 * record.c (record_detach): Likewise.
11661 * record.h (struct inferior): Forward-declare.
11662 (record_detach): Add inferior parameter.
11663 * remote-sim.c (gdbsim_detach): Likewise.
11664 * remote.c (remote_detach_1): Likewise.
11665 (remote_detach): Likewise.
11666 (extended_remote_detach): Likewise.
11667 * sol-thread.c (sol_thread_detach): Likewise.
11668 * target-debug.h (target_debug_print_inferior_p): New macro.
11669 * target-delegates.c: Re-generate.
11670 * top.c (kill_or_detach): Pass inferior down to target_detach.
11671 * windows-nat.c (windows_detach): Add inferior parameter.
11673 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
11675 * target.h (struct target_ops) <to_detach>: Remove args
11677 (target_detach): Likewise.
11678 * target.c (dispose_inferior): Adjust.
11679 (target_detach): Remove args parameter, adjust.
11680 * aix-thread.c (aix_thread_detach): Adjust.
11681 * corefile.c (core_file_command): Adjust.
11682 * corelow.c (core_detach): Adjust.
11683 * darwin-nat.c (darwin_detach): Adjust.
11684 * gnu-nat.c (gnu_detach): Adjust.
11685 * inf-ptrace.c (inf_ptrace_detach): Adjust.
11686 * infcmd.c (detach_command): Adjust
11687 * infrun.c (follow_fork_inferior): Adjust.
11688 (handle_vfork_child_exec_or_exit): Adjust.
11689 * linux-fork.c (linux_fork_detach): Remove args parameter.
11690 * linux-fork.h (linux_fork_detach): Likewise.
11691 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
11692 * linux-thread-db.c (thread_db_detach): Likewise.
11693 * nto-procfs.c (procfs_detach): Likewise.
11694 * procfs.c (procfs_detach): Likewise.
11695 (do_detach): Remove signo parameter.
11696 * record.c (record_detach): Remove args parameter.
11697 * record.h (record_detach): Likewise.
11698 * remote-sim.c (gdbsim_detach): Likewise.
11699 * remote.c (remote_detach_1): Likewise.
11700 (remote_detach): Likewise.
11701 (extended_remote_detach): Likewise.
11702 * sol-thread.c (sol_thread_detach): Likewise.
11703 * target-delegates.c: Re-generate.
11704 * top.c (struct qt_args) <args>: Remove field.
11705 (kill_or_detach): Don't pass args.
11706 (quit_force): Don't set args.
11707 * windows-nat.c (windows_detach): Remove args parameter.
11709 2018-01-19 Yao Qi <yao.qi@linaro.org>
11711 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
11712 (arm_linux_init_abi): Install it.
11714 2018-01-19 Yao Qi <yao.qi@linaro.org>
11716 * osabi.c (gdb_osabi_names): Extend the regexp for
11717 arm-linux-gnueabihf.
11719 2018-01-18 Yao Qi <yao.qi@linaro.org>
11721 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
11723 (abbrev_table::add_abbrev): Update.
11724 (abbrev_table::lookup_abbrev): Update.
11726 2018-01-18 Yao Qi <yao.qi@linaro.org>
11728 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
11730 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11732 * compile/compile.c (compile_to_object): Convert "triplet_rx"
11735 2018-01-17 Tom Tromey <tom@tromey.com>
11737 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
11739 2018-01-17 Tom Tromey <tom@tromey.com>
11741 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
11742 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
11743 (create_array_type_with_stride): Update.
11744 * dwarf2read.c (set_die_type): Update.
11746 2018-01-17 Tom Tromey <tom@tromey.com>
11748 * dwarf2read.c (delayed_method_info): Remove typedef.
11749 (dwarf2_cu::method_info): Now a std::vector.
11750 (add_to_method_list): Update.
11751 (free_delayed_list): Remove.
11752 (compute_delayed_physnames): Update.
11753 (process_full_comp_unit, process_full_type_unit): Clear the method
11754 list. Remove cleanups.
11755 (psymtab_include_file_name): Add name_holder parameter. Use
11756 unique_xmalloc_ptr.
11757 (dwarf_decode_lines): Update.
11759 2018-01-17 Tom Tromey <tom@tromey.com>
11760 Simon Marchi <simon.marchi@ericsson.com>
11762 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
11763 (dwarf2_per_objfile::free_cached_comp_units)
11764 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
11765 (init_cutu_and_read_dies_no_follow): Update.
11766 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
11767 (dwarf2_cu::~dwarf2_cu): New.
11768 (free_heap_comp_unit, free_stack_comp_unit): Remove.
11769 (age_cached_comp_units, free_one_cached_comp_unit): Update.
11771 2018-01-17 Tom Tromey <tom@tromey.com>
11772 Simon Marchi <simon.marchi@ericsson.com>
11774 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
11775 (struct die_reader_specs) <abbrev_table>: New member.
11776 (struct abbrev_table): Add constructor.
11777 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
11778 <abbrev_obstack>: Now an auto_obstack.
11779 (abbrev_table_up): New typedef.
11780 (init_cu_die_reader): Add abbrev_table parameter.
11781 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
11782 Add result_dwo_abbrev_table.
11783 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
11784 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
11786 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
11788 (skip_children): Update.
11789 (abbrev_table::alloc_abbrev): Rename from
11790 abbrev_table_alloc_abbrev.
11791 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
11792 (abbrev_table::lookup_abbrev): Rename from
11793 abbrev_table_lookup_abbrev.
11794 (abbrev_table_read_table): Return abbrev_table_up.
11795 (abbrev_table_free, abbrev_table_free_cleanup)
11796 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
11797 (load_partial_dies): Update.
11799 2018-01-17 Tom Tromey <tom@tromey.com>
11801 * dwarf2read.c (dwarf2_compute_name): Update comment.
11802 (read_func_scope, read_variable): Update.
11803 (new_symbol): Remove.
11804 (new_symbol_full): Rename to new_symbol.
11806 2018-01-17 Mike Gulick <mgulick@mathworks.com>
11809 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
11810 a warning instead of throwing an error, set section size to 0 and return
11812 * gdb_bfd.h (gdb_bfd_map_section): Update description.
11814 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
11816 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
11818 (linux_ptrace_attach_fail_reason_string): Likewise.
11819 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
11821 (linux_ptrace_attach_fail_reason_string): Likewise.
11822 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
11824 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
11826 * linux-nat.c (linux_nat_attach): Remove xstrdup.
11828 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
11831 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
11832 checking for fs_base/gs_base fields in struct user_regs_struct.
11833 * configure: Regenerate.
11835 2018-01-17 Yao Qi <yao.qi@linaro.org>
11837 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
11839 (aarch64_linux_init_abi): Install it to gdbarch hook
11840 gcc_target_options.
11842 2018-01-15 Pedro Alves <palves@redhat.com>
11844 * common/signals-state-save-restore.c
11845 (save_original_signals_state): Fix typos.
11847 2017-01-12 Tom Tromey <tom@tromey.com>
11848 Sergio Durigan Junior <sergiodj@redhat.com>
11850 * Makefile.in (install-only): Install gdb-add-index.
11852 2018-01-12 John Baldwin <jhb@FreeBSD.org>
11854 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
11856 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11858 * infrun.c (keep_going_pass_signal): Clear step-over info when
11859 insert_breakpoints fails.
11861 2018-01-11 Pedro Alves <palves@redhat.com>
11864 * infrun.c (resume): Rename to ...
11865 (resume_1): ... this.
11866 (resume): Reimplement as wrapper around resume_1.
11868 2018-01-11 Pedro Alves <palves@redhat.com>
11871 * remote.c (remote_parse_stop_reply): Default to the last-set
11872 general thread instead of to 'magic_null_ptid'.
11874 2018-01-10 Pedro Alves <palves@redhat.com>
11876 * language.h (language_get_symbol_name_matcher): Rename ...
11877 (get_symbol_name_matcher): ... this.
11878 * language.c (language_get_symbol_name_matcher): Ditto.
11879 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
11882 2018-01-10 Pedro Alves <palves@redhat.com>
11886 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
11887 Adjust to use language_get_symbol_name_matcher instead of
11888 language_defn::la_get_symbol_name_matcher.
11889 * language.c (language_get_symbol_name_matcher): If in Ada mode
11890 and the lookup name is a verbatim match, return Ada's matcher.
11891 * language.h (language_get_symbol_name_matcher): Adjust comment.
11892 (ada_lookup_name_info::verbatim_p):: New method.
11894 2018-01-10 Pedro Alves <palves@redhat.com>
11897 * ada-lang.c (ada_collect_symbol_completion_matches): If the
11898 minsym's language is language_auto or language_cplus, pass down
11899 language_ada instead.
11900 * symtab.c (compare_symbol_name): Don't frob symbol language here.
11902 2018-01-10 Pedro Alves <palves@redhat.com>
11905 * minsyms.c (linkage_name_str): New function.
11906 (iterate_over_minimal_symbols): Use it.
11908 2018-01-09 John Baldwin <jhb@FreeBSD.org>
11910 * NEWS: Document that 'info proc' now works on FreeBSD.
11912 2018-01-09 John Baldwin <jhb@FreeBSD.org>
11914 * configure.ac: Check for kinfo_getfile in libutil.
11915 * configure: Regenerate.
11916 * config.in: Regenerate.
11917 * fbsd-nat.c: Include "fbsd-tdep.h".
11918 (fbsd_fetch_cmdline): New.
11919 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
11920 rather than calling error.
11921 (fbsd_info_proc): New.
11922 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
11923 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
11924 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
11926 2018-01-09 John Baldwin <jhb@FreeBSD.org>
11928 * fbsd-nat.c (struct free_deleter): Remove.
11929 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
11931 2018-01-09 John Baldwin <jhb@FreeBSD.org>
11933 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
11934 NULL for an empty pathname.
11936 2018-01-09 John Baldwin <jhb@FreeBSD.org>
11938 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
11939 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
11940 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
11941 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
11942 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
11943 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
11944 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
11945 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
11946 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
11947 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
11948 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
11949 (fbsd_core_fetch_timeval, fbsd_print_sigset)
11950 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
11951 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
11952 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
11954 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
11956 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
11957 (gnu_xfer_auxv): New function.
11958 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
11959 TARGET_OBJECT_AUXV.
11961 2018-01-08 Yao Qi <yao.qi@linaro.org>
11962 Simon Marchi <simon.marchi@ericsson.com>
11964 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
11966 (COMMON_OBS): Remove selftest.o.
11967 * configure.ac: Append selftest-arch.c and common/selftest.c to
11968 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
11969 * configure: Re-generated.
11970 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
11972 (maintenance_info_selftests): Likewise.
11974 2018-01-08 Xavier Roirand <roirand@adacore.com>
11976 * ada-valprint.c (val_print_packed_array_elements): Use
11977 proper number of elements when printing an array indexed
11978 by an enumeration type.
11980 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
11982 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
11983 (dw2_get_file_names_reader): Adjust.
11984 (lookup_dwo_signatured_type): Adjust.
11985 (lookup_dwp_signatured_type): Adjust.
11986 (lookup_signatured_type): Adjust.
11987 (create_type_unit_group): Adjust.
11988 (get_type_unit_group): Adjust.
11989 (process_psymtab_comp_unit_reader): Adjust.
11990 (build_type_psymtabs_reader): Adjust.
11991 (scan_partial_symbols): Adjust.
11992 (add_partial_symbol): Adjust.
11993 (add_partial_subprogram): Adjust.
11994 (peek_die_abbrev): Adjust.
11995 (fixup_go_packaging): Adjust.
11996 (process_imported_unit_die): Adjust.
11997 (dwarf2_compute_name): Adjust.
11998 (dwarf2_physname): Adjust.
11999 (read_import_statement): Adjust.
12000 (handle_DW_AT_stmt_list): Adjust.
12001 (read_file_scope): Adjust.
12002 (read_func_scope): Adjust.
12003 (read_lexical_block_scope): Adjust.
12004 (read_call_site_scope): Adjust.
12005 (read_variable): Adjust.
12006 (dwarf2_rnglists_process): Adjust.
12007 (dwarf2_ranges_process): Adjust.
12008 (dwarf2_ranges_read): Adjust.
12009 (dwarf2_get_pc_bounds): Adjust.
12010 (dwarf2_record_block_ranges): Adjust.
12011 (dwarf2_add_field): Adjust.
12012 (dwarf2_add_member_fn): Adjust.
12013 (read_structure_type): Adjust.
12014 (process_structure_scope): Adjust.
12015 (read_enumeration_type): Adjust.
12016 (read_array_type): Adjust.
12017 (mark_common_block_symbol_computed): Adjust.
12018 (read_common_block): Adjust.
12019 (read_namespace_type): Adjust.
12020 (read_namespace): Adjust.
12021 (read_module_type): Adjust.
12022 (read_tag_pointer_type): Adjust.
12023 (read_tag_ptr_to_member_type): Adjust.
12024 (read_tag_string_type): Adjust.
12025 (read_subroutine_type): Adjust.
12026 (read_typedef): Adjust.
12027 (read_base_type): Adjust.
12028 (attr_to_dynamic_prop): Adjust.
12029 (read_subrange_type): Adjust.
12030 (read_unspecified_type): Adjust.
12031 (dwarf2_read_abbrevs): Adjust.
12032 (load_partial_dies): Adjust.
12033 (read_partial_die): Adjust.
12034 (find_partial_die): Adjust.
12035 (guess_partial_die_structure_name): Adjust.
12036 (fixup_partial_die): Adjust.
12037 (read_attribute_value): Adjust.
12038 (read_addr_index): Adjust.
12039 (read_addr_index_from_leb128): Adjust.
12040 (read_str_index): Adjust.
12041 (dwarf2_string_attr): Adjust.
12042 (get_debug_line_section): Adjust.
12043 (dwarf_decode_line_header): Adjust.
12044 (lnp_state_machine::check_line_address): Adjust.
12045 (dwarf_decode_lines_1): Adjust.
12046 (dwarf_decode_lines): Adjust.
12047 (dwarf2_start_symtab): Adjust.
12048 (var_decode_location): Adjust.
12049 (new_symbol_full): Adjust.
12050 (dwarf2_const_value_data): Adjust.
12051 (dwarf2_const_value_attr): Adjust.
12052 (dwarf2_const_value): Adjust.
12053 (die_type): Adjust.
12054 (die_containing_type): Adjust.
12055 (build_error_marker_type): Adjust.
12056 (lookup_die_type): Adjust.
12057 (guess_full_die_structure_name): Adjust.
12058 (anonymous_struct_prefix): Adjust.
12059 (determine_prefix): Adjust.
12060 (dwarf2_name): Adjust.
12061 (follow_die_ref_or_sig): Adjust.
12062 (follow_die_offset): Adjust.
12063 (follow_die_ref): Adjust.
12064 (follow_die_sig_1): Adjust.
12065 (follow_die_sig): Adjust.
12066 (get_signatured_type): Adjust.
12067 (get_DW_AT_signature_type): Adjust.
12068 (decode_locdesc): Adjust.
12069 (dwarf_decode_macros): Adjust.
12070 (cu_debug_loc_section): Adjust.
12071 (fill_in_loclist_baton): Adjust.
12072 (dwarf2_symbol_mark_computed): Adjust.
12073 (init_one_comp_unit): Don't assign
12074 dwarf2_cu::dwarf2_per_objfile.
12075 (set_die_type): Adjust.
12077 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
12079 * dwarf2read.c (struct mapped_debug_names): Add constructor.
12080 <dwarf2_per_objfile>: New field.
12081 (dwarf2_per_objfile): Remove global.
12082 (get_dwarf2_per_objfile): New function.
12083 (set_dwarf2_per_objfile): New function.
12084 (dwarf2_build_psymtabs_hard): Change objfile parameter to
12085 dwarf2_per_objfile.
12086 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
12087 (read_abbrev_offset): Likewise.
12088 (read_indirect_string): Likewise.
12089 (read_indirect_line_string): Likewise.
12090 (read_indirect_string_at_offset): Likewise.
12091 (read_indirect_string_from_dwz): Likewise.
12092 (dwarf2_find_containing_comp_unit): Change objfile parameter to
12093 dwarf2_per_objfile.
12094 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
12095 (create_all_comp_units): Change objfile parameter to
12096 dwarf2_per_objfile.
12097 (create_all_type_units): Likewise.
12098 (process_queue): Add dwarf2_per_objfile parameter.
12099 (read_and_check_comp_unit_head): Likewise.
12100 (lookup_dwo_unit_in_dwp): Likewise.
12101 (get_dwp_file): Likewise.
12102 (process_cu_includes): Likewise.
12103 (struct free_dwo_file_cleanup_data): New struct.
12104 (dwarf2_has_info): Use get_dwarf2_per_objfile and
12105 set_dwarf2_per_objfile.
12106 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
12107 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
12108 context, adjust calls.
12109 (dw2_instantiate_symtab): Likewise.
12110 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
12111 (dw2_get_cu): Likewise.
12112 (create_cu_from_index_list): Change objfile parameter to
12113 dwarf2_per_objfile.
12114 (create_cus_from_index_list): Get dwarf2_per_objfile from
12115 context, adjust calls.
12116 (create_cus_from_index): Likewise.
12117 (create_signatured_type_table_from_index): Change objfile
12118 parameter to dwarf2_per_objfile.
12119 (create_signatured_type_table_from_debug_names): Change objfile
12120 parameter to dwarf2_per_objfile.
12121 (create_addrmap_from_index): Likewise.
12122 (create_addrmap_from_aranges): Likewise.
12123 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
12124 (dw2_setup): Remove.
12125 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
12127 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
12128 get_dwarf2_per_objfile.
12129 (dw2_forget_cached_source_info): Likewise.
12130 (dw2_map_symtabs_matching_filename): Likewise.
12131 (struct dw2_symtab_iterator) <index>: Remove.
12132 <dwarf2_per_objfile>: New field.
12133 (dw2_symtab_iter_init): Replace index parameter with
12134 dwarf2_per_objfile.
12135 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
12136 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
12137 (dw2_print_stats): Likewise.
12138 (dw2_dump): Likewise.
12139 (dw2_expand_symtabs_for_function): Likewise.
12140 (dw2_expand_all_symtabs): Likewise.
12141 (dw2_expand_symtabs_with_fullname): Likewise.
12142 (dw2_expand_marked_cus): Replace index and objfile parameters
12143 with dwarf2_per_objfile.
12144 (dw_expand_symtabs_matching_file_matcher): Add
12145 dwarf2_per_objfile parameter and adjust calls.
12146 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
12148 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
12149 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
12151 (create_cus_from_debug_names_list): Replace objfile parameter
12152 with dwarf2_per_objfile and adjust calls.
12153 (create_cus_from_debug_names): Likewise.
12154 (dwarf2_read_debug_names): Likewise.
12155 (mapped_debug_names::namei_to_name): Adjust call.
12156 (dw2_debug_names_iterator::next): Likewise.
12157 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
12158 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
12159 (dw2_debug_names_dump): Likewise.
12160 (dw2_debug_names_expand_symtabs_for_function): Likewise.
12161 (dw2_debug_names_expand_symtabs_matching): Likewise.
12162 (dwarf2_initialize_objfile): Likewise.
12163 (dwarf2_build_psymtabs): Likewise.
12164 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
12166 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
12167 (read_and_check_comp_unit_head): Likewise.
12168 (read_abbrev_offset): Likewise.
12169 (create_debug_type_hash_table): Likewise.
12170 (create_debug_types_hash_table): Likewise.
12171 (create_all_type_units): Replace objfile parameter with
12172 dwarf2_per_objfile.
12173 (add_type_unit): Add dwarf2_per_objfile parameter.
12174 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
12175 with dwarf2_per_objfile.
12176 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
12177 (lookup_dwp_signatured_type): Likewise.
12178 (lookup_signatured_type): Likewise.
12179 (read_cutu_die_from_dwo): Likewise.
12180 (init_tu_and_read_dwo_dies): Likewise.
12181 (init_cutu_and_read_dies): Likewise.
12182 (init_cutu_and_read_dies_no_follow): Likewise.
12183 (allocate_type_unit_groups_table): Add objfile parameter.
12184 (create_type_unit_group): Use dwarf2_per_objfile from cu.
12185 (get_type_unit_group): Likewise.
12186 (process_psymtab_comp_unit): Update call.
12187 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
12188 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
12189 (print_tu_stats): Likewise.
12190 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
12191 in void* parameter.
12192 (build_type_psymtabs): Change objfile parameter to
12193 dwarf2_per_objfile.
12194 (process_skeletonless_type_unit): Use dwarf2_per_objfile
12195 passed in void* parameter.
12196 (process_skeletonless_type_units): Change objfile parameter to
12197 dwarf2_per_objfile.
12198 (set_partial_user): Likewise.
12199 (dwarf2_build_psymtabs_hard): Likewise.
12200 (read_comp_units_from_section): Likewise.
12201 (create_all_comp_units): Likewise.
12202 (scan_partial_symbols): Update calls.
12203 (add_partial_symbol): Likewise.
12204 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
12205 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
12206 (process_queue): Add dwarf2_per_objfile parameter.
12207 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
12208 (compute_compunit_symtab_includes): Likewise.
12209 (process_cu_includes): Add dwarf2_per_objfile parameter.
12210 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
12211 (process_full_type_unit): Likewise.
12212 (process_imported_unit_die): Update call.
12213 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
12214 (read_file_scope): Likewise.
12215 (allocate_dwo_file_hash_table): Add objfile parameter.
12216 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
12217 (create_cus_hash_table): Likewise.
12218 (create_dwp_hash_table): Likewise.
12219 (create_dwo_unit_in_dwp_v1): Likewise.
12220 (create_dwp_v2_section): Likewise.
12221 (create_dwo_unit_in_dwp_v2): Likewise.
12222 (lookup_dwo_unit_in_dwp): Likewise.
12223 (try_open_dwop_file): Likewise.
12224 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
12225 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
12226 cleanup to include a reference to dwarf2_per_objfile.
12227 (open_dwp_file): Add dwarf2_per_objfile parameter.
12228 (open_and_init_dwp_file): Likewise.
12229 (get_dwp_file): Likewise.
12230 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
12231 (queue_and_load_all_dwo_tus): Update call.
12232 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
12234 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
12235 (dwarf2_ranges_process): Likewise.
12236 (dwarf2_get_pc_bounds): Likewise.
12237 (mark_common_block_symbol_computed): Likewise.
12238 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
12239 (dwarf2_read_abbrevs): Update call.
12240 (read_partial_die): Use dwarf2_per_objfile from cu.
12241 (find_partial_die): Likewise.
12242 (fixup_partial_die): Likewise.
12243 (read_attribute_value): Likewise.
12244 (read_indirect_string_at_offset_from): Add objfile parameter.
12245 (read_indirect_string_at_offset): Add dwarf2_per_objfile
12247 (read_indirect_string_from_dwz): Add objfile parameter.
12248 (read_indirect_string): Add objfile parameter.
12249 (read_addr_index_1): Add dwarf2_per_objfile parameter.
12250 (read_addr_index): Use dwarf2_per_objfile from cu.
12251 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
12253 (read_str_index): Use dwarf2_per_objfile from cu.
12254 (get_debug_line_section): Likewise.
12255 (read_formatted_entries): Add dwarf2_per_objfile parameter.
12256 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
12257 (new_symbol_full): Use dwarf2_per_objfile from cu.
12258 (build_error_marker_type): Likewise.
12259 (lookup_die_type): Likewise.
12260 (determine_prefix): Likewise.
12261 (follow_die_offset): Likewise.
12262 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
12263 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
12264 (dwarf2_fetch_die_type_sect_off): Likewise.
12265 (dwarf2_get_die_type): Likewise.
12266 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
12267 (get_signatured_type): Likewise.
12268 (get_DW_AT_signature_type): Likewise.
12269 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
12270 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
12271 (cu_debug_loc_section): Likewise.
12272 (fill_in_loclist_baton): Likewise.
12273 (dwarf2_symbol_mark_computed): Likewise.
12274 (dwarf2_find_containing_comp_unit): Change objfile parameter to
12275 dwarf2_per_objfile.
12276 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
12278 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
12279 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
12280 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
12281 (set_die_type): Use dwarf2_free_objfile from cu.
12282 (get_die_type_at_offset): Likewise.
12283 (dwarf2_per_objfile_free): Don't assign global variable.
12284 (debug_names) <constructor>: Add dwarf2_per_objfile
12285 parameter, update m_debugstrlookup construction.
12286 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
12288 <m_dwarf2_per_objfile>: New field.
12289 <lookup>: Use m_dwarf2_per_objfile.
12290 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
12291 (psyms_seen_size): Likewise.
12292 (write_gdbindex): Replace objfile parameter with
12293 dwarf2_per_objfile.
12294 (write_debug_names): Likewise.
12295 (write_psymtabs_to_index): Likewise.
12296 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
12299 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
12301 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
12302 <dwarf2_per_objfile>: New field.
12303 (struct dwarf2_per_cu_data) <objfile>: Remove.
12304 <dwarf2_per_objfile>: New field.
12305 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
12307 (create_signatured_type_table_from_index): Likewise.
12308 (create_debug_type_hash_table): Likewise.
12309 (fill_in_sig_entry_from_dwo_entry): Likewise.
12310 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
12311 (create_type_unit_group): Assign dwarf2_per_objfile instead of
12313 (create_partial_symtab): Access objfile through
12314 dwarf2_per_objfile.
12315 (process_psymtab_comp_unit_reader): Likewise.
12316 (read_comp_units_from_section): Likewise.
12317 (scan_partial_symbols): Likewise.
12318 (add_partial_symbol): Likewise.
12319 (add_partial_subprogram): Likewise.
12320 (peek_die_abbrev): Likewise.
12321 (fixup_go_packaging): Likewise.
12322 (process_full_comp_unit): Likewise.
12323 (process_full_type_unit): Likewise.
12324 (process_imported_unit_die): Likewise.
12325 (dwarf2_compute_name): Likewise.
12326 (dwarf2_physname): Likewise.
12327 (read_import_statement): Likewise.
12328 (create_cus_hash_table): Assign dwarf2_physname instead of
12330 (read_func_scope): Access objfile through dwarf2_per_objfile.
12331 (read_lexical_block_scope): Likewise.
12332 (read_call_site_scope): Likewise.
12333 (read_variable): Likewise.
12334 (dwarf2_rnglists_process): Likewise.
12335 (dwarf2_ranges_process): Likewise.
12336 (dwarf2_ranges_read): Likewise.
12337 (dwarf2_record_block_ranges): Likewise.
12338 (dwarf2_add_field): Likewise.
12339 (dwarf2_add_member_fn): Likewise.
12340 (read_structure_type): Likewise.
12341 (process_structure_scope): Likewise.
12342 (read_enumeration_type): Likewise.
12343 (read_array_type): Likewise.
12344 (read_common_block): Likewise.
12345 (read_namespace_type): Likewise.
12346 (read_namespace): Likewise.
12347 (read_module_type): Likewise.
12348 (read_tag_pointer_type): Likewise.
12349 (read_tag_ptr_to_member_type): Likewise.
12350 (read_tag_string_type): Likewise.
12351 (read_subroutine_type): Likewise.
12352 (read_typedef): Likewise.
12353 (read_base_type): Likewise.
12354 (attr_to_dynamic_prop): Likewise.
12355 (read_subrange_type): Likewise.
12356 (read_unspecified_type): Likewise.
12357 (load_partial_dies): Likewise.
12358 (read_partial_die): Likewise.
12359 (find_partial_die): Likewise.
12360 (guess_partial_die_structure_name): Likewise.
12361 (fixup_partial_die): Likewise.
12362 (read_attribute_value): Likewise.
12363 (read_addr_index_from_leb128): Likewise.
12364 (dwarf2_read_addr_index): Likewise.
12365 (dwarf2_string_attr): Likewise.
12366 (lnp_state_machine::check_line_address): Likewise.
12367 (dwarf_decode_lines_1): Likewise.
12368 (dwarf_decode_lines): Likewise.
12369 (dwarf2_start_symtab): Likewise.
12370 (var_decode_location): Likewise.
12371 (new_symbol_full): Likewise.
12372 (dwarf2_const_value_data): Likewise.
12373 (dwarf2_const_value_attr): Likewise.
12374 (dwarf2_const_value): Likewise.
12375 (die_type): Likewise.
12376 (die_containing_type): Likewise.
12377 (lookup_die_type): Likewise.
12378 (guess_full_die_structure_name): Likewise.
12379 (anonymous_struct_prefix): Likewise.
12380 (dwarf2_name): Likewise.
12381 (follow_die_ref_or_sig): Likewise.
12382 (follow_die_offset): Likewise.
12383 (follow_die_ref): Likewise.
12384 (dwarf2_fetch_die_loc_sect_off): Likewise.
12385 (dwarf2_fetch_constant_bytes): Likewise.
12386 (dwarf2_fetch_die_type_sect_off): Likewise.
12387 (dwarf2_get_die_type): Likewise.
12388 (follow_die_sig): Likewise.
12389 (decode_locdesc): Likewise.
12390 (dwarf2_per_cu_objfile): Likewise.
12391 (dwarf2_per_cu_text_offset): Likewise.
12392 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
12394 (set_die_type): Access objfile through
12395 dwarf2_per_objfile.
12397 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
12399 * valprint.c (converted_character_d): Remove typedef.
12400 (DEF_VEC_O (converted_character_d)): Remove.
12401 (count_next_character): Use std::vector.
12402 (print_converted_chars_to_obstack): Likewise.
12403 (generic_printstr): Likewise.
12405 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
12407 * xml-support.h (struct gdb_xml_value): Add constructor.
12408 <value>: Change type to unique_xmalloc_ptr.
12409 (gdb_xml_value_s): Remove typedef.
12410 (DEF_VEC_O (gdb_xml_value_s)): Remove.
12411 (gdb_xml_element_start_handler): Change parameter type to
12413 (xml_find_attribute): Likewise.
12414 * xml-support.c (xml_find_attribute): Change parameter type to
12415 std::vector and adjust.
12416 (gdb_xml_values_cleanup): Remove.
12417 (gdb_xml_parser::start_element): Adjust to std::vector.
12418 (xinclude_start_include): Change paraeter type to std::vector
12420 * btrace.c (check_xml_btrace_version): Likewise.
12421 (parse_xml_btrace_block): Likewise.
12422 (parse_xml_btrace_pt_config_cpu): Likewise.
12423 (parse_xml_btrace_pt): Likewise.
12424 (parse_xml_btrace_conf_bts): Likewise.
12425 (parse_xml_btrace_conf_pt): Likewise.
12426 * memory-map.c (memory_map_start_memory): Likewise.
12427 (memory_map_start_property): Likewise.
12428 * osdata.c (osdata_start_osdata): Likewise.
12429 (osdata_start_item): Likewise.
12430 (osdata_start_column): Likewise.
12431 * remote.c (start_thread): Likewise.
12432 * solib-aix.c (library_list_start_library): Likewise.
12433 (library_list_start_list): Likewise.
12434 * solib-svr4.c (library_list_start_library): Likewise.
12435 (svr4_library_list_start_list): Likewise.
12436 * solib-target.c (library_list_start_segment): Likewise.
12437 (library_list_start_section): Likewise.
12438 (library_list_start_library): Likewise.
12439 (library_list_start_list): Likewise.
12440 * tracepoint.c (traceframe_info_start_memory): Likewise.
12441 (traceframe_info_start_tvar): Likewise.
12442 * xml-syscall.c (syscall_start_syscall): Likewise.
12443 * xml-tdesc.c (tdesc_start_target): Likewise.
12444 (tdesc_start_feature): Likewise.
12445 (tdesc_start_reg): Likewise.
12446 (tdesc_start_union): Likewise.
12447 (tdesc_start_struct): Likewise.
12448 (tdesc_start_flags): Likewise.
12449 (tdesc_start_enum): Likewise.
12450 (tdesc_start_field): Likewise.
12451 (tdesc_start_enum_value): Likewise.
12452 (tdesc_start_vector): Likewise.
12454 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
12456 * extension.h (struct xmethod_worker) <clone>: Remove.
12457 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
12459 (python_xmethod_worker::clone): Remove.
12460 * valops.c (find_overload_match): Use std::move instead of
12463 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
12465 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
12466 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
12467 <free_xmethod_worker_data>: Remove.
12468 <get_matching_xmethod_workers>: Chance VEC to std::vector.
12469 <get_xmethod_arg_types>: Remove.
12470 <get_xmethod_result_type>: Remove.
12471 <invoke_xmethod>: Remove.
12472 * extension.c (new_xmethod_worker): Remove.
12473 (clone_xmethod_worker): Remove.
12474 (get_matching_xmethod_workers): Return void, pass std::vector by
12476 (get_xmethod_arg_types): Rename to...
12477 (xmethod_worker::get_arg_types): ... this, and adjust.
12478 (get_xmethod_result_type): Rename to...
12479 (xmethod_worker::get_result_type): ... this, and adjust.
12480 (invoke_xmethod): Remove.
12481 (free_xmethod_worker): Remove.
12482 (free_xmethod_worker_vec): Remove.
12483 * extension.h (enum ext_lang_rc): Move here from
12485 (struct xmethod_worker): Add constructor and destructor.
12488 <invoke, clone, do_get_result_type, do_get_arg_types>: New
12489 virtual pure methods.
12490 <get_arg_types, get_result_type>: New methods.
12491 (xmethod_worker_ptr): Remove typedef.
12492 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
12493 (xmethod_worker_vec): Remove typedef.
12494 (xmethod_worker_up): New typedef.
12495 (invoke_xmethod): Remove.
12496 (clone_xmethod_worker): Remove.
12497 (free_xmethod_worker): Remove.
12498 (free_xmethod_worker_vec): Remove.
12499 (get_xmethod_arg_types): Remove.
12500 (get_xmethod_result_type): Remove.
12501 * valops.c (find_method_list): Use std::vector, don't use
12502 intermediate vector.
12503 (value_find_oload_method_list): Use std::vector.
12504 (find_overload_match): Use std::vector.
12505 (find_oload_champ): Use std::vector.
12506 * value.c (value_free): Use operator delete.
12507 (value_of_xmethod): Rename to...
12508 (value_from_xmethod): ... this. Don't assign
12509 xmethod_worker::value, take rvalue-reference.
12510 (result_type_of_xmethod): Adjust.
12511 (call_xmethod): Adjust.
12512 * value.h: Include extension.h.
12513 (struct xmethod_worker): Don't forward-declare.
12514 (value_of_xmethod): Rename to...
12515 (value_from_xmethod): ... this, take rvalue-reference.
12516 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
12517 (struct python_xmethod_worker): ... this, add constructor and
12519 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
12520 (gdbpy_free_xmethod_worker_data): Rename to...
12521 (python_xmethod_worker::~python_xmethod_worker): ... this and
12523 (gdbpy_clone_xmethod_worker_data): Rename to...
12524 (python_xmethod_worker::clone): ... this and adjust.
12525 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
12527 (gdbpy_get_xmethod_arg_types): Rename to...
12528 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
12529 (gdbpy_get_xmethod_result_type): Rename to...
12530 (python_xmethod_worker::do_get_result_type): ... this and
12532 (gdbpy_invoke_xmethod): Rename to...
12533 (python_xmethod_worker::invoke): ... this and adjust.
12534 (new_python_xmethod_worker): Rename to...
12535 (python_xmethod_worker::python_xmethod_worker): ... this and
12537 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
12539 (gdbpy_free_xmethod_worker_data): Remove.
12540 (gdbpy_get_matching_xmethod_workers): Use std::vector.
12541 (gdbpy_get_xmethod_arg_types): Remove.
12542 (gdbpy_get_xmethod_result_type): Remove.
12543 (gdbpy_invoke_xmethod): Remove.
12544 * python/python.c (python_extension_ops): Remove obsolete
12547 2018-01-05 Pedro Alves <palves@redhat.com>
12550 * common/signals-state-save-restore.c
12551 (save_original_signals_state): New parameter 'quiet'. Warn if we
12552 find a custom handler preinstalled, instead of internal erroring.
12553 But only warn if !quiet.
12554 * common/signals-state-save-restore.h
12555 (save_original_signals_state): New parameter 'quiet'.
12556 * main.c (captured_main_1): Move save_original_signals_state call
12557 after option handling, and pass QUIET.
12559 2018-01-05 Pedro Alves <palves@redhat.com>
12561 * spu-tdep.c (spu_catch_start): Pass
12562 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
12564 2018-01-05 Pedro Alves <palves@redhat.com>
12567 * ada-lang.c (literal_symbol_name_matcher): New function.
12568 (ada_get_symbol_name_matcher): Use it for
12569 symbol_name_match_type::SEARCH_NAME.
12570 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
12571 it down instead of assuming symbol_name_match_type::FULL.
12572 * block.h (block_lookup_symbol): New parameter 'match_type'.
12573 * c-valprint.c (print_unpacked_pointer): Use
12574 lookup_symbol_search_name instead of lookup_symbol.
12575 * compile/compile-object-load.c (get_out_value_type): Pass down
12576 symbol_name_match_type::SEARCH_NAME.
12577 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
12578 symbol_name_match_type::FULL.
12579 * cp-support.c (cp_get_symbol_name_matcher): Handle
12580 symbol_name_match_type::SEARCH_NAME.
12581 * infrun.c (insert_exception_resume_breakpoint): Use
12582 lookup_symbol_search_name.
12583 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
12584 * psymtab.c (maintenance_check_psymtabs): Use
12585 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
12586 * stack.c (print_frame_args): Use lookup_symbol_search_name and
12587 SYMBOL_SEARCH_NAME.
12588 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
12589 if symbol_name_match_type::SEARCH_NAME.
12590 (lookup_symbol_in_language): Pass down
12591 symbol_name_match_type::FULL.
12592 (lookup_symbol_search_name): New.
12593 (lookup_language_this): Pass down
12594 symbol_name_match_type::SEARCH_NAME.
12595 (lookup_symbol_aux, lookup_local_symbol): New parameter
12596 'match_type'. Pass it down.
12597 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
12598 (lookup_symbol_search_name): New declaration.
12599 (lookup_symbol_in_block): New 'match_type' parameter.
12601 2018-01-05 Pedro Alves <palves@redhat.com>
12604 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
12606 (ada_lookup_symbol): Reimplement in terms of
12607 ada_lookup_symbol_list, bits factored out from
12608 ada_lookup_encoded_symbol.
12610 2018-01-05 Joel Brobecker <brobecker@adacore.com>
12612 * ada-exp.y (write_object_renaming): When subscripting an array
12613 using a symbol as the index, pass the block in call to
12614 ada_lookup_encoded_symbol when looking that symbol up.
12616 2018-01-05 Jerome Guitton <guitton@adacore.com>
12618 * ada-lang.c (ada_array_length): Use ada_index_type instead of
12621 2018-01-05 Joel Brobecker <brobecker@adacore.com>
12623 * ada-lang.c (ada_to_fixed_value_create): Add handling of
12624 the case where VALUE_LVAL (val0) is not lval_memory.
12626 2018-01-05 Xavier Roirand <roirand@adacore.com>
12628 * ada-valprint.c (print_optional_low_bound): Handle
12629 character-indexed array printing like boolean-indexed array
12632 2018-01-05 Joel Brobecker <brobecker@adacore.com>
12634 * NEWS: Create a new section for the next release branch.
12635 Rename the section of the current branch, now that it has
12638 2018-01-05 Joel Brobecker <brobecker@adacore.com>
12640 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
12641 * version.in: Bump version to 8.1.50.DATE-git.
12643 2018-01-03 Xavier Roirand <roirand@adacore.com>
12645 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
12647 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
12649 (default_exception_support_info) <catch_handlers_sym>: Add field.
12650 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
12651 (ada_exception_name_addr_1): Add "catch handlers" handling.
12652 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
12653 Update all callers.
12654 (create_excep_cond_exprs) <ex>: Add parameter.
12655 (re_set_exception): Update create_excep_cond_exprs call.
12656 (print_it_exception, print_one_exception, print_mention_exception)
12657 (print_recreate_exception): Add "catch handler" handling.
12658 (allocate_location_catch_handlers, re_set_catch_handlers)
12659 (check_status_catch_handlers, print_it_catch_handlers)
12660 (print_one_catch_handlers, print_mention_catch_handlers)
12661 (print_recreate_catch_handlers): New function.
12662 (catch_handlers_breakpoint_ops): New variable.
12663 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
12664 Add parameter. Add "catch handler" handling.
12665 (ada_exception_sym_name, ada_exception_breakpoint_ops):
12666 Add "catch handler" handling.
12667 (ada_exception_catchpoint_cond_string): Add "catch handler"
12669 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
12671 (catch_ada_handlers_command): New function.
12672 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
12673 operations structure.
12674 (_initialize_ada_language): Add "catch handlers" command entry.
12675 * NEWS: Document "catch handlers" feature.
12677 2018-01-02 Joel Brobecker <brobecker@adacore.com>
12679 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
12680 account when creating the array type of the slice.
12681 (ada_value_slice): Likewise.
12683 2018-01-02 Joel Brobecker <brobecker@adacore.com>
12685 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
12687 (create_array_type_with_stride): Add byte_stride_prop parameter.
12688 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
12689 New parameter. Update all callers in this file.
12690 (array_type_has_dynamic_stride): New function.
12691 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
12692 of arrays with dynamic byte strides.
12693 * dwarf2read.c (read_array_type): Add support for dynamic
12694 DW_AT_byte_stride attributes.
12696 2018-01-02 Joel Brobecker <brobecker@adacore.com>
12698 * dwarf2read.c (read_unspecified_type): Treat
12699 DW_TAG_enumeration_type DIEs from Ada units as stubs.
12701 2018-01-01 Joel Brobecker <brobecker@adacore.com>
12703 Update copyright year range in all GDB files.
12705 2018-01-01 Joel Brobecker <brobecker@adacore.com>
12707 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
12708 and gdb/testsuite/gdb.base/step-line.c.
12710 2018-01-01 Joel Brobecker <brobecker@adacore.com>
12712 * copyright.py (main): Dump the contents of
12713 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
12714 even if BY_HAND is empty.
12716 2018-01-01 Joel Brobecker <brobecker@adacore.com>
12718 * top.c (print_gdb_version): Update Copyright year in version
12721 2018-01-01 Joel Brobecker <brobecker@adacore.com>
12723 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
12725 For older changes see ChangeLog-2017.
12731 version-control: never