]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
[OBVIOUS] ChangeLog for obvious enable frame-filter help fix.
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
6eb5dbce
PW
12018-09-17 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2
3 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter):
4 Fix short help line.
5
ae292b3a
TT
62018-09-17 Tom Tromey <tom@tromey.com>
7
8 PR python/20445:
9 * configure: Rebuild.
10 * configure.ac: Conditionally use -DNDEBUG for Python.
11
da658607
TT
122018-09-17 Tom Tromey <tom@tromey.com>
13
14 * configure: Rebuild.
15 * configure.ac: Use gmp as a library dependency when checking for
16 mpfr.
17
d35da542
PA
182018-09-17 Pedro Alves <palves@redhat.com>
19
20 * python/py-inferior.c (find_inferior_object): Delete.
21
461464f2
SM
222018-09-17 Simon Marchi <simon.marchi@ericsson.com>
23
24 * compile/compile-cplus-types.c
25 (compile_cplus_instance::enter_scope): Don't use new_scope after
26 std::move.
27
e6cd1dc1
TT
282018-09-17 Tom Tromey <tom@tromey.com>
29
30 * common/pathstuff.c (get_standard_cache_dir): Use
31 ~/Library/Caches on macOS.
32 * common/pathstuff.h (get_standard_cache_dir): Update comment.
33
8588b356
SM
342018-09-17 Simon Marchi <simon.marchi@polymtl.ca>
35
36 PR python/23669
37 * breakpoint.c (commands_cmd_element): New.
38 (_initialize_breakpoint): Assign commands_cmd_element.
39 * breakpoint.h (commands_cmd_element): New.
40 * cli/cli-script.c (while_cmd_element, if_command,
41 define_cmd_element): New.
42 (command_name_equals): Remove.
43 (process_next_line): Compare commands by pointer, not by name.
44 (_initialize_cli_script): Assign the various cmd_list_element
45 variables.
46 * compile/compile.c (compile_cmd_element): New.
47 (_initialize_compile): Assign compile_cmd_element.
48 * compile/compile.h (compile_cmd_element): New.
49 * guile/guile.c (guile_cmd_element): New.
50 (install_gdb_commands): Assign guile_cmd_element.
51 * guile/guile.h (guile_cmd_element): New.
52 * python/python.c (python_cmd_element): New.
53 (_initialize_python): Assign python_cmd_element.
54 * python/python.h (python_cmd_element): New.
55 * tracepoint.c (while_stepping_cmd_element): New.
56 (_initialize_tracepoint): Assign while_stepping_cmd_element.
57 * tracepoint.h (while_stepping_cmd_element): New.
58
cb524840
TT
592018-09-17 Tom Tromey <tom@tromey.com>
60
61 * infrun.c (save_infcall_suspend_state): Return
62 infcall_suspend_state_up.
63 (save_infcall_control_state): Return infcall_control_state_up.
64 * inferior.h (save_infcall_suspend_state)
65 (save_infcall_control_state): Declare later. Return unique
66 pointers.
67
2d844eaf
TT
682018-09-17 Tom Tromey <tom@tromey.com>
69
70 * infrun.c (struct stop_context): Declare constructor,
71 destructor, "changed" method.
72 (stop_context::stop_context): Rename from save_stop_context.
73 (stop_context::~stop_context): Rename from
74 release_stop_context_cleanup.
75 (normal_stop): Update.
76 (stop_context::changed): Rename from stop_context_changed. Return
77 bool.
78
c7c4d3fa
TT
792018-09-17 Tom Tromey <tom@tromey.com>
80
81 * inferior.h (struct infcall_suspend_state_deleter): New.
82 (infcall_suspend_state_up): New typedef.
83 (struct infcall_control_state_deleter): New.
84 (infcall_control_state_up): New typedef.
85 (make_cleanup_restore_infcall_suspend_state)
86 (make_cleanup_restore_infcall_control_state): Don't declare.
87 * infcall.c (call_function_by_hand_dummy): Update.
88 * infrun.c (do_restore_infcall_suspend_state_cleanup)
89 (make_cleanup_restore_infcall_suspend_state): Remove.
90 (do_restore_infcall_control_state_cleanup)
91 (make_cleanup_restore_infcall_control_state): Remove.
92
ee841dd8
TT
932018-09-17 Tom Tromey <tom@tromey.com>
94
95 * gdbthread.h (struct thread_control_state): Add initializer.
96 (class thread_info) <control>: Remove initializer.
97 * inferior.h (struct inferior_control_state): Add initializer.
98 (class inferior) <control>: Remove initializer.
99 (exit_inferior_1): Update.
100 * infrun.c (struct infcall_control_state): Add constructors.
101 (save_infcall_control_state): Use new.
102 (restore_infcall_control_state, discard_infcall_control_state):
103 Use delete.
104
117f580a
TT
1052018-09-17 Tom Tromey <tom@tromey.com>
106
107 * infrun.c (struct infcall_suspend_state) <registers>: Now a
108 unique_ptr.
109 <siginfo_data>: Now a unique_xmalloc_ptr.
110 (save_infcall_suspend_state, restore_infcall_suspend_state)
111 (discard_infcall_suspend_state)
112 (get_infcall_suspend_state_regcache): Update.
113
dd848631
TT
1142018-09-17 Tom Tromey <tom@tromey.com>
115
116 * gdbthread.h (struct thread_suspend_state): Add initializers.
117 (class thread_info) <suspend>: Remove initializer.
118 * infrun.c (struct infcall_suspend_state): Add initializers.
119 (save_infcall_suspend_state): Use new.
120 (discard_infcall_suspend_state): Use delete.
121
1a338907
TT
1222018-09-16 Tom Tromey <tom@tromey.com>
123
124 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
125 Remove.
126 * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to
127 rvalue reference. Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG.
128 (py_varobj_iter_new): Likewise.
129 (py_varobj_get_iterator): Use gdbpy_ref.
130
4a137fec
TT
1312018-09-16 Tom Tromey <tom@tromey.com>
132
133 * python/py-threadevent.c (py_get_event_thread): Simplify.
134 * python/py-inferior.c (infpy_thread_from_thread_handle):
135 Return immediately after calling thread_to_thread_object. Use
136 Py_RETURN_NONE.
137 (thread_to_thread_object): Set the exception on a NULL return.
138
8ff03f0b
SM
1392018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
140
141 * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS.
142
94c8b725
TT
1432018-09-16 Tom Tromey <tom@tromey.com>
144
145 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
146 Remove.
147
db1337cc
TT
1482018-09-16 Tom Tromey <tom@tromey.com>
149
150 * python/python-internal.h (thread_to_thread_object): Change
151 return type.
152 * python/py-inferior.c (thread_to_thread_object): Return a new
153 reference.
154 (infpy_thread_from_thread_handle): Update.
155 * python/py-infthread.c (gdbpy_selected_thread): Update.
156 * python/py-stopevent.c (create_stop_event_object): Update.
157 * python/py-threadevent.c (py_get_event_thread): Return a new
158 reference.
159 (py_get_event_thread): Update.
160 * python/py-event.h (py_get_event_thread): Change return type.
161 * python/py-continueevent.c (create_continue_event_object):
162 Update.
163
0a9db5ad
TT
1642018-09-16 Tom Tromey <tom@tromey.com>
165
166 * python/py-progspace.c (pspy_get_objfiles): Update.
167 * python/python-internal.h (objfile_to_objfile_object): Change
168 return type.
169 * python/py-newobjfileevent.c (create_new_objfile_event_object):
170 Update.
171 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
172 Update.
173 * python/python.c (gdbpy_get_current_objfile): Update.
174 (gdbpy_objfiles): Update.
175 * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile):
176 Update.
177 (objfile_to_objfile_object): Return a new reference.
178 * python/py-symtab.c (stpy_get_objfile): Update.
179 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
180 Update.
181
3c7aa307
TT
1822018-09-16 Tom Tromey <tom@tromey.com>
183
184 * python/py-inferior.c (infpy_get_progspace): Update.
185 * python/python-internal.h (pspace_to_pspace_object): Change
186 return type.
187 * python/py-newobjfileevent.c
188 (create_clear_objfiles_event_object): Update.
189 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
190 Update.
191 * python/python.c (gdbpy_get_current_progspace): Update.
192 (gdbpy_progspaces): Update.
193 * python/py-progspace.c (pspace_to_pspace_object): Return a new
194 reference.
195 * python/py-objfile.c (objfpy_get_progspace): Update.
196 * python/py-prettyprint.c (find_pretty_printer_from_progspace):
197 Update.
198
8743a9cd
TT
1992018-09-16 Tom Tromey <tom@tromey.com>
200
201 * python/lib/gdb/__init__.py (current_progspace, objfiles)
202 (solib_name, block_for_pc, find_pc_line): New functions.
203 (execute_unwinders): Update.
204 * python/py-block.c (gdbpy_block_for_pc): Remove.
205 * python/py-inferior.c (infpy_get_progspace): New function.
206 (inferior_object_getset) <progspace>: Add.
207 * python/py-progspace.c (pspy_objfiles): Rewrite.
208 (pspy_solib_name, pspy_block_for_pc)
209 (pspy_find_pc_line, pspy_is_valid): New functions.
210 (progspace_object_methods): Add entries for solib_name,
211 block_for_pc, find_pc_line, is_valid.
212 * python/python-internal.h (gdbpy_block_for_pc)
213 (build_objfiles_list): Don't declare.
214 * python/python.c: Don't include solib.h.
215 (gdbpy_solib_name, gdbpy_find_pc_line)
216 (gdbpy_get_current_progspace, build_objfiles_list)
217 (gdbpy_objfiles): Remove.
218 (GdbMethods) <current_progspace, objfiles, block_for_pc,
219 solib_name, find_pc_line>: Remove entries.
220
65e65158
TT
2212018-09-16 Tom Tromey <tom@tromey.com>
222
223 * top.c (new_ui_command): Use GNU style for metasyntactic
224 variables.
225 * breakpoint.c (stopat_command): Use GNU style for metasyntactic
226 variables.
227 * maint.c (maintenance_translate_address): Remove "<>" around
228 text.
229 * interps.c (interpreter_exec_cmd): Use GNU style for
230 metasyntactic variables.
231 * nto-procfs.c (nto_procfs_target_info): Use GNU style for
232 metasyntactic variables.
233 * tracepoint.c (tfind_range_command): Use GNU style for
234 metasyntactic variables.
235 (tfind_outside_command): Likewise.
236 (_initialize_tracepoint): Likewise.
237 * remote.c (extended_remote_target::create_inferior): Use GNU
238 style for metasyntactic variables.
239 * sparc64-tdep.c (adi_examine_command): Use GNU style for
240 metasyntactic variables.
241 (adi_assign_command): Likewise.
242
f4bab6ff
TT
2432018-09-16 Tom Tromey <tom@tromey.com>
244
245 * disasm.c (show_disassembler_options_sfunc): Use GNU style for
246 metasyntactic variables. Print message if no disassembler options
247 are available.
248
cbaaa0ca
TT
2492018-09-15 Tom Tromey <tom@tromey.com>
250
251 * infcmd.c (get_inferior_args): Return const char *.
252 * inferior.h (get_inferior_args): Return type now const.
253 * linux-tdep.c (linux_fill_prpsinfo): Update.
254 * procfs.c (procfs_target::make_corefile_notes): Update.
255
a3a6aef4
TT
2562018-09-07 Tom Tromey <tom@tromey.com>
257
258 * python/python.c (execute_gdb_command): Call bpstat_do_actions
259 inside the TRY.
260
f70e088f
SL
2612018-09-14 Sandra Loosemore <sandra@codesourcery.com>
262
263 * nios2-tdep.c (nios2_type_align): New.
264 (nios2_gdb_arch_init): Install type_align hook.
265
2fabdf33
AB
2662018-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
267
268 * eval.c (fake_method::fake_method): Call xzalloc directly for a
269 type that is neither object file owned, nor gdbarch owned.
270 * gdbtypes.c (get_type_gdbarch): Add an assert that returned
271 gdbarch is non-NULL.
272 (alloc_type_instance): Allocate non-objfile owned types on the
273 gdbarch obstack.
274 (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA
275 using TYPE_ALLOC to ensure memory is allocated on the correct
276 obstack.
277 * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile
278 obstack, or the gdbarch obstack.
279 (TYPE_ZALLOC): Rewrite using TYPE_ALLOC.
280
b4b08fa2
TT
2812018-09-14 Tom Tromey <tom@tromey.com>
282
283 * infcall.c (call_function_by_hand_dummy): Remove unnecessary
284 block.
285
87b240d4
TT
2862018-09-14 Tom Tromey <tom@tromey.com>
287
288 * nat/fork-inferior.c (get_startup_shell): Remove "static".
289
7d221512
TT
2902018-09-13 Tom Tromey <tom@tromey.com>
291
292 * python/py-inferior.c (infpy_thread_from_thread_handle): Now
293 static.
294
97e67fc6
TT
2952018-09-13 Tom Tromey <tom@tromey.com>
296
297 * exec.c (try_open_exec_file): Use std::string.
298
803c08d0
TT
2992018-09-13 Tom Tromey <tom@tromey.com>
300
301 * utils.h (gdb_bfd_errmsg): Return std::string.
302 * exec.c (exec_file_attach): Update.
303 * compile/compile-object-load.c (compile_object_load): Update.
304 * utils.c (gdb_bfd_errmsg): Return std::string.
305
5b4cbbe3
TT
3062018-09-13 Tom Tromey <tom@tromey.com>
307
308 * procfs.c (struct procinfo_deleter): New.
309 (procinfo_up): New typedef.
310 (do_destroy_procinfo_cleanup): Remove.
311 (procfs_target::info_proc): Use procinfo_up. Remove cleanups.
312
db68fbe2
TT
3132018-09-13 Tom Tromey <tom@tromey.com>
314
315 * source.c (add_path): Use gdb::unique_xmalloc_ptr.
316
0ae1a321
SM
3172018-09-13 Simon Marchi <simon.marchi@ericsson.com>
3182018-09-13 Tom Tromey <tom@tromey.com>
319
320 * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro.
321 (pspy_get_objfiles): New function.
322 (progspace_object_methods): New.
323 (pspace_object_type): Add tp_methods callback.
324 * python/python-internal.h (build_objfiles_list): New
325 declaration.
326 * python/python.c (build_objfiles_list): New function.
327 (gdbpy_objfiles): Implement using build_objfiles_list.
328 * NEWS: Mention the Progspace.objfiles method.
329
a40bf0c2
SM
3302018-09-13 Simon Marchi <simon.marchi@ericsson.com>
331
332 * python/py-inferior.c (infpy_get_progspace): New function.
333 (inferior_object_getset): Add progspace property.
334 * NEWS: Mention the new property.
335
4a3fe98f
TT
3362018-09-13 Tom Tromey <tom@tromey.com>
337
338 PR rust/23650:
339 * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
340
098b2108
TT
3412018-09-13 Tom Tromey <tom@tromey.com>
342
343 PR rust/23626:
344 * rust-lang.c (rust_enum_variant): Now static.
345 (rust_empty_enum_p): New function.
346 (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
347 Handle empty enum.
348
1256af7d
SM
3492018-09-13 Simon Marchi <simon.marchi@ericsson.com>
350
351 * python/py-inferior.c (infpy_repr): New.
352 (inferior_object_type): Register infpy_repr.
353 * python/py-objfile.c (objfpy_repr): New.
354 (objfile_object_type): Register objfpy_repr.
355
f117a62c
JB
3562018-09-12 John Baldwin <jhb@FreeBSD.org>
357
358 * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
359
88f22c34
JB
3602018-09-12 John Baldwin <jhb@FreeBSD.org>
361
362 * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
363 typo.
364
3c025cfe
SDJ
3652018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
366
367 * common/common-utils.c: Don't include '<sys/stat.h>'.
368 (is_regular_file): Move to...
369 * common/filestuff.c (is_regular_file): ... here.
370 * common/common-utils.h (is_regular_file): Move to...
371 * common/filestuff.h (is_regular_file): ... here.
372
3e68067f
SM
3732018-09-12 Simon Marchi <simon.marchi@ericsson.com>
374
375 * skip.c (debug_skip): New variable.
376 (skiplist_entry::do_skip_file_p): Add debug output.
377 (skiplist_entry::do_skip_gfile_p): Likewise.
378 (skiplist_entry::skip_function_p): Likewise.
379 (_initialize_step_skip): Create debug command.
380 * NEWS: Mention set/show debug skip.
381
d6be54ef
XR
3822018-09-11 Xavier Roirand <roirand@adacore.com>
383
384 * darwin-nat.c (should_disable_startup_with_shell):
385 New function.
386 (darwin_nat_target::create_inferior): Add call.
387
de1ec836
XR
3882018-09-11 Xavier Roirand <roirand@adacore.com>
389
390 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
391 inf_port, msg_state>: Initialize.
392 (struct darwin_thread_info) <signaled, single_step>: Change
393 type and initialize.
394 (struct darwin_thread_info) <event>: Initialize.
395
e2fc52e7
SDJ
3962018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
397
398 PR gdb/23555
399 PR gdb/23558
400 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
401 guesses.
402
5e8754f9
SDJ
4032018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
404
405 Revert:
406 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
407
408 PR gdb/23555
409 PR gdb/23558
410 * gnulib/aclocal.m4: Regenerate.
411 * gnulib/config.in: Regenerate.
412 * gnulib/configure: Regenerate.
413 * gnulib/import/Makefile.am: Update.
414 * gnulib/import/Makefile.in: Update.
415 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
416 * gnulib/import/_Noreturn.h: ... this.
417 * gnulib/import/alloca.in.h: Update.
418 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
419 * gnulib/import/arg-nonnull.h: ... this.
420 * gnulib/import/assure.h: Update.
421 * gnulib/import/at-func.c: Update.
422 * gnulib/import/basename-lgpl.c: Update.
423 * gnulib/import/extra/snippet/c++defs.h: Rename to...
424 * gnulib/import/c++defs.h: ... this.
425 * gnulib/import/canonicalize-lgpl.c: Update.
426 * gnulib/import/cdefs.h: Update.
427 * gnulib/import/chdir-long.c: Update.
428 * gnulib/import/chdir-long.h: Update.
429 * gnulib/import/cloexec.c: Update.
430 * gnulib/import/cloexec.h: Update.
431 * gnulib/import/close.c: Update.
432 * gnulib/import/closedir.c: Update.
433 * gnulib/import/config.charset: Update.
434 * gnulib/import/dirent-private.h: Update.
435 * gnulib/import/dirent.in.h: Update.
436 * gnulib/import/dirfd.c: Update.
437 * gnulib/import/dirname-lgpl.c: Update.
438 * gnulib/import/dirname.h: Update.
439 * gnulib/import/dosname.h: Update.
440 * gnulib/import/dup-safer-flag.c: Update.
441 * gnulib/import/dup-safer.c: Update.
442 * gnulib/import/dup.c: Update.
443 * gnulib/import/dup2.c: Update.
444 * gnulib/import/errno.in.h: Update.
445 * gnulib/import/error.c: Update.
446 * gnulib/import/error.h: Update.
447 * gnulib/import/exitfail.c: Update.
448 * gnulib/import/exitfail.h: Update.
449 * gnulib/import/extra/update-copyright: Update.
450 * gnulib/import/fchdir.c: Update.
451 * gnulib/import/fcntl.c: Update.
452 * gnulib/import/fcntl.in.h: Update.
453 * gnulib/import/fd-hook.c: Update.
454 * gnulib/import/fd-hook.h: Update.
455 * gnulib/import/fd-safer-flag.c: Update.
456 * gnulib/import/fd-safer.c: Update.
457 * gnulib/import/fdopendir.c: Update.
458 * gnulib/import/filename.h: Update.
459 * gnulib/import/filenamecat-lgpl.c: Update.
460 * gnulib/import/filenamecat.h: Update.
461 * gnulib/import/flexmember.h: Update.
462 * gnulib/import/float+.h: Update.
463 * gnulib/import/float.c: Update.
464 * gnulib/import/float.in.h: Update.
465 * gnulib/import/fnmatch.c: Update.
466 * gnulib/import/fnmatch.in.h: Update.
467 * gnulib/import/fnmatch_loop.c: Update.
468 * gnulib/import/fpucw.h: Update.
469 * gnulib/import/frexp.c: Update.
470 * gnulib/import/frexpl.c: Update.
471 * gnulib/import/fstat.c: Update.
472 * gnulib/import/fstatat.c: Update.
473 * gnulib/import/getcwd-lgpl.c: Update.
474 * gnulib/import/getcwd.c: Update.
475 * gnulib/import/getdtablesize.c: Update.
476 * gnulib/import/getlogin_r.c: Update.
477 * gnulib/import/getprogname.c: Update.
478 * gnulib/import/getprogname.h: Update.
479 * gnulib/import/gettext.h: Update.
480 * gnulib/import/gettimeofday.c: Update.
481 * gnulib/import/glob-libc.h: Update.
482 * gnulib/import/glob.c: Update.
483 * gnulib/import/glob.in.h: Update.
484 * gnulib/import/glob_internal.h: Update.
485 * gnulib/import/glob_pattern_p.c: Update.
486 * gnulib/import/globfree.c: Update.
487 * gnulib/import/hard-locale.c: Update.
488 * gnulib/import/hard-locale.h: Update.
489 * gnulib/import/intprops.h: Update.
490 * gnulib/import/inttypes.in.h: Update.
491 * gnulib/import/isnan.c: Update.
492 * gnulib/import/isnand-nolibm.h: Update.
493 * gnulib/import/isnand.c: Update.
494 * gnulib/import/isnanl-nolibm.h: Update.
495 * gnulib/import/isnanl.c: Update.
496 * gnulib/import/itold.c: Update.
497 * gnulib/import/libc-config.h: Update.
498 * gnulib/import/limits.in.h: Update.
499 * gnulib/import/localcharset.c: Update.
500 * gnulib/import/localcharset.h: Update.
501 * gnulib/import/localtime-buffer.c: Update.
502 * gnulib/import/localtime-buffer.h: Update.
503 * gnulib/import/lstat.c: Update.
504 * gnulib/import/m4/00gnulib.m4: Update.
505 * gnulib/import/m4/__inline.m4: Update.
506 * gnulib/import/m4/absolute-header.m4: Update.
507 * gnulib/import/m4/alloca.m4: Update.
508 * gnulib/import/m4/builtin-expect.m4: Update.
509 * gnulib/import/m4/canonicalize.m4: Update.
510 * gnulib/import/m4/chdir-long.m4: Update.
511 * gnulib/import/m4/close.m4: Update.
512 * gnulib/import/m4/closedir.m4: Update.
513 * gnulib/import/m4/configmake.m4: Update.
514 * gnulib/import/m4/d-ino.m4: Update.
515 * gnulib/import/m4/d-type.m4: Update.
516 * gnulib/import/m4/dirent_h.m4: Update.
517 * gnulib/import/m4/dirfd.m4: Update.
518 * gnulib/import/m4/dirname.m4: Update.
519 * gnulib/import/m4/double-slash-root.m4: Update.
520 * gnulib/import/m4/dup.m4: Update.
521 * gnulib/import/m4/dup2.m4: Update.
522 * gnulib/import/m4/eealloc.m4: Update.
523 * gnulib/import/m4/environ.m4: Update.
524 * gnulib/import/m4/errno_h.m4: Update.
525 * gnulib/import/m4/error.m4: Update.
526 * gnulib/import/m4/exponentd.m4: Update.
527 * gnulib/import/m4/exponentl.m4: Update.
528 * gnulib/import/m4/extensions.m4: Update.
529 * gnulib/import/m4/extern-inline.m4: Update.
530 * gnulib/import/m4/fchdir.m4: Update.
531 * gnulib/import/m4/fcntl-o.m4: Update.
532 * gnulib/import/m4/fcntl.m4: Update.
533 * gnulib/import/m4/fcntl_h.m4: Update.
534 * gnulib/import/m4/fdopendir.m4: Update.
535 * gnulib/import/m4/filenamecat.m4: Update.
536 * gnulib/import/m4/flexmember.m4: Update.
537 * gnulib/import/m4/float_h.m4: Update.
538 * gnulib/import/m4/fnmatch.m4: Update.
539 * gnulib/import/m4/fnmatch_h.m4: Update.
540 * gnulib/import/m4/fpieee.m4: Update.
541 * gnulib/import/m4/frexp.m4: Update.
542 * gnulib/import/m4/frexpl.m4: Update.
543 * gnulib/import/m4/fstat.m4: Update.
544 * gnulib/import/m4/fstatat.m4: Update.
545 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
546 * gnulib/import/m4/getcwd-path-max.m4: Update.
547 * gnulib/import/m4/getcwd.m4: Update.
548 * gnulib/import/m4/getdtablesize.m4: Update.
549 * gnulib/import/m4/getlogin.m4: Update.
550 * gnulib/import/m4/getlogin_r.m4: Update.
551 * gnulib/import/m4/getpagesize.m4: Update.
552 * gnulib/import/m4/getprogname.m4: Update.
553 * gnulib/import/m4/gettimeofday.m4: Update.
554 * gnulib/import/m4/glibc21.m4: Update.
555 * gnulib/import/m4/glob.m4: Update.
556 * gnulib/import/m4/glob_h.m4: Update.
557 * gnulib/import/m4/gnulib-cache.m4: Update.
558 * gnulib/import/m4/gnulib-common.m4: Update.
559 * gnulib/import/m4/gnulib-comp.m4: Update.
560 * gnulib/import/m4/gnulib-tool.m4: Update.
561 * gnulib/import/m4/hard-locale.m4: Update.
562 * gnulib/import/m4/include_next.m4: Update.
563 * gnulib/import/m4/inttypes-pri.m4: Update.
564 * gnulib/import/m4/inttypes.m4: Update.
565 * gnulib/import/m4/isnand.m4: Update.
566 * gnulib/import/m4/isnanl.m4: Update.
567 * gnulib/import/m4/largefile.m4: Update.
568 * gnulib/import/m4/limits-h.m4: Update.
569 * gnulib/import/m4/localcharset.m4: Update.
570 * gnulib/import/m4/locale-fr.m4: Update.
571 * gnulib/import/m4/locale-ja.m4: Update.
572 * gnulib/import/m4/locale-zh.m4: Update.
573 * gnulib/import/m4/localtime-buffer.m4: Update.
574 * gnulib/import/m4/longlong.m4: Update.
575 * gnulib/import/m4/lstat.m4: Update.
576 * gnulib/import/m4/malloc.m4: Update.
577 * gnulib/import/m4/malloca.m4: Update.
578 * gnulib/import/m4/math_h.m4: Update.
579 * gnulib/import/m4/mbrtowc.m4: Update.
580 * gnulib/import/m4/mbsinit.m4: Update.
581 * gnulib/import/m4/mbsrtowcs.m4: Update.
582 * gnulib/import/m4/mbstate_t.m4: Update.
583 * gnulib/import/m4/memchr.m4: Update.
584 * gnulib/import/m4/memmem.m4: Update.
585 * gnulib/import/m4/mempcpy.m4: Update.
586 * gnulib/import/m4/memrchr.m4: Update.
587 * gnulib/import/m4/mkdir.m4: Update.
588 * gnulib/import/m4/mkstemp.m4: Update.
589 * gnulib/import/m4/mmap-anon.m4: Update.
590 * gnulib/import/m4/mode_t.m4: Update.
591 * gnulib/import/m4/msvc-inval.m4: Update.
592 * gnulib/import/m4/msvc-nothrow.m4: Update.
593 * gnulib/import/m4/multiarch.m4: Update.
594 * gnulib/import/m4/nocrash.m4: Update.
595 * gnulib/import/m4/off_t.m4: Update.
596 * gnulib/import/m4/onceonly.m4: Update.
597 * gnulib/import/m4/open-cloexec.m4: Update.
598 * gnulib/import/m4/open.m4: Update.
599 * gnulib/import/m4/openat.m4: Update.
600 * gnulib/import/m4/opendir.m4: Update.
601 * gnulib/import/m4/pathmax.m4: Update.
602 * gnulib/import/m4/rawmemchr.m4: Update.
603 * gnulib/import/m4/readdir.m4: Update.
604 * gnulib/import/m4/readlink.m4: Update.
605 * gnulib/import/m4/realloc.m4: Update.
606 * gnulib/import/m4/rename.m4: Update.
607 * gnulib/import/m4/rewinddir.m4: Update.
608 * gnulib/import/m4/rmdir.m4: Update.
609 * gnulib/import/m4/save-cwd.m4: Update.
610 * gnulib/import/m4/secure_getenv.m4: Update.
611 * gnulib/import/m4/setenv.m4: Update.
612 * gnulib/import/m4/signal_h.m4: Update.
613 * gnulib/import/m4/ssize_t.m4: Update.
614 * gnulib/import/m4/stat-time.m4: Update.
615 * gnulib/import/m4/stat.m4: Update.
616 * gnulib/import/m4/std-gnu11.m4: Update.
617 * gnulib/import/m4/stdbool.m4: Update.
618 * gnulib/import/m4/stddef_h.m4: Update.
619 * gnulib/import/m4/stdint.m4: Update.
620 * gnulib/import/m4/stdio_h.m4: Update.
621 * gnulib/import/m4/stdlib_h.m4: Update.
622 * gnulib/import/m4/strchrnul.m4: Update.
623 * gnulib/import/m4/strdup.m4: Update.
624 * gnulib/import/m4/strerror.m4: Update.
625 * gnulib/import/m4/string_h.m4: Update.
626 * gnulib/import/m4/strstr.m4: Update.
627 * gnulib/import/m4/strtok_r.m4: Update.
628 * gnulib/import/m4/sys_socket_h.m4: Update.
629 * gnulib/import/m4/sys_stat_h.m4: Update.
630 * gnulib/import/m4/sys_time_h.m4: Update.
631 * gnulib/import/m4/sys_types_h.m4: Update.
632 * gnulib/import/m4/tempname.m4: Update.
633 * gnulib/import/m4/time_h.m4: Update.
634 * gnulib/import/m4/unistd-safer.m4: Update.
635 * gnulib/import/m4/unistd_h.m4: Update.
636 * gnulib/import/m4/warn-on-use.m4: Update.
637 * gnulib/import/m4/wchar_h.m4: Update.
638 * gnulib/import/m4/wchar_t.m4: Update.
639 * gnulib/import/m4/wctype_h.m4: Update.
640 * gnulib/import/m4/wint_t.m4: Update.
641 * gnulib/import/malloc.c: Update.
642 * gnulib/import/malloc/scratch_buffer.h: Update.
643 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
644 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
645 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
646 * gnulib/import/malloca.c: Update.
647 * gnulib/import/malloca.h: Update.
648 * gnulib/import/malloca.valgrind: Update.
649 * gnulib/import/math.in.h: Update.
650 * gnulib/import/mbrtowc.c: Update.
651 * gnulib/import/mbsinit.c: Update.
652 * gnulib/import/mbsrtowcs-impl.h: Update.
653 * gnulib/import/mbsrtowcs-state.c: Update.
654 * gnulib/import/mbsrtowcs.c: Update.
655 * gnulib/import/memchr.c: Update.
656 * gnulib/import/memmem.c: Update.
657 * gnulib/import/mempcpy.c: Update.
658 * gnulib/import/memrchr.c: Update.
659 * gnulib/import/mkdir.c: Update.
660 * gnulib/import/mkstemp.c: Update.
661 * gnulib/import/msvc-inval.c: Update.
662 * gnulib/import/msvc-inval.h: Update.
663 * gnulib/import/msvc-nothrow.c: Update.
664 * gnulib/import/msvc-nothrow.h: Update.
665 * gnulib/import/open.c: Update.
666 * gnulib/import/openat-die.c: Update.
667 * gnulib/import/openat-priv.h: Update.
668 * gnulib/import/openat-proc.c: Update.
669 * gnulib/import/openat.c: Update.
670 * gnulib/import/openat.h: Update.
671 * gnulib/import/opendir.c: Update.
672 * gnulib/import/pathmax.h: Update.
673 * gnulib/import/pipe-safer.c: Update.
674 * gnulib/import/rawmemchr.c: Update.
675 * gnulib/import/readdir.c: Update.
676 * gnulib/import/readlink.c: Update.
677 * gnulib/import/realloc.c: Update.
678 * gnulib/import/ref-add.sin: Update.
679 * gnulib/import/ref-del.sin: Update.
680 * gnulib/import/rename.c: Update.
681 * gnulib/import/rewinddir.c: Update.
682 * gnulib/import/rmdir.c: Update.
683 * gnulib/import/same-inode.h: Update.
684 * gnulib/import/save-cwd.c: Update.
685 * gnulib/import/save-cwd.h: Update.
686 * gnulib/import/scratch_buffer.h: Update.
687 * gnulib/import/secure_getenv.c: Update.
688 * gnulib/import/setenv.c: Update.
689 * gnulib/import/signal.in.h: Update.
690 * gnulib/import/stat-time.c: Update.
691 * gnulib/import/stat-time.h: Update.
692 * gnulib/import/stat-w32.c: Update.
693 * gnulib/import/stat-w32.h: Update.
694 * gnulib/import/stat.c: Update.
695 * gnulib/import/stdbool.in.h: Update.
696 * gnulib/import/stddef.in.h: Update.
697 * gnulib/import/stdint.in.h: Update.
698 * gnulib/import/stdio.in.h: Update.
699 * gnulib/import/stdlib.in.h: Update.
700 * gnulib/import/str-two-way.h: Update.
701 * gnulib/import/strchrnul.c: Update.
702 * gnulib/import/strdup.c: Update.
703 * gnulib/import/streq.h: Update.
704 * gnulib/import/strerror-override.c: Update.
705 * gnulib/import/strerror-override.h: Update.
706 * gnulib/import/strerror.c: Update.
707 * gnulib/import/string.in.h: Update.
708 * gnulib/import/stripslash.c: Update.
709 * gnulib/import/strnlen1.c: Update.
710 * gnulib/import/strnlen1.h: Update.
711 * gnulib/import/strstr.c: Update.
712 * gnulib/import/strtok_r.c: Update.
713 * gnulib/import/sys_stat.in.h: Update.
714 * gnulib/import/sys_time.in.h: Update.
715 * gnulib/import/sys_types.in.h: Update.
716 * gnulib/import/tempname.c: Update.
717 * gnulib/import/tempname.h: Update.
718 * gnulib/import/time.in.h: Update.
719 * gnulib/import/unistd--.h: Update.
720 * gnulib/import/unistd-safer.h: Update.
721 * gnulib/import/unistd.in.h: Update.
722 * gnulib/import/unsetenv.c: Update.
723 * gnulib/import/verify.h: Update.
724 * gnulib/import/extra/snippet/warn-on-use.h: Update.
725 * gnulib/import/wchar.in.h: Update.
726 * gnulib/import/wctype.in.h: Update.
727 * gnulib/import/xalloc-oversized.h: Update.
728 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
729 "53e2c179f26a890fa6685af4b6c1397ee370433b".
730
8ec23583
SM
7312018-09-10 Simon Marchi <simon.marchi@ericsson.com>
732
733 * record-btrace.c (get_thread_current_frame): Remove
734 old_inferior_ptid.
735
1f5d1570
JG
7362018-09-10 Jerome Guitton <guitton@adacore.com>
737
738 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
739 with check_tag to 1 if and only if the type is tagged and the
740 component being searched cannot been found in the current
741 view. Otherwise, always call ada_to_fixed_type with
742 check_tag to 0.
743
d91e9ea8
XR
7442018-09-10 Xavier Roirand <roirand@adacore.com>
745
746 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
747 declaration.
748 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
749 * ada-varobj.c (ada_varobj_get_number_of_children,
750 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
751
cc330e39
XR
7522018-09-10 Xavier Roirand <roirand@adacore.com>
753
754 * ada-valprint.c (ada_value_print): Use type instead of
755 enclosing type.
756
b9c50e9a
XR
7572018-09-10 Xavier Roirand <roirand@adacore.com>
758
759 * ada-lang.c (ada_value_subscript): Handle case when parameter is
760 an array of access to unconstrained array.
761
736ade86
XR
7622018-09-10 Xavier Roirand <roirand@adacore.com>
763
764 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
765 (ada_check_typedef): Use it.
766
2963898f
XR
7672018-09-10 Xavier Roirand <roirand@adacore.com>
768
769 * ada-varobj.c (ada_varobj_describe_struct_child)
770 (ada_varobj_describe_child): Handle union case like struct one.
771
a154931e
TT
7722018-09-10 Tom Tromey <tom@tromey.com>
773
774 PR python/18380:
775 * python/python.c (_initialize_python): Make example in "python"
776 help work in Python 3.
777
23c4651c
EZ
7782018-09-10 Eli Zaretskii <eliz@gnu.org>
779
780 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
781 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
782 $(EXEEXT) to the script, as it is not a program.
783
a5c5eda7
SM
7842018-09-09 Simon Marchi <simon.marchi@ericsson.com>
785
786 * python/py-prettyprint.c (pretty_print_one_value): Return
787 gdbpy_ref<>.
788 (print_string_repr): Adjust.
789 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
790 * python/python-internal.h (apply_varobj_pretty_printer): Return
791 gdbpy_ref<>.
792 * varobj.c (varobj_value_get_print_value): Adjust.
793
332cf4c9
TT
7942018-09-08 Tom Tromey <tom@tromey.com>
795
796 PR python/16047:
797 * python/py-prettyprint.c (pretty_print_one_value): Check for
798 to_string method.
799
424da6cf
JB
8002018-09-08 Joel Brobecker <brobecker@adacore.com>
801
802 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
803 replace_operator_with_call.
804
95f39a5b
JB
8052018-09-08 Joel Brobecker <brobecker@adacore.com>
806
807 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
808
16b9eb7b
JB
8092018-09-08 Joel Brobecker <brobecker@adacore.com>
810
811 * ada-typeprint.c (print_range): Print the bounds using TYPE
812 rather than its TYPE_TARGET_TYPE.
813
d8ce9127
JB
8142018-09-08 Joel Brobecker <brobecker@adacore.com>
815
816 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
817 call to ada_to_fixed_value_create.
818
0d81f350
JG
8192018-09-08 Jerome Guitton <guitton@adacore.com>
820
821 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
822
57aff202
JB
8232018-09-08 Joel Brobecker <brobecker@adacore.com>
824
825 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
826 by calls to error.
827
fb44b1a7
JB
8282018-09-08 Joel Brobecker <brobecker@adacore.com>
829
830 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
831 Move update of loop variable "fi".
832
2a62dfa9
JB
8332018-09-08 Joel Brobecker <brobecker@adacore.com>
834
835 * ada-lang.c (value_assign_to_component): In the case of
836 big-endian targets, extract the bits of the given VAL
837 using an src_offset of zero if container is not a scalar.
838
739ab2e9
SS
8392018-09-06 Simon Ser <contact@emersion.fr>
840
841 PR gdb/23105
842 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
843 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
844 * fbsd-tdep.c (fbsd_make_note_desc): New.
845 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
846 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
847 * target.h (enum target_object) Add FreeBSD-specific
848 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
849
d82b3862
SM
8502018-09-06 Simon Marchi <simon.marchi@ericsson.com>
851
852 * compile/compile-c.h (generate_c_for_variable_locations):
853 Change reference to pointer.
854 * compile/compile-c-support.c (compile_program) <compute>:
855 Likewise.
856 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
857 (generate_c_for_for_one_variable): Likewise
858 (generate_c_for_variable_locations): Likewise
859 * compile/compile-c-types.c (compile_c_instance::convert_type):
860 Likewise
861 * compile/compile-cplus-symbols.c (convert_one_symbol):
862 std::move the scope passed to enter_scope.
863 * compile/compile-cplus-types.c
864 (compile_cplus_instance::enter_scope): Make parameter
865 rvalue-reference.
866 (compile_cplus_instance::new_scope): Change reference to
867 pointer.
868 (compile_cplus_instance::convert_type): Likewise
869 (compile_cplus_convert_typedef): std::move the scope passed to
870 enter_scope.
871 (compile_cplus_convert_struct_or_union): Likewise.
872 (compile_cplus_convert_enum): Likewise.
873 (compile_cplus_convert_namespace): Likewise.
874 * compile/compile-cplus.h (compile_cplus_instance)
875 <enter_scope>: Make parameter rvalue-reference.
876 * compile/compile-internal.h (compile_instance)
877 <get_cached_type>: Likewise
878 * compile/compile-loc2c.c (push): Likewise
879 (pushf): Likewise
880 (unary): Likewise
881 (binary): Likewise
882 (print_label): Likewise
883 (pushf_register_address): Likewise
884 (pushf_register): Likewise
885 (do_compile_dwarf_expr_to_c): Likewise
886 (compile_dwarf_expr_to_c): Likewise
887 (compile_dwarf_bounds_to_c): Likewise
888 * compile/compile.c (compile_instance::get_cached_type):
889 Likewise
890 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
891 (compile_dwarf_bounds_to_c): Likewise
892 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
893 (dwarf2_compile_property_to_c): Likewise
894 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
895 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
896 Likewise
897
cc5a5ae5
SM
8982018-09-06 Simon Marchi <simon.marchi@ericsson.com>
899
900 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
901 * tui/tui-data.c (init_content_element): Don't initialize it.
902
137be540
SM
9032018-09-06 Simon Marchi <simon.marchi@ericsson.com>
904
905 * tui/tui-data.h (struct tui_win_info)
906 <detail::opaque>: Remove.
907 * tui/tui-data.c (init_win_info): Remove assignment.
908
f1628857
TT
9092018-09-05 Tom Tromey <tom@tromey.com>
910
911 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
912 -Wformat-nonliteral.
913 * target-float.c (host_float_ops<T>::to_string)
914 (host_float_ops<T>::from_string): Use
915 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
916 * configure: Rebuild.
917
af39b1c2
SM
9182018-09-05 Simon Marchi <simon.marchi@ericsson.com>
919
920 * printcmd.c (printf_c_string): Use
921 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
922 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
923
081bca4d
TT
9242018-09-05 Tom Tromey <tom@tromey.com>
925
926 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
927
e4a62c65
TV
9282018-09-05 Tom de Vries <tdevries@suse.de>
929
930 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
931 with resolve_abstract_p == true.
932 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
933 defaulting to false. Propagate resolve_abstract_p to
934 dwarf2_fetch_die_loc_sect_off.
935 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
936 parameter, defaulting to false.
937 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
938 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
939 parameter.
940 * dwarf2read.h (struct die_info): Forward-declare.
941 (die_info_ptr): New typedef.
942 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
943
2b69821e
JB
9442018-09-05 Joel Brobecker <brobecker@adacore.com>
945
946 GDB 8.2 released.
947
fcc9b044
SDJ
9482018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
949 Pedro Alves <palves@redhat.com>
950
951 * gnulib/Makefile.in (aclocal_m4_deps): Move to
952 "aclocal-m4-deps.mk". Include file here.
953 $(srcdir)/aclocal.m4: Add "configure.ac".
954 * gnulib/aclocal-m4-deps.mk: New file.
955 * gnulib/update-gnulib.sh: Automatically update
956 "aclocal-m4-deps.mk".
957
d53d5436
TT
9582018-09-04 Tom Tromey <tom@tromey.com>
959
960 * configure: Rebuild.
961 * configure.ac: Remove multi-ice code.
962
8dc9fd87
TT
9632018-09-04 Tom Tromey <tom@tromey.com>
964
965 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
966 (ada-exp.o): Update.
967
3322c5d9
TT
9682018-09-04 Tom Tromey <tom@tromey.com>
969
970 * Makefile.in (printcmd.o, target-float.o): Remove.
971 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
972
ba2bf2aa
TT
9732018-09-04 Tom Tromey <tom@tromey.com>
974
975 * gnulib/Makefile.in: Remove obsolete comment.
976 * Makefile.in: Remove obsolete comment.
977
6c9d681b
AB
9782018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
979
980 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
981 line with '+'.
982
78a3b0fa
AB
9832018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
984
985 * riscv-tdep.c: Add 'prologue-value.h' include.
986 (struct riscv_unwind_cache): New struct.
987 (riscv_debug_unwinder): New global.
988 (riscv_scan_prologue): Update arguments, capture register details
989 from prologue scan.
990 (riscv_skip_prologue): Reformat arguments line, move end of
991 prologue calculation into riscv_scan_prologue.
992 (riscv_frame_cache): Update return type, create
993 riscv_unwind_cache, scan the prologue, and fill in remaining cache
994 details.
995 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
996 (riscv_frame_prev_register): Use the trad_frame within the
997 riscv_unwind_cache.
998 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
999 flag.
1000
23e60e7a
AB
10012018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1002
1003 * trad-frame.h (trad_frame_set_realreg): Declare.
1004 (trad_frame_set_addr): Declare.
1005 * trad-frame.c (trad_frame_set_realreg): Define new function.
1006 (trad_frame_set_addr): Define new function.
1007 (trad_frame_set_reg_realreg): Use new function.
1008 (trad_frame_set_reg_addr): Use new function.
1009
5c889512
KS
10102018-09-01 Keith Seitz <keiths@redhat.com>
1011
1012 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
1013 pulongest instead of "%lld".
1014 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
1015 ATTRIBUTE_UNUSED.
1016
c8c81635
TT
10172018-08-31 Tom Tromey <tom@tromey.com>
1018
1019 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
1020 variant part type.
1021
0c888588
PA
10222018-08-31 Pedro Alves <palves@redhat.com>
1023
1024 * gdbarch.h: Regenerate.
1025
7ea65f08
PA
10262018-08-31 Pedro Alves <palves@redhat.com>
1027
1028 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
1029 * target.h (Hardware watchpoint interfaces): Describe
1030 continuable/steppable/non-steppable watchpoints.
1031 * gdbarch.h, gdbarch.c: Regenerate.
1032
7eb65faf
PA
10332018-08-31 Pedro Alves <palves@redhat.com>
1034
1035 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
1036 Delete.
1037 * s390-linux-nat.c
1038 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
1039 * target.h (target_ops::have_continuable_watchpoint): Delete.
1040 (target_have_continuable_watchpoint): Delete.
1041 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
1042 * target-delegates.c: Regenerate.
1043
dab999b1
SDJ
10442018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
1045
1046 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
1047 the files present in "gnulib/import/m4/".
1048
ff3a05b3
AB
10492018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
1050
1051 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
1052 c.sw, c.swsp, and c.sdsp.
1053
0b3f9efc
AB
10542018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
1055
1056 * riscv-tdep.c (struct riscv_inferior_data): Delete.
1057 (riscv_read_misa_reg): Don't cache value read into inferior data.
1058 (riscv_new_inferior_data): Delete.
1059 (riscv_inferior_data_cleanup): Delete.
1060 (riscv_inferior_data): Delete.
1061 (riscv_invalidate_inferior_data): Delete.
1062 (_initialize_riscv_tdep): Remove initialisation of inferior data.
1063
a0dc02a6
SM
10642018-08-30 Simon Marchi <simon.marchi@ericsson.com>
1065
1066 * compile/compile-cplus-types.c
1067 (compile_cplus_instance::leave_scope): Take the address of scope
1068 object.
1069 (compile_cplus_instance::convert_qualified_base): Compare quals
1070 to 0.
1071
fdad7678
KS
10722018-08-30 Keith Seitz <keiths@redhat.com>
1073
1074 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
1075 Use "%s" and host_address_to_string instead of "%p" in printf.
1076
078a0207
KS
10772018-08-29 Keith Seitz <keiths@redhat.com>
1078
1079 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
1080 and compile-cplus-types.c.
1081 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
1082 * c-lang.c (cplus_language_defn): Set C++ compile functions.
1083 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
1084 Declare.
1085 * compile/compile-c-support.c: Include compile-cplus.h.
1086 (load_libcompile): Templatize.
1087 (get_compile_context): "New" function.
1088 (c_get_compile_context): Use get_compile_context.
1089 (cplus_get_compile_context): New function.
1090 (cplus_push_user_expression, cplus_pop_user_expression)
1091 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
1092 (cplus_compute_program): Define new structs/functions.
1093 * compile/compile-cplus-symmbols.c: New file.
1094 * compile/compile-cplus-types.c: New file.
1095 * compile/compile-cplus.h: New file.
1096 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
1097 Declare.
1098 * compile/compile-object-load.c (get_out_value_type): Use
1099 strncmp_iw when comparing symbol names.
1100 (compile_object_load): Add mst_bss and mst_data.
1101 * compile/compile.c (_initialize_compile): Remove
1102 -Wno-implicit-function-declaration from `compile_args'.
1103 * compile/gcc-cp-plugin.h: New file.
1104 * NEWS: Mention C++ compile support and new debug options.
1105
fcaad03c
KS
11062018-08-29 Keith Seitz <keiths@redhat.com>
1107
1108 * linespec.c (collect_info::add_symbol): Make virtual.
1109 (struct symbol_searcher_collect_info): New struct.
1110 (symbol_searcher::find_all_symbols): New method.
1111 * symtab.h (class symbol_searcher): New class.
1112
7e41c8db
KS
11132018-08-29 Keith Seitz <keiths@redhat.com>
1114
1115 * linespec.c (struct linespec) <function_symbols, label_symbols>:
1116 Change to vector of block_symbol. Update all users.
1117 (struct collect_info) <symbols>: Likewise.
1118 (collect_info::add_symbol): Take block_symbol as argument.
1119 Update all callers.
1120 (decode_compound_collector) <m_symbols>: Change type to vector
1121 of block_symbol. Update all users.
1122 (decode_compound_collector::operator ()): Change parameter type
1123 to block_symbol.
1124 (find_method, find_function_symbols, find_linespec_symbols)
1125 (find_label_symbols_in_block, find_label_symbols): Change symbol
1126 vectors to block_symbol vectors.
1127 * symtab.h (symbol_found_callback_ftype): Change parameter type to
1128 block_symbol.
1129
63e8c3da
KS
11302018-08-29 Keith Seitz <keiths@redhat.com>
1131
1132 * linespec.c (symbolp): Remove typedef and VEC definitions.
1133 (bound_minimal_symbol_d): Likewise.
1134
4dedf84d
KS
11352018-08-29 Keith Seitz <keiths@redhat.com>
1136
1137 * linespec.c (decode_compound_collector::decode_compound_collector):
1138 Remove initialization for `m_symtabs'.
1139 (decode_compound_collector::release_symbols): Change return type
1140 to std::vector. Update all callers.
1141 (class decode_compound_collector) <m_symbols>: Change type to
1142 std::vector.
1143 (lookup_prefix_sym): Change return type to std::vector. Update all
1144 callers.
1145 (compare_symbols): Remove.
1146 (std_compare_symbols): Rename to `compare_symbols'.
1147 (find_method): Change `sym_classes' parameter to std::vector.
1148 Update all callers. Use std::sort to sort sym_classes.
1149 (find_linespec_symbols): Remove cleanup.
1150
c2a031c5
KS
11512018-08-29 Keith Seitz <keiths@redhat.com>
1152
1153 * linespec.c (struct linespec) <minimal_symbols>: Change type to
1154 std::vector. Update all users.
1155 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
1156 (struct collect_info) <minimal_symbols>: Likewise.
1157 (compare_msymbols): Return bool. Change parameters to const
1158 bound_minimal_symbol references.
1159 (find_method, find_function_symbols, find_linespec_symbols): Change
1160 `minsyms' parameter to std::vector. Update all callers.
1161
3553eadc
KS
11622018-08-29 Keith Seitz <keiths@redhat.com>
1163
1164 * linespec.c (struct linespec) <label_symbols>: Change type to
1165 std::vector. Update all users.
1166 (find_label_symbols_in_block): Change `result' parameter to
1167 std::vector. Update all callers.
1168 (find_label_symbols): Return std::vector. Update all callers.
1169
7243d011
KS
11702018-08-29 Keith Seitz <keiths@redhat.com>
1171
1172 * linespec.c (struct linespec) <function_symbols>: Change type to
1173 std::vector. Update all users.
1174 (struct collect_info) <function_symbols>: Likewise.
1175 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
1176 (std_compare_symbols): New function.
1177 (find_method, find_function_symbols, find_linespec_symbols)
1178 (find_label_symbols_in_block): Change `symbols' parameter to
1179 std::vector. Update all callers.
1180 (find_label_symbols): Likewise for `function_symbols' and
1181 `label_funcs_ret'.
1182
2a908241
KS
11832018-08-29 Keith Seitz <keiths@redhat.com>
1184
1185 * linespec.c (symtab_vector_up): Define.
1186 (struct linespec) <file_symtabs>: Change type to std::vector *.
1187 Update all uses.
1188 (struct collect_info) <file_symtabs>: Likewise.
1189 (collect_symtabs_from_filename): Return symtab_vector_up.
1190 Update all callers.
1191 (decode_objc): Remove cleanup.
1192 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
1193 (symtab_collector::release_symtabs): Return symtab_vector_up.
1194 Update all callers.
1195 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
1196 Update all users.
1197 (collect_symtabs_from_filename, symtabs_from_filename): Return
1198 symtab_vector_up. Update all callers.
1199
f6c4e3e8
TT
12002018-08-29 Tom Tromey <tom@tromey.com>
1201
1202 * csky-tdep.c (csky_analyze_prologue): Use
1203 core_addr_to_string_nz.
1204
73c13fe6
TT
12052018-08-29 Tom Tromey <tom@tromey.com>
1206
1207 * windows-nat.c (struct xlate_exception) <them>: Change type to
1208 DWORD.
1209 (xlate): Fix formatting. Remove last entry.
1210 (struct xlate_exception, xlate): Comment out.
1211 (windows_nat_target::resume): Use ranged for.
1212
4d3928d7
JW
12132018-08-29 Jim Wilson <jimw@sifive.com>
1214
1215 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
1216 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
1217 of NT_PRFPREG.
1218 (riscv_linux_nat_target::store_registers): Likewise.
1219
7a6dbc2f
SDJ
12202018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
1221
1222 PR gdb/23555
1223 PR gdb/23558
1224 * gnulib/aclocal.m4: Regenerate.
1225 * gnulib/config.in: Regenerate.
1226 * gnulib/configure: Regenerate.
1227 * gnulib/import/Makefile.am: Update.
1228 * gnulib/import/Makefile.in: Update.
1229 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
1230 * gnulib/import/_Noreturn.h: ... this.
1231 * gnulib/import/alloca.in.h: Update.
1232 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
1233 * gnulib/import/arg-nonnull.h: ... this.
1234 * gnulib/import/assure.h: Update.
1235 * gnulib/import/at-func.c: Update.
1236 * gnulib/import/basename-lgpl.c: Update.
1237 * gnulib/import/extra/snippet/c++defs.h: Rename to...
1238 * gnulib/import/c++defs.h: ... this.
1239 * gnulib/import/canonicalize-lgpl.c: Update.
1240 * gnulib/import/cdefs.h: Update.
1241 * gnulib/import/chdir-long.c: Update.
1242 * gnulib/import/chdir-long.h: Update.
1243 * gnulib/import/cloexec.c: Update.
1244 * gnulib/import/cloexec.h: Update.
1245 * gnulib/import/close.c: Update.
1246 * gnulib/import/closedir.c: Update.
1247 * gnulib/import/config.charset: Update.
1248 * gnulib/import/dirent-private.h: Update.
1249 * gnulib/import/dirent.in.h: Update.
1250 * gnulib/import/dirfd.c: Update.
1251 * gnulib/import/dirname-lgpl.c: Update.
1252 * gnulib/import/dirname.h: Update.
1253 * gnulib/import/dosname.h: Update.
1254 * gnulib/import/dup-safer-flag.c: Update.
1255 * gnulib/import/dup-safer.c: Update.
1256 * gnulib/import/dup.c: Update.
1257 * gnulib/import/dup2.c: Update.
1258 * gnulib/import/errno.in.h: Update.
1259 * gnulib/import/error.c: Update.
1260 * gnulib/import/error.h: Update.
1261 * gnulib/import/exitfail.c: Update.
1262 * gnulib/import/exitfail.h: Update.
1263 * gnulib/import/extra/update-copyright: Update.
1264 * gnulib/import/fchdir.c: Update.
1265 * gnulib/import/fcntl.c: Update.
1266 * gnulib/import/fcntl.in.h: Update.
1267 * gnulib/import/fd-hook.c: Update.
1268 * gnulib/import/fd-hook.h: Update.
1269 * gnulib/import/fd-safer-flag.c: Update.
1270 * gnulib/import/fd-safer.c: Update.
1271 * gnulib/import/fdopendir.c: Update.
1272 * gnulib/import/filename.h: Update.
1273 * gnulib/import/filenamecat-lgpl.c: Update.
1274 * gnulib/import/filenamecat.h: Update.
1275 * gnulib/import/flexmember.h: Update.
1276 * gnulib/import/float+.h: Update.
1277 * gnulib/import/float.c: Update.
1278 * gnulib/import/float.in.h: Update.
1279 * gnulib/import/fnmatch.c: Update.
1280 * gnulib/import/fnmatch.in.h: Update.
1281 * gnulib/import/fnmatch_loop.c: Update.
1282 * gnulib/import/fpucw.h: Update.
1283 * gnulib/import/frexp.c: Update.
1284 * gnulib/import/frexpl.c: Update.
1285 * gnulib/import/fstat.c: Update.
1286 * gnulib/import/fstatat.c: Update.
1287 * gnulib/import/getcwd-lgpl.c: Update.
1288 * gnulib/import/getcwd.c: Update.
1289 * gnulib/import/getdtablesize.c: Update.
1290 * gnulib/import/getlogin_r.c: Update.
1291 * gnulib/import/getprogname.c: Update.
1292 * gnulib/import/getprogname.h: Update.
1293 * gnulib/import/gettext.h: Update.
1294 * gnulib/import/gettimeofday.c: Update.
1295 * gnulib/import/glob-libc.h: Update.
1296 * gnulib/import/glob.c: Update.
1297 * gnulib/import/glob.in.h: Update.
1298 * gnulib/import/glob_internal.h: Update.
1299 * gnulib/import/glob_pattern_p.c: Update.
1300 * gnulib/import/globfree.c: Update.
1301 * gnulib/import/hard-locale.c: Update.
1302 * gnulib/import/hard-locale.h: Update.
1303 * gnulib/import/intprops.h: Update.
1304 * gnulib/import/inttypes.in.h: Update.
1305 * gnulib/import/isnan.c: Update.
1306 * gnulib/import/isnand-nolibm.h: Update.
1307 * gnulib/import/isnand.c: Update.
1308 * gnulib/import/isnanl-nolibm.h: Update.
1309 * gnulib/import/isnanl.c: Update.
1310 * gnulib/import/itold.c: Update.
1311 * gnulib/import/libc-config.h: Update.
1312 * gnulib/import/limits.in.h: Update.
1313 * gnulib/import/localcharset.c: Update.
1314 * gnulib/import/localcharset.h: Update.
1315 * gnulib/import/localtime-buffer.c: Update.
1316 * gnulib/import/localtime-buffer.h: Update.
1317 * gnulib/import/lstat.c: Update.
1318 * gnulib/import/m4/00gnulib.m4: Update.
1319 * gnulib/import/m4/__inline.m4: Update.
1320 * gnulib/import/m4/absolute-header.m4: Update.
1321 * gnulib/import/m4/alloca.m4: Update.
1322 * gnulib/import/m4/builtin-expect.m4: Update.
1323 * gnulib/import/m4/canonicalize.m4: Update.
1324 * gnulib/import/m4/chdir-long.m4: Update.
1325 * gnulib/import/m4/close.m4: Update.
1326 * gnulib/import/m4/closedir.m4: Update.
1327 * gnulib/import/m4/configmake.m4: Update.
1328 * gnulib/import/m4/d-ino.m4: Update.
1329 * gnulib/import/m4/d-type.m4: Update.
1330 * gnulib/import/m4/dirent_h.m4: Update.
1331 * gnulib/import/m4/dirfd.m4: Update.
1332 * gnulib/import/m4/dirname.m4: Update.
1333 * gnulib/import/m4/double-slash-root.m4: Update.
1334 * gnulib/import/m4/dup.m4: Update.
1335 * gnulib/import/m4/dup2.m4: Update.
1336 * gnulib/import/m4/eealloc.m4: Update.
1337 * gnulib/import/m4/environ.m4: Update.
1338 * gnulib/import/m4/errno_h.m4: Update.
1339 * gnulib/import/m4/error.m4: Update.
1340 * gnulib/import/m4/exponentd.m4: Update.
1341 * gnulib/import/m4/exponentl.m4: Update.
1342 * gnulib/import/m4/extensions.m4: Update.
1343 * gnulib/import/m4/extern-inline.m4: Update.
1344 * gnulib/import/m4/fchdir.m4: Update.
1345 * gnulib/import/m4/fcntl-o.m4: Update.
1346 * gnulib/import/m4/fcntl.m4: Update.
1347 * gnulib/import/m4/fcntl_h.m4: Update.
1348 * gnulib/import/m4/fdopendir.m4: Update.
1349 * gnulib/import/m4/filenamecat.m4: Update.
1350 * gnulib/import/m4/flexmember.m4: Update.
1351 * gnulib/import/m4/float_h.m4: Update.
1352 * gnulib/import/m4/fnmatch.m4: Update.
1353 * gnulib/import/m4/fnmatch_h.m4: Update.
1354 * gnulib/import/m4/fpieee.m4: Update.
1355 * gnulib/import/m4/frexp.m4: Update.
1356 * gnulib/import/m4/frexpl.m4: Update.
1357 * gnulib/import/m4/fstat.m4: Update.
1358 * gnulib/import/m4/fstatat.m4: Update.
1359 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
1360 * gnulib/import/m4/getcwd-path-max.m4: Update.
1361 * gnulib/import/m4/getcwd.m4: Update.
1362 * gnulib/import/m4/getdtablesize.m4: Update.
1363 * gnulib/import/m4/getlogin.m4: Update.
1364 * gnulib/import/m4/getlogin_r.m4: Update.
1365 * gnulib/import/m4/getpagesize.m4: Update.
1366 * gnulib/import/m4/getprogname.m4: Update.
1367 * gnulib/import/m4/gettimeofday.m4: Update.
1368 * gnulib/import/m4/glibc21.m4: Update.
1369 * gnulib/import/m4/glob.m4: Update.
1370 * gnulib/import/m4/glob_h.m4: Update.
1371 * gnulib/import/m4/gnulib-cache.m4: Update.
1372 * gnulib/import/m4/gnulib-common.m4: Update.
1373 * gnulib/import/m4/gnulib-comp.m4: Update.
1374 * gnulib/import/m4/gnulib-tool.m4: Update.
1375 * gnulib/import/m4/hard-locale.m4: Update.
1376 * gnulib/import/m4/include_next.m4: Update.
1377 * gnulib/import/m4/inttypes-pri.m4: Update.
1378 * gnulib/import/m4/inttypes.m4: Update.
1379 * gnulib/import/m4/isnand.m4: Update.
1380 * gnulib/import/m4/isnanl.m4: Update.
1381 * gnulib/import/m4/largefile.m4: Update.
1382 * gnulib/import/m4/limits-h.m4: Update.
1383 * gnulib/import/m4/localcharset.m4: Update.
1384 * gnulib/import/m4/locale-fr.m4: Update.
1385 * gnulib/import/m4/locale-ja.m4: Update.
1386 * gnulib/import/m4/locale-zh.m4: Update.
1387 * gnulib/import/m4/localtime-buffer.m4: Update.
1388 * gnulib/import/m4/longlong.m4: Update.
1389 * gnulib/import/m4/lstat.m4: Update.
1390 * gnulib/import/m4/malloc.m4: Update.
1391 * gnulib/import/m4/malloca.m4: Update.
1392 * gnulib/import/m4/math_h.m4: Update.
1393 * gnulib/import/m4/mbrtowc.m4: Update.
1394 * gnulib/import/m4/mbsinit.m4: Update.
1395 * gnulib/import/m4/mbsrtowcs.m4: Update.
1396 * gnulib/import/m4/mbstate_t.m4: Update.
1397 * gnulib/import/m4/memchr.m4: Update.
1398 * gnulib/import/m4/memmem.m4: Update.
1399 * gnulib/import/m4/mempcpy.m4: Update.
1400 * gnulib/import/m4/memrchr.m4: Update.
1401 * gnulib/import/m4/mkdir.m4: Update.
1402 * gnulib/import/m4/mkstemp.m4: Update.
1403 * gnulib/import/m4/mmap-anon.m4: Update.
1404 * gnulib/import/m4/mode_t.m4: Update.
1405 * gnulib/import/m4/msvc-inval.m4: Update.
1406 * gnulib/import/m4/msvc-nothrow.m4: Update.
1407 * gnulib/import/m4/multiarch.m4: Update.
1408 * gnulib/import/m4/nocrash.m4: Update.
1409 * gnulib/import/m4/off_t.m4: Update.
1410 * gnulib/import/m4/onceonly.m4: Update.
1411 * gnulib/import/m4/open-cloexec.m4: Update.
1412 * gnulib/import/m4/open.m4: Update.
1413 * gnulib/import/m4/openat.m4: Update.
1414 * gnulib/import/m4/opendir.m4: Update.
1415 * gnulib/import/m4/pathmax.m4: Update.
1416 * gnulib/import/m4/rawmemchr.m4: Update.
1417 * gnulib/import/m4/readdir.m4: Update.
1418 * gnulib/import/m4/readlink.m4: Update.
1419 * gnulib/import/m4/realloc.m4: Update.
1420 * gnulib/import/m4/rename.m4: Update.
1421 * gnulib/import/m4/rewinddir.m4: Update.
1422 * gnulib/import/m4/rmdir.m4: Update.
1423 * gnulib/import/m4/save-cwd.m4: Update.
1424 * gnulib/import/m4/secure_getenv.m4: Update.
1425 * gnulib/import/m4/setenv.m4: Update.
1426 * gnulib/import/m4/signal_h.m4: Update.
1427 * gnulib/import/m4/ssize_t.m4: Update.
1428 * gnulib/import/m4/stat-time.m4: Update.
1429 * gnulib/import/m4/stat.m4: Update.
1430 * gnulib/import/m4/std-gnu11.m4: Update.
1431 * gnulib/import/m4/stdbool.m4: Update.
1432 * gnulib/import/m4/stddef_h.m4: Update.
1433 * gnulib/import/m4/stdint.m4: Update.
1434 * gnulib/import/m4/stdio_h.m4: Update.
1435 * gnulib/import/m4/stdlib_h.m4: Update.
1436 * gnulib/import/m4/strchrnul.m4: Update.
1437 * gnulib/import/m4/strdup.m4: Update.
1438 * gnulib/import/m4/strerror.m4: Update.
1439 * gnulib/import/m4/string_h.m4: Update.
1440 * gnulib/import/m4/strstr.m4: Update.
1441 * gnulib/import/m4/strtok_r.m4: Update.
1442 * gnulib/import/m4/sys_socket_h.m4: Update.
1443 * gnulib/import/m4/sys_stat_h.m4: Update.
1444 * gnulib/import/m4/sys_time_h.m4: Update.
1445 * gnulib/import/m4/sys_types_h.m4: Update.
1446 * gnulib/import/m4/tempname.m4: Update.
1447 * gnulib/import/m4/time_h.m4: Update.
1448 * gnulib/import/m4/unistd-safer.m4: Update.
1449 * gnulib/import/m4/unistd_h.m4: Update.
1450 * gnulib/import/m4/warn-on-use.m4: Update.
1451 * gnulib/import/m4/wchar_h.m4: Update.
1452 * gnulib/import/m4/wchar_t.m4: Update.
1453 * gnulib/import/m4/wctype_h.m4: Update.
1454 * gnulib/import/m4/wint_t.m4: Update.
1455 * gnulib/import/malloc.c: Update.
1456 * gnulib/import/malloc/scratch_buffer.h: Update.
1457 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
1458 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
1459 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
1460 * gnulib/import/malloca.c: Update.
1461 * gnulib/import/malloca.h: Update.
1462 * gnulib/import/malloca.valgrind: Update.
1463 * gnulib/import/math.in.h: Update.
1464 * gnulib/import/mbrtowc.c: Update.
1465 * gnulib/import/mbsinit.c: Update.
1466 * gnulib/import/mbsrtowcs-impl.h: Update.
1467 * gnulib/import/mbsrtowcs-state.c: Update.
1468 * gnulib/import/mbsrtowcs.c: Update.
1469 * gnulib/import/memchr.c: Update.
1470 * gnulib/import/memmem.c: Update.
1471 * gnulib/import/mempcpy.c: Update.
1472 * gnulib/import/memrchr.c: Update.
1473 * gnulib/import/mkdir.c: Update.
1474 * gnulib/import/mkstemp.c: Update.
1475 * gnulib/import/msvc-inval.c: Update.
1476 * gnulib/import/msvc-inval.h: Update.
1477 * gnulib/import/msvc-nothrow.c: Update.
1478 * gnulib/import/msvc-nothrow.h: Update.
1479 * gnulib/import/open.c: Update.
1480 * gnulib/import/openat-die.c: Update.
1481 * gnulib/import/openat-priv.h: Update.
1482 * gnulib/import/openat-proc.c: Update.
1483 * gnulib/import/openat.c: Update.
1484 * gnulib/import/openat.h: Update.
1485 * gnulib/import/opendir.c: Update.
1486 * gnulib/import/pathmax.h: Update.
1487 * gnulib/import/pipe-safer.c: Update.
1488 * gnulib/import/rawmemchr.c: Update.
1489 * gnulib/import/readdir.c: Update.
1490 * gnulib/import/readlink.c: Update.
1491 * gnulib/import/realloc.c: Update.
1492 * gnulib/import/ref-add.sin: Update.
1493 * gnulib/import/ref-del.sin: Update.
1494 * gnulib/import/rename.c: Update.
1495 * gnulib/import/rewinddir.c: Update.
1496 * gnulib/import/rmdir.c: Update.
1497 * gnulib/import/same-inode.h: Update.
1498 * gnulib/import/save-cwd.c: Update.
1499 * gnulib/import/save-cwd.h: Update.
1500 * gnulib/import/scratch_buffer.h: Update.
1501 * gnulib/import/secure_getenv.c: Update.
1502 * gnulib/import/setenv.c: Update.
1503 * gnulib/import/signal.in.h: Update.
1504 * gnulib/import/stat-time.c: Update.
1505 * gnulib/import/stat-time.h: Update.
1506 * gnulib/import/stat-w32.c: Update.
1507 * gnulib/import/stat-w32.h: Update.
1508 * gnulib/import/stat.c: Update.
1509 * gnulib/import/stdbool.in.h: Update.
1510 * gnulib/import/stddef.in.h: Update.
1511 * gnulib/import/stdint.in.h: Update.
1512 * gnulib/import/stdio.in.h: Update.
1513 * gnulib/import/stdlib.in.h: Update.
1514 * gnulib/import/str-two-way.h: Update.
1515 * gnulib/import/strchrnul.c: Update.
1516 * gnulib/import/strdup.c: Update.
1517 * gnulib/import/streq.h: Update.
1518 * gnulib/import/strerror-override.c: Update.
1519 * gnulib/import/strerror-override.h: Update.
1520 * gnulib/import/strerror.c: Update.
1521 * gnulib/import/string.in.h: Update.
1522 * gnulib/import/stripslash.c: Update.
1523 * gnulib/import/strnlen1.c: Update.
1524 * gnulib/import/strnlen1.h: Update.
1525 * gnulib/import/strstr.c: Update.
1526 * gnulib/import/strtok_r.c: Update.
1527 * gnulib/import/sys_stat.in.h: Update.
1528 * gnulib/import/sys_time.in.h: Update.
1529 * gnulib/import/sys_types.in.h: Update.
1530 * gnulib/import/tempname.c: Update.
1531 * gnulib/import/tempname.h: Update.
1532 * gnulib/import/time.in.h: Update.
1533 * gnulib/import/unistd--.h: Update.
1534 * gnulib/import/unistd-safer.h: Update.
1535 * gnulib/import/unistd.in.h: Update.
1536 * gnulib/import/unsetenv.c: Update.
1537 * gnulib/import/verify.h: Update.
1538 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1539 * gnulib/import/wchar.in.h: Update.
1540 * gnulib/import/wctype.in.h: Update.
1541 * gnulib/import/xalloc-oversized.h: Update.
1542 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1543 "53e2c179f26a890fa6685af4b6c1397ee370433b".
1544
b0f492b9
GB
15452018-08-16 Gary Benson <gbenson@redhat.com>
1546
1547 PR gdb/13000:
1548 * gdb/main.c (captured_main_1): Exit with nonzero status
1549 in batch mode if the last command to be executed failed.
1550 * NEWS: Mention the above.
1551
2362e7f7
SM
15522018-08-29 Simon Marchi <simon.marchi@ericsson.com>
1553
1554 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
1555 end of warning message.
1556
4f4aedeb
AH
15572018-08-29 Alan Hayward <alan.hayward@arm.com>
1558
1559 PR gdb/22943:
1560 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
1561 (aarch64_extract_return_value): Use
1562 aapcs_is_vfp_call_or_return_candidate.
1563 (aarch64_return_in_memory): Likewise.
1564 (aarch64_store_return_value): Likewise.
1565
0e745c60
AH
15662018-08-29 Alan Hayward <alan.hayward@arm.com>
1567
1568 * aarch64-tdep.c
1569 (aapcs_is_vfp_call_or_return_candidate): Make static
1570 (pass_in_v_or_stack): Remove function.
1571 (pass_in_v_vfp_candidate): New function.
1572 (aarch64_push_dummy_call): Check for float register candidates.
1573
ea92689a
AH
15742018-08-29 Alan Hayward <alan.hayward@arm.com>
1575
1576 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
1577 (aapcs_is_vfp_call_or_return_candidate_1): New function.
1578 (aapcs_is_vfp_call_or_return_candidate): Likewise.
1579
ad202fcc
SM
15802018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
1581
1582 PR build/23399
1583 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
1584 (struct ipa_sym_addresses): Rename to...
1585 (struct ipa_sym_addresses_common): ... this.
1586 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
1587
5fe3f3e4
TT
15882018-08-28 Tom Tromey <tom@tromey.com>
1589
1590 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1591 (token_fifo): Now a std::vector.
1592 (yylex, c_parse): Update.
1593 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1594 (token_fifo): Now a std::vector.
1595 (yylex, d_parse): Update.
1596 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1597 (token_fifo): Now a std::vector.
1598 (yylex, go_parse): Update.
1599
858d8004
SM
16002018-08-28 Simon Marchi <simon.marchi@ericsson.com>
1601
1602 * parser-defs.h (struct type_stack) <elements>: Change type to
1603 std::vector<union type_stack_elt>.
1604 <depth, size>: Remove.
1605 * parse.c (parse_exp_in_context_1): Adjust.
1606 (type_stack_reserve): Remove.
1607 (check_type_stack_depth): Remove.
1608 (insert_into_type_stack): Adjust to std::vector.
1609 (insert_type): Likewise.
1610 (push_type): Likewise.
1611 (push_type_int): Likewise.
1612 (insert_type_address_space): Likewise.
1613 (pop_type): Likewise.
1614 (pop_type_int): Likewise.
1615 (pop_typelist): Likewise.
1616 (pop_type_stack): Likewise.
1617 (append_type_stack): Likewise.
1618 (push_type_stack): Likewise.
1619 (get_type_stack): Likewise.
1620 (type_stack_cleanup): Likewise.
1621 (push_typelist): Likewise.
1622 (follow_types): Likewise.
1623 (_initialize_parse): Likewise.
1624
416a69af
HAQ
16252018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
1626
1627 * NEWS: Mention csky target.
1628
9d24df82
HAQ
16292018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
1630 Hafiz Abid Qadeer <abidh@codesourcery.com>
1631 Don Breazeal <donb@codesourcery.com>
1632
1633 * csky-linux-tdep.c: New file.
1634 * csky-tdep.c: Likewise.
1635 * csky-tdep.h: Likewise.
1636 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
1637 csky-tdep.o.
1638 (HFILES_NO_SRCDIR): Add csky-tdep.h.
1639 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
1640 * configure.tgt: Add csky support.
1641
3bf9c013
JV
16422018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
1643
1644 * python/py-framefilter.c (py_print_frame): Print frame architecture
1645 when printing on an MI output.
1646
d3d8724a
TT
16472018-08-27 Tom Tromey <tom@tromey.com>
1648
1649 PR build/23087:
1650 * configure: Rebuild.
1651 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
1652
1885053b
TT
16532018-08-27 Tom Tromey <tom@tromey.com>
1654
1655 * aarch64-linux-tdep.c
1656 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
1657 casts to int.
1658
8406672e
TT
16592018-08-27 Tom Tromey <tom@tromey.com>
1660
1661 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
1662 unsigned.
1663 (ppc64_standard_linkage1, ppc64_standard_linkage2)
1664 (ppc64_standard_linkage3, ppc64_standard_linkage4)
1665 (ppc64_standard_linkage5, ppc64_standard_linkage6)
1666 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
1667 unsigned.
1668
ec40cf90
TT
16692018-08-27 Tom Tromey <tom@tromey.com>
1670
1671 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
1672 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
1673
7bc02706
TT
16742018-08-27 Tom Tromey <tom@tromey.com>
1675
1676 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
1677 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
1678 ULONGEST_MAX.
1679 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
1680 ULONGEST_MAX.
1681 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
1682 ULONGEST_MAX.
1683 * sparc-linux-tdep.c (sparc32_linux_sigframe)
1684 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
1685 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
1686 ULONGEST_MAX.
1687 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
1688 (ppc64_linux_sigaction_tramp_frame)
1689 (ppc32_linux_sighandler_tramp_frame)
1690 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
1691 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
1692 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
1693 * mn10300-linux-tdep.c (am33_linux_sigframe)
1694 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
1695 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
1696 * mips-linux-tdep.c (mips_linux_o32_sigframe)
1697 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
1698 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
1699 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
1700 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
1701 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
1702 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
1703 * microblaze-linux-tdep.c
1704 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
1705 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
1706 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
1707 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
1708 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
1709 * common/common-types.h (ULONGEST_MAX): New define.
1710 (CORE_ADDR_MAX): Fix formatting.
1711 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
1712 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
1713 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
1714 (arm_linux_rt_sigreturn_tramp_frame)
1715 (arm_eabi_linux_sigreturn_tramp_frame)
1716 (arm_eabi_linux_rt_sigreturn_tramp_frame)
1717 (thumb2_eabi_linux_sigreturn_tramp_frame)
1718 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
1719 (arm_linux_restart_syscall_tramp_frame)
1720 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
1721 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
1722 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
1723 ULONGEST_MAX.
1724 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
1725
70ab8ccd
TT
17262018-08-27 Tom Tromey <tom@tromey.com>
1727
1728 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
1729 CORE_ADDR_MAX.
1730 * mips-tdep.c (mips_deal_with_atomic_sequence)
1731 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
1732 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
1733 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
1734 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
1735 CORE_ADDR_MAX.
1736 * aarch64-tdep.c (aarch64_software_single_step): Use
1737 CORE_ADDR_MAX.
1738
896a7aa6
TT
17392018-08-27 Tom Tromey <tom@tromey.com>
1740
1741 * linespec.c (complete_linespec_component): Add cast to "char".
1742 * completer.c (completion_tracker::build_completion_result): Add
1743 cast to "char".
1744
dd33d41d
SM
17452018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
1746
1747 * solist.h (struct solist, struct target_so_ops): Fix
1748 indentation.
1749
c645cda4
SM
17502018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
1751
1752 * ada-tasks.c (ada_task_info_s): Remove typedef.
1753 (DEF_VEC_O(ada_task_info_s)): Remove.
1754 (struct ada_tasks_inferior_data): Initialize fields.
1755 <task_list>: Make an std::vector.
1756 (get_ada_tasks_inferior_data): Allocate with new.
1757 (ada_get_task_number): Adjust.
1758 (get_task_number_from_id): Likewise.
1759 (valid_task_id): Likewise.
1760 (ada_get_task_info_from_ptid): Likewise.
1761 (iterate_over_live_ada_tasks): Likewise.
1762 (add_ada_task): Likewise.
1763 (read_known_tasks): Likewise.
1764 (ada_build_task_list): Likewise.
1765 (print_ada_task_info): Likewise.
1766 (info_task): Likewise.
1767 (task_command_1): Likewise.
1768
39e7af3e
SM
17692018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
1770
1771 * ada-lang.c (add_angle_brackets): Return std::string.
1772
bbbbbcee
SM
17732018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
1774
1775 * python/py-threadevent.c (py_get_event_thread): Initialize
1776 pythread.
1777
d98fc15b
PA
17782018-08-24 Pedro Alves <palves@redhat.com>
1779
1780 * python/py-bpevent.c (create_breakpoint_event_object): Use
1781 copy-initialization.
1782 * python/py-continueevent.c (emit_continue_event): Use
1783 copy-initialization.
1784 * python/py-exitedevent.c (create_exited_event_object): Return a
1785 gdbpy_ref<>.
1786 (emit_exited_event): Use copy-initialization.
1787 * python/py-inferior.c (python_new_inferior)
1788 (python_inferior_deleted, add_thread_object): Use
1789 copy-initialization.
1790 * python/py-infevents.c (create_inferior_call_event_object)
1791 (create_register_changed_event_object)
1792 (create_memory_changed_event_object): Return a gdbpy_ref<>.
1793 (emit_inferior_call_event, emit_memory_changed_event)
1794 (emit_register_changed_event): Use copy-initialization.
1795 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1796 Return a gdbpy_ref<>.
1797 (emit_new_objfile_event): Use copy-initialization.
1798 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
1799 (emit_clear_objfiles_event): Use copy-initialization.
1800 * python/py-signalevent.c (create_signal_event_object): Use
1801 copy-initialization.
1802 * python/py-threadevent.c (create_thread_event_object): Use
1803 copy-initialization.
1804
da3c8738
PA
18052018-08-24 Pedro Alves <palves@redhat.com>
1806 Simon Marchi <simon.marchi@ericsson.com>
1807
1808 PR gdb/23379
1809 * python/py-continueevent.c: Include "gdbthread.h".
1810 (create_continue_event_object): Add intro comment. Add 'ptid'
1811 parameter. Use it to find thread to pass to
1812 create_thread_event_object.
1813 (emit_continue_event): Pass PTID down to
1814 create_continue_event_object.
1815 * python/py-event.h (py_get_event_thread): Declare.
1816 (create_thread_event_object): Remove default from 'thread'
1817 parameter.
1818 * python/py-stopevent.c (create_stop_event_object): Use
1819 py_get_event_thread.
1820 * python/py-threadevent.c (get_event_thread): Rename to ...
1821 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
1822 and use it to find the thread.
1823 (create_thread_event_object): Assert that THREAD isn't null.
1824 Don't find the event thread here.
1825
26457a9c
KB
18262018-08-23 Kevin Buettner <kevinb@redhat.com>
1827
1828 * block.h (blockrange, blockranges): New struct declarations.
1829 (struct block): Add new field named `ranges'.
1830 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
1831 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
1832 macros for accessing ranges in struct block.
1833 (make_blockranges): New declaration.
1834 block.c (make_blockranges): New function.
2d5f09ec
KB
1835 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
1836 for block.
fc811edd
KB
1837 * symtab.h (find_pc_partial_function): Add new parameter `block'.
1838 * blockframe.c (cache_pc_function_block): New static global.
1839 (clear_pc_function_cache): Clear cache_pc_function_block.
1840 (find_pc_partial_function): Move comment to symtab.h. Add
1841 support for non-contiguous blocks.
e9480230
KB
1842 * cli/cli-cmds.c (block.h): Include.
1843 (print_disassembly): Handle printing of non-contiguous blocks.
1844 (disassemble_current_function): Likewise.
1845 (disassemble_command): Likewise.
26457a9c 1846
2b1ffcfd
KB
1847 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
1848 BLOCK_START.
1849 * blockframe.c (get_pc_function_start): Likewise.
1850 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
1851 (gcc_symbol_address): Likewise.
1852 * compile/compile-object-run.c (compile_object_run): Likewise.
1853 * compile/compile.c (get_expr_block_and_pc): Likewise.
1854 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
1855 (func_addr_to_tail_call_list): Likewise.
1856 * findvar.c (default_read_var_value): Likewise.
1857 * inline-frame.c (inline_frame_this_id): Likewise.
1858 (skip-inline_frames): Likewise.
1859 * infcmd.c (until_next_command): Likewise.
1860 * linespec.c (convert_linespec_to_sals): Likewise.
1861 * parse.c (parse_exp_in_context_1): Likewise.
1862 * printcmd.c (build_address_symbolic): likewise.
1863 (info_address_command): Likewise.
1864 symtab.c (find_function_start_sal): Likewise.
1865 (skip_prologue_sal): Likewise.
1866 (find_function_alias_target): Likewise.
1867 (find_gnu_ifunc): Likewise.
1868 * stack.c (find_frame_funname): Likewise.
1869 * symtab.c (fixup_symbol_section): Likewise.
1870 (find_function_start_sal): Likewise.
1871 (skip_prologue_sal): Likewsie.
1872 (find_function_alias_target): Likewise.
1873 (find_gnu_ifunc): Likewise.
1874 * tracepoint.c (info_scope_command): Likewise.
1875 * value.c (value_fn_field): Likewise.
1876
9644dc3a
KB
1877 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
1878 in place of find_pc_partial_function.
1879 * blockframe.c (find_function_entry_range_from_pc): New function.
1880 * symtab.h (find_function_entry_range_from_pc): Declare and document.
1881 * objfiles.c (objfile_relocate1): Relocate start and end addresses
1882 for each range in a block.
1883
1884
12a0d0f6
XR
18852018-08-23 Xavier Roirand <roirand@adacore.com>
1886
1887 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
1888 incrementation.
1889
d1012b8e
SM
18902018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
1891
1892 * solib-svr4.c (read_program_headers_from_bfd): Return
1893 gdb::optional<gdb::byte_vector>.
1894 (svr4_exec_displacement): Adjust.
1895
17658d46
SM
18962018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
1897
1898 * solib-svr4.c (read_program_header): Return
1899 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
1900 (find_program_interpreter): Return
1901 gdb::optional<gdb::byte_vector>.
1902 (scan_dyntag_auxv): Adjust.
1903 (enable_break): Adjust.
1904 (svr4_exec_displacement): Adjust.
1905
ae739fe7
SM
19062018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
1907
1908 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
1909 * inf-child.c (inf_child_target::terminal_save_inferior): New.
1910
467dc1e2
SM
19112018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
1912
1913 * guile/scm-string.c (gdbscm_scm_from_printf): Use
1914 string_vprintf.
1915 * guile/scm-utils.c (gdbscm_printf): Likewise.
1916 * serial.c (serial_printf): Likewise.
1917 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
1918
6d52907e
JV
19192018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
1920
1921 * stack.c (print_frame): Print frame architecture when printing on
1922 an MI output.
1923 * NEWS: Mention new "arch" attribute in frame output.
1924
9758a8f8
AH
19252018-08-21 Alan Hayward <alan.hayward@arm.com>
1926
1927 * arch/aarch64.h (aarch64_regnum): Update comment.
1928
1461bdac
AH
19292018-08-21 Alan Hayward <alan.hayward@arm.com>
1930
1931 * NEWS: Add SVE to 8.2 section.
1932
4895f384
PA
19332018-08-21 Pedro Alves <palves@redhat.com>
1934
1935 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
1936 out from gdbscm_parse_function_args.
1937 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
1938 gdbscm_parse_function_args_1.
1939
a4497d2f
SM
19402018-08-21 Simon Marchi <simon.marchi@ericsson.com>
1941
1942 PR gdb/17816
1943 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
1944 operator.
1945
c44deb73
SM
19462018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
1947
1948 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
1949
be2d111a
MS
19502018-08-19 Michael Spang <spang@google.com>
1951
1952 PR gdb/11786
1953 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
1954 for PT_TLS segments.
1955
a6b786da
KB
19562018-08-18 Kevin Buettner <kevinb@redhat.com>
1957
1958 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
1959 dwarf_variable_value.
1960 * dwarf2-frame.c (class dwarf_expr_executor):
1961 Add override for dwarf_variable_value.
1962 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
1963 (class symbol_needs_eval_context): Likewise.
1964 (indirect_synthetic_pointer): Add forward declaration.
1965 (sect_variable_value): New function.
1966 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
1967 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
1968 for DW_OP_GNU_variable_value.
1969
89fbedf3
TT
19702018-08-16 Tom Tromey <tom@tromey.com>
1971
1972 * top.c (read_command_file): Update.
1973 (command_line_input): Remove "repeat" argument.
1974 * ada-lang.c (get_selections): Update.
1975 * linespec.c (decode_line_2): Update.
1976 * defs.h (command_line_input): Remove argument.
1977 * cli/cli-script.c (read_next_line): Update.
1978 * python/py-gdb-readline.c: Update.
1979
12582533
TT
19802018-08-17 Tom Tromey <tom@tromey.com>
1981
1982 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
1983 command_line_input.
1984
49514353
TT
19852018-08-15 Tom Tromey <tom@tromey.com>
1986
1987 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
1988
26fb3983
JV
19892018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
1990
1991 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
1992 If used, use find_pc_partial_function to find address range
1993 to disassemble.
1994 * mi/mi-main.c (mi_cmd_list_features): Report
1995 "data-disassemble-a-option" feature.
1996 * NEWS: Mention new -data-disassemble option -a.
1997
a97b53dd
TT
19982018-08-13 Tom Tromey <tom@tromey.com>
1999
2000 * common/common-defs.h (_FORTIFY_SOURCE): Define.
2001
0c76e06d
AH
20022018-08-13 Alan Hayward <alan.hayward@arm.com>
2003
2004 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
2005 (aarch64_linux_collect_sve_regset): Likewise.
2006 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
2007 * regcache.h (regcache_map_entry_size): New function.
2008
b7fd65b9
AH
20092018-08-13 Alan Hayward <alan.hayward@arm.com>
2010
2011 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
2012 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
2013 (SVE_HEADER_VL_LENGTH): Likewise.
2014 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
2015 (SVE_HEADER_FLAGS_LENGTH): Likewise.
2016 (SVE_HEADER_RESERVED_LENGTH): Likewise.
2017 (SVE_HEADER_SIZE_OFFSET): Likewise.
2018 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
2019 (SVE_HEADER_VL_OFFSET): Likewise.
2020 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
2021 (SVE_HEADER_FLAGS_OFFSET): Likewise.
2022 (SVE_HEADER_RESERVED_OFFSET): Likewise.
2023 (SVE_HEADER_SIZE): Likewise.
2024 (aarch64_linux_core_read_vq): Add function.
2025 (aarch64_linux_core_read_description): Check for SVE section.
2026
a616bb94
AH
20272018-08-13 Alan Hayward <alan.hayward@arm.com>
2028
2029 * aarch64-fbsd-tdep.c
2030 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
2031 collect_size.
2032 * aarch64-linux-tdep.c
2033 (aarch64_linux_iterate_over_regset_sections): Likewise.
2034 * alpha-linux-tdep.c
2035 (alpha_linux_iterate_over_regset_sections):
2036 * alpha-nbsd-tdep.c
2037 (alphanbsd_iterate_over_regset_sections): Likewise.
2038 * amd64-fbsd-tdep.c
2039 (amd64fbsd_iterate_over_regset_sections): Likewise.
2040 * amd64-linux-tdep.c
2041 (amd64_linux_iterate_over_regset_sections): Likewise.
2042 * arm-bsd-tdep.c
2043 (armbsd_iterate_over_regset_sections): Likewise.
2044 * arm-fbsd-tdep.c
2045 (arm_fbsd_iterate_over_regset_sections): Likewise.
2046 * arm-linux-tdep.c
2047 (arm_linux_iterate_over_regset_sections): Likewise.
2048 * corelow.c (get_core_registers_cb): Likewise.
2049 (core_target::fetch_registers): Likewise.
2050 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
2051 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
2052 * gdbarch.h (void): Regenerate.
2053 * gdbarch.sh: Add supply_size and collect_size.
2054 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
2055 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
2056 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
2057 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
2058 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
2059 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
2060 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
2061 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
2062 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
2063 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
2064 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
2065 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
2066 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
2067 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
2068 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
2069 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
2070 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
2071 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
2072 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
2073 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
2074 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
2075 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
2076 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
2077 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
2078 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
2079 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
2080 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
2081 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
2082 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
2083 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
2084
a9925d4f
SM
20852018-08-10 Simon Marchi <simon.marchi@ericsson.com>
2086
2087 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
2088 with string_printf.
2089
ad3a68e9
KS
20902018-08-10 Keith Seitz <keiths@redhat.com>
2091
2092 * compile/compile-c-support.c (add_code_header, add_code_footer):
2093 Move into policy class.
2094 (c_push_user_expression, pop_user_expression_nop)
2095 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
2096 (compile_program): New host class.
2097 (c_compile_program): New typedef.
2098 (c_compute_porgram): Use c_compile_program.
2099
0cfbf430
KS
21002018-08-10 Keith Seitz <keiths@redhat.com>
2101
2102 * compile/compile-internal.h (compile_instance::~compile_instance):
2103 Remove calls to htab_delete.
2104 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
2105 * compile.c (compile_instance::compile_instance): Initialize
2106 htab unique pointers.
2107 (compile_instance::get_cached_type, compile_instance::insert_type)
2108 (compile_instance::error_symbol_once): Update for unique_ptr.
2109
946d3d10
KS
21102018-08-10 Keith Seitz <keiths@redhat.com>
2111
2112 * compile/compile-c-symbols.c (struct symbol_error)
2113 (hash_symbol_error, eq_symbol_error, del_symbol_error)
2114 (compile_instance::insert_symbol_error)
2115 (compile_instance::error_symbol_once): Move to ...
2116 * compile/compile.c: ... here.
2117
9cdfd9a2
KS
21182018-08-10 Keith Seitz <keiths@redhat.com>
2119
2120 * compile/compile-c-support.c (c_get_compile_context): Use `new'
2121 instead of `new_compile_instance'.
2122 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
2123 Update description.
2124 If the symbol error map is not initialized, create it.
2125 (generate_c_for_for_one_symbol): Do not check/initialize
2126 the symbol error map.
2127 * compile/compile-c-types.c (compile_c_instance): Make a class.
2128 Update all callers.
2129 (compile_instance::compile_instance): Initialize the type cache.
2130 (get_cached_type): New function.
2131 (insert_type): Update description.
2132 (compile_c_instance::m_default_cflags): Define.
2133 (convert_type): Update description. Use get_cached_type.
2134 (delete_instance): Moved to destructor.
2135 (new_compile_instance): Moved to constructor.
2136 * compile/compile-c.h (compile_c_instance): Make class inheriting
2137 from compile_instance.
2138 <base>: Remove field.
2139 <type_map, symbol_err_map>: Move to base class.
2140 <c_plugin>: Rename to `m_plugin' and remove pointer type.
2141 * compile/compile-internal.h (compile_instance): Make class.
2142 <type_map_t, symbol_err_map_t>: Define.
2143 <fe>: Rename to `m_gcc_fe'.
2144 <scope, block, gcc_target_options>: Add `m_' prefix.
2145 <m_type_map, m_symbol_err_map>: New fields, moved from
2146 compile_c_instance.
2147 <destroy>: Remove.
2148 (convert_type, new_compile_instance): Remove.
2149 * compile/compile.c (cleanup_compile_instance): Remove.
2150 (compile_to_object): Use unique_ptr to eliminate cleanups.
2151 (compile_instance::set_print_callback, compile_instance::version)
2152 (compile_instance::set_verbose)
2153 (compile_instance::set_driver_filename)
2154 (compile_instance::set_triplet_regexp)
2155 (compile_instance::set_arguments)
2156 (compile_instance::set_source_file)
2157 (compile_instance::compile): Define.
2158
18cdc6d8
KS
21592018-08-10 Keith Seitz <keiths@redhat.com>
2160
2161 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
2162 * compile/compile-c-types.c: Define GCC_METHODN macros and include
2163 gcc-c-fe.def to define C plugin.
2164 (delete_instance): Delete `c_plugin'.
2165 (new_compile_instance): Initialize `c_plugin'.
2166 * compile/compile-c.h: Include gcc_c_plugin.h.
2167 (struct compile_c_instance) <c_plugin>: New member.
2168 * gcc-c-plugin.h: New file.
2169 Update all callers with API change.
2170
b7dc48b4
KS
21712018-08-10 Keith Seitz <keiths@redhat.com>
2172
2173 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
2174 (HFILES_NO_SRCDIR): ... to here.
2175 Add compile-internal.h and compile-c.h.
2176 * compile/compile-c-support.c: Include compile-c.h.
2177 * compile/compile-c-symbols.c: Include compile-c.h.
2178 (generate_c_for_variable_locations): Update comment.
2179 * compile/compile-c-types.c: Include compile-c.h.
2180 * compile/compile-c.h: New file -- moved C language declarations
2181 from other files here.
2182 * compile/compile-internal.h: Do not include hashtab.h or
2183 common/enum-flags.h.
2184 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
2185 (gcc_convert_symbol, gcc_symbol_address)
2186 (generate_c_for_variable_locations, c_get_mode_for_size)
2187 (c_get_range_decl_name): Definitions moved to compile-c.h.
2188 * compile/compile-loc2c.c: Include compile-c.h.
2189
6f36b6d2
KS
21902018-08-10 Keith Seitz <keiths@redhat.com>
2191
2192 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
2193 (c_symbol_substitution_name): ... this.
2194 Update all callers.
2195
bd923e51
KS
21962018-08-10 Keith Seitz <keiths@redhat.com>
2197
2198 * compile/compile-c-support.c (c_compute_program): Use
2199 unique_xmalloc_ptr to eliminate cleanup.
2200 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
2201 Return a unique_xmalloc_ptr and eliminate cleanup.
2202 * compile/compile-internal.h (generate_c_for_variable_locations):
2203 Return unique_xmalloc_ptr and update description.
2204
dbd534fe
AH
22052018-08-10 Alan Hayward <alan.hayward@arm.com>
2206
2207 * corelow.c (core_target::get_core_register_section): Rename
2208 min_size to section_min_size.
2209
90ad3654
JW
22102018-08-09 Jim Wilson <jimw@sifive.com>
2211
52a187f8
JW
2212 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
2213 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
2214 * NEWS: Mention new GNU/Linux RISC-V target.
2215 * configure.host: Add riscv*-*-linux*.
2216 * configure.nat: Add riscv*.
2217 * configure.tgt: Add riscv*-*-linux*.
3c77f97e 2218 * riscv-linux-nat.c: New file.
90ad3654
JW
2219 * riscv-linux-tdep.c: New file.
2220
aff4e175
AB
22212018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
2222
2223 * infrun.c (resume): Make static, add forward declaration.
2224 (proceed): Update header comment.
2225 * infrun.h (resume): Delete declaration.
2226
06ab9219
TT
22272018-08-09 Tom Tromey <tom@tromey.com>
2228
2229 * riscv-tdep.h: Minor formatting fixes.
2230
83c8d318
SM
22312018-08-09 Simon Marchi <simon.marchi@ericsson.com>
2232
2233 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
2234 * dwarf-index-cache.c (create_dir_and_check): Likewise.
2235 (test_mkdir_recursive): Likewise.
2236 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
2237
5ff2bbae
AB
22382018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
2239
2240 * valarith.c (value_subscripted_rvalue): If an array is not in
2241 memory, and we don't know the upper bound, then we can't know that
2242 the requested element exists or not.
2243
fdbac7d8
SM
22442018-08-08 Simon Marchi <simon.marchi@ericsson.com>
2245
2246 * target.c (str_comma_list_concat_elem): Fix typo in comment.
2247 (target_options_to_string): Add comment.
2248
83202f7a
TT
22492018-08-08 Tom Tromey <tom@tromey.com>
2250
2251 * unittests/scoped_mmap-selftests.c: Check result of "write".
2252
411baa47
JW
22532018-08-08 Jim Wilson <jimw@sifive.com>
2254
5c720ed8
JW
2255 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
2256 (decode_register_index_short): New.
2257 (decode_j_type_insn, decode_cj_type_insn): New.
2258 (decode_b_type_insn, decode_cb_type_insn): New.
2259 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
2260 local xlen. Check xlen when decoding ambiguous compressed insns. In
2261 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
2262 is_c_sw_insn instead of is_sw_insn.
2263 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
2264 (riscv_software_single_step): New.
2265 * riscv-tdep.h (riscv_software_single_step): Declare.
2266
411baa47
JW
2267 * riscv-tdep.c (riscv_isa_xlen): Drop static.
2268 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
2269
9d4a934c
AB
22702018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
2271
2272 PR gdb/18050:
2273 * target.c (dispose_inferior): Don't dispose of inferiors that are
2274 already killed.
2275
ff36536c
SN
22762018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
2277
2278 * remote.c (remote_target::download_tracepoint): Change char* to
2279 const char*.
2280
09ce46f2
SM
22812018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2282
2283 * target.h (target_options_to_string): Return an std::string.
2284 * target.c (str_comma_list_concat_elem): Return void, use
2285 std::string.
2286 (do_option): Likewise.
2287 (target_options_to_string): Return an std::string.
2288 * linux-nat.c (linux_nat_target::wait): Adjust.
2289 * target-debug.h (target_debug_print_options): Adjust.
2290
9c612964
TT
22912018-08-07 Tom Tromey <tom@tromey.com>
2292
2293 * Makefile.in (CPPFLAGS): New variable.
2294 (INTERNAL_CPPFLAGS): Use it.
2295
7d11235d
SM
22962018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2297
2298 * NEWS: Mention the index cache.
2299
87d6a7aa
SM
23002018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2301
2302 * common/pathstuff.h (get_standard_cache_dir): New.
2303 * common/pathstuff.c (get_standard_cache_dir): New.
2304 * build-id.h (build_id_to_string): New.
2305 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
2306 DEBUG_STR_SUFFIX): Move to here.
2307 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
2308 DEBUG_STR_SUFFIX): Move from there.
2309 (write_psymtabs_to_index): Make non-static, add basename
2310 parameter. Write to temporary files, rename when done.
2311 (save_gdb_index_command): Adjust call to
2312 write_psymtabs_to_index.
2313 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
2314 field.
2315 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
2316 (get_gdb_index_contents_from_cache): New.
2317 (get_gdb_index_contents_from_cache_dwz): New.
2318 (dwarf2_initialize_objfile): Read index from cache.
2319 (dwarf2_build_psymtabs): Save to index.
2320 * dwarf-index-cache.h: New file.
2321 * dwarf-index-cache.c: New file.
2322 * dwarf-index-write.h: New file.
2323
8a99096f
SM
23242018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2325
2326 * gnulib/aclocal.m4: Re-generate.
2327 * gnulib/config.in: Re-generate.
2328 * gnulib/configure: Re-generate.
2329 * gnulib/import/Makefile.am: Re-generate.
2330 * gnulib/import/Makefile.in: Re-generate.
2331 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
2332 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2333 * gnulib/import/m4/mkdir.m4: New file.
2334 * gnulib/import/mkdir.c: New file.
2335 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
2336 module.
2337
5c831bb1
SM
23382018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2339
2340 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
2341 * common/scoped_mmap.c: New file.
2342 * common/scoped_mmap.h (destroy): New method.
2343 (~scoped_mmap, reset): Use destroy.
2344 (scoped_mmap): New move constructor.
2345 (mmap_file): New declaration.
2346 * unittests/scoped_mmap-selftests.c (test_normal,
2347 test_invalid_filename, run_tests): New functions.
2348 (_initialize_scoped_mmap_selftests): Register selftest.
2349
4485a1c1
SM
23502018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2351
2352 * dwarf2read.c (read_gdb_index_from_section): Rename to...
2353 (read_gdb_index_from_buffer): ... this. Remove section
2354 parameter, add buffer parameter.
2355 (get_gdb_index_contents_ftype,
2356 get_gdb_index_contents_dwz_ftype): New typedefs.
2357 (dwarf2_read_gdb_index): Add callback parameters to get the
2358 index contents.
2359 (get_gdb_index_contents_from_section): New.
2360 (dwarf2_initialize_objfile): Update call to
2361 dwarf2_read_gdb_index.
2362
528e1572
SM
23632018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2364
2365 * common/filestuff.h (gdb_fopen_cloexec): New overload.
2366 (gdb_open_cloexec): Likewise.
2367 * nat/linux-osdata.c (command_from_pid): Use string_printf.
2368 (commandline_from_pid): Likewise.
2369 (linux_xfer_osdata_threads): Likewise.
2370 (linux_xfer_osdata_fds): Likewise.
2371 * ada-lang.c (is_package_name): Likewise.
2372 * auxv.c (procfs_xfer_auxv): Likewise.
2373 * breakpoint.c (print_one_breakpoint_location): Use
2374 uiout::field_fmt.
2375 (print_one_catch_solib): Use string_printf.
2376 * coff-pe-read.c (add_pe_exported_sym): Likewise.
2377 (add_pe_forwarded_sym): Likewise.
2378 * dwarf2read.c (create_type_unit_group): Likewise.
2379 (build_error_marker_type): Likewise.
2380 * infcall.c (get_function_name): Likewise.
2381 * valprint.c (print_converted_chars_to_obstack): Likewise.
2382 * xtensa-tdep.c (xtensa_register_type): Likewise.
2383
a7f25a84
SM
23842018-08-06 Simon Marchi <simon.marchi@ericsson.com>
2385
2386 * remote.c (remote_target::download_tracepoint): Fix format
2387 string errors.
2388
296956be
PFC
23892018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2390
2391 * tracefile.c: Include common/byte-vector.h.
2392 (trace_save): Change type of buf to gdb::byte_vector. Initialize
2393 with trace_regblock_size if needed. Update uses of buf.
2394
a04b9d62
PFC
23952018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2396
2397 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
2398 std::vector<unsigned char>.
2399 * tracepoint.c (collection_list::collection_list): Remove
2400 m_regs_mask initializer from initializer list. Resize
2401 m_regs_mask using the largest remote register number.
2402 (collection_list::add_remote_register): Remove size check on
2403 m_regs_mask. Use at to access element.
2404 (collection_list::stringify): Change type of temp_buf to
2405 gdb::char_vector. Update uses of temp_buf. Resize if needed to
2406 stringify the register mask. Use pack_hex_byte for the register
2407 mask.
2408
4277c4b8
PFC
24092018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2410
2411 * tracepoint.h (class collection_list) <add_register>: Remove.
2412 <add_remote_register, add_ax_registers, add_local_register>:
2413 Declare.
2414 <add_memrange>: Add scope parameter.
2415 * tracepoint.c (encode_actions_1): Likewise.
2416 (collection_list::add_register): Rename to ...
2417 (collection_list::add_remote_register): ... this. Update
2418 comment.
2419 (collection_list::add_ax_registers, add_local_register): New
2420 methods.
2421 (collection_list::add_memrange): Add scope parameter. Call
2422 add_local_register instead of add_register.
2423 (finalize_tracepoint_aexpr): New function.
2424 (collection_list::collect_symbol): Update calls to add_memrange.
2425 Call add_local_register instead of add_register. Call
2426 add_ax_registers. Call finalize_tracepoint_aexpr.
2427 (encode_actions_1): Get remote regnos for $reg action. Call
2428 add_remote_register, add_ax_registers, and add_local_register.
2429 Update call to add_memrange. Call finalize_tracepoint_aexpr.
2430 (validate_actionline): Call finalize_tracepoint_aexpr.
2431
3df3a985
PFC
24322018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2433
2434 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
2435 Replace array buf with gdb::char_vector buf, of size
2436 get_remote_packet_size (). Replace references to buf and
2437 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
2438 and xsnprintf with snprintf. Raise errors if the buffer is too
2439 small.
2440
aa6f3694
PFC
24412018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2442
2443 * remote.c (remote_target::download_tracepoint): Fix the has_more
2444 predicate in the QTDP action list iteration.
2445
05abfc39
PFC
24462018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2447
2448 * remote.c (remote_target::download_tracepoint): Fix indentation
2449 in for block.
2450
821a2682
RO
24512018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2452
2453 * proc-api.c (_initialize_proc_api): Remove c, unused.
2454 * procfs.c (procfs_init_inferior): Remove signals, unused.
2455 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
2456 unused.
2457
95347337
AB
24582018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
2459 Andrew Burgess <andrew.burgess@embecosm.com>
2460
2461 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
2462 'W_STOPCODE (0)' as this could be ambiguous.
2463
425699f5
SDJ
24642018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
2465
2466 * ser-tcp.c (net_open): Fix thinko when deciding whether to
2467 disable TCP's Nagle algorithm (use "ai_protocol" instead of
2468 "ai_socktype").
2469
3e1d3d8c
TT
24702018-08-02 Tom Tromey <tom@tromey.com>
2471
2472 PR symtab/16842.
2473 * dwarf2read.c (read_func_scope): Set symtab on template parameter
2474 symbols.
2475 (process_structure_scope): Likewise.
2476
15843549
XR
24772018-08-02 Xavier Roirand <roirand@adacore.com>
2478
2479 PR gdb/22629:
2480 * darwin-nat.c (darwin_kill_inferior): Fix handling of
2481 kill inferior.
2482
b5bddbbb
TT
24832018-08-02 Tom Tromey <tom@tromey.com>
2484
2485 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
2486 (darwin_suspend_inferior, darwin_resume_inferior)
2487 (darwin_decode_notify_message, darwin_resume_inferior_threads)
2488 (darwin_check_new_threads): Check result of get_darwin_inferior.
2489
f61cfa07
JB
24902018-07-31 Joel Brobecker <brobecker@adacore.com>
2491
2492 GDB 8.1.1 released.
2493
5abe0f0c
JV
24942018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
2495
2496 * varobj.c (varobj_get_path_expr_parent): Report an error if
2497 parent is a dynamic varobj.
2498
472fa5ee
SM
24992018-07-31 Simon Marchi <simon.marchi@ericsson.com>
2500
2501 * gnulib/aclocal.m4: Re-generate.
2502 * gnulib/config.in: Re-generate.
2503 * gnulib/configure: Re-generate.
2504 * gnulib/import/Makefile.in: Re-generate.
2505 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2506 * gnulib/import/m4/onceonly.m4: Re-generate.
2507
1c28969e
SM
25082018-07-31 Simon Marchi <simon.marchi@ericsson.com>
2509
2510 * target-descriptions.c (struct xml_test_tdesc): New.
2511 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
2512 (record_xml_tdesc): Update.
2513 (maintenance_check_xml_descriptions): Update.
2514 * target-descriptions.h (record_xml_tdesc): Update comment.
2515
c8f2dc0d
AB
25162018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
2517
2518 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
2519 checking array bounds are defined.
2520
463c08d1
TT
25212018-07-30 Tom Tromey <tom@tromey.com>
2522
2523 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
2524 irreflexivity violation.
2525
dba7455e
TT
25262018-07-30 Tom Tromey <tom@tromey.com>
2527
2528 * cli/cli-decode.c (lookup_cmd): Remove lint code.
2529 * value.c (unpack_long): Remove lint code.
2530 * valops.c (value_ind): Remove lint code.
2531 * valarith.c (value_x_binop, value_x_unop, value_equal)
2532 (value_pos): Remove lint code.
2533
37cc0cae
TV
25342018-07-28 Tom de Vries <tdevries@suse.de>
2535
2536 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
2537 with undefined upper bound as <optimized out>.
2538
129eb0f1
SDJ
25392018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
2540
2541 * gcore.in: Rename variable "name" to "prefix". Expand
2542 "usage" text.
2543
6af79d7b
JT
25442018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
2545
2546 * windows-nat.c (windows_nat_target::create_inferior): Update to
2547 call close() in global namespace.
2548
79748972
TT
25492018-07-26 Tom Tromey <tom@tromey.com>
2550
2551 * dwarf-index-write.c (add_address_entry): Don't add objfile
2552 offsets.
2553 * dbxread.c (find_stab_function): Rename from
2554 find_stab_function_addr. Return a bound_minimal_symbol.
2555 (read_dbx_symtab): Use raw_text_low, raw_text_high.
2556 Don't add objfile offsets.
2557 (end_psymtab): Use raw_text_low, raw_text_high,
2558 MSYMBOL_VALUE_RAW_ADDRESS.
2559 (read_ofile_symtab): Update.
2560 (process_one_symbol): Update.
2561 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
2562 offsets.
2563 (dw2_relocate): Remove.
2564 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
2565 searching addrmap.
2566 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
2567 Update.
2568 (process_psymtab_comp_unit_reader, add_partial_symbol)
2569 (add_partial_subprogram, dwarf2_ranges_read): Update.
2570 (load_partial_dies): Update.
2571 (add_address_entry): Don't add objfile offsets.
2572 (dwarf2_build_include_psymtabs): Update.
2573 (create_addrmap_from_aranges): Don't add objfile offsets.
2574 (dw2_find_pc_sect_compunit_symtab): Update.
2575 * mdebugread.c (parse_symbol): Don't add objfile offsets.
2576 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
2577 Update.
2578 (parse_partial_symbols): Don't add objfile offsets. Use
2579 raw_text_low, raw_text_high. Update.
2580 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
2581 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
2582 or call 'relocate' quick function. Clear psymbol_map.
2583 * psympriv.h (struct partial_symbol) <address>: Add section
2584 offset.
2585 <set_unrelocated_address>: Rename from set_address.
2586 <raw_text_low, raw_text_high>: New methods.
2587 <text_low, text_high>: Add objfile parameter.
2588 (add_psymbol_to_bcache): Add 'section' parameter. Call
2589 set_unrelocated_address.
2590 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2591 (find_pc_psymbol): Update.
2592 (fixup_psymbol_section, relocate_psymtabs): Remove.
2593 (dump_psymtab, psym_functions): Update.
2594 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
2595 parameter.
2596 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2597 (start_psymtab_common): Update.
2598 * symfile-debug.c (debug_qf_relocate): Remove.
2599 (debug_sym_quick_functions): Update.
2600 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
2601 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
2602 Update.
2603
52948f01
TT
26042018-07-26 Tom Tromey <tromey@redhat.com>
2605
2606 * dbxread.c (end_psymtab): Use text_high_valid and
2607 text_low_valid.
2608 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
2609 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
2610 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
2611 Update comment.
2612 <text_low_valid, text_high_valid>: New fields.
2613 <set_text_low, set_text_high>: Update.
2614 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
2615
4ae976d1
TT
26162018-07-26 Tom Tromey <tom@tromey.com>
2617
2618 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
2619 Update.
2620 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
2621 textlow and texthigh fields.
2622 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
2623 Update.
2624 * mdebugread.c (parse_lines, parse_partial_symbols)
2625 (psymtab_to_symtab_1): Update.
2626 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
2627 Rename fields. Update comment. Now private.
2628 <text_low, text_high, set_text_low, set_text_high>: New methods.
2629 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2630 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
2631 (start_psymtab_common, maintenance_info_psymtabs)
2632 (maintenance_check_psymtabs): Update.
2633 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
2634 texthigh fields.
2635 (scan_xcoff_symtab): Update.
2636
02e9e7f7
TT
26372018-07-26 Tom Tromey <tromey@redhat.com>
2638
2639 * psympriv.h (struct partial_symbol) <unrelocated_address,
2640 address, set_address>: New methods.
2641 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
2642 (fixup_psymbol_section, relocate_psymtabs): Update.
2643 (print_partial_symbols): Add 'objfile' parameter. Update.
2644 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
2645 Update.
2646
8a6d4234
TT
26472018-07-26 Tom Tromey <tom@tromey.com>
2648
2649 * dwarf-index-write.c (write_psymbols, debug_names::insert)
2650 (debug_names::write_psymbols): Update.
2651 * psympriv.h (struct partial_symbol): Derive from
2652 general_symbol_info.
2653 <obj_section>: New method.
2654 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
2655 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2656 (find_pc_sect_psymbol, fixup_psymbol_section)
2657 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
2658 (print_partial_symbols, recursively_search_psymtabs)
2659 (compare_psymbols, psymbol_hash, psymbol_compare)
2660 (add_psymbol_to_bcache, maintenance_check_psymtabs)
2661 (psymbol_name_matches, psym_fill_psymbol_map): Update.
2662
08994e1d
TT
26632018-07-26 Tom Tromey <tromey@redhat.com>
2664
2665 * dbxread.c (end_psymtab): Remove dead code.
2666
3c3bb058
AB
26672018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
2668
2669 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
2670 DWARF unwinders are disabled.
2671 * dwarf2-frame.c: Add dwarf2read.h include.
2672 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
2673 disabled.
2674 (dwarf2_frame_unwinders_enabled_p): Define.
2675 (show_dwarf_unwinders_enabled_p): New function.
2676 (_initialize_dwarf2_frame): Register switch to control DWARF
2677 unwinder use.
2678 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
2679 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
2680 (show_dwarf_cmdlist): Remove static keyword.
2681 * dwarf2read.h (set_dwarf_cmdlist): Declare.
2682 (show_dwarf_cmdlist): Declare.
2683 * NEWS: Document new feature.
2684
9e7f3bbb
TV
26852018-07-26 Tom de Vries <tdevries@suse.de>
2686
2687 PR breakpoints/23366
2688 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
2689
506f5c41
TV
26902018-07-26 Tom de Vries <tdevries@suse.de>
2691
2692 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
2693 DW_AT_count can't be translated to a dynamic prop.
2694
16f808ec
TV
26952018-07-25 Tom de Vries <tdevries@suse.de>
2696
2697 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
2698 try/catch.
2699
d7154a8d
JV
27002018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
2701
2702 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
2703
a45389f6
JB
27042018-07-25 Joel Brobecker <brobecker@adacore.com>
2705
2706 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
2707
380618d6
KS
27082018-07-24 Keith Seitz <keiths@redhat.comt
2709
2710 PR symtab/23010
2711 * dwarf2read.c (dw2_add_symbol_to_list): New function.
2712 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
2713 instead of add_symbol_to_list.
2714 (read_file_scope): Call prepare_one_comp_unit before reading
2715 any other DIEs.
2716
4b17aefe
SM
27172018-07-24 Simon Marchi <simon.marchi@ericsson.com>
2718
2719 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
2720
29d17e47
TT
27212018-07-24 Tom Tromey <tom@tromey.com>
2722
2723 * utils.c (malloc, realloc, free): Don't declare.
2724 * configure, config.in: Rebuild.
2725 * configure.ac: Don't check for declarations of free, malloc, or
2726 realloc.
2727
cf4088a9
SM
27282018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2729
2730 * aarch64-linux-nat.c
2731 (aarch64_linux_nat_target::stopped_data_address): Remove unused
2732 variable.
2733 * arm-linux-nat.c (fetch_regs): Likewise.
2734 (store_regs): Likewise.
2735 (fetch_vfp_regs): Likewise.
2736 (store_vfp_regs): Likewise.
2737 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
2738 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
2739 (arm_linux_nat_target::insert_watchpoint): Likewise.
2740 (arm_linux_nat_target::remove_watchpoint): Likewise.
2741 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
2742 Likewise.
2743 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
2744 Likewise.
2745 * ppc-linux-nat.c (fetch_register): Likewise.
2746 (fetch_all_gp_regs): Likewise.
2747 (fetch_ppc_registers): Likewise.
2748 (store_all_gp_regs): Likewise.
2749 (store_ppc_registers): Likewise.
2750 (hwdebug_insert_point): Likewise.
2751 (can_use_watchpoint_cond_accel): Likewise.
2752 * remote-sim.c (gdb_os_write_stdout): Likewise.
2753
a0de763e
TT
27542018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2755 Tom Tromey <tom@tromey.com>
2756
2757 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
2758 test for it.
2759 * configure: Rebuild.
2760
3b20124b
TT
27612018-07-22 Tom Tromey <tom@tromey.com>
2762
2763 * regformats/regdat.sh: Define xmltarget_${name} inside
2764 #ifndef IN_PROCESS_AGENT.
2765
8c8807f4
TT
27662018-07-22 Tom Tromey <tom@tromey.com>
2767
2768 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
2769
c486b610
TT
27702018-07-22 Tom Tromey <tom@tromey.com>
2771
2772 * symfile.c (reread_symbols): Notify iter, not objfile.
2773
494f80a9
TT
27742018-07-22 Tom Tromey <tom@tromey.com>
2775
2776 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
2777 Use arch_ops.
2778 (ravenscar_thread_target::prepare_to_store): Likewise.
2779
c51f6a54
TT
27802018-07-22 Tom Tromey <tom@tromey.com>
2781
2782 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
2783 unused variable. Call value_fetch_lazy when needed.
2784 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
2785 Remove unused variable. Call value_fetch_lazy when needed.
2786
374fd1fd
TT
27872018-07-22 Tom Tromey <tom@tromey.com>
2788
2789 * m32c-tdep.c (mark_dma): Return void.
2790 (make_regs): Remove unused declarations.
2791
d5e9a511
TT
27922018-07-22 Tom Tromey <tom@tromey.com>
2793
2794 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
2795 cmdscm_get_valid_command_smob_arg_unsafe for effect.
2796 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
2797 bkscm_get_valid_block_smob_arg_unsafe for effect.
2798
996d693a
TT
27992018-07-22 Tom Tromey <tom@tromey.com>
2800
2801 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
2802 value_type.
2803
15766370
TT
28042018-07-22 Tom Tromey <tom@tromey.com>
2805
2806 * windows-nat.c (saved_context): Conditionally define.
2807 * remote.c (remote_target::remote_btrace_maybe_reopen):
2808 Conditionally declare "warned".
2809 * inflow.c (sigquit_ours): Conditionally define.
2810 (new_tty): Move "tty" declaration inside #if.
2811 * guile/guile.c (guile_datadir): Conditionally define.
2812 * charset.c (set_be_le_names): Move some declarations inside #if.
2813 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
2814 #if.
2815 (parse_xml_btrace_conf): Likewise.
2816
f4e80e13
TT
28172018-07-22 Tom Tromey <tom@tromey.com>
2818
2819 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
2820
8d49165d
TT
28212018-07-22 Tom Tromey <tom@tromey.com>
2822
2823 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
2824 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
2825 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
2826 * buildsym-legacy.c (get_macro_table): Remove unused variable.
2827 * stack.c (frame_apply_level_command): Remove unused variable.
2828 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
2829 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
2830 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
2831 unused variable.
2832 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
2833 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
2834 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
2835 variable.
2836 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
2837 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
2838 variable.
2839 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
2840 Remove unused variable.
2841 * cli/cli-script.c (recurse_read_control_structure): Remove unused
2842 variable.
2843 * common/tdesc.c (print_xml_feature::visit): Remove unused
2844 variable.
2845 * compile/compile-object-load.c (store_regs): Remove unused
2846 variables.
2847 * complaints.c (clear_complaints): Remove unused variable.
2848 * corelow.c (core_target_open): Remove unused variable.
2849 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
2850 variable.
2851 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
2852 variable.
2853 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
2854 variable.
2855 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
2856 variable.
2857 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
2858 variable.
2859 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
2860 variable.
2861 * ia64-tdep.c (examine_prologue): Remove unused variable.
2862 * infcall.c (run_inferior_call): Remove unused variable.
2863 * inferior.c (exit_inferior): Remove unused variable.
2864 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
2865 * linespec.c (decode_line_2): Remove unused variable.
2866 * linux-nat.c (super_close): Remove.
2867 * linux-tdep.c (linux_info_proc): Remove unused variable.
2868 * mi/mi-main.c (mi_execute_command): Remove unused variable.
2869 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
2870 Remove unused variable.
2871 * parse.c (find_minsym_type_and_address): Remove unused variable.
2872 * printcmd.c (info_symbol_command, printf_floating): Remove unused
2873 variable.
2874 * python/py-breakpoint.c (bppy_set_commands): Remove unused
2875 variable.
2876 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
2877 variables.
2878 * record-btrace.c (record_btrace_target::store_registers): Remove
2879 unused variable.
2880 (cmd_show_record_btrace_cpu): Remove unused variable.
2881 * riscv-tdep.c (riscv_register_reggroup_p)
2882 (riscv_push_dummy_call, riscv_return_value): Remove unused
2883 variable.
2884 * rust-exp.y (literal): Remove unused variable.
2885 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
2886 unused variable.
2887 <STRUCTOP_ANONYMOUS>: Likewise.
2888 * s390-linux-tdep.c (s390_linux_init_abi_31)
2889 (s390_linux_init_abi_64): Remove unused variable.
2890 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
2891 (file_select_thread, net_windows_open, _initialize_ser_windows):
2892 Remove unused variables.
2893 * symtab.c (find_pc_sect_line): Remove unused variable.
2894 * target-memory.c (compute_garbled_blocks): Remove unused
2895 variable.
2896 (target_write_memory_blocks): Remove unused variable.
2897 * target.c (target_stack::unpush): Remove unused variables.
2898 * tracepoint.c (start_tracing, all_tracepoint_actions)
2899 (merge_uploaded_trace_state_variables)
2900 (print_one_static_tracepoint_marker): Remove unused variable.
2901 * unittests/basic_string_view/element_access/char/1.cc (test01):
2902 Remove unused variable.
2903 * windows-nat.c (windows_continue, windows_add_all_dlls)
2904 (do_initial_windows_stuff, windows_nat_target::create_inferior):
2905 Remove unused variables.
2906
17cbafdb
SM
29072018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
2908
2909 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
2910 attr_profile in HAVE_ELF.
2911 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
2912 HAVE_ELF.
2913
0ee6c332
SM
29142018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
2915
2916 * frame.c (frame_register_unwind): Change parameter name.
2917 (frame_unwind_register): Likewise.
2918 (frame_unwind_register_value): Likewise.
2919 (frame_unwind_register_signed): Likewise.
2920 (frame_unwind_register_unsigned): Likewise.
2921 * frame.h (frame_register_unwind): Likewise.
2922 (frame_unwind_register): Likewise.
2923 (frame_unwind_register_value): Likewise.
2924 (frame_unwind_register_signed): Likewise.
2925 (frame_unwind_register_unsigned): Likewise.
2926 (frame_unwind_arch): Likewise.
2927
e2e31f10
MR
29282018-07-20 Maciej W. Rozycki <macro@mips.com>
2929
2930 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
2931 ISA maintenance.
2932
2d389915
MR
29332018-07-20 Maciej W. Rozycki <macro@mips.com>
2934
2935 * mips-linux-nat.c (mips_linux_nat_target::read_description):
2936 Call `get_ptrace_pid' rather than extracting the ptrace PID by
2937 hand.
2938
cbb09508
KS
29392018-07-20 Keith Seitz <keiths@redhat.com>
2940
2941 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
2942 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
2943 m_compunit_symtab, m_language>: Add "m_" prefix.
2944 Update all uses.
2945 * buildsym.c: Update all uses.
2946
bfe2e011
TT
29472018-07-20 Tom Tromey <tom@tromey.com>
2948
2949 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
2950 * buildsym.h (record_line_ftype): Remove typedef.
2951
0e6f3061
TT
29522018-07-20 Tom Tromey <tom@tromey.com>
2953
2954 * buildsym-legacy.h (augment_type_symtab): Don't declare.
2955 (end_expandable_symtab): Likewise.
2956 (end_symtab_get_static_block): Likewise.
2957 (end_symtab_from_static_block): Likewise.
2958 * buildsym-legacy.c (augment_type_symtab): Remove.
2959 (end_expandable_symtab): Remove.
2960 (end_symtab_get_static_block): Remove.
2961 (end_symtab_from_static_block): Remove.
2962
804d2729
TT
29632018-07-20 Tom Tromey <tom@tromey.com>
2964
2965 * dwarf2read.c: Include buildsym.h.
2966 (struct dwarf2_cu) <builder>: New method.
2967 (fixup_go_packaging): Update.
2968 (process_full_comp_unit, process_full_type_unit): Update. Don't
2969 use scoped_free_pendings.
2970 (using_directives): Add "cu" parameter, remove "language".
2971 (read_import_statement, setup_type_unit_groups, )
2972 (read_func_scope, read_lexical_block_scope)
2973 (dwarf2_record_block_ranges, read_namespace): Update.
2974 (lnp_state_machine::lnp_state_machine): Add cu parameter.
2975 (lnp_state_machine::handle_end_sequence): Update.
2976 (class lnp_state_machine) <m_cu>: New member.
2977 <m_record_line_callback>: Remove.
2978 <m_currently_recording_lines>: New member.
2979 (lnp_state_machine::handle_set_file): Update.
2980 (noop_record_line): Remove.
2981 (dwarf_record_line_p): Add cu parameter.
2982 (dwarf_record_line_1, dwarf_finish_line): Likewise.
2983 (lnp_state_machine::record_line)
2984 (lnp_state_machine::lnp_state_machine)
2985 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
2986 (dwarf_decode_lines): Update.
2987 (dwarf2_start_subfile): Add cu parameter.
2988 (dwarf2_start_symtab, new_symbol): Update.
2989 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
2990 Remove dwarf2_per_objfile parameter.
2991 (dwarf_decode_macros): Update.
2992
80e649fc
TT
29932018-07-20 Tom Tromey <tom@tromey.com>
2994
2995 * stabsread.c (define_symbol): Update.
2996 * buildsym-legacy.h (get_buildsym_compunit): Declare.
2997 * dwarf2read.c (new_symbol): Update.
2998 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
2999 * cp-namespace.c: Include buildsym.h.
3000 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
3001 * buildsym-legacy.c (get_buildsym_compunit): New function.
3002
0baae8db
TT
30032018-07-20 Tom Tromey <tom@tromey.com>
3004
3005 * xcoffread.c: Include buildsym-legacy.h.
3006 * windows-nat.c: Include buildsym-legacy.h.
3007 * stabsread.c: Include buildsym-legacy.h.
3008 * mdebugread.c: Include buildsym-legacy.h.
3009 * buildsym-legacy.h: New file.
3010 * buildsym-legacy.c: New file, from buildsym.c.
3011 * go32-nat.c: Include buildsym-legacy.h.
3012 * dwarf2read.c: Include buildsym-legacy.h.
3013 * dbxread.c: Include buildsym-legacy.h.
3014 * cp-namespace.c: Include buildsym-legacy.h.
3015 * coffread.c: Include buildsym-legacy.h.
3016 * buildsym.h: Move some contents to buildsym-legacy.h.
3017 * buildsym.c: Include buildsym-legacy.h. Move many functions to
3018 buildsym-legacy.c.
3019 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
3020
ab209f6f
TT
30212018-07-20 Tom Tromey <tom@tromey.com>
3022
3023 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
3024 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
3025 (buildsym_compunit::buildsym_compunit)
3026 (buildsym_compunit::~buildsym_compunit)
3027 (buildsym_compunit::get_macro_table): Define.
3028
74c72eac
TT
30292018-07-20 Tom Tromey <tom@tromey.com>
3030
3031 * buildsym.c (reset_symtab_globals): Remove.
3032 (buildsym_compunit::end_symtab_from_static_block): Update.
3033 (buildsym_compunit::augment_type_symtab): Update.
3034 (end_symtab_from_static_block): Call free_buildsym_compunit.
3035 (augment_type_symtab, end_symtab, end_expandable_symtab):
3036 Likewise.
3037
da6580e5
TT
30382018-07-20 Tom Tromey <tom@tromey.com>
3039
3040 * arch-utils.c: Do not include buildsym.h.
3041 * mipsread.c: Do not include buildsym.h.
3042 * machoread.c: Do not include buildsym.h.
3043 * elfread.c: Do not include buildsym.h.
3044
4a2125f5
TT
30452018-07-20 Tom Tromey <tom@tromey.com>
3046
3047 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
3048 initialization.
3049 (buildsym_compunit): Add new constructor.
3050 (struct buildsym_compunit) <get_last_source_file, finish_block,
3051 record_block_range, start_subfile, patch_subfile_names,
3052 push_subfile, pop_subfile, record_line, get_compunit_symtab,
3053 set_last_source_start_addr, get_last_source_start_addr,
3054 get_local_using_directives, set_local_using_directives,
3055 get_global_using_directives, outermost_context_p,
3056 get_current_context_stack, get_context_stack_depth,
3057 get_current_subfile, get_local_symbols, get_file_symbols,
3058 get_global_symbols, record_debugformat, record_producer,
3059 push_context, pop_context, end_symtab_get_static_block,
3060 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
3061 New public methods.
3062 <record_pending_block, finish_block_internal, make_blockvector,
3063 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
3064 private methods.
3065 Update all users.
3066
30672018-05-22 Tom Tromey <tom@tromey.com>
3068
3069 * buildsym.c (record_pending_block): Move earlier. Remove objfile
3070 parameter.
3071 (finish_block_internal): Update.
3072
6b213a47
TT
30732018-07-20 Tom Tromey <tom@tromey.com>
3074
3075 * buildsym.c (record_pending_block): Move earlier. Remove objfile
3076 parameter.
3077 (finish_block_internal): Update.
3078
b80a981d
TT
30792018-07-20 Tom Tromey <tom@tromey.com>
3080
3081 * buildsym.h (EXTERN): Don't define or undef.
3082 * buildsym.c (EXTERN): Don't define.
3083
ddb70602
TT
30842018-07-20 Tom Tromey <tom@tromey.com>
3085
3086 * buildsym.c: Remove TODO comment.
3087
b37dd3bc
TT
30882018-07-20 Tom Tromey <tom@tromey.com>
3089
3090 * coffread.c (coff_symtab_read): Update.
3091 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
3092 (xcoff_new_init): Update.
3093 * mipsread.c (mipscoff_new_init): Update.
3094 * mdebugread.c (mdebug_build_psymtabs): Update.
3095 * elfread.c (elf_new_init): Update.
3096 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
3097 Update.
3098 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
3099 (coffstab_build_psymtabs, elfstab_build_psymtabs)
3100 (stabsect_build_psymtabs): Update.
3101 * buildsym.h (buildsym_init): Don't declare.
3102 * buildsym.c: Update comment.
3103 (prepare_for_building): Remove.
3104 (start_symtab, restart_symtab): Update.
3105 (reset_symtab_globals): Update comment.
3106 (buildsym_init): Remove.
3107
e148f09d
TT
31082018-07-20 Tom Tromey <tom@tromey.com>
3109
3110 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
3111 * stabsread.c (patch_block_stabs, define_symbol, read_type)
3112 (read_enum_type, common_block_start, common_block_end)
3113 (cleanup_undefined_types_1, finish_global_stabs): Update.
3114 * mdebugread.c (psymtab_to_symtab_1): Update.
3115 * dwarf2read.c (fixup_go_packaging, read_func_scope)
3116 (read_lexical_block_scope, new_symbol): Update.
3117 * dbxread.c (process_one_symbol): Update.
3118 * coffread.c (coff_symtab_read, process_coff_symbol)
3119 (coff_read_enum_type): Update.
3120 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
3121 declare.
3122 (get_local_symbols, get_file_symbols, get_global_symbols): New
3123 functions.
3124 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
3125 m_global_symbols.
3126 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
3127 (~scoped_free_pendings): Update.
3128 (finish_block, prepare_for_building, reset_symtab_globals)
3129 (end_symtab_get_static_block, end_symtab_with_blockvector)
3130 (augment_type_symtab, push_context): Update.
3131 (get_local_symbols, get_file_symbols, get_global_symbols): New
3132 functions.
3133 (buildsym_init): Update.
3134
93b8bea4
TT
31352018-07-20 Tom Tromey <tom@tromey.com>
3136
3137 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
3138 (process_full_type_unit): Likewise.
3139 (dwarf2_start_symtab): Set list_in_scope.
3140
f62f6af5
TT
31412018-07-20 Tom Tromey <tom@tromey.com>
3142
3143 * dwarf2read.c (process_psymtab_comp_unit_reader)
3144 (build_type_psymtabs_reader): Do not set list_in_scope.
3145
1d376700
TT
31462018-07-20 Tom Tromey <tom@tromey.com>
3147
3148 * buildsym.c (free_pendings): Remove.
3149 (add_symbol_to_list, scoped_free_pendings)
3150 (finish_block_internal, buildsym_init): Update.
3151
c233e9c6
TT
31522018-07-20 Tom Tromey <tom@tromey.com>
3153
3154 * xcoffread.c (read_xcoff_symtab): Update.
3155 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
3156 Update.
3157 * dbxread.c (process_one_symbol): Update.
3158 * coffread.c (coff_symtab_read): Update.
3159 * buildsym.h (finish_block): Update.
3160 * buildsym.c (finish_block): Remove "listhead" argument.
3161 (end_symtab_get_static_block): Update.
3162
5ac04550
TT
31632018-07-20 Tom Tromey <tom@tromey.com>
3164
3165 * buildsym.h (class scoped_free_pendings): Remove constructor.
3166 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
3167 method.
3168 <m_pending_block_obstack, m_pending_blocks>: New members.
3169 (pending_block_obstack, pending_blocks): Remove.
3170 (scoped_free_pendings::scoped_free_pendings): Default.
3171 (~scoped_free_pendings): Update.
3172 (free_pending_blocks): Remove.
3173 (finish_block_internal, record_pending_block, make_blockvector)
3174 (end_symtab_get_static_block, augment_type_symtab, push_context)
3175 (buildsym_init): Update.
3176
7ea05a7b
TT
31772018-07-20 Tom Tromey <tom@tromey.com>
3178
3179 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
3180 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
3181 members.
3182 (pending_addrmap, pending_addrmap_obstack)
3183 (pending_addrmap_interesting): Remove.
3184 (scoped_free_pendings, record_block_range, make_blockvector)
3185 (prepare_for_building, reset_symtab_globals, buildsym_init):
3186 Update.
3187
3c65e5b3
TT
31882018-07-20 Tom Tromey <tom@tromey.com>
3189
3190 * xcoffread.c (process_linenos): Update.
3191 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
3192 * mdebugread.c (psymtab_to_symtab_1): Update.
3193 * dwarf2read.c (setup_type_unit_groups)
3194 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
3195 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
3196 * dbxread.c (process_one_symbol): Update.
3197 * coffread.c (coff_symtab_read, enter_linenos)
3198 (process_coff_symbol): Update.
3199 * buildsym.h (current_subfile): Don't declare.
3200 (get_current_subfile): Declare.
3201 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
3202 member.
3203 (start_subfile, free_buildsym_compunit, push_subfile)
3204 (prepare_for_building, start_symtab): Update.
3205 (get_current_subfile): New function.
3206
a60f3166
TT
32072018-07-20 Tom Tromey <tom@tromey.com>
3208
3209 * coffread.c (coff_symtab_read): Update.
3210 * xcoffread.c (read_xcoff_symtab): Update.
3211 * dwarf2read.c (new_symbol): Update.
3212 (read_func_scope, read_lexical_block_scope): Update.
3213 * dbxread.c (process_one_symbol): Update.
3214 * buildsym.h (context_stack, context_stack_depth): Don't declare.
3215 (outermost_context_p): Remove macro.
3216 (outermost_context_p, get_current_context_stack)
3217 (get_context_stack_depth): Declare.
3218 (pop_context): Return struct context_stack.
3219 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
3220 member.
3221 (context_stack_size): Remove.
3222 (INITIAL_CONTEXT_STACK_SIZE): Remove.
3223 (prepare_for_building, end_symtab_get_static_block)
3224 (augment_type_symtab, push_context): Update.
3225 (pop_context): Return struct context_stack.
3226 (outermost_context_p, get_current_context_stack)
3227 (get_context_stack_depth): New functions.
3228 (buildsym_init): Update.
3229
56ba65a0
TT
32302018-07-20 Tom Tromey <tom@tromey.com>
3231
3232 * rust-exp.y: Now a pure parser. Update all rules.
3233 (%union): Move earlier.
3234 (current_parser, work_obstack): Remove globals.
3235 (rust_parser, ~rust_parser): Update.
3236 (class rust_parser) <copy_name, concat3, crate_name, super_name,
3237 lex_character, lex_number, lex_string, lex_identifier,
3238 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
3239 convert_name, convert_params_to_expression,
3240 convert_ast_to_expression, ast_basic_type, ast_operation,
3241 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
3242 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
3243 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
3244 ast_array_type, ast_slice_type, ast_reference_type,
3245 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
3246 (rust_parse): Update.
3247 (rustyyerror, rustyylex): Add parser parameter.
3248 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
3249 (rust_lex_stringish_test, rust_lex_test_sequence)
3250 (rust_lex_test_trailing_dot, rust_lex_test_completion)
3251 (rust_lex_test_push_back, rust_lex_tests): Update.
3252
4c693332
PA
32532018-07-19 Pedro Alves <palves@redhat.com>
3254
3255 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
3256 gdb::unique_xmalloc_ptr.
3257 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
3258 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
3259 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
3260 copy-initialization.
3261 * guile/scm-pretty-print.c (ppscm_print_children): Use
3262 gdb::unique_xmalloc_ptr instead of cleanups.
3263 (gdbscm_apply_val_pretty_printer): Remove cleanups.
3264 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
3265 gdb::unique_xmalloc_ptr.
3266 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
3267 Adjust to use gdb::unique_xmalloc_ptr.
3268 * guile/scm-utils.c (extract_arg): Adjust.
3269 * guile/scm-value.c (gdbscm_value_field): Adjust to use
3270 gdb::unique_xmalloc_ptr instead of a cleanup.
3271
4581dc82
TT
32722018-07-19 Tom Tromey <tom@tromey.com>
3273
3274 * utils.c (do_value_free_to_mark)
3275 (make_cleanup_value_free_to_mark): Remove.
3276 * utils.h (make_cleanup_value_free_to_mark): Remove.
3277
43cc6c3a
PA
32782018-07-19 Pedro Alves <palves@redhat.com>
3279
3280 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
3281 forwarding reference.
3282
3a5f2a48
PA
32832018-07-18 Pedro Alves <palves@redhat.com>
3284
3285 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
3286 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
3287 cleanup.
3288
557e56be
PA
32892018-07-18 Pedro Alves <palves@redhat.com>
3290
3291 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
3292 exceptions.
3293 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
3294 (gdbscm_wrap): New.
3295 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
3296 directly instead of a cleanup.
3297 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
3298 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
3299 (vlscm_binop_gdbthrow): New, factored out from ...
3300 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
3301 (vlscm_rich_compare): Use gdbscm_wrap.
3302 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
3303 instead of a cleanup.
3304 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
3305 cleanup.
3306 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
3307 Use xfree directly instead of a cleanup.
3308 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
3309 Adjust to use gdbscm_wrap and scoped_value_mark.
3310 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
3311 (gdbscm_value_address, gdbscm_value_dereference)
3312 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
3313 scoped_value_mark.
3314 (gdbscm_value_dynamic_type): Use scoped_value_mark.
3315 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
3316 scoped_value_mark.
3317 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
3318 gdbscm_wrap and scoped_value_mark.
3319 (gdbscm_value_to_string): Use xfree directly instead of a
3320 cleanup. Move 'buffer' unique_ptr to TRY scope.
3321 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
3322 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
3323 scoped_value_mark.
3324 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
3325 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
3326 scoped_value_mark.
3327 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
3328 gdbscm_wrap.
3329
42dc7699
TV
33302018-07-18 Tom de Vries <tdevries@suse.de>
3331
3332 * findvar.c (default_read_var_value): Also resolve dynamic type for
3333 LOC_OPTIMIZED_OUT vars.
3334
6592ceed
MR
33352018-07-18 Maciej W. Rozycki <macro@mips.com>
3336
3337 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
3338 decoding.
3339
c6c6149a
TT
33402018-07-17 Tom Tromey <tom@tromey.com>
3341
3342 * guile/scm-param.c (pascm_set_func, pascm_show_func)
3343 (compute_enum_list, pascm_set_param_value_x)
3344 (gdbscm_parameter_value): Update.
3345 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
3346 (gdbscm_scm_to_host_string): Update.
3347 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
3348 Update.
3349 * guile/scm-cmd.c (cmdscm_add_completion): Update.
3350 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
3351 * guile/scm-string.c (gdbscm_scm_to_string): Return
3352 unique_xmalloc_ptr.
3353 (gdbscm_scm_to_host_string): Likewise.
3354
a1a31cb8
TT
33552018-07-17 Tom Tromey <tom@tromey.com>
3356
3357 * guile/guile.c (gdbscm_eval_from_control_command): Update.
3358 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
3359 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
3360 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
3361 unique_xmalloc_ptr.
3362
15bf3002
TT
33632018-07-17 Tom Tromey <tom@tromey.com>
3364
3365 * guile/scm-param.c (pascm_signal_setshow_error): Update.
3366 * guile/guile-internal.h (gdbscm_exception_message_to_string):
3367 Update.
3368 * guile/scm-cmd.c (cmdscm_function): Update.
3369 * guile/scm-pretty-print.c
3370 (ppscm_print_exception_unless_memory_error): Update.
3371 * guile/scm-exception.c (gdbscm_exception_message_to_string):
3372 Return unique_xmalloc_ptr.
3373
7eb1a66c
TT
33742018-07-17 Tom Tromey <tom@tromey.com>
3375
3376 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
3377 Use string_printf.
3378
ce73f310
JW
33792018-07-17 Jim Wilson <jimw@sifive.com>
3380
27724bad
JW
3381 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
3382 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
3383 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
3384 unecessary braces after EF_RISCV_RVC test. Delete call to
3385 set_gdbarch_decr_pc_after_break.
3386
ce73f310
JW
3387 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
3388 RISCV_LAST_FP_REGNUM + 1.
3389 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
3390
056dec39
TT
33912018-07-17 Tom Tromey <tom@tromey.com>
3392
3393 * configure.ac: Remove --disable-gdbcli.
3394 * configure: Rebuild.
3395 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
3396 (SUBDIR_CLI_CFLAGS): Remove.
3397 (SFILES): Use SUBDIR_CLI_SRCS.
3398 (COMMON_OBS): Use SUBDIR_CLI_OBS.
3399
4735f0ed
TT
34002018-07-17 Tom Tromey <tom@tromey.com>
3401
3402 PR gdb/18624:
3403 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
3404
117a0e99
JW
34052018-07-16 Jim Wilson <jimw@sifive.com>
3406
3407 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
3408
8a67aaa8
SM
34092018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3410
3411 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
3412 variable.
3413 (libunwind_frame_sniffer): Likewise.
3414 (libunwind_frame_prev_register): Likewise.
3415 (libunwind_sigtramp_frame_sniffer): Likewise.
3416 * ia64-tdep.c (ia64_access_reg): Likewise.
3417 (ia64_access_rse_reg): Likewise.
3418 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
3419 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
3420
ec74dcd8
SM
34212018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3422
3423 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
3424
a700e753
SM
34252018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3426
3427 * remote-sim.c (gdbsim_target::close,
3428 gdbsim_target::mourn_inferior): Remove unused variables.
3429
8b411ff8
SM
34302018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
3431
3432 * ia64-tdep.c (ktab_buf): New global.
3433 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
3434 (get_kernel_table): Adjust.
3435
edb0470b
TT
34362018-07-16 Tom Tromey <tom@tromey.com>
3437
3438 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
3439 * dwarf2read.c (using_directives, new_symbol): Use
3440 outermost_context_p.
3441 * dbxread.c (process_one_symbol): Use outermost_context_p.
3442 * coffread.c (coff_symtab_read): Use outermost_context_p.
3443
6cccc9a8
TT
34442018-07-16 Tom Tromey <tom@tromey.com>
3445
3446 * dwarf2read.c (using_directives, read_func_scope)
3447 (read_lexical_block_scope): Update.
3448 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
3449 * buildsym.h (local_using_directives, global_using_directives):
3450 Don't declare.
3451 (get_local_using_directives, set_local_using_directives)
3452 (get_global_using_directives): Declare.
3453 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
3454 m_global_using_directives>: New members.
3455 (finish_block_internal, prepare_for_building)
3456 (reset_symtab_globals, end_symtab_get_static_block)
3457 (push_context): Update.
3458 (get_local_using_directives, set_local_using_directives)
3459 (get_global_using_directives): New functions.
3460 (buildsym_init): Update.
3461
652788a7
TT
34622018-07-16 Tom Tromey <tom@tromey.com>
3463
3464 * xcoffread.c (xcoff_initial_scan): Don't call
3465 free_pending_blocks.
3466 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
3467 * buildsym.h (class scoped_free_pendings): Add constructor.
3468 (free_pending_blocks): Don't declare.
3469 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
3470 (free_pending_blocks): Now static.
3471
8419ee53
TT
34722018-07-16 Tom Tromey <tom@tromey.com>
3473
3474 * buildsym.h (push_subfile, pop_subfile): Update declarations.
3475 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
3476 member.
3477 (struct subfile_stack): Remove.
3478 (subfile_stack): Remove.
3479 (push_subfile, pop_subfile, buildsym_init): Update.
3480
ccdac490
TT
34812018-07-16 Tom Tromey <tom@tromey.com>
3482
3483 * buildsym.c (push_subfile): Use gdb_assert.
3484 (pop_subfile): Use gdb_assert.
3485
43130d6f
TT
34862018-07-16 Tom Tromey <tom@tromey.com>
3487
3488 * buildsym.h (merge_symbol_lists): Remove.
3489 * buildsym.c (merge_symbol_lists): Remove.
3490
77d6f1aa
TT
34912018-07-16 Tom Tromey <tom@tromey.com>
3492
3493 * stabsread.c (scan_file_globals): Update comment.
3494 * stabsread.h (scan_file_globals): Move from buildsym.h.
3495 * buildsym.h (scan_file_globals): Move to stabsread.h.
3496
2c722d18
TT
34972018-07-16 Tom Tromey <tom@tromey.com>
3498
3499 * xcoffread.c (xcoff_new_init): Update.
3500 * mipsread.c (mipscoff_new_init): Update.
3501 * mdebugread.c (mdebug_build_psymtabs): Update.
3502 * elfread.c (elf_new_init): Update.
3503 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
3504 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
3505 * buildsym.h (buildsym_new_init): Don't declare.
3506 * buildsym.c (buildsym_new_init): Remove.
3507
5985ac61
TT
35082018-07-16 Tom Tromey <tom@tromey.com>
3509
3510 * stabsread.h (within_function): Move from buildsym.h.
3511 * stabsread.c (start_stabs): Clear within_function.
3512 * coffread.c (coff_start_symtab): Clear within_function.
3513 * buildsym.h (within_function): Move to stabsread.h.
3514 * buildsym.c (prepare_for_building): Update.
3515
6b84eeb2
TT
35162018-07-16 Tom Tromey <tom@tromey.com>
3517
3518 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
3519 * dwarf2read.c (dwarf2_start_symtab): Don't set
3520 processing_gcc_compilation.
3521 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
3522
2150c3ef
TT
35232018-07-16 Tom Tromey <tom@tromey.com>
3524
3525 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
3526 (next_symbol_text_func): Move from buildsym.h.
3527 * stabsread.c (hashname): Move from buildsym.c.
3528 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
3529 (next_symbol_text_func, hashname): Move to stabsread.h.
3530 * buildsym.c: Don't include bcache.h
3531 (hashname): Move to stasbread.c.
3532
0ec44fc0
TT
35332018-07-16 Tom Tromey <tom@tromey.com>
3534
3535 * buildsym.h (context_stack_size): Don't declare.
3536 * buildsym.c (context_stack_size): New global.
3537
81cc346d
TT
35382018-07-16 Tom Tromey <tom@tromey.com>
3539
3540 * dbxread.c (processing_acc_compilation): New global.
3541 * buildsym.h (processing_acc_compilation): Don't declare.
3542
2c99ee5c
TT
35432018-07-16 Tom Tromey <tom@tromey.com>
3544
3545 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
3546 * dbxread.c (read_ofile_symtab): Update.
3547 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
3548 * buildsym.h (last_source_start_addr): Remove.
3549 (set_last_source_start_addr, get_last_source_start_addr):
3550 Declare.
3551 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
3552 parameter.
3553 (struct buildsym_compunit) <m_last_source_start_addr>: New
3554 member.
3555 (prepare_for_building): Remove start_addr parameter.
3556 (start_symtab, restart_symtab, end_symtab_get_static_block)
3557 (end_symtab_with_blockvector): Update.
3558 (set_last_source_start_addr, get_last_source_start_addr): New
3559 functions.
3560
530fedbc
TT
35612018-07-16 Tom Tromey <tom@tromey.com>
3562
3563 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
3564 member.
3565 (have_line_numbers): Remove.
3566 (record_line, prepare_for_building, end_symtab_get_static_block)
3567 (augment_type_symtab): Update.
3568
6a976300
TT
35692018-07-16 Tom Tromey <tom@tromey.com>
3570
3571 * buildsym.c (~buildsym_compunit): Free the macro table.
3572 (struct buildsym_compunit) <get_macro_table, release_macros>: New
3573 methods.
3574 <m_pending_macros>: New member.
3575 (pending_macros): Remove.
3576 (~scoped_free_pendings, get_macro_table, prepare_for_building)
3577 (reset_symtab_globals, end_symtab_get_static_block)
3578 (end_symtab_with_blockvector, augment_type_symtab)
3579 (buildsym_init): Update.
3580
c0015d44
TT
35812018-07-16 Tom Tromey <tom@tromey.com>
3582
3583 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
3584 parameter.
3585 (buildsym_compunit::set_last_source_file): New method.
3586 <m_last_source_file>: New member.
3587 (prepare_for_building): Remove "name" parameter.
3588 (start_symtab, restart_symtab, reset_symtab_globals): Update.
3589 (last_source_file): Remove.
3590 (set_last_source_file, get_last_source_file): Update.
3591
e62cca7c
TT
35922018-07-16 Tom Tromey <tom@tromey.com>
3593
3594 * buildsym.c (prepare_for_building): Add assert.
3595
905eb0e2
TT
35962018-07-16 Tom Tromey <tom@tromey.com>
3597
3598 * buildsym.c (~buildsym_compunit): Update.
3599 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
3600 (start_subfile, patch_subfile_names)
3601 (end_symtab_with_blockvector): Update.
3602
b248663f
TT
36032018-07-16 Tom Tromey <tom@tromey.com>
3604
3605 * buildsym.c (struct buildsym_compunit): Add constructor,
3606 destructor, initializers.
3607 (start_buildsym_compunit): Remove.
3608 (free_buildsym_compunit): Use "delete".
3609 (start_symtab, restart_symtab): Use "new".
3610
ff27d073
SM
36112018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
3612
3613 * symfile.c (set_objfile_default_section_offset): Remove struct
3614 keyword.
3615
6a15ecf5
SH
36162018-07-14 Stafford Horne <shorne@gmail.com>
3617
3618 * (Responsible Maintainers): Add myself as or1k maintainer.
3619
027a4c30
TT
36202018-07-13 Tom Tromey <tom@tromey.com>
3621
3622 * symfile.c (set_objfile_default_section_offset): Use extra braces
3623 around initializer.
3624
5c1eda30
AA
36252018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3626
3627 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
3628 non-branching basr.
3629
bc7b042b
PW
36302018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3631
3632 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3633 unittests/cli-utils-selftests.c
3634 * unittests/cli-utils-selftests.c: New file.
3635
a14c4daa
PW
36362018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3637
3638 * NEWS: Mention new commands. Mention change to 'thread apply'.
3639
1fe75df7
PW
36402018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3641
3642 * thread.c (thr_try_catch_cmd): New function.
3643 (thread_apply_all_command): Handle qcs flags.
3644 (thread_apply_command): Handle qcs flags.
3645 (taas_command): New function.
3646 (tfaas_command): New function.
3647 (_initialize_thread): Update to setup the new commands 'taas
3648 and 'tfaas'. Change doc string for 'thread apply'.
3649
6a70eb7d
PW
36502018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3651
3652 * stack.c: (trailing_outermost_frame): New function, mostly
3653 extracted from backtrace_command_1.
3654 (leading_innermost_frame): New function.
3655 (backtrace_command_1): Update to call trailing_outermost_frame.
3656 (frame_apply_command_count): New function.
3657 (frame_apply_level_command): New function.
3658 (frame_apply_all_command): New function.
3659 (frame_apply_command): New function.
3660 (faas_command): New function.
3661 (frame_cmd_list): New variable.
3662 (_initialize_stack): Update to setup the new commands 'frame apply'
3663 and 'faas'.
3664
529c08b2
PW
36652018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3666
3667 * cli-utils.c (number_or_range_parser::get_number): Only handle
3668 numbers or convenience var as numbers.
3669 (parse_flags): New function.
3670 (parse_flags_qcs): New function.
3671 (number_or_range_parser::finished): Ensure parsing end is detected
3672 before end of string.
3673 * cli-utils.h (parse_flags): New function.
3674 (parse_flags_qcs): New function.
3675 (number_or_range_parser): Remove m_finished bool.
3676 (number_or_range_parser::skip_range): Set m_in_range to false.
3677
64b58472
SDJ
36782018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
3679
3680 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
3681 on Windows.
3682
c7ab0aef
SDJ
36832018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
3684 Jan Kratochvil <jan.kratochvil@redhat.com>
3685 Paul Fertser <fercerpav@gmail.com>
3686 Tsutomu Seki <sekiriki@gmail.com>
3687 Pedro Alves <palves@redhat.com>
3688
3689 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3690 'unittests/parse-connection-spec-selftests.c'.
3691 (COMMON_SFILES): Add 'common/netstuff.c'.
3692 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
3693 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
3694 * common/netstuff.c: New file.
3695 * common/netstuff.h: New file.
3696 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
3697 (wait_for_connect): Update comment. New parameter
3698 'gdb::optional<int> sock' instead of 'struct serial *scb'.
3699 Use 'sock' directly instead of 'scb->fd'.
3700 (try_connect): New function, with code from 'net_open'.
3701 (net_open): Rewrite main loop to deal with multiple
3702 sockets/addresses. Handle IPv6-style hostnames; implement
3703 support for IPv6 connections.
3704 * unittests/parse-connection-spec-selftests.c: New file.
3705
4c7333b3
PA
37062018-07-11 Pedro Alves <palves@redhat.com>
3707
3708 PR gdb/23377
3709 * remote.c (remote_target::remote_detach_pid): Call
3710 set_current_process.
3711
a6f88f6e
PA
37122018-07-11 Pedro Alves <palves@redhat.com>
3713
3714 * h8300-tdep.c (h8300_gdbarch_init): Remove
3715 set_gdbarch_ecoff_reg_to_regnum calls.
3716
16ff70dd
SDJ
37172018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
3718
3719 PR c++/23373
3720 * c-typeprint.c (c_type_print_base_struct_union): Don't print
3721 offsets/sizes for static members of a class/struct.
3722
12863263
AH
37232018-07-11 Alan Hayward <alan.hayward@arm.com>
3724
3725 * target-descriptions.c (tdesc_register_bitsize): Rename.
3726 * target-descriptions.h (tdesc_register_bitsize): Likewise.
3727 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
3728 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
3729
1123588c
TT
37302018-07-10 Tom Tromey <tom@tromey.com>
3731
3732 * breakpoint.c (moribund_locations): Now static and a
3733 std::vector.
3734 (breakpoint_init_inferior, moribund_breakpoint_here_p)
3735 (build_bpstat_chain, update_global_location_list)
3736 (breakpoint_retire_moribund): Update.
3737 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
3738 VEC.
3739
8c49aa89
AB
37402018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
3741
3742 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
3743 (riscv_register_reggroup_p): Use new function, remove unneeded
3744 parenthesis.
3745 (riscv_push_dummy_call): Extend assert to compare against xlen or
3746 flen based on register type.
3747
42ecac17
AB
37482018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
3749
3750 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
3751
055303e2
AB
37522018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3753
3754 * remote.c (show_hardware_watchpoint_limit): New function.
3755 (show_hardware_watchpoint_length_limit): New function.
3756 (show_hardware_breakpoint_limit): New function.
3757 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
3758 where appropriate, update help text.
3759
8fd32c1c
TT
37602018-07-09 Tom Tromey <tom@tromey.com>
3761
3762 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
3763 (CLIBS): Don't mention NAT_CLIBS.
3764
31278b51
TT
37652018-07-09 Tom Tromey <tom@tromey.com>
3766
3767 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
3768 (LIBGDB_OBS, clean mostlyclean): Update.
3769 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
3770
e5fd1493
TT
37712018-07-09 Tom Tromey <tom@tromey.com>
3772
3773 * Makefile.in (%.c: %.y): Use ECHO_YACC.
3774 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
3775 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
3776
981e0c0c
TT
37772018-07-09 Tom Tromey <tom@tromey.com>
3778
3779 * Makefile.in (ALLDEPFILES): Remove exec.c.
3780 (COMMON_OBS): Remove exec.o.
3781 (COMMON_SFILES): Add exec.c.
3782
14ccceb2
TT
37832018-07-09 Tom Tromey <tom@tromey.com>
3784
3785 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
3786
5d3c3a68
TT
37872018-07-09 Tom Tromey <tom@tromey.com>
3788
3789 * Makefile.in (clean mostlyclean): Remove stamp-version.
3790 (version.c): Depend on stamp-version.
3791 (stamp-version): New rule, from version.c rule.
3792
1998086d
TT
37932018-07-09 Tom Tromey <tom@tromey.com>
3794
3795 * Makefile.in (init.c): Depend on stamp-init.
3796 (stamp-init): New rule, from init.c rule.
3797 (clean mostlyclean): Remove stamp-init.
3798
4c754949
TT
37992018-07-09 Tom Tromey <tom@tromey.com>
3800
3801 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
3802 SUBDIR_GCC_COMPILE_SRCS.
3803
6497f1dd
TT
38042018-07-09 Tom Tromey <tom@tromey.com>
3805
3806 * Makefile.in (init.c): Remove some unused sed rules.
3807
97a34db9
TT
38082018-07-09 Tom Tromey <tom@tromey.com>
3809
3810 * Makefile.in (TSOBS): Remove.
3811 (INIT_FILES): Update.
3812 (LIBGDB_OBS): Update.
3813 (COMMON_SFILES): Add inflow.c.
3814 (SFILES): Remove inflow.c.
3815
25289ac1
JK
38162018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3817
3818 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
3819
e83f4d97
SM
38202018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
3821
4869c585
SM
3822 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
3823 get_saveloc_name, is_signal_frame_name, step_name,
3824 init_remote_name, create_addr_space_name,
3825 destroy_addr_space_name, search_unwind_table_name,
3826 find_dyn_list_name): Constify.
e83f4d97 3827
6821842f
SM
38282018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
3829
3830 * darwin-nat.c (darwin_pthread_kill): New function.
3831 (darwin_resume_thread): Use darwin_pthread_kill.
3832
c530603c
TV
38332018-07-05 Tom de Vries <tdevries@suse.de>
3834
3835 * macroexp.c (macro_buffer) <operator=>: New member function.
3836
a7d0f0f0
TT
38372018-07-04 Tom Tromey <tom@tromey.com>
3838
3839 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
3840
6242c6a6
SM
38412018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
3842
3843 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
3844 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
3845 * maint.c: Likewise.
3846 * top.c: Likewise.
3847
4e5b2f89
JB
38482018-07-04 Joel Brobecker <brobecker@adacore.com>
3849
3850 * NEWS: Create a new section for the next release branch.
3851 Rename the section of the current branch, now that it has
3852 been cut.
3853
538ccc4a
JB
38542018-07-04 Joel Brobecker <brobecker@adacore.com>
3855
3856 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
3857 * version.in: Bump version to 8.2.50.DATE-git.
3858
1b919490
VB
38592018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
3860 Pedro Alves <palves@redhat.com>
3861
3862 * linux-nat.c (linux_init_ptrace): Rename to ...
3863 (linux_init_ptrace_procfs): ... this. Call
3864 linux_proc_init_warnings.
3865 (linux_nat_target::post_attach)
3866 (linux_nat_target::post_startup_inferior): Adjust.
3867 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
3868 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
3869
1ea5da02
TV
38702018-07-04 Tom de Vries <tdevries@suse.de>
3871
3872 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
3873 check ...
3874 (read_comp_unit_head): ... here.
3875
f51e0e20
TT
38762018-07-03 Tom Tromey <tom@tromey.com>
3877
3878 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
3879 (stop_tracing, tstatus_command)
3880 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
3881 (print_one_static_tracepoint_marker): Update.
3882 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
3883 std::vector.
3884 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
3885 VEC.
3886 (all_tracepoints, static_tracepoints_here): Return std::vector.
3887
d7e15655
TT
38882018-07-03 Tom Tromey <tom@tromey.com>
3889
3890 * common/ptid.c (ptid_equal): Remove.
3891 * common/ptid.h (ptid_equal): Don't declare.
3892 * ada-tasks.c: Update.
3893 * breakpoint.c: Update.
3894 * common/agent.c: Update.
3895 * corelow.c: Update.
3896 * darwin-nat-info.c: Update.
3897 * darwin-nat.c: Update.
3898 * dcache.c: Update.
3899 * dtrace-probe.c: Update.
3900 * dummy-frame.c: Update.
3901 * fbsd-nat.c: Update.
3902 * frame.c: Update.
3903 * gdbthread.h: Update.
3904 * gnu-nat.c: Update.
3905 * go32-nat.c: Update.
3906 * inf-loop.c: Update.
3907 * inf-ptrace.c: Update.
3908 * infcall.c: Update.
3909 * infcmd.c: Update.
3910 * inflow.c: Update.
3911 * infrun.c: Update.
3912 * linux-fork.c: Update.
3913 * linux-nat.c: Update.
3914 * linux-thread-db.c: Update.
3915 * mi/mi-cmd-var.c: Update.
3916 * mi/mi-interp.c: Update.
3917 * mi/mi-main.c: Update.
3918 * nto-procfs.c: Update.
3919 * ppc-linux-tdep.c: Update.
3920 * procfs.c: Update.
3921 * python/py-inferior.c: Update.
3922 * python/py-record-btrace.c: Update.
3923 * python/py-record.c: Update.
3924 * ravenscar-thread.c: Update.
3925 * regcache.c: Update.
3926 * remote-sim.c: Update.
3927 * remote.c: Update.
3928 * sol-thread.c: Update.
3929 * solib.c: Update.
3930 * target.c: Update.
3931 * tui/tui-stack.c: Update.
3932 * varobj.c: Update.
3933 * windows-nat.c: Update.
3934 * windows-tdep.c: Update.
3935
26a57c92
TT
39362018-07-03 Tom Tromey <tom@tromey.com>
3937
3938 * common/ptid.c (ptid_match): Remove.
3939 * common/ptid.h (ptid_match): Don't declare.
3940 * fbsd-nat.c: Update.
3941 * infcmd.c: Update.
3942 * infrun.c: Update.
3943 * linux-nat.c: Update.
3944 * record-btrace.c: Update.
3945 * regcache.c: Update.
3946 * remote.c: Update.
3947
d2a107e3
TT
39482018-07-03 Tom Tromey <tom@tromey.com>
3949
3950 * common/ptid.c (ptid_tid_p): Remove.
3951 * common/ptid.h (ptid_tid_p): Don't declare.
3952 * sol-thread.c: Update.
3953
15a9e13e
TT
39542018-07-03 Tom Tromey <tom@tromey.com>
3955
3956 * common/ptid.c (ptid_lwp_p): Remove.
3957 * common/ptid.h (ptid_lwp_p): Don't declare.
3958 * fbsd-nat.c: Update.
3959 * linux-nat.c: Update.
3960 * nat/linux-procfs.c: Update.
3961 * nat/x86-linux-dregs.c: Update.
3962 * sol-thread.c: Update.
3963
0e998d96
TT
39642018-07-03 Tom Tromey <tom@tromey.com>
3965
3966 * common/ptid.c (ptid_is_pid): Remove.
3967 * common/ptid.h (ptid_is_pid): Don't declare.
3968 * infrun.c: Update.
3969 * linux-nat.c: Update.
3970 * mi/mi-interp.c: Update.
3971 * remote.c: Update.
3972 * thread.c: Update.
3973
cc6bcb54
TT
39742018-07-03 Tom Tromey <tom@tromey.com>
3975
3976 * common/ptid.c (ptid_get_tid): Remove.
3977 * common/ptid.h (ptid_get_tid): Don't declare.
3978 * ada-tasks.c: Update.
3979 * aix-thread.c: Update.
3980 * bsd-uthread.c: Update.
3981 * darwin-nat.c: Update.
3982 * fbsd-nat.c: Update.
3983 * i386-darwin-nat.c: Update.
3984 * infrun.c: Update.
3985 * linux-tdep.c: Update.
3986 * nto-procfs.c: Update.
3987 * ppc-ravenscar-thread.c: Update.
3988 * python/py-infthread.c: Update.
3989 * ravenscar-thread.c: Update.
3990 * sol-thread.c: Update.
3991 * sparc-ravenscar-thread.c: Update.
3992 * windows-nat.c: Update.
3993
e38504b3
TT
39942018-07-03 Tom Tromey <tom@tromey.com>
3995
3996 * common/ptid.c (ptid_get_lwp): Remove.
3997 * common/ptid.h (ptid_get_lwp): Don't declare.
3998 * aarch64-linux-nat.c: Update.
3999 * ada-tasks.c: Update.
4000 * aix-thread.c: Update.
4001 * amd64-linux-nat.c: Update.
4002 * arm-linux-nat.c: Update.
4003 * corelow.c: Update.
4004 * fbsd-nat.c: Update.
4005 * fbsd-tdep.c: Update.
4006 * gnu-nat.c: Update.
4007 * i386-cygwin-tdep.c: Update.
4008 * i386-gnu-nat.c: Update.
4009 * i386-linux-nat.c: Update.
4010 * ia64-linux-nat.c: Update.
4011 * inf-ptrace.c: Update.
4012 * infrun.c: Update.
4013 * linux-fork.c: Update.
4014 * linux-nat.c: Update.
4015 * linux-tdep.c: Update.
4016 * linux-thread-db.c: Update.
4017 * mips-linux-nat.c: Update.
4018 * nat/aarch64-linux-hw-point.c: Update.
4019 * nat/aarch64-linux.c: Update.
4020 * nat/linux-btrace.c: Update.
4021 * nat/linux-osdata.c: Update.
4022 * nat/linux-procfs.c: Update.
4023 * nat/x86-linux-dregs.c: Update.
4024 * obsd-nat.c: Update.
4025 * ppc-fbsd-nat.c: Update.
4026 * ppc-linux-nat.c: Update.
4027 * procfs.c: Update.
4028 * python/py-infthread.c: Update.
4029 * ravenscar-thread.c: Update.
4030 * remote.c: Update.
4031 * s390-linux-nat.c: Update.
4032 * sol-thread.c: Update.
4033 * sol2-tdep.c: Update.
4034 * spu-linux-nat.c: Update.
4035 * x86-linux-nat.c: Update.
4036 * xtensa-linux-nat.c: Update.
4037
e99b03dc
TT
40382018-07-03 Tom Tromey <tom@tromey.com>
4039
4040 * common/ptid.c (ptid_get_pid): Remove.
4041 * common/ptid.h (ptid_get_pid): Don't declare.
4042 * aarch64-linux-nat.c: Update.
4043 * ada-lang.c: Update.
4044 * aix-thread.c: Update.
4045 * alpha-bsd-nat.c: Update.
4046 * amd64-fbsd-nat.c: Update.
4047 * amd64-linux-nat.c: Update.
4048 * arm-linux-nat.c: Update.
4049 * arm-nbsd-nat.c: Update.
4050 * auxv.c: Update.
4051 * break-catch-syscall.c: Update.
4052 * breakpoint.c: Update.
4053 * bsd-uthread.c: Update.
4054 * corelow.c: Update.
4055 * ctf.c: Update.
4056 * darwin-nat.c: Update.
4057 * fbsd-nat.c: Update.
4058 * fbsd-tdep.c: Update.
4059 * gcore.c: Update.
4060 * gnu-nat.c: Update.
4061 * hppa-nbsd-nat.c: Update.
4062 * hppa-obsd-nat.c: Update.
4063 * i386-fbsd-nat.c: Update.
4064 * ia64-linux-nat.c: Update.
4065 * inf-ptrace.c: Update.
4066 * infcmd.c: Update.
4067 * inferior.c: Update.
4068 * inferior.h: Update.
4069 * inflow.c: Update.
4070 * infrun.c: Update.
4071 * linux-fork.c: Update.
4072 * linux-nat.c: Update.
4073 * linux-tdep.c: Update.
4074 * linux-thread-db.c: Update.
4075 * m68k-bsd-nat.c: Update.
4076 * mi/mi-interp.c: Update.
4077 * mi/mi-main.c: Update.
4078 * mips-linux-nat.c: Update.
4079 * mips-nbsd-nat.c: Update.
4080 * mips64-obsd-nat.c: Update.
4081 * nat/aarch64-linux-hw-point.c: Update.
4082 * nat/aarch64-linux.c: Update.
4083 * nat/linux-btrace.c: Update.
4084 * nat/linux-osdata.c: Update.
4085 * nat/linux-procfs.c: Update.
4086 * nat/x86-linux-dregs.c: Update.
4087 * nto-procfs.c: Update.
4088 * obsd-nat.c: Update.
4089 * ppc-linux-nat.c: Update.
4090 * ppc-nbsd-nat.c: Update.
4091 * ppc-obsd-nat.c: Update.
4092 * proc-service.c: Update.
4093 * procfs.c: Update.
4094 * python/py-inferior.c: Update.
4095 * python/py-infthread.c: Update.
4096 * ravenscar-thread.c: Update.
4097 * record.c: Update.
4098 * remote-sim.c: Update.
4099 * remote.c: Update.
4100 * rs6000-nat.c: Update.
4101 * s390-linux-nat.c: Update.
4102 * sh-nbsd-nat.c: Update.
4103 * sol-thread.c: Update.
4104 * sparc-nat.c: Update.
4105 * sparc64-tdep.c: Update.
4106 * spu-linux-nat.c: Update.
4107 * spu-tdep.c: Update.
4108 * target-debug.h: Update.
4109 * target.c: Update.
4110 * thread.c: Update.
4111 * tid-parse.c: Update.
4112 * tracefile-tfile.c: Update.
4113 * vax-bsd-nat.c: Update.
4114 * windows-nat.c: Update.
4115 * x86-linux-nat.c: Update.
4116 * x86-nat.c: Update.
4117
f2907e49
TT
41182018-07-03 Tom Tromey <tom@tromey.com>
4119
4120 * common/ptid.c (pid_to_ptid): Remove.
4121 * common/ptid.h (pid_to_ptid): Don't declare.
4122 * aix-thread.c: Update.
4123 * arm-linux-nat.c: Update.
4124 * common/ptid.c: Update.
4125 * common/ptid.h: Update.
4126 * corelow.c: Update.
4127 * ctf.c: Update.
4128 * darwin-nat.c: Update.
4129 * fbsd-nat.c: Update.
4130 * fork-child.c: Update.
4131 * gnu-nat.c: Update.
4132 * go32-nat.c: Update.
4133 * inf-ptrace.c: Update.
4134 * infcmd.c: Update.
4135 * inferior.c: Update.
4136 * infrun.c: Update.
4137 * linux-fork.c: Update.
4138 * linux-nat.c: Update.
4139 * nat/aarch64-linux-hw-point.c: Update.
4140 * nat/fork-inferior.c: Update.
4141 * nat/x86-linux-dregs.c: Update.
4142 * nto-procfs.c: Update.
4143 * obsd-nat.c: Update.
4144 * procfs.c: Update.
4145 * progspace.c: Update.
4146 * remote.c: Update.
4147 * rs6000-nat.c: Update.
4148 * s390-linux-nat.c: Update.
4149 * sol-thread.c: Update.
4150 * spu-linux-nat.c: Update.
4151 * target.c: Update.
4152 * top.c: Update.
4153 * tracefile-tfile.c: Update.
4154 * windows-nat.c: Update.
4155
fd79271b
TT
41562018-07-03 Tom Tromey <tom@tromey.com>
4157
4158 * common/ptid.h (ptid_build): Don't declare.
4159 * common/ptid.c (ptid_build): Remove.
4160 * aix-thread.c: Update.
4161 * bsd-kvm.c: Update.
4162 * bsd-uthread.c: Update.
4163 * common/agent.c: Update.
4164 * common/ptid.c: Update.
4165 * common/ptid.h: Update.
4166 * corelow.c: Update.
4167 * darwin-nat.c: Update.
4168 * fbsd-nat.c: Update.
4169 * gnu-nat.c: Update.
4170 * linux-fork.c: Update.
4171 * linux-nat.c: Update.
4172 * linux-thread-db.c: Update.
4173 * nat/linux-osdata.c: Update.
4174 * nat/linux-procfs.c: Update.
4175 * nto-procfs.c: Update.
4176 * obsd-nat.c: Update.
4177 * proc-service.c: Update.
4178 * procfs.c: Update.
4179 * ravenscar-thread.c: Update.
4180 * remote-sim.c: Update.
4181 * remote.c: Update.
4182 * sol-thread.c: Update.
4183 * target.c: Update.
4184 * windows-nat.c: Update.
4185
057302ce
TT
41862018-07-03 Tom Tromey <tom@tromey.com>
4187
4188 * infrun.c (follow_exec): Use exit_inferior_silent.
4189 * inferior.c (exit_inferior_num_silent): Remove.
4190 * inferior.h (exit_inferior_num_silent): Don't declare.
4191
a50c11c6
TT
41922018-07-03 Tom Tromey <tom@tromey.com>
4193
4194 PR cli/23340:
4195 * darwin-nat.c (darwin_attach_pid): Reset inferior and
4196 inferior_ptid on error.
4197
471b9d15
MR
41982018-07-02 Maciej W. Rozycki <macro@mips.com>
4199 Simon Marchi <simon.marchi@polymtl.ca>
4200
4201 PR tdep/8282
4202 * disasm.h (gdb_disassembler): Add
4203 `m_disassembler_options_holder'. member
4204 * disasm.c (get_all_disassembler_options): New function.
4205 (gdb_disassembler::gdb_disassembler): Use it.
4206 (gdb_buffered_insn_length_init_dis): Likewise.
4207 (gdb_buffered_insn_length): Adjust accordingly.
4208 (set_disassembler_options): Handle options with arguments.
4209 (show_disassembler_options_sfunc): Likewise. Add a leading new
4210 line if showing options with descriptions.
4211 (disassembler_options_completer): Adapt to using the
4212 `disasm_options_and_args_t' structure.
4213 * mips-tdep.c (mips_disassembler_options): New variable.
4214 (mips_disassembler_options_o32): Likewise.
4215 (mips_disassembler_options_n32): Likewise.
4216 (mips_disassembler_options_n64): Likewise.
4217 (gdb_print_insn_mips): Don't set `disassembler_options'.
4218 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
4219 functions.
4220 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
4221 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
4222 `gdbarch_disassembler_options_implicit' and
4223 `gdbarch_valid_disassembler_options'.
4224 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
4225 `disasm_options_and_args_t' structure.
4226 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
4227 method.
4228 (valid_disassembler_options): Switch from `disasm_options_t' to
4229 the `disasm_options_and_args_t' structure.
4230 * NEWS: Document `set disassembler-options' support for the MIPS
4231 target.
4232 * gdbarch.h: Regenerate.
4233 * gdbarch.c: Regenerate.
4234
41823f29
SH
42352018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
4236
4237 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
4238
41206e32
JB
42392018-06-29 Joel Brobecker <brobecker@adacore.com>
4240
4241 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
4242 parameter in call to amd64_target_description.
4243 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
4244 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
4245 (amd64fbsd_init_abi): Likewise.
4246 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
4247 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
4248 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
4249 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
4250
de52b960
PA
42512018-06-29 Pedro Alves <palves@redhat.com>
4252
4253 * gdb/amd64-tdep.h (amd64_create_target_description): Add
4254 "segments" parameter.
4255 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
4256 (_initialize_amd64_tdep): Update call to
4257 amd64_create_target_description.
4258 (amd64_target_description): Add "segments" parameter. Adjust
4259 the implementation to use it.
4260 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
4261 call to amd64_create_target_description.
4262 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
4263 * gdb/arch/amd64.h (amd64_create_target_description): Add
4264 "segments" register.
4265 * gdb/arch/amd64.c (amd64_create_target_description): Add
4266 "segments" parameter. Call create_feature_i386_64bit_segments
4267 only if SEGMENTS is true.
4268 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
4269 call to amd64_create_target_description.
4270
75acb486
PA
42712018-06-29 Pedro Alves <palves@redhat.com>
4272
4273 * thread.c (thread_target_id_str): New, factored out from ...
4274 (print_thread_info_1): ... here. Use it to compute the max
4275 "Target Id" column width.
4276
c76a8ea3
PA
42772018-06-29 Pedro Alves <palves@redhat.com>
4278
4279 * remote.c (remote_target::extra_thread_info): Delete
4280 'display_buf' and 'n' locals. from the cache, regardless of
4281 packet mechanims is in use. Use cache for qThreadExtra and qP
4282 methods too.
4283
cd2bb709
PA
42842018-06-29 Pedro Alves <palves@redhat.com>
4285
4286 * blockframe.c (find_pc_sect_containing_function): New function.
4287 * breakpoint.c (print_breakpoint_location): Don't call
4288 find_pc_sect_function.
4289 * linespec.c (create_sals_line_offset): Record the location's
4290 symbol in the sal.
4291 * linespec.c (convert_address_location_to_sals): Fill in sal's
4292 symbol with find_pc_sect_containing_function.
4293 * symtab.c (find_function_start_sal): Rename to ...
4294 (find_function_start_sal_1): ... this.
4295 (find_function_start_sal): Reimplement as wrapper around
4296 find_function_start_sal_1, and use
4297 find_pc_sect_containing_function to fill in the sal's symbol.
4298 (find_function_start_sal(symbol*, bool)): Adjust.
4299 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
4300 comments.
4301 (find_pc_sect_containing_function): Declare.
4302
991ff292
PA
43032018-06-29 Pedro Alves <palves@redhat.com>
4304
4305 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
4306 true if the the location has no symbol.
4307
44cee4fd
TT
43082018-06-28 Tom Tromey <tom@tromey.com>
4309
4310 * NEWS: Mention --enable-codesign.
4311 * silent-rules.mk (ECHO_SIGN): New variable.
4312 * configure.ac: Add --enable-codesign.
4313 * configure: Rebuild.
4314 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
4315 (gdb$(EXEEXT)): Optionally invoke codesign.
4316
f2ffa92b
PA
43172018-06-28 Pedro Alves <palves@redhat.com>
4318
4319 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
4320 comments.
4321 (switch_to_thread_no_regs): Adjust comment.
4322 * infcmd.c (stop_pc): Delete.
4323 (post_create_inferior, info_program_command): Replace references
4324 to stop_pc with references to thread_info->suspend.stop_pc.
4325 * inferior.h (stop_pc): Delete declaration.
4326 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
4327 (handle_inferior_event_1, handle_signal_stop)
4328 (process_event_stop_test, keep_going_stepped_thread)
4329 (handle_step_into_function, handle_step_into_function_backward)
4330 (print_stop_location): Replace references to stop_pc with
4331 references to thread_info->suspend.stop_pc.
4332 (struct infcall_suspend_state) <stop_pc>: Delete field.
4333 (save_infcall_suspend_state, restore_infcall_suspend_state):
4334 Remove references to inf_stat->stop_pc.
4335 * linux-fork.c (fork_load_infrun_state): Likewise.
4336 * record-btrace.c (record_btrace_set_replay): Likewise.
4337 * record-full.c (record_full_goto_entry): Likewise.
4338 * remote.c (print_one_stopped_thread): Likewise.
4339 * target.c (target_resume): Extend comment.
4340 * thread.c (set_executing_thread): New.
4341 (set_executing): Use it.
4342 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
4343 Remove references to stop_pc.
4344
ecdc3a72
PA
43452018-06-28 Pedro Alves <palves@redhat.com>
4346
4347 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
4348 Moving fetching stop_pc until after ecs->event_thread is refreshed.
4349
d95d3aef
TT
43502018-06-28 Tom Tromey <tom@tromey.com>
4351
4352 * coffread.c (coff_symfile_finish): Update.
4353 * xcoffread.c (xcoff_symfile_finish): Update.
4354 * elfread.c (elf_symfile_finish): Update.
4355 * symfile.h (dwarf2_free_objfile): Don't declare.
4356 * dwarf2read.c (_initialize_dwarf2_read): Use
4357 register_objfile_data_with_cleanup.
4358 (dwarf2_free_objfile): Now static. Change signature.
4359
291f9a96
PT
43602018-06-28 Petr Tesarik <ptesarik@suse.cz>
4361
4362 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
4363 option "-o" to add-symbol-file-load to add an offset to each
4364 section's load address.
4365 * symfile.c (set_objfile_default_section_offset): New function.
4366
d81a3eaf
PT
43672018-06-28 Petr Tesarik <ptesarik@suse.cz>
4368
4369 * symfile.c (add_symbol_file_command): Make sure that sections
4370 with the same name are sorted in the same order.
4371
ed6dfe51
PT
43722018-06-28 Petr Tesarik <ptesarik@suse.cz>
4373
4374 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
4375 require the second argument. If omitted, load sections at the
4376 addresses specified in the file.
4377
d4d429d5
PT
43782018-06-28 Petr Tesarik <ptesarik@suse.cz>
4379
4380 * symfile.c (symbol_file_command, symbol_file_add_main_1)
4381 (_initialize_symfile): Add option "-o" to symbol-file to add an
4382 offset to each section of the symbol file.
4383
39b27ab6
PT
43842018-06-28 Petr Tesarik <ptesarik@suse.cz>
4385
4386 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
4387
41827fc3
TT
43882018-06-27 Tom Tromey <tom@tromey.com>
4389
4390 * stack.c (_initialize_stack): Update "func" help text.
4391
0c6aef22
TT
43922018-06-27 Tom Tromey <tom@tromey.com>
4393
4394 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
4395 std::vector.
4396 (unwind_infopy_str, pyuw_create_unwind_info)
4397 (unwind_infopy_add_saved_register, pyuw_sniffer)
4398 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
4399 Update.
4400 (struct saved_reg): Add constructor.
4401 <value>: Now a gdbpy_ref<>.
4402
63177289
TT
44032018-06-27 Tom Tromey <tom@tromey.com>
4404
4405 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
4406
e76f78a0
SM
44072018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4408
4409 * gdb-gdb.py.in: Format using autopep8.
4410
9a14af7b
SM
44112018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4412
4413 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
4414 (type_lookup_function): Recognize CORE_ADDR values.
4415
189366cd
SM
44162018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4417
4418 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
4419 print tag_name.
4420
68ad5fb9
SM
44212018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4422
4423 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
4424 <__lt__>: Add.
4425
141ec9f6
SM
44262018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4427
4428 * gdb-gdb.py: Move to...
4429 * gdb-gdb.py.in: ... here.
4430 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
4431 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
4432 dependencies.
4433 (distclean): Remove gdb-gdb.py when cleaning.
4434 (gdb-gdb.py, gdb-gdb.gdb): New rules.
4435 * configure: Re-generate.
4436
4c4e7ad4
PA
44372018-06-27 Pedro Alves <palves@redhat.com>
4438
4439 * proc-service.c (get_ps_regcache): New.
4440 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
4441 (ps_lsetfpregs): Use it.
4442
7ab6656f
OJ
44432018-06-27 Omair Javaid <omair.javaid@linaro.org>
4444
4445 PR gdb/21695
4446 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
4447 (dwarf_decode_lines_1): Adjust.
4448
bd583225
SM
44492018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4450
4451 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
4452 override.
4453 <info_proc>: Likewise.
4454
9a325b7b
JB
44552018-06-26 Joel Brobecker <brobecker@adacore.com>
4456
4457 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
4458 to windows_fetch_one_register, and only handle the case of
4459 fetching one register. Move the code that reloads the context
4460 and iterates over all registers if R is negative to...
4461 (windows_nat_target::fetch_registers): ... here.
4462 (do_windows_store_inferior_registers): Rename to
4463 windows_store_one_register, and only handle the case of storing
4464 one register. Move the code that handles the case where r is
4465 negative to...
4466 (windows_nat_target::store_registers) ... here.
4467
a33ccfc7
TT
44682018-06-26 Tom Tromey <tom@tromey.com>
4469
4470 PR rust/22574:
4471 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
4472 * rust-lang.c (rust_print_struct_def): Add podata parameter.
4473 Update.
4474 (rust_internal_print_type): Add podata parameter.
4475 (rust_print_type): Update.
4476
e0c547d1
TT
44772018-06-26 Tom Tromey <tom@tromey.com>
4478
4479 * typeprint.h (struct print_offset_data) <update, finish,
4480 maybe_print_hole>: New methods.
4481 <indentation>: New constant.
4482 * typeprint.c (print_offset_data::indentation): Define.
4483 (print_offset_data::maybe_print_hole, print_offset_data::update)
4484 (print_offset_data::finish): Move from c-typeprint.c and rename.
4485 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
4486 (print_spaces_filtered_with_print_options): Update.
4487 (c_print_type_union_field_offset, maybe_print_hole)
4488 (c_print_type_struct_field_offset): Move to typeprint.c and
4489 rename.
4490 (c_type_print_base_struct_union): Update.
4491
75cbc781
PA
44922018-06-25 Pedro Alves <palves@redhat.com>
4493
4494 * gdbthread.h (thread_info_ref, delete_thread)
4495 (delete_thread_silent, first_thread_of_inferior)
4496 (any_thread_of_inferior, switch_to_thread)
4497 (enable_thread_stack_temporaries)
4498 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4499 (get_last_thread_stack_temporary)
4500 (value_in_thread_stack_temporaries, can_access_registers_thread):
4501 Spell out "struct thread_info" instead of just "thread_info".
4502 * inferior.h (notice_new_inferior): Likewise.
4503
b7a08269
PA
45042018-06-25 Pedro Alves <palves@redhat.com>
4505
4506 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
4507 pass thread_info pointer to delete_thread.
4508 (windows_nat_target::detach): Pass inferior pointer to
4509 detach_inferior.
4510 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
4511 delete_thread.
4512 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
4513 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
4514 and pass a thread_info pointer to delete_thread.
4515 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
4516 pass thread_info pointer to delete_thread.
4517 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
4518 delete_thread_silent call.
4519 * procfs.c (procfs_target::detach): Pass inferior pointer to
4520 detach_inferior.
4521 (procfs_target::wait): Pass thread_info pointer to delete_thread.
4522 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
4523 delete_thread_silent call.
4524 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
4525 pass thread_info pointer to delete_thread.
4526 (windows_nat_target::detach): Pass inferior pointer to
4527 delete_inferior.
4528
8e7767e3
AH
45292018-06-22 Alan Hayward <alan.hayward@arm.com>
4530
4531 * regcache.c (readable_regcache::read_part): Fix asserts.
4532 (reg_buffer::raw_collect_part): New function.
4533 (regcache::write_part): Fix asserts.
4534 (reg_buffer::raw_supply_part): New function.
4535 (regcache::transfer_regset_register): New helper function.
4536 (regcache::transfer_regset): Call new functions.
4537 (regcache_supply_regset): Use gdb_byte*.
4538 (regcache::supply_regset): Likewise.
4539 (regcache_collect_regset): Likewise.
4540 (regcache::collect_regset): Likewise.
4541 * regcache.h (reg_buffer::raw_collect_part): New declaration.
4542 (reg_buffer::raw_supply_part): Likewise.
4543 (regcache::transfer_regset_register): Likewise.
4544 (regcache::transfer_regset): Use gdb_byte*.
4545
bfd60e34
AH
45462018-06-22 Alan Hayward <alan.hayward@arm.com>
4547
4548 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
4549
00431a78
PA
45502018-06-21 Pedro Alves <palves@redhat.com>
4551
4552 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
4553 instead of a ptid_t. All callers adjusted.
4554 * ada-tasks.c (ada_get_task_number): Likewise. All callers
4555 adjusted.
4556 (print_ada_task_info, display_current_task_id, task_command_1):
4557 Adjust.
4558 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
4559 inferior_thread.
4560 (breakpoint_kind): Adjust.
4561 (remove_breakpoints_pid): Rename to ...
4562 (remove_breakpoints_inf): ... this. Adjust to take an inferior
4563 pointer. All callers adjusted.
4564 (bpstat_clear_actions): Use inferior_thread.
4565 (get_bpstat_thread): New.
4566 (bpstat_do_actions): Use it.
4567 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
4568 to take a thread_info pointer. All callers adjusted.
4569 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
4570 (breakpoint_re_set_thread): Use inferior_thread.
4571 * breakpoint.h (struct inferior): Forward declare.
4572 (bpstat_stop_status): Update.
4573 (remove_breakpoints_pid): Delete.
4574 (remove_breakpoints_inf): New.
4575 * bsd-uthread.c (bsd_uthread_target::wait)
4576 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
4577 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
4578 (maint_btrace_packet_history_cmd)
4579 (maint_btrace_clear_packet_history_cmd): Adjust.
4580 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
4581 inferior_thread.
4582 * cli/cli-interp.c: Include "inferior.h".
4583 * common/refcounted-object.h (struct
4584 refcounted_object_ref_policy): New.
4585 * compile/compile-object-load.c: Include gdbthread.h.
4586 (store_regs): Use inferior_thread.
4587 * corelow.c (core_target::close): Use current_inferior.
4588 (core_target_open): Adjust to use first_thread_of_inferior and use
4589 the current inferior.
4590 * ctf.c (ctf_target::close): Adjust to use current_inferior.
4591 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
4592 <thread>: ... this new field. All references adjusted.
4593 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
4594 Take a thread_info pointer instead of a ptid_t.
4595 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
4596 (dummy_frame_discard, register_dummy_frame_dtor): Take a
4597 thread_info pointer instead of a ptid_t.
4598 * elfread.c: Include "inferior.h".
4599 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
4600 Use inferior_thread.
4601 * eval.c (evaluate_subexp): Likewise.
4602 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
4603 inferior_thread.
4604 * gdb_proc_service.h (struct thread_info): Forward declare.
4605 (struct ps_prochandle) <ptid>: Delete, replaced by ...
4606 <thread>: ... this new field. All references adjusted.
4607 * gdbarch.h, gdbarch.c: Regenerate.
4608 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
4609 'thread' parameter. All implementations and callers adjusted.
4610 * gdbthread.h (thread_info) <set_running>: New method.
4611 (delete_thread, delete_thread_silent): Take a thread_info pointer
4612 instead of a ptid.
4613 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
4614 (first_thread_of_process): Delete, replaced by ...
4615 (first_thread_of_inferior): ... this new function. All callers
4616 adjusted.
4617 (any_live_thread_of_process): Delete, replaced by ...
4618 (any_live_thread_of_inferior): ... this new function. All callers
4619 adjusted.
4620 (switch_to_thread, switch_to_no_thread): Declare.
4621 (is_executing): Delete.
4622 (enable_thread_stack_temporaries): Update comment.
4623 <enable_thread_stack_temporaries>: Take a thread_info pointer
4624 instead of a ptid_t. Incref the thread.
4625 <~enable_thread_stack_temporaries>: Decref the thread.
4626 <m_ptid>: Delete
4627 <m_thr>: New.
4628 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4629 (get_last_thread_stack_temporary)
4630 (value_in_thread_stack_temporaries, can_access_registers_thread):
4631 Take a thread_info pointer instead of a ptid_t. All callers
4632 adjusted.
4633 * infcall.c (get_call_return_value): Use inferior_thread.
4634 (run_inferior_call): Work with thread pointers instead of ptid_t.
4635 (call_function_by_hand_dummy): Work with thread pointers instead
4636 of ptid_t. Use thread_info_ref.
4637 * infcmd.c (proceed_thread_callback): Access thread's state
4638 directly.
4639 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
4640 access thread's state directly.
4641 (continue_command): Use inferior_thread.
4642 (info_program_command): Use find_thread_ptid and access thread
4643 state directly.
4644 (proceed_after_attach_callback): Use thread state directly.
4645 (notice_new_inferior): Take a thread_info pointer instead of a
4646 ptid_t. All callers adjusted.
4647 (exit_inferior): Take an inferior pointer instead of a pid. All
4648 callers adjusted.
4649 (exit_inferior_silent): New.
4650 (detach_inferior): Delete.
4651 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
4652 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
4653 (detach_inferior_command, kill_inferior_command): Use
4654 find_inferior_id instead of valid_gdb_inferior_id and
4655 gdb_inferior_id_to_pid.
4656 (inferior_command): Use inferior and thread pointers.
4657 * inferior.h (struct thread_info): Forward declare.
4658 (notice_new_inferior): Take a thread_info pointer instead of a
4659 ptid_t. All callers adjusted.
4660 (detach_inferior): Delete declaration.
4661 (exit_inferior, exit_inferior_silent): Take an inferior pointer
4662 instead of a pid. All callers adjusted.
4663 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
4664 (valid_gdb_inferior_id): Delete.
4665 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
4666 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
4667 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
4668 ...
4669 <inf>: ... this new field.
4670 <step_ptid>: Delete, replaced by ...
4671 <step_thread>: ... this new field.
4672 (get_displaced_stepping_state): Take an inferior pointer instead
4673 of a pid. All callers adjusted.
4674 (displaced_step_in_progress_any_inferior): Adjust.
4675 (displaced_step_in_progress_thread): Take a thread pointer instead
4676 of a ptid_t. All callers adjusted.
4677 (displaced_step_in_progress, add_displaced_stepping_state): Take
4678 an inferior pointer instead of a pid. All callers adjusted.
4679 (get_displaced_step_closure_by_addr): Adjust.
4680 (remove_displaced_stepping_state): Take an inferior pointer
4681 instead of a pid. All callers adjusted.
4682 (displaced_step_prepare_throw, displaced_step_prepare)
4683 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
4684 All callers adjusted.
4685 (start_step_over): Adjust.
4686 (infrun_thread_ptid_changed): Remove bit updating ptids in the
4687 displaced step queue.
4688 (do_target_resume): Adjust.
4689 (fetch_inferior_event): Use inferior_thread.
4690 (context_switch, get_inferior_stop_soon): Take an
4691 execution_control_state pointer instead of a ptid_t. All callers
4692 adjusted.
4693 (switch_to_thread_cleanup): Delete.
4694 (stop_all_threads): Use scoped_restore_current_thread.
4695 * inline-frame.c: Include "gdbthread.h".
4696 (inline_state) <inline_state>: Take a thread pointer instead of a
4697 ptid_t. All callers adjusted.
4698 <ptid>: Delete, replaced by ...
4699 <thread>: ... this new field.
4700 (find_inline_frame_state): Take a thread pointer instead of a
4701 ptid_t. All callers adjusted.
4702 (skip_inline_frames, step_into_inline_frame)
4703 (inline_skipped_frames, inline_skipped_symbol): Take a thread
4704 pointer instead of a ptid_t. All callers adjusted.
4705 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
4706 (inline_skipped_frames, inline_skipped_symbol): Likewise.
4707 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
4708 pointers directly.
4709 * linux-nat.c (get_detach_signal): Likewise.
4710 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
4711 (thread_db_notice_clone): Adjust.
4712 (thread_db_find_new_threads_silently)
4713 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
4714 a thread pointer instead of a ptid_t. All callers adjusted.
4715 * mi/mi-cmd-var.c: Include "inferior.h".
4716 (mi_cmd_var_update_iter): Update to use thread pointers.
4717 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
4718 inferior directly.
4719 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
4720 out to ...
4721 (mi_output_running): ... this new function.
4722 (mi_on_resume_1): Adjust to use it.
4723 (mi_user_selected_context_changed): Adjust to use inferior_thread.
4724 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
4725 directly.
4726 (interrupt_thread_callback): : Adjust to use thread and inferior
4727 pointers.
4728 * proc-service.c: Include "gdbthread.h".
4729 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
4730 * progspace-and-thread.c: Include "inferior.h".
4731 * progspace.c: Include "inferior.h".
4732 * python/py-exitedevent.c (create_exited_event_object): Adjust to
4733 hold a reference to an inferior_object.
4734 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
4735 inferior_thread.
4736 * python/py-inferior.c (struct inferior_object): Give the type a
4737 tag name instead of a typedef.
4738 (python_on_normal_stop): No need to check if the current thread is
4739 listed.
4740 (inferior_to_inferior_object): Change return type to
4741 inferior_object. All callers adjusted.
4742 (find_thread_object): Delete, bits factored out to ...
4743 (thread_to_thread_object): ... this new function.
4744 * python/py-infthread.c (create_thread_object): Use
4745 inferior_to_inferior_object.
4746 (thpy_is_stopped): Use thread pointer directly.
4747 (gdbpy_selected_thread): Use inferior_thread.
4748 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
4749 field, replaced with ...
4750 <thread>: ... this new field. All users adjusted.
4751 (btpy_insn_or_gap_new): Drop const.
4752 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
4753 callers adjusted.
4754 * python/py-record.c: Include "gdbthread.h".
4755 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
4756 a ptid_t. All callers adjusted.
4757 (gdbpy_current_recording): Use inferior_thread.
4758 * python/py-record.h (recpy_record_object) <ptid>: Delete
4759 field, replaced with ...
4760 <thread>: ... this new field. All users adjusted.
4761 (recpy_element_object) <ptid>: Delete
4762 field, replaced with ...
4763 <thread>: ... this new field. All users adjusted.
4764 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
4765 a ptid_t. All callers adjusted.
4766 * python/py-threadevent.c: Include "gdbthread.h".
4767 (get_event_thread): Use thread_to_thread_object.
4768 * python/python-internal.h (struct inferior_object): Forward
4769 declare.
4770 (find_thread_object, find_inferior_object): Delete declarations.
4771 (thread_to_thread_object, inferior_to_inferior_object): New
4772 declarations.
4773 * record-btrace.c: Include "inferior.h".
4774 (require_btrace_thread): Use inferior_thread.
4775 (record_btrace_frame_sniffer)
4776 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
4777 (get_thread_current_frame): Use scoped_restore_current_thread and
4778 switch_to_thread.
4779 (get_thread_current_frame): Use thread pointer directly.
4780 (record_btrace_replay_at_breakpoint): Use thread's inferior
4781 pointer directly.
4782 * record-full.c: Include "inferior.h".
4783 * regcache.c: Include "gdbthread.h".
4784 (get_thread_arch_regcache): Use the inferior's address space
4785 directly.
4786 (get_thread_regcache, registers_changed_thread): New.
4787 * regcache.h (get_thread_regcache(thread_info *thread)): New
4788 overload.
4789 (registers_changed_thread): New.
4790 (remote_target) <remote_detach_1>: Swap order of parameters.
4791 (remote_add_thread): <remote_add_thread>: Return the new thread.
4792 (get_remote_thread_info(ptid_t)): New overload.
4793 (remote_target::remote_notice_new_inferior): Use thread pointers
4794 directly.
4795 (remote_target::process_initial_stop_replies): Use
4796 thread_info::set_running.
4797 (remote_target::remote_detach_1, remote_target::detach)
4798 (extended_remote_target::detach): Adjust.
4799 * stack.c (frame_show_address): Use inferior_thread.
4800 * target-debug.h (target_debug_print_thread_info_pp): New.
4801 * target-delegates.c: Regenerate.
4802 * target.c (default_thread_address_space): Delete.
4803 (memory_xfer_partial_1): Use current_inferior.
4804 (target_detach): Use current_inferior.
4805 (target_thread_address_space): Delete.
4806 (generic_mourn_inferior): Use current_inferior.
4807 * target.h (struct target_ops) <thread_address_space>: Delete.
4808 (target_thread_address_space): Delete.
4809 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
4810 pointers directly.
4811 (delete_thread_1, delete_thread, delete_thread_silent): Take a
4812 thread pointer instead of a ptid_t. Adjust all callers.
4813 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
4814 (first_thread_of_process): Delete, replaced by ...
4815 (first_thread_of_inferior): ... this new function. All callers
4816 adjusted.
4817 (any_thread_of_process): Rename to ...
4818 (any_thread_of_inferior): ... this, and take an inferior pointer.
4819 (any_live_thread_of_process): Rename to ...
4820 (any_live_thread_of_inferior): ... this, and take an inferior
4821 pointer.
4822 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4823 (value_in_thread_stack_temporaries)
4824 (get_last_thread_stack_temporary): Take a thread pointer instead
4825 of a ptid_t. Adjust all callers.
4826 (thread_info::set_running): New.
4827 (validate_registers_access): Use inferior_thread.
4828 (can_access_registers_ptid): Rename to ...
4829 (can_access_registers_thread): ... this, and take a thread
4830 pointer.
4831 (print_thread_info_1): Adjust to compare thread pointers instead
4832 of ptids.
4833 (switch_to_no_thread, switch_to_thread): Make extern.
4834 (scoped_restore_current_thread::~scoped_restore_current_thread):
4835 Use m_thread pointer directly.
4836 (scoped_restore_current_thread::scoped_restore_current_thread):
4837 Use inferior_thread.
4838 (thread_command): Use thread pointer directly.
4839 (thread_num_make_value_helper): Use inferior_thread.
4840 * top.c (execute_command): Use inferior_thread.
4841 * tui/tui-interp.c: Include "inferior.h".
4842 * varobj.c (varobj_create): Use inferior_thread.
4843 (value_of_root_1): Use find_thread_global_id instead of
4844 global_thread_id_to_ptid.
4845
33bab475
AH
48462018-06-21 Alan Hayward <alan.hayward@arm.com>
4847
4848 * regcache.c (readable_regcache::read_part): Avoid memcpy when
4849 possible.
4850 (regcache::write_part): Likewise.
4851 (readable_regcache::cooked_read_part): Update comment.
4852 (readable_regcache::cooked_write_part): Likewise.
4853 * regcache.h: (readable_regcache::read_part): Likewise.
4854 (regcache::write_part): Likewise.
4855
8363f9d5
RB
48562018-06-21 Richard Bunt <richard.bunt@arm.com>
4857 Dirk Schubert <dirk.schubert@arm.com>
4858
4859 * aarch64-linux-nat.c (post_attach): New.
4860 (aarch64_linux_nat_target::post_attach): Override post_attach to
4861 record the number of hardware debug registers.
4862
0d0b0ea2
TT
48632018-06-20 Tom Tromey <tom@tromey.com>
4864
4865 * python/py-param.c (add_setshow_generic): Make parameters const.
4866 (parmpy_init): Update.
4867
302abd6e
SM
48682018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
4869
4870 * regcache.h (regcache_cooked_read_ftype): Rename to...
4871 (register_read_ftype): ...this, change type to function_view.
4872 (class reg_buffer) <save>: Remove src parameter.
4873 (readonly_detached_regcache) <readonly_detached_regcache>: Make
4874 parameter non-const in first overload. Remove src parameter in
4875 second overload.
4876 * regcache.c (do_cooked_read): Remove.
4877 (readonly_detached_regcache::readonly_detached_regcache): Make
4878 parameter non-const, adjust call to other constructor.
4879 (reg_buffer::save): Remove src parameter.
4880 * frame.c (do_frame_register_read): Remove.
4881 (frame_save_as_regcache): Use lambda function.
4882 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
4883 parameter to ppu2spu_data *.
4884 (ppu2spu_sniffer): Use lambda function.
4885
19f3f25f
SM
48862018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
4887
4888 * record-full.c (record_full_target::insert_breakpoint): Remove
4889 "struct" keyword, add const.
4890
d0ac1c44
SM
48912018-06-19 Simon Marchi <simon.marchi@ericsson.com>
4892
4893 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
4894 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
4895 * configure.ac: Remove AC_PREREQ, add missing quoting.
4896 * gnulib/configure.ac: Modernize usage of
4897 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
4898 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
4899 (AUTOMAKE_VERSION): Bump to 1.15.1.
4900 * configure: Re-generate.
4901 * config.in: Re-generate.
4902 * aclocal.m4: Re-generate.
4903 * gnulib/aclocal.m4: Re-generate.
4904 * gnulib/config.in: Re-generate.
4905 * gnulib/configure: Re-generate.
4906 * gnulib/import/Makefile.in: Re-generate.
4907
6ae50267
PA
49082018-06-19 Pedro Alves <palves@redhat.com>
4909
4910 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
4911 (lookup_minimal_symbol_by_pc_section): ... here with
4912 gdb_assert_not_reached added.
4913
61b04dd0
PA
49142018-06-19 Pedro Alves <palves@redhat.com>
4915
4916 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
4917 parameter with a block parameter. Compare location's block symbol
4918 with the frame's block instead of addresses.
4919 (skip_inline_frames): Pass the current block instead of the
4920 frame's address. Break out as soon as we determine the frame
4921 should not be skipped.
4922
f709fabb
TT
49232018-06-18 Tom Tromey <tom@tromey.com>
4924
4925 * solib-aix.c (solib_aix_get_section_offsets): Return
4926 unique_xmalloc_ptr.
4927 (solib_aix_solib_create_inferior_hook): Update.
4928
668eb2f0
TT
49292018-06-18 Tom Tromey <tom@tromey.com>
4930
4931 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
4932
309822ca
TT
49332018-06-18 Tom Tromey <tom@tromey.com>
4934
4935 * solib-frv.c (frv_relocate_main_executable): Use
4936 unique_xmalloc_ptr.
4937 * solib-dsbt.c (dsbt_relocate_main_executable): Use
4938 unique_xmalloc_ptr.
4939
06424eac
TT
49402018-06-18 Tom Tromey <tom@tromey.com>
4941
4942 * objfiles.h (inhibit_section_map_updates): Update.
4943 (resume_section_map_updates, resume_section_map_updates_cleanup):
4944 Remove.
4945 * solib-svr4.c (svr4_handle_solib_event): Update.
4946 * objfiles.c (inhibit_section_map_updates): Return
4947 scoped_restore_tmpl<int>.
4948 (resume_section_map_updates, resume_section_map_updates_cleanup):
4949 Remove.
4950
b4be9fad
TT
49512018-06-18 Tom Tromey <tom@tromey.com>
4952
4953 * valprint.h (read_string): Update.
4954 * valprint.c (read_string): Change type of "buffer".
4955 (val_print_string): Update.
4956 * python/py-value.c (valpy_string): Update.
4957 * language.h (struct language_defn) <la_get_string>: Change
4958 type of "buffer".
4959 (default_get_string, c_get_string): Update.
4960 * language.c (default_get_string): Change type of "buffer".
4961 * guile/scm-value.c (gdbscm_value_to_string): Update.
4962 * c-lang.c (c_get_string): Change type of "buffer".
4963
3f0dbd67
TT
49642018-06-18 Tom Tromey <tom@tromey.com>
4965
4966 * ser-mingw.c (struct pipe_state_destroyer): New.
4967 (pipe_state_up): New typedef.
4968 (cleanup_pipe_state): Remove.
4969 (pipe_windows_open): Use pipe_state_up. Don't release argv.
4970
69d340c6
TT
49712018-06-18 Tom Tromey <tom@tromey.com>
4972
4973 * rust-lang.h (rust_yyerror): Don't declare.
4974 * rust-lang.c (rust_language_defn): Update.
4975 * rust-exp.y (yyerror): Now static.
4976 * parse.c (parse_exp_in_context_1): Update.
4977 * p-lang.h (p_yyerror): Don't declare.
4978 * p-lang.c (p_language_defn): Update.
4979 * p-exp.y (yyerror): Now static.
4980 * opencl-lang.c (opencl_language_defn): Update.
4981 * objc-lang.c (objc_language_defn): Update.
4982 * m2-lang.h (m2_yyerror): Don't declare.
4983 * m2-lang.c (m2_language_defn): Update.
4984 * m2-exp.y (yyerror): Now static.
4985 * language.h (struct language_defn) <la_error>: Remove.
4986 * language.c (unk_lang_error): Remove.
4987 (unknown_language_defn, auto_language_defn): Remove.
4988 * go-lang.h (go_yyerror): Don't declare.
4989 * go-lang.c (go_language_defn): Update.
4990 * go-exp.y (yyerror): Now static.
4991 * f-lang.h (f_yyerror): Don't declare.
4992 * f-lang.c (f_language_defn): Update.
4993 * f-exp.y (yyerror): Now static.
4994 * d-lang.h (d_yyerror): Don't declare.
4995 * d-lang.c (d_language_defn): Update.
4996 * d-exp.y (yyerror): Now static.
4997 * c-lang.h (c_yyerror): Don't declare.
4998 * c-lang.c (c_language_defn, cplus_language_defn)
4999 (asm_language_defn, minimal_language_defn): Update.
5000 * c-exp.y (yyerror): Now static.
5001 * ada-lang.h (ada_yyerror): Don't declare.
5002 * ada-lang.c (ada_language_defn): Update.
5003 * ada-exp.y (yyerror): Now static.
5004
e9902bfc
AH
50052018-06-18 Alan Hayward <alan.hayward@arm.com>
5006
5007 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
5008 (store_sveregs_to_thread): Likewise.
5009 (aarch64_linux_fetch_inferior_registers): Check for SVE.
5010 (aarch64_linux_store_inferior_registers): Likewise.
5011 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
5012 function.
5013 (aarch64_sve_regs_copy_to_regcache): Likewise.
5014 (aarch64_sve_regs_copy_from_regcache): Likewise.
5015 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
5016 declaration.
5017 (aarch64_sve_regs_copy_to_regcache): Likewise.
5018 (aarch64_sve_regs_copy_from_regcache): Likewise.
5019 (sve_context): Structure from Linux headers.
5020 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
5021 (SVE_SIG_ZREG_SIZE): Likewise.
5022 (SVE_SIG_PREG_SIZE): Likewise.
5023 (SVE_SIG_FFR_SIZE): Likewise.
5024 (SVE_SIG_REGS_OFFSET): Likewise.
5025 (SVE_SIG_ZREGS_OFFSET): Likewise.
5026 (SVE_SIG_ZREG_OFFSET): Likewise.
5027 (SVE_SIG_ZREGS_SIZE): Likewise.
5028 (SVE_SIG_PREGS_OFFSET): Likewise.
5029 (SVE_SIG_PREG_OFFSET): Likewise.
5030 (SVE_SIG_PREGS_SIZE): Likewise.
5031 (SVE_SIG_FFR_OFFSET): Likewise.
5032 (SVE_SIG_REGS_SIZE): Likewise.
5033 (SVE_SIG_CONTEXT_SIZE): Likewise.
5034 (SVE_PT_REGS_MASK): Likewise.
5035 (SVE_PT_REGS_FPSIMD): Likewise.
5036 (SVE_PT_REGS_SVE): Likewise.
5037 (SVE_PT_VL_INHERIT): Likewise.
5038 (SVE_PT_VL_ONEXEC): Likewise.
5039 (SVE_PT_REGS_OFFSET): Likewise.
5040 (SVE_PT_FPSIMD_OFFSET): Likewise.
5041 (SVE_PT_FPSIMD_SIZE): Likewise.
5042 (SVE_PT_SVE_ZREG_SIZE): Likewise.
5043 (SVE_PT_SVE_PREG_SIZE): Likewise.
5044 (SVE_PT_SVE_FFR_SIZE): Likewise.
5045 (SVE_PT_SVE_FPSR_SIZE): Likewise.
5046 (SVE_PT_SVE_FPCR_SIZE): Likewise.
5047 (__SVE_SIG_TO_PT): Likewise.
5048 (SVE_PT_SVE_OFFSET): Likewise.
5049 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
5050 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
5051 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
5052 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
5053 (SVE_PT_SVE_PREG_OFFSET): Likewise.
5054 (SVE_PT_SVE_PREGS_SIZE): Likewise.
5055 (SVE_PT_SVE_FFR_OFFSET): Likewise.
5056 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
5057 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
5058 (SVE_PT_SVE_SIZE): Likewise.
5059 (SVE_PT_SIZE): Likewise.
5060 (HAS_SVE_STATE): New define.
5061
17a1cc89
AH
50622018-06-18 Alan Hayward <alan.hayward@arm.com>
5063
5064 * nat/aarch64-sve-linux-sigcontext.h: New file.
5065 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
5066 new files.
5067 (SVE_VQ_MIN): Likewise.
5068 (SVE_VQ_MAX): Likewise.
5069 (SVE_VL_MIN): Likewise.
5070 (SVE_VL_MAX): Likewise.
5071 (SVE_NUM_ZREGS): Likewise.
5072 (SVE_NUM_PREGS): Likewise.
5073 (sve_vl_valid): Likewise.
5074 (struct user_sve_header): Likewise.
5075
7010835a
AB
50762018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
5077 Richard Bunt <Richard.Bunt@arm.com>
5078
5079 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
5080 was requested by GDB.
5081
479b3ef4
TV
50822018-06-15 Tom de Vries <tdevries@suse.de>
5083
5084 * MAINTAINERS (Write After Approval): Add Tom de Vries.
5085
8199b8f4
SM
50862018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
5087
5088 * gnulib/update-gnulib.sh: Print expected versions of
5089 autoconf/aclocal.
5090
55c748a1
SM
50912018-06-14 Simon Marchi <simon.marchi@ericsson.com>
5092
5093 * arch-utils.c (default_type_align): Use type_length_units.
5094 * gdbtypes.c (type_align): Use type_length_units.
5095
87a8eca7
PW
50962018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5097
5098 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
5099 of 'define' command.
5100
5d9a0608
TV
51012018-06-14 Tom de Vries <tdevries@suse.de>
5102
5103 PR cli/22573
5104 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
5105 get_no_prettyformat_print_options.
5106
ab89b5a5
SM
51072018-06-13 Simon Marchi <simon.marchi@ericsson.com>
5108
5109 * sparc-nat.h: Include target.h.
5110 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
5111 <fetch_registers>: Remove this argument in function call.
5112 <store_registers>: Remove this argument in function call, remove
5113 extra semicolon.
5114 <low_forget_process>: Call sparc64_forget_process instead of
5115 sparc_forget_process.
5116
62c808ae
RO
51172018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5118
5119 * procfs.c (_initialize_procfs): Use add_inf_child_target.
5120 (procfs_target::make_corefile_notes): Adjust to new
5121 target_read_alloc return type.
5122
1840d81a
AB
51232018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5124 Stephen Roberts <stephen.roberts@arm.com>
5125
5126 PR gdb/22882
5127 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
5128 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
5129 Move should_notify_stop local into more inner scope.
5130
9516f85a
AB
51312018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5132 Stephen Roberts <stephen.roberts@arm.com>
5133
5134 PR gdb/22882
5135 * infrun.c (resume_1): Add call to mark_async_event_handler.
5136
defd2172
AB
51372018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5138
5139 * infrun.c (do_target_wait): Change old version of $pc printed.
5140
7b23e087
SM
51412018-06-11 Simon Marchi <simon.marchi@ericsson.com>
5142
5143 * dwarf2read.c (read_index_from_section): Rename to...
5144 (read_gdb_index_from_section): ... this, update all callers.
5145 (dwarf2_read_index): Rename to...
5146 (dwarf2_read_gdb_index): ... this, update all callers.
5147
69c67a0b
JDA
51482018-06-11 John David Anglin <danglin@gcc.gnu.org>
5149
5150 * gdb/hppa-linux-nat.c
5151 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
5152 hppa_linux_nat_target::fetch_registers.
5153
65d4cada
AH
51542018-06-11 Alan Hayward <alan.hayward@arm.com>
5155
5156 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
5157 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
5158 (AARCH64_DWARF_SVE_FFR): Likewise.
5159 (AARCH64_DWARF_SVE_P0): Likewise.
5160 (AARCH64_DWARF_SVE_Z0): Likewise.
5161
f868386e
AH
51622018-06-11 Alan Hayward <alan.hayward@arm.com>
5163
5164 * common/common-regcache.h (raw_compare): New function.
5165 * regcache.c (regcache::raw_compare): Likewise.
5166 * regcache.h (regcache::raw_compare): New declaration.
5167
9c861883
AH
51682018-06-11 Alan Hayward <alan.hayward@arm.com>
5169
5170 * common/common-regcache.h (reg_buffer_common): New structure.
5171 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
5172 (reg_buffer::raw_supply): Likewise.
5173 (reg_buffer::raw_supply_integer): Likewise.
5174 (reg_buffer::raw_supply_zeroed): Likewise.
5175 (reg_buffer::raw_collect): Likewise.
5176 (reg_buffer::raw_collect_integer): Likewise.
5177 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
5178 (reg_buffer::raw_supply): Likewise.
5179 (reg_buffer::raw_supply_integer): Likewise.
5180 (reg_buffer::raw_supply_zeroed): Likewise.
5181 (reg_buffer::raw_collect): Likewise.
5182 (reg_buffer::raw_collect_integer): Likewise.
5183
953edf2b
TT
51842018-06-10 Tom Tromey <tom@tromey.com>
5185
5186 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
5187 (class remote_state) <stop_reply_queue>: Now std::vector.
5188 (remote_state::~remote_state)
5189 (remote_target::stop_reply_queue_length): Update.
5190 (struct queue_iter_param, remove_child_of_pending_fork)
5191 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
5192 (check_pending_event_prevents_wildcard_vcont_callback)
5193 (remove_stop_reply_for_inferior)
5194 (remove_stop_reply_of_remote_state)
5195 (remote_notif_remove_once_on_match)
5196 (stop_reply_match_ptid_and_ws)
5197 (remote_kill_child_of_pending_fork): Remove.
5198 (remote_target::remove_new_fork_children)
5199 (remote_target::check_pending_events_prevent_wildcard_vcont)
5200 (remote_target::discard_pending_stop_replies)
5201 (remote_target::discard_pending_stop_replies_in_queue)
5202 (remote_target::remote_notif_remove_queued_reply)
5203 (remote_target::queued_stop_reply)
5204 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
5205 (remote_target::wait, remote_target::kill_new_fork_children)
5206 (remote_target::async): Update.
5207
1ddbba9d
TT
52082018-06-10 Tom Tromey <tom@tromey.com>
5209
5210 * record-full.c (record_full_arch_list_cleanups): Remove.
5211 (record_full_message): Use try/catch.
5212 (record_full_wait_cleanups): Remove.
5213 (record_full_wait_1): Use try/catch.
5214 (record_full_restore): Likewise.
5215
219605fd
TT
52162018-06-10 Tom Tromey <tom@tromey.com>
5217
5218 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
5219 declare VEC. Add constructor.
5220 <in_target_beneath>: Now bool.
5221 (record_full_breakpoints): Now a std::vector, static.
5222 (record_full_sync_record_breakpoints)
5223 (record_full_init_record_breakpoints)
5224 (record_full_target::insert_breakpoint)
5225 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
5226
71b73764
SM
52272018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
5228
5229 * dwarf2read.c (process_cu_includes): Remove struct keyword.
5230 * serial.c (serial_interface_lookup): Remove struct keyword.
5231
4360561f
TT
52322018-06-10 Tom Tromey <tom@tromey.com>
5233
5234 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
5235 method.
5236 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
5237 a method.
5238 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
5239 method.
5240 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
5241 "beneath" as a method.
5242 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
5243 Use "beneath" as a method.
5244
d14b92bf
TT
52452018-06-10 Tom Tromey <tom@tromey.com>
5246
5247 * tracefile.c (struct trace_file_writer_deleter): New.
5248 <operator()>: Rename from trace_file_writer_xfree.
5249 (trace_file_writer_up): New typedef.
5250 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
5251
835dcf92
SM
52522018-06-09 Simon Marchi <simon.marchi@ericsson.com>
5253
5254 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
5255 <m_registers, m_register_status>: Change type to
5256 std::unique_ptr.
5257 * regcache.c (reg_buffer::reg_buffer): Use new instead of
5258 XCNEWVEC.
5259
aac0d564
SM
52602018-06-09 Simon Marchi <simon.marchi@ericsson.com>
5261
5262 * common/common-regcache.h (enum register_status): Add
5263 underlying type "signed char".
5264 * regcache.h (reg_buffer) <m_register_status>: Change type to
5265 register_status *.
5266 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
5267 register_status instead of signed char.
5268 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
5269 (reg_buffer::get_register_status): Remove cast.
5270 (readable_regcache::raw_read): Remove cast.
5271 (readable_regcache::cooked_read): Remove cast.
5272
77ad7394
TT
52732018-06-09 Tom Tromey <tom@tromey.com>
5274
5275 * source.c (reverse_search_command, forward_search_command): Use
5276 scoped_fd.
5277
191cca63
TT
52782018-06-09 Tom Tromey <tom@tromey.com>
5279
5280 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
5281 (serial_ops_list): Now static, std::vector.
5282 (serial_interface_lookup, serial_add_interface): Update.
5283
c5d0225d
TT
52842018-06-09 Tom Tromey <tom@tromey.com>
5285
5286 * dwarf2read.c (process_cu_includes): Update.
5287 (process_full_comp_unit): Update.
5288 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
5289 std::vector.
5290
aeab5128
PK
52912018-06-08 Paul Koning <paul_koning@dell.com>
5292
5293 PR gdb/23252
5294
5295 * python/python.c (do_start_initialization):
5296 Avoid call to internal Python API.
5297 (init__gdb_module): New function.
5298
5045b3d7
GB
52992018-06-08 Gary Benson <gbenson@redhat.com>
5300
5301 * linux-thread-db.c (valprint.h): New include.
5302 (struct check_thread_db_info): New structure.
5303 (check_thread_db_on_load, tdb_testinfo): New static globals.
5304 (check_thread_db, check_thread_db_callback): New functions.
5305 (try_thread_db_load_1): Run integrity checks if requested.
5306 (maintenance_check_libthread_db): New function.
5307 (_initialize_thread_db): Register "maint check libthread-db"
5308 and "maint set/show check-libthread-db".
5309 * NEWS: Mention the above new commands.
5310
2f4f025f
TT
53112018-06-08 Tom Tromey <tom@tromey.com>
5312
5313 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
5314 now a method.
5315
343b0027
TT
53162018-06-08 Tom Tromey <tom@tromey.com>
5317
5318 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
5319
8dcc53b3
TT
53202018-06-08 Tom Tromey <tom@tromey.com>
5321
5322 * common/btrace-common.h (struct btrace_data): Add constructor,
5323 destructor, move assignment operator.
5324 <empty, clear, fini>: New methods.
5325 <format>: Initialize.
5326 (btrace_data_init, btrace_data_fini, btrace_data_clear)
5327 (btrace_data_empty): Don't declare.
5328 * common/btrace-common.c (btrace_data_init): Remove.
5329 (btrace_data::fini): Rename from btrace_data_fini.
5330 (btrace_data::empty): Rename from btrace_data_empty.
5331 (btrace_data::clear): Rename from btrace_data_clear. Return
5332 bool.
5333 * btrace.h (make_cleanup_btrace_data): Don't declare.
5334 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
5335 (parse_xml_btrace): Update.
5336 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
5337 (maint_btrace_clear_packet_history_cmd): Update.
5338
a1740ee1
PA
53392018-06-07 Pedro Alves <palves@redhat.com>
5340
5341 * target.h (target_ops) <beneath>: Now a method. All references
5342 updated.
5343 (class target_stack): New.
5344 * target.c (g_target_stack): New.
5345 (g_current_top_target): Delete.
5346 (current_top_target): Get the top target out of g_target_stack.
5347 (target_stack::push, target_stack::unpush): New.
5348 (push_target, unpush_target): Reimplement.
5349 (target_is_pushed): Reimplement in terms of g_target_stack.
5350 (target_ops::beneath, target_stack::find_beneath): New.
5351
d6ca69cd
PA
53522018-06-07 Pedro Alves <palves@redhat.com>
5353
5354 * target.h (find_target_beneath): Delete declaration.
5355 * target.c (find_target_beneath): Delete definition.
5356 * aix-thread.c: All callers of find_target_beneath adjusted to
5357 call target_ops::beneath instead.
5358 * bsd-uthread.c: Likewise.
5359 * linux-thread-db.c: Likewise.
5360 * ravenscar-thread.c: Likewise.
5361 * sol-thread.c: Likewise.
5362 * spu-multiarch.c: Likewise.
5363
b6a8c27b
PA
53642018-06-07 Pedro Alves <palves@redhat.com>
5365
5366 * target.h (target_ops) <beneath>: Now a method. All references
5367 updated.
5368 (target_ops) <m_beneath>: New.
5369 * target.c (target_ops::beneath): New.
5370 * corelow.c: Adjust all references to target_ops::beneath.
5371 * linux-thread-db.c: Likewise.
5372 * make-target-delegates: Likewise.
5373 * record-btrace.c: Likewise.
5374 * record-full.c: Likewise.
5375 * remote.c: Likewise.
5376 * target.c: Likewise.
5377 * target-delegates.c: Regenerate.
5378
8b88a78e
PA
53792018-06-07 Pedro Alves <palves@redhat.com>
5380
5381 * target.h (target_stack): Delete.
5382 (current_top_target): Declare function.
5383 * target.c (target_stack): Delete.
5384 (g_current_top_target): New.
5385 (current_top_target): New function.
5386 * auxv.c: Use current_top_target instead of target_stack
5387 throughout.
5388 * avr-tdep.c: Likewise.
5389 * breakpoint.c: Likewise.
5390 * corefile.c: Likewise.
5391 * elfread.c: Likewise.
5392 * eval.c: Likewise.
5393 * exceptions.c: Likewise.
5394 * frame.c: Likewise.
5395 * gdbarch-selftests.c: Likewise.
5396 * gnu-v3-abi.c: Likewise.
5397 * ia64-tdep.c: Likewise.
5398 * ia64-vms-tdep.c: Likewise.
5399 * infcall.c: Likewise.
5400 * infcmd.c: Likewise.
5401 * infrun.c: Likewise.
5402 * linespec.c: Likewise.
5403 * linux-tdep.c: Likewise.
5404 * minsyms.c: Likewise.
5405 * ppc-linux-nat.c: Likewise.
5406 * ppc-linux-tdep.c: Likewise.
5407 * procfs.c: Likewise.
5408 * regcache.c: Likewise.
5409 * remote.c: Likewise.
5410 * rs6000-tdep.c: Likewise.
5411 * s390-linux-nat.c: Likewise.
5412 * s390-tdep.c: Likewise.
5413 * solib-aix.c: Likewise.
5414 * solib-darwin.c: Likewise.
5415 * solib-dsbt.c: Likewise.
5416 * solib-spu.c: Likewise.
5417 * solib-svr4.c: Likewise.
5418 * solib-target.c: Likewise.
5419 * sparc-tdep.c: Likewise.
5420 * sparc64-tdep.c: Likewise.
5421 * spu-tdep.c: Likewise.
5422 * symfile.c: Likewise.
5423 * symtab.c: Likewise.
5424 * target-descriptions.c: Likewise.
5425 * target-memory.c: Likewise.
5426 * target.c: Likewise.
5427 * target.h: Likewise.
5428 * tracefile-tfile.c: Likewise.
5429 * tracepoint.c: Likewise.
5430 * valops.c: Likewise.
5431 * valprint.c: Likewise.
5432 * value.c: Likewise.
5433 * windows-tdep.c: Likewise.
5434 * mi/mi-main.c: Likewise.
5435
c7110220
TT
54362018-06-07 Tom Tromey <tom@tromey.com>
5437
5438 * valprint.h (build_address_symbolic): Declare.
5439 * printcmd.c (print_address_symbolic): Update.
5440 (build_address_symbolic): Change "name" and "filename" to
5441 std::string.
5442 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5443 Update.
5444 * defs.h (build_address_symbolic): Remove declaration.
5445
63bad7b6
AH
54462018-06-07 Alan Hayward <alan.hayward@arm.com>
5447
5448 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
5449 (aarch64_vnv_type): Add function.
5450 (aarch64_pseudo_register_name): Add V regs for SVE.
5451 (aarch64_pseudo_register_type): Likewise.
5452 (aarch64_pseudo_register_reggroup_p): Likewise.
5453 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
5454 (aarch64_pseudo_read_value): Add V regs for SVE.
5455 (aarch64_pseudo_write_2): Use V0 offset for SVE
5456 (aarch64_pseudo_write): Add V regs for SVE.
5457 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
5458
13e3c608
SDJ
54592018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
5460
5461 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
5462 (sve_vl_from_vq): Likewise.
5463
c61b06a1
TT
54642018-06-05 Tom Tromey <tom@tromey.com>
5465
5466 * cli/cli-cmds.c (show_version): Update.
5467 * top.c (print_gdb_version): Add "interactive" parameter.
5468 Update.
5469 * main.c (captured_main_1): Update.
5470 * top.h (print_gdb_version): Add "interactive" parameter and a
5471 comment.
5472
115f7325
DM
54732018-06-05 David Malcolm <dmalcolm@redhat.com>
5474
5475 * common/enum-flags.h: Add trailing semicolon to example in
5476 comment.
5477
eb6af809
TT
54782018-06-05 Tom Tromey <tom@tromey.com>
5479
5480 PR cli/12326:
5481 * NEWS: Add entry about pager.
5482 * utils.c (pagination_disabled_for_command): New global.
5483 (prompt_for_continue): Allow "c" response to prompt.
5484 (reinitialize_more_filter): Clear
5485 pagination_disabled_for_command.
5486 (fputs_maybe_filtered): Check pagination_disabled_for_command.
5487
54d343a2
TT
54882018-06-04 Tom Tromey <tom@tromey.com>
5489
5490 * ada-lang.h (ada_lookup_symbol_list): Update.
5491 * ada-lang.c (resolve_subexp): Update.
5492 (symbols_are_identical_enums): Change type of syms. Remove nsyms
5493 parameter.
5494 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
5495 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
5496 results parameter to std::vector.
5497 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
5498 Update.
5499 * ada-exp.y (block_lookup): Update.
5500 (select_possible_type_sym): Change type of syms. Remove nsyms
5501 parameter.
5502 (write_var_or_type, write_name_assoc): Update.
5503
178d6a63
JB
55042018-06-04 Joel Brobecker <brobecker@adacore.com>
5505
5506 * windows-nat.c (windows_nat_target::xfer_partial): Return
5507 TARGET_XFER_E_IO if we need to delegate to the target beneath
5508 but BENEATH is NULL.
5509
baf00c2d
SM
55102018-06-04 Simon Marchi <simon.marchi@ericsson.com>
5511
5512 * Makefile.in (config.status): Add configure.nat as a
5513 dependency.
5514
214b073c
TT
55152018-06-04 Tom Tromey <tom@tromey.com>
5516
5517 * cp-name-parser.y (cpname_state): Add method declarations.
5518 (HANDLE_QUAL): Update.
5519 (cpname_state::d_grab, cpname_state::fill_comp)
5520 (cpname_state::make_operator, cpname_state::make_dtor)
5521 (cpname_state::make_builtin_type, cpname_state::make_name)
5522 (cpname_state::d_qualify, cpname_state::d_int_type)
5523 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
5524 (%union): Move earlier.
5525
62b74cb8
AH
55262018-06-04 Alan Hayward <alan.hayward@arm.com>
5527
5528 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
5529
3c5cd5c3
AH
55302018-06-04 Alan Hayward <alan.hayward@arm.com>
5531
5532 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
5533 (aarch64_pseudo_write_1): Likewise.
5534 (aarch64_pseudo_read_value): Use helper.
5535 (aarch64_pseudo_write): Likewise.
5536
59f413d5
PA
55372018-06-04 Pedro Alves <palves@redhat.com>
5538
5539 * darwin-nat.c (darwin_ops): Delete.
5540 (darwin_attach_pid): Use get_native_target.
5541
1332a140
AH
55422018-06-04 Alan Hayward <alan.hayward@arm.com>
5543
5544 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
5545 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
5546
ba2d2bb2
AH
55472018-06-04 Alan Hayward <alan.hayward@arm.com>
5548
5549 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
5550 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
5551 (aarch64_gdbarch_init): Check for SVE.
5552 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
5553
55542018-06-04 Alan Hayward <alan.hayward@arm.com>
39bfb937
AH
5555
5556 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
5557 * aarch64-tdep.h (aarch64_read_description): Likewise.
5558 * arch/aarch64.c (aarch64_create_target_description): Likewise.
5559 * arch/aarch64.h (aarch64_create_target_description): Likewise.
5560 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
5561 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
5562 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
5563
41c60b4b
SM
55642018-06-02 Simon Marchi <simon.marchi@ericsson.com>
5565
5566 * value.c (value_fetch_lazy_bitfield): New.
5567 (value_fetch_lazy_memory): New.
5568 (value_fetch_lazy_register): New.
5569 (value_fetch_lazy): Factor out to smaller functions.
5570
7b640f72
TT
55712018-06-01 Tom Tromey <tom@tromey.com>
5572
5573 * cp-name-parser.y (backslashable, represented): Now const.
5574
98e69eb3
TT
55752018-06-01 Tom Tromey <tom@tromey.com>
5576
5577 * cp-name-parser.y: Include parser-defs.h.
5578 (parser_fprintf): Remove declaration.
5579
49265499
TT
55802018-06-01 Tom Tromey <tom@tromey.com>
5581
5582 * cp-name-parser.y: Use %pure-parser, %lex-param, and
5583 %parse-param.
5584 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
5585 (global_result): Remove globals.
5586 (struct cpname_state): New.
5587 (yyparse): Don't declare.
5588 (yylex, yyerror): Move declarations after %union.
5589 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
5590 (make_name): Add state parameter.
5591 Update all callers.
5592 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
5593 parameter.
5594 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
5595 Update.
5596 (yylex): Add lvalp, state parameters.
5597 (yyerror): Add state parameter.
5598 (cp_demangled_name_to_comp): Update.
5599
55b6c984
TT
56002018-06-01 Tom Tromey <tom@tromey.com>
5601
5602 * cp-name-parser.y (parser_fprintf): Declare.
5603 (GDB_YY_REMAP_PREFIX): Define.
5604 Include yy-remap.h. Don't redefine yy* identifiers.
5605
3513a6bb
TT
56062018-06-01 Tom Tromey <tom@tromey.com>
5607
5608 * python/py-type.c (typy_legacy_template_argument): Update.
5609 * cp-support.h (cp_demangled_name_to_comp): Update.
5610 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
5611 parameter to be a "std::string *".
5612 (main): Update.
5613
e9cb46ab
L
56142018-06-01 H.J. Lu <hongjiu.lu@intel.com>
5615
5616 * ada-lex.l: Include "diagnostics.h" instead of
5617 "common/diagnostics.h".
5618 * unittests/environ-selftests.c: Likewise.
5619 * common/diagnostics.h: Moved to ../include.
5620
8e817061
JB
56212018-06-01 Joel Brobecker <brobecker@adacore.com>
5622
5623 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
5624 to language_mode_manual while calling breakpoint_re_set_one.
5625
a737d952
TT
56262018-06-01 Tom Tromey <tom@tromey.com>
5627
5628 * valops.c (value_cast_structs, destructor_name_p): Update.
5629 * symtab.c (gdb_mangle_name): Update.
5630 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
5631 Update.
5632 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
5633 (pascal_object_print_value_fields, pascal_object_print_value):
5634 Update.
5635 * p-typeprint.c (pascal_type_print_derivation_info): Update.
5636 * linespec.c (find_methods): Update.
5637 * gdbtypes.h (type_name_no_tag): Remove.
5638 (type_name_or_error): Rename from type_name_no_tag_or_error.
5639 * gdbtypes.c (type_name_no_tag): Remove.
5640 (type_name_or_error): Rename from type_name_no_tag_or_error.
5641 (lookup_struct_elt_type, check_typedef): Update.
5642 * expprint.c (print_subexp_standard): Update.
5643 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
5644 * d-namespace.c (d_lookup_nested_symbol): Update.
5645 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
5646 (cp_print_class_member): Update.
5647 * cp-namespace.c (cp_lookup_nested_symbol): Update.
5648 * completer.c (add_struct_fields): Update.
5649 * c-typeprint.c (cp_type_print_derivation_info)
5650 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
5651 Update.
5652 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
5653 (ada_prefer_type, ada_is_exception_sym): Update.
5654
e86ca25f
TT
56552018-06-01 Tom Tromey <tom@tromey.com>
5656
5657 * valops.c (enum_constant_from_type, value_namespace_elt)
5658 (value_maybe_namespace_elt): Update.
5659 * valarith.c (find_size_for_pointer_math): Update.
5660 * target-descriptions.c (make_gdb_type): Update.
5661 * symmisc.c (print_symbol): Update.
5662 * stabsread.c (define_symbol, read_type)
5663 (complain_about_struct_wipeout, add_undefined_type)
5664 (cleanup_undefined_types_1): Update.
5665 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
5666 (rust_range_type_p, val_print_struct, rust_print_struct_def)
5667 (rust_internal_print_type, rust_composite_type)
5668 (rust_evaluate_funcall, rust_evaluate_subexp)
5669 (rust_inclusive_range_type_p): Update.
5670 * python/py-type.c (typy_get_tag): Update.
5671 * p-typeprint.c (pascal_type_print_base): Update.
5672 * mdebugread.c (parse_symbol, parse_type): Update.
5673 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
5674 Update.
5675 * guile/scm-type.c (gdbscm_type_tag): Update.
5676 * go-lang.c (sixg_string_p): Update.
5677 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
5678 Update.
5679 * gdbtypes.h (struct main_type) <tag_name>: Remove.
5680 (TYPE_TAG_NAME): Remove.
5681 * gdbtypes.c (type_name_no_tag): Simplify.
5682 (check_typedef, check_types_equal, recursive_dump_type)
5683 (copy_type_recursive, arch_composite_type): Update.
5684 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
5685 in summary mode when needed.
5686 * eval.c (evaluate_funcall): Update.
5687 * dwarf2read.c (fixup_go_packaging, read_structure_type)
5688 (process_structure_scope, read_enumeration_type)
5689 (read_namespace_type, read_module_type, determine_prefix): Update.
5690 * cp-support.c (inspect_type): Update.
5691 * coffread.c (process_coff_symbol, decode_base_type): Update.
5692 * c-varobj.c (c_is_path_expr_parent): Update.
5693 * c-typeprint.c (c_type_print_base_struct_union): Update.
5694 (c_type_print_base_1): Update. Print struct/class/union/enum in
5695 summary when using C language.
5696 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
5697 (gen_maybe_namespace_elt): Update.
5698 * ada-lang.c (ada_type_name): Simplify.
5699 (empty_record, ada_template_to_fixed_record_type_1)
5700 (template_to_static_fixed_type)
5701 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
5702
c1ec8cea
TT
57032018-06-01 Tom Tromey <tom@tromey.com>
5704
5705 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
5706 c_print_type.
5707 * c-typeprint.c (c_print_type_1): Add "language" parameter.
5708 (c_print_type): Update.
5709 (c_print_type): New overload.
5710 (c_type_print_varspec_prefix, c_type_print_args)
5711 (c_type_print_varspec_suffix, c_print_type_no_offsets)
5712 (c_type_print_base_struct_union, c_type_print_base_1)
5713 (cp_type_print_method_args): Add "language" parameter.
5714 (c_type_print_base): Update.
5715 * c-lang.h (c_print_type): Add new overload.
5716
bc8453a7
TT
57172018-06-01 Tom Tromey <tom@tromey.com>
5718
5719 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
5720 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
5721
739e8682
AH
57222018-06-01 Alan Hayward <alan.hayward@arm.com>
5723
5724 * aarch64-tdep.c (aarch64_sve_register_names): New const
5725 var.
5726 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
5727 (AARCH64_SVE_Z_REGS_NUM): New define.
5728 (AARCH64_SVE_P_REGS_NUM): Likewise.
5729 (AARCH64_SVE_NUM_REGS): Likewise.
5730
8a60efe7
UB
57312018-05-31 Uros Bizjak <ubizjak@gmail.com>
5732
5733 * nat/linux-ptrace.h [__alpha__]
5734 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
5735 definitions.
5736
4b2dfa9d
MR
57372018-05-31 Maciej W. Rozycki <macro@mips.com>
5738
5739 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
5740 the endianness selected.
5741 * NEWS: Document `set endian auto' mode operation update.
5742
122394f1
AH
57432018-05-31 Alan Hayward <alan.hayward@arm.com>
5744
5745 * Makefile.in: Add new header.
5746 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
5747 (sve_vl_from_vg): Likewise.
5748 (sve_vq_from_vl): Likewise.
5749 (sve_vl_from_vq): Likewise.
5750 (sve_vq_from_vg): Likewise.
5751 (sve_vg_from_vq): Likewise.
5752 * configure.nat: Add new c file.
5753 * nat/aarch64-sve-linux-ptrace.c: New file.
5754 * nat/aarch64-sve-linux-ptrace.h: New file.
5755
95228a0d
AH
57562018-05-31 Alan Hayward <alan.hayward@arm.com>
5757
5758 * aarch64-linux-nat.c (aarch64_linux_read_description):
5759 Add parmeter zero.
5760 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
5761 Likewise.
5762 * aarch64-tdep.c (tdesc_aarch64_list): Add.
5763 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
5764 (aarch64_gdbarch_init): Add parmeter zero.
5765 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
5766 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
5767 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
5768 parmeter.
5769 * doc/gdb.texinfo: Describe SVE feature
5770 * features/aarch64-sve.c: New file.
5771
5969f0db
OJ
57722018-05-31 Omair Javaid <omair.javaid@linaro.org>
5773
5774 PR gdb/23210
5775 * gdbarch.sh (significant_addr_bit): Default to zero when
5776 not set by target architecture.
5777 * gdbarch.c: Re-generated.
5778 * utils.c (address_significant): Update.
5779
61367c61
JB
57802018-05-30 Joel Brobecker <brobecker@adacore.com>
5781
5782 * stack.c (func_command): Remove trailing newline in call to error.
5783
34a79281
SM
57842018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5785
5786 * regcache.h (regcache_raw_collect): Remove, update callers to
5787 use regcache::raw_collect.
5788 * regcache.c (regcache_raw_collect): Remove.
5789
73e1c03f
SM
57902018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5791
5792 * regcache.h (regcache_raw_supply): Remove, update callers to
5793 use detached_regcache::raw_supply.
5794 * regcache.c (regcache_raw_supply): Remove.
5795
e4c4a59b
SM
57962018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5797
5798 * regcache.h (regcache_cooked_write_part): Remove, update
5799 callers to use regcache::cooked_write_part.
5800 * regcache.c (regcache_cooked_write_part): Remove.
5801
73bb0000
SM
58022018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5803
5804 * regcache.h (regcache_cooked_read_part): Remove, update callers
5805 to use readable_regcache::cooked_read_part.
5806 * regcache.c (regcache_cooked_read_part): Remove.
5807
46a45e9d
SM
58082018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5809
5810 * regcache.h (regcache_cooked_read_value): Remove, update
5811 callers to use readable_regcache::cooked_read_value.
5812 * regcache.c (regcache_cooked_read_value): Remove.
5813
b66f5587
SM
58142018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5815
5816 * regcache.h (regcache_cooked_write): Remove, update callers to
5817 use regcache::cooked_write.
5818 * regcache.c (regcache_cooked_write): Remove.
5819
6aa7d724
SM
58202018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5821
5822 * regcache.h (regcache_invalidate): Remove, update callers to
5823 use detached_regcache::invalidate instead.
5824 * regcache.c (regcache_invalidate): Remove.
5825
4f0420fd
SM
58262018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5827
5828 * regcache.h (regcache_raw_write_part): Remove, update callers
5829 to use regcache::raw_write_part instead.
5830 * regcache.c (regcache_raw_write_part): Remove.
5831
502fe83e
SM
58322018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5833
5834 * regcache.h (regcache_raw_read_part): Remove, update callers to
5835 use readable_regcache::raw_read_part instead.
5836 * regcache.c (regcache_raw_read_part): Remove.
5837
dca08e1f
SM
58382018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5839
5840 * regcache.h (regcache_cooked_read): Remove, update callers to
5841 use readable_regcache::cooked_read instead.
5842 * regcache.c (regcache_cooked_read): Remove.
5843
10eaee5f
SM
58442018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5845
5846 * regcache.h (regcache_raw_write): Remove, update callers to use
5847 regcache::raw_write instead.
5848 * regcache.c (regcache_raw_write): Remove.
5849
0b883586
SM
58502018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5851
5852 * regcache.h (regcache_raw_read): Remove, update callers to use
5853 readable_regcache::raw_read instead.
5854 * regcache.c (regcache_raw_read): Remove.
5855
0b47d985
SM
58562018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5857
5858 * regcache.h (regcache_raw_update): Remove, update callers to
5859 use readable_regcache::raw_update instead.
5860 * regcache.c (regcache_raw_update): Remove.
5861
0ec9f114
SM
58622018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5863
5864 * regcache.h (regcache_register_status): Remove, update callers
5865 to use reg_buffer::get_register_status directly instead.
5866 * regcache.c (regcache_register_status): Remove.
5867
222312d3
SM
58682018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5869
5870 * regcache.h (regcache_get_ptid): Remove, update all callers to
5871 call regcache::ptid instead.
5872 * regcache.c (regcache_get_ptid): Remove.
5873
fdbe37e3
SM
58742018-05-30 Simon Marchi <simon.marchi@ericsson.com>
5875
5876 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
5877
f7c6f423
PA
58782018-05-30 Pedro Alves <palves@redhat.com>
5879
5880 * common/common-exceptions.h (exception_rethrow): Use
5881 ATTRIBUTE_NORETURN.
5882
52941706
SM
58832018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
5884
5885 * breakpoint.c (print_solib_event, check_status_catch_solib):
5886 Remove struct keyword in range-based for loops.
5887 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
5888 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
5889 Likewise.
5890 * linespec.c (find_superclass_methods, search_minsyms_for_name):
5891 Likewise.
5892 * symfile.c (addr_info_make_relative): Likewise.
5893 * thread.c (value_in_thread_stack_temporaries): Likewise.
5894
bf2977b5
WP
58952018-06-12 Weimin Pan <weimin.pan@oracle.com>
5896
5897 PR gdb/16841
5898 * valops.c (value_struct_elt_for_reference): Call check_typedef on
5899 aggregate type to get its real type before accessing it.
5900
64cc34d8
WP
59012018-05-29 Weimin Pan <weimin.pan@oracle.com>
5902
5903 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
5904 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
5905 * coff-pe-read.c (add_pe_forwarded_sym): Replace
5906 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
5907 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
5908 * jit.c (jit_breakpoint_re_set_internal): Likewise.
5909 * printcmd.c (info_address_command): Likewise.
5910
e7ec8713
TT
59112018-05-29 Tom Tromey <tom@tromey.com>
5912
5913 * windows-nat.c (handle_exception): Update fall-through comment.
5914
bcb430e4
TT
59152018-05-29 Tom Tromey <tom@tromey.com>
5916
5917 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
5918 (struct program_space) <added_solibs>: Now a std::vector.
5919 * breakpoint.c (print_solib_event): Update.
5920 (check_status_catch_solib): Update.
5921 * progspace.c (clear_program_space_solib_cache): Update.
5922 * solib.c (update_solib_list): Update.
5923
894882e3
TT
59242018-05-29 Tom Tromey <tom@tromey.com>
5925
5926 * python/py-type.c (typy_richcompare): Update.
5927 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
5928 * gdbtypes.h (types_deeply_equal): Return bool.
5929 (types_equal): Likewise.
5930 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
5931 declare VEC.
5932 (check_types_equal): Change worklist to std::vector. Return
5933 bool.
5934 (struct type_equality_entry): Add constructor.
5935 (compare_maybe_null_strings): Return bool.
5936 (check_types_worklist): Return bool. Change worklist to
5937 std::vector.
5938 (types_deeply_equal): Use std::vector.
5939 (types_equal): Return bool.
5940 (compare_maybe_null_strings): Simplify.
5941
10b2ded4
TT
59422018-05-29 Tom Tromey <tom@tromey.com>
5943
5944 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
5945
4f7deebe
TT
59462018-05-29 Tom Tromey <tom@tromey.com>
5947
5948 * objc-lang.h: Don't include cp-support.h.
5949 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
5950 declare VEC.
5951
b8283aea
TT
59522018-05-27 Tom Tromey <tom@tromey.com>
5953
5954 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
5955
41a883c8
TT
59562018-05-25 Tom Tromey <tom@tromey.com>
5957
5958 * value.c (value::location): Initialize.
5959
bf259e25
TT
59602018-05-25 Tom Tromey <tom@tromey.com>
5961
5962 * dbxread.c (init_bincl_list): Remove.
5963 (bincl_list): Now a std::vector.
5964 (bincls_allocated, next_bincl): Remove.
5965 (free_bincl_list, do_free_bincl_list_cleanup)
5966 (make_cleanup_free_bincl_list): Remove.
5967 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
5968 unique_xmalloc_ptr.
5969 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
5970 (struct header_file_location): Add constructor.
5971 (add_bincl_to_list): Remove.
5972
d525a99b
TT
59732018-05-25 Tom Tromey <tom@tromey.com>
5974
5975 * tui/tui.c (tui_enable): Update.
5976 * mi/mi-interp.c (mi_interp::init): Update.
5977 * interps.h (class interp) <name>: New method.
5978 <m_name>: Rename from name.
5979 (~scoped_restore_interp): Update.
5980 * interps.c (interp::interp): Update.
5981 (interp_add, interp_set, interp_lookup_existing)
5982 (current_interp_named_p): Update.
5983
da505cff
TT
59842018-05-25 Tom Tromey <tom@tromey.com>
5985
5986 * interps.c (interp_name): Remove.
5987 * mi/mi-interp.c (mi_interp::init): Update.
5988 * interps.h (interp_name): Remove.
5989 (~scoped_restore_interp): Update.
5990 * tui/tui.c (tui_enable): Update.
5991
29f94340
TT
59922018-05-25 Tom Tromey <tom@tromey.com>
5993
5994 * utils.c (fputs_maybe_filtered): Update.
5995 * linespec.c (decode_line_full): Update.
5996 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
5997 (mi_print_breakpoint_for_event, mi_solib_loaded)
5998 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
5999 (mi_user_selected_context_changed): Update.
6000 * mi/mi-main.c (mi_execute_command): Update.
6001 * cli/cli-script.c (execute_control_command): Update.
6002 * python/python.c (execute_gdb_command): Update.
6003 * solib.c (info_sharedlibrary_command): Update.
6004 * interps.c (interp_ui_out): Remove.
6005 * interps.h (interp_ui_out): Remove.
6006
716b8bc5
TT
60072018-05-25 Tom Tromey <tom@tromey.com>
6008
6009 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
6010 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
6011 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
6012
753ff9bd
TT
60132018-05-25 Tom Tromey <tom@tromey.com>
6014
6015 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
6016 * interps.c (interp_exec): Use scoped_restore.
6017
5ca3b260
TT
60182018-05-25 Tom Tromey <tom@tromey.com>
6019
6020 * remote.c (remote_target::remote_file_get): Use
6021 gdb::byte_vector.
6022 (remote_target::remote_file_put): Likewise.
6023
3173aa2f
TT
60242018-05-25 Tom Tromey <tom@tromey.com>
6025
6026 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
6027 a std::string.
6028 (get_pe_section_index, add_pe_exported_sym): Update.
6029 (read_pe_exported_syms): Use gdb::def_vector.
6030
09a5e1b5
TT
60312018-05-25 Tom Tromey <tom@tromey.com>
6032
6033 * frame.c (remove_prev_frame): Remove.
6034 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
6035
d8dab6c3
MR
60362018-05-25 Maciej W. Rozycki <macro@mips.com>
6037
6038 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
6039 Remove prototypes.
6040 * mips-linux-nat.c (supply_fpregset): Always call
6041 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
6042 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
6043 `mips_fill_fpregset'.
6044 * mips-linux-tdep.c (mips_supply_fpregset)
6045 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
6046 (mips_fill_fpregset_wrapper): Remove functions.
6047 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
6048 (mips_linux_fpregset): Remove variable.
6049 (mips_linux_iterate_over_regset_sections): Use
6050 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
6051 (mips_linux_o32_sigframe_init): Remove comment.
6052
3c69da40
PA
60532018-05-25 Pedro Alves <palves@redhat.com>
6054
6055 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
6056 (struct readahead_cache, struct packet_reg, struct
6057 remote_arch_state, class remote_state): Move higher up in the
6058 file.
6059 (remote_target::m_remote_state): Now an object instead of a pointer.
6060 (remote_target::get_remote_state): Adjust.
6061
39f0c204
AB
60622018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
6063
6064 * stack.c (select_and_print_frame): Delete.
6065 (struct function_bounds): Move struct within function.
6066 (func_command): Most content moved into new function
6067 find_frame_for_function, use new function, print result, add
6068 function comment.
6069 (find_frame_for_function): New function, now returns a result.
6070
d392224a
PW
60712018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6072
6073 * stack.c (iterate_over_block_arg_vars): Fix comment.
6074 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
6075
45f25d6c
AB
60762018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
6077
6078 PR gdb/23203
6079 * frame.c
6080 (scoped_restore_selected_frame::scoped_restore_selected_frame):
6081 Define.
6082 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
6083 Define.
6084 * frame.h (class scoped_restore_selected_frame): New class.
6085 * stack.c (print_frame_local_vars): Remove catching and rethrowing
6086 of any exception, use scoped_restore_selected_frame to restore the
6087 frame instead.
6088
da05d921
PA
60892018-05-24 Pedro Alves <palves@redhat.com>
6090
6091 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
6092 override.
6093
a8be540e
TT
60942018-05-23 Tom Tromey <tom@tromey.com>
6095
6096 * complaints.c (struct complaints): Remove.
6097 (symfile_complaint_book): Remove.
6098 (series): New global.
6099 (complaint_internal): Update.
6100 (clear_complaints): Update.
6101
ff1cf532
TT
61022018-05-23 Tom Tromey <tom@tromey.com>
6103
6104 * complaints.c (counters): New global.
6105 (struct complain): Remove.
6106 (struct complaints) <root>: Remove.
6107 (complaint_sentinel): Remove.
6108 (symfile_complaint_book): Update.
6109 (find_complaint) Remove.
6110 (complaint_internal, clear_complaints): Update.
6111
7ff88174
TT
61122018-05-23 Tom Tromey <tom@tromey.com>
6113
6114 * complaints.c (struct complain) <file, line>: Remove.
6115 (find_complaint): Remove file, line parameters.
6116 (complaint_internal): Update.
6117
de54e1a5
TT
61182018-05-23 Tom Tromey <tom@tromey.com>
6119
6120 * complaints.c (vcomplaint): Remove.
6121 (complaint_internal) Merge in contents of vcomplaint.
6122
2ac237e5
TT
61232018-05-23 Tom Tromey <tom@tromey.com>
6124
6125 * complaints.c (struct complaints) <explanation>: Remove.
6126 (symfile_explanations): Remove.
6127 (symfile_complaint_book): Update.
6128 (vcomplaint): Update.
6129 (struct explanation): Remove.
6130
b98664d3
TT
61312018-05-23 Tom Tromey <tom@tromey.com>
6132
6133 * complaints.c (symfile_complaints): Remove.
6134 (complaint_internal): Remove "complaints" parameter.
6135 (clear_complaints, vcomplaint): Remove "c" parameter.
6136 (get_complaints): Remove.
6137 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
6138 (dwarf2_debug_line_missing_file_complaint)
6139 (dwarf2_debug_line_missing_end_sequence_complaint)
6140 (dwarf2_complex_location_expr_complaint)
6141 (dwarf2_const_value_length_mismatch_complaint)
6142 (dwarf2_section_buffer_overflow_complaint)
6143 (dwarf2_macro_malformed_definition_complaint)
6144 (dwarf2_invalid_attrib_class_complaint)
6145 (create_addrmap_from_index, dw2_symtab_iter_next)
6146 (dw2_expand_marked_cus)
6147 (dw2_debug_names_iterator::find_vec_in_debug_names)
6148 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
6149 (create_debug_type_hash_table, init_cutu_and_read_dies)
6150 (partial_die_parent_scope, add_partial_enumeration)
6151 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
6152 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
6153 (read_import_statement, read_file_scope, create_dwo_cu_reader)
6154 (create_cus_hash_table, create_dwp_hash_table)
6155 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
6156 (dwarf2_rnglists_process, dwarf2_ranges_process)
6157 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
6158 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
6159 (handle_struct_member_die, process_structure_scope)
6160 (read_array_type, read_common_block, read_module_type)
6161 (read_tag_pointer_type, read_typedef, read_base_type)
6162 (read_subrange_type, load_partial_dies, partial_die_info::read)
6163 (partial_die_info::read, partial_die_info::read)
6164 (partial_die_info::read, read_checked_initial_length_and_offset)
6165 (dwarf2_string_attr, read_formatted_entries)
6166 (dwarf_decode_line_header)
6167 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
6168 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
6169 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
6170 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
6171 (get_signatured_type, get_DW_AT_signature_type)
6172 (decode_locdesc, file_file_name, consume_improper_spaces)
6173 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
6174 (dwarf_decode_macro_bytes, dwarf_decode_macros)
6175 (dwarf2_symbol_mark_computed, set_die_type)
6176 (read_attribute_value): Update.
6177 * stap-probe.c (handle_stap_probe, get_stap_base_address):
6178 Update.
6179 * dbxread.c (unknown_symtype_complaint)
6180 (lbrac_mismatch_complaint, repeated_header_complaint)
6181 (set_namestring, function_outside_compilation_unit_complaint)
6182 (read_dbx_symtab, process_one_symbol): Update.
6183 * gdbtypes.c (stub_noname_complaint): Update.
6184 * windows-nat.c (handle_unload_dll): Update.
6185 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
6186 (decode_base_type): Update.
6187 * xcoffread.c (bf_notfound_complaint, ef_complaint)
6188 (eb_complaint, record_include_begin, record_include_end)
6189 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
6190 (process_xcoff_symbol, read_symbol)
6191 (function_outside_compilation_unit_complaint)
6192 (scan_xcoff_symtab): Update.
6193 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
6194 * buildsym.c (finish_block_internal, make_blockvector)
6195 (end_symtab_get_static_block, augment_type_symtab): Update.
6196 * dtrace-probe.c (dtrace_process_dof)
6197 (dtrace_static_probe_ops::get_probes): Update.
6198 * complaints.h (struct complaint): Don't declare.
6199 (symfile_complaints): Remove.
6200 (complaint_internal): Remove "complaints" parameter.
6201 (complaint): Likewise.
6202 (clear_complaints): Likewise.
6203 * symfile.c (syms_from_objfile_1, finish_new_objfile)
6204 (reread_symbols): Update.
6205 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
6206 (dwarf2_frame_cache, decode_frame_entry): Update.
6207 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
6208 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6209 (info_selectors_command): Update.
6210 * macrotab.c (macro_include, check_for_redefinition)
6211 (macro_undef): Update.
6212 * objfiles.c (filter_overlapping_sections): Update.
6213 * stabsread.c (invalid_cpp_abbrev_complaint)
6214 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
6215 (define_symbol, error_type, read_type, rs6000_builtin_type)
6216 (stabs_method_name_from_physname, read_member_functions)
6217 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
6218 (attach_fields_to_type, complain_about_struct_wipeout)
6219 (read_range_type, read_args, common_block_start)
6220 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
6221 Update.
6222 * mdebugread.c (index_complaint, unknown_ext_complaint)
6223 (basic_type_complaint, bad_tag_guess_complaint)
6224 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
6225 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
6226 (parse_procedure, parse_lines)
6227 (function_outside_compilation_unit_complaint)
6228 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
6229 (bad_tag_guess_complaint, reg_value_complaint): Update.
6230 * cp-support.c (demangled_name_complaint): Update.
6231 * macroscope.c (sal_macro_scope): Update.
6232 * dwarf-index-write.c (class debug_names): Update.
6233
4e9668d0
TT
62342018-05-23 Tom Tromey <tom@tromey.com>
6235
6236 * complaints.c (clear_complaints): Remove "noisy" parameter.
6237 * complaints.h (clear_complaints): Update.
6238 * symfile.c (syms_from_objfile_1, finish_new_objfile)
6239 (reread_symbols): Update.
6240
43ba33c7
TT
62412018-05-23 Tom Tromey <tom@tromey.com>
6242
6243 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
6244 SUBSEQUENT_MESSAGE.
6245 (vcomplaint, clear_complaints): Update.
6246 (symfile_explanations): Remove some messages.
6247
2b9496b2
TT
62482018-05-23 Tom Tromey <tom@tromey.com>
6249
6250 * complaints.c (internal_complaint): Remove.
6251 * complaints.h (internal_complaint): Remove.
6252
35f1fea3
MR
62532018-05-22 Maciej W. Rozycki <macro@mips.com>
6254
6255 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
6256
6b8edb51
PA
62572018-05-22 Pedro Alves <palves@redhat.com>
6258
6259 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
6260 (remote_fileio_badfd, remote_fileio_return_errno)
6261 (remote_fileio_return_success, remote_fileio_func_open)
6262 (remote_fileio_func_open, remote_fileio_func_close)
6263 (remote_fileio_func_read, remote_fileio_func_write)
6264 (remote_fileio_func_lseek, remote_fileio_func_rename)
6265 (remote_fileio_func_unlink, remote_fileio_func_stat)
6266 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
6267 (remote_fileio_func_isatty, remote_fileio_func_system): Add
6268 remote_target parameter.
6269 (remote_fio_func_map) <func>: Add remote_target parameter.
6270 (do_remote_fileio_request, remote_fileio_request):
6271 * remote-fileio.h (remote_fileio_request):
6272 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
6273 remote_target parameter.
6274 (remote_notif_process, handle_notification): Adjust to pass down
6275 the remote.
6276 (remote_notif_state_allocate): Add remote_target parameter. Save
6277 it.
6278 * remote-notif.h (struct remote_target): Forward declare.
6279 (struct notif_client) <parse, ack, can_get_pending_events>: Add
6280 remote_target parameter.
6281 (struct remote_notif_state) <remote>: New field.
6282 (remote_notif_ack, remote_notif_parse): Add remote_target
6283 parameter.
6284 (remote_notif_state_allocate, remote_notif_state_allocate): Add
6285 remote_target parameter.
6286 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
6287 (threads_listing_context, rmt_thread_action, protocol_feature)
6288 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
6289 (packet_result, struct threads_listing_context, remote_state):
6290 Move definitions and declarations higher up.
6291 (remote_target) <~remote_target>: Declare.
6292 (remote_download_command_source, remote_file_put, remote_file_get)
6293 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
6294 (remote_hostio_pread_vFile, remote_hostio_send_command)
6295 (remote_hostio_set_filesystem, remote_hostio_open)
6296 (remote_hostio_close, remote_hostio_unlink, remote_state)
6297 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
6298 (get_memory_write_packet_size, get_memory_read_packet_size)
6299 (append_pending_thread_resumptions, remote_detach_1)
6300 (append_resumption, remote_resume_with_vcont)
6301 (add_current_inferior_and_thread, wait_ns, wait_as)
6302 (process_stop_reply, remote_notice_new_inferior)
6303 (process_initial_stop_replies, remote_add_thread)
6304 (btrace_sync_conf, remote_btrace_maybe_reopen)
6305 (remove_new_fork_children, kill_new_fork_children)
6306 (discard_pending_stop_replies, stop_reply_queue_length)
6307 (check_pending_events_prevent_wildcard_vcont)
6308 (discard_pending_stop_replies_in_queue, stop_reply)
6309 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
6310 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
6311 (remote_interrupt_as, remote_interrupt_ns)
6312 (remote_get_noisy_reply, remote_query_attached)
6313 (remote_add_inferior, remote_current_thread, get_current_thread)
6314 (set_thread, set_general_thread, set_continue_thread)
6315 (set_general_process, write_ptid)
6316 (remote_unpack_thread_info_response, remote_get_threadinfo)
6317 (parse_threadlist_response, remote_get_threadlist)
6318 (remote_threadlist_iterator, remote_get_threads_with_ql)
6319 (remote_get_threads_with_qxfer)
6320 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
6321 (get_offsets, remote_check_symbols, remote_supported_packet)
6322 (remote_query_supported, remote_packet_size)
6323 (remote_serial_quit_handler, remote_detach_pid)
6324 (remote_vcont_probe, remote_resume_with_hc)
6325 (send_interrupt_sequence, interrupt_query)
6326 (remote_notif_get_pending_events, fetch_register_using_p)
6327 (send_g_packet, process_g_packet, fetch_registers_using_g)
6328 (store_register_using_P, store_registers_using_G)
6329 (set_remote_traceframe, check_binary_download)
6330 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
6331 (remote_xfer_live_readonly_partial, remote_read_bytes)
6332 (remote_send_printf, remote_flash_write, readchar)
6333 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
6334 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
6335 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
6336 (extended_remote_disable_randomization, extended_remote_run)
6337 (send_environment_packet, extended_remote_environment_support)
6338 (extended_remote_set_inferior_cwd, remote_write_qxfer)
6339 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
6340 (packet_command): Now methods of ...
6341 (remote_target): ... this class.
6342 (m_remote_state) <remote_target>: New field.
6343 (struct remote_state) <stop_reply_queue,
6344 remote_async_inferior_event_token, wait_forever_enabled_p>: New
6345 fields.
6346 (remote_state::remote_state): Allocate stop_reply_queue.
6347 (remote_state): Delete global.
6348 (get_remote_state_raw): Delete.
6349 (remote_target::get_remote_state): Allocate m_remote_state on
6350 demand.
6351 (get_current_remote_target): New.
6352 (remote_ops, extended_remote_ops): Delete.
6353 (wait_forever_enabled_p, remote_async_inferior_event_token):
6354 Delete, moved to struct remote_state.
6355 (remote_target::close): Delete self. Destruction bits split to
6356 ...
6357 (remote_target::~remote_target): ... this.
6358 (show_memory_packet_size): Adjust to use
6359 get_current_remote_target.
6360 (struct protocol_feature) <func>: Add remote_target parameter.
6361 All callers adjusted.
6362 (curr_quit_handler_target): New.
6363 (remote_serial_quit_handler): Reimplement.
6364 (remote_target::open_1): Adjust to use get_current_remote_target.
6365 Heap-allocate remote_target/extended_remote_target instances.
6366 (vcont_builder::vcont_builder): Add remote_target parameter, and
6367 save it in m_remote. All callers adjusted.
6368 (vcont_builder::m_remote): New field.
6369 (vcont_builder::restart, vcont_builder::flush)
6370 (vcont_builder::push_action): Use it.
6371 (remote_target::commit_resume): Use it.
6372 (struct queue_iter_param) <remote>: New field.
6373 (remote_target::remove_new_fork_children): Fill in 'remote' field.
6374 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
6375 (check_pending_event_prevents_wildcard_vcont_callback)
6376 (remote_target::check_pending_events_prevent_wildcard_vcont)
6377 (remote_target::discard_pending_stop_replies)
6378 (remote_target::discard_pending_stop_replies_in_queue)
6379 (remote_target::remote_notif_remove_queued_reply): Fill in
6380 'remote' field.
6381 (remote_notif_get_pending_events): New.
6382 (remote_target::readchar, remote_target::remote_serial_write):
6383 Save/restore curr_quit_handler_target.
6384 (putpkt): New.
6385 (kill_new_fork_children): Fill in 'remote' field.
6386 (packet_command): Use get_current_remote_target, defer to
6387 remote_target method of same name.
6388 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
6389 parameter, and save it in m_remote. All callers adjusted.
6390 (scoped_remote_fd::release): Use m_remote.
6391 (scoped_remote_fd::m_remote): New field.
6392 (remote_file_put, remote_file_get, remote_file_delete): Use
6393 get_current_remote_target, defer to remote_target method of same
6394 name.
6395 (remote_btrace_reset): Add remote_state paremeter. Update all
6396 callers.
6397 (remote_async_inferior_event_handler). Pass down 'data'.
6398 (remote_new_objfile): Use get_current_remote_target.
6399 (remote_target::vcont_r_supported): New.
6400 (set_range_stepping): Use get_current_remote_target and
6401 remote_target::vcont_r_supported.
6402 (_initialize_remote): Don't allocate 'remote_state' and
6403 'stop_reply_queue' globals.
6404 * remote.h (struct remote_target): Forward declare.
6405 (getpkt, putpkt, remote_notif_get_pending_events): Add
6406 'remote_target' parameter.
6407
f5db4863
PA
64082018-05-22 Pedro Alves <palves@redhat.com>
6409
6410 * remote.c (vcont_builder): Now a class. Make all data members
6411 private.
6412 (vcont_builder) <vcont_builder, restart, flush, push_action>:
6413 Declare methods.
6414 (vcont_builder_restart): Rename to ...
6415 (vcont_builder::restart): ... this.
6416 (vcont_builder_flush): Rename to ...
6417 (vcont_builder::flush): ... this.
6418 (vcont_builder_push_action): Rename to ...
6419 (vcont_builder::push_action): ... this.
6420 (remote_target::commit_resume): Adjust.
6421
cc0be08f
PA
64222018-05-22 Pedro Alves <palves@redhat.com>
6423
6424 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
6425 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
6426 (get_fixed_memory_packet_size): New.
6427 (get_memory_packet_size): Use it.
6428 (set_memory_packet_size): Don't override the config size with
6429 DEFAULT_MAX_MEMORY_PACKET_SIZE.
6430 (show_memory_packet_size): Use get_fixed_memory_packet_size.
6431 Don't refer to get_memory_packet_size if not connected to a remote
6432 target. Show "(default)" if configured size is 0.
6433
9607784a
PA
64342018-05-22 Pedro Alves <palves@redhat.com>
6435
6436 * remote.c (remote_target::mourn_inferior): Move
6437 discard_pending_stop_replies call here from ...
6438 (_initialize_remote): ... here.
6439
0e9a6b2f
PA
64402018-05-22 Pedro Alves <palves@redhat.com>
6441
6442 * remote.c (compare_section_command): Remove set_general_process
6443 call.
6444
43c3a0e4
PA
64452018-05-22 Pedro Alves <palves@redhat.com>
6446
6447 * remote.c (struct packet_reg, struct remote_arch_state):
6448 Move higher up in the file.
6449 (remote_state) <m_arch_states>: Store remote_arch_state values
6450 instead of remote_arch_state pointers.
6451 (remote_state::get_remote_arch_state): Adjust.
6452
9d6eea31
PA
64532018-05-22 Pedro Alves <palves@redhat.com>
6454
6455 * remote.c: Include <unordered_map>.
6456 (remote_state): Now a class.
6457 (remote_state) <get_remote_arch_state>: Declare method.
6458 <get_remote_arch_state>: New field.
6459 (remote_arch_state) <remote_arch_state>: Declare ctor.
6460 <regs>: Now a unique_ptr.
6461 (remote_gdbarch_data_handle): Delete.
6462 (get_remote_arch_state): Delete.
6463 (remote_state::get_remote_arch_state): New.
6464 (get_remote_state): Adjust to call remote_state's
6465 get_remote_arch_state method.
6466 (init_remote_state): Delete, bits factored out to ...
6467 (remote_arch_state::remote_arch_state): ... this new method.
6468 (get_remote_packet_size, get_memory_packet_size)
6469 (process_g_packet, remote_target::fetch_registers)
6470 (remote_target::prepare_to_store, store_registers_using_G)
6471 (remote_target::store_registers, remote_target::get_trace_status):
6472 Adjust to call remote_state's method.
6473 (_initialize_remote): Remove reference to
6474 remote_gdbarch_data_handle.
6475
dd194f6b
PA
64762018-05-22 Pedro Alves <palves@redhat.com>
6477
6478 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
6479 pread>: New method declarations.
6480 (remote_target::open_1): Adjust.
6481 (readahead_cache_invalidate): Rename to ...
6482 (readahead_cache::invalidate): ... this, and adjust to be a class
6483 method.
6484 (readahead_cache_invalidate_fd): Rename to ...
6485 (readahead_cache::invalidate_fd): ... this, and adjust to be a
6486 class method.
6487 (remote_hostio_pwrite): Adjust.
6488 (remote_hostio_pread_from_cache): Rename to ...
6489 (readahead_cache::pread): ... this, and adjust to be a class
6490 method.
6491 (remote_hostio_close): Adjust.
6492
440b7aec
PA
64932018-05-22 Pedro Alves <palves@redhat.com>
6494
6495 * remote.c (remote_hostio_close_cleanup): Delete.
6496 (class scoped_remote_fd): New.
6497 (remote_file_put, remote_file_get): Use it.
6498
de44f5a7
PA
64992018-05-22 Pedro Alves <palves@redhat.com>
6500
6501 (struct vCont_action_support): Use bool and initialize all fields.
6502 (struct readahead_cache): Initialize all fields.
6503 (remote_state): Use bool and initialize all fields.
6504 (remote_state::remote_state, remote_state::~remote_state): New.
6505 (new_remote_state): Delete.
6506 (_initialize_remote): Use new to allocate remote_state.
6507
b1b60145
PA
65082018-05-22 Pedro Alves <palves@redhat.com>
6509 張俊芝 <zjz@zjz.name>
6510
6511 PR gdb/22973
6512 * c-exp.y: Include "c-support.h".
6513 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
6514 of tolower. Use c_ident_is_alpha to scan names.
6515 * c-lang.c: Include "c-support.h".
6516 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
6517 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
6518 * c-support.h: New file, with bits factored out from ...
6519 * cp-name-parser.y: ... this file.
6520 Include "c-support.h".
6521 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
6522 c-support.h and renamed.
6523 (symbol_end, yylex): Adjust.
6524
0ec848ad
PFC
65252018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6526
6527 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
6528 parameter type to CORE_ADDR.
6529 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
6530 parameter type in declaration to CORE_ADDR.
6531 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
6532 target_auxv_search to get AT_HWCAP and use the result to get the
6533 target description.
6534 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
6535 to CORE_ADDR. Remove the cast of the return value to unsigned
6536 long. Fix error predicate of target_auxv_search.
6537 (ppc_linux_nat_target::read_description): Change the type of the
6538 hwcap variable to CORE_ADDR.
6539
0fb2aaa1
PFC
65402018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6541
6542 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
6543 if the size of fpscr is larger than 32 bits.
6544
2c3305f6
PFC
65452018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6546
6547 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
6548 (ppc32_linux_vsxregmap): New global.
6549 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
6550 regcache_supply_regset, and regcache_collect_regset.
6551 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
6552 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
6553 (fetch_vsx_register, store_vsx_register): Remove.
6554 (fetch_vsx_registers): Add regno parameter. Get regset using
6555 ppc_linux_vsxregset. Use regset to supply registers.
6556 (store_vsx_registers): Add regno parameter. Get regset using
6557 ppc_linux_vsxregset. Use regset to collect registers.
6558 (fetch_register): Call fetch_vsx_registers instead of
6559 fetch_vsx_register.
6560 (store_register): Call store_vsx_registers instead of
6561 store_vsx_register.
6562 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
6563 new regno parameter.
6564 (store_ppc_registers): Call store_vsx_registers with -1 for the
6565 new regno parameter.
6566 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
6567 (ppc_collect_vsxregset): Remove.
6568
1d75a658
PFC
65692018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6570
6571 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
6572 offset fields.
6573 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
6574 for vector register offset fields.
6575 (ppc64_fbsd_reg_offsets): Likewise.
6576 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
6577 to vector register offset fields.
6578 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
6579 to vector register offset fields.
6580 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
6581 vector register offset fields.
6582 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
6583 initializers for vector register offset fields.
6584 (rs6000_aix64_reg_offsets): Likewise.
6585 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
6586 (ppc_supply_vrregset): Remove.
6587 (ppc_collect_vrregset): Remove.
6588 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
6589 (ppc_linux_vrregset) : New function.
6590 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
6591 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
6592 (ppc32_linux_vrregset): Remove.
6593 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
6594 and use result instead of ppc32_linux_vrregset.
6595 (ppc32_linux_reg_offsets): Remove initializers for vector register
6596 offset fields.
6597 (ppc64_linux_reg_offsets): Likewise.
6598 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
6599 * ppc-linux-nat.c: Include regset.h.
6600 (gdb_vrregset_t): Adjust comment to account for little-endian
6601 mode.
6602 (supply_vrregset, fill_vrregset): Remove.
6603 (fetch_altivec_register, store_altivec_register): Remove.
6604 (fetch_altivec_registers): Add regno parameter. Get regset using
6605 ppc_linux_vrregset. Use regset to supply registers.
6606 (store_altivec_registers): Add regno parameter. Get regset using
6607 ppc_linux_vrregset. Use regset to collect registers.
6608 (fetch_register): Call fetch_altivec_registers instead of
6609 fetch_altivec_register.
6610 (store_register): Call store_altivec_registers instead of
6611 store_altivec_register.
6612 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
6613 the new regno parameter.
6614 (store_ppc_registers): Call store_altivec_registers with -1 for
6615 the new regno parameter.
6616
d078308a
PFC
66172018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6618
6619 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
6620 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
6621 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
6622 (gdb_vrregset_t): Change array type size to
6623 PPC_LINUX_SIZEOF_VRREGSET.
6624 (gdb_vsxregset_t): Change array type size to
6625 PPC_LINUX_SIZEOF_VSXREGSET.
6626 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
6627 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
6628 PPC_LINUX_SIZEOF_VSXREGSET.
6629
2e077f5e
PFC
66302018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6631
6632 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
6633 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
6634 nat/ppc-linux.c.
6635 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
6636 ppc_linux_target_wordsize with tid.
6637 (ppc_linux_nat_target::read_description): Call ppc_linux_target
6638 wordsize with tid.
6639 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
6640 (ppc64_64bit_inferior_p): Add static and inline specifiers.
6641 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
6642 tid parameter. Remove static specifier.
6643 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
6644 (ppc_linux_target_wordsize): New declaration.
6645
bd64614e
PFC
66462018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6647
6648 * arch/ppc-linux-common.c: New file.
6649 * arch/ppc-linux-common.h: New file.
6650 * arch/ppc-linux-tdesc.h: New file.
6651 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
6652 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
6653 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
6654 arch/ppc-linux-tdesc.h.
6655 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
6656 arch/ppc-linux-tdesc.h.
6657 (ppc_linux_nat_target::read_description): Remove target
6658 description matching code. Fill a ppc_linux_features struct and
6659 call ppc_linux_match_description with it. Move comment about ISA
6660 2.05 to ppc-linux-common.c.
6661 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
6662 arch/ppc-linux-tdesc.h.
6663 (ppc_linux_core_read_description): Remove target description
6664 matching code. Fill a ppc_linux_features struct and call
6665 ppc_linux_match_description with it.
6666 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
6667 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
6668 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
6669 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
6670 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
6671 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
6672 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
6673 (tdesc_powerpc_e500l): Remove.
6674
241db429
JB
66752018-05-22 Joel Brobecker <brobecker@adacore.com>
6676
6677 * ada-lang.c (catch_assert_command): Pass empty string instead
6678 of NULL for excep_string argument.
6679
75d74cca
MR
66802018-05-22 Maciej W. Rozycki <macro@mips.com>
6681
6682 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
6683 the width of the requested register exceeds the width of the
6684 `ptrace' data type.
6685
122b53ea
TT
66862018-05-21 Tom Tromey <tom@tromey.com>
6687
6688 * printcmd.c (output_command): Remove.
6689 (output_command_const): Rename to output_command.
6690 * valprint.h (output_command): Rename from output_command_const.
6691 * tracepoint.c (trace_dump_actions): Call output_command.
6692
bc18fbb5
TT
66932018-05-21 Tom Tromey <tom@tromey.com>
6694
6695 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
6696 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
6697 * ada-lang.h (create_ada_exception_catchpoint): Update.
6698 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
6699 std::string.
6700 (create_excep_cond_exprs, ~ada_catchpoint)
6701 (should_stop_exception, print_one_exception)
6702 (print_mention_exception, print_recreate_exception): Update.
6703 (ada_get_next_arg): Remove.
6704 (catch_ada_exception_command_split): Use std::string. Change type
6705 of "excep_string", "cond_string".
6706 (catch_ada_exception_command): Update.
6707 (create_ada_exception_catchpoint): Change type of excep_string.
6708 (ada_exception_sal): Remove excep_string parameter.
6709 (~ada_catchpoint): Remove.
6710
790217f6
TT
67112018-05-21 Tom Tromey <tom@tromey.com>
6712
6713 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
6714 cleanup.
6715
6f46ac85
TT
67162018-05-21 Tom Tromey <tom@tromey.com>
6717
6718 * ada-lang.c (ada_exception_message_1, ada_exception_message):
6719 Return unique_xmalloc_ptr.
6720 (print_it_exception): Update.
6721
15b6611c
TT
67222018-05-21 Tom Tromey <tom@tromey.com>
6723
6724 * tracepoint.c (trace_dump_actions): Use std::string.
6725
c0c9f665
TT
67262018-05-21 Tom Tromey <tom@tromey.com>
6727
6728 * symfile.c (reread_symbols): Use std::string for original_name.
6729
22ca247e
TT
67302018-05-21 Tom Tromey <tom@tromey.com>
6731
6732 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
6733 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
6734 constructor.
6735
184cde75
SM
67362018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
6737
6738 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
6739 instance to...
6740 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
6741 * objfiles.c (get_objfile_bfd_data): Allocate
6742 objfile_per_bfd_storage with obstack_new when allocating on
6743 obstack.
6744
e39db4db
SM
67452018-05-20 Simon Marchi <simon.marchi@ericsson.com>
6746
6747 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
6748 OBSTACK_ZALLOC.
6749 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
6750 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
6751 * mdebugread.c (mdebug_build_psymtabs): Likewise.
6752 (add_pending): Likewise.
6753 (parse_symbol): Likewise.
6754 (parse_partial_symbols): Likewise.
6755 (psymtab_to_symtab_1): Likewise.
6756 (new_psymtab): Likewise.
6757 (elfmdebug_build_psymtabs): Likewise.
6758 * minsyms.c (terminate_minimal_symbol_table): Likewise.
6759 * objfiles.c (get_objfile_bfd_data): Likewise.
6760 (objfile_register_static_link): Likewise.
6761 * psymtab.c (allocate_psymtab): Likewise.
6762 * stabsread.c (read_member_functions): Likewise.
6763 * xcoffread.c (xcoff_end_psymtab): Likewise.
6764
284a0e3c
SM
67652018-05-20 Simon Marchi <simon.marchi@ericsson.com>
6766
6767 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
6768 compiler supports std::is_trivially_constructible.
6769 * common/poison.h: Include obstack.h.
6770 (IsMallocable): Define to is_trivially_constructible if the
6771 compiler supports it, define to true_type otherwise.
6772 (xobnew): New.
6773 (XOBNEW): Redefine.
6774 (xobnewvec): New.
6775 (XOBNEWVEC): Redefine.
6776 * gdb_obstack.h (obstack_zalloc): New.
6777 (OBSTACK_ZALLOC): Redefine.
6778 (obstack_calloc): New.
6779 (OBSTACK_CALLOC): Redefine.
6780 (obstack_new): New.
6781 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
6782 (gdbarch_obstack): New declaration in gdbarch.h, definition in
6783 gdbarch.c.
6784 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
6785 obstack_calloc/obstack_zalloc.
6786 (gdbarch_obstack_zalloc): Remove.
6787 * target-descriptions.c (tdesc_data_init): Use obstack_new.
6788
59f66be3
PW
67892018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6790
6791 * stack.c (backtrace_command_1): Remove useless variable int i.
6792
50c65c2d
PW
67932018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6794
6795 * stack.c (print_frame_info): Fix comment.
6796
7ff8cb8c
TT
67972018-05-18 Tom Tromey <tom@tromey.com>
6798
6799 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
6800 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
6801 (~dwarf2_per_objfile): Update
6802 (dwarf2_get_dwz_file): Use new.
6803 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
6804 unique_ptr.
6805
400174b1
TT
68062018-05-18 Tom Tromey <tom@tromey.com>
6807
6808 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
6809 unique_ptr.
6810 * dwarf2read.c (struct dwp_file): Add constructor and
6811 initializers.
6812 (open_and_init_dwp_file): Return a unique_ptr.
6813 (dwarf2_per_objfile, create_dwp_hash_table)
6814 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
6815 (lookup_dwo_unit_in_dwp): Update.
6816 (open_and_init_dwp_file, get_dwp_file): Update.
6817
3063847f
TT
68182018-05-18 Tom Tromey <tom@tromey.com>
6819
6820 * dwarf2read.c (dwarf2_per_objfile): Update.
6821 (struct mapped_index): Add initializers.
6822 (dwarf2_read_index): Use new.
6823 (dw2_symtab_iter_init): Update.
6824 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
6825 unique_ptr.
6826
d3d02dee
SM
68272018-05-18 Simon Marchi <simon.marchi@ericsson.com>
6828
6829 * dwarf2read.c (mapped_index) <total_size>: Remove.
6830
1d143c36
SM
68312018-05-18 Simon Marchi <simon.marchi@ericsson.com>
6832
6833 * unittests/format_pieces-selftests.c (test_format_specifier):
6834 Add ARI comments.
6835
ce1e8424
TT
68362018-05-18 Tom Tromey <tom@tromey.com>
6837
6838 * c-typeprint.c (maybe_print_hole): New function.
6839 (c_print_type_struct_field_offset): Update.
6840 (c_type_print_base_struct_union): Call maybe_print_hole.
6841
ddfe970e
KS
68422018-05-17 Keith Seitz <keiths@redhat.com>
6843
6844 * breakpoint.c (build_bpstat_chain): New function, moved from
6845 bpstat_stop_status.
6846 (bpstat_stop_status): Add optional parameter, `stop_chain'.
6847 If no stop chain is passed, call build_bpstat_chain to build it.
6848 * breakpoint.h (build_bpstat_chain): Declare.
6849 (bpstat_stop_status): Move documentation here from breakpoint.c.
6850 * infrun.c (handle_signal_stop): Before eliding inlined frames,
6851 build the stop chain and pass it to skip_inline_frames.
6852 Pass this stop chain to bpstat_stop_status.
6853 * inline-frame.c: Include breakpoint.h.
6854 (stopped_by_user_bp_inline_frame): New function.
6855 (skip_inline_frames): Add parameter `stop_chain'.
6856 Move documention to inline-frame.h.
6857 If non-NULL, use stopped_by_user_bp_inline_frame to determine
6858 whether the frame should be elided.
6859 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
6860 Add moved documentation and update for new parameter.
6861
b17992c1
SM
68622018-05-17 Simon Marchi <simon.marchi@ericsson.com>
6863
6864 PR cli/14975
6865 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6866 unittests/format_pieces-selftests.c.
6867 * common/format.h (format_piece) <operator==>: New.
6868 (format_pieces) <operator[]>: Remove.
6869 * common/format.c (format_pieces::format_pieces): Handle \e.
6870 * unittests/format_pieces-selftests.c: New.
6871
58f0c718
TT
68722018-05-17 Tom Tromey <tom@tromey.com>
6873
6874 PR symtab/23010:
6875 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
6876 (dw2_instantiate_symtab): Add skip_partial parameter.
6877 (dw2_find_last_source_symtab, dw2_map_expand_apply)
6878 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
6879 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
6880 (dw2_expand_symtabs_matching_one)
6881 (dw2_find_pc_sect_compunit_symtab)
6882 (dw2_debug_names_lookup_symbol)
6883 (dw2_debug_names_expand_symtabs_for_function): Update.
6884 (init_cutu_and_read_dies): Add skip_partial parameter.
6885 (process_psymtab_comp_unit, build_type_psymtabs_1)
6886 (process_skeletonless_type_unit, load_partial_comp_unit)
6887 (psymtab_to_symtab_1): Update.
6888 (load_full_comp_unit): Add skip_partial parameter.
6889 (process_imported_unit_die, dwarf2_read_addr_index)
6890 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
6891 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
6892 (read_signatured_type): Update.
6893
3e618834
SM
68942018-05-17 Simon Marchi <simon.marchi@ericsson.com>
6895
6896 * value.c (release_value): Remove unused variable.
6897 (record_latest_value): Likewise.
6898 (access_value_history): Likewise.
6899 (preserve_values): Likewise.
6900
fe10fe31
TT
69012018-05-17 Tom Tromey <tom@tromey.com>
6902
6903 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
6904 Initialize.
6905
1d761124
MR
69062018-05-16 Maciej W. Rozycki <macro@mips.com>
6907
6908 PR gdb/22286
6909 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
6910 Also handle registers whose width is not a multiple of
6911 PTRACE_TYPE_RET.
6912 (linux_nat_trad_target::store_register): Likewise.
6913
06333fea
TT
69142018-05-16 Tom Tromey <tom@tromey.com>
6915
6916 * gdbcore.h (core_bfd): Redefine.
6917 * corelow.c (core_target::close): Update.
6918 (core_target_open): Update.
6919 * progspace.h (struct program_space) <cbfd>: Now a
6920 gdb_bfd_ref_ptr.
6921
921222e2
TT
69222018-05-16 Tom Tromey <tom@tromey.com>
6923
6924 PR cli/19551:
6925 * symfile-add-flags.h (enum symfile_add_flags)
6926 <SYMFILE_NOT_FILENAME>: New constant.
6927 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
6928 objfile name from BFD.
6929 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
6930 * minidebug.c (find_separate_debug_file_in_section): Put
6931 ".gnu_debugdata" into BFD's file name.
6932
3acb7083
SM
69332018-05-16 Simon Marchi <simon.marchi@ericsson.com>
6934
6935 * regcache.c (regcache_read_ftype, regcache_write_ftype):
6936 Remove.
6937
561a72d4
TC
69382018-05-15 Tamar Christina <tamar.christina@arm.com>
6939
6940 PR binutils/21446
6941 * aarch64-tdep.c (aarch64_analyze_prologue,
6942 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
6943 Indicate not interested in errors.
6944
4e6ff0e1
MR
69452018-05-15 Maciej W. Rozycki <macro@mips.com>
6946
6947 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
6948 Supply the MIPS_ZERO_REGNUM register.
6949
ea33cd92
MR
69502018-05-15 Maciej W. Rozycki <macro@mips.com>
6951
6952 * mips-tdep.c (mask_address_var): Make variable static.
6953
2d79090e
TT
69542018-05-14 Tom Tromey <tom@tromey.com>
6955
6956 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
6957
cf4912ae
AB
69582018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
6959
6960 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
6961 FXSAVE_ADDR for the mxcsr register.
6962
67e6f569
MF
69632018-05-11 Max Filippov <jcmvbkbc@gmail.com>
6964
6965 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
6966
15244507
PA
69672018-05-11 Pedro Alves <palves@redhat.com>
6968
6969 * corelow.c (core_target) <core_target>: No longer inline.
6970 Initialize m_core_gdbarch, m_core_vec and build the section table
6971 here.
6972 <~core_target>: New.
6973 <core_gdbarch, get_core_register_section>: New methods.
6974 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
6975 factored out from ...
6976 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
6977 (core_ops): Delete.
6978 (sniff_core_bfd): Add gdbarch parameter.
6979 (core_close): Delete, merged into ...
6980 (core_target::close): ... here. Delete self.
6981 (core_close_cleanup): Delete.
6982 (core_target_open): Allocate a core_target on the heap. Use a
6983 unique_ptr instead of a cleanup. Bits moved into the core_target
6984 ctor. Adjust to use core_target methods instead of globals.
6985 (get_core_register_section): Rename to ...
6986 (core_target::get_core_register_section): ... this and adjust.
6987 (struct get_core_registers_cb_data): New.
6988 (get_core_registers_cb): Use it. Use bool.
6989 (core_target::fetch_registers, core_target::files_info)
6990 (core_target::xfer_partial, core_target::read_description)
6991 (core_target::pid_to, core_target::thread_name): Adjust to
6992 reference class fields instead of globals.
6993 * target.h (struct target_ops_deleter, target_ops_up): New.
6994
451953fa
PA
69952018-05-11 Pedro Alves <palves@redhat.com>
6996
6997 * corefile.c (core_file_command): Move to corelow.c.
6998 * corelow.c (the_core_target): Delete.
6999 (core_file_command): Moved from corefile.c. Check exec_bfd
7000 instead of the_core_target. Use target_detach instead of calling
7001 into the_core_target directly.
7002 (maybe_say_no_core_file_now): New.
7003 (core_target::detach): Use it.
7004 (_initialize_corelow): Remove references to the_core_target.
7005 * gdbcore.h (the_core_target): Delete.
7006
e540a5a2 70072018-05-11 Tom Tromey <tromey@redhat.com>
3afc23a6 7008 Pedro Alves <palves@redhat.com>
e540a5a2
TT
7009
7010 * corefile.c (core_bfd): Remove.
7011 * gdbcore.h (core_bfd): Now a macro.
7012 * progspace.h (struct program_space) <cbfd>: New field.
7013
633cf254
TT
70142018-05-11 Tom Tromey <tom@tromey.com>
7015
7016 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
7017 gdb::def_vector.
7018
1a34f210
TT
70192018-05-10 Tom Tromey <tom@tromey.com>
7020
7021 * configure: Rebuild.
7022 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
7023
190852c8
JB
70242018-05-10 Joel Brobecker <brobecker@adacore.com>
7025
7026 PR server/23158:
7027 * regformats/regdat.sh: Adjust script, following the addition
7028 of the new expedite_regs parameter to init_target_desc.
7029
8727de56
OJ
70302018-05-10 Omair Javaid <omair.javaid@linaro.org>
7031
7032 PR gdb/23127
7033 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
7034 set_gdbarch_significant_addr_bit.
7035 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
7036 set_gdbarch_significant_addr_bit.
7037 * utils.c (address_significant): Update to sign extend addr.
7038
37d9e062
MF
70392018-05-09 Max Filippov <jcmvbkbc@gmail.com>
7040
7041 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
7042 (xtensa_linux_init_abi): Limit tdep->num_regs by
7043 tdep->num_nopriv_regs.
7044 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
7045 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
7046 not initialized.
7047
7402fbca
SM
70482018-05-08 Simon Marchi <simon.marchi@ericsson.com>
7049
7050 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
7051
8ee22052
AB
70522018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
7053
7054 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
7055 (I387_MXCSR_INIT_VAL): New constant.
7056 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
7057 buffer if it was supplied by the inferior.
7058 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
7059 (i387_xsave_get_clear_bv): New function.
7060 (i387_supply_xsave): Only read x87 control registers from the
7061 xsave buffer if the feature is enabled, and the state will have
7062 been written, otherwise, provide a suitable default.
7063 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
7064 including x87 control registers. Update control registers if they
7065 have changed from the default value, and mark features as enabled
7066 as required.
7067 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
7068
968ae51b
UW
70692018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7070
7071 * spu-tdep.c (info_spu_event_command): Fix output formatting.
7072
aff689d3
TT
70732018-05-07 Tom Tromey <tom@tromey.com>
7074
7075 * configure: Rebuild.
7076 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
7077
ce887586
TT
70782018-05-07 Tom Tromey <tom@tromey.com>
7079
7080 PR tdep/20362:
7081 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
7082 bit. Use correct value for VDIV.
7083
85e26832
TT
70842018-05-04 Tom Tromey <tom@tromey.com>
7085
7086 * configure: Rebuild.
7087 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
7088
449b1ac7
TT
70892018-05-04 Tom Tromey <tom@tromey.com>
7090
7091 * linux-record.c (record_linux_system_call) <case
7092 RECORD_SYS_RECVFROM>: Add "break".
7093
15c9ffd6
TT
70942018-05-04 Tom Tromey <tom@tromey.com>
7095
7096 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
7097 Add missing "break".
7098 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
7099 Add missing "break".
7100
e3829d13
TT
71012018-05-04 Tom Tromey <tom@tromey.com>
7102
7103 * rs6000-tdep.c (ppc_process_record_op4)
7104 (ppc_process_record_op63): Add fall-through comment.
7105
da0e1563
TT
71062018-05-04 Tom Tromey <tom@tromey.com>
7107
7108 * i386-tdep.c (i386_process_record): Add fall-through comment.
7109
0019cd49
TT
71102018-05-04 Tom Tromey <tom@tromey.com>
7111
7112 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
7113 comment.
7114
565e0eda
TT
71152018-05-04 Tom Tromey <tom@tromey.com>
7116
7117 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
7118 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
7119 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
7120 comment.
7121 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
7122 comment.
7123 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
7124 comment.
7125
621846f4
TT
71262018-05-04 Tom Tromey <tom@tromey.com>
7127
7128 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
7129
86a73007
TT
71302018-05-04 Tom Tromey <tom@tromey.com>
7131
7132 * s390-tdep.c (s390_process_record): Fix fall-through comments.
7133 * xcoffread.c (scan_xcoff_symtab): Move comment later.
7134 * symfile.c (section_is_mapped): Fix fall-through comment.
7135 * stabsread.c (define_symbol, read_member_functions): Fix
7136 fall-through comment.
7137 * s390-linux-tdep.c (s390_process_record): Fix fall-through
7138 comment.
7139 * remote.c (remote_wait_as): Fix fall-through comment.
7140 * p-exp.y (yylex): Fix fall-through comment.
7141 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
7142 comment.
7143 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
7144 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
7145 * jv-exp.y (yylex): Fix fall-through comment.
7146 * go-exp.y (lex_one_token): Fix fall-through comment.
7147 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
7148 fall-through comment.
7149 * f-exp.y (yylex): Fix fall-through comment.
7150 * dwarf2read.c (process_die): Fix fall-through comments.
7151 * dbxread.c (process_one_symbol): Fix fall-through comment.
7152 * d-exp.y (lex_one_token): Fix fall-through comment.
7153 * cp-name-parser.y (yylex): Fix fall-through comment.
7154 * coffread.c (coff_symtab_read): Fix fall-through comment.
7155 * c-exp.y (lex_one_token): Fix fall-through comment.
7156 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
7157 comment.
7158 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
7159 comment.
7160
56bcdbea
TT
71612018-05-04 Tom Tromey <tom@tromey.com>
7162
7163 PR python/22730:
7164 * NEWS: Mention gdb.execute change.
7165 * gdbcmd.h (execute_control_command): Don't declare.
7166 * python/python.c (execute_gdb_command): Use read_command_lines_1,
7167 execute_control_commands, execute_control_commands_to_string.
7168 * cli/cli-script.h (execute_control_commands)
7169 (execute_control_commands_to_string): Declare.
7170 (execute_control_command): Add from_tty parameter.
7171 * cli/cli-script.c (execute_control_commands)
7172 (execute_control_commands_to_string): New functions.
7173 (execute_user_command): Use execute_control_commands.
7174 (execute_control_command_1): Add "from_tty" parameter. Update.
7175 (execute_control_command): Likewise.
7176
a913fffb
TT
71772018-05-04 Tom Tromey <tom@tromey.com>
7178
7179 PR python/22731:
7180 * NEWS: Mention that breakpoint commands are writable.
7181 * python/py-breakpoint.c (bppy_set_commands): New function.
7182 (breakpoint_object_getset) <"commands">: Use it.
7183
60b3cef2
TT
71842018-05-04 Tom Tromey <tom@tromey.com>
7185
7186 * tracepoint.c (actions_command): Update.
7187 * mi/mi-cmd-break.c (mi_command_line_array)
7188 (mi_command_line_array_cnt, mi_command_line_array_ptr)
7189 (mi_read_next_line): Remove.
7190 (mi_cmd_break_commands): Update.
7191 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
7192 function_view.
7193 * cli/cli-script.c (get_command_line): Update.
7194 (process_next_line): Use function_view. Constify.
7195 (recurse_read_control_structure, read_command_lines)
7196 (read_command_lines_1): Change argument types to function_view.
7197 (do_define_command, document_command): Update.
7198 * breakpoint.h (check_tracepoint_command): Don't declare.
7199 * breakpoint.c (check_tracepoint_command): Remove.
7200 (commands_command_1, create_tracepoint_from_upload): Update.
7201
7a2c85f2
TT
72022018-05-04 Tom Tromey <tom@tromey.com>
7203
7204 PR gdb/11750:
7205 * cli/cli-script.h (enum command_control_type) <define_control>:
7206 New constant.
7207 * cli/cli-script.c (multi_line_command_p): Handle define_control.
7208 (build_command_line, execute_control_command_1)
7209 (process_next_line): Likewise.
7210 (do_define_command): New function, extracted from define_command.
7211 (define_command): Use it.
7212
295dc222
TT
72132018-05-04 Tom Tromey <tom@tromey.com>
7214
7215 * tracepoint.c (actions_command): Update.
7216 * cli/cli-script.h (read_command_lines): Update.
7217 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
7218 (MAX_TMPBUF): Remove define.
7219 (define_command): Use string_printf.
7220 (document_command): Likewise.
7221 * breakpoint.c (commands_command_1): Update.
7222
1263a9d5
TT
72232018-05-04 Tom Tromey <tom@tromey.com>
7224
7225 * top.c (execute_command): Update.
7226 * cli/cli-script.h (print_command_lines): Now varargs.
7227 * cli/cli-script.c (print_command_lines): Now varargs.
7228 (execute_control_command_1) <case while_control, case if_control>:
7229 Update.
7230
12973681
TT
72312018-05-04 Tom Tromey <tom@tromey.com>
7232
7233 * tracepoint.c (all_tracepoint_actions): Rename from
7234 all_tracepoint_actions_and_cleanup. Change return type.
7235 (actions_command, encode_actions_1, encode_actions)
7236 (trace_dump_actions, tdump_command): Update.
7237 * remote.c (remote_download_command_source): Update.
7238 * python/python.c (gdbpy_eval_from_control_command)
7239 (python_command, python_interactive_command): Update.
7240 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
7241 * guile/guile.c (guile_command)
7242 (gdbscm_eval_from_control_command, guile_command): Update.
7243 * compile/compile.c (compile_code_command)
7244 (compile_print_command, compile_to_object): Update.
7245 * cli/cli-script.h (struct command_lines_deleter): New.
7246 (counted_command_line): New typedef.
7247 (struct command_line): Add constructor, destructor.
7248 <body_list>: Remove.
7249 <body_list_0, body_list_1>: New members.
7250 (command_line_up): Remove typedef.
7251 (read_command_lines, read_command_lines_1, get_command_line):
7252 Update.
7253 (copy_command_lines): Don't declare.
7254 * cli/cli-script.c (build_command_line): Use "new".
7255 (get_command_line): Return counted_command_line.
7256 (print_command_lines, execute_user_command)
7257 (execute_control_command_1, while_command, if_command): Update.
7258 (realloc_body_list): Remove.
7259 (process_next_line, recurse_read_control_structure): Update.
7260 (read_command_lines, read_command_lines_1): Return counted_command_line.
7261 (free_command_lines): Use "delete".
7262 (copy_command_lines): Remove.
7263 (define_command, document_command, show_user_1): Update.
7264 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
7265 a counted_command_line.
7266 * breakpoint.h (counted_command_line): Remove typedef.
7267 (breakpoint_set_commands): Update.
7268 * breakpoint.c (check_no_tracepoint_commands)
7269 (validate_commands_for_breakpoint): Update.
7270 (breakpoint_set_commands): Change commands to be a
7271 counted_command_line.
7272 (commands_command_1, update_dprintf_command_list)
7273 (create_tracepoint_from_upload): Update.
7274
e2fc72e2
TT
72752018-05-04 Tom Tromey <tom@tromey.com>
7276
7277 * cli/cli-decode.h (cmd_list_element): New constructor.
7278 (~cmd_list_element): New destructor.
7279 (struct cmd_list_element): Add initializers.
7280 * cli/cli-decode.c (do_add_cmd): Use "new".
7281 (delete_cmd): Use "delete".
7282
a3b60e45
JK
72832018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7284 Pedro Alves <palves@redhat.com>
7285
7286 PR breakpoints/19806 and support for PR external/20207.
7287 * NEWS: Mention Aarch64 watchpoint improvements.
7288 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
7289 watchpoints and PR external/20207 watchpoints.
7290 * nat/aarch64-linux-hw-point.c
7291 (kernel_supports_any_contiguous_range): New.
7292 (aarch64_watchpoint_offset): New.
7293 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
7294 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
7295 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
7296 (aarch64_align_watchpoint): New parameters aligned_offset_p and
7297 next_addr_orig_p. Support PR external/20207 watchpoints.
7298 (aarch64_downgrade_regs): New.
7299 (aarch64_dr_state_insert_one_point): New parameters offset and
7300 addr_orig.
7301 (aarch64_dr_state_remove_one_point): Likewise.
7302 (aarch64_handle_breakpoint): Update caller.
7303 (aarch64_handle_aligned_watchpoint): Likewise.
7304 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
7305 aligned_offset.
7306 (aarch64_linux_set_debug_regs): Remove const from state. Call
7307 aarch64_downgrade_regs.
7308 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
7309 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
7310 (DR_CONTROL_MASK): ... this.
7311 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
7312 (unsigned int aarch64_watchpoint_offset): New prototype.
7313 (aarch64_linux_set_debug_regs): Remove const from state.
7314 * utils.c (align_up, align_down): Move to ...
7315 * common/common-utils.c (align_up, align_down): ... here.
7316 * utils.h (align_up, align_down): Move to ...
7317 * common/common-utils.h (align_up, align_down): ... here.
7318
05bc7456
JB
73192018-05-04 Joel Brobecker <brobecker@adacore.com>
7320
7321 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
7322 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
7323 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
7324 Re-implement to match the ABI as summarized in GCC's
7325 gcc/config/sparc/sparc.c. All callers updated.
7326 (sparc32_store_arguments): Remove assertion.
7327
2f433492
TT
73282018-05-04 Tom Tromey <tom@tromey.com>
7329
7330 * printcmd.c: Don't include tui.h.
7331 (decode_format): Use skip_spaces.
7332
9be2ae8f
TT
73332018-05-04 Tom Tromey <tom@tromey.com>
7334
7335 PR gdb/22619:
7336 * printcmd.c (last_count): New global.
7337 (x_command): Use saved count when repeating.
7338
f0b3976b
TT
73392018-05-04 Tom Tromey <tom@tromey.com>
7340
7341 * nto-procfs.c (do_closedir_cleanup): Remove.
7342 (procfs_pidlist): Use gdb_dir_up.
7343 * procfs.c (do_closedir_cleanup): Remove.
7344 (proc_update_threads): Use gdb_dir_up.
7345 * common/filestuff.h (struct gdb_dir_deleter): New.
7346 (gdb_dir_up): New typedef.
7347
862d101a
TT
73482018-05-04 Tom Tromey <tom@tromey.com>
7349
7350 * ada-lang.c (print_mention_exception): Use std::string.
7351
cb7de75e
TT
73522018-05-04 Tom Tromey <tom@tromey.com>
7353
7354 * ada-lang.c (create_excep_cond_exprs): Update.
7355 (ada_exception_catchpoint_cond_string): Use std::string.
7356
49d83361
TT
73572018-05-04 Tom Tromey <tom@tromey.com>
7358
7359 * ada-lang.c (xget_renaming_scope): Return std::string.
7360 (old_renaming_is_invisible): Update.
7361
ade72a34
TT
73622018-05-04 Tom Tromey <tom@tromey.com>
7363
7364 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
7365 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
7366
2be4d7f0
UW
73672018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
7368
7369 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
7370
69b6ecb0
TT
73712018-05-04 Tom Tromey <tom@tromey.com>
7372
7373 * remote.c (remote_query_supported_append): Change type.
7374 (remote_check_symbols): Update.
7375
bf27f0e2
PP
73762018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
7377
7378 PR gdb/11420
7379 * configure.ac: Prepend libpython.
7380 * python/python-config.py: Likewise.
7381 * configure: Regenerate.
7382
4ea17de8
SM
73832018-05-03 Simon Marchi <simon.marchi@ericsson.com>
7384
7385 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
7386
bd732259
PA
73872018-05-03 Pedro Alves <palves@redhat.com>
7388
7389 * s390-linux-nat.c
7390 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
7391 override. Write 'true' instead of '1'.
7392 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
7393 declaration.
7394
d9f719f1
PA
73952018-05-02 Pedro Alves <palves@redhat.com>
7396
7397 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
7398 add_inf_child_target.
7399 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
7400 add_inf_child_target.
7401 * aix-thread.c (aix_thread_target_info): New.
7402 (aix_thread_target) <shortname, longname, doc>: Delete.
7403 <info>: New.
7404 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
7405 add_inf_child_target.
7406 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
7407 add_inf_child_target.
7408 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
7409 add_inf_child_target.
7410 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
7411 add_inf_child_target.
7412 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
7413 add_inf_child_target.
7414 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
7415 add_inf_child_target.
7416 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
7417 add_inf_child_target.
7418 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
7419 add_inf_child_target.
7420 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
7421 add_inf_child_target.
7422 * bfd-target.c (target_bfd_target_info): New.
7423 (target_bfd) <shortname, longname, doc>: Delete.
7424 <info>: New.
7425 * bsd-kvm.c (bsd_kvm_target_info): New.
7426 (bsd_kvm_target) <shortname, longname, doc>: Delete.
7427 <info>: New.
7428 (bsd_kvm_target::open): Rename to ...
7429 (bsd_kvm_target_open): ... this. Adjust.
7430 * bsd-uthread.c (bsd_uthread_target_info): New.
7431 (bsd_uthread_target) <shortname, longname, doc>: Delete.
7432 <info>: New.
7433 * corefile.c (core_file_command): Adjust.
7434 * corelow.c (core_target_info): New.
7435 (core_target) <shortname, longname, doc>: Delete.
7436 <info>: New.
7437 (core_target::open): Rename to ...
7438 (core_target_open): ... this. Adjust.
7439 * ctf.c (ctf_target_info): New.
7440 (ctf_target) <shortname, longname, doc>: Delete.
7441 <info>: New.
7442 (ctf_target::open): Rename to ...
7443 (ctf_target_open): ... this.
7444 (_initialize_ctf): Adjust.
7445 * exec.c (exec_target_info): New.
7446 (exec_target) <shortname, longname, doc>: Delete.
7447 <info>: New.
7448 (exec_target::open): Rename to ...
7449 (exec_target_open): ... this.
7450 * gdbcore.h (core_target_open): Declare.
7451 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
7452 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
7453 add_inf_child_target.
7454 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
7455 add_inf_child_target.
7456 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
7457 add_inf_child_target.
7458 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
7459 add_inf_child_target.
7460 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
7461 add_inf_child_target.
7462 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
7463 add_inf_child_target.
7464 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
7465 add_inf_child_target.
7466 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
7467 add_inf_child_target.
7468 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
7469 add_inf_child_target.
7470 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
7471 add_inf_child_target.
7472 * inf-child.c (inf_child_target_info): New.
7473 (inf_child_target::info): New.
7474 (inf_child_open_target): Remove 'target' parameter. Use
7475 get_native_target instead.
7476 (inf_child_target::open): Delete.
7477 (add_inf_child_target): New.
7478 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
7479 Delete.
7480 <info>: New.
7481 (add_inf_child_target): Declare.
7482 (inf_child_open_target): Declare.
7483 * linux-thread-db.c (thread_db_target_info): New.
7484 (thread_db_target) <shortname, longname, doc>: Delete.
7485 <info>: New.
7486 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
7487 add_inf_child_target.
7488 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
7489 add_inf_child_target.
7490 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
7491 add_inf_child_target.
7492 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
7493 add_inf_child_target.
7494 * make-target-delegates (print_class): Adjust.
7495 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
7496 add_inf_child_target.
7497 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
7498 add_inf_child_target.
7499 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
7500 add_inf_child_target.
7501 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
7502 add_inf_child_target.
7503 * nto-procfs.c (nto_native_target_info): New.
7504 (nto_procfs_target_native) <shortname, longname, doc>:
7505 Delete.
7506 <info>: New.
7507 (nto_procfs_target_info): New.
7508 (nto_procfs_target_procfs) <shortname, longname, doc>:
7509 Delete.
7510 <info>: New.
7511 (init_procfs_targets): Adjust.
7512 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
7513 add_inf_child_target.
7514 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
7515 add_inf_child_target.
7516 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
7517 add_inf_child_target.
7518 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
7519 add_inf_child_target.
7520 * ravenscar-thread.c (ravenscar_target_info): New.
7521 (ravenscar_thread_target) <shortname, longname, doc>:
7522 Delete.
7523 <info>: New.
7524 * record-btrace.c (record_btrace_target_info):
7525 (record_btrace_target) <shortname, longname, doc>: Delete.
7526 <info>: New.
7527 (record_btrace_target::open): Rename to ...
7528 (record_btrace_target_open): ... this. Adjust.
7529 * record-full.c (record_longname, record_doc): New.
7530 (record_full_base_target) <shortname, longname, doc>: Delete.
7531 <info>: New.
7532 (record_full_target_info): New.
7533 (record_full_target): <shortname>: Delete.
7534 <info>: New.
7535 (record_full_core_open_1, record_full_open_1): Update comments.
7536 (record_full_base_target::open): Rename to ...
7537 (record_full_open): ... this.
7538 (cmd_record_full_restore): Update.
7539 (_initialize_record_full): Update.
7540 * remote-sim.c (remote_sim_target_info): New.
7541 (gdbsim_target) <shortname, longname, doc>: Delete.
7542 <info>: New.
7543 (gdbsim_target::open): Rename to ...
7544 (gdbsim_target_open): ... this.
7545 (_initialize_remote_sim): Adjust.
7546 * remote.c (remote_doc): New.
7547 (remote_target_info): New.
7548 (remote_target) <shortname, longname, doc>: Delete.
7549 <info>: New.
7550 (extended_remote_target_info): New.
7551 (extended_remote_target) <shortname, longname, doc>: Delete.
7552 <info>: New.
7553 (remote_target::open_1): Make static. Adjust.
7554 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
7555 * s390-linux-nat.c (_initialize_s390_nat): Use
7556 add_inf_child_target.
7557 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
7558 add_inf_child_target.
7559 * sol-thread.c (thread_db_target_info): New.
7560 (sol_thread_target) <shortname, longname, doc>: Delete.
7561 <info>: New.
7562 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
7563 add_inf_child_target.
7564 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
7565 add_inf_child_target.
7566 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
7567 add_inf_child_target.
7568 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
7569 add_inf_child_target.
7570 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
7571 add_inf_child_target.
7572 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
7573 add_inf_child_target.
7574 * spu-linux-nat.c (_initialize_spu_nat): Use
7575 add_inf_child_target.
7576 * spu-multiarch.c (spu_multiarch_target_info): New.
7577 (spu_multiarch_target) <shortname, longname, doc>: Delete.
7578 <info>: New.
7579 * target-delegates.c: Regenerate.
7580 * target.c: Include <unordered_map>.
7581 (target_ops_p): Delete.
7582 (DEF_VEC_P(target_ops_p)): Delete.
7583 (target_factories): New.
7584 (test_target_info): New.
7585 (test_target_ops::info): New.
7586 (open_target): Adjust to use target_factories.
7587 (add_target_with_completer): Rename to ...
7588 (add_target): ... this. Change prototype. Register target_info
7589 and open callback in target_factories. Register target_info in
7590 command context instead of target_ops.
7591 (add_target): Delete old implementation.
7592 (add_deprecated_target_alias): Change prototype. Adjust.
7593 (the_native_target): New.
7594 (set_native_target, get_native_target): New.
7595 (find_default_run_target): Use the_native_target.
7596 (find_attach_target, find_run_target): Simplify.
7597 (target_ops::open): Delete.
7598 (dummy_target_info): New.
7599 (dummy_target::shortname, dummy_target::longname)
7600 (dummy_target::doc): Delete.
7601 (dummy_target::info): New.
7602 (debug_target::shortname, debug_target::longname)
7603 (debug_target::doc): Delete.
7604 (debug_target::info): New.
7605 * target.h (struct target_info): New.
7606 (target_ops::~target_ops): Add comment.
7607 (target_ops::info): New.
7608 (target_ops::shortname, target_ops::longname, target_ops::doc): No
7609 longer virtual. Implement in terms of target_info.
7610 (set_native_target, get_native_target): Declare.
7611 (target_open_ftype): New.
7612 (add_target, add_target_with_completer)
7613 (add_deprecated_target_alias): Change prototype.
7614 (test_target) <shortname, longname, doc>: Delete.
7615 <info>: New.
7616 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
7617 add_inf_child_target.
7618 * tracefile-tfile.c (tfile_target_info): New.
7619 (tfile_target) <shortname, longname, doc>: Delete.
7620 <info>: New.
7621 (tfile_target::open): Rename to ...
7622 (tfile_target_open): ... this.
7623 (_initialize_tracefile_tfile): Adjust.
7624 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
7625 add_inf_child_target.
7626 * windows-nat.c (_initialize_windows_nat): Use
7627 add_inf_child_target.
7628 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
7629 add_inf_child_target.
7630
135340af
PA
76312018-05-02 Pedro Alves <palves@redhat.com>
7632
7633 * linux-nat.h (linux_nat_target) <low_new_thread,
7634 low_delete_thread, low_new_fork, low_forget_process,
7635 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
7636 New virtual methods.
7637 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
7638 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
7639 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
7640 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
7641 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
7642 Delete.
7643 * linux-fork.c (delete_fork): Adjust to call low method.
7644 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
7645 (linux_nat_new_fork, linux_nat_forget_process_hook)
7646 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
7647 (linux_nat_status_is_event):
7648 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
7649 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
7650 to call low method.
7651 (sigtrap_is_event): Rename to ...
7652 (linux_nat_target::low_status_is_event): ... this.
7653 (linux_nat_set_status_is_event): Delete.
7654 (save_stop_reason, linux_nat_wait_1)
7655 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
7656 low methods.
7657 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
7658 (linux_nat_set_new_fork, linux_nat_set_forget_process)
7659 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
7660 (linux_nat_set_prepare_to_resume): Delete.
7661 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
7662 low virtual methods.
7663 * amd64-linux-nat.c: Likewise.
7664 * arm-linux-nat.c: Likewise.
7665 * i386-linux-nat.c: Likewise.
7666 * ia64-linux-nat.c: Likewise.
7667 * mips-linux-nat.c: Likewise.
7668 * ppc-linux-nat.c: Likewise.
7669 * s390-linux-nat.c: Likewise.
7670 * sparc64-linux-nat.c: Likewise.
7671 * x86-linux-nat.c: Likewise.
7672 * x86-linux-nat.h: Include "nat/x86-linux.h".
7673 (x86_linux_nat_target) <low_new_fork, low_forget_process,
7674 low_prepare_to_resume, low_new_thread, low_delete_thread>:
7675 Override methods.
7676
57810aa7
PA
76772018-05-02 Pedro Alves <palves@redhat.com>
7678
7679 * target.h (target_ops)
7680 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
7681 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
7682 stopped_by_watchpoint, have_continuable_watchpoint,
7683 stopped_data_address, watchpoint_addr_within_range,
7684 can_accel_watchpoint_condition, can_run, thread_alive,
7685 has_all_memory, has_memory, has_stack, has_registers,
7686 has_execution, can_async_p, is_async_p, supports_non_stop,
7687 always_non_stop_p, can_execute_reverse, supports_multi_process,
7688 supports_enable_disable_tracepoint,
7689 supports_disable_randomization, supports_string_tracing,
7690 supports_evaluation_of_breakpoint_conditions,
7691 can_run_breakpoint_commands, filesystem_is_local,
7692 can_download_tracepoint, get_trace_state_variable_value,
7693 set_trace_notes, get_tib_address, use_agent, can_use_agent,
7694 record_is_replaying, record_will_replay,
7695 augmented_libraries_svr4_read>: Adjust to return bool.
7696 * aarch64-linux-nat.c: All implementations adjusted.
7697 * aix-thread.c: All implementations adjusted.
7698 * arm-linux-nat.c: All implementations adjusted.
7699 * breakpoint.c: All implementations adjusted.
7700 * bsd-kvm.c: All implementations adjusted.
7701 * bsd-uthread.c: All implementations adjusted.
7702 * corelow.c: All implementations adjusted.
7703 * ctf.c: All implementations adjusted.
7704 * darwin-nat.c: All implementations adjusted.
7705 * darwin-nat.h: All implementations adjusted.
7706 * exec.c: All implementations adjusted.
7707 * fbsd-nat.c: All implementations adjusted.
7708 * fbsd-nat.h: All implementations adjusted.
7709 * gnu-nat.c: All implementations adjusted.
7710 * gnu-nat.h: All implementations adjusted.
7711 * go32-nat.c: All implementations adjusted.
7712 * ia64-linux-nat.c: All implementations adjusted.
7713 * inf-child.c: All implementations adjusted.
7714 * inf-child.h: All implementations adjusted.
7715 * inf-ptrace.c: All implementations adjusted.
7716 * inf-ptrace.h: All implementations adjusted.
7717 * linux-nat.c: All implementations adjusted.
7718 * linux-nat.h: All implementations adjusted.
7719 * mips-linux-nat.c: All implementations adjusted.
7720 * nto-procfs.c: All implementations adjusted.
7721 * ppc-linux-nat.c: All implementations adjusted.
7722 * procfs.c: All implementations adjusted.
7723 * ravenscar-thread.c: All implementations adjusted.
7724 * record-btrace.c: All implementations adjusted.
7725 * record-full.c: All implementations adjusted.
7726 * remote-sim.c: All implementations adjusted.
7727 * remote.c: All implementations adjusted.
7728 * s390-linux-nat.c: All implementations adjusted.
7729 * sol-thread.c: All implementations adjusted.
7730 * spu-multiarch.c: All implementations adjusted.
7731 * target-delegates.c: All implementations adjusted.
7732 * target.c: All implementations adjusted.
7733 * target.h: All implementations adjusted.
7734 * tracefile-tfile.c: All implementations adjusted.
7735 * tracefile.c: All implementations adjusted.
7736 * tracefile.h: All implementations adjusted.
7737 * windows-nat.c: All implementations adjusted.
7738 * x86-linux-nat.h: All implementations adjusted.
7739 * x86-nat.h: All implementations adjusted.
7740
ad6a4e2d
PA
77412018-05-02 Pedro Alves <palves@redhat.com>
7742
7743 * make-target-delegates (scan_target_h): Don't trim lines here.
7744 Replace sequences of tabs and/or whitespace with a single
7745 whitespace.
7746 (top level, parsing methods): Trim each line before processing it
7747 here.
7748
f6ac5f3d
PA
77492018-05-02 Pedro Alves <palves@redhat.com>
7750 John Baldwin <jhb@freebsd.org>
7751
7752 * target.h (enum strata) <debug_stratum>: New.
7753 (struct target_ops) <all delegation methods>: Replace by C++
7754 virtual methods, and drop "to_" prefix. All references updated
7755 throughout.
7756 <to_shortname, to_longname, to_doc, to_data,
7757 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
7758 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
7759 virtual methods. All references updated throughout.
7760 <can_attach, supports_terminal_ours, can_create_inferior,
7761 get_thread_control_capabilities, attach_no_wait>: New
7762 virtual methods.
7763 <insert_breakpoint, remove_breakpoint>: Now
7764 TARGET_DEFAULT_NORETURN methods.
7765 <info_proc>: Now returns bool.
7766 <to_magic>: Delete.
7767 (OPS_MAGIC): Delete.
7768 (current_target): Delete. All references replaced by references
7769 to ...
7770 (target_stack): ... this. New.
7771 (target_shortname, target_longname): Adjust.
7772 (target_can_run): Now a function declaration.
7773 (default_child_has_all_memory, default_child_has_memory)
7774 (default_child_has_stack, default_child_has_registers)
7775 (default_child_has_execution): Remove target_ops parameter.
7776 (complete_target_initialization): Delete.
7777 (memory_breakpoint_target): New template class.
7778 (test_target_ops): Refactor as a C++ class with virtual methods.
7779 * make-target-delegates (NAME_PART): Tighten.
7780 (POINTER_PART, CP_SYMBOL): New.
7781 (SIMPLE_RETURN_PART): Reimplement.
7782 (VEC_RETURN_PART): Expect less.
7783 (RETURN_PART, VIRTUAL_PART): New.
7784 (METHOD): Adjust to C++ virtual methods.
7785 (scan_target_h): Remove reference to C99.
7786 (dname): Output "target_ops::" prefix.
7787 (write_function_header): Adjust to output a C++ class method.
7788 (write_declaration): New.
7789 (write_delegator): Adjust to output a C++ class method.
7790 (tdname): Output "dummy_target::" prefix.
7791 (write_tdefault, write_debugmethod): Adjust to output a C++ class
7792 method.
7793 (tdefault_names, debug_names): Delete.
7794 (return_types, tdefaults, styles, argtypes_array): New.
7795 (top level): All methods are delegators.
7796 (print_class): New.
7797 (top level): Print dummy_target and debug_target classes.
7798 * target-delegates.c: Regenerate.
7799 * target-debug.h (target_debug_print_enum_info_proc_what)
7800 (target_debug_print_thread_control_capabilities)
7801 (target_debug_print_thread_info_p): New.
7802 * target.c (dummy_target): Delete.
7803 (the_dummy_target, the_debug_target): New.
7804 (target_stack): Now extern.
7805 (set_targetdebug): Push/unpush debug target.
7806 (default_child_has_all_memory, default_child_has_memory)
7807 (default_child_has_stack, default_child_has_registers)
7808 (default_child_has_execution): Remove target_ops parameter.
7809 (complete_target_initialization): Delete.
7810 (add_target_with_completer): No longer call
7811 complete_target_initialization.
7812 (target_supports_terminal_ours): Use regular delegation.
7813 (update_current_target): Delete.
7814 (push_target): No longer check magic number. Don't call
7815 update_current_target.
7816 (unpush_target): Don't call update_current_target.
7817 (target_is_pushed): No longer check magic number.
7818 (target_require_runnable): Skip for all stratums over
7819 process_stratum.
7820 (target_ops::info_proc): New.
7821 (target_info_proc): Use find_target_at and
7822 find_default_run_target.
7823 (target_supports_disable_randomization): Use regular delegation.
7824 (target_get_osdata): Use find_target_at.
7825 (target_ops::open, target_ops::close, target_ops::can_attach)
7826 (target_ops::attach, target_ops::can_create_inferior)
7827 (target_ops::create_inferior, target_ops::can_run)
7828 (target_can_run): New.
7829 (default_fileio_target): Use regular delegation.
7830 (target_ops::fileio_open, target_ops::fileio_pwrite)
7831 (target_ops::fileio_pread, target_ops::fileio_fstat)
7832 (target_ops::fileio_close, target_ops::fileio_unlink)
7833 (target_ops::fileio_readlink): New.
7834 (target_fileio_open_1, target_fileio_unlink)
7835 (target_fileio_readlink): Always call the target method. Handle
7836 FILEIO_ENOSYS.
7837 (return_zero, return_zero_has_execution): Delete.
7838 (init_dummy_target): Delete.
7839 (dummy_target::dummy_target, dummy_target::shortname)
7840 (dummy_target::longname, dummy_target::doc)
7841 (debug_target::debug_target, debug_target::shortname)
7842 (debug_target::longname, debug_target::doc): New.
7843 (target_supports_delete_record): Use regular delegation.
7844 (setup_target_debug): Delete.
7845 (maintenance_print_target_stack): Skip debug_stratum.
7846 (initialize_targets): Instantiate the_dummy_target and
7847 the_debug_target.
7848 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
7849 use target_stack.
7850 (target_auxv_search, fprint_target_auxv): Adjust.
7851 (info_auxv_command): Adjust to use target_stack.
7852 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
7853 * exceptions.c (print_flush): Handle a NULL target_stack.
7854 * regcache.c (target_ops_no_register): Refactor as class with
7855 virtual methods.
7856
7857 * exec.c (exec_target): New class.
7858 (exec_ops): Now an exec_target.
7859 (exec_open, exec_close_1, exec_get_section_table)
7860 (exec_xfer_partial, exec_files_info, exec_has_memory)
7861 (exec_make_note_section): Refactor as exec_target methods.
7862 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
7863 Delete.
7864 (exec_target::find_memory_regions): New.
7865 (_initialize_exec): Don't call init_exec_ops.
7866 * gdbcore.h (exec_file_clear): Delete.
7867
7868 * corefile.c (core_target): Delete.
7869 (core_file_command): Adjust.
7870 * corelow.c (core_target): New class.
7871 (the_core_target): New.
7872 (core_close): Remove target_ops parameter.
7873 (core_close_cleanup): Adjust.
7874 (core_target::close): New.
7875 (core_open, core_detach, get_core_registers, core_files_info)
7876 (core_xfer_partial, core_thread_alive, core_read_description)
7877 (core_pid_to_str, core_thread_name, core_has_memory)
7878 (core_has_stack, core_has_registers, core_info_proc): Rework as
7879 core_target methods.
7880 (ignore, core_remove_breakpoint, init_core_ops): Delete.
7881 (_initialize_corelow): Initialize the_core_target.
7882 * gdbcore.h (core_target): Delete.
7883 (the_core_target): New.
7884
7885 * ctf.c: (ctf_target): New class.
7886 (ctf_ops): Now a ctf_target.
7887 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
7888 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
7889 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
7890 methods.
7891 (init_ctf_ops): Delete.
7892 (_initialize_ctf): Don't call it.
7893 * tracefile-tfile.c (tfile_target): New class.
7894 (tfile_ops): Now a tfile_target.
7895 (tfile_open, tfile_close, tfile_files_info)
7896 (tfile_get_tracepoint_status, tfile_trace_find)
7897 (tfile_fetch_registers, tfile_xfer_partial)
7898 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
7899 Refactor as tfile_target methods.
7900 (tfile_xfer_partial_features): Remove target_ops parameter.
7901 (init_tfile_ops): Delete.
7902 (_initialize_tracefile_tfile): Don't call it.
7903 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
7904 (tracefile_has_stack, tracefile_has_registers)
7905 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
7906 tracefile_target methods.
7907 (init_tracefile_ops): Delete.
7908 (tracefile_target::tracefile_target): New.
7909 * tracefile.h: Include "target.h".
7910 (tracefile_target): New class.
7911 (init_tracefile_ops): Delete.
7912
7913 * spu-multiarch.c (spu_multiarch_target): New class.
7914 (spu_ops): Now a spu_multiarch_target.
7915 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
7916 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
7917 (spu_search_memory, spu_mourn_inferior): Refactor as
7918 spu_multiarch_target methods.
7919 (init_spu_ops): Delete.
7920 (_initialize_spu_multiarch): Remove references to init_spu_ops,
7921 complete_target_initialization.
7922
7923 * ravenscar-thread.c (ravenscar_thread_target): New class.
7924 (ravenscar_ops): Now a ravenscar_thread_target.
7925 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
7926 (ravenscar_thread_alive, ravenscar_pid_to_str)
7927 (ravenscar_fetch_registers, ravenscar_store_registers)
7928 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
7929 (ravenscar_stopped_by_hw_breakpoint)
7930 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
7931 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
7932 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
7933 methods.
7934 (init_ravenscar_thread_ops): Delete.
7935 (_initialize_ravenscar): Remove references to
7936 init_ravenscar_thread_ops and complete_target_initialization.
7937
7938 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
7939 (bsd_uthread_target): New class.
7940 (bsd_uthread_ops): Now a bsd_uthread_target.
7941 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
7942 (bsd_uthread_close, bsd_uthread_mourn_inferior)
7943 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
7944 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
7945 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
7946 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
7947 (bsd_uthread_target): Delete function.
7948 (_initialize_bsd_uthread): Remove reference to
7949 complete_target_initialization.
7950
7951 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
7952 (target_bfd): ... this new class.
7953 (target_bfd_xfer_partial, target_bfd_get_section_table)
7954 (target_bfd_close): Refactor as target_bfd methods.
7955 (target_bfd::~target_bfd): New.
7956 (target_bfd_reopen): Adjust.
7957 (target_bfd::close): New.
7958
7959 * record-btrace.c (record_btrace_target): New class.
7960 (record_btrace_ops): Now a record_btrace_target.
7961 (record_btrace_open, record_btrace_stop_recording)
7962 (record_btrace_disconnect, record_btrace_close)
7963 (record_btrace_async, record_btrace_info)
7964 (record_btrace_insn_history, record_btrace_insn_history_range)
7965 (record_btrace_insn_history_from, record_btrace_call_history)
7966 (record_btrace_call_history_range)
7967 (record_btrace_call_history_from, record_btrace_record_method)
7968 (record_btrace_is_replaying, record_btrace_will_replay)
7969 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7970 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
7971 (record_btrace_store_registers, record_btrace_prepare_to_store)
7972 (record_btrace_to_get_unwinder)
7973 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
7974 (record_btrace_commit_resume, record_btrace_wait)
7975 (record_btrace_stop, record_btrace_can_execute_reverse)
7976 (record_btrace_stopped_by_sw_breakpoint)
7977 (record_btrace_supports_stopped_by_sw_breakpoint)
7978 (record_btrace_stopped_by_hw_breakpoint)
7979 (record_btrace_supports_stopped_by_hw_breakpoint)
7980 (record_btrace_update_thread_list, record_btrace_thread_alive)
7981 (record_btrace_goto_begin, record_btrace_goto_end)
7982 (record_btrace_goto, record_btrace_stop_replaying_all)
7983 (record_btrace_execution_direction)
7984 (record_btrace_prepare_to_generate_core)
7985 (record_btrace_done_generating_core): Refactor as
7986 record_btrace_target methods.
7987 (init_record_btrace_ops): Delete.
7988 (_initialize_record_btrace): Remove reference to
7989 init_record_btrace_ops.
7990 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
7991 the execution_direction global.
7992 (record_full_base_target, record_full_target)
7993 (record_full_core_target): New classes.
7994 (record_full_ops): Now a record_full_target.
7995 (record_full_core_ops): Now a record_full_core_target.
7996 (record_full_target::detach, record_full_target::disconnect)
7997 (record_full_core_target::disconnect)
7998 (record_full_target::mourn_inferior, record_full_target::kill):
7999 New.
8000 (record_full_open, record_full_close, record_full_async): Refactor
8001 as methods of the record_full_base_target class.
8002 (record_full_resume, record_full_commit_resume): Refactor
8003 as methods of the record_full_target class.
8004 (record_full_wait, record_full_stopped_by_watchpoint)
8005 (record_full_stopped_data_address)
8006 (record_full_stopped_by_sw_breakpoint)
8007 (record_full_supports_stopped_by_sw_breakpoint)
8008 (record_full_stopped_by_hw_breakpoint)
8009 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
8010 methods of the record_full_base_target class.
8011 (record_full_store_registers, record_full_xfer_partial)
8012 (record_full_insert_breakpoint, record_full_remove_breakpoint):
8013 Refactor as methods of the record_full_target class.
8014 (record_full_can_execute_reverse, record_full_get_bookmark)
8015 (record_full_goto_bookmark, record_full_execution_direction)
8016 (record_full_record_method, record_full_info, record_full_delete)
8017 (record_full_is_replaying, record_full_will_replay)
8018 (record_full_goto_begin, record_full_goto_end, record_full_goto)
8019 (record_full_stop_replaying): Refactor as methods of the
8020 record_full_base_target class.
8021 (record_full_core_resume, record_full_core_kill)
8022 (record_full_core_fetch_registers)
8023 (record_full_core_prepare_to_store)
8024 (record_full_core_store_registers, record_full_core_xfer_partial)
8025 (record_full_core_insert_breakpoint)
8026 (record_full_core_remove_breakpoint)
8027 (record_full_core_has_execution): Refactor
8028 as methods of the record_full_core_target class.
8029 (record_full_base_target::supports_delete_record): New.
8030 (init_record_full_ops): Delete.
8031 (init_record_full_core_ops): Delete.
8032 (record_full_save): Refactor as method of the
8033 record_full_base_target class.
8034 (_initialize_record_full): Remove references to
8035 init_record_full_ops and init_record_full_core_ops.
8036
8037 * remote.c (remote_target, extended_remote_target): New classes.
8038 (remote_ops): Now a remote_target.
8039 (extended_remote_ops): Now an extended_remote_target.
8040 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
8041 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
8042 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
8043 (remote_pass_signals, remote_set_syscall_catchpoint)
8044 (remote_program_signals, )
8045 (remote_thread_always_alive): Remove target_ops parameter.
8046 (remote_thread_alive, remote_thread_name)
8047 (remote_update_thread_list, remote_threads_extra_info)
8048 (remote_static_tracepoint_marker_at)
8049 (remote_static_tracepoint_markers_by_strid)
8050 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
8051 (remote_open): Refactor as methods of remote_target.
8052 (extended_remote_open, extended_remote_detach)
8053 (extended_remote_attach, extended_remote_post_attach):
8054 (extended_remote_supports_disable_randomization)
8055 (extended_remote_create_inferior): : Refactor as method of
8056 extended_remote_target.
8057 (remote_set_permissions, remote_open_1, remote_detach)
8058 (remote_follow_fork, remote_follow_exec, remote_disconnect)
8059 (remote_resume, remote_commit_resume, remote_stop)
8060 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
8061 (remote_terminal_ours, remote_wait, remote_fetch_registers)
8062 (remote_prepare_to_store, remote_store_registers)
8063 (remote_flash_erase, remote_flash_done, remote_files_info)
8064 (remote_kill, remote_mourn, remote_insert_breakpoint)
8065 (remote_remove_breakpoint, remote_insert_watchpoint)
8066 (remote_watchpoint_addr_within_range)
8067 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
8068 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
8069 (remote_supports_stopped_by_sw_breakpoint)
8070 (remote_stopped_by_hw_breakpoint)
8071 (remote_supports_stopped_by_hw_breakpoint)
8072 (remote_stopped_by_watchpoint, remote_stopped_data_address)
8073 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
8074 (remote_verify_memory): Refactor as methods of remote_target.
8075 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
8076 parameter.
8077 (remote_xfer_partial, remote_get_memory_xfer_limit)
8078 (remote_search_memory, remote_rcmd, remote_memory_map)
8079 (remote_pid_to_str, remote_get_thread_local_address)
8080 (remote_get_tib_address, remote_read_description): Refactor as
8081 methods of remote_target.
8082 (remote_target::fileio_open, remote_target::fileio_pwrite)
8083 (remote_target::fileio_pread, remote_target::fileio_close): New.
8084 (remote_hostio_readlink, remote_hostio_fstat)
8085 (remote_filesystem_is_local, remote_can_execute_reverse)
8086 (remote_supports_non_stop, remote_supports_disable_randomization)
8087 (remote_supports_multi_process, remote_supports_cond_breakpoints)
8088 (remote_supports_enable_disable_tracepoint)
8089 (remote_supports_string_tracing)
8090 (remote_can_run_breakpoint_commands, remote_trace_init)
8091 (remote_download_tracepoint, remote_can_download_tracepoint)
8092 (remote_download_trace_state_variable, remote_enable_tracepoint)
8093 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
8094 (remote_trace_start, remote_get_trace_status)
8095 (remote_get_tracepoint_status, remote_trace_stop)
8096 (remote_trace_find, remote_get_trace_state_variable_value)
8097 (remote_save_trace_data, remote_get_raw_trace_data)
8098 (remote_set_disconnected_tracing, remote_core_of_thread)
8099 (remote_set_circular_trace_buffer, remote_traceframe_info)
8100 (remote_get_min_fast_tracepoint_insn_len)
8101 (remote_set_trace_buffer_size, remote_set_trace_notes)
8102 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
8103 (remote_disable_btrace, remote_teardown_btrace)
8104 (remote_read_btrace, remote_btrace_conf)
8105 (remote_augmented_libraries_svr4_read, remote_load)
8106 (remote_pid_to_exec_file, remote_can_do_single_step)
8107 (remote_execution_direction, remote_thread_handle_to_thread_info):
8108 Refactor as methods of remote_target.
8109 (init_remote_ops, init_extended_remote_ops): Delete.
8110 (remote_can_async_p, remote_is_async_p, remote_async)
8111 (remote_thread_events, remote_upload_tracepoints)
8112 (remote_upload_trace_state_variables): Refactor as methods of
8113 remote_target.
8114 (_initialize_remote): Remove references to init_remote_ops and
8115 init_extended_remote_ops.
8116
8117 * remote-sim.c (gdbsim_target): New class.
8118 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
8119 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
8120 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
8121 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
8122 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
8123 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
8124 Refactor as methods of gdbsim_target.
8125 (gdbsim_ops): Now a gdbsim_target.
8126 (init_gdbsim_ops): Delete.
8127 (gdbsim_cntrl_c): Adjust.
8128 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
8129
8130 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
8131 (the_amd64_linux_nat_target): New.
8132 (amd64_linux_fetch_inferior_registers)
8133 (amd64_linux_store_inferior_registers): Refactor as methods of
8134 amd64_linux_nat_target.
8135 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
8136 * i386-linux-nat.c: Don't include "linux-nat.h".
8137 (i386_linux_nat_target): New class.
8138 (the_i386_linux_nat_target): New.
8139 (i386_linux_fetch_inferior_registers)
8140 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
8141 as methods of i386_linux_nat_target.
8142 (_initialize_i386_linux_nat): Adjust. Set linux_target.
8143 * inf-child.c (inf_child_ops): Delete.
8144 (inf_child_fetch_inferior_registers)
8145 (inf_child_store_inferior_registers): Delete.
8146 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
8147 methods of inf_child_target.
8148 (inf_child_target::supports_terminal_ours)
8149 (inf_child_target::terminal_init)
8150 (inf_child_target::terminal_inferior)
8151 (inf_child_target::terminal_ours_for_output)
8152 (inf_child_target::terminal_ours, inf_child_target::interrupt)
8153 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
8154 New.
8155 (inf_child_open, inf_child_disconnect, inf_child_close)
8156 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
8157 (inf_child_post_startup_inferior, inf_child_can_run)
8158 (inf_child_pid_to_exec_file): Refactor as methods of
8159 inf_child_target.
8160 (inf_child_follow_fork): Delete.
8161 (inf_child_target::can_create_inferior)
8162 (inf_child_target::can_attach): New.
8163 (inf_child_target::has_all_memory, inf_child_target::has_memory)
8164 (inf_child_target::has_stack, inf_child_target::has_registers)
8165 (inf_child_target::has_execution): New.
8166 (inf_child_fileio_open, inf_child_fileio_pwrite)
8167 (inf_child_fileio_pread, inf_child_fileio_fstat)
8168 (inf_child_fileio_close, inf_child_fileio_unlink)
8169 (inf_child_fileio_readlink, inf_child_use_agent)
8170 (inf_child_can_use_agent): Refactor as methods of
8171 inf_child_target.
8172 (return_zero, inf_child_target): Delete.
8173 (inf_child_target::inf_child_target): New.
8174 * inf-child.h: Include "target.h".
8175 (inf_child_target): Delete function prototype.
8176 (inf_child_target): New class.
8177 (inf_child_open_target, inf_child_mourn_inferior)
8178 (inf_child_maybe_unpush_target): Delete.
8179 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
8180 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
8181 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
8182 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
8183 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
8184 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
8185 (inf_ptrace_wait, inf_ptrace_xfer_partial)
8186 (inf_ptrace_thread_alive, inf_ptrace_files_info)
8187 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
8188 methods of inf_ptrace_target.
8189 (inf_ptrace_target): Delete function.
8190 * inf-ptrace.h: Include "inf-child.h".
8191 (inf_ptrace_target): Delete function declaration.
8192 (inf_ptrace_target): New class.
8193 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
8194 * linux-nat.c (linux_target): New.
8195 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
8196 (linux_nat_target::~linux_nat_target): New.
8197 (linux_child_post_attach, linux_child_post_startup_inferior)
8198 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
8199 (linux_child_remove_fork_catchpoint)
8200 (linux_child_insert_vfork_catchpoint)
8201 (linux_child_remove_vfork_catchpoint)
8202 (linux_child_insert_exec_catchpoint)
8203 (linux_child_remove_exec_catchpoint)
8204 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
8205 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
8206 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
8207 (linux_nat_stopped_data_address)
8208 (linux_nat_stopped_by_sw_breakpoint)
8209 (linux_nat_supports_stopped_by_sw_breakpoint)
8210 (linux_nat_stopped_by_hw_breakpoint)
8211 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
8212 (linux_nat_kill, linux_nat_mourn_inferior)
8213 (linux_nat_xfer_partial, linux_nat_thread_alive)
8214 (linux_nat_update_thread_list, linux_nat_pid_to_str)
8215 (linux_nat_thread_name, linux_child_pid_to_exec_file)
8216 (linux_child_static_tracepoint_markers_by_strid)
8217 (linux_nat_is_async_p, linux_nat_can_async_p)
8218 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
8219 (linux_nat_supports_multi_process)
8220 (linux_nat_supports_disable_randomization, linux_nat_async)
8221 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
8222 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
8223 (linux_nat_fileio_open, linux_nat_fileio_readlink)
8224 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
8225 methods of linux_nat_target.
8226 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
8227 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
8228 parameter.
8229 (check_stopped_by_watchpoint): Adjust.
8230 (linux_xfer_partial): Delete.
8231 (linux_target_install_ops, linux_target, linux_nat_add_target):
8232 Delete.
8233 (linux_nat_target::linux_nat_target): New.
8234 * linux-nat.h: Include "inf-ptrace.h".
8235 (linux_nat_target): New.
8236 (linux_target, linux_target_install_ops, linux_nat_add_target):
8237 Delete function declarations.
8238 (linux_target): Declare global.
8239 * linux-thread-db.c (thread_db_target): New.
8240 (thread_db_target::thread_db_target): New.
8241 (thread_db_ops): Delete.
8242 (the_thread_db_target): New.
8243 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
8244 (thread_db_update_thread_list, thread_db_pid_to_str)
8245 (thread_db_extra_thread_info)
8246 (thread_db_thread_handle_to_thread_info)
8247 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
8248 (thread_db_resume): Refactor as methods of thread_db_target.
8249 (init_thread_db_ops): Delete.
8250 (_initialize_thread_db): Remove reference to init_thread_db_ops.
8251 * x86-linux-nat.c: Don't include "linux-nat.h".
8252 (super_post_startup_inferior): Delete.
8253 (x86_linux_nat_target::~x86_linux_nat_target): New.
8254 (x86_linux_child_post_startup_inferior)
8255 (x86_linux_read_description, x86_linux_enable_btrace)
8256 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
8257 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
8258 methods of x86_linux_nat_target.
8259 (x86_linux_create_target): Delete. Bits folded ...
8260 (x86_linux_add_target): ... here. Now takes a linux_nat_target
8261 pointer.
8262 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
8263 (x86_linux_nat_target): New class.
8264 (x86_linux_create_target): Delete.
8265 (x86_linux_add_target): Now takes a linux_nat_target pointer.
8266 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
8267 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
8268 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
8269 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
8270 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
8271 make extern.
8272 (x86_use_watchpoints): Delete.
8273 * x86-nat.h: Include "breakpoint.h" and "target.h".
8274 (x86_use_watchpoints): Delete.
8275 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
8276 (x86_stopped_by_watchpoint, x86_stopped_data_address)
8277 (x86_insert_watchpoint, x86_remove_watchpoint)
8278 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
8279 (x86_stopped_by_hw_breakpoint): New declarations.
8280 (x86_nat_target): New template class.
8281
8282 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
8283 (the_ppc_linux_nat_target): New.
8284 (ppc_linux_fetch_inferior_registers)
8285 (ppc_linux_can_use_hw_breakpoint)
8286 (ppc_linux_region_ok_for_hw_watchpoint)
8287 (ppc_linux_ranged_break_num_registers)
8288 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
8289 (ppc_linux_insert_mask_watchpoint)
8290 (ppc_linux_remove_mask_watchpoint)
8291 (ppc_linux_can_accel_watchpoint_condition)
8292 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
8293 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
8294 (ppc_linux_watchpoint_addr_within_range)
8295 (ppc_linux_masked_watch_num_registers)
8296 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
8297 (ppc_linux_read_description): Refactor as methods of
8298 ppc_linux_nat_target.
8299 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
8300
8301 * procfs.c (procfs_xfer_partial): Delete forward declaration.
8302 (procfs_target): New class.
8303 (the_procfs_target): New.
8304 (procfs_target): Delete function.
8305 (procfs_auxv_parse, procfs_attach, procfs_detach)
8306 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
8307 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
8308 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
8309 (procfs_create_inferior, procfs_update_thread_list)
8310 (procfs_thread_alive, procfs_pid_to_str)
8311 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
8312 (procfs_stopped_data_address, procfs_insert_watchpoint)
8313 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
8314 (proc_find_memory_regions, procfs_info_proc)
8315 (procfs_make_note_section): Refactor as methods of procfs_target.
8316 (_initialize_procfs): Adjust.
8317 * sol-thread.c (sol_thread_target): New class.
8318 (sol_thread_ops): Now a sol_thread_target.
8319 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
8320 (sol_thread_fetch_registers, sol_thread_store_registers)
8321 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
8322 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
8323 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
8324 (init_sol_thread_ops): Delete.
8325 (_initialize_sol_thread): Adjust. Remove references to
8326 init_sol_thread_ops and complete_target_initialization.
8327
8328 * windows-nat.c (windows_nat_target): New class.
8329 (windows_fetch_inferior_registers)
8330 (windows_store_inferior_registers, windows_resume, windows_wait)
8331 (windows_attach, windows_detach, windows_pid_to_exec_file)
8332 (windows_files_info, windows_create_inferior)
8333 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
8334 (windows_close, windows_pid_to_str, windows_xfer_partial)
8335 (windows_get_tib_address, windows_get_ada_task_ptid)
8336 (windows_thread_name, windows_thread_alive): Refactor as
8337 windows_nat_target methods.
8338 (do_initial_windows_stuff): Adjust.
8339 (windows_target): Delete function.
8340 (_initialize_windows_nat): Adjust.
8341
8342 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
8343 (darwin_mourn_inferior, darwin_kill_inferior)
8344 (darwin_create_inferior, darwin_attach, darwin_detach)
8345 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
8346 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
8347 (darwin_supports_multi_process): Refactor as darwin_nat_target
8348 methods.
8349 (darwin_resume_to, darwin_files_info): Delete.
8350 (_initialize_darwin_inferior): Rename to ...
8351 (_initialize_darwin_nat): ... this. Adjust to C++ification.
8352 * darwin-nat.h: Include "inf-child.h".
8353 (darwin_nat_target): New class.
8354 (darwin_complete_target): Delete.
8355 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
8356 (darwin_target): New.
8357 (i386_darwin_fetch_inferior_registers)
8358 (i386_darwin_store_inferior_registers): Refactor as methods of
8359 darwin_nat_target.
8360 (darwin_complete_target): Delete, with ...
8361 (_initialize_i386_darwin_nat): ... bits factored out here.
8362
8363 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
8364 (the_alpha_linux_nat_target): New.
8365 (alpha_linux_register_u_offset): Refactor as
8366 alpha_linux_nat_target method.
8367 (_initialize_alpha_linux_nat): Adjust.
8368 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
8369 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
8370 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
8371 methods of linux_nat_trad_target.
8372 (linux_trad_target): Delete.
8373 * linux-nat-trad.h (linux_trad_target): Delete function.
8374 (linux_nat_trad_target): New class.
8375 * mips-linux-nat.c (mips_linux_nat_target): New class.
8376 (super_fetch_registers, super_store_registers, super_close):
8377 Delete.
8378 (the_mips_linux_nat_target): New.
8379 (mips64_linux_regsets_fetch_registers)
8380 (mips64_linux_regsets_store_registers)
8381 (mips64_linux_fetch_registers, mips64_linux_store_registers)
8382 (mips_linux_register_u_offset, mips_linux_read_description)
8383 (mips_linux_can_use_hw_breakpoint)
8384 (mips_linux_stopped_by_watchpoint)
8385 (mips_linux_stopped_data_address)
8386 (mips_linux_region_ok_for_hw_watchpoint)
8387 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
8388 (mips_linux_close): Refactor as methods of mips_linux_nat.
8389 (_initialize_mips_linux_nat): Adjust to C++ification.
8390
8391 * aix-thread.c (aix_thread_target): New class.
8392 (aix_thread_ops): Now an aix_thread_target.
8393 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
8394 (aix_thread_fetch_registers, aix_thread_store_registers)
8395 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
8396 (aix_thread_thread_alive, aix_thread_pid_to_str)
8397 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
8398 Refactor as methods of aix_thread_target.
8399 (init_aix_thread_ops): Delete.
8400 (_initialize_aix_thread): Remove references to init_aix_thread_ops
8401 and complete_target_initialization.
8402 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
8403 (rs6000_nat_target): New class.
8404 (the_rs6000_nat_target): New.
8405 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
8406 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
8407 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
8408 (super_create_inferior): Delete.
8409 (_initialize_rs6000_nat): Adjust to C++ification.
8410
8411 * arm-linux-nat.c (arm_linux_nat_target): New class.
8412 (the_arm_linux_nat_target): New.
8413 (arm_linux_fetch_inferior_registers)
8414 (arm_linux_store_inferior_registers, arm_linux_read_description)
8415 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
8416 (arm_linux_remove_hw_breakpoint)
8417 (arm_linux_region_ok_for_hw_watchpoint)
8418 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
8419 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
8420 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
8421 arm_linux_nat_target.
8422 (_initialize_arm_linux_nat): Adjust to C++ification.
8423
8424 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
8425 (the_aarch64_linux_nat_target): New.
8426 (aarch64_linux_fetch_inferior_registers)
8427 (aarch64_linux_store_inferior_registers)
8428 (aarch64_linux_child_post_startup_inferior)
8429 (aarch64_linux_read_description)
8430 (aarch64_linux_can_use_hw_breakpoint)
8431 (aarch64_linux_insert_hw_breakpoint)
8432 (aarch64_linux_remove_hw_breakpoint)
8433 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
8434 (aarch64_linux_region_ok_for_hw_watchpoint)
8435 (aarch64_linux_stopped_data_address)
8436 (aarch64_linux_stopped_by_watchpoint)
8437 (aarch64_linux_watchpoint_addr_within_range)
8438 (aarch64_linux_can_do_single_step): Refactor as methods of
8439 aarch64_linux_nat_target.
8440 (super_post_startup_inferior): Delete.
8441 (_initialize_aarch64_linux_nat): Adjust to C++ification.
8442
8443 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
8444 (the_hppa_linux_nat_target): New.
8445 (hppa_linux_fetch_inferior_registers)
8446 (hppa_linux_store_inferior_registers): Refactor as methods of
8447 hppa_linux_nat_target.
8448 (_initialize_hppa_linux_nat): Adjust to C++ification.
8449
8450 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
8451 (the_ia64_linux_nat_target): New.
8452 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
8453 (ia64_linux_stopped_data_address)
8454 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
8455 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
8456 ia64_linux_nat_target methods.
8457 (super_xfer_partial): Delete.
8458 (_initialize_ia64_linux_nat): Adjust to C++ification.
8459
8460 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
8461 (the_m32r_linux_nat_target): New.
8462 (m32r_linux_fetch_inferior_registers)
8463 (m32r_linux_store_inferior_registers): Refactor as
8464 m32r_linux_nat_target methods.
8465 (_initialize_m32r_linux_nat): Adjust to C++ification.
8466
8467 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
8468 (the_m68k_linux_nat_target): New.
8469 (m68k_linux_fetch_inferior_registers)
8470 (m68k_linux_store_inferior_registers): Refactor as
8471 m68k_linux_nat_target methods.
8472 (_initialize_m68k_linux_nat): Adjust to C++ification.
8473
8474 * s390-linux-nat.c (s390_linux_nat_target): New class.
8475 (the_s390_linux_nat_target): New.
8476 (s390_linux_fetch_inferior_registers)
8477 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
8478 (s390_insert_watchpoint, s390_remove_watchpoint)
8479 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
8480 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
8481 (s390_auxv_parse, s390_read_description): Refactor as methods of
8482 s390_linux_nat_target.
8483 (_initialize_s390_nat): Adjust to C++ification.
8484
8485 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
8486 (the_sparc_linux_nat_target): New.
8487 (_initialize_sparc_linux_nat): Adjust to C++ification.
8488 * sparc-nat.c (sparc_fetch_inferior_registers)
8489 (sparc_store_inferior_registers): Remove target_ops parameter.
8490 * sparc-nat.h (sparc_fetch_inferior_registers)
8491 (sparc_store_inferior_registers): Remove target_ops parameter.
8492 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
8493 (the_sparc64_linux_nat_target): New.
8494 (_initialize_sparc64_linux_nat): Adjust to C++ification.
8495
8496 * spu-linux-nat.c (spu_linux_nat_target): New class.
8497 (the_spu_linux_nat_target): New.
8498 (spu_child_post_startup_inferior, spu_child_post_attach)
8499 (spu_child_wait, spu_fetch_inferior_registers)
8500 (spu_store_inferior_registers, spu_xfer_partial)
8501 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
8502 methods.
8503 (_initialize_spu_nat): Adjust to C++ification.
8504
8505 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
8506 (the_tilegx_linux_nat_target): New.
8507 (fetch_inferior_registers, store_inferior_registers):
8508 Refactor as methods.
8509 (_initialize_tile_linux_nat): Adjust to C++ification.
8510
8511 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
8512 (the_xtensa_linux_nat_target): New.
8513 (xtensa_linux_fetch_inferior_registers)
8514 (xtensa_linux_store_inferior_registers): Refactor as
8515 xtensa_linux_nat_target methods.
8516 (_initialize_xtensa_linux_nat): Adjust to C++ification.
8517
8518 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
8519 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
8520 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
8521 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
8522 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
8523 (fbsd_stopped_by_sw_breakpoint)
8524 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
8525 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
8526 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
8527 (fbsd_post_startup_inferior, fbsd_post_attach)
8528 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
8529 (fbsd_set_syscall_catchpoint)
8530 (super_xfer_partial, super_resume, super_wait)
8531 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
8532 (fbsd_handle_debug_trap): Remove target_ops parameter.
8533 (fbsd_nat_add_target): Delete.
8534 * fbsd-nat.h: Include "inf-ptrace.h".
8535 (fbsd_nat_add_target): Delete.
8536 (USE_SIGTRAP_SIGINFO): Define.
8537 (fbsd_nat_target): New class.
8538
8539 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
8540 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
8541 (amd64bsd_target): Delete.
8542 * amd64-bsd-nat.h: New file.
8543 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
8544 "x86-bsd-nat.h".
8545 (amd64_fbsd_nat_target): New class.
8546 (the_amd64_fbsd_nat_target): New.
8547 (amd64fbsd_read_description): Refactor as method of
8548 amd64_fbsd_nat_target.
8549 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
8550 (_initialize_amd64fbsd_nat): Adjust to C++ification.
8551 * amd64-nat.h (amd64bsd_target): Delete function declaration.
8552 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
8553 (i386bsd_store_inferior_registers): Remove target_ops parameter.
8554 (i386bsd_target): Delete.
8555 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
8556 (i386bsd_fetch_inferior_registers)
8557 (i386bsd_store_inferior_registers): Declare.
8558 (i386_bsd_nat_target): New class.
8559 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
8560 (the_i386_fbsd_nat_target): New.
8561 (i386fbsd_resume, i386fbsd_read_description): Refactor as
8562 i386_fbsd_nat_target methods.
8563 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
8564 (_initialize_i386fbsd_nat): Adjust to C++ification.
8565 * x86-bsd-nat.c (super_mourn_inferior): Delete.
8566 (x86bsd_mourn_inferior, x86bsd_target): Delete.
8567 (_initialize_x86_bsd_nat): Adjust to C++ification.
8568 * x86-bsd-nat.h: Include "x86-nat.h".
8569 (x86bsd_target): Delete declaration.
8570 (x86bsd_nat_target): New class.
8571
8572 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
8573 (the_aarch64_fbsd_nat_target): New.
8574 (aarch64_fbsd_fetch_inferior_registers)
8575 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
8576 aarch64_fbsd_nat_target.
8577 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
8578 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
8579 (the_alpha_bsd_nat_target): New.
8580 (alphabsd_fetch_inferior_registers)
8581 (alphabsd_store_inferior_registers): Refactor as
8582 alpha_bsd_nat_target methods.
8583 (_initialize_alphabsd_nat): Refactor as methods of
8584 alpha_bsd_nat_target.
8585 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
8586 (the_amd64_nbsd_nat_target): New.
8587 (_initialize_amd64nbsd_nat): Adjust to C++ification.
8588 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
8589 (the_amd64_obsd_nat_target): New.
8590 (_initialize_amd64obsd_nat): Adjust to C++ification.
8591 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
8592 (the_arm_fbsd_nat_target): New.
8593 (arm_fbsd_fetch_inferior_registers)
8594 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
8595 (_initialize_arm_fbsd_nat): Refactor as methods of
8596 arm_fbsd_nat_target.
8597 (_initialize_arm_fbsd_nat): Adjust to C++ification.
8598 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
8599 (the_arm_netbsd_nat_target): New.
8600 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
8601 arm_netbsd_nat_target.
8602 (_initialize_arm_netbsd_nat): Adjust to C++ification.
8603 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
8604 (the_hppa_nbsd_nat_target): New.
8605 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
8606 hppa_nbsd_nat_target methods.
8607 (_initialize_hppanbsd_nat): Adjust to C++ification.
8608 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
8609 (the_hppa_obsd_nat_target): New.
8610 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
8611 methods of hppa_obsd_nat_target.
8612 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
8613 add_target.
8614 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
8615 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
8616 add_target.
8617 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
8618 (_initialize_i386obsd_nat): Use add_target.
8619 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
8620 (the_m68k_bsd_nat_target): New.
8621 (m68kbsd_fetch_inferior_registers)
8622 (m68kbsd_store_inferior_registers): Refactor as methods of
8623 m68k_bsd_nat_target.
8624 (_initialize_m68kbsd_nat): Adjust to C++ification.
8625 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
8626 (the_mips_fbsd_nat_target): New.
8627 (mips_fbsd_fetch_inferior_registers)
8628 (mips_fbsd_store_inferior_registers): Refactor as methods of
8629 mips_fbsd_nat_target.
8630 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
8631 add_target.
8632 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
8633 (the_mips_nbsd_nat_target): New.
8634 (mipsnbsd_fetch_inferior_registers)
8635 (mipsnbsd_store_inferior_registers): Refactor as methods of
8636 mips_nbsd_nat_target.
8637 (_initialize_mipsnbsd_nat): Adjust to C++ification.
8638 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
8639 (the_mips64_obsd_nat_target): New.
8640 (mips64obsd_fetch_inferior_registers)
8641 (mips64obsd_store_inferior_registers): Refactor as methods of
8642 mips64_obsd_nat_target.
8643 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
8644 add_target.
8645 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
8646 nbsd_nat_target.
8647 * nbsd-nat.h: Include "inf-ptrace.h".
8648 (nbsd_nat_target): New class.
8649 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
8650 (obsd_wait): Refactor as methods of obsd_nat_target.
8651 (obsd_add_target): Delete.
8652 * obsd-nat.h: Include "inf-ptrace.h".
8653 (obsd_nat_target): New class.
8654 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
8655 (the_ppc_fbsd_nat_target): New.
8656 (ppcfbsd_fetch_inferior_registers)
8657 (ppcfbsd_store_inferior_registers): Refactor as methods of
8658 ppc_fbsd_nat_target.
8659 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
8660 add_target.
8661 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
8662 (the_ppc_nbsd_nat_target): New.
8663 (ppcnbsd_fetch_inferior_registers)
8664 (ppcnbsd_store_inferior_registers): Refactor as methods of
8665 ppc_nbsd_nat_target.
8666 (_initialize_ppcnbsd_nat): Adjust to C++ification.
8667 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
8668 (the_ppc_obsd_nat_target): New.
8669 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
8670 methods of ppc_obsd_nat_target.
8671 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
8672 add_target.
8673 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
8674 (the_sh_nbsd_nat_target): New.
8675 (shnbsd_fetch_inferior_registers)
8676 (shnbsd_store_inferior_registers): Refactor as methods of
8677 sh_nbsd_nat_target.
8678 (_initialize_shnbsd_nat): Adjust to C++ification.
8679 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
8680 (inf_ptrace_xfer_partial): Delete.
8681 (sparc_xfer_partial, sparc_target): Delete.
8682 * sparc-nat.h (sparc_fetch_inferior_registers)
8683 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
8684 (sparc_target): Delete function declaration.
8685 (sparc_target): New template class.
8686 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
8687 (_initialize_sparcnbsd_nat): Adjust to C++ification.
8688 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
8689 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
8690 add_target.
8691 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
8692 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
8693 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
8694 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
8695 add_target.
8696 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
8697 (the_vax_bsd_nat_target): New.
8698 (vaxbsd_fetch_inferior_registers)
8699 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
8700 methods.
8701 (_initialize_vaxbsd_nat): Adjust to C++ification.
8702
8703 * bsd-kvm.c (bsd_kvm_target): New class.
8704 (bsd_kvm_ops): Now a bsd_kvm_target.
8705 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
8706 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
8707 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
8708 bsd_kvm_target.
8709 (bsd_kvm_return_one): Delete.
8710 (bsd_kvm_add_target): Adjust to C++ification.
8711
8712 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
8713 (nto_procfs_target_procfs): New classes.
8714 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
8715 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
8716 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
8717 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
8718 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
8719 (procfs_remove_hw_breakpoint, procfs_resume)
8720 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
8721 (procfs_kill_inferior, procfs_store_registers)
8722 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
8723 as methods of nto_procfs_target.
8724 (nto_procfs_ops): Now an nto_procfs_target_procfs.
8725 (nto_native_ops): Delete.
8726 (procfs_open, procfs_native_open): Delete.
8727 (nto_native_ops): Now an nto_procfs_target_native.
8728 (init_procfs_targets): Adjust to C++ification.
8729 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
8730 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
8731 Refactor as methods of nto_procfs_target.
8732
8733 * go32-nat.c (go32_nat_target): New class.
8734 (the_go32_nat_target): New.
8735 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
8736 (go32_store_registers, go32_xfer_partial, go32_files_info)
8737 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
8738 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
8739 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
8740 (go32_pid_to_str): Refactor as methods of go32_nat_target.
8741 (go32_target): Delete.
8742 (_initialize_go32_nat): Adjust to C++ification.
8743
8744 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
8745 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
8746 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
8747 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
8748 gnu_nat_target.
8749 (gnu_target): Delete.
8750 * gnu-nat.h (gnu_target): Delete.
8751 (gnu_nat_target): New class.
8752 * i386-gnu-nat.c (gnu_base_target): New.
8753 (i386_gnu_nat_target): New class.
8754 (the_i386_gnu_nat_target): New.
8755 (_initialize_i386gnu_nat): Adjust to C++ification.
8756
3fffc070
PA
87572018-05-02 Pedro Alves <palves@redhat.com>
8758
8759 * bfd-target.c (target_bfd_xclose): Rename to ...
8760 (target_bfd_close): ... this.
8761 (target_bfd_reopen): Adjust.
8762 * target.c (target_close): Remove references to to_xclose.
8763 * target.h (target_ops::to_xclose): Delete.
8764 (target_ops::to_close): Update comments.
8765
6798487f
PA
87662018-05-02 Pedro Alves <palves@redhat.com>
8767
8768 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
8769 "linux-nat.h".
8770 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
8771 * inf-ptrace.c (inf_ptrace_register_u_offset)
8772 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
8773 (inf_ptrace_store_register, inf_ptrace_store_registers)
8774 (inf_ptrace_trad_target): Move to ...
8775 * linux-nat-trad.c: ... this new file.
8776 * linux-nat-trad.h: New file.
8777 * linux-nat.c (linux_target_install_ops): Make extern.
8778 (linux_trad_target): Delete.
8779 * linux-nat.h (linux_trad_target): Delete declaration.
8780 (linux_target_install_ops): Declare.
8781 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
8782 "linux-nat.h".
8783
c1955e17
PA
87842018-05-02 Pedro Alves <palves@redhat.com>
8785
8786 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
8787 procfs_target/add_target here.
8788 * procfs.c (procfs_target): Make static.
8789 (_initialize_procfs): Call add_target here.
8790 * procfs.h (struct target_ops): Remove forward declaration.
8791 (procfs_target): Remove declaration.
8792 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
8793
b5c8fcb1
PA
87942018-05-02 Pedro Alves <palves@redhat.com>
8795
8796 * procfs.c (procfs_stopped_by_watchpoint)
8797 (procfs_insert_watchpoint, procfs_remove_watchpoint)
8798 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
8799 Forward declare.
8800 (procfs_use_watchpoints): Delete, move contents...
8801 (procfs_target): ... here.
8802 * procfs.h (procfs_use_watchpoints): Delete declaration.
8803 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
8804 procfs_use_watchpoints.
8805 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
8806 procfs_use_watchpoints.
8807
0489430a
TT
88082018-05-02 Tom Tromey <tom@tromey.com>
8809
8810 PR python/20084:
8811 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
8812 and var_zuinteger_unlimited.
8813 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
8814 and PARAM_ZUINTEGER_UNLIMITED.
8815 (set_parameter_value): Handle var_zuinteger and
8816 var_zuinteger_unlimited.
8817 (add_setshow_generic): Likewise.
8818 (parmpy_init): Likewise.
8819
1632f8ba
DR
88202018-04-28 Dan Robertson <danlrobertson89@gmail.com>
8821
8822 PR rust/23124
8823 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
8824 pointer is not null before dereferencing it.
8825
76761936
TT
88262018-04-30 Tom Tromey <tom@tromey.com>
8827
8828 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
8829 is_mi_like_p.
8830
2d33446d
TT
88312018-04-30 Tom Tromey <tom@tromey.com>
8832
8833 * breakpoint.c (mention): Remove use of is_mi_like_p.
8834 (print_mention_ranged_breakpoint): Likewise.
8835 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
8836 of is_mi_like_p.
8837
f3c6abab
TT
88382018-04-30 Tom Tromey <tom@tromey.com>
8839
8840 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
8841
40c03530
TT
88422018-04-30 Tom Tromey <tom@tromey.com>
8843
8844 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
8845 (info_spu_event_command): Remove some uses of is_mi_like_p.
8846
2038b7fd
TT
88472018-04-30 Tom Tromey <tom@tromey.com>
8848
8849 * python/py-framefilter.c (py_print_single_arg)
8850 (enumerate_locals, py_print_args, py_print_frame): Remove some
8851 uses of is_mi_like_p.
8852
4904c3c6
TT
88532018-04-30 Tom Tromey <tom@tromey.com>
8854
8855 * ui-out.c: Update.
8856 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
8857 * ui-out.h (ui_out::is_mi_like_p): Now const.
8858 (ui_out::do_is_mi_like_p): Now const.
8859 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
8860
7c66fffc
TT
88612018-04-30 Tom Tromey <tom@tromey.com>
8862
8863 * varobj.c (varobj_set_visualizer): Use new_reference.
8864 * python/python.c (gdbpy_decode_line): Use new_reference.
8865 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
8866 new_reference.
8867
bbfa6f00
TT
88682018-04-30 Tom Tromey <tom@tromey.com>
8869
8870 * varobj.c (install_new_value): Use new_reference.
8871 * value.h (value_incref): Return void. Swap intro comment with
8872 value_decref.
8873 * value.c (set_value_parent): Use new_reference.
8874 (value_incref): Return void. Update intro comment.
8875 (release_value): Use new_reference.
8876 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
8877
1831a9f9
TT
88782018-04-30 Tom Tromey <tom@tromey.com>
8879
8880 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
8881 * gdb_bfd.h (new_bfd_ref): Remove.
8882 (gdb_bfd_open): Update comment.
8883 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
8884 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
8885 (gdb_bfd_fdopenr): Use new_reference.
8886 * exec.c (exec_file_attach): Use new_reference.
8887
7c1b5f3d
TT
88882018-04-30 Tom Tromey <tom@tromey.com>
8889
8890 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
8891 method.
8892
e11fb955
TT
88932018-04-30 Tom Tromey <tom@tromey.com>
8894
8895 * jit.c (jit_read_code_entry): Use type_align.
8896 * i386-tdep.c (i386_gdbarch_init): Don't call
8897 set_gdbarch_long_long_align_bit.
8898 * gdbarch.sh: Remove long_long_align_bit.
8899 * gdbarch.c, gdbarch.h: Rebuild.
8900 * arc-tdep.c (arc_type_align): New function.
8901 (arc_gdbarch_init): Use arc_type_align. Don't call
8902 set_gdbarch_long_long_align_bit.
8903
2fff16dd
TT
89042018-04-30 Tom Tromey <tom@tromey.com>
8905
8906 * rust-lang.c (rust_type_alignment): Remove.
8907 (rust_composite_type): Use type_align.
8908
6d7bb824
TT
89092018-04-30 Tom Tromey <tom@tromey.com>
8910
8911 * NEWS: Mention Type.align.
8912 * python/py-type.c (typy_get_alignof): New function.
8913 (type_object_getset): Add "alignof".
8914
007e1530
TT
89152018-04-30 Tom Tromey <tom@tromey.com>
8916
8917 PR exp/17095:
8918 * NEWS: Update.
8919 * std-operator.def (UNOP_ALIGNOF): New operator.
8920 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
8921 New.
8922 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
8923 * c-lang.c (c_op_print_tab): Add alignof.
8924 * c-exp.y (ALIGNOF): New token.
8925 (exp): Add "ALIGNOF" production.
8926 (ident_tokens): Add _Alignof and alignof.
8927
2b4424c3
TT
89282018-04-30 Tom Tromey <tom@tromey.com>
8929
8930 * i386-tdep.c (i386_type_align): New function.
8931 (i386_gdbarch_init): Update.
8932 * gdbarch.sh (type_align): New method.
8933 * gdbarch.c, gdbarch.h: Rebuild.
8934 * arch-utils.h (default_type_align): Declare.
8935 * arch-utils.c (default_type_align): New function.
8936 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
8937 (struct type) <align_log2>: New field.
8938 <instance_flags>: Now a bitfield.
8939 (TYPE_RAW_ALIGN): New macro.
8940 (type_align, type_raw_align, set_type_align): Declare.
8941 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
8942 functions.
8943 * dwarf2read.c (quirk_rust_enum): Set type alignment.
8944 (get_alignment, maybe_set_alignment): New functions.
8945 (read_structure_type, read_enumeration_type, read_array_type)
8946 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
8947 (read_subrange_type, read_base_type): Set type alignment.
8948
d33bc52e
SM
89492018-04-30 Simon Marchi <simon.marchi@ericsson.com>
8950
8951 * dwarf2read.c (read_index_from_section): Use bool.
8952
e28b63a9
FG
89532018-04-29 Fabian Groffen <grobian@gentoo.org>
8954
8955 PR gdb/22950
8956 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
8957 with #ifdef.
8958
cd8c76e4
JR
89592018-04-29 John Reiser <jreiser@BitWagon.com>
8960
8961 PR build/22873
8962 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
8963 last step, and do it atomically.
8964
476d250e
AO
89652018-04-27 Alexandre Oliva <aoliva@redhat.com>
8966
8967 * compile/compile-c-types.c (convert_int, convert_float):
8968 Update for C FE v1.
8969
6873858b
TT
89702018-04-27 Tom Tromey <tom@tromey.com>
8971
8972 PR rust/22545:
8973 * rust-lang.c (rust_inclusive_range_type_p): New function.
8974 (rust_range): Handle inclusive ranges.
8975 (rust_compute_range): Likewise.
8976 * rust-exp.y (struct rust_op) <inclusive>: New field.
8977 (DOTDOTEQ): New constant.
8978 (range_expr): Add "..=" productions.
8979 (operator_tokens): Add "..=" token.
8980 (ast_range): Add "inclusive" parameter.
8981 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
8982 ranges.
8983 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
8984 bounds values.
8985 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
8986 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
8987 Update comments.
8988 * expprint.c (print_subexp_standard): Handle new bounds values.
8989 (dump_subexp_body_standard): Likewise.
8990
632e107b
TT
89912018-04-27 Tom Tromey <tom@tromey.com>
8992
8993 * configure: Rebuild.
8994 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
8995 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
8996 "OVERRIDE".
8997 (class symbol_needs_eval_context): Likewise.
8998 * dwarf2read.c (mock_mapped_index::symbol_name_count)
8999 (mock_mapped_index::symbol_name_at): Use "override". Remove
9000 "virtual".
9001 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
9002 "override".
9003 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
9004 * aarch64-tdep.c (instruction_reader::read): Use "override".
9005 (instruction_reader_test::read): Likewise.
9006 * arm-tdep.c (instruction_reader::read): Use "override".
9007 (instruction_reader_thumb::read): Likewise.
9008
b75abf5b
AK
90092018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
9010
9011 PR remote/9665
9012 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
9013 instead of remote_send.
9014 (remote_send): Remove.
9015
79188d8d
PA
90162018-04-26 Pedro Alves <palves@redhat.com>
9017
9018 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
9019 find_function_start_sal instead of find_pc_line.
9020
f50776aa
PA
90212018-04-26 Pedro Alves <palves@redhat.com>
9022
9023 * breakpoint.c (set_breakpoint_location_function): Handle
9024 mst_data_gnu_ifunc.
9025 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
9026 * elfread.c (elf_symtab_read): Give data symbols with
9027 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
9028 (elf_rel_plt_read): Update comment.
9029 * linespec.c (convert_linespec_to_sals): Handle
9030 mst_data_gnu_ifunc.
9031 (minsym_found): Handle mst_data_gnu_ifunc.
9032 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
9033 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
9034 * parse.c (find_minsym_type_and_address): Handle
9035 mst_data_gnu_ifunc.
9036 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
9037 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
9038 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
9039 comment.
9040 <mst_data_gnu_ifunc>: New enumerator.
9041
20944a6e
PA
90422018-04-26 Pedro Alves <palves@redhat.com>
9043
9044 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
9045 (lookup_minimal_symbol_by_pc_section): ... this. Replace
9046 'want_trampoline' parameter by a lookup_msym_prefer parameter.
9047 Handle it.
9048 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
9049 (lookup_minimal_symbol_by_pc): Adjust.
9050 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
9051 (lookup_solib_trampoline_symbol_by_pc): Adjust.
9052 * minsyms.h (lookup_msym_prefer): New enum.
9053 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
9054 parameter by a lookup_msym_prefer parameter.
9055
1adeb822
PA
90562018-04-26 Pedro Alves <palves@redhat.com>
9057
9058 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
9059 ends in "@plt" instead of looking at the symbol's section.
9060
a0aca7b0
PA
90612018-04-26 Pedro Alves <palves@redhat.com>
9062
9063 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
9064 all references.
9065 (find_pc_partial_function_gnu_ifunc): Rename to ...
9066 (find_pc_partial_function): ... this, and remove references to
9067 'is_gnu_ifunc_p'.
9068 (find_pc_partial_function): Delete old implementation.
9069 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
9070
76af0f26
PA
90712018-04-26 Pedro Alves <palves@redhat.com>
9072
9073 * linespec.c (struct bound_minimal_symbol_search_key): New.
9074 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
9075 skip first line if we found a GNU ifunc minimal symbol by name.
9076 (compare_msymbols): Change parameters to work with a destructured
9077 lhs minsym.
9078 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
9079 functions.
9080
3467ec66
PA
90812018-04-26 Pedro Alves <palves@redhat.com>
9082
9083 * breakpoint.c (set_breakpoint_location_function): Don't resolve
9084 ifunc targets here. Instead, if we have an ifunc minsym, use its
9085 address/name.
9086 (add_location_to_breakpoint): Store the minsym and the objfile in
9087 the breakpoint location.
9088 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
9089 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
9090 Record the minsym in the sal.
9091 * symtab.h (symtab_and_line) <msymbol>: New field.
9092
28f4fa4d
PA
90932018-04-26 Pedro Alves <palves@redhat.com>
9094
9095 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
9096 unless we actually resolved the ifunc.
9097
ca31ab1d
PA
90982018-04-26 Pedro Alves <palves@redhat.com>
9099
9100 * c-exp.y (variable production): Prefer ifunc minsyms over
9101 regular function symbols.
9102 * symtab.c (find_gnu_ifunc): New function.
9103 * minsyms.h (lookup_msym_prefer): New enum.
9104 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
9105 parameter by a lookup_msym_prefer parameter.
9106 * symtab.h (find_gnu_ifunc): New declaration.
9107
8388016d
PA
91082018-04-26 Pedro Alves <palves@redhat.com>
9109
9110 * blockframe.c (find_gnu_ifunc_target_type): New function.
9111 (find_function_type): New.
9112 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
9113 return a value with a memory address.
9114 (eval_call): For calls to GNU ifunc functions, try to find the
9115 type of the target function from the type that the resolver
9116 returns.
9117 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
9118 symbols.
9119 * infcall.c (find_function_return_type): Delete.
9120 (find_function_addr): Add 'function_type' parameter. For calls to
9121 GNU ifunc functions, try to find the type of the target function
9122 from the type that the resolver returns, and return it via
9123 FUNCTION_TYPE.
9124 (call_function_by_hand_dummy): Adjust to use the function type
9125 returned by find_function_addr.
9126 (find_function_addr): Add 'function_type' parameter and move
9127 description here.
9128 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
9129 declarations.
9130
a376e11d
PA
91312018-04-26 Pedro Alves <palves@redhat.com>
9132
9133 * c-exp.y (variable production): Skip finding an alias for ifunc
9134 symbols.
9135
02e169e2
PA
91362018-04-26 Pedro Alves <palves@redhat.com>
9137
9138 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
9139
249b5733
PA
91402018-04-25 Pedro Alves <palves@redhat.com>
9141
9142 * infcmd.c (kill_command): Print the pid as string, not the whole
9143 thread's ptid. Add comment. s/has been killed/killed/ in output
9144 message.
9145 * remote.c (remote_detach_1): Print the pid as string, not the
9146 whole thread's ptid.
9147
f67c0c91
SDJ
91482018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9149 Sergio Durigan Junior <sergiodj@redhat.com>
9150 Pedro Alves <palves@redhat.com>
9151
9152 * infcmd.c (kill_command): Print message when inferior has
9153 been killed.
9154 * inferior.c (print_inferior_events): Remove 'static'. Set as
9155 '1'.
9156 (add_inferior): Improve message printed when
9157 'print_inferior_events' is on.
9158 (exit_inferior): Remove message printed when
9159 'print_inferior_events' is on.
9160 (detach_inferior): Improve message printed when
9161 'print_inferior_events' is on.
9162 (initialize_inferiors): Use 'add_inferior_silent' to set
9163 'current_inferior_'.
9164 * inferior.h (print_inferior_events): Declare here as
9165 'extern'.
9166 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
9167 '[Detaching...]' messages when 'print_inferior_events' is on.
9168 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
9169 as prefix/suffix for messages. Remove periods. Fix erroneous
9170 'Detaching after fork from child...', replace it by '... from
9171 parent...'.
9172 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
9173 prefix/suffix when printing 'Detaching...' messages. Print
9174 them when 'print_inferior_events' is on.
9175 * remote.c (remote_detach_1): Print message when detaching
9176 from inferior and '!is_fork_parent'.
9177
e427af18
TT
91782018-04-24 Tom Tromey <tom@tromey.com>
9179
9180 * cli-out.h: Reindent.
9181
05b1d8d6
TT
91822018-04-24 Tom Tromey <tom@tromey.com>
9183
9184 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
9185 (cli_ui_out::do_field_string): Use fputs_filtered.
9186 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
9187
a95c7dab
TT
91882018-04-23 Tom Tromey <tom@tromey.com>
9189
9190 * guile/scm-frame.c (gdbscm_frame_read_var): Use
9191 gdb::unique_xmalloc_ptr.
9192
458412c3
TT
91932018-04-23 Tom Tromey <tom@tromey.com>
9194
9195 * configure: Rebuild.
9196
db86b02b
RS
91972018-04-22 Rajendra SY <rajendra.sy@gmail.com>
9198
9199 PR gdb/23095
9200 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
9201 prepare_for_testing. Set normal_bp to r_debug_state if target
9202 is bsd.
9203
00aecdcf
PA
92042018-04-21 Pedro Alves <palves@redhat.com>
9205 Rajendra SY <rajendra.sy@gmail.com>
9206
9207 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
9208 * remote.c (extended_remote_attach): In all-stop mode, mark the
9209 thread as executing.
9210
224608c3
PW
92112018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9212
9213 * thread.c (thread_apply_all_command): Fix comment.
9214 (thread_command): Fix comment.
9215
3b74854b
AH
92162018-04-10 Alan Hayward <alan.hayward@arm.com>
9217
9218 * common/tdesc.h (tdesc_create_feature): Remove xml filename
9219 parameter.
9220 * features/aarch64-core.c (create_feature_aarch64_core):
9221 Regenerate.
9222 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
9223 Likewise.
9224 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
9225 Likewise.
9226 * features/i386/32bit-avx512.c
9227 (create_feature_i386_32bit_avx512): Likewise.
9228 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
9229 Likewise.
9230 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
9231 Likewise.
9232 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
9233 Likewise.
9234 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
9235 Likewise.
9236 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
9237 Likewise.
9238 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
9239 Likewise.
9240 * features/i386/64bit-avx512.c
9241 (create_feature_i386_64bit_avx512): Likewise.
9242 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
9243 Likewise.
9244 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
9245 Likewise.
9246 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
9247 Likewise.
9248 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
9249 Likewise.
9250 * features/i386/64bit-segments.c
9251 (create_feature_i386_64bit_segments): Likewise.
9252 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
9253 Likewise.
9254 * features/i386/x32-core.c
9255 (create_feature_i386_x32_core): Likewise.
9256 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
9257 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
9258 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
9259 * target-descriptions.c: In generated code, don't pass xml
9260 filename.
9261
e98577a9
AH
92622018-04-18 Alan Hayward <alan.hayward@arm.com>
9263
9264 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
9265 (print_xml_feature::visit_post): Likewise.
9266 (print_xml_feature::visit): Likewise.
9267 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
9268 (print_xml_feature): Add new class.
9269 * regformats/regdat.sh: Null xmltarget on feature targets.
9270 * target-descriptions.c (struct target_desc): Add xmltarget.
9271 (maintenance_check_tdesc_xml_convert): Add unittest function.
9272 (tdesc_get_features_xml): Add function to get xml.
9273 (maintenance_check_xml_descriptions): Test xml generation.
9274 * xml-tdesc.c (string_read_description_xml): Add function.
9275 * xml-tdesc.h (string_read_description_xml): Add declaration.
9276
ad7fc756
AH
92772018-04-18 Alan Hayward <alan.hayward@arm.com>
9278
9279 * features/Makefile: Add feature marker to targets with new style
9280 target descriptions.
9281 * regformats/aarch64.dat: Regenerate.
9282 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
9283 * regformats/i386/amd64-avx-linux.dat: Likewise.
9284 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
9285 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
9286 * regformats/i386/amd64-linux.dat: Likewise.
9287 * regformats/i386/amd64-mpx-linux.dat: Likewise.
9288 * regformats/i386/amd64.dat: Likewise.
9289 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
9290 * regformats/i386/i386-avx-linux.dat: Likewise.
9291 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
9292 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
9293 * regformats/i386/i386-linux.dat: Likewise.
9294 * regformats/i386/i386-mmx-linux.dat: Likewise.
9295 * regformats/i386/i386-mpx-linux.dat: Likewise.
9296 * regformats/i386/i386.dat: Likewise.
9297 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
9298 * regformats/i386/x32-avx-linux.dat: Likewise.
9299 * regformats/i386/x32-linux.dat: Likewise.
9300 * regformats/tic6x-c62x-linux.dat: Likewise.
9301 * regformats/tic6x-c64x-linux.dat: Likewise.
9302 * regformats/tic6x-c64xp-linux.dat: Likewise.
9303 * regformats/regdat.sh: Parse feature marker.
9304
d278f585
AH
93052018-04-18 Alan Hayward <alan.hayward@arm.com>
9306
9307 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
9308 (tdesc_osabi_name): Likewise.
9309 * target-descriptions.c (tdesc_architecture_name): Add new
9310 function.
9311 (tdesc_osabi_name): Likewise.
9312
eee8a18d
AH
93132018-04-18 Alan Hayward <alan.hayward@arm.com>
9314
9315 * common/tdesc.c (tdesc_predefined_type): Move to here.
9316 (tdesc_named_type): Likewise.
9317 (tdesc_create_vector): Likewise.
9318 (tdesc_create_struct): Likewise.
9319 (tdesc_set_struct_size): Likewise.
9320 (tdesc_create_union): Likewise.
9321 (tdesc_create_flags): Likewise.
9322 (tdesc_create_enum): Likewise.
9323 (tdesc_add_field): Likewise.
9324 (tdesc_add_typed_bitfield): Likewise.
9325 (tdesc_add_bitfield): Likewise.
9326 (tdesc_add_flag): Likewise.
9327 (tdesc_add_enum_value): Likewise.
9328 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
9329 (struct tdesc_type_vector): Likewise.
9330 (struct tdesc_type_field): Likewise.
9331 (struct tdesc_type_with_fields): Likewise.
9332 (tdesc_create_enum): Add declaration.
9333 (tdesc_add_typed_bitfield): Likewise.
9334 (tdesc_add_enum_value): Likewise.
9335 * target-descriptions.c (tdesc_type_field): Move from here.
9336 (tdesc_type_builtin): Likewise.
9337 (tdesc_type_vector): Likewise.
9338 (tdesc_type_with_fields): Likewise.
9339 (tdesc_predefined_types): Likewise.
9340 (tdesc_named_type): Likewise.
9341 (tdesc_create_vector): Likewise.
9342 (tdesc_create_struct): Likewise.
9343 (tdesc_set_struct_size): Likewise.
9344 (tdesc_create_union): Likewise.
9345 (tdesc_create_flags): Likewise.
9346 (tdesc_create_enum): Likewise.
9347 (tdesc_add_field): Likewise.
9348 (tdesc_add_typed_bitfield): Likewise.
9349 (tdesc_add_bitfield): Likewise.
9350 (tdesc_add_flag): Likewise.
9351 (tdesc_add_enum_value): Likewise.
9352 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
9353 (tdesc_add_typed_bitfield): Likewise.
9354 (tdesc_add_enum_value): Likewise.
9355
82ec9bc7
AH
93562018-04-18 Alan Hayward <alan.hayward@arm.com>
9357
9358 * common/tdesc.c (tdesc_feature::accept): Move to here.
9359 (tdesc_feature::operator==): Likewise.
9360 (tdesc_create_reg): Likewise.
9361 * common/tdesc.h (tdesc_type_kind): Likewise.
9362 (struct tdesc_type): Likewise.
9363 (struct tdesc_feature): Likewise.
9364 * regformats/regdat.sh: Create a feature.
9365 * target-descriptions.c (tdesc_type_kind): Move from here.
9366 (tdesc_type): Likewise.
9367 (tdesc_type_up): Likewise.
9368 (tdesc_feature): Likewise.
9369 (tdesc_create_reg): Likewise.
9370
ea3e7d71
AH
93712018-04-18 Alan Hayward <alan.hayward@arm.com>
9372
9373 * Makefile.in: Add arch/tdesc.c
9374 * common/tdesc.c: New file.
9375 * common/tdesc.h (tdesc_element_visitor): Move to here.
9376 (tdesc_element): Likewise.
9377 (tdesc_reg): Likewise.
9378 (tdesc_reg_up): Likewise.
9379 * regformats/regdef.h (reg): Add offset to constructors.
9380 * target-descriptions.c (tdesc_element_visitor): Move from here.
9381 (tdesc_element): Likewise.
9382 (tdesc_reg): Likewise.
9383 (tdesc_reg_up): Likewise.
9384
bedda9ac
TT
93852018-04-17 Tom Tromey <tom@tromey.com>
9386
9387 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
9388 discriminant field.
9389
a037790e
TT
93902018-04-17 Tom Tromey <tom@tromey.com>
9391
9392 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
9393
c7dcbf88
AA
93942018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
9395
9396 * symtab.c (print_symbol_info): Skip printing filename and line
9397 number when `last' is NULL.
9398 (symtab_symbol_info): Use empty string instead of NULL for first
9399 invocation of print_symbol_info.
9400 (rbreak_command): Pass NULL to `last' parameter of
9401 print_symbol_info.
9402
07d28c77
SM
94032018-04-16 Simon Marchi <simon.marchi@ericsson.com>
9404
9405 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
9406 instead of nullptr.
9407
8a3de5e1
PA
94082018-04-16 Pedro Alves <palves@redhat.com>
9409
9410 * MAINTAINERS (sh): Remove.
9411 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
9412 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
9413 (ALLDEPFILES): Remove sh64-tdep.c.
9414 * NEWS: Mentions that support for SH-5/SH64 is removed.
9415 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
9416 (sh*-*-openbsd*): Ditto.
9417 (sh64-*-elf*): Remove.
9418 (sh*): Remove.
9419 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
9420 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
9421 * sh-tdep.c: No longer include "sh64-tdep.h".
9422 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
9423 * sh64-tdep.c, sh64-tdep.h: Remove files.
9424
a2a79012
PA
94252018-04-16 Pedro Alves <palves@redhat.com>
9426
9427 * MAINTAINERS: Remove m88k.
9428 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
9429 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
9430 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
9431 * NEWS: Mention that support for m88k was removed.
9432 * configure.host (m88*-*-*): Remove support.
9433 * configure.nat (m88k-*-*): Remove support.
9434 * configure.tgt (m88*-*-openbsd*): Remove.
9435 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
9436
eda4efb1
SM
94372018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
9438
9439 * configure.tgt (x86_tobjs): New variable.
9440 (amd64_tobjs, i386_tobjs): Use it.
9441
b744723f
AA
94422018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9443
9444 * symtab.c (print_symbol_info): Precede the symbol definition by
9445 the line number when available.
9446 * NEWS: Advertise this enhancement.
9447
4a4495d6
MM
94482018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9449
9450 * NEWS (New options): announce set/show record btrace cpu.
9451 * btrace.c: Include record-btrace.h.
9452 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
9453 the vendor is unknown.
9454 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
9455 Maybe overwrite the btrace configuration's cpu.
9456 (btrace_compute_ftrace): Add cpu parameter. Update callers.
9457 (btrace_fetch): Add cpu parameter. Update callers.
9458 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
9459 Maybe overwrite the btrace configuration's cpu. Skip enabling
9460 errata workarounds if the vendor is unknown.
9461 * python/py-record-btrace.c: Include record-btrace.h.
9462 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
9463 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
9464 * record-btrace.c (record_btrace_cpu_state_kind): New.
9465 (record_btrace_cpu): New.
9466 (set_record_btrace_cpu_cmdlist): New.
9467 (record_btrace_get_cpu): New.
9468 (require_btrace_thread, record_btrace_info)
9469 (record_btrace_resume_thread): Call record_btrace_get_cpu.
9470 (cmd_set_record_btrace_cpu_none): New.
9471 (cmd_set_record_btrace_cpu_auto): New.
9472 (cmd_set_record_btrace_cpu): New.
9473 (cmd_show_record_btrace_cpu): New.
9474 (_initialize_record_btrace): Initialize set/show record btrace cpu
9475 commands.
9476 * record-btrace.h (record_btrace_get_cpu): New.
9477
69f90c75
MM
94782018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9479
9480 * record.c (set_record_command): Fix typo in message.
9481
b85310e1
MM
94822018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9483
9484 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
9485
1d509aa6
MM
94862018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9487
9488 * infrun.c (process_event_stop_test): Call
9489 gdbarch_in_indirect_branch_thunk.
9490 * gdbarch.sh (in_indirect_branch_thunk): New.
9491 * gdbarch.c: Regenerated.
9492 * gdbarch.h: Regenerated.
9493 * x86-tdep.h: New.
9494 * x86-tdep.c: New.
9495 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
9496 (HFILES_NO_SRCDIR): Add x86-tdep.h.
9497 (ALLDEPFILES): Add x86-tdep.c.
9498 * arch-utils.h (default_in_indirect_branch_thunk): New.
9499 * arch-utils.c (default_in_indirect_branch_thunk): New.
9500 * i386-tdep: Include x86-tdep.h.
9501 (i386_in_indirect_branch_thunk): New.
9502 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
9503 function.
9504 * amd64-tdep: Include x86-tdep.h.
9505 (amd64_in_indirect_branch_thunk): New.
9506 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
9507
b4be9bfd
JK
95082018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9509
9510 PR gdb/23053
9511 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
9512 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
9513 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
9514 regression.
9515
53d7df28
TT
95162018-04-12 Tom Tromey <tom@tromey.com>
9517
9518 * rust-lang.c (rust_print_struct_def): Remove univariant code.
9519 (rust_evaluate_subexp): Likewise.
9520
70b33f19
PA
95212018-04-12 Pedro Alves <palves@redhat.com>
9522
9523 * procfs.c (procfs_detach): Make forward declaration's prototype
9524 match definition's protototype.
9525 (proc_get_LDT_entry): Remove stale do_cleanups call.
9526
436411b1
PA
95272018-04-12 Pedro Alves <palves@redhat.com>
9528
9529 * target.h (target_ops::to_has_exited): Delete.
9530 (target_has_exited): Delete.
9531 * target-delegates.c: Regenerate.
9532
20db9c52
PA
95332018-04-11 Pedro Alves <palves@redhat.com>
9534
9535 * target.c (fileio_fh_t::t): Add comment.
9536 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
9537 (target_fileio_close): Handle a NULL target.
9538 (invalidate_fileio_fh): New.
9539 (target_close): Call it.
9540 * remote.c (remote_hostio_send_command): No longer check whether
9541 remote_desc is open.
9542
5ff79300
PA
95432018-04-11 Pedro Alves <palves@redhat.com>
9544
9545 * target.c (fileio_fh_t): Make it a named struct instead of a
9546 typedef.
9547 (fileio_fh_t::is_closed): New method.
9548 (DEF_VEC_O (fileio_fh_t)): Remove.
9549 (fileio_fhandles): Now a std::vector.
9550 (is_closed_fileio_fh): Delete.
9551 (acquire_fileio_fd): Adjust. Rename parameters.
9552 (release_fileio_fd): Adjust.
9553 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
9554 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
9555 (target_fileio_close): Adjust.
9556
6e22e10d
SM
95572018-04-10 Simon Marchi <simon.marchi@ericsson.com>
9558
9559 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
9560 index.
9561
731f534f
PA
95622018-04-10 Pedro Alves <palves@redhat.com>
9563
9564 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
9565 (scoped_finish_thread_state): New class.
9566 * infcmd.c (run_command_1): Use it instead of finish_thread_state
9567 cleanup.
9568 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
9569 (fetch_inferior_event, normal_stop): Likewise.
9570 * thread.c (finish_thread_state_cleanup): Delete.
9571
d5f4488f
SM
95722018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9573 Pedro Alves <palves@redhat.com>
9574
9575 * value.c: Include "selftest.h" and "common/array-view.h".
9576 (struct range) <operator ==>: New.
9577 (test_ranges_contain): New.
9578 (check_ranges_vector): New.
9579 (test_insert_into_bit_range_vector): New.
9580 (_initialize_values): Register selftests.
9581 * common/array-view.h (operator==, operator!=): New.
9582
b24531ed
SM
95832018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9584
9585 * common/gdb_vecs.h (unordered_remove): Add overload that takes
9586 an iterator.
9587 * inline-frame.c: Include <algorithm>.
9588 (struct inline_state): Add constructor.
9589 (inline_state_s): Remove.
9590 (DEF_VEC_O(inline_state_s)): Remove.
9591 (inline_states): Change type to std::vector.
9592 (find_inline_frame_state): Adjust to std::vector.
9593 (allocate_inline_frame_state): Remove.
9594 (clear_inline_frame_state): Adjust to std::vector.
9595 (skip_inline_frames): Adjust to std::vector.
9596
c252925c
SM
95972018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9598
9599 * tracepoint.h (struct trace_state_variable): Add constructor.
9600 <name>: Change type to std::string.
9601 * tracepoint.c (tsv_s): Remove.
9602 (DEF_VEC_O(tsv_s)): Remove.
9603 (tvariables): Change to std::vector.
9604 (create_trace_state_variable): Adjust to std::vector.
9605 (find_trace_state_variable): Likewise.
9606 (find_trace_state_variable_by_number): Likewise.
9607 (delete_trace_state_variable): Likewise.
9608 (trace_variable_command): Adjust to std::string.
9609 (delete_trace_variable_command): Likewise.
9610 (tvariables_info_1): Adjust to std::vector.
9611 (save_trace_state_variables): Likewise.
9612 (start_tracing): Likewise.
9613 (merge_uploaded_trace_state_variables): Adjust to std::vector
9614 and std::string.
9615 * target.h (struct target_ops)
9616 <to_download_trace_state_variable>: Pass reference to
9617 trace_state_variable.
9618 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
9619 * target-delegates.c: Re-generate.
9620 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
9621 (mi_tsv_deleted): Likewise.
9622 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
9623 * remote.c (remote_download_trace_state_variable): Change
9624 pointer to reference and adjust.
9625 * make-target-delegates (parse_argtypes): Handle references.
9626 (write_function_header): Likewise.
9627 (munge_type): Likewise.
9628
c9638d26
SM
96292018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9630
9631 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9632 string_view-selftests.c.
9633 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
9634 testsuite.
9635 * unittests/basic_string_view/cons/char/1.cc: Likewise.
9636 * unittests/basic_string_view/cons/char/2.cc: Likewise.
9637 * unittests/basic_string_view/cons/char/3.cc: Likewise.
9638 * unittests/basic_string_view/element_access/char/1.cc:
9639 Likewise.
9640 * unittests/basic_string_view/element_access/char/empty.cc:
9641 Likewise.
9642 * unittests/basic_string_view/element_access/char/front_back.cc:
9643 Likewise.
9644 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
9645 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
9646 Likewise.
9647 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
9648 Likewise.
9649 * unittests/basic_string_view/modifiers/swap/char/1.cc:
9650 Likewise.
9651 * unittests/basic_string_view/operations/compare/char/1.cc:
9652 Likewise.
9653 * unittests/basic_string_view/operations/compare/char/13650.cc:
9654 Likewise.
9655 * unittests/basic_string_view/operations/copy/char/1.cc:
9656 Likewise.
9657 * unittests/basic_string_view/operations/data/char/1.cc:
9658 Likewise.
9659 * unittests/basic_string_view/operations/find/char/1.cc:
9660 Likewise.
9661 * unittests/basic_string_view/operations/find/char/2.cc:
9662 Likewise.
9663 * unittests/basic_string_view/operations/find/char/3.cc:
9664 Likewise.
9665 * unittests/basic_string_view/operations/find/char/4.cc:
9666 Likewise.
9667 * unittests/basic_string_view/operations/rfind/char/1.cc:
9668 Likewise.
9669 * unittests/basic_string_view/operations/rfind/char/2.cc:
9670 Likewise.
9671 * unittests/basic_string_view/operations/rfind/char/3.cc:
9672 Likewise.
9673 * unittests/basic_string_view/operations/substr/char/1.cc:
9674 Likewise.
9675 * unittests/basic_string_view/operators/char/2.cc: Likewise.
9676 * unittests/string_view-selftests.c: New file.
9677
fdc11678
SM
96782018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9679
9680 * unittests/basic_string_view/capacity/1.cc: New file.
9681 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
9682 * unittests/basic_string_view/cons/char/1.cc: New file.
9683 * unittests/basic_string_view/cons/char/2.cc: New file.
9684 * unittests/basic_string_view/cons/char/3.cc: New file.
9685 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
9686 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
9687 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
9688 * unittests/basic_string_view/element_access/char/1.cc: New file.
9689 * unittests/basic_string_view/element_access/char/2.cc: New file.
9690 * unittests/basic_string_view/element_access/char/empty.cc: New file.
9691 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
9692 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
9693 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
9694 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
9695 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
9696 * unittests/basic_string_view/include.cc: New file.
9697 * unittests/basic_string_view/inserters/char/1.cc: New file.
9698 * unittests/basic_string_view/inserters/char/2.cc: New file.
9699 * unittests/basic_string_view/inserters/char/3.cc: New file.
9700 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
9701 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
9702 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
9703 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
9704 * unittests/basic_string_view/literals/types.cc: New file.
9705 * unittests/basic_string_view/literals/values.cc: New file.
9706 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
9707 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
9708 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
9709 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
9710 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
9711 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
9712 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
9713 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
9714 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
9715 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
9716 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
9717 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
9718 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
9719 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
9720 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
9721 * unittests/basic_string_view/operations/data/char/1.cc: New file.
9722 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
9723 * unittests/basic_string_view/operations/find/char/1.cc: New file.
9724 * unittests/basic_string_view/operations/find/char/2.cc: New file.
9725 * unittests/basic_string_view/operations/find/char/3.cc: New file.
9726 * unittests/basic_string_view/operations/find/char/4.cc: New file.
9727 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
9728 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
9729 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
9730 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
9731 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
9732 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
9733 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
9734 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
9735 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
9736 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
9737 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
9738 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
9739 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
9740 * unittests/basic_string_view/operators/char/2.cc: New file.
9741 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
9742 * unittests/basic_string_view/range_access/char/1.cc: New file.
9743 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
9744 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
9745 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
9746 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
9747 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
9748 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
9749 * unittests/basic_string_view/requirements/typedefs.cc: New file.
9750 * unittests/basic_string_view/typedefs.cc: New file.
9751 * unittests/basic_string_view/types/1.cc: New file.
9752
8345c4a2
SM
97532018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9754
9755 * common/gdb_string_view.h: Remove libstdc++ implementation
9756 details, adjust to gdb reality.
9757 * common/gdb_string_view.tcc: Likewise.
9758 * cli/cli-script.c (struct string_view): Remove.
9759 (user_args) <m_args>: Change element type to gdb::string_view.
9760 (user_args::insert_args): Adjust.
9761
7adcdf08
SM
97622018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9763
9764 * common/gdb_string_view.h: New file.
9765 * common/gdb_string_view.tcc: New file.
9766
41260ac2
SM
97672018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9768
9769 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
9770 * configure: Re-generate.
9771
0bee6dd4
PA
97722018-04-09 Pedro Alves <palves@redhat.com>
9773
9774 * gdbarch.sh: Include "observable.h" instead of "observer.h".
9775 (set_target_gdbarch): Call
9776 gdb::observers::architecture_changed.notify instead of
9777 observer_notify_architecture_changed.
9778
6f14adc5
SM
97792018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9780
9781 * tracepoint.c (struct current_traceframe_cleanup): Remove.
9782 (do_restore_current_traceframe_cleanup): Remove.
9783 (restore_current_traceframe_cleanup_dtor): Remove.
9784 (make_cleanup_restore_current_traceframe): Remove.
9785 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
9786 New.
9787 * tracepoint.h (struct scoped_restore_current_traceframe): New.
9788 * infrun.c (fetch_inferior_event): Use
9789 scoped_restore_current_traceframe.
9790
b2bdb8cf
SM
97912018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9792
9793 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
9794 Remove.
9795 <n_allocated_type_units>: Remove.
9796 <all_type_units>: Change to std::vector.
9797 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
9798 to std::vector change.
9799 (dwarf2_per_objfile::get_cutu): Likewise.
9800 (dwarf2_per_objfile::get_tu): Likewise.
9801 (create_signatured_type_table_from_index): Likewise.
9802 (create_signatured_type_table_from_debug_names): Likewise.
9803 (dw2_symtab_iter_next): Likewise.
9804 (dw2_print_stats): Likewise.
9805 (dw2_expand_all_symtabs): Likewise.
9806 (dw2_expand_marked_cus): Likewise.
9807 (dw2_debug_names_iterator::next): Likewise.
9808 (dwarf2_initialize_objfile): Likewise.
9809 (add_signatured_type_cu_to_table): Likewise.
9810 (create_all_type_units): Likewise.
9811 (add_type_unit): Likewise.
9812 (struct tu_abbrev_offset): Add constructor.
9813 (build_type_psymtabs_1): Adjust to std::vector change.
9814 (print_tu_stats): Likewise.
9815 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
9816 (write_debug_names): Likewise.
9817
b76e467d
SM
98182018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9819
9820 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
9821 Make an std::vector.
9822 <n_comp_units>: Remove.
9823 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
9824 to std::vector change.
9825 (dwarf2_per_objfile::get_cutu): Likewise.
9826 (dwarf2_per_objfile::get_cu): Likewise.
9827 (create_cus_from_index): Likewise.
9828 (create_addrmap_from_index): Likewise.
9829 (create_addrmap_from_aranges): Likewise.
9830 (dwarf2_read_index): Likewise.
9831 (dw2_find_last_source_symtab): Likewise.
9832 (dw2_map_symtabs_matching_filename): Likewise.
9833 (dw2_symtab_iter_next): Likewise.
9834 (dw2_print_stats): Likewise.
9835 (dw2_expand_all_symtabs): Likewise.
9836 (dw2_expand_symtabs_with_fullname): Likewise.
9837 (dw2_expand_marked_cus): Likewise.
9838 (dw2_map_symbol_filenames): Likewise.
9839 (create_cus_from_debug_names): Likewise.
9840 (dwarf2_read_debug_names): Likewise.
9841 (dw2_debug_names_iterator::next): Likewise.
9842 (dwarf2_initialize_objfile): Likewise.
9843 (set_partial_user): Likewise.
9844 (dwarf2_build_psymtabs_hard): Likewise.
9845 (read_comp_units_from_section): Remove arguments, adjust to
9846 std::vector change.
9847 (create_all_comp_units): Adjust to std::vector and
9848 read_comp_units_from_section changes.
9849 (dwarf2_find_containing_comp_unit): Adjust to std::vector
9850 change.
9851 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
9852 (psyms_seen_size): Likewise.
9853 (write_gdbindex): Likewise.
9854 (write_debug_names): Likewise.
9855
12359b5e
SM
98562018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9857
9858 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
9859 with dwarf2_per_objfile.
9860 (create_cus_from_index): Likewise.
9861 (create_signatured_type_table_from_index): Likewise.
9862 (dwarf2_read_index): Likewise.
9863 (dwarf2_initialize_objfile): Likewise.
9864 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
9865 per_cu rather than get_dwarf2_per_objfile.
9866
ff4c9fec
SM
98672018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9868
9869 * dwarf2read.h (struct signatured_type): Forward declare.
9870 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
9871 New methods.
9872 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
9873 (dw2_get_cutu): ...this.
9874 (dwarf2_per_objfile::get_cu): Rename from...
9875 (dw2_get_cu): ...this.
9876 (dwarf2_per_objfile::get_tu): New.
9877 (create_addrmap_from_index): Adjust.
9878 (create_addrmap_from_aranges): Adjust.
9879 (dw2_find_last_source_symtab): Adjust.
9880 (dw2_map_symtabs_matching_filename): Adjust.
9881 (dw2_symtab_iter_next): Adjust.
9882 (dw2_print_stats): Adjust.
9883 (dw2_expand_all_symtabs): Adjust.
9884 (dw2_expand_symtabs_with_fullname): Adjust.
9885 (dw2_expand_marked_cus): Adjust.
9886 (dw_expand_symtabs_matching_file_matcher): Adjust.
9887 (dw2_map_symbol_filenames): Adjust.
9888 (dw2_debug_names_iterator::next): Adjust.
9889 (dwarf2_initialize_objfile): Adjust.
9890 (set_partial_user): Adjust.
9891 (dwarf2_build_psymtabs_hard): Adjust.
9892
5ca3fcb6
SM
98932018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9894
9895 * dwarf2read.c (create_signatured_type_table_from_debug_names):
9896 Remove unused variables.
9897 (dw2_map_symtabs_matching_filename): Likewise.
9898 (dwarf2_record_block_ranges): Likewise.
9899 (dwarf2_read_addr_index): Likewise.
9900 (follow_die_offset): Likewise.
9901
b2e586e8
SM
99022018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9903
9904 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
9905 to symbol_file_add_main.
9906
7c4e78cf
SM
99072018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9908
9909 PR mi/22299
9910 * mi/mi-console.c (do_fputc_async_safe): New.
9911 (mi_console_file::write_async_safe): New.
9912 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
9913 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
9914 New.
9915 * ui-file.c (ui_file::putstrn): Adjust call to
9916 fputstrn_unfiltered.
9917 * utils.c (printchar): Replace do_fputs and do_fprintf
9918 parameters by do_fputc.
9919 (fputstr_filtered): Adjust call to printchar.
9920 (fputstr_unfiltered): Likewise.
9921 (fputstrn_filtered): Likewise.
9922 (fputstrn_unfiltered): Add do_fputc parameter, pass to
9923 printchar.
9924 * utils.h (do_fputc_ftype): New typedef.
9925 (fputstrn_unfiltered): Add do_fputc parameter.
9926
5dc026d3
SM
99272018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9928
9929 * regformats/i386/i386-avx.dat: Remove.
9930
c912f608
SM
99312018-04-07 Simon Marchi <simon.marchi@ericsson.com>
9932
9933 PR gdb/22979
9934 * amd64-tdep.c (amd64_none_init_abi): New function.
9935 (amd64_x32_none_init_abi): New function.
9936 (_initialize_amd64_tdep): Register handlers for x86-64 and
9937 x64_32 with GDB_OSABI_NONE.
9938 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
9939 GDB_OSABI_NONE osabi.
9940
26540402
SM
99412018-04-07 Simon Marchi <simon.marchi@ericsson.com>
9942
9943 PR gdb/22980
9944 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
9945 GDB_OSABI_NONE.
9946 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
9947 * osabi.c (gdb_osabi_names): Add "unknown" entry.
9948
9018be22
SM
99492018-04-07 Simon Marchi <simon.marchi@ericsson.com>
9950
9951 * common/byte-vector.h (char_vector): New type.
9952 * target.h (target_read_alloc): Return
9953 gdb::optional<byte_vector>.
9954 (target_read_stralloc): Return gdb::optional<char_vector>.
9955 (target_get_osdata): Return gdb::optional<char_vector>.
9956 * target.c (target_read_alloc_1): Templatize. Replacement
9957 manual memory management with vector.
9958 (target_read_alloc): Change return type, adjust.
9959 (target_read_stralloc): Change return type, adjust.
9960 (target_get_osdata): Change return type, adjust.
9961 * auxv.c (struct auxv_info) <length>: Remove.
9962 <data>: Change type to gdb::optional<byte_vector>.
9963 (auxv_inferior_data_cleanup): Free auxv_info with delete.
9964 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
9965 (target_auxv_search): Adjust.
9966 (fprint_target_auxv): Adjust.
9967 * avr-tdep.c (avr_io_reg_read_command): Adjust.
9968 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
9969 (linux_make_corefile_notes): Adjust.
9970 * osdata.c (get_osdata): Adjust.
9971 * remote.c (remote_get_threads_with_qxfer): Adjust.
9972 (remote_memory_map): Adjust.
9973 (remote_traceframe_info): Adjust.
9974 (btrace_read_config): Adjust.
9975 (remote_read_btrace): Adjust.
9976 (remote_pid_to_exec_file): Adjust.
9977 * solib-aix.c (solib_aix_get_library_list): Adjust.
9978 * solib-dsbt.c (decode_loadmap): Don't free buf.
9979 (dsbt_get_initial_loadmaps): Adjust.
9980 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
9981 * solib-target.c (solib_target_current_sos): Adjust.
9982 * tracepoint.c (sdata_make_value): Adjust.
9983 * xml-support.c (xinclude_start_include): Adjust.
9984 (xml_fetch_content_from_file): Adjust.
9985 * xml-support.h (xml_fetch_another): Change return type.
9986 (xml_fetch_content_from_file): Change return type.
9987 * xml-syscall.c (xml_init_syscalls_info): Adjust.
9988 * xml-tdesc.c (file_read_description_xml): Adjust.
9989 (fetch_available_features_from_target): Change return type.
9990 (target_fetch_description_xml): Adjust.
9991 (target_read_description_xml): Adjust.
9992
14c88955
TT
99932018-04-06 Tom Tromey <tom@tromey.com>
9994
9995 * value.c (~value): Update.
9996 (struct value) <contents>: Now unique_xmalloc_ptr.
9997 (value_contents_bits_eq, allocate_value_contents)
9998 (value_contents_raw, value_contents_all_raw)
9999 (value_contents_for_printing, value_contents_for_printing_const)
10000 (set_value_enclosing_type): Update.
10001
0c7e6dd8
TT
100022018-04-06 Tom Tromey <tom@tromey.com>
10003
10004 * value.c (range_s): Remove typedef, VEC.
10005 (struct range): Add operator<.
10006 (range_lessthan): Remove.
10007 (ranges_contain): Change type.
10008 (~value): Update.
10009 (struct value) <unavailable, optimized_out>: Now std::vector.
10010 (value_entirely_available)
10011 (value_entirely_covered_by_range_vector)
10012 (value_entirely_unavailable, value_entirely_optimized_out):
10013 Update.
10014 (insert_into_bit_range_vector): Change argument type.
10015 (find_first_range_overlap): Likewise.
10016 (struct ranges_and_idx, value_contents_bits_eq)
10017 (require_not_optimized_out, require_available): Update.
10018 (ranges_copy_adjusted): Change argument types.
10019 (value_optimized_out, value_copy, value_fetch_lazy): Update.
10020
2c8331b9
TT
100212018-04-06 Tom Tromey <tom@tromey.com>
10022
10023 * value.c (~value): Update.
10024 (struct value) <parent>: Now a value_ref_ptr.
10025 (value_parent, set_value_parent, value_address, value_copy):
10026 Update.
10027
466ce3ae
TT
100282018-04-06 Tom Tromey <tom@tromey.com>
10029
10030 * value.c (struct value): Add constructor, destructor, and member
10031 initializers.
10032 (allocate_value_lazy, value_decref): Update.
10033
062d818d
TT
100342018-04-06 Tom Tromey <tom@tromey.com>
10035
10036 * value.c (struct value) <released, next>: Remove.
10037 (all_values): Now a std::vector.
10038 (allocate_value_lazy): Update.
10039 (value_next): Remove.
10040 (value_mark, value_free_to_mark, release_value)
10041 (value_release_to_mark): Update.
10042
a6535de1
TT
100432018-04-06 Tom Tromey <tom@tromey.com>
10044
10045 * value.h (fetch_subexp_value, value_release_to_mark): Update.
10046 (free_value_chain): Remove.
10047 * value.c (free_value_chain): Remove.
10048 (value_release_to_mark): Return a std::vector.
10049 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
10050 std::vector.
10051 (check_condition): Update.
10052 * eval.c (fetch_subexp_value): Change "val_chain" to a
10053 std::vector.
10054 * breakpoint.c (update_watchpoint): Update.
10055 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
10056
b5621201
TT
100572018-04-06 Tom Tromey <tom@tromey.com>
10058
10059 * value.h (free_all_values): Remove.
10060 * value.c (free_all_values): Remove.
10061
4d0266a0
TT
100622018-04-06 Tom Tromey <tom@tromey.com>
10063
10064 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
10065 (value_history_chain, value_history_count): Remove.
10066 (value_history): New global.
10067 (record_latest_value, access_value_history, show_values)
10068 (preserve_values): Update.
10069
b4d61099
TT
100702018-04-06 Tom Tromey <tom@tromey.com>
10071
10072 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
10073 * varobj.c (varobj_set_display_format, varobj_set_value)
10074 (install_default_visualizer, construct_visualizer)
10075 (install_new_value, ~varobj, varobj_get_value_type)
10076 (my_value_of_variable, varobj_editable_p): Update.
10077 * c-varobj.c (c_describe_child, c_value_of_variable)
10078 (cplus_number_of_children, cplus_describe_child): Update.
10079 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
10080 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
10081 (ada_value_of_variable, ada_value_is_changeable_p): Update.
10082
9b558729
TT
100832018-04-06 Tom Tromey <tom@tromey.com>
10084
10085 * printcmd.c (last_examine_address): Change type to
10086 value_ref_ptr.
10087 (do_examine, x_command): Update.
10088
850645cf
TT
100892018-04-06 Tom Tromey <tom@tromey.com>
10090
10091 * value.c (release_value): Update.
10092 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
10093 (struct bpstats) <val>: Now a value_ref_ptr.
10094 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
10095 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
10096 (~watchpoint, print_it_watchpoint, watch_command_1)
10097 (invalidate_bp_value_on_memory_change): Update.
10098
22bc8444
TT
100992018-04-06 Tom Tromey <tom@tromey.com>
10100
10101 * varobj.c (varobj_clear_saved_item)
10102 (update_dynamic_varobj_children, install_new_value, ~varobj):
10103 Update.
10104 * value.h (value_incref): Move declaration earlier.
10105 (value_decref): Rename from value_free.
10106 (struct value_ref_policy): New.
10107 (value_ref_ptr): New typedef.
10108 (struct value_deleter): Remove.
10109 (gdb_value_up): Remove typedef.
10110 (release_value): Change return type.
10111 (release_value_or_incref): Remove.
10112 * value.c (set_value_parent): Update.
10113 (value_incref): Change return type.
10114 (value_decref): Rename from value_free.
10115 (value_free_to_mark, free_all_values, free_value_chain): Update.
10116 (release_value): Return value_ref_ptr.
10117 (release_value_or_incref): Remove.
10118 (record_latest_value, set_internalvar, clear_internalvar):
10119 Update.
10120 * stack.c (info_frame_command): Don't call value_free.
10121 * python/py-value.c (valpy_dealloc, valpy_new)
10122 (value_to_value_object): Update.
10123 * printcmd.c (do_examine): Update.
10124 * opencl-lang.c (lval_func_free_closure): Update.
10125 * mi/mi-main.c (register_changed_p): Don't call value_free.
10126 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
10127 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
10128 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
10129 value_free.
10130 * guile/scm-value.c (vlscm_free_value_smob)
10131 (vlscm_scm_from_value): Update.
10132 * frame.c (frame_register_unwind, frame_unwind_register_signed)
10133 (frame_unwind_register_unsigned, get_frame_register_bytes)
10134 (put_frame_register_bytes): Don't call value_free.
10135 * findvar.c (address_from_register): Don't call value_free.
10136 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
10137 * dwarf2loc.c (entry_data_value_free_closure)
10138 (value_of_dwarf_reg_entry, free_pieced_value_closure)
10139 (dwarf2_evaluate_loc_desc_full): Update.
10140 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
10141 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
10142 (~watchpoint, watch_command_1)
10143 (invalidate_bp_value_on_memory_change): Update.
10144 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
10145
7f8a5d38
SM
101462018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
10147
10148 PR gdb/23022
10149 * warning.m4: Add -Wno-error=deprecated-register.
10150 * configure: Re-generate.
10151
8a76bd3b
TT
101522018-04-05 Tom Tromey <tom@tromey.com>
10153
10154 * linespec.h: Remove include of "vec.h".
10155
8e8d776e
TT
101562018-04-05 Tom Tromey <tom@tromey.com>
10157
10158 * linespec.c (typep): Remove typedef.
10159 (find_methods, find_superclass_methods): Take a std::vector.
10160 (find_method): Use std::vector.
10161
9b2f8581
TT
101622018-04-05 Tom Tromey <tom@tromey.com>
10163
10164 * utils.c (compare_strings): Remove.
10165 * utils.h (compare_strings): Remove.
10166 * objc-lang.h (find_imps): Update.
10167 * objc-lang.c (find_methods): Take a std::vector.
10168 (uniquify_strings, find_imps): Likewise.
10169 * linespec.c (find_methods): Take a std::vector.
10170 (decode_objc): Use std::vector.
10171 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
10172 a std::vector.
10173 (find_method, find_function_symbols): Use std::vector.
10174
459a2e4c
TT
101752018-04-05 Tom Tromey <tom@tromey.com>
10176
10177 * completer.c (completion_tracker::completion_tracker): Remove
10178 cast.
10179 (completion_tracker::discard_completions): Likewise.
10180 * breakpoint.c (ambiguous_names_p): Remove cast.
10181 * ada-lang.c (_initialize_ada_language): Remove cast.
10182 * utils.h (streq): Update.
10183 (streq_hash): Add new declaration.
10184 * utils.c (streq): Return bool.
10185 (streq_hash): New function.
10186
9be2c17a
TT
101872018-04-05 Tom Tromey <tom@tromey.com>
10188
10189 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
10190 Remove a string copy.
10191
f73c6ece
TT
101922018-04-05 Tom Tromey <tom@tromey.com>
10193
10194 * linespec.c (filter_results): Use std::vector.
10195 (decode_line_2, decode_line_full): Update.
10196
53a0f8a2
TT
101972018-04-05 Tom Tromey <tom@tromey.com>
10198
10199 * linespec.c (canonical_to_fullform): Return std::string.
10200 (filter_results): Update.
10201 (struct decode_line_2_item): Add constructor.
10202 <fullform, displayform>: Now std::string.
10203 (decode_line_2_compare_items): Now a std::sort comparator.
10204 (decode_line_2): Update.
10205
a5b5adf5
TT
102062018-04-05 Tom Tromey <tom@tromey.com>
10207
10208 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
10209 (unexpected_linespec_error): Update.
10210 (linespec_parse_basic, parse_linespec): Update.
10211
6a307fc5
TT
102122018-04-05 Tom Tromey <tom@tromey.com>
10213
10214 * linespec.c (linespec_parse_basic): Reindent.
10215
41c1efc6
TT
102162018-04-05 Tom Tromey <tom@tromey.com>
10217
10218 * minsyms.h (iterate_over_minimal_symbols): Update.
10219 * minsyms.c (iterate_over_minimal_symbols): Take a
10220 gdb::function_view.
10221 * linespec.c (struct collect_minsyms): Remove.
10222 (compare_msyms): Now a std::sort comparator.
10223 (add_minsym): Add parameters.
10224 (search_minsyms_for_name): Update. Use std::vector.
10225
c5edbf3d
TT
102262018-04-03 Tom Tromey <tom@tromey.com>
10227
10228 * mipsread.c (read_alphacoff_dynamic_symtab): Use
10229 gdb::byte_vector.
10230
b39efc48
WP
102312018-04-02 Weimin Pan <weimin.pan@oracle.com>
10232
10233 * MAINTAINERS (Write After Approval): Add Weimin Pan.
10234
121ad66c 102352018-04-02 Weimin Pan <weimin.pan@oracle.com>
79f18731
WP
10236
10237 PR gdb/16959
10238 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
10239 printing static type.
10240
09473be8
TT
102412018-04-01 Tom Tromey <tom@tromey.com>
10242
10243 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
10244 (rs6000_xfer_shared_libraries): Update.
10245
ec1f2d91
SM
102462018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10247
10248 * common/gdb_vecs.h (char_ptr): Remove.
10249 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
10250
d8611974
SM
102512018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
10252
10253 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
10254 with std::vector.
10255 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
10256
a18ba4e4
SM
102572018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
10258
10259 * tracepoint.h (struct uploaded_tp): Initialize fields.
10260 <actions, step_actions, cmd_strings>: Change type to
10261 std::vector<char *>.
10262 * tracepoint.c (get_uploaded_tp): Allocate with new.
10263 (free_uploaded_tps): Free with delete.
10264 (parse_tracepoint_definition): Adjust to std::vector change.
10265 * breakpoint.c (read_uploaded_action): Likewise.
10266 (create_tracepoint_from_upload): Likewise.
10267 * ctf.c (ctf_write_uploaded_tp): Likewise.
10268 (SET_ARRAY_FIELD): Likewise.
10269 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
10270
a7961323
TT
102712018-03-30 Tom Tromey <tom@tromey.com>
10272
10273 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
10274 std::unique_ptr.
10275 (svr4_keep_data_in_core): Update.
10276 (svr4_read_so_list): Update.
10277
e83e4e24
TT
102782018-03-30 Tom Tromey <tom@tromey.com>
10279
10280 * windows-nat.c (handle_output_debug_string, handle_exception):
10281 Update.
10282 * target.h (target_read_string): Update.
10283 * target.c (target_read_string): Change "string" to
10284 unique_xmalloc_ptr.
10285 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
10286 Update.
10287 * solib-frv.c (frv_current_sos): Update.
10288 * solib-dsbt.c (dsbt_current_sos): Update.
10289 * solib-darwin.c (darwin_current_sos): Update.
10290 * linux-thread-db.c (inferior_has_bug): Update.
10291 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
10292 Update. Remove alloca.
10293 * ada-lang.c (ada_main_name): Update.
10294
263db9a1
TT
102952018-03-30 Tom Tromey <tom@tromey.com>
10296
10297 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
10298 (struct dwo_file_deleter): New.
10299 (dwo_file_up): New typedef.
10300 (open_and_init_dwo_file): Use dwo_file_up.
10301 (free_dwo_file_cleanup): Remove.
10302
5dafb3d1
TT
103032018-03-30 Tom Tromey <tom@tromey.com>
10304
10305 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
10306 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
10307
11ed8cad
TT
103082018-03-30 Tom Tromey <tom@tromey.com>
10309
10310 * dwarf2read.c (class free_cached_comp_units): New class.
10311 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
10312 (free_cached_comp_units): Remove function.
10313
9ae79dac
TT
103142018-03-30 Tom Tromey <tom@tromey.com>
10315
10316 * utils.h (make_cleanup_unpush_target): Remove.
10317 * inf-ptrace.c (struct target_unpusher): New.
10318 (target_unpush_up) New typedef.
10319 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
10320 target_unpush_up.
10321 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
10322
5aa89276
TT
103232018-03-27 Tom Tromey <tom@tromey.com>
10324
10325 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
10326
1dbeed45
TT
103272018-03-27 Pedro Alves <palves@redhat.com>
10328 Tom Tromey <tom@tromey.com>
10329
10330 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
10331 destructor. Now a class.
10332 (gdb_readline_wrapper_cleanup): Remove function.
10333 (gdb_readline_wrapper): Remove cleanups.
10334
c819b2c0
TT
103352018-03-27 Tom Tromey <tom@tromey.com>
10336
10337 * typeprint.h (struct type_print_options) <local_typedefs,
10338 global_typedefs>: Remove "struct" keyword.
10339 (class typedef_hash_table): New class.
10340 (recursively_update_typedef_hash, add_template_parameters)
10341 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
10342 (find_typedef_in_hash): Don't declare.
10343 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
10344 (typedef_hash_table::recursively_update): Rename from
10345 recursively_update_typedef_hash. Now a member.
10346 (typedef_hash_table::add_template_parameters): Rename from
10347 add_template_parameters. Now a member.
10348 (typedef_hash_table::typedef_hash_table): Now a constructor;
10349 rename from create_typedef_hash.
10350 (typedef_hash_table::~typedef_hash_table): Now a destructor;
10351 rename from free_typedef_hash.
10352 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
10353 (do_free_global_table): Remove.
10354 (typedef_hash_table::typedef_hash_table): New constructor; renamed
10355 from copy_type_recursive.
10356 (create_global_typedef_table): Remove.
10357 (typedef_hash_table::find_global_typedef): Now a member of
10358 typedef_hash_table.
10359 (typedef_hash_table::find_typedef): Rename from
10360 find_typedef_in_hash; now a member.
10361 (whatis_exp): Update.
10362 * extension.h (struct ext_lang_type_printers): Add constructor and
10363 destructor.
10364 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
10365 declare.
10366 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
10367 Now a constructor; rename from start_ext_lang_type_printers.
10368 (ext_lang_type_printers): Now a destructor; rename from
10369 free_ext_lang_type_printers.
10370 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
10371 Update.
10372 (c_type_print_base_struct_union): Update. Remove cleanups.
10373
608219fb
TT
103742018-03-27 Tom Tromey <tom@tromey.com>
10375
10376 * dwarf-index-write.c: Include <cmath>.
10377
3fcded8f
JB
103782018-03-27 Joel Brobecker <brobecker@adacore.com>
10379
10380 * NEWS: Add entry describing new "set|show varsize-limit" command.
10381 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
10382 command.
10383 * printcmd.c (_initialize_printcmd): Add "set var" alias of
10384 "set variable".
10385
cd4fb1b2
SM
103862018-03-27 Simon Marchi <simon.marchi@ericsson.com>
10387
10388 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
10389 dwarf-index-write.c
10390 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
10391 * dwarf-index-common.c: New file.
10392 * dwarf-index-common.h: New file.
10393 * dwarf-index-write.c: New file.
10394 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
10395 (struct dwarf2_section_info): Move from here.
10396 (dwarf2_section_info_def): Likewise.
10397 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
10398 (offset_type): Likewise.
10399 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
10400 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
10401 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
10402 (byte_swap): Likewise.
10403 (MAYBE_SWAP): Likewise.
10404 (dwarf2_per_cu_ptr): Likewise.
10405 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
10406 (struct tu_stats): Likewise.
10407 (struct dwarf2_per_objfile): Likewise.
10408 (struct dwarf2_per_cu_data): Likewise.
10409 (struct signatured_type): Likewise.
10410 (sig_type_ptr): Likewise.
10411 (DEF_VEC_P (sig_type_ptr)): Likewise.
10412 (INDEX4_SUFFIX): Likewise.
10413 (INDEX5_SUFFIX): Likewise.
10414 (DEBUG_STR_SUFFIX): Likewise.
10415 (dwarf2_read_section): Make non-static.
10416 (mapped_index_string_hash): Move from here.
10417 (dwarf5_djb_hash): Likewise.
10418 (file_write): Likewise.
10419 (class data_buf): Likewise.
10420 (struct symtab_index_entry): Likewise.
10421 (struct mapped_symtab): Likewise.
10422 (find_slot): Likewise.
10423 (hash_expand): Likewise.
10424 (add_index_entry): Likewise.
10425 (uniquify_cu_indices): Likewise.
10426 (class c_str_view): Likewise.
10427 (class c_str_view_hasher): Likewise.
10428 (class vector_hasher): Likewise.
10429 (write_hash_table): Likewise.
10430 (psym_index_map): Likewise.
10431 (struct addrmap_index_data): Likewise.
10432 (add_address_entry): Likewise.
10433 (add_address_entry_worker): Likewise.
10434 (write_address_map): Likewise.
10435 (symbol_kind): Likewise.
10436 (write_psymbols): Likewise.
10437 (struct signatured_type_index_data): Likewise.
10438 (write_one_signatured_type): Likewise.
10439 (recursively_count_psymbols): Likewise.
10440 (recursively_write_psymbols): Likewise.
10441 (class debug_names): Likewise.
10442 (check_dwarf64_offsets): Likewise.
10443 (psyms_seen_size): Likewise.
10444 (write_gdbindex): Likewise.
10445 (write_debug_names): Likewise.
10446 (assert_file_size): Likewise.
10447 (write_psymtabs_to_index): Likewise.
10448 (save_gdb_index_command): Likewise.
10449 (_initialize_dwarf2_read): Don't register the "save gdb-index"
10450 command.
10451 * dwarf2read.h: New file.
10452
59cc4834
JB
104532018-03-27 Joel Brobecker <brobecker@adacore.com>
10454
10455 PR gdb/22670
10456 * dwarf2read.c (dwarf2_physname): Do not return the demangled
10457 symbol name if the CU's language stores symbol names in linkage
10458 format.
10459 * language.h (struct language_defn)
10460 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
10461 all instances of this struct.
10462
67501539
TT
104632018-03-26 Tom Tromey <tom@tromey.com>
10464
10465 * stack.c (backtrace_command_1): Remove verbose code.
10466
76c939ac
TT
104672018-03-26 Tom Tromey <tom@tromey.com>
10468
10469 * python/py-framefilter.c (py_print_type): Don't catch
10470 exceptions. Return void.
10471 (py_print_value): Likewise.
10472 (py_print_single_arg): Likewise.
10473 (enumerate_args): Don't catch exceptions.
10474 (py_print_args): Likewise.
10475 (py_print_frame): Likewise.
10476 (gdbpy_apply_frame_filter): Catch exceptions here.
10477
9507b29c
TT
104782018-03-26 Tom Tromey <tom@tromey.com>
10479
10480 * stack.c (_initialize_stack): Remove trailing newlines from help
10481 text. Add "Usage" line to "backtrace" help.
10482
eb68e487
TT
104832018-03-26 Tom Tromey <tom@tromey.com>
10484
10485 PR python/16486:
10486 * python/py-framefilter.c (py_print_args): Call wrap_hint.
10487
1f111921
TT
104882018-03-26 Tom Tromey <tom@tromey.com>
10489
10490 * python/py-framefilter.c (py_print_single_arg): Return
10491 EXT_LANG_BT_ERROR from catch.
10492
fb7eb8b5
TT
104932018-03-26 Tom Tromey <tom@tromey.com>
10494
10495 PR backtrace/15584:
10496 * stack.c (backtrace_command_1): Move some code into no-filters
10497 "if".
10498
4ca59a9f
TT
104992018-03-26 Tom Tromey <tom@tromey.com>
10500
10501 * python/py-framefilter.c (throw_quit_or_print_exception): New
10502 function.
10503 (gdbpy_apply_frame_filter): Use it.
10504
92256134
TT
105052018-03-26 Tom Tromey <tom@tromey.com>
10506
10507 PR cli/17716:
10508 * python/py-framefilter.c (py_print_type, py_print_value)
10509 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
10510 RETURN_MASK_ERROR.
10511
7a630bc2
TT
105122018-03-26 Tom Tromey <tom@tromey.com>
10513
10514 * python/py-framefilter.c (enumerate_args): Use
10515 gdb::unique_xmalloc_ptr.
10516
63283d4a
TT
105172018-03-26 Tom Tromey <tom@tromey.com>
10518
10519 * python/py-framefilter.c (py_print_frame): Return
10520 EXT_LANG_BT_OK.
10521 (gdbpy_apply_frame_filter): Update comment.
10522 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
10523 Remove.
10524 <EXT_LANG_BT_NO_FILTERS>: Change value.
10525
978d6c75
TT
105262018-03-26 Tom Tromey <tom@tromey.com>
10527
10528 PR backtrace/15582:
10529 * stack.c (backtrace_command): Parse "hide" argument.
10530 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
10531 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
10532 constant.
10533
1cf7e640
TT
105342018-03-26 Tom Tromey <tom@tromey.com>
10535
10536 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
10537 add "flags".
10538 (backtrace_command): Remove "fulltrace", add "flags".
10539
ea3b0687
TT
105402018-03-26 Tom Tromey <tom@tromey.com>
10541
10542 * stack.c (backtrace_command): Rewrite command line parsing.
10543
9f034d75
SM
105442018-03-26 Simon Marchi <simon.marchi@ericsson.com>
10545
10546 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
10547
ce1459e5
SM
105482018-03-26 Simon Marchi <simon.marchi@ericsson.com>
10549
10550 * filename-seen-cache.h: Add include guard.
10551
4f7ae6f5
KS
105522018-03-26 Keith Seitz <keiths@redhat.com>
10553
10554 * symfile.c (place_section): Remove "struct" from section_addr_info
10555 in comment.
10556 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
10557 "struct" keyword from section_addr_info.
10558
5cd3e386
AH
105592018-03-26 Alan Hayward <alan.hayward@arm.com>
10560
10561 * regformats/regdef.h (reg): Add constructors.
10562
3e5ef9a4
PA
105632018-03-25 Pedro Alves <palves@redhat.com>
10564
10565 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
10566 if then/else bodies in var_func_name extraction.
10567
c88d2fcc 105682018-03-23 Weimin Pan <weimin.pan@oracle.com>
bce02d88
WP
10569
10570 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
10571 lookup_minimal_symbol() to find symbol entry.
10572 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
10573
b7fee5a3
KS
105742018-03-23 Keith Seitz <keiths@redhat.com>
10575
10576 PR c++/22968
10577 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
10578 nested type definitions for C++, too.
10579
2cc9b304
TT
105802018-03-23 Tom Tromey <tom@tromey.com>
10581
10582 * machoread.c (struct oso_el): Add a constructor. Don't define as
10583 a typedef.
10584 (macho_register_oso): Remove.
10585 (macho_symtab_read): Take a std::vector.
10586 (oso_el_compare_name): Now a std::sort comparator.
10587 (macho_symfile_read_all_oso): Take a std::vector.
10588 (macho_symfile_read): Use std::vector. Remove cleanups.
10589
a2b2bc12
TT
105902018-03-22 Tom Tromey <tom@tromey.com>
10591
10592 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
10593 (record_full_goto_bookmark): Use std::string.
10594
7a8f494c
PFC
105952018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10596
10597 PR tdep/18295
10598 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
10599 a single mask.
10600
dd6d677f
PFC
106012018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10602
10603 * rs6000-tdep.c (store_insn_p): New function.
10604 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
10605 and cr_reg to their unshifted values. Use store_insn_p to
10606 match LR saves using either R1 or fdata->alloca_reg. Use
10607 store_insn_p to match CR saves. Set alloca_reg_offset
10608 when alloca_reg and framep are set. Remove lr_reg shift
10609 when assigning to fdata->lr_register.
10610
26d6cec4
AA
106112018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
10612
10613 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
10614 command line args instead of emitting a warning.
10615
5d9310c4
SM
106162018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
10617
10618 * tracepoint.h (struct static_tracepoint_marker): Initialize
10619 fields, define default constructor, move constructor and move
10620 assignment, disable the rest.
10621 <str_id, extra>: Make std::string.
10622 (release_static_tracepoint_marker): Remove.
10623 (free_current_marker): Remove.
10624 * tracepoint.c (free_current_marker): Remove.
10625 (parse_static_tracepoint_marker_definition): Adjust to
10626 std::string, use new hex2str overload.
10627 (release_static_tracepoint_marker): Remove.
10628 (print_one_static_tracepoint_marker): Get marker by reference
10629 and adjust to std::string.
10630 (info_static_tracepoint_markers_command): Adjust to std::vector
10631 changes
10632 * target.h (static_tracepoint_marker_p): Remove typedef.
10633 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
10634 (struct target_ops) <to_static_tracepoint_marker_at>: Return
10635 bool.
10636 <to_static_tracepoint_markers_by_strid>: Return std::vector.
10637 * target-debug.h
10638 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
10639 (target_debug_print_std_vector_static_tracepoint_marker): New.
10640 (target_debug_print_struct_static_tracepoint_marker_p): Rename
10641 to...
10642 (target_debug_print_static_tracepoint_marker_p): ... this.
10643 * target-delegates.c: Re-generate.
10644 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
10645 Make std::string.
10646 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
10647 (decode_static_tracepoint_spec): Adjust to std::vector.
10648 (tracepoint_print_one_detail): Adjust to std::string.
10649 (strace_marker_decode_location): Adjust to std::string.
10650 (update_static_tracepoint): Adjust to std::string, remove call
10651 to release_static_tracepoint_marker.
10652 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
10653 Adjust to std::vector.
10654 * remote.c (remote_static_tracepoint_marker_at): Return bool.
10655 (remote_static_tracepoint_markers_by_strid): Adjust to
10656 std::vector.
10657 * common/rsp-low.h (hex2str): New overload with explicit count
10658 of bytes.
10659 * common/rsp-low.c (hex2str): New overload with explicit count
10660 of bytes.
10661 * unittests/rsp-low-selftests.c (test_hex2str): New function.
10662 (_initialize_rsp_low_selftests): Add test_hex2str test.
10663 * unittests/tracepoint-selftests.c
10664 (test_parse_static_tracepoint_marker_definition): Adjust to
10665 std::string.
10666
62c222b6
SM
106672018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
10668
10669 * tracepoint.c (parse_static_tracepoint_marker_definition):
10670 Consider case where the definition is followed by more
10671 definitions.
10672 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10673 tracepoint-selftests.c.
10674 * unittests/tracepoint-selftests.c: New.
10675
7eb2418f
PFC
106762018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10677
10678 * MAINTAINERS (Write After Approval): Add Pedro Franco de
10679 Carvalho.
10680
7cbe16e9
SR
106812018-03-20 Stephen Roberts <stephen.roberts@arm.com>
10682
3d6b3b82 10683 * symtab.c (find_pc_sect_line): fixed indentation.
7cbe16e9 10684
4ee89e90
SR
106852018-03-20 Stephen Roberts <stephen.roberts@arm.com>
10686
3d6b3b82 10687 * symtab.c (find_pc_sect_line): now uses binary search.
4ee89e90 10688
92630041
TT
106892018-03-19 Tom Tromey <tom@tromey.com>
10690
10691 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
10692 "IDENT" production.
10693
76727919
TT
106942018-03-19 Pedro Alves <palves@redhat.com>
10695 Tom Tromey <tom@tromey.com>
10696
10697 * unittests/observable-selftests.c: New file.
10698 * common/observable.h: New file.
10699 * observable.h: New file.
10700 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
10701 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
10702 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
10703 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
10704 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
10705 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
10706 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
10707 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
10708 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
10709 python/py-breakpoint.c, python/py-finishbreakpoint.c,
10710 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
10711 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
10712 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
10713 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
10714 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
10715 tui/tui-interp.c, valops.c: Update all users.
10716 * tui/tui-hooks.c (tui_bp_created_observer)
10717 (tui_bp_deleted_observer, tui_bp_modified_observer)
10718 (tui_inferior_exit_observer, tui_before_prompt_observer)
10719 (tui_normal_stop_observer, tui_register_changed_observer):
10720 Remove.
10721 (tui_observers_token): New global.
10722 (attach_or_detach, tui_attach_detach_observers): New functions.
10723 (tui_install_hooks, tui_remove_hooks): Use
10724 tui_attach_detach_observers.
10725 * record-btrace.c (record_btrace_thread_observer): Remove.
10726 (record_btrace_thread_observer_token): New global.
10727 * observer.sh: Remove.
10728 * observer.c: Rename to observable.c.
10729 * observable.c (namespace gdb_observers): Define new objects.
10730 (observer_debug): Move into gdb_observers namespace.
10731 (struct observer, struct observer_list, xalloc_observer_list_node)
10732 (xfree_observer_list_node, generic_observer_attach)
10733 (generic_observer_detach, generic_observer_notify): Remove.
10734 (_initialize_observer): Update.
10735 Don't include observer.inc.
10736 * Makefile.in (generated_files): Remove observer.h, observer.inc.
10737 (clean mostlyclean): Likewise.
10738 (observer.h, observer.inc): Remove targets.
10739 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
10740 (COMMON_SFILES): Use observable.c, not observer.c.
10741 * .gitignore: Remove observer.h.
10742
1cb1f3da
TT
107432018-03-18 Tom Tromey <tom@tromey.com>
10744
10745 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
10746 gdb::def_vector.
10747 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
10748
a06ab151
TT
107492018-03-17 Tom Tromey <tom@tromey.com>
10750
10751 * auto-load.c (auto_load_objfile_script_1): Use std::string.
10752
770623f7
TT
107532018-03-17 Tom Tromey <tom@tromey.com>
10754
10755 * target.c (class scoped_target_fd): New.
10756 (target_fileio_close_cleanup): Remove.
10757 (target_fileio_read_alloc_1): Use scoped_target_fd.
10758
39be3c7e
SM
107592018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
10760
10761 * silent-rules.mk: New.
10762 * Makefile.in: Include silent-rules.mk
10763 (srcdir, VPATH, top_srcdir): Move up.
10764 (COMPILE): Add ECHO_CXX.
10765 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
10766 (init.c): Add ECHO_INIT_C.
10767 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
10768 (version.c): Add ECHO_GEN.
10769 (printcmd.o): Add ECHO_CXX.
10770 (target-float.o): Add ECHO_CXX.
10771 (ada-exp.o): Add ECHO_CXX.
10772 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
10773 (insight$(EXEEXT)): Add ECHO_CXXLD.
10774 * gnulib/configure.ac: Add AM_SILENT_RULES.
10775 * gnulib/aclocal.m4: Re-generate.
10776 * gnulib/configure: Re-generate.
10777 * gnulib/import/Makefile.in: Re-generate.
10778
37e136b1
TT
107792018-03-16 Tom Tromey <tom@tromey.com>
10780
10781 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
10782 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
10783 * utils.c (do_free_section_addr_info)
10784 (make_cleanup_free_section_addr_info): Remove.
10785 * symfile.h (struct other_sections): Add constructor.
10786 (struct section_addr_info): Remove.
10787 (section_addr_info): New typedef.
10788 (struct sym_fns) <sym_offsets>: Change type of parameter.
10789 (build_section_addr_info_from_objfile)
10790 (relative_addr_info_to_section_offsets, addr_info_make_relative)
10791 (default_symfile_offsets, symbol_file_add)
10792 (symbol_file_add_from_bfd)
10793 (build_section_addr_info_from_section_table): Update.
10794 (alloc_section_addr_info, free_section_addr_info): Don't declare.
10795 * symfile.c (alloc_section_addr_info): Remove.
10796 (build_section_addr_info_from_section_table): Change return type.
10797 Update.
10798 (build_section_addr_info_from_bfd)
10799 (build_section_addr_info_from_objfile): Likewise.
10800 (free_section_addr_info): Remove.
10801 (relative_addr_info_to_section_offsets): Change type of "addrs".
10802 (addrs_section_compar): Now a std::sort comparator.
10803 (addrs_section_sort): Change return type.
10804 (addr_info_make_relative): Change type of "addrs". Update.
10805 (default_symfile_offsets, syms_from_objfile_1)
10806 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
10807 (symbol_file_add_separate): Update.
10808 (symbol_file_add): Change type of "addrs". Update.
10809 (add_symbol_file_command): Update. Remove cleanups.
10810 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
10811 cleanups.
10812 * symfile-debug.c (debug_sym_offsets): Change type of "info".
10813 * solib.c (solib_read_symbols): Update.
10814 * objfiles.c (objfile_relocate): Update. Remove cleanups.
10815 * machoread.c (macho_symfile_offsets): Update.
10816 * jit.c (jit_bfd_try_read_symtab): Update.
10817
03afa6ef
SM
108182018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
10819
10820 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10821 unittests/utils-selftests.c.
10822 * unittests/utils-selftests.c: New file.
10823
3ae9ce5d
TT
108242018-03-14 Tom Tromey <tom@tromey.com>
10825
10826 PR cli/14977:
10827 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
10828 for NULL.
10829
b8c2339b
TT
108302018-03-14 Tom Tromey <tom@tromey.com>
10831
10832 PR cli/19918:
10833 * printcmd.c (printf_pointer): Allow "-" in format.
10834
80ae639d
TT
108352018-03-14 Tom Tromey <tom@tromey.com>
10836
10837 * printcmd.c (_initialize_printcmd): Add usage to printf.
10838
0d671d99
YQ
108392018-03-14 Yao Qi <qiyao@sourceware.org>
10840
10841 * MAINTAINERS: Update my email address.
10842
b577b6af
TT
108432018-03-13 Tom Tromey <tom@tromey.com>
10844
10845 * machoread.c (macho_check_dsym): Change filenamep to a
10846 std::string*.
10847 (macho_symfile_read): Update.
10848 * symfile.c (load_command): Use std::string.
10849
89a3b63e
AB
108502018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
10851
10852 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
10853 to error message string.
10854 (riscv_register_name): Use xsnprintf instead of sprintf.
10855 (riscv_insn::fetch_instruction): Use gdb_assert instead of
10856 internal_error.
10857 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
10858 error.
10859 (riscv_push_dummy_call): Likewise.
10860
984c7238
TT
108612018-03-12 Tom Tromey <tom@tromey.com>
10862
10863 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
10864 Use gdb::byte_vector.
10865 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
10866
933522d1
YQ
108672018-03-12 Yao Qi <yao.qi@linaro.org>
10868
10869 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
10870 parameter type to readable_regcache.
10871 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
10872 the declaration.
10873
be2daae6
TT
108742018-03-11 Tom Tromey <tom@tromey.com>
10875
10876 * dwarf2read.c (struct nextfield): Add initializers.
10877 (struct nextfnfield): Remove.
10878 (struct fnfieldlist): Add initializers. Remove "length" and
10879 "head", use std::vector.
10880 (struct decl_field_list): Remove.
10881 (struct field_info): Add initializers.
10882 <fields, baseclasses>: Now std::vector.
10883 <nbaseclasses, nfnfields, typedef_field_list_count,
10884 nested_types_list_count>: Remove.
10885 (dwarf2_add_field, dwarf2_add_type_defn)
10886 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
10887 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
10888 (process_structure_scope): Update.
10889
484cf504
TT
108902018-03-11 Tom Tromey <tom@tromey.com>
10891
10892 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
10893 for use by std::sort.
10894 (build_type_psymtabs_1): Use std::vector.
10895
9bd8e0b0
EZ
108962018-03-09 Eli Zaretskii <eliz@gnu.org>
10897
10898 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
10899 and LIBMPFR in the printed configuration.
10900
5dc1a704
TT
109012018-03-08 Tom Tromey <tom@tromey.com>
10902
10903 * source.c (get_filename_and_charpos): Use scoped_fd.
10904 * nto-procfs.c (procfs_open_1): Use scoped_fd.
10905 (procfs_pidlist): Likewise.
10906 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
10907 (iterate_over_mappings): Likewise.
10908
fdf07f3a
TT
109092018-03-08 Tom Tromey <tom@tromey.com>
10910
10911 * infcall.c (struct call_return_meta_info)
10912 <stack_temporaries_enabled>: Remove.
10913 (get_call_return_value, call_function_by_hand_dummy): Update.
10914 * thread.c (disable_thread_stack_temporaries): Remove.
10915 (enable_thread_stack_temporaries): Remove.
10916 (thread_stack_temporaries_enabled_p): Return bool.
10917 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
10918 (get_last_thread_stack_temporary): Update.
10919 * eval.c (evaluate_subexp): Update.
10920 * gdbthread.h (class enable_thread_stack_temporaries): Now a
10921 class, not a function.
10922 (value_ptr, value_vec): Remove typedefs.
10923 (class thread_info) <stack_temporaries_enabled>: Now bool.
10924 <stack_temporaries>: Now a std::vector.
10925 (thread_stack_temporaries_enabled_p)
10926 (value_in_thread_stack_temporaries): Return bool.
10927
567a3e54
SM
109282018-03-08 Simon Marchi <simon.marchi@ericsson.com>
10929
10930 * remote.c (putpkt_binary): Fix omitted bytes reporting.
10931 (getpkt_or_notif_sane_1): Likewise.
10932
00b40057
SM
109332018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
10934
10935 * build-id.c (build_id_to_debug_bfd): Use std::string.
10936
a8dbfd58
SM
109372018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
10938
10939 * build-id.c (find_separate_debug_file_by_buildid): Return
10940 std::string.
10941 * build-id.h (find_separate_debug_file_by_buildid): Return
10942 std::string.
10943 * coffread.c (coff_symfile_read): Adjust to std::string.
10944 * elfread.c (elf_symfile_read): Adjust to std::string.
10945 * symfile.c (separate_debug_file_exists): Change parameter to
10946 std::string.
10947 (find_separate_debug_file): Return std::string.
10948 (find_separate_debug_file_by_debuglink): Return std::string.
10949 * symfile.h (find_separate_debug_file_by_debuglink): Return
10950 std::string.
10951
e6a58aa8
SM
109522018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
10953
10954 * common/xml-utils.c (xml_escape_text): Move code to...
10955 (xml_escape_text_append): ... this new function.
10956 * common/xml-utils.h (xml_escape_text_append): New declaration.
10957 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
10958 New function.
10959 (_initialize_xml_utils): register test_xml_escape_text_append as
10960 a selftest.
10961
4ef0bef6
AH
109622018-03-07 Alan Hayward <alan.hayward@arm.com>
10963
10964 * defs.h: Remove MAX_REGISTER_SIZE.
10965 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
10966 asserts.
10967 * python/py-unwind.c (pyuw_sniffer): Likewise.
10968
e0d3522b
TT
109692018-03-07 Tom Tromey <tom@tromey.com>
10970
10971 * linux-tdep.c (linux_info_proc): Update.
10972 * target.h (struct target_ops) <to_fileio_readlink>: Return
10973 optional<string>.
10974 (target_fileio_readlink): Return optional<string>.
10975 * remote.c (remote_hostio_readlink): Return optional<string>.
10976 * inf-child.c (inf_child_fileio_readlink): Return
10977 optional<string>.
10978 * target.c (target_fileio_readlink): Return optional<string>.
10979
ea005f31
AB
109802018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
10981
10982 * regcache.c (cooked_read_test): Add riscv to the list of
10983 architectures that have a save_reggroup.
10984
e95a97d4
AA
109852018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
10986
10987 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
10988 value is not a dynamic class object.
10989
d8344f3d
TT
109902018-03-06 Tom Tromey <tom@tromey.com>
10991
10992 * rust-exp.y: Formatting fixes.
10993
9add17f2
AB
109942018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10995
10996 * riscv-tdep.c (riscv_register_name): Remove target description
10997 support.
10998 (riscv_gdbarch_init): Remove target description check.
10999
c9486dfe
AB
110002018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11001
11002 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
11003 comment.
11004 * riscv-tdep.h: Likewise.
11005
d74aff3d
AB
110062018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11007
11008 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
11009 (riscv_pseudo_register_write): Delete.
11010 (riscv_gdbarch_init): Remove all use of pseudo registers.
11011
7ea78b59
SM
110122018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11013
11014 * record-btrace.c (btrace_print_lines): Replace cleanup
11015 parameter with RAII equivalents.
11016 (btrace_insn_history): Replace cleanup with RAII equivalents.
11017 * ui-out.h (make_cleanup_ui_out_list_begin_end,
11018 make_cleanup_ui_out_tuple_begin_end): Remove.
11019 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
11020 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
11021 make_cleanup_ui_out_list_begin_end): Remove.
11022
53127008
SM
110232018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11024
11025 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
11026 parameter types to std::vector. Use bool.
11027 (record_btrace_wait): Replace VEC(tp_t) with
11028 std::vector<thread_info *>.
11029 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
11030
228f1508
SM
110312018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11032
11033 * record-btrace.c (record_btrace_disable_callback): Remove.
11034 (struct scoped_btrace_disable): New.
11035 (record_btrace_open): Use scoped_btrace_disable.
11036
b2970c23
AB
110372018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11038
11039 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
11040 reading values from registers.
11041
fb294655
AB
110422018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11043
11044 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
11045 where appropriate.
11046
cab5bb9d
AB
110472018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11048
11049 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
11050 change parameter type. Use GDB's print functions, and use
11051 core_addr_to_string where appropriate.
11052 (riscv_push_dummy_call): Use core_addr_to_string where
11053 appropriate, update call to riscv_print_arg_location, and reindent
11054 a few lines.
11055 (riscv_return_value): Update call to riscv_print_arg_location.
11056
dbbb1059
AB
110572018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11058 Tim Newsome <tim@sifive.com>
11059 Albert Ou <a0u@eecs.berkeley.edu>
11060 Darius Rad <darius@bluespec.com>
11061
11062 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
11063 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
11064 (ALLDEPFILES): Add riscv-tdep.c
11065 * configure.tgt: Add riscv support.
11066 * riscv-tdep.c: New file.
11067 * riscv-tdep.h: New file.
11068 * NEWS: Mention new target.
11069 * MAINTAINERS: Add entry for riscv.
11070
5dc43913
AB
110712018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11072
11073 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
11074 fields within aggregates.
11075
3dea1ef7
SM
110762018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
11077
11078 * record-btrace.c (btrace_print_lines): Change type of flags to
11079 gdb_disassembly_flags.
11080
7efba073
JB
110812018-03-04 John Baldwin <jhb@FreeBSD.org>
11082
11083 * fbsd-nat.c: Include "inf-ptrace.h".
11084 (USE_SIGTRAP_SIGINFO): Conditionally define.
11085 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
11086 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
11087 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
11088 function.
11089 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
11090 Likewise.
11091 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
11092 Likewise.
11093 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
11094 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
11095 "supports_stopped_by_hw_breakpoint" target methods.
11096
386a8676
JB
110972018-03-04 John Baldwin <jhb@FreeBSD.org>
11098
11099 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
11100 * fbsd-nat.c (debug_fbsd_nat): New variable.
11101 (show_fbsd_nat_debug): New function.
11102 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
11103 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
11104
12279366
JB
111052018-03-04 John Baldwin <jhb@FreeBSD.org>
11106
11107 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
11108 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
11109 prototype.
11110 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
11111 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
11112 method.
11113
54693cf5
SM
111142018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11115
11116 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
11117 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
11118
ccb2231c
SM
111192018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11120
11121 * charset.c (struct charset_vector): New.
11122 (charsets): Change type to charset_vector.
11123 (find_charset_names): Adjust.
11124 (add_one): Adjust.
11125 (_initialize_charset): Adjust.
11126
6fb16ce6
SM
111272018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11128
11129 * progspace.h (struct program_space) <deleted_solibs>: Change
11130 type to std::vector<std::string>.
11131 * progspace.c (clear_program_space_solib_cache): Adjust.
11132 * breakpoint.c (print_solib_event): Adjust.
11133 (check_status_catch_solib): Adjust.
11134 * solib.c (update_solib_list): Adjust.
11135 * ui-out.h (class ui_out) <field_string>: New overload.
11136 * ui-out.c (ui_out::field_string): New overload.
11137
564b1e3f
SM
111382018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11139
11140 * progspace.h (struct program_space): Add constructor and
11141 destructor, initialize fields.
11142 (add_program_space): Remove.
11143 * progspace.c (add_program_space): Rename to...
11144 (program_space::program_space): ... this.
11145 (release_program_space): Rename to...
11146 (program_space::~program_space): ... this.
11147 (delete_program_space): Use delete to delete program_space.
11148 (initialize_progspace): Use new to allocate program_space.
11149 * inferior.c (add_inferior_with_spaces): Likewise.
11150 (clone_inferior_command): Likewise.
11151 * infrun.c (follow_fork_inferior): Likewise.
11152 (handle_vfork_child_exec_or_exit): Likewise.
11153
e80aaf61
SM
111542018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11155
11156 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
11157 (delim_string_to_char_ptr_vec): Return std::vector of
11158 gdb::unique_xmalloc_ptr.
11159 (dirnames_to_char_ptr_vec_append): Take std::vector of
11160 gdb::unique_xmalloc_ptr.
11161 (dirnames_to_char_ptr_vec): Return std::vector of
11162 gdb::unique_xmalloc_ptr.
11163 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
11164 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
11165 (delim_string_to_char_ptr_vec): Return an std::vector of
11166 gdb::unique_xmalloc_ptr, adjust the code.
11167 (dirnames_to_char_ptr_vec_append): Take an std::vector of
11168 gdb::unique_xmalloc_ptr, adjust the code.
11169 (dirnames_to_char_ptr_vec): Return an std::vector of
11170 gdb::unique_xmalloc_ptr, adjust the code.
11171 * auto-load.c (auto_load_safe_path_vec): Change type to
11172 std::vector of gdb::unique_xmalloc_ptr.
11173 (auto_load_expand_dir_vars): Return an std::vector of
11174 gdb::unique_xmalloc_ptr, adjust the code.
11175 (auto_load_safe_path_vec_update): Adjust.
11176 (filename_is_in_auto_load_safe_path_vec): Adjust.
11177 (auto_load_objfile_script_1): Adjust.
11178 * build-id.c (build_id_to_debug_bfd): Adjust.
11179 * linux-thread-db.c (thread_db_load_search): Adjust.
11180 * source.c (add_path): Adjust.
11181 (openp): Adjust.
11182 * symfile.c (find_separate_debug_file): Adjust.
11183 * utils.c (do_free_char_ptr_vec): Remove.
11184 (make_cleanup_free_char_ptr_vec): Remove.
11185
ab818ade
SDJ
111862018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
11187
11188 PR gdb/22907
11189 * common/pathstuff.c: Conditionally include "<windows.h>".
11190
e1e6f073
GS
111912018-03-01 Georg Sauthoff <mail@georg.so>
11192
11193 PR gdb/22888
11194 * gcore.in: Quote variables and switch interpreter to bash.
11195
c7b15a66
TT
111962018-03-01 Tom Tromey <tom@tromey.com>
11197
11198 * dwarf2read.c (alloc_discriminant_info): Fix default_index
11199 assertion. Add assertion for discriminant_index.
11200 (quirk_rust_enum): Use correct base type name in univariant case.
11201
0cb7c7b0
SM
112022018-03-01 Simon Marchi <simon.marchi@ericsson.com>
11203
11204 * record.c (get_call_history_modifiers): Return a
11205 record_print_flags.
11206 (cmd_record_call_history): Adjust.
11207 * record-btrace.c (record_btrace_call_history): Adjust.
11208 (record_btrace_call_history_range): Adjust.
11209 (record_btrace_call_history_from): Adjust.
11210 * target-debug.h (target_debug_print_record_print_flags): New.
11211 * target-delegates.c: Re-generate.
11212 * target.c (target_call_history): Change flags type.
11213 (target_call_history_from): Likewise.
11214 (target_call_history_range): Likewise.
11215 * target.h (struct target_ops) <target_call_history>: Likewise.
11216 (target_call_history_from): Likewise.
11217 (target_call_history_range): Likewise.
11218
25e3c82c
SDJ
112192018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
11220 Simon Marchi <simon.marchi@polymtl.ca>
11221
11222 * common/common-utils.c: Include "sys/stat.h".
11223 (is_regular_file): Move here from "source.c"; change return
11224 type to "bool".
11225 * common/common-utils.h (is_regular_file): New prototype.
11226 * common/pathstuff.c (contains_dir_separator): New function.
11227 * common/pathstuff.h (contains_dir_separator): New prototype.
11228 * source.c: Don't include "sys/stat.h".
11229 (is_regular_file): Move to "common/common-utils.c".
11230
b4987c95
SDJ
112312018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
11232
11233 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
11234 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
11235 * auto-load.c: Include "common/pathstuff.h".
11236 * common/common-def.h (current_directory): Move here.
11237 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
11238 function.
11239 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
11240 prototype.
11241 * common/pathstuff.c: New file.
11242 * common/pathstuff.h: New file.
11243 * compile/compile.c: Include "common/pathstuff.h".
11244 * defs.h (current_directory): Move to "common/common-defs.h".
11245 * dwarf2read.c: Include "common/pathstuff.h".
11246 * exec.c: Likewise.
11247 * guile/scm-safe-call.c: Likewise.
11248 * linux-thread-db.c: Likewise.
11249 * main.c: Likewise.
11250 * nto-tdep.c: Likewise.
11251 * objfiles.c: Likewise.
11252 * source.c: Likewise.
11253 * symtab.c: Likewise.
11254 * utils.c: Include "common/pathstuff.h".
11255 (gdb_realpath): Move to "common/pathstuff.c".
11256 (gdb_realpath_keepfile): Likewise.
11257 (gdb_abspath): Likewise.
11258 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
11259 (gdb_realpath_keepfile): Likewise.
11260 (gdb_abspath): Likewise.
11261
f169cfdc
JB
112622018-02-28 John Baldwin <jhb@FreeBSD.org>
11263
11264 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
11265 wildcard process pid for super_resume for kernels with a
11266 specific bug.
11267
e05cac70
PM
112682018-02-27 Phil Muldoon <pmuldoon@redhat.com>
11269
11270 * compile/compile.c (get_args): Add additional comments
11271 explaining function.
11272
55089490
TT
112732018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
11274 Tom Tromey <tom@tromey.com>
11275
11276 * target.h (memory_write_request_s): Remove typedef. Don't define
11277 VEC.
11278 (target_write_memory_blocks): Change argument to std::vector.
11279 (struct memory_write_request): Add constructor.
11280 * target-memory.c (compare_block_starting_address): Return bool.
11281 Change argument types.
11282 (claim_memory): Change arguments to use std::vector.
11283 (split_regular_and_flash_blocks, blocks_to_erase)
11284 (compute_garbled_blocks): Likewise.
11285 (cleanup_request_data, cleanup_write_requests_vector): Remove.
11286 (target_write_memory_blocks): Change argument to std::vector.
11287 * symfile.c (struct load_section_data): Add constructor and
11288 destructor. Use std::vector for "requests".
11289 (struct load_progress_data): Add initializers.
11290 (load_section_callback): Update. Use "new".
11291 (clear_memory_write_data): Remove.
11292 (generic_load): Update.
11293
0c305b61
AH
112942018-02-27 Alan Hayward <alan.hayward@arm.com>
11295
11296 * arch/aarch64.h: Use common/tdesc.h.
11297
c5196c92
MR
112982018-02-26 Maciej W. Rozycki <macro@mips.com>
11299
11300 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
11301 architecture with a 64-bit ABI.
11302
37c33887
MR
113032018-02-26 Maciej W. Rozycki <macro@mips.com>
11304
11305 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
11306 ahead of target description loading.
11307
d4dd3282
TT
113082018-02-26 Tom Tromey <tom@tromey.com>
11309
11310 * stack.c (backtrace_command_1): Update.
11311 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
11312 of "flags".
11313 * python/py-framefilter.c (py_print_frame)
11314 (gdbpy_apply_frame_filter): Change type of "flags".
11315 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
11316 of "flags".
11317 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
11318 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
11319 * extension.h (enum frame_filter_flag): Rename from
11320 frame_filter_flags.
11321 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
11322 (apply_ext_lang_frame_filter): Change type of "flags".
11323 * extension.c (apply_ext_lang_frame_filter): Change type of
11324 "flags".
11325 * extension-priv.h (struct extension_language_ops)
11326 <apply_frame_filter>: Change type of "flags".
11327
6893c19a
TT
113282018-02-26 Tom Tromey <tom@tromey.com>
11329
11330 PR python/16497:
11331 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
11332 off-by-one in py_end computation.
11333 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
11334 PRINT_MORE_FRAMES.
11335 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
11336 constant.
11337
2ddeaf8a
TT
113382018-02-26 Tom Tromey <tom@tromey.com>
11339
11340 * dwarf2read.c (struct variant_field): New.
11341 (struct nextfield) <variant>: New field.
11342 (dwarf2_add_field): Handle DW_TAG_variant_part.
11343 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
11344 discriminated union.
11345 (read_structure_type): Handle DW_TAG_variant_part.
11346 (handle_struct_member_die): New function, extracted from
11347 process_structure_scope. Handle DW_TAG_variant.
11348 (process_structure_scope): Handle discriminated unions. Call
11349 handle_struct_member_die.
11350
c9317f21
TT
113512018-02-26 Tom Tromey <tom@tromey.com>
11352
11353 * rust-lang.h (rust_last_path_segment): Declare.
11354 * rust-lang.c (rust_last_path_segment): Now public. Change
11355 contract.
11356 (struct disr_info): Remove.
11357 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
11358 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
11359 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
11360 (rust_enum_p, rust_enum_variant): New function.
11361 (rust_underscore_fields): Remove "offset" parameter.
11362 (rust_print_enum): New function.
11363 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
11364 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
11365 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
11366 enums.
11367 (rust_internal_print_type): New function, from rust_print_type.
11368 Remove enum code.
11369 (rust_print_type): Call rust_internal_print_type.
11370 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
11371 Update enum handling.
11372 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
11373 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
11374 (rust_union_quirks): New functions.
11375 (process_full_comp_unit, process_full_type_unit): Call
11376 rust_union_quirks.
11377 (process_structure_scope): Update rust_unions if necessary.
11378
7c22600a
TT
113792018-02-26 Tom Tromey <tom@tromey.com>
11380
11381 * value.h (value_union_variant): Declare.
11382 * valops.c (value_union_variant): New function.
11383 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
11384 (struct discriminant_info): New.
11385 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
11386 enumerator.
11387 (struct main_type) <flag_discriminated_union>: New field.
11388
15ce8941
TT
113892018-02-26 Tom Tromey <tom@tromey.com>
11390
11391 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11392 unittests/unpack-selftests.c.
11393 * unittests/unpack-selftests.c: New file.
11394 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
11395
48fbe735
YQ
113962018-02-26 Yao Qi <yao.qi@linaro.org>
11397
11398 * dwarf2read.c (struct partial_die_info) <read>: New method.
11399 (read_partial_die): Remove the declaration.
11400 (load_partial_dies): Update.
11401 (partial_die_info::partial_die_info):
11402 (read_partial_die): Change it to partial_die_info::read.
11403
52356b79
YQ
114042018-02-26 Yao Qi <yao.qi@linaro.org>
11405
11406 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
11407 (fixup_partial_die): Remove declaration.
11408 (scan_partial_symbols): Update.
11409 (partial_die_parent_scope): Likewise.
11410 (partial_die_full_name): Likewise.
11411 (fixup_partial_die): Change it to partial_die_info::fixup.
11412
35cc7ed7
YQ
114132018-02-26 Yao Qi <yao.qi@linaro.org>
11414
11415 * dwarf2read.c (read_partial_die): Update the declaration.
11416 (load_partial_dies): Caller update.
11417 (read_partial_die): Remove one argument abbrev_len.
11418
6f06d47b
YQ
114192018-02-26 Yao Qi <yao.qi@linaro.org>
11420
11421 * dwarf2read.c (struct partial_die_info): Add ctor, delete
11422 assignment operator.
11423 (load_partial_dies): Use ctor and copy ctor.
11424 (read_partial_die): Update.
11425 (dwarf2_cu::find_partial_die): Use ctor.
11426
d590ff25
YQ
114272018-02-26 Yao Qi <yao.qi@linaro.org>
11428
11429 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
11430 (find_partial_die_in_comp_unit): Change it to
11431 dwarf2_cu::find_partial_die.
11432 (find_partial_die): Update.
11433
fd0a254f
YQ
114342018-02-26 Yao Qi <yao.qi@linaro.org>
11435
11436 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
11437 is NULL.
11438
cd9983dd
YQ
114392018-02-26 Yao Qi <yao.qi@linaro.org>
11440
11441 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
11442
f46cd62a
AH
114432018-02-26 Alan Hayward <alan.hayward@arm.com>
11444
11445 * arch/amd64.h: Use common/tdesc.h.
11446 * arch/i386.c: Likewise.
11447 * arch/i386.h: Likewise.
11448 * arch/tic6x.c: Likewise.
11449 * arch/tdesc.h: Move file from here...
11450 * common/tdesc.h: ...to here.
11451 * features/aarch64-core.c: Regenerate.
11452 * features/aarch64-fpu.c: Regenerate.
11453 * features/i386/32bit-avx.c: Regenerate.
11454 * features/i386/32bit-avx512.c: Regenerate.
11455 * features/i386/32bit-core.c: Regenerate.
11456 * features/i386/32bit-linux.c: Regenerate.
11457 * features/i386/32bit-mpx.c: Regenerate.
11458 * features/i386/32bit-pkeys.c: Regenerate.
11459 * features/i386/32bit-sse.c: Regenerate.
11460 * features/i386/64bit-avx.c: Regenerate.
11461 * features/i386/64bit-avx512.c: Regenerate.
11462 * features/i386/64bit-core.c: Regenerate.
11463 * features/i386/64bit-linux.c: Regenerate.
11464 * features/i386/64bit-mpx.c: Regenerate.
11465 * features/i386/64bit-pkeys.c: Regenerate.
11466 * features/i386/64bit-segments.c: Regenerate.
11467 * features/i386/64bit-sse.c: Regenerate.
11468 * features/i386/x32-core.c: Regenerate.
11469 * features/tic6x-c6xp.c: Regenerate.
11470 * features/tic6x-core.c: Regenerate.
11471 * features/tic6x-gp.c: Regenerate.
11472 * target-descriptions.c: Use common/tdesc.h.
11473 * target-descriptions.h: Likewise.
11474
9b292f68
TT
114752018-02-24 Tom Tromey <tom@tromey.com>
11476
11477 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
11478 (try_thread_db_load_from_dir, thread_db_load_search): Use
11479 std::string.
11480 (info_auto_load_libthread_db_compare): Return bool. Change
11481 argument types.
11482 (info_auto_load_libthread_db): Use std::vector, std::string.
11483 Remove cleanups.
11484
281d762b
TT
114852018-02-24 Tom Tromey <tom@tromey.com>
11486
11487 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
11488 std::string.
11489 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
11490 std::string*.
11491 * gdbarch.c: Rebuild.
11492 * gdbarch.h: Rebuild.
11493 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
11494 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
11495 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
11496 std::string*.
11497
9d8780f0
SM
114982018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
11499
11500 * gdbtypes.h (sect_offset): Change type to uint64_t.
11501 (sect_offset_str): New function.
11502 * dwarf2read.c (create_addrmap_from_aranges): Use
11503 sect_offset_str.
11504 (error_check_comp_unit_head): Likewise.
11505 (create_debug_type_hash_table): Likewise.
11506 (read_cutu_die_from_dwo): Likewise.
11507 (init_cutu_and_read_dies): Likewise.
11508 (init_cutu_and_read_dies_no_follow): Likewise.
11509 (process_psymtab_comp_unit_reader): Likewise.
11510 (partial_die_parent_scope): Likewise.
11511 (peek_die_abbrev): Likewise.
11512 (process_queue): Likewise.
11513 (dwarf2_physname): Likewise.
11514 (read_namespace_alias): Likewise.
11515 (read_import_statement): Likewise.
11516 (create_dwo_cu_reader): Likewise.
11517 (create_cus_hash_table): Likewise.
11518 (lookup_dwo_cutu): Likewise.
11519 (inherit_abstract_dies): Likewise.
11520 (read_func_scope): Likewise.
11521 (read_call_site_scope): Likewise.
11522 (dwarf2_add_member_fn): Likewise.
11523 (read_common_block): Likewise.
11524 (read_module_type): Likewise.
11525 (read_typedef): Likewise.
11526 (read_subrange_type): Likewise.
11527 (load_partial_dies): Likewise.
11528 (read_partial_die): Likewise.
11529 (find_partial_die): Likewise.
11530 (read_str_index): Likewise.
11531 (dwarf2_string_attr): Likewise.
11532 (build_error_marker_type): Likewise.
11533 (lookup_die_type): Likewise.
11534 (dump_die_shallow): Likewise.
11535 (follow_die_ref): Likewise.
11536 (dwarf2_fetch_die_loc_sect_off): Likewise.
11537 (dwarf2_fetch_constant_bytes): Likewise.
11538 (follow_die_sig): Likewise.
11539 (get_signatured_type): Likewise.
11540 (get_DW_AT_signature_type): Likewise.
11541 (dwarf2_find_containing_comp_unit): Likewise.
11542 (set_die_type): Likewise.
11543
8ec57239
JB
115442018-02-21 John Baldwin <jhb@FreeBSD.org>
11545
11546 * arch/aarch64.c: Include "common-defs.h".
11547 * arch/amd64.c: Likewise.
11548 * arch/i386.c: Likewise.
11549
3eac2b65
TT
115502018-02-21 Tom Tromey <tom@tromey.com>
11551
11552 * value.h: (extract_field_op): Update.
11553 * eval.c (extract_field_op): Return a const char *.
11554 * expression.h (parse_expression_for_completion): Update.
11555 * completer.c (complete_expression): Update.
11556 (add_struct_fields): Make fieldname const.
11557 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
11558 (mark_completion_tag, parse_exp_in_context_1): Update.
11559 (parse_expression_for_completion): Change "name" to
11560 unique_xmalloc_ptr*.
11561
6ccb583f
TT
115622018-02-21 Tom Tromey <tom@tromey.com>
11563
11564 * infcall.c (call_function_by_hand_dummy): Use std::vector.
11565
c113ed0c
YQ
115662018-02-21 Yao Qi <yao.qi@linaro.org>
11567
11568 * avr-tdep.c (avr_read_pc): Change parameter type to
11569 readable_regcache.
11570 * gdbarch.sh (read_pc): Likewise.
11571 * gdbarch.c: Re-generated.
11572 * gdbarch.h: Re-generated.
11573 * hppa-tdep.c (hppa_read_pc): Change parameter type to
11574 readable_regcache.
11575 * ia64-tdep.c (ia64_read_pc): Likewise.
11576 * mips-tdep.c (mips_read_pc): Likewise.
11577 * spu-tdep.c (spu_read_pc): Likewise.
11578
4c74fe6b
YQ
115792018-02-21 Yao Qi <yao.qi@linaro.org>
11580
11581 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
11582 * regcache-dump.c: New file.
11583 * regcache.c: Move register_dump to regcache-dump.c.
11584 (maintenance_print_registers): Likewise.
11585 (maintenance_print_raw_registers): Likewise.
11586 (maintenance_print_cooked_registers): Likewise.
11587 (maintenance_print_register_groups): Likewise.
11588 (maintenance_print_remote_registers): Likewise.
11589 (_initialize_regcache): Likewise.
11590 * regcache.h (register_dump): Moved from regcache.c.
11591
796bb026
YQ
115922018-02-21 Yao Qi <yao.qi@linaro.org>
11593
11594 * regcache.c (regcache::regcache): Update.
11595 (regcache::invalidate): Move it to detached_regcache::invalidate.
11596 (get_thread_arch_aspace_regcache): Update.
11597 (regcache::raw_update): Update.
11598 (regcache::cooked_read): Remove some code.
11599 (regcache::cooked_read_value): Likewise.
11600 (regcache::raw_write): Remove assert on m_readonly_p.
11601 (regcache::raw_supply_integer): Move it to
11602 detached_regcache::raw_supply_integer.
11603 (regcache::raw_supply_zeroed): Likewise.
11604 * regcache.h (detached_regcache) <raw_supply_integer>: New
11605 declaration.
11606 <raw_supply_zeroed, invalidate>: Likewise.
11607 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
11608 <invalidate>: Likewise.
11609 <m_readonly_p>: Removed.
11610
215c69dc
YQ
116112018-02-21 Yao Qi <yao.qi@linaro.org>
11612
11613 * infcmd.c (get_return_value): Let stop_regs point to
11614 get_current_regcache.
11615 * regcache.c (regcache::regcache): Remove.
11616 (register_dump_reg_buffer): New class.
11617 (regcache_print): Adjust.
11618 * regcache.h (regcache): Remove constructors.
11619
f3384e66
YQ
116202018-02-21 Yao Qi <yao.qi@linaro.org>
11621
11622 * regcache.c (class register_dump): New class.
11623 (register_dump_regcache, register_dump_none): New class.
11624 (register_dump_remote, register_dump_groups): New class.
11625 (regcache_print): Update.
11626 * regcache.h (regcache_dump_what): Move it to regcache.c.
11627 (regcache) <dump>: Remove.
11628
c8ec2f33
YQ
116292018-02-21 Yao Qi <yao.qi@linaro.org>
11630
11631 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
11632 reg_buffer_rw *.
11633 (jit_unwind_reg_set_impl): Call raw_supply.
11634 (jit_frame_sniffer): Use reg_buffer_rw.
11635 * record-full.c (record_full_core_regbuf): Change its type.
11636 (record_full_core_open_1): Use reg_buffer_rw.
11637 (record_full_close): Likewise.
11638 (record_full_core_fetch_registers): Use regcache->raw_supply.
11639 (record_full_core_store_registers): Likewise.
11640 * regcache.c (regcache::get_register_status): Move it to
11641 reg_buffer.
11642 (regcache_raw_set_cached_value): Remove.
11643 (regcache::raw_set_cached_value): Remove.
11644 (regcache::raw_write): Call raw_supply.
11645 (regcache::raw_supply): Move it to reg_buffer_rw.
11646 * regcache.h (regcache_raw_set_cached_value): Remove.
11647 (reg_buffer_rw): New class.
11648
daf6667d
YQ
116492018-02-21 Yao Qi <yao.qi@linaro.org>
11650
11651 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
11652 readonly_detached_regcache.
11653 (dummy_frame_prev_register): Use regcache->cooked_read.
11654 * frame.c (frame_save_as_regcache): Change return type.
11655 (frame_pop): Update.
11656 * frame.h (frame_save_as_regcache): Update declaration.
11657 * inferior.h (get_infcall_suspend_state_regcache): Update
11658 declaration.
11659 * infrun.c (infcall_suspend_state) <registers>: use
11660 readonly_detached_regcache.
11661 (save_infcall_suspend_state): Don't use regcache_dup.
11662 (get_infcall_suspend_state_regcache): Change return type.
11663 * linux-fork.c (struct fork_info) <savedregs>: Change to
11664 readonly_detached_regcache.
11665 <pc>: New field.
11666 (fork_save_infrun_state): Don't use regcache_dup.
11667 (info_checkpoints_command): Adjust.
11668 * mi/mi-main.c (register_changed_p): Update declaration.
11669 (mi_cmd_data_list_changed_registers): Use
11670 readonly_detached_regcache.
11671 (register_changed_p): Change parameter type to
11672 readonly_detached_regcache.
11673 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
11674 readonly_detached_regcache.
11675 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
11676 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
11677 New.
11678 (regcache::save): Move it to reg_buffer.
11679 (regcache::restore): Change parameter type.
11680 (regcache_dup): Remove.
11681 * regcache.h (reg_buffer) <save>: New method.
11682 (readonly_detached_regcache): New class.
11683 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
11684 readonly_detached_regcache.
11685 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
11686
fc5b8736
YQ
116872018-02-21 Yao Qi <yao.qi@linaro.org>
11688
11689 * frame.c (frame_save_as_regcache): Use regcache method save.
11690 (frame_pop): Use regcache method restore.
11691 * infrun.c (restore_infcall_suspend_state): Likewise.
11692 * linux-fork.c (fork_load_infrun_state): Likewise.
11693 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
11694 save.
11695 * regcache.c (regcache_save): Remove.
11696 (regcache::restore): More asserts.
11697 (regcache_cpy): Remove.
11698 * regcache.h (regcache_save): Remove the declaration.
11699 (regcache::restore): Move from private to public.
11700 Remove the friend declaration of regcache_cpy.
11701 (regcache_cpy): Remove declaration.
11702
849d0ba8
YQ
117032018-02-21 Yao Qi <yao.qi@linaro.org>
11704
11705 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
11706 parameter type to 'readable_regcache *'.
11707 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
11708 * arm-tdep.c (arm_neon_quad_read): Likewise.
11709 (arm_pseudo_read): Likewise.
11710 * avr-tdep.c (avr_pseudo_register_read): Likewise.
11711 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
11712 * frv-tdep.c (frv_pseudo_register_read): Likewise.
11713 * gdbarch.c: Re-generated.
11714 * gdbarch.h: Re-generated.
11715 * gdbarch.sh (pseudo_register_read): Change parameter type to
11716 'readable_regcache *'.
11717 (pseudo_register_read_value): Likewise.
11718 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
11719 (h8300_pseudo_register_read): Likewise.
11720 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
11721 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
11722 (i386_pseudo_register_read_into_value): Likewise.
11723 (i386_pseudo_register_read_value): Likewise.
11724 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
11725 declaration.
11726 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
11727 * m32c-tdep.c (m32c_raw_read): Likewise.
11728 (m32c_read_flg): Likewise.
11729 (m32c_banked_register): Likewise.
11730 (m32c_banked_read): Likewise.
11731 (m32c_sb_read): Likewise.
11732 (m32c_part_read): Likewise.
11733 (m32c_cat_read): Likewise.
11734 (m32c_r3r2r1r0_read): Likewise.
11735 (m32c_pseudo_register_read): Likewise.
11736 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
11737 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
11738 (mep_pseudo_cr64_read): Likewise.
11739 (mep_pseudo_register_read): Likewise.
11740 * mips-tdep.c (mips_pseudo_register_read): Likewise.
11741 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
11742 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
11743 * regcache.c (regcache::raw_read): Move it to readable_regcache.
11744 (regcache::cooked_read): Likewise.
11745 (regcache::cooked_read_value): Likewise.
11746 (regcache_cooked_read_signed):
11747 (regcache::cooked_read): Likewise.
11748 * regcache.h (readable_regcache): New class.
11749 (regcache): Inherit readable_regcache. Move some methods to
11750 readable_regcache.
11751 * rl78-tdep.c (rl78_pseudo_register_read): Change
11752 parameter type to 'readable_regcache *'.
11753 * rs6000-tdep.c (do_regcache_raw_read): Remove.
11754 (e500_pseudo_register_read): Change parameter type to
11755 'readable_regcache *'.
11756 (dfp_pseudo_register_read): Likewise.
11757 (vsx_pseudo_register_read): Likewise.
11758 (efpr_pseudo_register_read): Likewise.
11759 * s390-tdep.c (s390_pseudo_register_read): Likewise.
11760 * sh-tdep.c (sh_pseudo_register_read): Likewise.
11761 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
11762 (sh64_pseudo_register_read): Likewise.
11763 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
11764 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
11765 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
11766 (spu_pseudo_register_read): Likewise.
11767 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
11768 (xtensa_pseudo_register_read): Likewise.
11769
31716595
YQ
117702018-02-21 Yao Qi <yao.qi@linaro.org>
11771
11772 * regcache.c (regcache::regcache): Call reg_buffer ctor.
11773 (regcache::arch): Move it to reg_buffer::arch.
11774 (regcache::register_buffer): Likewise.
11775 (regcache::assert_regnum): Likewise.
11776 (regcache::num_raw_registers): Likewise.
11777 * regcache.h (reg_buffer): New class.
11778 (regcache): Inherit reg_buffer.
11779
7104e59b
SM
117802018-02-20 Simon Marchi <simon.marchi@ericsson.com>
11781
11782 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
11783 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
11784
2d8adcbd
MM
117852018-02-20 Markus Metzger <markus.t.metzger@intel.com>
11786
11787 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
11788
b5884fa7
AH
117892018-02-19 Alan Hayward <alan.hayward@arm.com>
11790
11791 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
11792 (SFILES): Remove common/*.c files.
11793 (COMMON_OBS): Remove some *.o files built from common/*.c files.
11794 * common/common.host: Add common reference.
11795 * configure.ac: Likewise.
11796 * configure: Regenerate.
11797
fd90ace4
YQ
117982018-02-16 Yao Qi <yao.qi@linaro.org>
11799
11800 * block.c (block_namespace_info): Inherit allocate_on_obstack.
11801 (block_initialize_namespace): Use new.
11802 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
11803 (dwarf2_free_objfile): Use delete.
11804 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
11805 (copy_type_recursive): Use new.
11806 * gdb_obstack.h (allocate_on_obstack): New.
11807
85046ae2
YQ
118082018-02-15 Yao Qi <yao.qi@linaro.org>
11809
11810 PR gdb/22849
11811 * inferior.c (exit_inferior_1): Reset inf->control.
11812
355c559b
JB
118132018-02-15 Joel Brobecker <brobecker@adacore.com>
11814
11815 * ada-lang.c (ada_to_fixed_value_create): Delete advance
11816 declaration.
11817
980548fd
PA
118182018-02-14 Pedro Alves <palves@redhat.com>
11819
11820 * frame-unwind.c (frame_unwind_try_unwinder): Always call
11821 frame_cleanup_after_sniffer on exception.
11822
692d6f97
TT
118232018-02-14 Tom Tromey <tom@tromey.com>
11824
11825 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
11826 const.
11827 (solib_bfd_open): Make pathname const.
11828 * solib.c (solib_bfd_open): Make pathname const.
11829 * solib-spu.c (spu_bfd_fopen): Make name const.
11830 (spu_bfd_open): Make pathname const.
11831 * solib-darwin.c (darwin_bfd_open): Make pathname const.
11832 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
11833
e0cc99a6
TT
118342018-02-14 Tom Tromey <tom@tromey.com>
11835
11836 * symfile.c (symfile_bfd_open): Update.
11837 * source.h (openp, source_full_path_of, find_and_open_source):
11838 Change argument type to unique_xmalloc_ptr.
11839 * source.c (openp): Take a unique_xmalloc_ptr.
11840 (source_full_path_of, find_and_open_source): Likewise.
11841 (open_source_file, symtab_to_fullname): Update.
11842 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
11843 unique_xmalloc_ptr.
11844 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
11845 (exec_file_find): Update.
11846 * psymtab.c (psymtab_to_fullname): Update.
11847 * nto-tdep.h (nto_find_and_open_solib): Update.
11848 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
11849 unique_xmalloc_ptr.
11850 * exec.c (exec_file_attach): Update.
11851 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
11852 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
11853
b46a8d7c
TT
118542018-02-14 Tom Tromey <tom@tromey.com>
11855
11856 * solib.c: Include source.h.
11857 * nto-tdep.c: Include source.h.
11858 * mi/mi-cmd-env.c: Include source.h.
11859 * infcmd.c: Include source.h.
11860 * exec.c: Include source.h.
11861 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
11862 (add_path, directory_switch, source_path, init_source_path): Move
11863 declarations...
11864 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
11865 (add_path, directory_switch, source_path, init_source_path):
11866 ...here.
11867
797bc1cb
TT
118682018-02-14 Tom Tromey <tom@tromey.com>
11869
11870 * solist.h (exec_file_find, solib_find): Return
11871 unique_xmalloc_ptr.
11872 (solib_bfd_fopen): Take a const char *.
11873 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
11874 (exec_file_find, solib_find): Likewise.
11875 (solib_bfd_fopen): Do not take ownership of "pathname".
11876 (solib_bfd_open): Use unique_xmalloc_ptr.
11877 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
11878 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
11879 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
11880 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
11881
f98b2e33
JB
118822018-02-14 Joel Brobecker <brobecker@adacore.com>
11883
11884 * ada-lang.c (name_match_type_from_name): Remove reference to
11885 ada_name_for_lookup in function's documentation.
11886 * ada-lang.h (ada_name_for_lookup): Delete declaration.
11887
24b9144d
SM
118882018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
11889
11890 * defs.h (enum openp_flags): New enum.
11891 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
11892 Move to enum openp_flags.
11893 (openp_flags): New enum flags.
11894 (openp): Change parameter type to openp_flags.
11895 * source.c (openp): Change parameter type to openp_flags.
11896 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
11897 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
11898
387cd15b
SM
118992018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
11900
11901 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
11902 per-command.
11903
b303c6f6
AB
119042018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
11905
11906 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
11907 into...
11908 (class dwarf2_queue_guard): ...the destructor of this new class.
11909 (dw2_do_instantiate_symtab): Create instance of the new class
11910 dwarf2_queue_guard, remove cleanup.
11911
9c3630e9
TT
119122018-02-09 Tom Tromey <tom@tromey.com>
11913
11914 * source.c (find_source_lines): Don't reference past the end of
11915 the vector.
11916
c4e12631
MM
119172018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11918
11919 * remote.c (remote_btrace_maybe_reopen): Change error message.
11920 * btrace.c (btrace_enable): Likewise.
11921 (parse_xml_btrace): Likewise.
11922 (parse_xml_btrace_conf): Likewise.
11923
88711fbf
MM
119242018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11925
11926 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
11927 (linux_enable_pt, linux_enable_bts): Call
11928 diagnose_perf_event_open_fail.
11929
17ad2a4f
MM
119302018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11931
11932 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
11933 Remove parameter and change return type. Update callers. Move it.
11934 (linux_enable_bts, linux_enable_pt): Improve error message.
11935 (linux_enable_pt): Remove zero buffer size check.
11936 (linux_enable_btrace): Improve error messages. Remove NULL return
11937 check.
11938
de6242d3
MM
119392018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11940
11941 * btrace.c (btrace_enable): Remove target_supports_btrace call.
11942 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
11943 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
11944 (linux_supports_pt, linux_supports_btrace): Remove.
11945 (linux_enable_bts): Call cpu_supports_bts.
11946 * nat/linux-btrace.h (linux_supports_btrace): Remove.
11947 * remote.c (remote_supports_btrace): Remove.
11948 (init_remote_ops): Remove remote_supports_btrace.
11949 * target-delegates.c: Regenerated.
11950 * target.c (target_supports_btrace): Remove.
11951 * target.h (target_ops) <to_supports_btrace>: Remove
11952 (target_supports_btrace): Remove.
11953 * x86-linux-nat.c (x86_linux_create_target): Remove
11954 linux_supports_btrace.
11955
9ee23a85
MM
119562018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11957
11958 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
11959 btrace failed.
11960 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
11961 exception and use message in own exception.
11962
5c3284c1
MM
119632018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11964
11965 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
11966 (perf_event_pt_event_type): Use gdb_file_up.
11967 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
11968 scoped_fd, and scoped_mmap.
11969
84696f37
MM
119702018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11971
11972 * common/scoped_mmap.h: New.
11973 * unittests/scoped_mmap-selftest.c: New.
11974 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11975 unittests/scoped_mmap-selftest.c.
11976
ea4a0888
MM
119772018-02-09 Markus Metzger <markus.t.metzger@intel.com>
11978
11979 * common/scoped_fd.h: New.
11980 * unittests/scoped_fd-selftest.c: New.
11981 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11982 unittests/scoped_fd-selftest.c.
11983
869e8290
TT
119842018-02-09 Tom Tromey <tom@tromey.com>
11985
11986 * auto-load.c (auto_load_section_scripts): Use
11987 gdb::unique_xmalloc_ptr.
11988
a37a2ae7
TT
119892018-02-09 Tom Tromey <tom@tromey.com>
11990
11991 * auto-load.c (execute_script_contents): Use std::string.
11992
4e725347
JB
119932018-02-09 Joel Brobecker <brobecker@adacore.com>
11994
11995 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
11996 Python function, rather than a new command.
11997
9a897d43
TT
119982018-02-08 Tom Tromey <tom@tromey.com>
11999
12000 * solib.c (solib_find_1): Use std::string.
12001 (solib_bfd_fopen): Use unique_xmalloc_ptr.
12002
58ef3771
TT
120032018-02-08 Tom Tromey <tom@tromey.com>
12004
12005 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
12006
a9abc434
TT
120072018-02-08 Tom Tromey <tom@tromey.com>
12008
12009 * source.c (find_source_lines): Use gdb::def_vector.
12010
84f27c6f
TT
120112018-02-08 Tom Tromey <tom@tromey.com>
12012
12013 * macrocmd.c (struct temporary_macro_definition): New.
12014 (macro_define_command): Use temporary_macro_definition. Remove
12015 cleanups.
12016 (free_macro_definition_ptr): Remove.
12017
0354904b
TT
120182018-02-08 Tom Tromey <tom@tromey.com>
12019
12020 * macroexp.c (maybe_expand): Use std::string.
12021
1739cf24
TT
120222018-02-08 Tom Tromey <tom@tromey.com>
12023
12024 * macroexp.c (struct macro_buffer): Add initializers for some
12025 members.
12026 (init_buffer, init_shared_buffer, free_buffer)
12027 (free_buffer_return_text): Remove.
12028 (macro_buffer): New constructors.
12029 (~macro_buffer): New destructor.
12030 (macro_buffer::set_shared): New method.
12031 (macro_buffer::resize_buffer, macro_buffer::appendc)
12032 (macro_buffer::appendmem): Now methods, not free functions.
12033 (set_token, append_tokens_without_splicing, stringify)
12034 (macro_stringify): Update.
12035 (gather_arguments): Change return type. Remove argc_p argument,
12036 add args_ptr argument. Use std::vector.
12037 (substitute_args): Remove argc argument. Accept std::vector.
12038 (expand): Update. Use std::vector.
12039 (scan, macro_expand, macro_expand_next): Update.
12040
f6c2623e
TT
120412018-02-08 Tom Tromey <tom@tromey.com>
12042
12043 * symtab.c (default_collect_symbol_completion_matches_break_on):
12044 Use unique_xmalloc_ptr.
12045 * macroscope.h: (sal_macro_scope, user_macro_scope)
12046 (default_macro_scope): Return unique_xmalloc_ptr.
12047 * macroscope.c (sal_macro_scope, user_macro_scope)
12048 (default_macro_scope): Return unique_xmalloc_ptr.
12049 * macroexp.h (macro_expand, macro_expand_once): Return
12050 unique_xmalloc_ptr.
12051 * macroexp.c (macro_expand, macro_expand_once): Return
12052 unique_xmalloc_ptr.
12053 * macrocmd.c (macro_expand_command, macro_expand_once_command)
12054 (info_macro_command, info_macros_command): Use
12055 unique_xmalloc_ptr.
12056 * compile/compile-c-support.c (write_macro_definitions): Use
12057 unique_xmalloc_ptr.
12058 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
12059
c2e0e465
SM
120602018-02-07 Simon Marchi <simon.marchi@ericsson.com>
12061
12062 * value.c (value_static_field): Assign field type instead of
12063 containing type when returning an optimized out value.
12064
3f8c94b4
YQ
120652018-02-06 Yao Qi <yao.qi@linaro.org>
12066
12067 * ft32-tdep.c (ft32_read_pc): Remove.
12068 (ft32_write_pc): Remove.
12069 (ft32_gdbarch_init): Update.
12070 * m32r-tdep.c (m32r_read_pc): Remove.
12071 (m32r_gdbarch_init): Update.
12072 * mep-tdep.c (mep_read_pc): Remove.
12073 (mep_gdbarch_init): Update.
12074 * microblaze-tdep.c (microblaze_write_pc): Remove.
12075 (microblaze_gdbarch_init): Update.
12076 * mn10300-tdep.c (mn10300_read_pc): Remove.
12077 (mn10300_write_pc): Remove.
12078 (mn10300_gdbarch_init): Update.
12079 * moxie-tdep.c (moxie_read_pc): Remove.
12080 (moxie_write_pc): Remove.
12081 (moxie_gdbarch_init): Update.
12082
bca65a23
YQ
120832018-02-06 Yao Qi <yao.qi@linaro.org>
12084
12085 * expprint.c (print_subexp_standard): Handle
12086 OP_F77_UNDETERMINED_ARGLIST.
12087 (dump_subexp_body_standard): Likewise.
12088
583e3f90 120892018-02-05 Alan Hayward <alan.hayward@arm.com>
b8df6ca7 12090
583e3f90
YQ
12091 * target-descriptions.c (tdesc_element_visitor) Add empty
12092 implementations.
b8df6ca7
AH
12093 (tdesc_type): Move make_gdb_type from here.
12094 (tdesc_type_builtin): Likewise.
12095 (tdesc_type_vector): Likewise.
12096 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
12097 (make_gdb_type_struct): Move from tdesc_type_with_fields.
12098 (make_gdb_type_union): Likewise.
12099 (make_gdb_type_flags): Likewise.
12100 (make_gdb_type_enum): Likewise.
12101 (make_gdb_type): New function.
12102 (tdesc_register_type): Use static make_gdb_type.
12103
e813d34a
RK
121042018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
12105
12106 * infcmd.c (default_print_one_register_info): Align natural-format
12107 column values consistently one under another.
12108 (pad_to_column): New function.
12109
0eb876f5
JB
121102018-02-05 Joel Brobecker <brobecker@adacore.com>
12111
12112 * dwarf2read.c (dwarf2_physname): Move commment.
12113
0625771b
LS
121142018-02-01 Leszek Swirski <leszeks@google.com>
12115
12116 * varobj.c (varobj_formatted_print_options): Allow recursive
12117 pretty printing if pretty printing is enabled.
12118
59498c30
LS
121192018-02-01 Leszek Swirski <leszeks@google.com>
12120
12121 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
12122 names after a structop as a filename.
12123
2d9e6acb
YQ
121242018-02-01 Yao Qi <yao.qi@linaro.org>
12125
12126 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
12127 (arm_record_coproc_data_proc): Likewise.
12128
df95a9cf
YQ
121292018-02-01 Yao Qi <yao.qi@linaro.org>
12130
12131 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
12132
07e5f5cf
NP
121332018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
12134
12135 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
12136 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
12137
3045b475
PA
121382018-01-31 Pedro Alves <palves@redhat.com>
12139
12140 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
12141 * inflow.c (child_terminal_save_inferior): Wrap reference to
12142 tcgetpgrp in HAVE_TERMIOS_H.
12143 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
12144 _WIN32.
12145 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
12146 always iterate over all inferiors.
12147 (gdbsim_cntrl_c): Adjust.
12148 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
12149
929b5ad4
JB
121502018-01-31 Joel Brobecker <brobecker@adacore.com>
12151
12152 * gdbtypes.c (lookup_array_range_type): Make sure the array's
12153 index type is objfile-owned if the element type is as well.
12154
29236ca2
JB
121552018-01-31 Joel Brobecker <brobecker@adacore.com>
12156
12157 GDB 8.1 released.
12158
c81e8879
PR
121592018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
12160
12161 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
12162 "features/s390x-linux64.c".
12163 (_initialize_s390_linux_tdep): Remove initialization of tdescs
12164 s390_linux32 and s390x_linux64.
12165 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
12166 default tdesc.
12167 * s390-tdep.c: Include "features/s390-linux32.c" and
12168 "features/s390x-linux64.c".
12169 (s390_tdesc_valid): Add check for tdesc_has_registers.
12170 (s390_gdbarch_init): Make sure there is always a valid tdesc.
12171 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
12172 tdesc_s390x_linux64.
12173 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
12174 tdesc_s390x_linux64 to...
12175 * s390-tdep.h: ...here.
12176
e671cd59
PA
121772018-01-30 Pedro Alves <palves@redhat.com>
12178
12179 PR gdb/13211
12180 * config.in, configure: Regenerate.
12181 * configure.ac: Check for getpgid.
12182 * go32-nat.c (go32_pass_ctrlc): New.
12183 (go32_target): Install it.
12184 * inf-child.c (inf_child_target): Install
12185 child_terminal_save_inferior, child_pass_ctrlc and
12186 child_interrupt.
12187 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
12188 (inf_ptrace_target): No longer install it.
12189 * infcmd.c (interrupt_target_1): Adjust.
12190 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
12191 (child_interrupt): Declare.
12192 (inferior::terminal_state): New.
12193 * inflow.c (struct terminal_info): Update comments.
12194 (inferior_process_group): Delete.
12195 (terminal_is_ours): Delete.
12196 (gdb_tty_state): New.
12197 (child_terminal_init): Adjust.
12198 (is_gdb_terminal, sharing_input_terminal_1)
12199 (sharing_input_terminal): New functions.
12200 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
12201 Set the process's actual process group in the foreground if
12202 possible. Handle is_ours_for_output/is_ours distinction. Don't
12203 mark terminal as the inferior's if not sharing GDB's terminal.
12204 Don't check attach_flag.
12205 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
12206 pass down a target_terminal_state.
12207 (child_terminal_save_inferior): New, factored out from ...
12208 (child_terminal_ours_1): ... this. Handle
12209 target_terminal_state::is_ours_for_output.
12210 (child_interrupt, child_pass_ctrlc): New.
12211 (inflow_inferior_exit): Clear the inferior's terminal_state.
12212 (copy_terminal_info): Copy the inferior's terminal state.
12213 (_initialize_inflow): Remove reference to terminal_is_ours.
12214 * inflow.h (inferior_process_group): Delete.
12215 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
12216 * procfs.c (procfs_target): Don't install procfs_interrupt.
12217 (procfs_interrupt): Delete.
12218 * remote.c (remote_serial_quit_handler): Adjust.
12219 (remote_interrupt): Remove ptid parameter. Adjust.
12220 * target-delegates.c: Regenerate.
12221 * target.c: Include "terminal.h".
12222 (target_terminal::terminal_state): Rename to ...
12223 (target_terminal::m_terminal_state): ... this.
12224 (target_terminal::init): Adjust.
12225 (target_terminal::inferior): Adjust to per-inferior
12226 terminal_state.
12227 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
12228 (target_terminal::ours, target_terminal::ours_for_output): Use
12229 target_terminal_is_ours_kind.
12230 (target_interrupt): Remove ptid parameter. Adjust.
12231 (default_target_pass_ctrlc): Adjust.
12232 * target.h (target_ops::to_terminal_save_inferior): New field.
12233 (target_ops::to_interrupt): Remove ptid_t parameter.
12234 (target_interrupt): Remove ptid_t parameter. Update comment.
12235 (target_pass_ctrlc): Update comment.
12236 * target/target.h (target_terminal_state): New scoped enum,
12237 factored out of ...
12238 (target_terminal::terminal_state): ... here.
12239 (target_terminal::inferior): Update comments.
12240 (target_terminal::restore_inferior): New.
12241 (target_terminal::is_inferior, target_terminal::is_ours)
12242 (target_terminal::is_ours_for_output): Adjust.
12243 (target_terminal::scoped_restore_terminal_state): Adjust to
12244 rename, and call restore_inferior() instead of inferior().
12245 (target_terminal::scoped_restore_terminal_state::m_state): Change
12246 type.
12247 (target_terminal::terminal_state): Rename to ...
12248 (target_terminal::m_terminal_state): ... this and change type.
12249
9c3a5d93
PA
122502018-01-30 Pedro Alves <palves@redhat.com>
12251
12252 * linux-nat.c (wait_for_signal): New function.
12253 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
12254 directly.
12255 (async_terminal_is_ours)
12256 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
12257 (linux_nat_add_target): Don't override
12258 to_terminal_inferior/to_terminal_ours.
12259
69ab5edb
SDJ
122602018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
12261
12262 * remote.c (remote_follow_fork): Don't call "detach_inferior".
12263
fc8e7e75
SM
122642018-01-28 Simon Marchi <simon.marchi@ericsson.com>
12265
12266 * dwarf2read.c (free_dwo_files): Add forward-declaration.
12267 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
12268 dwarf2_per_objfile_free here.
12269 (dwarf2_per_objfile_free): Remove.
12270 (_initialize_dwarf2_read): Don't register
12271 dwarf2_per_objfile_free as a registry cleanup.
12272
b2a426e2
EZ
122732018-01-27 Eli Zaretskii <eliz@gnu.org>
12274
12275 Avoid compilation errors in MinGW native builds
12276
12277 The error is triggered by including python-internal.h, and the
12278 error message is:
12279
12280 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
12281 from build-gnulib/import/math.h:27,
12282 from d:/usr/Python26/include/pyport.h:235,
12283 from d:/usr/Python26/include/Python.h:58,
12284 from python/python-internal.h:94,
12285 from python/py-arch.c:24:
12286 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
12287 using ::hypot;
12288 ^~~~~
12289
12290 This happens because Python headers define 'hypot' to expand t
12291 '_hypot' in the Windows builds.
12292 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
12293 'hypoth'. This avoids a compilation error.
12294
0bdd8eac
AH
122952018-01-26 Alan Hayward <alan.hayward@arm.com>
12296
12297 * MAINTAINERS (Write After Approval): Fix ordering.
12298
56ae9dc3
AH
122992018-01-26 Alan Hayward <alan.hayward@arm.com>
12300
12301 * MAINTAINERS (Write After Approval): Add Alan Hayward.
12302
7433498b
AM
123032018-01-26 Alan Modra <amodra@gmail.com>
12304
12305 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
12306 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
12307 Remove nop. Make const. Comment.
12308 (powerpc32_plt_stub_so_2): New.
12309 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
12310 Correct count. Update uses.
12311 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
12312 Move common code reading PLT entry word. Correct
12313 powerpc32_plt_stub PLT address calculation.
12314 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
12315 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
12316 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
12317 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
12318 (ppc64_standard_linkage8): Likewise.
12319 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
12320 Correct insns description.
12321 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
12322
0f59d5fc
PA
123232018-01-24 Pedro Alves <palves@redhat.com>
12324
12325 GCC PR libstdc++/83906
12326 * gdbtypes.c (operator==(const dynamic_prop &,
12327 const dynamic_prop &)): New.
12328 (operator==(const range_bounds &, const range_bounds &)): New.
12329 (check_types_equal): Use them instead of memcmp.
12330 * gdbtypes.h (operator==(const dynamic_prop &,
12331 const dynamic_prop &)): Declare.
12332 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
12333 (operator==(const range_bounds &, const range_bounds &)): Declare.
12334 (operator!=(const range_bounds &, const range_bounds &)): Declare.
12335
ef8914a4
PR
123362018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12337
12338 * s390-linux-tdep.c (s390_record_address_mask)
12339 (s390_record_calc_disp_common, s390_record_calc_disp)
12340 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12341 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12342 (s390_process_record): Move to s390-tdep.c.
12343 (s390_linux_init_abi_any): Adjust.
12344 * s390-tdep.c (s390_record_address_mask)
12345 (s390_record_calc_disp_common, s390_record_calc_disp)
12346 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12347 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12348 (s390_process_record): Moved from s390-linux-tdep.c
12349 (s390_gdbarch_init): Adjust.
12350
d6e58945
PR
123512018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12352
12353 * s390-linux-nat.c (s390-tdep.h): New include.
12354 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
12355 (HFILES_NO_SRCDIR): Add s390-tdep.h.
12356 (ALLDEPFILES): Add s390-tdep.c.
12357 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
12358 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
12359 * s390-tdep.h: ...this. New file.
12360 * s390-linux-tdep.c (s390-tdep.h): New include.
12361 (_initialize_s390_tdep): Rename to...
12362 (_initialize_s390_linux_tdep): ...this and adjust.
12363 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
12364 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
12365 s390-tdep.h.
12366 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
12367 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
12368 (s390_is_partial_instruction, s390_software_single_step)
12369 (is_non_branch_ril, s390_displaced_step_copy_insn)
12370 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
12371 (s390_prologue_data, s390_addr, s390_store, s390_load)
12372 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
12373 (s390_register_call_saved, s390_guess_tracepoint_registers)
12374 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
12375 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
12376 (s390_pseudo_register_name, s390_pseudo_register_type)
12377 (s390_pseudo_register_read, s390_pseudo_register_write)
12378 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
12379 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
12380 (s390_addr_bits_remove, s390_address_class_type_flags)
12381 (s390_address_class_type_flags_to_name)
12382 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
12383 (s390_function_arg_float, s390_function_arg_vector)
12384 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
12385 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
12386 (s390_frame_align, s390_register_return_value, s390_return_value)
12387 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
12388 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
12389 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
12390 (s390_trad_frame_prev_register, s390_unwind_cache)
12391 (s390_prologue_frame_unwind_cache)
12392 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
12393 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
12394 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
12395 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
12396 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
12397 (s390_frame_base_address, s390_local_base_address)
12398 (s390_frame_base, s390_gcc_target_options)
12399 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
12400 (s390_validate_reg_range, s390_tdesc_valid)
12401 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
12402 * s390-tdep.c: ...this. New file.
12403
9c0b896e
PR
124042018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12405
12406 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
12407 (s390_process_record, s390_gdbarch_tdep_alloc)
12408 (s390_linux_init_abi_any): Use/set new hook.
12409
7042632b
PR
124102018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12411
12412 * s390-linux-tdep.c (osabi.h): New include.
12413 (s390_linux_init_abi_31, s390_linux_init_abi_64)
12414 (s390_linux_init_abi_any): New functions.
12415 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
12416
650f5e13
PR
124172018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12418
12419 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
12420 tdesc_has_registers check
12421
47c9317e
PR
124222018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12423
12424 * s390-linux-tdep.c (s390_tdesc_valid): New function.
12425 (s390_validate_reg_range): New macro.
12426 (s390_gdbarch_init): Adjust.
12427
095085d8
PR
124282018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12429
12430 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
12431 (s390_gdbarch_tdep_alloc): Adjust.
12432 (s390_gdbarch_init): Adjust.
12433
ab9bcc67
PR
124342018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12435
12436 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
12437 <have_tdb>: Change type to bool.
12438 (s390_gdbarch_tdep_alloc): Adjust.
12439 (s390_gdbarch_init): Adjust.
12440
21f6f5ff
PR
124412018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12442
12443 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
12444 (gdbarch_tdep) <have_upper, have_vx>: New fields.
12445 (s390_gdbarch_tdep_alloc): New function.
12446 (s390_gdbarch_init): Allocate tdep at start and use its fields
12447 instead of separate variables.
12448
0eb97953
PR
124492018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12450
12451 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
12452 when looking for cached gdbarch and add comment for remaining.
12453
5c319bb2
PA
124542018-01-22 Pedro Alves <palves@redhat.com>
12455 Sergio Durigan Junior <sergiodj@redhat.com>
12456
12457 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
12458 case.
12459
d65ce302
MR
124602018-01-22 Maciej W. Rozycki <macro@mips.com>
12461
12462 * MAINTAINERS: Update my company e-mail address.
12463
ec7a5fcb
YQ
124642018-01-22 Yao Qi <yao.qi@linaro.org>
12465
12466 * regcache.c (cooked_write_test): New function.
12467 (_initialize_regcache): Register the test.
12468
11f57cb6
YQ
124692018-01-22 Yao Qi <yao.qi@linaro.org>
12470
12471 * ia64-tdep.c (ia64_pseudo_register_read): Call
12472 regcache->cooked_read instead of regcache_cooked_read_unsigned.
12473 * m32c-tdep.c (m32c_cat_read): Likewise.
12474 (m32c_r3r2r1r0_read): Likewise.
12475 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
12476 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
12477
03f50fc8
YQ
124782018-01-22 Yao Qi <yao.qi@linaro.org>
12479
12480 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
12481 method raw_read instead of regcache_raw_read.
12482 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
12483 * arm-tdep.c (arm_neon_quad_read): Likewise.
12484 * avr-tdep.c (avr_pseudo_register_read): Likewise.
12485 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
12486 * frv-tdep.c (frv_pseudo_register_read): Likewise.
12487 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
12488 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
12489 (i386_pseudo_register_read_into_value): Likewise.
12490 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
12491 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
12492 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
12493 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
12494 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
12495 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
12496 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
12497 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
12498 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
12499
dc711524
YQ
125002018-01-22 Yao Qi <yao.qi@linaro.org>
12501
12502 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
12503 * configure.tgt: Remove target mt.
12504 * mt-tdep.c: Remove.
12505 * regcache.c (cooked_read_test): Remove the check for mt.
12506
3f5a868b
YQ
125072018-01-22 Yao Qi <yao.qi@linaro.org>
12508
12509 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
12510 instead of gdbarch_pseudo_register_read_value.
12511
de4cb04a
JB
125122018-01-22 Joel Brobecker <brobecker@adacore.com>
12513
12514 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
12515 language is Ada.
12516
a9e40818
JB
125172018-01-22 Joel Brobecker <brobecker@adacore.com>
12518
12519 * linespec.c (create_sals_line_offset): Remove code that preserved
12520 the symtab_and_line's line number.
12521
e707fc44
AB
125222018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12523
12524 * varobj.c (varobj_create): Don't set valid_block when creating a
12525 floating varobj.
12526
03d0bf7b
AB
125272018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12528
12529 * varobj.c (varobj_create): Remove out of date comment.
12530
ae451627
AB
125312018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12532
12533 PR mi/20395
12534 * ada-exp.y (write_var_from_sym): Pass extra parameter when
12535 updating innermost block.
12536 * parse.c (innermost_block_tracker::update): Take extra type
12537 parameter, and check types match before updating innermost block.
12538 (write_dollar_variable): Update innermost block for registers.
12539 * parser-defs.h (enum innermost_block_tracker_type): New enum.
12540 (innermost_block_tracker::innermost_block_tracker): Initialise
12541 m_types member.
12542 (innermost_block_tracker::reset): Take type parameter.
12543 (innermost_block_tracker::update): Take type parameter, and pass
12544 type through as needed.
12545 (innermost_block_tracker::m_types): New member.
12546 * varobj.c (varobj_create): Pass type when reseting innermost
12547 block.
12548
aee1fcdf
AB
125492018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12550
12551 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
12552 * ada-lang.c (resolve_subexp): Likewise.
12553 * breakpoint.c (set_breakpoint_condition) Likewise.
12554 (watch_command_1) Likewise.
12555 * c-exp.y (variable): Likewise.
12556 * d-exp.y (PrimaryExpression): Likewise.
12557 * f-exp.y (variable): Likewise.
12558 * go-exp.y (variable): Likewise.
12559 * m2-exp.y (variable): Likewise.
12560 * objfiles.c (objfile::~objfile): Likewise.
12561 * p-exp.y (variable): Likewise.
12562 * parse.c (innermost_block): Change type.
12563 * parser-defs.h (class innermost_block_tracker): New.
12564 (innermost_block): Change to innermost_block_tracker.
12565 * printcmd.c (display_command): Switch to innermost_block API.
12566 (do_one_display): Likewise.
12567 * rust-exp.y (do_one_display): Likewise.
12568 * symfile.c (clear_symtab_users): Likewise.
12569 * varobj.c (varobj_create): Switch to innermost_block API, replace
12570 use of innermost_block with block stored on varobj object.
12571
396af9a1
AB
125722018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12573
12574 * expression.h (innermost_block): Remove declaration.
12575 * varobj.c: Add 'parser-defs.h' include.
12576
fcfcc376
TT
125772018-01-19 Tom Tromey <tom@tromey.com>
12578
12579 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
12580 symbols in the static and global blocks.
12581
5a6c3296
JC
125822018-01-19 James Clarke <jrtc27@jrtc27.com>
12583
12584 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
12585 gdb_ptrace.h, and move including gdb_wait.h ...
12586 * nat/linux-ptrace.h: ... to here.
12587
bc09b0c1
SM
125882018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12589
12590 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
12591 inf_ptrace_detach_success.
12592 (inf_ptrace_detach_success): Add inferior parameter, use it
12593 instead of inferior_ptid, pass it to detach_inferior.
12594 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
12595 parameter.
12596 * inferior.c (detach_inferior): Add overload that takes an
12597 inferior object.
12598 * inferior.h (detach_inferior): Likewise.
12599 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
12600 use inferior_ptid, adjust call to inf_ptrace_detach_success.
12601 * linux-thread-db.c (thread_db_detach): Use inf parameter.
12602
6e1e1966
SM
126032018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12604
12605 * target.h (struct target_ops) <to_detach>: Add inferior
12606 parameter.
12607 (target_detach): Likewise.
12608 * target.c (dispose_inferior): Pass inferior down.
12609 (target_detach): Pass inferior down. Assert that it is equal to
12610 the current inferior.
12611 * aix-thread.c (aix_thread_detach): Pass inferior down.
12612 * corefile.c (core_file_command): Pass current_inferior() down.
12613 * corelow.c (core_detach): Add inferior parameter.
12614 * darwin-nat.c (darwin_detach): Likewise.
12615 * gnu-nat.c (gnu_detach): Likewise.
12616 * inf-ptrace.c (inf_ptrace_detach): Likewise.
12617 * infcmd.c (detach_command): Pass current_inferior() down to
12618 target_detach.
12619 * infrun.c (follow_fork_inferior): Pass parent_inf to
12620 target_detach.
12621 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
12622 target_detach.
12623 * linux-nat.c (linux_nat_detach): Add inferior parameter.
12624 * linux-thread-db.c (thread_db_detach): Likewise.
12625 * nto-procfs.c (procfs_detach): Likewise.
12626 * procfs.c (procfs_detach): Likewise.
12627 * record.c (record_detach): Likewise.
12628 * record.h (struct inferior): Forward-declare.
12629 (record_detach): Add inferior parameter.
12630 * remote-sim.c (gdbsim_detach): Likewise.
12631 * remote.c (remote_detach_1): Likewise.
12632 (remote_detach): Likewise.
12633 (extended_remote_detach): Likewise.
12634 * sol-thread.c (sol_thread_detach): Likewise.
12635 * target-debug.h (target_debug_print_inferior_p): New macro.
12636 * target-delegates.c: Re-generate.
12637 * top.c (kill_or_detach): Pass inferior down to target_detach.
12638 * windows-nat.c (windows_detach): Add inferior parameter.
12639
6bd6f3b6
SM
126402018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12641
12642 * target.h (struct target_ops) <to_detach>: Remove args
12643 parameter.
12644 (target_detach): Likewise.
12645 * target.c (dispose_inferior): Adjust.
12646 (target_detach): Remove args parameter, adjust.
12647 * aix-thread.c (aix_thread_detach): Adjust.
12648 * corefile.c (core_file_command): Adjust.
12649 * corelow.c (core_detach): Adjust.
12650 * darwin-nat.c (darwin_detach): Adjust.
12651 * gnu-nat.c (gnu_detach): Adjust.
12652 * inf-ptrace.c (inf_ptrace_detach): Adjust.
12653 * infcmd.c (detach_command): Adjust
12654 * infrun.c (follow_fork_inferior): Adjust.
12655 (handle_vfork_child_exec_or_exit): Adjust.
12656 * linux-fork.c (linux_fork_detach): Remove args parameter.
12657 * linux-fork.h (linux_fork_detach): Likewise.
12658 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
12659 * linux-thread-db.c (thread_db_detach): Likewise.
12660 * nto-procfs.c (procfs_detach): Likewise.
12661 * procfs.c (procfs_detach): Likewise.
12662 (do_detach): Remove signo parameter.
12663 * record.c (record_detach): Remove args parameter.
12664 * record.h (record_detach): Likewise.
12665 * remote-sim.c (gdbsim_detach): Likewise.
12666 * remote.c (remote_detach_1): Likewise.
12667 (remote_detach): Likewise.
12668 (extended_remote_detach): Likewise.
12669 * sol-thread.c (sol_thread_detach): Likewise.
12670 * target-delegates.c: Re-generate.
12671 * top.c (struct qt_args) <args>: Remove field.
12672 (kill_or_detach): Don't pass args.
12673 (quit_force): Don't set args.
12674 * windows-nat.c (windows_detach): Remove args parameter.
12675
88af8ea8
YQ
126762018-01-19 Yao Qi <yao.qi@linaro.org>
12677
12678 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
12679 (arm_linux_init_abi): Install it.
12680
dea445b9
YQ
126812018-01-19 Yao Qi <yao.qi@linaro.org>
12682
12683 * osabi.c (gdb_osabi_names): Extend the regexp for
12684 arm-linux-gnueabihf.
12685
4a17f768
YQ
126862018-01-18 Yao Qi <yao.qi@linaro.org>
12687
12688 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
12689 m_abbrevs.
12690 (abbrev_table::add_abbrev): Update.
12691 (abbrev_table::lookup_abbrev): Update.
12692
d679c21a
YQ
126932018-01-18 Yao Qi <yao.qi@linaro.org>
12694
12695 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
12696
7d937cad
SDJ
126972018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12698
12699 * compile/compile.c (compile_to_object): Convert "triplet_rx"
12700 to "std::string".
12701
9e14690d
TT
127022018-01-17 Tom Tromey <tom@tromey.com>
12703
12704 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
12705
50a82047
TT
127062018-01-17 Tom Tromey <tom@tromey.com>
12707
12708 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
12709 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
12710 (create_array_type_with_stride): Update.
12711 * dwarf2read.c (set_die_type): Update.
12712
c89b44cd
TT
127132018-01-17 Tom Tromey <tom@tromey.com>
12714
12715 * dwarf2read.c (delayed_method_info): Remove typedef.
12716 (dwarf2_cu::method_info): Now a std::vector.
12717 (add_to_method_list): Update.
12718 (free_delayed_list): Remove.
12719 (compute_delayed_physnames): Update.
12720 (process_full_comp_unit, process_full_type_unit): Clear the method
12721 list. Remove cleanups.
12722 (psymtab_include_file_name): Add name_holder parameter. Use
12723 unique_xmalloc_ptr.
12724 (dwarf_decode_lines): Update.
12725
fcd3b13d
SM
127262018-01-17 Tom Tromey <tom@tromey.com>
12727 Simon Marchi <simon.marchi@ericsson.com>
12728
12729 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
12730 (dwarf2_per_objfile::free_cached_comp_units)
12731 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
12732 (init_cutu_and_read_dies_no_follow): Update.
12733 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
12734 (dwarf2_cu::~dwarf2_cu): New.
12735 (free_heap_comp_unit, free_stack_comp_unit): Remove.
12736 (age_cached_comp_units, free_one_cached_comp_unit): Update.
12737
685af9cd
TT
127382018-01-17 Tom Tromey <tom@tromey.com>
12739 Simon Marchi <simon.marchi@ericsson.com>
12740
12741 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
12742 (struct die_reader_specs) <abbrev_table>: New member.
12743 (struct abbrev_table): Add constructor.
12744 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
12745 <abbrev_obstack>: Now an auto_obstack.
12746 (abbrev_table_up): New typedef.
12747 (init_cu_die_reader): Add abbrev_table parameter.
12748 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
12749 Add result_dwo_abbrev_table.
12750 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
12751 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
12752 Update.
12753 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
12754 parameter.
12755 (skip_children): Update.
12756 (abbrev_table::alloc_abbrev): Rename from
12757 abbrev_table_alloc_abbrev.
12758 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
12759 (abbrev_table::lookup_abbrev): Rename from
12760 abbrev_table_lookup_abbrev.
12761 (abbrev_table_read_table): Return abbrev_table_up.
12762 (abbrev_table_free, abbrev_table_free_cleanup)
12763 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
12764 (load_partial_dies): Update.
12765
5e2db402
TT
127662018-01-17 Tom Tromey <tom@tromey.com>
12767
12768 * dwarf2read.c (dwarf2_compute_name): Update comment.
12769 (read_func_scope, read_variable): Update.
12770 (new_symbol): Remove.
12771 (new_symbol_full): Rename to new_symbol.
12772
ee7f689e 127732018-01-17 Mike Gulick <mgulick@mathworks.com>
41667530
MG
12774
12775 PR gdb/16577
12776 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
12777 a warning instead of throwing an error, set section size to 0 and return
12778 NULL.
12779 * gdb_bfd.h (gdb_bfd_map_section): Update description.
12780
4d9b86e1
SM
127812018-01-17 Simon Marchi <simon.marchi@ericsson.com>
12782
12783 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
12784 std::string.
12785 (linux_ptrace_attach_fail_reason_string): Likewise.
12786 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
12787 Likewise.
12788 (linux_ptrace_attach_fail_reason_string): Likewise.
12789 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
12790
a7b2d0fb
SM
127912018-01-17 Simon Marchi <simon.marchi@ericsson.com>
12792
12793 * linux-nat.c (linux_nat_attach): Remove xstrdup.
12794
f517c180
EA
127952018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
12796
12797 PR gdb/21559
12798 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
12799 checking for fs_base/gs_base fields in struct user_regs_struct.
12800 * configure: Regenerate.
12801
7045b1ca
YQ
128022018-01-17 Yao Qi <yao.qi@linaro.org>
12803
12804 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
12805 function.
12806 (aarch64_linux_init_abi): Install it to gdbarch hook
12807 gcc_target_options.
12808
db422fb2
PA
128092018-01-15 Pedro Alves <palves@redhat.com>
12810
12811 * common/signals-state-save-restore.c
12812 (save_original_signals_state): Fix typos.
12813
ba643918
SDJ
128142017-01-12 Tom Tromey <tom@tromey.com>
12815 Sergio Durigan Junior <sergiodj@redhat.com>
12816
12817 * Makefile.in (install-only): Install gdb-add-index.
12818
906b4aac
JB
128192018-01-12 John Baldwin <jhb@FreeBSD.org>
12820
12821 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
12822
bdf2a94a
AA
128232018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12824
12825 * infrun.c (keep_going_pass_signal): Clear step-over info when
12826 insert_breakpoints fails.
12827
71d378ae
PA
128282018-01-11 Pedro Alves <palves@redhat.com>
12829
12830 PR gdb/22583
12831 * infrun.c (resume): Rename to ...
12832 (resume_1): ... this.
12833 (resume): Reimplement as wrapper around resume_1.
12834
3cada740
PA
128352018-01-11 Pedro Alves <palves@redhat.com>
12836
12837 PR remote/22597
12838 * remote.c (remote_parse_stop_reply): Default to the last-set
12839 general thread instead of to 'magic_null_ptid'.
12840
618daa93
PA
128412018-01-10 Pedro Alves <palves@redhat.com>
12842
12843 * language.h (language_get_symbol_name_matcher): Rename ...
12844 (get_symbol_name_matcher): ... this.
12845 * language.c (language_get_symbol_name_matcher): Ditto.
12846 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
12847 callers adjusted.
12848
c63d3e8d
PA
128492018-01-10 Pedro Alves <palves@redhat.com>
12850
12851 PR gdb/22670
12852 * dwarf2read.c
12853 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
12854 Adjust to use language_get_symbol_name_matcher instead of
12855 language_defn::la_get_symbol_name_matcher.
12856 * language.c (language_get_symbol_name_matcher): If in Ada mode
12857 and the lookup name is a verbatim match, return Ada's matcher.
12858 * language.h (language_get_symbol_name_matcher): Adjust comment.
12859 (ada_lookup_name_info::verbatim_p):: New method.
12860
d4c2a405
PA
128612018-01-10 Pedro Alves <palves@redhat.com>
12862
12863 PR gdb/22670
12864 * ada-lang.c (ada_collect_symbol_completion_matches): If the
12865 minsym's language is language_auto or language_cplus, pass down
12866 language_ada instead.
12867 * symtab.c (compare_symbol_name): Don't frob symbol language here.
12868
8825213e
PA
128692018-01-10 Pedro Alves <palves@redhat.com>
12870
12871 PR gdb/22670
12872 * minsyms.c (linkage_name_str): New function.
12873 (iterate_over_minimal_symbols): Use it.
12874
2d97a5d9
JB
128752018-01-09 John Baldwin <jhb@FreeBSD.org>
12876
12877 * NEWS: Document that 'info proc' now works on FreeBSD.
12878
92fce24d
JB
128792018-01-09 John Baldwin <jhb@FreeBSD.org>
12880
12881 * configure.ac: Check for kinfo_getfile in libutil.
12882 * configure: Regenerate.
12883 * config.in: Regenerate.
12884 * fbsd-nat.c: Include "fbsd-tdep.h".
12885 (fbsd_fetch_cmdline): New.
12886 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
12887 rather than calling error.
12888 (fbsd_info_proc): New.
12889 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
12890 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
12891 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
12892
262f62f5
JB
128932018-01-09 John Baldwin <jhb@FreeBSD.org>
12894
12895 * fbsd-nat.c (struct free_deleter): Remove.
12896 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
12897
b999e203
JB
128982018-01-09 John Baldwin <jhb@FreeBSD.org>
12899
12900 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
12901 NULL for an empty pathname.
12902
d2176225
JB
129032018-01-09 John Baldwin <jhb@FreeBSD.org>
12904
12905 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
12906 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
12907 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
12908 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
12909 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
12910 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
12911 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
12912 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
12913 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
12914 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
12915 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
12916 (fbsd_core_fetch_timeval, fbsd_print_sigset)
12917 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
12918 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
12919 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
12920
9c4ac400
ST
129212018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
12922
12923 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
12924 (gnu_xfer_auxv): New function.
12925 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
12926 TARGET_OBJECT_AUXV.
12927
1e5ded6c
YQ
129282018-01-08 Yao Qi <yao.qi@linaro.org>
12929 Simon Marchi <simon.marchi@ericsson.com>
12930
12931 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
12932 common/selftest.c.
12933 (COMMON_OBS): Remove selftest.o.
12934 * configure.ac: Append selftest-arch.c and common/selftest.c to
12935 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
12936 * configure: Re-generated.
12937 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
12938 GDB_SELF_TEST.
12939 (maintenance_info_selftests): Likewise.
12940
04bafb1e
XR
129412018-01-08 Xavier Roirand <roirand@adacore.com>
12942
12943 * ada-valprint.c (val_print_packed_array_elements): Use
12944 proper number of elements when printing an array indexed
12945 by an enumeration type.
12946
518817b3
SM
129472018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
12948
12949 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
12950 (dw2_get_file_names_reader): Adjust.
12951 (lookup_dwo_signatured_type): Adjust.
12952 (lookup_dwp_signatured_type): Adjust.
12953 (lookup_signatured_type): Adjust.
12954 (create_type_unit_group): Adjust.
12955 (get_type_unit_group): Adjust.
12956 (process_psymtab_comp_unit_reader): Adjust.
12957 (build_type_psymtabs_reader): Adjust.
12958 (scan_partial_symbols): Adjust.
12959 (add_partial_symbol): Adjust.
12960 (add_partial_subprogram): Adjust.
12961 (peek_die_abbrev): Adjust.
12962 (fixup_go_packaging): Adjust.
12963 (process_imported_unit_die): Adjust.
12964 (dwarf2_compute_name): Adjust.
12965 (dwarf2_physname): Adjust.
12966 (read_import_statement): Adjust.
12967 (handle_DW_AT_stmt_list): Adjust.
12968 (read_file_scope): Adjust.
12969 (read_func_scope): Adjust.
12970 (read_lexical_block_scope): Adjust.
12971 (read_call_site_scope): Adjust.
12972 (read_variable): Adjust.
12973 (dwarf2_rnglists_process): Adjust.
12974 (dwarf2_ranges_process): Adjust.
12975 (dwarf2_ranges_read): Adjust.
12976 (dwarf2_get_pc_bounds): Adjust.
12977 (dwarf2_record_block_ranges): Adjust.
12978 (dwarf2_add_field): Adjust.
12979 (dwarf2_add_member_fn): Adjust.
12980 (read_structure_type): Adjust.
12981 (process_structure_scope): Adjust.
12982 (read_enumeration_type): Adjust.
12983 (read_array_type): Adjust.
12984 (mark_common_block_symbol_computed): Adjust.
12985 (read_common_block): Adjust.
12986 (read_namespace_type): Adjust.
12987 (read_namespace): Adjust.
12988 (read_module_type): Adjust.
12989 (read_tag_pointer_type): Adjust.
12990 (read_tag_ptr_to_member_type): Adjust.
12991 (read_tag_string_type): Adjust.
12992 (read_subroutine_type): Adjust.
12993 (read_typedef): Adjust.
12994 (read_base_type): Adjust.
12995 (attr_to_dynamic_prop): Adjust.
12996 (read_subrange_type): Adjust.
12997 (read_unspecified_type): Adjust.
12998 (dwarf2_read_abbrevs): Adjust.
12999 (load_partial_dies): Adjust.
13000 (read_partial_die): Adjust.
13001 (find_partial_die): Adjust.
13002 (guess_partial_die_structure_name): Adjust.
13003 (fixup_partial_die): Adjust.
13004 (read_attribute_value): Adjust.
13005 (read_addr_index): Adjust.
13006 (read_addr_index_from_leb128): Adjust.
13007 (read_str_index): Adjust.
13008 (dwarf2_string_attr): Adjust.
13009 (get_debug_line_section): Adjust.
13010 (dwarf_decode_line_header): Adjust.
13011 (lnp_state_machine::check_line_address): Adjust.
13012 (dwarf_decode_lines_1): Adjust.
13013 (dwarf_decode_lines): Adjust.
13014 (dwarf2_start_symtab): Adjust.
13015 (var_decode_location): Adjust.
13016 (new_symbol_full): Adjust.
13017 (dwarf2_const_value_data): Adjust.
13018 (dwarf2_const_value_attr): Adjust.
13019 (dwarf2_const_value): Adjust.
13020 (die_type): Adjust.
13021 (die_containing_type): Adjust.
13022 (build_error_marker_type): Adjust.
13023 (lookup_die_type): Adjust.
13024 (guess_full_die_structure_name): Adjust.
13025 (anonymous_struct_prefix): Adjust.
13026 (determine_prefix): Adjust.
13027 (dwarf2_name): Adjust.
13028 (follow_die_ref_or_sig): Adjust.
13029 (follow_die_offset): Adjust.
13030 (follow_die_ref): Adjust.
13031 (follow_die_sig_1): Adjust.
13032 (follow_die_sig): Adjust.
13033 (get_signatured_type): Adjust.
13034 (get_DW_AT_signature_type): Adjust.
13035 (decode_locdesc): Adjust.
13036 (dwarf_decode_macros): Adjust.
13037 (cu_debug_loc_section): Adjust.
13038 (fill_in_loclist_baton): Adjust.
13039 (dwarf2_symbol_mark_computed): Adjust.
13040 (init_one_comp_unit): Don't assign
13041 dwarf2_cu::dwarf2_per_objfile.
13042 (set_die_type): Adjust.
13043
ed2dc618
SM
130442018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13045
13046 * dwarf2read.c (struct mapped_debug_names): Add constructor.
13047 <dwarf2_per_objfile>: New field.
13048 (dwarf2_per_objfile): Remove global.
13049 (get_dwarf2_per_objfile): New function.
13050 (set_dwarf2_per_objfile): New function.
13051 (dwarf2_build_psymtabs_hard): Change objfile parameter to
13052 dwarf2_per_objfile.
13053 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
13054 (read_abbrev_offset): Likewise.
13055 (read_indirect_string): Likewise.
13056 (read_indirect_line_string): Likewise.
13057 (read_indirect_string_at_offset): Likewise.
13058 (read_indirect_string_from_dwz): Likewise.
13059 (dwarf2_find_containing_comp_unit): Change objfile parameter to
13060 dwarf2_per_objfile.
13061 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
13062 (create_all_comp_units): Change objfile parameter to
13063 dwarf2_per_objfile.
13064 (create_all_type_units): Likewise.
13065 (process_queue): Add dwarf2_per_objfile parameter.
13066 (read_and_check_comp_unit_head): Likewise.
13067 (lookup_dwo_unit_in_dwp): Likewise.
13068 (get_dwp_file): Likewise.
13069 (process_cu_includes): Likewise.
13070 (struct free_dwo_file_cleanup_data): New struct.
13071 (dwarf2_has_info): Use get_dwarf2_per_objfile and
13072 set_dwarf2_per_objfile.
13073 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
13074 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
13075 context, adjust calls.
13076 (dw2_instantiate_symtab): Likewise.
13077 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
13078 (dw2_get_cu): Likewise.
13079 (create_cu_from_index_list): Change objfile parameter to
13080 dwarf2_per_objfile.
13081 (create_cus_from_index_list): Get dwarf2_per_objfile from
13082 context, adjust calls.
13083 (create_cus_from_index): Likewise.
13084 (create_signatured_type_table_from_index): Change objfile
13085 parameter to dwarf2_per_objfile.
13086 (create_signatured_type_table_from_debug_names): Change objfile
13087 parameter to dwarf2_per_objfile.
13088 (create_addrmap_from_index): Likewise.
13089 (create_addrmap_from_aranges): Likewise.
13090 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
13091 (dw2_setup): Remove.
13092 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
13093 context.
13094 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
13095 get_dwarf2_per_objfile.
13096 (dw2_forget_cached_source_info): Likewise.
13097 (dw2_map_symtabs_matching_filename): Likewise.
13098 (struct dw2_symtab_iterator) <index>: Remove.
13099 <dwarf2_per_objfile>: New field.
13100 (dw2_symtab_iter_init): Replace index parameter with
13101 dwarf2_per_objfile.
13102 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
13103 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
13104 (dw2_print_stats): Likewise.
13105 (dw2_dump): Likewise.
13106 (dw2_expand_symtabs_for_function): Likewise.
13107 (dw2_expand_all_symtabs): Likewise.
13108 (dw2_expand_symtabs_with_fullname): Likewise.
13109 (dw2_expand_marked_cus): Replace index and objfile parameters
13110 with dwarf2_per_objfile.
13111 (dw_expand_symtabs_matching_file_matcher): Add
13112 dwarf2_per_objfile parameter and adjust calls.
13113 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
13114 adjust calls.
13115 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
13116 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
13117 adjust calls.
13118 (create_cus_from_debug_names_list): Replace objfile parameter
13119 with dwarf2_per_objfile and adjust calls.
13120 (create_cus_from_debug_names): Likewise.
13121 (dwarf2_read_debug_names): Likewise.
13122 (mapped_debug_names::namei_to_name): Adjust call.
13123 (dw2_debug_names_iterator::next): Likewise.
13124 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
13125 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
13126 (dw2_debug_names_dump): Likewise.
13127 (dw2_debug_names_expand_symtabs_for_function): Likewise.
13128 (dw2_debug_names_expand_symtabs_matching): Likewise.
13129 (dwarf2_initialize_objfile): Likewise.
13130 (dwarf2_build_psymtabs): Likewise.
13131 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
13132 this_cu.
13133 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
13134 (read_and_check_comp_unit_head): Likewise.
13135 (read_abbrev_offset): Likewise.
13136 (create_debug_type_hash_table): Likewise.
13137 (create_debug_types_hash_table): Likewise.
13138 (create_all_type_units): Replace objfile parameter with
13139 dwarf2_per_objfile.
13140 (add_type_unit): Add dwarf2_per_objfile parameter.
13141 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
13142 with dwarf2_per_objfile.
13143 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
13144 (lookup_dwp_signatured_type): Likewise.
13145 (lookup_signatured_type): Likewise.
13146 (read_cutu_die_from_dwo): Likewise.
13147 (init_tu_and_read_dwo_dies): Likewise.
13148 (init_cutu_and_read_dies): Likewise.
13149 (init_cutu_and_read_dies_no_follow): Likewise.
13150 (allocate_type_unit_groups_table): Add objfile parameter.
13151 (create_type_unit_group): Use dwarf2_per_objfile from cu.
13152 (get_type_unit_group): Likewise.
13153 (process_psymtab_comp_unit): Update call.
13154 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
13155 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
13156 (print_tu_stats): Likewise.
13157 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
13158 in void* parameter.
13159 (build_type_psymtabs): Change objfile parameter to
13160 dwarf2_per_objfile.
13161 (process_skeletonless_type_unit): Use dwarf2_per_objfile
13162 passed in void* parameter.
13163 (process_skeletonless_type_units): Change objfile parameter to
13164 dwarf2_per_objfile.
13165 (set_partial_user): Likewise.
13166 (dwarf2_build_psymtabs_hard): Likewise.
13167 (read_comp_units_from_section): Likewise.
13168 (create_all_comp_units): Likewise.
13169 (scan_partial_symbols): Update calls.
13170 (add_partial_symbol): Likewise.
13171 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
13172 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
13173 (process_queue): Add dwarf2_per_objfile parameter.
13174 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
13175 (compute_compunit_symtab_includes): Likewise.
13176 (process_cu_includes): Add dwarf2_per_objfile parameter.
13177 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
13178 (process_full_type_unit): Likewise.
13179 (process_imported_unit_die): Update call.
13180 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
13181 (read_file_scope): Likewise.
13182 (allocate_dwo_file_hash_table): Add objfile parameter.
13183 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
13184 (create_cus_hash_table): Likewise.
13185 (create_dwp_hash_table): Likewise.
13186 (create_dwo_unit_in_dwp_v1): Likewise.
13187 (create_dwp_v2_section): Likewise.
13188 (create_dwo_unit_in_dwp_v2): Likewise.
13189 (lookup_dwo_unit_in_dwp): Likewise.
13190 (try_open_dwop_file): Likewise.
13191 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
13192 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
13193 cleanup to include a reference to dwarf2_per_objfile.
13194 (open_dwp_file): Add dwarf2_per_objfile parameter.
13195 (open_and_init_dwp_file): Likewise.
13196 (get_dwp_file): Likewise.
13197 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
13198 (queue_and_load_all_dwo_tus): Update call.
13199 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
13200 data.
13201 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
13202 (dwarf2_ranges_process): Likewise.
13203 (dwarf2_get_pc_bounds): Likewise.
13204 (mark_common_block_symbol_computed): Likewise.
13205 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
13206 (dwarf2_read_abbrevs): Update call.
13207 (read_partial_die): Use dwarf2_per_objfile from cu.
13208 (find_partial_die): Likewise.
13209 (fixup_partial_die): Likewise.
13210 (read_attribute_value): Likewise.
13211 (read_indirect_string_at_offset_from): Add objfile parameter.
13212 (read_indirect_string_at_offset): Add dwarf2_per_objfile
13213 parameter.
13214 (read_indirect_string_from_dwz): Add objfile parameter.
13215 (read_indirect_string): Add objfile parameter.
13216 (read_addr_index_1): Add dwarf2_per_objfile parameter.
13217 (read_addr_index): Use dwarf2_per_objfile from cu.
13218 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
13219 call dw2_setup.
13220 (read_str_index): Use dwarf2_per_objfile from cu.
13221 (get_debug_line_section): Likewise.
13222 (read_formatted_entries): Add dwarf2_per_objfile parameter.
13223 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
13224 (new_symbol_full): Use dwarf2_per_objfile from cu.
13225 (build_error_marker_type): Likewise.
13226 (lookup_die_type): Likewise.
13227 (determine_prefix): Likewise.
13228 (follow_die_offset): Likewise.
13229 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
13230 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
13231 (dwarf2_fetch_die_type_sect_off): Likewise.
13232 (dwarf2_get_die_type): Likewise.
13233 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
13234 (get_signatured_type): Likewise.
13235 (get_DW_AT_signature_type): Likewise.
13236 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
13237 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
13238 (cu_debug_loc_section): Likewise.
13239 (fill_in_loclist_baton): Likewise.
13240 (dwarf2_symbol_mark_computed): Likewise.
13241 (dwarf2_find_containing_comp_unit): Change objfile parameter to
13242 dwarf2_per_objfile.
13243 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
13244 parameter.
13245 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
13246 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
13247 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
13248 (set_die_type): Use dwarf2_free_objfile from cu.
13249 (get_die_type_at_offset): Likewise.
13250 (dwarf2_per_objfile_free): Don't assign global variable.
13251 (debug_names) <constructor>: Add dwarf2_per_objfile
13252 parameter, update m_debugstrlookup construction.
13253 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
13254 parameter.
13255 <m_dwarf2_per_objfile>: New field.
13256 <lookup>: Use m_dwarf2_per_objfile.
13257 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
13258 (psyms_seen_size): Likewise.
13259 (write_gdbindex): Replace objfile parameter with
13260 dwarf2_per_objfile.
13261 (write_debug_names): Likewise.
13262 (write_psymtabs_to_index): Likewise.
13263 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
13264 calls.
13265
e3b94546
SM
132662018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13267
13268 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
13269 <dwarf2_per_objfile>: New field.
13270 (struct dwarf2_per_cu_data) <objfile>: Remove.
13271 <dwarf2_per_objfile>: New field.
13272 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
13273 of objfile.
13274 (create_signatured_type_table_from_index): Likewise.
13275 (create_debug_type_hash_table): Likewise.
13276 (fill_in_sig_entry_from_dwo_entry): Likewise.
13277 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
13278 (create_type_unit_group): Assign dwarf2_per_objfile instead of
13279 objfile.
13280 (create_partial_symtab): Access objfile through
13281 dwarf2_per_objfile.
13282 (process_psymtab_comp_unit_reader): Likewise.
13283 (read_comp_units_from_section): Likewise.
13284 (scan_partial_symbols): Likewise.
13285 (add_partial_symbol): Likewise.
13286 (add_partial_subprogram): Likewise.
13287 (peek_die_abbrev): Likewise.
13288 (fixup_go_packaging): Likewise.
13289 (process_full_comp_unit): Likewise.
13290 (process_full_type_unit): Likewise.
13291 (process_imported_unit_die): Likewise.
13292 (dwarf2_compute_name): Likewise.
13293 (dwarf2_physname): Likewise.
13294 (read_import_statement): Likewise.
13295 (create_cus_hash_table): Assign dwarf2_physname instead of
13296 objfile.
13297 (read_func_scope): Access objfile through dwarf2_per_objfile.
13298 (read_lexical_block_scope): Likewise.
13299 (read_call_site_scope): Likewise.
13300 (read_variable): Likewise.
13301 (dwarf2_rnglists_process): Likewise.
13302 (dwarf2_ranges_process): Likewise.
13303 (dwarf2_ranges_read): Likewise.
13304 (dwarf2_record_block_ranges): Likewise.
13305 (dwarf2_add_field): Likewise.
13306 (dwarf2_add_member_fn): Likewise.
13307 (read_structure_type): Likewise.
13308 (process_structure_scope): Likewise.
13309 (read_enumeration_type): Likewise.
13310 (read_array_type): Likewise.
13311 (read_common_block): Likewise.
13312 (read_namespace_type): Likewise.
13313 (read_namespace): Likewise.
13314 (read_module_type): Likewise.
13315 (read_tag_pointer_type): Likewise.
13316 (read_tag_ptr_to_member_type): Likewise.
13317 (read_tag_string_type): Likewise.
13318 (read_subroutine_type): Likewise.
13319 (read_typedef): Likewise.
13320 (read_base_type): Likewise.
13321 (attr_to_dynamic_prop): Likewise.
13322 (read_subrange_type): Likewise.
13323 (read_unspecified_type): Likewise.
13324 (load_partial_dies): Likewise.
13325 (read_partial_die): Likewise.
13326 (find_partial_die): Likewise.
13327 (guess_partial_die_structure_name): Likewise.
13328 (fixup_partial_die): Likewise.
13329 (read_attribute_value): Likewise.
13330 (read_addr_index_from_leb128): Likewise.
13331 (dwarf2_read_addr_index): Likewise.
13332 (dwarf2_string_attr): Likewise.
13333 (lnp_state_machine::check_line_address): Likewise.
13334 (dwarf_decode_lines_1): Likewise.
13335 (dwarf_decode_lines): Likewise.
13336 (dwarf2_start_symtab): Likewise.
13337 (var_decode_location): Likewise.
13338 (new_symbol_full): Likewise.
13339 (dwarf2_const_value_data): Likewise.
13340 (dwarf2_const_value_attr): Likewise.
13341 (dwarf2_const_value): Likewise.
13342 (die_type): Likewise.
13343 (die_containing_type): Likewise.
13344 (lookup_die_type): Likewise.
13345 (guess_full_die_structure_name): Likewise.
13346 (anonymous_struct_prefix): Likewise.
13347 (dwarf2_name): Likewise.
13348 (follow_die_ref_or_sig): Likewise.
13349 (follow_die_offset): Likewise.
13350 (follow_die_ref): Likewise.
13351 (dwarf2_fetch_die_loc_sect_off): Likewise.
13352 (dwarf2_fetch_constant_bytes): Likewise.
13353 (dwarf2_fetch_die_type_sect_off): Likewise.
13354 (dwarf2_get_die_type): Likewise.
13355 (follow_die_sig): Likewise.
13356 (decode_locdesc): Likewise.
13357 (dwarf2_per_cu_objfile): Likewise.
13358 (dwarf2_per_cu_text_offset): Likewise.
13359 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
13360 objfile.
13361 (set_die_type): Access objfile through
13362 dwarf2_per_objfile.
13363
b01ba14d
SM
133642018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13365
13366 * valprint.c (converted_character_d): Remove typedef.
13367 (DEF_VEC_O (converted_character_d)): Remove.
13368 (count_next_character): Use std::vector.
13369 (print_converted_chars_to_obstack): Likewise.
13370 (generic_printstr): Likewise.
13371
4d0fdd9b
SM
133722018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13373
13374 * xml-support.h (struct gdb_xml_value): Add constructor.
13375 <value>: Change type to unique_xmalloc_ptr.
13376 (gdb_xml_value_s): Remove typedef.
13377 (DEF_VEC_O (gdb_xml_value_s)): Remove.
13378 (gdb_xml_element_start_handler): Change parameter type to
13379 std::vector.
13380 (xml_find_attribute): Likewise.
13381 * xml-support.c (xml_find_attribute): Change parameter type to
13382 std::vector and adjust.
13383 (gdb_xml_values_cleanup): Remove.
13384 (gdb_xml_parser::start_element): Adjust to std::vector.
13385 (xinclude_start_include): Change paraeter type to std::vector
13386 and adjust.
13387 * btrace.c (check_xml_btrace_version): Likewise.
13388 (parse_xml_btrace_block): Likewise.
13389 (parse_xml_btrace_pt_config_cpu): Likewise.
13390 (parse_xml_btrace_pt): Likewise.
13391 (parse_xml_btrace_conf_bts): Likewise.
13392 (parse_xml_btrace_conf_pt): Likewise.
13393 * memory-map.c (memory_map_start_memory): Likewise.
13394 (memory_map_start_property): Likewise.
13395 * osdata.c (osdata_start_osdata): Likewise.
13396 (osdata_start_item): Likewise.
13397 (osdata_start_column): Likewise.
13398 * remote.c (start_thread): Likewise.
13399 * solib-aix.c (library_list_start_library): Likewise.
13400 (library_list_start_list): Likewise.
13401 * solib-svr4.c (library_list_start_library): Likewise.
13402 (svr4_library_list_start_list): Likewise.
13403 * solib-target.c (library_list_start_segment): Likewise.
13404 (library_list_start_section): Likewise.
13405 (library_list_start_library): Likewise.
13406 (library_list_start_list): Likewise.
13407 * tracepoint.c (traceframe_info_start_memory): Likewise.
13408 (traceframe_info_start_tvar): Likewise.
13409 * xml-syscall.c (syscall_start_syscall): Likewise.
13410 * xml-tdesc.c (tdesc_start_target): Likewise.
13411 (tdesc_start_feature): Likewise.
13412 (tdesc_start_reg): Likewise.
13413 (tdesc_start_union): Likewise.
13414 (tdesc_start_struct): Likewise.
13415 (tdesc_start_flags): Likewise.
13416 (tdesc_start_enum): Likewise.
13417 (tdesc_start_field): Likewise.
13418 (tdesc_start_enum_value): Likewise.
13419 (tdesc_start_vector): Likewise.
13420
f979c73f
SM
134212018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13422
13423 * extension.h (struct xmethod_worker) <clone>: Remove.
13424 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
13425 Remove.
13426 (python_xmethod_worker::clone): Remove.
13427 * valops.c (find_overload_match): Use std::move instead of
13428 clone.
13429
ba18742c
SM
134302018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13431
13432 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
13433 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
13434 <free_xmethod_worker_data>: Remove.
13435 <get_matching_xmethod_workers>: Chance VEC to std::vector.
13436 <get_xmethod_arg_types>: Remove.
13437 <get_xmethod_result_type>: Remove.
13438 <invoke_xmethod>: Remove.
13439 * extension.c (new_xmethod_worker): Remove.
13440 (clone_xmethod_worker): Remove.
13441 (get_matching_xmethod_workers): Return void, pass std::vector by
13442 pointer.
13443 (get_xmethod_arg_types): Rename to...
13444 (xmethod_worker::get_arg_types): ... this, and adjust.
13445 (get_xmethod_result_type): Rename to...
13446 (xmethod_worker::get_result_type): ... this, and adjust.
13447 (invoke_xmethod): Remove.
13448 (free_xmethod_worker): Remove.
13449 (free_xmethod_worker_vec): Remove.
13450 * extension.h (enum ext_lang_rc): Move here from
13451 extension-priv.h.
13452 (struct xmethod_worker): Add constructor and destructor.
13453 <data>: Remove.
13454 <value>: Remove.
13455 <invoke, clone, do_get_result_type, do_get_arg_types>: New
13456 virtual pure methods.
13457 <get_arg_types, get_result_type>: New methods.
13458 (xmethod_worker_ptr): Remove typedef.
13459 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
13460 (xmethod_worker_vec): Remove typedef.
13461 (xmethod_worker_up): New typedef.
13462 (invoke_xmethod): Remove.
13463 (clone_xmethod_worker): Remove.
13464 (free_xmethod_worker): Remove.
13465 (free_xmethod_worker_vec): Remove.
13466 (get_xmethod_arg_types): Remove.
13467 (get_xmethod_result_type): Remove.
13468 * valops.c (find_method_list): Use std::vector, don't use
13469 intermediate vector.
13470 (value_find_oload_method_list): Use std::vector.
13471 (find_overload_match): Use std::vector.
13472 (find_oload_champ): Use std::vector.
13473 * value.c (value_free): Use operator delete.
13474 (value_of_xmethod): Rename to...
13475 (value_from_xmethod): ... this. Don't assign
13476 xmethod_worker::value, take rvalue-reference.
13477 (result_type_of_xmethod): Adjust.
13478 (call_xmethod): Adjust.
13479 * value.h: Include extension.h.
13480 (struct xmethod_worker): Don't forward-declare.
13481 (value_of_xmethod): Rename to...
13482 (value_from_xmethod): ... this, take rvalue-reference.
13483 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
13484 (struct python_xmethod_worker): ... this, add constructor and
13485 destructor.
13486 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
13487 (gdbpy_free_xmethod_worker_data): Rename to...
13488 (python_xmethod_worker::~python_xmethod_worker): ... this and
13489 adjust.
13490 (gdbpy_clone_xmethod_worker_data): Rename to...
13491 (python_xmethod_worker::clone): ... this and adjust.
13492 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
13493 temporary vector.
13494 (gdbpy_get_xmethod_arg_types): Rename to...
13495 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
13496 (gdbpy_get_xmethod_result_type): Rename to...
13497 (python_xmethod_worker::do_get_result_type): ... this and
13498 adjust.
13499 (gdbpy_invoke_xmethod): Rename to...
13500 (python_xmethod_worker::invoke): ... this and adjust.
13501 (new_python_xmethod_worker): Rename to...
13502 (python_xmethod_worker::python_xmethod_worker): ... this and
13503 adjust.
13504 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
13505 Remove.
13506 (gdbpy_free_xmethod_worker_data): Remove.
13507 (gdbpy_get_matching_xmethod_workers): Use std::vector.
13508 (gdbpy_get_xmethod_arg_types): Remove.
13509 (gdbpy_get_xmethod_result_type): Remove.
13510 (gdbpy_invoke_xmethod): Remove.
13511 * python/python.c (python_extension_ops): Remove obsolete
13512 callbacks.
13513
e379cee6
PA
135142018-01-05 Pedro Alves <palves@redhat.com>
13515
13516 PR gdb/18653
13517 * common/signals-state-save-restore.c
13518 (save_original_signals_state): New parameter 'quiet'. Warn if we
13519 find a custom handler preinstalled, instead of internal erroring.
13520 But only warn if !quiet.
13521 * common/signals-state-save-restore.h
13522 (save_original_signals_state): New parameter 'quiet'.
13523 * main.c (captured_main_1): Move save_original_signals_state call
13524 after option handling, and pass QUIET.
13525
a655456c
PA
135262018-01-05 Pedro Alves <palves@redhat.com>
13527
13528 * spu-tdep.c (spu_catch_start): Pass
13529 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
13530
de63c46b
PA
135312018-01-05 Pedro Alves <palves@redhat.com>
13532
13533 PR gdb/22670
13534 * ada-lang.c (literal_symbol_name_matcher): New function.
13535 (ada_get_symbol_name_matcher): Use it for
13536 symbol_name_match_type::SEARCH_NAME.
13537 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
13538 it down instead of assuming symbol_name_match_type::FULL.
13539 * block.h (block_lookup_symbol): New parameter 'match_type'.
13540 * c-valprint.c (print_unpacked_pointer): Use
13541 lookup_symbol_search_name instead of lookup_symbol.
13542 * compile/compile-object-load.c (get_out_value_type): Pass down
13543 symbol_name_match_type::SEARCH_NAME.
13544 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
13545 symbol_name_match_type::FULL.
13546 * cp-support.c (cp_get_symbol_name_matcher): Handle
13547 symbol_name_match_type::SEARCH_NAME.
13548 * infrun.c (insert_exception_resume_breakpoint): Use
13549 lookup_symbol_search_name.
13550 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
13551 * psymtab.c (maintenance_check_psymtabs): Use
13552 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
13553 * stack.c (print_frame_args): Use lookup_symbol_search_name and
13554 SYMBOL_SEARCH_NAME.
13555 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
13556 if symbol_name_match_type::SEARCH_NAME.
13557 (lookup_symbol_in_language): Pass down
13558 symbol_name_match_type::FULL.
13559 (lookup_symbol_search_name): New.
13560 (lookup_language_this): Pass down
13561 symbol_name_match_type::SEARCH_NAME.
13562 (lookup_symbol_aux, lookup_local_symbol): New parameter
13563 'match_type'. Pass it down.
13564 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
13565 (lookup_symbol_search_name): New declaration.
13566 (lookup_symbol_in_block): New 'match_type' parameter.
13567
f98fc17b
PA
135682018-01-05 Pedro Alves <palves@redhat.com>
13569
13570 PR gdb/22670
13571 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
13572 ada_lookup_symbol.
13573 (ada_lookup_symbol): Reimplement in terms of
13574 ada_lookup_symbol_list, bits factored out from
13575 ada_lookup_encoded_symbol.
13576
342f8240
JB
135772018-01-05 Joel Brobecker <brobecker@adacore.com>
13578
13579 * ada-exp.y (write_object_renaming): When subscripting an array
13580 using a symbol as the index, pass the block in call to
13581 ada_lookup_encoded_symbol when looking that symbol up.
13582
7150d33c
JG
135832018-01-05 Jerome Guitton <guitton@adacore.com>
13584
13585 * ada-lang.c (ada_array_length): Use ada_index_type instead of
13586 TYPE_INDEX_TYPE.
13587
cc0e770c
JB
135882018-01-05 Joel Brobecker <brobecker@adacore.com>
13589
13590 * ada-lang.c (ada_to_fixed_value_create): Add handling of
13591 the case where VALUE_LVAL (val0) is not lval_memory.
13592
f79da888 135932018-01-05 Xavier Roirand <roirand@adacore.com>
e3861a03
XR
13594
13595 * ada-valprint.c (print_optional_low_bound): Handle
13596 character-indexed array printing like boolean-indexed array
13597 printing.
13598
cd385f94
JB
135992018-01-05 Joel Brobecker <brobecker@adacore.com>
13600
13601 * NEWS: Create a new section for the next release branch.
13602 Rename the section of the current branch, now that it has
13603 been cut.
13604
09aca949
JB
136052018-01-05 Joel Brobecker <brobecker@adacore.com>
13606
13607 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
13608 * version.in: Bump version to 8.1.50.DATE-git.
13609
9f757bf7
XR
136102018-01-03 Xavier Roirand <roirand@adacore.com>
13611
13612 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
13613 Add field.
13614 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
13615 Add field.
13616 (default_exception_support_info) <catch_handlers_sym>: Add field.
13617 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
13618 (ada_exception_name_addr_1): Add "catch handlers" handling.
13619 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
13620 Update all callers.
13621 (create_excep_cond_exprs) <ex>: Add parameter.
13622 (re_set_exception): Update create_excep_cond_exprs call.
13623 (print_it_exception, print_one_exception, print_mention_exception)
13624 (print_recreate_exception): Add "catch handler" handling.
13625 (allocate_location_catch_handlers, re_set_catch_handlers)
13626 (check_status_catch_handlers, print_it_catch_handlers)
13627 (print_one_catch_handlers, print_mention_catch_handlers)
13628 (print_recreate_catch_handlers): New function.
13629 (catch_handlers_breakpoint_ops): New variable.
13630 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
13631 Add parameter. Add "catch handler" handling.
13632 (ada_exception_sym_name, ada_exception_breakpoint_ops):
13633 Add "catch handler" handling.
13634 (ada_exception_catchpoint_cond_string): Add "catch handler"
13635 handling.
13636 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
13637 call.
13638 (catch_ada_handlers_command): New function.
13639 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
13640 operations structure.
13641 (_initialize_ada_language): Add "catch handlers" command entry.
13642 * NEWS: Document "catch handlers" feature.
13643
9fe561ab
JB
136442018-01-02 Joel Brobecker <brobecker@adacore.com>
13645
13646 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
13647 account when creating the array type of the slice.
13648 (ada_value_slice): Likewise.
13649
a405673c
JB
136502018-01-02 Joel Brobecker <brobecker@adacore.com>
13651
13652 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
13653 New enum value.
13654 (create_array_type_with_stride): Add byte_stride_prop parameter.
13655 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
13656 New parameter. Update all callers in this file.
13657 (array_type_has_dynamic_stride): New function.
13658 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
13659 of arrays with dynamic byte strides.
13660 * dwarf2read.c (read_array_type): Add support for dynamic
13661 DW_AT_byte_stride attributes.
13662
74a2f8ff
JB
136632018-01-02 Joel Brobecker <brobecker@adacore.com>
13664
13665 * dwarf2read.c (read_unspecified_type): Treat
13666 DW_TAG_enumeration_type DIEs from Ada units as stubs.
13667
e2882c85
JB
136682018-01-01 Joel Brobecker <brobecker@adacore.com>
13669
13670 Update copyright year range in all GDB files.
13671
1690bb24
JB
136722018-01-01 Joel Brobecker <brobecker@adacore.com>
13673
13674 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
13675 and gdb/testsuite/gdb.base/step-line.c.
13676
0f0c98a8
JB
136772018-01-01 Joel Brobecker <brobecker@adacore.com>
13678
13679 * copyright.py (main): Dump the contents of
13680 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
13681 even if BY_HAND is empty.
13682
82e1e79a
JB
136832018-01-01 Joel Brobecker <brobecker@adacore.com>
13684
13685 * top.c (print_gdb_version): Update Copyright year in version
13686 message.
13687
053f54e5 136882018-01-01 Joel Brobecker <brobecker@adacore.com>
47fea877 13689
053f54e5 13690 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
47fea877 13691
053f54e5 13692For older changes see ChangeLog-2017.
c906108c
SS
13693\f
13694Local Variables:
13695mode: change-log
13696left-margin: 8
13697fill-column: 74
13698version-control: never
57da7796 13699coding: utf-8
c906108c 13700End: