Add a new 'info proc files' subcommand of 'info proc'.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2018-09-18 John Baldwin <jhb@FreeBSD.org>
2
3 * defs.h (enum info_proc_what) [IP_FILES]: New value.
4 * infcmd.c (info_proc_cmd_files): New function.
5 (_initialize_infcmd): Register 'info proc files' command.
6
7 2018-09-18 John Baldwin <jhb@FreeBSD.org>
8
9 * gnulib/aclocal-m4-deps.mk: Re-generate.
10 * gnulib/aclocal.m4: Re-generate.
11 * gnulib/config.in: Re-generate.
12 * gnulib/configure: Re-generate.
13 * gnulib/import/Makefile.am: Re-generate.
14 * gnulib/import/Makefile.in: Re-generate.
15 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
16 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
17 * gnulib/import/arpa_inet.in.h: New file.
18 * gnulib/import/inet_ntop.c: New file.
19 * gnulib/import/m4/arpa_inet_h.m4: New file.
20 * gnulib/import/m4/inet_ntop.m4: New file.
21 * gnulib/import/m4/netinet_in_h.m4: New file.
22 * gnulib/import/m4/socklen.m4: New file.
23 * gnulib/import/m4/sockpfaf.m4: New file.
24 * gnulib/import/m4/stdalign.m4: New file.
25 * gnulib/import/m4/sys_uio_h.m4: New file.
26 * gnulib/import/netinet_in.in.h: New file.
27 * gnulib/import/stdalign.in.h: New file.
28 * gnulib/import/sys_socket.c: New file.
29 * gnulib/import/sys_socket.in.h: New file.
30 * gnulib/import/sys_uio.in.h: New file.
31 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add inet_ntop
32 module.
33
34 2018-09-18 John Baldwin <jhb@FreeBSD.org>
35
36 * gnulib/aclocal-m4-deps.mk: New file.
37 * gnulib/update-gnulib.sh: Generate "aclocal-m4-deps.mk"
38 deterministically.
39
40 2018-09-18 John Baldwin <jhb@FreeBSD.org>
41
42 * fbsd-tdep.c (fbsd_core_vnode_path): Use KF_PATH instead of
43 KVE_PATH.
44
45 2018-09-18 Tom Tromey <tom@tromey.com>
46
47 * compile/compile-object-load.c (struct
48 link_hash_table_cleanup_data): Add constructor and destructor.
49 Use DISABLE_COPY_AND_ASSIGN.
50 (~link_hash_table_cleanup_data): Rename from
51 link_hash_table_free. Now a destructor.
52 (copy_sections): Use gdb::unique_xmalloc_ptr. Remove cleanups.
53
54 2018-09-18 Tom Tromey <tom@tromey.com>
55
56 * compile/compile-object-run.c (do_module_cleanup): Use delete.
57 * compile/compile-object-load.c (struct munmap_list): Move to
58 header file.
59 (munmap_list::add): Rename from munmap_list_add; rewrite.
60 (munmap_list::~munmap_list): Rename from munmap_list_free.
61 (munmap_listp_free_cleanup): Remove.
62 (compile_object_load): Update.
63 * compile/compile-object-load.h (struct munmap_list): Move from
64 compile-object-load.c. Rewrite.
65
66 2018-09-18 Alan Hayward <alan.hayward@arm.com>
67
68 * aarch64-tdep.c (pass_in_v): Use register size.
69 (aarch64_extract_return_value): Likewise.
70 (aarch64_store_return_value): Likewise.
71
72 2018-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
73
74 * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to
75 rlim_t.
76
77 2018-09-17 Philippe Waroquiers <philippe.waroquiers@skynet.be>
78
79 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter):
80 Fix short help line.
81
82 2018-09-17 Tom Tromey <tom@tromey.com>
83
84 PR python/20445:
85 * configure: Rebuild.
86 * configure.ac: Conditionally use -DNDEBUG for Python.
87
88 2018-09-17 Tom Tromey <tom@tromey.com>
89
90 * configure: Rebuild.
91 * configure.ac: Use gmp as a library dependency when checking for
92 mpfr.
93
94 2018-09-17 Pedro Alves <palves@redhat.com>
95
96 * python/py-inferior.c (find_inferior_object): Delete.
97
98 2018-09-17 Simon Marchi <simon.marchi@ericsson.com>
99
100 * compile/compile-cplus-types.c
101 (compile_cplus_instance::enter_scope): Don't use new_scope after
102 std::move.
103
104 2018-09-17 Tom Tromey <tom@tromey.com>
105
106 * common/pathstuff.c (get_standard_cache_dir): Use
107 ~/Library/Caches on macOS.
108 * common/pathstuff.h (get_standard_cache_dir): Update comment.
109
110 2018-09-17 Simon Marchi <simon.marchi@polymtl.ca>
111
112 PR python/23669
113 * breakpoint.c (commands_cmd_element): New.
114 (_initialize_breakpoint): Assign commands_cmd_element.
115 * breakpoint.h (commands_cmd_element): New.
116 * cli/cli-script.c (while_cmd_element, if_command,
117 define_cmd_element): New.
118 (command_name_equals): Remove.
119 (process_next_line): Compare commands by pointer, not by name.
120 (_initialize_cli_script): Assign the various cmd_list_element
121 variables.
122 * compile/compile.c (compile_cmd_element): New.
123 (_initialize_compile): Assign compile_cmd_element.
124 * compile/compile.h (compile_cmd_element): New.
125 * guile/guile.c (guile_cmd_element): New.
126 (install_gdb_commands): Assign guile_cmd_element.
127 * guile/guile.h (guile_cmd_element): New.
128 * python/python.c (python_cmd_element): New.
129 (_initialize_python): Assign python_cmd_element.
130 * python/python.h (python_cmd_element): New.
131 * tracepoint.c (while_stepping_cmd_element): New.
132 (_initialize_tracepoint): Assign while_stepping_cmd_element.
133 * tracepoint.h (while_stepping_cmd_element): New.
134
135 2018-09-17 Tom Tromey <tom@tromey.com>
136
137 * infrun.c (save_infcall_suspend_state): Return
138 infcall_suspend_state_up.
139 (save_infcall_control_state): Return infcall_control_state_up.
140 * inferior.h (save_infcall_suspend_state)
141 (save_infcall_control_state): Declare later. Return unique
142 pointers.
143
144 2018-09-17 Tom Tromey <tom@tromey.com>
145
146 * infrun.c (struct stop_context): Declare constructor,
147 destructor, "changed" method.
148 (stop_context::stop_context): Rename from save_stop_context.
149 (stop_context::~stop_context): Rename from
150 release_stop_context_cleanup.
151 (normal_stop): Update.
152 (stop_context::changed): Rename from stop_context_changed. Return
153 bool.
154
155 2018-09-17 Tom Tromey <tom@tromey.com>
156
157 * inferior.h (struct infcall_suspend_state_deleter): New.
158 (infcall_suspend_state_up): New typedef.
159 (struct infcall_control_state_deleter): New.
160 (infcall_control_state_up): New typedef.
161 (make_cleanup_restore_infcall_suspend_state)
162 (make_cleanup_restore_infcall_control_state): Don't declare.
163 * infcall.c (call_function_by_hand_dummy): Update.
164 * infrun.c (do_restore_infcall_suspend_state_cleanup)
165 (make_cleanup_restore_infcall_suspend_state): Remove.
166 (do_restore_infcall_control_state_cleanup)
167 (make_cleanup_restore_infcall_control_state): Remove.
168
169 2018-09-17 Tom Tromey <tom@tromey.com>
170
171 * gdbthread.h (struct thread_control_state): Add initializer.
172 (class thread_info) <control>: Remove initializer.
173 * inferior.h (struct inferior_control_state): Add initializer.
174 (class inferior) <control>: Remove initializer.
175 (exit_inferior_1): Update.
176 * infrun.c (struct infcall_control_state): Add constructors.
177 (save_infcall_control_state): Use new.
178 (restore_infcall_control_state, discard_infcall_control_state):
179 Use delete.
180
181 2018-09-17 Tom Tromey <tom@tromey.com>
182
183 * infrun.c (struct infcall_suspend_state) <registers>: Now a
184 unique_ptr.
185 <siginfo_data>: Now a unique_xmalloc_ptr.
186 (save_infcall_suspend_state, restore_infcall_suspend_state)
187 (discard_infcall_suspend_state)
188 (get_infcall_suspend_state_regcache): Update.
189
190 2018-09-17 Tom Tromey <tom@tromey.com>
191
192 * gdbthread.h (struct thread_suspend_state): Add initializers.
193 (class thread_info) <suspend>: Remove initializer.
194 * infrun.c (struct infcall_suspend_state): Add initializers.
195 (save_infcall_suspend_state): Use new.
196 (discard_infcall_suspend_state): Use delete.
197
198 2018-09-16 Tom Tromey <tom@tromey.com>
199
200 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
201 Remove.
202 * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to
203 rvalue reference. Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG.
204 (py_varobj_iter_new): Likewise.
205 (py_varobj_get_iterator): Use gdbpy_ref.
206
207 2018-09-16 Tom Tromey <tom@tromey.com>
208
209 * python/py-threadevent.c (py_get_event_thread): Simplify.
210 * python/py-inferior.c (infpy_thread_from_thread_handle):
211 Return immediately after calling thread_to_thread_object. Use
212 Py_RETURN_NONE.
213 (thread_to_thread_object): Set the exception on a NULL return.
214
215 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
216
217 * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS.
218
219 2018-09-16 Tom Tromey <tom@tromey.com>
220
221 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
222 Remove.
223
224 2018-09-16 Tom Tromey <tom@tromey.com>
225
226 * python/python-internal.h (thread_to_thread_object): Change
227 return type.
228 * python/py-inferior.c (thread_to_thread_object): Return a new
229 reference.
230 (infpy_thread_from_thread_handle): Update.
231 * python/py-infthread.c (gdbpy_selected_thread): Update.
232 * python/py-stopevent.c (create_stop_event_object): Update.
233 * python/py-threadevent.c (py_get_event_thread): Return a new
234 reference.
235 (py_get_event_thread): Update.
236 * python/py-event.h (py_get_event_thread): Change return type.
237 * python/py-continueevent.c (create_continue_event_object):
238 Update.
239
240 2018-09-16 Tom Tromey <tom@tromey.com>
241
242 * python/py-progspace.c (pspy_get_objfiles): Update.
243 * python/python-internal.h (objfile_to_objfile_object): Change
244 return type.
245 * python/py-newobjfileevent.c (create_new_objfile_event_object):
246 Update.
247 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
248 Update.
249 * python/python.c (gdbpy_get_current_objfile): Update.
250 (gdbpy_objfiles): Update.
251 * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile):
252 Update.
253 (objfile_to_objfile_object): Return a new reference.
254 * python/py-symtab.c (stpy_get_objfile): Update.
255 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
256 Update.
257
258 2018-09-16 Tom Tromey <tom@tromey.com>
259
260 * python/py-inferior.c (infpy_get_progspace): Update.
261 * python/python-internal.h (pspace_to_pspace_object): Change
262 return type.
263 * python/py-newobjfileevent.c
264 (create_clear_objfiles_event_object): Update.
265 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
266 Update.
267 * python/python.c (gdbpy_get_current_progspace): Update.
268 (gdbpy_progspaces): Update.
269 * python/py-progspace.c (pspace_to_pspace_object): Return a new
270 reference.
271 * python/py-objfile.c (objfpy_get_progspace): Update.
272 * python/py-prettyprint.c (find_pretty_printer_from_progspace):
273 Update.
274
275 2018-09-16 Tom Tromey <tom@tromey.com>
276
277 * python/lib/gdb/__init__.py (current_progspace, objfiles)
278 (solib_name, block_for_pc, find_pc_line): New functions.
279 (execute_unwinders): Update.
280 * python/py-block.c (gdbpy_block_for_pc): Remove.
281 * python/py-inferior.c (infpy_get_progspace): New function.
282 (inferior_object_getset) <progspace>: Add.
283 * python/py-progspace.c (pspy_objfiles): Rewrite.
284 (pspy_solib_name, pspy_block_for_pc)
285 (pspy_find_pc_line, pspy_is_valid): New functions.
286 (progspace_object_methods): Add entries for solib_name,
287 block_for_pc, find_pc_line, is_valid.
288 * python/python-internal.h (gdbpy_block_for_pc)
289 (build_objfiles_list): Don't declare.
290 * python/python.c: Don't include solib.h.
291 (gdbpy_solib_name, gdbpy_find_pc_line)
292 (gdbpy_get_current_progspace, build_objfiles_list)
293 (gdbpy_objfiles): Remove.
294 (GdbMethods) <current_progspace, objfiles, block_for_pc,
295 solib_name, find_pc_line>: Remove entries.
296
297 2018-09-16 Tom Tromey <tom@tromey.com>
298
299 * top.c (new_ui_command): Use GNU style for metasyntactic
300 variables.
301 * breakpoint.c (stopat_command): Use GNU style for metasyntactic
302 variables.
303 * maint.c (maintenance_translate_address): Remove "<>" around
304 text.
305 * interps.c (interpreter_exec_cmd): Use GNU style for
306 metasyntactic variables.
307 * nto-procfs.c (nto_procfs_target_info): Use GNU style for
308 metasyntactic variables.
309 * tracepoint.c (tfind_range_command): Use GNU style for
310 metasyntactic variables.
311 (tfind_outside_command): Likewise.
312 (_initialize_tracepoint): Likewise.
313 * remote.c (extended_remote_target::create_inferior): Use GNU
314 style for metasyntactic variables.
315 * sparc64-tdep.c (adi_examine_command): Use GNU style for
316 metasyntactic variables.
317 (adi_assign_command): Likewise.
318
319 2018-09-16 Tom Tromey <tom@tromey.com>
320
321 * disasm.c (show_disassembler_options_sfunc): Use GNU style for
322 metasyntactic variables. Print message if no disassembler options
323 are available.
324
325 2018-09-15 Tom Tromey <tom@tromey.com>
326
327 * infcmd.c (get_inferior_args): Return const char *.
328 * inferior.h (get_inferior_args): Return type now const.
329 * linux-tdep.c (linux_fill_prpsinfo): Update.
330 * procfs.c (procfs_target::make_corefile_notes): Update.
331
332 2018-09-07 Tom Tromey <tom@tromey.com>
333
334 * python/python.c (execute_gdb_command): Call bpstat_do_actions
335 inside the TRY.
336
337 2018-09-14 Sandra Loosemore <sandra@codesourcery.com>
338
339 * nios2-tdep.c (nios2_type_align): New.
340 (nios2_gdb_arch_init): Install type_align hook.
341
342 2018-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
343
344 * eval.c (fake_method::fake_method): Call xzalloc directly for a
345 type that is neither object file owned, nor gdbarch owned.
346 * gdbtypes.c (get_type_gdbarch): Add an assert that returned
347 gdbarch is non-NULL.
348 (alloc_type_instance): Allocate non-objfile owned types on the
349 gdbarch obstack.
350 (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA
351 using TYPE_ALLOC to ensure memory is allocated on the correct
352 obstack.
353 * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile
354 obstack, or the gdbarch obstack.
355 (TYPE_ZALLOC): Rewrite using TYPE_ALLOC.
356
357 2018-09-14 Tom Tromey <tom@tromey.com>
358
359 * infcall.c (call_function_by_hand_dummy): Remove unnecessary
360 block.
361
362 2018-09-14 Tom Tromey <tom@tromey.com>
363
364 * nat/fork-inferior.c (get_startup_shell): Remove "static".
365
366 2018-09-13 Tom Tromey <tom@tromey.com>
367
368 * python/py-inferior.c (infpy_thread_from_thread_handle): Now
369 static.
370
371 2018-09-13 Tom Tromey <tom@tromey.com>
372
373 * exec.c (try_open_exec_file): Use std::string.
374
375 2018-09-13 Tom Tromey <tom@tromey.com>
376
377 * utils.h (gdb_bfd_errmsg): Return std::string.
378 * exec.c (exec_file_attach): Update.
379 * compile/compile-object-load.c (compile_object_load): Update.
380 * utils.c (gdb_bfd_errmsg): Return std::string.
381
382 2018-09-13 Tom Tromey <tom@tromey.com>
383
384 * procfs.c (struct procinfo_deleter): New.
385 (procinfo_up): New typedef.
386 (do_destroy_procinfo_cleanup): Remove.
387 (procfs_target::info_proc): Use procinfo_up. Remove cleanups.
388
389 2018-09-13 Tom Tromey <tom@tromey.com>
390
391 * source.c (add_path): Use gdb::unique_xmalloc_ptr.
392
393 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
394 2018-09-13 Tom Tromey <tom@tromey.com>
395
396 * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro.
397 (pspy_get_objfiles): New function.
398 (progspace_object_methods): New.
399 (pspace_object_type): Add tp_methods callback.
400 * python/python-internal.h (build_objfiles_list): New
401 declaration.
402 * python/python.c (build_objfiles_list): New function.
403 (gdbpy_objfiles): Implement using build_objfiles_list.
404 * NEWS: Mention the Progspace.objfiles method.
405
406 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
407
408 * python/py-inferior.c (infpy_get_progspace): New function.
409 (inferior_object_getset): Add progspace property.
410 * NEWS: Mention the new property.
411
412 2018-09-13 Tom Tromey <tom@tromey.com>
413
414 PR rust/23650:
415 * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
416
417 2018-09-13 Tom Tromey <tom@tromey.com>
418
419 PR rust/23626:
420 * rust-lang.c (rust_enum_variant): Now static.
421 (rust_empty_enum_p): New function.
422 (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
423 Handle empty enum.
424
425 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
426
427 * python/py-inferior.c (infpy_repr): New.
428 (inferior_object_type): Register infpy_repr.
429 * python/py-objfile.c (objfpy_repr): New.
430 (objfile_object_type): Register objfpy_repr.
431
432 2018-09-12 John Baldwin <jhb@FreeBSD.org>
433
434 * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
435
436 2018-09-12 John Baldwin <jhb@FreeBSD.org>
437
438 * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
439 typo.
440
441 2018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
442
443 * common/common-utils.c: Don't include '<sys/stat.h>'.
444 (is_regular_file): Move to...
445 * common/filestuff.c (is_regular_file): ... here.
446 * common/common-utils.h (is_regular_file): Move to...
447 * common/filestuff.h (is_regular_file): ... here.
448
449 2018-09-12 Simon Marchi <simon.marchi@ericsson.com>
450
451 * skip.c (debug_skip): New variable.
452 (skiplist_entry::do_skip_file_p): Add debug output.
453 (skiplist_entry::do_skip_gfile_p): Likewise.
454 (skiplist_entry::skip_function_p): Likewise.
455 (_initialize_step_skip): Create debug command.
456 * NEWS: Mention set/show debug skip.
457
458 2018-09-11 Xavier Roirand <roirand@adacore.com>
459
460 * darwin-nat.c (should_disable_startup_with_shell):
461 New function.
462 (darwin_nat_target::create_inferior): Add call.
463
464 2018-09-11 Xavier Roirand <roirand@adacore.com>
465
466 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
467 inf_port, msg_state>: Initialize.
468 (struct darwin_thread_info) <signaled, single_step>: Change
469 type and initialize.
470 (struct darwin_thread_info) <event>: Initialize.
471
472 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
473
474 PR gdb/23555
475 PR gdb/23558
476 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
477 guesses.
478
479 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
480
481 Revert:
482 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
483
484 PR gdb/23555
485 PR gdb/23558
486 * gnulib/aclocal.m4: Regenerate.
487 * gnulib/config.in: Regenerate.
488 * gnulib/configure: Regenerate.
489 * gnulib/import/Makefile.am: Update.
490 * gnulib/import/Makefile.in: Update.
491 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
492 * gnulib/import/_Noreturn.h: ... this.
493 * gnulib/import/alloca.in.h: Update.
494 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
495 * gnulib/import/arg-nonnull.h: ... this.
496 * gnulib/import/assure.h: Update.
497 * gnulib/import/at-func.c: Update.
498 * gnulib/import/basename-lgpl.c: Update.
499 * gnulib/import/extra/snippet/c++defs.h: Rename to...
500 * gnulib/import/c++defs.h: ... this.
501 * gnulib/import/canonicalize-lgpl.c: Update.
502 * gnulib/import/cdefs.h: Update.
503 * gnulib/import/chdir-long.c: Update.
504 * gnulib/import/chdir-long.h: Update.
505 * gnulib/import/cloexec.c: Update.
506 * gnulib/import/cloexec.h: Update.
507 * gnulib/import/close.c: Update.
508 * gnulib/import/closedir.c: Update.
509 * gnulib/import/config.charset: Update.
510 * gnulib/import/dirent-private.h: Update.
511 * gnulib/import/dirent.in.h: Update.
512 * gnulib/import/dirfd.c: Update.
513 * gnulib/import/dirname-lgpl.c: Update.
514 * gnulib/import/dirname.h: Update.
515 * gnulib/import/dosname.h: Update.
516 * gnulib/import/dup-safer-flag.c: Update.
517 * gnulib/import/dup-safer.c: Update.
518 * gnulib/import/dup.c: Update.
519 * gnulib/import/dup2.c: Update.
520 * gnulib/import/errno.in.h: Update.
521 * gnulib/import/error.c: Update.
522 * gnulib/import/error.h: Update.
523 * gnulib/import/exitfail.c: Update.
524 * gnulib/import/exitfail.h: Update.
525 * gnulib/import/extra/update-copyright: Update.
526 * gnulib/import/fchdir.c: Update.
527 * gnulib/import/fcntl.c: Update.
528 * gnulib/import/fcntl.in.h: Update.
529 * gnulib/import/fd-hook.c: Update.
530 * gnulib/import/fd-hook.h: Update.
531 * gnulib/import/fd-safer-flag.c: Update.
532 * gnulib/import/fd-safer.c: Update.
533 * gnulib/import/fdopendir.c: Update.
534 * gnulib/import/filename.h: Update.
535 * gnulib/import/filenamecat-lgpl.c: Update.
536 * gnulib/import/filenamecat.h: Update.
537 * gnulib/import/flexmember.h: Update.
538 * gnulib/import/float+.h: Update.
539 * gnulib/import/float.c: Update.
540 * gnulib/import/float.in.h: Update.
541 * gnulib/import/fnmatch.c: Update.
542 * gnulib/import/fnmatch.in.h: Update.
543 * gnulib/import/fnmatch_loop.c: Update.
544 * gnulib/import/fpucw.h: Update.
545 * gnulib/import/frexp.c: Update.
546 * gnulib/import/frexpl.c: Update.
547 * gnulib/import/fstat.c: Update.
548 * gnulib/import/fstatat.c: Update.
549 * gnulib/import/getcwd-lgpl.c: Update.
550 * gnulib/import/getcwd.c: Update.
551 * gnulib/import/getdtablesize.c: Update.
552 * gnulib/import/getlogin_r.c: Update.
553 * gnulib/import/getprogname.c: Update.
554 * gnulib/import/getprogname.h: Update.
555 * gnulib/import/gettext.h: Update.
556 * gnulib/import/gettimeofday.c: Update.
557 * gnulib/import/glob-libc.h: Update.
558 * gnulib/import/glob.c: Update.
559 * gnulib/import/glob.in.h: Update.
560 * gnulib/import/glob_internal.h: Update.
561 * gnulib/import/glob_pattern_p.c: Update.
562 * gnulib/import/globfree.c: Update.
563 * gnulib/import/hard-locale.c: Update.
564 * gnulib/import/hard-locale.h: Update.
565 * gnulib/import/intprops.h: Update.
566 * gnulib/import/inttypes.in.h: Update.
567 * gnulib/import/isnan.c: Update.
568 * gnulib/import/isnand-nolibm.h: Update.
569 * gnulib/import/isnand.c: Update.
570 * gnulib/import/isnanl-nolibm.h: Update.
571 * gnulib/import/isnanl.c: Update.
572 * gnulib/import/itold.c: Update.
573 * gnulib/import/libc-config.h: Update.
574 * gnulib/import/limits.in.h: Update.
575 * gnulib/import/localcharset.c: Update.
576 * gnulib/import/localcharset.h: Update.
577 * gnulib/import/localtime-buffer.c: Update.
578 * gnulib/import/localtime-buffer.h: Update.
579 * gnulib/import/lstat.c: Update.
580 * gnulib/import/m4/00gnulib.m4: Update.
581 * gnulib/import/m4/__inline.m4: Update.
582 * gnulib/import/m4/absolute-header.m4: Update.
583 * gnulib/import/m4/alloca.m4: Update.
584 * gnulib/import/m4/builtin-expect.m4: Update.
585 * gnulib/import/m4/canonicalize.m4: Update.
586 * gnulib/import/m4/chdir-long.m4: Update.
587 * gnulib/import/m4/close.m4: Update.
588 * gnulib/import/m4/closedir.m4: Update.
589 * gnulib/import/m4/configmake.m4: Update.
590 * gnulib/import/m4/d-ino.m4: Update.
591 * gnulib/import/m4/d-type.m4: Update.
592 * gnulib/import/m4/dirent_h.m4: Update.
593 * gnulib/import/m4/dirfd.m4: Update.
594 * gnulib/import/m4/dirname.m4: Update.
595 * gnulib/import/m4/double-slash-root.m4: Update.
596 * gnulib/import/m4/dup.m4: Update.
597 * gnulib/import/m4/dup2.m4: Update.
598 * gnulib/import/m4/eealloc.m4: Update.
599 * gnulib/import/m4/environ.m4: Update.
600 * gnulib/import/m4/errno_h.m4: Update.
601 * gnulib/import/m4/error.m4: Update.
602 * gnulib/import/m4/exponentd.m4: Update.
603 * gnulib/import/m4/exponentl.m4: Update.
604 * gnulib/import/m4/extensions.m4: Update.
605 * gnulib/import/m4/extern-inline.m4: Update.
606 * gnulib/import/m4/fchdir.m4: Update.
607 * gnulib/import/m4/fcntl-o.m4: Update.
608 * gnulib/import/m4/fcntl.m4: Update.
609 * gnulib/import/m4/fcntl_h.m4: Update.
610 * gnulib/import/m4/fdopendir.m4: Update.
611 * gnulib/import/m4/filenamecat.m4: Update.
612 * gnulib/import/m4/flexmember.m4: Update.
613 * gnulib/import/m4/float_h.m4: Update.
614 * gnulib/import/m4/fnmatch.m4: Update.
615 * gnulib/import/m4/fnmatch_h.m4: Update.
616 * gnulib/import/m4/fpieee.m4: Update.
617 * gnulib/import/m4/frexp.m4: Update.
618 * gnulib/import/m4/frexpl.m4: Update.
619 * gnulib/import/m4/fstat.m4: Update.
620 * gnulib/import/m4/fstatat.m4: Update.
621 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
622 * gnulib/import/m4/getcwd-path-max.m4: Update.
623 * gnulib/import/m4/getcwd.m4: Update.
624 * gnulib/import/m4/getdtablesize.m4: Update.
625 * gnulib/import/m4/getlogin.m4: Update.
626 * gnulib/import/m4/getlogin_r.m4: Update.
627 * gnulib/import/m4/getpagesize.m4: Update.
628 * gnulib/import/m4/getprogname.m4: Update.
629 * gnulib/import/m4/gettimeofday.m4: Update.
630 * gnulib/import/m4/glibc21.m4: Update.
631 * gnulib/import/m4/glob.m4: Update.
632 * gnulib/import/m4/glob_h.m4: Update.
633 * gnulib/import/m4/gnulib-cache.m4: Update.
634 * gnulib/import/m4/gnulib-common.m4: Update.
635 * gnulib/import/m4/gnulib-comp.m4: Update.
636 * gnulib/import/m4/gnulib-tool.m4: Update.
637 * gnulib/import/m4/hard-locale.m4: Update.
638 * gnulib/import/m4/include_next.m4: Update.
639 * gnulib/import/m4/inttypes-pri.m4: Update.
640 * gnulib/import/m4/inttypes.m4: Update.
641 * gnulib/import/m4/isnand.m4: Update.
642 * gnulib/import/m4/isnanl.m4: Update.
643 * gnulib/import/m4/largefile.m4: Update.
644 * gnulib/import/m4/limits-h.m4: Update.
645 * gnulib/import/m4/localcharset.m4: Update.
646 * gnulib/import/m4/locale-fr.m4: Update.
647 * gnulib/import/m4/locale-ja.m4: Update.
648 * gnulib/import/m4/locale-zh.m4: Update.
649 * gnulib/import/m4/localtime-buffer.m4: Update.
650 * gnulib/import/m4/longlong.m4: Update.
651 * gnulib/import/m4/lstat.m4: Update.
652 * gnulib/import/m4/malloc.m4: Update.
653 * gnulib/import/m4/malloca.m4: Update.
654 * gnulib/import/m4/math_h.m4: Update.
655 * gnulib/import/m4/mbrtowc.m4: Update.
656 * gnulib/import/m4/mbsinit.m4: Update.
657 * gnulib/import/m4/mbsrtowcs.m4: Update.
658 * gnulib/import/m4/mbstate_t.m4: Update.
659 * gnulib/import/m4/memchr.m4: Update.
660 * gnulib/import/m4/memmem.m4: Update.
661 * gnulib/import/m4/mempcpy.m4: Update.
662 * gnulib/import/m4/memrchr.m4: Update.
663 * gnulib/import/m4/mkdir.m4: Update.
664 * gnulib/import/m4/mkstemp.m4: Update.
665 * gnulib/import/m4/mmap-anon.m4: Update.
666 * gnulib/import/m4/mode_t.m4: Update.
667 * gnulib/import/m4/msvc-inval.m4: Update.
668 * gnulib/import/m4/msvc-nothrow.m4: Update.
669 * gnulib/import/m4/multiarch.m4: Update.
670 * gnulib/import/m4/nocrash.m4: Update.
671 * gnulib/import/m4/off_t.m4: Update.
672 * gnulib/import/m4/onceonly.m4: Update.
673 * gnulib/import/m4/open-cloexec.m4: Update.
674 * gnulib/import/m4/open.m4: Update.
675 * gnulib/import/m4/openat.m4: Update.
676 * gnulib/import/m4/opendir.m4: Update.
677 * gnulib/import/m4/pathmax.m4: Update.
678 * gnulib/import/m4/rawmemchr.m4: Update.
679 * gnulib/import/m4/readdir.m4: Update.
680 * gnulib/import/m4/readlink.m4: Update.
681 * gnulib/import/m4/realloc.m4: Update.
682 * gnulib/import/m4/rename.m4: Update.
683 * gnulib/import/m4/rewinddir.m4: Update.
684 * gnulib/import/m4/rmdir.m4: Update.
685 * gnulib/import/m4/save-cwd.m4: Update.
686 * gnulib/import/m4/secure_getenv.m4: Update.
687 * gnulib/import/m4/setenv.m4: Update.
688 * gnulib/import/m4/signal_h.m4: Update.
689 * gnulib/import/m4/ssize_t.m4: Update.
690 * gnulib/import/m4/stat-time.m4: Update.
691 * gnulib/import/m4/stat.m4: Update.
692 * gnulib/import/m4/std-gnu11.m4: Update.
693 * gnulib/import/m4/stdbool.m4: Update.
694 * gnulib/import/m4/stddef_h.m4: Update.
695 * gnulib/import/m4/stdint.m4: Update.
696 * gnulib/import/m4/stdio_h.m4: Update.
697 * gnulib/import/m4/stdlib_h.m4: Update.
698 * gnulib/import/m4/strchrnul.m4: Update.
699 * gnulib/import/m4/strdup.m4: Update.
700 * gnulib/import/m4/strerror.m4: Update.
701 * gnulib/import/m4/string_h.m4: Update.
702 * gnulib/import/m4/strstr.m4: Update.
703 * gnulib/import/m4/strtok_r.m4: Update.
704 * gnulib/import/m4/sys_socket_h.m4: Update.
705 * gnulib/import/m4/sys_stat_h.m4: Update.
706 * gnulib/import/m4/sys_time_h.m4: Update.
707 * gnulib/import/m4/sys_types_h.m4: Update.
708 * gnulib/import/m4/tempname.m4: Update.
709 * gnulib/import/m4/time_h.m4: Update.
710 * gnulib/import/m4/unistd-safer.m4: Update.
711 * gnulib/import/m4/unistd_h.m4: Update.
712 * gnulib/import/m4/warn-on-use.m4: Update.
713 * gnulib/import/m4/wchar_h.m4: Update.
714 * gnulib/import/m4/wchar_t.m4: Update.
715 * gnulib/import/m4/wctype_h.m4: Update.
716 * gnulib/import/m4/wint_t.m4: Update.
717 * gnulib/import/malloc.c: Update.
718 * gnulib/import/malloc/scratch_buffer.h: Update.
719 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
720 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
721 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
722 * gnulib/import/malloca.c: Update.
723 * gnulib/import/malloca.h: Update.
724 * gnulib/import/malloca.valgrind: Update.
725 * gnulib/import/math.in.h: Update.
726 * gnulib/import/mbrtowc.c: Update.
727 * gnulib/import/mbsinit.c: Update.
728 * gnulib/import/mbsrtowcs-impl.h: Update.
729 * gnulib/import/mbsrtowcs-state.c: Update.
730 * gnulib/import/mbsrtowcs.c: Update.
731 * gnulib/import/memchr.c: Update.
732 * gnulib/import/memmem.c: Update.
733 * gnulib/import/mempcpy.c: Update.
734 * gnulib/import/memrchr.c: Update.
735 * gnulib/import/mkdir.c: Update.
736 * gnulib/import/mkstemp.c: Update.
737 * gnulib/import/msvc-inval.c: Update.
738 * gnulib/import/msvc-inval.h: Update.
739 * gnulib/import/msvc-nothrow.c: Update.
740 * gnulib/import/msvc-nothrow.h: Update.
741 * gnulib/import/open.c: Update.
742 * gnulib/import/openat-die.c: Update.
743 * gnulib/import/openat-priv.h: Update.
744 * gnulib/import/openat-proc.c: Update.
745 * gnulib/import/openat.c: Update.
746 * gnulib/import/openat.h: Update.
747 * gnulib/import/opendir.c: Update.
748 * gnulib/import/pathmax.h: Update.
749 * gnulib/import/pipe-safer.c: Update.
750 * gnulib/import/rawmemchr.c: Update.
751 * gnulib/import/readdir.c: Update.
752 * gnulib/import/readlink.c: Update.
753 * gnulib/import/realloc.c: Update.
754 * gnulib/import/ref-add.sin: Update.
755 * gnulib/import/ref-del.sin: Update.
756 * gnulib/import/rename.c: Update.
757 * gnulib/import/rewinddir.c: Update.
758 * gnulib/import/rmdir.c: Update.
759 * gnulib/import/same-inode.h: Update.
760 * gnulib/import/save-cwd.c: Update.
761 * gnulib/import/save-cwd.h: Update.
762 * gnulib/import/scratch_buffer.h: Update.
763 * gnulib/import/secure_getenv.c: Update.
764 * gnulib/import/setenv.c: Update.
765 * gnulib/import/signal.in.h: Update.
766 * gnulib/import/stat-time.c: Update.
767 * gnulib/import/stat-time.h: Update.
768 * gnulib/import/stat-w32.c: Update.
769 * gnulib/import/stat-w32.h: Update.
770 * gnulib/import/stat.c: Update.
771 * gnulib/import/stdbool.in.h: Update.
772 * gnulib/import/stddef.in.h: Update.
773 * gnulib/import/stdint.in.h: Update.
774 * gnulib/import/stdio.in.h: Update.
775 * gnulib/import/stdlib.in.h: Update.
776 * gnulib/import/str-two-way.h: Update.
777 * gnulib/import/strchrnul.c: Update.
778 * gnulib/import/strdup.c: Update.
779 * gnulib/import/streq.h: Update.
780 * gnulib/import/strerror-override.c: Update.
781 * gnulib/import/strerror-override.h: Update.
782 * gnulib/import/strerror.c: Update.
783 * gnulib/import/string.in.h: Update.
784 * gnulib/import/stripslash.c: Update.
785 * gnulib/import/strnlen1.c: Update.
786 * gnulib/import/strnlen1.h: Update.
787 * gnulib/import/strstr.c: Update.
788 * gnulib/import/strtok_r.c: Update.
789 * gnulib/import/sys_stat.in.h: Update.
790 * gnulib/import/sys_time.in.h: Update.
791 * gnulib/import/sys_types.in.h: Update.
792 * gnulib/import/tempname.c: Update.
793 * gnulib/import/tempname.h: Update.
794 * gnulib/import/time.in.h: Update.
795 * gnulib/import/unistd--.h: Update.
796 * gnulib/import/unistd-safer.h: Update.
797 * gnulib/import/unistd.in.h: Update.
798 * gnulib/import/unsetenv.c: Update.
799 * gnulib/import/verify.h: Update.
800 * gnulib/import/extra/snippet/warn-on-use.h: Update.
801 * gnulib/import/wchar.in.h: Update.
802 * gnulib/import/wctype.in.h: Update.
803 * gnulib/import/xalloc-oversized.h: Update.
804 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
805 "53e2c179f26a890fa6685af4b6c1397ee370433b".
806
807 2018-09-10 Simon Marchi <simon.marchi@ericsson.com>
808
809 * record-btrace.c (get_thread_current_frame): Remove
810 old_inferior_ptid.
811
812 2018-09-10 Jerome Guitton <guitton@adacore.com>
813
814 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
815 with check_tag to 1 if and only if the type is tagged and the
816 component being searched cannot been found in the current
817 view. Otherwise, always call ada_to_fixed_type with
818 check_tag to 0.
819
820 2018-09-10 Xavier Roirand <roirand@adacore.com>
821
822 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
823 declaration.
824 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
825 * ada-varobj.c (ada_varobj_get_number_of_children,
826 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
827
828 2018-09-10 Xavier Roirand <roirand@adacore.com>
829
830 * ada-valprint.c (ada_value_print): Use type instead of
831 enclosing type.
832
833 2018-09-10 Xavier Roirand <roirand@adacore.com>
834
835 * ada-lang.c (ada_value_subscript): Handle case when parameter is
836 an array of access to unconstrained array.
837
838 2018-09-10 Xavier Roirand <roirand@adacore.com>
839
840 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
841 (ada_check_typedef): Use it.
842
843 2018-09-10 Xavier Roirand <roirand@adacore.com>
844
845 * ada-varobj.c (ada_varobj_describe_struct_child)
846 (ada_varobj_describe_child): Handle union case like struct one.
847
848 2018-09-10 Tom Tromey <tom@tromey.com>
849
850 PR python/18380:
851 * python/python.c (_initialize_python): Make example in "python"
852 help work in Python 3.
853
854 2018-09-10 Eli Zaretskii <eliz@gnu.org>
855
856 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
857 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
858 $(EXEEXT) to the script, as it is not a program.
859
860 2018-09-09 Simon Marchi <simon.marchi@ericsson.com>
861
862 * python/py-prettyprint.c (pretty_print_one_value): Return
863 gdbpy_ref<>.
864 (print_string_repr): Adjust.
865 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
866 * python/python-internal.h (apply_varobj_pretty_printer): Return
867 gdbpy_ref<>.
868 * varobj.c (varobj_value_get_print_value): Adjust.
869
870 2018-09-08 Tom Tromey <tom@tromey.com>
871
872 PR python/16047:
873 * python/py-prettyprint.c (pretty_print_one_value): Check for
874 to_string method.
875
876 2018-09-08 Joel Brobecker <brobecker@adacore.com>
877
878 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
879 replace_operator_with_call.
880
881 2018-09-08 Joel Brobecker <brobecker@adacore.com>
882
883 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
884
885 2018-09-08 Joel Brobecker <brobecker@adacore.com>
886
887 * ada-typeprint.c (print_range): Print the bounds using TYPE
888 rather than its TYPE_TARGET_TYPE.
889
890 2018-09-08 Joel Brobecker <brobecker@adacore.com>
891
892 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
893 call to ada_to_fixed_value_create.
894
895 2018-09-08 Jerome Guitton <guitton@adacore.com>
896
897 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
898
899 2018-09-08 Joel Brobecker <brobecker@adacore.com>
900
901 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
902 by calls to error.
903
904 2018-09-08 Joel Brobecker <brobecker@adacore.com>
905
906 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
907 Move update of loop variable "fi".
908
909 2018-09-08 Joel Brobecker <brobecker@adacore.com>
910
911 * ada-lang.c (value_assign_to_component): In the case of
912 big-endian targets, extract the bits of the given VAL
913 using an src_offset of zero if container is not a scalar.
914
915 2018-09-06 Simon Ser <contact@emersion.fr>
916
917 PR gdb/23105
918 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
919 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
920 * fbsd-tdep.c (fbsd_make_note_desc): New.
921 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
922 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
923 * target.h (enum target_object) Add FreeBSD-specific
924 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
925
926 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
927
928 * compile/compile-c.h (generate_c_for_variable_locations):
929 Change reference to pointer.
930 * compile/compile-c-support.c (compile_program) <compute>:
931 Likewise.
932 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
933 (generate_c_for_for_one_variable): Likewise
934 (generate_c_for_variable_locations): Likewise
935 * compile/compile-c-types.c (compile_c_instance::convert_type):
936 Likewise
937 * compile/compile-cplus-symbols.c (convert_one_symbol):
938 std::move the scope passed to enter_scope.
939 * compile/compile-cplus-types.c
940 (compile_cplus_instance::enter_scope): Make parameter
941 rvalue-reference.
942 (compile_cplus_instance::new_scope): Change reference to
943 pointer.
944 (compile_cplus_instance::convert_type): Likewise
945 (compile_cplus_convert_typedef): std::move the scope passed to
946 enter_scope.
947 (compile_cplus_convert_struct_or_union): Likewise.
948 (compile_cplus_convert_enum): Likewise.
949 (compile_cplus_convert_namespace): Likewise.
950 * compile/compile-cplus.h (compile_cplus_instance)
951 <enter_scope>: Make parameter rvalue-reference.
952 * compile/compile-internal.h (compile_instance)
953 <get_cached_type>: Likewise
954 * compile/compile-loc2c.c (push): Likewise
955 (pushf): Likewise
956 (unary): Likewise
957 (binary): Likewise
958 (print_label): Likewise
959 (pushf_register_address): Likewise
960 (pushf_register): Likewise
961 (do_compile_dwarf_expr_to_c): Likewise
962 (compile_dwarf_expr_to_c): Likewise
963 (compile_dwarf_bounds_to_c): Likewise
964 * compile/compile.c (compile_instance::get_cached_type):
965 Likewise
966 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
967 (compile_dwarf_bounds_to_c): Likewise
968 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
969 (dwarf2_compile_property_to_c): Likewise
970 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
971 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
972 Likewise
973
974 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
975
976 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
977 * tui/tui-data.c (init_content_element): Don't initialize it.
978
979 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
980
981 * tui/tui-data.h (struct tui_win_info)
982 <detail::opaque>: Remove.
983 * tui/tui-data.c (init_win_info): Remove assignment.
984
985 2018-09-05 Tom Tromey <tom@tromey.com>
986
987 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
988 -Wformat-nonliteral.
989 * target-float.c (host_float_ops<T>::to_string)
990 (host_float_ops<T>::from_string): Use
991 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
992 * configure: Rebuild.
993
994 2018-09-05 Simon Marchi <simon.marchi@ericsson.com>
995
996 * printcmd.c (printf_c_string): Use
997 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
998 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
999
1000 2018-09-05 Tom Tromey <tom@tromey.com>
1001
1002 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
1003
1004 2018-09-05 Tom de Vries <tdevries@suse.de>
1005
1006 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
1007 with resolve_abstract_p == true.
1008 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
1009 defaulting to false. Propagate resolve_abstract_p to
1010 dwarf2_fetch_die_loc_sect_off.
1011 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
1012 parameter, defaulting to false.
1013 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
1014 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
1015 parameter.
1016 * dwarf2read.h (struct die_info): Forward-declare.
1017 (die_info_ptr): New typedef.
1018 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
1019
1020 2018-09-05 Joel Brobecker <brobecker@adacore.com>
1021
1022 GDB 8.2 released.
1023
1024 2018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1025 Pedro Alves <palves@redhat.com>
1026
1027 * gnulib/Makefile.in (aclocal_m4_deps): Move to
1028 "aclocal-m4-deps.mk". Include file here.
1029 $(srcdir)/aclocal.m4: Add "configure.ac".
1030 * gnulib/aclocal-m4-deps.mk: New file.
1031 * gnulib/update-gnulib.sh: Automatically update
1032 "aclocal-m4-deps.mk".
1033
1034 2018-09-04 Tom Tromey <tom@tromey.com>
1035
1036 * configure: Rebuild.
1037 * configure.ac: Remove multi-ice code.
1038
1039 2018-09-04 Tom Tromey <tom@tromey.com>
1040
1041 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
1042 (ada-exp.o): Update.
1043
1044 2018-09-04 Tom Tromey <tom@tromey.com>
1045
1046 * Makefile.in (printcmd.o, target-float.o): Remove.
1047 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
1048
1049 2018-09-04 Tom Tromey <tom@tromey.com>
1050
1051 * gnulib/Makefile.in: Remove obsolete comment.
1052 * Makefile.in: Remove obsolete comment.
1053
1054 2018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
1055
1056 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
1057 line with '+'.
1058
1059 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1060
1061 * riscv-tdep.c: Add 'prologue-value.h' include.
1062 (struct riscv_unwind_cache): New struct.
1063 (riscv_debug_unwinder): New global.
1064 (riscv_scan_prologue): Update arguments, capture register details
1065 from prologue scan.
1066 (riscv_skip_prologue): Reformat arguments line, move end of
1067 prologue calculation into riscv_scan_prologue.
1068 (riscv_frame_cache): Update return type, create
1069 riscv_unwind_cache, scan the prologue, and fill in remaining cache
1070 details.
1071 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
1072 (riscv_frame_prev_register): Use the trad_frame within the
1073 riscv_unwind_cache.
1074 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
1075 flag.
1076
1077 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1078
1079 * trad-frame.h (trad_frame_set_realreg): Declare.
1080 (trad_frame_set_addr): Declare.
1081 * trad-frame.c (trad_frame_set_realreg): Define new function.
1082 (trad_frame_set_addr): Define new function.
1083 (trad_frame_set_reg_realreg): Use new function.
1084 (trad_frame_set_reg_addr): Use new function.
1085
1086 2018-09-01 Keith Seitz <keiths@redhat.com>
1087
1088 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
1089 pulongest instead of "%lld".
1090 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
1091 ATTRIBUTE_UNUSED.
1092
1093 2018-08-31 Tom Tromey <tom@tromey.com>
1094
1095 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
1096 variant part type.
1097
1098 2018-08-31 Pedro Alves <palves@redhat.com>
1099
1100 * gdbarch.h: Regenerate.
1101
1102 2018-08-31 Pedro Alves <palves@redhat.com>
1103
1104 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
1105 * target.h (Hardware watchpoint interfaces): Describe
1106 continuable/steppable/non-steppable watchpoints.
1107 * gdbarch.h, gdbarch.c: Regenerate.
1108
1109 2018-08-31 Pedro Alves <palves@redhat.com>
1110
1111 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
1112 Delete.
1113 * s390-linux-nat.c
1114 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
1115 * target.h (target_ops::have_continuable_watchpoint): Delete.
1116 (target_have_continuable_watchpoint): Delete.
1117 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
1118 * target-delegates.c: Regenerate.
1119
1120 2018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
1121
1122 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
1123 the files present in "gnulib/import/m4/".
1124
1125 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
1126
1127 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
1128 c.sw, c.swsp, and c.sdsp.
1129
1130 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
1131
1132 * riscv-tdep.c (struct riscv_inferior_data): Delete.
1133 (riscv_read_misa_reg): Don't cache value read into inferior data.
1134 (riscv_new_inferior_data): Delete.
1135 (riscv_inferior_data_cleanup): Delete.
1136 (riscv_inferior_data): Delete.
1137 (riscv_invalidate_inferior_data): Delete.
1138 (_initialize_riscv_tdep): Remove initialisation of inferior data.
1139
1140 2018-08-30 Simon Marchi <simon.marchi@ericsson.com>
1141
1142 * compile/compile-cplus-types.c
1143 (compile_cplus_instance::leave_scope): Take the address of scope
1144 object.
1145 (compile_cplus_instance::convert_qualified_base): Compare quals
1146 to 0.
1147
1148 2018-08-30 Keith Seitz <keiths@redhat.com>
1149
1150 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
1151 Use "%s" and host_address_to_string instead of "%p" in printf.
1152
1153 2018-08-29 Keith Seitz <keiths@redhat.com>
1154
1155 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
1156 and compile-cplus-types.c.
1157 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
1158 * c-lang.c (cplus_language_defn): Set C++ compile functions.
1159 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
1160 Declare.
1161 * compile/compile-c-support.c: Include compile-cplus.h.
1162 (load_libcompile): Templatize.
1163 (get_compile_context): "New" function.
1164 (c_get_compile_context): Use get_compile_context.
1165 (cplus_get_compile_context): New function.
1166 (cplus_push_user_expression, cplus_pop_user_expression)
1167 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
1168 (cplus_compute_program): Define new structs/functions.
1169 * compile/compile-cplus-symmbols.c: New file.
1170 * compile/compile-cplus-types.c: New file.
1171 * compile/compile-cplus.h: New file.
1172 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
1173 Declare.
1174 * compile/compile-object-load.c (get_out_value_type): Use
1175 strncmp_iw when comparing symbol names.
1176 (compile_object_load): Add mst_bss and mst_data.
1177 * compile/compile.c (_initialize_compile): Remove
1178 -Wno-implicit-function-declaration from `compile_args'.
1179 * compile/gcc-cp-plugin.h: New file.
1180 * NEWS: Mention C++ compile support and new debug options.
1181
1182 2018-08-29 Keith Seitz <keiths@redhat.com>
1183
1184 * linespec.c (collect_info::add_symbol): Make virtual.
1185 (struct symbol_searcher_collect_info): New struct.
1186 (symbol_searcher::find_all_symbols): New method.
1187 * symtab.h (class symbol_searcher): New class.
1188
1189 2018-08-29 Keith Seitz <keiths@redhat.com>
1190
1191 * linespec.c (struct linespec) <function_symbols, label_symbols>:
1192 Change to vector of block_symbol. Update all users.
1193 (struct collect_info) <symbols>: Likewise.
1194 (collect_info::add_symbol): Take block_symbol as argument.
1195 Update all callers.
1196 (decode_compound_collector) <m_symbols>: Change type to vector
1197 of block_symbol. Update all users.
1198 (decode_compound_collector::operator ()): Change parameter type
1199 to block_symbol.
1200 (find_method, find_function_symbols, find_linespec_symbols)
1201 (find_label_symbols_in_block, find_label_symbols): Change symbol
1202 vectors to block_symbol vectors.
1203 * symtab.h (symbol_found_callback_ftype): Change parameter type to
1204 block_symbol.
1205
1206 2018-08-29 Keith Seitz <keiths@redhat.com>
1207
1208 * linespec.c (symbolp): Remove typedef and VEC definitions.
1209 (bound_minimal_symbol_d): Likewise.
1210
1211 2018-08-29 Keith Seitz <keiths@redhat.com>
1212
1213 * linespec.c (decode_compound_collector::decode_compound_collector):
1214 Remove initialization for `m_symtabs'.
1215 (decode_compound_collector::release_symbols): Change return type
1216 to std::vector. Update all callers.
1217 (class decode_compound_collector) <m_symbols>: Change type to
1218 std::vector.
1219 (lookup_prefix_sym): Change return type to std::vector. Update all
1220 callers.
1221 (compare_symbols): Remove.
1222 (std_compare_symbols): Rename to `compare_symbols'.
1223 (find_method): Change `sym_classes' parameter to std::vector.
1224 Update all callers. Use std::sort to sort sym_classes.
1225 (find_linespec_symbols): Remove cleanup.
1226
1227 2018-08-29 Keith Seitz <keiths@redhat.com>
1228
1229 * linespec.c (struct linespec) <minimal_symbols>: Change type to
1230 std::vector. Update all users.
1231 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
1232 (struct collect_info) <minimal_symbols>: Likewise.
1233 (compare_msymbols): Return bool. Change parameters to const
1234 bound_minimal_symbol references.
1235 (find_method, find_function_symbols, find_linespec_symbols): Change
1236 `minsyms' parameter to std::vector. Update all callers.
1237
1238 2018-08-29 Keith Seitz <keiths@redhat.com>
1239
1240 * linespec.c (struct linespec) <label_symbols>: Change type to
1241 std::vector. Update all users.
1242 (find_label_symbols_in_block): Change `result' parameter to
1243 std::vector. Update all callers.
1244 (find_label_symbols): Return std::vector. Update all callers.
1245
1246 2018-08-29 Keith Seitz <keiths@redhat.com>
1247
1248 * linespec.c (struct linespec) <function_symbols>: Change type to
1249 std::vector. Update all users.
1250 (struct collect_info) <function_symbols>: Likewise.
1251 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
1252 (std_compare_symbols): New function.
1253 (find_method, find_function_symbols, find_linespec_symbols)
1254 (find_label_symbols_in_block): Change `symbols' parameter to
1255 std::vector. Update all callers.
1256 (find_label_symbols): Likewise for `function_symbols' and
1257 `label_funcs_ret'.
1258
1259 2018-08-29 Keith Seitz <keiths@redhat.com>
1260
1261 * linespec.c (symtab_vector_up): Define.
1262 (struct linespec) <file_symtabs>: Change type to std::vector *.
1263 Update all uses.
1264 (struct collect_info) <file_symtabs>: Likewise.
1265 (collect_symtabs_from_filename): Return symtab_vector_up.
1266 Update all callers.
1267 (decode_objc): Remove cleanup.
1268 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
1269 (symtab_collector::release_symtabs): Return symtab_vector_up.
1270 Update all callers.
1271 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
1272 Update all users.
1273 (collect_symtabs_from_filename, symtabs_from_filename): Return
1274 symtab_vector_up. Update all callers.
1275
1276 2018-08-29 Tom Tromey <tom@tromey.com>
1277
1278 * csky-tdep.c (csky_analyze_prologue): Use
1279 core_addr_to_string_nz.
1280
1281 2018-08-29 Tom Tromey <tom@tromey.com>
1282
1283 * windows-nat.c (struct xlate_exception) <them>: Change type to
1284 DWORD.
1285 (xlate): Fix formatting. Remove last entry.
1286 (struct xlate_exception, xlate): Comment out.
1287 (windows_nat_target::resume): Use ranged for.
1288
1289 2018-08-29 Jim Wilson <jimw@sifive.com>
1290
1291 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
1292 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
1293 of NT_PRFPREG.
1294 (riscv_linux_nat_target::store_registers): Likewise.
1295
1296 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
1297
1298 PR gdb/23555
1299 PR gdb/23558
1300 * gnulib/aclocal.m4: Regenerate.
1301 * gnulib/config.in: Regenerate.
1302 * gnulib/configure: Regenerate.
1303 * gnulib/import/Makefile.am: Update.
1304 * gnulib/import/Makefile.in: Update.
1305 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
1306 * gnulib/import/_Noreturn.h: ... this.
1307 * gnulib/import/alloca.in.h: Update.
1308 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
1309 * gnulib/import/arg-nonnull.h: ... this.
1310 * gnulib/import/assure.h: Update.
1311 * gnulib/import/at-func.c: Update.
1312 * gnulib/import/basename-lgpl.c: Update.
1313 * gnulib/import/extra/snippet/c++defs.h: Rename to...
1314 * gnulib/import/c++defs.h: ... this.
1315 * gnulib/import/canonicalize-lgpl.c: Update.
1316 * gnulib/import/cdefs.h: Update.
1317 * gnulib/import/chdir-long.c: Update.
1318 * gnulib/import/chdir-long.h: Update.
1319 * gnulib/import/cloexec.c: Update.
1320 * gnulib/import/cloexec.h: Update.
1321 * gnulib/import/close.c: Update.
1322 * gnulib/import/closedir.c: Update.
1323 * gnulib/import/config.charset: Update.
1324 * gnulib/import/dirent-private.h: Update.
1325 * gnulib/import/dirent.in.h: Update.
1326 * gnulib/import/dirfd.c: Update.
1327 * gnulib/import/dirname-lgpl.c: Update.
1328 * gnulib/import/dirname.h: Update.
1329 * gnulib/import/dosname.h: Update.
1330 * gnulib/import/dup-safer-flag.c: Update.
1331 * gnulib/import/dup-safer.c: Update.
1332 * gnulib/import/dup.c: Update.
1333 * gnulib/import/dup2.c: Update.
1334 * gnulib/import/errno.in.h: Update.
1335 * gnulib/import/error.c: Update.
1336 * gnulib/import/error.h: Update.
1337 * gnulib/import/exitfail.c: Update.
1338 * gnulib/import/exitfail.h: Update.
1339 * gnulib/import/extra/update-copyright: Update.
1340 * gnulib/import/fchdir.c: Update.
1341 * gnulib/import/fcntl.c: Update.
1342 * gnulib/import/fcntl.in.h: Update.
1343 * gnulib/import/fd-hook.c: Update.
1344 * gnulib/import/fd-hook.h: Update.
1345 * gnulib/import/fd-safer-flag.c: Update.
1346 * gnulib/import/fd-safer.c: Update.
1347 * gnulib/import/fdopendir.c: Update.
1348 * gnulib/import/filename.h: Update.
1349 * gnulib/import/filenamecat-lgpl.c: Update.
1350 * gnulib/import/filenamecat.h: Update.
1351 * gnulib/import/flexmember.h: Update.
1352 * gnulib/import/float+.h: Update.
1353 * gnulib/import/float.c: Update.
1354 * gnulib/import/float.in.h: Update.
1355 * gnulib/import/fnmatch.c: Update.
1356 * gnulib/import/fnmatch.in.h: Update.
1357 * gnulib/import/fnmatch_loop.c: Update.
1358 * gnulib/import/fpucw.h: Update.
1359 * gnulib/import/frexp.c: Update.
1360 * gnulib/import/frexpl.c: Update.
1361 * gnulib/import/fstat.c: Update.
1362 * gnulib/import/fstatat.c: Update.
1363 * gnulib/import/getcwd-lgpl.c: Update.
1364 * gnulib/import/getcwd.c: Update.
1365 * gnulib/import/getdtablesize.c: Update.
1366 * gnulib/import/getlogin_r.c: Update.
1367 * gnulib/import/getprogname.c: Update.
1368 * gnulib/import/getprogname.h: Update.
1369 * gnulib/import/gettext.h: Update.
1370 * gnulib/import/gettimeofday.c: Update.
1371 * gnulib/import/glob-libc.h: Update.
1372 * gnulib/import/glob.c: Update.
1373 * gnulib/import/glob.in.h: Update.
1374 * gnulib/import/glob_internal.h: Update.
1375 * gnulib/import/glob_pattern_p.c: Update.
1376 * gnulib/import/globfree.c: Update.
1377 * gnulib/import/hard-locale.c: Update.
1378 * gnulib/import/hard-locale.h: Update.
1379 * gnulib/import/intprops.h: Update.
1380 * gnulib/import/inttypes.in.h: Update.
1381 * gnulib/import/isnan.c: Update.
1382 * gnulib/import/isnand-nolibm.h: Update.
1383 * gnulib/import/isnand.c: Update.
1384 * gnulib/import/isnanl-nolibm.h: Update.
1385 * gnulib/import/isnanl.c: Update.
1386 * gnulib/import/itold.c: Update.
1387 * gnulib/import/libc-config.h: Update.
1388 * gnulib/import/limits.in.h: Update.
1389 * gnulib/import/localcharset.c: Update.
1390 * gnulib/import/localcharset.h: Update.
1391 * gnulib/import/localtime-buffer.c: Update.
1392 * gnulib/import/localtime-buffer.h: Update.
1393 * gnulib/import/lstat.c: Update.
1394 * gnulib/import/m4/00gnulib.m4: Update.
1395 * gnulib/import/m4/__inline.m4: Update.
1396 * gnulib/import/m4/absolute-header.m4: Update.
1397 * gnulib/import/m4/alloca.m4: Update.
1398 * gnulib/import/m4/builtin-expect.m4: Update.
1399 * gnulib/import/m4/canonicalize.m4: Update.
1400 * gnulib/import/m4/chdir-long.m4: Update.
1401 * gnulib/import/m4/close.m4: Update.
1402 * gnulib/import/m4/closedir.m4: Update.
1403 * gnulib/import/m4/configmake.m4: Update.
1404 * gnulib/import/m4/d-ino.m4: Update.
1405 * gnulib/import/m4/d-type.m4: Update.
1406 * gnulib/import/m4/dirent_h.m4: Update.
1407 * gnulib/import/m4/dirfd.m4: Update.
1408 * gnulib/import/m4/dirname.m4: Update.
1409 * gnulib/import/m4/double-slash-root.m4: Update.
1410 * gnulib/import/m4/dup.m4: Update.
1411 * gnulib/import/m4/dup2.m4: Update.
1412 * gnulib/import/m4/eealloc.m4: Update.
1413 * gnulib/import/m4/environ.m4: Update.
1414 * gnulib/import/m4/errno_h.m4: Update.
1415 * gnulib/import/m4/error.m4: Update.
1416 * gnulib/import/m4/exponentd.m4: Update.
1417 * gnulib/import/m4/exponentl.m4: Update.
1418 * gnulib/import/m4/extensions.m4: Update.
1419 * gnulib/import/m4/extern-inline.m4: Update.
1420 * gnulib/import/m4/fchdir.m4: Update.
1421 * gnulib/import/m4/fcntl-o.m4: Update.
1422 * gnulib/import/m4/fcntl.m4: Update.
1423 * gnulib/import/m4/fcntl_h.m4: Update.
1424 * gnulib/import/m4/fdopendir.m4: Update.
1425 * gnulib/import/m4/filenamecat.m4: Update.
1426 * gnulib/import/m4/flexmember.m4: Update.
1427 * gnulib/import/m4/float_h.m4: Update.
1428 * gnulib/import/m4/fnmatch.m4: Update.
1429 * gnulib/import/m4/fnmatch_h.m4: Update.
1430 * gnulib/import/m4/fpieee.m4: Update.
1431 * gnulib/import/m4/frexp.m4: Update.
1432 * gnulib/import/m4/frexpl.m4: Update.
1433 * gnulib/import/m4/fstat.m4: Update.
1434 * gnulib/import/m4/fstatat.m4: Update.
1435 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
1436 * gnulib/import/m4/getcwd-path-max.m4: Update.
1437 * gnulib/import/m4/getcwd.m4: Update.
1438 * gnulib/import/m4/getdtablesize.m4: Update.
1439 * gnulib/import/m4/getlogin.m4: Update.
1440 * gnulib/import/m4/getlogin_r.m4: Update.
1441 * gnulib/import/m4/getpagesize.m4: Update.
1442 * gnulib/import/m4/getprogname.m4: Update.
1443 * gnulib/import/m4/gettimeofday.m4: Update.
1444 * gnulib/import/m4/glibc21.m4: Update.
1445 * gnulib/import/m4/glob.m4: Update.
1446 * gnulib/import/m4/glob_h.m4: Update.
1447 * gnulib/import/m4/gnulib-cache.m4: Update.
1448 * gnulib/import/m4/gnulib-common.m4: Update.
1449 * gnulib/import/m4/gnulib-comp.m4: Update.
1450 * gnulib/import/m4/gnulib-tool.m4: Update.
1451 * gnulib/import/m4/hard-locale.m4: Update.
1452 * gnulib/import/m4/include_next.m4: Update.
1453 * gnulib/import/m4/inttypes-pri.m4: Update.
1454 * gnulib/import/m4/inttypes.m4: Update.
1455 * gnulib/import/m4/isnand.m4: Update.
1456 * gnulib/import/m4/isnanl.m4: Update.
1457 * gnulib/import/m4/largefile.m4: Update.
1458 * gnulib/import/m4/limits-h.m4: Update.
1459 * gnulib/import/m4/localcharset.m4: Update.
1460 * gnulib/import/m4/locale-fr.m4: Update.
1461 * gnulib/import/m4/locale-ja.m4: Update.
1462 * gnulib/import/m4/locale-zh.m4: Update.
1463 * gnulib/import/m4/localtime-buffer.m4: Update.
1464 * gnulib/import/m4/longlong.m4: Update.
1465 * gnulib/import/m4/lstat.m4: Update.
1466 * gnulib/import/m4/malloc.m4: Update.
1467 * gnulib/import/m4/malloca.m4: Update.
1468 * gnulib/import/m4/math_h.m4: Update.
1469 * gnulib/import/m4/mbrtowc.m4: Update.
1470 * gnulib/import/m4/mbsinit.m4: Update.
1471 * gnulib/import/m4/mbsrtowcs.m4: Update.
1472 * gnulib/import/m4/mbstate_t.m4: Update.
1473 * gnulib/import/m4/memchr.m4: Update.
1474 * gnulib/import/m4/memmem.m4: Update.
1475 * gnulib/import/m4/mempcpy.m4: Update.
1476 * gnulib/import/m4/memrchr.m4: Update.
1477 * gnulib/import/m4/mkdir.m4: Update.
1478 * gnulib/import/m4/mkstemp.m4: Update.
1479 * gnulib/import/m4/mmap-anon.m4: Update.
1480 * gnulib/import/m4/mode_t.m4: Update.
1481 * gnulib/import/m4/msvc-inval.m4: Update.
1482 * gnulib/import/m4/msvc-nothrow.m4: Update.
1483 * gnulib/import/m4/multiarch.m4: Update.
1484 * gnulib/import/m4/nocrash.m4: Update.
1485 * gnulib/import/m4/off_t.m4: Update.
1486 * gnulib/import/m4/onceonly.m4: Update.
1487 * gnulib/import/m4/open-cloexec.m4: Update.
1488 * gnulib/import/m4/open.m4: Update.
1489 * gnulib/import/m4/openat.m4: Update.
1490 * gnulib/import/m4/opendir.m4: Update.
1491 * gnulib/import/m4/pathmax.m4: Update.
1492 * gnulib/import/m4/rawmemchr.m4: Update.
1493 * gnulib/import/m4/readdir.m4: Update.
1494 * gnulib/import/m4/readlink.m4: Update.
1495 * gnulib/import/m4/realloc.m4: Update.
1496 * gnulib/import/m4/rename.m4: Update.
1497 * gnulib/import/m4/rewinddir.m4: Update.
1498 * gnulib/import/m4/rmdir.m4: Update.
1499 * gnulib/import/m4/save-cwd.m4: Update.
1500 * gnulib/import/m4/secure_getenv.m4: Update.
1501 * gnulib/import/m4/setenv.m4: Update.
1502 * gnulib/import/m4/signal_h.m4: Update.
1503 * gnulib/import/m4/ssize_t.m4: Update.
1504 * gnulib/import/m4/stat-time.m4: Update.
1505 * gnulib/import/m4/stat.m4: Update.
1506 * gnulib/import/m4/std-gnu11.m4: Update.
1507 * gnulib/import/m4/stdbool.m4: Update.
1508 * gnulib/import/m4/stddef_h.m4: Update.
1509 * gnulib/import/m4/stdint.m4: Update.
1510 * gnulib/import/m4/stdio_h.m4: Update.
1511 * gnulib/import/m4/stdlib_h.m4: Update.
1512 * gnulib/import/m4/strchrnul.m4: Update.
1513 * gnulib/import/m4/strdup.m4: Update.
1514 * gnulib/import/m4/strerror.m4: Update.
1515 * gnulib/import/m4/string_h.m4: Update.
1516 * gnulib/import/m4/strstr.m4: Update.
1517 * gnulib/import/m4/strtok_r.m4: Update.
1518 * gnulib/import/m4/sys_socket_h.m4: Update.
1519 * gnulib/import/m4/sys_stat_h.m4: Update.
1520 * gnulib/import/m4/sys_time_h.m4: Update.
1521 * gnulib/import/m4/sys_types_h.m4: Update.
1522 * gnulib/import/m4/tempname.m4: Update.
1523 * gnulib/import/m4/time_h.m4: Update.
1524 * gnulib/import/m4/unistd-safer.m4: Update.
1525 * gnulib/import/m4/unistd_h.m4: Update.
1526 * gnulib/import/m4/warn-on-use.m4: Update.
1527 * gnulib/import/m4/wchar_h.m4: Update.
1528 * gnulib/import/m4/wchar_t.m4: Update.
1529 * gnulib/import/m4/wctype_h.m4: Update.
1530 * gnulib/import/m4/wint_t.m4: Update.
1531 * gnulib/import/malloc.c: Update.
1532 * gnulib/import/malloc/scratch_buffer.h: Update.
1533 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
1534 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
1535 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
1536 * gnulib/import/malloca.c: Update.
1537 * gnulib/import/malloca.h: Update.
1538 * gnulib/import/malloca.valgrind: Update.
1539 * gnulib/import/math.in.h: Update.
1540 * gnulib/import/mbrtowc.c: Update.
1541 * gnulib/import/mbsinit.c: Update.
1542 * gnulib/import/mbsrtowcs-impl.h: Update.
1543 * gnulib/import/mbsrtowcs-state.c: Update.
1544 * gnulib/import/mbsrtowcs.c: Update.
1545 * gnulib/import/memchr.c: Update.
1546 * gnulib/import/memmem.c: Update.
1547 * gnulib/import/mempcpy.c: Update.
1548 * gnulib/import/memrchr.c: Update.
1549 * gnulib/import/mkdir.c: Update.
1550 * gnulib/import/mkstemp.c: Update.
1551 * gnulib/import/msvc-inval.c: Update.
1552 * gnulib/import/msvc-inval.h: Update.
1553 * gnulib/import/msvc-nothrow.c: Update.
1554 * gnulib/import/msvc-nothrow.h: Update.
1555 * gnulib/import/open.c: Update.
1556 * gnulib/import/openat-die.c: Update.
1557 * gnulib/import/openat-priv.h: Update.
1558 * gnulib/import/openat-proc.c: Update.
1559 * gnulib/import/openat.c: Update.
1560 * gnulib/import/openat.h: Update.
1561 * gnulib/import/opendir.c: Update.
1562 * gnulib/import/pathmax.h: Update.
1563 * gnulib/import/pipe-safer.c: Update.
1564 * gnulib/import/rawmemchr.c: Update.
1565 * gnulib/import/readdir.c: Update.
1566 * gnulib/import/readlink.c: Update.
1567 * gnulib/import/realloc.c: Update.
1568 * gnulib/import/ref-add.sin: Update.
1569 * gnulib/import/ref-del.sin: Update.
1570 * gnulib/import/rename.c: Update.
1571 * gnulib/import/rewinddir.c: Update.
1572 * gnulib/import/rmdir.c: Update.
1573 * gnulib/import/same-inode.h: Update.
1574 * gnulib/import/save-cwd.c: Update.
1575 * gnulib/import/save-cwd.h: Update.
1576 * gnulib/import/scratch_buffer.h: Update.
1577 * gnulib/import/secure_getenv.c: Update.
1578 * gnulib/import/setenv.c: Update.
1579 * gnulib/import/signal.in.h: Update.
1580 * gnulib/import/stat-time.c: Update.
1581 * gnulib/import/stat-time.h: Update.
1582 * gnulib/import/stat-w32.c: Update.
1583 * gnulib/import/stat-w32.h: Update.
1584 * gnulib/import/stat.c: Update.
1585 * gnulib/import/stdbool.in.h: Update.
1586 * gnulib/import/stddef.in.h: Update.
1587 * gnulib/import/stdint.in.h: Update.
1588 * gnulib/import/stdio.in.h: Update.
1589 * gnulib/import/stdlib.in.h: Update.
1590 * gnulib/import/str-two-way.h: Update.
1591 * gnulib/import/strchrnul.c: Update.
1592 * gnulib/import/strdup.c: Update.
1593 * gnulib/import/streq.h: Update.
1594 * gnulib/import/strerror-override.c: Update.
1595 * gnulib/import/strerror-override.h: Update.
1596 * gnulib/import/strerror.c: Update.
1597 * gnulib/import/string.in.h: Update.
1598 * gnulib/import/stripslash.c: Update.
1599 * gnulib/import/strnlen1.c: Update.
1600 * gnulib/import/strnlen1.h: Update.
1601 * gnulib/import/strstr.c: Update.
1602 * gnulib/import/strtok_r.c: Update.
1603 * gnulib/import/sys_stat.in.h: Update.
1604 * gnulib/import/sys_time.in.h: Update.
1605 * gnulib/import/sys_types.in.h: Update.
1606 * gnulib/import/tempname.c: Update.
1607 * gnulib/import/tempname.h: Update.
1608 * gnulib/import/time.in.h: Update.
1609 * gnulib/import/unistd--.h: Update.
1610 * gnulib/import/unistd-safer.h: Update.
1611 * gnulib/import/unistd.in.h: Update.
1612 * gnulib/import/unsetenv.c: Update.
1613 * gnulib/import/verify.h: Update.
1614 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1615 * gnulib/import/wchar.in.h: Update.
1616 * gnulib/import/wctype.in.h: Update.
1617 * gnulib/import/xalloc-oversized.h: Update.
1618 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1619 "53e2c179f26a890fa6685af4b6c1397ee370433b".
1620
1621 2018-08-16 Gary Benson <gbenson@redhat.com>
1622
1623 PR gdb/13000:
1624 * gdb/main.c (captured_main_1): Exit with nonzero status
1625 in batch mode if the last command to be executed failed.
1626 * NEWS: Mention the above.
1627
1628 2018-08-29 Simon Marchi <simon.marchi@ericsson.com>
1629
1630 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
1631 end of warning message.
1632
1633 2018-08-29 Alan Hayward <alan.hayward@arm.com>
1634
1635 PR gdb/22943:
1636 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
1637 (aarch64_extract_return_value): Use
1638 aapcs_is_vfp_call_or_return_candidate.
1639 (aarch64_return_in_memory): Likewise.
1640 (aarch64_store_return_value): Likewise.
1641
1642 2018-08-29 Alan Hayward <alan.hayward@arm.com>
1643
1644 * aarch64-tdep.c
1645 (aapcs_is_vfp_call_or_return_candidate): Make static
1646 (pass_in_v_or_stack): Remove function.
1647 (pass_in_v_vfp_candidate): New function.
1648 (aarch64_push_dummy_call): Check for float register candidates.
1649
1650 2018-08-29 Alan Hayward <alan.hayward@arm.com>
1651
1652 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
1653 (aapcs_is_vfp_call_or_return_candidate_1): New function.
1654 (aapcs_is_vfp_call_or_return_candidate): Likewise.
1655
1656 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
1657
1658 PR build/23399
1659 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
1660 (struct ipa_sym_addresses): Rename to...
1661 (struct ipa_sym_addresses_common): ... this.
1662 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
1663
1664 2018-08-28 Tom Tromey <tom@tromey.com>
1665
1666 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1667 (token_fifo): Now a std::vector.
1668 (yylex, c_parse): Update.
1669 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1670 (token_fifo): Now a std::vector.
1671 (yylex, d_parse): Update.
1672 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1673 (token_fifo): Now a std::vector.
1674 (yylex, go_parse): Update.
1675
1676 2018-08-28 Simon Marchi <simon.marchi@ericsson.com>
1677
1678 * parser-defs.h (struct type_stack) <elements>: Change type to
1679 std::vector<union type_stack_elt>.
1680 <depth, size>: Remove.
1681 * parse.c (parse_exp_in_context_1): Adjust.
1682 (type_stack_reserve): Remove.
1683 (check_type_stack_depth): Remove.
1684 (insert_into_type_stack): Adjust to std::vector.
1685 (insert_type): Likewise.
1686 (push_type): Likewise.
1687 (push_type_int): Likewise.
1688 (insert_type_address_space): Likewise.
1689 (pop_type): Likewise.
1690 (pop_type_int): Likewise.
1691 (pop_typelist): Likewise.
1692 (pop_type_stack): Likewise.
1693 (append_type_stack): Likewise.
1694 (push_type_stack): Likewise.
1695 (get_type_stack): Likewise.
1696 (type_stack_cleanup): Likewise.
1697 (push_typelist): Likewise.
1698 (follow_types): Likewise.
1699 (_initialize_parse): Likewise.
1700
1701 2018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
1702
1703 * NEWS: Mention csky target.
1704
1705 2018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
1706 Hafiz Abid Qadeer <abidh@codesourcery.com>
1707 Don Breazeal <donb@codesourcery.com>
1708
1709 * csky-linux-tdep.c: New file.
1710 * csky-tdep.c: Likewise.
1711 * csky-tdep.h: Likewise.
1712 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
1713 csky-tdep.o.
1714 (HFILES_NO_SRCDIR): Add csky-tdep.h.
1715 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
1716 * configure.tgt: Add csky support.
1717
1718 2018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
1719
1720 * python/py-framefilter.c (py_print_frame): Print frame architecture
1721 when printing on an MI output.
1722
1723 2018-08-27 Tom Tromey <tom@tromey.com>
1724
1725 PR build/23087:
1726 * configure: Rebuild.
1727 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
1728
1729 2018-08-27 Tom Tromey <tom@tromey.com>
1730
1731 * aarch64-linux-tdep.c
1732 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
1733 casts to int.
1734
1735 2018-08-27 Tom Tromey <tom@tromey.com>
1736
1737 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
1738 unsigned.
1739 (ppc64_standard_linkage1, ppc64_standard_linkage2)
1740 (ppc64_standard_linkage3, ppc64_standard_linkage4)
1741 (ppc64_standard_linkage5, ppc64_standard_linkage6)
1742 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
1743 unsigned.
1744
1745 2018-08-27 Tom Tromey <tom@tromey.com>
1746
1747 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
1748 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
1749
1750 2018-08-27 Tom Tromey <tom@tromey.com>
1751
1752 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
1753 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
1754 ULONGEST_MAX.
1755 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
1756 ULONGEST_MAX.
1757 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
1758 ULONGEST_MAX.
1759 * sparc-linux-tdep.c (sparc32_linux_sigframe)
1760 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
1761 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
1762 ULONGEST_MAX.
1763 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
1764 (ppc64_linux_sigaction_tramp_frame)
1765 (ppc32_linux_sighandler_tramp_frame)
1766 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
1767 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
1768 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
1769 * mn10300-linux-tdep.c (am33_linux_sigframe)
1770 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
1771 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
1772 * mips-linux-tdep.c (mips_linux_o32_sigframe)
1773 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
1774 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
1775 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
1776 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
1777 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
1778 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
1779 * microblaze-linux-tdep.c
1780 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
1781 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
1782 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
1783 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
1784 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
1785 * common/common-types.h (ULONGEST_MAX): New define.
1786 (CORE_ADDR_MAX): Fix formatting.
1787 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
1788 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
1789 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
1790 (arm_linux_rt_sigreturn_tramp_frame)
1791 (arm_eabi_linux_sigreturn_tramp_frame)
1792 (arm_eabi_linux_rt_sigreturn_tramp_frame)
1793 (thumb2_eabi_linux_sigreturn_tramp_frame)
1794 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
1795 (arm_linux_restart_syscall_tramp_frame)
1796 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
1797 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
1798 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
1799 ULONGEST_MAX.
1800 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
1801
1802 2018-08-27 Tom Tromey <tom@tromey.com>
1803
1804 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
1805 CORE_ADDR_MAX.
1806 * mips-tdep.c (mips_deal_with_atomic_sequence)
1807 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
1808 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
1809 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
1810 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
1811 CORE_ADDR_MAX.
1812 * aarch64-tdep.c (aarch64_software_single_step): Use
1813 CORE_ADDR_MAX.
1814
1815 2018-08-27 Tom Tromey <tom@tromey.com>
1816
1817 * linespec.c (complete_linespec_component): Add cast to "char".
1818 * completer.c (completion_tracker::build_completion_result): Add
1819 cast to "char".
1820
1821 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
1822
1823 * solist.h (struct solist, struct target_so_ops): Fix
1824 indentation.
1825
1826 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
1827
1828 * ada-tasks.c (ada_task_info_s): Remove typedef.
1829 (DEF_VEC_O(ada_task_info_s)): Remove.
1830 (struct ada_tasks_inferior_data): Initialize fields.
1831 <task_list>: Make an std::vector.
1832 (get_ada_tasks_inferior_data): Allocate with new.
1833 (ada_get_task_number): Adjust.
1834 (get_task_number_from_id): Likewise.
1835 (valid_task_id): Likewise.
1836 (ada_get_task_info_from_ptid): Likewise.
1837 (iterate_over_live_ada_tasks): Likewise.
1838 (add_ada_task): Likewise.
1839 (read_known_tasks): Likewise.
1840 (ada_build_task_list): Likewise.
1841 (print_ada_task_info): Likewise.
1842 (info_task): Likewise.
1843 (task_command_1): Likewise.
1844
1845 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
1846
1847 * ada-lang.c (add_angle_brackets): Return std::string.
1848
1849 2018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
1850
1851 * python/py-threadevent.c (py_get_event_thread): Initialize
1852 pythread.
1853
1854 2018-08-24 Pedro Alves <palves@redhat.com>
1855
1856 * python/py-bpevent.c (create_breakpoint_event_object): Use
1857 copy-initialization.
1858 * python/py-continueevent.c (emit_continue_event): Use
1859 copy-initialization.
1860 * python/py-exitedevent.c (create_exited_event_object): Return a
1861 gdbpy_ref<>.
1862 (emit_exited_event): Use copy-initialization.
1863 * python/py-inferior.c (python_new_inferior)
1864 (python_inferior_deleted, add_thread_object): Use
1865 copy-initialization.
1866 * python/py-infevents.c (create_inferior_call_event_object)
1867 (create_register_changed_event_object)
1868 (create_memory_changed_event_object): Return a gdbpy_ref<>.
1869 (emit_inferior_call_event, emit_memory_changed_event)
1870 (emit_register_changed_event): Use copy-initialization.
1871 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1872 Return a gdbpy_ref<>.
1873 (emit_new_objfile_event): Use copy-initialization.
1874 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
1875 (emit_clear_objfiles_event): Use copy-initialization.
1876 * python/py-signalevent.c (create_signal_event_object): Use
1877 copy-initialization.
1878 * python/py-threadevent.c (create_thread_event_object): Use
1879 copy-initialization.
1880
1881 2018-08-24 Pedro Alves <palves@redhat.com>
1882 Simon Marchi <simon.marchi@ericsson.com>
1883
1884 PR gdb/23379
1885 * python/py-continueevent.c: Include "gdbthread.h".
1886 (create_continue_event_object): Add intro comment. Add 'ptid'
1887 parameter. Use it to find thread to pass to
1888 create_thread_event_object.
1889 (emit_continue_event): Pass PTID down to
1890 create_continue_event_object.
1891 * python/py-event.h (py_get_event_thread): Declare.
1892 (create_thread_event_object): Remove default from 'thread'
1893 parameter.
1894 * python/py-stopevent.c (create_stop_event_object): Use
1895 py_get_event_thread.
1896 * python/py-threadevent.c (get_event_thread): Rename to ...
1897 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
1898 and use it to find the thread.
1899 (create_thread_event_object): Assert that THREAD isn't null.
1900 Don't find the event thread here.
1901
1902 2018-08-23 Kevin Buettner <kevinb@redhat.com>
1903
1904 * block.h (blockrange, blockranges): New struct declarations.
1905 (struct block): Add new field named `ranges'.
1906 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
1907 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
1908 macros for accessing ranges in struct block.
1909 (make_blockranges): New declaration.
1910 block.c (make_blockranges): New function.
1911 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
1912 for block.
1913 * symtab.h (find_pc_partial_function): Add new parameter `block'.
1914 * blockframe.c (cache_pc_function_block): New static global.
1915 (clear_pc_function_cache): Clear cache_pc_function_block.
1916 (find_pc_partial_function): Move comment to symtab.h. Add
1917 support for non-contiguous blocks.
1918 * cli/cli-cmds.c (block.h): Include.
1919 (print_disassembly): Handle printing of non-contiguous blocks.
1920 (disassemble_current_function): Likewise.
1921 (disassemble_command): Likewise.
1922
1923 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
1924 BLOCK_START.
1925 * blockframe.c (get_pc_function_start): Likewise.
1926 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
1927 (gcc_symbol_address): Likewise.
1928 * compile/compile-object-run.c (compile_object_run): Likewise.
1929 * compile/compile.c (get_expr_block_and_pc): Likewise.
1930 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
1931 (func_addr_to_tail_call_list): Likewise.
1932 * findvar.c (default_read_var_value): Likewise.
1933 * inline-frame.c (inline_frame_this_id): Likewise.
1934 (skip-inline_frames): Likewise.
1935 * infcmd.c (until_next_command): Likewise.
1936 * linespec.c (convert_linespec_to_sals): Likewise.
1937 * parse.c (parse_exp_in_context_1): Likewise.
1938 * printcmd.c (build_address_symbolic): likewise.
1939 (info_address_command): Likewise.
1940 symtab.c (find_function_start_sal): Likewise.
1941 (skip_prologue_sal): Likewise.
1942 (find_function_alias_target): Likewise.
1943 (find_gnu_ifunc): Likewise.
1944 * stack.c (find_frame_funname): Likewise.
1945 * symtab.c (fixup_symbol_section): Likewise.
1946 (find_function_start_sal): Likewise.
1947 (skip_prologue_sal): Likewsie.
1948 (find_function_alias_target): Likewise.
1949 (find_gnu_ifunc): Likewise.
1950 * tracepoint.c (info_scope_command): Likewise.
1951 * value.c (value_fn_field): Likewise.
1952
1953 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
1954 in place of find_pc_partial_function.
1955 * blockframe.c (find_function_entry_range_from_pc): New function.
1956 * symtab.h (find_function_entry_range_from_pc): Declare and document.
1957 * objfiles.c (objfile_relocate1): Relocate start and end addresses
1958 for each range in a block.
1959
1960
1961 2018-08-23 Xavier Roirand <roirand@adacore.com>
1962
1963 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
1964 incrementation.
1965
1966 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
1967
1968 * solib-svr4.c (read_program_headers_from_bfd): Return
1969 gdb::optional<gdb::byte_vector>.
1970 (svr4_exec_displacement): Adjust.
1971
1972 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
1973
1974 * solib-svr4.c (read_program_header): Return
1975 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
1976 (find_program_interpreter): Return
1977 gdb::optional<gdb::byte_vector>.
1978 (scan_dyntag_auxv): Adjust.
1979 (enable_break): Adjust.
1980 (svr4_exec_displacement): Adjust.
1981
1982 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
1983
1984 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
1985 * inf-child.c (inf_child_target::terminal_save_inferior): New.
1986
1987 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
1988
1989 * guile/scm-string.c (gdbscm_scm_from_printf): Use
1990 string_vprintf.
1991 * guile/scm-utils.c (gdbscm_printf): Likewise.
1992 * serial.c (serial_printf): Likewise.
1993 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
1994
1995 2018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
1996
1997 * stack.c (print_frame): Print frame architecture when printing on
1998 an MI output.
1999 * NEWS: Mention new "arch" attribute in frame output.
2000
2001 2018-08-21 Alan Hayward <alan.hayward@arm.com>
2002
2003 * arch/aarch64.h (aarch64_regnum): Update comment.
2004
2005 2018-08-21 Alan Hayward <alan.hayward@arm.com>
2006
2007 * NEWS: Add SVE to 8.2 section.
2008
2009 2018-08-21 Pedro Alves <palves@redhat.com>
2010
2011 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
2012 out from gdbscm_parse_function_args.
2013 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
2014 gdbscm_parse_function_args_1.
2015
2016 2018-08-21 Simon Marchi <simon.marchi@ericsson.com>
2017
2018 PR gdb/17816
2019 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
2020 operator.
2021
2022 2018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
2023
2024 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
2025
2026 2018-08-19 Michael Spang <spang@google.com>
2027
2028 PR gdb/11786
2029 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
2030 for PT_TLS segments.
2031
2032 2018-08-18 Kevin Buettner <kevinb@redhat.com>
2033
2034 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
2035 dwarf_variable_value.
2036 * dwarf2-frame.c (class dwarf_expr_executor):
2037 Add override for dwarf_variable_value.
2038 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
2039 (class symbol_needs_eval_context): Likewise.
2040 (indirect_synthetic_pointer): Add forward declaration.
2041 (sect_variable_value): New function.
2042 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
2043 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
2044 for DW_OP_GNU_variable_value.
2045
2046 2018-08-16 Tom Tromey <tom@tromey.com>
2047
2048 * top.c (read_command_file): Update.
2049 (command_line_input): Remove "repeat" argument.
2050 * ada-lang.c (get_selections): Update.
2051 * linespec.c (decode_line_2): Update.
2052 * defs.h (command_line_input): Remove argument.
2053 * cli/cli-script.c (read_next_line): Update.
2054 * python/py-gdb-readline.c: Update.
2055
2056 2018-08-17 Tom Tromey <tom@tromey.com>
2057
2058 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
2059 command_line_input.
2060
2061 2018-08-15 Tom Tromey <tom@tromey.com>
2062
2063 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
2064
2065 2018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
2066
2067 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
2068 If used, use find_pc_partial_function to find address range
2069 to disassemble.
2070 * mi/mi-main.c (mi_cmd_list_features): Report
2071 "data-disassemble-a-option" feature.
2072 * NEWS: Mention new -data-disassemble option -a.
2073
2074 2018-08-13 Tom Tromey <tom@tromey.com>
2075
2076 * common/common-defs.h (_FORTIFY_SOURCE): Define.
2077
2078 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2079
2080 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
2081 (aarch64_linux_collect_sve_regset): Likewise.
2082 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
2083 * regcache.h (regcache_map_entry_size): New function.
2084
2085 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2086
2087 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
2088 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
2089 (SVE_HEADER_VL_LENGTH): Likewise.
2090 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
2091 (SVE_HEADER_FLAGS_LENGTH): Likewise.
2092 (SVE_HEADER_RESERVED_LENGTH): Likewise.
2093 (SVE_HEADER_SIZE_OFFSET): Likewise.
2094 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
2095 (SVE_HEADER_VL_OFFSET): Likewise.
2096 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
2097 (SVE_HEADER_FLAGS_OFFSET): Likewise.
2098 (SVE_HEADER_RESERVED_OFFSET): Likewise.
2099 (SVE_HEADER_SIZE): Likewise.
2100 (aarch64_linux_core_read_vq): Add function.
2101 (aarch64_linux_core_read_description): Check for SVE section.
2102
2103 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2104
2105 * aarch64-fbsd-tdep.c
2106 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
2107 collect_size.
2108 * aarch64-linux-tdep.c
2109 (aarch64_linux_iterate_over_regset_sections): Likewise.
2110 * alpha-linux-tdep.c
2111 (alpha_linux_iterate_over_regset_sections):
2112 * alpha-nbsd-tdep.c
2113 (alphanbsd_iterate_over_regset_sections): Likewise.
2114 * amd64-fbsd-tdep.c
2115 (amd64fbsd_iterate_over_regset_sections): Likewise.
2116 * amd64-linux-tdep.c
2117 (amd64_linux_iterate_over_regset_sections): Likewise.
2118 * arm-bsd-tdep.c
2119 (armbsd_iterate_over_regset_sections): Likewise.
2120 * arm-fbsd-tdep.c
2121 (arm_fbsd_iterate_over_regset_sections): Likewise.
2122 * arm-linux-tdep.c
2123 (arm_linux_iterate_over_regset_sections): Likewise.
2124 * corelow.c (get_core_registers_cb): Likewise.
2125 (core_target::fetch_registers): Likewise.
2126 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
2127 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
2128 * gdbarch.h (void): Regenerate.
2129 * gdbarch.sh: Add supply_size and collect_size.
2130 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
2131 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
2132 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
2133 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
2134 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
2135 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
2136 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
2137 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
2138 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
2139 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
2140 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
2141 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
2142 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
2143 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
2144 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
2145 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
2146 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
2147 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
2148 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
2149 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
2150 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
2151 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
2152 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
2153 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
2154 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
2155 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
2156 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
2157 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
2158 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
2159 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
2160
2161 2018-08-10 Simon Marchi <simon.marchi@ericsson.com>
2162
2163 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
2164 with string_printf.
2165
2166 2018-08-10 Keith Seitz <keiths@redhat.com>
2167
2168 * compile/compile-c-support.c (add_code_header, add_code_footer):
2169 Move into policy class.
2170 (c_push_user_expression, pop_user_expression_nop)
2171 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
2172 (compile_program): New host class.
2173 (c_compile_program): New typedef.
2174 (c_compute_porgram): Use c_compile_program.
2175
2176 2018-08-10 Keith Seitz <keiths@redhat.com>
2177
2178 * compile/compile-internal.h (compile_instance::~compile_instance):
2179 Remove calls to htab_delete.
2180 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
2181 * compile.c (compile_instance::compile_instance): Initialize
2182 htab unique pointers.
2183 (compile_instance::get_cached_type, compile_instance::insert_type)
2184 (compile_instance::error_symbol_once): Update for unique_ptr.
2185
2186 2018-08-10 Keith Seitz <keiths@redhat.com>
2187
2188 * compile/compile-c-symbols.c (struct symbol_error)
2189 (hash_symbol_error, eq_symbol_error, del_symbol_error)
2190 (compile_instance::insert_symbol_error)
2191 (compile_instance::error_symbol_once): Move to ...
2192 * compile/compile.c: ... here.
2193
2194 2018-08-10 Keith Seitz <keiths@redhat.com>
2195
2196 * compile/compile-c-support.c (c_get_compile_context): Use `new'
2197 instead of `new_compile_instance'.
2198 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
2199 Update description.
2200 If the symbol error map is not initialized, create it.
2201 (generate_c_for_for_one_symbol): Do not check/initialize
2202 the symbol error map.
2203 * compile/compile-c-types.c (compile_c_instance): Make a class.
2204 Update all callers.
2205 (compile_instance::compile_instance): Initialize the type cache.
2206 (get_cached_type): New function.
2207 (insert_type): Update description.
2208 (compile_c_instance::m_default_cflags): Define.
2209 (convert_type): Update description. Use get_cached_type.
2210 (delete_instance): Moved to destructor.
2211 (new_compile_instance): Moved to constructor.
2212 * compile/compile-c.h (compile_c_instance): Make class inheriting
2213 from compile_instance.
2214 <base>: Remove field.
2215 <type_map, symbol_err_map>: Move to base class.
2216 <c_plugin>: Rename to `m_plugin' and remove pointer type.
2217 * compile/compile-internal.h (compile_instance): Make class.
2218 <type_map_t, symbol_err_map_t>: Define.
2219 <fe>: Rename to `m_gcc_fe'.
2220 <scope, block, gcc_target_options>: Add `m_' prefix.
2221 <m_type_map, m_symbol_err_map>: New fields, moved from
2222 compile_c_instance.
2223 <destroy>: Remove.
2224 (convert_type, new_compile_instance): Remove.
2225 * compile/compile.c (cleanup_compile_instance): Remove.
2226 (compile_to_object): Use unique_ptr to eliminate cleanups.
2227 (compile_instance::set_print_callback, compile_instance::version)
2228 (compile_instance::set_verbose)
2229 (compile_instance::set_driver_filename)
2230 (compile_instance::set_triplet_regexp)
2231 (compile_instance::set_arguments)
2232 (compile_instance::set_source_file)
2233 (compile_instance::compile): Define.
2234
2235 2018-08-10 Keith Seitz <keiths@redhat.com>
2236
2237 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
2238 * compile/compile-c-types.c: Define GCC_METHODN macros and include
2239 gcc-c-fe.def to define C plugin.
2240 (delete_instance): Delete `c_plugin'.
2241 (new_compile_instance): Initialize `c_plugin'.
2242 * compile/compile-c.h: Include gcc_c_plugin.h.
2243 (struct compile_c_instance) <c_plugin>: New member.
2244 * gcc-c-plugin.h: New file.
2245 Update all callers with API change.
2246
2247 2018-08-10 Keith Seitz <keiths@redhat.com>
2248
2249 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
2250 (HFILES_NO_SRCDIR): ... to here.
2251 Add compile-internal.h and compile-c.h.
2252 * compile/compile-c-support.c: Include compile-c.h.
2253 * compile/compile-c-symbols.c: Include compile-c.h.
2254 (generate_c_for_variable_locations): Update comment.
2255 * compile/compile-c-types.c: Include compile-c.h.
2256 * compile/compile-c.h: New file -- moved C language declarations
2257 from other files here.
2258 * compile/compile-internal.h: Do not include hashtab.h or
2259 common/enum-flags.h.
2260 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
2261 (gcc_convert_symbol, gcc_symbol_address)
2262 (generate_c_for_variable_locations, c_get_mode_for_size)
2263 (c_get_range_decl_name): Definitions moved to compile-c.h.
2264 * compile/compile-loc2c.c: Include compile-c.h.
2265
2266 2018-08-10 Keith Seitz <keiths@redhat.com>
2267
2268 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
2269 (c_symbol_substitution_name): ... this.
2270 Update all callers.
2271
2272 2018-08-10 Keith Seitz <keiths@redhat.com>
2273
2274 * compile/compile-c-support.c (c_compute_program): Use
2275 unique_xmalloc_ptr to eliminate cleanup.
2276 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
2277 Return a unique_xmalloc_ptr and eliminate cleanup.
2278 * compile/compile-internal.h (generate_c_for_variable_locations):
2279 Return unique_xmalloc_ptr and update description.
2280
2281 2018-08-10 Alan Hayward <alan.hayward@arm.com>
2282
2283 * corelow.c (core_target::get_core_register_section): Rename
2284 min_size to section_min_size.
2285
2286 2018-08-09 Jim Wilson <jimw@sifive.com>
2287
2288 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
2289 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
2290 * NEWS: Mention new GNU/Linux RISC-V target.
2291 * configure.host: Add riscv*-*-linux*.
2292 * configure.nat: Add riscv*.
2293 * configure.tgt: Add riscv*-*-linux*.
2294 * riscv-linux-nat.c: New file.
2295 * riscv-linux-tdep.c: New file.
2296
2297 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
2298
2299 * infrun.c (resume): Make static, add forward declaration.
2300 (proceed): Update header comment.
2301 * infrun.h (resume): Delete declaration.
2302
2303 2018-08-09 Tom Tromey <tom@tromey.com>
2304
2305 * riscv-tdep.h: Minor formatting fixes.
2306
2307 2018-08-09 Simon Marchi <simon.marchi@ericsson.com>
2308
2309 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
2310 * dwarf-index-cache.c (create_dir_and_check): Likewise.
2311 (test_mkdir_recursive): Likewise.
2312 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
2313
2314 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
2315
2316 * valarith.c (value_subscripted_rvalue): If an array is not in
2317 memory, and we don't know the upper bound, then we can't know that
2318 the requested element exists or not.
2319
2320 2018-08-08 Simon Marchi <simon.marchi@ericsson.com>
2321
2322 * target.c (str_comma_list_concat_elem): Fix typo in comment.
2323 (target_options_to_string): Add comment.
2324
2325 2018-08-08 Tom Tromey <tom@tromey.com>
2326
2327 * unittests/scoped_mmap-selftests.c: Check result of "write".
2328
2329 2018-08-08 Jim Wilson <jimw@sifive.com>
2330
2331 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
2332 (decode_register_index_short): New.
2333 (decode_j_type_insn, decode_cj_type_insn): New.
2334 (decode_b_type_insn, decode_cb_type_insn): New.
2335 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
2336 local xlen. Check xlen when decoding ambiguous compressed insns. In
2337 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
2338 is_c_sw_insn instead of is_sw_insn.
2339 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
2340 (riscv_software_single_step): New.
2341 * riscv-tdep.h (riscv_software_single_step): Declare.
2342
2343 * riscv-tdep.c (riscv_isa_xlen): Drop static.
2344 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
2345
2346 2018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
2347
2348 PR gdb/18050:
2349 * target.c (dispose_inferior): Don't dispose of inferiors that are
2350 already killed.
2351
2352 2018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
2353
2354 * remote.c (remote_target::download_tracepoint): Change char* to
2355 const char*.
2356
2357 2018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2358
2359 * target.h (target_options_to_string): Return an std::string.
2360 * target.c (str_comma_list_concat_elem): Return void, use
2361 std::string.
2362 (do_option): Likewise.
2363 (target_options_to_string): Return an std::string.
2364 * linux-nat.c (linux_nat_target::wait): Adjust.
2365 * target-debug.h (target_debug_print_options): Adjust.
2366
2367 2018-08-07 Tom Tromey <tom@tromey.com>
2368
2369 * Makefile.in (CPPFLAGS): New variable.
2370 (INTERNAL_CPPFLAGS): Use it.
2371
2372 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2373
2374 * NEWS: Mention the index cache.
2375
2376 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2377
2378 * common/pathstuff.h (get_standard_cache_dir): New.
2379 * common/pathstuff.c (get_standard_cache_dir): New.
2380 * build-id.h (build_id_to_string): New.
2381 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
2382 DEBUG_STR_SUFFIX): Move to here.
2383 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
2384 DEBUG_STR_SUFFIX): Move from there.
2385 (write_psymtabs_to_index): Make non-static, add basename
2386 parameter. Write to temporary files, rename when done.
2387 (save_gdb_index_command): Adjust call to
2388 write_psymtabs_to_index.
2389 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
2390 field.
2391 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
2392 (get_gdb_index_contents_from_cache): New.
2393 (get_gdb_index_contents_from_cache_dwz): New.
2394 (dwarf2_initialize_objfile): Read index from cache.
2395 (dwarf2_build_psymtabs): Save to index.
2396 * dwarf-index-cache.h: New file.
2397 * dwarf-index-cache.c: New file.
2398 * dwarf-index-write.h: New file.
2399
2400 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2401
2402 * gnulib/aclocal.m4: Re-generate.
2403 * gnulib/config.in: Re-generate.
2404 * gnulib/configure: Re-generate.
2405 * gnulib/import/Makefile.am: Re-generate.
2406 * gnulib/import/Makefile.in: Re-generate.
2407 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
2408 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2409 * gnulib/import/m4/mkdir.m4: New file.
2410 * gnulib/import/mkdir.c: New file.
2411 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
2412 module.
2413
2414 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2415
2416 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
2417 * common/scoped_mmap.c: New file.
2418 * common/scoped_mmap.h (destroy): New method.
2419 (~scoped_mmap, reset): Use destroy.
2420 (scoped_mmap): New move constructor.
2421 (mmap_file): New declaration.
2422 * unittests/scoped_mmap-selftests.c (test_normal,
2423 test_invalid_filename, run_tests): New functions.
2424 (_initialize_scoped_mmap_selftests): Register selftest.
2425
2426 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2427
2428 * dwarf2read.c (read_gdb_index_from_section): Rename to...
2429 (read_gdb_index_from_buffer): ... this. Remove section
2430 parameter, add buffer parameter.
2431 (get_gdb_index_contents_ftype,
2432 get_gdb_index_contents_dwz_ftype): New typedefs.
2433 (dwarf2_read_gdb_index): Add callback parameters to get the
2434 index contents.
2435 (get_gdb_index_contents_from_section): New.
2436 (dwarf2_initialize_objfile): Update call to
2437 dwarf2_read_gdb_index.
2438
2439 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2440
2441 * common/filestuff.h (gdb_fopen_cloexec): New overload.
2442 (gdb_open_cloexec): Likewise.
2443 * nat/linux-osdata.c (command_from_pid): Use string_printf.
2444 (commandline_from_pid): Likewise.
2445 (linux_xfer_osdata_threads): Likewise.
2446 (linux_xfer_osdata_fds): Likewise.
2447 * ada-lang.c (is_package_name): Likewise.
2448 * auxv.c (procfs_xfer_auxv): Likewise.
2449 * breakpoint.c (print_one_breakpoint_location): Use
2450 uiout::field_fmt.
2451 (print_one_catch_solib): Use string_printf.
2452 * coff-pe-read.c (add_pe_exported_sym): Likewise.
2453 (add_pe_forwarded_sym): Likewise.
2454 * dwarf2read.c (create_type_unit_group): Likewise.
2455 (build_error_marker_type): Likewise.
2456 * infcall.c (get_function_name): Likewise.
2457 * valprint.c (print_converted_chars_to_obstack): Likewise.
2458 * xtensa-tdep.c (xtensa_register_type): Likewise.
2459
2460 2018-08-06 Simon Marchi <simon.marchi@ericsson.com>
2461
2462 * remote.c (remote_target::download_tracepoint): Fix format
2463 string errors.
2464
2465 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2466
2467 * tracefile.c: Include common/byte-vector.h.
2468 (trace_save): Change type of buf to gdb::byte_vector. Initialize
2469 with trace_regblock_size if needed. Update uses of buf.
2470
2471 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2472
2473 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
2474 std::vector<unsigned char>.
2475 * tracepoint.c (collection_list::collection_list): Remove
2476 m_regs_mask initializer from initializer list. Resize
2477 m_regs_mask using the largest remote register number.
2478 (collection_list::add_remote_register): Remove size check on
2479 m_regs_mask. Use at to access element.
2480 (collection_list::stringify): Change type of temp_buf to
2481 gdb::char_vector. Update uses of temp_buf. Resize if needed to
2482 stringify the register mask. Use pack_hex_byte for the register
2483 mask.
2484
2485 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2486
2487 * tracepoint.h (class collection_list) <add_register>: Remove.
2488 <add_remote_register, add_ax_registers, add_local_register>:
2489 Declare.
2490 <add_memrange>: Add scope parameter.
2491 * tracepoint.c (encode_actions_1): Likewise.
2492 (collection_list::add_register): Rename to ...
2493 (collection_list::add_remote_register): ... this. Update
2494 comment.
2495 (collection_list::add_ax_registers, add_local_register): New
2496 methods.
2497 (collection_list::add_memrange): Add scope parameter. Call
2498 add_local_register instead of add_register.
2499 (finalize_tracepoint_aexpr): New function.
2500 (collection_list::collect_symbol): Update calls to add_memrange.
2501 Call add_local_register instead of add_register. Call
2502 add_ax_registers. Call finalize_tracepoint_aexpr.
2503 (encode_actions_1): Get remote regnos for $reg action. Call
2504 add_remote_register, add_ax_registers, and add_local_register.
2505 Update call to add_memrange. Call finalize_tracepoint_aexpr.
2506 (validate_actionline): Call finalize_tracepoint_aexpr.
2507
2508 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2509
2510 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
2511 Replace array buf with gdb::char_vector buf, of size
2512 get_remote_packet_size (). Replace references to buf and
2513 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
2514 and xsnprintf with snprintf. Raise errors if the buffer is too
2515 small.
2516
2517 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2518
2519 * remote.c (remote_target::download_tracepoint): Fix the has_more
2520 predicate in the QTDP action list iteration.
2521
2522 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2523
2524 * remote.c (remote_target::download_tracepoint): Fix indentation
2525 in for block.
2526
2527 2018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2528
2529 * proc-api.c (_initialize_proc_api): Remove c, unused.
2530 * procfs.c (procfs_init_inferior): Remove signals, unused.
2531 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
2532 unused.
2533
2534 2018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
2535 Andrew Burgess <andrew.burgess@embecosm.com>
2536
2537 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
2538 'W_STOPCODE (0)' as this could be ambiguous.
2539
2540 2018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
2541
2542 * ser-tcp.c (net_open): Fix thinko when deciding whether to
2543 disable TCP's Nagle algorithm (use "ai_protocol" instead of
2544 "ai_socktype").
2545
2546 2018-08-02 Tom Tromey <tom@tromey.com>
2547
2548 PR symtab/16842.
2549 * dwarf2read.c (read_func_scope): Set symtab on template parameter
2550 symbols.
2551 (process_structure_scope): Likewise.
2552
2553 2018-08-02 Xavier Roirand <roirand@adacore.com>
2554
2555 PR gdb/22629:
2556 * darwin-nat.c (darwin_kill_inferior): Fix handling of
2557 kill inferior.
2558
2559 2018-08-02 Tom Tromey <tom@tromey.com>
2560
2561 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
2562 (darwin_suspend_inferior, darwin_resume_inferior)
2563 (darwin_decode_notify_message, darwin_resume_inferior_threads)
2564 (darwin_check_new_threads): Check result of get_darwin_inferior.
2565
2566 2018-07-31 Joel Brobecker <brobecker@adacore.com>
2567
2568 GDB 8.1.1 released.
2569
2570 2018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
2571
2572 * varobj.c (varobj_get_path_expr_parent): Report an error if
2573 parent is a dynamic varobj.
2574
2575 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
2576
2577 * gnulib/aclocal.m4: Re-generate.
2578 * gnulib/config.in: Re-generate.
2579 * gnulib/configure: Re-generate.
2580 * gnulib/import/Makefile.in: Re-generate.
2581 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2582 * gnulib/import/m4/onceonly.m4: Re-generate.
2583
2584 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
2585
2586 * target-descriptions.c (struct xml_test_tdesc): New.
2587 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
2588 (record_xml_tdesc): Update.
2589 (maintenance_check_xml_descriptions): Update.
2590 * target-descriptions.h (record_xml_tdesc): Update comment.
2591
2592 2018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
2593
2594 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
2595 checking array bounds are defined.
2596
2597 2018-07-30 Tom Tromey <tom@tromey.com>
2598
2599 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
2600 irreflexivity violation.
2601
2602 2018-07-30 Tom Tromey <tom@tromey.com>
2603
2604 * cli/cli-decode.c (lookup_cmd): Remove lint code.
2605 * value.c (unpack_long): Remove lint code.
2606 * valops.c (value_ind): Remove lint code.
2607 * valarith.c (value_x_binop, value_x_unop, value_equal)
2608 (value_pos): Remove lint code.
2609
2610 2018-07-28 Tom de Vries <tdevries@suse.de>
2611
2612 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
2613 with undefined upper bound as <optimized out>.
2614
2615 2018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
2616
2617 * gcore.in: Rename variable "name" to "prefix". Expand
2618 "usage" text.
2619
2620 2018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
2621
2622 * windows-nat.c (windows_nat_target::create_inferior): Update to
2623 call close() in global namespace.
2624
2625 2018-07-26 Tom Tromey <tom@tromey.com>
2626
2627 * dwarf-index-write.c (add_address_entry): Don't add objfile
2628 offsets.
2629 * dbxread.c (find_stab_function): Rename from
2630 find_stab_function_addr. Return a bound_minimal_symbol.
2631 (read_dbx_symtab): Use raw_text_low, raw_text_high.
2632 Don't add objfile offsets.
2633 (end_psymtab): Use raw_text_low, raw_text_high,
2634 MSYMBOL_VALUE_RAW_ADDRESS.
2635 (read_ofile_symtab): Update.
2636 (process_one_symbol): Update.
2637 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
2638 offsets.
2639 (dw2_relocate): Remove.
2640 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
2641 searching addrmap.
2642 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
2643 Update.
2644 (process_psymtab_comp_unit_reader, add_partial_symbol)
2645 (add_partial_subprogram, dwarf2_ranges_read): Update.
2646 (load_partial_dies): Update.
2647 (add_address_entry): Don't add objfile offsets.
2648 (dwarf2_build_include_psymtabs): Update.
2649 (create_addrmap_from_aranges): Don't add objfile offsets.
2650 (dw2_find_pc_sect_compunit_symtab): Update.
2651 * mdebugread.c (parse_symbol): Don't add objfile offsets.
2652 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
2653 Update.
2654 (parse_partial_symbols): Don't add objfile offsets. Use
2655 raw_text_low, raw_text_high. Update.
2656 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
2657 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
2658 or call 'relocate' quick function. Clear psymbol_map.
2659 * psympriv.h (struct partial_symbol) <address>: Add section
2660 offset.
2661 <set_unrelocated_address>: Rename from set_address.
2662 <raw_text_low, raw_text_high>: New methods.
2663 <text_low, text_high>: Add objfile parameter.
2664 (add_psymbol_to_bcache): Add 'section' parameter. Call
2665 set_unrelocated_address.
2666 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2667 (find_pc_psymbol): Update.
2668 (fixup_psymbol_section, relocate_psymtabs): Remove.
2669 (dump_psymtab, psym_functions): Update.
2670 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
2671 parameter.
2672 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2673 (start_psymtab_common): Update.
2674 * symfile-debug.c (debug_qf_relocate): Remove.
2675 (debug_sym_quick_functions): Update.
2676 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
2677 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
2678 Update.
2679
2680 2018-07-26 Tom Tromey <tromey@redhat.com>
2681
2682 * dbxread.c (end_psymtab): Use text_high_valid and
2683 text_low_valid.
2684 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
2685 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
2686 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
2687 Update comment.
2688 <text_low_valid, text_high_valid>: New fields.
2689 <set_text_low, set_text_high>: Update.
2690 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
2691
2692 2018-07-26 Tom Tromey <tom@tromey.com>
2693
2694 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
2695 Update.
2696 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
2697 textlow and texthigh fields.
2698 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
2699 Update.
2700 * mdebugread.c (parse_lines, parse_partial_symbols)
2701 (psymtab_to_symtab_1): Update.
2702 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
2703 Rename fields. Update comment. Now private.
2704 <text_low, text_high, set_text_low, set_text_high>: New methods.
2705 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2706 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
2707 (start_psymtab_common, maintenance_info_psymtabs)
2708 (maintenance_check_psymtabs): Update.
2709 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
2710 texthigh fields.
2711 (scan_xcoff_symtab): Update.
2712
2713 2018-07-26 Tom Tromey <tromey@redhat.com>
2714
2715 * psympriv.h (struct partial_symbol) <unrelocated_address,
2716 address, set_address>: New methods.
2717 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
2718 (fixup_psymbol_section, relocate_psymtabs): Update.
2719 (print_partial_symbols): Add 'objfile' parameter. Update.
2720 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
2721 Update.
2722
2723 2018-07-26 Tom Tromey <tom@tromey.com>
2724
2725 * dwarf-index-write.c (write_psymbols, debug_names::insert)
2726 (debug_names::write_psymbols): Update.
2727 * psympriv.h (struct partial_symbol): Derive from
2728 general_symbol_info.
2729 <obj_section>: New method.
2730 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
2731 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2732 (find_pc_sect_psymbol, fixup_psymbol_section)
2733 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
2734 (print_partial_symbols, recursively_search_psymtabs)
2735 (compare_psymbols, psymbol_hash, psymbol_compare)
2736 (add_psymbol_to_bcache, maintenance_check_psymtabs)
2737 (psymbol_name_matches, psym_fill_psymbol_map): Update.
2738
2739 2018-07-26 Tom Tromey <tromey@redhat.com>
2740
2741 * dbxread.c (end_psymtab): Remove dead code.
2742
2743 2018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
2744
2745 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
2746 DWARF unwinders are disabled.
2747 * dwarf2-frame.c: Add dwarf2read.h include.
2748 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
2749 disabled.
2750 (dwarf2_frame_unwinders_enabled_p): Define.
2751 (show_dwarf_unwinders_enabled_p): New function.
2752 (_initialize_dwarf2_frame): Register switch to control DWARF
2753 unwinder use.
2754 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
2755 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
2756 (show_dwarf_cmdlist): Remove static keyword.
2757 * dwarf2read.h (set_dwarf_cmdlist): Declare.
2758 (show_dwarf_cmdlist): Declare.
2759 * NEWS: Document new feature.
2760
2761 2018-07-26 Tom de Vries <tdevries@suse.de>
2762
2763 PR breakpoints/23366
2764 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
2765
2766 2018-07-26 Tom de Vries <tdevries@suse.de>
2767
2768 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
2769 DW_AT_count can't be translated to a dynamic prop.
2770
2771 2018-07-25 Tom de Vries <tdevries@suse.de>
2772
2773 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
2774 try/catch.
2775
2776 2018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
2777
2778 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
2779
2780 2018-07-25 Joel Brobecker <brobecker@adacore.com>
2781
2782 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
2783
2784 2018-07-24 Keith Seitz <keiths@redhat.comt
2785
2786 PR symtab/23010
2787 * dwarf2read.c (dw2_add_symbol_to_list): New function.
2788 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
2789 instead of add_symbol_to_list.
2790 (read_file_scope): Call prepare_one_comp_unit before reading
2791 any other DIEs.
2792
2793 2018-07-24 Simon Marchi <simon.marchi@ericsson.com>
2794
2795 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
2796
2797 2018-07-24 Tom Tromey <tom@tromey.com>
2798
2799 * utils.c (malloc, realloc, free): Don't declare.
2800 * configure, config.in: Rebuild.
2801 * configure.ac: Don't check for declarations of free, malloc, or
2802 realloc.
2803
2804 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2805
2806 * aarch64-linux-nat.c
2807 (aarch64_linux_nat_target::stopped_data_address): Remove unused
2808 variable.
2809 * arm-linux-nat.c (fetch_regs): Likewise.
2810 (store_regs): Likewise.
2811 (fetch_vfp_regs): Likewise.
2812 (store_vfp_regs): Likewise.
2813 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
2814 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
2815 (arm_linux_nat_target::insert_watchpoint): Likewise.
2816 (arm_linux_nat_target::remove_watchpoint): Likewise.
2817 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
2818 Likewise.
2819 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
2820 Likewise.
2821 * ppc-linux-nat.c (fetch_register): Likewise.
2822 (fetch_all_gp_regs): Likewise.
2823 (fetch_ppc_registers): Likewise.
2824 (store_all_gp_regs): Likewise.
2825 (store_ppc_registers): Likewise.
2826 (hwdebug_insert_point): Likewise.
2827 (can_use_watchpoint_cond_accel): Likewise.
2828 * remote-sim.c (gdb_os_write_stdout): Likewise.
2829
2830 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2831 Tom Tromey <tom@tromey.com>
2832
2833 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
2834 test for it.
2835 * configure: Rebuild.
2836
2837 2018-07-22 Tom Tromey <tom@tromey.com>
2838
2839 * regformats/regdat.sh: Define xmltarget_${name} inside
2840 #ifndef IN_PROCESS_AGENT.
2841
2842 2018-07-22 Tom Tromey <tom@tromey.com>
2843
2844 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
2845
2846 2018-07-22 Tom Tromey <tom@tromey.com>
2847
2848 * symfile.c (reread_symbols): Notify iter, not objfile.
2849
2850 2018-07-22 Tom Tromey <tom@tromey.com>
2851
2852 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
2853 Use arch_ops.
2854 (ravenscar_thread_target::prepare_to_store): Likewise.
2855
2856 2018-07-22 Tom Tromey <tom@tromey.com>
2857
2858 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
2859 unused variable. Call value_fetch_lazy when needed.
2860 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
2861 Remove unused variable. Call value_fetch_lazy when needed.
2862
2863 2018-07-22 Tom Tromey <tom@tromey.com>
2864
2865 * m32c-tdep.c (mark_dma): Return void.
2866 (make_regs): Remove unused declarations.
2867
2868 2018-07-22 Tom Tromey <tom@tromey.com>
2869
2870 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
2871 cmdscm_get_valid_command_smob_arg_unsafe for effect.
2872 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
2873 bkscm_get_valid_block_smob_arg_unsafe for effect.
2874
2875 2018-07-22 Tom Tromey <tom@tromey.com>
2876
2877 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
2878 value_type.
2879
2880 2018-07-22 Tom Tromey <tom@tromey.com>
2881
2882 * windows-nat.c (saved_context): Conditionally define.
2883 * remote.c (remote_target::remote_btrace_maybe_reopen):
2884 Conditionally declare "warned".
2885 * inflow.c (sigquit_ours): Conditionally define.
2886 (new_tty): Move "tty" declaration inside #if.
2887 * guile/guile.c (guile_datadir): Conditionally define.
2888 * charset.c (set_be_le_names): Move some declarations inside #if.
2889 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
2890 #if.
2891 (parse_xml_btrace_conf): Likewise.
2892
2893 2018-07-22 Tom Tromey <tom@tromey.com>
2894
2895 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
2896
2897 2018-07-22 Tom Tromey <tom@tromey.com>
2898
2899 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
2900 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
2901 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
2902 * buildsym-legacy.c (get_macro_table): Remove unused variable.
2903 * stack.c (frame_apply_level_command): Remove unused variable.
2904 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
2905 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
2906 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
2907 unused variable.
2908 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
2909 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
2910 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
2911 variable.
2912 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
2913 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
2914 variable.
2915 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
2916 Remove unused variable.
2917 * cli/cli-script.c (recurse_read_control_structure): Remove unused
2918 variable.
2919 * common/tdesc.c (print_xml_feature::visit): Remove unused
2920 variable.
2921 * compile/compile-object-load.c (store_regs): Remove unused
2922 variables.
2923 * complaints.c (clear_complaints): Remove unused variable.
2924 * corelow.c (core_target_open): Remove unused variable.
2925 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
2926 variable.
2927 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
2928 variable.
2929 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
2930 variable.
2931 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
2932 variable.
2933 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
2934 variable.
2935 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
2936 variable.
2937 * ia64-tdep.c (examine_prologue): Remove unused variable.
2938 * infcall.c (run_inferior_call): Remove unused variable.
2939 * inferior.c (exit_inferior): Remove unused variable.
2940 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
2941 * linespec.c (decode_line_2): Remove unused variable.
2942 * linux-nat.c (super_close): Remove.
2943 * linux-tdep.c (linux_info_proc): Remove unused variable.
2944 * mi/mi-main.c (mi_execute_command): Remove unused variable.
2945 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
2946 Remove unused variable.
2947 * parse.c (find_minsym_type_and_address): Remove unused variable.
2948 * printcmd.c (info_symbol_command, printf_floating): Remove unused
2949 variable.
2950 * python/py-breakpoint.c (bppy_set_commands): Remove unused
2951 variable.
2952 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
2953 variables.
2954 * record-btrace.c (record_btrace_target::store_registers): Remove
2955 unused variable.
2956 (cmd_show_record_btrace_cpu): Remove unused variable.
2957 * riscv-tdep.c (riscv_register_reggroup_p)
2958 (riscv_push_dummy_call, riscv_return_value): Remove unused
2959 variable.
2960 * rust-exp.y (literal): Remove unused variable.
2961 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
2962 unused variable.
2963 <STRUCTOP_ANONYMOUS>: Likewise.
2964 * s390-linux-tdep.c (s390_linux_init_abi_31)
2965 (s390_linux_init_abi_64): Remove unused variable.
2966 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
2967 (file_select_thread, net_windows_open, _initialize_ser_windows):
2968 Remove unused variables.
2969 * symtab.c (find_pc_sect_line): Remove unused variable.
2970 * target-memory.c (compute_garbled_blocks): Remove unused
2971 variable.
2972 (target_write_memory_blocks): Remove unused variable.
2973 * target.c (target_stack::unpush): Remove unused variables.
2974 * tracepoint.c (start_tracing, all_tracepoint_actions)
2975 (merge_uploaded_trace_state_variables)
2976 (print_one_static_tracepoint_marker): Remove unused variable.
2977 * unittests/basic_string_view/element_access/char/1.cc (test01):
2978 Remove unused variable.
2979 * windows-nat.c (windows_continue, windows_add_all_dlls)
2980 (do_initial_windows_stuff, windows_nat_target::create_inferior):
2981 Remove unused variables.
2982
2983 2018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
2984
2985 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
2986 attr_profile in HAVE_ELF.
2987 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
2988 HAVE_ELF.
2989
2990 2018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
2991
2992 * frame.c (frame_register_unwind): Change parameter name.
2993 (frame_unwind_register): Likewise.
2994 (frame_unwind_register_value): Likewise.
2995 (frame_unwind_register_signed): Likewise.
2996 (frame_unwind_register_unsigned): Likewise.
2997 * frame.h (frame_register_unwind): Likewise.
2998 (frame_unwind_register): Likewise.
2999 (frame_unwind_register_value): Likewise.
3000 (frame_unwind_register_signed): Likewise.
3001 (frame_unwind_register_unsigned): Likewise.
3002 (frame_unwind_arch): Likewise.
3003
3004 2018-07-20 Maciej W. Rozycki <macro@mips.com>
3005
3006 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
3007 ISA maintenance.
3008
3009 2018-07-20 Maciej W. Rozycki <macro@mips.com>
3010
3011 * mips-linux-nat.c (mips_linux_nat_target::read_description):
3012 Call `get_ptrace_pid' rather than extracting the ptrace PID by
3013 hand.
3014
3015 2018-07-20 Keith Seitz <keiths@redhat.com>
3016
3017 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
3018 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
3019 m_compunit_symtab, m_language>: Add "m_" prefix.
3020 Update all uses.
3021 * buildsym.c: Update all uses.
3022
3023 2018-07-20 Tom Tromey <tom@tromey.com>
3024
3025 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
3026 * buildsym.h (record_line_ftype): Remove typedef.
3027
3028 2018-07-20 Tom Tromey <tom@tromey.com>
3029
3030 * buildsym-legacy.h (augment_type_symtab): Don't declare.
3031 (end_expandable_symtab): Likewise.
3032 (end_symtab_get_static_block): Likewise.
3033 (end_symtab_from_static_block): Likewise.
3034 * buildsym-legacy.c (augment_type_symtab): Remove.
3035 (end_expandable_symtab): Remove.
3036 (end_symtab_get_static_block): Remove.
3037 (end_symtab_from_static_block): Remove.
3038
3039 2018-07-20 Tom Tromey <tom@tromey.com>
3040
3041 * dwarf2read.c: Include buildsym.h.
3042 (struct dwarf2_cu) <builder>: New method.
3043 (fixup_go_packaging): Update.
3044 (process_full_comp_unit, process_full_type_unit): Update. Don't
3045 use scoped_free_pendings.
3046 (using_directives): Add "cu" parameter, remove "language".
3047 (read_import_statement, setup_type_unit_groups, )
3048 (read_func_scope, read_lexical_block_scope)
3049 (dwarf2_record_block_ranges, read_namespace): Update.
3050 (lnp_state_machine::lnp_state_machine): Add cu parameter.
3051 (lnp_state_machine::handle_end_sequence): Update.
3052 (class lnp_state_machine) <m_cu>: New member.
3053 <m_record_line_callback>: Remove.
3054 <m_currently_recording_lines>: New member.
3055 (lnp_state_machine::handle_set_file): Update.
3056 (noop_record_line): Remove.
3057 (dwarf_record_line_p): Add cu parameter.
3058 (dwarf_record_line_1, dwarf_finish_line): Likewise.
3059 (lnp_state_machine::record_line)
3060 (lnp_state_machine::lnp_state_machine)
3061 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
3062 (dwarf_decode_lines): Update.
3063 (dwarf2_start_subfile): Add cu parameter.
3064 (dwarf2_start_symtab, new_symbol): Update.
3065 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
3066 Remove dwarf2_per_objfile parameter.
3067 (dwarf_decode_macros): Update.
3068
3069 2018-07-20 Tom Tromey <tom@tromey.com>
3070
3071 * stabsread.c (define_symbol): Update.
3072 * buildsym-legacy.h (get_buildsym_compunit): Declare.
3073 * dwarf2read.c (new_symbol): Update.
3074 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
3075 * cp-namespace.c: Include buildsym.h.
3076 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
3077 * buildsym-legacy.c (get_buildsym_compunit): New function.
3078
3079 2018-07-20 Tom Tromey <tom@tromey.com>
3080
3081 * xcoffread.c: Include buildsym-legacy.h.
3082 * windows-nat.c: Include buildsym-legacy.h.
3083 * stabsread.c: Include buildsym-legacy.h.
3084 * mdebugread.c: Include buildsym-legacy.h.
3085 * buildsym-legacy.h: New file.
3086 * buildsym-legacy.c: New file, from buildsym.c.
3087 * go32-nat.c: Include buildsym-legacy.h.
3088 * dwarf2read.c: Include buildsym-legacy.h.
3089 * dbxread.c: Include buildsym-legacy.h.
3090 * cp-namespace.c: Include buildsym-legacy.h.
3091 * coffread.c: Include buildsym-legacy.h.
3092 * buildsym.h: Move some contents to buildsym-legacy.h.
3093 * buildsym.c: Include buildsym-legacy.h. Move many functions to
3094 buildsym-legacy.c.
3095 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
3096
3097 2018-07-20 Tom Tromey <tom@tromey.com>
3098
3099 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
3100 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
3101 (buildsym_compunit::buildsym_compunit)
3102 (buildsym_compunit::~buildsym_compunit)
3103 (buildsym_compunit::get_macro_table): Define.
3104
3105 2018-07-20 Tom Tromey <tom@tromey.com>
3106
3107 * buildsym.c (reset_symtab_globals): Remove.
3108 (buildsym_compunit::end_symtab_from_static_block): Update.
3109 (buildsym_compunit::augment_type_symtab): Update.
3110 (end_symtab_from_static_block): Call free_buildsym_compunit.
3111 (augment_type_symtab, end_symtab, end_expandable_symtab):
3112 Likewise.
3113
3114 2018-07-20 Tom Tromey <tom@tromey.com>
3115
3116 * arch-utils.c: Do not include buildsym.h.
3117 * mipsread.c: Do not include buildsym.h.
3118 * machoread.c: Do not include buildsym.h.
3119 * elfread.c: Do not include buildsym.h.
3120
3121 2018-07-20 Tom Tromey <tom@tromey.com>
3122
3123 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
3124 initialization.
3125 (buildsym_compunit): Add new constructor.
3126 (struct buildsym_compunit) <get_last_source_file, finish_block,
3127 record_block_range, start_subfile, patch_subfile_names,
3128 push_subfile, pop_subfile, record_line, get_compunit_symtab,
3129 set_last_source_start_addr, get_last_source_start_addr,
3130 get_local_using_directives, set_local_using_directives,
3131 get_global_using_directives, outermost_context_p,
3132 get_current_context_stack, get_context_stack_depth,
3133 get_current_subfile, get_local_symbols, get_file_symbols,
3134 get_global_symbols, record_debugformat, record_producer,
3135 push_context, pop_context, end_symtab_get_static_block,
3136 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
3137 New public methods.
3138 <record_pending_block, finish_block_internal, make_blockvector,
3139 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
3140 private methods.
3141 Update all users.
3142
3143 2018-05-22 Tom Tromey <tom@tromey.com>
3144
3145 * buildsym.c (record_pending_block): Move earlier. Remove objfile
3146 parameter.
3147 (finish_block_internal): Update.
3148
3149 2018-07-20 Tom Tromey <tom@tromey.com>
3150
3151 * buildsym.c (record_pending_block): Move earlier. Remove objfile
3152 parameter.
3153 (finish_block_internal): Update.
3154
3155 2018-07-20 Tom Tromey <tom@tromey.com>
3156
3157 * buildsym.h (EXTERN): Don't define or undef.
3158 * buildsym.c (EXTERN): Don't define.
3159
3160 2018-07-20 Tom Tromey <tom@tromey.com>
3161
3162 * buildsym.c: Remove TODO comment.
3163
3164 2018-07-20 Tom Tromey <tom@tromey.com>
3165
3166 * coffread.c (coff_symtab_read): Update.
3167 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
3168 (xcoff_new_init): Update.
3169 * mipsread.c (mipscoff_new_init): Update.
3170 * mdebugread.c (mdebug_build_psymtabs): Update.
3171 * elfread.c (elf_new_init): Update.
3172 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
3173 Update.
3174 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
3175 (coffstab_build_psymtabs, elfstab_build_psymtabs)
3176 (stabsect_build_psymtabs): Update.
3177 * buildsym.h (buildsym_init): Don't declare.
3178 * buildsym.c: Update comment.
3179 (prepare_for_building): Remove.
3180 (start_symtab, restart_symtab): Update.
3181 (reset_symtab_globals): Update comment.
3182 (buildsym_init): Remove.
3183
3184 2018-07-20 Tom Tromey <tom@tromey.com>
3185
3186 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
3187 * stabsread.c (patch_block_stabs, define_symbol, read_type)
3188 (read_enum_type, common_block_start, common_block_end)
3189 (cleanup_undefined_types_1, finish_global_stabs): Update.
3190 * mdebugread.c (psymtab_to_symtab_1): Update.
3191 * dwarf2read.c (fixup_go_packaging, read_func_scope)
3192 (read_lexical_block_scope, new_symbol): Update.
3193 * dbxread.c (process_one_symbol): Update.
3194 * coffread.c (coff_symtab_read, process_coff_symbol)
3195 (coff_read_enum_type): Update.
3196 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
3197 declare.
3198 (get_local_symbols, get_file_symbols, get_global_symbols): New
3199 functions.
3200 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
3201 m_global_symbols.
3202 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
3203 (~scoped_free_pendings): Update.
3204 (finish_block, prepare_for_building, reset_symtab_globals)
3205 (end_symtab_get_static_block, end_symtab_with_blockvector)
3206 (augment_type_symtab, push_context): Update.
3207 (get_local_symbols, get_file_symbols, get_global_symbols): New
3208 functions.
3209 (buildsym_init): Update.
3210
3211 2018-07-20 Tom Tromey <tom@tromey.com>
3212
3213 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
3214 (process_full_type_unit): Likewise.
3215 (dwarf2_start_symtab): Set list_in_scope.
3216
3217 2018-07-20 Tom Tromey <tom@tromey.com>
3218
3219 * dwarf2read.c (process_psymtab_comp_unit_reader)
3220 (build_type_psymtabs_reader): Do not set list_in_scope.
3221
3222 2018-07-20 Tom Tromey <tom@tromey.com>
3223
3224 * buildsym.c (free_pendings): Remove.
3225 (add_symbol_to_list, scoped_free_pendings)
3226 (finish_block_internal, buildsym_init): Update.
3227
3228 2018-07-20 Tom Tromey <tom@tromey.com>
3229
3230 * xcoffread.c (read_xcoff_symtab): Update.
3231 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
3232 Update.
3233 * dbxread.c (process_one_symbol): Update.
3234 * coffread.c (coff_symtab_read): Update.
3235 * buildsym.h (finish_block): Update.
3236 * buildsym.c (finish_block): Remove "listhead" argument.
3237 (end_symtab_get_static_block): Update.
3238
3239 2018-07-20 Tom Tromey <tom@tromey.com>
3240
3241 * buildsym.h (class scoped_free_pendings): Remove constructor.
3242 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
3243 method.
3244 <m_pending_block_obstack, m_pending_blocks>: New members.
3245 (pending_block_obstack, pending_blocks): Remove.
3246 (scoped_free_pendings::scoped_free_pendings): Default.
3247 (~scoped_free_pendings): Update.
3248 (free_pending_blocks): Remove.
3249 (finish_block_internal, record_pending_block, make_blockvector)
3250 (end_symtab_get_static_block, augment_type_symtab, push_context)
3251 (buildsym_init): Update.
3252
3253 2018-07-20 Tom Tromey <tom@tromey.com>
3254
3255 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
3256 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
3257 members.
3258 (pending_addrmap, pending_addrmap_obstack)
3259 (pending_addrmap_interesting): Remove.
3260 (scoped_free_pendings, record_block_range, make_blockvector)
3261 (prepare_for_building, reset_symtab_globals, buildsym_init):
3262 Update.
3263
3264 2018-07-20 Tom Tromey <tom@tromey.com>
3265
3266 * xcoffread.c (process_linenos): Update.
3267 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
3268 * mdebugread.c (psymtab_to_symtab_1): Update.
3269 * dwarf2read.c (setup_type_unit_groups)
3270 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
3271 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
3272 * dbxread.c (process_one_symbol): Update.
3273 * coffread.c (coff_symtab_read, enter_linenos)
3274 (process_coff_symbol): Update.
3275 * buildsym.h (current_subfile): Don't declare.
3276 (get_current_subfile): Declare.
3277 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
3278 member.
3279 (start_subfile, free_buildsym_compunit, push_subfile)
3280 (prepare_for_building, start_symtab): Update.
3281 (get_current_subfile): New function.
3282
3283 2018-07-20 Tom Tromey <tom@tromey.com>
3284
3285 * coffread.c (coff_symtab_read): Update.
3286 * xcoffread.c (read_xcoff_symtab): Update.
3287 * dwarf2read.c (new_symbol): Update.
3288 (read_func_scope, read_lexical_block_scope): Update.
3289 * dbxread.c (process_one_symbol): Update.
3290 * buildsym.h (context_stack, context_stack_depth): Don't declare.
3291 (outermost_context_p): Remove macro.
3292 (outermost_context_p, get_current_context_stack)
3293 (get_context_stack_depth): Declare.
3294 (pop_context): Return struct context_stack.
3295 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
3296 member.
3297 (context_stack_size): Remove.
3298 (INITIAL_CONTEXT_STACK_SIZE): Remove.
3299 (prepare_for_building, end_symtab_get_static_block)
3300 (augment_type_symtab, push_context): Update.
3301 (pop_context): Return struct context_stack.
3302 (outermost_context_p, get_current_context_stack)
3303 (get_context_stack_depth): New functions.
3304 (buildsym_init): Update.
3305
3306 2018-07-20 Tom Tromey <tom@tromey.com>
3307
3308 * rust-exp.y: Now a pure parser. Update all rules.
3309 (%union): Move earlier.
3310 (current_parser, work_obstack): Remove globals.
3311 (rust_parser, ~rust_parser): Update.
3312 (class rust_parser) <copy_name, concat3, crate_name, super_name,
3313 lex_character, lex_number, lex_string, lex_identifier,
3314 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
3315 convert_name, convert_params_to_expression,
3316 convert_ast_to_expression, ast_basic_type, ast_operation,
3317 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
3318 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
3319 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
3320 ast_array_type, ast_slice_type, ast_reference_type,
3321 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
3322 (rust_parse): Update.
3323 (rustyyerror, rustyylex): Add parser parameter.
3324 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
3325 (rust_lex_stringish_test, rust_lex_test_sequence)
3326 (rust_lex_test_trailing_dot, rust_lex_test_completion)
3327 (rust_lex_test_push_back, rust_lex_tests): Update.
3328
3329 2018-07-19 Pedro Alves <palves@redhat.com>
3330
3331 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
3332 gdb::unique_xmalloc_ptr.
3333 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
3334 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
3335 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
3336 copy-initialization.
3337 * guile/scm-pretty-print.c (ppscm_print_children): Use
3338 gdb::unique_xmalloc_ptr instead of cleanups.
3339 (gdbscm_apply_val_pretty_printer): Remove cleanups.
3340 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
3341 gdb::unique_xmalloc_ptr.
3342 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
3343 Adjust to use gdb::unique_xmalloc_ptr.
3344 * guile/scm-utils.c (extract_arg): Adjust.
3345 * guile/scm-value.c (gdbscm_value_field): Adjust to use
3346 gdb::unique_xmalloc_ptr instead of a cleanup.
3347
3348 2018-07-19 Tom Tromey <tom@tromey.com>
3349
3350 * utils.c (do_value_free_to_mark)
3351 (make_cleanup_value_free_to_mark): Remove.
3352 * utils.h (make_cleanup_value_free_to_mark): Remove.
3353
3354 2018-07-19 Pedro Alves <palves@redhat.com>
3355
3356 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
3357 forwarding reference.
3358
3359 2018-07-18 Pedro Alves <palves@redhat.com>
3360
3361 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
3362 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
3363 cleanup.
3364
3365 2018-07-18 Pedro Alves <palves@redhat.com>
3366
3367 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
3368 exceptions.
3369 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
3370 (gdbscm_wrap): New.
3371 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
3372 directly instead of a cleanup.
3373 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
3374 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
3375 (vlscm_binop_gdbthrow): New, factored out from ...
3376 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
3377 (vlscm_rich_compare): Use gdbscm_wrap.
3378 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
3379 instead of a cleanup.
3380 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
3381 cleanup.
3382 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
3383 Use xfree directly instead of a cleanup.
3384 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
3385 Adjust to use gdbscm_wrap and scoped_value_mark.
3386 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
3387 (gdbscm_value_address, gdbscm_value_dereference)
3388 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
3389 scoped_value_mark.
3390 (gdbscm_value_dynamic_type): Use scoped_value_mark.
3391 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
3392 scoped_value_mark.
3393 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
3394 gdbscm_wrap and scoped_value_mark.
3395 (gdbscm_value_to_string): Use xfree directly instead of a
3396 cleanup. Move 'buffer' unique_ptr to TRY scope.
3397 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
3398 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
3399 scoped_value_mark.
3400 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
3401 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
3402 scoped_value_mark.
3403 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
3404 gdbscm_wrap.
3405
3406 2018-07-18 Tom de Vries <tdevries@suse.de>
3407
3408 * findvar.c (default_read_var_value): Also resolve dynamic type for
3409 LOC_OPTIMIZED_OUT vars.
3410
3411 2018-07-18 Maciej W. Rozycki <macro@mips.com>
3412
3413 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
3414 decoding.
3415
3416 2018-07-17 Tom Tromey <tom@tromey.com>
3417
3418 * guile/scm-param.c (pascm_set_func, pascm_show_func)
3419 (compute_enum_list, pascm_set_param_value_x)
3420 (gdbscm_parameter_value): Update.
3421 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
3422 (gdbscm_scm_to_host_string): Update.
3423 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
3424 Update.
3425 * guile/scm-cmd.c (cmdscm_add_completion): Update.
3426 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
3427 * guile/scm-string.c (gdbscm_scm_to_string): Return
3428 unique_xmalloc_ptr.
3429 (gdbscm_scm_to_host_string): Likewise.
3430
3431 2018-07-17 Tom Tromey <tom@tromey.com>
3432
3433 * guile/guile.c (gdbscm_eval_from_control_command): Update.
3434 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
3435 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
3436 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
3437 unique_xmalloc_ptr.
3438
3439 2018-07-17 Tom Tromey <tom@tromey.com>
3440
3441 * guile/scm-param.c (pascm_signal_setshow_error): Update.
3442 * guile/guile-internal.h (gdbscm_exception_message_to_string):
3443 Update.
3444 * guile/scm-cmd.c (cmdscm_function): Update.
3445 * guile/scm-pretty-print.c
3446 (ppscm_print_exception_unless_memory_error): Update.
3447 * guile/scm-exception.c (gdbscm_exception_message_to_string):
3448 Return unique_xmalloc_ptr.
3449
3450 2018-07-17 Tom Tromey <tom@tromey.com>
3451
3452 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
3453 Use string_printf.
3454
3455 2018-07-17 Jim Wilson <jimw@sifive.com>
3456
3457 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
3458 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
3459 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
3460 unecessary braces after EF_RISCV_RVC test. Delete call to
3461 set_gdbarch_decr_pc_after_break.
3462
3463 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
3464 RISCV_LAST_FP_REGNUM + 1.
3465 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
3466
3467 2018-07-17 Tom Tromey <tom@tromey.com>
3468
3469 * configure.ac: Remove --disable-gdbcli.
3470 * configure: Rebuild.
3471 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
3472 (SUBDIR_CLI_CFLAGS): Remove.
3473 (SFILES): Use SUBDIR_CLI_SRCS.
3474 (COMMON_OBS): Use SUBDIR_CLI_OBS.
3475
3476 2018-07-17 Tom Tromey <tom@tromey.com>
3477
3478 PR gdb/18624:
3479 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
3480
3481 2018-07-16 Jim Wilson <jimw@sifive.com>
3482
3483 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
3484
3485 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3486
3487 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
3488 variable.
3489 (libunwind_frame_sniffer): Likewise.
3490 (libunwind_frame_prev_register): Likewise.
3491 (libunwind_sigtramp_frame_sniffer): Likewise.
3492 * ia64-tdep.c (ia64_access_reg): Likewise.
3493 (ia64_access_rse_reg): Likewise.
3494 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
3495 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
3496
3497 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3498
3499 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
3500
3501 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3502
3503 * remote-sim.c (gdbsim_target::close,
3504 gdbsim_target::mourn_inferior): Remove unused variables.
3505
3506 2018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
3507
3508 * ia64-tdep.c (ktab_buf): New global.
3509 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
3510 (get_kernel_table): Adjust.
3511
3512 2018-07-16 Tom Tromey <tom@tromey.com>
3513
3514 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
3515 * dwarf2read.c (using_directives, new_symbol): Use
3516 outermost_context_p.
3517 * dbxread.c (process_one_symbol): Use outermost_context_p.
3518 * coffread.c (coff_symtab_read): Use outermost_context_p.
3519
3520 2018-07-16 Tom Tromey <tom@tromey.com>
3521
3522 * dwarf2read.c (using_directives, read_func_scope)
3523 (read_lexical_block_scope): Update.
3524 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
3525 * buildsym.h (local_using_directives, global_using_directives):
3526 Don't declare.
3527 (get_local_using_directives, set_local_using_directives)
3528 (get_global_using_directives): Declare.
3529 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
3530 m_global_using_directives>: New members.
3531 (finish_block_internal, prepare_for_building)
3532 (reset_symtab_globals, end_symtab_get_static_block)
3533 (push_context): Update.
3534 (get_local_using_directives, set_local_using_directives)
3535 (get_global_using_directives): New functions.
3536 (buildsym_init): Update.
3537
3538 2018-07-16 Tom Tromey <tom@tromey.com>
3539
3540 * xcoffread.c (xcoff_initial_scan): Don't call
3541 free_pending_blocks.
3542 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
3543 * buildsym.h (class scoped_free_pendings): Add constructor.
3544 (free_pending_blocks): Don't declare.
3545 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
3546 (free_pending_blocks): Now static.
3547
3548 2018-07-16 Tom Tromey <tom@tromey.com>
3549
3550 * buildsym.h (push_subfile, pop_subfile): Update declarations.
3551 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
3552 member.
3553 (struct subfile_stack): Remove.
3554 (subfile_stack): Remove.
3555 (push_subfile, pop_subfile, buildsym_init): Update.
3556
3557 2018-07-16 Tom Tromey <tom@tromey.com>
3558
3559 * buildsym.c (push_subfile): Use gdb_assert.
3560 (pop_subfile): Use gdb_assert.
3561
3562 2018-07-16 Tom Tromey <tom@tromey.com>
3563
3564 * buildsym.h (merge_symbol_lists): Remove.
3565 * buildsym.c (merge_symbol_lists): Remove.
3566
3567 2018-07-16 Tom Tromey <tom@tromey.com>
3568
3569 * stabsread.c (scan_file_globals): Update comment.
3570 * stabsread.h (scan_file_globals): Move from buildsym.h.
3571 * buildsym.h (scan_file_globals): Move to stabsread.h.
3572
3573 2018-07-16 Tom Tromey <tom@tromey.com>
3574
3575 * xcoffread.c (xcoff_new_init): Update.
3576 * mipsread.c (mipscoff_new_init): Update.
3577 * mdebugread.c (mdebug_build_psymtabs): Update.
3578 * elfread.c (elf_new_init): Update.
3579 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
3580 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
3581 * buildsym.h (buildsym_new_init): Don't declare.
3582 * buildsym.c (buildsym_new_init): Remove.
3583
3584 2018-07-16 Tom Tromey <tom@tromey.com>
3585
3586 * stabsread.h (within_function): Move from buildsym.h.
3587 * stabsread.c (start_stabs): Clear within_function.
3588 * coffread.c (coff_start_symtab): Clear within_function.
3589 * buildsym.h (within_function): Move to stabsread.h.
3590 * buildsym.c (prepare_for_building): Update.
3591
3592 2018-07-16 Tom Tromey <tom@tromey.com>
3593
3594 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
3595 * dwarf2read.c (dwarf2_start_symtab): Don't set
3596 processing_gcc_compilation.
3597 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
3598
3599 2018-07-16 Tom Tromey <tom@tromey.com>
3600
3601 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
3602 (next_symbol_text_func): Move from buildsym.h.
3603 * stabsread.c (hashname): Move from buildsym.c.
3604 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
3605 (next_symbol_text_func, hashname): Move to stabsread.h.
3606 * buildsym.c: Don't include bcache.h
3607 (hashname): Move to stasbread.c.
3608
3609 2018-07-16 Tom Tromey <tom@tromey.com>
3610
3611 * buildsym.h (context_stack_size): Don't declare.
3612 * buildsym.c (context_stack_size): New global.
3613
3614 2018-07-16 Tom Tromey <tom@tromey.com>
3615
3616 * dbxread.c (processing_acc_compilation): New global.
3617 * buildsym.h (processing_acc_compilation): Don't declare.
3618
3619 2018-07-16 Tom Tromey <tom@tromey.com>
3620
3621 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
3622 * dbxread.c (read_ofile_symtab): Update.
3623 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
3624 * buildsym.h (last_source_start_addr): Remove.
3625 (set_last_source_start_addr, get_last_source_start_addr):
3626 Declare.
3627 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
3628 parameter.
3629 (struct buildsym_compunit) <m_last_source_start_addr>: New
3630 member.
3631 (prepare_for_building): Remove start_addr parameter.
3632 (start_symtab, restart_symtab, end_symtab_get_static_block)
3633 (end_symtab_with_blockvector): Update.
3634 (set_last_source_start_addr, get_last_source_start_addr): New
3635 functions.
3636
3637 2018-07-16 Tom Tromey <tom@tromey.com>
3638
3639 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
3640 member.
3641 (have_line_numbers): Remove.
3642 (record_line, prepare_for_building, end_symtab_get_static_block)
3643 (augment_type_symtab): Update.
3644
3645 2018-07-16 Tom Tromey <tom@tromey.com>
3646
3647 * buildsym.c (~buildsym_compunit): Free the macro table.
3648 (struct buildsym_compunit) <get_macro_table, release_macros>: New
3649 methods.
3650 <m_pending_macros>: New member.
3651 (pending_macros): Remove.
3652 (~scoped_free_pendings, get_macro_table, prepare_for_building)
3653 (reset_symtab_globals, end_symtab_get_static_block)
3654 (end_symtab_with_blockvector, augment_type_symtab)
3655 (buildsym_init): Update.
3656
3657 2018-07-16 Tom Tromey <tom@tromey.com>
3658
3659 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
3660 parameter.
3661 (buildsym_compunit::set_last_source_file): New method.
3662 <m_last_source_file>: New member.
3663 (prepare_for_building): Remove "name" parameter.
3664 (start_symtab, restart_symtab, reset_symtab_globals): Update.
3665 (last_source_file): Remove.
3666 (set_last_source_file, get_last_source_file): Update.
3667
3668 2018-07-16 Tom Tromey <tom@tromey.com>
3669
3670 * buildsym.c (prepare_for_building): Add assert.
3671
3672 2018-07-16 Tom Tromey <tom@tromey.com>
3673
3674 * buildsym.c (~buildsym_compunit): Update.
3675 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
3676 (start_subfile, patch_subfile_names)
3677 (end_symtab_with_blockvector): Update.
3678
3679 2018-07-16 Tom Tromey <tom@tromey.com>
3680
3681 * buildsym.c (struct buildsym_compunit): Add constructor,
3682 destructor, initializers.
3683 (start_buildsym_compunit): Remove.
3684 (free_buildsym_compunit): Use "delete".
3685 (start_symtab, restart_symtab): Use "new".
3686
3687 2018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
3688
3689 * symfile.c (set_objfile_default_section_offset): Remove struct
3690 keyword.
3691
3692 2018-07-14 Stafford Horne <shorne@gmail.com>
3693
3694 * (Responsible Maintainers): Add myself as or1k maintainer.
3695
3696 2018-07-13 Tom Tromey <tom@tromey.com>
3697
3698 * symfile.c (set_objfile_default_section_offset): Use extra braces
3699 around initializer.
3700
3701 2018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3702
3703 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
3704 non-branching basr.
3705
3706 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3707
3708 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3709 unittests/cli-utils-selftests.c
3710 * unittests/cli-utils-selftests.c: New file.
3711
3712 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3713
3714 * NEWS: Mention new commands. Mention change to 'thread apply'.
3715
3716 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3717
3718 * thread.c (thr_try_catch_cmd): New function.
3719 (thread_apply_all_command): Handle qcs flags.
3720 (thread_apply_command): Handle qcs flags.
3721 (taas_command): New function.
3722 (tfaas_command): New function.
3723 (_initialize_thread): Update to setup the new commands 'taas
3724 and 'tfaas'. Change doc string for 'thread apply'.
3725
3726 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3727
3728 * stack.c: (trailing_outermost_frame): New function, mostly
3729 extracted from backtrace_command_1.
3730 (leading_innermost_frame): New function.
3731 (backtrace_command_1): Update to call trailing_outermost_frame.
3732 (frame_apply_command_count): New function.
3733 (frame_apply_level_command): New function.
3734 (frame_apply_all_command): New function.
3735 (frame_apply_command): New function.
3736 (faas_command): New function.
3737 (frame_cmd_list): New variable.
3738 (_initialize_stack): Update to setup the new commands 'frame apply'
3739 and 'faas'.
3740
3741 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3742
3743 * cli-utils.c (number_or_range_parser::get_number): Only handle
3744 numbers or convenience var as numbers.
3745 (parse_flags): New function.
3746 (parse_flags_qcs): New function.
3747 (number_or_range_parser::finished): Ensure parsing end is detected
3748 before end of string.
3749 * cli-utils.h (parse_flags): New function.
3750 (parse_flags_qcs): New function.
3751 (number_or_range_parser): Remove m_finished bool.
3752 (number_or_range_parser::skip_range): Set m_in_range to false.
3753
3754 2018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
3755
3756 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
3757 on Windows.
3758
3759 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
3760 Jan Kratochvil <jan.kratochvil@redhat.com>
3761 Paul Fertser <fercerpav@gmail.com>
3762 Tsutomu Seki <sekiriki@gmail.com>
3763 Pedro Alves <palves@redhat.com>
3764
3765 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3766 'unittests/parse-connection-spec-selftests.c'.
3767 (COMMON_SFILES): Add 'common/netstuff.c'.
3768 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
3769 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
3770 * common/netstuff.c: New file.
3771 * common/netstuff.h: New file.
3772 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
3773 (wait_for_connect): Update comment. New parameter
3774 'gdb::optional<int> sock' instead of 'struct serial *scb'.
3775 Use 'sock' directly instead of 'scb->fd'.
3776 (try_connect): New function, with code from 'net_open'.
3777 (net_open): Rewrite main loop to deal with multiple
3778 sockets/addresses. Handle IPv6-style hostnames; implement
3779 support for IPv6 connections.
3780 * unittests/parse-connection-spec-selftests.c: New file.
3781
3782 2018-07-11 Pedro Alves <palves@redhat.com>
3783
3784 PR gdb/23377
3785 * remote.c (remote_target::remote_detach_pid): Call
3786 set_current_process.
3787
3788 2018-07-11 Pedro Alves <palves@redhat.com>
3789
3790 * h8300-tdep.c (h8300_gdbarch_init): Remove
3791 set_gdbarch_ecoff_reg_to_regnum calls.
3792
3793 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
3794
3795 PR c++/23373
3796 * c-typeprint.c (c_type_print_base_struct_union): Don't print
3797 offsets/sizes for static members of a class/struct.
3798
3799 2018-07-11 Alan Hayward <alan.hayward@arm.com>
3800
3801 * target-descriptions.c (tdesc_register_bitsize): Rename.
3802 * target-descriptions.h (tdesc_register_bitsize): Likewise.
3803 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
3804 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
3805
3806 2018-07-10 Tom Tromey <tom@tromey.com>
3807
3808 * breakpoint.c (moribund_locations): Now static and a
3809 std::vector.
3810 (breakpoint_init_inferior, moribund_breakpoint_here_p)
3811 (build_bpstat_chain, update_global_location_list)
3812 (breakpoint_retire_moribund): Update.
3813 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
3814 VEC.
3815
3816 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
3817
3818 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
3819 (riscv_register_reggroup_p): Use new function, remove unneeded
3820 parenthesis.
3821 (riscv_push_dummy_call): Extend assert to compare against xlen or
3822 flen based on register type.
3823
3824 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
3825
3826 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
3827
3828 2018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3829
3830 * remote.c (show_hardware_watchpoint_limit): New function.
3831 (show_hardware_watchpoint_length_limit): New function.
3832 (show_hardware_breakpoint_limit): New function.
3833 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
3834 where appropriate, update help text.
3835
3836 2018-07-09 Tom Tromey <tom@tromey.com>
3837
3838 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
3839 (CLIBS): Don't mention NAT_CLIBS.
3840
3841 2018-07-09 Tom Tromey <tom@tromey.com>
3842
3843 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
3844 (LIBGDB_OBS, clean mostlyclean): Update.
3845 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
3846
3847 2018-07-09 Tom Tromey <tom@tromey.com>
3848
3849 * Makefile.in (%.c: %.y): Use ECHO_YACC.
3850 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
3851 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
3852
3853 2018-07-09 Tom Tromey <tom@tromey.com>
3854
3855 * Makefile.in (ALLDEPFILES): Remove exec.c.
3856 (COMMON_OBS): Remove exec.o.
3857 (COMMON_SFILES): Add exec.c.
3858
3859 2018-07-09 Tom Tromey <tom@tromey.com>
3860
3861 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
3862
3863 2018-07-09 Tom Tromey <tom@tromey.com>
3864
3865 * Makefile.in (clean mostlyclean): Remove stamp-version.
3866 (version.c): Depend on stamp-version.
3867 (stamp-version): New rule, from version.c rule.
3868
3869 2018-07-09 Tom Tromey <tom@tromey.com>
3870
3871 * Makefile.in (init.c): Depend on stamp-init.
3872 (stamp-init): New rule, from init.c rule.
3873 (clean mostlyclean): Remove stamp-init.
3874
3875 2018-07-09 Tom Tromey <tom@tromey.com>
3876
3877 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
3878 SUBDIR_GCC_COMPILE_SRCS.
3879
3880 2018-07-09 Tom Tromey <tom@tromey.com>
3881
3882 * Makefile.in (init.c): Remove some unused sed rules.
3883
3884 2018-07-09 Tom Tromey <tom@tromey.com>
3885
3886 * Makefile.in (TSOBS): Remove.
3887 (INIT_FILES): Update.
3888 (LIBGDB_OBS): Update.
3889 (COMMON_SFILES): Add inflow.c.
3890 (SFILES): Remove inflow.c.
3891
3892 2018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3893
3894 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
3895
3896 2018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
3897
3898 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
3899 get_saveloc_name, is_signal_frame_name, step_name,
3900 init_remote_name, create_addr_space_name,
3901 destroy_addr_space_name, search_unwind_table_name,
3902 find_dyn_list_name): Constify.
3903
3904 2018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
3905
3906 * darwin-nat.c (darwin_pthread_kill): New function.
3907 (darwin_resume_thread): Use darwin_pthread_kill.
3908
3909 2018-07-05 Tom de Vries <tdevries@suse.de>
3910
3911 * macroexp.c (macro_buffer) <operator=>: New member function.
3912
3913 2018-07-04 Tom Tromey <tom@tromey.com>
3914
3915 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
3916
3917 2018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
3918
3919 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
3920 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
3921 * maint.c: Likewise.
3922 * top.c: Likewise.
3923
3924 2018-07-04 Joel Brobecker <brobecker@adacore.com>
3925
3926 * NEWS: Create a new section for the next release branch.
3927 Rename the section of the current branch, now that it has
3928 been cut.
3929
3930 2018-07-04 Joel Brobecker <brobecker@adacore.com>
3931
3932 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
3933 * version.in: Bump version to 8.2.50.DATE-git.
3934
3935 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
3936 Pedro Alves <palves@redhat.com>
3937
3938 * linux-nat.c (linux_init_ptrace): Rename to ...
3939 (linux_init_ptrace_procfs): ... this. Call
3940 linux_proc_init_warnings.
3941 (linux_nat_target::post_attach)
3942 (linux_nat_target::post_startup_inferior): Adjust.
3943 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
3944 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
3945
3946 2018-07-04 Tom de Vries <tdevries@suse.de>
3947
3948 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
3949 check ...
3950 (read_comp_unit_head): ... here.
3951
3952 2018-07-03 Tom Tromey <tom@tromey.com>
3953
3954 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
3955 (stop_tracing, tstatus_command)
3956 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
3957 (print_one_static_tracepoint_marker): Update.
3958 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
3959 std::vector.
3960 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
3961 VEC.
3962 (all_tracepoints, static_tracepoints_here): Return std::vector.
3963
3964 2018-07-03 Tom Tromey <tom@tromey.com>
3965
3966 * common/ptid.c (ptid_equal): Remove.
3967 * common/ptid.h (ptid_equal): Don't declare.
3968 * ada-tasks.c: Update.
3969 * breakpoint.c: Update.
3970 * common/agent.c: Update.
3971 * corelow.c: Update.
3972 * darwin-nat-info.c: Update.
3973 * darwin-nat.c: Update.
3974 * dcache.c: Update.
3975 * dtrace-probe.c: Update.
3976 * dummy-frame.c: Update.
3977 * fbsd-nat.c: Update.
3978 * frame.c: Update.
3979 * gdbthread.h: Update.
3980 * gnu-nat.c: Update.
3981 * go32-nat.c: Update.
3982 * inf-loop.c: Update.
3983 * inf-ptrace.c: Update.
3984 * infcall.c: Update.
3985 * infcmd.c: Update.
3986 * inflow.c: Update.
3987 * infrun.c: Update.
3988 * linux-fork.c: Update.
3989 * linux-nat.c: Update.
3990 * linux-thread-db.c: Update.
3991 * mi/mi-cmd-var.c: Update.
3992 * mi/mi-interp.c: Update.
3993 * mi/mi-main.c: Update.
3994 * nto-procfs.c: Update.
3995 * ppc-linux-tdep.c: Update.
3996 * procfs.c: Update.
3997 * python/py-inferior.c: Update.
3998 * python/py-record-btrace.c: Update.
3999 * python/py-record.c: Update.
4000 * ravenscar-thread.c: Update.
4001 * regcache.c: Update.
4002 * remote-sim.c: Update.
4003 * remote.c: Update.
4004 * sol-thread.c: Update.
4005 * solib.c: Update.
4006 * target.c: Update.
4007 * tui/tui-stack.c: Update.
4008 * varobj.c: Update.
4009 * windows-nat.c: Update.
4010 * windows-tdep.c: Update.
4011
4012 2018-07-03 Tom Tromey <tom@tromey.com>
4013
4014 * common/ptid.c (ptid_match): Remove.
4015 * common/ptid.h (ptid_match): Don't declare.
4016 * fbsd-nat.c: Update.
4017 * infcmd.c: Update.
4018 * infrun.c: Update.
4019 * linux-nat.c: Update.
4020 * record-btrace.c: Update.
4021 * regcache.c: Update.
4022 * remote.c: Update.
4023
4024 2018-07-03 Tom Tromey <tom@tromey.com>
4025
4026 * common/ptid.c (ptid_tid_p): Remove.
4027 * common/ptid.h (ptid_tid_p): Don't declare.
4028 * sol-thread.c: Update.
4029
4030 2018-07-03 Tom Tromey <tom@tromey.com>
4031
4032 * common/ptid.c (ptid_lwp_p): Remove.
4033 * common/ptid.h (ptid_lwp_p): Don't declare.
4034 * fbsd-nat.c: Update.
4035 * linux-nat.c: Update.
4036 * nat/linux-procfs.c: Update.
4037 * nat/x86-linux-dregs.c: Update.
4038 * sol-thread.c: Update.
4039
4040 2018-07-03 Tom Tromey <tom@tromey.com>
4041
4042 * common/ptid.c (ptid_is_pid): Remove.
4043 * common/ptid.h (ptid_is_pid): Don't declare.
4044 * infrun.c: Update.
4045 * linux-nat.c: Update.
4046 * mi/mi-interp.c: Update.
4047 * remote.c: Update.
4048 * thread.c: Update.
4049
4050 2018-07-03 Tom Tromey <tom@tromey.com>
4051
4052 * common/ptid.c (ptid_get_tid): Remove.
4053 * common/ptid.h (ptid_get_tid): Don't declare.
4054 * ada-tasks.c: Update.
4055 * aix-thread.c: Update.
4056 * bsd-uthread.c: Update.
4057 * darwin-nat.c: Update.
4058 * fbsd-nat.c: Update.
4059 * i386-darwin-nat.c: Update.
4060 * infrun.c: Update.
4061 * linux-tdep.c: Update.
4062 * nto-procfs.c: Update.
4063 * ppc-ravenscar-thread.c: Update.
4064 * python/py-infthread.c: Update.
4065 * ravenscar-thread.c: Update.
4066 * sol-thread.c: Update.
4067 * sparc-ravenscar-thread.c: Update.
4068 * windows-nat.c: Update.
4069
4070 2018-07-03 Tom Tromey <tom@tromey.com>
4071
4072 * common/ptid.c (ptid_get_lwp): Remove.
4073 * common/ptid.h (ptid_get_lwp): Don't declare.
4074 * aarch64-linux-nat.c: Update.
4075 * ada-tasks.c: Update.
4076 * aix-thread.c: Update.
4077 * amd64-linux-nat.c: Update.
4078 * arm-linux-nat.c: Update.
4079 * corelow.c: Update.
4080 * fbsd-nat.c: Update.
4081 * fbsd-tdep.c: Update.
4082 * gnu-nat.c: Update.
4083 * i386-cygwin-tdep.c: Update.
4084 * i386-gnu-nat.c: Update.
4085 * i386-linux-nat.c: Update.
4086 * ia64-linux-nat.c: Update.
4087 * inf-ptrace.c: Update.
4088 * infrun.c: Update.
4089 * linux-fork.c: Update.
4090 * linux-nat.c: Update.
4091 * linux-tdep.c: Update.
4092 * linux-thread-db.c: Update.
4093 * mips-linux-nat.c: Update.
4094 * nat/aarch64-linux-hw-point.c: Update.
4095 * nat/aarch64-linux.c: Update.
4096 * nat/linux-btrace.c: Update.
4097 * nat/linux-osdata.c: Update.
4098 * nat/linux-procfs.c: Update.
4099 * nat/x86-linux-dregs.c: Update.
4100 * obsd-nat.c: Update.
4101 * ppc-fbsd-nat.c: Update.
4102 * ppc-linux-nat.c: Update.
4103 * procfs.c: Update.
4104 * python/py-infthread.c: Update.
4105 * ravenscar-thread.c: Update.
4106 * remote.c: Update.
4107 * s390-linux-nat.c: Update.
4108 * sol-thread.c: Update.
4109 * sol2-tdep.c: Update.
4110 * spu-linux-nat.c: Update.
4111 * x86-linux-nat.c: Update.
4112 * xtensa-linux-nat.c: Update.
4113
4114 2018-07-03 Tom Tromey <tom@tromey.com>
4115
4116 * common/ptid.c (ptid_get_pid): Remove.
4117 * common/ptid.h (ptid_get_pid): Don't declare.
4118 * aarch64-linux-nat.c: Update.
4119 * ada-lang.c: Update.
4120 * aix-thread.c: Update.
4121 * alpha-bsd-nat.c: Update.
4122 * amd64-fbsd-nat.c: Update.
4123 * amd64-linux-nat.c: Update.
4124 * arm-linux-nat.c: Update.
4125 * arm-nbsd-nat.c: Update.
4126 * auxv.c: Update.
4127 * break-catch-syscall.c: Update.
4128 * breakpoint.c: Update.
4129 * bsd-uthread.c: Update.
4130 * corelow.c: Update.
4131 * ctf.c: Update.
4132 * darwin-nat.c: Update.
4133 * fbsd-nat.c: Update.
4134 * fbsd-tdep.c: Update.
4135 * gcore.c: Update.
4136 * gnu-nat.c: Update.
4137 * hppa-nbsd-nat.c: Update.
4138 * hppa-obsd-nat.c: Update.
4139 * i386-fbsd-nat.c: Update.
4140 * ia64-linux-nat.c: Update.
4141 * inf-ptrace.c: Update.
4142 * infcmd.c: Update.
4143 * inferior.c: Update.
4144 * inferior.h: Update.
4145 * inflow.c: Update.
4146 * infrun.c: Update.
4147 * linux-fork.c: Update.
4148 * linux-nat.c: Update.
4149 * linux-tdep.c: Update.
4150 * linux-thread-db.c: Update.
4151 * m68k-bsd-nat.c: Update.
4152 * mi/mi-interp.c: Update.
4153 * mi/mi-main.c: Update.
4154 * mips-linux-nat.c: Update.
4155 * mips-nbsd-nat.c: Update.
4156 * mips64-obsd-nat.c: Update.
4157 * nat/aarch64-linux-hw-point.c: Update.
4158 * nat/aarch64-linux.c: Update.
4159 * nat/linux-btrace.c: Update.
4160 * nat/linux-osdata.c: Update.
4161 * nat/linux-procfs.c: Update.
4162 * nat/x86-linux-dregs.c: Update.
4163 * nto-procfs.c: Update.
4164 * obsd-nat.c: Update.
4165 * ppc-linux-nat.c: Update.
4166 * ppc-nbsd-nat.c: Update.
4167 * ppc-obsd-nat.c: Update.
4168 * proc-service.c: Update.
4169 * procfs.c: Update.
4170 * python/py-inferior.c: Update.
4171 * python/py-infthread.c: Update.
4172 * ravenscar-thread.c: Update.
4173 * record.c: Update.
4174 * remote-sim.c: Update.
4175 * remote.c: Update.
4176 * rs6000-nat.c: Update.
4177 * s390-linux-nat.c: Update.
4178 * sh-nbsd-nat.c: Update.
4179 * sol-thread.c: Update.
4180 * sparc-nat.c: Update.
4181 * sparc64-tdep.c: Update.
4182 * spu-linux-nat.c: Update.
4183 * spu-tdep.c: Update.
4184 * target-debug.h: Update.
4185 * target.c: Update.
4186 * thread.c: Update.
4187 * tid-parse.c: Update.
4188 * tracefile-tfile.c: Update.
4189 * vax-bsd-nat.c: Update.
4190 * windows-nat.c: Update.
4191 * x86-linux-nat.c: Update.
4192 * x86-nat.c: Update.
4193
4194 2018-07-03 Tom Tromey <tom@tromey.com>
4195
4196 * common/ptid.c (pid_to_ptid): Remove.
4197 * common/ptid.h (pid_to_ptid): Don't declare.
4198 * aix-thread.c: Update.
4199 * arm-linux-nat.c: Update.
4200 * common/ptid.c: Update.
4201 * common/ptid.h: Update.
4202 * corelow.c: Update.
4203 * ctf.c: Update.
4204 * darwin-nat.c: Update.
4205 * fbsd-nat.c: Update.
4206 * fork-child.c: Update.
4207 * gnu-nat.c: Update.
4208 * go32-nat.c: Update.
4209 * inf-ptrace.c: Update.
4210 * infcmd.c: Update.
4211 * inferior.c: Update.
4212 * infrun.c: Update.
4213 * linux-fork.c: Update.
4214 * linux-nat.c: Update.
4215 * nat/aarch64-linux-hw-point.c: Update.
4216 * nat/fork-inferior.c: Update.
4217 * nat/x86-linux-dregs.c: Update.
4218 * nto-procfs.c: Update.
4219 * obsd-nat.c: Update.
4220 * procfs.c: Update.
4221 * progspace.c: Update.
4222 * remote.c: Update.
4223 * rs6000-nat.c: Update.
4224 * s390-linux-nat.c: Update.
4225 * sol-thread.c: Update.
4226 * spu-linux-nat.c: Update.
4227 * target.c: Update.
4228 * top.c: Update.
4229 * tracefile-tfile.c: Update.
4230 * windows-nat.c: Update.
4231
4232 2018-07-03 Tom Tromey <tom@tromey.com>
4233
4234 * common/ptid.h (ptid_build): Don't declare.
4235 * common/ptid.c (ptid_build): Remove.
4236 * aix-thread.c: Update.
4237 * bsd-kvm.c: Update.
4238 * bsd-uthread.c: Update.
4239 * common/agent.c: Update.
4240 * common/ptid.c: Update.
4241 * common/ptid.h: Update.
4242 * corelow.c: Update.
4243 * darwin-nat.c: Update.
4244 * fbsd-nat.c: Update.
4245 * gnu-nat.c: Update.
4246 * linux-fork.c: Update.
4247 * linux-nat.c: Update.
4248 * linux-thread-db.c: Update.
4249 * nat/linux-osdata.c: Update.
4250 * nat/linux-procfs.c: Update.
4251 * nto-procfs.c: Update.
4252 * obsd-nat.c: Update.
4253 * proc-service.c: Update.
4254 * procfs.c: Update.
4255 * ravenscar-thread.c: Update.
4256 * remote-sim.c: Update.
4257 * remote.c: Update.
4258 * sol-thread.c: Update.
4259 * target.c: Update.
4260 * windows-nat.c: Update.
4261
4262 2018-07-03 Tom Tromey <tom@tromey.com>
4263
4264 * infrun.c (follow_exec): Use exit_inferior_silent.
4265 * inferior.c (exit_inferior_num_silent): Remove.
4266 * inferior.h (exit_inferior_num_silent): Don't declare.
4267
4268 2018-07-03 Tom Tromey <tom@tromey.com>
4269
4270 PR cli/23340:
4271 * darwin-nat.c (darwin_attach_pid): Reset inferior and
4272 inferior_ptid on error.
4273
4274 2018-07-02 Maciej W. Rozycki <macro@mips.com>
4275 Simon Marchi <simon.marchi@polymtl.ca>
4276
4277 PR tdep/8282
4278 * disasm.h (gdb_disassembler): Add
4279 `m_disassembler_options_holder'. member
4280 * disasm.c (get_all_disassembler_options): New function.
4281 (gdb_disassembler::gdb_disassembler): Use it.
4282 (gdb_buffered_insn_length_init_dis): Likewise.
4283 (gdb_buffered_insn_length): Adjust accordingly.
4284 (set_disassembler_options): Handle options with arguments.
4285 (show_disassembler_options_sfunc): Likewise. Add a leading new
4286 line if showing options with descriptions.
4287 (disassembler_options_completer): Adapt to using the
4288 `disasm_options_and_args_t' structure.
4289 * mips-tdep.c (mips_disassembler_options): New variable.
4290 (mips_disassembler_options_o32): Likewise.
4291 (mips_disassembler_options_n32): Likewise.
4292 (mips_disassembler_options_n64): Likewise.
4293 (gdb_print_insn_mips): Don't set `disassembler_options'.
4294 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
4295 functions.
4296 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
4297 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
4298 `gdbarch_disassembler_options_implicit' and
4299 `gdbarch_valid_disassembler_options'.
4300 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
4301 `disasm_options_and_args_t' structure.
4302 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
4303 method.
4304 (valid_disassembler_options): Switch from `disasm_options_t' to
4305 the `disasm_options_and_args_t' structure.
4306 * NEWS: Document `set disassembler-options' support for the MIPS
4307 target.
4308 * gdbarch.h: Regenerate.
4309 * gdbarch.c: Regenerate.
4310
4311 2018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
4312
4313 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
4314
4315 2018-06-29 Joel Brobecker <brobecker@adacore.com>
4316
4317 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
4318 parameter in call to amd64_target_description.
4319 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
4320 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
4321 (amd64fbsd_init_abi): Likewise.
4322 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
4323 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
4324 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
4325 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
4326
4327 2018-06-29 Pedro Alves <palves@redhat.com>
4328
4329 * gdb/amd64-tdep.h (amd64_create_target_description): Add
4330 "segments" parameter.
4331 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
4332 (_initialize_amd64_tdep): Update call to
4333 amd64_create_target_description.
4334 (amd64_target_description): Add "segments" parameter. Adjust
4335 the implementation to use it.
4336 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
4337 call to amd64_create_target_description.
4338 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
4339 * gdb/arch/amd64.h (amd64_create_target_description): Add
4340 "segments" register.
4341 * gdb/arch/amd64.c (amd64_create_target_description): Add
4342 "segments" parameter. Call create_feature_i386_64bit_segments
4343 only if SEGMENTS is true.
4344 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
4345 call to amd64_create_target_description.
4346
4347 2018-06-29 Pedro Alves <palves@redhat.com>
4348
4349 * thread.c (thread_target_id_str): New, factored out from ...
4350 (print_thread_info_1): ... here. Use it to compute the max
4351 "Target Id" column width.
4352
4353 2018-06-29 Pedro Alves <palves@redhat.com>
4354
4355 * remote.c (remote_target::extra_thread_info): Delete
4356 'display_buf' and 'n' locals. from the cache, regardless of
4357 packet mechanims is in use. Use cache for qThreadExtra and qP
4358 methods too.
4359
4360 2018-06-29 Pedro Alves <palves@redhat.com>
4361
4362 * blockframe.c (find_pc_sect_containing_function): New function.
4363 * breakpoint.c (print_breakpoint_location): Don't call
4364 find_pc_sect_function.
4365 * linespec.c (create_sals_line_offset): Record the location's
4366 symbol in the sal.
4367 * linespec.c (convert_address_location_to_sals): Fill in sal's
4368 symbol with find_pc_sect_containing_function.
4369 * symtab.c (find_function_start_sal): Rename to ...
4370 (find_function_start_sal_1): ... this.
4371 (find_function_start_sal): Reimplement as wrapper around
4372 find_function_start_sal_1, and use
4373 find_pc_sect_containing_function to fill in the sal's symbol.
4374 (find_function_start_sal(symbol*, bool)): Adjust.
4375 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
4376 comments.
4377 (find_pc_sect_containing_function): Declare.
4378
4379 2018-06-29 Pedro Alves <palves@redhat.com>
4380
4381 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
4382 true if the the location has no symbol.
4383
4384 2018-06-28 Tom Tromey <tom@tromey.com>
4385
4386 * NEWS: Mention --enable-codesign.
4387 * silent-rules.mk (ECHO_SIGN): New variable.
4388 * configure.ac: Add --enable-codesign.
4389 * configure: Rebuild.
4390 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
4391 (gdb$(EXEEXT)): Optionally invoke codesign.
4392
4393 2018-06-28 Pedro Alves <palves@redhat.com>
4394
4395 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
4396 comments.
4397 (switch_to_thread_no_regs): Adjust comment.
4398 * infcmd.c (stop_pc): Delete.
4399 (post_create_inferior, info_program_command): Replace references
4400 to stop_pc with references to thread_info->suspend.stop_pc.
4401 * inferior.h (stop_pc): Delete declaration.
4402 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
4403 (handle_inferior_event_1, handle_signal_stop)
4404 (process_event_stop_test, keep_going_stepped_thread)
4405 (handle_step_into_function, handle_step_into_function_backward)
4406 (print_stop_location): Replace references to stop_pc with
4407 references to thread_info->suspend.stop_pc.
4408 (struct infcall_suspend_state) <stop_pc>: Delete field.
4409 (save_infcall_suspend_state, restore_infcall_suspend_state):
4410 Remove references to inf_stat->stop_pc.
4411 * linux-fork.c (fork_load_infrun_state): Likewise.
4412 * record-btrace.c (record_btrace_set_replay): Likewise.
4413 * record-full.c (record_full_goto_entry): Likewise.
4414 * remote.c (print_one_stopped_thread): Likewise.
4415 * target.c (target_resume): Extend comment.
4416 * thread.c (set_executing_thread): New.
4417 (set_executing): Use it.
4418 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
4419 Remove references to stop_pc.
4420
4421 2018-06-28 Pedro Alves <palves@redhat.com>
4422
4423 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
4424 Moving fetching stop_pc until after ecs->event_thread is refreshed.
4425
4426 2018-06-28 Tom Tromey <tom@tromey.com>
4427
4428 * coffread.c (coff_symfile_finish): Update.
4429 * xcoffread.c (xcoff_symfile_finish): Update.
4430 * elfread.c (elf_symfile_finish): Update.
4431 * symfile.h (dwarf2_free_objfile): Don't declare.
4432 * dwarf2read.c (_initialize_dwarf2_read): Use
4433 register_objfile_data_with_cleanup.
4434 (dwarf2_free_objfile): Now static. Change signature.
4435
4436 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4437
4438 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
4439 option "-o" to add-symbol-file-load to add an offset to each
4440 section's load address.
4441 * symfile.c (set_objfile_default_section_offset): New function.
4442
4443 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4444
4445 * symfile.c (add_symbol_file_command): Make sure that sections
4446 with the same name are sorted in the same order.
4447
4448 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4449
4450 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
4451 require the second argument. If omitted, load sections at the
4452 addresses specified in the file.
4453
4454 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4455
4456 * symfile.c (symbol_file_command, symbol_file_add_main_1)
4457 (_initialize_symfile): Add option "-o" to symbol-file to add an
4458 offset to each section of the symbol file.
4459
4460 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4461
4462 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
4463
4464 2018-06-27 Tom Tromey <tom@tromey.com>
4465
4466 * stack.c (_initialize_stack): Update "func" help text.
4467
4468 2018-06-27 Tom Tromey <tom@tromey.com>
4469
4470 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
4471 std::vector.
4472 (unwind_infopy_str, pyuw_create_unwind_info)
4473 (unwind_infopy_add_saved_register, pyuw_sniffer)
4474 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
4475 Update.
4476 (struct saved_reg): Add constructor.
4477 <value>: Now a gdbpy_ref<>.
4478
4479 2018-06-27 Tom Tromey <tom@tromey.com>
4480
4481 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
4482
4483 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4484
4485 * gdb-gdb.py.in: Format using autopep8.
4486
4487 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4488
4489 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
4490 (type_lookup_function): Recognize CORE_ADDR values.
4491
4492 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4493
4494 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
4495 print tag_name.
4496
4497 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4498
4499 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
4500 <__lt__>: Add.
4501
4502 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4503
4504 * gdb-gdb.py: Move to...
4505 * gdb-gdb.py.in: ... here.
4506 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
4507 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
4508 dependencies.
4509 (distclean): Remove gdb-gdb.py when cleaning.
4510 (gdb-gdb.py, gdb-gdb.gdb): New rules.
4511 * configure: Re-generate.
4512
4513 2018-06-27 Pedro Alves <palves@redhat.com>
4514
4515 * proc-service.c (get_ps_regcache): New.
4516 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
4517 (ps_lsetfpregs): Use it.
4518
4519 2018-06-27 Omair Javaid <omair.javaid@linaro.org>
4520
4521 PR gdb/21695
4522 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
4523 (dwarf_decode_lines_1): Adjust.
4524
4525 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4526
4527 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
4528 override.
4529 <info_proc>: Likewise.
4530
4531 2018-06-26 Joel Brobecker <brobecker@adacore.com>
4532
4533 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
4534 to windows_fetch_one_register, and only handle the case of
4535 fetching one register. Move the code that reloads the context
4536 and iterates over all registers if R is negative to...
4537 (windows_nat_target::fetch_registers): ... here.
4538 (do_windows_store_inferior_registers): Rename to
4539 windows_store_one_register, and only handle the case of storing
4540 one register. Move the code that handles the case where r is
4541 negative to...
4542 (windows_nat_target::store_registers) ... here.
4543
4544 2018-06-26 Tom Tromey <tom@tromey.com>
4545
4546 PR rust/22574:
4547 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
4548 * rust-lang.c (rust_print_struct_def): Add podata parameter.
4549 Update.
4550 (rust_internal_print_type): Add podata parameter.
4551 (rust_print_type): Update.
4552
4553 2018-06-26 Tom Tromey <tom@tromey.com>
4554
4555 * typeprint.h (struct print_offset_data) <update, finish,
4556 maybe_print_hole>: New methods.
4557 <indentation>: New constant.
4558 * typeprint.c (print_offset_data::indentation): Define.
4559 (print_offset_data::maybe_print_hole, print_offset_data::update)
4560 (print_offset_data::finish): Move from c-typeprint.c and rename.
4561 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
4562 (print_spaces_filtered_with_print_options): Update.
4563 (c_print_type_union_field_offset, maybe_print_hole)
4564 (c_print_type_struct_field_offset): Move to typeprint.c and
4565 rename.
4566 (c_type_print_base_struct_union): Update.
4567
4568 2018-06-25 Pedro Alves <palves@redhat.com>
4569
4570 * gdbthread.h (thread_info_ref, delete_thread)
4571 (delete_thread_silent, first_thread_of_inferior)
4572 (any_thread_of_inferior, switch_to_thread)
4573 (enable_thread_stack_temporaries)
4574 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4575 (get_last_thread_stack_temporary)
4576 (value_in_thread_stack_temporaries, can_access_registers_thread):
4577 Spell out "struct thread_info" instead of just "thread_info".
4578 * inferior.h (notice_new_inferior): Likewise.
4579
4580 2018-06-25 Pedro Alves <palves@redhat.com>
4581
4582 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
4583 pass thread_info pointer to delete_thread.
4584 (windows_nat_target::detach): Pass inferior pointer to
4585 detach_inferior.
4586 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
4587 delete_thread.
4588 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
4589 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
4590 and pass a thread_info pointer to delete_thread.
4591 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
4592 pass thread_info pointer to delete_thread.
4593 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
4594 delete_thread_silent call.
4595 * procfs.c (procfs_target::detach): Pass inferior pointer to
4596 detach_inferior.
4597 (procfs_target::wait): Pass thread_info pointer to delete_thread.
4598 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
4599 delete_thread_silent call.
4600 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
4601 pass thread_info pointer to delete_thread.
4602 (windows_nat_target::detach): Pass inferior pointer to
4603 delete_inferior.
4604
4605 2018-06-22 Alan Hayward <alan.hayward@arm.com>
4606
4607 * regcache.c (readable_regcache::read_part): Fix asserts.
4608 (reg_buffer::raw_collect_part): New function.
4609 (regcache::write_part): Fix asserts.
4610 (reg_buffer::raw_supply_part): New function.
4611 (regcache::transfer_regset_register): New helper function.
4612 (regcache::transfer_regset): Call new functions.
4613 (regcache_supply_regset): Use gdb_byte*.
4614 (regcache::supply_regset): Likewise.
4615 (regcache_collect_regset): Likewise.
4616 (regcache::collect_regset): Likewise.
4617 * regcache.h (reg_buffer::raw_collect_part): New declaration.
4618 (reg_buffer::raw_supply_part): Likewise.
4619 (regcache::transfer_regset_register): Likewise.
4620 (regcache::transfer_regset): Use gdb_byte*.
4621
4622 2018-06-22 Alan Hayward <alan.hayward@arm.com>
4623
4624 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
4625
4626 2018-06-21 Pedro Alves <palves@redhat.com>
4627
4628 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
4629 instead of a ptid_t. All callers adjusted.
4630 * ada-tasks.c (ada_get_task_number): Likewise. All callers
4631 adjusted.
4632 (print_ada_task_info, display_current_task_id, task_command_1):
4633 Adjust.
4634 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
4635 inferior_thread.
4636 (breakpoint_kind): Adjust.
4637 (remove_breakpoints_pid): Rename to ...
4638 (remove_breakpoints_inf): ... this. Adjust to take an inferior
4639 pointer. All callers adjusted.
4640 (bpstat_clear_actions): Use inferior_thread.
4641 (get_bpstat_thread): New.
4642 (bpstat_do_actions): Use it.
4643 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
4644 to take a thread_info pointer. All callers adjusted.
4645 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
4646 (breakpoint_re_set_thread): Use inferior_thread.
4647 * breakpoint.h (struct inferior): Forward declare.
4648 (bpstat_stop_status): Update.
4649 (remove_breakpoints_pid): Delete.
4650 (remove_breakpoints_inf): New.
4651 * bsd-uthread.c (bsd_uthread_target::wait)
4652 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
4653 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
4654 (maint_btrace_packet_history_cmd)
4655 (maint_btrace_clear_packet_history_cmd): Adjust.
4656 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
4657 inferior_thread.
4658 * cli/cli-interp.c: Include "inferior.h".
4659 * common/refcounted-object.h (struct
4660 refcounted_object_ref_policy): New.
4661 * compile/compile-object-load.c: Include gdbthread.h.
4662 (store_regs): Use inferior_thread.
4663 * corelow.c (core_target::close): Use current_inferior.
4664 (core_target_open): Adjust to use first_thread_of_inferior and use
4665 the current inferior.
4666 * ctf.c (ctf_target::close): Adjust to use current_inferior.
4667 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
4668 <thread>: ... this new field. All references adjusted.
4669 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
4670 Take a thread_info pointer instead of a ptid_t.
4671 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
4672 (dummy_frame_discard, register_dummy_frame_dtor): Take a
4673 thread_info pointer instead of a ptid_t.
4674 * elfread.c: Include "inferior.h".
4675 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
4676 Use inferior_thread.
4677 * eval.c (evaluate_subexp): Likewise.
4678 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
4679 inferior_thread.
4680 * gdb_proc_service.h (struct thread_info): Forward declare.
4681 (struct ps_prochandle) <ptid>: Delete, replaced by ...
4682 <thread>: ... this new field. All references adjusted.
4683 * gdbarch.h, gdbarch.c: Regenerate.
4684 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
4685 'thread' parameter. All implementations and callers adjusted.
4686 * gdbthread.h (thread_info) <set_running>: New method.
4687 (delete_thread, delete_thread_silent): Take a thread_info pointer
4688 instead of a ptid.
4689 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
4690 (first_thread_of_process): Delete, replaced by ...
4691 (first_thread_of_inferior): ... this new function. All callers
4692 adjusted.
4693 (any_live_thread_of_process): Delete, replaced by ...
4694 (any_live_thread_of_inferior): ... this new function. All callers
4695 adjusted.
4696 (switch_to_thread, switch_to_no_thread): Declare.
4697 (is_executing): Delete.
4698 (enable_thread_stack_temporaries): Update comment.
4699 <enable_thread_stack_temporaries>: Take a thread_info pointer
4700 instead of a ptid_t. Incref the thread.
4701 <~enable_thread_stack_temporaries>: Decref the thread.
4702 <m_ptid>: Delete
4703 <m_thr>: New.
4704 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4705 (get_last_thread_stack_temporary)
4706 (value_in_thread_stack_temporaries, can_access_registers_thread):
4707 Take a thread_info pointer instead of a ptid_t. All callers
4708 adjusted.
4709 * infcall.c (get_call_return_value): Use inferior_thread.
4710 (run_inferior_call): Work with thread pointers instead of ptid_t.
4711 (call_function_by_hand_dummy): Work with thread pointers instead
4712 of ptid_t. Use thread_info_ref.
4713 * infcmd.c (proceed_thread_callback): Access thread's state
4714 directly.
4715 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
4716 access thread's state directly.
4717 (continue_command): Use inferior_thread.
4718 (info_program_command): Use find_thread_ptid and access thread
4719 state directly.
4720 (proceed_after_attach_callback): Use thread state directly.
4721 (notice_new_inferior): Take a thread_info pointer instead of a
4722 ptid_t. All callers adjusted.
4723 (exit_inferior): Take an inferior pointer instead of a pid. All
4724 callers adjusted.
4725 (exit_inferior_silent): New.
4726 (detach_inferior): Delete.
4727 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
4728 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
4729 (detach_inferior_command, kill_inferior_command): Use
4730 find_inferior_id instead of valid_gdb_inferior_id and
4731 gdb_inferior_id_to_pid.
4732 (inferior_command): Use inferior and thread pointers.
4733 * inferior.h (struct thread_info): Forward declare.
4734 (notice_new_inferior): Take a thread_info pointer instead of a
4735 ptid_t. All callers adjusted.
4736 (detach_inferior): Delete declaration.
4737 (exit_inferior, exit_inferior_silent): Take an inferior pointer
4738 instead of a pid. All callers adjusted.
4739 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
4740 (valid_gdb_inferior_id): Delete.
4741 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
4742 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
4743 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
4744 ...
4745 <inf>: ... this new field.
4746 <step_ptid>: Delete, replaced by ...
4747 <step_thread>: ... this new field.
4748 (get_displaced_stepping_state): Take an inferior pointer instead
4749 of a pid. All callers adjusted.
4750 (displaced_step_in_progress_any_inferior): Adjust.
4751 (displaced_step_in_progress_thread): Take a thread pointer instead
4752 of a ptid_t. All callers adjusted.
4753 (displaced_step_in_progress, add_displaced_stepping_state): Take
4754 an inferior pointer instead of a pid. All callers adjusted.
4755 (get_displaced_step_closure_by_addr): Adjust.
4756 (remove_displaced_stepping_state): Take an inferior pointer
4757 instead of a pid. All callers adjusted.
4758 (displaced_step_prepare_throw, displaced_step_prepare)
4759 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
4760 All callers adjusted.
4761 (start_step_over): Adjust.
4762 (infrun_thread_ptid_changed): Remove bit updating ptids in the
4763 displaced step queue.
4764 (do_target_resume): Adjust.
4765 (fetch_inferior_event): Use inferior_thread.
4766 (context_switch, get_inferior_stop_soon): Take an
4767 execution_control_state pointer instead of a ptid_t. All callers
4768 adjusted.
4769 (switch_to_thread_cleanup): Delete.
4770 (stop_all_threads): Use scoped_restore_current_thread.
4771 * inline-frame.c: Include "gdbthread.h".
4772 (inline_state) <inline_state>: Take a thread pointer instead of a
4773 ptid_t. All callers adjusted.
4774 <ptid>: Delete, replaced by ...
4775 <thread>: ... this new field.
4776 (find_inline_frame_state): Take a thread pointer instead of a
4777 ptid_t. All callers adjusted.
4778 (skip_inline_frames, step_into_inline_frame)
4779 (inline_skipped_frames, inline_skipped_symbol): Take a thread
4780 pointer instead of a ptid_t. All callers adjusted.
4781 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
4782 (inline_skipped_frames, inline_skipped_symbol): Likewise.
4783 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
4784 pointers directly.
4785 * linux-nat.c (get_detach_signal): Likewise.
4786 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
4787 (thread_db_notice_clone): Adjust.
4788 (thread_db_find_new_threads_silently)
4789 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
4790 a thread pointer instead of a ptid_t. All callers adjusted.
4791 * mi/mi-cmd-var.c: Include "inferior.h".
4792 (mi_cmd_var_update_iter): Update to use thread pointers.
4793 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
4794 inferior directly.
4795 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
4796 out to ...
4797 (mi_output_running): ... this new function.
4798 (mi_on_resume_1): Adjust to use it.
4799 (mi_user_selected_context_changed): Adjust to use inferior_thread.
4800 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
4801 directly.
4802 (interrupt_thread_callback): : Adjust to use thread and inferior
4803 pointers.
4804 * proc-service.c: Include "gdbthread.h".
4805 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
4806 * progspace-and-thread.c: Include "inferior.h".
4807 * progspace.c: Include "inferior.h".
4808 * python/py-exitedevent.c (create_exited_event_object): Adjust to
4809 hold a reference to an inferior_object.
4810 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
4811 inferior_thread.
4812 * python/py-inferior.c (struct inferior_object): Give the type a
4813 tag name instead of a typedef.
4814 (python_on_normal_stop): No need to check if the current thread is
4815 listed.
4816 (inferior_to_inferior_object): Change return type to
4817 inferior_object. All callers adjusted.
4818 (find_thread_object): Delete, bits factored out to ...
4819 (thread_to_thread_object): ... this new function.
4820 * python/py-infthread.c (create_thread_object): Use
4821 inferior_to_inferior_object.
4822 (thpy_is_stopped): Use thread pointer directly.
4823 (gdbpy_selected_thread): Use inferior_thread.
4824 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
4825 field, replaced with ...
4826 <thread>: ... this new field. All users adjusted.
4827 (btpy_insn_or_gap_new): Drop const.
4828 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
4829 callers adjusted.
4830 * python/py-record.c: Include "gdbthread.h".
4831 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
4832 a ptid_t. All callers adjusted.
4833 (gdbpy_current_recording): Use inferior_thread.
4834 * python/py-record.h (recpy_record_object) <ptid>: Delete
4835 field, replaced with ...
4836 <thread>: ... this new field. All users adjusted.
4837 (recpy_element_object) <ptid>: Delete
4838 field, replaced with ...
4839 <thread>: ... this new field. All users adjusted.
4840 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
4841 a ptid_t. All callers adjusted.
4842 * python/py-threadevent.c: Include "gdbthread.h".
4843 (get_event_thread): Use thread_to_thread_object.
4844 * python/python-internal.h (struct inferior_object): Forward
4845 declare.
4846 (find_thread_object, find_inferior_object): Delete declarations.
4847 (thread_to_thread_object, inferior_to_inferior_object): New
4848 declarations.
4849 * record-btrace.c: Include "inferior.h".
4850 (require_btrace_thread): Use inferior_thread.
4851 (record_btrace_frame_sniffer)
4852 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
4853 (get_thread_current_frame): Use scoped_restore_current_thread and
4854 switch_to_thread.
4855 (get_thread_current_frame): Use thread pointer directly.
4856 (record_btrace_replay_at_breakpoint): Use thread's inferior
4857 pointer directly.
4858 * record-full.c: Include "inferior.h".
4859 * regcache.c: Include "gdbthread.h".
4860 (get_thread_arch_regcache): Use the inferior's address space
4861 directly.
4862 (get_thread_regcache, registers_changed_thread): New.
4863 * regcache.h (get_thread_regcache(thread_info *thread)): New
4864 overload.
4865 (registers_changed_thread): New.
4866 (remote_target) <remote_detach_1>: Swap order of parameters.
4867 (remote_add_thread): <remote_add_thread>: Return the new thread.
4868 (get_remote_thread_info(ptid_t)): New overload.
4869 (remote_target::remote_notice_new_inferior): Use thread pointers
4870 directly.
4871 (remote_target::process_initial_stop_replies): Use
4872 thread_info::set_running.
4873 (remote_target::remote_detach_1, remote_target::detach)
4874 (extended_remote_target::detach): Adjust.
4875 * stack.c (frame_show_address): Use inferior_thread.
4876 * target-debug.h (target_debug_print_thread_info_pp): New.
4877 * target-delegates.c: Regenerate.
4878 * target.c (default_thread_address_space): Delete.
4879 (memory_xfer_partial_1): Use current_inferior.
4880 (target_detach): Use current_inferior.
4881 (target_thread_address_space): Delete.
4882 (generic_mourn_inferior): Use current_inferior.
4883 * target.h (struct target_ops) <thread_address_space>: Delete.
4884 (target_thread_address_space): Delete.
4885 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
4886 pointers directly.
4887 (delete_thread_1, delete_thread, delete_thread_silent): Take a
4888 thread pointer instead of a ptid_t. Adjust all callers.
4889 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
4890 (first_thread_of_process): Delete, replaced by ...
4891 (first_thread_of_inferior): ... this new function. All callers
4892 adjusted.
4893 (any_thread_of_process): Rename to ...
4894 (any_thread_of_inferior): ... this, and take an inferior pointer.
4895 (any_live_thread_of_process): Rename to ...
4896 (any_live_thread_of_inferior): ... this, and take an inferior
4897 pointer.
4898 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4899 (value_in_thread_stack_temporaries)
4900 (get_last_thread_stack_temporary): Take a thread pointer instead
4901 of a ptid_t. Adjust all callers.
4902 (thread_info::set_running): New.
4903 (validate_registers_access): Use inferior_thread.
4904 (can_access_registers_ptid): Rename to ...
4905 (can_access_registers_thread): ... this, and take a thread
4906 pointer.
4907 (print_thread_info_1): Adjust to compare thread pointers instead
4908 of ptids.
4909 (switch_to_no_thread, switch_to_thread): Make extern.
4910 (scoped_restore_current_thread::~scoped_restore_current_thread):
4911 Use m_thread pointer directly.
4912 (scoped_restore_current_thread::scoped_restore_current_thread):
4913 Use inferior_thread.
4914 (thread_command): Use thread pointer directly.
4915 (thread_num_make_value_helper): Use inferior_thread.
4916 * top.c (execute_command): Use inferior_thread.
4917 * tui/tui-interp.c: Include "inferior.h".
4918 * varobj.c (varobj_create): Use inferior_thread.
4919 (value_of_root_1): Use find_thread_global_id instead of
4920 global_thread_id_to_ptid.
4921
4922 2018-06-21 Alan Hayward <alan.hayward@arm.com>
4923
4924 * regcache.c (readable_regcache::read_part): Avoid memcpy when
4925 possible.
4926 (regcache::write_part): Likewise.
4927 (readable_regcache::cooked_read_part): Update comment.
4928 (readable_regcache::cooked_write_part): Likewise.
4929 * regcache.h: (readable_regcache::read_part): Likewise.
4930 (regcache::write_part): Likewise.
4931
4932 2018-06-21 Richard Bunt <richard.bunt@arm.com>
4933 Dirk Schubert <dirk.schubert@arm.com>
4934
4935 * aarch64-linux-nat.c (post_attach): New.
4936 (aarch64_linux_nat_target::post_attach): Override post_attach to
4937 record the number of hardware debug registers.
4938
4939 2018-06-20 Tom Tromey <tom@tromey.com>
4940
4941 * python/py-param.c (add_setshow_generic): Make parameters const.
4942 (parmpy_init): Update.
4943
4944 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
4945
4946 * regcache.h (regcache_cooked_read_ftype): Rename to...
4947 (register_read_ftype): ...this, change type to function_view.
4948 (class reg_buffer) <save>: Remove src parameter.
4949 (readonly_detached_regcache) <readonly_detached_regcache>: Make
4950 parameter non-const in first overload. Remove src parameter in
4951 second overload.
4952 * regcache.c (do_cooked_read): Remove.
4953 (readonly_detached_regcache::readonly_detached_regcache): Make
4954 parameter non-const, adjust call to other constructor.
4955 (reg_buffer::save): Remove src parameter.
4956 * frame.c (do_frame_register_read): Remove.
4957 (frame_save_as_regcache): Use lambda function.
4958 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
4959 parameter to ppu2spu_data *.
4960 (ppu2spu_sniffer): Use lambda function.
4961
4962 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
4963
4964 * record-full.c (record_full_target::insert_breakpoint): Remove
4965 "struct" keyword, add const.
4966
4967 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
4968
4969 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
4970 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
4971 * configure.ac: Remove AC_PREREQ, add missing quoting.
4972 * gnulib/configure.ac: Modernize usage of
4973 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
4974 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
4975 (AUTOMAKE_VERSION): Bump to 1.15.1.
4976 * configure: Re-generate.
4977 * config.in: Re-generate.
4978 * aclocal.m4: Re-generate.
4979 * gnulib/aclocal.m4: Re-generate.
4980 * gnulib/config.in: Re-generate.
4981 * gnulib/configure: Re-generate.
4982 * gnulib/import/Makefile.in: Re-generate.
4983
4984 2018-06-19 Pedro Alves <palves@redhat.com>
4985
4986 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
4987 (lookup_minimal_symbol_by_pc_section): ... here with
4988 gdb_assert_not_reached added.
4989
4990 2018-06-19 Pedro Alves <palves@redhat.com>
4991
4992 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
4993 parameter with a block parameter. Compare location's block symbol
4994 with the frame's block instead of addresses.
4995 (skip_inline_frames): Pass the current block instead of the
4996 frame's address. Break out as soon as we determine the frame
4997 should not be skipped.
4998
4999 2018-06-18 Tom Tromey <tom@tromey.com>
5000
5001 * solib-aix.c (solib_aix_get_section_offsets): Return
5002 unique_xmalloc_ptr.
5003 (solib_aix_solib_create_inferior_hook): Update.
5004
5005 2018-06-18 Tom Tromey <tom@tromey.com>
5006
5007 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
5008
5009 2018-06-18 Tom Tromey <tom@tromey.com>
5010
5011 * solib-frv.c (frv_relocate_main_executable): Use
5012 unique_xmalloc_ptr.
5013 * solib-dsbt.c (dsbt_relocate_main_executable): Use
5014 unique_xmalloc_ptr.
5015
5016 2018-06-18 Tom Tromey <tom@tromey.com>
5017
5018 * objfiles.h (inhibit_section_map_updates): Update.
5019 (resume_section_map_updates, resume_section_map_updates_cleanup):
5020 Remove.
5021 * solib-svr4.c (svr4_handle_solib_event): Update.
5022 * objfiles.c (inhibit_section_map_updates): Return
5023 scoped_restore_tmpl<int>.
5024 (resume_section_map_updates, resume_section_map_updates_cleanup):
5025 Remove.
5026
5027 2018-06-18 Tom Tromey <tom@tromey.com>
5028
5029 * valprint.h (read_string): Update.
5030 * valprint.c (read_string): Change type of "buffer".
5031 (val_print_string): Update.
5032 * python/py-value.c (valpy_string): Update.
5033 * language.h (struct language_defn) <la_get_string>: Change
5034 type of "buffer".
5035 (default_get_string, c_get_string): Update.
5036 * language.c (default_get_string): Change type of "buffer".
5037 * guile/scm-value.c (gdbscm_value_to_string): Update.
5038 * c-lang.c (c_get_string): Change type of "buffer".
5039
5040 2018-06-18 Tom Tromey <tom@tromey.com>
5041
5042 * ser-mingw.c (struct pipe_state_destroyer): New.
5043 (pipe_state_up): New typedef.
5044 (cleanup_pipe_state): Remove.
5045 (pipe_windows_open): Use pipe_state_up. Don't release argv.
5046
5047 2018-06-18 Tom Tromey <tom@tromey.com>
5048
5049 * rust-lang.h (rust_yyerror): Don't declare.
5050 * rust-lang.c (rust_language_defn): Update.
5051 * rust-exp.y (yyerror): Now static.
5052 * parse.c (parse_exp_in_context_1): Update.
5053 * p-lang.h (p_yyerror): Don't declare.
5054 * p-lang.c (p_language_defn): Update.
5055 * p-exp.y (yyerror): Now static.
5056 * opencl-lang.c (opencl_language_defn): Update.
5057 * objc-lang.c (objc_language_defn): Update.
5058 * m2-lang.h (m2_yyerror): Don't declare.
5059 * m2-lang.c (m2_language_defn): Update.
5060 * m2-exp.y (yyerror): Now static.
5061 * language.h (struct language_defn) <la_error>: Remove.
5062 * language.c (unk_lang_error): Remove.
5063 (unknown_language_defn, auto_language_defn): Remove.
5064 * go-lang.h (go_yyerror): Don't declare.
5065 * go-lang.c (go_language_defn): Update.
5066 * go-exp.y (yyerror): Now static.
5067 * f-lang.h (f_yyerror): Don't declare.
5068 * f-lang.c (f_language_defn): Update.
5069 * f-exp.y (yyerror): Now static.
5070 * d-lang.h (d_yyerror): Don't declare.
5071 * d-lang.c (d_language_defn): Update.
5072 * d-exp.y (yyerror): Now static.
5073 * c-lang.h (c_yyerror): Don't declare.
5074 * c-lang.c (c_language_defn, cplus_language_defn)
5075 (asm_language_defn, minimal_language_defn): Update.
5076 * c-exp.y (yyerror): Now static.
5077 * ada-lang.h (ada_yyerror): Don't declare.
5078 * ada-lang.c (ada_language_defn): Update.
5079 * ada-exp.y (yyerror): Now static.
5080
5081 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5082
5083 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
5084 (store_sveregs_to_thread): Likewise.
5085 (aarch64_linux_fetch_inferior_registers): Check for SVE.
5086 (aarch64_linux_store_inferior_registers): Likewise.
5087 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
5088 function.
5089 (aarch64_sve_regs_copy_to_regcache): Likewise.
5090 (aarch64_sve_regs_copy_from_regcache): Likewise.
5091 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
5092 declaration.
5093 (aarch64_sve_regs_copy_to_regcache): Likewise.
5094 (aarch64_sve_regs_copy_from_regcache): Likewise.
5095 (sve_context): Structure from Linux headers.
5096 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
5097 (SVE_SIG_ZREG_SIZE): Likewise.
5098 (SVE_SIG_PREG_SIZE): Likewise.
5099 (SVE_SIG_FFR_SIZE): Likewise.
5100 (SVE_SIG_REGS_OFFSET): Likewise.
5101 (SVE_SIG_ZREGS_OFFSET): Likewise.
5102 (SVE_SIG_ZREG_OFFSET): Likewise.
5103 (SVE_SIG_ZREGS_SIZE): Likewise.
5104 (SVE_SIG_PREGS_OFFSET): Likewise.
5105 (SVE_SIG_PREG_OFFSET): Likewise.
5106 (SVE_SIG_PREGS_SIZE): Likewise.
5107 (SVE_SIG_FFR_OFFSET): Likewise.
5108 (SVE_SIG_REGS_SIZE): Likewise.
5109 (SVE_SIG_CONTEXT_SIZE): Likewise.
5110 (SVE_PT_REGS_MASK): Likewise.
5111 (SVE_PT_REGS_FPSIMD): Likewise.
5112 (SVE_PT_REGS_SVE): Likewise.
5113 (SVE_PT_VL_INHERIT): Likewise.
5114 (SVE_PT_VL_ONEXEC): Likewise.
5115 (SVE_PT_REGS_OFFSET): Likewise.
5116 (SVE_PT_FPSIMD_OFFSET): Likewise.
5117 (SVE_PT_FPSIMD_SIZE): Likewise.
5118 (SVE_PT_SVE_ZREG_SIZE): Likewise.
5119 (SVE_PT_SVE_PREG_SIZE): Likewise.
5120 (SVE_PT_SVE_FFR_SIZE): Likewise.
5121 (SVE_PT_SVE_FPSR_SIZE): Likewise.
5122 (SVE_PT_SVE_FPCR_SIZE): Likewise.
5123 (__SVE_SIG_TO_PT): Likewise.
5124 (SVE_PT_SVE_OFFSET): Likewise.
5125 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
5126 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
5127 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
5128 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
5129 (SVE_PT_SVE_PREG_OFFSET): Likewise.
5130 (SVE_PT_SVE_PREGS_SIZE): Likewise.
5131 (SVE_PT_SVE_FFR_OFFSET): Likewise.
5132 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
5133 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
5134 (SVE_PT_SVE_SIZE): Likewise.
5135 (SVE_PT_SIZE): Likewise.
5136 (HAS_SVE_STATE): New define.
5137
5138 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5139
5140 * nat/aarch64-sve-linux-sigcontext.h: New file.
5141 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
5142 new files.
5143 (SVE_VQ_MIN): Likewise.
5144 (SVE_VQ_MAX): Likewise.
5145 (SVE_VL_MIN): Likewise.
5146 (SVE_VL_MAX): Likewise.
5147 (SVE_NUM_ZREGS): Likewise.
5148 (SVE_NUM_PREGS): Likewise.
5149 (sve_vl_valid): Likewise.
5150 (struct user_sve_header): Likewise.
5151
5152 2018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
5153 Richard Bunt <Richard.Bunt@arm.com>
5154
5155 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
5156 was requested by GDB.
5157
5158 2018-06-15 Tom de Vries <tdevries@suse.de>
5159
5160 * MAINTAINERS (Write After Approval): Add Tom de Vries.
5161
5162 2018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
5163
5164 * gnulib/update-gnulib.sh: Print expected versions of
5165 autoconf/aclocal.
5166
5167 2018-06-14 Simon Marchi <simon.marchi@ericsson.com>
5168
5169 * arch-utils.c (default_type_align): Use type_length_units.
5170 * gdbtypes.c (type_align): Use type_length_units.
5171
5172 2018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5173
5174 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
5175 of 'define' command.
5176
5177 2018-06-14 Tom de Vries <tdevries@suse.de>
5178
5179 PR cli/22573
5180 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
5181 get_no_prettyformat_print_options.
5182
5183 2018-06-13 Simon Marchi <simon.marchi@ericsson.com>
5184
5185 * sparc-nat.h: Include target.h.
5186 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
5187 <fetch_registers>: Remove this argument in function call.
5188 <store_registers>: Remove this argument in function call, remove
5189 extra semicolon.
5190 <low_forget_process>: Call sparc64_forget_process instead of
5191 sparc_forget_process.
5192
5193 2018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5194
5195 * procfs.c (_initialize_procfs): Use add_inf_child_target.
5196 (procfs_target::make_corefile_notes): Adjust to new
5197 target_read_alloc return type.
5198
5199 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5200 Stephen Roberts <stephen.roberts@arm.com>
5201
5202 PR gdb/22882
5203 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
5204 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
5205 Move should_notify_stop local into more inner scope.
5206
5207 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5208 Stephen Roberts <stephen.roberts@arm.com>
5209
5210 PR gdb/22882
5211 * infrun.c (resume_1): Add call to mark_async_event_handler.
5212
5213 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5214
5215 * infrun.c (do_target_wait): Change old version of $pc printed.
5216
5217 2018-06-11 Simon Marchi <simon.marchi@ericsson.com>
5218
5219 * dwarf2read.c (read_index_from_section): Rename to...
5220 (read_gdb_index_from_section): ... this, update all callers.
5221 (dwarf2_read_index): Rename to...
5222 (dwarf2_read_gdb_index): ... this, update all callers.
5223
5224 2018-06-11 John David Anglin <danglin@gcc.gnu.org>
5225
5226 * gdb/hppa-linux-nat.c
5227 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
5228 hppa_linux_nat_target::fetch_registers.
5229
5230 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5231
5232 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
5233 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
5234 (AARCH64_DWARF_SVE_FFR): Likewise.
5235 (AARCH64_DWARF_SVE_P0): Likewise.
5236 (AARCH64_DWARF_SVE_Z0): Likewise.
5237
5238 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5239
5240 * common/common-regcache.h (raw_compare): New function.
5241 * regcache.c (regcache::raw_compare): Likewise.
5242 * regcache.h (regcache::raw_compare): New declaration.
5243
5244 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5245
5246 * common/common-regcache.h (reg_buffer_common): New structure.
5247 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
5248 (reg_buffer::raw_supply): Likewise.
5249 (reg_buffer::raw_supply_integer): Likewise.
5250 (reg_buffer::raw_supply_zeroed): Likewise.
5251 (reg_buffer::raw_collect): Likewise.
5252 (reg_buffer::raw_collect_integer): Likewise.
5253 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
5254 (reg_buffer::raw_supply): Likewise.
5255 (reg_buffer::raw_supply_integer): Likewise.
5256 (reg_buffer::raw_supply_zeroed): Likewise.
5257 (reg_buffer::raw_collect): Likewise.
5258 (reg_buffer::raw_collect_integer): Likewise.
5259
5260 2018-06-10 Tom Tromey <tom@tromey.com>
5261
5262 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
5263 (class remote_state) <stop_reply_queue>: Now std::vector.
5264 (remote_state::~remote_state)
5265 (remote_target::stop_reply_queue_length): Update.
5266 (struct queue_iter_param, remove_child_of_pending_fork)
5267 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
5268 (check_pending_event_prevents_wildcard_vcont_callback)
5269 (remove_stop_reply_for_inferior)
5270 (remove_stop_reply_of_remote_state)
5271 (remote_notif_remove_once_on_match)
5272 (stop_reply_match_ptid_and_ws)
5273 (remote_kill_child_of_pending_fork): Remove.
5274 (remote_target::remove_new_fork_children)
5275 (remote_target::check_pending_events_prevent_wildcard_vcont)
5276 (remote_target::discard_pending_stop_replies)
5277 (remote_target::discard_pending_stop_replies_in_queue)
5278 (remote_target::remote_notif_remove_queued_reply)
5279 (remote_target::queued_stop_reply)
5280 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
5281 (remote_target::wait, remote_target::kill_new_fork_children)
5282 (remote_target::async): Update.
5283
5284 2018-06-10 Tom Tromey <tom@tromey.com>
5285
5286 * record-full.c (record_full_arch_list_cleanups): Remove.
5287 (record_full_message): Use try/catch.
5288 (record_full_wait_cleanups): Remove.
5289 (record_full_wait_1): Use try/catch.
5290 (record_full_restore): Likewise.
5291
5292 2018-06-10 Tom Tromey <tom@tromey.com>
5293
5294 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
5295 declare VEC. Add constructor.
5296 <in_target_beneath>: Now bool.
5297 (record_full_breakpoints): Now a std::vector, static.
5298 (record_full_sync_record_breakpoints)
5299 (record_full_init_record_breakpoints)
5300 (record_full_target::insert_breakpoint)
5301 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
5302
5303 2018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
5304
5305 * dwarf2read.c (process_cu_includes): Remove struct keyword.
5306 * serial.c (serial_interface_lookup): Remove struct keyword.
5307
5308 2018-06-10 Tom Tromey <tom@tromey.com>
5309
5310 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
5311 method.
5312 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
5313 a method.
5314 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
5315 method.
5316 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
5317 "beneath" as a method.
5318 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
5319 Use "beneath" as a method.
5320
5321 2018-06-10 Tom Tromey <tom@tromey.com>
5322
5323 * tracefile.c (struct trace_file_writer_deleter): New.
5324 <operator()>: Rename from trace_file_writer_xfree.
5325 (trace_file_writer_up): New typedef.
5326 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
5327
5328 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
5329
5330 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
5331 <m_registers, m_register_status>: Change type to
5332 std::unique_ptr.
5333 * regcache.c (reg_buffer::reg_buffer): Use new instead of
5334 XCNEWVEC.
5335
5336 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
5337
5338 * common/common-regcache.h (enum register_status): Add
5339 underlying type "signed char".
5340 * regcache.h (reg_buffer) <m_register_status>: Change type to
5341 register_status *.
5342 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
5343 register_status instead of signed char.
5344 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
5345 (reg_buffer::get_register_status): Remove cast.
5346 (readable_regcache::raw_read): Remove cast.
5347 (readable_regcache::cooked_read): Remove cast.
5348
5349 2018-06-09 Tom Tromey <tom@tromey.com>
5350
5351 * source.c (reverse_search_command, forward_search_command): Use
5352 scoped_fd.
5353
5354 2018-06-09 Tom Tromey <tom@tromey.com>
5355
5356 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
5357 (serial_ops_list): Now static, std::vector.
5358 (serial_interface_lookup, serial_add_interface): Update.
5359
5360 2018-06-09 Tom Tromey <tom@tromey.com>
5361
5362 * dwarf2read.c (process_cu_includes): Update.
5363 (process_full_comp_unit): Update.
5364 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
5365 std::vector.
5366
5367 2018-06-08 Paul Koning <paul_koning@dell.com>
5368
5369 PR gdb/23252
5370
5371 * python/python.c (do_start_initialization):
5372 Avoid call to internal Python API.
5373 (init__gdb_module): New function.
5374
5375 2018-06-08 Gary Benson <gbenson@redhat.com>
5376
5377 * linux-thread-db.c (valprint.h): New include.
5378 (struct check_thread_db_info): New structure.
5379 (check_thread_db_on_load, tdb_testinfo): New static globals.
5380 (check_thread_db, check_thread_db_callback): New functions.
5381 (try_thread_db_load_1): Run integrity checks if requested.
5382 (maintenance_check_libthread_db): New function.
5383 (_initialize_thread_db): Register "maint check libthread-db"
5384 and "maint set/show check-libthread-db".
5385 * NEWS: Mention the above new commands.
5386
5387 2018-06-08 Tom Tromey <tom@tromey.com>
5388
5389 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
5390 now a method.
5391
5392 2018-06-08 Tom Tromey <tom@tromey.com>
5393
5394 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
5395
5396 2018-06-08 Tom Tromey <tom@tromey.com>
5397
5398 * common/btrace-common.h (struct btrace_data): Add constructor,
5399 destructor, move assignment operator.
5400 <empty, clear, fini>: New methods.
5401 <format>: Initialize.
5402 (btrace_data_init, btrace_data_fini, btrace_data_clear)
5403 (btrace_data_empty): Don't declare.
5404 * common/btrace-common.c (btrace_data_init): Remove.
5405 (btrace_data::fini): Rename from btrace_data_fini.
5406 (btrace_data::empty): Rename from btrace_data_empty.
5407 (btrace_data::clear): Rename from btrace_data_clear. Return
5408 bool.
5409 * btrace.h (make_cleanup_btrace_data): Don't declare.
5410 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
5411 (parse_xml_btrace): Update.
5412 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
5413 (maint_btrace_clear_packet_history_cmd): Update.
5414
5415 2018-06-07 Pedro Alves <palves@redhat.com>
5416
5417 * target.h (target_ops) <beneath>: Now a method. All references
5418 updated.
5419 (class target_stack): New.
5420 * target.c (g_target_stack): New.
5421 (g_current_top_target): Delete.
5422 (current_top_target): Get the top target out of g_target_stack.
5423 (target_stack::push, target_stack::unpush): New.
5424 (push_target, unpush_target): Reimplement.
5425 (target_is_pushed): Reimplement in terms of g_target_stack.
5426 (target_ops::beneath, target_stack::find_beneath): New.
5427
5428 2018-06-07 Pedro Alves <palves@redhat.com>
5429
5430 * target.h (find_target_beneath): Delete declaration.
5431 * target.c (find_target_beneath): Delete definition.
5432 * aix-thread.c: All callers of find_target_beneath adjusted to
5433 call target_ops::beneath instead.
5434 * bsd-uthread.c: Likewise.
5435 * linux-thread-db.c: Likewise.
5436 * ravenscar-thread.c: Likewise.
5437 * sol-thread.c: Likewise.
5438 * spu-multiarch.c: Likewise.
5439
5440 2018-06-07 Pedro Alves <palves@redhat.com>
5441
5442 * target.h (target_ops) <beneath>: Now a method. All references
5443 updated.
5444 (target_ops) <m_beneath>: New.
5445 * target.c (target_ops::beneath): New.
5446 * corelow.c: Adjust all references to target_ops::beneath.
5447 * linux-thread-db.c: Likewise.
5448 * make-target-delegates: Likewise.
5449 * record-btrace.c: Likewise.
5450 * record-full.c: Likewise.
5451 * remote.c: Likewise.
5452 * target.c: Likewise.
5453 * target-delegates.c: Regenerate.
5454
5455 2018-06-07 Pedro Alves <palves@redhat.com>
5456
5457 * target.h (target_stack): Delete.
5458 (current_top_target): Declare function.
5459 * target.c (target_stack): Delete.
5460 (g_current_top_target): New.
5461 (current_top_target): New function.
5462 * auxv.c: Use current_top_target instead of target_stack
5463 throughout.
5464 * avr-tdep.c: Likewise.
5465 * breakpoint.c: Likewise.
5466 * corefile.c: Likewise.
5467 * elfread.c: Likewise.
5468 * eval.c: Likewise.
5469 * exceptions.c: Likewise.
5470 * frame.c: Likewise.
5471 * gdbarch-selftests.c: Likewise.
5472 * gnu-v3-abi.c: Likewise.
5473 * ia64-tdep.c: Likewise.
5474 * ia64-vms-tdep.c: Likewise.
5475 * infcall.c: Likewise.
5476 * infcmd.c: Likewise.
5477 * infrun.c: Likewise.
5478 * linespec.c: Likewise.
5479 * linux-tdep.c: Likewise.
5480 * minsyms.c: Likewise.
5481 * ppc-linux-nat.c: Likewise.
5482 * ppc-linux-tdep.c: Likewise.
5483 * procfs.c: Likewise.
5484 * regcache.c: Likewise.
5485 * remote.c: Likewise.
5486 * rs6000-tdep.c: Likewise.
5487 * s390-linux-nat.c: Likewise.
5488 * s390-tdep.c: Likewise.
5489 * solib-aix.c: Likewise.
5490 * solib-darwin.c: Likewise.
5491 * solib-dsbt.c: Likewise.
5492 * solib-spu.c: Likewise.
5493 * solib-svr4.c: Likewise.
5494 * solib-target.c: Likewise.
5495 * sparc-tdep.c: Likewise.
5496 * sparc64-tdep.c: Likewise.
5497 * spu-tdep.c: Likewise.
5498 * symfile.c: Likewise.
5499 * symtab.c: Likewise.
5500 * target-descriptions.c: Likewise.
5501 * target-memory.c: Likewise.
5502 * target.c: Likewise.
5503 * target.h: Likewise.
5504 * tracefile-tfile.c: Likewise.
5505 * tracepoint.c: Likewise.
5506 * valops.c: Likewise.
5507 * valprint.c: Likewise.
5508 * value.c: Likewise.
5509 * windows-tdep.c: Likewise.
5510 * mi/mi-main.c: Likewise.
5511
5512 2018-06-07 Tom Tromey <tom@tromey.com>
5513
5514 * valprint.h (build_address_symbolic): Declare.
5515 * printcmd.c (print_address_symbolic): Update.
5516 (build_address_symbolic): Change "name" and "filename" to
5517 std::string.
5518 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5519 Update.
5520 * defs.h (build_address_symbolic): Remove declaration.
5521
5522 2018-06-07 Alan Hayward <alan.hayward@arm.com>
5523
5524 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
5525 (aarch64_vnv_type): Add function.
5526 (aarch64_pseudo_register_name): Add V regs for SVE.
5527 (aarch64_pseudo_register_type): Likewise.
5528 (aarch64_pseudo_register_reggroup_p): Likewise.
5529 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
5530 (aarch64_pseudo_read_value): Add V regs for SVE.
5531 (aarch64_pseudo_write_2): Use V0 offset for SVE
5532 (aarch64_pseudo_write): Add V regs for SVE.
5533 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
5534
5535 2018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
5536
5537 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
5538 (sve_vl_from_vq): Likewise.
5539
5540 2018-06-05 Tom Tromey <tom@tromey.com>
5541
5542 * cli/cli-cmds.c (show_version): Update.
5543 * top.c (print_gdb_version): Add "interactive" parameter.
5544 Update.
5545 * main.c (captured_main_1): Update.
5546 * top.h (print_gdb_version): Add "interactive" parameter and a
5547 comment.
5548
5549 2018-06-05 David Malcolm <dmalcolm@redhat.com>
5550
5551 * common/enum-flags.h: Add trailing semicolon to example in
5552 comment.
5553
5554 2018-06-05 Tom Tromey <tom@tromey.com>
5555
5556 PR cli/12326:
5557 * NEWS: Add entry about pager.
5558 * utils.c (pagination_disabled_for_command): New global.
5559 (prompt_for_continue): Allow "c" response to prompt.
5560 (reinitialize_more_filter): Clear
5561 pagination_disabled_for_command.
5562 (fputs_maybe_filtered): Check pagination_disabled_for_command.
5563
5564 2018-06-04 Tom Tromey <tom@tromey.com>
5565
5566 * ada-lang.h (ada_lookup_symbol_list): Update.
5567 * ada-lang.c (resolve_subexp): Update.
5568 (symbols_are_identical_enums): Change type of syms. Remove nsyms
5569 parameter.
5570 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
5571 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
5572 results parameter to std::vector.
5573 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
5574 Update.
5575 * ada-exp.y (block_lookup): Update.
5576 (select_possible_type_sym): Change type of syms. Remove nsyms
5577 parameter.
5578 (write_var_or_type, write_name_assoc): Update.
5579
5580 2018-06-04 Joel Brobecker <brobecker@adacore.com>
5581
5582 * windows-nat.c (windows_nat_target::xfer_partial): Return
5583 TARGET_XFER_E_IO if we need to delegate to the target beneath
5584 but BENEATH is NULL.
5585
5586 2018-06-04 Simon Marchi <simon.marchi@ericsson.com>
5587
5588 * Makefile.in (config.status): Add configure.nat as a
5589 dependency.
5590
5591 2018-06-04 Tom Tromey <tom@tromey.com>
5592
5593 * cp-name-parser.y (cpname_state): Add method declarations.
5594 (HANDLE_QUAL): Update.
5595 (cpname_state::d_grab, cpname_state::fill_comp)
5596 (cpname_state::make_operator, cpname_state::make_dtor)
5597 (cpname_state::make_builtin_type, cpname_state::make_name)
5598 (cpname_state::d_qualify, cpname_state::d_int_type)
5599 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
5600 (%union): Move earlier.
5601
5602 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5603
5604 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
5605
5606 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5607
5608 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
5609 (aarch64_pseudo_write_1): Likewise.
5610 (aarch64_pseudo_read_value): Use helper.
5611 (aarch64_pseudo_write): Likewise.
5612
5613 2018-06-04 Pedro Alves <palves@redhat.com>
5614
5615 * darwin-nat.c (darwin_ops): Delete.
5616 (darwin_attach_pid): Use get_native_target.
5617
5618 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5619
5620 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
5621 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
5622
5623 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5624
5625 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
5626 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
5627 (aarch64_gdbarch_init): Check for SVE.
5628 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
5629
5630 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5631
5632 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
5633 * aarch64-tdep.h (aarch64_read_description): Likewise.
5634 * arch/aarch64.c (aarch64_create_target_description): Likewise.
5635 * arch/aarch64.h (aarch64_create_target_description): Likewise.
5636 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
5637 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
5638 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
5639
5640 2018-06-02 Simon Marchi <simon.marchi@ericsson.com>
5641
5642 * value.c (value_fetch_lazy_bitfield): New.
5643 (value_fetch_lazy_memory): New.
5644 (value_fetch_lazy_register): New.
5645 (value_fetch_lazy): Factor out to smaller functions.
5646
5647 2018-06-01 Tom Tromey <tom@tromey.com>
5648
5649 * cp-name-parser.y (backslashable, represented): Now const.
5650
5651 2018-06-01 Tom Tromey <tom@tromey.com>
5652
5653 * cp-name-parser.y: Include parser-defs.h.
5654 (parser_fprintf): Remove declaration.
5655
5656 2018-06-01 Tom Tromey <tom@tromey.com>
5657
5658 * cp-name-parser.y: Use %pure-parser, %lex-param, and
5659 %parse-param.
5660 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
5661 (global_result): Remove globals.
5662 (struct cpname_state): New.
5663 (yyparse): Don't declare.
5664 (yylex, yyerror): Move declarations after %union.
5665 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
5666 (make_name): Add state parameter.
5667 Update all callers.
5668 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
5669 parameter.
5670 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
5671 Update.
5672 (yylex): Add lvalp, state parameters.
5673 (yyerror): Add state parameter.
5674 (cp_demangled_name_to_comp): Update.
5675
5676 2018-06-01 Tom Tromey <tom@tromey.com>
5677
5678 * cp-name-parser.y (parser_fprintf): Declare.
5679 (GDB_YY_REMAP_PREFIX): Define.
5680 Include yy-remap.h. Don't redefine yy* identifiers.
5681
5682 2018-06-01 Tom Tromey <tom@tromey.com>
5683
5684 * python/py-type.c (typy_legacy_template_argument): Update.
5685 * cp-support.h (cp_demangled_name_to_comp): Update.
5686 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
5687 parameter to be a "std::string *".
5688 (main): Update.
5689
5690 2018-06-01 H.J. Lu <hongjiu.lu@intel.com>
5691
5692 * ada-lex.l: Include "diagnostics.h" instead of
5693 "common/diagnostics.h".
5694 * unittests/environ-selftests.c: Likewise.
5695 * common/diagnostics.h: Moved to ../include.
5696
5697 2018-06-01 Joel Brobecker <brobecker@adacore.com>
5698
5699 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
5700 to language_mode_manual while calling breakpoint_re_set_one.
5701
5702 2018-06-01 Tom Tromey <tom@tromey.com>
5703
5704 * valops.c (value_cast_structs, destructor_name_p): Update.
5705 * symtab.c (gdb_mangle_name): Update.
5706 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
5707 Update.
5708 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
5709 (pascal_object_print_value_fields, pascal_object_print_value):
5710 Update.
5711 * p-typeprint.c (pascal_type_print_derivation_info): Update.
5712 * linespec.c (find_methods): Update.
5713 * gdbtypes.h (type_name_no_tag): Remove.
5714 (type_name_or_error): Rename from type_name_no_tag_or_error.
5715 * gdbtypes.c (type_name_no_tag): Remove.
5716 (type_name_or_error): Rename from type_name_no_tag_or_error.
5717 (lookup_struct_elt_type, check_typedef): Update.
5718 * expprint.c (print_subexp_standard): Update.
5719 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
5720 * d-namespace.c (d_lookup_nested_symbol): Update.
5721 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
5722 (cp_print_class_member): Update.
5723 * cp-namespace.c (cp_lookup_nested_symbol): Update.
5724 * completer.c (add_struct_fields): Update.
5725 * c-typeprint.c (cp_type_print_derivation_info)
5726 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
5727 Update.
5728 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
5729 (ada_prefer_type, ada_is_exception_sym): Update.
5730
5731 2018-06-01 Tom Tromey <tom@tromey.com>
5732
5733 * valops.c (enum_constant_from_type, value_namespace_elt)
5734 (value_maybe_namespace_elt): Update.
5735 * valarith.c (find_size_for_pointer_math): Update.
5736 * target-descriptions.c (make_gdb_type): Update.
5737 * symmisc.c (print_symbol): Update.
5738 * stabsread.c (define_symbol, read_type)
5739 (complain_about_struct_wipeout, add_undefined_type)
5740 (cleanup_undefined_types_1): Update.
5741 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
5742 (rust_range_type_p, val_print_struct, rust_print_struct_def)
5743 (rust_internal_print_type, rust_composite_type)
5744 (rust_evaluate_funcall, rust_evaluate_subexp)
5745 (rust_inclusive_range_type_p): Update.
5746 * python/py-type.c (typy_get_tag): Update.
5747 * p-typeprint.c (pascal_type_print_base): Update.
5748 * mdebugread.c (parse_symbol, parse_type): Update.
5749 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
5750 Update.
5751 * guile/scm-type.c (gdbscm_type_tag): Update.
5752 * go-lang.c (sixg_string_p): Update.
5753 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
5754 Update.
5755 * gdbtypes.h (struct main_type) <tag_name>: Remove.
5756 (TYPE_TAG_NAME): Remove.
5757 * gdbtypes.c (type_name_no_tag): Simplify.
5758 (check_typedef, check_types_equal, recursive_dump_type)
5759 (copy_type_recursive, arch_composite_type): Update.
5760 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
5761 in summary mode when needed.
5762 * eval.c (evaluate_funcall): Update.
5763 * dwarf2read.c (fixup_go_packaging, read_structure_type)
5764 (process_structure_scope, read_enumeration_type)
5765 (read_namespace_type, read_module_type, determine_prefix): Update.
5766 * cp-support.c (inspect_type): Update.
5767 * coffread.c (process_coff_symbol, decode_base_type): Update.
5768 * c-varobj.c (c_is_path_expr_parent): Update.
5769 * c-typeprint.c (c_type_print_base_struct_union): Update.
5770 (c_type_print_base_1): Update. Print struct/class/union/enum in
5771 summary when using C language.
5772 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
5773 (gen_maybe_namespace_elt): Update.
5774 * ada-lang.c (ada_type_name): Simplify.
5775 (empty_record, ada_template_to_fixed_record_type_1)
5776 (template_to_static_fixed_type)
5777 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
5778
5779 2018-06-01 Tom Tromey <tom@tromey.com>
5780
5781 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
5782 c_print_type.
5783 * c-typeprint.c (c_print_type_1): Add "language" parameter.
5784 (c_print_type): Update.
5785 (c_print_type): New overload.
5786 (c_type_print_varspec_prefix, c_type_print_args)
5787 (c_type_print_varspec_suffix, c_print_type_no_offsets)
5788 (c_type_print_base_struct_union, c_type_print_base_1)
5789 (cp_type_print_method_args): Add "language" parameter.
5790 (c_type_print_base): Update.
5791 * c-lang.h (c_print_type): Add new overload.
5792
5793 2018-06-01 Tom Tromey <tom@tromey.com>
5794
5795 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
5796 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
5797
5798 2018-06-01 Alan Hayward <alan.hayward@arm.com>
5799
5800 * aarch64-tdep.c (aarch64_sve_register_names): New const
5801 var.
5802 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
5803 (AARCH64_SVE_Z_REGS_NUM): New define.
5804 (AARCH64_SVE_P_REGS_NUM): Likewise.
5805 (AARCH64_SVE_NUM_REGS): Likewise.
5806
5807 2018-05-31 Uros Bizjak <ubizjak@gmail.com>
5808
5809 * nat/linux-ptrace.h [__alpha__]
5810 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
5811 definitions.
5812
5813 2018-05-31 Maciej W. Rozycki <macro@mips.com>
5814
5815 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
5816 the endianness selected.
5817 * NEWS: Document `set endian auto' mode operation update.
5818
5819 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5820
5821 * Makefile.in: Add new header.
5822 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
5823 (sve_vl_from_vg): Likewise.
5824 (sve_vq_from_vl): Likewise.
5825 (sve_vl_from_vq): Likewise.
5826 (sve_vq_from_vg): Likewise.
5827 (sve_vg_from_vq): Likewise.
5828 * configure.nat: Add new c file.
5829 * nat/aarch64-sve-linux-ptrace.c: New file.
5830 * nat/aarch64-sve-linux-ptrace.h: New file.
5831
5832 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5833
5834 * aarch64-linux-nat.c (aarch64_linux_read_description):
5835 Add parmeter zero.
5836 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
5837 Likewise.
5838 * aarch64-tdep.c (tdesc_aarch64_list): Add.
5839 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
5840 (aarch64_gdbarch_init): Add parmeter zero.
5841 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
5842 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
5843 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
5844 parmeter.
5845 * doc/gdb.texinfo: Describe SVE feature
5846 * features/aarch64-sve.c: New file.
5847
5848 2018-05-31 Omair Javaid <omair.javaid@linaro.org>
5849
5850 PR gdb/23210
5851 * gdbarch.sh (significant_addr_bit): Default to zero when
5852 not set by target architecture.
5853 * gdbarch.c: Re-generated.
5854 * utils.c (address_significant): Update.
5855
5856 2018-05-30 Joel Brobecker <brobecker@adacore.com>
5857
5858 * stack.c (func_command): Remove trailing newline in call to error.
5859
5860 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5861
5862 * regcache.h (regcache_raw_collect): Remove, update callers to
5863 use regcache::raw_collect.
5864 * regcache.c (regcache_raw_collect): Remove.
5865
5866 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5867
5868 * regcache.h (regcache_raw_supply): Remove, update callers to
5869 use detached_regcache::raw_supply.
5870 * regcache.c (regcache_raw_supply): Remove.
5871
5872 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5873
5874 * regcache.h (regcache_cooked_write_part): Remove, update
5875 callers to use regcache::cooked_write_part.
5876 * regcache.c (regcache_cooked_write_part): Remove.
5877
5878 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5879
5880 * regcache.h (regcache_cooked_read_part): Remove, update callers
5881 to use readable_regcache::cooked_read_part.
5882 * regcache.c (regcache_cooked_read_part): Remove.
5883
5884 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5885
5886 * regcache.h (regcache_cooked_read_value): Remove, update
5887 callers to use readable_regcache::cooked_read_value.
5888 * regcache.c (regcache_cooked_read_value): Remove.
5889
5890 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5891
5892 * regcache.h (regcache_cooked_write): Remove, update callers to
5893 use regcache::cooked_write.
5894 * regcache.c (regcache_cooked_write): Remove.
5895
5896 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5897
5898 * regcache.h (regcache_invalidate): Remove, update callers to
5899 use detached_regcache::invalidate instead.
5900 * regcache.c (regcache_invalidate): Remove.
5901
5902 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5903
5904 * regcache.h (regcache_raw_write_part): Remove, update callers
5905 to use regcache::raw_write_part instead.
5906 * regcache.c (regcache_raw_write_part): Remove.
5907
5908 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5909
5910 * regcache.h (regcache_raw_read_part): Remove, update callers to
5911 use readable_regcache::raw_read_part instead.
5912 * regcache.c (regcache_raw_read_part): Remove.
5913
5914 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5915
5916 * regcache.h (regcache_cooked_read): Remove, update callers to
5917 use readable_regcache::cooked_read instead.
5918 * regcache.c (regcache_cooked_read): Remove.
5919
5920 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5921
5922 * regcache.h (regcache_raw_write): Remove, update callers to use
5923 regcache::raw_write instead.
5924 * regcache.c (regcache_raw_write): Remove.
5925
5926 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5927
5928 * regcache.h (regcache_raw_read): Remove, update callers to use
5929 readable_regcache::raw_read instead.
5930 * regcache.c (regcache_raw_read): Remove.
5931
5932 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5933
5934 * regcache.h (regcache_raw_update): Remove, update callers to
5935 use readable_regcache::raw_update instead.
5936 * regcache.c (regcache_raw_update): Remove.
5937
5938 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5939
5940 * regcache.h (regcache_register_status): Remove, update callers
5941 to use reg_buffer::get_register_status directly instead.
5942 * regcache.c (regcache_register_status): Remove.
5943
5944 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5945
5946 * regcache.h (regcache_get_ptid): Remove, update all callers to
5947 call regcache::ptid instead.
5948 * regcache.c (regcache_get_ptid): Remove.
5949
5950 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5951
5952 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
5953
5954 2018-05-30 Pedro Alves <palves@redhat.com>
5955
5956 * common/common-exceptions.h (exception_rethrow): Use
5957 ATTRIBUTE_NORETURN.
5958
5959 2018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
5960
5961 * breakpoint.c (print_solib_event, check_status_catch_solib):
5962 Remove struct keyword in range-based for loops.
5963 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
5964 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
5965 Likewise.
5966 * linespec.c (find_superclass_methods, search_minsyms_for_name):
5967 Likewise.
5968 * symfile.c (addr_info_make_relative): Likewise.
5969 * thread.c (value_in_thread_stack_temporaries): Likewise.
5970
5971 2018-06-12 Weimin Pan <weimin.pan@oracle.com>
5972
5973 PR gdb/16841
5974 * valops.c (value_struct_elt_for_reference): Call check_typedef on
5975 aggregate type to get its real type before accessing it.
5976
5977 2018-05-29 Weimin Pan <weimin.pan@oracle.com>
5978
5979 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
5980 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
5981 * coff-pe-read.c (add_pe_forwarded_sym): Replace
5982 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
5983 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
5984 * jit.c (jit_breakpoint_re_set_internal): Likewise.
5985 * printcmd.c (info_address_command): Likewise.
5986
5987 2018-05-29 Tom Tromey <tom@tromey.com>
5988
5989 * windows-nat.c (handle_exception): Update fall-through comment.
5990
5991 2018-05-29 Tom Tromey <tom@tromey.com>
5992
5993 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
5994 (struct program_space) <added_solibs>: Now a std::vector.
5995 * breakpoint.c (print_solib_event): Update.
5996 (check_status_catch_solib): Update.
5997 * progspace.c (clear_program_space_solib_cache): Update.
5998 * solib.c (update_solib_list): Update.
5999
6000 2018-05-29 Tom Tromey <tom@tromey.com>
6001
6002 * python/py-type.c (typy_richcompare): Update.
6003 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
6004 * gdbtypes.h (types_deeply_equal): Return bool.
6005 (types_equal): Likewise.
6006 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
6007 declare VEC.
6008 (check_types_equal): Change worklist to std::vector. Return
6009 bool.
6010 (struct type_equality_entry): Add constructor.
6011 (compare_maybe_null_strings): Return bool.
6012 (check_types_worklist): Return bool. Change worklist to
6013 std::vector.
6014 (types_deeply_equal): Use std::vector.
6015 (types_equal): Return bool.
6016 (compare_maybe_null_strings): Simplify.
6017
6018 2018-05-29 Tom Tromey <tom@tromey.com>
6019
6020 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
6021
6022 2018-05-29 Tom Tromey <tom@tromey.com>
6023
6024 * objc-lang.h: Don't include cp-support.h.
6025 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
6026 declare VEC.
6027
6028 2018-05-27 Tom Tromey <tom@tromey.com>
6029
6030 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
6031
6032 2018-05-25 Tom Tromey <tom@tromey.com>
6033
6034 * value.c (value::location): Initialize.
6035
6036 2018-05-25 Tom Tromey <tom@tromey.com>
6037
6038 * dbxread.c (init_bincl_list): Remove.
6039 (bincl_list): Now a std::vector.
6040 (bincls_allocated, next_bincl): Remove.
6041 (free_bincl_list, do_free_bincl_list_cleanup)
6042 (make_cleanup_free_bincl_list): Remove.
6043 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
6044 unique_xmalloc_ptr.
6045 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
6046 (struct header_file_location): Add constructor.
6047 (add_bincl_to_list): Remove.
6048
6049 2018-05-25 Tom Tromey <tom@tromey.com>
6050
6051 * tui/tui.c (tui_enable): Update.
6052 * mi/mi-interp.c (mi_interp::init): Update.
6053 * interps.h (class interp) <name>: New method.
6054 <m_name>: Rename from name.
6055 (~scoped_restore_interp): Update.
6056 * interps.c (interp::interp): Update.
6057 (interp_add, interp_set, interp_lookup_existing)
6058 (current_interp_named_p): Update.
6059
6060 2018-05-25 Tom Tromey <tom@tromey.com>
6061
6062 * interps.c (interp_name): Remove.
6063 * mi/mi-interp.c (mi_interp::init): Update.
6064 * interps.h (interp_name): Remove.
6065 (~scoped_restore_interp): Update.
6066 * tui/tui.c (tui_enable): Update.
6067
6068 2018-05-25 Tom Tromey <tom@tromey.com>
6069
6070 * utils.c (fputs_maybe_filtered): Update.
6071 * linespec.c (decode_line_full): Update.
6072 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
6073 (mi_print_breakpoint_for_event, mi_solib_loaded)
6074 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
6075 (mi_user_selected_context_changed): Update.
6076 * mi/mi-main.c (mi_execute_command): Update.
6077 * cli/cli-script.c (execute_control_command): Update.
6078 * python/python.c (execute_gdb_command): Update.
6079 * solib.c (info_sharedlibrary_command): Update.
6080 * interps.c (interp_ui_out): Remove.
6081 * interps.h (interp_ui_out): Remove.
6082
6083 2018-05-25 Tom Tromey <tom@tromey.com>
6084
6085 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
6086 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
6087 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
6088
6089 2018-05-25 Tom Tromey <tom@tromey.com>
6090
6091 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
6092 * interps.c (interp_exec): Use scoped_restore.
6093
6094 2018-05-25 Tom Tromey <tom@tromey.com>
6095
6096 * remote.c (remote_target::remote_file_get): Use
6097 gdb::byte_vector.
6098 (remote_target::remote_file_put): Likewise.
6099
6100 2018-05-25 Tom Tromey <tom@tromey.com>
6101
6102 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
6103 a std::string.
6104 (get_pe_section_index, add_pe_exported_sym): Update.
6105 (read_pe_exported_syms): Use gdb::def_vector.
6106
6107 2018-05-25 Tom Tromey <tom@tromey.com>
6108
6109 * frame.c (remove_prev_frame): Remove.
6110 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
6111
6112 2018-05-25 Maciej W. Rozycki <macro@mips.com>
6113
6114 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
6115 Remove prototypes.
6116 * mips-linux-nat.c (supply_fpregset): Always call
6117 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
6118 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
6119 `mips_fill_fpregset'.
6120 * mips-linux-tdep.c (mips_supply_fpregset)
6121 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
6122 (mips_fill_fpregset_wrapper): Remove functions.
6123 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
6124 (mips_linux_fpregset): Remove variable.
6125 (mips_linux_iterate_over_regset_sections): Use
6126 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
6127 (mips_linux_o32_sigframe_init): Remove comment.
6128
6129 2018-05-25 Pedro Alves <palves@redhat.com>
6130
6131 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
6132 (struct readahead_cache, struct packet_reg, struct
6133 remote_arch_state, class remote_state): Move higher up in the
6134 file.
6135 (remote_target::m_remote_state): Now an object instead of a pointer.
6136 (remote_target::get_remote_state): Adjust.
6137
6138 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
6139
6140 * stack.c (select_and_print_frame): Delete.
6141 (struct function_bounds): Move struct within function.
6142 (func_command): Most content moved into new function
6143 find_frame_for_function, use new function, print result, add
6144 function comment.
6145 (find_frame_for_function): New function, now returns a result.
6146
6147 2018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6148
6149 * stack.c (iterate_over_block_arg_vars): Fix comment.
6150 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
6151
6152 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
6153
6154 PR gdb/23203
6155 * frame.c
6156 (scoped_restore_selected_frame::scoped_restore_selected_frame):
6157 Define.
6158 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
6159 Define.
6160 * frame.h (class scoped_restore_selected_frame): New class.
6161 * stack.c (print_frame_local_vars): Remove catching and rethrowing
6162 of any exception, use scoped_restore_selected_frame to restore the
6163 frame instead.
6164
6165 2018-05-24 Pedro Alves <palves@redhat.com>
6166
6167 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
6168 override.
6169
6170 2018-05-23 Tom Tromey <tom@tromey.com>
6171
6172 * complaints.c (struct complaints): Remove.
6173 (symfile_complaint_book): Remove.
6174 (series): New global.
6175 (complaint_internal): Update.
6176 (clear_complaints): Update.
6177
6178 2018-05-23 Tom Tromey <tom@tromey.com>
6179
6180 * complaints.c (counters): New global.
6181 (struct complain): Remove.
6182 (struct complaints) <root>: Remove.
6183 (complaint_sentinel): Remove.
6184 (symfile_complaint_book): Update.
6185 (find_complaint) Remove.
6186 (complaint_internal, clear_complaints): Update.
6187
6188 2018-05-23 Tom Tromey <tom@tromey.com>
6189
6190 * complaints.c (struct complain) <file, line>: Remove.
6191 (find_complaint): Remove file, line parameters.
6192 (complaint_internal): Update.
6193
6194 2018-05-23 Tom Tromey <tom@tromey.com>
6195
6196 * complaints.c (vcomplaint): Remove.
6197 (complaint_internal) Merge in contents of vcomplaint.
6198
6199 2018-05-23 Tom Tromey <tom@tromey.com>
6200
6201 * complaints.c (struct complaints) <explanation>: Remove.
6202 (symfile_explanations): Remove.
6203 (symfile_complaint_book): Update.
6204 (vcomplaint): Update.
6205 (struct explanation): Remove.
6206
6207 2018-05-23 Tom Tromey <tom@tromey.com>
6208
6209 * complaints.c (symfile_complaints): Remove.
6210 (complaint_internal): Remove "complaints" parameter.
6211 (clear_complaints, vcomplaint): Remove "c" parameter.
6212 (get_complaints): Remove.
6213 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
6214 (dwarf2_debug_line_missing_file_complaint)
6215 (dwarf2_debug_line_missing_end_sequence_complaint)
6216 (dwarf2_complex_location_expr_complaint)
6217 (dwarf2_const_value_length_mismatch_complaint)
6218 (dwarf2_section_buffer_overflow_complaint)
6219 (dwarf2_macro_malformed_definition_complaint)
6220 (dwarf2_invalid_attrib_class_complaint)
6221 (create_addrmap_from_index, dw2_symtab_iter_next)
6222 (dw2_expand_marked_cus)
6223 (dw2_debug_names_iterator::find_vec_in_debug_names)
6224 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
6225 (create_debug_type_hash_table, init_cutu_and_read_dies)
6226 (partial_die_parent_scope, add_partial_enumeration)
6227 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
6228 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
6229 (read_import_statement, read_file_scope, create_dwo_cu_reader)
6230 (create_cus_hash_table, create_dwp_hash_table)
6231 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
6232 (dwarf2_rnglists_process, dwarf2_ranges_process)
6233 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
6234 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
6235 (handle_struct_member_die, process_structure_scope)
6236 (read_array_type, read_common_block, read_module_type)
6237 (read_tag_pointer_type, read_typedef, read_base_type)
6238 (read_subrange_type, load_partial_dies, partial_die_info::read)
6239 (partial_die_info::read, partial_die_info::read)
6240 (partial_die_info::read, read_checked_initial_length_and_offset)
6241 (dwarf2_string_attr, read_formatted_entries)
6242 (dwarf_decode_line_header)
6243 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
6244 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
6245 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
6246 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
6247 (get_signatured_type, get_DW_AT_signature_type)
6248 (decode_locdesc, file_file_name, consume_improper_spaces)
6249 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
6250 (dwarf_decode_macro_bytes, dwarf_decode_macros)
6251 (dwarf2_symbol_mark_computed, set_die_type)
6252 (read_attribute_value): Update.
6253 * stap-probe.c (handle_stap_probe, get_stap_base_address):
6254 Update.
6255 * dbxread.c (unknown_symtype_complaint)
6256 (lbrac_mismatch_complaint, repeated_header_complaint)
6257 (set_namestring, function_outside_compilation_unit_complaint)
6258 (read_dbx_symtab, process_one_symbol): Update.
6259 * gdbtypes.c (stub_noname_complaint): Update.
6260 * windows-nat.c (handle_unload_dll): Update.
6261 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
6262 (decode_base_type): Update.
6263 * xcoffread.c (bf_notfound_complaint, ef_complaint)
6264 (eb_complaint, record_include_begin, record_include_end)
6265 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
6266 (process_xcoff_symbol, read_symbol)
6267 (function_outside_compilation_unit_complaint)
6268 (scan_xcoff_symtab): Update.
6269 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
6270 * buildsym.c (finish_block_internal, make_blockvector)
6271 (end_symtab_get_static_block, augment_type_symtab): Update.
6272 * dtrace-probe.c (dtrace_process_dof)
6273 (dtrace_static_probe_ops::get_probes): Update.
6274 * complaints.h (struct complaint): Don't declare.
6275 (symfile_complaints): Remove.
6276 (complaint_internal): Remove "complaints" parameter.
6277 (complaint): Likewise.
6278 (clear_complaints): Likewise.
6279 * symfile.c (syms_from_objfile_1, finish_new_objfile)
6280 (reread_symbols): Update.
6281 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
6282 (dwarf2_frame_cache, decode_frame_entry): Update.
6283 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
6284 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6285 (info_selectors_command): Update.
6286 * macrotab.c (macro_include, check_for_redefinition)
6287 (macro_undef): Update.
6288 * objfiles.c (filter_overlapping_sections): Update.
6289 * stabsread.c (invalid_cpp_abbrev_complaint)
6290 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
6291 (define_symbol, error_type, read_type, rs6000_builtin_type)
6292 (stabs_method_name_from_physname, read_member_functions)
6293 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
6294 (attach_fields_to_type, complain_about_struct_wipeout)
6295 (read_range_type, read_args, common_block_start)
6296 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
6297 Update.
6298 * mdebugread.c (index_complaint, unknown_ext_complaint)
6299 (basic_type_complaint, bad_tag_guess_complaint)
6300 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
6301 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
6302 (parse_procedure, parse_lines)
6303 (function_outside_compilation_unit_complaint)
6304 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
6305 (bad_tag_guess_complaint, reg_value_complaint): Update.
6306 * cp-support.c (demangled_name_complaint): Update.
6307 * macroscope.c (sal_macro_scope): Update.
6308 * dwarf-index-write.c (class debug_names): Update.
6309
6310 2018-05-23 Tom Tromey <tom@tromey.com>
6311
6312 * complaints.c (clear_complaints): Remove "noisy" parameter.
6313 * complaints.h (clear_complaints): Update.
6314 * symfile.c (syms_from_objfile_1, finish_new_objfile)
6315 (reread_symbols): Update.
6316
6317 2018-05-23 Tom Tromey <tom@tromey.com>
6318
6319 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
6320 SUBSEQUENT_MESSAGE.
6321 (vcomplaint, clear_complaints): Update.
6322 (symfile_explanations): Remove some messages.
6323
6324 2018-05-23 Tom Tromey <tom@tromey.com>
6325
6326 * complaints.c (internal_complaint): Remove.
6327 * complaints.h (internal_complaint): Remove.
6328
6329 2018-05-22 Maciej W. Rozycki <macro@mips.com>
6330
6331 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
6332
6333 2018-05-22 Pedro Alves <palves@redhat.com>
6334
6335 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
6336 (remote_fileio_badfd, remote_fileio_return_errno)
6337 (remote_fileio_return_success, remote_fileio_func_open)
6338 (remote_fileio_func_open, remote_fileio_func_close)
6339 (remote_fileio_func_read, remote_fileio_func_write)
6340 (remote_fileio_func_lseek, remote_fileio_func_rename)
6341 (remote_fileio_func_unlink, remote_fileio_func_stat)
6342 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
6343 (remote_fileio_func_isatty, remote_fileio_func_system): Add
6344 remote_target parameter.
6345 (remote_fio_func_map) <func>: Add remote_target parameter.
6346 (do_remote_fileio_request, remote_fileio_request):
6347 * remote-fileio.h (remote_fileio_request):
6348 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
6349 remote_target parameter.
6350 (remote_notif_process, handle_notification): Adjust to pass down
6351 the remote.
6352 (remote_notif_state_allocate): Add remote_target parameter. Save
6353 it.
6354 * remote-notif.h (struct remote_target): Forward declare.
6355 (struct notif_client) <parse, ack, can_get_pending_events>: Add
6356 remote_target parameter.
6357 (struct remote_notif_state) <remote>: New field.
6358 (remote_notif_ack, remote_notif_parse): Add remote_target
6359 parameter.
6360 (remote_notif_state_allocate, remote_notif_state_allocate): Add
6361 remote_target parameter.
6362 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
6363 (threads_listing_context, rmt_thread_action, protocol_feature)
6364 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
6365 (packet_result, struct threads_listing_context, remote_state):
6366 Move definitions and declarations higher up.
6367 (remote_target) <~remote_target>: Declare.
6368 (remote_download_command_source, remote_file_put, remote_file_get)
6369 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
6370 (remote_hostio_pread_vFile, remote_hostio_send_command)
6371 (remote_hostio_set_filesystem, remote_hostio_open)
6372 (remote_hostio_close, remote_hostio_unlink, remote_state)
6373 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
6374 (get_memory_write_packet_size, get_memory_read_packet_size)
6375 (append_pending_thread_resumptions, remote_detach_1)
6376 (append_resumption, remote_resume_with_vcont)
6377 (add_current_inferior_and_thread, wait_ns, wait_as)
6378 (process_stop_reply, remote_notice_new_inferior)
6379 (process_initial_stop_replies, remote_add_thread)
6380 (btrace_sync_conf, remote_btrace_maybe_reopen)
6381 (remove_new_fork_children, kill_new_fork_children)
6382 (discard_pending_stop_replies, stop_reply_queue_length)
6383 (check_pending_events_prevent_wildcard_vcont)
6384 (discard_pending_stop_replies_in_queue, stop_reply)
6385 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
6386 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
6387 (remote_interrupt_as, remote_interrupt_ns)
6388 (remote_get_noisy_reply, remote_query_attached)
6389 (remote_add_inferior, remote_current_thread, get_current_thread)
6390 (set_thread, set_general_thread, set_continue_thread)
6391 (set_general_process, write_ptid)
6392 (remote_unpack_thread_info_response, remote_get_threadinfo)
6393 (parse_threadlist_response, remote_get_threadlist)
6394 (remote_threadlist_iterator, remote_get_threads_with_ql)
6395 (remote_get_threads_with_qxfer)
6396 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
6397 (get_offsets, remote_check_symbols, remote_supported_packet)
6398 (remote_query_supported, remote_packet_size)
6399 (remote_serial_quit_handler, remote_detach_pid)
6400 (remote_vcont_probe, remote_resume_with_hc)
6401 (send_interrupt_sequence, interrupt_query)
6402 (remote_notif_get_pending_events, fetch_register_using_p)
6403 (send_g_packet, process_g_packet, fetch_registers_using_g)
6404 (store_register_using_P, store_registers_using_G)
6405 (set_remote_traceframe, check_binary_download)
6406 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
6407 (remote_xfer_live_readonly_partial, remote_read_bytes)
6408 (remote_send_printf, remote_flash_write, readchar)
6409 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
6410 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
6411 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
6412 (extended_remote_disable_randomization, extended_remote_run)
6413 (send_environment_packet, extended_remote_environment_support)
6414 (extended_remote_set_inferior_cwd, remote_write_qxfer)
6415 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
6416 (packet_command): Now methods of ...
6417 (remote_target): ... this class.
6418 (m_remote_state) <remote_target>: New field.
6419 (struct remote_state) <stop_reply_queue,
6420 remote_async_inferior_event_token, wait_forever_enabled_p>: New
6421 fields.
6422 (remote_state::remote_state): Allocate stop_reply_queue.
6423 (remote_state): Delete global.
6424 (get_remote_state_raw): Delete.
6425 (remote_target::get_remote_state): Allocate m_remote_state on
6426 demand.
6427 (get_current_remote_target): New.
6428 (remote_ops, extended_remote_ops): Delete.
6429 (wait_forever_enabled_p, remote_async_inferior_event_token):
6430 Delete, moved to struct remote_state.
6431 (remote_target::close): Delete self. Destruction bits split to
6432 ...
6433 (remote_target::~remote_target): ... this.
6434 (show_memory_packet_size): Adjust to use
6435 get_current_remote_target.
6436 (struct protocol_feature) <func>: Add remote_target parameter.
6437 All callers adjusted.
6438 (curr_quit_handler_target): New.
6439 (remote_serial_quit_handler): Reimplement.
6440 (remote_target::open_1): Adjust to use get_current_remote_target.
6441 Heap-allocate remote_target/extended_remote_target instances.
6442 (vcont_builder::vcont_builder): Add remote_target parameter, and
6443 save it in m_remote. All callers adjusted.
6444 (vcont_builder::m_remote): New field.
6445 (vcont_builder::restart, vcont_builder::flush)
6446 (vcont_builder::push_action): Use it.
6447 (remote_target::commit_resume): Use it.
6448 (struct queue_iter_param) <remote>: New field.
6449 (remote_target::remove_new_fork_children): Fill in 'remote' field.
6450 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
6451 (check_pending_event_prevents_wildcard_vcont_callback)
6452 (remote_target::check_pending_events_prevent_wildcard_vcont)
6453 (remote_target::discard_pending_stop_replies)
6454 (remote_target::discard_pending_stop_replies_in_queue)
6455 (remote_target::remote_notif_remove_queued_reply): Fill in
6456 'remote' field.
6457 (remote_notif_get_pending_events): New.
6458 (remote_target::readchar, remote_target::remote_serial_write):
6459 Save/restore curr_quit_handler_target.
6460 (putpkt): New.
6461 (kill_new_fork_children): Fill in 'remote' field.
6462 (packet_command): Use get_current_remote_target, defer to
6463 remote_target method of same name.
6464 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
6465 parameter, and save it in m_remote. All callers adjusted.
6466 (scoped_remote_fd::release): Use m_remote.
6467 (scoped_remote_fd::m_remote): New field.
6468 (remote_file_put, remote_file_get, remote_file_delete): Use
6469 get_current_remote_target, defer to remote_target method of same
6470 name.
6471 (remote_btrace_reset): Add remote_state paremeter. Update all
6472 callers.
6473 (remote_async_inferior_event_handler). Pass down 'data'.
6474 (remote_new_objfile): Use get_current_remote_target.
6475 (remote_target::vcont_r_supported): New.
6476 (set_range_stepping): Use get_current_remote_target and
6477 remote_target::vcont_r_supported.
6478 (_initialize_remote): Don't allocate 'remote_state' and
6479 'stop_reply_queue' globals.
6480 * remote.h (struct remote_target): Forward declare.
6481 (getpkt, putpkt, remote_notif_get_pending_events): Add
6482 'remote_target' parameter.
6483
6484 2018-05-22 Pedro Alves <palves@redhat.com>
6485
6486 * remote.c (vcont_builder): Now a class. Make all data members
6487 private.
6488 (vcont_builder) <vcont_builder, restart, flush, push_action>:
6489 Declare methods.
6490 (vcont_builder_restart): Rename to ...
6491 (vcont_builder::restart): ... this.
6492 (vcont_builder_flush): Rename to ...
6493 (vcont_builder::flush): ... this.
6494 (vcont_builder_push_action): Rename to ...
6495 (vcont_builder::push_action): ... this.
6496 (remote_target::commit_resume): Adjust.
6497
6498 2018-05-22 Pedro Alves <palves@redhat.com>
6499
6500 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
6501 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
6502 (get_fixed_memory_packet_size): New.
6503 (get_memory_packet_size): Use it.
6504 (set_memory_packet_size): Don't override the config size with
6505 DEFAULT_MAX_MEMORY_PACKET_SIZE.
6506 (show_memory_packet_size): Use get_fixed_memory_packet_size.
6507 Don't refer to get_memory_packet_size if not connected to a remote
6508 target. Show "(default)" if configured size is 0.
6509
6510 2018-05-22 Pedro Alves <palves@redhat.com>
6511
6512 * remote.c (remote_target::mourn_inferior): Move
6513 discard_pending_stop_replies call here from ...
6514 (_initialize_remote): ... here.
6515
6516 2018-05-22 Pedro Alves <palves@redhat.com>
6517
6518 * remote.c (compare_section_command): Remove set_general_process
6519 call.
6520
6521 2018-05-22 Pedro Alves <palves@redhat.com>
6522
6523 * remote.c (struct packet_reg, struct remote_arch_state):
6524 Move higher up in the file.
6525 (remote_state) <m_arch_states>: Store remote_arch_state values
6526 instead of remote_arch_state pointers.
6527 (remote_state::get_remote_arch_state): Adjust.
6528
6529 2018-05-22 Pedro Alves <palves@redhat.com>
6530
6531 * remote.c: Include <unordered_map>.
6532 (remote_state): Now a class.
6533 (remote_state) <get_remote_arch_state>: Declare method.
6534 <get_remote_arch_state>: New field.
6535 (remote_arch_state) <remote_arch_state>: Declare ctor.
6536 <regs>: Now a unique_ptr.
6537 (remote_gdbarch_data_handle): Delete.
6538 (get_remote_arch_state): Delete.
6539 (remote_state::get_remote_arch_state): New.
6540 (get_remote_state): Adjust to call remote_state's
6541 get_remote_arch_state method.
6542 (init_remote_state): Delete, bits factored out to ...
6543 (remote_arch_state::remote_arch_state): ... this new method.
6544 (get_remote_packet_size, get_memory_packet_size)
6545 (process_g_packet, remote_target::fetch_registers)
6546 (remote_target::prepare_to_store, store_registers_using_G)
6547 (remote_target::store_registers, remote_target::get_trace_status):
6548 Adjust to call remote_state's method.
6549 (_initialize_remote): Remove reference to
6550 remote_gdbarch_data_handle.
6551
6552 2018-05-22 Pedro Alves <palves@redhat.com>
6553
6554 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
6555 pread>: New method declarations.
6556 (remote_target::open_1): Adjust.
6557 (readahead_cache_invalidate): Rename to ...
6558 (readahead_cache::invalidate): ... this, and adjust to be a class
6559 method.
6560 (readahead_cache_invalidate_fd): Rename to ...
6561 (readahead_cache::invalidate_fd): ... this, and adjust to be a
6562 class method.
6563 (remote_hostio_pwrite): Adjust.
6564 (remote_hostio_pread_from_cache): Rename to ...
6565 (readahead_cache::pread): ... this, and adjust to be a class
6566 method.
6567 (remote_hostio_close): Adjust.
6568
6569 2018-05-22 Pedro Alves <palves@redhat.com>
6570
6571 * remote.c (remote_hostio_close_cleanup): Delete.
6572 (class scoped_remote_fd): New.
6573 (remote_file_put, remote_file_get): Use it.
6574
6575 2018-05-22 Pedro Alves <palves@redhat.com>
6576
6577 (struct vCont_action_support): Use bool and initialize all fields.
6578 (struct readahead_cache): Initialize all fields.
6579 (remote_state): Use bool and initialize all fields.
6580 (remote_state::remote_state, remote_state::~remote_state): New.
6581 (new_remote_state): Delete.
6582 (_initialize_remote): Use new to allocate remote_state.
6583
6584 2018-05-22 Pedro Alves <palves@redhat.com>
6585 張俊芝 <zjz@zjz.name>
6586
6587 PR gdb/22973
6588 * c-exp.y: Include "c-support.h".
6589 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
6590 of tolower. Use c_ident_is_alpha to scan names.
6591 * c-lang.c: Include "c-support.h".
6592 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
6593 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
6594 * c-support.h: New file, with bits factored out from ...
6595 * cp-name-parser.y: ... this file.
6596 Include "c-support.h".
6597 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
6598 c-support.h and renamed.
6599 (symbol_end, yylex): Adjust.
6600
6601 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6602
6603 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
6604 parameter type to CORE_ADDR.
6605 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
6606 parameter type in declaration to CORE_ADDR.
6607 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
6608 target_auxv_search to get AT_HWCAP and use the result to get the
6609 target description.
6610 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
6611 to CORE_ADDR. Remove the cast of the return value to unsigned
6612 long. Fix error predicate of target_auxv_search.
6613 (ppc_linux_nat_target::read_description): Change the type of the
6614 hwcap variable to CORE_ADDR.
6615
6616 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6617
6618 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
6619 if the size of fpscr is larger than 32 bits.
6620
6621 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6622
6623 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
6624 (ppc32_linux_vsxregmap): New global.
6625 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
6626 regcache_supply_regset, and regcache_collect_regset.
6627 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
6628 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
6629 (fetch_vsx_register, store_vsx_register): Remove.
6630 (fetch_vsx_registers): Add regno parameter. Get regset using
6631 ppc_linux_vsxregset. Use regset to supply registers.
6632 (store_vsx_registers): Add regno parameter. Get regset using
6633 ppc_linux_vsxregset. Use regset to collect registers.
6634 (fetch_register): Call fetch_vsx_registers instead of
6635 fetch_vsx_register.
6636 (store_register): Call store_vsx_registers instead of
6637 store_vsx_register.
6638 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
6639 new regno parameter.
6640 (store_ppc_registers): Call store_vsx_registers with -1 for the
6641 new regno parameter.
6642 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
6643 (ppc_collect_vsxregset): Remove.
6644
6645 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6646
6647 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
6648 offset fields.
6649 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
6650 for vector register offset fields.
6651 (ppc64_fbsd_reg_offsets): Likewise.
6652 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
6653 to vector register offset fields.
6654 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
6655 to vector register offset fields.
6656 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
6657 vector register offset fields.
6658 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
6659 initializers for vector register offset fields.
6660 (rs6000_aix64_reg_offsets): Likewise.
6661 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
6662 (ppc_supply_vrregset): Remove.
6663 (ppc_collect_vrregset): Remove.
6664 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
6665 (ppc_linux_vrregset) : New function.
6666 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
6667 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
6668 (ppc32_linux_vrregset): Remove.
6669 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
6670 and use result instead of ppc32_linux_vrregset.
6671 (ppc32_linux_reg_offsets): Remove initializers for vector register
6672 offset fields.
6673 (ppc64_linux_reg_offsets): Likewise.
6674 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
6675 * ppc-linux-nat.c: Include regset.h.
6676 (gdb_vrregset_t): Adjust comment to account for little-endian
6677 mode.
6678 (supply_vrregset, fill_vrregset): Remove.
6679 (fetch_altivec_register, store_altivec_register): Remove.
6680 (fetch_altivec_registers): Add regno parameter. Get regset using
6681 ppc_linux_vrregset. Use regset to supply registers.
6682 (store_altivec_registers): Add regno parameter. Get regset using
6683 ppc_linux_vrregset. Use regset to collect registers.
6684 (fetch_register): Call fetch_altivec_registers instead of
6685 fetch_altivec_register.
6686 (store_register): Call store_altivec_registers instead of
6687 store_altivec_register.
6688 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
6689 the new regno parameter.
6690 (store_ppc_registers): Call store_altivec_registers with -1 for
6691 the new regno parameter.
6692
6693 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6694
6695 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
6696 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
6697 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
6698 (gdb_vrregset_t): Change array type size to
6699 PPC_LINUX_SIZEOF_VRREGSET.
6700 (gdb_vsxregset_t): Change array type size to
6701 PPC_LINUX_SIZEOF_VSXREGSET.
6702 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
6703 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
6704 PPC_LINUX_SIZEOF_VSXREGSET.
6705
6706 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6707
6708 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
6709 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
6710 nat/ppc-linux.c.
6711 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
6712 ppc_linux_target_wordsize with tid.
6713 (ppc_linux_nat_target::read_description): Call ppc_linux_target
6714 wordsize with tid.
6715 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
6716 (ppc64_64bit_inferior_p): Add static and inline specifiers.
6717 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
6718 tid parameter. Remove static specifier.
6719 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
6720 (ppc_linux_target_wordsize): New declaration.
6721
6722 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6723
6724 * arch/ppc-linux-common.c: New file.
6725 * arch/ppc-linux-common.h: New file.
6726 * arch/ppc-linux-tdesc.h: New file.
6727 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
6728 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
6729 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
6730 arch/ppc-linux-tdesc.h.
6731 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
6732 arch/ppc-linux-tdesc.h.
6733 (ppc_linux_nat_target::read_description): Remove target
6734 description matching code. Fill a ppc_linux_features struct and
6735 call ppc_linux_match_description with it. Move comment about ISA
6736 2.05 to ppc-linux-common.c.
6737 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
6738 arch/ppc-linux-tdesc.h.
6739 (ppc_linux_core_read_description): Remove target description
6740 matching code. Fill a ppc_linux_features struct and call
6741 ppc_linux_match_description with it.
6742 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
6743 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
6744 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
6745 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
6746 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
6747 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
6748 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
6749 (tdesc_powerpc_e500l): Remove.
6750
6751 2018-05-22 Joel Brobecker <brobecker@adacore.com>
6752
6753 * ada-lang.c (catch_assert_command): Pass empty string instead
6754 of NULL for excep_string argument.
6755
6756 2018-05-22 Maciej W. Rozycki <macro@mips.com>
6757
6758 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
6759 the width of the requested register exceeds the width of the
6760 `ptrace' data type.
6761
6762 2018-05-21 Tom Tromey <tom@tromey.com>
6763
6764 * printcmd.c (output_command): Remove.
6765 (output_command_const): Rename to output_command.
6766 * valprint.h (output_command): Rename from output_command_const.
6767 * tracepoint.c (trace_dump_actions): Call output_command.
6768
6769 2018-05-21 Tom Tromey <tom@tromey.com>
6770
6771 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
6772 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
6773 * ada-lang.h (create_ada_exception_catchpoint): Update.
6774 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
6775 std::string.
6776 (create_excep_cond_exprs, ~ada_catchpoint)
6777 (should_stop_exception, print_one_exception)
6778 (print_mention_exception, print_recreate_exception): Update.
6779 (ada_get_next_arg): Remove.
6780 (catch_ada_exception_command_split): Use std::string. Change type
6781 of "excep_string", "cond_string".
6782 (catch_ada_exception_command): Update.
6783 (create_ada_exception_catchpoint): Change type of excep_string.
6784 (ada_exception_sal): Remove excep_string parameter.
6785 (~ada_catchpoint): Remove.
6786
6787 2018-05-21 Tom Tromey <tom@tromey.com>
6788
6789 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
6790 cleanup.
6791
6792 2018-05-21 Tom Tromey <tom@tromey.com>
6793
6794 * ada-lang.c (ada_exception_message_1, ada_exception_message):
6795 Return unique_xmalloc_ptr.
6796 (print_it_exception): Update.
6797
6798 2018-05-21 Tom Tromey <tom@tromey.com>
6799
6800 * tracepoint.c (trace_dump_actions): Use std::string.
6801
6802 2018-05-21 Tom Tromey <tom@tromey.com>
6803
6804 * symfile.c (reread_symbols): Use std::string for original_name.
6805
6806 2018-05-21 Tom Tromey <tom@tromey.com>
6807
6808 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
6809 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
6810 constructor.
6811
6812 2018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
6813
6814 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
6815 instance to...
6816 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
6817 * objfiles.c (get_objfile_bfd_data): Allocate
6818 objfile_per_bfd_storage with obstack_new when allocating on
6819 obstack.
6820
6821 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
6822
6823 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
6824 OBSTACK_ZALLOC.
6825 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
6826 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
6827 * mdebugread.c (mdebug_build_psymtabs): Likewise.
6828 (add_pending): Likewise.
6829 (parse_symbol): Likewise.
6830 (parse_partial_symbols): Likewise.
6831 (psymtab_to_symtab_1): Likewise.
6832 (new_psymtab): Likewise.
6833 (elfmdebug_build_psymtabs): Likewise.
6834 * minsyms.c (terminate_minimal_symbol_table): Likewise.
6835 * objfiles.c (get_objfile_bfd_data): Likewise.
6836 (objfile_register_static_link): Likewise.
6837 * psymtab.c (allocate_psymtab): Likewise.
6838 * stabsread.c (read_member_functions): Likewise.
6839 * xcoffread.c (xcoff_end_psymtab): Likewise.
6840
6841 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
6842
6843 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
6844 compiler supports std::is_trivially_constructible.
6845 * common/poison.h: Include obstack.h.
6846 (IsMallocable): Define to is_trivially_constructible if the
6847 compiler supports it, define to true_type otherwise.
6848 (xobnew): New.
6849 (XOBNEW): Redefine.
6850 (xobnewvec): New.
6851 (XOBNEWVEC): Redefine.
6852 * gdb_obstack.h (obstack_zalloc): New.
6853 (OBSTACK_ZALLOC): Redefine.
6854 (obstack_calloc): New.
6855 (OBSTACK_CALLOC): Redefine.
6856 (obstack_new): New.
6857 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
6858 (gdbarch_obstack): New declaration in gdbarch.h, definition in
6859 gdbarch.c.
6860 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
6861 obstack_calloc/obstack_zalloc.
6862 (gdbarch_obstack_zalloc): Remove.
6863 * target-descriptions.c (tdesc_data_init): Use obstack_new.
6864
6865 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6866
6867 * stack.c (backtrace_command_1): Remove useless variable int i.
6868
6869 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6870
6871 * stack.c (print_frame_info): Fix comment.
6872
6873 2018-05-18 Tom Tromey <tom@tromey.com>
6874
6875 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
6876 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
6877 (~dwarf2_per_objfile): Update
6878 (dwarf2_get_dwz_file): Use new.
6879 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
6880 unique_ptr.
6881
6882 2018-05-18 Tom Tromey <tom@tromey.com>
6883
6884 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
6885 unique_ptr.
6886 * dwarf2read.c (struct dwp_file): Add constructor and
6887 initializers.
6888 (open_and_init_dwp_file): Return a unique_ptr.
6889 (dwarf2_per_objfile, create_dwp_hash_table)
6890 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
6891 (lookup_dwo_unit_in_dwp): Update.
6892 (open_and_init_dwp_file, get_dwp_file): Update.
6893
6894 2018-05-18 Tom Tromey <tom@tromey.com>
6895
6896 * dwarf2read.c (dwarf2_per_objfile): Update.
6897 (struct mapped_index): Add initializers.
6898 (dwarf2_read_index): Use new.
6899 (dw2_symtab_iter_init): Update.
6900 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
6901 unique_ptr.
6902
6903 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
6904
6905 * dwarf2read.c (mapped_index) <total_size>: Remove.
6906
6907 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
6908
6909 * unittests/format_pieces-selftests.c (test_format_specifier):
6910 Add ARI comments.
6911
6912 2018-05-18 Tom Tromey <tom@tromey.com>
6913
6914 * c-typeprint.c (maybe_print_hole): New function.
6915 (c_print_type_struct_field_offset): Update.
6916 (c_type_print_base_struct_union): Call maybe_print_hole.
6917
6918 2018-05-17 Keith Seitz <keiths@redhat.com>
6919
6920 * breakpoint.c (build_bpstat_chain): New function, moved from
6921 bpstat_stop_status.
6922 (bpstat_stop_status): Add optional parameter, `stop_chain'.
6923 If no stop chain is passed, call build_bpstat_chain to build it.
6924 * breakpoint.h (build_bpstat_chain): Declare.
6925 (bpstat_stop_status): Move documentation here from breakpoint.c.
6926 * infrun.c (handle_signal_stop): Before eliding inlined frames,
6927 build the stop chain and pass it to skip_inline_frames.
6928 Pass this stop chain to bpstat_stop_status.
6929 * inline-frame.c: Include breakpoint.h.
6930 (stopped_by_user_bp_inline_frame): New function.
6931 (skip_inline_frames): Add parameter `stop_chain'.
6932 Move documention to inline-frame.h.
6933 If non-NULL, use stopped_by_user_bp_inline_frame to determine
6934 whether the frame should be elided.
6935 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
6936 Add moved documentation and update for new parameter.
6937
6938 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
6939
6940 PR cli/14975
6941 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6942 unittests/format_pieces-selftests.c.
6943 * common/format.h (format_piece) <operator==>: New.
6944 (format_pieces) <operator[]>: Remove.
6945 * common/format.c (format_pieces::format_pieces): Handle \e.
6946 * unittests/format_pieces-selftests.c: New.
6947
6948 2018-05-17 Tom Tromey <tom@tromey.com>
6949
6950 PR symtab/23010:
6951 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
6952 (dw2_instantiate_symtab): Add skip_partial parameter.
6953 (dw2_find_last_source_symtab, dw2_map_expand_apply)
6954 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
6955 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
6956 (dw2_expand_symtabs_matching_one)
6957 (dw2_find_pc_sect_compunit_symtab)
6958 (dw2_debug_names_lookup_symbol)
6959 (dw2_debug_names_expand_symtabs_for_function): Update.
6960 (init_cutu_and_read_dies): Add skip_partial parameter.
6961 (process_psymtab_comp_unit, build_type_psymtabs_1)
6962 (process_skeletonless_type_unit, load_partial_comp_unit)
6963 (psymtab_to_symtab_1): Update.
6964 (load_full_comp_unit): Add skip_partial parameter.
6965 (process_imported_unit_die, dwarf2_read_addr_index)
6966 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
6967 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
6968 (read_signatured_type): Update.
6969
6970 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
6971
6972 * value.c (release_value): Remove unused variable.
6973 (record_latest_value): Likewise.
6974 (access_value_history): Likewise.
6975 (preserve_values): Likewise.
6976
6977 2018-05-17 Tom Tromey <tom@tromey.com>
6978
6979 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
6980 Initialize.
6981
6982 2018-05-16 Maciej W. Rozycki <macro@mips.com>
6983
6984 PR gdb/22286
6985 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
6986 Also handle registers whose width is not a multiple of
6987 PTRACE_TYPE_RET.
6988 (linux_nat_trad_target::store_register): Likewise.
6989
6990 2018-05-16 Tom Tromey <tom@tromey.com>
6991
6992 * gdbcore.h (core_bfd): Redefine.
6993 * corelow.c (core_target::close): Update.
6994 (core_target_open): Update.
6995 * progspace.h (struct program_space) <cbfd>: Now a
6996 gdb_bfd_ref_ptr.
6997
6998 2018-05-16 Tom Tromey <tom@tromey.com>
6999
7000 PR cli/19551:
7001 * symfile-add-flags.h (enum symfile_add_flags)
7002 <SYMFILE_NOT_FILENAME>: New constant.
7003 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
7004 objfile name from BFD.
7005 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
7006 * minidebug.c (find_separate_debug_file_in_section): Put
7007 ".gnu_debugdata" into BFD's file name.
7008
7009 2018-05-16 Simon Marchi <simon.marchi@ericsson.com>
7010
7011 * regcache.c (regcache_read_ftype, regcache_write_ftype):
7012 Remove.
7013
7014 2018-05-15 Tamar Christina <tamar.christina@arm.com>
7015
7016 PR binutils/21446
7017 * aarch64-tdep.c (aarch64_analyze_prologue,
7018 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
7019 Indicate not interested in errors.
7020
7021 2018-05-15 Maciej W. Rozycki <macro@mips.com>
7022
7023 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
7024 Supply the MIPS_ZERO_REGNUM register.
7025
7026 2018-05-15 Maciej W. Rozycki <macro@mips.com>
7027
7028 * mips-tdep.c (mask_address_var): Make variable static.
7029
7030 2018-05-14 Tom Tromey <tom@tromey.com>
7031
7032 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
7033
7034 2018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
7035
7036 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
7037 FXSAVE_ADDR for the mxcsr register.
7038
7039 2018-05-11 Max Filippov <jcmvbkbc@gmail.com>
7040
7041 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
7042
7043 2018-05-11 Pedro Alves <palves@redhat.com>
7044
7045 * corelow.c (core_target) <core_target>: No longer inline.
7046 Initialize m_core_gdbarch, m_core_vec and build the section table
7047 here.
7048 <~core_target>: New.
7049 <core_gdbarch, get_core_register_section>: New methods.
7050 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
7051 factored out from ...
7052 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
7053 (core_ops): Delete.
7054 (sniff_core_bfd): Add gdbarch parameter.
7055 (core_close): Delete, merged into ...
7056 (core_target::close): ... here. Delete self.
7057 (core_close_cleanup): Delete.
7058 (core_target_open): Allocate a core_target on the heap. Use a
7059 unique_ptr instead of a cleanup. Bits moved into the core_target
7060 ctor. Adjust to use core_target methods instead of globals.
7061 (get_core_register_section): Rename to ...
7062 (core_target::get_core_register_section): ... this and adjust.
7063 (struct get_core_registers_cb_data): New.
7064 (get_core_registers_cb): Use it. Use bool.
7065 (core_target::fetch_registers, core_target::files_info)
7066 (core_target::xfer_partial, core_target::read_description)
7067 (core_target::pid_to, core_target::thread_name): Adjust to
7068 reference class fields instead of globals.
7069 * target.h (struct target_ops_deleter, target_ops_up): New.
7070
7071 2018-05-11 Pedro Alves <palves@redhat.com>
7072
7073 * corefile.c (core_file_command): Move to corelow.c.
7074 * corelow.c (the_core_target): Delete.
7075 (core_file_command): Moved from corefile.c. Check exec_bfd
7076 instead of the_core_target. Use target_detach instead of calling
7077 into the_core_target directly.
7078 (maybe_say_no_core_file_now): New.
7079 (core_target::detach): Use it.
7080 (_initialize_corelow): Remove references to the_core_target.
7081 * gdbcore.h (the_core_target): Delete.
7082
7083 2018-05-11 Tom Tromey <tromey@redhat.com>
7084 Pedro Alves <palves@redhat.com>
7085
7086 * corefile.c (core_bfd): Remove.
7087 * gdbcore.h (core_bfd): Now a macro.
7088 * progspace.h (struct program_space) <cbfd>: New field.
7089
7090 2018-05-11 Tom Tromey <tom@tromey.com>
7091
7092 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
7093 gdb::def_vector.
7094
7095 2018-05-10 Tom Tromey <tom@tromey.com>
7096
7097 * configure: Rebuild.
7098 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
7099
7100 2018-05-10 Joel Brobecker <brobecker@adacore.com>
7101
7102 PR server/23158:
7103 * regformats/regdat.sh: Adjust script, following the addition
7104 of the new expedite_regs parameter to init_target_desc.
7105
7106 2018-05-10 Omair Javaid <omair.javaid@linaro.org>
7107
7108 PR gdb/23127
7109 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
7110 set_gdbarch_significant_addr_bit.
7111 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
7112 set_gdbarch_significant_addr_bit.
7113 * utils.c (address_significant): Update to sign extend addr.
7114
7115 2018-05-09 Max Filippov <jcmvbkbc@gmail.com>
7116
7117 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
7118 (xtensa_linux_init_abi): Limit tdep->num_regs by
7119 tdep->num_nopriv_regs.
7120 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
7121 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
7122 not initialized.
7123
7124 2018-05-08 Simon Marchi <simon.marchi@ericsson.com>
7125
7126 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
7127
7128 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
7129
7130 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
7131 (I387_MXCSR_INIT_VAL): New constant.
7132 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
7133 buffer if it was supplied by the inferior.
7134 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
7135 (i387_xsave_get_clear_bv): New function.
7136 (i387_supply_xsave): Only read x87 control registers from the
7137 xsave buffer if the feature is enabled, and the state will have
7138 been written, otherwise, provide a suitable default.
7139 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
7140 including x87 control registers. Update control registers if they
7141 have changed from the default value, and mark features as enabled
7142 as required.
7143 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
7144
7145 2018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7146
7147 * spu-tdep.c (info_spu_event_command): Fix output formatting.
7148
7149 2018-05-07 Tom Tromey <tom@tromey.com>
7150
7151 * configure: Rebuild.
7152 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
7153
7154 2018-05-07 Tom Tromey <tom@tromey.com>
7155
7156 PR tdep/20362:
7157 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
7158 bit. Use correct value for VDIV.
7159
7160 2018-05-04 Tom Tromey <tom@tromey.com>
7161
7162 * configure: Rebuild.
7163 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
7164
7165 2018-05-04 Tom Tromey <tom@tromey.com>
7166
7167 * linux-record.c (record_linux_system_call) <case
7168 RECORD_SYS_RECVFROM>: Add "break".
7169
7170 2018-05-04 Tom Tromey <tom@tromey.com>
7171
7172 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
7173 Add missing "break".
7174 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
7175 Add missing "break".
7176
7177 2018-05-04 Tom Tromey <tom@tromey.com>
7178
7179 * rs6000-tdep.c (ppc_process_record_op4)
7180 (ppc_process_record_op63): Add fall-through comment.
7181
7182 2018-05-04 Tom Tromey <tom@tromey.com>
7183
7184 * i386-tdep.c (i386_process_record): Add fall-through comment.
7185
7186 2018-05-04 Tom Tromey <tom@tromey.com>
7187
7188 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
7189 comment.
7190
7191 2018-05-04 Tom Tromey <tom@tromey.com>
7192
7193 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
7194 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
7195 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
7196 comment.
7197 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
7198 comment.
7199 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
7200 comment.
7201
7202 2018-05-04 Tom Tromey <tom@tromey.com>
7203
7204 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
7205
7206 2018-05-04 Tom Tromey <tom@tromey.com>
7207
7208 * s390-tdep.c (s390_process_record): Fix fall-through comments.
7209 * xcoffread.c (scan_xcoff_symtab): Move comment later.
7210 * symfile.c (section_is_mapped): Fix fall-through comment.
7211 * stabsread.c (define_symbol, read_member_functions): Fix
7212 fall-through comment.
7213 * s390-linux-tdep.c (s390_process_record): Fix fall-through
7214 comment.
7215 * remote.c (remote_wait_as): Fix fall-through comment.
7216 * p-exp.y (yylex): Fix fall-through comment.
7217 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
7218 comment.
7219 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
7220 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
7221 * jv-exp.y (yylex): Fix fall-through comment.
7222 * go-exp.y (lex_one_token): Fix fall-through comment.
7223 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
7224 fall-through comment.
7225 * f-exp.y (yylex): Fix fall-through comment.
7226 * dwarf2read.c (process_die): Fix fall-through comments.
7227 * dbxread.c (process_one_symbol): Fix fall-through comment.
7228 * d-exp.y (lex_one_token): Fix fall-through comment.
7229 * cp-name-parser.y (yylex): Fix fall-through comment.
7230 * coffread.c (coff_symtab_read): Fix fall-through comment.
7231 * c-exp.y (lex_one_token): Fix fall-through comment.
7232 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
7233 comment.
7234 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
7235 comment.
7236
7237 2018-05-04 Tom Tromey <tom@tromey.com>
7238
7239 PR python/22730:
7240 * NEWS: Mention gdb.execute change.
7241 * gdbcmd.h (execute_control_command): Don't declare.
7242 * python/python.c (execute_gdb_command): Use read_command_lines_1,
7243 execute_control_commands, execute_control_commands_to_string.
7244 * cli/cli-script.h (execute_control_commands)
7245 (execute_control_commands_to_string): Declare.
7246 (execute_control_command): Add from_tty parameter.
7247 * cli/cli-script.c (execute_control_commands)
7248 (execute_control_commands_to_string): New functions.
7249 (execute_user_command): Use execute_control_commands.
7250 (execute_control_command_1): Add "from_tty" parameter. Update.
7251 (execute_control_command): Likewise.
7252
7253 2018-05-04 Tom Tromey <tom@tromey.com>
7254
7255 PR python/22731:
7256 * NEWS: Mention that breakpoint commands are writable.
7257 * python/py-breakpoint.c (bppy_set_commands): New function.
7258 (breakpoint_object_getset) <"commands">: Use it.
7259
7260 2018-05-04 Tom Tromey <tom@tromey.com>
7261
7262 * tracepoint.c (actions_command): Update.
7263 * mi/mi-cmd-break.c (mi_command_line_array)
7264 (mi_command_line_array_cnt, mi_command_line_array_ptr)
7265 (mi_read_next_line): Remove.
7266 (mi_cmd_break_commands): Update.
7267 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
7268 function_view.
7269 * cli/cli-script.c (get_command_line): Update.
7270 (process_next_line): Use function_view. Constify.
7271 (recurse_read_control_structure, read_command_lines)
7272 (read_command_lines_1): Change argument types to function_view.
7273 (do_define_command, document_command): Update.
7274 * breakpoint.h (check_tracepoint_command): Don't declare.
7275 * breakpoint.c (check_tracepoint_command): Remove.
7276 (commands_command_1, create_tracepoint_from_upload): Update.
7277
7278 2018-05-04 Tom Tromey <tom@tromey.com>
7279
7280 PR gdb/11750:
7281 * cli/cli-script.h (enum command_control_type) <define_control>:
7282 New constant.
7283 * cli/cli-script.c (multi_line_command_p): Handle define_control.
7284 (build_command_line, execute_control_command_1)
7285 (process_next_line): Likewise.
7286 (do_define_command): New function, extracted from define_command.
7287 (define_command): Use it.
7288
7289 2018-05-04 Tom Tromey <tom@tromey.com>
7290
7291 * tracepoint.c (actions_command): Update.
7292 * cli/cli-script.h (read_command_lines): Update.
7293 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
7294 (MAX_TMPBUF): Remove define.
7295 (define_command): Use string_printf.
7296 (document_command): Likewise.
7297 * breakpoint.c (commands_command_1): Update.
7298
7299 2018-05-04 Tom Tromey <tom@tromey.com>
7300
7301 * top.c (execute_command): Update.
7302 * cli/cli-script.h (print_command_lines): Now varargs.
7303 * cli/cli-script.c (print_command_lines): Now varargs.
7304 (execute_control_command_1) <case while_control, case if_control>:
7305 Update.
7306
7307 2018-05-04 Tom Tromey <tom@tromey.com>
7308
7309 * tracepoint.c (all_tracepoint_actions): Rename from
7310 all_tracepoint_actions_and_cleanup. Change return type.
7311 (actions_command, encode_actions_1, encode_actions)
7312 (trace_dump_actions, tdump_command): Update.
7313 * remote.c (remote_download_command_source): Update.
7314 * python/python.c (gdbpy_eval_from_control_command)
7315 (python_command, python_interactive_command): Update.
7316 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
7317 * guile/guile.c (guile_command)
7318 (gdbscm_eval_from_control_command, guile_command): Update.
7319 * compile/compile.c (compile_code_command)
7320 (compile_print_command, compile_to_object): Update.
7321 * cli/cli-script.h (struct command_lines_deleter): New.
7322 (counted_command_line): New typedef.
7323 (struct command_line): Add constructor, destructor.
7324 <body_list>: Remove.
7325 <body_list_0, body_list_1>: New members.
7326 (command_line_up): Remove typedef.
7327 (read_command_lines, read_command_lines_1, get_command_line):
7328 Update.
7329 (copy_command_lines): Don't declare.
7330 * cli/cli-script.c (build_command_line): Use "new".
7331 (get_command_line): Return counted_command_line.
7332 (print_command_lines, execute_user_command)
7333 (execute_control_command_1, while_command, if_command): Update.
7334 (realloc_body_list): Remove.
7335 (process_next_line, recurse_read_control_structure): Update.
7336 (read_command_lines, read_command_lines_1): Return counted_command_line.
7337 (free_command_lines): Use "delete".
7338 (copy_command_lines): Remove.
7339 (define_command, document_command, show_user_1): Update.
7340 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
7341 a counted_command_line.
7342 * breakpoint.h (counted_command_line): Remove typedef.
7343 (breakpoint_set_commands): Update.
7344 * breakpoint.c (check_no_tracepoint_commands)
7345 (validate_commands_for_breakpoint): Update.
7346 (breakpoint_set_commands): Change commands to be a
7347 counted_command_line.
7348 (commands_command_1, update_dprintf_command_list)
7349 (create_tracepoint_from_upload): Update.
7350
7351 2018-05-04 Tom Tromey <tom@tromey.com>
7352
7353 * cli/cli-decode.h (cmd_list_element): New constructor.
7354 (~cmd_list_element): New destructor.
7355 (struct cmd_list_element): Add initializers.
7356 * cli/cli-decode.c (do_add_cmd): Use "new".
7357 (delete_cmd): Use "delete".
7358
7359 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7360 Pedro Alves <palves@redhat.com>
7361
7362 PR breakpoints/19806 and support for PR external/20207.
7363 * NEWS: Mention Aarch64 watchpoint improvements.
7364 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
7365 watchpoints and PR external/20207 watchpoints.
7366 * nat/aarch64-linux-hw-point.c
7367 (kernel_supports_any_contiguous_range): New.
7368 (aarch64_watchpoint_offset): New.
7369 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
7370 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
7371 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
7372 (aarch64_align_watchpoint): New parameters aligned_offset_p and
7373 next_addr_orig_p. Support PR external/20207 watchpoints.
7374 (aarch64_downgrade_regs): New.
7375 (aarch64_dr_state_insert_one_point): New parameters offset and
7376 addr_orig.
7377 (aarch64_dr_state_remove_one_point): Likewise.
7378 (aarch64_handle_breakpoint): Update caller.
7379 (aarch64_handle_aligned_watchpoint): Likewise.
7380 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
7381 aligned_offset.
7382 (aarch64_linux_set_debug_regs): Remove const from state. Call
7383 aarch64_downgrade_regs.
7384 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
7385 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
7386 (DR_CONTROL_MASK): ... this.
7387 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
7388 (unsigned int aarch64_watchpoint_offset): New prototype.
7389 (aarch64_linux_set_debug_regs): Remove const from state.
7390 * utils.c (align_up, align_down): Move to ...
7391 * common/common-utils.c (align_up, align_down): ... here.
7392 * utils.h (align_up, align_down): Move to ...
7393 * common/common-utils.h (align_up, align_down): ... here.
7394
7395 2018-05-04 Joel Brobecker <brobecker@adacore.com>
7396
7397 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
7398 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
7399 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
7400 Re-implement to match the ABI as summarized in GCC's
7401 gcc/config/sparc/sparc.c. All callers updated.
7402 (sparc32_store_arguments): Remove assertion.
7403
7404 2018-05-04 Tom Tromey <tom@tromey.com>
7405
7406 * printcmd.c: Don't include tui.h.
7407 (decode_format): Use skip_spaces.
7408
7409 2018-05-04 Tom Tromey <tom@tromey.com>
7410
7411 PR gdb/22619:
7412 * printcmd.c (last_count): New global.
7413 (x_command): Use saved count when repeating.
7414
7415 2018-05-04 Tom Tromey <tom@tromey.com>
7416
7417 * nto-procfs.c (do_closedir_cleanup): Remove.
7418 (procfs_pidlist): Use gdb_dir_up.
7419 * procfs.c (do_closedir_cleanup): Remove.
7420 (proc_update_threads): Use gdb_dir_up.
7421 * common/filestuff.h (struct gdb_dir_deleter): New.
7422 (gdb_dir_up): New typedef.
7423
7424 2018-05-04 Tom Tromey <tom@tromey.com>
7425
7426 * ada-lang.c (print_mention_exception): Use std::string.
7427
7428 2018-05-04 Tom Tromey <tom@tromey.com>
7429
7430 * ada-lang.c (create_excep_cond_exprs): Update.
7431 (ada_exception_catchpoint_cond_string): Use std::string.
7432
7433 2018-05-04 Tom Tromey <tom@tromey.com>
7434
7435 * ada-lang.c (xget_renaming_scope): Return std::string.
7436 (old_renaming_is_invisible): Update.
7437
7438 2018-05-04 Tom Tromey <tom@tromey.com>
7439
7440 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
7441 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
7442
7443 2018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
7444
7445 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
7446
7447 2018-05-04 Tom Tromey <tom@tromey.com>
7448
7449 * remote.c (remote_query_supported_append): Change type.
7450 (remote_check_symbols): Update.
7451
7452 2018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
7453
7454 PR gdb/11420
7455 * configure.ac: Prepend libpython.
7456 * python/python-config.py: Likewise.
7457 * configure: Regenerate.
7458
7459 2018-05-03 Simon Marchi <simon.marchi@ericsson.com>
7460
7461 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
7462
7463 2018-05-03 Pedro Alves <palves@redhat.com>
7464
7465 * s390-linux-nat.c
7466 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
7467 override. Write 'true' instead of '1'.
7468 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
7469 declaration.
7470
7471 2018-05-02 Pedro Alves <palves@redhat.com>
7472
7473 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
7474 add_inf_child_target.
7475 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
7476 add_inf_child_target.
7477 * aix-thread.c (aix_thread_target_info): New.
7478 (aix_thread_target) <shortname, longname, doc>: Delete.
7479 <info>: New.
7480 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
7481 add_inf_child_target.
7482 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
7483 add_inf_child_target.
7484 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
7485 add_inf_child_target.
7486 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
7487 add_inf_child_target.
7488 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
7489 add_inf_child_target.
7490 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
7491 add_inf_child_target.
7492 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
7493 add_inf_child_target.
7494 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
7495 add_inf_child_target.
7496 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
7497 add_inf_child_target.
7498 * bfd-target.c (target_bfd_target_info): New.
7499 (target_bfd) <shortname, longname, doc>: Delete.
7500 <info>: New.
7501 * bsd-kvm.c (bsd_kvm_target_info): New.
7502 (bsd_kvm_target) <shortname, longname, doc>: Delete.
7503 <info>: New.
7504 (bsd_kvm_target::open): Rename to ...
7505 (bsd_kvm_target_open): ... this. Adjust.
7506 * bsd-uthread.c (bsd_uthread_target_info): New.
7507 (bsd_uthread_target) <shortname, longname, doc>: Delete.
7508 <info>: New.
7509 * corefile.c (core_file_command): Adjust.
7510 * corelow.c (core_target_info): New.
7511 (core_target) <shortname, longname, doc>: Delete.
7512 <info>: New.
7513 (core_target::open): Rename to ...
7514 (core_target_open): ... this. Adjust.
7515 * ctf.c (ctf_target_info): New.
7516 (ctf_target) <shortname, longname, doc>: Delete.
7517 <info>: New.
7518 (ctf_target::open): Rename to ...
7519 (ctf_target_open): ... this.
7520 (_initialize_ctf): Adjust.
7521 * exec.c (exec_target_info): New.
7522 (exec_target) <shortname, longname, doc>: Delete.
7523 <info>: New.
7524 (exec_target::open): Rename to ...
7525 (exec_target_open): ... this.
7526 * gdbcore.h (core_target_open): Declare.
7527 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
7528 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
7529 add_inf_child_target.
7530 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
7531 add_inf_child_target.
7532 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
7533 add_inf_child_target.
7534 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
7535 add_inf_child_target.
7536 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
7537 add_inf_child_target.
7538 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
7539 add_inf_child_target.
7540 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
7541 add_inf_child_target.
7542 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
7543 add_inf_child_target.
7544 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
7545 add_inf_child_target.
7546 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
7547 add_inf_child_target.
7548 * inf-child.c (inf_child_target_info): New.
7549 (inf_child_target::info): New.
7550 (inf_child_open_target): Remove 'target' parameter. Use
7551 get_native_target instead.
7552 (inf_child_target::open): Delete.
7553 (add_inf_child_target): New.
7554 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
7555 Delete.
7556 <info>: New.
7557 (add_inf_child_target): Declare.
7558 (inf_child_open_target): Declare.
7559 * linux-thread-db.c (thread_db_target_info): New.
7560 (thread_db_target) <shortname, longname, doc>: Delete.
7561 <info>: New.
7562 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
7563 add_inf_child_target.
7564 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
7565 add_inf_child_target.
7566 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
7567 add_inf_child_target.
7568 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
7569 add_inf_child_target.
7570 * make-target-delegates (print_class): Adjust.
7571 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
7572 add_inf_child_target.
7573 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
7574 add_inf_child_target.
7575 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
7576 add_inf_child_target.
7577 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
7578 add_inf_child_target.
7579 * nto-procfs.c (nto_native_target_info): New.
7580 (nto_procfs_target_native) <shortname, longname, doc>:
7581 Delete.
7582 <info>: New.
7583 (nto_procfs_target_info): New.
7584 (nto_procfs_target_procfs) <shortname, longname, doc>:
7585 Delete.
7586 <info>: New.
7587 (init_procfs_targets): Adjust.
7588 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
7589 add_inf_child_target.
7590 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
7591 add_inf_child_target.
7592 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
7593 add_inf_child_target.
7594 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
7595 add_inf_child_target.
7596 * ravenscar-thread.c (ravenscar_target_info): New.
7597 (ravenscar_thread_target) <shortname, longname, doc>:
7598 Delete.
7599 <info>: New.
7600 * record-btrace.c (record_btrace_target_info):
7601 (record_btrace_target) <shortname, longname, doc>: Delete.
7602 <info>: New.
7603 (record_btrace_target::open): Rename to ...
7604 (record_btrace_target_open): ... this. Adjust.
7605 * record-full.c (record_longname, record_doc): New.
7606 (record_full_base_target) <shortname, longname, doc>: Delete.
7607 <info>: New.
7608 (record_full_target_info): New.
7609 (record_full_target): <shortname>: Delete.
7610 <info>: New.
7611 (record_full_core_open_1, record_full_open_1): Update comments.
7612 (record_full_base_target::open): Rename to ...
7613 (record_full_open): ... this.
7614 (cmd_record_full_restore): Update.
7615 (_initialize_record_full): Update.
7616 * remote-sim.c (remote_sim_target_info): New.
7617 (gdbsim_target) <shortname, longname, doc>: Delete.
7618 <info>: New.
7619 (gdbsim_target::open): Rename to ...
7620 (gdbsim_target_open): ... this.
7621 (_initialize_remote_sim): Adjust.
7622 * remote.c (remote_doc): New.
7623 (remote_target_info): New.
7624 (remote_target) <shortname, longname, doc>: Delete.
7625 <info>: New.
7626 (extended_remote_target_info): New.
7627 (extended_remote_target) <shortname, longname, doc>: Delete.
7628 <info>: New.
7629 (remote_target::open_1): Make static. Adjust.
7630 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
7631 * s390-linux-nat.c (_initialize_s390_nat): Use
7632 add_inf_child_target.
7633 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
7634 add_inf_child_target.
7635 * sol-thread.c (thread_db_target_info): New.
7636 (sol_thread_target) <shortname, longname, doc>: Delete.
7637 <info>: New.
7638 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
7639 add_inf_child_target.
7640 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
7641 add_inf_child_target.
7642 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
7643 add_inf_child_target.
7644 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
7645 add_inf_child_target.
7646 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
7647 add_inf_child_target.
7648 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
7649 add_inf_child_target.
7650 * spu-linux-nat.c (_initialize_spu_nat): Use
7651 add_inf_child_target.
7652 * spu-multiarch.c (spu_multiarch_target_info): New.
7653 (spu_multiarch_target) <shortname, longname, doc>: Delete.
7654 <info>: New.
7655 * target-delegates.c: Regenerate.
7656 * target.c: Include <unordered_map>.
7657 (target_ops_p): Delete.
7658 (DEF_VEC_P(target_ops_p)): Delete.
7659 (target_factories): New.
7660 (test_target_info): New.
7661 (test_target_ops::info): New.
7662 (open_target): Adjust to use target_factories.
7663 (add_target_with_completer): Rename to ...
7664 (add_target): ... this. Change prototype. Register target_info
7665 and open callback in target_factories. Register target_info in
7666 command context instead of target_ops.
7667 (add_target): Delete old implementation.
7668 (add_deprecated_target_alias): Change prototype. Adjust.
7669 (the_native_target): New.
7670 (set_native_target, get_native_target): New.
7671 (find_default_run_target): Use the_native_target.
7672 (find_attach_target, find_run_target): Simplify.
7673 (target_ops::open): Delete.
7674 (dummy_target_info): New.
7675 (dummy_target::shortname, dummy_target::longname)
7676 (dummy_target::doc): Delete.
7677 (dummy_target::info): New.
7678 (debug_target::shortname, debug_target::longname)
7679 (debug_target::doc): Delete.
7680 (debug_target::info): New.
7681 * target.h (struct target_info): New.
7682 (target_ops::~target_ops): Add comment.
7683 (target_ops::info): New.
7684 (target_ops::shortname, target_ops::longname, target_ops::doc): No
7685 longer virtual. Implement in terms of target_info.
7686 (set_native_target, get_native_target): Declare.
7687 (target_open_ftype): New.
7688 (add_target, add_target_with_completer)
7689 (add_deprecated_target_alias): Change prototype.
7690 (test_target) <shortname, longname, doc>: Delete.
7691 <info>: New.
7692 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
7693 add_inf_child_target.
7694 * tracefile-tfile.c (tfile_target_info): New.
7695 (tfile_target) <shortname, longname, doc>: Delete.
7696 <info>: New.
7697 (tfile_target::open): Rename to ...
7698 (tfile_target_open): ... this.
7699 (_initialize_tracefile_tfile): Adjust.
7700 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
7701 add_inf_child_target.
7702 * windows-nat.c (_initialize_windows_nat): Use
7703 add_inf_child_target.
7704 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
7705 add_inf_child_target.
7706
7707 2018-05-02 Pedro Alves <palves@redhat.com>
7708
7709 * linux-nat.h (linux_nat_target) <low_new_thread,
7710 low_delete_thread, low_new_fork, low_forget_process,
7711 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
7712 New virtual methods.
7713 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
7714 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
7715 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
7716 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
7717 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
7718 Delete.
7719 * linux-fork.c (delete_fork): Adjust to call low method.
7720 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
7721 (linux_nat_new_fork, linux_nat_forget_process_hook)
7722 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
7723 (linux_nat_status_is_event):
7724 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
7725 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
7726 to call low method.
7727 (sigtrap_is_event): Rename to ...
7728 (linux_nat_target::low_status_is_event): ... this.
7729 (linux_nat_set_status_is_event): Delete.
7730 (save_stop_reason, linux_nat_wait_1)
7731 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
7732 low methods.
7733 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
7734 (linux_nat_set_new_fork, linux_nat_set_forget_process)
7735 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
7736 (linux_nat_set_prepare_to_resume): Delete.
7737 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
7738 low virtual methods.
7739 * amd64-linux-nat.c: Likewise.
7740 * arm-linux-nat.c: Likewise.
7741 * i386-linux-nat.c: Likewise.
7742 * ia64-linux-nat.c: Likewise.
7743 * mips-linux-nat.c: Likewise.
7744 * ppc-linux-nat.c: Likewise.
7745 * s390-linux-nat.c: Likewise.
7746 * sparc64-linux-nat.c: Likewise.
7747 * x86-linux-nat.c: Likewise.
7748 * x86-linux-nat.h: Include "nat/x86-linux.h".
7749 (x86_linux_nat_target) <low_new_fork, low_forget_process,
7750 low_prepare_to_resume, low_new_thread, low_delete_thread>:
7751 Override methods.
7752
7753 2018-05-02 Pedro Alves <palves@redhat.com>
7754
7755 * target.h (target_ops)
7756 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
7757 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
7758 stopped_by_watchpoint, have_continuable_watchpoint,
7759 stopped_data_address, watchpoint_addr_within_range,
7760 can_accel_watchpoint_condition, can_run, thread_alive,
7761 has_all_memory, has_memory, has_stack, has_registers,
7762 has_execution, can_async_p, is_async_p, supports_non_stop,
7763 always_non_stop_p, can_execute_reverse, supports_multi_process,
7764 supports_enable_disable_tracepoint,
7765 supports_disable_randomization, supports_string_tracing,
7766 supports_evaluation_of_breakpoint_conditions,
7767 can_run_breakpoint_commands, filesystem_is_local,
7768 can_download_tracepoint, get_trace_state_variable_value,
7769 set_trace_notes, get_tib_address, use_agent, can_use_agent,
7770 record_is_replaying, record_will_replay,
7771 augmented_libraries_svr4_read>: Adjust to return bool.
7772 * aarch64-linux-nat.c: All implementations adjusted.
7773 * aix-thread.c: All implementations adjusted.
7774 * arm-linux-nat.c: All implementations adjusted.
7775 * breakpoint.c: All implementations adjusted.
7776 * bsd-kvm.c: All implementations adjusted.
7777 * bsd-uthread.c: All implementations adjusted.
7778 * corelow.c: All implementations adjusted.
7779 * ctf.c: All implementations adjusted.
7780 * darwin-nat.c: All implementations adjusted.
7781 * darwin-nat.h: All implementations adjusted.
7782 * exec.c: All implementations adjusted.
7783 * fbsd-nat.c: All implementations adjusted.
7784 * fbsd-nat.h: All implementations adjusted.
7785 * gnu-nat.c: All implementations adjusted.
7786 * gnu-nat.h: All implementations adjusted.
7787 * go32-nat.c: All implementations adjusted.
7788 * ia64-linux-nat.c: All implementations adjusted.
7789 * inf-child.c: All implementations adjusted.
7790 * inf-child.h: All implementations adjusted.
7791 * inf-ptrace.c: All implementations adjusted.
7792 * inf-ptrace.h: All implementations adjusted.
7793 * linux-nat.c: All implementations adjusted.
7794 * linux-nat.h: All implementations adjusted.
7795 * mips-linux-nat.c: All implementations adjusted.
7796 * nto-procfs.c: All implementations adjusted.
7797 * ppc-linux-nat.c: All implementations adjusted.
7798 * procfs.c: All implementations adjusted.
7799 * ravenscar-thread.c: All implementations adjusted.
7800 * record-btrace.c: All implementations adjusted.
7801 * record-full.c: All implementations adjusted.
7802 * remote-sim.c: All implementations adjusted.
7803 * remote.c: All implementations adjusted.
7804 * s390-linux-nat.c: All implementations adjusted.
7805 * sol-thread.c: All implementations adjusted.
7806 * spu-multiarch.c: All implementations adjusted.
7807 * target-delegates.c: All implementations adjusted.
7808 * target.c: All implementations adjusted.
7809 * target.h: All implementations adjusted.
7810 * tracefile-tfile.c: All implementations adjusted.
7811 * tracefile.c: All implementations adjusted.
7812 * tracefile.h: All implementations adjusted.
7813 * windows-nat.c: All implementations adjusted.
7814 * x86-linux-nat.h: All implementations adjusted.
7815 * x86-nat.h: All implementations adjusted.
7816
7817 2018-05-02 Pedro Alves <palves@redhat.com>
7818
7819 * make-target-delegates (scan_target_h): Don't trim lines here.
7820 Replace sequences of tabs and/or whitespace with a single
7821 whitespace.
7822 (top level, parsing methods): Trim each line before processing it
7823 here.
7824
7825 2018-05-02 Pedro Alves <palves@redhat.com>
7826 John Baldwin <jhb@freebsd.org>
7827
7828 * target.h (enum strata) <debug_stratum>: New.
7829 (struct target_ops) <all delegation methods>: Replace by C++
7830 virtual methods, and drop "to_" prefix. All references updated
7831 throughout.
7832 <to_shortname, to_longname, to_doc, to_data,
7833 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
7834 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
7835 virtual methods. All references updated throughout.
7836 <can_attach, supports_terminal_ours, can_create_inferior,
7837 get_thread_control_capabilities, attach_no_wait>: New
7838 virtual methods.
7839 <insert_breakpoint, remove_breakpoint>: Now
7840 TARGET_DEFAULT_NORETURN methods.
7841 <info_proc>: Now returns bool.
7842 <to_magic>: Delete.
7843 (OPS_MAGIC): Delete.
7844 (current_target): Delete. All references replaced by references
7845 to ...
7846 (target_stack): ... this. New.
7847 (target_shortname, target_longname): Adjust.
7848 (target_can_run): Now a function declaration.
7849 (default_child_has_all_memory, default_child_has_memory)
7850 (default_child_has_stack, default_child_has_registers)
7851 (default_child_has_execution): Remove target_ops parameter.
7852 (complete_target_initialization): Delete.
7853 (memory_breakpoint_target): New template class.
7854 (test_target_ops): Refactor as a C++ class with virtual methods.
7855 * make-target-delegates (NAME_PART): Tighten.
7856 (POINTER_PART, CP_SYMBOL): New.
7857 (SIMPLE_RETURN_PART): Reimplement.
7858 (VEC_RETURN_PART): Expect less.
7859 (RETURN_PART, VIRTUAL_PART): New.
7860 (METHOD): Adjust to C++ virtual methods.
7861 (scan_target_h): Remove reference to C99.
7862 (dname): Output "target_ops::" prefix.
7863 (write_function_header): Adjust to output a C++ class method.
7864 (write_declaration): New.
7865 (write_delegator): Adjust to output a C++ class method.
7866 (tdname): Output "dummy_target::" prefix.
7867 (write_tdefault, write_debugmethod): Adjust to output a C++ class
7868 method.
7869 (tdefault_names, debug_names): Delete.
7870 (return_types, tdefaults, styles, argtypes_array): New.
7871 (top level): All methods are delegators.
7872 (print_class): New.
7873 (top level): Print dummy_target and debug_target classes.
7874 * target-delegates.c: Regenerate.
7875 * target-debug.h (target_debug_print_enum_info_proc_what)
7876 (target_debug_print_thread_control_capabilities)
7877 (target_debug_print_thread_info_p): New.
7878 * target.c (dummy_target): Delete.
7879 (the_dummy_target, the_debug_target): New.
7880 (target_stack): Now extern.
7881 (set_targetdebug): Push/unpush debug target.
7882 (default_child_has_all_memory, default_child_has_memory)
7883 (default_child_has_stack, default_child_has_registers)
7884 (default_child_has_execution): Remove target_ops parameter.
7885 (complete_target_initialization): Delete.
7886 (add_target_with_completer): No longer call
7887 complete_target_initialization.
7888 (target_supports_terminal_ours): Use regular delegation.
7889 (update_current_target): Delete.
7890 (push_target): No longer check magic number. Don't call
7891 update_current_target.
7892 (unpush_target): Don't call update_current_target.
7893 (target_is_pushed): No longer check magic number.
7894 (target_require_runnable): Skip for all stratums over
7895 process_stratum.
7896 (target_ops::info_proc): New.
7897 (target_info_proc): Use find_target_at and
7898 find_default_run_target.
7899 (target_supports_disable_randomization): Use regular delegation.
7900 (target_get_osdata): Use find_target_at.
7901 (target_ops::open, target_ops::close, target_ops::can_attach)
7902 (target_ops::attach, target_ops::can_create_inferior)
7903 (target_ops::create_inferior, target_ops::can_run)
7904 (target_can_run): New.
7905 (default_fileio_target): Use regular delegation.
7906 (target_ops::fileio_open, target_ops::fileio_pwrite)
7907 (target_ops::fileio_pread, target_ops::fileio_fstat)
7908 (target_ops::fileio_close, target_ops::fileio_unlink)
7909 (target_ops::fileio_readlink): New.
7910 (target_fileio_open_1, target_fileio_unlink)
7911 (target_fileio_readlink): Always call the target method. Handle
7912 FILEIO_ENOSYS.
7913 (return_zero, return_zero_has_execution): Delete.
7914 (init_dummy_target): Delete.
7915 (dummy_target::dummy_target, dummy_target::shortname)
7916 (dummy_target::longname, dummy_target::doc)
7917 (debug_target::debug_target, debug_target::shortname)
7918 (debug_target::longname, debug_target::doc): New.
7919 (target_supports_delete_record): Use regular delegation.
7920 (setup_target_debug): Delete.
7921 (maintenance_print_target_stack): Skip debug_stratum.
7922 (initialize_targets): Instantiate the_dummy_target and
7923 the_debug_target.
7924 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
7925 use target_stack.
7926 (target_auxv_search, fprint_target_auxv): Adjust.
7927 (info_auxv_command): Adjust to use target_stack.
7928 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
7929 * exceptions.c (print_flush): Handle a NULL target_stack.
7930 * regcache.c (target_ops_no_register): Refactor as class with
7931 virtual methods.
7932
7933 * exec.c (exec_target): New class.
7934 (exec_ops): Now an exec_target.
7935 (exec_open, exec_close_1, exec_get_section_table)
7936 (exec_xfer_partial, exec_files_info, exec_has_memory)
7937 (exec_make_note_section): Refactor as exec_target methods.
7938 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
7939 Delete.
7940 (exec_target::find_memory_regions): New.
7941 (_initialize_exec): Don't call init_exec_ops.
7942 * gdbcore.h (exec_file_clear): Delete.
7943
7944 * corefile.c (core_target): Delete.
7945 (core_file_command): Adjust.
7946 * corelow.c (core_target): New class.
7947 (the_core_target): New.
7948 (core_close): Remove target_ops parameter.
7949 (core_close_cleanup): Adjust.
7950 (core_target::close): New.
7951 (core_open, core_detach, get_core_registers, core_files_info)
7952 (core_xfer_partial, core_thread_alive, core_read_description)
7953 (core_pid_to_str, core_thread_name, core_has_memory)
7954 (core_has_stack, core_has_registers, core_info_proc): Rework as
7955 core_target methods.
7956 (ignore, core_remove_breakpoint, init_core_ops): Delete.
7957 (_initialize_corelow): Initialize the_core_target.
7958 * gdbcore.h (core_target): Delete.
7959 (the_core_target): New.
7960
7961 * ctf.c: (ctf_target): New class.
7962 (ctf_ops): Now a ctf_target.
7963 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
7964 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
7965 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
7966 methods.
7967 (init_ctf_ops): Delete.
7968 (_initialize_ctf): Don't call it.
7969 * tracefile-tfile.c (tfile_target): New class.
7970 (tfile_ops): Now a tfile_target.
7971 (tfile_open, tfile_close, tfile_files_info)
7972 (tfile_get_tracepoint_status, tfile_trace_find)
7973 (tfile_fetch_registers, tfile_xfer_partial)
7974 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
7975 Refactor as tfile_target methods.
7976 (tfile_xfer_partial_features): Remove target_ops parameter.
7977 (init_tfile_ops): Delete.
7978 (_initialize_tracefile_tfile): Don't call it.
7979 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
7980 (tracefile_has_stack, tracefile_has_registers)
7981 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
7982 tracefile_target methods.
7983 (init_tracefile_ops): Delete.
7984 (tracefile_target::tracefile_target): New.
7985 * tracefile.h: Include "target.h".
7986 (tracefile_target): New class.
7987 (init_tracefile_ops): Delete.
7988
7989 * spu-multiarch.c (spu_multiarch_target): New class.
7990 (spu_ops): Now a spu_multiarch_target.
7991 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
7992 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
7993 (spu_search_memory, spu_mourn_inferior): Refactor as
7994 spu_multiarch_target methods.
7995 (init_spu_ops): Delete.
7996 (_initialize_spu_multiarch): Remove references to init_spu_ops,
7997 complete_target_initialization.
7998
7999 * ravenscar-thread.c (ravenscar_thread_target): New class.
8000 (ravenscar_ops): Now a ravenscar_thread_target.
8001 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
8002 (ravenscar_thread_alive, ravenscar_pid_to_str)
8003 (ravenscar_fetch_registers, ravenscar_store_registers)
8004 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
8005 (ravenscar_stopped_by_hw_breakpoint)
8006 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
8007 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
8008 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
8009 methods.
8010 (init_ravenscar_thread_ops): Delete.
8011 (_initialize_ravenscar): Remove references to
8012 init_ravenscar_thread_ops and complete_target_initialization.
8013
8014 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
8015 (bsd_uthread_target): New class.
8016 (bsd_uthread_ops): Now a bsd_uthread_target.
8017 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
8018 (bsd_uthread_close, bsd_uthread_mourn_inferior)
8019 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
8020 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
8021 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
8022 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
8023 (bsd_uthread_target): Delete function.
8024 (_initialize_bsd_uthread): Remove reference to
8025 complete_target_initialization.
8026
8027 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
8028 (target_bfd): ... this new class.
8029 (target_bfd_xfer_partial, target_bfd_get_section_table)
8030 (target_bfd_close): Refactor as target_bfd methods.
8031 (target_bfd::~target_bfd): New.
8032 (target_bfd_reopen): Adjust.
8033 (target_bfd::close): New.
8034
8035 * record-btrace.c (record_btrace_target): New class.
8036 (record_btrace_ops): Now a record_btrace_target.
8037 (record_btrace_open, record_btrace_stop_recording)
8038 (record_btrace_disconnect, record_btrace_close)
8039 (record_btrace_async, record_btrace_info)
8040 (record_btrace_insn_history, record_btrace_insn_history_range)
8041 (record_btrace_insn_history_from, record_btrace_call_history)
8042 (record_btrace_call_history_range)
8043 (record_btrace_call_history_from, record_btrace_record_method)
8044 (record_btrace_is_replaying, record_btrace_will_replay)
8045 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
8046 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
8047 (record_btrace_store_registers, record_btrace_prepare_to_store)
8048 (record_btrace_to_get_unwinder)
8049 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
8050 (record_btrace_commit_resume, record_btrace_wait)
8051 (record_btrace_stop, record_btrace_can_execute_reverse)
8052 (record_btrace_stopped_by_sw_breakpoint)
8053 (record_btrace_supports_stopped_by_sw_breakpoint)
8054 (record_btrace_stopped_by_hw_breakpoint)
8055 (record_btrace_supports_stopped_by_hw_breakpoint)
8056 (record_btrace_update_thread_list, record_btrace_thread_alive)
8057 (record_btrace_goto_begin, record_btrace_goto_end)
8058 (record_btrace_goto, record_btrace_stop_replaying_all)
8059 (record_btrace_execution_direction)
8060 (record_btrace_prepare_to_generate_core)
8061 (record_btrace_done_generating_core): Refactor as
8062 record_btrace_target methods.
8063 (init_record_btrace_ops): Delete.
8064 (_initialize_record_btrace): Remove reference to
8065 init_record_btrace_ops.
8066 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
8067 the execution_direction global.
8068 (record_full_base_target, record_full_target)
8069 (record_full_core_target): New classes.
8070 (record_full_ops): Now a record_full_target.
8071 (record_full_core_ops): Now a record_full_core_target.
8072 (record_full_target::detach, record_full_target::disconnect)
8073 (record_full_core_target::disconnect)
8074 (record_full_target::mourn_inferior, record_full_target::kill):
8075 New.
8076 (record_full_open, record_full_close, record_full_async): Refactor
8077 as methods of the record_full_base_target class.
8078 (record_full_resume, record_full_commit_resume): Refactor
8079 as methods of the record_full_target class.
8080 (record_full_wait, record_full_stopped_by_watchpoint)
8081 (record_full_stopped_data_address)
8082 (record_full_stopped_by_sw_breakpoint)
8083 (record_full_supports_stopped_by_sw_breakpoint)
8084 (record_full_stopped_by_hw_breakpoint)
8085 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
8086 methods of the record_full_base_target class.
8087 (record_full_store_registers, record_full_xfer_partial)
8088 (record_full_insert_breakpoint, record_full_remove_breakpoint):
8089 Refactor as methods of the record_full_target class.
8090 (record_full_can_execute_reverse, record_full_get_bookmark)
8091 (record_full_goto_bookmark, record_full_execution_direction)
8092 (record_full_record_method, record_full_info, record_full_delete)
8093 (record_full_is_replaying, record_full_will_replay)
8094 (record_full_goto_begin, record_full_goto_end, record_full_goto)
8095 (record_full_stop_replaying): Refactor as methods of the
8096 record_full_base_target class.
8097 (record_full_core_resume, record_full_core_kill)
8098 (record_full_core_fetch_registers)
8099 (record_full_core_prepare_to_store)
8100 (record_full_core_store_registers, record_full_core_xfer_partial)
8101 (record_full_core_insert_breakpoint)
8102 (record_full_core_remove_breakpoint)
8103 (record_full_core_has_execution): Refactor
8104 as methods of the record_full_core_target class.
8105 (record_full_base_target::supports_delete_record): New.
8106 (init_record_full_ops): Delete.
8107 (init_record_full_core_ops): Delete.
8108 (record_full_save): Refactor as method of the
8109 record_full_base_target class.
8110 (_initialize_record_full): Remove references to
8111 init_record_full_ops and init_record_full_core_ops.
8112
8113 * remote.c (remote_target, extended_remote_target): New classes.
8114 (remote_ops): Now a remote_target.
8115 (extended_remote_ops): Now an extended_remote_target.
8116 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
8117 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
8118 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
8119 (remote_pass_signals, remote_set_syscall_catchpoint)
8120 (remote_program_signals, )
8121 (remote_thread_always_alive): Remove target_ops parameter.
8122 (remote_thread_alive, remote_thread_name)
8123 (remote_update_thread_list, remote_threads_extra_info)
8124 (remote_static_tracepoint_marker_at)
8125 (remote_static_tracepoint_markers_by_strid)
8126 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
8127 (remote_open): Refactor as methods of remote_target.
8128 (extended_remote_open, extended_remote_detach)
8129 (extended_remote_attach, extended_remote_post_attach):
8130 (extended_remote_supports_disable_randomization)
8131 (extended_remote_create_inferior): : Refactor as method of
8132 extended_remote_target.
8133 (remote_set_permissions, remote_open_1, remote_detach)
8134 (remote_follow_fork, remote_follow_exec, remote_disconnect)
8135 (remote_resume, remote_commit_resume, remote_stop)
8136 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
8137 (remote_terminal_ours, remote_wait, remote_fetch_registers)
8138 (remote_prepare_to_store, remote_store_registers)
8139 (remote_flash_erase, remote_flash_done, remote_files_info)
8140 (remote_kill, remote_mourn, remote_insert_breakpoint)
8141 (remote_remove_breakpoint, remote_insert_watchpoint)
8142 (remote_watchpoint_addr_within_range)
8143 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
8144 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
8145 (remote_supports_stopped_by_sw_breakpoint)
8146 (remote_stopped_by_hw_breakpoint)
8147 (remote_supports_stopped_by_hw_breakpoint)
8148 (remote_stopped_by_watchpoint, remote_stopped_data_address)
8149 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
8150 (remote_verify_memory): Refactor as methods of remote_target.
8151 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
8152 parameter.
8153 (remote_xfer_partial, remote_get_memory_xfer_limit)
8154 (remote_search_memory, remote_rcmd, remote_memory_map)
8155 (remote_pid_to_str, remote_get_thread_local_address)
8156 (remote_get_tib_address, remote_read_description): Refactor as
8157 methods of remote_target.
8158 (remote_target::fileio_open, remote_target::fileio_pwrite)
8159 (remote_target::fileio_pread, remote_target::fileio_close): New.
8160 (remote_hostio_readlink, remote_hostio_fstat)
8161 (remote_filesystem_is_local, remote_can_execute_reverse)
8162 (remote_supports_non_stop, remote_supports_disable_randomization)
8163 (remote_supports_multi_process, remote_supports_cond_breakpoints)
8164 (remote_supports_enable_disable_tracepoint)
8165 (remote_supports_string_tracing)
8166 (remote_can_run_breakpoint_commands, remote_trace_init)
8167 (remote_download_tracepoint, remote_can_download_tracepoint)
8168 (remote_download_trace_state_variable, remote_enable_tracepoint)
8169 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
8170 (remote_trace_start, remote_get_trace_status)
8171 (remote_get_tracepoint_status, remote_trace_stop)
8172 (remote_trace_find, remote_get_trace_state_variable_value)
8173 (remote_save_trace_data, remote_get_raw_trace_data)
8174 (remote_set_disconnected_tracing, remote_core_of_thread)
8175 (remote_set_circular_trace_buffer, remote_traceframe_info)
8176 (remote_get_min_fast_tracepoint_insn_len)
8177 (remote_set_trace_buffer_size, remote_set_trace_notes)
8178 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
8179 (remote_disable_btrace, remote_teardown_btrace)
8180 (remote_read_btrace, remote_btrace_conf)
8181 (remote_augmented_libraries_svr4_read, remote_load)
8182 (remote_pid_to_exec_file, remote_can_do_single_step)
8183 (remote_execution_direction, remote_thread_handle_to_thread_info):
8184 Refactor as methods of remote_target.
8185 (init_remote_ops, init_extended_remote_ops): Delete.
8186 (remote_can_async_p, remote_is_async_p, remote_async)
8187 (remote_thread_events, remote_upload_tracepoints)
8188 (remote_upload_trace_state_variables): Refactor as methods of
8189 remote_target.
8190 (_initialize_remote): Remove references to init_remote_ops and
8191 init_extended_remote_ops.
8192
8193 * remote-sim.c (gdbsim_target): New class.
8194 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
8195 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
8196 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
8197 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
8198 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
8199 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
8200 Refactor as methods of gdbsim_target.
8201 (gdbsim_ops): Now a gdbsim_target.
8202 (init_gdbsim_ops): Delete.
8203 (gdbsim_cntrl_c): Adjust.
8204 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
8205
8206 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
8207 (the_amd64_linux_nat_target): New.
8208 (amd64_linux_fetch_inferior_registers)
8209 (amd64_linux_store_inferior_registers): Refactor as methods of
8210 amd64_linux_nat_target.
8211 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
8212 * i386-linux-nat.c: Don't include "linux-nat.h".
8213 (i386_linux_nat_target): New class.
8214 (the_i386_linux_nat_target): New.
8215 (i386_linux_fetch_inferior_registers)
8216 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
8217 as methods of i386_linux_nat_target.
8218 (_initialize_i386_linux_nat): Adjust. Set linux_target.
8219 * inf-child.c (inf_child_ops): Delete.
8220 (inf_child_fetch_inferior_registers)
8221 (inf_child_store_inferior_registers): Delete.
8222 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
8223 methods of inf_child_target.
8224 (inf_child_target::supports_terminal_ours)
8225 (inf_child_target::terminal_init)
8226 (inf_child_target::terminal_inferior)
8227 (inf_child_target::terminal_ours_for_output)
8228 (inf_child_target::terminal_ours, inf_child_target::interrupt)
8229 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
8230 New.
8231 (inf_child_open, inf_child_disconnect, inf_child_close)
8232 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
8233 (inf_child_post_startup_inferior, inf_child_can_run)
8234 (inf_child_pid_to_exec_file): Refactor as methods of
8235 inf_child_target.
8236 (inf_child_follow_fork): Delete.
8237 (inf_child_target::can_create_inferior)
8238 (inf_child_target::can_attach): New.
8239 (inf_child_target::has_all_memory, inf_child_target::has_memory)
8240 (inf_child_target::has_stack, inf_child_target::has_registers)
8241 (inf_child_target::has_execution): New.
8242 (inf_child_fileio_open, inf_child_fileio_pwrite)
8243 (inf_child_fileio_pread, inf_child_fileio_fstat)
8244 (inf_child_fileio_close, inf_child_fileio_unlink)
8245 (inf_child_fileio_readlink, inf_child_use_agent)
8246 (inf_child_can_use_agent): Refactor as methods of
8247 inf_child_target.
8248 (return_zero, inf_child_target): Delete.
8249 (inf_child_target::inf_child_target): New.
8250 * inf-child.h: Include "target.h".
8251 (inf_child_target): Delete function prototype.
8252 (inf_child_target): New class.
8253 (inf_child_open_target, inf_child_mourn_inferior)
8254 (inf_child_maybe_unpush_target): Delete.
8255 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
8256 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
8257 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
8258 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
8259 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
8260 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
8261 (inf_ptrace_wait, inf_ptrace_xfer_partial)
8262 (inf_ptrace_thread_alive, inf_ptrace_files_info)
8263 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
8264 methods of inf_ptrace_target.
8265 (inf_ptrace_target): Delete function.
8266 * inf-ptrace.h: Include "inf-child.h".
8267 (inf_ptrace_target): Delete function declaration.
8268 (inf_ptrace_target): New class.
8269 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
8270 * linux-nat.c (linux_target): New.
8271 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
8272 (linux_nat_target::~linux_nat_target): New.
8273 (linux_child_post_attach, linux_child_post_startup_inferior)
8274 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
8275 (linux_child_remove_fork_catchpoint)
8276 (linux_child_insert_vfork_catchpoint)
8277 (linux_child_remove_vfork_catchpoint)
8278 (linux_child_insert_exec_catchpoint)
8279 (linux_child_remove_exec_catchpoint)
8280 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
8281 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
8282 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
8283 (linux_nat_stopped_data_address)
8284 (linux_nat_stopped_by_sw_breakpoint)
8285 (linux_nat_supports_stopped_by_sw_breakpoint)
8286 (linux_nat_stopped_by_hw_breakpoint)
8287 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
8288 (linux_nat_kill, linux_nat_mourn_inferior)
8289 (linux_nat_xfer_partial, linux_nat_thread_alive)
8290 (linux_nat_update_thread_list, linux_nat_pid_to_str)
8291 (linux_nat_thread_name, linux_child_pid_to_exec_file)
8292 (linux_child_static_tracepoint_markers_by_strid)
8293 (linux_nat_is_async_p, linux_nat_can_async_p)
8294 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
8295 (linux_nat_supports_multi_process)
8296 (linux_nat_supports_disable_randomization, linux_nat_async)
8297 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
8298 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
8299 (linux_nat_fileio_open, linux_nat_fileio_readlink)
8300 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
8301 methods of linux_nat_target.
8302 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
8303 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
8304 parameter.
8305 (check_stopped_by_watchpoint): Adjust.
8306 (linux_xfer_partial): Delete.
8307 (linux_target_install_ops, linux_target, linux_nat_add_target):
8308 Delete.
8309 (linux_nat_target::linux_nat_target): New.
8310 * linux-nat.h: Include "inf-ptrace.h".
8311 (linux_nat_target): New.
8312 (linux_target, linux_target_install_ops, linux_nat_add_target):
8313 Delete function declarations.
8314 (linux_target): Declare global.
8315 * linux-thread-db.c (thread_db_target): New.
8316 (thread_db_target::thread_db_target): New.
8317 (thread_db_ops): Delete.
8318 (the_thread_db_target): New.
8319 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
8320 (thread_db_update_thread_list, thread_db_pid_to_str)
8321 (thread_db_extra_thread_info)
8322 (thread_db_thread_handle_to_thread_info)
8323 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
8324 (thread_db_resume): Refactor as methods of thread_db_target.
8325 (init_thread_db_ops): Delete.
8326 (_initialize_thread_db): Remove reference to init_thread_db_ops.
8327 * x86-linux-nat.c: Don't include "linux-nat.h".
8328 (super_post_startup_inferior): Delete.
8329 (x86_linux_nat_target::~x86_linux_nat_target): New.
8330 (x86_linux_child_post_startup_inferior)
8331 (x86_linux_read_description, x86_linux_enable_btrace)
8332 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
8333 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
8334 methods of x86_linux_nat_target.
8335 (x86_linux_create_target): Delete. Bits folded ...
8336 (x86_linux_add_target): ... here. Now takes a linux_nat_target
8337 pointer.
8338 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
8339 (x86_linux_nat_target): New class.
8340 (x86_linux_create_target): Delete.
8341 (x86_linux_add_target): Now takes a linux_nat_target pointer.
8342 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
8343 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
8344 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
8345 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
8346 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
8347 make extern.
8348 (x86_use_watchpoints): Delete.
8349 * x86-nat.h: Include "breakpoint.h" and "target.h".
8350 (x86_use_watchpoints): Delete.
8351 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
8352 (x86_stopped_by_watchpoint, x86_stopped_data_address)
8353 (x86_insert_watchpoint, x86_remove_watchpoint)
8354 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
8355 (x86_stopped_by_hw_breakpoint): New declarations.
8356 (x86_nat_target): New template class.
8357
8358 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
8359 (the_ppc_linux_nat_target): New.
8360 (ppc_linux_fetch_inferior_registers)
8361 (ppc_linux_can_use_hw_breakpoint)
8362 (ppc_linux_region_ok_for_hw_watchpoint)
8363 (ppc_linux_ranged_break_num_registers)
8364 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
8365 (ppc_linux_insert_mask_watchpoint)
8366 (ppc_linux_remove_mask_watchpoint)
8367 (ppc_linux_can_accel_watchpoint_condition)
8368 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
8369 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
8370 (ppc_linux_watchpoint_addr_within_range)
8371 (ppc_linux_masked_watch_num_registers)
8372 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
8373 (ppc_linux_read_description): Refactor as methods of
8374 ppc_linux_nat_target.
8375 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
8376
8377 * procfs.c (procfs_xfer_partial): Delete forward declaration.
8378 (procfs_target): New class.
8379 (the_procfs_target): New.
8380 (procfs_target): Delete function.
8381 (procfs_auxv_parse, procfs_attach, procfs_detach)
8382 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
8383 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
8384 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
8385 (procfs_create_inferior, procfs_update_thread_list)
8386 (procfs_thread_alive, procfs_pid_to_str)
8387 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
8388 (procfs_stopped_data_address, procfs_insert_watchpoint)
8389 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
8390 (proc_find_memory_regions, procfs_info_proc)
8391 (procfs_make_note_section): Refactor as methods of procfs_target.
8392 (_initialize_procfs): Adjust.
8393 * sol-thread.c (sol_thread_target): New class.
8394 (sol_thread_ops): Now a sol_thread_target.
8395 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
8396 (sol_thread_fetch_registers, sol_thread_store_registers)
8397 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
8398 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
8399 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
8400 (init_sol_thread_ops): Delete.
8401 (_initialize_sol_thread): Adjust. Remove references to
8402 init_sol_thread_ops and complete_target_initialization.
8403
8404 * windows-nat.c (windows_nat_target): New class.
8405 (windows_fetch_inferior_registers)
8406 (windows_store_inferior_registers, windows_resume, windows_wait)
8407 (windows_attach, windows_detach, windows_pid_to_exec_file)
8408 (windows_files_info, windows_create_inferior)
8409 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
8410 (windows_close, windows_pid_to_str, windows_xfer_partial)
8411 (windows_get_tib_address, windows_get_ada_task_ptid)
8412 (windows_thread_name, windows_thread_alive): Refactor as
8413 windows_nat_target methods.
8414 (do_initial_windows_stuff): Adjust.
8415 (windows_target): Delete function.
8416 (_initialize_windows_nat): Adjust.
8417
8418 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
8419 (darwin_mourn_inferior, darwin_kill_inferior)
8420 (darwin_create_inferior, darwin_attach, darwin_detach)
8421 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
8422 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
8423 (darwin_supports_multi_process): Refactor as darwin_nat_target
8424 methods.
8425 (darwin_resume_to, darwin_files_info): Delete.
8426 (_initialize_darwin_inferior): Rename to ...
8427 (_initialize_darwin_nat): ... this. Adjust to C++ification.
8428 * darwin-nat.h: Include "inf-child.h".
8429 (darwin_nat_target): New class.
8430 (darwin_complete_target): Delete.
8431 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
8432 (darwin_target): New.
8433 (i386_darwin_fetch_inferior_registers)
8434 (i386_darwin_store_inferior_registers): Refactor as methods of
8435 darwin_nat_target.
8436 (darwin_complete_target): Delete, with ...
8437 (_initialize_i386_darwin_nat): ... bits factored out here.
8438
8439 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
8440 (the_alpha_linux_nat_target): New.
8441 (alpha_linux_register_u_offset): Refactor as
8442 alpha_linux_nat_target method.
8443 (_initialize_alpha_linux_nat): Adjust.
8444 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
8445 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
8446 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
8447 methods of linux_nat_trad_target.
8448 (linux_trad_target): Delete.
8449 * linux-nat-trad.h (linux_trad_target): Delete function.
8450 (linux_nat_trad_target): New class.
8451 * mips-linux-nat.c (mips_linux_nat_target): New class.
8452 (super_fetch_registers, super_store_registers, super_close):
8453 Delete.
8454 (the_mips_linux_nat_target): New.
8455 (mips64_linux_regsets_fetch_registers)
8456 (mips64_linux_regsets_store_registers)
8457 (mips64_linux_fetch_registers, mips64_linux_store_registers)
8458 (mips_linux_register_u_offset, mips_linux_read_description)
8459 (mips_linux_can_use_hw_breakpoint)
8460 (mips_linux_stopped_by_watchpoint)
8461 (mips_linux_stopped_data_address)
8462 (mips_linux_region_ok_for_hw_watchpoint)
8463 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
8464 (mips_linux_close): Refactor as methods of mips_linux_nat.
8465 (_initialize_mips_linux_nat): Adjust to C++ification.
8466
8467 * aix-thread.c (aix_thread_target): New class.
8468 (aix_thread_ops): Now an aix_thread_target.
8469 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
8470 (aix_thread_fetch_registers, aix_thread_store_registers)
8471 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
8472 (aix_thread_thread_alive, aix_thread_pid_to_str)
8473 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
8474 Refactor as methods of aix_thread_target.
8475 (init_aix_thread_ops): Delete.
8476 (_initialize_aix_thread): Remove references to init_aix_thread_ops
8477 and complete_target_initialization.
8478 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
8479 (rs6000_nat_target): New class.
8480 (the_rs6000_nat_target): New.
8481 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
8482 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
8483 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
8484 (super_create_inferior): Delete.
8485 (_initialize_rs6000_nat): Adjust to C++ification.
8486
8487 * arm-linux-nat.c (arm_linux_nat_target): New class.
8488 (the_arm_linux_nat_target): New.
8489 (arm_linux_fetch_inferior_registers)
8490 (arm_linux_store_inferior_registers, arm_linux_read_description)
8491 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
8492 (arm_linux_remove_hw_breakpoint)
8493 (arm_linux_region_ok_for_hw_watchpoint)
8494 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
8495 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
8496 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
8497 arm_linux_nat_target.
8498 (_initialize_arm_linux_nat): Adjust to C++ification.
8499
8500 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
8501 (the_aarch64_linux_nat_target): New.
8502 (aarch64_linux_fetch_inferior_registers)
8503 (aarch64_linux_store_inferior_registers)
8504 (aarch64_linux_child_post_startup_inferior)
8505 (aarch64_linux_read_description)
8506 (aarch64_linux_can_use_hw_breakpoint)
8507 (aarch64_linux_insert_hw_breakpoint)
8508 (aarch64_linux_remove_hw_breakpoint)
8509 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
8510 (aarch64_linux_region_ok_for_hw_watchpoint)
8511 (aarch64_linux_stopped_data_address)
8512 (aarch64_linux_stopped_by_watchpoint)
8513 (aarch64_linux_watchpoint_addr_within_range)
8514 (aarch64_linux_can_do_single_step): Refactor as methods of
8515 aarch64_linux_nat_target.
8516 (super_post_startup_inferior): Delete.
8517 (_initialize_aarch64_linux_nat): Adjust to C++ification.
8518
8519 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
8520 (the_hppa_linux_nat_target): New.
8521 (hppa_linux_fetch_inferior_registers)
8522 (hppa_linux_store_inferior_registers): Refactor as methods of
8523 hppa_linux_nat_target.
8524 (_initialize_hppa_linux_nat): Adjust to C++ification.
8525
8526 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
8527 (the_ia64_linux_nat_target): New.
8528 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
8529 (ia64_linux_stopped_data_address)
8530 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
8531 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
8532 ia64_linux_nat_target methods.
8533 (super_xfer_partial): Delete.
8534 (_initialize_ia64_linux_nat): Adjust to C++ification.
8535
8536 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
8537 (the_m32r_linux_nat_target): New.
8538 (m32r_linux_fetch_inferior_registers)
8539 (m32r_linux_store_inferior_registers): Refactor as
8540 m32r_linux_nat_target methods.
8541 (_initialize_m32r_linux_nat): Adjust to C++ification.
8542
8543 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
8544 (the_m68k_linux_nat_target): New.
8545 (m68k_linux_fetch_inferior_registers)
8546 (m68k_linux_store_inferior_registers): Refactor as
8547 m68k_linux_nat_target methods.
8548 (_initialize_m68k_linux_nat): Adjust to C++ification.
8549
8550 * s390-linux-nat.c (s390_linux_nat_target): New class.
8551 (the_s390_linux_nat_target): New.
8552 (s390_linux_fetch_inferior_registers)
8553 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
8554 (s390_insert_watchpoint, s390_remove_watchpoint)
8555 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
8556 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
8557 (s390_auxv_parse, s390_read_description): Refactor as methods of
8558 s390_linux_nat_target.
8559 (_initialize_s390_nat): Adjust to C++ification.
8560
8561 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
8562 (the_sparc_linux_nat_target): New.
8563 (_initialize_sparc_linux_nat): Adjust to C++ification.
8564 * sparc-nat.c (sparc_fetch_inferior_registers)
8565 (sparc_store_inferior_registers): Remove target_ops parameter.
8566 * sparc-nat.h (sparc_fetch_inferior_registers)
8567 (sparc_store_inferior_registers): Remove target_ops parameter.
8568 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
8569 (the_sparc64_linux_nat_target): New.
8570 (_initialize_sparc64_linux_nat): Adjust to C++ification.
8571
8572 * spu-linux-nat.c (spu_linux_nat_target): New class.
8573 (the_spu_linux_nat_target): New.
8574 (spu_child_post_startup_inferior, spu_child_post_attach)
8575 (spu_child_wait, spu_fetch_inferior_registers)
8576 (spu_store_inferior_registers, spu_xfer_partial)
8577 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
8578 methods.
8579 (_initialize_spu_nat): Adjust to C++ification.
8580
8581 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
8582 (the_tilegx_linux_nat_target): New.
8583 (fetch_inferior_registers, store_inferior_registers):
8584 Refactor as methods.
8585 (_initialize_tile_linux_nat): Adjust to C++ification.
8586
8587 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
8588 (the_xtensa_linux_nat_target): New.
8589 (xtensa_linux_fetch_inferior_registers)
8590 (xtensa_linux_store_inferior_registers): Refactor as
8591 xtensa_linux_nat_target methods.
8592 (_initialize_xtensa_linux_nat): Adjust to C++ification.
8593
8594 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
8595 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
8596 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
8597 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
8598 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
8599 (fbsd_stopped_by_sw_breakpoint)
8600 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
8601 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
8602 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
8603 (fbsd_post_startup_inferior, fbsd_post_attach)
8604 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
8605 (fbsd_set_syscall_catchpoint)
8606 (super_xfer_partial, super_resume, super_wait)
8607 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
8608 (fbsd_handle_debug_trap): Remove target_ops parameter.
8609 (fbsd_nat_add_target): Delete.
8610 * fbsd-nat.h: Include "inf-ptrace.h".
8611 (fbsd_nat_add_target): Delete.
8612 (USE_SIGTRAP_SIGINFO): Define.
8613 (fbsd_nat_target): New class.
8614
8615 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
8616 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
8617 (amd64bsd_target): Delete.
8618 * amd64-bsd-nat.h: New file.
8619 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
8620 "x86-bsd-nat.h".
8621 (amd64_fbsd_nat_target): New class.
8622 (the_amd64_fbsd_nat_target): New.
8623 (amd64fbsd_read_description): Refactor as method of
8624 amd64_fbsd_nat_target.
8625 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
8626 (_initialize_amd64fbsd_nat): Adjust to C++ification.
8627 * amd64-nat.h (amd64bsd_target): Delete function declaration.
8628 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
8629 (i386bsd_store_inferior_registers): Remove target_ops parameter.
8630 (i386bsd_target): Delete.
8631 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
8632 (i386bsd_fetch_inferior_registers)
8633 (i386bsd_store_inferior_registers): Declare.
8634 (i386_bsd_nat_target): New class.
8635 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
8636 (the_i386_fbsd_nat_target): New.
8637 (i386fbsd_resume, i386fbsd_read_description): Refactor as
8638 i386_fbsd_nat_target methods.
8639 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
8640 (_initialize_i386fbsd_nat): Adjust to C++ification.
8641 * x86-bsd-nat.c (super_mourn_inferior): Delete.
8642 (x86bsd_mourn_inferior, x86bsd_target): Delete.
8643 (_initialize_x86_bsd_nat): Adjust to C++ification.
8644 * x86-bsd-nat.h: Include "x86-nat.h".
8645 (x86bsd_target): Delete declaration.
8646 (x86bsd_nat_target): New class.
8647
8648 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
8649 (the_aarch64_fbsd_nat_target): New.
8650 (aarch64_fbsd_fetch_inferior_registers)
8651 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
8652 aarch64_fbsd_nat_target.
8653 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
8654 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
8655 (the_alpha_bsd_nat_target): New.
8656 (alphabsd_fetch_inferior_registers)
8657 (alphabsd_store_inferior_registers): Refactor as
8658 alpha_bsd_nat_target methods.
8659 (_initialize_alphabsd_nat): Refactor as methods of
8660 alpha_bsd_nat_target.
8661 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
8662 (the_amd64_nbsd_nat_target): New.
8663 (_initialize_amd64nbsd_nat): Adjust to C++ification.
8664 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
8665 (the_amd64_obsd_nat_target): New.
8666 (_initialize_amd64obsd_nat): Adjust to C++ification.
8667 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
8668 (the_arm_fbsd_nat_target): New.
8669 (arm_fbsd_fetch_inferior_registers)
8670 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
8671 (_initialize_arm_fbsd_nat): Refactor as methods of
8672 arm_fbsd_nat_target.
8673 (_initialize_arm_fbsd_nat): Adjust to C++ification.
8674 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
8675 (the_arm_netbsd_nat_target): New.
8676 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
8677 arm_netbsd_nat_target.
8678 (_initialize_arm_netbsd_nat): Adjust to C++ification.
8679 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
8680 (the_hppa_nbsd_nat_target): New.
8681 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
8682 hppa_nbsd_nat_target methods.
8683 (_initialize_hppanbsd_nat): Adjust to C++ification.
8684 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
8685 (the_hppa_obsd_nat_target): New.
8686 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
8687 methods of hppa_obsd_nat_target.
8688 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
8689 add_target.
8690 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
8691 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
8692 add_target.
8693 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
8694 (_initialize_i386obsd_nat): Use add_target.
8695 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
8696 (the_m68k_bsd_nat_target): New.
8697 (m68kbsd_fetch_inferior_registers)
8698 (m68kbsd_store_inferior_registers): Refactor as methods of
8699 m68k_bsd_nat_target.
8700 (_initialize_m68kbsd_nat): Adjust to C++ification.
8701 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
8702 (the_mips_fbsd_nat_target): New.
8703 (mips_fbsd_fetch_inferior_registers)
8704 (mips_fbsd_store_inferior_registers): Refactor as methods of
8705 mips_fbsd_nat_target.
8706 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
8707 add_target.
8708 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
8709 (the_mips_nbsd_nat_target): New.
8710 (mipsnbsd_fetch_inferior_registers)
8711 (mipsnbsd_store_inferior_registers): Refactor as methods of
8712 mips_nbsd_nat_target.
8713 (_initialize_mipsnbsd_nat): Adjust to C++ification.
8714 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
8715 (the_mips64_obsd_nat_target): New.
8716 (mips64obsd_fetch_inferior_registers)
8717 (mips64obsd_store_inferior_registers): Refactor as methods of
8718 mips64_obsd_nat_target.
8719 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
8720 add_target.
8721 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
8722 nbsd_nat_target.
8723 * nbsd-nat.h: Include "inf-ptrace.h".
8724 (nbsd_nat_target): New class.
8725 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
8726 (obsd_wait): Refactor as methods of obsd_nat_target.
8727 (obsd_add_target): Delete.
8728 * obsd-nat.h: Include "inf-ptrace.h".
8729 (obsd_nat_target): New class.
8730 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
8731 (the_ppc_fbsd_nat_target): New.
8732 (ppcfbsd_fetch_inferior_registers)
8733 (ppcfbsd_store_inferior_registers): Refactor as methods of
8734 ppc_fbsd_nat_target.
8735 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
8736 add_target.
8737 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
8738 (the_ppc_nbsd_nat_target): New.
8739 (ppcnbsd_fetch_inferior_registers)
8740 (ppcnbsd_store_inferior_registers): Refactor as methods of
8741 ppc_nbsd_nat_target.
8742 (_initialize_ppcnbsd_nat): Adjust to C++ification.
8743 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
8744 (the_ppc_obsd_nat_target): New.
8745 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
8746 methods of ppc_obsd_nat_target.
8747 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
8748 add_target.
8749 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
8750 (the_sh_nbsd_nat_target): New.
8751 (shnbsd_fetch_inferior_registers)
8752 (shnbsd_store_inferior_registers): Refactor as methods of
8753 sh_nbsd_nat_target.
8754 (_initialize_shnbsd_nat): Adjust to C++ification.
8755 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
8756 (inf_ptrace_xfer_partial): Delete.
8757 (sparc_xfer_partial, sparc_target): Delete.
8758 * sparc-nat.h (sparc_fetch_inferior_registers)
8759 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
8760 (sparc_target): Delete function declaration.
8761 (sparc_target): New template class.
8762 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
8763 (_initialize_sparcnbsd_nat): Adjust to C++ification.
8764 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
8765 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
8766 add_target.
8767 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
8768 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
8769 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
8770 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
8771 add_target.
8772 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
8773 (the_vax_bsd_nat_target): New.
8774 (vaxbsd_fetch_inferior_registers)
8775 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
8776 methods.
8777 (_initialize_vaxbsd_nat): Adjust to C++ification.
8778
8779 * bsd-kvm.c (bsd_kvm_target): New class.
8780 (bsd_kvm_ops): Now a bsd_kvm_target.
8781 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
8782 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
8783 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
8784 bsd_kvm_target.
8785 (bsd_kvm_return_one): Delete.
8786 (bsd_kvm_add_target): Adjust to C++ification.
8787
8788 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
8789 (nto_procfs_target_procfs): New classes.
8790 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
8791 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
8792 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
8793 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
8794 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
8795 (procfs_remove_hw_breakpoint, procfs_resume)
8796 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
8797 (procfs_kill_inferior, procfs_store_registers)
8798 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
8799 as methods of nto_procfs_target.
8800 (nto_procfs_ops): Now an nto_procfs_target_procfs.
8801 (nto_native_ops): Delete.
8802 (procfs_open, procfs_native_open): Delete.
8803 (nto_native_ops): Now an nto_procfs_target_native.
8804 (init_procfs_targets): Adjust to C++ification.
8805 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
8806 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
8807 Refactor as methods of nto_procfs_target.
8808
8809 * go32-nat.c (go32_nat_target): New class.
8810 (the_go32_nat_target): New.
8811 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
8812 (go32_store_registers, go32_xfer_partial, go32_files_info)
8813 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
8814 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
8815 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
8816 (go32_pid_to_str): Refactor as methods of go32_nat_target.
8817 (go32_target): Delete.
8818 (_initialize_go32_nat): Adjust to C++ification.
8819
8820 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
8821 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
8822 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
8823 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
8824 gnu_nat_target.
8825 (gnu_target): Delete.
8826 * gnu-nat.h (gnu_target): Delete.
8827 (gnu_nat_target): New class.
8828 * i386-gnu-nat.c (gnu_base_target): New.
8829 (i386_gnu_nat_target): New class.
8830 (the_i386_gnu_nat_target): New.
8831 (_initialize_i386gnu_nat): Adjust to C++ification.
8832
8833 2018-05-02 Pedro Alves <palves@redhat.com>
8834
8835 * bfd-target.c (target_bfd_xclose): Rename to ...
8836 (target_bfd_close): ... this.
8837 (target_bfd_reopen): Adjust.
8838 * target.c (target_close): Remove references to to_xclose.
8839 * target.h (target_ops::to_xclose): Delete.
8840 (target_ops::to_close): Update comments.
8841
8842 2018-05-02 Pedro Alves <palves@redhat.com>
8843
8844 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
8845 "linux-nat.h".
8846 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
8847 * inf-ptrace.c (inf_ptrace_register_u_offset)
8848 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
8849 (inf_ptrace_store_register, inf_ptrace_store_registers)
8850 (inf_ptrace_trad_target): Move to ...
8851 * linux-nat-trad.c: ... this new file.
8852 * linux-nat-trad.h: New file.
8853 * linux-nat.c (linux_target_install_ops): Make extern.
8854 (linux_trad_target): Delete.
8855 * linux-nat.h (linux_trad_target): Delete declaration.
8856 (linux_target_install_ops): Declare.
8857 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
8858 "linux-nat.h".
8859
8860 2018-05-02 Pedro Alves <palves@redhat.com>
8861
8862 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
8863 procfs_target/add_target here.
8864 * procfs.c (procfs_target): Make static.
8865 (_initialize_procfs): Call add_target here.
8866 * procfs.h (struct target_ops): Remove forward declaration.
8867 (procfs_target): Remove declaration.
8868 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
8869
8870 2018-05-02 Pedro Alves <palves@redhat.com>
8871
8872 * procfs.c (procfs_stopped_by_watchpoint)
8873 (procfs_insert_watchpoint, procfs_remove_watchpoint)
8874 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
8875 Forward declare.
8876 (procfs_use_watchpoints): Delete, move contents...
8877 (procfs_target): ... here.
8878 * procfs.h (procfs_use_watchpoints): Delete declaration.
8879 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
8880 procfs_use_watchpoints.
8881 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
8882 procfs_use_watchpoints.
8883
8884 2018-05-02 Tom Tromey <tom@tromey.com>
8885
8886 PR python/20084:
8887 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
8888 and var_zuinteger_unlimited.
8889 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
8890 and PARAM_ZUINTEGER_UNLIMITED.
8891 (set_parameter_value): Handle var_zuinteger and
8892 var_zuinteger_unlimited.
8893 (add_setshow_generic): Likewise.
8894 (parmpy_init): Likewise.
8895
8896 2018-04-28 Dan Robertson <danlrobertson89@gmail.com>
8897
8898 PR rust/23124
8899 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
8900 pointer is not null before dereferencing it.
8901
8902 2018-04-30 Tom Tromey <tom@tromey.com>
8903
8904 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
8905 is_mi_like_p.
8906
8907 2018-04-30 Tom Tromey <tom@tromey.com>
8908
8909 * breakpoint.c (mention): Remove use of is_mi_like_p.
8910 (print_mention_ranged_breakpoint): Likewise.
8911 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
8912 of is_mi_like_p.
8913
8914 2018-04-30 Tom Tromey <tom@tromey.com>
8915
8916 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
8917
8918 2018-04-30 Tom Tromey <tom@tromey.com>
8919
8920 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
8921 (info_spu_event_command): Remove some uses of is_mi_like_p.
8922
8923 2018-04-30 Tom Tromey <tom@tromey.com>
8924
8925 * python/py-framefilter.c (py_print_single_arg)
8926 (enumerate_locals, py_print_args, py_print_frame): Remove some
8927 uses of is_mi_like_p.
8928
8929 2018-04-30 Tom Tromey <tom@tromey.com>
8930
8931 * ui-out.c: Update.
8932 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
8933 * ui-out.h (ui_out::is_mi_like_p): Now const.
8934 (ui_out::do_is_mi_like_p): Now const.
8935 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
8936
8937 2018-04-30 Tom Tromey <tom@tromey.com>
8938
8939 * varobj.c (varobj_set_visualizer): Use new_reference.
8940 * python/python.c (gdbpy_decode_line): Use new_reference.
8941 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
8942 new_reference.
8943
8944 2018-04-30 Tom Tromey <tom@tromey.com>
8945
8946 * varobj.c (install_new_value): Use new_reference.
8947 * value.h (value_incref): Return void. Swap intro comment with
8948 value_decref.
8949 * value.c (set_value_parent): Use new_reference.
8950 (value_incref): Return void. Update intro comment.
8951 (release_value): Use new_reference.
8952 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
8953
8954 2018-04-30 Tom Tromey <tom@tromey.com>
8955
8956 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
8957 * gdb_bfd.h (new_bfd_ref): Remove.
8958 (gdb_bfd_open): Update comment.
8959 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
8960 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
8961 (gdb_bfd_fdopenr): Use new_reference.
8962 * exec.c (exec_file_attach): Use new_reference.
8963
8964 2018-04-30 Tom Tromey <tom@tromey.com>
8965
8966 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
8967 method.
8968
8969 2018-04-30 Tom Tromey <tom@tromey.com>
8970
8971 * jit.c (jit_read_code_entry): Use type_align.
8972 * i386-tdep.c (i386_gdbarch_init): Don't call
8973 set_gdbarch_long_long_align_bit.
8974 * gdbarch.sh: Remove long_long_align_bit.
8975 * gdbarch.c, gdbarch.h: Rebuild.
8976 * arc-tdep.c (arc_type_align): New function.
8977 (arc_gdbarch_init): Use arc_type_align. Don't call
8978 set_gdbarch_long_long_align_bit.
8979
8980 2018-04-30 Tom Tromey <tom@tromey.com>
8981
8982 * rust-lang.c (rust_type_alignment): Remove.
8983 (rust_composite_type): Use type_align.
8984
8985 2018-04-30 Tom Tromey <tom@tromey.com>
8986
8987 * NEWS: Mention Type.align.
8988 * python/py-type.c (typy_get_alignof): New function.
8989 (type_object_getset): Add "alignof".
8990
8991 2018-04-30 Tom Tromey <tom@tromey.com>
8992
8993 PR exp/17095:
8994 * NEWS: Update.
8995 * std-operator.def (UNOP_ALIGNOF): New operator.
8996 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
8997 New.
8998 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
8999 * c-lang.c (c_op_print_tab): Add alignof.
9000 * c-exp.y (ALIGNOF): New token.
9001 (exp): Add "ALIGNOF" production.
9002 (ident_tokens): Add _Alignof and alignof.
9003
9004 2018-04-30 Tom Tromey <tom@tromey.com>
9005
9006 * i386-tdep.c (i386_type_align): New function.
9007 (i386_gdbarch_init): Update.
9008 * gdbarch.sh (type_align): New method.
9009 * gdbarch.c, gdbarch.h: Rebuild.
9010 * arch-utils.h (default_type_align): Declare.
9011 * arch-utils.c (default_type_align): New function.
9012 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
9013 (struct type) <align_log2>: New field.
9014 <instance_flags>: Now a bitfield.
9015 (TYPE_RAW_ALIGN): New macro.
9016 (type_align, type_raw_align, set_type_align): Declare.
9017 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
9018 functions.
9019 * dwarf2read.c (quirk_rust_enum): Set type alignment.
9020 (get_alignment, maybe_set_alignment): New functions.
9021 (read_structure_type, read_enumeration_type, read_array_type)
9022 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
9023 (read_subrange_type, read_base_type): Set type alignment.
9024
9025 2018-04-30 Simon Marchi <simon.marchi@ericsson.com>
9026
9027 * dwarf2read.c (read_index_from_section): Use bool.
9028
9029 2018-04-29 Fabian Groffen <grobian@gentoo.org>
9030
9031 PR gdb/22950
9032 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
9033 with #ifdef.
9034
9035 2018-04-29 John Reiser <jreiser@BitWagon.com>
9036
9037 PR build/22873
9038 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
9039 last step, and do it atomically.
9040
9041 2018-04-27 Alexandre Oliva <aoliva@redhat.com>
9042
9043 * compile/compile-c-types.c (convert_int, convert_float):
9044 Update for C FE v1.
9045
9046 2018-04-27 Tom Tromey <tom@tromey.com>
9047
9048 PR rust/22545:
9049 * rust-lang.c (rust_inclusive_range_type_p): New function.
9050 (rust_range): Handle inclusive ranges.
9051 (rust_compute_range): Likewise.
9052 * rust-exp.y (struct rust_op) <inclusive>: New field.
9053 (DOTDOTEQ): New constant.
9054 (range_expr): Add "..=" productions.
9055 (operator_tokens): Add "..=" token.
9056 (ast_range): Add "inclusive" parameter.
9057 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
9058 ranges.
9059 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
9060 bounds values.
9061 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
9062 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
9063 Update comments.
9064 * expprint.c (print_subexp_standard): Handle new bounds values.
9065 (dump_subexp_body_standard): Likewise.
9066
9067 2018-04-27 Tom Tromey <tom@tromey.com>
9068
9069 * configure: Rebuild.
9070 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
9071 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
9072 "OVERRIDE".
9073 (class symbol_needs_eval_context): Likewise.
9074 * dwarf2read.c (mock_mapped_index::symbol_name_count)
9075 (mock_mapped_index::symbol_name_at): Use "override". Remove
9076 "virtual".
9077 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
9078 "override".
9079 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
9080 * aarch64-tdep.c (instruction_reader::read): Use "override".
9081 (instruction_reader_test::read): Likewise.
9082 * arm-tdep.c (instruction_reader::read): Use "override".
9083 (instruction_reader_thumb::read): Likewise.
9084
9085 2018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
9086
9087 PR remote/9665
9088 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
9089 instead of remote_send.
9090 (remote_send): Remove.
9091
9092 2018-04-26 Pedro Alves <palves@redhat.com>
9093
9094 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
9095 find_function_start_sal instead of find_pc_line.
9096
9097 2018-04-26 Pedro Alves <palves@redhat.com>
9098
9099 * breakpoint.c (set_breakpoint_location_function): Handle
9100 mst_data_gnu_ifunc.
9101 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
9102 * elfread.c (elf_symtab_read): Give data symbols with
9103 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
9104 (elf_rel_plt_read): Update comment.
9105 * linespec.c (convert_linespec_to_sals): Handle
9106 mst_data_gnu_ifunc.
9107 (minsym_found): Handle mst_data_gnu_ifunc.
9108 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
9109 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
9110 * parse.c (find_minsym_type_and_address): Handle
9111 mst_data_gnu_ifunc.
9112 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
9113 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
9114 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
9115 comment.
9116 <mst_data_gnu_ifunc>: New enumerator.
9117
9118 2018-04-26 Pedro Alves <palves@redhat.com>
9119
9120 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
9121 (lookup_minimal_symbol_by_pc_section): ... this. Replace
9122 'want_trampoline' parameter by a lookup_msym_prefer parameter.
9123 Handle it.
9124 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
9125 (lookup_minimal_symbol_by_pc): Adjust.
9126 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
9127 (lookup_solib_trampoline_symbol_by_pc): Adjust.
9128 * minsyms.h (lookup_msym_prefer): New enum.
9129 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
9130 parameter by a lookup_msym_prefer parameter.
9131
9132 2018-04-26 Pedro Alves <palves@redhat.com>
9133
9134 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
9135 ends in "@plt" instead of looking at the symbol's section.
9136
9137 2018-04-26 Pedro Alves <palves@redhat.com>
9138
9139 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
9140 all references.
9141 (find_pc_partial_function_gnu_ifunc): Rename to ...
9142 (find_pc_partial_function): ... this, and remove references to
9143 'is_gnu_ifunc_p'.
9144 (find_pc_partial_function): Delete old implementation.
9145 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
9146
9147 2018-04-26 Pedro Alves <palves@redhat.com>
9148
9149 * linespec.c (struct bound_minimal_symbol_search_key): New.
9150 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
9151 skip first line if we found a GNU ifunc minimal symbol by name.
9152 (compare_msymbols): Change parameters to work with a destructured
9153 lhs minsym.
9154 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
9155 functions.
9156
9157 2018-04-26 Pedro Alves <palves@redhat.com>
9158
9159 * breakpoint.c (set_breakpoint_location_function): Don't resolve
9160 ifunc targets here. Instead, if we have an ifunc minsym, use its
9161 address/name.
9162 (add_location_to_breakpoint): Store the minsym and the objfile in
9163 the breakpoint location.
9164 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
9165 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
9166 Record the minsym in the sal.
9167 * symtab.h (symtab_and_line) <msymbol>: New field.
9168
9169 2018-04-26 Pedro Alves <palves@redhat.com>
9170
9171 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
9172 unless we actually resolved the ifunc.
9173
9174 2018-04-26 Pedro Alves <palves@redhat.com>
9175
9176 * c-exp.y (variable production): Prefer ifunc minsyms over
9177 regular function symbols.
9178 * symtab.c (find_gnu_ifunc): New function.
9179 * minsyms.h (lookup_msym_prefer): New enum.
9180 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
9181 parameter by a lookup_msym_prefer parameter.
9182 * symtab.h (find_gnu_ifunc): New declaration.
9183
9184 2018-04-26 Pedro Alves <palves@redhat.com>
9185
9186 * blockframe.c (find_gnu_ifunc_target_type): New function.
9187 (find_function_type): New.
9188 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
9189 return a value with a memory address.
9190 (eval_call): For calls to GNU ifunc functions, try to find the
9191 type of the target function from the type that the resolver
9192 returns.
9193 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
9194 symbols.
9195 * infcall.c (find_function_return_type): Delete.
9196 (find_function_addr): Add 'function_type' parameter. For calls to
9197 GNU ifunc functions, try to find the type of the target function
9198 from the type that the resolver returns, and return it via
9199 FUNCTION_TYPE.
9200 (call_function_by_hand_dummy): Adjust to use the function type
9201 returned by find_function_addr.
9202 (find_function_addr): Add 'function_type' parameter and move
9203 description here.
9204 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
9205 declarations.
9206
9207 2018-04-26 Pedro Alves <palves@redhat.com>
9208
9209 * c-exp.y (variable production): Skip finding an alias for ifunc
9210 symbols.
9211
9212 2018-04-26 Pedro Alves <palves@redhat.com>
9213
9214 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
9215
9216 2018-04-25 Pedro Alves <palves@redhat.com>
9217
9218 * infcmd.c (kill_command): Print the pid as string, not the whole
9219 thread's ptid. Add comment. s/has been killed/killed/ in output
9220 message.
9221 * remote.c (remote_detach_1): Print the pid as string, not the
9222 whole thread's ptid.
9223
9224 2018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9225 Sergio Durigan Junior <sergiodj@redhat.com>
9226 Pedro Alves <palves@redhat.com>
9227
9228 * infcmd.c (kill_command): Print message when inferior has
9229 been killed.
9230 * inferior.c (print_inferior_events): Remove 'static'. Set as
9231 '1'.
9232 (add_inferior): Improve message printed when
9233 'print_inferior_events' is on.
9234 (exit_inferior): Remove message printed when
9235 'print_inferior_events' is on.
9236 (detach_inferior): Improve message printed when
9237 'print_inferior_events' is on.
9238 (initialize_inferiors): Use 'add_inferior_silent' to set
9239 'current_inferior_'.
9240 * inferior.h (print_inferior_events): Declare here as
9241 'extern'.
9242 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
9243 '[Detaching...]' messages when 'print_inferior_events' is on.
9244 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
9245 as prefix/suffix for messages. Remove periods. Fix erroneous
9246 'Detaching after fork from child...', replace it by '... from
9247 parent...'.
9248 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
9249 prefix/suffix when printing 'Detaching...' messages. Print
9250 them when 'print_inferior_events' is on.
9251 * remote.c (remote_detach_1): Print message when detaching
9252 from inferior and '!is_fork_parent'.
9253
9254 2018-04-24 Tom Tromey <tom@tromey.com>
9255
9256 * cli-out.h: Reindent.
9257
9258 2018-04-24 Tom Tromey <tom@tromey.com>
9259
9260 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
9261 (cli_ui_out::do_field_string): Use fputs_filtered.
9262 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
9263
9264 2018-04-23 Tom Tromey <tom@tromey.com>
9265
9266 * guile/scm-frame.c (gdbscm_frame_read_var): Use
9267 gdb::unique_xmalloc_ptr.
9268
9269 2018-04-23 Tom Tromey <tom@tromey.com>
9270
9271 * configure: Rebuild.
9272
9273 2018-04-22 Rajendra SY <rajendra.sy@gmail.com>
9274
9275 PR gdb/23095
9276 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
9277 prepare_for_testing. Set normal_bp to r_debug_state if target
9278 is bsd.
9279
9280 2018-04-21 Pedro Alves <palves@redhat.com>
9281 Rajendra SY <rajendra.sy@gmail.com>
9282
9283 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
9284 * remote.c (extended_remote_attach): In all-stop mode, mark the
9285 thread as executing.
9286
9287 2018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9288
9289 * thread.c (thread_apply_all_command): Fix comment.
9290 (thread_command): Fix comment.
9291
9292 2018-04-10 Alan Hayward <alan.hayward@arm.com>
9293
9294 * common/tdesc.h (tdesc_create_feature): Remove xml filename
9295 parameter.
9296 * features/aarch64-core.c (create_feature_aarch64_core):
9297 Regenerate.
9298 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
9299 Likewise.
9300 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
9301 Likewise.
9302 * features/i386/32bit-avx512.c
9303 (create_feature_i386_32bit_avx512): Likewise.
9304 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
9305 Likewise.
9306 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
9307 Likewise.
9308 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
9309 Likewise.
9310 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
9311 Likewise.
9312 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
9313 Likewise.
9314 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
9315 Likewise.
9316 * features/i386/64bit-avx512.c
9317 (create_feature_i386_64bit_avx512): Likewise.
9318 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
9319 Likewise.
9320 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
9321 Likewise.
9322 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
9323 Likewise.
9324 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
9325 Likewise.
9326 * features/i386/64bit-segments.c
9327 (create_feature_i386_64bit_segments): Likewise.
9328 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
9329 Likewise.
9330 * features/i386/x32-core.c
9331 (create_feature_i386_x32_core): Likewise.
9332 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
9333 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
9334 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
9335 * target-descriptions.c: In generated code, don't pass xml
9336 filename.
9337
9338 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9339
9340 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
9341 (print_xml_feature::visit_post): Likewise.
9342 (print_xml_feature::visit): Likewise.
9343 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
9344 (print_xml_feature): Add new class.
9345 * regformats/regdat.sh: Null xmltarget on feature targets.
9346 * target-descriptions.c (struct target_desc): Add xmltarget.
9347 (maintenance_check_tdesc_xml_convert): Add unittest function.
9348 (tdesc_get_features_xml): Add function to get xml.
9349 (maintenance_check_xml_descriptions): Test xml generation.
9350 * xml-tdesc.c (string_read_description_xml): Add function.
9351 * xml-tdesc.h (string_read_description_xml): Add declaration.
9352
9353 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9354
9355 * features/Makefile: Add feature marker to targets with new style
9356 target descriptions.
9357 * regformats/aarch64.dat: Regenerate.
9358 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
9359 * regformats/i386/amd64-avx-linux.dat: Likewise.
9360 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
9361 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
9362 * regformats/i386/amd64-linux.dat: Likewise.
9363 * regformats/i386/amd64-mpx-linux.dat: Likewise.
9364 * regformats/i386/amd64.dat: Likewise.
9365 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
9366 * regformats/i386/i386-avx-linux.dat: Likewise.
9367 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
9368 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
9369 * regformats/i386/i386-linux.dat: Likewise.
9370 * regformats/i386/i386-mmx-linux.dat: Likewise.
9371 * regformats/i386/i386-mpx-linux.dat: Likewise.
9372 * regformats/i386/i386.dat: Likewise.
9373 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
9374 * regformats/i386/x32-avx-linux.dat: Likewise.
9375 * regformats/i386/x32-linux.dat: Likewise.
9376 * regformats/tic6x-c62x-linux.dat: Likewise.
9377 * regformats/tic6x-c64x-linux.dat: Likewise.
9378 * regformats/tic6x-c64xp-linux.dat: Likewise.
9379 * regformats/regdat.sh: Parse feature marker.
9380
9381 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9382
9383 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
9384 (tdesc_osabi_name): Likewise.
9385 * target-descriptions.c (tdesc_architecture_name): Add new
9386 function.
9387 (tdesc_osabi_name): Likewise.
9388
9389 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9390
9391 * common/tdesc.c (tdesc_predefined_type): Move to here.
9392 (tdesc_named_type): Likewise.
9393 (tdesc_create_vector): Likewise.
9394 (tdesc_create_struct): Likewise.
9395 (tdesc_set_struct_size): Likewise.
9396 (tdesc_create_union): Likewise.
9397 (tdesc_create_flags): Likewise.
9398 (tdesc_create_enum): Likewise.
9399 (tdesc_add_field): Likewise.
9400 (tdesc_add_typed_bitfield): Likewise.
9401 (tdesc_add_bitfield): Likewise.
9402 (tdesc_add_flag): Likewise.
9403 (tdesc_add_enum_value): Likewise.
9404 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
9405 (struct tdesc_type_vector): Likewise.
9406 (struct tdesc_type_field): Likewise.
9407 (struct tdesc_type_with_fields): Likewise.
9408 (tdesc_create_enum): Add declaration.
9409 (tdesc_add_typed_bitfield): Likewise.
9410 (tdesc_add_enum_value): Likewise.
9411 * target-descriptions.c (tdesc_type_field): Move from here.
9412 (tdesc_type_builtin): Likewise.
9413 (tdesc_type_vector): Likewise.
9414 (tdesc_type_with_fields): Likewise.
9415 (tdesc_predefined_types): Likewise.
9416 (tdesc_named_type): Likewise.
9417 (tdesc_create_vector): Likewise.
9418 (tdesc_create_struct): Likewise.
9419 (tdesc_set_struct_size): Likewise.
9420 (tdesc_create_union): Likewise.
9421 (tdesc_create_flags): Likewise.
9422 (tdesc_create_enum): Likewise.
9423 (tdesc_add_field): Likewise.
9424 (tdesc_add_typed_bitfield): Likewise.
9425 (tdesc_add_bitfield): Likewise.
9426 (tdesc_add_flag): Likewise.
9427 (tdesc_add_enum_value): Likewise.
9428 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
9429 (tdesc_add_typed_bitfield): Likewise.
9430 (tdesc_add_enum_value): Likewise.
9431
9432 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9433
9434 * common/tdesc.c (tdesc_feature::accept): Move to here.
9435 (tdesc_feature::operator==): Likewise.
9436 (tdesc_create_reg): Likewise.
9437 * common/tdesc.h (tdesc_type_kind): Likewise.
9438 (struct tdesc_type): Likewise.
9439 (struct tdesc_feature): Likewise.
9440 * regformats/regdat.sh: Create a feature.
9441 * target-descriptions.c (tdesc_type_kind): Move from here.
9442 (tdesc_type): Likewise.
9443 (tdesc_type_up): Likewise.
9444 (tdesc_feature): Likewise.
9445 (tdesc_create_reg): Likewise.
9446
9447 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9448
9449 * Makefile.in: Add arch/tdesc.c
9450 * common/tdesc.c: New file.
9451 * common/tdesc.h (tdesc_element_visitor): Move to here.
9452 (tdesc_element): Likewise.
9453 (tdesc_reg): Likewise.
9454 (tdesc_reg_up): Likewise.
9455 * regformats/regdef.h (reg): Add offset to constructors.
9456 * target-descriptions.c (tdesc_element_visitor): Move from here.
9457 (tdesc_element): Likewise.
9458 (tdesc_reg): Likewise.
9459 (tdesc_reg_up): Likewise.
9460
9461 2018-04-17 Tom Tromey <tom@tromey.com>
9462
9463 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
9464 discriminant field.
9465
9466 2018-04-17 Tom Tromey <tom@tromey.com>
9467
9468 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
9469
9470 2018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
9471
9472 * symtab.c (print_symbol_info): Skip printing filename and line
9473 number when `last' is NULL.
9474 (symtab_symbol_info): Use empty string instead of NULL for first
9475 invocation of print_symbol_info.
9476 (rbreak_command): Pass NULL to `last' parameter of
9477 print_symbol_info.
9478
9479 2018-04-16 Simon Marchi <simon.marchi@ericsson.com>
9480
9481 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
9482 instead of nullptr.
9483
9484 2018-04-16 Pedro Alves <palves@redhat.com>
9485
9486 * MAINTAINERS (sh): Remove.
9487 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
9488 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
9489 (ALLDEPFILES): Remove sh64-tdep.c.
9490 * NEWS: Mentions that support for SH-5/SH64 is removed.
9491 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
9492 (sh*-*-openbsd*): Ditto.
9493 (sh64-*-elf*): Remove.
9494 (sh*): Remove.
9495 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
9496 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
9497 * sh-tdep.c: No longer include "sh64-tdep.h".
9498 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
9499 * sh64-tdep.c, sh64-tdep.h: Remove files.
9500
9501 2018-04-16 Pedro Alves <palves@redhat.com>
9502
9503 * MAINTAINERS: Remove m88k.
9504 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
9505 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
9506 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
9507 * NEWS: Mention that support for m88k was removed.
9508 * configure.host (m88*-*-*): Remove support.
9509 * configure.nat (m88k-*-*): Remove support.
9510 * configure.tgt (m88*-*-openbsd*): Remove.
9511 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
9512
9513 2018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
9514
9515 * configure.tgt (x86_tobjs): New variable.
9516 (amd64_tobjs, i386_tobjs): Use it.
9517
9518 2018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9519
9520 * symtab.c (print_symbol_info): Precede the symbol definition by
9521 the line number when available.
9522 * NEWS: Advertise this enhancement.
9523
9524 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9525
9526 * NEWS (New options): announce set/show record btrace cpu.
9527 * btrace.c: Include record-btrace.h.
9528 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
9529 the vendor is unknown.
9530 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
9531 Maybe overwrite the btrace configuration's cpu.
9532 (btrace_compute_ftrace): Add cpu parameter. Update callers.
9533 (btrace_fetch): Add cpu parameter. Update callers.
9534 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
9535 Maybe overwrite the btrace configuration's cpu. Skip enabling
9536 errata workarounds if the vendor is unknown.
9537 * python/py-record-btrace.c: Include record-btrace.h.
9538 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
9539 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
9540 * record-btrace.c (record_btrace_cpu_state_kind): New.
9541 (record_btrace_cpu): New.
9542 (set_record_btrace_cpu_cmdlist): New.
9543 (record_btrace_get_cpu): New.
9544 (require_btrace_thread, record_btrace_info)
9545 (record_btrace_resume_thread): Call record_btrace_get_cpu.
9546 (cmd_set_record_btrace_cpu_none): New.
9547 (cmd_set_record_btrace_cpu_auto): New.
9548 (cmd_set_record_btrace_cpu): New.
9549 (cmd_show_record_btrace_cpu): New.
9550 (_initialize_record_btrace): Initialize set/show record btrace cpu
9551 commands.
9552 * record-btrace.h (record_btrace_get_cpu): New.
9553
9554 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9555
9556 * record.c (set_record_command): Fix typo in message.
9557
9558 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9559
9560 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
9561
9562 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9563
9564 * infrun.c (process_event_stop_test): Call
9565 gdbarch_in_indirect_branch_thunk.
9566 * gdbarch.sh (in_indirect_branch_thunk): New.
9567 * gdbarch.c: Regenerated.
9568 * gdbarch.h: Regenerated.
9569 * x86-tdep.h: New.
9570 * x86-tdep.c: New.
9571 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
9572 (HFILES_NO_SRCDIR): Add x86-tdep.h.
9573 (ALLDEPFILES): Add x86-tdep.c.
9574 * arch-utils.h (default_in_indirect_branch_thunk): New.
9575 * arch-utils.c (default_in_indirect_branch_thunk): New.
9576 * i386-tdep: Include x86-tdep.h.
9577 (i386_in_indirect_branch_thunk): New.
9578 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
9579 function.
9580 * amd64-tdep: Include x86-tdep.h.
9581 (amd64_in_indirect_branch_thunk): New.
9582 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
9583
9584 2018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9585
9586 PR gdb/23053
9587 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
9588 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
9589 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
9590 regression.
9591
9592 2018-04-12 Tom Tromey <tom@tromey.com>
9593
9594 * rust-lang.c (rust_print_struct_def): Remove univariant code.
9595 (rust_evaluate_subexp): Likewise.
9596
9597 2018-04-12 Pedro Alves <palves@redhat.com>
9598
9599 * procfs.c (procfs_detach): Make forward declaration's prototype
9600 match definition's protototype.
9601 (proc_get_LDT_entry): Remove stale do_cleanups call.
9602
9603 2018-04-12 Pedro Alves <palves@redhat.com>
9604
9605 * target.h (target_ops::to_has_exited): Delete.
9606 (target_has_exited): Delete.
9607 * target-delegates.c: Regenerate.
9608
9609 2018-04-11 Pedro Alves <palves@redhat.com>
9610
9611 * target.c (fileio_fh_t::t): Add comment.
9612 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
9613 (target_fileio_close): Handle a NULL target.
9614 (invalidate_fileio_fh): New.
9615 (target_close): Call it.
9616 * remote.c (remote_hostio_send_command): No longer check whether
9617 remote_desc is open.
9618
9619 2018-04-11 Pedro Alves <palves@redhat.com>
9620
9621 * target.c (fileio_fh_t): Make it a named struct instead of a
9622 typedef.
9623 (fileio_fh_t::is_closed): New method.
9624 (DEF_VEC_O (fileio_fh_t)): Remove.
9625 (fileio_fhandles): Now a std::vector.
9626 (is_closed_fileio_fh): Delete.
9627 (acquire_fileio_fd): Adjust. Rename parameters.
9628 (release_fileio_fd): Adjust.
9629 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
9630 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
9631 (target_fileio_close): Adjust.
9632
9633 2018-04-10 Simon Marchi <simon.marchi@ericsson.com>
9634
9635 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
9636 index.
9637
9638 2018-04-10 Pedro Alves <palves@redhat.com>
9639
9640 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
9641 (scoped_finish_thread_state): New class.
9642 * infcmd.c (run_command_1): Use it instead of finish_thread_state
9643 cleanup.
9644 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
9645 (fetch_inferior_event, normal_stop): Likewise.
9646 * thread.c (finish_thread_state_cleanup): Delete.
9647
9648 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9649 Pedro Alves <palves@redhat.com>
9650
9651 * value.c: Include "selftest.h" and "common/array-view.h".
9652 (struct range) <operator ==>: New.
9653 (test_ranges_contain): New.
9654 (check_ranges_vector): New.
9655 (test_insert_into_bit_range_vector): New.
9656 (_initialize_values): Register selftests.
9657 * common/array-view.h (operator==, operator!=): New.
9658
9659 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9660
9661 * common/gdb_vecs.h (unordered_remove): Add overload that takes
9662 an iterator.
9663 * inline-frame.c: Include <algorithm>.
9664 (struct inline_state): Add constructor.
9665 (inline_state_s): Remove.
9666 (DEF_VEC_O(inline_state_s)): Remove.
9667 (inline_states): Change type to std::vector.
9668 (find_inline_frame_state): Adjust to std::vector.
9669 (allocate_inline_frame_state): Remove.
9670 (clear_inline_frame_state): Adjust to std::vector.
9671 (skip_inline_frames): Adjust to std::vector.
9672
9673 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9674
9675 * tracepoint.h (struct trace_state_variable): Add constructor.
9676 <name>: Change type to std::string.
9677 * tracepoint.c (tsv_s): Remove.
9678 (DEF_VEC_O(tsv_s)): Remove.
9679 (tvariables): Change to std::vector.
9680 (create_trace_state_variable): Adjust to std::vector.
9681 (find_trace_state_variable): Likewise.
9682 (find_trace_state_variable_by_number): Likewise.
9683 (delete_trace_state_variable): Likewise.
9684 (trace_variable_command): Adjust to std::string.
9685 (delete_trace_variable_command): Likewise.
9686 (tvariables_info_1): Adjust to std::vector.
9687 (save_trace_state_variables): Likewise.
9688 (start_tracing): Likewise.
9689 (merge_uploaded_trace_state_variables): Adjust to std::vector
9690 and std::string.
9691 * target.h (struct target_ops)
9692 <to_download_trace_state_variable>: Pass reference to
9693 trace_state_variable.
9694 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
9695 * target-delegates.c: Re-generate.
9696 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
9697 (mi_tsv_deleted): Likewise.
9698 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
9699 * remote.c (remote_download_trace_state_variable): Change
9700 pointer to reference and adjust.
9701 * make-target-delegates (parse_argtypes): Handle references.
9702 (write_function_header): Likewise.
9703 (munge_type): Likewise.
9704
9705 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9706
9707 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9708 string_view-selftests.c.
9709 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
9710 testsuite.
9711 * unittests/basic_string_view/cons/char/1.cc: Likewise.
9712 * unittests/basic_string_view/cons/char/2.cc: Likewise.
9713 * unittests/basic_string_view/cons/char/3.cc: Likewise.
9714 * unittests/basic_string_view/element_access/char/1.cc:
9715 Likewise.
9716 * unittests/basic_string_view/element_access/char/empty.cc:
9717 Likewise.
9718 * unittests/basic_string_view/element_access/char/front_back.cc:
9719 Likewise.
9720 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
9721 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
9722 Likewise.
9723 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
9724 Likewise.
9725 * unittests/basic_string_view/modifiers/swap/char/1.cc:
9726 Likewise.
9727 * unittests/basic_string_view/operations/compare/char/1.cc:
9728 Likewise.
9729 * unittests/basic_string_view/operations/compare/char/13650.cc:
9730 Likewise.
9731 * unittests/basic_string_view/operations/copy/char/1.cc:
9732 Likewise.
9733 * unittests/basic_string_view/operations/data/char/1.cc:
9734 Likewise.
9735 * unittests/basic_string_view/operations/find/char/1.cc:
9736 Likewise.
9737 * unittests/basic_string_view/operations/find/char/2.cc:
9738 Likewise.
9739 * unittests/basic_string_view/operations/find/char/3.cc:
9740 Likewise.
9741 * unittests/basic_string_view/operations/find/char/4.cc:
9742 Likewise.
9743 * unittests/basic_string_view/operations/rfind/char/1.cc:
9744 Likewise.
9745 * unittests/basic_string_view/operations/rfind/char/2.cc:
9746 Likewise.
9747 * unittests/basic_string_view/operations/rfind/char/3.cc:
9748 Likewise.
9749 * unittests/basic_string_view/operations/substr/char/1.cc:
9750 Likewise.
9751 * unittests/basic_string_view/operators/char/2.cc: Likewise.
9752 * unittests/string_view-selftests.c: New file.
9753
9754 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9755
9756 * unittests/basic_string_view/capacity/1.cc: New file.
9757 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
9758 * unittests/basic_string_view/cons/char/1.cc: New file.
9759 * unittests/basic_string_view/cons/char/2.cc: New file.
9760 * unittests/basic_string_view/cons/char/3.cc: New file.
9761 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
9762 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
9763 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
9764 * unittests/basic_string_view/element_access/char/1.cc: New file.
9765 * unittests/basic_string_view/element_access/char/2.cc: New file.
9766 * unittests/basic_string_view/element_access/char/empty.cc: New file.
9767 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
9768 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
9769 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
9770 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
9771 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
9772 * unittests/basic_string_view/include.cc: New file.
9773 * unittests/basic_string_view/inserters/char/1.cc: New file.
9774 * unittests/basic_string_view/inserters/char/2.cc: New file.
9775 * unittests/basic_string_view/inserters/char/3.cc: New file.
9776 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
9777 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
9778 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
9779 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
9780 * unittests/basic_string_view/literals/types.cc: New file.
9781 * unittests/basic_string_view/literals/values.cc: New file.
9782 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
9783 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
9784 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
9785 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
9786 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
9787 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
9788 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
9789 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
9790 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
9791 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
9792 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
9793 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
9794 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
9795 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
9796 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
9797 * unittests/basic_string_view/operations/data/char/1.cc: New file.
9798 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
9799 * unittests/basic_string_view/operations/find/char/1.cc: New file.
9800 * unittests/basic_string_view/operations/find/char/2.cc: New file.
9801 * unittests/basic_string_view/operations/find/char/3.cc: New file.
9802 * unittests/basic_string_view/operations/find/char/4.cc: New file.
9803 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
9804 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
9805 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
9806 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
9807 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
9808 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
9809 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
9810 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
9811 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
9812 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
9813 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
9814 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
9815 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
9816 * unittests/basic_string_view/operators/char/2.cc: New file.
9817 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
9818 * unittests/basic_string_view/range_access/char/1.cc: New file.
9819 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
9820 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
9821 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
9822 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
9823 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
9824 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
9825 * unittests/basic_string_view/requirements/typedefs.cc: New file.
9826 * unittests/basic_string_view/typedefs.cc: New file.
9827 * unittests/basic_string_view/types/1.cc: New file.
9828
9829 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9830
9831 * common/gdb_string_view.h: Remove libstdc++ implementation
9832 details, adjust to gdb reality.
9833 * common/gdb_string_view.tcc: Likewise.
9834 * cli/cli-script.c (struct string_view): Remove.
9835 (user_args) <m_args>: Change element type to gdb::string_view.
9836 (user_args::insert_args): Adjust.
9837
9838 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9839
9840 * common/gdb_string_view.h: New file.
9841 * common/gdb_string_view.tcc: New file.
9842
9843 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9844
9845 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
9846 * configure: Re-generate.
9847
9848 2018-04-09 Pedro Alves <palves@redhat.com>
9849
9850 * gdbarch.sh: Include "observable.h" instead of "observer.h".
9851 (set_target_gdbarch): Call
9852 gdb::observers::architecture_changed.notify instead of
9853 observer_notify_architecture_changed.
9854
9855 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9856
9857 * tracepoint.c (struct current_traceframe_cleanup): Remove.
9858 (do_restore_current_traceframe_cleanup): Remove.
9859 (restore_current_traceframe_cleanup_dtor): Remove.
9860 (make_cleanup_restore_current_traceframe): Remove.
9861 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
9862 New.
9863 * tracepoint.h (struct scoped_restore_current_traceframe): New.
9864 * infrun.c (fetch_inferior_event): Use
9865 scoped_restore_current_traceframe.
9866
9867 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9868
9869 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
9870 Remove.
9871 <n_allocated_type_units>: Remove.
9872 <all_type_units>: Change to std::vector.
9873 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
9874 to std::vector change.
9875 (dwarf2_per_objfile::get_cutu): Likewise.
9876 (dwarf2_per_objfile::get_tu): Likewise.
9877 (create_signatured_type_table_from_index): Likewise.
9878 (create_signatured_type_table_from_debug_names): Likewise.
9879 (dw2_symtab_iter_next): Likewise.
9880 (dw2_print_stats): Likewise.
9881 (dw2_expand_all_symtabs): Likewise.
9882 (dw2_expand_marked_cus): Likewise.
9883 (dw2_debug_names_iterator::next): Likewise.
9884 (dwarf2_initialize_objfile): Likewise.
9885 (add_signatured_type_cu_to_table): Likewise.
9886 (create_all_type_units): Likewise.
9887 (add_type_unit): Likewise.
9888 (struct tu_abbrev_offset): Add constructor.
9889 (build_type_psymtabs_1): Adjust to std::vector change.
9890 (print_tu_stats): Likewise.
9891 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
9892 (write_debug_names): Likewise.
9893
9894 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9895
9896 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
9897 Make an std::vector.
9898 <n_comp_units>: Remove.
9899 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
9900 to std::vector change.
9901 (dwarf2_per_objfile::get_cutu): Likewise.
9902 (dwarf2_per_objfile::get_cu): Likewise.
9903 (create_cus_from_index): Likewise.
9904 (create_addrmap_from_index): Likewise.
9905 (create_addrmap_from_aranges): Likewise.
9906 (dwarf2_read_index): Likewise.
9907 (dw2_find_last_source_symtab): Likewise.
9908 (dw2_map_symtabs_matching_filename): Likewise.
9909 (dw2_symtab_iter_next): Likewise.
9910 (dw2_print_stats): Likewise.
9911 (dw2_expand_all_symtabs): Likewise.
9912 (dw2_expand_symtabs_with_fullname): Likewise.
9913 (dw2_expand_marked_cus): Likewise.
9914 (dw2_map_symbol_filenames): Likewise.
9915 (create_cus_from_debug_names): Likewise.
9916 (dwarf2_read_debug_names): Likewise.
9917 (dw2_debug_names_iterator::next): Likewise.
9918 (dwarf2_initialize_objfile): Likewise.
9919 (set_partial_user): Likewise.
9920 (dwarf2_build_psymtabs_hard): Likewise.
9921 (read_comp_units_from_section): Remove arguments, adjust to
9922 std::vector change.
9923 (create_all_comp_units): Adjust to std::vector and
9924 read_comp_units_from_section changes.
9925 (dwarf2_find_containing_comp_unit): Adjust to std::vector
9926 change.
9927 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
9928 (psyms_seen_size): Likewise.
9929 (write_gdbindex): Likewise.
9930 (write_debug_names): Likewise.
9931
9932 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9933
9934 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
9935 with dwarf2_per_objfile.
9936 (create_cus_from_index): Likewise.
9937 (create_signatured_type_table_from_index): Likewise.
9938 (dwarf2_read_index): Likewise.
9939 (dwarf2_initialize_objfile): Likewise.
9940 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
9941 per_cu rather than get_dwarf2_per_objfile.
9942
9943 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9944
9945 * dwarf2read.h (struct signatured_type): Forward declare.
9946 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
9947 New methods.
9948 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
9949 (dw2_get_cutu): ...this.
9950 (dwarf2_per_objfile::get_cu): Rename from...
9951 (dw2_get_cu): ...this.
9952 (dwarf2_per_objfile::get_tu): New.
9953 (create_addrmap_from_index): Adjust.
9954 (create_addrmap_from_aranges): Adjust.
9955 (dw2_find_last_source_symtab): Adjust.
9956 (dw2_map_symtabs_matching_filename): Adjust.
9957 (dw2_symtab_iter_next): Adjust.
9958 (dw2_print_stats): Adjust.
9959 (dw2_expand_all_symtabs): Adjust.
9960 (dw2_expand_symtabs_with_fullname): Adjust.
9961 (dw2_expand_marked_cus): Adjust.
9962 (dw_expand_symtabs_matching_file_matcher): Adjust.
9963 (dw2_map_symbol_filenames): Adjust.
9964 (dw2_debug_names_iterator::next): Adjust.
9965 (dwarf2_initialize_objfile): Adjust.
9966 (set_partial_user): Adjust.
9967 (dwarf2_build_psymtabs_hard): Adjust.
9968
9969 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9970
9971 * dwarf2read.c (create_signatured_type_table_from_debug_names):
9972 Remove unused variables.
9973 (dw2_map_symtabs_matching_filename): Likewise.
9974 (dwarf2_record_block_ranges): Likewise.
9975 (dwarf2_read_addr_index): Likewise.
9976 (follow_die_offset): Likewise.
9977
9978 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9979
9980 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
9981 to symbol_file_add_main.
9982
9983 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9984
9985 PR mi/22299
9986 * mi/mi-console.c (do_fputc_async_safe): New.
9987 (mi_console_file::write_async_safe): New.
9988 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
9989 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
9990 New.
9991 * ui-file.c (ui_file::putstrn): Adjust call to
9992 fputstrn_unfiltered.
9993 * utils.c (printchar): Replace do_fputs and do_fprintf
9994 parameters by do_fputc.
9995 (fputstr_filtered): Adjust call to printchar.
9996 (fputstr_unfiltered): Likewise.
9997 (fputstrn_filtered): Likewise.
9998 (fputstrn_unfiltered): Add do_fputc parameter, pass to
9999 printchar.
10000 * utils.h (do_fputc_ftype): New typedef.
10001 (fputstrn_unfiltered): Add do_fputc parameter.
10002
10003 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10004
10005 * regformats/i386/i386-avx.dat: Remove.
10006
10007 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10008
10009 PR gdb/22979
10010 * amd64-tdep.c (amd64_none_init_abi): New function.
10011 (amd64_x32_none_init_abi): New function.
10012 (_initialize_amd64_tdep): Register handlers for x86-64 and
10013 x64_32 with GDB_OSABI_NONE.
10014 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
10015 GDB_OSABI_NONE osabi.
10016
10017 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10018
10019 PR gdb/22980
10020 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
10021 GDB_OSABI_NONE.
10022 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
10023 * osabi.c (gdb_osabi_names): Add "unknown" entry.
10024
10025 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10026
10027 * common/byte-vector.h (char_vector): New type.
10028 * target.h (target_read_alloc): Return
10029 gdb::optional<byte_vector>.
10030 (target_read_stralloc): Return gdb::optional<char_vector>.
10031 (target_get_osdata): Return gdb::optional<char_vector>.
10032 * target.c (target_read_alloc_1): Templatize. Replacement
10033 manual memory management with vector.
10034 (target_read_alloc): Change return type, adjust.
10035 (target_read_stralloc): Change return type, adjust.
10036 (target_get_osdata): Change return type, adjust.
10037 * auxv.c (struct auxv_info) <length>: Remove.
10038 <data>: Change type to gdb::optional<byte_vector>.
10039 (auxv_inferior_data_cleanup): Free auxv_info with delete.
10040 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
10041 (target_auxv_search): Adjust.
10042 (fprint_target_auxv): Adjust.
10043 * avr-tdep.c (avr_io_reg_read_command): Adjust.
10044 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
10045 (linux_make_corefile_notes): Adjust.
10046 * osdata.c (get_osdata): Adjust.
10047 * remote.c (remote_get_threads_with_qxfer): Adjust.
10048 (remote_memory_map): Adjust.
10049 (remote_traceframe_info): Adjust.
10050 (btrace_read_config): Adjust.
10051 (remote_read_btrace): Adjust.
10052 (remote_pid_to_exec_file): Adjust.
10053 * solib-aix.c (solib_aix_get_library_list): Adjust.
10054 * solib-dsbt.c (decode_loadmap): Don't free buf.
10055 (dsbt_get_initial_loadmaps): Adjust.
10056 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
10057 * solib-target.c (solib_target_current_sos): Adjust.
10058 * tracepoint.c (sdata_make_value): Adjust.
10059 * xml-support.c (xinclude_start_include): Adjust.
10060 (xml_fetch_content_from_file): Adjust.
10061 * xml-support.h (xml_fetch_another): Change return type.
10062 (xml_fetch_content_from_file): Change return type.
10063 * xml-syscall.c (xml_init_syscalls_info): Adjust.
10064 * xml-tdesc.c (file_read_description_xml): Adjust.
10065 (fetch_available_features_from_target): Change return type.
10066 (target_fetch_description_xml): Adjust.
10067 (target_read_description_xml): Adjust.
10068
10069 2018-04-06 Tom Tromey <tom@tromey.com>
10070
10071 * value.c (~value): Update.
10072 (struct value) <contents>: Now unique_xmalloc_ptr.
10073 (value_contents_bits_eq, allocate_value_contents)
10074 (value_contents_raw, value_contents_all_raw)
10075 (value_contents_for_printing, value_contents_for_printing_const)
10076 (set_value_enclosing_type): Update.
10077
10078 2018-04-06 Tom Tromey <tom@tromey.com>
10079
10080 * value.c (range_s): Remove typedef, VEC.
10081 (struct range): Add operator<.
10082 (range_lessthan): Remove.
10083 (ranges_contain): Change type.
10084 (~value): Update.
10085 (struct value) <unavailable, optimized_out>: Now std::vector.
10086 (value_entirely_available)
10087 (value_entirely_covered_by_range_vector)
10088 (value_entirely_unavailable, value_entirely_optimized_out):
10089 Update.
10090 (insert_into_bit_range_vector): Change argument type.
10091 (find_first_range_overlap): Likewise.
10092 (struct ranges_and_idx, value_contents_bits_eq)
10093 (require_not_optimized_out, require_available): Update.
10094 (ranges_copy_adjusted): Change argument types.
10095 (value_optimized_out, value_copy, value_fetch_lazy): Update.
10096
10097 2018-04-06 Tom Tromey <tom@tromey.com>
10098
10099 * value.c (~value): Update.
10100 (struct value) <parent>: Now a value_ref_ptr.
10101 (value_parent, set_value_parent, value_address, value_copy):
10102 Update.
10103
10104 2018-04-06 Tom Tromey <tom@tromey.com>
10105
10106 * value.c (struct value): Add constructor, destructor, and member
10107 initializers.
10108 (allocate_value_lazy, value_decref): Update.
10109
10110 2018-04-06 Tom Tromey <tom@tromey.com>
10111
10112 * value.c (struct value) <released, next>: Remove.
10113 (all_values): Now a std::vector.
10114 (allocate_value_lazy): Update.
10115 (value_next): Remove.
10116 (value_mark, value_free_to_mark, release_value)
10117 (value_release_to_mark): Update.
10118
10119 2018-04-06 Tom Tromey <tom@tromey.com>
10120
10121 * value.h (fetch_subexp_value, value_release_to_mark): Update.
10122 (free_value_chain): Remove.
10123 * value.c (free_value_chain): Remove.
10124 (value_release_to_mark): Return a std::vector.
10125 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
10126 std::vector.
10127 (check_condition): Update.
10128 * eval.c (fetch_subexp_value): Change "val_chain" to a
10129 std::vector.
10130 * breakpoint.c (update_watchpoint): Update.
10131 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
10132
10133 2018-04-06 Tom Tromey <tom@tromey.com>
10134
10135 * value.h (free_all_values): Remove.
10136 * value.c (free_all_values): Remove.
10137
10138 2018-04-06 Tom Tromey <tom@tromey.com>
10139
10140 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
10141 (value_history_chain, value_history_count): Remove.
10142 (value_history): New global.
10143 (record_latest_value, access_value_history, show_values)
10144 (preserve_values): Update.
10145
10146 2018-04-06 Tom Tromey <tom@tromey.com>
10147
10148 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
10149 * varobj.c (varobj_set_display_format, varobj_set_value)
10150 (install_default_visualizer, construct_visualizer)
10151 (install_new_value, ~varobj, varobj_get_value_type)
10152 (my_value_of_variable, varobj_editable_p): Update.
10153 * c-varobj.c (c_describe_child, c_value_of_variable)
10154 (cplus_number_of_children, cplus_describe_child): Update.
10155 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
10156 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
10157 (ada_value_of_variable, ada_value_is_changeable_p): Update.
10158
10159 2018-04-06 Tom Tromey <tom@tromey.com>
10160
10161 * printcmd.c (last_examine_address): Change type to
10162 value_ref_ptr.
10163 (do_examine, x_command): Update.
10164
10165 2018-04-06 Tom Tromey <tom@tromey.com>
10166
10167 * value.c (release_value): Update.
10168 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
10169 (struct bpstats) <val>: Now a value_ref_ptr.
10170 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
10171 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
10172 (~watchpoint, print_it_watchpoint, watch_command_1)
10173 (invalidate_bp_value_on_memory_change): Update.
10174
10175 2018-04-06 Tom Tromey <tom@tromey.com>
10176
10177 * varobj.c (varobj_clear_saved_item)
10178 (update_dynamic_varobj_children, install_new_value, ~varobj):
10179 Update.
10180 * value.h (value_incref): Move declaration earlier.
10181 (value_decref): Rename from value_free.
10182 (struct value_ref_policy): New.
10183 (value_ref_ptr): New typedef.
10184 (struct value_deleter): Remove.
10185 (gdb_value_up): Remove typedef.
10186 (release_value): Change return type.
10187 (release_value_or_incref): Remove.
10188 * value.c (set_value_parent): Update.
10189 (value_incref): Change return type.
10190 (value_decref): Rename from value_free.
10191 (value_free_to_mark, free_all_values, free_value_chain): Update.
10192 (release_value): Return value_ref_ptr.
10193 (release_value_or_incref): Remove.
10194 (record_latest_value, set_internalvar, clear_internalvar):
10195 Update.
10196 * stack.c (info_frame_command): Don't call value_free.
10197 * python/py-value.c (valpy_dealloc, valpy_new)
10198 (value_to_value_object): Update.
10199 * printcmd.c (do_examine): Update.
10200 * opencl-lang.c (lval_func_free_closure): Update.
10201 * mi/mi-main.c (register_changed_p): Don't call value_free.
10202 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
10203 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
10204 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
10205 value_free.
10206 * guile/scm-value.c (vlscm_free_value_smob)
10207 (vlscm_scm_from_value): Update.
10208 * frame.c (frame_register_unwind, frame_unwind_register_signed)
10209 (frame_unwind_register_unsigned, get_frame_register_bytes)
10210 (put_frame_register_bytes): Don't call value_free.
10211 * findvar.c (address_from_register): Don't call value_free.
10212 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
10213 * dwarf2loc.c (entry_data_value_free_closure)
10214 (value_of_dwarf_reg_entry, free_pieced_value_closure)
10215 (dwarf2_evaluate_loc_desc_full): Update.
10216 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
10217 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
10218 (~watchpoint, watch_command_1)
10219 (invalidate_bp_value_on_memory_change): Update.
10220 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
10221
10222 2018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
10223
10224 PR gdb/23022
10225 * warning.m4: Add -Wno-error=deprecated-register.
10226 * configure: Re-generate.
10227
10228 2018-04-05 Tom Tromey <tom@tromey.com>
10229
10230 * linespec.h: Remove include of "vec.h".
10231
10232 2018-04-05 Tom Tromey <tom@tromey.com>
10233
10234 * linespec.c (typep): Remove typedef.
10235 (find_methods, find_superclass_methods): Take a std::vector.
10236 (find_method): Use std::vector.
10237
10238 2018-04-05 Tom Tromey <tom@tromey.com>
10239
10240 * utils.c (compare_strings): Remove.
10241 * utils.h (compare_strings): Remove.
10242 * objc-lang.h (find_imps): Update.
10243 * objc-lang.c (find_methods): Take a std::vector.
10244 (uniquify_strings, find_imps): Likewise.
10245 * linespec.c (find_methods): Take a std::vector.
10246 (decode_objc): Use std::vector.
10247 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
10248 a std::vector.
10249 (find_method, find_function_symbols): Use std::vector.
10250
10251 2018-04-05 Tom Tromey <tom@tromey.com>
10252
10253 * completer.c (completion_tracker::completion_tracker): Remove
10254 cast.
10255 (completion_tracker::discard_completions): Likewise.
10256 * breakpoint.c (ambiguous_names_p): Remove cast.
10257 * ada-lang.c (_initialize_ada_language): Remove cast.
10258 * utils.h (streq): Update.
10259 (streq_hash): Add new declaration.
10260 * utils.c (streq): Return bool.
10261 (streq_hash): New function.
10262
10263 2018-04-05 Tom Tromey <tom@tromey.com>
10264
10265 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
10266 Remove a string copy.
10267
10268 2018-04-05 Tom Tromey <tom@tromey.com>
10269
10270 * linespec.c (filter_results): Use std::vector.
10271 (decode_line_2, decode_line_full): Update.
10272
10273 2018-04-05 Tom Tromey <tom@tromey.com>
10274
10275 * linespec.c (canonical_to_fullform): Return std::string.
10276 (filter_results): Update.
10277 (struct decode_line_2_item): Add constructor.
10278 <fullform, displayform>: Now std::string.
10279 (decode_line_2_compare_items): Now a std::sort comparator.
10280 (decode_line_2): Update.
10281
10282 2018-04-05 Tom Tromey <tom@tromey.com>
10283
10284 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
10285 (unexpected_linespec_error): Update.
10286 (linespec_parse_basic, parse_linespec): Update.
10287
10288 2018-04-05 Tom Tromey <tom@tromey.com>
10289
10290 * linespec.c (linespec_parse_basic): Reindent.
10291
10292 2018-04-05 Tom Tromey <tom@tromey.com>
10293
10294 * minsyms.h (iterate_over_minimal_symbols): Update.
10295 * minsyms.c (iterate_over_minimal_symbols): Take a
10296 gdb::function_view.
10297 * linespec.c (struct collect_minsyms): Remove.
10298 (compare_msyms): Now a std::sort comparator.
10299 (add_minsym): Add parameters.
10300 (search_minsyms_for_name): Update. Use std::vector.
10301
10302 2018-04-03 Tom Tromey <tom@tromey.com>
10303
10304 * mipsread.c (read_alphacoff_dynamic_symtab): Use
10305 gdb::byte_vector.
10306
10307 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
10308
10309 * MAINTAINERS (Write After Approval): Add Weimin Pan.
10310
10311 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
10312
10313 PR gdb/16959
10314 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
10315 printing static type.
10316
10317 2018-04-01 Tom Tromey <tom@tromey.com>
10318
10319 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
10320 (rs6000_xfer_shared_libraries): Update.
10321
10322 2018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10323
10324 * common/gdb_vecs.h (char_ptr): Remove.
10325 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
10326
10327 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
10328
10329 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
10330 with std::vector.
10331 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
10332
10333 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
10334
10335 * tracepoint.h (struct uploaded_tp): Initialize fields.
10336 <actions, step_actions, cmd_strings>: Change type to
10337 std::vector<char *>.
10338 * tracepoint.c (get_uploaded_tp): Allocate with new.
10339 (free_uploaded_tps): Free with delete.
10340 (parse_tracepoint_definition): Adjust to std::vector change.
10341 * breakpoint.c (read_uploaded_action): Likewise.
10342 (create_tracepoint_from_upload): Likewise.
10343 * ctf.c (ctf_write_uploaded_tp): Likewise.
10344 (SET_ARRAY_FIELD): Likewise.
10345 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
10346
10347 2018-03-30 Tom Tromey <tom@tromey.com>
10348
10349 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
10350 std::unique_ptr.
10351 (svr4_keep_data_in_core): Update.
10352 (svr4_read_so_list): Update.
10353
10354 2018-03-30 Tom Tromey <tom@tromey.com>
10355
10356 * windows-nat.c (handle_output_debug_string, handle_exception):
10357 Update.
10358 * target.h (target_read_string): Update.
10359 * target.c (target_read_string): Change "string" to
10360 unique_xmalloc_ptr.
10361 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
10362 Update.
10363 * solib-frv.c (frv_current_sos): Update.
10364 * solib-dsbt.c (dsbt_current_sos): Update.
10365 * solib-darwin.c (darwin_current_sos): Update.
10366 * linux-thread-db.c (inferior_has_bug): Update.
10367 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
10368 Update. Remove alloca.
10369 * ada-lang.c (ada_main_name): Update.
10370
10371 2018-03-30 Tom Tromey <tom@tromey.com>
10372
10373 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
10374 (struct dwo_file_deleter): New.
10375 (dwo_file_up): New typedef.
10376 (open_and_init_dwo_file): Use dwo_file_up.
10377 (free_dwo_file_cleanup): Remove.
10378
10379 2018-03-30 Tom Tromey <tom@tromey.com>
10380
10381 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
10382 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
10383
10384 2018-03-30 Tom Tromey <tom@tromey.com>
10385
10386 * dwarf2read.c (class free_cached_comp_units): New class.
10387 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
10388 (free_cached_comp_units): Remove function.
10389
10390 2018-03-30 Tom Tromey <tom@tromey.com>
10391
10392 * utils.h (make_cleanup_unpush_target): Remove.
10393 * inf-ptrace.c (struct target_unpusher): New.
10394 (target_unpush_up) New typedef.
10395 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
10396 target_unpush_up.
10397 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
10398
10399 2018-03-27 Tom Tromey <tom@tromey.com>
10400
10401 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
10402
10403 2018-03-27 Pedro Alves <palves@redhat.com>
10404 Tom Tromey <tom@tromey.com>
10405
10406 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
10407 destructor. Now a class.
10408 (gdb_readline_wrapper_cleanup): Remove function.
10409 (gdb_readline_wrapper): Remove cleanups.
10410
10411 2018-03-27 Tom Tromey <tom@tromey.com>
10412
10413 * typeprint.h (struct type_print_options) <local_typedefs,
10414 global_typedefs>: Remove "struct" keyword.
10415 (class typedef_hash_table): New class.
10416 (recursively_update_typedef_hash, add_template_parameters)
10417 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
10418 (find_typedef_in_hash): Don't declare.
10419 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
10420 (typedef_hash_table::recursively_update): Rename from
10421 recursively_update_typedef_hash. Now a member.
10422 (typedef_hash_table::add_template_parameters): Rename from
10423 add_template_parameters. Now a member.
10424 (typedef_hash_table::typedef_hash_table): Now a constructor;
10425 rename from create_typedef_hash.
10426 (typedef_hash_table::~typedef_hash_table): Now a destructor;
10427 rename from free_typedef_hash.
10428 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
10429 (do_free_global_table): Remove.
10430 (typedef_hash_table::typedef_hash_table): New constructor; renamed
10431 from copy_type_recursive.
10432 (create_global_typedef_table): Remove.
10433 (typedef_hash_table::find_global_typedef): Now a member of
10434 typedef_hash_table.
10435 (typedef_hash_table::find_typedef): Rename from
10436 find_typedef_in_hash; now a member.
10437 (whatis_exp): Update.
10438 * extension.h (struct ext_lang_type_printers): Add constructor and
10439 destructor.
10440 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
10441 declare.
10442 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
10443 Now a constructor; rename from start_ext_lang_type_printers.
10444 (ext_lang_type_printers): Now a destructor; rename from
10445 free_ext_lang_type_printers.
10446 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
10447 Update.
10448 (c_type_print_base_struct_union): Update. Remove cleanups.
10449
10450 2018-03-27 Tom Tromey <tom@tromey.com>
10451
10452 * dwarf-index-write.c: Include <cmath>.
10453
10454 2018-03-27 Joel Brobecker <brobecker@adacore.com>
10455
10456 * NEWS: Add entry describing new "set|show varsize-limit" command.
10457 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
10458 command.
10459 * printcmd.c (_initialize_printcmd): Add "set var" alias of
10460 "set variable".
10461
10462 2018-03-27 Simon Marchi <simon.marchi@ericsson.com>
10463
10464 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
10465 dwarf-index-write.c
10466 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
10467 * dwarf-index-common.c: New file.
10468 * dwarf-index-common.h: New file.
10469 * dwarf-index-write.c: New file.
10470 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
10471 (struct dwarf2_section_info): Move from here.
10472 (dwarf2_section_info_def): Likewise.
10473 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
10474 (offset_type): Likewise.
10475 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
10476 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
10477 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
10478 (byte_swap): Likewise.
10479 (MAYBE_SWAP): Likewise.
10480 (dwarf2_per_cu_ptr): Likewise.
10481 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
10482 (struct tu_stats): Likewise.
10483 (struct dwarf2_per_objfile): Likewise.
10484 (struct dwarf2_per_cu_data): Likewise.
10485 (struct signatured_type): Likewise.
10486 (sig_type_ptr): Likewise.
10487 (DEF_VEC_P (sig_type_ptr)): Likewise.
10488 (INDEX4_SUFFIX): Likewise.
10489 (INDEX5_SUFFIX): Likewise.
10490 (DEBUG_STR_SUFFIX): Likewise.
10491 (dwarf2_read_section): Make non-static.
10492 (mapped_index_string_hash): Move from here.
10493 (dwarf5_djb_hash): Likewise.
10494 (file_write): Likewise.
10495 (class data_buf): Likewise.
10496 (struct symtab_index_entry): Likewise.
10497 (struct mapped_symtab): Likewise.
10498 (find_slot): Likewise.
10499 (hash_expand): Likewise.
10500 (add_index_entry): Likewise.
10501 (uniquify_cu_indices): Likewise.
10502 (class c_str_view): Likewise.
10503 (class c_str_view_hasher): Likewise.
10504 (class vector_hasher): Likewise.
10505 (write_hash_table): Likewise.
10506 (psym_index_map): Likewise.
10507 (struct addrmap_index_data): Likewise.
10508 (add_address_entry): Likewise.
10509 (add_address_entry_worker): Likewise.
10510 (write_address_map): Likewise.
10511 (symbol_kind): Likewise.
10512 (write_psymbols): Likewise.
10513 (struct signatured_type_index_data): Likewise.
10514 (write_one_signatured_type): Likewise.
10515 (recursively_count_psymbols): Likewise.
10516 (recursively_write_psymbols): Likewise.
10517 (class debug_names): Likewise.
10518 (check_dwarf64_offsets): Likewise.
10519 (psyms_seen_size): Likewise.
10520 (write_gdbindex): Likewise.
10521 (write_debug_names): Likewise.
10522 (assert_file_size): Likewise.
10523 (write_psymtabs_to_index): Likewise.
10524 (save_gdb_index_command): Likewise.
10525 (_initialize_dwarf2_read): Don't register the "save gdb-index"
10526 command.
10527 * dwarf2read.h: New file.
10528
10529 2018-03-27 Joel Brobecker <brobecker@adacore.com>
10530
10531 PR gdb/22670
10532 * dwarf2read.c (dwarf2_physname): Do not return the demangled
10533 symbol name if the CU's language stores symbol names in linkage
10534 format.
10535 * language.h (struct language_defn)
10536 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
10537 all instances of this struct.
10538
10539 2018-03-26 Tom Tromey <tom@tromey.com>
10540
10541 * stack.c (backtrace_command_1): Remove verbose code.
10542
10543 2018-03-26 Tom Tromey <tom@tromey.com>
10544
10545 * python/py-framefilter.c (py_print_type): Don't catch
10546 exceptions. Return void.
10547 (py_print_value): Likewise.
10548 (py_print_single_arg): Likewise.
10549 (enumerate_args): Don't catch exceptions.
10550 (py_print_args): Likewise.
10551 (py_print_frame): Likewise.
10552 (gdbpy_apply_frame_filter): Catch exceptions here.
10553
10554 2018-03-26 Tom Tromey <tom@tromey.com>
10555
10556 * stack.c (_initialize_stack): Remove trailing newlines from help
10557 text. Add "Usage" line to "backtrace" help.
10558
10559 2018-03-26 Tom Tromey <tom@tromey.com>
10560
10561 PR python/16486:
10562 * python/py-framefilter.c (py_print_args): Call wrap_hint.
10563
10564 2018-03-26 Tom Tromey <tom@tromey.com>
10565
10566 * python/py-framefilter.c (py_print_single_arg): Return
10567 EXT_LANG_BT_ERROR from catch.
10568
10569 2018-03-26 Tom Tromey <tom@tromey.com>
10570
10571 PR backtrace/15584:
10572 * stack.c (backtrace_command_1): Move some code into no-filters
10573 "if".
10574
10575 2018-03-26 Tom Tromey <tom@tromey.com>
10576
10577 * python/py-framefilter.c (throw_quit_or_print_exception): New
10578 function.
10579 (gdbpy_apply_frame_filter): Use it.
10580
10581 2018-03-26 Tom Tromey <tom@tromey.com>
10582
10583 PR cli/17716:
10584 * python/py-framefilter.c (py_print_type, py_print_value)
10585 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
10586 RETURN_MASK_ERROR.
10587
10588 2018-03-26 Tom Tromey <tom@tromey.com>
10589
10590 * python/py-framefilter.c (enumerate_args): Use
10591 gdb::unique_xmalloc_ptr.
10592
10593 2018-03-26 Tom Tromey <tom@tromey.com>
10594
10595 * python/py-framefilter.c (py_print_frame): Return
10596 EXT_LANG_BT_OK.
10597 (gdbpy_apply_frame_filter): Update comment.
10598 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
10599 Remove.
10600 <EXT_LANG_BT_NO_FILTERS>: Change value.
10601
10602 2018-03-26 Tom Tromey <tom@tromey.com>
10603
10604 PR backtrace/15582:
10605 * stack.c (backtrace_command): Parse "hide" argument.
10606 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
10607 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
10608 constant.
10609
10610 2018-03-26 Tom Tromey <tom@tromey.com>
10611
10612 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
10613 add "flags".
10614 (backtrace_command): Remove "fulltrace", add "flags".
10615
10616 2018-03-26 Tom Tromey <tom@tromey.com>
10617
10618 * stack.c (backtrace_command): Rewrite command line parsing.
10619
10620 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
10621
10622 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
10623
10624 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
10625
10626 * filename-seen-cache.h: Add include guard.
10627
10628 2018-03-26 Keith Seitz <keiths@redhat.com>
10629
10630 * symfile.c (place_section): Remove "struct" from section_addr_info
10631 in comment.
10632 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
10633 "struct" keyword from section_addr_info.
10634
10635 2018-03-26 Alan Hayward <alan.hayward@arm.com>
10636
10637 * regformats/regdef.h (reg): Add constructors.
10638
10639 2018-03-25 Pedro Alves <palves@redhat.com>
10640
10641 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
10642 if then/else bodies in var_func_name extraction.
10643
10644 2018-03-23 Weimin Pan <weimin.pan@oracle.com>
10645
10646 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
10647 lookup_minimal_symbol() to find symbol entry.
10648 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
10649
10650 2018-03-23 Keith Seitz <keiths@redhat.com>
10651
10652 PR c++/22968
10653 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
10654 nested type definitions for C++, too.
10655
10656 2018-03-23 Tom Tromey <tom@tromey.com>
10657
10658 * machoread.c (struct oso_el): Add a constructor. Don't define as
10659 a typedef.
10660 (macho_register_oso): Remove.
10661 (macho_symtab_read): Take a std::vector.
10662 (oso_el_compare_name): Now a std::sort comparator.
10663 (macho_symfile_read_all_oso): Take a std::vector.
10664 (macho_symfile_read): Use std::vector. Remove cleanups.
10665
10666 2018-03-22 Tom Tromey <tom@tromey.com>
10667
10668 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
10669 (record_full_goto_bookmark): Use std::string.
10670
10671 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10672
10673 PR tdep/18295
10674 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
10675 a single mask.
10676
10677 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10678
10679 * rs6000-tdep.c (store_insn_p): New function.
10680 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
10681 and cr_reg to their unshifted values. Use store_insn_p to
10682 match LR saves using either R1 or fdata->alloca_reg. Use
10683 store_insn_p to match CR saves. Set alloca_reg_offset
10684 when alloca_reg and framep are set. Remove lr_reg shift
10685 when assigning to fdata->lr_register.
10686
10687 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
10688
10689 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
10690 command line args instead of emitting a warning.
10691
10692 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
10693
10694 * tracepoint.h (struct static_tracepoint_marker): Initialize
10695 fields, define default constructor, move constructor and move
10696 assignment, disable the rest.
10697 <str_id, extra>: Make std::string.
10698 (release_static_tracepoint_marker): Remove.
10699 (free_current_marker): Remove.
10700 * tracepoint.c (free_current_marker): Remove.
10701 (parse_static_tracepoint_marker_definition): Adjust to
10702 std::string, use new hex2str overload.
10703 (release_static_tracepoint_marker): Remove.
10704 (print_one_static_tracepoint_marker): Get marker by reference
10705 and adjust to std::string.
10706 (info_static_tracepoint_markers_command): Adjust to std::vector
10707 changes
10708 * target.h (static_tracepoint_marker_p): Remove typedef.
10709 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
10710 (struct target_ops) <to_static_tracepoint_marker_at>: Return
10711 bool.
10712 <to_static_tracepoint_markers_by_strid>: Return std::vector.
10713 * target-debug.h
10714 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
10715 (target_debug_print_std_vector_static_tracepoint_marker): New.
10716 (target_debug_print_struct_static_tracepoint_marker_p): Rename
10717 to...
10718 (target_debug_print_static_tracepoint_marker_p): ... this.
10719 * target-delegates.c: Re-generate.
10720 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
10721 Make std::string.
10722 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
10723 (decode_static_tracepoint_spec): Adjust to std::vector.
10724 (tracepoint_print_one_detail): Adjust to std::string.
10725 (strace_marker_decode_location): Adjust to std::string.
10726 (update_static_tracepoint): Adjust to std::string, remove call
10727 to release_static_tracepoint_marker.
10728 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
10729 Adjust to std::vector.
10730 * remote.c (remote_static_tracepoint_marker_at): Return bool.
10731 (remote_static_tracepoint_markers_by_strid): Adjust to
10732 std::vector.
10733 * common/rsp-low.h (hex2str): New overload with explicit count
10734 of bytes.
10735 * common/rsp-low.c (hex2str): New overload with explicit count
10736 of bytes.
10737 * unittests/rsp-low-selftests.c (test_hex2str): New function.
10738 (_initialize_rsp_low_selftests): Add test_hex2str test.
10739 * unittests/tracepoint-selftests.c
10740 (test_parse_static_tracepoint_marker_definition): Adjust to
10741 std::string.
10742
10743 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
10744
10745 * tracepoint.c (parse_static_tracepoint_marker_definition):
10746 Consider case where the definition is followed by more
10747 definitions.
10748 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10749 tracepoint-selftests.c.
10750 * unittests/tracepoint-selftests.c: New.
10751
10752 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10753
10754 * MAINTAINERS (Write After Approval): Add Pedro Franco de
10755 Carvalho.
10756
10757 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
10758
10759 * symtab.c (find_pc_sect_line): fixed indentation.
10760
10761 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
10762
10763 * symtab.c (find_pc_sect_line): now uses binary search.
10764
10765 2018-03-19 Tom Tromey <tom@tromey.com>
10766
10767 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
10768 "IDENT" production.
10769
10770 2018-03-19 Pedro Alves <palves@redhat.com>
10771 Tom Tromey <tom@tromey.com>
10772
10773 * unittests/observable-selftests.c: New file.
10774 * common/observable.h: New file.
10775 * observable.h: New file.
10776 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
10777 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
10778 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
10779 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
10780 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
10781 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
10782 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
10783 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
10784 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
10785 python/py-breakpoint.c, python/py-finishbreakpoint.c,
10786 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
10787 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
10788 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
10789 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
10790 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
10791 tui/tui-interp.c, valops.c: Update all users.
10792 * tui/tui-hooks.c (tui_bp_created_observer)
10793 (tui_bp_deleted_observer, tui_bp_modified_observer)
10794 (tui_inferior_exit_observer, tui_before_prompt_observer)
10795 (tui_normal_stop_observer, tui_register_changed_observer):
10796 Remove.
10797 (tui_observers_token): New global.
10798 (attach_or_detach, tui_attach_detach_observers): New functions.
10799 (tui_install_hooks, tui_remove_hooks): Use
10800 tui_attach_detach_observers.
10801 * record-btrace.c (record_btrace_thread_observer): Remove.
10802 (record_btrace_thread_observer_token): New global.
10803 * observer.sh: Remove.
10804 * observer.c: Rename to observable.c.
10805 * observable.c (namespace gdb_observers): Define new objects.
10806 (observer_debug): Move into gdb_observers namespace.
10807 (struct observer, struct observer_list, xalloc_observer_list_node)
10808 (xfree_observer_list_node, generic_observer_attach)
10809 (generic_observer_detach, generic_observer_notify): Remove.
10810 (_initialize_observer): Update.
10811 Don't include observer.inc.
10812 * Makefile.in (generated_files): Remove observer.h, observer.inc.
10813 (clean mostlyclean): Likewise.
10814 (observer.h, observer.inc): Remove targets.
10815 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
10816 (COMMON_SFILES): Use observable.c, not observer.c.
10817 * .gitignore: Remove observer.h.
10818
10819 2018-03-18 Tom Tromey <tom@tromey.com>
10820
10821 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
10822 gdb::def_vector.
10823 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
10824
10825 2018-03-17 Tom Tromey <tom@tromey.com>
10826
10827 * auto-load.c (auto_load_objfile_script_1): Use std::string.
10828
10829 2018-03-17 Tom Tromey <tom@tromey.com>
10830
10831 * target.c (class scoped_target_fd): New.
10832 (target_fileio_close_cleanup): Remove.
10833 (target_fileio_read_alloc_1): Use scoped_target_fd.
10834
10835 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
10836
10837 * silent-rules.mk: New.
10838 * Makefile.in: Include silent-rules.mk
10839 (srcdir, VPATH, top_srcdir): Move up.
10840 (COMPILE): Add ECHO_CXX.
10841 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
10842 (init.c): Add ECHO_INIT_C.
10843 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
10844 (version.c): Add ECHO_GEN.
10845 (printcmd.o): Add ECHO_CXX.
10846 (target-float.o): Add ECHO_CXX.
10847 (ada-exp.o): Add ECHO_CXX.
10848 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
10849 (insight$(EXEEXT)): Add ECHO_CXXLD.
10850 * gnulib/configure.ac: Add AM_SILENT_RULES.
10851 * gnulib/aclocal.m4: Re-generate.
10852 * gnulib/configure: Re-generate.
10853 * gnulib/import/Makefile.in: Re-generate.
10854
10855 2018-03-16 Tom Tromey <tom@tromey.com>
10856
10857 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
10858 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
10859 * utils.c (do_free_section_addr_info)
10860 (make_cleanup_free_section_addr_info): Remove.
10861 * symfile.h (struct other_sections): Add constructor.
10862 (struct section_addr_info): Remove.
10863 (section_addr_info): New typedef.
10864 (struct sym_fns) <sym_offsets>: Change type of parameter.
10865 (build_section_addr_info_from_objfile)
10866 (relative_addr_info_to_section_offsets, addr_info_make_relative)
10867 (default_symfile_offsets, symbol_file_add)
10868 (symbol_file_add_from_bfd)
10869 (build_section_addr_info_from_section_table): Update.
10870 (alloc_section_addr_info, free_section_addr_info): Don't declare.
10871 * symfile.c (alloc_section_addr_info): Remove.
10872 (build_section_addr_info_from_section_table): Change return type.
10873 Update.
10874 (build_section_addr_info_from_bfd)
10875 (build_section_addr_info_from_objfile): Likewise.
10876 (free_section_addr_info): Remove.
10877 (relative_addr_info_to_section_offsets): Change type of "addrs".
10878 (addrs_section_compar): Now a std::sort comparator.
10879 (addrs_section_sort): Change return type.
10880 (addr_info_make_relative): Change type of "addrs". Update.
10881 (default_symfile_offsets, syms_from_objfile_1)
10882 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
10883 (symbol_file_add_separate): Update.
10884 (symbol_file_add): Change type of "addrs". Update.
10885 (add_symbol_file_command): Update. Remove cleanups.
10886 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
10887 cleanups.
10888 * symfile-debug.c (debug_sym_offsets): Change type of "info".
10889 * solib.c (solib_read_symbols): Update.
10890 * objfiles.c (objfile_relocate): Update. Remove cleanups.
10891 * machoread.c (macho_symfile_offsets): Update.
10892 * jit.c (jit_bfd_try_read_symtab): Update.
10893
10894 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
10895
10896 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10897 unittests/utils-selftests.c.
10898 * unittests/utils-selftests.c: New file.
10899
10900 2018-03-14 Tom Tromey <tom@tromey.com>
10901
10902 PR cli/14977:
10903 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
10904 for NULL.
10905
10906 2018-03-14 Tom Tromey <tom@tromey.com>
10907
10908 PR cli/19918:
10909 * printcmd.c (printf_pointer): Allow "-" in format.
10910
10911 2018-03-14 Tom Tromey <tom@tromey.com>
10912
10913 * printcmd.c (_initialize_printcmd): Add usage to printf.
10914
10915 2018-03-14 Yao Qi <qiyao@sourceware.org>
10916
10917 * MAINTAINERS: Update my email address.
10918
10919 2018-03-13 Tom Tromey <tom@tromey.com>
10920
10921 * machoread.c (macho_check_dsym): Change filenamep to a
10922 std::string*.
10923 (macho_symfile_read): Update.
10924 * symfile.c (load_command): Use std::string.
10925
10926 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
10927
10928 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
10929 to error message string.
10930 (riscv_register_name): Use xsnprintf instead of sprintf.
10931 (riscv_insn::fetch_instruction): Use gdb_assert instead of
10932 internal_error.
10933 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
10934 error.
10935 (riscv_push_dummy_call): Likewise.
10936
10937 2018-03-12 Tom Tromey <tom@tromey.com>
10938
10939 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
10940 Use gdb::byte_vector.
10941 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
10942
10943 2018-03-12 Yao Qi <yao.qi@linaro.org>
10944
10945 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
10946 parameter type to readable_regcache.
10947 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
10948 the declaration.
10949
10950 2018-03-11 Tom Tromey <tom@tromey.com>
10951
10952 * dwarf2read.c (struct nextfield): Add initializers.
10953 (struct nextfnfield): Remove.
10954 (struct fnfieldlist): Add initializers. Remove "length" and
10955 "head", use std::vector.
10956 (struct decl_field_list): Remove.
10957 (struct field_info): Add initializers.
10958 <fields, baseclasses>: Now std::vector.
10959 <nbaseclasses, nfnfields, typedef_field_list_count,
10960 nested_types_list_count>: Remove.
10961 (dwarf2_add_field, dwarf2_add_type_defn)
10962 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
10963 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
10964 (process_structure_scope): Update.
10965
10966 2018-03-11 Tom Tromey <tom@tromey.com>
10967
10968 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
10969 for use by std::sort.
10970 (build_type_psymtabs_1): Use std::vector.
10971
10972 2018-03-09 Eli Zaretskii <eliz@gnu.org>
10973
10974 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
10975 and LIBMPFR in the printed configuration.
10976
10977 2018-03-08 Tom Tromey <tom@tromey.com>
10978
10979 * source.c (get_filename_and_charpos): Use scoped_fd.
10980 * nto-procfs.c (procfs_open_1): Use scoped_fd.
10981 (procfs_pidlist): Likewise.
10982 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
10983 (iterate_over_mappings): Likewise.
10984
10985 2018-03-08 Tom Tromey <tom@tromey.com>
10986
10987 * infcall.c (struct call_return_meta_info)
10988 <stack_temporaries_enabled>: Remove.
10989 (get_call_return_value, call_function_by_hand_dummy): Update.
10990 * thread.c (disable_thread_stack_temporaries): Remove.
10991 (enable_thread_stack_temporaries): Remove.
10992 (thread_stack_temporaries_enabled_p): Return bool.
10993 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
10994 (get_last_thread_stack_temporary): Update.
10995 * eval.c (evaluate_subexp): Update.
10996 * gdbthread.h (class enable_thread_stack_temporaries): Now a
10997 class, not a function.
10998 (value_ptr, value_vec): Remove typedefs.
10999 (class thread_info) <stack_temporaries_enabled>: Now bool.
11000 <stack_temporaries>: Now a std::vector.
11001 (thread_stack_temporaries_enabled_p)
11002 (value_in_thread_stack_temporaries): Return bool.
11003
11004 2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
11005
11006 * remote.c (putpkt_binary): Fix omitted bytes reporting.
11007 (getpkt_or_notif_sane_1): Likewise.
11008
11009 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11010
11011 * build-id.c (build_id_to_debug_bfd): Use std::string.
11012
11013 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11014
11015 * build-id.c (find_separate_debug_file_by_buildid): Return
11016 std::string.
11017 * build-id.h (find_separate_debug_file_by_buildid): Return
11018 std::string.
11019 * coffread.c (coff_symfile_read): Adjust to std::string.
11020 * elfread.c (elf_symfile_read): Adjust to std::string.
11021 * symfile.c (separate_debug_file_exists): Change parameter to
11022 std::string.
11023 (find_separate_debug_file): Return std::string.
11024 (find_separate_debug_file_by_debuglink): Return std::string.
11025 * symfile.h (find_separate_debug_file_by_debuglink): Return
11026 std::string.
11027
11028 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11029
11030 * common/xml-utils.c (xml_escape_text): Move code to...
11031 (xml_escape_text_append): ... this new function.
11032 * common/xml-utils.h (xml_escape_text_append): New declaration.
11033 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
11034 New function.
11035 (_initialize_xml_utils): register test_xml_escape_text_append as
11036 a selftest.
11037
11038 2018-03-07 Alan Hayward <alan.hayward@arm.com>
11039
11040 * defs.h: Remove MAX_REGISTER_SIZE.
11041 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
11042 asserts.
11043 * python/py-unwind.c (pyuw_sniffer): Likewise.
11044
11045 2018-03-07 Tom Tromey <tom@tromey.com>
11046
11047 * linux-tdep.c (linux_info_proc): Update.
11048 * target.h (struct target_ops) <to_fileio_readlink>: Return
11049 optional<string>.
11050 (target_fileio_readlink): Return optional<string>.
11051 * remote.c (remote_hostio_readlink): Return optional<string>.
11052 * inf-child.c (inf_child_fileio_readlink): Return
11053 optional<string>.
11054 * target.c (target_fileio_readlink): Return optional<string>.
11055
11056 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
11057
11058 * regcache.c (cooked_read_test): Add riscv to the list of
11059 architectures that have a save_reggroup.
11060
11061 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
11062
11063 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
11064 value is not a dynamic class object.
11065
11066 2018-03-06 Tom Tromey <tom@tromey.com>
11067
11068 * rust-exp.y: Formatting fixes.
11069
11070 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11071
11072 * riscv-tdep.c (riscv_register_name): Remove target description
11073 support.
11074 (riscv_gdbarch_init): Remove target description check.
11075
11076 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11077
11078 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
11079 comment.
11080 * riscv-tdep.h: Likewise.
11081
11082 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11083
11084 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
11085 (riscv_pseudo_register_write): Delete.
11086 (riscv_gdbarch_init): Remove all use of pseudo registers.
11087
11088 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11089
11090 * record-btrace.c (btrace_print_lines): Replace cleanup
11091 parameter with RAII equivalents.
11092 (btrace_insn_history): Replace cleanup with RAII equivalents.
11093 * ui-out.h (make_cleanup_ui_out_list_begin_end,
11094 make_cleanup_ui_out_tuple_begin_end): Remove.
11095 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
11096 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
11097 make_cleanup_ui_out_list_begin_end): Remove.
11098
11099 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11100
11101 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
11102 parameter types to std::vector. Use bool.
11103 (record_btrace_wait): Replace VEC(tp_t) with
11104 std::vector<thread_info *>.
11105 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
11106
11107 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11108
11109 * record-btrace.c (record_btrace_disable_callback): Remove.
11110 (struct scoped_btrace_disable): New.
11111 (record_btrace_open): Use scoped_btrace_disable.
11112
11113 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11114
11115 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
11116 reading values from registers.
11117
11118 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11119
11120 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
11121 where appropriate.
11122
11123 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11124
11125 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
11126 change parameter type. Use GDB's print functions, and use
11127 core_addr_to_string where appropriate.
11128 (riscv_push_dummy_call): Use core_addr_to_string where
11129 appropriate, update call to riscv_print_arg_location, and reindent
11130 a few lines.
11131 (riscv_return_value): Update call to riscv_print_arg_location.
11132
11133 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11134 Tim Newsome <tim@sifive.com>
11135 Albert Ou <a0u@eecs.berkeley.edu>
11136 Darius Rad <darius@bluespec.com>
11137
11138 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
11139 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
11140 (ALLDEPFILES): Add riscv-tdep.c
11141 * configure.tgt: Add riscv support.
11142 * riscv-tdep.c: New file.
11143 * riscv-tdep.h: New file.
11144 * NEWS: Mention new target.
11145 * MAINTAINERS: Add entry for riscv.
11146
11147 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11148
11149 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
11150 fields within aggregates.
11151
11152 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
11153
11154 * record-btrace.c (btrace_print_lines): Change type of flags to
11155 gdb_disassembly_flags.
11156
11157 2018-03-04 John Baldwin <jhb@FreeBSD.org>
11158
11159 * fbsd-nat.c: Include "inf-ptrace.h".
11160 (USE_SIGTRAP_SIGINFO): Conditionally define.
11161 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
11162 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
11163 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
11164 function.
11165 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
11166 Likewise.
11167 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
11168 Likewise.
11169 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
11170 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
11171 "supports_stopped_by_hw_breakpoint" target methods.
11172
11173 2018-03-04 John Baldwin <jhb@FreeBSD.org>
11174
11175 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
11176 * fbsd-nat.c (debug_fbsd_nat): New variable.
11177 (show_fbsd_nat_debug): New function.
11178 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
11179 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
11180
11181 2018-03-04 John Baldwin <jhb@FreeBSD.org>
11182
11183 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
11184 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
11185 prototype.
11186 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
11187 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
11188 method.
11189
11190 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11191
11192 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
11193 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
11194
11195 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11196
11197 * charset.c (struct charset_vector): New.
11198 (charsets): Change type to charset_vector.
11199 (find_charset_names): Adjust.
11200 (add_one): Adjust.
11201 (_initialize_charset): Adjust.
11202
11203 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11204
11205 * progspace.h (struct program_space) <deleted_solibs>: Change
11206 type to std::vector<std::string>.
11207 * progspace.c (clear_program_space_solib_cache): Adjust.
11208 * breakpoint.c (print_solib_event): Adjust.
11209 (check_status_catch_solib): Adjust.
11210 * solib.c (update_solib_list): Adjust.
11211 * ui-out.h (class ui_out) <field_string>: New overload.
11212 * ui-out.c (ui_out::field_string): New overload.
11213
11214 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11215
11216 * progspace.h (struct program_space): Add constructor and
11217 destructor, initialize fields.
11218 (add_program_space): Remove.
11219 * progspace.c (add_program_space): Rename to...
11220 (program_space::program_space): ... this.
11221 (release_program_space): Rename to...
11222 (program_space::~program_space): ... this.
11223 (delete_program_space): Use delete to delete program_space.
11224 (initialize_progspace): Use new to allocate program_space.
11225 * inferior.c (add_inferior_with_spaces): Likewise.
11226 (clone_inferior_command): Likewise.
11227 * infrun.c (follow_fork_inferior): Likewise.
11228 (handle_vfork_child_exec_or_exit): Likewise.
11229
11230 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11231
11232 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
11233 (delim_string_to_char_ptr_vec): Return std::vector of
11234 gdb::unique_xmalloc_ptr.
11235 (dirnames_to_char_ptr_vec_append): Take std::vector of
11236 gdb::unique_xmalloc_ptr.
11237 (dirnames_to_char_ptr_vec): Return std::vector of
11238 gdb::unique_xmalloc_ptr.
11239 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
11240 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
11241 (delim_string_to_char_ptr_vec): Return an std::vector of
11242 gdb::unique_xmalloc_ptr, adjust the code.
11243 (dirnames_to_char_ptr_vec_append): Take an std::vector of
11244 gdb::unique_xmalloc_ptr, adjust the code.
11245 (dirnames_to_char_ptr_vec): Return an std::vector of
11246 gdb::unique_xmalloc_ptr, adjust the code.
11247 * auto-load.c (auto_load_safe_path_vec): Change type to
11248 std::vector of gdb::unique_xmalloc_ptr.
11249 (auto_load_expand_dir_vars): Return an std::vector of
11250 gdb::unique_xmalloc_ptr, adjust the code.
11251 (auto_load_safe_path_vec_update): Adjust.
11252 (filename_is_in_auto_load_safe_path_vec): Adjust.
11253 (auto_load_objfile_script_1): Adjust.
11254 * build-id.c (build_id_to_debug_bfd): Adjust.
11255 * linux-thread-db.c (thread_db_load_search): Adjust.
11256 * source.c (add_path): Adjust.
11257 (openp): Adjust.
11258 * symfile.c (find_separate_debug_file): Adjust.
11259 * utils.c (do_free_char_ptr_vec): Remove.
11260 (make_cleanup_free_char_ptr_vec): Remove.
11261
11262 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
11263
11264 PR gdb/22907
11265 * common/pathstuff.c: Conditionally include "<windows.h>".
11266
11267 2018-03-01 Georg Sauthoff <mail@georg.so>
11268
11269 PR gdb/22888
11270 * gcore.in: Quote variables and switch interpreter to bash.
11271
11272 2018-03-01 Tom Tromey <tom@tromey.com>
11273
11274 * dwarf2read.c (alloc_discriminant_info): Fix default_index
11275 assertion. Add assertion for discriminant_index.
11276 (quirk_rust_enum): Use correct base type name in univariant case.
11277
11278 2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
11279
11280 * record.c (get_call_history_modifiers): Return a
11281 record_print_flags.
11282 (cmd_record_call_history): Adjust.
11283 * record-btrace.c (record_btrace_call_history): Adjust.
11284 (record_btrace_call_history_range): Adjust.
11285 (record_btrace_call_history_from): Adjust.
11286 * target-debug.h (target_debug_print_record_print_flags): New.
11287 * target-delegates.c: Re-generate.
11288 * target.c (target_call_history): Change flags type.
11289 (target_call_history_from): Likewise.
11290 (target_call_history_range): Likewise.
11291 * target.h (struct target_ops) <target_call_history>: Likewise.
11292 (target_call_history_from): Likewise.
11293 (target_call_history_range): Likewise.
11294
11295 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
11296 Simon Marchi <simon.marchi@polymtl.ca>
11297
11298 * common/common-utils.c: Include "sys/stat.h".
11299 (is_regular_file): Move here from "source.c"; change return
11300 type to "bool".
11301 * common/common-utils.h (is_regular_file): New prototype.
11302 * common/pathstuff.c (contains_dir_separator): New function.
11303 * common/pathstuff.h (contains_dir_separator): New prototype.
11304 * source.c: Don't include "sys/stat.h".
11305 (is_regular_file): Move to "common/common-utils.c".
11306
11307 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
11308
11309 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
11310 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
11311 * auto-load.c: Include "common/pathstuff.h".
11312 * common/common-def.h (current_directory): Move here.
11313 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
11314 function.
11315 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
11316 prototype.
11317 * common/pathstuff.c: New file.
11318 * common/pathstuff.h: New file.
11319 * compile/compile.c: Include "common/pathstuff.h".
11320 * defs.h (current_directory): Move to "common/common-defs.h".
11321 * dwarf2read.c: Include "common/pathstuff.h".
11322 * exec.c: Likewise.
11323 * guile/scm-safe-call.c: Likewise.
11324 * linux-thread-db.c: Likewise.
11325 * main.c: Likewise.
11326 * nto-tdep.c: Likewise.
11327 * objfiles.c: Likewise.
11328 * source.c: Likewise.
11329 * symtab.c: Likewise.
11330 * utils.c: Include "common/pathstuff.h".
11331 (gdb_realpath): Move to "common/pathstuff.c".
11332 (gdb_realpath_keepfile): Likewise.
11333 (gdb_abspath): Likewise.
11334 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
11335 (gdb_realpath_keepfile): Likewise.
11336 (gdb_abspath): Likewise.
11337
11338 2018-02-28 John Baldwin <jhb@FreeBSD.org>
11339
11340 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
11341 wildcard process pid for super_resume for kernels with a
11342 specific bug.
11343
11344 2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
11345
11346 * compile/compile.c (get_args): Add additional comments
11347 explaining function.
11348
11349 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
11350 Tom Tromey <tom@tromey.com>
11351
11352 * target.h (memory_write_request_s): Remove typedef. Don't define
11353 VEC.
11354 (target_write_memory_blocks): Change argument to std::vector.
11355 (struct memory_write_request): Add constructor.
11356 * target-memory.c (compare_block_starting_address): Return bool.
11357 Change argument types.
11358 (claim_memory): Change arguments to use std::vector.
11359 (split_regular_and_flash_blocks, blocks_to_erase)
11360 (compute_garbled_blocks): Likewise.
11361 (cleanup_request_data, cleanup_write_requests_vector): Remove.
11362 (target_write_memory_blocks): Change argument to std::vector.
11363 * symfile.c (struct load_section_data): Add constructor and
11364 destructor. Use std::vector for "requests".
11365 (struct load_progress_data): Add initializers.
11366 (load_section_callback): Update. Use "new".
11367 (clear_memory_write_data): Remove.
11368 (generic_load): Update.
11369
11370 2018-02-27 Alan Hayward <alan.hayward@arm.com>
11371
11372 * arch/aarch64.h: Use common/tdesc.h.
11373
11374 2018-02-26 Maciej W. Rozycki <macro@mips.com>
11375
11376 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
11377 architecture with a 64-bit ABI.
11378
11379 2018-02-26 Maciej W. Rozycki <macro@mips.com>
11380
11381 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
11382 ahead of target description loading.
11383
11384 2018-02-26 Tom Tromey <tom@tromey.com>
11385
11386 * stack.c (backtrace_command_1): Update.
11387 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
11388 of "flags".
11389 * python/py-framefilter.c (py_print_frame)
11390 (gdbpy_apply_frame_filter): Change type of "flags".
11391 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
11392 of "flags".
11393 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
11394 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
11395 * extension.h (enum frame_filter_flag): Rename from
11396 frame_filter_flags.
11397 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
11398 (apply_ext_lang_frame_filter): Change type of "flags".
11399 * extension.c (apply_ext_lang_frame_filter): Change type of
11400 "flags".
11401 * extension-priv.h (struct extension_language_ops)
11402 <apply_frame_filter>: Change type of "flags".
11403
11404 2018-02-26 Tom Tromey <tom@tromey.com>
11405
11406 PR python/16497:
11407 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
11408 off-by-one in py_end computation.
11409 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
11410 PRINT_MORE_FRAMES.
11411 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
11412 constant.
11413
11414 2018-02-26 Tom Tromey <tom@tromey.com>
11415
11416 * dwarf2read.c (struct variant_field): New.
11417 (struct nextfield) <variant>: New field.
11418 (dwarf2_add_field): Handle DW_TAG_variant_part.
11419 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
11420 discriminated union.
11421 (read_structure_type): Handle DW_TAG_variant_part.
11422 (handle_struct_member_die): New function, extracted from
11423 process_structure_scope. Handle DW_TAG_variant.
11424 (process_structure_scope): Handle discriminated unions. Call
11425 handle_struct_member_die.
11426
11427 2018-02-26 Tom Tromey <tom@tromey.com>
11428
11429 * rust-lang.h (rust_last_path_segment): Declare.
11430 * rust-lang.c (rust_last_path_segment): Now public. Change
11431 contract.
11432 (struct disr_info): Remove.
11433 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
11434 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
11435 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
11436 (rust_enum_p, rust_enum_variant): New function.
11437 (rust_underscore_fields): Remove "offset" parameter.
11438 (rust_print_enum): New function.
11439 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
11440 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
11441 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
11442 enums.
11443 (rust_internal_print_type): New function, from rust_print_type.
11444 Remove enum code.
11445 (rust_print_type): Call rust_internal_print_type.
11446 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
11447 Update enum handling.
11448 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
11449 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
11450 (rust_union_quirks): New functions.
11451 (process_full_comp_unit, process_full_type_unit): Call
11452 rust_union_quirks.
11453 (process_structure_scope): Update rust_unions if necessary.
11454
11455 2018-02-26 Tom Tromey <tom@tromey.com>
11456
11457 * value.h (value_union_variant): Declare.
11458 * valops.c (value_union_variant): New function.
11459 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
11460 (struct discriminant_info): New.
11461 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
11462 enumerator.
11463 (struct main_type) <flag_discriminated_union>: New field.
11464
11465 2018-02-26 Tom Tromey <tom@tromey.com>
11466
11467 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11468 unittests/unpack-selftests.c.
11469 * unittests/unpack-selftests.c: New file.
11470 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
11471
11472 2018-02-26 Yao Qi <yao.qi@linaro.org>
11473
11474 * dwarf2read.c (struct partial_die_info) <read>: New method.
11475 (read_partial_die): Remove the declaration.
11476 (load_partial_dies): Update.
11477 (partial_die_info::partial_die_info):
11478 (read_partial_die): Change it to partial_die_info::read.
11479
11480 2018-02-26 Yao Qi <yao.qi@linaro.org>
11481
11482 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
11483 (fixup_partial_die): Remove declaration.
11484 (scan_partial_symbols): Update.
11485 (partial_die_parent_scope): Likewise.
11486 (partial_die_full_name): Likewise.
11487 (fixup_partial_die): Change it to partial_die_info::fixup.
11488
11489 2018-02-26 Yao Qi <yao.qi@linaro.org>
11490
11491 * dwarf2read.c (read_partial_die): Update the declaration.
11492 (load_partial_dies): Caller update.
11493 (read_partial_die): Remove one argument abbrev_len.
11494
11495 2018-02-26 Yao Qi <yao.qi@linaro.org>
11496
11497 * dwarf2read.c (struct partial_die_info): Add ctor, delete
11498 assignment operator.
11499 (load_partial_dies): Use ctor and copy ctor.
11500 (read_partial_die): Update.
11501 (dwarf2_cu::find_partial_die): Use ctor.
11502
11503 2018-02-26 Yao Qi <yao.qi@linaro.org>
11504
11505 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
11506 (find_partial_die_in_comp_unit): Change it to
11507 dwarf2_cu::find_partial_die.
11508 (find_partial_die): Update.
11509
11510 2018-02-26 Yao Qi <yao.qi@linaro.org>
11511
11512 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
11513 is NULL.
11514
11515 2018-02-26 Yao Qi <yao.qi@linaro.org>
11516
11517 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
11518
11519 2018-02-26 Alan Hayward <alan.hayward@arm.com>
11520
11521 * arch/amd64.h: Use common/tdesc.h.
11522 * arch/i386.c: Likewise.
11523 * arch/i386.h: Likewise.
11524 * arch/tic6x.c: Likewise.
11525 * arch/tdesc.h: Move file from here...
11526 * common/tdesc.h: ...to here.
11527 * features/aarch64-core.c: Regenerate.
11528 * features/aarch64-fpu.c: Regenerate.
11529 * features/i386/32bit-avx.c: Regenerate.
11530 * features/i386/32bit-avx512.c: Regenerate.
11531 * features/i386/32bit-core.c: Regenerate.
11532 * features/i386/32bit-linux.c: Regenerate.
11533 * features/i386/32bit-mpx.c: Regenerate.
11534 * features/i386/32bit-pkeys.c: Regenerate.
11535 * features/i386/32bit-sse.c: Regenerate.
11536 * features/i386/64bit-avx.c: Regenerate.
11537 * features/i386/64bit-avx512.c: Regenerate.
11538 * features/i386/64bit-core.c: Regenerate.
11539 * features/i386/64bit-linux.c: Regenerate.
11540 * features/i386/64bit-mpx.c: Regenerate.
11541 * features/i386/64bit-pkeys.c: Regenerate.
11542 * features/i386/64bit-segments.c: Regenerate.
11543 * features/i386/64bit-sse.c: Regenerate.
11544 * features/i386/x32-core.c: Regenerate.
11545 * features/tic6x-c6xp.c: Regenerate.
11546 * features/tic6x-core.c: Regenerate.
11547 * features/tic6x-gp.c: Regenerate.
11548 * target-descriptions.c: Use common/tdesc.h.
11549 * target-descriptions.h: Likewise.
11550
11551 2018-02-24 Tom Tromey <tom@tromey.com>
11552
11553 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
11554 (try_thread_db_load_from_dir, thread_db_load_search): Use
11555 std::string.
11556 (info_auto_load_libthread_db_compare): Return bool. Change
11557 argument types.
11558 (info_auto_load_libthread_db): Use std::vector, std::string.
11559 Remove cleanups.
11560
11561 2018-02-24 Tom Tromey <tom@tromey.com>
11562
11563 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
11564 std::string.
11565 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
11566 std::string*.
11567 * gdbarch.c: Rebuild.
11568 * gdbarch.h: Rebuild.
11569 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
11570 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
11571 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
11572 std::string*.
11573
11574 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
11575
11576 * gdbtypes.h (sect_offset): Change type to uint64_t.
11577 (sect_offset_str): New function.
11578 * dwarf2read.c (create_addrmap_from_aranges): Use
11579 sect_offset_str.
11580 (error_check_comp_unit_head): Likewise.
11581 (create_debug_type_hash_table): Likewise.
11582 (read_cutu_die_from_dwo): Likewise.
11583 (init_cutu_and_read_dies): Likewise.
11584 (init_cutu_and_read_dies_no_follow): Likewise.
11585 (process_psymtab_comp_unit_reader): Likewise.
11586 (partial_die_parent_scope): Likewise.
11587 (peek_die_abbrev): Likewise.
11588 (process_queue): Likewise.
11589 (dwarf2_physname): Likewise.
11590 (read_namespace_alias): Likewise.
11591 (read_import_statement): Likewise.
11592 (create_dwo_cu_reader): Likewise.
11593 (create_cus_hash_table): Likewise.
11594 (lookup_dwo_cutu): Likewise.
11595 (inherit_abstract_dies): Likewise.
11596 (read_func_scope): Likewise.
11597 (read_call_site_scope): Likewise.
11598 (dwarf2_add_member_fn): Likewise.
11599 (read_common_block): Likewise.
11600 (read_module_type): Likewise.
11601 (read_typedef): Likewise.
11602 (read_subrange_type): Likewise.
11603 (load_partial_dies): Likewise.
11604 (read_partial_die): Likewise.
11605 (find_partial_die): Likewise.
11606 (read_str_index): Likewise.
11607 (dwarf2_string_attr): Likewise.
11608 (build_error_marker_type): Likewise.
11609 (lookup_die_type): Likewise.
11610 (dump_die_shallow): Likewise.
11611 (follow_die_ref): Likewise.
11612 (dwarf2_fetch_die_loc_sect_off): Likewise.
11613 (dwarf2_fetch_constant_bytes): Likewise.
11614 (follow_die_sig): Likewise.
11615 (get_signatured_type): Likewise.
11616 (get_DW_AT_signature_type): Likewise.
11617 (dwarf2_find_containing_comp_unit): Likewise.
11618 (set_die_type): Likewise.
11619
11620 2018-02-21 John Baldwin <jhb@FreeBSD.org>
11621
11622 * arch/aarch64.c: Include "common-defs.h".
11623 * arch/amd64.c: Likewise.
11624 * arch/i386.c: Likewise.
11625
11626 2018-02-21 Tom Tromey <tom@tromey.com>
11627
11628 * value.h: (extract_field_op): Update.
11629 * eval.c (extract_field_op): Return a const char *.
11630 * expression.h (parse_expression_for_completion): Update.
11631 * completer.c (complete_expression): Update.
11632 (add_struct_fields): Make fieldname const.
11633 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
11634 (mark_completion_tag, parse_exp_in_context_1): Update.
11635 (parse_expression_for_completion): Change "name" to
11636 unique_xmalloc_ptr*.
11637
11638 2018-02-21 Tom Tromey <tom@tromey.com>
11639
11640 * infcall.c (call_function_by_hand_dummy): Use std::vector.
11641
11642 2018-02-21 Yao Qi <yao.qi@linaro.org>
11643
11644 * avr-tdep.c (avr_read_pc): Change parameter type to
11645 readable_regcache.
11646 * gdbarch.sh (read_pc): Likewise.
11647 * gdbarch.c: Re-generated.
11648 * gdbarch.h: Re-generated.
11649 * hppa-tdep.c (hppa_read_pc): Change parameter type to
11650 readable_regcache.
11651 * ia64-tdep.c (ia64_read_pc): Likewise.
11652 * mips-tdep.c (mips_read_pc): Likewise.
11653 * spu-tdep.c (spu_read_pc): Likewise.
11654
11655 2018-02-21 Yao Qi <yao.qi@linaro.org>
11656
11657 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
11658 * regcache-dump.c: New file.
11659 * regcache.c: Move register_dump to regcache-dump.c.
11660 (maintenance_print_registers): Likewise.
11661 (maintenance_print_raw_registers): Likewise.
11662 (maintenance_print_cooked_registers): Likewise.
11663 (maintenance_print_register_groups): Likewise.
11664 (maintenance_print_remote_registers): Likewise.
11665 (_initialize_regcache): Likewise.
11666 * regcache.h (register_dump): Moved from regcache.c.
11667
11668 2018-02-21 Yao Qi <yao.qi@linaro.org>
11669
11670 * regcache.c (regcache::regcache): Update.
11671 (regcache::invalidate): Move it to detached_regcache::invalidate.
11672 (get_thread_arch_aspace_regcache): Update.
11673 (regcache::raw_update): Update.
11674 (regcache::cooked_read): Remove some code.
11675 (regcache::cooked_read_value): Likewise.
11676 (regcache::raw_write): Remove assert on m_readonly_p.
11677 (regcache::raw_supply_integer): Move it to
11678 detached_regcache::raw_supply_integer.
11679 (regcache::raw_supply_zeroed): Likewise.
11680 * regcache.h (detached_regcache) <raw_supply_integer>: New
11681 declaration.
11682 <raw_supply_zeroed, invalidate>: Likewise.
11683 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
11684 <invalidate>: Likewise.
11685 <m_readonly_p>: Removed.
11686
11687 2018-02-21 Yao Qi <yao.qi@linaro.org>
11688
11689 * infcmd.c (get_return_value): Let stop_regs point to
11690 get_current_regcache.
11691 * regcache.c (regcache::regcache): Remove.
11692 (register_dump_reg_buffer): New class.
11693 (regcache_print): Adjust.
11694 * regcache.h (regcache): Remove constructors.
11695
11696 2018-02-21 Yao Qi <yao.qi@linaro.org>
11697
11698 * regcache.c (class register_dump): New class.
11699 (register_dump_regcache, register_dump_none): New class.
11700 (register_dump_remote, register_dump_groups): New class.
11701 (regcache_print): Update.
11702 * regcache.h (regcache_dump_what): Move it to regcache.c.
11703 (regcache) <dump>: Remove.
11704
11705 2018-02-21 Yao Qi <yao.qi@linaro.org>
11706
11707 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
11708 reg_buffer_rw *.
11709 (jit_unwind_reg_set_impl): Call raw_supply.
11710 (jit_frame_sniffer): Use reg_buffer_rw.
11711 * record-full.c (record_full_core_regbuf): Change its type.
11712 (record_full_core_open_1): Use reg_buffer_rw.
11713 (record_full_close): Likewise.
11714 (record_full_core_fetch_registers): Use regcache->raw_supply.
11715 (record_full_core_store_registers): Likewise.
11716 * regcache.c (regcache::get_register_status): Move it to
11717 reg_buffer.
11718 (regcache_raw_set_cached_value): Remove.
11719 (regcache::raw_set_cached_value): Remove.
11720 (regcache::raw_write): Call raw_supply.
11721 (regcache::raw_supply): Move it to reg_buffer_rw.
11722 * regcache.h (regcache_raw_set_cached_value): Remove.
11723 (reg_buffer_rw): New class.
11724
11725 2018-02-21 Yao Qi <yao.qi@linaro.org>
11726
11727 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
11728 readonly_detached_regcache.
11729 (dummy_frame_prev_register): Use regcache->cooked_read.
11730 * frame.c (frame_save_as_regcache): Change return type.
11731 (frame_pop): Update.
11732 * frame.h (frame_save_as_regcache): Update declaration.
11733 * inferior.h (get_infcall_suspend_state_regcache): Update
11734 declaration.
11735 * infrun.c (infcall_suspend_state) <registers>: use
11736 readonly_detached_regcache.
11737 (save_infcall_suspend_state): Don't use regcache_dup.
11738 (get_infcall_suspend_state_regcache): Change return type.
11739 * linux-fork.c (struct fork_info) <savedregs>: Change to
11740 readonly_detached_regcache.
11741 <pc>: New field.
11742 (fork_save_infrun_state): Don't use regcache_dup.
11743 (info_checkpoints_command): Adjust.
11744 * mi/mi-main.c (register_changed_p): Update declaration.
11745 (mi_cmd_data_list_changed_registers): Use
11746 readonly_detached_regcache.
11747 (register_changed_p): Change parameter type to
11748 readonly_detached_regcache.
11749 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
11750 readonly_detached_regcache.
11751 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
11752 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
11753 New.
11754 (regcache::save): Move it to reg_buffer.
11755 (regcache::restore): Change parameter type.
11756 (regcache_dup): Remove.
11757 * regcache.h (reg_buffer) <save>: New method.
11758 (readonly_detached_regcache): New class.
11759 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
11760 readonly_detached_regcache.
11761 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
11762
11763 2018-02-21 Yao Qi <yao.qi@linaro.org>
11764
11765 * frame.c (frame_save_as_regcache): Use regcache method save.
11766 (frame_pop): Use regcache method restore.
11767 * infrun.c (restore_infcall_suspend_state): Likewise.
11768 * linux-fork.c (fork_load_infrun_state): Likewise.
11769 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
11770 save.
11771 * regcache.c (regcache_save): Remove.
11772 (regcache::restore): More asserts.
11773 (regcache_cpy): Remove.
11774 * regcache.h (regcache_save): Remove the declaration.
11775 (regcache::restore): Move from private to public.
11776 Remove the friend declaration of regcache_cpy.
11777 (regcache_cpy): Remove declaration.
11778
11779 2018-02-21 Yao Qi <yao.qi@linaro.org>
11780
11781 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
11782 parameter type to 'readable_regcache *'.
11783 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
11784 * arm-tdep.c (arm_neon_quad_read): Likewise.
11785 (arm_pseudo_read): Likewise.
11786 * avr-tdep.c (avr_pseudo_register_read): Likewise.
11787 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
11788 * frv-tdep.c (frv_pseudo_register_read): Likewise.
11789 * gdbarch.c: Re-generated.
11790 * gdbarch.h: Re-generated.
11791 * gdbarch.sh (pseudo_register_read): Change parameter type to
11792 'readable_regcache *'.
11793 (pseudo_register_read_value): Likewise.
11794 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
11795 (h8300_pseudo_register_read): Likewise.
11796 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
11797 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
11798 (i386_pseudo_register_read_into_value): Likewise.
11799 (i386_pseudo_register_read_value): Likewise.
11800 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
11801 declaration.
11802 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
11803 * m32c-tdep.c (m32c_raw_read): Likewise.
11804 (m32c_read_flg): Likewise.
11805 (m32c_banked_register): Likewise.
11806 (m32c_banked_read): Likewise.
11807 (m32c_sb_read): Likewise.
11808 (m32c_part_read): Likewise.
11809 (m32c_cat_read): Likewise.
11810 (m32c_r3r2r1r0_read): Likewise.
11811 (m32c_pseudo_register_read): Likewise.
11812 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
11813 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
11814 (mep_pseudo_cr64_read): Likewise.
11815 (mep_pseudo_register_read): Likewise.
11816 * mips-tdep.c (mips_pseudo_register_read): Likewise.
11817 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
11818 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
11819 * regcache.c (regcache::raw_read): Move it to readable_regcache.
11820 (regcache::cooked_read): Likewise.
11821 (regcache::cooked_read_value): Likewise.
11822 (regcache_cooked_read_signed):
11823 (regcache::cooked_read): Likewise.
11824 * regcache.h (readable_regcache): New class.
11825 (regcache): Inherit readable_regcache. Move some methods to
11826 readable_regcache.
11827 * rl78-tdep.c (rl78_pseudo_register_read): Change
11828 parameter type to 'readable_regcache *'.
11829 * rs6000-tdep.c (do_regcache_raw_read): Remove.
11830 (e500_pseudo_register_read): Change parameter type to
11831 'readable_regcache *'.
11832 (dfp_pseudo_register_read): Likewise.
11833 (vsx_pseudo_register_read): Likewise.
11834 (efpr_pseudo_register_read): Likewise.
11835 * s390-tdep.c (s390_pseudo_register_read): Likewise.
11836 * sh-tdep.c (sh_pseudo_register_read): Likewise.
11837 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
11838 (sh64_pseudo_register_read): Likewise.
11839 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
11840 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
11841 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
11842 (spu_pseudo_register_read): Likewise.
11843 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
11844 (xtensa_pseudo_register_read): Likewise.
11845
11846 2018-02-21 Yao Qi <yao.qi@linaro.org>
11847
11848 * regcache.c (regcache::regcache): Call reg_buffer ctor.
11849 (regcache::arch): Move it to reg_buffer::arch.
11850 (regcache::register_buffer): Likewise.
11851 (regcache::assert_regnum): Likewise.
11852 (regcache::num_raw_registers): Likewise.
11853 * regcache.h (reg_buffer): New class.
11854 (regcache): Inherit reg_buffer.
11855
11856 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
11857
11858 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
11859 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
11860
11861 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
11862
11863 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
11864
11865 2018-02-19 Alan Hayward <alan.hayward@arm.com>
11866
11867 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
11868 (SFILES): Remove common/*.c files.
11869 (COMMON_OBS): Remove some *.o files built from common/*.c files.
11870 * common/common.host: Add common reference.
11871 * configure.ac: Likewise.
11872 * configure: Regenerate.
11873
11874 2018-02-16 Yao Qi <yao.qi@linaro.org>
11875
11876 * block.c (block_namespace_info): Inherit allocate_on_obstack.
11877 (block_initialize_namespace): Use new.
11878 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
11879 (dwarf2_free_objfile): Use delete.
11880 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
11881 (copy_type_recursive): Use new.
11882 * gdb_obstack.h (allocate_on_obstack): New.
11883
11884 2018-02-15 Yao Qi <yao.qi@linaro.org>
11885
11886 PR gdb/22849
11887 * inferior.c (exit_inferior_1): Reset inf->control.
11888
11889 2018-02-15 Joel Brobecker <brobecker@adacore.com>
11890
11891 * ada-lang.c (ada_to_fixed_value_create): Delete advance
11892 declaration.
11893
11894 2018-02-14 Pedro Alves <palves@redhat.com>
11895
11896 * frame-unwind.c (frame_unwind_try_unwinder): Always call
11897 frame_cleanup_after_sniffer on exception.
11898
11899 2018-02-14 Tom Tromey <tom@tromey.com>
11900
11901 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
11902 const.
11903 (solib_bfd_open): Make pathname const.
11904 * solib.c (solib_bfd_open): Make pathname const.
11905 * solib-spu.c (spu_bfd_fopen): Make name const.
11906 (spu_bfd_open): Make pathname const.
11907 * solib-darwin.c (darwin_bfd_open): Make pathname const.
11908 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
11909
11910 2018-02-14 Tom Tromey <tom@tromey.com>
11911
11912 * symfile.c (symfile_bfd_open): Update.
11913 * source.h (openp, source_full_path_of, find_and_open_source):
11914 Change argument type to unique_xmalloc_ptr.
11915 * source.c (openp): Take a unique_xmalloc_ptr.
11916 (source_full_path_of, find_and_open_source): Likewise.
11917 (open_source_file, symtab_to_fullname): Update.
11918 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
11919 unique_xmalloc_ptr.
11920 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
11921 (exec_file_find): Update.
11922 * psymtab.c (psymtab_to_fullname): Update.
11923 * nto-tdep.h (nto_find_and_open_solib): Update.
11924 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
11925 unique_xmalloc_ptr.
11926 * exec.c (exec_file_attach): Update.
11927 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
11928 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
11929
11930 2018-02-14 Tom Tromey <tom@tromey.com>
11931
11932 * solib.c: Include source.h.
11933 * nto-tdep.c: Include source.h.
11934 * mi/mi-cmd-env.c: Include source.h.
11935 * infcmd.c: Include source.h.
11936 * exec.c: Include source.h.
11937 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
11938 (add_path, directory_switch, source_path, init_source_path): Move
11939 declarations...
11940 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
11941 (add_path, directory_switch, source_path, init_source_path):
11942 ...here.
11943
11944 2018-02-14 Tom Tromey <tom@tromey.com>
11945
11946 * solist.h (exec_file_find, solib_find): Return
11947 unique_xmalloc_ptr.
11948 (solib_bfd_fopen): Take a const char *.
11949 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
11950 (exec_file_find, solib_find): Likewise.
11951 (solib_bfd_fopen): Do not take ownership of "pathname".
11952 (solib_bfd_open): Use unique_xmalloc_ptr.
11953 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
11954 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
11955 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
11956 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
11957
11958 2018-02-14 Joel Brobecker <brobecker@adacore.com>
11959
11960 * ada-lang.c (name_match_type_from_name): Remove reference to
11961 ada_name_for_lookup in function's documentation.
11962 * ada-lang.h (ada_name_for_lookup): Delete declaration.
11963
11964 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
11965
11966 * defs.h (enum openp_flags): New enum.
11967 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
11968 Move to enum openp_flags.
11969 (openp_flags): New enum flags.
11970 (openp): Change parameter type to openp_flags.
11971 * source.c (openp): Change parameter type to openp_flags.
11972 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
11973 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
11974
11975 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
11976
11977 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
11978 per-command.
11979
11980 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
11981
11982 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
11983 into...
11984 (class dwarf2_queue_guard): ...the destructor of this new class.
11985 (dw2_do_instantiate_symtab): Create instance of the new class
11986 dwarf2_queue_guard, remove cleanup.
11987
11988 2018-02-09 Tom Tromey <tom@tromey.com>
11989
11990 * source.c (find_source_lines): Don't reference past the end of
11991 the vector.
11992
11993 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11994
11995 * remote.c (remote_btrace_maybe_reopen): Change error message.
11996 * btrace.c (btrace_enable): Likewise.
11997 (parse_xml_btrace): Likewise.
11998 (parse_xml_btrace_conf): Likewise.
11999
12000 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12001
12002 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
12003 (linux_enable_pt, linux_enable_bts): Call
12004 diagnose_perf_event_open_fail.
12005
12006 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12007
12008 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
12009 Remove parameter and change return type. Update callers. Move it.
12010 (linux_enable_bts, linux_enable_pt): Improve error message.
12011 (linux_enable_pt): Remove zero buffer size check.
12012 (linux_enable_btrace): Improve error messages. Remove NULL return
12013 check.
12014
12015 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12016
12017 * btrace.c (btrace_enable): Remove target_supports_btrace call.
12018 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
12019 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
12020 (linux_supports_pt, linux_supports_btrace): Remove.
12021 (linux_enable_bts): Call cpu_supports_bts.
12022 * nat/linux-btrace.h (linux_supports_btrace): Remove.
12023 * remote.c (remote_supports_btrace): Remove.
12024 (init_remote_ops): Remove remote_supports_btrace.
12025 * target-delegates.c: Regenerated.
12026 * target.c (target_supports_btrace): Remove.
12027 * target.h (target_ops) <to_supports_btrace>: Remove
12028 (target_supports_btrace): Remove.
12029 * x86-linux-nat.c (x86_linux_create_target): Remove
12030 linux_supports_btrace.
12031
12032 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12033
12034 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
12035 btrace failed.
12036 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
12037 exception and use message in own exception.
12038
12039 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12040
12041 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
12042 (perf_event_pt_event_type): Use gdb_file_up.
12043 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
12044 scoped_fd, and scoped_mmap.
12045
12046 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12047
12048 * common/scoped_mmap.h: New.
12049 * unittests/scoped_mmap-selftest.c: New.
12050 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12051 unittests/scoped_mmap-selftest.c.
12052
12053 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12054
12055 * common/scoped_fd.h: New.
12056 * unittests/scoped_fd-selftest.c: New.
12057 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12058 unittests/scoped_fd-selftest.c.
12059
12060 2018-02-09 Tom Tromey <tom@tromey.com>
12061
12062 * auto-load.c (auto_load_section_scripts): Use
12063 gdb::unique_xmalloc_ptr.
12064
12065 2018-02-09 Tom Tromey <tom@tromey.com>
12066
12067 * auto-load.c (execute_script_contents): Use std::string.
12068
12069 2018-02-09 Joel Brobecker <brobecker@adacore.com>
12070
12071 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
12072 Python function, rather than a new command.
12073
12074 2018-02-08 Tom Tromey <tom@tromey.com>
12075
12076 * solib.c (solib_find_1): Use std::string.
12077 (solib_bfd_fopen): Use unique_xmalloc_ptr.
12078
12079 2018-02-08 Tom Tromey <tom@tromey.com>
12080
12081 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
12082
12083 2018-02-08 Tom Tromey <tom@tromey.com>
12084
12085 * source.c (find_source_lines): Use gdb::def_vector.
12086
12087 2018-02-08 Tom Tromey <tom@tromey.com>
12088
12089 * macrocmd.c (struct temporary_macro_definition): New.
12090 (macro_define_command): Use temporary_macro_definition. Remove
12091 cleanups.
12092 (free_macro_definition_ptr): Remove.
12093
12094 2018-02-08 Tom Tromey <tom@tromey.com>
12095
12096 * macroexp.c (maybe_expand): Use std::string.
12097
12098 2018-02-08 Tom Tromey <tom@tromey.com>
12099
12100 * macroexp.c (struct macro_buffer): Add initializers for some
12101 members.
12102 (init_buffer, init_shared_buffer, free_buffer)
12103 (free_buffer_return_text): Remove.
12104 (macro_buffer): New constructors.
12105 (~macro_buffer): New destructor.
12106 (macro_buffer::set_shared): New method.
12107 (macro_buffer::resize_buffer, macro_buffer::appendc)
12108 (macro_buffer::appendmem): Now methods, not free functions.
12109 (set_token, append_tokens_without_splicing, stringify)
12110 (macro_stringify): Update.
12111 (gather_arguments): Change return type. Remove argc_p argument,
12112 add args_ptr argument. Use std::vector.
12113 (substitute_args): Remove argc argument. Accept std::vector.
12114 (expand): Update. Use std::vector.
12115 (scan, macro_expand, macro_expand_next): Update.
12116
12117 2018-02-08 Tom Tromey <tom@tromey.com>
12118
12119 * symtab.c (default_collect_symbol_completion_matches_break_on):
12120 Use unique_xmalloc_ptr.
12121 * macroscope.h: (sal_macro_scope, user_macro_scope)
12122 (default_macro_scope): Return unique_xmalloc_ptr.
12123 * macroscope.c (sal_macro_scope, user_macro_scope)
12124 (default_macro_scope): Return unique_xmalloc_ptr.
12125 * macroexp.h (macro_expand, macro_expand_once): Return
12126 unique_xmalloc_ptr.
12127 * macroexp.c (macro_expand, macro_expand_once): Return
12128 unique_xmalloc_ptr.
12129 * macrocmd.c (macro_expand_command, macro_expand_once_command)
12130 (info_macro_command, info_macros_command): Use
12131 unique_xmalloc_ptr.
12132 * compile/compile-c-support.c (write_macro_definitions): Use
12133 unique_xmalloc_ptr.
12134 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
12135
12136 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
12137
12138 * value.c (value_static_field): Assign field type instead of
12139 containing type when returning an optimized out value.
12140
12141 2018-02-06 Yao Qi <yao.qi@linaro.org>
12142
12143 * ft32-tdep.c (ft32_read_pc): Remove.
12144 (ft32_write_pc): Remove.
12145 (ft32_gdbarch_init): Update.
12146 * m32r-tdep.c (m32r_read_pc): Remove.
12147 (m32r_gdbarch_init): Update.
12148 * mep-tdep.c (mep_read_pc): Remove.
12149 (mep_gdbarch_init): Update.
12150 * microblaze-tdep.c (microblaze_write_pc): Remove.
12151 (microblaze_gdbarch_init): Update.
12152 * mn10300-tdep.c (mn10300_read_pc): Remove.
12153 (mn10300_write_pc): Remove.
12154 (mn10300_gdbarch_init): Update.
12155 * moxie-tdep.c (moxie_read_pc): Remove.
12156 (moxie_write_pc): Remove.
12157 (moxie_gdbarch_init): Update.
12158
12159 2018-02-06 Yao Qi <yao.qi@linaro.org>
12160
12161 * expprint.c (print_subexp_standard): Handle
12162 OP_F77_UNDETERMINED_ARGLIST.
12163 (dump_subexp_body_standard): Likewise.
12164
12165 2018-02-05 Alan Hayward <alan.hayward@arm.com>
12166
12167 * target-descriptions.c (tdesc_element_visitor) Add empty
12168 implementations.
12169 (tdesc_type): Move make_gdb_type from here.
12170 (tdesc_type_builtin): Likewise.
12171 (tdesc_type_vector): Likewise.
12172 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
12173 (make_gdb_type_struct): Move from tdesc_type_with_fields.
12174 (make_gdb_type_union): Likewise.
12175 (make_gdb_type_flags): Likewise.
12176 (make_gdb_type_enum): Likewise.
12177 (make_gdb_type): New function.
12178 (tdesc_register_type): Use static make_gdb_type.
12179
12180 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
12181
12182 * infcmd.c (default_print_one_register_info): Align natural-format
12183 column values consistently one under another.
12184 (pad_to_column): New function.
12185
12186 2018-02-05 Joel Brobecker <brobecker@adacore.com>
12187
12188 * dwarf2read.c (dwarf2_physname): Move commment.
12189
12190 2018-02-01 Leszek Swirski <leszeks@google.com>
12191
12192 * varobj.c (varobj_formatted_print_options): Allow recursive
12193 pretty printing if pretty printing is enabled.
12194
12195 2018-02-01 Leszek Swirski <leszeks@google.com>
12196
12197 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
12198 names after a structop as a filename.
12199
12200 2018-02-01 Yao Qi <yao.qi@linaro.org>
12201
12202 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
12203 (arm_record_coproc_data_proc): Likewise.
12204
12205 2018-02-01 Yao Qi <yao.qi@linaro.org>
12206
12207 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
12208
12209 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
12210
12211 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
12212 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
12213
12214 2018-01-31 Pedro Alves <palves@redhat.com>
12215
12216 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
12217 * inflow.c (child_terminal_save_inferior): Wrap reference to
12218 tcgetpgrp in HAVE_TERMIOS_H.
12219 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
12220 _WIN32.
12221 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
12222 always iterate over all inferiors.
12223 (gdbsim_cntrl_c): Adjust.
12224 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
12225
12226 2018-01-31 Joel Brobecker <brobecker@adacore.com>
12227
12228 * gdbtypes.c (lookup_array_range_type): Make sure the array's
12229 index type is objfile-owned if the element type is as well.
12230
12231 2018-01-31 Joel Brobecker <brobecker@adacore.com>
12232
12233 GDB 8.1 released.
12234
12235 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
12236
12237 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
12238 "features/s390x-linux64.c".
12239 (_initialize_s390_linux_tdep): Remove initialization of tdescs
12240 s390_linux32 and s390x_linux64.
12241 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
12242 default tdesc.
12243 * s390-tdep.c: Include "features/s390-linux32.c" and
12244 "features/s390x-linux64.c".
12245 (s390_tdesc_valid): Add check for tdesc_has_registers.
12246 (s390_gdbarch_init): Make sure there is always a valid tdesc.
12247 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
12248 tdesc_s390x_linux64.
12249 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
12250 tdesc_s390x_linux64 to...
12251 * s390-tdep.h: ...here.
12252
12253 2018-01-30 Pedro Alves <palves@redhat.com>
12254
12255 PR gdb/13211
12256 * config.in, configure: Regenerate.
12257 * configure.ac: Check for getpgid.
12258 * go32-nat.c (go32_pass_ctrlc): New.
12259 (go32_target): Install it.
12260 * inf-child.c (inf_child_target): Install
12261 child_terminal_save_inferior, child_pass_ctrlc and
12262 child_interrupt.
12263 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
12264 (inf_ptrace_target): No longer install it.
12265 * infcmd.c (interrupt_target_1): Adjust.
12266 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
12267 (child_interrupt): Declare.
12268 (inferior::terminal_state): New.
12269 * inflow.c (struct terminal_info): Update comments.
12270 (inferior_process_group): Delete.
12271 (terminal_is_ours): Delete.
12272 (gdb_tty_state): New.
12273 (child_terminal_init): Adjust.
12274 (is_gdb_terminal, sharing_input_terminal_1)
12275 (sharing_input_terminal): New functions.
12276 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
12277 Set the process's actual process group in the foreground if
12278 possible. Handle is_ours_for_output/is_ours distinction. Don't
12279 mark terminal as the inferior's if not sharing GDB's terminal.
12280 Don't check attach_flag.
12281 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
12282 pass down a target_terminal_state.
12283 (child_terminal_save_inferior): New, factored out from ...
12284 (child_terminal_ours_1): ... this. Handle
12285 target_terminal_state::is_ours_for_output.
12286 (child_interrupt, child_pass_ctrlc): New.
12287 (inflow_inferior_exit): Clear the inferior's terminal_state.
12288 (copy_terminal_info): Copy the inferior's terminal state.
12289 (_initialize_inflow): Remove reference to terminal_is_ours.
12290 * inflow.h (inferior_process_group): Delete.
12291 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
12292 * procfs.c (procfs_target): Don't install procfs_interrupt.
12293 (procfs_interrupt): Delete.
12294 * remote.c (remote_serial_quit_handler): Adjust.
12295 (remote_interrupt): Remove ptid parameter. Adjust.
12296 * target-delegates.c: Regenerate.
12297 * target.c: Include "terminal.h".
12298 (target_terminal::terminal_state): Rename to ...
12299 (target_terminal::m_terminal_state): ... this.
12300 (target_terminal::init): Adjust.
12301 (target_terminal::inferior): Adjust to per-inferior
12302 terminal_state.
12303 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
12304 (target_terminal::ours, target_terminal::ours_for_output): Use
12305 target_terminal_is_ours_kind.
12306 (target_interrupt): Remove ptid parameter. Adjust.
12307 (default_target_pass_ctrlc): Adjust.
12308 * target.h (target_ops::to_terminal_save_inferior): New field.
12309 (target_ops::to_interrupt): Remove ptid_t parameter.
12310 (target_interrupt): Remove ptid_t parameter. Update comment.
12311 (target_pass_ctrlc): Update comment.
12312 * target/target.h (target_terminal_state): New scoped enum,
12313 factored out of ...
12314 (target_terminal::terminal_state): ... here.
12315 (target_terminal::inferior): Update comments.
12316 (target_terminal::restore_inferior): New.
12317 (target_terminal::is_inferior, target_terminal::is_ours)
12318 (target_terminal::is_ours_for_output): Adjust.
12319 (target_terminal::scoped_restore_terminal_state): Adjust to
12320 rename, and call restore_inferior() instead of inferior().
12321 (target_terminal::scoped_restore_terminal_state::m_state): Change
12322 type.
12323 (target_terminal::terminal_state): Rename to ...
12324 (target_terminal::m_terminal_state): ... this and change type.
12325
12326 2018-01-30 Pedro Alves <palves@redhat.com>
12327
12328 * linux-nat.c (wait_for_signal): New function.
12329 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
12330 directly.
12331 (async_terminal_is_ours)
12332 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
12333 (linux_nat_add_target): Don't override
12334 to_terminal_inferior/to_terminal_ours.
12335
12336 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
12337
12338 * remote.c (remote_follow_fork): Don't call "detach_inferior".
12339
12340 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
12341
12342 * dwarf2read.c (free_dwo_files): Add forward-declaration.
12343 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
12344 dwarf2_per_objfile_free here.
12345 (dwarf2_per_objfile_free): Remove.
12346 (_initialize_dwarf2_read): Don't register
12347 dwarf2_per_objfile_free as a registry cleanup.
12348
12349 2018-01-27 Eli Zaretskii <eliz@gnu.org>
12350
12351 Avoid compilation errors in MinGW native builds
12352
12353 The error is triggered by including python-internal.h, and the
12354 error message is:
12355
12356 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
12357 from build-gnulib/import/math.h:27,
12358 from d:/usr/Python26/include/pyport.h:235,
12359 from d:/usr/Python26/include/Python.h:58,
12360 from python/python-internal.h:94,
12361 from python/py-arch.c:24:
12362 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
12363 using ::hypot;
12364 ^~~~~
12365
12366 This happens because Python headers define 'hypot' to expand t
12367 '_hypot' in the Windows builds.
12368 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
12369 'hypoth'. This avoids a compilation error.
12370
12371 2018-01-26 Alan Hayward <alan.hayward@arm.com>
12372
12373 * MAINTAINERS (Write After Approval): Fix ordering.
12374
12375 2018-01-26 Alan Hayward <alan.hayward@arm.com>
12376
12377 * MAINTAINERS (Write After Approval): Add Alan Hayward.
12378
12379 2018-01-26 Alan Modra <amodra@gmail.com>
12380
12381 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
12382 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
12383 Remove nop. Make const. Comment.
12384 (powerpc32_plt_stub_so_2): New.
12385 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
12386 Correct count. Update uses.
12387 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
12388 Move common code reading PLT entry word. Correct
12389 powerpc32_plt_stub PLT address calculation.
12390 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
12391 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
12392 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
12393 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
12394 (ppc64_standard_linkage8): Likewise.
12395 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
12396 Correct insns description.
12397 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
12398
12399 2018-01-24 Pedro Alves <palves@redhat.com>
12400
12401 GCC PR libstdc++/83906
12402 * gdbtypes.c (operator==(const dynamic_prop &,
12403 const dynamic_prop &)): New.
12404 (operator==(const range_bounds &, const range_bounds &)): New.
12405 (check_types_equal): Use them instead of memcmp.
12406 * gdbtypes.h (operator==(const dynamic_prop &,
12407 const dynamic_prop &)): Declare.
12408 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
12409 (operator==(const range_bounds &, const range_bounds &)): Declare.
12410 (operator!=(const range_bounds &, const range_bounds &)): Declare.
12411
12412 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12413
12414 * s390-linux-tdep.c (s390_record_address_mask)
12415 (s390_record_calc_disp_common, s390_record_calc_disp)
12416 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12417 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12418 (s390_process_record): Move to s390-tdep.c.
12419 (s390_linux_init_abi_any): Adjust.
12420 * s390-tdep.c (s390_record_address_mask)
12421 (s390_record_calc_disp_common, s390_record_calc_disp)
12422 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12423 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12424 (s390_process_record): Moved from s390-linux-tdep.c
12425 (s390_gdbarch_init): Adjust.
12426
12427 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12428
12429 * s390-linux-nat.c (s390-tdep.h): New include.
12430 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
12431 (HFILES_NO_SRCDIR): Add s390-tdep.h.
12432 (ALLDEPFILES): Add s390-tdep.c.
12433 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
12434 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
12435 * s390-tdep.h: ...this. New file.
12436 * s390-linux-tdep.c (s390-tdep.h): New include.
12437 (_initialize_s390_tdep): Rename to...
12438 (_initialize_s390_linux_tdep): ...this and adjust.
12439 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
12440 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
12441 s390-tdep.h.
12442 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
12443 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
12444 (s390_is_partial_instruction, s390_software_single_step)
12445 (is_non_branch_ril, s390_displaced_step_copy_insn)
12446 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
12447 (s390_prologue_data, s390_addr, s390_store, s390_load)
12448 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
12449 (s390_register_call_saved, s390_guess_tracepoint_registers)
12450 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
12451 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
12452 (s390_pseudo_register_name, s390_pseudo_register_type)
12453 (s390_pseudo_register_read, s390_pseudo_register_write)
12454 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
12455 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
12456 (s390_addr_bits_remove, s390_address_class_type_flags)
12457 (s390_address_class_type_flags_to_name)
12458 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
12459 (s390_function_arg_float, s390_function_arg_vector)
12460 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
12461 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
12462 (s390_frame_align, s390_register_return_value, s390_return_value)
12463 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
12464 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
12465 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
12466 (s390_trad_frame_prev_register, s390_unwind_cache)
12467 (s390_prologue_frame_unwind_cache)
12468 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
12469 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
12470 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
12471 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
12472 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
12473 (s390_frame_base_address, s390_local_base_address)
12474 (s390_frame_base, s390_gcc_target_options)
12475 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
12476 (s390_validate_reg_range, s390_tdesc_valid)
12477 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
12478 * s390-tdep.c: ...this. New file.
12479
12480 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12481
12482 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
12483 (s390_process_record, s390_gdbarch_tdep_alloc)
12484 (s390_linux_init_abi_any): Use/set new hook.
12485
12486 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12487
12488 * s390-linux-tdep.c (osabi.h): New include.
12489 (s390_linux_init_abi_31, s390_linux_init_abi_64)
12490 (s390_linux_init_abi_any): New functions.
12491 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
12492
12493 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12494
12495 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
12496 tdesc_has_registers check
12497
12498 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12499
12500 * s390-linux-tdep.c (s390_tdesc_valid): New function.
12501 (s390_validate_reg_range): New macro.
12502 (s390_gdbarch_init): Adjust.
12503
12504 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12505
12506 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
12507 (s390_gdbarch_tdep_alloc): Adjust.
12508 (s390_gdbarch_init): Adjust.
12509
12510 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12511
12512 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
12513 <have_tdb>: Change type to bool.
12514 (s390_gdbarch_tdep_alloc): Adjust.
12515 (s390_gdbarch_init): Adjust.
12516
12517 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12518
12519 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
12520 (gdbarch_tdep) <have_upper, have_vx>: New fields.
12521 (s390_gdbarch_tdep_alloc): New function.
12522 (s390_gdbarch_init): Allocate tdep at start and use its fields
12523 instead of separate variables.
12524
12525 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12526
12527 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
12528 when looking for cached gdbarch and add comment for remaining.
12529
12530 2018-01-22 Pedro Alves <palves@redhat.com>
12531 Sergio Durigan Junior <sergiodj@redhat.com>
12532
12533 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
12534 case.
12535
12536 2018-01-22 Maciej W. Rozycki <macro@mips.com>
12537
12538 * MAINTAINERS: Update my company e-mail address.
12539
12540 2018-01-22 Yao Qi <yao.qi@linaro.org>
12541
12542 * regcache.c (cooked_write_test): New function.
12543 (_initialize_regcache): Register the test.
12544
12545 2018-01-22 Yao Qi <yao.qi@linaro.org>
12546
12547 * ia64-tdep.c (ia64_pseudo_register_read): Call
12548 regcache->cooked_read instead of regcache_cooked_read_unsigned.
12549 * m32c-tdep.c (m32c_cat_read): Likewise.
12550 (m32c_r3r2r1r0_read): Likewise.
12551 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
12552 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
12553
12554 2018-01-22 Yao Qi <yao.qi@linaro.org>
12555
12556 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
12557 method raw_read instead of regcache_raw_read.
12558 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
12559 * arm-tdep.c (arm_neon_quad_read): Likewise.
12560 * avr-tdep.c (avr_pseudo_register_read): Likewise.
12561 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
12562 * frv-tdep.c (frv_pseudo_register_read): Likewise.
12563 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
12564 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
12565 (i386_pseudo_register_read_into_value): Likewise.
12566 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
12567 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
12568 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
12569 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
12570 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
12571 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
12572 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
12573 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
12574 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
12575
12576 2018-01-22 Yao Qi <yao.qi@linaro.org>
12577
12578 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
12579 * configure.tgt: Remove target mt.
12580 * mt-tdep.c: Remove.
12581 * regcache.c (cooked_read_test): Remove the check for mt.
12582
12583 2018-01-22 Yao Qi <yao.qi@linaro.org>
12584
12585 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
12586 instead of gdbarch_pseudo_register_read_value.
12587
12588 2018-01-22 Joel Brobecker <brobecker@adacore.com>
12589
12590 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
12591 language is Ada.
12592
12593 2018-01-22 Joel Brobecker <brobecker@adacore.com>
12594
12595 * linespec.c (create_sals_line_offset): Remove code that preserved
12596 the symtab_and_line's line number.
12597
12598 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12599
12600 * varobj.c (varobj_create): Don't set valid_block when creating a
12601 floating varobj.
12602
12603 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12604
12605 * varobj.c (varobj_create): Remove out of date comment.
12606
12607 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12608
12609 PR mi/20395
12610 * ada-exp.y (write_var_from_sym): Pass extra parameter when
12611 updating innermost block.
12612 * parse.c (innermost_block_tracker::update): Take extra type
12613 parameter, and check types match before updating innermost block.
12614 (write_dollar_variable): Update innermost block for registers.
12615 * parser-defs.h (enum innermost_block_tracker_type): New enum.
12616 (innermost_block_tracker::innermost_block_tracker): Initialise
12617 m_types member.
12618 (innermost_block_tracker::reset): Take type parameter.
12619 (innermost_block_tracker::update): Take type parameter, and pass
12620 type through as needed.
12621 (innermost_block_tracker::m_types): New member.
12622 * varobj.c (varobj_create): Pass type when reseting innermost
12623 block.
12624
12625 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12626
12627 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
12628 * ada-lang.c (resolve_subexp): Likewise.
12629 * breakpoint.c (set_breakpoint_condition) Likewise.
12630 (watch_command_1) Likewise.
12631 * c-exp.y (variable): Likewise.
12632 * d-exp.y (PrimaryExpression): Likewise.
12633 * f-exp.y (variable): Likewise.
12634 * go-exp.y (variable): Likewise.
12635 * m2-exp.y (variable): Likewise.
12636 * objfiles.c (objfile::~objfile): Likewise.
12637 * p-exp.y (variable): Likewise.
12638 * parse.c (innermost_block): Change type.
12639 * parser-defs.h (class innermost_block_tracker): New.
12640 (innermost_block): Change to innermost_block_tracker.
12641 * printcmd.c (display_command): Switch to innermost_block API.
12642 (do_one_display): Likewise.
12643 * rust-exp.y (do_one_display): Likewise.
12644 * symfile.c (clear_symtab_users): Likewise.
12645 * varobj.c (varobj_create): Switch to innermost_block API, replace
12646 use of innermost_block with block stored on varobj object.
12647
12648 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12649
12650 * expression.h (innermost_block): Remove declaration.
12651 * varobj.c: Add 'parser-defs.h' include.
12652
12653 2018-01-19 Tom Tromey <tom@tromey.com>
12654
12655 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
12656 symbols in the static and global blocks.
12657
12658 2018-01-19 James Clarke <jrtc27@jrtc27.com>
12659
12660 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
12661 gdb_ptrace.h, and move including gdb_wait.h ...
12662 * nat/linux-ptrace.h: ... to here.
12663
12664 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12665
12666 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
12667 inf_ptrace_detach_success.
12668 (inf_ptrace_detach_success): Add inferior parameter, use it
12669 instead of inferior_ptid, pass it to detach_inferior.
12670 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
12671 parameter.
12672 * inferior.c (detach_inferior): Add overload that takes an
12673 inferior object.
12674 * inferior.h (detach_inferior): Likewise.
12675 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
12676 use inferior_ptid, adjust call to inf_ptrace_detach_success.
12677 * linux-thread-db.c (thread_db_detach): Use inf parameter.
12678
12679 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12680
12681 * target.h (struct target_ops) <to_detach>: Add inferior
12682 parameter.
12683 (target_detach): Likewise.
12684 * target.c (dispose_inferior): Pass inferior down.
12685 (target_detach): Pass inferior down. Assert that it is equal to
12686 the current inferior.
12687 * aix-thread.c (aix_thread_detach): Pass inferior down.
12688 * corefile.c (core_file_command): Pass current_inferior() down.
12689 * corelow.c (core_detach): Add inferior parameter.
12690 * darwin-nat.c (darwin_detach): Likewise.
12691 * gnu-nat.c (gnu_detach): Likewise.
12692 * inf-ptrace.c (inf_ptrace_detach): Likewise.
12693 * infcmd.c (detach_command): Pass current_inferior() down to
12694 target_detach.
12695 * infrun.c (follow_fork_inferior): Pass parent_inf to
12696 target_detach.
12697 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
12698 target_detach.
12699 * linux-nat.c (linux_nat_detach): Add inferior parameter.
12700 * linux-thread-db.c (thread_db_detach): Likewise.
12701 * nto-procfs.c (procfs_detach): Likewise.
12702 * procfs.c (procfs_detach): Likewise.
12703 * record.c (record_detach): Likewise.
12704 * record.h (struct inferior): Forward-declare.
12705 (record_detach): Add inferior parameter.
12706 * remote-sim.c (gdbsim_detach): Likewise.
12707 * remote.c (remote_detach_1): Likewise.
12708 (remote_detach): Likewise.
12709 (extended_remote_detach): Likewise.
12710 * sol-thread.c (sol_thread_detach): Likewise.
12711 * target-debug.h (target_debug_print_inferior_p): New macro.
12712 * target-delegates.c: Re-generate.
12713 * top.c (kill_or_detach): Pass inferior down to target_detach.
12714 * windows-nat.c (windows_detach): Add inferior parameter.
12715
12716 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12717
12718 * target.h (struct target_ops) <to_detach>: Remove args
12719 parameter.
12720 (target_detach): Likewise.
12721 * target.c (dispose_inferior): Adjust.
12722 (target_detach): Remove args parameter, adjust.
12723 * aix-thread.c (aix_thread_detach): Adjust.
12724 * corefile.c (core_file_command): Adjust.
12725 * corelow.c (core_detach): Adjust.
12726 * darwin-nat.c (darwin_detach): Adjust.
12727 * gnu-nat.c (gnu_detach): Adjust.
12728 * inf-ptrace.c (inf_ptrace_detach): Adjust.
12729 * infcmd.c (detach_command): Adjust
12730 * infrun.c (follow_fork_inferior): Adjust.
12731 (handle_vfork_child_exec_or_exit): Adjust.
12732 * linux-fork.c (linux_fork_detach): Remove args parameter.
12733 * linux-fork.h (linux_fork_detach): Likewise.
12734 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
12735 * linux-thread-db.c (thread_db_detach): Likewise.
12736 * nto-procfs.c (procfs_detach): Likewise.
12737 * procfs.c (procfs_detach): Likewise.
12738 (do_detach): Remove signo parameter.
12739 * record.c (record_detach): Remove args parameter.
12740 * record.h (record_detach): Likewise.
12741 * remote-sim.c (gdbsim_detach): Likewise.
12742 * remote.c (remote_detach_1): Likewise.
12743 (remote_detach): Likewise.
12744 (extended_remote_detach): Likewise.
12745 * sol-thread.c (sol_thread_detach): Likewise.
12746 * target-delegates.c: Re-generate.
12747 * top.c (struct qt_args) <args>: Remove field.
12748 (kill_or_detach): Don't pass args.
12749 (quit_force): Don't set args.
12750 * windows-nat.c (windows_detach): Remove args parameter.
12751
12752 2018-01-19 Yao Qi <yao.qi@linaro.org>
12753
12754 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
12755 (arm_linux_init_abi): Install it.
12756
12757 2018-01-19 Yao Qi <yao.qi@linaro.org>
12758
12759 * osabi.c (gdb_osabi_names): Extend the regexp for
12760 arm-linux-gnueabihf.
12761
12762 2018-01-18 Yao Qi <yao.qi@linaro.org>
12763
12764 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
12765 m_abbrevs.
12766 (abbrev_table::add_abbrev): Update.
12767 (abbrev_table::lookup_abbrev): Update.
12768
12769 2018-01-18 Yao Qi <yao.qi@linaro.org>
12770
12771 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
12772
12773 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12774
12775 * compile/compile.c (compile_to_object): Convert "triplet_rx"
12776 to "std::string".
12777
12778 2018-01-17 Tom Tromey <tom@tromey.com>
12779
12780 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
12781
12782 2018-01-17 Tom Tromey <tom@tromey.com>
12783
12784 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
12785 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
12786 (create_array_type_with_stride): Update.
12787 * dwarf2read.c (set_die_type): Update.
12788
12789 2018-01-17 Tom Tromey <tom@tromey.com>
12790
12791 * dwarf2read.c (delayed_method_info): Remove typedef.
12792 (dwarf2_cu::method_info): Now a std::vector.
12793 (add_to_method_list): Update.
12794 (free_delayed_list): Remove.
12795 (compute_delayed_physnames): Update.
12796 (process_full_comp_unit, process_full_type_unit): Clear the method
12797 list. Remove cleanups.
12798 (psymtab_include_file_name): Add name_holder parameter. Use
12799 unique_xmalloc_ptr.
12800 (dwarf_decode_lines): Update.
12801
12802 2018-01-17 Tom Tromey <tom@tromey.com>
12803 Simon Marchi <simon.marchi@ericsson.com>
12804
12805 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
12806 (dwarf2_per_objfile::free_cached_comp_units)
12807 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
12808 (init_cutu_and_read_dies_no_follow): Update.
12809 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
12810 (dwarf2_cu::~dwarf2_cu): New.
12811 (free_heap_comp_unit, free_stack_comp_unit): Remove.
12812 (age_cached_comp_units, free_one_cached_comp_unit): Update.
12813
12814 2018-01-17 Tom Tromey <tom@tromey.com>
12815 Simon Marchi <simon.marchi@ericsson.com>
12816
12817 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
12818 (struct die_reader_specs) <abbrev_table>: New member.
12819 (struct abbrev_table): Add constructor.
12820 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
12821 <abbrev_obstack>: Now an auto_obstack.
12822 (abbrev_table_up): New typedef.
12823 (init_cu_die_reader): Add abbrev_table parameter.
12824 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
12825 Add result_dwo_abbrev_table.
12826 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
12827 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
12828 Update.
12829 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
12830 parameter.
12831 (skip_children): Update.
12832 (abbrev_table::alloc_abbrev): Rename from
12833 abbrev_table_alloc_abbrev.
12834 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
12835 (abbrev_table::lookup_abbrev): Rename from
12836 abbrev_table_lookup_abbrev.
12837 (abbrev_table_read_table): Return abbrev_table_up.
12838 (abbrev_table_free, abbrev_table_free_cleanup)
12839 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
12840 (load_partial_dies): Update.
12841
12842 2018-01-17 Tom Tromey <tom@tromey.com>
12843
12844 * dwarf2read.c (dwarf2_compute_name): Update comment.
12845 (read_func_scope, read_variable): Update.
12846 (new_symbol): Remove.
12847 (new_symbol_full): Rename to new_symbol.
12848
12849 2018-01-17 Mike Gulick <mgulick@mathworks.com>
12850
12851 PR gdb/16577
12852 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
12853 a warning instead of throwing an error, set section size to 0 and return
12854 NULL.
12855 * gdb_bfd.h (gdb_bfd_map_section): Update description.
12856
12857 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
12858
12859 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
12860 std::string.
12861 (linux_ptrace_attach_fail_reason_string): Likewise.
12862 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
12863 Likewise.
12864 (linux_ptrace_attach_fail_reason_string): Likewise.
12865 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
12866
12867 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
12868
12869 * linux-nat.c (linux_nat_attach): Remove xstrdup.
12870
12871 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
12872
12873 PR gdb/21559
12874 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
12875 checking for fs_base/gs_base fields in struct user_regs_struct.
12876 * configure: Regenerate.
12877
12878 2018-01-17 Yao Qi <yao.qi@linaro.org>
12879
12880 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
12881 function.
12882 (aarch64_linux_init_abi): Install it to gdbarch hook
12883 gcc_target_options.
12884
12885 2018-01-15 Pedro Alves <palves@redhat.com>
12886
12887 * common/signals-state-save-restore.c
12888 (save_original_signals_state): Fix typos.
12889
12890 2017-01-12 Tom Tromey <tom@tromey.com>
12891 Sergio Durigan Junior <sergiodj@redhat.com>
12892
12893 * Makefile.in (install-only): Install gdb-add-index.
12894
12895 2018-01-12 John Baldwin <jhb@FreeBSD.org>
12896
12897 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
12898
12899 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12900
12901 * infrun.c (keep_going_pass_signal): Clear step-over info when
12902 insert_breakpoints fails.
12903
12904 2018-01-11 Pedro Alves <palves@redhat.com>
12905
12906 PR gdb/22583
12907 * infrun.c (resume): Rename to ...
12908 (resume_1): ... this.
12909 (resume): Reimplement as wrapper around resume_1.
12910
12911 2018-01-11 Pedro Alves <palves@redhat.com>
12912
12913 PR remote/22597
12914 * remote.c (remote_parse_stop_reply): Default to the last-set
12915 general thread instead of to 'magic_null_ptid'.
12916
12917 2018-01-10 Pedro Alves <palves@redhat.com>
12918
12919 * language.h (language_get_symbol_name_matcher): Rename ...
12920 (get_symbol_name_matcher): ... this.
12921 * language.c (language_get_symbol_name_matcher): Ditto.
12922 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
12923 callers adjusted.
12924
12925 2018-01-10 Pedro Alves <palves@redhat.com>
12926
12927 PR gdb/22670
12928 * dwarf2read.c
12929 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
12930 Adjust to use language_get_symbol_name_matcher instead of
12931 language_defn::la_get_symbol_name_matcher.
12932 * language.c (language_get_symbol_name_matcher): If in Ada mode
12933 and the lookup name is a verbatim match, return Ada's matcher.
12934 * language.h (language_get_symbol_name_matcher): Adjust comment.
12935 (ada_lookup_name_info::verbatim_p):: New method.
12936
12937 2018-01-10 Pedro Alves <palves@redhat.com>
12938
12939 PR gdb/22670
12940 * ada-lang.c (ada_collect_symbol_completion_matches): If the
12941 minsym's language is language_auto or language_cplus, pass down
12942 language_ada instead.
12943 * symtab.c (compare_symbol_name): Don't frob symbol language here.
12944
12945 2018-01-10 Pedro Alves <palves@redhat.com>
12946
12947 PR gdb/22670
12948 * minsyms.c (linkage_name_str): New function.
12949 (iterate_over_minimal_symbols): Use it.
12950
12951 2018-01-09 John Baldwin <jhb@FreeBSD.org>
12952
12953 * NEWS: Document that 'info proc' now works on FreeBSD.
12954
12955 2018-01-09 John Baldwin <jhb@FreeBSD.org>
12956
12957 * configure.ac: Check for kinfo_getfile in libutil.
12958 * configure: Regenerate.
12959 * config.in: Regenerate.
12960 * fbsd-nat.c: Include "fbsd-tdep.h".
12961 (fbsd_fetch_cmdline): New.
12962 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
12963 rather than calling error.
12964 (fbsd_info_proc): New.
12965 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
12966 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
12967 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
12968
12969 2018-01-09 John Baldwin <jhb@FreeBSD.org>
12970
12971 * fbsd-nat.c (struct free_deleter): Remove.
12972 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
12973
12974 2018-01-09 John Baldwin <jhb@FreeBSD.org>
12975
12976 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
12977 NULL for an empty pathname.
12978
12979 2018-01-09 John Baldwin <jhb@FreeBSD.org>
12980
12981 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
12982 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
12983 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12984 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12985 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
12986 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
12987 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
12988 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
12989 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
12990 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
12991 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
12992 (fbsd_core_fetch_timeval, fbsd_print_sigset)
12993 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
12994 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
12995 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
12996
12997 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
12998
12999 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
13000 (gnu_xfer_auxv): New function.
13001 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
13002 TARGET_OBJECT_AUXV.
13003
13004 2018-01-08 Yao Qi <yao.qi@linaro.org>
13005 Simon Marchi <simon.marchi@ericsson.com>
13006
13007 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
13008 common/selftest.c.
13009 (COMMON_OBS): Remove selftest.o.
13010 * configure.ac: Append selftest-arch.c and common/selftest.c to
13011 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
13012 * configure: Re-generated.
13013 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
13014 GDB_SELF_TEST.
13015 (maintenance_info_selftests): Likewise.
13016
13017 2018-01-08 Xavier Roirand <roirand@adacore.com>
13018
13019 * ada-valprint.c (val_print_packed_array_elements): Use
13020 proper number of elements when printing an array indexed
13021 by an enumeration type.
13022
13023 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13024
13025 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
13026 (dw2_get_file_names_reader): Adjust.
13027 (lookup_dwo_signatured_type): Adjust.
13028 (lookup_dwp_signatured_type): Adjust.
13029 (lookup_signatured_type): Adjust.
13030 (create_type_unit_group): Adjust.
13031 (get_type_unit_group): Adjust.
13032 (process_psymtab_comp_unit_reader): Adjust.
13033 (build_type_psymtabs_reader): Adjust.
13034 (scan_partial_symbols): Adjust.
13035 (add_partial_symbol): Adjust.
13036 (add_partial_subprogram): Adjust.
13037 (peek_die_abbrev): Adjust.
13038 (fixup_go_packaging): Adjust.
13039 (process_imported_unit_die): Adjust.
13040 (dwarf2_compute_name): Adjust.
13041 (dwarf2_physname): Adjust.
13042 (read_import_statement): Adjust.
13043 (handle_DW_AT_stmt_list): Adjust.
13044 (read_file_scope): Adjust.
13045 (read_func_scope): Adjust.
13046 (read_lexical_block_scope): Adjust.
13047 (read_call_site_scope): Adjust.
13048 (read_variable): Adjust.
13049 (dwarf2_rnglists_process): Adjust.
13050 (dwarf2_ranges_process): Adjust.
13051 (dwarf2_ranges_read): Adjust.
13052 (dwarf2_get_pc_bounds): Adjust.
13053 (dwarf2_record_block_ranges): Adjust.
13054 (dwarf2_add_field): Adjust.
13055 (dwarf2_add_member_fn): Adjust.
13056 (read_structure_type): Adjust.
13057 (process_structure_scope): Adjust.
13058 (read_enumeration_type): Adjust.
13059 (read_array_type): Adjust.
13060 (mark_common_block_symbol_computed): Adjust.
13061 (read_common_block): Adjust.
13062 (read_namespace_type): Adjust.
13063 (read_namespace): Adjust.
13064 (read_module_type): Adjust.
13065 (read_tag_pointer_type): Adjust.
13066 (read_tag_ptr_to_member_type): Adjust.
13067 (read_tag_string_type): Adjust.
13068 (read_subroutine_type): Adjust.
13069 (read_typedef): Adjust.
13070 (read_base_type): Adjust.
13071 (attr_to_dynamic_prop): Adjust.
13072 (read_subrange_type): Adjust.
13073 (read_unspecified_type): Adjust.
13074 (dwarf2_read_abbrevs): Adjust.
13075 (load_partial_dies): Adjust.
13076 (read_partial_die): Adjust.
13077 (find_partial_die): Adjust.
13078 (guess_partial_die_structure_name): Adjust.
13079 (fixup_partial_die): Adjust.
13080 (read_attribute_value): Adjust.
13081 (read_addr_index): Adjust.
13082 (read_addr_index_from_leb128): Adjust.
13083 (read_str_index): Adjust.
13084 (dwarf2_string_attr): Adjust.
13085 (get_debug_line_section): Adjust.
13086 (dwarf_decode_line_header): Adjust.
13087 (lnp_state_machine::check_line_address): Adjust.
13088 (dwarf_decode_lines_1): Adjust.
13089 (dwarf_decode_lines): Adjust.
13090 (dwarf2_start_symtab): Adjust.
13091 (var_decode_location): Adjust.
13092 (new_symbol_full): Adjust.
13093 (dwarf2_const_value_data): Adjust.
13094 (dwarf2_const_value_attr): Adjust.
13095 (dwarf2_const_value): Adjust.
13096 (die_type): Adjust.
13097 (die_containing_type): Adjust.
13098 (build_error_marker_type): Adjust.
13099 (lookup_die_type): Adjust.
13100 (guess_full_die_structure_name): Adjust.
13101 (anonymous_struct_prefix): Adjust.
13102 (determine_prefix): Adjust.
13103 (dwarf2_name): Adjust.
13104 (follow_die_ref_or_sig): Adjust.
13105 (follow_die_offset): Adjust.
13106 (follow_die_ref): Adjust.
13107 (follow_die_sig_1): Adjust.
13108 (follow_die_sig): Adjust.
13109 (get_signatured_type): Adjust.
13110 (get_DW_AT_signature_type): Adjust.
13111 (decode_locdesc): Adjust.
13112 (dwarf_decode_macros): Adjust.
13113 (cu_debug_loc_section): Adjust.
13114 (fill_in_loclist_baton): Adjust.
13115 (dwarf2_symbol_mark_computed): Adjust.
13116 (init_one_comp_unit): Don't assign
13117 dwarf2_cu::dwarf2_per_objfile.
13118 (set_die_type): Adjust.
13119
13120 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13121
13122 * dwarf2read.c (struct mapped_debug_names): Add constructor.
13123 <dwarf2_per_objfile>: New field.
13124 (dwarf2_per_objfile): Remove global.
13125 (get_dwarf2_per_objfile): New function.
13126 (set_dwarf2_per_objfile): New function.
13127 (dwarf2_build_psymtabs_hard): Change objfile parameter to
13128 dwarf2_per_objfile.
13129 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
13130 (read_abbrev_offset): Likewise.
13131 (read_indirect_string): Likewise.
13132 (read_indirect_line_string): Likewise.
13133 (read_indirect_string_at_offset): Likewise.
13134 (read_indirect_string_from_dwz): Likewise.
13135 (dwarf2_find_containing_comp_unit): Change objfile parameter to
13136 dwarf2_per_objfile.
13137 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
13138 (create_all_comp_units): Change objfile parameter to
13139 dwarf2_per_objfile.
13140 (create_all_type_units): Likewise.
13141 (process_queue): Add dwarf2_per_objfile parameter.
13142 (read_and_check_comp_unit_head): Likewise.
13143 (lookup_dwo_unit_in_dwp): Likewise.
13144 (get_dwp_file): Likewise.
13145 (process_cu_includes): Likewise.
13146 (struct free_dwo_file_cleanup_data): New struct.
13147 (dwarf2_has_info): Use get_dwarf2_per_objfile and
13148 set_dwarf2_per_objfile.
13149 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
13150 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
13151 context, adjust calls.
13152 (dw2_instantiate_symtab): Likewise.
13153 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
13154 (dw2_get_cu): Likewise.
13155 (create_cu_from_index_list): Change objfile parameter to
13156 dwarf2_per_objfile.
13157 (create_cus_from_index_list): Get dwarf2_per_objfile from
13158 context, adjust calls.
13159 (create_cus_from_index): Likewise.
13160 (create_signatured_type_table_from_index): Change objfile
13161 parameter to dwarf2_per_objfile.
13162 (create_signatured_type_table_from_debug_names): Change objfile
13163 parameter to dwarf2_per_objfile.
13164 (create_addrmap_from_index): Likewise.
13165 (create_addrmap_from_aranges): Likewise.
13166 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
13167 (dw2_setup): Remove.
13168 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
13169 context.
13170 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
13171 get_dwarf2_per_objfile.
13172 (dw2_forget_cached_source_info): Likewise.
13173 (dw2_map_symtabs_matching_filename): Likewise.
13174 (struct dw2_symtab_iterator) <index>: Remove.
13175 <dwarf2_per_objfile>: New field.
13176 (dw2_symtab_iter_init): Replace index parameter with
13177 dwarf2_per_objfile.
13178 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
13179 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
13180 (dw2_print_stats): Likewise.
13181 (dw2_dump): Likewise.
13182 (dw2_expand_symtabs_for_function): Likewise.
13183 (dw2_expand_all_symtabs): Likewise.
13184 (dw2_expand_symtabs_with_fullname): Likewise.
13185 (dw2_expand_marked_cus): Replace index and objfile parameters
13186 with dwarf2_per_objfile.
13187 (dw_expand_symtabs_matching_file_matcher): Add
13188 dwarf2_per_objfile parameter and adjust calls.
13189 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
13190 adjust calls.
13191 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
13192 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
13193 adjust calls.
13194 (create_cus_from_debug_names_list): Replace objfile parameter
13195 with dwarf2_per_objfile and adjust calls.
13196 (create_cus_from_debug_names): Likewise.
13197 (dwarf2_read_debug_names): Likewise.
13198 (mapped_debug_names::namei_to_name): Adjust call.
13199 (dw2_debug_names_iterator::next): Likewise.
13200 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
13201 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
13202 (dw2_debug_names_dump): Likewise.
13203 (dw2_debug_names_expand_symtabs_for_function): Likewise.
13204 (dw2_debug_names_expand_symtabs_matching): Likewise.
13205 (dwarf2_initialize_objfile): Likewise.
13206 (dwarf2_build_psymtabs): Likewise.
13207 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
13208 this_cu.
13209 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
13210 (read_and_check_comp_unit_head): Likewise.
13211 (read_abbrev_offset): Likewise.
13212 (create_debug_type_hash_table): Likewise.
13213 (create_debug_types_hash_table): Likewise.
13214 (create_all_type_units): Replace objfile parameter with
13215 dwarf2_per_objfile.
13216 (add_type_unit): Add dwarf2_per_objfile parameter.
13217 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
13218 with dwarf2_per_objfile.
13219 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
13220 (lookup_dwp_signatured_type): Likewise.
13221 (lookup_signatured_type): Likewise.
13222 (read_cutu_die_from_dwo): Likewise.
13223 (init_tu_and_read_dwo_dies): Likewise.
13224 (init_cutu_and_read_dies): Likewise.
13225 (init_cutu_and_read_dies_no_follow): Likewise.
13226 (allocate_type_unit_groups_table): Add objfile parameter.
13227 (create_type_unit_group): Use dwarf2_per_objfile from cu.
13228 (get_type_unit_group): Likewise.
13229 (process_psymtab_comp_unit): Update call.
13230 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
13231 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
13232 (print_tu_stats): Likewise.
13233 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
13234 in void* parameter.
13235 (build_type_psymtabs): Change objfile parameter to
13236 dwarf2_per_objfile.
13237 (process_skeletonless_type_unit): Use dwarf2_per_objfile
13238 passed in void* parameter.
13239 (process_skeletonless_type_units): Change objfile parameter to
13240 dwarf2_per_objfile.
13241 (set_partial_user): Likewise.
13242 (dwarf2_build_psymtabs_hard): Likewise.
13243 (read_comp_units_from_section): Likewise.
13244 (create_all_comp_units): Likewise.
13245 (scan_partial_symbols): Update calls.
13246 (add_partial_symbol): Likewise.
13247 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
13248 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
13249 (process_queue): Add dwarf2_per_objfile parameter.
13250 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
13251 (compute_compunit_symtab_includes): Likewise.
13252 (process_cu_includes): Add dwarf2_per_objfile parameter.
13253 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
13254 (process_full_type_unit): Likewise.
13255 (process_imported_unit_die): Update call.
13256 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
13257 (read_file_scope): Likewise.
13258 (allocate_dwo_file_hash_table): Add objfile parameter.
13259 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
13260 (create_cus_hash_table): Likewise.
13261 (create_dwp_hash_table): Likewise.
13262 (create_dwo_unit_in_dwp_v1): Likewise.
13263 (create_dwp_v2_section): Likewise.
13264 (create_dwo_unit_in_dwp_v2): Likewise.
13265 (lookup_dwo_unit_in_dwp): Likewise.
13266 (try_open_dwop_file): Likewise.
13267 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
13268 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
13269 cleanup to include a reference to dwarf2_per_objfile.
13270 (open_dwp_file): Add dwarf2_per_objfile parameter.
13271 (open_and_init_dwp_file): Likewise.
13272 (get_dwp_file): Likewise.
13273 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
13274 (queue_and_load_all_dwo_tus): Update call.
13275 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
13276 data.
13277 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
13278 (dwarf2_ranges_process): Likewise.
13279 (dwarf2_get_pc_bounds): Likewise.
13280 (mark_common_block_symbol_computed): Likewise.
13281 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
13282 (dwarf2_read_abbrevs): Update call.
13283 (read_partial_die): Use dwarf2_per_objfile from cu.
13284 (find_partial_die): Likewise.
13285 (fixup_partial_die): Likewise.
13286 (read_attribute_value): Likewise.
13287 (read_indirect_string_at_offset_from): Add objfile parameter.
13288 (read_indirect_string_at_offset): Add dwarf2_per_objfile
13289 parameter.
13290 (read_indirect_string_from_dwz): Add objfile parameter.
13291 (read_indirect_string): Add objfile parameter.
13292 (read_addr_index_1): Add dwarf2_per_objfile parameter.
13293 (read_addr_index): Use dwarf2_per_objfile from cu.
13294 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
13295 call dw2_setup.
13296 (read_str_index): Use dwarf2_per_objfile from cu.
13297 (get_debug_line_section): Likewise.
13298 (read_formatted_entries): Add dwarf2_per_objfile parameter.
13299 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
13300 (new_symbol_full): Use dwarf2_per_objfile from cu.
13301 (build_error_marker_type): Likewise.
13302 (lookup_die_type): Likewise.
13303 (determine_prefix): Likewise.
13304 (follow_die_offset): Likewise.
13305 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
13306 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
13307 (dwarf2_fetch_die_type_sect_off): Likewise.
13308 (dwarf2_get_die_type): Likewise.
13309 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
13310 (get_signatured_type): Likewise.
13311 (get_DW_AT_signature_type): Likewise.
13312 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
13313 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
13314 (cu_debug_loc_section): Likewise.
13315 (fill_in_loclist_baton): Likewise.
13316 (dwarf2_symbol_mark_computed): Likewise.
13317 (dwarf2_find_containing_comp_unit): Change objfile parameter to
13318 dwarf2_per_objfile.
13319 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
13320 parameter.
13321 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
13322 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
13323 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
13324 (set_die_type): Use dwarf2_free_objfile from cu.
13325 (get_die_type_at_offset): Likewise.
13326 (dwarf2_per_objfile_free): Don't assign global variable.
13327 (debug_names) <constructor>: Add dwarf2_per_objfile
13328 parameter, update m_debugstrlookup construction.
13329 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
13330 parameter.
13331 <m_dwarf2_per_objfile>: New field.
13332 <lookup>: Use m_dwarf2_per_objfile.
13333 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
13334 (psyms_seen_size): Likewise.
13335 (write_gdbindex): Replace objfile parameter with
13336 dwarf2_per_objfile.
13337 (write_debug_names): Likewise.
13338 (write_psymtabs_to_index): Likewise.
13339 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
13340 calls.
13341
13342 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13343
13344 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
13345 <dwarf2_per_objfile>: New field.
13346 (struct dwarf2_per_cu_data) <objfile>: Remove.
13347 <dwarf2_per_objfile>: New field.
13348 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
13349 of objfile.
13350 (create_signatured_type_table_from_index): Likewise.
13351 (create_debug_type_hash_table): Likewise.
13352 (fill_in_sig_entry_from_dwo_entry): Likewise.
13353 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
13354 (create_type_unit_group): Assign dwarf2_per_objfile instead of
13355 objfile.
13356 (create_partial_symtab): Access objfile through
13357 dwarf2_per_objfile.
13358 (process_psymtab_comp_unit_reader): Likewise.
13359 (read_comp_units_from_section): Likewise.
13360 (scan_partial_symbols): Likewise.
13361 (add_partial_symbol): Likewise.
13362 (add_partial_subprogram): Likewise.
13363 (peek_die_abbrev): Likewise.
13364 (fixup_go_packaging): Likewise.
13365 (process_full_comp_unit): Likewise.
13366 (process_full_type_unit): Likewise.
13367 (process_imported_unit_die): Likewise.
13368 (dwarf2_compute_name): Likewise.
13369 (dwarf2_physname): Likewise.
13370 (read_import_statement): Likewise.
13371 (create_cus_hash_table): Assign dwarf2_physname instead of
13372 objfile.
13373 (read_func_scope): Access objfile through dwarf2_per_objfile.
13374 (read_lexical_block_scope): Likewise.
13375 (read_call_site_scope): Likewise.
13376 (read_variable): Likewise.
13377 (dwarf2_rnglists_process): Likewise.
13378 (dwarf2_ranges_process): Likewise.
13379 (dwarf2_ranges_read): Likewise.
13380 (dwarf2_record_block_ranges): Likewise.
13381 (dwarf2_add_field): Likewise.
13382 (dwarf2_add_member_fn): Likewise.
13383 (read_structure_type): Likewise.
13384 (process_structure_scope): Likewise.
13385 (read_enumeration_type): Likewise.
13386 (read_array_type): Likewise.
13387 (read_common_block): Likewise.
13388 (read_namespace_type): Likewise.
13389 (read_namespace): Likewise.
13390 (read_module_type): Likewise.
13391 (read_tag_pointer_type): Likewise.
13392 (read_tag_ptr_to_member_type): Likewise.
13393 (read_tag_string_type): Likewise.
13394 (read_subroutine_type): Likewise.
13395 (read_typedef): Likewise.
13396 (read_base_type): Likewise.
13397 (attr_to_dynamic_prop): Likewise.
13398 (read_subrange_type): Likewise.
13399 (read_unspecified_type): Likewise.
13400 (load_partial_dies): Likewise.
13401 (read_partial_die): Likewise.
13402 (find_partial_die): Likewise.
13403 (guess_partial_die_structure_name): Likewise.
13404 (fixup_partial_die): Likewise.
13405 (read_attribute_value): Likewise.
13406 (read_addr_index_from_leb128): Likewise.
13407 (dwarf2_read_addr_index): Likewise.
13408 (dwarf2_string_attr): Likewise.
13409 (lnp_state_machine::check_line_address): Likewise.
13410 (dwarf_decode_lines_1): Likewise.
13411 (dwarf_decode_lines): Likewise.
13412 (dwarf2_start_symtab): Likewise.
13413 (var_decode_location): Likewise.
13414 (new_symbol_full): Likewise.
13415 (dwarf2_const_value_data): Likewise.
13416 (dwarf2_const_value_attr): Likewise.
13417 (dwarf2_const_value): Likewise.
13418 (die_type): Likewise.
13419 (die_containing_type): Likewise.
13420 (lookup_die_type): Likewise.
13421 (guess_full_die_structure_name): Likewise.
13422 (anonymous_struct_prefix): Likewise.
13423 (dwarf2_name): Likewise.
13424 (follow_die_ref_or_sig): Likewise.
13425 (follow_die_offset): Likewise.
13426 (follow_die_ref): Likewise.
13427 (dwarf2_fetch_die_loc_sect_off): Likewise.
13428 (dwarf2_fetch_constant_bytes): Likewise.
13429 (dwarf2_fetch_die_type_sect_off): Likewise.
13430 (dwarf2_get_die_type): Likewise.
13431 (follow_die_sig): Likewise.
13432 (decode_locdesc): Likewise.
13433 (dwarf2_per_cu_objfile): Likewise.
13434 (dwarf2_per_cu_text_offset): Likewise.
13435 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
13436 objfile.
13437 (set_die_type): Access objfile through
13438 dwarf2_per_objfile.
13439
13440 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13441
13442 * valprint.c (converted_character_d): Remove typedef.
13443 (DEF_VEC_O (converted_character_d)): Remove.
13444 (count_next_character): Use std::vector.
13445 (print_converted_chars_to_obstack): Likewise.
13446 (generic_printstr): Likewise.
13447
13448 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13449
13450 * xml-support.h (struct gdb_xml_value): Add constructor.
13451 <value>: Change type to unique_xmalloc_ptr.
13452 (gdb_xml_value_s): Remove typedef.
13453 (DEF_VEC_O (gdb_xml_value_s)): Remove.
13454 (gdb_xml_element_start_handler): Change parameter type to
13455 std::vector.
13456 (xml_find_attribute): Likewise.
13457 * xml-support.c (xml_find_attribute): Change parameter type to
13458 std::vector and adjust.
13459 (gdb_xml_values_cleanup): Remove.
13460 (gdb_xml_parser::start_element): Adjust to std::vector.
13461 (xinclude_start_include): Change paraeter type to std::vector
13462 and adjust.
13463 * btrace.c (check_xml_btrace_version): Likewise.
13464 (parse_xml_btrace_block): Likewise.
13465 (parse_xml_btrace_pt_config_cpu): Likewise.
13466 (parse_xml_btrace_pt): Likewise.
13467 (parse_xml_btrace_conf_bts): Likewise.
13468 (parse_xml_btrace_conf_pt): Likewise.
13469 * memory-map.c (memory_map_start_memory): Likewise.
13470 (memory_map_start_property): Likewise.
13471 * osdata.c (osdata_start_osdata): Likewise.
13472 (osdata_start_item): Likewise.
13473 (osdata_start_column): Likewise.
13474 * remote.c (start_thread): Likewise.
13475 * solib-aix.c (library_list_start_library): Likewise.
13476 (library_list_start_list): Likewise.
13477 * solib-svr4.c (library_list_start_library): Likewise.
13478 (svr4_library_list_start_list): Likewise.
13479 * solib-target.c (library_list_start_segment): Likewise.
13480 (library_list_start_section): Likewise.
13481 (library_list_start_library): Likewise.
13482 (library_list_start_list): Likewise.
13483 * tracepoint.c (traceframe_info_start_memory): Likewise.
13484 (traceframe_info_start_tvar): Likewise.
13485 * xml-syscall.c (syscall_start_syscall): Likewise.
13486 * xml-tdesc.c (tdesc_start_target): Likewise.
13487 (tdesc_start_feature): Likewise.
13488 (tdesc_start_reg): Likewise.
13489 (tdesc_start_union): Likewise.
13490 (tdesc_start_struct): Likewise.
13491 (tdesc_start_flags): Likewise.
13492 (tdesc_start_enum): Likewise.
13493 (tdesc_start_field): Likewise.
13494 (tdesc_start_enum_value): Likewise.
13495 (tdesc_start_vector): Likewise.
13496
13497 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13498
13499 * extension.h (struct xmethod_worker) <clone>: Remove.
13500 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
13501 Remove.
13502 (python_xmethod_worker::clone): Remove.
13503 * valops.c (find_overload_match): Use std::move instead of
13504 clone.
13505
13506 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13507
13508 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
13509 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
13510 <free_xmethod_worker_data>: Remove.
13511 <get_matching_xmethod_workers>: Chance VEC to std::vector.
13512 <get_xmethod_arg_types>: Remove.
13513 <get_xmethod_result_type>: Remove.
13514 <invoke_xmethod>: Remove.
13515 * extension.c (new_xmethod_worker): Remove.
13516 (clone_xmethod_worker): Remove.
13517 (get_matching_xmethod_workers): Return void, pass std::vector by
13518 pointer.
13519 (get_xmethod_arg_types): Rename to...
13520 (xmethod_worker::get_arg_types): ... this, and adjust.
13521 (get_xmethod_result_type): Rename to...
13522 (xmethod_worker::get_result_type): ... this, and adjust.
13523 (invoke_xmethod): Remove.
13524 (free_xmethod_worker): Remove.
13525 (free_xmethod_worker_vec): Remove.
13526 * extension.h (enum ext_lang_rc): Move here from
13527 extension-priv.h.
13528 (struct xmethod_worker): Add constructor and destructor.
13529 <data>: Remove.
13530 <value>: Remove.
13531 <invoke, clone, do_get_result_type, do_get_arg_types>: New
13532 virtual pure methods.
13533 <get_arg_types, get_result_type>: New methods.
13534 (xmethod_worker_ptr): Remove typedef.
13535 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
13536 (xmethod_worker_vec): Remove typedef.
13537 (xmethod_worker_up): New typedef.
13538 (invoke_xmethod): Remove.
13539 (clone_xmethod_worker): Remove.
13540 (free_xmethod_worker): Remove.
13541 (free_xmethod_worker_vec): Remove.
13542 (get_xmethod_arg_types): Remove.
13543 (get_xmethod_result_type): Remove.
13544 * valops.c (find_method_list): Use std::vector, don't use
13545 intermediate vector.
13546 (value_find_oload_method_list): Use std::vector.
13547 (find_overload_match): Use std::vector.
13548 (find_oload_champ): Use std::vector.
13549 * value.c (value_free): Use operator delete.
13550 (value_of_xmethod): Rename to...
13551 (value_from_xmethod): ... this. Don't assign
13552 xmethod_worker::value, take rvalue-reference.
13553 (result_type_of_xmethod): Adjust.
13554 (call_xmethod): Adjust.
13555 * value.h: Include extension.h.
13556 (struct xmethod_worker): Don't forward-declare.
13557 (value_of_xmethod): Rename to...
13558 (value_from_xmethod): ... this, take rvalue-reference.
13559 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
13560 (struct python_xmethod_worker): ... this, add constructor and
13561 destructor.
13562 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
13563 (gdbpy_free_xmethod_worker_data): Rename to...
13564 (python_xmethod_worker::~python_xmethod_worker): ... this and
13565 adjust.
13566 (gdbpy_clone_xmethod_worker_data): Rename to...
13567 (python_xmethod_worker::clone): ... this and adjust.
13568 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
13569 temporary vector.
13570 (gdbpy_get_xmethod_arg_types): Rename to...
13571 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
13572 (gdbpy_get_xmethod_result_type): Rename to...
13573 (python_xmethod_worker::do_get_result_type): ... this and
13574 adjust.
13575 (gdbpy_invoke_xmethod): Rename to...
13576 (python_xmethod_worker::invoke): ... this and adjust.
13577 (new_python_xmethod_worker): Rename to...
13578 (python_xmethod_worker::python_xmethod_worker): ... this and
13579 adjust.
13580 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
13581 Remove.
13582 (gdbpy_free_xmethod_worker_data): Remove.
13583 (gdbpy_get_matching_xmethod_workers): Use std::vector.
13584 (gdbpy_get_xmethod_arg_types): Remove.
13585 (gdbpy_get_xmethod_result_type): Remove.
13586 (gdbpy_invoke_xmethod): Remove.
13587 * python/python.c (python_extension_ops): Remove obsolete
13588 callbacks.
13589
13590 2018-01-05 Pedro Alves <palves@redhat.com>
13591
13592 PR gdb/18653
13593 * common/signals-state-save-restore.c
13594 (save_original_signals_state): New parameter 'quiet'. Warn if we
13595 find a custom handler preinstalled, instead of internal erroring.
13596 But only warn if !quiet.
13597 * common/signals-state-save-restore.h
13598 (save_original_signals_state): New parameter 'quiet'.
13599 * main.c (captured_main_1): Move save_original_signals_state call
13600 after option handling, and pass QUIET.
13601
13602 2018-01-05 Pedro Alves <palves@redhat.com>
13603
13604 * spu-tdep.c (spu_catch_start): Pass
13605 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
13606
13607 2018-01-05 Pedro Alves <palves@redhat.com>
13608
13609 PR gdb/22670
13610 * ada-lang.c (literal_symbol_name_matcher): New function.
13611 (ada_get_symbol_name_matcher): Use it for
13612 symbol_name_match_type::SEARCH_NAME.
13613 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
13614 it down instead of assuming symbol_name_match_type::FULL.
13615 * block.h (block_lookup_symbol): New parameter 'match_type'.
13616 * c-valprint.c (print_unpacked_pointer): Use
13617 lookup_symbol_search_name instead of lookup_symbol.
13618 * compile/compile-object-load.c (get_out_value_type): Pass down
13619 symbol_name_match_type::SEARCH_NAME.
13620 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
13621 symbol_name_match_type::FULL.
13622 * cp-support.c (cp_get_symbol_name_matcher): Handle
13623 symbol_name_match_type::SEARCH_NAME.
13624 * infrun.c (insert_exception_resume_breakpoint): Use
13625 lookup_symbol_search_name.
13626 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
13627 * psymtab.c (maintenance_check_psymtabs): Use
13628 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
13629 * stack.c (print_frame_args): Use lookup_symbol_search_name and
13630 SYMBOL_SEARCH_NAME.
13631 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
13632 if symbol_name_match_type::SEARCH_NAME.
13633 (lookup_symbol_in_language): Pass down
13634 symbol_name_match_type::FULL.
13635 (lookup_symbol_search_name): New.
13636 (lookup_language_this): Pass down
13637 symbol_name_match_type::SEARCH_NAME.
13638 (lookup_symbol_aux, lookup_local_symbol): New parameter
13639 'match_type'. Pass it down.
13640 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
13641 (lookup_symbol_search_name): New declaration.
13642 (lookup_symbol_in_block): New 'match_type' parameter.
13643
13644 2018-01-05 Pedro Alves <palves@redhat.com>
13645
13646 PR gdb/22670
13647 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
13648 ada_lookup_symbol.
13649 (ada_lookup_symbol): Reimplement in terms of
13650 ada_lookup_symbol_list, bits factored out from
13651 ada_lookup_encoded_symbol.
13652
13653 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13654
13655 * ada-exp.y (write_object_renaming): When subscripting an array
13656 using a symbol as the index, pass the block in call to
13657 ada_lookup_encoded_symbol when looking that symbol up.
13658
13659 2018-01-05 Jerome Guitton <guitton@adacore.com>
13660
13661 * ada-lang.c (ada_array_length): Use ada_index_type instead of
13662 TYPE_INDEX_TYPE.
13663
13664 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13665
13666 * ada-lang.c (ada_to_fixed_value_create): Add handling of
13667 the case where VALUE_LVAL (val0) is not lval_memory.
13668
13669 2018-01-05 Xavier Roirand <roirand@adacore.com>
13670
13671 * ada-valprint.c (print_optional_low_bound): Handle
13672 character-indexed array printing like boolean-indexed array
13673 printing.
13674
13675 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13676
13677 * NEWS: Create a new section for the next release branch.
13678 Rename the section of the current branch, now that it has
13679 been cut.
13680
13681 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13682
13683 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
13684 * version.in: Bump version to 8.1.50.DATE-git.
13685
13686 2018-01-03 Xavier Roirand <roirand@adacore.com>
13687
13688 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
13689 Add field.
13690 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
13691 Add field.
13692 (default_exception_support_info) <catch_handlers_sym>: Add field.
13693 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
13694 (ada_exception_name_addr_1): Add "catch handlers" handling.
13695 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
13696 Update all callers.
13697 (create_excep_cond_exprs) <ex>: Add parameter.
13698 (re_set_exception): Update create_excep_cond_exprs call.
13699 (print_it_exception, print_one_exception, print_mention_exception)
13700 (print_recreate_exception): Add "catch handler" handling.
13701 (allocate_location_catch_handlers, re_set_catch_handlers)
13702 (check_status_catch_handlers, print_it_catch_handlers)
13703 (print_one_catch_handlers, print_mention_catch_handlers)
13704 (print_recreate_catch_handlers): New function.
13705 (catch_handlers_breakpoint_ops): New variable.
13706 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
13707 Add parameter. Add "catch handler" handling.
13708 (ada_exception_sym_name, ada_exception_breakpoint_ops):
13709 Add "catch handler" handling.
13710 (ada_exception_catchpoint_cond_string): Add "catch handler"
13711 handling.
13712 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
13713 call.
13714 (catch_ada_handlers_command): New function.
13715 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
13716 operations structure.
13717 (_initialize_ada_language): Add "catch handlers" command entry.
13718 * NEWS: Document "catch handlers" feature.
13719
13720 2018-01-02 Joel Brobecker <brobecker@adacore.com>
13721
13722 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
13723 account when creating the array type of the slice.
13724 (ada_value_slice): Likewise.
13725
13726 2018-01-02 Joel Brobecker <brobecker@adacore.com>
13727
13728 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
13729 New enum value.
13730 (create_array_type_with_stride): Add byte_stride_prop parameter.
13731 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
13732 New parameter. Update all callers in this file.
13733 (array_type_has_dynamic_stride): New function.
13734 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
13735 of arrays with dynamic byte strides.
13736 * dwarf2read.c (read_array_type): Add support for dynamic
13737 DW_AT_byte_stride attributes.
13738
13739 2018-01-02 Joel Brobecker <brobecker@adacore.com>
13740
13741 * dwarf2read.c (read_unspecified_type): Treat
13742 DW_TAG_enumeration_type DIEs from Ada units as stubs.
13743
13744 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13745
13746 Update copyright year range in all GDB files.
13747
13748 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13749
13750 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
13751 and gdb/testsuite/gdb.base/step-line.c.
13752
13753 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13754
13755 * copyright.py (main): Dump the contents of
13756 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
13757 even if BY_HAND is empty.
13758
13759 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13760
13761 * top.c (print_gdb_version): Update Copyright year in version
13762 message.
13763
13764 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13765
13766 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
13767
13768 For older changes see ChangeLog-2017.
13769 \f
13770 Local Variables:
13771 mode: change-log
13772 left-margin: 8
13773 fill-column: 74
13774 version-control: never
13775 coding: utf-8
13776 End:
This page took 0.469494 seconds and 4 git commands to generate.